react-luminus-components 1.1.13 → 1.1.15
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/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +1 -1
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +345 -342
- package/dist/models/prop-types/HookFormTextAreaInputProps.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +5 -5
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as s, f as bt, M as xt, L as Ce, d as C, h as Xn, i as wt, k as xe, l as Un, m as zn, n as Jn, o as Zn, p as er, g as tr, q as nr, G as rr, r as le, s as or } from "./useAxios-Co2Q-JSk.js";
|
|
2
2
|
import * as $ from "react";
|
|
3
|
-
import
|
|
3
|
+
import H, { useCallback as M, useContext as E, useState as W, useEffect as P, useMemo as L, useRef as R, useReducer as vt } from "react";
|
|
4
4
|
import { d as pe, u as ar, q as Ie, a as sr } from "./DataKey-SawjodF1.js";
|
|
5
5
|
import { L as Yi } from "./DataKey-SawjodF1.js";
|
|
6
6
|
import { m as ir, a as yt } from "./constants-CzNy5yO3.js";
|
|
@@ -266,7 +266,7 @@ const Kr = {
|
|
|
266
266
|
"November",
|
|
267
267
|
"December"
|
|
268
268
|
]
|
|
269
|
-
},
|
|
269
|
+
}, Hr = {
|
|
270
270
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
271
271
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
272
272
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -279,7 +279,7 @@ const Kr = {
|
|
|
279
279
|
"Friday",
|
|
280
280
|
"Saturday"
|
|
281
281
|
]
|
|
282
|
-
},
|
|
282
|
+
}, Gr = {
|
|
283
283
|
narrow: {
|
|
284
284
|
am: "a",
|
|
285
285
|
pm: "p",
|
|
@@ -369,11 +369,11 @@ const Kr = {
|
|
|
369
369
|
defaultWidth: "wide"
|
|
370
370
|
}),
|
|
371
371
|
day: de({
|
|
372
|
-
values:
|
|
372
|
+
values: Hr,
|
|
373
373
|
defaultWidth: "wide"
|
|
374
374
|
}),
|
|
375
375
|
dayPeriod: de({
|
|
376
|
-
values:
|
|
376
|
+
values: Gr,
|
|
377
377
|
defaultWidth: "wide",
|
|
378
378
|
formattingValues: Vr,
|
|
379
379
|
defaultFormattingWidth: "wide"
|
|
@@ -546,8 +546,8 @@ function po(e) {
|
|
|
546
546
|
return Math.round(n / yt) + 1;
|
|
547
547
|
}
|
|
548
548
|
function Et(e, t) {
|
|
549
|
-
var f, u,
|
|
550
|
-
const n = K(e), r = n.getFullYear(), o = ke(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((
|
|
549
|
+
var f, u, m, h;
|
|
550
|
+
const n = K(e), r = n.getFullYear(), o = ke(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = X(e, 0);
|
|
551
551
|
i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
552
552
|
const c = he(i, t), l = X(e, 0);
|
|
553
553
|
l.setFullYear(r, 0, a), l.setHours(0, 0, 0, 0);
|
|
@@ -1195,28 +1195,28 @@ function No(e, t, n) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
const Eo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Oo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, _o = /^'([^]*?)'?$/, To = /''/g, Do = /[a-zA-Z]/;
|
|
1197
1197
|
function _t(e, t, n) {
|
|
1198
|
-
var f, u,
|
|
1199
|
-
const r = ke(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? mo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((
|
|
1198
|
+
var f, u, m, h, p, g, x, v;
|
|
1199
|
+
const r = ke(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? mo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : h.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 ?? ((v = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : v.weekStartsOn) ?? 0, c = K(e);
|
|
1200
1200
|
if (!Sr(c))
|
|
1201
1201
|
throw new RangeError("Invalid time value");
|
|
1202
1202
|
let l = t.match(Oo).map((w) => {
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
const k = wo[
|
|
1203
|
+
const b = w[0];
|
|
1204
|
+
if (b === "p" || b === "P") {
|
|
1205
|
+
const k = wo[b];
|
|
1206
1206
|
return k(w, o.formatLong);
|
|
1207
1207
|
}
|
|
1208
1208
|
return w;
|
|
1209
1209
|
}).join("").match(Eo).map((w) => {
|
|
1210
1210
|
if (w === "''")
|
|
1211
1211
|
return { isToken: !1, value: "'" };
|
|
1212
|
-
const
|
|
1213
|
-
if (
|
|
1212
|
+
const b = w[0];
|
|
1213
|
+
if (b === "'")
|
|
1214
1214
|
return { isToken: !1, value: So(w) };
|
|
1215
|
-
if (et[
|
|
1215
|
+
if (et[b])
|
|
1216
1216
|
return { isToken: !0, value: w };
|
|
1217
|
-
if (
|
|
1217
|
+
if (b.match(Do))
|
|
1218
1218
|
throw new RangeError(
|
|
1219
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1219
|
+
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1220
1220
|
);
|
|
1221
1221
|
return { isToken: !1, value: w };
|
|
1222
1222
|
});
|
|
@@ -1229,10 +1229,10 @@ function _t(e, t, n) {
|
|
|
1229
1229
|
return l.map((w) => {
|
|
1230
1230
|
if (!w.isToken)
|
|
1231
1231
|
return w.value;
|
|
1232
|
-
const
|
|
1233
|
-
(!(n != null && n.useAdditionalWeekYearTokens) && $o(
|
|
1234
|
-
const k = et[
|
|
1235
|
-
return k(c,
|
|
1232
|
+
const b = w.value;
|
|
1233
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && $o(b) || !(n != null && n.useAdditionalDayOfYearTokens) && Co(b)) && ko(b, t, String(e));
|
|
1234
|
+
const k = et[b[0]];
|
|
1235
|
+
return k(c, b, o.localize, d);
|
|
1236
1236
|
}).join("");
|
|
1237
1237
|
}
|
|
1238
1238
|
function So(e) {
|
|
@@ -1310,10 +1310,10 @@ const fi = ({ month: e, onChangeMonth: t, locale: n }) => {
|
|
|
1310
1310
|
t(r), localStorage.setItem("dashboardConfig", JSON.stringify(r));
|
|
1311
1311
|
}, []);
|
|
1312
1312
|
return { dashboardConfig: e, onChangeDashboardConfig: n };
|
|
1313
|
-
},
|
|
1314
|
-
dashboard:
|
|
1313
|
+
}, Ho = "_dashboard_1ikl9_1", Go = "_widgets-grid_1ikl9_1", Vo = "_widget-wrapper_1ikl9_7", Qo = "_full-width_1ikl9_12", Xo = "_widget-edit_1ikl9_15", Uo = "_remove-icon_1ikl9_18", zo = "_full-width-icon_1ikl9_25", Jo = "_widget-edit-overlay_1ikl9_35", V = {
|
|
1314
|
+
dashboard: Ho,
|
|
1315
1315
|
"widgets-grid": "_widgets-grid_1ikl9_1",
|
|
1316
|
-
widgetsGrid:
|
|
1316
|
+
widgetsGrid: Go,
|
|
1317
1317
|
"widget-wrapper": "_widget-wrapper_1ikl9_7",
|
|
1318
1318
|
widgetWrapper: Vo,
|
|
1319
1319
|
"full-width": "_full-width_1ikl9_12",
|
|
@@ -1328,44 +1328,44 @@ const fi = ({ month: e, onChangeMonth: t, locale: n }) => {
|
|
|
1328
1328
|
widgetEditOverlay: Jo
|
|
1329
1329
|
}, hi = ({ availableWidgets: e }) => {
|
|
1330
1330
|
var f;
|
|
1331
|
-
const { homeDashboardTexts: t } = E(Ce), { dashboardConfig: n, onChangeDashboardConfig: r } = Bo(), [o, a] = W(!1), i = M((u,
|
|
1332
|
-
var
|
|
1333
|
-
u === ((
|
|
1331
|
+
const { homeDashboardTexts: t } = E(Ce), { dashboardConfig: n, onChangeDashboardConfig: r } = Bo(), [o, a] = W(!1), i = M((u, m) => {
|
|
1332
|
+
var h, p;
|
|
1333
|
+
u === ((h = n.widgets) == null ? void 0 : h.length) ? r({
|
|
1334
1334
|
...n,
|
|
1335
|
-
widgets: [...n.widgets, { widgetId:
|
|
1335
|
+
widgets: [...n.widgets, { widgetId: m, fullWidth: !1 }]
|
|
1336
1336
|
}) : r({
|
|
1337
1337
|
...n,
|
|
1338
|
-
widgets: ((p = n.widgets) == null ? void 0 : p.map((g,
|
|
1338
|
+
widgets: ((p = n.widgets) == null ? void 0 : p.map((g, x) => x === u ? { widgetId: m, fullWidth: !1 } : g)) ?? []
|
|
1339
1339
|
});
|
|
1340
1340
|
}, [n, r]), c = M((u) => {
|
|
1341
|
-
var
|
|
1342
|
-
((
|
|
1341
|
+
var m, h;
|
|
1342
|
+
((m = n.widgets[u]) == null ? void 0 : m.widgetId) === -1 ? r({
|
|
1343
1343
|
...n,
|
|
1344
|
-
widgets: ((
|
|
1344
|
+
widgets: ((h = n.widgets) == null ? void 0 : h.filter((p, g) => g !== u)) ?? []
|
|
1345
1345
|
}) : i(u, -1);
|
|
1346
1346
|
}, [n, r, i]), l = M((u) => {
|
|
1347
|
-
var
|
|
1347
|
+
var m;
|
|
1348
1348
|
r({
|
|
1349
1349
|
...n,
|
|
1350
|
-
widgets: ((
|
|
1350
|
+
widgets: ((m = n.widgets) == null ? void 0 : m.map((h, p) => p === u ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
1351
1351
|
});
|
|
1352
|
-
}, [n, r]), d = M((u,
|
|
1352
|
+
}, [n, r]), d = M((u, m, h) => u ? /* @__PURE__ */ s.jsxs("div", { className: C(V.widgetWrapper, {
|
|
1353
1353
|
[V.widgetEdit]: o && u.id !== -1
|
|
1354
|
-
}, { [V.fullWidth]:
|
|
1354
|
+
}, { [V.fullWidth]: h }), children: [
|
|
1355
1355
|
o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1356
|
-
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => c(
|
|
1357
|
-
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => l(
|
|
1356
|
+
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => c(m), className: C("icon-button", "color-danger", V.removeIcon), children: /* @__PURE__ */ s.jsx(zn, {}) }),
|
|
1357
|
+
/* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => l(m), className: C("icon-button", { "color-danger": h }, { "color-info": !h }, V.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Jn, {}) })
|
|
1358
1358
|
] }),
|
|
1359
|
-
u.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: V.widgetWrapper, children: /* @__PURE__ */ s.jsx(it, { onAdd: (p) => i(
|
|
1359
|
+
u.id === -1 ? o && /* @__PURE__ */ s.jsx("div", { className: V.widgetWrapper, children: /* @__PURE__ */ s.jsx(it, { onAdd: (p) => i(m, p) }) }) : u.render,
|
|
1360
1360
|
u.id > -1 && o && /* @__PURE__ */ s.jsx("div", { className: V.widgetEditOverlay })
|
|
1361
|
-
] },
|
|
1361
|
+
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [o, i, c, l]);
|
|
1362
1362
|
return /* @__PURE__ */ s.jsxs("div", { className: V.dashboard, children: [
|
|
1363
1363
|
/* @__PURE__ */ s.jsx("div", { className: "mb-3 d-flex align-items-center justify-content-end", children: /* @__PURE__ */ s.jsx(Tt, { as: "button", color: o ? "success" : "primary", icon: o ? /* @__PURE__ */ s.jsx(Zn, {}) : /* @__PURE__ */ s.jsx(er, {}), onClick: () => a(!o), children: o ? t.dashboardEditDone : t.dashboardEdit }) }),
|
|
1364
1364
|
/* @__PURE__ */ s.jsxs("div", { className: V.widgetsGrid, children: [
|
|
1365
|
-
(f = n.widgets) == null ? void 0 : f.map((u,
|
|
1365
|
+
(f = n.widgets) == null ? void 0 : f.map((u, m) => d(e.find((h) => h.id === u.widgetId), m, u.fullWidth)),
|
|
1366
1366
|
o && /* @__PURE__ */ s.jsx(it, { onAdd: (u) => {
|
|
1367
|
-
var
|
|
1368
|
-
return i((
|
|
1367
|
+
var m;
|
|
1368
|
+
return i((m = n.widgets) == null ? void 0 : m.length, u);
|
|
1369
1369
|
} })
|
|
1370
1370
|
] })
|
|
1371
1371
|
] });
|
|
@@ -1415,7 +1415,7 @@ const ra = {
|
|
|
1415
1415
|
[dr]: "collapsing",
|
|
1416
1416
|
[fr]: "collapsing",
|
|
1417
1417
|
[mr]: "collapse show"
|
|
1418
|
-
}, oa = /* @__PURE__ */
|
|
1418
|
+
}, oa = /* @__PURE__ */ H.forwardRef(({
|
|
1419
1419
|
onEnter: e,
|
|
1420
1420
|
onEntering: t,
|
|
1421
1421
|
onEntered: n,
|
|
@@ -1428,22 +1428,22 @@ const ra = {
|
|
|
1428
1428
|
timeout: d = 300,
|
|
1429
1429
|
mountOnEnter: f = !1,
|
|
1430
1430
|
unmountOnExit: u = !1,
|
|
1431
|
-
appear:
|
|
1432
|
-
getDimensionValue:
|
|
1431
|
+
appear: m = !1,
|
|
1432
|
+
getDimensionValue: h = na,
|
|
1433
1433
|
...p
|
|
1434
1434
|
}, g) => {
|
|
1435
|
-
const
|
|
1436
|
-
N.style[
|
|
1437
|
-
}, e), [
|
|
1438
|
-
const _ = `scroll${
|
|
1439
|
-
N.style[
|
|
1440
|
-
}, t), [
|
|
1441
|
-
N.style[
|
|
1442
|
-
}, n), [
|
|
1443
|
-
N.style[
|
|
1444
|
-
}, r), [r,
|
|
1445
|
-
N.style[
|
|
1446
|
-
}, o), [
|
|
1435
|
+
const x = typeof c == "function" ? c() : c, v = L(() => me((N) => {
|
|
1436
|
+
N.style[x] = "0";
|
|
1437
|
+
}, e), [x, e]), w = L(() => me((N) => {
|
|
1438
|
+
const _ = `scroll${x[0].toUpperCase()}${x.slice(1)}`;
|
|
1439
|
+
N.style[x] = `${N[_]}px`;
|
|
1440
|
+
}, t), [x, t]), b = L(() => me((N) => {
|
|
1441
|
+
N.style[x] = null;
|
|
1442
|
+
}, n), [x, n]), k = L(() => me((N) => {
|
|
1443
|
+
N.style[x] = `${h(x, N)}px`, hr(N);
|
|
1444
|
+
}, r), [r, h, x]), j = L(() => me((N) => {
|
|
1445
|
+
N.style[x] = null;
|
|
1446
|
+
}, o), [x, o]);
|
|
1447
1447
|
return /* @__PURE__ */ s.jsx(cr, {
|
|
1448
1448
|
ref: g,
|
|
1449
1449
|
addEndListener: lr,
|
|
@@ -1451,7 +1451,7 @@ const ra = {
|
|
|
1451
1451
|
"aria-expanded": p.role ? l : null,
|
|
1452
1452
|
onEnter: v,
|
|
1453
1453
|
onEntering: w,
|
|
1454
|
-
onEntered:
|
|
1454
|
+
onEntered: b,
|
|
1455
1455
|
onExit: k,
|
|
1456
1456
|
onExiting: j,
|
|
1457
1457
|
childRef: i.ref,
|
|
@@ -1459,10 +1459,10 @@ const ra = {
|
|
|
1459
1459
|
timeout: d,
|
|
1460
1460
|
mountOnEnter: f,
|
|
1461
1461
|
unmountOnExit: u,
|
|
1462
|
-
appear:
|
|
1463
|
-
children: (N, _) => /* @__PURE__ */
|
|
1462
|
+
appear: m,
|
|
1463
|
+
children: (N, _) => /* @__PURE__ */ H.cloneElement(i, {
|
|
1464
1464
|
..._,
|
|
1465
|
-
className: C(a, i.props.className, ra[N],
|
|
1465
|
+
className: C(a, i.props.className, ra[N], x === "width" && "collapse-horizontal")
|
|
1466
1466
|
})
|
|
1467
1467
|
});
|
|
1468
1468
|
}), aa = oa;
|
|
@@ -1505,14 +1505,14 @@ function Le({
|
|
|
1505
1505
|
type: l || "button",
|
|
1506
1506
|
disabled: t
|
|
1507
1507
|
}, d];
|
|
1508
|
-
const f = (
|
|
1509
|
-
if ((t || e === "a" && la(n)) &&
|
|
1510
|
-
|
|
1508
|
+
const f = (m) => {
|
|
1509
|
+
if ((t || e === "a" && la(n)) && m.preventDefault(), t) {
|
|
1510
|
+
m.stopPropagation();
|
|
1511
1511
|
return;
|
|
1512
1512
|
}
|
|
1513
|
-
i == null || i(
|
|
1514
|
-
}, u = (
|
|
1515
|
-
|
|
1513
|
+
i == null || i(m);
|
|
1514
|
+
}, u = (m) => {
|
|
1515
|
+
m.key === " " && (m.preventDefault(), f(m));
|
|
1516
1516
|
};
|
|
1517
1517
|
return e === "a" && (n || (n = "#"), t && (n = void 0)), [{
|
|
1518
1518
|
role: a ?? "button",
|
|
@@ -1592,8 +1592,8 @@ const St = Dt, Mt = /* @__PURE__ */ $.forwardRef(({
|
|
|
1592
1592
|
tagName: e,
|
|
1593
1593
|
disabled: a,
|
|
1594
1594
|
...c
|
|
1595
|
-
}),
|
|
1596
|
-
return /* @__PURE__ */ s.jsx(
|
|
1595
|
+
}), m = u;
|
|
1596
|
+
return /* @__PURE__ */ s.jsx(m, {
|
|
1597
1597
|
...f,
|
|
1598
1598
|
...c,
|
|
1599
1599
|
ref: l,
|
|
@@ -1629,14 +1629,14 @@ function ba({
|
|
|
1629
1629
|
return o.forEach((l) => {
|
|
1630
1630
|
const d = r[l];
|
|
1631
1631
|
delete r[l];
|
|
1632
|
-
let f, u,
|
|
1632
|
+
let f, u, m;
|
|
1633
1633
|
typeof d == "object" && d != null ? {
|
|
1634
1634
|
span: f,
|
|
1635
1635
|
offset: u,
|
|
1636
|
-
order:
|
|
1636
|
+
order: m
|
|
1637
1637
|
} = d : f = d;
|
|
1638
|
-
const
|
|
1639
|
-
f && i.push(f === !0 ? `${t}${
|
|
1638
|
+
const h = l !== a ? `-${l}` : "";
|
|
1639
|
+
f && i.push(f === !0 ? `${t}${h}` : `${t}${h}-${f}`), m != null && c.push(`order${h}-${m}`), u != null && c.push(`offset${h}-${u}`);
|
|
1640
1640
|
}), [{
|
|
1641
1641
|
...r,
|
|
1642
1642
|
className: C(n, ...i, ...c)
|
|
@@ -1698,45 +1698,45 @@ function Rt(e = {}) {
|
|
|
1698
1698
|
placement: d,
|
|
1699
1699
|
popperConfig: f = {},
|
|
1700
1700
|
enableEventListeners: u = !0,
|
|
1701
|
-
usePopper:
|
|
1702
|
-
} = e,
|
|
1703
|
-
|
|
1701
|
+
usePopper: m = !!t
|
|
1702
|
+
} = e, h = (t == null ? void 0 : t.show) == null ? !!e.show : t.show;
|
|
1703
|
+
h && !o.current && (o.current = !0);
|
|
1704
1704
|
const p = (N) => {
|
|
1705
1705
|
t == null || t.toggle(!1, N);
|
|
1706
1706
|
}, {
|
|
1707
1707
|
placement: g,
|
|
1708
|
-
setMenu:
|
|
1708
|
+
setMenu: x,
|
|
1709
1709
|
menuElement: v,
|
|
1710
1710
|
toggleElement: w
|
|
1711
|
-
} = t || {},
|
|
1711
|
+
} = t || {}, b = Cr(w, v, $r({
|
|
1712
1712
|
placement: d || g || "bottom-start",
|
|
1713
|
-
enabled:
|
|
1714
|
-
enableEvents: u ??
|
|
1713
|
+
enabled: m,
|
|
1714
|
+
enableEvents: u ?? h,
|
|
1715
1715
|
offset: i,
|
|
1716
1716
|
flip: a,
|
|
1717
1717
|
fixed: l,
|
|
1718
1718
|
arrowElement: n,
|
|
1719
1719
|
popperConfig: f
|
|
1720
1720
|
})), k = Object.assign({
|
|
1721
|
-
ref:
|
|
1721
|
+
ref: x || ja,
|
|
1722
1722
|
"aria-labelledby": w == null ? void 0 : w.id
|
|
1723
|
-
},
|
|
1724
|
-
style:
|
|
1723
|
+
}, b.attributes.popper, {
|
|
1724
|
+
style: b.styles.popper
|
|
1725
1725
|
}), j = {
|
|
1726
|
-
show:
|
|
1726
|
+
show: h,
|
|
1727
1727
|
placement: g,
|
|
1728
1728
|
hasShown: o.current,
|
|
1729
1729
|
toggle: t == null ? void 0 : t.toggle,
|
|
1730
|
-
popper:
|
|
1731
|
-
arrowProps:
|
|
1730
|
+
popper: m ? b : null,
|
|
1731
|
+
arrowProps: m ? Object.assign({
|
|
1732
1732
|
ref: r
|
|
1733
|
-
},
|
|
1734
|
-
style:
|
|
1733
|
+
}, b.attributes.arrow, {
|
|
1734
|
+
style: b.styles.arrow
|
|
1735
1735
|
}) : {}
|
|
1736
1736
|
};
|
|
1737
1737
|
return kr(v, p, {
|
|
1738
1738
|
clickTrigger: c,
|
|
1739
|
-
disabled: !
|
|
1739
|
+
disabled: !h
|
|
1740
1740
|
}), [k, j];
|
|
1741
1741
|
}
|
|
1742
1742
|
const Ca = {
|
|
@@ -1756,13 +1756,13 @@ Ke.defaultProps = Ca;
|
|
|
1756
1756
|
const ve = {
|
|
1757
1757
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1758
1758
|
current: 0
|
|
1759
|
-
}, At = /* @__PURE__ */
|
|
1759
|
+
}, At = /* @__PURE__ */ H.createContext(ve), $a = /* @__PURE__ */ H.createContext(!1);
|
|
1760
1760
|
let ka = !!(typeof window < "u" && window.document && window.document.createElement), De = /* @__PURE__ */ new WeakMap();
|
|
1761
1761
|
function Na(e = !1) {
|
|
1762
1762
|
let t = E(At), n = R(null);
|
|
1763
1763
|
if (n.current === null && !e) {
|
|
1764
1764
|
var r, o;
|
|
1765
|
-
let a = (o =
|
|
1765
|
+
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;
|
|
1766
1766
|
if (a) {
|
|
1767
1767
|
let i = De.get(a);
|
|
1768
1768
|
i == null ? De.set(a, {
|
|
@@ -1781,10 +1781,10 @@ function Ea(e) {
|
|
|
1781
1781
|
return e || `${r}-${n}`;
|
|
1782
1782
|
}
|
|
1783
1783
|
function Oa(e) {
|
|
1784
|
-
let t =
|
|
1784
|
+
let t = H.useId(), [n] = W(Sa()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ve.prefix}`;
|
|
1785
1785
|
return e || `${r}-${t}`;
|
|
1786
1786
|
}
|
|
1787
|
-
const Lt = typeof
|
|
1787
|
+
const Lt = typeof H.useId == "function" ? Oa : Ea;
|
|
1788
1788
|
function _a() {
|
|
1789
1789
|
return !1;
|
|
1790
1790
|
}
|
|
@@ -1796,7 +1796,7 @@ function Da(e) {
|
|
|
1796
1796
|
};
|
|
1797
1797
|
}
|
|
1798
1798
|
function Sa() {
|
|
1799
|
-
return typeof
|
|
1799
|
+
return typeof H.useSyncExternalStore == "function" ? H.useSyncExternalStore(Da, _a, Ta) : E($a);
|
|
1800
1800
|
}
|
|
1801
1801
|
const Yt = (e) => {
|
|
1802
1802
|
var t;
|
|
@@ -1842,7 +1842,7 @@ function Pa(e, t) {
|
|
|
1842
1842
|
o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1843
1843
|
return n;
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function Ht({
|
|
1846
1846
|
key: e,
|
|
1847
1847
|
href: t,
|
|
1848
1848
|
active: n,
|
|
@@ -1863,7 +1863,7 @@ function Gt({
|
|
|
1863
1863
|
isActive: d
|
|
1864
1864
|
}];
|
|
1865
1865
|
}
|
|
1866
|
-
const
|
|
1866
|
+
const Gt = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
1867
1867
|
let {
|
|
1868
1868
|
eventKey: n,
|
|
1869
1869
|
disabled: r,
|
|
@@ -1871,7 +1871,7 @@ const Ht = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
|
1871
1871
|
active: a,
|
|
1872
1872
|
as: i = Ye
|
|
1873
1873
|
} = e, c = Pa(e, Ia);
|
|
1874
|
-
const [l] =
|
|
1874
|
+
const [l] = Ht({
|
|
1875
1875
|
key: n,
|
|
1876
1876
|
href: c.href,
|
|
1877
1877
|
disabled: r,
|
|
@@ -1882,7 +1882,7 @@ const Ht = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
|
1882
1882
|
ref: t
|
|
1883
1883
|
}, l));
|
|
1884
1884
|
});
|
|
1885
|
-
|
|
1885
|
+
Gt.displayName = "DropdownItem";
|
|
1886
1886
|
function dt() {
|
|
1887
1887
|
const e = Wt(), t = R(null), n = M((r) => {
|
|
1888
1888
|
t.current = r, e();
|
|
@@ -1899,7 +1899,7 @@ function ge({
|
|
|
1899
1899
|
placement: i = "bottom-start",
|
|
1900
1900
|
children: c
|
|
1901
1901
|
}) {
|
|
1902
|
-
const l = xr(), [d, f] = Ft(t, e, r), [u,
|
|
1902
|
+
const l = xr(), [d, f] = Ft(t, e, r), [u, m] = dt(), h = u.current, [p, g] = dt(), x = p.current, v = ar(d), w = R(null), b = R(!1), k = E(U), j = M((y, O, F = O == null ? void 0 : O.type) => {
|
|
1903
1903
|
f(y, {
|
|
1904
1904
|
originalEvent: O,
|
|
1905
1905
|
source: F
|
|
@@ -1910,14 +1910,14 @@ function ge({
|
|
|
1910
1910
|
toggle: j,
|
|
1911
1911
|
placement: i,
|
|
1912
1912
|
show: d,
|
|
1913
|
-
menuElement:
|
|
1914
|
-
toggleElement:
|
|
1915
|
-
setMenu:
|
|
1913
|
+
menuElement: h,
|
|
1914
|
+
toggleElement: x,
|
|
1915
|
+
setMenu: m,
|
|
1916
1916
|
setToggle: g
|
|
1917
|
-
}), [j, i, d,
|
|
1918
|
-
|
|
1917
|
+
}), [j, i, d, h, x, m, g]);
|
|
1918
|
+
h && v && !d && (b.current = h.contains(h.ownerDocument.activeElement));
|
|
1919
1919
|
const D = Z(() => {
|
|
1920
|
-
|
|
1920
|
+
x && x.focus && x.focus();
|
|
1921
1921
|
}), A = Z(() => {
|
|
1922
1922
|
const y = w.current;
|
|
1923
1923
|
let O = a;
|
|
@@ -1927,30 +1927,30 @@ function ge({
|
|
|
1927
1927
|
F && F.focus && F.focus();
|
|
1928
1928
|
});
|
|
1929
1929
|
P(() => {
|
|
1930
|
-
d ? A() :
|
|
1931
|
-
}, [d,
|
|
1930
|
+
d ? A() : b.current && (b.current = !1, D());
|
|
1931
|
+
}, [d, b, D, A]), P(() => {
|
|
1932
1932
|
w.current = null;
|
|
1933
1933
|
});
|
|
1934
1934
|
const I = (y, O) => {
|
|
1935
1935
|
if (!u.current)
|
|
1936
1936
|
return null;
|
|
1937
1937
|
const F = Ie(u.current, o);
|
|
1938
|
-
let
|
|
1939
|
-
return
|
|
1938
|
+
let G = F.indexOf(y) + O;
|
|
1939
|
+
return G = Math.max(0, Math.min(G, F.length)), F[G];
|
|
1940
1940
|
};
|
|
1941
1941
|
return sa(M(() => l.document, [l]), "keydown", (y) => {
|
|
1942
1942
|
var O, F;
|
|
1943
1943
|
const {
|
|
1944
|
-
key:
|
|
1944
|
+
key: G
|
|
1945
1945
|
} = y, ne = y.target, Xe = (O = u.current) == null ? void 0 : O.contains(ne), Qn = (F = p.current) == null ? void 0 : F.contains(ne);
|
|
1946
|
-
if (/input|textarea/i.test(ne.tagName) && (
|
|
1946
|
+
if (/input|textarea/i.test(ne.tagName) && (G === " " || G !== "Escape" && Xe || G === "Escape" && ne.type === "search") || !Xe && !Qn || G === "Tab" && (!u.current || !d))
|
|
1947
1947
|
return;
|
|
1948
1948
|
w.current = y.type;
|
|
1949
1949
|
const Oe = {
|
|
1950
1950
|
originalEvent: y,
|
|
1951
1951
|
source: y.type
|
|
1952
1952
|
};
|
|
1953
|
-
switch (
|
|
1953
|
+
switch (G) {
|
|
1954
1954
|
case "ArrowUp": {
|
|
1955
1955
|
const B = I(ne, -1);
|
|
1956
1956
|
B && B.focus && B.focus(), y.preventDefault();
|
|
@@ -1973,7 +1973,7 @@ function ge({
|
|
|
1973
1973
|
});
|
|
1974
1974
|
break;
|
|
1975
1975
|
case "Escape":
|
|
1976
|
-
|
|
1976
|
+
G === "Escape" && (y.preventDefault(), y.stopPropagation()), f(!1, Oe);
|
|
1977
1977
|
break;
|
|
1978
1978
|
}
|
|
1979
1979
|
}), /* @__PURE__ */ s.jsx(U.Provider, {
|
|
@@ -1987,7 +1987,7 @@ function ge({
|
|
|
1987
1987
|
ge.displayName = "Dropdown";
|
|
1988
1988
|
ge.Menu = Ke;
|
|
1989
1989
|
ge.Toggle = qt;
|
|
1990
|
-
ge.Item =
|
|
1990
|
+
ge.Item = Gt;
|
|
1991
1991
|
const Vt = /* @__PURE__ */ $.createContext({});
|
|
1992
1992
|
Vt.displayName = "DropdownContext";
|
|
1993
1993
|
const Qt = Vt, Xt = /* @__PURE__ */ $.forwardRef(({
|
|
@@ -2026,7 +2026,7 @@ const Wa = Ut, zt = /* @__PURE__ */ $.forwardRef(({
|
|
|
2026
2026
|
as: i = St,
|
|
2027
2027
|
...c
|
|
2028
2028
|
}, l) => {
|
|
2029
|
-
const d = S(e, "dropdown-item"), [f, u] =
|
|
2029
|
+
const d = S(e, "dropdown-item"), [f, u] = Ht({
|
|
2030
2030
|
key: n,
|
|
2031
2031
|
href: c.href,
|
|
2032
2032
|
disabled: r,
|
|
@@ -2084,24 +2084,24 @@ const on = /* @__PURE__ */ $.forwardRef(({
|
|
|
2084
2084
|
variant: d,
|
|
2085
2085
|
...f
|
|
2086
2086
|
}, u) => {
|
|
2087
|
-
let
|
|
2088
|
-
const
|
|
2087
|
+
let m = !1;
|
|
2088
|
+
const h = E(tn), p = S(e, "dropdown-menu"), {
|
|
2089
2089
|
align: g,
|
|
2090
|
-
drop:
|
|
2090
|
+
drop: x,
|
|
2091
2091
|
isRTL: v
|
|
2092
2092
|
} = E(Qt);
|
|
2093
2093
|
n = n || g;
|
|
2094
|
-
const w = E(Be),
|
|
2094
|
+
const w = E(Be), b = [];
|
|
2095
2095
|
if (n)
|
|
2096
2096
|
if (typeof n == "object") {
|
|
2097
2097
|
const y = Object.keys(n);
|
|
2098
2098
|
if (process.env.NODE_ENV !== "production" && Re(y.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), y.length) {
|
|
2099
2099
|
const O = y[0], F = n[O];
|
|
2100
|
-
|
|
2100
|
+
m = F === "start", b.push(`${p}-${O}-${F}`);
|
|
2101
2101
|
}
|
|
2102
2102
|
} else
|
|
2103
|
-
n === "end" && (
|
|
2104
|
-
const k = rn(
|
|
2103
|
+
n === "end" && (m = !0);
|
|
2104
|
+
const k = rn(m, x, v), [j, {
|
|
2105
2105
|
hasShown: N,
|
|
2106
2106
|
popper: _,
|
|
2107
2107
|
show: D,
|
|
@@ -2110,7 +2110,7 @@ const on = /* @__PURE__ */ $.forwardRef(({
|
|
|
2110
2110
|
flip: o,
|
|
2111
2111
|
rootCloseEvent: r,
|
|
2112
2112
|
show: a,
|
|
2113
|
-
usePopper: !
|
|
2113
|
+
usePopper: !h && b.length === 0,
|
|
2114
2114
|
offset: [0, 2],
|
|
2115
2115
|
popperConfig: l,
|
|
2116
2116
|
placement: k
|
|
@@ -2128,10 +2128,10 @@ const on = /* @__PURE__ */ $.forwardRef(({
|
|
|
2128
2128
|
...f,
|
|
2129
2129
|
...j,
|
|
2130
2130
|
style: I,
|
|
2131
|
-
...(
|
|
2131
|
+
...(b.length || h) && {
|
|
2132
2132
|
"data-bs-popper": "static"
|
|
2133
2133
|
},
|
|
2134
|
-
className: C(t, p, D && "show",
|
|
2134
|
+
className: C(t, p, D && "show", m && `${p}-end`, d && `${p}-${d}`, ...b)
|
|
2135
2135
|
});
|
|
2136
2136
|
});
|
|
2137
2137
|
on.displayName = "DropdownMenu";
|
|
@@ -2167,18 +2167,18 @@ const Ya = an, sn = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
|
2167
2167
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2168
2168
|
as: f = "div",
|
|
2169
2169
|
navbar: u,
|
|
2170
|
-
autoClose:
|
|
2171
|
-
...
|
|
2170
|
+
autoClose: m = !0,
|
|
2171
|
+
...h
|
|
2172
2172
|
} = Ae(e, {
|
|
2173
2173
|
show: "onToggle"
|
|
2174
|
-
}), p = E(Be), g = S(n, "dropdown"),
|
|
2174
|
+
}), p = E(Be), g = S(n, "dropdown"), x = yr(), v = (_) => m === !1 ? _ === "click" : m === "inside" ? _ !== "rootClose" : m === "outside" ? _ !== "select" : !0, w = Z((_, D) => {
|
|
2175
2175
|
var A, I;
|
|
2176
2176
|
!((A = D.originalEvent) == null || (I = A.target) == null) && I.classList.contains("dropdown-toggle") && D.source === "mousedown" || (D.originalEvent.currentTarget === document && (D.source !== "keydown" || D.originalEvent.key === "Escape") && (D.source = "rootClose"), v(D.source) && (l == null || l(_, D)));
|
|
2177
|
-
}), k = rn(i === "end", r,
|
|
2177
|
+
}), k = rn(i === "end", r, x), j = L(() => ({
|
|
2178
2178
|
align: i,
|
|
2179
2179
|
drop: r,
|
|
2180
|
-
isRTL:
|
|
2181
|
-
}), [i, r,
|
|
2180
|
+
isRTL: x
|
|
2181
|
+
}), [i, r, x]), N = {
|
|
2182
2182
|
down: g,
|
|
2183
2183
|
"down-centered": `${g}-center`,
|
|
2184
2184
|
up: "dropup",
|
|
@@ -2195,8 +2195,8 @@ const Ya = an, sn = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
|
2195
2195
|
onToggle: w,
|
|
2196
2196
|
focusFirstItemOnShow: d,
|
|
2197
2197
|
itemSelector: `.${g}-item:not(.disabled):not(:disabled)`,
|
|
2198
|
-
children: p ?
|
|
2199
|
-
...
|
|
2198
|
+
children: p ? h.children : /* @__PURE__ */ s.jsx(f, {
|
|
2199
|
+
...h,
|
|
2200
2200
|
ref: t,
|
|
2201
2201
|
className: C(a, o && "show", N[r])
|
|
2202
2202
|
})
|
|
@@ -2221,7 +2221,7 @@ const ye = Object.assign(sn, {
|
|
|
2221
2221
|
/** Display feedback as a tooltip. */
|
|
2222
2222
|
tooltip: Y.bool,
|
|
2223
2223
|
as: Y.elementType
|
|
2224
|
-
},
|
|
2224
|
+
}, He = /* @__PURE__ */ $.forwardRef(
|
|
2225
2225
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2226
2226
|
({
|
|
2227
2227
|
as: e = "div",
|
|
@@ -2235,9 +2235,9 @@ const ye = Object.assign(sn, {
|
|
|
2235
2235
|
className: C(t, `${n}-${r ? "tooltip" : "feedback"}`)
|
|
2236
2236
|
})
|
|
2237
2237
|
);
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
const cn =
|
|
2238
|
+
He.displayName = "Feedback";
|
|
2239
|
+
He.propTypes = Ka;
|
|
2240
|
+
const cn = He, qa = /* @__PURE__ */ $.createContext({}), z = qa, ln = /* @__PURE__ */ $.forwardRef(({
|
|
2241
2241
|
id: e,
|
|
2242
2242
|
bsPrefix: t,
|
|
2243
2243
|
className: n,
|
|
@@ -2290,24 +2290,24 @@ const Pe = un, dn = /* @__PURE__ */ $.forwardRef(({
|
|
|
2290
2290
|
feedback: d,
|
|
2291
2291
|
feedbackType: f,
|
|
2292
2292
|
className: u,
|
|
2293
|
-
style:
|
|
2294
|
-
title:
|
|
2293
|
+
style: m,
|
|
2294
|
+
title: h = "",
|
|
2295
2295
|
type: p = "checkbox",
|
|
2296
2296
|
label: g,
|
|
2297
|
-
children:
|
|
2297
|
+
children: x,
|
|
2298
2298
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2299
2299
|
as: v = "input",
|
|
2300
2300
|
...w
|
|
2301
|
-
},
|
|
2301
|
+
}, b) => {
|
|
2302
2302
|
t = S(t, "form-check"), n = S(n, "form-switch");
|
|
2303
2303
|
const {
|
|
2304
2304
|
controlId: k
|
|
2305
2305
|
} = E(z), j = L(() => ({
|
|
2306
2306
|
controlId: e || k
|
|
2307
|
-
}), [k, e]), N = !
|
|
2307
|
+
}), [k, e]), N = !x && g != null && g !== !1 || ga(x, Pe), _ = /* @__PURE__ */ s.jsx(Ee, {
|
|
2308
2308
|
...w,
|
|
2309
2309
|
type: p === "switch" ? "checkbox" : p,
|
|
2310
|
-
ref:
|
|
2310
|
+
ref: b,
|
|
2311
2311
|
isValid: i,
|
|
2312
2312
|
isInvalid: c,
|
|
2313
2313
|
disabled: a,
|
|
@@ -2316,11 +2316,11 @@ const Pe = un, dn = /* @__PURE__ */ $.forwardRef(({
|
|
|
2316
2316
|
return /* @__PURE__ */ s.jsx(z.Provider, {
|
|
2317
2317
|
value: j,
|
|
2318
2318
|
children: /* @__PURE__ */ s.jsx("div", {
|
|
2319
|
-
style:
|
|
2319
|
+
style: m,
|
|
2320
2320
|
className: C(u, N && t, r && `${t}-inline`, o && `${t}-reverse`, p === "switch" && n),
|
|
2321
|
-
children:
|
|
2321
|
+
children: x || /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2322
2322
|
children: [_, N && /* @__PURE__ */ s.jsx(Pe, {
|
|
2323
|
-
title:
|
|
2323
|
+
title: h,
|
|
2324
2324
|
children: g
|
|
2325
2325
|
}), d && /* @__PURE__ */ s.jsx(cn, {
|
|
2326
2326
|
type: f,
|
|
@@ -2349,17 +2349,17 @@ const je = Object.assign(dn, {
|
|
|
2349
2349
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2350
2350
|
as: f = "input",
|
|
2351
2351
|
...u
|
|
2352
|
-
},
|
|
2352
|
+
}, m) => {
|
|
2353
2353
|
const {
|
|
2354
|
-
controlId:
|
|
2354
|
+
controlId: h
|
|
2355
2355
|
} = E(z);
|
|
2356
|
-
return e = S(e, "form-control"), process.env.NODE_ENV !== "production" && Re(
|
|
2356
|
+
return e = S(e, "form-control"), process.env.NODE_ENV !== "production" && Re(h == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ s.jsx(f, {
|
|
2357
2357
|
...u,
|
|
2358
2358
|
type: t,
|
|
2359
2359
|
size: r,
|
|
2360
|
-
ref:
|
|
2360
|
+
ref: m,
|
|
2361
2361
|
readOnly: d,
|
|
2362
|
-
id: o ||
|
|
2362
|
+
id: o || h,
|
|
2363
2363
|
className: C(a, l ? `${e}-plaintext` : e, n && `${e}-${n}`, t === "color" && `${e}-color`, i && "is-valid", c && "is-invalid")
|
|
2364
2364
|
});
|
|
2365
2365
|
});
|
|
@@ -2429,7 +2429,7 @@ const gn = pn, bn = /* @__PURE__ */ $.forwardRef(({
|
|
|
2429
2429
|
);
|
|
2430
2430
|
});
|
|
2431
2431
|
bn.displayName = "FormLabel";
|
|
2432
|
-
const
|
|
2432
|
+
const Ha = bn, xn = /* @__PURE__ */ $.forwardRef(({
|
|
2433
2433
|
bsPrefix: e,
|
|
2434
2434
|
className: t,
|
|
2435
2435
|
id: n,
|
|
@@ -2447,7 +2447,7 @@ const Ga = bn, xn = /* @__PURE__ */ $.forwardRef(({
|
|
|
2447
2447
|
});
|
|
2448
2448
|
});
|
|
2449
2449
|
xn.displayName = "FormRange";
|
|
2450
|
-
const
|
|
2450
|
+
const Ga = xn, wn = /* @__PURE__ */ $.forwardRef(({
|
|
2451
2451
|
bsPrefix: e,
|
|
2452
2452
|
size: t,
|
|
2453
2453
|
htmlSize: n,
|
|
@@ -2527,7 +2527,7 @@ const Cn = jn, Ua = {
|
|
|
2527
2527
|
*/
|
|
2528
2528
|
validated: Y.bool,
|
|
2529
2529
|
as: Y.elementType
|
|
2530
|
-
},
|
|
2530
|
+
}, Ge = /* @__PURE__ */ $.forwardRef(({
|
|
2531
2531
|
className: e,
|
|
2532
2532
|
validated: t,
|
|
2533
2533
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -2538,17 +2538,17 @@ const Cn = jn, Ua = {
|
|
|
2538
2538
|
ref: o,
|
|
2539
2539
|
className: C(e, t && "was-validated")
|
|
2540
2540
|
}));
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
const q = Object.assign(
|
|
2541
|
+
Ge.displayName = "Form";
|
|
2542
|
+
Ge.propTypes = Ua;
|
|
2543
|
+
const q = Object.assign(Ge, {
|
|
2544
2544
|
Group: gn,
|
|
2545
2545
|
Control: mn,
|
|
2546
2546
|
Floating: Ba,
|
|
2547
2547
|
Check: je,
|
|
2548
2548
|
Switch: Xa,
|
|
2549
|
-
Label:
|
|
2549
|
+
Label: Ha,
|
|
2550
2550
|
Text: Qa,
|
|
2551
|
-
Range:
|
|
2551
|
+
Range: Ga,
|
|
2552
2552
|
Select: Va,
|
|
2553
2553
|
FloatingLabel: Cn
|
|
2554
2554
|
}), $n = /* @__PURE__ */ $.forwardRef(({
|
|
@@ -2621,8 +2621,8 @@ function Nn({
|
|
|
2621
2621
|
};
|
|
2622
2622
|
if (c) {
|
|
2623
2623
|
!o && c.role === "tablist" && (f.role = "tab");
|
|
2624
|
-
const u = c.getControllerId(e ?? null),
|
|
2625
|
-
f[pe("event-key")] = e, f.id = u || r, d = n == null && e != null ? c.activeKey === e : n, (d || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (f["aria-controls"] =
|
|
2624
|
+
const u = c.getControllerId(e ?? null), m = c.getControlledId(e ?? null);
|
|
2625
|
+
f[pe("event-key")] = e, f.id = u || r, d = n == null && e != null ? c.activeKey === e : n, (d || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (f["aria-controls"] = m);
|
|
2626
2626
|
}
|
|
2627
2627
|
return f.role === "tab" && (f["aria-selected"] = d, d || (f.tabIndex = -1), a && (f.tabIndex = -1, f["aria-disabled"] = !0)), f.onClick = Z((u) => {
|
|
2628
2628
|
a || (t == null || t(u), e != null && i && !u.isPropagationStopped() && i(e, u));
|
|
@@ -2665,9 +2665,9 @@ const ft = () => {
|
|
|
2665
2665
|
onKeyDown: i
|
|
2666
2666
|
} = e, c = os(e, rs);
|
|
2667
2667
|
const l = Wt(), d = R(!1), f = E(U), u = E(ue);
|
|
2668
|
-
let
|
|
2669
|
-
u && (a = a || "tablist", o = u.activeKey,
|
|
2670
|
-
const p = R(null), g = (
|
|
2668
|
+
let m, h;
|
|
2669
|
+
u && (a = a || "tablist", o = u.activeKey, m = u.getControlledId, h = u.getControllerId);
|
|
2670
|
+
const p = R(null), g = (b) => {
|
|
2671
2671
|
const k = p.current;
|
|
2672
2672
|
if (!k)
|
|
2673
2673
|
return null;
|
|
@@ -2677,15 +2677,15 @@ const ft = () => {
|
|
|
2677
2677
|
const _ = j.indexOf(N);
|
|
2678
2678
|
if (_ === -1)
|
|
2679
2679
|
return null;
|
|
2680
|
-
let D = _ +
|
|
2680
|
+
let D = _ + b;
|
|
2681
2681
|
return D >= j.length && (D = 0), D < 0 && (D = j.length - 1), j[D];
|
|
2682
|
-
},
|
|
2683
|
-
|
|
2684
|
-
}, v = (
|
|
2685
|
-
if (i == null || i(
|
|
2682
|
+
}, x = (b, k) => {
|
|
2683
|
+
b != null && (r == null || r(b, k), f == null || f(b, k));
|
|
2684
|
+
}, v = (b) => {
|
|
2685
|
+
if (i == null || i(b), !u)
|
|
2686
2686
|
return;
|
|
2687
2687
|
let k;
|
|
2688
|
-
switch (
|
|
2688
|
+
switch (b.key) {
|
|
2689
2689
|
case "ArrowLeft":
|
|
2690
2690
|
case "ArrowUp":
|
|
2691
2691
|
k = g(-1);
|
|
@@ -2697,25 +2697,25 @@ const ft = () => {
|
|
|
2697
2697
|
default:
|
|
2698
2698
|
return;
|
|
2699
2699
|
}
|
|
2700
|
-
k && (
|
|
2700
|
+
k && (b.preventDefault(), x(k.dataset[sr("EventKey")] || null, b), d.current = !0, l());
|
|
2701
2701
|
};
|
|
2702
2702
|
P(() => {
|
|
2703
2703
|
if (p.current && d.current) {
|
|
2704
|
-
const
|
|
2705
|
-
|
|
2704
|
+
const b = p.current.querySelector(`[${mt}][aria-selected=true]`);
|
|
2705
|
+
b == null || b.focus();
|
|
2706
2706
|
}
|
|
2707
2707
|
d.current = !1;
|
|
2708
2708
|
});
|
|
2709
2709
|
const w = $e(t, p);
|
|
2710
2710
|
return /* @__PURE__ */ s.jsx(U.Provider, {
|
|
2711
|
-
value:
|
|
2711
|
+
value: x,
|
|
2712
2712
|
children: /* @__PURE__ */ s.jsx(qe.Provider, {
|
|
2713
2713
|
value: {
|
|
2714
2714
|
role: a,
|
|
2715
2715
|
// used by NavLink to determine it's role
|
|
2716
2716
|
activeKey: ae(o),
|
|
2717
|
-
getControlledId:
|
|
2718
|
-
getControllerId:
|
|
2717
|
+
getControlledId: m || ft,
|
|
2718
|
+
getControllerId: h || ft
|
|
2719
2719
|
},
|
|
2720
2720
|
children: /* @__PURE__ */ s.jsx(n, Object.assign({}, c, {
|
|
2721
2721
|
onKeyDown: v,
|
|
@@ -2736,12 +2736,12 @@ var ht = { exports: {} }, Fe = { exports: {} };
|
|
|
2736
2736
|
}), t.default = n;
|
|
2737
2737
|
function n(r) {
|
|
2738
2738
|
function o(i, c, l, d, f, u) {
|
|
2739
|
-
var
|
|
2739
|
+
var m = d || "<<anonymous>>", h = u || l;
|
|
2740
2740
|
if (c[l] == null)
|
|
2741
|
-
return i ? new Error("Required " + f + " `" +
|
|
2742
|
-
for (var p = arguments.length, g = Array(p > 6 ? p - 6 : 0),
|
|
2743
|
-
g[
|
|
2744
|
-
return r.apply(void 0, [c, l,
|
|
2741
|
+
return i ? new Error("Required " + f + " `" + h + "` was not specified " + ("in `" + m + "`.")) : null;
|
|
2742
|
+
for (var p = arguments.length, g = Array(p > 6 ? p - 6 : 0), x = 6; x < p; x++)
|
|
2743
|
+
g[x - 6] = arguments[x];
|
|
2744
|
+
return r.apply(void 0, [c, l, m, f, h].concat(g));
|
|
2745
2745
|
}
|
|
2746
2746
|
var a = o.bind(null, !1);
|
|
2747
2747
|
return a.isRequired = o.bind(null, !0), a;
|
|
@@ -2761,15 +2761,15 @@ var ss = Fe.exports;
|
|
|
2761
2761
|
for (var i = arguments.length, c = Array(i), l = 0; l < i; l++)
|
|
2762
2762
|
c[l] = arguments[l];
|
|
2763
2763
|
function d() {
|
|
2764
|
-
for (var f = arguments.length, u = Array(f),
|
|
2765
|
-
u[
|
|
2766
|
-
var
|
|
2764
|
+
for (var f = arguments.length, u = Array(f), m = 0; m < f; m++)
|
|
2765
|
+
u[m] = arguments[m];
|
|
2766
|
+
var h = null;
|
|
2767
2767
|
return c.forEach(function(p) {
|
|
2768
|
-
if (
|
|
2768
|
+
if (h == null) {
|
|
2769
2769
|
var g = p.apply(void 0, u);
|
|
2770
|
-
g != null && (
|
|
2770
|
+
g != null && (h = g);
|
|
2771
2771
|
}
|
|
2772
|
-
}),
|
|
2772
|
+
}), h;
|
|
2773
2773
|
}
|
|
2774
2774
|
return (0, r.default)(d);
|
|
2775
2775
|
}
|
|
@@ -2825,23 +2825,23 @@ const Sn = Dn, Mn = /* @__PURE__ */ $.forwardRef((e, t) => {
|
|
|
2825
2825
|
...u
|
|
2826
2826
|
} = Ae(e, {
|
|
2827
2827
|
activeKey: "onSelect"
|
|
2828
|
-
}),
|
|
2829
|
-
let
|
|
2830
|
-
const
|
|
2831
|
-
return
|
|
2828
|
+
}), m = S(r, "nav");
|
|
2829
|
+
let h, p, g = !1;
|
|
2830
|
+
const x = E(tn), v = E(ha);
|
|
2831
|
+
return x ? (h = x.bsPrefix, g = c ?? !0) : v && ({
|
|
2832
2832
|
cardHeaderBsPrefix: p
|
|
2833
2833
|
} = v), /* @__PURE__ */ s.jsx(as, {
|
|
2834
2834
|
as: n,
|
|
2835
2835
|
ref: t,
|
|
2836
2836
|
activeKey: f,
|
|
2837
2837
|
className: C(d, {
|
|
2838
|
-
[
|
|
2839
|
-
[`${
|
|
2840
|
-
[`${
|
|
2838
|
+
[m]: !g,
|
|
2839
|
+
[`${h}-nav`]: g,
|
|
2840
|
+
[`${h}-nav-scroll`]: g && l,
|
|
2841
2841
|
[`${p}-${o}`]: !!p,
|
|
2842
|
-
[`${
|
|
2843
|
-
[`${
|
|
2844
|
-
[`${
|
|
2842
|
+
[`${m}-${o}`]: !!o,
|
|
2843
|
+
[`${m}-fill`]: a,
|
|
2844
|
+
[`${m}-justified`]: i
|
|
2845
2845
|
}),
|
|
2846
2846
|
...u
|
|
2847
2847
|
});
|
|
@@ -2891,11 +2891,11 @@ function Pn(e) {
|
|
|
2891
2891
|
onEntered: d,
|
|
2892
2892
|
onExit: f,
|
|
2893
2893
|
onExiting: u,
|
|
2894
|
-
onExited:
|
|
2895
|
-
} = e,
|
|
2894
|
+
onExited: m
|
|
2895
|
+
} = e, h = We(e, ls);
|
|
2896
2896
|
const p = E(ue);
|
|
2897
2897
|
if (!p)
|
|
2898
|
-
return [Object.assign({},
|
|
2898
|
+
return [Object.assign({}, h, {
|
|
2899
2899
|
role: i
|
|
2900
2900
|
}), {
|
|
2901
2901
|
eventKey: n,
|
|
@@ -2908,20 +2908,20 @@ function Pn(e) {
|
|
|
2908
2908
|
onEntered: d,
|
|
2909
2909
|
onExit: f,
|
|
2910
2910
|
onExiting: u,
|
|
2911
|
-
onExited:
|
|
2911
|
+
onExited: m
|
|
2912
2912
|
}];
|
|
2913
2913
|
const {
|
|
2914
2914
|
activeKey: g,
|
|
2915
|
-
getControlledId:
|
|
2915
|
+
getControlledId: x,
|
|
2916
2916
|
getControllerId: v
|
|
2917
|
-
} = p, w = We(p, us),
|
|
2918
|
-
return [Object.assign({},
|
|
2917
|
+
} = p, w = We(p, us), b = ae(n);
|
|
2918
|
+
return [Object.assign({}, h, {
|
|
2919
2919
|
role: i,
|
|
2920
|
-
id:
|
|
2920
|
+
id: x(n),
|
|
2921
2921
|
"aria-labelledby": v(n)
|
|
2922
2922
|
}), {
|
|
2923
2923
|
eventKey: n,
|
|
2924
|
-
isActive: t == null &&
|
|
2924
|
+
isActive: t == null && b != null ? ae(g) === b : t,
|
|
2925
2925
|
transition: o || w.transition,
|
|
2926
2926
|
mountOnEnter: r ?? w.mountOnEnter,
|
|
2927
2927
|
unmountOnExit: a ?? w.unmountOnExit,
|
|
@@ -2930,7 +2930,7 @@ function Pn(e) {
|
|
|
2930
2930
|
onEntered: d,
|
|
2931
2931
|
onExit: f,
|
|
2932
2932
|
onExiting: u,
|
|
2933
|
-
onExited:
|
|
2933
|
+
onExited: m
|
|
2934
2934
|
}];
|
|
2935
2935
|
}
|
|
2936
2936
|
const Fn = /* @__PURE__ */ $.forwardRef(
|
|
@@ -2947,8 +2947,8 @@ const Fn = /* @__PURE__ */ $.forwardRef(
|
|
|
2947
2947
|
onExit: d,
|
|
2948
2948
|
onExiting: f,
|
|
2949
2949
|
onExited: u,
|
|
2950
|
-
mountOnEnter:
|
|
2951
|
-
unmountOnExit:
|
|
2950
|
+
mountOnEnter: m,
|
|
2951
|
+
unmountOnExit: h,
|
|
2952
2952
|
transition: p = jt
|
|
2953
2953
|
}] = Pn(r);
|
|
2954
2954
|
return /* @__PURE__ */ s.jsx(ue.Provider, {
|
|
@@ -2963,8 +2963,8 @@ const Fn = /* @__PURE__ */ $.forwardRef(
|
|
|
2963
2963
|
onExit: d,
|
|
2964
2964
|
onExiting: f,
|
|
2965
2965
|
onExited: u,
|
|
2966
|
-
mountOnEnter:
|
|
2967
|
-
unmountOnExit:
|
|
2966
|
+
mountOnEnter: m,
|
|
2967
|
+
unmountOnExit: h,
|
|
2968
2968
|
children: /* @__PURE__ */ s.jsx(n, Object.assign({}, o, {
|
|
2969
2969
|
ref: t,
|
|
2970
2970
|
hidden: !a,
|
|
@@ -2987,15 +2987,15 @@ const Wn = (e) => {
|
|
|
2987
2987
|
mountOnEnter: c,
|
|
2988
2988
|
unmountOnExit: l,
|
|
2989
2989
|
children: d
|
|
2990
|
-
} = e, [f, u] = Ft(o, a, r),
|
|
2990
|
+
} = e, [f, u] = Ft(o, a, r), m = Lt(t), h = L(() => n || ((g, x) => m ? `${m}-${x}-${g}` : null), [m, n]), p = L(() => ({
|
|
2991
2991
|
onSelect: u,
|
|
2992
2992
|
activeKey: f,
|
|
2993
2993
|
transition: i,
|
|
2994
2994
|
mountOnEnter: c || !1,
|
|
2995
2995
|
unmountOnExit: l || !1,
|
|
2996
|
-
getControlledId: (g) =>
|
|
2997
|
-
getControllerId: (g) =>
|
|
2998
|
-
}), [u, f, i, c, l,
|
|
2996
|
+
getControlledId: (g) => h(g, "tabpane"),
|
|
2997
|
+
getControllerId: (g) => h(g, "tab")
|
|
2998
|
+
}), [u, f, i, c, l, h]);
|
|
2999
2999
|
return /* @__PURE__ */ s.jsx(ue.Provider, {
|
|
3000
3000
|
value: p,
|
|
3001
3001
|
children: /* @__PURE__ */ s.jsx(U.Provider, {
|
|
@@ -3044,11 +3044,11 @@ const Yn = Ln, Kn = /* @__PURE__ */ $.forwardRef(({
|
|
|
3044
3044
|
onEntering: d,
|
|
3045
3045
|
onEntered: f,
|
|
3046
3046
|
onExit: u,
|
|
3047
|
-
onExiting:
|
|
3048
|
-
onExited:
|
|
3047
|
+
onExiting: m,
|
|
3048
|
+
onExited: h,
|
|
3049
3049
|
mountOnEnter: p,
|
|
3050
3050
|
unmountOnExit: g,
|
|
3051
|
-
transition:
|
|
3051
|
+
transition: x = Ct
|
|
3052
3052
|
}] = Pn({
|
|
3053
3053
|
...n,
|
|
3054
3054
|
transition: Qe(t)
|
|
@@ -3057,14 +3057,14 @@ const Yn = Ln, Kn = /* @__PURE__ */ $.forwardRef(({
|
|
|
3057
3057
|
value: null,
|
|
3058
3058
|
children: /* @__PURE__ */ s.jsx(U.Provider, {
|
|
3059
3059
|
value: null,
|
|
3060
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3060
|
+
children: /* @__PURE__ */ s.jsx(x, {
|
|
3061
3061
|
in: c,
|
|
3062
3062
|
onEnter: l,
|
|
3063
3063
|
onEntering: d,
|
|
3064
3064
|
onEntered: f,
|
|
3065
3065
|
onExit: u,
|
|
3066
|
-
onExiting:
|
|
3067
|
-
onExited:
|
|
3066
|
+
onExiting: m,
|
|
3067
|
+
onExited: h,
|
|
3068
3068
|
mountOnEnter: p,
|
|
3069
3069
|
unmountOnExit: g,
|
|
3070
3070
|
children: /* @__PURE__ */ s.jsx(a, {
|
|
@@ -3134,7 +3134,7 @@ function gs(e) {
|
|
|
3134
3134
|
})
|
|
3135
3135
|
});
|
|
3136
3136
|
}
|
|
3137
|
-
const
|
|
3137
|
+
const Hn = (e) => {
|
|
3138
3138
|
const {
|
|
3139
3139
|
id: t,
|
|
3140
3140
|
onSelect: n,
|
|
@@ -3174,8 +3174,8 @@ const Gn = (e) => {
|
|
|
3174
3174
|
})]
|
|
3175
3175
|
});
|
|
3176
3176
|
};
|
|
3177
|
-
|
|
3178
|
-
const bs =
|
|
3177
|
+
Hn.displayName = "Tabs";
|
|
3178
|
+
const bs = Hn, xs = "_badge_nhser_1", ws = "_sm_nhser_1", vs = "_md_nhser_4", ys = "_lg_nhser_7", pt = {
|
|
3179
3179
|
badge: xs,
|
|
3180
3180
|
sm: ws,
|
|
3181
3181
|
md: vs,
|
|
@@ -3212,27 +3212,27 @@ const bs = Gn, xs = "_badge_nhser_1", ws = "_sm_nhser_1", vs = "_md_nhser_4", ys
|
|
|
3212
3212
|
function _s(e, t, n) {
|
|
3213
3213
|
var r = this, o = R(null), a = R(0), i = R(null), c = R([]), l = R(), d = R(), f = R(e), u = R(!0);
|
|
3214
3214
|
f.current = e;
|
|
3215
|
-
var
|
|
3215
|
+
var m = typeof window < "u", h = !t && t !== 0 && m;
|
|
3216
3216
|
if (typeof e != "function")
|
|
3217
3217
|
throw new TypeError("Expected a function");
|
|
3218
3218
|
t = +t || 0;
|
|
3219
|
-
var p = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing,
|
|
3219
|
+
var p = !!(n = n || {}).leading, g = !("trailing" in n) || !!n.trailing, x = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, w = x ? Math.max(+n.maxWait || 0, t) : null;
|
|
3220
3220
|
P(function() {
|
|
3221
3221
|
return u.current = !0, function() {
|
|
3222
3222
|
u.current = !1;
|
|
3223
3223
|
};
|
|
3224
3224
|
}, []);
|
|
3225
|
-
var
|
|
3225
|
+
var b = L(function() {
|
|
3226
3226
|
var k = function(I) {
|
|
3227
3227
|
var y = c.current, O = l.current;
|
|
3228
3228
|
return c.current = l.current = null, a.current = I, d.current = f.current.apply(O, y);
|
|
3229
3229
|
}, j = function(I, y) {
|
|
3230
|
-
|
|
3230
|
+
h && cancelAnimationFrame(i.current), i.current = h ? requestAnimationFrame(I) : setTimeout(I, y);
|
|
3231
3231
|
}, N = function(I) {
|
|
3232
3232
|
if (!u.current)
|
|
3233
3233
|
return !1;
|
|
3234
3234
|
var y = I - o.current;
|
|
3235
|
-
return !o.current || y >= t || y < 0 ||
|
|
3235
|
+
return !o.current || y >= t || y < 0 || x && I - a.current >= w;
|
|
3236
3236
|
}, _ = function(I) {
|
|
3237
3237
|
return i.current = null, g && c.current ? k(I) : (c.current = l.current = null, d.current);
|
|
3238
3238
|
}, D = function I() {
|
|
@@ -3240,30 +3240,30 @@ function _s(e, t, n) {
|
|
|
3240
3240
|
if (N(y))
|
|
3241
3241
|
return _(y);
|
|
3242
3242
|
if (u.current) {
|
|
3243
|
-
var O = t - (y - o.current), F =
|
|
3243
|
+
var O = t - (y - o.current), F = x ? Math.min(O, w - (y - a.current)) : O;
|
|
3244
3244
|
j(I, F);
|
|
3245
3245
|
}
|
|
3246
3246
|
}, A = function() {
|
|
3247
|
-
if (
|
|
3247
|
+
if (m || v) {
|
|
3248
3248
|
var I = Date.now(), y = N(I);
|
|
3249
3249
|
if (c.current = [].slice.call(arguments), l.current = r, o.current = I, y) {
|
|
3250
3250
|
if (!i.current && u.current)
|
|
3251
3251
|
return a.current = o.current, j(D, t), p ? k(o.current) : d.current;
|
|
3252
|
-
if (
|
|
3252
|
+
if (x)
|
|
3253
3253
|
return j(D, t), k(o.current);
|
|
3254
3254
|
}
|
|
3255
3255
|
return i.current || j(D, t), d.current;
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
3258
|
return A.cancel = function() {
|
|
3259
|
-
i.current && (
|
|
3259
|
+
i.current && (h ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, c.current = o.current = l.current = i.current = null;
|
|
3260
3260
|
}, A.isPending = function() {
|
|
3261
3261
|
return !!i.current;
|
|
3262
3262
|
}, A.flush = function() {
|
|
3263
3263
|
return i.current ? _(Date.now()) : d.current;
|
|
3264
3264
|
}, A;
|
|
3265
|
-
}, [p,
|
|
3266
|
-
return
|
|
3265
|
+
}, [p, x, t, w, g, h, m, v]);
|
|
3266
|
+
return b;
|
|
3267
3267
|
}
|
|
3268
3268
|
function Ts(e, t) {
|
|
3269
3269
|
return e === t;
|
|
@@ -3293,13 +3293,13 @@ const Ms = "_dropdown_gxnf9_1", Is = "_open_gxnf9_10", Ps = "_selected-button_gx
|
|
|
3293
3293
|
"items-container": "_items-container_gxnf9_39",
|
|
3294
3294
|
itemsContainer: Ls,
|
|
3295
3295
|
item: Ys
|
|
3296
|
-
},
|
|
3297
|
-
const d = R(null), [f, u] = W(""), [
|
|
3296
|
+
}, Gn = ({ show: e, onCancel: t, items: n, currentSelection: r, onSelectionChange: o, onClickSelectedItem: a, onSearchQueryChange: i, texts: c, isLoading: l = !1 }) => {
|
|
3297
|
+
const d = R(null), [f, u] = W(""), [m] = Ss(f, 500);
|
|
3298
3298
|
return P(() => {
|
|
3299
3299
|
e || u("");
|
|
3300
3300
|
}, [e]), P(() => {
|
|
3301
|
-
i(
|
|
3302
|
-
}, [
|
|
3301
|
+
i(m);
|
|
3302
|
+
}, [m, i]), jr(d, t), /* @__PURE__ */ s.jsxs("div", { ref: d, className: C("luminus-employee-dropdown shadow rounded", Q.dropdown, {
|
|
3303
3303
|
[Q.open]: e
|
|
3304
3304
|
}), children: [
|
|
3305
3305
|
r && /* @__PURE__ */ s.jsxs("button", { type: "button", onClick: () => a(r), className: C("selected-button d-flex gap-3 justify-content-between align-items-center", Q.selectedButton), children: [
|
|
@@ -3310,25 +3310,25 @@ const Ms = "_dropdown_gxnf9_1", Is = "_open_gxnf9_10", Ps = "_selected-button_gx
|
|
|
3310
3310
|
/* @__PURE__ */ s.jsx(re, { variant: "body2", children: c.clearSelection }),
|
|
3311
3311
|
/* @__PURE__ */ s.jsx(re, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(wt, {}) })
|
|
3312
3312
|
] }),
|
|
3313
|
-
/* @__PURE__ */ s.jsx("div", { className: C("search-input-container border-bottom", Q.searchInputContainer), children: /* @__PURE__ */ s.jsx(q.Control, { type: "search", size: "sm", className: Q.searchInput, placeholder: c.searchPlaceholder, value: f, onChange: (
|
|
3313
|
+
/* @__PURE__ */ s.jsx("div", { className: C("search-input-container border-bottom", Q.searchInputContainer), children: /* @__PURE__ */ s.jsx(q.Control, { type: "search", size: "sm", className: Q.searchInput, placeholder: c.searchPlaceholder, value: f, onChange: (h) => {
|
|
3314
3314
|
var p;
|
|
3315
|
-
return u(((p =
|
|
3315
|
+
return u(((p = h.target) == null ? void 0 : p.value) ?? "");
|
|
3316
3316
|
} }) }),
|
|
3317
|
-
l ? /* @__PURE__ */ s.jsx("div", { className: Q.loadingContainer, children: /* @__PURE__ */ s.jsx(cs, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: Q.itemsContainer, children: n == null ? void 0 : n.map((
|
|
3318
|
-
/* @__PURE__ */ s.jsx(re, { variant: "body2", children:
|
|
3317
|
+
l ? /* @__PURE__ */ s.jsx("div", { className: Q.loadingContainer, children: /* @__PURE__ */ s.jsx(cs, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: Q.itemsContainer, children: n == null ? void 0 : n.map((h) => /* @__PURE__ */ s.jsxs("button", { type: "button", className: C("employee-item d-flex gap-3 align-items-center justify-content-between", Q.item), onClick: () => o(h), children: [
|
|
3318
|
+
/* @__PURE__ */ s.jsx(re, { variant: "body2", children: h.name }),
|
|
3319
3319
|
/* @__PURE__ */ s.jsx(re, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(xe, {}) })
|
|
3320
|
-
] },
|
|
3320
|
+
] }, h.id)) })
|
|
3321
3321
|
] });
|
|
3322
3322
|
};
|
|
3323
3323
|
function Ks(e) {
|
|
3324
3324
|
return rr({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" }, child: [] }] })(e);
|
|
3325
3325
|
}
|
|
3326
|
-
const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5",
|
|
3326
|
+
const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Hs = "_input_1512b_1", be = {
|
|
3327
3327
|
"input-group": "_input-group_1512b_1",
|
|
3328
3328
|
inputGroup: qs,
|
|
3329
3329
|
"input-group-text": "_input-group-text_1512b_5",
|
|
3330
3330
|
inputGroupText: Bs,
|
|
3331
|
-
input:
|
|
3331
|
+
input: Hs
|
|
3332
3332
|
}, bi = () => /* @__PURE__ */ s.jsxs(Se, { className: be.inputGroup, children: [
|
|
3333
3333
|
/* @__PURE__ */ s.jsx(Se.Text, { className: C("p-1", be.inputGroupText), children: /* @__PURE__ */ s.jsx(Tt, { icon: /* @__PURE__ */ s.jsx(s.Fragment, {}), className: "h-100", children: "Vše" }) }),
|
|
3334
3334
|
/* @__PURE__ */ s.jsx(q.Control, { placeholder: "Hledat", type: "text", size: "sm", className: C("luminus-app-search-input", be.input) }),
|
|
@@ -3336,9 +3336,9 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3336
3336
|
] }), xi = ({ heading: e, content: t, placement: n, children: r, trigger: o }) => /* @__PURE__ */ s.jsx($t, { placement: n, overlay: /* @__PURE__ */ s.jsxs(_e, { className: "luminus-tooltip", children: [
|
|
3337
3337
|
/* @__PURE__ */ s.jsx(_e.Header, { as: "h3", children: e }),
|
|
3338
3338
|
/* @__PURE__ */ s.jsx(_e.Body, { children: t })
|
|
3339
|
-
] }), trigger: o ?? "hover", rootClose: !0, children: r }),
|
|
3339
|
+
] }), trigger: o ?? "hover", rootClose: !0, children: r }), Gs = "_avatar-icon_1axl6_1", Vs = {
|
|
3340
3340
|
"avatar-icon": "_avatar-icon_1axl6_1",
|
|
3341
|
-
avatarIcon:
|
|
3341
|
+
avatarIcon: Gs
|
|
3342
3342
|
}, Vn = ({ name: e, fontSize: t, size: n }) => {
|
|
3343
3343
|
const r = (o) => {
|
|
3344
3344
|
let a = 0, i;
|
|
@@ -3351,7 +3351,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3351
3351
|
}
|
|
3352
3352
|
return c;
|
|
3353
3353
|
};
|
|
3354
|
-
return /* @__PURE__ */ s.jsx($t, { placement: "bottom", overlay: /* @__PURE__ */ s.jsx(Nr, { children: e }), children: /* @__PURE__ */ s.jsx("div", { className: Vs.avatarIcon, style: {
|
|
3354
|
+
return /* @__PURE__ */ s.jsx($t, { placement: "bottom", overlay: /* @__PURE__ */ s.jsx(Nr, { children: e }), children: /* @__PURE__ */ s.jsx("div", { className: C("luminus-avatar-icon", Vs.avatarIcon), style: {
|
|
3355
3355
|
backgroundColor: r(e),
|
|
3356
3356
|
fontSize: t ?? void 0,
|
|
3357
3357
|
height: n ?? void 0,
|
|
@@ -3361,24 +3361,24 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3361
3361
|
var l;
|
|
3362
3362
|
n && n(((l = c.target) == null ? void 0 : l.checked) ?? !1);
|
|
3363
3363
|
}, className: a ?? "", hidden: r ?? !1, disabled: o ?? !1 }), vi = ({ type: e, value: t, onChange: n, label: r, withoutLabel: o, placeholder: a, size: i, hidden: c, disabled: l, showClearIcon: d, clearValue: f, className: u }) => {
|
|
3364
|
-
const
|
|
3364
|
+
const m = e === "number", h = M(() => {
|
|
3365
3365
|
if (!n)
|
|
3366
3366
|
return;
|
|
3367
3367
|
const p = f ?? null;
|
|
3368
|
-
n(
|
|
3369
|
-
}, [f,
|
|
3368
|
+
n(m ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
|
|
3369
|
+
}, [f, m, n]);
|
|
3370
3370
|
return /* @__PURE__ */ s.jsxs(te, { withoutLabel: o ?? !1, label: r ?? "", hidden: c, children: [
|
|
3371
3371
|
/* @__PURE__ */ s.jsx(q.Control, { type: e, placeholder: a ?? r, size: i, value: t ?? "", onChange: (p) => {
|
|
3372
|
-
var
|
|
3372
|
+
var x;
|
|
3373
3373
|
if (!n)
|
|
3374
3374
|
return;
|
|
3375
|
-
const g = (
|
|
3376
|
-
|
|
3375
|
+
const g = (x = p.target) == null ? void 0 : x.value;
|
|
3376
|
+
m && n(g ? parseInt(g, 10) : null), n(g || null);
|
|
3377
3377
|
}, className: u ?? "", hidden: c, disabled: l ?? !1 }),
|
|
3378
|
-
d && t && n && !l && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick:
|
|
3378
|
+
d && t && n && !l && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: h, children: /* @__PURE__ */ s.jsx(le, {}) }) })
|
|
3379
3379
|
] });
|
|
3380
|
-
}, yi = ({ value: e, options: t, onChange: n, label: r, withoutLabel: o, isNumber: a, size: i, hidden: c, disabled: l, showClearIcon: d, clearValue: f, noSortOptions: u, className:
|
|
3381
|
-
const
|
|
3380
|
+
}, yi = ({ value: e, options: t, onChange: n, label: r, withoutLabel: o, isNumber: a, size: i, hidden: c, disabled: l, showClearIcon: d, clearValue: f, noSortOptions: u, className: m }) => {
|
|
3381
|
+
const h = M(() => {
|
|
3382
3382
|
if (!n)
|
|
3383
3383
|
return;
|
|
3384
3384
|
const p = f ?? null;
|
|
@@ -3386,70 +3386,70 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3386
3386
|
}, [f, a, n]);
|
|
3387
3387
|
return /* @__PURE__ */ s.jsxs(te, { withoutLabel: o ?? !1, label: r ?? "", hidden: c, children: [
|
|
3388
3388
|
/* @__PURE__ */ s.jsxs(q.Select, { size: i, value: e ?? "", onChange: (p) => {
|
|
3389
|
-
var
|
|
3389
|
+
var x;
|
|
3390
3390
|
if (!n)
|
|
3391
3391
|
return;
|
|
3392
|
-
const g = (
|
|
3392
|
+
const g = (x = p.target) == null ? void 0 : x.value;
|
|
3393
3393
|
a && n(g ? parseInt(g, 10) : null), n(g || null);
|
|
3394
|
-
}, className:
|
|
3394
|
+
}, className: m ?? "", hidden: c, disabled: l ?? !1, children: [
|
|
3395
3395
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3396
3396
|
t == null ? void 0 : t.sort((p, g) => u ? 0 : (p.name ?? "").localeCompare(g.name ?? "")).map((p) => /* @__PURE__ */ s.jsx("option", { value: p.id ?? "", children: p.name }, p.id))
|
|
3397
3397
|
] }),
|
|
3398
|
-
d && e && n && !l && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick:
|
|
3398
|
+
d && e && n && !l && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: h, children: /* @__PURE__ */ s.jsx(le, {}) }) })
|
|
3399
3399
|
] });
|
|
3400
|
-
}, ji = ({ items: e, defaultSelection: t, onClickSelectedItem: n, onSearchQueryChange: r, texts: o, isLoading: a, isNumber: i, onSelect: c, label: l, withoutLabel: d, size: f, hidden: u, disabled:
|
|
3401
|
-
const [
|
|
3400
|
+
}, ji = ({ items: e, defaultSelection: t, onClickSelectedItem: n, onSearchQueryChange: r, texts: o, isLoading: a, isNumber: i, onSelect: c, label: l, withoutLabel: d, size: f, hidden: u, disabled: m }) => {
|
|
3401
|
+
const [h, p] = W(t), [g, x] = W(!1), v = M((w) => {
|
|
3402
3402
|
p(w);
|
|
3403
3403
|
}, []);
|
|
3404
3404
|
return P(() => {
|
|
3405
3405
|
p(t);
|
|
3406
3406
|
}, [t]), P(() => {
|
|
3407
|
-
c && c(
|
|
3408
|
-
}, [
|
|
3409
|
-
/* @__PURE__ */ s.jsxs(q.Select, { size: f, value: (
|
|
3407
|
+
c && c(h);
|
|
3408
|
+
}, [h, c]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(te, { withoutLabel: d ?? !1, label: l ?? "", hidden: u, className: g ? "shadow" : "", children: [
|
|
3409
|
+
/* @__PURE__ */ s.jsxs(q.Select, { size: f, value: (h == null ? void 0 : h.id) ?? "", onChange: (w) => p({
|
|
3410
3410
|
id: i ? Number(w.target.value) ?? null : w.target.value,
|
|
3411
3411
|
name: ""
|
|
3412
3412
|
}), onMouseDown: (w) => {
|
|
3413
3413
|
w.currentTarget.focus(), w.preventDefault();
|
|
3414
3414
|
}, onClick: () => {
|
|
3415
|
-
|
|
3416
|
-
}, hidden: u, disabled:
|
|
3415
|
+
m || x(!0);
|
|
3416
|
+
}, hidden: u, disabled: m, children: [
|
|
3417
3417
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3418
3418
|
t && /* @__PURE__ */ s.jsx("option", { value: t.id ?? void 0, children: t.name }),
|
|
3419
|
-
|
|
3419
|
+
h && /* @__PURE__ */ s.jsx("option", { value: h.id ?? void 0, children: h.name })
|
|
3420
3420
|
] }),
|
|
3421
|
-
/* @__PURE__ */ s.jsx(
|
|
3422
|
-
|
|
3421
|
+
/* @__PURE__ */ s.jsx(Gn, { show: g, onCancel: () => x(!1), items: e, currentSelection: h, onSelectionChange: (w) => {
|
|
3422
|
+
x(!1), v(w);
|
|
3423
3423
|
}, onClickSelectedItem: n, onSearchQueryChange: r, texts: o, isLoading: a })
|
|
3424
3424
|
] }) });
|
|
3425
3425
|
}, Ci = ({ formField: e, label: t, resetsFields: n, type: r, required: o, hidden: a, disabled: i }) => {
|
|
3426
3426
|
const { register: c, formState: l, setValue: d } = ee(), [f, u] = W(void 0);
|
|
3427
3427
|
return P(() => {
|
|
3428
|
-
const
|
|
3429
|
-
let
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
}), u(
|
|
3428
|
+
const m = e.split(".");
|
|
3429
|
+
let h = l.errors;
|
|
3430
|
+
m.forEach((p) => {
|
|
3431
|
+
h !== void 0 && (h = h[p]);
|
|
3432
|
+
}), u(h);
|
|
3433
3433
|
}, [l, e]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3434
3434
|
/* @__PURE__ */ s.jsx(q.Check, { id: `check-${e}`, type: r ?? "checkbox", label: `${t}${o ? " *" : ""}`, ...c(e, {
|
|
3435
3435
|
onChange: () => {
|
|
3436
|
-
n && n.forEach((
|
|
3436
|
+
n && n.forEach((m) => d(m, null));
|
|
3437
3437
|
}
|
|
3438
3438
|
}), isInvalid: f !== void 0, hidden: a, disabled: i }),
|
|
3439
3439
|
f && /* @__PURE__ */ s.jsx(se, { message: f.message })
|
|
3440
3440
|
] });
|
|
3441
3441
|
}, $i = ({ formField: e, options: t, resetsFields: n, required: r, disabled: o, hidden: a }) => {
|
|
3442
|
-
const { register: i, formState: c, getValues: l, setValue: d, watch: f } = ee(), [u,
|
|
3442
|
+
const { register: i, formState: c, getValues: l, setValue: d, watch: f } = ee(), [u, m] = W(void 0), h = L(() => t, [t]);
|
|
3443
3443
|
return P(() => {
|
|
3444
3444
|
const p = e.split(".");
|
|
3445
3445
|
let g = c.errors;
|
|
3446
|
-
p.forEach((
|
|
3447
|
-
g !== void 0 && (g = g[
|
|
3448
|
-
}),
|
|
3446
|
+
p.forEach((x) => {
|
|
3447
|
+
g !== void 0 && (g = g[x]);
|
|
3448
|
+
}), m(g);
|
|
3449
3449
|
}, [c, e]), P(() => {
|
|
3450
3450
|
d(e, l(e));
|
|
3451
|
-
}, [
|
|
3452
|
-
|
|
3451
|
+
}, [h, e, l, d]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3452
|
+
h.map((p) => /* @__PURE__ */ s.jsx(q.Check, { id: `radio-${p.id}`, label: `${p.name}${r ? " *" : ""}`, type: "radio", value: p.id ?? "", checked: f(e) === p.id, ...i(e, {
|
|
3453
3453
|
onChange: () => {
|
|
3454
3454
|
n && n.forEach((g) => d(g, null));
|
|
3455
3455
|
}
|
|
@@ -3457,78 +3457,81 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3457
3457
|
u && /* @__PURE__ */ s.jsx(se, { message: u.message })
|
|
3458
3458
|
] });
|
|
3459
3459
|
}, ki = ({ formField: e, label: t, resetsFields: n, options: r, isNumber: o, size: a, showClearIcon: i, clearValue: c, noSortOptions: l, required: d, hidden: f, disabled: u }) => {
|
|
3460
|
-
const { register:
|
|
3460
|
+
const { register: m, formState: h, getValues: p, setValue: g, watch: x } = ee(), [v, w] = W(void 0), b = L(() => r.sort((j, N) => l ? 0 : (j.name ?? "").localeCompare(N.name ?? "")), [r, l]), k = M(() => {
|
|
3461
3461
|
const j = c ?? null;
|
|
3462
3462
|
o ? g(e, j ? Number(j) : null) : g(e, (j == null ? void 0 : j.toString()) ?? "");
|
|
3463
3463
|
}, [c, o, g, e]);
|
|
3464
3464
|
return P(() => {
|
|
3465
3465
|
const j = e.split(".");
|
|
3466
|
-
let N =
|
|
3466
|
+
let N = h.errors;
|
|
3467
3467
|
j.forEach((_) => {
|
|
3468
3468
|
N !== void 0 && (N = N[_]);
|
|
3469
3469
|
}), w(N);
|
|
3470
|
-
}, [
|
|
3470
|
+
}, [h, e]), P(() => {
|
|
3471
3471
|
g(e, p(e));
|
|
3472
|
-
}, [
|
|
3473
|
-
/* @__PURE__ */ s.jsxs(q.Select, { size: a, ...
|
|
3472
|
+
}, [b, e, p, g]), /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(te, { label: `${t}${d ? " *" : ""}`, hidden: f, withoutLabel: !1, children: [
|
|
3473
|
+
/* @__PURE__ */ s.jsxs(q.Select, { size: a, ...m(e, {
|
|
3474
3474
|
setValueAs: (j) => o ? j ? parseInt(j, 10) : null : j == null || j === "" ? null : j,
|
|
3475
3475
|
onChange: () => {
|
|
3476
3476
|
n && n.forEach((j) => g(j, null));
|
|
3477
3477
|
}
|
|
3478
3478
|
}), isInvalid: v !== void 0, hidden: f, disabled: u, children: [
|
|
3479
3479
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3480
|
-
|
|
3480
|
+
b.map((j) => /* @__PURE__ */ s.jsx("option", { value: j.id ?? "", children: j.name }, j.id))
|
|
3481
3481
|
] }),
|
|
3482
|
-
i &&
|
|
3482
|
+
i && x(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick: k, children: /* @__PURE__ */ s.jsx(le, {}) }) }),
|
|
3483
3483
|
v && /* @__PURE__ */ s.jsx(se, { message: v.message, forFloating: !0 })
|
|
3484
3484
|
] }) });
|
|
3485
|
-
}, Ni = ({ formField: e, label: t, resetsFields: n, size: r, showClearIcon: o, clearValue: a, required: i, hidden: c, disabled: l }) => {
|
|
3486
|
-
const { register:
|
|
3487
|
-
const
|
|
3488
|
-
|
|
3489
|
-
}, [a,
|
|
3490
|
-
const
|
|
3491
|
-
let
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
}),
|
|
3495
|
-
}, [
|
|
3485
|
+
}, Ni = ({ formField: e, label: t, resetsFields: n, size: r, showClearIcon: o, clearValue: a, required: i, hidden: c, disabled: l, height: d }) => {
|
|
3486
|
+
const { register: f, formState: u, setValue: m, watch: h } = ee(), [p, g] = W(void 0), x = M(() => {
|
|
3487
|
+
const w = a ?? null;
|
|
3488
|
+
m(e, (w == null ? void 0 : w.toString()) ?? "");
|
|
3489
|
+
}, [a, m, e]), v = M(() => {
|
|
3490
|
+
const w = e.split(".");
|
|
3491
|
+
let b = u.errors;
|
|
3492
|
+
w.forEach((k) => {
|
|
3493
|
+
b !== void 0 && (b = b[k]);
|
|
3494
|
+
}), g(b);
|
|
3495
|
+
}, [u, e]);
|
|
3496
3496
|
return P(() => {
|
|
3497
|
-
|
|
3498
|
-
}, [
|
|
3499
|
-
/* @__PURE__ */ s.jsx(q.Control, { as: "textarea", size: r, ...
|
|
3497
|
+
v();
|
|
3498
|
+
}, [v]), /* @__PURE__ */ s.jsxs(te, { label: `${t}${i ? " *" : ""}`, hidden: c, withoutLabel: !1, children: [
|
|
3499
|
+
/* @__PURE__ */ s.jsx(q.Control, { as: "textarea", size: r, ...f(e, {
|
|
3500
3500
|
onChange: () => {
|
|
3501
|
-
n && n.forEach((
|
|
3501
|
+
n && n.forEach((w) => m(w, null));
|
|
3502
3502
|
}
|
|
3503
|
-
}), isInvalid:
|
|
3504
|
-
|
|
3505
|
-
|
|
3503
|
+
}), isInvalid: p !== void 0, hidden: c, disabled: l, style: {
|
|
3504
|
+
height: d ? `${d}px` : "auto",
|
|
3505
|
+
minHeight: d ? `${d}px` : "auto"
|
|
3506
|
+
} }),
|
|
3507
|
+
o && h(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, {}) }) }),
|
|
3508
|
+
p && /* @__PURE__ */ s.jsx(se, { message: p.message, forFloating: !0 })
|
|
3506
3509
|
] });
|
|
3507
3510
|
}, Ei = ({ type: e, formField: t, label: n, placeholder: r, size: o, resetsFields: a, showClearIcon: i, clearValue: c, required: l, hidden: d, disabled: f }) => {
|
|
3508
|
-
const { register: u, formState:
|
|
3509
|
-
const
|
|
3510
|
-
e === "number" ?
|
|
3511
|
-
}, [c, e,
|
|
3512
|
-
const
|
|
3513
|
-
let k =
|
|
3514
|
-
|
|
3511
|
+
const { register: u, formState: m, setValue: h, watch: p } = ee(), [g, x] = W(void 0), v = M(() => {
|
|
3512
|
+
const b = c ?? null;
|
|
3513
|
+
e === "number" ? h(t, b ? Number(b) : null) : h(t, (b == null ? void 0 : b.toString()) ?? "");
|
|
3514
|
+
}, [c, e, h, t]), w = M(() => {
|
|
3515
|
+
const b = t.split(".");
|
|
3516
|
+
let k = m.errors;
|
|
3517
|
+
b.forEach((j) => {
|
|
3515
3518
|
k !== void 0 && (k = k[j]);
|
|
3516
|
-
}),
|
|
3517
|
-
}, [
|
|
3519
|
+
}), x(k);
|
|
3520
|
+
}, [m, t]);
|
|
3518
3521
|
return P(() => {
|
|
3519
3522
|
w();
|
|
3520
3523
|
}, [w]), /* @__PURE__ */ s.jsxs(te, { label: `${n}${l ? " *" : ""}`, hidden: d, withoutLabel: !1, children: [
|
|
3521
3524
|
/* @__PURE__ */ s.jsx(q.Control, { type: e, placeholder: r ?? n, size: o, ...u(t, {
|
|
3522
|
-
setValueAs: (
|
|
3525
|
+
setValueAs: (b) => e === "number" ? b ? parseInt(b, 10) : null : b == null || b === "" ? null : b,
|
|
3523
3526
|
onChange: () => {
|
|
3524
|
-
a && a.forEach((
|
|
3527
|
+
a && a.forEach((b) => h(b, null));
|
|
3525
3528
|
}
|
|
3526
3529
|
}), isInvalid: g !== void 0, hidden: d, disabled: f }),
|
|
3527
3530
|
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: v, children: /* @__PURE__ */ s.jsx(le, {}) }) }),
|
|
3528
3531
|
g && /* @__PURE__ */ s.jsx(se, { message: g.message, forFloating: !0 })
|
|
3529
3532
|
] });
|
|
3530
|
-
}, Oi = ({ formField: e, label: t, size: n, defaultSelection: r, resetsFields: o, isNumber: a, required: i, hidden: c, disabled: l, items: d, onSearchQueryChange: f, onClickSelectedItem: u, texts:
|
|
3531
|
-
const { register: p, formState: g, setValue:
|
|
3533
|
+
}, Oi = ({ formField: e, label: t, size: n, defaultSelection: r, resetsFields: o, isNumber: a, required: i, hidden: c, disabled: l, items: d, onSearchQueryChange: f, onClickSelectedItem: u, texts: m, isLoading: h }) => {
|
|
3534
|
+
const { register: p, formState: g, setValue: x } = ee(), [v, w] = W(r), [b, k] = W(void 0), [j, N] = W(!1), [_, D] = W(!1), A = M(() => {
|
|
3532
3535
|
const y = e.split(".");
|
|
3533
3536
|
let O = g.errors;
|
|
3534
3537
|
y.forEach((F) => {
|
|
@@ -3539,11 +3542,11 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3539
3542
|
}, []);
|
|
3540
3543
|
return P(() => {
|
|
3541
3544
|
let y = null;
|
|
3542
|
-
a ? y = v != null && v.id ? parseInt(v.id.toString(), 10) : null : y = (v == null ? void 0 : v.id) === null || (v == null ? void 0 : v.id) === void 0 || v.id === "" ? null : v.id,
|
|
3545
|
+
a ? y = v != null && v.id ? parseInt(v.id.toString(), 10) : null : y = (v == null ? void 0 : v.id) === null || (v == null ? void 0 : v.id) === void 0 || v.id === "" ? null : v.id, x(e, y, {
|
|
3543
3546
|
shouldDirty: !0,
|
|
3544
3547
|
shouldValidate: _
|
|
3545
3548
|
});
|
|
3546
|
-
}, [v, e,
|
|
3549
|
+
}, [v, e, x, a, _]), P(() => {
|
|
3547
3550
|
A();
|
|
3548
3551
|
}, [A]), P(() => {
|
|
3549
3552
|
g.isSubmitted && D(!0);
|
|
@@ -3555,35 +3558,35 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3555
3558
|
}, ...p(e, {
|
|
3556
3559
|
setValueAs: (y) => a ? y ? parseInt(y, 10) : null : y == null || y === "" ? null : y,
|
|
3557
3560
|
onChange: () => {
|
|
3558
|
-
o && o.forEach((y) =>
|
|
3561
|
+
o && o.forEach((y) => x(y, null));
|
|
3559
3562
|
}
|
|
3560
|
-
}), isInvalid:
|
|
3563
|
+
}), isInvalid: b !== void 0, hidden: c, disabled: l, children: [
|
|
3561
3564
|
/* @__PURE__ */ s.jsx("option", { value: "" }),
|
|
3562
3565
|
r && /* @__PURE__ */ s.jsx("option", { value: r.id ?? "", children: r.name }),
|
|
3563
3566
|
v && /* @__PURE__ */ s.jsx("option", { value: v.id ?? "", children: v.name })
|
|
3564
3567
|
] }),
|
|
3565
|
-
|
|
3566
|
-
/* @__PURE__ */ s.jsx(
|
|
3568
|
+
b && /* @__PURE__ */ s.jsx(se, { message: b.message, forFloating: !0 }),
|
|
3569
|
+
/* @__PURE__ */ s.jsx(Gn, { show: j, onCancel: () => N(!1), items: d, currentSelection: v, onSelectionChange: (y) => {
|
|
3567
3570
|
N(!1), I(y);
|
|
3568
|
-
}, onClickSelectedItem: u, onSearchQueryChange: f, texts:
|
|
3571
|
+
}, onClickSelectedItem: u, onSearchQueryChange: f, texts: m, isLoading: h })
|
|
3569
3572
|
] }) });
|
|
3570
3573
|
}, _i = ({ label: e, formField: t, hidden: n, required: r, placeholder: o, disabled: a, showClearIcon: i, resetsFields: c, multiple: l, accept: d }) => {
|
|
3571
|
-
const { watch: f, setValue: u, register:
|
|
3574
|
+
const { watch: f, setValue: u, register: m, formState: h } = ee(), [p, g] = W(void 0), x = M(() => {
|
|
3572
3575
|
u(t, "");
|
|
3573
3576
|
}, [u, t]), v = M(() => {
|
|
3574
3577
|
const w = t.split(".");
|
|
3575
|
-
let
|
|
3578
|
+
let b = h.errors;
|
|
3576
3579
|
w.forEach((k) => {
|
|
3577
|
-
|
|
3578
|
-
}), g(
|
|
3579
|
-
}, [
|
|
3580
|
+
b !== void 0 && (b = b[k]);
|
|
3581
|
+
}), g(b);
|
|
3582
|
+
}, [h, t]);
|
|
3580
3583
|
return P(v, [v]), /* @__PURE__ */ s.jsxs(te, { label: `${e}${r ? "*" : ""}`, hidden: n, withoutLabel: !1, children: [
|
|
3581
|
-
/* @__PURE__ */ s.jsx(mn, { type: "file", multiple: l, accept: d.join(", "), placeholder: o ?? e, isInvalid: p !== void 0, hidden: n, disabled: a, ...
|
|
3584
|
+
/* @__PURE__ */ s.jsx(mn, { type: "file", multiple: l, accept: d.join(", "), placeholder: o ?? e, isInvalid: p !== void 0, hidden: n, disabled: a, ...m(t, {
|
|
3582
3585
|
onChange: () => {
|
|
3583
3586
|
c && c.forEach((w) => u(w, null));
|
|
3584
3587
|
}
|
|
3585
3588
|
}) }),
|
|
3586
|
-
i && f(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx("button", { type: "button", className: "icon-button", onClick:
|
|
3589
|
+
i && f(t) && /* @__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, {}) }) }),
|
|
3587
3590
|
p && /* @__PURE__ */ s.jsx(se, { message: p.message, forFloating: !0 })
|
|
3588
3591
|
] });
|
|
3589
3592
|
}, Ti = ({ children: e, onStorno: t }) => {
|
|
@@ -3596,14 +3599,14 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3596
3599
|
}, Di = ({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(xe, {}), className: n, children: r, ...o }) => /* @__PURE__ */ s.jsxs(ye.Item, { className: C(`btn luminus-dropdown-item rounded text-${e} ${n ?? ""}`, Xs.item), ...o, children: [
|
|
3597
3600
|
t,
|
|
3598
3601
|
r
|
|
3599
|
-
] }), Us = "
|
|
3602
|
+
] }), Us = "_button_1mv5p_1", zs = {
|
|
3600
3603
|
button: Us
|
|
3601
|
-
}, Si =
|
|
3604
|
+
}, Si = H.forwardRef(({ color: e = "primary", icon: t = /* @__PURE__ */ s.jsx(or, { size: 18 }), text: n, onClick: r, className: o, children: a, ...i }, c) => /* @__PURE__ */ s.jsxs("button", { type: "button", ref: c, onClick: (l) => {
|
|
3602
3605
|
l.preventDefault(), r(l);
|
|
3603
3606
|
}, "aria-label": "dropdown toggle", className: C(`btn luminus-context-button text-${e} ${o ?? ""}`, zs.button), ...i, children: [
|
|
3604
3607
|
t,
|
|
3605
3608
|
n
|
|
3606
|
-
] })), Mi =
|
|
3609
|
+
] })), Mi = H.forwardRef(({ userName: e, onClick: t, children: n }, r) => /* @__PURE__ */ s.jsxs("button", { type: "button", ref: r, onClick: (o) => {
|
|
3607
3610
|
o.preventDefault(), t(o);
|
|
3608
3611
|
}, "aria-label": "User avatar toggle", className: "m-0 p-0", style: {
|
|
3609
3612
|
backgroundColor: "transparent",
|
|
@@ -3614,7 +3617,7 @@ const qs = "_input-group_1512b_1", Bs = "_input-group-text_1512b_5", Gs = "_inpu
|
|
|
3614
3617
|
n
|
|
3615
3618
|
] })), Ii = (e) => /* @__PURE__ */ s.jsx(ye.Toggle, { ...e }), Js = "_dropdown_1lk66_1", Zs = {
|
|
3616
3619
|
dropdown: Js
|
|
3617
|
-
}, Pi = ({ toggle: e, children: t }) => /* @__PURE__ */ s.jsxs(ye, { children: [
|
|
3620
|
+
}, Pi = ({ toggle: e, children: t, ...n }) => /* @__PURE__ */ s.jsxs(ye, { ...n, children: [
|
|
3618
3621
|
e,
|
|
3619
3622
|
/* @__PURE__ */ s.jsx(ye.Menu, { className: C("luminus-dropdown rounded shadow", Zs.dropdown), children: t })
|
|
3620
3623
|
] }), Fi = ({ cell: { value: e } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e ? /* @__PURE__ */ s.jsx(Vn, { name: e, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), ei = "_tabs_13chm_1", ti = {
|
|
@@ -3649,7 +3652,7 @@ export {
|
|
|
3649
3652
|
fi as MonthPicker,
|
|
3650
3653
|
ot as PrimaryButton,
|
|
3651
3654
|
yi as SelectInput,
|
|
3652
|
-
|
|
3655
|
+
Gn as SimplePicker,
|
|
3653
3656
|
Si as SimpleToggle,
|
|
3654
3657
|
qi as SimpleTooltip,
|
|
3655
3658
|
Ri as Tab,
|