@opencloud-eu/web-client 7.2.0 → 7.4.0

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.
@@ -1,6 +1,6 @@
1
- import { a as e, i as t, n, r } from "./axios-Dwm7CNmg.js";
1
+ import { a as e, i as t, n, r } from "./axios-CAceQWl5.js";
2
2
  import { t as i } from "./urlJoin-_pUL1TUx.js";
3
- import { c as a, i as o, l as s, n as c, o as l, r as u, t as d } from "./toString-BCd-H1lr.js";
3
+ import { c as a, i as o, l as s, n as c, o as l, r as u, t as d } from "./toString-Y_fh2BSJ.js";
4
4
  //#region src/helpers/publicLink/functions.ts
5
5
  function f(e, t = "") {
6
6
  return `/public-files/${e}/${t}`.split("/").filter(Boolean).join("/");
@@ -21,21 +21,23 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
21
21
  else if (o === 47) break;
22
22
  else o = 47;
23
23
  if (o === 47) {
24
- if (!(i === s - 1 || a === 1)) if (i !== s - 1 && a === 2) {
25
- if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
26
- if (n.length > 2) {
27
- var c = n.lastIndexOf("/");
28
- if (c !== n.length - 1) {
29
- c === -1 ? (n = "", r = 0) : (n = n.slice(0, c), r = n.length - 1 - n.lastIndexOf("/")), i = s, a = 0;
24
+ if (i !== s - 1 && a !== 1) {
25
+ if (i !== s - 1 && a === 2) {
26
+ if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
27
+ if (n.length > 2) {
28
+ var c = n.lastIndexOf("/");
29
+ if (c !== n.length - 1) {
30
+ c === -1 ? (n = "", r = 0) : (n = n.slice(0, c), r = n.length - 1 - n.lastIndexOf("/")), i = s, a = 0;
31
+ continue;
32
+ }
33
+ } else if (n.length === 2 || n.length === 1) {
34
+ n = "", r = 0, i = s, a = 0;
30
35
  continue;
31
36
  }
32
- } else if (n.length === 2 || n.length === 1) {
33
- n = "", r = 0, i = s, a = 0;
34
- continue;
35
37
  }
36
- }
37
- t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
38
- } else n.length > 0 ? n += "/" + e.slice(i + 1, s) : n = e.slice(i + 1, s), r = s - i - 1;
38
+ t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
39
+ } else n.length > 0 ? n += "/" + e.slice(i + 1, s) : n = e.slice(i + 1, s), r = s - i - 1;
40
+ }
39
41
  i = s, a = 0;
40
42
  } else o === 46 && a !== -1 ? ++a : a = -1;
41
43
  }
@@ -119,15 +121,14 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
119
121
  } else c === -1 && (a = !1, c = o + 1), s >= 0 && (l === t.charCodeAt(s) ? --s === -1 && (r = o) : (s = -1, r = c));
120
122
  }
121
123
  return n === r ? r = c : r === -1 && (r = e.length), e.slice(n, r);
122
- } else {
123
- for (o = e.length - 1; o >= 0; --o) if (e.charCodeAt(o) === 47) {
124
- if (!a) {
125
- n = o + 1;
126
- break;
127
- }
128
- } else r === -1 && (a = !1, r = o + 1);
129
- return r === -1 ? "" : e.slice(n, r);
130
124
  }
125
+ for (o = e.length - 1; o >= 0; --o) if (e.charCodeAt(o) === 47) {
126
+ if (!a) {
127
+ n = o + 1;
128
+ break;
129
+ }
130
+ } else r === -1 && (a = !1, r = o + 1);
131
+ return r === -1 ? "" : e.slice(n, r);
131
132
  },
132
133
  extname: function(e) {
133
134
  i(e);
@@ -170,7 +171,7 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
170
171
  }
171
172
  c === -1 && (l = !1, c = u + 1), n === 46 ? o === -1 ? o = u : d !== 1 && (d = 1) : o !== -1 && (d = -1);
172
173
  }
173
- return o === -1 || c === -1 || d === 0 || d === 1 && o === c - 1 && o === s + 1 ? c !== -1 && (s === 0 && r ? t.base = t.name = e.slice(1, c) : t.base = t.name = e.slice(s, c)) : (s === 0 && r ? (t.name = e.slice(1, o), t.base = e.slice(1, c)) : (t.name = e.slice(s, o), t.base = e.slice(s, c)), t.ext = e.slice(o, c)), s > 0 ? t.dir = e.slice(0, s - 1) : r && (t.dir = "/"), t;
174
+ return o === -1 || c === -1 || d === 0 || d === 1 && o === c - 1 && o === s + 1 ? c !== -1 && (t.base = t.name = s === 0 && r ? e.slice(1, c) : e.slice(s, c)) : (s === 0 && r ? (t.name = e.slice(1, o), t.base = e.slice(1, c)) : (t.name = e.slice(s, o), t.base = e.slice(s, c)), t.ext = e.slice(o, c)), s > 0 ? t.dir = e.slice(0, s - 1) : r && (t.dir = "/"), t;
174
175
  },
175
176
  sep: "/",
176
177
  delimiter: ":",
@@ -257,7 +258,10 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
257
258
  PublicLinkExpiration: v("public-link-expiration"),
258
259
  PublicLinkShareDate: v("public-link-share-datetime"),
259
260
  PublicLinkShareOwner: v("public-link-share-owner")
