@opencloud-eu/web-client 8.2.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/axios-CZcFYsAI.js +2405 -0
- package/dist/dist-KEM01zRn.js +3 -0
- package/dist/{generated-4nR8KA38.js → generated-DNXECX0W.js} +2 -3
- package/dist/{graph-CwVan2Jp.js → graph-BKQg17FE.js} +49 -51
- package/dist/{helpers-Bh5xR_vg.js → helpers-BnhEi-vU.js} +63 -107
- package/dist/{ocs-Dfdjrujs.js → ocs-BPMytNew.js} +706 -689
- package/dist/{schemas-rdabTCJb.js → schemas-F0EHDbLA.js} +12 -22
- package/dist/src/helpers/resource/types.d.ts +4 -2
- package/dist/src/ocs/capabilities.d.ts +3 -0
- package/dist/src/webdav/constants/dav.d.ts +7 -0
- package/dist/src/webdav/getFileUrl.d.ts +2 -1
- package/dist/src/webdav/getPublicLinkSignature.d.ts +12 -0
- package/dist/src/webdav/index.d.ts +1 -0
- package/dist/src/webdav/restoreFileVersion.d.ts +2 -2
- package/dist/src/webdav/types.d.ts +2 -0
- package/dist/{toString-uorCN9F3.js → toString-DOYcT1Pn.js} +40 -79
- package/dist/{urlJoin-_pUL1TUx.js → urlJoin-ELOJmfWG.js} +1 -2
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.js +1 -1
- package/dist/web-client/ox.js +3 -4
- package/dist/web-client/sse.js +4 -7
- package/dist/web-client/webdav.js +2 -2
- package/dist/web-client.js +14 -15
- package/dist/{webdav-DrQsSfxZ.js → webdav-BByRDKI2.js} +911 -909
- package/package.json +1 -1
- package/dist/axios-DRPhbClr.js +0 -2144
- package/dist/dist-CHy-DaIN.js +0 -4
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { a as e, i as t, n, r } from "./axios-
|
|
2
|
-
import { t as i } from "./urlJoin-
|
|
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-
|
|
4
|
-
|
|
1
|
+
import { a as e, i as t, n, r } from "./axios-CZcFYsAI.js";
|
|
2
|
+
import { t as i } from "./urlJoin-ELOJmfWG.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-DOYcT1Pn.js";
|
|
4
|
+
// src/helpers/publicLink/functions.ts
|
|
5
5
|
function f(e, t = "") {
|
|
6
6
|
return `/public-files/${e}/${t}`.split("/").filter(Boolean).join("/");
|
|
7
7
|
}
|
|
8
8
|
function p(e, t = "") {
|
|
9
9
|
return `/ocm/${e}/${t}`.split("/").filter(Boolean).join("/");
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region src/webdav/constants/dav.ts
|
|
11
|
+
// src/webdav/constants/dav.ts
|
|
13
12
|
var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
14
13
|
n();
|
|
15
14
|
function i(e) {
|
|
@@ -259,7 +258,11 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
259
258
|
PublicLinkPermission: v("public-link-permission"),
|
|
260
259
|
PublicLinkExpiration: v("public-link-expiration"),
|
|
261
260
|
PublicLinkShareDate: v("public-link-share-datetime"),
|
|
262
|
-
PublicLinkShareOwner: v("public-link-share-owner")
|
|
261
|
+
PublicLinkShareOwner: v("public-link-share-owner"),
|
|
262
|
+
SignatureAuth: {
|
|
263
|
+
value: "signature-auth",
|
|
264
|
+
type: null
|
|
265
|
+
}
|
|
263
266
|
}, b = Object.fromEntries(Object.entries(te).map(([e, t]) => [e, t.value])), ne = {
|
|
264
267
|
d: "DAV:",
|
|
265
268
|
oc: "http://owncloud.org/ns"
|
|
@@ -319,13 +322,11 @@ var m = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
319
322
|
b.ActiveLock
|
|
320
323
|
];
|
|
321
324
|
};
|
|
322
|
-
|
|
323
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
325
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
324
326
|
function ie(e) {
|
|
325
327
|
return e;
|
|
326
328
|
}
|
|
327
|
-
|
|
328
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
329
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
329
330
|
function ae(e, t, n) {
|
|
330
331
|
switch (n.length) {
|
|
331
332
|
case 0: return e.call(t);
|
|
@@ -335,11 +336,9 @@ function ae(e, t, n) {
|
|
|
335
336
|
}
|
|
336
337
|
return e.apply(t, n);
|
|
337
338
|
}
|
|
338
|
-
|
|
339
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
|
|
339
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
|
|
340
340
|
function oe() {}
|
|
341
|
-
|
|
342
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
341
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
343
342
|
var se = 800, ce = 16, le = Date.now;
|
|
344
343
|
function ue(e) {
|
|
345
344
|
var t = 0, n = 0;
|
|
@@ -351,15 +350,13 @@ function ue(e) {
|
|
|
351
350
|
return e.apply(void 0, arguments);
|
|
352
351
|
};
|
|
353
352
|
}
|
|
354
|
-
|
|
355
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
353
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
356
354
|
function de(e) {
|
|
357
355
|
return function() {
|
|
358
356
|
return e;
|
|
359
357
|
};
|
|
360
358
|
}
|
|
361
|
-
|
|
362
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
359
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
363
360
|
var fe = function() {
|
|
364
361
|
try {
|
|
365
362
|
var e = u(Object, "defineProperty");
|
|
@@ -373,35 +370,29 @@ var fe = function() {
|
|
|
373
370
|
writable: !0
|
|
374
371
|
});
|
|
375
372
|
} : ie);
|
|
376
|
-
|
|
377
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
|
|
373
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
|
|
378
374
|
function me(e, t, n, r) {
|
|
379
375
|
for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
|
|
380
376
|
return -1;
|
|
381
377
|
}
|
|
382
|
-
|
|
383
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
|
|
378
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
|
|
384
379
|
function he(e) {
|
|
385
380
|
return e !== e;
|
|
386
381
|
}
|
|
387
|
-
|
|
388
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
|
|
382
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
|
|
389
383
|
function ge(e, t, n) {
|
|
390
384
|
for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
|
|
391
385
|
return -1;
|
|
392
386
|
}
|
|
393
|
-
|
|
394
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
|
|
387
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
|
|
395
388
|
function _e(e, t, n) {
|
|
396
389
|
return t === t ? ge(e, t, n) : me(e, he, n);
|
|
397
390
|
}
|
|
398
|
-
|
|
399
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
|
|
391
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
|
|
400
392
|
function ve(e, t) {
|
|
401
393
|
return !!(e != null && e.length) && _e(e, t, 0) > -1;
|
|
402
394
|
}
|
|
403
|
-
|
|
404
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
395
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
405
396
|
var ye = Math.max;
|
|
406
397
|
function be(e, t, n) {
|
|
407
398
|
return t = ye(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
@@ -411,56 +402,47 @@ function be(e, t, n) {
|
|
|
411
402
|
return s[t] = n(o), ae(e, this, s);
|
|
412
403
|
};
|
|
413
404
|
}
|
|
414
|
-
|
|
415
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
405
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
416
406
|
function xe(e, t) {
|
|
417
407
|
return pe(be(e, t, ie), e + "");
|
|
418
408
|
}
|
|
419
|
-
|
|
420
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
409
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
421
410
|
var Se = 9007199254740991;
|
|
422
411
|
function Ce(e) {
|
|
423
412
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Se;
|
|
424
413
|
}
|
|
425
|
-
|
|
426
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
414
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
427
415
|
function we(e) {
|
|
428
416
|
return e != null && Ce(e.length) && !o(e);
|
|
429
417
|
}
|
|
430
|
-
|
|
431
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
418
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
432
419
|
function Te(e) {
|
|
433
420
|
return function(t) {
|
|
434
421
|
return e(t);
|
|
435
422
|
};
|
|
436
423
|
}
|
|
437
|
-
|
|
438
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
|
|
424
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
|
|
439
425
|
function Ee(e, t, n) {
|
|
440
426
|
var r = -1, i = e.length;
|
|
441
427
|
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;
|
|
442
428
|
for (var a = Array(i); ++r < i;) a[r] = e[r + t];
|
|
443
429
|
return a;
|
|
444
430
|
}
|
|
445
|
-
|
|
446
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.js
|
|
431
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.js
|
|
447
432
|
function De(e, t, n) {
|
|
448
433
|
var r = e.length;
|
|
449
434
|
return n = n === void 0 ? r : n, !t && n >= r ? e : Ee(e, t, n);
|
|
450
435
|
}
|
|
451
|
-
|
|
452
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
|
|
436
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
|
|
453
437
|
var Oe = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
|
|
454
438
|
function x(e) {
|
|
455
439
|
return Oe.test(e);
|
|
456
440
|
}
|
|
457
|
-
|
|
458
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.js
|
|
441
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.js
|
|
459
442
|
function ke(e) {
|
|
460
443
|
return e.split("");
|
|
461
444
|
}
|
|
462
|
-
|
|
463
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.js
|
|
445
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.js
|
|
464
446
|
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 + "(?:" + [
|
|
465
447
|
T,
|
|
466
448
|
E,
|
|
@@ -475,13 +457,11 @@ var S = "\\ud800-\\udfff", Ae = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",
|
|
|
475
457
|
function ze(e) {
|
|
476
458
|
return e.match(Re) || [];
|
|
477
459
|
}
|
|
478
|
-
|
|
479
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.js
|
|
460
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.js
|
|
480
461
|
function Be(e) {
|
|
481
462
|
return x(e) ? ze(e) : ke(e);
|
|
482
463
|
}
|
|
483
|
-
|
|
484
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.js
|
|
464
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.js
|
|
485
465
|
function Ve(e) {
|
|
486
466
|
return function(t) {
|
|
487
467
|
t = d(t);
|
|
@@ -489,30 +469,25 @@ function Ve(e) {
|
|
|
489
469
|
return r[e]() + i;
|
|
490
470
|
};
|
|
491
471
|
}
|
|
492
|
-
|
|
493
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.js
|
|
472
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.js
|
|
494
473
|
var He = Ve("toUpperCase");
|
|
495
|
-
|
|
496
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.js
|
|
474
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.js
|
|
497
475
|
function Ue(e) {
|
|
498
476
|
return He(d(e).toLowerCase());
|
|
499
477
|
}
|
|
500
|
-
|
|
501
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
|
|
478
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
|
|
502
479
|
function We(e, t, n, r) {
|
|
503
480
|
var i = -1, a = e == null ? 0 : e.length;
|
|
504
481
|
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
|
|
505
482
|
return n;
|
|
506
483
|
}
|
|
507
|
-
|
|
508
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
|
|
484
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
|
|
509
485
|
function Ge(e) {
|
|
510
486
|
return function(t) {
|
|
511
487
|
return e?.[t];
|
|
512
488
|
};
|
|
513
489
|
}
|
|
514
|
-
|
|
515
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_deburrLetter.js
|
|
490
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_deburrLetter.js
|
|
516
491
|
var Ke = Ge({
|
|
517
492
|
À: "A",
|
|
518
493
|
Á: "A",
|
|
@@ -708,20 +683,17 @@ var Ke = Ge({
|
|
|
708
683
|
function Ye(e) {
|
|
709
684
|
return e = d(e), e && e.replace(qe, Ke).replace(Je, "");
|
|
710
685
|
}
|
|
711
|
-
|
|
712
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiWords.js
|
|
686
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiWords.js
|
|
713
687
|
var Xe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
714
688
|
function Ze(e) {
|
|
715
689
|
return e.match(Xe) || [];
|
|
716
690
|
}
|
|
717
|
-
|
|
718
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicodeWord.js
|
|
691
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicodeWord.js
|
|
719
692
|
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 ]/;
|
|
720
693
|
function $e(e) {
|
|
721
694
|
return Qe.test(e);
|
|
722
695
|
}
|
|
723
|
-
|
|
724
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeWords.js
|
|
696
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeWords.js
|
|
725
697
|
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 + "(?:" + [
|
|
726
698
|
mt,
|
|
727
699
|
ht,
|
|
@@ -751,65 +723,55 @@ var A = "\\ud800-\\udfff", et = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",
|
|
|
751
723
|
function At(e) {
|
|
752
724
|
return e.match(kt) || [];
|
|
753
725
|
}
|
|
754
|
-
|
|
755
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/words.js
|
|
726
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/words.js
|
|
756
727
|
function jt(e, t, n) {
|
|
757
728
|
return e = d(e), t = n ? void 0 : t, t === void 0 ? $e(e) ? At(e) : Ze(e) : e.match(t) || [];
|
|
758
729
|
}
|
|
759
|
-
|
|
760
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCompounder.js
|
|
730
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCompounder.js
|
|
761
731
|
var Mt = RegExp("['’]", "g");
|
|
762
732
|
function Nt(e) {
|
|
763
733
|
return function(t) {
|
|
764
734
|
return We(jt(Ye(t).replace(Mt, "")), e, "");
|
|
765
735
|
};
|
|
766
736
|
}
|
|
767
|
-
|
|
768
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/camelCase.js
|
|
737
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/camelCase.js
|
|
769
738
|
var Pt = Nt(function(e, t, n) {
|
|
770
739
|
return t = t.toLowerCase(), e + (n ? Ue(t) : t);
|
|
771
740
|
}), I = u(s, "Set"), Ft = "__lodash_hash_undefined__";
|
|
772
741
|
function It(e) {
|
|
773
742
|
return this.__data__.set(e, Ft), this;
|
|
774
743
|
}
|
|
775
|
-
|
|
776
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
744
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
777
745
|
function Lt(e) {
|
|
778
746
|
return this.__data__.has(e);
|
|
779
747
|
}
|
|
780
|
-
|
|
781
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
748
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
782
749
|
function L(e) {
|
|
783
750
|
var t = -1, n = e == null ? 0 : e.length;
|
|
784
751
|
for (this.__data__ = new c(); ++t < n;) this.add(e[t]);
|
|
785
752
|
}
|
|
786
753
|
L.prototype.add = L.prototype.push = It, L.prototype.has = Lt;
|
|
787
|
-
|
|
788
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
754
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
789
755
|
function R(e, t) {
|
|
790
756
|
return e.has(t);
|
|
791
757
|
}
|
|
792
|
-
|
|
793
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
758
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
794
759
|
function Rt(e) {
|
|
795
760
|
var t = -1, n = Array(e.size);
|
|
796
761
|
return e.forEach(function(e) {
|
|
797
762
|
n[++t] = e;
|
|
798
763
|
}), n;
|
|
799
764
|
}
|
|
800
|
-
|
|
801
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
765
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
802
766
|
function zt(e) {
|
|
803
767
|
return a(e) && we(e);
|
|
804
768
|
}
|
|
805
|
-
|
|
806
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
|
|
769
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
|
|
807
770
|
function Bt(e, t, n) {
|
|
808
771
|
for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
|
|
809
772
|
return !1;
|
|
810
773
|
}
|
|
811
|
-
|
|
812
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js
|
|
774
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js
|
|
813
775
|
var Vt = Math.min;
|
|
814
776
|
function Ht(e, t, n) {
|
|
815
777
|
for (var r = n ? Bt : ve, i = e[0].length, a = e.length, o = a, s = Array(a), c = Infinity, u = []; o--;) {
|
|
@@ -830,13 +792,11 @@ function Ht(e, t, n) {
|
|
|
830
792
|
}
|
|
831
793
|
return u;
|
|
832
794
|
}
|
|
833
|
-
|
|
834
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js
|
|
795
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js
|
|
835
796
|
function Ut(e) {
|
|
836
797
|
return zt(e) ? e : [];
|
|
837
798
|
}
|
|
838
|
-
|
|
839
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/intersection.js
|
|
799
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/intersection.js
|
|
840
800
|
var Wt = xe(function(e) {
|
|
841
801
|
var t = l(e, Ut);
|
|
842
802
|
return t.length && t[0] === e[0] ? Ht(t) : [];
|
|
@@ -860,13 +820,11 @@ function qt(e, t, n) {
|
|
|
860
820
|
}
|
|
861
821
|
return s;
|
|
862
822
|
}
|
|
863
|
-
|
|
864
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
|
|
823
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
|
|
865
824
|
function Jt(e) {
|
|
866
825
|
return e && e.length ? qt(e) : [];
|
|
867
826
|
}
|
|
868
|
-
|
|
869
|
-
//#region src/helpers/resource/functions.ts
|
|
827
|
+
// src/helpers/resource/functions.ts
|
|
870
828
|
var Yt = { complex: [
|
|
871
829
|
"tar.bz2",
|
|
872
830
|
"tar.gz",
|
|
@@ -882,7 +840,9 @@ var Yt = { complex: [
|
|
|
882
840
|
let n = t.slice(e, t.length).join(".");
|
|
883
841
|
if (Yt.complex.includes(n)) return n;
|
|
884
842
|
}
|
|
885
|
-
|
|
843
|
+
if (t.length < 2) return "";
|
|
844
|
+
let n = t[t.length - 1];
|
|
845
|
+
return /\s/.test(n) ? "" : n;
|
|
886
846
|
}, en = (e) => (0, m.basename)((0, m.dirname)(e.path)) || null, tn = (e) => typeof e.isShareRoot == "function" && e.isShareRoot(), U = (e) => {
|
|
887
847
|
if (!e) return e;
|
|
888
848
|
let t = {};
|
|
@@ -1018,8 +978,7 @@ function rn(e) {
|
|
|
1018
978
|
getDomSelector: () => z(a)
|
|
1019
979
|
};
|
|
1020
980
|
}
|
|
1021
|
-
|
|
1022
|
-
//#region src/helpers/share/types.ts
|
|
981
|
+
// src/helpers/share/types.ts
|
|
1023
982
|
var W = /* @__PURE__ */ function(e) {
|
|
1024
983
|
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;
|
|
1025
984
|
}({}), G = (e) => e, K = class {
|
|
@@ -1098,8 +1057,7 @@ var W = /* @__PURE__ */ function(e) {
|
|
|
1098
1057
|
return Wt(this.getValues(e), t).length > 0;
|
|
1099
1058
|
}
|
|
1100
1059
|
}, 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";
|
|
1101
|
-
|
|
1102
|
-
//#region src/helpers/space/functions.ts
|
|
1060
|
+
// src/helpers/space/functions.ts
|
|
1103
1061
|
function Y(e, t) {
|
|
1104
1062
|
return i("spaces", e, t, { leadingSlash: !0 });
|
|
1105
1063
|
}
|
|
@@ -1238,8 +1196,8 @@ function Z(e) {
|
|
|
1238
1196
|
canListVersions: function() {
|
|
1239
1197
|
return !1;
|
|
1240
1198
|
},
|
|
1241
|
-
canCreate: function() {
|
|
1242
|
-
return
|
|
1199
|
+
canCreate: function({ user: e } = {}) {
|
|
1200
|
+
return this.canUpload({ user: e });
|
|
1243
1201
|
},
|
|
1244
1202
|
canEditTags: function() {
|
|
1245
1203
|
return !1;
|
|
@@ -1288,8 +1246,7 @@ function _n(e) {
|
|
|
1288
1246
|
canDownload: () => !0
|
|
1289
1247
|
};
|
|
1290
1248
|
}
|
|
1291
|
-
|
|
1292
|
-
//#region src/helpers/share/functions.ts
|
|
1249
|
+
// src/helpers/share/functions.ts
|
|
1293
1250
|
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) => {
|
|
1294
1251
|
let r = t[n];
|
|
1295
1252
|
r && !e.some(({ id: e }) => e === r.id) && e.push(r);
|
|
@@ -1464,5 +1421,4 @@ function Dn({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
|
|
|
1464
1421
|
function $({ link: e, grantedToV2: t }) {
|
|
1465
1422
|
return e ? q.link.value : t?.group ? q.group.value : t?.user?.["@libre.graph.userType"] === "Guest" ? q.guest.value : t?.user?.["@libre.graph.userType"] === "Federated" ? q.remote.value : q.user.value;
|
|
1466
1423
|
}
|
|
1467
|
-
//#endregion
|
|
1468
1424
|
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 };
|