@epam/ai-dial-publish-panel 1.1.0-dev.167 → 1.1.0-dev.170

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.
Files changed (2) hide show
  1. package/index.js +757 -757
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import t, { createContext as n, createElement as r, forwardRef as i, memo as a, useCallback as o, useContext as s, useEffect as c, useId as l, useImperativeHandle as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
3
- import { BASE_ICON_PROPS as h, BASE_ICON_SIZE as g, ButtonAppearance as _, ButtonDropdown as v, ButtonVariant as y, CloseButton as b, ConfirmationPopup as x, ConfirmationPopupVariant as S, DEFAULT_GRID_DATE_FORMAT_OPTIONS as C, DEFAULT_GRID_DATE_LOCALE as w, DIAL_ICON_SIZE as T, DialBreadcrumb as E, DialCheckbox as D, DialCollapsibleSidebar as O, DialConditionalResizableContainer as k, DialDateCellRenderer as ee, DialEllipsisTooltip as te, DialFileIcon as ne, DialFileName as A, DialFileNodeType as re, DialFolderName as ie, DialGrid as j, DialIcon as ae, DialItemType as oe, DialNoDataContent as se, DialRadioGroup as ce, DialSearch as le, DialSharedEntityIndicator as ue, DialSwitch as de, DialTabs as fe, DialTag as pe, DialTagInput as me, DialTooltip as he, DialTooltipContainer as ge, DialTooltipContent as _e, DialTooltipTrigger as ve, Dropdown as ye, DropdownItemType as be, DropdownTrigger as xe, ElementSize as Se, FlexibleActionsDirection as Ce, GhostButton as we, GhostIconButton as Te, Input as Ee, NOT_ALLOWED_SYMBOLS_REGEXP as De, NeutralButton as Oe, Notification as ke, NotificationType as Ae, NotificationVariant as je, Popup as Me, PopupSize as Ne, PrimaryButton as Pe, RadioGroupOrientation as Fe, ScreenResolution as Ie, Select as Le, Skeleton as Re, SkeletonVariant as ze, Spinner as Be, convertGridDateToDate as Ve, editableContainerProps as He, mergeClasses as Ue, useEditableItem as We } from "@epam/ai-dial-ui-kit";
3
+ import { BASE_ICON_PROPS as h, BASE_ICON_SIZE as g, ButtonAppearance as _, ButtonDropdown as v, ButtonVariant as y, CloseButton as b, ConfirmationPopup as x, ConfirmationPopupVariant as S, DEFAULT_GRID_DATE_FORMAT_OPTIONS as C, DEFAULT_GRID_DATE_LOCALE as w, DIAL_ICON_SIZE as T, DialBreadcrumb as E, DialCheckbox as ee, DialCollapsibleSidebar as D, DialConditionalResizableContainer as O, DialDateCellRenderer as te, DialEllipsisTooltip as k, DialFileIcon as ne, DialFileName as A, DialFileNodeType as re, DialFolderName as ie, DialGrid as j, DialIcon as ae, DialItemType as oe, DialNoDataContent as se, DialRadioGroup as ce, DialSearch as le, DialSharedEntityIndicator as ue, DialSwitch as de, DialTabs as fe, DialTag as pe, DialTagInput as me, DialTooltip as he, DialTooltipContainer as ge, DialTooltipContent as _e, DialTooltipTrigger as ve, Dropdown as ye, DropdownItemType as be, DropdownTrigger as xe, ElementSize as Se, FlexibleActionsDirection as Ce, GhostButton as we, GhostIconButton as Te, Input as Ee, NOT_ALLOWED_SYMBOLS_REGEXP as De, NeutralButton as Oe, Notification as ke, NotificationType as Ae, NotificationVariant as je, Popup as Me, PopupSize as Ne, PrimaryButton as Pe, RadioGroupOrientation as Fe, ScreenResolution as Ie, Select as Le, Skeleton as Re, SkeletonVariant as ze, Spinner as Be, convertGridDateToDate as Ve, editableContainerProps as He, mergeClasses as Ue, useEditableItem as We } from "@epam/ai-dial-ui-kit";
4
4
  import { Fragment as Ge, jsx as M, jsxs as N } from "react/jsx-runtime";
5
5
  import { IconAlertCircleFilled as Ke, IconAlertTriangleFilled as qe, IconArrowLeft as Je, IconCaretRightFilled as Ye, IconChevronDown as Xe, IconCircleFilled as Ze, IconCopy as Qe, IconCopyMinus as $e, IconDotsVertical as et, IconDownload as tt, IconExternalLink as nt, IconEye as rt, IconEyeOff as it, IconFile as at, IconFileDescription as ot, IconFileZip as st, IconFolder as ct, IconFolderPlus as lt, IconInfoCircle as ut, IconMessageCircle as dt, IconPencilMinus as ft, IconPlus as pt, IconSearch as mt, IconTrashX as ht, IconUserX as gt, IconX as _t, IconZoomCancel as vt } from "@tabler/icons-react";
6
6
  import { createPortal as yt } from "react-dom";
@@ -100,7 +100,7 @@ var bt = Object.create, xt = Object.defineProperty, St = Object.getOwnPropertyDe
100
100
  e = !0;
101
101
  };
102
102
  }, [h]);
