@project-sunbird/collection-editor-react 0.1.31 → 0.1.32
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/collection-editor.umd.js +59 -59
- package/dist/index.cjs +4 -4
- package/dist/index.js +379 -376
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4428,25 +4428,25 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4428
4428
|
data: (lt = x == null ? void 0 : x.data) != null ? lt : wy,
|
|
4429
4429
|
rect: k
|
|
4430
4430
|
} : null;
|
|
4431
|
-
}, [N, x]), R = ne(null), [P,
|
|
4431
|
+
}, [N, x]), R = ne(null), [P, H] = $(null), [te, Se] = $(null), Ne = Pi(w, Object.values(w)), Ie = Yi("DndDescribedBy", a), ye = me(() => q.getEnabled(), [q]), G = Ey(m), {
|
|
4432
4432
|
droppableRects: le,
|
|
4433
4433
|
measureDroppableContainers: ae,
|
|
4434
|
-
measuringScheduled:
|
|
4434
|
+
measuringScheduled: z
|
|
4435
4435
|
} = ly(ye, {
|
|
4436
4436
|
dragging: I,
|
|
4437
4437
|
dependencies: [B.x, B.y],
|
|
4438
4438
|
config: G.droppable
|
|
4439
|
-
}),
|
|
4439
|
+
}), Q = ay(L, N), de = me(() => te ? Vo(te) : null, [te]), ve = Zr(), ie = cy(Q, G.draggable.measure);
|
|
4440
4440
|
Iy({
|
|
4441
4441
|
activeNode: N != null ? L.get(N) : null,
|
|
4442
4442
|
config: ve.layoutShiftCompensation,
|
|
4443
4443
|
initialRect: ie,
|
|
4444
4444
|
measure: G.draggable.measure
|
|
4445
4445
|
});
|
|
4446
|
-
const ce = fc(
|
|
4446
|
+
const ce = fc(Q, G.draggable.measure, ie), je = fc(Q ? Q.parentElement : null), xe = ne({
|
|
4447
4447
|
activatorEvent: null,
|
|
4448
4448
|
active: null,
|
|
4449
|
-
activeNode:
|
|
4449
|
+
activeNode: Q,
|
|
4450
4450
|
collisionRect: null,
|
|
4451
4451
|
collisions: null,
|
|
4452
4452
|
droppableRects: le,
|
|
@@ -4459,7 +4459,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4459
4459
|
scrollAdjustedTranslate: null
|
|
4460
4460
|
}), Qe = q.getNodeFor((r = xe.current.over) == null ? void 0 : r.id), Ye = vy({
|
|
4461
4461
|
measure: G.dragOverlay.measure
|
|
4462
|
-
}), Ge = (n = Ye.nodeRef.current) != null ? n :
|
|
4462
|
+
}), Ge = (n = Ye.nodeRef.current) != null ? n : Q, se = I ? (i = Ye.rect) != null ? i : ce : null, Ze = !!(Ye.nodeRef.current && Ye.rect), Ke = fy(Ze ? null : ce), We = ff(Ge ? xt(Ge) : null), nt = hy(I ? Qe ?? Q : null), Gt = yy(nt), At = gf(p, {
|
|
4463
4463
|
transform: {
|
|
4464
4464
|
x: B.x - Ke.x,
|
|
4465
4465
|
y: B.y - Ke.y,
|
|
@@ -4482,7 +4482,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4482
4482
|
droppableRects: le,
|
|
4483
4483
|
droppableContainers: ye,
|
|
4484
4484
|
pointerCoordinates: Z
|
|
4485
|
-
}) : null,
|
|
4485
|
+
}) : null, V = ef(D, "id"), [j, W] = $(null), U = Ze ? At : Pn(At, Wt), oe = Fg(U, (o = j == null ? void 0 : j.rect) != null ? o : null, ce), _e = ne(null), Xe = X(
|
|
4486
4486
|
(lt, bt) => {
|
|
4487
4487
|
let {
|
|
4488
4488
|
sensor: Dt,
|
|
@@ -4555,7 +4555,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4555
4555
|
}), v({
|
|
4556
4556
|
type: "onDragStart",
|
|
4557
4557
|
event: di
|
|
4558
|
-
}),
|
|
4558
|
+
}), H(_e.current), Se($t);
|
|
4559
4559
|
});
|
|
4560
4560
|
},
|
|
4561
4561
|
onMove(mt) {
|
|
@@ -4592,7 +4592,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4592
4592
|
R.current = null, so(() => {
|
|
4593
4593
|
y({
|
|
4594
4594
|
type: mt
|
|
4595
|
-
}), S(Br.Uninitialized), W(null),
|
|
4595
|
+
}), S(Br.Uninitialized), W(null), H(null), Se(null), _e.current = null;
|
|
4596
4596
|
const fi = mt === at.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
4597
4597
|
if (Lr) {
|
|
4598
4598
|
const Oa = Ne.current[fi];
|
|
@@ -4669,7 +4669,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4669
4669
|
return;
|
|
4670
4670
|
const {
|
|
4671
4671
|
onDragOver: $t
|
|
4672
|
-
} = Ne.current, ur = rr.get(
|
|
4672
|
+
} = Ne.current, ur = rr.get(V), _n = ur && ur.rect.current ? {
|
|
4673
4673
|
id: ur.id,
|
|
4674
4674
|
rect: ur.rect.current,
|
|
4675
4675
|
data: ur.data,
|
|
@@ -4692,12 +4692,12 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4692
4692
|
});
|
|
4693
4693
|
},
|
|
4694
4694
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4695
|
-
[
|
|
4695
|
+
[V]
|
|
4696
4696
|
), sr(() => {
|
|
4697
4697
|
xe.current = {
|
|
4698
4698
|
activatorEvent: te,
|
|
4699
4699
|
active: F,
|
|
4700
|
-
activeNode:
|
|
4700
|
+
activeNode: Q,
|
|
4701
4701
|
collisionRect: A,
|
|
4702
4702
|
collisions: D,
|
|
4703
4703
|
droppableRects: le,
|
|
@@ -4712,7 +4712,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4712
4712
|
initial: se,
|
|
4713
4713
|
translated: A
|
|
4714
4714
|
};
|
|
4715
|
-
}, [F,
|
|
4715
|
+
}, [F, Q, D, A, L, Ge, se, le, q, j, nt, _]), ny({
|
|
4716
4716
|
...ve,
|
|
4717
4717
|
delta: B,
|
|
4718
4718
|
draggingRect: A,
|
|
@@ -4722,7 +4722,7 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4722
4722
|
});
|
|
4723
4723
|
const Sr = me(() => ({
|
|
4724
4724
|
active: F,
|
|
4725
|
-
activeNode:
|
|
4725
|
+
activeNode: Q,
|
|
4726
4726
|
activeNodeRect: ce,
|
|
4727
4727
|
activatorEvent: te,
|
|
4728
4728
|
collisions: D,
|
|
@@ -4736,9 +4736,9 @@ const yf = /* @__PURE__ */ na(function(t) {
|
|
|
4736
4736
|
scrollableAncestors: nt,
|
|
4737
4737
|
scrollableAncestorRects: Gt,
|
|
4738
4738
|
measuringConfiguration: G,
|
|
4739
|
-
measuringScheduled:
|
|
4739
|
+
measuringScheduled: z,
|
|
4740
4740
|
windowRect: We
|
|
4741
|
-
}), [F,
|
|
4741
|
+
}), [F, Q, ce, te, D, je, Ye, L, q, le, j, ae, nt, Gt, G, z, We]), ci = me(() => ({
|
|
4742
4742
|
activatorEvent: te,
|
|
4743
4743
|
activators: Rt,
|
|
4744
4744
|
active: F,
|
|
@@ -5262,7 +5262,7 @@ const Gy = ei(
|
|
|
5262
5262
|
* This source code is licensed under the ISC license.
|
|
5263
5263
|
* See the LICENSE file in the root directory of this source tree.
|
|
5264
5264
|
*/
|
|
5265
|
-
const
|
|
5265
|
+
const he = (e, t) => {
|
|
5266
5266
|
const r = ei(
|
|
5267
5267
|
({ className: n, ...i }, o) => kn(Gy, {
|
|
5268
5268
|
ref: o,
|
|
@@ -5279,7 +5279,7 @@ const fe = (e, t) => {
|
|
|
5279
5279
|
* This source code is licensed under the ISC license.
|
|
5280
5280
|
* See the LICENSE file in the root directory of this source tree.
|
|
5281
5281
|
*/
|
|
5282
|
-
const Wy =
|
|
5282
|
+
const Wy = he("ArrowLeft", [
|
|
5283
5283
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
5284
5284
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
5285
5285
|
]);
|
|
@@ -5289,7 +5289,7 @@ const Wy = fe("ArrowLeft", [
|
|
|
5289
5289
|
* This source code is licensed under the ISC license.
|
|
5290
5290
|
* See the LICENSE file in the root directory of this source tree.
|
|
5291
5291
|
*/
|
|
5292
|
-
const Ky =
|
|
5292
|
+
const Ky = he("ArrowUpAZ", [
|
|
5293
5293
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
5294
5294
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
5295
5295
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
@@ -5302,7 +5302,7 @@ const Ky = fe("ArrowUpAZ", [
|
|
|
5302
5302
|
* This source code is licensed under the ISC license.
|
|
5303
5303
|
* See the LICENSE file in the root directory of this source tree.
|
|
5304
5304
|
*/
|
|
5305
|
-
const Yy =
|
|
5305
|
+
const Yy = he("BookOpen", [
|
|
5306
5306
|
["path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z", key: "vv98re" }],
|
|
5307
5307
|
["path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z", key: "1cyq3y" }]
|
|
5308
5308
|
]);
|
|
@@ -5312,7 +5312,7 @@ const Yy = fe("BookOpen", [
|
|
|
5312
5312
|
* This source code is licensed under the ISC license.
|
|
5313
5313
|
* See the LICENSE file in the root directory of this source tree.
|
|
5314
5314
|
*/
|
|
5315
|
-
const Zy =
|
|
5315
|
+
const Zy = he("Book", [
|
|
5316
5316
|
["path", { d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20", key: "t4utmx" }]
|
|
5317
5317
|
]);
|
|
5318
5318
|
/**
|
|
@@ -5321,14 +5321,14 @@ const Zy = fe("Book", [
|
|
|
5321
5321
|
* This source code is licensed under the ISC license.
|
|
5322
5322
|
* See the LICENSE file in the root directory of this source tree.
|
|
5323
5323
|
*/
|
|
5324
|
-
const ii =
|
|
5324
|
+
const ii = he("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
5325
5325
|
/**
|
|
5326
5326
|
* @license lucide-react v0.400.0 - ISC
|
|
5327
5327
|
*
|
|
5328
5328
|
* This source code is licensed under the ISC license.
|
|
5329
5329
|
* See the LICENSE file in the root directory of this source tree.
|
|
5330
5330
|
*/
|
|
5331
|
-
const oi =
|
|
5331
|
+
const oi = he("ChevronDown", [
|
|
5332
5332
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
5333
5333
|
]);
|
|
5334
5334
|
/**
|
|
@@ -5337,7 +5337,7 @@ const oi = fe("ChevronDown", [
|
|
|
5337
5337
|
* This source code is licensed under the ISC license.
|
|
5338
5338
|
* See the LICENSE file in the root directory of this source tree.
|
|
5339
5339
|
*/
|
|
5340
|
-
const Cf =
|
|
5340
|
+
const Cf = he("ChevronRight", [
|
|
5341
5341
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
5342
5342
|
]);
|
|
5343
5343
|
/**
|
|
@@ -5346,14 +5346,14 @@ const Cf = fe("ChevronRight", [
|
|
|
5346
5346
|
* This source code is licensed under the ISC license.
|
|
5347
5347
|
* See the LICENSE file in the root directory of this source tree.
|
|
5348
5348
|
*/
|
|
5349
|
-
const Xy =
|
|
5349
|
+
const Xy = he("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
|
5350
5350
|
/**
|
|
5351
5351
|
* @license lucide-react v0.400.0 - ISC
|
|
5352
5352
|
*
|
|
5353
5353
|
* This source code is licensed under the ISC license.
|
|
5354
5354
|
* See the LICENSE file in the root directory of this source tree.
|
|
5355
5355
|
*/
|
|
5356
|
-
const _f =
|
|
5356
|
+
const _f = he("CircleCheckBig", [
|
|
5357
5357
|
["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }],
|
|
5358
5358
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
5359
5359
|
]);
|
|
@@ -5363,7 +5363,7 @@ const _f = fe("CircleCheckBig", [
|
|
|
5363
5363
|
* This source code is licensed under the ISC license.
|
|
5364
5364
|
* See the LICENSE file in the root directory of this source tree.
|
|
5365
5365
|
*/
|
|
5366
|
-
const pl =
|
|
5366
|
+
const pl = he("CircleHelp", [
|
|
5367
5367
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5368
5368
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
5369
5369
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
@@ -5374,7 +5374,7 @@ const pl = fe("CircleHelp", [
|
|
|
5374
5374
|
* This source code is licensed under the ISC license.
|
|
5375
5375
|
* See the LICENSE file in the root directory of this source tree.
|
|
5376
5376
|
*/
|
|
5377
|
-
const Jy =
|
|
5377
|
+
const Jy = he("CircleX", [
|
|
5378
5378
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5379
5379
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
5380
5380
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -5385,7 +5385,7 @@ const Jy = fe("CircleX", [
|
|
|
5385
5385
|
* This source code is licensed under the ISC license.
|
|
5386
5386
|
* See the LICENSE file in the root directory of this source tree.
|
|
5387
5387
|
*/
|
|
5388
|
-
const ev =
|
|
5388
|
+
const ev = he("Clock", [
|
|
5389
5389
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5390
5390
|
["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
|
|
5391
5391
|
]);
|
|
@@ -5395,7 +5395,7 @@ const ev = fe("Clock", [
|
|
|
5395
5395
|
* This source code is licensed under the ISC license.
|
|
5396
5396
|
* See the LICENSE file in the root directory of this source tree.
|
|
5397
5397
|
*/
|
|
5398
|
-
const tv =
|
|
5398
|
+
const tv = he("Download", [
|
|
5399
5399
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
5400
5400
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
5401
5401
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
@@ -5406,7 +5406,7 @@ const tv = fe("Download", [
|
|
|
5406
5406
|
* This source code is licensed under the ISC license.
|
|
5407
5407
|
* See the LICENSE file in the root directory of this source tree.
|
|
5408
5408
|
*/
|
|
5409
|
-
const Sf =
|
|
5409
|
+
const Sf = he("EllipsisVertical", [
|
|
5410
5410
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
5411
5411
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
5412
5412
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
@@ -5417,7 +5417,7 @@ const Sf = fe("EllipsisVertical", [
|
|
|
5417
5417
|
* This source code is licensed under the ISC license.
|
|
5418
5418
|
* See the LICENSE file in the root directory of this source tree.
|
|
5419
5419
|
*/
|
|
5420
|
-
const ha =
|
|
5420
|
+
const ha = he("FileText", [
|
|
5421
5421
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
5422
5422
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
5423
5423
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
@@ -5430,7 +5430,7 @@ const ha = fe("FileText", [
|
|
|
5430
5430
|
* This source code is licensed under the ISC license.
|
|
5431
5431
|
* See the LICENSE file in the root directory of this source tree.
|
|
5432
5432
|
*/
|
|
5433
|
-
const ai =
|
|
5433
|
+
const ai = he("File", [
|
|
5434
5434
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
5435
5435
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
|
|
5436
5436
|
]);
|
|
@@ -5440,7 +5440,7 @@ const ai = fe("File", [
|
|
|
5440
5440
|
* This source code is licensed under the ISC license.
|
|
5441
5441
|
* See the LICENSE file in the root directory of this source tree.
|
|
5442
5442
|
*/
|
|
5443
|
-
const rv =
|
|
5443
|
+
const rv = he("FolderOpen", [
|
|
5444
5444
|
[
|
|
5445
5445
|
"path",
|
|
5446
5446
|
{
|
|
@@ -5455,7 +5455,7 @@ const rv = fe("FolderOpen", [
|
|
|
5455
5455
|
* This source code is licensed under the ISC license.
|
|
5456
5456
|
* See the LICENSE file in the root directory of this source tree.
|
|
5457
5457
|
*/
|
|
5458
|
-
const Tf =
|
|
5458
|
+
const Tf = he("FolderPlus", [
|
|
5459
5459
|
["path", { d: "M12 10v6", key: "1bos4e" }],
|
|
5460
5460
|
["path", { d: "M9 13h6", key: "1uhe8q" }],
|
|
5461
5461
|
[
|
|
@@ -5472,7 +5472,7 @@ const Tf = fe("FolderPlus", [
|
|
|
5472
5472
|
* This source code is licensed under the ISC license.
|
|
5473
5473
|
* See the LICENSE file in the root directory of this source tree.
|
|
5474
5474
|
*/
|
|
5475
|
-
const nv =
|
|
5475
|
+
const nv = he("Folder", [
|
|
5476
5476
|
[
|
|
5477
5477
|
"path",
|
|
5478
5478
|
{
|
|
@@ -5487,7 +5487,7 @@ const nv = fe("Folder", [
|
|
|
5487
5487
|
* This source code is licensed under the ISC license.
|
|
5488
5488
|
* See the LICENSE file in the root directory of this source tree.
|
|
5489
5489
|
*/
|
|
5490
|
-
const iv =
|
|
5490
|
+
const iv = he("Globe", [
|
|
5491
5491
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5492
5492
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
5493
5493
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
@@ -5498,7 +5498,7 @@ const iv = fe("Globe", [
|
|
|
5498
5498
|
* This source code is licensed under the ISC license.
|
|
5499
5499
|
* See the LICENSE file in the root directory of this source tree.
|
|
5500
5500
|
*/
|
|
5501
|
-
const Ef =
|
|
5501
|
+
const Ef = he("GripVertical", [
|
|
5502
5502
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
5503
5503
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
5504
5504
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
@@ -5512,7 +5512,7 @@ const Ef = fe("GripVertical", [
|
|
|
5512
5512
|
* This source code is licensed under the ISC license.
|
|
5513
5513
|
* See the LICENSE file in the root directory of this source tree.
|
|
5514
5514
|
*/
|
|
5515
|
-
const ov =
|
|
5515
|
+
const ov = he("House", [
|
|
5516
5516
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
5517
5517
|
[
|
|
5518
5518
|
"path",
|
|
@@ -5528,7 +5528,7 @@ const ov = fe("House", [
|
|
|
5528
5528
|
* This source code is licensed under the ISC license.
|
|
5529
5529
|
* See the LICENSE file in the root directory of this source tree.
|
|
5530
5530
|
*/
|
|
5531
|
-
const If =
|
|
5531
|
+
const If = he("Image", [
|
|
5532
5532
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
5533
5533
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
5534
5534
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
@@ -5539,7 +5539,7 @@ const If = fe("Image", [
|
|
|
5539
5539
|
* This source code is licensed under the ISC license.
|
|
5540
5540
|
* See the LICENSE file in the root directory of this source tree.
|
|
5541
5541
|
*/
|
|
5542
|
-
const ml =
|
|
5542
|
+
const ml = he("Info", [
|
|
5543
5543
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5544
5544
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
5545
5545
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
@@ -5550,7 +5550,7 @@ const ml = fe("Info", [
|
|
|
5550
5550
|
* This source code is licensed under the ISC license.
|
|
5551
5551
|
* See the LICENSE file in the root directory of this source tree.
|
|
5552
5552
|
*/
|
|
5553
|
-
const gl =
|
|
5553
|
+
const gl = he("Layers", [
|
|
5554
5554
|
[
|
|
5555
5555
|
"path",
|
|
5556
5556
|
{
|
|
@@ -5567,7 +5567,7 @@ const gl = fe("Layers", [
|
|
|
5567
5567
|
* This source code is licensed under the ISC license.
|
|
5568
5568
|
* See the LICENSE file in the root directory of this source tree.
|
|
5569
5569
|
*/
|
|
5570
|
-
const av =
|
|
5570
|
+
const av = he("Library", [
|
|
5571
5571
|
["path", { d: "m16 6 4 14", key: "ji33uf" }],
|
|
5572
5572
|
["path", { d: "M12 6v14", key: "1n7gus" }],
|
|
5573
5573
|
["path", { d: "M8 8v12", key: "1gg7y9" }],
|
|
@@ -5579,7 +5579,7 @@ const av = fe("Library", [
|
|
|
5579
5579
|
* This source code is licensed under the ISC license.
|
|
5580
5580
|
* See the LICENSE file in the root directory of this source tree.
|
|
5581
5581
|
*/
|
|
5582
|
-
const Eo =
|
|
5582
|
+
const Eo = he("Loader", [
|
|
5583
5583
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
5584
5584
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
5585
5585
|
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
@@ -5595,7 +5595,7 @@ const Eo = fe("Loader", [
|
|
|
5595
5595
|
* This source code is licensed under the ISC license.
|
|
5596
5596
|
* See the LICENSE file in the root directory of this source tree.
|
|
5597
5597
|
*/
|
|
5598
|
-
const yl =
|
|
5598
|
+
const yl = he("Music", [
|
|
5599
5599
|
["path", { d: "M9 18V5l12-2v13", key: "1jmyc2" }],
|
|
5600
5600
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
5601
5601
|
["circle", { cx: "18", cy: "16", r: "3", key: "1hluhg" }]
|
|
@@ -5606,7 +5606,7 @@ const yl = fe("Music", [
|
|
|
5606
5606
|
* This source code is licensed under the ISC license.
|
|
5607
5607
|
* See the LICENSE file in the root directory of this source tree.
|
|
5608
5608
|
*/
|
|
5609
|
-
const vl =
|
|
5609
|
+
const vl = he("Package", [
|
|
5610
5610
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }],
|
|
5611
5611
|
[
|
|
5612
5612
|
"path",
|
|
@@ -5624,7 +5624,7 @@ const vl = fe("Package", [
|
|
|
5624
5624
|
* This source code is licensed under the ISC license.
|
|
5625
5625
|
* See the LICENSE file in the root directory of this source tree.
|
|
5626
5626
|
*/
|
|
5627
|
-
const sv =
|
|
5627
|
+
const sv = he("PanelLeftClose", [
|
|
5628
5628
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
5629
5629
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
5630
5630
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
@@ -5635,7 +5635,7 @@ const sv = fe("PanelLeftClose", [
|
|
|
5635
5635
|
* This source code is licensed under the ISC license.
|
|
5636
5636
|
* See the LICENSE file in the root directory of this source tree.
|
|
5637
5637
|
*/
|
|
5638
|
-
const lv =
|
|
5638
|
+
const lv = he("PanelLeftOpen", [
|
|
5639
5639
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
5640
5640
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
5641
5641
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
@@ -5646,7 +5646,7 @@ const lv = fe("PanelLeftOpen", [
|
|
|
5646
5646
|
* This source code is licensed under the ISC license.
|
|
5647
5647
|
* See the LICENSE file in the root directory of this source tree.
|
|
5648
5648
|
*/
|
|
5649
|
-
const cv =
|
|
5649
|
+
const cv = he("PanelRightClose", [
|
|
5650
5650
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
5651
5651
|
["path", { d: "M15 3v18", key: "14nvp0" }],
|
|
5652
5652
|
["path", { d: "m8 9 3 3-3 3", key: "12hl5m" }]
|
|
@@ -5657,7 +5657,7 @@ const cv = fe("PanelRightClose", [
|
|
|
5657
5657
|
* This source code is licensed under the ISC license.
|
|
5658
5658
|
* See the LICENSE file in the root directory of this source tree.
|
|
5659
5659
|
*/
|
|
5660
|
-
const dv =
|
|
5660
|
+
const dv = he("Pencil", [
|
|
5661
5661
|
[
|
|
5662
5662
|
"path",
|
|
5663
5663
|
{
|
|
@@ -5673,7 +5673,7 @@ const dv = fe("Pencil", [
|
|
|
5673
5673
|
* This source code is licensed under the ISC license.
|
|
5674
5674
|
* See the LICENSE file in the root directory of this source tree.
|
|
5675
5675
|
*/
|
|
5676
|
-
const Xi =
|
|
5676
|
+
const Xi = he("Plus", [
|
|
5677
5677
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
5678
5678
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
5679
5679
|
]);
|
|
@@ -5683,7 +5683,7 @@ const Xi = fe("Plus", [
|
|
|
5683
5683
|
* This source code is licensed under the ISC license.
|
|
5684
5684
|
* See the LICENSE file in the root directory of this source tree.
|
|
5685
5685
|
*/
|
|
5686
|
-
const vc =
|
|
5686
|
+
const vc = he("QrCode", [
|
|
5687
5687
|
["rect", { width: "5", height: "5", x: "3", y: "3", rx: "1", key: "1tu5fj" }],
|
|
5688
5688
|
["rect", { width: "5", height: "5", x: "16", y: "3", rx: "1", key: "1v8r4q" }],
|
|
5689
5689
|
["rect", { width: "5", height: "5", x: "3", y: "16", rx: "1", key: "1x03jg" }],
|
|
@@ -5703,7 +5703,7 @@ const vc = fe("QrCode", [
|
|
|
5703
5703
|
* This source code is licensed under the ISC license.
|
|
5704
5704
|
* See the LICENSE file in the root directory of this source tree.
|
|
5705
5705
|
*/
|
|
5706
|
-
const bc =
|
|
5706
|
+
const bc = he("RotateCcw", [
|
|
5707
5707
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
5708
5708
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
5709
5709
|
]);
|
|
@@ -5713,7 +5713,7 @@ const bc = fe("RotateCcw", [
|
|
|
5713
5713
|
* This source code is licensed under the ISC license.
|
|
5714
5714
|
* See the LICENSE file in the root directory of this source tree.
|
|
5715
5715
|
*/
|
|
5716
|
-
const uv =
|
|
5716
|
+
const uv = he("Save", [
|
|
5717
5717
|
[
|
|
5718
5718
|
"path",
|
|
5719
5719
|
{
|
|
@@ -5730,7 +5730,7 @@ const uv = fe("Save", [
|
|
|
5730
5730
|
* This source code is licensed under the ISC license.
|
|
5731
5731
|
* See the LICENSE file in the root directory of this source tree.
|
|
5732
5732
|
*/
|
|
5733
|
-
const fv =
|
|
5733
|
+
const fv = he("Scale", [
|
|
5734
5734
|
["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "7g6ntu" }],
|
|
5735
5735
|
["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "ijws7r" }],
|
|
5736
5736
|
["path", { d: "M7 21h10", key: "1b0cd5" }],
|
|
@@ -5743,7 +5743,7 @@ const fv = fe("Scale", [
|
|
|
5743
5743
|
* This source code is licensed under the ISC license.
|
|
5744
5744
|
* See the LICENSE file in the root directory of this source tree.
|
|
5745
5745
|
*/
|
|
5746
|
-
const hv =
|
|
5746
|
+
const hv = he("School", [
|
|
5747
5747
|
["path", { d: "M14 22v-4a2 2 0 1 0-4 0v4", key: "hhkicm" }],
|
|
5748
5748
|
["path", { d: "m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2", key: "1vwozw" }],
|
|
5749
5749
|
["path", { d: "M18 5v17", key: "1sw6gf" }],
|
|
@@ -5757,7 +5757,7 @@ const hv = fe("School", [
|
|
|
5757
5757
|
* This source code is licensed under the ISC license.
|
|
5758
5758
|
* See the LICENSE file in the root directory of this source tree.
|
|
5759
5759
|
*/
|
|
5760
|
-
const Ds =
|
|
5760
|
+
const Ds = he("Search", [
|
|
5761
5761
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
5762
5762
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
5763
5763
|
]);
|
|
@@ -5767,7 +5767,7 @@ const Ds = fe("Search", [
|
|
|
5767
5767
|
* This source code is licensed under the ISC license.
|
|
5768
5768
|
* See the LICENSE file in the root directory of this source tree.
|
|
5769
5769
|
*/
|
|
5770
|
-
const pv =
|
|
5770
|
+
const pv = he("Send", [
|
|
5771
5771
|
["path", { d: "m22 2-7 20-4-9-9-4Z", key: "1q3vgg" }],
|
|
5772
5772
|
["path", { d: "M22 2 11 13", key: "nzbqef" }]
|
|
5773
5773
|
]);
|
|
@@ -5777,7 +5777,7 @@ const pv = fe("Send", [
|
|
|
5777
5777
|
* This source code is licensed under the ISC license.
|
|
5778
5778
|
* See the LICENSE file in the root directory of this source tree.
|
|
5779
5779
|
*/
|
|
5780
|
-
const mv =
|
|
5780
|
+
const mv = he("Shield", [
|
|
5781
5781
|
[
|
|
5782
5782
|
"path",
|
|
5783
5783
|
{
|
|
@@ -5792,7 +5792,7 @@ const mv = fe("Shield", [
|
|
|
5792
5792
|
* This source code is licensed under the ISC license.
|
|
5793
5793
|
* See the LICENSE file in the root directory of this source tree.
|
|
5794
5794
|
*/
|
|
5795
|
-
const gv =
|
|
5795
|
+
const gv = he("SlidersHorizontal", [
|
|
5796
5796
|
["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
|
|
5797
5797
|
["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
|
|
5798
5798
|
["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
|
|
@@ -5809,7 +5809,7 @@ const gv = fe("SlidersHorizontal", [
|
|
|
5809
5809
|
* This source code is licensed under the ISC license.
|
|
5810
5810
|
* See the LICENSE file in the root directory of this source tree.
|
|
5811
5811
|
*/
|
|
5812
|
-
const yv =
|
|
5812
|
+
const yv = he("Tag", [
|
|
5813
5813
|
[
|
|
5814
5814
|
"path",
|
|
5815
5815
|
{
|
|
@@ -5825,7 +5825,7 @@ const yv = fe("Tag", [
|
|
|
5825
5825
|
* This source code is licensed under the ISC license.
|
|
5826
5826
|
* See the LICENSE file in the root directory of this source tree.
|
|
5827
5827
|
*/
|
|
5828
|
-
const bl =
|
|
5828
|
+
const bl = he("Trash2", [
|
|
5829
5829
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
5830
5830
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
5831
5831
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -5838,7 +5838,7 @@ const bl = fe("Trash2", [
|
|
|
5838
5838
|
* This source code is licensed under the ISC license.
|
|
5839
5839
|
* See the LICENSE file in the root directory of this source tree.
|
|
5840
5840
|
*/
|
|
5841
|
-
const vv =
|
|
5841
|
+
const vv = he("TriangleAlert", [
|
|
5842
5842
|
[
|
|
5843
5843
|
"path",
|
|
5844
5844
|
{
|
|
@@ -5855,7 +5855,7 @@ const vv = fe("TriangleAlert", [
|
|
|
5855
5855
|
* This source code is licensed under the ISC license.
|
|
5856
5856
|
* See the LICENSE file in the root directory of this source tree.
|
|
5857
5857
|
*/
|
|
5858
|
-
const Ns =
|
|
5858
|
+
const Ns = he("Upload", [
|
|
5859
5859
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
5860
5860
|
["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
|
|
5861
5861
|
["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
|
|
@@ -5866,7 +5866,7 @@ const Ns = fe("Upload", [
|
|
|
5866
5866
|
* This source code is licensed under the ISC license.
|
|
5867
5867
|
* See the LICENSE file in the root directory of this source tree.
|
|
5868
5868
|
*/
|
|
5869
|
-
const bv =
|
|
5869
|
+
const bv = he("User", [
|
|
5870
5870
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
5871
5871
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
5872
5872
|
]);
|
|
@@ -5876,7 +5876,7 @@ const bv = fe("User", [
|
|
|
5876
5876
|
* This source code is licensed under the ISC license.
|
|
5877
5877
|
* See the LICENSE file in the root directory of this source tree.
|
|
5878
5878
|
*/
|
|
5879
|
-
const wv =
|
|
5879
|
+
const wv = he("Users", [
|
|
5880
5880
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
5881
5881
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
5882
5882
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
@@ -5888,7 +5888,7 @@ const wv = fe("Users", [
|
|
|
5888
5888
|
* This source code is licensed under the ISC license.
|
|
5889
5889
|
* See the LICENSE file in the root directory of this source tree.
|
|
5890
5890
|
*/
|
|
5891
|
-
const wl =
|
|
5891
|
+
const wl = he("Video", [
|
|
5892
5892
|
[
|
|
5893
5893
|
"path",
|
|
5894
5894
|
{
|
|
@@ -5904,7 +5904,7 @@ const wl = fe("Video", [
|
|
|
5904
5904
|
* This source code is licensed under the ISC license.
|
|
5905
5905
|
* See the LICENSE file in the root directory of this source tree.
|
|
5906
5906
|
*/
|
|
5907
|
-
const Nr =
|
|
5907
|
+
const Nr = he("X", [
|
|
5908
5908
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
5909
5909
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
5910
5910
|
]), Cv = {}, wc = (e) => {
|
|
@@ -6189,7 +6189,7 @@ const Oc = (e) => {
|
|
|
6189
6189
|
);
|
|
6190
6190
|
const t = typeof e == "function" ? _v(e) : e, r = (n, i) => Lv(t, n, i);
|
|
6191
6191
|
return Object.assign(r, t), r;
|
|
6192
|
-
}, Ji = (e) => e ? Oc(e) : Oc,
|
|
6192
|
+
}, Ji = (e) => e ? Oc(e) : Oc, fe = Ji((e) => ({
|
|
6193
6193
|
editorConfig: null,
|
|
6194
6194
|
editorMode: "edit",
|
|
6195
6195
|
buttonLoaders: {
|
|
@@ -6238,7 +6238,7 @@ const Oc = (e) => {
|
|
|
6238
6238
|
formStatusMapper: { ...n.formStatusMapper, [t]: r }
|
|
6239
6239
|
})),
|
|
6240
6240
|
validateAllForms: (t) => {
|
|
6241
|
-
const r =
|
|
6241
|
+
const r = fe.getState().formStatusMapper, n = [...t];
|
|
6242
6242
|
for (; n.length > 0; ) {
|
|
6243
6243
|
const i = n.shift();
|
|
6244
6244
|
if (r[i.id] === !1) return !1;
|
|
@@ -6263,7 +6263,7 @@ const Oc = (e) => {
|
|
|
6263
6263
|
})
|
|
6264
6264
|
})), Rv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6265
6265
|
__proto__: null,
|
|
6266
|
-
useEditorStore:
|
|
6266
|
+
useEditorStore: fe
|
|
6267
6267
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6268
6268
|
function tn(e, t) {
|
|
6269
6269
|
const r = [...e];
|
|
@@ -6369,7 +6369,7 @@ const Pe = Ji((e, t) => ({
|
|
|
6369
6369
|
},
|
|
6370
6370
|
selectNode: (r) => {
|
|
6371
6371
|
const { treeData: n, treeCache: i, getBreadcrumb: o } = t(), a = tn(n, r), s = o(r), l = { ...(a == null ? void 0 : a.metadata) ?? {}, ...i[r] ?? {} };
|
|
6372
|
-
|
|
6372
|
+
fe.getState().setNodeFlags({
|
|
6373
6373
|
isFolder: (a == null ? void 0 : a.isFolder) ?? !1,
|
|
6374
6374
|
isRoot: !(a != null && a.parent),
|
|
6375
6375
|
isQuml: !1
|
|
@@ -6386,7 +6386,7 @@ const Pe = Ji((e, t) => ({
|
|
|
6386
6386
|
},
|
|
6387
6387
|
addNode: (r, n) => {
|
|
6388
6388
|
var c, d;
|
|
6389
|
-
const i = t(), o = ((d = (c =
|
|
6389
|
+
const i = t(), o = ((d = (c = fe.getState().editorConfig) == null ? void 0 : c.config) == null ? void 0 : d.maxDepth) ?? 4, a = Df(i.treeData, r);
|
|
6390
6390
|
if (a >= o)
|
|
6391
6391
|
return console.warn(`[tree.store] addNode: depth would exceed maxDepth (${o}). parentDepth=${a}`), "";
|
|
6392
6392
|
const s = "temp-" + Math.random().toString(36).slice(2), l = {
|
|
@@ -6432,7 +6432,7 @@ const Pe = Ji((e, t) => ({
|
|
|
6432
6432
|
},
|
|
6433
6433
|
addResource: (r, n) => {
|
|
6434
6434
|
var d, u, m;
|
|
6435
|
-
const i =
|
|
6435
|
+
const i = fe.getState().editorConfig, o = ((d = i == null ? void 0 : i.config) == null ? void 0 : d.allowContentUnderRoot) ?? !1, a = (u = t().treeData[0]) == null ? void 0 : u.id;
|
|
6436
6436
|
if (!o && n === a || tn(t().treeData, r.identifier))
|
|
6437
6437
|
return !1;
|
|
6438
6438
|
const s = ((m = i == null ? void 0 : i.config) == null ? void 0 : m.maxContentsLimit) ?? 1200;
|
|
@@ -6457,7 +6457,7 @@ const Pe = Ji((e, t) => ({
|
|
|
6457
6457
|
})), t().markDirty(), !0;
|
|
6458
6458
|
},
|
|
6459
6459
|
markDirty: () => {
|
|
6460
|
-
const { editorMode: r, setIsDirty: n } =
|
|
6460
|
+
const { editorMode: r, setIsDirty: n } = fe.getState();
|
|
6461
6461
|
r === "edit" && n(!0);
|
|
6462
6462
|
},
|
|
6463
6463
|
replaceNodeIds: (r) => {
|
|
@@ -8409,10 +8409,10 @@ const I_ = ({
|
|
|
8409
8409
|
onConfirm: t,
|
|
8410
8410
|
onCancel: r
|
|
8411
8411
|
}) => {
|
|
8412
|
-
const n = pe(), i =
|
|
8412
|
+
const n = pe(), i = fe((u) => {
|
|
8413
8413
|
var m, p;
|
|
8414
8414
|
return (p = (m = u.editorConfig) == null ? void 0 : m.config) == null ? void 0 : p.objectType;
|
|
8415
|
-
}) || "Content", o =
|
|
8415
|
+
}) || "Content", o = fe((u) => u.publishChecklist) ?? [], [a, s] = $({}), l = o.every((u) => a[u.code]), c = o.length === 0 || l, d = () => {
|
|
8416
8416
|
t();
|
|
8417
8417
|
};
|
|
8418
8418
|
return /* @__PURE__ */ f("div", { className: $e.overlay, role: "dialog", "aria-modal": "true", "aria-labelledby": "publish-modal-title", children: /* @__PURE__ */ T("div", { className: $e.modal, children: [
|
|
@@ -10144,7 +10144,7 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10144
10144
|
maxContentLength: R,
|
|
10145
10145
|
maxBodyLength: P
|
|
10146
10146
|
} = th(y);
|
|
10147
|
-
const
|
|
10147
|
+
const H = O.isNumber(R) && R > -1, te = O.isNumber(P) && P > -1, Se = (Q) => O.hasOwnProp(y, Q) ? y[Q] : void 0;
|
|
10148
10148
|
let Ne = i || fetch;
|
|
10149
10149
|
q = q ? (q + "").toLowerCase() : "text";
|
|
10150
10150
|
let Ie = T0(
|
|
@@ -10155,37 +10155,37 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10155
10155
|
Ie.unsubscribe();
|
|
10156
10156
|
});
|
|
10157
10157
|
let le, ae = null;
|
|
10158
|
-
const
|
|
10158
|
+
const z = () => new ee(
|
|
10159
10159
|
"Request body larger than maxBodyLength limit",
|
|
10160
10160
|
ee.ERR_BAD_REQUEST,
|
|
10161
10161
|
y,
|
|
10162
10162
|
ye
|
|
10163
10163
|
);
|
|
10164
10164
|
try {
|
|
10165
|
-
let
|
|
10165
|
+
let Q;
|
|
10166
10166
|
const de = Se("auth");
|
|
10167
10167
|
if (de) {
|
|
10168
10168
|
const se = O.getSafeProp(de, "username") || "", Ze = O.getSafeProp(de, "password") || "";
|
|
10169
|
-
|
|
10169
|
+
Q = {
|
|
10170
10170
|
username: se,
|
|
10171
10171
|
password: Ze
|
|
10172
10172
|
};
|
|
10173
10173
|
}
|
|
10174
10174
|
if (x0(v)) {
|
|
10175
10175
|
const se = new URL(v, vt.origin);
|
|
10176
|
-
if (!
|
|
10176
|
+
if (!Q && (se.username || se.password)) {
|
|
10177
10177
|
const Ze = qc(se.username), Ke = qc(se.password);
|
|
10178
|
-
|
|
10178
|
+
Q = {
|
|
10179
10179
|
username: Ze,
|
|
10180
10180
|
password: Ke
|
|
10181
10181
|
};
|
|
10182
10182
|
}
|
|
10183
10183
|
(se.username || se.password) && (se.username = "", se.password = "", v = se.href);
|
|
10184
10184
|
}
|
|
10185
|
-
if (
|
|
10185
|
+
if (Q && (x.delete("authorization"), x.set(
|
|
10186
10186
|
"Authorization",
|
|
10187
|
-
"Basic " + btoa(N0((
|
|
10188
|
-
)),
|
|
10187
|
+
"Basic " + btoa(N0((Q.username || "") + ":" + (Q.password || "")))
|
|
10188
|
+
)), H && typeof v == "string" && v.startsWith("data:") && D0(v) > R)
|
|
10189
10189
|
throw new ee(
|
|
10190
10190
|
"maxContentLength size of " + R + " exceeded",
|
|
10191
10191
|
ee.ERR_BAD_RESPONSE,
|
|
@@ -10195,14 +10195,14 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10195
10195
|
if (te && b !== "get" && b !== "head") {
|
|
10196
10196
|
const se = await h(C);
|
|
10197
10197
|
if (typeof se == "number" && isFinite(se) && (le = se, se > P))
|
|
10198
|
-
throw
|
|
10198
|
+
throw z();
|
|
10199
10199
|
}
|
|
10200
10200
|
const ve = te && (O.isReadableStream(C) || O.isStream(C)), ie = (se, Ze, Ke) => jc(
|
|
10201
10201
|
se,
|
|
10202
10202
|
$c,
|
|
10203
10203
|
(We) => {
|
|
10204
10204
|
if (te && We > P)
|
|
10205
|
-
throw ae =
|
|
10205
|
+
throw ae = z();
|
|
10206
10206
|
Ze && Ze(We);
|
|
10207
10207
|
},
|
|
10208
10208
|
Ke
|
|
@@ -10250,7 +10250,7 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10250
10250
|
ye = l && new o(v, je);
|
|
10251
10251
|
let xe = await (l ? Ne(ye, F) : Ne(v, je));
|
|
10252
10252
|
const Qe = Ot.from(xe.headers);
|
|
10253
|
-
if (
|
|
10253
|
+
if (H) {
|
|
10254
10254
|
const se = O.toFiniteNumber(Qe.getContentLength());
|
|
10255
10255
|
if (se != null && se > R)
|
|
10256
10256
|
throw new ee(
|
|
@@ -10261,7 +10261,7 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10261
10261
|
);
|
|
10262
10262
|
}
|
|
10263
10263
|
const Ye = p && (q === "stream" || q === "response");
|
|
10264
|
-
if (p && xe.body && (L ||
|
|
10264
|
+
if (p && xe.body && (L || H || Ye && G)) {
|
|
10265
10265
|
const se = {};
|
|
10266
10266
|
["status", "statusText", "headers"].forEach((At) => {
|
|
10267
10267
|
se[At] = xe[At];
|
|
@@ -10272,7 +10272,7 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10272
10272
|
) || [];
|
|
10273
10273
|
let nt = 0;
|
|
10274
10274
|
const Gt = (At) => {
|
|
10275
|
-
if (
|
|
10275
|
+
if (H && (nt = At, nt > R))
|
|
10276
10276
|
throw new ee(
|
|
10277
10277
|
"maxContentLength size of " + R + " exceeded",
|
|
10278
10278
|
ee.ERR_BAD_RESPONSE,
|
|
@@ -10293,7 +10293,7 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10293
10293
|
xe,
|
|
10294
10294
|
y
|
|
10295
10295
|
);
|
|
10296
|
-
if (
|
|
10296
|
+
if (H && !p && !Ye) {
|
|
10297
10297
|
let se;
|
|
10298
10298
|
if (Ge != null && (typeof Ge.byteLength == "number" ? se = Ge.byteLength : typeof Ge.size == "number" ? se = Ge.size : typeof Ge == "string" && (se = typeof n == "function" ? new n().encode(Ge).byteLength : Ge.length)), typeof se == "number" && se > R)
|
|
10299
10299
|
throw new ee(
|
|
@@ -10313,23 +10313,23 @@ const Ol = "1.18.0", $c = 64 * 1024, { isFunction: fo } = O, N0 = (e) => encodeU
|
|
|
10313
10313
|
request: ye
|
|
10314
10314
|
});
|
|
10315
10315
|
});
|
|
10316
|
-
} catch (
|
|
10316
|
+
} catch (Q) {
|
|
10317
10317
|
if (G && G(), Ie && Ie.aborted && Ie.reason instanceof ee) {
|
|
10318
10318
|
const de = Ie.reason;
|
|
10319
|
-
throw de.config = y, ye && (de.request = ye),
|
|
10319
|
+
throw de.config = y, ye && (de.request = ye), Q !== de && (de.cause = Q), de;
|
|
10320
10320
|
}
|
|
10321
|
-
throw ae ? (ye && !ae.request && (ae.request = ye), ae) :
|
|
10321
|
+
throw ae ? (ye && !ae.request && (ae.request = ye), ae) : Q instanceof ee ? (ye && !Q.request && (Q.request = ye), Q) : Q && Q.name === "TypeError" && /Load failed|fetch/i.test(Q.message) ? Object.assign(
|
|
10322
10322
|
new ee(
|
|
10323
10323
|
"Network Error",
|
|
10324
10324
|
ee.ERR_NETWORK,
|
|
10325
10325
|
y,
|
|
10326
10326
|
ye,
|
|
10327
|
-
|
|
10327
|
+
Q && Q.response
|
|
10328
10328
|
),
|
|
10329
10329
|
{
|
|
10330
|
-
cause:
|
|
10330
|
+
cause: Q.cause || Q
|
|
10331
10331
|
}
|
|
10332
|
-
) : ee.from(
|
|
10332
|
+
) : ee.from(Q, Q && Q.code, y, ye, Q && Q.response);
|
|
10333
10333
|
}
|
|
10334
10334
|
};
|
|
10335
10335
|
}, R0 = /* @__PURE__ */ new Map(), rh = (e) => {
|
|
@@ -11031,7 +11031,7 @@ const X0 = "_container_r27rp_1", J0 = "_header_r27rp_13", eT = "_title_r27rp_22"
|
|
|
11031
11031
|
onClose: t
|
|
11032
11032
|
}) => {
|
|
11033
11033
|
var B, q;
|
|
11034
|
-
const r = pe(), n =
|
|
11034
|
+
const r = pe(), n = fe((x) => x.editorConfig), i = (B = n == null ? void 0 : n.context) == null ? void 0 : B.channel, o = (q = n == null ? void 0 : n.config) == null ? void 0 : q.objectType, [a, s] = $(""), [l, c] = $([]), [d, u] = $(!1), [m, p] = $([]), [w, h] = $(!1), [g, y] = $(""), [v, b] = $(!1), C = ne(null);
|
|
11035
11035
|
re(() => {
|
|
11036
11036
|
let x = !1;
|
|
11037
11037
|
return (async () => {
|
|
@@ -11041,7 +11041,7 @@ const X0 = "_container_r27rp_1", J0 = "_header_r27rp_13", eT = "_title_r27rp_22"
|
|
|
11041
11041
|
const R = await U0(F);
|
|
11042
11042
|
if (x) return;
|
|
11043
11043
|
const P = F.map(
|
|
11044
|
-
(
|
|
11044
|
+
(H) => R.find((te) => te.identifier === H) ?? { identifier: H, firstName: H }
|
|
11045
11045
|
);
|
|
11046
11046
|
p(P);
|
|
11047
11047
|
} catch {
|
|
@@ -11368,12 +11368,12 @@ const r1 = ({
|
|
|
11368
11368
|
onToolbarEvent: o
|
|
11369
11369
|
}) => {
|
|
11370
11370
|
var de, ve;
|
|
11371
|
-
const a = pe(), l = Pe((ie) => ie.treeData)[0], c = (l == null ? void 0 : l.name) ?? a.contextualEditor.untitledPlaceholder, d = t1(((de = l == null ? void 0 : l.metadata) == null ? void 0 : de.status) ?? (l == null ? void 0 : l.status), a.topbar.draftStatusFallback), u =
|
|
11371
|
+
const a = pe(), l = Pe((ie) => ie.treeData)[0], c = (l == null ? void 0 : l.name) ?? a.contextualEditor.untitledPlaceholder, d = t1(((de = l == null ? void 0 : l.metadata) == null ? void 0 : de.status) ?? (l == null ? void 0 : l.status), a.topbar.draftStatusFallback), u = fe(
|
|
11372
11372
|
(ie) => {
|
|
11373
11373
|
var ce, je, xe, Qe;
|
|
11374
11374
|
return ((je = (ce = ie.editorConfig) == null ? void 0 : ce.context) == null ? void 0 : je.contentId) ?? ((Qe = (xe = ie.editorConfig) == null ? void 0 : xe.context) == null ? void 0 : Qe.identifier) ?? "";
|
|
11375
11375
|
}
|
|
11376
|
-
), { activeModal: m, modalData: p, closeModal: w, openModal: h } = Mv(), g =
|
|
11376
|
+
), { activeModal: m, modalData: p, closeModal: w, openModal: h } = Mv(), g = fe((ie) => ie.buttonLoaders), y = fe((ie) => ie.categoryMeta), v = !y || y.schemaDefaults.generateDIALCodes !== "No", [b, C] = $(!1), [S, I] = $(!1), [N, L] = $(!1), B = ne(null), [q, x] = $(!1);
|
|
11377
11377
|
re(() => {
|
|
11378
11378
|
if (!N) return;
|
|
11379
11379
|
const ie = (ce) => {
|
|
@@ -11382,19 +11382,19 @@ const r1 = ({
|
|
|
11382
11382
|
};
|
|
11383
11383
|
return document.addEventListener("mousedown", ie), () => document.removeEventListener("mousedown", ie);
|
|
11384
11384
|
}, [N]);
|
|
11385
|
-
const [k, F] = $(!1), [R, P] = $(!1), { updateNode:
|
|
11385
|
+
const [k, F] = $(!1), [R, P] = $(!1), { updateNode: H } = Pe(), te = (ve = l == null ? void 0 : l.metadata) == null ? void 0 : ve.qrCodeProcessId, Se = X(async (ie) => {
|
|
11386
11386
|
if (u) {
|
|
11387
11387
|
x(!1), F(!0);
|
|
11388
11388
|
try {
|
|
11389
11389
|
const { processId: ce, reservedDialcodes: je } = await OT(u, ie);
|
|
11390
|
-
ce && l &&
|
|
11390
|
+
ce && l && H(l.id, { qrCodeProcessId: ce, reservedDialcodes: je }), Le.success(a.topbar.qrGenerationStartedToast);
|
|
11391
11391
|
} catch {
|
|
11392
11392
|
Le.error(a.topbar.qrGenerationFailedToast);
|
|
11393
11393
|
} finally {
|
|
11394
11394
|
F(!1);
|
|
11395
11395
|
}
|
|
11396
11396
|
}
|
|
11397
|
-
}, [u, l,
|
|
11397
|
+
}, [u, l, H, a]), Ne = X(async () => {
|
|
11398
11398
|
if (!te) {
|
|
11399
11399
|
Le.error(a.topbar.qrCodesNotGeneratedToast);
|
|
11400
11400
|
return;
|
|
@@ -11431,9 +11431,9 @@ const r1 = ({
|
|
|
11431
11431
|
o({ action: ie, data: ce });
|
|
11432
11432
|
},
|
|
11433
11433
|
[o]
|
|
11434
|
-
),
|
|
11434
|
+
), z = X(() => {
|
|
11435
11435
|
w(), ae("publish");
|
|
11436
|
-
}, [w, ae]),
|
|
11436
|
+
}, [w, ae]), Q = X(
|
|
11437
11437
|
(ie, ce) => {
|
|
11438
11438
|
const je = p == null ? void 0 : p.action;
|
|
11439
11439
|
w(), je === "approve" ? ae("sourcingApprove", { comment: ie, score: ce }) : ae("reject", { comment: ie });
|
|
@@ -11629,7 +11629,7 @@ const r1 = ({
|
|
|
11629
11629
|
$_,
|
|
11630
11630
|
{
|
|
11631
11631
|
contentId: u,
|
|
11632
|
-
onConfirm:
|
|
11632
|
+
onConfirm: z,
|
|
11633
11633
|
onCancel: w
|
|
11634
11634
|
}
|
|
11635
11635
|
),
|
|
@@ -11638,7 +11638,7 @@ const r1 = ({
|
|
|
11638
11638
|
{
|
|
11639
11639
|
contentId: u,
|
|
11640
11640
|
action: (p == null ? void 0 : p.action) ?? "reject",
|
|
11641
|
-
onConfirm:
|
|
11641
|
+
onConfirm: Q,
|
|
11642
11642
|
onCancel: w
|
|
11643
11643
|
}
|
|
11644
11644
|
),
|
|
@@ -12476,7 +12476,7 @@ function Oh(e) {
|
|
|
12476
12476
|
}, p.componentWillUnmount = function() {
|
|
12477
12477
|
this._resetIsScrollingTimeoutId !== null && Zc(this._resetIsScrollingTimeoutId);
|
|
12478
12478
|
}, p.render = function() {
|
|
12479
|
-
var h = this.props, g = h.children, y = h.className, v = h.direction, b = h.height, C = h.innerRef, S = h.innerElementType, I = h.innerTagName, N = h.itemCount, L = h.itemData, B = h.itemKey, q = B === void 0 ? q1 : B, x = h.layout, k = h.outerElementType, F = h.outerTagName, R = h.style, P = h.useIsScrolling,
|
|
12479
|
+
var h = this.props, g = h.children, y = h.className, v = h.direction, b = h.height, C = h.innerRef, S = h.innerElementType, I = h.innerTagName, N = h.itemCount, L = h.itemData, B = h.itemKey, q = B === void 0 ? q1 : B, x = h.layout, k = h.outerElementType, F = h.outerTagName, R = h.style, P = h.useIsScrolling, H = h.width, te = this.state.isScrolling, Se = v === "horizontal" || x === "horizontal", Ne = Se ? this._onScrollHorizontal : this._onScrollVertical, Ie = this._getRangeToRender(), ye = Ie[0], G = Ie[1], le = [];
|
|
12480
12480
|
if (N > 0)
|
|
12481
12481
|
for (var ae = ye; ae <= G; ae++)
|
|
12482
12482
|
le.push(kn(g, {
|
|
@@ -12486,7 +12486,7 @@ function Oh(e) {
|
|
|
12486
12486
|
isScrolling: P ? te : void 0,
|
|
12487
12487
|
style: this._getItemStyle(ae)
|
|
12488
12488
|
}));
|
|
12489
|
-
var
|
|
12489
|
+
var z = n(this.props, this._instanceProps);
|
|
12490
12490
|
return kn(k || F || "div", {
|
|
12491
12491
|
className: y,
|
|
12492
12492
|
onScroll: Ne,
|
|
@@ -12494,7 +12494,7 @@ function Oh(e) {
|
|
|
12494
12494
|
style: Us({
|
|
12495
12495
|
position: "relative",
|
|
12496
12496
|
height: b,
|
|
12497
|
-
width:
|
|
12497
|
+
width: H,
|
|
12498
12498
|
overflow: "auto",
|
|
12499
12499
|
WebkitOverflowScrolling: "touch",
|
|
12500
12500
|
willChange: "transform",
|
|
@@ -12504,9 +12504,9 @@ function Oh(e) {
|
|
|
12504
12504
|
children: le,
|
|
12505
12505
|
ref: C,
|
|
12506
12506
|
style: {
|
|
12507
|
-
height: Se ? "100%" :
|
|
12507
|
+
height: Se ? "100%" : z,
|
|
12508
12508
|
pointerEvents: te ? "none" : void 0,
|
|
12509
|
-
width: Se ?
|
|
12509
|
+
width: Se ? z : "100%"
|
|
12510
12510
|
}
|
|
12511
12511
|
}));
|
|
12512
12512
|
}, p._callPropsCallbacks = function() {
|
|
@@ -17798,14 +17798,14 @@ const UD = "_container_jr3ij_1", zD = "_header_jr3ij_13", VD = "_title_jr3ij_22"
|
|
|
17798
17798
|
onToggleCollapse: r
|
|
17799
17799
|
}) => {
|
|
17800
17800
|
var ye;
|
|
17801
|
-
const n = pe(), i = ne(null), o = ne(null), a = ne(null), [s, l] = $(400), [c, d] = $(!1), [u, m] = $(!1), [p, w] = $("create"), { treeData: h, selectedNodeId: g, selectNode: y, addNode: v, deleteNode: b, reorderChildren: C, moveNode: S, setTreeData: I } = Pe(), N = e === "edit", L = Bl(), B = N && L, q = (((ye = h[0]) == null ? void 0 : ye.children) ?? []).some((G) => G.isFolder), x =
|
|
17801
|
+
const n = pe(), i = ne(null), o = ne(null), a = ne(null), [s, l] = $(400), [c, d] = $(!1), [u, m] = $(!1), [p, w] = $("create"), { treeData: h, selectedNodeId: g, selectNode: y, addNode: v, deleteNode: b, reorderChildren: C, moveNode: S, setTreeData: I } = Pe(), N = e === "edit", L = Bl(), B = N && L, q = (((ye = h[0]) == null ? void 0 : ye.children) ?? []).some((G) => G.isFolder), x = fe(
|
|
17802
17802
|
(G) => {
|
|
17803
|
-
var le, ae,
|
|
17804
|
-
return ((ae = (le = G.editorConfig) == null ? void 0 : le.context) == null ? void 0 : ae.contentId) ?? ((
|
|
17803
|
+
var le, ae, z, Q;
|
|
17804
|
+
return ((ae = (le = G.editorConfig) == null ? void 0 : le.context) == null ? void 0 : ae.contentId) ?? ((Q = (z = G.editorConfig) == null ? void 0 : z.context) == null ? void 0 : Q.identifier) ?? "";
|
|
17805
17805
|
}
|
|
17806
|
-
), k =
|
|
17807
|
-
var ae,
|
|
17808
|
-
const le = (
|
|
17806
|
+
), k = fe((G) => {
|
|
17807
|
+
var ae, z;
|
|
17808
|
+
const le = (z = (ae = G.categoryMeta) == null ? void 0 : ae.sourcingSettings) == null ? void 0 : z.collection;
|
|
17809
17809
|
return (le == null ? void 0 : le.enableBulkUpload) !== !1;
|
|
17810
17810
|
});
|
|
17811
17811
|
re(() => {
|
|
@@ -17828,17 +17828,17 @@ const UD = "_container_jr3ij_1", zD = "_header_jr3ij_13", VD = "_title_jr3ij_22"
|
|
|
17828
17828
|
}, [y]), R = X(
|
|
17829
17829
|
({ parentId: G, index: le, dragIds: ae }) => {
|
|
17830
17830
|
if (!G) return;
|
|
17831
|
-
const
|
|
17832
|
-
if (!
|
|
17833
|
-
const de =
|
|
17831
|
+
const z = ae[0], Q = Ys(h, z);
|
|
17832
|
+
if (!Q) return;
|
|
17833
|
+
const de = Q.parent;
|
|
17834
17834
|
if (de === G) {
|
|
17835
17835
|
const ve = Ys(h, G);
|
|
17836
17836
|
if (!(ve != null && ve.children)) return;
|
|
17837
|
-
const ie = ve.children.findIndex((ce) => ce.id ===
|
|
17837
|
+
const ie = ve.children.findIndex((ce) => ce.id === z);
|
|
17838
17838
|
if (ie < 0) return;
|
|
17839
17839
|
C(G, ie, le > ie ? le - 1 : le);
|
|
17840
17840
|
} else
|
|
17841
|
-
S(
|
|
17841
|
+
S(z, de ?? "", G);
|
|
17842
17842
|
},
|
|
17843
17843
|
[h, C, S]
|
|
17844
17844
|
), P = X(
|
|
@@ -17846,10 +17846,10 @@ const UD = "_container_jr3ij_1", zD = "_header_jr3ij_13", VD = "_title_jr3ij_22"
|
|
|
17846
17846
|
G.forEach((le) => b(le));
|
|
17847
17847
|
},
|
|
17848
17848
|
[b]
|
|
17849
|
-
),
|
|
17849
|
+
), H = X(
|
|
17850
17850
|
({ parentId: G }) => {
|
|
17851
|
-
var
|
|
17852
|
-
const le = G ?? ((
|
|
17851
|
+
var z;
|
|
17852
|
+
const le = G ?? ((z = h[0]) == null ? void 0 : z.id) ?? "";
|
|
17853
17853
|
if (!le) return { id: crypto.randomUUID() };
|
|
17854
17854
|
const ae = v(le, "unit");
|
|
17855
17855
|
return ae ? { id: ae } : (Le.error(n.outlineTree.maxDepthReachedToast), { id: crypto.randomUUID() });
|
|
@@ -17864,8 +17864,8 @@ const UD = "_container_jr3ij_1", zD = "_header_jr3ij_13", VD = "_title_jr3ij_22"
|
|
|
17864
17864
|
}, [g, v, n]), Ne = X(async () => {
|
|
17865
17865
|
if (d(!1), !!x)
|
|
17866
17866
|
try {
|
|
17867
|
-
const G = await tp(x), le = await fetch(G).then((
|
|
17868
|
-
|
|
17867
|
+
const G = await tp(x), le = await fetch(G).then((Q) => Q.blob()), ae = URL.createObjectURL(le), z = document.createElement("a");
|
|
17868
|
+
z.href = ae, z.download = `${x}-folders.csv`, z.style.display = "none", document.body.appendChild(z), z.click(), document.body.removeChild(z), URL.revokeObjectURL(ae);
|
|
17869
17869
|
} catch {
|
|
17870
17870
|
Le.error(n.outlineTree.downloadCsvFailedToast);
|
|
17871
17871
|
}
|
|
@@ -17956,7 +17956,7 @@ const UD = "_container_jr3ij_1", zD = "_header_jr3ij_13", VD = "_title_jr3ij_22"
|
|
|
17956
17956
|
onSelect: F,
|
|
17957
17957
|
onMove: N ? R : void 0,
|
|
17958
17958
|
onDelete: N ? P : void 0,
|
|
17959
|
-
onCreate: N ?
|
|
17959
|
+
onCreate: N ? H : void 0,
|
|
17960
17960
|
disableEdit: !N,
|
|
17961
17961
|
disableDrop: !N,
|
|
17962
17962
|
selection: g ?? void 0,
|
|
@@ -18624,13 +18624,13 @@ var Nn = (e) => et(e) && !Jo(e) ? e : {
|
|
|
18624
18624
|
const F = Vt(k) ? "" : k || "";
|
|
18625
18625
|
s ? s.forEach((R) => R.setCustomValidity(F)) : b.setCustomValidity(F), b.reportValidity();
|
|
18626
18626
|
}
|
|
18627
|
-
}, S = {}, I = Vl(a), N = io(a), L = I || N, B = (g || zl(a)) && He(a.value) && He(v) || Xo(a) && a.value === "" || v === "" || Array.isArray(v) && !v.length, q = QN.bind(null, h, n, S), x = (k, F, R, P = ir.maxLength,
|
|
18627
|
+
}, S = {}, I = Vl(a), N = io(a), L = I || N, B = (g || zl(a)) && He(a.value) && He(v) || Xo(a) && a.value === "" || v === "" || Array.isArray(v) && !v.length, q = QN.bind(null, h, n, S), x = (k, F, R, P = ir.maxLength, H = ir.minLength) => {
|
|
18628
18628
|
const te = k ? F : R;
|
|
18629
18629
|
S[h] = {
|
|
18630
|
-
type: k ? P :
|
|
18630
|
+
type: k ? P : H,
|
|
18631
18631
|
message: te,
|
|
18632
18632
|
ref: a,
|
|
18633
|
-
...q(k ? P :
|
|
18633
|
+
...q(k ? P : H, te)
|
|
18634
18634
|
};
|
|
18635
18635
|
};
|
|
18636
18636
|
if (o ? !Array.isArray(v) || !v.length : l && (!L && (B || gt(v)) || Vt(v) && !v || N && !fp(s).isValid || I && !pp(s).isValid)) {
|
|
@@ -18647,11 +18647,11 @@ var Nn = (e) => et(e) && !Jo(e) ? e : {
|
|
|
18647
18647
|
let k, F;
|
|
18648
18648
|
const R = Nn(m), P = Nn(u);
|
|
18649
18649
|
if (!gt(v) && !isNaN(v)) {
|
|
18650
|
-
const
|
|
18651
|
-
gt(R.value) || (k =
|
|
18650
|
+
const H = a.valueAsNumber || v && +v;
|
|
18651
|
+
gt(R.value) || (k = H > R.value), gt(P.value) || (F = H < P.value);
|
|
18652
18652
|
} else {
|
|
18653
|
-
const
|
|
18654
|
-
It(R.value) && v && (k = Se ? te(v) > te(R.value) : Ne ? v > R.value :
|
|
18653
|
+
const H = a.valueAsDate || new Date(v), te = (Ie) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ie), Se = a.type == "time", Ne = a.type == "week";
|
|
18654
|
+
It(R.value) && v && (k = Se ? te(v) > te(R.value) : Ne ? v > R.value : H > new Date(R.value)), It(P.value) && v && (F = Se ? te(v) < te(P.value) : Ne ? v < P.value : H < new Date(P.value));
|
|
18655
18655
|
}
|
|
18656
18656
|
if ((k || F) && (x(!!k, R.message, P.message, ir.max, ir.min), !n))
|
|
18657
18657
|
return C(S[h].message), S;
|
|
@@ -18777,19 +18777,19 @@ function ox(e = {}) {
|
|
|
18777
18777
|
}));
|
|
18778
18778
|
}, v = () => {
|
|
18779
18779
|
r.dirtyFields = en(i, o);
|
|
18780
|
-
}, b = (_, A = [], D,
|
|
18781
|
-
if (
|
|
18780
|
+
}, b = (_, A = [], D, V, j = !0, W = !0) => {
|
|
18781
|
+
if (V && D && !t.disabled) {
|
|
18782
18782
|
if (a.action = !0, W && Array.isArray(Y(n, _))) {
|
|
18783
|
-
const
|
|
18784
|
-
j && qe(n, _,
|
|
18783
|
+
const U = D(Y(n, _), V.argA, V.argB);
|
|
18784
|
+
j && qe(n, _, U);
|
|
18785
18785
|
}
|
|
18786
18786
|
if (W && Array.isArray(Y(r.errors, _))) {
|
|
18787
|
-
const
|
|
18788
|
-
j && qe(r.errors, _,
|
|
18787
|
+
const U = D(Y(r.errors, _), V.argA, V.argB);
|
|
18788
|
+
j && qe(r.errors, _, U), nx(r.errors, _);
|
|
18789
18789
|
}
|
|
18790
18790
|
if ((u.touchedFields || m.touchedFields) && W && Array.isArray(Y(r.touchedFields, _))) {
|
|
18791
|
-
const
|
|
18792
|
-
j && qe(r.touchedFields, _,
|
|
18791
|
+
const U = D(Y(r.touchedFields, _), V.argA, V.argB);
|
|
18792
|
+
j && qe(r.touchedFields, _, U);
|
|
18793
18793
|
}
|
|
18794
18794
|
(u.dirtyFields || m.dirtyFields) && v(), p.state.next({
|
|
18795
18795
|
name: _,
|
|
@@ -18811,31 +18811,31 @@ function ox(e = {}) {
|
|
|
18811
18811
|
});
|
|
18812
18812
|
}, I = (_) => {
|
|
18813
18813
|
const A = oo(_) ? [_] : Ta(_);
|
|
18814
|
-
let D = o,
|
|
18814
|
+
let D = o, V = i;
|
|
18815
18815
|
for (let j = 0; j < A.length - 1; j++) {
|
|
18816
18816
|
const W = A[j];
|
|
18817
|
-
if (D = gt(D) ? D : D[W],
|
|
18817
|
+
if (D = gt(D) ? D : D[W], V = gt(V) ? V : V[W], D === null && V !== null)
|
|
18818
18818
|
return !0;
|
|
18819
18819
|
}
|
|
18820
18820
|
return !1;
|
|
18821
|
-
}, N = (_, A, D,
|
|
18821
|
+
}, N = (_, A, D, V) => {
|
|
18822
18822
|
const j = Y(n, _);
|
|
18823
18823
|
if (j) {
|
|
18824
18824
|
if (I(_))
|
|
18825
18825
|
return;
|
|
18826
|
-
const W = He(Y(o, _)),
|
|
18827
|
-
He(
|
|
18826
|
+
const W = He(Y(o, _)), U = Y(o, _, He(D) ? Y(i, _) : D);
|
|
18827
|
+
He(U) || V && V.defaultChecked || A ? qe(o, _, A ? U : Yd(j._f)) : Se(_, U), a.mount && !a.action && (g(), W && r.isDirty && (u.isDirty || m.isDirty) && (P() || (r.isDirty = !1, p.state.next({ ...r }))), e.shouldUnregister && W && !He(Y(o, _)) && ns(_, s) && (a.watch = !0));
|
|
18828
18828
|
}
|
|
18829
|
-
}, L = (_, A, D,
|
|
18830
|
-
let W = !1,
|
|
18829
|
+
}, L = (_, A, D, V, j) => {
|
|
18830
|
+
let W = !1, U = !1;
|
|
18831
18831
|
const oe = {
|
|
18832
18832
|
name: _
|
|
18833
18833
|
};
|
|
18834
18834
|
if (!t.disabled) {
|
|
18835
|
-
if (!D ||
|
|
18836
|
-
(u.isDirty || m.isDirty) && (
|
|
18835
|
+
if (!D || V) {
|
|
18836
|
+
(u.isDirty || m.isDirty) && (U = r.isDirty, r.isDirty = oe.isDirty = P(), W = U !== oe.isDirty);
|
|
18837
18837
|
const _e = Ht(Y(i, _), A);
|
|
18838
|
-
|
|
18838
|
+
U = !!Y(r.dirtyFields, _), _e !== r.isDirty ? r.dirtyFields = en(i, o) : _e ? ot(r.dirtyFields, _) : qe(r.dirtyFields, _, !0), oe.dirtyFields = r.dirtyFields, W = W || (u.dirtyFields || m.dirtyFields) && U !== !_e;
|
|
18839
18839
|
}
|
|
18840
18840
|
if (D) {
|
|
18841
18841
|
const _e = Y(r.touchedFields, _);
|
|
@@ -18844,26 +18844,26 @@ function ox(e = {}) {
|
|
|
18844
18844
|
W && j && p.state.next(oe);
|
|
18845
18845
|
}
|
|
18846
18846
|
return W ? oe : {};
|
|
18847
|
-
}, B = (_, A, D,
|
|
18847
|
+
}, B = (_, A, D, V) => {
|
|
18848
18848
|
const j = Y(r.errors, _), W = (u.isValid || m.isValid) && Vt(A) && r.isValid !== A;
|
|
18849
|
-
if (t.delayError && D ? (l = h(() => C(_, D)), l(t.delayError)) : (clearTimeout(c), l = null, D ? qe(r.errors, _, D) : ot(r.errors, _), r.errors = { ...r.errors }), (D ? !Ht(j, D) : j) || !ft(
|
|
18850
|
-
const
|
|
18851
|
-
...
|
|
18849
|
+
if (t.delayError && D ? (l = h(() => C(_, D)), l(t.delayError)) : (clearTimeout(c), l = null, D ? qe(r.errors, _, D) : ot(r.errors, _), r.errors = { ...r.errors }), (D ? !Ht(j, D) : j) || !ft(V) || W) {
|
|
18850
|
+
const U = {
|
|
18851
|
+
...V,
|
|
18852
18852
|
...W && Vt(A) ? { isValid: A } : {},
|
|
18853
18853
|
errors: r.errors,
|
|
18854
18854
|
name: _
|
|
18855
18855
|
};
|
|
18856
18856
|
r = {
|
|
18857
18857
|
...r,
|
|
18858
|
-
...
|
|
18859
|
-
}, p.state.next(
|
|
18858
|
+
...U
|
|
18859
|
+
}, p.state.next(U);
|
|
18860
18860
|
}
|
|
18861
18861
|
}, q = async (_) => (y(_, !0), await t.resolver(o, t.context, ZN(_ || s.mount, n, t.criteriaMode, t.shouldUseNativeValidation))), x = async (_) => {
|
|
18862
18862
|
const { errors: A } = await q(_);
|
|
18863
18863
|
if (y(_), _) {
|
|
18864
18864
|
for (const D of _) {
|
|
18865
|
-
const
|
|
18866
|
-
|
|
18865
|
+
const V = Y(A, D);
|
|
18866
|
+
V ? s.array.has(D) && et(V) && !Object.keys(V).some((j) => !Number.isNaN(Number(j))) ? eu(r.errors, { [D]: V }, D) : qe(r.errors, D, V) : ot(r.errors, D);
|
|
18867
18867
|
}
|
|
18868
18868
|
r.errors = { ...r.errors };
|
|
18869
18869
|
} else
|
|
@@ -18878,9 +18878,9 @@ function ox(e = {}) {
|
|
|
18878
18878
|
eventType: A
|
|
18879
18879
|
});
|
|
18880
18880
|
if (et(D))
|
|
18881
|
-
for (const
|
|
18882
|
-
const j = D[
|
|
18883
|
-
j && ie(`${ts}.${
|
|
18881
|
+
for (const V in D) {
|
|
18882
|
+
const j = D[V];
|
|
18883
|
+
j && ie(`${ts}.${V}`, {
|
|
18884
18884
|
message: It(j.message) ? j.message : "",
|
|
18885
18885
|
type: j.type || ir.validate
|
|
18886
18886
|
});
|
|
@@ -18892,23 +18892,23 @@ function ox(e = {}) {
|
|
|
18892
18892
|
return D;
|
|
18893
18893
|
}
|
|
18894
18894
|
return !0;
|
|
18895
|
-
}, F = async ({ fields: _, onlyCheckValid: A, name: D, eventType:
|
|
18895
|
+
}, F = async ({ fields: _, onlyCheckValid: A, name: D, eventType: V, context: j = {
|
|
18896
18896
|
valid: !0,
|
|
18897
18897
|
runRootValidation: !1
|
|
18898
18898
|
} }) => {
|
|
18899
18899
|
if (e.validate && (j.runRootValidation = !0, !await k({
|
|
18900
18900
|
name: D,
|
|
18901
|
-
eventType:
|
|
18901
|
+
eventType: V
|
|
18902
18902
|
}) && (j.valid = !1, A)))
|
|
18903
18903
|
return j.valid;
|
|
18904
18904
|
for (const W in _) {
|
|
18905
|
-
const
|
|
18906
|
-
if (
|
|
18907
|
-
const { _f: oe, ..._e } =
|
|
18905
|
+
const U = _[W];
|
|
18906
|
+
if (U) {
|
|
18907
|
+
const { _f: oe, ..._e } = U;
|
|
18908
18908
|
if (oe) {
|
|
18909
|
-
const Xe = s.array.has(oe.name), Lt =
|
|
18909
|
+
const Xe = s.array.has(oe.name), Lt = U._f && XN(U._f), Rt = u.validatingFields || u.isValidating || m.validatingFields || m.isValidating;
|
|
18910
18910
|
Lt && Rt && y([oe.name], !0);
|
|
18911
|
-
const Sr = await ru(
|
|
18911
|
+
const Sr = await ru(U, s.disabled, o, w, t.shouldUseNativeValidation && !A, Xe);
|
|
18912
18912
|
if (Lt && Rt && y([oe.name]), Sr[oe.name] && (j.valid = !1, A) || (!A && (Y(Sr, oe.name) ? Xe ? eu(r.errors, Sr, oe.name) : qe(r.errors, oe.name, Sr[oe.name]) : ot(r.errors, oe.name)), e.shouldUseNativeValidation && Sr[oe.name]))
|
|
18913
18913
|
break;
|
|
18914
18914
|
}
|
|
@@ -18917,7 +18917,7 @@ function ox(e = {}) {
|
|
|
18917
18917
|
onlyCheckValid: A,
|
|
18918
18918
|
fields: _e,
|
|
18919
18919
|
name: W,
|
|
18920
|
-
eventType:
|
|
18920
|
+
eventType: V
|
|
18921
18921
|
});
|
|
18922
18922
|
}
|
|
18923
18923
|
}
|
|
@@ -18928,45 +18928,45 @@ function ox(e = {}) {
|
|
|
18928
18928
|
A && (A._f.refs ? A._f.refs.every((D) => !rs(D)) : !rs(A._f.ref)) && Qe(_);
|
|
18929
18929
|
}
|
|
18930
18930
|
s.unMount = /* @__PURE__ */ new Set();
|
|
18931
|
-
}, P = (_, A) => !t.disabled && (_ && A && qe(o, _, A), !Ht(
|
|
18931
|
+
}, P = (_, A) => !t.disabled && (_ && A && qe(o, _, A), !Ht(Q(), i)), H = (_, A, D) => Xs(_, s, {
|
|
18932
18932
|
...a.mount ? o : He(A) ? i : It(_) ? { [_]: A } : A
|
|
18933
|
-
}, D, A), te = (_) => lp(Y(a.mount ? o : i, _, t.shouldUnregister ? Y(i, _, []) : [])), Se = (_, A, D = {},
|
|
18933
|
+
}, D, A), te = (_) => lp(Y(a.mount ? o : i, _, t.shouldUnregister ? Y(i, _, []) : [])), Se = (_, A, D = {}, V = !1) => {
|
|
18934
18934
|
const j = Y(n, _);
|
|
18935
18935
|
let W = A;
|
|
18936
18936
|
if (j) {
|
|
18937
|
-
const
|
|
18938
|
-
|
|
18937
|
+
const U = j._f;
|
|
18938
|
+
U && (!U.disabled && qe(o, _, hp(A, U)), W = Xo(U.ref) && gt(A) ? "" : A, dp(U.ref) ? [...U.ref.options].forEach((oe) => oe.selected = W.includes(oe.value)) : U.refs ? io(U.ref) ? U.refs.forEach((oe) => {
|
|
18939
18939
|
(!oe.defaultChecked || !oe.disabled) && (Array.isArray(W) ? oe.checked = !!W.find((_e) => _e === oe.value) : oe.checked = W === oe.value || !!W);
|
|
18940
|
-
}) :
|
|
18940
|
+
}) : U.refs.forEach((oe) => oe.checked = oe.value === W) : zl(U.ref) ? U.ref.value = "" : (U.ref.value = W, U.ref.type || p.state.next({
|
|
18941
18941
|
name: _,
|
|
18942
|
-
values:
|
|
18942
|
+
values: V ? o : tt(o)
|
|
18943
18943
|
})));
|
|
18944
18944
|
}
|
|
18945
|
-
(D.shouldDirty || D.shouldTouch) && L(_, W, D.shouldTouch, D.shouldDirty, !0), D.shouldValidate &&
|
|
18946
|
-
}, Ne = (_, A, D,
|
|
18945
|
+
(D.shouldDirty || D.shouldTouch) && L(_, W, D.shouldTouch, D.shouldDirty, !0), D.shouldValidate && z(_);
|
|
18946
|
+
}, Ne = (_, A, D, V = !1) => {
|
|
18947
18947
|
for (const j in A) {
|
|
18948
18948
|
if (!A.hasOwnProperty(j))
|
|
18949
18949
|
return;
|
|
18950
|
-
const W = A[j],
|
|
18951
|
-
(s.array.has(_) || et(W) || oe && !oe._f) && !on(W) ? Ne(
|
|
18950
|
+
const W = A[j], U = _ + "." + j, oe = Y(n, U);
|
|
18951
|
+
(s.array.has(_) || et(W) || oe && !oe._f) && !on(W) ? Ne(U, W, D, V) : Se(U, W, D, V);
|
|
18952
18952
|
}
|
|
18953
|
-
}, Ie = (_, A, D,
|
|
18954
|
-
const j = Y(n, _), W = s.array.has(_),
|
|
18955
|
-
if (_e || qe(o, _,
|
|
18953
|
+
}, Ie = (_, A, D, V) => {
|
|
18954
|
+
const j = Y(n, _), W = s.array.has(_), U = V ? A : tt(A), oe = Y(o, _), _e = Ht(oe, U);
|
|
18955
|
+
if (_e || qe(o, _, U), W)
|
|
18956
18956
|
p.array.next({
|
|
18957
18957
|
name: _,
|
|
18958
|
-
values:
|
|
18958
|
+
values: V ? o : tt(o)
|
|
18959
18959
|
}), (u.isDirty || u.dirtyFields || m.isDirty || m.dirtyFields) && D.shouldDirty && (v(), p.state.next({
|
|
18960
18960
|
name: _,
|
|
18961
18961
|
dirtyFields: r.dirtyFields,
|
|
18962
|
-
isDirty: P(_,
|
|
18962
|
+
isDirty: P(_, U)
|
|
18963
18963
|
}));
|
|
18964
18964
|
else {
|
|
18965
|
-
const Xe = Array.isArray(
|
|
18966
|
-
!j || j._f || gt(
|
|
18965
|
+
const Xe = Array.isArray(U) && !U.length || ft(U);
|
|
18966
|
+
!j || j._f || gt(U) || Xe ? Se(_, U, D, V) : Ne(_, U, D, V);
|
|
18967
18967
|
}
|
|
18968
18968
|
if (!_e) {
|
|
18969
|
-
const Xe = ns(_, s), Lt =
|
|
18969
|
+
const Xe = ns(_, s), Lt = V ? o : tt(o);
|
|
18970
18970
|
p.state.next({
|
|
18971
18971
|
...Xe && r,
|
|
18972
18972
|
name: a.mount || Xe ? _ : void 0,
|
|
@@ -18980,8 +18980,8 @@ function ox(e = {}) {
|
|
|
18980
18980
|
...o,
|
|
18981
18981
|
...D
|
|
18982
18982
|
};
|
|
18983
|
-
for (const
|
|
18984
|
-
Ie(
|
|
18983
|
+
for (const V of s.mount)
|
|
18984
|
+
Ie(V, Y(D, V), A, !0);
|
|
18985
18985
|
p.state.next({
|
|
18986
18986
|
...r,
|
|
18987
18987
|
name: void 0,
|
|
@@ -18992,13 +18992,13 @@ function ox(e = {}) {
|
|
|
18992
18992
|
}, le = async (_) => {
|
|
18993
18993
|
a.mount = !0;
|
|
18994
18994
|
const A = _.target;
|
|
18995
|
-
let D = A.name,
|
|
18995
|
+
let D = A.name, V = !0;
|
|
18996
18996
|
const j = Y(n, D), W = (_e) => {
|
|
18997
|
-
|
|
18998
|
-
},
|
|
18997
|
+
V = Number.isNaN(_e) || on(_e) && isNaN(_e.getTime()) || Ht(_e, Y(o, D, _e));
|
|
18998
|
+
}, U = Zd(t.mode), oe = Zd(t.reValidateMode);
|
|
18999
18999
|
if (j) {
|
|
19000
19000
|
let _e, Xe;
|
|
19001
|
-
const Lt = A.type ? Yd(j._f) : Zs(_), Rt = _.type === jr.BLUR || _.type === jr.FOCUS_OUT, Sr = !JN(j._f) && !e.validate && !t.resolver && !Y(r.errors, D) && !j._f.deps || rx(Rt, Y(r.touchedFields, D), r.isSubmitted, oe,
|
|
19001
|
+
const Lt = A.type ? Yd(j._f) : Zs(_), Rt = _.type === jr.BLUR || _.type === jr.FOCUS_OUT, Sr = !JN(j._f) && !e.validate && !t.resolver && !Y(r.errors, D) && !j._f.deps || rx(Rt, Y(r.touchedFields, D), r.isSubmitted, oe, U), ci = ns(D, s, Rt);
|
|
19002
19002
|
qe(o, D, Lt), Rt ? (!A || !A.readOnly) && (j._f.onBlur && j._f.onBlur(_), l && l(0)) : j._f.onChange && j._f.onChange(_);
|
|
19003
19003
|
const Zr = L(D, Lt, Rt), lt = !ft(Zr) || ci;
|
|
19004
19004
|
if (!Rt && p.state.next({
|
|
@@ -19012,37 +19012,37 @@ function ox(e = {}) {
|
|
|
19012
19012
|
eventType: _.type
|
|
19013
19013
|
}), !Rt && ci && p.state.next({ ...r }), t.resolver) {
|
|
19014
19014
|
const { errors: bt } = await q([D]);
|
|
19015
|
-
if (y([D]), W(Lt), !
|
|
19015
|
+
if (y([D]), W(Lt), !V) {
|
|
19016
19016
|
!ft(Zr) && p.state.next(Zr);
|
|
19017
19017
|
return;
|
|
19018
19018
|
}
|
|
19019
19019
|
const Dt = Jd(r.errors, n, D), rr = Jd(bt, n, Dt.name || D);
|
|
19020
19020
|
_e = rr.error, D = rr.name, Xe = ft(bt);
|
|
19021
19021
|
} else
|
|
19022
|
-
y([D], !0), _e = (await ru(j, s.disabled, o, w, t.shouldUseNativeValidation))[D], y([D]), W(Lt),
|
|
19022
|
+
y([D], !0), _e = (await ru(j, s.disabled, o, w, t.shouldUseNativeValidation))[D], y([D]), W(Lt), V && (_e ? Xe = !1 : (u.isValid || m.isValid) && (Xe = await F({
|
|
19023
19023
|
fields: n,
|
|
19024
19024
|
onlyCheckValid: !0,
|
|
19025
19025
|
name: D,
|
|
19026
19026
|
eventType: _.type
|
|
19027
19027
|
})));
|
|
19028
|
-
|
|
19028
|
+
V && (j._f.deps && (!Array.isArray(j._f.deps) || j._f.deps.length > 0) && z(j._f.deps), B(D, Xe, _e, Zr));
|
|
19029
19029
|
}
|
|
19030
19030
|
}, ae = (_, A) => {
|
|
19031
19031
|
if (Y(r.errors, A) && _.focus)
|
|
19032
19032
|
return _.focus(), 1;
|
|
19033
|
-
},
|
|
19034
|
-
let D,
|
|
19033
|
+
}, z = async (_, A = {}) => {
|
|
19034
|
+
let D, V;
|
|
19035
19035
|
const j = Bo(_);
|
|
19036
19036
|
if (t.resolver) {
|
|
19037
19037
|
const W = await x(He(_) ? _ : j);
|
|
19038
|
-
D = ft(W),
|
|
19039
|
-
} else _ ? (
|
|
19040
|
-
const
|
|
19038
|
+
D = ft(W), V = _ ? !j.some((U) => Y(W, U)) : D;
|
|
19039
|
+
} else _ ? (V = (await Promise.all(j.map(async (W) => {
|
|
19040
|
+
const U = Y(n, W);
|
|
19041
19041
|
return await F({
|
|
19042
|
-
fields:
|
|
19042
|
+
fields: U && U._f ? { [W]: U } : U,
|
|
19043
19043
|
eventType: jr.TRIGGER
|
|
19044
19044
|
});
|
|
19045
|
-
}))).every(Boolean), !(!
|
|
19045
|
+
}))).every(Boolean), !(!V && !r.isValid) && g()) : V = D = await F({
|
|
19046
19046
|
fields: n,
|
|
19047
19047
|
name: _,
|
|
19048
19048
|
eventType: jr.TRIGGER
|
|
@@ -19051,12 +19051,12 @@ function ox(e = {}) {
|
|
|
19051
19051
|
...!It(_) || (u.isValid || m.isValid) && D !== r.isValid ? {} : { name: _ },
|
|
19052
19052
|
...t.resolver || !_ ? { isValid: D } : {},
|
|
19053
19053
|
errors: r.errors
|
|
19054
|
-
}), A.shouldFocus && !
|
|
19055
|
-
},
|
|
19054
|
+
}), A.shouldFocus && !V && xi(n, ae, _ ? j : s.mount), V;
|
|
19055
|
+
}, Q = (_, A) => {
|
|
19056
19056
|
let D = {
|
|
19057
19057
|
...a.mount ? o : i
|
|
19058
19058
|
};
|
|
19059
|
-
return A && (D = cp(A.dirtyFields ? r.dirtyFields : r.touchedFields, D)), He(_) ? D : It(_) ? Y(D, _) : _.map((
|
|
19059
|
+
return A && (D = cp(A.dirtyFields ? r.dirtyFields : r.touchedFields, D)), He(_) ? D : It(_) ? Y(D, _) : _.map((V) => Y(D, V));
|
|
19060
19060
|
}, de = (_, A) => ({
|
|
19061
19061
|
invalid: !!Y((A || r).errors, _),
|
|
19062
19062
|
isDirty: !!Y((A || r).dirtyFields, _),
|
|
@@ -19074,19 +19074,19 @@ function ox(e = {}) {
|
|
|
19074
19074
|
errors: {}
|
|
19075
19075
|
});
|
|
19076
19076
|
}, ie = (_, A, D) => {
|
|
19077
|
-
const
|
|
19077
|
+
const V = (Y(n, _, { _f: {} })._f || {}).ref, j = Y(r.errors, _) || {}, { ref: W, message: U, type: oe, ..._e } = j;
|
|
19078
19078
|
qe(r.errors, _, {
|
|
19079
19079
|
..._e,
|
|
19080
19080
|
...A,
|
|
19081
|
-
ref:
|
|
19081
|
+
ref: V
|
|
19082
19082
|
}), p.state.next({
|
|
19083
19083
|
name: _,
|
|
19084
19084
|
errors: r.errors,
|
|
19085
19085
|
isValid: !1
|
|
19086
|
-
}), D && D.shouldFocus &&
|
|
19086
|
+
}), D && D.shouldFocus && V && V.focus && V.focus();
|
|
19087
19087
|
}, ce = (_, A) => Et(_) ? p.state.subscribe({
|
|
19088
|
-
next: (D) => "values" in D && _(D.values ||
|
|
19089
|
-
}) :
|
|
19088
|
+
next: (D) => "values" in D && _(D.values || H(void 0, A), D)
|
|
19089
|
+
}) : H(_, A, !0), je = (_) => p.state.subscribe({
|
|
19090
19090
|
next: (A) => {
|
|
19091
19091
|
if (tx(_.name, A.name, _.exact) && ex(A, _.formState || u, Z, _.reRenderRoot)) {
|
|
19092
19092
|
const D = { ...o };
|
|
@@ -19123,7 +19123,7 @@ function ox(e = {}) {
|
|
|
19123
19123
|
}
|
|
19124
19124
|
}, Ge = (_, A = {}) => {
|
|
19125
19125
|
let D = Y(n, _);
|
|
19126
|
-
const
|
|
19126
|
+
const V = Vt(A.disabled) || Vt(t.disabled), j = !s.registerName.has(_) && D && D._f && !D._f.mount;
|
|
19127
19127
|
return qe(n, _, {
|
|
19128
19128
|
...D || {},
|
|
19129
19129
|
_f: {
|
|
@@ -19136,7 +19136,7 @@ function ox(e = {}) {
|
|
|
19136
19136
|
disabled: Vt(A.disabled) ? A.disabled : t.disabled,
|
|
19137
19137
|
name: _
|
|
19138
19138
|
}) : N(_, !0, A.value), {
|
|
19139
|
-
...
|
|
19139
|
+
...V ? { disabled: A.disabled || t.disabled } : {},
|
|
19140
19140
|
...t.progressive ? {
|
|
19141
19141
|
required: !!A.required,
|
|
19142
19142
|
min: bi(A.min),
|
|
@@ -19151,8 +19151,8 @@ function ox(e = {}) {
|
|
|
19151
19151
|
ref: (W) => {
|
|
19152
19152
|
if (W) {
|
|
19153
19153
|
s.registerName.add(_), Ge(_, A), s.registerName.delete(_), D = Y(n, _);
|
|
19154
|
-
const
|
|
19155
|
-
if (oe ? _e.find((Xe) => Xe ===
|
|
19154
|
+
const U = He(W.value) && W.querySelectorAll && W.querySelectorAll("input,select,textarea")[0] || W, oe = GN(U), _e = D._f.refs || [];
|
|
19155
|
+
if (oe ? _e.find((Xe) => Xe === U) : U === D._f.ref)
|
|
19156
19156
|
return;
|
|
19157
19157
|
qe(n, _, {
|
|
19158
19158
|
_f: {
|
|
@@ -19160,33 +19160,33 @@ function ox(e = {}) {
|
|
|
19160
19160
|
...oe ? {
|
|
19161
19161
|
refs: [
|
|
19162
19162
|
..._e.filter(rs),
|
|
19163
|
-
|
|
19163
|
+
U,
|
|
19164
19164
|
...Array.isArray(Y(i, _)) ? [{}] : []
|
|
19165
19165
|
],
|
|
19166
|
-
ref: { type:
|
|
19167
|
-
} : { ref:
|
|
19166
|
+
ref: { type: U.type, name: _ }
|
|
19167
|
+
} : { ref: U }
|
|
19168
19168
|
}
|
|
19169
|
-
}), N(_, !1, void 0,
|
|
19169
|
+
}), N(_, !1, void 0, U);
|
|
19170
19170
|
} else
|
|
19171
19171
|
D = Y(n, _, {}), D._f && (D._f.mount = !1), (t.shouldUnregister || A.shouldUnregister) && !(np(s.array, _) && a.action) && s.unMount.add(_);
|
|
19172
19172
|
}
|
|
19173
19173
|
};
|
|
19174
19174
|
}, se = () => t.shouldFocusError && !t.shouldUseNativeValidation && xi(n, ae, s.mount), Ze = (_) => {
|
|
19175
19175
|
Vt(_) && (p.state.next({ disabled: _ }), xi(n, (A, D) => {
|
|
19176
|
-
const
|
|
19177
|
-
|
|
19178
|
-
j.disabled =
|
|
19176
|
+
const V = Y(n, D);
|
|
19177
|
+
V && (A.disabled = V._f.disabled || _, Array.isArray(V._f.refs) && V._f.refs.forEach((j) => {
|
|
19178
|
+
j.disabled = V._f.disabled || _;
|
|
19179
19179
|
}));
|
|
19180
19180
|
}, 0, !1));
|
|
19181
19181
|
}, Ke = (_, A) => async (D) => {
|
|
19182
|
-
let
|
|
19182
|
+
let V;
|
|
19183
19183
|
D && (D.preventDefault && D.preventDefault(), D.persist && D.persist());
|
|
19184
19184
|
let j = tt(o);
|
|
19185
19185
|
if (p.state.next({
|
|
19186
19186
|
isSubmitting: !0
|
|
19187
19187
|
}), t.resolver) {
|
|
19188
|
-
const { errors: W, values:
|
|
19189
|
-
y(), r.errors = W, j = tt(
|
|
19188
|
+
const { errors: W, values: U } = await q();
|
|
19189
|
+
y(), r.errors = W, j = tt(U);
|
|
19190
19190
|
} else
|
|
19191
19191
|
await F({
|
|
19192
19192
|
fields: n,
|
|
@@ -19202,36 +19202,36 @@ function ox(e = {}) {
|
|
|
19202
19202
|
try {
|
|
19203
19203
|
await _(j, D);
|
|
19204
19204
|
} catch (W) {
|
|
19205
|
-
|
|
19205
|
+
V = W;
|
|
19206
19206
|
}
|
|
19207
19207
|
} else
|
|
19208
19208
|
A && await A({ ...r.errors }, D), se(), setTimeout(se);
|
|
19209
19209
|
if (p.state.next({
|
|
19210
19210
|
isSubmitted: !0,
|
|
19211
19211
|
isSubmitting: !1,
|
|
19212
|
-
isSubmitSuccessful: ft(r.errors) && !
|
|
19212
|
+
isSubmitSuccessful: ft(r.errors) && !V,
|
|
19213
19213
|
submitCount: r.submitCount + 1,
|
|
19214
19214
|
errors: r.errors
|
|
19215
|
-
}),
|
|
19216
|
-
throw
|
|
19215
|
+
}), V)
|
|
19216
|
+
throw V;
|
|
19217
19217
|
}, We = (_, A = {}) => {
|
|
19218
19218
|
Y(n, _) && (He(A.defaultValue) ? ye(_, tt(Y(i, _))) : (ye(_, A.defaultValue), qe(i, _, tt(A.defaultValue))), A.keepTouched || ot(r.touchedFields, _), A.keepDirty || (ot(r.dirtyFields, _), r.isDirty = A.defaultValue ? P(_, tt(Y(i, _))) : P()), A.keepError || (ot(r.errors, _), u.isValid && g()), p.state.next({ ...r }));
|
|
19219
19219
|
}, nt = (_, A = {}) => {
|
|
19220
|
-
const D = _ ? tt(_) : i,
|
|
19220
|
+
const D = _ ? tt(_) : i, V = tt(D), j = ft(_), W = V;
|
|
19221
19221
|
if (A.keepDefaultValues || (i = D), !A.keepValues) {
|
|
19222
19222
|
if (A.keepDirtyValues) {
|
|
19223
|
-
const
|
|
19223
|
+
const U = /* @__PURE__ */ new Set([
|
|
19224
19224
|
...s.mount,
|
|
19225
19225
|
...Object.keys(en(i, o))
|
|
19226
19226
|
]);
|
|
19227
|
-
for (const oe of Array.from(
|
|
19227
|
+
for (const oe of Array.from(U)) {
|
|
19228
19228
|
const _e = Y(r.dirtyFields, oe), Xe = Y(o, oe), Lt = Y(W, oe);
|
|
19229
19229
|
_e && !He(Xe) ? qe(W, oe, Xe) : !_e && !He(Lt) && ye(oe, Lt);
|
|
19230
19230
|
}
|
|
19231
19231
|
} else {
|
|
19232
19232
|
if (Sa && He(_))
|
|
19233
|
-
for (const
|
|
19234
|
-
const oe = Y(n,
|
|
19233
|
+
for (const U of s.mount) {
|
|
19234
|
+
const oe = Y(n, U);
|
|
19235
19235
|
if (oe && oe._f) {
|
|
19236
19236
|
const _e = Array.isArray(oe._f.refs) ? oe._f.refs[0] : oe._f.ref;
|
|
19237
19237
|
if (Xo(_e)) {
|
|
@@ -19244,15 +19244,15 @@ function ox(e = {}) {
|
|
|
19244
19244
|
}
|
|
19245
19245
|
}
|
|
19246
19246
|
if (A.keepFieldsRef)
|
|
19247
|
-
for (const
|
|
19248
|
-
ye(
|
|
19247
|
+
for (const U of s.mount)
|
|
19248
|
+
ye(U, Y(W, U));
|
|
19249
19249
|
else
|
|
19250
19250
|
n = {};
|
|
19251
19251
|
}
|
|
19252
19252
|
if (t.shouldUnregister) {
|
|
19253
19253
|
if (o = A.keepDefaultValues ? tt(i) : {}, A.keepFieldsRef)
|
|
19254
|
-
for (const
|
|
19255
|
-
qe(o,
|
|
19254
|
+
for (const U of s.mount)
|
|
19255
|
+
qe(o, U, Y(W, U));
|
|
19256
19256
|
} else
|
|
19257
19257
|
o = tt(W);
|
|
19258
19258
|
p.array.next({
|
|
@@ -19282,9 +19282,9 @@ function ox(e = {}) {
|
|
|
19282
19282
|
defaultValues: i
|
|
19283
19283
|
});
|
|
19284
19284
|
}, Gt = (_, A) => nt(Et(_) ? _(o) : _, { ...t.resetOptions, ...A }), At = (_, A = {}) => {
|
|
19285
|
-
const D = Y(n, _),
|
|
19286
|
-
if (
|
|
19287
|
-
const j =
|
|
19285
|
+
const D = Y(n, _), V = D && D._f;
|
|
19286
|
+
if (V) {
|
|
19287
|
+
const j = V.refs ? V.refs[0] : V.ref;
|
|
19288
19288
|
j.focus && setTimeout(() => {
|
|
19289
19289
|
j.focus(), A.shouldSelect && Et(j.select) && j.select();
|
|
19290
19290
|
});
|
|
@@ -19305,7 +19305,7 @@ function ox(e = {}) {
|
|
|
19305
19305
|
_runSchema: q,
|
|
19306
19306
|
_updateIsValidating: y,
|
|
19307
19307
|
_focusError: se,
|
|
19308
|
-
_getWatch:
|
|
19308
|
+
_getWatch: H,
|
|
19309
19309
|
_getDirty: P,
|
|
19310
19310
|
_setValid: g,
|
|
19311
19311
|
_setFieldArray: b,
|
|
@@ -19357,13 +19357,13 @@ function ox(e = {}) {
|
|
|
19357
19357
|
}
|
|
19358
19358
|
},
|
|
19359
19359
|
subscribe: xe,
|
|
19360
|
-
trigger:
|
|
19360
|
+
trigger: z,
|
|
19361
19361
|
register: Ge,
|
|
19362
19362
|
handleSubmit: Ke,
|
|
19363
19363
|
watch: ce,
|
|
19364
19364
|
setValue: ye,
|
|
19365
19365
|
setValues: G,
|
|
19366
|
-
getValues:
|
|
19366
|
+
getValues: Q,
|
|
19367
19367
|
reset: Gt,
|
|
19368
19368
|
resetField: We,
|
|
19369
19369
|
resetDefaultValues: (_, A = {}) => {
|
|
@@ -20357,24 +20357,24 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20357
20357
|
onSelect: r,
|
|
20358
20358
|
onClose: n
|
|
20359
20359
|
}) => {
|
|
20360
|
-
const i = pe(), [o, a] = $("my"), [s, l] = $(""), [c, d] = $([]), [u, m] = $(0), [p, w] = $(!1), [h, g] = $(null), [y, v] = $(0), [b, C] = $(null), [S, I] = $(""), [N, L] = $(!1), [B, q] = $(""), x = ne(null), k =
|
|
20361
|
-
var
|
|
20362
|
-
return ((de = (
|
|
20363
|
-
}), F =
|
|
20364
|
-
var
|
|
20365
|
-
return ((de = (
|
|
20366
|
-
}), R =
|
|
20367
|
-
(
|
|
20368
|
-
var
|
|
20369
|
-
return ((ve = (de = (
|
|
20370
|
-
}
|
|
20371
|
-
), P =
|
|
20372
|
-
var
|
|
20373
|
-
return ((ve = (de = (
|
|
20374
|
-
}),
|
|
20375
|
-
var
|
|
20376
|
-
return ((ve = (de = (
|
|
20377
|
-
}), te = X(async (
|
|
20360
|
+
const i = pe(), [o, a] = $("my"), [s, l] = $(""), [c, d] = $([]), [u, m] = $(0), [p, w] = $(!1), [h, g] = $(null), [y, v] = $(0), [b, C] = $(null), [S, I] = $(""), [N, L] = $(!1), [B, q] = $(""), x = ne(null), k = fe((z) => {
|
|
20361
|
+
var Q, de;
|
|
20362
|
+
return ((de = (Q = z.editorConfig) == null ? void 0 : Q.context) == null ? void 0 : de.channel) ?? "";
|
|
20363
|
+
}), F = fe((z) => {
|
|
20364
|
+
var Q, de;
|
|
20365
|
+
return ((de = (Q = z.editorConfig) == null ? void 0 : Q.context) == null ? void 0 : de.uid) ?? "";
|
|
20366
|
+
}), R = fe(
|
|
20367
|
+
(z) => {
|
|
20368
|
+
var Q, de, ve;
|
|
20369
|
+
return ((ve = (de = (Q = z.editorConfig) == null ? void 0 : Q.context) == null ? void 0 : de.cloudStorage) == null ? void 0 : ve.presigned_headers) ?? {};
|
|
20370
|
+
}
|
|
20371
|
+
), P = fe((z) => {
|
|
20372
|
+
var Q, de, ve;
|
|
20373
|
+
return ((ve = (de = (Q = z.editorConfig) == null ? void 0 : Q.config) == null ? void 0 : de.assetConfig) == null ? void 0 : ve.size) ?? 1 * 1024 * 1024;
|
|
20374
|
+
}), H = fe((z) => {
|
|
20375
|
+
var Q, de, ve;
|
|
20376
|
+
return ((ve = (de = (Q = z.editorConfig) == null ? void 0 : Q.config) == null ? void 0 : de.assetConfig) == null ? void 0 : ve.accepted) ?? "image/png,image/jpeg";
|
|
20377
|
+
}), te = X(async (z, Q, de = !1) => {
|
|
20378
20378
|
var ve;
|
|
20379
20379
|
w(!0);
|
|
20380
20380
|
try {
|
|
@@ -20387,9 +20387,9 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20387
20387
|
const je = ((ve = (await Me.post("/action/composite/v3/search", {
|
|
20388
20388
|
request: {
|
|
20389
20389
|
filters: ie,
|
|
20390
|
-
query:
|
|
20390
|
+
query: z,
|
|
20391
20391
|
limit: au,
|
|
20392
|
-
offset:
|
|
20392
|
+
offset: Q,
|
|
20393
20393
|
sort_by: { createdOn: "desc" },
|
|
20394
20394
|
fields: ["identifier", "name", "appIcon", "artifactUrl", "downloadUrl"]
|
|
20395
20395
|
}
|
|
@@ -20403,51 +20403,51 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20403
20403
|
re(() => {
|
|
20404
20404
|
o !== "upload" && (d([]), v(0), te(s, 0));
|
|
20405
20405
|
}, [o]);
|
|
20406
|
-
const Se = ne(), Ne = (
|
|
20407
|
-
l(
|
|
20408
|
-
d([]), v(0), te(
|
|
20406
|
+
const Se = ne(), Ne = (z) => {
|
|
20407
|
+
l(z), clearTimeout(Se.current), Se.current = setTimeout(() => {
|
|
20408
|
+
d([]), v(0), te(z, 0);
|
|
20409
20409
|
}, 400);
|
|
20410
20410
|
}, Ie = () => {
|
|
20411
|
-
const
|
|
20412
|
-
v(
|
|
20411
|
+
const z = y + au;
|
|
20412
|
+
v(z), te(s, z, !0);
|
|
20413
20413
|
}, ye = () => {
|
|
20414
|
-
const
|
|
20415
|
-
|
|
20414
|
+
const z = (h == null ? void 0 : h.artifactUrl) ?? (h == null ? void 0 : h.appIcon) ?? (h == null ? void 0 : h.downloadUrl) ?? "";
|
|
20415
|
+
z && r(z);
|
|
20416
20416
|
};
|
|
20417
20417
|
K.useEffect(() => () => {
|
|
20418
20418
|
S && URL.revokeObjectURL(S);
|
|
20419
20419
|
}, [S]);
|
|
20420
|
-
const G = (
|
|
20420
|
+
const G = (z) => {
|
|
20421
20421
|
var ve;
|
|
20422
|
-
const
|
|
20423
|
-
if (
|
|
20424
|
-
const de =
|
|
20425
|
-
if (!de.includes(
|
|
20422
|
+
const Q = (ve = z.target.files) == null ? void 0 : ve[0];
|
|
20423
|
+
if (z.target.value = "", !Q) return;
|
|
20424
|
+
const de = H.split(",").map((ie) => ie.trim());
|
|
20425
|
+
if (!de.includes(Q.type)) {
|
|
20426
20426
|
const ie = de.map((ce) => ce.replace("image/", "").toUpperCase()).join(", ");
|
|
20427
20427
|
q(i.appIconPickerModal.invalidFileTypeError.replace("{types}", ie));
|
|
20428
20428
|
return;
|
|
20429
20429
|
}
|
|
20430
|
-
if (
|
|
20430
|
+
if (Q.size > P) {
|
|
20431
20431
|
const ie = (P / 1048576).toFixed(0);
|
|
20432
20432
|
q(i.appIconPickerModal.fileTooLargeError.replace("{size}", ie));
|
|
20433
20433
|
return;
|
|
20434
20434
|
}
|
|
20435
|
-
S && URL.revokeObjectURL(S), C(
|
|
20435
|
+
S && URL.revokeObjectURL(S), C(Q), I(URL.createObjectURL(Q)), q("");
|
|
20436
20436
|
}, le = async () => {
|
|
20437
20437
|
if (b) {
|
|
20438
20438
|
L(!0), q("");
|
|
20439
20439
|
try {
|
|
20440
|
-
const
|
|
20440
|
+
const z = await IL(
|
|
20441
20441
|
b.name.split(".").slice(0, -1).join(".") || b.name,
|
|
20442
20442
|
b.type,
|
|
20443
20443
|
F,
|
|
20444
20444
|
k
|
|
20445
|
-
),
|
|
20446
|
-
await AL(
|
|
20447
|
-
const de =
|
|
20445
|
+
), Q = await OL(z, b.name);
|
|
20446
|
+
await AL(Q, b, R);
|
|
20447
|
+
const de = Q.split("?")[0], ve = await DL(z, de, b.type);
|
|
20448
20448
|
r(ve);
|
|
20449
|
-
} catch (
|
|
20450
|
-
q(
|
|
20449
|
+
} catch (z) {
|
|
20450
|
+
q(z instanceof Error ? z.message : i.appIconPickerModal.uploadFailedError);
|
|
20451
20451
|
} finally {
|
|
20452
20452
|
L(!1);
|
|
20453
20453
|
}
|
|
@@ -20476,28 +20476,28 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20476
20476
|
className: Ce.searchInput,
|
|
20477
20477
|
placeholder: i.appIconPickerModal.searchPlaceholder,
|
|
20478
20478
|
value: s,
|
|
20479
|
-
onChange: (
|
|
20479
|
+
onChange: (z) => Ne(z.target.value)
|
|
20480
20480
|
}
|
|
20481
20481
|
)
|
|
20482
20482
|
] }),
|
|
20483
20483
|
p && c.length === 0 ? /* @__PURE__ */ T("div", { className: Ce.loadingRow, children: [
|
|
20484
20484
|
/* @__PURE__ */ f(Eo, { size: 20, className: Ce.spinner }),
|
|
20485
20485
|
/* @__PURE__ */ f("span", { children: i.appIconPickerModal.loadingText })
|
|
20486
|
-
] }) : c.length === 0 ? /* @__PURE__ */ f("div", { className: Ce.empty, children: i.appIconPickerModal.noImagesFound }) : /* @__PURE__ */ f("div", { className: Ce.grid, children: c.map((
|
|
20487
|
-
const
|
|
20486
|
+
] }) : c.length === 0 ? /* @__PURE__ */ f("div", { className: Ce.empty, children: i.appIconPickerModal.noImagesFound }) : /* @__PURE__ */ f("div", { className: Ce.grid, children: c.map((z) => {
|
|
20487
|
+
const Q = z.appIcon ?? z.artifactUrl ?? z.downloadUrl ?? "", de = (h == null ? void 0 : h.identifier) === z.identifier;
|
|
20488
20488
|
return /* @__PURE__ */ T(
|
|
20489
20489
|
"button",
|
|
20490
20490
|
{
|
|
20491
20491
|
type: "button",
|
|
20492
20492
|
className: `${Ce.imgCell} ${de ? Ce.imgCellSelected : ""}`,
|
|
20493
|
-
onClick: () => g(
|
|
20494
|
-
title:
|
|
20493
|
+
onClick: () => g(z),
|
|
20494
|
+
title: z.name,
|
|
20495
20495
|
children: [
|
|
20496
|
-
|
|
20496
|
+
Q ? /* @__PURE__ */ f("img", { src: Q, alt: z.name, className: Ce.thumb }) : /* @__PURE__ */ f("div", { className: Ce.noThumb, children: i.appIconPickerModal.noThumbnailText }),
|
|
20497
20497
|
de && /* @__PURE__ */ f("div", { className: Ce.checkBadge, children: /* @__PURE__ */ f(ii, { size: 12 }) })
|
|
20498
20498
|
]
|
|
20499
20499
|
},
|
|
20500
|
-
|
|
20500
|
+
z.identifier
|
|
20501
20501
|
);
|
|
20502
20502
|
}) }),
|
|
20503
20503
|
ae && !p && /* @__PURE__ */ f("button", { className: Ce.loadMoreBtn, onClick: Ie, children: i.appIconPickerModal.loadMoreButton }),
|
|
@@ -20510,23 +20510,23 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20510
20510
|
{
|
|
20511
20511
|
className: Ce.dropZone,
|
|
20512
20512
|
onClick: () => {
|
|
20513
|
-
var
|
|
20514
|
-
return (
|
|
20513
|
+
var z;
|
|
20514
|
+
return (z = x.current) == null ? void 0 : z.click();
|
|
20515
20515
|
},
|
|
20516
|
-
onDragOver: (
|
|
20517
|
-
onDrop: (
|
|
20518
|
-
|
|
20519
|
-
const
|
|
20520
|
-
|
|
20516
|
+
onDragOver: (z) => z.preventDefault(),
|
|
20517
|
+
onDrop: (z) => {
|
|
20518
|
+
z.preventDefault();
|
|
20519
|
+
const Q = z.dataTransfer.files[0];
|
|
20520
|
+
Q && G({ target: { files: [Q], value: "" } });
|
|
20521
20521
|
},
|
|
20522
20522
|
children: S ? /* @__PURE__ */ f("img", { src: S, alt: i.appIconPickerModal.previewAlt, className: Ce.uploadPreview }) : /* @__PURE__ */ T(Mt, { children: [
|
|
20523
20523
|
/* @__PURE__ */ f(Ns, { size: 32, className: Ce.uploadIcon }),
|
|
20524
20524
|
/* @__PURE__ */ f("p", { className: Ce.dropText, children: i.appIconPickerModal.dropZoneText }),
|
|
20525
|
-
/* @__PURE__ */ f("p", { className: Ce.dropSubtext, children: i.appIconPickerModal.acceptedTypesInfo.replace("{types}",
|
|
20525
|
+
/* @__PURE__ */ f("p", { className: Ce.dropSubtext, children: i.appIconPickerModal.acceptedTypesInfo.replace("{types}", H.split(",").map((z) => z.replace("image/", "").toUpperCase()).join(", ")).replace("{size}", (P / (1024 * 1024)).toFixed(0)) })
|
|
20526
20526
|
] })
|
|
20527
20527
|
}
|
|
20528
20528
|
),
|
|
20529
|
-
/* @__PURE__ */ f("input", { ref: x, type: "file", accept:
|
|
20529
|
+
/* @__PURE__ */ f("input", { ref: x, type: "file", accept: H, className: Ce.hiddenInput, onChange: G }),
|
|
20530
20530
|
b && /* @__PURE__ */ f("p", { className: Ce.fileName, children: b.name }),
|
|
20531
20531
|
B && /* @__PURE__ */ f("p", { className: Ce.errorText, children: B })
|
|
20532
20532
|
] })
|
|
@@ -20901,7 +20901,7 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20901
20901
|
onFormStatusChange: a
|
|
20902
20902
|
}) => {
|
|
20903
20903
|
var Ye, Ge, se, Ze, Ke, We, nt, Gt, At;
|
|
20904
|
-
const s = pe(), l =
|
|
20904
|
+
const s = pe(), l = fe((Z) => Z.editorConfig), c = fe((Z) => Z.rootFormConfig), d = fe((Z) => Z.unitFormConfig), u = fe((Z) => Z.categoryMeta), m = fe((Z) => Z.contentFramework), p = fe((Z) => Z.contentTargetFWIds), { organisationFramework: w, targetFrameworks: h, isLoading: g } = Hl(
|
|
20905
20905
|
m ?? ((Ye = l == null ? void 0 : l.context) == null ? void 0 : Ye.framework),
|
|
20906
20906
|
p ?? ((Ge = l == null ? void 0 : l.context) == null ? void 0 : Ge.targetFWIds)
|
|
20907
20907
|
), {
|
|
@@ -20926,15 +20926,15 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20926
20926
|
Te.children && Z.push(...Te.children);
|
|
20927
20927
|
}
|
|
20928
20928
|
return 0;
|
|
20929
|
-
}, [q, B]), P = (l == null ? void 0 : l.config) ?? {},
|
|
20929
|
+
}, [q, B]), P = (l == null ? void 0 : l.config) ?? {}, H = (l == null ? void 0 : l.context) ?? {}, te = {
|
|
20930
20930
|
editorMode: i,
|
|
20931
20931
|
editableFields: P.editableFields,
|
|
20932
20932
|
objectType: P.objectType,
|
|
20933
20933
|
setDefaultCopyRight: P.setDefaultCopyRight === !0,
|
|
20934
|
-
defaultLicense:
|
|
20935
|
-
contextAdditionalCategories:
|
|
20934
|
+
defaultLicense: H.defaultLicense ?? C,
|
|
20935
|
+
contextAdditionalCategories: H.additionalCategories,
|
|
20936
20936
|
// Host-provided name wins; otherwise resolved from the user-read API.
|
|
20937
|
-
userFullName: ((Gt =
|
|
20937
|
+
userFullName: ((Gt = H.user) == null ? void 0 : Gt.fullName) ?? I,
|
|
20938
20938
|
channelName: S,
|
|
20939
20939
|
collectionAdditionalCategories: v,
|
|
20940
20940
|
contentAdditionalCategories: b,
|
|
@@ -20951,10 +20951,10 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20951
20951
|
Px(G, Ie);
|
|
20952
20952
|
const { updateNode: le } = Pe(), ae = ne(Ie);
|
|
20953
20953
|
ae.current = Ie;
|
|
20954
|
-
const
|
|
20955
|
-
|
|
20956
|
-
const
|
|
20957
|
-
|
|
20954
|
+
const z = ne(B);
|
|
20955
|
+
z.current = B;
|
|
20956
|
+
const Q = ne(o);
|
|
20957
|
+
Q.current = o;
|
|
20958
20958
|
const de = ne(a);
|
|
20959
20959
|
de.current = a;
|
|
20960
20960
|
const ve = ne(
|
|
@@ -20965,7 +20965,7 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20965
20965
|
ce.current = i;
|
|
20966
20966
|
const je = ["review", "read", "sourcingreview", "orgreview"];
|
|
20967
20967
|
re(() => {
|
|
20968
|
-
const Z =
|
|
20968
|
+
const Z = z.current;
|
|
20969
20969
|
if (Z) {
|
|
20970
20970
|
const we = Object.fromEntries(
|
|
20971
20971
|
ae.current.filter((Te) => Te.currentValue !== void 0 && Te.currentValue !== null).map((Te) => [Te.code, Te.currentValue])
|
|
@@ -20983,30 +20983,33 @@ const NL = "_overlay_ga6eh_1", xL = "_modal_ga6eh_12", LL = "_header_ga6eh_24",
|
|
|
20983
20983
|
});
|
|
20984
20984
|
}, []), re(() => {
|
|
20985
20985
|
const Z = G.watch((we, { name: Te }) => {
|
|
20986
|
-
const Wt =
|
|
20986
|
+
const Wt = z.current;
|
|
20987
20987
|
if (!Wt) return;
|
|
20988
20988
|
const _ = ae.current, A = new Set(_.map((j) => j.code));
|
|
20989
20989
|
if (Te && A.has(Te)) {
|
|
20990
20990
|
let j = G.getValues(Te);
|
|
20991
|
-
Te === "dialcodes" && (j = Array.isArray(j) ? j : j ? [j] : []), Te === "shuffle" && (j === !0 && ve.current === !1 && Le(s.sparkMetaForm.shuffleEnabledMessage, { icon: /* @__PURE__ */ f(ml, { size: 16 }) }), ve.current = j)
|
|
20991
|
+
if (Te === "dialcodes" && (j = Array.isArray(j) ? j : j ? [j] : []), Te === "shuffle" && (j === !0 && ve.current === !1 && Le(s.sparkMetaForm.shuffleEnabledMessage, { icon: /* @__PURE__ */ f(ml, { size: 16 }) }), ve.current = j), Te === "framework" && r && typeof j == "string" && j) {
|
|
20992
|
+
const U = fe.getState();
|
|
20993
|
+
U.setContentFramework(j, U.contentTargetFWIds);
|
|
20994
|
+
}
|
|
20992
20995
|
const W = kx(Te, j);
|
|
20993
|
-
W && (le(Wt, W),
|
|
20996
|
+
W && (le(Wt, W), Q.current(W));
|
|
20994
20997
|
} else if (!Te) {
|
|
20995
20998
|
const j = G.getValues(), W = Object.fromEntries(
|
|
20996
20999
|
Object.entries(j).filter(([oe]) => A.has(oe))
|
|
20997
|
-
),
|
|
21000
|
+
), U = Rx(W, {
|
|
20998
21001
|
isReview: je.includes(ce.current),
|
|
20999
21002
|
nodeTitle: ie.current
|
|
21000
21003
|
});
|
|
21001
|
-
Object.keys(
|
|
21004
|
+
Object.keys(U).length > 0 && (le(Wt, U), Q.current(U));
|
|
21002
21005
|
}
|
|
21003
|
-
const D = G.formState.errors,
|
|
21006
|
+
const D = G.formState.errors, V = Array.from(new Set(
|
|
21004
21007
|
Object.keys(D).map((j) => {
|
|
21005
21008
|
var W;
|
|
21006
|
-
return (W = _.find((
|
|
21009
|
+
return (W = _.find((U) => U.code === j)) == null ? void 0 : W.tab;
|
|
21007
21010
|
}).filter(Boolean)
|
|
21008
21011
|
));
|
|
21009
|
-
de.current(Object.keys(D).length === 0,
|
|
21012
|
+
de.current(Object.keys(D).length === 0, V);
|
|
21010
21013
|
});
|
|
21011
21014
|
return () => Z.unsubscribe();
|
|
21012
21015
|
}, [G]), re(() => {
|
|
@@ -21313,7 +21316,7 @@ function LR(e) {
|
|
|
21313
21316
|
activeNodeRect: F,
|
|
21314
21317
|
attributes: R,
|
|
21315
21318
|
setNodeRef: P,
|
|
21316
|
-
listeners:
|
|
21319
|
+
listeners: H,
|
|
21317
21320
|
isDragging: te,
|
|
21318
21321
|
over: Se,
|
|
21319
21322
|
setActivatorNodeRef: Ne,
|
|
@@ -21326,7 +21329,7 @@ function LR(e) {
|
|
|
21326
21329
|
...r
|
|
21327
21330
|
},
|
|
21328
21331
|
disabled: b.draggable
|
|
21329
|
-
}), ye = gg(q, P), G = !!x, le = G && !w && vo(m) && vo(g), ae = !y && te,
|
|
21332
|
+
}), ye = gg(q, P), G = !!x, le = G && !w && vo(m) && vo(g), ae = !y && te, z = ae && le ? Ie : null, de = le ? z ?? (s ?? v)({
|
|
21330
21333
|
rects: h,
|
|
21331
21334
|
activeNodeRect: F,
|
|
21332
21335
|
activeIndex: m,
|
|
@@ -21386,7 +21389,7 @@ function LR(e) {
|
|
|
21386
21389
|
isOver: B,
|
|
21387
21390
|
isSorting: G,
|
|
21388
21391
|
isDragging: te,
|
|
21389
|
-
listeners:
|
|
21392
|
+
listeners: H,
|
|
21390
21393
|
node: L,
|
|
21391
21394
|
overIndex: g,
|
|
21392
21395
|
over: Se,
|
|
@@ -22018,7 +22021,7 @@ const rl = ({ node: e, editorMode: t, type: r, singleQuestion: n, layout: i = "f
|
|
|
22018
22021
|
};
|
|
22019
22022
|
function Zk({ node: e }) {
|
|
22020
22023
|
var y;
|
|
22021
|
-
const t = pe(), r =
|
|
22024
|
+
const t = pe(), r = fe((v) => v.editorConfig), [n, i] = $(() => as(e.mimeType ?? "")), [o, a] = $(!1), [s, l] = $(null), [c, d] = $(
|
|
22022
22025
|
e.metadata ?? {}
|
|
22023
22026
|
), [u, m] = $(!1), p = ne(null), w = ne(null), h = ((y = r == null ? void 0 : r.config) == null ? void 0 : y.previewCdnUrl) ?? zk;
|
|
22024
22027
|
re(() => {
|
|
@@ -22102,7 +22105,7 @@ function Xk({
|
|
|
22102
22105
|
editorMode: t,
|
|
22103
22106
|
singleQuestion: r
|
|
22104
22107
|
}) {
|
|
22105
|
-
const n = pe(), i =
|
|
22108
|
+
const n = pe(), i = fe((p) => p.editorConfig), o = Pe((p) => p.treeData), a = ne(null), s = r ? Fk(o, e.id) : e.identifier, { data: l, isLoading: c, error: d } = ak(
|
|
22106
22109
|
s ?? "",
|
|
22107
22110
|
{ enabled: !!s }
|
|
22108
22111
|
), u = K.useMemo(() => l ? r ? ok(l, e.identifier) : l : null, [l, r, e.identifier]);
|
|
@@ -22294,9 +22297,9 @@ const TP = ({ onClose: e }) => {
|
|
|
22294
22297
|
reorderDialog: n
|
|
22295
22298
|
}) => {
|
|
22296
22299
|
var k, F;
|
|
22297
|
-
const { updateNode: i, markDirty: o } = Pe(), a = t === "edit", s = _a(e), l = pe(), c =
|
|
22298
|
-
var
|
|
22299
|
-
return ((
|
|
22300
|
+
const { updateNode: i, markDirty: o } = Pe(), a = t === "edit", s = _a(e), l = pe(), c = fe((R) => R.relationalFormConfig), d = (R) => c == null ? void 0 : c.find((P) => P.code === R), u = (R) => !c || !!d(R), m = (R, P) => {
|
|
22301
|
+
var H;
|
|
22302
|
+
return ((H = d(R)) == null ? void 0 : H.label) || P;
|
|
22300
22303
|
}, [p, w] = $(!0), h = ((k = e.metadata) == null ? void 0 : k.relationalMetadata) ?? {}, [g, y] = $(
|
|
22301
22304
|
h.name ?? e.name ?? ""
|
|
22302
22305
|
), [v, b] = $(""), [C, S] = $(
|
|
@@ -22305,10 +22308,10 @@ const TP = ({ onClose: e }) => {
|
|
|
22305
22308
|
!!h.optional
|
|
22306
22309
|
);
|
|
22307
22310
|
re(() => {
|
|
22308
|
-
var P,
|
|
22311
|
+
var P, H;
|
|
22309
22312
|
const R = ((P = e.metadata) == null ? void 0 : P.relationalMetadata) ?? {};
|
|
22310
22313
|
y(R.name ?? e.name ?? ""), S(
|
|
22311
|
-
Array.isArray(R.keywords) ? R.keywords : Array.isArray((
|
|
22314
|
+
Array.isArray(R.keywords) ? R.keywords : Array.isArray((H = e.metadata) == null ? void 0 : H.keywords) ? e.metadata.keywords : []
|
|
22312
22315
|
), N(!!R.optional);
|
|
22313
22316
|
}, [e.id]);
|
|
22314
22317
|
const L = () => {
|
|
@@ -22321,7 +22324,7 @@ const TP = ({ onClose: e }) => {
|
|
|
22321
22324
|
}
|
|
22322
22325
|
b("");
|
|
22323
22326
|
}, q = (R) => {
|
|
22324
|
-
const P = C.filter((
|
|
22327
|
+
const P = C.filter((H) => H !== R);
|
|
22325
22328
|
S(P), i(e.id, { keywords: P }), o();
|
|
22326
22329
|
}, x = (R) => {
|
|
22327
22330
|
N(R), i(e.id, { optional: R }), o();
|
|
@@ -22490,10 +22493,10 @@ function hu(e) {
|
|
|
22490
22493
|
}
|
|
22491
22494
|
const uF = ({ editorMode: e, onToolbarEvent: t }) => {
|
|
22492
22495
|
var F;
|
|
22493
|
-
const r = pe(), [n, i] = $("details"), [o, a] = $([]), [s, l] = $(null), [c, d] = $(!1), u = ne(null), m = ne(), { selectedNodeId: p, breadcrumb: w, activeNodeMeta: h, updateNode: g, treeData: y } = Pe(), v =
|
|
22496
|
+
const r = pe(), [n, i] = $("details"), [o, a] = $([]), [s, l] = $(null), [c, d] = $(!1), u = ne(null), m = ne(), { selectedNodeId: p, breadcrumb: w, activeNodeMeta: h, updateNode: g, treeData: y } = Pe(), v = fe(
|
|
22494
22497
|
(R) => {
|
|
22495
|
-
var P,
|
|
22496
|
-
return ((
|
|
22498
|
+
var P, H, te, Se;
|
|
22499
|
+
return ((H = (P = R.editorConfig) == null ? void 0 : P.context) == null ? void 0 : H.contentId) ?? ((Se = (te = R.editorConfig) == null ? void 0 : te.context) == null ? void 0 : Se.identifier) ?? "";
|
|
22497
22500
|
}
|
|
22498
22501
|
), b = p ? Rp(y, p) : null, C = !!b && !b.parent, S = !!(b != null && b.isFolder), I = b && dF.includes(b.mimeType ?? ""), N = (b == null ? void 0 : b.mimeType) === Lp, L = b && !b.isFolder && !I && !C, B = hu(b) ?? (C ? hu(y[0]) : void 0), q = X(() => {
|
|
22499
22502
|
const R = u.current;
|
|
@@ -22657,7 +22660,7 @@ const fF = Ji((e, t) => ({
|
|
|
22657
22660
|
})), hF = 20;
|
|
22658
22661
|
function kp() {
|
|
22659
22662
|
var c;
|
|
22660
|
-
const e =
|
|
22663
|
+
const e = fe((d) => d.editorConfig), t = Pe((d) => d.selectedNodeId), r = Pe((d) => d.treeData), n = X(() => {
|
|
22661
22664
|
if (!t || !r.length) return 0;
|
|
22662
22665
|
function d(u, m, p = 0) {
|
|
22663
22666
|
var w;
|
|
@@ -22677,7 +22680,7 @@ function kp() {
|
|
|
22677
22680
|
return l != null && l.length ? l : [...Vd];
|
|
22678
22681
|
}
|
|
22679
22682
|
function pF() {
|
|
22680
|
-
const e = fF(), t =
|
|
22683
|
+
const e = fF(), t = fe((u) => {
|
|
22681
22684
|
var m, p;
|
|
22682
22685
|
return ((p = (m = u.editorConfig) == null ? void 0 : m.context) == null ? void 0 : p.channel) ?? "";
|
|
22683
22686
|
}), r = kp(), n = ne(), i = X(
|
|
@@ -22892,7 +22895,7 @@ const mF = "_card_jzciw_1", gF = "_addBtn_jzciw_17", yF = "_dragging_jzciw_24",
|
|
|
22892
22895
|
onClose: n
|
|
22893
22896
|
}) => {
|
|
22894
22897
|
var g, y;
|
|
22895
|
-
const i = pe(), o =
|
|
22898
|
+
const i = pe(), o = fe((v) => v.editorConfig), a = fe((v) => v.searchFormConfig), s = fe((v) => v.contentFramework), l = fe((v) => v.contentTargetFWIds), { organisationFramework: c } = Hl(
|
|
22896
22899
|
s ?? ((g = o == null ? void 0 : o.context) == null ? void 0 : g.framework),
|
|
22897
22900
|
l ?? ((y = o == null ? void 0 : o.context) == null ? void 0 : y.targetFWIds)
|
|
22898
22901
|
), [d, u] = $(t), m = a != null && a.length ? a.filter((v) => VF.has(v.code)).map((v) => ({ key: v.code, label: v.label || v.code })) : zF(i);
|
|
@@ -23092,7 +23095,7 @@ const DM = ({ editorMode: e, collapsed: t = !1, onToggleCollapse: r }) => {
|
|
|
23092
23095
|
toggleSort: w,
|
|
23093
23096
|
loadMore: h
|
|
23094
23097
|
} = pF(), { addResource: g, selectedNodeId: y, treeData: v } = Pe(), b = e === "edit", [C, S] = $(!1), [I, N] = $({}), [L, B] = $(null), q = me(() => AM(v), [v]), x = X(
|
|
23095
|
-
(
|
|
23098
|
+
(H) => {
|
|
23096
23099
|
var Ne;
|
|
23097
23100
|
if (!y) {
|
|
23098
23101
|
Le.error(n.libraryDock.selectUnitFirstToast);
|
|
@@ -23106,28 +23109,28 @@ const DM = ({ editorMode: e, collapsed: t = !1, onToggleCollapse: r }) => {
|
|
|
23106
23109
|
});
|
|
23107
23110
|
return;
|
|
23108
23111
|
}
|
|
23109
|
-
if (g(
|
|
23110
|
-
Le.error(n.libraryDock.itemAlreadyAddedToast.replace("{name}",
|
|
23112
|
+
if (g(H, y) === !1) {
|
|
23113
|
+
Le.error(n.libraryDock.itemAlreadyAddedToast.replace("{name}", H.name));
|
|
23111
23114
|
return;
|
|
23112
23115
|
}
|
|
23113
|
-
Le.success(n.libraryDock.itemAddedToast.replace("{name}",
|
|
23116
|
+
Le.success(n.libraryDock.itemAddedToast.replace("{name}", H.name));
|
|
23114
23117
|
},
|
|
23115
23118
|
[y, g, v, n]
|
|
23116
23119
|
), k = X(
|
|
23117
|
-
(
|
|
23118
|
-
N(
|
|
23120
|
+
(H) => {
|
|
23121
|
+
N(H), p(H);
|
|
23119
23122
|
},
|
|
23120
23123
|
[p]
|
|
23121
|
-
), F = X((
|
|
23122
|
-
B(
|
|
23124
|
+
), F = X((H) => {
|
|
23125
|
+
B(H);
|
|
23123
23126
|
}, []), R = X(
|
|
23124
|
-
(
|
|
23125
|
-
x(
|
|
23127
|
+
(H) => {
|
|
23128
|
+
x(H), B(null);
|
|
23126
23129
|
},
|
|
23127
23130
|
[x]
|
|
23128
23131
|
), P = me(
|
|
23129
23132
|
() => Object.values(I).reduce(
|
|
23130
|
-
(
|
|
23133
|
+
(H, te) => H + ((te == null ? void 0 : te.length) ?? 0),
|
|
23131
23134
|
0
|
|
23132
23135
|
),
|
|
23133
23136
|
[I]
|
|
@@ -23159,7 +23162,7 @@ const DM = ({ editorMode: e, collapsed: t = !1, onToggleCollapse: r }) => {
|
|
|
23159
23162
|
className: Ve.searchInput,
|
|
23160
23163
|
placeholder: n.libraryDock.searchPlaceholder,
|
|
23161
23164
|
value: l,
|
|
23162
|
-
onChange: (
|
|
23165
|
+
onChange: (H) => u(H.target.value),
|
|
23163
23166
|
"aria-label": n.libraryDock.searchAriaLabel
|
|
23164
23167
|
}
|
|
23165
23168
|
)
|
|
@@ -23183,7 +23186,7 @@ const DM = ({ editorMode: e, collapsed: t = !1, onToggleCollapse: r }) => {
|
|
|
23183
23186
|
Ve.filterToggleBtn,
|
|
23184
23187
|
C ? Ve.filterToggleBtnActive : ""
|
|
23185
23188
|
].join(" "),
|
|
23186
|
-
onClick: () => S((
|
|
23189
|
+
onClick: () => S((H) => !H),
|
|
23187
23190
|
"aria-label": n.libraryDock.toggleAdvancedFiltersAriaLabel,
|
|
23188
23191
|
"aria-pressed": C,
|
|
23189
23192
|
title: n.libraryDock.advancedFiltersTitle,
|
|
@@ -23198,7 +23201,7 @@ const DM = ({ editorMode: e, collapsed: t = !1, onToggleCollapse: r }) => {
|
|
|
23198
23201
|
/* @__PURE__ */ T("div", { className: Ve.mainArea, children: [
|
|
23199
23202
|
/* @__PURE__ */ f("div", { className: Ve.cardList, role: "list", "aria-label": n.libraryDock.libraryContentAriaLabel, children: o && i.length === 0 ? (
|
|
23200
23203
|
// Loading skeleton
|
|
23201
|
-
Array.from({ length: 4 }).map((
|
|
23204
|
+
Array.from({ length: 4 }).map((H, te) => /* @__PURE__ */ T("div", { className: Ve.skeleton, "aria-hidden": "true", children: [
|
|
23202
23205
|
/* @__PURE__ */ f("div", { className: Ve.skeletonIcon }),
|
|
23203
23206
|
/* @__PURE__ */ T("div", { className: Ve.skeletonText, children: [
|
|
23204
23207
|
/* @__PURE__ */ f("div", { className: Ve.skeletonLine }),
|
|
@@ -23206,16 +23209,16 @@ const DM = ({ editorMode: e, collapsed: t = !1, onToggleCollapse: r }) => {
|
|
|
23206
23209
|
] })
|
|
23207
23210
|
] }, te))
|
|
23208
23211
|
) : i.length > 0 ? /* @__PURE__ */ T(Mt, { children: [
|
|
23209
|
-
i.map((
|
|
23212
|
+
i.map((H) => /* @__PURE__ */ f(
|
|
23210
23213
|
IF,
|
|
23211
23214
|
{
|
|
23212
|
-
item:
|
|
23215
|
+
item: H,
|
|
23213
23216
|
onAdd: x,
|
|
23214
23217
|
onPreview: F,
|
|
23215
23218
|
isDraggable: b,
|
|
23216
|
-
isAdded: q.has(
|
|
23219
|
+
isAdded: q.has(H.identifier)
|
|
23217
23220
|
},
|
|
23218
|
-
|
|
23221
|
+
H.identifier
|
|
23219
23222
|
)),
|
|
23220
23223
|
d && /* @__PURE__ */ f(
|
|
23221
23224
|
"button",
|
|
@@ -23379,7 +23382,7 @@ function NM(e, t, r) {
|
|
|
23379
23382
|
return e.forEach((m, p) => u(m, p === 0)), { nodesModified: n, hierarchy: i };
|
|
23380
23383
|
}
|
|
23381
23384
|
function xM() {
|
|
23382
|
-
const [e, t] = $(!1), r = Pe((d) => d.treeCache), n = Pe((d) => d.treeData), i =
|
|
23385
|
+
const [e, t] = $(!1), r = Pe((d) => d.treeCache), n = Pe((d) => d.treeData), i = fe((d) => d.isDirty), o = fe((d) => d.lastSaved), { setIsDirty: a, setLastSaved: s } = fe(), l = fe((d) => d.editorConfig);
|
|
23383
23386
|
return {
|
|
23384
23387
|
save: X(async () => {
|
|
23385
23388
|
if (!l || e) return;
|
|
@@ -23434,7 +23437,7 @@ function kM(e, t, r, n, i, o = LM) {
|
|
|
23434
23437
|
}
|
|
23435
23438
|
function PM(e) {
|
|
23436
23439
|
var h, g;
|
|
23437
|
-
const t =
|
|
23440
|
+
const t = fe((y) => y.editorConfig), r = fe((y) => y.setButtonLoader), n = fe((y) => y.validateAllForms), i = fe((y) => y.rootFormConfig), o = fe((y) => y.unitFormConfig), a = Pe((y) => y.treeData), s = Pe((y) => y.treeCache), l = Pe((y) => y.selectNode), c = fe((y) => y.contentFramework), d = fe((y) => y.contentTargetFWIds), { organisationFramework: u, targetFrameworks: m } = Hl(
|
|
23438
23441
|
c ?? ((h = t == null ? void 0 : t.context) == null ? void 0 : h.framework),
|
|
23439
23442
|
d ?? ((g = t == null ? void 0 : t.context) == null ? void 0 : g.targetFWIds)
|
|
23440
23443
|
), p = X(() => {
|
|
@@ -23456,7 +23459,7 @@ function PM(e) {
|
|
|
23456
23459
|
Le.error(
|
|
23457
23460
|
`"${b.nodeName}": please fill required field${b.missing.length > 1 ? "s" : ""} — ${b.missing.join(", ")}`
|
|
23458
23461
|
);
|
|
23459
|
-
const { setFormStatus: C } =
|
|
23462
|
+
const { setFormStatus: C } = fe.getState();
|
|
23460
23463
|
return v.forEach((L) => C(L.nodeId, !1)), l(b.nodeId), !1;
|
|
23461
23464
|
}, [a, s, i, o, t, l, u, m]);
|
|
23462
23465
|
return { runAction: X(
|
|
@@ -23511,11 +23514,11 @@ const FM = "_shell_90fon_1", MM = "_workspace_90fon_8", BM = "_sidebarCollapsed_
|
|
|
23511
23514
|
onContentAdded: r,
|
|
23512
23515
|
onHierarchySaved: n
|
|
23513
23516
|
}) => {
|
|
23514
|
-
const i = pe(), [o, a] = $(null), [s, l] = $(!1), [c, d] = $(!1), [u, m] = $(!1), { addResource: p, treeData: w } = Pe(), h =
|
|
23517
|
+
const i = pe(), [o, a] = $(null), [s, l] = $(!1), [c, d] = $(!1), [u, m] = $(!1), { addResource: p, treeData: w } = Pe(), h = fe((P) => P.setFormStatus), [g, y] = $(!0), v = Pe((P) => P.selectedNodeId), { save: b, isSaving: C, isDirty: S, lastSaved: I } = xM(), { runAction: N, checkRequiredFields: L } = PM(b);
|
|
23515
23518
|
re(() => {
|
|
23516
23519
|
if (!S) return;
|
|
23517
|
-
const P = (
|
|
23518
|
-
|
|
23520
|
+
const P = (H) => {
|
|
23521
|
+
H.preventDefault(), H.returnValue = "";
|
|
23519
23522
|
};
|
|
23520
23523
|
return window.addEventListener("beforeunload", P), () => window.removeEventListener("beforeunload", P);
|
|
23521
23524
|
}, [S]);
|
|
@@ -23523,14 +23526,14 @@ const FM = "_shell_90fon_1", MM = "_workspace_90fon_8", BM = "_sidebarCollapsed_
|
|
|
23523
23526
|
Es(da, { activationConstraint: { distance: 8 } })
|
|
23524
23527
|
), q = X((P) => {
|
|
23525
23528
|
var te;
|
|
23526
|
-
const
|
|
23527
|
-
|
|
23529
|
+
const H = (te = P.active.data.current) == null ? void 0 : te.item;
|
|
23530
|
+
H && a(H);
|
|
23528
23531
|
}, []), x = X(
|
|
23529
23532
|
(P) => {
|
|
23530
23533
|
var ye, G;
|
|
23531
23534
|
a(null);
|
|
23532
|
-
const
|
|
23533
|
-
if (!
|
|
23535
|
+
const H = (ye = P.active.data.current) == null ? void 0 : ye.item;
|
|
23536
|
+
if (!H) return;
|
|
23534
23537
|
const te = P.over, Se = (te == null ? void 0 : te.id) ?? v ?? void 0;
|
|
23535
23538
|
if (!Se) {
|
|
23536
23539
|
Le.error(i.splitBuilderShell.dropOntoUnitError);
|
|
@@ -23541,17 +23544,17 @@ const FM = "_shell_90fon_1", MM = "_workspace_90fon_8", BM = "_sidebarCollapsed_
|
|
|
23541
23544
|
Le.error(i.splitBuilderShell.dropOntoCourseError);
|
|
23542
23545
|
return;
|
|
23543
23546
|
}
|
|
23544
|
-
if (!p(
|
|
23545
|
-
Le.error(i.splitBuilderShell.alreadyInCollectionError.replace("{name}",
|
|
23547
|
+
if (!p(H, Se)) {
|
|
23548
|
+
Le.error(i.splitBuilderShell.alreadyInCollectionError.replace("{name}", H.name));
|
|
23546
23549
|
return;
|
|
23547
23550
|
}
|
|
23548
|
-
r == null || r(
|
|
23551
|
+
r == null || r(H, Se), Le.success(i.splitBuilderShell.addedToUnitSuccess.replace("{name}", H.name));
|
|
23549
23552
|
},
|
|
23550
23553
|
[v, p, r, i]
|
|
23551
23554
|
), k = X(
|
|
23552
23555
|
async (P) => {
|
|
23553
23556
|
if (P.action === "onFormStatusChange") {
|
|
23554
|
-
const { isValid:
|
|
23557
|
+
const { isValid: H, nodeId: te } = P.data ?? {}, Se = H !== !1;
|
|
23555
23558
|
y(Se), te && h(te, Se);
|
|
23556
23559
|
return;
|
|
23557
23560
|
}
|
|
@@ -23756,7 +23759,7 @@ function gu(e, t, r) {
|
|
|
23756
23759
|
};
|
|
23757
23760
|
}
|
|
23758
23761
|
function e2({ config: e, onError: t }) {
|
|
23759
|
-
const [r, n] = $(!0), [i, o] = $(null), [a, s] = $(!1), { setEditorConfig: l, setEditorMode: c, setCategoryDefinition: d, setContentFramework: u } =
|
|
23762
|
+
const [r, n] = $(!0), [i, o] = $(null), [a, s] = $(!1), { setEditorConfig: l, setEditorMode: c, setCategoryDefinition: d, setContentFramework: u } = fe(), { setTreeData: m, selectNode: p } = Pe();
|
|
23760
23763
|
return re(() => {
|
|
23761
23764
|
let w = !1;
|
|
23762
23765
|
async function h() {
|
|
@@ -23879,7 +23882,7 @@ function c2(e) {
|
|
|
23879
23882
|
const t = pe(), { isLoading: r, error: n } = e2({
|
|
23880
23883
|
config: e,
|
|
23881
23884
|
onError: e.onError
|
|
23882
|
-
}), i =
|
|
23885
|
+
}), i = fe((o) => o.editorMode);
|
|
23883
23886
|
return r ? /* @__PURE__ */ T("div", { className: Ei.loadingState, children: [
|
|
23884
23887
|
/* @__PURE__ */ f("div", { className: Ei.loadingSpinner }),
|
|
23885
23888
|
/* @__PURE__ */ f("p", { children: t.collectionEditor.loadingMessage })
|
|
@@ -24011,7 +24014,7 @@ export {
|
|
|
24011
24014
|
d2 as CollectionEditor,
|
|
24012
24015
|
j2 as registerCollectionEditor,
|
|
24013
24016
|
$0 as setApiBaseUrl,
|
|
24014
|
-
|
|
24017
|
+
fe as useEditorStore,
|
|
24015
24018
|
fF as useLibraryStore,
|
|
24016
24019
|
Pe as useTreeStore
|
|
24017
24020
|
};
|