react-luminus-components 1.1.21 → 1.1.23
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/.vite/manifest.json +52 -61
- package/dist/{DataKey-DVMbPWFY.cjs → DataKey--JBhGjOn.cjs} +1 -1
- package/dist/{DataKey-B7CWQXvv.js → DataKey-BWAmmcUw.js} +1 -1
- package/dist/{SimpleTooltip-CrOBQ9qh.cjs → SimpleTooltip-C-IHJfQ5.cjs} +1 -1
- package/dist/{SimpleTooltip-BDudpqqO.js → SimpleTooltip-CfJs3h6Q.js} +2 -2
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +2 -1
- package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +2 -1
- package/dist/components/common/Collapse/Collapse.d.ts +14 -2
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
- package/dist/components/common/Typography/Typography.d.ts +1 -1
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +2 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +153 -151
- package/dist/hasClass-D1jUrHAX.cjs +20 -0
- package/dist/{hasClass-Hw6fOz0J.js → hasClass-Sn_KqIXn.js} +237 -233
- package/dist/hooks/useAxios/useAxios.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +241 -240
- package/dist/style.css +1 -1
- package/dist/textUtils-CHVVh2oi.cjs +1 -0
- package/dist/textUtils-DW4f3rLU.js +36 -0
- package/dist/useAxios-BZn4k8_S.js +3320 -0
- package/dist/useAxios-QCWXMOfJ.cjs +231 -0
- package/dist/{useConfirm-CrTJszXF.cjs → useConfirm-A379uhYQ.cjs} +1 -1
- package/dist/{useConfirm-CyietOP-.js → useConfirm-BK-FMKuK.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +5 -5
- package/package.json +2 -1
- package/dist/constants-CT2hnPeO.cjs +0 -1
- package/dist/constants-CzNy5yO3.js +0 -7
- package/dist/hasClass-6qFx2Lwl.cjs +0 -20
- package/dist/textUtils-Bb6c2XYw.cjs +0 -1
- package/dist/textUtils-Bd2QCbzF.js +0 -32
- package/dist/useAxios-B4X7zKtj.cjs +0 -212
- package/dist/useAxios-CHbKHRpj.js +0 -2883
package/dist/main.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as s, f as bt, M as xt, g as zn, d as
|
|
1
|
+
import { j as s, t as q, f as X, h as bt, M as xt, g as zn, d as y, L as Ce, i as Jn, k as wt, l as we, m as vt, n as Zn, o as er, p as tr, q as nr, r as rr, s as or, G as ar, v as le, w as sr } from "./useAxios-BZn4k8_S.js";
|
|
2
2
|
import * as k from "react";
|
|
3
|
-
import H, { useCallback as
|
|
4
|
-
import { d as ge, u as ir, q as Me, a as cr } from "./DataKey-
|
|
5
|
-
import { L as Vi } from "./DataKey-
|
|
6
|
-
import {
|
|
7
|
-
import { w as ur, x as dr, s as Je, E as fr, y as mr, z as hr, A as pr, B as gr, d as Z, g as I, C as br, D as xr, j as wr, u as vr, p as yr, k as $e, q as jr, m as Cr, P as Y, N as Ct, F as $t, T as re } from "./hasClass-
|
|
3
|
+
import H, { useCallback as D, useMemo as L, useEffect as P, useRef as F, useState as W, useReducer as yt, useContext as E } from "react";
|
|
4
|
+
import { d as ge, u as ir, q as Me, a as cr } from "./DataKey-BWAmmcUw.js";
|
|
5
|
+
import { L as Vi } from "./DataKey-BWAmmcUw.js";
|
|
6
|
+
import { a as lr, b as jt } from "./textUtils-DW4f3rLU.js";
|
|
7
|
+
import { w as ur, x as dr, s as Je, E as fr, y as mr, z as hr, A as pr, B as gr, d as Z, g as I, C as br, D as xr, j as wr, u as vr, p as yr, k as $e, q as jr, m as Cr, P as Y, N as Ct, F as $t, T as re } from "./hasClass-Sn_KqIXn.js";
|
|
8
8
|
import { u as $r } from "./useClickOutside-BjJyGTec.js";
|
|
9
|
-
import { u as kr, m as Nr, a as Er, w as Ae, b as Le, O as kt, P as _e, T as Or } from "./SimpleTooltip-
|
|
10
|
-
import { S as Xi } from "./SimpleTooltip-
|
|
9
|
+
import { u as kr, m as Nr, a as Er, w as Ae, b as Le, O as kt, P as _e, T as Or } from "./SimpleTooltip-CfJs3h6Q.js";
|
|
10
|
+
import { S as Xi } from "./SimpleTooltip-CfJs3h6Q.js";
|
|
11
11
|
import { useFormContext as ee } from "react-hook-form";
|
|
12
12
|
const hi = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
13
|
-
const r =
|
|
13
|
+
const r = D(async () => {
|
|
14
14
|
var c;
|
|
15
15
|
const o = await e();
|
|
16
16
|
if (!o)
|
|
@@ -20,13 +20,6 @@ const hi = ({ fileLoader: e, fileName: t, children: n }) => {
|
|
|
20
20
|
}, [e, t]);
|
|
21
21
|
return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: n });
|
|
22
22
|
};
|
|
23
|
-
function q(e) {
|
|
24
|
-
const t = Object.prototype.toString.call(e);
|
|
25
|
-
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
26
|
-
}
|
|
27
|
-
function X(e, t) {
|
|
28
|
-
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
29
|
-
}
|
|
30
23
|
function Nt(e, t) {
|
|
31
24
|
const n = q(e);
|
|
32
25
|
if (isNaN(t))
|
|
@@ -80,11 +73,11 @@ function et(e) {
|
|
|
80
73
|
);
|
|
81
74
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
82
75
|
}
|
|
83
|
-
function
|
|
76
|
+
function Tr(e, t) {
|
|
84
77
|
const n = Ze(e), r = Ze(t), o = +n - et(n), a = +r - et(r);
|
|
85
78
|
return Math.round((o - a) / lr);
|
|
86
79
|
}
|
|
87
|
-
function
|
|
80
|
+
function Dr(e) {
|
|
88
81
|
const t = Et(e), n = X(e, 0);
|
|
89
82
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), ve(n);
|
|
90
83
|
}
|
|
@@ -171,7 +164,7 @@ const Fr = {
|
|
|
171
164
|
const o = Fr[e];
|
|
172
165
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
173
166
|
};
|
|
174
|
-
function
|
|
167
|
+
function Te(e) {
|
|
175
168
|
return (t = {}) => {
|
|
176
169
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
177
170
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -193,15 +186,15 @@ const Rr = {
|
|
|
193
186
|
medium: "{{date}}, {{time}}",
|
|
194
187
|
short: "{{date}}, {{time}}"
|
|
195
188
|
}, Yr = {
|
|
196
|
-
date:
|
|
189
|
+
date: Te({
|
|
197
190
|
formats: Rr,
|
|
198
191
|
defaultWidth: "full"
|
|
199
192
|
}),
|
|
200
|
-
time:
|
|
193
|
+
time: Te({
|
|
201
194
|
formats: Ar,
|
|
202
195
|
defaultWidth: "full"
|
|
203
196
|
}),
|
|
204
|
-
dateTime:
|
|
197
|
+
dateTime: Te({
|
|
205
198
|
formats: Lr,
|
|
206
199
|
defaultWidth: "full"
|
|
207
200
|
})
|
|
@@ -539,10 +532,10 @@ const to = /^(\d+)(th|st|nd|rd)?/i, no = /\d+/i, ro = {
|
|
|
539
532
|
};
|
|
540
533
|
function go(e) {
|
|
541
534
|
const t = q(e);
|
|
542
|
-
return
|
|
535
|
+
return Tr(t, Pr(t)) + 1;
|
|
543
536
|
}
|
|
544
537
|
function bo(e) {
|
|
545
|
-
const t = q(e), n = +ve(t) - +
|
|
538
|
+
const t = q(e), n = +ve(t) - +Dr(t);
|
|
546
539
|
return Math.round(n / jt) + 1;
|
|
547
540
|
}
|
|
548
541
|
function Ot(e, t) {
|
|
@@ -563,7 +556,7 @@ function wo(e, t) {
|
|
|
563
556
|
const n = q(e), r = +he(n, t) - +xo(n, t);
|
|
564
557
|
return Math.round(r / jt) + 1;
|
|
565
558
|
}
|
|
566
|
-
function
|
|
559
|
+
function T(e, t) {
|
|
567
560
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
568
561
|
return n + r;
|
|
569
562
|
}
|
|
@@ -571,16 +564,16 @@ const J = {
|
|
|
571
564
|
// Year
|
|
572
565
|
y(e, t) {
|
|
573
566
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
574
|
-
return
|
|
567
|
+
return T(t === "yy" ? r % 100 : r, t.length);
|
|
575
568
|
},
|
|
576
569
|
// Month
|
|
577
570
|
M(e, t) {
|
|
578
571
|
const n = e.getMonth();
|
|
579
|
-
return t === "M" ? String(n + 1) :
|
|
572
|
+
return t === "M" ? String(n + 1) : T(n + 1, 2);
|
|
580
573
|
},
|
|
581
574
|
// Day of the month
|
|
582
575
|
d(e, t) {
|
|
583
|
-
return
|
|
576
|
+
return T(e.getDate(), t.length);
|
|
584
577
|
},
|
|
585
578
|
// AM or PM
|
|
586
579
|
a(e, t) {
|
|
@@ -600,26 +593,26 @@ const J = {
|
|
|
600
593
|
},
|
|
601
594
|
// Hour [1-12]
|
|
602
595
|
h(e, t) {
|
|
603
|
-
return
|
|
596
|
+
return T(e.getHours() % 12 || 12, t.length);
|
|
604
597
|
},
|
|
605
598
|
// Hour [0-23]
|
|
606
599
|
H(e, t) {
|
|
607
|
-
return
|
|
600
|
+
return T(e.getHours(), t.length);
|
|
608
601
|
},
|
|
609
602
|
// Minute
|
|
610
603
|
m(e, t) {
|
|
611
|
-
return
|
|
604
|
+
return T(e.getMinutes(), t.length);
|
|
612
605
|
},
|
|
613
606
|
// Second
|
|
614
607
|
s(e, t) {
|
|
615
|
-
return
|
|
608
|
+
return T(e.getSeconds(), t.length);
|
|
616
609
|
},
|
|
617
610
|
// Fraction of second
|
|
618
611
|
S(e, t) {
|
|
619
612
|
const n = t.length, r = e.getMilliseconds(), o = Math.trunc(
|
|
620
613
|
r * Math.pow(10, n - 3)
|
|
621
614
|
);
|
|
622
|
-
return
|
|
615
|
+
return T(o, t.length);
|
|
623
616
|
}
|
|
624
617
|
}, ie = {
|
|
625
618
|
am: "am",
|
|
@@ -659,14 +652,14 @@ const J = {
|
|
|
659
652
|
const o = Ot(e, r), a = o > 0 ? o : 1 - o;
|
|
660
653
|
if (t === "YY") {
|
|
661
654
|
const i = a % 100;
|
|
662
|
-
return
|
|
655
|
+
return T(i, 2);
|
|
663
656
|
}
|
|
664
|
-
return t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) :
|
|
657
|
+
return t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : T(a, t.length);
|
|
665
658
|
},
|
|
666
659
|
// ISO week-numbering year
|
|
667
660
|
R: function(e, t) {
|
|
668
661
|
const n = Et(e);
|
|
669
|
-
return
|
|
662
|
+
return T(n, t.length);
|
|
670
663
|
},
|
|
671
664
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
672
665
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -679,7 +672,7 @@ const J = {
|
|
|
679
672
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
680
673
|
u: function(e, t) {
|
|
681
674
|
const n = e.getFullYear();
|
|
682
|
-
return
|
|
675
|
+
return T(n, t.length);
|
|
683
676
|
},
|
|
684
677
|
// Quarter
|
|
685
678
|
Q: function(e, t, n) {
|
|
@@ -688,7 +681,7 @@ const J = {
|
|
|
688
681
|
case "Q":
|
|
689
682
|
return String(r);
|
|
690
683
|
case "QQ":
|
|
691
|
-
return
|
|
684
|
+
return T(r, 2);
|
|
692
685
|
case "Qo":
|
|
693
686
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
694
687
|
case "QQQ":
|
|
@@ -716,7 +709,7 @@ const J = {
|
|
|
716
709
|
case "q":
|
|
717
710
|
return String(r);
|
|
718
711
|
case "qq":
|
|
719
|
-
return
|
|
712
|
+
return T(r, 2);
|
|
720
713
|
case "qo":
|
|
721
714
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
722
715
|
case "qqq":
|
|
@@ -768,7 +761,7 @@ const J = {
|
|
|
768
761
|
case "L":
|
|
769
762
|
return String(r + 1);
|
|
770
763
|
case "LL":
|
|
771
|
-
return
|
|
764
|
+
return T(r + 1, 2);
|
|
772
765
|
case "Lo":
|
|
773
766
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
774
767
|
case "LLL":
|
|
@@ -789,12 +782,12 @@ const J = {
|
|
|
789
782
|
// Local week of year
|
|
790
783
|
w: function(e, t, n, r) {
|
|
791
784
|
const o = wo(e, r);
|
|
792
|
-
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) :
|
|
785
|
+
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : T(o, t.length);
|
|
793
786
|
},
|
|
794
787
|
// ISO week of year
|
|
795
788
|
I: function(e, t, n) {
|
|
796
789
|
const r = bo(e);
|
|
797
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
790
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : T(r, t.length);
|
|
798
791
|
},
|
|
799
792
|
// Day of the month
|
|
800
793
|
d: function(e, t, n) {
|
|
@@ -803,7 +796,7 @@ const J = {
|
|
|
803
796
|
// Day of year
|
|
804
797
|
D: function(e, t, n) {
|
|
805
798
|
const r = go(e);
|
|
806
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
799
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : T(r, t.length);
|
|
807
800
|
},
|
|
808
801
|
// Day of week
|
|
809
802
|
E: function(e, t, n) {
|
|
@@ -841,7 +834,7 @@ const J = {
|
|
|
841
834
|
case "e":
|
|
842
835
|
return String(a);
|
|
843
836
|
case "ee":
|
|
844
|
-
return
|
|
837
|
+
return T(a, 2);
|
|
845
838
|
case "eo":
|
|
846
839
|
return n.ordinalNumber(a, { unit: "day" });
|
|
847
840
|
case "eee":
|
|
@@ -874,7 +867,7 @@ const J = {
|
|
|
874
867
|
case "c":
|
|
875
868
|
return String(a);
|
|
876
869
|
case "cc":
|
|
877
|
-
return
|
|
870
|
+
return T(a, t.length);
|
|
878
871
|
case "co":
|
|
879
872
|
return n.ordinalNumber(a, { unit: "day" });
|
|
880
873
|
case "ccc":
|
|
@@ -907,7 +900,7 @@ const J = {
|
|
|
907
900
|
case "i":
|
|
908
901
|
return String(o);
|
|
909
902
|
case "ii":
|
|
910
|
-
return
|
|
903
|
+
return T(o, t.length);
|
|
911
904
|
case "io":
|
|
912
905
|
return n.ordinalNumber(o, { unit: "day" });
|
|
913
906
|
case "iii":
|
|
@@ -1030,12 +1023,12 @@ const J = {
|
|
|
1030
1023
|
// Hour [0-11]
|
|
1031
1024
|
K: function(e, t, n) {
|
|
1032
1025
|
const r = e.getHours() % 12;
|
|
1033
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1026
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : T(r, t.length);
|
|
1034
1027
|
},
|
|
1035
1028
|
// Hour [1-24]
|
|
1036
1029
|
k: function(e, t, n) {
|
|
1037
1030
|
let r = e.getHours();
|
|
1038
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1031
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : T(r, t.length);
|
|
1039
1032
|
},
|
|
1040
1033
|
// Minute
|
|
1041
1034
|
m: function(e, t, n) {
|
|
@@ -1110,23 +1103,23 @@ const J = {
|
|
|
1110
1103
|
// Seconds timestamp
|
|
1111
1104
|
t: function(e, t, n) {
|
|
1112
1105
|
const r = Math.trunc(e.getTime() / 1e3);
|
|
1113
|
-
return
|
|
1106
|
+
return T(r, t.length);
|
|
1114
1107
|
},
|
|
1115
1108
|
// Milliseconds timestamp
|
|
1116
1109
|
T: function(e, t, n) {
|
|
1117
1110
|
const r = e.getTime();
|
|
1118
|
-
return
|
|
1111
|
+
return T(r, t.length);
|
|
1119
1112
|
}
|
|
1120
1113
|
};
|
|
1121
1114
|
function nt(e, t = "") {
|
|
1122
1115
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), a = r % 60;
|
|
1123
|
-
return a === 0 ? n + String(o) : n + String(o) + t +
|
|
1116
|
+
return a === 0 ? n + String(o) : n + String(o) + t + T(a, 2);
|
|
1124
1117
|
}
|
|
1125
1118
|
function rt(e, t) {
|
|
1126
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
1119
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : oe(e, t);
|
|
1127
1120
|
}
|
|
1128
1121
|
function oe(e, t = "") {
|
|
1129
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), o =
|
|
1122
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = T(Math.trunc(r / 60), 2), a = T(r % 60, 2);
|
|
1130
1123
|
return n + o + t + a;
|
|
1131
1124
|
}
|
|
1132
1125
|
const ot = (e, t) => {
|
|
@@ -1193,13 +1186,13 @@ function Oo(e, t, n) {
|
|
|
1193
1186
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1194
1187
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1195
1188
|
}
|
|
1196
|
-
const _o = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
|
|
1197
|
-
function
|
|
1198
|
-
var f, d, h, m, p, g, x,
|
|
1199
|
-
const r = ke(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? po, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((
|
|
1189
|
+
const _o = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, To = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Do = /^'([^]*?)'?$/, So = /''/g, Io = /[a-zA-Z]/;
|
|
1190
|
+
function Tt(e, t, n) {
|
|
1191
|
+
var f, d, h, m, p, g, x, j;
|
|
1192
|
+
const r = ke(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? po, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((j = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : j.weekStartsOn) ?? 0, c = q(e);
|
|
1200
1193
|
if (!Mr(c))
|
|
1201
1194
|
throw new RangeError("Invalid time value");
|
|
1202
|
-
let l = t.match(
|
|
1195
|
+
let l = t.match(To).map((w) => {
|
|
1203
1196
|
const b = w[0];
|
|
1204
1197
|
if (b === "p" || b === "P") {
|
|
1205
1198
|
const $ = yo[b];
|
|
@@ -1236,25 +1229,25 @@ function Dt(e, t, n) {
|
|
|
1236
1229
|
}).join("");
|
|
1237
1230
|
}
|
|
1238
1231
|
function Mo(e) {
|
|
1239
|
-
const t = e.match(
|
|
1232
|
+
const t = e.match(Do);
|
|
1240
1233
|
return t ? t[1].replace(So, "'") : e;
|
|
1241
1234
|
}
|
|
1242
1235
|
const pi = ({ month: e, onChangeMonth: t, locale: n }) => {
|
|
1243
|
-
const r =
|
|
1236
|
+
const r = D((o) => {
|
|
1244
1237
|
t(Nt(e, o));
|
|
1245
1238
|
}, [e, t]);
|
|
1246
1239
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1247
1240
|
/* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(bt, {}) }),
|
|
1248
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
1241
|
+
/* @__PURE__ */ s.jsx("div", { children: Tt(e, "LLLL yyyy", { locale: n }) }),
|
|
1249
1242
|
/* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => r(1), children: /* @__PURE__ */ s.jsx(xt, {}) })
|
|
1250
1243
|
] });
|
|
1251
1244
|
}, gi = ({ year: e, onChangeYear: t, locale: n }) => {
|
|
1252
|
-
const r =
|
|
1245
|
+
const r = D((o) => {
|
|
1253
1246
|
t(Sr(e, o));
|
|
1254
1247
|
}, [e, t]);
|
|
1255
1248
|
return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1256
1249
|
/* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => r(-1), children: /* @__PURE__ */ s.jsx(bt, {}) }),
|
|
1257
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
1250
|
+
/* @__PURE__ */ s.jsx("div", { children: Tt(e, "yyyy", { locale: n }) }),
|
|
1258
1251
|
/* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => r(1), children: /* @__PURE__ */ s.jsx(xt, {}) })
|
|
1259
1252
|
] });
|
|
1260
1253
|
};
|
|
@@ -1320,7 +1313,7 @@ const Ao = {
|
|
|
1320
1313
|
getDimensionValue: m = Ro,
|
|
1321
1314
|
...p
|
|
1322
1315
|
}, g) => {
|
|
1323
|
-
const x = typeof c == "function" ? c() : c,
|
|
1316
|
+
const x = typeof c == "function" ? c() : c, j = L(() => me((N) => {
|
|
1324
1317
|
N.style[x] = "0";
|
|
1325
1318
|
}, e), [x, e]), w = L(() => me((N) => {
|
|
1326
1319
|
const _ = `scroll${x[0].toUpperCase()}${x.slice(1)}`;
|
|
@@ -1337,7 +1330,7 @@ const Ao = {
|
|
|
1337
1330
|
addEndListener: dr,
|
|
1338
1331
|
...p,
|
|
1339
1332
|
"aria-expanded": p.role ? l : null,
|
|
1340
|
-
onEnter:
|
|
1333
|
+
onEnter: j,
|
|
1341
1334
|
onEntering: w,
|
|
1342
1335
|
onEntered: b,
|
|
1343
1336
|
onExit: $,
|
|
@@ -1350,7 +1343,7 @@ const Ao = {
|
|
|
1350
1343
|
appear: h,
|
|
1351
1344
|
children: (N, _) => /* @__PURE__ */ H.cloneElement(i, {
|
|
1352
1345
|
..._,
|
|
1353
|
-
className:
|
|
1346
|
+
className: y(a, i.props.className, Ao[N], x === "width" && "collapse-horizontal")
|
|
1354
1347
|
})
|
|
1355
1348
|
});
|
|
1356
1349
|
}), Yo = Lo;
|
|
@@ -1444,7 +1437,7 @@ function Vo(e, t) {
|
|
|
1444
1437
|
function Qo(e) {
|
|
1445
1438
|
return !e || e.trim() === "#";
|
|
1446
1439
|
}
|
|
1447
|
-
const
|
|
1440
|
+
const Dt = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
1448
1441
|
let {
|
|
1449
1442
|
onKeyDown: n
|
|
1450
1443
|
} = e, r = Vo(e, Go);
|
|
@@ -1463,8 +1456,8 @@ const Tt = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
1463
1456
|
onKeyDown: n
|
|
1464
1457
|
}));
|
|
1465
1458
|
});
|
|
1466
|
-
|
|
1467
|
-
const St =
|
|
1459
|
+
Dt.displayName = "Anchor";
|
|
1460
|
+
const St = Dt, It = /* @__PURE__ */ k.forwardRef(({
|
|
1468
1461
|
as: e,
|
|
1469
1462
|
bsPrefix: t,
|
|
1470
1463
|
variant: n = "primary",
|
|
@@ -1486,7 +1479,7 @@ const St = Tt, It = /* @__PURE__ */ k.forwardRef(({
|
|
|
1486
1479
|
...c,
|
|
1487
1480
|
ref: l,
|
|
1488
1481
|
disabled: a,
|
|
1489
|
-
className:
|
|
1482
|
+
className: y(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`, c.href && a && "disabled")
|
|
1490
1483
|
});
|
|
1491
1484
|
});
|
|
1492
1485
|
It.displayName = "Button";
|
|
@@ -1527,7 +1520,7 @@ function Zo({
|
|
|
1527
1520
|
f && i.push(f === !0 ? `${t}${m}` : `${t}${m}-${f}`), h != null && c.push(`order${m}-${h}`), d != null && c.push(`offset${m}-${d}`);
|
|
1528
1521
|
}), [{
|
|
1529
1522
|
...r,
|
|
1530
|
-
className:
|
|
1523
|
+
className: y(n, ...i, ...c)
|
|
1531
1524
|
}, {
|
|
1532
1525
|
as: e,
|
|
1533
1526
|
bsPrefix: t,
|
|
@@ -1548,7 +1541,7 @@ const Pt = /* @__PURE__ */ k.forwardRef(
|
|
|
1548
1541
|
return /* @__PURE__ */ s.jsx(o, {
|
|
1549
1542
|
...r,
|
|
1550
1543
|
ref: t,
|
|
1551
|
-
className:
|
|
1544
|
+
className: y(n, !i.length && a)
|
|
1552
1545
|
});
|
|
1553
1546
|
}
|
|
1554
1547
|
);
|
|
@@ -1556,7 +1549,7 @@ Pt.displayName = "Col";
|
|
|
1556
1549
|
const ea = Pt;
|
|
1557
1550
|
function Ft(e, t, n) {
|
|
1558
1551
|
const r = F(e !== void 0), [o, a] = W(t), i = e !== void 0, c = r.current;
|
|
1559
|
-
return r.current = i, !i && c && o !== t && a(t), [i ? e : o,
|
|
1552
|
+
return r.current = i, !i && c && o !== t && a(t), [i ? e : o, D((...l) => {
|
|
1560
1553
|
const [u, ...f] = l;
|
|
1561
1554
|
let d = n == null ? void 0 : n(u, ...f);
|
|
1562
1555
|
return a(u), d;
|
|
@@ -1594,9 +1587,9 @@ function Rt(e = {}) {
|
|
|
1594
1587
|
}, {
|
|
1595
1588
|
placement: g,
|
|
1596
1589
|
setMenu: x,
|
|
1597
|
-
menuElement:
|
|
1590
|
+
menuElement: j,
|
|
1598
1591
|
toggleElement: w
|
|
1599
|
-
} = t || {}, b = kr(w,
|
|
1592
|
+
} = t || {}, b = kr(w, j, Nr({
|
|
1600
1593
|
placement: u || g || "bottom-start",
|
|
1601
1594
|
enabled: h,
|
|
1602
1595
|
enableEvents: d ?? m,
|
|
@@ -1622,7 +1615,7 @@ function Rt(e = {}) {
|
|
|
1622
1615
|
style: b.styles.arrow
|
|
1623
1616
|
}) : {}
|
|
1624
1617
|
};
|
|
1625
|
-
return Er(
|
|
1618
|
+
return Er(j, p, {
|
|
1626
1619
|
clickTrigger: c,
|
|
1627
1620
|
disabled: !m
|
|
1628
1621
|
}), [$, v];
|
|
@@ -1645,18 +1638,18 @@ const ye = {
|
|
|
1645
1638
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1646
1639
|
current: 0
|
|
1647
1640
|
}, At = /* @__PURE__ */ H.createContext(ye), sa = /* @__PURE__ */ H.createContext(!1);
|
|
1648
|
-
let ia = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
1641
|
+
let ia = !!(typeof window < "u" && window.document && window.document.createElement), De = /* @__PURE__ */ new WeakMap();
|
|
1649
1642
|
function ca(e = !1) {
|
|
1650
1643
|
let t = E(At), n = F(null);
|
|
1651
1644
|
if (n.current === null && !e) {
|
|
1652
1645
|
var r, o;
|
|
1653
1646
|
let a = (o = H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
1654
1647
|
if (a) {
|
|
1655
|
-
let i =
|
|
1656
|
-
i == null ?
|
|
1648
|
+
let i = De.get(a);
|
|
1649
|
+
i == null ? De.set(a, {
|
|
1657
1650
|
id: t.current,
|
|
1658
1651
|
state: a.memoizedState
|
|
1659
|
-
}) : a.memoizedState !== i.state && (t.current = i.id,
|
|
1652
|
+
}) : a.memoizedState !== i.state && (t.current = i.id, De.delete(a));
|
|
1660
1653
|
}
|
|
1661
1654
|
n.current = ++t.current;
|
|
1662
1655
|
}
|
|
@@ -1697,7 +1690,7 @@ function qt() {
|
|
|
1697
1690
|
toggle: n = it,
|
|
1698
1691
|
setToggle: r,
|
|
1699
1692
|
menuElement: o
|
|
1700
|
-
} = E(Ne) || {}, a =
|
|
1693
|
+
} = E(Ne) || {}, a = D((c) => {
|
|
1701
1694
|
n(!t, c);
|
|
1702
1695
|
}, [t, n]), i = {
|
|
1703
1696
|
id: e,
|
|
@@ -1772,7 +1765,7 @@ const Gt = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
1772
1765
|
});
|
|
1773
1766
|
Gt.displayName = "DropdownItem";
|
|
1774
1767
|
function ct() {
|
|
1775
|
-
const e = Wt(), t = F(null), n =
|
|
1768
|
+
const e = Wt(), t = F(null), n = D((r) => {
|
|
1776
1769
|
t.current = r, e();
|
|
1777
1770
|
}, [e]);
|
|
1778
1771
|
return [t, n];
|
|
@@ -1787,7 +1780,7 @@ function be({
|
|
|
1787
1780
|
placement: i = "bottom-start",
|
|
1788
1781
|
children: c
|
|
1789
1782
|
}) {
|
|
1790
|
-
const l = vr(), [u, f] = Ft(t, e, r), [d, h] = ct(), m = d.current, [p, g] = ct(), x = p.current,
|
|
1783
|
+
const l = vr(), [u, f] = Ft(t, e, r), [d, h] = ct(), m = d.current, [p, g] = ct(), x = p.current, j = ir(u), w = F(null), b = F(!1), $ = E(U), v = D((C, O, R = O == null ? void 0 : O.type) => {
|
|
1791
1784
|
f(C, {
|
|
1792
1785
|
originalEvent: O,
|
|
1793
1786
|
source: R
|
|
@@ -1803,7 +1796,7 @@ function be({
|
|
|
1803
1796
|
setMenu: h,
|
|
1804
1797
|
setToggle: g
|
|
1805
1798
|
}), [v, i, u, m, x, h, g]);
|
|
1806
|
-
m &&
|
|
1799
|
+
m && j && !u && (b.current = m.contains(m.ownerDocument.activeElement));
|
|
1807
1800
|
const S = Z(() => {
|
|
1808
1801
|
x && x.focus && x.focus();
|
|
1809
1802
|
}), A = Z(() => {
|
|
@@ -1826,7 +1819,7 @@ function be({
|
|
|
1826
1819
|
let G = R.indexOf(C) + O;
|
|
1827
1820
|
return G = Math.max(0, Math.min(G, R.length)), R[G];
|
|
1828
1821
|
};
|
|
1829
|
-
return qo(
|
|
1822
|
+
return qo(D(() => l.document, [l]), "keydown", (C) => {
|
|
1830
1823
|
var O, R;
|
|
1831
1824
|
const {
|
|
1832
1825
|
key: G
|
|
@@ -1886,7 +1879,7 @@ const Qt = Vt, Xt = /* @__PURE__ */ k.forwardRef(({
|
|
|
1886
1879
|
...o
|
|
1887
1880
|
}, a) => (t = I(t, "dropdown-divider"), /* @__PURE__ */ s.jsx(n, {
|
|
1888
1881
|
ref: a,
|
|
1889
|
-
className:
|
|
1882
|
+
className: y(e, t),
|
|
1890
1883
|
role: r,
|
|
1891
1884
|
...o
|
|
1892
1885
|
})));
|
|
@@ -1899,7 +1892,7 @@ const xa = Xt, Ut = /* @__PURE__ */ k.forwardRef(({
|
|
|
1899
1892
|
...o
|
|
1900
1893
|
}, a) => (t = I(t, "dropdown-header"), /* @__PURE__ */ s.jsx(n, {
|
|
1901
1894
|
ref: a,
|
|
1902
|
-
className:
|
|
1895
|
+
className: y(e, t),
|
|
1903
1896
|
role: r,
|
|
1904
1897
|
...o
|
|
1905
1898
|
})));
|
|
@@ -1925,7 +1918,7 @@ const wa = Ut, zt = /* @__PURE__ */ k.forwardRef(({
|
|
|
1925
1918
|
...c,
|
|
1926
1919
|
...f,
|
|
1927
1920
|
ref: l,
|
|
1928
|
-
className:
|
|
1921
|
+
className: y(t, u, d.isActive && "active", r && "disabled")
|
|
1929
1922
|
});
|
|
1930
1923
|
});
|
|
1931
1924
|
zt.displayName = "DropdownItem";
|
|
@@ -1936,7 +1929,7 @@ const va = zt, Jt = /* @__PURE__ */ k.forwardRef(({
|
|
|
1936
1929
|
...r
|
|
1937
1930
|
}, o) => (t = I(t, "dropdown-item-text"), /* @__PURE__ */ s.jsx(n, {
|
|
1938
1931
|
ref: o,
|
|
1939
|
-
className:
|
|
1932
|
+
className: y(e, t),
|
|
1940
1933
|
...r
|
|
1941
1934
|
})));
|
|
1942
1935
|
Jt.displayName = "DropdownItemText";
|
|
@@ -1948,7 +1941,7 @@ const tn = en;
|
|
|
1948
1941
|
function nn(e, t) {
|
|
1949
1942
|
if (process.env.NODE_ENV === "production")
|
|
1950
1943
|
return e;
|
|
1951
|
-
const n =
|
|
1944
|
+
const n = D((r) => {
|
|
1952
1945
|
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? at(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : at(!1));
|
|
1953
1946
|
}, [t]);
|
|
1954
1947
|
return $e(n, e);
|
|
@@ -1976,7 +1969,7 @@ const on = /* @__PURE__ */ k.forwardRef(({
|
|
|
1976
1969
|
const m = E(tn), p = I(e, "dropdown-menu"), {
|
|
1977
1970
|
align: g,
|
|
1978
1971
|
drop: x,
|
|
1979
|
-
isRTL:
|
|
1972
|
+
isRTL: j
|
|
1980
1973
|
} = E(Qt);
|
|
1981
1974
|
n = n || g;
|
|
1982
1975
|
const w = E(He), b = [];
|
|
@@ -1989,7 +1982,7 @@ const on = /* @__PURE__ */ k.forwardRef(({
|
|
|
1989
1982
|
}
|
|
1990
1983
|
} else
|
|
1991
1984
|
n === "end" && (h = !0);
|
|
1992
|
-
const $ = rn(h, x,
|
|
1985
|
+
const $ = rn(h, x, j), [v, {
|
|
1993
1986
|
hasShown: N,
|
|
1994
1987
|
popper: _,
|
|
1995
1988
|
show: S,
|
|
@@ -2019,7 +2012,7 @@ const on = /* @__PURE__ */ k.forwardRef(({
|
|
|
2019
2012
|
...(b.length || m) && {
|
|
2020
2013
|
"data-bs-popper": "static"
|
|
2021
2014
|
},
|
|
2022
|
-
className:
|
|
2015
|
+
className: y(t, p, S && "show", h && `${p}-end`, u && `${p}-${u}`, ...b)
|
|
2023
2016
|
});
|
|
2024
2017
|
});
|
|
2025
2018
|
on.displayName = "DropdownMenu";
|
|
@@ -2036,7 +2029,7 @@ const ja = on, an = /* @__PURE__ */ k.forwardRef(({
|
|
|
2036
2029
|
r !== void 0 && (a.bsPrefix = r);
|
|
2037
2030
|
const [u] = qt();
|
|
2038
2031
|
return u.ref = $e(u.ref, nn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
|
|
2039
|
-
className:
|
|
2032
|
+
className: y(n, c, t && `${c}-split`, (l == null ? void 0 : l.show) && "show"),
|
|
2040
2033
|
...u,
|
|
2041
2034
|
...a
|
|
2042
2035
|
});
|
|
@@ -2059,9 +2052,9 @@ const Ca = an, sn = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
2059
2052
|
...m
|
|
2060
2053
|
} = Le(e, {
|
|
2061
2054
|
show: "onToggle"
|
|
2062
|
-
}), p = E(He), g = I(n, "dropdown"), x = Cr(),
|
|
2055
|
+
}), p = E(He), g = I(n, "dropdown"), x = Cr(), j = (_) => h === !1 ? _ === "click" : h === "inside" ? _ !== "rootClose" : h === "outside" ? _ !== "select" : !0, w = Z((_, S) => {
|
|
2063
2056
|
var A, M;
|
|
2064
|
-
!((A = S.originalEvent) == null || (M = A.target) == null) && M.classList.contains("dropdown-toggle") && S.source === "mousedown" || (S.originalEvent.currentTarget === document && (S.source !== "keydown" || S.originalEvent.key === "Escape") && (S.source = "rootClose"),
|
|
2057
|
+
!((A = S.originalEvent) == null || (M = A.target) == null) && M.classList.contains("dropdown-toggle") && S.source === "mousedown" || (S.originalEvent.currentTarget === document && (S.source !== "keydown" || S.originalEvent.key === "Escape") && (S.source = "rootClose"), j(S.source) && (l == null || l(_, S)));
|
|
2065
2058
|
}), $ = rn(i === "end", r, x), v = L(() => ({
|
|
2066
2059
|
align: i,
|
|
2067
2060
|
drop: r,
|
|
@@ -2086,7 +2079,7 @@ const Ca = an, sn = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
2086
2079
|
children: p ? m.children : /* @__PURE__ */ s.jsx(f, {
|
|
2087
2080
|
...m,
|
|
2088
2081
|
ref: t,
|
|
2089
|
-
className:
|
|
2082
|
+
className: y(a, o && "show", N[r])
|
|
2090
2083
|
})
|
|
2091
2084
|
})
|
|
2092
2085
|
});
|
|
@@ -2120,7 +2113,7 @@ const pe = Object.assign(sn, {
|
|
|
2120
2113
|
}, a) => /* @__PURE__ */ s.jsx(e, {
|
|
2121
2114
|
...o,
|
|
2122
2115
|
ref: a,
|
|
2123
|
-
className:
|
|
2116
|
+
className: y(t, `${n}-${r ? "tooltip" : "feedback"}`)
|
|
2124
2117
|
})
|
|
2125
2118
|
);
|
|
2126
2119
|
Ge.displayName = "Feedback";
|
|
@@ -2144,7 +2137,7 @@ const cn = Ge, ka = /* @__PURE__ */ k.createContext({}), z = ka, ln = /* @__PURE
|
|
|
2144
2137
|
ref: l,
|
|
2145
2138
|
type: r,
|
|
2146
2139
|
id: e || u,
|
|
2147
|
-
className:
|
|
2140
|
+
className: y(n, t, o && "is-valid", a && "is-invalid")
|
|
2148
2141
|
});
|
|
2149
2142
|
});
|
|
2150
2143
|
ln.displayName = "FormCheckInput";
|
|
@@ -2161,7 +2154,7 @@ const Ee = ln, un = /* @__PURE__ */ k.forwardRef(({
|
|
|
2161
2154
|
...r,
|
|
2162
2155
|
ref: o,
|
|
2163
2156
|
htmlFor: n || a,
|
|
2164
|
-
className:
|
|
2157
|
+
className: y(t, e)
|
|
2165
2158
|
});
|
|
2166
2159
|
});
|
|
2167
2160
|
un.displayName = "FormCheckLabel";
|
|
@@ -2184,7 +2177,7 @@ const Pe = un, dn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2184
2177
|
label: g,
|
|
2185
2178
|
children: x,
|
|
2186
2179
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2187
|
-
as:
|
|
2180
|
+
as: j = "input",
|
|
2188
2181
|
...w
|
|
2189
2182
|
}, b) => {
|
|
2190
2183
|
t = I(t, "form-check"), n = I(n, "form-switch");
|
|
@@ -2199,13 +2192,13 @@ const Pe = un, dn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2199
2192
|
isValid: i,
|
|
2200
2193
|
isInvalid: c,
|
|
2201
2194
|
disabled: a,
|
|
2202
|
-
as:
|
|
2195
|
+
as: j
|
|
2203
2196
|
});
|
|
2204
2197
|
return /* @__PURE__ */ s.jsx(z.Provider, {
|
|
2205
2198
|
value: v,
|
|
2206
2199
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2207
2200
|
style: h,
|
|
2208
|
-
className:
|
|
2201
|
+
className: y(d, N && t, r && `${t}-inline`, o && `${t}-reverse`, p === "switch" && n),
|
|
2209
2202
|
children: x || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2210
2203
|
children: [_, N && /* @__PURE__ */ s.jsx(Pe, {
|
|
2211
2204
|
title: m,
|
|
@@ -2248,7 +2241,7 @@ const je = Object.assign(dn, {
|
|
|
2248
2241
|
ref: h,
|
|
2249
2242
|
readOnly: u,
|
|
2250
2243
|
id: o || m,
|
|
2251
|
-
className:
|
|
2244
|
+
className: y(a, l ? `${e}-plaintext` : e, n && `${e}-${n}`, t === "color" && `${e}-color`, i && "is-valid", c && "is-invalid")
|
|
2252
2245
|
});
|
|
2253
2246
|
});
|
|
2254
2247
|
fn.displayName = "FormControl";
|
|
@@ -2261,7 +2254,7 @@ const mn = Object.assign(fn, {
|
|
|
2261
2254
|
...r
|
|
2262
2255
|
}, o) => (t = I(t, "form-floating"), /* @__PURE__ */ s.jsx(n, {
|
|
2263
2256
|
ref: o,
|
|
2264
|
-
className:
|
|
2257
|
+
className: y(e, t),
|
|
2265
2258
|
...r
|
|
2266
2259
|
})));
|
|
2267
2260
|
hn.displayName = "FormFloating";
|
|
@@ -2299,7 +2292,7 @@ const gn = pn, bn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2299
2292
|
t = I(t, "form-label");
|
|
2300
2293
|
let u = "col-form-label";
|
|
2301
2294
|
typeof n == "string" && (u = `${u} ${u}-${n}`);
|
|
2302
|
-
const f =
|
|
2295
|
+
const f = y(o, t, r && "visually-hidden", n && u);
|
|
2303
2296
|
return process.env.NODE_ENV !== "production" && Ae(l == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || l, n ? /* @__PURE__ */ s.jsx(ea, {
|
|
2304
2297
|
ref: c,
|
|
2305
2298
|
as: "label",
|
|
@@ -2330,7 +2323,7 @@ const Ea = bn, xn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2330
2323
|
...r,
|
|
2331
2324
|
type: "range",
|
|
2332
2325
|
ref: o,
|
|
2333
|
-
className:
|
|
2326
|
+
className: y(t, e),
|
|
2334
2327
|
id: n || a
|
|
2335
2328
|
});
|
|
2336
2329
|
});
|
|
@@ -2352,7 +2345,7 @@ const Oa = xn, wn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2352
2345
|
...c,
|
|
2353
2346
|
size: n,
|
|
2354
2347
|
ref: l,
|
|
2355
|
-
className:
|
|
2348
|
+
className: y(r, e, t && `${e}-${t}`, o && "is-valid", a && "is-invalid"),
|
|
2356
2349
|
id: i || u
|
|
2357
2350
|
});
|
|
2358
2351
|
});
|
|
@@ -2368,17 +2361,17 @@ const _a = wn, vn = /* @__PURE__ */ k.forwardRef(
|
|
|
2368
2361
|
}, a) => (e = I(e, "form-text"), /* @__PURE__ */ s.jsx(n, {
|
|
2369
2362
|
...o,
|
|
2370
2363
|
ref: a,
|
|
2371
|
-
className:
|
|
2364
|
+
className: y(t, e, r && "text-muted")
|
|
2372
2365
|
}))
|
|
2373
2366
|
);
|
|
2374
2367
|
vn.displayName = "FormText";
|
|
2375
|
-
const
|
|
2368
|
+
const Ta = vn, yn = /* @__PURE__ */ k.forwardRef((e, t) => /* @__PURE__ */ s.jsx(je, {
|
|
2376
2369
|
...e,
|
|
2377
2370
|
ref: t,
|
|
2378
2371
|
type: "switch"
|
|
2379
2372
|
}));
|
|
2380
2373
|
yn.displayName = "Switch";
|
|
2381
|
-
const
|
|
2374
|
+
const Da = Object.assign(yn, {
|
|
2382
2375
|
Input: je.Input,
|
|
2383
2376
|
Label: je.Label
|
|
2384
2377
|
}), jn = /* @__PURE__ */ k.forwardRef(({
|
|
@@ -2390,7 +2383,7 @@ const Ta = Object.assign(yn, {
|
|
|
2390
2383
|
...a
|
|
2391
2384
|
}, i) => (e = I(e, "form-floating"), /* @__PURE__ */ s.jsxs(gn, {
|
|
2392
2385
|
ref: i,
|
|
2393
|
-
className:
|
|
2386
|
+
className: y(t, e),
|
|
2394
2387
|
controlId: r,
|
|
2395
2388
|
...a,
|
|
2396
2389
|
children: [n, /* @__PURE__ */ s.jsx("label", {
|
|
@@ -2424,7 +2417,7 @@ const Cn = jn, Sa = {
|
|
|
2424
2417
|
}, o) => /* @__PURE__ */ s.jsx(n, {
|
|
2425
2418
|
...r,
|
|
2426
2419
|
ref: o,
|
|
2427
|
-
className:
|
|
2420
|
+
className: y(e, t && "was-validated")
|
|
2428
2421
|
}));
|
|
2429
2422
|
Ve.displayName = "Form";
|
|
2430
2423
|
Ve.propTypes = Sa;
|
|
@@ -2433,9 +2426,9 @@ const K = Object.assign(Ve, {
|
|
|
2433
2426
|
Control: mn,
|
|
2434
2427
|
Floating: Na,
|
|
2435
2428
|
Check: je,
|
|
2436
|
-
Switch:
|
|
2429
|
+
Switch: Da,
|
|
2437
2430
|
Label: Ea,
|
|
2438
|
-
Text:
|
|
2431
|
+
Text: Ta,
|
|
2439
2432
|
Range: Oa,
|
|
2440
2433
|
Select: _a,
|
|
2441
2434
|
FloatingLabel: Cn
|
|
@@ -2446,7 +2439,7 @@ const K = Object.assign(Ve, {
|
|
|
2446
2439
|
...r
|
|
2447
2440
|
}, o) => (t = I(t, "input-group-text"), /* @__PURE__ */ s.jsx(n, {
|
|
2448
2441
|
ref: o,
|
|
2449
|
-
className:
|
|
2442
|
+
className: y(e, t),
|
|
2450
2443
|
...r
|
|
2451
2444
|
})));
|
|
2452
2445
|
$n.displayName = "InputGroupText";
|
|
@@ -2476,7 +2469,7 @@ const Qe = $n, Ia = (e) => /* @__PURE__ */ s.jsx(Qe, {
|
|
|
2476
2469
|
children: /* @__PURE__ */ s.jsx(o, {
|
|
2477
2470
|
ref: i,
|
|
2478
2471
|
...a,
|
|
2479
|
-
className:
|
|
2472
|
+
className: y(r, e, t && `${e}-${t}`, n && "has-validation")
|
|
2480
2473
|
})
|
|
2481
2474
|
});
|
|
2482
2475
|
});
|
|
@@ -2569,7 +2562,7 @@ const lt = () => {
|
|
|
2569
2562
|
return S >= v.length && (S = 0), S < 0 && (S = v.length - 1), v[S];
|
|
2570
2563
|
}, x = (b, $) => {
|
|
2571
2564
|
b != null && (r == null || r(b, $), f == null || f(b, $));
|
|
2572
|
-
},
|
|
2565
|
+
}, j = (b) => {
|
|
2573
2566
|
if (i == null || i(b), !d)
|
|
2574
2567
|
return;
|
|
2575
2568
|
let $;
|
|
@@ -2606,7 +2599,7 @@ const lt = () => {
|
|
|
2606
2599
|
getControllerId: m || lt
|
|
2607
2600
|
},
|
|
2608
2601
|
children: /* @__PURE__ */ s.jsx(n, Object.assign({}, c, {
|
|
2609
|
-
onKeyDown:
|
|
2602
|
+
onKeyDown: j,
|
|
2610
2603
|
ref: w,
|
|
2611
2604
|
role: a
|
|
2612
2605
|
}))
|
|
@@ -2670,11 +2663,11 @@ const _n = /* @__PURE__ */ k.forwardRef(({
|
|
|
2670
2663
|
...r
|
|
2671
2664
|
}, o) => (t = I(t, "nav-item"), /* @__PURE__ */ s.jsx(n, {
|
|
2672
2665
|
ref: o,
|
|
2673
|
-
className:
|
|
2666
|
+
className: y(e, t),
|
|
2674
2667
|
...r
|
|
2675
2668
|
})));
|
|
2676
2669
|
_n.displayName = "NavItem";
|
|
2677
|
-
const
|
|
2670
|
+
const Tn = _n, Dn = /* @__PURE__ */ k.forwardRef(({
|
|
2678
2671
|
bsPrefix: e,
|
|
2679
2672
|
className: t,
|
|
2680
2673
|
as: n = St,
|
|
@@ -2695,11 +2688,11 @@ const Dn = _n, Tn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2695
2688
|
...l,
|
|
2696
2689
|
ref: c,
|
|
2697
2690
|
disabled: a,
|
|
2698
|
-
className:
|
|
2691
|
+
className: y(t, e, a && "disabled", u.isActive && "active")
|
|
2699
2692
|
});
|
|
2700
2693
|
});
|
|
2701
|
-
|
|
2702
|
-
const Sn =
|
|
2694
|
+
Dn.displayName = "NavLink";
|
|
2695
|
+
const Sn = Dn, In = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
2703
2696
|
const {
|
|
2704
2697
|
as: n = "div",
|
|
2705
2698
|
bsPrefix: r,
|
|
@@ -2715,14 +2708,14 @@ const Sn = Tn, In = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
2715
2708
|
activeKey: "onSelect"
|
|
2716
2709
|
}), h = I(r, "nav");
|
|
2717
2710
|
let m, p, g = !1;
|
|
2718
|
-
const x = E(tn),
|
|
2719
|
-
return x ? (m = x.bsPrefix, g = c ?? !0) :
|
|
2711
|
+
const x = E(tn), j = E(Uo);
|
|
2712
|
+
return x ? (m = x.bsPrefix, g = c ?? !0) : j && ({
|
|
2720
2713
|
cardHeaderBsPrefix: p
|
|
2721
|
-
} =
|
|
2714
|
+
} = j), /* @__PURE__ */ s.jsx(Ya, {
|
|
2722
2715
|
as: n,
|
|
2723
2716
|
ref: t,
|
|
2724
2717
|
activeKey: f,
|
|
2725
|
-
className:
|
|
2718
|
+
className: y(u, {
|
|
2726
2719
|
[h]: !g,
|
|
2727
2720
|
[`${m}-nav`]: g,
|
|
2728
2721
|
[`${m}-nav-scroll`]: g && l,
|
|
@@ -2736,7 +2729,7 @@ const Sn = Tn, In = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
2736
2729
|
});
|
|
2737
2730
|
In.displayName = "Nav";
|
|
2738
2731
|
const Ka = Object.assign(In, {
|
|
2739
|
-
Item:
|
|
2732
|
+
Item: Tn,
|
|
2740
2733
|
Link: Sn
|
|
2741
2734
|
}), Mn = /* @__PURE__ */ k.forwardRef(({
|
|
2742
2735
|
bsPrefix: e,
|
|
@@ -2753,7 +2746,7 @@ const Ka = Object.assign(In, {
|
|
|
2753
2746
|
return /* @__PURE__ */ s.jsx(o, {
|
|
2754
2747
|
ref: c,
|
|
2755
2748
|
...i,
|
|
2756
|
-
className:
|
|
2749
|
+
className: y(a, l, r && `${l}-${r}`, t && `text-${t}`)
|
|
2757
2750
|
});
|
|
2758
2751
|
});
|
|
2759
2752
|
Mn.displayName = "Spinner";
|
|
@@ -2801,12 +2794,12 @@ function Pn(e) {
|
|
|
2801
2794
|
const {
|
|
2802
2795
|
activeKey: g,
|
|
2803
2796
|
getControlledId: x,
|
|
2804
|
-
getControllerId:
|
|
2797
|
+
getControllerId: j
|
|
2805
2798
|
} = p, w = We(p, Ga), b = ae(n);
|
|
2806
2799
|
return [Object.assign({}, m, {
|
|
2807
2800
|
role: i,
|
|
2808
2801
|
id: x(n),
|
|
2809
|
-
"aria-labelledby":
|
|
2802
|
+
"aria-labelledby": j(n)
|
|
2810
2803
|
}), {
|
|
2811
2804
|
eventKey: n,
|
|
2812
2805
|
isActive: t == null && b != null ? ae(g) === b : t,
|
|
@@ -2912,7 +2905,7 @@ const Qa = An, Ln = /* @__PURE__ */ k.forwardRef(({
|
|
|
2912
2905
|
...r
|
|
2913
2906
|
}, o) => (t = I(t, "tab-content"), /* @__PURE__ */ s.jsx(n, {
|
|
2914
2907
|
ref: o,
|
|
2915
|
-
className:
|
|
2908
|
+
className: y(e, t),
|
|
2916
2909
|
...r
|
|
2917
2910
|
})));
|
|
2918
2911
|
Ln.displayName = "TabContent";
|
|
@@ -2940,7 +2933,7 @@ const Yn = Ln, qn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2940
2933
|
}] = Pn({
|
|
2941
2934
|
...n,
|
|
2942
2935
|
transition: Xe(t)
|
|
2943
|
-
}),
|
|
2936
|
+
}), j = I(e, "tab-pane");
|
|
2944
2937
|
return /* @__PURE__ */ s.jsx(ue.Provider, {
|
|
2945
2938
|
value: null,
|
|
2946
2939
|
children: /* @__PURE__ */ s.jsx(U.Provider, {
|
|
@@ -2958,7 +2951,7 @@ const Yn = Ln, qn = /* @__PURE__ */ k.forwardRef(({
|
|
|
2958
2951
|
children: /* @__PURE__ */ s.jsx(a, {
|
|
2959
2952
|
...i,
|
|
2960
2953
|
ref: r,
|
|
2961
|
-
className:
|
|
2954
|
+
className: y(o, j, c && "active")
|
|
2962
2955
|
})
|
|
2963
2956
|
})
|
|
2964
2957
|
})
|
|
@@ -3007,7 +3000,7 @@ function Ja(e) {
|
|
|
3007
3000
|
tabAttrs: a,
|
|
3008
3001
|
id: i
|
|
3009
3002
|
} = e.props;
|
|
3010
|
-
return t == null ? null : /* @__PURE__ */ s.jsx(
|
|
3003
|
+
return t == null ? null : /* @__PURE__ */ s.jsx(Tn, {
|
|
3011
3004
|
as: "li",
|
|
3012
3005
|
role: "presentation",
|
|
3013
3006
|
children: /* @__PURE__ */ s.jsx(Sn, {
|
|
@@ -3071,7 +3064,7 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3071
3064
|
lg: os
|
|
3072
3065
|
}, ft = ({ variant: e = "filled", color: t = "primary", size: n = "md", className: r, children: o, ...a }) => {
|
|
3073
3066
|
const { LinkComponent: i } = E(Ce);
|
|
3074
|
-
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className:
|
|
3067
|
+
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: y(`btn ${e === "outlined" ? `btn-outline-${t}` : `btn-${t}`} ${r ?? ""}`, ce.button, ce[e], ce[n]), ...a, children: o }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx("button", { type: "button", className: y(`btn ${e === "outlined" ? `btn-outline-${t}` : `btn-${t}`} ${r ?? ""}`, ce.button, ce[e], ce[n]), ...a, children: o }) : null;
|
|
3075
3068
|
}, as = "_submit-container_w6qi9_1", ss = "_spacer_w6qi9_14", mt = {
|
|
3076
3069
|
"submit-container": "_submit-container_w6qi9_1",
|
|
3077
3070
|
submitContainer: as,
|
|
@@ -3080,7 +3073,7 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3080
3073
|
const { formSubmitTexts: n } = E(Ce);
|
|
3081
3074
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3082
3075
|
/* @__PURE__ */ s.jsx("div", { className: mt.spacer }),
|
|
3083
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
3076
|
+
/* @__PURE__ */ s.jsxs("div", { className: y("luminus-floating-submit-container shadow", mt.submitContainer), children: [
|
|
3084
3077
|
/* @__PURE__ */ s.jsxs(ft, { as: "button", color: "success", size: "lg", type: "submit", children: [
|
|
3085
3078
|
/* @__PURE__ */ s.jsx(Jn, {}),
|
|
3086
3079
|
e
|
|
@@ -3095,27 +3088,27 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3095
3088
|
button: cs
|
|
3096
3089
|
}, Gn = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(we, { size: 10 }), className: n, children: r, ...o }) => {
|
|
3097
3090
|
const { LinkComponent: a } = E(Ce);
|
|
3098
|
-
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className:
|
|
3091
|
+
return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: y(`luminus-context-button btn text-${e} ${n ?? ""}`, Re.button), ...o, children: [
|
|
3099
3092
|
t,
|
|
3100
3093
|
r
|
|
3101
|
-
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className:
|
|
3094
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: y(`luminus-context-button btn text-${e} ${n ?? ""}`, Re.button), ...o, children: [
|
|
3102
3095
|
t,
|
|
3103
3096
|
r
|
|
3104
3097
|
] }) : null;
|
|
3105
|
-
}, bi = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(vt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: a, children: i,
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3098
|
+
}, bi = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(vt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: a, children: i, multiple: c, ...l }) => {
|
|
3099
|
+
const u = (f) => {
|
|
3100
|
+
f.target.files && (o(f.target.files), f.target.value = "");
|
|
3108
3101
|
};
|
|
3109
3102
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3110
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className:
|
|
3103
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: y(`luminus-context-button btn text-${e} ${a ?? ""}`, Re.button), ...l, children: [
|
|
3111
3104
|
t,
|
|
3112
3105
|
i
|
|
3113
3106
|
] }),
|
|
3114
|
-
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange:
|
|
3107
|
+
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: c })
|
|
3115
3108
|
] });
|
|
3116
3109
|
}, ls = "_widget_1sdw8_1", us = {
|
|
3117
3110
|
widget: ls
|
|
3118
|
-
}, ht = ({ onAdd: e }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3111
|
+
}, ht = ({ onAdd: e }) => /* @__PURE__ */ s.jsx("div", { className: y("luminus-empty-widget", us.widget), children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: () => e(0), children: /* @__PURE__ */ s.jsx(Zn, {}) }) }), ds = () => {
|
|
3119
3112
|
const [e, t] = W({
|
|
3120
3113
|
widgets: []
|
|
3121
3114
|
});
|
|
@@ -3123,7 +3116,7 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3123
3116
|
const r = localStorage.getItem("dashboardConfig");
|
|
3124
3117
|
r && t(JSON.parse(r));
|
|
3125
3118
|
}, []);
|
|
3126
|
-
const n =
|
|
3119
|
+
const n = D((r) => {
|
|
3127
3120
|
t(r), localStorage.setItem("dashboardConfig", JSON.stringify(r));
|
|
3128
3121
|
}, []);
|
|
3129
3122
|
return { dashboardConfig: e, onChangeDashboardConfig: n };
|
|
@@ -3145,7 +3138,7 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3145
3138
|
widgetEditOverlay: ws
|
|
3146
3139
|
}, xi = ({ availableWidgets: e }) => {
|
|
3147
3140
|
var f;
|
|
3148
|
-
const { homeDashboardTexts: t } = E(Ce), { dashboardConfig: n, onChangeDashboardConfig: r } = ds(), [o, a] = W(!1), i =
|
|
3141
|
+
const { homeDashboardTexts: t } = E(Ce), { dashboardConfig: n, onChangeDashboardConfig: r } = ds(), [o, a] = W(!1), i = D((d, h) => {
|
|
3149
3142
|
var m, p;
|
|
3150
3143
|
d === ((m = n.widgets) == null ? void 0 : m.length) ? r({
|
|
3151
3144
|
...n,
|
|
@@ -3154,24 +3147,24 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3154
3147
|
...n,
|
|
3155
3148
|
widgets: ((p = n.widgets) == null ? void 0 : p.map((g, x) => x === d ? { widgetId: h, fullWidth: !1 } : g)) ?? []
|
|
3156
3149
|
});
|
|
3157
|
-
}, [n, r]), c =
|
|
3150
|
+
}, [n, r]), c = D((d) => {
|
|
3158
3151
|
var h, m;
|
|
3159
3152
|
((h = n.widgets[d]) == null ? void 0 : h.widgetId) === -1 ? r({
|
|
3160
3153
|
...n,
|
|
3161
3154
|
widgets: ((m = n.widgets) == null ? void 0 : m.filter((p, g) => g !== d)) ?? []
|
|
3162
3155
|
}) : i(d, -1);
|
|
3163
|
-
}, [n, r, i]), l =
|
|
3156
|
+
}, [n, r, i]), l = D((d) => {
|
|
3164
3157
|
var h;
|
|
3165
3158
|
r({
|
|
3166
3159
|
...n,
|
|
3167
3160
|
widgets: ((h = n.widgets) == null ? void 0 : h.map((m, p) => p === d ? { ...m, fullWidth: !m.fullWidth } : m)) ?? []
|
|
3168
3161
|
});
|
|
3169
|
-
}, [n, r]), u =
|
|
3162
|
+
}, [n, r]), u = D((d, h, m) => d ? /* @__PURE__ */ s.jsxs("div", { className: y(V.widgetWrapper, {
|
|
3170
3163
|
[V.widgetEdit]: o && d.id !== -1
|
|
3171
3164
|
}, { [V.fullWidth]: m }), children: [
|
|
3172
3165
|
o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3173
|
-
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => c(h), className:
|
|
3174
|
-
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => l(h), className:
|
|
3166
|
+
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => c(h), className: y("icon-button", "color-danger", V.removeIcon), children: /* @__PURE__ */ s.jsx(er, {}) }),
|
|
3167
|
+
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => l(h), className: y("icon-button", { "color-danger": m }, { "color-info": !m }, V.fullWidthIcon), children: /* @__PURE__ */ s.jsx(tr, {}) })
|
|
3175
3168
|
] }),
|
|
3176
3169
|
d.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: V.widgetWrapper, children: /* @__PURE__ */ s.jsx(ht, { onAdd: (p) => i(h, p) }) }) : d.render,
|
|
3177
3170
|
d.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: V.widgetEditOverlay })
|
|
@@ -3191,43 +3184,47 @@ const Za = Hn, es = "_button_1wjon_1", ts = "_filled_1wjon_7", ns = "_sm_1wjon_1
|
|
|
3191
3184
|
sm: ys,
|
|
3192
3185
|
md: js,
|
|
3193
3186
|
lg: Cs
|
|
3194
|
-
}, wi = ({ children: e, color: t = "primary", size: n = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className:
|
|
3187
|
+
}, wi = ({ children: e, color: t = "primary", size: n = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: y(`luminus-badge badge bg-${t} ${r ?? ""}`, pt.badge, pt[n]), children: e }), $s = "_collapse-icon_1ahhn_1", ks = "_collapsed_1ahhn_6", gt = {
|
|
3195
3188
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3196
3189
|
collapseIcon: $s,
|
|
3197
3190
|
collapsed: ks
|
|
3198
|
-
}, vi = ({ title: e, children: t, className: n }) => {
|
|
3199
|
-
const
|
|
3200
|
-
return
|
|
3201
|
-
|
|
3191
|
+
}, vi = ({ title: e, children: t, className: n, ...r }) => {
|
|
3192
|
+
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = W(o), c = r.controlled ? r.isOpen : a;
|
|
3193
|
+
return P(() => {
|
|
3194
|
+
i(o);
|
|
3195
|
+
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: n ?? "", children: [
|
|
3196
|
+
/* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
|
|
3202
3197
|
/* @__PURE__ */ s.jsx(re, { variant: "h6", children: e }),
|
|
3203
|
-
/* @__PURE__ */ s.jsx(or, { className:
|
|
3198
|
+
/* @__PURE__ */ s.jsx(or, { className: y(gt.collapseIcon, {
|
|
3199
|
+
[gt.collapsed]: c
|
|
3200
|
+
}) })
|
|
3204
3201
|
] }),
|
|
3205
|
-
/* @__PURE__ */ s.jsx(Yo, { in:
|
|
3206
|
-
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${
|
|
3202
|
+
/* @__PURE__ */ s.jsx(Yo, { in: c, children: /* @__PURE__ */ s.jsx("div", { children: t }) }),
|
|
3203
|
+
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
3207
3204
|
] });
|
|
3208
3205
|
}, Ns = "_floating-label_1stxq_1", Es = {
|
|
3209
3206
|
"floating-label": "_floating-label_1stxq_1",
|
|
3210
3207
|
floatingLabel: Ns
|
|
3211
|
-
}, te = ({ withoutLabel: e, label: t, hidden: n, children: r, className: o }) => e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ s.jsx(Cn, { label: t, hidden: n ?? !1, className:
|
|
3208
|
+
}, te = ({ withoutLabel: e, label: t, hidden: n, children: r, className: o }) => e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ s.jsx(Cn, { label: t, hidden: n ?? !1, className: y(`luminus-floating-label ${o ?? ""}`, Es.floatingLabel), children: r }), Os = "_feedback_12jrk_1", _s = "_for-floating_12jrk_6", Ts = "_feedback-spacer_12jrk_16", Ie = {
|
|
3212
3209
|
feedback: Os,
|
|
3213
3210
|
"for-floating": "_for-floating_12jrk_6",
|
|
3214
3211
|
forFloating: _s,
|
|
3215
3212
|
"feedback-spacer": "_feedback-spacer_12jrk_16",
|
|
3216
|
-
feedbackSpacer:
|
|
3213
|
+
feedbackSpacer: Ts
|
|
3217
3214
|
}, se = ({ message: e, forFloating: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3218
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
3215
|
+
/* @__PURE__ */ s.jsx("div", { className: y("invalid-feedback luminus-invalid-feedback", Ie.feedback, {
|
|
3219
3216
|
[Ie.forFloating]: t
|
|
3220
3217
|
}), children: e }),
|
|
3221
3218
|
t && /* @__PURE__ */ s.jsx("div", { className: Ie.feedbackSpacer, children: e })
|
|
3222
3219
|
] });
|
|
3223
|
-
function
|
|
3220
|
+
function Ds(e, t, n) {
|
|
3224
3221
|
var r = this, o = F(null), a = F(0), i = F(null), c = F([]), l = F(), u = F(), f = F(e), d = F(!0);
|
|
3225
3222
|
f.current = e;
|
|
3226
3223
|
var h = typeof window < "u", m = !t && t !== 0 && h;
|
|
3227
3224
|
if (typeof e != "function")
|
|
3228
3225
|
throw new TypeError("Expected a function");
|
|
3229
3226
|
t = +t || 0;
|
|
3230
|
-
var p = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing, x = "maxWait" in n,
|
|
3227
|
+
var p = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing, x = "maxWait" in n, j = "debounceOnServer" in n && !!n.debounceOnServer, w = x ? Math.max(+n.maxWait || 0, t) : null;
|
|
3231
3228
|
P(function() {
|
|
3232
3229
|
return d.current = !0, function() {
|
|
3233
3230
|
d.current = !1;
|
|
@@ -3255,7 +3252,7 @@ function Ts(e, t, n) {
|
|
|
3255
3252
|
v(M, R);
|
|
3256
3253
|
}
|
|
3257
3254
|
}, A = function() {
|
|
3258
|
-
if (h ||
|
|
3255
|
+
if (h || j) {
|
|
3259
3256
|
var M = Date.now(), C = N(M);
|
|
3260
3257
|
if (c.current = [].slice.call(arguments), l.current = r, o.current = M, C) {
|
|
3261
3258
|
if (!i.current && d.current)
|
|
@@ -3273,7 +3270,7 @@ function Ts(e, t, n) {
|
|
|
3273
3270
|
}, A.flush = function() {
|
|
3274
3271
|
return i.current ? _(Date.now()) : u.current;
|
|
3275
3272
|
}, A;
|
|
3276
|
-
}, [p, x, t, w, g, m, h,
|
|
3273
|
+
}, [p, x, t, w, g, m, h, j]);
|
|
3277
3274
|
return b;
|
|
3278
3275
|
}
|
|
3279
3276
|
function Ss(e, t) {
|
|
@@ -3283,7 +3280,7 @@ function Is(e, t) {
|
|
|
3283
3280
|
return t;
|
|
3284
3281
|
}
|
|
3285
3282
|
function Ms(e, t, n) {
|
|
3286
|
-
var r = n && n.equalityFn || Ss, o = yt(Is, e), a = o[0], i = o[1], c =
|
|
3283
|
+
var r = n && n.equalityFn || Ss, o = yt(Is, e), a = o[0], i = o[1], c = Ds(D(function(u) {
|
|
3287
3284
|
return i(u);
|
|
3288
3285
|
}, [i]), t, n), l = F(e);
|
|
3289
3286
|
return r(l.current, e) || (c(e), l.current = e), [a, c];
|
|
@@ -3304,34 +3301,38 @@ const Ps = "_dropdown_gxnf9_1", Fs = "_open_gxnf9_10", Ws = "_selected-button_gx
|
|
|
3304
3301
|
"items-container": "_items-container_gxnf9_39",
|
|
3305
3302
|
itemsContainer: qs,
|
|
3306
3303
|
item: Ks
|
|
3307
|
-
}, Vn = ({ show: e, onCancel: t, items: n, currentSelection: r, onSelectionChange: o, onClickSelectedItem: a, onSearchQueryChange: i, texts: c,
|
|
3308
|
-
const
|
|
3304
|
+
}, Vn = ({ show: e, onCancel: t, items: n, currentSelection: r, onSelectionChange: o, onClickSelectedItem: a, onSearchQueryChange: i, texts: c, disabled: l, isLoading: u = !1 }) => {
|
|
3305
|
+
const f = F(null), d = F(null), [h, m] = W(""), [p] = Ms(h, 500);
|
|
3309
3306
|
return P(() => {
|
|
3310
|
-
var
|
|
3311
|
-
e && ((
|
|
3312
|
-
}, [
|
|
3313
|
-
e ||
|
|
3307
|
+
var g;
|
|
3308
|
+
e && ((g = d.current) == null || g.focus());
|
|
3309
|
+
}, [d, e]), P(() => {
|
|
3310
|
+
e || m("");
|
|
3314
3311
|
}, [e]), P(() => {
|
|
3315
|
-
i(
|
|
3316
|
-
}, [
|
|
3312
|
+
i(p);
|
|
3313
|
+
}, [p, i]), $r(f, t), /* @__PURE__ */ s.jsxs("div", { ref: f, className: y("luminus-employee-dropdown shadow rounded", Q.dropdown, {
|
|
3317
3314
|
[Q.open]: e
|
|
3318
3315
|
}), children: [
|
|
3319
|
-
r && /* @__PURE__ */ s.jsxs("button", { type: "button", onClick: () =>
|
|
3316
|
+
r && /* @__PURE__ */ s.jsxs("button", { type: "button", onClick: () => {
|
|
3317
|
+
t(), a(r);
|
|
3318
|
+
}, className: y("selected-button d-flex gap-3 justify-content-between align-items-center", Q.selectedButton), children: [
|
|
3320
3319
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", children: r.name }),
|
|
3321
3320
|
/* @__PURE__ */ s.jsx(re, { variant: "caption", className: "text-primary align-items-center", children: /* @__PURE__ */ s.jsx(we, {}) })
|
|
3322
3321
|
] }),
|
|
3323
|
-
|
|
3324
|
-
/* @__PURE__ */ s.
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
/* @__PURE__ */ s.jsx(
|
|
3333
|
-
|
|
3334
|
-
|
|
3322
|
+
!l && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3323
|
+
r && /* @__PURE__ */ s.jsxs("button", { type: "button", className: y("clear-button d-flex gap-3 align-items-center justify-content-between", Q.clearButton), onClick: () => !l && o(null), children: [
|
|
3324
|
+
/* @__PURE__ */ s.jsx(re, { variant: "body2", children: c.clearSelection }),
|
|
3325
|
+
/* @__PURE__ */ s.jsx(re, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(wt, {}) })
|
|
3326
|
+
] }),
|
|
3327
|
+
/* @__PURE__ */ s.jsx("div", { className: y("search-input-container border-bottom", Q.searchInputContainer), children: /* @__PURE__ */ s.jsx(K.Control, { ref: d, type: "search", size: "sm", className: Q.searchInput, placeholder: c.searchPlaceholder, value: h, onChange: (g) => {
|
|
3328
|
+
var x;
|
|
3329
|
+
return m(((x = g.target) == null ? void 0 : x.value) ?? "");
|
|
3330
|
+
} }) }),
|
|
3331
|
+
u ? /* @__PURE__ */ s.jsx("div", { className: Q.loadingContainer, children: /* @__PURE__ */ s.jsx(Ba, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: Q.itemsContainer, children: n == null ? void 0 : n.map((g) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: y("employee-item d-flex gap-3 align-items-center justify-content-between", Q.item), onClick: () => !l && o(g), children: [
|
|
3332
|
+
/* @__PURE__ */ s.jsx(re, { variant: "body2", children: g.name }),
|
|
3333
|
+
/* @__PURE__ */ s.jsx(re, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(we, {}) })
|
|
3334
|
+
] }, g.id)) })
|
|
3335
|
+
] })
|
|
3335
3336
|
] });
|
|
3336
3337
|
};
|
|
3337
3338
|
function Bs(e) {
|
|
@@ -3344,9 +3345,9 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3344
3345
|
inputGroupText: Gs,
|
|
3345
3346
|
input: Vs
|
|
3346
3347
|
}, yi = () => /* @__PURE__ */ s.jsxs(Se, { className: xe.inputGroup, children: [
|
|
3347
|
-
/* @__PURE__ */ s.jsx(Se.Text, { className:
|
|
3348
|
-
/* @__PURE__ */ s.jsx(K.Control, { placeholder: "Hledat", type: "text", size: "sm", className:
|
|
3349
|
-
/* @__PURE__ */ s.jsx(Se.Text, { className:
|
|
3348
|
+
/* @__PURE__ */ s.jsx(Se.Text, { className: y("p-1", xe.inputGroupText), children: /* @__PURE__ */ s.jsx(Gn, { icon: /* @__PURE__ */ s.jsx(s.Fragment, {}), className: "h-100", children: "Vše" }) }),
|
|
3349
|
+
/* @__PURE__ */ s.jsx(K.Control, { placeholder: "Hledat", type: "text", size: "sm", className: y("luminus-app-search-input", xe.input) }),
|
|
3350
|
+
/* @__PURE__ */ s.jsx(Se.Text, { className: y("py-1 px-2 text-primary", xe.inputGroupText), children: /* @__PURE__ */ s.jsx(Bs, {}) })
|
|
3350
3351
|
] }), ji = ({ heading: e, content: t, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(kt, { placement: n, overlay: /* @__PURE__ */ s.jsxs(_e, { className: "luminus-tooltip", children: [
|
|
3351
3352
|
/* @__PURE__ */ s.jsx(_e.Header, { as: "h3", children: e }),
|
|
3352
3353
|
/* @__PURE__ */ s.jsx(_e.Body, { children: t })
|
|
@@ -3365,7 +3366,7 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3365
3366
|
}
|
|
3366
3367
|
return c;
|
|
3367
3368
|
};
|
|
3368
|
-
return /* @__PURE__ */ s.jsx(kt, { placement: "bottom", overlay: /* @__PURE__ */ s.jsx(Or, { children: e }), children: /* @__PURE__ */ s.jsx("div", { className:
|
|
3369
|
+
return /* @__PURE__ */ s.jsx(kt, { placement: "bottom", overlay: /* @__PURE__ */ s.jsx(Or, { children: e }), children: /* @__PURE__ */ s.jsx("div", { className: y("luminus-avatar-icon", Xs.avatarIcon), style: {
|
|
3369
3370
|
backgroundColor: r(e),
|
|
3370
3371
|
fontSize: t ?? void 0,
|
|
3371
3372
|
height: n ?? void 0,
|
|
@@ -3375,22 +3376,22 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3375
3376
|
var l;
|
|
3376
3377
|
n && n(((l = c.target) == null ? void 0 : l.checked) ?? !1);
|
|
3377
3378
|
}, className: a ?? "", hidden: r ?? !1, disabled: o ?? !1 }), $i = ({ type: e, value: t, onChange: n, debounceMs: r, label: o, withoutLabel: a, placeholder: i, size: c, hidden: l, disabled: u, showClearIcon: f, clearValue: d, className: h }) => {
|
|
3378
|
-
const m = e === "number", p =
|
|
3379
|
+
const m = e === "number", p = D(() => {
|
|
3379
3380
|
if (!n)
|
|
3380
3381
|
return;
|
|
3381
3382
|
const $ = d ?? null;
|
|
3382
3383
|
n(m ? $ ? Number($) : null : ($ == null ? void 0 : $.toString()) ?? "");
|
|
3383
|
-
}, [d, m, n]), g = F(null), [x,
|
|
3384
|
+
}, [d, m, n]), g = F(null), [x, j] = W((t == null ? void 0 : t.toString()) ?? ""), w = D(($) => {
|
|
3384
3385
|
const v = $;
|
|
3385
3386
|
n && (m && n(v ? parseInt(v, 10) : null), n(v || null));
|
|
3386
|
-
}, [m, n]), b =
|
|
3387
|
+
}, [m, n]), b = D(($) => {
|
|
3387
3388
|
var N;
|
|
3388
3389
|
const v = (N = $.target) == null ? void 0 : N.value;
|
|
3389
3390
|
if (!r) {
|
|
3390
3391
|
w(v);
|
|
3391
3392
|
return;
|
|
3392
3393
|
}
|
|
3393
|
-
|
|
3394
|
+
j(v), g.current !== null && (console.log(g.current), window.clearTimeout(g.current)), g.current = window.setTimeout(() => {
|
|
3394
3395
|
w(v);
|
|
3395
3396
|
}, r);
|
|
3396
3397
|
}, [r, w]);
|
|
@@ -3399,7 +3400,7 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3399
3400
|
f && t && n && !u && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: p, children: /* @__PURE__ */ s.jsx(le, {}) }) })
|
|
3400
3401
|
] });
|
|
3401
3402
|
}, ki = ({ value: e, options: t, onChange: n, label: r, withoutLabel: o, isNumber: a, size: i, hidden: c, disabled: l, showClearIcon: u, clearValue: f, noSortOptions: d, className: h }) => {
|
|
3402
|
-
const m =
|
|
3403
|
+
const m = D(() => {
|
|
3403
3404
|
if (!n)
|
|
3404
3405
|
return;
|
|
3405
3406
|
const p = f ?? null;
|
|
@@ -3419,7 +3420,7 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3419
3420
|
u && e && n && !l && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: m, children: /* @__PURE__ */ s.jsx(le, {}) }) })
|
|
3420
3421
|
] });
|
|
3421
3422
|
}, Ni = ({ items: e, defaultSelection: t, onClickSelectedItem: n, onSearchQueryChange: r, texts: o, isLoading: a, isNumber: i, onSelect: c, label: l, withoutLabel: u, size: f, hidden: d, disabled: h }) => {
|
|
3422
|
-
const [m, p] = W(t), [g, x] = W(!1),
|
|
3423
|
+
const [m, p] = W(t), [g, x] = W(!1), j = D((w) => {
|
|
3423
3424
|
p(w);
|
|
3424
3425
|
}, []);
|
|
3425
3426
|
return P(() => {
|
|
@@ -3433,15 +3434,15 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3433
3434
|
}), onMouseDown: (w) => {
|
|
3434
3435
|
w.currentTarget.focus(), w.preventDefault();
|
|
3435
3436
|
}, onClick: () => {
|
|
3436
|
-
|
|
3437
|
-
},
|
|
3437
|
+
x(!0);
|
|
3438
|
+
}, className: y({ "luminus-dropdown-picker-disabled": h }), hidden: d, children: [
|
|
3438
3439
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3439
3440
|
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name }),
|
|
3440
3441
|
m && /* @__PURE__ */ s.jsx("option", { value: m.id ?? void 0, children: m.name })
|
|
3441
3442
|
] }),
|
|
3442
3443
|
/* @__PURE__ */ s.jsx(Vn, { show: g, onCancel: () => x(!1), items: e, currentSelection: m, onSelectionChange: (w) => {
|
|
3443
|
-
x(!1),
|
|
3444
|
-
}, onClickSelectedItem: n, onSearchQueryChange: r, texts: o, isLoading: a })
|
|
3444
|
+
x(!1), j(w);
|
|
3445
|
+
}, onClickSelectedItem: n, onSearchQueryChange: r, texts: o, isLoading: a, disabled: h })
|
|
3445
3446
|
] }) });
|
|
3446
3447
|
}, Ei = ({ formField: e, label: t, resetsFields: n, type: r, required: o, hidden: a, disabled: i }) => {
|
|
3447
3448
|
const { register: c, formState: l, setValue: u } = ee(), [f, d] = W(void 0);
|
|
@@ -3478,7 +3479,7 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3478
3479
|
d && /* @__PURE__ */ s.jsx(se, { message: d.message })
|
|
3479
3480
|
] });
|
|
3480
3481
|
}, _i = ({ formField: e, label: t, resetsFields: n, options: r, isNumber: o, size: a, showClearIcon: i, clearValue: c, noSortOptions: l, required: u, hidden: f, disabled: d }) => {
|
|
3481
|
-
const { register: h, formState: m, getValues: p, setValue: g, watch: x } = ee(), [
|
|
3482
|
+
const { register: h, formState: m, getValues: p, setValue: g, watch: x } = ee(), [j, w] = W(void 0), b = L(() => r.sort((v, N) => l ? 0 : (v.name ?? "").localeCompare(N.name ?? "")), [r, l]), $ = D(() => {
|
|
3482
3483
|
const v = c ?? null;
|
|
3483
3484
|
o ? g(e, v ? Number(v) : null) : g(e, (v == null ? void 0 : v.toString()) ?? "");
|
|
3484
3485
|
}, [c, o, g, e]);
|
|
@@ -3496,18 +3497,18 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3496
3497
|
onChange: () => {
|
|
3497
3498
|
n && n.forEach((v) => g(v, null));
|
|
3498
3499
|
}
|
|
3499
|
-
}), isInvalid:
|
|
3500
|
+
}), isInvalid: j !== void 0, hidden: f, disabled: d, children: [
|
|
3500
3501
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3501
3502
|
b.map((v) => /* @__PURE__ */ s.jsx("option", { value: v.id ?? "", children: v.name }, v.id))
|
|
3502
3503
|
] }),
|
|
3503
3504
|
i && x(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: $, children: /* @__PURE__ */ s.jsx(le, {}) }) }),
|
|
3504
|
-
|
|
3505
|
+
j && /* @__PURE__ */ s.jsx(se, { message: j.message, forFloating: !0 })
|
|
3505
3506
|
] }) });
|
|
3506
|
-
},
|
|
3507
|
-
const { register: f, formState: d, setValue: h, watch: m } = ee(), [p, g] = W(void 0), x =
|
|
3507
|
+
}, Ti = ({ formField: e, label: t, resetsFields: n, size: r, showClearIcon: o, clearValue: a, required: i, hidden: c, disabled: l, height: u }) => {
|
|
3508
|
+
const { register: f, formState: d, setValue: h, watch: m } = ee(), [p, g] = W(void 0), x = D(() => {
|
|
3508
3509
|
const w = a ?? null;
|
|
3509
3510
|
h(e, (w == null ? void 0 : w.toString()) ?? "");
|
|
3510
|
-
}, [a, h, e]),
|
|
3511
|
+
}, [a, h, e]), j = D(() => {
|
|
3511
3512
|
const w = e.split(".");
|
|
3512
3513
|
let b = d.errors;
|
|
3513
3514
|
w.forEach(($) => {
|
|
@@ -3515,8 +3516,8 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3515
3516
|
}), g(b);
|
|
3516
3517
|
}, [d, e]);
|
|
3517
3518
|
return P(() => {
|
|
3518
|
-
|
|
3519
|
-
}, [
|
|
3519
|
+
j();
|
|
3520
|
+
}, [j]), /* @__PURE__ */ s.jsxs(te, { label: `${t}${i ? " *" : ""}`, hidden: c, withoutLabel: !1, children: [
|
|
3520
3521
|
/* @__PURE__ */ s.jsx(K.Control, { as: "textarea", size: r, ...f(e, {
|
|
3521
3522
|
onChange: () => {
|
|
3522
3523
|
n && n.forEach((w) => h(w, null));
|
|
@@ -3528,11 +3529,11 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3528
3529
|
o && m(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: x, children: /* @__PURE__ */ s.jsx(le, {}) }) }),
|
|
3529
3530
|
p && /* @__PURE__ */ s.jsx(se, { message: p.message, forFloating: !0 })
|
|
3530
3531
|
] });
|
|
3531
|
-
},
|
|
3532
|
-
const { register: d, formState: h, setValue: m, watch: p } = ee(), [g, x] = W(void 0),
|
|
3532
|
+
}, Di = ({ type: e, formField: t, label: n, placeholder: r, size: o, resetsFields: a, showClearIcon: i, clearValue: c, required: l, hidden: u, disabled: f }) => {
|
|
3533
|
+
const { register: d, formState: h, setValue: m, watch: p } = ee(), [g, x] = W(void 0), j = D(() => {
|
|
3533
3534
|
const b = c ?? null;
|
|
3534
3535
|
e === "number" ? m(t, b ? Number(b) : null) : m(t, (b == null ? void 0 : b.toString()) ?? "");
|
|
3535
|
-
}, [c, e, m, t]), w =
|
|
3536
|
+
}, [c, e, m, t]), w = D(() => {
|
|
3536
3537
|
const b = t.split(".");
|
|
3537
3538
|
let $ = h.errors;
|
|
3538
3539
|
b.forEach((v) => {
|
|
@@ -3548,28 +3549,28 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3548
3549
|
a && a.forEach((b) => m(b, null));
|
|
3549
3550
|
}
|
|
3550
3551
|
}), isInvalid: g !== void 0, hidden: u, disabled: f }),
|
|
3551
|
-
i && p(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick:
|
|
3552
|
+
i && p(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: j, children: /* @__PURE__ */ s.jsx(le, {}) }) }),
|
|
3552
3553
|
g && /* @__PURE__ */ s.jsx(se, { message: g.message, forFloating: !0 })
|
|
3553
3554
|
] });
|
|
3554
3555
|
}, Si = ({ formField: e, label: t, size: n, defaultSelection: r, resetsFields: o, isNumber: a, required: i, hidden: c, disabled: l, items: u, onSearchQueryChange: f, onClickSelectedItem: d, texts: h, isLoading: m }) => {
|
|
3555
|
-
const { register: p, formState: g, setValue: x } = ee(), [
|
|
3556
|
+
const { register: p, formState: g, setValue: x } = ee(), [j, w] = W(r), [b, $] = W(void 0), [v, N] = W(!1), [_, S] = W(!1), A = D(() => {
|
|
3556
3557
|
const C = e.split(".");
|
|
3557
3558
|
let O = g.errors;
|
|
3558
3559
|
C.forEach((R) => {
|
|
3559
3560
|
O !== void 0 && (O = O[R]);
|
|
3560
3561
|
}), $(O);
|
|
3561
|
-
}, [g, e]), M =
|
|
3562
|
+
}, [g, e]), M = D((C) => {
|
|
3562
3563
|
w(C);
|
|
3563
3564
|
}, []);
|
|
3564
3565
|
return P(() => {
|
|
3565
3566
|
w(r);
|
|
3566
3567
|
}, [r]), P(() => {
|
|
3567
3568
|
let C = null;
|
|
3568
|
-
a ? C =
|
|
3569
|
+
a ? C = j != null && j.id ? parseInt(j.id.toString(), 10) : null : C = (j == null ? void 0 : j.id) === null || (j == null ? void 0 : j.id) === void 0 || j.id === "" ? null : j.id, x(e, C, {
|
|
3569
3570
|
shouldDirty: !0,
|
|
3570
3571
|
shouldValidate: _
|
|
3571
3572
|
});
|
|
3572
|
-
}, [
|
|
3573
|
+
}, [j, e, x, a, _]), P(() => {
|
|
3573
3574
|
A();
|
|
3574
3575
|
}, [A]), P(() => {
|
|
3575
3576
|
g.isSubmitted && S(!0);
|
|
@@ -3583,27 +3584,27 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3583
3584
|
onChange: () => {
|
|
3584
3585
|
o && o.forEach((C) => x(C, null));
|
|
3585
3586
|
}
|
|
3586
|
-
}), isInvalid: b !== void 0,
|
|
3587
|
+
}), isInvalid: b !== void 0, className: y({ "luminus-dropdown-picker-disabled": l }), hidden: c, children: [
|
|
3587
3588
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3588
3589
|
r && /* @__PURE__ */ s.jsx("option", { value: r.id ?? "", children: r.name }),
|
|
3589
|
-
|
|
3590
|
+
j && /* @__PURE__ */ s.jsx("option", { value: j.id ?? "", children: j.name })
|
|
3590
3591
|
] }),
|
|
3591
3592
|
b && /* @__PURE__ */ s.jsx(se, { message: b.message, forFloating: !0 }),
|
|
3592
|
-
/* @__PURE__ */ s.jsx(Vn, { show: v, onCancel: () => N(!1), items: u, currentSelection:
|
|
3593
|
+
/* @__PURE__ */ s.jsx(Vn, { show: v, onCancel: () => N(!1), items: u, currentSelection: j, onSelectionChange: (C) => {
|
|
3593
3594
|
N(!1), M(C);
|
|
3594
|
-
}, onClickSelectedItem: d, onSearchQueryChange: f, texts: h, isLoading: m })
|
|
3595
|
+
}, onClickSelectedItem: d, onSearchQueryChange: f, texts: h, isLoading: m, disabled: l })
|
|
3595
3596
|
] }) });
|
|
3596
3597
|
}, Ii = ({ label: e, formField: t, hidden: n, required: r, placeholder: o, disabled: a, showClearIcon: i, resetsFields: c, multiple: l, accept: u }) => {
|
|
3597
|
-
const { watch: f, setValue: d, register: h, formState: m } = ee(), [p, g] = W(void 0), x =
|
|
3598
|
+
const { watch: f, setValue: d, register: h, formState: m } = ee(), [p, g] = W(void 0), x = D(() => {
|
|
3598
3599
|
d(t, "");
|
|
3599
|
-
}, [d, t]),
|
|
3600
|
+
}, [d, t]), j = D(() => {
|
|
3600
3601
|
const w = t.split(".");
|
|
3601
3602
|
let b = m.errors;
|
|
3602
3603
|
w.forEach(($) => {
|
|
3603
3604
|
b !== void 0 && (b = b[$]);
|
|
3604
3605
|
}), g(b);
|
|
3605
3606
|
}, [m, t]);
|
|
3606
|
-
return P(
|
|
3607
|
+
return P(j, [j]), /* @__PURE__ */ s.jsxs(te, { label: `${e}${r ? "*" : ""}`, hidden: n, withoutLabel: !1, children: [
|
|
3607
3608
|
/* @__PURE__ */ s.jsx(mn, { type: "file", multiple: l, accept: u.join(", "), placeholder: o ?? e, isInvalid: p !== void 0, hidden: n, disabled: a, ...h(t, {
|
|
3608
3609
|
onChange: () => {
|
|
3609
3610
|
c && c.forEach((w) => d(w, null));
|
|
@@ -3619,14 +3620,14 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3619
3620
|
}, [n]), r ? /* @__PURE__ */ s.jsx(is, { onStorno: t, children: e }) : null;
|
|
3620
3621
|
}, Us = "_item_qkqdk_1", Xn = {
|
|
3621
3622
|
item: Us
|
|
3622
|
-
}, Pi = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(we, {}), className: n, children: r, ...o }) => /* @__PURE__ */ s.jsxs(pe.Item, { className:
|
|
3623
|
+
}, Pi = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(we, {}), className: n, children: r, ...o }) => /* @__PURE__ */ s.jsxs(pe.Item, { className: y(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n ?? ""}`, Xn.item), ...o, children: [
|
|
3623
3624
|
t,
|
|
3624
3625
|
r
|
|
3625
3626
|
] }), zs = "_button_1mv5p_1", Js = {
|
|
3626
3627
|
button: zs
|
|
3627
3628
|
}, Fi = H.forwardRef(({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(sr, { size: 18 }), text: n, onClick: r, className: o, children: a, ...i }, c) => /* @__PURE__ */ s.jsxs("button", { type: "button", ref: c, onClick: (l) => {
|
|
3628
3629
|
l.preventDefault(), r(l);
|
|
3629
|
-
}, "aria-label": "dropdown toggle", className:
|
|
3630
|
+
}, "aria-label": "dropdown toggle", className: y(`btn luminus-context-button text-${e} ${o ?? ""}`, Js.button), ...i, children: [
|
|
3630
3631
|
t,
|
|
3631
3632
|
n
|
|
3632
3633
|
] })), Wi = H.forwardRef(({ userName: e, onClick: t, children: n }, r) => /* @__PURE__ */ s.jsxs("button", { type: "button", ref: r, onClick: (o) => {
|
|
@@ -3638,27 +3639,27 @@ const Hs = "_input-group_1512b_1", Gs = "_input-group-text_1512b_5", Vs = "_inpu
|
|
|
3638
3639
|
}, children: [
|
|
3639
3640
|
/* @__PURE__ */ s.jsx(Qn, { name: e }),
|
|
3640
3641
|
n
|
|
3641
|
-
] })), Ri = (e) => /* @__PURE__ */ s.jsx(pe.Toggle, { ...e }), Ai = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(vt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o,
|
|
3642
|
-
const
|
|
3643
|
-
|
|
3642
|
+
] })), Ri = (e) => /* @__PURE__ */ s.jsx(pe.Toggle, { ...e }), Ai = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(vt, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: c, ...l }) => {
|
|
3643
|
+
const u = (f) => {
|
|
3644
|
+
f.target.files && (o(f.target.files), f.target.value = "");
|
|
3644
3645
|
};
|
|
3645
3646
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3646
|
-
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className:
|
|
3647
|
+
/* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: y(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${i ?? ""}`, Xn.item), ...l, children: [
|
|
3647
3648
|
t,
|
|
3648
|
-
|
|
3649
|
+
c
|
|
3649
3650
|
] }),
|
|
3650
|
-
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange:
|
|
3651
|
+
/* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3651
3652
|
] });
|
|
3652
3653
|
}, Zs = "_divider_1e6rk_1", ei = {
|
|
3653
3654
|
divider: Zs
|
|
3654
|
-
}, Li = ({ className: e }) => /* @__PURE__ */ s.jsx(pe.Divider, { className:
|
|
3655
|
+
}, Li = ({ className: e }) => /* @__PURE__ */ s.jsx(pe.Divider, { className: y("luminus-dropdown-divider", e, ei.divider) }), ti = "_dropdown_1lk66_1", ni = {
|
|
3655
3656
|
dropdown: ti
|
|
3656
3657
|
}, Yi = ({ toggle: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs(pe, { ...n, children: [
|
|
3657
3658
|
e,
|
|
3658
|
-
/* @__PURE__ */ s.jsx(pe.Menu, { className:
|
|
3659
|
+
/* @__PURE__ */ s.jsx(pe.Menu, { className: y("luminus-dropdown rounded shadow", ni.dropdown), children: t })
|
|
3659
3660
|
] }), qi = ({ cell: { value: e } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e ? /* @__PURE__ */ s.jsx(Qn, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), ri = "_tabs_13chm_1", oi = {
|
|
3660
3661
|
tabs: ri
|
|
3661
|
-
}, Ki = ({ children: e, className: t, ...n }) => /* @__PURE__ */ s.jsx(Za, { className:
|
|
3662
|
+
}, Ki = ({ children: e, className: t, ...n }) => /* @__PURE__ */ s.jsx(Za, { className: y(`luminus-tabs ${t ?? ""}`, oi.tabs), ...n, children: e }), Bi = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx(Ua, { ...t, children: e });
|
|
3662
3663
|
export {
|
|
3663
3664
|
hi as ApiFileDownloadButton,
|
|
3664
3665
|
yi as AppSearch,
|
|
@@ -3682,8 +3683,8 @@ export {
|
|
|
3682
3683
|
Mi as HookFormFloatingSubmit,
|
|
3683
3684
|
Oi as HookFormRadioInput,
|
|
3684
3685
|
_i as HookFormSelectInput,
|
|
3685
|
-
|
|
3686
|
-
|
|
3686
|
+
Ti as HookFormTextAreaInput,
|
|
3687
|
+
Di as HookFormTextInput,
|
|
3687
3688
|
ji as HtmlTooltip,
|
|
3688
3689
|
te as InputContainer,
|
|
3689
3690
|
se as InvalidFeedback,
|