103
- let D = f(() => {
103
+ let ee = f(() => {
104
104
  if (!h) return !1;
105
105
  let n = h.join("/");
106
106
  return t.some((t) => t.folderPath.join("/") === n ? e.version == null ? !0 : t.version === e.version : !1);
@@ -108,14 +108,14 @@ var bt = Object.create, xt = Object.defineProperty, St = Object.getOwnPropertyDe
108
108
  t,
109
109
  e.version,
110
110
  h
111
- ]), O = o(async (e, t) => {
111
+ ]), D = o(async (e, t) => {
112
112
  p((n) => Lt(n, e, t));
113
113
  try {
114
114
  await i?.(e, t);
115
115
  } catch {
116
116
  p((n) => Rt(n, e, t)), b(!0);
117
117
  }
118
- }, [i]), k = o(async () => {
118
+ }, [i]), O = o(async () => {
119
119
  if (!h) return !1;
120
120
  v(!0), b(!1);
121
121
  try {
@@ -132,20 +132,20 @@ var bt = Object.create, xt = Object.defineProperty, St = Object.getOwnPropertyDe
132
132
  s,
133
133
  x,
134
134
  h
135
- ]), ee = o(() => {
135
+ ]), te = o(() => {
136
136
  p(n), g(void 0), b(!1), S([]), E(!1);
137
137
  }, [n]);
138
138
  return {
139
139
  folderItems: d,
140
140
  selectedFolderPath: h,
141
141
  setSelectedFolderPath: g,
142
- handleCreateFolder: O,
143
- hasExistingPublicationInFolder: D,
142
+ handleCreateFolder: D,
143
+ hasExistingPublicationInFolder: ee,
144
144
  hasWriteAccess: h ? r(h) : !0,
145
145
  isSubmitting: _,
146
146
  hasSubmitError: y,
147
- handleSubmit: k,
148
- reset: ee,
147
+ handleSubmit: O,
148
+ reset: te,
149
149
  rules: x,
150
150
  setRules: S,
151
151
  isRulesLoading: C,
@@ -544,7 +544,7 @@ var pn = /* @__PURE__ */ ln((/* @__PURE__ */ on(((e, t) => {
544
544
  "subgrid",
545
545
  F,
546
546
  P
547
- ], D = () => [
547
+ ], ee = () => [
548
548
  "auto",
549
549
  { span: [
550
550
  "full",
@@ -555,19 +555,19 @@ var pn = /* @__PURE__ */ ln((/* @__PURE__ */ on(((e, t) => {
555
555
  ir,
556
556
  F,
557
557
  P
558
- ], O = () => [
558
+ ], D = () => [
559
559
  ir,
560
560
  "auto",
561
561
  F,
562
562
  P
563
- ], k = () => [
563
+ ], O = () => [
564
564
  "auto",
565
565
  "min",
566
566
  "max",
567
567
  "fr",
568
568
  F,
569
569
  P
570
- ], ee = () => [
570
+ ], te = () => [
571
571
  "start",
572
572
  "end",
573
573
  "center",
@@ -578,7 +578,7 @@ var pn = /* @__PURE__ */ ln((/* @__PURE__ */ on(((e, t) => {
578
578
  "baseline",
579
579
  "center-safe",
580
580
  "end-safe"
581
- ], te = () => [
581
+ ], k = () => [
582
582
  "start",
583
583
  "end",
584
584
  "center",
@@ -945,13 +945,13 @@ var pn = /* @__PURE__ */ ln((/* @__PURE__ */ on(((e, t) => {
945
945
  P
946
946
  ] }],
947
947
  "grid-cols": [{ "grid-cols": E() }],
948
- "col-start-end": [{ col: D() }],
949
- "col-start": [{ "col-start": O() }],
950
- "col-end": [{ "col-end": O() }],
948
+ "col-start-end": [{ col: ee() }],
949
+ "col-start": [{ "col-start": D() }],
950
+ "col-end": [{ "col-end": D() }],
951
951
  "grid-rows": [{ "grid-rows": E() }],
952
- "row-start-end": [{ row: D() }],
953
- "row-start": [{ "row-start": O() }],
954
- "row-end": [{ "row-end": O() }],
952
+ "row-start-end": [{ row: ee() }],
953
+ "row-start": [{ "row-start": D() }],
954
+ "row-end": [{ "row-end": D() }],
955
955
  "grid-flow": [{ "grid-flow": [
956
956
  "row",
957
957
  "col",
@@ -959,24 +959,24 @@ var pn = /* @__PURE__ */ ln((/* @__PURE__ */ on(((e, t) => {
959
959
  "row-dense",
960
960
  "col-dense"
961
961
  ] }],
962
- "auto-cols": [{ "auto-cols": k() }],
963
- "auto-rows": [{ "auto-rows": k() }],
962
+ "auto-cols": [{ "auto-cols": O() }],
963
+ "auto-rows": [{ "auto-rows": O() }],
964
964
  gap: [{ gap: w() }],
965
965
  "gap-x": [{ "gap-x": w() }],
966
966
  "gap-y": [{ "gap-y": w() }],
967
- "justify-content": [{ justify: [...ee(), "normal"] }],
968
- "justify-items": [{ "justify-items": [...te(), "normal"] }],
969
- "justify-self": [{ "justify-self": ["auto", ...te()] }],
970
- "align-content": [{ content: ["normal", ...ee()] }],
971
- "align-items": [{ items: [...te(), { baseline: ["", "last"] }] }],
967
+ "justify-content": [{ justify: [...te(), "normal"] }],
968
+ "justify-items": [{ "justify-items": [...k(), "normal"] }],
969
+ "justify-self": [{ "justify-self": ["auto", ...k()] }],
970
+ "align-content": [{ content: ["normal", ...te()] }],
971
+ "align-items": [{ items: [...k(), { baseline: ["", "last"] }] }],
972
972
  "align-self": [{ self: [
973
973
  "auto",
974
- ...te(),
974
+ ...k(),
975
975
  { baseline: ["", "last"] }
976
976
  ] }],
977
- "place-content": [{ "place-content": ee() }],
978
- "place-items": [{ "place-items": [...te(), "baseline"] }],
979
- "place-self": [{ "place-self": ["auto", ...te()] }],
977
+ "place-content": [{ "place-content": te() }],
978
+ "place-items": [{ "place-items": [...k(), "baseline"] }],
979
+ "place-self": [{ "place-self": ["auto", ...k()] }],
980
980
  p: [{ p: w() }],
981
981
  px: [{ px: w() }],
982
982
  py: [{ py: w() }],
@@ -2240,24 +2240,24 @@ function la() {
2240
2240
  }
2241
2241
  let x, S = "", C, w = !1, T = 0, E = function() {
2242
2242
  if (T > 0) throw wi("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
2243
- }, D = function(e) {
2243
+ }, ee = function(e) {
2244
2244
  E(), T++;
2245
2245
  try {
2246
2246
  return x.createHTML(e);
2247
2247
  } finally {
2248
2248
  T--;
2249
2249
  }
2250
- }, O = function(e) {
2250
+ }, D = function(e) {
2251
2251
  E(), T++;
2252
2252
  try {
2253
2253
  return x.createScriptURL(e);
2254
2254
  } finally {
2255
2255
  T--;
2256
2256
  }
2257
- }, k = function() {
2257
+ }, O = function() {
2258
2258
  return w ||= (C = oa(u, i), !0), C;
2259
- }, ee = n, te = ee.implementation, ne = ee.createNodeIterator, A = ee.createDocumentFragment, re = ee.getElementsByTagName, ie = r.importNode, j = sa();
2260
- t.isSupported = typeof Jr == "function" && typeof g == "function" && te && te.createHTMLDocument !== void 0;
2259
+ }, te = n, k = te.implementation, ne = te.createNodeIterator, A = te.createDocumentFragment, re = te.getElementsByTagName, ie = r.importNode, j = sa();
2260
+ t.isSupported = typeof Jr == "function" && typeof g == "function" && k && k.createHTMLDocument !== void 0;
2261
2261
  let ae = Wi, oe = Gi, se = Ki, ce = qi, le = Ji, ue = Xi, de = Zi, fe = $i, pe = Yi, me = null, he = Di({}, [
2262
2262
  ...Ni,
2263
2263
  ...Pi,
@@ -2362,11 +2362,11 @@ function la() {
2362
2362
  let t = x;
2363
2363
  x = e.TRUSTED_TYPES_POLICY;
2364
2364
  try {
2365
- S = D("");
2365
+ S = ee("");
2366
2366
  } catch (e) {
2367
2367
  throw x = t, e;
2368
2368
  }
2369
- } else e.TRUSTED_TYPES_POLICY === null ? (x = void 0, S = "") : (x === void 0 && (x = k()), x && typeof S == "string" && (S = D("")));
2369
+ } else e.TRUSTED_TYPES_POLICY === null ? (x = void 0, S = "") : (x === void 0 && (x = O()), x && typeof S == "string" && (S = ee("")));
2370
2370
  $r && $r(e), st = e;
2371
2371
  }, dt = Di({}, [
2372
2372
  ...Pi,
@@ -2475,12 +2475,12 @@ function la() {
2475
2475
  r = t && t[0];
2476
2476
  }
2477
2477
  it === "application/xhtml+xml" && Ye === Je && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
2478
- let i = x ? D(e) : e;
2478
+ let i = x ? ee(e) : e;
2479
2479
  if (Ye === Je) try {
2480
2480
  t = new l().parseFromString(i, it);
2481
2481
  } catch {}
2482
2482
  if (!t || !t.documentElement) {
2483
- t = te.createDocument(Ye, "template", null);
2483
+ t = k.createDocument(Ye, "template", null);
2484
2484
  try {
2485
2485
  t.documentElement.innerHTML = Xe ? S : i;
2486
2486
  } catch {}
@@ -2578,8 +2578,8 @@ function la() {
2578
2578
  return !Ft[di(e)] && Ci(fe, e);
2579
2579
  }, Lt = function(e, t, n, r) {
2580
2580
  if (x && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
2581
- case "TrustedHTML": return D(r);
2582
- case "TrustedScriptURL": return O(r);
2581
+ case "TrustedHTML": return ee(r);
2582
+ case "TrustedScriptURL": return D(r);
2583
2583
  }
2584
2584
  return r;
2585
2585
  }, Rt = function(e, n, r, i) {
@@ -2692,7 +2692,7 @@ function la() {
2692
2692
  }
2693
2693
  } else if (kt(e)) i = Ct("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === ia.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Vt(a);
2694
2694
  else {
2695
- if (!Ne && !Ee && !Oe && e.indexOf("<") === -1) return x && Fe ? D(e) : e;
2695
+ if (!Ne && !Ee && !Oe && e.indexOf("<") === -1) return x && Fe ? ee(e) : e;
2696
2696
  if (i = Ct(e), !i) return Ne ? null : Fe ? S : "";
2697
2697
  }
2698
2698
  i && Me && _t(i.firstChild);
@@ -2713,7 +2713,7 @@ function la() {
2713
2713
  return (ge.shadowroot || ge.shadowrootmode) && (s = ie.call(r, s, !0)), s;
2714
2714
  }
2715
2715
  let d = Oe ? i.outerHTML : i.innerHTML;
2716
- return Oe && me["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Ci(Qi, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), Ee && (d = Tt(d)), x && Fe ? D(d) : d;
2716
+ return Oe && me["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Ci(Qi, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), Ee && (d = Tt(d)), x && Fe ? ee(d) : d;
2717
2717
  }, t.setConfig = function() {
2718
2718
  ut(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ke = !0, Ae = me, je = ge;
2719
2719
  }, t.clearConfig = function() {
@@ -6528,7 +6528,7 @@ function Pd(e, t, n) {
6528
6528
  return i === 45 ? (e.consume(i), r.interrupt ? t : j) : n(i);
6529
6529
  }
6530
6530
  function m(i) {
6531
- return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : O : m) : n(i);
6531
+ return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : D : m) : n(i);
6532
6532
  }
6533
6533
  function h(t) {
6534
6534
  return fs(t) ? (e.consume(t), o = String.fromCharCode(t), g) : n(t);
@@ -6536,12 +6536,12 @@ function Pd(e, t, n) {
6536
6536
  function g(s) {
6537
6537
  if (s === null || s === 47 || s === 62 || ys(s)) {
6538
6538
  let c = s === 47, l = o.toLowerCase();
6539
- return !c && !a && kd.includes(l) ? (i = 1, r.interrupt ? t(s) : O(s)) : Od.includes(o.toLowerCase()) ? (i = 6, c ? (e.consume(s), _) : r.interrupt ? t(s) : O(s)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(s) : a ? v(s) : y(s));
6539
+ return !c && !a && kd.includes(l) ? (i = 1, r.interrupt ? t(s) : D(s)) : Od.includes(o.toLowerCase()) ? (i = 6, c ? (e.consume(s), _) : r.interrupt ? t(s) : D(s)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(s) : a ? v(s) : y(s));
6540
6540
  }
6541
6541
  return s === 45 || ps(s) ? (e.consume(s), o += String.fromCharCode(s), g) : n(s);
6542
6542
  }
6543
6543
  function _(i) {
6544
- return i === 62 ? (e.consume(i), r.interrupt ? t : O) : n(i);
6544
+ return i === 62 ? (e.consume(i), r.interrupt ? t : D) : n(i);
6545
6545
  }
6546
6546
  function v(t) {
6547
6547
  return bs(t) ? (e.consume(t), v) : E(t);
@@ -6568,41 +6568,41 @@ function Pd(e, t, n) {
6568
6568
  return e === 47 || e === 62 || bs(e) ? y(e) : n(e);
6569
6569
  }
6570
6570
  function E(t) {
6571
- return t === 62 ? (e.consume(t), D) : n(t);
6571
+ return t === 62 ? (e.consume(t), ee) : n(t);
6572
+ }
6573
+ function ee(t) {
6574
+ return t === null || L(t) ? D(t) : bs(t) ? (e.consume(t), ee) : n(t);
6572
6575
  }
6573
6576
  function D(t) {
6574
- return t === null || L(t) ? O(t) : bs(t) ? (e.consume(t), D) : n(t);
6577
+ return t === 45 && i === 2 ? (e.consume(t), ne) : t === 60 && i === 1 ? (e.consume(t), A) : t === 62 && i === 4 ? (e.consume(t), ae) : t === 63 && i === 3 ? (e.consume(t), j) : t === 93 && i === 5 ? (e.consume(t), ie) : L(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(jd, oe, O)(t)) : t === null || L(t) ? (e.exit("htmlFlowData"), O(t)) : (e.consume(t), D);
6575
6578
  }
6576
6579
  function O(t) {
6577
- return t === 45 && i === 2 ? (e.consume(t), ne) : t === 60 && i === 1 ? (e.consume(t), A) : t === 62 && i === 4 ? (e.consume(t), ae) : t === 63 && i === 3 ? (e.consume(t), j) : t === 93 && i === 5 ? (e.consume(t), ie) : L(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(jd, oe, k)(t)) : t === null || L(t) ? (e.exit("htmlFlowData"), k(t)) : (e.consume(t), O);
6578
- }
6579
- function k(t) {
6580
- return e.check(Md, ee, oe)(t);
6581
- }
6582
- function ee(t) {
6583
- return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), te;
6580
+ return e.check(Md, te, oe)(t);
6584
6581
  }
6585
6582
  function te(t) {
6586
- return t === null || L(t) ? k(t) : (e.enter("htmlFlowData"), O(t));
6583
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), k;
6584
+ }
6585
+ function k(t) {
6586
+ return t === null || L(t) ? O(t) : (e.enter("htmlFlowData"), D(t));
6587
6587
  }
6588
6588
  function ne(t) {
6589
- return t === 45 ? (e.consume(t), j) : O(t);
6589
+ return t === 45 ? (e.consume(t), j) : D(t);
6590
6590
  }
6591
6591
  function A(t) {
6592
- return t === 47 ? (e.consume(t), o = "", re) : O(t);
6592
+ return t === 47 ? (e.consume(t), o = "", re) : D(t);
6593
6593
  }
6594
6594
  function re(t) {
6595
6595
  if (t === 62) {
6596
6596
  let n = o.toLowerCase();
6597
- return kd.includes(n) ? (e.consume(t), ae) : O(t);
6597
+ return kd.includes(n) ? (e.consume(t), ae) : D(t);
6598
6598
  }
6599
- return fs(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), re) : O(t);
6599
+ return fs(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), re) : D(t);
6600
6600
  }
6601
6601
  function ie(t) {
6602
- return t === 93 ? (e.consume(t), j) : O(t);
6602
+ return t === 93 ? (e.consume(t), j) : D(t);
6603
6603
  }
6604
6604
  function j(t) {
6605
- return t === 62 ? (e.consume(t), ae) : t === 45 && i === 2 ? (e.consume(t), j) : O(t);
6605
+ return t === 62 ? (e.consume(t), ae) : t === 45 && i === 2 ? (e.consume(t), j) : D(t);
6606
6606
  }
6607
6607
  function ae(t) {
6608
6608
  return t === null || L(t) ? (e.exit("htmlFlowData"), oe(t)) : (e.consume(t), ae);
@@ -6692,21 +6692,21 @@ function Rd(e, t, n) {
6692
6692
  return t === 47 ? (e.consume(t), ne) : t === 58 || t === 95 || fs(t) ? (e.consume(t), E) : L(t) ? (o = T, A(t)) : bs(t) ? (e.consume(t), T) : ne(t);
6693
6693
  }
6694
6694
  function E(t) {
6695
- return t === 45 || t === 46 || t === 58 || t === 95 || ps(t) ? (e.consume(t), E) : D(t);
6695
+ return t === 45 || t === 46 || t === 58 || t === 95 || ps(t) ? (e.consume(t), E) : ee(t);
6696
+ }
6697
+ function ee(t) {
6698
+ return t === 61 ? (e.consume(t), D) : L(t) ? (o = ee, A(t)) : bs(t) ? (e.consume(t), ee) : T(t);
6696
6699
  }
6697
6700
  function D(t) {
6698
- return t === 61 ? (e.consume(t), O) : L(t) ? (o = D, A(t)) : bs(t) ? (e.consume(t), D) : T(t);
6701
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, O) : L(t) ? (o = D, A(t)) : bs(t) ? (e.consume(t), D) : (e.consume(t), te);
6699
6702
  }
6700
6703
  function O(t) {
6701
- return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), i = t, k) : L(t) ? (o = O, A(t)) : bs(t) ? (e.consume(t), O) : (e.consume(t), ee);
6704
+ return t === i ? (e.consume(t), i = void 0, k) : t === null ? n(t) : L(t) ? (o = O, A(t)) : (e.consume(t), O);
6702
6705
  }
6703
- function k(t) {
6704
- return t === i ? (e.consume(t), i = void 0, te) : t === null ? n(t) : L(t) ? (o = k, A(t)) : (e.consume(t), k);
6705
- }
6706
- function ee(t) {
6707
- return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || ys(t) ? T(t) : (e.consume(t), ee);
6706
+ function te(t) {
6707
+ return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || ys(t) ? T(t) : (e.consume(t), te);
6708
6708
  }
6709
- function te(e) {
6709
+ function k(e) {
6710
6710
  return e === 47 || e === 62 || ys(e) ? T(e) : n(e);
6711
6711
  }
6712
6712
  function ne(r) {
@@ -8221,7 +8221,7 @@ function wp(e) {
8221
8221
  codeFencedFenceMeta: m,
8222
8222
  codeFlowValue: E,
8223
8223
  codeIndented: c(_),
8224
- codeText: c(te),
8224
+ codeText: c(k),
8225
8225
  codeTextData: E,
8226
8226
  data: E,
8227
8227
  definition: c(),
@@ -8229,16 +8229,16 @@ function wp(e) {
8229
8229
  definitionLabelString: v,
8230
8230
  definitionTitleString: y,
8231
8231
  emphasis: c(),
8232
- hardBreakEscape: c(O),
8233
- hardBreakTrailing: c(O),
8234
- htmlFlow: c(k),
8232
+ hardBreakEscape: c(D),
8233
+ hardBreakTrailing: c(D),
8234
+ htmlFlow: c(O),
8235
8235
  htmlFlowData: E,
8236
- htmlText: c(ee),
8236
+ htmlText: c(te),
8237
8237
  htmlTextData: E,
8238
8238
  image: c(A),
8239
8239
  label: ie,
8240
8240
  labelText: re,
8241
- lineEnding: D,
8241
+ lineEnding: ee,
8242
8242
  link: c(ne),
8243
8243
  listItem: c(),
8244
8244
  listOrdered: c(),
@@ -8449,7 +8449,7 @@ function wp(e) {
8449
8449
  let t = this.stack.pop();
8450
8450
  t.value += this.sliceSerialize(e), t.position.end = Tp(e.end);
8451
8451
  }
8452
- function D(e) {
8452
+ function ee(e) {
8453
8453
  let n = this.stack[this.stack.length - 1];
8454
8454
  if (this.data.atHardBreak) {
8455
8455
  let t = n.children[n.children.length - 1];
@@ -8458,18 +8458,18 @@ function wp(e) {
8458
8458
  }
8459
8459
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(n.type) && (T.call(this, e), E.call(this, e));
8460
8460
  }
8461
- function O() {
8461
+ function D() {
8462
8462
  this.data.atHardBreak = !0;
8463
8463
  }
8464
- function k() {
8464
+ function O() {
8465
8465
  let e = this.resume(), t = this.stack[this.stack.length - 1];
8466
8466
  t.value = e;
8467
8467
  }
8468
- function ee() {
8468
+ function te() {
8469
8469
  let e = this.resume(), t = this.stack[this.stack.length - 1];
8470
8470
  t.value = e;
8471
8471
  }
8472
- function te() {
8472
+ function k() {
8473
8473
  let e = this.resume(), t = this.stack[this.stack.length - 1];
8474
8474
  t.value = e;
8475
8475
  }
@@ -10178,13 +10178,13 @@ var zh = /* @__PURE__ */ on(((e, t) => {
10178
10178
  return S(c), i;
10179
10179
  }
10180
10180
  }
10181
- function D() {
10181
+ function ee() {
10182
10182
  var e = [];
10183
10183
  w(e);
10184
10184
  for (var t; t = E();) t !== !1 && (e.push(t), w(e));
10185
10185
  return e;
10186
10186
  }
10187
- return C(), D();
10187
+ return C(), ee();
10188
10188
  }
10189
10189
  function _(e) {
10190
10190
  return e ? e.replace(l, p) : p;
@@ -28414,12 +28414,12 @@ var wx = function(e, t, n) {
28414
28414
  n && (w *= r.sizeMultiplier);
28415
28415
  var T = C / 2 - w, E = [];
28416
28416
  if (u.length > 0) {
28417
- var D = C - m - v, O = Math.round(C * 1e3), k = hv(u, Math.round(D * 1e3)), ee = new Pv(u, k), te = z(d / 1e3), ne = z(O / 1e3), A = Hy([], [new Nv([ee], {
28418
- width: te,
28417
+ var ee = C - m - v, D = Math.round(C * 1e3), O = hv(u, Math.round(ee * 1e3)), te = new Pv(u, O), k = z(d / 1e3), ne = z(D / 1e3), A = Hy([], [new Nv([te], {
28418
+ width: k,
28419
28419
  height: ne,
28420
- viewBox: "0 0 " + d + " " + O
28420
+ viewBox: "0 0 " + d + " " + D
28421
28421
  })], r);
28422
- A.height = O / 1e3, A.style.width = te, A.style.height = ne, E.push({
28422
+ A.height = D / 1e3, A.style.width = k, A.style.height = ne, E.push({
28423
28423
  type: "elem",
28424
28424
  elem: A
28425
28425
  });
@@ -29185,29 +29185,29 @@ var _S = function(e, t) {
29185
29185
  var w = e.rowGaps[n], T = 0;
29186
29186
  w && (T = xv(w, t), T > 0 && (T += g, x < T && (x = T), T = 0)), e.addJot && n < e.body.length - 1 && (x += p), S.height = b, S.depth = x, _ += b, S.pos = _, _ += x + T, s[n] = S, v(a[n + 1]);
29187
29187
  }
29188
- var E = _ / 2 + t.fontMetrics().axisHeight, D = e.cols || [], O = [], k, ee, te = [];
29188
+ var E = _ / 2 + t.fontMetrics().axisHeight, ee = e.cols || [], D = [], O, te, k = [];
29189
29189
  if (e.tags && e.tags.some((e) => e)) for (n = 0; n < i; ++n) {
29190
29190
  var ne = s[n], A = ne.pos - E, re = e.tags[n], ie = void 0;
29191
- ie = re === !0 ? J(["eqn-num"], [], t) : re === !1 ? J([], [], t) : J([], hb(re, t, !0), t), ie.depth = ne.depth, ie.height = ne.height, te.push({
29191
+ ie = re === !0 ? J(["eqn-num"], [], t) : re === !1 ? J([], [], t) : J([], hb(re, t, !0), t), ie.depth = ne.depth, ie.height = ne.height, k.push({
29192
29192
  type: "elem",
29193
29193
  elem: ie,
29194
29194
  shift: A
29195
29195
  });
29196
29196
  }
29197
- for (r = 0, ee = 0; r < o || ee < D.length; ++r, ++ee) {
29198
- for (var j = D[ee], ae = !0; (oe = j)?.type === "separator";) {
29197
+ for (r = 0, te = 0; r < o || te < ee.length; ++r, ++te) {
29198
+ for (var j = ee[te], ae = !0; (oe = j)?.type === "separator";) {
29199
29199
  var oe;
29200
- if (ae || (k = J(["arraycolsep"], []), k.style.width = z(t.fontMetrics().doubleRuleSep), O.push(k)), j.separator === "|" || j.separator === ":") {
29200
+ if (ae || (O = J(["arraycolsep"], []), O.style.width = z(t.fontMetrics().doubleRuleSep), D.push(O)), j.separator === "|" || j.separator === ":") {
29201
29201
  var se = j.separator === "|" ? "solid" : "dashed", ce = J(["vertical-separator"], [], t);
29202
29202
  ce.style.height = z(_), ce.style.borderRightWidth = z(l), ce.style.borderRightStyle = se, ce.style.margin = "0 " + z(-l / 2);
29203
29203
  var le = _ - E;
29204
- le && (ce.style.verticalAlign = z(-le)), O.push(ce);
29204
+ le && (ce.style.verticalAlign = z(-le)), D.push(ce);
29205
29205
  } else throw new R("Invalid separator type: " + j.separator);
29206
- ee++, j = D[ee], ae = !1;
29206
+ te++, j = ee[te], ae = !1;
29207
29207
  }
29208
29208
  if (!(r >= o)) {
29209
29209
  var ue = void 0;
29210
- (r > 0 || e.hskipBeforeAndAfter) && (ue = j?.pregap ?? d, ue !== 0 && (k = J(["arraycolsep"], []), k.style.width = z(ue), O.push(k)));
29210
+ (r > 0 || e.hskipBeforeAndAfter) && (ue = j?.pregap ?? d, ue !== 0 && (O = J(["arraycolsep"], []), O.style.width = z(ue), D.push(O)));
29211
29211
  var de = [];
29212
29212
  for (n = 0; n < i; ++n) {
29213
29213
  var fe = s[n], pe = fe.cells[r];
@@ -29224,10 +29224,10 @@ var _S = function(e, t) {
29224
29224
  positionType: "individualShift",
29225
29225
  children: de
29226
29226
  }), ge = J(["col-align-" + (j?.align || "c")], [he]);
29227
- O.push(ge), (r < o - 1 || e.hskipBeforeAndAfter) && (ue = j?.postgap ?? d, ue !== 0 && (k = J(["arraycolsep"], []), k.style.width = z(ue), O.push(k)));
29227
+ D.push(ge), (r < o - 1 || e.hskipBeforeAndAfter) && (ue = j?.postgap ?? d, ue !== 0 && (O = J(["arraycolsep"], []), O.style.width = z(ue), D.push(O)));
29228
29228
  }
29229
29229
  }
29230
- var _e = J(["mtable"], O);
29230
+ var _e = J(["mtable"], D);
29231
29231
  if (c.length > 0) {
29232
29232
  for (var ve = Uy("hline", t, l), ye = Uy("hdashline", t, l), be = [{
29233
29233
  type: "elem",
@@ -29250,10 +29250,10 @@ var _S = function(e, t) {
29250
29250
  children: be
29251
29251
  });
29252
29252
  }
29253
- if (te.length === 0) return J(["mord"], [_e], t);
29253
+ if (k.length === 0) return J(["mord"], [_e], t);
29254
29254
  var Ce = J(["tag"], [Jy({
29255
29255
  positionType: "individualShift",
29256
- children: te
29256
+ children: k
29257
29257
  })], t);
29258
29258
  return Gy([_e, Ce]);
29259
29259
  }, vS = {
@@ -33884,7 +33884,7 @@ function sT(e, n) {
33884
33884
  var i = r.language, a = r.children, o = r.style, s = o === void 0 ? n : o, c = r.customStyle, l = c === void 0 ? {} : c, u = r.codeTagProps, d = u === void 0 ? {
33885
33885
  className: i ? `language-${i}` : void 0,
33886
33886
  style: qw(qw({}, s["code[class*=\"language-\"]"]), s[`code[class*="language-${i}"]`])
33887
- } : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, D = E === void 0 ? {} : E, O = r.renderer, k = r.PreTag, ee = k === void 0 ? "pre" : k, te = r.CodeTag, ne = te === void 0 ? "code" : te, A = r.code, re = A === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : A, ie = r.astGenerator, j = Cw(r, Gw);
33887
+ } : u, f = r.useInlineStyles, p = f === void 0 ? !0 : f, m = r.showLineNumbers, h = m === void 0 ? !1 : m, g = r.showInlineLineNumbers, _ = g === void 0 ? !0 : g, v = r.startingLineNumber, y = v === void 0 ? 1 : v, b = r.lineNumberContainerStyle, x = r.lineNumberStyle, S = x === void 0 ? {} : x, C = r.wrapLines, w = r.wrapLongLines, T = w === void 0 ? !1 : w, E = r.lineProps, ee = E === void 0 ? {} : E, D = r.renderer, O = r.PreTag, te = O === void 0 ? "pre" : O, k = r.CodeTag, ne = k === void 0 ? "code" : k, A = r.code, re = A === void 0 ? (Array.isArray(a) ? a[0] : a) || "" : A, ie = r.astGenerator, j = Cw(r, Gw);
33888
33888
  ie ||= e;
33889
33889
  var ae = h ? /*#__PURE__*/ t.createElement(Zw, {
33890
33890
  containerStyle: b,
@@ -33896,8 +33896,8 @@ function sT(e, n) {
33896
33896
  className: j.className ? `${se} ${j.className}` : se,
33897
33897
  style: Object.assign({}, l)
33898
33898
  });
33899
- if (T ? d.style = qw({ whiteSpace: "pre-wrap" }, d.style) : d.style = qw({ whiteSpace: "pre" }, d.style), !ie) return /*#__PURE__*/ t.createElement(ee, ce, ae, /*#__PURE__*/ t.createElement(ne, d, re));
33900
- (C === void 0 && O || T) && (C = !0), O ||= iT;
33899
+ if (T ? d.style = qw({ whiteSpace: "pre-wrap" }, d.style) : d.style = qw({ whiteSpace: "pre" }, d.style), !ie) return /*#__PURE__*/ t.createElement(te, ce, ae, /*#__PURE__*/ t.createElement(ne, d, re));
33900
+ (C === void 0 && D || T) && (C = !0), D ||= iT;
33901
33901
  var le = [{
33902
33902
  type: "text",
33903
33903
  value: re
@@ -33908,8 +33908,8 @@ function sT(e, n) {
33908
33908
  defaultCodeValue: le
33909
33909
  });
33910
33910
  ue.language === null && (ue.value = le);
33911
- var de = y + (re.match(/\n/g)?.length ?? 0), fe = rT(ue, C, D, h, _, y, de, S, T);
33912
- return /*#__PURE__*/ t.createElement(ee, ce, /*#__PURE__*/ t.createElement(ne, d, !_ && ae, O({
33911
+ var de = y + (re.match(/\n/g)?.length ?? 0), fe = rT(ue, C, ee, h, _, y, de, S, T);
33912
+ return /*#__PURE__*/ t.createElement(te, ce, /*#__PURE__*/ t.createElement(ne, d, !_ && ae, D({
33913
33913
  rows: fe,
33914
33914
  stylesheet: s,
33915
33915
  useInlineStyles: p
@@ -34178,17 +34178,17 @@ function CT(e, t, n, r, i, a) {
34178
34178
  for (var w = g; w !== t.tail && (C < S || typeof w.value == "string"); w = w.next) y++, C += w.value.length;
34179
34179
  y--, v = e.slice(_, C), b.index -= _;
34180
34180
  } else if (b = ST(h, 0, v, d), !b) continue;
34181
- var x = b.index, T = b[0], E = v.slice(0, x), D = v.slice(x + T.length), O = _ + v.length;
34182
- a && O > a.reach && (a.reach = O);
34183
- var k = g.prev;
34184
- E && (k = TT(t, k, E), _ += E.length), ET(t, k, y);
34185
- var ee = new xT(o, u ? bT.tokenize(T, u) : T, p, T);
34186
- if (g = TT(t, k, ee), D && TT(t, g, D), y > 1) {
34187
- var te = {
34181
+ var x = b.index, T = b[0], E = v.slice(0, x), ee = v.slice(x + T.length), D = _ + v.length;
34182
+ a && D > a.reach && (a.reach = D);
34183
+ var O = g.prev;
34184
+ E && (O = TT(t, O, E), _ += E.length), ET(t, O, y);
34185
+ var te = new xT(o, u ? bT.tokenize(T, u) : T, p, T);
34186
+ if (g = TT(t, O, te), ee && TT(t, g, ee), y > 1) {
34187
+ var k = {
34188
34188
  cause: o + "," + c,
34189
- reach: O
34189
+ reach: D
34190
34190
  };
34191
- CT(e, t, n, g.prev, _, te), a && te.reach > a.reach && (a.reach = te.reach);
34191
+ CT(e, t, n, g.prev, _, k), a && k.reach > a.reach && (a.reach = k.reach);
34192
34192
  }
34193
34193
  }
34194
34194
  }
@@ -36382,7 +36382,7 @@ function pE(e) {
36382
36382
  punctuation: /[:,]/
36383
36383
  }
36384
36384
  } });
36385
- var D = ":[^}\\r\\n]+", O = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), k = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [O, D]), ee = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), te = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [ee, D]);
36385
+ var ee = ":[^}\\r\\n]+", D = r(t("[^\"'/()]|<<0>>|\\(<<self>>*\\)", [C]), 2), O = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [D, ee]), te = r(t("[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)", [S]), 2), k = t("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}", [te, ee]);
36386
36386
  function ne(t, r) {
36387
36387
  return {
36388
36388
  interpolation: {
@@ -36390,7 +36390,7 @@ function pE(e) {
36390
36390
  lookbehind: !0,
36391
36391
  inside: {
36392
36392
  "format-string": {
36393
- pattern: n("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [r, D]),
36393
+ pattern: n("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)", [r, ee]),
36394
36394
  lookbehind: !0,
36395
36395
  inside: { punctuation: /^:/ }
36396
36396
  },
@@ -36407,15 +36407,15 @@ function pE(e) {
36407
36407
  }
36408
36408
  e.languages.insertBefore("csharp", "string", {
36409
36409
  "interpolation-string": [{
36410
- pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [k]),
36410
+ pattern: n("(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"", [O]),
36411
36411
  lookbehind: !0,
36412
36412
  greedy: !0,
36413
- inside: ne(k, O)
36413
+ inside: ne(O, D)
36414
36414
  }, {
36415
- pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [te]),
36415
+ pattern: n("(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"", [k]),
36416
36416
  lookbehind: !0,
36417
36417
  greedy: !0,
36418
- inside: ne(te, ee)
36418
+ inside: ne(k, te)
36419
36419
  }],
36420
36420
  char: {
36421
36421
  pattern: RegExp(y),
@@ -49764,7 +49764,7 @@ var pj = 2e3, mj = (e, t = pj) => {
49764
49764
  });
49765
49765
  }), Oj = ({ checked: e = !1 }) => /* @__PURE__ */ M("span", {
49766
49766
  className: "me-1.5 inline-flex align-middle",
49767
- children: /* @__PURE__ */ M(D, {
49767
+ children: /* @__PURE__ */ M(ee, {
49768
49768
  id: l(),
49769
49769
  checked: e,
49770
49770
  disabled: !0
@@ -49776,10 +49776,10 @@ var pj = 2e3, mj = (e, t = pj) => {
49776
49776
  ], Aj = [[FC, {
49777
49777
  output: "mathml",
49778
49778
  strict: !1
49779
- }]], jj = {}, Mj = { li: ({ children: e }) => /* @__PURE__ */ M("li", {
49779
+ }]], jj = [], Mj = {}, Nj = { li: ({ children: e }) => /* @__PURE__ */ M("li", {
49780
49780
  className: "mb-1.5 last:mb-0",
49781
49781
  children: e
49782
- }) }, Nj = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(Nj).join("") : "", Pj = (e, t, n, r, i, a) => ({
49782
+ }) }, Pj = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(Pj).join("") : "", Fj = (e, t, n, r, i, a) => ({
49783
49783
  h1: ({ children: t }) => /* @__PURE__ */ M("h1", {
49784
49784
  className: e.h1,
49785
49785
  children: t
@@ -49865,7 +49865,7 @@ var pj = 2e3, mj = (e, t = pj) => {
49865
49865
  children: t
49866
49866
  }),
49867
49867
  tr: ({ children: e, node: t }) => {
49868
- let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => Nj(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
49868
+ let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => Pj(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
49869
49869
  return /* @__PURE__ */ M("tr", {
49870
49870
  className: Br(Ej.row, a && Ej.sectionRow),
49871
49871
  children: e
@@ -49880,46 +49880,46 @@ var pj = 2e3, mj = (e, t = pj) => {
49880
49880
  className: Br("max-w-96 whitespace-normal break-words border-b px-3 py-2.5 align-top [overflow-wrap:anywhere]", Ej.rowDivider, e.tableBodyCell, e.tableCell),
49881
49881
  children: t
49882
49882
  })
49883
- }), Fj = a(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = jj, components: i, thinkingLabel: a = "Thinking", codeBlockCopyLabel: o, codeBlockCopiedLabel: s, codeBlockTheme: c, colors: l, tableScrollRegionAriaLabel: u }) => {
49884
- let d = dw(e, t, n), p = f(() => xw(d), [d]), m = Vr({
49885
- "--cm-thinking-inverted": l?.thinkingPrimary,
49886
- "--cm-thinking-secondary": l?.thinkingSecondary,
49887
- "--cm-markdown-border": l?.border,
49888
- "--cm-blockquote-border": l?.blockquoteBorder,
49889
- "--cm-blockquote-text": l?.blockquoteText,
49890
- "--cm-link-text": l?.linkText,
49891
- "--cm-link-focus": l?.linkFocus,
49892
- "--cm-table-header-text": l?.tableHeaderText,
49893
- "--cm-h6-text": l?.headingSixText,
49894
- "--cm-code-inline-bg": l?.inlineCodeBackground,
49895
- "--cm-code-inline-text": l?.inlineCodeText
49896
- }), h = f(() => ({
49897
- ...Pj(r, t, o, s, c, u),
49898
- ...Mj,
49883
+ }), Ij = a(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = Mj, components: i, rehypePlugins: a = jj, thinkingLabel: o = "Thinking", codeBlockCopyLabel: s, codeBlockCopiedLabel: c, codeBlockTheme: l, colors: u, tableScrollRegionAriaLabel: d }) => {
49884
+ let p = dw(e, t, n), m = f(() => xw(p), [p]), h = Vr({
49885
+ "--cm-thinking-inverted": u?.thinkingPrimary,
49886
+ "--cm-thinking-secondary": u?.thinkingSecondary,
49887
+ "--cm-markdown-border": u?.border,
49888
+ "--cm-blockquote-border": u?.blockquoteBorder,
49889
+ "--cm-blockquote-text": u?.blockquoteText,
49890
+ "--cm-link-text": u?.linkText,
49891
+ "--cm-link-focus": u?.linkFocus,
49892
+ "--cm-table-header-text": u?.tableHeaderText,
49893
+ "--cm-h6-text": u?.headingSixText,
49894
+ "--cm-code-inline-bg": u?.inlineCodeBackground,
49895
+ "--cm-code-inline-text": u?.inlineCodeText
49896
+ }), g = f(() => ({
49897
+ ...Fj(r, t, s, c, l, d),
49898
+ ...Nj,
49899
49899
  ...i
49900
49900
  }), [
49901
49901
  r,
49902
49902
  t,
49903
- o,
49904
49903
  s,
49905
49904
  c,
49906
- u,
49905
+ l,
49906
+ d,
49907
49907
  i
49908
49908
  ]);
49909
- return t && !d ? /* @__PURE__ */ M("span", {
49909
+ return t && !p ? /* @__PURE__ */ M("span", {
49910
49910
  className: Cj.thinking,
49911
- style: m,
49912
- children: a
49911
+ style: h,
49912
+ children: o
49913
49913
  }) : /* @__PURE__ */ M("div", {
49914
- style: m,
49914
+ style: h,
49915
49915
  children: /* @__PURE__ */ M(xg, {
49916
49916
  remarkPlugins: kj,
49917
- rehypePlugins: Aj,
49918
- components: h,
49919
- children: p
49917
+ rehypePlugins: [...Aj, ...a],
49918
+ components: g,
49919
+ children: m
49920
49920
  })
49921
49921
  });
49922
- }), Ij = {
49922
+ }), Lj = {
49923
49923
  h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
49924
49924
  h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
49925
49925
  h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
@@ -49934,7 +49934,7 @@ var pj = 2e3, mj = (e, t = pj) => {
49934
49934
  link: "break-words [overflow-wrap:anywhere]",
49935
49935
  tableWrapper: "my-4"
49936
49936
  };
49937
- a(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ M(Fj, {
49937
+ a(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ M(Ij, {
49938
49938
  content: e,
49939
49939
  isStreaming: t,
49940
49940
  thinkingLabel: n,
@@ -49942,13 +49942,13 @@ a(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyL
49942
49942
  codeBlockCopyLabel: i,
49943
49943
  codeBlockCopiedLabel: a,
49944
49944
  codeBlockTheme: o,
49945
- classNames: Ij
49945
+ classNames: Lj
49946
49946
  }));
49947
- var Lj = {
49947
+ var Rj = {
49948
49948
  container: "_container_1kcxu_2",
49949
49949
  icon: "_icon_1kcxu_25",
49950
49950
  input: "_input_1kcxu_29"
49951
- }, Rj = ({ value: e, onChange: t, labels: n, iconSize: r = T.MD, iconStrokeWidth: i, styles: a }) => {
49951
+ }, zj = ({ value: e, onChange: t, labels: n, iconSize: r = T.MD, iconStrokeWidth: i, styles: a }) => {
49952
49952
  let { placeholder: o = "Search", ariaLabel: s, clearLabel: c = "Clear search" } = n ?? {}, { colors: l, containerClassName: u, iconClassName: d, inputClassName: f, clearButtonClassName: p } = a ?? {}, m = s ?? o;
49953
49953
  return /* @__PURE__ */ M("div", {
49954
49954
  role: "search",
@@ -49960,17 +49960,17 @@ var Lj = {
49960
49960
  "--search-bar-placeholder": l?.placeholder
49961
49961
  }),
49962
49962
  children: /* @__PURE__ */ N("div", {
49963
- className: Br(Lj.container, "flex cursor-text items-center gap-3 rounded-xl border px-4 py-2 transition-[border-color,box-shadow] duration-150 ease-in-out", u),
49963
+ className: Br(Rj.container, "flex cursor-text items-center gap-3 rounded-xl border px-4 py-2 transition-[border-color,box-shadow] duration-150 ease-in-out", u),
49964
49964
  children: [
49965
49965
  /* @__PURE__ */ M(mt, {
49966
49966
  size: r,
49967
49967
  stroke: i,
49968
- className: Br(Lj.icon, "shrink-0 transition-colors duration-150 ease-in-out", d),
49968
+ className: Br(Rj.icon, "shrink-0 transition-colors duration-150 ease-in-out", d),
49969
49969
  "aria-hidden": !0
49970
49970
  }),
49971
49971
  /* @__PURE__ */ M("input", {
49972
49972
  type: "text",
49973
- className: Br(Lj.input, "dial-small-text min-w-0 flex-1 border-0 p-0 outline-none", f),
49973
+ className: Br(Rj.input, "dial-small-text min-w-0 flex-1 border-0 p-0 outline-none", f),
49974
49974
  value: e,
49975
49975
  placeholder: o,
49976
49976
  "aria-label": m,
@@ -49984,14 +49984,14 @@ var Lj = {
49984
49984
  children: /* @__PURE__ */ M(_t, {
49985
49985
  size: r,
49986
49986
  stroke: i,
49987
- className: Br(Lj.icon, d),
49987
+ className: Br(Rj.icon, d),
49988
49988
  "aria-hidden": !0
49989
49989
  })
49990
49990
  })
49991
49991
  ]
49992
49992
  })
49993
49993
  });
49994
- }, zj = {
49994
+ }, Bj = {
49995
49995
  tabContainer: "_tabContainer_1917c_1",
49996
49996
  tabActive: "_tabActive_1917c_19"
49997
49997
  };
@@ -50015,7 +50015,7 @@ a(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
50015
50015
  label: e.label,
50016
50016
  selected: r,
50017
50017
  onClick: () => n(e.id),
50018
- className: Br("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, zj.tabContainer, r && zj.tabActive)
50018
+ className: Br("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, Bj.tabContainer, r && Bj.tabActive)
50019
50019
  })
50020
50020
  }, e.id);
50021
50021
  })
@@ -50023,26 +50023,26 @@ a(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
50023
50023
  });
50024
50024
  //#endregion
50025
50025
  //#region ../ai-dial-kit/src/components/TagInput/TagInput.tsx
50026
- var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50026
+ var Vj = (e) => /* @__PURE__ */ M(me, { ...e }), Hj = {
50027
50027
  dialog: "_dialog_v6cml_1",
50028
50028
  label: "_label_v6cml_11",
50029
50029
  error: "_error_v6cml_15"
50030
- }, Hj = 20, Uj = 200, Wj = 8, Gj = (e) => {
50030
+ }, Uj = 20, Wj = 200, Gj = 8, Kj = (e) => {
50031
50031
  let t = e.trim();
50032
- if (t.length === 0 || t.length > Uj) return !1;
50032
+ if (t.length === 0 || t.length > Wj) return !1;
50033
50033
  try {
50034
50034
  return new RegExp(t) instanceof RegExp;
50035
50035
  } catch {
50036
50036
  return !1;
50037
50037
  }
50038
- }, Kj = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = Hj, labels: a = {}, labelClassName: o = "dial-small-semi-text", errorClassName: s = "dial-small-text", colors: u }) => {
50038
+ }, qj = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = Uj, labels: a = {}, labelClassName: o = "dial-small-semi-text", errorClassName: s = "dial-small-text", colors: u }) => {
50039
50039
  let d = Vr({
50040
50040
  "--pare-mobile-bg": u?.mobileBackground,
50041
50041
  "--pare-border": u?.border,
50042
50042
  "--pare-bg": u?.background,
50043
50043
  "--pare-label-text": u?.labelText,
50044
50044
  "--pare-error-text": u?.errorText
50045
- }), { sourceLabel: h = "Source", sourcePlaceholder: g = "Select...", functionLabel: _ = "Function", equalOptionLabel: v = "Equal", containOptionLabel: y = "Contain", regexOptionLabel: b = "Regex", targetsLabel: x = "Targets", targetsPlaceholder: S = "Add a target", patternLabel: C = "Pattern", patternPlaceholder: w = "Enter a regular expression", invalidRegexError: T = "Enter a valid regular expression.", saveLabel: E = "Save", cancelLabel: D = "Cancel", dialogAriaLabel: O = "Add access rule" } = a, k = l(), ee = l(), te = l(), ne = p(null);
50045
+ }), { sourceLabel: h = "Source", sourcePlaceholder: g = "Select...", functionLabel: _ = "Function", equalOptionLabel: v = "Equal", containOptionLabel: y = "Contain", regexOptionLabel: b = "Regex", targetsLabel: x = "Targets", targetsPlaceholder: S = "Add a target", patternLabel: C = "Pattern", patternPlaceholder: w = "Enter a regular expression", invalidRegexError: T = "Enter a valid regular expression.", saveLabel: E = "Save", cancelLabel: ee = "Cancel", dialogAriaLabel: D = "Add access rule" } = a, O = l(), te = l(), k = l(), ne = p(null);
50046
50046
  c(() => {
50047
50047
  ne.current?.focus();
50048
50048
  }, []);
@@ -50066,33 +50066,33 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50066
50066
  v,
50067
50067
  y,
50068
50068
  b
50069
- ]), pe = ie === Mt.Regex, me = Gj(le), he = A != null && ie != null && (pe ? me : ae.length > 0);
50069
+ ]), pe = ie === Mt.Regex, me = Kj(le), he = A != null && ie != null && (pe ? me : ae.length > 0);
50070
50070
  return /* @__PURE__ */ N("div", {
50071
50071
  ref: ne,
50072
50072
  role: "dialog",
50073
50073
  "aria-modal": "true",
50074
- "aria-label": O,
50074
+ "aria-label": D,
50075
50075
  tabIndex: -1,
50076
50076
  onKeyDown: (e) => {
50077
50077
  e.key === "Escape" && (e.stopPropagation(), n());
50078
50078
  },
50079
50079
  style: d,
50080
- className: Br("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:border desktop:p-3", Vj.dialog),
50080
+ className: Br("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:border desktop:p-3", Hj.dialog),
50081
50081
  children: [
50082
50082
  /* @__PURE__ */ M(Le, {
50083
- id: ee,
50083
+ id: te,
50084
50084
  labelProps: { label: h },
50085
50085
  options: de,
50086
50086
  value: A,
50087
50087
  onChange: (e) => re(Array.isArray(e) ? e[0] : e),
50088
50088
  placeholder: g,
50089
- searchable: e.length > Wj,
50089
+ searchable: e.length > Gj,
50090
50090
  searchPlaceholder: g,
50091
50091
  disabled: r
50092
50092
  }),
50093
50093
  /* @__PURE__ */ M(Le, {
50094
50094
  labelProps: { label: _ },
50095
- id: te,
50095
+ id: k,
50096
50096
  options: fe,
50097
50097
  value: ie,
50098
50098
  onChange: (e) => {
@@ -50102,20 +50102,20 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50102
50102
  disabled: r
50103
50103
  }),
50104
50104
  pe ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M(Ee, {
50105
- id: `${k}-input`,
50105
+ id: `${O}-input`,
50106
50106
  labelProps: { label: C },
50107
50107
  placeholder: w,
50108
50108
  value: le,
50109
50109
  onChange: (e) => ue(e ?? ""),
50110
50110
  invalid: le.length > 0 && !me,
50111
- "aria-describedby": le.length > 0 && !me ? k : void 0,
50111
+ "aria-describedby": le.length > 0 && !me ? O : void 0,
50112
50112
  disabled: r
50113
50113
  }), le.length > 0 && !me && /* @__PURE__ */ M("span", {
50114
- id: k,
50114
+ id: O,
50115
50115
  role: "alert",
50116
- className: Br("mt-1 block", s, Vj.error),
50116
+ className: Br("mt-1 block", s, Hj.error),
50117
50117
  children: T
50118
- })] }) : /* @__PURE__ */ M(Bj, {
50118
+ })] }) : /* @__PURE__ */ M(Vj, {
50119
50119
  elementId: "publish-access-rule-targets",
50120
50120
  label: x,
50121
50121
  placeholder: S,
@@ -50133,7 +50133,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50133
50133
  /* @__PURE__ */ N("div", {
50134
50134
  className: "mt-auto flex justify-end gap-2 desktop:mt-2",
50135
50135
  children: [/* @__PURE__ */ M(Oe, {
50136
- label: D,
50136
+ label: ee,
50137
50137
  onClick: n,
50138
50138
  disabled: r
50139
50139
  }), /* @__PURE__ */ M(Pe, {
@@ -50150,36 +50150,36 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50150
50150
  })
50151
50151
  ]
50152
50152
  });
50153
- }, qj = {
50153
+ }, Jj = {
50154
50154
  ruleRow: "_ruleRow_mgthh_1",
50155
50155
  heading: "_heading_mgthh_6",
50156
50156
  loading: "_loading_mgthh_10",
50157
50157
  ruleText: "_ruleText_mgthh_14"
50158
- }, Jj = 20, Yj = (e, t) => e === Mt.Equal ? t.equal : e === Mt.Contain ? t.contain : t.regex, Xj = ({ rules: e, onRulesChange: t, sourceOptions: n, disabled: r = !1, isLoading: i = !1, hasLoadError: a = !1, maxRules: o = Jj, maxTargetsPerRule: s, labels: l = {}, headingClassName: u = "dial-body-semi-text", loadingClassName: d = "dial-small-text", ruleTextClassName: f = "dial-small-text", colors: h }) => {
50158
+ }, Yj = 20, Xj = (e, t) => e === Mt.Equal ? t.equal : e === Mt.Contain ? t.contain : t.regex, Zj = ({ rules: e, onRulesChange: t, sourceOptions: n, disabled: r = !1, isLoading: i = !1, hasLoadError: a = !1, maxRules: o = Yj, maxTargetsPerRule: s, labels: l = {}, headingClassName: u = "dial-body-semi-text", loadingClassName: d = "dial-small-text", ruleTextClassName: f = "dial-small-text", colors: h }) => {
50159
50159
  let g = Vr({
50160
50160
  "--par-rule-border": h?.ruleBorder,
50161
50161
  "--par-rule-bg": h?.ruleBackground,
50162
50162
  "--par-heading-text": h?.headingText,
50163
50163
  "--par-loading-text": h?.loadingText,
50164
50164
  "--par-rule-text": h?.ruleText
50165
- }), { heading: _ = "Allow access if all match", addRuleLabel: v = "Add rule", clearAllLabel: y = "Clear all", orSeparatorLabel: b = "Or", removeRuleAriaLabelTemplate: x = "Remove rule for {source}: {targets}", equalFunctionLabel: S = "Equal", containFunctionLabel: C = "Contain", regexFunctionLabel: w = "Regex", loadingLabel: E = "Loading existing rules…", loadErrorLabel: D = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: O = "Rule added.", ruleRemovedAnnouncement: k = "Rule removed.", rulesClearedAnnouncement: ee = "All rules cleared.", rulesLoadedAnnouncement: te = "Existing rules loaded for the selected folder.", editorLabels: ne } = l, [A, re] = m(!1), [ie, j] = m(""), ae = p(null), oe = p(i);
50165
+ }), { heading: _ = "Allow access if all match", addRuleLabel: v = "Add rule", clearAllLabel: y = "Clear all", orSeparatorLabel: b = "Or", removeRuleAriaLabelTemplate: x = "Remove rule for {source}: {targets}", equalFunctionLabel: S = "Equal", containFunctionLabel: C = "Contain", regexFunctionLabel: w = "Regex", loadingLabel: E = "Loading existing rules…", loadErrorLabel: ee = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: D = "Rule added.", ruleRemovedAnnouncement: O = "Rule removed.", rulesClearedAnnouncement: te = "All rules cleared.", rulesLoadedAnnouncement: k = "Existing rules loaded for the selected folder.", editorLabels: ne } = l, [A, re] = m(!1), [ie, j] = m(""), ae = p(null), oe = p(i);
50166
50166
  c(() => {
50167
- oe.current && !i && e.length > 0 && j(te), oe.current = i;
50167
+ oe.current && !i && e.length > 0 && j(k), oe.current = i;
50168
50168
  }, [
50169
50169
  i,
50170
50170
  e,
50171
- te
50171
+ k
50172
50172
  ]);
50173
50173
  let se = () => {
50174
50174
  ae.current = document.activeElement, re(!0);
50175
50175
  }, ce = () => {
50176
50176
  re(!1), ae.current?.focus?.();
50177
50177
  }, le = (n) => {
50178
- t([...e, n]), j(O), ce();
50178
+ t([...e, n]), j(D), ce();
50179
50179
  }, ue = (n) => {
50180
- t(e.filter((e, t) => t !== n)), j(k);
50180
+ t(e.filter((e, t) => t !== n)), j(O);
50181
50181
  }, de = () => {
50182
- t([]), j(ee);
50182
+ t([]), j(te);
50183
50183
  }, fe = {
50184
50184
  equal: S,
50185
50185
  contain: C,
@@ -50195,11 +50195,11 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50195
50195
  children: ie
50196
50196
  }),
50197
50197
  /* @__PURE__ */ M("div", {
50198
- className: Br("mb-2", u, qj.heading),
50198
+ className: Br("mb-2", u, Jj.heading),
50199
50199
  children: _
50200
50200
  }),
50201
50201
  i && /* @__PURE__ */ N("div", {
50202
- className: Br("mb-2 flex items-center gap-2", d, qj.loading),
50202
+ className: Br("mb-2 flex items-center gap-2", d, Jj.loading),
50203
50203
  children: [/* @__PURE__ */ M(Be, {
50204
50204
  size: 16,
50205
50205
  ariaLabel: E
@@ -50210,7 +50210,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50210
50210
  children: /* @__PURE__ */ M(ke, {
50211
50211
  type: Ae.SectionMessage,
50212
50212
  variant: je.Warning,
50213
- message: D
50213
+ message: ee
50214
50214
  })
50215
50215
  }),
50216
50216
  e.length > 0 && /* @__PURE__ */ M("ul", {
@@ -50219,16 +50219,16 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50219
50219
  let n = e.targets.join(` ${b} `), i = x.replace("{source}", e.source).replace("{targets}", n);
50220
50220
  return /* @__PURE__ */ N("li", {
50221
50221
  style: g,
50222
- className: Br("flex items-center justify-between gap-2 rounded-lg border px-3 py-2", qj.ruleRow),
50222
+ className: Br("flex items-center justify-between gap-2 rounded-lg border px-3 py-2", Jj.ruleRow),
50223
50223
  children: [/* @__PURE__ */ N("span", {
50224
- className: Br("truncate", f, qj.ruleText),
50224
+ className: Br("truncate", f, Jj.ruleText),
50225
50225
  children: [
50226
50226
  /* @__PURE__ */ M("span", {
50227
50227
  className: "font-semibold",
50228
50228
  children: e.source
50229
50229
  }),
50230
50230
  " ",
50231
- Yj(e.function, fe),
50231
+ Xj(e.function, fe),
50232
50232
  ": ",
50233
50233
  n
50234
50234
  ]
@@ -50244,7 +50244,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50244
50244
  }, t);
50245
50245
  })
50246
50246
  }),
50247
- A && /* @__PURE__ */ M(Kj, {
50247
+ A && /* @__PURE__ */ M(qj, {
50248
50248
  sourceOptions: n,
50249
50249
  onSave: le,
50250
50250
  onCancel: ce,
@@ -50270,13 +50270,13 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50270
50270
  })
50271
50271
  ]
50272
50272
  });
50273
- }, Zj = {
50273
+ }, Qj = {
50274
50274
  currentBadge: "_currentBadge_1c7hb_1",
50275
50275
  version: "_version_1c7hb_7",
50276
50276
  date: "_date_1c7hb_11",
50277
50277
  emptyState: "_emptyState_1c7hb_15",
50278
50278
  stripedRow: "_stripedRow_1c7hb_19"
50279
- }, Qj = ({ 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 }) => {
50279
+ }, $j = ({ 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 }) => {
50280
50280
  let p = Vr({
50281
50281
  "--phl-badge-border": f?.currentBadgeBorder,
50282
50282
  "--phl-badge-bg": f?.currentBadgeBackground,
@@ -50285,7 +50285,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50285
50285
  "--phl-date-text": f?.dateText,
50286
50286
  "--phl-empty-text": f?.emptyStateText,
50287
50287
  "--phl-striped-bg": f?.stripedBackground
50288
- }), m = Br(d, Zj.emptyState);
50288
+ }), m = Br(d, Qj.emptyState);
50289
50289
  return n ? /* @__PURE__ */ M("p", {
50290
50290
  style: p,
50291
50291
  className: m,
@@ -50302,12 +50302,12 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50302
50302
  }) : /* @__PURE__ */ M("ul", {
50303
50303
  style: p,
50304
50304
  children: e.map((e, n) => /* @__PURE__ */ N("li", {
50305
- className: Br("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Zj.stripedRow),
50305
+ className: Br("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Qj.stripedRow),
50306
50306
  children: [/* @__PURE__ */ N("span", {
50307
50307
  className: "flex min-w-0 items-center gap-2",
50308
50308
  style: p,
50309
50309
  children: [/* @__PURE__ */ N("span", {
50310
- className: Br(l, Zj.version),
50310
+ className: Br(l, Qj.version),
50311
50311
  children: [
50312
50312
  i,
50313
50313
  " ",
@@ -50315,15 +50315,15 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50315
50315
  ]
50316
50316
  }), e.version === t && /* @__PURE__ */ M(pe, {
50317
50317
  label: a,
50318
- className: Br("shrink-0 !cursor-default whitespace-nowrap", Zj.currentBadge)
50318
+ className: Br("shrink-0 !cursor-default whitespace-nowrap", Qj.currentBadge)
50319
50319
  })]
50320
50320
  }), /* @__PURE__ */ M("span", {
50321
- className: Br(u, Zj.date),
50321
+ className: Br(u, Qj.date),
50322
50322
  children: It(e.publishedAt)
50323
50323
  })]
50324
50324
  }, `${e.version}-${n}`))
50325
50325
  });
50326
- }, $j = /* @__PURE__ */ Dt(((e, t) => {
50326
+ }, eM = /* @__PURE__ */ Dt(((e, t) => {
50327
50327
  (function() {
50328
50328
  var e = {}.hasOwnProperty;
50329
50329
  function n() {
@@ -50349,8 +50349,8 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
50349
50349
  return n;
50350
50350
  }) : window.classNames = n;
50351
50351
  })();
50352
- })), eM = /* @__PURE__ */ Ot({ default: () => tM }), tM, nM = Et((() => {
50353
- tM = {
50352
+ })), tM = /* @__PURE__ */ Ot({ default: () => nM }), nM, rM = Et((() => {
50353
+ nM = {
50354
50354
  "application/1d-interleaved-parityfec": { source: "iana" },
50355
50355
  "application/3gpdash-qoe-report+xml": {
50356
50356
  source: "iana",
@@ -57969,11 +57969,11 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
57969
57969
  "x-shader/x-fragment": { compressible: !0 },
57970
57970
  "x-shader/x-vertex": { compressible: !0 }
57971
57971
  };
57972
- })), rM = /* @__PURE__ */ Dt(((e, t) => {
57973
- t.exports = (nM(), jt(eM).default);
57974
57972
  })), iM = /* @__PURE__ */ Dt(((e, t) => {
57975
- t.exports = {};
57973
+ t.exports = (rM(), jt(tM).default);
57976
57974
  })), aM = /* @__PURE__ */ Dt(((e, t) => {
57975
+ t.exports = {};
57976
+ })), oM = /* @__PURE__ */ Dt(((e, t) => {
57977
57977
  var n = {
57978
57978
  "prs.": 100,
57979
57979
  "x-": 200,
@@ -57997,8 +57997,8 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
57997
57997
  let [a, o] = e.split("/"), s = n[o.replace(/(\.|x-).*/, "$1")] || n.default, c = r[t] || r.default, l = i[a] || i.default, u = 1 - e.length / 100;
57998
57998
  return s + c + l + u;
57999
57999
  };
58000
- })), oM = /* @__PURE__ */ Dt(((e) => {
58001
- var t = rM(), n = iM().extname, r = aM(), i = /^\s*([^;\s]*)(?:;|\s|$)/, a = /^text\//i;
58000
+ })), sM = /* @__PURE__ */ Dt(((e) => {
58001
+ var t = iM(), n = aM().extname, r = oM(), i = /^\s*([^;\s]*)(?:;|\s|$)/, a = /^text\//i;
58002
58002
  e.charset = o, e.charsets = { lookup: o }, e.contentType = s, e.extension = c, e.extensions = Object.create(null), e.lookup = l, e.types = Object.create(null), e._extensionConflicts = [], u(e.extensions, e.types);
58003
58003
  function o(e) {
58004
58004
  if (!e || typeof e != "string") return !1;
@@ -58055,7 +58055,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58055
58055
  ], o = r ? a.indexOf(t[r].source) : 0, s = i ? a.indexOf(t[i].source) : 0;
58056
58056
  return e.types[c] !== "application/octet-stream" && (o > s || o === s && e.types[c]?.slice(0, 12) === "application/") || o > s ? r : i;
58057
58057
  }
58058
- })), sM = /* @__PURE__ */ At($j(), 1), cM = oM(), lM = (t) => /* @__PURE__ */ e.createElement("svg", {
58058
+ })), cM = /* @__PURE__ */ At(eM(), 1), lM = sM(), uM = (t) => /* @__PURE__ */ e.createElement("svg", {
58059
58059
  width: 18,
58060
58060
  height: 18,
58061
58061
  viewBox: "0 0 18 18",
@@ -58067,7 +58067,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58067
58067
  clipRule: "evenodd",
58068
58068
  d: "M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z",
58069
58069
  fill: "currentColor"
58070
- })), uM = (t) => /* @__PURE__ */ e.createElement("svg", {
58070
+ })), dM = (t) => /* @__PURE__ */ e.createElement("svg", {
58071
58071
  width: 18,
58072
58072
  height: 18,
58073
58073
  viewBox: "0 0 18 18",
@@ -58077,7 +58077,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58077
58077
  }, /* @__PURE__ */ e.createElement("path", {
58078
58078
  d: "M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z",
58079
58079
  fill: "currentColor"
58080
- })), dM = (t) => /* @__PURE__ */ e.createElement("svg", {
58080
+ })), fM = (t) => /* @__PURE__ */ e.createElement("svg", {
58081
58081
  width: 18,
58082
58082
  height: 18,
58083
58083
  viewBox: "0 0 18 18",
@@ -58090,7 +58090,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58090
58090
  strokeWidth: 1.5,
58091
58091
  strokeLinecap: "round",
58092
58092
  strokeLinejoin: "round"
58093
- })), fM = (t) => /* @__PURE__ */ e.createElement("svg", {
58093
+ })), pM = (t) => /* @__PURE__ */ e.createElement("svg", {
58094
58094
  width: 18,
58095
58095
  height: 18,
58096
58096
  viewBox: "0 0 18 18",
@@ -58103,7 +58103,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58103
58103
  strokeWidth: 1.5,
58104
58104
  strokeLinecap: "round",
58105
58105
  strokeLinejoin: "round"
58106
- })), pM = (t) => /* @__PURE__ */ e.createElement("svg", {
58106
+ })), mM = (t) => /* @__PURE__ */ e.createElement("svg", {
58107
58107
  width: 18,
58108
58108
  height: 18,
58109
58109
  viewBox: "0 0 18 18",
@@ -58116,14 +58116,14 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58116
58116
  strokeWidth: 1.5,
58117
58117
  strokeLinecap: "round",
58118
58118
  strokeLinejoin: "round"
58119
- })), mM = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(mM || {}), $ = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))($ || {}), hM = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(hM || {}), gM = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(gM || {}), _M = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(_M || {}), vM = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(vM || {}), yM = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(yM || {}), bM = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(bM || {}), xM = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(xM || {}), SM = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", CM = "w-full text-secondary flex items-center gap-2", wM = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", TM = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", EM = "h-full rounded bg-layer-raised text-secondary min-w-0", DM = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", OM = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", kM = 280, AM = "Files", jM = 20, MM = "Files", NM = ".dial_folder", PM = "New folder", FM = 280, IM = 460, LM = 44, RM = 800, zM = [
58120
- xM.Name,
58121
- xM.UpdatedAt,
58122
- xM.Size,
58123
- xM.Author,
58124
- xM.Actions
58125
- ], BM = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(BM || {}), VM = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(VM || {}), HM = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(HM || {}), UM = ({ open: e, onClose: t, onReplace: n, onDuplicate: r, onDecideForEach: i, conflictingFiles: a, singleFileTitle: s = "Replace Or Duplicate Item", multipleFilesTitle: c = "Replace Or Duplicate Items", message: l, actionLabels: u, strategyLabels: d, confirmLabel: p = "Confirm", cancelLabel: h = "Cancel", nameColumnLabel: g = "Name", actionColumnLabel: _ = "Action" }) => {
58126
- let v = a.length === 1, y = v ? a[0]?.name : "", b = u?.[hM.Replace] ?? "Replace", x = u?.[hM.Duplicate] ?? "Duplicate", S = u?.[hM.Cancel] ?? "Cancel", C = d?.[gM.ReplaceAll] ?? "Replace all", w = d?.[gM.DuplicateAll] ?? "Duplicate all", E = d?.[gM.DecideForEach] ?? "Decide for each", [D, O] = m(hM.Replace), [k, ee] = m(gM.ReplaceAll), [te, ne] = m(new Map(a.map((e) => [e.path, hM.Replace]))), [re, ae] = m(void 0), oe = v ? s : c, se = /* @__PURE__ */ N(Ge, { children: [
58119
+ })), hM = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e.Review = "review", e))(hM || {}), $ = /* @__PURE__ */ ((e) => (e.AddSibling = "addSibling", e.AddChild = "addChild", e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e.RemoveAccess = "removeAccess", e.ManagePermissions = "managePermissions", e.Preview = "preview", e.OpenInNewTab = "openInNewTab", e))($ || {}), gM = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(gM || {}), _M = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(_M || {}), vM = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(vM || {}), yM = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(yM || {}), bM = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(bM || {}), xM = /* @__PURE__ */ ((e) => (e.Folder = "folder", e.Child = "child", e.Sibling = "sibling", e))(xM || {}), SM = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e.Version = "version", e))(SM || {}), CM = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1", wM = "w-full text-secondary flex items-center gap-2", TM = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", EM = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", DM = "h-full rounded bg-layer-raised text-secondary min-w-0", OM = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", kM = "opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto", AM = 280, jM = "Files", MM = 20, NM = "Files", PM = ".dial_folder", FM = "New folder", IM = 280, LM = 460, RM = 44, zM = 800, BM = [
58120
+ SM.Name,
58121
+ SM.UpdatedAt,
58122
+ SM.Size,
58123
+ SM.Author,
58124
+ SM.Actions
58125
+ ], VM = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(VM || {}), HM = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(HM || {}), UM = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(UM || {}), WM = ({ open: e, onClose: t, onReplace: n, onDuplicate: r, onDecideForEach: i, conflictingFiles: a, singleFileTitle: s = "Replace Or Duplicate Item", multipleFilesTitle: c = "Replace Or Duplicate Items", message: l, actionLabels: u, strategyLabels: d, confirmLabel: p = "Confirm", cancelLabel: h = "Cancel", nameColumnLabel: g = "Name", actionColumnLabel: _ = "Action" }) => {
58126
+ let v = a.length === 1, y = v ? a[0]?.name : "", b = u?.[gM.Replace] ?? "Replace", x = u?.[gM.Duplicate] ?? "Duplicate", S = u?.[gM.Cancel] ?? "Cancel", C = d?.[_M.ReplaceAll] ?? "Replace all", w = d?.[_M.DuplicateAll] ?? "Duplicate all", E = d?.[_M.DecideForEach] ?? "Decide for each", [ee, D] = m(gM.Replace), [O, te] = m(_M.ReplaceAll), [k, ne] = m(new Map(a.map((e) => [e.path, gM.Replace]))), [re, ae] = m(void 0), oe = v ? s : c, se = /* @__PURE__ */ N(Ge, { children: [
58127
58127
  "Item with the name ",
58128
58128
  /* @__PURE__ */ N("span", {
58129
58129
  className: "text-primary",
@@ -58136,18 +58136,18 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58136
58136
  " ",
58137
58137
  "already exists in this destination."
58138
58138
  ] }), le = `${a.length} items with the same names already exist in this destination.`, ue = l ?? (v ? se : le), de = f(() => [{
58139
- id: hM.Replace,
58139
+ id: gM.Replace,
58140
58140
  name: b
58141
58141
  }, {
58142
- id: hM.Duplicate,
58142
+ id: gM.Duplicate,
58143
58143
  name: x
58144
58144
  }], [b, x]), fe = f(() => a.map((e) => ({
58145
58145
  id: e.path,
58146
58146
  name: e.name,
58147
58147
  path: e.path,
58148
- nodeType: e.nodeType ?? BM.ITEM,
58149
- action: te.get(e.path) || hM.Replace
58150
- })), [a, te]), pe = f(() => [{
58148
+ nodeType: e.nodeType ?? VM.ITEM,
58149
+ action: k.get(e.path) || gM.Replace
58150
+ })), [a, k]), pe = f(() => [{
58151
58151
  field: "name",
58152
58152
  headerName: g,
58153
58153
  flex: 1,
@@ -58155,12 +58155,12 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58155
58155
  floatingFilter: !1,
58156
58156
  filter: !1,
58157
58157
  resizable: !1,
58158
- cellRenderer: (e) => e.data?.nodeType === BM.FOLDER ? /* @__PURE__ */ M(ie, {
58158
+ cellRenderer: (e) => e.data?.nodeType === VM.FOLDER ? /* @__PURE__ */ M(ie, {
58159
58159
  name: e.data.name,
58160
- iconSize: jM
58160
+ iconSize: MM
58161
58161
  }) : /* @__PURE__ */ M(A, {
58162
58162
  name: e.data.name,
58163
- iconSize: jM
58163
+ iconSize: MM
58164
58164
  })
58165
58165
  }, {
58166
58166
  field: "action",
@@ -58175,7 +58175,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58175
58175
  if (!e.data) return null;
58176
58176
  let t = [
58177
58177
  {
58178
- key: hM.Replace,
58178
+ key: gM.Replace,
58179
58179
  label: b,
58180
58180
  icon: /* @__PURE__ */ M(Ze, {
58181
58181
  size: 10,
@@ -58183,7 +58183,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58183
58183
  })
58184
58184
  },
58185
58185
  {
58186
- key: hM.Duplicate,
58186
+ key: gM.Duplicate,
58187
58187
  label: x,
58188
58188
  icon: /* @__PURE__ */ M(Ze, {
58189
58189
  size: 10,
@@ -58191,7 +58191,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58191
58191
  })
58192
58192
  },
58193
58193
  {
58194
- key: hM.Cancel,
58194
+ key: gM.Cancel,
58195
58195
  label: S,
58196
58196
  icon: /* @__PURE__ */ M(Ze, {
58197
58197
  size: 10,
@@ -58225,7 +58225,7 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58225
58225
  children: [n?.icon, n?.label ?? b]
58226
58226
  }), /* @__PURE__ */ M(Xe, {
58227
58227
  size: T.SM,
58228
- className: (0, sM.default)("text-secondary transition-transform", r && "rotate-180")
58228
+ className: (0, cM.default)("text-secondary transition-transform", r && "rotate-180")
58229
58229
  })]
58230
58230
  })
58231
58231
  })
@@ -58240,17 +58240,17 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58240
58240
  re
58241
58241
  ]), me = f(() => [
58242
58242
  {
58243
- id: gM.ReplaceAll,
58243
+ id: _M.ReplaceAll,
58244
58244
  name: C
58245
58245
  },
58246
58246
  {
58247
- id: gM.DuplicateAll,
58247
+ id: _M.DuplicateAll,
58248
58248
  name: w
58249
58249
  },
58250
58250
  {
58251
- id: gM.DecideForEach,
58251
+ id: _M.DecideForEach,
58252
58252
  name: E,
58253
- content: k === gM.DecideForEach ? /* @__PURE__ */ M("div", {
58253
+ content: O === _M.DecideForEach ? /* @__PURE__ */ M("div", {
58254
58254
  className: "mt-4",
58255
58255
  children: /* @__PURE__ */ M(j, {
58256
58256
  columnDefs: pe,
@@ -58266,34 +58266,34 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58266
58266
  C,
58267
58267
  w,
58268
58268
  E,
58269
- k,
58269
+ O,
58270
58270
  pe,
58271
58271
  fe
58272
58272
  ]), he = o(() => {
58273
- O(hM.Replace), ee(gM.ReplaceAll), ne(new Map(a.map((e) => [e.path, hM.Replace])));
58273
+ D(gM.Replace), te(_M.ReplaceAll), ne(new Map(a.map((e) => [e.path, gM.Replace])));
58274
58274
  }, [a]), ge = o(() => {
58275
58275
  he(), t();
58276
58276
  }, [he, t]), _e = o(() => {
58277
- he(), v ? D === hM.Replace ? n() : r() : k === gM.ReplaceAll ? n() : k === gM.DuplicateAll ? r() : k === gM.DecideForEach && i && i(a.map((e) => ({
58277
+ he(), v ? ee === gM.Replace ? n() : r() : O === _M.ReplaceAll ? n() : O === _M.DuplicateAll ? r() : O === _M.DecideForEach && i && i(a.map((e) => ({
58278
58278
  file: e,
58279
- action: te.get(e.path) || hM.Replace
58279
+ action: k.get(e.path) || gM.Replace
58280
58280
  })));
58281
58281
  }, [
58282
58282
  he,
58283
58283
  v,
58284
- D,
58284
+ ee,
58285
58285
  n,
58286
58286
  r,
58287
- k,
58287
+ O,
58288
58288
  i,
58289
58289
  a,
58290
- te
58290
+ k
58291
58291
  ]);
58292
58292
  return /* @__PURE__ */ M(Me, {
58293
58293
  open: e,
58294
58294
  onClose: ge,
58295
58295
  size: v ? Ne.Sm : Ne.Md,
58296
- className: (0, sM.default)([!v && "w-[600px]"]),
58296
+ className: (0, cM.default)([!v && "w-[600px]"]),
58297
58297
  header: oe,
58298
58298
  preventKeyboardOnOpen: !0,
58299
58299
  footer: /* @__PURE__ */ N("div", {
@@ -58314,20 +58314,20 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58314
58314
  }), v ? /* @__PURE__ */ M(ce, {
58315
58315
  elementId: "single-file-conflict",
58316
58316
  radioButtons: de,
58317
- activeRadioButton: D,
58317
+ activeRadioButton: ee,
58318
58318
  orientation: Fe.Column,
58319
- onChange: (e) => O(e)
58319
+ onChange: (e) => D(e)
58320
58320
  }) : /* @__PURE__ */ M(ce, {
58321
58321
  elementId: "multiple-files-conflict",
58322
58322
  radioButtons: me,
58323
- activeRadioButton: k,
58323
+ activeRadioButton: O,
58324
58324
  orientation: Fe.Column,
58325
- onChange: (e) => ee(e),
58325
+ onChange: (e) => te(e),
58326
58326
  formItemChildrenClassName: "gap-3"
58327
58327
  })]
58328
58328
  })
58329
58329
  });
58330
- }, WM = ({ getContextMenuItems: e, isRowDisabled: t, allowedFileTypes: n, maxSelectableFileSize: r, buttonClassName: i }) => {
58330
+ }, GM = ({ getContextMenuItems: e, isRowDisabled: t, allowedFileTypes: n, maxSelectableFileSize: r, buttonClassName: i }) => {
58331
58331
  let a = p(e);
58332
58332
  c(() => {
58333
58333
  a.current = e;
@@ -58365,19 +58365,19 @@ var Bj = (e) => /* @__PURE__ */ M(me, { ...e }), Vj = {
58365
58365
  floatingFilter: !1,
58366
58366
  cellRenderer: s
58367
58367
  }), [s]) };
58368
- }, GM = ({ onRename: e }) => {
58369
- let [t, n] = m(vM.Grid);
58368
+ }, KM = ({ onRename: e }) => {
58369
+ let [t, n] = m(yM.Grid);
58370
58370
  return {
58371
58371
  renameTriggerView: t,
58372
58372
  onGridRename: o((t) => {
58373
- e(t), n(vM.Grid);
58373
+ e(t), n(yM.Grid);
58374
58374
  }, [e]),
58375
58375
  onTreeRename: o((t) => {
58376
- e(t), n(vM.Tree);
58376
+ e(t), n(yM.Tree);
58377
58377
  }, [e])
58378
58378
  };
58379
58379
  };
58380
- function KM(e, t) {
58380
+ function qM(e, t) {
58381
58381
  let n = p(null), [r, i] = m(!1);
58382
58382
  return c(() => {
58383
58383
  if (!n.current) return;
@@ -58391,31 +58391,31 @@ function KM(e, t) {
58391
58391
  isBelowBreakpoint: r
58392
58392
  };
58393
58393
  }
58394
- var qM = (e, t) => {
58394
+ var JM = (e, t) => {
58395
58395
  if (!(!e || !e.length || !t)) for (let n of e) {
58396
58396
  if (n.path === t) return n;
58397
- let e = qM(n.items, t);
58397
+ let e = JM(n.items, t);
58398
58398
  if (e) return e;
58399
58399
  }
58400
- }, JM = (e, t) => {
58400
+ }, YM = (e, t) => {
58401
58401
  if (!e?.length) return;
58402
58402
  if (!t) return e[0];
58403
- let n = qM(e, t);
58404
- if (n && n.nodeType === BM.FOLDER) return n;
58403
+ let n = JM(e, t);
58404
+ if (n && n.nodeType === VM.FOLDER) return n;
58405
58405
  let r = t.split("/").filter(Boolean);
58406
- return r.length <= 1 ? e[0] : qM(e, "/" + r.slice(0, r.length - 1).join("/")) ?? e[0];
58407
- }, YM = (e) => (e ?? "").toLowerCase(), XM = (e) => YM(e).replace(/^\./, ""), ZM = (e) => {
58406
+ return r.length <= 1 ? e[0] : JM(e, "/" + r.slice(0, r.length - 1).join("/")) ?? e[0];
58407
+ }, XM = (e) => (e ?? "").toLowerCase(), ZM = (e) => XM(e).replace(/^\./, ""), QM = (e) => {
58408
58408
  if (!e) return [];
58409
58409
  let t = [], n = (e) => {
58410
58410
  let r = e.items ?? [];
58411
- for (let e of r) t.push(e), e.nodeType === BM.FOLDER && n(e);
58411
+ for (let e of r) t.push(e), e.nodeType === VM.FOLDER && n(e);
58412
58412
  };
58413
58413
  return n(e), t;
58414
- }, QM = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), $M = (e) => {
58414
+ }, $M = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), eN = (e) => {
58415
58415
  if (!e) return "0 bytes";
58416
58416
  let t = 1024, n = t * 1024;
58417
58417
  return e >= n ? `${(e / n).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} bytes`;
58418
- }, eN = (e, t = "en-US", n = {
58418
+ }, tN = (e, t = "en-US", n = {
58419
58419
  year: "numeric",
58420
58420
  month: "short",
58421
58421
  day: "2-digit"
@@ -58427,7 +58427,7 @@ var qM = (e, t) => {
58427
58427
  return e;
58428
58428
  }
58429
58429
  };
58430
- function tN(e, t, n) {
58430
+ function nN(e, t, n) {
58431
58431
  if (!e || e.includes("*/*")) return !0;
58432
58432
  let r = t.toLowerCase(), i = n && n.includes(".") ? `.${n.split(".").at(-1).toLowerCase()}` : void 0;
58433
58433
  return e.some((e) => {
@@ -58440,21 +58440,21 @@ function tN(e, t, n) {
58440
58440
  return r === t;
58441
58441
  });
58442
58442
  }
58443
- var nN = (e) => e?.map((e) => e.endsWith("/*") ? e.replace("/*", "s") : rN(e).flat().map((e) => `.${e}`)).flat().join(", ") || "", rN = (e) => {
58443
+ var rN = (e) => e?.map((e) => e.endsWith("/*") ? e.replace("/*", "s") : iN(e).flat().map((e) => `.${e}`)).flat().join(", ") || "", iN = (e) => {
58444
58444
  let [t, n] = e.split("/");
58445
- return t === "*" ? ["all"] : n === "*" ? Object.entries(cM.extensions).reduce((e, [n, r]) => {
58445
+ return t === "*" ? ["all"] : n === "*" ? Object.entries(lM.extensions).reduce((e, [n, r]) => {
58446
58446
  let [i] = n.split("/");
58447
58447
  return i === t && e.push(...r), e;
58448
- }, []) : cM.extensions[e] || [];
58449
- }, iN = (e) => {
58448
+ }, []) : lM.extensions[e] || [];
58449
+ }, aN = (e) => {
58450
58450
  if (!e) return;
58451
58451
  let t = e.flags.replace(/[gy]/g, "");
58452
58452
  return new RegExp(e.source, t);
58453
58453
  };
58454
- function aN(e, t, n) {
58455
- if (t && iN(t)?.test(e.name)) return n ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
58454
+ function oN(e, t, n) {
58455
+ if (t && aN(t)?.test(e.name)) return n ?? `This ${e.isFolder ? "folder" : "file"} contains forbidden characters in its name. Please rename it.`;
58456
58456
  }
58457
- var oN = (e) => {
58457
+ var sN = (e) => {
58458
58458
  let t = e.lastIndexOf("/");
58459
58459
  return t >= 0 ? {
58460
58460
  parent: e.slice(0, t),
@@ -58463,22 +58463,22 @@ var oN = (e) => {
58463
58463
  parent: "",
58464
58464
  name: e
58465
58465
  };
58466
- }, sN = (e, t, n) => {
58467
- let r = !e.contentLength || n == null || e.contentLength <= n, i = !e.contentType || tN(t, e.contentType, e.name);
58466
+ }, cN = (e, t, n) => {
58467
+ let r = !e.contentLength || n == null || e.contentLength <= n, i = !e.contentType || nN(t, e.contentType, e.name);
58468
58468
  return r && i;
58469
- }, cN = (e, t, n, r, i) => {
58470
- if (e.nodeType === BM.FOLDER) return;
58469
+ }, lN = (e, t, n, r, i) => {
58470
+ if (e.nodeType === VM.FOLDER) return;
58471
58471
  let a = !e.contentLength || n == null || e.contentLength <= n;
58472
- if (!(!e.contentType || tN(t, e.contentType, e.name))) return r ?? (t?.length ? `Unsupported file type. Supported types: ${nN(t)}.` : "Unsupported file type.");
58473
- if (!a) return i ?? `File is too large. Maximum size: ${$M(n)}.`;
58474
- }, lN = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, uN = (e) => {
58475
- let t = `${PM} `, n = RegExp(`^${PM} (\\d+)$`), r = new Set(e.map((e) => e.name.toLowerCase())), i = e.map((e) => {
58472
+ if (!(!e.contentType || nN(t, e.contentType, e.name))) return r ?? (t?.length ? `Unsupported file type. Supported types: ${rN(t)}.` : "Unsupported file type.");
58473
+ if (!a) return i ?? `File is too large. Maximum size: ${eN(n)}.`;
58474
+ }, uN = (e) => e.replace(/\/+$/, "").split("/").filter(Boolean).length, dN = (e) => {
58475
+ let t = `${FM} `, n = RegExp(`^${FM} (\\d+)$`), r = new Set(e.map((e) => e.name.toLowerCase())), i = e.map((e) => {
58476
58476
  let t = e.name.match(n);
58477
58477
  return t ? parseInt(t[1], 10) : 0;
58478
58478
  }).reduce((e, t) => Math.max(e, t), 0), a = `${t}${i + 1}`, o = i + 1;
58479
58479
  for (; r.has(a.toLowerCase());) o++, a = `${t}${o}`;
58480
58480
  return a;
58481
- }, dN = (e) => {
58481
+ }, fN = (e) => {
58482
58482
  let [t, n] = m(e?.showHiddenFiles ?? !1), r = !!e?.onShowHiddenFilesChange, i = r ? e.showHiddenFiles ?? !1 : t, a = o((t) => {
58483
58483
  r ? e?.onShowHiddenFilesChange?.(t) : n(t);
58484
58484
  }, [r, e]);
@@ -58494,7 +58494,7 @@ var oN = (e) => {
58494
58494
  ]),
58495
58495
  setAreHiddenFilesVisible: a
58496
58496
  };
58497
- }, fN = (e) => {
58497
+ }, pN = (e) => {
58498
58498
  let [t, n] = m(e?.collapsed ?? !1), r = !!e?.onCollapseChange, i = r ? e.collapsed ?? !1 : t, a = o((t) => {
58499
58499
  r ? e?.onCollapseChange?.(t) : n(t);
58500
58500
  }, [r, e]);
@@ -58510,9 +58510,9 @@ var oN = (e) => {
58510
58510
  ]),
58511
58511
  setIsTreeCollapsed: a
58512
58512
  };
58513
- }, pN = (e, t, n) => {
58513
+ }, mN = (e, t, n) => {
58514
58514
  if (!t.has(e)) return e;
58515
- let r = n === BM.FOLDER ? (e, t) => `${e} (${t})` : (e, t) => {
58515
+ let r = n === VM.FOLDER ? (e, t) => `${e} (${t})` : (e, t) => {
58516
58516
  let n = e.lastIndexOf("."), r = n > 0;
58517
58517
  return `${r ? e.slice(0, n) : e} (${t})${r ? e.slice(n) : ""}`;
58518
58518
  };
@@ -58520,38 +58520,38 @@ var oN = (e) => {
58520
58520
  let i = r(e, n);
58521
58521
  if (!t.has(i)) return i;
58522
58522
  }
58523
- }, mN = (e) => e.name, hN = ({ getDestinationFiles: e, onResolve: t }) => {
58523
+ }, hN = (e) => e.name, gN = ({ getDestinationFiles: e, onResolve: t }) => {
58524
58524
  let [n, r] = m([]), [i, a] = m(!1), [s, c] = m(null), l = p(!1), u = o((e) => {
58525
58525
  l.current = !0, r(e), a(!0);
58526
58526
  }, []), d = o(() => {
58527
58527
  l.current = !1, a(!1), r([]), c(null);
58528
58528
  }, []), f = o((t, n) => {
58529
- let r = e(t), i = new Set(r.map(mN)), a = n.filter((e) => i.has(e.name));
58529
+ let r = e(t), i = new Set(r.map(hN)), a = n.filter((e) => i.has(e.name));
58530
58530
  return {
58531
58531
  hasConflicts: a.length > 0,
58532
58532
  conflicts: a
58533
58533
  };
58534
58534
  }, [e]), h = o((t, n, r, i) => {
58535
- let a = e(t), o = new Set(a.map(mN));
58535
+ let a = e(t), o = new Set(a.map(hN));
58536
58536
  return n.map((e) => {
58537
- let n = e.name, a = o.has(n), s = r && a ? n : pN(n, o, e.nodeType);
58537
+ let n = e.name, a = o.has(n), s = r && a ? n : mN(n, o, e.nodeType);
58538
58538
  return (!r || !a) && o.add(s), {
58539
58539
  sourceUrl: e.path,
58540
58540
  destinationUrl: `${t}/${s}`,
58541
58541
  overwrite: r && a,
58542
- nodeType: e.nodeType ?? BM.ITEM,
58542
+ nodeType: e.nodeType ?? VM.ITEM,
58543
58543
  ...i ?? {}
58544
58544
  };
58545
58545
  });
58546
58546
  }, [e]), g = o((t, n, r, i) => {
58547
- let a = e(t), o = new Set(a.map(mN));
58548
- return n.filter((e) => r.get(e.path) !== hM.Cancel).map((e) => {
58549
- let n = r.get(e.path), a = o.has(e.name), s = n === hM.Replace && a, c = s ? e.name : pN(e.name, o, e.nodeType);
58547
+ let a = e(t), o = new Set(a.map(hN));
58548
+ return n.filter((e) => r.get(e.path) !== gM.Cancel).map((e) => {
58549
+ let n = r.get(e.path), a = o.has(e.name), s = n === gM.Replace && a, c = s ? e.name : mN(e.name, o, e.nodeType);
58550
58550
  return s || o.add(c), {
58551
58551
  sourceUrl: e.path,
58552
58552
  destinationUrl: `${t}/${c}`,
58553
58553
  overwrite: s,
58554
- nodeType: e.nodeType ?? BM.ITEM,
58554
+ nodeType: e.nodeType ?? VM.ITEM,
58555
58555
  ...i ?? {}
58556
58556
  };
58557
58557
  });
@@ -58595,7 +58595,7 @@ var oN = (e) => {
58595
58595
  ]),
58596
58596
  handleCancelAll: o(() => {
58597
58597
  if (!s) return;
58598
- let { files: e, destinationFolder: r, metadata: i } = s, a = g(r, e, new Map(n.map((e) => [e.path, hM.Cancel])), i);
58598
+ let { files: e, destinationFolder: r, metadata: i } = s, a = g(r, e, new Map(n.map((e) => [e.path, gM.Cancel])), i);
58599
58599
  t?.(a, r), d();
58600
58600
  }, [
58601
58601
  d,
@@ -58615,17 +58615,17 @@ var oN = (e) => {
58615
58615
  d
58616
58616
  ])
58617
58617
  };
58618
- }, gN = ({ getDestinationFiles: e, onCopyFiles: t, onMoveToFiles: n, onCopySuccess: r, onMoveSuccess: i, onDuplicateSuccess: a, getCopyHeader: s, getMoveHeader: c }) => {
58619
- let [l, u] = m(!1), [d, f] = m([]), [p, h] = m([]), [g, _] = m(_M.Copy), [v, y] = m(), [b, x] = m(null), { conflictingFiles: S, conflictResolutionOpen: C, hasActiveConflictRef: w, startConflictResolution: T, resolveConflictsWithStrategy: E, closeConflictResolution: D, openConflictResolution: O, handleReplaceAll: k, handleDuplicateAll: ee, handleCancelAll: te, handleDecideForEach: ne } = hN({
58618
+ }, _N = ({ getDestinationFiles: e, onCopyFiles: t, onMoveToFiles: n, onCopySuccess: r, onMoveSuccess: i, onDuplicateSuccess: a, getCopyHeader: s, getMoveHeader: c }) => {
58619
+ let [l, u] = m(!1), [d, f] = m([]), [p, h] = m([]), [g, _] = m(vM.Copy), [v, y] = m(), [b, x] = m(null), { conflictingFiles: S, conflictResolutionOpen: C, hasActiveConflictRef: w, startConflictResolution: T, resolveConflictsWithStrategy: E, closeConflictResolution: ee, openConflictResolution: D, handleReplaceAll: O, handleDuplicateAll: te, handleCancelAll: k, handleDecideForEach: ne } = gN({
58620
58620
  getDestinationFiles: e,
58621
58621
  onResolve: (e, a) => {
58622
- e?.length && (b?.type === _M.Copy ? (t?.(e, a), r?.()) : b?.type === _M.Move && b.sourceFolder && (n?.(e, b.sourceFolder, a), i?.()));
58622
+ e?.length && (b?.type === vM.Copy ? (t?.(e, a), r?.()) : b?.type === vM.Move && b.sourceFolder && (n?.(e, b.sourceFolder, a), i?.()));
58623
58623
  }
58624
58624
  }), A = o(() => {
58625
58625
  f([]), h([]), x(null), y(void 0);
58626
58626
  }, []), re = o((e) => {
58627
- let n = T(e, d, { type: _M.Copy });
58628
- if (x({ type: _M.Copy }), !n.hasConflicts) {
58627
+ let n = T(e, d, { type: vM.Copy });
58628
+ if (x({ type: vM.Copy }), !n.hasConflicts) {
58629
58629
  let n = E(e, d, !1);
58630
58630
  t?.(n, e), r?.(), A();
58631
58631
  }
@@ -58639,7 +58639,7 @@ var oN = (e) => {
58639
58639
  ]), ie = o((e, t) => {
58640
58640
  let r = t || (b?.sourceFolder ?? "/");
58641
58641
  if (!T(e, p, {
58642
- type: _M.Move,
58642
+ type: vM.Move,
58643
58643
  sourceFolderPath: r
58644
58644
  }).hasConflicts) {
58645
58645
  let t = E(e, p, !0);
@@ -58654,12 +58654,12 @@ var oN = (e) => {
58654
58654
  A,
58655
58655
  b
58656
58656
  ]), j = o(() => {
58657
- k(), A();
58658
- }, [k, A]), ae = o(() => {
58659
- ee(), A();
58660
- }, [ee, A]), oe = o(() => {
58657
+ O(), A();
58658
+ }, [O, A]), ae = o(() => {
58661
58659
  te(), A();
58662
- }, [te, A]), se = o((e) => {
58660
+ }, [te, A]), oe = o(() => {
58661
+ k(), A();
58662
+ }, [k, A]), se = o((e) => {
58663
58663
  ne(e), A();
58664
58664
  }, [ne, A]), ce = o((e) => {
58665
58665
  let n = e.at(0)?.parentPath ?? "/", r = E(n, e, !1);
@@ -58689,22 +58689,22 @@ var oN = (e) => {
58689
58689
  h(e);
58690
58690
  let t = e[0]?.parentPath ?? e[0]?.folderId;
58691
58691
  y(t), x({
58692
- type: _M.Move,
58692
+ type: vM.Move,
58693
58693
  sourceFolder: t
58694
58694
  }), c && e.length > 0 ? fe(c(e.length, e[0]?.name)) : fe(void 0);
58695
58695
  }, [c]),
58696
58696
  clearState: A,
58697
58697
  conflictingFiles: S,
58698
58698
  conflictResolutionOpen: C,
58699
- openConflictResolution: O,
58700
- closeConflictResolution: D,
58699
+ openConflictResolution: D,
58700
+ closeConflictResolution: ee,
58701
58701
  handleConflictReplace: j,
58702
58702
  handleConflictCancel: oe,
58703
58703
  handleConflictDuplicate: ae,
58704
58704
  handleConflictDecideForEach: se,
58705
58705
  sourceFolder: v
58706
58706
  };
58707
- }, _N = ({ path: e, defaultPath: t, onPathChange: n, onSelectionClear: r }) => {
58707
+ }, vN = ({ path: e, defaultPath: t, onPathChange: n, onSelectionClear: r }) => {
58708
58708
  let i = e !== void 0, [a, s] = m(t), c = i ? e : a, l = o((e) => {
58709
58709
  i || s(e), n?.(e);
58710
58710
  }, [i, n]);
@@ -58715,7 +58715,7 @@ var oN = (e) => {
58715
58715
  l(e), r?.();
58716
58716
  }, [l, r])
58717
58717
  };
58718
- }, vN = ({ onDeleteFiles: e, onDeleteSuccess: t }) => {
58718
+ }, yN = ({ onDeleteFiles: e, onDeleteSuccess: t }) => {
58719
58719
  let [n, r] = m(!1), [i, a] = m([]), [s, c] = m(""), l = o((e, t) => {
58720
58720
  a(e), c(t), r(!0);
58721
58721
  }, []), u = o(() => {
@@ -58739,20 +58739,20 @@ var oN = (e) => {
58739
58739
  s
58740
58740
  ])
58741
58741
  };
58742
- }, yN = ({ onDownloadFiles: e, customDownloadItemsAction: t, onDownloadSuccess: n }) => ({ handleDownloadFiles: o((r) => {
58742
+ }, bN = ({ onDownloadFiles: e, customDownloadItemsAction: t, onDownloadSuccess: n }) => ({ handleDownloadFiles: o((r) => {
58743
58743
  t && r.length > 0 ? t(r) : e && r.length > 0 && (e(r), n?.());
58744
58744
  }, [
58745
58745
  e,
58746
58746
  n,
58747
58747
  t
58748
- ]) }), bN = (e) => "dataTransfer" in e && e.dataTransfer !== null, xN = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: n, allowedFileTypes: r, validationMessages: i = {}, onUploadArchive: a, prepareUploadFileName: s, uploadEnabled: l = !0, currentFolder: u } = {}) => {
58749
- let [d, h] = m(!1), [g, _] = m(!1), [v, y] = m(), b = p(null), x = p(""), S = p([]), C = f(() => !!u?.permissions?.includes(HM.WRITE), [u]), [w, T] = m(/* @__PURE__ */ new Map()), [E, D] = m(null), O = o((e) => !r || r.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => tN(r, e.type, t)), [r]), k = o(() => {
58750
- T(/* @__PURE__ */ new Map()), D(null);
58751
- }, []), { conflictingFiles: ee, conflictResolutionOpen: te, hasActiveConflictRef: ne, startConflictResolution: A, closeConflictResolution: re, openConflictResolution: ie, handleReplaceAll: j, handleDuplicateAll: ae, handleCancelAll: oe, handleDecideForEach: se } = hN({
58748
+ ]) }), xN = (e) => "dataTransfer" in e && e.dataTransfer !== null, SN = ({ onUploadFiles: e, onValidateUpload: t, maxFileSize: n, allowedFileTypes: r, validationMessages: i = {}, onUploadArchive: a, prepareUploadFileName: s, uploadEnabled: l = !0, currentFolder: u } = {}) => {
58749
+ let [d, h] = m(!1), [g, _] = m(!1), [v, y] = m(), b = p(null), x = p(""), S = p([]), C = f(() => !!u?.permissions?.includes(UM.WRITE), [u]), [w, T] = m(/* @__PURE__ */ new Map()), [E, ee] = m(null), D = o((e) => !r || r.includes("*/*") ? e : e.filter(({ fileContent: e, name: t }) => nN(r, e.type, t)), [r]), O = o(() => {
58750
+ T(/* @__PURE__ */ new Map()), ee(null);
58751
+ }, []), { conflictingFiles: te, conflictResolutionOpen: k, hasActiveConflictRef: ne, startConflictResolution: A, closeConflictResolution: re, openConflictResolution: ie, handleReplaceAll: j, handleDuplicateAll: ae, handleCancelAll: oe, handleDecideForEach: se } = gN({
58752
58752
  getDestinationFiles: () => S.current,
58753
58753
  onResolve: (t, n) => {
58754
58754
  if (!l || !C) {
58755
- k();
58755
+ O();
58756
58756
  return;
58757
58757
  }
58758
58758
  if (!E) return;
@@ -58769,20 +58769,20 @@ var oN = (e) => {
58769
58769
  let { fileContent: e, name: t } = r[0];
58770
58770
  a?.(e, t, n);
58771
58771
  } else r.length > 0 && e?.(r, n);
58772
- k();
58772
+ O();
58773
58773
  }
58774
58774
  });
58775
58775
  c(() => {
58776
- l && C || (h(!1), _(!1), y(void 0), re(), k());
58776
+ l && C || (h(!1), _(!1), y(void 0), re(), O());
58777
58777
  }, [
58778
58778
  l,
58779
58779
  re,
58780
- k,
58780
+ O,
58781
58781
  C
58782
58782
  ]), c(() => {
58783
58783
  if (!l || !C) return;
58784
58784
  let e = 0, t = (t) => {
58785
- bN(t) && t.dataTransfer.types.includes(MM) && (e++, _(!0));
58785
+ xN(t) && t.dataTransfer.types.includes(NM) && (e++, _(!0));
58786
58786
  }, n = () => {
58787
58787
  e--, e === 0 && _(!1);
58788
58788
  }, r = () => {
@@ -58799,7 +58799,7 @@ var oN = (e) => {
58799
58799
  name: e.name,
58800
58800
  folderId: t,
58801
58801
  path: e.name,
58802
- nodeType: BM.ITEM,
58802
+ nodeType: VM.ITEM,
58803
58803
  parentPath: t,
58804
58804
  contentLength: e.fileContent.size
58805
58805
  })), []), ue = o(async (r, a, o) => {
@@ -58821,7 +58821,7 @@ var oN = (e) => {
58821
58821
  }
58822
58822
  T(new Map(c.map((e) => [e.name, e])));
58823
58823
  let d = le(c, a);
58824
- return D({ destinationFolder: a }), A(a, d, { destinationFolder: a }).hasConflicts ? !1 : (e?.(c, a), k(), !0);
58824
+ return ee({ destinationFolder: a }), A(a, d, { destinationFolder: a }).hasConflicts ? !1 : (e?.(c, a), O(), !0);
58825
58825
  }, [
58826
58826
  l,
58827
58827
  e,
@@ -58832,22 +58832,22 @@ var oN = (e) => {
58832
58832
  i,
58833
58833
  le,
58834
58834
  A,
58835
- k,
58835
+ O,
58836
58836
  C
58837
58837
  ]), de = o(() => {
58838
- j(), k();
58839
- }, [j, k]), fe = o(() => {
58840
- ae(), k();
58841
- }, [ae, k]), pe = o(() => {
58842
- oe(), k();
58843
- }, [oe, k]), me = o((e) => {
58844
- se(e), k();
58845
- }, [se, k]), he = o(() => {
58846
- re(), ne.current || k();
58838
+ j(), O();
58839
+ }, [j, O]), fe = o(() => {
58840
+ ae(), O();
58841
+ }, [ae, O]), pe = o(() => {
58842
+ oe(), O();
58843
+ }, [oe, O]), me = o((e) => {
58844
+ se(e), O();
58845
+ }, [se, O]), he = o(() => {
58846
+ re(), ne.current || O();
58847
58847
  }, [
58848
58848
  re,
58849
58849
  ne,
58850
- k
58850
+ O
58851
58851
  ]), ge = o((e) => {
58852
58852
  !l || !C || (e.preventDefault(), e.stopPropagation(), e.dataTransfer.types.includes("Files") && h(!0));
58853
58853
  }, [l, C]), _e = o((e) => {
@@ -58873,7 +58873,7 @@ var oN = (e) => {
58873
58873
  o && y(i.foldersNotSupported || "Folder upload is not supported");
58874
58874
  return;
58875
58875
  }
58876
- let s = O(a.map((e) => ({
58876
+ let s = D(a.map((e) => ({
58877
58877
  fileContent: e,
58878
58878
  name: e.name
58879
58879
  })));
@@ -58884,7 +58884,7 @@ var oN = (e) => {
58884
58884
  await ue(s, t, n);
58885
58885
  }, [
58886
58886
  l,
58887
- O,
58887
+ D,
58888
58888
  ue,
58889
58889
  i,
58890
58890
  C
@@ -58898,7 +58898,7 @@ var oN = (e) => {
58898
58898
  return;
58899
58899
  }
58900
58900
  if (!e.files?.length) return;
58901
- let t = O(Array.from(e.files).map((e) => ({
58901
+ let t = D(Array.from(e.files).map((e) => ({
58902
58902
  fileContent: e,
58903
58903
  name: e.name
58904
58904
  })));
@@ -58917,7 +58917,7 @@ var oN = (e) => {
58917
58917
  }, [
58918
58918
  l,
58919
58919
  C,
58920
- O,
58920
+ D,
58921
58921
  ue,
58922
58922
  i
58923
58923
  ]), c(() => {
@@ -58947,12 +58947,12 @@ var oN = (e) => {
58947
58947
  name: o,
58948
58948
  folderId: e,
58949
58949
  path: `${e}/${o}`,
58950
- nodeType: BM.FOLDER,
58950
+ nodeType: VM.FOLDER,
58951
58951
  parentPath: e,
58952
58952
  contentLength: r.size,
58953
58953
  contentType: r.type
58954
58954
  };
58955
- if (S.current = t, D({ destinationFolder: e }), T(/* @__PURE__ */ new Map([[c.path, {
58955
+ if (S.current = t, ee({ destinationFolder: e }), T(/* @__PURE__ */ new Map([[c.path, {
58956
58956
  fileContent: r,
58957
58957
  name: o
58958
58958
  }]])), A(e, [c], { destinationFolder: e }).hasConflicts) {
@@ -58987,8 +58987,8 @@ var oN = (e) => {
58987
58987
  openFileDialog: xe,
58988
58988
  openArchiveDialog: Se,
58989
58989
  fileInputRef: b,
58990
- uploadConflictingFiles: ee,
58991
- uploadConflictResolutionOpen: te,
58990
+ uploadConflictingFiles: te,
58991
+ uploadConflictResolutionOpen: k,
58992
58992
  hasActiveUploadConflictRef: ne,
58993
58993
  openUploadConflictResolution: ie,
58994
58994
  closeUploadConflictResolution: he,
@@ -58997,35 +58997,35 @@ var oN = (e) => {
58997
58997
  handleUploadConflictCancel: pe,
58998
58998
  handleUploadConflictDecideForEach: me
58999
58999
  };
59000
- }, SN = n(void 0), CN = { hiddenItemWarning: `${je.Warning}__A dot at the start of the name will make the item hidden` }, wN = { consecutiveDotsError: "Name cannot contain consecutive dots" }, TN = {
59000
+ }, CN = n(void 0), wN = { hiddenItemWarning: `${je.Warning}__A dot at the start of the name will make the item hidden` }, TN = { consecutiveDotsError: "Name cannot contain consecutive dots" }, EN = {
59001
59001
  emptyName: "Name cannot be empty",
59002
59002
  duplicateName: "An item with this name already exists",
59003
- hiddenItemWarning: CN.hiddenItemWarning,
59004
- consecutiveDotsError: wN.consecutiveDotsError
59003
+ hiddenItemWarning: wN.hiddenItemWarning,
59004
+ consecutiveDotsError: TN.consecutiveDotsError
59005
59005
  };
59006
- function EN(e) {
59006
+ function DN(e) {
59007
59007
  let t = e.length;
59008
59008
  for (; t > 0 && e[t - 1] === "/";) t--;
59009
59009
  return e.slice(0, t);
59010
59010
  }
59011
- function DN(e, t) {
59012
- let n = EN(e), r = n.lastIndexOf("/");
59011
+ function ON(e, t) {
59012
+ let n = DN(e), r = n.lastIndexOf("/");
59013
59013
  return r === -1 ? t : n.slice(0, r + 1) + t;
59014
59014
  }
59015
- function ON(e) {
59015
+ function kN(e) {
59016
59016
  let t = e.lastIndexOf(".");
59017
59017
  return t === -1 || t === 0 ? e : e.substring(0, t);
59018
59018
  }
59019
- function kN(e) {
59019
+ function AN(e) {
59020
59020
  let t = e.lastIndexOf(".");
59021
59021
  return t === -1 || t === 0 ? "" : e.substring(t);
59022
59022
  }
59023
- var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles: r }) => {
59023
+ var jN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles: r }) => {
59024
59024
  let [i, a] = m(), s = f(() => ({
59025
- ...TN,
59025
+ ...EN,
59026
59026
  ...n
59027
59027
  }), [n]), c = f(() => i?.path, [i]), l = o((t) => {
59028
- let n = qM(e, t);
59028
+ let n = JM(e, t);
59029
59029
  n && a(n);
59030
59030
  }, [e]), u = o(() => {
59031
59031
  a(void 0);
@@ -59039,16 +59039,16 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59039
59039
  a(void 0);
59040
59040
  return;
59041
59041
  }
59042
- let t = i.nodeType === BM.ITEM, n = e.trim();
59042
+ let t = i.nodeType === VM.ITEM, n = e.trim();
59043
59043
  if (t) {
59044
- let e = kN(i.name);
59044
+ let e = AN(i.name);
59045
59045
  e && !n.endsWith(e) && (n += e);
59046
59046
  }
59047
59047
  if (n === i.name) {
59048
59048
  a(void 0);
59049
59049
  return;
59050
59050
  }
59051
- let o = DN(i.path, n), s = i.parentPath;
59051
+ let o = ON(i.path, n), s = i.parentPath;
59052
59052
  if (!s) {
59053
59053
  a(void 0);
59054
59054
  return;
@@ -59065,14 +59065,14 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59065
59065
  if (!i) return s.emptyName;
59066
59066
  if (i.includes("..")) return s.consecutiveDotsError;
59067
59067
  if (i.startsWith(".")) return s.hiddenItemWarning;
59068
- let a = r.nodeType === BM.ITEM, o = i;
59068
+ let a = r.nodeType === VM.ITEM, o = i;
59069
59069
  if (a) {
59070
- let e = kN(r.name);
59070
+ let e = AN(r.name);
59071
59071
  e && !o.endsWith(e) && (o += e);
59072
59072
  }
59073
59073
  let c = r.parentPath;
59074
59074
  if (c) {
59075
- let t = qM(e, c);
59075
+ let t = JM(e, c);
59076
59076
  if (t && new Set((t.items ?? []).filter((e) => e.path !== r.path).map((e) => e.name.toLowerCase())).has(o.toLowerCase())) return s.duplicateName;
59077
59077
  }
59078
59078
  if (t) {
@@ -59085,9 +59085,9 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59085
59085
  s,
59086
59086
  e
59087
59087
  ]),
59088
- getDisplayName: o((e) => e.nodeType === BM.ITEM ? ON(e.name) : e.name, [])
59088
+ getDisplayName: o((e) => e.nodeType === VM.ITEM ? kN(e.name) : e.name, [])
59089
59089
  };
59090
- }, jN = (e) => {
59090
+ }, MN = (e) => {
59091
59091
  let [t, n] = m(e?.expandedPaths ?? /* @__PURE__ */ new Set()), r = f(() => !!e?.onExpandedPathsChange, [e?.onExpandedPathsChange]), i = f(() => r ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t, [
59092
59092
  r,
59093
59093
  e?.expandedPaths,
@@ -59119,7 +59119,7 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59119
59119
  }, [i, a]),
59120
59120
  isControlled: r
59121
59121
  };
59122
- }, MN = ({ newActions: e, currentFolder: t, onUploadFiles: n, onCreateFolder: r, onUploadArchive: i, onCreateNewItem: a, isNewButtonDisabled: o }) => {
59122
+ }, NN = ({ newActions: e, currentFolder: t, onUploadFiles: n, onCreateFolder: r, onUploadArchive: i, onCreateNewItem: a, isNewButtonDisabled: o }) => {
59123
59123
  let s = f(() => {
59124
59124
  let t = [];
59125
59125
  return e && (e.newFolder && t.push({
@@ -59173,30 +59173,30 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59173
59173
  return {
59174
59174
  newActions: s,
59175
59175
  isNewButtonVisible: f(() => s?.length > 0, [s]),
59176
- isNewButtonDisabled: f(() => !t?.permissions?.includes(HM.WRITE) || !!o, [t, o])
59176
+ isNewButtonDisabled: f(() => !t?.permissions?.includes(UM.WRITE) || !!o, [t, o])
59177
59177
  };
59178
- }, NN = {
59178
+ }, PN = {
59179
59179
  emptyName: "Folder name cannot be empty",
59180
59180
  duplicateName: "A folder with this name already exists",
59181
- hiddenItemWarning: CN.hiddenItemWarning,
59182
- consecutiveDotsError: wN.consecutiveDotsError
59183
- }, PN = ({ currentFolder: e, onCreateFolder: t, onValidateFolderName: n, validationMessages: r, items: i = [] }) => {
59184
- let [a, s] = m(!1), [l, u] = m(null), [d, h] = m(bM.Folder), [g, _] = m(null), [v, y] = m(null), [b, x] = m(""), S = p(e?.path), C = f(() => ({
59185
- ...NN,
59181
+ hiddenItemWarning: wN.hiddenItemWarning,
59182
+ consecutiveDotsError: TN.consecutiveDotsError
59183
+ }, FN = ({ currentFolder: e, onCreateFolder: t, onValidateFolderName: n, validationMessages: r, items: i = [] }) => {
59184
+ let [a, s] = m(!1), [l, u] = m(null), [d, h] = m(xM.Folder), [g, _] = m(null), [v, y] = m(null), [b, x] = m(""), S = p(e?.path), C = f(() => ({
59185
+ ...PN,
59186
59186
  ...r
59187
59187
  }), [r]), w = f(() => {
59188
- if (d === bM.Folder) return e;
59189
- if (d === bM.Sibling && g) {
59190
- let e = JM(i, g.parentPath || "");
59188
+ if (d === xM.Folder) return e;
59189
+ if (d === xM.Sibling && g) {
59190
+ let e = YM(i, g.parentPath || "");
59191
59191
  return {
59192
59192
  path: g.parentPath,
59193
59193
  items: e?.items || [],
59194
- nodeType: BM.FOLDER,
59194
+ nodeType: VM.FOLDER,
59195
59195
  name: g?.parentPath?.split("/")?.pop() || "",
59196
59196
  folderId: ""
59197
59197
  };
59198
59198
  }
59199
- return d === bM.Child ? g : e;
59199
+ return d === xM.Child ? g : e;
59200
59200
  }, [
59201
59201
  d,
59202
59202
  g,
@@ -59210,30 +59210,30 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59210
59210
  let T = o(() => {
59211
59211
  if (a) return;
59212
59212
  S.current = e?.path || "/";
59213
- let t = `__new_folder_${Date.now()}`, n = uN((e?.items ?? []).filter((e) => e.nodeType === BM.FOLDER));
59214
- u(t), x(n), s(!0), h(bM.Folder), _(e || null);
59213
+ let t = `__new_folder_${Date.now()}`, n = dN((e?.items ?? []).filter((e) => e.nodeType === VM.FOLDER));
59214
+ u(t), x(n), s(!0), h(xM.Folder), _(e || null);
59215
59215
  }, [a, e]), E = o((e) => {
59216
59216
  if (a) return;
59217
59217
  S.current = e?.parentPath || "/";
59218
59218
  let t = `__new_folder_${Date.now()}`;
59219
- x(uN((JM(i, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === BM.FOLDER))), u(t), s(!0), h(bM.Sibling), _(e), y(e?.parentPath || "/");
59220
- }, [a, i]), D = o((e) => {
59219
+ x(dN((YM(i, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === VM.FOLDER))), u(t), s(!0), h(xM.Sibling), _(e), y(e?.parentPath || "/");
59220
+ }, [a, i]), ee = o((e) => {
59221
59221
  if (a) return;
59222
59222
  S.current = e.path;
59223
59223
  let t = `__new_folder_${Date.now()}`;
59224
- x(uN((e?.items ?? []).filter((e) => e.nodeType === BM.FOLDER))), u(t), s(!0), h(bM.Child), _(e), y(e?.path || "/");
59225
- }, [a]), O = o((e) => {
59226
- a || (S.current = e?.parentPath || "/", x(uN((JM(i, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === BM.FOLDER))), h(bM.Sibling), _(e), y(e?.parentPath || "/"), s(!0));
59227
- }, [a, i]), k = o((e) => {
59228
- a || (S.current = e.path, x(uN((e?.items ?? []).filter((e) => e.nodeType === BM.FOLDER))), h(bM.Child), _(e), y(e?.path || "/"), s(!0));
59229
- }, [a]), ee = o(() => {
59230
- s(!1), u(null), h(bM.Folder), _(null), y(null), S.current = void 0, x("");
59231
- }, []), te = o((e) => {
59224
+ x(dN((e?.items ?? []).filter((e) => e.nodeType === VM.FOLDER))), u(t), s(!0), h(xM.Child), _(e), y(e?.path || "/");
59225
+ }, [a]), D = o((e) => {
59226
+ a || (S.current = e?.parentPath || "/", x(dN((YM(i, e?.parentPath || "/")?.items ?? []).filter((e) => e.nodeType === VM.FOLDER))), h(xM.Sibling), _(e), y(e?.parentPath || "/"), s(!0));
59227
+ }, [a, i]), O = o((e) => {
59228
+ a || (S.current = e.path, x(dN((e?.items ?? []).filter((e) => e.nodeType === VM.FOLDER))), h(xM.Child), _(e), y(e?.path || "/"), s(!0));
59229
+ }, [a]), te = o(() => {
59230
+ s(!1), u(null), h(xM.Folder), _(null), y(null), S.current = void 0, x("");
59231
+ }, []), k = o((e) => {
59232
59232
  let t = e.trim();
59233
59233
  if (!t) return C.emptyName;
59234
59234
  if (t.includes("..")) return C.consecutiveDotsError;
59235
59235
  if (t.startsWith(".") && t.length > 1) return C.hiddenItemWarning;
59236
- if (w && w.items && new Set((w.items ?? []).filter((e) => e.nodeType === BM.FOLDER).map((e) => e.name.toLowerCase())).has(t.toLowerCase())) return C.duplicateName;
59236
+ if (w && w.items && new Set((w.items ?? []).filter((e) => e.nodeType === VM.FOLDER).map((e) => e.name.toLowerCase())).has(t.toLowerCase())) return C.duplicateName;
59237
59237
  if (n && w) {
59238
59238
  let e = n(t, w);
59239
59239
  if (e) return e;
@@ -59251,27 +59251,27 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59251
59251
  newFolderDefaultName: b,
59252
59252
  startFolderCreation: T,
59253
59253
  startGridSiblingFolderCreation: E,
59254
- startTreeSiblingFolderCreation: O,
59255
- startGridChildFolderCreation: D,
59256
- startTreeChildFolderCreation: k,
59257
- cancelFolderCreation: ee,
59254
+ startTreeSiblingFolderCreation: D,
59255
+ startGridChildFolderCreation: ee,
59256
+ startTreeChildFolderCreation: O,
59257
+ cancelFolderCreation: te,
59258
59258
  saveFolderCreation: o(async (e) => {
59259
59259
  let n = e.trim();
59260
59260
  if (!n) return;
59261
- ee();
59262
- let r = `${w?.path ?? "/"}/${n}`, i = `${r}/${NM}`, a = {
59263
- fileContent: new File([], NM, { type: "text/plain" }),
59264
- name: NM
59261
+ te();
59262
+ let r = `${w?.path ?? "/"}/${n}`, i = `${r}/${PM}`, a = {
59263
+ fileContent: new File([], PM, { type: "text/plain" }),
59264
+ name: PM
59265
59265
  };
59266
59266
  t && await t(a, r, i);
59267
59267
  }, [
59268
59268
  w,
59269
59269
  t,
59270
- ee
59270
+ te
59271
59271
  ]),
59272
- validateFolderName: te
59272
+ validateFolderName: k
59273
59273
  };
59274
- }, FN = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
59274
+ }, IN = ({ additionalButtons: e, expandedPathsLength: t, collapseAll: n }) => {
59275
59275
  let r = t === 0;
59276
59276
  return { additionalButtons: f(() => /* @__PURE__ */ N(Ge, { children: [e, /* @__PURE__ */ M(Te, {
59277
59277
  disabled: r,
@@ -59287,7 +59287,7 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59287
59287
  r,
59288
59288
  n
59289
59289
  ]) };
59290
- }, IN = ({ onGetInfo: e }) => {
59290
+ }, LN = ({ onGetInfo: e }) => {
59291
59291
  let [t, n] = m(!1), [r, i] = m(void 0);
59292
59292
  return {
59293
59293
  isMetadataPopupOpen: t,
@@ -59300,18 +59300,18 @@ var AN = ({ items: e, onRenameValidate: t, validationMessages: n, onMoveToFiles:
59300
59300
  }, [])
59301
59301
  };
59302
59302
  };
59303
- function LN(e) {
59303
+ function RN(e) {
59304
59304
  let t = [];
59305
59305
  function n(e) {
59306
59306
  for (let r of e) t.push(r), r.items && n(r.items);
59307
59307
  }
59308
59308
  return n(e), t;
59309
59309
  }
59310
- function RN(e, t) {
59311
- let n = YM(t);
59312
- return e.filter((e) => YM(e.name).includes(n));
59310
+ function zN(e, t) {
59311
+ let n = XM(t);
59312
+ return e.filter((e) => XM(e.name).includes(n));
59313
59313
  }
59314
- function zN({ onSearchFiles: e, clearSearchResults: t, currentPath: n, searchResults: r = [], searchInProgress: i = !1, navigationPanelValue: a, onNavigationPanelSearchChange: s, allItems: l = [], activeTab: u }) {
59314
+ function BN({ onSearchFiles: e, clearSearchResults: t, currentPath: n, searchResults: r = [], searchInProgress: i = !1, navigationPanelValue: a, onNavigationPanelSearchChange: s, allItems: l = [], activeTab: u }) {
59315
59315
  let [d, h] = m(""), g = p(!1), _ = p(!1), v = p([]), y = p(n), b = p(u);
59316
59316
  c(() => {
59317
59317
  a != null && h(String(a));
@@ -59353,9 +59353,9 @@ function zN({ onSearchFiles: e, clearSearchResults: t, currentPath: n, searchRes
59353
59353
  searchResultsRows: f(() => {
59354
59354
  if (e) {
59355
59355
  let e = i ? v.current : r;
59356
- return !x || e.length === 0 ? e : RN(e, x);
59356
+ return !x || e.length === 0 ? e : zN(e, x);
59357
59357
  }
59358
- return !x || !l.length ? [] : RN(LN(l), x);
59358
+ return !x || !l.length ? [] : zN(RN(l), x);
59359
59359
  }, [
59360
59360
  e,
59361
59361
  r,
@@ -59365,7 +59365,7 @@ function zN({ onSearchFiles: e, clearSearchResults: t, currentPath: n, searchRes
59365
59365
  ])
59366
59366
  };
59367
59367
  }
59368
- function BN({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange: n }) {
59368
+ function VN({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange: n }) {
59369
59369
  let r = e !== void 0, [i, a] = m(() => t ?? /* @__PURE__ */ new Set()), s = f(() => r ? e : i, [
59370
59370
  r,
59371
59371
  e,
@@ -59383,14 +59383,14 @@ function BN({ selectedPaths: e, defaultSelectedPaths: t, onSelectedPathsChange:
59383
59383
  isControlled: r
59384
59384
  };
59385
59385
  }
59386
- var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem: i, path: a, defaultPath: s, filesLoading: l, selectedPaths: u, defaultSelectedPaths: d, 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: ee, onCopyFiles: te, onMoveToFiles: ne, onDeleteFiles: A, onDownloadFiles: re, onRenameValidate: ie, renameValidationMessages: j, forbiddenSymbolsRegExp: ae = De, forbiddenSymbolsTooltip: oe, onUploadFiles: se, onValidateUpload: ce, uploadEnabled: le, uploadValidationMessages: ue, maxFileSize: de, onUploadArchive: fe, prepareUploadFileName: pe, onCreateFolder: me, onCreateFolderValidate: he, folderCreationValidationMessages: ge, fileMetadataPopupOptions: _e, onGetInfo: ve, onUnshareFiles: ye, onRemoveFilesAccess: be, actionsRef: xe, sharedByMePaths: Se, onSearchFiles: Ce, searchResults: we, searchInProgress: Te, clearSearchResults: Ee, allowedFileTypes: Oe, maxSelectableFileSize: ke, getDisabledTooltip: Ae, fileTooLargeTooltip: je, unsupportedFileTypeTooltip: Me, emptyStateIcon: Ne, emptyStateTitle: Pe, emptyStateDescription: Fe, sharedWithMeIds: Ie, onFolderPopupPathChange: Le, onManagePermissions: Re, onPreview: ze, onOpenInNewTab: Be, previewExtensions: Ve, isRenameFileAvailable: He, isDuplicateFolderAvailable: Ue, customUploadFileAction: We, customCreateNewItemAction: Ge, customDuplicateAction: N, customDeleteItemsAction: Ke, customDownloadItemsAction: qe, customBreakpointRef: Je, gridClassName: Ye, nonClickableTableColumns: Xe, hideSearchPathItemName: Ze, showHiddenFileSwitcherInDestinationPopup: Qe, showCreateFolderButtonInDestinationPopup: $e, autoSelectUploadedItems: et = !1, maxNewFolderDepth: tt, onNewFolderDepthExceeded: nt, initialUploadFilesOpen: rt }) => {
59387
- let { selectedPaths: it, clearSelection: at, setSelectedPaths: ot } = BN({
59386
+ var HN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem: i, path: a, defaultPath: s, filesLoading: l, selectedPaths: u, defaultSelectedPaths: d, 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: ee, onTableFileClick: D, handleSelectionClick: O, onGridApiChange: te, onCopyFiles: k, onMoveToFiles: ne, onDeleteFiles: A, onDownloadFiles: re, onRenameValidate: ie, renameValidationMessages: j, forbiddenSymbolsRegExp: ae = De, forbiddenSymbolsTooltip: oe, onUploadFiles: se, onValidateUpload: ce, uploadEnabled: le, uploadValidationMessages: ue, maxFileSize: de, onUploadArchive: fe, prepareUploadFileName: pe, onCreateFolder: me, onCreateFolderValidate: he, folderCreationValidationMessages: ge, fileMetadataPopupOptions: _e, onGetInfo: ve, onUnshareFiles: ye, onRemoveFilesAccess: be, actionsRef: xe, sharedByMePaths: Se, onSearchFiles: Ce, searchResults: we, searchInProgress: Te, clearSearchResults: Ee, allowedFileTypes: Oe, maxSelectableFileSize: ke, getDisabledTooltip: Ae, fileTooLargeTooltip: je, unsupportedFileTypeTooltip: Me, emptyStateIcon: Ne, emptyStateTitle: Pe, emptyStateDescription: Fe, sharedWithMeIds: Ie, onFolderPopupPathChange: Le, onManagePermissions: Re, onPreview: ze, onOpenInNewTab: Be, previewExtensions: Ve, isRenameFileAvailable: He, isDuplicateFolderAvailable: Ue, customUploadFileAction: We, customCreateNewItemAction: Ge, customDuplicateAction: N, customDeleteItemsAction: Ke, customDownloadItemsAction: qe, customBreakpointRef: Je, gridClassName: Ye, nonClickableTableColumns: Xe, hideSearchPathItemName: Ze, showHiddenFileSwitcherInDestinationPopup: Qe, showCreateFolderButtonInDestinationPopup: $e, autoSelectUploadedItems: et = !1, maxNewFolderDepth: tt, onNewFolderDepthExceeded: nt, initialUploadFilesOpen: rt }) => {
59387
+ let { selectedPaths: it, clearSelection: at, setSelectedPaths: ot } = VN({
59388
59388
  selectedPaths: u,
59389
59389
  defaultSelectedPaths: d,
59390
59390
  onSelectedPathsChange: h
59391
59391
  }), st = p(!1), ct = p(null), lt = o((e, t, n) => {
59392
59392
  if (et) {
59393
- let { parent: e, name: n } = oN(t);
59393
+ let { parent: e, name: n } = sN(t);
59394
59394
  ct.current = {
59395
59395
  fileNames: /* @__PURE__ */ new Set([n]),
59396
59396
  destinationFolder: e
@@ -59410,20 +59410,20 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59410
59410
  }, [fe, et]), ft = f(() => {
59411
59411
  let e = /* @__PURE__ */ new Map();
59412
59412
  return it.forEach((t) => {
59413
- let n = qM(r, t);
59413
+ let n = JM(r, t);
59414
59414
  n && e.set(t, n);
59415
59415
  }), e;
59416
59416
  }, [it, r]);
59417
59417
  c(() => {
59418
59418
  if (it.size === 0) return;
59419
59419
  let e = !1;
59420
- for (let t of it) if (!qM(r, t)) {
59420
+ for (let t of it) if (!JM(r, t)) {
59421
59421
  e = !0;
59422
59422
  break;
59423
59423
  }
59424
59424
  if (e) {
59425
59425
  let e = /* @__PURE__ */ new Set();
59426
- for (let t of it) qM(r, t) && e.add(t);
59426
+ for (let t of it) JM(r, t) && e.add(t);
59427
59427
  ot(e);
59428
59428
  }
59429
59429
  }, [
@@ -59431,10 +59431,10 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59431
59431
  it,
59432
59432
  ot
59433
59433
  ]);
59434
- let { currentPath: pt, setCurrentPath: mt, handlePathChange: ht } = _N({
59434
+ let { currentPath: pt, setCurrentPath: mt, handlePathChange: ht } = vN({
59435
59435
  path: a,
59436
59436
  defaultPath: s,
59437
- onPathChange: D,
59437
+ onPathChange: ee,
59438
59438
  onSelectionClear: at
59439
59439
  }), gt = f(() => {
59440
59440
  let { showFiles: e = !0, showFolders: t = !0, ...n } = S || {};
@@ -59445,18 +59445,18 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59445
59445
  };
59446
59446
  }, [S]), _t = gt.showFiles, vt = gt.showFolders, [yt, bt] = m(), xt = T?.destinationFolderPath ?? yt, St = o((e) => {
59447
59447
  T?.setDestinationFolderPath ? T.setDestinationFolderPath(e) : bt(e);
59448
- }, [T]), { areHiddenFilesVisible: Ct, toggleHiddenFilesVisibility: wt } = dN({
59448
+ }, [T]), { areHiddenFilesVisible: Ct, toggleHiddenFilesVisibility: wt } = fN({
59449
59449
  showHiddenFiles: g,
59450
59450
  onShowHiddenFilesChange: _
59451
- }), { isTreeCollapsed: Tt, toggleTreeCollapse: Et, setIsTreeCollapsed: Dt } = fN({
59451
+ }), { isTreeCollapsed: Tt, toggleTreeCollapse: Et, setIsTreeCollapsed: Dt } = pN({
59452
59452
  collapsed: v?.collapsed,
59453
59453
  onCollapseChange: v?.onCollapseChange
59454
- }), { renamedPath: Ot, renamedItem: kt, renameHandler: At, renameSaveHandler: jt, renameCancelHandler: Mt, renameValidateHandler: Nt, getDisplayName: Pt } = AN({
59454
+ }), { renamedPath: Ot, renamedItem: kt, renameHandler: At, renameSaveHandler: jt, renameCancelHandler: Mt, renameValidateHandler: Nt, getDisplayName: Pt } = jN({
59455
59455
  items: r,
59456
59456
  onRenameValidate: ie,
59457
59457
  validationMessages: j,
59458
59458
  onMoveToFiles: ne
59459
- }), { isSearchMode: Ft, searchValue: It, effectiveSearchValue: Lt, setSearchValue: Rt, handleSearchChange: zt, handleSearchClear: Bt, searchResultsRows: Vt } = zN({
59459
+ }), { isSearchMode: Ft, searchValue: It, effectiveSearchValue: Lt, setSearchValue: Rt, handleSearchChange: zt, handleSearchClear: Bt, searchResultsRows: Vt } = BN({
59460
59460
  onSearchFiles: Ce,
59461
59461
  clearSearchResults: Ee,
59462
59462
  currentPath: pt,
@@ -59466,11 +59466,11 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59466
59466
  onNavigationPanelSearchChange: b?.onSearchChange,
59467
59467
  allItems: r,
59468
59468
  activeTab: C?.activeTab
59469
- }), Ht = f(() => JM(r, pt) ?? r[0], [r, pt]), Ut = o((e, t) => !t || !e ? !1 : lN(e.path) > t, []), Wt = o(() => {
59469
+ }), Ht = f(() => YM(r, pt) ?? r[0], [r, pt]), Ut = o((e, t) => !t || !e ? !1 : uN(e.path) > t, []), Wt = o(() => {
59470
59470
  nt?.();
59471
- }, [nt]), { handleCopyTo: Gt, handleMoveTo: Kt, handleDuplicate: qt, handleOpenDestinationFolderPopup: Jt, handleCloseDestinationFolderPopup: Yt, openDestinationFolderPopup: Xt, handleSetCopiedFiles: Zt, handleSetMovedFiles: Qt, destinationFolderMode: $t, destinationFolderTitle: en, conflictingFiles: tn, conflictResolutionOpen: nn, closeConflictResolution: rn, handleConflictReplace: an, handleConflictDuplicate: on, handleConflictCancel: sn, handleConflictDecideForEach: cn, sourceFolder: ln } = gN({
59472
- getDestinationFiles: (e) => JM(r, e)?.items ?? [],
59473
- onCopyFiles: te,
59471
+ }, [nt]), { handleCopyTo: Gt, handleMoveTo: Kt, handleDuplicate: qt, handleOpenDestinationFolderPopup: Jt, handleCloseDestinationFolderPopup: Yt, openDestinationFolderPopup: Xt, handleSetCopiedFiles: Zt, handleSetMovedFiles: Qt, destinationFolderMode: $t, destinationFolderTitle: en, conflictingFiles: tn, conflictResolutionOpen: nn, closeConflictResolution: rn, handleConflictReplace: an, handleConflictDuplicate: on, handleConflictCancel: sn, handleConflictDecideForEach: cn, sourceFolder: ln } = _N({
59472
+ getDestinationFiles: (e) => YM(r, e)?.items ?? [],
59473
+ onCopyFiles: k,
59474
59474
  onMoveToFiles: ne,
59475
59475
  onCopySuccess: at,
59476
59476
  onMoveSuccess: at,
@@ -59481,14 +59481,14 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59481
59481
  c(() => {
59482
59482
  Xt || St(void 0);
59483
59483
  }, [Xt, St]);
59484
- let { deleteConfirmationOpen: un, itemsToDelete: dn, openDeleteConfirmation: fn, closeDeleteConfirmation: pn, confirmDelete: mn } = vN({
59484
+ let { deleteConfirmationOpen: un, itemsToDelete: dn, openDeleteConfirmation: fn, closeDeleteConfirmation: pn, confirmDelete: mn } = yN({
59485
59485
  onDeleteFiles: A,
59486
59486
  onDeleteSuccess: at
59487
- }), { handleDownloadFiles: hn } = yN({
59487
+ }), { handleDownloadFiles: hn } = bN({
59488
59488
  onDownloadFiles: re,
59489
59489
  customDownloadItemsAction: qe,
59490
59490
  onDownloadSuccess: at
59491
- }), { isDragging: gn, isDraggingOverWindow: _n, uploadError: vn, handleDragEnter: yn, handleDragLeave: bn, handleDragOver: xn, handleDrop: Sn, clearError: Cn, openFileDialog: wn, fileInputRef: Tn, openArchiveDialog: En, uploadConflictingFiles: Dn, uploadConflictResolutionOpen: On, closeUploadConflictResolution: kn, handleUploadConflictReplace: An, handleUploadConflictDuplicate: jn, handleUploadConflictCancel: Mn, handleUploadConflictDecideForEach: Nn } = xN({
59491
+ }), { isDragging: gn, isDraggingOverWindow: _n, uploadError: vn, handleDragEnter: yn, handleDragLeave: bn, handleDragOver: xn, handleDrop: Sn, clearError: Cn, openFileDialog: wn, fileInputRef: Tn, openArchiveDialog: En, uploadConflictingFiles: Dn, uploadConflictResolutionOpen: On, closeUploadConflictResolution: kn, handleUploadConflictReplace: An, handleUploadConflictDuplicate: jn, handleUploadConflictCancel: Mn, handleUploadConflictDecideForEach: Nn } = SN({
59492
59492
  onUploadFiles: ut,
59493
59493
  onValidateUpload: ce,
59494
59494
  maxFileSize: de,
@@ -59535,7 +59535,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59535
59535
  Bt
59536
59536
  ]), zn = o((e) => {
59537
59537
  N?.(e);
59538
- }, [N]), { isCreatingFolder: Bn, newFolderTempId: Vn, createdFolderPath: Hn, newFolderDefaultName: Un, startFolderCreation: Wn, startGridSiblingFolderCreation: Gn, startTreeSiblingFolderCreation: Kn, startGridChildFolderCreation: qn, startTreeChildFolderCreation: Jn, cancelFolderCreation: Yn, saveFolderCreation: Xn, validateFolderName: Zn } = PN({
59538
+ }, [N]), { isCreatingFolder: Bn, newFolderTempId: Vn, createdFolderPath: Hn, newFolderDefaultName: Un, startFolderCreation: Wn, startGridSiblingFolderCreation: Gn, startTreeSiblingFolderCreation: Kn, startGridChildFolderCreation: qn, startTreeChildFolderCreation: Jn, cancelFolderCreation: Yn, saveFolderCreation: Xn, validateFolderName: Zn } = FN({
59539
59539
  currentFolder: Ht,
59540
59540
  onCreateFolder: lt,
59541
59541
  onValidateFolderName: he,
@@ -59554,7 +59554,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59554
59554
  tt,
59555
59555
  Ut,
59556
59556
  Wt
59557
- ]), { newActions: $n, isNewButtonVisible: er, isNewButtonDisabled: tr } = MN({
59557
+ ]), { newActions: $n, isNewButtonVisible: er, isNewButtonDisabled: tr } = NN({
59558
59558
  newActions: C?.newActions,
59559
59559
  currentFolder: Ht,
59560
59560
  onUploadFiles: We ? Ln : Fn,
@@ -59565,7 +59565,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59565
59565
  }), nr = f(() => {
59566
59566
  if (Ft) {
59567
59567
  let e = Vt;
59568
- _t || (e = e.filter((e) => e.nodeType !== BM.ITEM)), vt || (e = e.filter((e) => e.nodeType !== BM.FOLDER)), Ct || (e = e.filter((e) => !e.path.split("/").filter(Boolean).some((e) => e.startsWith("."))));
59568
+ _t || (e = e.filter((e) => e.nodeType !== VM.ITEM)), vt || (e = e.filter((e) => e.nodeType !== VM.FOLDER)), Ct || (e = e.filter((e) => !e.path.split("/").filter(Boolean).some((e) => e.startsWith("."))));
59569
59569
  let t = e.map((e) => ({
59570
59570
  ...e,
59571
59571
  id: e.id ?? e.path,
@@ -59587,14 +59587,14 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59587
59587
  updatedAt: void 0,
59588
59588
  author: void 0,
59589
59589
  path: pt ?? "/",
59590
- nodeType: BM.FOLDER,
59590
+ nodeType: VM.FOLDER,
59591
59591
  extension: void 0,
59592
59592
  isTemporary: !0,
59593
59593
  owner: void 0
59594
59594
  }), t;
59595
59595
  }
59596
- let e = YM(Lt).trim(), t = Ht?.items ?? [], n = e ? ZM(Ht) : t;
59597
- _t || (n = n.filter((e) => e.nodeType !== BM.ITEM)), vt || (n = n.filter((e) => e.nodeType !== BM.FOLDER)), Ct || (n = n.filter((t) => e ? !t.path.split("/").filter(Boolean).some((e) => e.startsWith(".")) : !QM(t)));
59596
+ let e = XM(Lt).trim(), t = Ht?.items ?? [], n = e ? QM(Ht) : t;
59597
+ _t || (n = n.filter((e) => e.nodeType !== VM.ITEM)), vt || (n = n.filter((e) => e.nodeType !== VM.FOLDER)), Ct || (n = n.filter((t) => e ? !t.path.split("/").filter(Boolean).some((e) => e.startsWith(".")) : !$M(t)));
59598
59598
  let r = n.map((e) => ({
59599
59599
  ...e,
59600
59600
  id: e.id ?? e.path,
@@ -59617,7 +59617,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59617
59617
  updatedAt: void 0,
59618
59618
  author: void 0,
59619
59619
  path: pt ?? "/",
59620
- nodeType: BM.FOLDER,
59620
+ nodeType: VM.FOLDER,
59621
59621
  extension: void 0,
59622
59622
  isTemporary: !0,
59623
59623
  owner: void 0
@@ -59625,7 +59625,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59625
59625
  let i = e.split(/\s+/).filter(Boolean);
59626
59626
  return r.filter((e) => {
59627
59627
  if (e.isTemporary) return !0;
59628
- let t = YM(e.name), n = YM(e.author), r = XM(e.extension);
59628
+ let t = XM(e.name), n = XM(e.author), r = ZM(e.extension);
59629
59629
  return i.every((e) => t.includes(e) || n.includes(e) || r.includes(e));
59630
59630
  });
59631
59631
  }, [
@@ -59648,10 +59648,10 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59648
59648
  ct.current = null;
59649
59649
  return;
59650
59650
  }
59651
- let t = JM(r, e.destinationFolder);
59651
+ let t = YM(r, e.destinationFolder);
59652
59652
  if (!t?.items) return;
59653
59653
  let n = /* @__PURE__ */ new Set();
59654
- for (let r of t.items) e.fileNames.has(r.name) && sN(r, Oe, ke) && n.add(r.path);
59654
+ for (let r of t.items) e.fileNames.has(r.name) && cN(r, Oe, ke) && n.add(r.path);
59655
59655
  n.size > 0 && (ot(n), ct.current = null);
59656
59656
  }, [
59657
59657
  r,
@@ -59667,11 +59667,11 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59667
59667
  }, [ht]), ir = o((e) => {
59668
59668
  ht(e);
59669
59669
  }, [ht]), ar = o((e) => {
59670
- e.nodeType === BM.FOLDER ? ht(e.path) : O?.(e);
59671
- }, [ht, O]), { expandedPaths: or, setExpandedPaths: sr, collapseAll: cr } = jN({
59670
+ e.nodeType === VM.FOLDER ? ht(e.path) : D?.(e);
59671
+ }, [ht, D]), { expandedPaths: or, setExpandedPaths: sr, collapseAll: cr } = MN({
59672
59672
  expandedPaths: v?.expandedPaths,
59673
59673
  onExpandedPathsChange: v?.onExpandedPathsChange
59674
- }), { additionalButtons: lr } = FN({
59674
+ }), { additionalButtons: lr } = IN({
59675
59675
  collapseAll: cr,
59676
59676
  expandedPathsLength: or.size,
59677
59677
  additionalButtons: v?.additionalButtons
@@ -59737,10 +59737,10 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59737
59737
  tt,
59738
59738
  Ut,
59739
59739
  Wt
59740
- ]), { isMetadataPopupOpen: mr, selectedFileForMetadata: P, openMetadataPopup: hr, closeMetadataPopup: gr } = IN({ onGetInfo: ve }), _r = o(() => {
59740
+ ]), { isMetadataPopupOpen: mr, selectedFileForMetadata: P, openMetadataPopup: hr, closeMetadataPopup: gr } = LN({ onGetInfo: ve }), _r = o(() => {
59741
59741
  gr(), _e?.clearMetadata?.();
59742
59742
  }, [gr, _e]), vr = f(() => {
59743
- if (ae) return iN(ae);
59743
+ if (ae) return aN(ae);
59744
59744
  }, [ae]), yr = {
59745
59745
  managerLabel: e,
59746
59746
  className: n,
@@ -59820,9 +59820,9 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59820
59820
  handleBreadcrumbItemClick: ir,
59821
59821
  handleSearchChange: zt,
59822
59822
  handleTableRowClick: ar,
59823
- onTableFileClick: O,
59824
- handleSelectionClick: k,
59825
- onGridApiChange: ee,
59823
+ onTableFileClick: D,
59824
+ handleSelectionClick: O,
59825
+ onGridApiChange: te,
59826
59826
  isDragging: gn,
59827
59827
  uploadError: vn,
59828
59828
  handleDragEnter: yn,
@@ -59901,11 +59901,11 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59901
59901
  maxNewFolderDepth: tt,
59902
59902
  onNewFolderDepthExceeded: nt
59903
59903
  };
59904
- return /* @__PURE__ */ M(SN.Provider, {
59904
+ return /* @__PURE__ */ M(CN.Provider, {
59905
59905
  value: yr,
59906
59906
  children: t
59907
59907
  });
59908
- }, HN = ({ disabledGridRowIds: e, gridRows: t, getDisabledTooltip: n, getRowDisabledTooltip: r, allowedFileTypes: i, maxSelectableFileSize: a }) => {
59908
+ }, UN = ({ disabledGridRowIds: e, gridRows: t, getDisabledTooltip: n, getRowDisabledTooltip: r, allowedFileTypes: i, maxSelectableFileSize: a }) => {
59909
59909
  let [o, s] = m(null), [l, u] = m(null);
59910
59910
  c(() => {
59911
59911
  let e = () => {
@@ -59951,7 +59951,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59951
59951
  children: [/* @__PURE__ */ M(ve, {
59952
59952
  asChild: !0,
59953
59953
  children: /* @__PURE__ */ M("div", {
59954
- className: (0, sM.default)("fixed z-[-1]", p && "pointer-events-none"),
59954
+ className: (0, cM.default)("fixed z-[-1]", p && "pointer-events-none"),
59955
59955
  style: {
59956
59956
  top: l.top,
59957
59957
  left: l.left,
@@ -59964,15 +59964,15 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59964
59964
  children: p
59965
59965
  })]
59966
59966
  }), document.body) });
59967
- }, UN = () => typeof window < "u" && window.innerWidth < 640, WN = () => {
59968
- let [e, t] = m(UN());
59967
+ }, WN = () => typeof window < "u" && window.innerWidth < 640, GN = () => {
59968
+ let [e, t] = m(WN());
59969
59969
  return c(() => {
59970
- let e = () => t(UN());
59970
+ let e = () => t(WN());
59971
59971
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
59972
59972
  }, []), e;
59973
- }, GN = ({ onClose: e, onConfirm: t, onFolderPopupPathChange: n, setDestinationFolderPath: r, open: i, copyLabel: a = "Copy", moveLabel: s = "Move", addFolderLabel: c = "Add folder", mode: l = _M.Copy, hiddenFilesSwitcherLabel: u = "Show hidden files", showHiddenFileSwitcher: d = !0, showCreateFolderButton: g = !0, onUploadFiles: v, onValidateUpload: y, maxFileSize: b, header: x, sourceFolder: S, disabledPathTooltip: C = "Unavailable for the original path. Please select another folder", path: w, collapsedFileTree: T = !1, alertProps: E, processDestinationFolderPath: D, ...O }) => {
59974
- let [k, ee] = m(!1), [te, ne] = m(!1), A = p(null), re = WN(), ie = o((e) => {
59975
- ee(e);
59973
+ }, KN = ({ onClose: e, onConfirm: t, onFolderPopupPathChange: n, setDestinationFolderPath: r, open: i, copyLabel: a = "Copy", moveLabel: s = "Move", addFolderLabel: c = "Add folder", mode: l = vM.Copy, hiddenFilesSwitcherLabel: u = "Show hidden files", showHiddenFileSwitcher: d = !0, showCreateFolderButton: g = !0, onUploadFiles: v, onValidateUpload: y, maxFileSize: b, header: x, sourceFolder: S, disabledPathTooltip: C = "Unavailable for the original path. Please select another folder", path: w, collapsedFileTree: T = !1, alertProps: E, processDestinationFolderPath: ee, ...D }) => {
59974
+ let [O, te] = m(!1), [k, ne] = m(!1), A = p(null), re = GN(), ie = o((e) => {
59975
+ te(e);
59976
59976
  }, []), j = f(() => {
59977
59977
  let e = [];
59978
59978
  return g && e.push({
@@ -59993,7 +59993,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
59993
59993
  className: "text-secondary"
59994
59994
  }),
59995
59995
  onClick: () => {
59996
- ee((e) => !e), ne(!1);
59996
+ te((e) => !e), ne(!1);
59997
59997
  }
59998
59998
  }), e;
59999
59999
  }, [
@@ -60003,14 +60003,14 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60003
60003
  g
60004
60004
  ]), ae = o((e) => {
60005
60005
  if (e) {
60006
- let t = D ? D(e) : e;
60006
+ let t = ee ? ee(e) : e;
60007
60007
  n?.(t), r?.(t);
60008
60008
  }
60009
60009
  }, [
60010
60010
  n,
60011
60011
  r,
60012
- D
60013
- ]), oe = l === _M.Copy ? "Copy to" : "Move to", se = f(() => !w || !S ? !1 : S === w, [w, S]);
60012
+ ee
60013
+ ]), oe = l === vM.Copy ? "Copy to" : "Move to", se = f(() => !w || !S ? !1 : S === w, [w, S]);
60014
60014
  return /* @__PURE__ */ M(Me, {
60015
60015
  open: i,
60016
60016
  onClose: () => {
@@ -60024,7 +60024,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60024
60024
  className: "flex items-center gap-4 min-w-0",
60025
60025
  children: re ? /* @__PURE__ */ M(ye, {
60026
60026
  items: j,
60027
- open: te,
60027
+ open: k,
60028
60028
  onOpenChange: ne,
60029
60029
  children: /* @__PURE__ */ M(Te, {
60030
60030
  size: Se.Large,
@@ -60045,7 +60045,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60045
60045
  className: "inline-flex items-center cursor-pointer",
60046
60046
  children: /* @__PURE__ */ M(de, {
60047
60047
  label: u,
60048
- isOn: k,
60048
+ isOn: O,
60049
60049
  onChange: ie,
60050
60050
  switchId: "hidden-files-switch-modal"
60051
60051
  })
@@ -60079,27 +60079,27 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60079
60079
  children: /* @__PURE__ */ M(ke, { ...E })
60080
60080
  }), /* @__PURE__ */ M("div", {
60081
60081
  className: "flex-1 min-h-0",
60082
- children: /* @__PURE__ */ M(DP, {
60083
- ...O,
60082
+ children: /* @__PURE__ */ M(OP, {
60083
+ ...D,
60084
60084
  gridClassName: "size-full",
60085
- className: Ue(O.className, "bg-layer-sunken h-full flex pt-0"),
60085
+ className: Ue(D.className, "bg-layer-sunken h-full flex pt-0"),
60086
60086
  actionsRef: A,
60087
60087
  path: w,
60088
- showHiddenFiles: k,
60088
+ showHiddenFiles: O,
60089
60089
  onShowHiddenFilesChange: ie,
60090
60090
  treeOptions: {
60091
- ...O.treeOptions,
60091
+ ...D.treeOptions,
60092
60092
  collapsed: T,
60093
- expandedPaths: /* @__PURE__ */ new Set([O.rootItem?.path || "/"]),
60094
- header: O.treeOptions?.header
60093
+ expandedPaths: /* @__PURE__ */ new Set([D.rootItem?.path || "/"]),
60094
+ header: D.treeOptions?.header
60095
60095
  },
60096
60096
  gridOptions: {
60097
- ...O.gridOptions,
60097
+ ...D.gridOptions,
60098
60098
  selectionMode: void 0
60099
60099
  },
60100
60100
  navigationPanelOptions: {
60101
60101
  elementId: "file-manager-destination-search",
60102
- ...O.navigationPanelOptions
60102
+ ...D.navigationPanelOptions
60103
60103
  },
60104
60104
  onUploadFiles: v,
60105
60105
  onValidateUpload: y,
@@ -60110,7 +60110,7 @@ var VN = ({ managerLabel: e, children: t, className: n, items: r = [], rootItem:
60110
60110
  })
60111
60111
  });
60112
60112
  };
60113
- function KN({ actions: e, direction: t = Ce.Normal, moreButtonWidth: n = g, actionsGap: r = 8, containerPadding: i = 8, dependencies: a = [] }) {
60113
+ function qN({ actions: e, direction: t = Ce.Normal, moreButtonWidth: n = g, actionsGap: r = 8, containerPadding: i = 8, dependencies: a = [] }) {
60114
60114
  let s = p(null), l = p(null), u = p(null), f = p(null), h = p([]), [_, v] = m(0), y = o((e, a) => {
60115
60115
  let o = (u.current?.offsetWidth ?? 0) + (f.current?.offsetWidth ?? 0), s = a.getBoundingClientRect().width - o - n - r * 2 - i * 2, c = 0, l = 0;
60116
60116
  if (t === Ce.Reverse) for (let t = e.length - 1; t >= 0 && (c += e[t] + r, !(c > s)); t--) l++;
@@ -60162,13 +60162,13 @@ function KN({ actions: e, direction: t = Ce.Normal, moreButtonWidth: n = g, acti
60162
60162
  }
60163
60163
  };
60164
60164
  }
60165
- var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions: n, selectedCount: r }) => {
60166
- let i = WN(), { refs: { containerRef: a, leftSectionRef: o, measureRef: s }, visibleActions: c, hiddenActions: l } = KN({
60165
+ var JN = 12, YN = 8, XN = ({ getSelectionLabel: e, onClearSelection: t, actions: n, selectedCount: r }) => {
60166
+ let i = GN(), { refs: { containerRef: a, leftSectionRef: o, measureRef: s }, visibleActions: c, hiddenActions: l } = qN({
60167
60167
  actions: n,
60168
60168
  direction: Ce.Reverse,
60169
60169
  dependencies: [i],
60170
- actionsGap: qN,
60171
- containerPadding: JN
60170
+ actionsGap: JN,
60171
+ containerPadding: YN
60172
60172
  }), u = e(r);
60173
60173
  return /* @__PURE__ */ N(Ge, { children: [/* @__PURE__ */ M("div", {
60174
60174
  ref: s,
@@ -60213,7 +60213,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60213
60213
  }, e))]
60214
60214
  })]
60215
60215
  })] });
60216
- }, XN = ({ open: e, itemsToDelete: t, onClose: n, onConfirm: r, cancelLabel: i = "Cancel", confirmLabel: a = "Delete", titleRenderer: o, contentRenderer: s }) => {
60216
+ }, ZN = ({ open: e, itemsToDelete: t, onClose: n, onConfirm: r, cancelLabel: i = "Cancel", confirmLabel: a = "Delete", titleRenderer: o, contentRenderer: s }) => {
60217
60217
  let c = t.map((e) => e.name), l = "Confirm Deleting Items", u = o?.(c) || l, d = /* @__PURE__ */ N("div", {
60218
60218
  className: "px-6 py-3 dial-small-text",
60219
60219
  children: [/* @__PURE__ */ M("p", {
@@ -60271,12 +60271,12 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60271
60271
  onConfirm: r,
60272
60272
  children: f
60273
60273
  });
60274
- }, ZN = (e) => e.split("/").map((e) => e.trim()).filter(Boolean), QN = "w-full flex items-center justify-between gap-4", $N = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", eP = "w-[260px]", tP = ({ ariaLabel: e = "Breadcrumb", labelClassName: t, onItemClick: n, path: r, makeHref: i, rootItemPath: a, rootItemLabel: s, breadcrumbsHiddenPathPart: c, className: l, breadcrumbClassName: u, searchable: d = !0, value: p, elementId: g = "file-manager-search", disabled: _, invalid: v, onSearchChange: y, searchClassName: b, searchContainerClassName: x, isCompactView: S = !1 }) => {
60274
+ }, QN = (e) => e.split("/").map((e) => e.trim()).filter(Boolean), $N = "w-full flex items-center justify-between gap-4", eP = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-raised px-3 flex items-center rounded", tP = "w-[260px]", nP = ({ ariaLabel: e = "Breadcrumb", labelClassName: t, onItemClick: n, path: r, makeHref: i, rootItemPath: a, rootItemLabel: s, breadcrumbsHiddenPathPart: c, className: l, breadcrumbClassName: u, searchable: d = !0, value: p, elementId: g = "file-manager-search", disabled: _, invalid: v, onSearchChange: y, searchClassName: b, searchContainerClassName: x, isCompactView: S = !1 }) => {
60275
60275
  let C = f(() => {
60276
60276
  if (!r) return;
60277
- let e = ZN(r), t = [...e], o = 0;
60277
+ let e = QN(r), t = [...e], o = 0;
60278
60278
  if (c) {
60279
- let t = ZN(c);
60279
+ let t = QN(c);
60280
60280
  if (t.length) {
60281
60281
  let n = e.findIndex((n, r) => t.every((t, n) => e[r + n] === t));
60282
60282
  n !== -1 && (o = t.length, e = [...e.slice(0, n), ...e.slice(n + t.length)]);
@@ -60314,7 +60314,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60314
60314
  s,
60315
60315
  i,
60316
60316
  n
60317
- ]), [w, T] = m(!1), D = o(() => {
60317
+ ]), [w, T] = m(!1), ee = o(() => {
60318
60318
  if (S && !w) {
60319
60319
  T(!0);
60320
60320
  let e = document.getElementById(g);
@@ -60324,16 +60324,16 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60324
60324
  g,
60325
60325
  w,
60326
60326
  S
60327
- ]), O = o(() => {
60327
+ ]), D = o(() => {
60328
60328
  (!p || String(p).trim() === "") && y?.("");
60329
- }, [p, y]), k = o(() => S && w ? /* @__PURE__ */ M(Oe, {
60329
+ }, [p, y]), O = o(() => S && w ? /* @__PURE__ */ M(Oe, {
60330
60330
  className: "!p-[9px]",
60331
60331
  iconBefore: /* @__PURE__ */ M(Je, { ...h }),
60332
60332
  onClick: () => {
60333
60333
  T(!1), y?.("");
60334
60334
  }
60335
60335
  }) : /* @__PURE__ */ M("div", {
60336
- className: $N,
60336
+ className: eP,
60337
60337
  children: /* @__PURE__ */ M(E, {
60338
60338
  pathItems: C,
60339
60339
  ariaLabel: e,
@@ -60350,22 +60350,22 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60350
60350
  y
60351
60351
  ]);
60352
60352
  return /* @__PURE__ */ N("div", {
60353
- className: Ue(QN, { "gap-3": S }, l),
60353
+ className: Ue($N, { "gap-3": S }, l),
60354
60354
  "aria-label": "navigation-panel",
60355
- children: [k(), d && /* @__PURE__ */ M("div", {
60356
- className: Ue(eP, {
60355
+ children: [O(), d && /* @__PURE__ */ M("div", {
60356
+ className: Ue(tP, {
60357
60357
  "w-[40px]": S && !w,
60358
60358
  "w-full": S && w
60359
60359
  }),
60360
60360
  role: "search",
60361
60361
  "aria-label": "Search",
60362
- onClick: D,
60362
+ onClick: ee,
60363
60363
  children: /* @__PURE__ */ M(le, {
60364
60364
  id: g,
60365
60365
  value: p ?? "",
60366
60366
  onChange: y,
60367
60367
  disabled: _,
60368
- onBlur: O,
60368
+ onBlur: D,
60369
60369
  invalid: v,
60370
60370
  className: b,
60371
60371
  wrapperClassName: S && !w ? "pl-2.5" : "",
@@ -60373,8 +60373,8 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60373
60373
  })
60374
60374
  })]
60375
60375
  });
60376
- }, nP = ({ tabs: e, activeTab: t, onTabChange: n, areHiddenFilesVisible: r, onToggleHiddenFiles: i, isNewButtonVisible: a, isNewButtonDisabled: o, newButtonVariant: s = y.Primary, newButtonDropdownItems: c = [], newButtonLabel: l = "New", hiddenFilesSwitcherLabel: u = "Hidden files", showHiddenFilesLabel: d = "Show hidden files", hideHiddenFilesLabel: p = "Hide hidden files", showHiddenFilesToggle: m = !0, disabledNewButtonTooltip: g }) => {
60377
- let _ = WN(), b = f(() => [{
60376
+ }, rP = ({ tabs: e, activeTab: t, onTabChange: n, areHiddenFilesVisible: r, onToggleHiddenFiles: i, isNewButtonVisible: a, isNewButtonDisabled: o, newButtonVariant: s = y.Primary, newButtonDropdownItems: c = [], newButtonLabel: l = "New", hiddenFilesSwitcherLabel: u = "Hidden files", showHiddenFilesLabel: d = "Show hidden files", hideHiddenFilesLabel: p = "Hide hidden files", showHiddenFilesToggle: m = !0, disabledNewButtonTooltip: g }) => {
60377
+ let _ = GN(), b = f(() => [{
60378
60378
  key: "hidden-files-switch",
60379
60379
  label: r ? p : d,
60380
60380
  icon: M(r ? it : rt, {
@@ -60436,7 +60436,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60436
60436
  })] })
60437
60437
  })]
60438
60438
  });
60439
- }, rP = 100, iP = 16, aP = "text-secondary", oP = "text-primary min-w-0", sP = "text-primary break-words min-w-0", cP = "bg-layer-sunken", lP = ({ 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__ */ M(Me, {
60439
+ }, iP = 100, aP = 16, oP = "text-secondary", sP = "text-primary min-w-0", cP = "text-primary break-words min-w-0", lP = "bg-layer-sunken", uP = ({ 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__ */ M(Me, {
60440
60440
  open: e,
60441
60441
  onClose: t,
60442
60442
  size: Ne.Sm,
@@ -60446,106 +60446,106 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60446
60446
  className: "px-6 py-4",
60447
60447
  children: /* @__PURE__ */ M("div", {
60448
60448
  className: "grid gap-4 items-center dial-small-text",
60449
- style: { gridTemplateColumns: `${rP}px 1fr` },
60449
+ style: { gridTemplateColumns: `${iP}px 1fr` },
60450
60450
  children: r ? /* @__PURE__ */ N(Ge, { children: [
60451
60451
  /* @__PURE__ */ M("div", {
60452
- className: aP,
60452
+ className: oP,
60453
60453
  children: a
60454
60454
  }),
60455
60455
  /* @__PURE__ */ M(Re, {
60456
60456
  variant: ze.Text,
60457
60457
  width: "100%",
60458
- height: iP,
60459
- className: cP
60458
+ height: aP,
60459
+ className: lP
60460
60460
  }),
60461
60461
  /* @__PURE__ */ M("div", {
60462
- className: aP,
60462
+ className: oP,
60463
60463
  children: s
60464
60464
  }),
60465
60465
  /* @__PURE__ */ M(Re, {
60466
60466
  variant: ze.Text,
60467
60467
  width: "90%",
60468
- height: iP,
60469
- className: cP
60468
+ height: aP,
60469
+ className: lP
60470
60470
  }),
60471
60471
  /* @__PURE__ */ M("div", {
60472
- className: aP,
60472
+ className: oP,
60473
60473
  children: c
60474
60474
  }),
60475
60475
  /* @__PURE__ */ M(Re, {
60476
60476
  variant: ze.Text,
60477
60477
  width: "60%",
60478
- height: iP,
60479
- className: cP
60478
+ height: aP,
60479
+ className: lP
60480
60480
  }),
60481
60481
  /* @__PURE__ */ M("div", {
60482
- className: aP,
60482
+ className: oP,
60483
60483
  children: l
60484
60484
  }),
60485
60485
  /* @__PURE__ */ M(Re, {
60486
60486
  variant: ze.Text,
60487
60487
  width: "80%",
60488
- height: iP,
60489
- className: cP
60488
+ height: aP,
60489
+ className: lP
60490
60490
  }),
60491
60491
  /* @__PURE__ */ M("div", {
60492
- className: aP,
60492
+ className: oP,
60493
60493
  children: o
60494
60494
  }),
60495
60495
  /* @__PURE__ */ M(Re, {
60496
60496
  variant: ze.Text,
60497
60497
  width: "70%",
60498
- height: iP,
60499
- className: cP
60498
+ height: aP,
60499
+ className: lP
60500
60500
  })
60501
60501
  ] }) : n ? /* @__PURE__ */ N(Ge, { children: [
60502
60502
  /* @__PURE__ */ M("div", {
60503
- className: aP,
60503
+ className: oP,
60504
60504
  children: a
60505
60505
  }),
60506
60506
  /* @__PURE__ */ M("div", {
60507
- className: oP,
60508
- children: /* @__PURE__ */ M(te, { text: n.name })
60507
+ className: sP,
60508
+ children: /* @__PURE__ */ M(k, { text: n.name })
60509
60509
  }),
60510
60510
  /* @__PURE__ */ M("div", {
60511
- className: aP,
60511
+ className: oP,
60512
60512
  children: s
60513
60513
  }),
60514
60514
  /* @__PURE__ */ M("div", {
60515
- className: oP,
60516
- children: /* @__PURE__ */ M(te, { text: eN(n.updatedAt, u, d) })
60515
+ className: sP,
60516
+ children: /* @__PURE__ */ M(k, { text: tN(n.updatedAt, u, d) })
60517
60517
  }),
60518
60518
  /* @__PURE__ */ M("div", {
60519
- className: aP,
60519
+ className: oP,
60520
60520
  children: c
60521
60521
  }),
60522
60522
  /* @__PURE__ */ M("div", {
60523
- className: oP,
60524
- children: /* @__PURE__ */ M(te, { text: $M(n.contentLength) })
60523
+ className: sP,
60524
+ children: /* @__PURE__ */ M(k, { text: eN(n.contentLength) })
60525
60525
  }),
60526
60526
  /* @__PURE__ */ M("div", {
60527
- className: aP,
60527
+ className: oP,
60528
60528
  children: l
60529
60529
  }),
60530
60530
  /* @__PURE__ */ M("div", {
60531
- className: oP,
60532
- children: /* @__PURE__ */ M(te, { text: n.author || "—" })
60531
+ className: sP,
60532
+ children: /* @__PURE__ */ M(k, { text: n.author || "—" })
60533
60533
  }),
60534
60534
  /* @__PURE__ */ M("div", {
60535
- className: aP,
60535
+ className: oP,
60536
60536
  children: o
60537
60537
  }),
60538
60538
  /* @__PURE__ */ M("div", {
60539
- className: sP,
60539
+ className: cP,
60540
60540
  children: decodeURIComponent(n.path)
60541
60541
  })
60542
60542
  ] }) : null
60543
60543
  })
60544
60544
  })
60545
- }), uP = {
60545
+ }), dP = {
60546
60546
  size: 10,
60547
60547
  stroke: 2
60548
- }, dP = 26, fP = "__new_folder", pP = ({ name: e, type: t, shared: n = !1, loading: r = !1, sharedIndicatorClassName: i, sharedIndicatorTooltip: a, fileExtension: o, ...s }) => {
60548
+ }, fP = 26, pP = "__new_folder", mP = ({ name: e, type: t, shared: n = !1, loading: r = !1, sharedIndicatorClassName: i, sharedIndicatorTooltip: a, fileExtension: o, ...s }) => {
60549
60549
  let c = (e) => /* @__PURE__ */ N("span", {
60550
60550
  className: "inline-flex relative text-secondary",
60551
60551
  role: "img",
@@ -60579,7 +60579,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60579
60579
  }),
60580
60580
  className: "inline-block align-middle"
60581
60581
  })) : null;
60582
- }, mP = ({ 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: g, sharedIndicatorClassName: _, sharedIndicatorTooltip: v, fileExtension: y }) => {
60582
+ }, hP = ({ 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: g, sharedIndicatorClassName: _, sharedIndicatorTooltip: v, fileExtension: y }) => {
60583
60583
  let b = () => {
60584
60584
  let e = d?.startsWith(`${je.Warning}__`);
60585
60585
  if (!u && !e) return null;
@@ -60600,7 +60600,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60600
60600
  return /* @__PURE__ */ N("div", {
60601
60601
  className: "flex gap-2 items-center",
60602
60602
  ...He,
60603
- children: [/* @__PURE__ */ M(pP, {
60603
+ children: [/* @__PURE__ */ M(mP, {
60604
60604
  name: e,
60605
60605
  type: t,
60606
60606
  label: s,
@@ -60623,7 +60623,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60623
60623
  inputRef: m
60624
60624
  })]
60625
60625
  });
60626
- }, hP = ({ name: e, type: t, elementId: n, editing: r = !1, loading: i = !1, creating: a = !1, shared: o = !1, iconSize: s = g, validate: c, onSave: l, fileExtension: u, onCancel: d, onCreateFolderCancel: f, onCreateFolderSave: p, inputContainerClassName: m, sharedIndicatorClassName: h, sharedIndicatorTooltip: _, hideTooltip: v = !1, forbiddenSymbolsRegExp: y, forbiddenSymbolsTooltip: b, ...x }) => {
60626
+ }, gP = ({ name: e, type: t, elementId: n, editing: r = !1, loading: i = !1, creating: a = !1, shared: o = !1, iconSize: s = g, validate: c, onSave: l, fileExtension: u, onCancel: d, onCreateFolderCancel: f, onCreateFolderSave: p, inputContainerClassName: m, sharedIndicatorClassName: h, sharedIndicatorTooltip: _, hideTooltip: v = !1, forbiddenSymbolsRegExp: y, forbiddenSymbolsTooltip: b, ...x }) => {
60627
60627
  let { value: S, invalid: C, invalidMessage: w, onChange: T, inputRef: E } = We({
60628
60628
  value: e,
60629
60629
  isEditing: r,
@@ -60636,7 +60636,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60636
60636
  onCreateFolderSave: p
60637
60637
  });
60638
60638
  if (!r && !a) {
60639
- let n = aN({
60639
+ let n = oN({
60640
60640
  name: e,
60641
60641
  isFolder: t === oe.Folder
60642
60642
  }, y, b), r = !!n;
@@ -60662,7 +60662,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60662
60662
  tooltipContent: n
60663
60663
  });
60664
60664
  }
60665
- return /* @__PURE__ */ M(mP, {
60665
+ return /* @__PURE__ */ M(hP, {
60666
60666
  type: t,
60667
60667
  name: S,
60668
60668
  elementId: n,
@@ -60676,27 +60676,27 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60676
60676
  sharedIndicatorTooltip: _,
60677
60677
  sharedIndicatorClassName: h
60678
60678
  });
60679
- }, gP = ({ 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: g, getContextMenuItems: _, onRenameSave: v, onRenameCancel: y, onRenameValidate: b, onExpandedPathsChange: x, onCreateFolderSave: S, onCreateFolderCancel: C, forbiddenSymbolsRegExp: w, forbiddenSymbolsTooltip: T, newFolderDefaultName: E }) => {
60680
- let { expandedPaths: D, togglePath: O } = jN({
60679
+ }, _P = ({ 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: g, getContextMenuItems: _, onRenameSave: v, onRenameCancel: y, onRenameValidate: b, onExpandedPathsChange: x, onCreateFolderSave: S, onCreateFolderCancel: C, forbiddenSymbolsRegExp: w, forbiddenSymbolsTooltip: T, newFolderDefaultName: E }) => {
60680
+ let { expandedPaths: ee, togglePath: D } = MN({
60681
60681
  expandedPaths: n ?? /* @__PURE__ */ new Set(),
60682
60682
  onExpandedPathsChange: x
60683
- }), k = (e) => {
60684
- g?.(e), O(e.path);
60685
- }, ee = (e, n, s) => {
60683
+ }), O = (e) => {
60684
+ g?.(e), D(e.path);
60685
+ }, te = (e, n, s) => {
60686
60686
  let c = e;
60687
60687
  return s && s.path === f && (c = [{
60688
- folderId: fP,
60689
- id: fP,
60688
+ folderId: pP,
60689
+ id: pP,
60690
60690
  items: [],
60691
60691
  name: E || "",
60692
- nodeType: BM.FOLDER,
60692
+ nodeType: VM.FOLDER,
60693
60693
  parentPath: f,
60694
- path: `${f}/${fP}`
60694
+ path: `${f}/${pP}`
60695
60695
  }, ...e]), c.map((e) => {
60696
- let { path: s, nodeType: c, name: l, items: g } = e, x = c === BM.FOLDER;
60697
- if (!u && QM(e)) return null;
60696
+ let { path: s, nodeType: c, name: l, items: g } = e, x = c === VM.FOLDER;
60697
+ if (!u && $M(e)) return null;
60698
60698
  if (!x && !t) return;
60699
- let E = Array.isArray(g) && g.length > 0 && g.some((e) => e.nodeType === BM.FOLDER || t), O = D.has(s), te = o === s, ne = r.has(s), A = d === s || s === `${f}/${fP}`, re = i.has(s), ie = a.has(s), j = m && p && s === m && x, ae = b && ((t) => b(t, e)), se = te ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", ce = j ? [] : _?.(e) ?? [], le = w ? aN({
60699
+ let E = Array.isArray(g) && g.length > 0 && g.some((e) => e.nodeType === VM.FOLDER || t), D = ee.has(s), k = o === s, ne = r.has(s), A = d === s || s === `${f}/${pP}`, re = i.has(s), ie = a.has(s), j = m && p && s === m && x, ae = b && ((t) => b(t, e)), se = k ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", ce = j ? [] : _?.(e) ?? [], le = w ? oN({
60700
60700
  name: e.name,
60701
60701
  isFolder: x
60702
60702
  }, w, T) : void 0;
@@ -60711,33 +60711,33 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60711
60711
  anchorToMouse: !0,
60712
60712
  items: ce,
60713
60713
  children: /* @__PURE__ */ N("div", {
60714
- style: { paddingLeft: `${n * dP}px` },
60714
+ style: { paddingLeft: `${n * fP}px` },
60715
60715
  className: Ue("py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative", se),
60716
- "aria-selected": te,
60716
+ "aria-selected": k,
60717
60717
  children: [
60718
60718
  !A && /* @__PURE__ */ M("div", {
60719
60719
  className: "absolute size-full left-0 top-0 z-0",
60720
- onClick: () => k(e)
60720
+ onClick: () => O(e)
60721
60721
  }),
60722
60722
  /* @__PURE__ */ M("div", {
60723
60723
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
60724
- onClick: () => !A && k(e),
60724
+ onClick: () => !A && O(e),
60725
60725
  children: /* @__PURE__ */ N(Ge, { children: [x && /* @__PURE__ */ M(Ye, {
60726
- ...uP,
60727
- className: (0, sM.default)("flex-shrink-0", O && "rotate-90 transition-all", re && !E && "text-transparent")
60728
- }), /* @__PURE__ */ M(hP, {
60726
+ ...dP,
60727
+ className: (0, cM.default)("flex-shrink-0", D && "rotate-90 transition-all", re && !E && "text-transparent")
60728
+ }), /* @__PURE__ */ M(gP, {
60729
60729
  elementId: `${s}-tree-item`,
60730
60730
  name: j ? p : l,
60731
60731
  type: x ? oe.Folder : oe.File,
60732
60732
  loading: ne,
60733
60733
  shared: ie,
60734
- sharedIndicatorClassName: Ue("group-hover/item:bg-accent-primary-alpha", te && "bg-accent-primary-alpha"),
60735
- iconSize: jM,
60734
+ sharedIndicatorClassName: Ue("group-hover/item:bg-accent-primary-alpha", k && "bg-accent-primary-alpha"),
60735
+ iconSize: MM,
60736
60736
  forbiddenSymbolsRegExp: w,
60737
60737
  forbiddenSymbolsTooltip: le,
60738
60738
  ...!j && {
60739
60739
  editing: A,
60740
- creating: s === `${f}/${fP}`,
60740
+ creating: s === `${f}/${pP}`,
60741
60741
  onSave: v,
60742
60742
  onCancel: y,
60743
60743
  validate: ae,
@@ -60762,7 +60762,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60762
60762
  })
60763
60763
  ]
60764
60764
  })
60765
- }), O && (g || e?.path === f) && ee(g || [], n + 1, e)]
60765
+ }), D && (g || e?.path === f) && te(g || [], n + 1, e)]
60766
60766
  })
60767
60767
  }, `${s}-children`);
60768
60768
  });
@@ -60770,16 +60770,16 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60770
60770
  return /* @__PURE__ */ M("div", {
60771
60771
  className: "flex-1 size-full overflow-y-auto",
60772
60772
  "aria-label": "folders-tree",
60773
- children: e.length > 0 ? ee(e, 0) : /* @__PURE__ */ M(se, {
60773
+ children: e.length > 0 ? te(e, 0) : /* @__PURE__ */ M(se, {
60774
60774
  title: s,
60775
60775
  description: c,
60776
60776
  icon: l
60777
60777
  })
60778
60778
  });
60779
- }, _P = ({ selectedFiles: e, actionLabels: t, onDuplicate: n, onCopy: r, onMove: i, onDownload: a, onUnshare: o, onRemoveAccess: s, onDelete: c, getCurrentFolderPath: l, sharedWithMeIds: u, sharedByMePaths: d, onClearSelection: p, forbiddenSymbolsRegExp: m }) => f(() => {
60779
+ }, vP = ({ selectedFiles: e, actionLabels: t, onDuplicate: n, onCopy: r, onMove: i, onDownload: a, onUnshare: o, onRemoveAccess: s, onDelete: c, getCurrentFolderPath: l, sharedWithMeIds: u, sharedByMePaths: d, onClearSelection: p, forbiddenSymbolsRegExp: m }) => f(() => {
60780
60780
  let f = [], g = Array.from(e.values());
60781
60781
  if (!g.length || !t) return f;
60782
- let _ = iN(m), v = _ ? g.some((e) => _.test(e.name)) : !1;
60782
+ let _ = aN(m), v = _ ? g.some((e) => _.test(e.name)) : !1;
60783
60783
  if (t[$.RemoveAccess] && s) {
60784
60784
  let e = g.some((e) => !d?.has(e.path));
60785
60785
  f.push({
@@ -60800,7 +60800,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60800
60800
  key: $.Move,
60801
60801
  label: t[$.Move],
60802
60802
  title: t[$.Move],
60803
- icon: /* @__PURE__ */ M(fM, {
60803
+ icon: /* @__PURE__ */ M(pM, {
60804
60804
  width: h.size,
60805
60805
  height: h.size,
60806
60806
  className: "text-secondary"
@@ -60810,7 +60810,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60810
60810
  key: $.Copy,
60811
60811
  label: t[$.Copy],
60812
60812
  title: t[$.Copy],
60813
- icon: /* @__PURE__ */ M(dM, {
60813
+ icon: /* @__PURE__ */ M(fM, {
60814
60814
  width: h.size,
60815
60815
  height: h.size,
60816
60816
  className: "text-secondary"
@@ -60826,7 +60826,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60826
60826
  }),
60827
60827
  onClick: () => n(g)
60828
60828
  }), t[$.Delete]) {
60829
- let e = g.some((e) => e.permissions && !e.permissions.includes(HM.WRITE));
60829
+ let e = g.some((e) => e.permissions && !e.permissions.includes(UM.WRITE));
60830
60830
  f.push({
60831
60831
  key: $.Delete,
60832
60832
  label: t[$.Delete],
@@ -60859,7 +60859,7 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60859
60859
  title: t[$.Unshare],
60860
60860
  disabled: e,
60861
60861
  tooltip: e ? "Selected items contain item which can not be unshared" : void 0,
60862
- icon: /* @__PURE__ */ M(pM, {
60862
+ icon: /* @__PURE__ */ M(mM, {
60863
60863
  width: h.size,
60864
60864
  height: h.size,
60865
60865
  className: "text-secondary"
@@ -60885,16 +60885,16 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60885
60885
  p,
60886
60886
  d,
60887
60887
  m
60888
- ]), vP = ({ 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__ */ M("div", {
60888
+ ]), yP = ({ 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__ */ M("div", {
60889
60889
  className: "flex",
60890
60890
  children: /* @__PURE__ */ M("div", {
60891
60891
  className: "flex flex-1 min-w-0",
60892
- children: /* @__PURE__ */ M(hP, {
60893
- type: n === BM.FOLDER ? oe.Folder : oe.File,
60892
+ children: /* @__PURE__ */ M(gP, {
60893
+ type: n === VM.FOLDER ? oe.Folder : oe.File,
60894
60894
  name: t,
60895
60895
  elementId: e,
60896
60896
  shared: s,
60897
- iconSize: jM,
60897
+ iconSize: MM,
60898
60898
  sharedIndicatorClassName: c,
60899
60899
  hideTooltip: l,
60900
60900
  forbiddenSymbolsRegExp: u,
@@ -60902,12 +60902,12 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60902
60902
  details: /* @__PURE__ */ N("div", {
60903
60903
  className: "flex items-center gap-1 dial-tiny-text text-secondary",
60904
60904
  children: [
60905
- /* @__PURE__ */ M("span", { children: n === BM.ITEM ? $M(r) : "" }),
60905
+ /* @__PURE__ */ M("span", { children: n === VM.ITEM ? eN(r) : "" }),
60906
60906
  i && r && /* @__PURE__ */ M(Ze, {
60907
60907
  size: 2,
60908
60908
  className: "text-secondary"
60909
60909
  }),
60910
- i ? /* @__PURE__ */ M("span", { children: /* @__PURE__ */ M(ee, {
60910
+ i ? /* @__PURE__ */ M("span", { children: /* @__PURE__ */ M(te, {
60911
60911
  value: i,
60912
60912
  locale: a?.toString(),
60913
60913
  options: o,
@@ -60918,15 +60918,15 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60918
60918
  })
60919
60919
  })
60920
60920
  })
60921
- }), yP = (e) => (t, n, r) => ({
60922
- colId: xM.Name,
60921
+ }), bP = (e) => (t, n, r) => ({
60922
+ colId: SM.Name,
60923
60923
  field: "name",
60924
60924
  headerName: e,
60925
60925
  flex: 1,
60926
60926
  minWidth: 200,
60927
60927
  cellRenderer: (e) => {
60928
60928
  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 = Ue(["group-hover/grid-row:bg-accent-primary-alpha", m && "bg-accent-primary-alpha"]);
60929
- if (e.data?.isTemporary && e.data.id === c) return /* @__PURE__ */ M(hP, {
60929
+ if (e.data?.isTemporary && e.data.id === c) return /* @__PURE__ */ M(gP, {
60930
60930
  name: e.data.name,
60931
60931
  type: oe.Folder,
60932
60932
  elementId: `new-folder-${e.data.id}`,
@@ -60935,31 +60935,31 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60935
60935
  loading: f,
60936
60936
  shared: p,
60937
60937
  sharedIndicatorClassName: g,
60938
- iconSize: jM,
60938
+ iconSize: MM,
60939
60939
  validate: o,
60940
60940
  onSave: a,
60941
60941
  onCancel: s,
60942
60942
  onCreateFolderSave: a,
60943
60943
  onCreateFolderCancel: s,
60944
- inputContainerClassName: Ue(["!h-9", r && i === BM.ITEM && "!h-10"])
60944
+ inputContainerClassName: Ue(["!h-9", r && i === VM.ITEM && "!h-10"])
60945
60945
  });
60946
60946
  let { renameTriggerView: _, renamedPath: v, renamedItem: y, getDisplayName: b, onRenameValidate: x, onRenameSave: S, onRenameCancel: C } = e.context;
60947
- if (_ === vM.Grid && v === e.data?.path && y && e.data) return /* @__PURE__ */ M(hP, {
60947
+ if (_ === yM.Grid && v === e.data?.path && y && e.data) return /* @__PURE__ */ M(gP, {
60948
60948
  name: b(y),
60949
- type: i === BM.FOLDER ? oe.Folder : oe.File,
60949
+ type: i === VM.FOLDER ? oe.Folder : oe.File,
60950
60950
  fileExtension: y.name.split(".").pop(),
60951
60951
  elementId: `rename-${e.data.id}`,
60952
60952
  editing: !0,
60953
60953
  shared: p,
60954
60954
  sharedIndicatorClassName: g,
60955
- iconSize: jM,
60955
+ iconSize: MM,
60956
60956
  validate: (e) => x(e, y),
60957
60957
  onSave: S,
60958
60958
  onCancel: C,
60959
- inputContainerClassName: Ue(["!h-9", r && i === BM.ITEM && "!h-10"]),
60959
+ inputContainerClassName: Ue(["!h-9", r && i === VM.ITEM && "!h-10"]),
60960
60960
  forbiddenSymbolsRegExp: e.context.forbiddenSymbolsRegExp
60961
60961
  });
60962
- if (r) return /* @__PURE__ */ M(vP, {
60962
+ if (r) return /* @__PURE__ */ M(yP, {
60963
60963
  id: e.data.id,
60964
60964
  name: e.data.name,
60965
60965
  nodeType: i,
@@ -60973,15 +60973,15 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60973
60973
  forbiddenSymbolsRegExp: e.context.forbiddenSymbolsRegExp,
60974
60974
  forbiddenSymbolsTooltip: e.context.forbiddenSymbolsTooltip
60975
60975
  });
60976
- let w = aN({
60976
+ let w = oN({
60977
60977
  name: e.data.name,
60978
- isFolder: i === BM.FOLDER
60978
+ isFolder: i === VM.FOLDER
60979
60979
  }, e.context.forbiddenSymbolsRegExp, e.context.forbiddenSymbolsTooltip);
60980
- return i === BM.FOLDER ? /* @__PURE__ */ M(ie, {
60980
+ return i === VM.FOLDER ? /* @__PURE__ */ M(ie, {
60981
60981
  name: e.data.name,
60982
60982
  shared: p,
60983
60983
  sharedIndicatorClassName: g,
60984
- iconSize: jM,
60984
+ iconSize: MM,
60985
60985
  hideTooltip: h,
60986
60986
  isInvalidName: !!w,
60987
60987
  tooltipContent: w
@@ -60989,21 +60989,21 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
60989
60989
  name: e.data.name,
60990
60990
  shared: p,
60991
60991
  sharedIndicatorClassName: g,
60992
- iconSize: jM,
60992
+ iconSize: MM,
60993
60993
  hideTooltip: h,
60994
60994
  isInvalidName: !!w,
60995
60995
  tooltipContent: w
60996
60996
  });
60997
60997
  }
60998
- }), bP = (e) => (t, n) => ({
60999
- colId: xM.UpdatedAt,
60998
+ }), xP = (e) => (t, n) => ({
60999
+ colId: SM.UpdatedAt,
61000
61000
  field: "updatedAt",
61001
61001
  headerName: e,
61002
61002
  width: 168,
61003
61003
  suppressSizeToFit: !0,
61004
61004
  cellRenderer: (e) => {
61005
61005
  let t = e.context?.disabledRowIds?.has(e.data?.path) ?? !1;
61006
- return /* @__PURE__ */ M(ee, {
61006
+ return /* @__PURE__ */ M(te, {
61007
61007
  ...e,
61008
61008
  hideTooltip: t
61009
61009
  });
@@ -61016,15 +61016,15 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
61016
61016
  let r = e.data[e.colDef.field || ""], i = Ve(r);
61017
61017
  return i ? new Intl.DateTimeFormat(t || w, n || C).format(i) : "";
61018
61018
  }
61019
- }), xP = (e) => ({
61020
- colId: xM.Size,
61019
+ }), SP = (e) => ({
61020
+ colId: SM.Size,
61021
61021
  field: "size",
61022
61022
  headerName: e,
61023
61023
  width: 120,
61024
61024
  suppressSizeToFit: !0,
61025
- cellRenderer: (e) => e.data.nodeType === BM.ITEM ? $M(e.data.contentLength) : "",
61026
- filterValueGetter: (e) => e.data.nodeType === BM.ITEM ? $M(e.data.contentLength) : ""
61027
- }), SP = (e) => {
61025
+ cellRenderer: (e) => e.data.nodeType === VM.ITEM ? eN(e.data.contentLength) : "",
61026
+ filterValueGetter: (e) => e.data.nodeType === VM.ITEM ? eN(e.data.contentLength) : ""
61027
+ }), CP = (e) => {
61028
61028
  let t = e.event;
61029
61029
  if (!(t?.target ?? null)?.closest("input") || !t) return !1;
61030
61030
  switch (t.key) {
@@ -61037,30 +61037,30 @@ var qN = 12, JN = 8, YN = ({ getSelectionLabel: e, onClearSelection: t, actions:
61037
61037
  default: return !1;
61038
61038
  }
61039
61039
  };
61040
- function CP({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, effectiveVisibleColumns: i, isCompactView: a, hasActions: o, actionsColumnDef: s, rootItemLabel: c, rootItemPath: l }) {
61040
+ function wP({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, effectiveVisibleColumns: i, isCompactView: a, hasActions: o, actionsColumnDef: s, rootItemLabel: c, rootItemPath: l }) {
61041
61041
  let u = f(() => [
61042
- yP("Name")(n, r, a),
61042
+ bP("Name")(n, r, a),
61043
61043
  {
61044
- colId: xM.Path,
61044
+ colId: SM.Path,
61045
61045
  field: "path",
61046
61046
  headerName: "Path",
61047
61047
  flex: 1,
61048
61048
  minWidth: 200,
61049
61049
  cellRenderer: (e) => {
61050
61050
  let t = e.context?.disabledRowIds?.has(e.data.path) ?? !1, n = e.data.path;
61051
- return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !l || !c ? /* @__PURE__ */ M(te, {
61051
+ return e.context?.hideSearchPathItemName && (n = e.data.parentPath ? e.data.parentPath : n.replace(/\/[^/]+\/?$/, "") || "/"), !l || !c ? /* @__PURE__ */ M(k, {
61052
61052
  text: n,
61053
61053
  hideTooltip: t
61054
- }) : /* @__PURE__ */ M(te, {
61054
+ }) : /* @__PURE__ */ M(k, {
61055
61055
  text: n.replace(l, c),
61056
61056
  hideTooltip: t
61057
61057
  });
61058
61058
  }
61059
61059
  },
61060
- bP("Modified Date")(n, r),
61061
- xP("Size"),
61060
+ xP("Modified Date")(n, r),
61061
+ SP("Size"),
61062
61062
  {
61063
- colId: xM.Author,
61063
+ colId: SM.Author,
61064
61064
  field: "author",
61065
61065
  headerName: "Author",
61066
61066
  width: 200,
@@ -61068,7 +61068,7 @@ function CP({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
61068
61068
  cellRenderer: (e) => e.data.author
61069
61069
  },
61070
61070
  {
61071
- colId: xM.Owner,
61071
+ colId: SM.Owner,
61072
61072
  field: "owner",
61073
61073
  headerName: "Owner",
61074
61074
  width: 200,
@@ -61085,14 +61085,14 @@ function CP({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
61085
61085
  return { columnDefs: f(() => {
61086
61086
  let c = e?.map((e) => typeof e == "function" ? e(n, r, a) : e), l = c ?? u;
61087
61087
  c || (l = l.filter((e) => e.colId && i.includes(e.colId))), o && (a && (l = l.slice(0, 1)), l.push(s));
61088
- let d = (e) => e.colId === xM.Name;
61088
+ let d = (e) => e.colId === SM.Name;
61089
61089
  return l.map((e) => {
61090
61090
  let n = {
61091
61091
  ...e,
61092
61092
  filter: t ? e.filter : !1,
61093
61093
  floatingFilter: t ? e.floatingFilter : !1
61094
61094
  };
61095
- return d(e) && !e.suppressKeyboardEvent && (n.suppressKeyboardEvent = SP), n;
61095
+ return d(e) && !e.suppressKeyboardEvent && (n.suppressKeyboardEvent = CP), n;
61096
61096
  });
61097
61097
  }, [
61098
61098
  s,
@@ -61106,27 +61106,27 @@ function CP({ userColumnDefs: e, filterable: t, dateLocale: n, dateOptions: r, e
61106
61106
  e
61107
61107
  ]) };
61108
61108
  }
61109
- var wP = () => {
61110
- let e = s(SN);
61109
+ var TP = () => {
61110
+ let e = s(CN);
61111
61111
  if (!e) throw Error("useFileManagerContext must be used within <FileManagerProvider>");
61112
61112
  return e;
61113
- }, TP = ({ actionLabels: e, onDuplicate: t, onCopy: n, onMove: r, onDownload: i, onRename: a, onDelete: o, onInfo: s, onUnshare: c, onRemoveAccess: l, sharedWithMeIds: u, sharedByMePaths: d, onManagePermissions: p, onPreview: m, onOpenInNewTab: g, previewExtensions: _, isRenameFileAvailable: v = !0, isDuplicateFolderAvailable: y = !0, forbiddenSymbolsRegExp: b, onGridCreateSiblingFolder: x, onGridCreateChildFolder: S }) => f(() => (f) => {
61113
+ }, EP = ({ actionLabels: e, onDuplicate: t, onCopy: n, onMove: r, onDownload: i, onRename: a, onDelete: o, onInfo: s, onUnshare: c, onRemoveAccess: l, sharedWithMeIds: u, sharedByMePaths: d, onManagePermissions: p, onPreview: m, onOpenInNewTab: g, previewExtensions: _, isRenameFileAvailable: v = !0, isDuplicateFolderAvailable: y = !0, forbiddenSymbolsRegExp: b, onGridCreateSiblingFolder: x, onGridCreateChildFolder: S }) => f(() => (f) => {
61114
61114
  let C = [];
61115
61115
  if (!e) return C;
61116
- let w = iN(b)?.test(f.name);
61117
- e[$.AddSibling] && f.nodeType === BM.FOLDER && C.push({
61116
+ let w = aN(b)?.test(f.name);
61117
+ e[$.AddSibling] && f.nodeType === VM.FOLDER && C.push({
61118
61118
  key: "addSibling",
61119
61119
  label: e[$.AddSibling],
61120
- icon: /* @__PURE__ */ M(uM, {
61120
+ icon: /* @__PURE__ */ M(dM, {
61121
61121
  width: h.size,
61122
61122
  height: h.size,
61123
61123
  className: "text-secondary"
61124
61124
  }),
61125
61125
  onClick: () => x([f])
61126
- }), e[$.AddChild] && f.nodeType === BM.FOLDER && !w && C.push({
61126
+ }), e[$.AddChild] && f.nodeType === VM.FOLDER && !w && C.push({
61127
61127
  key: "addChild",
61128
61128
  label: e[$.AddChild],
61129
- icon: /* @__PURE__ */ M(lM, {
61129
+ icon: /* @__PURE__ */ M(uM, {
61130
61130
  width: h.size,
61131
61131
  height: h.size,
61132
61132
  className: "text-secondary"
@@ -61135,7 +61135,7 @@ var wP = () => {
61135
61135
  }, {
61136
61136
  key: "divider",
61137
61137
  type: be.Divider
61138
- }), e[$.OpenInNewTab] && typeof g == "function" && f.nodeType === BM.ITEM && !w && C.push({
61138
+ }), e[$.OpenInNewTab] && typeof g == "function" && f.nodeType === VM.ITEM && !w && C.push({
61139
61139
  key: $.OpenInNewTab,
61140
61140
  label: e[$.OpenInNewTab],
61141
61141
  icon: /* @__PURE__ */ M(nt, {
@@ -61144,7 +61144,7 @@ var wP = () => {
61144
61144
  }),
61145
61145
  onClick: () => g?.(f)
61146
61146
  });
61147
- let T = f.nodeType === BM.ITEM || f.nodeType === BM.FOLDER && y;
61147
+ let T = f.nodeType === VM.ITEM || f.nodeType === VM.FOLDER && y;
61148
61148
  e[$.Duplicate] && T && !w && C.push({
61149
61149
  key: $.Duplicate,
61150
61150
  label: e[$.Duplicate],
@@ -61156,7 +61156,7 @@ var wP = () => {
61156
61156
  }), e[$.Copy] && !w && C.push({
61157
61157
  key: $.Copy,
61158
61158
  label: e[$.Copy],
61159
- icon: /* @__PURE__ */ M(dM, {
61159
+ icon: /* @__PURE__ */ M(fM, {
61160
61160
  width: h.size,
61161
61161
  height: h.size,
61162
61162
  className: "text-secondary"
@@ -61165,7 +61165,7 @@ var wP = () => {
61165
61165
  }), e[$.Move] && !w && C.push({
61166
61166
  key: $.Move,
61167
61167
  label: e[$.Move],
61168
- icon: /* @__PURE__ */ M(fM, {
61168
+ icon: /* @__PURE__ */ M(pM, {
61169
61169
  width: h.size,
61170
61170
  height: h.size,
61171
61171
  className: "text-secondary"
@@ -61179,7 +61179,7 @@ var wP = () => {
61179
61179
  className: "text-secondary"
61180
61180
  }),
61181
61181
  onClick: () => i(f)
61182
- }), e[$.ManagePermissions] && typeof p == "function" && f.nodeType === BM.FOLDER && !w && C.push({
61182
+ }), e[$.ManagePermissions] && typeof p == "function" && f.nodeType === VM.FOLDER && !w && C.push({
61183
61183
  key: $.ManagePermissions,
61184
61184
  label: e[$.ManagePermissions],
61185
61185
  icon: /* @__PURE__ */ M(nt, {
@@ -61188,8 +61188,8 @@ var wP = () => {
61188
61188
  }),
61189
61189
  onClick: () => p?.(f.path)
61190
61190
  });
61191
- let E = f.name.split("."), D = E.length > 1 ? E[E.length - 1] : "", O = D && _?.includes(`.${D}`);
61192
- e[$.Preview] && typeof m == "function" && f.nodeType === BM.ITEM && O && !w && C.push({
61191
+ let E = f.name.split("."), ee = E.length > 1 ? E[E.length - 1] : "", D = ee && _?.includes(`.${ee}`);
61192
+ e[$.Preview] && typeof m == "function" && f.nodeType === VM.ITEM && D && !w && C.push({
61193
61193
  key: $.Preview,
61194
61194
  label: e[$.Preview],
61195
61195
  icon: /* @__PURE__ */ M(rt, {
@@ -61198,8 +61198,8 @@ var wP = () => {
61198
61198
  }),
61199
61199
  onClick: () => m?.(f.path)
61200
61200
  });
61201
- let k = !f.permissions || f.permissions.includes(HM.WRITE);
61202
- e[$.Delete] && k && C.push({
61201
+ let O = !f.permissions || f.permissions.includes(UM.WRITE);
61202
+ e[$.Delete] && O && C.push({
61203
61203
  key: $.Delete,
61204
61204
  label: e[$.Delete],
61205
61205
  icon: /* @__PURE__ */ M(ht, {
@@ -61208,8 +61208,8 @@ var wP = () => {
61208
61208
  }),
61209
61209
  onClick: () => o(f, f.parentPath ?? "")
61210
61210
  });
61211
- let ee = f.nodeType === BM.FOLDER || f.nodeType === BM.ITEM && v;
61212
- return e[$.Rename] && ee && k && C.push({
61211
+ let te = f.nodeType === VM.FOLDER || f.nodeType === VM.ITEM && v;
61212
+ return e[$.Rename] && te && O && C.push({
61213
61213
  key: $.Rename,
61214
61214
  label: e[$.Rename],
61215
61215
  icon: /* @__PURE__ */ M(ft, {
@@ -61217,7 +61217,7 @@ var wP = () => {
61217
61217
  className: "text-secondary"
61218
61218
  }),
61219
61219
  onClick: () => a(f.path)
61220
- }), e[$.Info] && f.nodeType === BM.ITEM && !w && C.push({
61220
+ }), e[$.Info] && f.nodeType === VM.ITEM && !w && C.push({
61221
61221
  key: $.Info,
61222
61222
  label: e[$.Info],
61223
61223
  icon: /* @__PURE__ */ M(ut, {
@@ -61228,7 +61228,7 @@ var wP = () => {
61228
61228
  }), e[$.Unshare] && u?.includes(f.path) && C.push({
61229
61229
  key: $.Unshare,
61230
61230
  label: e[$.Unshare],
61231
- icon: /* @__PURE__ */ M(pM, {
61231
+ icon: /* @__PURE__ */ M(mM, {
61232
61232
  width: h.size,
61233
61233
  height: h.size,
61234
61234
  className: "text-secondary"
@@ -61265,28 +61265,28 @@ var wP = () => {
61265
61265
  b,
61266
61266
  S,
61267
61267
  x
61268
- ]), EP = ({ onGridAddSibling: e, onGridAddChild: t, onTreeAddSibling: n, onTreeAddChild: r }) => {
61269
- let [i, a] = m(yM.Grid);
61268
+ ]), DP = ({ onGridAddSibling: e, onGridAddChild: t, onTreeAddSibling: n, onTreeAddChild: r }) => {
61269
+ let [i, a] = m(bM.Grid);
61270
61270
  return {
61271
61271
  createFolderTriggerView: i,
61272
61272
  onGridCreateSiblingFolder: o((t) => {
61273
- e?.(t), a(yM.Grid);
61273
+ e?.(t), a(bM.Grid);
61274
61274
  }, [e]),
61275
61275
  onTreeCreateSiblingFolder: o((e) => {
61276
- n?.(e), a(yM.Tree);
61276
+ n?.(e), a(bM.Tree);
61277
61277
  }, [n]),
61278
61278
  onGridCreateChildFolder: o((e) => {
61279
- t?.(e), a(yM.Grid);
61279
+ t?.(e), a(bM.Grid);
61280
61280
  }, [t]),
61281
61281
  onTreeCreateChildFolder: o((e) => {
61282
- r?.(e), a(yM.Tree);
61282
+ r?.(e), a(bM.Tree);
61283
61283
  }, [r])
61284
61284
  };
61285
- }, DP = (e) => /* @__PURE__ */ M(VN, {
61285
+ }, OP = (e) => /* @__PURE__ */ M(HN, {
61286
61286
  ...e,
61287
- children: /* @__PURE__ */ M(OP, {})
61288
- }), OP = () => {
61289
- let { managerLabel: e, className: t, items: n, rootItem: r, filesLoading: i, treeOptions: a, showNavigationPanel: s, navigationPanelOptions: c, gridOptions: l, toolbarOptions: d, bulkActionsToolbarOptions: g, deleteConfirmationOptions: _, destinationFolderPopupOptions: v, conflictResolutionPopupOptions: y, compactViewWidthBreakpoint: b = RM, customBreakpointRef: x, sharedByMePaths: S, allowedFileTypes: C, maxSelectableFileSize: w, areHiddenFilesVisible: T, toggleHiddenFilesVisibility: E, isTreeCollapsed: D, toggleTreeCollapse: ee, currentPath: te, gridRows: ne, selectedPaths: A, selectedFiles: re, clearSelection: ie, setSelectedPaths: ae, effectiveSearchValue: oe, handleBreadcrumbItemClick: ce, handleSearchChange: le, handleTreeItemClick: ue, handleTableRowClick: de, handleSelectionClick: fe, onGridApiChange: pe, handleOpenDestinationFolderPopup: me, handleCloseDestinationFolderPopup: he, openDestinationFolderPopup: ge, destinationFolderMode: _e, handleSetCopiedFiles: ve, handleSetMovedFiles: ye, handleDuplicate: xe, handleCopyTo: Se, handleMoveTo: Ce, handleGridAddSibling: we, handleGridAddChild: Te, handleTreeAddSibling: Ee, handleTreeAddChild: De, handleDownloadFiles: Oe, openDeleteConfirmation: ke, closeDeleteConfirmation: Ae, confirmDelete: je, deleteConfirmationOpen: Me, itemsToDelete: Ne, renamedPath: Pe, renamedItem: Fe, onRename: Ie, onRenameSave: Le, onRenameCancel: Re, onRenameValidate: ze, createdFolderPath: Be, forbiddenSymbolsRegExp: Ve, forbiddenSymbolsTooltip: He, getDisplayName: We, isDragging: Ge, isDraggingOverWindow: Ke, handleDragEnter: qe, handleDragLeave: Je, handleDragOver: Ye, handleDrop: Xe, onUploadFiles: Ze, onValidateUpload: $e, maxFileSize: et, newActions: rt, isNewButtonVisible: it, isNewButtonDisabled: at, newFolderTempId: st, cancelFolderCreation: ct, saveFolderCreation: lt, validateFolderName: ut, startFolderCreation: dt, conflictingFiles: pt, conflictResolutionOpen: mt, handleConflictReplace: _t, handleConflictDuplicate: vt, handleConflictCancel: yt, handleConflictDecideForEach: bt, uploadConflictingFiles: xt, uploadConflictResolutionOpen: St, handleUploadConflictReplace: Ct, handleUploadConflictDuplicate: wt, handleUploadConflictCancel: Tt, handleUploadConflictDecideForEach: Et, openMetadataPopup: Dt, fileMetadataPopupOptions: Ot, isMetadataPopupOpen: kt, selectedFileForMetadata: At, closeMetadataPopup: jt, onUnshareFiles: Mt, onRemoveFilesAccess: Nt, actionsRef: Pt, searchInProgress: Ft, isSearchMode: It, emptyStateIcon: Lt, emptyStateTitle: Rt = "You don't have any files", emptyStateDescription: zt = "Upload or drag and drop files", sharedWithMeIds: Bt, onFolderPopupPathChange: Vt, onManagePermissions: Ht, onPreview: Ut, onOpenInNewTab: Wt, previewExtensions: Gt, isRenameFileAvailable: Kt, isDuplicateFolderAvailable: qt, getDisabledTooltip: Jt, fileTooLargeTooltip: Yt, unsupportedFileTypeTooltip: Xt, gridClassName: Zt, nonClickableTableColumns: Qt, hideSearchPathItemName: $t, showHiddenFileSwitcherInDestinationPopup: en, showCreateFolderButtonInDestinationPopup: tn, newFolderDefaultName: nn } = wP(), { width: rn = kM, header: an = AM, containerClassName: on = EM, additionalButtons: sn, ...cn } = a ?? {}, [ln, un] = m(rn), { renameTriggerView: dn, onGridRename: fn, onTreeRename: pn } = GM({ onRename: Ie }), { createFolderTriggerView: mn, onGridCreateSiblingFolder: hn, onTreeCreateSiblingFolder: gn, onGridCreateChildFolder: _n, onTreeCreateChildFolder: vn } = EP({
61287
+ children: /* @__PURE__ */ M(kP, {})
61288
+ }), kP = () => {
61289
+ let { managerLabel: e, className: t, items: n, rootItem: r, filesLoading: i, treeOptions: a, showNavigationPanel: s, navigationPanelOptions: c, gridOptions: l, toolbarOptions: d, bulkActionsToolbarOptions: g, deleteConfirmationOptions: _, destinationFolderPopupOptions: v, conflictResolutionPopupOptions: y, compactViewWidthBreakpoint: b = zM, customBreakpointRef: x, sharedByMePaths: S, allowedFileTypes: C, maxSelectableFileSize: w, areHiddenFilesVisible: T, toggleHiddenFilesVisibility: E, isTreeCollapsed: ee, toggleTreeCollapse: te, currentPath: k, gridRows: ne, selectedPaths: A, selectedFiles: re, clearSelection: ie, setSelectedPaths: ae, effectiveSearchValue: oe, handleBreadcrumbItemClick: ce, handleSearchChange: le, handleTreeItemClick: ue, handleTableRowClick: de, handleSelectionClick: fe, onGridApiChange: pe, handleOpenDestinationFolderPopup: me, handleCloseDestinationFolderPopup: he, openDestinationFolderPopup: ge, destinationFolderMode: _e, handleSetCopiedFiles: ve, handleSetMovedFiles: ye, handleDuplicate: xe, handleCopyTo: Se, handleMoveTo: Ce, handleGridAddSibling: we, handleGridAddChild: Te, handleTreeAddSibling: Ee, handleTreeAddChild: De, handleDownloadFiles: Oe, openDeleteConfirmation: ke, closeDeleteConfirmation: Ae, confirmDelete: je, deleteConfirmationOpen: Me, itemsToDelete: Ne, renamedPath: Pe, renamedItem: Fe, onRename: Ie, onRenameSave: Le, onRenameCancel: Re, onRenameValidate: ze, createdFolderPath: Be, forbiddenSymbolsRegExp: Ve, forbiddenSymbolsTooltip: He, getDisplayName: We, isDragging: Ge, isDraggingOverWindow: Ke, handleDragEnter: qe, handleDragLeave: Je, handleDragOver: Ye, handleDrop: Xe, onUploadFiles: Ze, onValidateUpload: $e, maxFileSize: et, newActions: rt, isNewButtonVisible: it, isNewButtonDisabled: at, newFolderTempId: st, cancelFolderCreation: ct, saveFolderCreation: lt, validateFolderName: ut, startFolderCreation: dt, conflictingFiles: pt, conflictResolutionOpen: mt, handleConflictReplace: _t, handleConflictDuplicate: vt, handleConflictCancel: yt, handleConflictDecideForEach: bt, uploadConflictingFiles: xt, uploadConflictResolutionOpen: St, handleUploadConflictReplace: Ct, handleUploadConflictDuplicate: wt, handleUploadConflictCancel: Tt, handleUploadConflictDecideForEach: Et, openMetadataPopup: Dt, fileMetadataPopupOptions: Ot, isMetadataPopupOpen: kt, selectedFileForMetadata: At, closeMetadataPopup: jt, onUnshareFiles: Mt, onRemoveFilesAccess: Nt, actionsRef: Pt, searchInProgress: Ft, isSearchMode: It, emptyStateIcon: Lt, emptyStateTitle: Rt = "You don't have any files", emptyStateDescription: zt = "Upload or drag and drop files", sharedWithMeIds: Bt, onFolderPopupPathChange: Vt, onManagePermissions: Ht, onPreview: Ut, onOpenInNewTab: Wt, previewExtensions: Gt, isRenameFileAvailable: Kt, isDuplicateFolderAvailable: qt, getDisabledTooltip: Jt, fileTooLargeTooltip: Yt, unsupportedFileTypeTooltip: Xt, gridClassName: Zt, nonClickableTableColumns: Qt, hideSearchPathItemName: $t, showHiddenFileSwitcherInDestinationPopup: en, showCreateFolderButtonInDestinationPopup: tn, newFolderDefaultName: nn } = TP(), { width: rn = AM, header: an = jM, containerClassName: on = DM, additionalButtons: sn, ...cn } = a ?? {}, [ln, un] = m(rn), { renameTriggerView: dn, onGridRename: fn, onTreeRename: pn } = KM({ onRename: Ie }), { createFolderTriggerView: mn, onGridCreateSiblingFolder: hn, onTreeCreateSiblingFolder: gn, onGridCreateChildFolder: _n, onTreeCreateChildFolder: vn } = DP({
61290
61290
  onGridAddSibling: we,
61291
61291
  onGridAddChild: Te,
61292
61292
  onTreeAddSibling: Ee,
@@ -61295,11 +61295,11 @@ var wP = () => {
61295
61295
  yn.current === null && (yn.current = requestAnimationFrame(() => {
61296
61296
  un(e), yn.current = null;
61297
61297
  }));
61298
- }, { columnDefs: xn, filterable: Sn = !0, dateLocale: Cn, dateOptions: wn, selectionMode: Tn, wrapCustomCellRenderers: En, visibleColumns: Dn = zM, allowDisabledContextMenu: On = !1, ...kn } = l ?? {}, { containerRef: An, isBelowBreakpoint: jn } = KM(b, x), Mn = f(() => It ? [
61299
- xM.Name,
61300
- xM.Path,
61301
- xM.Actions
61302
- ] : Dn, [It, Dn]), Nn = o((e, t, n) => cN(e, t, n, Xt, Yt), [Yt, Xt]), Pn = o((e, t, n) => !!Jt?.(e) || !!Nn(e, t, n), [Nn, Jt]), Fn = f(() => {
61298
+ }, { columnDefs: xn, filterable: Sn = !0, dateLocale: Cn, dateOptions: wn, selectionMode: Tn, wrapCustomCellRenderers: En, visibleColumns: Dn = BM, allowDisabledContextMenu: On = !1, ...kn } = l ?? {}, { containerRef: An, isBelowBreakpoint: jn } = qM(b, x), Mn = f(() => It ? [
61299
+ SM.Name,
61300
+ SM.Path,
61301
+ SM.Actions
61302
+ ] : Dn, [It, Dn]), Nn = o((e, t, n) => lN(e, t, n, Xt, Yt), [Yt, Xt]), Pn = o((e, t, n) => !!Jt?.(e) || !!Nn(e, t, n), [Nn, Jt]), Fn = f(() => {
61303
61303
  let e = /* @__PURE__ */ new Set();
61304
61304
  for (let t of ne) Pn(t, C, w) && e.add(t.path);
61305
61305
  return e;
@@ -61310,19 +61310,19 @@ var wP = () => {
61310
61310
  Pn
61311
61311
  ]), In = o((e) => {
61312
61312
  let t = [], n = [], r = !e.parentPath, i = Ve?.test(e.name);
61313
- return a?.actionLabels && (a.actionLabels[$.AddSibling] && e.nodeType === BM.FOLDER && !r && t.push({
61313
+ return a?.actionLabels && (a.actionLabels[$.AddSibling] && e.nodeType === VM.FOLDER && !r && t.push({
61314
61314
  key: "addSibling",
61315
61315
  label: a.actionLabels[$.AddSibling],
61316
- icon: /* @__PURE__ */ M(uM, {
61316
+ icon: /* @__PURE__ */ M(dM, {
61317
61317
  width: h.size,
61318
61318
  height: h.size,
61319
61319
  className: "text-secondary"
61320
61320
  }),
61321
61321
  onClick: () => gn([e])
61322
- }), a.actionLabels[$.AddChild] && e.nodeType === BM.FOLDER && !i && t.push({
61322
+ }), a.actionLabels[$.AddChild] && e.nodeType === VM.FOLDER && !i && t.push({
61323
61323
  key: "addChild",
61324
61324
  label: a.actionLabels[$.AddChild],
61325
- icon: /* @__PURE__ */ M(lM, {
61325
+ icon: /* @__PURE__ */ M(uM, {
61326
61326
  width: h.size,
61327
61327
  height: h.size,
61328
61328
  className: "text-secondary"
@@ -61337,26 +61337,26 @@ var wP = () => {
61337
61337
  }),
61338
61338
  onClick: () => xe([e])
61339
61339
  }), a.actionLabels[$.Copy] && !r && !i && n.push({
61340
- key: _M.Copy,
61340
+ key: vM.Copy,
61341
61341
  label: a.actionLabels[$.Copy],
61342
- icon: /* @__PURE__ */ M(dM, {
61342
+ icon: /* @__PURE__ */ M(fM, {
61343
61343
  width: h.size,
61344
61344
  height: h.size,
61345
61345
  className: "text-secondary"
61346
61346
  }),
61347
61347
  onClick: () => {
61348
- ve([e]), me(_M.Copy);
61348
+ ve([e]), me(vM.Copy);
61349
61349
  }
61350
61350
  }), a.actionLabels[$.Move] && !r && !i && n.push({
61351
- key: _M.Move,
61351
+ key: vM.Move,
61352
61352
  label: a.actionLabels[$.Move],
61353
- icon: /* @__PURE__ */ M(fM, {
61353
+ icon: /* @__PURE__ */ M(pM, {
61354
61354
  width: h.size,
61355
61355
  height: h.size,
61356
61356
  className: "text-secondary"
61357
61357
  }),
61358
61358
  onClick: () => {
61359
- ye([e]), me(_M.Move);
61359
+ ye([e]), me(vM.Move);
61360
61360
  }
61361
61361
  }), a.actionLabels[$.Download] && !r && !i && n.push({
61362
61362
  key: "download",
@@ -61366,7 +61366,7 @@ var wP = () => {
61366
61366
  className: "text-secondary"
61367
61367
  }),
61368
61368
  onClick: () => Oe([e])
61369
- }), a.actionLabels[$.ManagePermissions] && typeof Ht == "function" && e.nodeType === BM.FOLDER && !r && n.push({
61369
+ }), a.actionLabels[$.ManagePermissions] && typeof Ht == "function" && e.nodeType === VM.FOLDER && !r && n.push({
61370
61370
  key: $.ManagePermissions,
61371
61371
  label: a.actionLabels[$.ManagePermissions],
61372
61372
  icon: /* @__PURE__ */ M(nt, {
@@ -61374,7 +61374,7 @@ var wP = () => {
61374
61374
  className: "text-secondary"
61375
61375
  }),
61376
61376
  onClick: () => Ht?.(e.path)
61377
- }), a.actionLabels[$.Delete] && e.permissions?.includes(HM.WRITE) && !r && n.push({
61377
+ }), a.actionLabels[$.Delete] && e.permissions?.includes(UM.WRITE) && !r && n.push({
61378
61378
  key: "delete",
61379
61379
  label: a.actionLabels[$.Delete],
61380
61380
  icon: /* @__PURE__ */ M(ht, {
@@ -61393,7 +61393,7 @@ var wP = () => {
61393
61393
  }), a.actionLabels[$.Unshare] && Bt?.includes(e.path) && !r && n.push({
61394
61394
  key: "unshare",
61395
61395
  label: a.actionLabels[$.Unshare],
61396
- icon: /* @__PURE__ */ M(pM, {
61396
+ icon: /* @__PURE__ */ M(mM, {
61397
61397
  width: h.size,
61398
61398
  height: h.size,
61399
61399
  className: "text-secondary"
@@ -61437,21 +61437,21 @@ var wP = () => {
61437
61437
  return re.forEach((t, n) => e.add(n)), e;
61438
61438
  }, [re]), Rn = o((e, t) => {
61439
61439
  ae(e), fe?.(t);
61440
- }, [fe, ae]), zn = _P({
61440
+ }, [fe, ae]), zn = vP({
61441
61441
  selectedFiles: re,
61442
61442
  actionLabels: g?.actionLabels,
61443
61443
  onDuplicate: xe,
61444
61444
  onCopy: (e) => {
61445
- ve(e), me(_M.Copy);
61445
+ ve(e), me(vM.Copy);
61446
61446
  },
61447
61447
  onMove: (e) => {
61448
- ye(e), me(_M.Move);
61448
+ ye(e), me(vM.Move);
61449
61449
  },
61450
61450
  onDownload: Oe,
61451
61451
  onDelete: ke,
61452
61452
  onUnshare: Mt,
61453
61453
  onRemoveAccess: Nt,
61454
- getCurrentFolderPath: () => te ?? "/",
61454
+ getCurrentFolderPath: () => k ?? "/",
61455
61455
  sharedWithMeIds: Bt,
61456
61456
  sharedByMePaths: S,
61457
61457
  onClearSelection: ie,
@@ -61459,10 +61459,10 @@ var wP = () => {
61459
61459
  }), Bn = o((e) => {
61460
61460
  d?.onTabChange?.(e), ct();
61461
61461
  }, [d, ct]), Vn = o(() => d && A.size === 0 ? /* @__PURE__ */ N("div", {
61462
- className: CM,
61462
+ className: wM,
61463
61463
  role: "toolbar",
61464
61464
  "aria-label": "File Manager Toolbar",
61465
- children: [e, /* @__PURE__ */ M(nP, {
61465
+ children: [e, /* @__PURE__ */ M(rP, {
61466
61466
  ...d,
61467
61467
  onTabChange: Bn,
61468
61468
  areHiddenFilesVisible: T,
@@ -61472,10 +61472,10 @@ var wP = () => {
61472
61472
  newButtonDropdownItems: rt
61473
61473
  })]
61474
61474
  }) : A.size > 0 && g ? /* @__PURE__ */ M("div", {
61475
- className: CM,
61475
+ className: wM,
61476
61476
  role: "toolbar",
61477
61477
  "aria-label": "File Manager Toolbar",
61478
- children: /* @__PURE__ */ M(YN, {
61478
+ children: /* @__PURE__ */ M(XN, {
61479
61479
  ...g,
61480
61480
  selectedCount: A.size,
61481
61481
  onClearSelection: ie,
@@ -61500,39 +61500,39 @@ var wP = () => {
61500
61500
  role: "region",
61501
61501
  "aria-label": "File Manager Tree Navigation",
61502
61502
  className: "min-h-0 min-w-0 h-full flex-none",
61503
- children: /* @__PURE__ */ M(k, {
61503
+ children: /* @__PURE__ */ M(O, {
61504
61504
  defaultWidth: ln,
61505
61505
  width: ln,
61506
61506
  onResizeStop: un,
61507
61507
  onResize: bn,
61508
- minWidth: FM,
61509
- maxWidth: IM,
61510
- enabled: !D,
61511
- children: /* @__PURE__ */ M(O, {
61508
+ minWidth: IM,
61509
+ maxWidth: LM,
61510
+ enabled: !ee,
61511
+ children: /* @__PURE__ */ M(D, {
61512
61512
  width: ln,
61513
61513
  title: an,
61514
61514
  containerClassName: on,
61515
61515
  titleClassName: "dial-body-text text-primary",
61516
61516
  additionalButtons: sn,
61517
- isOpened: !D,
61518
- onToggle: ee,
61519
- children: /* @__PURE__ */ M(gP, {
61517
+ isOpened: !ee,
61518
+ onToggle: te,
61519
+ children: /* @__PURE__ */ M(_P, {
61520
61520
  ...cn,
61521
61521
  items: n,
61522
61522
  rootItemPath: r?.path,
61523
61523
  rootItemLabel: r?.label,
61524
- selectedPath: te,
61524
+ selectedPath: k,
61525
61525
  sharedByMePaths: S,
61526
61526
  forbiddenSymbolsRegExp: Ve,
61527
61527
  forbiddenSymbolsTooltip: He,
61528
61528
  onItemClick: ue,
61529
61529
  areHiddenFilesVisible: T,
61530
61530
  getContextMenuItems: In,
61531
- renamedPath: dn === vM.Tree ? Pe : void 0,
61531
+ renamedPath: dn === yM.Tree ? Pe : void 0,
61532
61532
  onRenameSave: Le,
61533
61533
  onRenameCancel: Re,
61534
61534
  onRenameValidate: ze,
61535
- createdFolderPath: mn === yM.Tree ? Be : null,
61535
+ createdFolderPath: mn === bM.Tree ? Be : null,
61536
61536
  onCreateFolderCancel: ct,
61537
61537
  onCreateFolderSave: lt,
61538
61538
  newFolderDefaultName: nn
@@ -61542,16 +61542,16 @@ var wP = () => {
61542
61542
  }), [
61543
61543
  jn,
61544
61544
  ln,
61545
- D,
61545
+ ee,
61546
61546
  an,
61547
61547
  on,
61548
61548
  sn,
61549
- ee,
61549
+ te,
61550
61550
  cn,
61551
61551
  n,
61552
61552
  r?.path,
61553
61553
  r?.label,
61554
- te,
61554
+ k,
61555
61555
  S,
61556
61556
  Ve,
61557
61557
  He,
@@ -61568,14 +61568,14 @@ var wP = () => {
61568
61568
  ct,
61569
61569
  lt,
61570
61570
  nn
61571
- ]), Un = TP({
61571
+ ]), Un = EP({
61572
61572
  actionLabels: l?.actionLabels,
61573
61573
  onDuplicate: (e) => xe([e]),
61574
61574
  onCopy: (e) => {
61575
- ve([e]), me(_M.Copy);
61575
+ ve([e]), me(vM.Copy);
61576
61576
  },
61577
61577
  onMove: (e) => {
61578
- ye([e]), me(_M.Move);
61578
+ ye([e]), me(vM.Move);
61579
61579
  },
61580
61580
  onDownload: (e) => Oe([e]),
61581
61581
  onRename: fn,
@@ -61595,14 +61595,14 @@ var wP = () => {
61595
61595
  onGridCreateSiblingFolder: hn,
61596
61596
  onGridCreateChildFolder: _n
61597
61597
  }), Wn = o((e) => {
61598
- let t = qM(n, e.path);
61598
+ let t = JM(n, e.path);
61599
61599
  return t ? Un(t) : [];
61600
- }, [n, Un]), { actionsColumnDef: Gn } = WM({
61600
+ }, [n, Un]), { actionsColumnDef: Gn } = GM({
61601
61601
  getContextMenuItems: Wn,
61602
61602
  isRowDisabled: o((e, t, n) => On ? !1 : Pn(e, t, n), [On, Pn]),
61603
61603
  allowedFileTypes: C,
61604
- buttonClassName: jn ? "" : OM
61605
- }), { columnDefs: Kn } = CP({
61604
+ buttonClassName: jn ? "" : kM
61605
+ }), { columnDefs: Kn } = wP({
61606
61606
  userColumnDefs: xn,
61607
61607
  filterable: Sn,
61608
61608
  dateLocale: Cn,
@@ -61614,7 +61614,7 @@ var wP = () => {
61614
61614
  rootItemLabel: r?.label,
61615
61615
  rootItemPath: r?.path
61616
61616
  }), qn = o((e) => {
61617
- e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === xM.Actions || Pe && e.data?.path === Pe || e.data?.isTemporary || Qt && Qt.includes(e.colDef.colId) || e.data && de(e.data);
61617
+ e.colDef.colId === "ag-Grid-SelectionColumn" || e.colDef.colId === SM.Actions || Pe && e.data?.path === Pe || e.data?.isTemporary || Qt && Qt.includes(e.colDef.colId) || e.data && de(e.data);
61618
61618
  }, [
61619
61619
  Pe,
61620
61620
  de,
@@ -61634,11 +61634,11 @@ var wP = () => {
61634
61634
  zt,
61635
61635
  Lt,
61636
61636
  Rt
61637
- ]), Yn = f(() => (e) => e.path, []), Xn = f(() => (0, sM.default)("min-h-[248px] overflow-auto md:min-h-[266px]", Ge ? "border border-dashed border-info" : "", Ke && !Ge ? "border border-dashed border-primary" : ""), [Ge, Ke]), Zn = f(() => ({
61637
+ ]), Yn = f(() => (e) => e.path, []), Xn = f(() => (0, cM.default)("min-h-[248px] overflow-auto md:min-h-[266px]", Ge ? "border border-dashed border-info" : "", Ke && !Ge ? "border border-dashed border-primary" : ""), [Ge, Ke]), Zn = f(() => ({
61638
61638
  ...kn.additionalGridOptions,
61639
61639
  onCellClicked: qn,
61640
- headerHeight: LM,
61641
- rowHeight: LM,
61640
+ headerHeight: RM,
61641
+ rowHeight: RM,
61642
61642
  rowClass: "group/grid-row",
61643
61643
  defaultColDef: {
61644
61644
  ...kn.additionalGridOptions?.defaultColDef,
@@ -61735,7 +61735,7 @@ var wP = () => {
61735
61735
  ref: An,
61736
61736
  className: "size-full",
61737
61737
  children: /* @__PURE__ */ N("div", {
61738
- className: Ue(SM, {
61738
+ className: Ue(CM, {
61739
61739
  "gap-3 pt-4": g && A.size > 0,
61740
61740
  "gap-4 p-3 pt-4": jn,
61741
61741
  "gap-2 pt-2": jn && g && A.size > 0
@@ -61743,13 +61743,13 @@ var wP = () => {
61743
61743
  children: [
61744
61744
  Vn(),
61745
61745
  /* @__PURE__ */ N("div", {
61746
- className: Ue(wM, Zt),
61746
+ className: Ue(TM, Zt),
61747
61747
  children: [Hn(), /* @__PURE__ */ N("div", {
61748
- className: Ue(TM, { "gap-3": jn }),
61749
- children: [s && /* @__PURE__ */ M(tP, {
61748
+ className: Ue(EM, { "gap-3": jn }),
61749
+ children: [s && /* @__PURE__ */ M(nP, {
61750
61750
  ...c ?? {},
61751
61751
  makeHref: (e) => e.join("/"),
61752
- path: te,
61752
+ path: k,
61753
61753
  onItemClick: ce,
61754
61754
  rootItemPath: r?.path,
61755
61755
  rootItemLabel: r?.label,
@@ -61760,12 +61760,12 @@ var wP = () => {
61760
61760
  }), /* @__PURE__ */ N("section", {
61761
61761
  role: "region",
61762
61762
  "aria-label": "File Manager Grid View",
61763
- className: Ue(DM, "relative"),
61763
+ className: Ue(OM, "relative"),
61764
61764
  onDragEnter: qe,
61765
61765
  onDragLeave: Je,
61766
61766
  onDragOver: Ye,
61767
61767
  onDrop: Xe,
61768
- children: [Qn, /* @__PURE__ */ M(HN, {
61768
+ children: [Qn, /* @__PURE__ */ M(UN, {
61769
61769
  disabledGridRowIds: Fn,
61770
61770
  gridRows: ne,
61771
61771
  getDisabledTooltip: Jt,
@@ -61776,43 +61776,43 @@ var wP = () => {
61776
61776
  })]
61777
61777
  })]
61778
61778
  }),
61779
- /* @__PURE__ */ M(XN, {
61779
+ /* @__PURE__ */ M(ZN, {
61780
61780
  ..._,
61781
61781
  open: Me,
61782
61782
  itemsToDelete: Ne,
61783
61783
  onClose: Ae,
61784
61784
  onConfirm: je
61785
61785
  }),
61786
- /* @__PURE__ */ M(GN, {
61786
+ /* @__PURE__ */ M(KN, {
61787
61787
  ...v,
61788
61788
  open: ge,
61789
61789
  onClose: he,
61790
61790
  onConfirm: () => {
61791
61791
  let e = v?.destinationFolderPath ?? "/";
61792
- _e === _M.Copy ? Se(e) : Ce(e), he();
61792
+ _e === vM.Copy ? Se(e) : Ce(e), he();
61793
61793
  },
61794
61794
  mode: _e,
61795
61795
  items: n,
61796
61796
  rootItem: r,
61797
61797
  gridOptions: {
61798
- columnDefs: Kn.filter((e) => e.colId !== xM.Actions),
61798
+ columnDefs: Kn.filter((e) => e.colId !== SM.Actions),
61799
61799
  loading: i
61800
61800
  },
61801
61801
  onUploadFiles: Ze,
61802
61802
  onValidateUpload: $e,
61803
61803
  maxFileSize: et,
61804
- path: v?.destinationFolderPath ?? v?.sourceFolder ?? te,
61804
+ path: v?.destinationFolderPath ?? v?.sourceFolder ?? k,
61805
61805
  onPathChange: (e) => {
61806
61806
  v?.setDestinationFolderPath?.(e);
61807
61807
  },
61808
- sourceFolder: v?.sourceFolder ?? te,
61808
+ sourceFolder: v?.sourceFolder ?? k,
61809
61809
  treeOptions: { header: a?.header },
61810
61810
  onFolderPopupPathChange: Vt,
61811
61811
  showHiddenFileSwitcher: en,
61812
61812
  showCreateFolderButton: tn,
61813
61813
  hideSearchPathItemName: $t
61814
61814
  }),
61815
- /* @__PURE__ */ M(UM, {
61815
+ /* @__PURE__ */ M(WM, {
61816
61816
  ...y,
61817
61817
  open: mt,
61818
61818
  onClose: yt,
@@ -61821,7 +61821,7 @@ var wP = () => {
61821
61821
  onDecideForEach: bt,
61822
61822
  conflictingFiles: pt
61823
61823
  }),
61824
- /* @__PURE__ */ M(UM, {
61824
+ /* @__PURE__ */ M(WM, {
61825
61825
  ...y,
61826
61826
  open: St,
61827
61827
  onClose: Tt,
@@ -61830,7 +61830,7 @@ var wP = () => {
61830
61830
  onDecideForEach: Et,
61831
61831
  conflictingFiles: xt
61832
61832
  }),
61833
- /* @__PURE__ */ M(lP, {
61833
+ /* @__PURE__ */ M(uP, {
61834
61834
  open: kt,
61835
61835
  onClose: jt,
61836
61836
  fileMetadata: Ot?.fileMetadata ?? At,
@@ -61847,11 +61847,11 @@ var wP = () => {
61847
61847
  ]
61848
61848
  })
61849
61849
  });
61850
- }, kP = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", addSiblingFolderLabel: s = "Add sibling", addChildFolderLabel: c = "Add child", newFolderDefaultName: l = "New folder", noResultsLabel: u = "No folders match \"{query}\".", emptyFolderNameError: d = "Folder name cannot be empty.", invalidFolderNameError: h = "Folder name contains invalid characters.", duplicateFolderNameError: g = "A folder with this name already exists.", rootLabel: _ = "Organization", expandedPaths: v, onExpandedPathsChange: y, loadingPaths: b }) => {
61850
+ }, AP = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", addSiblingFolderLabel: s = "Add sibling", addChildFolderLabel: c = "Add child", newFolderDefaultName: l = "New folder", noResultsLabel: u = "No folders match \"{query}\".", emptyFolderNameError: d = "Folder name cannot be empty.", invalidFolderNameError: h = "Folder name contains invalid characters.", duplicateFolderNameError: g = "A folder with this name already exists.", rootLabel: _ = "Organization", expandedPaths: v, onExpandedPathsChange: y, loadingPaths: b }) => {
61851
61851
  let [x, S] = m(() => new Set(t?.map((e, n) => Kt(t.slice(0, n + 1))) ?? [])), C = v ?? x, w = (e) => {
61852
61852
  let t = new Set(e);
61853
61853
  t.delete(""), y ? y(t) : S(t);
61854
- }, [E, D] = m(null), [O, k] = m(l), ee = p(null), te = i.trim(), ne = E != null, A = f(() => Bt(e, i), [e, i]), re = te.length > 0 && A.length === 0, ie = !ne && te.length > 0, j = f(() => Ht(ie ? A : e), [
61854
+ }, [E, ee] = m(null), [D, O] = m(l), te = p(null), k = i.trim(), ne = E != null, A = f(() => Bt(e, i), [e, i]), re = k.length > 0 && A.length === 0, ie = !ne && k.length > 0, j = f(() => Ht(ie ? A : e), [
61855
61855
  ie,
61856
61856
  A,
61857
61857
  e
@@ -61863,7 +61863,7 @@ var wP = () => {
61863
61863
  path: "",
61864
61864
  name: _,
61865
61865
  folderId: "",
61866
- nodeType: BM.FOLDER,
61866
+ nodeType: VM.FOLDER,
61867
61867
  items: se
61868
61868
  }], [
61869
61869
  se,
@@ -61873,8 +61873,8 @@ var wP = () => {
61873
61873
  empty: d,
61874
61874
  invalid: h,
61875
61875
  duplicate: g
61876
- }, de = (t) => Zt(re && Xt(te, [], ue) == null ? te : l, Qt(e, t)), fe = (e) => {
61877
- D(e), k(de(e)), ee.current = null;
61876
+ }, de = (t) => Zt(re && Xt(k, [], ue) == null ? k : l, Qt(e, t)), fe = (e) => {
61877
+ ee(e), O(de(e)), te.current = null;
61878
61878
  let t = Kt(e);
61879
61879
  t && w(new Set(C).add(t));
61880
61880
  }, pe = () => fe(t ?? []), me = (e) => {
@@ -61899,11 +61899,11 @@ var wP = () => {
61899
61899
  }, he = (t) => {
61900
61900
  if (!E) return null;
61901
61901
  let n = Xt(t, Qt(e, E), ue);
61902
- return ee.current = n, n;
61902
+ return te.current = n, n;
61903
61903
  };
61904
61904
  return /* @__PURE__ */ N("div", {
61905
61905
  className: Br(a && "pointer-events-none opacity-60"),
61906
- children: [/* @__PURE__ */ M(gP, {
61906
+ children: [/* @__PURE__ */ M(_P, {
61907
61907
  items: ce,
61908
61908
  showFiles: !1,
61909
61909
  selectedPath: t == null ? void 0 : Kt(t),
@@ -61915,15 +61915,15 @@ var wP = () => {
61915
61915
  },
61916
61916
  getContextMenuItems: me,
61917
61917
  createdFolderPath: le,
61918
- newFolderDefaultName: O,
61918
+ newFolderDefaultName: D,
61919
61919
  onCreateFolderSave: (e) => {
61920
61920
  if (!E) return;
61921
- let t = e.trim(), i = ee.current;
61922
- (he(e) ?? i) || (r(E, t), n([...E, t])), D(null);
61921
+ let t = e.trim(), i = te.current;
61922
+ (he(e) ?? i) || (r(E, t), n([...E, t])), ee(null);
61923
61923
  },
61924
- onCreateFolderCancel: () => D(null),
61924
+ onCreateFolderCancel: () => ee(null),
61925
61925
  onRenameValidate: (e) => he(e),
61926
- emptyStateTitle: ie ? u.replace("{query}", te) : void 0
61926
+ emptyStateTitle: ie ? u.replace("{query}", k) : void 0
61927
61927
  }), /* @__PURE__ */ M(Oe, {
61928
61928
  onClick: pe,
61929
61929
  label: o,
@@ -61934,7 +61934,7 @@ var wP = () => {
61934
61934
  disabled: a
61935
61935
  })]
61936
61936
  });
61937
- }, AP = {
61937
+ }, jP = {
61938
61938
  wrapper: "_wrapper_1t670_1",
61939
61939
  header: "_header_1t670_6",
61940
61940
  appear: "_appear_1t670_18",
@@ -61942,13 +61942,13 @@ var wP = () => {
61942
61942
  resizeHandler: "_resizeHandler_1t670_22"
61943
61943
  };
61944
61944
  a(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r, rightActions: i }) => /* @__PURE__ */ N("div", {
61945
- className: Br("flex h-12 items-center px-4", r, AP.header),
61945
+ className: Br("flex h-12 items-center px-4", r, jP.header),
61946
61946
  children: [
61947
61947
  n && /* @__PURE__ */ M("div", {
61948
61948
  className: "flex items-center gap-1",
61949
61949
  children: n
61950
61950
  }),
61951
- /* @__PURE__ */ M(te, {
61951
+ /* @__PURE__ */ M(k, {
61952
61952
  text: e,
61953
61953
  className: Br("min-w-0 flex-1 truncate", t)
61954
61954
  }),
@@ -61958,12 +61958,12 @@ a(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r,
61958
61958
  })
61959
61959
  ]
61960
61960
  }));
61961
- var jP = { icon: "_icon_nu4hc_1" }, MP = a(({ value: e, onChange: t, labels: n, styles: r }) => {
61962
- let { colors: i, iconClassName: a = jP.icon, wrapperClassName: o, rowClassName: s } = r ?? {}, c = f(() => Vr({ "--si-icon": i?.icon }), [i]);
61961
+ var MP = { icon: "_icon_nu4hc_1" }, NP = a(({ value: e, onChange: t, labels: n, styles: r }) => {
61962
+ let { colors: i, iconClassName: a = MP.icon, wrapperClassName: o, rowClassName: s } = r ?? {}, c = f(() => Vr({ "--si-icon": i?.icon }), [i]);
61963
61963
  return /* @__PURE__ */ M("div", {
61964
61964
  className: Br("px-3 py-2", o),
61965
61965
  style: c,
61966
- children: /* @__PURE__ */ M(Rj, {
61966
+ children: /* @__PURE__ */ M(zj, {
61967
61967
  value: e,
61968
61968
  onChange: t,
61969
61969
  labels: {
@@ -61996,17 +61996,17 @@ a(({ label: e, icon: t = dt, iconSize: n = 48 }) => /* @__PURE__ */ M(Ph, {
61996
61996
  }),
61997
61997
  label: e
61998
61998
  }));
61999
- var NP = {
61999
+ var PP = {
62000
62000
  summaryRow: "_summaryRow_1xcyd_1",
62001
62001
  summaryTitle: "_summaryTitle_1xcyd_6",
62002
62002
  sectionHeading: "_sectionHeading_1xcyd_10"
62003
- }, PP = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: p, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", colors: D }) => {
62004
- let O = Vr({
62005
- "--pp-summary-border": D?.summaryBorder,
62006
- "--pp-summary-bg": D?.summaryBackground,
62007
- "--pp-summary-title-text": D?.summaryTitleText,
62008
- "--pp-heading-text": D?.headingText
62009
- }), { folderLabel: k = "Publish to folder", searchPlaceholder: ee = "Search folders", clearSearchAriaLabel: te = "Clear search", historyLabel: ne = "Versions history", replaceWarning: A = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: re = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: ie = "Publishing failed. Please try again.", folderEmptyStateLabel: j, addSiblingFolderLabel: ae, addChildFolderLabel: oe, createFolderEmptyNameError: se, createFolderInvalidNameError: ce, createFolderDuplicateNameError: le, historyLoadingLabel: ue, historyErrorLabel: de, rootFolderLabel: fe = "Organization", accessRulesLabels: pe } = w, [me, he] = m(""), ge = o != null, _e = f(() => Pt({
62003
+ }, FP = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: p, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", colors: ee }) => {
62004
+ let D = Vr({
62005
+ "--pp-summary-border": ee?.summaryBorder,
62006
+ "--pp-summary-bg": ee?.summaryBackground,
62007
+ "--pp-summary-title-text": ee?.summaryTitleText,
62008
+ "--pp-heading-text": ee?.headingText
62009
+ }), { folderLabel: O = "Publish to folder", searchPlaceholder: te = "Search folders", clearSearchAriaLabel: k = "Clear search", historyLabel: ne = "Versions history", replaceWarning: A = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: re = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: ie = "Publishing failed. Please try again.", folderEmptyStateLabel: j, addSiblingFolderLabel: ae, addChildFolderLabel: oe, createFolderEmptyNameError: se, createFolderInvalidNameError: ce, createFolderDuplicateNameError: le, historyLoadingLabel: ue, historyErrorLabel: de, rootFolderLabel: fe = "Organization", accessRulesLabels: pe } = w, [me, he] = m(""), ge = o != null, _e = f(() => Pt({
62010
62010
  hasSelectedFolder: ge,
62011
62011
  hasExistingPublicationInFolder: p,
62012
62012
  hasWriteAccess: h,
@@ -62033,26 +62033,26 @@ var NP = {
62033
62033
  className: "flex flex-col gap-5",
62034
62034
  children: [
62035
62035
  /* @__PURE__ */ M("div", {
62036
- style: O,
62037
- className: Br("flex items-center justify-between gap-3 rounded-xl border px-3.5 py-3", NP.summaryRow),
62036
+ style: D,
62037
+ className: Br("flex items-center justify-between gap-3 rounded-xl border px-3.5 py-3", PP.summaryRow),
62038
62038
  children: t ? t() : /* @__PURE__ */ M("span", {
62039
- className: Br("truncate", T, NP.summaryTitle),
62039
+ className: Br("truncate", T, PP.summaryTitle),
62040
62040
  children: e?.title
62041
62041
  })
62042
62042
  }),
62043
62043
  /* @__PURE__ */ N("div", { children: [
62044
62044
  /* @__PURE__ */ M("div", {
62045
- className: Br("mb-2", E, NP.sectionHeading),
62046
- children: k
62045
+ className: Br("mb-2", E, PP.sectionHeading),
62046
+ children: O
62047
62047
  }),
62048
62048
  /* @__PURE__ */ M("div", {
62049
62049
  className: "mb-3",
62050
- children: /* @__PURE__ */ M(MP, {
62050
+ children: /* @__PURE__ */ M(NP, {
62051
62051
  value: me,
62052
62052
  onChange: he,
62053
62053
  labels: {
62054
- placeholder: ee,
62055
- clearLabel: te
62054
+ placeholder: te,
62055
+ clearLabel: k
62056
62056
  },
62057
62057
  styles: {
62058
62058
  wrapperClassName: "px-0",
@@ -62060,7 +62060,7 @@ var NP = {
62060
62060
  }
62061
62061
  })
62062
62062
  }),
62063
- /* @__PURE__ */ M(kP, {
62063
+ /* @__PURE__ */ M(AP, {
62064
62064
  items: a,
62065
62065
  selectedPath: o,
62066
62066
  onSelectedPathChange: s,
@@ -62082,8 +62082,8 @@ var NP = {
62082
62082
  className: "mt-3",
62083
62083
  children: /* @__PURE__ */ M(ke, {
62084
62084
  type: Ae.SectionMessage,
62085
- variant: FP(_e.calloutKind),
62086
- message: LP(_e.calloutKind, {
62085
+ variant: IP(_e.calloutKind),
62086
+ message: RP(_e.calloutKind, {
62087
62087
  replaceWarning: A,
62088
62088
  noAccessError: re,
62089
62089
  submitError: ie,
@@ -62093,7 +62093,7 @@ var NP = {
62093
62093
  })
62094
62094
  })
62095
62095
  ] }),
62096
- /* @__PURE__ */ M(Xj, {
62096
+ /* @__PURE__ */ M(Zj, {
62097
62097
  rules: y,
62098
62098
  onRulesChange: b,
62099
62099
  sourceOptions: x,
@@ -62103,9 +62103,9 @@ var NP = {
62103
62103
  labels: pe
62104
62104
  }),
62105
62105
  ge && e?.version != null && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("div", {
62106
- className: Br("mb-2", E, NP.sectionHeading),
62106
+ className: Br("mb-2", E, PP.sectionHeading),
62107
62107
  children: ne
62108
- }), /* @__PURE__ */ M(Qj, {
62108
+ }), /* @__PURE__ */ M($j, {
62109
62109
  entries: ye,
62110
62110
  isLoading: r,
62111
62111
  hasError: i,
@@ -62115,7 +62115,7 @@ var NP = {
62115
62115
  })] })
62116
62116
  ]
62117
62117
  });
62118
- }, FP = (e) => e === Nt.ReplaceWarning ? je.Warning : je.Error, IP = (e, t) => {
62118
+ }, IP = (e) => e === Nt.ReplaceWarning ? je.Warning : je.Error, LP = (e, t) => {
62119
62119
  let [n, r, ...i] = e.split("{folder}");
62120
62120
  return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ N(Ge, { children: [
62121
62121
  n,
@@ -62125,11 +62125,11 @@ var NP = {
62125
62125
  }),
62126
62126
  r
62127
62127
  ] });
62128
- }, LP = (e, t) => e === Nt.ReplaceWarning ? IP(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === Nt.NoAccess ? IP(t.noAccessError, t.folderName) : t.submitError, RP = { footer: "_footer_dks1v_1" }, zP = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
62128
+ }, RP = (e, t) => e === Nt.ReplaceWarning ? LP(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === Nt.NoAccess ? LP(t.noAccessError, t.folderName) : t.submitError, zP = { footer: "_footer_dks1v_1" }, BP = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
62129
62129
  let c = Vr({ "--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;
62130
62130
  return /* @__PURE__ */ N("div", {
62131
62131
  style: c,
62132
- className: Br("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", RP.footer),
62132
+ className: Br("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", zP.footer),
62133
62133
  children: [/* @__PURE__ */ M(we, {
62134
62134
  label: l,
62135
62135
  disabled: r,
@@ -62141,13 +62141,13 @@ var NP = {
62141
62141
  onClick: a
62142
62142
  })]
62143
62143
  });
62144
- }, BP = {
62144
+ }, VP = {
62145
62145
  backdrop: "_backdrop_1rdk6_1",
62146
62146
  panel: "_panel_1rdk6_5",
62147
62147
  divider: "_divider_1rdk6_10",
62148
62148
  content: "_content_1rdk6_14",
62149
62149
  title: "_title_1rdk6_19"
62150
- }, VP = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, allowReplace: x = !0, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, onClose: D, returnFocusRef: O, onSubmit: k, panelLabels: ee, footerLabels: te, labels: ne = {}, titleClassName: A = "dial-body-semi-text", colors: re }) => {
62150
+ }, HP = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, allowReplace: x = !0, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, onClose: ee, returnFocusRef: D, onSubmit: O, panelLabels: te, footerLabels: k, labels: ne = {}, titleClassName: A = "dial-body-semi-text", colors: re }) => {
62151
62151
  let ie = Vr({
62152
62152
  "--spp-backdrop-bg": re?.backdropBackground,
62153
62153
  "--spp-panel-bg": re?.panelBackground,
@@ -62182,22 +62182,22 @@ var NP = {
62182
62182
  document.addEventListener("focusin", r);
62183
62183
  let i = requestAnimationFrame(() => {
62184
62184
  document.removeEventListener("focusin", r);
62185
- }), a = O?.current;
62185
+ }), a = D?.current;
62186
62186
  return () => {
62187
62187
  cancelAnimationFrame(i), document.removeEventListener("focusin", r), a?.isConnected && a.focus({ preventScroll: !0 });
62188
62188
  };
62189
- }, [e, O]), c(() => {
62189
+ }, [e, D]), c(() => {
62190
62190
  if (!e) return;
62191
62191
  let t = (e) => {
62192
- e.key === "Escape" && D();
62192
+ e.key === "Escape" && ee();
62193
62193
  };
62194
62194
  return document.addEventListener("keydown", t), () => {
62195
62195
  document.removeEventListener("keydown", t);
62196
62196
  };
62197
- }, [e, D]), /* @__PURE__ */ N(Ge, { children: [/* @__PURE__ */ M("div", {
62197
+ }, [e, ee]), /* @__PURE__ */ N(Ge, { children: [/* @__PURE__ */ M("div", {
62198
62198
  style: ie,
62199
- className: Br("fixed inset-0 z-[51] transition-opacity duration-300", BP.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
62200
- onClick: D,
62199
+ className: Br("fixed inset-0 z-[51] transition-opacity duration-300", VP.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
62200
+ onClick: ee,
62201
62201
  "aria-hidden": "true"
62202
62202
  }), /* @__PURE__ */ N("div", {
62203
62203
  ref: j,
@@ -62208,32 +62208,32 @@ var NP = {
62208
62208
  inert: !e,
62209
62209
  tabIndex: -1,
62210
62210
  style: ie,
62211
- className: Br("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", BP.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
62211
+ className: Br("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", VP.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
62212
62212
  children: [
62213
62213
  /* @__PURE__ */ N("div", {
62214
62214
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
62215
62215
  children: [
62216
62216
  /* @__PURE__ */ M("div", { className: "flex-1" }),
62217
62217
  /* @__PURE__ */ M("span", {
62218
- className: Br("flex-1 text-center", A, BP.title),
62218
+ className: Br("flex-1 text-center", A, VP.title),
62219
62219
  children: ae
62220
62220
  }),
62221
62221
  /* @__PURE__ */ M("div", {
62222
62222
  className: "flex flex-1 justify-end",
62223
62223
  children: /* @__PURE__ */ M(b, {
62224
- onClose: D,
62224
+ onClose: ee,
62225
62225
  ariaLabel: se,
62226
62226
  disabled: v
62227
62227
  })
62228
62228
  })
62229
62229
  ]
62230
62230
  }),
62231
- /* @__PURE__ */ M("div", { className: Br("shrink-0", BP.divider) }),
62231
+ /* @__PURE__ */ M("div", { className: Br("shrink-0", VP.divider) }),
62232
62232
  /* @__PURE__ */ M("div", {
62233
- className: Br("min-h-0 flex-1 overflow-y-auto", BP.content),
62233
+ className: Br("min-h-0 flex-1 overflow-y-auto", VP.content),
62234
62234
  children: /* @__PURE__ */ M("div", {
62235
62235
  className: "p-[22px]",
62236
- children: /* @__PURE__ */ M(PP, {
62236
+ children: /* @__PURE__ */ M(FP, {
62237
62237
  resource: t,
62238
62238
  renderSummary: n,
62239
62239
  history: r,
@@ -62256,21 +62256,21 @@ var NP = {
62256
62256
  ruleSourceOptions: w,
62257
62257
  isRulesLoading: T,
62258
62258
  hasRulesLoadError: E,
62259
- labels: ee
62259
+ labels: te
62260
62260
  })
62261
62261
  })
62262
62262
  }),
62263
- /* @__PURE__ */ M(zP, {
62263
+ /* @__PURE__ */ M(BP, {
62264
62264
  version: t?.version,
62265
62265
  hasExistingPublicationInFolder: g,
62266
62266
  isSubmitDisabled: ce.isSubmitDisabled,
62267
62267
  isSubmitLoading: ce.isSubmitLoading,
62268
- onCancel: D,
62269
- onSubmit: k,
62270
- labels: te
62268
+ onCancel: ee,
62269
+ onSubmit: O,
62270
+ labels: k
62271
62271
  })
62272
62272
  ]
62273
62273
  })] });
62274
62274
  };
62275
62275
  //#endregion
62276
- export { Mt as PublicationRuleFunction, Kj as PublishAccessRuleEditor, Xj as PublishAccessRules, Nt as PublishCalloutKind, kP as PublishFoldersTree, zP as PublishFooter, Qj as PublishHistoryList, PP as PublishPanel, VP as StandalonePublishPanel, Gt as collectFolderKeys, Pt as derivePublishState, Bt as filterFolderTree, It as formatPublishedDate, qt as fromFolderPathKey, Qt as getSiblingFolderNames, Zt as getUniqueFolderName, Wt as mergeFolderPaths, Ht as sortFolderTree, Jt as toDialFileTree, Kt as toFolderPathKey, zt as usePublishFlow, Xt as validateFolderName };
62276
+ export { Mt as PublicationRuleFunction, qj as PublishAccessRuleEditor, Zj as PublishAccessRules, Nt as PublishCalloutKind, AP as PublishFoldersTree, BP as PublishFooter, $j as PublishHistoryList, FP as PublishPanel, HP as StandalonePublishPanel, Gt as collectFolderKeys, Pt as derivePublishState, Bt as filterFolderTree, It as formatPublishedDate, qt as fromFolderPathKey, Qt as getSiblingFolderNames, Zt as getUniqueFolderName, Wt as mergeFolderPaths, Ht as sortFolderTree, Jt as toDialFileTree, Kt as toFolderPathKey, zt as usePublishFlow, Xt as validateFolderName };