@epam/ai-dial-publish-panel 1.2.0-dev.287 → 1.2.0-dev.288

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,46 +1,46 @@
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 { ButtonVariant as o, Checkbox as s, DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, DialFileNodeType as u, GhostButton as d, GhostIconButton as f, Input as p, NeutralButton as m, Notification as h, NotificationType as g, NotificationVariant as _, Search as ee, Select as v, SideDrawer as y, Spinner as b, Tag as x, TagInput as S } from "@epam/ai-dial-ui-kit";
3
- import { ResourceSummary as C, TAG_INPUT_TAG_CLASS_NAME as w, buildCssVars as te, mergeClasses as T } from "@epam/ai-dial-chat-shared";
4
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
5
- import { IconFolderPlus as ne, IconPlus as k, IconTrashX as re } from "@tabler/icons-react";
6
- import { DialFileNodeType as A, DialFoldersTree as ie } from "@epam/ai-dial-react-file-manager";
2
+ import { ButtonVariant as o, Checkbox as s, DIAL_ICON_SIZE as c, DIAL_KIT_ICON_STROKE as l, DialFileNodeType as u, GhostButton as d, GhostIconButton as f, Highlight as p, Input as m, NeutralButton as h, Notification as g, NotificationType as _, NotificationVariant as v, Search as y, Select as b, SideDrawer as x, Spinner as S, Tag as C, TagInput as ee } from "@epam/ai-dial-ui-kit";
3
+ import { ResourceSummary as w, TAG_INPUT_TAG_CLASS_NAME as T, buildCssVars as E, mergeClasses as D } from "@epam/ai-dial-chat-shared";
4
+ import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
5
+ import { IconFolderPlus as j, IconPlus as te, IconTrashX as ne } from "@tabler/icons-react";
6
+ import { DialFileNodeType as re, DialFoldersTree as ie } from "@epam/ai-dial-react-file-manager";
7
7
  //#region src/models/publish.ts
