react-luminus-components 1.2.87 → 1.2.89
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/main.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as s, c as x, t as re, a as ie, g as sr, T as ar, b as ir, s as vt, E as cr, d as lr, e as ur, f as dr, h as hr, u as V, i as de, k as Ut, F as bt, l as mr, m as fr, n as pr, o as gr, p as wr, q as xr, r as yr, v as vr, w as it, x as zt, y as br, z as _r, A as we, B as jr, C as kr, P as Qe, D as ct, S as _t, G as De, H as Pe, I as lt, J as Cr, K as Kt, L as Ne, M as qe, O as jt, N as Nr, Q as oe, R as $r, U as Ir, V as Qt, W as ut, X as dt, Y as z, Z as Sr, _ as Xt, $ as Tr, a0 as Jt, a1 as Er, a2 as Or, a3 as Mr, a4 as Dr, a5 as Zt, a6 as xe, a7 as Pr, a8 as Ar, a9 as Fr, aa as Wr, ab as Rr, ac as Xe, ad as Te, ae as en, af as ye, ag as qr } from "./NoInputContainer-DRb1v547.js";
|
|
2
|
-
import { ai as
|
|
2
|
+
import { ai as pl, ah as gl } from "./NoInputContainer-DRb1v547.js";
|
|
3
3
|
import * as A from "react";
|
|
4
4
|
import Z, { useCallback as E, useMemo as Q, useEffect as M, useRef as Y, useState as D, useReducer as tn, useContext as q, Component as Lr, isValidElement as Yr, Suspense as Br, createElement as Hr } from "react";
|
|
5
5
|
import { c as le, d as Gr, C as Vr, a as nn, u as Ur, q as kt, F as zr, b as rn, E as Ae, P as Ct, M as Fe, L as Kr } from "./PrimaryButton-DG9AgtYX.js";
|
|
6
6
|
import { m as Qr, a as on } from "./latinize-3MO2uNV7.js";
|
|
7
7
|
import { useFormContext as he, Controller as sn } from "react-hook-form";
|
|
8
8
|
import { u as an, a as cn, b as ln } from "./useFormControlType-BAFqxupC.js";
|
|
9
|
-
import { S as
|
|
9
|
+
import { S as xl } from "./SimpleTooltip-DJdq14h2.js";
|
|
10
10
|
import { s as Xr } from "./searchUtils--egT-ac7.js";
|
|
11
|
-
const
|
|
11
|
+
const Ac = ({ fileLoader: n, fileName: e, children: t }) => {
|
|
12
12
|
const r = E(async () => {
|
|
13
13
|
var l;
|
|
14
14
|
const o = await n();
|
|
@@ -2813,27 +2813,20 @@ function Da({ interactionType: n, username: e, homeAccountId: t, localAccountId:
|
|
|
2813
2813
|
}
|
|
2814
2814
|
return h ? Z.createElement(Z.Fragment, null, Nr(l, d)) : a && u.inProgress !== Ne.None ? Z.createElement(a, { ...u }) : null;
|
|
2815
2815
|
}
|
|
2816
|
-
const Pa =
|
|
2817
|
-
"submit-container": "_submit-container_a9slg_1",
|
|
2818
|
-
submitContainer: Pa,
|
|
2819
|
-
spacer: Aa
|
|
2820
|
-
}, Fa = ({ children: n, onStorno: e }) => {
|
|
2816
|
+
const Pa = ({ children: n, onStorno: e }) => {
|
|
2821
2817
|
const { formSubmitTexts: t } = q(oe);
|
|
2822
|
-
return /* @__PURE__ */ s.jsxs(
|
|
2823
|
-
/* @__PURE__ */ s.
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
/* @__PURE__ */ s.jsx(Ir, {}),
|
|
2831
|
-
t.storno
|
|
2832
|
-
] })
|
|
2818
|
+
return /* @__PURE__ */ s.jsxs(jc, { children: [
|
|
2819
|
+
/* @__PURE__ */ s.jsxs(Ct, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
2820
|
+
/* @__PURE__ */ s.jsx($r, {}),
|
|
2821
|
+
n
|
|
2822
|
+
] }),
|
|
2823
|
+
e && /* @__PURE__ */ s.jsxs(Ct, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
2824
|
+
/* @__PURE__ */ s.jsx(Ir, {}),
|
|
2825
|
+
t.storno
|
|
2833
2826
|
] })
|
|
2834
2827
|
] });
|
|
2835
|
-
},
|
|
2836
|
-
button:
|
|
2828
|
+
}, Aa = "_button_1r3i0_1", st = {
|
|
2829
|
+
button: Aa
|
|
2837
2830
|
}, at = ({
|
|
2838
2831
|
color: n = "primary",
|
|
2839
2832
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
@@ -2861,12 +2854,12 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2861
2854
|
] }),
|
|
2862
2855
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
|
|
2863
2856
|
] });
|
|
2864
|
-
},
|
|
2857
|
+
}, Fa = "_icon-button_15e26_1", Wa = "_sm_15e26_14", Ra = "_md_15e26_23", qa = "_lg_15e26_32", Re = {
|
|
2865
2858
|
"icon-button": "_icon-button_15e26_1",
|
|
2866
|
-
iconButton:
|
|
2867
|
-
sm:
|
|
2868
|
-
md:
|
|
2869
|
-
lg:
|
|
2859
|
+
iconButton: Fa,
|
|
2860
|
+
sm: Wa,
|
|
2861
|
+
md: Ra,
|
|
2862
|
+
lg: qa
|
|
2870
2863
|
}, X = ({ type: n = "button", color: e = "primary", size: t = "md", children: r, className: o, ...a }) => {
|
|
2871
2864
|
const { LinkComponent: i } = q(oe);
|
|
2872
2865
|
return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: x(`luminus-icon-button btn text-${e} ${o ?? ""}`, Re.iconButton, Re[t]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
|
|
@@ -2878,7 +2871,7 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2878
2871
|
children: r
|
|
2879
2872
|
}
|
|
2880
2873
|
) : null;
|
|
2881
|
-
},
|
|
2874
|
+
}, Fc = ({ month: n, onChangeMonth: e, locale: t }) => {
|
|
2882
2875
|
const r = E((o) => {
|
|
2883
2876
|
e(un(n, o));
|
|
2884
2877
|
}, [n, e]);
|
|
@@ -2887,7 +2880,7 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2887
2880
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "LLLL yyyy", { locale: t }) }),
|
|
2888
2881
|
/* @__PURE__ */ s.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2889
2882
|
] });
|
|
2890
|
-
},
|
|
2883
|
+
}, Wc = ({ year: n, onChangeYear: e, locale: t }) => {
|
|
2891
2884
|
const r = E((o) => {
|
|
2892
2885
|
e(no(n, o));
|
|
2893
2886
|
}, [n, e]);
|
|
@@ -2896,20 +2889,20 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2896
2889
|
/* @__PURE__ */ s.jsx("div", { children: fn(n, "yyyy", { locale: t }) }),
|
|
2897
2890
|
/* @__PURE__ */ s.jsx(X, { onClick: () => r(1), children: /* @__PURE__ */ s.jsx(dt, {}) })
|
|
2898
2891
|
] });
|
|
2899
|
-
},
|
|
2900
|
-
widget:
|
|
2901
|
-
},
|
|
2892
|
+
}, La = "_widget_etgh3_1", Ya = {
|
|
2893
|
+
widget: La
|
|
2894
|
+
}, Ba = ({ show: n, widgets: e, handleClose: t, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(Fe, { show: n, onHide: () => t(), children: [
|
|
2902
2895
|
/* @__PURE__ */ s.jsx(Fe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(Fe.Title, { children: o.pickWidgetToAdd }) }),
|
|
2903
2896
|
/* @__PURE__ */ s.jsx(Fe.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(z, { variant: "body", children: a.name }) })) }) })
|
|
2904
|
-
] }),
|
|
2897
|
+
] }), Rt = ({ availableWidgets: n, onAdd: e, texts: t }) => {
|
|
2905
2898
|
const [r, o] = D(!1);
|
|
2906
2899
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2907
|
-
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget",
|
|
2908
|
-
/* @__PURE__ */ s.jsx(
|
|
2900
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-empty-widget", Ya.widget), children: /* @__PURE__ */ s.jsx(X, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(Sr, {}) }) }),
|
|
2901
|
+
/* @__PURE__ */ s.jsx(Ba, { show: r, widgets: n, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2909
2902
|
o(!1), e(a);
|
|
2910
2903
|
}, texts: t })
|
|
2911
2904
|
] });
|
|
2912
|
-
},
|
|
2905
|
+
}, Ha = (n) => {
|
|
2913
2906
|
const [e, t] = D({ widgets: [] });
|
|
2914
2907
|
M(() => {
|
|
2915
2908
|
const o = localStorage.getItem("dashboardConfig");
|
|
@@ -2919,24 +2912,24 @@ const Pa = "_submit-container_a9slg_1", Aa = "_spacer_a9slg_14", Rt = {
|
|
|
2919
2912
|
t(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2920
2913
|
}, []);
|
|
2921
2914
|
return { dashboardConfig: e, onChangeDashboardConfig: r };
|
|
2922
|
-
},
|
|
2923
|
-
dashboard:
|
|
2915
|
+
}, Ga = "_dashboard_16plm_1", Va = "_widgets-grid_16plm_1", Ua = "_widget-wrapper_16plm_8", za = "_full-width_16plm_13", Ka = "_widget-edit_16plm_16", Qa = "_remove-icon_16plm_19", Xa = "_full-width-icon_16plm_26", Ja = "_widget-edit-overlay_16plm_36", ae = {
|
|
2916
|
+
dashboard: Ga,
|
|
2924
2917
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2925
|
-
widgetsGrid:
|
|
2918
|
+
widgetsGrid: Va,
|
|
2926
2919
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2927
|
-
widgetWrapper:
|
|
2920
|
+
widgetWrapper: Ua,
|
|
2928
2921
|
"full-width": "_full-width_16plm_13",
|
|
2929
|
-
fullWidth:
|
|
2922
|
+
fullWidth: za,
|
|
2930
2923
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2931
|
-
widgetEdit:
|
|
2924
|
+
widgetEdit: Ka,
|
|
2932
2925
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2933
|
-
removeIcon:
|
|
2926
|
+
removeIcon: Qa,
|
|
2934
2927
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2935
|
-
fullWidthIcon:
|
|
2928
|
+
fullWidthIcon: Xa,
|
|
2936
2929
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2937
|
-
widgetEditOverlay:
|
|
2930
|
+
widgetEditOverlay: Ja
|
|
2938
2931
|
};
|
|
2939
|
-
class
|
|
2932
|
+
class Za extends Lr {
|
|
2940
2933
|
constructor(e) {
|
|
2941
2934
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2942
2935
|
}
|
|
@@ -2963,18 +2956,18 @@ class ti extends Lr {
|
|
|
2963
2956
|
] }) : t;
|
|
2964
2957
|
}
|
|
2965
2958
|
}
|
|
2966
|
-
const
|
|
2959
|
+
const ei = (n) => (t) => {
|
|
2967
2960
|
const { errorBoundaryTexts: r } = q(oe);
|
|
2968
2961
|
return /* @__PURE__ */ s.jsx(n, { texts: r, ...t });
|
|
2969
|
-
},
|
|
2962
|
+
}, ti = ei(Za), ni = "_widget-card_e9tsb_1", ri = {
|
|
2970
2963
|
"widget-card": "_widget-card_e9tsb_1",
|
|
2971
|
-
widgetCard:
|
|
2972
|
-
},
|
|
2964
|
+
widgetCard: ni
|
|
2965
|
+
}, qt = ({ children: n, title: e, headerContent: t }) => /* @__PURE__ */ s.jsx(ic, { className: x(ri.widgetCard, "luminus-widget"), title: e, headerContent: t, contentClassName: "h-100 overflow-auto", children: n }), oi = ({ children: n, title: e }) => {
|
|
2973
2966
|
const { widgetTexts: t } = q(oe);
|
|
2974
|
-
return /* @__PURE__ */ s.jsx(
|
|
2975
|
-
},
|
|
2967
|
+
return /* @__PURE__ */ s.jsx(ti, { fallback: /* @__PURE__ */ s.jsx(qt, { title: e, children: t.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(Br, { fallback: /* @__PURE__ */ s.jsx(qt, { title: e, children: /* @__PURE__ */ s.jsx(Jr, {}) }), children: n }) });
|
|
2968
|
+
}, Rc = ({ availableWidgets: n, editMode: e, defaultDashboardConfig: t }) => {
|
|
2976
2969
|
var d;
|
|
2977
|
-
const { homeDashboardTexts: r } = q(oe), { dashboardConfig: o, onChangeDashboardConfig: a } =
|
|
2970
|
+
const { homeDashboardTexts: r } = q(oe), { dashboardConfig: o, onChangeDashboardConfig: a } = Ha(t), i = E((h, m) => {
|
|
2978
2971
|
var g, b;
|
|
2979
2972
|
h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
|
|
2980
2973
|
...o,
|
|
@@ -3002,7 +2995,7 @@ const ni = (n) => (t) => {
|
|
|
3002
2995
|
/* @__PURE__ */ s.jsx(X, { color: "danger", onClick: () => l(m), className: x(ae.removeIcon), children: /* @__PURE__ */ s.jsx(Xt, {}) }),
|
|
3003
2996
|
/* @__PURE__ */ s.jsx(X, { color: g ? "danger" : "primary", onClick: () => c(m), className: x(ae.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Tr, {}) })
|
|
3004
2997
|
] }),
|
|
3005
|
-
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(
|
|
2998
|
+
h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetWrapper, children: /* @__PURE__ */ s.jsx(Rt, { availableWidgets: n, onAdd: (b) => i(m, b), texts: r }) }) : /* @__PURE__ */ s.jsx(oi, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
|
|
3006
2999
|
h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ae.widgetEditOverlay })
|
|
3007
3000
|
] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
|
|
3008
3001
|
e,
|
|
@@ -3014,43 +3007,43 @@ const ni = (n) => (t) => {
|
|
|
3014
3007
|
]);
|
|
3015
3008
|
return /* @__PURE__ */ s.jsx("div", { className: ae.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ae.widgetsGrid, children: [
|
|
3016
3009
|
(d = o.widgets) == null ? void 0 : d.map((h, m) => u(n.find((g) => g.id === h.widgetId), m, h.fullWidth)),
|
|
3017
|
-
e && /* @__PURE__ */ s.jsx(
|
|
3010
|
+
e && /* @__PURE__ */ s.jsx(Rt, { availableWidgets: n, onAdd: (h) => {
|
|
3018
3011
|
var m;
|
|
3019
3012
|
return i((m = o.widgets) == null ? void 0 : m.length, h);
|
|
3020
3013
|
}, texts: r })
|
|
3021
3014
|
] }) });
|
|
3022
|
-
},
|
|
3023
|
-
badge:
|
|
3024
|
-
sm:
|
|
3025
|
-
md:
|
|
3026
|
-
lg:
|
|
3027
|
-
},
|
|
3015
|
+
}, si = "_badge_nhser_1", ai = "_sm_nhser_1", ii = "_md_nhser_4", ci = "_lg_nhser_7", Lt = {
|
|
3016
|
+
badge: si,
|
|
3017
|
+
sm: ai,
|
|
3018
|
+
md: ii,
|
|
3019
|
+
lg: ci
|
|
3020
|
+
}, qc = ({ children: n, color: e = "primary", size: t = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: x(`luminus-badge badge bg-${e} ${r ?? ""}`, Lt.badge, Lt[t]), children: n }), li = "_collapse-icon_1ahhn_1", ui = "_collapsed_1ahhn_6", Yt = {
|
|
3028
3021
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3029
|
-
collapseIcon:
|
|
3030
|
-
collapsed:
|
|
3031
|
-
},
|
|
3022
|
+
collapseIcon: li,
|
|
3023
|
+
collapsed: ui
|
|
3024
|
+
}, Lc = ({ title: n, children: e, className: t, ...r }) => {
|
|
3032
3025
|
const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = D(o), l = r.controlled ? r.isOpen : a;
|
|
3033
3026
|
return M(() => {
|
|
3034
3027
|
i(o);
|
|
3035
3028
|
}, [o]), /* @__PURE__ */ s.jsxs("div", { className: t ?? "", children: [
|
|
3036
3029
|
/* @__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: [
|
|
3037
3030
|
/* @__PURE__ */ s.jsx(z, { variant: "h6", children: n }),
|
|
3038
|
-
/* @__PURE__ */ s.jsx(Jt, { className: x(
|
|
3039
|
-
[
|
|
3031
|
+
/* @__PURE__ */ s.jsx(Jt, { className: x(Yt.collapseIcon, {
|
|
3032
|
+
[Yt.collapsed]: l
|
|
3040
3033
|
}) })
|
|
3041
3034
|
] }),
|
|
3042
3035
|
/* @__PURE__ */ s.jsx(pn, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
|
|
3043
3036
|
/* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
|
|
3044
3037
|
] });
|
|
3045
|
-
},
|
|
3046
|
-
feedback:
|
|
3038
|
+
}, di = "_feedback_esh1j_1", hi = "_feedback-spacer_esh1j_8", Bt = {
|
|
3039
|
+
feedback: di,
|
|
3047
3040
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
3048
|
-
feedbackSpacer:
|
|
3041
|
+
feedbackSpacer: hi
|
|
3049
3042
|
}, ve = ({ message: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3050
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback",
|
|
3051
|
-
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer",
|
|
3043
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback luminus-invalid-feedback", Bt.feedback), children: n }),
|
|
3044
|
+
/* @__PURE__ */ s.jsx("div", { className: x("invalid-feedback-spacer", Bt.feedbackSpacer), children: n })
|
|
3052
3045
|
] });
|
|
3053
|
-
function
|
|
3046
|
+
function mi(n, e, t) {
|
|
3054
3047
|
var r = this, o = Y(null), a = Y(0), i = Y(null), l = Y([]), c = Y(), u = Y(), d = Y(n), h = Y(!0);
|
|
3055
3048
|
d.current = n;
|
|
3056
3049
|
var m = typeof window < "u", g = !e && e !== 0 && m;
|
|
@@ -3106,39 +3099,39 @@ function pi(n, e, t) {
|
|
|
3106
3099
|
}, [b, f, e, v, w, g, m, _]);
|
|
3107
3100
|
return p;
|
|
3108
3101
|
}
|
|
3109
|
-
function
|
|
3102
|
+
function fi(n, e) {
|
|
3110
3103
|
return n === e;
|
|
3111
3104
|
}
|
|
3112
|
-
function
|
|
3105
|
+
function pi(n, e) {
|
|
3113
3106
|
return e;
|
|
3114
3107
|
}
|
|
3115
3108
|
function er(n, e, t) {
|
|
3116
|
-
var r =
|
|
3109
|
+
var r = fi, o = tn(pi, n), a = o[0], i = o[1], l = mi(E(function(u) {
|
|
3117
3110
|
return i(u);
|
|
3118
3111
|
}, [i]), e, t), c = Y(n);
|
|
3119
3112
|
return r(c.current, n) || (l(n), c.current = n), [a, l];
|
|
3120
3113
|
}
|
|
3121
|
-
const
|
|
3122
|
-
wrapper:
|
|
3123
|
-
open:
|
|
3124
|
-
dropdown:
|
|
3114
|
+
const gi = "_wrapper_uccrb_1", wi = "_open_uccrb_9", xi = "_dropdown_uccrb_13", yi = "_search-input-container_uccrb_19", vi = "_search-input_uccrb_19", bi = "_loading-container_uccrb_25", _i = "_items-container_uccrb_32", ji = "_header-row_uccrb_38", ki = "_item_uccrb_32", Ci = "_name_uccrb_57", Ni = "_column-item_uccrb_62", $i = "_icon_uccrb_66", Ii = "_clear-button_uccrb_74", J = {
|
|
3115
|
+
wrapper: gi,
|
|
3116
|
+
open: wi,
|
|
3117
|
+
dropdown: xi,
|
|
3125
3118
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
3126
|
-
searchInputContainer:
|
|
3119
|
+
searchInputContainer: yi,
|
|
3127
3120
|
"search-input": "_search-input_uccrb_19",
|
|
3128
|
-
searchInput:
|
|
3121
|
+
searchInput: vi,
|
|
3129
3122
|
"loading-container": "_loading-container_uccrb_25",
|
|
3130
|
-
loadingContainer:
|
|
3123
|
+
loadingContainer: bi,
|
|
3131
3124
|
"items-container": "_items-container_uccrb_32",
|
|
3132
|
-
itemsContainer:
|
|
3125
|
+
itemsContainer: _i,
|
|
3133
3126
|
"header-row": "_header-row_uccrb_38",
|
|
3134
|
-
headerRow:
|
|
3135
|
-
item:
|
|
3136
|
-
name:
|
|
3127
|
+
headerRow: ji,
|
|
3128
|
+
item: ki,
|
|
3129
|
+
name: Ci,
|
|
3137
3130
|
"column-item": "_column-item_uccrb_62",
|
|
3138
|
-
columnItem:
|
|
3139
|
-
icon:
|
|
3131
|
+
columnItem: Ni,
|
|
3132
|
+
icon: $i,
|
|
3140
3133
|
"clear-button": "_clear-button_uccrb_74",
|
|
3141
|
-
clearButton:
|
|
3134
|
+
clearButton: Ii
|
|
3142
3135
|
}, yt = ({ show: n, onCancel: e, items: t, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: g = !1, inputRef: b }) => {
|
|
3143
3136
|
var S;
|
|
3144
3137
|
const w = Y(null), f = Y(null), _ = Y(null), [v, p] = D(""), [C] = er(v, 500), [, k] = D(!1), y = (S = b.current) == null ? void 0 : S.getBoundingClientRect(), $ = (y == null ? void 0 : y.x) ?? 0, P = ((y == null ? void 0 : y.x) ?? 0) + ((y == null ? void 0 : y.width) ?? 0), I = (y == null ? void 0 : y.y) ?? 0, N = ((y == null ? void 0 : y.y) ?? 0) + ((y == null ? void 0 : y.height) ?? 0), j = (y == null ? void 0 : y.width) ?? 0, T = (y == null ? void 0 : y.height) ?? 0, F = 5, W = Q(() => $ ? $ > window.innerWidth / 2 : !1, [$]), B = Q(() => I ? I > window.innerHeight / 2 : !1, [I]);
|
|
@@ -3205,12 +3198,12 @@ const xi = "_wrapper_uccrb_1", yi = "_open_uccrb_9", vi = "_dropdown_uccrb_13",
|
|
|
3205
3198
|
] }) }) })
|
|
3206
3199
|
] });
|
|
3207
3200
|
};
|
|
3208
|
-
function
|
|
3201
|
+
function Si(n) {
|
|
3209
3202
|
return Er({ 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: [] }] })(n);
|
|
3210
3203
|
}
|
|
3211
|
-
const
|
|
3212
|
-
item:
|
|
3213
|
-
},
|
|
3204
|
+
const Ti = "_item_1dy8x_1", tr = {
|
|
3205
|
+
item: Ti
|
|
3206
|
+
}, Ei = ({
|
|
3214
3207
|
color: n = "primary",
|
|
3215
3208
|
// icon = <MdOutlineArrowOutward />,
|
|
3216
3209
|
icon: e,
|
|
@@ -3220,7 +3213,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3220
3213
|
}) => /* @__PURE__ */ s.jsxs(Se.Item, { className: x(`btn luminus-dropdown-item text-nowrap rounded text-${n} ${t ?? ""}`, tr.item), ...o, children: [
|
|
3221
3214
|
e,
|
|
3222
3215
|
r
|
|
3223
|
-
] }),
|
|
3216
|
+
] }), Oi = (n) => /* @__PURE__ */ s.jsx(Se.Toggle, { ...n }), Yc = ({ color: n = "primary", icon: e = /* @__PURE__ */ s.jsx(Qt, { size: 12 }), inputId: t = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
|
|
3224
3217
|
const u = (d) => {
|
|
3225
3218
|
d.target.files && (o(d.target.files), d.target.value = "");
|
|
3226
3219
|
};
|
|
@@ -3231,24 +3224,24 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3231
3224
|
] }),
|
|
3232
3225
|
/* @__PURE__ */ s.jsx("input", { id: t, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
|
|
3233
3226
|
] });
|
|
3234
|
-
},
|
|
3235
|
-
divider:
|
|
3236
|
-
},
|
|
3237
|
-
dropdown:
|
|
3238
|
-
},
|
|
3227
|
+
}, Mi = "_divider_1e6rk_1", Di = {
|
|
3228
|
+
divider: Mi
|
|
3229
|
+
}, Bc = ({ className: n }) => /* @__PURE__ */ s.jsx(Se.Divider, { className: x("luminus-dropdown-divider", n, Di.divider) }), Pi = "_dropdown_1lk66_1", Ai = {
|
|
3230
|
+
dropdown: Pi
|
|
3231
|
+
}, Fi = ({ toggle: n, children: e, ...t }) => /* @__PURE__ */ s.jsxs(Se, { ...t, children: [
|
|
3239
3232
|
n,
|
|
3240
|
-
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow",
|
|
3241
|
-
] }),
|
|
3242
|
-
dropdown:
|
|
3243
|
-
open:
|
|
3233
|
+
/* @__PURE__ */ s.jsx(Se.Menu, { className: x("luminus-dropdown rounded shadow", Ai.dropdown), children: e })
|
|
3234
|
+
] }), Wi = ({ searchTypes: n, selectedType: e, setSelectedType: t }) => /* @__PURE__ */ s.jsx(Fi, { toggle: /* @__PURE__ */ s.jsx(Oi, { as: Or, icon: null, text: e == null ? void 0 : e.text }), children: n.map((r) => /* @__PURE__ */ s.jsx(Ei, { icon: null, onClick: () => t(r), children: r.text }, r.key)) }), Ri = "_dropdown_1ddrg_1", qi = "_open_1ddrg_12", Li = "_loading-container_1ddrg_15", Yi = "_groups-container_1ddrg_22", Bi = "_group_1ddrg_22", Hi = "_header_1ddrg_26", Gi = "_item_1ddrg_33", me = {
|
|
3235
|
+
dropdown: Ri,
|
|
3236
|
+
open: qi,
|
|
3244
3237
|
"loading-container": "_loading-container_1ddrg_15",
|
|
3245
|
-
loadingContainer:
|
|
3238
|
+
loadingContainer: Li,
|
|
3246
3239
|
"groups-container": "_groups-container_1ddrg_22",
|
|
3247
|
-
groupsContainer:
|
|
3248
|
-
group:
|
|
3249
|
-
header:
|
|
3250
|
-
item:
|
|
3251
|
-
},
|
|
3240
|
+
groupsContainer: Yi,
|
|
3241
|
+
group: Bi,
|
|
3242
|
+
header: Hi,
|
|
3243
|
+
item: Gi
|
|
3244
|
+
}, Vi = ({ show: n, query: e, onCancel: t, groups: r, isLoading: o, searchTypes: a }) => {
|
|
3252
3245
|
const { LinkComponent: i, appSearchTexts: l } = q(oe), c = Y(null), u = E((d) => {
|
|
3253
3246
|
var m;
|
|
3254
3247
|
const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
|
|
@@ -3284,17 +3277,17 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3284
3277
|
))
|
|
3285
3278
|
] }, d.key.category);
|
|
3286
3279
|
}) }) });
|
|
3287
|
-
},
|
|
3280
|
+
}, Ui = "_input-group_1lkfy_1", zi = "_input-group-text_1lkfy_5", Ki = "_left_1lkfy_9", Qi = "_right_1lkfy_13", Xi = "_input_1lkfy_1", Ji = "_submit-button_1lkfy_20", fe = {
|
|
3288
3281
|
"input-group": "_input-group_1lkfy_1",
|
|
3289
|
-
inputGroup:
|
|
3282
|
+
inputGroup: Ui,
|
|
3290
3283
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
3291
|
-
inputGroupText:
|
|
3292
|
-
left:
|
|
3293
|
-
right:
|
|
3294
|
-
input:
|
|
3284
|
+
inputGroupText: zi,
|
|
3285
|
+
left: Ki,
|
|
3286
|
+
right: Qi,
|
|
3287
|
+
input: Xi,
|
|
3295
3288
|
"submit-button": "_submit-button_1lkfy_20",
|
|
3296
|
-
submitButton:
|
|
3297
|
-
},
|
|
3289
|
+
submitButton: Ji
|
|
3290
|
+
}, Zi = (n, e) => {
|
|
3298
3291
|
const t = Dr(), [r, o] = D(!1), [a, i] = D([]), l = !n || !n.key, c = E(() => {
|
|
3299
3292
|
if (e.length < 3) {
|
|
3300
3293
|
i([]);
|
|
@@ -3309,32 +3302,32 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3309
3302
|
return M(() => {
|
|
3310
3303
|
c();
|
|
3311
3304
|
}, [c]), { isLoading: r, searchItems: a };
|
|
3312
|
-
},
|
|
3313
|
-
const { appSearchTexts: t } = q(oe), [r, o] = D(n.length > 0 ? n[0] : null), [a, i] = D(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } =
|
|
3305
|
+
}, Hc = ({ searchTypes: n, navigateFunction: e }) => {
|
|
3306
|
+
const { appSearchTexts: t } = q(oe), [r, o] = D(n.length > 0 ? n[0] : null), [a, i] = D(""), [l, c] = er(a, 500), { isLoading: u, searchItems: d } = Zi(r, l), [h, m] = D(!1);
|
|
3314
3307
|
return M(() => {
|
|
3315
3308
|
(d.length > 0 || u) && m(!0);
|
|
3316
3309
|
}, [d, u]), /* @__PURE__ */ s.jsx(ee, { onSubmit: (g) => {
|
|
3317
3310
|
g.preventDefault(), g.stopPropagation(), c.flush(), m(!1), a.length > 2 && e(`/search?query=${a}${r && r.key && `&type=${r == null ? void 0 : r.key}`}`);
|
|
3318
3311
|
}, children: /* @__PURE__ */ s.jsxs(et, { className: fe.inputGroup, children: [
|
|
3319
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(
|
|
3312
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-1 rounded", fe.inputGroupText, fe.left), children: /* @__PURE__ */ s.jsx(Wi, { searchTypes: n, selectedType: r, setSelectedType: o }) }),
|
|
3320
3313
|
/* @__PURE__ */ s.jsx(ee.Control, { placeholder: t.searchPlaceholder, type: "text", size: "sm", className: x("luminus-app-search-input", fe.input), value: a, onChange: (g) => {
|
|
3321
3314
|
var b;
|
|
3322
3315
|
return i(((b = g.target) == null ? void 0 : b.value) ?? "");
|
|
3323
3316
|
}, onFocus: () => d.length > 0 && m(!0) }),
|
|
3324
|
-
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(
|
|
3325
|
-
/* @__PURE__ */ s.jsx(
|
|
3317
|
+
/* @__PURE__ */ s.jsx(et.Text, { className: x("p-0 rounded", fe.inputGroupText, fe.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: x("text-primary", fe.submitButton), children: /* @__PURE__ */ s.jsx(Si, {}) }) }),
|
|
3318
|
+
/* @__PURE__ */ s.jsx(Vi, { query: l, searchTypes: n, show: h, onCancel: () => m(!1), groups: d, isLoading: u })
|
|
3326
3319
|
] }) });
|
|
3327
|
-
},
|
|
3328
|
-
card:
|
|
3329
|
-
header:
|
|
3320
|
+
}, ec = "_card_19733_1", tc = "_header_19733_6", nc = "_header-content_19733_13", rc = "_title_19733_19", oc = "_collapse-icon_19733_22", sc = "_collapsed_19733_27", ac = "_content_19733_30", pe = {
|
|
3321
|
+
card: ec,
|
|
3322
|
+
header: tc,
|
|
3330
3323
|
"header-content": "_header-content_19733_13",
|
|
3331
|
-
headerContent:
|
|
3332
|
-
title:
|
|
3324
|
+
headerContent: nc,
|
|
3325
|
+
title: rc,
|
|
3333
3326
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
3334
|
-
collapseIcon:
|
|
3335
|
-
collapsed:
|
|
3336
|
-
content:
|
|
3337
|
-
},
|
|
3327
|
+
collapseIcon: oc,
|
|
3328
|
+
collapsed: sc,
|
|
3329
|
+
content: ac
|
|
3330
|
+
}, ic = ({ title: n, headerContent: e, children: t, className: r, headerClassName: o, contentClassName: a, ...i }) => {
|
|
3338
3331
|
const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = D(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
|
|
3339
3332
|
return M(() => {
|
|
3340
3333
|
u(l);
|
|
@@ -3358,28 +3351,28 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3358
3351
|
[a ?? ""]: a
|
|
3359
3352
|
}), children: t }) })
|
|
3360
3353
|
] });
|
|
3361
|
-
},
|
|
3362
|
-
lightbox:
|
|
3363
|
-
show:
|
|
3364
|
-
header:
|
|
3354
|
+
}, cc = "_lightbox_14acg_1", lc = "_show_14acg_16", uc = "_header_14acg_20", dc = "_photo-actions_14acg_26", hc = "_photo-container_14acg_31", mc = "_photo_14acg_26", fc = "_nav-button_14acg_41", pc = "_photos-preview_14acg_49", gc = "_selected_14acg_62", wc = "_default-indicator_14acg_66", ne = {
|
|
3355
|
+
lightbox: cc,
|
|
3356
|
+
show: lc,
|
|
3357
|
+
header: uc,
|
|
3365
3358
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3366
|
-
photoActions:
|
|
3359
|
+
photoActions: dc,
|
|
3367
3360
|
"photo-container": "_photo-container_14acg_31",
|
|
3368
|
-
photoContainer:
|
|
3369
|
-
photo:
|
|
3361
|
+
photoContainer: hc,
|
|
3362
|
+
photo: mc,
|
|
3370
3363
|
"nav-button": "_nav-button_14acg_41",
|
|
3371
|
-
navButton:
|
|
3364
|
+
navButton: fc,
|
|
3372
3365
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3373
|
-
photosPreview:
|
|
3374
|
-
selected:
|
|
3366
|
+
photosPreview: pc,
|
|
3367
|
+
selected: gc,
|
|
3375
3368
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3376
|
-
defaultIndicator:
|
|
3377
|
-
},
|
|
3378
|
-
backdrop:
|
|
3379
|
-
show:
|
|
3380
|
-
}, nr = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop",
|
|
3381
|
-
[
|
|
3382
|
-
}), onClick: () => e && e() }),
|
|
3369
|
+
defaultIndicator: wc
|
|
3370
|
+
}, xc = "_backdrop_3huvf_1", yc = "_show_3huvf_11", Ht = {
|
|
3371
|
+
backdrop: xc,
|
|
3372
|
+
show: yc
|
|
3373
|
+
}, nr = ({ show: n, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-backdrop", Ht.backdrop, {
|
|
3374
|
+
[Ht.show]: n
|
|
3375
|
+
}), onClick: () => e && e() }), vc = ({ show: n, onClose: e, photos: t, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l }) => {
|
|
3383
3376
|
const c = Y(null), [u, d] = D(r), h = t.at(u), m = u > 0, g = u < t.length - 1;
|
|
3384
3377
|
M(() => {
|
|
3385
3378
|
n && d(r);
|
|
@@ -3435,7 +3428,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3435
3428
|
] })) })
|
|
3436
3429
|
] })
|
|
3437
3430
|
] });
|
|
3438
|
-
},
|
|
3431
|
+
}, Gc = ({ photos: n, onUploadPhotos: e, uploadPhotosText: t, photoActions: r }) => {
|
|
3439
3432
|
const [o, a] = D(null), i = o !== null ? n[o] : null, [l, c] = D(!1);
|
|
3440
3433
|
return M(() => {
|
|
3441
3434
|
if (n.length === 0) {
|
|
@@ -3455,20 +3448,20 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3455
3448
|
onClick: () => c(!0)
|
|
3456
3449
|
}
|
|
3457
3450
|
),
|
|
3458
|
-
/* @__PURE__ */ s.jsx(
|
|
3451
|
+
/* @__PURE__ */ s.jsx(vc, { show: l, onClose: () => c(!1), photos: n, defaultIndex: o ?? 0, uploadPhotosText: t, onUploadPhotos: e, photoActions: r })
|
|
3459
3452
|
] }) : e ? /* @__PURE__ */ s.jsx(Zn, { accept: ".jpg,.jpeg,.png", onUpload: (u) => {
|
|
3460
3453
|
u.length > 0 && e(Array.from(u));
|
|
3461
3454
|
}, icon: /* @__PURE__ */ s.jsx(Zt, { style: { fontSize: 18 } }), multiple: !0, children: t ?? null }) : null;
|
|
3462
|
-
},
|
|
3455
|
+
}, Vc = ({ appAccessPermissions: n, children: e }) => {
|
|
3463
3456
|
const { NavigateComponent: t } = q(oe), { useMsal: r, msalScopes: o } = q(Ar), { isAuthenticated: a } = Fr(), { user: i, loggingInProgress: l } = q(Wr), c = i && (n == null ? void 0 : n.every((u) => {
|
|
3464
3457
|
var d;
|
|
3465
3458
|
return (d = i.permissions) == null ? void 0 : d.includes(u);
|
|
3466
3459
|
}));
|
|
3467
3460
|
return r ? /* @__PURE__ */ s.jsx(Da, { interactionType: qe.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(Kr, {}) : i ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(t, { to: "/no-user-login", replace: !0 }) }) : !a() || !i ? /* @__PURE__ */ s.jsx(t, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(t, { to: "/user-not-permitted", replace: !0 });
|
|
3468
|
-
},
|
|
3461
|
+
}, Uc = (n) => {
|
|
3469
3462
|
const { variant: e, children: t, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...n };
|
|
3470
3463
|
return /* @__PURE__ */ s.jsx(ws, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(z, { variant: a, children: t }) });
|
|
3471
|
-
},
|
|
3464
|
+
}, zc = ({ version: n }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
|
|
3472
3465
|
position: "fixed",
|
|
3473
3466
|
right: "0px",
|
|
3474
3467
|
bottom: "0px",
|
|
@@ -3479,7 +3472,14 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3479
3472
|
}, children: /* @__PURE__ */ s.jsxs(z, { variant: "caption", className: "w-100 text-end", children: [
|
|
3480
3473
|
"verze ",
|
|
3481
3474
|
n
|
|
3482
|
-
] }) }),
|
|
3475
|
+
] }) }), bc = "_submit-container_a9slg_1", _c = "_spacer_a9slg_14", Gt = {
|
|
3476
|
+
"submit-container": "_submit-container_a9slg_1",
|
|
3477
|
+
submitContainer: bc,
|
|
3478
|
+
spacer: _c
|
|
3479
|
+
}, jc = ({ children: n }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3480
|
+
/* @__PURE__ */ s.jsx("div", { className: Gt.spacer }),
|
|
3481
|
+
/* @__PURE__ */ s.jsx("div", { className: x("luminus-floating-action-container shadow", Gt.submitContainer), children: n })
|
|
3482
|
+
] }), Kc = ({ heading: n, content: e, placement: t, children: r, trigger: o }) => /* @__PURE__ */ s.jsx(Rr, { placement: t, overlay: /* @__PURE__ */ s.jsxs(Xe, { className: "luminus-popover", children: [
|
|
3483
3483
|
/* @__PURE__ */ s.jsx(Xe.Header, { children: typeof n == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: n }) : n }),
|
|
3484
3484
|
/* @__PURE__ */ s.jsx(Xe.Body, { children: e })
|
|
3485
3485
|
] }), trigger: o ?? "hover", rootClose: !0, children: r }), rr = ({ currentSelection: n, selectedItemNavigateTo: e, children: t }) => {
|
|
@@ -3488,10 +3488,10 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3488
3488
|
return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: t });
|
|
3489
3489
|
const o = e(n);
|
|
3490
3490
|
return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: t });
|
|
3491
|
-
},
|
|
3491
|
+
}, Qc = ({ InputContainer: n = Te, label: e, value: t, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(n, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(ee.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: t, onChange: (u) => {
|
|
3492
3492
|
var d;
|
|
3493
3493
|
r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
|
|
3494
|
-
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
3494
|
+
}, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Xc = ({ InputContainer: n = Te, type: e, value: t, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: b, step: w }) => {
|
|
3495
3495
|
const f = e === "number", _ = E(() => {
|
|
3496
3496
|
if (!r)
|
|
3497
3497
|
return;
|
|
@@ -3519,7 +3519,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3519
3519
|
/* @__PURE__ */ s.jsx(ee.Control, { type: I, placeholder: l ?? a, size: c, value: o ? p : t ?? "", onChange: y, className: b ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: () => P(!0), onBlur: () => P(!1), step: w }),
|
|
3520
3520
|
h && t && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3521
3521
|
] });
|
|
3522
|
-
},
|
|
3522
|
+
}, Jc = ({
|
|
3523
3523
|
InputContainer: n = Te,
|
|
3524
3524
|
value: e,
|
|
3525
3525
|
options: t,
|
|
@@ -3556,7 +3556,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3556
3556
|
] }),
|
|
3557
3557
|
d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: w, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3558
3558
|
] });
|
|
3559
|
-
},
|
|
3559
|
+
}, Zc = ({ InputContainer: n = Te, items: e, defaultSelection: t, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: g, hidden: b, disabled: w, displayIdAsName: f, CustomOnChangeComponent: _, className: v }) => {
|
|
3560
3560
|
var T, F;
|
|
3561
3561
|
const [p, C] = D(t), [k, y] = D(!1);
|
|
3562
3562
|
M(() => {
|
|
@@ -3598,7 +3598,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3598
3598
|
] }),
|
|
3599
3599
|
I.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: e, currentSelection: p, onSelectionChange: P, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: g, isLoading: i, disabled: w, inputRef: I })
|
|
3600
3600
|
] }) });
|
|
3601
|
-
},
|
|
3601
|
+
}, el = ({ InputContainer: n = Te, value: e, onChange: t, label: r, size: o, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: m }) => {
|
|
3602
3602
|
const g = E(() => {
|
|
3603
3603
|
if (!t)
|
|
3604
3604
|
return;
|
|
@@ -3624,7 +3624,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3624
3624
|
/* @__PURE__ */ s.jsx(ee.Control, { as: "textarea", size: o, value: h ? w : e ?? "", onChange: v, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
|
|
3625
3625
|
a && e && t && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(xe, {}) }) })
|
|
3626
3626
|
] });
|
|
3627
|
-
},
|
|
3627
|
+
}, tl = ({ InputContainer: n = ye, formField: e, label: t, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
|
|
3628
3628
|
const { register: d, formState: h, setValue: m } = he(), [g, b] = D(void 0), [w, f] = D(!1);
|
|
3629
3629
|
M(() => {
|
|
3630
3630
|
const v = e.split(".");
|
|
@@ -3644,7 +3644,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3644
3644
|
}), isInvalid: _, hidden: i, disabled: l, className: "w-100" }),
|
|
3645
3645
|
g && /* @__PURE__ */ s.jsx(ve, { message: g.message })
|
|
3646
3646
|
] });
|
|
3647
|
-
},
|
|
3647
|
+
}, nl = ({ InputContainer: n = ye, label: e, formField: t, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
|
|
3648
3648
|
const { register: u, formState: d, setValue: h, watch: m } = he(), [g, b] = D(void 0), [w, f] = D(!1), _ = Q(() => r, [r]);
|
|
3649
3649
|
M(() => {
|
|
3650
3650
|
const p = t.split(".");
|
|
@@ -3664,7 +3664,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3664
3664
|
}), isInvalid: v, hidden: l, disabled: i, className: "w-100" }, p.id)),
|
|
3665
3665
|
g && /* @__PURE__ */ s.jsx(ve, { message: g.message })
|
|
3666
3666
|
] });
|
|
3667
|
-
},
|
|
3667
|
+
}, rl = ({ InputContainer: n = ye, formField: e, label: t, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: g }) => {
|
|
3668
3668
|
const { register: b, formState: w, setValue: f, watch: _ } = he(), [v, p] = D(void 0), [C, k] = D(!1), y = E(() => {
|
|
3669
3669
|
const I = i ?? null;
|
|
3670
3670
|
f(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: C });
|
|
@@ -3691,7 +3691,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3691
3691
|
a && _(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3692
3692
|
v && /* @__PURE__ */ s.jsx(ve, { message: v.message })
|
|
3693
3693
|
] });
|
|
3694
|
-
},
|
|
3694
|
+
}, ol = ({ InputContainer: n = ye, type: e, formField: t, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: g, step: b, CustomOnChangeComponent: w, className: f }) => {
|
|
3695
3695
|
const { register: _, formState: v, setValue: p, watch: C } = he(), [k, y] = D(void 0), [$, P] = D(!1), I = E(() => {
|
|
3696
3696
|
const R = c ?? null;
|
|
3697
3697
|
e === "number" ? p(t, R !== null ? Number(R) : null, {
|
|
@@ -3727,7 +3727,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3727
3727
|
l && C(t) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3728
3728
|
k && /* @__PURE__ */ s.jsx(ve, { message: k.message })
|
|
3729
3729
|
] });
|
|
3730
|
-
},
|
|
3730
|
+
}, sl = ({ InputContainer: n = ye, formField: e, label: t, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: g, dropdownItemsNameWidth: b, isLoading: w, withoutLabel: f, additionalColumns: _, CustomOnChangeComponent: v, displayIdAsName: p, className: C }) => {
|
|
3731
3731
|
const { formState: k, setValue: y, watch: $, control: P } = he(), [I, N] = D(void 0), [j, T] = D(!1), [F, W] = D(!1), B = $(e) ?? null, R = B === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : $(`${e}-DropdownName`), G = Q(() => B == null ? null : { id: B ?? null, name: R ?? "" }, [B, R]), se = E(() => {
|
|
3732
3732
|
const H = e.split(".");
|
|
3733
3733
|
let ce = k.errors;
|
|
@@ -3782,7 +3782,7 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3782
3782
|
I && /* @__PURE__ */ s.jsx(ve, { message: I.message }),
|
|
3783
3783
|
O.current && /* @__PURE__ */ s.jsx(yt, { show: j, onCancel: S, items: d, currentSelection: G, onSelectionChange: U, onSearchQueryChange: h, texts: g, itemsNameWidth: b, additionalColumns: _, displayIdAsName: p, isLoading: w, disabled: u, inputRef: O })
|
|
3784
3784
|
] }) });
|
|
3785
|
-
},
|
|
3785
|
+
}, al = ({ InputContainer: n = ye, label: e, formField: t, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
|
|
3786
3786
|
const { watch: g, setValue: b, register: w, formState: f } = he(), [_, v] = D(!1), [p, C] = D(void 0), k = E(() => {
|
|
3787
3787
|
b(t, "");
|
|
3788
3788
|
}, [b, t]), y = E(() => {
|
|
@@ -3805,12 +3805,12 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3805
3805
|
l && g(t) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(X, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ s.jsx(xe, {}) }) }),
|
|
3806
3806
|
p && /* @__PURE__ */ s.jsx(ve, { message: p.message })
|
|
3807
3807
|
] });
|
|
3808
|
-
},
|
|
3808
|
+
}, il = ({ children: n, onStorno: e }) => {
|
|
3809
3809
|
const { formState: t } = he(), [r, o] = D(!1);
|
|
3810
3810
|
return M(() => {
|
|
3811
3811
|
o(Object.keys(t.dirtyFields).length > 0);
|
|
3812
|
-
}, [t]), r ? /* @__PURE__ */ s.jsx(
|
|
3813
|
-
},
|
|
3812
|
+
}, [t]), r ? /* @__PURE__ */ s.jsx(Pa, { onStorno: e, children: n }) : null;
|
|
3813
|
+
}, cl = ({ InputContainer: n = ye, options: e, formField: t, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: g }) => {
|
|
3814
3814
|
const { customSelectTexts: b } = q(oe), { formState: w, setValue: f, watch: _, control: v } = he(), [p, C] = D(void 0), [k, y] = D(!1), [$, P] = D(!1), [I, N] = D(""), j = _(t), T = Q(() => e.find((S) => S.id === j) ?? null, [e, j]), F = E(() => {
|
|
3815
3815
|
const S = t.split(".");
|
|
3816
3816
|
let O = w.errors;
|
|
@@ -3859,13 +3859,13 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3859
3859
|
p && /* @__PURE__ */ s.jsx(ve, { message: p.message }),
|
|
3860
3860
|
te.current && /* @__PURE__ */ s.jsx(yt, { show: k, onCancel: () => y(!1), items: se, currentSelection: T ?? null, onSelectionChange: B, onSearchQueryChange: R, texts: b, disabled: u, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
3861
3861
|
] }) });
|
|
3862
|
-
},
|
|
3862
|
+
}, ll = ({ cell: { value: n } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: n ? /* @__PURE__ */ s.jsx(qr, { name: n, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), kc = "_tab-panel_qgi9v_1", Cc = "_full-height-no-overflow_qgi9v_5", Nc = "_disabled_qgi9v_10", nt = {
|
|
3863
3863
|
"tab-panel": "_tab-panel_qgi9v_1",
|
|
3864
|
-
tabPanel:
|
|
3864
|
+
tabPanel: kc,
|
|
3865
3865
|
"full-height-no-overflow": "_full-height-no-overflow_qgi9v_5",
|
|
3866
|
-
fullHeightNoOverflow:
|
|
3867
|
-
disabled:
|
|
3868
|
-
},
|
|
3866
|
+
fullHeightNoOverflow: Cc,
|
|
3867
|
+
disabled: Nc
|
|
3868
|
+
}, ul = ({ eventKey: n, activeTab: e, fullHeightNoOverflow: t, disabled: r, className: o, children: a }) => n !== e ? null : /* @__PURE__ */ s.jsx("div", { className: x("luminus-tab-panel", nt.tabPanel, { [nt.fullHeightNoOverflow]: t }, { disabled: r }, { [nt.disabled]: r }, o), children: a }), dl = ({ activeTab: n, onSelect: e, children: t }) => /* @__PURE__ */ s.jsx("div", { className: x("luminus-tabs d-flex gap-1 mb-2"), children: t.map((r) => {
|
|
3869
3869
|
const o = r.type, a = r.props;
|
|
3870
3870
|
if (!a)
|
|
3871
3871
|
return null;
|
|
@@ -3873,66 +3873,67 @@ const Oi = "_item_1dy8x_1", tr = {
|
|
|
3873
3873
|
return /* @__PURE__ */ Hr(o, { ...a, key: a.eventKey, className: x({ active: n === i }, c), onClick: () => {
|
|
3874
3874
|
e(i), u && u(i);
|
|
3875
3875
|
} }, l);
|
|
3876
|
-
}) }),
|
|
3877
|
-
tab:
|
|
3878
|
-
disabled:
|
|
3879
|
-
},
|
|
3876
|
+
}) }), $c = "_tab_1hdhk_1", Ic = "_disabled_1hdhk_8", Vt = {
|
|
3877
|
+
tab: $c,
|
|
3878
|
+
disabled: Ic
|
|
3879
|
+
}, hl = ({ eventKey: n, className: e, onClick: t, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: x("luminus-tab text-primary rounded", Vt.tab, e, {
|
|
3880
3880
|
disabled: r
|
|
3881
3881
|
}, { [Vt.disabled]: r }), onClick: () => t && !r && t(n), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(z, { variant: "h6", className: "text-primary", children: o }) : o });
|
|
3882
3882
|
export {
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3883
|
+
Uc as Alert,
|
|
3884
|
+
Ac as ApiFileDownloadButton,
|
|
3885
|
+
Hc as AppSearch,
|
|
3886
|
+
Vc as AuthTemplate,
|
|
3887
3887
|
qr as AvatarIcon,
|
|
3888
3888
|
nr as Backdrop,
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3889
|
+
qc as Badge,
|
|
3890
|
+
ic as Card,
|
|
3891
|
+
Qc as CheckInput,
|
|
3892
|
+
Lc as Collapse,
|
|
3893
3893
|
at as ContextButton,
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3894
|
+
Fi as Dropdown,
|
|
3895
|
+
Bc as DropdownDivider,
|
|
3896
|
+
Ei as DropdownItem,
|
|
3897
|
+
Zc as DropdownPicker,
|
|
3898
|
+
Oi as DropdownToggle,
|
|
3899
3899
|
Zn as FileUploadContextButton,
|
|
3900
|
-
|
|
3901
|
-
|
|
3900
|
+
Yc as FileUploadDropdownItem,
|
|
3901
|
+
jc as FloatingActionContainer,
|
|
3902
|
+
Pa as FloatingFormSubmit,
|
|
3902
3903
|
Te as FloatingLabelInput,
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3904
|
+
Rc as HomeDashboard,
|
|
3905
|
+
tl as HookFormCheckInput,
|
|
3906
|
+
sl as HookFormDropdownPicker,
|
|
3907
|
+
al as HookFormFileInput,
|
|
3908
|
+
il as HookFormFloatingSubmit,
|
|
3909
|
+
nl as HookFormRadioInput,
|
|
3910
|
+
cl as HookFormSelectInput,
|
|
3911
|
+
rl as HookFormTextAreaInput,
|
|
3912
|
+
ol as HookFormTextInput,
|
|
3913
|
+
Kc as HtmlTooltip,
|
|
3913
3914
|
X as IconButton,
|
|
3914
3915
|
ve as InvalidFeedback,
|
|
3915
3916
|
Kr as Loading,
|
|
3916
3917
|
Jr as LoadingBlock,
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3918
|
+
Fc as MonthPicker,
|
|
3919
|
+
pl as NoInputContainer,
|
|
3920
|
+
Gc as PhotoLibrary,
|
|
3921
|
+
vc as PhotoLightbox,
|
|
3921
3922
|
Ct as PrimaryButton,
|
|
3922
3923
|
ye as RowLabelInput,
|
|
3923
|
-
|
|
3924
|
+
Jc as SelectInput,
|
|
3924
3925
|
yt as SimplePicker,
|
|
3925
3926
|
Or as SimpleToggle,
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3927
|
+
xl as SimpleTooltip,
|
|
3928
|
+
hl as Tab,
|
|
3929
|
+
ul as TabPanel,
|
|
3930
|
+
dl as Tabs,
|
|
3931
|
+
el as TextAreaInput,
|
|
3932
|
+
Xc as TextInput,
|
|
3932
3933
|
z as Typography,
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3934
|
+
gl as UserAvatarToggle,
|
|
3935
|
+
ll as UserAvatarValueFormat,
|
|
3936
|
+
zc as VersionInfo,
|
|
3937
|
+
qt as WidgetCard,
|
|
3938
|
+
Wc as YearPicker
|
|
3938
3939
|
};
|