@opencloud-eu/web-client 6.1.0 → 6.2.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.
- package/dist/{axios-Drchb9eh.js → axios-B1HWJqDx.js} +345 -309
- package/dist/{dist-tjee3PVd.js → dist-SL1_CMpG.js} +7 -7
- package/dist/{generated-B6vcMOfs.js → generated-DPf3CPe4.js} +1 -1
- package/dist/{graph-DcYhPBws.js → graph-Cld6mTON.js} +3 -3
- package/dist/{helpers-B0hzJ78Q.js → helpers-DoHY9e_0.js} +313 -313
- package/dist/ocs-B7FkclLT.js +2919 -0
- package/dist/{toString-tGn_k7yU.js → toString-DAQZ_8iK.js} +42 -42
- 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/webdav.js +2 -2
- package/dist/web-client.js +5 -5
- package/dist/{webdav-CcBUJk4K.js → webdav-BMNOaQXh.js} +202 -200
- package/package.json +2 -2
- package/dist/ocs-2K0ogAXF.js +0 -1658
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, i as t, n, r } from "./axios-
|
|
2
|
-
import { c as i, i as a, l as o, n as s, o as c, r as l, t as u, u as d } from "./toString-
|
|
1
|
+
import { a as e, i as t, n, r } from "./axios-B1HWJqDx.js";
|
|
2
|
+
import { c as i, i as a, l as o, n as s, o as c, r as l, t as u, u as d } from "./toString-DAQZ_8iK.js";
|
|
3
3
|
//#region src/helpers/call.ts
|
|
4
4
|
var f = function* (e) {
|
|
5
5
|
return yield e;
|
|
@@ -23,12 +23,12 @@ var f = function* (e) {
|
|
|
23
23
|
function g(e, t = "") {
|
|
24
24
|
return `/public-files/${e}/${t}`.split("/").filter(Boolean).join("/");
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function _(e, t = "") {
|
|
27
27
|
return `/ocm/${e}/${t}`.split("/").filter(Boolean).join("/");
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region
|
|
31
|
-
var
|
|
30
|
+
//#region src/webdav/constants/dav.ts
|
|
31
|
+
var v = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
32
32
|
n();
|
|
33
33
|
function i(e) {
|
|
34
34
|
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
@@ -196,7 +196,7 @@ var te = /* @__PURE__ */ t(((e, t) => {
|
|
|
196
196
|
posix: null
|
|
197
197
|
};
|
|
198
198
|
s.posix = s, t.exports = s;
|
|
199
|
-
})),
|
|
199
|
+
})))(), 1), y = class {
|
|
200
200
|
static Shared = "S";
|
|
201
201
|
static Shareable = "R";
|
|
202
202
|
static Mounted = "M";
|
|
@@ -208,24 +208,24 @@ var te = /* @__PURE__ */ t(((e, t) => {
|
|
|
208
208
|
static FolderCreateable = "CK";
|
|
209
209
|
static Deny = "Z";
|
|
210
210
|
static SecureView = "X";
|
|
211
|
-
},
|
|
211
|
+
}, ee = /* @__PURE__ */ function(e) {
|
|
212
212
|
return e.copy = "COPY", e.delete = "DELETE", e.lock = "LOCK", e.mkcol = "MKCOL", e.move = "MOVE", e.propfind = "PROPFIND", e.proppatch = "PROPPATCH", e.put = "PUT", e.report = "REPORT", e.unlock = "UNLOCK", e;
|
|
213
|
-
}({}),
|
|
213
|
+
}({}), b = (e) => ({
|
|
214
214
|
value: e,
|
|
215
215
|
type: null
|
|
216
|
-
}),
|
|
217
|
-
Permissions:
|
|
218
|
-
IsFavorite:
|
|
219
|
-
FileId:
|
|
220
|
-
FileParent:
|
|
221
|
-
Name:
|
|
222
|
-
OwnerId:
|
|
223
|
-
OwnerDisplayName:
|
|
224
|
-
PrivateLink:
|
|
225
|
-
ContentLength:
|
|
226
|
-
ContentSize:
|
|
227
|
-
LastModifiedDate:
|
|
228
|
-
Tags:
|
|
216
|
+
}), te = (e) => b(e), x = (e) => b(e), S = (e) => b(e), ne = {
|
|
217
|
+
Permissions: x("permissions"),
|
|
218
|
+
IsFavorite: S("favorite"),
|
|
219
|
+
FileId: x("fileid"),
|
|
220
|
+
FileParent: x("file-parent"),
|
|
221
|
+
Name: x("name"),
|
|
222
|
+
OwnerId: x("owner-id"),
|
|
223
|
+
OwnerDisplayName: x("owner-display-name"),
|
|
224
|
+
PrivateLink: x("privatelink"),
|
|
225
|
+
ContentLength: S("getcontentlength"),
|
|
226
|
+
ContentSize: S("size"),
|
|
227
|
+
LastModifiedDate: x("getlastmodified"),
|
|
228
|
+
Tags: te("tags"),
|
|
229
229
|
Audio: {
|
|
230
230
|
value: "audio",
|
|
231
231
|
type: null
|
|
@@ -242,101 +242,101 @@ var te = /* @__PURE__ */ t(((e, t) => {
|
|
|
242
242
|
value: "photo",
|
|
243
243
|
type: null
|
|
244
244
|
},
|
|
245
|
-
ETag:
|
|
246
|
-
MimeType:
|
|
247
|
-
ResourceType: ((e) =>
|
|
245
|
+
ETag: x("getetag"),
|
|
246
|
+
MimeType: x("getcontenttype"),
|
|
247
|
+
ResourceType: ((e) => b(e))("resourcetype"),
|
|
248
248
|
LockDiscovery: {
|
|
249
249
|
value: "lockdiscovery",
|
|
250
250
|
type: null
|
|
251
251
|
},
|
|
252
|
-
LockOwner:
|
|
253
|
-
LockTime:
|
|
252
|
+
LockOwner: x("owner"),
|
|
253
|
+
LockTime: x("locktime"),
|
|
254
254
|
ActiveLock: {
|
|
255
255
|
value: "activelock",
|
|
256
256
|
type: null
|
|
257
257
|
},
|
|
258
|
-
DownloadURL:
|
|
259
|
-
Highlights:
|
|
260
|
-
MetaPathForUser:
|
|
261
|
-
RemoteItemId:
|
|
262
|
-
HasPreview:
|
|
263
|
-
ShareId:
|
|
264
|
-
ShareRoot:
|
|
258
|
+
DownloadURL: x("downloadURL"),
|
|
259
|
+
Highlights: x("highlights"),
|
|
260
|
+
MetaPathForUser: x("meta-path-for-user"),
|
|
261
|
+
RemoteItemId: x("remote-item-id"),
|
|
262
|
+
HasPreview: S("has-preview"),
|
|
263
|
+
ShareId: x("shareid"),
|
|
264
|
+
ShareRoot: x("shareroot"),
|
|
265
265
|
ShareTypes: {
|
|
266
266
|
value: "share-types",
|
|
267
267
|
type: null
|
|
268
268
|
},
|
|
269
|
-
SharePermissions:
|
|
270
|
-
TrashbinOriginalFilename:
|
|
271
|
-
TrashbinOriginalLocation:
|
|
272
|
-
TrashbinDeletedDate:
|
|
273
|
-
PublicLinkItemType:
|
|
274
|
-
PublicLinkPermission:
|
|
275
|
-
PublicLinkExpiration:
|
|
276
|
-
PublicLinkShareDate:
|
|
277
|
-
PublicLinkShareOwner:
|
|
278
|
-
},
|
|
269
|
+
SharePermissions: x("share-permissions"),
|
|
270
|
+
TrashbinOriginalFilename: x("trashbin-original-filename"),
|
|
271
|
+
TrashbinOriginalLocation: x("trashbin-original-location"),
|
|
272
|
+
TrashbinDeletedDate: x("trashbin-delete-datetime"),
|
|
273
|
+
PublicLinkItemType: x("public-link-item-type"),
|
|
274
|
+
PublicLinkPermission: x("public-link-permission"),
|
|
275
|
+
PublicLinkExpiration: x("public-link-expiration"),
|
|
276
|
+
PublicLinkShareDate: x("public-link-share-datetime"),
|
|
277
|
+
PublicLinkShareOwner: x("public-link-share-owner")
|
|
278
|
+
}, C = Object.fromEntries(Object.entries(ne).map(([e, t]) => [e, t.value])), re = class e {
|
|
279
279
|
static Default = [
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
280
|
+
C.Permissions,
|
|
281
|
+
C.IsFavorite,
|
|
282
|
+
C.FileId,
|
|
283
|
+
C.FileParent,
|
|
284
|
+
C.Name,
|
|
285
|
+
C.LockDiscovery,
|
|
286
|
+
C.ActiveLock,
|
|
287
|
+
C.OwnerId,
|
|
288
|
+
C.OwnerDisplayName,
|
|
289
|
+
C.RemoteItemId,
|
|
290
|
+
C.ShareRoot,
|
|
291
|
+
C.ShareTypes,
|
|
292
|
+
C.PrivateLink,
|
|
293
|
+
C.ContentLength,
|
|
294
|
+
C.ContentSize,
|
|
295
|
+
C.LastModifiedDate,
|
|
296
|
+
C.ETag,
|
|
297
|
+
C.MimeType,
|
|
298
|
+
C.ResourceType,
|
|
299
|
+
C.Tags,
|
|
300
|
+
C.Audio,
|
|
301
|
+
C.Location,
|
|
302
|
+
C.Image,
|
|
303
|
+
C.Photo,
|
|
304
|
+
C.HasPreview
|
|
305
305
|
];
|
|
306
306
|
static PublicLink = e.Default.concat([
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
307
|
+
C.PublicLinkItemType,
|
|
308
|
+
C.PublicLinkPermission,
|
|
309
|
+
C.PublicLinkExpiration,
|
|
310
|
+
C.PublicLinkShareDate,
|
|
311
|
+
C.PublicLinkShareOwner
|
|
312
312
|
]);
|
|
313
313
|
static Trashbin = [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
314
|
+
C.ContentLength,
|
|
315
|
+
C.ResourceType,
|
|
316
|
+
C.TrashbinOriginalLocation,
|
|
317
|
+
C.TrashbinOriginalFilename,
|
|
318
|
+
C.TrashbinDeletedDate,
|
|
319
|
+
C.Permissions,
|
|
320
|
+
C.FileParent
|
|
321
321
|
];
|
|
322
322
|
static DavNamespace = [
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
323
|
+
C.ContentLength,
|
|
324
|
+
C.LastModifiedDate,
|
|
325
|
+
C.ETag,
|
|
326
|
+
C.MimeType,
|
|
327
|
+
C.ResourceType,
|
|
328
|
+
C.LockDiscovery,
|
|
329
|
+
C.ActiveLock
|
|
330
330
|
];
|
|
331
331
|
};
|
|
332
332
|
//#endregion
|
|
333
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
334
|
-
function
|
|
333
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
334
|
+
function w(e) {
|
|
335
335
|
return e;
|
|
336
336
|
}
|
|
337
337
|
//#endregion
|
|
338
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
339
|
-
function
|
|
338
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
339
|
+
function ie(e, t, n) {
|
|
340
340
|
switch (n.length) {
|
|
341
341
|
case 0: return e.call(t);
|
|
342
342
|
case 1: return e.call(t, n[0]);
|
|
@@ -346,184 +346,184 @@ function se(e, t, n) {
|
|
|
346
346
|
return e.apply(t, n);
|
|
347
347
|
}
|
|
348
348
|
//#endregion
|
|
349
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
350
|
-
function
|
|
349
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js
|
|
350
|
+
function ae() {}
|
|
351
351
|
//#endregion
|
|
352
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
353
|
-
var
|
|
354
|
-
function
|
|
352
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
353
|
+
var oe = 800, se = 16, ce = Date.now;
|
|
354
|
+
function le(e) {
|
|
355
355
|
var t = 0, n = 0;
|
|
356
356
|
return function() {
|
|
357
|
-
var r =
|
|
357
|
+
var r = ce(), i = se - (r - n);
|
|
358
358
|
if (n = r, i > 0) {
|
|
359
|
-
if (++t >=
|
|
359
|
+
if (++t >= oe) return arguments[0];
|
|
360
360
|
} else t = 0;
|
|
361
361
|
return e.apply(void 0, arguments);
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
//#endregion
|
|
365
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
366
|
-
function
|
|
365
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
366
|
+
function ue(e) {
|
|
367
367
|
return function() {
|
|
368
368
|
return e;
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
373
|
-
var
|
|
372
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
373
|
+
var de = function() {
|
|
374
374
|
try {
|
|
375
375
|
var e = l(Object, "defineProperty");
|
|
376
376
|
return e({}, "", {}), e;
|
|
377
377
|
} catch {}
|
|
378
|
-
}(),
|
|
379
|
-
return
|
|
378
|
+
}(), fe = le(de ? function(e, t) {
|
|
379
|
+
return de(e, "toString", {
|
|
380
380
|
configurable: !0,
|
|
381
381
|
enumerable: !1,
|
|
382
|
-
value:
|
|
382
|
+
value: ue(t),
|
|
383
383
|
writable: !0
|
|
384
384
|
});
|
|
385
|
-
} :
|
|
385
|
+
} : w);
|
|
386
386
|
//#endregion
|
|
387
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
388
|
-
function
|
|
387
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js
|
|
388
|
+
function pe(e, t, n, r) {
|
|
389
389
|
for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
|
|
390
390
|
return -1;
|
|
391
391
|
}
|
|
392
392
|
//#endregion
|
|
393
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
394
|
-
function
|
|
393
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js
|
|
394
|
+
function me(e) {
|
|
395
395
|
return e !== e;
|
|
396
396
|
}
|
|
397
397
|
//#endregion
|
|
398
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
399
|
-
function
|
|
398
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js
|
|
399
|
+
function he(e, t, n) {
|
|
400
400
|
for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
|
|
401
401
|
return -1;
|
|
402
402
|
}
|
|
403
403
|
//#endregion
|
|
404
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
405
|
-
function
|
|
406
|
-
return t === t ?
|
|
404
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js
|
|
405
|
+
function ge(e, t, n) {
|
|
406
|
+
return t === t ? he(e, t, n) : pe(e, me, n);
|
|
407
407
|
}
|
|
408
408
|
//#endregion
|
|
409
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
410
|
-
function
|
|
411
|
-
return !!(e != null && e.length) &&
|
|
409
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js
|
|
410
|
+
function _e(e, t) {
|
|
411
|
+
return !!(e != null && e.length) && ge(e, t, 0) > -1;
|
|
412
412
|
}
|
|
413
413
|
//#endregion
|
|
414
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
415
|
-
var
|
|
416
|
-
function
|
|
417
|
-
return t =
|
|
418
|
-
for (var r = arguments, i = -1, a =
|
|
414
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
415
|
+
var ve = Math.max;
|
|
416
|
+
function ye(e, t, n) {
|
|
417
|
+
return t = ve(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
418
|
+
for (var r = arguments, i = -1, a = ve(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
|
|
419
419
|
i = -1;
|
|
420
420
|
for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
|
|
421
|
-
return s[t] = n(o),
|
|
421
|
+
return s[t] = n(o), ie(e, this, s);
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
424
|
//#endregion
|
|
425
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
426
|
-
function
|
|
427
|
-
return
|
|
425
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
426
|
+
function be(e, t) {
|
|
427
|
+
return fe(ye(e, t, w), e + "");
|
|
428
428
|
}
|
|
429
429
|
//#endregion
|
|
430
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
431
|
-
var
|
|
432
|
-
function
|
|
433
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
430
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
431
|
+
var xe = 9007199254740991;
|
|
432
|
+
function Se(e) {
|
|
433
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= xe;
|
|
434
434
|
}
|
|
435
435
|
//#endregion
|
|
436
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
437
|
-
function
|
|
438
|
-
return e != null &&
|
|
436
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
437
|
+
function Ce(e) {
|
|
438
|
+
return e != null && Se(e.length) && !a(e);
|
|
439
439
|
}
|
|
440
440
|
//#endregion
|
|
441
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
442
|
-
function
|
|
441
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
442
|
+
function we(e) {
|
|
443
443
|
return function(t) {
|
|
444
444
|
return e(t);
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
//#endregion
|
|
448
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
449
|
-
function
|
|
448
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
|
|
449
|
+
function Te(e, t, n) {
|
|
450
450
|
var r = -1, i = e.length;
|
|
451
451
|
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;
|
|
452
452
|
for (var a = Array(i); ++r < i;) a[r] = e[r + t];
|
|
453
453
|
return a;
|
|
454
454
|
}
|
|
455
455
|
//#endregion
|
|
456
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
457
|
-
function
|
|
456
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.js
|
|
457
|
+
function Ee(e, t, n) {
|
|
458
458
|
var r = e.length;
|
|
459
|
-
return n = n === void 0 ? r : n, !t && n >= r ? e :
|
|
459
|
+
return n = n === void 0 ? r : n, !t && n >= r ? e : Te(e, t, n);
|
|
460
460
|
}
|
|
461
461
|
//#endregion
|
|
462
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
463
|
-
var
|
|
464
|
-
function
|
|
465
|
-
return
|
|
462
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
|
|
463
|
+
var De = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
|
|
464
|
+
function Oe(e) {
|
|
465
|
+
return De.test(e);
|
|
466
466
|
}
|
|
467
467
|
//#endregion
|
|
468
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
469
|
-
function
|
|
468
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.js
|
|
469
|
+
function ke(e) {
|
|
470
470
|
return e.split("");
|
|
471
471
|
}
|
|
472
472
|
//#endregion
|
|
473
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
].join("|") + ")" +
|
|
479
|
-
|
|
480
|
-
S,
|
|
481
|
-
w,
|
|
473
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.js
|
|
474
|
+
var Ae = "\\ud800-\\udfff", je = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Me = "\\ufe0e\\ufe0f", Ne = "[" + Ae + "]", T = "[" + je + "]", E = "\\ud83c[\\udffb-\\udfff]", Pe = "(?:" + T + "|" + E + ")", Fe = "[^" + Ae + "]", Ie = "(?:\\ud83c[\\udde6-\\uddff]){2}", Le = "[\\ud800-\\udbff][\\udc00-\\udfff]", Re = "\\u200d", ze = Pe + "?", Be = "[" + Me + "]?", Ve = "(?:" + Re + "(?:" + [
|
|
475
|
+
Fe,
|
|
476
|
+
Ie,
|
|
477
|
+
Le
|
|
478
|
+
].join("|") + ")" + Be + ze + ")*", He = Be + ze + Ve, Ue = "(?:" + [
|
|
479
|
+
Fe + T + "?",
|
|
482
480
|
T,
|
|
483
|
-
Ie
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}
|
|
488
|
-
//#endregion
|
|
489
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToArray.js
|
|
481
|
+
Ie,
|
|
482
|
+
Le,
|
|
483
|
+
Ne
|
|
484
|
+
].join("|") + ")", We = RegExp(E + "(?=" + E + ")|" + Ue + He, "g");
|
|
490
485
|
function Ge(e) {
|
|
491
|
-
return
|
|
486
|
+
return e.match(We) || [];
|
|
492
487
|
}
|
|
493
488
|
//#endregion
|
|
494
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
489
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.js
|
|
495
490
|
function Ke(e) {
|
|
491
|
+
return Oe(e) ? Ge(e) : ke(e);
|
|
492
|
+
}
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.js
|
|
495
|
+
function qe(e) {
|
|
496
496
|
return function(t) {
|
|
497
497
|
t = u(t);
|
|
498
|
-
var n =
|
|
498
|
+
var n = Oe(t) ? Ke(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? Ee(n, 1).join("") : t.slice(1);
|
|
499
499
|
return r[e]() + i;
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
//#endregion
|
|
503
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
504
|
-
var
|
|
503
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.js
|
|
504
|
+
var Je = qe("toUpperCase");
|
|
505
505
|
//#endregion
|
|
506
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
507
|
-
function
|
|
508
|
-
return
|
|
506
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.js
|
|
507
|
+
function Ye(e) {
|
|
508
|
+
return Je(u(e).toLowerCase());
|
|
509
509
|
}
|
|
510
510
|
//#endregion
|
|
511
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
512
|
-
function
|
|
511
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
|
|
512
|
+
function Xe(e, t, n, r) {
|
|
513
513
|
var i = -1, a = e == null ? 0 : e.length;
|
|
514
514
|
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
|
|
515
515
|
return n;
|
|
516
516
|
}
|
|
517
517
|
//#endregion
|
|
518
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
519
|
-
function
|
|
518
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
|
|
519
|
+
function Ze(e) {
|
|
520
520
|
return function(t) {
|
|
521
521
|
return e?.[t];
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
//#endregion
|
|
525
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
526
|
-
var
|
|
525
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_deburrLetter.js
|
|
526
|
+
var Qe = Ze({
|
|
527
527
|
À: "A",
|
|
528
528
|
Á: "A",
|
|
529
529
|
Â: "A",
|
|
@@ -714,117 +714,117 @@ var Ze = Xe({
|
|
|
714
714
|
œ: "oe",
|
|
715
715
|
ʼn: "'n",
|
|
716
716
|
ſ: "s"
|
|
717
|
-
}),
|
|
718
|
-
function
|
|
719
|
-
return e = u(e), e && e.replace(
|
|
717
|
+
}), $e = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, et = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
|
|
718
|
+
function tt(e) {
|
|
719
|
+
return e = u(e), e && e.replace($e, Qe).replace(et, "");
|
|
720
720
|
}
|
|
721
721
|
//#endregion
|
|
722
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
723
|
-
var
|
|
724
|
-
function
|
|
725
|
-
return e.match(
|
|
722
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiWords.js
|
|
723
|
+
var nt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
724
|
+
function rt(e) {
|
|
725
|
+
return e.match(nt) || [];
|
|
726
726
|
}
|
|
727
727
|
//#endregion
|
|
728
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
729
|
-
var
|
|
730
|
-
function
|
|
731
|
-
return
|
|
728
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicodeWord.js
|
|
729
|
+
var it = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
730
|
+
function at(e) {
|
|
731
|
+
return it.test(e);
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
735
|
-
var
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
].join("|") + ")" +
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
734
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeWords.js
|
|
735
|
+
var ot = "\\ud800-\\udfff", st = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", ct = "\\u2700-\\u27bf", lt = "a-z\\xdf-\\xf6\\xf8-\\xff", ut = "\\xac\\xb1\\xd7\\xf7", dt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ft = "\\u2000-\\u206f", pt = " \\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", mt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ht = "\\ufe0e\\ufe0f", gt = ut + dt + ft + pt, _t = "['’]", vt = "[" + gt + "]", yt = "[" + st + "]", bt = "\\d+", xt = "[" + ct + "]", St = "[" + lt + "]", D = "[^" + ot + gt + bt + ct + lt + mt + "]", Ct = "(?:" + yt + "|\\ud83c[\\udffb-\\udfff])", wt = "[^" + ot + "]", O = "(?:\\ud83c[\\udde6-\\uddff]){2}", k = "[\\ud800-\\udbff][\\udc00-\\udfff]", A = "[" + mt + "]", Tt = "\\u200d", j = "(?:" + St + "|" + D + ")", Et = "(?:" + A + "|" + D + ")", M = "(?:" + _t + "(?:d|ll|m|re|s|t|ve))?", N = "(?:" + _t + "(?:D|LL|M|RE|S|T|VE))?", P = Ct + "?", F = "[" + ht + "]?", Dt = "(?:" + Tt + "(?:" + [
|
|
736
|
+
wt,
|
|
737
|
+
O,
|
|
738
|
+
k
|
|
739
|
+
].join("|") + ")" + F + P + ")*", Ot = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", kt = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", At = F + P + Dt, jt = "(?:" + [
|
|
740
|
+
xt,
|
|
741
|
+
O,
|
|
742
|
+
k
|
|
743
743
|
].join("|") + ")" + At, Mt = RegExp([
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
744
|
+
A + "?" + St + "+" + M + "(?=" + [
|
|
745
|
+
vt,
|
|
746
|
+
A,
|
|
747
747
|
"$"
|
|
748
748
|
].join("|") + ")",
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
749
|
+
Et + "+" + N + "(?=" + [
|
|
750
|
+
vt,
|
|
751
|
+
A + j,
|
|
752
752
|
"$"
|
|
753
753
|
].join("|") + ")",
|
|
754
|
-
|
|
755
|
-
|
|
754
|
+
A + "?" + j + "+" + M,
|
|
755
|
+
A + "+" + N,
|
|
756
756
|
kt,
|
|
757
757
|
Ot,
|
|
758
|
-
|
|
758
|
+
bt,
|
|
759
759
|
jt
|
|
760
760
|
].join("|"), "g");
|
|
761
761
|
function Nt(e) {
|
|
762
762
|
return e.match(Mt) || [];
|
|
763
763
|
}
|
|
764
764
|
//#endregion
|
|
765
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
765
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/words.js
|
|
766
766
|
function Pt(e, t, n) {
|
|
767
|
-
return e = u(e), t = n ? void 0 : t, t === void 0 ?
|
|
767
|
+
return e = u(e), t = n ? void 0 : t, t === void 0 ? at(e) ? Nt(e) : rt(e) : e.match(t) || [];
|
|
768
768
|
}
|
|
769
769
|
//#endregion
|
|
770
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
770
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCompounder.js
|
|
771
771
|
var Ft = RegExp("['’]", "g");
|
|
772
772
|
function It(e) {
|
|
773
773
|
return function(t) {
|
|
774
|
-
return
|
|
774
|
+
return Xe(Pt(tt(t).replace(Ft, "")), e, "");
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
777
|
//#endregion
|
|
778
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
778
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/camelCase.js
|
|
779
779
|
var Lt = It(function(e, t, n) {
|
|
780
|
-
return t = t.toLowerCase(), e + (n ?
|
|
780
|
+
return t = t.toLowerCase(), e + (n ? Ye(t) : t);
|
|
781
781
|
}), I = l(o, "Set"), Rt = "__lodash_hash_undefined__";
|
|
782
782
|
function zt(e) {
|
|
783
783
|
return this.__data__.set(e, Rt), this;
|
|
784
784
|
}
|
|
785
785
|
//#endregion
|
|
786
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
786
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
787
787
|
function Bt(e) {
|
|
788
788
|
return this.__data__.has(e);
|
|
789
789
|
}
|
|
790
790
|
//#endregion
|
|
791
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
791
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
792
792
|
function L(e) {
|
|
793
793
|
var t = -1, n = e == null ? 0 : e.length;
|
|
794
794
|
for (this.__data__ = new s(); ++t < n;) this.add(e[t]);
|
|
795
795
|
}
|
|
796
796
|
L.prototype.add = L.prototype.push = zt, L.prototype.has = Bt;
|
|
797
797
|
//#endregion
|
|
798
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
798
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
799
799
|
function R(e, t) {
|
|
800
800
|
return e.has(t);
|
|
801
801
|
}
|
|
802
802
|
//#endregion
|
|
803
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
804
|
-
function
|
|
803
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
804
|
+
function z(e) {
|
|
805
805
|
var t = -1, n = Array(e.size);
|
|
806
806
|
return e.forEach(function(e) {
|
|
807
807
|
n[++t] = e;
|
|
808
808
|
}), n;
|
|
809
809
|
}
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
812
|
-
function
|
|
813
|
-
return i(e) &&
|
|
811
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
812
|
+
function Vt(e) {
|
|
813
|
+
return i(e) && Ce(e);
|
|
814
814
|
}
|
|
815
815
|
//#endregion
|
|
816
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
817
|
-
function
|
|
816
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js
|
|
817
|
+
function Ht(e, t, n) {
|
|
818
818
|
for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
|
|
819
819
|
return !1;
|
|
820
820
|
}
|
|
821
821
|
//#endregion
|
|
822
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
823
|
-
var
|
|
824
|
-
function
|
|
825
|
-
for (var r = n ?
|
|
822
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js
|
|
823
|
+
var Ut = Math.min;
|
|
824
|
+
function Wt(e, t, n) {
|
|
825
|
+
for (var r = n ? Ht : _e, i = e[0].length, a = e.length, o = a, s = Array(a), l = Infinity, u = []; o--;) {
|
|
826
826
|
var d = e[o];
|
|
827
|
-
o && t && (d = c(d,
|
|
827
|
+
o && t && (d = c(d, we(t))), l = Ut(d.length, l), s[o] = !n && (t || i >= 120 && d.length >= 120) ? new L(o && d) : void 0;
|
|
828
828
|
}
|
|
829
829
|
d = e[0];
|
|
830
830
|
var f = -1, p = s[0];
|
|
@@ -841,24 +841,24 @@ function Gt(e, t, n) {
|
|
|
841
841
|
return u;
|
|
842
842
|
}
|
|
843
843
|
//#endregion
|
|
844
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
845
|
-
function
|
|
846
|
-
return
|
|
844
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js
|
|
845
|
+
function Gt(e) {
|
|
846
|
+
return Vt(e) ? e : [];
|
|
847
847
|
}
|
|
848
848
|
//#endregion
|
|
849
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
850
|
-
var
|
|
851
|
-
var t = c(e,
|
|
852
|
-
return t.length && t[0] === e[0] ?
|
|
853
|
-
}),
|
|
849
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/intersection.js
|
|
850
|
+
var Kt = be(function(e) {
|
|
851
|
+
var t = c(e, Gt);
|
|
852
|
+
return t.length && t[0] === e[0] ? Wt(t) : [];
|
|
853
|
+
}), qt = I && 1 / z(new I([, -0]))[1] == Infinity ? function(e) {
|
|
854
854
|
return new I(e);
|
|
855
|
-
} :
|
|
856
|
-
function
|
|
857
|
-
var r = -1, i =
|
|
858
|
-
if (n) o = !1, i =
|
|
859
|
-
else if (a >=
|
|
860
|
-
var l = t ? null :
|
|
861
|
-
if (l) return
|
|
855
|
+
} : ae, Jt = 200;
|
|
856
|
+
function Yt(e, t, n) {
|
|
857
|
+
var r = -1, i = _e, a = e.length, o = !0, s = [], c = s;
|
|
858
|
+
if (n) o = !1, i = Ht;
|
|
859
|
+
else if (a >= Jt) {
|
|
860
|
+
var l = t ? null : qt(e);
|
|
861
|
+
if (l) return z(l);
|
|
862
862
|
o = !1, i = R, c = new L();
|
|
863
863
|
} else c = t ? [] : s;
|
|
864
864
|
outer: for (; ++r < a;) {
|
|
@@ -871,17 +871,17 @@ function Xt(e, t, n) {
|
|
|
871
871
|
return s;
|
|
872
872
|
}
|
|
873
873
|
//#endregion
|
|
874
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.
|
|
875
|
-
function
|
|
876
|
-
return e && e.length ?
|
|
874
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniq.js
|
|
875
|
+
function Xt(e) {
|
|
876
|
+
return e && e.length ? Yt(e) : [];
|
|
877
877
|
}
|
|
878
878
|
//#endregion
|
|
879
879
|
//#region src/helpers/resource/functions.ts
|
|
880
|
-
var
|
|
880
|
+
var Zt = { complex: [
|
|
881
881
|
"tar.bz2",
|
|
882
882
|
"tar.gz",
|
|
883
883
|
"tar.xz"
|
|
884
|
-
] },
|
|
884
|
+
] }, Qt = (e) => Object.hasOwn(e, "ddate"), $t = (e) => Object.hasOwn(e, "highlights"), B = (e) => e.replace(/[^A-Za-z0-9\-_]/g, ""), en = (e, t) => !e || typeof e != "string" ? "" : e.indexOf("!") >= 0 ? e.split("!")[t] : "", V = (e) => en(e, 0), H = (e) => en(e, 1), tn = (e) => {
|
|
885
885
|
let t = e.extension || "", n = e.name || "";
|
|
886
886
|
if (!t.length) return n;
|
|
887
887
|
let r = n.lastIndexOf(`.${t}`);
|
|
@@ -890,28 +890,28 @@ var z = /* @__PURE__ */ e(te(), 1), Qt = { complex: [
|
|
|
890
890
|
let t = e.name.split(".");
|
|
891
891
|
if (t.length > 2) for (let e = 0; e < t.length; e++) {
|
|
892
892
|
let n = t.slice(e, t.length).join(".");
|
|
893
|
-
if (
|
|
893
|
+
if (Zt.complex.includes(n)) return n;
|
|
894
894
|
}
|
|
895
895
|
return t.length < 2 ? "" : t[t.length - 1];
|
|
896
|
-
},
|
|
896
|
+
}, nn = (e) => (0, v.basename)((0, v.dirname)(e.path)) || null, rn = (e) => typeof e.isShareRoot == "function" && e.isShareRoot(), W = (e) => {
|
|
897
897
|
if (!e) return e;
|
|
898
898
|
let t = {};
|
|
899
899
|
return Object.keys(e).forEach((n) => {
|
|
900
900
|
t[Lt(n)] = e[n];
|
|
901
901
|
}), t;
|
|
902
902
|
};
|
|
903
|
-
function
|
|
904
|
-
let n = e.props[
|
|
903
|
+
function an(e, t = []) {
|
|
904
|
+
let n = e.props[C.Name]?.toString() || (0, v.basename)(e.filename), r = e.props[C.FileId], i = e.type === "directory", a;
|
|
905
905
|
a = e.filename.startsWith("/files") || e.filename.startsWith("/space") ? e.filename.split("/").slice(3).join("/") : e.filename, a.startsWith("/") || (a = `/${a}`);
|
|
906
906
|
let o = U({
|
|
907
907
|
...e,
|
|
908
908
|
id: r,
|
|
909
909
|
name: n,
|
|
910
910
|
path: a
|
|
911
|
-
}), s = e.props[
|
|
912
|
-
s && (c = s[
|
|
911
|
+
}), s = e.props[C.LockDiscovery], c, l, u;
|
|
912
|
+
s && (c = s[C.ActiveLock], l = c[C.LockOwner], u = c[C.LockTime]);
|
|
913
913
|
let d = [];
|
|
914
|
-
e.props[
|
|
914
|
+
e.props[C.ShareTypes] && (d = e.props[C.ShareTypes]["share-type"], Array.isArray(d) || (d = [d]));
|
|
915
915
|
let f = {};
|
|
916
916
|
for (let n of t || []) {
|
|
917
917
|
let t = n.split(":").pop();
|
|
@@ -921,8 +921,8 @@ function on(e, t = []) {
|
|
|
921
921
|
id: r,
|
|
922
922
|
fileId: r,
|
|
923
923
|
storageId: V(r),
|
|
924
|
-
parentFolderId: e.props[
|
|
925
|
-
mimeType: e.props[
|
|
924
|
+
parentFolderId: e.props[C.FileParent],
|
|
925
|
+
mimeType: e.props[C.MimeType],
|
|
926
926
|
name: n,
|
|
927
927
|
extension: o,
|
|
928
928
|
path: a,
|
|
@@ -933,56 +933,56 @@ function on(e, t = []) {
|
|
|
933
933
|
lockOwner: l,
|
|
934
934
|
lockTime: u,
|
|
935
935
|
processing: e.processing || !1,
|
|
936
|
-
mdate: e.props[
|
|
937
|
-
size: i ? e.props[
|
|
938
|
-
permissions: e.props[
|
|
939
|
-
starred: e.props[
|
|
940
|
-
etag: e.props[
|
|
936
|
+
mdate: e.props[C.LastModifiedDate],
|
|
937
|
+
size: i ? e.props[C.ContentSize]?.toString() || "0" : e.props[C.ContentLength]?.toString() || "0",
|
|
938
|
+
permissions: e.props[C.Permissions] || "",
|
|
939
|
+
starred: e.props[C.IsFavorite] === 1,
|
|
940
|
+
etag: e.props[C.ETag],
|
|
941
941
|
shareTypes: d,
|
|
942
|
-
privateLink: e.props[
|
|
943
|
-
downloadURL: e.props[
|
|
944
|
-
remoteItemId: e.props[
|
|
945
|
-
remoteItemPath: e.props[
|
|
942
|
+
privateLink: e.props[C.PrivateLink],
|
|
943
|
+
downloadURL: e.props[C.DownloadURL],
|
|
944
|
+
remoteItemId: e.props[C.RemoteItemId],
|
|
945
|
+
remoteItemPath: e.props[C.ShareRoot],
|
|
946
946
|
owner: {
|
|
947
|
-
id: e.props[
|
|
948
|
-
displayName: e.props[
|
|
947
|
+
id: e.props[C.OwnerId],
|
|
948
|
+
displayName: e.props[C.OwnerDisplayName]
|
|
949
949
|
},
|
|
950
|
-
tags: (e.props[
|
|
951
|
-
audio: W(e.props[
|
|
952
|
-
location: W(e.props[
|
|
953
|
-
image: W(e.props[
|
|
954
|
-
photo: W(e.props[
|
|
950
|
+
tags: (e.props[C.Tags] || "").toString().split(",").filter(Boolean),
|
|
951
|
+
audio: W(e.props[C.Audio]),
|
|
952
|
+
location: W(e.props[C.Location]),
|
|
953
|
+
image: W(e.props[C.Image]),
|
|
954
|
+
photo: W(e.props[C.Photo]),
|
|
955
955
|
extraProps: f,
|
|
956
|
-
hasPreview: () => e.props[
|
|
956
|
+
hasPreview: () => e.props[C.HasPreview] === 1,
|
|
957
957
|
canUpload: function() {
|
|
958
|
-
return this.permissions.indexOf(
|
|
958
|
+
return this.permissions.indexOf(y.FolderCreateable) >= 0;
|
|
959
959
|
},
|
|
960
960
|
canDownload: function() {
|
|
961
|
-
return this.permissions.indexOf(
|
|
961
|
+
return this.permissions.indexOf(y.SecureView) === -1;
|
|
962
962
|
},
|
|
963
963
|
canBeDeleted: function() {
|
|
964
|
-
return this.permissions.indexOf(
|
|
964
|
+
return this.permissions.indexOf(y.Deletable) >= 0;
|
|
965
965
|
},
|
|
966
966
|
canRename: function() {
|
|
967
|
-
return this.permissions.indexOf(
|
|
967
|
+
return this.permissions.indexOf(y.Renameable) >= 0;
|
|
968
968
|
},
|
|
969
969
|
canShare: function({ ability: e }) {
|
|
970
|
-
return e.can("create-all", "Share") && this.permissions.indexOf(
|
|
970
|
+
return e.can("create-all", "Share") && this.permissions.indexOf(y.Shareable) >= 0;
|
|
971
971
|
},
|
|
972
972
|
canCreate: function() {
|
|
973
|
-
return this.permissions.indexOf(
|
|
973
|
+
return this.permissions.indexOf(y.FolderCreateable) >= 0;
|
|
974
974
|
},
|
|
975
975
|
canEditTags: function() {
|
|
976
|
-
return this.permissions.indexOf(
|
|
976
|
+
return this.permissions.indexOf(y.Updateable) >= 0 || this.permissions.indexOf(y.FileUpdateable) >= 0 || this.permissions.indexOf(y.FolderCreateable) >= 0;
|
|
977
977
|
},
|
|
978
978
|
isMounted: function() {
|
|
979
|
-
return this.permissions.indexOf(
|
|
979
|
+
return this.permissions.indexOf(y.Mounted) >= 0;
|
|
980
980
|
},
|
|
981
981
|
isReceivedShare: function() {
|
|
982
|
-
return this.permissions.indexOf(
|
|
982
|
+
return this.permissions.indexOf(y.Shared) >= 0;
|
|
983
983
|
},
|
|
984
984
|
isShareRoot() {
|
|
985
|
-
return e.props[
|
|
985
|
+
return e.props[C.ShareRoot] ? e.filename.split("/").length === 3 : !1;
|
|
986
986
|
},
|
|
987
987
|
getDomSelector: () => B(r)
|
|
988
988
|
};
|
|
@@ -990,20 +990,20 @@ function on(e, t = []) {
|
|
|
990
990
|
return H(this.id);
|
|
991
991
|
} }), p;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
let t = e.type === "directory", n = e.props[
|
|
993
|
+
function on(e) {
|
|
994
|
+
let t = e.type === "directory", n = e.props[C.TrashbinOriginalFilename]?.toString(), r = U({
|
|
995
995
|
name: n,
|
|
996
996
|
type: e.type
|
|
997
|
-
}), i =
|
|
997
|
+
}), i = v.default.basename(e.filename);
|
|
998
998
|
return {
|
|
999
999
|
type: t ? "folder" : e.type,
|
|
1000
1000
|
isFolder: t,
|
|
1001
|
-
ddate: e.props[
|
|
1002
|
-
name:
|
|
1001
|
+
ddate: e.props[C.TrashbinDeletedDate],
|
|
1002
|
+
name: v.default.basename(n),
|
|
1003
1003
|
extension: r,
|
|
1004
|
-
path: d(e.props[
|
|
1004
|
+
path: d(e.props[C.TrashbinOriginalLocation], { leadingSlash: !0 }),
|
|
1005
1005
|
id: i,
|
|
1006
|
-
parentFolderId: e.props[
|
|
1006
|
+
parentFolderId: e.props[C.FileParent],
|
|
1007
1007
|
webDavPath: "",
|
|
1008
1008
|
canUpload: () => !1,
|
|
1009
1009
|
canDownload: () => !1,
|
|
@@ -1023,7 +1023,7 @@ function sn(e) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
//#endregion
|
|
1025
1025
|
//#region src/helpers/share/constants.ts
|
|
1026
|
-
var
|
|
1026
|
+
var sn = class {
|
|
1027
1027
|
static Read = 1;
|
|
1028
1028
|
static Update = 2;
|
|
1029
1029
|
static Create = 4;
|
|
@@ -1102,18 +1102,18 @@ var cn = class {
|
|
|
1102
1102
|
return e.map((e) => e.value);
|
|
1103
1103
|
}
|
|
1104
1104
|
static containsAnyValue(e, t) {
|
|
1105
|
-
return
|
|
1105
|
+
return Kt(this.getValues(e), t).length > 0;
|
|
1106
1106
|
}
|
|
1107
|
-
},
|
|
1107
|
+
}, cn = "a0ca6a90-a365-4782-871e-d44447bbc668", ln = "89f37a33-858b-45fa-8890-a1f2b27d90e1", un = (e) => e?.type === "space", Y = (e) => e?.driveType === "personal", dn = (e) => e?.driveType === "project", fn = (e) => e?.driveType === "share", pn = (e) => e?.driveType === "mountpoint", mn = (e) => e?.driveType === "public";
|
|
1108
1108
|
//#endregion
|
|
1109
1109
|
//#region src/helpers/space/functions.ts
|
|
1110
1110
|
function X(e, t) {
|
|
1111
1111
|
return d("spaces", e, t, { leadingSlash: !0 });
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function hn(e, t = "") {
|
|
1114
1114
|
return d("spaces", "trash-bin", e, t, { leadingSlash: !0 });
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function gn(e, t) {
|
|
1117
1117
|
let n = e[{
|
|
1118
1118
|
image: "spaceImageData",
|
|
1119
1119
|
readme: "spaceReadmeData"
|
|
@@ -1122,18 +1122,18 @@ function _n(e, t) {
|
|
|
1122
1122
|
let r = decodeURI(n.webDavUrl).split("/"), i = r.find((t) => t.startsWith(e.id));
|
|
1123
1123
|
return i ? r.slice(r.indexOf(i) + 1).join("/") : "";
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function _n(e) {
|
|
1126
1126
|
return e.permissions.includes(G.deletePermissions);
|
|
1127
1127
|
}
|
|
1128
|
-
var
|
|
1128
|
+
var vn = (e, t) => e.root.permissions?.filter((e) => {
|
|
1129
1129
|
let n = [];
|
|
1130
1130
|
e["@libre.graph.permissions.actions"] && (n = e["@libre.graph.permissions.actions"]);
|
|
1131
1131
|
let r = t[e.roles?.[0]];
|
|
1132
1132
|
return r && !n.length && (n = r.rolePermissions.find(({ condition: e }) => e === "exists @Resource.Root")?.allowedResourceActions || []), n.includes(G.deletePermissions);
|
|
1133
1133
|
});
|
|
1134
|
-
function
|
|
1135
|
-
let t = e.publicLinkPassword, n = e.props?.[
|
|
1136
|
-
return c === "ocm" ? (l = `ocm/${e.id}`, u =
|
|
1134
|
+
function yn(e) {
|
|
1135
|
+
let t = e.publicLinkPassword, n = e.props?.[C.FileId], r = e.props?.[C.PublicLinkItemType], i = e.props?.[C.PublicLinkPermission], a = e.props?.[C.PublicLinkExpiration], o = e.props?.[C.PublicLinkShareDate], s = e.props?.[C.PublicLinkShareOwner], c = e.publicLinkType, l, u;
|
|
1136
|
+
return c === "ocm" ? (l = `ocm/${e.id}`, u = _(e.id)) : (l = `public/${e.id}`, u = g(e.id)), Object.assign(Z({
|
|
1137
1137
|
...e,
|
|
1138
1138
|
driveType: "public",
|
|
1139
1139
|
driveAlias: l,
|
|
@@ -1149,7 +1149,7 @@ function bn(e) {
|
|
|
1149
1149
|
publicLinkType: c
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function bn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r }) {
|
|
1153
1153
|
let i = Z({
|
|
1154
1154
|
id: t,
|
|
1155
1155
|
driveAlias: `${e}/${n}`,
|
|
@@ -1164,7 +1164,7 @@ function xn({ driveAliasPrefix: e, id: t, shareName: n, serverUrl: r }) {
|
|
|
1164
1164
|
function Z(e) {
|
|
1165
1165
|
let t, n;
|
|
1166
1166
|
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)));
|
|
1167
|
-
let r = e.root?.deleted?.state === "trashed", i = d(e.webDavPath || X(e.id), { leadingSlash: !0 }), a = d(e.serverUrl, "remote.php/dav", i), o = d(e.webDavTrashPath ||
|
|
1167
|
+
let r = e.root?.deleted?.state === "trashed", i = d(e.webDavPath || X(e.id), { leadingSlash: !0 }), a = d(e.serverUrl, "remote.php/dav", i), o = d(e.webDavTrashPath || hn(e.id), { leadingSlash: !0 }), s = d(e.serverUrl, "remote.php/dav", o), c = {
|
|
1168
1168
|
id: e.id,
|
|
1169
1169
|
fileId: e.id,
|
|
1170
1170
|
storageId: e.id,
|
|
@@ -1272,7 +1272,7 @@ function Z(e) {
|
|
|
1272
1272
|
return H(this.id);
|
|
1273
1273
|
} }), c;
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function xn(e) {
|
|
1276
1276
|
return {
|
|
1277
1277
|
id: e.spaceImageData.id,
|
|
1278
1278
|
name: e.spaceImageData.name,
|
|
@@ -1287,10 +1287,10 @@ function Sn(e) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
//#endregion
|
|
1289
1289
|
//#region src/helpers/share/functions.ts
|
|
1290
|
-
var Q = (e) => Object.hasOwn(e, "sharedWith"),
|
|
1290
|
+
var Q = (e) => Object.hasOwn(e, "sharedWith"), Sn = (e) => Q(e) && e.outgoing, Cn = (e) => Q(e) && !e.outgoing, wn = (e) => Object.hasOwn(e, "role"), Tn = (e) => !Object.hasOwn(e, "role"), En = ({ driveItem: e, graphRoles: t }) => e.remoteItem?.permissions.reduce((e, n) => (n.roles?.forEach((n) => {
|
|
1291
1291
|
let r = t[n];
|
|
1292
1292
|
r && !e.some(({ id: e }) => e === r.id) && e.push(r);
|
|
1293
|
-
}), e), []),
|
|
1293
|
+
}), e), []), Dn = ({ driveItem: e, shareRoles: t }) => {
|
|
1294
1294
|
if (!t.length) {
|
|
1295
1295
|
let t = e.remoteItem?.permissions.reduce((e, t) => {
|
|
1296
1296
|
let n = t["@libre.graph.permissions.actions"];
|
|
@@ -1303,7 +1303,7 @@ var Q = (e) => Object.hasOwn(e, "sharedWith"), Cn = (e) => Q(e) && e.outgoing, w
|
|
|
1303
1303
|
}), e), []);
|
|
1304
1304
|
return [...new Set(n)];
|
|
1305
1305
|
};
|
|
1306
|
-
function
|
|
1306
|
+
function On({ driveItem: e, graphRoles: t, serverUrl: n }) {
|
|
1307
1307
|
let r = e.name || e.remoteItem.name, i = V(e.remoteItem.id), a = e.remoteItem.permissions.map((e) => {
|
|
1308
1308
|
let { grantedToV2: t } = e;
|
|
1309
1309
|
return {
|
|
@@ -1313,12 +1313,12 @@ function kn({ driveItem: e, graphRoles: t, serverUrl: n }) {
|
|
|
1313
1313
|
}), o = e.remoteItem.permissions.reduce((e, t) => {
|
|
1314
1314
|
let n = t.invitation.invitedBy.user;
|
|
1315
1315
|
return e.some(({ id: e }) => e === n.id) || e.push(n), e;
|
|
1316
|
-
}, []), s =
|
|
1316
|
+
}, []), s = Xt(e.remoteItem.permissions.map($));
|
|
1317
1317
|
o.some((e) => e["@libre.graph.userType"] === "Federated") && (s = [J.remote.value]);
|
|
1318
|
-
let c =
|
|
1318
|
+
let c = En({
|
|
1319
1319
|
driveItem: e,
|
|
1320
1320
|
graphRoles: t
|
|
1321
|
-
}), l =
|
|
1321
|
+
}), l = Dn({
|
|
1322
1322
|
driveItem: e,
|
|
1323
1323
|
shareRoles: c
|
|
1324
1324
|
}), u = {
|
|
@@ -1363,7 +1363,7 @@ function kn({ driveItem: e, graphRoles: t, serverUrl: n }) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
return u.extension = U(u), u;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function kn({ driveItem: e, user: t, serverUrl: n }) {
|
|
1367
1367
|
let r = V(e.id), i = d(e.parentReference.path, e.name), a = {
|
|
1368
1368
|
id: e.id,
|
|
1369
1369
|
driveId: e.parentReference?.driveId,
|
|
@@ -1417,7 +1417,7 @@ function An({ driveItem: e, user: t, serverUrl: n }) {
|
|
|
1417
1417
|
};
|
|
1418
1418
|
return a.extension = U(a), a;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function An({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1 }) {
|
|
1421
1421
|
let i = t[e.roles?.[0]], a = e.invitation?.invitedBy?.user;
|
|
1422
1422
|
return {
|
|
1423
1423
|
id: e.id,
|
|
@@ -1435,7 +1435,7 @@ function jn({ graphPermission: e, graphRoles: t, resourceId: n, indirect: r = !1
|
|
|
1435
1435
|
expirationDateTime: e.expirationDateTime
|
|
1436
1436
|
};
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function jn({ graphPermission: e, resourceId: t, indirect: n = !1 }) {
|
|
1439
1439
|
let r = e.invitation?.invitedBy?.user;
|
|
1440
1440
|
return {
|
|
1441
1441
|
id: e.id,
|
|
@@ -1460,4 +1460,4 @@ function $({ link: e, grantedToV2: t }) {
|
|
|
1460
1460
|
return e ? J.link.value : t?.group ? J.group.value : t?.user?.["@libre.graph.userType"] === "Federated" ? J.remote.value : J.user.value;
|
|
1461
1461
|
}
|
|
1462
1462
|
//#endregion
|
|
1463
|
-
export { f as $, J as A, V as B,
|
|
1463
|
+
export { f as $, J as A, V as B, pn as C, fn as D, mn as E, B as F, y as G, rn as H, U as I, _ as J, re as K, tn as L, sn as M, on as N, un as O, an as P, p as Q, H as R, cn as S, dn as T, Qt as U, $t as V, ee as W, h as X, g as Y, m as Z, hn as _, Dn as a, _n as b, Cn as c, Q as d, yn as f, X as g, xn as h, kn as i, G as j, q as k, Tn as l, Z as m, On as n, En as o, bn as p, C as q, jn as r, wn as s, An as t, Sn as u, gn as v, Y as w, ln as x, vn as y, nn as z };
|