react-luminus-components 1.2.34 → 1.2.36

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.
Files changed (32) hide show
  1. package/dist/.vite/manifest.json +42 -59
  2. package/dist/EventType-Dodj1wMo.cjs +1 -0
  3. package/dist/EventType-SEEDuisM.js +636 -0
  4. package/dist/SimpleTooltip-MhGCEWts.js +5 -0
  5. package/dist/{SimpleTooltip-CjMfPKvQ.cjs → SimpleTooltip-OE_cbcNU.cjs} +1 -1
  6. package/dist/{UserAvatarToggle-Dq9Xmfcp.js → UserAvatarToggle-CH7OqxNp.js} +2104 -2001
  7. package/dist/UserAvatarToggle-rzyVxLmG.cjs +253 -0
  8. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +4 -1
  9. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +11 -0
  10. package/dist/contexts.cjs.js +1 -1
  11. package/dist/contexts.es.js +205 -776
  12. package/dist/hooks.cjs.js +1 -1
  13. package/dist/hooks.es.js +103 -99
  14. package/dist/layout.cjs.js +1 -1
  15. package/dist/layout.es.js +43 -43
  16. package/dist/main.cjs.js +1 -1
  17. package/dist/main.es.js +1240 -1285
  18. package/dist/models/texts/HomeDashboardTexts.d.ts +1 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{useConfirm-QOAtP0re.cjs → useConfirm-9zGqmWEb.cjs} +1 -1
  21. package/dist/{useConfirm-akv7w_iA.js → useConfirm-B3BI8PzR.js} +3 -3
  22. package/dist/usePermissions-CO93mmCn.cjs +1 -0
  23. package/dist/usePermissions-DVO-znuB.js +13 -0
  24. package/package.json +1 -1
  25. package/dist/EventType-DO8vvA6X.cjs +0 -1
  26. package/dist/EventType-ZylDtXuB.js +0 -63
  27. package/dist/SimpleTooltip-Bp0AmtP_.js +0 -5
  28. package/dist/Typography-DbHYaPxW.js +0 -36
  29. package/dist/Typography-Plu1Wa0_.cjs +0 -1
  30. package/dist/UserAvatarToggle-DEb7Klk7.cjs +0 -253
  31. package/dist/usePermissions-CQVgatvt.js +0 -12
  32. package/dist/usePermissions-zYTcBjf7.cjs +0 -1
package/dist/hooks.es.js CHANGED
@@ -1,11 +1,12 @@
1
- import { L as We } from "./UserAvatarToggle-Dq9Xmfcp.js";
2
- import { ay as ar, a5 as ir, a1 as or, ax as dr } from "./UserAvatarToggle-Dq9Xmfcp.js";
3
- import { a as ur, u as lr } from "./useConfirm-akv7w_iA.js";
1
+ import { N as We } from "./UserAvatarToggle-CH7OqxNp.js";
2
+ import { aF as ir, ae as or, ab as dr, aE as cr } from "./UserAvatarToggle-CH7OqxNp.js";
3
+ import { a as lr, u as fr } from "./useConfirm-B3BI8PzR.js";
4
4
  import { useContext as Ye } from "react";
5
5
  import { f as Je } from "./textUtils-BbxuIsKq.js";
6
6
  import { i as He } from "./dateUtils-Crak7ii9.js";
7
- import { a as hr, u as mr } from "./useKeyPress-CwWcvmEW.js";
8
- import { u as yr } from "./usePermissions-CQVgatvt.js";
7
+ import "react-hook-form";
8
+ import { a as mr, u as pr } from "./useKeyPress-CwWcvmEW.js";
9
+ import { u as _r } from "./usePermissions-DVO-znuB.js";
9
10
  var x;