8
- var j = /* @__PURE__ */ function(e) {
8
+ var M = /* @__PURE__ */ function(e) {
9
9
  return e.Equal = "EQUAL", e.Contain = "CONTAIN", e.Regex = "REGEX", e;
10
- }({}), M = /* @__PURE__ */ function(e) {
10
+ }({}), N = /* @__PURE__ */ function(e) {
11
11
  return e.None = "none", e.Info = "info", e.ReplaceWarning = "replaceWarning", e.NoAccess = "noAccess", e.SubmitError = "submitError", e;
12
- }({}), N = (e) => e.isSubmitting ? {
13
- calloutKind: M.None,
12
+ }({}), P = (e) => e.isSubmitting ? {
13
+ calloutKind: N.None,
14
14
  isSubmitDisabled: !0,
15
15
  isSubmitLoading: !0
16
16
  } : e.hasSelectedFolder ? e.hasWriteAccess ? e.hasSubmitError ? {
17
- calloutKind: M.SubmitError,
17
+ calloutKind: N.SubmitError,
18
18
  isSubmitDisabled: !1,
19
19
  isSubmitLoading: !1
20
20
  } : e.hasExistingPublicationInFolder ? {
21
- calloutKind: M.ReplaceWarning,
21
+ calloutKind: N.ReplaceWarning,
22
22
  isSubmitDisabled: e.allowReplace === !1,
23
23
  isSubmitLoading: !1
24
24
  } : {
25
- calloutKind: M.Info,
25
+ calloutKind: N.Info,
26
26
  isSubmitDisabled: !1,
27
27
  isSubmitLoading: !1
28
28
  } : {
29
- calloutKind: M.NoAccess,
29
+ calloutKind: N.NoAccess,
30
30
  isSubmitDisabled: !0,
31
31
  isSubmitLoading: !1
32
32
  } : {
33
- calloutKind: M.None,
33
+ calloutKind: N.None,
34
34
  isSubmitDisabled: !0,
35
35
  isSubmitLoading: !1
36
- }, P = 1440 * 60 * 1e3, F = (e, t = Date.now(), n) => {
37
- let r = Math.floor((t - e) / P);
36
+ }, F = 1440 * 60 * 1e3, I = (e, t = Date.now(), n) => {
37
+ let r = Math.floor((t - e) / F);
38
38
  return r <= 0 ? "Today" : r === 1 ? "Yesterday" : r < 7 ? `${r} days ago` : new Date(e).toLocaleDateString(n, {
39
39
  month: "short",
40
40
  day: "numeric",
41
41
  year: "numeric"
42
42
  });
43
- }, I = (e, t, n) => t.length === 0 ? [...e, {
43
+ }, L = (e, t, n) => t.length === 0 ? [...e, {
44
44
  path: [n],
45
45
  name: n
46
46
  }] : e.map((e) => e.path.join("/") === t.join("/") ? {
@@ -51,46 +51,46 @@ var j = /* @__PURE__ */ function(e) {
51
51
  }]
52
52
  } : {
53
53
  ...e,
54
- children: e.children ? I(e.children, t, n) : e.children
55
- }), L = (e, t, n) => {
54
+ children: e.children ? L(e.children, t, n) : e.children
55
+ }), R = (e, t, n) => {
56
56
  let r = [...t, n].join("/");
57
57
  return t.length === 0 ? e.filter((e) => e.path.join("/") !== r) : e.map((e) => e.path.join("/") === t.join("/") ? {
58
58
  ...e,
59
59
  children: (e.children ?? []).filter((e) => e.path.join("/") !== r)
60
60
  } : {
61
61
  ...e,
62
- children: e.children ? L(e.children, t, n) : e.children
62
+ children: e.children ? R(e.children, t, n) : e.children
63
63
  });
64
- }, R = ({ item: n, history: i, folderItems: o, hasWriteAccess: s = () => !0, defaultAuthor: c = "", onCreateFolder: l, onPublish: u, onPublishSuccess: d, onPublishError: f, onFetchExistingRules: p }) => {
64
+ }, z = ({ item: n, history: i, folderItems: o, hasWriteAccess: s = () => !0, defaultAuthor: c = "", onCreateFolder: l, onPublish: u, onPublishSuccess: d, onPublishError: f, onFetchExistingRules: p }) => {
65
65
  let [m, h] = a(o);
66
66
  t(() => {
67
67
  h(o);
68
68
  }, [o]);
69
- let [g, _] = a(), [ee, v] = a(!1), [y, b] = a(!1), [x, S] = a([]), [C, w] = a(!1), [te, T] = a(!1), [E, D] = a(c), [O, ne] = a(!1), [k, re] = a(!1);
69
+ let [g, _] = a(), [v, y] = a(!1), [b, x] = a(!1), [S, C] = a([]), [ee, w] = a(!1), [T, E] = a(!1), [D, O] = a(c), [k, A] = a(!1), [j, te] = a(!1);
70
70
  t(() => {
71
- k || D(c);
72
- }, [c, k]);
73
- let A = e((e) => {
74
- re(!0), D(e);
71
+ j || O(c);
72
+ }, [c, j]);
73
+ let ne = e((e) => {
74
+ te(!0), O(e);
75
75
  }, []);
76
76
  t(() => {
77
77
  if (g == null) {
78
- S([]), T(!1);
78
+ C([]), E(!1);
79
79
  return;
80
80
  }
81
81
  if (!p) return;
82
82
  let e = !1;
83
- return w(!0), T(!1), p(g).then((t) => {
84
- e || S(t);
83
+ return w(!0), E(!1), p(g).then((t) => {
84
+ e || C(t);
85
85
  }).catch(() => {
86
- e || T(!0);
86
+ e || E(!0);
87
87
  }).finally(() => {
88
88
  e || w(!1);
89
89
  }), () => {
90
90
  e = !0;
91
91
  };
92
92
  }, [g]);
93
- let ie = r(() => {
93
+ let re = r(() => {
94
94
  if (!g) return !1;
95
95
  let e = g.join("/");
96
96
  return i.some((t) => t.folderPath.join("/") === e ? n.version == null ? !0 : t.version === n.version : !1);
@@ -98,54 +98,54 @@ var j = /* @__PURE__ */ function(e) {
98
98
  i,
99
99
  n.version,
100
100
  g
101
- ]), j = e(async (e, t) => {
102
- h((n) => I(n, e, t));
101
+ ]), ie = e(async (e, t) => {
102
+ h((n) => L(n, e, t));
103
103
  try {
104
104
  await l?.(e, t);
105
105
  } catch {
106
- h((n) => L(n, e, t)), b(!0);
106
+ h((n) => R(n, e, t)), x(!0);
107
107
  }
108
108
  }, [l]), M = e(async () => {
109
109
  if (!g) return !1;
110
- v(!0), b(!1);
110
+ y(!0), x(!1);
111
111
  try {
112
- return await u(n, g, x, E.trim(), O), d?.(n, g), !0;
112
+ return await u(n, g, S, D.trim(), k), d?.(n, g), !0;
113
113
  } catch (e) {
114
- return b(!0), f?.(n, g, e), !1;
114
+ return x(!0), f?.(n, g, e), !1;
115
115
  } finally {
116
- v(!1);
116
+ y(!1);
117
117
  }
118
118
  }, [
119
- E,
119
+ D,
120
120
  n,
121
121
  u,
122
122
  f,
123
123
  d,
124
- O,
125
- x,
124
+ k,
125
+ S,
126
126
  g
127
127
  ]), N = e(() => {
128
- h(o), _(void 0), b(!1), S([]), T(!1), D(c), re(!1), ne(!1);
128
+ h(o), _(void 0), x(!1), C([]), E(!1), O(c), te(!1), A(!1);
129
129
  }, [c, o]);
130
130
  return {
131
131
  folderItems: m,
132
132
  selectedFolderPath: g,
133
133
  setSelectedFolderPath: _,
134
- handleCreateFolder: j,
135
- hasExistingPublicationInFolder: ie,
134
+ handleCreateFolder: ie,
135
+ hasExistingPublicationInFolder: re,
136
136
  hasWriteAccess: g ? s(g) : !0,
137
- isSubmitting: ee,
138
- hasSubmitError: y,
137
+ isSubmitting: v,
138
+ hasSubmitError: b,
139
139
  handleSubmit: M,
140
140
  reset: N,
141
- rules: x,
142
- setRules: S,
143
- author: E,
144
- setAuthor: A,
145
- publishCredentials: O,
146
- setPublishCredentials: ne,
147
- isRulesLoading: C,
148
- hasRulesLoadError: te
141
+ rules: S,
142
+ setRules: C,
143
+ author: D,
144
+ setAuthor: ne,
145
+ publishCredentials: k,
146
+ setPublishCredentials: A,
147
+ isRulesLoading: ee,
148
+ hasRulesLoadError: T
149
149
  };
150
150
  }, ae = (e, t) => {
151
151
  let n = t.trim().toLowerCase();
@@ -156,12 +156,12 @@ var j = /* @__PURE__ */ function(e) {
156
156
  children: i
157
157
  }), e;
158
158
  }, []) : e;
159
- }, z = (e, t) => e.localeCompare(t, void 0, {
159
+ }, B = (e, t) => e.localeCompare(t, void 0, {
160
160
  sensitivity: "base",
161
161
  numeric: !0
162
- }), B = (e) => [...e].sort((e, t) => z(e.name, t.name)).map((e) => e.children ? {
162
+ }), oe = (e) => [...e].sort((e, t) => B(e.name, t.name)).map((e) => e.children ? {
163
163
  ...e,
164
- children: B(e.children)
164
+ children: oe(e.children)
165
165
  } : e), V = (e, t, n) => {
166
166
  let [r, ...i] = t;
167
167
  if (r == null) return e;
@@ -174,25 +174,25 @@ var j = /* @__PURE__ */ function(e) {
174
174
  name: r,
175
175
  children: i.length ? V([], i, a) : void 0
176
176
  }];
177
- }, oe = (e, t) => t.reduce((e, t) => t.length ? V(e, t, []) : e, e), H = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? H(e.children) : []]), U = (e) => e.join("/"), W = (e) => e.split("/").filter(Boolean), se = (e) => e.map((e) => {
177
+ }, se = (e, t) => t.reduce((e, t) => t.length ? V(e, t, []) : e, e), H = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? H(e.children) : []]), U = (e) => e.join("/"), W = (e) => e.split("/").filter(Boolean), G = (e) => e.map((e) => {
178
178
  let t = U(e.path);
179
179
  return {
180
180
  path: t,
181
181
  name: e.name,
182
182
  folderId: t,
183
183
  nodeType: u.FOLDER,
184
- items: e.children ? se(e.children) : void 0
184
+ items: e.children ? G(e.children) : void 0
185
185
  };
186
- }), G = /[/\\:;,={}&"]/, ce = (e, t, n) => {
186
+ }), K = /[/\\:;,={}&"]/, q = (e, t, n) => {
187
187
  let r = e.trim();
188
- return r ? r.includes("..") || G.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
189
- }, le = (e, t) => {
188
+ return r ? r.includes("..") || K.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
189
+ }, ce = (e, t) => {
190
190
  let n = new Set(t.map((e) => e.toLowerCase()));
191
191
  if (!n.has(e.toLowerCase())) return e;
192
192
  let r = 2;
193
193
  for (; n.has(`${e} ${r}`.toLowerCase());) r += 1;
194
194
  return `${e} ${r}`;
195
- }, ue = (e, t) => {
195
+ }, J = (e, t) => {
196
196
  if (t.length === 0) return e.map((e) => e.name);
197
197
  let n = U(t), r = (e) => {
198
198
  for (let t of e) {
@@ -202,124 +202,130 @@ var j = /* @__PURE__ */ function(e) {
202
202
  }
203
203
  };
204
204
  return (r(e)?.children ?? []).map((e) => e.name);
205
- }, K = {
205
+ }, Y = {
206
206
  dialog: "_dialog_jqcm2_5",
207
207
  error: "_error_jqcm2_14",
208
208
  selectField: "_selectField_jqcm2_28",
209
209
  selectFieldOpen: "_selectFieldOpen_jqcm2_40"
210
- }, q = 20, J = 200, de = 8, Y = (e) => {
210
+ }, le = 20, ue = 200, de = 8, fe = (e) => {
211
211
  let t = e.trim();
212
- if (t.length === 0 || t.length > J) return !1;
212
+ if (t.length === 0 || t.length > ue) return !1;
213
213
  try {
214
214
  return new RegExp(t) instanceof RegExp;
215
215
  } catch {
216
216
  return !1;
217
217
  }
218
- }, fe = ({ sourceOptions: e, onSave: o, onCancel: s, disabled: c = !1, maxTargets: l = q, labels: u = {}, errorClassName: f = "dial-small-text", styles: h = {} }) => {
219
- let g = {
220
- ...te({
221
- "--pare-mobile-bg": h.colors?.mobileBackground,
222
- "--pare-bg": h.colors?.background,
223
- "--pare-error-text": h.colors?.errorText,
224
- "--pare-select-border": h.colors?.selectBorder,
225
- "--pare-select-border-hover": h.colors?.selectBorderHover,
226
- "--pare-select-border-open": h.colors?.selectBorderOpen,
227
- "--pare-select-border-focus": h.colors?.selectBorderFocus
218
+ }, pe = ({ sourceOptions: e, onSave: o, onCancel: s, disabled: c = !1, maxTargets: l = le, labels: u = {}, errorClassName: f = "dial-small-text", styles: g = {} }) => {
219
+ let _ = {
220
+ ...E({
221
+ "--pare-mobile-bg": g.colors?.mobileBackground,
222
+ "--pare-bg": g.colors?.background,
223
+ "--pare-error-text": g.colors?.errorText,
224
+ "--pare-select-border": g.colors?.selectBorder,
225
+ "--pare-select-border-hover": g.colors?.selectBorderHover,
226
+ "--pare-select-border-open": g.colors?.selectBorderOpen,
227
+ "--pare-select-border-focus": g.colors?.selectBorderFocus
228
228
  }),
229
- ...h.cssVars
230
- }, { sourceLabel: _ = "Source", sourcePlaceholder: ee = "Select...", functionLabel: y = "Function", equalOptionLabel: b = "Equal", containOptionLabel: x = "Contain", regexOptionLabel: C = "Regex", targetsLabel: E = "Targets", targetsPlaceholder: ne = "Add a target", targetsHintLabel: k = "Press Enter or comma to add a target.", patternLabel: re = "Pattern", patternPlaceholder: A = "Enter a regular expression", invalidRegexError: ie = "Enter a valid regular expression.", requiredFieldError: M = "This field is required.", targetsRequiredError: N = "Add at least one target.", saveLabel: P = "Save", cancelLabel: F = "Cancel", dialogAriaLabel: I = "Add access rule" } = u, L = n(), R = n(), ae = n(), z = n(), B = i(null);
229
+ ...g.cssVars
230
+ }, { sourceLabel: v = "Source", sourcePlaceholder: y = "Select...", functionLabel: x = "Function", equalOptionLabel: S = "Equal", containOptionLabel: C = "Contain", regexOptionLabel: w = "Regex", targetsLabel: O = "Targets", targetsPlaceholder: j = "Add a target", targetsHintLabel: te = "Press Enter or comma to add a target.", patternLabel: ne = "Pattern", patternPlaceholder: re = "Enter a regular expression", invalidRegexError: ie = "Enter a valid regular expression.", requiredFieldError: N = "This field is required.", targetsRequiredError: P = "Add at least one target.", saveLabel: F = "Save", cancelLabel: I = "Cancel", dialogAriaLabel: L = "Add access rule" } = u, R = n(), z = n(), ae = n(), B = n(), oe = i(null);
231
231
  t(() => {
232
- B.current?.focus();
232
+ oe.current?.focus();
233
233
  }, []);
234
- let [V, oe] = a(), [H, U] = a(), [W, se] = a([]), [G, ce] = a(""), [le, ue] = a(!1), [J, fe] = a(!1), [X, pe] = a(!1), me = T(K.selectField, le && K.selectFieldOpen), he = T(K.selectField, J && K.selectFieldOpen), Z = r(() => e.map((e) => ({
234
+ let [V, se] = a(), [H, U] = a(), [W, G] = a([]), [K, q] = a(""), [ce, J] = a(!1), [ue, pe] = a(""), [X, me] = a(!1), [Z, he] = a(!1), Q = D(Y.selectField, ce && Y.selectFieldOpen), ge = D(Y.selectField, X && Y.selectFieldOpen), _e = r(() => e.map((e) => ({
235
235
  value: e,
236
- label: e
237
- })), [e]), ge = r(() => [
236
+ label: e,
237
+ labelNode: ue.trim() ? /* @__PURE__ */ k(p, {
238
+ text: e,
239
+ query: ue,
240
+ maxLines: 1
241
+ }) : void 0
242
+ })), [e, ue]), ve = r(() => [
238
243
  {
239
- value: j.Equal,
240
- label: b
244
+ value: M.Equal,
245
+ label: S
241
246
  },
242
247
  {
243
- value: j.Contain,
244
- label: x
248
+ value: M.Contain,
249
+ label: C
245
250
  },
246
251
  {
247
- value: j.Regex,
248
- label: C
252
+ value: M.Regex,
253
+ label: w
249
254
  }
250
255
  ], [
251
- b,
252
- x,
253
- C
254
- ]), _e = H === j.Regex, Q = Y(G), ve = V != null && H != null && (_e ? Q : W.length > 0);
255
- return /* @__PURE__ */ O("div", {
256
- ref: B,
256
+ S,
257
+ C,
258
+ w
259
+ ]), $ = H === M.Regex, ye = fe(K), be = V != null && H != null && ($ ? ye : W.length > 0);
260
+ return /* @__PURE__ */ A("div", {
261
+ ref: oe,
257
262
  role: "dialog",
258
263
  "aria-modal": "true",
259
- "aria-label": I,
264
+ "aria-label": L,
260
265
  tabIndex: -1,
261
266
  onKeyDown: (e) => {
262
267
  e.key === "Escape" && (e.stopPropagation(), s());
263
268
  },
264
- style: g,
265
- className: T("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", K.dialog),
269
+ style: _,
270
+ className: D("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", Y.dialog),
266
271
  children: [
267
- /* @__PURE__ */ D(v, {
268
- id: R,
269
- labelProps: { label: _ },
270
- options: Z,
272
+ /* @__PURE__ */ k(b, {
273
+ id: z,
274
+ labelProps: { label: v },
275
+ options: _e,
271
276
  value: V,
272
277
  onChange: (e) => {
273
- oe(Array.isArray(e) ? e[0] : e), ue(!1);
278
+ se(Array.isArray(e) ? e[0] : e), J(!1);
274
279
  },
275
- placeholder: ee,
280
+ placeholder: y,
276
281
  searchable: e.length > de,
277
- searchPlaceholder: ee,
282
+ searchPlaceholder: y,
283
+ onSearchQueryChange: pe,
278
284
  disabled: c,
279
- open: le,
280
- onOpenChange: ue,
281
- fieldClassName: me,
282
- invalid: X && V == null,
283
- error: X && V == null ? M : void 0
285
+ open: ce,
286
+ onOpenChange: J,
287
+ fieldClassName: Q,
288
+ invalid: Z && V == null,
289
+ error: Z && V == null ? N : void 0
284
290
  }),
285
- /* @__PURE__ */ D(v, {
286
- labelProps: { label: y },
291
+ /* @__PURE__ */ k(b, {
292
+ labelProps: { label: x },
287
293
  id: ae,
288
- options: ge,
294
+ options: ve,
289
295
  value: H,
290
296
  onChange: (e) => {
291
297
  let t = Array.isArray(e) ? e[0] : e;
292
- H === j.Regex != (t === j.Regex) && (se([]), ce("")), U(t), fe(!1);
298
+ H === M.Regex != (t === M.Regex) && (G([]), q("")), U(t), me(!1);
293
299
  },
294
- placeholder: y,
300
+ placeholder: x,
295
301
  disabled: c,
296
- open: J,
297
- onOpenChange: fe,
298
- fieldClassName: he,
299
- invalid: X && H == null,
300
- error: X && H == null ? M : void 0
302
+ open: X,
303
+ onOpenChange: me,
304
+ fieldClassName: ge,
305
+ invalid: Z && H == null,
306
+ error: Z && H == null ? N : void 0
301
307
  }),
302
- _e ? /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D(p, {
303
- id: `${L}-input`,
304
- labelProps: { label: re },
305
- placeholder: A,
306
- value: G,
307
- onChange: (e) => ce(e ?? ""),
308
- invalid: (G.length > 0 || X) && !Q,
309
- "aria-describedby": (G.length > 0 || X) && !Q ? L : void 0,
308
+ $ ? /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k(m, {
309
+ id: `${R}-input`,
310
+ labelProps: { label: ne },
311
+ placeholder: re,
312
+ value: K,
313
+ onChange: (e) => q(e ?? ""),
314
+ invalid: (K.length > 0 || Z) && !ye,
315
+ "aria-describedby": (K.length > 0 || Z) && !ye ? R : void 0,
310
316
  disabled: c
311
- }), (G.length > 0 || X) && !Q && /* @__PURE__ */ D("span", {
312
- id: L,
317
+ }), (K.length > 0 || Z) && !ye && /* @__PURE__ */ k("span", {
318
+ id: R,
313
319
  role: "alert",
314
- className: T("mt-1 block", f, K.error),
320
+ className: D("mt-1 block", f, Y.error),
315
321
  children: ie
316
- })] }) : /* @__PURE__ */ D(S, {
317
- id: z,
318
- labelProps: { label: E },
319
- placeholder: ne,
320
- caption: X && W.length === 0 ? void 0 : k,
321
- error: X && W.length === 0 ? N : void 0,
322
- invalid: X && W.length === 0,
322
+ })] }) : /* @__PURE__ */ k(ee, {
323
+ id: B,
324
+ labelProps: { label: O },
325
+ placeholder: j,
326
+ caption: Z && W.length === 0 ? void 0 : te,
327
+ error: Z && W.length === 0 ? P : void 0,
328
+ invalid: Z && W.length === 0,
323
329
  value: W,
324
330
  onChange: (e) => {
325
331
  let t = [];
@@ -327,28 +333,28 @@ var j = /* @__PURE__ */ function(e) {
327
333
  let e = n.trim();
328
334
  if (!(e.length === 0 || t.includes(e)) && (t.push(e), t.length >= l)) break;
329
335
  }
330
- se(t);
336
+ G(t);
331
337
  },
332
338
  disabled: c,
333
- tagClassName: w
339
+ tagClassName: T
334
340
  }),
335
- /* @__PURE__ */ O("div", {
341
+ /* @__PURE__ */ A("div", {
336
342
  className: "mt-auto flex justify-end gap-2 desktop:mt-2",
337
- children: [/* @__PURE__ */ D(d, {
338
- label: F,
343
+ children: [/* @__PURE__ */ k(d, {
344
+ label: I,
339
345
  onClick: s,
340
346
  disabled: c
341
- }), /* @__PURE__ */ D(m, {
342
- label: P,
347
+ }), /* @__PURE__ */ k(h, {
348
+ label: F,
343
349
  onClick: () => {
344
- if (!ve || V == null || H == null) {
345
- pe(!0);
350
+ if (!be || V == null || H == null) {
351
+ he(!0);
346
352
  return;
347
353
  }
348
354
  o({
349
355
  source: V,
350
356
  function: H,
351
- targets: _e ? [G.trim()] : W
357
+ targets: $ ? [K.trim()] : W
352
358
  });
353
359
  },
354
360
  disabled: c
@@ -362,151 +368,151 @@ var j = /* @__PURE__ */ function(e) {
362
368
  hint: "_hint_nx0en_9",
363
369
  loading: "_loading_nx0en_13",
364
370
  ruleText: "_ruleText_nx0en_17"
365
- }, pe = 20, me = (e, t) => e === j.Equal ? t.equal : e === j.Contain ? t.contain : t.regex, he = ({ rules: e, onRulesChange: r, sourceOptions: s, folderName: u, disabled: p = !1, isLoading: m = !1, hasLoadError: ee = !1, maxRules: v = pe, maxTargetsPerRule: y, labels: x = {}, headingClassName: S = "dial-body-semi-text", hintClassName: C = "dial-small-text", loadingClassName: w = "dial-small-text", ruleTextClassName: E = "dial-small-text", ruleSourceClassName: ne = "dial-small-semi-text", styles: A = {} }) => {
366
- let ie = {
367
- ...te({
368
- "--par-rule-bg": A.colors?.ruleBackground,
369
- "--par-heading-text": A.colors?.headingText,
370
- "--par-hint-text": A.colors?.hintText,
371
- "--par-loading-text": A.colors?.loadingText,
372
- "--par-rule-text": A.colors?.ruleText
371
+ }, me = 20, Z = (e, t) => e === M.Equal ? t.equal : e === M.Contain ? t.contain : t.regex, he = ({ rules: e, onRulesChange: r, sourceOptions: s, folderName: u, disabled: p = !1, isLoading: m = !1, hasLoadError: h = !1, maxRules: y = me, maxTargetsPerRule: b, labels: x = {}, headingClassName: C = "dial-body-semi-text", hintClassName: ee = "dial-small-text", loadingClassName: w = "dial-small-text", ruleTextClassName: T = "dial-small-text", ruleSourceClassName: O = "dial-small-semi-text", styles: j = {} }) => {
372
+ let re = {
373
+ ...E({
374
+ "--par-rule-bg": j.colors?.ruleBackground,
375
+ "--par-heading-text": j.colors?.headingText,
376
+ "--par-hint-text": j.colors?.hintText,
377
+ "--par-loading-text": j.colors?.loadingText,
378
+ "--par-rule-text": j.colors?.ruleText
373
379
  }),
374
- ...A.cssVars
375
- }, { heading: j = "Allow access if all match", folderScopeHint: M = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: N = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: P = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: F = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: I = "Add rule", clearAllLabel: L = "Clear all", orSeparatorLabel: R = "Or", removeRuleAriaLabelTemplate: ae = "Remove rule for {source}: {targets}", equalFunctionLabel: z = "Equal", containFunctionLabel: B = "Contain", regexFunctionLabel: V = "Regex", loadingLabel: oe = "Loading existing rules…", loadErrorLabel: H = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: U = "Rule added.", ruleRemovedAnnouncement: W = "Rule removed.", rulesClearedAnnouncement: se = "All rules cleared.", rulesLoadedAnnouncement: G = "Existing rules loaded for the selected folder.", editorLabels: ce } = x, le = n(), [ue, K] = a(!1), [q, J] = a(""), de = i(null), Y = i(m);
380
+ ...j.cssVars
381
+ }, { heading: ie = "Allow access if all match", folderScopeHint: M = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: N = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: P = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: F = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: I = "Add rule", clearAllLabel: L = "Clear all", orSeparatorLabel: R = "Or", removeRuleAriaLabelTemplate: z = "Remove rule for {source}: {targets}", equalFunctionLabel: ae = "Equal", containFunctionLabel: B = "Contain", regexFunctionLabel: oe = "Regex", loadingLabel: V = "Loading existing rules…", loadErrorLabel: se = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: H = "Rule added.", ruleRemovedAnnouncement: U = "Rule removed.", rulesClearedAnnouncement: W = "All rules cleared.", rulesLoadedAnnouncement: G = "Existing rules loaded for the selected folder.", editorLabels: K } = x, q = n(), [ce, J] = a(!1), [Y, le] = a(""), ue = i(null), de = i(m);
376
382
  t(() => {
377
- Y.current && !m && e.length > 0 && J(G), Y.current = m;
383
+ de.current && !m && e.length > 0 && le(G), de.current = m;
378
384
  }, [
379
385
  m,
380
386
  e,
381
387
  G
382
388
  ]);
383
- let he = () => {
384
- de.current = document.activeElement, K(!0);
385
- }, Z = () => {
386
- K(!1), de.current?.focus?.();
389
+ let fe = () => {
390
+ ue.current = document.activeElement, J(!0);
391
+ }, he = () => {
392
+ J(!1), ue.current?.focus?.();
393
+ }, Q = (t) => {
394
+ r([...e, t]), le(H), he();
387
395
  }, ge = (t) => {
388
- r([...e, t]), J(U), Z();
389
- }, _e = (t) => {
390
- r(e.filter((e, n) => n !== t)), J(W);
391
- }, Q = () => {
392
- r([]), J(se);
396
+ r(e.filter((e, n) => n !== t)), le(U);
397
+ }, _e = () => {
398
+ r([]), le(W);
393
399
  }, ve = {
394
- equal: z,
400
+ equal: ae,
395
401
  contain: B,
396
- regex: V
397
- }, ye = e.length >= v, be = p || ye, xe = u != null && u !== "";
398
- return /* @__PURE__ */ O("div", {
402
+ regex: oe
403
+ }, $ = e.length >= y, ye = p || $, be = u != null && u !== "";
404
+ return /* @__PURE__ */ A("div", {
399
405
  role: "group",
400
- "aria-labelledby": le,
401
- style: ie,
402
- className: T(p && "pointer-events-none opacity-60"),
406
+ "aria-labelledby": q,
407
+ style: re,
408
+ className: D(p && "pointer-events-none opacity-60"),
403
409
  children: [
404
- /* @__PURE__ */ D("span", {
410
+ /* @__PURE__ */ k("span", {
405
411
  role: "status",
406
412
  "aria-live": "polite",
407
413
  className: "sr-only",
408
- children: q
414
+ children: Y
409
415
  }),
410
- /* @__PURE__ */ O("div", {
416
+ /* @__PURE__ */ A("div", {
411
417
  className: "mb-1 flex items-center justify-between gap-2",
412
- children: [/* @__PURE__ */ D("div", {
413
- id: le,
414
- className: T(S, X.heading),
415
- children: j
416
- }), e.length > 0 && /* @__PURE__ */ D(d, {
418
+ children: [/* @__PURE__ */ k("div", {
419
+ id: q,
420
+ className: D(C, X.heading),
421
+ children: ie
422
+ }), e.length > 0 && /* @__PURE__ */ k(d, {
417
423
  variant: o.Primary,
418
424
  label: L,
419
- onClick: Q,
425
+ onClick: _e,
420
426
  disabled: p
421
427
  })]
422
428
  }),
423
- /* @__PURE__ */ D("p", {
424
- className: T("mb-2", C, X.hint),
425
- children: xe ? M.replace("{folder}", u) : N
429
+ /* @__PURE__ */ k("p", {
430
+ className: D("mb-2", ee, X.hint),
431
+ children: be ? M.replace("{folder}", u) : N
426
432
  }),
427
- e.length > 0 && !xe && /* @__PURE__ */ D("div", {
433
+ e.length > 0 && !be && /* @__PURE__ */ k("div", {
428
434
  className: "mb-2",
429
- children: /* @__PURE__ */ D(h, {
430
- type: g.SectionMessage,
431
- variant: _.Warning,
435
+ children: /* @__PURE__ */ k(g, {
436
+ type: _.SectionMessage,
437
+ variant: v.Warning,
432
438
  message: P
433
439
  })
434
440
  }),
435
- m && /* @__PURE__ */ O("div", {
436
- className: T("mb-2 flex items-center gap-2", w, X.loading),
437
- children: [/* @__PURE__ */ D(b, {
441
+ m && /* @__PURE__ */ A("div", {
442
+ className: D("mb-2 flex items-center gap-2", w, X.loading),
443
+ children: [/* @__PURE__ */ k(S, {
438
444
  size: 16,
439
- ariaLabel: oe
440
- }), /* @__PURE__ */ D("span", { children: oe })]
445
+ ariaLabel: V
446
+ }), /* @__PURE__ */ k("span", { children: V })]
441
447
  }),
442
- ee && /* @__PURE__ */ D("div", {
448
+ h && /* @__PURE__ */ k("div", {
443
449
  className: "mb-2",
444
- children: /* @__PURE__ */ D(h, {
445
- type: g.SectionMessage,
446
- variant: _.Warning,
447
- message: H
450
+ children: /* @__PURE__ */ k(g, {
451
+ type: _.SectionMessage,
452
+ variant: v.Warning,
453
+ message: se
448
454
  })
449
455
  }),
450
- e.length > 0 && /* @__PURE__ */ D("ul", {
456
+ e.length > 0 && /* @__PURE__ */ k("ul", {
451
457
  className: "mb-3 flex flex-col gap-2",
452
458
  children: e.map((e, t) => {
453
- let n = e.targets.join(` ${R} `), r = ae.replace("{source}", e.source).replace("{targets}", n);
454
- return /* @__PURE__ */ O("li", {
455
- className: T("flex items-center justify-between gap-2 rounded-lg px-3 py-2", X.ruleRow),
456
- children: [/* @__PURE__ */ O("span", {
457
- className: T("truncate", E, X.ruleText),
459
+ let n = e.targets.join(` ${R} `), r = z.replace("{source}", e.source).replace("{targets}", n);
460
+ return /* @__PURE__ */ A("li", {
461
+ className: D("flex items-center justify-between gap-2 rounded-lg px-3 py-2", X.ruleRow),
462
+ children: [/* @__PURE__ */ A("span", {
463
+ className: D("truncate", T, X.ruleText),
458
464
  children: [
459
- /* @__PURE__ */ D("span", {
460
- className: ne,
465
+ /* @__PURE__ */ k("span", {
466
+ className: O,
461
467
  children: e.source
462
468
  }),
463
469
  " ",
464
- me(e.function, ve),
470
+ Z(e.function, ve),
465
471
  ": ",
466
472
  n
467
473
  ]
468
- }), /* @__PURE__ */ D(f, {
469
- icon: /* @__PURE__ */ D(re, {
474
+ }), /* @__PURE__ */ k(f, {
475
+ icon: /* @__PURE__ */ k(ne, {
470
476
  size: c.SM,
471
477
  "aria-hidden": !0,
472
478
  stroke: l
473
479
  }),
474
480
  "aria-label": r,
475
- onClick: () => _e(t),
481
+ onClick: () => ge(t),
476
482
  disabled: p
477
483
  })]
478
484
  }, t);
479
485
  })
480
486
  }),
481
- ue && /* @__PURE__ */ D(fe, {
487
+ ce && /* @__PURE__ */ k(pe, {
482
488
  sourceOptions: s,
483
- onSave: ge,
484
- onCancel: Z,
489
+ onSave: Q,
490
+ onCancel: he,
485
491
  disabled: p,
486
- maxTargets: y,
487
- labels: ce,
488
- styles: A.editor
492
+ maxTargets: b,
493
+ labels: K,
494
+ styles: j.editor
489
495
  }),
490
- /* @__PURE__ */ D("div", {
496
+ /* @__PURE__ */ k("div", {
491
497
  className: "flex flex-wrap items-center gap-2",
492
- children: /* @__PURE__ */ D(d, {
498
+ children: /* @__PURE__ */ k(d, {
493
499
  label: I,
494
- iconBefore: /* @__PURE__ */ D(k, {
500
+ iconBefore: /* @__PURE__ */ k(te, {
495
501
  size: c.SM,
496
502
  "aria-hidden": !0,
497
503
  stroke: l
498
504
  }),
499
- onClick: he,
500
- disabled: be
505
+ onClick: fe,
506
+ disabled: ye
501
507
  })
502
508
  }),
503
- ye && /* @__PURE__ */ D("p", {
504
- className: T("mt-2", C, X.hint),
505
- children: F.replace("{max}", String(v))
509
+ $ && /* @__PURE__ */ k("p", {
510
+ className: D("mt-2", ee, X.hint),
511
+ children: F.replace("{max}", String(y))
506
512
  })
507
513
  ]
508
514
  });
509
- }, Z = {
515
+ }, Q = {
510
516
  currentBadge: "_currentBadge_d0adf_1",
511
517
  sharedCredentialsBadge: "_sharedCredentialsBadge_d0adf_7",
512
518
  version: "_version_d0adf_13",
@@ -514,7 +520,7 @@ var j = /* @__PURE__ */ function(e) {
514
520
  emptyState: "_emptyState_d0adf_21",
515
521
  stripedRow: "_stripedRow_d0adf_25"
516
522
  }, ge = ({ 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 }) => {
517
- let m = te({
523
+ let m = E({
518
524
  "--phl-badge-border": p?.currentBadgeBorder,
519
525
  "--phl-badge-bg": p?.currentBadgeBackground,
520
526
  "--phl-badge-text": p?.currentBadgeText,
@@ -525,171 +531,171 @@ var j = /* @__PURE__ */ function(e) {
525
531
  "--phl-date-text": p?.dateText,
526
532
  "--phl-empty-text": p?.emptyStateText,
527
533
  "--phl-striped-bg": p?.stripedBackground
528
- }), h = T(f, Z.emptyState);
529
- return n ? /* @__PURE__ */ D("p", {
534
+ }), h = D(f, Q.emptyState);
535
+ return n ? /* @__PURE__ */ k("p", {
530
536
  style: m,
531
537
  className: h,
532
538
  children: c
533
- }) : r ? /* @__PURE__ */ D("p", {
539
+ }) : r ? /* @__PURE__ */ k("p", {
534
540
  style: m,
535
541
  className: h,
536
542
  role: "alert",
537
543
  children: l
538
- }) : e.length === 0 ? /* @__PURE__ */ D("p", {
544
+ }) : e.length === 0 ? /* @__PURE__ */ k("p", {
539
545
  style: m,
540
546
  className: h,
541
547
  children: s
542
- }) : /* @__PURE__ */ D("ul", {
548
+ }) : /* @__PURE__ */ k("ul", {
543
549
  style: m,
544
- children: e.map((e, n) => /* @__PURE__ */ O("li", {
545
- className: T("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Z.stripedRow),
546
- children: [/* @__PURE__ */ O("span", {
550
+ children: e.map((e, n) => /* @__PURE__ */ A("li", {
551
+ className: D("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Q.stripedRow),
552
+ children: [/* @__PURE__ */ A("span", {
547
553
  className: "flex min-w-0 items-center gap-2",
548
554
  style: m,
549
555
  children: [
550
- /* @__PURE__ */ O("span", {
551
- className: T(u, Z.version),
556
+ /* @__PURE__ */ A("span", {
557
+ className: D(u, Q.version),
552
558
  children: [
553
559
  i,
554
560
  " ",
555
561
  e.version
556
562
  ]
557
563
  }),
558
- e.version === t && /* @__PURE__ */ D(x, {
564
+ e.version === t && /* @__PURE__ */ k(C, {
559
565
  label: a,
560
- className: T("shrink-0 whitespace-nowrap", Z.currentBadge)
566
+ className: D("shrink-0 whitespace-nowrap", Q.currentBadge)
561
567
  }),
562
- e.publishCredentials === !0 && /* @__PURE__ */ D(x, {
568
+ e.publishCredentials === !0 && /* @__PURE__ */ k(C, {
563
569
  label: o,
564
- className: T("shrink-0 whitespace-nowrap", Z.sharedCredentialsBadge)
570
+ className: D("shrink-0 whitespace-nowrap", Q.sharedCredentialsBadge)
565
571
  })
566
572
  ]
567
- }), /* @__PURE__ */ D("span", {
568
- className: T(d, Z.date),
569
- children: F(e.publishedAt)
573
+ }), /* @__PURE__ */ k("span", {
574
+ className: D(d, Q.date),
575
+ children: I(e.publishedAt)
570
576
  })]
571
577
  }, `${e.version}-${n}`))
572
578
  });
573
579
  }, _e = {
574
580
  divider: "_divider_1gs31_1",
575
581
  tree: "_tree_1gs31_17"
576
- }, Q = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: o, searchQuery: s, disabled: u = !1, createFolderLabel: f = "Create new folder", cancelCreatingFolderLabel: p = "Cancel", addSiblingFolderLabel: m = "Add sibling", addChildFolderLabel: h = "Add child", newFolderDefaultName: g = "New folder", noResultsLabel: _ = "No folders match \"{query}\".", emptyFolderNameError: ee = "Folder name cannot be empty.", invalidFolderNameError: v = "Folder name contains invalid characters.", duplicateFolderNameError: y = "A folder with this name already exists.", rootLabel: b = "Organization", expandedPaths: x, onExpandedPathsChange: S, loadingPaths: C, styles: w = {} }) => {
577
- let E = {
578
- ...te({ "--pft-divider": w.colors?.divider }),
582
+ }, ve = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: o, searchQuery: s, disabled: u = !1, createFolderLabel: f = "Create new folder", cancelCreatingFolderLabel: p = "Cancel", addSiblingFolderLabel: m = "Add sibling", addChildFolderLabel: h = "Add child", newFolderDefaultName: g = "New folder", noResultsLabel: _ = "No folders match \"{query}\".", emptyFolderNameError: v = "Folder name cannot be empty.", invalidFolderNameError: y = "Folder name contains invalid characters.", duplicateFolderNameError: b = "A folder with this name already exists.", rootLabel: x = "Organization", expandedPaths: S, onExpandedPathsChange: C, loadingPaths: ee, styles: w = {} }) => {
583
+ let T = {
584
+ ...E({ "--pft-divider": w.colors?.divider }),
579
585
  ...w.cssVars
580
- }, [re, j] = a(() => new Set(t?.map((e, n) => U(t.slice(0, n + 1))) ?? [])), M = x ?? re, N = (e) => {
586
+ }, [O, ne] = a(() => new Set(t?.map((e, n) => U(t.slice(0, n + 1))) ?? [])), M = S ?? O, N = (e) => {
581
587
  let t = new Set(e);
582
- t.delete(""), S ? S(t) : j(t);
583
- }, [P, F] = a(null), [I, L] = a(g), R = i(null), z = s.trim(), V = P != null, oe = r(() => ae(e, s), [e, s]), G = z.length > 0 && oe.length === 0, K = !V && z.length > 0, q = r(() => B(K ? oe : e), [
588
+ t.delete(""), C ? C(t) : ne(t);
589
+ }, [P, F] = a(null), [I, L] = a(g), R = i(null), z = s.trim(), B = P != null, V = r(() => ae(e, s), [e, s]), se = z.length > 0 && V.length === 0, K = !B && z.length > 0, Y = r(() => oe(K ? V : e), [
584
590
  K,
585
- oe,
591
+ V,
586
592
  e
587
- ]), J = r(() => new Set(["", ...H(q)]), [q]), de = r(() => new Set(["", ...K ? J : M]), [
593
+ ]), le = r(() => new Set(["", ...H(Y)]), [Y]), ue = r(() => new Set(["", ...K ? le : M]), [
588
594
  K,
589
- J,
595
+ le,
590
596
  M
591
- ]), Y = r(() => se(q), [q]), fe = r(() => K && Y.length === 0 ? [] : [{
597
+ ]), de = r(() => G(Y), [Y]), fe = r(() => K && de.length === 0 ? [] : [{
592
598
  path: "",
593
- name: b,
599
+ name: x,
594
600
  folderId: "",
595
- nodeType: A.FOLDER,
596
- items: Y
601
+ nodeType: re.FOLDER,
602
+ items: de
597
603
  }], [
598
- Y,
599
- b,
604
+ de,
605
+ x,
600
606
  K
601
- ]), X = P ? U(P) : null, pe = {
602
- empty: ee,
603
- invalid: v,
604
- duplicate: y
605
- }, me = (t) => le(G && ce(z, [], pe) == null ? z : g, ue(e, t)), he = (e) => {
607
+ ]), pe = P ? U(P) : null, X = {
608
+ empty: v,
609
+ invalid: y,
610
+ duplicate: b
611
+ }, me = (t) => ce(se && q(z, [], X) == null ? z : g, J(e, t)), Z = (e) => {
606
612
  F(e), L(me(e)), R.current = null;
607
613
  let t = U(e);
608
614
  t && N(new Set(M).add(t));
609
- }, Z = () => he(t ?? []), ge = (e) => {
615
+ }, he = () => Z(t ?? []), Q = (e) => {
610
616
  let t = W(e.path), n = [{
611
617
  key: "add-child",
612
618
  label: h,
613
- icon: /* @__PURE__ */ D(ne, {
619
+ icon: /* @__PURE__ */ k(j, {
614
620
  size: c.SM,
615
621
  "aria-hidden": !0,
616
622
  stroke: l
617
623
  }),
618
- onClick: () => he(t)
624
+ onClick: () => Z(t)
619
625
  }];
620
626
  return e.path !== "" && n.push({
621
627
  key: "add-sibling",
622
628
  label: m,
623
- icon: /* @__PURE__ */ D(k, {
629
+ icon: /* @__PURE__ */ k(te, {
624
630
  size: c.SM,
625
631
  "aria-hidden": !0,
626
632
  stroke: l
627
633
  }),
628
- onClick: () => he(t.slice(0, -1))
634
+ onClick: () => Z(t.slice(0, -1))
629
635
  }), n;
630
- }, Q = (t) => {
636
+ }, ge = (t) => {
631
637
  if (!P) return null;
632
- let n = ce(t, ue(e, P), pe);
638
+ let n = q(t, J(e, P), X);
633
639
  return R.current = n, n;
634
640
  }, ve = (e) => {
635
641
  if (!P) return;
636
642
  let t = e.trim(), r = R.current;
637
- (Q(e) ?? r) || (o(P, t), n([...P, t])), F(null);
638
- }, ye = () => F(null);
639
- return /* @__PURE__ */ O("div", {
640
- style: E,
641
- className: T(u && "pointer-events-none opacity-60", w.className),
643
+ (ge(e) ?? r) || (o(P, t), n([...P, t])), F(null);
644
+ }, $ = () => F(null);
645
+ return /* @__PURE__ */ A("div", {
646
+ style: T,
647
+ className: D(u && "pointer-events-none opacity-60", w.className),
642
648
  children: [
643
- /* @__PURE__ */ D("div", {
644
- className: T("w-full min-w-0 max-w-full", _e.tree),
645
- children: /* @__PURE__ */ D(ie, {
649
+ /* @__PURE__ */ k("div", {
650
+ className: D("w-full min-w-0 max-w-full", _e.tree),
651
+ children: /* @__PURE__ */ k(ie, {
646
652
  items: fe,
647
653
  showFiles: !1,
648
654
  selectedPath: t == null ? void 0 : U(t),
649
- expandedPaths: de,
655
+ expandedPaths: ue,
650
656
  onExpandedPathsChange: N,
651
- loadingPaths: C,
657
+ loadingPaths: ee,
652
658
  onItemClick: (e) => {
653
659
  n(t != null && U(t) === e.path ? void 0 : W(e.path));
654
660
  },
655
- getContextMenuItems: ge,
656
- createdFolderPath: X,
661
+ getContextMenuItems: Q,
662
+ createdFolderPath: pe,
657
663
  newFolderDefaultName: I,
658
664
  onCreateFolderSave: ve,
659
- onCreateFolderCancel: ye,
660
- onRenameValidate: (e) => Q(e),
665
+ onCreateFolderCancel: $,
666
+ onRenameValidate: (e) => ge(e),
661
667
  emptyStateTitle: K ? _.replace("{query}", z) : void 0
662
668
  })
663
669
  }),
664
- /* @__PURE__ */ D("div", {
665
- className: T("my-2 h-px", _e.divider),
670
+ /* @__PURE__ */ k("div", {
671
+ className: D("my-2 h-px", _e.divider),
666
672
  "aria-hidden": !0
667
673
  }),
668
- /* @__PURE__ */ O("div", {
674
+ /* @__PURE__ */ A("div", {
669
675
  className: "mb-4 flex flex-wrap items-center gap-2",
670
- children: [/* @__PURE__ */ D(d, {
671
- onClick: Z,
676
+ children: [/* @__PURE__ */ k(d, {
677
+ onClick: he,
672
678
  label: f,
673
- iconBefore: /* @__PURE__ */ D(k, {
679
+ iconBefore: /* @__PURE__ */ k(te, {
674
680
  size: c.SM,
675
681
  "aria-hidden": !0,
676
682
  stroke: l
677
683
  }),
678
- disabled: u || V
679
- }), V && /* @__PURE__ */ D(d, {
684
+ disabled: u || B
685
+ }), B && /* @__PURE__ */ k(d, {
680
686
  label: p,
681
- onClick: ye,
687
+ onClick: $,
682
688
  disabled: u
683
689
  })]
684
690
  })
685
691
  ]
686
692
  });
687
- }, ve = { panel: "dial-publish-panel-panel" }, ye = {
693
+ }, $ = { panel: "dial-publish-panel-panel" }, ye = {
688
694
  summaryTitle: "_summaryTitle_tf20a_1",
689
695
  sectionHeading: "_sectionHeading_tf20a_5"
690
- }, be = 200, xe = ({ resource: e, renderSummary: t, folderItems: i, selectedFolderPath: o, onSelectedFolderPathChange: c, onCreateFolder: l, expandedPaths: u, onExpandedPathsChange: d, loadingPaths: f, hasExistingPublicationInFolder: m, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, allowReplace: b = !0, author: x, onAuthorChange: S, publishCredentials: w = !1, onPublishCredentialsChange: E, rules: ne, onRulesChange: k, ruleSourceOptions: re, isRulesLoading: A = !1, hasRulesLoadError: ie = !1, labels: j = {}, summaryTitleClassName: P = "dial-body-semi-text", headingClassName: F = "dial-body-semi-text", styles: I = {} }) => {
691
- let { colors: L, folderTree: R, accessRules: ae } = I, z = {
692
- ...te({
696
+ }, be = 200, xe = ({ resource: e, renderSummary: t, folderItems: i, selectedFolderPath: o, onSelectedFolderPathChange: c, onCreateFolder: l, expandedPaths: u, onExpandedPathsChange: d, loadingPaths: f, hasExistingPublicationInFolder: p, hasWriteAccess: h, isSubmitting: v, hasSubmitError: b = !1, allowReplace: x = !0, author: S, onAuthorChange: C, publishCredentials: ee = !1, onPublishCredentialsChange: T, rules: O, onRulesChange: j, ruleSourceOptions: te, isRulesLoading: ne = !1, hasRulesLoadError: re = !1, labels: ie = {}, summaryTitleClassName: M = "dial-body-semi-text", headingClassName: F = "dial-body-semi-text", styles: I = {} }) => {
697
+ let { colors: L, folderTree: R, accessRules: z } = I, ae = {
698
+ ...E({
693
699
  "--pp-summary-title-text": L?.summaryTitleText,
694
700
  "--pp-heading-text": L?.headingText
695
701
  }),
@@ -700,58 +706,58 @@ var j = /* @__PURE__ */ function(e) {
700
706
  versionTagBorder: L?.summaryVersionTagBorder,
701
707
  versionTagBackground: L?.summaryVersionTagBackground,
702
708
  versionTagText: L?.summaryVersionTagText
703
- }, { folderLabel: V = "Publish to folder", replaceWarning: oe = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: H = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: U = "Publishing failed. Please try again.", folderEmptyStateLabel: W, addSiblingFolderLabel: se, addChildFolderLabel: G, cancelCreatingFolderLabel: ce, createFolderEmptyNameError: le, createFolderInvalidNameError: ue, createFolderDuplicateNameError: K, rootFolderLabel: q = "Organization", summaryVersionLabel: J, accessRulesLabels: de, searchPlaceholder: Y, clearSearchAriaLabel: fe, authorLabel: X = "Author", authorPlaceholder: pe = "Author name", authorHint: me = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead.", credentialsLabel: Z = "Publish with my credentials", credentialsHint: ge = "Members will use this without signing in themselves. Your credential itself is never shown to them." } = j, [_e, xe] = a(""), Ce = n(), Te = (e) => {
704
- xe(e ?? "");
705
- }, Ee = o != null, $ = r(() => N({
706
- hasSelectedFolder: Ee,
707
- hasExistingPublicationInFolder: m,
708
- hasWriteAccess: _,
709
+ }, { folderLabel: oe = "Publish to folder", replaceWarning: V = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: se = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: H = "Publishing failed. Please try again.", folderEmptyStateLabel: U, addSiblingFolderLabel: W, addChildFolderLabel: G, cancelCreatingFolderLabel: K, createFolderEmptyNameError: q, createFolderInvalidNameError: ce, createFolderDuplicateNameError: J, rootFolderLabel: Y = "Organization", summaryVersionLabel: le, accessRulesLabels: ue, searchPlaceholder: de, clearSearchAriaLabel: fe, authorLabel: pe = "Author", authorPlaceholder: X = "Author name", authorHint: me = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead.", credentialsLabel: Z = "Publish with my credentials", credentialsHint: Q = "Members will use this without signing in themselves. Your credential itself is never shown to them." } = ie, [ge, _e] = a(""), xe = n(), Ce = (e) => {
710
+ _e(e ?? "");
711
+ }, Te = o != null, Ee = r(() => P({
712
+ hasSelectedFolder: Te,
713
+ hasExistingPublicationInFolder: p,
714
+ hasWriteAccess: h,
709
715
  isSubmitting: v,
710
- hasSubmitError: y,
711
- allowReplace: b
716
+ hasSubmitError: b,
717
+ allowReplace: x
712
718
  }), [
713
- Ee,
714
- m,
715
- _,
719
+ Te,
720
+ p,
721
+ h,
716
722
  v,
717
- y,
718
- b
719
- ]), De = Ee ? o[o.length - 1] ?? q : "", Oe = t ? t() : /* @__PURE__ */ D("span", {
720
- className: T("truncate", P, ye.summaryTitle),
723
+ b,
724
+ x
725
+ ]), De = Te ? o[o.length - 1] ?? Y : "", Oe = t ? t() : /* @__PURE__ */ k("span", {
726
+ className: D("truncate", M, ye.summaryTitle),
721
727
  children: e?.title
722
728
  });
723
- return /* @__PURE__ */ O("div", {
724
- className: T("flex flex-col gap-5", ve.panel),
725
- style: z,
726
- children: [e?.type == null ? /* @__PURE__ */ D(C, {
729
+ return /* @__PURE__ */ A("div", {
730
+ className: D("flex flex-col gap-5", $.panel),
731
+ style: ae,
732
+ children: [e?.type == null ? /* @__PURE__ */ k(w, {
727
733
  colors: B,
728
734
  children: Oe
729
- }) : /* @__PURE__ */ D(C, {
735
+ }) : /* @__PURE__ */ k(w, {
730
736
  item: {
731
737
  type: e.type,
732
738
  name: e.title,
733
739
  version: e.version ?? "",
734
740
  iconUrl: e.iconUrl
735
741
  },
736
- versionLabel: J,
742
+ versionLabel: le,
737
743
  colors: B
738
- }), /* @__PURE__ */ O("div", { children: [
739
- /* @__PURE__ */ D("div", {
740
- className: T("mb-2", F, ye.sectionHeading),
741
- children: V
744
+ }), /* @__PURE__ */ A("div", { children: [
745
+ /* @__PURE__ */ k("div", {
746
+ className: D("mb-2", F, ye.sectionHeading),
747
+ children: oe
742
748
  }),
743
- /* @__PURE__ */ D("div", {
749
+ /* @__PURE__ */ k("div", {
744
750
  role: "search",
745
751
  className: "mb-3",
746
- children: /* @__PURE__ */ D(ee, {
747
- value: _e,
748
- onChange: Te,
749
- placeholder: Y,
752
+ children: /* @__PURE__ */ k(y, {
753
+ value: ge,
754
+ onChange: Ce,
755
+ placeholder: de,
750
756
  clearLabel: fe,
751
- "aria-label": Y
757
+ "aria-label": de
752
758
  })
753
759
  }),
754
- /* @__PURE__ */ D(Q, {
760
+ /* @__PURE__ */ k(ve, {
755
761
  items: i,
756
762
  selectedPath: o,
757
763
  onSelectedPathChange: c,
@@ -759,112 +765,112 @@ var j = /* @__PURE__ */ function(e) {
759
765
  expandedPaths: u,
760
766
  onExpandedPathsChange: d,
761
767
  loadingPaths: f,
762
- searchQuery: _e,
768
+ searchQuery: ge,
763
769
  disabled: v,
764
- noResultsLabel: W,
765
- addSiblingFolderLabel: se,
770
+ noResultsLabel: U,
771
+ addSiblingFolderLabel: W,
766
772
  addChildFolderLabel: G,
767
- cancelCreatingFolderLabel: ce,
768
- emptyFolderNameError: le,
769
- invalidFolderNameError: ue,
770
- duplicateFolderNameError: K,
771
- rootLabel: q,
773
+ cancelCreatingFolderLabel: K,
774
+ emptyFolderNameError: q,
775
+ invalidFolderNameError: ce,
776
+ duplicateFolderNameError: J,
777
+ rootLabel: Y,
772
778
  styles: R
773
779
  }),
774
- $.calloutKind !== M.None && $.calloutKind !== M.Info && /* @__PURE__ */ D("div", {
780
+ Ee.calloutKind !== N.None && Ee.calloutKind !== N.Info && /* @__PURE__ */ k("div", {
775
781
  className: "mt-3",
776
- children: /* @__PURE__ */ D(h, {
777
- type: g.SectionMessage,
778
- variant: Se($.calloutKind),
779
- message: we($.calloutKind, {
780
- replaceWarning: oe,
781
- noAccessError: H,
782
- submitError: U,
782
+ children: /* @__PURE__ */ k(g, {
783
+ type: _.SectionMessage,
784
+ variant: Se(Ee.calloutKind),
785
+ message: we(Ee.calloutKind, {
786
+ replaceWarning: V,
787
+ noAccessError: se,
788
+ submitError: H,
783
789
  folderName: De,
784
790
  version: e?.version
785
791
  })
786
792
  })
787
793
  }),
788
- /* @__PURE__ */ D("div", {
794
+ /* @__PURE__ */ k("div", {
789
795
  className: "mt-4",
790
- children: /* @__PURE__ */ D(p, {
791
- id: Ce,
792
- labelProps: { label: X },
793
- placeholder: pe,
796
+ children: /* @__PURE__ */ k(m, {
797
+ id: xe,
798
+ labelProps: { label: pe },
799
+ placeholder: X,
794
800
  caption: me,
795
- value: x,
796
- onChange: (e) => S(e ?? ""),
801
+ value: S,
802
+ onChange: (e) => C(e ?? ""),
797
803
  maxLength: be,
798
804
  disabled: v
799
805
  })
800
806
  }),
801
- E != null && /* @__PURE__ */ D("div", {
807
+ T != null && /* @__PURE__ */ k("div", {
802
808
  className: "mt-4",
803
- children: /* @__PURE__ */ D(s, {
809
+ children: /* @__PURE__ */ k(s, {
804
810
  labelProps: { label: Z },
805
- caption: ge,
806
- isSelected: w,
807
- onChange: E,
811
+ caption: Q,
812
+ isSelected: ee,
813
+ onChange: T,
808
814
  disabled: v
809
815
  })
810
816
  }),
811
- /* @__PURE__ */ D("div", {
817
+ /* @__PURE__ */ k("div", {
812
818
  className: "mt-4",
813
- children: /* @__PURE__ */ D(he, {
814
- rules: ne,
815
- onRulesChange: k,
816
- sourceOptions: re,
817
- folderName: Ee ? De : void 0,
819
+ children: /* @__PURE__ */ k(he, {
820
+ rules: O,
821
+ onRulesChange: j,
822
+ sourceOptions: te,
823
+ folderName: Te ? De : void 0,
818
824
  disabled: v,
819
- isLoading: A,
820
- hasLoadError: ie,
821
- labels: de,
822
- styles: ae
825
+ isLoading: ne,
826
+ hasLoadError: re,
827
+ labels: ue,
828
+ styles: z
823
829
  })
824
830
  })
825
831
  ] })]
826
832
  });
827
- }, Se = (e) => e === M.ReplaceWarning ? _.Warning : _.Error, Ce = (e, t) => {
833
+ }, Se = (e) => e === N.ReplaceWarning ? v.Warning : v.Error, Ce = (e, t) => {
828
834
  let [n, r, ...i] = e.split("{folder}");
829
- return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ O(E, { children: [
835
+ return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ A(O, { children: [
830
836
  n,
831
- /* @__PURE__ */ D("strong", {
837
+ /* @__PURE__ */ k("strong", {
832
838
  className: "font-semibold",
833
839
  children: t
834
840
  }),
835
841
  r
836
842
  ] });
837
- }, we = (e, t) => e === M.ReplaceWarning ? Ce(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === M.NoAccess ? Ce(t.noAccessError, t.folderName) : t.submitError, Te = { footer: "_footer_dks1v_1" }, Ee = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
838
- let l = te({ "--pf-border": s?.border }), { cancelLabel: u = "Cancel", publishDefaultLabel: f = "Publish", updateLabel: p = "Update version {version}", publishingInProgressLabel: h = "Publishing…" } = o, g = r ? h : t && e != null ? p.replace("{version}", e) : f;
839
- return /* @__PURE__ */ O("div", {
843
+ }, we = (e, t) => e === N.ReplaceWarning ? Ce(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === N.NoAccess ? Ce(t.noAccessError, t.folderName) : t.submitError, Te = { footer: "_footer_dks1v_1" }, Ee = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
844
+ let l = E({ "--pf-border": s?.border }), { cancelLabel: u = "Cancel", publishDefaultLabel: f = "Publish", updateLabel: p = "Update version {version}", publishingInProgressLabel: m = "Publishing…" } = o, g = r ? m : t && e != null ? p.replace("{version}", e) : f;
845
+ return /* @__PURE__ */ A("div", {
840
846
  style: l,
841
- className: T("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", Te.footer),
842
- children: [/* @__PURE__ */ D(d, {
847
+ className: D("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", Te.footer),
848
+ children: [/* @__PURE__ */ k(d, {
843
849
  label: u,
844
850
  disabled: r,
845
851
  onClick: i
846
- }), /* @__PURE__ */ D(m, {
852
+ }), /* @__PURE__ */ k(h, {
847
853
  label: g,
848
854
  disabled: n,
849
- iconBefore: r ? /* @__PURE__ */ D(b, { size: c.SM }) : void 0,
855
+ iconBefore: r ? /* @__PURE__ */ k(S, { size: c.SM }) : void 0,
850
856
  onClick: a
851
857
  })]
852
858
  });
853
- }, $ = {
859
+ }, De = {
854
860
  backdrop: "_backdrop_16jmd_6",
855
861
  panel: "_panel_16jmd_10",
856
862
  divider: "_divider_16jmd_15",
857
863
  content: "_content_16jmd_19",
858
864
  title: "_title_16jmd_24"
859
- }, De = ({ isOpen: e, resource: n, renderSummary: i, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: c, onCreateFolder: l, expandedPaths: u, onExpandedPathsChange: d, loadingPaths: f, hasExistingPublicationInFolder: p, hasWriteAccess: m, isSubmitting: h, hasSubmitError: g = !1, allowReplace: _ = !0, author: ee, onAuthorChange: v, rules: b, onRulesChange: x, ruleSourceOptions: S, isRulesLoading: C = !1, hasRulesLoadError: w = !1, onClose: E, returnFocusRef: ne, onSubmit: k, panelLabels: re, panelStyles: A, footerLabels: ie, labels: j = {}, titleClassName: M = "dial-body-semi-text", colors: P }) => {
860
- let F = te({
861
- "--spp-backdrop-bg": P?.backdropBackground,
862
- "--spp-panel-bg": P?.panelBackground,
863
- "--spp-panel-border": P?.panelBorder,
864
- "--spp-divider-border": P?.dividerBorder,
865
- "--spp-scrollbar-thumb": P?.scrollbarThumb,
866
- "--spp-title-text": P?.titleText
867
- }), [I, L] = a(null), { title: R = "Publish", ariaLabel: ae = "Publish", closeAriaLabel: z = "Close" } = j, B = r(() => N({
865
+ }, Oe = ({ isOpen: e, resource: n, renderSummary: i, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: c, onCreateFolder: l, expandedPaths: u, onExpandedPathsChange: d, loadingPaths: f, hasExistingPublicationInFolder: p, hasWriteAccess: m, isSubmitting: h, hasSubmitError: g = !1, allowReplace: _ = !0, author: v, onAuthorChange: y, rules: b, onRulesChange: S, ruleSourceOptions: C, isRulesLoading: ee = !1, hasRulesLoadError: w = !1, onClose: T, returnFocusRef: O, onSubmit: j, panelLabels: te, panelStyles: ne, footerLabels: re, labels: ie = {}, titleClassName: M = "dial-body-semi-text", colors: N }) => {
866
+ let F = E({
867
+ "--spp-backdrop-bg": N?.backdropBackground,
868
+ "--spp-panel-bg": N?.panelBackground,
869
+ "--spp-panel-border": N?.panelBorder,
870
+ "--spp-divider-border": N?.dividerBorder,
871
+ "--spp-scrollbar-thumb": N?.scrollbarThumb,
872
+ "--spp-title-text": N?.titleText
873
+ }), [I, L] = a(null), { title: R = "Publish", ariaLabel: z = "Publish", closeAriaLabel: ae = "Close" } = ie, B = r(() => P({
868
874
  hasSelectedFolder: s != null,
869
875
  hasExistingPublicationInFolder: p,
870
876
  hasWriteAccess: m,
@@ -890,36 +896,36 @@ var j = /* @__PURE__ */ function(e) {
890
896
  document.addEventListener("focusin", r);
891
897
  let i = requestAnimationFrame(() => {
892
898
  document.removeEventListener("focusin", r);
893
- }), a = ne?.current;
899
+ }), a = O?.current;
894
900
  return () => {
895
901
  cancelAnimationFrame(i), document.removeEventListener("focusin", r), a?.isConnected && a.focus({ preventScroll: !0 });
896
902
  };
897
903
  }, [
898
904
  e,
899
905
  I,
900
- ne
901
- ]), /* @__PURE__ */ O(y, {
906
+ O
907
+ ]), /* @__PURE__ */ A(x, {
902
908
  open: e,
903
- onClose: E,
904
- header: /* @__PURE__ */ D("span", {
905
- className: T("block truncate text-center", M, $.title),
909
+ onClose: T,
910
+ header: /* @__PURE__ */ k("span", {
911
+ className: D("block truncate text-center", M, De.title),
906
912
  children: R
907
913
  }),
908
- ariaLabel: ae,
909
- closeAriaLabel: z,
914
+ ariaLabel: z,
915
+ closeAriaLabel: ae,
910
916
  closeDisabled: h,
911
917
  style: F,
912
918
  overlayStyle: F,
913
- className: $.panel,
914
- overlayClassName: $.backdrop,
915
- headerClassName: T("px-[22px]", $.divider),
919
+ className: De.panel,
920
+ overlayClassName: De.backdrop,
921
+ headerClassName: D("px-[22px]", De.divider),
916
922
  bodyClassName: "flex flex-col overflow-hidden",
917
- children: [/* @__PURE__ */ D("div", {
923
+ children: [/* @__PURE__ */ k("div", {
918
924
  ref: L,
919
- className: T("min-h-0 flex-1 overflow-y-auto", $.content),
920
- children: /* @__PURE__ */ D("div", {
925
+ className: D("min-h-0 flex-1 overflow-y-auto", De.content),
926
+ children: /* @__PURE__ */ k("div", {
921
927
  className: "p-[22px]",
922
- children: /* @__PURE__ */ D(xe, {
928
+ children: /* @__PURE__ */ k(xe, {
923
929
  resource: n,
924
930
  renderSummary: i,
925
931
  folderItems: o,
@@ -934,27 +940,27 @@ var j = /* @__PURE__ */ function(e) {
934
940
  isSubmitting: h,
935
941
  hasSubmitError: g,
936
942
  allowReplace: _,
937
- author: ee,
938
- onAuthorChange: v,
943
+ author: v,
944
+ onAuthorChange: y,
939
945
  rules: b,
940
- onRulesChange: x,
941
- ruleSourceOptions: S,
942
- isRulesLoading: C,
946
+ onRulesChange: S,
947
+ ruleSourceOptions: C,
948
+ isRulesLoading: ee,
943
949
  hasRulesLoadError: w,
944
- labels: re,
945
- styles: A
950
+ labels: te,
951
+ styles: ne
946
952
  })
947
953
  })
948
- }), /* @__PURE__ */ D(Ee, {
954
+ }), /* @__PURE__ */ k(Ee, {
949
955
  version: n?.version,
950
956
  hasExistingPublicationInFolder: p,
951
957
  isSubmitDisabled: B.isSubmitDisabled,
952
958
  isSubmitLoading: B.isSubmitLoading,
953
- onCancel: E,
954
- onSubmit: k,
955
- labels: ie
959
+ onCancel: T,
960
+ onSubmit: j,
961
+ labels: re
956
962
  })]
957
963
  });
958
964
  };
959
965
  //#endregion
960
- export { ve as PUBLISH_PANEL_CLASS, j as PublicationRuleFunction, fe as PublishAccessRuleEditor, he as PublishAccessRules, M as PublishCalloutKind, Q as PublishFoldersTree, Ee as PublishFooter, ge as PublishHistoryList, xe as PublishPanel, De as StandalonePublishPanel, H as collectFolderKeys, N as derivePublishState, ae as filterFolderTree, F as formatPublishedDate, W as fromFolderPathKey, ue as getSiblingFolderNames, le as getUniqueFolderName, oe as mergeFolderPaths, B as sortFolderTree, se as toDialFileTree, U as toFolderPathKey, R as usePublishFlow, ce as validateFolderName };
966
+ export { $ as PUBLISH_PANEL_CLASS, M as PublicationRuleFunction, pe as PublishAccessRuleEditor, he as PublishAccessRules, N as PublishCalloutKind, ve as PublishFoldersTree, Ee as PublishFooter, ge as PublishHistoryList, xe as PublishPanel, Oe as StandalonePublishPanel, H as collectFolderKeys, P as derivePublishState, ae as filterFolderTree, I as formatPublishedDate, W as fromFolderPathKey, J as getSiblingFolderNames, ce as getUniqueFolderName, se as mergeFolderPaths, oe as sortFolderTree, G as toDialFileTree, U as toFolderPathKey, z as usePublishFlow, q as validateFolderName };