260
- }, b = Object.fromEntries(Object.entries(te).map(([e, t]) => [e, t.value])), ne = class e {
261
+ }, b = Object.fromEntries(Object.entries(te).map(([e, t]) => [e, t.value])), ne = {
262
+ d: "DAV:",
263
+ oc: "http://owncloud.org/ns"
264
+ }, re = class e {
261
265
  static Default = [
262
266
  b.Permissions,
263
267
  b.IsFavorite,
@@ -313,12 +317,12 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
313
317
  };
314
318
  //#endregion
315
319
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
316
- function re(e) {
320
+ function ie(e) {
317
321
  return e;
318
322
  }
319
323
  //#endregion
320
324
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
321
- function ie(e, t, n) {
325
+ function ae(e, t, n) {
322
326
  switch (n.length) {
323
327
  case 0: return e.call(t);
324
328
  case 1: return e.call(t, n[0]);
@@ -329,106 +333,106 @@ function ie(e, t, n) {
329
333
  }
330
334
  //#endregion
331
335
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
332
- function ae() {}
336
+ function oe() {}
333
337
  //#endregion
334
338
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
335
- var oe = 800, se = 16, ce = Date.now;
336
- function le(e) {
339
+ var se = 800, ce = 16, le = Date.now;
340
+ function ue(e) {
337
341
  var t = 0, n = 0;
338
342
  return function() {
339
- var r = ce(), i = se - (r - n);
343
+ var r = le(), i = ce - (r - n);
340
344
  if (n = r, i > 0) {
341
- if (++t >= oe) return arguments[0];
345
+ if (++t >= se) return arguments[0];
342
346
  } else t = 0;
343
347
  return e.apply(void 0, arguments);
344
348
  };
345
349
  }
346
350
  //#endregion
347
351
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
348
- function ue(e) {
352
+ function de(e) {
349
353
  return function() {
350
354
  return e;
351
355
  };
352
356
  }
353
357
  //#endregion
354
358
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
355
- var de = function() {
359
+ var fe = function() {
356
360
  try {
357
361
  var e = u(Object, "defineProperty");
358
362
  return e({}, "", {}), e;
359
363
  } catch {}
360
- }(), fe = le(de ? function(e, t) {
361
- return de(e, "toString", {
364
+ }(), pe = ue(fe ? function(e, t) {
365
+ return fe(e, "toString", {
362
366
  configurable: !0,
363
367
  enumerable: !1,
364
- value: ue(t),
368
+ value: de(t),
365
369
  writable: !0
366
370
  });
367
- } : re);
371
+ } : ie);
368
372
  //#endregion
369
373
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
370
- function pe(e, t, n, r) {
374
+ function me(e, t, n, r) {
371
375
  for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
372
376
  return -1;
373
377
  }
374
378
  //#endregion
375
379
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
376
- function me(e) {
380
+ function he(e) {
377
381
  return e !== e;
378
382
  }
379
383
  //#endregion
380
384
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
381
- function he(e, t, n) {
385
+ function ge(e, t, n) {
382
386
  for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
383
387
  return -1;
384
388
  }
385
389
  //#endregion
386
390
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
387
- function ge(e, t, n) {
388
- return t === t ? he(e, t, n) : pe(e, me, n);
391
+ function _e(e, t, n) {
392
+ return t === t ? ge(e, t, n) : me(e, he, n);
389
393
  }
390
394
  //#endregion
391
395
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
392
- function _e(e, t) {
393
- return !!(e != null && e.length) && ge(e, t, 0) > -1;
396
+ function ve(e, t) {
397
+ return !!(e != null && e.length) && _e(e, t, 0) > -1;
394
398
  }
395
399
  //#endregion
396
400
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
397
- var ve = Math.max;
398
- function ye(e, t, n) {
399
- return t = ve(t === void 0 ? e.length - 1 : t, 0), function() {
400
- for (var r = arguments, i = -1, a = ve(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
401
+ var ye = Math.max;
402
+ function be(e, t, n) {
403
+ return t = ye(t === void 0 ? e.length - 1 : t, 0), function() {
404
+ for (var r = arguments, i = -1, a = ye(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
401
405
  i = -1;
402
406
  for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
403
- return s[t] = n(o), ie(e, this, s);
407
+ return s[t] = n(o), ae(e, this, s);
404
408
  };
405
409
  }
406
410
  //#endregion
407
411
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
408
- function be(e, t) {
409
- return fe(ye(e, t, re), e + "");
412
+ function xe(e, t) {
413
+ return pe(be(e, t, ie), e + "");
410
414
  }
411
415
  //#endregion
412
416
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
413
- var xe = 9007199254740991;
414
- function Se(e) {
415
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= xe;
417
+ var Se = 9007199254740991;
418
+ function Ce(e) {
419
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Se;
416
420
  }
417
421
  //#endregion
418
422
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
419
- function Ce(e) {
420
- return e != null && Se(e.length) && !o(e);
423
+ function we(e) {
424
+ return e != null && Ce(e.length) && !o(e);
421
425
  }
422
426
  //#endregion
423
427
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
424
- function we(e) {
428
+ function Te(e) {
425
429
  return function(t) {
426
430
  return e(t);
427
431
  };
428
432
  }
429
433
  //#endregion
430
434
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
431
- function Te(e, t, n) {
435
+ function Ee(e, t, n) {
432
436
  var r = -1, i = e.length;
433
437
  t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
434
438
  for (var a = Array(i); ++r < i;) a[r] = e[r + t];
@@ -436,15 +440,15 @@ function Te(e, t, n) {
436
440
  }
437
441
  //#endregion
438
442
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.js
439
- function Ee(e, t, n) {
443
+ function De(e, t, n) {
440
444
  var r = e.length;
441
- return n = n === void 0 ? r : n, !t && n >= r ? e : Te(e, t, n);
445
+ return n = n === void 0 ? r : n, !t && n >= r ? e : Ee(e, t, n);
442
446
  }
443
447
  //#endregion
444
448
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
445
- var De = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
446
- function Oe(e) {
447
- return De.test(e);
449
+ var Oe = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
450
+ function x(e) {
451
+ return Oe.test(e);
448
452
  }
449
453
  //#endregion
450
454
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.js
@@ -453,59 +457,59 @@ function ke(e) {
453
457
  }
454
458
  //#endregion
455
459
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.js
456
- var Ae = "\\ud800-\\udfff", je = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Me = "\\ufe0e\\ufe0f", Ne = "[" + Ae + "]", x = "[" + je + "]", S = "\\ud83c[\\udffb-\\udfff]", Pe = "(?:" + x + "|" + S + ")", C = "[^" + Ae + "]", Fe = "(?:\\ud83c[\\udde6-\\uddff]){2}", w = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ie = "\\u200d", T = Pe + "?", E = "[" + Me + "]?", Le = "(?:" + Ie + "(?:" + [
460
+ var S = "\\ud800-\\udfff", Ae = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", je = "\\ufe0e\\ufe0f", Me = "[" + S + "]", C = "[" + Ae + "]", w = "\\ud83c[\\udffb-\\udfff]", Ne = "(?:" + C + "|" + w + ")", T = "[^" + S + "]", E = "(?:\\ud83c[\\udde6-\\uddff]){2}", D = "[\\ud800-\\udbff][\\udc00-\\udfff]", Pe = "\\u200d", O = Ne + "?", k = "[" + je + "]?", Fe = "(?:" + Pe + "(?:" + [
461
+ T,
462
+ E,
463
+ D
464
+ ].join("|") + ")" + k + O + ")*", Ie = k + O + Fe, Le = "(?:" + [
465
+ T + C + "?",
457
466
  C,
458
- Fe,
459
- w
460
- ].join("|") + ")" + E + T + ")*", Re = E + T + Le, ze = "(?:" + [
461
- C + x + "?",
462
- x,
463
- Fe,
464
- w,
465
- Ne
466
- ].join("|") + ")", Be = RegExp(S + "(?=" + S + ")|" + ze + Re, "g");
467
- function Ve(e) {
468
- return e.match(Be) || [];
467
+ E,
468
+ D,
469
+ Me
470
+ ].join("|") + ")", Re = RegExp(w + "(?=" + w + ")|" + Le + Ie, "g");
471
+ function ze(e) {
472
+ return e.match(Re) || [];
469
473
  }
470
474
  //#endregion
471
475
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.js
472
- function He(e) {
473
- return Oe(e) ? Ve(e) : ke(e);
476
+ function Be(e) {
477
+ return x(e) ? ze(e) : ke(e);
474
478
  }
475
479
  //#endregion
476
480
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.js
477
- function Ue(e) {
481
+ function Ve(e) {
478
482
  return function(t) {
479
483
  t = d(t);
480
- var n = Oe(t) ? He(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? Ee(n, 1).join("") : t.slice(1);
484
+ var n = x(t) ? Be(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? De(n, 1).join("") : t.slice(1);
481
485
  return r[e]() + i;
482
486
  };
483
487
  }
484
488
  //#endregion
485
489
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.js
486
- var We = Ue("toUpperCase");
490
+ var He = Ve("toUpperCase");
487
491
  //#endregion
488
492
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.js
489
- function Ge(e) {
490
- return We(d(e).toLowerCase());
493
+ function Ue(e) {
494
+ return He(d(e).toLowerCase());
491
495
  }
492
496
  //#endregion
493
497
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
494
- function Ke(e, t, n, r) {
498
+ function We(e, t, n, r) {
495
499
  var i = -1, a = e == null ? 0 : e.length;
496
500
  for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
497
501
  return n;
498
502
  }
499
503
  //#endregion
500
504
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
501
- function qe(e) {
505
+ function Ge(e) {
502
506
  return function(t) {
503
507
  return e?.[t];
504
508
  };
505
509
  }
506
510
  //#endregion
507
511
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_deburrLetter.js
508
- var Je = qe({
512
+ var Ke = Ge({
509
513
  À: "A",
510
514
  Á: "A",
511
515
  Â: "A",
@@ -696,77 +700,77 @@ var Je = qe({
696
700
  œ: "oe",
697
701
  ʼn: "'n",
698
702
  ſ: "s"
699
- }), Ye = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Xe = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
700
- function Ze(e) {
701
- return e = d(e), e && e.replace(Ye, Je).replace(Xe, "");
703
+ }), qe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Je = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
704
+ function Ye(e) {
705
+ return e = d(e), e && e.replace(qe, Ke).replace(Je, "");
702
706
  }
703
707
  //#endregion
704
708
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiWords.js
705
- var Qe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
706
- function $e(e) {
707
- return e.match(Qe) || [];
709
+ var Xe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
710
+ function Ze(e) {
711
+ return e.match(Xe) || [];
708
712
  }
709
713
  //#endregion
710
714
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicodeWord.js
711
- var et = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
712
- function tt(e) {
713
- return et.test(e);
715
+ var Qe = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
716
+ function $e(e) {
717
+ return Qe.test(e);
714
718
  }
715
719
  //#endregion
716
720
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeWords.js
717
- var D = "\\ud800-\\udfff", nt = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", rt = "\\u2700-\\u27bf", it = "a-z\\xdf-\\xf6\\xf8-\\xff", at = "\\xac\\xb1\\xd7\\xf7", ot = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", st = "\\u2000-\\u206f", ct = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", lt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ut = "\\ufe0e\\ufe0f", dt = at + ot + st + ct, ft = "['’]", pt = "[" + dt + "]", mt = "[" + nt + "]", ht = "\\d+", gt = "[" + rt + "]", _t = "[" + it + "]", vt = "[^" + D + dt + ht + rt + it + lt + "]", yt = "(?:" + mt + "|\\ud83c[\\udffb-\\udfff])", bt = "[^" + D + "]", O = "(?:\\ud83c[\\udde6-\\uddff]){2}", k = "[\\ud800-\\udbff][\\udc00-\\udfff]", A = "[" + lt + "]", xt = "\\u200d", j = "(?:" + _t + "|" + vt + ")", St = "(?:" + A + "|" + vt + ")", M = "(?:" + ft + "(?:d|ll|m|re|s|t|ve))?", N = "(?:" + ft + "(?:D|LL|M|RE|S|T|VE))?", P = yt + "?", F = "[" + ut + "]?", Ct = "(?:" + xt + "(?:" + [
718
- bt,
719
- O,
720
- k
721
- ].join("|") + ")" + F + P + ")*", wt = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Tt = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Et = F + P + Ct, Dt = "(?:" + [
722
- gt,
723
- O,
724
- k
725
- ].join("|") + ")" + Et, Ot = RegExp([
726
- A + "?" + _t + "+" + M + "(?=" + [
727
- pt,
728
- A,
721
+ var A = "\\ud800-\\udfff", et = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", j = "\\u2700-\\u27bf", M = "a-z\\xdf-\\xf6\\xf8-\\xff", tt = "\\xac\\xb1\\xd7\\xf7", nt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rt = "\\u2000-\\u206f", it = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", N = "A-Z\\xc0-\\xd6\\xd8-\\xde", at = "\\ufe0e\\ufe0f", P = tt + nt + rt + it, ot = "['’]", st = "[" + P + "]", ct = "[" + et + "]", lt = "\\d+", ut = "[" + j + "]", dt = "[" + M + "]", ft = "[^" + A + P + lt + j + M + N + "]", pt = "(?:" + ct + "|\\ud83c[\\udffb-\\udfff])", mt = "[^" + A + "]", ht = "(?:\\ud83c[\\udde6-\\uddff]){2}", gt = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + N + "]", _t = "\\u200d", vt = "(?:" + dt + "|" + ft + ")", yt = "(?:" + F + "|" + ft + ")", bt = "(?:" + ot + "(?:d|ll|m|re|s|t|ve))?", xt = "(?:" + ot + "(?:D|LL|M|RE|S|T|VE))?", St = pt + "?", Ct = "[" + at + "]?", wt = "(?:" + _t + "(?:" + [
722
+ mt,
723
+ ht,
724
+ gt
725
+ ].join("|") + ")" + Ct + St + ")*", Tt = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Et = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Dt = Ct + St + wt, Ot = "(?:" + [
726
+ ut,
727
+ ht,
728
+ gt
729
+ ].join("|") + ")" + Dt, kt = RegExp([
730
+ F + "?" + dt + "+" + bt + "(?=" + [
731
+ st,
732
+ F,
729
733
  "$"
730
734
  ].join("|") + ")",
731
- St + "+" + N + "(?=" + [
732
- pt,
733
- A + j,
735
+ yt + "+" + xt + "(?=" + [
736
+ st,
737
+ F + vt,
734
738
  "$"
735
739
  ].join("|") + ")",
736
- A + "?" + j + "+" + M,
737
- A + "+" + N,
740
+ F + "?" + vt + "+" + bt,
741
+ F + "+" + xt,
742
+ Et,
738
743
  Tt,
739
- wt,
740
- ht,
741
- Dt
744
+ lt,
745
+ Ot
742
746
  ].join("|"), "g");
743
- function kt(e) {
744
- return e.match(Ot) || [];
747
+ function At(e) {
748
+ return e.match(kt) || [];
745
749
  }
746
750
  //#endregion
747
751
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/words.js
748
- function At(e, t, n) {
749
- return e = d(e), t = n ? void 0 : t, t === void 0 ? tt(e) ? kt(e) : $e(e) : e.match(t) || [];
752
+ function jt(e, t, n) {
753
+ return e = d(e), t = n ? void 0 : t, t === void 0 ? $e(e) ? At(e) : Ze(e) : e.match(t) || [];
750
754
  }
751
755
  //#endregion
752
756
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCompounder.js
753
- var jt = RegExp("['’]", "g");
754
- function Mt(e) {
757
+ var Mt = RegExp("['’]", "g");
758
+ function Nt(e) {
755
759
  return function(t) {
756
- return Ke(At(Ze(t).replace(jt, "")), e, "");
760
+ return We(jt(Ye(t).replace(Mt, "")), e, "");
757
761
  };
758
762
  }
759
763
  //#endregion
760
764
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/camelCase.js
761
- var Nt = Mt(function(e, t, n) {
762
- return t = t.toLowerCase(), e + (n ? Ge(t) : t);
763
- }), I = u(s, "Set"), Pt = "__lodash_hash_undefined__";
764
- function Ft(e) {
765
- return this.__data__.set(e, Pt), this;
765
+ var Pt = Nt(function(e, t, n) {
766
+ return t = t.toLowerCase(), e + (n ? Ue(t) : t);
767
+ }), I = u(s, "Set"), Ft = "__lodash_hash_undefined__";
768
+ function It(e) {
769
+ return this.__data__.set(e, Ft), this;
766
770
  }
767
771
  //#endregion
768
772
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
769
- function It(e) {
773
+ function Lt(e) {
770
774
  return this.__data__.has(e);
771
775
  }
772
776
  //#endregion
@@ -775,7 +779,7 @@ function L(e) {
775
779
  var t = -1, n = e == null ? 0 : e.length;
776
780
  for (this.__data__ = new c(); ++t < n;) this.add(e[t]);
777
781
  }
778
- L.prototype.add = L.prototype.push = Ft, L.prototype.has = It;
782
+ L.prototype.add = L.prototype.push = It, L.prototype.has = Lt;
779
783
  //#endregion
780
784
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
781
785
  function R(e, t) {
@@ -783,7 +787,7 @@ function R(e, t) {
783
787
  }
784
788
  //#endregion
785
789
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
786
- function z(e) {
790
+ function Rt(e) {
787
791
  var t = -1, n = Array(e.size);
788
792
  return e.forEach(function(e) {
789
793
  n[++t] = e;
@@ -791,22 +795,22 @@ function z(e) {
791
795
  }
792
796
  //#endregion
793
797
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
794
- function Lt(e) {
795
- return a(e) && Ce(e);
798
+ function zt(e) {
799
+ return a(e) && we(e);
796
800
  }
797
801
  //#endregion
798
802
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
799
- function Rt(e, t, n) {
803
+ function Bt(e, t, n) {
800
804
  for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
801
805
  return !1;
802
806
  }
803
807
  //#endregion
804
808
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js
805
- var zt = Math.min;
806
- function Bt(e, t, n) {
807
- for (var r = n ? Rt : _e, i = e[0].length, a = e.length, o = a, s = Array(a), c = Infinity, u = []; o--;) {
809
+ var Vt = Math.min;
810
+ function Ht(e, t, n) {
811
+ for (var r = n ? Bt : ve, i = e[0].length, a = e.length, o = a, s = Array(a), c = Infinity, u = []; o--;) {
808
812
  var d = e[o];
809
- o && t && (d = l(d, we(t))), c = zt(d.length, c), s[o] = !n && (t || i >= 120 && d.length >= 120) ? new L(o && d) : void 0;
813
+ o && t && (d = l(d, Te(t))), c = Vt(d.length, c), s[o] = !n && (t || i >= 120 && d.length >= 120) ? new L(o && d) : void 0;
810
814
  }
811
815
  d = e[0];
812
816
  var f = -1, p = s[0];
@@ -824,23 +828,23 @@ function Bt(e, t, n) {
824
828
  }
825
829
  //#endregion
826
830
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js
827
- function Vt(e) {
828
- return Lt(e) ? e : [];
831
+ function Ut(e) {
832
+ return zt(e) ? e : [];
829
833
  }
830
834
  //#endregion
831
835
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/intersection.js
832
- var Ht = be(function(e) {
833
- var t = l(e, Vt);
834
- return t.length && t[0] === e[0] ? Bt(t) : [];
835
- }), Ut = I && 1 / z(new I([, -0]))[1] == Infinity ? function(e) {
836
+ var Wt = xe(function(e) {
837
+ var t = l(e, Ut);
838
+ return t.length && t[0] === e[0] ? Ht(t) : [];
839
+ }), Gt = I && 1 / Rt(new I([, -0]))[1] == 1 / 0 ? function(e) {
836
840
  return new I(e);
837
- } : ae, Wt = 200;
838
- function Gt(e, t, n) {
839
- var r = -1, i = _e, a = e.length, o = !0, s = [], c = s;
840
- if (n) o = !1, i = Rt;
841
- else if (a >= Wt) {
842
- var l = t ? null : Ut(e);
843
- if (l) return z(l);
841
+ } : oe, Kt = 200;
842
+ function qt(e, t, n) {
843
+ var r = -1, i = ve, a = e.length, o = !0, s = [], c = s;
844
+ if (n) o = !1, i = Bt;
845
+ else if (a >= Kt) {
846
+ var l = t ? null : Gt(e);
847
+ if (l) return Rt(l);
844
848
  o = !1, i = R, c = new L();
845
849
  } else c = t ? [] : s;
846
850
  outer: for (; ++r < a;) {
@@ -854,38 +858,38 @@ function Gt(e, t, n) {
854
858
  }
855
859
  //#endregion
856
860
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
857
- function Kt(e) {
858
- return e && e.length ? Gt(e) : [];
861
+ function Jt(e) {
862
+ return e && e.length ? qt(e) : [];
859
863
  }
860
864
  //#endregion
861
865
  //#region src/helpers/resource/functions.ts
862
- var qt = { complex: [
866
+ var Yt = { complex: [
863
867
  "tar.bz2",
864
868
  "tar.gz",
865
869
  "tar.xz"
866
- ] }, Jt = (e) => Object.hasOwn(e, "ddate"), Yt = (e) => Object.hasOwn(e, "highlights"), B = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), Xt = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", V = (e) => Xt(e, 0), H = (e) => Xt(e, 1), Zt = (e) => {
870
+ ] }, Xt = (e) => Object.hasOwn(e, "ddate"), Zt = (e) => Object.hasOwn(e, "highlights"), z = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), Qt = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", B = (e) => Qt(e, 0), V = (e) => Qt(e, 1), $t = (e) => {
867
871
  let t = e.extension || "", n = e.name || "";
868
872
  if (!t.length) return n;
869
873
  let r = n.lastIndexOf(`.${t}`);
870
874
  return n.substring(0, r);
871
- }, U = (e) => {
875
+ }, H = (e) => {
872
876
  let t = e.name.split(".");
873
877
  if (t.length > 2) for (let e = 0; e < t.length; e++) {
874
878
  let n = t.slice(e, t.length).join(".");
875
- if (qt.complex.includes(n)) return n;
879
+ if (Yt.complex.includes(n)) return n;
876
880
  }
877
881
  return t.length < 2 ? "" : t[t.length - 1];
878
- }, Qt = (e) => (0, m.basename)((0, m.dirname)(e.path)) || null, $t = (e) => typeof e.isShareRoot == "function" && e.isShareRoot(), W = (e) => {
882
+ }, en = (e) => (0, m.basename)((0, m.dirname)(e.path)) || null, tn = (e) => typeof e.isShareRoot == "function" && e.isShareRoot(), U = (e) => {
879
883
  if (!e) return e;
880
884
  let t = {};
881
885
  return Object.keys(e).forEach((n) => {
882
- t[Nt(n)] = e[n];
886
+ t[Pt(n)] = e[n];
883
887
  }), t;
884
888
  };
885
- function en(e, t = []) {
889
+ function nn(e, t = []) {
886
890
  let n = e.props[b.Name]?.toString() || (0, m.basename)(e.filename), r = e.props[b.FileId], i = e.type === "directory", a;
887
891
  a = e.filename.startsWith("/files") || e.filename.startsWith("/space") ? e.filename.split("/").slice(3).join("/") : e.filename, a.startsWith("/") || (a = `/${a}`);
888
- let o = U({
892
+ let o = H({
889
893
  ...e,
890
894
  id: r,
891
895
  name: n,
@@ -902,7 +906,7 @@ function en(e, t = []) {
902
906
  let p = {
903
907
  id: r,
904
908
  fileId: r,
905
- storageId: V(r),
909
+ storageId: B(r),
906
910
  parentFolderId: e.props[b.FileParent],
907
911
  mimeType: e.props[b.MimeType],
908
912
  name: n,
@@ -931,10 +935,10 @@ function en(e, t = []) {
931
935
  displayName: e.props[b.OwnerDisplayName]
932
936
  },
933
937
  tags: (e.props[b.Tags] || "").toString().split(",").filter(Boolean),
934
- audio: W(e.props[b.Audio]),
935
- location: W(e.props[b.Location]),
936
- image: W(e.props[b.Image]),
937
- photo: W(e.props[b.Photo]),
938
+ audio: U(e.props[b.Audio]),
939
+ location: U(e.props[b.Location]),
940
+ image: U(e.props[b.Image]),
941
+ photo: U(e.props[b.Photo]),
938
942
  extraProps: f,
939
943
  hasPreview: () => e.props[b.HasPreview] === 1,
940
944
  canUpload: function() {
@@ -970,14 +974,14 @@ function en(e, t = []) {
970
974
  isShareRoot() {
971
975
  return e.props[b.ShareRoot] ? e.filename.split("/").length === 3 : !1;
972
976
  },
973
- getDomSelector: () => B(r)
977
+ getDomSelector: () => z(r)
974
978
  };
975
979
  return Object.defineProperty(p, "nodeId", { get() {
976
- return H(this.id);
980
+ return V(this.id);
977
981
  } }), p;
978
982
  }
979
- function tn(e) {
980
- let t = e.type === "directory", n = e.props[b.TrashbinOriginalFilename]?.toString(), r = U({
983
+ function rn(e) {
984
+ let t = e.type === "directory", n = e.props[b.TrashbinOriginalFilename]?.toString(), r = H({
981
985
  name: n,
982
986
  type: e.type
983
987
  }), a = m.default.basename(e.filename);
@@ -1005,14 +1009,14 @@ function tn(e) {
1005
1009
  hasPreview: () => !1,
1006
1010
  isShareRoot: () => !1,
1007
1011
  canListVersions: () => !1,
1008
- getDomSelector: () => B(a)
1012
+ getDomSelector: () => z(a)
1009
1013
  };
1010
1014
  }
1011
1015
  //#endregion
1012
1016
  //#region src/helpers/share/types.ts
1013
- var G = /* @__PURE__ */ function(e) {
1017
+ var W = /* @__PURE__ */ function(e) {
1014
1018
  return e.createUpload = "libre.graph/driveItem/upload/create", e.createPermissions = "libre.graph/driveItem/permissions/create", e.createChildren = "libre.graph/driveItem/children/create", e.readBasic = "libre.graph/driveItem/basic/read", e.readPath = "libre.graph/driveItem/path/read", e.readQuota = "libre.graph/driveItem/quota/read", e.readContent = "libre.graph/driveItem/content/read", e.readChildren = "libre.graph/driveItem/children/read", e.readDeleted = "libre.graph/driveItem/deleted/read", e.readPermissions = "libre.graph/driveItem/permissions/read", e.readVersions = "libre.graph/driveItem/versions/read", e.updatePath = "libre.graph/driveItem/path/update", e.updateDeleted = "libre.graph/driveItem/deleted/update", e.updatePermissions = "libre.graph/driveItem/permissions/update", e.updateVersions = "libre.graph/driveItem/versions/update", e.deleteStandard = "libre.graph/driveItem/standard/delete", e.deleteDeleted = "libre.graph/driveItem/deleted/delete", e.deletePermissions = "libre.graph/driveItem/permissions/delete", e;
1015
- }({}), K = (e) => e, q = class {
1019
+ }({}), G = (e) => e, K = class {
1016
1020
  _key;
1017
1021
  _value;
1018
1022
  _label;
@@ -1032,13 +1036,13 @@ var G = /* @__PURE__ */ function(e) {
1032
1036
  get icon() {
1033
1037
  return this._icon;
1034
1038
  }
1035
- }, J = class {
1036
- static user = new q("user", 0, K("User"), "user");
1037
- static group = new q("group", 1, K("Group"), "group");
1038
- static link = new q("link", 3, K("Link"), "link");
1039
- static guest = new q("guest", 4, K("Guest"), "global");
1040
- static remote = new q("remote", 6, K("External"), "earth");
1041
- static contact = new q("contact", 100, K("Contact"), "global");
1039
+ }, q = class {
1040
+ static user = new K("user", 0, G("User"), "user");
1041
+ static group = new K("group", 1, G("Group"), "group");
1042
+ static link = new K("link", 3, G("Link"), "link");
1043
+ static guest = new K("guest", 4, G("Guest"), "global");
1044
+ static remote = new K("remote", 6, G("External"), "earth");
1045
+ static contact = new K("contact", 100, G("Contact"), "global");
1042
1046
  static individuals = [
1043
1047
  this.user,
1044
1048
  this.guest,
@@ -1085,18 +1089,18 @@ var G = /* @__PURE__ */ function(e) {
1085
1089
  return e.map((e) => e.value);
1086
1090
  }
1087
1091
  static containsAnyValue(e, t) {
1088
- return Ht(this.getValues(e), t).length > 0;
1092
+ return Wt(this.getValues(e), t).length > 0;
1089
1093
  }
1090
- }, nn = "a0ca6a90-a365-4782-871e-d44447bbc668", rn = "89f37a33-858b-45fa-8890-a1f2b27d90e1", an = (e) => e?.type === "space", Y = (e) => e?.driveType === "personal", on = (e) => e?.driveType === "project", sn = (e) => e?.driveType === "share", cn = (e) => e?.driveType === "mountpoint", ln = (e) => e?.driveType === "public";
1094
+ }, an = "a0ca6a90-a365-4782-871e-d44447bbc668", on = "89f37a33-858b-45fa-8890-a1f2b27d90e1", sn = (e) => e?.type === "space", J = (e) => e?.driveType === "personal", cn = (e) => e?.driveType === "project", ln = (e) => e?.driveType === "share", un = (e) => e?.driveType === "mountpoint", dn = (e) => e?.driveType === "public";
1091
1095
  //#endregion
1092
1096
  //#region src/helpers/space/functions.ts
1093
- function X(e, t) {
1097
+ function Y(e, t) {
1094
1098
  return i("spaces", e, t, { leadingSlash: !0 });
1095
1099
  }
1096
- function un(e, t = "") {
1100
+ function X(e, t = "") {
1097
1101
  return i("spaces", "trash-bin", e, t, { leadingSlash: !0 });
1098
1102
  }
1099
- function dn(e, t) {
1103
+ function fn(e, t) {
1100
1104
  let n = e[{
1101
1105
  image: "spaceImageData",
1102
1106
  readme: "spaceReadmeData"
@@ -1105,16 +1109,16 @@ function dn(e, t) {
1105
1109
  let r = decodeURI(n.webDavUrl).split("/"), i = r.find((t) => t.startsWith(e.id));
1106
1110
  return i ? r.slice(r.indexOf(i) + 1).join("/") : "";
1107
1111
  }
1108
- function fn(e) {
1109
- return e.permissions.includes(G.deletePermissions);
1112
+ function pn(e) {
1113
+ return e.permissions.includes(W.deletePermissions);
1110
1114
  }
1111
- var pn = (e, t) => e.root.permissions?.filter((e) => {
1115
+ var mn = (e, t) => e.root.permissions?.filter((e) => {
1112
1116
  let n = [];
1113
1117
  e["@libre.graph.permissions.actions"] && (n = e["@libre.graph.permissions.actions"]);
1114
1118
  let r = t[e.roles?.[0]];
1115
- return r && !n.length && (n = r.rolePermissions.find(({ condition: e }) => e === "exists @Resource.Root")?.allowedResourceActions || []), n.includes(G.deletePermissions);
1119
+ return r && !n.length && (n = r.rolePermissions.find(({ condition: e }) => e === "exists @Resource.Root")?.allowedResourceActions || []), n.includes(W.deletePermissions);
1116
1120
  });
1117
- function mn(e) {
1121
+ function hn(e) {
1118
1122
  let t = e.publicLinkPassword, n = e.props?.[b.FileId], r = e.props?.[b.PublicLinkItemType], i = e.props?.[b.PublicLinkPermission], a = e.props?.[b.PublicLinkExpiration], o = e.props?.[b.PublicLinkShareDate], s = e.props?.[b.PublicLinkShareOwner], c = e.publicLinkType, l, u;
1119
1123
  return c === "ocm" ? (l = `ocm/${e.id}`, u = p(e.id)) : (l = `public/${e.id}`, u = f(e.id)), Object.assign(Z({
1120
1124
  ...e,
@@ -1132,7 +1136,7 @@ function mn(e) {
1132
1136
  publicLinkType: c
1133
1137
  });
1134
1138
  }
1135
- function hn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r, graphPermissions: i }) {
1139
+ function gn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r, graphPermissions: i }) {
1136
1140
  let a = Z({
1137
1141
  id: t,
1138
1142
  driveAlias: `${e}/${n}`,
@@ -1147,7 +1151,7 @@ function hn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r, graphPermi
1147
1151
  function Z(e) {
1148
1152
  let t, n;
1149
1153
  e.special && (t = e.special.find((e) => e.specialFolder.name === "image"), n = e.special.find((e) => e.specialFolder.name === "readme"), t && (t.webDavUrl = decodeURI(t.webDavUrl)), n && (n.webDavUrl = decodeURI(n.webDavUrl)));
1150
- let r = e.root?.deleted?.state === "trashed", a = i(e.webDavPath || X(e.id), { leadingSlash: !0 }), o = i(e.serverUrl, "dav", a), s = i(e.webDavTrashPath || un(e.id), { leadingSlash: !0 }), c = i(e.serverUrl, "dav", s), l = {
1154
+ let r = e.root?.deleted?.state === "trashed", a = i(e.webDavPath || Y(e.id), { leadingSlash: !0 }), o = i(e.serverUrl, "dav", a), s = i(e.webDavTrashPath || X(e.id), { leadingSlash: !0 }), c = i(e.serverUrl, "dav", s), l = {
1151
1155
  id: e.id,
1152
1156
  fileId: e.id,
1153
1157
  storageId: e.id,
@@ -1178,42 +1182,43 @@ function Z(e) {
1178
1182
  spaceImageData: t,
1179
1183
  spaceReadmeData: n,
1180
1184
  hasTrashedItems: e["@libre.graph.hasTrashedItems"] || !1,
1185
+ contentType: e["@libre.graph.contentType"],
1181
1186
  graphPermissions: void 0,
1182
1187
  canUpload: function({ user: e } = {}) {
1183
- return Y(this) && this.isOwner(e) ? !0 : this.graphPermissions?.includes(G.createUpload);
1188
+ return J(this) && this.isOwner(e) ? !0 : this.graphPermissions?.includes(W.createUpload);
1184
1189
  },
1185
1190
  canDownload: function() {
1186
1191
  return !0;
1187
1192
  },
1188
1193
  canBeDeleted: function({ ability: e } = {}) {
1189
- return this.disabled ? e?.can("delete-all", "Drive") ? !0 : this.graphPermissions?.includes(G.deletePermissions) : !1;
1194
+ return this.disabled ? e?.can("delete-all", "Drive") ? !0 : this.graphPermissions?.includes(W.deletePermissions) : !1;
1190
1195
  },
1191
1196
  canRename: function({ ability: e } = {}) {
1192
- return e?.can("update-all", "Drive") ? !0 : this.graphPermissions?.includes(G.deletePermissions);
1197
+ return e?.can("update-all", "Drive") ? !0 : this.graphPermissions?.includes(W.deletePermissions);
1193
1198
  },
1194
1199
  canEditDescription: function({ ability: e } = {}) {
1195
- return e?.can("update-all", "Drive") ? !0 : this.graphPermissions?.includes(G.deletePermissions);
1200
+ return this.isInVault ? !1 : e?.can("update-all", "Drive") ? !0 : this.graphPermissions?.includes(W.deletePermissions);
1196
1201
  },
1197
1202
  canRestore: function({ ability: e } = {}) {
1198
- return this.disabled ? e?.can("update-all", "Drive") ? !0 : this.graphPermissions?.includes(G.deletePermissions) : !1;
1203
+ return this.disabled ? e?.can("update-all", "Drive") ? !0 : this.graphPermissions?.includes(W.deletePermissions) : !1;
1199
1204
  },
1200
1205
  canDisable: function({ ability: e } = {}) {
1201
- return this.disabled ? !1 : e?.can("delete-all", "Drive") ? !0 : this.graphPermissions?.includes(G.deletePermissions);
1206
+ return this.disabled ? !1 : e?.can("delete-all", "Drive") ? !0 : this.graphPermissions?.includes(W.deletePermissions);
1202
1207
  },
1203
1208
  canShare: function() {
1204
- return this.graphPermissions?.includes(G.createPermissions);
1209
+ return this.graphPermissions?.includes(W.createPermissions);
1205
1210
  },
1206
1211
  canEditImage: function() {
1207
- return !this.disabled && this.graphPermissions?.includes(G.deletePermissions);
1212
+ return this.disabled || this.isInVault ? !1 : this.graphPermissions?.includes(W.deletePermissions);
1208
1213
  },
1209
1214
  canEditReadme: function() {
1210
- return !this.disabled && this.graphPermissions?.includes(G.deletePermissions);
1215
+ return this.disabled || this.isInVault ? !1 : this.graphPermissions?.includes(W.deletePermissions);
1211
1216
  },
1212
1217
  canRestoreFromTrashbin: function() {
1213
- return this.graphPermissions?.includes(G.updateDeleted);
1218
+ return this.graphPermissions?.includes(W.updateDeleted);
1214
1219
  },
1215
1220
  canDeleteFromTrashBin: function({ user: e } = {}) {
1216
- return Y(this) && this.isOwner(e) ? !0 : this.graphPermissions?.includes(G.deletePermissions);
1221
+ return J(this) && this.isOwner(e) ? !0 : this.graphPermissions?.includes(W.deletePermissions);
1217
1222
  },
1218
1223
  canListVersions: function() {
1219
1224
  return !1;
@@ -1237,7 +1242,7 @@ function Z(e) {
1237
1242
  "public"
1238
1243
  ].includes(e.driveType);
1239
1244
  },
1240
- getDomSelector: () => B(e.id),
1245
+ getDomSelector: () => z(e.id),
1241
1246
  getDriveAliasAndItem({ path: e }) {
1242
1247
  return i(this.driveAlias, e, { leadingSlash: !1 });
1243
1248
  },
@@ -1252,15 +1257,15 @@ function Z(e) {
1252
1257
  }
1253
1258
  };
1254
1259
  return Object.defineProperty(l, "nodeId", { get() {
1255
- return H(this.id);
1260
+ return V(this.id);
1256
1261
  } }), l;
1257
1262
  }
1258
- function gn(e) {
1263
+ function _n(e) {
1259
1264
  return {
1260
1265
  id: e.spaceImageData.id,
1261
1266
  name: e.spaceImageData.name,
1262
1267
  etag: e.spaceImageData.eTag,
1263
- extension: U({ name: e.spaceImageData.name }),
1268
+ extension: H({ name: e.spaceImageData.name }),
1264
1269
  mimeType: e.spaceImageData.file.mimeType,
1265
1270
  type: "file",
1266
1271
  webDavPath: i(e.webDavPath, ".space", e.spaceImageData.name),
@@ -1270,10 +1275,10 @@ function gn(e) {
1270
1275
  }
1271
1276
  //#endregion
1272
1277
  //#region src/helpers/share/functions.ts
1273
- var Q = (e) => Object.hasOwn(e, "sharedWith"), _n = (e) => Q(e) && e.outgoing, vn = (e) => Q(e) && !e.outgoing, yn = (e) => Object.hasOwn(e, "role"), bn = (e) => !Object.hasOwn(e, "role"), xn = ({ driveItem: e, graphRoles: t }) => e.remoteItem?.permissions.reduce((e, n) => (n.roles?.forEach((n) => {
1278
+ var Q = (e) => Object.hasOwn(e, "sharedWith"), vn = (e) => Q(e) && e.outgoing, yn = (e) => Q(e) && !e.outgoing, bn = (e) => Object.hasOwn(e, "role"), xn = (e) => !Object.hasOwn(e, "role"), Sn = ({ driveItem: e, graphRoles: t }) => e.remoteItem?.permissions.reduce((e, n) => (n.roles?.forEach((n) => {
1274
1279
  let r = t[n];
1275
1280
  r && !e.some(({ id: e }) => e === r.id) && e.push(r);
1276
- }), e), []), Sn = ({ driveItem: e, shareRoles: t }) => {
1281
+ }), e), []), Cn = ({ driveItem: e, shareRoles: t }) => {
1277
1282
  if (!t.length) {
1278
1283
  let t = e.remoteItem?.permissions.reduce((e, t) => {
1279
1284
  let n = t["@libre.graph.permissions.actions"];
@@ -1286,8 +1291,8 @@ var Q = (e) => Object.hasOwn(e, "sharedWith"), _n = (e) => Q(e) && e.outgoing, v
1286
1291
  }), e), []);
1287
1292
  return [...new Set(n)];
1288
1293
  };
1289
- function Cn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1290
- let r = e.name || e.remoteItem.name, a = V(e.remoteItem.id), o = e.remoteItem.permissions.map((e) => {
1294
+ function wn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1295
+ let r = e.name || e.remoteItem.name, a = B(e.remoteItem.id), o = e.remoteItem.permissions.map((e) => {
1291
1296
  let { grantedToV2: t } = e;
1292
1297
  return {
1293
1298
  ...t.group || t.user,
@@ -1296,12 +1301,12 @@ function Cn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1296
1301
  }), s = e.remoteItem.permissions.reduce((e, t) => {
1297
1302
  let n = t.invitation.invitedBy.user;
1298
1303
  return e.some(({ id: e }) => e === n.id) || e.push(n), e;
1299
- }, []), c = Kt(e.remoteItem.permissions.map($));
1300
- s.some((e) => e["@libre.graph.userType"] === "Federated") && (c = [J.remote.value]);
1301
- let l = xn({
1304
+ }, []), c = Jt(e.remoteItem.permissions.map($));
1305
+ s.some((e) => e["@libre.graph.userType"] === "Federated") && (c = [q.remote.value]);
1306
+ let l = Sn({
1302
1307
  driveItem: e,
1303
1308
  graphRoles: t
1304
- }), u = Sn({
1309
+ }), u = Cn({
1305
1310
  driveItem: e,
1306
1311
  shareRoles: l
1307
1312
  }), d = {
@@ -1316,7 +1321,7 @@ function Cn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1316
1321
  parentFolderId: e.parentReference?.id,
1317
1322
  sdate: e.remoteItem.permissions[0].createdDateTime,
1318
1323
  tags: [],
1319
- webDavPath: X(e.remoteItem.id, "/"),
1324
+ webDavPath: Y(e.remoteItem.id, "/"),
1320
1325
  sharedBy: s,
1321
1326
  owner: e.remoteItem.createdBy?.user,
1322
1327
  sharedWith: o,
@@ -1333,22 +1338,22 @@ function Cn({ driveItem: e, graphRoles: t, serverUrl: n }) {
1333
1338
  privateLink: i(n, "f", e.remoteItem.id),
1334
1339
  hasPreview: () => !!e.thumbnails,
1335
1340
  canRename: () => e["@client.synchronize"],
1336
- canDownload: () => u.includes(G.readContent),
1337
- canUpload: () => u.includes(G.createUpload),
1338
- canCreate: () => u.includes(G.createChildren),
1339
- canBeDeleted: () => u.includes(G.deleteStandard),
1340
- canEditTags: () => u.includes(G.createUpload),
1341
- canListVersions: () => !e.folder && u.includes(G.readVersions),
1341
+ canDownload: () => u.includes(W.readContent),
1342
+ canUpload: () => u.includes(W.createUpload),
1343
+ canCreate: () => u.includes(W.createChildren),
1344
+ canBeDeleted: () => u.includes(W.deleteStandard),
1345
+ canEditTags: () => u.includes(W.createUpload),
1346
+ canListVersions: () => !e.folder && u.includes(W.readVersions),
1342
1347
  isMounted: () => !1,
1343
1348
  isReceivedShare: () => !0,
1344
1349
  canShare: () => !1,
1345
1350
  isShareRoot: () => !0,
1346
- getDomSelector: () => B(e.id)
1351
+ getDomSelector: () => z(e.id)
1347
1352
  };
1348
- return d.extension = U(d), d;
1353
+ return d.extension = H(d), d;
1349
1354
  }
1350
- function wn({ driveItem: e, user: t, serverUrl: n }) {
1351
- let r = V(e.id), a = i(e.parentReference.path, e.name), o = {
1355
+ function Tn({ driveItem: e, user: t, serverUrl: n }) {
1356
+ let r = B(e.id), a = i(e.parentReference.path, e.name), o = {
1352
1357
  id: e.id,
1353
1358
  driveId: e.parentReference?.driveId,
1354
1359
  path: a,
@@ -1359,7 +1364,7 @@ function wn({ driveItem: e, user: t, serverUrl: n }) {
1359
1364
  parentFolderId: e.parentReference?.id,
1360
1365
  sdate: e.permissions[0].createdDateTime,
1361
1366
  tags: [],
1362
- webDavPath: X(r, a),
1367
+ webDavPath: Y(r, a),
1363
1368
  sharedBy: [{
1364
1369
  id: t.id,
1365
1370
  displayName: t.displayName
@@ -1372,7 +1377,7 @@ function wn({ driveItem: e, user: t, serverUrl: n }) {
1372
1377
  if (e.link) return {
1373
1378
  id: e.id,
1374
1379
  displayName: e.link["@libre.graph.displayName"],
1375
- shareType: J.link.value
1380
+ shareType: q.link.value
1376
1381
  };
1377
1382
  let t = $(e);
1378
1383
  return {
@@ -1398,11 +1403,11 @@ function wn({ driveItem: e, user: t, serverUrl: n }) {
1398
1403
  isShareRoot: () => !1,
1399
1404
  isReceivedShare: () => !0,
1400
1405
  canShare: () => !0,
1401
- getDomSelector: () => B(e.id)
1406
+ getDomSelector: () => z(e.id)
1402
1407
  };
1403
- return o.extension = U(o), o;
1408
+ return o.extension = H(o), o;
1404
1409
  }
1405
- function Tn({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1 }) {
1410
+ function En({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1 }) {
1406
1411
  let i = t[e.roles?.[0]], a = e.invitation?.invitedBy?.user;
1407
1412
  return {
1408
1413
  id: e.id,
@@ -1420,13 +1425,13 @@ function Tn({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1
1420
1425
  expirationDateTime: e.expirationDateTime
1421
1426
  };
1422
1427
  }
1423
- function En({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
1428
+ function Dn({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
1424
1429
  let r = e.invitation?.invitedBy?.user;
1425
1430
  return {
1426
1431
  id: e.id,
1427
1432
  resourceId: t,
1428
1433
  indirect: n,
1429
- shareType: J.link.value,
1434
+ shareType: q.link.value,
1430
1435
  sharedBy: {
1431
1436
  id: r?.id,
1432
1437
  displayName: r?.displayName
@@ -1442,7 +1447,7 @@ function En({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
1442
1447
  };
1443
1448
  }
1444
1449
  function $({ link: e, grantedToV2: t }) {
1445
- return e ? J.link.value : t?.group ? J.group.value : t?.user?.["@libre.graph.userType"] === "Federated" ? J.remote.value : J.user.value;
1450
+ return e ? q.link.value : t?.group ? q.group.value : t?.user?.["@libre.graph.userType"] === "Federated" ? q.remote.value : q.user.value;
1446
1451
  }
1447
1452
  //#endregion
1448
- export { J as A, Yt as B, cn as C, sn as D, ln as E, U as F, ne as G, Jt as H, Zt as I, f as J, b as K, H as L, tn as M, en as N, an as O, B as P, Qt as R, nn as S, on as T, g as U, $t as V, h as W, un as _, Sn as a, fn as b, vn as c, Q as d, mn as f, X as g, gn as h, wn as i, G as j, q as k, bn as l, Z as m, Cn as n, xn as o, hn as p, p as q, En as r, yn as s, Tn as t, _n as u, dn as v, Y as w, rn as x, pn as y, V as z };
1453
+ export { q as A, Zt as B, un as C, ln as D, dn as E, H as F, h as G, Xt as H, $t as I, p as J, re as K, V as L, rn as M, nn as N, sn as O, z as P, en as R, an as S, cn as T, g as U, tn as V, ne as W, f as Y, X as _, Cn as a, pn as b, yn as c, Q as d, hn as f, Y as g, _n as h, Tn as i, W as j, K as k, xn as l, Z as m, wn as n, Sn as o, gn as p, b as q, Dn as r, bn as s, En as t, vn as u, fn as v, J as w, on as x, mn as y, B as z };