react-luminus-components 1.3.32 → 1.3.34
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/README.md +0 -6
- package/dist/.vite/manifest.json +60 -60
- package/dist/FromToDatePickerDropdownToggle-DhzBIJXw.cjs +253 -0
- package/dist/{FromToDatePickerDropdownToggle-DDOxJCc2.js → FromToDatePickerDropdownToggle-Dk7MFcJp.js} +2761 -2615
- package/dist/{PrimaryButton-B64e5vBv.js → PrimaryButton-Bbl06m-g.js} +135 -145
- package/dist/PrimaryButton-D33g-RWP.cjs +1 -0
- package/dist/{SimpleTooltip-DIqIPx0H.cjs → SimpleTooltip-Bz22xxXa.cjs} +1 -1
- package/dist/{SimpleTooltip-BgRjtr0d.js → SimpleTooltip-C32Faxrc.js} +1 -1
- package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +2 -1
- package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
- package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +1 -0
- package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +2 -1
- package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +5 -4
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +2 -1
- package/dist/components/Form/CheckInput/CheckInput.d.ts +2 -2
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +2 -2
- package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +2 -2
- package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -2
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +2 -2
- package/dist/components/Form/TextInput/TextInput.d.ts +2 -2
- package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +2 -2
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +2 -2
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +3 -2
- package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +2 -2
- package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +1 -0
- package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +2 -2
- package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +2 -2
- package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +2 -2
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +2 -2
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +2 -2
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +22 -23
- package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +2 -2
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +22 -23
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +22 -23
- package/dist/components/Layout/MessageBoard/MessageBoard.d.ts +2 -1
- package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +2 -2
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +2 -2
- package/dist/components/NewTabs/Tab/Tab.d.ts +1 -0
- package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
- package/dist/components/NewTabs/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/comps/Tab/Tab.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +1 -0
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -0
- package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
- package/dist/components/common/Alert/Alert.d.ts +1 -1
- package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
- package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +2 -1
- package/dist/components/common/AppSearch/AppSearch.d.ts +2 -2
- package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +2 -2
- package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +3 -2
- package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +2 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +2 -1
- package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
- package/dist/components/common/Badge/Badge.d.ts +0 -1
- package/dist/components/common/Card/Card.d.ts +0 -1
- package/dist/components/common/Collapse/Collapse.d.ts +0 -1
- package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
- package/dist/components/common/FromToDatePicker/FromToDatePicker.d.ts +3 -2
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +2 -1
- package/dist/components/common/FromToDatePicker/hooks/useFromToDatePicker.d.ts +2 -1
- package/dist/components/common/FromToDatePicker/utils/utilsFromToDatePicker.d.ts +1 -0
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +3 -3
- package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +2 -2
- package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +2 -2
- package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +2 -1
- package/dist/components/common/ImgApi/ImgApi.d.ts +2 -2
- package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +2 -2
- package/dist/components/common/ImgDirect/ImgDirect.d.ts +2 -2
- package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
- package/dist/components/common/Loading/Loading.d.ts +0 -1
- package/dist/components/common/Loading/LoadingBlock.d.ts +1 -0
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +1 -1
- package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +2 -2
- package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +2 -2
- package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
- package/dist/components/common/Timeline/Timeline.d.ts +2 -2
- package/dist/components/common/Typography/Typography.d.ts +0 -1
- package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
- package/dist/components/common/Widget/WidgetCard.d.ts +1 -0
- package/dist/components/common/Widget/WidgetWrapper.d.ts +1 -0
- package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
- package/dist/contexts/auth/AuthContext.d.ts +3 -3
- package/dist/contexts/auth/AuthProvider.d.ts +2 -2
- package/dist/contexts/confirm/ConfirmContext.d.ts +1 -2
- package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
- package/dist/contexts/delegation/DelegationContext.d.ts +3 -2
- package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
- package/dist/contexts/loading/LoadingContext.d.ts +1 -2
- package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +3 -16
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +4 -17
- package/dist/contexts/prompt/PromptContext.d.ts +3 -3
- package/dist/contexts/prompt/PromptProvider.d.ts +1 -0
- package/dist/contexts/user/UserContext.d.ts +4 -4
- package/dist/contexts/user/UserProvider.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.d.ts +1 -257
- package/dist/contexts.es.js +129 -158
- package/dist/{dateUtils-C8trxO28.js → dateUtils-B9-rf1Eh.js} +11 -21
- package/dist/{dateUtils-ChS-y8JY.cjs → dateUtils-Bs39Qj7k.cjs} +1 -1
- package/dist/hooks/useAxios/useAxios.d.ts +2 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
- package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +3 -3
- package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +1 -2
- package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
- package/dist/hooks/usePrompt/usePrompt.d.ts +2 -1
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +2 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.d.ts +1 -162
- package/dist/hooks.es.js +22 -22
- package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +2 -2
- package/dist/layout/MainContainer/MainContainer.d.ts +2 -2
- package/dist/layout/PageTitle/PageTitle.d.ts +1 -0
- package/dist/layout/SideContentBar/SideContentBar.d.ts +1 -0
- package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -2
- package/dist/layout/SideMenu/SideMenu.d.ts +2 -2
- package/dist/layout/TopBar/TopBar.d.ts +0 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.d.ts +1 -56
- package/dist/layout.es.js +92 -95
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +1149 -1171
- package/dist/models/luminus-context-types/ILocalizationContext.d.ts +1 -0
- package/dist/models/prop-types/ContainerProps.d.ts +1 -0
- package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +1 -0
- package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +3 -2
- package/dist/models/prop-types/ImgProps.d.ts +1 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
- package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +5 -5
- package/dist/models/prop-types/InputProps/FileInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +3 -2
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +3 -2
- package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +2 -2
- package/dist/models/texts/ComponentsContextTexts.d.ts +21 -2
- package/dist/models/texts/ErrorBoundaryTexts.d.ts +1 -0
- package/dist/models/types/ApiErrorResult.d.ts +2 -1
- package/dist/models/types/DashboardConfig.d.ts +2 -1
- package/dist/models/types/DashboardWidget.d.ts +2 -1
- package/dist/models/types/DropdownPickerOption.d.ts +2 -1
- package/dist/models/types/HookFormInputProps.d.ts +2 -1
- package/dist/models/types/MenuItemType.d.ts +0 -1
- package/dist/models/types/MenuItemTypeExtended.d.ts +2 -1
- package/dist/models/types/PhotoAction.d.ts +0 -1
- package/dist/models/types/SearchResultGroupModel.d.ts +3 -2
- package/dist/models/types/SearchResultModel.d.ts +2 -1
- package/dist/models/types/TimelineStep.d.ts +2 -2
- package/dist/models/types/UserLoginState.d.ts +3 -2
- package/dist/models/types/UserModel.d.ts +2 -1
- package/dist/{searchUtils-C38WM_G8.js → searchUtils-BCxOKHVq.js} +1 -1
- package/dist/{searchUtils-BdYnxcy0.cjs → searchUtils-CxNriHg_.cjs} +1 -1
- package/dist/{useLocalStorageState-asgEpnUg.cjs → useLocalStorageState-3ebV2Hf5.cjs} +1 -1
- package/dist/{useLocalStorageState-CFe9QRz0.js → useLocalStorageState-Cs1tOpr1.js} +3 -3
- package/dist/{usePermissions-Ce0AAKj1.cjs → usePermissions-BZPN1OT2.cjs} +1 -1
- package/dist/{usePermissions-55of2QBH.js → usePermissions-CfJgVLTi.js} +3 -3
- package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +2 -1
- package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
- package/dist/utils/hookForm/hookFormUtils.d.ts +2 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +1 -153
- package/dist/utils.es.js +7 -7
- package/package.json +2 -2
- package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +0 -253
- package/dist/PrimaryButton-BnrFH2PB.cjs +0 -1
package/dist/main.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as r, c as g, t as Z, a as
|
|
2
|
-
import { ak as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { c as he, d as
|
|
6
|
-
import { InteractionType as
|
|
7
|
-
import { MsalAuthenticationTemplate as
|
|
1
|
+
import { j as r, c as g, t as Z, a as Se, m as Pr, b as Vr, d as zr, s as Yr, e as Gr, f as Ur, g as Kr, h as qr, i as Qr, k as Jr, l as Xr, T as cn, n as dn, o as St, E as Zr, p as un, q as dt, r as fn, u as es, v as A, w as ue, x as pn, F as st, y as ts, z as ns, A as rs, B as ss, C as os, D as as, G as ls, H as cs, I as ut, J as hn, K as mn, L as is, M as $e, N as ds, O as us, P as Ne, Q as fs, R as Ke, S as Y, U as ce, V as ps, W as hs, X as gn, Y as ft, Z as pt, _ as Ce, $ as fe, a0 as xn, a1 as ht, a2 as xe, a3 as vn, a4 as mt, a5 as ms, a6 as jn, a7 as gs, a8 as wn, a9 as xs, aa as vs, ab as yn, ac as js, ad as ws, ae as ys, af as _s, ag as bs, ah as Ns, ai as Et, aj as $s } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
|
|
2
|
+
import { ak as pi } from "./FromToDatePickerDropdownToggle-Dk7MFcJp.js";
|
|
3
|
+
import * as O from "react";
|
|
4
|
+
import oe, { useCallback as D, useMemo as z, useEffect as T, useRef as V, useState as E, useReducer as _n, useContext as W, createElement as ks, Component as Cs, isValidElement as Ds, Suspense as Is } from "react";
|
|
5
|
+
import { c as he, d as ze, C as Ss, a as bn, u as Es, q as Ot, F as Os, b as Nn, A as Ms, M as Fs, B as Ts, e as Rs, g as Bs, P as Mt, f as Te, L as Ft } from "./PrimaryButton-Bbl06m-g.js";
|
|
6
|
+
import { InteractionType as Ls } from "@azure/msal-browser";
|
|
7
|
+
import { MsalAuthenticationTemplate as As } from "@azure/msal-react";
|
|
8
8
|
import "zod";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { s as
|
|
12
|
-
import { S as
|
|
13
|
-
import { u as
|
|
14
|
-
import
|
|
15
|
-
import { s as
|
|
16
|
-
const
|
|
17
|
-
const s =
|
|
9
|
+
import { Link as ke, Navigate as Re } from "react-router-dom";
|
|
10
|
+
import { useFormContext as pe, Controller as $n } from "react-hook-form";
|
|
11
|
+
import { s as Tt, g as Rt, d as Le, f as Ee, p as Hs, t as ge, a as Ws, b as Ps } from "./dateUtils-B9-rf1Eh.js";
|
|
12
|
+
import { S as Vs } from "./SimpleTooltip-C32Faxrc.js";
|
|
13
|
+
import { u as kn, a as Cn, b as Dn } from "./useFormControlType-oJGqgThz.js";
|
|
14
|
+
import He from "react-dom";
|
|
15
|
+
import { s as zs } from "./searchUtils-BCxOKHVq.js";
|
|
16
|
+
const Sc = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
17
|
+
const s = D(async () => {
|
|
18
18
|
var i, c;
|
|
19
19
|
const o = await t();
|
|
20
20
|
if (!o)
|
|
@@ -23,18 +23,17 @@ const Dc = ({ fileLoader: t, fileName: e, children: n }) => {
|
|
|
23
23
|
l.href = a, l.setAttribute("download", e), (i = document.body) == null || i.appendChild(l), l.click(), (c = document.body) == null || c.removeChild(l);
|
|
24
24
|
}, [t, e]);
|
|
25
25
|
return /* @__PURE__ */ r.jsx("div", { role: "button", onClick: s, children: n });
|
|
26
|
-
},
|
|
26
|
+
}, Ys = ({ className: t, ...e }) => /* @__PURE__ */ r.jsxs("div", { className: g("luminus-loading", he.loading, he.loadingBlock, he.loadingBlock), ...e, children: [
|
|
27
27
|
/* @__PURE__ */ r.jsx("div", { className: g("spinner-grow", he.spinnerGrow, "text-primary"), role: "status" }),
|
|
28
28
|
/* @__PURE__ */ r.jsx("div", { className: g("spinner-grow", he.spinnerGrow, "text-primary", he.second), role: "status" }),
|
|
29
29
|
/* @__PURE__ */ r.jsx("div", { className: g("spinner-grow", he.spinnerGrow, "text-primary", he.third), role: "status" })
|
|
30
30
|
] });
|
|
31
|
-
function
|
|
31
|
+
function In(t, e) {
|
|
32
32
|
const n = Z(t);
|
|
33
|
-
if (isNaN(e))
|
|
34
|
-
return De(t, NaN);
|
|
33
|
+
if (isNaN(e)) return Se(t, NaN);
|
|
35
34
|
if (!e)
|
|
36
35
|
return n;
|
|
37
|
-
const s = n.getDate(), o =
|
|
36
|
+
const s = n.getDate(), o = Se(t, n.getTime());
|
|
38
37
|
o.setMonth(n.getMonth() + e + 1, 0);
|
|
39
38
|
const a = o.getDate();
|
|
40
39
|
return s >= a ? o : (n.setFullYear(
|
|
@@ -43,76 +42,76 @@ function Cn(t, e) {
|
|
|
43
42
|
s
|
|
44
43
|
), n);
|
|
45
44
|
}
|
|
46
|
-
function Ys(t, e) {
|
|
47
|
-
return Cn(t, e * 12);
|
|
48
|
-
}
|
|
49
45
|
function Gs(t, e) {
|
|
46
|
+
return In(t, e * 12);
|
|
47
|
+
}
|
|
48
|
+
function Us(t, e) {
|
|
50
49
|
const n = Z(t), s = Z(e), o = n.getTime() - s.getTime();
|
|
51
50
|
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function Bt(t, e) {
|
|
54
53
|
const n = Z(t), s = Z(e), o = n.getFullYear() - s.getFullYear(), a = n.getMonth() - s.getMonth();
|
|
55
54
|
return o * 12 + a;
|
|
56
55
|
}
|
|
57
|
-
function
|
|
56
|
+
function Lt(t) {
|
|
58
57
|
const e = Z(t);
|
|
59
58
|
return Math.trunc(e.getMonth() / 3) + 1;
|
|
60
59
|
}
|
|
61
|
-
function
|
|
62
|
-
const n = Z(t), s = Z(e), o = n.getFullYear() - s.getFullYear(), a =
|
|
60
|
+
function qe(t, e) {
|
|
61
|
+
const n = Z(t), s = Z(e), o = n.getFullYear() - s.getFullYear(), a = Lt(n) - Lt(s);
|
|
63
62
|
return o * 4 + a;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
const s =
|
|
67
|
-
return Math.round((a - l) /
|
|
64
|
+
function At(t, e, n) {
|
|
65
|
+
const s = Tt(t, n), o = Tt(e, n), a = +s - Rt(s), l = +o - Rt(o);
|
|
66
|
+
return Math.round((a - l) / Pr);
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function Qe(t, e) {
|
|
70
69
|
const n = Z(t), s = Z(e);
|
|
71
70
|
return n.getFullYear() - s.getFullYear();
|
|
72
71
|
}
|
|
73
|
-
function
|
|
74
|
-
const n = Z(t), s = Z(e), o =
|
|
72
|
+
function Ks(t, e) {
|
|
73
|
+
const n = Z(t), s = Z(e), o = Ht(n, s), a = Math.abs(Le(n, s));
|
|
75
74
|
n.setDate(n.getDate() - o * a);
|
|
76
|
-
const l = +(
|
|
75
|
+
const l = +(Ht(n, s) === -o), i = o * (a - l);
|
|
77
76
|
return i === 0 ? 0 : i;
|
|
78
77
|
}
|
|
79
|
-
function
|
|
78
|
+
function Ht(t, e) {
|
|
80
79
|
const n = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
|
|
81
80
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
82
81
|
}
|
|
83
|
-
function
|
|
82
|
+
function gt(t) {
|
|
84
83
|
return (e) => {
|
|
85
84
|
const s = (t ? Math[t] : Math.trunc)(e);
|
|
86
85
|
return s === 0 ? 0 : s;
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
|
-
function
|
|
88
|
+
function xt(t, e) {
|
|
90
89
|
return +Z(t) - +Z(e);
|
|
91
90
|
}
|
|
92
|
-
function
|
|
93
|
-
const s =
|
|
94
|
-
return
|
|
91
|
+
function Wt(t, e, n) {
|
|
92
|
+
const s = xt(t, e) / Vr;
|
|
93
|
+
return gt(n == null ? void 0 : n.roundingMethod)(s);
|
|
95
94
|
}
|
|
96
|
-
function
|
|
97
|
-
const s =
|
|
98
|
-
return
|
|
95
|
+
function Pt(t, e, n) {
|
|
96
|
+
const s = xt(t, e) / zr;
|
|
97
|
+
return gt(n == null ? void 0 : n.roundingMethod)(s);
|
|
99
98
|
}
|
|
100
|
-
function
|
|
101
|
-
const s =
|
|
102
|
-
return
|
|
99
|
+
function Je(t, e, n) {
|
|
100
|
+
const s = xt(t, e) / 1e3;
|
|
101
|
+
return gt(n == null ? void 0 : n.roundingMethod)(s);
|
|
103
102
|
}
|
|
104
|
-
function
|
|
105
|
-
const e = Z(t), n = e.getFullYear(), s = e.getMonth(), o =
|
|
103
|
+
function qs(t) {
|
|
104
|
+
const e = Z(t), n = e.getFullYear(), s = e.getMonth(), o = Se(t, 0);
|
|
106
105
|
return o.setFullYear(n, s + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function Qs(t, e, n) {
|
|
109
108
|
let s = 0, o;
|
|
110
109
|
const a = Z(t), l = Z(e);
|
|
111
110
|
if (n != null && n.unit)
|
|
112
|
-
o = n == null ? void 0 : n.unit, o === "second" ? s =
|
|
111
|
+
o = n == null ? void 0 : n.unit, o === "second" ? s = Je(a, l) : o === "minute" ? s = Pt(a, l) : o === "hour" ? s = Wt(a, l) : o === "day" ? s = Le(a, l) : o === "week" ? s = At(a, l) : o === "month" ? s = Bt(a, l) : o === "quarter" ? s = qe(a, l) : o === "year" && (s = Qe(a, l));
|
|
113
112
|
else {
|
|
114
|
-
const c =
|
|
115
|
-
Math.abs(c) <
|
|
113
|
+
const c = Je(a, l);
|
|
114
|
+
Math.abs(c) < Yr ? (s = Je(a, l), o = "second") : Math.abs(c) < Gr ? (s = Pt(a, l), o = "minute") : Math.abs(c) < Ur && Math.abs(Le(a, l)) < 1 ? (s = Wt(a, l), o = "hour") : Math.abs(c) < Kr && (s = Le(a, l)) && Math.abs(s) < 7 ? o = "day" : Math.abs(c) < qr ? (s = At(a, l), o = "week") : Math.abs(c) < Qr ? (s = Bt(a, l), o = "month") : Math.abs(c) < Jr && qe(a, l) < 4 ? (s = qe(a, l), o = "quarter") : (s = Qe(a, l), o = "year");
|
|
116
115
|
}
|
|
117
116
|
return new Intl.RelativeTimeFormat(n == null ? void 0 : n.locale, {
|
|
118
117
|
localeMatcher: n == null ? void 0 : n.localeMatcher,
|
|
@@ -120,17 +119,17 @@ function qs(t, e, n) {
|
|
|
120
119
|
style: n == null ? void 0 : n.style
|
|
121
120
|
}).format(s, o);
|
|
122
121
|
}
|
|
123
|
-
function
|
|
124
|
-
const n = Z(t), s = n.getFullYear(), o = n.getDate(), a =
|
|
122
|
+
function Js(t, e) {
|
|
123
|
+
const n = Z(t), s = n.getFullYear(), o = n.getDate(), a = Se(t, 0);
|
|
125
124
|
a.setFullYear(s, e, 15), a.setHours(0, 0, 0, 0);
|
|
126
|
-
const l =
|
|
125
|
+
const l = qs(a);
|
|
127
126
|
return n.setMonth(e, Math.min(o, l)), n;
|
|
128
127
|
}
|
|
129
|
-
function
|
|
128
|
+
function Sn(t, e) {
|
|
130
129
|
const n = Z(t);
|
|
131
|
-
return isNaN(+n) ?
|
|
130
|
+
return isNaN(+n) ? Se(t, NaN) : (n.setFullYear(e), n);
|
|
132
131
|
}
|
|
133
|
-
var
|
|
132
|
+
var Xs = function(t, e, n, s, o, a, l, i) {
|
|
134
133
|
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
135
134
|
throw new Error("invariant requires an error message argument");
|
|
136
135
|
if (!t) {
|
|
@@ -149,9 +148,9 @@ var Js = function(t, e, n, s, o, a, l, i) {
|
|
|
149
148
|
}
|
|
150
149
|
throw c.framesToPop = 1, c;
|
|
151
150
|
}
|
|
152
|
-
},
|
|
153
|
-
const
|
|
154
|
-
function
|
|
151
|
+
}, Zs = Xs;
|
|
152
|
+
const Vt = /* @__PURE__ */ Xr(Zs);
|
|
153
|
+
function De(...t) {
|
|
155
154
|
return t.filter((e) => e != null).reduce((e, n) => {
|
|
156
155
|
if (typeof n != "function")
|
|
157
156
|
throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
@@ -160,22 +159,22 @@ function Ce(...t) {
|
|
|
160
159
|
};
|
|
161
160
|
}, null);
|
|
162
161
|
}
|
|
163
|
-
const
|
|
162
|
+
const eo = {
|
|
164
163
|
height: ["marginTop", "marginBottom"],
|
|
165
164
|
width: ["marginLeft", "marginRight"]
|
|
166
165
|
};
|
|
167
|
-
function
|
|
168
|
-
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, s = e[n], o =
|
|
166
|
+
function to(t, e) {
|
|
167
|
+
const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, s = e[n], o = eo[t];
|
|
169
168
|
return s + // @ts-ignore
|
|
170
|
-
parseInt(
|
|
171
|
-
parseInt(
|
|
172
|
-
}
|
|
173
|
-
const
|
|
174
|
-
[
|
|
175
|
-
[
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
},
|
|
169
|
+
parseInt(St(e, o[0]), 10) + // @ts-ignore
|
|
170
|
+
parseInt(St(e, o[1]), 10);
|
|
171
|
+
}
|
|
172
|
+
const no = {
|
|
173
|
+
[Zr]: "collapse",
|
|
174
|
+
[un]: "collapsing",
|
|
175
|
+
[dt]: "collapsing",
|
|
176
|
+
[fn]: "collapse show"
|
|
177
|
+
}, En = /* @__PURE__ */ oe.forwardRef(({
|
|
179
178
|
onEnter: t,
|
|
180
179
|
onEntering: e,
|
|
181
180
|
onEntered: n,
|
|
@@ -189,75 +188,74 @@ const to = {
|
|
|
189
188
|
mountOnEnter: u = !1,
|
|
190
189
|
unmountOnExit: f = !1,
|
|
191
190
|
appear: p = !1,
|
|
192
|
-
getDimensionValue: h =
|
|
191
|
+
getDimensionValue: h = to,
|
|
193
192
|
...v
|
|
194
193
|
}, y) => {
|
|
195
|
-
const x = typeof i == "function" ? i() : i, b = z(() =>
|
|
194
|
+
const x = typeof i == "function" ? i() : i, b = z(() => De(($) => {
|
|
196
195
|
$.style[x] = "0";
|
|
197
|
-
}, t), [x, t]), k = z(() =>
|
|
196
|
+
}, t), [x, t]), k = z(() => De(($) => {
|
|
198
197
|
const _ = `scroll${x[0].toUpperCase()}${x.slice(1)}`;
|
|
199
198
|
$.style[x] = `${$[_]}px`;
|
|
200
|
-
}, e), [x, e]), m = z(() =>
|
|
199
|
+
}, e), [x, e]), m = z(() => De(($) => {
|
|
201
200
|
$.style[x] = null;
|
|
202
|
-
}, n), [x, n]), N = z(() =>
|
|
203
|
-
$.style[x] = `${h(x, $)}px`,
|
|
204
|
-
}, s), [s, h, x]),
|
|
201
|
+
}, n), [x, n]), N = z(() => De(($) => {
|
|
202
|
+
$.style[x] = `${h(x, $)}px`, es($);
|
|
203
|
+
}, s), [s, h, x]), j = z(() => De(($) => {
|
|
205
204
|
$.style[x] = null;
|
|
206
205
|
}, o), [x, o]);
|
|
207
|
-
return /* @__PURE__ */ r.jsx(
|
|
206
|
+
return /* @__PURE__ */ r.jsx(cn, {
|
|
208
207
|
ref: y,
|
|
209
|
-
addEndListener:
|
|
208
|
+
addEndListener: dn,
|
|
210
209
|
...v,
|
|
211
210
|
"aria-expanded": v.role ? c : null,
|
|
212
211
|
onEnter: b,
|
|
213
212
|
onEntering: k,
|
|
214
213
|
onEntered: m,
|
|
215
214
|
onExit: N,
|
|
216
|
-
onExiting:
|
|
215
|
+
onExiting: j,
|
|
217
216
|
childRef: l.ref,
|
|
218
217
|
in: c,
|
|
219
218
|
timeout: d,
|
|
220
219
|
mountOnEnter: u,
|
|
221
220
|
unmountOnExit: f,
|
|
222
221
|
appear: p,
|
|
223
|
-
children: ($, _) => /* @__PURE__ */
|
|
222
|
+
children: ($, _) => /* @__PURE__ */ oe.cloneElement(l, {
|
|
224
223
|
..._,
|
|
225
|
-
className: g(a, l.props.className,
|
|
224
|
+
className: g(a, l.props.className, no[$], x === "width" && "collapse-horizontal")
|
|
226
225
|
})
|
|
227
226
|
});
|
|
228
|
-
}),
|
|
229
|
-
|
|
230
|
-
const
|
|
227
|
+
}), On = ze("h4");
|
|
228
|
+
On.displayName = "DivStyledAsH4";
|
|
229
|
+
const Mn = /* @__PURE__ */ O.forwardRef(({
|
|
231
230
|
className: t,
|
|
232
231
|
bsPrefix: e,
|
|
233
|
-
as: n =
|
|
232
|
+
as: n = On,
|
|
234
233
|
...s
|
|
235
234
|
}, o) => (e = A(e, "alert-heading"), /* @__PURE__ */ r.jsx(n, {
|
|
236
235
|
ref: o,
|
|
237
236
|
className: g(t, e),
|
|
238
237
|
...s
|
|
239
238
|
})));
|
|
240
|
-
|
|
241
|
-
function
|
|
239
|
+
Mn.displayName = "AlertHeading";
|
|
240
|
+
function ro(t, e, n, s = !1) {
|
|
242
241
|
const o = ue(n);
|
|
243
242
|
T(() => {
|
|
244
243
|
const a = typeof t == "function" ? t() : t;
|
|
245
244
|
return a.addEventListener(e, o, s), () => a.removeEventListener(e, o, s);
|
|
246
245
|
}, [t]);
|
|
247
246
|
}
|
|
248
|
-
const
|
|
249
|
-
function
|
|
250
|
-
if (t == null)
|
|
251
|
-
return {};
|
|
247
|
+
const so = ["as", "disabled"];
|
|
248
|
+
function oo(t, e) {
|
|
249
|
+
if (t == null) return {};
|
|
252
250
|
var n = {}, s = Object.keys(t), o, a;
|
|
253
251
|
for (a = 0; a < s.length; a++)
|
|
254
252
|
o = s[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
255
253
|
return n;
|
|
256
254
|
}
|
|
257
|
-
function
|
|
255
|
+
function ao(t) {
|
|
258
256
|
return !t || t.trim() === "#";
|
|
259
257
|
}
|
|
260
|
-
function
|
|
258
|
+
function vt({
|
|
261
259
|
tagName: t,
|
|
262
260
|
disabled: e,
|
|
263
261
|
href: n,
|
|
@@ -278,7 +276,7 @@ function gt({
|
|
|
278
276
|
disabled: e
|
|
279
277
|
}, d];
|
|
280
278
|
const u = (p) => {
|
|
281
|
-
if ((e || t === "a" &&
|
|
279
|
+
if ((e || t === "a" && ao(n)) && p.preventDefault(), e) {
|
|
282
280
|
p.stopPropagation();
|
|
283
281
|
return;
|
|
284
282
|
}
|
|
@@ -300,14 +298,14 @@ function gt({
|
|
|
300
298
|
onKeyDown: f
|
|
301
299
|
}, d];
|
|
302
300
|
}
|
|
303
|
-
const
|
|
301
|
+
const Fn = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
304
302
|
let {
|
|
305
303
|
as: n,
|
|
306
304
|
disabled: s
|
|
307
|
-
} = t, o =
|
|
305
|
+
} = t, o = oo(t, so);
|
|
308
306
|
const [a, {
|
|
309
307
|
tagName: l
|
|
310
|
-
}] =
|
|
308
|
+
}] = vt(Object.assign({
|
|
311
309
|
tagName: n,
|
|
312
310
|
disabled: s
|
|
313
311
|
}, o));
|
|
@@ -315,29 +313,28 @@ const On = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
315
313
|
ref: e
|
|
316
314
|
}));
|
|
317
315
|
});
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
function
|
|
321
|
-
if (t == null)
|
|
322
|
-
return {};
|
|
316
|
+
Fn.displayName = "Button";
|
|
317
|
+
const lo = ["onKeyDown"];
|
|
318
|
+
function co(t, e) {
|
|
319
|
+
if (t == null) return {};
|
|
323
320
|
var n = {}, s = Object.keys(t), o, a;
|
|
324
321
|
for (a = 0; a < s.length; a++)
|
|
325
322
|
o = s[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
326
323
|
return n;
|
|
327
324
|
}
|
|
328
|
-
function
|
|
325
|
+
function io(t) {
|
|
329
326
|
return !t || t.trim() === "#";
|
|
330
327
|
}
|
|
331
|
-
const
|
|
328
|
+
const jt = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
332
329
|
let {
|
|
333
330
|
onKeyDown: n
|
|
334
|
-
} = t, s =
|
|
335
|
-
const [o] =
|
|
331
|
+
} = t, s = co(t, lo);
|
|
332
|
+
const [o] = vt(Object.assign({
|
|
336
333
|
tagName: "a"
|
|
337
334
|
}, s)), a = ue((l) => {
|
|
338
335
|
o.onKeyDown(l), n == null || n(l);
|
|
339
336
|
});
|
|
340
|
-
return
|
|
337
|
+
return io(s.href) || s.role === "button" ? /* @__PURE__ */ r.jsx("a", Object.assign({
|
|
341
338
|
ref: e
|
|
342
339
|
}, s, o, {
|
|
343
340
|
onKeyDown: a
|
|
@@ -347,19 +344,19 @@ const xt = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
347
344
|
onKeyDown: n
|
|
348
345
|
}));
|
|
349
346
|
});
|
|
350
|
-
|
|
351
|
-
const
|
|
347
|
+
jt.displayName = "Anchor";
|
|
348
|
+
const Tn = /* @__PURE__ */ O.forwardRef(({
|
|
352
349
|
className: t,
|
|
353
350
|
bsPrefix: e,
|
|
354
|
-
as: n =
|
|
351
|
+
as: n = jt,
|
|
355
352
|
...s
|
|
356
353
|
}, o) => (e = A(e, "alert-link"), /* @__PURE__ */ r.jsx(n, {
|
|
357
354
|
ref: o,
|
|
358
355
|
className: g(t, e),
|
|
359
356
|
...s
|
|
360
357
|
})));
|
|
361
|
-
|
|
362
|
-
const
|
|
358
|
+
Tn.displayName = "AlertLink";
|
|
359
|
+
const Rn = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
363
360
|
const {
|
|
364
361
|
bsPrefix: n,
|
|
365
362
|
show: s = !0,
|
|
@@ -370,18 +367,18 @@ const Fn = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
370
367
|
variant: c = "primary",
|
|
371
368
|
onClose: d,
|
|
372
369
|
dismissible: u,
|
|
373
|
-
transition: f =
|
|
370
|
+
transition: f = st,
|
|
374
371
|
...p
|
|
375
|
-
} =
|
|
372
|
+
} = pn(t, {
|
|
376
373
|
show: "onClose"
|
|
377
374
|
}), h = A(n, "alert"), v = ue((b) => {
|
|
378
375
|
d && d(!1, b);
|
|
379
|
-
}), y = f === !0 ?
|
|
376
|
+
}), y = f === !0 ? st : f, x = /* @__PURE__ */ r.jsxs("div", {
|
|
380
377
|
role: "alert",
|
|
381
378
|
...y ? void 0 : p,
|
|
382
379
|
ref: e,
|
|
383
380
|
className: g(l, h, c && `${h}-${c}`, u && `${h}-dismissible`),
|
|
384
|
-
children: [u && /* @__PURE__ */ r.jsx(
|
|
381
|
+
children: [u && /* @__PURE__ */ r.jsx(Ss, {
|
|
385
382
|
onClick: v,
|
|
386
383
|
"aria-label": o,
|
|
387
384
|
variant: a
|
|
@@ -395,11 +392,11 @@ const Fn = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
395
392
|
children: x
|
|
396
393
|
}) : s ? x : null;
|
|
397
394
|
});
|
|
398
|
-
|
|
399
|
-
const
|
|
400
|
-
Link:
|
|
401
|
-
Heading:
|
|
402
|
-
}),
|
|
395
|
+
Rn.displayName = "Alert";
|
|
396
|
+
const uo = Object.assign(Rn, {
|
|
397
|
+
Link: Tn,
|
|
398
|
+
Heading: Mn
|
|
399
|
+
}), wt = /* @__PURE__ */ O.forwardRef(({
|
|
403
400
|
as: t,
|
|
404
401
|
bsPrefix: e,
|
|
405
402
|
variant: n = "primary",
|
|
@@ -411,7 +408,7 @@ const io = Object.assign(Fn, {
|
|
|
411
408
|
}, c) => {
|
|
412
409
|
const d = A(e, "btn"), [u, {
|
|
413
410
|
tagName: f
|
|
414
|
-
}] =
|
|
411
|
+
}] = vt({
|
|
415
412
|
tagName: t,
|
|
416
413
|
disabled: a,
|
|
417
414
|
...i
|
|
@@ -424,8 +421,8 @@ const io = Object.assign(Fn, {
|
|
|
424
421
|
className: g(l, d, o && "active", n && `${d}-${n}`, s && `${d}-${s}`, i.href && a && "disabled")
|
|
425
422
|
});
|
|
426
423
|
});
|
|
427
|
-
|
|
428
|
-
const
|
|
424
|
+
wt.displayName = "Button";
|
|
425
|
+
const yt = /* @__PURE__ */ O.forwardRef(({
|
|
429
426
|
className: t,
|
|
430
427
|
bsPrefix: e,
|
|
431
428
|
as: n = "div",
|
|
@@ -435,8 +432,8 @@ const jt = /* @__PURE__ */ E.forwardRef(({
|
|
|
435
432
|
className: g(t, e),
|
|
436
433
|
...s
|
|
437
434
|
})));
|
|
438
|
-
|
|
439
|
-
const
|
|
435
|
+
yt.displayName = "CardBody";
|
|
436
|
+
const Bn = /* @__PURE__ */ O.forwardRef(({
|
|
440
437
|
className: t,
|
|
441
438
|
bsPrefix: e,
|
|
442
439
|
as: n = "div",
|
|
@@ -446,10 +443,10 @@ const Tn = /* @__PURE__ */ E.forwardRef(({
|
|
|
446
443
|
className: g(t, e),
|
|
447
444
|
...s
|
|
448
445
|
})));
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
const
|
|
446
|
+
Bn.displayName = "CardFooter";
|
|
447
|
+
const Ln = /* @__PURE__ */ O.createContext(null);
|
|
448
|
+
Ln.displayName = "CardHeaderContext";
|
|
449
|
+
const An = /* @__PURE__ */ O.forwardRef(({
|
|
453
450
|
bsPrefix: t,
|
|
454
451
|
className: e,
|
|
455
452
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -459,7 +456,7 @@ const Ln = /* @__PURE__ */ E.forwardRef(({
|
|
|
459
456
|
const a = A(t, "card-header"), l = z(() => ({
|
|
460
457
|
cardHeaderBsPrefix: a
|
|
461
458
|
}), [a]);
|
|
462
|
-
return /* @__PURE__ */ r.jsx(
|
|
459
|
+
return /* @__PURE__ */ r.jsx(Ln.Provider, {
|
|
463
460
|
value: l,
|
|
464
461
|
children: /* @__PURE__ */ r.jsx(n, {
|
|
465
462
|
ref: o,
|
|
@@ -468,8 +465,8 @@ const Ln = /* @__PURE__ */ E.forwardRef(({
|
|
|
468
465
|
})
|
|
469
466
|
});
|
|
470
467
|
});
|
|
471
|
-
|
|
472
|
-
const
|
|
468
|
+
An.displayName = "CardHeader";
|
|
469
|
+
const Hn = /* @__PURE__ */ O.forwardRef(
|
|
473
470
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
474
471
|
({
|
|
475
472
|
bsPrefix: t,
|
|
@@ -486,8 +483,8 @@ const Bn = /* @__PURE__ */ E.forwardRef(
|
|
|
486
483
|
});
|
|
487
484
|
}
|
|
488
485
|
);
|
|
489
|
-
|
|
490
|
-
const
|
|
486
|
+
Hn.displayName = "CardImg";
|
|
487
|
+
const Wn = /* @__PURE__ */ O.forwardRef(({
|
|
491
488
|
className: t,
|
|
492
489
|
bsPrefix: e,
|
|
493
490
|
as: n = "div",
|
|
@@ -497,8 +494,8 @@ const An = /* @__PURE__ */ E.forwardRef(({
|
|
|
497
494
|
className: g(t, e),
|
|
498
495
|
...s
|
|
499
496
|
})));
|
|
500
|
-
|
|
501
|
-
const
|
|
497
|
+
Wn.displayName = "CardImgOverlay";
|
|
498
|
+
const Pn = /* @__PURE__ */ O.forwardRef(({
|
|
502
499
|
className: t,
|
|
503
500
|
bsPrefix: e,
|
|
504
501
|
as: n = "a",
|
|
@@ -508,19 +505,19 @@ const Hn = /* @__PURE__ */ E.forwardRef(({
|
|
|
508
505
|
className: g(t, e),
|
|
509
506
|
...s
|
|
510
507
|
})));
|
|
511
|
-
|
|
512
|
-
const
|
|
508
|
+
Pn.displayName = "CardLink";
|
|
509
|
+
const fo = ze("h6"), Vn = /* @__PURE__ */ O.forwardRef(({
|
|
513
510
|
className: t,
|
|
514
511
|
bsPrefix: e,
|
|
515
|
-
as: n =
|
|
512
|
+
as: n = fo,
|
|
516
513
|
...s
|
|
517
514
|
}, o) => (e = A(e, "card-subtitle"), /* @__PURE__ */ r.jsx(n, {
|
|
518
515
|
ref: o,
|
|
519
516
|
className: g(t, e),
|
|
520
517
|
...s
|
|
521
518
|
})));
|
|
522
|
-
|
|
523
|
-
const
|
|
519
|
+
Vn.displayName = "CardSubtitle";
|
|
520
|
+
const zn = /* @__PURE__ */ O.forwardRef(({
|
|
524
521
|
className: t,
|
|
525
522
|
bsPrefix: e,
|
|
526
523
|
as: n = "p",
|
|
@@ -530,19 +527,19 @@ const Pn = /* @__PURE__ */ E.forwardRef(({
|
|
|
530
527
|
className: g(t, e),
|
|
531
528
|
...s
|
|
532
529
|
})));
|
|
533
|
-
|
|
534
|
-
const
|
|
530
|
+
zn.displayName = "CardText";
|
|
531
|
+
const po = ze("h5"), Yn = /* @__PURE__ */ O.forwardRef(({
|
|
535
532
|
className: t,
|
|
536
533
|
bsPrefix: e,
|
|
537
|
-
as: n =
|
|
534
|
+
as: n = po,
|
|
538
535
|
...s
|
|
539
536
|
}, o) => (e = A(e, "card-title"), /* @__PURE__ */ r.jsx(n, {
|
|
540
537
|
ref: o,
|
|
541
538
|
className: g(t, e),
|
|
542
539
|
...s
|
|
543
540
|
})));
|
|
544
|
-
|
|
545
|
-
const
|
|
541
|
+
Yn.displayName = "CardTitle";
|
|
542
|
+
const Gn = /* @__PURE__ */ O.forwardRef(({
|
|
546
543
|
bsPrefix: t,
|
|
547
544
|
className: e,
|
|
548
545
|
bg: n,
|
|
@@ -559,34 +556,34 @@ const zn = /* @__PURE__ */ E.forwardRef(({
|
|
|
559
556
|
ref: d,
|
|
560
557
|
...c,
|
|
561
558
|
className: g(e, u, n && `bg-${n}`, s && `text-${s}`, o && `border-${o}`),
|
|
562
|
-
children: a ? /* @__PURE__ */ r.jsx(
|
|
559
|
+
children: a ? /* @__PURE__ */ r.jsx(yt, {
|
|
563
560
|
children: l
|
|
564
561
|
}) : l
|
|
565
562
|
});
|
|
566
563
|
});
|
|
567
|
-
|
|
568
|
-
const
|
|
569
|
-
Img:
|
|
570
|
-
Title:
|
|
571
|
-
Subtitle:
|
|
572
|
-
Body:
|
|
573
|
-
Link:
|
|
574
|
-
Text:
|
|
575
|
-
Header:
|
|
576
|
-
Footer:
|
|
577
|
-
ImgOverlay:
|
|
564
|
+
Gn.displayName = "Card";
|
|
565
|
+
const zt = Object.assign(Gn, {
|
|
566
|
+
Img: Hn,
|
|
567
|
+
Title: Yn,
|
|
568
|
+
Subtitle: Vn,
|
|
569
|
+
Body: yt,
|
|
570
|
+
Link: Pn,
|
|
571
|
+
Text: zn,
|
|
572
|
+
Header: An,
|
|
573
|
+
Footer: Bn,
|
|
574
|
+
ImgOverlay: Wn
|
|
578
575
|
});
|
|
579
|
-
function
|
|
580
|
-
return
|
|
576
|
+
function ho(t, e) {
|
|
577
|
+
return O.Children.toArray(t).some((n) => /* @__PURE__ */ O.isValidElement(n) && n.type === e);
|
|
581
578
|
}
|
|
582
|
-
function
|
|
579
|
+
function Un({
|
|
583
580
|
as: t,
|
|
584
581
|
bsPrefix: e,
|
|
585
582
|
className: n,
|
|
586
583
|
...s
|
|
587
584
|
}) {
|
|
588
585
|
e = A(e, "col");
|
|
589
|
-
const o =
|
|
586
|
+
const o = ts(), a = ns(), l = [], i = [];
|
|
590
587
|
return o.forEach((c) => {
|
|
591
588
|
const d = s[c];
|
|
592
589
|
delete s[c];
|
|
@@ -607,7 +604,7 @@ function Yn({
|
|
|
607
604
|
spans: l
|
|
608
605
|
}];
|
|
609
606
|
}
|
|
610
|
-
const
|
|
607
|
+
const Kn = /* @__PURE__ */ O.forwardRef(
|
|
611
608
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
612
609
|
(t, e) => {
|
|
613
610
|
const [{
|
|
@@ -617,7 +614,7 @@ const Gn = /* @__PURE__ */ E.forwardRef(
|
|
|
617
614
|
as: o = "div",
|
|
618
615
|
bsPrefix: a,
|
|
619
616
|
spans: l
|
|
620
|
-
}] =
|
|
617
|
+
}] = Un(t);
|
|
621
618
|
return /* @__PURE__ */ r.jsx(o, {
|
|
622
619
|
...s,
|
|
623
620
|
ref: e,
|
|
@@ -625,32 +622,31 @@ const Gn = /* @__PURE__ */ E.forwardRef(
|
|
|
625
622
|
});
|
|
626
623
|
}
|
|
627
624
|
);
|
|
628
|
-
|
|
629
|
-
function
|
|
630
|
-
const s = V(t !== void 0), [o, a] =
|
|
631
|
-
return s.current = l, !l && i && o !== e && a(e), [l ? t : o,
|
|
625
|
+
Kn.displayName = "Col";
|
|
626
|
+
function mo(t, e, n) {
|
|
627
|
+
const s = V(t !== void 0), [o, a] = E(e), l = t !== void 0, i = s.current;
|
|
628
|
+
return s.current = l, !l && i && o !== e && a(e), [l ? t : o, D((...c) => {
|
|
632
629
|
const [d, ...u] = c;
|
|
633
630
|
let f = n == null ? void 0 : n(d, ...u);
|
|
634
631
|
return a(d), f;
|
|
635
632
|
}, [n])];
|
|
636
633
|
}
|
|
637
|
-
function
|
|
638
|
-
const [, t] =
|
|
634
|
+
function go() {
|
|
635
|
+
const [, t] = _n((e) => !e, !1);
|
|
639
636
|
return t;
|
|
640
637
|
}
|
|
641
|
-
const
|
|
642
|
-
function
|
|
643
|
-
if (t == null)
|
|
644
|
-
return {};
|
|
638
|
+
const Ye = /* @__PURE__ */ O.createContext(null), xo = ["children", "usePopper"];
|
|
639
|
+
function vo(t, e) {
|
|
640
|
+
if (t == null) return {};
|
|
645
641
|
var n = {}, s = Object.keys(t), o, a;
|
|
646
642
|
for (a = 0; a < s.length; a++)
|
|
647
643
|
o = s[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
648
644
|
return n;
|
|
649
645
|
}
|
|
650
|
-
const
|
|
646
|
+
const jo = () => {
|
|
651
647
|
};
|
|
652
|
-
function
|
|
653
|
-
const e = W(
|
|
648
|
+
function qn(t = {}) {
|
|
649
|
+
const e = W(Ye), [n, s] = rs(), o = V(!1), {
|
|
654
650
|
flip: a,
|
|
655
651
|
offset: l,
|
|
656
652
|
rootCloseEvent: i,
|
|
@@ -668,7 +664,7 @@ function Un(t = {}) {
|
|
|
668
664
|
setMenu: x,
|
|
669
665
|
menuElement: b,
|
|
670
666
|
toggleElement: k
|
|
671
|
-
} = e || {}, m =
|
|
667
|
+
} = e || {}, m = ss(k, b, os({
|
|
672
668
|
placement: d || y || "bottom-start",
|
|
673
669
|
enabled: p,
|
|
674
670
|
enableEvents: f ?? h,
|
|
@@ -678,11 +674,11 @@ function Un(t = {}) {
|
|
|
678
674
|
arrowElement: n,
|
|
679
675
|
popperConfig: u
|
|
680
676
|
})), N = Object.assign({
|
|
681
|
-
ref: x ||
|
|
677
|
+
ref: x || jo,
|
|
682
678
|
"aria-labelledby": k == null ? void 0 : k.id
|
|
683
679
|
}, m.attributes.popper, {
|
|
684
680
|
style: m.styles.popper
|
|
685
|
-
}),
|
|
681
|
+
}), j = {
|
|
686
682
|
show: h,
|
|
687
683
|
placement: y,
|
|
688
684
|
hasShown: o.current,
|
|
@@ -694,143 +690,142 @@ function Un(t = {}) {
|
|
|
694
690
|
style: m.styles.arrow
|
|
695
691
|
}) : {}
|
|
696
692
|
};
|
|
697
|
-
return
|
|
693
|
+
return as(b, v, {
|
|
698
694
|
clickTrigger: i,
|
|
699
695
|
disabled: !h
|
|
700
|
-
}), [N,
|
|
696
|
+
}), [N, j];
|
|
701
697
|
}
|
|
702
|
-
function
|
|
698
|
+
function Qn(t) {
|
|
703
699
|
let {
|
|
704
700
|
children: e,
|
|
705
701
|
usePopper: n = !0
|
|
706
|
-
} = t, s =
|
|
707
|
-
const [o, a] =
|
|
702
|
+
} = t, s = vo(t, xo);
|
|
703
|
+
const [o, a] = qn(Object.assign({}, s, {
|
|
708
704
|
usePopper: n
|
|
709
705
|
}));
|
|
710
706
|
return /* @__PURE__ */ r.jsx(r.Fragment, {
|
|
711
707
|
children: e(o, a)
|
|
712
708
|
});
|
|
713
709
|
}
|
|
714
|
-
|
|
715
|
-
const
|
|
710
|
+
Qn.displayName = "DropdownMenu";
|
|
711
|
+
const We = {
|
|
716
712
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
717
713
|
current: 0
|
|
718
|
-
},
|
|
719
|
-
let
|
|
720
|
-
function
|
|
721
|
-
let e = W(
|
|
714
|
+
}, Jn = /* @__PURE__ */ oe.createContext(We), wo = /* @__PURE__ */ oe.createContext(!1);
|
|
715
|
+
let yo = !!(typeof window < "u" && window.document && window.document.createElement), Xe = /* @__PURE__ */ new WeakMap();
|
|
716
|
+
function _o(t = !1) {
|
|
717
|
+
let e = W(Jn), n = V(null);
|
|
722
718
|
if (n.current === null && !t) {
|
|
723
719
|
var s, o;
|
|
724
|
-
let a = (o =
|
|
720
|
+
let a = (o = oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (s = o.ReactCurrentOwner) === null || s === void 0 ? void 0 : s.current;
|
|
725
721
|
if (a) {
|
|
726
|
-
let l =
|
|
727
|
-
l == null ?
|
|
722
|
+
let l = Xe.get(a);
|
|
723
|
+
l == null ? Xe.set(a, {
|
|
728
724
|
id: e.current,
|
|
729
725
|
state: a.memoizedState
|
|
730
|
-
}) : a.memoizedState !== l.state && (e.current = l.id,
|
|
726
|
+
}) : a.memoizedState !== l.state && (e.current = l.id, Xe.delete(a));
|
|
731
727
|
}
|
|
732
728
|
n.current = ++e.current;
|
|
733
729
|
}
|
|
734
730
|
return n.current;
|
|
735
731
|
}
|
|
736
|
-
function
|
|
737
|
-
let e = W(
|
|
738
|
-
e ===
|
|
739
|
-
let n =
|
|
732
|
+
function bo(t) {
|
|
733
|
+
let e = W(Jn);
|
|
734
|
+
e === We && !yo && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
735
|
+
let n = _o(!!t), s = e === We && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
740
736
|
return t || `${s}-${n}`;
|
|
741
737
|
}
|
|
742
|
-
function
|
|
743
|
-
let e =
|
|
738
|
+
function No(t) {
|
|
739
|
+
let e = oe.useId(), [n] = E(Io()), s = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${We.prefix}`;
|
|
744
740
|
return t || `${s}-${e}`;
|
|
745
741
|
}
|
|
746
|
-
const
|
|
747
|
-
function
|
|
742
|
+
const $o = typeof oe.useId == "function" ? No : bo;
|
|
743
|
+
function ko() {
|
|
748
744
|
return !1;
|
|
749
745
|
}
|
|
750
|
-
function
|
|
746
|
+
function Co() {
|
|
751
747
|
return !0;
|
|
752
748
|
}
|
|
753
|
-
function
|
|
749
|
+
function Do(t) {
|
|
754
750
|
return () => {
|
|
755
751
|
};
|
|
756
752
|
}
|
|
757
753
|
function Io() {
|
|
758
|
-
return typeof
|
|
754
|
+
return typeof oe.useSyncExternalStore == "function" ? oe.useSyncExternalStore(Do, ko, Co) : W(wo);
|
|
759
755
|
}
|
|
760
|
-
const
|
|
756
|
+
const Xn = (t) => {
|
|
761
757
|
var e;
|
|
762
758
|
return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
|
|
763
|
-
},
|
|
759
|
+
}, Yt = () => {
|
|
764
760
|
};
|
|
765
|
-
function
|
|
766
|
-
const t =
|
|
761
|
+
function Zn() {
|
|
762
|
+
const t = $o(), {
|
|
767
763
|
show: e = !1,
|
|
768
|
-
toggle: n =
|
|
764
|
+
toggle: n = Yt,
|
|
769
765
|
setToggle: s,
|
|
770
766
|
menuElement: o
|
|
771
|
-
} = W(
|
|
767
|
+
} = W(Ye) || {}, a = D((i) => {
|
|
772
768
|
n(!e, i);
|
|
773
769
|
}, [e, n]), l = {
|
|
774
770
|
id: t,
|
|
775
|
-
ref: s ||
|
|
771
|
+
ref: s || Yt,
|
|
776
772
|
onClick: a,
|
|
777
773
|
"aria-expanded": !!e
|
|
778
774
|
};
|
|
779
|
-
return o &&
|
|
775
|
+
return o && Xn(o) && (l["aria-haspopup"] = !0), [l, {
|
|
780
776
|
show: e,
|
|
781
777
|
toggle: n
|
|
782
778
|
}];
|
|
783
779
|
}
|
|
784
|
-
function
|
|
780
|
+
function er({
|
|
785
781
|
children: t
|
|
786
782
|
}) {
|
|
787
|
-
const [e, n] =
|
|
783
|
+
const [e, n] = Zn();
|
|
788
784
|
return /* @__PURE__ */ r.jsx(r.Fragment, {
|
|
789
785
|
children: t(e, n)
|
|
790
786
|
});
|
|
791
787
|
}
|
|
792
|
-
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
const
|
|
796
|
-
function
|
|
797
|
-
if (t == null)
|
|
798
|
-
return {};
|
|
788
|
+
er.displayName = "DropdownToggle";
|
|
789
|
+
const ot = /* @__PURE__ */ O.createContext(null), Gt = (t, e = null) => t != null ? String(t) : e || null, tr = /* @__PURE__ */ O.createContext(null);
|
|
790
|
+
tr.displayName = "NavContext";
|
|
791
|
+
const So = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
792
|
+
function Eo(t, e) {
|
|
793
|
+
if (t == null) return {};
|
|
799
794
|
var n = {}, s = Object.keys(t), o, a;
|
|
800
795
|
for (a = 0; a < s.length; a++)
|
|
801
796
|
o = s[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
802
797
|
return n;
|
|
803
798
|
}
|
|
804
|
-
function
|
|
799
|
+
function nr({
|
|
805
800
|
key: t,
|
|
806
801
|
href: e,
|
|
807
802
|
active: n,
|
|
808
803
|
disabled: s,
|
|
809
804
|
onClick: o
|
|
810
805
|
}) {
|
|
811
|
-
const a = W(
|
|
806
|
+
const a = W(ot), l = W(tr), {
|
|
812
807
|
activeKey: i
|
|
813
|
-
} = l || {}, c =
|
|
808
|
+
} = l || {}, c = Gt(t, e), d = n == null && t != null ? Gt(i) === c : n;
|
|
814
809
|
return [{
|
|
815
810
|
onClick: ue((f) => {
|
|
816
811
|
s || (o == null || o(f), a && !f.isPropagationStopped() && a(c, f));
|
|
817
812
|
}),
|
|
818
813
|
"aria-disabled": s || void 0,
|
|
819
814
|
"aria-selected": d,
|
|
820
|
-
[
|
|
815
|
+
[bn("dropdown-item")]: ""
|
|
821
816
|
}, {
|
|
822
817
|
isActive: d
|
|
823
818
|
}];
|
|
824
819
|
}
|
|
825
|
-
const
|
|
820
|
+
const rr = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
826
821
|
let {
|
|
827
822
|
eventKey: n,
|
|
828
823
|
disabled: s,
|
|
829
824
|
onClick: o,
|
|
830
825
|
active: a,
|
|
831
|
-
as: l =
|
|
832
|
-
} = t, i =
|
|
833
|
-
const [c] =
|
|
826
|
+
as: l = Fn
|
|
827
|
+
} = t, i = Eo(t, So);
|
|
828
|
+
const [c] = nr({
|
|
834
829
|
key: n,
|
|
835
830
|
href: i.href,
|
|
836
831
|
disabled: s,
|
|
@@ -841,90 +836,89 @@ const tr = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
841
836
|
ref: e
|
|
842
837
|
}, c));
|
|
843
838
|
});
|
|
844
|
-
|
|
845
|
-
function
|
|
846
|
-
const t =
|
|
839
|
+
rr.displayName = "DropdownItem";
|
|
840
|
+
function Ut() {
|
|
841
|
+
const t = go(), e = V(null), n = D((s) => {
|
|
847
842
|
e.current = s, t();
|
|
848
843
|
}, [t]);
|
|
849
844
|
return [e, n];
|
|
850
845
|
}
|
|
851
|
-
function
|
|
846
|
+
function Me({
|
|
852
847
|
defaultShow: t,
|
|
853
848
|
show: e,
|
|
854
849
|
onSelect: n,
|
|
855
850
|
onToggle: s,
|
|
856
|
-
itemSelector: o = `* [${
|
|
851
|
+
itemSelector: o = `* [${bn("dropdown-item")}]`,
|
|
857
852
|
focusFirstItemOnShow: a,
|
|
858
853
|
placement: l = "bottom-start",
|
|
859
854
|
children: i
|
|
860
855
|
}) {
|
|
861
|
-
const c =
|
|
862
|
-
u(
|
|
856
|
+
const c = ls(), [d, u] = mo(e, t, s), [f, p] = Ut(), h = f.current, [v, y] = Ut(), x = v.current, b = Es(d), k = V(null), m = V(!1), N = W(ot), j = D((w, C, L = C == null ? void 0 : C.type) => {
|
|
857
|
+
u(w, {
|
|
863
858
|
originalEvent: C,
|
|
864
|
-
source:
|
|
859
|
+
source: L
|
|
865
860
|
});
|
|
866
|
-
}, [u]), $ = ue((
|
|
867
|
-
n == null || n(
|
|
861
|
+
}, [u]), $ = ue((w, C) => {
|
|
862
|
+
n == null || n(w, C), j(!1, C, "select"), C.isPropagationStopped() || N == null || N(w, C);
|
|
868
863
|
}), _ = z(() => ({
|
|
869
|
-
toggle:
|
|
864
|
+
toggle: j,
|
|
870
865
|
placement: l,
|
|
871
866
|
show: d,
|
|
872
867
|
menuElement: h,
|
|
873
868
|
toggleElement: x,
|
|
874
869
|
setMenu: p,
|
|
875
870
|
setToggle: y
|
|
876
|
-
}), [
|
|
871
|
+
}), [j, l, d, h, x, p, y]);
|
|
877
872
|
h && b && !d && (m.current = h.contains(h.ownerDocument.activeElement));
|
|
878
|
-
const
|
|
873
|
+
const M = ue(() => {
|
|
879
874
|
x && x.focus && x.focus();
|
|
880
|
-
}),
|
|
881
|
-
const
|
|
875
|
+
}), I = ue(() => {
|
|
876
|
+
const w = k.current;
|
|
882
877
|
let C = a;
|
|
883
|
-
if (C == null && (C = f.current &&
|
|
878
|
+
if (C == null && (C = f.current && Xn(f.current) ? "keyboard" : !1), C === !1 || C === "keyboard" && !/^key.+$/.test(w))
|
|
884
879
|
return;
|
|
885
|
-
const
|
|
886
|
-
|
|
880
|
+
const L = Ot(f.current, o)[0];
|
|
881
|
+
L && L.focus && L.focus();
|
|
887
882
|
});
|
|
888
883
|
T(() => {
|
|
889
|
-
d ?
|
|
890
|
-
}, [d, m,
|
|
884
|
+
d ? I() : m.current && (m.current = !1, M());
|
|
885
|
+
}, [d, m, M, I]), T(() => {
|
|
891
886
|
k.current = null;
|
|
892
887
|
});
|
|
893
|
-
const
|
|
894
|
-
if (!f.current)
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
return H = Math.max(0, Math.min(H, B.length)), B[H];
|
|
888
|
+
const S = (w, C) => {
|
|
889
|
+
if (!f.current) return null;
|
|
890
|
+
const L = Ot(f.current, o);
|
|
891
|
+
let H = L.indexOf(w) + C;
|
|
892
|
+
return H = Math.max(0, Math.min(H, L.length)), L[H];
|
|
899
893
|
};
|
|
900
|
-
return
|
|
901
|
-
var C,
|
|
894
|
+
return ro(D(() => c.document, [c]), "keydown", (w) => {
|
|
895
|
+
var C, L;
|
|
902
896
|
const {
|
|
903
897
|
key: H
|
|
904
|
-
} =
|
|
898
|
+
} = w, Q = w.target, K = (C = f.current) == null ? void 0 : C.contains(Q), R = (L = v.current) == null ? void 0 : L.contains(Q);
|
|
905
899
|
if (/input|textarea/i.test(Q.tagName) && (H === " " || H !== "Escape" && K || H === "Escape" && Q.type === "search") || !K && !R || H === "Tab" && (!f.current || !d))
|
|
906
900
|
return;
|
|
907
|
-
k.current =
|
|
901
|
+
k.current = w.type;
|
|
908
902
|
const te = {
|
|
909
|
-
originalEvent:
|
|
910
|
-
source:
|
|
903
|
+
originalEvent: w,
|
|
904
|
+
source: w.type
|
|
911
905
|
};
|
|
912
906
|
switch (H) {
|
|
913
907
|
case "ArrowUp": {
|
|
914
|
-
const q =
|
|
915
|
-
q && q.focus && q.focus(),
|
|
908
|
+
const q = S(Q, -1);
|
|
909
|
+
q && q.focus && q.focus(), w.preventDefault();
|
|
916
910
|
return;
|
|
917
911
|
}
|
|
918
912
|
case "ArrowDown":
|
|
919
|
-
if (
|
|
913
|
+
if (w.preventDefault(), !d)
|
|
920
914
|
u(!0, te);
|
|
921
915
|
else {
|
|
922
|
-
const q =
|
|
916
|
+
const q = S(Q, 1);
|
|
923
917
|
q && q.focus && q.focus();
|
|
924
918
|
}
|
|
925
919
|
return;
|
|
926
920
|
case "Tab":
|
|
927
|
-
|
|
921
|
+
cs(Q.ownerDocument, "keyup", (q) => {
|
|
928
922
|
var F;
|
|
929
923
|
(q.key === "Tab" && !q.target || !((F = f.current) != null && F.contains(q.target))) && u(!1, te);
|
|
930
924
|
}, {
|
|
@@ -932,24 +926,24 @@ function Oe({
|
|
|
932
926
|
});
|
|
933
927
|
break;
|
|
934
928
|
case "Escape":
|
|
935
|
-
H === "Escape" && (
|
|
929
|
+
H === "Escape" && (w.preventDefault(), w.stopPropagation()), u(!1, te);
|
|
936
930
|
break;
|
|
937
931
|
}
|
|
938
|
-
}), /* @__PURE__ */ r.jsx(
|
|
932
|
+
}), /* @__PURE__ */ r.jsx(ot.Provider, {
|
|
939
933
|
value: $,
|
|
940
|
-
children: /* @__PURE__ */ r.jsx(
|
|
934
|
+
children: /* @__PURE__ */ r.jsx(Ye.Provider, {
|
|
941
935
|
value: _,
|
|
942
936
|
children: i
|
|
943
937
|
})
|
|
944
938
|
});
|
|
945
939
|
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
const
|
|
940
|
+
Me.displayName = "Dropdown";
|
|
941
|
+
Me.Menu = Qn;
|
|
942
|
+
Me.Toggle = er;
|
|
943
|
+
Me.Item = rr;
|
|
944
|
+
const _t = /* @__PURE__ */ O.createContext({});
|
|
945
|
+
_t.displayName = "DropdownContext";
|
|
946
|
+
const sr = /* @__PURE__ */ O.forwardRef(({
|
|
953
947
|
className: t,
|
|
954
948
|
bsPrefix: e,
|
|
955
949
|
as: n = "hr",
|
|
@@ -961,8 +955,8 @@ const nr = /* @__PURE__ */ E.forwardRef(({
|
|
|
961
955
|
role: s,
|
|
962
956
|
...o
|
|
963
957
|
})));
|
|
964
|
-
|
|
965
|
-
const
|
|
958
|
+
sr.displayName = "DropdownDivider";
|
|
959
|
+
const or = /* @__PURE__ */ O.forwardRef(({
|
|
966
960
|
className: t,
|
|
967
961
|
bsPrefix: e,
|
|
968
962
|
as: n = "div",
|
|
@@ -974,18 +968,18 @@ const rr = /* @__PURE__ */ E.forwardRef(({
|
|
|
974
968
|
role: s,
|
|
975
969
|
...o
|
|
976
970
|
})));
|
|
977
|
-
|
|
978
|
-
const
|
|
971
|
+
or.displayName = "DropdownHeader";
|
|
972
|
+
const ar = /* @__PURE__ */ O.forwardRef(({
|
|
979
973
|
bsPrefix: t,
|
|
980
974
|
className: e,
|
|
981
975
|
eventKey: n,
|
|
982
976
|
disabled: s = !1,
|
|
983
977
|
onClick: o,
|
|
984
978
|
active: a,
|
|
985
|
-
as: l =
|
|
979
|
+
as: l = jt,
|
|
986
980
|
...i
|
|
987
981
|
}, c) => {
|
|
988
|
-
const d = A(t, "dropdown-item"), [u, f] =
|
|
982
|
+
const d = A(t, "dropdown-item"), [u, f] = nr({
|
|
989
983
|
key: n,
|
|
990
984
|
href: i.href,
|
|
991
985
|
disabled: s,
|
|
@@ -999,8 +993,8 @@ const sr = /* @__PURE__ */ E.forwardRef(({
|
|
|
999
993
|
className: g(e, d, f.isActive && "active", s && "disabled")
|
|
1000
994
|
});
|
|
1001
995
|
});
|
|
1002
|
-
|
|
1003
|
-
const
|
|
996
|
+
ar.displayName = "DropdownItem";
|
|
997
|
+
const lr = /* @__PURE__ */ O.forwardRef(({
|
|
1004
998
|
className: t,
|
|
1005
999
|
bsPrefix: e,
|
|
1006
1000
|
as: n = "span",
|
|
@@ -1010,25 +1004,24 @@ const or = /* @__PURE__ */ E.forwardRef(({
|
|
|
1010
1004
|
className: g(t, e),
|
|
1011
1005
|
...s
|
|
1012
1006
|
})));
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
function
|
|
1019
|
-
if (process.env.NODE_ENV === "production")
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
s == null || !s.isReactComponent || (process.env.NODE_ENV !== "production" ? Wt(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Wt(!1));
|
|
1007
|
+
lr.displayName = "DropdownItemText";
|
|
1008
|
+
const Ge = /* @__PURE__ */ O.createContext(null);
|
|
1009
|
+
Ge.displayName = "InputGroupContext";
|
|
1010
|
+
const bt = /* @__PURE__ */ O.createContext(null);
|
|
1011
|
+
bt.displayName = "NavbarContext";
|
|
1012
|
+
function cr(t, e) {
|
|
1013
|
+
if (process.env.NODE_ENV === "production") return t;
|
|
1014
|
+
const n = D((s) => {
|
|
1015
|
+
s == null || !s.isReactComponent || (process.env.NODE_ENV !== "production" ? Vt(!1, `${e} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Vt(!1));
|
|
1023
1016
|
}, [e]);
|
|
1024
|
-
return
|
|
1017
|
+
return ut(n, t);
|
|
1025
1018
|
}
|
|
1026
|
-
function
|
|
1019
|
+
function ir(t, e, n) {
|
|
1027
1020
|
const s = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", l = n ? "bottom-start" : "bottom-end", i = n ? "right-start" : "left-start", c = n ? "right-end" : "left-end", d = n ? "left-start" : "right-start", u = n ? "left-end" : "right-end";
|
|
1028
1021
|
let f = t ? l : a;
|
|
1029
1022
|
return e === "up" ? f = t ? o : s : e === "end" ? f = t ? u : d : e === "start" ? f = t ? c : i : e === "down-centered" ? f = "bottom" : e === "up-centered" && (f = "top"), f;
|
|
1030
1023
|
}
|
|
1031
|
-
const
|
|
1024
|
+
const dr = /* @__PURE__ */ O.forwardRef(({
|
|
1032
1025
|
bsPrefix: t,
|
|
1033
1026
|
className: e,
|
|
1034
1027
|
align: n,
|
|
@@ -1043,28 +1036,27 @@ const cr = /* @__PURE__ */ E.forwardRef(({
|
|
|
1043
1036
|
...u
|
|
1044
1037
|
}, f) => {
|
|
1045
1038
|
let p = !1;
|
|
1046
|
-
const h = W(
|
|
1039
|
+
const h = W(bt), v = A(t, "dropdown-menu"), {
|
|
1047
1040
|
align: y,
|
|
1048
1041
|
drop: x,
|
|
1049
1042
|
isRTL: b
|
|
1050
|
-
} = W(
|
|
1043
|
+
} = W(_t);
|
|
1051
1044
|
n = n || y;
|
|
1052
|
-
const k = W(
|
|
1045
|
+
const k = W(Ge), m = [];
|
|
1053
1046
|
if (n)
|
|
1054
1047
|
if (typeof n == "object") {
|
|
1055
|
-
const
|
|
1056
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1057
|
-
const C =
|
|
1058
|
-
p =
|
|
1048
|
+
const w = Object.keys(n);
|
|
1049
|
+
if (process.env.NODE_ENV !== "production" && hn(w.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), w.length) {
|
|
1050
|
+
const C = w[0], L = n[C];
|
|
1051
|
+
p = L === "start", m.push(`${v}-${C}-${L}`);
|
|
1059
1052
|
}
|
|
1060
|
-
} else
|
|
1061
|
-
|
|
1062
|
-
const N = lr(p, x, b), [w, {
|
|
1053
|
+
} else n === "end" && (p = !0);
|
|
1054
|
+
const N = ir(p, x, b), [j, {
|
|
1063
1055
|
hasShown: $,
|
|
1064
1056
|
popper: _,
|
|
1065
|
-
show:
|
|
1066
|
-
toggle:
|
|
1067
|
-
}] =
|
|
1057
|
+
show: M,
|
|
1058
|
+
toggle: I
|
|
1059
|
+
}] = qn({
|
|
1068
1060
|
flip: o,
|
|
1069
1061
|
rootCloseEvent: s,
|
|
1070
1062
|
show: a,
|
|
@@ -1073,46 +1065,45 @@ const cr = /* @__PURE__ */ E.forwardRef(({
|
|
|
1073
1065
|
popperConfig: c,
|
|
1074
1066
|
placement: N
|
|
1075
1067
|
});
|
|
1076
|
-
if (
|
|
1077
|
-
|
|
1078
|
-
}, [
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
return _ != null && _.placement && (D = {
|
|
1068
|
+
if (j.ref = ut(cr(f, "DropdownMenu"), j.ref), mn(() => {
|
|
1069
|
+
M && (_ == null || _.update());
|
|
1070
|
+
}, [M]), !$ && !l && !k) return null;
|
|
1071
|
+
typeof i != "string" && (j.show = M, j.close = () => I == null ? void 0 : I(!1), j.align = n);
|
|
1072
|
+
let S = u.style;
|
|
1073
|
+
return _ != null && _.placement && (S = {
|
|
1083
1074
|
...u.style,
|
|
1084
|
-
...
|
|
1075
|
+
...j.style
|
|
1085
1076
|
}, u["x-placement"] = _.placement), /* @__PURE__ */ r.jsx(i, {
|
|
1086
1077
|
...u,
|
|
1087
|
-
...
|
|
1088
|
-
style:
|
|
1078
|
+
...j,
|
|
1079
|
+
style: S,
|
|
1089
1080
|
...(m.length || h) && {
|
|
1090
1081
|
"data-bs-popper": "static"
|
|
1091
1082
|
},
|
|
1092
|
-
className: g(e, v,
|
|
1083
|
+
className: g(e, v, M && "show", p && `${v}-end`, d && `${v}-${d}`, ...m)
|
|
1093
1084
|
});
|
|
1094
1085
|
});
|
|
1095
|
-
|
|
1096
|
-
const
|
|
1086
|
+
dr.displayName = "DropdownMenu";
|
|
1087
|
+
const ur = /* @__PURE__ */ O.forwardRef(({
|
|
1097
1088
|
bsPrefix: t,
|
|
1098
1089
|
split: e,
|
|
1099
1090
|
className: n,
|
|
1100
1091
|
childBsPrefix: s,
|
|
1101
1092
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1102
|
-
as: o =
|
|
1093
|
+
as: o = wt,
|
|
1103
1094
|
...a
|
|
1104
1095
|
}, l) => {
|
|
1105
|
-
const i = A(t, "dropdown-toggle"), c = W(
|
|
1096
|
+
const i = A(t, "dropdown-toggle"), c = W(Ye);
|
|
1106
1097
|
s !== void 0 && (a.bsPrefix = s);
|
|
1107
|
-
const [d] =
|
|
1108
|
-
return d.ref =
|
|
1098
|
+
const [d] = Zn();
|
|
1099
|
+
return d.ref = ut(d.ref, cr(l, "DropdownToggle")), /* @__PURE__ */ r.jsx(o, {
|
|
1109
1100
|
className: g(n, i, e && `${i}-split`, (c == null ? void 0 : c.show) && "show"),
|
|
1110
1101
|
...d,
|
|
1111
1102
|
...a
|
|
1112
1103
|
});
|
|
1113
1104
|
});
|
|
1114
|
-
|
|
1115
|
-
const
|
|
1105
|
+
ur.displayName = "DropdownToggle";
|
|
1106
|
+
const fr = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
1116
1107
|
const {
|
|
1117
1108
|
bsPrefix: n,
|
|
1118
1109
|
drop: s = "down",
|
|
@@ -1127,12 +1118,12 @@ const dr = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
1127
1118
|
navbar: f,
|
|
1128
1119
|
autoClose: p = !0,
|
|
1129
1120
|
...h
|
|
1130
|
-
} =
|
|
1121
|
+
} = pn(t, {
|
|
1131
1122
|
show: "onToggle"
|
|
1132
|
-
}), v = W(
|
|
1133
|
-
var
|
|
1134
|
-
!((
|
|
1135
|
-
}), N =
|
|
1123
|
+
}), v = W(Ge), y = A(n, "dropdown"), x = is(), b = (_) => p === !1 ? _ === "click" : p === "inside" ? _ !== "rootClose" : p === "outside" ? _ !== "select" : !0, k = ue((_, M) => {
|
|
1124
|
+
var I;
|
|
1125
|
+
!((I = M.originalEvent) == null || (I = I.target) == null) && I.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), b(M.source) && (c == null || c(_, M)));
|
|
1126
|
+
}), N = ir(l === "end", s, x), j = z(() => ({
|
|
1136
1127
|
align: l,
|
|
1137
1128
|
drop: s,
|
|
1138
1129
|
isRTL: x
|
|
@@ -1144,9 +1135,9 @@ const dr = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
1144
1135
|
end: "dropend",
|
|
1145
1136
|
start: "dropstart"
|
|
1146
1137
|
};
|
|
1147
|
-
return /* @__PURE__ */ r.jsx(
|
|
1148
|
-
value:
|
|
1149
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1138
|
+
return /* @__PURE__ */ r.jsx(_t.Provider, {
|
|
1139
|
+
value: j,
|
|
1140
|
+
children: /* @__PURE__ */ r.jsx(Me, {
|
|
1150
1141
|
placement: N,
|
|
1151
1142
|
show: o,
|
|
1152
1143
|
onSelect: i,
|
|
@@ -1161,15 +1152,15 @@ const dr = /* @__PURE__ */ E.forwardRef((t, e) => {
|
|
|
1161
1152
|
})
|
|
1162
1153
|
});
|
|
1163
1154
|
});
|
|
1164
|
-
|
|
1165
|
-
const
|
|
1166
|
-
Toggle:
|
|
1167
|
-
Menu:
|
|
1168
|
-
Item:
|
|
1169
|
-
ItemText:
|
|
1170
|
-
Divider:
|
|
1171
|
-
Header:
|
|
1172
|
-
}),
|
|
1155
|
+
fr.displayName = "Dropdown";
|
|
1156
|
+
const Oe = Object.assign(fr, {
|
|
1157
|
+
Toggle: ur,
|
|
1158
|
+
Menu: dr,
|
|
1159
|
+
Item: ar,
|
|
1160
|
+
ItemText: lr,
|
|
1161
|
+
Divider: sr,
|
|
1162
|
+
Header: or
|
|
1163
|
+
}), Fe = /* @__PURE__ */ O.forwardRef(({
|
|
1173
1164
|
id: t,
|
|
1174
1165
|
bsPrefix: e,
|
|
1175
1166
|
className: n,
|
|
@@ -1191,8 +1182,8 @@ const Ee = Object.assign(dr, {
|
|
|
1191
1182
|
className: g(n, e, o && "is-valid", a && "is-invalid")
|
|
1192
1183
|
});
|
|
1193
1184
|
});
|
|
1194
|
-
|
|
1195
|
-
const
|
|
1185
|
+
Fe.displayName = "FormCheckInput";
|
|
1186
|
+
const Pe = /* @__PURE__ */ O.forwardRef(({
|
|
1196
1187
|
bsPrefix: t,
|
|
1197
1188
|
className: e,
|
|
1198
1189
|
htmlFor: n,
|
|
@@ -1208,8 +1199,8 @@ const He = /* @__PURE__ */ E.forwardRef(({
|
|
|
1208
1199
|
className: g(e, t)
|
|
1209
1200
|
});
|
|
1210
1201
|
});
|
|
1211
|
-
|
|
1212
|
-
const
|
|
1202
|
+
Pe.displayName = "FormCheckLabel";
|
|
1203
|
+
const pr = /* @__PURE__ */ O.forwardRef(({
|
|
1213
1204
|
id: t,
|
|
1214
1205
|
bsPrefix: e,
|
|
1215
1206
|
bsSwitchPrefix: n,
|
|
@@ -1234,9 +1225,9 @@ const ur = /* @__PURE__ */ E.forwardRef(({
|
|
|
1234
1225
|
e = A(e, "form-check"), n = A(n, "form-switch");
|
|
1235
1226
|
const {
|
|
1236
1227
|
controlId: N
|
|
1237
|
-
} = W($e),
|
|
1228
|
+
} = W($e), j = z(() => ({
|
|
1238
1229
|
controlId: t || N
|
|
1239
|
-
}), [N, t]), $ = !x && y != null && y !== !1 ||
|
|
1230
|
+
}), [N, t]), $ = !x && y != null && y !== !1 || ho(x, Pe), _ = /* @__PURE__ */ r.jsx(Fe, {
|
|
1240
1231
|
...k,
|
|
1241
1232
|
type: v === "switch" ? "checkbox" : v,
|
|
1242
1233
|
ref: m,
|
|
@@ -1246,15 +1237,15 @@ const ur = /* @__PURE__ */ E.forwardRef(({
|
|
|
1246
1237
|
as: b
|
|
1247
1238
|
});
|
|
1248
1239
|
return /* @__PURE__ */ r.jsx($e.Provider, {
|
|
1249
|
-
value:
|
|
1240
|
+
value: j,
|
|
1250
1241
|
children: /* @__PURE__ */ r.jsx("div", {
|
|
1251
1242
|
style: p,
|
|
1252
1243
|
className: g(f, $ && e, s && `${e}-inline`, o && `${e}-reverse`, v === "switch" && n),
|
|
1253
1244
|
children: x || /* @__PURE__ */ r.jsxs(r.Fragment, {
|
|
1254
|
-
children: [_, $ && /* @__PURE__ */ r.jsx(
|
|
1245
|
+
children: [_, $ && /* @__PURE__ */ r.jsx(Pe, {
|
|
1255
1246
|
title: h,
|
|
1256
1247
|
children: y
|
|
1257
|
-
}), d && /* @__PURE__ */ r.jsx(
|
|
1248
|
+
}), d && /* @__PURE__ */ r.jsx(Os, {
|
|
1258
1249
|
type: u,
|
|
1259
1250
|
tooltip: c,
|
|
1260
1251
|
children: d
|
|
@@ -1263,11 +1254,11 @@ const ur = /* @__PURE__ */ E.forwardRef(({
|
|
|
1263
1254
|
})
|
|
1264
1255
|
});
|
|
1265
1256
|
});
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1268
|
-
Input:
|
|
1269
|
-
Label:
|
|
1270
|
-
}),
|
|
1257
|
+
pr.displayName = "FormCheck";
|
|
1258
|
+
const Ve = Object.assign(pr, {
|
|
1259
|
+
Input: Fe,
|
|
1260
|
+
Label: Pe
|
|
1261
|
+
}), hr = /* @__PURE__ */ O.forwardRef(({
|
|
1271
1262
|
className: t,
|
|
1272
1263
|
bsPrefix: e,
|
|
1273
1264
|
as: n = "div",
|
|
@@ -1277,8 +1268,8 @@ const We = Object.assign(ur, {
|
|
|
1277
1268
|
className: g(t, e),
|
|
1278
1269
|
...s
|
|
1279
1270
|
})));
|
|
1280
|
-
|
|
1281
|
-
const
|
|
1271
|
+
hr.displayName = "FormFloating";
|
|
1272
|
+
const mr = /* @__PURE__ */ O.forwardRef(({
|
|
1282
1273
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1283
1274
|
as: t = "label",
|
|
1284
1275
|
bsPrefix: e,
|
|
@@ -1295,7 +1286,7 @@ const pr = /* @__PURE__ */ E.forwardRef(({
|
|
|
1295
1286
|
let d = "col-form-label";
|
|
1296
1287
|
typeof n == "string" && (d = `${d} ${d}-${n}`);
|
|
1297
1288
|
const u = g(o, e, s && "visually-hidden", n && d);
|
|
1298
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1289
|
+
return process.env.NODE_ENV !== "production" && hn(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, n ? /* @__PURE__ */ r.jsx(Kn, {
|
|
1299
1290
|
ref: i,
|
|
1300
1291
|
as: "label",
|
|
1301
1292
|
className: u,
|
|
@@ -1311,8 +1302,8 @@ const pr = /* @__PURE__ */ E.forwardRef(({
|
|
|
1311
1302
|
})
|
|
1312
1303
|
);
|
|
1313
1304
|
});
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1305
|
+
mr.displayName = "FormLabel";
|
|
1306
|
+
const gr = /* @__PURE__ */ O.forwardRef(({
|
|
1316
1307
|
bsPrefix: t,
|
|
1317
1308
|
className: e,
|
|
1318
1309
|
id: n,
|
|
@@ -1329,8 +1320,8 @@ const hr = /* @__PURE__ */ E.forwardRef(({
|
|
|
1329
1320
|
id: n || a
|
|
1330
1321
|
});
|
|
1331
1322
|
});
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1323
|
+
gr.displayName = "FormRange";
|
|
1324
|
+
const xr = /* @__PURE__ */ O.forwardRef(({
|
|
1334
1325
|
bsPrefix: t,
|
|
1335
1326
|
size: e,
|
|
1336
1327
|
htmlSize: n,
|
|
@@ -1351,8 +1342,8 @@ const mr = /* @__PURE__ */ E.forwardRef(({
|
|
|
1351
1342
|
id: l || d
|
|
1352
1343
|
});
|
|
1353
1344
|
});
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1345
|
+
xr.displayName = "FormSelect";
|
|
1346
|
+
const vr = /* @__PURE__ */ O.forwardRef(
|
|
1356
1347
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1357
1348
|
({
|
|
1358
1349
|
bsPrefix: t,
|
|
@@ -1366,17 +1357,17 @@ const gr = /* @__PURE__ */ E.forwardRef(
|
|
|
1366
1357
|
className: g(e, t, s && "text-muted")
|
|
1367
1358
|
}))
|
|
1368
1359
|
);
|
|
1369
|
-
|
|
1370
|
-
const
|
|
1360
|
+
vr.displayName = "FormText";
|
|
1361
|
+
const jr = /* @__PURE__ */ O.forwardRef((t, e) => /* @__PURE__ */ r.jsx(Ve, {
|
|
1371
1362
|
...t,
|
|
1372
1363
|
ref: e,
|
|
1373
1364
|
type: "switch"
|
|
1374
1365
|
}));
|
|
1375
|
-
|
|
1376
|
-
const
|
|
1377
|
-
Input:
|
|
1378
|
-
Label:
|
|
1379
|
-
}),
|
|
1366
|
+
jr.displayName = "Switch";
|
|
1367
|
+
const Oo = Object.assign(jr, {
|
|
1368
|
+
Input: Ve.Input,
|
|
1369
|
+
Label: Ve.Label
|
|
1370
|
+
}), Mo = {
|
|
1380
1371
|
/**
|
|
1381
1372
|
* The Form `ref` will be forwarded to the underlying element,
|
|
1382
1373
|
* which means, unless it's rendered `as` a composite component,
|
|
@@ -1392,7 +1383,7 @@ const Eo = Object.assign(xr, {
|
|
|
1392
1383
|
*/
|
|
1393
1384
|
validated: Ne.bool,
|
|
1394
1385
|
as: Ne.elementType
|
|
1395
|
-
},
|
|
1386
|
+
}, Nt = /* @__PURE__ */ O.forwardRef(({
|
|
1396
1387
|
className: t,
|
|
1397
1388
|
validated: e,
|
|
1398
1389
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1403,20 +1394,20 @@ const Eo = Object.assign(xr, {
|
|
|
1403
1394
|
ref: o,
|
|
1404
1395
|
className: g(t, e && "was-validated")
|
|
1405
1396
|
}));
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
const ee = Object.assign(
|
|
1409
|
-
Group:
|
|
1410
|
-
Control:
|
|
1411
|
-
Floating:
|
|
1412
|
-
Check:
|
|
1413
|
-
Switch:
|
|
1414
|
-
Label:
|
|
1415
|
-
Text:
|
|
1416
|
-
Range:
|
|
1417
|
-
Select:
|
|
1418
|
-
FloatingLabel:
|
|
1419
|
-
}),
|
|
1397
|
+
Nt.displayName = "Form";
|
|
1398
|
+
Nt.propTypes = Mo;
|
|
1399
|
+
const ee = Object.assign(Nt, {
|
|
1400
|
+
Group: ds,
|
|
1401
|
+
Control: Nn,
|
|
1402
|
+
Floating: hr,
|
|
1403
|
+
Check: Ve,
|
|
1404
|
+
Switch: Oo,
|
|
1405
|
+
Label: mr,
|
|
1406
|
+
Text: vr,
|
|
1407
|
+
Range: gr,
|
|
1408
|
+
Select: xr,
|
|
1409
|
+
FloatingLabel: us
|
|
1410
|
+
}), Ue = /* @__PURE__ */ O.forwardRef(({
|
|
1420
1411
|
className: t,
|
|
1421
1412
|
bsPrefix: e,
|
|
1422
1413
|
as: n = "span",
|
|
@@ -1426,18 +1417,18 @@ const ee = Object.assign(_t, {
|
|
|
1426
1417
|
className: g(t, e),
|
|
1427
1418
|
...s
|
|
1428
1419
|
})));
|
|
1429
|
-
|
|
1430
|
-
const
|
|
1431
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1420
|
+
Ue.displayName = "InputGroupText";
|
|
1421
|
+
const Fo = (t) => /* @__PURE__ */ r.jsx(Ue, {
|
|
1422
|
+
children: /* @__PURE__ */ r.jsx(Fe, {
|
|
1432
1423
|
type: "checkbox",
|
|
1433
1424
|
...t
|
|
1434
1425
|
})
|
|
1435
|
-
}),
|
|
1436
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1426
|
+
}), To = (t) => /* @__PURE__ */ r.jsx(Ue, {
|
|
1427
|
+
children: /* @__PURE__ */ r.jsx(Fe, {
|
|
1437
1428
|
type: "radio",
|
|
1438
1429
|
...t
|
|
1439
1430
|
})
|
|
1440
|
-
}),
|
|
1431
|
+
}), wr = /* @__PURE__ */ O.forwardRef(({
|
|
1441
1432
|
bsPrefix: t,
|
|
1442
1433
|
size: e,
|
|
1443
1434
|
hasValidation: n,
|
|
@@ -1448,7 +1439,7 @@ const Mo = (t) => /* @__PURE__ */ r.jsx(Ye, {
|
|
|
1448
1439
|
}, l) => {
|
|
1449
1440
|
t = A(t, "input-group");
|
|
1450
1441
|
const i = z(() => ({}), []);
|
|
1451
|
-
return /* @__PURE__ */ r.jsx(
|
|
1442
|
+
return /* @__PURE__ */ r.jsx(Ge.Provider, {
|
|
1452
1443
|
value: i,
|
|
1453
1444
|
children: /* @__PURE__ */ r.jsx(o, {
|
|
1454
1445
|
ref: l,
|
|
@@ -1457,26 +1448,25 @@ const Mo = (t) => /* @__PURE__ */ r.jsx(Ye, {
|
|
|
1457
1448
|
})
|
|
1458
1449
|
});
|
|
1459
1450
|
});
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
Text:
|
|
1463
|
-
Radio:
|
|
1464
|
-
Checkbox:
|
|
1465
|
-
}),
|
|
1466
|
-
if (!t || !e)
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
st.set(e, n);
|
|
1451
|
+
wr.displayName = "InputGroup";
|
|
1452
|
+
const Ze = Object.assign(wr, {
|
|
1453
|
+
Text: Ue,
|
|
1454
|
+
Radio: To,
|
|
1455
|
+
Checkbox: Fo
|
|
1456
|
+
}), at = /* @__PURE__ */ new WeakMap(), Kt = (t, e) => {
|
|
1457
|
+
if (!t || !e) return;
|
|
1458
|
+
const n = at.get(e) || /* @__PURE__ */ new Map();
|
|
1459
|
+
at.set(e, n);
|
|
1470
1460
|
let s = n.get(t);
|
|
1471
1461
|
return s || (s = e.matchMedia(t), s.refCount = 0, n.set(s.media, s)), s;
|
|
1472
1462
|
};
|
|
1473
|
-
function
|
|
1474
|
-
const n =
|
|
1475
|
-
return
|
|
1476
|
-
let a =
|
|
1463
|
+
function Ro(t, e = typeof window > "u" ? void 0 : window) {
|
|
1464
|
+
const n = Kt(t, e), [s, o] = E(() => n ? n.matches : !1);
|
|
1465
|
+
return mn(() => {
|
|
1466
|
+
let a = Kt(t, e);
|
|
1477
1467
|
if (!a)
|
|
1478
1468
|
return o(!1);
|
|
1479
|
-
let l =
|
|
1469
|
+
let l = at.get(e);
|
|
1480
1470
|
const i = () => {
|
|
1481
1471
|
o(a.matches);
|
|
1482
1472
|
};
|
|
@@ -1485,7 +1475,7 @@ function To(t, e = typeof window > "u" ? void 0 : window) {
|
|
|
1485
1475
|
};
|
|
1486
1476
|
}, [t]), s;
|
|
1487
1477
|
}
|
|
1488
|
-
function
|
|
1478
|
+
function Bo(t) {
|
|
1489
1479
|
const e = Object.keys(t);
|
|
1490
1480
|
function n(i, c) {
|
|
1491
1481
|
return i === c ? c : i ? `${i} and ${c}` : c;
|
|
@@ -1508,18 +1498,18 @@ function Ro(t) {
|
|
|
1508
1498
|
[i]: c
|
|
1509
1499
|
});
|
|
1510
1500
|
let f = z(() => Object.entries(u).reduce((p, [h, v]) => ((v === "up" || v === !0) && (p = n(p, a(h))), (v === "down" || v === !0) && (p = n(p, o(h))), p), ""), [JSON.stringify(u)]);
|
|
1511
|
-
return
|
|
1501
|
+
return Ro(f, d);
|
|
1512
1502
|
}
|
|
1513
1503
|
return l;
|
|
1514
1504
|
}
|
|
1515
|
-
const Lo =
|
|
1505
|
+
const Lo = Bo({
|
|
1516
1506
|
xs: 0,
|
|
1517
1507
|
sm: 576,
|
|
1518
1508
|
md: 768,
|
|
1519
1509
|
lg: 992,
|
|
1520
1510
|
xl: 1200,
|
|
1521
1511
|
xxl: 1400
|
|
1522
|
-
}),
|
|
1512
|
+
}), yr = /* @__PURE__ */ O.forwardRef(({
|
|
1523
1513
|
className: t,
|
|
1524
1514
|
bsPrefix: e,
|
|
1525
1515
|
as: n = "div",
|
|
@@ -1529,11 +1519,11 @@ const Lo = Ro({
|
|
|
1529
1519
|
className: g(t, e),
|
|
1530
1520
|
...s
|
|
1531
1521
|
})));
|
|
1532
|
-
|
|
1533
|
-
const
|
|
1534
|
-
[
|
|
1535
|
-
[
|
|
1536
|
-
},
|
|
1522
|
+
yr.displayName = "OffcanvasBody";
|
|
1523
|
+
const Ao = {
|
|
1524
|
+
[dt]: "show",
|
|
1525
|
+
[fn]: "show"
|
|
1526
|
+
}, _r = /* @__PURE__ */ O.forwardRef(({
|
|
1537
1527
|
bsPrefix: t,
|
|
1538
1528
|
className: e,
|
|
1539
1529
|
children: n,
|
|
@@ -1542,57 +1532,57 @@ const Bo = {
|
|
|
1542
1532
|
unmountOnExit: a = !1,
|
|
1543
1533
|
appear: l = !1,
|
|
1544
1534
|
...i
|
|
1545
|
-
}, c) => (t = A(t, "offcanvas"), /* @__PURE__ */ r.jsx(
|
|
1535
|
+
}, c) => (t = A(t, "offcanvas"), /* @__PURE__ */ r.jsx(cn, {
|
|
1546
1536
|
ref: c,
|
|
1547
|
-
addEndListener:
|
|
1537
|
+
addEndListener: dn,
|
|
1548
1538
|
in: s,
|
|
1549
1539
|
mountOnEnter: o,
|
|
1550
1540
|
unmountOnExit: a,
|
|
1551
1541
|
appear: l,
|
|
1552
1542
|
...i,
|
|
1553
1543
|
childRef: n.ref,
|
|
1554
|
-
children: (d, u) => /* @__PURE__ */
|
|
1544
|
+
children: (d, u) => /* @__PURE__ */ O.cloneElement(n, {
|
|
1555
1545
|
...u,
|
|
1556
|
-
className: g(e, n.props.className, (d ===
|
|
1546
|
+
className: g(e, n.props.className, (d === dt || d === un) && `${t}-toggling`, Ao[d])
|
|
1557
1547
|
})
|
|
1558
1548
|
})));
|
|
1559
|
-
|
|
1560
|
-
const
|
|
1549
|
+
_r.displayName = "OffcanvasToggling";
|
|
1550
|
+
const br = /* @__PURE__ */ O.forwardRef(({
|
|
1561
1551
|
bsPrefix: t,
|
|
1562
1552
|
className: e,
|
|
1563
1553
|
closeLabel: n = "Close",
|
|
1564
1554
|
closeButton: s = !1,
|
|
1565
1555
|
...o
|
|
1566
|
-
}, a) => (t = A(t, "offcanvas-header"), /* @__PURE__ */ r.jsx(
|
|
1556
|
+
}, a) => (t = A(t, "offcanvas-header"), /* @__PURE__ */ r.jsx(Ms, {
|
|
1567
1557
|
ref: a,
|
|
1568
1558
|
...o,
|
|
1569
1559
|
className: g(e, t),
|
|
1570
1560
|
closeLabel: n,
|
|
1571
1561
|
closeButton: s
|
|
1572
1562
|
})));
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1563
|
+
br.displayName = "OffcanvasHeader";
|
|
1564
|
+
const Ho = ze("h5"), Nr = /* @__PURE__ */ O.forwardRef(({
|
|
1575
1565
|
className: t,
|
|
1576
1566
|
bsPrefix: e,
|
|
1577
|
-
as: n =
|
|
1567
|
+
as: n = Ho,
|
|
1578
1568
|
...s
|
|
1579
1569
|
}, o) => (e = A(e, "offcanvas-title"), /* @__PURE__ */ r.jsx(n, {
|
|
1580
1570
|
ref: o,
|
|
1581
1571
|
className: g(t, e),
|
|
1582
1572
|
...s
|
|
1583
1573
|
})));
|
|
1584
|
-
|
|
1585
|
-
function
|
|
1586
|
-
return /* @__PURE__ */ r.jsx(
|
|
1574
|
+
Nr.displayName = "OffcanvasTitle";
|
|
1575
|
+
function Wo(t) {
|
|
1576
|
+
return /* @__PURE__ */ r.jsx(_r, {
|
|
1587
1577
|
...t
|
|
1588
1578
|
});
|
|
1589
1579
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return /* @__PURE__ */ r.jsx(
|
|
1580
|
+
function Po(t) {
|
|
1581
|
+
return /* @__PURE__ */ r.jsx(st, {
|
|
1592
1582
|
...t
|
|
1593
1583
|
});
|
|
1594
1584
|
}
|
|
1595
|
-
const
|
|
1585
|
+
const $r = /* @__PURE__ */ O.forwardRef(({
|
|
1596
1586
|
bsPrefix: t,
|
|
1597
1587
|
className: e,
|
|
1598
1588
|
children: n,
|
|
@@ -1615,19 +1605,19 @@ const br = /* @__PURE__ */ E.forwardRef(({
|
|
|
1615
1605
|
onEntered: k,
|
|
1616
1606
|
onExit: m,
|
|
1617
1607
|
onExiting: N,
|
|
1618
|
-
onEnter:
|
|
1608
|
+
onEnter: j,
|
|
1619
1609
|
onEntering: $,
|
|
1620
1610
|
onExited: _,
|
|
1621
|
-
backdropClassName:
|
|
1622
|
-
manager:
|
|
1623
|
-
renderStaticNode:
|
|
1624
|
-
...
|
|
1611
|
+
backdropClassName: M,
|
|
1612
|
+
manager: I,
|
|
1613
|
+
renderStaticNode: S = !1,
|
|
1614
|
+
...w
|
|
1625
1615
|
}, C) => {
|
|
1626
|
-
const
|
|
1616
|
+
const L = V();
|
|
1627
1617
|
t = A(t, "offcanvas");
|
|
1628
1618
|
const {
|
|
1629
1619
|
onToggle: H
|
|
1630
|
-
} = W(
|
|
1620
|
+
} = W(bt) || {}, [Q, K] = E(!1), R = Lo(a || "xs", "up");
|
|
1631
1621
|
T(() => {
|
|
1632
1622
|
K(a ? l && !R : l);
|
|
1633
1623
|
}, [l, a, R]);
|
|
@@ -1637,28 +1627,28 @@ const br = /* @__PURE__ */ E.forwardRef(({
|
|
|
1637
1627
|
onHide: U
|
|
1638
1628
|
}), [U]);
|
|
1639
1629
|
function q() {
|
|
1640
|
-
return
|
|
1630
|
+
return I || (d ? (L.current || (L.current = new Rs({
|
|
1641
1631
|
handleContainerOverflow: !1
|
|
1642
|
-
})),
|
|
1632
|
+
})), L.current) : Bs());
|
|
1643
1633
|
}
|
|
1644
1634
|
const F = (ne, ...ie) => {
|
|
1645
|
-
ne && (ne.style.visibility = "visible"),
|
|
1635
|
+
ne && (ne.style.visibility = "visible"), j == null || j(ne, ...ie);
|
|
1646
1636
|
}, J = (ne, ...ie) => {
|
|
1647
1637
|
ne && (ne.style.visibility = ""), _ == null || _(...ie);
|
|
1648
|
-
}, re =
|
|
1638
|
+
}, re = D((ne) => /* @__PURE__ */ r.jsx("div", {
|
|
1649
1639
|
...ne,
|
|
1650
|
-
className: g(`${t}-backdrop`,
|
|
1651
|
-
}), [
|
|
1640
|
+
className: g(`${t}-backdrop`, M)
|
|
1641
|
+
}), [M, t]), je = (ne) => /* @__PURE__ */ r.jsx("div", {
|
|
1652
1642
|
...ne,
|
|
1653
|
-
...
|
|
1643
|
+
...w,
|
|
1654
1644
|
className: g(e, a ? `${t}-${a}` : t, `${t}-${o}`),
|
|
1655
1645
|
"aria-labelledby": s,
|
|
1656
1646
|
children: n
|
|
1657
1647
|
});
|
|
1658
1648
|
return /* @__PURE__ */ r.jsxs(r.Fragment, {
|
|
1659
|
-
children: [!Q && (a ||
|
|
1649
|
+
children: [!Q && (a || S) && je({}), /* @__PURE__ */ r.jsx(Fs.Provider, {
|
|
1660
1650
|
value: te,
|
|
1661
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1651
|
+
children: /* @__PURE__ */ r.jsx(Ts, {
|
|
1662
1652
|
show: Q,
|
|
1663
1653
|
ref: C,
|
|
1664
1654
|
backdrop: i,
|
|
@@ -1678,21 +1668,21 @@ const br = /* @__PURE__ */ E.forwardRef(({
|
|
|
1678
1668
|
onExiting: N,
|
|
1679
1669
|
onExited: J,
|
|
1680
1670
|
manager: q(),
|
|
1681
|
-
transition:
|
|
1682
|
-
backdropTransition:
|
|
1671
|
+
transition: Wo,
|
|
1672
|
+
backdropTransition: Po,
|
|
1683
1673
|
renderBackdrop: re,
|
|
1684
1674
|
renderDialog: je
|
|
1685
1675
|
})
|
|
1686
1676
|
})]
|
|
1687
1677
|
});
|
|
1688
1678
|
});
|
|
1689
|
-
|
|
1690
|
-
const
|
|
1691
|
-
Body:
|
|
1692
|
-
Header:
|
|
1693
|
-
Title:
|
|
1679
|
+
$r.displayName = "Offcanvas";
|
|
1680
|
+
const qt = Object.assign($r, {
|
|
1681
|
+
Body: yr,
|
|
1682
|
+
Header: br,
|
|
1683
|
+
Title: Nr
|
|
1694
1684
|
});
|
|
1695
|
-
function
|
|
1685
|
+
function kr({
|
|
1696
1686
|
animation: t,
|
|
1697
1687
|
bg: e,
|
|
1698
1688
|
bsPrefix: n,
|
|
@@ -1703,36 +1693,36 @@ function Nr({
|
|
|
1703
1693
|
const [{
|
|
1704
1694
|
className: a,
|
|
1705
1695
|
...l
|
|
1706
|
-
}] =
|
|
1696
|
+
}] = Un(o);
|
|
1707
1697
|
return {
|
|
1708
1698
|
...l,
|
|
1709
1699
|
className: g(a, t ? `${n}-${t}` : n, s && `${n}-${s}`, e && `bg-${e}`)
|
|
1710
1700
|
};
|
|
1711
1701
|
}
|
|
1712
|
-
const
|
|
1713
|
-
const n =
|
|
1714
|
-
return /* @__PURE__ */ r.jsx(
|
|
1702
|
+
const Cr = /* @__PURE__ */ O.forwardRef((t, e) => {
|
|
1703
|
+
const n = kr(t);
|
|
1704
|
+
return /* @__PURE__ */ r.jsx(wt, {
|
|
1715
1705
|
...n,
|
|
1716
1706
|
ref: e,
|
|
1717
1707
|
disabled: !0,
|
|
1718
1708
|
tabIndex: -1
|
|
1719
1709
|
});
|
|
1720
1710
|
});
|
|
1721
|
-
|
|
1722
|
-
const
|
|
1711
|
+
Cr.displayName = "PlaceholderButton";
|
|
1712
|
+
const Dr = /* @__PURE__ */ O.forwardRef(({
|
|
1723
1713
|
as: t = "span",
|
|
1724
1714
|
...e
|
|
1725
1715
|
}, n) => {
|
|
1726
|
-
const s =
|
|
1716
|
+
const s = kr(e);
|
|
1727
1717
|
return /* @__PURE__ */ r.jsx(t, {
|
|
1728
1718
|
...s,
|
|
1729
1719
|
ref: n
|
|
1730
1720
|
});
|
|
1731
1721
|
});
|
|
1732
|
-
|
|
1733
|
-
const me = Object.assign(
|
|
1734
|
-
Button:
|
|
1735
|
-
}),
|
|
1722
|
+
Dr.displayName = "Placeholder";
|
|
1723
|
+
const me = Object.assign(Dr, {
|
|
1724
|
+
Button: Cr
|
|
1725
|
+
}), $t = /* @__PURE__ */ O.forwardRef(({
|
|
1736
1726
|
bsPrefix: t,
|
|
1737
1727
|
variant: e,
|
|
1738
1728
|
animation: n = "border",
|
|
@@ -1750,73 +1740,67 @@ const me = Object.assign(kr, {
|
|
|
1750
1740
|
className: g(a, c, s && `${c}-${s}`, e && `text-${e}`)
|
|
1751
1741
|
});
|
|
1752
1742
|
});
|
|
1753
|
-
|
|
1754
|
-
const
|
|
1755
|
-
/* @__PURE__ */ r.jsx(
|
|
1756
|
-
/* @__PURE__ */ r.jsx(
|
|
1757
|
-
] }), trigger: o ?? "hover", rootClose: !0, show: a.controlled ? a.isOpen : void 0, onToggle: a.controlled ? (l) => a.setIsOpen(l) : void 0, children: s }),
|
|
1758
|
-
const {
|
|
1759
|
-
return /* @__PURE__ */ r.jsxs(
|
|
1760
|
-
/* @__PURE__ */ r.jsxs(
|
|
1761
|
-
/* @__PURE__ */ r.jsx(
|
|
1743
|
+
$t.displayName = "Spinner";
|
|
1744
|
+
const Ec = ({ heading: t, content: e, placement: n, children: s, trigger: o, ...a }) => /* @__PURE__ */ r.jsx(fs, { placement: n, overlay: /* @__PURE__ */ r.jsxs(Ke, { className: "luminus-popover", onClick: (l) => l.stopPropagation(), children: [
|
|
1745
|
+
/* @__PURE__ */ r.jsx(Ke.Header, { children: typeof t == "string" ? /* @__PURE__ */ r.jsx(Y, { variant: "h6", className: "text-primary", children: t }) : t }),
|
|
1746
|
+
/* @__PURE__ */ r.jsx(Ke.Body, { children: e })
|
|
1747
|
+
] }), trigger: o ?? "hover", rootClose: !0, show: a.controlled ? a.isOpen : void 0, onToggle: a.controlled ? (l) => a.setIsOpen(l) : void 0, children: s }), Vo = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
1748
|
+
const { texts: { formSubmit: s } } = W(ce);
|
|
1749
|
+
return /* @__PURE__ */ r.jsxs(nc, { noSpacer: n, children: [
|
|
1750
|
+
/* @__PURE__ */ r.jsxs(Mt, { as: "button", color: "primary", size: "lg", type: "submit", children: [
|
|
1751
|
+
/* @__PURE__ */ r.jsx(ps, {}),
|
|
1762
1752
|
t
|
|
1763
1753
|
] }),
|
|
1764
|
-
e && /* @__PURE__ */ r.jsxs(
|
|
1765
|
-
/* @__PURE__ */ r.jsx(
|
|
1754
|
+
e && /* @__PURE__ */ r.jsxs(Mt, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
|
|
1755
|
+
/* @__PURE__ */ r.jsx(hs, {}),
|
|
1766
1756
|
s.storno
|
|
1767
1757
|
] })
|
|
1768
1758
|
] });
|
|
1769
|
-
},
|
|
1770
|
-
button:
|
|
1771
|
-
},
|
|
1759
|
+
}, zo = "_button_1r3i0_1", lt = {
|
|
1760
|
+
button: zo
|
|
1761
|
+
}, ct = ({
|
|
1772
1762
|
color: t = "primary",
|
|
1773
1763
|
// icon = <MdOutlineArrowOutward size={10} />,
|
|
1774
1764
|
icon: e,
|
|
1775
1765
|
className: n,
|
|
1776
1766
|
children: s,
|
|
1777
1767
|
...o
|
|
1778
|
-
}) => {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
s
|
|
1786
|
-
] }) : null;
|
|
1787
|
-
}, Cr = ({ color: t = "primary", icon: e = /* @__PURE__ */ r.jsx(hn, { size: 12 }), inputId: n = "context-file-input", accept: s = "*", onUpload: o, className: a, children: l, multiple: i, ...c }) => {
|
|
1768
|
+
}) => o.as === "link" ? /* @__PURE__ */ r.jsxs(ke, { to: o.href ?? "/", className: g(`luminus-context-button btn text-${t} ${n ?? ""}`, lt.button), ...o, children: [
|
|
1769
|
+
e,
|
|
1770
|
+
s
|
|
1771
|
+
] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ r.jsxs("button", { type: "button", className: g(`luminus-context-button btn text-${t} ${n ?? ""}`, lt.button), ...o, children: [
|
|
1772
|
+
e,
|
|
1773
|
+
s
|
|
1774
|
+
] }) : null, Ir = ({ color: t = "primary", icon: e = /* @__PURE__ */ r.jsx(gn, { size: 12 }), inputId: n = "context-file-input", accept: s = "*", onUpload: o, className: a, children: l, multiple: i, ...c }) => {
|
|
1788
1775
|
const d = (u) => {
|
|
1789
1776
|
u.target.files && (o(u.target.files), u.target.value = "");
|
|
1790
1777
|
};
|
|
1791
1778
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1792
|
-
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: g(`luminus-context-button btn text-${t} ${a ?? ""}`,
|
|
1779
|
+
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: g(`luminus-context-button btn text-${t} ${a ?? ""}`, lt.button), ...c, children: [
|
|
1793
1780
|
e,
|
|
1794
1781
|
l
|
|
1795
1782
|
] }),
|
|
1796
1783
|
/* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: s, onChange: d, hidden: !0, multiple: i })
|
|
1797
1784
|
] });
|
|
1798
|
-
},
|
|
1785
|
+
}, Yo = "_icon-button_15e26_1", Go = "_sm_15e26_14", Uo = "_md_15e26_23", Ko = "_lg_15e26_32", Be = {
|
|
1799
1786
|
"icon-button": "_icon-button_15e26_1",
|
|
1800
|
-
iconButton:
|
|
1801
|
-
sm:
|
|
1802
|
-
md:
|
|
1803
|
-
lg:
|
|
1804
|
-
}, G = ({ type: t = "button", color: e = "primary", size: n = "md", children: s, className: o, ...a }) => {
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
{
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
}, Ec = ({ month: t, onChangeMonth: e, locale: n, yearMin: s = 2e3, yearMax: o = 2050 }) => {
|
|
1818
|
-
const a = I((c) => {
|
|
1819
|
-
const d = Cn(t, c);
|
|
1787
|
+
iconButton: Yo,
|
|
1788
|
+
sm: Go,
|
|
1789
|
+
md: Uo,
|
|
1790
|
+
lg: Ko
|
|
1791
|
+
}, G = ({ type: t = "button", color: e = "primary", size: n = "md", children: s, className: o, ...a }) => a.as === "link" ? /* @__PURE__ */ r.jsx(ke, { to: a.href ?? "/", className: g(`luminus-icon-button btn text-${e} ${o ?? ""}`, Be.iconButton, Be[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx(
|
|
1792
|
+
"button",
|
|
1793
|
+
{
|
|
1794
|
+
type: t,
|
|
1795
|
+
className: g(`luminus-icon-button btn text-${e} ${o ?? ""}`, Be.iconButton, Be[n]),
|
|
1796
|
+
...a,
|
|
1797
|
+
children: s
|
|
1798
|
+
}
|
|
1799
|
+
) : null, qo = "_select_dlv1t_1", et = {
|
|
1800
|
+
select: qo
|
|
1801
|
+
}, Oc = ({ month: t, onChangeMonth: e, locale: n, yearMin: s = 2e3, yearMax: o = 2050 }) => {
|
|
1802
|
+
const a = D((c) => {
|
|
1803
|
+
const d = In(t, c);
|
|
1820
1804
|
d.getFullYear() < s || d.getFullYear() > o || e(d);
|
|
1821
1805
|
}, [t, e, s, o]), l = z(() => {
|
|
1822
1806
|
const c = [];
|
|
@@ -1828,28 +1812,28 @@ const Sc = ({ heading: t, content: e, placement: n, children: s, trigger: o, ...
|
|
|
1828
1812
|
for (let f = 0; f <= 11; f++)
|
|
1829
1813
|
u.push({
|
|
1830
1814
|
id: f,
|
|
1831
|
-
name:
|
|
1815
|
+
name: Ee(new Date(2024, f, 1), "LLLL", { locale: n })
|
|
1832
1816
|
});
|
|
1833
1817
|
return u;
|
|
1834
1818
|
}, [n]);
|
|
1835
1819
|
return /* @__PURE__ */ r.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1836
|
-
/* @__PURE__ */ r.jsx(G, { onClick: () => a(-1), disabled: t.getFullYear() < s || t.getFullYear() === s && t.getMonth() <= 0, children: /* @__PURE__ */ r.jsx(
|
|
1820
|
+
/* @__PURE__ */ r.jsx(G, { onClick: () => a(-1), disabled: t.getFullYear() < s || t.getFullYear() === s && t.getMonth() <= 0, children: /* @__PURE__ */ r.jsx(ft, {}) }),
|
|
1837
1821
|
/* @__PURE__ */ r.jsx(ee.Select, { value: t.getMonth(), onChange: (c) => {
|
|
1838
1822
|
var d;
|
|
1839
|
-
return ((d = c.target) == null ? void 0 : d.value) && e(
|
|
1840
|
-
}, className: g(
|
|
1823
|
+
return ((d = c.target) == null ? void 0 : d.value) && e(Js(t, Number(c.target.value)));
|
|
1824
|
+
}, className: g(et.select, et.month), children: i.map((c) => /* @__PURE__ */ r.jsx("option", { value: c.id, children: c.name }, c.id)) }),
|
|
1841
1825
|
/* @__PURE__ */ r.jsx(ee.Select, { value: t.getFullYear(), onChange: (c) => {
|
|
1842
1826
|
var d;
|
|
1843
|
-
return ((d = c.target) == null ? void 0 : d.value) && e(
|
|
1844
|
-
}, className: g(
|
|
1845
|
-
/* @__PURE__ */ r.jsx(G, { onClick: () => a(1), disabled: t.getFullYear() > o || t.getFullYear() === o && t.getMonth() >= 11, children: /* @__PURE__ */ r.jsx(
|
|
1827
|
+
return ((d = c.target) == null ? void 0 : d.value) && e(Sn(t, Number(c.target.value)));
|
|
1828
|
+
}, className: g(et.select), children: l.map((c) => /* @__PURE__ */ r.jsx("option", { value: c, children: c }, c)) }),
|
|
1829
|
+
/* @__PURE__ */ r.jsx(G, { onClick: () => a(1), disabled: t.getFullYear() > o || t.getFullYear() === o && t.getMonth() >= 11, children: /* @__PURE__ */ r.jsx(pt, {}) })
|
|
1846
1830
|
] });
|
|
1847
|
-
},
|
|
1848
|
-
select:
|
|
1849
|
-
},
|
|
1850
|
-
const a =
|
|
1831
|
+
}, Qo = "_select_pywmr_1", Jo = {
|
|
1832
|
+
select: Qo
|
|
1833
|
+
}, Mc = ({ year: t, onChangeYear: e, optionMin: n = 2e3, optionMax: s = 2050, className: o }) => {
|
|
1834
|
+
const a = D((i) => {
|
|
1851
1835
|
const c = t.getFullYear() + i;
|
|
1852
|
-
c < n || c > s || e(
|
|
1836
|
+
c < n || c > s || e(Gs(t, i));
|
|
1853
1837
|
}, [t, e, s, n]), l = z(() => {
|
|
1854
1838
|
const i = [];
|
|
1855
1839
|
for (let c = n; c <= s; c++)
|
|
@@ -1857,56 +1841,55 @@ const Sc = ({ heading: t, content: e, placement: n, children: s, trigger: o, ...
|
|
|
1857
1841
|
return i;
|
|
1858
1842
|
}, [n, s]);
|
|
1859
1843
|
return /* @__PURE__ */ r.jsxs("div", { className: g("card d-flex flex-row align-items-center m-0 p-1 gap-2", o ?? ""), children: [
|
|
1860
|
-
/* @__PURE__ */ r.jsx(G, { onClick: () => a(-1), disabled: t.getFullYear() <= n, children: /* @__PURE__ */ r.jsx(
|
|
1844
|
+
/* @__PURE__ */ r.jsx(G, { onClick: () => a(-1), disabled: t.getFullYear() <= n, children: /* @__PURE__ */ r.jsx(ft, {}) }),
|
|
1861
1845
|
/* @__PURE__ */ r.jsx(ee.Select, { value: t.getFullYear(), onChange: (i) => {
|
|
1862
1846
|
var c;
|
|
1863
|
-
return ((c = i.target) == null ? void 0 : c.value) && e(
|
|
1864
|
-
}, className:
|
|
1865
|
-
/* @__PURE__ */ r.jsx(G, { onClick: () => a(1), disabled: t.getFullYear() >= s, children: /* @__PURE__ */ r.jsx(
|
|
1847
|
+
return ((c = i.target) == null ? void 0 : c.value) && e(Sn(t, Number(i.target.value)));
|
|
1848
|
+
}, className: Jo.select, children: l.map((i) => /* @__PURE__ */ r.jsx("option", { value: i, children: i }, i)) }),
|
|
1849
|
+
/* @__PURE__ */ r.jsx(G, { onClick: () => a(1), disabled: t.getFullYear() >= s, children: /* @__PURE__ */ r.jsx(pt, {}) })
|
|
1866
1850
|
] });
|
|
1867
|
-
},
|
|
1868
|
-
widget:
|
|
1869
|
-
},
|
|
1870
|
-
const { LinkComponent: s } = W(oe);
|
|
1851
|
+
}, Xo = "_widget_etgh3_1", Zo = {
|
|
1852
|
+
widget: Xo
|
|
1853
|
+
}, Sr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
|
|
1871
1854
|
if (!t || !t.id || !e)
|
|
1872
1855
|
return /* @__PURE__ */ r.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
|
|
1873
|
-
const
|
|
1874
|
-
return /* @__PURE__ */ r.jsx(
|
|
1875
|
-
},
|
|
1856
|
+
const s = e(t);
|
|
1857
|
+
return /* @__PURE__ */ r.jsx(ke, { to: s, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
|
|
1858
|
+
}, Fc = ({ InputContainer: t = Ce, label: e, value: n, onChange: s, hidden: o, disabled: a, className: l, type: i, withoutLabel: c }) => /* @__PURE__ */ r.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: l, children: /* @__PURE__ */ r.jsx(ee.Check, { id: `check-${e}`, type: i ?? "checkbox", label: e ?? "", checked: n, onChange: (d) => {
|
|
1876
1859
|
var u;
|
|
1877
1860
|
s && s(((u = d.target) == null ? void 0 : u.checked) ?? !1);
|
|
1878
|
-
}, className: l ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }),
|
|
1879
|
-
const b = e === "number", k =
|
|
1861
|
+
}, className: l ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), Qt = ({ InputContainer: t = Ce, type: e, value: n, onChange: s, debounceMs: o, label: a, withoutLabel: l, placeholder: i, size: c, hidden: d, disabled: u, showClearIcon: f, clearValue: p, list: h, className: v, step: y, noSelectOnFocus: x }) => {
|
|
1862
|
+
const b = e === "number", k = D(() => {
|
|
1880
1863
|
if (!s)
|
|
1881
1864
|
return;
|
|
1882
|
-
const
|
|
1883
|
-
s(b ?
|
|
1884
|
-
}, [p, b, s]), m = V(null), [N,
|
|
1885
|
-
const C =
|
|
1865
|
+
const w = p ?? null;
|
|
1866
|
+
s(b ? w ? Number(w) : null : (w == null ? void 0 : w.toString()) ?? "");
|
|
1867
|
+
}, [p, b, s]), m = V(null), [N, j] = E((n == null ? void 0 : n.toString()) ?? ""), $ = D((w) => {
|
|
1868
|
+
const C = w;
|
|
1886
1869
|
s && (b && s(C == null || C === "" ? null : Number(C)), s(C || null));
|
|
1887
|
-
}, [b, s]), _ =
|
|
1888
|
-
var
|
|
1889
|
-
const C = (
|
|
1870
|
+
}, [b, s]), _ = D((w) => {
|
|
1871
|
+
var L;
|
|
1872
|
+
const C = (L = w.target) == null ? void 0 : L.value;
|
|
1890
1873
|
if (!o) {
|
|
1891
1874
|
$(C);
|
|
1892
1875
|
return;
|
|
1893
1876
|
}
|
|
1894
|
-
|
|
1877
|
+
j(C), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
1895
1878
|
$(C);
|
|
1896
1879
|
}, o);
|
|
1897
1880
|
}, [o, $]);
|
|
1898
1881
|
T(() => {
|
|
1899
|
-
|
|
1882
|
+
j(n === null ? "" : n.toString());
|
|
1900
1883
|
}, [n]);
|
|
1901
|
-
const [
|
|
1884
|
+
const [M, I] = E(!1), S = kn(e, n ? n.toString() ?? null : null, M);
|
|
1902
1885
|
return /* @__PURE__ */ r.jsxs(t, { withoutLabel: l, label: a ?? "", hidden: d, className: v, children: [
|
|
1903
|
-
/* @__PURE__ */ r.jsx(ee.Control, { type:
|
|
1904
|
-
|
|
1905
|
-
}, onBlur: () =>
|
|
1886
|
+
/* @__PURE__ */ r.jsx(ee.Control, { type: S, placeholder: i ?? a, size: c, value: o ? N : (n == null ? void 0 : n.toString()) ?? "", onChange: _, className: v ?? "", hidden: d, disabled: u ?? !1, list: h, onFocus: (w) => {
|
|
1887
|
+
I(!0), !x && w.target.select();
|
|
1888
|
+
}, onBlur: () => I(!1), step: y }),
|
|
1906
1889
|
f && n !== null && s && !u && /* @__PURE__ */ r.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: k, children: /* @__PURE__ */ r.jsx(fe, {}) }) })
|
|
1907
1890
|
] });
|
|
1908
|
-
},
|
|
1909
|
-
InputContainer: t =
|
|
1891
|
+
}, Tc = ({
|
|
1892
|
+
InputContainer: t = Ce,
|
|
1910
1893
|
value: e,
|
|
1911
1894
|
options: n,
|
|
1912
1895
|
onChange: s,
|
|
@@ -1923,7 +1906,7 @@ const Sc = ({ heading: t, content: e, placement: n, children: s, trigger: o, ...
|
|
|
1923
1906
|
noEmptyOption: v
|
|
1924
1907
|
// it will still add the empty option if there is no value provided or value is empty string or null
|
|
1925
1908
|
}) => {
|
|
1926
|
-
const y =
|
|
1909
|
+
const y = D(() => {
|
|
1927
1910
|
if (!s)
|
|
1928
1911
|
return;
|
|
1929
1912
|
const x = f ?? null;
|
|
@@ -1942,60 +1925,60 @@ const Sc = ({ heading: t, content: e, placement: n, children: s, trigger: o, ...
|
|
|
1942
1925
|
] }),
|
|
1943
1926
|
u && e && s && !d && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ r.jsx(fe, {}) }) })
|
|
1944
1927
|
] });
|
|
1945
|
-
},
|
|
1946
|
-
var C,
|
|
1947
|
-
const [m, N] =
|
|
1928
|
+
}, Rc = ({ InputContainer: t = Ce, items: e, defaultSelection: n, selectedItemNavigateTo: s, onSearchQueryChange: o, texts: a, isLoading: l, isNumber: i, onSelect: c, label: d, withoutLabel: u, size: f, dropdownItemsNameWidth: p, additionalColumns: h, hidden: v, disabled: y, displayIdAsName: x, CustomOnChangeComponent: b, className: k }) => {
|
|
1929
|
+
var C, L;
|
|
1930
|
+
const [m, N] = E(n), [j, $] = E(!1);
|
|
1948
1931
|
T(() => {
|
|
1949
1932
|
N(n);
|
|
1950
1933
|
}, [n]);
|
|
1951
|
-
const _ =
|
|
1934
|
+
const _ = D((H) => {
|
|
1952
1935
|
N(H);
|
|
1953
|
-
}, []),
|
|
1936
|
+
}, []), M = D((H) => {
|
|
1954
1937
|
$(!1), _(H);
|
|
1955
1938
|
}, [_]);
|
|
1956
1939
|
T(() => {
|
|
1957
1940
|
c && c(m);
|
|
1958
1941
|
}, [m, c]);
|
|
1959
|
-
const
|
|
1960
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(t, { withoutLabel: u, label: d ?? "", hidden: v, inputContainerClassName: g({ "luminus-dropdown-select-open":
|
|
1961
|
-
/* @__PURE__ */ r.jsxs(
|
|
1942
|
+
const I = V(null), S = s !== void 0, w = S && m !== null;
|
|
1943
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(t, { withoutLabel: u, label: d ?? "", hidden: v, inputContainerClassName: g({ "luminus-dropdown-select-open": j }), className: k, children: [
|
|
1944
|
+
/* @__PURE__ */ r.jsxs(Sr, { currentSelection: m, selectedItemNavigateTo: s, children: [
|
|
1962
1945
|
x && (m == null ? void 0 : m.name) && /* @__PURE__ */ r.jsx(Y, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: m.name }),
|
|
1963
|
-
/* @__PURE__ */ r.jsxs(ee.Select, { ref:
|
|
1946
|
+
/* @__PURE__ */ r.jsxs(ee.Select, { ref: I, size: f, value: (m == null ? void 0 : m.id) ?? "", onChange: (H) => N({
|
|
1964
1947
|
id: i ? Number(H.target.value) ?? null : H.target.value,
|
|
1965
1948
|
name: ""
|
|
1966
1949
|
}), onMouseDown: (H) => {
|
|
1967
1950
|
H.currentTarget.focus(), H.preventDefault();
|
|
1968
1951
|
}, onClick: () => {
|
|
1969
|
-
!
|
|
1952
|
+
!S && !y && $(!0);
|
|
1970
1953
|
}, className: g("w-100", {
|
|
1971
1954
|
"luminus-dropdown-picker-disabled": y,
|
|
1972
|
-
"luminus-dropdown-picker-link":
|
|
1955
|
+
"luminus-dropdown-picker-link": w
|
|
1973
1956
|
}), hidden: v, children: [
|
|
1974
1957
|
/* @__PURE__ */ r.jsx("option", { value: "" }),
|
|
1975
1958
|
n && /* @__PURE__ */ r.jsx("option", { value: n.id ?? void 0, children: n.name && ((C = n.name) == null ? void 0 : C.length) > 0 ? n.name : n.id }),
|
|
1976
|
-
m && /* @__PURE__ */ r.jsx("option", { value: m.id ?? void 0, children: m.name && ((
|
|
1959
|
+
m && /* @__PURE__ */ r.jsx("option", { value: m.id ?? void 0, children: m.name && ((L = m.name) == null ? void 0 : L.length) > 0 ? m.name : m.id })
|
|
1977
1960
|
] }),
|
|
1978
|
-
b || !y &&
|
|
1979
|
-
!b && !y &&
|
|
1961
|
+
b || !y && S ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
|
|
1962
|
+
!b && !y && S && /* @__PURE__ */ r.jsx(G, { size: "sm", color: "secondary", onClick: (H) => {
|
|
1980
1963
|
H.preventDefault(), H.stopPropagation(), $(!0);
|
|
1981
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
1964
|
+
}, children: /* @__PURE__ */ r.jsx(xn, {}) }),
|
|
1982
1965
|
b ?? null
|
|
1983
1966
|
] }) : null
|
|
1984
1967
|
] }),
|
|
1985
|
-
|
|
1968
|
+
I.current && /* @__PURE__ */ r.jsx(kt, { show: j, onCancel: () => $(!1), items: e, currentSelection: m, onSelectionChange: M, onSearchQueryChange: o, texts: a, itemsNameWidth: p, additionalColumns: h, isLoading: l, disabled: y, inputRef: I })
|
|
1986
1969
|
] }) });
|
|
1987
|
-
},
|
|
1988
|
-
const h =
|
|
1970
|
+
}, Bc = ({ InputContainer: t = Ce, value: e, onChange: n, label: s, size: o, showClearIcon: a, clearValue: l, hidden: i, disabled: c, rows: d, withoutLabel: u, debounceMs: f, className: p }) => {
|
|
1971
|
+
const h = D(() => {
|
|
1989
1972
|
if (!n)
|
|
1990
1973
|
return;
|
|
1991
1974
|
const m = l ?? null;
|
|
1992
1975
|
n((m == null ? void 0 : m.toString()) ?? "");
|
|
1993
|
-
}, [l, n]), v = V(null), [y, x] =
|
|
1976
|
+
}, [l, n]), v = V(null), [y, x] = E((e == null ? void 0 : e.toString()) ?? ""), b = D((m) => {
|
|
1994
1977
|
const N = m;
|
|
1995
1978
|
n && n(N || null);
|
|
1996
|
-
}, [n]), k =
|
|
1997
|
-
var
|
|
1998
|
-
const N = (
|
|
1979
|
+
}, [n]), k = D((m) => {
|
|
1980
|
+
var j;
|
|
1981
|
+
const N = (j = m.target) == null ? void 0 : j.value;
|
|
1999
1982
|
if (!f) {
|
|
2000
1983
|
b(N);
|
|
2001
1984
|
return;
|
|
@@ -2011,27 +1994,27 @@ const Sc = ({ heading: t, content: e, placement: n, children: s, trigger: o, ...
|
|
|
2011
1994
|
a && e && n && !c && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: h, children: /* @__PURE__ */ r.jsx(fe, {}) }) })
|
|
2012
1995
|
] });
|
|
2013
1996
|
};
|
|
2014
|
-
function
|
|
2015
|
-
return
|
|
1997
|
+
function Er(t) {
|
|
1998
|
+
return ht({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(t);
|
|
2016
1999
|
}
|
|
2017
|
-
function
|
|
2018
|
-
return
|
|
2000
|
+
function Or(t) {
|
|
2001
|
+
return ht({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(t);
|
|
2019
2002
|
}
|
|
2020
|
-
function
|
|
2021
|
-
return
|
|
2003
|
+
function ea(t) {
|
|
2004
|
+
return ht({ 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: [] }] })(t);
|
|
2022
2005
|
}
|
|
2023
|
-
const Lc = ({ InputContainer: t =
|
|
2024
|
-
const y =
|
|
2006
|
+
const Lc = ({ InputContainer: t = Ce, value: e, onChange: n, debounceMs: s, label: o, withoutLabel: a, placeholder: l, size: i, hidden: c, disabled: d, showClearIcon: u, clearValue: f, className: p, step: h, stepperStep: v = 1 }) => {
|
|
2007
|
+
const y = D(() => {
|
|
2025
2008
|
if (!n)
|
|
2026
2009
|
return;
|
|
2027
|
-
const
|
|
2028
|
-
n(
|
|
2029
|
-
}, [f, n]), x = V(null), [b, k] =
|
|
2030
|
-
const $ =
|
|
2010
|
+
const j = f ?? null;
|
|
2011
|
+
n(j ? Number(j) : null);
|
|
2012
|
+
}, [f, n]), x = V(null), [b, k] = E((e == null ? void 0 : e.toString()) ?? ""), m = D((j) => {
|
|
2013
|
+
const $ = j;
|
|
2031
2014
|
n && n($ == null || $ === "" ? null : Number($));
|
|
2032
|
-
}, [n]), N =
|
|
2015
|
+
}, [n]), N = D((j) => {
|
|
2033
2016
|
var _;
|
|
2034
|
-
const $ = (_ =
|
|
2017
|
+
const $ = (_ = j.target) == null ? void 0 : _.value;
|
|
2035
2018
|
if (!s) {
|
|
2036
2019
|
m($);
|
|
2037
2020
|
return;
|
|
@@ -2044,16 +2027,16 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2044
2027
|
k(e === null ? "" : e.toString());
|
|
2045
2028
|
}, [e]), /* @__PURE__ */ r.jsx(t, { withoutLabel: a, label: o ?? "", hidden: c, className: p, children: /* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2046
2029
|
/* @__PURE__ */ r.jsx(ee.Control, { type: "number", placeholder: l ?? o, size: i, value: s ? b : e ?? "", onChange: N, className: `luminus-numeric-stepper ${p ?? ""}`, hidden: c, disabled: d ?? !1, step: h }),
|
|
2047
|
-
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (
|
|
2048
|
-
|
|
2049
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2050
|
-
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (
|
|
2051
|
-
|
|
2052
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2030
|
+
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (j) => {
|
|
2031
|
+
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) - v).toString());
|
|
2032
|
+
}, children: /* @__PURE__ */ r.jsx(Er, {}) }) }),
|
|
2033
|
+
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (j) => {
|
|
2034
|
+
j.preventDefault(), j.stopPropagation(), m(((e ?? 0) + v).toString());
|
|
2035
|
+
}, children: /* @__PURE__ */ r.jsx(Or, {}) }) }),
|
|
2053
2036
|
u && e && n && !d && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ r.jsx(fe, {}) }) })
|
|
2054
2037
|
] }) });
|
|
2055
|
-
},
|
|
2056
|
-
const { register: u, formState: f, setValue: p } = pe(), [h, v] =
|
|
2038
|
+
}, Ac = ({ InputContainer: t = xe, formField: e, label: n, resetsFields: s, type: o, required: a, hidden: l, disabled: i, withoutLabel: c, className: d }) => {
|
|
2039
|
+
const { register: u, formState: f, setValue: p } = pe(), [h, v] = E(void 0), [y, x] = E(!1);
|
|
2057
2040
|
T(() => {
|
|
2058
2041
|
const k = e.split(".");
|
|
2059
2042
|
let m = f.errors;
|
|
@@ -2072,13 +2055,13 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2072
2055
|
}), isInvalid: b, hidden: l, disabled: i, className: "w-100" }),
|
|
2073
2056
|
h && /* @__PURE__ */ r.jsx(ve, { message: h.message })
|
|
2074
2057
|
] });
|
|
2075
|
-
},
|
|
2076
|
-
const { register: d, formState: u, setValue: f, watch: p } = pe(), [h, v] =
|
|
2058
|
+
}, Hc = ({ InputContainer: t = xe, label: e, formField: n, options: s, resetsFields: o, required: a, disabled: l, hidden: i, className: c }) => {
|
|
2059
|
+
const { register: d, formState: u, setValue: f, watch: p } = pe(), [h, v] = E(void 0), [y, x] = E(!1), b = z(() => s, [s]);
|
|
2077
2060
|
T(() => {
|
|
2078
2061
|
const m = n.split(".");
|
|
2079
2062
|
let N = u.errors;
|
|
2080
|
-
m.forEach((
|
|
2081
|
-
N !== void 0 && (N = N[
|
|
2063
|
+
m.forEach((j) => {
|
|
2064
|
+
N !== void 0 && (N = N[j]);
|
|
2082
2065
|
}), v(N);
|
|
2083
2066
|
}, [u, n]), T(() => {
|
|
2084
2067
|
u.isSubmitted && x(!0);
|
|
@@ -2092,41 +2075,41 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2092
2075
|
}), isInvalid: k, hidden: i, disabled: l, className: "w-100" }, m.id)),
|
|
2093
2076
|
h && /* @__PURE__ */ r.jsx(ve, { message: h.message })
|
|
2094
2077
|
] });
|
|
2095
|
-
},
|
|
2096
|
-
const { register: v, formState: y, setValue: x, watch: b } = pe(), [k, m] =
|
|
2097
|
-
const
|
|
2098
|
-
x(e, (
|
|
2099
|
-
}, [l, x, e, N]), _ =
|
|
2100
|
-
const
|
|
2101
|
-
let
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
}), m(
|
|
2078
|
+
}, Wc = ({ InputContainer: t = xe, formField: e, label: n, resetsFields: s, size: o, showClearIcon: a, clearValue: l, required: i, hidden: c, disabled: d, rows: u, withoutLabel: f, customFormControlProps: p, className: h }) => {
|
|
2079
|
+
const { register: v, formState: y, setValue: x, watch: b } = pe(), [k, m] = E(void 0), [N, j] = E(!1), $ = D(() => {
|
|
2080
|
+
const I = l ?? null;
|
|
2081
|
+
x(e, (I == null ? void 0 : I.toString()) ?? "", { shouldDirty: !0, shouldValidate: N });
|
|
2082
|
+
}, [l, x, e, N]), _ = D(() => {
|
|
2083
|
+
const I = e.split(".");
|
|
2084
|
+
let S = y.errors;
|
|
2085
|
+
I.forEach((w) => {
|
|
2086
|
+
S !== void 0 && (S = S[w]);
|
|
2087
|
+
}), m(S);
|
|
2105
2088
|
}, [y, e]);
|
|
2106
2089
|
T(() => {
|
|
2107
2090
|
_();
|
|
2108
2091
|
}, [_]), T(() => {
|
|
2109
|
-
y.isSubmitted &&
|
|
2092
|
+
y.isSubmitted && j(!0);
|
|
2110
2093
|
}, [y]);
|
|
2111
|
-
const
|
|
2112
|
-
return /* @__PURE__ */ r.jsxs(t, { label: `${n}${i ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid:
|
|
2094
|
+
const M = k !== void 0;
|
|
2095
|
+
return /* @__PURE__ */ r.jsxs(t, { label: `${n}${i ? " *" : ""}`, hidden: c, withoutLabel: f, isInvalid: M, className: h, isForTextAreaInput: !0, children: [
|
|
2113
2096
|
/* @__PURE__ */ r.jsx(ee.Control, { as: "textarea", size: o, ...v(e, {
|
|
2114
|
-
setValueAs: (
|
|
2097
|
+
setValueAs: (I) => I == null || I === "" ? null : I,
|
|
2115
2098
|
onChange: () => {
|
|
2116
|
-
s && s.forEach((
|
|
2099
|
+
s && s.forEach((I) => x(I, null, { shouldDirty: !0, shouldValidate: N }));
|
|
2117
2100
|
}
|
|
2118
|
-
}), isInvalid:
|
|
2101
|
+
}), isInvalid: M, hidden: c, disabled: d, rows: u ?? 2, className: "w-100", ...p }),
|
|
2119
2102
|
a && b(e) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: $, children: /* @__PURE__ */ r.jsx(fe, {}) }) }),
|
|
2120
2103
|
k && /* @__PURE__ */ r.jsx(ve, { message: k.message })
|
|
2121
2104
|
] });
|
|
2122
|
-
},
|
|
2123
|
-
const { register: k, formState: m, setValue: N, watch:
|
|
2105
|
+
}, Pc = ({ InputContainer: t = xe, type: e, formField: n, label: s, placeholder: o, size: a, resetsFields: l, showClearIcon: i, clearValue: c, required: d, hidden: u, disabled: f, withoutLabel: p, list: h, step: v, CustomOnChangeComponent: y, noSelectOnFocus: x, className: b }) => {
|
|
2106
|
+
const { register: k, formState: m, setValue: N, watch: j } = pe(), [$, _] = E(void 0), [M, I] = E(!1), S = D(() => {
|
|
2124
2107
|
const R = c ?? null;
|
|
2125
2108
|
e === "number" ? N(n, R !== null ? Number(R) : null, {
|
|
2126
2109
|
shouldDirty: !0,
|
|
2127
|
-
shouldValidate:
|
|
2128
|
-
}) : N(n, (R == null ? void 0 : R.toString()) ?? "", { shouldDirty: !0, shouldValidate:
|
|
2129
|
-
}, [c, e, N, n,
|
|
2110
|
+
shouldValidate: M
|
|
2111
|
+
}) : N(n, (R == null ? void 0 : R.toString()) ?? "", { shouldDirty: !0, shouldValidate: M });
|
|
2112
|
+
}, [c, e, N, n, M]), w = D(() => {
|
|
2130
2113
|
const R = n.split(".");
|
|
2131
2114
|
let U = m.errors;
|
|
2132
2115
|
R.forEach((te) => {
|
|
@@ -2134,11 +2117,11 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2134
2117
|
}), _(U);
|
|
2135
2118
|
}, [m, n]);
|
|
2136
2119
|
T(() => {
|
|
2137
|
-
|
|
2138
|
-
}, [
|
|
2139
|
-
m.isSubmitted &&
|
|
2120
|
+
w();
|
|
2121
|
+
}, [w]), T(() => {
|
|
2122
|
+
m.isSubmitted && I(!0);
|
|
2140
2123
|
}, [m]);
|
|
2141
|
-
const C = $ !== void 0, [
|
|
2124
|
+
const C = $ !== void 0, [L, H] = E(!1), Q = j(n), K = kn(e, Q ?? null, L);
|
|
2142
2125
|
return /* @__PURE__ */ r.jsxs(t, { label: `${s}${d ? " *" : ""}`, hidden: u, withoutLabel: p, isInvalid: C, className: b, children: [
|
|
2143
2126
|
/* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2144
2127
|
/* @__PURE__ */ r.jsx(ee.Control, { type: K, placeholder: o ?? s, size: a, onFocus: (R) => {
|
|
@@ -2146,23 +2129,23 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2146
2129
|
}, ...k(n, {
|
|
2147
2130
|
setValueAs: (R) => e === "number" ? R == null || R === "" ? null : Number(R) : R == null || R === "" ? null : R,
|
|
2148
2131
|
onChange: () => {
|
|
2149
|
-
l && l.forEach((R) => N(R, null, { shouldDirty: !0, shouldValidate:
|
|
2132
|
+
l && l.forEach((R) => N(R, null, { shouldDirty: !0, shouldValidate: M }));
|
|
2150
2133
|
},
|
|
2151
2134
|
onBlur: () => H(!1)
|
|
2152
2135
|
}), isInvalid: C, hidden: u, disabled: f, list: h, className: "w-100", step: v }),
|
|
2153
2136
|
y && /* @__PURE__ */ r.jsx("div", { className: "custom-picker-button", children: y })
|
|
2154
2137
|
] }),
|
|
2155
|
-
i &&
|
|
2138
|
+
i && j(n) && /* @__PURE__ */ r.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: S, children: /* @__PURE__ */ r.jsx(fe, {}) }) }),
|
|
2156
2139
|
$ && /* @__PURE__ */ r.jsx(ve, { message: $.message })
|
|
2157
2140
|
] });
|
|
2158
|
-
},
|
|
2159
|
-
const { formState: $, setValue: _, watch:
|
|
2141
|
+
}, Vc = ({ InputContainer: t = xe, formField: e, label: n, size: s, defaultSelection: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, items: u, onSearchQueryChange: f, selectedItemNavigateTo: p, texts: h, dropdownItemsNameWidth: v, isLoading: y, withoutLabel: x, additionalColumns: b, CustomOnChangeComponent: k, displayIdAsName: m, onSelect: N, className: j }) => {
|
|
2142
|
+
const { formState: $, setValue: _, watch: M, control: I } = pe(), [S, w] = E(void 0), [C, L] = E(!1), [H, Q] = E(!1), K = M(e) ?? null, R = K === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : M(`${e}-DropdownName`), U = z(() => K == null ? null : { id: K ?? null, name: R ?? "" }, [K, R]), te = D(() => {
|
|
2160
2143
|
const P = e.split(".");
|
|
2161
|
-
let
|
|
2144
|
+
let B = $.errors;
|
|
2162
2145
|
P.forEach((X) => {
|
|
2163
|
-
|
|
2164
|
-
}),
|
|
2165
|
-
}, [$, e]), q =
|
|
2146
|
+
B !== void 0 && (B = B[X]);
|
|
2147
|
+
}), w(B);
|
|
2148
|
+
}, [$, e]), q = D((P) => {
|
|
2166
2149
|
if ((P == null ? void 0 : P.id) === K)
|
|
2167
2150
|
return;
|
|
2168
2151
|
if (N && N(P), a && a.forEach((X) => _(X, null, { shouldDirty: !0, shouldValidate: H })), P === null) {
|
|
@@ -2172,29 +2155,29 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2172
2155
|
}), _(`${e}-DropdownName`, null);
|
|
2173
2156
|
return;
|
|
2174
2157
|
}
|
|
2175
|
-
let
|
|
2176
|
-
l ?
|
|
2158
|
+
let B = null;
|
|
2159
|
+
l ? B = (P == null ? void 0 : P.id) !== null && (P == null ? void 0 : P.id) !== "" ? parseInt(P.id.toString(), 10) : null : B = P.id === null || P.id === void 0 || P.id === "" ? null : P.id, _(e, B, {
|
|
2177
2160
|
shouldDirty: !0,
|
|
2178
2161
|
shouldValidate: H
|
|
2179
2162
|
}), _(`${e}-DropdownName`, P.name ?? "");
|
|
2180
|
-
}, [_, e, H, l, a, K, N]), F =
|
|
2181
|
-
|
|
2182
|
-
}, [q]), J =
|
|
2183
|
-
|
|
2163
|
+
}, [_, e, H, l, a, K, N]), F = D((P) => {
|
|
2164
|
+
L(!1), q(P);
|
|
2165
|
+
}, [q]), J = D(() => {
|
|
2166
|
+
L(!1);
|
|
2184
2167
|
}, []);
|
|
2185
2168
|
T(() => {
|
|
2186
2169
|
te();
|
|
2187
2170
|
}, [te]), T(() => {
|
|
2188
2171
|
$.isSubmitted && Q(!0);
|
|
2189
2172
|
}, [$]);
|
|
2190
|
-
const re = V(null), je =
|
|
2191
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(t, { label: `${n}${i ? " *" : ""}`, hidden: c, withoutLabel: x, isInvalid: je, inputContainerClassName: g({ "luminus-dropdown-select-open": C }), className:
|
|
2192
|
-
/* @__PURE__ */ r.jsxs(
|
|
2173
|
+
const re = V(null), je = S !== void 0, ne = p !== void 0, ie = ne && U !== null;
|
|
2174
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(t, { label: `${n}${i ? " *" : ""}`, hidden: c, withoutLabel: x, isInvalid: je, inputContainerClassName: g({ "luminus-dropdown-select-open": C }), className: j, children: [
|
|
2175
|
+
/* @__PURE__ */ r.jsxs(Sr, { currentSelection: U, selectedItemNavigateTo: p, children: [
|
|
2193
2176
|
m && (U == null ? void 0 : U.name) && /* @__PURE__ */ r.jsx(Y, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: U.name }),
|
|
2194
|
-
/* @__PURE__ */ r.jsx(
|
|
2177
|
+
/* @__PURE__ */ r.jsx($n, { control: I, name: e, render: () => /* @__PURE__ */ r.jsx(ee.Select, { size: s, onMouseDown: (P) => {
|
|
2195
2178
|
P.currentTarget.focus(), P.preventDefault();
|
|
2196
2179
|
}, onClick: () => {
|
|
2197
|
-
!ne && !d &&
|
|
2180
|
+
!ne && !d && L(!0);
|
|
2198
2181
|
}, ref: re, value: K ?? "", onChange: () => {
|
|
2199
2182
|
}, isInvalid: je, hidden: c, className: g("w-100", {
|
|
2200
2183
|
"luminus-dropdown-picker-disabled": d,
|
|
@@ -2202,51 +2185,51 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2202
2185
|
}), children: /* @__PURE__ */ r.jsx("option", { value: K, children: m ? K : (R == null ? void 0 : R.length) > 0 ? R : K }) }) }),
|
|
2203
2186
|
k || !d && ne ? /* @__PURE__ */ r.jsxs("div", { className: "custom-picker-button", children: [
|
|
2204
2187
|
!k && !d && ne && /* @__PURE__ */ r.jsx(G, { size: "sm", color: "secondary", onClick: (P) => {
|
|
2205
|
-
P.preventDefault(), P.stopPropagation(),
|
|
2206
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2188
|
+
P.preventDefault(), P.stopPropagation(), L(!0);
|
|
2189
|
+
}, children: /* @__PURE__ */ r.jsx(xn, {}) }),
|
|
2207
2190
|
k ?? null
|
|
2208
2191
|
] }) : null
|
|
2209
2192
|
] }),
|
|
2210
|
-
|
|
2211
|
-
re.current && /* @__PURE__ */ r.jsx(
|
|
2193
|
+
S && /* @__PURE__ */ r.jsx(ve, { message: S.message }),
|
|
2194
|
+
re.current && /* @__PURE__ */ r.jsx(kt, { show: C, onCancel: J, items: u, currentSelection: U, onSelectionChange: F, onSearchQueryChange: f, texts: h, itemsNameWidth: v, additionalColumns: b, displayIdAsName: m, isLoading: y, disabled: d, inputRef: re })
|
|
2212
2195
|
] }) });
|
|
2213
|
-
},
|
|
2214
|
-
const { watch: h, setValue: v, register: y, formState: x } = pe(), [b, k] =
|
|
2196
|
+
}, zc = ({ InputContainer: t = xe, label: e, formField: n, hidden: s, required: o, placeholder: a, disabled: l, showClearIcon: i, resetsFields: c, multiple: d, accept: u, withoutLabel: f, className: p }) => {
|
|
2197
|
+
const { watch: h, setValue: v, register: y, formState: x } = pe(), [b, k] = E(!1), [m, N] = E(void 0), j = D(() => {
|
|
2215
2198
|
v(n, "");
|
|
2216
|
-
}, [v, n]), $ =
|
|
2217
|
-
const
|
|
2218
|
-
let
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
}), N(
|
|
2199
|
+
}, [v, n]), $ = D(() => {
|
|
2200
|
+
const M = n.split(".");
|
|
2201
|
+
let I = x.errors;
|
|
2202
|
+
M.forEach((S) => {
|
|
2203
|
+
I !== void 0 && (I = I[S]);
|
|
2204
|
+
}), N(I);
|
|
2222
2205
|
}, [x, n]);
|
|
2223
2206
|
T($, [$]), T(() => {
|
|
2224
2207
|
x.isSubmitted && k(!0);
|
|
2225
2208
|
}, [x]);
|
|
2226
2209
|
const _ = m !== void 0;
|
|
2227
2210
|
return /* @__PURE__ */ r.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: s, withoutLabel: f, isInvalid: _, className: p, children: [
|
|
2228
|
-
/* @__PURE__ */ r.jsx(
|
|
2211
|
+
/* @__PURE__ */ r.jsx(Nn, { type: "file", multiple: d, accept: u.join(", "), placeholder: a ?? e, isInvalid: _, hidden: s, disabled: l, className: "w-100", ...y(n, {
|
|
2229
2212
|
onChange: () => {
|
|
2230
|
-
c && c.forEach((
|
|
2213
|
+
c && c.forEach((M) => v(M, null, { shouldDirty: !0, shouldValidate: b }));
|
|
2231
2214
|
}
|
|
2232
2215
|
}) }),
|
|
2233
|
-
i && h(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick:
|
|
2216
|
+
i && h(n) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ r.jsx(fe, {}) }) }),
|
|
2234
2217
|
m && /* @__PURE__ */ r.jsx(ve, { message: m.message })
|
|
2235
2218
|
] });
|
|
2236
|
-
},
|
|
2237
|
-
const { formState: s } = pe(), [o, a] =
|
|
2219
|
+
}, Yc = ({ children: t, onStorno: e, noSpacer: n }) => {
|
|
2220
|
+
const { formState: s } = pe(), [o, a] = E(!1);
|
|
2238
2221
|
return T(() => {
|
|
2239
2222
|
a(Object.keys(s.dirtyFields).length > 0);
|
|
2240
|
-
}, [s]), o ? /* @__PURE__ */ r.jsx(
|
|
2241
|
-
},
|
|
2242
|
-
const {
|
|
2223
|
+
}, [s]), o ? /* @__PURE__ */ r.jsx(Vo, { onStorno: e, noSpacer: n, children: t }) : null;
|
|
2224
|
+
}, Gc = ({ InputContainer: t = xe, options: e, formField: n, label: s, size: o, resetsFields: a, isNumber: l, required: i, hidden: c, disabled: d, withoutLabel: u, noSortOptions: f, suffixIdToName: p, className: h }) => {
|
|
2225
|
+
const { texts: { customSelect: v } } = W(ce), { formState: y, setValue: x, watch: b, control: k } = pe(), [m, N] = E(void 0), [j, $] = E(!1), [_, M] = E(!1), [I, S] = E(""), w = b(n), C = z(() => e.find((F) => F.id === w) ?? null, [e, w]), L = D(() => {
|
|
2243
2226
|
const F = n.split(".");
|
|
2244
2227
|
let J = y.errors;
|
|
2245
2228
|
F.forEach((re) => {
|
|
2246
2229
|
J !== void 0 && (J = J[re]);
|
|
2247
2230
|
}), N(J);
|
|
2248
|
-
}, [y, n]), H =
|
|
2249
|
-
if ((F == null ? void 0 : F.id) ===
|
|
2231
|
+
}, [y, n]), H = D((F) => {
|
|
2232
|
+
if ((F == null ? void 0 : F.id) === w)
|
|
2250
2233
|
return;
|
|
2251
2234
|
if (a && a.forEach((re) => x(re, null, { shouldDirty: !0, shouldValidate: _ })), F === null) {
|
|
2252
2235
|
x(n, null, {
|
|
@@ -2260,102 +2243,102 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2260
2243
|
shouldDirty: !0,
|
|
2261
2244
|
shouldValidate: _
|
|
2262
2245
|
});
|
|
2263
|
-
}, [x, n, l, a,
|
|
2246
|
+
}, [x, n, l, a, w, _]), Q = D((F) => {
|
|
2264
2247
|
$(!1), H(F);
|
|
2265
|
-
}, [H]), K =
|
|
2266
|
-
|
|
2248
|
+
}, [H]), K = D((F) => {
|
|
2249
|
+
S(F);
|
|
2267
2250
|
}, []);
|
|
2268
2251
|
T(() => {
|
|
2269
|
-
|
|
2270
|
-
}, [
|
|
2271
|
-
y.isSubmitted &&
|
|
2252
|
+
L();
|
|
2253
|
+
}, [L]), T(() => {
|
|
2254
|
+
y.isSubmitted && M(!0);
|
|
2272
2255
|
}, [y]);
|
|
2273
|
-
const R =
|
|
2256
|
+
const R = D((F) => {
|
|
2274
2257
|
var J;
|
|
2275
2258
|
return F === null ? "" : !F.name || F.name.length === 0 ? ((J = F.id) == null ? void 0 : J.toString()) ?? "" : p ? `${F.name} (${F.id})` : F.name;
|
|
2276
2259
|
}, [p]), U = z(() => e.map((F) => ({
|
|
2277
2260
|
id: F.id,
|
|
2278
2261
|
name: R(F)
|
|
2279
|
-
})).filter((F) =>
|
|
2280
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: q, inputContainerClassName: g({ "luminus-dropdown-select-open":
|
|
2281
|
-
/* @__PURE__ */ r.jsx(
|
|
2262
|
+
})).filter((F) => zs(F.name, I)).sort((F, J) => f ? 0 : (F.name ?? "").localeCompare(J.name ?? "")), [e, f, I, R]), te = V(null), q = m !== void 0;
|
|
2263
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(t, { label: `${s}${i ? " *" : ""}`, hidden: c, withoutLabel: u, isInvalid: q, inputContainerClassName: g({ "luminus-dropdown-select-open": j }), className: h, children: [
|
|
2264
|
+
/* @__PURE__ */ r.jsx($n, { control: k, name: n, render: () => /* @__PURE__ */ r.jsx(ee.Select, { size: o, onMouseDown: (F) => {
|
|
2282
2265
|
F.currentTarget.focus(), F.preventDefault();
|
|
2283
2266
|
}, onClick: () => {
|
|
2284
2267
|
$(!0);
|
|
2285
|
-
}, ref: te, value:
|
|
2268
|
+
}, ref: te, value: w ?? "", onChange: () => {
|
|
2286
2269
|
}, isInvalid: q, hidden: c, disabled: d, className: "w-100", children: /* @__PURE__ */ r.jsx("option", { value: (C == null ? void 0 : C.id) ?? "", children: R(C) }) }) }),
|
|
2287
2270
|
m && /* @__PURE__ */ r.jsx(ve, { message: m.message }),
|
|
2288
|
-
te.current && /* @__PURE__ */ r.jsx(
|
|
2271
|
+
te.current && /* @__PURE__ */ r.jsx(kt, { show: j, onCancel: () => $(!1), items: U, currentSelection: C ?? null, onSelectionChange: Q, onSearchQueryChange: K, texts: v, disabled: d, inputRef: te, autoHideSearch: !0, allItemsLength: e.length })
|
|
2289
2272
|
] }) });
|
|
2290
|
-
},
|
|
2291
|
-
const { register: y, formState: x, setValue: b, watch: k } = pe(), [m, N] =
|
|
2292
|
-
const
|
|
2293
|
-
b(e,
|
|
2273
|
+
}, Uc = ({ InputContainer: t = xe, formField: e, label: n, placeholder: s, size: o, resetsFields: a, showClearIcon: l, clearValue: i, required: c, hidden: d, disabled: u, withoutLabel: f, step: p, stepperStep: h = 1, className: v }) => {
|
|
2274
|
+
const { register: y, formState: x, setValue: b, watch: k } = pe(), [m, N] = E(void 0), [j, $] = E(!1), _ = D(() => {
|
|
2275
|
+
const w = i ?? null;
|
|
2276
|
+
b(e, w !== null ? Number(w) : null, {
|
|
2294
2277
|
shouldDirty: !0,
|
|
2295
|
-
shouldValidate:
|
|
2278
|
+
shouldValidate: j
|
|
2296
2279
|
});
|
|
2297
|
-
}, [i, b, e,
|
|
2298
|
-
const
|
|
2280
|
+
}, [i, b, e, j]), M = D(() => {
|
|
2281
|
+
const w = e.split(".");
|
|
2299
2282
|
let C = x.errors;
|
|
2300
|
-
|
|
2301
|
-
C !== void 0 && (C = C[
|
|
2283
|
+
w.forEach((L) => {
|
|
2284
|
+
C !== void 0 && (C = C[L]);
|
|
2302
2285
|
}), N(C);
|
|
2303
2286
|
}, [x, e]);
|
|
2304
2287
|
T(() => {
|
|
2305
|
-
|
|
2306
|
-
}, [
|
|
2288
|
+
M();
|
|
2289
|
+
}, [M]), T(() => {
|
|
2307
2290
|
x.isSubmitted && $(!0);
|
|
2308
2291
|
}, [x]);
|
|
2309
|
-
const
|
|
2310
|
-
return /* @__PURE__ */ r.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: d, withoutLabel: f, isInvalid:
|
|
2292
|
+
const I = m !== void 0, S = k(e);
|
|
2293
|
+
return /* @__PURE__ */ r.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: d, withoutLabel: f, isInvalid: I, className: v, children: [
|
|
2311
2294
|
/* @__PURE__ */ r.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2312
2295
|
/* @__PURE__ */ r.jsx(ee.Control, { type: "number", placeholder: s ?? n, size: o, ...y(e, {
|
|
2313
|
-
setValueAs: (
|
|
2296
|
+
setValueAs: (w) => w == null || w === "" ? null : Number(w),
|
|
2314
2297
|
onChange: () => {
|
|
2315
|
-
a && a.forEach((
|
|
2298
|
+
a && a.forEach((w) => b(w, null, { shouldDirty: !0, shouldValidate: j }));
|
|
2316
2299
|
}
|
|
2317
|
-
}), isInvalid:
|
|
2318
|
-
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (
|
|
2319
|
-
|
|
2320
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2321
|
-
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (
|
|
2322
|
-
|
|
2323
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
2300
|
+
}), isInvalid: I, hidden: d, disabled: u, className: "w-100 luminus-numeric-stepper", step: p }),
|
|
2301
|
+
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (w) => {
|
|
2302
|
+
w.preventDefault(), w.stopPropagation(), b(e, ((S ? Number(S) : 0) - h).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
2303
|
+
}, children: /* @__PURE__ */ r.jsx(Er, {}) }) }),
|
|
2304
|
+
/* @__PURE__ */ r.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ r.jsx(G, { size: "sm", onClick: (w) => {
|
|
2305
|
+
w.preventDefault(), w.stopPropagation(), b(e, ((S ? Number(S) : 0) + h).toString(), { shouldDirty: !0, shouldValidate: j });
|
|
2306
|
+
}, children: /* @__PURE__ */ r.jsx(Or, {}) }) })
|
|
2324
2307
|
] }),
|
|
2325
2308
|
l && k(e) && /* @__PURE__ */ r.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ r.jsx(G, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ r.jsx(fe, {}) }) }),
|
|
2326
2309
|
m && /* @__PURE__ */ r.jsx(ve, { message: m.message })
|
|
2327
2310
|
] });
|
|
2328
|
-
},
|
|
2329
|
-
item:
|
|
2330
|
-
},
|
|
2311
|
+
}, ta = "_item_1dy8x_1", Mr = {
|
|
2312
|
+
item: ta
|
|
2313
|
+
}, Fr = ({
|
|
2331
2314
|
color: t = "primary",
|
|
2332
2315
|
// icon = <MdOutlineArrowOutward />,
|
|
2333
2316
|
icon: e,
|
|
2334
2317
|
className: n,
|
|
2335
2318
|
children: s,
|
|
2336
2319
|
...o
|
|
2337
|
-
}) => /* @__PURE__ */ r.jsxs(
|
|
2320
|
+
}) => /* @__PURE__ */ r.jsxs(Oe.Item, { className: g(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`, Mr.item), ...o, children: [
|
|
2338
2321
|
e,
|
|
2339
2322
|
s
|
|
2340
|
-
] }),
|
|
2323
|
+
] }), Tr = (t) => /* @__PURE__ */ r.jsx(Oe.Toggle, { ...t }), Kc = ({ color: t = "primary", icon: e = /* @__PURE__ */ r.jsx(gn, { size: 12 }), inputId: n = "context-file-input", accept: s = "*", onUpload: o, multiple: a, className: l, children: i, ...c }) => {
|
|
2341
2324
|
const d = (u) => {
|
|
2342
2325
|
u.target.files && (o(u.target.files), u.target.value = "");
|
|
2343
2326
|
};
|
|
2344
2327
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2345
|
-
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: g(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${l ?? ""}`,
|
|
2328
|
+
/* @__PURE__ */ r.jsxs("label", { htmlFor: n, className: g(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${l ?? ""}`, Mr.item), ...c, children: [
|
|
2346
2329
|
e,
|
|
2347
2330
|
i
|
|
2348
2331
|
] }),
|
|
2349
2332
|
/* @__PURE__ */ r.jsx("input", { id: n, type: "file", accept: s, onChange: d, hidden: !0, multiple: a })
|
|
2350
2333
|
] });
|
|
2351
|
-
},
|
|
2352
|
-
divider:
|
|
2353
|
-
},
|
|
2354
|
-
dropdown:
|
|
2355
|
-
},
|
|
2334
|
+
}, na = "_divider_1e6rk_1", ra = {
|
|
2335
|
+
divider: na
|
|
2336
|
+
}, qc = ({ className: t }) => /* @__PURE__ */ r.jsx(Oe.Divider, { className: g("luminus-dropdown-divider", t, ra.divider) }), sa = "_dropdown_1lk66_1", oa = {
|
|
2337
|
+
dropdown: sa
|
|
2338
|
+
}, Rr = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ r.jsxs(Oe, { ...n, children: [
|
|
2356
2339
|
t,
|
|
2357
|
-
/* @__PURE__ */ r.jsx(
|
|
2358
|
-
] }),
|
|
2340
|
+
/* @__PURE__ */ r.jsx(Oe.Menu, { className: g("luminus-dropdown rounded shadow", oa.dropdown), children: e })
|
|
2341
|
+
] }), Qc = ({ cell: { value: t } }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: t ? /* @__PURE__ */ r.jsx(vn, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ r.jsx(r.Fragment, {}) }), aa = ({ typeFilter: t, onChangeTypeFilter: e }) => {
|
|
2359
2342
|
const n = ["info", "warning", "danger"];
|
|
2360
2343
|
return /* @__PURE__ */ r.jsx("div", { className: "mb-1 d-flex justify-content-center gap-2", children: n.map((s) => /* @__PURE__ */ r.jsx("div", { role: "button", style: {
|
|
2361
2344
|
height: "14px",
|
|
@@ -2366,13 +2349,13 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2366
2349
|
}, className: g(`border-${s}`, s === t && `bg-${s}`), onClick: () => {
|
|
2367
2350
|
e(t === s ? null : s);
|
|
2368
2351
|
} }, s)) });
|
|
2369
|
-
},
|
|
2370
|
-
const { ProjectIconComponent: a, localizationContext: l } = W(
|
|
2352
|
+
}, la = ({ linksTo: t, onClick: e, children: n }) => t ? /* @__PURE__ */ r.jsx(ke, { to: t, className: "text-decoration-none", onClick: e, children: n }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: n }), ca = ({ message: t, onDeleteMessage: e, onClickMessage: n, getIcon: s, getLinksTo: o }) => {
|
|
2353
|
+
const { ProjectIconComponent: a, localizationContext: l } = W(ce), { dateFnsLocale: i } = W(l), c = t.dateTime ? Hs(t.dateTime) : null, d = c ? Ks(new Date(Date.now()), c) : 0;
|
|
2371
2354
|
return /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2372
|
-
c && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(
|
|
2355
|
+
c && /* @__PURE__ */ r.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ r.jsx(Vs, { text: Ee(c, "dd.MM.yyyy HH:mm"), placement: "left", children: /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", children: d > 2 ? Ee(c, "dd.MM.yyyy") : Qs(c, new Date(Date.now()), {
|
|
2373
2356
|
locale: i.code
|
|
2374
2357
|
}) }) }) }) }),
|
|
2375
|
-
/* @__PURE__ */ r.jsx(
|
|
2358
|
+
/* @__PURE__ */ r.jsx(la, { linksTo: o(t) ?? void 0, onClick: n, children: /* @__PURE__ */ r.jsx(Zl, { level: t.type, noIcon: !0, children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start gap-2", children: [
|
|
2376
2359
|
s(t),
|
|
2377
2360
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex flex-column gap-1 w-100", children: [
|
|
2378
2361
|
/* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-start justify-content-between gap-3", children: [
|
|
@@ -2385,13 +2368,13 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2385
2368
|
] })
|
|
2386
2369
|
] }) }) })
|
|
2387
2370
|
] });
|
|
2388
|
-
},
|
|
2389
|
-
const { texts: { messageBoard: l } } = W(
|
|
2371
|
+
}, Jt = ({ messages: t, isLoading: e, onDeleteMessage: n, onClickMessage: s, getIcon: o, getLinksTo: a }) => {
|
|
2372
|
+
const { texts: { messageBoard: l } } = W(ce), [i, c] = E(null), d = z(() => t.filter((u) => i ? u.type === i : !0), [i, t]);
|
|
2390
2373
|
return /* @__PURE__ */ r.jsxs("div", { className: "h-100 d-flex flex-column overflow-hidden", children: [
|
|
2391
|
-
/* @__PURE__ */ r.jsx(
|
|
2374
|
+
/* @__PURE__ */ r.jsx(aa, { typeFilter: i, onChangeTypeFilter: (u) => c(u) }),
|
|
2392
2375
|
e && /* @__PURE__ */ r.jsxs("div", { className: "p-3 w-100", children: [
|
|
2393
|
-
/* @__PURE__ */ r.jsx(me, { as:
|
|
2394
|
-
/* @__PURE__ */ r.jsxs(me, { as:
|
|
2376
|
+
/* @__PURE__ */ r.jsx(me, { as: zt.Title, animation: "glow", children: /* @__PURE__ */ r.jsx(me, { xs: 6 }) }),
|
|
2377
|
+
/* @__PURE__ */ r.jsxs(me, { as: zt.Text, animation: "glow", children: [
|
|
2395
2378
|
/* @__PURE__ */ r.jsx(me, { xs: 7 }),
|
|
2396
2379
|
" ",
|
|
2397
2380
|
/* @__PURE__ */ r.jsx(me, { xs: 4 }),
|
|
@@ -2404,98 +2387,98 @@ const Lc = ({ InputContainer: t = ke, value: e, onChange: n, debounceMs: s, labe
|
|
|
2404
2387
|
] })
|
|
2405
2388
|
] }),
|
|
2406
2389
|
!e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2407
|
-
t.length === 0 && /* @__PURE__ */ r.jsx(
|
|
2408
|
-
/* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2", children: d.map((u) => /* @__PURE__ */ r.jsx(
|
|
2390
|
+
t.length === 0 && /* @__PURE__ */ r.jsx(Gl, { variant: "info", size: "sm", className: "mt-2", children: l.noMessages }),
|
|
2391
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2", children: d.map((u) => /* @__PURE__ */ r.jsx(ca, { message: u, onDeleteMessage: n, onClickMessage: s, getIcon: o, getLinksTo: a }, u.id)) })
|
|
2409
2392
|
] })
|
|
2410
2393
|
] });
|
|
2411
|
-
},
|
|
2394
|
+
}, tt = {
|
|
2412
2395
|
apiGet: "/messageBoard",
|
|
2413
2396
|
apiDelete: "/messageBoard/"
|
|
2414
|
-
},
|
|
2415
|
-
const i =
|
|
2416
|
-
h(!0), await i.get(n).then(({ data:
|
|
2417
|
-
d(
|
|
2397
|
+
}, Jc = ({ renderAsNotifPanel: t, notifIcon: e, apiUrls: { apiGet: n = tt.apiGet, apiDelete: s = tt.apiDelete } = tt, getIcon: o, getLinksTo: a }) => {
|
|
2398
|
+
const i = mt(), [c, d] = E([]), [u, f] = E(!1), [p, h] = E(!1), [v, y] = E(!1), x = D(async () => {
|
|
2399
|
+
h(!0), await i.get(n).then(({ data: j }) => {
|
|
2400
|
+
d(j), f(!0), h(!1);
|
|
2418
2401
|
}).catch(() => {
|
|
2419
2402
|
d([]), h(!1);
|
|
2420
2403
|
});
|
|
2421
|
-
}, [n, i]), b =
|
|
2422
|
-
b(
|
|
2423
|
-
$ && d(c.filter((_) => _.id !==
|
|
2404
|
+
}, [n, i]), b = D(async (j) => i.delete(`${s}${j}`).then(() => !0).catch(() => !1), [s, i]), k = D((j) => {
|
|
2405
|
+
b(j).then(($) => {
|
|
2406
|
+
$ && d(c.filter((_) => _.id !== j));
|
|
2424
2407
|
});
|
|
2425
2408
|
}, [b, c]);
|
|
2426
2409
|
T(() => {
|
|
2427
2410
|
x();
|
|
2428
|
-
const
|
|
2411
|
+
const j = setInterval(() => x(), 60 * 1e3);
|
|
2429
2412
|
return () => {
|
|
2430
|
-
clearInterval(
|
|
2413
|
+
clearInterval(j);
|
|
2431
2414
|
};
|
|
2432
2415
|
}, [x]);
|
|
2433
|
-
const m = c.filter((
|
|
2416
|
+
const m = c.filter((j) => j.type === "danger").length, N = u ? !1 : p;
|
|
2434
2417
|
return t ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2435
2418
|
/* @__PURE__ */ r.jsxs("div", { className: "position-relative", children: [
|
|
2436
2419
|
/* @__PURE__ */ r.jsx(G, { size: "md", onClick: () => y(!v), children: e }),
|
|
2437
2420
|
m > 0 && /* @__PURE__ */ r.jsx("div", { className: "badge rounded-pill bg-danger p-1 px-2 text-white", style: { position: "absolute", top: "-6px", right: "-10px", fontSize: "10px" }, children: m })
|
|
2438
2421
|
] }),
|
|
2439
|
-
/* @__PURE__ */ r.jsx(
|
|
2440
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
2441
|
-
},
|
|
2422
|
+
/* @__PURE__ */ r.jsx(qt, { show: v, onHide: () => y(!1), placement: "end", children: /* @__PURE__ */ r.jsx(qt.Body, { children: /* @__PURE__ */ r.jsx(Jt, { messages: c, isLoading: N, onDeleteMessage: k, onClickMessage: () => y(!1), getIcon: o, getLinksTo: a }) }) })
|
|
2423
|
+
] }) : /* @__PURE__ */ r.jsx(Jt, { messages: c, isLoading: N, onDeleteMessage: k, getIcon: o, getLinksTo: a });
|
|
2424
|
+
}, ia = "_tab-panel_d8l8q_1", da = "_full-height-no-overflow_d8l8q_5", ua = "_disabled_d8l8q_12", nt = {
|
|
2442
2425
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
2443
|
-
tabPanel:
|
|
2426
|
+
tabPanel: ia,
|
|
2444
2427
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
2445
|
-
fullHeightNoOverflow:
|
|
2446
|
-
disabled:
|
|
2447
|
-
},
|
|
2428
|
+
fullHeightNoOverflow: da,
|
|
2429
|
+
disabled: ua
|
|
2430
|
+
}, Xc = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: n, disabled: s, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ r.jsx("div", { className: g("luminus-tab-panel", nt.tabPanel, { [nt.fullHeightNoOverflow]: n }, { disabled: s }, { [nt.disabled]: s }, o), children: a }), Zc = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ r.jsx("div", { className: g("luminus-tabs d-flex gap-1 mb-2"), children: n.map((s) => {
|
|
2448
2431
|
const o = s.type, a = s.props;
|
|
2449
2432
|
if (!a)
|
|
2450
2433
|
return null;
|
|
2451
2434
|
const l = a.eventKey, i = a.children, c = a.className, d = a.onClick;
|
|
2452
|
-
return /* @__PURE__ */
|
|
2435
|
+
return /* @__PURE__ */ ks(o, { ...a, key: a.eventKey, className: g({ active: t === l }, c), onClick: () => {
|
|
2453
2436
|
e(l), d && d(l);
|
|
2454
2437
|
} }, i);
|
|
2455
|
-
}) }),
|
|
2456
|
-
tab:
|
|
2457
|
-
disabled:
|
|
2458
|
-
},
|
|
2438
|
+
}) }), fa = "_tab_1hdhk_1", pa = "_disabled_1hdhk_8", Xt = {
|
|
2439
|
+
tab: fa,
|
|
2440
|
+
disabled: pa
|
|
2441
|
+
}, ei = ({ eventKey: t, className: e, onClick: n, disabled: s, children: o }) => /* @__PURE__ */ r.jsx("div", { role: "button", className: g("luminus-tab text-primary rounded", Xt.tab, e, {
|
|
2459
2442
|
disabled: s
|
|
2460
|
-
}, { [
|
|
2461
|
-
/* @__PURE__ */ r.jsx(
|
|
2462
|
-
/* @__PURE__ */ r.jsx(
|
|
2463
|
-
] }),
|
|
2464
|
-
const [s, o] =
|
|
2443
|
+
}, { [Xt.disabled]: s }), onClick: () => n && !s && n(t), children: typeof o == "string" ? /* @__PURE__ */ r.jsx(Y, { variant: "h6", className: "text-primary", children: o }) : o }), ha = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: s, texts: o }) => /* @__PURE__ */ r.jsxs(Te, { show: t, onHide: () => n(), children: [
|
|
2444
|
+
/* @__PURE__ */ r.jsx(Te.Header, { closeButton: !0, children: /* @__PURE__ */ r.jsx(Te.Title, { children: o.pickWidgetToAdd }) }),
|
|
2445
|
+
/* @__PURE__ */ r.jsx(Te.Body, { children: /* @__PURE__ */ r.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ r.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => s(a.id), children: /* @__PURE__ */ r.jsx(Y, { variant: "body", children: a.name }) })) }) })
|
|
2446
|
+
] }), Zt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
|
|
2447
|
+
const [s, o] = E(!1);
|
|
2465
2448
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2466
|
-
/* @__PURE__ */ r.jsx("div", { className: g("luminus-empty-widget",
|
|
2467
|
-
/* @__PURE__ */ r.jsx(
|
|
2449
|
+
/* @__PURE__ */ r.jsx("div", { className: g("luminus-empty-widget", Zo.widget), children: /* @__PURE__ */ r.jsx(G, { onClick: () => o(!0), children: /* @__PURE__ */ r.jsx(ms, {}) }) }),
|
|
2450
|
+
/* @__PURE__ */ r.jsx(ha, { show: s, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
|
|
2468
2451
|
o(!1), e(a);
|
|
2469
2452
|
}, texts: n })
|
|
2470
2453
|
] });
|
|
2471
|
-
},
|
|
2472
|
-
const [e, n] =
|
|
2454
|
+
}, ma = (t) => {
|
|
2455
|
+
const [e, n] = E({ widgets: [] });
|
|
2473
2456
|
T(() => {
|
|
2474
2457
|
const o = localStorage.getItem("dashboardConfig");
|
|
2475
2458
|
o ? n(JSON.parse(o)) : t && n(t);
|
|
2476
2459
|
}, [t]);
|
|
2477
|
-
const s =
|
|
2460
|
+
const s = D((o) => {
|
|
2478
2461
|
n(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
|
|
2479
2462
|
}, []);
|
|
2480
2463
|
return { dashboardConfig: e, onChangeDashboardConfig: s };
|
|
2481
|
-
},
|
|
2482
|
-
dashboard:
|
|
2464
|
+
}, ga = "_dashboard_16plm_1", xa = "_widgets-grid_16plm_1", va = "_widget-wrapper_16plm_8", ja = "_full-width_16plm_13", wa = "_widget-edit_16plm_16", ya = "_remove-icon_16plm_19", _a = "_full-width-icon_16plm_26", ba = "_widget-edit-overlay_16plm_36", de = {
|
|
2465
|
+
dashboard: ga,
|
|
2483
2466
|
"widgets-grid": "_widgets-grid_16plm_1",
|
|
2484
|
-
widgetsGrid:
|
|
2467
|
+
widgetsGrid: xa,
|
|
2485
2468
|
"widget-wrapper": "_widget-wrapper_16plm_8",
|
|
2486
|
-
widgetWrapper:
|
|
2469
|
+
widgetWrapper: va,
|
|
2487
2470
|
"full-width": "_full-width_16plm_13",
|
|
2488
|
-
fullWidth:
|
|
2471
|
+
fullWidth: ja,
|
|
2489
2472
|
"widget-edit": "_widget-edit_16plm_16",
|
|
2490
|
-
widgetEdit:
|
|
2473
|
+
widgetEdit: wa,
|
|
2491
2474
|
"remove-icon": "_remove-icon_16plm_19",
|
|
2492
|
-
removeIcon:
|
|
2475
|
+
removeIcon: ya,
|
|
2493
2476
|
"full-width-icon": "_full-width-icon_16plm_26",
|
|
2494
|
-
fullWidthIcon:
|
|
2477
|
+
fullWidthIcon: _a,
|
|
2495
2478
|
"widget-edit-overlay": "_widget-edit-overlay_16plm_36",
|
|
2496
|
-
widgetEditOverlay:
|
|
2479
|
+
widgetEditOverlay: ba
|
|
2497
2480
|
};
|
|
2498
|
-
class
|
|
2481
|
+
class Na extends Cs {
|
|
2499
2482
|
constructor(e) {
|
|
2500
2483
|
super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
|
|
2501
2484
|
}
|
|
@@ -2514,29 +2497,29 @@ class ba extends $s {
|
|
|
2514
2497
|
}
|
|
2515
2498
|
render() {
|
|
2516
2499
|
const { fallback: e, children: n, texts: s, reloadButtonDisplay: o = "append-after-child" } = this.props;
|
|
2517
|
-
return this.state.hasError ? o === "inject-to-child" &&
|
|
2500
|
+
return this.state.hasError ? o === "inject-to-child" && Ds(e) ? oe.cloneElement(e, {
|
|
2518
2501
|
...e.props
|
|
2519
2502
|
}, /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
2520
2503
|
...e.props.children,
|
|
2521
|
-
/* @__PURE__ */ r.jsx(
|
|
2504
|
+
/* @__PURE__ */ r.jsx(ct, { type: "button", onClick: this.reload, children: s.reloadButtonContent })
|
|
2522
2505
|
] })) : /* @__PURE__ */ r.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
|
|
2523
2506
|
e,
|
|
2524
|
-
o === "none" ? null : /* @__PURE__ */ r.jsx(
|
|
2507
|
+
o === "none" ? null : /* @__PURE__ */ r.jsx(ct, { type: "button", onClick: this.reload, children: s.reloadButtonContent })
|
|
2525
2508
|
] }) : n;
|
|
2526
2509
|
}
|
|
2527
2510
|
}
|
|
2528
|
-
const
|
|
2529
|
-
const {
|
|
2511
|
+
const $a = (t) => (n) => {
|
|
2512
|
+
const { texts: { errorBoundary: s } } = W(ce);
|
|
2530
2513
|
return /* @__PURE__ */ r.jsx(t, { texts: s, ...n });
|
|
2531
|
-
},
|
|
2514
|
+
}, ka = $a(Na), Ca = "_widget-card_e9tsb_1", Da = {
|
|
2532
2515
|
"widget-card": "_widget-card_e9tsb_1",
|
|
2533
|
-
widgetCard:
|
|
2534
|
-
},
|
|
2535
|
-
const {
|
|
2536
|
-
return /* @__PURE__ */ r.jsx(
|
|
2537
|
-
},
|
|
2516
|
+
widgetCard: Ca
|
|
2517
|
+
}, en = ({ children: t, title: e, headerContent: n }) => /* @__PURE__ */ r.jsx(bl, { className: g(Da.widgetCard, "luminus-widget"), title: e, headerContent: n, contentClassName: "h-100 overflow-auto", children: t }), Ia = ({ children: t, title: e }) => {
|
|
2518
|
+
const { texts: { widget: n } } = W(ce);
|
|
2519
|
+
return /* @__PURE__ */ r.jsx(ka, { fallback: /* @__PURE__ */ r.jsx(en, { title: e, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ r.jsx(Is, { fallback: /* @__PURE__ */ r.jsx(en, { title: e, children: /* @__PURE__ */ r.jsx(Ys, {}) }), children: t }) });
|
|
2520
|
+
}, ti = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
|
|
2538
2521
|
var u;
|
|
2539
|
-
const {
|
|
2522
|
+
const { texts: { homeDashboard: s } } = W(ce), { dashboardConfig: o, onChangeDashboardConfig: a } = ma(n), l = D((f, p) => {
|
|
2540
2523
|
var h, v;
|
|
2541
2524
|
f === ((h = o.widgets) == null ? void 0 : h.length) ? a({
|
|
2542
2525
|
...o,
|
|
@@ -2545,26 +2528,26 @@ const Na = (t) => (n) => {
|
|
|
2545
2528
|
...o,
|
|
2546
2529
|
widgets: ((v = o.widgets) == null ? void 0 : v.map((y, x) => x === f ? { widgetId: p, fullWidth: !1 } : y)) ?? []
|
|
2547
2530
|
});
|
|
2548
|
-
}, [o, a]), i =
|
|
2531
|
+
}, [o, a]), i = D((f) => {
|
|
2549
2532
|
var p, h;
|
|
2550
2533
|
((p = o.widgets[f]) == null ? void 0 : p.widgetId) === -1 ? a({
|
|
2551
2534
|
...o,
|
|
2552
2535
|
widgets: ((h = o.widgets) == null ? void 0 : h.filter((v, y) => y !== f)) ?? []
|
|
2553
2536
|
}) : l(f, -1);
|
|
2554
|
-
}, [o, a, l]), c =
|
|
2537
|
+
}, [o, a, l]), c = D((f) => {
|
|
2555
2538
|
var p;
|
|
2556
2539
|
a({
|
|
2557
2540
|
...o,
|
|
2558
2541
|
widgets: ((p = o.widgets) == null ? void 0 : p.map((h, v) => v === f ? { ...h, fullWidth: !h.fullWidth } : h)) ?? []
|
|
2559
2542
|
});
|
|
2560
|
-
}, [o, a]), d =
|
|
2543
|
+
}, [o, a]), d = D((f, p, h) => f ? /* @__PURE__ */ r.jsxs("div", { className: g(de.widgetWrapper, {
|
|
2561
2544
|
[de.widgetEdit]: e && f.id !== -1
|
|
2562
2545
|
}, { [de.fullWidth]: h }), children: [
|
|
2563
2546
|
e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2564
|
-
/* @__PURE__ */ r.jsx(G, { color: "danger", onClick: () => i(p), className: g(de.removeIcon), children: /* @__PURE__ */ r.jsx(
|
|
2565
|
-
/* @__PURE__ */ r.jsx(G, { color: h ? "danger" : "primary", onClick: () => c(p), className: g(de.fullWidthIcon), children: /* @__PURE__ */ r.jsx(
|
|
2547
|
+
/* @__PURE__ */ r.jsx(G, { color: "danger", onClick: () => i(p), className: g(de.removeIcon), children: /* @__PURE__ */ r.jsx(jn, {}) }),
|
|
2548
|
+
/* @__PURE__ */ r.jsx(G, { color: h ? "danger" : "primary", onClick: () => c(p), className: g(de.fullWidthIcon), children: /* @__PURE__ */ r.jsx(gs, {}) })
|
|
2566
2549
|
] }),
|
|
2567
|
-
f.id === -1 ? e && /* @__PURE__ */ r.jsx("div", { className: de.widgetWrapper, children: /* @__PURE__ */ r.jsx(
|
|
2550
|
+
f.id === -1 ? e && /* @__PURE__ */ r.jsx("div", { className: de.widgetWrapper, children: /* @__PURE__ */ r.jsx(Zt, { availableWidgets: t, onAdd: (v) => l(p, v), texts: s }) }) : /* @__PURE__ */ r.jsx(Ia, { title: f.title, children: /* @__PURE__ */ r.jsx(f.WidgetElement, { title: f.title }) }),
|
|
2568
2551
|
f.id > -1 && e && /* @__PURE__ */ r.jsx("div", { className: de.widgetEditOverlay })
|
|
2569
2552
|
] }, p) : /* @__PURE__ */ r.jsx(r.Fragment, {}), [
|
|
2570
2553
|
e,
|
|
@@ -2576,48 +2559,47 @@ const Na = (t) => (n) => {
|
|
|
2576
2559
|
]);
|
|
2577
2560
|
return /* @__PURE__ */ r.jsx("div", { className: de.dashboard, children: /* @__PURE__ */ r.jsxs("div", { className: de.widgetsGrid, children: [
|
|
2578
2561
|
(u = o.widgets) == null ? void 0 : u.map((f, p) => d(t.find((h) => h.id === f.widgetId), p, f.fullWidth)),
|
|
2579
|
-
e && /* @__PURE__ */ r.jsx(
|
|
2562
|
+
e && /* @__PURE__ */ r.jsx(Zt, { availableWidgets: t, onAdd: (f) => {
|
|
2580
2563
|
var p;
|
|
2581
2564
|
return l((p = o.widgets) == null ? void 0 : p.length, f);
|
|
2582
2565
|
}, texts: s })
|
|
2583
2566
|
] }) });
|
|
2584
|
-
},
|
|
2585
|
-
badge:
|
|
2586
|
-
sm:
|
|
2587
|
-
md:
|
|
2588
|
-
lg:
|
|
2589
|
-
},
|
|
2567
|
+
}, Sa = "_badge_nhser_1", Ea = "_sm_nhser_1", Oa = "_md_nhser_4", Ma = "_lg_nhser_7", tn = {
|
|
2568
|
+
badge: Sa,
|
|
2569
|
+
sm: Ea,
|
|
2570
|
+
md: Oa,
|
|
2571
|
+
lg: Ma
|
|
2572
|
+
}, ni = ({ children: t, color: e = "primary", size: n = "md", className: s }) => /* @__PURE__ */ r.jsx("span", { className: g(`luminus-badge badge bg-${e} ${s ?? ""}`, tn.badge, tn[n]), children: t }), Fa = "_collapse-icon_1ahhn_1", Ta = "_collapsed_1ahhn_6", nn = {
|
|
2590
2573
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
2591
|
-
collapseIcon:
|
|
2592
|
-
collapsed:
|
|
2593
|
-
},
|
|
2594
|
-
const o = s.controlled ? !1 : s.defaultOpen ?? !1, [a, l] =
|
|
2574
|
+
collapseIcon: Fa,
|
|
2575
|
+
collapsed: Ta
|
|
2576
|
+
}, ri = ({ title: t, children: e, className: n, ...s }) => {
|
|
2577
|
+
const o = s.controlled ? !1 : s.defaultOpen ?? !1, [a, l] = E(o), i = s.controlled ? s.isOpen : a;
|
|
2595
2578
|
return T(() => {
|
|
2596
2579
|
l(o);
|
|
2597
2580
|
}, [o]), /* @__PURE__ */ r.jsxs("div", { className: n ?? "", children: [
|
|
2598
2581
|
/* @__PURE__ */ r.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => s.controlled ? s.onToggle(!s.isOpen) : l(!a), children: [
|
|
2599
2582
|
/* @__PURE__ */ r.jsx(Y, { variant: "h6", children: t }),
|
|
2600
|
-
/* @__PURE__ */ r.jsx(
|
|
2601
|
-
[
|
|
2583
|
+
/* @__PURE__ */ r.jsx(wn, { className: g(nn.collapseIcon, {
|
|
2584
|
+
[nn.collapsed]: i
|
|
2602
2585
|
}) })
|
|
2603
2586
|
] }),
|
|
2604
|
-
/* @__PURE__ */ r.jsx(
|
|
2587
|
+
/* @__PURE__ */ r.jsx(En, { in: i, children: /* @__PURE__ */ r.jsx("div", { children: e }) }),
|
|
2605
2588
|
/* @__PURE__ */ r.jsx("hr", { className: `my-0 ${i ? "mt-3" : ""}` })
|
|
2606
2589
|
] });
|
|
2607
|
-
},
|
|
2608
|
-
feedback:
|
|
2590
|
+
}, Ra = "_feedback_esh1j_1", Ba = "_feedback-spacer_esh1j_8", rn = {
|
|
2591
|
+
feedback: Ra,
|
|
2609
2592
|
"feedback-spacer": "_feedback-spacer_esh1j_8",
|
|
2610
|
-
feedbackSpacer:
|
|
2593
|
+
feedbackSpacer: Ba
|
|
2611
2594
|
}, ve = ({ message: t }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2612
|
-
/* @__PURE__ */ r.jsx("div", { className: g("invalid-feedback luminus-invalid-feedback",
|
|
2613
|
-
/* @__PURE__ */ r.jsx("div", { className: g("invalid-feedback-spacer",
|
|
2595
|
+
/* @__PURE__ */ r.jsx("div", { className: g("invalid-feedback luminus-invalid-feedback", rn.feedback), children: t }),
|
|
2596
|
+
/* @__PURE__ */ r.jsx("div", { className: g("invalid-feedback-spacer", rn.feedbackSpacer), children: t })
|
|
2614
2597
|
] });
|
|
2615
2598
|
function La(t, e, n) {
|
|
2616
2599
|
var s = this, o = V(null), a = V(0), l = V(null), i = V([]), c = V(), d = V(), u = V(t), f = V(!0);
|
|
2617
2600
|
u.current = t;
|
|
2618
2601
|
var p = typeof window < "u", h = !e && e !== 0 && p;
|
|
2619
|
-
if (typeof t != "function")
|
|
2620
|
-
throw new TypeError("Expected a function");
|
|
2602
|
+
if (typeof t != "function") throw new TypeError("Expected a function");
|
|
2621
2603
|
e = +e || 0;
|
|
2622
2604
|
var v = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, x = "maxWait" in n, b = "debounceOnServer" in n && !!n.debounceOnServer, k = x ? Math.max(+n.maxWait || 0, e) : null;
|
|
2623
2605
|
T(function() {
|
|
@@ -2626,242 +2608,238 @@ function La(t, e, n) {
|
|
|
2626
2608
|
};
|
|
2627
2609
|
}, []);
|
|
2628
2610
|
var m = z(function() {
|
|
2629
|
-
var N = function(
|
|
2630
|
-
var
|
|
2631
|
-
return i.current = c.current = null, a.current =
|
|
2632
|
-
},
|
|
2633
|
-
h && cancelAnimationFrame(l.current), l.current = h ? requestAnimationFrame(
|
|
2634
|
-
}, $ = function(
|
|
2635
|
-
if (!f.current)
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
if ($(j))
|
|
2644
|
-
return _(j);
|
|
2611
|
+
var N = function(S) {
|
|
2612
|
+
var w = i.current, C = c.current;
|
|
2613
|
+
return i.current = c.current = null, a.current = S, d.current = u.current.apply(C, w);
|
|
2614
|
+
}, j = function(S, w) {
|
|
2615
|
+
h && cancelAnimationFrame(l.current), l.current = h ? requestAnimationFrame(S) : setTimeout(S, w);
|
|
2616
|
+
}, $ = function(S) {
|
|
2617
|
+
if (!f.current) return !1;
|
|
2618
|
+
var w = S - o.current;
|
|
2619
|
+
return !o.current || w >= e || w < 0 || x && S - a.current >= k;
|
|
2620
|
+
}, _ = function(S) {
|
|
2621
|
+
return l.current = null, y && i.current ? N(S) : (i.current = c.current = null, d.current);
|
|
2622
|
+
}, M = function S() {
|
|
2623
|
+
var w = Date.now();
|
|
2624
|
+
if ($(w)) return _(w);
|
|
2645
2625
|
if (f.current) {
|
|
2646
|
-
var C = e - (
|
|
2647
|
-
|
|
2626
|
+
var C = e - (w - o.current), L = x ? Math.min(C, k - (w - a.current)) : C;
|
|
2627
|
+
j(S, L);
|
|
2648
2628
|
}
|
|
2649
|
-
},
|
|
2629
|
+
}, I = function() {
|
|
2650
2630
|
if (p || b) {
|
|
2651
|
-
var
|
|
2652
|
-
if (i.current = [].slice.call(arguments), c.current = s, o.current =
|
|
2653
|
-
if (!l.current && f.current)
|
|
2654
|
-
|
|
2655
|
-
if (x)
|
|
2656
|
-
return w(O, e), N(o.current);
|
|
2631
|
+
var S = Date.now(), w = $(S);
|
|
2632
|
+
if (i.current = [].slice.call(arguments), c.current = s, o.current = S, w) {
|
|
2633
|
+
if (!l.current && f.current) return a.current = o.current, j(M, e), v ? N(o.current) : d.current;
|
|
2634
|
+
if (x) return j(M, e), N(o.current);
|
|
2657
2635
|
}
|
|
2658
|
-
return l.current ||
|
|
2636
|
+
return l.current || j(M, e), d.current;
|
|
2659
2637
|
}
|
|
2660
2638
|
};
|
|
2661
|
-
return
|
|
2639
|
+
return I.cancel = function() {
|
|
2662
2640
|
l.current && (h ? cancelAnimationFrame(l.current) : clearTimeout(l.current)), a.current = 0, i.current = o.current = c.current = l.current = null;
|
|
2663
|
-
},
|
|
2641
|
+
}, I.isPending = function() {
|
|
2664
2642
|
return !!l.current;
|
|
2665
|
-
},
|
|
2643
|
+
}, I.flush = function() {
|
|
2666
2644
|
return l.current ? _(Date.now()) : d.current;
|
|
2667
|
-
},
|
|
2645
|
+
}, I;
|
|
2668
2646
|
}, [v, x, e, k, y, h, p, b]);
|
|
2669
2647
|
return m;
|
|
2670
2648
|
}
|
|
2671
|
-
function
|
|
2649
|
+
function Aa(t, e) {
|
|
2672
2650
|
return t === e;
|
|
2673
2651
|
}
|
|
2674
|
-
function
|
|
2652
|
+
function Ha(t, e) {
|
|
2675
2653
|
return e;
|
|
2676
2654
|
}
|
|
2677
|
-
function
|
|
2678
|
-
var s =
|
|
2655
|
+
function Br(t, e, n) {
|
|
2656
|
+
var s = Aa, o = _n(Ha, t), a = o[0], l = o[1], i = La(D(function(d) {
|
|
2679
2657
|
return l(d);
|
|
2680
2658
|
}, [l]), e, n), c = V(t);
|
|
2681
|
-
return s(c.current, t) || (i(t), c.current = t), [a, i];
|
|
2659
|
+
return s(c.current, t) || (i(t), c.current = t), s(a, t) && i.cancel(), [a, i];
|
|
2682
2660
|
}
|
|
2683
|
-
const
|
|
2684
|
-
wrapper:
|
|
2685
|
-
open:
|
|
2686
|
-
dropdown:
|
|
2661
|
+
const Wa = "_wrapper_uccrb_1", Pa = "_open_uccrb_9", Va = "_dropdown_uccrb_13", za = "_search-input-container_uccrb_19", Ya = "_search-input_uccrb_19", Ga = "_loading-container_uccrb_25", Ua = "_items-container_uccrb_32", Ka = "_header-row_uccrb_38", qa = "_item_uccrb_32", Qa = "_name_uccrb_57", Ja = "_column-item_uccrb_62", Xa = "_icon_uccrb_66", Za = "_clear-button_uccrb_74", se = {
|
|
2662
|
+
wrapper: Wa,
|
|
2663
|
+
open: Pa,
|
|
2664
|
+
dropdown: Va,
|
|
2687
2665
|
"search-input-container": "_search-input-container_uccrb_19",
|
|
2688
|
-
searchInputContainer:
|
|
2666
|
+
searchInputContainer: za,
|
|
2689
2667
|
"search-input": "_search-input_uccrb_19",
|
|
2690
|
-
searchInput:
|
|
2668
|
+
searchInput: Ya,
|
|
2691
2669
|
"loading-container": "_loading-container_uccrb_25",
|
|
2692
|
-
loadingContainer:
|
|
2670
|
+
loadingContainer: Ga,
|
|
2693
2671
|
"items-container": "_items-container_uccrb_32",
|
|
2694
|
-
itemsContainer:
|
|
2672
|
+
itemsContainer: Ua,
|
|
2695
2673
|
"header-row": "_header-row_uccrb_38",
|
|
2696
|
-
headerRow:
|
|
2697
|
-
item:
|
|
2698
|
-
name:
|
|
2674
|
+
headerRow: Ka,
|
|
2675
|
+
item: qa,
|
|
2676
|
+
name: Qa,
|
|
2699
2677
|
"column-item": "_column-item_uccrb_62",
|
|
2700
|
-
columnItem:
|
|
2701
|
-
icon:
|
|
2678
|
+
columnItem: Ja,
|
|
2679
|
+
icon: Xa,
|
|
2702
2680
|
"clear-button": "_clear-button_uccrb_74",
|
|
2703
|
-
clearButton:
|
|
2704
|
-
},
|
|
2681
|
+
clearButton: Za
|
|
2682
|
+
}, kt = ({ show: t, onCancel: e, items: n, currentSelection: s, onSelectionChange: o, onSearchQueryChange: a, texts: l, itemsNameWidth: i, additionalColumns: c, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: f, disabled: p, isLoading: h = !1, inputRef: v }) => {
|
|
2705
2683
|
var P;
|
|
2706
|
-
const y = V(null), x = V(null), b = V(null), k = V(null), [m, N] =
|
|
2684
|
+
const y = V(null), x = V(null), b = V(null), k = V(null), [m, N] = E(""), [j] = Br(m, 500), [, $] = E(!1), _ = (P = v.current) == null ? void 0 : P.getBoundingClientRect(), M = (_ == null ? void 0 : _.x) ?? 0, I = ((_ == null ? void 0 : _.x) ?? 0) + ((_ == null ? void 0 : _.width) ?? 0), S = (_ == null ? void 0 : _.y) ?? 0, w = ((_ == null ? void 0 : _.y) ?? 0) + ((_ == null ? void 0 : _.height) ?? 0), C = (_ == null ? void 0 : _.width) ?? 0, L = (_ == null ? void 0 : _.height) ?? 0, H = 5, Q = z(() => M ? M > window.innerWidth / 2 : !1, [M]), K = z(() => S ? S > window.innerHeight / 2 : !1, [S]);
|
|
2707
2685
|
T(() => {
|
|
2708
|
-
var
|
|
2709
|
-
t && ((
|
|
2686
|
+
var B;
|
|
2687
|
+
t && ((B = b.current) == null || B.focus());
|
|
2710
2688
|
}, [b, t]), T(() => {
|
|
2711
2689
|
t || N("");
|
|
2712
2690
|
}, [t]), T(() => {
|
|
2713
|
-
a(
|
|
2714
|
-
}, [
|
|
2715
|
-
const [R, U] =
|
|
2691
|
+
a(j);
|
|
2692
|
+
}, [j, a]);
|
|
2693
|
+
const [R, U] = E(null);
|
|
2716
2694
|
T(() => {
|
|
2717
2695
|
t && n.length > 0 ? U(0) : U(null);
|
|
2718
2696
|
}, [n, t]);
|
|
2719
|
-
const te = z(() => R !== null ? n.at(R) ?? null : null, [R, n]), q =
|
|
2720
|
-
var
|
|
2721
|
-
const
|
|
2722
|
-
if (
|
|
2723
|
-
const
|
|
2724
|
-
X === "down" ? (
|
|
2697
|
+
const te = z(() => R !== null ? n.at(R) ?? null : null, [R, n]), q = D((B, X) => {
|
|
2698
|
+
var Ct, Dt;
|
|
2699
|
+
const le = document.getElementById(`item-${B}`);
|
|
2700
|
+
if (le) {
|
|
2701
|
+
const It = le.clientHeight ?? 0;
|
|
2702
|
+
X === "down" ? (Ct = k.current) == null || Ct.scrollBy({
|
|
2725
2703
|
left: 0,
|
|
2726
|
-
top:
|
|
2704
|
+
top: It,
|
|
2727
2705
|
behavior: "smooth"
|
|
2728
|
-
}) : (
|
|
2706
|
+
}) : (Dt = k.current) == null || Dt.scrollBy({
|
|
2729
2707
|
left: 0,
|
|
2730
|
-
top: -
|
|
2708
|
+
top: -It,
|
|
2731
2709
|
behavior: "smooth"
|
|
2732
2710
|
});
|
|
2733
2711
|
}
|
|
2734
|
-
}, []), F =
|
|
2712
|
+
}, []), F = D((B) => {
|
|
2735
2713
|
if (R === null || p)
|
|
2736
2714
|
return;
|
|
2737
|
-
const X = R +
|
|
2738
|
-
X < 0 || X >= n.length || U((
|
|
2739
|
-
}, [R, n, p, q]), J =
|
|
2715
|
+
const X = R + B;
|
|
2716
|
+
X < 0 || X >= n.length || U((le) => (le !== null && q(le, B > 0 ? "down" : "up"), X));
|
|
2717
|
+
}, [R, n, p, q]), J = D((B) => {
|
|
2740
2718
|
if (t)
|
|
2741
|
-
switch (
|
|
2719
|
+
switch (B.key) {
|
|
2742
2720
|
case "Escape":
|
|
2743
|
-
|
|
2721
|
+
B.stopPropagation(), B.preventDefault(), e();
|
|
2744
2722
|
break;
|
|
2745
2723
|
case "Enter":
|
|
2746
|
-
|
|
2724
|
+
B.stopPropagation(), B.preventDefault(), p || o(te);
|
|
2747
2725
|
break;
|
|
2748
2726
|
case "ArrowUp":
|
|
2749
|
-
|
|
2727
|
+
B.stopPropagation(), B.preventDefault(), F(-1);
|
|
2750
2728
|
break;
|
|
2751
2729
|
case "ArrowDown":
|
|
2752
|
-
|
|
2730
|
+
B.stopPropagation(), B.preventDefault(), F(1);
|
|
2753
2731
|
break;
|
|
2754
2732
|
}
|
|
2755
|
-
}, [e, t, F, te, p, o]), re =
|
|
2756
|
-
$((
|
|
2733
|
+
}, [e, t, F, te, p, o]), re = D(() => {
|
|
2734
|
+
$((B) => !B);
|
|
2757
2735
|
}, []);
|
|
2758
2736
|
T(() => (window.addEventListener("scroll", re), () => {
|
|
2759
2737
|
window.removeEventListener("scroll", re);
|
|
2760
2738
|
}), [re]), T(() => (window.addEventListener("resize", re), () => {
|
|
2761
2739
|
window.removeEventListener("resize", re);
|
|
2762
|
-
}), [re]),
|
|
2763
|
-
const je = i ?? (c && c.length > 0 ? 250 : 0), ne = (c == null ? void 0 : c.reduce((
|
|
2740
|
+
}), [re]), Cn(J), Dn([y, x], e);
|
|
2741
|
+
const je = i ?? (c && c.length > 0 ? 250 : 0), ne = (c == null ? void 0 : c.reduce((B, X) => B + (X.width ?? 100), 0)) ?? 0, ie = `calc(max(${C}px, ${je}px + ${ne}px))`;
|
|
2764
2742
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2765
|
-
/* @__PURE__ */ r.jsx(
|
|
2743
|
+
/* @__PURE__ */ r.jsx(Hr, { show: t, onClick: e }),
|
|
2766
2744
|
s && t && !p && /* @__PURE__ */ r.jsx("button", { ref: x, type: "button", className: g("luminus-dropdown-picker-clear-button", se.clearButton), onClick: () => !p && o(null), style: {
|
|
2767
|
-
top: `calc(${
|
|
2768
|
-
left: `calc(${
|
|
2769
|
-
}, children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ r.jsx(
|
|
2745
|
+
top: `calc(${S}px + ${L / 2}px - 12px)`,
|
|
2746
|
+
left: `calc(${M}px - 24px - 8px)`
|
|
2747
|
+
}, children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ r.jsx(jn, { size: 16 }) }) }),
|
|
2770
2748
|
/* @__PURE__ */ r.jsx("div", { className: g("luminus-dropdown-picker", se.wrapper, {
|
|
2771
2749
|
[se.open]: t
|
|
2772
2750
|
}), style: {
|
|
2773
|
-
top: K ? `calc(${
|
|
2774
|
-
left: Q ? `calc(${
|
|
2775
|
-
right: Q ? `${
|
|
2751
|
+
top: K ? `calc(${S}px - 50vh - 8px)` : `calc(${w}px + 8px)`,
|
|
2752
|
+
left: Q ? `calc(${I}px - ${ie})` : M,
|
|
2753
|
+
right: Q ? `${I}px` : `calc(${M}px + ${ie})`,
|
|
2776
2754
|
width: ie,
|
|
2777
2755
|
justifyContent: K ? "flex-end" : "flex-start"
|
|
2778
2756
|
}, children: /* @__PURE__ */ r.jsx("div", { ref: y, className: g("shadow rounded", se.dropdown), children: !p && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2779
|
-
u && (f ?? n.length) <= H ? null : /* @__PURE__ */ r.jsx("div", { className: g("search-input-container border-bottom", se.searchInputContainer), children: /* @__PURE__ */ r.jsx(ee.Control, { ref: b, type: "search", size: "sm", className: se.searchInput, placeholder: l.searchPlaceholder, value: m, onChange: (
|
|
2757
|
+
u && (f ?? n.length) <= H ? null : /* @__PURE__ */ r.jsx("div", { className: g("search-input-container border-bottom", se.searchInputContainer), children: /* @__PURE__ */ r.jsx(ee.Control, { ref: b, type: "search", size: "sm", className: se.searchInput, placeholder: l.searchPlaceholder, value: m, onChange: (B) => {
|
|
2780
2758
|
var X;
|
|
2781
|
-
return N(((X =
|
|
2759
|
+
return N(((X = B.target) == null ? void 0 : X.value) ?? "");
|
|
2782
2760
|
} }) }),
|
|
2783
|
-
h ? /* @__PURE__ */ r.jsx("div", { className: se.loadingContainer, children: /* @__PURE__ */ r.jsx(
|
|
2761
|
+
h ? /* @__PURE__ */ r.jsx("div", { className: se.loadingContainer, children: /* @__PURE__ */ r.jsx($t, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ r.jsxs("div", { ref: k, className: g("items", se.itemsContainer), children: [
|
|
2784
2762
|
c && c.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: g("header-row border-bottom", se.headerRow), children: [
|
|
2785
2763
|
/* @__PURE__ */ r.jsx("div", { className: se.name }),
|
|
2786
|
-
c == null ? void 0 : c.map((
|
|
2787
|
-
width: `${
|
|
2788
|
-
minWidth: `${
|
|
2789
|
-
maxWidth: `${
|
|
2790
|
-
}, children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", children:
|
|
2764
|
+
c == null ? void 0 : c.map((B) => /* @__PURE__ */ r.jsx("div", { className: se.columnItem, style: {
|
|
2765
|
+
width: `${B.width ?? 100}px`,
|
|
2766
|
+
minWidth: `${B.width ?? 100}px`,
|
|
2767
|
+
maxWidth: `${B.width ?? 100}px`
|
|
2768
|
+
}, children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", children: B.name }) }, B.key))
|
|
2791
2769
|
] }),
|
|
2792
|
-
n == null ? void 0 : n.map((
|
|
2770
|
+
n == null ? void 0 : n.map((B, X) => /* @__PURE__ */ r.jsxs("button", { id: `item-${X}`, type: "button", className: g("item cursor-pointer", se.item, {
|
|
2793
2771
|
[se.focused]: R === X
|
|
2794
2772
|
}, {
|
|
2795
2773
|
focused: R === X
|
|
2796
|
-
}), onClick: () => !p && o(
|
|
2797
|
-
/* @__PURE__ */ r.jsx("div", { className: se.name, children: /* @__PURE__ */ r.jsx(Y, { variant: "body2", children: d ?
|
|
2798
|
-
c == null ? void 0 : c.map((
|
|
2799
|
-
width: `${
|
|
2800
|
-
minWidth: `${
|
|
2801
|
-
maxWidth: `${
|
|
2802
|
-
}, children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", className: g("text-muted"), children:
|
|
2803
|
-
] },
|
|
2774
|
+
}), onClick: () => !p && o(B), onMouseEnter: () => U(X), children: [
|
|
2775
|
+
/* @__PURE__ */ r.jsx("div", { className: se.name, children: /* @__PURE__ */ r.jsx(Y, { variant: "body2", children: d ? B.id : B.name }) }),
|
|
2776
|
+
c == null ? void 0 : c.map((le) => /* @__PURE__ */ r.jsx("div", { className: se.columnItem, style: {
|
|
2777
|
+
width: `${le.width ?? 100}px`,
|
|
2778
|
+
minWidth: `${le.width ?? 100}px`,
|
|
2779
|
+
maxWidth: `${le.width ?? 100}px`
|
|
2780
|
+
}, children: /* @__PURE__ */ r.jsx(Y, { variant: "caption", className: g("text-muted"), children: B.additionalColumns && B.additionalColumns[le.key] }) }, le.key))
|
|
2781
|
+
] }, B.id))
|
|
2804
2782
|
] })
|
|
2805
2783
|
] }) }) })
|
|
2806
2784
|
] });
|
|
2807
|
-
},
|
|
2808
|
-
dropdown:
|
|
2809
|
-
open:
|
|
2785
|
+
}, el = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ r.jsx(Rr, { toggle: /* @__PURE__ */ r.jsx(Tr, { as: xs, icon: null, text: e == null ? void 0 : e.text }), children: t.map((s) => /* @__PURE__ */ r.jsx(Fr, { icon: null, onClick: () => n(s.key), children: s.text }, s.key)) }), tl = "_dropdown_1ddrg_1", nl = "_open_1ddrg_12", rl = "_loading-container_1ddrg_15", sl = "_groups-container_1ddrg_22", ol = "_group_1ddrg_22", al = "_header_1ddrg_26", ll = "_item_1ddrg_33", we = {
|
|
2786
|
+
dropdown: tl,
|
|
2787
|
+
open: nl,
|
|
2810
2788
|
"loading-container": "_loading-container_1ddrg_15",
|
|
2811
|
-
loadingContainer:
|
|
2789
|
+
loadingContainer: rl,
|
|
2812
2790
|
"groups-container": "_groups-container_1ddrg_22",
|
|
2813
|
-
groupsContainer:
|
|
2814
|
-
group:
|
|
2815
|
-
header:
|
|
2816
|
-
item:
|
|
2817
|
-
},
|
|
2818
|
-
const {
|
|
2819
|
-
var
|
|
2820
|
-
const
|
|
2821
|
-
return
|
|
2791
|
+
groupsContainer: sl,
|
|
2792
|
+
group: ol,
|
|
2793
|
+
header: al,
|
|
2794
|
+
item: ll
|
|
2795
|
+
}, cl = ({ show: t, query: e, onCancel: n, groups: s, isLoading: o, searchTypes: a }) => {
|
|
2796
|
+
const { texts: { appSearch: l } } = W(ce), i = V(null), c = D((d) => {
|
|
2797
|
+
var f;
|
|
2798
|
+
const u = (f = a.find((p) => p.key === d.type)) == null ? void 0 : f.toPath;
|
|
2799
|
+
return u ? `${u}/${d.searchKey}` : "/not-found";
|
|
2822
2800
|
}, [a]);
|
|
2823
|
-
return
|
|
2801
|
+
return Dn([i], n), /* @__PURE__ */ r.jsx("div", { ref: i, className: g("luminus-app-search-dropdown shadow rounded", we.dropdown, {
|
|
2824
2802
|
[we.open]: t
|
|
2825
|
-
}), children: o ? /* @__PURE__ */ r.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ r.jsx(
|
|
2826
|
-
var
|
|
2803
|
+
}), children: o ? /* @__PURE__ */ r.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ r.jsx($t, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ r.jsx("div", { className: we.groupsContainer, children: s == null ? void 0 : s.map((d) => {
|
|
2804
|
+
var u;
|
|
2827
2805
|
return /* @__PURE__ */ r.jsxs("div", { className: g(we.group), children: [
|
|
2828
|
-
/* @__PURE__ */ r.jsxs(
|
|
2829
|
-
/* @__PURE__ */ r.jsx(Y, { variant: "body", className: "text-primary", children:
|
|
2806
|
+
/* @__PURE__ */ r.jsxs(ke, { to: `/search?query=${e}&type=${d.key.category}`, className: g("group-header", we.header), onClick: n, children: [
|
|
2807
|
+
/* @__PURE__ */ r.jsx(Y, { variant: "body", className: "text-primary", children: d.key.categoryName }),
|
|
2830
2808
|
/* @__PURE__ */ r.jsxs(Y, { variant: "caption", children: [
|
|
2831
|
-
|
|
2809
|
+
d.items.length,
|
|
2832
2810
|
" ",
|
|
2833
|
-
|
|
2811
|
+
l.amountFrom,
|
|
2834
2812
|
" ",
|
|
2835
|
-
|
|
2813
|
+
d.key.totalCount
|
|
2836
2814
|
] })
|
|
2837
2815
|
] }),
|
|
2838
|
-
(
|
|
2839
|
-
|
|
2816
|
+
(u = d.items) == null ? void 0 : u.map((f, p) => /* @__PURE__ */ r.jsxs(
|
|
2817
|
+
ke,
|
|
2840
2818
|
{
|
|
2841
|
-
to:
|
|
2819
|
+
to: c(f),
|
|
2842
2820
|
className: g("search-item d-flex gap-3 align-items-center justify-content-between", we.item),
|
|
2843
2821
|
onClick: n,
|
|
2844
2822
|
children: [
|
|
2845
|
-
/* @__PURE__ */ r.jsx(Y, { variant: "body2", className: "text-nowrap text-truncate", children:
|
|
2846
|
-
/* @__PURE__ */ r.jsx(Y, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r.jsx(
|
|
2823
|
+
/* @__PURE__ */ r.jsx(Y, { variant: "body2", className: "text-nowrap text-truncate", children: f.name }),
|
|
2824
|
+
/* @__PURE__ */ r.jsx(Y, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ r.jsx(vs, {}) })
|
|
2847
2825
|
]
|
|
2848
2826
|
},
|
|
2849
|
-
|
|
2827
|
+
p
|
|
2850
2828
|
))
|
|
2851
|
-
] },
|
|
2829
|
+
] }, d.key.category);
|
|
2852
2830
|
}) }) });
|
|
2853
|
-
},
|
|
2831
|
+
}, il = "_input-group_1lkfy_1", dl = "_input-group-text_1lkfy_5", ul = "_left_1lkfy_9", fl = "_right_1lkfy_13", pl = "_input_1lkfy_1", hl = "_submit-button_1lkfy_20", ye = {
|
|
2854
2832
|
"input-group": "_input-group_1lkfy_1",
|
|
2855
|
-
inputGroup:
|
|
2833
|
+
inputGroup: il,
|
|
2856
2834
|
"input-group-text": "_input-group-text_1lkfy_5",
|
|
2857
|
-
inputGroupText:
|
|
2858
|
-
left:
|
|
2859
|
-
right:
|
|
2860
|
-
input:
|
|
2835
|
+
inputGroupText: dl,
|
|
2836
|
+
left: ul,
|
|
2837
|
+
right: fl,
|
|
2838
|
+
input: pl,
|
|
2861
2839
|
"submit-button": "_submit-button_1lkfy_20",
|
|
2862
|
-
submitButton:
|
|
2863
|
-
},
|
|
2864
|
-
const n =
|
|
2840
|
+
submitButton: hl
|
|
2841
|
+
}, ml = (t, e) => {
|
|
2842
|
+
const n = mt(), [s, o] = E(!1), [a, l] = E([]), i = !t || !t.key, c = D(() => {
|
|
2865
2843
|
if (e.length < 3) {
|
|
2866
2844
|
l([]);
|
|
2867
2845
|
return;
|
|
@@ -2875,36 +2853,36 @@ const Ha = "_wrapper_uccrb_1", Wa = "_open_uccrb_9", Pa = "_dropdown_uccrb_13",
|
|
|
2875
2853
|
return T(() => {
|
|
2876
2854
|
c();
|
|
2877
2855
|
}, [c]), { isLoading: s, searchItems: a };
|
|
2878
|
-
},
|
|
2856
|
+
}, si = ({ searchTypes: t, navigateFunction: e, currentPath: n }) => {
|
|
2879
2857
|
var y;
|
|
2880
|
-
const {
|
|
2858
|
+
const { texts: { appSearch: s } } = W(ce), [o, a] = E(t.length > 0 ? ((y = t.at(0)) == null ? void 0 : y.key) ?? null : null), l = z(() => t.find((x) => x.key === o) ?? null, [t, o]), [i, c] = E(""), [d, u] = Br(i, 500), { isLoading: f, searchItems: p } = ml(l, d), [h, v] = E(!1);
|
|
2881
2859
|
return T(() => {
|
|
2882
2860
|
(p.length > 0 || f) && v(!0);
|
|
2883
2861
|
}, [p, f]), T(() => {
|
|
2884
2862
|
c("");
|
|
2885
2863
|
}, [n]), /* @__PURE__ */ r.jsx(ee, { onSubmit: (x) => {
|
|
2886
2864
|
x.preventDefault(), x.stopPropagation(), u.flush(), v(!1), i.length > 2 && e(`/search?query=${i}${l && l.key && `&type=${l == null ? void 0 : l.key}`}`);
|
|
2887
|
-
}, children: /* @__PURE__ */ r.jsxs(
|
|
2888
|
-
/* @__PURE__ */ r.jsx(
|
|
2865
|
+
}, children: /* @__PURE__ */ r.jsxs(Ze, { className: ye.inputGroup, children: [
|
|
2866
|
+
/* @__PURE__ */ r.jsx(Ze.Text, { className: g("p-1 rounded", ye.inputGroupText, ye.left), children: /* @__PURE__ */ r.jsx(el, { searchTypes: t, selectedType: l, setSelectedType: a }) }),
|
|
2889
2867
|
/* @__PURE__ */ r.jsx(ee.Control, { placeholder: s.searchPlaceholder, type: "text", size: "sm", className: g("luminus-app-search-input", ye.input), value: i, onChange: (x) => {
|
|
2890
2868
|
var b;
|
|
2891
2869
|
return c(((b = x.target) == null ? void 0 : b.value) ?? "");
|
|
2892
2870
|
}, onFocus: () => p.length > 0 && v(!0) }),
|
|
2893
|
-
/* @__PURE__ */ r.jsx(
|
|
2894
|
-
/* @__PURE__ */ r.jsx(
|
|
2871
|
+
/* @__PURE__ */ r.jsx(Ze.Text, { className: g("p-0 rounded", ye.inputGroupText, ye.right), children: /* @__PURE__ */ r.jsx("button", { type: "submit", className: g("text-primary", ye.submitButton), children: /* @__PURE__ */ r.jsx(ea, {}) }) }),
|
|
2872
|
+
/* @__PURE__ */ r.jsx(cl, { query: d, searchTypes: t, show: h, onCancel: () => v(!1), groups: p, isLoading: f })
|
|
2895
2873
|
] }) });
|
|
2896
|
-
},
|
|
2897
|
-
card:
|
|
2898
|
-
header:
|
|
2874
|
+
}, gl = "_card_19733_1", xl = "_header_19733_6", vl = "_header-content_19733_13", jl = "_title_19733_19", wl = "_collapse-icon_19733_22", yl = "_collapsed_19733_27", _l = "_content_19733_30", _e = {
|
|
2875
|
+
card: gl,
|
|
2876
|
+
header: xl,
|
|
2899
2877
|
"header-content": "_header-content_19733_13",
|
|
2900
|
-
headerContent:
|
|
2901
|
-
title:
|
|
2878
|
+
headerContent: vl,
|
|
2879
|
+
title: jl,
|
|
2902
2880
|
"collapse-icon": "_collapse-icon_19733_22",
|
|
2903
|
-
collapseIcon:
|
|
2904
|
-
collapsed:
|
|
2905
|
-
content:
|
|
2906
|
-
},
|
|
2907
|
-
const i = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [c, d] =
|
|
2881
|
+
collapseIcon: wl,
|
|
2882
|
+
collapsed: yl,
|
|
2883
|
+
content: _l
|
|
2884
|
+
}, bl = ({ title: t, headerContent: e, children: n, className: s, headerClassName: o, contentClassName: a, ...l }) => {
|
|
2885
|
+
const i = l.collapsible ? l.controlled ? !1 : l.defaultOpen ?? !1 : !0, [c, d] = E(i), u = l.collapsible ? l.controlled ? l.isOpen : c : !0;
|
|
2908
2886
|
return T(() => {
|
|
2909
2887
|
d(i);
|
|
2910
2888
|
}, [i]), /* @__PURE__ */ r.jsxs("div", { className: g("luminus-card rounded shadow-sm", _e.card, {
|
|
@@ -2919,16 +2897,16 @@ const Ha = "_wrapper_uccrb_1", Wa = "_open_uccrb_9", Pa = "_dropdown_uccrb_13",
|
|
|
2919
2897
|
/* @__PURE__ */ r.jsx(Y, { variant: "h6", className: g("text-primary", _e.title), children: t }),
|
|
2920
2898
|
e ?? null
|
|
2921
2899
|
] }),
|
|
2922
|
-
l.collapsible && /* @__PURE__ */ r.jsx(
|
|
2900
|
+
l.collapsible && /* @__PURE__ */ r.jsx(wn, { className: g(_e.collapseIcon, {
|
|
2923
2901
|
[_e.collapsed]: u
|
|
2924
2902
|
}) })
|
|
2925
2903
|
] }),
|
|
2926
|
-
/* @__PURE__ */ r.jsx(
|
|
2904
|
+
/* @__PURE__ */ r.jsx(En, { in: u, children: /* @__PURE__ */ r.jsx("div", { className: g("card-content border-top border-primary", _e.content, {
|
|
2927
2905
|
[a ?? ""]: a
|
|
2928
2906
|
}), children: n }) })
|
|
2929
2907
|
] });
|
|
2930
2908
|
};
|
|
2931
|
-
var
|
|
2909
|
+
var Nl = !!(typeof window < "u" && window.document && window.document.createElement), $l = /* @__PURE__ */ function() {
|
|
2932
2910
|
function t(e, n) {
|
|
2933
2911
|
for (var s = 0; s < n.length; s++) {
|
|
2934
2912
|
var o = n[s];
|
|
@@ -2939,26 +2917,26 @@ var bl = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
2939
2917
|
return n && t(e.prototype, n), s && t(e, s), e;
|
|
2940
2918
|
};
|
|
2941
2919
|
}();
|
|
2942
|
-
function
|
|
2920
|
+
function kl(t, e) {
|
|
2943
2921
|
if (!(t instanceof e))
|
|
2944
2922
|
throw new TypeError("Cannot call a class as a function");
|
|
2945
2923
|
}
|
|
2946
|
-
function
|
|
2924
|
+
function Cl(t, e) {
|
|
2947
2925
|
if (!t)
|
|
2948
2926
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2949
2927
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
2950
2928
|
}
|
|
2951
|
-
function
|
|
2929
|
+
function Dl(t, e) {
|
|
2952
2930
|
if (typeof e != "function" && e !== null)
|
|
2953
2931
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
2954
2932
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
2955
2933
|
}
|
|
2956
|
-
var
|
|
2957
|
-
|
|
2934
|
+
var Lr = function(t) {
|
|
2935
|
+
Dl(e, t);
|
|
2958
2936
|
function e() {
|
|
2959
|
-
return
|
|
2937
|
+
return kl(this, e), Cl(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
|
2960
2938
|
}
|
|
2961
|
-
return
|
|
2939
|
+
return $l(e, [{
|
|
2962
2940
|
key: "componentWillUnmount",
|
|
2963
2941
|
value: function() {
|
|
2964
2942
|
this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
|
|
@@ -2966,11 +2944,11 @@ var Rr = function(t) {
|
|
|
2966
2944
|
}, {
|
|
2967
2945
|
key: "render",
|
|
2968
2946
|
value: function() {
|
|
2969
|
-
return
|
|
2947
|
+
return Nl ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), He.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
|
|
2970
2948
|
}
|
|
2971
2949
|
}]), e;
|
|
2972
|
-
}(
|
|
2973
|
-
|
|
2950
|
+
}(oe.Component);
|
|
2951
|
+
Lr.propTypes = {
|
|
2974
2952
|
children: Ne.node.isRequired,
|
|
2975
2953
|
node: Ne.any
|
|
2976
2954
|
};
|
|
@@ -2985,24 +2963,24 @@ var Il = /* @__PURE__ */ function() {
|
|
|
2985
2963
|
return n && t(e.prototype, n), s && t(e, s), e;
|
|
2986
2964
|
};
|
|
2987
2965
|
}();
|
|
2988
|
-
function
|
|
2966
|
+
function Sl(t, e) {
|
|
2989
2967
|
if (!(t instanceof e))
|
|
2990
2968
|
throw new TypeError("Cannot call a class as a function");
|
|
2991
2969
|
}
|
|
2992
|
-
function
|
|
2970
|
+
function El(t, e) {
|
|
2993
2971
|
if (!t)
|
|
2994
2972
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2995
2973
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
|
2996
2974
|
}
|
|
2997
|
-
function
|
|
2975
|
+
function Ol(t, e) {
|
|
2998
2976
|
if (typeof e != "function" && e !== null)
|
|
2999
2977
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
|
3000
2978
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
|
3001
2979
|
}
|
|
3002
|
-
var
|
|
3003
|
-
|
|
2980
|
+
var Ar = function(t) {
|
|
2981
|
+
Ol(e, t);
|
|
3004
2982
|
function e() {
|
|
3005
|
-
return
|
|
2983
|
+
return Sl(this, e), El(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
|
3006
2984
|
}
|
|
3007
2985
|
return Il(e, [{
|
|
3008
2986
|
key: "componentDidMount",
|
|
@@ -3017,14 +2995,14 @@ var Lr = function(t) {
|
|
|
3017
2995
|
}, {
|
|
3018
2996
|
key: "componentWillUnmount",
|
|
3019
2997
|
value: function() {
|
|
3020
|
-
|
|
2998
|
+
He.unmountComponentAtNode(this.defaultNode || this.props.node), this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null, this.portal = null;
|
|
3021
2999
|
}
|
|
3022
3000
|
}, {
|
|
3023
3001
|
key: "renderPortal",
|
|
3024
3002
|
value: function(s) {
|
|
3025
3003
|
!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
|
|
3026
3004
|
var o = this.props.children;
|
|
3027
|
-
typeof this.props.children.type == "function" && (o =
|
|
3005
|
+
typeof this.props.children.type == "function" && (o = oe.cloneElement(this.props.children)), this.portal = He.unstable_renderSubtreeIntoContainer(this, o, this.props.node || this.defaultNode);
|
|
3028
3006
|
}
|
|
3029
3007
|
}, {
|
|
3030
3008
|
key: "render",
|
|
@@ -3032,42 +3010,42 @@ var Lr = function(t) {
|
|
|
3032
3010
|
return null;
|
|
3033
3011
|
}
|
|
3034
3012
|
}]), e;
|
|
3035
|
-
}(
|
|
3036
|
-
|
|
3013
|
+
}(oe.Component);
|
|
3014
|
+
Ar.propTypes = {
|
|
3037
3015
|
children: Ne.node.isRequired,
|
|
3038
3016
|
node: Ne.any
|
|
3039
3017
|
};
|
|
3040
|
-
var
|
|
3041
|
-
|
|
3042
|
-
const
|
|
3043
|
-
lightbox:
|
|
3044
|
-
show:
|
|
3045
|
-
header:
|
|
3018
|
+
var it = void 0;
|
|
3019
|
+
He.createPortal ? it = Lr : it = Ar;
|
|
3020
|
+
const Ml = "_lightbox_14acg_1", Fl = "_show_14acg_16", Tl = "_header_14acg_20", Rl = "_photo-actions_14acg_26", Bl = "_photo-container_14acg_31", Ll = "_photo_14acg_26", Al = "_nav-button_14acg_41", Hl = "_photos-preview_14acg_49", Wl = "_selected_14acg_62", Pl = "_default-indicator_14acg_66", ae = {
|
|
3021
|
+
lightbox: Ml,
|
|
3022
|
+
show: Fl,
|
|
3023
|
+
header: Tl,
|
|
3046
3024
|
"photo-actions": "_photo-actions_14acg_26",
|
|
3047
|
-
photoActions:
|
|
3025
|
+
photoActions: Rl,
|
|
3048
3026
|
"photo-container": "_photo-container_14acg_31",
|
|
3049
|
-
photoContainer:
|
|
3027
|
+
photoContainer: Bl,
|
|
3050
3028
|
photo: Ll,
|
|
3051
3029
|
"nav-button": "_nav-button_14acg_41",
|
|
3052
|
-
navButton:
|
|
3030
|
+
navButton: Al,
|
|
3053
3031
|
"photos-preview": "_photos-preview_14acg_49",
|
|
3054
|
-
photosPreview:
|
|
3055
|
-
selected:
|
|
3032
|
+
photosPreview: Hl,
|
|
3033
|
+
selected: Wl,
|
|
3056
3034
|
"default-indicator": "_default-indicator_14acg_66",
|
|
3057
|
-
defaultIndicator:
|
|
3058
|
-
},
|
|
3059
|
-
backdrop:
|
|
3060
|
-
show:
|
|
3061
|
-
},
|
|
3062
|
-
[
|
|
3063
|
-
}), onClick: () => e && e() }),
|
|
3064
|
-
const p = V(null), [h, v] =
|
|
3035
|
+
defaultIndicator: Pl
|
|
3036
|
+
}, Vl = "_backdrop_3huvf_1", zl = "_show_3huvf_11", sn = {
|
|
3037
|
+
backdrop: Vl,
|
|
3038
|
+
show: zl
|
|
3039
|
+
}, Hr = ({ show: t, onClick: e }) => /* @__PURE__ */ r.jsx("div", { className: g("luminus-backdrop", sn.backdrop, {
|
|
3040
|
+
[sn.show]: t
|
|
3041
|
+
}), onClick: () => e && e() }), Wr = ({ src: t, alt: e, baseUrl: n, customToken: s, placeholder: o, ...a }) => /* @__PURE__ */ r.jsx("img", { ...a, alt: e ?? "", src: t ?? o }), Yl = ({ show: t, onClose: e, photos: n, defaultIndex: s, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: l, photoActions: i, baseUrl: c, customToken: d, placeholder: u, ImgComponent: f = Wr }) => {
|
|
3042
|
+
const p = V(null), [h, v] = E(s), y = n.at(h), x = h > 0, b = h < n.length - 1;
|
|
3065
3043
|
T(() => {
|
|
3066
3044
|
t && v(s);
|
|
3067
3045
|
}, [s, t]), T(() => {
|
|
3068
3046
|
h >= n.length && v(n.length - 1);
|
|
3069
3047
|
}, [n, h]);
|
|
3070
|
-
const k =
|
|
3048
|
+
const k = D((m) => {
|
|
3071
3049
|
switch (m.key) {
|
|
3072
3050
|
case "ArrowLeft":
|
|
3073
3051
|
m.stopPropagation(), x && v((N) => N - 1);
|
|
@@ -3080,21 +3058,21 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3080
3058
|
break;
|
|
3081
3059
|
}
|
|
3082
3060
|
}, [b, x, e]);
|
|
3083
|
-
return
|
|
3084
|
-
/* @__PURE__ */ r.jsx(
|
|
3085
|
-
/* @__PURE__ */ r.jsxs("div", { ref: p, className: g("luminus-lightbox rounded shadow",
|
|
3086
|
-
[
|
|
3061
|
+
return Cn(k), /* @__PURE__ */ r.jsxs(it, { children: [
|
|
3062
|
+
/* @__PURE__ */ r.jsx(Hr, { show: t, onClick: e }),
|
|
3063
|
+
/* @__PURE__ */ r.jsxs("div", { ref: p, className: g("luminus-lightbox rounded shadow", ae.lightbox, {
|
|
3064
|
+
[ae.show]: t
|
|
3087
3065
|
}), children: [
|
|
3088
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
3089
|
-
/* @__PURE__ */ r.jsxs("div", { className: g("rounded",
|
|
3090
|
-
l && /* @__PURE__ */ r.jsx(
|
|
3066
|
+
/* @__PURE__ */ r.jsxs("div", { className: ae.header, children: [
|
|
3067
|
+
/* @__PURE__ */ r.jsxs("div", { className: g("rounded", ae.photoActions), children: [
|
|
3068
|
+
l && /* @__PURE__ */ r.jsx(Ir, { accept: ".jpg,.jpeg,.png", onUpload: (m) => {
|
|
3091
3069
|
m.length > 0 && l(Array.from(m));
|
|
3092
|
-
}, icon: /* @__PURE__ */ r.jsx(
|
|
3093
|
-
y && (i == null ? void 0 : i.map(({ label: m, onClick: N, ...
|
|
3094
|
-
|
|
3070
|
+
}, icon: /* @__PURE__ */ r.jsx(yn, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
|
|
3071
|
+
y && (i == null ? void 0 : i.map(({ label: m, onClick: N, ...j }, $) => /* @__PURE__ */ r.jsx(
|
|
3072
|
+
ct,
|
|
3095
3073
|
{
|
|
3096
3074
|
onClick: () => N(y.id),
|
|
3097
|
-
...
|
|
3075
|
+
...j,
|
|
3098
3076
|
children: m
|
|
3099
3077
|
},
|
|
3100
3078
|
`action-${$}`
|
|
@@ -3103,21 +3081,21 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3103
3081
|
/* @__PURE__ */ r.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ r.jsx(fe, { style: { fontSize: "32px" } }) })
|
|
3104
3082
|
] }),
|
|
3105
3083
|
n.length === 0 && /* @__PURE__ */ r.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ r.jsx(Y, { variant: "body", children: a ?? "No photos available" }) }),
|
|
3106
|
-
y && /* @__PURE__ */ r.jsxs("div", { className:
|
|
3107
|
-
/* @__PURE__ */ r.jsx("div", { role: x ? "button" : void 0, className: g("align-items-start",
|
|
3108
|
-
/* @__PURE__ */ r.jsx(f, { src: y.lgSrc, alt: y.alt, className: g("rounded",
|
|
3109
|
-
/* @__PURE__ */ r.jsx("div", { role: b ? "button" : void 0, className: g("align-items-end",
|
|
3084
|
+
y && /* @__PURE__ */ r.jsxs("div", { className: ae.photoContainer, children: [
|
|
3085
|
+
/* @__PURE__ */ r.jsx("div", { role: x ? "button" : void 0, className: g("align-items-start", ae.navButton), onClick: () => x && v((m) => m - 1), children: x && /* @__PURE__ */ r.jsx(ft, { style: { fontSize: "40px" } }) }),
|
|
3086
|
+
/* @__PURE__ */ r.jsx(f, { src: y.lgSrc, alt: y.alt, className: g("rounded", ae.photo), baseUrl: c, customToken: d, placeholder: u }),
|
|
3087
|
+
/* @__PURE__ */ r.jsx("div", { role: b ? "button" : void 0, className: g("align-items-end", ae.navButton), onClick: () => b && v((m) => m + 1), children: b && /* @__PURE__ */ r.jsx(pt, { style: { fontSize: "40px" } }) })
|
|
3110
3088
|
] }),
|
|
3111
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
3112
|
-
/* @__PURE__ */ r.jsx(f, { role: N !== h ? "button" : void 0, src: m.smSrc, alt: m.alt, className: g("rounded",
|
|
3113
|
-
[
|
|
3089
|
+
/* @__PURE__ */ r.jsx("div", { className: ae.photosPreview, children: n.map((m, N) => /* @__PURE__ */ r.jsxs("div", { role: "button", onClick: () => v(N), className: "position-relative", children: [
|
|
3090
|
+
/* @__PURE__ */ r.jsx(f, { role: N !== h ? "button" : void 0, src: m.smSrc, alt: m.alt, className: g("rounded", ae.photo, {
|
|
3091
|
+
[ae.selected]: N === h
|
|
3114
3092
|
}), baseUrl: c, customToken: d, placeholder: u }, m.id),
|
|
3115
|
-
m.isDefault && /* @__PURE__ */ r.jsx("div", { className: g("text-primary",
|
|
3093
|
+
m.isDefault && /* @__PURE__ */ r.jsx("div", { className: g("text-primary", ae.defaultIndicator), children: /* @__PURE__ */ r.jsx(js, {}) })
|
|
3116
3094
|
] })) })
|
|
3117
3095
|
] })
|
|
3118
3096
|
] });
|
|
3119
|
-
},
|
|
3120
|
-
const [c, d] =
|
|
3097
|
+
}, oi = ({ photos: t, onUploadPhotos: e, uploadPhotosText: n, photoActions: s, baseUrl: o, customToken: a, placeholder: l, ImgComponent: i = Wr }) => {
|
|
3098
|
+
const [c, d] = E(null), u = c !== null ? t[c] : null, [f, p] = E(!1);
|
|
3121
3099
|
return T(() => {
|
|
3122
3100
|
if (t.length === 0) {
|
|
3123
3101
|
d(null), p(!1);
|
|
@@ -3127,33 +3105,33 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3127
3105
|
d(h > -1 ? h : 0);
|
|
3128
3106
|
}, [t]), u ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3129
3107
|
/* @__PURE__ */ r.jsx(i, { role: "button", src: u.smSrc, alt: u.alt, className: "rounded w-100", onClick: () => p(!0), baseUrl: o, customToken: a, placeholder: l }),
|
|
3130
|
-
/* @__PURE__ */ r.jsx(
|
|
3131
|
-
] }) : e ? /* @__PURE__ */ r.jsx(
|
|
3108
|
+
/* @__PURE__ */ r.jsx(Yl, { show: f, onClose: () => p(!1), photos: t, defaultIndex: c ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: s, baseUrl: o, customToken: a, placeholder: l, ImgComponent: i })
|
|
3109
|
+
] }) : e ? /* @__PURE__ */ r.jsx(Ir, { accept: ".jpg,.jpeg,.png", onUpload: (h) => {
|
|
3132
3110
|
h.length > 0 && e(Array.from(h));
|
|
3133
|
-
}, icon: /* @__PURE__ */ r.jsx(
|
|
3134
|
-
},
|
|
3135
|
-
const {
|
|
3136
|
-
var
|
|
3137
|
-
return (
|
|
3111
|
+
}, icon: /* @__PURE__ */ r.jsx(yn, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
|
|
3112
|
+
}, ai = ({ appAccessPermissions: t, children: e }) => {
|
|
3113
|
+
const { useMsal: n, msalScopes: s } = W(ws), { isAuthenticated: o } = ys(), { userLoginState: a } = W(_s), l = a.state === bs.LOGGING_IN, i = a.user && (t == null ? void 0 : t.every((c) => {
|
|
3114
|
+
var d, u;
|
|
3115
|
+
return (u = (d = a.user) == null ? void 0 : d.permissions) == null ? void 0 : u.includes(c);
|
|
3138
3116
|
}));
|
|
3139
|
-
return
|
|
3140
|
-
},
|
|
3117
|
+
return n ? /* @__PURE__ */ r.jsx(As, { interactionType: Ls.Redirect, authenticationRequest: { scopes: s }, children: l || !o() ? /* @__PURE__ */ r.jsx(Ft, {}) : a.user ? i ? /* @__PURE__ */ r.jsx(r.Fragment, { children: e }) : /* @__PURE__ */ r.jsx(Re, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ r.jsx(Re, { to: "/no-user-login", replace: !0 }) }) : l ? /* @__PURE__ */ r.jsx(Ft, {}) : !o() || !a.user ? /* @__PURE__ */ r.jsx(Re, { to: "/login", replace: !0 }) : i ? e : /* @__PURE__ */ r.jsx(Re, { to: "/user-not-permitted", replace: !0 });
|
|
3118
|
+
}, Gl = (t) => {
|
|
3141
3119
|
const { variant: e, children: n, className: s, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...l } = { ...t };
|
|
3142
|
-
return /* @__PURE__ */ r.jsx(
|
|
3143
|
-
},
|
|
3144
|
-
item:
|
|
3120
|
+
return /* @__PURE__ */ r.jsx(uo, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${s ?? ""}`, ...l, children: /* @__PURE__ */ r.jsx(Y, { variant: a, children: n }) });
|
|
3121
|
+
}, Ul = "_item_1lf6j_1", Kl = "_level-success_1lf6j_4", ql = "_level-info_1lf6j_10", Ql = "_level-warning_1lf6j_16", Jl = "_level-danger_1lf6j_22", Xl = "_type-icon_1lf6j_28", rt = {
|
|
3122
|
+
item: Ul,
|
|
3145
3123
|
"level-success": "_level-success_1lf6j_4",
|
|
3146
|
-
levelSuccess:
|
|
3124
|
+
levelSuccess: Kl,
|
|
3147
3125
|
"level-info": "_level-info_1lf6j_10",
|
|
3148
|
-
levelInfo:
|
|
3126
|
+
levelInfo: ql,
|
|
3149
3127
|
"level-warning": "_level-warning_1lf6j_16",
|
|
3150
|
-
levelWarning:
|
|
3128
|
+
levelWarning: Ql,
|
|
3151
3129
|
"level-danger": "_level-danger_1lf6j_22",
|
|
3152
|
-
levelDanger:
|
|
3130
|
+
levelDanger: Jl,
|
|
3153
3131
|
"type-icon": "_type-icon_1lf6j_28",
|
|
3154
|
-
typeIcon:
|
|
3155
|
-
},
|
|
3156
|
-
const { ProjectIconComponent: o } = W(
|
|
3132
|
+
typeIcon: Xl
|
|
3133
|
+
}, Zl = ({ level: t, children: e, customIcon: n, noIcon: s }) => {
|
|
3134
|
+
const { ProjectIconComponent: o } = W(ce), a = D(() => {
|
|
3157
3135
|
switch (t) {
|
|
3158
3136
|
case "info":
|
|
3159
3137
|
return /* @__PURE__ */ r.jsx(o, { icon: "info" });
|
|
@@ -3165,11 +3143,11 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3165
3143
|
return /* @__PURE__ */ r.jsx(o, { icon: "check" });
|
|
3166
3144
|
}
|
|
3167
3145
|
}, [o, t]);
|
|
3168
|
-
return /* @__PURE__ */ r.jsxs("div", { className: g("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s },
|
|
3169
|
-
!s && /* @__PURE__ */ r.jsx("div", { className: g(
|
|
3146
|
+
return /* @__PURE__ */ r.jsxs("div", { className: g("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s }, rt.item, rt[`level-${t}`]), children: [
|
|
3147
|
+
!s && /* @__PURE__ */ r.jsx("div", { className: g(rt.typeIcon), children: n ?? a() }),
|
|
3170
3148
|
/* @__PURE__ */ r.jsx(Y, { variant: "body2", className: "w-100", children: e })
|
|
3171
3149
|
] });
|
|
3172
|
-
},
|
|
3150
|
+
}, li = ({ version: t }) => /* @__PURE__ */ r.jsx("div", { className: "rounded", style: {
|
|
3173
3151
|
position: "fixed",
|
|
3174
3152
|
right: "0px",
|
|
3175
3153
|
bottom: "0px",
|
|
@@ -3180,42 +3158,42 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3180
3158
|
}, children: /* @__PURE__ */ r.jsxs(Y, { variant: "caption", className: "w-100 text-end", children: [
|
|
3181
3159
|
"verze ",
|
|
3182
3160
|
t
|
|
3183
|
-
] }) }),
|
|
3161
|
+
] }) }), ec = "_submit-container_a9slg_1", tc = "_spacer_a9slg_14", on = {
|
|
3184
3162
|
"submit-container": "_submit-container_a9slg_1",
|
|
3185
|
-
submitContainer:
|
|
3186
|
-
spacer:
|
|
3187
|
-
},
|
|
3188
|
-
!e && /* @__PURE__ */ r.jsx("div", { className:
|
|
3189
|
-
/* @__PURE__ */ r.jsx("div", { className: g("luminus-floating-action-container shadow",
|
|
3190
|
-
] }),
|
|
3191
|
-
timeline:
|
|
3163
|
+
submitContainer: ec,
|
|
3164
|
+
spacer: tc
|
|
3165
|
+
}, nc = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3166
|
+
!e && /* @__PURE__ */ r.jsx("div", { className: on.spacer }),
|
|
3167
|
+
/* @__PURE__ */ r.jsx("div", { className: g("luminus-floating-action-container shadow", on.submitContainer), children: t })
|
|
3168
|
+
] }), rc = "_timeline_g1754_1", sc = "_step-container_g1754_1", oc = "_step-date_g1754_1", ac = "_step-content_g1754_4", lc = "_content-header_g1754_8", cc = "_content-text_g1754_11", ic = "_step-icon_g1754_14", be = {
|
|
3169
|
+
timeline: rc,
|
|
3192
3170
|
"step-container": "_step-container_g1754_1",
|
|
3193
|
-
stepContainer:
|
|
3171
|
+
stepContainer: sc,
|
|
3194
3172
|
"step-date": "_step-date_g1754_1",
|
|
3195
|
-
stepDate:
|
|
3173
|
+
stepDate: oc,
|
|
3196
3174
|
"step-content": "_step-content_g1754_4",
|
|
3197
|
-
stepContent:
|
|
3175
|
+
stepContent: ac,
|
|
3198
3176
|
"content-header": "_content-header_g1754_8",
|
|
3199
|
-
contentHeader:
|
|
3177
|
+
contentHeader: lc,
|
|
3200
3178
|
"content-text": "_content-text_g1754_11",
|
|
3201
|
-
contentText:
|
|
3179
|
+
contentText: cc,
|
|
3202
3180
|
"step-icon": "_step-icon_g1754_14",
|
|
3203
|
-
stepIcon:
|
|
3204
|
-
},
|
|
3181
|
+
stepIcon: ic
|
|
3182
|
+
}, ci = ({ steps: t }) => /* @__PURE__ */ r.jsx("div", { className: be.timeline, children: t.sort((e, n) => Us(e.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((e, n) => /* @__PURE__ */ r.jsxs("div", { className: g("row g-0 gx-3", be.stepContainer), children: [
|
|
3205
3183
|
/* @__PURE__ */ r.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ r.jsxs(Y, { variant: "caption", className: g("h-100 d-flex flex-column align-items-end justify-content-center gap-0", be.stepDate), children: [
|
|
3206
|
-
/* @__PURE__ */ r.jsx("div", { children:
|
|
3207
|
-
/* @__PURE__ */ r.jsx("div", { children:
|
|
3184
|
+
/* @__PURE__ */ r.jsx("div", { children: Ee(e.date, "dd.MM.yyyy") }),
|
|
3185
|
+
/* @__PURE__ */ r.jsx("div", { children: Ee(e.date, "HH:mm") })
|
|
3208
3186
|
] }) }),
|
|
3209
3187
|
/* @__PURE__ */ r.jsx("div", { className: "col-9", children: /* @__PURE__ */ r.jsxs("div", { className: g("h-100 d-flex flex-column gap-1 border-start border-2 p-3", be.stepContent), children: [
|
|
3210
3188
|
/* @__PURE__ */ r.jsxs("div", { className: g("d-flex gap-2 align-items-center", be.contentHeader), children: [
|
|
3211
|
-
e.person && /* @__PURE__ */ r.jsx(
|
|
3189
|
+
e.person && /* @__PURE__ */ r.jsx(vn, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
|
|
3212
3190
|
typeof e.title == "string" ? /* @__PURE__ */ r.jsx(Y, { variant: "body", className: "fw-bold", children: e.title }) : e.title
|
|
3213
3191
|
] }),
|
|
3214
3192
|
e.text && /* @__PURE__ */ r.jsx(Y, { variant: "body2", className: be.contentText, children: e.text }),
|
|
3215
|
-
/* @__PURE__ */ r.jsx("div", { className: g("text-primary", be.stepIcon), children: e.icon ?? /* @__PURE__ */ r.jsx(
|
|
3193
|
+
/* @__PURE__ */ r.jsx("div", { className: g("text-primary", be.stepIcon), children: e.icon ?? /* @__PURE__ */ r.jsx(Ns, {}) })
|
|
3216
3194
|
] }) })
|
|
3217
|
-
] }, n)) }),
|
|
3218
|
-
const o =
|
|
3195
|
+
] }, n)) }), dc = (t, e, n, s = !0) => {
|
|
3196
|
+
const o = mt({ silent: s, differentBaseUrl: e, customToken: n }), [a, l] = E(!1), [i, c] = E(null), d = D(async (u) => {
|
|
3219
3197
|
l(!0), c(null), o.get(t, {
|
|
3220
3198
|
signal: u,
|
|
3221
3199
|
responseType: "blob"
|
|
@@ -3231,26 +3209,26 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3231
3209
|
u.abort();
|
|
3232
3210
|
};
|
|
3233
3211
|
}, [d]), { data: i, setData: c, reloadData: d, isLoading: a };
|
|
3234
|
-
},
|
|
3235
|
-
const { data: l } =
|
|
3212
|
+
}, ii = ({ src: t, alt: e, baseUrl: n, customToken: s, placeholder: o, ...a }) => {
|
|
3213
|
+
const { data: l } = dc(t, n, s), [i, c] = E(null);
|
|
3236
3214
|
return T(() => {
|
|
3237
3215
|
let d = null;
|
|
3238
3216
|
return l !== null ? (d = URL.createObjectURL(l), c(d)) : c(null), () => {
|
|
3239
3217
|
d !== null && URL.revokeObjectURL(d);
|
|
3240
3218
|
};
|
|
3241
3219
|
}, [l]), i === null && !o ? null : /* @__PURE__ */ r.jsx("img", { ...a, alt: e ?? "", src: i ?? o });
|
|
3242
|
-
},
|
|
3220
|
+
}, an = [
|
|
3243
3221
|
["D", "day"],
|
|
3244
3222
|
// ['W', 'week'],
|
|
3245
3223
|
["M", "month"],
|
|
3246
3224
|
["Y", "year"],
|
|
3247
3225
|
["C", "custom"]
|
|
3248
|
-
],
|
|
3249
|
-
wrapper:
|
|
3250
|
-
lg:
|
|
3251
|
-
sm:
|
|
3252
|
-
md:
|
|
3253
|
-
},
|
|
3226
|
+
], uc = "_wrapper_qfqux_1", fc = "_lg_qfqux_7", pc = "_sm_qfqux_11", hc = "_md_qfqux_14", ln = {
|
|
3227
|
+
wrapper: uc,
|
|
3228
|
+
lg: fc,
|
|
3229
|
+
sm: pc,
|
|
3230
|
+
md: hc
|
|
3231
|
+
}, Ae = (t) => {
|
|
3254
3232
|
const e = new Date(t), n = ge(e.toISOString());
|
|
3255
3233
|
e.setMonth(e.getMonth() + 1), e.setDate(e.getDate() - 1);
|
|
3256
3234
|
const s = ge(e.toISOString());
|
|
@@ -3260,15 +3238,15 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3260
3238
|
e.setFullYear(e.getFullYear() + 1), e.setDate(e.getDate() - 1);
|
|
3261
3239
|
const s = ge(e.toISOString());
|
|
3262
3240
|
return { from: n, to: s };
|
|
3263
|
-
},
|
|
3241
|
+
}, mc = (t, e) => {
|
|
3264
3242
|
if (t === null || e === null)
|
|
3265
3243
|
return "C";
|
|
3266
3244
|
if (t === e)
|
|
3267
3245
|
return "D";
|
|
3268
3246
|
const n = new Date(t);
|
|
3269
|
-
return
|
|
3270
|
-
},
|
|
3271
|
-
const s =
|
|
3247
|
+
return Ae(n).to === e ? "M" : Ie(n).to === e ? "Y" : (console.log(Ie(n), e), "C");
|
|
3248
|
+
}, gc = (t, e, n) => {
|
|
3249
|
+
const s = D((l, i) => {
|
|
3272
3250
|
if (t === "C") {
|
|
3273
3251
|
n((c) => ({ ...c, [l]: i }));
|
|
3274
3252
|
return;
|
|
@@ -3286,14 +3264,14 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3286
3264
|
to: u
|
|
3287
3265
|
};
|
|
3288
3266
|
}
|
|
3289
|
-
return t === "M" ?
|
|
3267
|
+
return t === "M" ? Ae(d) : t === "Y" ? Ie(d) : c;
|
|
3290
3268
|
});
|
|
3291
3269
|
break;
|
|
3292
3270
|
case "to":
|
|
3293
3271
|
e("C"), n((c) => ({ ...c, [l]: i }));
|
|
3294
3272
|
break;
|
|
3295
3273
|
}
|
|
3296
|
-
}, [t, n, e]), o =
|
|
3274
|
+
}, [t, n, e]), o = D((l) => {
|
|
3297
3275
|
n((i) => {
|
|
3298
3276
|
if (i.from === null || i.to === null)
|
|
3299
3277
|
return i;
|
|
@@ -3308,40 +3286,40 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3308
3286
|
to: u
|
|
3309
3287
|
};
|
|
3310
3288
|
}
|
|
3311
|
-
return t === "M" ? (c.setMonth(c.getMonth() + l),
|
|
3289
|
+
return t === "M" ? (c.setMonth(c.getMonth() + l), Ae(c)) : t === "Y" ? (c.setFullYear(c.getFullYear() + l), Ie(c)) : {
|
|
3312
3290
|
from: ge(c.toISOString()),
|
|
3313
3291
|
to: ge(d.toISOString())
|
|
3314
3292
|
};
|
|
3315
3293
|
});
|
|
3316
|
-
}, [t, n]), a =
|
|
3294
|
+
}, [t, n]), a = D((l) => {
|
|
3317
3295
|
l === "D" ? n((i) => ({ from: i.from, to: i.from })) : l === "M" ? n((i) => {
|
|
3318
3296
|
if (i.from === null)
|
|
3319
3297
|
return i;
|
|
3320
|
-
const c =
|
|
3321
|
-
return
|
|
3298
|
+
const c = Ws(i.from);
|
|
3299
|
+
return Ae(c);
|
|
3322
3300
|
}) : l === "Y" && n((i) => {
|
|
3323
3301
|
if (i.from === null)
|
|
3324
3302
|
return i;
|
|
3325
|
-
const c =
|
|
3303
|
+
const c = Ps(new Date(i.from).getFullYear());
|
|
3326
3304
|
return Ie(c);
|
|
3327
3305
|
}), e(l);
|
|
3328
3306
|
}, [n, e]);
|
|
3329
3307
|
return { setFromToProp: s, handleArrowClick: o, handleRangeChange: a };
|
|
3330
|
-
},
|
|
3331
|
-
const { texts: { date: o }, ProjectIconComponent: a } = W(
|
|
3308
|
+
}, di = ({ fromtoState: [t, e], className: n, size: s }) => {
|
|
3309
|
+
const { texts: { date: o }, ProjectIconComponent: a } = W(ce), [l, i] = E("C"), { handleArrowClick: c, handleRangeChange: d, setFromToProp: u } = gc(l, i, e), f = z(() => l === "C", [l]), p = V(!0);
|
|
3332
3310
|
return T(() => {
|
|
3333
3311
|
if (p.current) {
|
|
3334
|
-
const h =
|
|
3312
|
+
const h = mc(t.from, t.to);
|
|
3335
3313
|
i(h), p.current = !1;
|
|
3336
3314
|
}
|
|
3337
|
-
}, [t.from, t.to]), /* @__PURE__ */ r.jsxs("div", { className: g("d-inline-flex align-items-center gap-1",
|
|
3315
|
+
}, [t.from, t.to]), /* @__PURE__ */ r.jsxs("div", { className: g("d-inline-flex align-items-center gap-1", ln.wrapper, ln[s ?? "md"], n), children: [
|
|
3338
3316
|
/* @__PURE__ */ r.jsx(G, { disabled: f, onClick: () => {
|
|
3339
3317
|
c(-1);
|
|
3340
3318
|
}, children: /* @__PURE__ */ r.jsx(a, { icon: "chevron-left" }) }),
|
|
3341
3319
|
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
3342
|
-
/* @__PURE__ */ r.jsx(
|
|
3343
|
-
/* @__PURE__ */ r.jsx(
|
|
3344
|
-
/* @__PURE__ */ r.jsx(
|
|
3320
|
+
/* @__PURE__ */ r.jsx(Qt, { type: "date", value: t.from, onChange: (h) => u("from", h === null ? null : h.toString()), InputContainer: Et, size: s }),
|
|
3321
|
+
/* @__PURE__ */ r.jsx(Rr, { toggle: /* @__PURE__ */ r.jsx(Tr, { text: o[an.find((h) => h[0] === l)[1]].substring(0, 1), as: $s }), children: an.map((h) => /* @__PURE__ */ r.jsx(Fr, { disabled: h[0] === l, className: g(h[0] === l ? "text-black-50" : ""), onClick: () => d(h[0]), role: "button", children: o[h[1]] }, h[0])) }),
|
|
3322
|
+
/* @__PURE__ */ r.jsx(Qt, { type: "date", value: t.to, onChange: (h) => u("to", h === null ? null : h.toString()), InputContainer: Et, size: s })
|
|
3345
3323
|
] }) }),
|
|
3346
3324
|
/* @__PURE__ */ r.jsx(G, { disabled: f, onClick: () => {
|
|
3347
3325
|
c(1);
|
|
@@ -3349,69 +3327,69 @@ const Ol = "_lightbox_14acg_1", Ml = "_show_14acg_16", Fl = "_header_14acg_20",
|
|
|
3349
3327
|
] });
|
|
3350
3328
|
};
|
|
3351
3329
|
export {
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3330
|
+
Gl as Alert,
|
|
3331
|
+
Zl as AlertItem,
|
|
3332
|
+
Sc as ApiFileDownloadButton,
|
|
3333
|
+
si as AppSearch,
|
|
3334
|
+
ai as AuthTemplate,
|
|
3335
|
+
vn as AvatarIcon,
|
|
3336
|
+
Hr as Backdrop,
|
|
3337
|
+
ni as Badge,
|
|
3338
|
+
bl as Card,
|
|
3339
|
+
Fc as CheckInput,
|
|
3340
|
+
ri as Collapse,
|
|
3341
|
+
ct as ContextButton,
|
|
3342
|
+
Rr as Dropdown,
|
|
3343
|
+
qc as DropdownDivider,
|
|
3344
|
+
Fr as DropdownItem,
|
|
3345
|
+
Rc as DropdownPicker,
|
|
3346
|
+
Tr as DropdownToggle,
|
|
3347
|
+
ka as ErrorBoundary,
|
|
3348
|
+
Ir as FileUploadContextButton,
|
|
3349
|
+
Kc as FileUploadDropdownItem,
|
|
3350
|
+
nc as FloatingActionContainer,
|
|
3351
|
+
Vo as FloatingFormSubmit,
|
|
3352
|
+
Ce as FloatingLabelInput,
|
|
3353
|
+
di as FromToDatePicker,
|
|
3354
|
+
ti as HomeDashboard,
|
|
3355
|
+
Ac as HookFormCheckInput,
|
|
3356
|
+
Vc as HookFormDropdownPicker,
|
|
3357
|
+
zc as HookFormFileInput,
|
|
3358
|
+
Yc as HookFormFloatingSubmit,
|
|
3359
|
+
Uc as HookFormNumericStepperInput,
|
|
3360
|
+
Hc as HookFormRadioInput,
|
|
3361
|
+
Gc as HookFormSelectInput,
|
|
3362
|
+
Wc as HookFormTextAreaInput,
|
|
3363
|
+
Pc as HookFormTextInput,
|
|
3364
|
+
Ec as HtmlTooltip,
|
|
3387
3365
|
G as IconButton,
|
|
3388
|
-
|
|
3389
|
-
|
|
3366
|
+
ii as ImgApi,
|
|
3367
|
+
Wr as ImgDirect,
|
|
3390
3368
|
ve as InvalidFeedback,
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3369
|
+
Ft as Loading,
|
|
3370
|
+
Ys as LoadingBlock,
|
|
3371
|
+
Jc as MessageBoard,
|
|
3372
|
+
Oc as MonthPicker,
|
|
3373
|
+
Et as NoInputContainer,
|
|
3396
3374
|
Lc as NumericStepperInput,
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3375
|
+
oi as PhotoLibrary,
|
|
3376
|
+
Yl as PhotoLightbox,
|
|
3377
|
+
Mt as PrimaryButton,
|
|
3400
3378
|
xe as RowLabelInput,
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3379
|
+
Tc as SelectInput,
|
|
3380
|
+
kt as SimplePicker,
|
|
3381
|
+
xs as SimpleToggle,
|
|
3382
|
+
Vs as SimpleTooltip,
|
|
3383
|
+
ei as Tab,
|
|
3384
|
+
Xc as TabPanel,
|
|
3385
|
+
Zc as Tabs,
|
|
3386
|
+
Bc as TextAreaInput,
|
|
3387
|
+
Qt as TextInput,
|
|
3388
|
+
ci as Timeline,
|
|
3411
3389
|
Y as Typography,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3390
|
+
pi as UserAvatarToggle,
|
|
3391
|
+
Qc as UserAvatarValueFormat,
|
|
3392
|
+
li as VersionInfo,
|
|
3393
|
+
en as WidgetCard,
|
|
3394
|
+
Mc as YearPicker
|
|
3417
3395
|
};
|