10
11
  (function(r) {
11
12
  r.assertEqual = (s) => s;
@@ -71,7 +72,7 @@ const f = x.arrayToEnum([
71
72
  "never",
72
73
  "map",
73
74
  "set"
74
- ]), z = (r) => {
75
+ ]), P = (r) => {
75
76
  switch (typeof r) {
76
77
  case "undefined":
77
78
  return f.undefined;
@@ -110,7 +111,7 @@ const f = x.arrayToEnum([
110
111
  "not_multiple_of",
111
112
  "not_finite"
112
113
  ]), Ge = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
113
- class O extends Error {
114
+ class N extends Error {
114
115
  constructor(e) {
115
116
  super(), this.issues = [], this.addIssue = (n) => {
116
117
  this.issues = [...this.issues, n];
@@ -147,7 +148,7 @@ class O extends Error {
147
148
  return s(this), n;
148
149
  }
149
150
  static assert(e) {
150
- if (!(e instanceof O))
151
+ if (!(e instanceof N))
151
152
  throw new Error(`Not a ZodError: ${e}`);
152
153
  }
153
154
  toString() {
@@ -169,7 +170,7 @@ class O extends Error {
169
170
  return this.flatten();
170
171
  }
171
172
  }
172
- O.create = (r) => new O(r);
173
+ N.create = (r) => new N(r);
173
174
  const G = (r, e) => {
174
175
  let t;
175
176
  switch (r.code) {
@@ -312,7 +313,7 @@ class Z {
312
313
  }
313
314
  const p = Object.freeze({
314
315
  status: "aborted"
315
- }), J = (r) => ({ status: "dirty", value: r }), S = (r) => ({ status: "valid", value: r }), Ce = (r) => r.status === "aborted", Ne = (r) => r.status === "dirty", ee = (r) => r.status === "valid", te = (r) => typeof Promise < "u" && r instanceof Promise;
316
+ }), J = (r) => ({ status: "dirty", value: r }), S = (r) => ({ status: "valid", value: r }), Ce = (r) => r.status === "aborted", Oe = (r) => r.status === "dirty", ee = (r) => r.status === "valid", te = (r) => typeof Promise < "u" && r instanceof Promise;
316
317
  function ve(r, e, t, n) {
317
318
  if (typeof e == "function" ? r !== e || !n : !e.has(r))
318
319
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
@@ -336,7 +337,7 @@ class A {
336
337
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
337
338
  }
338
339
  }
339
- const Re = (r, e) => {
340
+ const Ie = (r, e) => {
340
341
  if (ee(e))
341
342
  return { success: !0, data: e.value };
342
343
  if (!r.common.issues.length)
@@ -346,7 +347,7 @@ const Re = (r, e) => {
346
347
  get error() {
347
348
  if (this._error)
348
349
  return this._error;
349
- const t = new O(r.common.issues);
350
+ const t = new N(r.common.issues);
350
351
  return this._error = t, this._error;
351
352
  }
352
353
  };
@@ -371,13 +372,13 @@ class v {
371
372
  return this._def.description;
372
373
  }
373
374
  _getType(e) {
374
- return z(e.data);
375
+ return P(e.data);
375
376
  }
376
377
  _getOrReturnCtx(e, t) {
377
378
  return t || {
378
379
  common: e.parent.common,
379
380
  data: e.data,
380
- parsedType: z(e.data),
381
+ parsedType: P(e.data),
381
382
  schemaErrorMap: this._def.errorMap,
382
383
  path: e.path,
383
384
  parent: e.parent
@@ -389,7 +390,7 @@ class v {
389
390
  ctx: {
390
391
  common: e.parent.common,
391
392
  data: e.data,
392
- parsedType: z(e.data),
393
+ parsedType: P(e.data),
393
394
  schemaErrorMap: this._def.errorMap,
394
395
  path: e.path,
395
396
  parent: e.parent
@@ -424,9 +425,9 @@ class v {
424
425
  schemaErrorMap: this._def.errorMap,
425
426
  parent: null,
426
427
  data: e,
427
- parsedType: z(e)
428
+ parsedType: P(e)
428
429
  }, a = this._parseSync({ data: e, path: s.path, parent: s });
429
- return Re(s, a);
430
+ return Ie(s, a);
430
431
  }
431
432
  async parseAsync(e, t) {
432
433
  const n = await this.safeParseAsync(e, t);
@@ -445,9 +446,9 @@ class v {
445
446
  schemaErrorMap: this._def.errorMap,
446
447
  parent: null,
447
448
  data: e,
448
- parsedType: z(e)
449
+ parsedType: P(e)
449
450
  }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (te(s) ? s : Promise.resolve(s));
450
- return Re(n, a);
451
+ return Ie(n, a);
451
452
  }
452
453
  refine(e, t) {
453
454
  const n = (s) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(s) : t;
@@ -463,7 +464,7 @@ class v {
463
464
  return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof t == "function" ? t(n, s) : t), !1));
464
465
  }
465
466
  _refinement(e) {
466
- return new R({
467
+ return new I({
467
468
  schema: this,
468
469
  typeName: m.ZodEffects,
469
470
  effect: { type: "refinement", refinement: e }
@@ -482,7 +483,7 @@ class v {
482
483
  return this.nullable().optional();
483
484
  }
484
485
  array() {
485
- return I.create(this, this._def);
486
+ return R.create(this, this._def);
486
487
  }
487
488
  promise() {
488
489
  return K.create(this, this._def);
@@ -494,7 +495,7 @@ class v {
494
495
  return ie.create(this, e, this._def);
495
496
  }
496
497
  transform(e) {
497
- return new R({
498
+ return new I({
498
499
  ..._(this._def),
499
500
  schema: this,
500
501
  typeName: m.ZodEffects,
@@ -549,15 +550,15 @@ class v {
549
550
  const Qe = /^c[^\s-]{8,}$/i, Fe = /^[0-9a-z]+$/, et = /^[0-9A-HJKMNP-TV-Z]{26}$/, tt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, rt = /^[a-z0-9_-]{21}$/i, nt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, st = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, at = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
550
551
  let Ze;
551
552
  const it = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ot = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, dt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, $e = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", ct = new RegExp(`^${$e}$`);
552
- function Pe(r) {
553
+ function ze(r) {
553
554
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
554
555
  return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
555
556
  }
556
557
  function ut(r) {
557
- return new RegExp(`^${Pe(r)}$`);
558
+ return new RegExp(`^${ze(r)}$`);
558
559
  }
559
- function ze(r) {
560
- let e = `${$e}T${Pe(r)}`;
560
+ function Pe(r) {
561
+ let e = `${$e}T${ze(r)}`;
561
562
  const t = [];
562
563
  return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
563
564
  }
@@ -681,7 +682,7 @@ class E extends v {
681
682
  code: d.invalid_string,
682
683
  validation: { endsWith: a.value },
683
684
  message: a.message
684
- }), n.dirty()) : a.kind === "datetime" ? ze(a).test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
685
+ }), n.dirty()) : a.kind === "datetime" ? Pe(a).test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
685
686
  code: d.invalid_string,
686
687
  validation: "datetime",
687
688
  message: a.message
@@ -1398,7 +1399,7 @@ B.create = (r) => new B({
1398
1399
  typeName: m.ZodUnknown,
1399
1400
  ..._(r)
1400
1401
  });
1401
- class P extends v {
1402
+ class z extends v {
1402
1403
  _parse(e) {
1403
1404
  const t = this._getOrReturnCtx(e);
1404
1405
  return l(t, {
@@ -1408,7 +1409,7 @@ class P extends v {
1408
1409
  }), p;
1409
1410
  }
1410
1411
  }
1411
- P.create = (r) => new P({
1412
+ z.create = (r) => new z({
1412
1413
  typeName: m.ZodNever,
1413
1414
  ..._(r)
1414
1415
  });
@@ -1429,7 +1430,7 @@ xe.create = (r) => new xe({
1429
1430
  typeName: m.ZodVoid,
1430
1431
  ..._(r)
1431
1432
  });
1432
- class I extends v {
1433
+ class R extends v {
1433
1434
  _parse(e) {
1434
1435
  const { ctx: t, status: n } = this._processInputParams(e), s = this._def;
1435
1436
  if (t.parsedType !== f.array)
@@ -1473,19 +1474,19 @@ class I extends v {
1473
1474
  return this._def.type;
1474
1475
  }
1475
1476
  min(e, t) {
1476
- return new I({
1477
+ return new R({
1477
1478
  ...this._def,
1478
1479
  minLength: { value: e, message: h.toString(t) }
1479
1480
  });
1480
1481
  }
1481
1482
  max(e, t) {
1482
- return new I({
1483
+ return new R({
1483
1484
  ...this._def,
1484
1485
  maxLength: { value: e, message: h.toString(t) }
1485
1486
  });
1486
1487
  }
1487
1488
  length(e, t) {
1488
- return new I({
1489
+ return new R({
1489
1490
  ...this._def,
1490
1491
  exactLength: { value: e, message: h.toString(t) }
1491
1492
  });
@@ -1494,7 +1495,7 @@ class I extends v {
1494
1495
  return this.min(1, e);
1495
1496
  }
1496
1497
  }
1497
- I.create = (r, e) => new I({
1498
+ R.create = (r, e) => new R({
1498
1499
  type: r,
1499
1500
  minLength: null,
1500
1501
  maxLength: null,
@@ -1514,7 +1515,7 @@ function Y(r) {
1514
1515
  shape: () => e
1515
1516
  });
1516
1517
  } else
1517
- return r instanceof I ? new I({
1518
+ return r instanceof R ? new R({
1518
1519
  ...r._def,
1519
1520
  type: Y(r.element)
1520
1521
  }) : r instanceof j ? j.create(Y(r.unwrap())) : r instanceof U ? U.create(Y(r.unwrap())) : r instanceof M ? M.create(r.items.map((e) => Y(e))) : r;
@@ -1539,19 +1540,19 @@ class k extends v {
1539
1540
  }), p;
1540
1541
  }
1541
1542
  const { status: n, ctx: s } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
1542
- if (!(this._def.catchall instanceof P && this._def.unknownKeys === "strip"))
1543
+ if (!(this._def.catchall instanceof z && this._def.unknownKeys === "strip"))
1543
1544
  for (const c in s.data)
1544
1545
  i.includes(c) || o.push(c);
1545
1546
  const u = [];
1546
1547
  for (const c of i) {
1547
- const y = a[c], N = s.data[c];
1548
+ const y = a[c], O = s.data[c];
1548
1549
  u.push({
1549
1550
  key: { status: "valid", value: c },
1550
- value: y._parse(new A(s, N, s.path, c)),
1551
+ value: y._parse(new A(s, O, s.path, c)),
1551
1552
  alwaysSet: c in s.data
1552
1553
  });
1553
1554
  }
1554
- if (this._def.catchall instanceof P) {
1555
+ if (this._def.catchall instanceof z) {
1555
1556
  const c = this._def.unknownKeys;
1556
1557
  if (c === "passthrough")
1557
1558
  for (const y of o)
@@ -1569,11 +1570,11 @@ class k extends v {
1569
1570
  } else {
1570
1571
  const c = this._def.catchall;
1571
1572
  for (const y of o) {
1572
- const N = s.data[y];
1573
+ const O = s.data[y];
1573
1574
  u.push({
1574
1575
  key: { status: "valid", value: y },
1575
1576
  value: c._parse(
1576
- new A(s, N, s.path, y)
1577
+ new A(s, O, s.path, y)
1577
1578
  //, ctx.child(key), value, getParsedType(value)
1578
1579
  ),
1579
1580
  alwaysSet: y in s.data
@@ -1583,9 +1584,9 @@ class k extends v {
1583
1584
  return s.common.async ? Promise.resolve().then(async () => {
1584
1585
  const c = [];
1585
1586
  for (const y of u) {
1586
- const N = await y.key, Te = await y.value;
1587
+ const O = await y.key, Te = await y.value;
1587
1588
  c.push({
1588
- key: N,
1589
+ key: O,
1589
1590
  value: Te,
1590
1591
  alwaysSet: y.alwaysSet
1591
1592
  });
@@ -1789,21 +1790,21 @@ class k extends v {
1789
1790
  k.create = (r, e) => new k({
1790
1791
  shape: () => r,
1791
1792
  unknownKeys: "strip",
1792
- catchall: P.create(),
1793
+ catchall: z.create(),
1793
1794
  typeName: m.ZodObject,
1794
1795
  ..._(e)
1795
1796
  });
1796
1797
  k.strictCreate = (r, e) => new k({
1797
1798
  shape: () => r,
1798
1799
  unknownKeys: "strict",
1799
- catchall: P.create(),
1800
+ catchall: z.create(),
1800
1801
  typeName: m.ZodObject,
1801
1802
  ..._(e)
1802
1803
  });
1803
1804
  k.lazycreate = (r, e) => new k({
1804
1805
  shape: r,
1805
1806
  unknownKeys: "strip",
1806
- catchall: P.create(),
1807
+ catchall: z.create(),
1807
1808
  typeName: m.ZodObject,
1808
1809
  ..._(e)
1809
1810
  });
@@ -1817,7 +1818,7 @@ class ae extends v {
1817
1818
  for (const o of a)
1818
1819
  if (o.result.status === "dirty")
1819
1820
  return t.common.issues.push(...o.ctx.common.issues), o.result;
1820
- const i = a.map((o) => new O(o.ctx.common.issues));
1821
+ const i = a.map((o) => new N(o.ctx.common.issues));
1821
1822
  return l(t, {
1822
1823
  code: d.invalid_union,
1823
1824
  unionErrors: i
@@ -1864,7 +1865,7 @@ class ae extends v {
1864
1865
  }
1865
1866
  if (a)
1866
1867
  return t.common.issues.push(...a.ctx.common.issues), a.result;
1867
- const o = i.map((u) => new O(u));
1868
+ const o = i.map((u) => new N(u));
1868
1869
  return l(t, {
1869
1870
  code: d.invalid_union,
1870
1871
  unionErrors: o
@@ -1880,7 +1881,7 @@ ae.create = (r, e) => new ae({
1880
1881
  typeName: m.ZodUnion,
1881
1882
  ..._(e)
1882
1883
  });
1883
- const $ = (r) => r instanceof de ? $(r.schema) : r instanceof R ? $(r.innerType()) : r instanceof ce ? [r.value] : r instanceof L ? r.options : r instanceof ue ? x.objectValues(r.enum) : r instanceof le ? $(r._def.innerType) : r instanceof ne ? [void 0] : r instanceof se ? [null] : r instanceof j ? [void 0, ...$(r.unwrap())] : r instanceof U ? [null, ...$(r.unwrap())] : r instanceof Ee || r instanceof he ? $(r.unwrap()) : r instanceof fe ? $(r._def.innerType) : [];
1884
+ const $ = (r) => r instanceof de ? $(r.schema) : r instanceof I ? $(r.innerType()) : r instanceof ce ? [r.value] : r instanceof L ? r.options : r instanceof ue ? x.objectValues(r.enum) : r instanceof le ? $(r._def.innerType) : r instanceof ne ? [void 0] : r instanceof se ? [null] : r instanceof j ? [void 0, ...$(r.unwrap())] : r instanceof U ? [null, ...$(r.unwrap())] : r instanceof Ee || r instanceof he ? $(r.unwrap()) : r instanceof fe ? $(r._def.innerType) : [];
1884
1885
  class we extends v {
1885
1886
  _parse(e) {
1886
1887
  const { ctx: t } = this._processInputParams(e);
@@ -1943,14 +1944,14 @@ class we extends v {
1943
1944
  });
1944
1945
  }
1945
1946
  }
1946
- function Oe(r, e) {
1947
- const t = z(r), n = z(e);
1947
+ function Ne(r, e) {
1948
+ const t = P(r), n = P(e);
1948
1949
  if (r === e)
1949
1950
  return { valid: !0, data: r };
1950
1951
  if (t === f.object && n === f.object) {
1951
1952
  const s = x.objectKeys(e), a = x.objectKeys(r).filter((o) => s.indexOf(o) !== -1), i = { ...r, ...e };
1952
1953
  for (const o of a) {
1953
- const u = Oe(r[o], e[o]);
1954
+ const u = Ne(r[o], e[o]);
1954
1955
  if (!u.valid)
1955
1956
  return { valid: !1 };
1956
1957
  i[o] = u.data;
@@ -1961,7 +1962,7 @@ function Oe(r, e) {
1961
1962
  return { valid: !1 };
1962
1963
  const s = [];
1963
1964
  for (let a = 0; a < r.length; a++) {
1964
- const i = r[a], o = e[a], u = Oe(i, o);
1965
+ const i = r[a], o = e[a], u = Ne(i, o);
1965
1966
  if (!u.valid)
1966
1967
  return { valid: !1 };
1967
1968
  s.push(u.data);
@@ -1975,8 +1976,8 @@ class ie extends v {
1975
1976
  const { status: t, ctx: n } = this._processInputParams(e), s = (a, i) => {
1976
1977
  if (Ce(a) || Ce(i))
1977
1978
  return p;
1978
- const o = Oe(a.value, i.value);
1979
- return o.valid ? ((Ne(a) || Ne(i)) && t.dirty(), { status: t.value, value: o.data }) : (l(n, {
1979
+ const o = Ne(a.value, i.value);
1980
+ return o.valid ? ((Oe(a) || Oe(i)) && t.dirty(), { status: t.value, value: o.data }) : (l(n, {
1980
1981
  code: d.invalid_intersection_types
1981
1982
  }), p);
1982
1983
  };
@@ -2259,11 +2260,11 @@ class H extends v {
2259
2260
  if (this._def.returns instanceof K) {
2260
2261
  const o = this;
2261
2262
  return S(async function(...u) {
2262
- const c = new O([]), y = await o._def.args.parseAsync(u, a).catch((pe) => {
2263
+ const c = new N([]), y = await o._def.args.parseAsync(u, a).catch((pe) => {
2263
2264
  throw c.addIssue(n(u, pe)), c;
2264
- }), N = await Reflect.apply(i, this, y);
2265
- return await o._def.returns._def.type.parseAsync(N, a).catch((pe) => {
2266
- throw c.addIssue(s(N, pe)), c;
2265
+ }), O = await Reflect.apply(i, this, y);
2266
+ return await o._def.returns._def.type.parseAsync(O, a).catch((pe) => {
2267
+ throw c.addIssue(s(O, pe)), c;
2267
2268
  });
2268
2269
  });
2269
2270
  } else {
@@ -2271,11 +2272,11 @@ class H extends v {
2271
2272
  return S(function(...u) {
2272
2273
  const c = o._def.args.safeParse(u, a);
2273
2274
  if (!c.success)
2274
- throw new O([n(u, c.error)]);
2275
- const y = Reflect.apply(i, this, c.data), N = o._def.returns.safeParse(y, a);
2276
- if (!N.success)
2277
- throw new O([s(y, N.error)]);
2278
- return N.data;
2275
+ throw new N([n(u, c.error)]);
2276
+ const y = Reflect.apply(i, this, c.data), O = o._def.returns.safeParse(y, a);
2277
+ if (!O.success)
2278
+ throw new N([s(y, O.error)]);
2279
+ return O.data;
2279
2280
  });
2280
2281
  }
2281
2282
  }
@@ -2471,7 +2472,7 @@ K.create = (r, e) => new K({
2471
2472
  typeName: m.ZodPromise,
2472
2473
  ..._(e)
2473
2474
  });
2474
- class R extends v {
2475
+ class I extends v {
2475
2476
  innerType() {
2476
2477
  return this._def.schema;
2477
2478
  }
@@ -2548,13 +2549,13 @@ class R extends v {
2548
2549
  x.assertNever(s);
2549
2550
  }
2550
2551
  }
2551
- R.create = (r, e, t) => new R({
2552
+ I.create = (r, e, t) => new I({
2552
2553
  schema: r,
2553
2554
  typeName: m.ZodEffects,
2554
2555
  effect: e,
2555
2556
  ..._(t)
2556
2557
  });
2557
- R.createWithPreprocess = (r, e, t) => new R({
2558
+ I.createWithPreprocess = (r, e, t) => new I({
2558
2559
  schema: e,
2559
2560
  effect: { type: "preprocess", transform: r },
2560
2561
  typeName: m.ZodEffects,
@@ -2625,7 +2626,7 @@ class fe extends v {
2625
2626
  status: "valid",
2626
2627
  value: a.status === "valid" ? a.value : this._def.catchValue({
2627
2628
  get error() {
2628
- return new O(n.common.issues);
2629
+ return new N(n.common.issues);
2629
2630
  },
2630
2631
  input: n.data
2631
2632
  })
@@ -2633,7 +2634,7 @@ class fe extends v {
2633
2634
  status: "valid",
2634
2635
  value: s.status === "valid" ? s.value : this._def.catchValue({
2635
2636
  get error() {
2636
- return new O(n.common.issues);
2637
+ return new N(n.common.issues);
2637
2638
  },
2638
2639
  input: n.data
2639
2640
  })
@@ -2752,7 +2753,7 @@ var m;
2752
2753
  })(m || (m = {}));
2753
2754
  const pt = (r, e = {
2754
2755
  message: `Input not instance of ${r.name}`
2755
- }) => De((t) => t instanceof r, e), Le = E.create, Ue = V.create, yt = be.create, _t = D.create, Be = re.create, vt = q.create, gt = ge.create, xt = ne.create, kt = se.create, bt = X.create, wt = B.create, Tt = P.create, Zt = xe.create, St = I.create, Ct = k.create, Nt = k.strictCreate, Ot = ae.create, Et = we.create, It = ie.create, Rt = M.create, jt = oe.create, At = ke.create, Mt = W.create, $t = H.create, Pt = de.create, zt = ce.create, Vt = L.create, Dt = ue.create, Lt = K.create, je = R.create, Ut = j.create, Bt = U.create, qt = R.createWithPreprocess, Wt = me.create, Yt = () => Le().optional(), Jt = () => Ue().optional(), Ht = () => Be().optional(), Gt = {
2756
+ }) => De((t) => t instanceof r, e), Le = E.create, Ue = V.create, yt = be.create, _t = D.create, Be = re.create, vt = q.create, gt = ge.create, xt = ne.create, kt = se.create, bt = X.create, wt = B.create, Tt = z.create, Zt = xe.create, St = R.create, Ct = k.create, Ot = k.strictCreate, Nt = ae.create, Et = we.create, Rt = ie.create, It = M.create, jt = oe.create, At = ke.create, Mt = W.create, $t = H.create, zt = de.create, Pt = ce.create, Vt = L.create, Dt = ue.create, Lt = K.create, je = I.create, Ut = j.create, Bt = U.create, qt = I.createWithPreprocess, Wt = me.create, Yt = () => Le().optional(), Jt = () => Ue().optional(), Ht = () => Be().optional(), Gt = {
2756
2757
  string: (r) => E.create({ ...r, coerce: !0 }),
2757
2758
  number: (r) => V.create({ ...r, coerce: !0 }),
2758
2759
  boolean: (r) => re.create({
@@ -2775,7 +2776,7 @@ var C = /* @__PURE__ */ Object.freeze({
2775
2776
  DIRTY: J,
2776
2777
  OK: S,
2777
2778
  isAborted: Ce,
2778
- isDirty: Ne,
2779
+ isDirty: Oe,
2779
2780
  isValid: ee,
2780
2781
  isAsync: te,
2781
2782
  get util() {
@@ -2785,9 +2786,9 @@ var C = /* @__PURE__ */ Object.freeze({
2785
2786
  return Se;
2786
2787
  },
2787
2788
  ZodParsedType: f,
2788
- getParsedType: z,
2789
+ getParsedType: P,
2789
2790
  ZodType: v,
2790
- datetimeRegex: ze,
2791
+ datetimeRegex: Pe,
2791
2792
  ZodString: E,
2792
2793
  ZodNumber: V,
2793
2794
  ZodBigInt: D,
@@ -2798,9 +2799,9 @@ var C = /* @__PURE__ */ Object.freeze({
2798
2799
  ZodNull: se,
2799
2800
  ZodAny: X,
2800
2801
  ZodUnknown: B,
2801
- ZodNever: P,
2802
+ ZodNever: z,
2802
2803
  ZodVoid: xe,
2803
- ZodArray: I,
2804
+ ZodArray: R,
2804
2805
  ZodObject: k,
2805
2806
  ZodUnion: ae,
2806
2807
  ZodDiscriminatedUnion: we,
@@ -2815,8 +2816,8 @@ var C = /* @__PURE__ */ Object.freeze({
2815
2816
  ZodEnum: L,
2816
2817
  ZodNativeEnum: ue,
2817
2818
  ZodPromise: K,
2818
- ZodEffects: R,
2819
- ZodTransformer: R,
2819
+ ZodEffects: I,
2820
+ ZodTransformer: I,
2820
2821
  ZodOptional: j,
2821
2822
  ZodNullable: U,
2822
2823
  ZodDefault: le,
@@ -2844,9 +2845,9 @@ var C = /* @__PURE__ */ Object.freeze({
2844
2845
  enum: Vt,
2845
2846
  function: $t,
2846
2847
  instanceof: pt,
2847
- intersection: It,
2848
- lazy: Pt,
2849
- literal: zt,
2848
+ intersection: Rt,
2849
+ lazy: zt,
2850
+ literal: Pt,
2850
2851
  map: At,
2851
2852
  nan: yt,
2852
2853
  nativeEnum: Dt,
@@ -2864,28 +2865,31 @@ var C = /* @__PURE__ */ Object.freeze({
2864
2865
  promise: Lt,
2865
2866
  record: jt,
2866
2867
  set: Mt,
2867
- strictObject: Nt,
2868
+ strictObject: Ot,
2868
2869
  string: Le,
2869
2870
  symbol: gt,
2870
2871
  transformer: je,
2871
- tuple: Rt,
2872
+ tuple: It,
2872
2873
  undefined: xt,
2873
- union: Ot,
2874
+ union: Nt,
2874
2875
  unknown: wt,
2875
2876
  void: Zt,
2876
2877
  NEVER: Xt,
2877
2878
  ZodIssueCode: d,
2878
2879
  quotelessJson: Ge,
2879
- ZodError: O
2880
+ ZodError: N
2880
2881
  });
2881
- const rr = () => {
2882
+ const nr = () => {
2882
2883
  const { formValidationTexts: r } = Ye(We), e = (g) => (g != null && g.useCoerce ? C.coerce : C).string({
2883
2884
  invalid_type_error: r.required
2884
- }).transform((w) => w ?? null), t = (g) => e(g).nullable().optional().transform((b) => b ?? null), n = (g) => (g != null && g.useCoerce ? C.coerce : C).number({
2885
- invalid_type_error: r.required
2886
- }).min((g == null ? void 0 : g.min) ?? Number.NEGATIVE_INFINITY).max((g == null ? void 0 : g.max) ?? Number.POSITIVE_INFINITY).transform((w) => w ?? null), s = (g) => n(g).nullable().optional().transform((b) => b ?? null), a = (g) => (g != null && g.useCoerce ? C.coerce : C).boolean({
2885
+ }).transform((w) => w ?? null), t = (g) => e(g).nullable().optional().transform((b) => b ?? null), n = (g) => {
2886
+ const b = (g != null && g.useCoerce ? C.coerce : C).number({
2887
+ invalid_type_error: r.required
2888
+ });
2889
+ return (g == null ? void 0 : g.min) !== void 0 && b.min(g.min), (g == null ? void 0 : g.max) !== void 0 && b.max(g.max), b.transform((w) => w ?? null);
2890
+ }, s = (g) => n(g).nullable().optional().transform((b) => b ?? null), a = (g) => (g != null && g.useCoerce ? C.coerce : C).boolean({
2887
2891
  invalid_type_error: r.required
2888
- }).transform((b) => b ?? null), i = (g) => (g != null && g.useCoerce ? C.coerce : C).string({ invalid_type_error: r.required }).refine(He, { message: r.invalidDate }).transform((w) => w ?? null), o = (g) => i(g).nullable().transform((b) => b ?? null), u = (g, b) => C.enum(g, { invalid_type_error: r.required }).transform((Ie) => Ie ?? null);
2892
+ }).transform((b) => b ?? null), i = (g) => (g != null && g.useCoerce ? C.coerce : C).string({ invalid_type_error: r.required }).refine(He, { message: r.invalidDate }).transform((w) => w ?? null), o = (g) => i(g).nullable().transform((b) => b ?? null), u = (g, b) => C.enum(g, { invalid_type_error: r.required }).transform((Re) => Re ?? null);
2889
2893
  return {
2890
2894
  zString: t,
2891
2895
  zStringRequired: e,
@@ -2904,14 +2908,14 @@ const rr = () => {
2904
2908
  };
2905
2909
  };
2906
2910
  export {
2907
- ar as cancelToken,
2908
- ir as useAuth,
2909
- or as useAxios,
2910
- hr as useClickOutside,
2911
- ur as useConfirm,
2912
- mr as useKeyPress,
2913
- dr as useNotifications,
2914
- yr as usePermissions,
2915
- lr as usePrompt,
2916
- rr as useZodSchemaTypes
2911
+ ir as cancelToken,
2912
+ or as useAuth,
2913
+ dr as useAxios,
2914
+ mr as useClickOutside,
2915
+ lr as useConfirm,
2916
+ pr as useKeyPress,
2917
+ cr as useNotifications,
2918
+ _r as usePermissions,
2919
+ fr as usePrompt,
2920
+ nr as useZodSchemaTypes
2917
2921
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./UserAvatarToggle-DEb7Klk7.cjs"),d=require("react"),w=require("./usePermissions-zYTcBjf7.cjs"),C=require("./SimpleTooltip-CjMfPKvQ.cjs"),M=require("./Typography-Plu1Wa0_.cjs"),B="_side-menu-item_6vbwa_1",k="_disabled_6vbwa_5",g="_nav-button_6vbwa_9",S="_child_6vbwa_17",y="_text_6vbwa_21",P="_icon_6vbwa_28",T="_collapse-icon_6vbwa_34",f="_collapsed_6vbwa_44",I="_expanded_6vbwa_51",$="_children-container_6vbwa_57",H="_visible_6vbwa_65",L="_children_6vbwa_57",o={"side-menu-item":"_side-menu-item_6vbwa_1",sideMenuItem:B,disabled:k,"nav-button":"_nav-button_6vbwa_9",navButton:g,child:S,text:y,icon:P,"collapse-icon":"_collapse-icon_6vbwa_34",collapseIcon:T,collapsed:f,expanded:I,"children-container":"_children-container_6vbwa_57",childrenContainer:$,visible:H,children:L},q=({item:e,menuExpanded:t,children:i})=>e.tooltip&&!t?s.jsxRuntimeExports.jsx(C.SimpleTooltip,{text:e.tooltip,placement:"right",children:i}):i,N=({item:e,menuExpanded:t,collapsed:i,onCollapse:a,currentPath:l})=>{var v,_;const{LinkComponent:m}=d.useContext(s.LuminusComponentsContext),[p,x]=d.useState(!1),[c]=l.split("?"),h=e.linkTo===c||((v=e.children)==null?void 0:v.some(n=>n.linkTo===c));return s.jsxRuntimeExports.jsxs("li",{className:s.classNames("luminus-side-menu-item",o.sideMenuItem,{[o.expanded]:t},{active:p||h},{open:i&&e.children},{[o.disabled]:e.disabled||e.notPermitted},{disabled:e.disabled||e.notPermitted}),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[s.jsxRuntimeExports.jsx(q,{item:e,menuExpanded:t,children:e.children?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames("nav-link",o.navButton),onClick:()=>a(),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("collapse-icon",o.collapseIcon,{[o.collapsed]:i}),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})}):s.jsxRuntimeExports.jsxs(m,{to:e.disabled||e.notPermitted?"/":e.linkTo??"/",className:s.classNames("nav-link",o.navButton),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title})]})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("children-container",o.childrenContainer,{[o.visible]:i}),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("shadow rounded children",o.children),children:(_=e.children)==null?void 0:_.map(n=>s.jsxRuntimeExports.jsx(m,{to:n.disabled||n.notPermitted?"/":n.linkTo??"/",className:s.classNames("nav-link child rounded",o.navButton,o.child,{[o.disabled]:n.disabled||n.notPermitted},{disabled:n.disabled||n.notPermitted}),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:n.title})},n.linkTo))})})]})},F="_side-menu_n1hvm_1",A="_sidebar-header_n1hvm_13",U="_side-menu-content_n1hvm_18",K="_expand_n1hvm_22",z="_divider_n1hvm_26",j={"side-menu":"_side-menu_n1hvm_1",sideMenu:F,"sidebar-header":"_sidebar-header_n1hvm_13",sidebarHeader:A,"side-menu-content":"_side-menu-content_n1hvm_18",sideMenuContent:U,expand:K,divider:z},D=({headerItem:e,mainItems:t,secondaryItems:i,expanded:a,setExpanded:l,currentPath:m})=>{const[p,x]=d.useState(-1),{checkUserHasPermissions:c}=w.usePermissions(),h=d.useMemo(()=>t.map(n=>{var r;return{...n,notPermitted:!c(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(u=>({...u,notPermitted:!c(u.permissions??[]),disabled:n.disabled||u.disabled}))}}),[t,c]),v=d.useMemo(()=>i.map(n=>{var r;return{...n,notPermitted:!c(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(u=>({...u,notPermitted:!c(u.permissions??[])}))}}),[i,c]),_=n=>{x(n===p?-1:n)};return d.useEffect(()=>{a||x(-1)},[a]),s.jsxRuntimeExports.jsxs("section",{className:s.classNames("luminus-side-menu shadow",j.sideMenu,{[j.expand]:a},{expand:a}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("sidebar-header",j.sidebarHeader),children:e}),s.jsxRuntimeExports.jsxs("ul",{className:j.sideMenuContent,children:[h.map((n,r)=>s.jsxRuntimeExports.jsx(N,{item:n,menuExpanded:a,collapsed:r===p,onCollapse:()=>_(r),currentPath:m},n.title)),s.jsxRuntimeExports.jsx("hr",{className:s.classNames("divider",j.divider)}),v.map((n,r)=>s.jsxRuntimeExports.jsx(N,{item:n,menuExpanded:a,collapsed:r===p,onCollapse:()=>_(r),currentPath:m},n.title))]})]})},G="_top-bar_1lk80_1",J="_top-bar-brand_1lk80_14",R={"top-bar":"_top-bar_1lk80_1",topBar:G,"top-bar-brand":"_top-bar-brand_1lk80_14",topBarBrand:J},O=({appName:e,leftOffset:t,centerContent:i,rightContent:a})=>{const{LinkComponent:l}=d.useContext(s.LuminusComponentsContext);return s.jsxRuntimeExports.jsxs("nav",{className:s.classNames("luminus-top-bar shadow",R.topBar),style:{width:t?`calc(100% - ${t}px)`:void 0,left:t?`${t}px`:void 0},children:[s.jsxRuntimeExports.jsx(l,{to:"/",className:s.classNames("luminus-top-bar-brand",R.topBarBrand),children:e}),i&&s.jsxRuntimeExports.jsx("div",{children:i}),s.jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-end align-items-center gap-2",children:a??null})]})},Q="_side-content-bar_17kwd_1",V={"side-content-bar":"_side-content-bar_17kwd_1",sideContentBar:Q},b=({width:e,children:t})=>s.jsxRuntimeExports.jsx("section",{className:s.classNames("luminus-side-content-bar shadow",V.sideContentBar),style:{width:`${e}px`},children:t}),E=({title:e})=>s.jsxRuntimeExports.jsx("div",{className:"mb-3",children:typeof e=="string"?s.jsxRuntimeExports.jsx(M.Typography,{variant:"h3",children:e}):e}),W=({title:e,children:t,sideContent:i,noPadding:a,className:l})=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("container-fluid",a?"p-0":"p-3",l),children:[s.jsxRuntimeExports.jsxs("div",{style:{paddingRight:i?"250px":void 0},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:250,children:i})]}),X="_full-screen-container_1rm4r_1",Y={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:X},Z=({title:e,children:t,sideContent:i,noPadding:a,className:l})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("overflow-hidden luminus-full-screen-container",a?"p-0":"p-3",l,Y.fullScreenContainer),style:{width:i?"calc(100% - 250px)":"100%"},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:250,children:i})]});exports.FullScreenContainer=Z;exports.MainContainer=W;exports.SideContentBar=b;exports.SideMenu=D;exports.TopBar=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./UserAvatarToggle-rzyVxLmG.cjs"),d=require("react");require("react-hook-form");const w=require("./usePermissions-CO93mmCn.cjs"),C=require("./SimpleTooltip-OE_cbcNU.cjs"),M="_side-menu-item_6vbwa_1",B="_disabled_6vbwa_5",k="_nav-button_6vbwa_9",g="_child_6vbwa_17",S="_text_6vbwa_21",P="_icon_6vbwa_28",f="_collapse-icon_6vbwa_34",T="_collapsed_6vbwa_44",y="_expanded_6vbwa_51",I="_children-container_6vbwa_57",$="_visible_6vbwa_65",H="_children_6vbwa_57",o={"side-menu-item":"_side-menu-item_6vbwa_1",sideMenuItem:M,disabled:B,"nav-button":"_nav-button_6vbwa_9",navButton:k,child:g,text:S,icon:P,"collapse-icon":"_collapse-icon_6vbwa_34",collapseIcon:f,collapsed:T,expanded:y,"children-container":"_children-container_6vbwa_57",childrenContainer:I,visible:$,children:H},L=({item:e,menuExpanded:t,children:i})=>e.tooltip&&!t?s.jsxRuntimeExports.jsx(C.SimpleTooltip,{text:e.tooltip,placement:"right",children:i}):i,N=({item:e,menuExpanded:t,collapsed:i,onCollapse:a,currentPath:l})=>{var v,_;const{LinkComponent:m}=d.useContext(s.LuminusComponentsContext),[p,x]=d.useState(!1),[c]=l.split("?"),h=e.linkTo===c||((v=e.children)==null?void 0:v.some(n=>n.linkTo===c));return s.jsxRuntimeExports.jsxs("li",{className:s.classNames("luminus-side-menu-item",o.sideMenuItem,{[o.expanded]:t},{active:p||h},{open:i&&e.children},{[o.disabled]:e.disabled||e.notPermitted},{disabled:e.disabled||e.notPermitted}),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[s.jsxRuntimeExports.jsx(L,{item:e,menuExpanded:t,children:e.children?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames("nav-link",o.navButton),onClick:()=>a(),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("collapse-icon",o.collapseIcon,{[o.collapsed]:i}),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})}):s.jsxRuntimeExports.jsxs(m,{to:e.disabled||e.notPermitted?"/":e.linkTo??"/",className:s.classNames("nav-link",o.navButton),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title})]})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("children-container",o.childrenContainer,{[o.visible]:i}),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("shadow rounded children",o.children),children:(_=e.children)==null?void 0:_.map(n=>s.jsxRuntimeExports.jsx(m,{to:n.disabled||n.notPermitted?"/":n.linkTo??"/",className:s.classNames("nav-link child rounded",o.navButton,o.child,{[o.disabled]:n.disabled||n.notPermitted},{disabled:n.disabled||n.notPermitted}),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:n.title})},n.linkTo))})})]})},q="_side-menu_n1hvm_1",F="_sidebar-header_n1hvm_13",A="_side-menu-content_n1hvm_18",U="_expand_n1hvm_22",K="_divider_n1hvm_26",j={"side-menu":"_side-menu_n1hvm_1",sideMenu:q,"sidebar-header":"_sidebar-header_n1hvm_13",sidebarHeader:F,"side-menu-content":"_side-menu-content_n1hvm_18",sideMenuContent:A,expand:U,divider:K},z=({headerItem:e,mainItems:t,secondaryItems:i,expanded:a,setExpanded:l,currentPath:m})=>{const[p,x]=d.useState(-1),{checkUserHasPermissions:c}=w.usePermissions(),h=d.useMemo(()=>t.map(n=>{var r;return{...n,notPermitted:!c(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(u=>({...u,notPermitted:!c(u.permissions??[]),disabled:n.disabled||u.disabled}))}}),[t,c]),v=d.useMemo(()=>i.map(n=>{var r;return{...n,notPermitted:!c(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(u=>({...u,notPermitted:!c(u.permissions??[])}))}}),[i,c]),_=n=>{x(n===p?-1:n)};return d.useEffect(()=>{a||x(-1)},[a]),s.jsxRuntimeExports.jsxs("section",{className:s.classNames("luminus-side-menu shadow",j.sideMenu,{[j.expand]:a},{expand:a}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("sidebar-header",j.sidebarHeader),children:e}),s.jsxRuntimeExports.jsxs("ul",{className:j.sideMenuContent,children:[h.map((n,r)=>s.jsxRuntimeExports.jsx(N,{item:n,menuExpanded:a,collapsed:r===p,onCollapse:()=>_(r),currentPath:m},n.title)),s.jsxRuntimeExports.jsx("hr",{className:s.classNames("divider",j.divider)}),v.map((n,r)=>s.jsxRuntimeExports.jsx(N,{item:n,menuExpanded:a,collapsed:r===p,onCollapse:()=>_(r),currentPath:m},n.title))]})]})},D="_top-bar_1lk80_1",G="_top-bar-brand_1lk80_14",R={"top-bar":"_top-bar_1lk80_1",topBar:D,"top-bar-brand":"_top-bar-brand_1lk80_14",topBarBrand:G},J=({appName:e,leftOffset:t,centerContent:i,rightContent:a})=>{const{LinkComponent:l}=d.useContext(s.LuminusComponentsContext);return s.jsxRuntimeExports.jsxs("nav",{className:s.classNames("luminus-top-bar shadow",R.topBar),style:{width:t?`calc(100% - ${t}px)`:void 0,left:t?`${t}px`:void 0},children:[s.jsxRuntimeExports.jsx(l,{to:"/",className:s.classNames("luminus-top-bar-brand",R.topBarBrand),children:e}),i&&s.jsxRuntimeExports.jsx("div",{children:i}),s.jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-end align-items-center gap-2",children:a??null})]})},O="_side-content-bar_17kwd_1",Q={"side-content-bar":"_side-content-bar_17kwd_1",sideContentBar:O},b=({width:e,children:t})=>s.jsxRuntimeExports.jsx("section",{className:s.classNames("luminus-side-content-bar shadow",Q.sideContentBar),style:{width:`${e}px`},children:t}),E=({title:e})=>s.jsxRuntimeExports.jsx("div",{className:"mb-3",children:typeof e=="string"?s.jsxRuntimeExports.jsx(s.Typography,{variant:"h3",children:e}):e}),V=({title:e,children:t,sideContent:i,noPadding:a,className:l})=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("container-fluid",a?"p-0":"p-3",l),children:[s.jsxRuntimeExports.jsxs("div",{style:{paddingRight:i?"250px":void 0},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:250,children:i})]}),W="_full-screen-container_1rm4r_1",X={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:W},Y=({title:e,children:t,sideContent:i,noPadding:a,className:l})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("overflow-hidden luminus-full-screen-container",a?"p-0":"p-3",l,X.fullScreenContainer),style:{width:i?"calc(100% - 250px)":"100%"},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:250,children:i})]});exports.FullScreenContainer=Y;exports.MainContainer=V;exports.SideContentBar=b;exports.SideMenu=z;exports.TopBar=J;