@epam/ai-dial-publish-panel 1.1.0-dev.475 → 1.1.0-dev.479

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,9 +1,9 @@
1
1
  import * as e from "react";
2
2
  import { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
3
- import { BASE_ICON_SIZE as d, ButtonAppearance as f, ButtonDropdown as p, ButtonVariant as m, CloseButton as h, CollapsibleSidebar as g, ConditionalResizableContainer as _, ConfirmationPopup as v, ConfirmationPopupVariant as y, DEFAULT_DATE_FORMAT_OPTIONS as b, DEFAULT_DATE_LOCALE as x, DIAL_ICON_SIZE as S, DIAL_KIT_ICON_STROKE as C, DateCellRenderer as w, DialBreadcrumb as T, DialFileIcon as E, DialFileName as D, DialFileNodeType as O, DialFolderName as k, DialIcon as A, DialItemType as j, DialSharedEntityIndicator as M, Dropdown as N, DropdownItemType as P, DropdownTrigger as F, ElementSize as I, EllipsisTooltip as L, FlexibleActionsDirection as R, GRID_SELECTION_COLUMN_ID as z, GhostButton as ee, GhostIconButton as B, Grid as te, Input as V, NOT_ALLOWED_SYMBOLS_REGEXP as ne, NeutralButton as re, NoDataContent as ie, Notification as ae, NotificationType as oe, NotificationVariant as se, Popup as ce, PopupSize as H, PrimaryButton as le, RadioGroup as ue, Search as de, Select as fe, Skeleton as pe, SkeletonVariant as me, Spinner as he, Switch as ge, Tabs as _e, Tag as ve, TagInput as ye, Tooltip as be, TooltipContainer as xe, TooltipContent as Se, TooltipPlacement as Ce, TooltipTrigger as we, convertToDate as Te, editableContainerProps as Ee, mergeClasses as De, useEditableItem as Oe } from "@epam/ai-dial-ui-kit";
4
- import { ResourceSummary as ke, TAG_INPUT_TAG_CLASS_NAME as Ae, buildCssVars as je, mergeClasses as U } from "@epam/ai-dial-chat-shared";
5
- import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
6
- import { IconAlertCircleFilled as Me, IconAlertTriangleFilled as Ne, IconArrowLeft as Pe, IconCaretRightFilled as Fe, IconChevronDown as Ie, IconCircleFilled as Le, IconCopy as Re, IconCopyMinus as ze, IconDotsVertical as Be, IconDownload as Ve, IconExternalLink as He, IconEye as Ue, IconEyeOff as We, IconFile as Ge, IconFileDescription as Ke, IconFileZip as qe, IconFolder as Je, IconFolderPlus as Ye, IconInfoCircle as Xe, IconPencilMinus as Ze, IconPlus as Qe, IconTrashX as $e, IconUserX as q, IconX as et } from "@tabler/icons-react";
3
+ import { BASE_ICON_SIZE as d, ButtonAppearance as f, ButtonDropdown as p, ButtonVariant as m, CloseButton as h, CollapsibleSidebar as g, ConditionalResizableContainer as _, ConfirmationPopup as v, ConfirmationPopupVariant as y, DEFAULT_DATE_FORMAT_OPTIONS as b, DEFAULT_DATE_LOCALE as x, DIAL_ICON_SIZE as S, DIAL_KIT_ICON_STROKE as C, DateCellRenderer as w, DialBreadcrumb as T, DialFileIcon as E, DialFileName as D, DialFileNodeType as O, DialFolderName as k, DialIcon as A, DialItemType as j, DialSharedEntityIndicator as M, Dropdown as N, DropdownItemType as P, DropdownTrigger as F, ElementSize as I, EllipsisTooltip as L, FlexibleActionsDirection as R, GRID_SELECTION_COLUMN_ID as z, GhostButton as ee, GhostIconButton as B, Grid as te, Input as V, NOT_ALLOWED_SYMBOLS_REGEXP as H, NeutralButton as ne, NoDataContent as re, Notification as ie, NotificationType as ae, NotificationVariant as oe, Popup as se, PopupSize as U, PrimaryButton as ce, RadioGroup as le, Search as ue, Select as de, Skeleton as fe, SkeletonVariant as pe, Spinner as me, Switch as he, Tabs as ge, Tag as _e, TagInput as ve, Tooltip as ye, TooltipContainer as be, TooltipContent as xe, TooltipPlacement as Se, TooltipTrigger as Ce, convertToDate as we, editableContainerProps as Te, mergeClasses as Ee, useEditableItem as De } from "@epam/ai-dial-ui-kit";
4
+ import { ResourceSummary as Oe, TAG_INPUT_TAG_CLASS_NAME as ke, buildCssVars as Ae, mergeClasses as W } from "@epam/ai-dial-chat-shared";
5
+ import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
6
+ import { IconAlertCircleFilled as je, IconAlertTriangleFilled as Me, IconArrowLeft as Ne, IconCaretRightFilled as Pe, IconChevronDown as Fe, IconCircleFilled as Ie, IconCopy as Le, IconCopyMinus as Re, IconDotsVertical as ze, IconDownload as Be, IconExternalLink as Ve, IconEye as He, IconEyeOff as Ue, IconFile as We, IconFileDescription as Ge, IconFileZip as Ke, IconFolder as qe, IconFolderPlus as Je, IconInfoCircle as Ye, IconPencilMinus as Xe, IconPlus as Ze, IconTrashX as Qe, IconUserX as $e, IconX as et } from "@tabler/icons-react";
7
7
  import { createPortal as tt } from "react-dom";
8
8
  //#region \0rolldown/runtime.js
9
9
  var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, at = Object.getOwnPropertyNames, ot = Object.getPrototypeOf, st = Object.prototype.hasOwnProperty, ct = (e, t) => () => (e && (t = e(e = 0)), t), lt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ut = (e, t) => {
@@ -231,7 +231,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
231
231
  }
232
232
  }, Rt = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: o = Pt, labels: s = {}, errorClassName: d = "dial-small-text", styles: f = {} }) => {
233
233
  let p = {
234
- ...je({
234
+ ...Ae({
235
235
  "--pare-mobile-bg": f.colors?.mobileBackground,
236
236
  "--pare-bg": f.colors?.background,
237
237
  "--pare-error-text": f.colors?.errorText,
@@ -245,10 +245,10 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
245
245
  i(() => {
246
246
  F.current?.focus();
247
247
  }, []);
248
- let [I, L] = u(), [R, z] = u(), [B, te] = u([]), [ne, ie] = u(""), [ae, oe] = u(!1), [se, ce] = u(!1), [H, le] = u(!1), ue = U(Nt.selectField, ae && Nt.selectFieldOpen), de = U(Nt.selectField, se && Nt.selectFieldOpen), pe = c(() => e.map((e) => ({
248
+ let [I, L] = u(), [R, z] = u(), [B, te] = u([]), [H, re] = u(""), [ie, ae] = u(!1), [oe, se] = u(!1), [U, ce] = u(!1), le = W(Nt.selectField, ie && Nt.selectFieldOpen), ue = W(Nt.selectField, oe && Nt.selectFieldOpen), fe = c(() => e.map((e) => ({
249
249
  value: e,
250
250
  label: e
251
- })), [e]), me = c(() => [
251
+ })), [e]), pe = c(() => [
252
252
  {
253
253
  value: mt.Equal,
254
254
  label: _
@@ -265,8 +265,8 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
265
265
  _,
266
266
  v,
267
267
  y
268
- ]), he = R === mt.Regex, ge = Lt(ne), _e = I != null && R != null && (he ? ge : B.length > 0);
269
- return /* @__PURE__ */ K("div", {
268
+ ]), me = R === mt.Regex, he = Lt(H), ge = I != null && R != null && (me ? he : B.length > 0);
269
+ return /* @__PURE__ */ q("div", {
270
270
  ref: F,
271
271
  role: "dialog",
272
272
  "aria-modal": "true",
@@ -276,64 +276,64 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
276
276
  e.key === "Escape" && (e.stopPropagation(), n());
277
277
  },
278
278
  style: p,
279
- className: U("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", Nt.dialog),
279
+ className: W("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", Nt.dialog),
280
280
  children: [
281
- /* @__PURE__ */ G(fe, {
281
+ /* @__PURE__ */ K(de, {
282
282
  id: M,
283
283
  labelProps: { label: m },
284
- options: pe,
284
+ options: fe,
285
285
  value: I,
286
286
  onChange: (e) => {
287
- L(Array.isArray(e) ? e[0] : e), oe(!1);
287
+ L(Array.isArray(e) ? e[0] : e), ae(!1);
288
288
  },
289
289
  placeholder: h,
290
290
  searchable: e.length > It,
291
291
  searchPlaceholder: h,
292
292
  disabled: r,
293
- open: ae,
294
- onOpenChange: oe,
295
- fieldClassName: ue,
296
- invalid: H && I == null,
297
- error: H && I == null ? E : void 0
293
+ open: ie,
294
+ onOpenChange: ae,
295
+ fieldClassName: le,
296
+ invalid: U && I == null,
297
+ error: U && I == null ? E : void 0
298
298
  }),
299
- /* @__PURE__ */ G(fe, {
299
+ /* @__PURE__ */ K(de, {
300
300
  labelProps: { label: g },
301
301
  id: N,
302
- options: me,
302
+ options: pe,
303
303
  value: R,
304
304
  onChange: (e) => {
305
305
  let t = Array.isArray(e) ? e[0] : e;
306
- R === mt.Regex != (t === mt.Regex) && (te([]), ie("")), z(t), ce(!1);
306
+ R === mt.Regex != (t === mt.Regex) && (te([]), re("")), z(t), se(!1);
307
307
  },
308
308
  placeholder: g,
309
309
  disabled: r,
310
- open: se,
311
- onOpenChange: ce,
312
- fieldClassName: de,
313
- invalid: H && R == null,
314
- error: H && R == null ? E : void 0
310
+ open: oe,
311
+ onOpenChange: se,
312
+ fieldClassName: ue,
313
+ invalid: U && R == null,
314
+ error: U && R == null ? E : void 0
315
315
  }),
316
- he ? /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(V, {
316
+ me ? /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(V, {
317
317
  id: `${j}-input`,
318
318
  labelProps: { label: C },
319
319
  placeholder: w,
320
- value: ne,
321
- onChange: (e) => ie(e ?? ""),
322
- invalid: (ne.length > 0 || H) && !ge,
323
- "aria-describedby": (ne.length > 0 || H) && !ge ? j : void 0,
320
+ value: H,
321
+ onChange: (e) => re(e ?? ""),
322
+ invalid: (H.length > 0 || U) && !he,
323
+ "aria-describedby": (H.length > 0 || U) && !he ? j : void 0,
324
324
  disabled: r
325
- }), (ne.length > 0 || H) && !ge && /* @__PURE__ */ G("span", {
325
+ }), (H.length > 0 || U) && !he && /* @__PURE__ */ K("span", {
326
326
  id: j,
327
327
  role: "alert",
328
- className: U("mt-1 block", d, Nt.error),
328
+ className: W("mt-1 block", d, Nt.error),
329
329
  children: T
330
- })] }) : /* @__PURE__ */ G(ye, {
330
+ })] }) : /* @__PURE__ */ K(ve, {
331
331
  id: P,
332
332
  labelProps: { label: b },
333
333
  placeholder: x,
334
- caption: H && B.length === 0 ? void 0 : S,
335
- error: H && B.length === 0 ? D : void 0,
336
- invalid: H && B.length === 0,
334
+ caption: U && B.length === 0 ? void 0 : S,
335
+ error: U && B.length === 0 ? D : void 0,
336
+ invalid: U && B.length === 0,
337
337
  value: B,
338
338
  onChange: (e) => {
339
339
  let t = [];
@@ -344,25 +344,25 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
344
344
  te(t);
345
345
  },
346
346
  disabled: r,
347
- tagClassName: Ae
347
+ tagClassName: ke
348
348
  }),
349
- /* @__PURE__ */ K("div", {
349
+ /* @__PURE__ */ q("div", {
350
350
  className: "mt-auto flex justify-end gap-2 desktop:mt-2",
351
- children: [/* @__PURE__ */ G(ee, {
351
+ children: [/* @__PURE__ */ K(ee, {
352
352
  label: k,
353
353
  onClick: n,
354
354
  disabled: r
355
- }), /* @__PURE__ */ G(re, {
355
+ }), /* @__PURE__ */ K(ne, {
356
356
  label: O,
357
357
  onClick: () => {
358
- if (!_e || I == null || R == null) {
359
- le(!0);
358
+ if (!ge || I == null || R == null) {
359
+ ce(!0);
360
360
  return;
361
361
  }
362
362
  t({
363
363
  source: I,
364
364
  function: R,
365
- targets: he ? [ne.trim()] : B
365
+ targets: me ? [H.trim()] : B
366
366
  });
367
367
  },
368
368
  disabled: r
@@ -378,7 +378,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
378
378
  ruleText: "_ruleText_nx0en_17"
379
379
  }, Bt = 20, Vt = (e, t) => e === mt.Equal ? t.equal : e === mt.Contain ? t.contain : t.regex, Ht = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: o = !1, isLoading: s = !1, hasLoadError: c = !1, maxRules: d = Bt, maxTargetsPerRule: f, labels: p = {}, headingClassName: h = "dial-body-semi-text", hintClassName: g = "dial-small-text", loadingClassName: _ = "dial-small-text", ruleTextClassName: v = "dial-small-text", ruleSourceClassName: y = "dial-small-semi-text", styles: b = {} }) => {
380
380
  let x = {
381
- ...je({
381
+ ...Ae({
382
382
  "--par-rule-bg": b.colors?.ruleBackground,
383
383
  "--par-heading-text": b.colors?.headingText,
384
384
  "--par-hint-text": b.colors?.hintText,
@@ -386,136 +386,136 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
386
386
  "--par-rule-text": b.colors?.ruleText
387
387
  }),
388
388
  ...b.cssVars
389
- }, { heading: w = "Allow access if all match", folderScopeHint: T = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: E = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: D = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: O = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: k = "Add rule", clearAllLabel: A = "Clear all", orSeparatorLabel: j = "Or", removeRuleAriaLabelTemplate: M = "Remove rule for {source}: {targets}", equalFunctionLabel: N = "Equal", containFunctionLabel: P = "Contain", regexFunctionLabel: F = "Regex", loadingLabel: I = "Loading existing rules…", loadErrorLabel: L = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: R = "Rule added.", ruleRemovedAnnouncement: z = "Rule removed.", rulesClearedAnnouncement: te = "All rules cleared.", rulesLoadedAnnouncement: V = "Existing rules loaded for the selected folder.", editorLabels: ne } = p, re = a(), [ie, ce] = u(!1), [H, le] = u(""), ue = l(null), de = l(s);
389
+ }, { heading: w = "Allow access if all match", folderScopeHint: T = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: E = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: D = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: O = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: k = "Add rule", clearAllLabel: A = "Clear all", orSeparatorLabel: j = "Or", removeRuleAriaLabelTemplate: M = "Remove rule for {source}: {targets}", equalFunctionLabel: N = "Equal", containFunctionLabel: P = "Contain", regexFunctionLabel: F = "Regex", loadingLabel: I = "Loading existing rules…", loadErrorLabel: L = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: R = "Rule added.", ruleRemovedAnnouncement: z = "Rule removed.", rulesClearedAnnouncement: te = "All rules cleared.", rulesLoadedAnnouncement: V = "Existing rules loaded for the selected folder.", editorLabels: H } = p, ne = a(), [re, se] = u(!1), [U, ce] = u(""), le = l(null), ue = l(s);
390
390
  i(() => {
391
- de.current && !s && e.length > 0 && le(V), de.current = s;
391
+ ue.current && !s && e.length > 0 && ce(V), ue.current = s;
392
392
  }, [
393
393
  s,
394
394
  e,
395
395
  V
396
396
  ]);
397
- let fe = () => {
398
- ue.current = document.activeElement, ce(!0);
399
- }, pe = () => {
400
- ce(!1), ue.current?.focus?.();
401
- }, me = (n) => {
402
- t([...e, n]), le(R), pe();
403
- }, ge = (n) => {
404
- t(e.filter((e, t) => t !== n)), le(z);
405
- }, _e = () => {
406
- t([]), le(te);
407
- }, ve = {
397
+ let de = () => {
398
+ le.current = document.activeElement, se(!0);
399
+ }, fe = () => {
400
+ se(!1), le.current?.focus?.();
401
+ }, pe = (n) => {
402
+ t([...e, n]), ce(R), fe();
403
+ }, he = (n) => {
404
+ t(e.filter((e, t) => t !== n)), ce(z);
405
+ }, ge = () => {
406
+ t([]), ce(te);
407
+ }, _e = {
408
408
  equal: N,
409
409
  contain: P,
410
410
  regex: F
411
- }, ye = e.length >= d, be = o || ye, xe = r != null && r !== "";
412
- return /* @__PURE__ */ K("div", {
411
+ }, ve = e.length >= d, ye = o || ve, be = r != null && r !== "";
412
+ return /* @__PURE__ */ q("div", {
413
413
  role: "group",
414
- "aria-labelledby": re,
414
+ "aria-labelledby": ne,
415
415
  style: x,
416
- className: U(o && "pointer-events-none opacity-60"),
416
+ className: W(o && "pointer-events-none opacity-60"),
417
417
  children: [
418
- /* @__PURE__ */ G("span", {
418
+ /* @__PURE__ */ K("span", {
419
419
  role: "status",
420
420
  "aria-live": "polite",
421
421
  className: "sr-only",
422
- children: H
422
+ children: U
423
423
  }),
424
- /* @__PURE__ */ K("div", {
424
+ /* @__PURE__ */ q("div", {
425
425
  className: "mb-1 flex items-center justify-between gap-2",
426
- children: [/* @__PURE__ */ G("div", {
427
- id: re,
428
- className: U(h, zt.heading),
426
+ children: [/* @__PURE__ */ K("div", {
427
+ id: ne,
428
+ className: W(h, zt.heading),
429
429
  children: w
430
- }), e.length > 0 && /* @__PURE__ */ G(ee, {
430
+ }), e.length > 0 && /* @__PURE__ */ K(ee, {
431
431
  variant: m.Primary,
432
432
  label: A,
433
- onClick: _e,
433
+ onClick: ge,
434
434
  disabled: o
435
435
  })]
436
436
  }),
437
- /* @__PURE__ */ G("p", {
438
- className: U("mb-2", g, zt.hint),
439
- children: xe ? T.replace("{folder}", r) : E
437
+ /* @__PURE__ */ K("p", {
438
+ className: W("mb-2", g, zt.hint),
439
+ children: be ? T.replace("{folder}", r) : E
440
440
  }),
441
- e.length > 0 && !xe && /* @__PURE__ */ G("div", {
441
+ e.length > 0 && !be && /* @__PURE__ */ K("div", {
442
442
  className: "mb-2",
443
- children: /* @__PURE__ */ G(ae, {
444
- type: oe.SectionMessage,
445
- variant: se.Warning,
443
+ children: /* @__PURE__ */ K(ie, {
444
+ type: ae.SectionMessage,
445
+ variant: oe.Warning,
446
446
  message: D
447
447
  })
448
448
  }),
449
- s && /* @__PURE__ */ K("div", {
450
- className: U("mb-2 flex items-center gap-2", _, zt.loading),
451
- children: [/* @__PURE__ */ G(he, {
449
+ s && /* @__PURE__ */ q("div", {
450
+ className: W("mb-2 flex items-center gap-2", _, zt.loading),
451
+ children: [/* @__PURE__ */ K(me, {
452
452
  size: 16,
453
453
  ariaLabel: I
454
- }), /* @__PURE__ */ G("span", { children: I })]
454
+ }), /* @__PURE__ */ K("span", { children: I })]
455
455
  }),
456
- c && /* @__PURE__ */ G("div", {
456
+ c && /* @__PURE__ */ K("div", {
457
457
  className: "mb-2",
458
- children: /* @__PURE__ */ G(ae, {
459
- type: oe.SectionMessage,
460
- variant: se.Warning,
458
+ children: /* @__PURE__ */ K(ie, {
459
+ type: ae.SectionMessage,
460
+ variant: oe.Warning,
461
461
  message: L
462
462
  })
463
463
  }),
464
- e.length > 0 && /* @__PURE__ */ G("ul", {
464
+ e.length > 0 && /* @__PURE__ */ K("ul", {
465
465
  className: "mb-3 flex flex-col gap-2",
466
466
  children: e.map((e, t) => {
467
467
  let n = e.targets.join(` ${j} `), r = M.replace("{source}", e.source).replace("{targets}", n);
468
- return /* @__PURE__ */ K("li", {
469
- className: U("flex items-center justify-between gap-2 rounded-lg px-3 py-2", zt.ruleRow),
470
- children: [/* @__PURE__ */ K("span", {
471
- className: U("truncate", v, zt.ruleText),
468
+ return /* @__PURE__ */ q("li", {
469
+ className: W("flex items-center justify-between gap-2 rounded-lg px-3 py-2", zt.ruleRow),
470
+ children: [/* @__PURE__ */ q("span", {
471
+ className: W("truncate", v, zt.ruleText),
472
472
  children: [
473
- /* @__PURE__ */ G("span", {
473
+ /* @__PURE__ */ K("span", {
474
474
  className: y,
475
475
  children: e.source
476
476
  }),
477
477
  " ",
478
- Vt(e.function, ve),
478
+ Vt(e.function, _e),
479
479
  ": ",
480
480
  n
481
481
  ]
482
- }), /* @__PURE__ */ G(B, {
483
- icon: /* @__PURE__ */ G($e, {
482
+ }), /* @__PURE__ */ K(B, {
483
+ icon: /* @__PURE__ */ K(Qe, {
484
484
  size: S.SM,
485
485
  "aria-hidden": !0,
486
486
  stroke: C
487
487
  }),
488
488
  "aria-label": r,
489
- onClick: () => ge(t),
489
+ onClick: () => he(t),
490
490
  disabled: o
491
491
  })]
492
492
  }, t);
493
493
  })
494
494
  }),
495
- ie && /* @__PURE__ */ G(Rt, {
495
+ re && /* @__PURE__ */ K(Rt, {
496
496
  sourceOptions: n,
497
- onSave: me,
498
- onCancel: pe,
497
+ onSave: pe,
498
+ onCancel: fe,
499
499
  disabled: o,
500
500
  maxTargets: f,
501
- labels: ne,
501
+ labels: H,
502
502
  styles: b.editor
503
503
  }),
504
- /* @__PURE__ */ G("div", {
504
+ /* @__PURE__ */ K("div", {
505
505
  className: "flex flex-wrap items-center gap-2",
506
- children: /* @__PURE__ */ G(ee, {
506
+ children: /* @__PURE__ */ K(ee, {
507
507
  label: k,
508
- iconBefore: /* @__PURE__ */ G(Qe, {
508
+ iconBefore: /* @__PURE__ */ K(Ze, {
509
509
  size: S.SM,
510
510
  "aria-hidden": !0,
511
511
  stroke: C
512
512
  }),
513
- onClick: fe,
514
- disabled: be
513
+ onClick: de,
514
+ disabled: ye
515
515
  })
516
516
  }),
517
- ye && /* @__PURE__ */ G("p", {
518
- className: U("mt-2", g, zt.hint),
517
+ ve && /* @__PURE__ */ K("p", {
518
+ className: W("mt-2", g, zt.hint),
519
519
  children: O.replace("{max}", String(d))
520
520
  })
521
521
  ]
@@ -527,7 +527,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
527
527
  emptyState: "_emptyState_eo6mj_15",
528
528
  stripedRow: "_stripedRow_eo6mj_19"
529
529
  }, Wt = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateLabel: o = "Not published to this folder yet — this will be the first version here.", loadingLabel: s = "Loading history…", errorLabel: c = "Failed to load publish history.", versionClassName: l = "dial-small-text", dateClassName: u = "dial-small-text", emptyStateClassName: d = "dial-small-text", colors: f }) => {
530
- let p = je({
530
+ let p = Ae({
531
531
  "--phl-badge-border": f?.currentBadgeBorder,
532
532
  "--phl-badge-bg": f?.currentBadgeBackground,
533
533
  "--phl-badge-text": f?.currentBadgeText,
@@ -535,40 +535,40 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
535
535
  "--phl-date-text": f?.dateText,
536
536
  "--phl-empty-text": f?.emptyStateText,
537
537
  "--phl-striped-bg": f?.stripedBackground
538
- }), m = U(d, Ut.emptyState);
539
- return n ? /* @__PURE__ */ G("p", {
538
+ }), m = W(d, Ut.emptyState);
539
+ return n ? /* @__PURE__ */ K("p", {
540
540
  style: p,
541
541
  className: m,
542
542
  children: s
543
- }) : r ? /* @__PURE__ */ G("p", {
543
+ }) : r ? /* @__PURE__ */ K("p", {
544
544
  style: p,
545
545
  className: m,
546
546
  role: "alert",
547
547
  children: c
548
- }) : e.length === 0 ? /* @__PURE__ */ G("p", {
548
+ }) : e.length === 0 ? /* @__PURE__ */ K("p", {
549
549
  style: p,
550
550
  className: m,
551
551
  children: o
552
- }) : /* @__PURE__ */ G("ul", {
552
+ }) : /* @__PURE__ */ K("ul", {
553
553
  style: p,
554
- children: e.map((e, n) => /* @__PURE__ */ K("li", {
555
- className: U("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Ut.stripedRow),
556
- children: [/* @__PURE__ */ K("span", {
554
+ children: e.map((e, n) => /* @__PURE__ */ q("li", {
555
+ className: W("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Ut.stripedRow),
556
+ children: [/* @__PURE__ */ q("span", {
557
557
  className: "flex min-w-0 items-center gap-2",
558
558
  style: p,
559
- children: [/* @__PURE__ */ K("span", {
560
- className: U(l, Ut.version),
559
+ children: [/* @__PURE__ */ q("span", {
560
+ className: W(l, Ut.version),
561
561
  children: [
562
562
  i,
563
563
  " ",
564
564
  e.version
565
565
  ]
566
- }), e.version === t && /* @__PURE__ */ G(ve, {
566
+ }), e.version === t && /* @__PURE__ */ K(_e, {
567
567
  label: a,
568
- className: U("shrink-0 whitespace-nowrap", Ut.currentBadge)
568
+ className: W("shrink-0 whitespace-nowrap", Ut.currentBadge)
569
569
  })]
570
- }), /* @__PURE__ */ G("span", {
571
- className: U(u, Ut.date),
570
+ }), /* @__PURE__ */ K("span", {
571
+ className: W(u, Ut.date),
572
572
  children: vt(e.publishedAt)
573
573
  })]
574
574
  }, `${e.version}-${n}`))
@@ -8376,9 +8376,9 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8376
8376
  mn.Author,
8377
8377
  mn.Actions
8378
8378
  ], $ = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))($ || {}), Pn = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(Pn || {}), Fn = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(Fn || {}), In = ({ open: e, onClose: t, onReplace: r, onDuplicate: i, onDecideForEach: a, conflictingFiles: o, singleFileTitle: s = "Replace Or Duplicate Item", multipleFilesTitle: l = "Replace Or Duplicate Items", message: d, actionLabels: f, strategyLabels: p, confirmLabel: m = "Confirm", cancelLabel: h = "Cancel", nameColumnLabel: g = "Name", actionColumnLabel: _ = "Action" }) => {
8379
- let v = o.length === 1, y = v ? o[0]?.name : "", b = f?.[Q.Replace] ?? "Replace", x = f?.[Q.Duplicate] ?? "Duplicate", C = f?.[Q.Cancel] ?? "Cancel", w = p?.[ln.ReplaceAll] ?? "Replace all", T = p?.[ln.DuplicateAll] ?? "Duplicate all", E = p?.[ln.DecideForEach] ?? "Decide for each", [O, A] = u(Q.Replace), [j, M] = u(ln.ReplaceAll), [P, I] = u(new Map(o.map((e) => [e.path, Q.Replace]))), [L, R] = u(void 0), z = v ? s : l, ee = /* @__PURE__ */ K(W, { children: [
8379
+ let v = o.length === 1, y = v ? o[0]?.name : "", b = f?.[Q.Replace] ?? "Replace", x = f?.[Q.Duplicate] ?? "Duplicate", C = f?.[Q.Cancel] ?? "Cancel", w = p?.[ln.ReplaceAll] ?? "Replace all", T = p?.[ln.DuplicateAll] ?? "Duplicate all", E = p?.[ln.DecideForEach] ?? "Decide for each", [O, A] = u(Q.Replace), [j, M] = u(ln.ReplaceAll), [P, I] = u(new Map(o.map((e) => [e.path, Q.Replace]))), [L, R] = u(void 0), z = v ? s : l, ee = /* @__PURE__ */ q(G, { children: [
8380
8380
  "Item with the name ",
8381
- /* @__PURE__ */ K("span", {
8381
+ /* @__PURE__ */ q("span", {
8382
8382
  className: "text-primary",
8383
8383
  children: [
8384
8384
  "\"",
@@ -8388,19 +8388,19 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8388
8388
  }),
8389
8389
  " ",
8390
8390
  "already exists in this destination."
8391
- ] }), B = `${o.length} items with the same names already exist in this destination.`, V = d ?? (v ? ee : B), ne = c(() => [{
8391
+ ] }), B = `${o.length} items with the same names already exist in this destination.`, V = d ?? (v ? ee : B), H = c(() => [{
8392
8392
  value: Q.Replace,
8393
8393
  label: b
8394
8394
  }, {
8395
8395
  value: Q.Duplicate,
8396
8396
  label: x
8397
- }], [b, x]), ie = c(() => o.map((e) => ({
8397
+ }], [b, x]), re = c(() => o.map((e) => ({
8398
8398
  id: e.path,
8399
8399
  name: e.name,
8400
8400
  path: e.path,
8401
8401
  nodeType: e.nodeType ?? $.ITEM,
8402
8402
  action: P.get(e.path) || Q.Replace
8403
- })), [o, P]), ae = c(() => [{
8403
+ })), [o, P]), ie = c(() => [{
8404
8404
  field: "name",
8405
8405
  headerName: g,
8406
8406
  flex: 1,
@@ -8408,10 +8408,10 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8408
8408
  floatingFilter: !1,
8409
8409
  filter: !1,
8410
8410
  resizable: !1,
8411
- cellRenderer: (e) => e.data?.nodeType === $.FOLDER ? /* @__PURE__ */ G(k, {
8411
+ cellRenderer: (e) => e.data?.nodeType === $.FOLDER ? /* @__PURE__ */ K(k, {
8412
8412
  name: e.data.name,
8413
8413
  iconSize: wn
8414
- }) : /* @__PURE__ */ G(D, {
8414
+ }) : /* @__PURE__ */ K(D, {
8415
8415
  name: e.data.name,
8416
8416
  iconSize: wn
8417
8417
  })
@@ -8430,7 +8430,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8430
8430
  {
8431
8431
  key: Q.Replace,
8432
8432
  label: b,
8433
- icon: /* @__PURE__ */ G(Le, {
8433
+ icon: /* @__PURE__ */ K(Ie, {
8434
8434
  size: 10,
8435
8435
  className: "text-violet-1"
8436
8436
  })
@@ -8438,7 +8438,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8438
8438
  {
8439
8439
  key: Q.Duplicate,
8440
8440
  label: x,
8441
- icon: /* @__PURE__ */ G(Le, {
8441
+ icon: /* @__PURE__ */ K(Ie, {
8442
8442
  size: 10,
8443
8443
  className: "text-success"
8444
8444
  })
@@ -8446,15 +8446,15 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8446
8446
  {
8447
8447
  key: Q.Cancel,
8448
8448
  label: C,
8449
- icon: /* @__PURE__ */ G(Le, {
8449
+ icon: /* @__PURE__ */ K(Ie, {
8450
8450
  size: 10,
8451
8451
  className: "text-error"
8452
8452
  })
8453
8453
  }
8454
8454
  ], n = t.find((t) => t.key === e.data.action), r = L === e.data.path;
8455
- return /* @__PURE__ */ G("div", {
8455
+ return /* @__PURE__ */ K("div", {
8456
8456
  className: "flex items-center h-full",
8457
- children: /* @__PURE__ */ G(N, {
8457
+ children: /* @__PURE__ */ K(N, {
8458
8458
  trigger: [F.Click],
8459
8459
  open: r,
8460
8460
  items: t,
@@ -8470,13 +8470,13 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8470
8470
  onOpenChange: (t) => {
8471
8471
  R(t ? e.data.path : void 0);
8472
8472
  },
8473
- children: /* @__PURE__ */ K("button", {
8473
+ children: /* @__PURE__ */ q("button", {
8474
8474
  type: "button",
8475
8475
  className: "flex items-center gap-2",
8476
- children: [/* @__PURE__ */ K("span", {
8476
+ children: [/* @__PURE__ */ q("span", {
8477
8477
  className: "flex items-center gap-2",
8478
8478
  children: [n?.icon, n?.label ?? b]
8479
- }), /* @__PURE__ */ G(Ie, {
8479
+ }), /* @__PURE__ */ K(Fe, {
8480
8480
  size: S.SM,
8481
8481
  stroke: sn,
8482
8482
  className: (0, $t.default)("text-secondary transition-transform", r && "rotate-180")
@@ -8492,7 +8492,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8492
8492
  x,
8493
8493
  C,
8494
8494
  L
8495
- ]), oe = c(() => [
8495
+ ]), ae = c(() => [
8496
8496
  {
8497
8497
  value: ln.ReplaceAll,
8498
8498
  label: w
@@ -8504,9 +8504,9 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8504
8504
  {
8505
8505
  value: ln.DecideForEach,
8506
8506
  label: E,
8507
- content: /* @__PURE__ */ G(te, {
8508
- columnDefs: ae,
8509
- rowData: ie,
8507
+ content: /* @__PURE__ */ K(te, {
8508
+ columnDefs: ie,
8509
+ rowData: re,
8510
8510
  getRowId: (e) => e.id,
8511
8511
  wrapCustomCellRenderers: !1,
8512
8512
  alternateOddRowColors: !1,
@@ -8517,19 +8517,19 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8517
8517
  w,
8518
8518
  T,
8519
8519
  E,
8520
- ae,
8521
- ie
8522
- ]), se = n(() => {
8520
+ ie,
8521
+ re
8522
+ ]), oe = n(() => {
8523
8523
  A(Q.Replace), M(ln.ReplaceAll), I(new Map(o.map((e) => [e.path, Q.Replace])));
8524
- }, [o]), de = n(() => {
8525
- se(), t();
8526
- }, [se, t]), fe = n(() => {
8527
- se(), v ? O === Q.Replace ? r() : i() : j === ln.ReplaceAll ? r() : j === ln.DuplicateAll ? i() : j === ln.DecideForEach && a && a(o.map((e) => ({
8524
+ }, [o]), ue = n(() => {
8525
+ oe(), t();
8526
+ }, [oe, t]), de = n(() => {
8527
+ oe(), v ? O === Q.Replace ? r() : i() : j === ln.ReplaceAll ? r() : j === ln.DuplicateAll ? i() : j === ln.DecideForEach && a && a(o.map((e) => ({
8528
8528
  file: e,
8529
8529
  action: P.get(e.path) || Q.Replace
8530
8530
  })));
8531
8531
  }, [
8532
- se,
8532
+ oe,
8533
8533
  v,
8534
8534
  O,
8535
8535
  r,
@@ -8539,38 +8539,38 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8539
8539
  o,
8540
8540
  P
8541
8541
  ]);
8542
- return /* @__PURE__ */ G(ce, {
8542
+ return /* @__PURE__ */ K(se, {
8543
8543
  open: e,
8544
- onClose: de,
8545
- size: v ? H.Sm : H.Md,
8544
+ onClose: ue,
8545
+ size: v ? U.Sm : U.Md,
8546
8546
  className: (0, $t.default)([!v && "w-[600px]"]),
8547
8547
  header: z,
8548
8548
  preventKeyboardOnOpen: !0,
8549
- footer: /* @__PURE__ */ K("div", {
8549
+ footer: /* @__PURE__ */ q("div", {
8550
8550
  className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary",
8551
- children: [/* @__PURE__ */ G(re, {
8552
- onClick: de,
8551
+ children: [/* @__PURE__ */ K(ne, {
8552
+ onClick: ue,
8553
8553
  label: h
8554
- }), /* @__PURE__ */ G(le, {
8555
- onClick: fe,
8554
+ }), /* @__PURE__ */ K(ce, {
8555
+ onClick: de,
8556
8556
  label: m
8557
8557
  })]
8558
8558
  }),
8559
- children: /* @__PURE__ */ K("div", {
8559
+ children: /* @__PURE__ */ q("div", {
8560
8560
  className: "px-6 py-4",
8561
- children: [/* @__PURE__ */ G("p", {
8561
+ children: [/* @__PURE__ */ K("p", {
8562
8562
  className: "text-secondary mb-4 break-words",
8563
8563
  children: V
8564
- }), v ? /* @__PURE__ */ G(ue, {
8564
+ }), v ? /* @__PURE__ */ K(le, {
8565
8565
  id: "single-file-conflict",
8566
8566
  ariaLabel: z,
8567
- items: ne,
8567
+ items: H,
8568
8568
  value: O,
8569
8569
  onChange: (e) => A(e)
8570
- }) : /* @__PURE__ */ G(ue, {
8570
+ }) : /* @__PURE__ */ K(le, {
8571
8571
  id: "multiple-files-conflict",
8572
8572
  ariaLabel: z,
8573
- items: oe,
8573
+ items: ae,
8574
8574
  value: j,
8575
8575
  onChange: (e) => M(e),
8576
8576
  contentClassName: "ml-0"
@@ -8585,7 +8585,7 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8585
8585
  let u = n((e) => {
8586
8586
  if (!e.data || t(e.data, r, a)) return null;
8587
8587
  let n = e.data ? s.current?.(e.data) ?? [] : [];
8588
- return n.length ? /* @__PURE__ */ G(N, {
8588
+ return n.length ? /* @__PURE__ */ K(N, {
8589
8589
  placement: "bottom-start",
8590
8590
  allowedPlacements: [
8591
8591
  "top-start",
@@ -8593,8 +8593,8 @@ var nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDe
8593
8593
  "bottom-start"
8594
8594
  ],
8595
8595
  items: n,
8596
- className: De("sticky right-0", o),
8597
- children: /* @__PURE__ */ G(B, { icon: /* @__PURE__ */ G(Be, { ...X }) })
8596
+ className: Ee("sticky right-0", o),
8597
+ children: /* @__PURE__ */ K(B, { icon: /* @__PURE__ */ K(ze, { ...X }) })
8598
8598
  }) : null;
8599
8599
  }, [
8600
8600
  r,
@@ -8661,11 +8661,19 @@ var Bn = (e, t) => {
8661
8661
  for (let e of r) t.push(e), e.nodeType === $.FOLDER && n(e);
8662
8662
  };
8663
8663
  return n(e), t;
8664
- }, Gn = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), Kn = (e) => {
8664
+ }, Gn = (e, t) => {
8665
+ if (!e?.length) return [];
8666
+ if (!t?.length) return e;
8667
+ let n = new Set(t), r = (e) => e.filter((e) => !n.has(e.path)).map((e) => e.items?.length ? {
8668
+ ...e,
8669
+ items: r(e.items)
8670
+ } : e);
8671
+ return r(e);
8672
+ }, Kn = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), qn = (e) => {
8665
8673
  if (!e) return "0 bytes";
8666
8674
  let t = 1024, n = t * 1024;
8667
8675
  return e >= n ? `${(e / n).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
8668
- }, qn = (e, t = "en-US", n = {
8676
+ }, Jn = (e, t = "en-US", n = {
8669
8677
  year: "numeric",
8670
8678
  month: "short",
8671
8679
  day: "2-digit"
@@ -8677,7 +8685,7 @@ var Bn = (e, t) => {
8677
8685
  return e;
8678
8686
  }
8679
8687
  };
8680
- function Jn(e, t, n) {
8688
+ function Yn(e, t, n) {
8681
8689
  if (!e || e.includes("*/*")) return !0;
8682
8690
  let r = t.toLowerCase(), i = n && n.includes(".") ? `.${n.split(".").at(-1).toLowerCase()}` : void 0;
8683
8691
  return e.some((e) => {
@@ -8690,21 +8698,21 @@ function Jn(e, t, n) {
8690
8698
  return r === t;
8691
8699
  });
8692
8700
  }
8693
- var Yn = (e) => e?.map((e) => e.endsWith("/*") ? e.replace("/*", "s") : Xn(e).flat().map((e) => `.${e}`)).flat().join(", ") || "", Xn = (e) => {
8701
+ var Xn = (e) => e?.map((e) => e.endsWith("/*") ? e.replace("/*", "s") : Zn(e).flat().map((e) => `.${e}`)).flat().join(", ") || "", Zn = (e) => {
8694
8702
  let [t, n] = e.split("/");
8695
8703
  return t === "*" ? ["all"] : n === "*" ? Object.entries(en.extensions).reduce((e, [n, r]) => {
8696
8704
  let [i] = n.split("/");
8697
8705
  return i === t && e.push(...r), e;
8698
8706
  }, []) : en.extensions[e] || [];
8699
- }, Zn = (e) => {
8707
+ }, Qn = (e) => {
8700
8708
  if (!e) return;
8701
8709
  let t = e.flags.replace(/[gy]/g, "");
8702
8710
  return new RegExp(e.source, t);
8703
8711
  };
8704
- function Qn(e, t, n) {
8705
- if (t && Zn(t)?.test(e.name)) return n ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
8712
+ function $n(e, t, n) {
8713
+ if (t && Qn(t)?.test(e.name)) return n ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
8706
8714
  }
8707
- var $n = (e) => {
8715
+ var er = (e) => {
8708
8716
  let t = e.lastIndexOf("/");
8709
8717
  return t >= 0 ? {
8710
8718
  parent: e.slice(0, t),
@@ -8713,31 +8721,31 @@ var $n = (e) => {
8713
8721
  parent: "",
8714
8722
  name: e
8715
8723
  };
8716
- }, er = (e, t, n) => {
8717
- let r = !e.contentLength || n == null || e.contentLength <= n, i = !e.contentType || Jn(t, e.contentType, e.name);
8724
+ }, tr = (e, t, n) => {
8725
+ let r = !e.contentLength || n == null || e.contentLength <= n, i = !e.contentType || Yn(t, e.contentType, e.name);
8718
8726
  return r && i;
8719
- }, tr = (e, t, n, r, i) => {
8727
+ }, nr = (e, t, n, r, i) => {
8720
8728
  if (e.nodeType === $.FOLDER) return;
8721
8729
  let a = !e.contentLength || n == null || e.contentLength <= n;
8722
- if (!(!e.contentType || Jn(t, e.contentType, e.name))) return r ?? (t?.length ? `Unsupported file type. Supported types: ${Yn(t)}.` : "Unsupported file type.");
8723
- if (!a) return i ?? `File is too large. Maximum size: ${Kn(n)}.`;
8724
- }, nr = new Intl.Collator(void 0, {
8730
+ if (!(!e.contentType || Yn(t, e.contentType, e.name))) return r ?? (t?.length ? `Unsupported file type. Supported types: ${Xn(t)}.` : "Unsupported file type.");
8731
+ if (!a) return i ?? `File is too large. Maximum size: ${qn(n)}.`;
8732
+ }, rr = new Intl.Collator(void 0, {
8725
8733
  sensitivity: "base",
8726
8734
  numeric: !0
8727
- }), rr = (e, t, n, r, i) => {
8735
+ }), ir = (e, t, n, r, i) => {
8728
8736
  if (typeof e == "string" && typeof t == "string" && e && t) {
8729
- let n = nr.compare(e, t);
8737
+ let n = rr.compare(e, t);
8730
8738
  return n === 0 ? 0 : n > 0 ? 1 : -1;
8731
8739
  }
8732
8740
  return e === t ? 0 : e ? t ? e > t ? 1 : -1 : i ? 1 : -1 : i ? -1 : 1;
8733
- }, ir = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, ar = (e) => {
8741
+ }, ar = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, or = (e) => {
8734
8742
  let t = `${Dn} `, n = RegExp(`^${Dn} (\\d+)$`), r = new Set(e.map((e) => e.name.toLowerCase())), i = e.map((e) => {
8735
8743
  let t = e.name.match(n);
8736
8744
  return t ? parseInt(t[1], 10) : 0;
8737
8745
  }).reduce((e, t) => Math.max(e, t), 0), a = `${t}${i + 1}`, o = i + 1;
8738
8746
  for (; r.has(a.toLowerCase());) o++, a = `${t}${o}`;
8739
8747
  return a;
8740
- }, or = (e) => {
8748
+ }, sr = (e) => {
8741
8749
  let [t, r] = u(e?.showHiddenFiles ?? !1), i = !!e?.onShowHiddenFilesChange, a = i ? e.showHiddenFiles ?? !1 : t, o = n((t) => {
8742
8750
  i ? e?.onShowHiddenFilesChange?.(t) : r(t);
8743
8751
  }, [i, e]);
@@ -8753,7 +8761,7 @@ var $n = (e) => {
8753
8761
  ]),
8754
8762
  setAreHiddenFilesVisible: o
8755
8763
  };
8756
- }, sr = (e) => {
8764
+ }, cr = (e) => {
8757
8765
  let [t, r] = u(e?.collapsed ?? !1), i = !!e?.onCollapseChange, a = i ? e.collapsed ?? !1 : t, o = n((t) => {
8758
8766
  i ? e?.onCollapseChange?.(t) : r(t);
8759
8767
  }, [i, e]);
@@ -8769,7 +8777,7 @@ var $n = (e) => {
8769
8777
  ]),
8770
8778
  setIsTreeCollapsed: o
8771
8779
  };
8772
- }, cr = (e, t, n) => {
8780
+ }, lr = (e, t, n) => {
8773
8781
  if (!t.has(e)) return e;
8774
8782
  let r = n === $.FOLDER ? (e, t) => `${e} (${t})` : (e, t) => {
8775
8783
  let n = e.lastIndexOf("."), r = n > 0;
@@ -8779,21 +8787,21 @@ var $n = (e) => {
8779
8787
  let i = r(e, n);
8780
8788
  if (!t.has(i)) return i;
8781
8789
  }
8782
- }, lr = (e) => e.name, ur = ({ getDestinationFiles: e, onResolve: t }) => {
8790
+ }, ur = (e) => e.name, dr = ({ getDestinationFiles: e, onResolve: t }) => {
8783
8791
  let [r, i] = u([]), [a, o] = u(!1), [s, c] = u(null), d = l(!1), f = n((e) => {
8784
8792
  d.current = !0, i(e), o(!0);
8785
8793
  }, []), p = n(() => {
8786
8794
  d.current = !1, o(!1), i([]), c(null);
8787
8795
  }, []), m = n((t, n) => {
8788
- let r = e(t), i = new Set(r.map(lr)), a = n.filter((e) => i.has(e.name));
8796
+ let r = e(t), i = new Set(r.map(ur)), a = n.filter((e) => i.has(e.name));
8789
8797
  return {
8790
8798
  hasConflicts: a.length > 0,
8791
8799
  conflicts: a
8792
8800
  };
8793
8801
  }, [e]), h = n((t, n, r, i) => {
8794
- let a = e(t), o = new Set(a.map(lr));
8802
+ let a = e(t), o = new Set(a.map(ur));
8795
8803
  return n.map((e) => {
8796
- let n = e.name, a = o.has(n), s = r && a ? n : cr(n, o, e.nodeType);
8804
+ let n = e.name, a = o.has(n), s = r && a ? n : lr(n, o, e.nodeType);
8797
8805
  return (!r || !a) && o.add(s), {
8798
8806
  sourceUrl: e.path,
8799
8807
  destinationUrl: `${t}/${s}`,
@@ -8803,9 +8811,9 @@ var $n = (e) => {
8803
8811
  };
8804
8812
  });
8805
8813
  }, [e]), g = n((t, n, r, i) => {
8806
- let a = e(t), o = new Set(a.map(lr));
8814
+ let a = e(t), o = new Set(a.map(ur));
8807
8815
  return n.filter((e) => r.get(e.path) !== Q.Cancel).map((e) => {
8808
- let n = r.get(e.path), a = o.has(e.name), s = n === Q.Replace && a, c = s ? e.name : cr(e.name, o, e.nodeType);
8816
+ let n = r.get(e.path), a = o.has(e.name), s = n === Q.Replace && a, c = s ? e.name : lr(e.name, o, e.nodeType);
8809
8817
  return s || o.add(c), {
8810
8818
  sourceUrl: e.path,
8811
8819
  destinationUrl: `${t}/${c}`,
@@ -8874,8 +8882,8 @@ var $n = (e) => {
8874
8882
  p
8875
8883
  ])
8876
8884
  };
8877
- }, dr = ({ getDestinationFiles: e, onCopyFiles: t, onMoveToFiles: r, onCopySuccess: i, onMoveSuccess: a, onDuplicateSuccess: o, getCopyHeader: s, getMoveHeader: c }) => {
8878
- let [l, d] = u(!1), [f, p] = u([]), [m, h] = u([]), [g, _] = u(un.Copy), [v, y] = u(), [b, x] = u(null), { conflictingFiles: S, conflictResolutionOpen: C, hasActiveConflictRef: w, startConflictResolution: T, resolveConflictsWithStrategy: E, closeConflictResolution: D, openConflictResolution: O, handleReplaceAll: k, handleDuplicateAll: A, handleCancelAll: j, handleDecideForEach: M } = ur({
8885
+ }, fr = ({ getDestinationFiles: e, onCopyFiles: t, onMoveToFiles: r, onCopySuccess: i, onMoveSuccess: a, onDuplicateSuccess: o, getCopyHeader: s, getMoveHeader: c }) => {
8886
+ let [l, d] = u(!1), [f, p] = u([]), [m, h] = u([]), [g, _] = u(un.Copy), [v, y] = u(), [b, x] = u(null), { conflictingFiles: S, conflictResolutionOpen: C, hasActiveConflictRef: w, startConflictResolution: T, resolveConflictsWithStrategy: E, closeConflictResolution: D, openConflictResolution: O, handleReplaceAll: k, handleDuplicateAll: A, handleCancelAll: j, handleDecideForEach: M } = dr({
8879
8887
  getDestinationFiles: e,
8880
8888
  onResolve: (e, n) => {
8881
8889
  e?.length && (b?.type === un.Copy ? (t?.(e, n), i?.()) : b?.type === un.Move && b.sourceFolder && (r?.(e, b.sourceFolder, n), a?.()));
@@ -8931,7 +8939,7 @@ var $n = (e) => {
8931
8939
  _(e), d(!0);
8932
8940
  }, []), te = n(() => {
8933
8941
  d(!1), w.current || N();
8934
- }, [N, w]), [V, ne] = u();
8942
+ }, [N, w]), [V, H] = u();
8935
8943
  return {
8936
8944
  handleDuplicate: ee,
8937
8945
  handleCloseDestinationFolderPopup: te,
@@ -8942,7 +8950,7 @@ var $n = (e) => {
8942
8950
  destinationFolderMode: g,
8943
8951
  destinationFolderTitle: V,
8944
8952
  handleSetCopiedFiles: n((e) => {
8945
- p(e), y(e[0]?.parentPath ?? e[0]?.folderId), s && e.length > 0 ? ne(s(e.length, e[0]?.name)) : ne(void 0);
8953
+ p(e), y(e[0]?.parentPath ?? e[0]?.folderId), s && e.length > 0 ? H(s(e.length, e[0]?.name)) : H(void 0);
8946
8954
  }, [s]),
8947
8955
  handleSetMovedFiles: n((e) => {
8948
8956
  h(e);
@@ -8950,7 +8958,7 @@ var $n = (e) => {
8950
8958
  y(t), x({
8951
8959
  type: un.Move,
8952
8960
  sourceFolder: t
8953
- }), c && e.length > 0 ? ne(c(e.length, e[0]?.name)) : ne(void 0);
8961
+ }), c && e.length > 0 ? H(c(e.length, e[0]?.name)) : H(void 0);
8954
8962
  }, [c]),
8955
8963
  clearState: N,
8956
8964
  conflictingFiles: S,
@@ -8963,7 +8971,7 @@ var $n = (e) => {
8963
8971
  handleConflictDecideForEach: z,
8964
8972
  sourceFolder: v
8965
8973
  };
8966
- }, fr = ({ path: e, defaultPath: t, onPathChange: r, onSelectionClear: i }) => {
8974
+ }, pr = ({ path: e, defaultPath: t, onPathChange: r, onSelectionClear: i }) => {
8967
8975
  let a = e !== void 0, [o, s] = u(t), c = a ? e : o, l = n((e) => {
8968
8976
  a || s(e), r?.(e);
8969
8977
  }, [a, r]);
@@ -8974,7 +8982,7 @@ var $n = (e) => {
8974
8982
  l(e), i?.();
8975
8983
  }, [l, i])
8976
8984
  };
8977
- }, pr = ({ onDeleteFiles: e, onDeleteSuccess: t }) => {
8985
+ }, mr = ({ onDeleteFiles: e, onDeleteSuccess: t }) => {
8978
8986
  let [r, i] = u(!1), [a, o] = u([]), [s, c] = u(""), l = n((e, t) => {
8979
8987
  o(e), c(t), i(!0);
8980
8988
  }, []), d = n(() => {
@@ -8998,16 +9006,16 @@ var $n = (e) => {
8998
9006
  s
8999
9007
  ])
9000
9008
  };
9001
- }, mr = ({ onDownloadFiles: e, customDownloadItemsAction: t, onDownloadSuccess: r }) => ({ handleDownloadFiles: n((n) => {
9009
+ }, hr = ({ onDownloadFiles: e, customDownloadItemsAction: t, onDownloadSuccess: r }) => ({ handleDownloadFiles: n((n) => {
9002
9010
  t && n.length > 0 ? t(n) : e && n.length > 0 && (e(n), r?.());
9003
9011
  }, [
9004
9012
  e,
9005
9013
  r,
9006
9014
  t
9007
- ]) }), hr = (e) => "dataTransfer" in e && e.dataTransfer !== null, gr = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: r, allowedFileTypes: a, validationMessages: o = {}, onUploadArchive: s, prepareUploadFileName: d, uploadEnabled: f = !0, currentFolder: p } = {}) => {
9008
- let [m, h] = u(!1), [g, _] = u(!1), [v, y] = u(), b = l(null), x = l(""), S = l([]), C = c(() => !!p?.permissions?.includes(Fn.WRITE), [p]), [w, T] = u(/* @__PURE__ */ new Map()), [E, D] = u(null), O = n((e) => !a || a.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => Jn(a, e.type, t)), [a]), k = n(() => {
9015
+ ]) }), gr = (e) => "dataTransfer" in e && e.dataTransfer !== null, _r = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: r, allowedFileTypes: a, validationMessages: o = {}, onUploadArchive: s, prepareUploadFileName: d, uploadEnabled: f = !0, currentFolder: p } = {}) => {
9016
+ let [m, h] = u(!1), [g, _] = u(!1), [v, y] = u(), b = l(null), x = l(""), S = l([]), C = c(() => !!p?.permissions?.includes(Fn.WRITE), [p]), [w, T] = u(/* @__PURE__ */ new Map()), [E, D] = u(null), O = n((e) => !a || a.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => Yn(a, e.type, t)), [a]), k = n(() => {
9009
9017
  T(/* @__PURE__ */ new Map()), D(null);
9010
- }, []), { conflictingFiles: A, conflictResolutionOpen: j, hasActiveConflictRef: M, checkForConflicts: N, startConflictResolution: P, closeConflictResolution: F, openConflictResolution: I, handleReplaceAll: L, handleDuplicateAll: R, handleCancelAll: z, handleDecideForEach: ee } = ur({
9018
+ }, []), { conflictingFiles: A, conflictResolutionOpen: j, hasActiveConflictRef: M, checkForConflicts: N, startConflictResolution: P, closeConflictResolution: F, openConflictResolution: I, handleReplaceAll: L, handleDuplicateAll: R, handleCancelAll: z, handleDecideForEach: ee } = dr({
9011
9019
  getDestinationFiles: () => S.current,
9012
9020
  onResolve: (t, n) => {
9013
9021
  if (!f || !C) {
@@ -9041,7 +9049,7 @@ var $n = (e) => {
9041
9049
  ]), i(() => {
9042
9050
  if (!f || !C) return;
9043
9051
  let e = 0, t = (t) => {
9044
- hr(t) && t.dataTransfer.types.includes(Tn) && (e++, _(!0));
9052
+ gr(t) && t.dataTransfer.types.includes(Tn) && (e++, _(!0));
9045
9053
  }, n = () => {
9046
9054
  e--, e === 0 && _(!1);
9047
9055
  }, r = () => {
@@ -9093,30 +9101,30 @@ var $n = (e) => {
9093
9101
  P,
9094
9102
  k,
9095
9103
  C
9096
- ]), ne = n(() => {
9104
+ ]), H = n(() => {
9097
9105
  L(), k();
9098
- }, [L, k]), re = n(() => {
9106
+ }, [L, k]), ne = n(() => {
9099
9107
  R(), k();
9100
- }, [R, k]), ie = n(() => {
9108
+ }, [R, k]), re = n(() => {
9101
9109
  z(), k();
9102
- }, [z, k]), ae = n((e) => {
9110
+ }, [z, k]), ie = n((e) => {
9103
9111
  ee(e), k();
9104
- }, [ee, k]), oe = n(() => {
9112
+ }, [ee, k]), ae = n(() => {
9105
9113
  F(), M.current || k();
9106
9114
  }, [
9107
9115
  F,
9108
9116
  M,
9109
9117
  k
9110
- ]), se = n((e) => {
9118
+ ]), oe = n((e) => {
9111
9119
  !f || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && h(!0));
9112
- }, [f, C]), ce = n((e) => {
9120
+ }, [f, C]), se = n((e) => {
9113
9121
  if (!f || !C) return;
9114
9122
  e.preventDefault(), e.stopPropagation();
9115
9123
  let t = e.currentTarget.getBoundingClientRect(), n = e.clientX, r = e.clientY;
9116
9124
  (n <= t.left || n >= t.right || r <= t.top || r >= t.bottom) && h(!1);
9117
- }, [f, C]), H = n((e) => {
9125
+ }, [f, C]), U = n((e) => {
9118
9126
  !f || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && (e.dataTransfer.dropEffect = "copy"));
9119
- }, [f, C]), le = n(async (e, t, n) => {
9127
+ }, [f, C]), ce = n(async (e, t, n) => {
9120
9128
  if (!f || !C || (e.preventDefault(), e.stopPropagation(), h(!1), !e.dataTransfer.types.includes("Files"))) return;
9121
9129
  let r = Array.from(e.dataTransfer.items || []), i = [], a = !1;
9122
9130
  if (r.length > 0 && r.forEach((e) => {
@@ -9147,9 +9155,9 @@ var $n = (e) => {
9147
9155
  V,
9148
9156
  o,
9149
9157
  C
9150
- ]), ue = l(() => {});
9158
+ ]), le = l(() => {});
9151
9159
  i(() => {
9152
- ue.current = async () => {
9160
+ le.current = async () => {
9153
9161
  let e = b.current;
9154
9162
  if (!e) return;
9155
9163
  if (!f || !C) {
@@ -9182,7 +9190,7 @@ var $n = (e) => {
9182
9190
  ]), i(() => {
9183
9191
  let e = document.createElement("input");
9184
9192
  e.type = "file", e.multiple = !0, e.style.display = "none", document.body.appendChild(e), b.current = e;
9185
- let t = () => ue.current?.();
9193
+ let t = () => le.current?.();
9186
9194
  return e.addEventListener("change", t), () => {
9187
9195
  e.removeEventListener("change", t), b.current === e && (document.body.removeChild(e), b.current = null);
9188
9196
  };
@@ -9190,9 +9198,9 @@ var $n = (e) => {
9190
9198
  let e = b.current;
9191
9199
  e && (a && a.length > 0 ? e.accept = a.join(",") : e.removeAttribute("accept"));
9192
9200
  }, [a]);
9193
- let de = n((e, t) => {
9201
+ let ue = n((e, t) => {
9194
9202
  !f || !C || (x.current = e, S.current = t, b.current && b.current.click());
9195
- }, [f, C]), fe = n((e, t) => {
9203
+ }, [f, C]), de = n((e, t) => {
9196
9204
  if (!s || !f || !C) return;
9197
9205
  let n = document.createElement("input");
9198
9206
  n.type = "file", n.accept = ".zip,application/zip", n.multiple = !1, n.style.display = "none", n.addEventListener("change", () => {
@@ -9238,53 +9246,53 @@ var $n = (e) => {
9238
9246
  isDragging: m,
9239
9247
  isDraggingOverWindow: g,
9240
9248
  uploadError: v,
9241
- handleDragEnter: se,
9242
- handleDragLeave: ce,
9243
- handleDragOver: H,
9244
- handleDrop: le,
9249
+ handleDragEnter: oe,
9250
+ handleDragLeave: se,
9251
+ handleDragOver: U,
9252
+ handleDrop: ce,
9245
9253
  clearError: n(() => {
9246
9254
  y(void 0);
9247
9255
  }, []),
9248
9256
  handleUpload: V,
9249
- openFileDialog: de,
9250
- openArchiveDialog: fe,
9257
+ openFileDialog: ue,
9258
+ openArchiveDialog: de,
9251
9259
  fileInputRef: b,
9252
9260
  uploadConflictingFiles: A,
9253
9261
  uploadConflictResolutionOpen: j,
9254
9262
  hasActiveUploadConflictRef: M,
9255
9263
  openUploadConflictResolution: I,
9256
- closeUploadConflictResolution: oe,
9257
- handleUploadConflictReplace: ne,
9258
- handleUploadConflictDuplicate: re,
9259
- handleUploadConflictCancel: ie,
9260
- handleUploadConflictDecideForEach: ae
9264
+ closeUploadConflictResolution: ae,
9265
+ handleUploadConflictReplace: H,
9266
+ handleUploadConflictDuplicate: ne,
9267
+ handleUploadConflictCancel: re,
9268
+ handleUploadConflictDecideForEach: ie
9261
9269
  };
9262
- }, _r = t(void 0), vr = { hiddenItemWarning: `${se.Warning}__A dot at the start of the name will make the item hidden` }, yr = { consecutiveDotsError: "Name cannot contain consecutive dots" }, br = {
9270
+ }, vr = t(void 0), yr = { hiddenItemWarning: `${oe.Warning}__A dot at the start of the name will make the item hidden` }, br = { consecutiveDotsError: "Name cannot contain consecutive dots" }, xr = {
9263
9271
  emptyName: "Name cannot be empty",
9264
9272
  duplicateName: "An item with this name already exists",
9265
- hiddenItemWarning: vr.hiddenItemWarning,
9266
- consecutiveDotsError: yr.consecutiveDotsError
9273
+ hiddenItemWarning: yr.hiddenItemWarning,
9274
+ consecutiveDotsError: br.consecutiveDotsError
9267
9275
  };
9268
- function xr(e) {
9276
+ function Sr(e) {
9269
9277
  let t = e.length;
9270
9278
  for (; t > 0 && e[t - 1] === "/";) t--;
9271
9279
  return e.slice(0, t);
9272
9280
  }
9273
- function Sr(e, t) {
9274
- let n = xr(e), r = n.lastIndexOf("/");
9281
+ function Cr(e, t) {
9282
+ let n = Sr(e), r = n.lastIndexOf("/");
9275
9283
  return r === -1 ? t : n.slice(0, r + 1) + t;
9276
9284
  }
9277
- function Cr(e) {
9285
+ function wr(e) {
9278
9286
  let t = e.lastIndexOf(".");
9279
9287
  return t === -1 || t === 0 ? e : e.substring(0, t);
9280
9288
  }
9281
- function wr(e) {
9289
+ function Tr(e) {
9282
9290
  let t = e.lastIndexOf(".");
9283
9291
  return t === -1 || t === 0 ? "" : e.substring(t);
9284
9292
  }
9285
- var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles: i }) => {
9293
+ var Er = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles: i }) => {
9286
9294
  let [a, o] = u(), s = c(() => ({
9287
- ...br,
9295
+ ...xr,
9288
9296
  ...r
9289
9297
  }), [r]), l = c(() => a?.path, [a]), d = n((t) => {
9290
9298
  let n = Bn(e, t);
@@ -9303,14 +9311,14 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9303
9311
  }
9304
9312
  let t = a.nodeType === $.ITEM, n = e.trim();
9305
9313
  if (t) {
9306
- let e = wr(a.name);
9314
+ let e = Tr(a.name);
9307
9315
  e && !n.endsWith(e) && (n += e);
9308
9316
  }
9309
9317
  if (n === a.name) {
9310
9318
  o(void 0);
9311
9319
  return;
9312
9320
  }
9313
- let r = Sr(a.path, n), s = a.parentPath;
9321
+ let r = Cr(a.path, n), s = a.parentPath;
9314
9322
  if (!s) {
9315
9323
  o(void 0);
9316
9324
  return;
@@ -9329,7 +9337,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9329
9337
  if (i.startsWith(".")) return s.hiddenItemWarning;
9330
9338
  let a = r.nodeType === $.ITEM, o = i;
9331
9339
  if (a) {
9332
- let e = wr(r.name);
9340
+ let e = Tr(r.name);
9333
9341
  e && !o.endsWith(e) && (o += e);
9334
9342
  }
9335
9343
  let c = r.parentPath;
@@ -9347,9 +9355,9 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9347
9355
  s,
9348
9356
  e
9349
9357
  ]),
9350
- getDisplayName: n((e) => e.nodeType === $.ITEM ? Cr(e.name) : e.name, [])
9358
+ getDisplayName: n((e) => e.nodeType === $.ITEM ? wr(e.name) : e.name, [])
9351
9359
  };
9352
- }, Er = (e) => {
9360
+ }, Dr = (e) => {
9353
9361
  let [t, r] = u(e?.expandedPaths ?? /* @__PURE__ */ new Set()), a = c(() => !!e?.onExpandedPathsChange, [e?.onExpandedPathsChange]), o = c(() => a ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t, [
9354
9362
  a,
9355
9363
  e?.expandedPaths,
@@ -9381,13 +9389,13 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9381
9389
  }, [o, s]),
9382
9390
  isControlled: a
9383
9391
  };
9384
- }, Dr = ({ newActions: e, currentFolder: t, onUploadFiles: n, onCreateFolder: r, onUploadArchive: i, onCreateNewItem: a, isNewButtonDisabled: o }) => {
9392
+ }, Or = ({ newActions: e, currentFolder: t, onUploadFiles: n, onCreateFolder: r, onUploadArchive: i, onCreateNewItem: a, isNewButtonDisabled: o }) => {
9385
9393
  let s = c(() => {
9386
9394
  let t = [];
9387
9395
  return e && (e.newFolder && t.push({
9388
9396
  key: "new-folder",
9389
9397
  label: e.newFolder.label,
9390
- icon: e?.newFolder?.icon === void 0 ? /* @__PURE__ */ G(Je, {
9398
+ icon: e?.newFolder?.icon === void 0 ? /* @__PURE__ */ K(qe, {
9391
9399
  ...X,
9392
9400
  className: "text-secondary"
9393
9401
  }) : e?.newFolder?.icon,
@@ -9397,7 +9405,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9397
9405
  }), e.newItem && t.push({
9398
9406
  key: "new-item",
9399
9407
  label: e.newItem.label,
9400
- icon: e?.newItem?.icon === void 0 ? /* @__PURE__ */ G(Qe, {
9408
+ icon: e?.newItem?.icon === void 0 ? /* @__PURE__ */ K(Ze, {
9401
9409
  ...X,
9402
9410
  className: "text-secondary"
9403
9411
  }) : e?.newItem?.icon,
@@ -9407,7 +9415,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9407
9415
  }), e.uploadFiles && t.push({
9408
9416
  key: "upload-file",
9409
9417
  label: e.uploadFiles.label,
9410
- icon: e?.uploadFiles?.icon === void 0 ? /* @__PURE__ */ G(Ge, {
9418
+ icon: e?.uploadFiles?.icon === void 0 ? /* @__PURE__ */ K(We, {
9411
9419
  ...X,
9412
9420
  className: "text-secondary"
9413
9421
  }) : e?.uploadFiles?.icon,
@@ -9417,7 +9425,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9417
9425
  }), e.uploadArchive && t.push({
9418
9426
  key: "upload-archive",
9419
9427
  label: e.uploadArchive.label,
9420
- icon: e?.uploadArchive?.icon === void 0 ? /* @__PURE__ */ G(qe, {
9428
+ icon: e?.uploadArchive?.icon === void 0 ? /* @__PURE__ */ K(Ke, {
9421
9429
  ...X,
9422
9430
  className: "text-secondary"
9423
9431
  }) : e?.uploadArchive?.icon,
@@ -9437,14 +9445,14 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9437
9445
  isNewButtonVisible: c(() => s?.length > 0, [s]),
9438
9446
  isNewButtonDisabled: c(() => !t?.permissions?.includes(Fn.WRITE) || !!o, [t, o])
9439
9447
  };
9440
- }, Or = {
9448
+ }, kr = {
9441
9449
  emptyName: "Folder name cannot be empty",
9442
9450
  duplicateName: "A folder with this name already exists",
9443
- hiddenItemWarning: vr.hiddenItemWarning,
9444
- consecutiveDotsError: yr.consecutiveDotsError
9445
- }, kr = ({ currentFolder: e, onCreateFolder: t, onValidateFolderName: r, validationMessages: a, items: o = [] }) => {
9451
+ hiddenItemWarning: yr.hiddenItemWarning,
9452
+ consecutiveDotsError: br.consecutiveDotsError
9453
+ }, Ar = ({ currentFolder: e, onCreateFolder: t, onValidateFolderName: r, validationMessages: a, items: o = [] }) => {
9446
9454
  let [s, d] = u(!1), [f, p] = u(null), [m, h] = u(pn.Folder), [g, _] = u(null), [v, y] = u(null), [b, x] = u(""), S = l(e?.path), C = c(() => ({
9447
- ...Or,
9455
+ ...kr,
9448
9456
  ...a
9449
9457
  }), [a]), w = c(() => {
9450
9458
  if (m === pn.Folder) return e;
@@ -9472,22 +9480,22 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9472
9480
  let T = n(() => {
9473
9481
  if (s) return;
9474
9482
  S.current = e?.path || "/";
9475
- let t = `__new_folder_${Date.now()}`, n = ar((e?.items ?? []).filter((e) => e.nodeType === $.FOLDER));
9483
+ let t = `__new_folder_${Date.now()}`, n = or((e?.items ?? []).filter((e) => e.nodeType === $.FOLDER));
9476
9484
  p(t), x(n), d(!0), h(pn.Folder), _(e || null);
9477
9485
  }, [s, e]), E = n((e) => {
9478
9486
  if (s) return;
9479
9487
  S.current = e?.parentPath || "/";
9480
9488
  let t = `__new_folder_${Date.now()}`;
9481
- x(ar((Vn(o, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), p(t), d(!0), h(pn.Sibling), _(e), y(e?.parentPath || "/");
9489
+ x(or((Vn(o, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), p(t), d(!0), h(pn.Sibling), _(e), y(e?.parentPath || "/");
9482
9490
  }, [s, o]), D = n((e) => {
9483
9491
  if (s) return;
9484
9492
  S.current = e.path;
9485
9493
  let t = `__new_folder_${Date.now()}`;
9486
- x(ar((e?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), p(t), d(!0), h(pn.Child), _(e), y(e?.path || "/");
9494
+ x(or((e?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), p(t), d(!0), h(pn.Child), _(e), y(e?.path || "/");
9487
9495
  }, [s]), O = n((e) => {
9488
- s || (S.current = e?.parentPath || "/", x(ar((Vn(o, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), h(pn.Sibling), _(e), y(e?.parentPath || "/"), d(!0));
9496
+ s || (S.current = e?.parentPath || "/", x(or((Vn(o, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), h(pn.Sibling), _(e), y(e?.parentPath || "/"), d(!0));
9489
9497
  }, [s, o]), k = n((e) => {
9490
- s || (S.current = e.path, x(ar((e?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), h(pn.Child), _(e), y(e?.path || "/"), d(!0));
9498
+ s || (S.current = e.path, x(or((e?.items ?? []).filter((e) => e.nodeType === $.FOLDER))), h(pn.Child), _(e), y(e?.path || "/"), d(!0));
9491
9499
  }, [s]), A = n(() => {
9492
9500
  d(!1), p(null), h(pn.Folder), _(null), y(null), S.current = void 0, x("");
9493
9501
  }, []), j = n((e) => {
@@ -9533,13 +9541,13 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9533
9541
  ]),
9534
9542
  validateFolderName: j
9535
9543
  };
9536
- }, Ar = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
9544
+ }, jr = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
9537
9545
  let r = t === 0;
9538
- return { additionalButtons: c(() => /* @__PURE__ */ K(W, { children: [e, /* @__PURE__ */ G(B, {
9546
+ return { additionalButtons: c(() => /* @__PURE__ */ q(G, { children: [e, /* @__PURE__ */ K(B, {
9539
9547
  disabled: r,
9540
9548
  size: I.Small,
9541
9549
  onClick: n,
9542
- icon: /* @__PURE__ */ G(ze, {
9550
+ icon: /* @__PURE__ */ K(Re, {
9543
9551
  size: S.LG,
9544
9552
  stroke: sn
9545
9553
  }),
@@ -9549,7 +9557,7 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9549
9557
  r,
9550
9558
  n
9551
9559
  ]) };
9552
- }, jr = ({ onGetInfo: e }) => {
9560
+ }, Mr = ({ onGetInfo: e }) => {
9553
9561
  let [t, r] = u(!1), [i, a] = u(void 0);
9554
9562
  return {
9555
9563
  isMetadataPopupOpen: t,
@@ -9562,18 +9570,18 @@ var Tr = ({ items: e, onRenameValidate: t, validationMessages: r, onMoveToFiles:
9562
9570
  }, [])
9563
9571
  };
9564
9572
  };
9565
- function Mr(e) {
9573
+ function Nr(e) {
9566
9574
  let t = [];
9567
9575
  function n(e) {
9568
9576
  for (let r of e) t.push(r), r.items && n(r.items);
9569
9577
  }
9570
9578
  return n(e), t;
9571
9579
  }
9572
- function Nr(e, t) {
9580
+ function Pr(e, t) {
9573
9581
  let n = Hn(t);
9574
9582
  return e.filter((e) => Hn(e.name).includes(n));
9575
9583
  }
9576
- function Pr({ onSearchFiles: e, clearSearchResults: t, currentPath: r, searchResults: a = [], searchInProgress: o = !1, navigationPanelValue: s, onNavigationPanelSearchChange: d, allItems: f = [], activeTab: p }) {
9584
+ function Fr({ onSearchFiles: e, clearSearchResults: t, currentPath: r, searchResults: a = [], searchInProgress: o = !1, navigationPanelValue: s, onNavigationPanelSearchChange: d, allItems: f = [], activeTab: p }) {
9577
9585
  let [m, h] = u(""), g = l(!1), _ = l(!1), v = l([]), y = l(r), b = l(p);
9578
9586
  i(() => {
9579
9587
  s != null && h(String(s));
@@ -9615,9 +9623,9 @@ function Pr({ onSearchFiles: e, clearSearchResults: t, currentPath: r, searchRes
9615
9623
  searchResultsRows: c(() => {
9616
9624
  if (e) {
9617
9625
  let e = o ? v.current : a;
9618
- return !x || e.length === 0 ? e : Nr(e, x);
9626
+ return !x || e.length === 0 ? e : Pr(e, x);
9619
9627
  }
9620
- return !x || !f.length ? [] : Nr(Mr(f), x);
9628
+ return !x || !f.length ? [] : Pr(Nr(f), x);
9621
9629
  }, [
9622
9630
  e,
9623
9631
  a,
@@ -9627,7 +9635,7 @@ function Pr({ onSearchFiles: e, clearSearchResults: t, currentPath: r, searchRes
9627
9635
  ])
9628
9636
  };
9629
9637
  }
9630
- function Fr({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange: r }) {
9638
+ function Ir({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange: r }) {
9631
9639
  let i = e !== void 0, [a, o] = u(() => t ?? /* @__PURE__ */ new Set()), s = c(() => i ? e : a, [
9632
9640
  i,
9633
9641
  e,
@@ -9645,59 +9653,59 @@ function Fr({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange:
9645
9653
  isControlled: i
9646
9654
  };
9647
9655
  }
9648
- var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem: o, path: s, defaultPath: d, filesLoading: f, selectedPaths: p, defaultSelectedPaths: m, onSelectedPathsChange: h, showHiddenFiles: g, onShowHiddenFilesChange: _, treeOptions: v, showNavigationPanel: y = !0, navigationPanelOptions: b, deleteConfirmationOptions: x, gridOptions: S, toolbarOptions: C, bulkActionsToolbarOptions: w, destinationFolderPopupOptions: T, conflictResolutionPopupOptions: E, onPathChange: D, onTableFileClick: O, handleSelectionClick: k, onGridApiChange: A, onCopyFiles: j, onMoveToFiles: M, onDeleteFiles: N, onDownloadFiles: P, onRenameValidate: F, renameValidationMessages: I, forbiddenSymbolsRegExp: L = ne, forbiddenSymbolsTooltip: R, onUploadFiles: z, onValidateUpload: ee, uploadEnabled: B, uploadValidationMessages: te, maxFileSize: V, onUploadArchive: re, prepareUploadFileName: ie, onCreateFolder: ae, onCreateFolderValidate: oe, folderCreationValidationMessages: se, fileMetadataPopupOptions: ce, onGetInfo: H, onUnshareFiles: le, onRemoveFilesAccess: ue, actionsRef: de, sharedByMePaths: fe, onSearchFiles: pe, searchResults: me, searchInProgress: he, clearSearchResults: ge, allowedFileTypes: _e, maxSelectableFileSize: ve, getDisabledTooltip: ye, fileTooLargeTooltip: be, unsupportedFileTypeTooltip: xe, emptyStateIcon: Se, emptyStateTitle: Ce, emptyStateDescription: we, sharedWithMeIds: Te, onFolderPopupPathChange: Ee, onManagePermissions: De, onPreview: Oe, onOpenInNewTab: ke, previewExtensions: Ae, isRenameFileAvailable: je, isDuplicateFolderAvailable: U, customUploadFileAction: W, customCreateNewItemAction: K, customDuplicateAction: Me, customDeleteItemsAction: Ne, customDownloadItemsAction: Pe, customBreakpointRef: Fe, gridClassName: Ie, nonClickableTableColumns: Le, hideSearchPathItemName: Re, showHiddenFileSwitcherInDestinationPopup: ze, showCreateFolderButtonInDestinationPopup: Be, autoSelectUploadedItems: Ve = !1, maxNewFolderDepth: He, onNewFolderDepthExceeded: Ue, initialUploadFilesOpen: We }) => {
9649
- let { selectedPaths: Ge, clearSelection: Ke, setSelectedPaths: qe } = Fr({
9656
+ var Lr = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem: o, path: s, defaultPath: d, filesLoading: f, selectedPaths: p, defaultSelectedPaths: m, onSelectedPathsChange: h, showHiddenFiles: g, onShowHiddenFilesChange: _, treeOptions: v, showNavigationPanel: y = !0, navigationPanelOptions: b, deleteConfirmationOptions: x, gridOptions: S, toolbarOptions: C, bulkActionsToolbarOptions: w, destinationFolderPopupOptions: T, conflictResolutionPopupOptions: E, onPathChange: D, onTableFileClick: O, handleSelectionClick: k, onGridApiChange: A, onCopyFiles: j, onMoveToFiles: M, onDeleteFiles: N, onDownloadFiles: P, onRenameValidate: F, renameValidationMessages: I, forbiddenSymbolsRegExp: L = H, forbiddenSymbolsTooltip: R, onUploadFiles: z, onValidateUpload: ee, uploadEnabled: B, uploadValidationMessages: te, maxFileSize: V, onUploadArchive: ne, prepareUploadFileName: re, onCreateFolder: ie, onCreateFolderValidate: ae, folderCreationValidationMessages: oe, fileMetadataPopupOptions: se, onGetInfo: U, onUnshareFiles: ce, onRemoveFilesAccess: le, actionsRef: ue, sharedByMePaths: de, onSearchFiles: fe, searchResults: pe, searchInProgress: me, clearSearchResults: he, allowedFileTypes: ge, maxSelectableFileSize: _e, getDisabledTooltip: ve, fileTooLargeTooltip: ye, unsupportedFileTypeTooltip: be, emptyStateIcon: xe, emptyStateTitle: Se, emptyStateDescription: Ce, sharedWithMeIds: we, onFolderPopupPathChange: Te, onManagePermissions: Ee, onPreview: De, onOpenInNewTab: Oe, previewExtensions: ke, isRenameFileAvailable: Ae, isDuplicateFolderAvailable: W, customUploadFileAction: G, customCreateNewItemAction: q, customDuplicateAction: je, customDeleteItemsAction: Me, customDownloadItemsAction: Ne, customBreakpointRef: Pe, gridClassName: Fe, nonClickableTableColumns: Ie, hideSearchPathItemName: Le, showHiddenFileSwitcherInDestinationPopup: Re, showCreateFolderButtonInDestinationPopup: ze, autoSelectUploadedItems: Be = !1, maxNewFolderDepth: Ve, onNewFolderDepthExceeded: He, initialUploadFilesOpen: Ue }) => {
9657
+ let { selectedPaths: We, clearSelection: Ge, setSelectedPaths: Ke } = Ir({
9650
9658
  selectedPaths: p,
9651
9659
  defaultSelectedPaths: m,
9652
9660
  onSelectedPathsChange: h
9653
- }), Je = l(!1), Ye = l(null), Xe = n((e, t, n) => {
9654
- if (Ve) {
9655
- let { parent: e, name: n } = $n(t);
9656
- Ye.current = {
9661
+ }), qe = l(!1), Je = l(null), Ye = n((e, t, n) => {
9662
+ if (Be) {
9663
+ let { parent: e, name: n } = er(t);
9664
+ Je.current = {
9657
9665
  fileNames: /* @__PURE__ */ new Set([n]),
9658
9666
  destinationFolder: e
9659
9667
  };
9660
9668
  }
9661
- ae?.(e, t, n);
9662
- }, [ae, Ve]), Ze = n((e, t) => {
9663
- Ve && (Ye.current = {
9669
+ ie?.(e, t, n);
9670
+ }, [ie, Be]), Xe = n((e, t) => {
9671
+ Be && (Je.current = {
9664
9672
  fileNames: new Set(e.map((e) => e.name)),
9665
9673
  destinationFolder: t
9666
9674
  }), z?.(e, t);
9667
- }, [z, Ve]), Qe = n((e, t, n) => {
9668
- Ve && (Ye.current = {
9675
+ }, [z, Be]), Ze = n((e, t, n) => {
9676
+ Be && (Je.current = {
9669
9677
  fileNames: /* @__PURE__ */ new Set([t]),
9670
9678
  destinationFolder: n
9671
- }), re?.(e, t, n);
9672
- }, [re, Ve]), $e = c(() => {
9679
+ }), ne?.(e, t, n);
9680
+ }, [ne, Be]), Qe = c(() => {
9673
9681
  let e = /* @__PURE__ */ new Map();
9674
- return Ge.forEach((t) => {
9682
+ return We.forEach((t) => {
9675
9683
  let n = Bn(a, t);
9676
9684
  n && e.set(t, n);
9677
9685
  }), e;
9678
- }, [Ge, a]);
9686
+ }, [We, a]);
9679
9687
  i(() => {
9680
- if (Ge.size === 0) return;
9688
+ if (We.size === 0) return;
9681
9689
  let e = !1;
9682
- for (let t of Ge) if (!Bn(a, t)) {
9690
+ for (let t of We) if (!Bn(a, t)) {
9683
9691
  e = !0;
9684
9692
  break;
9685
9693
  }
9686
9694
  if (e) {
9687
9695
  let e = /* @__PURE__ */ new Set();
9688
- for (let t of Ge) Bn(a, t) && e.add(t);
9689
- qe(e);
9696
+ for (let t of We) Bn(a, t) && e.add(t);
9697
+ Ke(e);
9690
9698
  }
9691
9699
  }, [
9692
9700
  a,
9693
- Ge,
9694
- qe
9701
+ We,
9702
+ Ke
9695
9703
  ]);
9696
- let { currentPath: q, setCurrentPath: et, handlePathChange: tt } = fr({
9704
+ let { currentPath: $e, setCurrentPath: et, handlePathChange: tt } = pr({
9697
9705
  path: s,
9698
9706
  defaultPath: d,
9699
9707
  onPathChange: D,
9700
- onSelectionClear: Ke
9708
+ onSelectionClear: Ge
9701
9709
  }), nt = c(() => {
9702
9710
  let { showFiles: e = !0, showFolders: t = !0, ...n } = S || {};
9703
9711
  return {
@@ -9707,104 +9715,104 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9707
9715
  };
9708
9716
  }, [S]), rt = nt.showFiles, it = nt.showFolders, [at, ot] = u(), st = T?.destinationFolderPath ?? at, ct = n((e) => {
9709
9717
  T?.setDestinationFolderPath ? T.setDestinationFolderPath(e) : ot(e);
9710
- }, [T]), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: ut } = or({
9718
+ }, [T]), { areHiddenFilesVisible: lt, toggleHiddenFilesVisibility: ut } = sr({
9711
9719
  showHiddenFiles: g,
9712
9720
  onShowHiddenFilesChange: _
9713
- }), { isTreeCollapsed: dt, toggleTreeCollapse: ft, setIsTreeCollapsed: pt } = sr({
9721
+ }), { isTreeCollapsed: dt, toggleTreeCollapse: ft, setIsTreeCollapsed: pt } = cr({
9714
9722
  collapsed: v?.collapsed,
9715
9723
  onCollapseChange: v?.onCollapseChange
9716
- }), { renamedPath: mt, renamedItem: ht, renameHandler: gt, renameSaveHandler: _t, renameCancelHandler: vt, renameValidateHandler: yt, getDisplayName: bt } = Tr({
9724
+ }), { renamedPath: mt, renamedItem: ht, renameHandler: gt, renameSaveHandler: _t, renameCancelHandler: vt, renameValidateHandler: yt, getDisplayName: bt } = Er({
9717
9725
  items: a,
9718
9726
  onRenameValidate: F,
9719
9727
  validationMessages: I,
9720
9728
  onMoveToFiles: M
9721
- }), { isSearchMode: xt, searchValue: St, effectiveSearchValue: Ct, setSearchValue: wt, handleSearchChange: Tt, handleSearchClear: J, searchResultsRows: Et } = Pr({
9722
- onSearchFiles: pe,
9723
- clearSearchResults: ge,
9724
- currentPath: q,
9725
- searchResults: me,
9726
- searchInProgress: he,
9729
+ }), { isSearchMode: xt, searchValue: St, effectiveSearchValue: Ct, setSearchValue: wt, handleSearchChange: Tt, handleSearchClear: J, searchResultsRows: Et } = Fr({
9730
+ onSearchFiles: fe,
9731
+ clearSearchResults: he,
9732
+ currentPath: $e,
9733
+ searchResults: pe,
9734
+ searchInProgress: me,
9727
9735
  navigationPanelValue: b?.value,
9728
9736
  onNavigationPanelSearchChange: b?.onSearchChange,
9729
9737
  allItems: a,
9730
9738
  activeTab: C?.activeTab
9731
- }), Y = c(() => Vn(a, q) ?? a[0], [a, q]), Dt = n((e, t) => !t || !e ? !1 : ir(e.path) > t, []), Ot = n(() => {
9732
- Ue?.();
9733
- }, [Ue]), { handleCopyTo: kt, handleMoveTo: At, handleDuplicate: jt, handleOpenDestinationFolderPopup: Mt, handleCloseDestinationFolderPopup: Nt, openDestinationFolderPopup: Pt, handleSetCopiedFiles: Ft, handleSetMovedFiles: It, destinationFolderMode: Lt, destinationFolderTitle: Rt, conflictingFiles: zt, conflictResolutionOpen: Bt, closeConflictResolution: Vt, handleConflictReplace: Ht, handleConflictDuplicate: Ut, handleConflictCancel: Wt, handleConflictDecideForEach: Gt, sourceFolder: Kt } = dr({
9739
+ }), Y = c(() => Vn(a, $e) ?? a[0], [a, $e]), Dt = n((e, t) => !t || !e ? !1 : ar(e.path) > t, []), Ot = n(() => {
9740
+ He?.();
9741
+ }, [He]), { handleCopyTo: kt, handleMoveTo: At, handleDuplicate: jt, handleOpenDestinationFolderPopup: Mt, handleCloseDestinationFolderPopup: Nt, openDestinationFolderPopup: Pt, handleSetCopiedFiles: Ft, handleSetMovedFiles: It, destinationFolderMode: Lt, destinationFolderTitle: Rt, conflictingFiles: zt, conflictResolutionOpen: Bt, closeConflictResolution: Vt, handleConflictReplace: Ht, handleConflictDuplicate: Ut, handleConflictCancel: Wt, handleConflictDecideForEach: Gt, sourceFolder: Kt } = fr({
9734
9742
  getDestinationFiles: (e) => Vn(a, e)?.items ?? [],
9735
9743
  onCopyFiles: j,
9736
9744
  onMoveToFiles: M,
9737
- onCopySuccess: Ke,
9738
- onMoveSuccess: Ke,
9739
- onDuplicateSuccess: Ke,
9745
+ onCopySuccess: Ge,
9746
+ onMoveSuccess: Ge,
9747
+ onDuplicateSuccess: Ge,
9740
9748
  getCopyHeader: T?.getCopyHeader,
9741
9749
  getMoveHeader: T?.getMoveHeader
9742
9750
  });
9743
9751
  i(() => {
9744
9752
  Pt || ct(void 0);
9745
9753
  }, [Pt, ct]);
9746
- let { deleteConfirmationOpen: qt, itemsToDelete: Jt, openDeleteConfirmation: Yt, closeDeleteConfirmation: Xt, confirmDelete: Zt } = pr({
9754
+ let { deleteConfirmationOpen: qt, itemsToDelete: Jt, openDeleteConfirmation: Yt, closeDeleteConfirmation: Xt, confirmDelete: Zt } = mr({
9747
9755
  onDeleteFiles: N,
9748
- onDeleteSuccess: Ke
9749
- }), { handleDownloadFiles: Qt } = mr({
9756
+ onDeleteSuccess: Ge
9757
+ }), { handleDownloadFiles: Qt } = hr({
9750
9758
  onDownloadFiles: P,
9751
- customDownloadItemsAction: Pe,
9752
- onDownloadSuccess: Ke
9753
- }), { isDragging: $t, isDraggingOverWindow: en, uploadError: tn, handleDragEnter: nn, handleDragLeave: rn, handleDragOver: an, handleDrop: on, clearError: sn, openFileDialog: X, fileInputRef: cn, openArchiveDialog: Z, uploadConflictingFiles: Q, uploadConflictResolutionOpen: ln, closeUploadConflictResolution: un, handleUploadConflictReplace: dn, handleUploadConflictDuplicate: fn, handleUploadConflictCancel: pn, handleUploadConflictDecideForEach: mn } = gr({
9754
- onUploadFiles: Ze,
9759
+ customDownloadItemsAction: Ne,
9760
+ onDownloadSuccess: Ge
9761
+ }), { isDragging: $t, isDraggingOverWindow: en, uploadError: tn, handleDragEnter: nn, handleDragLeave: rn, handleDragOver: an, handleDrop: on, clearError: sn, openFileDialog: X, fileInputRef: cn, openArchiveDialog: Z, uploadConflictingFiles: Q, uploadConflictResolutionOpen: ln, closeUploadConflictResolution: un, handleUploadConflictReplace: dn, handleUploadConflictDuplicate: fn, handleUploadConflictCancel: pn, handleUploadConflictDecideForEach: mn } = _r({
9762
+ onUploadFiles: Xe,
9755
9763
  onValidateUpload: ee,
9756
9764
  maxFileSize: V,
9757
- onUploadArchive: Qe,
9758
- prepareUploadFileName: ie,
9759
- allowedFileTypes: _e,
9765
+ onUploadArchive: Ze,
9766
+ prepareUploadFileName: re,
9767
+ allowedFileTypes: ge,
9760
9768
  validationMessages: te,
9761
9769
  uploadEnabled: B,
9762
9770
  currentFolder: Y
9763
9771
  }), hn = n((e) => {
9764
- J(), on(e, q ?? "", Y?.items ?? []);
9772
+ J(), on(e, $e ?? "", Y?.items ?? []);
9765
9773
  }, [
9766
- q,
9774
+ $e,
9767
9775
  Y,
9768
9776
  on,
9769
9777
  J
9770
9778
  ]), gn = n(() => {
9771
- J(), X(q ?? "", Y?.items ?? []);
9779
+ J(), X($e ?? "", Y?.items ?? []);
9772
9780
  }, [
9773
- q,
9781
+ $e,
9774
9782
  Y,
9775
9783
  X,
9776
9784
  J
9777
9785
  ]), _n = n(() => {
9778
- J(), Z(q ?? "", Y?.items ?? []);
9786
+ J(), Z($e ?? "", Y?.items ?? []);
9779
9787
  }, [
9780
- q,
9788
+ $e,
9781
9789
  Y,
9782
9790
  Z,
9783
9791
  J
9784
9792
  ]), vn = n(() => {
9785
- J(), W?.(q, Y);
9793
+ J(), G?.($e, Y);
9786
9794
  }, [
9787
- W,
9788
- q,
9795
+ G,
9796
+ $e,
9789
9797
  Y,
9790
9798
  J
9791
9799
  ]), yn = n(() => {
9792
- J(), K?.(q, Y);
9800
+ J(), q?.($e, Y);
9793
9801
  }, [
9794
- K,
9795
9802
  q,
9803
+ $e,
9796
9804
  Y,
9797
9805
  J
9798
9806
  ]), bn = n((e) => {
9799
- Me?.(e);
9800
- }, [Me]), { isCreatingFolder: xn, newFolderTempId: Sn, createdFolderPath: Cn, newFolderDefaultName: wn, startFolderCreation: Tn, startGridSiblingFolderCreation: En, startTreeSiblingFolderCreation: Dn, startGridChildFolderCreation: On, startTreeChildFolderCreation: kn, cancelFolderCreation: An, saveFolderCreation: jn, validateFolderName: Mn } = kr({
9807
+ je?.(e);
9808
+ }, [je]), { isCreatingFolder: xn, newFolderTempId: Sn, createdFolderPath: Cn, newFolderDefaultName: wn, startFolderCreation: Tn, startGridSiblingFolderCreation: En, startTreeSiblingFolderCreation: Dn, startGridChildFolderCreation: On, startTreeChildFolderCreation: kn, cancelFolderCreation: An, saveFolderCreation: jn, validateFolderName: Mn } = Ar({
9801
9809
  currentFolder: Y,
9802
- onCreateFolder: Xe,
9803
- onValidateFolderName: oe,
9804
- validationMessages: se,
9810
+ onCreateFolder: Ye,
9811
+ onValidateFolderName: ae,
9812
+ validationMessages: oe,
9805
9813
  items: a
9806
9814
  }), Nn = n(() => {
9807
- if (He && Dt(Y, He - 1)) {
9815
+ if (Ve && Dt(Y, Ve - 1)) {
9808
9816
  Ot();
9809
9817
  return;
9810
9818
  }
@@ -9813,13 +9821,13 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9813
9821
  J,
9814
9822
  Tn,
9815
9823
  Y,
9816
- He,
9824
+ Ve,
9817
9825
  Dt,
9818
9826
  Ot
9819
- ]), { newActions: Pn, isNewButtonVisible: Fn, isNewButtonDisabled: In } = Dr({
9827
+ ]), { newActions: Pn, isNewButtonVisible: Fn, isNewButtonDisabled: In } = Or({
9820
9828
  newActions: C?.newActions,
9821
9829
  currentFolder: Y,
9822
- onUploadFiles: W ? vn : gn,
9830
+ onUploadFiles: G ? vn : gn,
9823
9831
  onUploadArchive: _n,
9824
9832
  onCreateFolder: Nn,
9825
9833
  onCreateNewItem: yn,
@@ -9848,7 +9856,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9848
9856
  name: wn,
9849
9857
  updatedAt: void 0,
9850
9858
  author: void 0,
9851
- path: q ?? "/",
9859
+ path: $e ?? "/",
9852
9860
  nodeType: $.FOLDER,
9853
9861
  extension: void 0,
9854
9862
  isTemporary: !0,
@@ -9856,7 +9864,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9856
9864
  }), t;
9857
9865
  }
9858
9866
  let e = Hn(Ct).trim(), t = Y?.items ?? [], n = e ? Wn(Y) : t;
9859
- rt || (n = n.filter((e) => e.nodeType !== $.ITEM)), it || (n = n.filter((e) => e.nodeType !== $.FOLDER)), lt || (n = n.filter((t) => e ? !t.path.split("/").filter(Boolean).some((e) => e.startsWith(".")) : !Gn(t)));
9867
+ rt || (n = n.filter((e) => e.nodeType !== $.ITEM)), it || (n = n.filter((e) => e.nodeType !== $.FOLDER)), lt || (n = n.filter((t) => e ? !t.path.split("/").filter(Boolean).some((e) => e.startsWith(".")) : !Kn(t)));
9860
9868
  let r = n.map((e) => ({
9861
9869
  ...e,
9862
9870
  id: e.id ?? e.path,
@@ -9878,7 +9886,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9878
9886
  name: wn,
9879
9887
  updatedAt: void 0,
9880
9888
  author: void 0,
9881
- path: q ?? "/",
9889
+ path: $e ?? "/",
9882
9890
  nodeType: $.FOLDER,
9883
9891
  extension: void 0,
9884
9892
  isTemporary: !0,
@@ -9901,45 +9909,45 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9901
9909
  wn,
9902
9910
  rt,
9903
9911
  it,
9904
- q
9912
+ $e
9905
9913
  ]);
9906
9914
  i(() => {
9907
- let e = Ye.current;
9915
+ let e = Je.current;
9908
9916
  if (!e) return;
9909
- if ((q ?? "") !== e.destinationFolder) {
9910
- Ye.current = null;
9917
+ if (($e ?? "") !== e.destinationFolder) {
9918
+ Je.current = null;
9911
9919
  return;
9912
9920
  }
9913
9921
  let t = Vn(a, e.destinationFolder);
9914
9922
  if (!t?.items) return;
9915
9923
  let n = /* @__PURE__ */ new Set();
9916
- for (let r of t.items) e.fileNames.has(r.name) && er(r, _e, ve) && n.add(r.path);
9917
- n.size > 0 && (qe(n), Ye.current = null);
9924
+ for (let r of t.items) e.fileNames.has(r.name) && tr(r, ge, _e) && n.add(r.path);
9925
+ n.size > 0 && (Ke(n), Je.current = null);
9918
9926
  }, [
9919
9927
  a,
9920
- q,
9921
- qe,
9922
- _e,
9923
- ve
9928
+ $e,
9929
+ Ke,
9930
+ ge,
9931
+ _e
9924
9932
  ]), i(() => {
9925
- !Je.current && We && (gn(), Je.current = !0);
9926
- }, [We, gn]);
9933
+ !qe.current && Ue && (gn(), qe.current = !0);
9934
+ }, [Ue, gn]);
9927
9935
  let Rn = n((e) => {
9928
9936
  tt(e.path);
9929
9937
  }, [tt]), zn = n((e) => {
9930
9938
  tt(e);
9931
- }, [tt]), Kn = n((e) => {
9939
+ }, [tt]), Gn = n((e) => {
9932
9940
  e.nodeType === $.FOLDER ? tt(e.path) : O?.(e);
9933
- }, [tt, O]), { expandedPaths: qn, setExpandedPaths: Jn, collapseAll: Yn } = Er({
9941
+ }, [tt, O]), { expandedPaths: qn, setExpandedPaths: Jn, collapseAll: Yn } = Dr({
9934
9942
  expandedPaths: v?.expandedPaths,
9935
9943
  onExpandedPathsChange: v?.onExpandedPathsChange
9936
- }), { additionalButtons: Xn } = Ar({
9944
+ }), { additionalButtons: Xn } = jr({
9937
9945
  collapseAll: Yn,
9938
9946
  expandedPathsLength: qn.size,
9939
9947
  additionalButtons: v?.additionalButtons
9940
- }), Qn = n((e) => {
9948
+ }), Zn = n((e) => {
9941
9949
  if (e.length > 0) {
9942
- if (He && Dt(e[0], He)) {
9950
+ if (Ve && Dt(e[0], Ve)) {
9943
9951
  Ot();
9944
9952
  return;
9945
9953
  }
@@ -9948,12 +9956,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9948
9956
  }, [
9949
9957
  J,
9950
9958
  En,
9951
- He,
9959
+ Ve,
9952
9960
  Dt,
9953
9961
  Ot
9954
- ]), tr = n((e) => {
9962
+ ]), $n = n((e) => {
9955
9963
  if (e.length > 0) {
9956
- if (He && Dt(e[0], He - 1)) {
9964
+ if (Ve && Dt(e[0], Ve - 1)) {
9957
9965
  Ot();
9958
9966
  return;
9959
9967
  }
@@ -9966,11 +9974,11 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9966
9974
  Jn,
9967
9975
  et,
9968
9976
  Ot,
9969
- He,
9977
+ Ve,
9970
9978
  Dt
9971
9979
  ]), nr = n((e) => {
9972
9980
  if (e.length > 0) {
9973
- if (He && Dt(e[0], He)) {
9981
+ if (Ve && Dt(e[0], Ve)) {
9974
9982
  Ot();
9975
9983
  return;
9976
9984
  }
@@ -9979,12 +9987,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9979
9987
  }, [
9980
9988
  J,
9981
9989
  Dn,
9982
- He,
9990
+ Ve,
9983
9991
  Dt,
9984
9992
  Ot
9985
9993
  ]), rr = n((e) => {
9986
9994
  if (e.length > 0) {
9987
- if (He && Dt(e[0], He - 1)) {
9995
+ if (Ve && Dt(e[0], Ve - 1)) {
9988
9996
  Ot();
9989
9997
  return;
9990
9998
  }
@@ -9996,19 +10004,19 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
9996
10004
  et,
9997
10005
  qn,
9998
10006
  Jn,
9999
- He,
10007
+ Ve,
10000
10008
  Dt,
10001
10009
  Ot
10002
- ]), { isMetadataPopupOpen: ar, selectedFileForMetadata: cr, openMetadataPopup: lr, closeMetadataPopup: ur } = jr({ onGetInfo: H }), hr = n(() => {
10003
- ur(), ce?.clearMetadata?.();
10004
- }, [ur, ce]), vr = c(() => {
10005
- if (L) return Zn(L);
10010
+ ]), { isMetadataPopupOpen: ir, selectedFileForMetadata: or, openMetadataPopup: lr, closeMetadataPopup: ur } = Mr({ onGetInfo: U }), dr = n(() => {
10011
+ ur(), se?.clearMetadata?.();
10012
+ }, [ur, se]), gr = c(() => {
10013
+ if (L) return Qn(L);
10006
10014
  }, [L]), yr = {
10007
10015
  managerLabel: e,
10008
10016
  className: r,
10009
10017
  items: a,
10010
- allowedFileTypes: _e,
10011
- maxSelectableFileSize: ve,
10018
+ allowedFileTypes: ge,
10019
+ maxSelectableFileSize: _e,
10012
10020
  rootItem: o,
10013
10021
  filesLoading: f,
10014
10022
  treeOptions: {
@@ -10028,12 +10036,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10028
10036
  destinationFolderPath: st,
10029
10037
  setDestinationFolderPath: ct,
10030
10038
  header: Rt,
10031
- onCreateFolder: ae,
10032
- onCreateFolderValidate: oe,
10033
- folderCreationValidationMessages: se,
10039
+ onCreateFolder: ie,
10040
+ onCreateFolderValidate: ae,
10041
+ folderCreationValidationMessages: oe,
10034
10042
  sourceFolder: Kt
10035
10043
  },
10036
- currentPath: q,
10044
+ currentPath: $e,
10037
10045
  setCurrentPath: et,
10038
10046
  searchValue: St,
10039
10047
  effectiveSearchValue: Ct,
@@ -10043,36 +10051,36 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10043
10051
  isTreeCollapsed: dt,
10044
10052
  toggleTreeCollapse: ft,
10045
10053
  setIsTreeCollapsed: pt,
10046
- selectedPaths: Ge,
10047
- selectedFiles: $e,
10048
- setSelectedPaths: qe,
10049
- clearSelection: Ke,
10054
+ selectedPaths: We,
10055
+ selectedFiles: Qe,
10056
+ setSelectedPaths: Ke,
10057
+ clearSelection: Ge,
10050
10058
  currentFolder: Y,
10051
10059
  gridRows: Ln,
10052
10060
  handleCopyTo: kt,
10053
10061
  handleMoveTo: At,
10054
- handleDuplicate: Me ? bn : jt,
10062
+ handleDuplicate: je ? bn : jt,
10055
10063
  handleSetCopiedFiles: Ft,
10056
10064
  handleSetMovedFiles: It,
10057
10065
  openDestinationFolderPopup: Pt,
10058
10066
  handleCloseDestinationFolderPopup: Nt,
10059
10067
  handleOpenDestinationFolderPopup: Mt,
10060
10068
  destinationFolderMode: Lt,
10061
- handleGridAddSibling: Qn,
10062
- handleGridAddChild: tr,
10069
+ handleGridAddSibling: Zn,
10070
+ handleGridAddChild: $n,
10063
10071
  handleTreeAddSibling: nr,
10064
10072
  handleTreeAddChild: rr,
10065
10073
  handleDownloadFiles: Qt,
10066
10074
  renamedPath: mt,
10067
10075
  renamedItem: ht,
10068
- forbiddenSymbolsRegExp: vr,
10076
+ forbiddenSymbolsRegExp: gr,
10069
10077
  forbiddenSymbolsTooltip: R,
10070
10078
  onRename: gt,
10071
10079
  onRenameSave: _t,
10072
10080
  onRenameCancel: vt,
10073
10081
  onRenameValidate: yt,
10074
10082
  getDisplayName: bt,
10075
- openDeleteConfirmation: Ne || Yt,
10083
+ openDeleteConfirmation: Me || Yt,
10076
10084
  closeDeleteConfirmation: Xt,
10077
10085
  confirmDelete: Zt,
10078
10086
  deleteConfirmationOpen: qt,
@@ -10081,7 +10089,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10081
10089
  handleTreeItemClick: Rn,
10082
10090
  handleBreadcrumbItemClick: zn,
10083
10091
  handleSearchChange: Tt,
10084
- handleTableRowClick: Kn,
10092
+ handleTableRowClick: Gn,
10085
10093
  onTableFileClick: O,
10086
10094
  handleSelectionClick: k,
10087
10095
  onGridApiChange: A,
@@ -10124,50 +10132,50 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10124
10132
  handleUploadConflictDuplicate: fn,
10125
10133
  handleUploadConflictCancel: pn,
10126
10134
  handleUploadConflictDecideForEach: mn,
10127
- fileMetadataPopupOptions: ce,
10128
- isMetadataPopupOpen: ar,
10129
- selectedFileForMetadata: cr,
10135
+ fileMetadataPopupOptions: se,
10136
+ isMetadataPopupOpen: ir,
10137
+ selectedFileForMetadata: or,
10130
10138
  openMetadataPopup: lr,
10131
- closeMetadataPopup: hr,
10132
- onGetInfo: H,
10133
- onUnshareFiles: le,
10134
- onRemoveFilesAccess: ue,
10135
- actionsRef: de,
10136
- sharedByMePaths: fe,
10137
- onSearchFiles: pe,
10138
- searchInProgress: he,
10139
- searchResults: me,
10140
- clearSearchResults: ge,
10139
+ closeMetadataPopup: dr,
10140
+ onGetInfo: U,
10141
+ onUnshareFiles: ce,
10142
+ onRemoveFilesAccess: le,
10143
+ actionsRef: ue,
10144
+ sharedByMePaths: de,
10145
+ onSearchFiles: fe,
10146
+ searchInProgress: me,
10147
+ searchResults: pe,
10148
+ clearSearchResults: he,
10141
10149
  isSearchMode: xt,
10142
- emptyStateIcon: Se,
10143
- emptyStateTitle: Ce,
10144
- emptyStateDescription: we,
10145
- gridClassName: Ie,
10146
- sharedWithMeIds: Te,
10147
- onFolderPopupPathChange: Ee,
10148
- onManagePermissions: De,
10149
- onPreview: Oe,
10150
- onOpenInNewTab: ke,
10151
- previewExtensions: Ae,
10152
- isRenameFileAvailable: je,
10153
- isDuplicateFolderAvailable: U,
10154
- customUploadFileAction: W,
10155
- customBreakpointRef: Fe,
10156
- nonClickableTableColumns: Le,
10157
- hideSearchPathItemName: Re,
10158
- getDisabledTooltip: ye,
10159
- fileTooLargeTooltip: be,
10160
- unsupportedFileTypeTooltip: xe,
10161
- showHiddenFileSwitcherInDestinationPopup: ze,
10162
- showCreateFolderButtonInDestinationPopup: Be,
10163
- maxNewFolderDepth: He,
10164
- onNewFolderDepthExceeded: Ue
10150
+ emptyStateIcon: xe,
10151
+ emptyStateTitle: Se,
10152
+ emptyStateDescription: Ce,
10153
+ gridClassName: Fe,
10154
+ sharedWithMeIds: we,
10155
+ onFolderPopupPathChange: Te,
10156
+ onManagePermissions: Ee,
10157
+ onPreview: De,
10158
+ onOpenInNewTab: Oe,
10159
+ previewExtensions: ke,
10160
+ isRenameFileAvailable: Ae,
10161
+ isDuplicateFolderAvailable: W,
10162
+ customUploadFileAction: G,
10163
+ customBreakpointRef: Pe,
10164
+ nonClickableTableColumns: Ie,
10165
+ hideSearchPathItemName: Le,
10166
+ getDisabledTooltip: ve,
10167
+ fileTooLargeTooltip: ye,
10168
+ unsupportedFileTypeTooltip: be,
10169
+ showHiddenFileSwitcherInDestinationPopup: Re,
10170
+ showCreateFolderButtonInDestinationPopup: ze,
10171
+ maxNewFolderDepth: Ve,
10172
+ onNewFolderDepthExceeded: He
10165
10173
  };
10166
- return /* @__PURE__ */ G(_r.Provider, {
10174
+ return /* @__PURE__ */ K(vr.Provider, {
10167
10175
  value: yr,
10168
10176
  children: t
10169
10177
  });
10170
- }, Lr = ({ disabledGridRowIds: e, gridRows: t, getDisabledTooltip: n, getRowDisabledTooltip: r, allowedFileTypes: a, maxSelectableFileSize: o }) => {
10178
+ }, Rr = ({ disabledGridRowIds: e, gridRows: t, getDisabledTooltip: n, getRowDisabledTooltip: r, allowedFileTypes: a, maxSelectableFileSize: o }) => {
10171
10179
  let [s, l] = u(null), [d, f] = u(null);
10172
10180
  i(() => {
10173
10181
  let e = () => {
@@ -10207,12 +10215,12 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10207
10215
  a,
10208
10216
  o
10209
10217
  ]);
10210
- return /* @__PURE__ */ G(W, { children: m && d && tt(/* @__PURE__ */ K(xe, {
10218
+ return /* @__PURE__ */ K(G, { children: m && d && tt(/* @__PURE__ */ q(be, {
10211
10219
  open: !0,
10212
- placement: Ce.Top,
10213
- children: [/* @__PURE__ */ G(we, {
10220
+ placement: Se.Top,
10221
+ children: [/* @__PURE__ */ K(Ce, {
10214
10222
  asChild: !0,
10215
- children: /* @__PURE__ */ G("div", {
10223
+ children: /* @__PURE__ */ K("div", {
10216
10224
  className: (0, $t.default)("fixed z-[-1]", m && "pointer-events-none"),
10217
10225
  style: {
10218
10226
  top: d.top,
@@ -10221,41 +10229,41 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10221
10229
  height: d.height
10222
10230
  }
10223
10231
  })
10224
- }), /* @__PURE__ */ G(Se, {
10232
+ }), /* @__PURE__ */ K(xe, {
10225
10233
  className: "text-center",
10226
10234
  children: m
10227
10235
  })]
10228
10236
  }), document.body) });
10229
- }, Rr = () => typeof window < "u" && window.innerWidth < 640, zr = () => {
10230
- let [e, t] = u(Rr());
10237
+ }, zr = () => typeof window < "u" && window.innerWidth < 640, Br = () => {
10238
+ let [e, t] = u(zr());
10231
10239
  return i(() => {
10232
- let e = () => t(Rr());
10240
+ let e = () => t(zr());
10233
10241
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
10234
10242
  }, []), e;
10235
- }, Br = ({ onClose: e, onConfirm: t, onFolderPopupPathChange: r, setDestinationFolderPath: i, open: a, copyLabel: o = "Copy", moveLabel: s = "Move", addFolderLabel: d = "Add folder", mode: p = un.Copy, hiddenFilesSwitcherLabel: m = "Show hidden files", showHiddenFileSwitcher: h = !0, showCreateFolderButton: g = !0, onUploadFiles: _, onValidateUpload: v, maxFileSize: y, header: b, sourceFolder: x, disabledPathTooltip: S = "Unavailable for the original path. Please select another folder", path: C, collapsedFileTree: w = !1, alertProps: T, processDestinationFolderPath: E, ...D }) => {
10236
- let [O, k] = u(!1), [A, j] = u(!1), M = l(null), P = zr(), F = n((e) => {
10237
- k(e);
10238
- }, []), L = c(() => {
10243
+ }, Vr = ({ onClose: e, onConfirm: t, onFolderPopupPathChange: r, setDestinationFolderPath: i, open: a, copyLabel: o = "Copy", moveLabel: s = "Move", addFolderLabel: d = "Add folder", mode: p = un.Copy, hiddenFilesSwitcherLabel: m = "Show hidden files", showHiddenFileSwitcher: h = !0, showCreateFolderButton: g = !0, onUploadFiles: _, onValidateUpload: v, maxFileSize: y, header: b, sourceFolder: x, disabledPathTooltip: S = "Unavailable for the original path. Please select another folder", path: C, collapsedFileTree: w = !1, alertProps: T, processDestinationFolderPath: E, excludedPaths: D, items: O, ...k }) => {
10244
+ let [A, j] = u(!1), [M, P] = u(!1), F = l(null), L = Br(), R = c(() => Gn(O, D), [O, D]), z = n((e) => {
10245
+ j(e);
10246
+ }, []), ee = c(() => {
10239
10247
  let e = [];
10240
10248
  return g && e.push({
10241
10249
  key: "add-folder",
10242
10250
  label: d,
10243
- icon: /* @__PURE__ */ G(Ye, {
10251
+ icon: /* @__PURE__ */ K(Je, {
10244
10252
  ...X,
10245
10253
  className: "text-secondary"
10246
10254
  }),
10247
10255
  onClick: () => {
10248
- M.current?.createFolder(), j(!1);
10256
+ F.current?.createFolder(), P(!1);
10249
10257
  }
10250
10258
  }), h && e.push({
10251
10259
  key: "show-hidden-files",
10252
10260
  label: m,
10253
- icon: /* @__PURE__ */ G(Ue, {
10261
+ icon: /* @__PURE__ */ K(He, {
10254
10262
  ...X,
10255
10263
  className: "text-secondary"
10256
10264
  }),
10257
10265
  onClick: () => {
10258
- k((e) => !e), j(!1);
10266
+ j((e) => !e), P(!1);
10259
10267
  }
10260
10268
  }), e;
10261
10269
  }, [
@@ -10263,7 +10271,7 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10263
10271
  m,
10264
10272
  h,
10265
10273
  g
10266
- ]), R = n((e) => {
10274
+ ]), te = n((e) => {
10267
10275
  if (e) {
10268
10276
  let t = E ? E(e) : e;
10269
10277
  r?.(t), i?.(t);
@@ -10272,107 +10280,108 @@ var Ir = ({ managerLabel: e, children: t, className: r, items: a = [], rootItem:
10272
10280
  r,
10273
10281
  i,
10274
10282
  E
10275
- ]), z = p === un.Copy ? "Copy to" : "Move to", ee = c(() => !C || !x ? !1 : x === C, [C, x]);
10276
- return /* @__PURE__ */ G(ce, {
10283
+ ]), V = p === un.Copy ? "Copy to" : "Move to", H = c(() => !C || !x ? !1 : x === C, [C, x]);
10284
+ return /* @__PURE__ */ K(se, {
10277
10285
  open: a,
10278
10286
  onClose: () => {
10279
10287
  e();
10280
10288
  },
10281
- size: H.Lg,
10289
+ size: U.Lg,
10282
10290
  className: "md:!h-[800px] !bg-layer-sunken",
10283
- footer: /* @__PURE__ */ K("div", {
10291
+ footer: /* @__PURE__ */ q("div", {
10284
10292
  className: "flex justify-between items-center gap-2 p-4 md:px-6",
10285
- children: [/* @__PURE__ */ G("div", {
10293
+ children: [/* @__PURE__ */ K("div", {
10286
10294
  className: "flex items-center gap-4 min-w-0",
10287
- children: P ? /* @__PURE__ */ G(N, {
10288
- items: L,
10289
- open: A,
10290
- onOpenChange: j,
10291
- children: /* @__PURE__ */ G(B, {
10295
+ children: L ? /* @__PURE__ */ K(N, {
10296
+ items: ee,
10297
+ open: M,
10298
+ onOpenChange: P,
10299
+ children: /* @__PURE__ */ K(B, {
10292
10300
  size: I.Large,
10293
10301
  "aria-label": "More options",
10294
- icon: /* @__PURE__ */ G(Be, { ...X })
10302
+ icon: /* @__PURE__ */ K(ze, { ...X })
10295
10303
  })
10296
- }) : /* @__PURE__ */ K(W, { children: [
10297
- g && /* @__PURE__ */ G(le, {
10304
+ }) : /* @__PURE__ */ q(G, { children: [
10305
+ g && /* @__PURE__ */ K(ce, {
10298
10306
  label: d,
10299
10307
  appearance: f.Ghost,
10300
- iconBefore: /* @__PURE__ */ G(Ye, { ...X }),
10308
+ iconBefore: /* @__PURE__ */ K(Je, { ...X }),
10301
10309
  onClick: () => {
10302
- M.current?.createFolder();
10310
+ F.current?.createFolder();
10303
10311
  }
10304
10312
  }),
10305
- g && h && /* @__PURE__ */ G("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
10306
- h && /* @__PURE__ */ G(W, { children: /* @__PURE__ */ G("div", {
10313
+ g && h && /* @__PURE__ */ K("div", { className: "w-px h-[26px] bg-control-disable-primary my-2" }),
10314
+ h && /* @__PURE__ */ K(G, { children: /* @__PURE__ */ K("div", {
10307
10315
  className: "inline-flex items-center cursor-pointer",
10308
- children: /* @__PURE__ */ G(ge, {
10316
+ children: /* @__PURE__ */ K(he, {
10309
10317
  labelProps: { label: m },
10310
- isOn: O,
10311
- onChange: F,
10318
+ isOn: A,
10319
+ onChange: z,
10312
10320
  id: "hidden-files-switch-modal"
10313
10321
  })
10314
10322
  }) })
10315
10323
  ] })
10316
- }), /* @__PURE__ */ K("div", {
10324
+ }), /* @__PURE__ */ q("div", {
10317
10325
  className: "flex space-x-4 items-center",
10318
- children: [/* @__PURE__ */ G(re, {
10326
+ children: [/* @__PURE__ */ K(ne, {
10319
10327
  onClick: e,
10320
10328
  label: "Cancel"
10321
- }), ee ? /* @__PURE__ */ G(be, {
10329
+ }), H ? /* @__PURE__ */ K(ye, {
10322
10330
  tooltip: S,
10323
- children: /* @__PURE__ */ G(le, {
10331
+ children: /* @__PURE__ */ K(ce, {
10324
10332
  onClick: t,
10325
10333
  label: p === "copy" ? o : s,
10326
- disabled: ee,
10327
- "aria-disabled": ee
10334
+ disabled: H,
10335
+ "aria-disabled": H
10328
10336
  })
10329
- }) : /* @__PURE__ */ G(le, {
10337
+ }) : /* @__PURE__ */ K(ce, {
10330
10338
  onClick: t,
10331
10339
  label: p === "copy" ? o : s
10332
10340
  })]
10333
10341
  })]
10334
10342
  }),
10335
- header: b ?? z,
10336
- ariaLabel: z,
10337
- children: /* @__PURE__ */ K("div", {
10343
+ header: b ?? V,
10344
+ ariaLabel: V,
10345
+ children: /* @__PURE__ */ q("div", {
10338
10346
  className: "bg-layer-sunken h-full flex flex-col",
10339
- children: [T && /* @__PURE__ */ G("div", {
10347
+ children: [T && /* @__PURE__ */ K("div", {
10340
10348
  className: "px-6 mb-4 pt-4",
10341
- children: /* @__PURE__ */ G(ae, { ...T })
10342
- }), /* @__PURE__ */ G("div", {
10349
+ children: /* @__PURE__ */ K(ie, { ...T })
10350
+ }), /* @__PURE__ */ K("div", {
10343
10351
  className: "flex-1 min-h-0",
10344
- children: /* @__PURE__ */ G(Si, {
10345
- ...D,
10352
+ children: /* @__PURE__ */ K(Ci, {
10353
+ ...k,
10354
+ items: R,
10346
10355
  gridClassName: "size-full",
10347
- className: De(D.className, "bg-layer-sunken h-full flex pt-0"),
10348
- actionsRef: M,
10356
+ className: Ee(k.className, "bg-layer-sunken h-full flex pt-0"),
10357
+ actionsRef: F,
10349
10358
  path: C,
10350
- showHiddenFiles: O,
10351
- onShowHiddenFilesChange: F,
10359
+ showHiddenFiles: A,
10360
+ onShowHiddenFilesChange: z,
10352
10361
  treeOptions: {
10353
- ...D.treeOptions,
10362
+ ...k.treeOptions,
10354
10363
  collapsed: w,
10355
- expandedPaths: /* @__PURE__ */ new Set([D.rootItem?.path || "/"]),
10356
- header: D.treeOptions?.header
10364
+ expandedPaths: /* @__PURE__ */ new Set([k.rootItem?.path || "/"]),
10365
+ header: k.treeOptions?.header
10357
10366
  },
10358
10367
  gridOptions: {
10359
- ...D.gridOptions,
10368
+ ...k.gridOptions,
10360
10369
  selectionMode: void 0
10361
10370
  },
10362
10371
  navigationPanelOptions: {
10363
10372
  elementId: "file-manager-destination-search",
10364
- ...D.navigationPanelOptions
10373
+ ...k.navigationPanelOptions
10365
10374
  },
10366
10375
  onUploadFiles: _,
10367
10376
  onValidateUpload: v,
10368
- onPathChange: R,
10377
+ onPathChange: te,
10369
10378
  maxFileSize: y
10370
10379
  })
10371
10380
  })]
10372
10381
  })
10373
10382
  });
10374
10383
  };
10375
- function Vr({ actions: e, direction: t = R.Normal, moreButtonWidth: r = d, actionsGap: a = 8, containerPadding: o = 8, dependencies: c = [] }) {
10384
+ function Hr({ actions: e, direction: t = R.Normal, moreButtonWidth: r = d, actionsGap: a = 8, containerPadding: o = 8, dependencies: c = [] }) {
10376
10385
  let f = l(null), p = l(null), m = l(null), h = l(null), g = l([]), [_, v] = u(0), y = n((e, n) => {
10377
10386
  let i = (m.current?.offsetWidth ?? 0) + (h.current?.offsetWidth ?? 0), s = n.getBoundingClientRect().width - i - r - a * 2 - o * 2, c = 0, l = 0;
10378
10387
  if (t === R.Reverse) for (let t = e.length - 1; t >= 0 && (c += e[t] + a, !(c > s)); t--) l++;
@@ -10424,45 +10433,45 @@ function Vr({ actions: e, direction: t = R.Normal, moreButtonWidth: r = d, actio
10424
10433
  }
10425
10434
  };
10426
10435
  }
10427
- var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions: n, selectedCount: r }) => {
10428
- let i = zr(), { refs: { containerRef: a, leftSectionRef: o, measureRef: s }, visibleActions: c, hiddenActions: l } = Vr({
10436
+ var Ur = 12, Wr = 8, Gr = ({ getSelectionLabel: e, onClearSelection: t, actions: n, selectedCount: r }) => {
10437
+ let i = Br(), { refs: { containerRef: a, leftSectionRef: o, measureRef: s }, visibleActions: c, hiddenActions: l } = Hr({
10429
10438
  actions: n,
10430
10439
  direction: R.Reverse,
10431
10440
  dependencies: [i],
10432
- actionsGap: Hr,
10433
- containerPadding: Ur
10441
+ actionsGap: Ur,
10442
+ containerPadding: Wr
10434
10443
  }), u = e(r);
10435
- return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
10444
+ return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("div", {
10436
10445
  ref: s,
10437
10446
  className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
10438
- children: n.map(({ key: e, icon: t, title: n }) => /* @__PURE__ */ G(re, {
10447
+ children: n.map(({ key: e, icon: t, title: n }) => /* @__PURE__ */ K(ne, {
10439
10448
  iconBefore: t,
10440
10449
  label: n
10441
10450
  }, e))
10442
- }), /* @__PURE__ */ K("div", {
10451
+ }), /* @__PURE__ */ q("div", {
10443
10452
  ref: a,
10444
10453
  className: "rounded bg-layer-raised p-2 flex justify-between items-center w-full",
10445
10454
  role: "toolbar",
10446
10455
  "aria-label": "File bulk actions",
10447
- children: [/* @__PURE__ */ G("div", {
10456
+ children: [/* @__PURE__ */ K("div", {
10448
10457
  ref: o,
10449
- children: /* @__PURE__ */ G(le, {
10458
+ children: /* @__PURE__ */ K(ce, {
10450
10459
  label: u,
10451
10460
  onClick: t,
10452
10461
  textClassName: "text-accent whitespace-nowrap",
10453
10462
  appearance: f.Ghost,
10454
- iconBefore: /* @__PURE__ */ G(et, { ...X })
10463
+ iconBefore: /* @__PURE__ */ K(et, { ...X })
10455
10464
  })
10456
- }), /* @__PURE__ */ K("div", {
10465
+ }), /* @__PURE__ */ q("div", {
10457
10466
  className: "flex flex-1 w-full gap-3 items-center justify-end",
10458
- children: [l.length > 0 && /* @__PURE__ */ G(N, {
10467
+ children: [l.length > 0 && /* @__PURE__ */ K(N, {
10459
10468
  items: l,
10460
10469
  allowedPlacements: ["bottom", "bottom-start"],
10461
- children: /* @__PURE__ */ G(B, {
10470
+ children: /* @__PURE__ */ K(B, {
10462
10471
  className: "h-[38px]",
10463
- icon: /* @__PURE__ */ G(Be, { ...X })
10472
+ icon: /* @__PURE__ */ K(ze, { ...X })
10464
10473
  })
10465
- }), c.map(({ key: e, icon: t, tooltip: n, title: r, onClick: i, disabled: a }) => /* @__PURE__ */ G(re, {
10474
+ }), c.map(({ key: e, icon: t, tooltip: n, title: r, onClick: i, disabled: a }) => /* @__PURE__ */ K(ne, {
10466
10475
  className: "!p-[9px]",
10467
10476
  iconBefore: t,
10468
10477
  label: r,
@@ -10475,15 +10484,15 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10475
10484
  }, e))]
10476
10485
  })]
10477
10486
  })] });
10478
- }, Gr = ({ open: e, itemsToDelete: t, onClose: n, onConfirm: r, cancelLabel: i = "Cancel", confirmLabel: a = "Delete", titleRenderer: o, contentRenderer: s }) => {
10479
- let c = t.map((e) => e.name), l = "Confirm Deleting Items", u = o?.(c) || l, d = /* @__PURE__ */ K("div", {
10487
+ }, Kr = ({ open: e, itemsToDelete: t, onClose: n, onConfirm: r, cancelLabel: i = "Cancel", confirmLabel: a = "Delete", titleRenderer: o, contentRenderer: s }) => {
10488
+ let c = t.map((e) => e.name), l = "Confirm Deleting Items", u = o?.(c) || l, d = /* @__PURE__ */ q("div", {
10480
10489
  className: "px-6 py-3 dial-small-text",
10481
- children: [/* @__PURE__ */ G("p", {
10490
+ children: [/* @__PURE__ */ K("p", {
10482
10491
  className: "text-secondary mb-3",
10483
- children: t.length === 1 ? /* @__PURE__ */ K(W, { children: [
10492
+ children: t.length === 1 ? /* @__PURE__ */ q(G, { children: [
10484
10493
  "Do you want to delete file or folder",
10485
10494
  " ",
10486
- /* @__PURE__ */ K("span", {
10495
+ /* @__PURE__ */ q("span", {
10487
10496
  className: "text-primary break-all",
10488
10497
  children: [
10489
10498
  "\"",
@@ -10492,28 +10501,28 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10492
10501
  ]
10493
10502
  }),
10494
10503
  "?"
10495
- ] }) : /* @__PURE__ */ K(W, { children: [
10504
+ ] }) : /* @__PURE__ */ q(G, { children: [
10496
10505
  "Do you want to delete the following",
10497
10506
  " ",
10498
- /* @__PURE__ */ G("span", {
10507
+ /* @__PURE__ */ K("span", {
10499
10508
  className: "text-primary",
10500
10509
  children: t.length
10501
10510
  }),
10502
10511
  " items?"
10503
10512
  ] })
10504
- }), t.length > 1 && /* @__PURE__ */ G(W, { children: t.length <= 10 ? /* @__PURE__ */ G("ul", {
10513
+ }), t.length > 1 && /* @__PURE__ */ K(G, { children: t.length <= 10 ? /* @__PURE__ */ K("ul", {
10505
10514
  className: "space-y-1 text-primary list-none",
10506
- children: t.map((e) => /* @__PURE__ */ G("li", {
10515
+ children: t.map((e) => /* @__PURE__ */ K("li", {
10507
10516
  className: "truncate",
10508
10517
  children: e.name
10509
10518
  }, e.path))
10510
- }) : /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("ul", {
10519
+ }) : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("ul", {
10511
10520
  className: "space-y-1 text-primary list-none mb-2",
10512
- children: t.slice(0, 10).map((e) => /* @__PURE__ */ G("li", {
10521
+ children: t.slice(0, 10).map((e) => /* @__PURE__ */ K("li", {
10513
10522
  className: "truncate",
10514
10523
  children: e.name
10515
10524
  }, e.path))
10516
- }), /* @__PURE__ */ K("p", {
10525
+ }), /* @__PURE__ */ q("p", {
10517
10526
  className: "text-secondary italic",
10518
10527
  children: [
10519
10528
  "... and ",
@@ -10522,7 +10531,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10522
10531
  ]
10523
10532
  })] }) })]
10524
10533
  }), f = s?.(c) || d;
10525
- return /* @__PURE__ */ G(v, {
10534
+ return /* @__PURE__ */ K(v, {
10526
10535
  open: e,
10527
10536
  header: u,
10528
10537
  ariaLabel: l,
@@ -10533,12 +10542,12 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10533
10542
  onConfirm: r,
10534
10543
  children: f
10535
10544
  });
10536
- }, Kr = (e) => e.split("/").map((e) => e.trim()).filter(Boolean), qr = "w-full flex items-center justify-between gap-4 p-px", Jr = "min-w-0 h-[40px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Yr = "w-[260px]", Xr = ({ ariaLabel: e = "Breadcrumb", labelClassName: t, onItemClick: r, path: i, makeHref: a, rootItemPath: o, rootItemLabel: s, breadcrumbsHiddenPathPart: l, className: d, breadcrumbClassName: f, searchable: p = !0, value: m, elementId: h = "file-manager-search", disabled: g, invalid: _, onSearchChange: v, searchClassName: y, searchContainerClassName: b, isCompactView: x = !1, backButtonLabel: S = "Back" }) => {
10545
+ }, qr = (e) => e.split("/").map((e) => e.trim()).filter(Boolean), Jr = "w-full flex items-center justify-between gap-4 p-px", Yr = "min-w-0 h-[40px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", Xr = "w-[260px]", Zr = ({ ariaLabel: e = "Breadcrumb", labelClassName: t, onItemClick: r, path: i, makeHref: a, rootItemPath: o, rootItemLabel: s, breadcrumbsHiddenPathPart: l, className: d, breadcrumbClassName: f, searchable: p = !0, value: m, elementId: h = "file-manager-search", disabled: g, invalid: _, onSearchChange: v, searchClassName: y, searchContainerClassName: b, isCompactView: x = !1, backButtonLabel: S = "Back" }) => {
10537
10546
  let C = c(() => {
10538
10547
  if (!i) return;
10539
- let e = Kr(i), t = [...e], n = 0;
10548
+ let e = qr(i), t = [...e], n = 0;
10540
10549
  if (l) {
10541
- let t = Kr(l);
10550
+ let t = qr(l);
10542
10551
  if (t.length) {
10543
10552
  let r = e.findIndex((n, r) => t.every((t, n) => e[r + n] === t));
10544
10553
  r !== -1 && (n = t.length, e = [...e.slice(0, r), ...e.slice(r + t.length)]);
@@ -10590,16 +10599,16 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10590
10599
  x
10591
10600
  ]), k = n(() => {
10592
10601
  (!m || String(m).trim() === "") && v?.("");
10593
- }, [m, v]), A = n(() => x && w ? /* @__PURE__ */ G(B, {
10602
+ }, [m, v]), A = n(() => x && w ? /* @__PURE__ */ K(B, {
10594
10603
  size: I.Standard,
10595
10604
  "aria-label": S,
10596
- icon: /* @__PURE__ */ G(Pe, { ...X }),
10605
+ icon: /* @__PURE__ */ K(Ne, { ...X }),
10597
10606
  onClick: () => {
10598
10607
  E(!1), v?.("");
10599
10608
  }
10600
- }) : /* @__PURE__ */ G("div", {
10601
- className: Jr,
10602
- children: /* @__PURE__ */ G(T, {
10609
+ }) : /* @__PURE__ */ K("div", {
10610
+ className: Yr,
10611
+ children: /* @__PURE__ */ K(T, {
10603
10612
  pathItems: C,
10604
10613
  ariaLabel: e,
10605
10614
  labelClassName: t,
@@ -10615,18 +10624,18 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10615
10624
  t,
10616
10625
  v
10617
10626
  ]);
10618
- return /* @__PURE__ */ K("div", {
10619
- className: De(qr, { "gap-3": x }, d),
10627
+ return /* @__PURE__ */ q("div", {
10628
+ className: Ee(Jr, { "gap-3": x }, d),
10620
10629
  "aria-label": "navigation-panel",
10621
- children: [A(), p && /* @__PURE__ */ G("div", {
10622
- className: De(Yr, {
10630
+ children: [A(), p && /* @__PURE__ */ K("div", {
10631
+ className: Ee(Xr, {
10623
10632
  "w-[40px]": x && !w,
10624
10633
  "w-full": x && w
10625
10634
  }),
10626
10635
  role: "search",
10627
10636
  "aria-label": "Search",
10628
10637
  onClick: O,
10629
- children: /* @__PURE__ */ G(de, {
10638
+ children: /* @__PURE__ */ K(ue, {
10630
10639
  id: h,
10631
10640
  value: m ?? "",
10632
10641
  onChange: D,
@@ -10639,11 +10648,11 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10639
10648
  })
10640
10649
  })]
10641
10650
  });
10642
- }, Zr = ({ tabs: e, activeTab: t, onTabChange: n, areHiddenFilesVisible: r, onToggleHiddenFiles: i, isNewButtonVisible: a, isNewButtonDisabled: o, newButtonVariant: s = m.Primary, newButtonDropdownItems: l = [], newButtonLabel: u = "New", hiddenFilesSwitcherLabel: d = "Hidden files", showHiddenFilesLabel: f = "Show hidden files", hideHiddenFilesLabel: h = "Hide hidden files", showHiddenFilesToggle: g = !0, disabledNewButtonTooltip: _ }) => {
10643
- let v = zr(), y = c(() => [{
10651
+ }, Qr = ({ tabs: e, activeTab: t, onTabChange: n, areHiddenFilesVisible: r, onToggleHiddenFiles: i, isNewButtonVisible: a, isNewButtonDisabled: o, newButtonVariant: s = m.Primary, newButtonDropdownItems: l = [], newButtonLabel: u = "New", hiddenFilesSwitcherLabel: d = "Hidden files", showHiddenFilesLabel: f = "Show hidden files", hideHiddenFilesLabel: h = "Hide hidden files", showHiddenFilesToggle: g = !0, disabledNewButtonTooltip: _ }) => {
10652
+ let v = Br(), y = c(() => [{
10644
10653
  key: "hidden-files-switch",
10645
10654
  label: r ? h : f,
10646
- icon: G(r ? We : Ue, {
10655
+ icon: K(r ? Ue : He, {
10647
10656
  ...X,
10648
10657
  className: "text-secondary"
10649
10658
  }),
@@ -10654,43 +10663,43 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10654
10663
  f,
10655
10664
  i
10656
10665
  ]);
10657
- return /* @__PURE__ */ K("div", {
10666
+ return /* @__PURE__ */ q("div", {
10658
10667
  className: "flex w-full justify-between gap-4 items-center overflow-x-auto py-[2px] my-[-2px]",
10659
- children: [/* @__PURE__ */ G("div", {
10668
+ children: [/* @__PURE__ */ K("div", {
10660
10669
  className: "flex-1 min-w-0",
10661
- children: e && t && n ? /* @__PURE__ */ G(_e, {
10670
+ children: e && t && n ? /* @__PURE__ */ K(ge, {
10662
10671
  tabs: e,
10663
10672
  activeTabId: t,
10664
10673
  onTabChange: (e) => n(e)
10665
10674
  }) : null
10666
- }), /* @__PURE__ */ G("div", {
10675
+ }), /* @__PURE__ */ K("div", {
10667
10676
  className: "flex gap-2 shrink-0 items-center",
10668
- children: v ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(N, {
10677
+ children: v ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(N, {
10669
10678
  items: y,
10670
10679
  allowedPlacements: ["bottom", "bottom-start"],
10671
- children: /* @__PURE__ */ G(B, {
10680
+ children: /* @__PURE__ */ K(B, {
10672
10681
  size: I.Small,
10673
- icon: /* @__PURE__ */ G(Be, {
10682
+ icon: /* @__PURE__ */ K(ze, {
10674
10683
  stroke: sn,
10675
10684
  size: S.SM
10676
10685
  })
10677
10686
  })
10678
- }), a ? /* @__PURE__ */ G(be, {
10687
+ }), a ? /* @__PURE__ */ K(ye, {
10679
10688
  tooltip: o && _ ? _ : void 0,
10680
- children: /* @__PURE__ */ G(p, {
10689
+ children: /* @__PURE__ */ K(p, {
10681
10690
  label: u,
10682
10691
  variant: s,
10683
10692
  items: l,
10684
10693
  disabled: o
10685
10694
  })
10686
- }) : null] }) : /* @__PURE__ */ K(W, { children: [g && /* @__PURE__ */ G(ge, {
10695
+ }) : null] }) : /* @__PURE__ */ q(G, { children: [g && /* @__PURE__ */ K(he, {
10687
10696
  id: "hidden-files-switch",
10688
10697
  labelProps: { label: d },
10689
10698
  isOn: r,
10690
10699
  onChange: i
10691
- }), a && /* @__PURE__ */ G(be, {
10700
+ }), a && /* @__PURE__ */ K(ye, {
10692
10701
  tooltip: o && _ ? _ : void 0,
10693
- children: /* @__PURE__ */ G(p, {
10702
+ children: /* @__PURE__ */ K(p, {
10694
10703
  label: u,
10695
10704
  variant: s,
10696
10705
  items: l,
@@ -10699,171 +10708,171 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10699
10708
  })] })
10700
10709
  })]
10701
10710
  });
10702
- }, Qr = 100, $r = 16, ei = "text-secondary", ti = "text-primary min-w-0", ni = "text-primary break-words min-w-0", ri = "bg-layer-sunken", ii = ({ open: e, onClose: t, fileMetadata: n, loading: r = !1, header: i = "Information", nameLabel: a = "Name:", pathLabel: o = "Path:", modifiedDateLabel: s = "Modified Date:", sizeLabel: c = "Size:", authorLabel: l = "Author:", dateLocale: u = "en-US", dateOptions: d }) => /* @__PURE__ */ G(ce, {
10711
+ }, $r = 100, ei = 16, ti = "text-secondary", ni = "text-primary min-w-0", ri = "text-primary break-words min-w-0", ii = "bg-layer-sunken", ai = ({ open: e, onClose: t, fileMetadata: n, loading: r = !1, header: i = "Information", nameLabel: a = "Name:", pathLabel: o = "Path:", modifiedDateLabel: s = "Modified Date:", sizeLabel: c = "Size:", authorLabel: l = "Author:", dateLocale: u = "en-US", dateOptions: d }) => /* @__PURE__ */ K(se, {
10703
10712
  open: e,
10704
10713
  onClose: t,
10705
- size: H.Sm,
10714
+ size: U.Sm,
10706
10715
  header: i,
10707
10716
  ariaLabel: "File information",
10708
- children: /* @__PURE__ */ G("div", {
10717
+ children: /* @__PURE__ */ K("div", {
10709
10718
  className: "px-6 py-4",
10710
- children: /* @__PURE__ */ G("div", {
10719
+ children: /* @__PURE__ */ K("div", {
10711
10720
  className: "grid gap-4 items-center dial-small-text",
10712
- style: { gridTemplateColumns: `${Qr}px 1fr` },
10713
- children: r ? /* @__PURE__ */ K(W, { children: [
10714
- /* @__PURE__ */ G("div", {
10715
- className: ei,
10721
+ style: { gridTemplateColumns: `${$r}px 1fr` },
10722
+ children: r ? /* @__PURE__ */ q(G, { children: [
10723
+ /* @__PURE__ */ K("div", {
10724
+ className: ti,
10716
10725
  children: a
10717
10726
  }),
10718
- /* @__PURE__ */ G(pe, {
10719
- variant: me.Text,
10727
+ /* @__PURE__ */ K(fe, {
10728
+ variant: pe.Text,
10720
10729
  width: "100%",
10721
- height: $r,
10722
- className: ri
10730
+ height: ei,
10731
+ className: ii
10723
10732
  }),
10724
- /* @__PURE__ */ G("div", {
10725
- className: ei,
10733
+ /* @__PURE__ */ K("div", {
10734
+ className: ti,
10726
10735
  children: s
10727
10736
  }),
10728
- /* @__PURE__ */ G(pe, {
10729
- variant: me.Text,
10737
+ /* @__PURE__ */ K(fe, {
10738
+ variant: pe.Text,
10730
10739
  width: "90%",
10731
- height: $r,
10732
- className: ri
10740
+ height: ei,
10741
+ className: ii
10733
10742
  }),
10734
- /* @__PURE__ */ G("div", {
10735
- className: ei,
10743
+ /* @__PURE__ */ K("div", {
10744
+ className: ti,
10736
10745
  children: c
10737
10746
  }),
10738
- /* @__PURE__ */ G(pe, {
10739
- variant: me.Text,
10747
+ /* @__PURE__ */ K(fe, {
10748
+ variant: pe.Text,
10740
10749
  width: "60%",
10741
- height: $r,
10742
- className: ri
10750
+ height: ei,
10751
+ className: ii
10743
10752
  }),
10744
- /* @__PURE__ */ G("div", {
10745
- className: ei,
10753
+ /* @__PURE__ */ K("div", {
10754
+ className: ti,
10746
10755
  children: l
10747
10756
  }),
10748
- /* @__PURE__ */ G(pe, {
10749
- variant: me.Text,
10757
+ /* @__PURE__ */ K(fe, {
10758
+ variant: pe.Text,
10750
10759
  width: "80%",
10751
- height: $r,
10752
- className: ri
10760
+ height: ei,
10761
+ className: ii
10753
10762
  }),
10754
- /* @__PURE__ */ G("div", {
10755
- className: ei,
10763
+ /* @__PURE__ */ K("div", {
10764
+ className: ti,
10756
10765
  children: o
10757
10766
  }),
10758
- /* @__PURE__ */ G(pe, {
10759
- variant: me.Text,
10767
+ /* @__PURE__ */ K(fe, {
10768
+ variant: pe.Text,
10760
10769
  width: "70%",
10761
- height: $r,
10762
- className: ri
10770
+ height: ei,
10771
+ className: ii
10763
10772
  })
10764
- ] }) : n ? /* @__PURE__ */ K(W, { children: [
10765
- /* @__PURE__ */ G("div", {
10766
- className: ei,
10773
+ ] }) : n ? /* @__PURE__ */ q(G, { children: [
10774
+ /* @__PURE__ */ K("div", {
10775
+ className: ti,
10767
10776
  children: a
10768
10777
  }),
10769
- /* @__PURE__ */ G("div", {
10770
- className: ti,
10771
- children: /* @__PURE__ */ G(L, { text: n.name })
10778
+ /* @__PURE__ */ K("div", {
10779
+ className: ni,
10780
+ children: /* @__PURE__ */ K(L, { text: n.name })
10772
10781
  }),
10773
- /* @__PURE__ */ G("div", {
10774
- className: ei,
10782
+ /* @__PURE__ */ K("div", {
10783
+ className: ti,
10775
10784
  children: s
10776
10785
  }),
10777
- /* @__PURE__ */ G("div", {
10778
- className: ti,
10779
- children: /* @__PURE__ */ G(L, { text: qn(n.updatedAt, u, d) })
10786
+ /* @__PURE__ */ K("div", {
10787
+ className: ni,
10788
+ children: /* @__PURE__ */ K(L, { text: Jn(n.updatedAt, u, d) })
10780
10789
  }),
10781
- /* @__PURE__ */ G("div", {
10782
- className: ei,
10790
+ /* @__PURE__ */ K("div", {
10791
+ className: ti,
10783
10792
  children: c
10784
10793
  }),
10785
- /* @__PURE__ */ G("div", {
10786
- className: ti,
10787
- children: /* @__PURE__ */ G(L, { text: Kn(n.contentLength) })
10794
+ /* @__PURE__ */ K("div", {
10795
+ className: ni,
10796
+ children: /* @__PURE__ */ K(L, { text: qn(n.contentLength) })
10788
10797
  }),
10789
- /* @__PURE__ */ G("div", {
10790
- className: ei,
10798
+ /* @__PURE__ */ K("div", {
10799
+ className: ti,
10791
10800
  children: l
10792
10801
  }),
10793
- /* @__PURE__ */ G("div", {
10794
- className: ti,
10795
- children: /* @__PURE__ */ G(L, { text: n.author || "—" })
10802
+ /* @__PURE__ */ K("div", {
10803
+ className: ni,
10804
+ children: /* @__PURE__ */ K(L, { text: n.author || "—" })
10796
10805
  }),
10797
- /* @__PURE__ */ G("div", {
10798
- className: ei,
10806
+ /* @__PURE__ */ K("div", {
10807
+ className: ti,
10799
10808
  children: o
10800
10809
  }),
10801
- /* @__PURE__ */ G("div", {
10802
- className: ni,
10810
+ /* @__PURE__ */ K("div", {
10811
+ className: ri,
10803
10812
  children: decodeURIComponent(n.path)
10804
10813
  })
10805
10814
  ] }) : null
10806
10815
  })
10807
10816
  })
10808
- }), ai = {
10817
+ }), oi = {
10809
10818
  size: 10,
10810
10819
  stroke: 2
10811
- }, oi = 26, si = "__new_folder", ci = ({ name: e, type: t, shared: n = !1, loading: r = !1, sharedIndicatorClassName: i, sharedIndicatorTooltip: a, fileExtension: o, ...s }) => {
10812
- let c = (e) => /* @__PURE__ */ K("span", {
10820
+ }, si = 26, ci = "__new_folder", li = ({ name: e, type: t, shared: n = !1, loading: r = !1, sharedIndicatorClassName: i, sharedIndicatorTooltip: a, fileExtension: o, ...s }) => {
10821
+ let c = (e) => /* @__PURE__ */ q("span", {
10813
10822
  className: "inline-flex relative text-secondary",
10814
10823
  role: "img",
10815
- children: [e, n && /* @__PURE__ */ G("span", {
10824
+ children: [e, n && /* @__PURE__ */ K("span", {
10816
10825
  className: "absolute -bottom-0.5 -left-0.5",
10817
- children: /* @__PURE__ */ G(M, {
10826
+ children: /* @__PURE__ */ K(M, {
10818
10827
  className: i,
10819
10828
  sharedIndicatorTooltip: a
10820
10829
  })
10821
10830
  })]
10822
10831
  });
10823
- if (r) return c(/* @__PURE__ */ G(he, {}));
10832
+ if (r) return c(/* @__PURE__ */ K(me, {}));
10824
10833
  if (t === j.File) {
10825
10834
  let t = o || (e.includes(".") ? e.split(".").pop() : void 0);
10826
- return /* @__PURE__ */ G(E, {
10835
+ return /* @__PURE__ */ K(E, {
10827
10836
  ...s,
10828
10837
  extension: t ?? "",
10829
10838
  className: "text-secondary",
10830
- indicator: n ? /* @__PURE__ */ G(M, {
10839
+ indicator: n ? /* @__PURE__ */ K(M, {
10831
10840
  className: i,
10832
10841
  sharedIndicatorTooltip: a
10833
10842
  }) : null,
10834
10843
  label: "File type icon"
10835
10844
  });
10836
10845
  }
10837
- return t === j.Folder ? c(/* @__PURE__ */ G(A, {
10838
- icon: /* @__PURE__ */ G(Je, {
10846
+ return t === j.Folder ? c(/* @__PURE__ */ K(A, {
10847
+ icon: /* @__PURE__ */ K(qe, {
10839
10848
  className: s.className,
10840
10849
  size: s.size ?? X.size,
10841
10850
  stroke: s.stroke ?? X.stroke
10842
10851
  }),
10843
10852
  className: "inline-block align-middle"
10844
10853
  })) : null;
10845
- }, li = ({ name: e, type: t, elementId: n, loading: r = !1, shared: i = !1, iconClassName: a, iconIndicator: o, iconLabel: s, iconSize: c, iconStroke: l, inputInvalid: u, inputInvalidMessage: d, inputContainerClassName: f, inputIconAfter: p, inputRef: m, onChange: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, fileExtension: v }) => {
10854
+ }, ui = ({ name: e, type: t, elementId: n, loading: r = !1, shared: i = !1, iconClassName: a, iconIndicator: o, iconLabel: s, iconSize: c, iconStroke: l, inputInvalid: u, inputInvalidMessage: d, inputContainerClassName: f, inputIconAfter: p, inputRef: m, onChange: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, fileExtension: v }) => {
10846
10855
  let y = () => {
10847
- let e = d?.startsWith(`${se.Warning}__`);
10856
+ let e = d?.startsWith(`${oe.Warning}__`);
10848
10857
  if (!u && !e) return null;
10849
- let t = d?.replace(`${se.Warning}__`, "");
10850
- return /* @__PURE__ */ G(be, {
10858
+ let t = d?.replace(`${oe.Warning}__`, "");
10859
+ return /* @__PURE__ */ K(ye, {
10851
10860
  tooltip: t,
10852
- children: p || (e ? /* @__PURE__ */ G(Ne, {
10861
+ children: p || (e ? /* @__PURE__ */ K(Me, {
10853
10862
  ...X,
10854
10863
  className: "text-warning-icon",
10855
10864
  "aria-label": "warning"
10856
- }) : /* @__PURE__ */ G(Me, {
10865
+ }) : /* @__PURE__ */ K(je, {
10857
10866
  ...X,
10858
10867
  className: "text-error",
10859
10868
  "aria-label": "alert"
10860
10869
  }))
10861
10870
  });
10862
10871
  };
10863
- return /* @__PURE__ */ K("div", {
10872
+ return /* @__PURE__ */ q("div", {
10864
10873
  className: "flex gap-2 items-center",
10865
- ...Ee,
10866
- children: [/* @__PURE__ */ G(ci, {
10874
+ ...Te,
10875
+ children: [/* @__PURE__ */ K(li, {
10867
10876
  name: e,
10868
10877
  type: t,
10869
10878
  label: s,
@@ -10876,8 +10885,8 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10876
10885
  fileExtension: v,
10877
10886
  sharedIndicatorClassName: g,
10878
10887
  sharedIndicatorTooltip: _
10879
- }), /* @__PURE__ */ G(V, {
10880
- containerClassName: De("!h-5 !py-[1px] !pl-[7px] pr-[7px]", f),
10888
+ }), /* @__PURE__ */ K(V, {
10889
+ containerClassName: Ee("!h-5 !py-[1px] !pl-[7px] pr-[7px]", f),
10881
10890
  id: n,
10882
10891
  value: e,
10883
10892
  onChange: h,
@@ -10886,8 +10895,8 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10886
10895
  inputRef: m
10887
10896
  })]
10888
10897
  });
10889
- }, ui = ({ name: e, type: t, elementId: n, editing: r = !1, loading: i = !1, creating: a = !1, shared: o = !1, iconSize: s = d, validate: c, onSave: l, fileExtension: u, onCancel: f, onCreateFolderCancel: p, onCreateFolderSave: m, inputContainerClassName: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, hideTooltip: v = !1, forbiddenSymbolsRegExp: y, forbiddenSymbolsTooltip: b, ...x }) => {
10890
- let { value: S, invalid: C, invalidMessage: w, onChange: T, inputRef: E } = Oe({
10898
+ }, di = ({ name: e, type: t, elementId: n, editing: r = !1, loading: i = !1, creating: a = !1, shared: o = !1, iconSize: s = d, validate: c, onSave: l, fileExtension: u, onCancel: f, onCreateFolderCancel: p, onCreateFolderSave: m, inputContainerClassName: h, sharedIndicatorClassName: g, sharedIndicatorTooltip: _, hideTooltip: v = !1, forbiddenSymbolsRegExp: y, forbiddenSymbolsTooltip: b, ...x }) => {
10899
+ let { value: S, invalid: C, invalidMessage: w, onChange: T, inputRef: E } = De({
10891
10900
  value: e,
10892
10901
  isEditing: r,
10893
10902
  isCreating: a,
@@ -10899,11 +10908,11 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10899
10908
  onCreateFolderSave: m
10900
10909
  });
10901
10910
  if (!r && !a) {
10902
- let n = Qn({
10911
+ let n = $n({
10903
10912
  name: e,
10904
10913
  isFolder: t === j.Folder
10905
10914
  }, y, b), r = !!n;
10906
- return t === j.Folder ? /* @__PURE__ */ G(k, {
10915
+ return t === j.Folder ? /* @__PURE__ */ K(k, {
10907
10916
  name: e,
10908
10917
  loading: i,
10909
10918
  shared: o,
@@ -10913,7 +10922,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10913
10922
  hideTooltip: v,
10914
10923
  isInvalidName: r,
10915
10924
  tooltipContent: n
10916
- }) : /* @__PURE__ */ G(D, {
10925
+ }) : /* @__PURE__ */ K(D, {
10917
10926
  className: "max-w-[428px]",
10918
10927
  ...x,
10919
10928
  name: e,
@@ -10925,7 +10934,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10925
10934
  tooltipContent: n
10926
10935
  });
10927
10936
  }
10928
- return /* @__PURE__ */ G(li, {
10937
+ return /* @__PURE__ */ K(ui, {
10929
10938
  type: t,
10930
10939
  name: S,
10931
10940
  elementId: n,
@@ -10939,8 +10948,8 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10939
10948
  sharedIndicatorTooltip: _,
10940
10949
  sharedIndicatorClassName: g
10941
10950
  });
10942
- }, di = ({ items: e, showFiles: t = !1, expandedPaths: n, loadingPaths: r = /* @__PURE__ */ new Set(), loadedPaths: i = /* @__PURE__ */ new Set(), sharedByMePaths: a = /* @__PURE__ */ new Set(), selectedPath: o, emptyStateTitle: s = "No Folders", emptyStateDescription: c, emptyStateIcon: l, areHiddenFilesVisible: u = !1, renamedPath: d, createdFolderPath: f, rootItemLabel: p, rootItemPath: m, onItemClick: h, getContextMenuItems: g, onRenameSave: _, onRenameCancel: v, onRenameValidate: y, onExpandedPathsChange: b, onCreateFolderSave: x, onCreateFolderCancel: S, forbiddenSymbolsRegExp: C, forbiddenSymbolsTooltip: w, newFolderDefaultName: T }) => {
10943
- let { expandedPaths: E, togglePath: D } = Er({
10951
+ }, fi = ({ items: e, showFiles: t = !1, expandedPaths: n, loadingPaths: r = /* @__PURE__ */ new Set(), loadedPaths: i = /* @__PURE__ */ new Set(), sharedByMePaths: a = /* @__PURE__ */ new Set(), selectedPath: o, emptyStateTitle: s = "No Folders", emptyStateDescription: c, emptyStateIcon: l, areHiddenFilesVisible: u = !1, renamedPath: d, createdFolderPath: f, rootItemLabel: p, rootItemPath: m, onItemClick: h, getContextMenuItems: g, onRenameSave: _, onRenameCancel: v, onRenameValidate: y, onExpandedPathsChange: b, onCreateFolderSave: x, onCreateFolderCancel: S, forbiddenSymbolsRegExp: C, forbiddenSymbolsTooltip: w, newFolderDefaultName: T }) => {
10952
+ let { expandedPaths: E, togglePath: D } = Dr({
10944
10953
  expandedPaths: n ?? /* @__PURE__ */ new Set(),
10945
10954
  onExpandedPathsChange: b
10946
10955
  }), O = (e) => {
@@ -10948,59 +10957,59 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
10948
10957
  }, k = (e, n, s) => {
10949
10958
  let c = e;
10950
10959
  return s && s.path === f && (c = [{
10951
- folderId: si,
10952
- id: si,
10960
+ folderId: ci,
10961
+ id: ci,
10953
10962
  items: [],
10954
10963
  name: T || "",
10955
10964
  nodeType: $.FOLDER,
10956
10965
  parentPath: f,
10957
- path: `${f}/${si}`
10966
+ path: `${f}/${ci}`
10958
10967
  }, ...e]), c.map((e) => {
10959
10968
  let { path: s, nodeType: c, name: l, items: h } = e, b = c === $.FOLDER;
10960
- if (!u && Gn(e)) return null;
10969
+ if (!u && Kn(e)) return null;
10961
10970
  if (!b && !t) return;
10962
- let T = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === $.FOLDER || t), D = E.has(s), A = o === s, M = r.has(s), P = d === s || s === `${f}/${si}`, L = i.has(s), R = a.has(s), z = m && p && s === m && b, ee = y && ((t) => y(t, e)), te = A ? "bg-control-accent-alpha rounded" : "", V = z ? [] : g?.(e) ?? [], ne = C ? Qn({
10971
+ let T = Array.isArray(h) && h.length > 0 && h.some((e) => e.nodeType === $.FOLDER || t), D = E.has(s), A = o === s, M = r.has(s), P = d === s || s === `${f}/${ci}`, L = i.has(s), R = a.has(s), z = m && p && s === m && b, ee = y && ((t) => y(t, e)), te = A ? "bg-control-accent-alpha rounded" : "", V = z ? [] : g?.(e) ?? [], H = C ? $n({
10963
10972
  name: e.name,
10964
10973
  isFolder: b
10965
10974
  }, C, w) : void 0;
10966
- return /* @__PURE__ */ G("div", {
10975
+ return /* @__PURE__ */ K("div", {
10967
10976
  className: "cursor-pointer text-secondary",
10968
- children: /* @__PURE__ */ K("div", {
10977
+ children: /* @__PURE__ */ q("div", {
10969
10978
  className: "flex flex-col w-full gap-1",
10970
10979
  "aria-label": "folder",
10971
- children: [/* @__PURE__ */ G(N, {
10980
+ children: [/* @__PURE__ */ K(N, {
10972
10981
  trigger: [F.ContextMenu],
10973
10982
  className: "w-full h-[32px]",
10974
10983
  anchorToMouse: !0,
10975
10984
  items: V,
10976
- children: /* @__PURE__ */ K("div", {
10977
- style: { paddingLeft: `${n * oi}px` },
10978
- className: De("py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded group/item w-full relative", te),
10985
+ children: /* @__PURE__ */ q("div", {
10986
+ style: { paddingLeft: `${n * si}px` },
10987
+ className: Ee("py-1 pr-3 gap-2 dial-small-paragraph-text flex justify-between hover:bg-control-accent-alpha-hover rounded group/item w-full relative", te),
10979
10988
  "aria-selected": A,
10980
10989
  children: [
10981
- !P && /* @__PURE__ */ G("div", {
10990
+ !P && /* @__PURE__ */ K("div", {
10982
10991
  className: "absolute size-full left-0 top-0 z-0",
10983
10992
  onClick: () => O(e)
10984
10993
  }),
10985
- /* @__PURE__ */ G("div", {
10994
+ /* @__PURE__ */ K("div", {
10986
10995
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
10987
10996
  onClick: () => !P && O(e),
10988
- children: /* @__PURE__ */ K(W, { children: [b && /* @__PURE__ */ G(Fe, {
10989
- ...ai,
10997
+ children: /* @__PURE__ */ q(G, { children: [b && /* @__PURE__ */ K(Pe, {
10998
+ ...oi,
10990
10999
  className: (0, $t.default)("flex-shrink-0", D && "rotate-90 transition-all", L && !T && "text-transparent")
10991
- }), /* @__PURE__ */ G(ui, {
11000
+ }), /* @__PURE__ */ K(di, {
10992
11001
  elementId: `${s}-tree-item`,
10993
11002
  name: z ? p : l,
10994
11003
  type: b ? j.Folder : j.File,
10995
11004
  loading: M,
10996
11005
  shared: R,
10997
- sharedIndicatorClassName: De("group-hover/item:bg-control-accent-alpha-hover", A && "bg-control-accent-alpha"),
11006
+ sharedIndicatorClassName: Ee("group-hover/item:bg-control-accent-alpha-hover", A && "bg-control-accent-alpha"),
10998
11007
  iconSize: wn,
10999
11008
  forbiddenSymbolsRegExp: C,
11000
- forbiddenSymbolsTooltip: ne,
11009
+ forbiddenSymbolsTooltip: H,
11001
11010
  ...!z && {
11002
11011
  editing: P,
11003
- creating: s === `${f}/${si}`,
11012
+ creating: s === `${f}/${ci}`,
11004
11013
  onSave: _,
11005
11014
  onCancel: v,
11006
11015
  validate: ee,
@@ -11009,17 +11018,17 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11009
11018
  }
11010
11019
  })] })
11011
11020
  }),
11012
- V.length > 0 && !P && !z && /* @__PURE__ */ G("div", {
11021
+ V.length > 0 && !P && !z && /* @__PURE__ */ K("div", {
11013
11022
  className: "flex-1 flex justify-end",
11014
- children: /* @__PURE__ */ G(N, {
11023
+ children: /* @__PURE__ */ K(N, {
11015
11024
  placement: "bottom-start",
11016
11025
  allowedPlacements: ["top-start", "top-end"],
11017
11026
  items: V,
11018
11027
  className: "sticky right-0",
11019
- children: /* @__PURE__ */ G(B, {
11028
+ children: /* @__PURE__ */ K(B, {
11020
11029
  size: I.Small,
11021
11030
  className: "invisible group-hover/item:visible",
11022
- icon: /* @__PURE__ */ G(Be, { ...X })
11031
+ icon: /* @__PURE__ */ K(ze, { ...X })
11023
11032
  })
11024
11033
  })
11025
11034
  })
@@ -11030,19 +11039,19 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11030
11039
  }, `${s}-children`);
11031
11040
  });
11032
11041
  };
11033
- return /* @__PURE__ */ G("div", {
11042
+ return /* @__PURE__ */ K("div", {
11034
11043
  className: "flex-1 size-full overflow-y-auto",
11035
11044
  "aria-label": "folders-tree",
11036
- children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ G(ie, {
11045
+ children: e.length > 0 ? k(e, 0) : /* @__PURE__ */ K(re, {
11037
11046
  title: s,
11038
11047
  description: c,
11039
11048
  icon: l
11040
11049
  })
11041
11050
  });
11042
- }, fi = ({ selectedFiles: e, actionLabels: t, onDuplicate: n, onCopy: r, onMove: i, onDownload: a, onUnshare: o, onRemoveAccess: s, onDelete: l, getCurrentFolderPath: u, sharedWithMeIds: d, sharedByMePaths: f, onClearSelection: p, forbiddenSymbolsRegExp: m }) => c(() => {
11051
+ }, pi = ({ selectedFiles: e, actionLabels: t, onDuplicate: n, onCopy: r, onMove: i, onDownload: a, onUnshare: o, onRemoveAccess: s, onDelete: l, getCurrentFolderPath: u, sharedWithMeIds: d, sharedByMePaths: f, onClearSelection: p, forbiddenSymbolsRegExp: m }) => c(() => {
11043
11052
  let c = [], h = Array.from(e.values());
11044
11053
  if (!h.length || !t) return c;
11045
- let g = Zn(m), _ = g ? h.some((e) => g.test(e.name)) : !1;
11054
+ let g = Qn(m), _ = g ? h.some((e) => g.test(e.name)) : !1;
11046
11055
  if (t[Z.RemoveAccess] && s) {
11047
11056
  let e = h.some((e) => !f?.has(e.path));
11048
11057
  c.push({
@@ -11050,7 +11059,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11050
11059
  label: t[Z.RemoveAccess],
11051
11060
  title: t[Z.RemoveAccess],
11052
11061
  disabled: e,
11053
- icon: /* @__PURE__ */ G(q, { ...X }),
11062
+ icon: /* @__PURE__ */ K($e, { ...X }),
11054
11063
  onClick: () => {
11055
11064
  s(h), p();
11056
11065
  }
@@ -11060,7 +11069,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11060
11069
  key: Z.Move,
11061
11070
  label: t[Z.Move],
11062
11071
  title: t[Z.Move],
11063
- icon: /* @__PURE__ */ G(an, {
11072
+ icon: /* @__PURE__ */ K(an, {
11064
11073
  width: X.size,
11065
11074
  height: X.size
11066
11075
  }),
@@ -11069,7 +11078,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11069
11078
  key: Z.Copy,
11070
11079
  label: t[Z.Copy],
11071
11080
  title: t[Z.Copy],
11072
- icon: /* @__PURE__ */ G(rn, {
11081
+ icon: /* @__PURE__ */ K(rn, {
11073
11082
  width: X.size,
11074
11083
  height: X.size
11075
11084
  }),
@@ -11078,7 +11087,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11078
11087
  key: Z.Duplicate,
11079
11088
  label: t[Z.Duplicate],
11080
11089
  title: t[Z.Duplicate],
11081
- icon: /* @__PURE__ */ G(Re, { ...X }),
11090
+ icon: /* @__PURE__ */ K(Le, { ...X }),
11082
11091
  onClick: () => n(h)
11083
11092
  }), t[Z.Delete]) {
11084
11093
  let e = h.some((e) => e.permissions && !e.permissions.includes(Fn.WRITE));
@@ -11086,7 +11095,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11086
11095
  key: Z.Delete,
11087
11096
  label: t[Z.Delete],
11088
11097
  title: t[Z.Delete],
11089
- icon: /* @__PURE__ */ G($e, { ...X }),
11098
+ icon: /* @__PURE__ */ K(Qe, { ...X }),
11090
11099
  disabled: e,
11091
11100
  tooltip: e ? "Selected items contain item which can not be deleted" : void 0,
11092
11101
  onClick: () => {
@@ -11098,7 +11107,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11098
11107
  key: Z.Download,
11099
11108
  label: t[Z.Download],
11100
11109
  title: t[Z.Download],
11101
- icon: /* @__PURE__ */ G(Ve, { ...X }),
11110
+ icon: /* @__PURE__ */ K(Be, { ...X }),
11102
11111
  onClick: () => a(h)
11103
11112
  }), t[Z.Unshare] && o) {
11104
11113
  let e = h.some((e) => !d?.includes(e.path));
@@ -11108,7 +11117,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11108
11117
  title: t[Z.Unshare],
11109
11118
  disabled: e,
11110
11119
  tooltip: e ? "Selected items contain item which can not be unshared" : void 0,
11111
- icon: /* @__PURE__ */ G(on, {
11120
+ icon: /* @__PURE__ */ K(on, {
11112
11121
  width: X.size,
11113
11122
  height: X.size
11114
11123
  }),
@@ -11133,11 +11142,11 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11133
11142
  p,
11134
11143
  f,
11135
11144
  m
11136
- ]), pi = ({ id: e, name: t, nodeType: n, size: r, updatedAt: i, dateLocale: a, dateOptions: o, shared: s, sharedIndicatorClassName: c, hideTooltip: l = !1, forbiddenSymbolsRegExp: u, forbiddenSymbolsTooltip: d }) => /* @__PURE__ */ G("div", {
11145
+ ]), mi = ({ id: e, name: t, nodeType: n, size: r, updatedAt: i, dateLocale: a, dateOptions: o, shared: s, sharedIndicatorClassName: c, hideTooltip: l = !1, forbiddenSymbolsRegExp: u, forbiddenSymbolsTooltip: d }) => /* @__PURE__ */ K("div", {
11137
11146
  className: "flex",
11138
- children: /* @__PURE__ */ G("div", {
11147
+ children: /* @__PURE__ */ K("div", {
11139
11148
  className: "flex flex-1 min-w-0",
11140
- children: /* @__PURE__ */ G(ui, {
11149
+ children: /* @__PURE__ */ K(di, {
11141
11150
  type: n === $.FOLDER ? j.Folder : j.File,
11142
11151
  name: t,
11143
11152
  elementId: e,
@@ -11147,15 +11156,15 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11147
11156
  hideTooltip: l,
11148
11157
  forbiddenSymbolsRegExp: u,
11149
11158
  forbiddenSymbolsTooltip: d,
11150
- details: /* @__PURE__ */ K("div", {
11159
+ details: /* @__PURE__ */ q("div", {
11151
11160
  className: "flex items-center gap-1 dial-tiny-text text-secondary",
11152
11161
  children: [
11153
- /* @__PURE__ */ G("span", { children: n === $.ITEM ? Kn(r) : "" }),
11154
- i && r && /* @__PURE__ */ G(Le, {
11162
+ /* @__PURE__ */ K("span", { children: n === $.ITEM ? qn(r) : "" }),
11163
+ i && r && /* @__PURE__ */ K(Ie, {
11155
11164
  size: 2,
11156
11165
  className: "text-secondary"
11157
11166
  }),
11158
- i ? /* @__PURE__ */ G("span", { children: /* @__PURE__ */ G(w, {
11167
+ i ? /* @__PURE__ */ K("span", { children: /* @__PURE__ */ K(w, {
11159
11168
  value: i,
11160
11169
  locale: a?.toString(),
11161
11170
  options: o,
@@ -11166,15 +11175,15 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11166
11175
  })
11167
11176
  })
11168
11177
  })
11169
- }), mi = (e) => (t, n, r) => ({
11178
+ }), hi = (e) => (t, n, r) => ({
11170
11179
  colId: mn.Name,
11171
11180
  field: "name",
11172
11181
  headerName: e,
11173
11182
  flex: 1,
11174
11183
  minWidth: 200,
11175
11184
  cellRenderer: (e) => {
11176
- let i = e.data.nodeType, { saveFolderCreation: a, validateFolderName: o, cancelFolderCreation: s, newFolderTempId: c, sharedByMePaths: l, selectedPaths: u, disabledRowIds: d, filesLoading: f } = e.context, p = l?.has(e.data.path), m = u?.has(e.data.path), h = d?.has(e.data.path) ?? !1, g = De(["group-hover/grid-row:bg-control-accent-alpha-hover", m && "bg-control-accent-alpha"]);
11177
- if (e.data?.isTemporary && e.data.id === c) return /* @__PURE__ */ G(ui, {
11185
+ let i = e.data.nodeType, { saveFolderCreation: a, validateFolderName: o, cancelFolderCreation: s, newFolderTempId: c, sharedByMePaths: l, selectedPaths: u, disabledRowIds: d, filesLoading: f } = e.context, p = l?.has(e.data.path), m = u?.has(e.data.path), h = d?.has(e.data.path) ?? !1, g = Ee(["group-hover/grid-row:bg-control-accent-alpha-hover", m && "bg-control-accent-alpha"]);
11186
+ if (e.data?.isTemporary && e.data.id === c) return /* @__PURE__ */ K(di, {
11178
11187
  name: e.data.name,
11179
11188
  type: j.Folder,
11180
11189
  elementId: `new-folder-${e.data.id}`,
@@ -11189,10 +11198,10 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11189
11198
  onCancel: s,
11190
11199
  onCreateFolderSave: a,
11191
11200
  onCreateFolderCancel: s,
11192
- inputContainerClassName: De(["!h-9", r && i === $.ITEM && "!h-10"])
11201
+ inputContainerClassName: Ee(["!h-9", r && i === $.ITEM && "!h-10"])
11193
11202
  });
11194
11203
  let { renameTriggerView: _, renamedPath: v, renamedItem: y, getDisplayName: b, onRenameValidate: x, onRenameSave: S, onRenameCancel: C } = e.context;
11195
- if (_ === dn.Grid && v === e.data?.path && y && e.data) return /* @__PURE__ */ G(ui, {
11204
+ if (_ === dn.Grid && v === e.data?.path && y && e.data) return /* @__PURE__ */ K(di, {
11196
11205
  name: b(y),
11197
11206
  type: i === $.FOLDER ? j.Folder : j.File,
11198
11207
  fileExtension: y.name.split(".").pop(),
@@ -11204,10 +11213,10 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11204
11213
  validate: (e) => x(e, y),
11205
11214
  onSave: S,
11206
11215
  onCancel: C,
11207
- inputContainerClassName: De(["!h-9", r && i === $.ITEM && "!h-10"]),
11216
+ inputContainerClassName: Ee(["!h-9", r && i === $.ITEM && "!h-10"]),
11208
11217
  forbiddenSymbolsRegExp: e.context.forbiddenSymbolsRegExp
11209
11218
  });
11210
- if (r) return /* @__PURE__ */ G(pi, {
11219
+ if (r) return /* @__PURE__ */ K(mi, {
11211
11220
  id: e.data.id,
11212
11221
  name: e.data.name,
11213
11222
  nodeType: i,
@@ -11221,11 +11230,11 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11221
11230
  forbiddenSymbolsRegExp: e.context.forbiddenSymbolsRegExp,
11222
11231
  forbiddenSymbolsTooltip: e.context.forbiddenSymbolsTooltip
11223
11232
  });
11224
- let w = Qn({
11233
+ let w = $n({
11225
11234
  name: e.data.name,
11226
11235
  isFolder: i === $.FOLDER
11227
11236
  }, e.context.forbiddenSymbolsRegExp, e.context.forbiddenSymbolsTooltip);
11228
- return i === $.FOLDER ? /* @__PURE__ */ G(k, {
11237
+ return i === $.FOLDER ? /* @__PURE__ */ K(k, {
11229
11238
  name: e.data.name,
11230
11239
  shared: p,
11231
11240
  sharedIndicatorClassName: g,
@@ -11233,7 +11242,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11233
11242
  hideTooltip: h,
11234
11243
  isInvalidName: !!w,
11235
11244
  tooltipContent: w
11236
- }) : /* @__PURE__ */ G(D, {
11245
+ }) : /* @__PURE__ */ K(D, {
11237
11246
  name: e.data.name,
11238
11247
  shared: p,
11239
11248
  sharedIndicatorClassName: g,
@@ -11243,7 +11252,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11243
11252
  tooltipContent: w
11244
11253
  });
11245
11254
  }
11246
- }), hi = (e) => (t, n) => ({
11255
+ }), gi = (e) => (t, n) => ({
11247
11256
  colId: mn.UpdatedAt,
11248
11257
  field: "updatedAt",
11249
11258
  headerName: e,
@@ -11251,7 +11260,7 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11251
11260
  suppressSizeToFit: !0,
11252
11261
  cellRenderer: (e) => {
11253
11262
  let t = e.context?.disabledRowIds?.has(e.data?.path) ?? !1;
11254
- return /* @__PURE__ */ G(w, {
11263
+ return /* @__PURE__ */ K(w, {
11255
11264
  ...e,
11256
11265
  hideTooltip: t
11257
11266
  });
@@ -11261,18 +11270,18 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11261
11270
  options: n
11262
11271
  },
11263
11272
  filterValueGetter: (e) => {
11264
- let r = e.data[e.colDef.field || ""], i = Te(r);
11273
+ let r = e.data[e.colDef.field || ""], i = we(r);
11265
11274
  return i ? new Intl.DateTimeFormat(t || x, n || b).format(i) : "";
11266
11275
  }
11267
- }), gi = (e) => ({
11276
+ }), _i = (e) => ({
11268
11277
  colId: mn.Size,
11269
11278
  field: "size",
11270
11279
  headerName: e,
11271
11280
  width: 120,
11272
11281
  suppressSizeToFit: !0,
11273
- cellRenderer: (e) => e.data.nodeType === $.ITEM ? Kn(e.data.contentLength) : "",
11274
- filterValueGetter: (e) => e.data.nodeType === $.ITEM ? Kn(e.data.contentLength) : ""
11275
- }), _i = (e) => {
11282
+ cellRenderer: (e) => e.data.nodeType === $.ITEM ? qn(e.data.contentLength) : "",
11283
+ filterValueGetter: (e) => e.data.nodeType === $.ITEM ? qn(e.data.contentLength) : ""
11284
+ }), vi = (e) => {
11276
11285
  let t = e.event;
11277
11286
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
11278
11287
  switch (t.key) {
@@ -11285,9 +11294,9 @@ var Hr = 12, Ur = 8, Wr = ({ getSelectionLabel: e, onClearSelection: t, actions:
11285
11294
  default: return !1;
11286
11295
  }
11287
11296
  };
11288
- function vi({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, effectiveVisibleColumns: i, isCompactView: a, hasActions: o, actionsColumnDef: s, rootItemLabel: l, rootItemPath: u }) {
11297
+ function yi({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, effectiveVisibleColumns: i, isCompactView: a, hasActions: o, actionsColumnDef: s, rootItemLabel: l, rootItemPath: u }) {
11289
11298
  let d = c(() => [
11290
- mi("Name")(n, r, a),
11299
+ hi("Name")(n, r, a),
11291
11300
  {
11292
11301
  colId: mn.Path,
11293
11302
  field: "path",
@@ -11296,17 +11305,17 @@ function vi({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
11296
11305
  minWidth: 200,
11297
11306
  cellRenderer: (e) => {
11298
11307
  let t = e.context?.disabledRowIds?.has(e.data.path) ?? !1, n = e.data.path;
11299
- return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !u || !l ? /* @__PURE__ */ G(L, {
11308
+ return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !u || !l ? /* @__PURE__ */ K(L, {
11300
11309
  text: n,
11301
11310
  hideTooltip: t
11302
- }) : /* @__PURE__ */ G(L, {
11311
+ }) : /* @__PURE__ */ K(L, {
11303
11312
  text: n.replace(u, l),
11304
11313
  hideTooltip: t
11305
11314
  });
11306
11315
  }
11307
11316
  },
11308
- hi("Modified Date")(n, r),
11309
- gi("Size"),
11317
+ gi("Modified Date")(n, r),
11318
+ _i("Size"),
11310
11319
  {
11311
11320
  colId: mn.Author,
11312
11321
  field: "author",
@@ -11340,7 +11349,7 @@ function vi({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
11340
11349
  filter: t ? e.filter : !1,
11341
11350
  floatingFilter: t ? e.floatingFilter : !1
11342
11351
  };
11343
- return u(e) && !e.suppressKeyboardEvent && (n.suppressKeyboardEvent = _i), n;
11352
+ return u(e) && !e.suppressKeyboardEvent && (n.suppressKeyboardEvent = vi), n;
11344
11353
  });
11345
11354
  }, [
11346
11355
  s,
@@ -11354,18 +11363,18 @@ function vi({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
11354
11363
  e
11355
11364
  ]) };
11356
11365
  }
11357
- var yi = () => {
11358
- let e = r(_r);
11366
+ var bi = () => {
11367
+ let e = r(vr);
11359
11368
  if (!e) throw Error("useFileManagerContext must be used within <FileManagerProvider>");
11360
11369
  return e;
11361
- }, bi = ({ actionLabels: e, onDuplicate: t, onCopy: n, onMove: r, onDownload: i, onRename: a, onDelete: o, onInfo: s, onUnshare: l, onRemoveAccess: u, sharedWithMeIds: d, sharedByMePaths: f, onManagePermissions: p, onPreview: m, onOpenInNewTab: h, previewExtensions: g, isRenameFileAvailable: _ = !0, isDuplicateFolderAvailable: v = !0, forbiddenSymbolsRegExp: y, onGridCreateSiblingFolder: b, onGridCreateChildFolder: x }) => c(() => (c) => {
11370
+ }, xi = ({ actionLabels: e, onDuplicate: t, onCopy: n, onMove: r, onDownload: i, onRename: a, onDelete: o, onInfo: s, onUnshare: l, onRemoveAccess: u, sharedWithMeIds: d, sharedByMePaths: f, onManagePermissions: p, onPreview: m, onOpenInNewTab: h, previewExtensions: g, isRenameFileAvailable: _ = !0, isDuplicateFolderAvailable: v = !0, forbiddenSymbolsRegExp: y, onGridCreateSiblingFolder: b, onGridCreateChildFolder: x }) => c(() => (c) => {
11362
11371
  let S = [];
11363
11372
  if (!e) return S;
11364
- let C = Zn(y)?.test(c.name);
11373
+ let C = Qn(y)?.test(c.name);
11365
11374
  e[Z.AddSibling] && c.nodeType === $.FOLDER && S.push({
11366
11375
  key: "addSibling",
11367
11376
  label: e[Z.AddSibling],
11368
- icon: /* @__PURE__ */ G(nn, {
11377
+ icon: /* @__PURE__ */ K(nn, {
11369
11378
  width: X.size,
11370
11379
  height: X.size,
11371
11380
  className: "text-secondary"
@@ -11374,7 +11383,7 @@ var yi = () => {
11374
11383
  }), e[Z.AddChild] && c.nodeType === $.FOLDER && !C && S.push({
11375
11384
  key: "addChild",
11376
11385
  label: e[Z.AddChild],
11377
- icon: /* @__PURE__ */ G(tn, {
11386
+ icon: /* @__PURE__ */ K(tn, {
11378
11387
  width: X.size,
11379
11388
  height: X.size,
11380
11389
  className: "text-secondary"
@@ -11386,7 +11395,7 @@ var yi = () => {
11386
11395
  }), e[Z.OpenInNewTab] && typeof h == "function" && c.nodeType === $.ITEM && !C && S.push({
11387
11396
  key: Z.OpenInNewTab,
11388
11397
  label: e[Z.OpenInNewTab],
11389
- icon: /* @__PURE__ */ G(He, {
11398
+ icon: /* @__PURE__ */ K(Ve, {
11390
11399
  ...X,
11391
11400
  className: "text-secondary"
11392
11401
  }),
@@ -11396,7 +11405,7 @@ var yi = () => {
11396
11405
  e[Z.Duplicate] && w && !C && S.push({
11397
11406
  key: Z.Duplicate,
11398
11407
  label: e[Z.Duplicate],
11399
- icon: /* @__PURE__ */ G(Re, {
11408
+ icon: /* @__PURE__ */ K(Le, {
11400
11409
  ...X,
11401
11410
  className: "text-secondary"
11402
11411
  }),
@@ -11404,7 +11413,7 @@ var yi = () => {
11404
11413
  }), e[Z.Copy] && !C && S.push({
11405
11414
  key: Z.Copy,
11406
11415
  label: e[Z.Copy],
11407
- icon: /* @__PURE__ */ G(rn, {
11416
+ icon: /* @__PURE__ */ K(rn, {
11408
11417
  width: X.size,
11409
11418
  height: X.size,
11410
11419
  className: "text-secondary"
@@ -11413,7 +11422,7 @@ var yi = () => {
11413
11422
  }), e[Z.Move] && !C && S.push({
11414
11423
  key: Z.Move,
11415
11424
  label: e[Z.Move],
11416
- icon: /* @__PURE__ */ G(an, {
11425
+ icon: /* @__PURE__ */ K(an, {
11417
11426
  width: X.size,
11418
11427
  height: X.size,
11419
11428
  className: "text-secondary"
@@ -11422,7 +11431,7 @@ var yi = () => {
11422
11431
  }), e[Z.Download] && !C && S.push({
11423
11432
  key: Z.Download,
11424
11433
  label: e[Z.Download],
11425
- icon: /* @__PURE__ */ G(Ve, {
11434
+ icon: /* @__PURE__ */ K(Be, {
11426
11435
  ...X,
11427
11436
  className: "text-secondary"
11428
11437
  }),
@@ -11430,7 +11439,7 @@ var yi = () => {
11430
11439
  }), e[Z.ManagePermissions] && typeof p == "function" && c.nodeType === $.FOLDER && !C && S.push({
11431
11440
  key: Z.ManagePermissions,
11432
11441
  label: e[Z.ManagePermissions],
11433
- icon: /* @__PURE__ */ G(He, {
11442
+ icon: /* @__PURE__ */ K(Ve, {
11434
11443
  ...X,
11435
11444
  className: "text-secondary"
11436
11445
  }),
@@ -11440,7 +11449,7 @@ var yi = () => {
11440
11449
  e[Z.Preview] && typeof m == "function" && c.nodeType === $.ITEM && D && !C && S.push({
11441
11450
  key: Z.Preview,
11442
11451
  label: e[Z.Preview],
11443
- icon: /* @__PURE__ */ G(Ue, {
11452
+ icon: /* @__PURE__ */ K(He, {
11444
11453
  ...X,
11445
11454
  className: "text-secondary"
11446
11455
  }),
@@ -11450,7 +11459,7 @@ var yi = () => {
11450
11459
  e[Z.Delete] && O && S.push({
11451
11460
  key: Z.Delete,
11452
11461
  label: e[Z.Delete],
11453
- icon: /* @__PURE__ */ G($e, {
11462
+ icon: /* @__PURE__ */ K(Qe, {
11454
11463
  ...X,
11455
11464
  className: "text-secondary"
11456
11465
  }),
@@ -11460,7 +11469,7 @@ var yi = () => {
11460
11469
  return e[Z.Rename] && k && O && S.push({
11461
11470
  key: Z.Rename,
11462
11471
  label: e[Z.Rename],
11463
- icon: /* @__PURE__ */ G(Ze, {
11472
+ icon: /* @__PURE__ */ K(Xe, {
11464
11473
  ...X,
11465
11474
  className: "text-secondary"
11466
11475
  }),
@@ -11468,7 +11477,7 @@ var yi = () => {
11468
11477
  }), e[Z.Info] && c.nodeType === $.ITEM && !C && S.push({
11469
11478
  key: Z.Info,
11470
11479
  label: e[Z.Info],
11471
- icon: /* @__PURE__ */ G(Xe, {
11480
+ icon: /* @__PURE__ */ K(Ye, {
11472
11481
  ...X,
11473
11482
  className: "text-secondary"
11474
11483
  }),
@@ -11476,7 +11485,7 @@ var yi = () => {
11476
11485
  }), e[Z.Unshare] && d?.includes(c.path) && S.push({
11477
11486
  key: Z.Unshare,
11478
11487
  label: e[Z.Unshare],
11479
- icon: /* @__PURE__ */ G(on, {
11488
+ icon: /* @__PURE__ */ K(on, {
11480
11489
  width: X.size,
11481
11490
  height: X.size,
11482
11491
  className: "text-secondary"
@@ -11485,7 +11494,7 @@ var yi = () => {
11485
11494
  }), e[Z.RemoveAccess] && f?.has(c.path) && u && S.push({
11486
11495
  key: Z.RemoveAccess,
11487
11496
  label: e[Z.RemoveAccess],
11488
- icon: /* @__PURE__ */ G(q, {
11497
+ icon: /* @__PURE__ */ K($e, {
11489
11498
  ...X,
11490
11499
  className: "text-secondary"
11491
11500
  }),
@@ -11513,7 +11522,7 @@ var yi = () => {
11513
11522
  y,
11514
11523
  x,
11515
11524
  b
11516
- ]), xi = ({ onGridAddSibling: e, onGridAddChild: t, onTreeAddSibling: r, onTreeAddChild: i }) => {
11525
+ ]), Si = ({ onGridAddSibling: e, onGridAddChild: t, onTreeAddSibling: r, onTreeAddChild: i }) => {
11517
11526
  let [a, o] = u(fn.Grid);
11518
11527
  return {
11519
11528
  createFolderTriggerView: a,
@@ -11530,15 +11539,15 @@ var yi = () => {
11530
11539
  i?.(e), o(fn.Tree);
11531
11540
  }, [i])
11532
11541
  };
11533
- }, Si = (e) => /* @__PURE__ */ G(Ir, {
11542
+ }, Ci = (e) => /* @__PURE__ */ K(Lr, {
11534
11543
  ...e,
11535
- children: /* @__PURE__ */ G(Ci, {})
11536
- }), Ci = () => {
11537
- let { managerLabel: e, className: t, items: r, rootItem: i, filesLoading: a, treeOptions: s, showNavigationPanel: d, navigationPanelOptions: f, gridOptions: p, toolbarOptions: m, bulkActionsToolbarOptions: h, deleteConfirmationOptions: v, destinationFolderPopupOptions: y, conflictResolutionPopupOptions: b, compactViewWidthBreakpoint: x = Mn, customBreakpointRef: S, sharedByMePaths: C, allowedFileTypes: w, maxSelectableFileSize: T, areHiddenFilesVisible: E, toggleHiddenFilesVisibility: D, isTreeCollapsed: O, toggleTreeCollapse: k, currentPath: A, gridRows: j, selectedPaths: M, selectedFiles: N, clearSelection: F, setSelectedPaths: I, effectiveSearchValue: L, handleBreadcrumbItemClick: R, handleSearchChange: ee, handleTreeItemClick: B, handleTableRowClick: V, handleSelectionClick: ne, onGridApiChange: re, handleOpenDestinationFolderPopup: ae, handleCloseDestinationFolderPopup: oe, openDestinationFolderPopup: se, destinationFolderMode: ce, handleSetCopiedFiles: H, handleSetMovedFiles: le, handleDuplicate: ue, handleCopyTo: de, handleMoveTo: fe, handleGridAddSibling: pe, handleGridAddChild: me, handleTreeAddSibling: he, handleTreeAddChild: ge, handleDownloadFiles: _e, openDeleteConfirmation: ve, closeDeleteConfirmation: ye, confirmDelete: be, deleteConfirmationOpen: xe, itemsToDelete: Se, renamedPath: Ce, renamedItem: we, onRename: Te, onRenameSave: Ee, onRenameCancel: Oe, onRenameValidate: ke, createdFolderPath: Ae, forbiddenSymbolsRegExp: je, forbiddenSymbolsTooltip: U, getDisplayName: W, isDragging: Me, isDraggingOverWindow: Ne, handleDragEnter: Pe, handleDragLeave: Fe, handleDragOver: Ie, handleDrop: Le, onUploadFiles: ze, onValidateUpload: Be, maxFileSize: Ue, newActions: We, isNewButtonVisible: Ge, isNewButtonDisabled: qe, newFolderTempId: Je, cancelFolderCreation: Ye, saveFolderCreation: Xe, validateFolderName: Qe, startFolderCreation: et, conflictingFiles: tt, conflictResolutionOpen: nt, handleConflictReplace: rt, handleConflictDuplicate: it, handleConflictCancel: at, handleConflictDecideForEach: ot, uploadConflictingFiles: st, uploadConflictResolutionOpen: ct, handleUploadConflictReplace: lt, handleUploadConflictDuplicate: ut, handleUploadConflictCancel: dt, handleUploadConflictDecideForEach: ft, openMetadataPopup: pt, fileMetadataPopupOptions: mt, isMetadataPopupOpen: ht, selectedFileForMetadata: gt, closeMetadataPopup: _t, onUnshareFiles: vt, onRemoveFilesAccess: yt, actionsRef: bt, searchInProgress: xt, isSearchMode: St, emptyStateIcon: Ct, emptyStateTitle: wt = "You don't have any files", emptyStateDescription: Tt = "Upload or drag and drop files", sharedWithMeIds: J, onFolderPopupPathChange: Et, onManagePermissions: Y, onPreview: Dt, onOpenInNewTab: Ot, previewExtensions: kt, isRenameFileAvailable: At, isDuplicateFolderAvailable: jt, getDisabledTooltip: Mt, fileTooLargeTooltip: Nt, unsupportedFileTypeTooltip: Pt, gridClassName: Ft, nonClickableTableColumns: It, hideSearchPathItemName: Lt, showHiddenFileSwitcherInDestinationPopup: Rt, showCreateFolderButtonInDestinationPopup: zt, newFolderDefaultName: Bt } = yi(), { width: Vt = Sn, header: Ht = Cn, containerClassName: Ut = yn, additionalButtons: Wt, ...Gt } = s ?? {}, [Kt, qt] = u(Vt), { renameTriggerView: Jt, onGridRename: Yt, onTreeRename: Xt } = Rn({ onRename: Te }), { createFolderTriggerView: Zt, onGridCreateSiblingFolder: Qt, onTreeCreateSiblingFolder: en, onGridCreateChildFolder: sn, onTreeCreateChildFolder: cn } = xi({
11538
- onGridAddSibling: pe,
11539
- onGridAddChild: me,
11540
- onTreeAddSibling: he,
11541
- onTreeAddChild: ge
11544
+ children: /* @__PURE__ */ K(wi, {})
11545
+ }), wi = () => {
11546
+ let { managerLabel: e, className: t, items: r, rootItem: i, filesLoading: a, treeOptions: s, showNavigationPanel: d, navigationPanelOptions: f, gridOptions: p, toolbarOptions: m, bulkActionsToolbarOptions: h, deleteConfirmationOptions: v, destinationFolderPopupOptions: y, conflictResolutionPopupOptions: b, compactViewWidthBreakpoint: x = Mn, customBreakpointRef: S, sharedByMePaths: C, allowedFileTypes: w, maxSelectableFileSize: T, areHiddenFilesVisible: E, toggleHiddenFilesVisibility: D, isTreeCollapsed: O, toggleTreeCollapse: k, currentPath: A, gridRows: j, selectedPaths: M, selectedFiles: N, clearSelection: F, setSelectedPaths: I, effectiveSearchValue: L, handleBreadcrumbItemClick: R, handleSearchChange: ee, handleTreeItemClick: B, handleTableRowClick: V, handleSelectionClick: H, onGridApiChange: ne, handleOpenDestinationFolderPopup: ie, handleCloseDestinationFolderPopup: ae, openDestinationFolderPopup: oe, destinationFolderMode: se, handleSetCopiedFiles: U, handleSetMovedFiles: ce, handleDuplicate: le, handleCopyTo: ue, handleMoveTo: de, handleGridAddSibling: fe, handleGridAddChild: pe, handleTreeAddSibling: me, handleTreeAddChild: he, handleDownloadFiles: ge, openDeleteConfirmation: _e, closeDeleteConfirmation: ve, confirmDelete: ye, deleteConfirmationOpen: be, itemsToDelete: xe, renamedPath: Se, renamedItem: Ce, onRename: we, onRenameSave: Te, onRenameCancel: De, onRenameValidate: Oe, createdFolderPath: ke, forbiddenSymbolsRegExp: Ae, forbiddenSymbolsTooltip: W, getDisplayName: G, isDragging: je, isDraggingOverWindow: Me, handleDragEnter: Ne, handleDragLeave: Pe, handleDragOver: Fe, handleDrop: Ie, onUploadFiles: Re, onValidateUpload: ze, maxFileSize: He, newActions: Ue, isNewButtonVisible: We, isNewButtonDisabled: Ke, newFolderTempId: qe, cancelFolderCreation: Je, saveFolderCreation: Ye, validateFolderName: Ze, startFolderCreation: et, conflictingFiles: tt, conflictResolutionOpen: nt, handleConflictReplace: rt, handleConflictDuplicate: it, handleConflictCancel: at, handleConflictDecideForEach: ot, uploadConflictingFiles: st, uploadConflictResolutionOpen: ct, handleUploadConflictReplace: lt, handleUploadConflictDuplicate: ut, handleUploadConflictCancel: dt, handleUploadConflictDecideForEach: ft, openMetadataPopup: pt, fileMetadataPopupOptions: mt, isMetadataPopupOpen: ht, selectedFileForMetadata: gt, closeMetadataPopup: _t, onUnshareFiles: vt, onRemoveFilesAccess: yt, actionsRef: bt, searchInProgress: xt, isSearchMode: St, emptyStateIcon: Ct, emptyStateTitle: wt = "You don't have any files", emptyStateDescription: Tt = "Upload or drag and drop files", sharedWithMeIds: J, onFolderPopupPathChange: Et, onManagePermissions: Y, onPreview: Dt, onOpenInNewTab: Ot, previewExtensions: kt, isRenameFileAvailable: At, isDuplicateFolderAvailable: jt, getDisabledTooltip: Mt, fileTooLargeTooltip: Nt, unsupportedFileTypeTooltip: Pt, gridClassName: Ft, nonClickableTableColumns: It, hideSearchPathItemName: Lt, showHiddenFileSwitcherInDestinationPopup: Rt, showCreateFolderButtonInDestinationPopup: zt, newFolderDefaultName: Bt } = bi(), { width: Vt = Sn, header: Ht = Cn, containerClassName: Ut = yn, additionalButtons: Wt, ...Gt } = s ?? {}, [Kt, qt] = u(Vt), { renameTriggerView: Jt, onGridRename: Yt, onTreeRename: Xt } = Rn({ onRename: we }), { createFolderTriggerView: Zt, onGridCreateSiblingFolder: Qt, onTreeCreateSiblingFolder: en, onGridCreateChildFolder: sn, onTreeCreateChildFolder: cn } = Si({
11547
+ onGridAddSibling: fe,
11548
+ onGridAddChild: pe,
11549
+ onTreeAddSibling: me,
11550
+ onTreeAddChild: he
11542
11551
  }), Q = l(null), ln = (e) => {
11543
11552
  Q.current === null && (Q.current = requestAnimationFrame(() => {
11544
11553
  qt(e), Q.current = null;
@@ -11547,7 +11556,7 @@ var yi = () => {
11547
11556
  mn.Name,
11548
11557
  mn.Path,
11549
11558
  mn.Actions
11550
- ] : Vn, [St, Vn]), qn = n((e, t, n) => tr(e, t, n, Pt, Nt), [Nt, Pt]), Jn = n((e, t, n) => !!Mt?.(e) || !!qn(e, t, n), [qn, Mt]), Yn = c(() => {
11559
+ ] : Vn, [St, Vn]), qn = n((e, t, n) => nr(e, t, n, Pt, Nt), [Nt, Pt]), Jn = n((e, t, n) => !!Mt?.(e) || !!qn(e, t, n), [qn, Mt]), Yn = c(() => {
11551
11560
  let e = /* @__PURE__ */ new Set();
11552
11561
  for (let t of j) Jn(t, w, T) && e.add(t.path);
11553
11562
  return e;
@@ -11557,11 +11566,11 @@ var yi = () => {
11557
11566
  j,
11558
11567
  Jn
11559
11568
  ]), Xn = n((e) => {
11560
- let t = [], n = [], r = !e.parentPath, i = je?.test(e.name);
11569
+ let t = [], n = [], r = !e.parentPath, i = Ae?.test(e.name);
11561
11570
  return s?.actionLabels && (s.actionLabels[Z.AddSibling] && e.nodeType === $.FOLDER && !r && t.push({
11562
11571
  key: "addSibling",
11563
11572
  label: s.actionLabels[Z.AddSibling],
11564
- icon: /* @__PURE__ */ G(nn, {
11573
+ icon: /* @__PURE__ */ K(nn, {
11565
11574
  width: X.size,
11566
11575
  height: X.size,
11567
11576
  className: "text-secondary"
@@ -11570,7 +11579,7 @@ var yi = () => {
11570
11579
  }), s.actionLabels[Z.AddChild] && e.nodeType === $.FOLDER && !i && t.push({
11571
11580
  key: "addChild",
11572
11581
  label: s.actionLabels[Z.AddChild],
11573
- icon: /* @__PURE__ */ G(tn, {
11582
+ icon: /* @__PURE__ */ K(tn, {
11574
11583
  width: X.size,
11575
11584
  height: X.size,
11576
11585
  className: "text-secondary"
@@ -11579,45 +11588,45 @@ var yi = () => {
11579
11588
  }), s.actionLabels[Z.Duplicate] && !r && !i && n.push({
11580
11589
  key: "duplicate",
11581
11590
  label: s.actionLabels[Z.Duplicate],
11582
- icon: /* @__PURE__ */ G(Re, {
11591
+ icon: /* @__PURE__ */ K(Le, {
11583
11592
  ...X,
11584
11593
  className: "text-secondary"
11585
11594
  }),
11586
- onClick: () => ue([e])
11595
+ onClick: () => le([e])
11587
11596
  }), s.actionLabels[Z.Copy] && !r && !i && n.push({
11588
11597
  key: un.Copy,
11589
11598
  label: s.actionLabels[Z.Copy],
11590
- icon: /* @__PURE__ */ G(rn, {
11599
+ icon: /* @__PURE__ */ K(rn, {
11591
11600
  width: X.size,
11592
11601
  height: X.size,
11593
11602
  className: "text-secondary"
11594
11603
  }),
11595
11604
  onClick: () => {
11596
- H([e]), ae(un.Copy);
11605
+ U([e]), ie(un.Copy);
11597
11606
  }
11598
11607
  }), s.actionLabels[Z.Move] && !r && !i && n.push({
11599
11608
  key: un.Move,
11600
11609
  label: s.actionLabels[Z.Move],
11601
- icon: /* @__PURE__ */ G(an, {
11610
+ icon: /* @__PURE__ */ K(an, {
11602
11611
  width: X.size,
11603
11612
  height: X.size,
11604
11613
  className: "text-secondary"
11605
11614
  }),
11606
11615
  onClick: () => {
11607
- le([e]), ae(un.Move);
11616
+ ce([e]), ie(un.Move);
11608
11617
  }
11609
11618
  }), s.actionLabels[Z.Download] && !r && !i && n.push({
11610
11619
  key: "download",
11611
11620
  label: s.actionLabels[Z.Download],
11612
- icon: /* @__PURE__ */ G(Ve, {
11621
+ icon: /* @__PURE__ */ K(Be, {
11613
11622
  ...X,
11614
11623
  className: "text-secondary"
11615
11624
  }),
11616
- onClick: () => _e([e])
11625
+ onClick: () => ge([e])
11617
11626
  }), s.actionLabels[Z.ManagePermissions] && typeof Y == "function" && e.nodeType === $.FOLDER && !r && n.push({
11618
11627
  key: Z.ManagePermissions,
11619
11628
  label: s.actionLabels[Z.ManagePermissions],
11620
- icon: /* @__PURE__ */ G(He, {
11629
+ icon: /* @__PURE__ */ K(Ve, {
11621
11630
  ...X,
11622
11631
  className: "text-secondary"
11623
11632
  }),
@@ -11625,15 +11634,15 @@ var yi = () => {
11625
11634
  }), s.actionLabels[Z.Delete] && e.permissions?.includes(Fn.WRITE) && !r && n.push({
11626
11635
  key: "delete",
11627
11636
  label: s.actionLabels[Z.Delete],
11628
- icon: /* @__PURE__ */ G($e, {
11637
+ icon: /* @__PURE__ */ K(Qe, {
11629
11638
  ...X,
11630
11639
  className: "text-secondary"
11631
11640
  }),
11632
- onClick: () => ve([e], e.parentPath ?? "")
11641
+ onClick: () => _e([e], e.parentPath ?? "")
11633
11642
  }), s.actionLabels[Z.Rename] && !r && n.push({
11634
11643
  key: "rename",
11635
11644
  label: s.actionLabels[Z.Rename],
11636
- icon: /* @__PURE__ */ G(Ze, {
11645
+ icon: /* @__PURE__ */ K(Xe, {
11637
11646
  ...X,
11638
11647
  className: "text-secondary"
11639
11648
  }),
@@ -11641,7 +11650,7 @@ var yi = () => {
11641
11650
  }), s.actionLabels[Z.Unshare] && J?.includes(e.path) && !r && n.push({
11642
11651
  key: "unshare",
11643
11652
  label: s.actionLabels[Z.Unshare],
11644
- icon: /* @__PURE__ */ G(on, {
11653
+ icon: /* @__PURE__ */ K(on, {
11645
11654
  width: X.size,
11646
11655
  height: X.size,
11647
11656
  className: "text-secondary"
@@ -11650,7 +11659,7 @@ var yi = () => {
11650
11659
  }), s.actionLabels[Z.RemoveAccess] && C?.has(e.path) && !r && n.push({
11651
11660
  key: Z.RemoveAccess,
11652
11661
  label: s.actionLabels[Z.RemoveAccess],
11653
- icon: /* @__PURE__ */ G(q, {
11662
+ icon: /* @__PURE__ */ K($e, {
11654
11663
  ...X,
11655
11664
  className: "text-secondary"
11656
11665
  }),
@@ -11665,65 +11674,65 @@ var yi = () => {
11665
11674
  ] : n;
11666
11675
  }, [
11667
11676
  s?.actionLabels,
11668
- je,
11677
+ Ae,
11669
11678
  Y,
11670
- ue,
11671
- H,
11672
- ae,
11673
11679
  le,
11674
- _e,
11680
+ U,
11681
+ ie,
11682
+ ce,
11683
+ ge,
11675
11684
  Xt,
11676
11685
  vt,
11677
11686
  yt,
11678
11687
  J,
11679
11688
  C,
11680
- ve,
11689
+ _e,
11681
11690
  cn,
11682
11691
  en
11683
11692
  ]), Zn = c(() => {
11684
11693
  let e = /* @__PURE__ */ new Set();
11685
11694
  return N.forEach((t, n) => e.add(n)), e;
11686
11695
  }, [N]), Qn = n((e, t) => {
11687
- I(e), ne?.(t);
11688
- }, [ne, I]), $n = fi({
11696
+ I(e), H?.(t);
11697
+ }, [H, I]), $n = pi({
11689
11698
  selectedFiles: N,
11690
11699
  actionLabels: h?.actionLabels,
11691
- onDuplicate: ue,
11700
+ onDuplicate: le,
11692
11701
  onCopy: (e) => {
11693
- H(e), ae(un.Copy);
11702
+ U(e), ie(un.Copy);
11694
11703
  },
11695
11704
  onMove: (e) => {
11696
- le(e), ae(un.Move);
11705
+ ce(e), ie(un.Move);
11697
11706
  },
11698
- onDownload: _e,
11699
- onDelete: ve,
11707
+ onDownload: ge,
11708
+ onDelete: _e,
11700
11709
  onUnshare: vt,
11701
11710
  onRemoveAccess: yt,
11702
11711
  getCurrentFolderPath: () => A ?? "/",
11703
11712
  sharedWithMeIds: J,
11704
11713
  sharedByMePaths: C,
11705
11714
  onClearSelection: F,
11706
- forbiddenSymbolsRegExp: je
11715
+ forbiddenSymbolsRegExp: Ae
11707
11716
  }), er = n((e) => {
11708
- m?.onTabChange?.(e), Ye();
11709
- }, [m, Ye]), nr = n(() => m && M.size === 0 ? /* @__PURE__ */ K("div", {
11717
+ m?.onTabChange?.(e), Je();
11718
+ }, [m, Je]), tr = n(() => m && M.size === 0 ? /* @__PURE__ */ q("div", {
11710
11719
  className: gn,
11711
11720
  role: "toolbar",
11712
11721
  "aria-label": "File Manager Toolbar",
11713
- children: [e, /* @__PURE__ */ G(Zr, {
11722
+ children: [e, /* @__PURE__ */ K(Qr, {
11714
11723
  ...m,
11715
11724
  onTabChange: er,
11716
11725
  areHiddenFilesVisible: E,
11717
11726
  onToggleHiddenFiles: D,
11718
- isNewButtonVisible: Ge,
11719
- isNewButtonDisabled: qe,
11720
- newButtonDropdownItems: We
11727
+ isNewButtonVisible: We,
11728
+ isNewButtonDisabled: Ke,
11729
+ newButtonDropdownItems: Ue
11721
11730
  })]
11722
- }) : M.size > 0 && h ? /* @__PURE__ */ G("div", {
11731
+ }) : M.size > 0 && h ? /* @__PURE__ */ K("div", {
11723
11732
  className: gn,
11724
11733
  role: "toolbar",
11725
11734
  "aria-label": "File Manager Toolbar",
11726
- children: /* @__PURE__ */ G(Wr, {
11735
+ children: /* @__PURE__ */ K(Gr, {
11727
11736
  ...h,
11728
11737
  selectedCount: M.size,
11729
11738
  onClearSelection: F,
@@ -11738,15 +11747,15 @@ var yi = () => {
11738
11747
  E,
11739
11748
  D,
11740
11749
  m,
11741
- Ge,
11742
- qe,
11743
11750
  We,
11751
+ Ke,
11752
+ Ue,
11744
11753
  e
11745
11754
  ]);
11746
11755
  o(bt, () => ({ createFolder: et }), [et]);
11747
- let ir = n(() => Gn ? null : /* @__PURE__ */ G("div", {
11756
+ let rr = n(() => Gn ? null : /* @__PURE__ */ K("div", {
11748
11757
  className: "min-h-0 min-w-0 h-full flex-none",
11749
- children: /* @__PURE__ */ G(_, {
11758
+ children: /* @__PURE__ */ K(_, {
11750
11759
  defaultWidth: Kt,
11751
11760
  width: Kt,
11752
11761
  onResizeStop: qt,
@@ -11754,7 +11763,7 @@ var yi = () => {
11754
11763
  minWidth: On,
11755
11764
  maxWidth: kn,
11756
11765
  enabled: !O,
11757
- children: /* @__PURE__ */ G(g, {
11766
+ children: /* @__PURE__ */ K(g, {
11758
11767
  width: Kt,
11759
11768
  title: Ht,
11760
11769
  ariaLabel: "File Manager Tree Navigation",
@@ -11763,25 +11772,25 @@ var yi = () => {
11763
11772
  additionalButtons: Wt,
11764
11773
  isOpened: !O,
11765
11774
  onToggle: k,
11766
- children: /* @__PURE__ */ G(di, {
11775
+ children: /* @__PURE__ */ K(fi, {
11767
11776
  ...Gt,
11768
11777
  items: r,
11769
11778
  rootItemPath: i?.path,
11770
11779
  rootItemLabel: i?.label,
11771
11780
  selectedPath: A,
11772
11781
  sharedByMePaths: C,
11773
- forbiddenSymbolsRegExp: je,
11774
- forbiddenSymbolsTooltip: U,
11782
+ forbiddenSymbolsRegExp: Ae,
11783
+ forbiddenSymbolsTooltip: W,
11775
11784
  onItemClick: B,
11776
11785
  areHiddenFilesVisible: E,
11777
11786
  getContextMenuItems: Xn,
11778
- renamedPath: Jt === dn.Tree ? Ce : void 0,
11779
- onRenameSave: Ee,
11780
- onRenameCancel: Oe,
11781
- onRenameValidate: ke,
11782
- createdFolderPath: Zt === fn.Tree ? Ae : null,
11783
- onCreateFolderCancel: Ye,
11784
- onCreateFolderSave: Xe,
11787
+ renamedPath: Jt === dn.Tree ? Se : void 0,
11788
+ onRenameSave: Te,
11789
+ onRenameCancel: De,
11790
+ onRenameValidate: Oe,
11791
+ createdFolderPath: Zt === fn.Tree ? ke : null,
11792
+ onCreateFolderCancel: Je,
11793
+ onCreateFolderSave: Ye,
11785
11794
  newFolderDefaultName: Bt
11786
11795
  })
11787
11796
  })
@@ -11800,33 +11809,33 @@ var yi = () => {
11800
11809
  i?.label,
11801
11810
  A,
11802
11811
  C,
11803
- je,
11804
- U,
11812
+ Ae,
11813
+ W,
11805
11814
  B,
11806
11815
  E,
11807
11816
  Xn,
11808
11817
  Jt,
11809
11818
  Zt,
11810
- Ce,
11811
- Ee,
11819
+ Se,
11820
+ Te,
11821
+ De,
11812
11822
  Oe,
11813
11823
  ke,
11814
- Ae,
11824
+ Je,
11815
11825
  Ye,
11816
- Xe,
11817
11826
  Bt
11818
- ]), ar = bi({
11827
+ ]), ar = xi({
11819
11828
  actionLabels: p?.actionLabels,
11820
- onDuplicate: (e) => ue([e]),
11829
+ onDuplicate: (e) => le([e]),
11821
11830
  onCopy: (e) => {
11822
- H([e]), ae(un.Copy);
11831
+ U([e]), ie(un.Copy);
11823
11832
  },
11824
11833
  onMove: (e) => {
11825
- le([e]), ae(un.Move);
11834
+ ce([e]), ie(un.Move);
11826
11835
  },
11827
- onDownload: (e) => _e([e]),
11836
+ onDownload: (e) => ge([e]),
11828
11837
  onRename: Yt,
11829
- onDelete: (e, t) => ve([e], t),
11838
+ onDelete: (e, t) => _e([e], t),
11830
11839
  onInfo: (e) => pt(e),
11831
11840
  onUnshare: (e) => vt?.([e]),
11832
11841
  onRemoveAccess: (e) => yt?.([e]),
@@ -11838,7 +11847,7 @@ var yi = () => {
11838
11847
  previewExtensions: kt,
11839
11848
  isRenameFileAvailable: At,
11840
11849
  isDuplicateFolderAvailable: jt,
11841
- forbiddenSymbolsRegExp: je,
11850
+ forbiddenSymbolsRegExp: Ae,
11842
11851
  onGridCreateSiblingFolder: Qt,
11843
11852
  onGridCreateChildFolder: sn
11844
11853
  }), or = n((e) => {
@@ -11849,7 +11858,7 @@ var yi = () => {
11849
11858
  isRowDisabled: n((e, t, n) => Hn ? !1 : Jn(e, t, n), [Hn, Jn]),
11850
11859
  allowedFileTypes: w,
11851
11860
  buttonClassName: Gn ? "" : xn
11852
- }), { columnDefs: cr } = vi({
11861
+ }), { columnDefs: cr } = yi({
11853
11862
  userColumnDefs: pn,
11854
11863
  filterable: wn,
11855
11864
  dateLocale: Tn,
@@ -11861,18 +11870,18 @@ var yi = () => {
11861
11870
  rootItemLabel: i?.label,
11862
11871
  rootItemPath: i?.path
11863
11872
  }), lr = n((e) => {
11864
- e.colDef.colId === z || e.colDef.colId === An || e.colDef.colId === mn.Actions || Ce && e.data?.path === Ce || e.data?.isTemporary || It && It.includes(e.colDef.colId) || e.data && V(e.data);
11873
+ e.colDef.colId === z || e.colDef.colId === An || e.colDef.colId === mn.Actions || Se && e.data?.path === Se || e.data?.isTemporary || It && It.includes(e.colDef.colId) || e.data && V(e.data);
11865
11874
  }, [
11866
- Ce,
11875
+ Se,
11867
11876
  V,
11868
11877
  It
11869
- ]), ur = n(() => /* @__PURE__ */ G(ie, {
11878
+ ]), ur = n(() => /* @__PURE__ */ K(re, {
11870
11879
  title: wt,
11871
11880
  description: Tt,
11872
11881
  descriptionClassName: "text-sm",
11873
11882
  className: "gap-3 size-full bg-layer-sunken border rounded border-primary",
11874
11883
  titleClassName: "mt-2 !text-lg",
11875
- icon: Ct || /* @__PURE__ */ G(Ke, {
11884
+ icon: Ct || /* @__PURE__ */ K(Ge, {
11876
11885
  size: 100,
11877
11886
  stroke: .5,
11878
11887
  className: "text-secondary"
@@ -11881,35 +11890,35 @@ var yi = () => {
11881
11890
  Tt,
11882
11891
  Ct,
11883
11892
  wt
11884
- ]), dr = c(() => (e) => e.path, []), fr = c(() => (0, $t.default)("min-h-[248px] overflow-auto md:min-h-[266px]", Me ? "border border-dashed border-info" : "", Ne && !Me ? "border border-dashed border-primary" : ""), [Me, Ne]), pr = c(() => ({
11893
+ ]), dr = c(() => (e) => e.path, []), fr = c(() => (0, $t.default)("min-h-[248px] overflow-auto md:min-h-[266px]", je ? "border border-dashed border-info" : "", Me && !je ? "border border-dashed border-primary" : ""), [je, Me]), pr = c(() => ({
11885
11894
  ...Un.additionalGridOptions,
11886
11895
  onCellClicked: lr,
11887
11896
  headerHeight: jn,
11888
11897
  rowHeight: jn,
11889
11898
  rowClass: "group/grid-row",
11890
11899
  defaultColDef: {
11891
- comparator: rr,
11900
+ comparator: ir,
11892
11901
  ...Un.additionalGridOptions?.defaultColDef,
11893
11902
  floatingFilter: f?.searchable ? !1 : Un.additionalGridOptions?.defaultColDef?.floatingFilter
11894
11903
  },
11895
11904
  context: {
11896
- cancelFolderCreation: Ye,
11897
- saveFolderCreation: Xe,
11898
- getDisplayName: W,
11899
- onRenameCancel: Oe,
11900
- onRenameSave: Ee,
11901
- onRenameValidate: ke,
11905
+ cancelFolderCreation: Je,
11906
+ saveFolderCreation: Ye,
11907
+ getDisplayName: G,
11908
+ onRenameCancel: De,
11909
+ onRenameSave: Te,
11910
+ onRenameValidate: Oe,
11902
11911
  renameTriggerView: Jt,
11903
- validateFolderName: Qe,
11904
- renamedItem: we,
11905
- renamedPath: Ce,
11906
- createdFolderPath: Ae,
11907
- newFolderTempId: Je,
11912
+ validateFolderName: Ze,
11913
+ renamedItem: Ce,
11914
+ renamedPath: Se,
11915
+ createdFolderPath: ke,
11916
+ newFolderTempId: qe,
11908
11917
  sharedByMePaths: C,
11909
11918
  selectedPaths: M,
11910
11919
  disabledRowIds: Yn,
11911
- forbiddenSymbolsRegExp: je,
11912
- forbiddenSymbolsTooltip: U,
11920
+ forbiddenSymbolsRegExp: Ae,
11921
+ forbiddenSymbolsTooltip: W,
11913
11922
  hideSearchPathItemName: Lt,
11914
11923
  newFolderDefaultName: Bt,
11915
11924
  filesLoading: a
@@ -11918,34 +11927,34 @@ var yi = () => {
11918
11927
  Un.additionalGridOptions,
11919
11928
  lr,
11920
11929
  f?.searchable,
11930
+ Je,
11921
11931
  Ye,
11922
- Xe,
11923
- W,
11932
+ G,
11933
+ De,
11934
+ Te,
11924
11935
  Oe,
11925
- Ee,
11926
- ke,
11927
11936
  Jt,
11928
- Qe,
11929
- we,
11937
+ Ze,
11930
11938
  Ce,
11931
- Ae,
11932
- Je,
11939
+ Se,
11940
+ ke,
11941
+ qe,
11933
11942
  C,
11934
11943
  M,
11935
11944
  Yn,
11936
- je,
11937
- U,
11945
+ Ae,
11946
+ W,
11938
11947
  Lt,
11939
11948
  Bt,
11940
11949
  a
11941
- ]), mr = c(() => j.length === 0 && !St && !a ? ur() : /* @__PURE__ */ G(te, {
11950
+ ]), mr = c(() => j.length === 0 && !St && !a ? ur() : /* @__PURE__ */ K(te, {
11942
11951
  columnDefs: cr,
11943
11952
  rowData: j,
11944
11953
  getRowId: dr,
11945
11954
  loading: a || xt,
11946
11955
  getContextMenuItems: or,
11947
11956
  withoutHeaderBorders: Gn,
11948
- onGridApiChange: re,
11957
+ onGridApiChange: ne,
11949
11958
  className: fr,
11950
11959
  ...Un,
11951
11960
  selectionMode: Dn,
@@ -11953,7 +11962,7 @@ var yi = () => {
11953
11962
  additionalGridOptions: pr,
11954
11963
  selectedRowIds: Zn,
11955
11964
  onSelectionChange: Qn,
11956
- wrapperBorder: !Me && !Ne,
11965
+ wrapperBorder: !je && !Me,
11957
11966
  disabledRowIds: Yn,
11958
11967
  allowDisabledContextMenu: Hn
11959
11968
  }), [
@@ -11966,7 +11975,7 @@ var yi = () => {
11966
11975
  xt,
11967
11976
  or,
11968
11977
  Gn,
11969
- re,
11978
+ ne,
11970
11979
  fr,
11971
11980
  Un,
11972
11981
  Dn,
@@ -11974,27 +11983,27 @@ var yi = () => {
11974
11983
  pr,
11975
11984
  Zn,
11976
11985
  Qn,
11986
+ je,
11977
11987
  Me,
11978
- Ne,
11979
11988
  Yn,
11980
11989
  Hn
11981
11990
  ]);
11982
- return /* @__PURE__ */ G("section", {
11991
+ return /* @__PURE__ */ K("section", {
11983
11992
  ref: Wn,
11984
11993
  className: "size-full",
11985
- children: /* @__PURE__ */ K("div", {
11986
- className: De(hn, {
11994
+ children: /* @__PURE__ */ q("div", {
11995
+ className: Ee(hn, {
11987
11996
  "gap-3 pt-4": h && M.size > 0,
11988
11997
  "gap-4 p-3 pt-4": Gn,
11989
11998
  "gap-2 pt-2": Gn && h && M.size > 0
11990
11999
  }, t),
11991
12000
  children: [
11992
- nr(),
11993
- /* @__PURE__ */ K("div", {
11994
- className: De(_n, Ft),
11995
- children: [ir(), /* @__PURE__ */ K("div", {
11996
- className: De(vn, { "gap-3": Gn }),
11997
- children: [d && /* @__PURE__ */ G(Xr, {
12001
+ tr(),
12002
+ /* @__PURE__ */ q("div", {
12003
+ className: Ee(_n, Ft),
12004
+ children: [rr(), /* @__PURE__ */ q("div", {
12005
+ className: Ee(vn, { "gap-3": Gn }),
12006
+ children: [d && /* @__PURE__ */ K(Zr, {
11998
12007
  ...f ?? {},
11999
12008
  makeHref: (e) => e.join("/"),
12000
12009
  path: A,
@@ -12005,15 +12014,15 @@ var yi = () => {
12005
12014
  onSearchChange: ee,
12006
12015
  isCompactView: Gn,
12007
12016
  labelClassName: "dial-tiny-text"
12008
- }), /* @__PURE__ */ K("section", {
12017
+ }), /* @__PURE__ */ q("section", {
12009
12018
  role: "region",
12010
12019
  "aria-label": "File Manager Grid View",
12011
- className: De(bn, "relative"),
12012
- onDragEnter: Pe,
12013
- onDragLeave: Fe,
12014
- onDragOver: Ie,
12015
- onDrop: Le,
12016
- children: [mr, /* @__PURE__ */ G(Lr, {
12020
+ className: Ee(bn, "relative"),
12021
+ onDragEnter: Ne,
12022
+ onDragLeave: Pe,
12023
+ onDragOver: Fe,
12024
+ onDrop: Ie,
12025
+ children: [mr, /* @__PURE__ */ K(Rr, {
12017
12026
  disabledGridRowIds: Yn,
12018
12027
  gridRows: j,
12019
12028
  getDisabledTooltip: Mt,
@@ -12024,31 +12033,31 @@ var yi = () => {
12024
12033
  })]
12025
12034
  })]
12026
12035
  }),
12027
- /* @__PURE__ */ G(Gr, {
12036
+ /* @__PURE__ */ K(Kr, {
12028
12037
  ...v,
12029
- open: xe,
12030
- itemsToDelete: Se,
12031
- onClose: ye,
12032
- onConfirm: be
12038
+ open: be,
12039
+ itemsToDelete: xe,
12040
+ onClose: ve,
12041
+ onConfirm: ye
12033
12042
  }),
12034
- /* @__PURE__ */ G(Br, {
12043
+ /* @__PURE__ */ K(Vr, {
12035
12044
  ...y,
12036
- open: se,
12037
- onClose: oe,
12045
+ open: oe,
12046
+ onClose: ae,
12038
12047
  onConfirm: () => {
12039
12048
  let e = y?.destinationFolderPath ?? "/";
12040
- ce === un.Copy ? de(e) : fe(e), oe();
12049
+ se === un.Copy ? ue(e) : de(e), ae();
12041
12050
  },
12042
- mode: ce,
12051
+ mode: se,
12043
12052
  items: r,
12044
12053
  rootItem: i,
12045
12054
  gridOptions: {
12046
12055
  columnDefs: cr.filter((e) => e.colId !== mn.Actions),
12047
12056
  loading: a
12048
12057
  },
12049
- onUploadFiles: ze,
12050
- onValidateUpload: Be,
12051
- maxFileSize: Ue,
12058
+ onUploadFiles: Re,
12059
+ onValidateUpload: ze,
12060
+ maxFileSize: He,
12052
12061
  path: y?.destinationFolderPath ?? y?.sourceFolder ?? A,
12053
12062
  onPathChange: (e) => {
12054
12063
  y?.setDestinationFolderPath?.(e);
@@ -12064,7 +12073,7 @@ var yi = () => {
12064
12073
  showCreateFolderButton: zt,
12065
12074
  hideSearchPathItemName: Lt
12066
12075
  }),
12067
- /* @__PURE__ */ G(In, {
12076
+ /* @__PURE__ */ K(In, {
12068
12077
  ...b,
12069
12078
  open: nt,
12070
12079
  onClose: at,
@@ -12073,7 +12082,7 @@ var yi = () => {
12073
12082
  onDecideForEach: ot,
12074
12083
  conflictingFiles: tt
12075
12084
  }),
12076
- /* @__PURE__ */ G(In, {
12085
+ /* @__PURE__ */ K(In, {
12077
12086
  ...b,
12078
12087
  open: ct,
12079
12088
  onClose: dt,
@@ -12082,7 +12091,7 @@ var yi = () => {
12082
12091
  onDecideForEach: ft,
12083
12092
  conflictingFiles: st
12084
12093
  }),
12085
- /* @__PURE__ */ G(ii, {
12094
+ /* @__PURE__ */ K(ai, {
12086
12095
  open: ht,
12087
12096
  onClose: _t,
12088
12097
  fileMetadata: mt?.fileMetadata ?? gt,
@@ -12099,12 +12108,12 @@ var yi = () => {
12099
12108
  ]
12100
12109
  })
12101
12110
  });
12102
- }, wi = {
12111
+ }, Ti = {
12103
12112
  divider: "_divider_1gs31_1",
12104
12113
  tree: "_tree_1gs31_17"
12105
- }, Ti = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: d = "Add sibling", addChildFolderLabel: f = "Add child", newFolderDefaultName: p = "New folder", noResultsLabel: m = "No folders match \"{query}\".", emptyFolderNameError: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: w = {} }) => {
12114
+ }, Ei = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: d = "Add sibling", addChildFolderLabel: f = "Add child", newFolderDefaultName: p = "New folder", noResultsLabel: m = "No folders match \"{query}\".", emptyFolderNameError: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: w = {} }) => {
12106
12115
  let T = {
12107
- ...je({ "--pft-divider": w.colors?.divider }),
12116
+ ...Ae({ "--pft-divider": w.colors?.divider }),
12108
12117
  ...w.cssVars
12109
12118
  }, [E, D] = u(() => new Set(t?.map((e, n) => Y(t.slice(0, n + 1))) ?? [])), O = y ?? E, k = (e) => {
12110
12119
  let t = new Set(e);
@@ -12117,62 +12126,62 @@ var yi = () => {
12117
12126
  z,
12118
12127
  te,
12119
12128
  O
12120
- ]), ne = c(() => Ot(B), [B]), re = c(() => z && ne.length === 0 ? [] : [{
12129
+ ]), H = c(() => Ot(B), [B]), ne = c(() => z && H.length === 0 ? [] : [{
12121
12130
  path: "",
12122
12131
  name: v,
12123
12132
  folderId: "",
12124
12133
  nodeType: $.FOLDER,
12125
- items: ne
12134
+ items: H
12126
12135
  }], [
12127
- ne,
12136
+ H,
12128
12137
  v,
12129
12138
  z
12130
- ]), ie = A ? Y(A) : null, ae = {
12139
+ ]), re = A ? Y(A) : null, ie = {
12131
12140
  empty: h,
12132
12141
  invalid: g,
12133
12142
  duplicate: _
12134
- }, oe = (t) => jt(R && At(F, [], ae) == null ? F : p, Mt(e, t)), se = (e) => {
12135
- j(e), N(oe(e)), P.current = null;
12143
+ }, ae = (t) => jt(R && At(F, [], ie) == null ? F : p, Mt(e, t)), oe = (e) => {
12144
+ j(e), N(ae(e)), P.current = null;
12136
12145
  let t = Y(e);
12137
12146
  t && k(new Set(O).add(t));
12138
- }, ce = () => se(t ?? []), H = (e) => {
12147
+ }, se = () => oe(t ?? []), U = (e) => {
12139
12148
  let t = Dt(e.path), n = [{
12140
12149
  key: "add-child",
12141
12150
  label: f,
12142
- icon: /* @__PURE__ */ G(Ye, {
12151
+ icon: /* @__PURE__ */ K(Je, {
12143
12152
  size: S.SM,
12144
12153
  "aria-hidden": !0,
12145
12154
  stroke: C
12146
12155
  }),
12147
- onClick: () => se(t)
12156
+ onClick: () => oe(t)
12148
12157
  }];
12149
12158
  return e.path !== "" && n.push({
12150
12159
  key: "add-sibling",
12151
12160
  label: d,
12152
- icon: /* @__PURE__ */ G(Qe, {
12161
+ icon: /* @__PURE__ */ K(Ze, {
12153
12162
  size: S.SM,
12154
12163
  "aria-hidden": !0,
12155
12164
  stroke: C
12156
12165
  }),
12157
- onClick: () => se(t.slice(0, -1))
12166
+ onClick: () => oe(t.slice(0, -1))
12158
12167
  }), n;
12159
- }, le = (t) => {
12168
+ }, ce = (t) => {
12160
12169
  if (!A) return null;
12161
- let n = At(t, Mt(e, A), ae);
12170
+ let n = At(t, Mt(e, A), ie);
12162
12171
  return P.current = n, n;
12163
- }, ue = (e) => {
12172
+ }, le = (e) => {
12164
12173
  if (!A) return;
12165
12174
  let t = e.trim(), i = P.current;
12166
- (le(e) ?? i) || (r(A, t), n([...A, t])), j(null);
12167
- }, de = () => j(null);
12168
- return /* @__PURE__ */ K("div", {
12175
+ (ce(e) ?? i) || (r(A, t), n([...A, t])), j(null);
12176
+ }, ue = () => j(null);
12177
+ return /* @__PURE__ */ q("div", {
12169
12178
  style: T,
12170
- className: U(a && "pointer-events-none opacity-60", w.className),
12179
+ className: W(a && "pointer-events-none opacity-60", w.className),
12171
12180
  children: [
12172
- /* @__PURE__ */ G("div", {
12173
- className: U("w-full min-w-0 max-w-full", wi.tree),
12174
- children: /* @__PURE__ */ G(di, {
12175
- items: re,
12181
+ /* @__PURE__ */ K("div", {
12182
+ className: W("w-full min-w-0 max-w-full", Ti.tree),
12183
+ children: /* @__PURE__ */ K(fi, {
12184
+ items: ne,
12176
12185
  showFiles: !1,
12177
12186
  selectedPath: t == null ? void 0 : Y(t),
12178
12187
  expandedPaths: V,
@@ -12181,44 +12190,44 @@ var yi = () => {
12181
12190
  onItemClick: (e) => {
12182
12191
  n(t != null && Y(t) === e.path ? void 0 : Dt(e.path));
12183
12192
  },
12184
- getContextMenuItems: H,
12185
- createdFolderPath: ie,
12193
+ getContextMenuItems: U,
12194
+ createdFolderPath: re,
12186
12195
  newFolderDefaultName: M,
12187
- onCreateFolderSave: ue,
12188
- onCreateFolderCancel: de,
12189
- onRenameValidate: (e) => le(e),
12196
+ onCreateFolderSave: le,
12197
+ onCreateFolderCancel: ue,
12198
+ onRenameValidate: (e) => ce(e),
12190
12199
  emptyStateTitle: z ? m.replace("{query}", F) : void 0
12191
12200
  })
12192
12201
  }),
12193
- /* @__PURE__ */ G("div", {
12194
- className: U("my-2 h-px", wi.divider),
12202
+ /* @__PURE__ */ K("div", {
12203
+ className: W("my-2 h-px", Ti.divider),
12195
12204
  "aria-hidden": !0
12196
12205
  }),
12197
- /* @__PURE__ */ K("div", {
12206
+ /* @__PURE__ */ q("div", {
12198
12207
  className: "mb-4 flex flex-wrap items-center gap-2",
12199
- children: [/* @__PURE__ */ G(ee, {
12200
- onClick: ce,
12208
+ children: [/* @__PURE__ */ K(ee, {
12209
+ onClick: se,
12201
12210
  label: o,
12202
- iconBefore: /* @__PURE__ */ G(Qe, {
12211
+ iconBefore: /* @__PURE__ */ K(Ze, {
12203
12212
  size: S.SM,
12204
12213
  "aria-hidden": !0,
12205
12214
  stroke: C
12206
12215
  }),
12207
12216
  disabled: a || I
12208
- }), I && /* @__PURE__ */ G(ee, {
12217
+ }), I && /* @__PURE__ */ K(ee, {
12209
12218
  label: s,
12210
- onClick: de,
12219
+ onClick: ue,
12211
12220
  disabled: a
12212
12221
  })]
12213
12222
  })
12214
12223
  ]
12215
12224
  });
12216
- }, Ei = {
12225
+ }, Di = {
12217
12226
  summaryTitle: "_summaryTitle_tf20a_1",
12218
12227
  sectionHeading: "_sectionHeading_tf20a_5"
12219
- }, Di = 200, Oi = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: d, expandedPaths: f, onExpandedPathsChange: p, loadingPaths: m, hasExistingPublicationInFolder: h, hasWriteAccess: g, isSubmitting: _, hasSubmitError: v = !1, allowReplace: y = !0, author: b, onAuthorChange: x, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, labels: D = {}, summaryTitleClassName: O = "dial-body-semi-text", headingClassName: k = "dial-body-semi-text", styles: A = {} }) => {
12228
+ }, Oi = 200, ki = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: d, expandedPaths: f, onExpandedPathsChange: p, loadingPaths: m, hasExistingPublicationInFolder: h, hasWriteAccess: g, isSubmitting: _, hasSubmitError: v = !1, allowReplace: y = !0, author: b, onAuthorChange: x, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, labels: D = {}, summaryTitleClassName: O = "dial-body-semi-text", headingClassName: k = "dial-body-semi-text", styles: A = {} }) => {
12220
12229
  let { colors: j, folderTree: M, accessRules: N } = A, P = {
12221
- ...je({
12230
+ ...Ae({
12222
12231
  "--pp-summary-title-text": j?.summaryTitleText,
12223
12232
  "--pp-heading-text": j?.headingText
12224
12233
  }),
@@ -12229,58 +12238,58 @@ var yi = () => {
12229
12238
  versionTagBorder: j?.summaryVersionTagBorder,
12230
12239
  versionTagBackground: j?.summaryVersionTagBackground,
12231
12240
  versionTagText: j?.summaryVersionTagText
12232
- }, { folderLabel: I = "Publish to folder", replaceWarning: L = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: R = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: z = "Publishing failed. Please try again.", folderEmptyStateLabel: ee, addSiblingFolderLabel: B, addChildFolderLabel: te, cancelCreatingFolderLabel: ne, createFolderEmptyNameError: re, createFolderInvalidNameError: ie, createFolderDuplicateNameError: se, rootFolderLabel: ce = "Organization", summaryVersionLabel: H, accessRulesLabels: le, searchPlaceholder: ue, clearSearchAriaLabel: fe, authorLabel: pe = "Author", authorPlaceholder: me = "Author name", authorHint: he = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead." } = D, [ge, _e] = u(""), ve = a(), ye = (e) => {
12233
- _e(e ?? "");
12234
- }, be = s != null, xe = c(() => gt({
12235
- hasSelectedFolder: be,
12241
+ }, { folderLabel: I = "Publish to folder", replaceWarning: L = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: R = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: z = "Publishing failed. Please try again.", folderEmptyStateLabel: ee, addSiblingFolderLabel: B, addChildFolderLabel: te, cancelCreatingFolderLabel: H, createFolderEmptyNameError: ne, createFolderInvalidNameError: re, createFolderDuplicateNameError: oe, rootFolderLabel: se = "Organization", summaryVersionLabel: U, accessRulesLabels: ce, searchPlaceholder: le, clearSearchAriaLabel: de, authorLabel: fe = "Author", authorPlaceholder: pe = "Author name", authorHint: me = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead." } = D, [he, ge] = u(""), _e = a(), ve = (e) => {
12242
+ ge(e ?? "");
12243
+ }, ye = s != null, be = c(() => gt({
12244
+ hasSelectedFolder: ye,
12236
12245
  hasExistingPublicationInFolder: h,
12237
12246
  hasWriteAccess: g,
12238
12247
  isSubmitting: _,
12239
12248
  hasSubmitError: v,
12240
12249
  allowReplace: y
12241
12250
  }), [
12242
- be,
12251
+ ye,
12243
12252
  h,
12244
12253
  g,
12245
12254
  _,
12246
12255
  v,
12247
12256
  y
12248
- ]), Se = be ? s[s.length - 1] ?? ce : "", Ce = t ? t() : /* @__PURE__ */ G("span", {
12249
- className: U("truncate", O, Ei.summaryTitle),
12257
+ ]), xe = ye ? s[s.length - 1] ?? se : "", Se = t ? t() : /* @__PURE__ */ K("span", {
12258
+ className: W("truncate", O, Di.summaryTitle),
12250
12259
  children: e?.title
12251
12260
  });
12252
- return /* @__PURE__ */ K("div", {
12261
+ return /* @__PURE__ */ q("div", {
12253
12262
  className: "flex flex-col gap-5",
12254
12263
  style: P,
12255
- children: [e?.type == null ? /* @__PURE__ */ G(ke, {
12264
+ children: [e?.type == null ? /* @__PURE__ */ K(Oe, {
12256
12265
  colors: F,
12257
- children: Ce
12258
- }) : /* @__PURE__ */ G(ke, {
12266
+ children: Se
12267
+ }) : /* @__PURE__ */ K(Oe, {
12259
12268
  item: {
12260
12269
  type: e.type,
12261
12270
  name: e.title,
12262
12271
  version: e.version ?? "",
12263
12272
  iconUrl: e.iconUrl
12264
12273
  },
12265
- versionLabel: H,
12274
+ versionLabel: U,
12266
12275
  colors: F
12267
- }), /* @__PURE__ */ K("div", { children: [
12268
- /* @__PURE__ */ G("div", {
12269
- className: U("mb-2", k, Ei.sectionHeading),
12276
+ }), /* @__PURE__ */ q("div", { children: [
12277
+ /* @__PURE__ */ K("div", {
12278
+ className: W("mb-2", k, Di.sectionHeading),
12270
12279
  children: I
12271
12280
  }),
12272
- /* @__PURE__ */ G("div", {
12281
+ /* @__PURE__ */ K("div", {
12273
12282
  role: "search",
12274
12283
  className: "mb-3",
12275
- children: /* @__PURE__ */ G(de, {
12276
- value: ge,
12277
- onChange: ye,
12278
- placeholder: ue,
12279
- clearLabel: fe,
12280
- "aria-label": ue
12284
+ children: /* @__PURE__ */ K(ue, {
12285
+ value: he,
12286
+ onChange: ve,
12287
+ placeholder: le,
12288
+ clearLabel: de,
12289
+ "aria-label": le
12281
12290
  })
12282
12291
  }),
12283
- /* @__PURE__ */ G(Ti, {
12292
+ /* @__PURE__ */ K(Ei, {
12284
12293
  items: o,
12285
12294
  selectedPath: s,
12286
12295
  onSelectedPathChange: l,
@@ -12288,88 +12297,88 @@ var yi = () => {
12288
12297
  expandedPaths: f,
12289
12298
  onExpandedPathsChange: p,
12290
12299
  loadingPaths: m,
12291
- searchQuery: ge,
12300
+ searchQuery: he,
12292
12301
  disabled: _,
12293
12302
  noResultsLabel: ee,
12294
12303
  addSiblingFolderLabel: B,
12295
12304
  addChildFolderLabel: te,
12296
- cancelCreatingFolderLabel: ne,
12297
- emptyFolderNameError: re,
12298
- invalidFolderNameError: ie,
12299
- duplicateFolderNameError: se,
12300
- rootLabel: ce,
12305
+ cancelCreatingFolderLabel: H,
12306
+ emptyFolderNameError: ne,
12307
+ invalidFolderNameError: re,
12308
+ duplicateFolderNameError: oe,
12309
+ rootLabel: se,
12301
12310
  styles: M
12302
12311
  }),
12303
- xe.calloutKind !== ht.None && xe.calloutKind !== ht.Info && /* @__PURE__ */ G("div", {
12312
+ be.calloutKind !== ht.None && be.calloutKind !== ht.Info && /* @__PURE__ */ K("div", {
12304
12313
  className: "mt-3",
12305
- children: /* @__PURE__ */ G(ae, {
12306
- type: oe.SectionMessage,
12307
- variant: ki(xe.calloutKind),
12308
- message: ji(xe.calloutKind, {
12314
+ children: /* @__PURE__ */ K(ie, {
12315
+ type: ae.SectionMessage,
12316
+ variant: Ai(be.calloutKind),
12317
+ message: Mi(be.calloutKind, {
12309
12318
  replaceWarning: L,
12310
12319
  noAccessError: R,
12311
12320
  submitError: z,
12312
- folderName: Se,
12321
+ folderName: xe,
12313
12322
  version: e?.version
12314
12323
  })
12315
12324
  })
12316
12325
  }),
12317
- /* @__PURE__ */ G("div", {
12326
+ /* @__PURE__ */ K("div", {
12318
12327
  className: "mt-4",
12319
- children: /* @__PURE__ */ G(V, {
12320
- id: ve,
12321
- labelProps: { label: pe },
12322
- placeholder: me,
12323
- caption: he,
12328
+ children: /* @__PURE__ */ K(V, {
12329
+ id: _e,
12330
+ labelProps: { label: fe },
12331
+ placeholder: pe,
12332
+ caption: me,
12324
12333
  value: b,
12325
12334
  onChange: (e) => x(e ?? ""),
12326
- maxLength: Di,
12335
+ maxLength: Oi,
12327
12336
  disabled: _
12328
12337
  })
12329
12338
  }),
12330
- /* @__PURE__ */ G("div", {
12339
+ /* @__PURE__ */ K("div", {
12331
12340
  className: "mt-4",
12332
- children: /* @__PURE__ */ G(Ht, {
12341
+ children: /* @__PURE__ */ K(Ht, {
12333
12342
  rules: S,
12334
12343
  onRulesChange: C,
12335
12344
  sourceOptions: w,
12336
- folderName: be ? Se : void 0,
12345
+ folderName: ye ? xe : void 0,
12337
12346
  disabled: _,
12338
12347
  isLoading: T,
12339
12348
  hasLoadError: E,
12340
- labels: le,
12349
+ labels: ce,
12341
12350
  styles: N
12342
12351
  })
12343
12352
  })
12344
12353
  ] })]
12345
12354
  });
12346
- }, ki = (e) => e === ht.ReplaceWarning ? se.Warning : se.Error, Ai = (e, t) => {
12355
+ }, Ai = (e) => e === ht.ReplaceWarning ? oe.Warning : oe.Error, ji = (e, t) => {
12347
12356
  let [n, r, ...i] = e.split("{folder}");
12348
- return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ K(W, { children: [
12357
+ return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ q(G, { children: [
12349
12358
  n,
12350
- /* @__PURE__ */ G("strong", {
12359
+ /* @__PURE__ */ K("strong", {
12351
12360
  className: "font-semibold",
12352
12361
  children: t
12353
12362
  }),
12354
12363
  r
12355
12364
  ] });
12356
- }, ji = (e, t) => e === ht.ReplaceWarning ? Ai(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === ht.NoAccess ? Ai(t.noAccessError, t.folderName) : t.submitError, Mi = { footer: "_footer_dks1v_1" }, Ni = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
12357
- let c = je({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
12358
- return /* @__PURE__ */ K("div", {
12365
+ }, Mi = (e, t) => e === ht.ReplaceWarning ? ji(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === ht.NoAccess ? ji(t.noAccessError, t.folderName) : t.submitError, Ni = { footer: "_footer_dks1v_1" }, Pi = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
12366
+ let c = Ae({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
12367
+ return /* @__PURE__ */ q("div", {
12359
12368
  style: c,
12360
- className: U("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", Mi.footer),
12361
- children: [/* @__PURE__ */ G(ee, {
12369
+ className: W("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", Ni.footer),
12370
+ children: [/* @__PURE__ */ K(ee, {
12362
12371
  label: l,
12363
12372
  disabled: r,
12364
12373
  onClick: i
12365
- }), /* @__PURE__ */ G(re, {
12374
+ }), /* @__PURE__ */ K(ne, {
12366
12375
  label: p,
12367
12376
  disabled: n,
12368
- iconBefore: r ? /* @__PURE__ */ G(he, { size: S.SM }) : void 0,
12377
+ iconBefore: r ? /* @__PURE__ */ K(me, { size: S.SM }) : void 0,
12369
12378
  onClick: a
12370
12379
  })]
12371
12380
  });
12372
- }, Pi = [
12381
+ }, Fi = [
12373
12382
  "a[href]",
12374
12383
  "area[href]",
12375
12384
  "button",
@@ -12379,14 +12388,14 @@ var yi = () => {
12379
12388
  "summary",
12380
12389
  "[contenteditable=\"true\"]",
12381
12390
  "[tabindex]"
12382
- ].join(","), Fi = (e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.tabIndex < 0 ? !1 : e.closest("[inert],[hidden],[aria-hidden=\"true\"]") == null, Ii = (e) => Array.from(e.querySelectorAll(Pi)).filter(Fi), Li = {
12391
+ ].join(","), Ii = (e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.tabIndex < 0 ? !1 : e.closest("[inert],[hidden],[aria-hidden=\"true\"]") == null, Li = (e) => Array.from(e.querySelectorAll(Fi)).filter(Ii), Ri = {
12383
12392
  backdrop: "_backdrop_1rdk6_1",
12384
12393
  panel: "_panel_1rdk6_5",
12385
12394
  divider: "_divider_1rdk6_10",
12386
12395
  content: "_content_1rdk6_14",
12387
12396
  title: "_title_1rdk6_19"
12388
- }, Ri = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: a = !1, hasHistoryError: o = !1, folderItems: s, selectedFolderPath: u, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: g, hasExistingPublicationInFolder: _, hasWriteAccess: v, isSubmitting: y, hasSubmitError: b = !1, allowReplace: x = !0, author: S, onAuthorChange: C, rules: w, onRulesChange: T, ruleSourceOptions: E, isRulesLoading: D = !1, hasRulesLoadError: O = !1, onClose: k, returnFocusRef: A, onSubmit: j, panelLabels: M, panelStyles: N, footerLabels: P, labels: F = {}, titleClassName: I = "dial-body-semi-text", colors: L }) => {
12389
- let R = je({
12397
+ }, zi = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: a = !1, hasHistoryError: o = !1, folderItems: s, selectedFolderPath: u, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: g, hasExistingPublicationInFolder: _, hasWriteAccess: v, isSubmitting: y, hasSubmitError: b = !1, allowReplace: x = !0, author: S, onAuthorChange: C, rules: w, onRulesChange: T, ruleSourceOptions: E, isRulesLoading: D = !1, hasRulesLoadError: O = !1, onClose: k, returnFocusRef: A, onSubmit: j, panelLabels: M, panelStyles: N, footerLabels: P, labels: F = {}, titleClassName: I = "dial-body-semi-text", colors: L }) => {
12398
+ let R = Ae({
12390
12399
  "--spp-backdrop-bg": L?.backdropBackground,
12391
12400
  "--spp-panel-bg": L?.panelBackground,
12392
12401
  "--spp-panel-border": L?.panelBorder,
@@ -12436,7 +12445,7 @@ var yi = () => {
12436
12445
  if (!t) return;
12437
12446
  let n = document.activeElement;
12438
12447
  if (!(n instanceof HTMLElement) || !t.contains(n)) return;
12439
- let r = Ii(t);
12448
+ let r = Li(t);
12440
12449
  if (r.length === 0) {
12441
12450
  e.preventDefault(), t.focus({ preventScroll: !0 });
12442
12451
  return;
@@ -12451,12 +12460,12 @@ var yi = () => {
12451
12460
  return document.addEventListener("keydown", t), () => {
12452
12461
  document.removeEventListener("keydown", t);
12453
12462
  };
12454
- }, [e, k]), /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
12463
+ }, [e, k]), /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("div", {
12455
12464
  style: R,
12456
- className: U("fixed inset-0 z-[51] transition-opacity duration-300", Li.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
12465
+ className: W("fixed inset-0 z-[51] transition-opacity duration-300", Ri.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
12457
12466
  onClick: k,
12458
12467
  "aria-hidden": "true"
12459
- }), /* @__PURE__ */ K("div", {
12468
+ }), /* @__PURE__ */ q("div", {
12460
12469
  ref: z,
12461
12470
  role: "dialog",
12462
12471
  "aria-modal": "true",
@@ -12465,19 +12474,19 @@ var yi = () => {
12465
12474
  inert: !e,
12466
12475
  tabIndex: -1,
12467
12476
  style: R,
12468
- className: U("fixed inset-y-0 end-0 z-[52] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Li.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
12477
+ className: W("fixed inset-y-0 end-0 z-[52] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", Ri.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
12469
12478
  children: [
12470
- /* @__PURE__ */ K("div", {
12479
+ /* @__PURE__ */ q("div", {
12471
12480
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
12472
12481
  children: [
12473
- /* @__PURE__ */ G("div", { className: "flex-1" }),
12474
- /* @__PURE__ */ G("span", {
12475
- className: U("flex-1 text-center", I, Li.title),
12482
+ /* @__PURE__ */ K("div", { className: "flex-1" }),
12483
+ /* @__PURE__ */ K("span", {
12484
+ className: W("flex-1 text-center", I, Ri.title),
12476
12485
  children: ee
12477
12486
  }),
12478
- /* @__PURE__ */ G("div", {
12487
+ /* @__PURE__ */ K("div", {
12479
12488
  className: "flex flex-1 justify-end",
12480
- children: /* @__PURE__ */ G(h, {
12489
+ children: /* @__PURE__ */ K(h, {
12481
12490
  onClose: k,
12482
12491
  ariaLabel: te,
12483
12492
  disabled: y
@@ -12485,12 +12494,12 @@ var yi = () => {
12485
12494
  })
12486
12495
  ]
12487
12496
  }),
12488
- /* @__PURE__ */ G("div", { className: U("shrink-0", Li.divider) }),
12489
- /* @__PURE__ */ G("div", {
12490
- className: U("min-h-0 flex-1 overflow-y-auto", Li.content),
12491
- children: /* @__PURE__ */ G("div", {
12497
+ /* @__PURE__ */ K("div", { className: W("shrink-0", Ri.divider) }),
12498
+ /* @__PURE__ */ K("div", {
12499
+ className: W("min-h-0 flex-1 overflow-y-auto", Ri.content),
12500
+ children: /* @__PURE__ */ K("div", {
12492
12501
  className: "p-[22px]",
12493
- children: /* @__PURE__ */ G(Oi, {
12502
+ children: /* @__PURE__ */ K(ki, {
12494
12503
  resource: t,
12495
12504
  renderSummary: n,
12496
12505
  history: r,
@@ -12520,7 +12529,7 @@ var yi = () => {
12520
12529
  })
12521
12530
  })
12522
12531
  }),
12523
- /* @__PURE__ */ G(Ni, {
12532
+ /* @__PURE__ */ K(Pi, {
12524
12533
  version: t?.version,
12525
12534
  hasExistingPublicationInFolder: _,
12526
12535
  isSubmitDisabled: V.isSubmitDisabled,
@@ -12533,4 +12542,4 @@ var yi = () => {
12533
12542
  })] });
12534
12543
  };
12535
12544
  //#endregion
12536
- export { mt as PublicationRuleFunction, Rt as PublishAccessRuleEditor, Ht as PublishAccessRules, ht as PublishCalloutKind, Ti as PublishFoldersTree, Ni as PublishFooter, Wt as PublishHistoryList, Oi as PublishPanel, Ri as StandalonePublishPanel, Et as collectFolderKeys, gt as derivePublishState, St as filterFolderTree, vt as formatPublishedDate, Dt as fromFolderPathKey, Mt as getSiblingFolderNames, jt as getUniqueFolderName, J as mergeFolderPaths, wt as sortFolderTree, Ot as toDialFileTree, Y as toFolderPathKey, xt as usePublishFlow, At as validateFolderName };
12545
+ export { mt as PublicationRuleFunction, Rt as PublishAccessRuleEditor, Ht as PublishAccessRules, ht as PublishCalloutKind, Ei as PublishFoldersTree, Pi as PublishFooter, Wt as PublishHistoryList, ki as PublishPanel, zi as StandalonePublishPanel, Et as collectFolderKeys, gt as derivePublishState, St as filterFolderTree, vt as formatPublishedDate, Dt as fromFolderPathKey, Mt as getSiblingFolderNames, jt as getUniqueFolderName, J as mergeFolderPaths, wt as sortFolderTree, Ot as toDialFileTree, Y as toFolderPathKey, xt as usePublishFlow, At as validateFolderName };