dccxx-s3-explorer 1.0.97 → 1.0.99
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/s3-explorer.js +296 -298
- package/dist/s3-explorer.js.map +1 -1
- package/dist/s3-explorer.umd.cjs +5 -5
- package/dist/s3-explorer.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/s3-explorer.js
CHANGED
|
@@ -14295,281 +14295,281 @@ Kd.exports;
|
|
|
14295
14295
|
"\u2029": "u2029"
|
|
14296
14296
|
}, vh = parseFloat, qa = parseInt, Vl = typeof So == "object" && So && So.Object === Object && So, yh = typeof self == "object" && self && self.Object === Object && self, sn = Vl || yh || Function("return this")(), Ya = e && !e.nodeType && e, Lo = Ya && !0 && t && !t.nodeType && t, hc = Lo && Lo.exports === Ya, Qi = hc && Vl.process, Jn = function() {
|
|
14297
14297
|
try {
|
|
14298
|
-
var
|
|
14299
|
-
return
|
|
14298
|
+
var z = Lo && Lo.require && Lo.require("util").types;
|
|
14299
|
+
return z || Qi && Qi.binding && Qi.binding("util");
|
|
14300
14300
|
} catch {
|
|
14301
14301
|
}
|
|
14302
14302
|
}(), Kl = Jn && Jn.isArrayBuffer, Gl = Jn && Jn.isDate, jl = Jn && Jn.isMap, Xi = Jn && Jn.isRegExp, Wl = Jn && Jn.isSet, ql = Jn && Jn.isTypedArray;
|
|
14303
|
-
function Sn(
|
|
14303
|
+
function Sn(z, ue, oe) {
|
|
14304
14304
|
switch (oe.length) {
|
|
14305
14305
|
case 0:
|
|
14306
|
-
return
|
|
14306
|
+
return z.call(ue);
|
|
14307
14307
|
case 1:
|
|
14308
|
-
return
|
|
14308
|
+
return z.call(ue, oe[0]);
|
|
14309
14309
|
case 2:
|
|
14310
|
-
return
|
|
14310
|
+
return z.call(ue, oe[0], oe[1]);
|
|
14311
14311
|
case 3:
|
|
14312
|
-
return
|
|
14312
|
+
return z.call(ue, oe[0], oe[1], oe[2]);
|
|
14313
14313
|
}
|
|
14314
|
-
return
|
|
14314
|
+
return z.apply(ue, oe);
|
|
14315
14315
|
}
|
|
14316
|
-
function wh(
|
|
14317
|
-
for (var nt = -1, _t =
|
|
14318
|
-
var cn =
|
|
14319
|
-
ue(Le, cn, oe(cn),
|
|
14316
|
+
function wh(z, ue, oe, Le) {
|
|
14317
|
+
for (var nt = -1, _t = z == null ? 0 : z.length; ++nt < _t; ) {
|
|
14318
|
+
var cn = z[nt];
|
|
14319
|
+
ue(Le, cn, oe(cn), z);
|
|
14320
14320
|
}
|
|
14321
14321
|
return Le;
|
|
14322
14322
|
}
|
|
14323
|
-
function Qn(
|
|
14324
|
-
for (var oe = -1, Le =
|
|
14323
|
+
function Qn(z, ue) {
|
|
14324
|
+
for (var oe = -1, Le = z == null ? 0 : z.length; ++oe < Le && ue(z[oe], oe, z) !== !1; )
|
|
14325
14325
|
;
|
|
14326
|
-
return
|
|
14326
|
+
return z;
|
|
14327
14327
|
}
|
|
14328
|
-
function bh(
|
|
14329
|
-
for (var oe =
|
|
14328
|
+
function bh(z, ue) {
|
|
14329
|
+
for (var oe = z == null ? 0 : z.length; oe-- && ue(z[oe], oe, z) !== !1; )
|
|
14330
14330
|
;
|
|
14331
|
-
return
|
|
14331
|
+
return z;
|
|
14332
14332
|
}
|
|
14333
|
-
function Yl(
|
|
14334
|
-
for (var oe = -1, Le =
|
|
14335
|
-
if (!ue(
|
|
14333
|
+
function Yl(z, ue) {
|
|
14334
|
+
for (var oe = -1, Le = z == null ? 0 : z.length; ++oe < Le; )
|
|
14335
|
+
if (!ue(z[oe], oe, z))
|
|
14336
14336
|
return !1;
|
|
14337
14337
|
return !0;
|
|
14338
14338
|
}
|
|
14339
|
-
function Br(
|
|
14340
|
-
for (var oe = -1, Le =
|
|
14341
|
-
var cn =
|
|
14342
|
-
ue(cn, oe,
|
|
14339
|
+
function Br(z, ue) {
|
|
14340
|
+
for (var oe = -1, Le = z == null ? 0 : z.length, nt = 0, _t = []; ++oe < Le; ) {
|
|
14341
|
+
var cn = z[oe];
|
|
14342
|
+
ue(cn, oe, z) && (_t[nt++] = cn);
|
|
14343
14343
|
}
|
|
14344
14344
|
return _t;
|
|
14345
14345
|
}
|
|
14346
|
-
function gr(
|
|
14347
|
-
var oe =
|
|
14348
|
-
return !!oe && di(
|
|
14346
|
+
function gr(z, ue) {
|
|
14347
|
+
var oe = z == null ? 0 : z.length;
|
|
14348
|
+
return !!oe && di(z, ue, 0) > -1;
|
|
14349
14349
|
}
|
|
14350
|
-
function Fo(
|
|
14351
|
-
for (var Le = -1, nt =
|
|
14352
|
-
if (oe(ue,
|
|
14350
|
+
function Fo(z, ue, oe) {
|
|
14351
|
+
for (var Le = -1, nt = z == null ? 0 : z.length; ++Le < nt; )
|
|
14352
|
+
if (oe(ue, z[Le]))
|
|
14353
14353
|
return !0;
|
|
14354
14354
|
return !1;
|
|
14355
14355
|
}
|
|
14356
|
-
function $t(
|
|
14357
|
-
for (var oe = -1, Le =
|
|
14358
|
-
nt[oe] = ue(
|
|
14356
|
+
function $t(z, ue) {
|
|
14357
|
+
for (var oe = -1, Le = z == null ? 0 : z.length, nt = Array(Le); ++oe < Le; )
|
|
14358
|
+
nt[oe] = ue(z[oe], oe, z);
|
|
14359
14359
|
return nt;
|
|
14360
14360
|
}
|
|
14361
|
-
function En(
|
|
14362
|
-
for (var oe = -1, Le = ue.length, nt =
|
|
14363
|
-
|
|
14364
|
-
return
|
|
14361
|
+
function En(z, ue) {
|
|
14362
|
+
for (var oe = -1, Le = ue.length, nt = z.length; ++oe < Le; )
|
|
14363
|
+
z[nt + oe] = ue[oe];
|
|
14364
|
+
return z;
|
|
14365
14365
|
}
|
|
14366
|
-
function pc(
|
|
14367
|
-
var nt = -1, _t =
|
|
14368
|
-
for (Le && _t && (oe =
|
|
14369
|
-
oe = ue(oe,
|
|
14366
|
+
function pc(z, ue, oe, Le) {
|
|
14367
|
+
var nt = -1, _t = z == null ? 0 : z.length;
|
|
14368
|
+
for (Le && _t && (oe = z[++nt]); ++nt < _t; )
|
|
14369
|
+
oe = ue(oe, z[nt], nt, z);
|
|
14370
14370
|
return oe;
|
|
14371
14371
|
}
|
|
14372
|
-
function Ch(
|
|
14373
|
-
var nt =
|
|
14374
|
-
for (Le && nt && (oe =
|
|
14375
|
-
oe = ue(oe,
|
|
14372
|
+
function Ch(z, ue, oe, Le) {
|
|
14373
|
+
var nt = z == null ? 0 : z.length;
|
|
14374
|
+
for (Le && nt && (oe = z[--nt]); nt--; )
|
|
14375
|
+
oe = ue(oe, z[nt], nt, z);
|
|
14376
14376
|
return oe;
|
|
14377
14377
|
}
|
|
14378
|
-
function Zi(
|
|
14379
|
-
for (var oe = -1, Le =
|
|
14380
|
-
if (ue(
|
|
14378
|
+
function Zi(z, ue) {
|
|
14379
|
+
for (var oe = -1, Le = z == null ? 0 : z.length; ++oe < Le; )
|
|
14380
|
+
if (ue(z[oe], oe, z))
|
|
14381
14381
|
return !0;
|
|
14382
14382
|
return !1;
|
|
14383
14383
|
}
|
|
14384
14384
|
var xh = Xa("length");
|
|
14385
|
-
function Jl(
|
|
14386
|
-
return
|
|
14385
|
+
function Jl(z) {
|
|
14386
|
+
return z.split("");
|
|
14387
14387
|
}
|
|
14388
|
-
function Ja(
|
|
14389
|
-
return
|
|
14388
|
+
function Ja(z) {
|
|
14389
|
+
return z.match(Fl) || [];
|
|
14390
14390
|
}
|
|
14391
|
-
function Ql(
|
|
14391
|
+
function Ql(z, ue, oe) {
|
|
14392
14392
|
var Le;
|
|
14393
|
-
return oe(
|
|
14393
|
+
return oe(z, function(nt, _t, cn) {
|
|
14394
14394
|
if (ue(nt, _t, cn))
|
|
14395
14395
|
return Le = _t, !1;
|
|
14396
14396
|
}), Le;
|
|
14397
14397
|
}
|
|
14398
|
-
function Qa(
|
|
14399
|
-
for (var nt =
|
|
14400
|
-
if (ue(
|
|
14398
|
+
function Qa(z, ue, oe, Le) {
|
|
14399
|
+
for (var nt = z.length, _t = oe + (Le ? 1 : -1); Le ? _t-- : ++_t < nt; )
|
|
14400
|
+
if (ue(z[_t], _t, z))
|
|
14401
14401
|
return _t;
|
|
14402
14402
|
return -1;
|
|
14403
14403
|
}
|
|
14404
|
-
function di(
|
|
14405
|
-
return ue === ue ? ra(
|
|
14404
|
+
function di(z, ue, oe) {
|
|
14405
|
+
return ue === ue ? ra(z, ue, oe) : Qa(z, mc, oe);
|
|
14406
14406
|
}
|
|
14407
|
-
function gc(
|
|
14408
|
-
for (var nt = oe - 1, _t =
|
|
14409
|
-
if (Le(
|
|
14407
|
+
function gc(z, ue, oe, Le) {
|
|
14408
|
+
for (var nt = oe - 1, _t = z.length; ++nt < _t; )
|
|
14409
|
+
if (Le(z[nt], ue))
|
|
14410
14410
|
return nt;
|
|
14411
14411
|
return -1;
|
|
14412
14412
|
}
|
|
14413
|
-
function mc(
|
|
14414
|
-
return
|
|
14413
|
+
function mc(z) {
|
|
14414
|
+
return z !== z;
|
|
14415
14415
|
}
|
|
14416
|
-
function Xl(
|
|
14417
|
-
var oe =
|
|
14418
|
-
return oe ? yc(
|
|
14416
|
+
function Xl(z, ue) {
|
|
14417
|
+
var oe = z == null ? 0 : z.length;
|
|
14418
|
+
return oe ? yc(z, ue) / oe : $;
|
|
14419
14419
|
}
|
|
14420
|
-
function Xa(
|
|
14420
|
+
function Xa(z) {
|
|
14421
14421
|
return function(ue) {
|
|
14422
|
-
return ue == null ? n : ue[
|
|
14422
|
+
return ue == null ? n : ue[z];
|
|
14423
14423
|
};
|
|
14424
14424
|
}
|
|
14425
|
-
function ea(
|
|
14425
|
+
function ea(z) {
|
|
14426
14426
|
return function(ue) {
|
|
14427
|
-
return
|
|
14427
|
+
return z == null ? n : z[ue];
|
|
14428
14428
|
};
|
|
14429
14429
|
}
|
|
14430
|
-
function vc(
|
|
14431
|
-
return nt(
|
|
14430
|
+
function vc(z, ue, oe, Le, nt) {
|
|
14431
|
+
return nt(z, function(_t, cn, Lt) {
|
|
14432
14432
|
oe = Le ? (Le = !1, _t) : ue(oe, _t, cn, Lt);
|
|
14433
14433
|
}), oe;
|
|
14434
14434
|
}
|
|
14435
|
-
function _h(
|
|
14436
|
-
var oe =
|
|
14437
|
-
for (
|
|
14438
|
-
|
|
14439
|
-
return
|
|
14435
|
+
function _h(z, ue) {
|
|
14436
|
+
var oe = z.length;
|
|
14437
|
+
for (z.sort(ue); oe--; )
|
|
14438
|
+
z[oe] = z[oe].value;
|
|
14439
|
+
return z;
|
|
14440
14440
|
}
|
|
14441
|
-
function yc(
|
|
14442
|
-
for (var oe, Le = -1, nt =
|
|
14443
|
-
var _t = ue(
|
|
14441
|
+
function yc(z, ue) {
|
|
14442
|
+
for (var oe, Le = -1, nt = z.length; ++Le < nt; ) {
|
|
14443
|
+
var _t = ue(z[Le]);
|
|
14444
14444
|
_t !== n && (oe = oe === n ? _t : oe + _t);
|
|
14445
14445
|
}
|
|
14446
14446
|
return oe;
|
|
14447
14447
|
}
|
|
14448
|
-
function Za(
|
|
14449
|
-
for (var oe = -1, Le = Array(
|
|
14448
|
+
function Za(z, ue) {
|
|
14449
|
+
for (var oe = -1, Le = Array(z); ++oe < z; )
|
|
14450
14450
|
Le[oe] = ue(oe);
|
|
14451
14451
|
return Le;
|
|
14452
14452
|
}
|
|
14453
|
-
function Th(
|
|
14453
|
+
function Th(z, ue) {
|
|
14454
14454
|
return $t(ue, function(oe) {
|
|
14455
|
-
return [oe,
|
|
14455
|
+
return [oe, z[oe]];
|
|
14456
14456
|
});
|
|
14457
14457
|
}
|
|
14458
|
-
function wc(
|
|
14459
|
-
return
|
|
14458
|
+
function wc(z) {
|
|
14459
|
+
return z && z.slice(0, Cn(z) + 1).replace(Ws, "");
|
|
14460
14460
|
}
|
|
14461
|
-
function Mn(
|
|
14461
|
+
function Mn(z) {
|
|
14462
14462
|
return function(ue) {
|
|
14463
|
-
return
|
|
14463
|
+
return z(ue);
|
|
14464
14464
|
};
|
|
14465
14465
|
}
|
|
14466
|
-
function zr(
|
|
14466
|
+
function zr(z, ue) {
|
|
14467
14467
|
return $t(ue, function(oe) {
|
|
14468
|
-
return
|
|
14468
|
+
return z[oe];
|
|
14469
14469
|
});
|
|
14470
14470
|
}
|
|
14471
|
-
function Xn(
|
|
14472
|
-
return
|
|
14471
|
+
function Xn(z, ue) {
|
|
14472
|
+
return z.has(ue);
|
|
14473
14473
|
}
|
|
14474
|
-
function ta(
|
|
14475
|
-
for (var oe = -1, Le =
|
|
14474
|
+
function ta(z, ue) {
|
|
14475
|
+
for (var oe = -1, Le = z.length; ++oe < Le && di(ue, z[oe], 0) > -1; )
|
|
14476
14476
|
;
|
|
14477
14477
|
return oe;
|
|
14478
14478
|
}
|
|
14479
|
-
function Zl(
|
|
14480
|
-
for (var oe =
|
|
14479
|
+
function Zl(z, ue) {
|
|
14480
|
+
for (var oe = z.length; oe-- && di(ue, z[oe], 0) > -1; )
|
|
14481
14481
|
;
|
|
14482
14482
|
return oe;
|
|
14483
14483
|
}
|
|
14484
|
-
function eu(
|
|
14485
|
-
for (var oe =
|
|
14486
|
-
|
|
14484
|
+
function eu(z, ue) {
|
|
14485
|
+
for (var oe = z.length, Le = 0; oe--; )
|
|
14486
|
+
z[oe] === ue && ++Le;
|
|
14487
14487
|
return Le;
|
|
14488
14488
|
}
|
|
14489
14489
|
var S = ea(ph), N = ea(gh);
|
|
14490
|
-
function z
|
|
14491
|
-
return "\\" + mh[
|
|
14490
|
+
function V(z) {
|
|
14491
|
+
return "\\" + mh[z];
|
|
14492
14492
|
}
|
|
14493
|
-
function fe(
|
|
14494
|
-
return
|
|
14493
|
+
function fe(z, ue) {
|
|
14494
|
+
return z == null ? n : z[ue];
|
|
14495
14495
|
}
|
|
14496
|
-
function we(
|
|
14497
|
-
return gn.test(
|
|
14496
|
+
function we(z) {
|
|
14497
|
+
return gn.test(z);
|
|
14498
14498
|
}
|
|
14499
|
-
function Se(
|
|
14500
|
-
return dc.test(
|
|
14499
|
+
function Se(z) {
|
|
14500
|
+
return dc.test(z);
|
|
14501
14501
|
}
|
|
14502
|
-
function De(
|
|
14503
|
-
for (var ue, oe = []; !(ue =
|
|
14502
|
+
function De(z) {
|
|
14503
|
+
for (var ue, oe = []; !(ue = z.next()).done; )
|
|
14504
14504
|
oe.push(ue.value);
|
|
14505
14505
|
return oe;
|
|
14506
14506
|
}
|
|
14507
|
-
function Tt(
|
|
14508
|
-
var ue = -1, oe = Array(
|
|
14509
|
-
return
|
|
14507
|
+
function Tt(z) {
|
|
14508
|
+
var ue = -1, oe = Array(z.size);
|
|
14509
|
+
return z.forEach(function(Le, nt) {
|
|
14510
14510
|
oe[++ue] = [nt, Le];
|
|
14511
14511
|
}), oe;
|
|
14512
14512
|
}
|
|
14513
|
-
function kr(
|
|
14513
|
+
function kr(z, ue) {
|
|
14514
14514
|
return function(oe) {
|
|
14515
|
-
return
|
|
14515
|
+
return z(ue(oe));
|
|
14516
14516
|
};
|
|
14517
14517
|
}
|
|
14518
|
-
function Zn(
|
|
14519
|
-
for (var oe = -1, Le =
|
|
14520
|
-
var cn =
|
|
14521
|
-
(cn === ue || cn === p) && (
|
|
14518
|
+
function Zn(z, ue) {
|
|
14519
|
+
for (var oe = -1, Le = z.length, nt = 0, _t = []; ++oe < Le; ) {
|
|
14520
|
+
var cn = z[oe];
|
|
14521
|
+
(cn === ue || cn === p) && (z[oe] = p, _t[nt++] = oe);
|
|
14522
14522
|
}
|
|
14523
14523
|
return _t;
|
|
14524
14524
|
}
|
|
14525
|
-
function na(
|
|
14526
|
-
var ue = -1, oe = Array(
|
|
14527
|
-
return
|
|
14525
|
+
function na(z) {
|
|
14526
|
+
var ue = -1, oe = Array(z.size);
|
|
14527
|
+
return z.forEach(function(Le) {
|
|
14528
14528
|
oe[++ue] = Le;
|
|
14529
14529
|
}), oe;
|
|
14530
14530
|
}
|
|
14531
|
-
function tu(
|
|
14532
|
-
var ue = -1, oe = Array(
|
|
14533
|
-
return
|
|
14531
|
+
function tu(z) {
|
|
14532
|
+
var ue = -1, oe = Array(z.size);
|
|
14533
|
+
return z.forEach(function(Le) {
|
|
14534
14534
|
oe[++ue] = [Le, Le];
|
|
14535
14535
|
}), oe;
|
|
14536
14536
|
}
|
|
14537
|
-
function ra(
|
|
14538
|
-
for (var Le = oe - 1, nt =
|
|
14539
|
-
if (
|
|
14537
|
+
function ra(z, ue, oe) {
|
|
14538
|
+
for (var Le = oe - 1, nt = z.length; ++Le < nt; )
|
|
14539
|
+
if (z[Le] === ue)
|
|
14540
14540
|
return Le;
|
|
14541
14541
|
return -1;
|
|
14542
14542
|
}
|
|
14543
|
-
function es(
|
|
14543
|
+
function es(z, ue, oe) {
|
|
14544
14544
|
for (var Le = oe + 1; Le--; )
|
|
14545
|
-
if (
|
|
14545
|
+
if (z[Le] === ue)
|
|
14546
14546
|
return Le;
|
|
14547
14547
|
return Le;
|
|
14548
14548
|
}
|
|
14549
|
-
function er(
|
|
14550
|
-
return we(
|
|
14549
|
+
function er(z) {
|
|
14550
|
+
return we(z) ? VI(z) : xh(z);
|
|
14551
14551
|
}
|
|
14552
|
-
function xt(
|
|
14553
|
-
return we(
|
|
14552
|
+
function xt(z) {
|
|
14553
|
+
return we(z) ? KI(z) : Jl(z);
|
|
14554
14554
|
}
|
|
14555
|
-
function Cn(
|
|
14556
|
-
for (var ue =
|
|
14555
|
+
function Cn(z) {
|
|
14556
|
+
for (var ue = z.length; ue-- && Dl.test(z.charAt(ue)); )
|
|
14557
14557
|
;
|
|
14558
14558
|
return ue;
|
|
14559
14559
|
}
|
|
14560
14560
|
var oa = ea(zl);
|
|
14561
|
-
function VI(
|
|
14562
|
-
for (var ue = uc.lastIndex = 0; uc.test(
|
|
14561
|
+
function VI(z) {
|
|
14562
|
+
for (var ue = uc.lastIndex = 0; uc.test(z); )
|
|
14563
14563
|
++ue;
|
|
14564
14564
|
return ue;
|
|
14565
14565
|
}
|
|
14566
|
-
function KI(
|
|
14567
|
-
return
|
|
14566
|
+
function KI(z) {
|
|
14567
|
+
return z.match(uc) || [];
|
|
14568
14568
|
}
|
|
14569
|
-
function GI(
|
|
14570
|
-
return
|
|
14569
|
+
function GI(z) {
|
|
14570
|
+
return z.match(Ji) || [];
|
|
14571
14571
|
}
|
|
14572
|
-
var jI = function
|
|
14572
|
+
var jI = function z(ue) {
|
|
14573
14573
|
ue = ue == null ? sn : ts.defaults(sn.Object(), ue, ts.pick(sn, fo));
|
|
14574
14574
|
var oe = ue.Array, Le = ue.Date, nt = ue.Error, _t = ue.Function, cn = ue.Math, Lt = ue.Object, Sh = ue.RegExp, WI = ue.String, Pr = ue.TypeError, nu = oe.prototype, qI = _t.prototype, ns = Lt.prototype, ru = ue["__core-js_shared__"], ou = qI.toString, Rt = ns.hasOwnProperty, YI = 0, Ty = function() {
|
|
14575
14575
|
var a = /[^.]+$/.exec(ru && ru.keys && ru.keys.IE_PROTO || "");
|
|
@@ -17325,7 +17325,7 @@ Kd.exports;
|
|
|
17325
17325
|
), Be = "//# sourceURL=" + (Rt.call(c, "sourceURL") ? (c.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++fc + "]") + `
|
|
17326
17326
|
`;
|
|
17327
17327
|
a.replace(Oe, function(Ye, dt, pt, yr, Fn, wr) {
|
|
17328
|
-
return pt || (pt = yr), be += a.slice(ge, wr).replace(lh,
|
|
17328
|
+
return pt || (pt = yr), be += a.slice(ge, wr).replace(lh, V), dt && (F = !0, be += `' +
|
|
17329
17329
|
__e(` + dt + `) +
|
|
17330
17330
|
'`), Fn && (G = !0, be += `';
|
|
17331
17331
|
` + Fn + `;
|
|
@@ -17587,7 +17587,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
17587
17587
|
function Z1(a, c) {
|
|
17588
17588
|
return a && a.length ? yc(a, We(c, 2)) : 0;
|
|
17589
17589
|
}
|
|
17590
|
-
return E.after = CN, E.ary = zw, E.assign = cO, E.assignIn = nb, E.assignInWith = Fu, E.assignWith = lO, E.at = uO, E.before = Vw, E.bind = ap, E.bindAll = g1, E.bindKey = Kw, E.castArray = ON, E.chain = $w, E.chunk = zk, E.compact = Vk, E.concat = Kk, E.cond = m1, E.conforms = v1, E.constant = hp, E.countBy = XP, E.create = dO, E.curry = Gw, E.curryRight = jw, E.debounce = Ww, E.defaults = fO, E.defaultsDeep = hO, E.defer = xN, E.delay = _N, E.difference = Gk, E.differenceBy = jk, E.differenceWith = Wk, E.drop = qk, E.dropRight = Yk, E.dropRightWhile = Jk, E.dropWhile = Qk, E.fill = Xk, E.filter = eN, E.flatMap = rN, E.flatMapDeep = oN, E.flatMapDepth = iN, E.flatten = Dw, E.flattenDeep = Zk, E.flattenDepth = eP, E.flip = TN, E.flow = w1, E.flowRight = b1, E.fromPairs = tP, E.functions = bO, E.functionsIn = CO, E.groupBy = aN, E.initial = rP, E.intersection = oP, E.intersectionBy = iP, E.intersectionWith = aP, E.invert = _O, E.invertBy = TO, E.invokeMap = cN, E.iteratee = pp, E.keyBy = lN, E.keys = mn, E.keysIn = rr, E.map = Pu, E.mapKeys = EO, E.mapValues = AO, E.matches = C1, E.matchesProperty = x1, E.memoize = Ou, E.merge = IO, E.mergeWith = rb, E.method = _1, E.methodOf = T1, E.mixin = gp, E.negate = Mu, E.nthArg = E1, E.omit = RO, E.omitBy = kO, E.once = SN, E.orderBy = uN, E.over = A1, E.overArgs = EN, E.overEvery = I1, E.overSome = R1, E.partial = sp, E.partialRight = qw, E.partition = dN, E.pick = PO, E.pickBy = ob, E.property = db, E.propertyOf = k1, E.pull = uP, E.pullAll = Fw, E.pullAllBy = dP, E.pullAllWith = fP, E.pullAt = hP, E.range = P1, E.rangeRight = N1, E.rearg = AN, E.reject = pN, E.remove = pP, E.rest = IN, E.reverse = op, E.sampleSize = mN, E.set = OO, E.setWith = MO, E.shuffle = vN, E.slice = gP, E.sortBy = bN, E.sortedUniq = xP, E.sortedUniqBy = _P, E.split = r1, E.spread = RN, E.tail = TP, E.take = SP, E.takeRight = EP, E.takeRightWhile = AP, E.takeWhile = IP, E.tap = VP, E.throttle = kN, E.thru = ku, E.toArray = Zw, E.toPairs = ib, E.toPairsIn = ab, E.toPath = F1, E.toPlainObject = tb, E.transform = DO, E.unary = PN, E.union = RP, E.unionBy = kP, E.unionWith = PP, E.uniq = NP, E.uniqBy = OP, E.uniqWith = MP, E.unset = LO, E.unzip = ip, E.unzipWith = Uw, E.update = FO, E.updateWith = UO, E.values = us, E.valuesIn = $O, E.without = DP, E.words = lb, E.wrap = NN, E.xor = LP, E.xorBy = FP, E.xorWith = UP, E.zip = $P, E.zipObject = HP, E.zipObjectDeep = BP, E.zipWith = zP, E.entries = ib, E.entriesIn = ab, E.extend = nb, E.extendWith = Fu, gp(E, E), E.add = $1, E.attempt = ub, E.camelCase = VO, E.capitalize = sb, E.ceil = H1, E.clamp = HO, E.clone = MN, E.cloneDeep = LN, E.cloneDeepWith = FN, E.cloneWith = DN, E.conformsTo = UN, E.deburr = cb, E.defaultTo = y1, E.divide = B1, E.endsWith = KO, E.eq = Kr, E.escape = GO, E.escapeRegExp = jO, E.every = ZP, E.find = tN, E.findIndex = Ow, E.findKey = pO, E.findLast = nN, E.findLastIndex = Mw, E.findLastKey = gO, E.floor = z1, E.forEach = Hw, E.forEachRight = Bw, E.forIn = mO, E.forInRight = vO, E.forOwn = yO, E.forOwnRight = wO, E.get = up, E.gt = $N, E.gte = HN, E.has = xO, E.hasIn = dp, E.head = Lw, E.identity = or, E.includes = sN, E.indexOf = nP, E.inRange = BO, E.invoke = SO, E.isArguments = fa, E.isArray = rt, E.isArrayBuffer = BN, E.isArrayLike = nr, E.isArrayLikeObject = Jt, E.isBoolean = zN, E.isBuffer = vi, E.isDate = VN, E.isElement = KN, E.isEmpty = GN, E.isEqual = jN, E.isEqualWith = WN, E.isError = cp, E.isFinite = qN, E.isFunction = Ko, E.isInteger = Yw, E.isLength = Du, E.isMap = Jw, E.isMatch = YN, E.isMatchWith = JN, E.isNaN = QN, E.isNative = XN, E.isNil = eO, E.isNull = ZN, E.isNumber = Qw, E.isObject = Kt, E.isObjectLike = qt, E.isPlainObject = Oc, E.isRegExp = lp, E.isSafeInteger = tO, E.isSet = Xw, E.isString = Lu, E.isSymbol = vr, E.isTypedArray = ls, E.isUndefined = nO, E.isWeakMap = rO, E.isWeakSet = oO, E.join = sP, E.kebabCase = WO, E.last = Dr, E.lastIndexOf = cP, E.lowerCase = qO, E.lowerFirst = YO, E.lt = iO, E.lte = aO, E.max = V1, E.maxBy = K1, E.mean = G1, E.meanBy = j1, E.min = W1, E.minBy = q1, E.stubArray = vp, E.stubFalse = yp, E.stubObject = O1, E.stubString = M1, E.stubTrue = D1, E.multiply = Y1, E.nth = lP, E.noConflict = S1, E.noop = mp, E.now = Nu, E.pad = JO, E.padEnd = QO, E.padStart = XO, E.parseInt = ZO, E.random = zO, E.reduce = fN, E.reduceRight = hN, E.repeat = e1, E.replace = t1, E.result = NO, E.round = J1, E.runInContext =
|
|
17590
|
+
return E.after = CN, E.ary = zw, E.assign = cO, E.assignIn = nb, E.assignInWith = Fu, E.assignWith = lO, E.at = uO, E.before = Vw, E.bind = ap, E.bindAll = g1, E.bindKey = Kw, E.castArray = ON, E.chain = $w, E.chunk = zk, E.compact = Vk, E.concat = Kk, E.cond = m1, E.conforms = v1, E.constant = hp, E.countBy = XP, E.create = dO, E.curry = Gw, E.curryRight = jw, E.debounce = Ww, E.defaults = fO, E.defaultsDeep = hO, E.defer = xN, E.delay = _N, E.difference = Gk, E.differenceBy = jk, E.differenceWith = Wk, E.drop = qk, E.dropRight = Yk, E.dropRightWhile = Jk, E.dropWhile = Qk, E.fill = Xk, E.filter = eN, E.flatMap = rN, E.flatMapDeep = oN, E.flatMapDepth = iN, E.flatten = Dw, E.flattenDeep = Zk, E.flattenDepth = eP, E.flip = TN, E.flow = w1, E.flowRight = b1, E.fromPairs = tP, E.functions = bO, E.functionsIn = CO, E.groupBy = aN, E.initial = rP, E.intersection = oP, E.intersectionBy = iP, E.intersectionWith = aP, E.invert = _O, E.invertBy = TO, E.invokeMap = cN, E.iteratee = pp, E.keyBy = lN, E.keys = mn, E.keysIn = rr, E.map = Pu, E.mapKeys = EO, E.mapValues = AO, E.matches = C1, E.matchesProperty = x1, E.memoize = Ou, E.merge = IO, E.mergeWith = rb, E.method = _1, E.methodOf = T1, E.mixin = gp, E.negate = Mu, E.nthArg = E1, E.omit = RO, E.omitBy = kO, E.once = SN, E.orderBy = uN, E.over = A1, E.overArgs = EN, E.overEvery = I1, E.overSome = R1, E.partial = sp, E.partialRight = qw, E.partition = dN, E.pick = PO, E.pickBy = ob, E.property = db, E.propertyOf = k1, E.pull = uP, E.pullAll = Fw, E.pullAllBy = dP, E.pullAllWith = fP, E.pullAt = hP, E.range = P1, E.rangeRight = N1, E.rearg = AN, E.reject = pN, E.remove = pP, E.rest = IN, E.reverse = op, E.sampleSize = mN, E.set = OO, E.setWith = MO, E.shuffle = vN, E.slice = gP, E.sortBy = bN, E.sortedUniq = xP, E.sortedUniqBy = _P, E.split = r1, E.spread = RN, E.tail = TP, E.take = SP, E.takeRight = EP, E.takeRightWhile = AP, E.takeWhile = IP, E.tap = VP, E.throttle = kN, E.thru = ku, E.toArray = Zw, E.toPairs = ib, E.toPairsIn = ab, E.toPath = F1, E.toPlainObject = tb, E.transform = DO, E.unary = PN, E.union = RP, E.unionBy = kP, E.unionWith = PP, E.uniq = NP, E.uniqBy = OP, E.uniqWith = MP, E.unset = LO, E.unzip = ip, E.unzipWith = Uw, E.update = FO, E.updateWith = UO, E.values = us, E.valuesIn = $O, E.without = DP, E.words = lb, E.wrap = NN, E.xor = LP, E.xorBy = FP, E.xorWith = UP, E.zip = $P, E.zipObject = HP, E.zipObjectDeep = BP, E.zipWith = zP, E.entries = ib, E.entriesIn = ab, E.extend = nb, E.extendWith = Fu, gp(E, E), E.add = $1, E.attempt = ub, E.camelCase = VO, E.capitalize = sb, E.ceil = H1, E.clamp = HO, E.clone = MN, E.cloneDeep = LN, E.cloneDeepWith = FN, E.cloneWith = DN, E.conformsTo = UN, E.deburr = cb, E.defaultTo = y1, E.divide = B1, E.endsWith = KO, E.eq = Kr, E.escape = GO, E.escapeRegExp = jO, E.every = ZP, E.find = tN, E.findIndex = Ow, E.findKey = pO, E.findLast = nN, E.findLastIndex = Mw, E.findLastKey = gO, E.floor = z1, E.forEach = Hw, E.forEachRight = Bw, E.forIn = mO, E.forInRight = vO, E.forOwn = yO, E.forOwnRight = wO, E.get = up, E.gt = $N, E.gte = HN, E.has = xO, E.hasIn = dp, E.head = Lw, E.identity = or, E.includes = sN, E.indexOf = nP, E.inRange = BO, E.invoke = SO, E.isArguments = fa, E.isArray = rt, E.isArrayBuffer = BN, E.isArrayLike = nr, E.isArrayLikeObject = Jt, E.isBoolean = zN, E.isBuffer = vi, E.isDate = VN, E.isElement = KN, E.isEmpty = GN, E.isEqual = jN, E.isEqualWith = WN, E.isError = cp, E.isFinite = qN, E.isFunction = Ko, E.isInteger = Yw, E.isLength = Du, E.isMap = Jw, E.isMatch = YN, E.isMatchWith = JN, E.isNaN = QN, E.isNative = XN, E.isNil = eO, E.isNull = ZN, E.isNumber = Qw, E.isObject = Kt, E.isObjectLike = qt, E.isPlainObject = Oc, E.isRegExp = lp, E.isSafeInteger = tO, E.isSet = Xw, E.isString = Lu, E.isSymbol = vr, E.isTypedArray = ls, E.isUndefined = nO, E.isWeakMap = rO, E.isWeakSet = oO, E.join = sP, E.kebabCase = WO, E.last = Dr, E.lastIndexOf = cP, E.lowerCase = qO, E.lowerFirst = YO, E.lt = iO, E.lte = aO, E.max = V1, E.maxBy = K1, E.mean = G1, E.meanBy = j1, E.min = W1, E.minBy = q1, E.stubArray = vp, E.stubFalse = yp, E.stubObject = O1, E.stubString = M1, E.stubTrue = D1, E.multiply = Y1, E.nth = lP, E.noConflict = S1, E.noop = mp, E.now = Nu, E.pad = JO, E.padEnd = QO, E.padStart = XO, E.parseInt = ZO, E.random = zO, E.reduce = fN, E.reduceRight = hN, E.repeat = e1, E.replace = t1, E.result = NO, E.round = J1, E.runInContext = z, E.sample = gN, E.size = yN, E.snakeCase = n1, E.some = wN, E.sortedIndex = mP, E.sortedIndexBy = vP, E.sortedIndexOf = yP, E.sortedLastIndex = wP, E.sortedLastIndexBy = bP, E.sortedLastIndexOf = CP, E.startCase = o1, E.startsWith = i1, E.subtract = Q1, E.sum = X1, E.sumBy = Z1, E.template = a1, E.times = L1, E.toFinite = Go, E.toInteger = it, E.toLength = eb, E.toLower = s1, E.toNumber = Lr, E.toSafeInteger = sO, E.toString = St, E.toUpper = c1, E.trim = l1, E.trimEnd = u1, E.trimStart = d1, E.truncate = f1, E.unescape = h1, E.uniqueId = U1, E.upperCase = p1, E.upperFirst = fp, E.each = Hw, E.eachRight = Bw, E.first = Lw, gp(E, function() {
|
|
17591
17591
|
var a = {};
|
|
17592
17592
|
return ho(E, function(c, d) {
|
|
17593
17593
|
Rt.call(E.prototype, d) || (a[d] = c);
|
|
@@ -30771,30 +30771,30 @@ function OI({ enabled: t, onChange: e }) {
|
|
|
30771
30771
|
}
|
|
30772
30772
|
);
|
|
30773
30773
|
}
|
|
30774
|
-
function bx({ open: t, onClose: e,
|
|
30775
|
-
const [
|
|
30774
|
+
function bx({ open: t, onClose: e, onSave: n, file: r }) {
|
|
30775
|
+
const [o, i] = pe(!!(r != null && r.isPublic));
|
|
30776
30776
|
ht(() => {
|
|
30777
|
-
|
|
30778
|
-
}, [
|
|
30779
|
-
const
|
|
30780
|
-
r
|
|
30777
|
+
i(!!(r != null && r.isPublic));
|
|
30778
|
+
}, [r == null ? void 0 : r.isPublic]);
|
|
30779
|
+
const s = async () => {
|
|
30780
|
+
n((r == null ? void 0 : r.key) || "", o), e();
|
|
30781
30781
|
};
|
|
30782
|
-
return
|
|
30782
|
+
return r ? /* @__PURE__ */ h(ir, { open: t, onOpenChange: e, children: /* @__PURE__ */ P(Kn, { className: "sm:max-w-[400px]", children: [
|
|
30783
30783
|
/* @__PURE__ */ h(Gn, { children: /* @__PURE__ */ h(jn, { children: "Chỉnh sửa quyền riêng tư" }) }),
|
|
30784
30784
|
/* @__PURE__ */ P(Xo, { children: [
|
|
30785
30785
|
"Tài liệu: ",
|
|
30786
|
-
|
|
30786
|
+
r.key
|
|
30787
30787
|
] }),
|
|
30788
30788
|
/* @__PURE__ */ P("div", { className: "flex items-center justify-between py-4", children: [
|
|
30789
30789
|
/* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
|
|
30790
|
-
|
|
30791
|
-
/* @__PURE__ */ h(xr, { children:
|
|
30790
|
+
o ? /* @__PURE__ */ h(J$, { className: "text-green-500", size: 20 }) : /* @__PURE__ */ h(Q$, { className: "text-gray-500", size: 20 }),
|
|
30791
|
+
/* @__PURE__ */ h(xr, { children: o ? "Công khai" : "Riêng tư" })
|
|
30792
30792
|
] }),
|
|
30793
|
-
/* @__PURE__ */ h(OI, { enabled:
|
|
30793
|
+
/* @__PURE__ */ h(OI, { enabled: o, onChange: () => i((l) => !l) })
|
|
30794
30794
|
] }),
|
|
30795
30795
|
/* @__PURE__ */ P(Fr, { children: [
|
|
30796
30796
|
/* @__PURE__ */ h(Ue, { variant: "outline", onClick: e, children: "Hủy" }),
|
|
30797
|
-
/* @__PURE__ */ h(Ue, { onClick:
|
|
30797
|
+
/* @__PURE__ */ h(Ue, { onClick: s, children: "Lưu thay đổi" })
|
|
30798
30798
|
] })
|
|
30799
30799
|
] }) }) : null;
|
|
30800
30800
|
}
|
|
@@ -30971,8 +30971,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
30971
30971
|
}
|
|
30972
30972
|
);
|
|
30973
30973
|
N.status === 200 && Ll(
|
|
30974
|
-
N.data.knowledgeBase.chatflows.map((
|
|
30975
|
-
...
|
|
30974
|
+
N.data.knowledgeBase.chatflows.map((V) => ({
|
|
30975
|
+
...V,
|
|
30976
30976
|
KnowledgeBaseId: N.data.knowledgeBase.knowledge_base_id
|
|
30977
30977
|
}))
|
|
30978
30978
|
);
|
|
@@ -31028,19 +31028,19 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31028
31028
|
}, [dc]);
|
|
31029
31029
|
const ph = async () => {
|
|
31030
31030
|
try {
|
|
31031
|
-
const S = await Fe.get(`${e}/api/login-sharepoint`), { loginUrl: N } = S.data,
|
|
31032
|
-
if (!
|
|
31033
|
-
|
|
31031
|
+
const S = await Fe.get(`${e}/api/login-sharepoint`), { loginUrl: N } = S.data, V = window.open(N, "SharePoint Login", "width=600,height=600");
|
|
31032
|
+
if (!V) throw new Error("Không thể mở cửa sổ pop-up");
|
|
31033
|
+
V.focus();
|
|
31034
31034
|
const fe = setInterval(() => {
|
|
31035
31035
|
try {
|
|
31036
|
-
if (
|
|
31036
|
+
if (V.closed) {
|
|
31037
31037
|
clearInterval(fe);
|
|
31038
31038
|
return;
|
|
31039
31039
|
}
|
|
31040
|
-
const we =
|
|
31040
|
+
const we = V.location.href;
|
|
31041
31041
|
if (we.includes("code=")) {
|
|
31042
31042
|
const Se = new URL(we).searchParams.get("code");
|
|
31043
|
-
Se && (zl(Se),
|
|
31043
|
+
Se && (zl(Se), V.close(), clearInterval(fe));
|
|
31044
31044
|
}
|
|
31045
31045
|
} catch (we) {
|
|
31046
31046
|
we instanceof Error && !we.message.includes("cross-origin") && console.error("SharePoint login error:", we);
|
|
@@ -31066,8 +31066,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31066
31066
|
const N = await Fe.post(`${e}/api/get-sharepoint-access-token`, {
|
|
31067
31067
|
code: S,
|
|
31068
31068
|
userId: "1"
|
|
31069
|
-
}), { accessToken:
|
|
31070
|
-
localStorage.setItem("sharepoint_access_token",
|
|
31069
|
+
}), { accessToken: V, refreshToken: fe } = N.data;
|
|
31070
|
+
localStorage.setItem("sharepoint_access_token", V), localStorage.setItem("refresh_sharepoint_access_token", fe), Zs(!0), Do(!0);
|
|
31071
31071
|
} catch (N) {
|
|
31072
31072
|
console.error("❌ Error fetching SharePoint access token:", N), J({
|
|
31073
31073
|
title: "Error",
|
|
@@ -31080,14 +31080,14 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31080
31080
|
ci(!0);
|
|
31081
31081
|
const N = (await Fe.post(`${e}/api/list-site-sharepoint`, {
|
|
31082
31082
|
userId: "1"
|
|
31083
|
-
})).data.sites.map((
|
|
31084
|
-
const fe = new URL(
|
|
31083
|
+
})).data.sites.map((V) => {
|
|
31084
|
+
const fe = new URL(V.webUrl);
|
|
31085
31085
|
return {
|
|
31086
|
-
id:
|
|
31087
|
-
name:
|
|
31088
|
-
description:
|
|
31089
|
-
hostname:
|
|
31090
|
-
sitePath:
|
|
31086
|
+
id: V.id,
|
|
31087
|
+
name: V.name,
|
|
31088
|
+
description: V.description,
|
|
31089
|
+
hostname: V.hostname || fe.hostname,
|
|
31090
|
+
sitePath: V.sitePath || fe.pathname.replace(/^\/+/, "")
|
|
31091
31091
|
};
|
|
31092
31092
|
});
|
|
31093
31093
|
console.log("data", N), ui(N), ci(!1);
|
|
@@ -31100,13 +31100,13 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31100
31100
|
}
|
|
31101
31101
|
}, vh = async (S) => {
|
|
31102
31102
|
qi(S), console.log(S), await qa("root", S.name, S.hostname || "", S.sitePath || "");
|
|
31103
|
-
}, qa = async (S, N,
|
|
31103
|
+
}, qa = async (S, N, V, fe) => {
|
|
31104
31104
|
try {
|
|
31105
31105
|
ci(!0);
|
|
31106
31106
|
const Se = (await Fe.post(`${e}/api/list-file-sharepoint`, {
|
|
31107
31107
|
folderId: S,
|
|
31108
31108
|
userId: "1",
|
|
31109
|
-
hostname:
|
|
31109
|
+
hostname: V,
|
|
31110
31110
|
sitePath: fe
|
|
31111
31111
|
})).data.files.map(
|
|
31112
31112
|
(De) => ({
|
|
@@ -31144,9 +31144,9 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31144
31144
|
}
|
|
31145
31145
|
]);
|
|
31146
31146
|
}, yh = (S) => {
|
|
31147
|
-
var
|
|
31147
|
+
var V;
|
|
31148
31148
|
Ka((fe) => fe.slice(0, S + 1));
|
|
31149
|
-
const N = (
|
|
31149
|
+
const N = (V = Va[S]) == null ? void 0 : V.id;
|
|
31150
31150
|
N && qa(
|
|
31151
31151
|
N,
|
|
31152
31152
|
"SharePoint",
|
|
@@ -31154,8 +31154,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31154
31154
|
(vt == null ? void 0 : vt.sitePath) || ""
|
|
31155
31155
|
);
|
|
31156
31156
|
}, sn = async (S, N) => {
|
|
31157
|
-
const
|
|
31158
|
-
if (!
|
|
31157
|
+
const V = localStorage.getItem("sharepoint_access_token");
|
|
31158
|
+
if (!V) {
|
|
31159
31159
|
ut.error("Không tìm thấy access token. Vui lòng đăng nhập lại.");
|
|
31160
31160
|
return;
|
|
31161
31161
|
}
|
|
@@ -31177,7 +31177,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31177
31177
|
De.isFolder ? we.folders.push({ id: De.id, name: De.name }) : we.files.push({ id: De.id, name: De.name });
|
|
31178
31178
|
});
|
|
31179
31179
|
const Se = await Fe.post(`${e}/api/sync-sharepoint-to-s3`, we, {
|
|
31180
|
-
headers: { Authorization: `Bearer ${
|
|
31180
|
+
headers: { Authorization: `Bearer ${V}` }
|
|
31181
31181
|
});
|
|
31182
31182
|
gn(), ut.update(fe, {
|
|
31183
31183
|
render: `Đồng bộ thành công! Đã tải lên ${Se.data.uploadedKeys.length} file.`,
|
|
@@ -31229,8 +31229,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31229
31229
|
};
|
|
31230
31230
|
function Qi(S) {
|
|
31231
31231
|
if (S === 0) return "0 B";
|
|
31232
|
-
const N = 1024,
|
|
31233
|
-
return parseFloat((S / Math.pow(N, fe)).toFixed(1)) + " " +
|
|
31232
|
+
const N = 1024, V = ["B", "KB", "MB", "GB", "TB"], fe = Math.floor(Math.log(S) / Math.log(N));
|
|
31233
|
+
return parseFloat((S / Math.pow(N, fe)).toFixed(1)) + " " + V[fe];
|
|
31234
31234
|
}
|
|
31235
31235
|
function Jn(S) {
|
|
31236
31236
|
const N = new Date(S);
|
|
@@ -31238,19 +31238,19 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31238
31238
|
}
|
|
31239
31239
|
const Kl = async () => {
|
|
31240
31240
|
try {
|
|
31241
|
-
const S = await Fe.get(`${e}/api/login-one-drive`), { loginUrl: N } = S.data,
|
|
31242
|
-
if (!
|
|
31243
|
-
|
|
31241
|
+
const S = await Fe.get(`${e}/api/login-one-drive`), { loginUrl: N } = S.data, V = window.open(N, "OneDrive Login", "width=600,height=600");
|
|
31242
|
+
if (!V) throw new Error("Không thể mở cửa sổ pop-up");
|
|
31243
|
+
V.focus();
|
|
31244
31244
|
const fe = setInterval(() => {
|
|
31245
31245
|
try {
|
|
31246
|
-
if (
|
|
31246
|
+
if (V.closed) {
|
|
31247
31247
|
clearInterval(fe);
|
|
31248
31248
|
return;
|
|
31249
31249
|
}
|
|
31250
|
-
const we =
|
|
31250
|
+
const we = V.location.href;
|
|
31251
31251
|
if (we.includes("code=")) {
|
|
31252
31252
|
const Se = new URL(we).searchParams.get("code");
|
|
31253
|
-
Se && (jl(Se),
|
|
31253
|
+
Se && (jl(Se), V.close(), clearInterval(fe));
|
|
31254
31254
|
}
|
|
31255
31255
|
} catch (we) {
|
|
31256
31256
|
we instanceof Error && !we.message.includes("cross-origin") && console.error("OneDrive login error:", we);
|
|
@@ -31271,10 +31271,10 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31271
31271
|
}
|
|
31272
31272
|
}, jl = async (S) => {
|
|
31273
31273
|
try {
|
|
31274
|
-
const N = Ve == null ? void 0 : Ve.id,
|
|
31274
|
+
const N = Ve == null ? void 0 : Ve.id, V = await Fe.post(`${e}/api/get-one-drive-access-token`, {
|
|
31275
31275
|
authorizationCode: S,
|
|
31276
31276
|
userId: N
|
|
31277
|
-
}), { accessToken: fe, refreshToken: we } =
|
|
31277
|
+
}), { accessToken: fe, refreshToken: we } = V.data;
|
|
31278
31278
|
localStorage.setItem("onedrive_access_token", fe), localStorage.setItem("onedrive_refresh_access_token", we), Zs(!0), Ha(!0), await Xi("root", "One Drive");
|
|
31279
31279
|
} catch (N) {
|
|
31280
31280
|
console.error("❌ Lỗi khi lấy Access Token:", N);
|
|
@@ -31282,9 +31282,9 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31282
31282
|
}, Xi = async (S, N) => {
|
|
31283
31283
|
try {
|
|
31284
31284
|
ji(!0);
|
|
31285
|
-
const
|
|
31285
|
+
const V = Ve == null ? void 0 : Ve.id, we = (await Fe.post(`${e}/api/list-file-one-drive`, {
|
|
31286
31286
|
folderId: S,
|
|
31287
|
-
userId:
|
|
31287
|
+
userId: V
|
|
31288
31288
|
})).data.map(
|
|
31289
31289
|
(Se) => ({
|
|
31290
31290
|
id: Se.id,
|
|
@@ -31297,16 +31297,16 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31297
31297
|
})
|
|
31298
31298
|
);
|
|
31299
31299
|
tc(we.filter((Se) => Se.isFolder)), $l(we.filter((Se) => !Se.isFolder)), Ha(!0), rc((Se) => Se.some((De) => De.id === S) ? Se : [...Se, { id: S, name: N === "root" ? "OneDrive" : N }]), ji(!1);
|
|
31300
|
-
} catch (
|
|
31301
|
-
console.error("Lỗi lấy danh sách file:",
|
|
31300
|
+
} catch (V) {
|
|
31301
|
+
console.error("Lỗi lấy danh sách file:", V), ji(!1);
|
|
31302
31302
|
}
|
|
31303
31303
|
}, Wl = (S) => {
|
|
31304
31304
|
if (S === Ba.length - 1) return;
|
|
31305
31305
|
const N = Ba[S];
|
|
31306
31306
|
N && (rc(Ba.slice(0, S + 1)), Xi(N.id, N.name));
|
|
31307
31307
|
}, ql = async (S, N) => {
|
|
31308
|
-
const
|
|
31309
|
-
if (!
|
|
31308
|
+
const V = localStorage.getItem("onedrive_access_token"), fe = localStorage.getItem("onedrive_refresh_access_token");
|
|
31309
|
+
if (!V) {
|
|
31310
31310
|
ut.error("Không tìm thấy access token. Vui lòng đăng nhập lại.");
|
|
31311
31311
|
return;
|
|
31312
31312
|
}
|
|
@@ -31326,7 +31326,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31326
31326
|
Tt.isFolder ? Se.folders.push({ id: Tt.id, name: Tt.name }) : Se.files.push({ id: Tt.id, name: Tt.name });
|
|
31327
31327
|
});
|
|
31328
31328
|
const De = await Fe.post(`${e}/api/sync-one-drive-to-s3`, Se, {
|
|
31329
|
-
headers: { Authorization: `Bearer ${
|
|
31329
|
+
headers: { Authorization: `Bearer ${V}` }
|
|
31330
31330
|
});
|
|
31331
31331
|
gn(), ut.update(we, {
|
|
31332
31332
|
render: `Đồng bộ thành công! Đã tải lên ${De.data.uploadedKeys.length} file.`,
|
|
@@ -31360,8 +31360,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31360
31360
|
window.gapi.load("picker", () => bh(S));
|
|
31361
31361
|
}, document.body.appendChild(N);
|
|
31362
31362
|
}, bh = (S) => {
|
|
31363
|
-
const N = new window.google.picker.DocsView(window.google.picker.ViewId.DOCS).setIncludeFolders(!0).setSelectFolderEnabled(!0).setOwnedByMe(!1),
|
|
31364
|
-
new window.google.picker.PickerBuilder().setDeveloperKey(yG).setOAuthToken(S).enableFeature(window.google.picker.Feature.MULTISELECT_ENABLED).setLocale("vi").addView(N).addView(
|
|
31363
|
+
const N = new window.google.picker.DocsView(window.google.picker.ViewId.DOCS).setIncludeFolders(!0).setSelectFolderEnabled(!0).setOwnedByMe(!1), V = new window.google.picker.DocsView(window.google.picker.ViewId.DRIVE).setIncludeFolders(!0).setSelectFolderEnabled(!0);
|
|
31364
|
+
new window.google.picker.PickerBuilder().setDeveloperKey(yG).setOAuthToken(S).enableFeature(window.google.picker.Feature.MULTISELECT_ENABLED).setLocale("vi").addView(N).addView(V).setCallback(async (we) => {
|
|
31365
31365
|
if (we.action === window.google.picker.Action.PICKED) {
|
|
31366
31366
|
const Se = we.docs.map((De) => ({
|
|
31367
31367
|
id: De.id,
|
|
@@ -31372,8 +31372,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31372
31372
|
}
|
|
31373
31373
|
}).build().setVisible(!0);
|
|
31374
31374
|
}, Yl = async (S, N = "") => {
|
|
31375
|
-
const
|
|
31376
|
-
if (!
|
|
31375
|
+
const V = localStorage.getItem("google_access_token");
|
|
31376
|
+
if (!V) {
|
|
31377
31377
|
console.error("❌ Không tìm thấy access token. Vui lòng đăng nhập lại."), ut.error("Không tìm thấy access token. Vui lòng đăng nhập lại.", {
|
|
31378
31378
|
position: "bottom-right"
|
|
31379
31379
|
});
|
|
@@ -31394,7 +31394,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31394
31394
|
De.mimeType === "application/vnd.google-apps.folder" ? we.folders.push({ id: De.id, name: De.name }) : we.files.push({ id: De.id, name: De.name });
|
|
31395
31395
|
});
|
|
31396
31396
|
const Se = await Fe.post(`${e}/api/sync-drive-to-s3`, we, {
|
|
31397
|
-
headers: { Authorization: `Bearer ${
|
|
31397
|
+
headers: { Authorization: `Bearer ${V}` }
|
|
31398
31398
|
});
|
|
31399
31399
|
br.current = !0, gn(), ut.update(fe, {
|
|
31400
31400
|
render: `Đồng bộ thành công! Đã tải lên ${Se.data.uploadedKeys.length} file.`,
|
|
@@ -31416,8 +31416,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31416
31416
|
ht(() => {
|
|
31417
31417
|
const S = (N) => {
|
|
31418
31418
|
if (N.data.action === "logout") {
|
|
31419
|
-
const
|
|
31420
|
-
|
|
31419
|
+
const V = document.createElement("iframe");
|
|
31420
|
+
V.style.display = "none", V.src = "https://accounts.google.com/Logout", document.body.appendChild(V), setTimeout(() => document.body.removeChild(V), 2e3);
|
|
31421
31421
|
}
|
|
31422
31422
|
};
|
|
31423
31423
|
return window.addEventListener("message", S), () => window.removeEventListener("message", S);
|
|
@@ -31439,27 +31439,27 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31439
31439
|
[Br, v, pr]
|
|
31440
31440
|
), Fo = _r(() => {
|
|
31441
31441
|
const S = {};
|
|
31442
|
-
return gr.forEach((N,
|
|
31443
|
-
y.has(N.key) && (S[
|
|
31442
|
+
return gr.forEach((N, V) => {
|
|
31443
|
+
y.has(N.key) && (S[V] = !0);
|
|
31444
31444
|
}), S;
|
|
31445
31445
|
}, [y, gr]), $t = (S) => {
|
|
31446
31446
|
const N = bd(pr, S);
|
|
31447
31447
|
if (N.length === 0)
|
|
31448
31448
|
return y.has(S) ? "all" : "none";
|
|
31449
|
-
const
|
|
31450
|
-
return
|
|
31449
|
+
const V = N.filter((fe) => y.has(fe)).length;
|
|
31450
|
+
return V === 0 ? "none" : V === N.length ? "all" : "partial";
|
|
31451
31451
|
}, En = (S, N = !0) => {
|
|
31452
31452
|
if (v !== S) {
|
|
31453
31453
|
if (u && !v)
|
|
31454
31454
|
Hi(!0), A(S + u), C(S + u);
|
|
31455
31455
|
else if (Hi(!0), A(S), C(S), N && !o) {
|
|
31456
|
-
const
|
|
31456
|
+
const V = window.location.pathname === "/" ? "" : window.location.pathname, fe = S ? `${window.location.origin}${V}?prefix=${encodeURIComponent(S)}` : `${window.location.origin}${V}`;
|
|
31457
31457
|
window.history.pushState({ path: fe }, "", fe);
|
|
31458
31458
|
}
|
|
31459
31459
|
}
|
|
31460
31460
|
}, pc = (S) => {
|
|
31461
|
-
const N = S.lastIndexOf("/"),
|
|
31462
|
-
|
|
31461
|
+
const N = S.lastIndexOf("/"), V = N > 0 ? S.substring(0, N + 1) : "";
|
|
31462
|
+
V ? (En(V), setTimeout(() => {
|
|
31463
31463
|
x(/* @__PURE__ */ new Set([S]));
|
|
31464
31464
|
}, 500)) : x(/* @__PURE__ */ new Set([S]));
|
|
31465
31465
|
};
|
|
@@ -31467,7 +31467,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31467
31467
|
Hr && (br.current = !0, gn().finally(() => Hi(!1)));
|
|
31468
31468
|
}, [Hr]);
|
|
31469
31469
|
const Ch = async (S, N) => {
|
|
31470
|
-
var
|
|
31470
|
+
var V, fe;
|
|
31471
31471
|
K(!0);
|
|
31472
31472
|
try {
|
|
31473
31473
|
if (gr.some(
|
|
@@ -31491,14 +31491,14 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31491
31491
|
br.current = !0, await gn(), J({ title: "Đã tạo thư mục", description: `Đã tạo thành công thư mục "${S}"` }), L(""), O(!1);
|
|
31492
31492
|
} catch (we) {
|
|
31493
31493
|
console.error("Error creating folder:", we);
|
|
31494
|
-
const Se = ((fe = (
|
|
31494
|
+
const Se = ((fe = (V = we == null ? void 0 : we.response) == null ? void 0 : V.data) == null ? void 0 : fe.error) || "Không thể tạo thư mục";
|
|
31495
31495
|
J({ title: "Lỗi", description: Se, variant: "destructive" });
|
|
31496
31496
|
} finally {
|
|
31497
31497
|
K(!1);
|
|
31498
31498
|
}
|
|
31499
|
-
}, Zi = async (S, N,
|
|
31499
|
+
}, Zi = async (S, N, V) => {
|
|
31500
31500
|
var fe, we, Se, De, Tt, kr, Zn, na, tu;
|
|
31501
|
-
ie(
|
|
31501
|
+
ie(V), Yt(!0);
|
|
31502
31502
|
try {
|
|
31503
31503
|
if (Array.from(S).reduce((Cn, oa) => Cn + oa.size, 0) >= 100 * 1024 * 1024) {
|
|
31504
31504
|
J({
|
|
@@ -31526,11 +31526,11 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31526
31526
|
creatorId: Ve.id,
|
|
31527
31527
|
DataSource: "Tệp tải lên"
|
|
31528
31528
|
})
|
|
31529
|
-
),
|
|
31529
|
+
), V === "folder" && S[0]) {
|
|
31530
31530
|
const Cn = S[0].webkitRelativePath.split("/")[0];
|
|
31531
31531
|
Cn && er.append("folderName", Cn);
|
|
31532
31532
|
}
|
|
31533
|
-
er.append("prefix", N), Array.from(S).forEach((Cn) =>
|
|
31533
|
+
er.append("prefix", N), Array.from(S).forEach((Cn) => V === "folder" ? er.append("files", Cn, Cn.webkitRelativePath) : er.append("files", Cn)), br.current = !0;
|
|
31534
31534
|
const xt = await Fe.post(`${e}/api/check-files-existed`, er, {
|
|
31535
31535
|
headers: { "Content-Type": "multipart/form-data" }
|
|
31536
31536
|
});
|
|
@@ -31560,7 +31560,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31560
31560
|
var S, N;
|
|
31561
31561
|
try {
|
|
31562
31562
|
Yt(!0);
|
|
31563
|
-
const
|
|
31563
|
+
const V = new FormData();
|
|
31564
31564
|
if (uo) {
|
|
31565
31565
|
ie(zi ? "folder" : "files"), Vi(!1);
|
|
31566
31566
|
let fe = localStorage.getItem("dataLogin"), we;
|
|
@@ -31571,24 +31571,24 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31571
31571
|
}
|
|
31572
31572
|
if (zi && uo[0]) {
|
|
31573
31573
|
const Se = uo[0].webkitRelativePath.split("/")[0];
|
|
31574
|
-
Se &&
|
|
31574
|
+
Se && V.append("folderName", Se);
|
|
31575
31575
|
}
|
|
31576
|
-
|
|
31576
|
+
V.append("prefix", v), Array.from(uo).forEach((Se) => zi && uo[0] ? V.append("files", Se, Se.webkitRelativePath) : V.append("files", Se)), we != null && we.id && V.append(
|
|
31577
31577
|
"metadata",
|
|
31578
31578
|
JSON.stringify({
|
|
31579
31579
|
creator: we.username,
|
|
31580
31580
|
creatorId: we.id,
|
|
31581
31581
|
DataSource: "Tệp tải lên"
|
|
31582
31582
|
})
|
|
31583
|
-
), await Fe.post(`${e}/api/upload`,
|
|
31583
|
+
), await Fe.post(`${e}/api/upload`, V, {
|
|
31584
31584
|
headers: { "Content-Type": "multipart/form-data" },
|
|
31585
31585
|
timeout: 0
|
|
31586
31586
|
// no timeout (infinite)
|
|
31587
31587
|
}), w(""), A(v), br.current = !0;
|
|
31588
31588
|
}
|
|
31589
|
-
} catch (
|
|
31590
|
-
console.error("Lỗi tải lên:",
|
|
31591
|
-
const fe = ((N = (S =
|
|
31589
|
+
} catch (V) {
|
|
31590
|
+
console.error("Lỗi tải lên:", V);
|
|
31591
|
+
const fe = ((N = (S = V == null ? void 0 : V.response) == null ? void 0 : S.data) == null ? void 0 : N.error) || "Không thể tải lên tập tin";
|
|
31592
31592
|
J({ title: "Lỗi", description: fe, variant: "destructive" });
|
|
31593
31593
|
} finally {
|
|
31594
31594
|
setTimeout(async () => {
|
|
@@ -31602,21 +31602,21 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31602
31602
|
const fe = new Set(y);
|
|
31603
31603
|
fe.delete(S.key), x(fe);
|
|
31604
31604
|
}
|
|
31605
|
-
const
|
|
31606
|
-
A(
|
|
31607
|
-
} catch (
|
|
31608
|
-
console.error("Error deleting file:",
|
|
31605
|
+
const V = ((N = S.key) == null ? void 0 : N.replace(/^(.*?)(\/.*)?$/, (fe, we, Se) => !Se || Se === "/" ? "" : we + "/")) || "";
|
|
31606
|
+
A(V), br.current = !0, J({ title: "Đã xóa tập tin", description: `Đã xóa thành công "${S.name}"` }), j(null), await zr("delete");
|
|
31607
|
+
} catch (V) {
|
|
31608
|
+
console.error("Error deleting file:", V), J({ title: "Lỗi", description: "Không thể xóa tập tin", variant: "destructive" });
|
|
31609
31609
|
} finally {
|
|
31610
31610
|
$r(!1), await gn();
|
|
31611
31611
|
}
|
|
31612
31612
|
}, Ja = (S) => {
|
|
31613
|
-
const N = new Set(y),
|
|
31613
|
+
const N = new Set(y), V = typeof S == "function" ? S(Fo) : S;
|
|
31614
31614
|
new Set(Object.keys(Fo).map(Number)).forEach((we) => {
|
|
31615
31615
|
const Se = gr[we];
|
|
31616
|
-
Se && (
|
|
31616
|
+
Se && (V[we] || (N.delete(Se.key), Se.isFolder && bd(pr, Se.key).forEach(
|
|
31617
31617
|
(De) => N.delete(De)
|
|
31618
31618
|
)));
|
|
31619
|
-
}), Object.entries(
|
|
31619
|
+
}), Object.entries(V).forEach(([we, Se]) => {
|
|
31620
31620
|
const De = parseInt(we), Tt = gr[De];
|
|
31621
31621
|
Tt && Se && (N.add(Tt.key), Tt.isFolder && bd(pr, Tt.key).forEach((kr) => N.add(kr)));
|
|
31622
31622
|
}), x(N);
|
|
@@ -31624,10 +31624,10 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31624
31624
|
var S;
|
|
31625
31625
|
W(!0);
|
|
31626
31626
|
try {
|
|
31627
|
-
const N = Array.from(y),
|
|
31627
|
+
const N = Array.from(y), V = N.map(
|
|
31628
31628
|
(we) => Object.values(pr).flat().find((Se) => Se.key === we)
|
|
31629
31629
|
).filter((we) => we !== void 0);
|
|
31630
|
-
if (
|
|
31630
|
+
if (V.length === 0) {
|
|
31631
31631
|
J({
|
|
31632
31632
|
title: "Lỗi",
|
|
31633
31633
|
description: "Không có tập tin nào được chọn để xóa",
|
|
@@ -31636,10 +31636,10 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31636
31636
|
return;
|
|
31637
31637
|
}
|
|
31638
31638
|
await Fe.delete(`${e}/api/files`, { data: { paths: N } });
|
|
31639
|
-
const fe = ((S =
|
|
31639
|
+
const fe = ((S = V[0]) == null ? void 0 : S.key.replace(/^(.*?)(\/.*)?$/, (we, Se, De) => !De || De === "/" ? "" : Se + "/")) || "";
|
|
31640
31640
|
A(fe), br.current = !0, gn(), J({
|
|
31641
31641
|
title: "Đã xóa tập tin",
|
|
31642
|
-
description: `Đã xóa thành công ${
|
|
31642
|
+
description: `Đã xóa thành công ${V.length} mục`
|
|
31643
31643
|
}), q(!1), x(/* @__PURE__ */ new Set()), await zr("bulk-delete");
|
|
31644
31644
|
} catch (N) {
|
|
31645
31645
|
console.error("Error deleting files:", N), J({
|
|
@@ -31661,16 +31661,16 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31661
31661
|
}
|
|
31662
31662
|
Pe(!0);
|
|
31663
31663
|
try {
|
|
31664
|
-
const
|
|
31664
|
+
const V = S.key;
|
|
31665
31665
|
let fe;
|
|
31666
|
-
S.isFolder ? fe =
|
|
31666
|
+
S.isFolder ? fe = V.split("/").slice(0, -2).join("/") + "/" : fe = V.substring(0, V.lastIndexOf("/") + 1);
|
|
31667
31667
|
const we = fe + N + (S.isFolder ? "/" : "");
|
|
31668
|
-
await Fe.post(`${e}/api/rename`, { oldPath:
|
|
31668
|
+
await Fe.post(`${e}/api/rename`, { oldPath: V, newPath: we }), br.current = !0, await gn(), J({
|
|
31669
31669
|
title: "Đã đổi tên",
|
|
31670
31670
|
description: `Đã đổi tên thành công "${S.name}" thành "${N}"`
|
|
31671
31671
|
}), te(null), B(""), Ne(null), await zr("rename");
|
|
31672
|
-
} catch (
|
|
31673
|
-
console.error("Error renaming item:",
|
|
31672
|
+
} catch (V) {
|
|
31673
|
+
console.error("Error renaming item:", V), J({ title: "Lỗi", description: "Không thể đổi tên", variant: "destructive" });
|
|
31674
31674
|
} finally {
|
|
31675
31675
|
Pe(!1);
|
|
31676
31676
|
}
|
|
@@ -31681,10 +31681,10 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31681
31681
|
`${e}/api/download`,
|
|
31682
31682
|
{ paths: S },
|
|
31683
31683
|
{ responseType: "blob" }
|
|
31684
|
-
),
|
|
31685
|
-
fe.href =
|
|
31684
|
+
), V = window.URL.createObjectURL(N.data), fe = document.createElement("a");
|
|
31685
|
+
fe.href = V;
|
|
31686
31686
|
const we = N.headers["Content-Disposition"] || N.headers["content-disposition"], Se = we == null ? void 0 : we.match(/filename="(.+)"/), De = Se ? decodeURIComponent(Se[1]) : "download.zip";
|
|
31687
|
-
fe.setAttribute("download", De), document.body.appendChild(fe), fe.click(), document.body.removeChild(fe), window.URL.revokeObjectURL(
|
|
31687
|
+
fe.setAttribute("download", De), document.body.appendChild(fe), fe.click(), document.body.removeChild(fe), window.URL.revokeObjectURL(V), J({
|
|
31688
31688
|
title: "Bắt đầu tải xuống",
|
|
31689
31689
|
description: `Đã bắt đầu tải xuống ${S.length} mục${S.length > 1, ""}`
|
|
31690
31690
|
});
|
|
@@ -31692,12 +31692,12 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31692
31692
|
console.error("Error downloading files:", N), J({ title: "Lỗi", description: "Không thể tải xuống tập tin", variant: "destructive" });
|
|
31693
31693
|
} finally {
|
|
31694
31694
|
je((N) => {
|
|
31695
|
-
const
|
|
31696
|
-
return S.forEach((fe) =>
|
|
31695
|
+
const V = new Set(N);
|
|
31696
|
+
return S.forEach((fe) => V.delete(fe)), V;
|
|
31697
31697
|
});
|
|
31698
31698
|
}
|
|
31699
31699
|
}, gc = async (S, N) => {
|
|
31700
|
-
var
|
|
31700
|
+
var V;
|
|
31701
31701
|
try {
|
|
31702
31702
|
const fe = await Fe.post(`${e}/document-permission/public`, {
|
|
31703
31703
|
path: S,
|
|
@@ -31706,31 +31706,31 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31706
31706
|
});
|
|
31707
31707
|
J({
|
|
31708
31708
|
title: "Chỉnh sửa quyền riêng tư thành công",
|
|
31709
|
-
description: `Trạng thái ${S} đã được chuyển thành ${(
|
|
31709
|
+
description: `Trạng thái ${S} đã được chuyển thành ${(V = fe.data) != null && V.isPublic ? "công khai" : "riêng tư"}.`
|
|
31710
31710
|
}), await gn();
|
|
31711
31711
|
} catch (fe) {
|
|
31712
31712
|
console.log("error", fe);
|
|
31713
31713
|
} finally {
|
|
31714
31714
|
}
|
|
31715
31715
|
}, mc = v ? v.replace(n, "").split("/").filter(Boolean) : [], Xl = () => {
|
|
31716
|
-
let S = Array.from(y).map((
|
|
31717
|
-
S.length > 1 && (S = S.filter((
|
|
31718
|
-
const N = (
|
|
31716
|
+
let S = Array.from(y).map((V) => ({ key: V }));
|
|
31717
|
+
S.length > 1 && (S = S.filter((V) => V.key !== n));
|
|
31718
|
+
const N = (V) => Gd.findIndex(
|
|
31719
31719
|
S,
|
|
31720
|
-
(fe) => !fe.key.endsWith("/") && fe.key.startsWith(
|
|
31720
|
+
(fe) => !fe.key.endsWith("/") && fe.key.startsWith(V)
|
|
31721
31721
|
) !== -1;
|
|
31722
|
-
return S = S.filter((
|
|
31722
|
+
return S = S.filter((V) => V.key.endsWith("/") ? !N(V.key) : !0), S;
|
|
31723
31723
|
}, Xa = _r(() => {
|
|
31724
31724
|
const S = [
|
|
31725
31725
|
...(Ve == null ? void 0 : Ve.role) !== "MASTER_ADMIN" && (Ve == null ? void 0 : Ve.role) !== "SITE_ADMIN" && (v === "" || v === "/") ? [] : [
|
|
31726
31726
|
{
|
|
31727
31727
|
id: "select",
|
|
31728
31728
|
header: () => {
|
|
31729
|
-
const N = xG(pr, v),
|
|
31729
|
+
const N = xG(pr, v), V = N.length > 0 && N.every((we) => y.has(we)), fe = N.some((we) => y.has(we));
|
|
31730
31730
|
return /* @__PURE__ */ h(
|
|
31731
31731
|
hl,
|
|
31732
31732
|
{
|
|
31733
|
-
checked:
|
|
31733
|
+
checked: V ? !0 : fe ? "indeterminate" : !1,
|
|
31734
31734
|
onCheckedChange: (we) => {
|
|
31735
31735
|
if (we) {
|
|
31736
31736
|
const Se = gr.reduce(
|
|
@@ -31751,11 +31751,11 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31751
31751
|
);
|
|
31752
31752
|
},
|
|
31753
31753
|
cell: ({ row: N }) => {
|
|
31754
|
-
const
|
|
31755
|
-
let we =
|
|
31756
|
-
if (we === "none" &&
|
|
31754
|
+
const V = N.original;
|
|
31755
|
+
let we = V.isFolder ? $t(V.key) : y.has(V.key) ? "all" : "none";
|
|
31756
|
+
if (we === "none" && V.key.endsWith("/")) {
|
|
31757
31757
|
for (const Se of Array.from(y))
|
|
31758
|
-
if (Se.startsWith(
|
|
31758
|
+
if (Se.startsWith(V.key)) {
|
|
31759
31759
|
we = "all";
|
|
31760
31760
|
break;
|
|
31761
31761
|
}
|
|
@@ -31794,19 +31794,19 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31794
31794
|
),
|
|
31795
31795
|
accessorKey: "name",
|
|
31796
31796
|
cell: ({ row: N }) => {
|
|
31797
|
-
const
|
|
31797
|
+
const V = N.original, fe = V.key.substring(0, V.key.lastIndexOf("/")) || "/", we = g.trim() !== "" && fe !== v, Se = fe.split("/").filter(Boolean);
|
|
31798
31798
|
return /* @__PURE__ */ P("div", { className: "flex flex-col group", children: [
|
|
31799
31799
|
/* @__PURE__ */ P("div", { className: "flex items-center", children: [
|
|
31800
31800
|
/* @__PURE__ */ P(
|
|
31801
31801
|
"div",
|
|
31802
31802
|
{
|
|
31803
|
-
className: `flex items-center gap-2 ${
|
|
31803
|
+
className: `flex items-center gap-2 ${V.isFolder ? "cursor-pointer hover:text-blue-600" : ""}`,
|
|
31804
31804
|
onClick: () => {
|
|
31805
|
-
|
|
31805
|
+
V.isFolder && En(V.key);
|
|
31806
31806
|
},
|
|
31807
31807
|
children: [
|
|
31808
|
-
|
|
31809
|
-
|
|
31808
|
+
V.isFolder ? /* @__PURE__ */ h(Dc, { className: "h-5 w-5 text-blue-500" }) : null,
|
|
31809
|
+
V.name
|
|
31810
31810
|
]
|
|
31811
31811
|
}
|
|
31812
31812
|
),
|
|
@@ -31815,9 +31815,9 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31815
31815
|
{
|
|
31816
31816
|
className: "ml-2 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
31817
31817
|
onClick: (De) => {
|
|
31818
|
-
De.stopPropagation(), navigator.clipboard.writeText(
|
|
31818
|
+
De.stopPropagation(), navigator.clipboard.writeText(V.key), J({
|
|
31819
31819
|
title: "Copied to clipboard",
|
|
31820
|
-
description: `Path: ${
|
|
31820
|
+
description: `Path: ${V.key}`,
|
|
31821
31821
|
duration: 2e3
|
|
31822
31822
|
});
|
|
31823
31823
|
},
|
|
@@ -31903,7 +31903,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31903
31903
|
children: N.original.isPublic ? "Công khai" : "Riêng tư"
|
|
31904
31904
|
}
|
|
31905
31905
|
),
|
|
31906
|
-
/* @__PURE__ */ h(bx, { file: Gi, open: !!Gi, onClose: () => $a(null),
|
|
31906
|
+
/* @__PURE__ */ h(bx, { file: Gi, open: !!Gi, onClose: () => $a(null), onSave: gc })
|
|
31907
31907
|
] })
|
|
31908
31908
|
] })
|
|
31909
31909
|
}) : S.push(
|
|
@@ -31921,9 +31921,9 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31921
31921
|
}
|
|
31922
31922
|
),
|
|
31923
31923
|
accessorKey: "size",
|
|
31924
|
-
cell: ({ getValue: N, row:
|
|
31924
|
+
cell: ({ getValue: N, row: V }) => {
|
|
31925
31925
|
const fe = N();
|
|
31926
|
-
return /* @__PURE__ */ h("span", { children:
|
|
31926
|
+
return /* @__PURE__ */ h("span", { children: V.original.isFolder ? "-" : Qi(fe) });
|
|
31927
31927
|
}
|
|
31928
31928
|
},
|
|
31929
31929
|
{
|
|
@@ -31942,8 +31942,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
31942
31942
|
),
|
|
31943
31943
|
accessorKey: "lastModified",
|
|
31944
31944
|
cell: ({ row: N }) => {
|
|
31945
|
-
const
|
|
31946
|
-
return /* @__PURE__ */ h("div", { className: "w-full flex-row justify-end items-center text-right", children: /* @__PURE__ */ h("span", { children:
|
|
31945
|
+
const V = N.original.lastModified;
|
|
31946
|
+
return /* @__PURE__ */ h("div", { className: "w-full flex-row justify-end items-center text-right", children: /* @__PURE__ */ h("span", { children: V && pC(V).isValid() ? pC(V).format("DD/MM/YYYY HH:mm") : "-" }) });
|
|
31947
31947
|
},
|
|
31948
31948
|
size: 200
|
|
31949
31949
|
},
|
|
@@ -32057,13 +32057,11 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32057
32057
|
"span",
|
|
32058
32058
|
{
|
|
32059
32059
|
className: `inline-flex items-center gap-1 rounded-full ${N.original.isPublic ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"} px-3 py-1 text-sm font-medium cursor-pointer`,
|
|
32060
|
-
onClick: () =>
|
|
32061
|
-
console.log("calll"), console.log(N.original), $a(N.original);
|
|
32062
|
-
},
|
|
32060
|
+
onClick: () => $a(N.original),
|
|
32063
32061
|
children: N.original.isPublic ? "Công khai" : "Riêng tư"
|
|
32064
32062
|
}
|
|
32065
32063
|
),
|
|
32066
|
-
/* @__PURE__ */ h(bx, { file: Gi, open: !!Gi, onClose: () => $a(null),
|
|
32064
|
+
/* @__PURE__ */ h(bx, { file: Gi, open: !!Gi, onClose: () => $a(null), onSave: gc })
|
|
32067
32065
|
] })
|
|
32068
32066
|
] })
|
|
32069
32067
|
}
|
|
@@ -32078,7 +32076,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32078
32076
|
getCoreRowModel: BS(),
|
|
32079
32077
|
getSortedRowModel: F$()
|
|
32080
32078
|
}), vc = async (S) => {
|
|
32081
|
-
var N,
|
|
32079
|
+
var N, V;
|
|
32082
32080
|
It(!0);
|
|
32083
32081
|
try {
|
|
32084
32082
|
if (ha(S)) {
|
|
@@ -32090,7 +32088,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32090
32088
|
try {
|
|
32091
32089
|
const fe = await Fe.get(`${e}/api/read-json`, {
|
|
32092
32090
|
params: { path: S.key + ".metadata.json" }
|
|
32093
|
-
}), we = ((
|
|
32091
|
+
}), we = ((V = (N = fe == null ? void 0 : fe.data) == null ? void 0 : N.content) == null ? void 0 : V.metadataAttributes) || null;
|
|
32094
32092
|
return Ne({ fullPath: $ == null ? void 0 : $.key, ...we });
|
|
32095
32093
|
} catch {
|
|
32096
32094
|
return Ne("Lỗi phân tích siêu dữ liệu");
|
|
@@ -32111,8 +32109,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32111
32109
|
title: "Đã lưu tập tin",
|
|
32112
32110
|
description: "Nội dung tập tin đã được cập nhật thành công"
|
|
32113
32111
|
}), br.current = !0, await gn(), te(null), Ct(""), Y("rename"), await zr("edit-content");
|
|
32114
|
-
} catch (
|
|
32115
|
-
console.error("Error saving file content:",
|
|
32112
|
+
} catch (V) {
|
|
32113
|
+
console.error("Error saving file content:", V), J({
|
|
32116
32114
|
title: "Lỗi",
|
|
32117
32115
|
description: "Không thể lưu nội dung tập tin",
|
|
32118
32116
|
variant: "destructive"
|
|
@@ -32146,7 +32144,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32146
32144
|
Te && !Te.isFolder && vc(Te);
|
|
32147
32145
|
}, [Te]);
|
|
32148
32146
|
const Za = async (S, N) => {
|
|
32149
|
-
var
|
|
32147
|
+
var V;
|
|
32150
32148
|
if (Qe) {
|
|
32151
32149
|
J({
|
|
32152
32150
|
title: "Đang thu thập website",
|
|
@@ -32186,7 +32184,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32186
32184
|
url: S,
|
|
32187
32185
|
limit: N,
|
|
32188
32186
|
prefix: v,
|
|
32189
|
-
taskId: ((
|
|
32187
|
+
taskId: ((V = fe.task) == null ? void 0 : V.id) || ""
|
|
32190
32188
|
});
|
|
32191
32189
|
const we = localStorage.getItem(Cx), Se = we ? JSON.parse(we) : [];
|
|
32192
32190
|
Se.some((De) => De.id === fe.id) || (Se.unshift({
|
|
@@ -32279,7 +32277,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32279
32277
|
}, Zl = () => {
|
|
32280
32278
|
const S = Array.from(y);
|
|
32281
32279
|
let N;
|
|
32282
|
-
return v ? N = S.filter((
|
|
32280
|
+
return v ? N = S.filter((V) => V.startsWith(v) && V !== v).length : N = new Set(S.filter((V) => V.split("/").shift())).size, `Đang chọn: ${N}`;
|
|
32283
32281
|
};
|
|
32284
32282
|
return ht(() => {
|
|
32285
32283
|
const S = v == null ? void 0 : v.split("/")[0];
|
|
@@ -32554,8 +32552,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32554
32552
|
fo(!1);
|
|
32555
32553
|
const S = document.createElement("input");
|
|
32556
32554
|
S.type = "file", S.multiple = !0, S.onchange = (N) => {
|
|
32557
|
-
const
|
|
32558
|
-
|
|
32555
|
+
const V = N.target.files;
|
|
32556
|
+
V && Zi(V, v, "files");
|
|
32559
32557
|
}, S.click();
|
|
32560
32558
|
},
|
|
32561
32559
|
children: [
|
|
@@ -32572,8 +32570,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
32572
32570
|
fo(!1);
|
|
32573
32571
|
const S = document.createElement("input");
|
|
32574
32572
|
S.type = "file", S.multiple = !0, S.webkitdirectory = !0, S.onchange = (N) => {
|
|
32575
|
-
const
|
|
32576
|
-
|
|
32573
|
+
const V = N.target.files;
|
|
32574
|
+
V && Zi(V, v, "folder");
|
|
32577
32575
|
}, S.click();
|
|
32578
32576
|
},
|
|
32579
32577
|
children: [
|
|
@@ -33414,7 +33412,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
33414
33412
|
] }),
|
|
33415
33413
|
/* @__PURE__ */ h("div", { className: "space-y-2 mt-4 flex-1 overflow-y-auto", children: ic ? /* @__PURE__ */ h("div", { className: "text-sm text-gray-500", children: "Đang tải nội dung thư mục... Vui lòng đợi." }) : vt ? [...sc, ...ac].length === 0 ? /* @__PURE__ */ h("div", { className: "text-sm text-gray-500", children: "Không có thư mục hoặc tệp nào." }) : [...sc, ...ac].map((S) => {
|
|
33416
33414
|
const N = za.some(
|
|
33417
|
-
(
|
|
33415
|
+
(V) => V.id === S.id
|
|
33418
33416
|
);
|
|
33419
33417
|
return /* @__PURE__ */ P(
|
|
33420
33418
|
"div",
|
|
@@ -33426,8 +33424,8 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
33426
33424
|
{
|
|
33427
33425
|
type: "checkbox",
|
|
33428
33426
|
checked: N,
|
|
33429
|
-
onChange: (
|
|
33430
|
-
|
|
33427
|
+
onChange: (V) => {
|
|
33428
|
+
V.stopPropagation(), Vl(S);
|
|
33431
33429
|
},
|
|
33432
33430
|
className: "cursor-pointer"
|
|
33433
33431
|
}
|
|
@@ -33762,7 +33760,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
33762
33760
|
}
|
|
33763
33761
|
)
|
|
33764
33762
|
] }) }) }),
|
|
33765
|
-
/* @__PURE__ */ h(ba, { value: "edit-metadata", children: /* @__PURE__ */ h("div", { className: "space-y-4 py-4", children: Zt ? /* @__PURE__ */ h("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ h(kt, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ h("div", { className: "h-[70dvh] min-h-[500px] overflow-hidden overflow-y-auto pb-3 px-1", children: xe && typeof xe == "object" && Object.entries(xe).map(([S, N],
|
|
33763
|
+
/* @__PURE__ */ h(ba, { value: "edit-metadata", children: /* @__PURE__ */ h("div", { className: "space-y-4 py-4", children: Zt ? /* @__PURE__ */ h("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ h(kt, { className: "h-6 w-6 animate-spin" }) }) : /* @__PURE__ */ h("div", { className: "h-[70dvh] min-h-[500px] overflow-hidden overflow-y-auto pb-3 px-1", children: xe && typeof xe == "object" && Object.entries(xe).map(([S, N], V) => /* @__PURE__ */ P("div", { className: "pb-3 flex flex-col gap-2", children: [
|
|
33766
33764
|
/* @__PURE__ */ P(
|
|
33767
33765
|
xr,
|
|
33768
33766
|
{
|
|
@@ -33807,7 +33805,7 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
33807
33805
|
disabled: on || Vp(S)
|
|
33808
33806
|
}
|
|
33809
33807
|
)
|
|
33810
|
-
] },
|
|
33808
|
+
] }, V)) }) }) })
|
|
33811
33809
|
] })
|
|
33812
33810
|
]
|
|
33813
33811
|
}
|
|
@@ -33945,14 +33943,14 @@ const vG = {}, yG = "AIzaSyBI8KiTWudkw8iR5cjH7ZsA4JBN1NqJw8A", wG = "72681574785
|
|
|
33945
33943
|
}
|
|
33946
33944
|
),
|
|
33947
33945
|
Array.from({ length: Math.ceil(Ji / 20) }, (S, N) => {
|
|
33948
|
-
const
|
|
33949
|
-
return fe > 7 && !(
|
|
33946
|
+
const V = N + 1, fe = Math.ceil(Ji / 20);
|
|
33947
|
+
return fe > 7 && !(V === 1 || V === fe || V >= Wt - 1 && V <= Wt + 1) ? V === Wt - 2 && Wt > 4 || V === Wt + 2 && Wt < fe - 3 ? /* @__PURE__ */ h(Uf, { className: "pointer-events-none", children: "..." }, N) : null : /* @__PURE__ */ h(Xr, { className: "cursor-pointer", children: /* @__PURE__ */ h(
|
|
33950
33948
|
$s,
|
|
33951
33949
|
{
|
|
33952
|
-
isActive: Wt ===
|
|
33953
|
-
onClick: () => hr(
|
|
33954
|
-
className: `${Wt ===
|
|
33955
|
-
children:
|
|
33950
|
+
isActive: Wt === V,
|
|
33951
|
+
onClick: () => hr(V),
|
|
33952
|
+
className: `${Wt === V ? "bg-blue-500 text-white" : "bg-white text-black"} hover:bg-blue-100`,
|
|
33953
|
+
children: V
|
|
33956
33954
|
}
|
|
33957
33955
|
) }, N);
|
|
33958
33956
|
}),
|