react-luminus-components 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/.vite/manifest.json +187 -0
  2. package/dist/PrimaryButton-HS1hw75-.js +712 -0
  3. package/dist/PrimaryButton-jVLOMUwB.cjs +1 -0
  4. package/dist/SimpleTooltip-BAHgCnPu.js +5 -0
  5. package/dist/SimpleTooltip-fEWyThZE.cjs +1 -0
  6. package/dist/UserAvatarToggle-BMXaJ189.js +7012 -0
  7. package/dist/UserAvatarToggle-DzrnGPrL.cjs +253 -0
  8. package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +3 -0
  9. package/dist/components/BnfTableValueFormats/index.d.ts +1 -0
  10. package/dist/components/Buttons/ContextButton/ContextButton.d.ts +14 -0
  11. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +12 -0
  12. package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +8 -0
  13. package/dist/components/Buttons/IconButton/IconButton.d.ts +13 -0
  14. package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +14 -0
  15. package/dist/components/Buttons/index.d.ts +5 -0
  16. package/dist/components/Dropdown/Dropdown.d.ts +8 -0
  17. package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +6 -0
  18. package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +9 -0
  19. package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +12 -0
  20. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +7 -0
  21. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +10 -0
  22. package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +8 -0
  23. package/dist/components/Dropdown/comps/index.d.ts +6 -0
  24. package/dist/components/Dropdown/index.d.ts +2 -0
  25. package/dist/components/Form/CheckInput/CheckInput.d.ts +4 -0
  26. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +4 -0
  27. package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +4 -0
  28. package/dist/components/Form/SelectInput/SelectInput.d.ts +4 -0
  29. package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +4 -0
  30. package/dist/components/Form/TextInput/TextInput.d.ts +4 -0
  31. package/dist/components/Form/index.d.ts +6 -0
  32. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +4 -0
  33. package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +4 -0
  34. package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +4 -0
  35. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +4 -0
  36. package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +8 -0
  37. package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +4 -0
  38. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +4 -0
  39. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +4 -0
  40. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +4 -0
  41. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -0
  42. package/dist/components/HookForm/index.d.ts +10 -0
  43. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +34 -0
  44. package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +9 -0
  45. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +34 -0
  46. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +34 -0
  47. package/dist/components/InputContainers/index.d.ts +4 -0
  48. package/dist/components/NewTabs/Tab/Tab.d.ts +10 -0
  49. package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +11 -0
  50. package/dist/components/NewTabs/Tabs/Tabs.d.ts +9 -0
  51. package/dist/components/NewTabs/index.d.ts +3 -0
  52. package/dist/components/Tabs/Tabs.d.ts +9 -0
  53. package/dist/components/Tabs/comps/Tab/Tab.d.ts +7 -0
  54. package/dist/components/Tabs/comps/index.d.ts +1 -0
  55. package/dist/components/Tabs/index.d.ts +2 -0
  56. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +23 -0
  57. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +8 -0
  58. package/dist/components/Tooltip/index.d.ts +2 -0
  59. package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +8 -0
  60. package/dist/components/UserAvatar/index.d.ts +1 -0
  61. package/dist/components/common/Alert/Alert.d.ts +8 -0
  62. package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +8 -0
  63. package/dist/components/common/AppSearch/AppSearch.d.ts +9 -0
  64. package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +12 -0
  65. package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +9 -0
  66. package/dist/components/common/AppSearch/comps/index.d.ts +2 -0
  67. package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +6 -0
  68. package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +7 -0
  69. package/dist/components/common/Backdrop/Backdrop.d.ts +7 -0
  70. package/dist/components/common/Badge/Badge.d.ts +9 -0
  71. package/dist/components/common/Card/Card.d.ts +28 -0
  72. package/dist/components/common/Collapse/Collapse.d.ts +20 -0
  73. package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +3 -0
  74. package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +9 -0
  75. package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +7 -0
  76. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +10 -0
  77. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +9 -0
  78. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +11 -0
  79. package/dist/components/common/HomeDashboard/comps/index.d.ts +1 -0
  80. package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +6 -0
  81. package/dist/components/common/ImgApi/ImgApi.d.ts +4 -0
  82. package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +9 -0
  83. package/dist/components/common/ImgDirect/ImgDirect.d.ts +4 -0
  84. package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +6 -0
  85. package/dist/components/common/Loading/Loading.d.ts +3 -0
  86. package/dist/components/common/Loading/LoadingBlock.d.ts +4 -0
  87. package/dist/components/common/MonthPicker/MonthPicker.d.ts +11 -0
  88. package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +14 -0
  89. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +18 -0
  90. package/dist/components/common/PromptDialog/PromptDialog.d.ts +3 -0
  91. package/dist/components/common/SimplePicker/SimplePicker.d.ts +25 -0
  92. package/dist/components/common/Timeline/Timeline.d.ts +7 -0
  93. package/dist/components/common/Typography/Typography.d.ts +9 -0
  94. package/dist/components/common/VersionInfo/VersionInfo.d.ts +6 -0
  95. package/dist/components/common/Widget/WidgetCard.d.ts +8 -0
  96. package/dist/components/common/Widget/WidgetWrapper.d.ts +7 -0
  97. package/dist/components/common/YearPicker/YearPicker.d.ts +10 -0
  98. package/dist/components/common/index.d.ts +27 -0
  99. package/dist/contexts/auth/AuthContext.d.ts +9 -0
  100. package/dist/contexts/auth/AuthProvider.d.ts +16 -0
  101. package/dist/contexts/confirm/ConfirmContext.d.ts +9 -0
  102. package/dist/contexts/confirm/ConfirmProvider.d.ts +6 -0
  103. package/dist/contexts/delegation/DelegationContext.d.ts +9 -0
  104. package/dist/contexts/delegation/DelegationProvider.d.ts +6 -0
  105. package/dist/contexts/index.d.ts +11 -0
  106. package/dist/contexts/loading/LoadingContext.d.ts +8 -0
  107. package/dist/contexts/loading/LoadingProvider.d.ts +6 -0
  108. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +24 -0
  109. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +25 -0
  110. package/dist/contexts/prompt/PromptContext.d.ts +13 -0
  111. package/dist/contexts/prompt/PromptProvider.d.ts +6 -0
  112. package/dist/contexts/user/UserContext.d.ts +11 -0
  113. package/dist/contexts/user/UserProvider.d.ts +6 -0
  114. package/dist/contexts.cjs.js +1 -0
  115. package/dist/contexts.d.ts +1 -0
  116. package/dist/contexts.es.js +371 -0
  117. package/dist/dateUtils-7nL2BXlo.js +131 -0
  118. package/dist/dateUtils-DUA3CKds.cjs +1 -0
  119. package/dist/hooks/index.d.ts +13 -0
  120. package/dist/hooks/useAuth/hooks/useDevAuth.d.ts +7 -0
  121. package/dist/hooks/useAuth/hooks/useMsalAuth.d.ts +8 -0
  122. package/dist/hooks/useAuth/useAuth.d.ts +8 -0
  123. package/dist/hooks/useAxios/useAxios.d.ts +10 -0
  124. package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -0
  125. package/dist/hooks/useConfirm/useConfirm.d.ts +8 -0
  126. package/dist/hooks/useFormControlType/useFormControlType.d.ts +2 -0
  127. package/dist/hooks/useGetApiData/useGetApiData.d.ts +9 -0
  128. package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +2 -0
  129. package/dist/hooks/useKeyPress/useKeyPress.d.ts +2 -0
  130. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +3 -0
  131. package/dist/hooks/useNotifications/useNotifications.d.ts +4 -0
  132. package/dist/hooks/usePermissions/usePermissions.d.ts +4 -0
  133. package/dist/hooks/usePrompt/usePrompt.d.ts +8 -0
  134. package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +74 -0
  135. package/dist/hooks.cjs.js +1 -0
  136. package/dist/hooks.d.ts +1 -0
  137. package/dist/hooks.es.js +2989 -0
  138. package/dist/latinize-BQrinury.js +950 -0
  139. package/dist/latinize-DaqzUOla.cjs +1 -0
  140. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +4 -0
  141. package/dist/layout/MainContainer/MainContainer.d.ts +4 -0
  142. package/dist/layout/PageTitle/PageTitle.d.ts +6 -0
  143. package/dist/layout/SideContentBar/SideContentBar.d.ts +7 -0
  144. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +11 -0
  145. package/dist/layout/SideMenu/SideMenu.d.ts +12 -0
  146. package/dist/layout/TopBar/TopBar.d.ts +9 -0
  147. package/dist/layout/index.d.ts +5 -0
  148. package/dist/layout.cjs.js +1 -0
  149. package/dist/layout.d.ts +1 -0
  150. package/dist/layout.es.js +132 -0
  151. package/dist/main.cjs.js +1 -0
  152. package/dist/main.d.ts +32 -0
  153. package/dist/main.es.js +4269 -0
  154. package/dist/models/index.d.ts +65 -0
  155. package/dist/models/prop-types/ContainerProps.d.ts +10 -0
  156. package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +5 -0
  157. package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +6 -0
  158. package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +11 -0
  159. package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +8 -0
  160. package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +6 -0
  161. package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +7 -0
  162. package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +7 -0
  163. package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +7 -0
  164. package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +4 -0
  165. package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +4 -0
  166. package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +4 -0
  167. package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +7 -0
  168. package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +9 -0
  169. package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +4 -0
  170. package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +4 -0
  171. package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +4 -0
  172. package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +7 -0
  173. package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +4 -0
  174. package/dist/models/prop-types/ImgProps.d.ts +7 -0
  175. package/dist/models/prop-types/InputContainerProps.d.ts +26 -0
  176. package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +5 -0
  177. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +24 -0
  178. package/dist/models/prop-types/InputProps/FileInputProps.d.ts +6 -0
  179. package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +15 -0
  180. package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +6 -0
  181. package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +6 -0
  182. package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +9 -0
  183. package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +5 -0
  184. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +10 -0
  185. package/dist/models/texts/AppSearchTexts.d.ts +5 -0
  186. package/dist/models/texts/AxiosTexts.d.ts +8 -0
  187. package/dist/models/texts/ConfirmTexts.d.ts +7 -0
  188. package/dist/models/texts/CustomSelectTexts.d.ts +5 -0
  189. package/dist/models/texts/DropdownPickerTexts.d.ts +5 -0
  190. package/dist/models/texts/ErrorBoundaryTexts.d.ts +5 -0
  191. package/dist/models/texts/FormSubmitTexts.d.ts +4 -0
  192. package/dist/models/texts/FormValidationTexts.d.ts +5 -0
  193. package/dist/models/texts/HomeDashboardTexts.d.ts +6 -0
  194. package/dist/models/texts/WidgetTexts.d.ts +4 -0
  195. package/dist/models/types/ApiErrorResult.d.ts +8 -0
  196. package/dist/models/types/DashboardConfig.d.ts +5 -0
  197. package/dist/models/types/DashboardWidget.d.ts +9 -0
  198. package/dist/models/types/DashboardWidgetConfig.d.ts +5 -0
  199. package/dist/models/types/DropdownPickerOption.d.ts +7 -0
  200. package/dist/models/types/EmployeeIndexModel.d.ts +14 -0
  201. package/dist/models/types/ErrorField.d.ts +5 -0
  202. package/dist/models/types/FormSelectOption.d.ts +5 -0
  203. package/dist/models/types/HookFormInputProps.d.ts +9 -0
  204. package/dist/models/types/LoginState.d.ts +7 -0
  205. package/dist/models/types/MenuItemType.d.ts +11 -0
  206. package/dist/models/types/MenuItemTypeExtended.d.ts +6 -0
  207. package/dist/models/types/NameIdIntModel.d.ts +5 -0
  208. package/dist/models/types/NameIdIntOptionalModel.d.ts +5 -0
  209. package/dist/models/types/NameIdStringModel.d.ts +5 -0
  210. package/dist/models/types/NameIdStringOptionalModel.d.ts +5 -0
  211. package/dist/models/types/PhotoAction.d.ts +9 -0
  212. package/dist/models/types/PhotoLibraryItemModel.d.ts +7 -0
  213. package/dist/models/types/PromptOptions.d.ts +7 -0
  214. package/dist/models/types/SearchResultGroupKeyModel.d.ts +6 -0
  215. package/dist/models/types/SearchResultGroupModel.d.ts +7 -0
  216. package/dist/models/types/SearchResultModel.d.ts +8 -0
  217. package/dist/models/types/SearchType.d.ts +6 -0
  218. package/dist/models/types/TimelineStep.d.ts +11 -0
  219. package/dist/models/types/TimelineStepState.d.ts +5 -0
  220. package/dist/models/types/UseGetApiDataOptions.d.ts +9 -0
  221. package/dist/models/types/UserLoginState.d.ts +7 -0
  222. package/dist/models/types/UserModel.d.ts +11 -0
  223. package/dist/searchUtils-Do20vjZW.cjs +1 -0
  224. package/dist/searchUtils-Du4JnXdQ.js +7 -0
  225. package/dist/style.css +1 -0
  226. package/dist/useFormControlType-Dqz8sV4J.cjs +1 -0
  227. package/dist/useFormControlType-oJGqgThz.js +20 -0
  228. package/dist/useLocalStorageState-BwHNTgBx.js +40 -0
  229. package/dist/useLocalStorageState-Dt9N-bpT.cjs +1 -0
  230. package/dist/usePermissions-DS3yICnk.js +14 -0
  231. package/dist/usePermissions-nPVpMzwc.cjs +1 -0
  232. package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +4 -0
  233. package/dist/utils/date/dateUtils.d.ts +1 -0
  234. package/dist/utils/hookForm/hookFormUtils.d.ts +3 -0
  235. package/dist/utils/index.d.ts +6 -0
  236. package/dist/utils/object/objectUtils.d.ts +2 -0
  237. package/dist/utils/search/searchUtils.d.ts +3 -0
  238. package/dist/utils/text/textUtils.d.ts +3 -0
  239. package/dist/utils.cjs.js +1 -0
  240. package/dist/utils.d.ts +1 -0
  241. package/dist/utils.es.js +27 -0
  242. package/package.json +1 -1
@@ -0,0 +1,4269 @@
1
+ import { j as s, c as w, t as te, a as ie, g as _r, T as jr, b as kr, s as St, E as Nr, d as Cr, e as $r, f as Ir, h as Sr, u as B, i as pe, k as rn, F as Tt, l as Tr, m as Er, n as Dr, o as Or, p as Pr, q as Ar, r as Mr, v as Fr, w as mt, x as on, y as Wr, z as Rr, A as ke, B as Lr, C as Yr, P as je, D as sn, S as Et, G as Le, H as pt, I as qr, J as an, K as Oe, L as Ve, O as Dt, M as Hr, N as Br, Q as le, R as Vr, U as Gr, V as cn, W as gt, X as wt, Y as Ur, Z as tt, _ as U, $ as Ie, a0 as de, a1 as ln, a2 as xt, a3 as ge, a4 as un, a5 as zr, a6 as dn, a7 as Kr, a8 as hn, a9 as Qr, aa as Xr, ab as fn, ac as mn, ad as Jr, ae as Zr, af as eo, ag as to, ah as no, ai as ro } from "./UserAvatarToggle-BMXaJ189.js";
2
+ import { ak as su, aj as au } from "./UserAvatarToggle-BMXaJ189.js";
3
+ import * as R from "react";
4
+ import ee, { useCallback as S, useMemo as V, useEffect as O, useRef as q, useState as P, useReducer as pn, useContext as L, createElement as oo, Component as so, isValidElement as ao, Suspense as io } from "react";
5
+ import { c as fe, d as co, C as lo, a as gn, u as uo, q as Ot, F as ho, b as wn, E as Ye, P as Pt, M as qe, L as At } from "./PrimaryButton-HS1hw75-.js";
6
+ import { m as fo, a as xn } from "./latinize-BQrinury.js";
7
+ import { useFormContext as he, Controller as vn } from "react-hook-form";
8
+ import { u as yn, a as bn, b as _n } from "./useFormControlType-oJGqgThz.js";
9
+ import Ge from "react-dom";
10
+ import { S as cu } from "./SimpleTooltip-BAHgCnPu.js";
11
+ import { s as mo } from "./searchUtils-Du4JnXdQ.js";
12
+ const _l = ({ fileLoader: t, fileName: e, children: n }) => {
13
+ const r = S(async () => {
14
+ var l, c;
15
+ const o = await t();
16
+ if (!o)
17
+ return;
18
+ const a = window.URL.createObjectURL(new Blob([o])), i = document.createElement("a");
19
+ i.href = a, i.setAttribute("download", e), (l = document.body) == null || l.appendChild(i), i.click(), (c = document.body) == null || c.removeChild(i);
20
+ }, [t, e]);
21
+ return /* @__PURE__ */ s.jsx("div", { role: "button", onClick: r, children: n });
22
+ }, po = ({ className: t, ...e }) => /* @__PURE__ */ s.jsxs("div", { className: w("luminus-loading", fe.loading, fe.loadingBlock, fe.loadingBlock), ...e, children: [
23
+ /* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", fe.spinnerGrow, "text-primary"), role: "status" }),
24
+ /* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", fe.spinnerGrow, "text-primary", fe.second), role: "status" }),
25
+ /* @__PURE__ */ s.jsx("div", { className: w("spinner-grow", fe.spinnerGrow, "text-primary", fe.third), role: "status" })
26
+ ] });
27
+ function jn(t, e) {
28
+ const n = te(t);
29
+ if (isNaN(e))
30
+ return ie(t, NaN);
31
+ if (!e)
32
+ return n;
33
+ const r = n.getDate(), o = ie(t, n.getTime());
34
+ o.setMonth(n.getMonth() + e + 1, 0);
35
+ const a = o.getDate();
36
+ return r >= a ? o : (n.setFullYear(
37
+ o.getFullYear(),
38
+ o.getMonth(),
39
+ r
40
+ ), n);
41
+ }
42
+ let go = {};
43
+ function Xe() {
44
+ return go;
45
+ }
46
+ function Ae(t, e) {
47
+ var l, c, u, d;
48
+ const n = Xe(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = te(t), a = o.getDay(), i = (a < r ? 7 : 0) + a - r;
49
+ return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
50
+ }
51
+ function Ue(t) {
52
+ return Ae(t, { weekStartsOn: 1 });
53
+ }
54
+ function kn(t) {
55
+ const e = te(t), n = e.getFullYear(), r = ie(t, 0);
56
+ r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
57
+ const o = Ue(r), a = ie(t, 0);
58
+ a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0);
59
+ const i = Ue(a);
60
+ return e.getTime() >= o.getTime() ? n + 1 : e.getTime() >= i.getTime() ? n : n - 1;
61
+ }
62
+ function Mt(t) {
63
+ const e = te(t);
64
+ return e.setHours(0, 0, 0, 0), e;
65
+ }
66
+ function Ft(t) {
67
+ const e = te(t), n = new Date(
68
+ Date.UTC(
69
+ e.getFullYear(),
70
+ e.getMonth(),
71
+ e.getDate(),
72
+ e.getHours(),
73
+ e.getMinutes(),
74
+ e.getSeconds(),
75
+ e.getMilliseconds()
76
+ )
77
+ );
78
+ return n.setUTCFullYear(e.getFullYear()), +t - +n;
79
+ }
80
+ function wo(t, e) {
81
+ const n = Mt(t), r = Mt(e), o = +n - Ft(n), a = +r - Ft(r);
82
+ return Math.round((o - a) / fo);
83
+ }
84
+ function xo(t) {
85
+ const e = kn(t), n = ie(t, 0);
86
+ return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), Ue(n);
87
+ }
88
+ function vo(t, e) {
89
+ return jn(t, e * 12);
90
+ }
91
+ function yo(t, e) {
92
+ const n = te(t), r = te(e), o = n.getTime() - r.getTime();
93
+ return o < 0 ? -1 : o > 0 ? 1 : o;
94
+ }
95
+ function bo(t) {
96
+ return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
97
+ }
98
+ function _o(t) {
99
+ if (!bo(t) && typeof t != "number")
100
+ return !1;
101
+ const e = te(t);
102
+ return !isNaN(Number(e));
103
+ }
104
+ function jo(t) {
105
+ const e = te(t), n = ie(t, 0);
106
+ return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
107
+ }
108
+ const ko = {
109
+ lessThanXSeconds: {
110
+ one: "less than a second",
111
+ other: "less than {{count}} seconds"
112
+ },
113
+ xSeconds: {
114
+ one: "1 second",
115
+ other: "{{count}} seconds"
116
+ },
117
+ halfAMinute: "half a minute",
118
+ lessThanXMinutes: {
119
+ one: "less than a minute",
120
+ other: "less than {{count}} minutes"
121
+ },
122
+ xMinutes: {
123
+ one: "1 minute",
124
+ other: "{{count}} minutes"
125
+ },
126
+ aboutXHours: {
127
+ one: "about 1 hour",
128
+ other: "about {{count}} hours"
129
+ },
130
+ xHours: {
131
+ one: "1 hour",
132
+ other: "{{count}} hours"
133
+ },
134
+ xDays: {
135
+ one: "1 day",
136
+ other: "{{count}} days"
137
+ },
138
+ aboutXWeeks: {
139
+ one: "about 1 week",
140
+ other: "about {{count}} weeks"
141
+ },
142
+ xWeeks: {
143
+ one: "1 week",
144
+ other: "{{count}} weeks"
145
+ },
146
+ aboutXMonths: {
147
+ one: "about 1 month",
148
+ other: "about {{count}} months"
149
+ },
150
+ xMonths: {
151
+ one: "1 month",
152
+ other: "{{count}} months"
153
+ },
154
+ aboutXYears: {
155
+ one: "about 1 year",
156
+ other: "about {{count}} years"
157
+ },
158
+ xYears: {
159
+ one: "1 year",
160
+ other: "{{count}} years"
161
+ },
162
+ overXYears: {
163
+ one: "over 1 year",
164
+ other: "over {{count}} years"
165
+ },
166
+ almostXYears: {
167
+ one: "almost 1 year",
168
+ other: "almost {{count}} years"
169
+ }
170
+ }, No = (t, e, n) => {
171
+ let r;
172
+ const o = ko[t];
173
+ return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
174
+ };
175
+ function nt(t) {
176
+ return (e = {}) => {
177
+ const n = e.width ? String(e.width) : t.defaultWidth;
178
+ return t.formats[n] || t.formats[t.defaultWidth];
179
+ };
180
+ }
181
+ const Co = {
182
+ full: "EEEE, MMMM do, y",
183
+ long: "MMMM do, y",
184
+ medium: "MMM d, y",
185
+ short: "MM/dd/yyyy"
186
+ }, $o = {
187
+ full: "h:mm:ss a zzzz",
188
+ long: "h:mm:ss a z",
189
+ medium: "h:mm:ss a",
190
+ short: "h:mm a"
191
+ }, Io = {
192
+ full: "{{date}} 'at' {{time}}",
193
+ long: "{{date}} 'at' {{time}}",
194
+ medium: "{{date}}, {{time}}",
195
+ short: "{{date}}, {{time}}"
196
+ }, So = {
197
+ date: nt({
198
+ formats: Co,
199
+ defaultWidth: "full"
200
+ }),
201
+ time: nt({
202
+ formats: $o,
203
+ defaultWidth: "full"
204
+ }),
205
+ dateTime: nt({
206
+ formats: Io,
207
+ defaultWidth: "full"
208
+ })
209
+ }, To = {
210
+ lastWeek: "'last' eeee 'at' p",
211
+ yesterday: "'yesterday at' p",
212
+ today: "'today at' p",
213
+ tomorrow: "'tomorrow at' p",
214
+ nextWeek: "eeee 'at' p",
215
+ other: "P"
216
+ }, Eo = (t, e, n, r) => To[t];
217
+ function Te(t) {
218
+ return (e, n) => {
219
+ const r = n != null && n.context ? String(n.context) : "standalone";
220
+ let o;
221
+ if (r === "formatting" && t.formattingValues) {
222
+ const i = t.defaultFormattingWidth || t.defaultWidth, l = n != null && n.width ? String(n.width) : i;
223
+ o = t.formattingValues[l] || t.formattingValues[i];
224
+ } else {
225
+ const i = t.defaultWidth, l = n != null && n.width ? String(n.width) : t.defaultWidth;
226
+ o = t.values[l] || t.values[i];
227
+ }
228
+ const a = t.argumentCallback ? t.argumentCallback(e) : e;
229
+ return o[a];
230
+ };
231
+ }
232
+ const Do = {
233
+ narrow: ["B", "A"],
234
+ abbreviated: ["BC", "AD"],
235
+ wide: ["Before Christ", "Anno Domini"]
236
+ }, Oo = {
237
+ narrow: ["1", "2", "3", "4"],
238
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
239
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
240
+ }, Po = {
241
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
242
+ abbreviated: [
243
+ "Jan",
244
+ "Feb",
245
+ "Mar",
246
+ "Apr",
247
+ "May",
248
+ "Jun",
249
+ "Jul",
250
+ "Aug",
251
+ "Sep",
252
+ "Oct",
253
+ "Nov",
254
+ "Dec"
255
+ ],
256
+ wide: [
257
+ "January",
258
+ "February",
259
+ "March",
260
+ "April",
261
+ "May",
262
+ "June",
263
+ "July",
264
+ "August",
265
+ "September",
266
+ "October",
267
+ "November",
268
+ "December"
269
+ ]
270
+ }, Ao = {
271
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
272
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
273
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
274
+ wide: [
275
+ "Sunday",
276
+ "Monday",
277
+ "Tuesday",
278
+ "Wednesday",
279
+ "Thursday",
280
+ "Friday",
281
+ "Saturday"
282
+ ]
283
+ }, Mo = {
284
+ narrow: {
285
+ am: "a",
286
+ pm: "p",
287
+ midnight: "mi",
288
+ noon: "n",
289
+ morning: "morning",
290
+ afternoon: "afternoon",
291
+ evening: "evening",
292
+ night: "night"
293
+ },
294
+ abbreviated: {
295
+ am: "AM",
296
+ pm: "PM",
297
+ midnight: "midnight",
298
+ noon: "noon",
299
+ morning: "morning",
300
+ afternoon: "afternoon",
301
+ evening: "evening",
302
+ night: "night"
303
+ },
304
+ wide: {
305
+ am: "a.m.",
306
+ pm: "p.m.",
307
+ midnight: "midnight",
308
+ noon: "noon",
309
+ morning: "morning",
310
+ afternoon: "afternoon",
311
+ evening: "evening",
312
+ night: "night"
313
+ }
314
+ }, Fo = {
315
+ narrow: {
316
+ am: "a",
317
+ pm: "p",
318
+ midnight: "mi",
319
+ noon: "n",
320
+ morning: "in the morning",
321
+ afternoon: "in the afternoon",
322
+ evening: "in the evening",
323
+ night: "at night"
324
+ },
325
+ abbreviated: {
326
+ am: "AM",
327
+ pm: "PM",
328
+ midnight: "midnight",
329
+ noon: "noon",
330
+ morning: "in the morning",
331
+ afternoon: "in the afternoon",
332
+ evening: "in the evening",
333
+ night: "at night"
334
+ },
335
+ wide: {
336
+ am: "a.m.",
337
+ pm: "p.m.",
338
+ midnight: "midnight",
339
+ noon: "noon",
340
+ morning: "in the morning",
341
+ afternoon: "in the afternoon",
342
+ evening: "in the evening",
343
+ night: "at night"
344
+ }
345
+ }, Wo = (t, e) => {
346
+ const n = Number(t), r = n % 100;
347
+ if (r > 20 || r < 10)
348
+ switch (r % 10) {
349
+ case 1:
350
+ return n + "st";
351
+ case 2:
352
+ return n + "nd";
353
+ case 3:
354
+ return n + "rd";
355
+ }
356
+ return n + "th";
357
+ }, Ro = {
358
+ ordinalNumber: Wo,
359
+ era: Te({
360
+ values: Do,
361
+ defaultWidth: "wide"
362
+ }),
363
+ quarter: Te({
364
+ values: Oo,
365
+ defaultWidth: "wide",
366
+ argumentCallback: (t) => t - 1
367
+ }),
368
+ month: Te({
369
+ values: Po,
370
+ defaultWidth: "wide"
371
+ }),
372
+ day: Te({
373
+ values: Ao,
374
+ defaultWidth: "wide"
375
+ }),
376
+ dayPeriod: Te({
377
+ values: Mo,
378
+ defaultWidth: "wide",
379
+ formattingValues: Fo,
380
+ defaultFormattingWidth: "wide"
381
+ })
382
+ };
383
+ function Ee(t) {
384
+ return (e, n = {}) => {
385
+ const r = n.width, o = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], a = e.match(o);
386
+ if (!a)
387
+ return null;
388
+ const i = a[0], l = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(l) ? Yo(l, (h) => h.test(i)) : (
389
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
390
+ Lo(l, (h) => h.test(i))
391
+ );
392
+ let u;
393
+ u = t.valueCallback ? t.valueCallback(c) : c, u = n.valueCallback ? (
394
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
395
+ n.valueCallback(u)
396
+ ) : u;
397
+ const d = e.slice(i.length);
398
+ return { value: u, rest: d };
399
+ };
400
+ }
401
+ function Lo(t, e) {
402
+ for (const n in t)
403
+ if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
404
+ return n;
405
+ }
406
+ function Yo(t, e) {
407
+ for (let n = 0; n < t.length; n++)
408
+ if (e(t[n]))
409
+ return n;
410
+ }
411
+ function qo(t) {
412
+ return (e, n = {}) => {
413
+ const r = e.match(t.matchPattern);
414
+ if (!r)
415
+ return null;
416
+ const o = r[0], a = e.match(t.parsePattern);
417
+ if (!a)
418
+ return null;
419
+ let i = t.valueCallback ? t.valueCallback(a[0]) : a[0];
420
+ i = n.valueCallback ? n.valueCallback(i) : i;
421
+ const l = e.slice(o.length);
422
+ return { value: i, rest: l };
423
+ };
424
+ }
425
+ const Ho = /^(\d+)(th|st|nd|rd)?/i, Bo = /\d+/i, Vo = {
426
+ narrow: /^(b|a)/i,
427
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
428
+ wide: /^(before christ|before common era|anno domini|common era)/i
429
+ }, Go = {
430
+ any: [/^b/i, /^(a|c)/i]
431
+ }, Uo = {
432
+ narrow: /^[1234]/i,
433
+ abbreviated: /^q[1234]/i,
434
+ wide: /^[1234](th|st|nd|rd)? quarter/i
435
+ }, zo = {
436
+ any: [/1/i, /2/i, /3/i, /4/i]
437
+ }, Ko = {
438
+ narrow: /^[jfmasond]/i,
439
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
440
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
441
+ }, Qo = {
442
+ narrow: [
443
+ /^j/i,
444
+ /^f/i,
445
+ /^m/i,
446
+ /^a/i,
447
+ /^m/i,
448
+ /^j/i,
449
+ /^j/i,
450
+ /^a/i,
451
+ /^s/i,
452
+ /^o/i,
453
+ /^n/i,
454
+ /^d/i
455
+ ],
456
+ any: [
457
+ /^ja/i,
458
+ /^f/i,
459
+ /^mar/i,
460
+ /^ap/i,
461
+ /^may/i,
462
+ /^jun/i,
463
+ /^jul/i,
464
+ /^au/i,
465
+ /^s/i,
466
+ /^o/i,
467
+ /^n/i,
468
+ /^d/i
469
+ ]
470
+ }, Xo = {
471
+ narrow: /^[smtwf]/i,
472
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
473
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
474
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
475
+ }, Jo = {
476
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
477
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
478
+ }, Zo = {
479
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
480
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
481
+ }, es = {
482
+ any: {
483
+ am: /^a/i,
484
+ pm: /^p/i,
485
+ midnight: /^mi/i,
486
+ noon: /^no/i,
487
+ morning: /morning/i,
488
+ afternoon: /afternoon/i,
489
+ evening: /evening/i,
490
+ night: /night/i
491
+ }
492
+ }, ts = {
493
+ ordinalNumber: qo({
494
+ matchPattern: Ho,
495
+ parsePattern: Bo,
496
+ valueCallback: (t) => parseInt(t, 10)
497
+ }),
498
+ era: Ee({
499
+ matchPatterns: Vo,
500
+ defaultMatchWidth: "wide",
501
+ parsePatterns: Go,
502
+ defaultParseWidth: "any"
503
+ }),
504
+ quarter: Ee({
505
+ matchPatterns: Uo,
506
+ defaultMatchWidth: "wide",
507
+ parsePatterns: zo,
508
+ defaultParseWidth: "any",
509
+ valueCallback: (t) => t + 1
510
+ }),
511
+ month: Ee({
512
+ matchPatterns: Ko,
513
+ defaultMatchWidth: "wide",
514
+ parsePatterns: Qo,
515
+ defaultParseWidth: "any"
516
+ }),
517
+ day: Ee({
518
+ matchPatterns: Xo,
519
+ defaultMatchWidth: "wide",
520
+ parsePatterns: Jo,
521
+ defaultParseWidth: "any"
522
+ }),
523
+ dayPeriod: Ee({
524
+ matchPatterns: Zo,
525
+ defaultMatchWidth: "any",
526
+ parsePatterns: es,
527
+ defaultParseWidth: "any"
528
+ })
529
+ }, ns = {
530
+ code: "en-US",
531
+ formatDistance: No,
532
+ formatLong: So,
533
+ formatRelative: Eo,
534
+ localize: Ro,
535
+ match: ts,
536
+ options: {
537
+ weekStartsOn: 0,
538
+ firstWeekContainsDate: 1
539
+ }
540
+ };
541
+ function rs(t) {
542
+ const e = te(t);
543
+ return wo(e, jo(e)) + 1;
544
+ }
545
+ function os(t) {
546
+ const e = te(t), n = +Ue(e) - +xo(e);
547
+ return Math.round(n / xn) + 1;
548
+ }
549
+ function Nn(t, e) {
550
+ var d, h, m, g;
551
+ const n = te(t), r = n.getFullYear(), o = Xe(), a = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((g = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = ie(t, 0);
552
+ i.setFullYear(r + 1, 0, a), i.setHours(0, 0, 0, 0);
553
+ const l = Ae(i, e), c = ie(t, 0);
554
+ c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
555
+ const u = Ae(c, e);
556
+ return n.getTime() >= l.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
557
+ }
558
+ function ss(t, e) {
559
+ var l, c, u, d;
560
+ const n = Xe(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = Nn(t, e), a = ie(t, 0);
561
+ return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), Ae(a, e);
562
+ }
563
+ function as(t, e) {
564
+ const n = te(t), r = +Ae(n, e) - +ss(n, e);
565
+ return Math.round(r / xn) + 1;
566
+ }
567
+ function H(t, e) {
568
+ const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
569
+ return n + r;
570
+ }
571
+ const me = {
572
+ // Year
573
+ y(t, e) {
574
+ const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
575
+ return H(e === "yy" ? r % 100 : r, e.length);
576
+ },
577
+ // Month
578
+ M(t, e) {
579
+ const n = t.getMonth();
580
+ return e === "M" ? String(n + 1) : H(n + 1, 2);
581
+ },
582
+ // Day of the month
583
+ d(t, e) {
584
+ return H(t.getDate(), e.length);
585
+ },
586
+ // AM or PM
587
+ a(t, e) {
588
+ const n = t.getHours() / 12 >= 1 ? "pm" : "am";
589
+ switch (e) {
590
+ case "a":
591
+ case "aa":
592
+ return n.toUpperCase();
593
+ case "aaa":
594
+ return n;
595
+ case "aaaaa":
596
+ return n[0];
597
+ case "aaaa":
598
+ default:
599
+ return n === "am" ? "a.m." : "p.m.";
600
+ }
601
+ },
602
+ // Hour [1-12]
603
+ h(t, e) {
604
+ return H(t.getHours() % 12 || 12, e.length);
605
+ },
606
+ // Hour [0-23]
607
+ H(t, e) {
608
+ return H(t.getHours(), e.length);
609
+ },
610
+ // Minute
611
+ m(t, e) {
612
+ return H(t.getMinutes(), e.length);
613
+ },
614
+ // Second
615
+ s(t, e) {
616
+ return H(t.getSeconds(), e.length);
617
+ },
618
+ // Fraction of second
619
+ S(t, e) {
620
+ const n = e.length, r = t.getMilliseconds(), o = Math.trunc(
621
+ r * Math.pow(10, n - 3)
622
+ );
623
+ return H(o, e.length);
624
+ }
625
+ }, Ce = {
626
+ am: "am",
627
+ pm: "pm",
628
+ midnight: "midnight",
629
+ noon: "noon",
630
+ morning: "morning",
631
+ afternoon: "afternoon",
632
+ evening: "evening",
633
+ night: "night"
634
+ }, Wt = {
635
+ // Era
636
+ G: function(t, e, n) {
637
+ const r = t.getFullYear() > 0 ? 1 : 0;
638
+ switch (e) {
639
+ case "G":
640
+ case "GG":
641
+ case "GGG":
642
+ return n.era(r, { width: "abbreviated" });
643
+ case "GGGGG":
644
+ return n.era(r, { width: "narrow" });
645
+ case "GGGG":
646
+ default:
647
+ return n.era(r, { width: "wide" });
648
+ }
649
+ },
650
+ // Year
651
+ y: function(t, e, n) {
652
+ if (e === "yo") {
653
+ const r = t.getFullYear(), o = r > 0 ? r : 1 - r;
654
+ return n.ordinalNumber(o, { unit: "year" });
655
+ }
656
+ return me.y(t, e);
657
+ },
658
+ // Local week-numbering year
659
+ Y: function(t, e, n, r) {
660
+ const o = Nn(t, r), a = o > 0 ? o : 1 - o;
661
+ if (e === "YY") {
662
+ const i = a % 100;
663
+ return H(i, 2);
664
+ }
665
+ return e === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : H(a, e.length);
666
+ },
667
+ // ISO week-numbering year
668
+ R: function(t, e) {
669
+ const n = kn(t);
670
+ return H(n, e.length);
671
+ },
672
+ // Extended year. This is a single number designating the year of this calendar system.
673
+ // The main difference between `y` and `u` localizers are B.C. years:
674
+ // | Year | `y` | `u` |
675
+ // |------|-----|-----|
676
+ // | AC 1 | 1 | 1 |
677
+ // | BC 1 | 1 | 0 |
678
+ // | BC 2 | 2 | -1 |
679
+ // Also `yy` always returns the last two digits of a year,
680
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
681
+ u: function(t, e) {
682
+ const n = t.getFullYear();
683
+ return H(n, e.length);
684
+ },
685
+ // Quarter
686
+ Q: function(t, e, n) {
687
+ const r = Math.ceil((t.getMonth() + 1) / 3);
688
+ switch (e) {
689
+ case "Q":
690
+ return String(r);
691
+ case "QQ":
692
+ return H(r, 2);
693
+ case "Qo":
694
+ return n.ordinalNumber(r, { unit: "quarter" });
695
+ case "QQQ":
696
+ return n.quarter(r, {
697
+ width: "abbreviated",
698
+ context: "formatting"
699
+ });
700
+ case "QQQQQ":
701
+ return n.quarter(r, {
702
+ width: "narrow",
703
+ context: "formatting"
704
+ });
705
+ case "QQQQ":
706
+ default:
707
+ return n.quarter(r, {
708
+ width: "wide",
709
+ context: "formatting"
710
+ });
711
+ }
712
+ },
713
+ // Stand-alone quarter
714
+ q: function(t, e, n) {
715
+ const r = Math.ceil((t.getMonth() + 1) / 3);
716
+ switch (e) {
717
+ case "q":
718
+ return String(r);
719
+ case "qq":
720
+ return H(r, 2);
721
+ case "qo":
722
+ return n.ordinalNumber(r, { unit: "quarter" });
723
+ case "qqq":
724
+ return n.quarter(r, {
725
+ width: "abbreviated",
726
+ context: "standalone"
727
+ });
728
+ case "qqqqq":
729
+ return n.quarter(r, {
730
+ width: "narrow",
731
+ context: "standalone"
732
+ });
733
+ case "qqqq":
734
+ default:
735
+ return n.quarter(r, {
736
+ width: "wide",
737
+ context: "standalone"
738
+ });
739
+ }
740
+ },
741
+ // Month
742
+ M: function(t, e, n) {
743
+ const r = t.getMonth();
744
+ switch (e) {
745
+ case "M":
746
+ case "MM":
747
+ return me.M(t, e);
748
+ case "Mo":
749
+ return n.ordinalNumber(r + 1, { unit: "month" });
750
+ case "MMM":
751
+ return n.month(r, {
752
+ width: "abbreviated",
753
+ context: "formatting"
754
+ });
755
+ case "MMMMM":
756
+ return n.month(r, {
757
+ width: "narrow",
758
+ context: "formatting"
759
+ });
760
+ case "MMMM":
761
+ default:
762
+ return n.month(r, { width: "wide", context: "formatting" });
763
+ }
764
+ },
765
+ // Stand-alone month
766
+ L: function(t, e, n) {
767
+ const r = t.getMonth();
768
+ switch (e) {
769
+ case "L":
770
+ return String(r + 1);
771
+ case "LL":
772
+ return H(r + 1, 2);
773
+ case "Lo":
774
+ return n.ordinalNumber(r + 1, { unit: "month" });
775
+ case "LLL":
776
+ return n.month(r, {
777
+ width: "abbreviated",
778
+ context: "standalone"
779
+ });
780
+ case "LLLLL":
781
+ return n.month(r, {
782
+ width: "narrow",
783
+ context: "standalone"
784
+ });
785
+ case "LLLL":
786
+ default:
787
+ return n.month(r, { width: "wide", context: "standalone" });
788
+ }
789
+ },
790
+ // Local week of year
791
+ w: function(t, e, n, r) {
792
+ const o = as(t, r);
793
+ return e === "wo" ? n.ordinalNumber(o, { unit: "week" }) : H(o, e.length);
794
+ },
795
+ // ISO week of year
796
+ I: function(t, e, n) {
797
+ const r = os(t);
798
+ return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : H(r, e.length);
799
+ },
800
+ // Day of the month
801
+ d: function(t, e, n) {
802
+ return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : me.d(t, e);
803
+ },
804
+ // Day of year
805
+ D: function(t, e, n) {
806
+ const r = rs(t);
807
+ return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : H(r, e.length);
808
+ },
809
+ // Day of week
810
+ E: function(t, e, n) {
811
+ const r = t.getDay();
812
+ switch (e) {
813
+ case "E":
814
+ case "EE":
815
+ case "EEE":
816
+ return n.day(r, {
817
+ width: "abbreviated",
818
+ context: "formatting"
819
+ });
820
+ case "EEEEE":
821
+ return n.day(r, {
822
+ width: "narrow",
823
+ context: "formatting"
824
+ });
825
+ case "EEEEEE":
826
+ return n.day(r, {
827
+ width: "short",
828
+ context: "formatting"
829
+ });
830
+ case "EEEE":
831
+ default:
832
+ return n.day(r, {
833
+ width: "wide",
834
+ context: "formatting"
835
+ });
836
+ }
837
+ },
838
+ // Local day of week
839
+ e: function(t, e, n, r) {
840
+ const o = t.getDay(), a = (o - r.weekStartsOn + 8) % 7 || 7;
841
+ switch (e) {
842
+ case "e":
843
+ return String(a);
844
+ case "ee":
845
+ return H(a, 2);
846
+ case "eo":
847
+ return n.ordinalNumber(a, { unit: "day" });
848
+ case "eee":
849
+ return n.day(o, {
850
+ width: "abbreviated",
851
+ context: "formatting"
852
+ });
853
+ case "eeeee":
854
+ return n.day(o, {
855
+ width: "narrow",
856
+ context: "formatting"
857
+ });
858
+ case "eeeeee":
859
+ return n.day(o, {
860
+ width: "short",
861
+ context: "formatting"
862
+ });
863
+ case "eeee":
864
+ default:
865
+ return n.day(o, {
866
+ width: "wide",
867
+ context: "formatting"
868
+ });
869
+ }
870
+ },
871
+ // Stand-alone local day of week
872
+ c: function(t, e, n, r) {
873
+ const o = t.getDay(), a = (o - r.weekStartsOn + 8) % 7 || 7;
874
+ switch (e) {
875
+ case "c":
876
+ return String(a);
877
+ case "cc":
878
+ return H(a, e.length);
879
+ case "co":
880
+ return n.ordinalNumber(a, { unit: "day" });
881
+ case "ccc":
882
+ return n.day(o, {
883
+ width: "abbreviated",
884
+ context: "standalone"
885
+ });
886
+ case "ccccc":
887
+ return n.day(o, {
888
+ width: "narrow",
889
+ context: "standalone"
890
+ });
891
+ case "cccccc":
892
+ return n.day(o, {
893
+ width: "short",
894
+ context: "standalone"
895
+ });
896
+ case "cccc":
897
+ default:
898
+ return n.day(o, {
899
+ width: "wide",
900
+ context: "standalone"
901
+ });
902
+ }
903
+ },
904
+ // ISO day of week
905
+ i: function(t, e, n) {
906
+ const r = t.getDay(), o = r === 0 ? 7 : r;
907
+ switch (e) {
908
+ case "i":
909
+ return String(o);
910
+ case "ii":
911
+ return H(o, e.length);
912
+ case "io":
913
+ return n.ordinalNumber(o, { unit: "day" });
914
+ case "iii":
915
+ return n.day(r, {
916
+ width: "abbreviated",
917
+ context: "formatting"
918
+ });
919
+ case "iiiii":
920
+ return n.day(r, {
921
+ width: "narrow",
922
+ context: "formatting"
923
+ });
924
+ case "iiiiii":
925
+ return n.day(r, {
926
+ width: "short",
927
+ context: "formatting"
928
+ });
929
+ case "iiii":
930
+ default:
931
+ return n.day(r, {
932
+ width: "wide",
933
+ context: "formatting"
934
+ });
935
+ }
936
+ },
937
+ // AM or PM
938
+ a: function(t, e, n) {
939
+ const o = t.getHours() / 12 >= 1 ? "pm" : "am";
940
+ switch (e) {
941
+ case "a":
942
+ case "aa":
943
+ return n.dayPeriod(o, {
944
+ width: "abbreviated",
945
+ context: "formatting"
946
+ });
947
+ case "aaa":
948
+ return n.dayPeriod(o, {
949
+ width: "abbreviated",
950
+ context: "formatting"
951
+ }).toLowerCase();
952
+ case "aaaaa":
953
+ return n.dayPeriod(o, {
954
+ width: "narrow",
955
+ context: "formatting"
956
+ });
957
+ case "aaaa":
958
+ default:
959
+ return n.dayPeriod(o, {
960
+ width: "wide",
961
+ context: "formatting"
962
+ });
963
+ }
964
+ },
965
+ // AM, PM, midnight, noon
966
+ b: function(t, e, n) {
967
+ const r = t.getHours();
968
+ let o;
969
+ switch (r === 12 ? o = Ce.noon : r === 0 ? o = Ce.midnight : o = r / 12 >= 1 ? "pm" : "am", e) {
970
+ case "b":
971
+ case "bb":
972
+ return n.dayPeriod(o, {
973
+ width: "abbreviated",
974
+ context: "formatting"
975
+ });
976
+ case "bbb":
977
+ return n.dayPeriod(o, {
978
+ width: "abbreviated",
979
+ context: "formatting"
980
+ }).toLowerCase();
981
+ case "bbbbb":
982
+ return n.dayPeriod(o, {
983
+ width: "narrow",
984
+ context: "formatting"
985
+ });
986
+ case "bbbb":
987
+ default:
988
+ return n.dayPeriod(o, {
989
+ width: "wide",
990
+ context: "formatting"
991
+ });
992
+ }
993
+ },
994
+ // in the morning, in the afternoon, in the evening, at night
995
+ B: function(t, e, n) {
996
+ const r = t.getHours();
997
+ let o;
998
+ switch (r >= 17 ? o = Ce.evening : r >= 12 ? o = Ce.afternoon : r >= 4 ? o = Ce.morning : o = Ce.night, e) {
999
+ case "B":
1000
+ case "BB":
1001
+ case "BBB":
1002
+ return n.dayPeriod(o, {
1003
+ width: "abbreviated",
1004
+ context: "formatting"
1005
+ });
1006
+ case "BBBBB":
1007
+ return n.dayPeriod(o, {
1008
+ width: "narrow",
1009
+ context: "formatting"
1010
+ });
1011
+ case "BBBB":
1012
+ default:
1013
+ return n.dayPeriod(o, {
1014
+ width: "wide",
1015
+ context: "formatting"
1016
+ });
1017
+ }
1018
+ },
1019
+ // Hour [1-12]
1020
+ h: function(t, e, n) {
1021
+ if (e === "ho") {
1022
+ let r = t.getHours() % 12;
1023
+ return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1024
+ }
1025
+ return me.h(t, e);
1026
+ },
1027
+ // Hour [0-23]
1028
+ H: function(t, e, n) {
1029
+ return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : me.H(t, e);
1030
+ },
1031
+ // Hour [0-11]
1032
+ K: function(t, e, n) {
1033
+ const r = t.getHours() % 12;
1034
+ return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : H(r, e.length);
1035
+ },
1036
+ // Hour [1-24]
1037
+ k: function(t, e, n) {
1038
+ let r = t.getHours();
1039
+ return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : H(r, e.length);
1040
+ },
1041
+ // Minute
1042
+ m: function(t, e, n) {
1043
+ return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : me.m(t, e);
1044
+ },
1045
+ // Second
1046
+ s: function(t, e, n) {
1047
+ return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : me.s(t, e);
1048
+ },
1049
+ // Fraction of second
1050
+ S: function(t, e) {
1051
+ return me.S(t, e);
1052
+ },
1053
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1054
+ X: function(t, e, n) {
1055
+ const r = t.getTimezoneOffset();
1056
+ if (r === 0)
1057
+ return "Z";
1058
+ switch (e) {
1059
+ case "X":
1060
+ return Lt(r);
1061
+ case "XXXX":
1062
+ case "XX":
1063
+ return _e(r);
1064
+ case "XXXXX":
1065
+ case "XXX":
1066
+ default:
1067
+ return _e(r, ":");
1068
+ }
1069
+ },
1070
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1071
+ x: function(t, e, n) {
1072
+ const r = t.getTimezoneOffset();
1073
+ switch (e) {
1074
+ case "x":
1075
+ return Lt(r);
1076
+ case "xxxx":
1077
+ case "xx":
1078
+ return _e(r);
1079
+ case "xxxxx":
1080
+ case "xxx":
1081
+ default:
1082
+ return _e(r, ":");
1083
+ }
1084
+ },
1085
+ // Timezone (GMT)
1086
+ O: function(t, e, n) {
1087
+ const r = t.getTimezoneOffset();
1088
+ switch (e) {
1089
+ case "O":
1090
+ case "OO":
1091
+ case "OOO":
1092
+ return "GMT" + Rt(r, ":");
1093
+ case "OOOO":
1094
+ default:
1095
+ return "GMT" + _e(r, ":");
1096
+ }
1097
+ },
1098
+ // Timezone (specific non-location)
1099
+ z: function(t, e, n) {
1100
+ const r = t.getTimezoneOffset();
1101
+ switch (e) {
1102
+ case "z":
1103
+ case "zz":
1104
+ case "zzz":
1105
+ return "GMT" + Rt(r, ":");
1106
+ case "zzzz":
1107
+ default:
1108
+ return "GMT" + _e(r, ":");
1109
+ }
1110
+ },
1111
+ // Seconds timestamp
1112
+ t: function(t, e, n) {
1113
+ const r = Math.trunc(t.getTime() / 1e3);
1114
+ return H(r, e.length);
1115
+ },
1116
+ // Milliseconds timestamp
1117
+ T: function(t, e, n) {
1118
+ const r = t.getTime();
1119
+ return H(r, e.length);
1120
+ }
1121
+ };
1122
+ function Rt(t, e = "") {
1123
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), o = Math.trunc(r / 60), a = r % 60;
1124
+ return a === 0 ? n + String(o) : n + String(o) + e + H(a, 2);
1125
+ }
1126
+ function Lt(t, e) {
1127
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + H(Math.abs(t) / 60, 2) : _e(t, e);
1128
+ }
1129
+ function _e(t, e = "") {
1130
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), o = H(Math.trunc(r / 60), 2), a = H(r % 60, 2);
1131
+ return n + o + e + a;
1132
+ }
1133
+ const Yt = (t, e) => {
1134
+ switch (t) {
1135
+ case "P":
1136
+ return e.date({ width: "short" });
1137
+ case "PP":
1138
+ return e.date({ width: "medium" });
1139
+ case "PPP":
1140
+ return e.date({ width: "long" });
1141
+ case "PPPP":
1142
+ default:
1143
+ return e.date({ width: "full" });
1144
+ }
1145
+ }, Cn = (t, e) => {
1146
+ switch (t) {
1147
+ case "p":
1148
+ return e.time({ width: "short" });
1149
+ case "pp":
1150
+ return e.time({ width: "medium" });
1151
+ case "ppp":
1152
+ return e.time({ width: "long" });
1153
+ case "pppp":
1154
+ default:
1155
+ return e.time({ width: "full" });
1156
+ }
1157
+ }, is = (t, e) => {
1158
+ const n = t.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
1159
+ if (!o)
1160
+ return Yt(t, e);
1161
+ let a;
1162
+ switch (r) {
1163
+ case "P":
1164
+ a = e.dateTime({ width: "short" });
1165
+ break;
1166
+ case "PP":
1167
+ a = e.dateTime({ width: "medium" });
1168
+ break;
1169
+ case "PPP":
1170
+ a = e.dateTime({ width: "long" });
1171
+ break;
1172
+ case "PPPP":
1173
+ default:
1174
+ a = e.dateTime({ width: "full" });
1175
+ break;
1176
+ }
1177
+ return a.replace("{{date}}", Yt(r, e)).replace("{{time}}", Cn(o, e));
1178
+ }, cs = {
1179
+ p: Cn,
1180
+ P: is
1181
+ }, ls = /^D+$/, us = /^Y+$/, ds = ["D", "DD", "YY", "YYYY"];
1182
+ function hs(t) {
1183
+ return ls.test(t);
1184
+ }
1185
+ function fs(t) {
1186
+ return us.test(t);
1187
+ }
1188
+ function ms(t, e, n) {
1189
+ const r = ps(t, e, n);
1190
+ if (console.warn(r), ds.includes(t))
1191
+ throw new RangeError(r);
1192
+ }
1193
+ function ps(t, e, n) {
1194
+ const r = t[0] === "Y" ? "years" : "days of the month";
1195
+ return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1196
+ }
1197
+ const gs = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ws = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xs = /^'([^]*?)'?$/, vs = /''/g, ys = /[a-zA-Z]/;
1198
+ function ct(t, e, n) {
1199
+ var d, h, m, g, x, y, p, v;
1200
+ const r = Xe(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? ns, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((h = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((y = (x = n == null ? void 0 : n.locale) == null ? void 0 : x.options) == null ? void 0 : y.weekStartsOn) ?? r.weekStartsOn ?? ((v = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : v.weekStartsOn) ?? 0, l = te(t);
1201
+ if (!_o(l))
1202
+ throw new RangeError("Invalid time value");
1203
+ let c = e.match(ws).map((j) => {
1204
+ const f = j[0];
1205
+ if (f === "p" || f === "P") {
1206
+ const k = cs[f];
1207
+ return k(j, o.formatLong);
1208
+ }
1209
+ return j;
1210
+ }).join("").match(gs).map((j) => {
1211
+ if (j === "''")
1212
+ return { isToken: !1, value: "'" };
1213
+ const f = j[0];
1214
+ if (f === "'")
1215
+ return { isToken: !1, value: bs(j) };
1216
+ if (Wt[f])
1217
+ return { isToken: !0, value: j };
1218
+ if (f.match(ys))
1219
+ throw new RangeError(
1220
+ "Format string contains an unescaped latin alphabet character `" + f + "`"
1221
+ );
1222
+ return { isToken: !1, value: j };
1223
+ });
1224
+ o.localize.preprocessor && (c = o.localize.preprocessor(l, c));
1225
+ const u = {
1226
+ firstWeekContainsDate: a,
1227
+ weekStartsOn: i,
1228
+ locale: o
1229
+ };
1230
+ return c.map((j) => {
1231
+ if (!j.isToken)
1232
+ return j.value;
1233
+ const f = j.value;
1234
+ (!(n != null && n.useAdditionalWeekYearTokens) && fs(f) || !(n != null && n.useAdditionalDayOfYearTokens) && hs(f)) && ms(f, e, String(t));
1235
+ const k = Wt[f[0]];
1236
+ return k(l, f, o.localize, u);
1237
+ }).join("");
1238
+ }
1239
+ function bs(t) {
1240
+ const e = t.match(xs);
1241
+ return e ? e[1].replace(vs, "'") : t;
1242
+ }
1243
+ function _s(t) {
1244
+ const e = te(t), n = e.getFullYear(), r = e.getMonth(), o = ie(t, 0);
1245
+ return o.setFullYear(n, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1246
+ }
1247
+ function js(t, e) {
1248
+ const n = te(t), r = n.getFullYear(), o = n.getDate(), a = ie(t, 0);
1249
+ a.setFullYear(r, e, 15), a.setHours(0, 0, 0, 0);
1250
+ const i = _s(a);
1251
+ return n.setMonth(e, Math.min(o, i)), n;
1252
+ }
1253
+ function $n(t, e) {
1254
+ const n = te(t);
1255
+ return isNaN(+n) ? ie(t, NaN) : (n.setFullYear(e), n);
1256
+ }
1257
+ var ks = function(t, e, n, r, o, a, i, l) {
1258
+ if (process.env.NODE_ENV !== "production" && e === void 0)
1259
+ throw new Error("invariant requires an error message argument");
1260
+ if (!t) {
1261
+ var c;
1262
+ if (e === void 0)
1263
+ c = new Error(
1264
+ "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
1265
+ );
1266
+ else {
1267
+ var u = [n, r, o, a, i, l], d = 0;
1268
+ c = new Error(
1269
+ e.replace(/%s/g, function() {
1270
+ return u[d++];
1271
+ })
1272
+ ), c.name = "Invariant Violation";
1273
+ }
1274
+ throw c.framesToPop = 1, c;
1275
+ }
1276
+ }, Ns = ks;
1277
+ const qt = /* @__PURE__ */ _r(Ns);
1278
+ function De(...t) {
1279
+ return t.filter((e) => e != null).reduce((e, n) => {
1280
+ if (typeof n != "function")
1281
+ throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");
1282
+ return e === null ? n : function(...o) {
1283
+ e.apply(this, o), n.apply(this, o);
1284
+ };
1285
+ }, null);
1286
+ }
1287
+ const Cs = {
1288
+ height: ["marginTop", "marginBottom"],
1289
+ width: ["marginLeft", "marginRight"]
1290
+ };
1291
+ function $s(t, e) {
1292
+ const n = `offset${t[0].toUpperCase()}${t.slice(1)}`, r = e[n], o = Cs[t];
1293
+ return r + // @ts-ignore
1294
+ parseInt(St(e, o[0]), 10) + // @ts-ignore
1295
+ parseInt(St(e, o[1]), 10);
1296
+ }
1297
+ const Is = {
1298
+ [Nr]: "collapse",
1299
+ [Cr]: "collapsing",
1300
+ [$r]: "collapsing",
1301
+ [Ir]: "collapse show"
1302
+ }, In = /* @__PURE__ */ ee.forwardRef(({
1303
+ onEnter: t,
1304
+ onEntering: e,
1305
+ onEntered: n,
1306
+ onExit: r,
1307
+ onExiting: o,
1308
+ className: a,
1309
+ children: i,
1310
+ dimension: l = "height",
1311
+ in: c = !1,
1312
+ timeout: u = 300,
1313
+ mountOnEnter: d = !1,
1314
+ unmountOnExit: h = !1,
1315
+ appear: m = !1,
1316
+ getDimensionValue: g = $s,
1317
+ ...x
1318
+ }, y) => {
1319
+ const p = typeof l == "function" ? l() : l, v = V(() => De((C) => {
1320
+ C.style[p] = "0";
1321
+ }, t), [p, t]), j = V(() => De((C) => {
1322
+ const N = `scroll${p[0].toUpperCase()}${p.slice(1)}`;
1323
+ C.style[p] = `${C[N]}px`;
1324
+ }, e), [p, e]), f = V(() => De((C) => {
1325
+ C.style[p] = null;
1326
+ }, n), [p, n]), k = V(() => De((C) => {
1327
+ C.style[p] = `${g(p, C)}px`, Sr(C);
1328
+ }, r), [r, g, p]), _ = V(() => De((C) => {
1329
+ C.style[p] = null;
1330
+ }, o), [p, o]);
1331
+ return /* @__PURE__ */ s.jsx(jr, {
1332
+ ref: y,
1333
+ addEndListener: kr,
1334
+ ...x,
1335
+ "aria-expanded": x.role ? c : null,
1336
+ onEnter: v,
1337
+ onEntering: j,
1338
+ onEntered: f,
1339
+ onExit: k,
1340
+ onExiting: _,
1341
+ childRef: i.ref,
1342
+ in: c,
1343
+ timeout: u,
1344
+ mountOnEnter: d,
1345
+ unmountOnExit: h,
1346
+ appear: m,
1347
+ children: (C, N) => /* @__PURE__ */ ee.cloneElement(i, {
1348
+ ...N,
1349
+ className: w(a, i.props.className, Is[C], p === "width" && "collapse-horizontal")
1350
+ })
1351
+ });
1352
+ }), Sn = co("h4");
1353
+ Sn.displayName = "DivStyledAsH4";
1354
+ const Tn = /* @__PURE__ */ R.forwardRef(({
1355
+ className: t,
1356
+ bsPrefix: e,
1357
+ as: n = Sn,
1358
+ ...r
1359
+ }, o) => (e = B(e, "alert-heading"), /* @__PURE__ */ s.jsx(n, {
1360
+ ref: o,
1361
+ className: w(t, e),
1362
+ ...r
1363
+ })));
1364
+ Tn.displayName = "AlertHeading";
1365
+ function Ss(t, e, n, r = !1) {
1366
+ const o = pe(n);
1367
+ O(() => {
1368
+ const a = typeof t == "function" ? t() : t;
1369
+ return a.addEventListener(e, o, r), () => a.removeEventListener(e, o, r);
1370
+ }, [t]);
1371
+ }
1372
+ const Ts = ["as", "disabled"];
1373
+ function Es(t, e) {
1374
+ if (t == null)
1375
+ return {};
1376
+ var n = {}, r = Object.keys(t), o, a;
1377
+ for (a = 0; a < r.length; a++)
1378
+ o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
1379
+ return n;
1380
+ }
1381
+ function Ds(t) {
1382
+ return !t || t.trim() === "#";
1383
+ }
1384
+ function vt({
1385
+ tagName: t,
1386
+ disabled: e,
1387
+ href: n,
1388
+ target: r,
1389
+ rel: o,
1390
+ role: a,
1391
+ onClick: i,
1392
+ tabIndex: l = 0,
1393
+ type: c
1394
+ }) {
1395
+ t || (n != null || r != null || o != null ? t = "a" : t = "button");
1396
+ const u = {
1397
+ tagName: t
1398
+ };
1399
+ if (t === "button")
1400
+ return [{
1401
+ type: c || "button",
1402
+ disabled: e
1403
+ }, u];
1404
+ const d = (m) => {
1405
+ if ((e || t === "a" && Ds(n)) && m.preventDefault(), e) {
1406
+ m.stopPropagation();
1407
+ return;
1408
+ }
1409
+ i == null || i(m);
1410
+ }, h = (m) => {
1411
+ m.key === " " && (m.preventDefault(), d(m));
1412
+ };
1413
+ return t === "a" && (n || (n = "#"), e && (n = void 0)), [{
1414
+ role: a ?? "button",
1415
+ // explicitly undefined so that it overrides the props disabled in a spread
1416
+ // e.g. <Tag {...props} {...hookProps} />
1417
+ disabled: void 0,
1418
+ tabIndex: e ? void 0 : l,
1419
+ href: n,
1420
+ target: t === "a" ? r : void 0,
1421
+ "aria-disabled": e || void 0,
1422
+ rel: t === "a" ? o : void 0,
1423
+ onClick: d,
1424
+ onKeyDown: h
1425
+ }, u];
1426
+ }
1427
+ const En = /* @__PURE__ */ R.forwardRef((t, e) => {
1428
+ let {
1429
+ as: n,
1430
+ disabled: r
1431
+ } = t, o = Es(t, Ts);
1432
+ const [a, {
1433
+ tagName: i
1434
+ }] = vt(Object.assign({
1435
+ tagName: n,
1436
+ disabled: r
1437
+ }, o));
1438
+ return /* @__PURE__ */ s.jsx(i, Object.assign({}, o, a, {
1439
+ ref: e
1440
+ }));
1441
+ });
1442
+ En.displayName = "Button";
1443
+ const Os = ["onKeyDown"];
1444
+ function Ps(t, e) {
1445
+ if (t == null)
1446
+ return {};
1447
+ var n = {}, r = Object.keys(t), o, a;
1448
+ for (a = 0; a < r.length; a++)
1449
+ o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
1450
+ return n;
1451
+ }
1452
+ function As(t) {
1453
+ return !t || t.trim() === "#";
1454
+ }
1455
+ const yt = /* @__PURE__ */ R.forwardRef((t, e) => {
1456
+ let {
1457
+ onKeyDown: n
1458
+ } = t, r = Ps(t, Os);
1459
+ const [o] = vt(Object.assign({
1460
+ tagName: "a"
1461
+ }, r)), a = pe((i) => {
1462
+ o.onKeyDown(i), n == null || n(i);
1463
+ });
1464
+ return As(r.href) || r.role === "button" ? /* @__PURE__ */ s.jsx("a", Object.assign({
1465
+ ref: e
1466
+ }, r, o, {
1467
+ onKeyDown: a
1468
+ })) : /* @__PURE__ */ s.jsx("a", Object.assign({
1469
+ ref: e
1470
+ }, r, {
1471
+ onKeyDown: n
1472
+ }));
1473
+ });
1474
+ yt.displayName = "Anchor";
1475
+ const Dn = /* @__PURE__ */ R.forwardRef(({
1476
+ className: t,
1477
+ bsPrefix: e,
1478
+ as: n = yt,
1479
+ ...r
1480
+ }, o) => (e = B(e, "alert-link"), /* @__PURE__ */ s.jsx(n, {
1481
+ ref: o,
1482
+ className: w(t, e),
1483
+ ...r
1484
+ })));
1485
+ Dn.displayName = "AlertLink";
1486
+ const On = /* @__PURE__ */ R.forwardRef((t, e) => {
1487
+ const {
1488
+ bsPrefix: n,
1489
+ show: r = !0,
1490
+ closeLabel: o = "Close alert",
1491
+ closeVariant: a,
1492
+ className: i,
1493
+ children: l,
1494
+ variant: c = "primary",
1495
+ onClose: u,
1496
+ dismissible: d,
1497
+ transition: h = Tt,
1498
+ ...m
1499
+ } = rn(t, {
1500
+ show: "onClose"
1501
+ }), g = B(n, "alert"), x = pe((v) => {
1502
+ u && u(!1, v);
1503
+ }), y = h === !0 ? Tt : h, p = /* @__PURE__ */ s.jsxs("div", {
1504
+ role: "alert",
1505
+ ...y ? void 0 : m,
1506
+ ref: e,
1507
+ className: w(i, g, c && `${g}-${c}`, d && `${g}-dismissible`),
1508
+ children: [d && /* @__PURE__ */ s.jsx(lo, {
1509
+ onClick: x,
1510
+ "aria-label": o,
1511
+ variant: a
1512
+ }), l]
1513
+ });
1514
+ return y ? /* @__PURE__ */ s.jsx(y, {
1515
+ unmountOnExit: !0,
1516
+ ...m,
1517
+ ref: void 0,
1518
+ in: r,
1519
+ children: p
1520
+ }) : r ? p : null;
1521
+ });
1522
+ On.displayName = "Alert";
1523
+ const Ms = Object.assign(On, {
1524
+ Link: Dn,
1525
+ Heading: Tn
1526
+ }), Pn = /* @__PURE__ */ R.forwardRef(({
1527
+ as: t,
1528
+ bsPrefix: e,
1529
+ variant: n = "primary",
1530
+ size: r,
1531
+ active: o = !1,
1532
+ disabled: a = !1,
1533
+ className: i,
1534
+ ...l
1535
+ }, c) => {
1536
+ const u = B(e, "btn"), [d, {
1537
+ tagName: h
1538
+ }] = vt({
1539
+ tagName: t,
1540
+ disabled: a,
1541
+ ...l
1542
+ }), m = h;
1543
+ return /* @__PURE__ */ s.jsx(m, {
1544
+ ...d,
1545
+ ...l,
1546
+ ref: c,
1547
+ disabled: a,
1548
+ className: w(i, u, o && "active", n && `${u}-${n}`, r && `${u}-${r}`, l.href && a && "disabled")
1549
+ });
1550
+ });
1551
+ Pn.displayName = "Button";
1552
+ function Fs(t, e) {
1553
+ return R.Children.toArray(t).some((n) => /* @__PURE__ */ R.isValidElement(n) && n.type === e);
1554
+ }
1555
+ function Ws({
1556
+ as: t,
1557
+ bsPrefix: e,
1558
+ className: n,
1559
+ ...r
1560
+ }) {
1561
+ e = B(e, "col");
1562
+ const o = Tr(), a = Er(), i = [], l = [];
1563
+ return o.forEach((c) => {
1564
+ const u = r[c];
1565
+ delete r[c];
1566
+ let d, h, m;
1567
+ typeof u == "object" && u != null ? {
1568
+ span: d,
1569
+ offset: h,
1570
+ order: m
1571
+ } = u : d = u;
1572
+ const g = c !== a ? `-${c}` : "";
1573
+ d && i.push(d === !0 ? `${e}${g}` : `${e}${g}-${d}`), m != null && l.push(`order${g}-${m}`), h != null && l.push(`offset${g}-${h}`);
1574
+ }), [{
1575
+ ...r,
1576
+ className: w(n, ...i, ...l)
1577
+ }, {
1578
+ as: t,
1579
+ bsPrefix: e,
1580
+ spans: i
1581
+ }];
1582
+ }
1583
+ const An = /* @__PURE__ */ R.forwardRef(
1584
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
1585
+ (t, e) => {
1586
+ const [{
1587
+ className: n,
1588
+ ...r
1589
+ }, {
1590
+ as: o = "div",
1591
+ bsPrefix: a,
1592
+ spans: i
1593
+ }] = Ws(t);
1594
+ return /* @__PURE__ */ s.jsx(o, {
1595
+ ...r,
1596
+ ref: e,
1597
+ className: w(n, !i.length && a)
1598
+ });
1599
+ }
1600
+ );
1601
+ An.displayName = "Col";
1602
+ function Rs(t, e, n) {
1603
+ const r = q(t !== void 0), [o, a] = P(e), i = t !== void 0, l = r.current;
1604
+ return r.current = i, !i && l && o !== e && a(e), [i ? t : o, S((...c) => {
1605
+ const [u, ...d] = c;
1606
+ let h = n == null ? void 0 : n(u, ...d);
1607
+ return a(u), h;
1608
+ }, [n])];
1609
+ }
1610
+ function Ls() {
1611
+ const [, t] = pn((e) => !e, !1);
1612
+ return t;
1613
+ }
1614
+ const Je = /* @__PURE__ */ R.createContext(null), Ys = ["children", "usePopper"];
1615
+ function qs(t, e) {
1616
+ if (t == null)
1617
+ return {};
1618
+ var n = {}, r = Object.keys(t), o, a;
1619
+ for (a = 0; a < r.length; a++)
1620
+ o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
1621
+ return n;
1622
+ }
1623
+ const Hs = () => {
1624
+ };
1625
+ function Mn(t = {}) {
1626
+ const e = L(Je), [n, r] = Dr(), o = q(!1), {
1627
+ flip: a,
1628
+ offset: i,
1629
+ rootCloseEvent: l,
1630
+ fixed: c = !1,
1631
+ placement: u,
1632
+ popperConfig: d = {},
1633
+ enableEventListeners: h = !0,
1634
+ usePopper: m = !!e
1635
+ } = t, g = (e == null ? void 0 : e.show) == null ? !!t.show : e.show;
1636
+ g && !o.current && (o.current = !0);
1637
+ const x = (C) => {
1638
+ e == null || e.toggle(!1, C);
1639
+ }, {
1640
+ placement: y,
1641
+ setMenu: p,
1642
+ menuElement: v,
1643
+ toggleElement: j
1644
+ } = e || {}, f = Or(j, v, Pr({
1645
+ placement: u || y || "bottom-start",
1646
+ enabled: m,
1647
+ enableEvents: h ?? g,
1648
+ offset: i,
1649
+ flip: a,
1650
+ fixed: c,
1651
+ arrowElement: n,
1652
+ popperConfig: d
1653
+ })), k = Object.assign({
1654
+ ref: p || Hs,
1655
+ "aria-labelledby": j == null ? void 0 : j.id
1656
+ }, f.attributes.popper, {
1657
+ style: f.styles.popper
1658
+ }), _ = {
1659
+ show: g,
1660
+ placement: y,
1661
+ hasShown: o.current,
1662
+ toggle: e == null ? void 0 : e.toggle,
1663
+ popper: m ? f : null,
1664
+ arrowProps: m ? Object.assign({
1665
+ ref: r
1666
+ }, f.attributes.arrow, {
1667
+ style: f.styles.arrow
1668
+ }) : {}
1669
+ };
1670
+ return Ar(v, x, {
1671
+ clickTrigger: l,
1672
+ disabled: !g
1673
+ }), [k, _];
1674
+ }
1675
+ function Fn(t) {
1676
+ let {
1677
+ children: e,
1678
+ usePopper: n = !0
1679
+ } = t, r = qs(t, Ys);
1680
+ const [o, a] = Mn(Object.assign({}, r, {
1681
+ usePopper: n
1682
+ }));
1683
+ return /* @__PURE__ */ s.jsx(s.Fragment, {
1684
+ children: e(o, a)
1685
+ });
1686
+ }
1687
+ Fn.displayName = "DropdownMenu";
1688
+ const ze = {
1689
+ prefix: String(Math.round(Math.random() * 1e10)),
1690
+ current: 0
1691
+ }, Wn = /* @__PURE__ */ ee.createContext(ze), Bs = /* @__PURE__ */ ee.createContext(!1);
1692
+ let Vs = !!(typeof window < "u" && window.document && window.document.createElement), rt = /* @__PURE__ */ new WeakMap();
1693
+ function Gs(t = !1) {
1694
+ let e = L(Wn), n = q(null);
1695
+ if (n.current === null && !t) {
1696
+ var r, o;
1697
+ let a = (o = ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
1698
+ if (a) {
1699
+ let i = rt.get(a);
1700
+ i == null ? rt.set(a, {
1701
+ id: e.current,
1702
+ state: a.memoizedState
1703
+ }) : a.memoizedState !== i.state && (e.current = i.id, rt.delete(a));
1704
+ }
1705
+ n.current = ++e.current;
1706
+ }
1707
+ return n.current;
1708
+ }
1709
+ function Us(t) {
1710
+ let e = L(Wn);
1711
+ e === ze && !Vs && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
1712
+ let n = Gs(!!t), r = e === ze && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
1713
+ return t || `${r}-${n}`;
1714
+ }
1715
+ function zs(t) {
1716
+ let e = ee.useId(), [n] = P(Zs()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ze.prefix}`;
1717
+ return t || `${r}-${e}`;
1718
+ }
1719
+ const Ks = typeof ee.useId == "function" ? zs : Us;
1720
+ function Qs() {
1721
+ return !1;
1722
+ }
1723
+ function Xs() {
1724
+ return !0;
1725
+ }
1726
+ function Js(t) {
1727
+ return () => {
1728
+ };
1729
+ }
1730
+ function Zs() {
1731
+ return typeof ee.useSyncExternalStore == "function" ? ee.useSyncExternalStore(Js, Qs, Xs) : L(Bs);
1732
+ }
1733
+ const Rn = (t) => {
1734
+ var e;
1735
+ return ((e = t.getAttribute("role")) == null ? void 0 : e.toLowerCase()) === "menu";
1736
+ }, Ht = () => {
1737
+ };
1738
+ function Ln() {
1739
+ const t = Ks(), {
1740
+ show: e = !1,
1741
+ toggle: n = Ht,
1742
+ setToggle: r,
1743
+ menuElement: o
1744
+ } = L(Je) || {}, a = S((l) => {
1745
+ n(!e, l);
1746
+ }, [e, n]), i = {
1747
+ id: t,
1748
+ ref: r || Ht,
1749
+ onClick: a,
1750
+ "aria-expanded": !!e
1751
+ };
1752
+ return o && Rn(o) && (i["aria-haspopup"] = !0), [i, {
1753
+ show: e,
1754
+ toggle: n
1755
+ }];
1756
+ }
1757
+ function Yn({
1758
+ children: t
1759
+ }) {
1760
+ const [e, n] = Ln();
1761
+ return /* @__PURE__ */ s.jsx(s.Fragment, {
1762
+ children: t(e, n)
1763
+ });
1764
+ }
1765
+ Yn.displayName = "DropdownToggle";
1766
+ const lt = /* @__PURE__ */ R.createContext(null), Bt = (t, e = null) => t != null ? String(t) : e || null, qn = /* @__PURE__ */ R.createContext(null);
1767
+ qn.displayName = "NavContext";
1768
+ const ea = ["eventKey", "disabled", "onClick", "active", "as"];
1769
+ function ta(t, e) {
1770
+ if (t == null)
1771
+ return {};
1772
+ var n = {}, r = Object.keys(t), o, a;
1773
+ for (a = 0; a < r.length; a++)
1774
+ o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
1775
+ return n;
1776
+ }
1777
+ function Hn({
1778
+ key: t,
1779
+ href: e,
1780
+ active: n,
1781
+ disabled: r,
1782
+ onClick: o
1783
+ }) {
1784
+ const a = L(lt), i = L(qn), {
1785
+ activeKey: l
1786
+ } = i || {}, c = Bt(t, e), u = n == null && t != null ? Bt(l) === c : n;
1787
+ return [{
1788
+ onClick: pe((h) => {
1789
+ r || (o == null || o(h), a && !h.isPropagationStopped() && a(c, h));
1790
+ }),
1791
+ "aria-disabled": r || void 0,
1792
+ "aria-selected": u,
1793
+ [gn("dropdown-item")]: ""
1794
+ }, {
1795
+ isActive: u
1796
+ }];
1797
+ }
1798
+ const Bn = /* @__PURE__ */ R.forwardRef((t, e) => {
1799
+ let {
1800
+ eventKey: n,
1801
+ disabled: r,
1802
+ onClick: o,
1803
+ active: a,
1804
+ as: i = En
1805
+ } = t, l = ta(t, ea);
1806
+ const [c] = Hn({
1807
+ key: n,
1808
+ href: l.href,
1809
+ disabled: r,
1810
+ onClick: o,
1811
+ active: a
1812
+ });
1813
+ return /* @__PURE__ */ s.jsx(i, Object.assign({}, l, {
1814
+ ref: e
1815
+ }, c));
1816
+ });
1817
+ Bn.displayName = "DropdownItem";
1818
+ function Vt() {
1819
+ const t = Ls(), e = q(null), n = S((r) => {
1820
+ e.current = r, t();
1821
+ }, [t]);
1822
+ return [e, n];
1823
+ }
1824
+ function Fe({
1825
+ defaultShow: t,
1826
+ show: e,
1827
+ onSelect: n,
1828
+ onToggle: r,
1829
+ itemSelector: o = `* [${gn("dropdown-item")}]`,
1830
+ focusFirstItemOnShow: a,
1831
+ placement: i = "bottom-start",
1832
+ children: l
1833
+ }) {
1834
+ const c = Mr(), [u, d] = Rs(e, t, r), [h, m] = Vt(), g = h.current, [x, y] = Vt(), p = x.current, v = uo(u), j = q(null), f = q(!1), k = L(lt), _ = S((b, $, F = $ == null ? void 0 : $.type) => {
1835
+ d(b, {
1836
+ originalEvent: $,
1837
+ source: F
1838
+ });
1839
+ }, [d]), C = pe((b, $) => {
1840
+ n == null || n(b, $), _(!1, $, "select"), $.isPropagationStopped() || k == null || k(b, $);
1841
+ }), N = V(() => ({
1842
+ toggle: _,
1843
+ placement: i,
1844
+ show: u,
1845
+ menuElement: g,
1846
+ toggleElement: p,
1847
+ setMenu: m,
1848
+ setToggle: y
1849
+ }), [_, i, u, g, p, m, y]);
1850
+ g && v && !u && (f.current = g.contains(g.ownerDocument.activeElement));
1851
+ const T = pe(() => {
1852
+ p && p.focus && p.focus();
1853
+ }), E = pe(() => {
1854
+ const b = j.current;
1855
+ let $ = a;
1856
+ if ($ == null && ($ = h.current && Rn(h.current) ? "keyboard" : !1), $ === !1 || $ === "keyboard" && !/^key.+$/.test(b))
1857
+ return;
1858
+ const F = Ot(h.current, o)[0];
1859
+ F && F.focus && F.focus();
1860
+ });
1861
+ O(() => {
1862
+ u ? E() : f.current && (f.current = !1, T());
1863
+ }, [u, f, T, E]), O(() => {
1864
+ j.current = null;
1865
+ });
1866
+ const I = (b, $) => {
1867
+ if (!h.current)
1868
+ return null;
1869
+ const F = Ot(h.current, o);
1870
+ let W = F.indexOf(b) + $;
1871
+ return W = Math.max(0, Math.min(W, F.length)), F[W];
1872
+ };
1873
+ return Ss(S(() => c.document, [c]), "keydown", (b) => {
1874
+ var $, F;
1875
+ const {
1876
+ key: W
1877
+ } = b, ne = b.target, G = ($ = h.current) == null ? void 0 : $.contains(ne), M = (F = x.current) == null ? void 0 : F.contains(ne);
1878
+ if (/input|textarea/i.test(ne.tagName) && (W === " " || W !== "Escape" && G || W === "Escape" && ne.type === "search") || !G && !M || W === "Tab" && (!h.current || !u))
1879
+ return;
1880
+ j.current = b.type;
1881
+ const re = {
1882
+ originalEvent: b,
1883
+ source: b.type
1884
+ };
1885
+ switch (W) {
1886
+ case "ArrowUp": {
1887
+ const Q = I(ne, -1);
1888
+ Q && Q.focus && Q.focus(), b.preventDefault();
1889
+ return;
1890
+ }
1891
+ case "ArrowDown":
1892
+ if (b.preventDefault(), !u)
1893
+ d(!0, re);
1894
+ else {
1895
+ const Q = I(ne, 1);
1896
+ Q && Q.focus && Q.focus();
1897
+ }
1898
+ return;
1899
+ case "Tab":
1900
+ Fr(ne.ownerDocument, "keyup", (Q) => {
1901
+ var D;
1902
+ (Q.key === "Tab" && !Q.target || !((D = h.current) != null && D.contains(Q.target))) && d(!1, re);
1903
+ }, {
1904
+ once: !0
1905
+ });
1906
+ break;
1907
+ case "Escape":
1908
+ W === "Escape" && (b.preventDefault(), b.stopPropagation()), d(!1, re);
1909
+ break;
1910
+ }
1911
+ }), /* @__PURE__ */ s.jsx(lt.Provider, {
1912
+ value: C,
1913
+ children: /* @__PURE__ */ s.jsx(Je.Provider, {
1914
+ value: N,
1915
+ children: l
1916
+ })
1917
+ });
1918
+ }
1919
+ Fe.displayName = "Dropdown";
1920
+ Fe.Menu = Fn;
1921
+ Fe.Toggle = Yn;
1922
+ Fe.Item = Bn;
1923
+ const bt = /* @__PURE__ */ R.createContext({});
1924
+ bt.displayName = "DropdownContext";
1925
+ const Vn = /* @__PURE__ */ R.forwardRef(({
1926
+ className: t,
1927
+ bsPrefix: e,
1928
+ as: n = "hr",
1929
+ role: r = "separator",
1930
+ ...o
1931
+ }, a) => (e = B(e, "dropdown-divider"), /* @__PURE__ */ s.jsx(n, {
1932
+ ref: a,
1933
+ className: w(t, e),
1934
+ role: r,
1935
+ ...o
1936
+ })));
1937
+ Vn.displayName = "DropdownDivider";
1938
+ const Gn = /* @__PURE__ */ R.forwardRef(({
1939
+ className: t,
1940
+ bsPrefix: e,
1941
+ as: n = "div",
1942
+ role: r = "heading",
1943
+ ...o
1944
+ }, a) => (e = B(e, "dropdown-header"), /* @__PURE__ */ s.jsx(n, {
1945
+ ref: a,
1946
+ className: w(t, e),
1947
+ role: r,
1948
+ ...o
1949
+ })));
1950
+ Gn.displayName = "DropdownHeader";
1951
+ const Un = /* @__PURE__ */ R.forwardRef(({
1952
+ bsPrefix: t,
1953
+ className: e,
1954
+ eventKey: n,
1955
+ disabled: r = !1,
1956
+ onClick: o,
1957
+ active: a,
1958
+ as: i = yt,
1959
+ ...l
1960
+ }, c) => {
1961
+ const u = B(t, "dropdown-item"), [d, h] = Hn({
1962
+ key: n,
1963
+ href: l.href,
1964
+ disabled: r,
1965
+ onClick: o,
1966
+ active: a
1967
+ });
1968
+ return /* @__PURE__ */ s.jsx(i, {
1969
+ ...l,
1970
+ ...d,
1971
+ ref: c,
1972
+ className: w(e, u, h.isActive && "active", r && "disabled")
1973
+ });
1974
+ });
1975
+ Un.displayName = "DropdownItem";
1976
+ const zn = /* @__PURE__ */ R.forwardRef(({
1977
+ className: t,
1978
+ bsPrefix: e,
1979
+ as: n = "span",
1980
+ ...r
1981
+ }, o) => (e = B(e, "dropdown-item-text"), /* @__PURE__ */ s.jsx(n, {
1982
+ ref: o,
1983
+ className: w(t, e),
1984
+ ...r
1985
+ })));
1986
+ zn.displayName = "DropdownItemText";
1987
+ const Ze = /* @__PURE__ */ R.createContext(null);
1988
+ Ze.displayName = "InputGroupContext";
1989
+ const Kn = /* @__PURE__ */ R.createContext(null);
1990
+ Kn.displayName = "NavbarContext";
1991
+ function Qn(t, e) {
1992
+ if (process.env.NODE_ENV === "production")
1993
+ return t;
1994
+ const n = S((r) => {
1995
+ r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? qt(!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`) : qt(!1));
1996
+ }, [e]);
1997
+ return mt(n, t);
1998
+ }
1999
+ function Xn(t, e, n) {
2000
+ const r = n ? "top-end" : "top-start", o = n ? "top-start" : "top-end", a = n ? "bottom-end" : "bottom-start", i = n ? "bottom-start" : "bottom-end", l = n ? "right-start" : "left-start", c = n ? "right-end" : "left-end", u = n ? "left-start" : "right-start", d = n ? "left-end" : "right-end";
2001
+ let h = t ? i : a;
2002
+ return e === "up" ? h = t ? o : r : e === "end" ? h = t ? d : u : e === "start" ? h = t ? c : l : e === "down-centered" ? h = "bottom" : e === "up-centered" && (h = "top"), h;
2003
+ }
2004
+ const Jn = /* @__PURE__ */ R.forwardRef(({
2005
+ bsPrefix: t,
2006
+ className: e,
2007
+ align: n,
2008
+ rootCloseEvent: r,
2009
+ flip: o = !0,
2010
+ show: a,
2011
+ renderOnMount: i,
2012
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2013
+ as: l = "div",
2014
+ popperConfig: c,
2015
+ variant: u,
2016
+ ...d
2017
+ }, h) => {
2018
+ let m = !1;
2019
+ const g = L(Kn), x = B(t, "dropdown-menu"), {
2020
+ align: y,
2021
+ drop: p,
2022
+ isRTL: v
2023
+ } = L(bt);
2024
+ n = n || y;
2025
+ const j = L(Ze), f = [];
2026
+ if (n)
2027
+ if (typeof n == "object") {
2028
+ const b = Object.keys(n);
2029
+ if (process.env.NODE_ENV !== "production" && on(b.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), b.length) {
2030
+ const $ = b[0], F = n[$];
2031
+ m = F === "start", f.push(`${x}-${$}-${F}`);
2032
+ }
2033
+ } else
2034
+ n === "end" && (m = !0);
2035
+ const k = Xn(m, p, v), [_, {
2036
+ hasShown: C,
2037
+ popper: N,
2038
+ show: T,
2039
+ toggle: E
2040
+ }] = Mn({
2041
+ flip: o,
2042
+ rootCloseEvent: r,
2043
+ show: a,
2044
+ usePopper: !g && f.length === 0,
2045
+ offset: [0, 2],
2046
+ popperConfig: c,
2047
+ placement: k
2048
+ });
2049
+ if (_.ref = mt(Qn(h, "DropdownMenu"), _.ref), Wr(() => {
2050
+ T && (N == null || N.update());
2051
+ }, [T]), !C && !i && !j)
2052
+ return null;
2053
+ typeof l != "string" && (_.show = T, _.close = () => E == null ? void 0 : E(!1), _.align = n);
2054
+ let I = d.style;
2055
+ return N != null && N.placement && (I = {
2056
+ ...d.style,
2057
+ ..._.style
2058
+ }, d["x-placement"] = N.placement), /* @__PURE__ */ s.jsx(l, {
2059
+ ...d,
2060
+ ..._,
2061
+ style: I,
2062
+ ...(f.length || g) && {
2063
+ "data-bs-popper": "static"
2064
+ },
2065
+ className: w(e, x, T && "show", m && `${x}-end`, u && `${x}-${u}`, ...f)
2066
+ });
2067
+ });
2068
+ Jn.displayName = "DropdownMenu";
2069
+ const Zn = /* @__PURE__ */ R.forwardRef(({
2070
+ bsPrefix: t,
2071
+ split: e,
2072
+ className: n,
2073
+ childBsPrefix: r,
2074
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2075
+ as: o = Pn,
2076
+ ...a
2077
+ }, i) => {
2078
+ const l = B(t, "dropdown-toggle"), c = L(Je);
2079
+ r !== void 0 && (a.bsPrefix = r);
2080
+ const [u] = Ln();
2081
+ return u.ref = mt(u.ref, Qn(i, "DropdownToggle")), /* @__PURE__ */ s.jsx(o, {
2082
+ className: w(n, l, e && `${l}-split`, (c == null ? void 0 : c.show) && "show"),
2083
+ ...u,
2084
+ ...a
2085
+ });
2086
+ });
2087
+ Zn.displayName = "DropdownToggle";
2088
+ const er = /* @__PURE__ */ R.forwardRef((t, e) => {
2089
+ const {
2090
+ bsPrefix: n,
2091
+ drop: r = "down",
2092
+ show: o,
2093
+ className: a,
2094
+ align: i = "start",
2095
+ onSelect: l,
2096
+ onToggle: c,
2097
+ focusFirstItemOnShow: u,
2098
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2099
+ as: d = "div",
2100
+ navbar: h,
2101
+ autoClose: m = !0,
2102
+ ...g
2103
+ } = rn(t, {
2104
+ show: "onToggle"
2105
+ }), x = L(Ze), y = B(n, "dropdown"), p = Rr(), v = (N) => m === !1 ? N === "click" : m === "inside" ? N !== "rootClose" : m === "outside" ? N !== "select" : !0, j = pe((N, T) => {
2106
+ var E, I;
2107
+ !((E = T.originalEvent) == null || (I = E.target) == null) && I.classList.contains("dropdown-toggle") && T.source === "mousedown" || (T.originalEvent.currentTarget === document && (T.source !== "keydown" || T.originalEvent.key === "Escape") && (T.source = "rootClose"), v(T.source) && (c == null || c(N, T)));
2108
+ }), k = Xn(i === "end", r, p), _ = V(() => ({
2109
+ align: i,
2110
+ drop: r,
2111
+ isRTL: p
2112
+ }), [i, r, p]), C = {
2113
+ down: y,
2114
+ "down-centered": `${y}-center`,
2115
+ up: "dropup",
2116
+ "up-centered": "dropup-center dropup",
2117
+ end: "dropend",
2118
+ start: "dropstart"
2119
+ };
2120
+ return /* @__PURE__ */ s.jsx(bt.Provider, {
2121
+ value: _,
2122
+ children: /* @__PURE__ */ s.jsx(Fe, {
2123
+ placement: k,
2124
+ show: o,
2125
+ onSelect: l,
2126
+ onToggle: j,
2127
+ focusFirstItemOnShow: u,
2128
+ itemSelector: `.${y}-item:not(.disabled):not(:disabled)`,
2129
+ children: x ? g.children : /* @__PURE__ */ s.jsx(d, {
2130
+ ...g,
2131
+ ref: e,
2132
+ className: w(a, o && "show", C[r])
2133
+ })
2134
+ })
2135
+ });
2136
+ });
2137
+ er.displayName = "Dropdown";
2138
+ const Me = Object.assign(er, {
2139
+ Toggle: Zn,
2140
+ Menu: Jn,
2141
+ Item: Un,
2142
+ ItemText: zn,
2143
+ Divider: Vn,
2144
+ Header: Gn
2145
+ }), We = /* @__PURE__ */ R.forwardRef(({
2146
+ id: t,
2147
+ bsPrefix: e,
2148
+ className: n,
2149
+ type: r = "checkbox",
2150
+ isValid: o = !1,
2151
+ isInvalid: a = !1,
2152
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2153
+ as: i = "input",
2154
+ ...l
2155
+ }, c) => {
2156
+ const {
2157
+ controlId: u
2158
+ } = L(ke);
2159
+ return e = B(e, "form-check-input"), /* @__PURE__ */ s.jsx(i, {
2160
+ ...l,
2161
+ ref: c,
2162
+ type: r,
2163
+ id: t || u,
2164
+ className: w(n, e, o && "is-valid", a && "is-invalid")
2165
+ });
2166
+ });
2167
+ We.displayName = "FormCheckInput";
2168
+ const Ke = /* @__PURE__ */ R.forwardRef(({
2169
+ bsPrefix: t,
2170
+ className: e,
2171
+ htmlFor: n,
2172
+ ...r
2173
+ }, o) => {
2174
+ const {
2175
+ controlId: a
2176
+ } = L(ke);
2177
+ return t = B(t, "form-check-label"), /* @__PURE__ */ s.jsx("label", {
2178
+ ...r,
2179
+ ref: o,
2180
+ htmlFor: n || a,
2181
+ className: w(e, t)
2182
+ });
2183
+ });
2184
+ Ke.displayName = "FormCheckLabel";
2185
+ const tr = /* @__PURE__ */ R.forwardRef(({
2186
+ id: t,
2187
+ bsPrefix: e,
2188
+ bsSwitchPrefix: n,
2189
+ inline: r = !1,
2190
+ reverse: o = !1,
2191
+ disabled: a = !1,
2192
+ isValid: i = !1,
2193
+ isInvalid: l = !1,
2194
+ feedbackTooltip: c = !1,
2195
+ feedback: u,
2196
+ feedbackType: d,
2197
+ className: h,
2198
+ style: m,
2199
+ title: g = "",
2200
+ type: x = "checkbox",
2201
+ label: y,
2202
+ children: p,
2203
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2204
+ as: v = "input",
2205
+ ...j
2206
+ }, f) => {
2207
+ e = B(e, "form-check"), n = B(n, "form-switch");
2208
+ const {
2209
+ controlId: k
2210
+ } = L(ke), _ = V(() => ({
2211
+ controlId: t || k
2212
+ }), [k, t]), C = !p && y != null && y !== !1 || Fs(p, Ke), N = /* @__PURE__ */ s.jsx(We, {
2213
+ ...j,
2214
+ type: x === "switch" ? "checkbox" : x,
2215
+ ref: f,
2216
+ isValid: i,
2217
+ isInvalid: l,
2218
+ disabled: a,
2219
+ as: v
2220
+ });
2221
+ return /* @__PURE__ */ s.jsx(ke.Provider, {
2222
+ value: _,
2223
+ children: /* @__PURE__ */ s.jsx("div", {
2224
+ style: m,
2225
+ className: w(h, C && e, r && `${e}-inline`, o && `${e}-reverse`, x === "switch" && n),
2226
+ children: p || /* @__PURE__ */ s.jsxs(s.Fragment, {
2227
+ children: [N, C && /* @__PURE__ */ s.jsx(Ke, {
2228
+ title: g,
2229
+ children: y
2230
+ }), u && /* @__PURE__ */ s.jsx(ho, {
2231
+ type: d,
2232
+ tooltip: c,
2233
+ children: u
2234
+ })]
2235
+ })
2236
+ })
2237
+ });
2238
+ });
2239
+ tr.displayName = "FormCheck";
2240
+ const Qe = Object.assign(tr, {
2241
+ Input: We,
2242
+ Label: Ke
2243
+ }), nr = /* @__PURE__ */ R.forwardRef(({
2244
+ className: t,
2245
+ bsPrefix: e,
2246
+ as: n = "div",
2247
+ ...r
2248
+ }, o) => (e = B(e, "form-floating"), /* @__PURE__ */ s.jsx(n, {
2249
+ ref: o,
2250
+ className: w(t, e),
2251
+ ...r
2252
+ })));
2253
+ nr.displayName = "FormFloating";
2254
+ const rr = /* @__PURE__ */ R.forwardRef(({
2255
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2256
+ as: t = "label",
2257
+ bsPrefix: e,
2258
+ column: n = !1,
2259
+ visuallyHidden: r = !1,
2260
+ className: o,
2261
+ htmlFor: a,
2262
+ ...i
2263
+ }, l) => {
2264
+ const {
2265
+ controlId: c
2266
+ } = L(ke);
2267
+ e = B(e, "form-label");
2268
+ let u = "col-form-label";
2269
+ typeof n == "string" && (u = `${u} ${u}-${n}`);
2270
+ const d = w(o, e, r && "visually-hidden", n && u);
2271
+ return process.env.NODE_ENV !== "production" && on(c == null || !a, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), a = a || c, n ? /* @__PURE__ */ s.jsx(An, {
2272
+ ref: l,
2273
+ as: "label",
2274
+ className: d,
2275
+ htmlFor: a,
2276
+ ...i
2277
+ }) : (
2278
+ // eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
2279
+ /* @__PURE__ */ s.jsx(t, {
2280
+ ref: l,
2281
+ className: d,
2282
+ htmlFor: a,
2283
+ ...i
2284
+ })
2285
+ );
2286
+ });
2287
+ rr.displayName = "FormLabel";
2288
+ const or = /* @__PURE__ */ R.forwardRef(({
2289
+ bsPrefix: t,
2290
+ className: e,
2291
+ id: n,
2292
+ ...r
2293
+ }, o) => {
2294
+ const {
2295
+ controlId: a
2296
+ } = L(ke);
2297
+ return t = B(t, "form-range"), /* @__PURE__ */ s.jsx("input", {
2298
+ ...r,
2299
+ type: "range",
2300
+ ref: o,
2301
+ className: w(e, t),
2302
+ id: n || a
2303
+ });
2304
+ });
2305
+ or.displayName = "FormRange";
2306
+ const sr = /* @__PURE__ */ R.forwardRef(({
2307
+ bsPrefix: t,
2308
+ size: e,
2309
+ htmlSize: n,
2310
+ className: r,
2311
+ isValid: o = !1,
2312
+ isInvalid: a = !1,
2313
+ id: i,
2314
+ ...l
2315
+ }, c) => {
2316
+ const {
2317
+ controlId: u
2318
+ } = L(ke);
2319
+ return t = B(t, "form-select"), /* @__PURE__ */ s.jsx("select", {
2320
+ ...l,
2321
+ size: n,
2322
+ ref: c,
2323
+ className: w(r, t, e && `${t}-${e}`, o && "is-valid", a && "is-invalid"),
2324
+ id: i || u
2325
+ });
2326
+ });
2327
+ sr.displayName = "FormSelect";
2328
+ const ar = /* @__PURE__ */ R.forwardRef(
2329
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2330
+ ({
2331
+ bsPrefix: t,
2332
+ className: e,
2333
+ as: n = "small",
2334
+ muted: r,
2335
+ ...o
2336
+ }, a) => (t = B(t, "form-text"), /* @__PURE__ */ s.jsx(n, {
2337
+ ...o,
2338
+ ref: a,
2339
+ className: w(e, t, r && "text-muted")
2340
+ }))
2341
+ );
2342
+ ar.displayName = "FormText";
2343
+ const ir = /* @__PURE__ */ R.forwardRef((t, e) => /* @__PURE__ */ s.jsx(Qe, {
2344
+ ...t,
2345
+ ref: e,
2346
+ type: "switch"
2347
+ }));
2348
+ ir.displayName = "Switch";
2349
+ const na = Object.assign(ir, {
2350
+ Input: Qe.Input,
2351
+ Label: Qe.Label
2352
+ }), ra = {
2353
+ /**
2354
+ * The Form `ref` will be forwarded to the underlying element,
2355
+ * which means, unless it's rendered `as` a composite component,
2356
+ * it will be a DOM node, when resolved.
2357
+ *
2358
+ * @type {ReactRef}
2359
+ * @alias ref
2360
+ */
2361
+ _ref: je.any,
2362
+ /**
2363
+ * Mark a form as having been validated. Setting it to `true` will
2364
+ * toggle any validation styles on the forms elements.
2365
+ */
2366
+ validated: je.bool,
2367
+ as: je.elementType
2368
+ }, _t = /* @__PURE__ */ R.forwardRef(({
2369
+ className: t,
2370
+ validated: e,
2371
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2372
+ as: n = "form",
2373
+ ...r
2374
+ }, o) => /* @__PURE__ */ s.jsx(n, {
2375
+ ...r,
2376
+ ref: o,
2377
+ className: w(t, e && "was-validated")
2378
+ }));
2379
+ _t.displayName = "Form";
2380
+ _t.propTypes = ra;
2381
+ const J = Object.assign(_t, {
2382
+ Group: Lr,
2383
+ Control: wn,
2384
+ Floating: nr,
2385
+ Check: Qe,
2386
+ Switch: na,
2387
+ Label: rr,
2388
+ Text: ar,
2389
+ Range: or,
2390
+ Select: sr,
2391
+ FloatingLabel: Yr
2392
+ }), et = /* @__PURE__ */ R.forwardRef(({
2393
+ className: t,
2394
+ bsPrefix: e,
2395
+ as: n = "span",
2396
+ ...r
2397
+ }, o) => (e = B(e, "input-group-text"), /* @__PURE__ */ s.jsx(n, {
2398
+ ref: o,
2399
+ className: w(t, e),
2400
+ ...r
2401
+ })));
2402
+ et.displayName = "InputGroupText";
2403
+ const oa = (t) => /* @__PURE__ */ s.jsx(et, {
2404
+ children: /* @__PURE__ */ s.jsx(We, {
2405
+ type: "checkbox",
2406
+ ...t
2407
+ })
2408
+ }), sa = (t) => /* @__PURE__ */ s.jsx(et, {
2409
+ children: /* @__PURE__ */ s.jsx(We, {
2410
+ type: "radio",
2411
+ ...t
2412
+ })
2413
+ }), cr = /* @__PURE__ */ R.forwardRef(({
2414
+ bsPrefix: t,
2415
+ size: e,
2416
+ hasValidation: n,
2417
+ className: r,
2418
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2419
+ as: o = "div",
2420
+ ...a
2421
+ }, i) => {
2422
+ t = B(t, "input-group");
2423
+ const l = V(() => ({}), []);
2424
+ return /* @__PURE__ */ s.jsx(Ze.Provider, {
2425
+ value: l,
2426
+ children: /* @__PURE__ */ s.jsx(o, {
2427
+ ref: i,
2428
+ ...a,
2429
+ className: w(r, t, e && `${t}-${e}`, n && "has-validation")
2430
+ })
2431
+ });
2432
+ });
2433
+ cr.displayName = "InputGroup";
2434
+ const ot = Object.assign(cr, {
2435
+ Text: et,
2436
+ Radio: sa,
2437
+ Checkbox: oa
2438
+ }), jt = /* @__PURE__ */ R.forwardRef(({
2439
+ bsPrefix: t,
2440
+ variant: e,
2441
+ animation: n = "border",
2442
+ size: r,
2443
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2444
+ as: o = "div",
2445
+ className: a,
2446
+ ...i
2447
+ }, l) => {
2448
+ t = B(t, "spinner");
2449
+ const c = `${t}-${n}`;
2450
+ return /* @__PURE__ */ s.jsx(o, {
2451
+ ref: l,
2452
+ ...i,
2453
+ className: w(a, c, r && `${c}-${r}`, e && `text-${e}`)
2454
+ });
2455
+ });
2456
+ jt.displayName = "Spinner";
2457
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2458
+ const lr = "client_info_decoding_error", ur = "client_info_empty_error", aa = "token_parsing_error", ia = "null_or_empty_token", ca = "endpoints_resolution_error", la = "network_error", ua = "openid_config_error", da = "hash_not_deserialized", ha = "invalid_state", fa = "state_mismatch", ma = "state_not_found", pa = "nonce_mismatch", ga = "auth_time_not_found", wa = "max_age_transpired", xa = "multiple_matching_tokens", va = "multiple_matching_accounts", ya = "multiple_matching_appMetadata", ba = "request_cannot_be_made", _a = "cannot_remove_empty_scope", ja = "cannot_append_scopeset", ka = "empty_input_scopeset", Na = "device_code_polling_cancelled", Ca = "device_code_expired", $a = "device_code_unknown_error", Ia = "no_account_in_silent_request", Sa = "invalid_cache_record", dr = "invalid_cache_environment", Ta = "no_account_found", Ea = "no_crypto_object", Da = "unexpected_credential_type", Oa = "invalid_assertion", Pa = "invalid_client_credential", Aa = "token_refresh_required", Ma = "user_timeout_reached", Fa = "token_claims_cnf_required_for_signedjwt", Wa = "authorization_code_missing_from_server_response", Ra = "binding_key_not_removed", La = "end_session_endpoint_not_supported", Ya = "key_id_missing", qa = "no_network_connectivity", Ha = "user_canceled", Ba = "missing_tenant_id_error", Va = "method_not_implemented", Ga = "nested_app_auth_bridge_disabled";
2459
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2460
+ const Gt = {
2461
+ [lr]: "The client info could not be parsed/decoded correctly",
2462
+ [ur]: "The client info was empty",
2463
+ [aa]: "Token cannot be parsed",
2464
+ [ia]: "The token is null or empty",
2465
+ [ca]: "Endpoints cannot be resolved",
2466
+ [la]: "Network request failed",
2467
+ [ua]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
2468
+ [da]: "The hash parameters could not be deserialized",
2469
+ [ha]: "State was not the expected format",
2470
+ [fa]: "State mismatch error",
2471
+ [ma]: "State not found",
2472
+ [pa]: "Nonce mismatch error",
2473
+ [ga]: "Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",
2474
+ [wa]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
2475
+ [xa]: "The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",
2476
+ [va]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
2477
+ [ya]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
2478
+ [ba]: "Token request cannot be made without authorization code or refresh token.",
2479
+ [_a]: "Cannot remove null or empty scope from ScopeSet",
2480
+ [ja]: "Cannot append ScopeSet",
2481
+ [ka]: "Empty input ScopeSet cannot be processed",
2482
+ [Na]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
2483
+ [Ca]: "Device code is expired.",
2484
+ [$a]: "Device code stopped polling for unknown reasons.",
2485
+ [Ia]: "Please pass an account object, silent flow is not supported without account information",
2486
+ [Sa]: "Cache record object was null or undefined.",
2487
+ [dr]: "Invalid environment when attempting to create cache entry",
2488
+ [Ta]: "No account found in cache for given key.",
2489
+ [Ea]: "No crypto object detected.",
2490
+ [Da]: "Unexpected credential type.",
2491
+ [Oa]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
2492
+ [Pa]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
2493
+ [Aa]: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",
2494
+ [Ma]: "User defined timeout for device code polling reached",
2495
+ [Fa]: "Cannot generate a POP jwt if the token_claims are not populated",
2496
+ [Wa]: "Server response does not contain an authorization code to proceed",
2497
+ [Ra]: "Could not remove the credential's binding key from storage.",
2498
+ [La]: "The provided authority does not support logout",
2499
+ [Ya]: "A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",
2500
+ [qa]: "No network connectivity. Check your internet connection.",
2501
+ [Ha]: "User cancelled the flow.",
2502
+ [Ba]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
2503
+ [Va]: "This method has not been implemented",
2504
+ [Ga]: "The nested app auth bridge is disabled"
2505
+ };
2506
+ class kt extends sn {
2507
+ constructor(e, n) {
2508
+ super(e, n ? `${Gt[e]}: ${n}` : Gt[e]), this.name = "ClientAuthError", Object.setPrototypeOf(this, kt.prototype);
2509
+ }
2510
+ }
2511
+ function ut(t, e) {
2512
+ return new kt(t, e);
2513
+ }
2514
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2515
+ function Ut(t, e) {
2516
+ if (!t)
2517
+ throw ut(ur);
2518
+ try {
2519
+ const n = e(t);
2520
+ return JSON.parse(n);
2521
+ } catch {
2522
+ throw ut(lr);
2523
+ }
2524
+ }
2525
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2526
+ function Ua(t, e) {
2527
+ return !!t && !!e && t === e.split(".")[1];
2528
+ }
2529
+ function za(t, e) {
2530
+ const { oid: n, sub: r, tid: o, name: a, tfp: i, acr: l } = e, c = o || i || l || "";
2531
+ return {
2532
+ tenantId: c,
2533
+ localAccountId: n || r || "",
2534
+ name: a,
2535
+ isHomeTenant: Ua(c, t)
2536
+ };
2537
+ }
2538
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2539
+ const st = {
2540
+ Default: 0,
2541
+ Adfs: 1,
2542
+ Dsts: 2,
2543
+ Ciam: 3
2544
+ };
2545
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2546
+ function Ka(t) {
2547
+ return t && (t.tid || t.tfp || t.acr) || null;
2548
+ }
2549
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2550
+ const Qa = {
2551
+ AAD: "AAD",
2552
+ OIDC: "OIDC"
2553
+ };
2554
+ /*! @azure/msal-common v14.10.0 2024-05-07 */
2555
+ class Pe {
2556
+ /**
2557
+ * Generate Account Id key component as per the schema: <home_account_id>-<environment>
2558
+ */
2559
+ generateAccountId() {
2560
+ return [this.homeAccountId, this.environment].join(Et.CACHE_KEY_SEPARATOR).toLowerCase();
2561
+ }
2562
+ /**
2563
+ * Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>
2564
+ */
2565
+ generateAccountKey() {
2566
+ return Pe.generateAccountCacheKey({
2567
+ homeAccountId: this.homeAccountId,
2568
+ environment: this.environment,
2569
+ tenantId: this.realm,
2570
+ username: this.username,
2571
+ localAccountId: this.localAccountId
2572
+ });
2573
+ }
2574
+ /**
2575
+ * Returns the AccountInfo interface for this account.
2576
+ */
2577
+ getAccountInfo() {
2578
+ return {
2579
+ homeAccountId: this.homeAccountId,
2580
+ environment: this.environment,
2581
+ tenantId: this.realm,
2582
+ username: this.username,
2583
+ localAccountId: this.localAccountId,
2584
+ name: this.name,
2585
+ nativeAccountId: this.nativeAccountId,
2586
+ authorityType: this.authorityType,
2587
+ // Deserialize tenant profiles array into a Map
2588
+ tenantProfiles: new Map((this.tenantProfiles || []).map((e) => [e.tenantId, e]))
2589
+ };
2590
+ }
2591
+ /**
2592
+ * Returns true if the account entity is in single tenant format (outdated), false otherwise
2593
+ */
2594
+ isSingleTenant() {
2595
+ return !this.tenantProfiles;
2596
+ }
2597
+ /**
2598
+ * Generates account key from interface
2599
+ * @param accountInterface
2600
+ */
2601
+ static generateAccountCacheKey(e) {
2602
+ const n = e.homeAccountId.split(".")[1];
2603
+ return [
2604
+ e.homeAccountId,
2605
+ e.environment || "",
2606
+ n || e.tenantId || ""
2607
+ ].join(Et.CACHE_KEY_SEPARATOR).toLowerCase();
2608
+ }
2609
+ /**
2610
+ * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
2611
+ * @param accountDetails
2612
+ */
2613
+ static createAccount(e, n, r) {
2614
+ const o = new Pe();
2615
+ n.authorityType === st.Adfs ? o.authorityType = Le.ADFS_ACCOUNT_TYPE : n.protocolMode === Qa.AAD ? o.authorityType = Le.MSSTS_ACCOUNT_TYPE : o.authorityType = Le.GENERIC_ACCOUNT_TYPE;
2616
+ let a;
2617
+ e.clientInfo && r && (a = Ut(e.clientInfo, r)), o.clientInfo = e.clientInfo, o.homeAccountId = e.homeAccountId, o.nativeAccountId = e.nativeAccountId;
2618
+ const i = e.environment || n && n.getPreferredCache();
2619
+ if (!i)
2620
+ throw ut(dr);
2621
+ o.environment = i, o.realm = (a == null ? void 0 : a.utid) || Ka(e.idTokenClaims) || "", o.localAccountId = (a == null ? void 0 : a.uid) || e.idTokenClaims.oid || e.idTokenClaims.sub || "";
2622
+ const l = e.idTokenClaims.preferred_username || e.idTokenClaims.upn, c = e.idTokenClaims.emails ? e.idTokenClaims.emails[0] : null;
2623
+ if (o.username = l || c || "", o.name = e.idTokenClaims.name, o.cloudGraphHostName = e.cloudGraphHostName, o.msGraphHost = e.msGraphHost, e.tenantProfiles)
2624
+ o.tenantProfiles = e.tenantProfiles;
2625
+ else {
2626
+ const u = [];
2627
+ if (e.idTokenClaims) {
2628
+ const d = za(e.homeAccountId, e.idTokenClaims);
2629
+ u.push(d);
2630
+ }
2631
+ o.tenantProfiles = u;
2632
+ }
2633
+ return o;
2634
+ }
2635
+ /**
2636
+ * Creates an AccountEntity object from AccountInfo
2637
+ * @param accountInfo
2638
+ * @param cloudGraphHostName
2639
+ * @param msGraphHost
2640
+ * @returns
2641
+ */
2642
+ static createFromAccountInfo(e, n, r) {
2643
+ var a;
2644
+ const o = new Pe();
2645
+ return o.authorityType = e.authorityType || Le.GENERIC_ACCOUNT_TYPE, o.homeAccountId = e.homeAccountId, o.localAccountId = e.localAccountId, o.nativeAccountId = e.nativeAccountId, o.realm = e.tenantId, o.environment = e.environment, o.username = e.username, o.name = e.name, o.cloudGraphHostName = n, o.msGraphHost = r, o.tenantProfiles = Array.from(((a = e.tenantProfiles) == null ? void 0 : a.values()) || []), o;
2646
+ }
2647
+ /**
2648
+ * Generate HomeAccountId from server response
2649
+ * @param serverClientInfo
2650
+ * @param authType
2651
+ */
2652
+ static generateHomeAccountId(e, n, r, o, a) {
2653
+ if (!(n === st.Adfs || n === st.Dsts)) {
2654
+ if (e)
2655
+ try {
2656
+ const i = Ut(e, o.base64Decode);
2657
+ if (i.uid && i.utid)
2658
+ return `${i.uid}.${i.utid}`;
2659
+ } catch {
2660
+ }
2661
+ r.warning("No client info in response");
2662
+ }
2663
+ return (a == null ? void 0 : a.sub) || "";
2664
+ }
2665
+ /**
2666
+ * Validates an entity: checks for all expected params
2667
+ * @param entity
2668
+ */
2669
+ static isAccountEntity(e) {
2670
+ return e ? e.hasOwnProperty("homeAccountId") && e.hasOwnProperty("environment") && e.hasOwnProperty("realm") && e.hasOwnProperty("localAccountId") && e.hasOwnProperty("username") && e.hasOwnProperty("authorityType") : !1;
2671
+ }
2672
+ /**
2673
+ * Helper function to determine whether 2 accountInfo objects represent the same account
2674
+ * @param accountA
2675
+ * @param accountB
2676
+ * @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
2677
+ */
2678
+ static accountInfoIsEqual(e, n, r) {
2679
+ if (!e || !n)
2680
+ return !1;
2681
+ let o = !0;
2682
+ if (r) {
2683
+ const a = e.idTokenClaims || {}, i = n.idTokenClaims || {};
2684
+ o = a.iat === i.iat && a.nonce === i.nonce;
2685
+ }
2686
+ return e.homeAccountId === n.homeAccountId && e.localAccountId === n.localAccountId && e.username === n.username && e.tenantId === n.tenantId && e.environment === n.environment && e.nativeAccountId === n.nativeAccountId && o;
2687
+ }
2688
+ }
2689
+ /*! @azure/msal-react v2.0.16 2024-05-07 */
2690
+ function zt(t, e) {
2691
+ return !e || !e.homeAccountId && !e.localAccountId && !e.username ? t.getActiveAccount() : qr(t.getAllAccounts(), e);
2692
+ }
2693
+ function Xa(t) {
2694
+ const { instance: e, inProgress: n, logger: r } = pt(), [o, a] = P(() => zt(e, t));
2695
+ return O(() => {
2696
+ a((i) => {
2697
+ const l = zt(e, t);
2698
+ return Pe.accountInfoIsEqual(i, l, !0) ? i : (r.info("useAccount - Updating account"), l);
2699
+ });
2700
+ }, [n, t, e, r]), o;
2701
+ }
2702
+ /*! @azure/msal-react v2.0.16 2024-05-07 */
2703
+ const He = {
2704
+ invalidInteractionType: {
2705
+ code: "invalid_interaction_type",
2706
+ desc: "The provided interaction type is invalid."
2707
+ },
2708
+ unableToFallbackToInteraction: {
2709
+ code: "unable_to_fallback_to_interaction",
2710
+ desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
2711
+ }
2712
+ };
2713
+ class $e extends sn {
2714
+ constructor(e, n) {
2715
+ super(e, n), Object.setPrototypeOf(this, $e.prototype), this.name = "ReactAuthError";
2716
+ }
2717
+ static createInvalidInteractionTypeError() {
2718
+ return new $e(He.invalidInteractionType.code, He.invalidInteractionType.desc);
2719
+ }
2720
+ static createUnableToFallbackToInteractionError() {
2721
+ return new $e(He.unableToFallbackToInteraction.code, He.unableToFallbackToInteraction.desc);
2722
+ }
2723
+ }
2724
+ /*! @azure/msal-react v2.0.16 2024-05-07 */
2725
+ function Ja(t, e, n) {
2726
+ const { instance: r, inProgress: o, logger: a } = pt(), i = an(n), l = Xa(n), [[c, u], d] = P([null, null]), h = q(!0);
2727
+ O(() => () => {
2728
+ h.current = !1;
2729
+ }, []);
2730
+ const m = q(o !== Oe.None);
2731
+ O(() => {
2732
+ m.current = o !== Oe.None;
2733
+ }, [o]);
2734
+ const g = q(!0);
2735
+ O(() => {
2736
+ if (u) {
2737
+ g.current = !1;
2738
+ return;
2739
+ }
2740
+ if (c) {
2741
+ g.current = !1;
2742
+ return;
2743
+ }
2744
+ }, [u, c]);
2745
+ const x = S(async (p, v) => {
2746
+ const j = p || t, f = v || e;
2747
+ switch (j) {
2748
+ case Ve.Popup:
2749
+ return a.verbose("useMsalAuthentication - Calling loginPopup"), r.loginPopup(f);
2750
+ case Ve.Redirect:
2751
+ return a.verbose("useMsalAuthentication - Calling loginRedirect"), r.loginRedirect(f).then(null);
2752
+ case Ve.Silent:
2753
+ return a.verbose("useMsalAuthentication - Calling ssoSilent"), r.ssoSilent(f);
2754
+ default:
2755
+ throw $e.createInvalidInteractionTypeError();
2756
+ }
2757
+ }, [r, t, e, a]), y = S(async (p, v) => {
2758
+ const j = p || t;
2759
+ let f;
2760
+ return v ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), f = {
2761
+ ...v
2762
+ }) : e ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the hook"), f = {
2763
+ ...e,
2764
+ scopes: e.scopes || Dt
2765
+ }) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), f = {
2766
+ scopes: Dt
2767
+ }), !f.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), f.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), r.acquireTokenSilent(f).catch(async (_) => {
2768
+ if (_ instanceof Hr) {
2769
+ if (m.current)
2770
+ throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), $e.createUnableToFallbackToInteractionError();
2771
+ return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), x(j, f);
2772
+ }
2773
+ throw _;
2774
+ })))().then((_) => (h.current && d([_, null]), _)).catch((_) => {
2775
+ throw h.current && d([null, _]), _;
2776
+ });
2777
+ }, [
2778
+ r,
2779
+ t,
2780
+ e,
2781
+ a,
2782
+ l,
2783
+ x
2784
+ ]);
2785
+ return O(() => {
2786
+ const p = r.addEventCallback((v) => {
2787
+ switch (v.eventType) {
2788
+ case Ye.LOGIN_SUCCESS:
2789
+ case Ye.SSO_SILENT_SUCCESS:
2790
+ v.payload && d([
2791
+ v.payload,
2792
+ null
2793
+ ]);
2794
+ break;
2795
+ case Ye.LOGIN_FAILURE:
2796
+ case Ye.SSO_SILENT_FAILURE:
2797
+ v.error && d([null, v.error]);
2798
+ break;
2799
+ }
2800
+ });
2801
+ return a.verbose(`useMsalAuthentication - Registered event callback with id: ${p}`), () => {
2802
+ p && (a.verbose(`useMsalAuthentication - Removing event callback ${p}`), r.removeEventCallback(p));
2803
+ };
2804
+ }, [r, a]), O(() => {
2805
+ g.current && o === Oe.None && (g.current = !1, i ? l && (a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), y().catch(() => {
2806
+ })) : (a.info("useMsalAuthentication - No user is authenticated, attempting to login"), x().catch(() => {
2807
+ })));
2808
+ }, [i, l, o, x, y, a]), {
2809
+ login: x,
2810
+ acquireToken: y,
2811
+ result: c,
2812
+ error: u
2813
+ };
2814
+ }
2815
+ /*! @azure/msal-react v2.0.16 2024-05-07 */
2816
+ function Za({ interactionType: t, username: e, homeAccountId: n, localAccountId: r, authenticationRequest: o, loadingComponent: a, errorComponent: i, children: l }) {
2817
+ const c = V(() => ({
2818
+ username: e,
2819
+ homeAccountId: n,
2820
+ localAccountId: r
2821
+ }), [e, n, r]), u = pt(), d = Ja(t, o, c), h = an(c);
2822
+ if (d.error && u.inProgress === Oe.None) {
2823
+ if (i)
2824
+ return ee.createElement(i, { ...d });
2825
+ throw d.error;
2826
+ }
2827
+ return h ? ee.createElement(ee.Fragment, null, Br(l, d)) : a && u.inProgress !== Oe.None ? ee.createElement(a, { ...u }) : null;
2828
+ }
2829
+ const ei = ({ children: t, onStorno: e, noSpacer: n }) => {
2830
+ const { formSubmitTexts: r } = L(le);
2831
+ return /* @__PURE__ */ s.jsxs(sl, { noSpacer: n, children: [
2832
+ /* @__PURE__ */ s.jsxs(Pt, { as: "button", color: "primary", size: "lg", type: "submit", children: [
2833
+ /* @__PURE__ */ s.jsx(Vr, {}),
2834
+ t
2835
+ ] }),
2836
+ e && /* @__PURE__ */ s.jsxs(Pt, { as: "button", color: "secondary", variant: "outlined", size: "lg", onClick: e, children: [
2837
+ /* @__PURE__ */ s.jsx(Gr, {}),
2838
+ r.storno
2839
+ ] })
2840
+ ] });
2841
+ }, ti = "_button_1r3i0_1", dt = {
2842
+ button: ti
2843
+ }, ht = ({
2844
+ color: t = "primary",
2845
+ // icon = <MdOutlineArrowOutward size={10} />,
2846
+ icon: e,
2847
+ className: n,
2848
+ children: r,
2849
+ ...o
2850
+ }) => {
2851
+ const { LinkComponent: a } = L(le);
2852
+ return o.as === "link" ? /* @__PURE__ */ s.jsxs(a, { to: o.href ?? "/", className: w(`luminus-context-button btn text-${t} ${n ?? ""}`, dt.button), ...o, children: [
2853
+ e,
2854
+ r
2855
+ ] }) : o.as === "button" || o.as === void 0 ? /* @__PURE__ */ s.jsxs("button", { type: "button", className: w(`luminus-context-button btn text-${t} ${n ?? ""}`, dt.button), ...o, children: [
2856
+ e,
2857
+ r
2858
+ ] }) : null;
2859
+ }, hr = ({ color: t = "primary", icon: e = /* @__PURE__ */ s.jsx(cn, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, className: a, children: i, multiple: l, ...c }) => {
2860
+ const u = (d) => {
2861
+ d.target.files && (o(d.target.files), d.target.value = "");
2862
+ };
2863
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2864
+ /* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: w(`luminus-context-button btn text-${t} ${a ?? ""}`, dt.button), ...c, children: [
2865
+ e,
2866
+ i
2867
+ ] }),
2868
+ /* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: l })
2869
+ ] });
2870
+ }, ni = "_icon-button_15e26_1", ri = "_sm_15e26_14", oi = "_md_15e26_23", si = "_lg_15e26_32", Be = {
2871
+ "icon-button": "_icon-button_15e26_1",
2872
+ iconButton: ni,
2873
+ sm: ri,
2874
+ md: oi,
2875
+ lg: si
2876
+ }, z = ({ type: t = "button", color: e = "primary", size: n = "md", children: r, className: o, ...a }) => {
2877
+ const { LinkComponent: i } = L(le);
2878
+ return a.as === "link" ? /* @__PURE__ */ s.jsx(i, { to: a.href ?? "/", className: w(`luminus-icon-button btn text-${e} ${o ?? ""}`, Be.iconButton, Be[n]), ...a, children: r }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ s.jsx(
2879
+ "button",
2880
+ {
2881
+ type: t,
2882
+ className: w(`luminus-icon-button btn text-${e} ${o ?? ""}`, Be.iconButton, Be[n]),
2883
+ ...a,
2884
+ children: r
2885
+ }
2886
+ ) : null;
2887
+ }, ai = "_select_dlv1t_1", at = {
2888
+ select: ai
2889
+ }, jl = ({ month: t, onChangeMonth: e, locale: n, yearMin: r = 2e3, yearMax: o = 2050 }) => {
2890
+ const a = S((c) => {
2891
+ const u = jn(t, c);
2892
+ u.getFullYear() < r || u.getFullYear() > o || e(u);
2893
+ }, [t, e, r, o]), i = V(() => {
2894
+ const c = [];
2895
+ for (let u = r; u <= o; u++)
2896
+ c.push(u);
2897
+ return c;
2898
+ }, [r, o]), l = V(() => {
2899
+ const d = [];
2900
+ for (let h = 0; h <= 11; h++)
2901
+ d.push({
2902
+ id: h,
2903
+ name: ct(new Date(2024, h, 1), "LLLL", { locale: n })
2904
+ });
2905
+ return d;
2906
+ }, [n]);
2907
+ return /* @__PURE__ */ s.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
2908
+ /* @__PURE__ */ s.jsx(z, { onClick: () => a(-1), disabled: t.getFullYear() < r || t.getFullYear() === r && t.getMonth() <= 0, children: /* @__PURE__ */ s.jsx(gt, {}) }),
2909
+ /* @__PURE__ */ s.jsx(J.Select, { value: t.getMonth(), onChange: (c) => {
2910
+ var u;
2911
+ return ((u = c.target) == null ? void 0 : u.value) && e(js(t, Number(c.target.value)));
2912
+ }, className: w(at.select, at.month), children: l.map((c) => /* @__PURE__ */ s.jsx("option", { value: c.id, children: c.name }, c.id)) }),
2913
+ /* @__PURE__ */ s.jsx(J.Select, { value: t.getFullYear(), onChange: (c) => {
2914
+ var u;
2915
+ return ((u = c.target) == null ? void 0 : u.value) && e($n(t, Number(c.target.value)));
2916
+ }, className: w(at.select), children: i.map((c) => /* @__PURE__ */ s.jsx("option", { value: c, children: c }, c)) }),
2917
+ /* @__PURE__ */ s.jsx(z, { onClick: () => a(1), disabled: t.getFullYear() > o || t.getFullYear() === o && t.getMonth() >= 11, children: /* @__PURE__ */ s.jsx(wt, {}) })
2918
+ ] });
2919
+ }, ii = "_select_pywmr_1", ci = {
2920
+ select: ii
2921
+ }, kl = ({ year: t, onChangeYear: e, optionMin: n = 2e3, optionMax: r = 2050, className: o }) => {
2922
+ const a = S((l) => {
2923
+ const c = t.getFullYear() + l;
2924
+ c < n || c > r || e(vo(t, l));
2925
+ }, [t, e, r, n]), i = V(() => {
2926
+ const l = [];
2927
+ for (let c = n; c <= r; c++)
2928
+ l.push(c);
2929
+ return l;
2930
+ }, [n, r]);
2931
+ return /* @__PURE__ */ s.jsxs("div", { className: w("card d-flex flex-row align-items-center m-0 p-1 gap-2", o ?? ""), children: [
2932
+ /* @__PURE__ */ s.jsx(z, { onClick: () => a(-1), disabled: t.getFullYear() <= n, children: /* @__PURE__ */ s.jsx(gt, {}) }),
2933
+ /* @__PURE__ */ s.jsx(J.Select, { value: t.getFullYear(), onChange: (l) => {
2934
+ var c;
2935
+ return ((c = l.target) == null ? void 0 : c.value) && e($n(t, Number(l.target.value)));
2936
+ }, className: ci.select, children: i.map((l) => /* @__PURE__ */ s.jsx("option", { value: l, children: l }, l)) }),
2937
+ /* @__PURE__ */ s.jsx(z, { onClick: () => a(1), disabled: t.getFullYear() >= r, children: /* @__PURE__ */ s.jsx(wt, {}) })
2938
+ ] });
2939
+ }, li = "_widget_etgh3_1", ui = {
2940
+ widget: li
2941
+ }, Nl = ({ heading: t, content: e, placement: n, children: r, trigger: o, ...a }) => /* @__PURE__ */ s.jsx(Ur, { placement: n, overlay: /* @__PURE__ */ s.jsxs(tt, { className: "luminus-popover", onClick: (i) => i.stopPropagation(), children: [
2942
+ /* @__PURE__ */ s.jsx(tt.Header, { children: typeof t == "string" ? /* @__PURE__ */ s.jsx(U, { variant: "h6", className: "text-primary", children: t }) : t }),
2943
+ /* @__PURE__ */ s.jsx(tt.Body, { children: e })
2944
+ ] }), trigger: o ?? "hover", rootClose: !0, show: a.controlled ? a.isOpen : void 0, onToggle: a.controlled ? (i) => a.setIsOpen(i) : void 0, children: r }), fr = ({ currentSelection: t, selectedItemNavigateTo: e, children: n }) => {
2945
+ const { LinkComponent: r } = L(le);
2946
+ if (!t || !t.id || !e)
2947
+ return /* @__PURE__ */ s.jsx("div", { className: "luminus-input-container position-relative w-100", children: n });
2948
+ const o = e(t);
2949
+ return /* @__PURE__ */ s.jsx(r, { to: o, className: "luminus-input-container position-relative w-100 text-decoration-none", children: n });
2950
+ }, Cl = ({ InputContainer: t = Ie, label: e, value: n, onChange: r, hidden: o, disabled: a, className: i, type: l, withoutLabel: c }) => /* @__PURE__ */ s.jsx(t, { isForCheckInput: !0, hidden: o, label: e ?? "", withoutLabel: c, className: i, children: /* @__PURE__ */ s.jsx(J.Check, { id: `check-${e}`, type: l ?? "checkbox", label: e ?? "", checked: n, onChange: (u) => {
2951
+ var d;
2952
+ r && r(((d = u.target) == null ? void 0 : d.checked) ?? !1);
2953
+ }, className: i ?? "", hidden: o ?? !1, disabled: a ?? !1 }) }), $l = ({ InputContainer: t = Ie, type: e, value: n, onChange: r, debounceMs: o, label: a, withoutLabel: i, placeholder: l, size: c, hidden: u, disabled: d, showClearIcon: h, clearValue: m, list: g, className: x, step: y, noSelectOnFocus: p }) => {
2954
+ const v = e === "number", j = S(() => {
2955
+ if (!r)
2956
+ return;
2957
+ const b = m ?? null;
2958
+ r(v ? b ? Number(b) : null : (b == null ? void 0 : b.toString()) ?? "");
2959
+ }, [m, v, r]), f = q(null), [k, _] = P((n == null ? void 0 : n.toString()) ?? ""), C = S((b) => {
2960
+ const $ = b;
2961
+ r && (v && r($ == null || $ === "" ? null : Number($)), r($ || null));
2962
+ }, [v, r]), N = S((b) => {
2963
+ var F;
2964
+ const $ = (F = b.target) == null ? void 0 : F.value;
2965
+ if (!o) {
2966
+ C($);
2967
+ return;
2968
+ }
2969
+ _($), f.current !== null && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
2970
+ C($);
2971
+ }, o);
2972
+ }, [o, C]);
2973
+ O(() => {
2974
+ _(n === null ? "" : n.toString());
2975
+ }, [n]);
2976
+ const [T, E] = P(!1), I = yn(e, n ? n.toString() ?? null : null, T);
2977
+ return /* @__PURE__ */ s.jsxs(t, { withoutLabel: i, label: a ?? "", hidden: u, className: x, children: [
2978
+ /* @__PURE__ */ s.jsx(J.Control, { type: I, placeholder: l ?? a, size: c, value: o ? k : (n == null ? void 0 : n.toString()) ?? "", onChange: N, className: x ?? "", hidden: u, disabled: d ?? !1, list: g, onFocus: (b) => {
2979
+ E(!0), !p && b.target.select();
2980
+ }, onBlur: () => E(!1), step: y }),
2981
+ h && n !== null && r && !d && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ s.jsx(de, {}) }) })
2982
+ ] });
2983
+ }, Il = ({
2984
+ InputContainer: t = Ie,
2985
+ value: e,
2986
+ options: n,
2987
+ onChange: r,
2988
+ label: o,
2989
+ withoutLabel: a,
2990
+ isNumber: i,
2991
+ size: l,
2992
+ hidden: c,
2993
+ disabled: u,
2994
+ showClearIcon: d,
2995
+ clearValue: h,
2996
+ noSortOptions: m,
2997
+ className: g,
2998
+ noEmptyOption: x
2999
+ // it will still add the empty option if there is no value provided or value is empty string or null
3000
+ }) => {
3001
+ const y = S(() => {
3002
+ if (!r)
3003
+ return;
3004
+ const p = h ?? null;
3005
+ r(i ? p ? Number(p) : null : (p == null ? void 0 : p.toString()) ?? "");
3006
+ }, [h, i, r]);
3007
+ return /* @__PURE__ */ s.jsxs(t, { withoutLabel: a, label: o ?? "", hidden: c, className: g, children: [
3008
+ /* @__PURE__ */ s.jsxs(J.Select, { size: l, value: e ?? "", onChange: (p) => {
3009
+ var j;
3010
+ if (!r)
3011
+ return;
3012
+ const v = (j = p.target) == null ? void 0 : j.value;
3013
+ i && r(v ? parseInt(v, 10) : null), r(v || null);
3014
+ }, className: g ?? "", hidden: c, disabled: u ?? !1, children: [
3015
+ x && !(e == null || e === "") ? void 0 : /* @__PURE__ */ s.jsx("option", { value: "" }),
3016
+ n == null ? void 0 : n.sort((p, v) => m ? 0 : (p.name ?? "").localeCompare(v.name ?? "")).map((p) => /* @__PURE__ */ s.jsx("option", { value: p.id ?? "", children: p.name }, p.id))
3017
+ ] }),
3018
+ d && e && r && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(de, {}) }) })
3019
+ ] });
3020
+ }, Sl = ({ InputContainer: t = Ie, items: e, defaultSelection: n, selectedItemNavigateTo: r, onSearchQueryChange: o, texts: a, isLoading: i, isNumber: l, onSelect: c, label: u, withoutLabel: d, size: h, dropdownItemsNameWidth: m, additionalColumns: g, hidden: x, disabled: y, displayIdAsName: p, CustomOnChangeComponent: v, className: j }) => {
3021
+ var $, F;
3022
+ const [f, k] = P(n), [_, C] = P(!1);
3023
+ O(() => {
3024
+ k(n);
3025
+ }, [n]);
3026
+ const N = S((W) => {
3027
+ k(W);
3028
+ }, []), T = S((W) => {
3029
+ C(!1), N(W);
3030
+ }, [N]);
3031
+ O(() => {
3032
+ c && c(f);
3033
+ }, [f, c]);
3034
+ const E = q(null), I = r !== void 0, b = I && f !== null;
3035
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { withoutLabel: d, label: u ?? "", hidden: x, inputContainerClassName: w({ "luminus-dropdown-select-open": _ }), className: j, children: [
3036
+ /* @__PURE__ */ s.jsxs(fr, { currentSelection: f, selectedItemNavigateTo: r, children: [
3037
+ p && (f == null ? void 0 : f.name) && /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: f.name }),
3038
+ /* @__PURE__ */ s.jsxs(J.Select, { ref: E, size: h, value: (f == null ? void 0 : f.id) ?? "", onChange: (W) => k({
3039
+ id: l ? Number(W.target.value) ?? null : W.target.value,
3040
+ name: ""
3041
+ }), onMouseDown: (W) => {
3042
+ W.currentTarget.focus(), W.preventDefault();
3043
+ }, onClick: () => {
3044
+ !I && !y && C(!0);
3045
+ }, className: w("w-100", {
3046
+ "luminus-dropdown-picker-disabled": y,
3047
+ "luminus-dropdown-picker-link": b
3048
+ }), hidden: x, children: [
3049
+ /* @__PURE__ */ s.jsx("option", { value: "" }),
3050
+ n && /* @__PURE__ */ s.jsx("option", { value: n.id ?? void 0, children: n.name && (($ = n.name) == null ? void 0 : $.length) > 0 ? n.name : n.id }),
3051
+ f && /* @__PURE__ */ s.jsx("option", { value: f.id ?? void 0, children: f.name && ((F = f.name) == null ? void 0 : F.length) > 0 ? f.name : f.id })
3052
+ ] }),
3053
+ v || !y && I ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
3054
+ !v && !y && I && /* @__PURE__ */ s.jsx(z, { size: "sm", color: "secondary", onClick: (W) => {
3055
+ W.preventDefault(), W.stopPropagation(), C(!0);
3056
+ }, children: /* @__PURE__ */ s.jsx(ln, {}) }),
3057
+ v ?? null
3058
+ ] }) : null
3059
+ ] }),
3060
+ E.current && /* @__PURE__ */ s.jsx(Nt, { show: _, onCancel: () => C(!1), items: e, currentSelection: f, onSelectionChange: T, onSearchQueryChange: o, texts: a, itemsNameWidth: m, additionalColumns: g, isLoading: i, disabled: y, inputRef: E })
3061
+ ] }) });
3062
+ }, Tl = ({ InputContainer: t = Ie, value: e, onChange: n, label: r, size: o, showClearIcon: a, clearValue: i, hidden: l, disabled: c, rows: u, withoutLabel: d, debounceMs: h, className: m }) => {
3063
+ const g = S(() => {
3064
+ if (!n)
3065
+ return;
3066
+ const f = i ?? null;
3067
+ n((f == null ? void 0 : f.toString()) ?? "");
3068
+ }, [i, n]), x = q(null), [y, p] = P((e == null ? void 0 : e.toString()) ?? ""), v = S((f) => {
3069
+ const k = f;
3070
+ n && n(k || null);
3071
+ }, [n]), j = S((f) => {
3072
+ var _;
3073
+ const k = (_ = f.target) == null ? void 0 : _.value;
3074
+ if (!h) {
3075
+ v(k);
3076
+ return;
3077
+ }
3078
+ p(k), x.current !== null && window.clearTimeout(x.current), x.current = window.setTimeout(() => {
3079
+ v(k);
3080
+ }, h);
3081
+ }, [h, v]);
3082
+ return O(() => {
3083
+ p(e === null ? "" : e.toString());
3084
+ }, [e]), /* @__PURE__ */ s.jsxs(t, { label: r ?? "", hidden: l, withoutLabel: d, className: m, isForTextAreaInput: !0, children: [
3085
+ /* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, value: h ? y : e ?? "", onChange: j, hidden: l, disabled: c, rows: u ?? 2, className: "w-100" }),
3086
+ a && e && n && !c && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ s.jsx(de, {}) }) })
3087
+ ] });
3088
+ };
3089
+ function mr(t) {
3090
+ return xt({ 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);
3091
+ }
3092
+ function pr(t) {
3093
+ return xt({ 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);
3094
+ }
3095
+ function di(t) {
3096
+ return xt({ 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);
3097
+ }
3098
+ const El = ({ InputContainer: t = Ie, value: e, onChange: n, debounceMs: r, label: o, withoutLabel: a, placeholder: i, size: l, hidden: c, disabled: u, showClearIcon: d, clearValue: h, className: m, step: g, stepperStep: x = 1 }) => {
3099
+ const y = S(() => {
3100
+ if (!n)
3101
+ return;
3102
+ const _ = h ?? null;
3103
+ n(_ ? Number(_) : null);
3104
+ }, [h, n]), p = q(null), [v, j] = P((e == null ? void 0 : e.toString()) ?? ""), f = S((_) => {
3105
+ const C = _;
3106
+ n && n(C == null || C === "" ? null : Number(C));
3107
+ }, [n]), k = S((_) => {
3108
+ var N;
3109
+ const C = (N = _.target) == null ? void 0 : N.value;
3110
+ if (!r) {
3111
+ f(C);
3112
+ return;
3113
+ }
3114
+ j(C), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => {
3115
+ f(C);
3116
+ }, r);
3117
+ }, [r, f]);
3118
+ return O(() => {
3119
+ j(e === null ? "" : e.toString());
3120
+ }, [e]), /* @__PURE__ */ s.jsx(t, { withoutLabel: a, label: o ?? "", hidden: c, className: m, children: /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3121
+ /* @__PURE__ */ s.jsx(J.Control, { type: "number", placeholder: i ?? o, size: l, value: r ? v : e ?? "", onChange: k, className: `luminus-numeric-stepper ${m ?? ""}`, hidden: c, disabled: u ?? !1, step: g }),
3122
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (_) => {
3123
+ _.preventDefault(), _.stopPropagation(), f(((e ?? 0) - x).toString());
3124
+ }, children: /* @__PURE__ */ s.jsx(mr, {}) }) }),
3125
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !u && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (_) => {
3126
+ _.preventDefault(), _.stopPropagation(), f(((e ?? 0) + x).toString());
3127
+ }, children: /* @__PURE__ */ s.jsx(pr, {}) }) }),
3128
+ d && e && n && !u && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ s.jsx(de, {}) }) })
3129
+ ] }) });
3130
+ }, Dl = ({ InputContainer: t = ge, formField: e, label: n, resetsFields: r, type: o, required: a, hidden: i, disabled: l, withoutLabel: c, className: u }) => {
3131
+ const { register: d, formState: h, setValue: m } = he(), [g, x] = P(void 0), [y, p] = P(!1);
3132
+ O(() => {
3133
+ const j = e.split(".");
3134
+ let f = h.errors;
3135
+ j.forEach((k) => {
3136
+ f !== void 0 && (f = f[k]);
3137
+ }), x(f);
3138
+ }, [h, e]), O(() => {
3139
+ h.isSubmitted && p(!0);
3140
+ }, [h]);
3141
+ const v = g !== void 0;
3142
+ return /* @__PURE__ */ s.jsxs(t, { isForCheckInput: !0, hidden: i, label: `${n}${a ? " *" : ""}`, isInvalid: v, withoutLabel: c, className: u, children: [
3143
+ /* @__PURE__ */ s.jsx(J.Check, { id: `check-${e}`, type: o ?? "checkbox", label: `${n}${a ? " *" : ""}`, ...d(e, {
3144
+ onChange: () => {
3145
+ r && r.forEach((j) => m(j, null, { shouldDirty: !0, shouldValidate: y }));
3146
+ }
3147
+ }), isInvalid: v, hidden: i, disabled: l, className: "w-100" }),
3148
+ g && /* @__PURE__ */ s.jsx(we, { message: g.message })
3149
+ ] });
3150
+ }, Ol = ({ InputContainer: t = ge, label: e, formField: n, options: r, resetsFields: o, required: a, disabled: i, hidden: l, className: c }) => {
3151
+ const { register: u, formState: d, setValue: h, watch: m } = he(), [g, x] = P(void 0), [y, p] = P(!1), v = V(() => r, [r]);
3152
+ O(() => {
3153
+ const f = n.split(".");
3154
+ let k = d.errors;
3155
+ f.forEach((_) => {
3156
+ k !== void 0 && (k = k[_]);
3157
+ }), x(k);
3158
+ }, [d, n]), O(() => {
3159
+ d.isSubmitted && p(!0);
3160
+ }, [d]);
3161
+ const j = g !== void 0;
3162
+ return /* @__PURE__ */ s.jsxs(t, { isForRadioInput: !0, hidden: l, withoutLabel: !e, label: `${e}${a ? " *" : ""}`, isInvalid: j, className: c, children: [
3163
+ v.map((f) => /* @__PURE__ */ s.jsx(J.Check, { id: `radio-${f.id}`, label: f.name, type: "radio", value: f.id ?? "", checked: m(n) === f.id, ...u(n, {
3164
+ onChange: () => {
3165
+ o && o.forEach((k) => h(k, null, { shouldDirty: !0, shouldValidate: y }));
3166
+ }
3167
+ }), isInvalid: j, hidden: l, disabled: i, className: "w-100" }, f.id)),
3168
+ g && /* @__PURE__ */ s.jsx(we, { message: g.message })
3169
+ ] });
3170
+ }, Pl = ({ InputContainer: t = ge, formField: e, label: n, resetsFields: r, size: o, showClearIcon: a, clearValue: i, required: l, hidden: c, disabled: u, rows: d, withoutLabel: h, customFormControlProps: m, className: g }) => {
3171
+ const { register: x, formState: y, setValue: p, watch: v } = he(), [j, f] = P(void 0), [k, _] = P(!1), C = S(() => {
3172
+ const E = i ?? null;
3173
+ p(e, (E == null ? void 0 : E.toString()) ?? "", { shouldDirty: !0, shouldValidate: k });
3174
+ }, [i, p, e, k]), N = S(() => {
3175
+ const E = e.split(".");
3176
+ let I = y.errors;
3177
+ E.forEach((b) => {
3178
+ I !== void 0 && (I = I[b]);
3179
+ }), f(I);
3180
+ }, [y, e]);
3181
+ O(() => {
3182
+ N();
3183
+ }, [N]), O(() => {
3184
+ y.isSubmitted && _(!0);
3185
+ }, [y]);
3186
+ const T = j !== void 0;
3187
+ return /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: h, isInvalid: T, className: g, isForTextAreaInput: !0, children: [
3188
+ /* @__PURE__ */ s.jsx(J.Control, { as: "textarea", size: o, ...x(e, {
3189
+ setValueAs: (E) => E == null || E === "" ? null : E,
3190
+ onChange: () => {
3191
+ r && r.forEach((E) => p(E, null, { shouldDirty: !0, shouldValidate: k }));
3192
+ }
3193
+ }), isInvalid: T, hidden: c, disabled: u, rows: d ?? 2, className: "w-100", ...m }),
3194
+ a && v(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ s.jsx(de, {}) }) }),
3195
+ j && /* @__PURE__ */ s.jsx(we, { message: j.message })
3196
+ ] });
3197
+ }, Al = ({ InputContainer: t = ge, type: e, formField: n, label: r, placeholder: o, size: a, resetsFields: i, showClearIcon: l, clearValue: c, required: u, hidden: d, disabled: h, withoutLabel: m, list: g, step: x, CustomOnChangeComponent: y, noSelectOnFocus: p, className: v }) => {
3198
+ const { register: j, formState: f, setValue: k, watch: _ } = he(), [C, N] = P(void 0), [T, E] = P(!1), I = S(() => {
3199
+ const M = c ?? null;
3200
+ e === "number" ? k(n, M !== null ? Number(M) : null, {
3201
+ shouldDirty: !0,
3202
+ shouldValidate: T
3203
+ }) : k(n, (M == null ? void 0 : M.toString()) ?? "", { shouldDirty: !0, shouldValidate: T });
3204
+ }, [c, e, k, n, T]), b = S(() => {
3205
+ const M = n.split(".");
3206
+ let K = f.errors;
3207
+ M.forEach((re) => {
3208
+ K !== void 0 && (K = K[re]);
3209
+ }), N(K);
3210
+ }, [f, n]);
3211
+ O(() => {
3212
+ b();
3213
+ }, [b]), O(() => {
3214
+ f.isSubmitted && E(!0);
3215
+ }, [f]);
3216
+ const $ = C !== void 0, [F, W] = P(!1), ne = _(n), G = yn(e, ne ?? null, F);
3217
+ return /* @__PURE__ */ s.jsxs(t, { label: `${r}${u ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: $, className: v, children: [
3218
+ /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3219
+ /* @__PURE__ */ s.jsx(J.Control, { type: G, placeholder: o ?? r, size: a, onFocus: (M) => {
3220
+ W(!0), !p && M.target.select();
3221
+ }, ...j(n, {
3222
+ setValueAs: (M) => e === "number" ? M == null || M === "" ? null : Number(M) : M == null || M === "" ? null : M,
3223
+ onChange: () => {
3224
+ i && i.forEach((M) => k(M, null, { shouldDirty: !0, shouldValidate: T }));
3225
+ },
3226
+ onBlur: () => W(!1)
3227
+ }), isInvalid: $, hidden: d, disabled: h, list: g, className: "w-100", step: x }),
3228
+ y && /* @__PURE__ */ s.jsx("div", { className: "custom-picker-button", children: y })
3229
+ ] }),
3230
+ l && _(n) && /* @__PURE__ */ s.jsx("div", { className: `luminus-input-remove-icon ${e !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: I, children: /* @__PURE__ */ s.jsx(de, {}) }) }),
3231
+ C && /* @__PURE__ */ s.jsx(we, { message: C.message })
3232
+ ] });
3233
+ }, Ml = ({ InputContainer: t = ge, formField: e, label: n, size: r, defaultSelection: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, items: d, onSearchQueryChange: h, selectedItemNavigateTo: m, texts: g, dropdownItemsNameWidth: x, isLoading: y, withoutLabel: p, additionalColumns: v, CustomOnChangeComponent: j, displayIdAsName: f, onSelect: k, className: _ }) => {
3234
+ const { formState: C, setValue: N, watch: T, control: E } = he(), [I, b] = P(void 0), [$, F] = P(!1), [W, ne] = P(!1), G = T(e) ?? null, M = G === (o == null ? void 0 : o.id) ? o == null ? void 0 : o.name : T(`${e}-DropdownName`), K = V(() => G == null ? null : { id: G ?? null, name: M ?? "" }, [G, M]), re = S(() => {
3235
+ const Y = e.split(".");
3236
+ let A = C.errors;
3237
+ Y.forEach((X) => {
3238
+ A !== void 0 && (A = A[X]);
3239
+ }), b(A);
3240
+ }, [C, e]), Q = S((Y) => {
3241
+ if ((Y == null ? void 0 : Y.id) === G)
3242
+ return;
3243
+ if (k && k(Y), a && a.forEach((X) => N(X, null, { shouldDirty: !0, shouldValidate: W })), Y === null) {
3244
+ N(e, null, {
3245
+ shouldDirty: !0,
3246
+ shouldValidate: W
3247
+ }), N(`${e}-DropdownName`, null);
3248
+ return;
3249
+ }
3250
+ let A = null;
3251
+ i ? A = (Y == null ? void 0 : Y.id) !== null && (Y == null ? void 0 : Y.id) !== "" ? parseInt(Y.id.toString(), 10) : null : A = Y.id === null || Y.id === void 0 || Y.id === "" ? null : Y.id, N(e, A, {
3252
+ shouldDirty: !0,
3253
+ shouldValidate: W
3254
+ }), N(`${e}-DropdownName`, Y.name ?? "");
3255
+ }, [N, e, W, i, a, G, k]), D = S((Y) => {
3256
+ F(!1), Q(Y);
3257
+ }, [Q]), Z = S(() => {
3258
+ F(!1);
3259
+ }, []);
3260
+ O(() => {
3261
+ re();
3262
+ }, [re]), O(() => {
3263
+ C.isSubmitted && ne(!0);
3264
+ }, [C]);
3265
+ const se = q(null), Re = I !== void 0, Ne = m !== void 0, Se = Ne && K !== null;
3266
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${n}${l ? " *" : ""}`, hidden: c, withoutLabel: p, isInvalid: Re, inputContainerClassName: w({ "luminus-dropdown-select-open": $ }), className: _, children: [
3267
+ /* @__PURE__ */ s.jsxs(fr, { currentSelection: K, selectedItemNavigateTo: m, children: [
3268
+ f && (K == null ? void 0 : K.name) && /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: K.name }),
3269
+ /* @__PURE__ */ s.jsx(vn, { control: E, name: e, render: () => /* @__PURE__ */ s.jsx(J.Select, { size: r, onMouseDown: (Y) => {
3270
+ Y.currentTarget.focus(), Y.preventDefault();
3271
+ }, onClick: () => {
3272
+ !Ne && !u && F(!0);
3273
+ }, ref: se, value: G ?? "", onChange: () => {
3274
+ }, isInvalid: Re, hidden: c, className: w("w-100", {
3275
+ "luminus-dropdown-picker-disabled": u,
3276
+ "luminus-dropdown-picker-link": Se
3277
+ }), children: /* @__PURE__ */ s.jsx("option", { value: G, children: f ? G : (M == null ? void 0 : M.length) > 0 ? M : G }) }) }),
3278
+ j || !u && Ne ? /* @__PURE__ */ s.jsxs("div", { className: "custom-picker-button", children: [
3279
+ !j && !u && Ne && /* @__PURE__ */ s.jsx(z, { size: "sm", color: "secondary", onClick: (Y) => {
3280
+ Y.preventDefault(), Y.stopPropagation(), F(!0);
3281
+ }, children: /* @__PURE__ */ s.jsx(ln, {}) }),
3282
+ j ?? null
3283
+ ] }) : null
3284
+ ] }),
3285
+ I && /* @__PURE__ */ s.jsx(we, { message: I.message }),
3286
+ se.current && /* @__PURE__ */ s.jsx(Nt, { show: $, onCancel: Z, items: d, currentSelection: K, onSelectionChange: D, onSearchQueryChange: h, texts: g, itemsNameWidth: x, additionalColumns: v, displayIdAsName: f, isLoading: y, disabled: u, inputRef: se })
3287
+ ] }) });
3288
+ }, Fl = ({ InputContainer: t = ge, label: e, formField: n, hidden: r, required: o, placeholder: a, disabled: i, showClearIcon: l, resetsFields: c, multiple: u, accept: d, withoutLabel: h, className: m }) => {
3289
+ const { watch: g, setValue: x, register: y, formState: p } = he(), [v, j] = P(!1), [f, k] = P(void 0), _ = S(() => {
3290
+ x(n, "");
3291
+ }, [x, n]), C = S(() => {
3292
+ const T = n.split(".");
3293
+ let E = p.errors;
3294
+ T.forEach((I) => {
3295
+ E !== void 0 && (E = E[I]);
3296
+ }), k(E);
3297
+ }, [p, n]);
3298
+ O(C, [C]), O(() => {
3299
+ p.isSubmitted && j(!0);
3300
+ }, [p]);
3301
+ const N = f !== void 0;
3302
+ return /* @__PURE__ */ s.jsxs(t, { label: `${e}${o ? "*" : ""}`, hidden: r, withoutLabel: h, isInvalid: N, className: m, children: [
3303
+ /* @__PURE__ */ s.jsx(wn, { type: "file", multiple: u, accept: d.join(", "), placeholder: a ?? e, isInvalid: N, hidden: r, disabled: i, className: "w-100", ...y(n, {
3304
+ onChange: () => {
3305
+ c && c.forEach((T) => x(T, null, { shouldDirty: !0, shouldValidate: v }));
3306
+ }
3307
+ }) }),
3308
+ l && g(n) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: _, children: /* @__PURE__ */ s.jsx(de, {}) }) }),
3309
+ f && /* @__PURE__ */ s.jsx(we, { message: f.message })
3310
+ ] });
3311
+ }, Wl = ({ children: t, onStorno: e, noSpacer: n }) => {
3312
+ const { formState: r } = he(), [o, a] = P(!1);
3313
+ return O(() => {
3314
+ a(Object.keys(r.dirtyFields).length > 0);
3315
+ }, [r]), o ? /* @__PURE__ */ s.jsx(ei, { onStorno: e, noSpacer: n, children: t }) : null;
3316
+ }, Rl = ({ InputContainer: t = ge, options: e, formField: n, label: r, size: o, resetsFields: a, isNumber: i, required: l, hidden: c, disabled: u, withoutLabel: d, noSortOptions: h, suffixIdToName: m, className: g }) => {
3317
+ const { customSelectTexts: x } = L(le), { formState: y, setValue: p, watch: v, control: j } = he(), [f, k] = P(void 0), [_, C] = P(!1), [N, T] = P(!1), [E, I] = P(""), b = v(n), $ = V(() => e.find((D) => D.id === b) ?? null, [e, b]), F = S(() => {
3318
+ const D = n.split(".");
3319
+ let Z = y.errors;
3320
+ D.forEach((se) => {
3321
+ Z !== void 0 && (Z = Z[se]);
3322
+ }), k(Z);
3323
+ }, [y, n]), W = S((D) => {
3324
+ if ((D == null ? void 0 : D.id) === b)
3325
+ return;
3326
+ if (a && a.forEach((se) => p(se, null, { shouldDirty: !0, shouldValidate: N })), D === null) {
3327
+ p(n, null, {
3328
+ shouldDirty: !0,
3329
+ shouldValidate: N
3330
+ });
3331
+ return;
3332
+ }
3333
+ let Z = null;
3334
+ i ? Z = (D == null ? void 0 : D.id) !== null && (D == null ? void 0 : D.id) !== "" ? parseInt(D.id.toString(), 10) : null : Z = D.id === null || D.id === void 0 || D.id === "" ? null : D.id, p(n, Z, {
3335
+ shouldDirty: !0,
3336
+ shouldValidate: N
3337
+ });
3338
+ }, [p, n, i, a, b, N]), ne = S((D) => {
3339
+ C(!1), W(D);
3340
+ }, [W]), G = S((D) => {
3341
+ I(D);
3342
+ }, []);
3343
+ O(() => {
3344
+ F();
3345
+ }, [F]), O(() => {
3346
+ y.isSubmitted && T(!0);
3347
+ }, [y]);
3348
+ const M = S((D) => {
3349
+ var Z;
3350
+ return D === null ? "" : !D.name || D.name.length === 0 ? ((Z = D.id) == null ? void 0 : Z.toString()) ?? "" : m ? `${D.name} (${D.id})` : D.name;
3351
+ }, [m]), K = V(() => e.map((D) => ({
3352
+ id: D.id,
3353
+ name: M(D)
3354
+ })).filter((D) => mo(D.name, E)).sort((D, Z) => h ? 0 : (D.name ?? "").localeCompare(Z.name ?? "")), [e, h, E, M]), re = q(null), Q = f !== void 0;
3355
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs(t, { label: `${r}${l ? " *" : ""}`, hidden: c, withoutLabel: d, isInvalid: Q, inputContainerClassName: w({ "luminus-dropdown-select-open": _ }), className: g, children: [
3356
+ /* @__PURE__ */ s.jsx(vn, { control: j, name: n, render: () => /* @__PURE__ */ s.jsx(J.Select, { size: o, onMouseDown: (D) => {
3357
+ D.currentTarget.focus(), D.preventDefault();
3358
+ }, onClick: () => {
3359
+ C(!0);
3360
+ }, ref: re, value: b ?? "", onChange: () => {
3361
+ }, isInvalid: Q, hidden: c, disabled: u, className: "w-100", children: /* @__PURE__ */ s.jsx("option", { value: ($ == null ? void 0 : $.id) ?? "", children: M($) }) }) }),
3362
+ f && /* @__PURE__ */ s.jsx(we, { message: f.message }),
3363
+ re.current && /* @__PURE__ */ s.jsx(Nt, { show: _, onCancel: () => C(!1), items: K, currentSelection: $ ?? null, onSelectionChange: ne, onSearchQueryChange: G, texts: x, disabled: u, inputRef: re, autoHideSearch: !0, allItemsLength: e.length })
3364
+ ] }) });
3365
+ }, Ll = ({ InputContainer: t = ge, formField: e, label: n, placeholder: r, size: o, resetsFields: a, showClearIcon: i, clearValue: l, required: c, hidden: u, disabled: d, withoutLabel: h, step: m, stepperStep: g = 1, className: x }) => {
3366
+ const { register: y, formState: p, setValue: v, watch: j } = he(), [f, k] = P(void 0), [_, C] = P(!1), N = S(() => {
3367
+ const b = l ?? null;
3368
+ v(e, b !== null ? Number(b) : null, {
3369
+ shouldDirty: !0,
3370
+ shouldValidate: _
3371
+ });
3372
+ }, [l, v, e, _]), T = S(() => {
3373
+ const b = e.split(".");
3374
+ let $ = p.errors;
3375
+ b.forEach((F) => {
3376
+ $ !== void 0 && ($ = $[F]);
3377
+ }), k($);
3378
+ }, [p, e]);
3379
+ O(() => {
3380
+ T();
3381
+ }, [T]), O(() => {
3382
+ p.isSubmitted && C(!0);
3383
+ }, [p]);
3384
+ const E = f !== void 0, I = j(e);
3385
+ return /* @__PURE__ */ s.jsxs(t, { label: `${n}${c ? " *" : ""}`, hidden: u, withoutLabel: h, isInvalid: E, className: x, children: [
3386
+ /* @__PURE__ */ s.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
3387
+ /* @__PURE__ */ s.jsx(J.Control, { type: "number", placeholder: r ?? n, size: o, ...y(e, {
3388
+ setValueAs: (b) => b == null || b === "" ? null : Number(b),
3389
+ onChange: () => {
3390
+ a && a.forEach((b) => v(b, null, { shouldDirty: !0, shouldValidate: _ }));
3391
+ }
3392
+ }), isInvalid: E, hidden: u, disabled: d, className: "w-100 luminus-numeric-stepper", step: m }),
3393
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (b) => {
3394
+ b.preventDefault(), b.stopPropagation(), v(e, ((I ? Number(I) : 0) - g).toString(), { shouldDirty: !0, shouldValidate: _ });
3395
+ }, children: /* @__PURE__ */ s.jsx(mr, {}) }) }),
3396
+ /* @__PURE__ */ s.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ s.jsx(z, { size: "sm", onClick: (b) => {
3397
+ b.preventDefault(), b.stopPropagation(), v(e, ((I ? Number(I) : 0) + g).toString(), { shouldDirty: !0, shouldValidate: _ });
3398
+ }, children: /* @__PURE__ */ s.jsx(pr, {}) }) })
3399
+ ] }),
3400
+ i && j(e) && /* @__PURE__ */ s.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ s.jsx(z, { color: "secondary", size: "sm", onClick: N, children: /* @__PURE__ */ s.jsx(de, {}) }) }),
3401
+ f && /* @__PURE__ */ s.jsx(we, { message: f.message })
3402
+ ] });
3403
+ }, hi = "_item_1dy8x_1", gr = {
3404
+ item: hi
3405
+ }, fi = ({
3406
+ color: t = "primary",
3407
+ // icon = <MdOutlineArrowOutward />,
3408
+ icon: e,
3409
+ className: n,
3410
+ children: r,
3411
+ ...o
3412
+ }) => /* @__PURE__ */ s.jsxs(Me.Item, { className: w(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${n ?? ""}`, gr.item), ...o, children: [
3413
+ e,
3414
+ r
3415
+ ] }), mi = (t) => /* @__PURE__ */ s.jsx(Me.Toggle, { ...t }), Yl = ({ color: t = "primary", icon: e = /* @__PURE__ */ s.jsx(cn, { size: 12 }), inputId: n = "context-file-input", accept: r = "*", onUpload: o, multiple: a, className: i, children: l, ...c }) => {
3416
+ const u = (d) => {
3417
+ d.target.files && (o(d.target.files), d.target.value = "");
3418
+ };
3419
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3420
+ /* @__PURE__ */ s.jsxs("label", { htmlFor: n, className: w(`btn luminus-dropdown-item text-nowrap rounded text-${t} ${i ?? ""}`, gr.item), ...c, children: [
3421
+ e,
3422
+ l
3423
+ ] }),
3424
+ /* @__PURE__ */ s.jsx("input", { id: n, type: "file", accept: r, onChange: u, hidden: !0, multiple: a })
3425
+ ] });
3426
+ }, pi = "_divider_1e6rk_1", gi = {
3427
+ divider: pi
3428
+ }, ql = ({ className: t }) => /* @__PURE__ */ s.jsx(Me.Divider, { className: w("luminus-dropdown-divider", t, gi.divider) }), wi = "_dropdown_1lk66_1", xi = {
3429
+ dropdown: wi
3430
+ }, vi = ({ toggle: t, children: e, ...n }) => /* @__PURE__ */ s.jsxs(Me, { ...n, children: [
3431
+ t,
3432
+ /* @__PURE__ */ s.jsx(Me.Menu, { className: w("luminus-dropdown rounded shadow", xi.dropdown), children: e })
3433
+ ] }), Hl = ({ cell: { value: t } }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: t ? /* @__PURE__ */ s.jsx(un, { name: t, size: 21, fontSize: 12 }) : /* @__PURE__ */ s.jsx(s.Fragment, {}) }), yi = "_tab-panel_d8l8q_1", bi = "_full-height-no-overflow_d8l8q_5", _i = "_disabled_d8l8q_12", it = {
3434
+ "tab-panel": "_tab-panel_d8l8q_1",
3435
+ tabPanel: yi,
3436
+ "full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
3437
+ fullHeightNoOverflow: bi,
3438
+ disabled: _i
3439
+ }, Bl = ({ eventKey: t, activeTab: e, fullHeightNoOverflow: n, disabled: r, className: o, children: a }) => t !== e ? null : /* @__PURE__ */ s.jsx("div", { className: w("luminus-tab-panel", it.tabPanel, { [it.fullHeightNoOverflow]: n }, { disabled: r }, { [it.disabled]: r }, o), children: a }), Vl = ({ activeTab: t, onSelect: e, children: n }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-tabs d-flex gap-1 mb-2"), children: n.map((r) => {
3440
+ const o = r.type, a = r.props;
3441
+ if (!a)
3442
+ return null;
3443
+ const i = a.eventKey, l = a.children, c = a.className, u = a.onClick;
3444
+ return /* @__PURE__ */ oo(o, { ...a, key: a.eventKey, className: w({ active: t === i }, c), onClick: () => {
3445
+ e(i), u && u(i);
3446
+ } }, l);
3447
+ }) }), ji = "_tab_1hdhk_1", ki = "_disabled_1hdhk_8", Kt = {
3448
+ tab: ji,
3449
+ disabled: ki
3450
+ }, Gl = ({ eventKey: t, className: e, onClick: n, disabled: r, children: o }) => /* @__PURE__ */ s.jsx("div", { role: "button", className: w("luminus-tab text-primary rounded", Kt.tab, e, {
3451
+ disabled: r
3452
+ }, { [Kt.disabled]: r }), onClick: () => n && !r && n(t), children: typeof o == "string" ? /* @__PURE__ */ s.jsx(U, { variant: "h6", className: "text-primary", children: o }) : o }), Ni = ({ show: t, widgets: e, handleClose: n, onWidgetPicked: r, texts: o }) => /* @__PURE__ */ s.jsxs(qe, { show: t, onHide: () => n(), children: [
3453
+ /* @__PURE__ */ s.jsx(qe.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx(qe.Title, { children: o.pickWidgetToAdd }) }),
3454
+ /* @__PURE__ */ s.jsx(qe.Body, { children: /* @__PURE__ */ s.jsx("div", { className: "list-group", children: e.filter((a) => a.id >= 0).map((a) => /* @__PURE__ */ s.jsx("div", { role: "button", className: "list-group-item bg-white", onClick: () => r(a.id), children: /* @__PURE__ */ s.jsx(U, { variant: "body", children: a.name }) })) }) })
3455
+ ] }), Qt = ({ availableWidgets: t, onAdd: e, texts: n }) => {
3456
+ const [r, o] = P(!1);
3457
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3458
+ /* @__PURE__ */ s.jsx("div", { className: w("luminus-empty-widget", ui.widget), children: /* @__PURE__ */ s.jsx(z, { onClick: () => o(!0), children: /* @__PURE__ */ s.jsx(zr, {}) }) }),
3459
+ /* @__PURE__ */ s.jsx(Ni, { show: r, widgets: t, handleClose: () => o(!1), onWidgetPicked: (a) => {
3460
+ o(!1), e(a);
3461
+ }, texts: n })
3462
+ ] });
3463
+ }, Ci = (t) => {
3464
+ const [e, n] = P({ widgets: [] });
3465
+ O(() => {
3466
+ const o = localStorage.getItem("dashboardConfig");
3467
+ o ? n(JSON.parse(o)) : t && n(t);
3468
+ }, [t]);
3469
+ const r = S((o) => {
3470
+ n(o), localStorage.setItem("dashboardConfig", JSON.stringify(o));
3471
+ }, []);
3472
+ return { dashboardConfig: e, onChangeDashboardConfig: r };
3473
+ }, $i = "_dashboard_16plm_1", Ii = "_widgets-grid_16plm_1", Si = "_widget-wrapper_16plm_8", Ti = "_full-width_16plm_13", Ei = "_widget-edit_16plm_16", Di = "_remove-icon_16plm_19", Oi = "_full-width-icon_16plm_26", Pi = "_widget-edit-overlay_16plm_36", ue = {
3474
+ dashboard: $i,
3475
+ "widgets-grid": "_widgets-grid_16plm_1",
3476
+ widgetsGrid: Ii,
3477
+ "widget-wrapper": "_widget-wrapper_16plm_8",
3478
+ widgetWrapper: Si,
3479
+ "full-width": "_full-width_16plm_13",
3480
+ fullWidth: Ti,
3481
+ "widget-edit": "_widget-edit_16plm_16",
3482
+ widgetEdit: Ei,
3483
+ "remove-icon": "_remove-icon_16plm_19",
3484
+ removeIcon: Di,
3485
+ "full-width-icon": "_full-width-icon_16plm_26",
3486
+ fullWidthIcon: Oi,
3487
+ "widget-edit-overlay": "_widget-edit-overlay_16plm_36",
3488
+ widgetEditOverlay: Pi
3489
+ };
3490
+ class Ai extends so {
3491
+ constructor(e) {
3492
+ super(e), this.state = { hasError: !1 }, this.reload = this.reload.bind(this);
3493
+ }
3494
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
3495
+ static getDerivedStateFromError(e) {
3496
+ return { hasError: !0 };
3497
+ }
3498
+ componentDidUpdate(e) {
3499
+ this.state.hasError && e.keyForErrorState !== this.props.keyForErrorState && this.setState({ hasError: !1 });
3500
+ }
3501
+ componentDidCatch(e, n) {
3502
+ console.error("Error:", e, n);
3503
+ }
3504
+ reload() {
3505
+ this.setState({ hasError: !1 });
3506
+ }
3507
+ render() {
3508
+ const { fallback: e, children: n, texts: r, reloadButtonDisplay: o = "append-after-child" } = this.props;
3509
+ return this.state.hasError ? o === "inject-to-child" && ao(e) ? ee.cloneElement(e, {
3510
+ ...e.props
3511
+ }, /* @__PURE__ */ s.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
3512
+ ...e.props.children,
3513
+ /* @__PURE__ */ s.jsx(ht, { type: "button", onClick: this.reload, children: r.reloadButtonContent })
3514
+ ] })) : /* @__PURE__ */ s.jsxs("div", { className: "translate-middle top-50 start-50 position-absolute d-flex flex-column align-items-center gap-2", children: [
3515
+ e,
3516
+ o === "none" ? null : /* @__PURE__ */ s.jsx(ht, { type: "button", onClick: this.reload, children: r.reloadButtonContent })
3517
+ ] }) : n;
3518
+ }
3519
+ }
3520
+ const Mi = (t) => (n) => {
3521
+ const { errorBoundaryTexts: r } = L(le);
3522
+ return /* @__PURE__ */ s.jsx(t, { texts: r, ...n });
3523
+ }, Fi = Mi(Ai), Wi = "_widget-card_e9tsb_1", Ri = {
3524
+ "widget-card": "_widget-card_e9tsb_1",
3525
+ widgetCard: Wi
3526
+ }, Xt = ({ children: t, title: e, headerContent: n }) => /* @__PURE__ */ s.jsx(Pc, { className: w(Ri.widgetCard, "luminus-widget"), title: e, headerContent: n, contentClassName: "h-100 overflow-auto", children: t }), Li = ({ children: t, title: e }) => {
3527
+ const { widgetTexts: n } = L(le);
3528
+ return /* @__PURE__ */ s.jsx(Fi, { fallback: /* @__PURE__ */ s.jsx(Xt, { title: e, children: n.fallbackError }), reloadButtonDisplay: "inject-to-child", children: /* @__PURE__ */ s.jsx(io, { fallback: /* @__PURE__ */ s.jsx(Xt, { title: e, children: /* @__PURE__ */ s.jsx(po, {}) }), children: t }) });
3529
+ }, Ul = ({ availableWidgets: t, editMode: e, defaultDashboardConfig: n }) => {
3530
+ var d;
3531
+ const { homeDashboardTexts: r } = L(le), { dashboardConfig: o, onChangeDashboardConfig: a } = Ci(n), i = S((h, m) => {
3532
+ var g, x;
3533
+ h === ((g = o.widgets) == null ? void 0 : g.length) ? a({
3534
+ ...o,
3535
+ widgets: [...o.widgets, { widgetId: m, fullWidth: !1 }]
3536
+ }) : a({
3537
+ ...o,
3538
+ widgets: ((x = o.widgets) == null ? void 0 : x.map((y, p) => p === h ? { widgetId: m, fullWidth: !1 } : y)) ?? []
3539
+ });
3540
+ }, [o, a]), l = S((h) => {
3541
+ var m, g;
3542
+ ((m = o.widgets[h]) == null ? void 0 : m.widgetId) === -1 ? a({
3543
+ ...o,
3544
+ widgets: ((g = o.widgets) == null ? void 0 : g.filter((x, y) => y !== h)) ?? []
3545
+ }) : i(h, -1);
3546
+ }, [o, a, i]), c = S((h) => {
3547
+ var m;
3548
+ a({
3549
+ ...o,
3550
+ widgets: ((m = o.widgets) == null ? void 0 : m.map((g, x) => x === h ? { ...g, fullWidth: !g.fullWidth } : g)) ?? []
3551
+ });
3552
+ }, [o, a]), u = S((h, m, g) => h ? /* @__PURE__ */ s.jsxs("div", { className: w(ue.widgetWrapper, {
3553
+ [ue.widgetEdit]: e && h.id !== -1
3554
+ }, { [ue.fullWidth]: g }), children: [
3555
+ e && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3556
+ /* @__PURE__ */ s.jsx(z, { color: "danger", onClick: () => l(m), className: w(ue.removeIcon), children: /* @__PURE__ */ s.jsx(dn, {}) }),
3557
+ /* @__PURE__ */ s.jsx(z, { color: g ? "danger" : "primary", onClick: () => c(m), className: w(ue.fullWidthIcon), children: /* @__PURE__ */ s.jsx(Kr, {}) })
3558
+ ] }),
3559
+ h.id === -1 ? e && /* @__PURE__ */ s.jsx("div", { className: ue.widgetWrapper, children: /* @__PURE__ */ s.jsx(Qt, { availableWidgets: t, onAdd: (x) => i(m, x), texts: r }) }) : /* @__PURE__ */ s.jsx(Li, { title: h.title, children: /* @__PURE__ */ s.jsx(h.WidgetElement, { title: h.title }) }),
3560
+ h.id > -1 && e && /* @__PURE__ */ s.jsx("div", { className: ue.widgetEditOverlay })
3561
+ ] }, m) : /* @__PURE__ */ s.jsx(s.Fragment, {}), [
3562
+ e,
3563
+ i,
3564
+ l,
3565
+ c,
3566
+ t,
3567
+ r
3568
+ ]);
3569
+ return /* @__PURE__ */ s.jsx("div", { className: ue.dashboard, children: /* @__PURE__ */ s.jsxs("div", { className: ue.widgetsGrid, children: [
3570
+ (d = o.widgets) == null ? void 0 : d.map((h, m) => u(t.find((g) => g.id === h.widgetId), m, h.fullWidth)),
3571
+ e && /* @__PURE__ */ s.jsx(Qt, { availableWidgets: t, onAdd: (h) => {
3572
+ var m;
3573
+ return i((m = o.widgets) == null ? void 0 : m.length, h);
3574
+ }, texts: r })
3575
+ ] }) });
3576
+ }, Yi = "_badge_nhser_1", qi = "_sm_nhser_1", Hi = "_md_nhser_4", Bi = "_lg_nhser_7", Jt = {
3577
+ badge: Yi,
3578
+ sm: qi,
3579
+ md: Hi,
3580
+ lg: Bi
3581
+ }, zl = ({ children: t, color: e = "primary", size: n = "md", className: r }) => /* @__PURE__ */ s.jsx("span", { className: w(`luminus-badge badge bg-${e} ${r ?? ""}`, Jt.badge, Jt[n]), children: t }), Vi = "_collapse-icon_1ahhn_1", Gi = "_collapsed_1ahhn_6", Zt = {
3582
+ "collapse-icon": "_collapse-icon_1ahhn_1",
3583
+ collapseIcon: Vi,
3584
+ collapsed: Gi
3585
+ }, Kl = ({ title: t, children: e, className: n, ...r }) => {
3586
+ const o = r.controlled ? !1 : r.defaultOpen ?? !1, [a, i] = P(o), l = r.controlled ? r.isOpen : a;
3587
+ return O(() => {
3588
+ i(o);
3589
+ }, [o]), /* @__PURE__ */ s.jsxs("div", { className: n ?? "", children: [
3590
+ /* @__PURE__ */ s.jsxs("div", { role: "button", className: "d-flex align-items-center justify-content-between pb-3 pt-2", onClick: () => r.controlled ? r.onToggle(!r.isOpen) : i(!a), children: [
3591
+ /* @__PURE__ */ s.jsx(U, { variant: "h6", children: t }),
3592
+ /* @__PURE__ */ s.jsx(hn, { className: w(Zt.collapseIcon, {
3593
+ [Zt.collapsed]: l
3594
+ }) })
3595
+ ] }),
3596
+ /* @__PURE__ */ s.jsx(In, { in: l, children: /* @__PURE__ */ s.jsx("div", { children: e }) }),
3597
+ /* @__PURE__ */ s.jsx("hr", { className: `my-0 ${l ? "mt-3" : ""}` })
3598
+ ] });
3599
+ }, Ui = "_feedback_esh1j_1", zi = "_feedback-spacer_esh1j_8", en = {
3600
+ feedback: Ui,
3601
+ "feedback-spacer": "_feedback-spacer_esh1j_8",
3602
+ feedbackSpacer: zi
3603
+ }, we = ({ message: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3604
+ /* @__PURE__ */ s.jsx("div", { className: w("invalid-feedback luminus-invalid-feedback", en.feedback), children: t }),
3605
+ /* @__PURE__ */ s.jsx("div", { className: w("invalid-feedback-spacer", en.feedbackSpacer), children: t })
3606
+ ] });
3607
+ function Ki(t, e, n) {
3608
+ var r = this, o = q(null), a = q(0), i = q(null), l = q([]), c = q(), u = q(), d = q(t), h = q(!0);
3609
+ d.current = t;
3610
+ var m = typeof window < "u", g = !e && e !== 0 && m;
3611
+ if (typeof t != "function")
3612
+ throw new TypeError("Expected a function");
3613
+ e = +e || 0;
3614
+ var x = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, p = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, j = p ? Math.max(+n.maxWait || 0, e) : null;
3615
+ O(function() {
3616
+ return h.current = !0, function() {
3617
+ h.current = !1;
3618
+ };
3619
+ }, []);
3620
+ var f = V(function() {
3621
+ var k = function(I) {
3622
+ var b = l.current, $ = c.current;
3623
+ return l.current = c.current = null, a.current = I, u.current = d.current.apply($, b);
3624
+ }, _ = function(I, b) {
3625
+ g && cancelAnimationFrame(i.current), i.current = g ? requestAnimationFrame(I) : setTimeout(I, b);
3626
+ }, C = function(I) {
3627
+ if (!h.current)
3628
+ return !1;
3629
+ var b = I - o.current;
3630
+ return !o.current || b >= e || b < 0 || p && I - a.current >= j;
3631
+ }, N = function(I) {
3632
+ return i.current = null, y && l.current ? k(I) : (l.current = c.current = null, u.current);
3633
+ }, T = function I() {
3634
+ var b = Date.now();
3635
+ if (C(b))
3636
+ return N(b);
3637
+ if (h.current) {
3638
+ var $ = e - (b - o.current), F = p ? Math.min($, j - (b - a.current)) : $;
3639
+ _(I, F);
3640
+ }
3641
+ }, E = function() {
3642
+ if (m || v) {
3643
+ var I = Date.now(), b = C(I);
3644
+ if (l.current = [].slice.call(arguments), c.current = r, o.current = I, b) {
3645
+ if (!i.current && h.current)
3646
+ return a.current = o.current, _(T, e), x ? k(o.current) : u.current;
3647
+ if (p)
3648
+ return _(T, e), k(o.current);
3649
+ }
3650
+ return i.current || _(T, e), u.current;
3651
+ }
3652
+ };
3653
+ return E.cancel = function() {
3654
+ i.current && (g ? cancelAnimationFrame(i.current) : clearTimeout(i.current)), a.current = 0, l.current = o.current = c.current = i.current = null;
3655
+ }, E.isPending = function() {
3656
+ return !!i.current;
3657
+ }, E.flush = function() {
3658
+ return i.current ? N(Date.now()) : u.current;
3659
+ }, E;
3660
+ }, [x, p, e, j, y, g, m, v]);
3661
+ return f;
3662
+ }
3663
+ function Qi(t, e) {
3664
+ return t === e;
3665
+ }
3666
+ function Xi(t, e) {
3667
+ return e;
3668
+ }
3669
+ function wr(t, e, n) {
3670
+ var r = Qi, o = pn(Xi, t), a = o[0], i = o[1], l = Ki(S(function(u) {
3671
+ return i(u);
3672
+ }, [i]), e, n), c = q(t);
3673
+ return r(c.current, t) || (l(t), c.current = t), [a, l];
3674
+ }
3675
+ const Ji = "_wrapper_uccrb_1", Zi = "_open_uccrb_9", ec = "_dropdown_uccrb_13", tc = "_search-input-container_uccrb_19", nc = "_search-input_uccrb_19", rc = "_loading-container_uccrb_25", oc = "_items-container_uccrb_32", sc = "_header-row_uccrb_38", ac = "_item_uccrb_32", ic = "_name_uccrb_57", cc = "_column-item_uccrb_62", lc = "_icon_uccrb_66", uc = "_clear-button_uccrb_74", oe = {
3676
+ wrapper: Ji,
3677
+ open: Zi,
3678
+ dropdown: ec,
3679
+ "search-input-container": "_search-input-container_uccrb_19",
3680
+ searchInputContainer: tc,
3681
+ "search-input": "_search-input_uccrb_19",
3682
+ searchInput: nc,
3683
+ "loading-container": "_loading-container_uccrb_25",
3684
+ loadingContainer: rc,
3685
+ "items-container": "_items-container_uccrb_32",
3686
+ itemsContainer: oc,
3687
+ "header-row": "_header-row_uccrb_38",
3688
+ headerRow: sc,
3689
+ item: ac,
3690
+ name: ic,
3691
+ "column-item": "_column-item_uccrb_62",
3692
+ columnItem: cc,
3693
+ icon: lc,
3694
+ "clear-button": "_clear-button_uccrb_74",
3695
+ clearButton: uc
3696
+ }, Nt = ({ show: t, onCancel: e, items: n, currentSelection: r, onSelectionChange: o, onSearchQueryChange: a, texts: i, itemsNameWidth: l, additionalColumns: c, displayIdAsName: u = !1, autoHideSearch: d = !1, allItemsLength: h, disabled: m, isLoading: g = !1, inputRef: x }) => {
3697
+ var Y;
3698
+ const y = q(null), p = q(null), v = q(null), j = q(null), [f, k] = P(""), [_] = wr(f, 500), [, C] = P(!1), N = (Y = x.current) == null ? void 0 : Y.getBoundingClientRect(), T = (N == null ? void 0 : N.x) ?? 0, E = ((N == null ? void 0 : N.x) ?? 0) + ((N == null ? void 0 : N.width) ?? 0), I = (N == null ? void 0 : N.y) ?? 0, b = ((N == null ? void 0 : N.y) ?? 0) + ((N == null ? void 0 : N.height) ?? 0), $ = (N == null ? void 0 : N.width) ?? 0, F = (N == null ? void 0 : N.height) ?? 0, W = 5, ne = V(() => T ? T > window.innerWidth / 2 : !1, [T]), G = V(() => I ? I > window.innerHeight / 2 : !1, [I]);
3699
+ O(() => {
3700
+ var A;
3701
+ t && ((A = v.current) == null || A.focus());
3702
+ }, [v, t]), O(() => {
3703
+ t || k("");
3704
+ }, [t]), O(() => {
3705
+ a(_);
3706
+ }, [_, a]);
3707
+ const [M, K] = P(null);
3708
+ O(() => {
3709
+ t && n.length > 0 ? K(0) : K(null);
3710
+ }, [n, t]);
3711
+ const re = V(() => M !== null ? n.at(M) ?? null : null, [M, n]), Q = S((A, X) => {
3712
+ var Ct, $t;
3713
+ const ce = document.getElementById(`item-${A}`);
3714
+ if (ce) {
3715
+ const It = ce.clientHeight ?? 0;
3716
+ X === "down" ? (Ct = j.current) == null || Ct.scrollBy({
3717
+ left: 0,
3718
+ top: It,
3719
+ behavior: "smooth"
3720
+ }) : ($t = j.current) == null || $t.scrollBy({
3721
+ left: 0,
3722
+ top: -It,
3723
+ behavior: "smooth"
3724
+ });
3725
+ }
3726
+ }, []), D = S((A) => {
3727
+ if (M === null || m)
3728
+ return;
3729
+ const X = M + A;
3730
+ X < 0 || X >= n.length || K((ce) => (ce !== null && Q(ce, A > 0 ? "down" : "up"), X));
3731
+ }, [M, n, m, Q]), Z = S((A) => {
3732
+ if (t)
3733
+ switch (A.key) {
3734
+ case "Escape":
3735
+ A.stopPropagation(), A.preventDefault(), e();
3736
+ break;
3737
+ case "Enter":
3738
+ A.stopPropagation(), A.preventDefault(), m || o(re);
3739
+ break;
3740
+ case "ArrowUp":
3741
+ A.stopPropagation(), A.preventDefault(), D(-1);
3742
+ break;
3743
+ case "ArrowDown":
3744
+ A.stopPropagation(), A.preventDefault(), D(1);
3745
+ break;
3746
+ }
3747
+ }, [e, t, D, re, m, o]), se = S(() => {
3748
+ C((A) => !A);
3749
+ }, []);
3750
+ O(() => (window.addEventListener("scroll", se), () => {
3751
+ window.removeEventListener("scroll", se);
3752
+ }), [se]), O(() => (window.addEventListener("resize", se), () => {
3753
+ window.removeEventListener("resize", se);
3754
+ }), [se]), bn(Z), _n([y, p], e);
3755
+ const Re = l ?? (c && c.length > 0 ? 250 : 0), Ne = (c == null ? void 0 : c.reduce((A, X) => A + (X.width ?? 100), 0)) ?? 0, Se = `calc(max(${$}px, ${Re}px + ${Ne}px))`;
3756
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3757
+ /* @__PURE__ */ s.jsx(yr, { show: t, onClick: e }),
3758
+ r && t && !m && /* @__PURE__ */ s.jsx("button", { ref: p, type: "button", className: w("luminus-dropdown-picker-clear-button", oe.clearButton), onClick: () => !m && o(null), style: {
3759
+ top: `calc(${I}px + ${F / 2}px - 12px)`,
3760
+ left: `calc(${T}px - 24px - 8px)`
3761
+ }, children: /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ s.jsx(dn, { size: 16 }) }) }),
3762
+ /* @__PURE__ */ s.jsx("div", { className: w("luminus-dropdown-picker", oe.wrapper, {
3763
+ [oe.open]: t
3764
+ }), style: {
3765
+ top: G ? `calc(${I}px - 50vh - 8px)` : `calc(${b}px + 8px)`,
3766
+ left: ne ? `calc(${E}px - ${Se})` : T,
3767
+ right: ne ? `${E}px` : `calc(${T}px + ${Se})`,
3768
+ width: Se,
3769
+ justifyContent: G ? "flex-end" : "flex-start"
3770
+ }, children: /* @__PURE__ */ s.jsx("div", { ref: y, className: w("shadow rounded", oe.dropdown), children: !m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
3771
+ d && (h ?? n.length) <= W ? null : /* @__PURE__ */ s.jsx("div", { className: w("search-input-container border-bottom", oe.searchInputContainer), children: /* @__PURE__ */ s.jsx(J.Control, { ref: v, type: "search", size: "sm", className: oe.searchInput, placeholder: i.searchPlaceholder, value: f, onChange: (A) => {
3772
+ var X;
3773
+ return k(((X = A.target) == null ? void 0 : X.value) ?? "");
3774
+ } }) }),
3775
+ g ? /* @__PURE__ */ s.jsx("div", { className: oe.loadingContainer, children: /* @__PURE__ */ s.jsx(jt, { animation: "border", variant: "primary" }) }) : n.length > 0 && /* @__PURE__ */ s.jsxs("div", { ref: j, className: w("items", oe.itemsContainer), children: [
3776
+ c && c.length > 0 && /* @__PURE__ */ s.jsxs("div", { className: w("header-row border-bottom", oe.headerRow), children: [
3777
+ /* @__PURE__ */ s.jsx("div", { className: oe.name }),
3778
+ c == null ? void 0 : c.map((A) => /* @__PURE__ */ s.jsx("div", { className: oe.columnItem, style: {
3779
+ width: `${A.width ?? 100}px`,
3780
+ minWidth: `${A.width ?? 100}px`,
3781
+ maxWidth: `${A.width ?? 100}px`
3782
+ }, children: /* @__PURE__ */ s.jsx(U, { variant: "caption", children: A.name }) }, A.key))
3783
+ ] }),
3784
+ n == null ? void 0 : n.map((A, X) => /* @__PURE__ */ s.jsxs("button", { id: `item-${X}`, type: "button", className: w("item cursor-pointer", oe.item, {
3785
+ [oe.focused]: M === X
3786
+ }, {
3787
+ focused: M === X
3788
+ }), onClick: () => !m && o(A), onMouseEnter: () => K(X), children: [
3789
+ /* @__PURE__ */ s.jsx("div", { className: oe.name, children: /* @__PURE__ */ s.jsx(U, { variant: "body2", children: u ? A.id : A.name }) }),
3790
+ c == null ? void 0 : c.map((ce) => /* @__PURE__ */ s.jsx("div", { className: oe.columnItem, style: {
3791
+ width: `${ce.width ?? 100}px`,
3792
+ minWidth: `${ce.width ?? 100}px`,
3793
+ maxWidth: `${ce.width ?? 100}px`
3794
+ }, children: /* @__PURE__ */ s.jsx(U, { variant: "caption", className: w("text-muted"), children: A.additionalColumns && A.additionalColumns[ce.key] }) }, ce.key))
3795
+ ] }, A.id))
3796
+ ] })
3797
+ ] }) }) })
3798
+ ] });
3799
+ }, dc = ({ searchTypes: t, selectedType: e, setSelectedType: n }) => /* @__PURE__ */ s.jsx(vi, { toggle: /* @__PURE__ */ s.jsx(mi, { as: Qr, icon: null, text: e == null ? void 0 : e.text }), children: t.map((r) => /* @__PURE__ */ s.jsx(fi, { icon: null, onClick: () => n(r.key), children: r.text }, r.key)) }), hc = "_dropdown_1ddrg_1", fc = "_open_1ddrg_12", mc = "_loading-container_1ddrg_15", pc = "_groups-container_1ddrg_22", gc = "_group_1ddrg_22", wc = "_header_1ddrg_26", xc = "_item_1ddrg_33", xe = {
3800
+ dropdown: hc,
3801
+ open: fc,
3802
+ "loading-container": "_loading-container_1ddrg_15",
3803
+ loadingContainer: mc,
3804
+ "groups-container": "_groups-container_1ddrg_22",
3805
+ groupsContainer: pc,
3806
+ group: gc,
3807
+ header: wc,
3808
+ item: xc
3809
+ }, vc = ({ show: t, query: e, onCancel: n, groups: r, isLoading: o, searchTypes: a }) => {
3810
+ const { LinkComponent: i, appSearchTexts: l } = L(le), c = q(null), u = S((d) => {
3811
+ var m;
3812
+ const h = (m = a.find((g) => g.key === d.type)) == null ? void 0 : m.toPath;
3813
+ return h ? `${h}/${d.searchKey}` : "/not-found";
3814
+ }, [a]);
3815
+ return _n([c], n), /* @__PURE__ */ s.jsx("div", { ref: c, className: w("luminus-app-search-dropdown shadow rounded", xe.dropdown, {
3816
+ [xe.open]: t
3817
+ }), children: o ? /* @__PURE__ */ s.jsx("div", { className: xe.loadingContainer, children: /* @__PURE__ */ s.jsx(jt, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ s.jsx("div", { className: xe.groupsContainer, children: r == null ? void 0 : r.map((d) => {
3818
+ var h;
3819
+ return /* @__PURE__ */ s.jsxs("div", { className: w(xe.group), children: [
3820
+ /* @__PURE__ */ s.jsxs(i, { to: `/search?query=${e}&type=${d.key.category}`, className: w("group-header", xe.header), onClick: n, children: [
3821
+ /* @__PURE__ */ s.jsx(U, { variant: "body", className: "text-primary", children: d.key.categoryName }),
3822
+ /* @__PURE__ */ s.jsxs(U, { variant: "caption", children: [
3823
+ d.items.length,
3824
+ " ",
3825
+ l.amountFrom,
3826
+ " ",
3827
+ d.key.totalCount
3828
+ ] })
3829
+ ] }),
3830
+ (h = d.items) == null ? void 0 : h.map((m, g) => /* @__PURE__ */ s.jsxs(
3831
+ i,
3832
+ {
3833
+ to: u(m),
3834
+ className: w("search-item d-flex gap-3 align-items-center justify-content-between", xe.item),
3835
+ onClick: n,
3836
+ children: [
3837
+ /* @__PURE__ */ s.jsx(U, { variant: "body2", className: "text-nowrap text-truncate", children: m.name }),
3838
+ /* @__PURE__ */ s.jsx(U, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ s.jsx(Xr, {}) })
3839
+ ]
3840
+ },
3841
+ g
3842
+ ))
3843
+ ] }, d.key.category);
3844
+ }) }) });
3845
+ }, yc = "_input-group_1lkfy_1", bc = "_input-group-text_1lkfy_5", _c = "_left_1lkfy_9", jc = "_right_1lkfy_13", kc = "_input_1lkfy_1", Nc = "_submit-button_1lkfy_20", ve = {
3846
+ "input-group": "_input-group_1lkfy_1",
3847
+ inputGroup: yc,
3848
+ "input-group-text": "_input-group-text_1lkfy_5",
3849
+ inputGroupText: bc,
3850
+ left: _c,
3851
+ right: jc,
3852
+ input: kc,
3853
+ "submit-button": "_submit-button_1lkfy_20",
3854
+ submitButton: Nc
3855
+ }, Cc = (t, e) => {
3856
+ const n = fn(), [r, o] = P(!1), [a, i] = P([]), l = !t || !t.key, c = S(() => {
3857
+ if (e.length < 3) {
3858
+ i([]);
3859
+ return;
3860
+ }
3861
+ o(!0), n.get(`/search/${e}?count=${l ? 5 : 20}${l ? "" : `&type=${t.key}`}`).then(({ data: u }) => {
3862
+ i(u), o(!1);
3863
+ }).catch(() => {
3864
+ o(!1);
3865
+ });
3866
+ }, [t, e, n, l]);
3867
+ return O(() => {
3868
+ c();
3869
+ }, [c]), { isLoading: r, searchItems: a };
3870
+ }, Ql = ({ searchTypes: t, navigateFunction: e, currentPath: n }) => {
3871
+ var y;
3872
+ const { appSearchTexts: r } = L(le), [o, a] = P(t.length > 0 ? ((y = t.at(0)) == null ? void 0 : y.key) ?? null : null), i = V(() => t.find((p) => p.key === o) ?? null, [t, o]), [l, c] = P(""), [u, d] = wr(l, 500), { isLoading: h, searchItems: m } = Cc(i, u), [g, x] = P(!1);
3873
+ return O(() => {
3874
+ (m.length > 0 || h) && x(!0);
3875
+ }, [m, h]), O(() => {
3876
+ c("");
3877
+ }, [n]), /* @__PURE__ */ s.jsx(J, { onSubmit: (p) => {
3878
+ p.preventDefault(), p.stopPropagation(), d.flush(), x(!1), l.length > 2 && e(`/search?query=${l}${i && i.key && `&type=${i == null ? void 0 : i.key}`}`);
3879
+ }, children: /* @__PURE__ */ s.jsxs(ot, { className: ve.inputGroup, children: [
3880
+ /* @__PURE__ */ s.jsx(ot.Text, { className: w("p-1 rounded", ve.inputGroupText, ve.left), children: /* @__PURE__ */ s.jsx(dc, { searchTypes: t, selectedType: i, setSelectedType: a }) }),
3881
+ /* @__PURE__ */ s.jsx(J.Control, { placeholder: r.searchPlaceholder, type: "text", size: "sm", className: w("luminus-app-search-input", ve.input), value: l, onChange: (p) => {
3882
+ var v;
3883
+ return c(((v = p.target) == null ? void 0 : v.value) ?? "");
3884
+ }, onFocus: () => m.length > 0 && x(!0) }),
3885
+ /* @__PURE__ */ s.jsx(ot.Text, { className: w("p-0 rounded", ve.inputGroupText, ve.right), children: /* @__PURE__ */ s.jsx("button", { type: "submit", className: w("text-primary", ve.submitButton), children: /* @__PURE__ */ s.jsx(di, {}) }) }),
3886
+ /* @__PURE__ */ s.jsx(vc, { query: u, searchTypes: t, show: g, onCancel: () => x(!1), groups: m, isLoading: h })
3887
+ ] }) });
3888
+ }, $c = "_card_19733_1", Ic = "_header_19733_6", Sc = "_header-content_19733_13", Tc = "_title_19733_19", Ec = "_collapse-icon_19733_22", Dc = "_collapsed_19733_27", Oc = "_content_19733_30", ye = {
3889
+ card: $c,
3890
+ header: Ic,
3891
+ "header-content": "_header-content_19733_13",
3892
+ headerContent: Sc,
3893
+ title: Tc,
3894
+ "collapse-icon": "_collapse-icon_19733_22",
3895
+ collapseIcon: Ec,
3896
+ collapsed: Dc,
3897
+ content: Oc
3898
+ }, Pc = ({ title: t, headerContent: e, children: n, className: r, headerClassName: o, contentClassName: a, ...i }) => {
3899
+ const l = i.collapsible ? i.controlled ? !1 : i.defaultOpen ?? !1 : !0, [c, u] = P(l), d = i.collapsible ? i.controlled ? i.isOpen : c : !0;
3900
+ return O(() => {
3901
+ u(l);
3902
+ }, [l]), /* @__PURE__ */ s.jsxs("div", { className: w("luminus-card rounded shadow-sm", ye.card, {
3903
+ [r ?? ""]: r
3904
+ }), children: [
3905
+ /* @__PURE__ */ s.jsxs("div", { role: i.collapsible ? "button" : void 0, className: w("header", ye.header, {
3906
+ [o ?? ""]: o
3907
+ }), onClick: () => {
3908
+ i.collapsible && (i.controlled ? i.onToggle(!i.isOpen) : u(!c));
3909
+ }, children: [
3910
+ /* @__PURE__ */ s.jsxs("div", { className: w("header-content", ye.headerContent), children: [
3911
+ /* @__PURE__ */ s.jsx(U, { variant: "h6", className: w("text-primary", ye.title), children: t }),
3912
+ e ?? null
3913
+ ] }),
3914
+ i.collapsible && /* @__PURE__ */ s.jsx(hn, { className: w(ye.collapseIcon, {
3915
+ [ye.collapsed]: d
3916
+ }) })
3917
+ ] }),
3918
+ /* @__PURE__ */ s.jsx(In, { in: d, children: /* @__PURE__ */ s.jsx("div", { className: w("card-content border-top border-primary", ye.content, {
3919
+ [a ?? ""]: a
3920
+ }), children: n }) })
3921
+ ] });
3922
+ };
3923
+ var Ac = !!(typeof window < "u" && window.document && window.document.createElement), Mc = /* @__PURE__ */ function() {
3924
+ function t(e, n) {
3925
+ for (var r = 0; r < n.length; r++) {
3926
+ var o = n[r];
3927
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
3928
+ }
3929
+ }
3930
+ return function(e, n, r) {
3931
+ return n && t(e.prototype, n), r && t(e, r), e;
3932
+ };
3933
+ }();
3934
+ function Fc(t, e) {
3935
+ if (!(t instanceof e))
3936
+ throw new TypeError("Cannot call a class as a function");
3937
+ }
3938
+ function Wc(t, e) {
3939
+ if (!t)
3940
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3941
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
3942
+ }
3943
+ function Rc(t, e) {
3944
+ if (typeof e != "function" && e !== null)
3945
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
3946
+ 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);
3947
+ }
3948
+ var xr = function(t) {
3949
+ Rc(e, t);
3950
+ function e() {
3951
+ return Fc(this, e), Wc(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
3952
+ }
3953
+ return Mc(e, [{
3954
+ key: "componentWillUnmount",
3955
+ value: function() {
3956
+ this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null;
3957
+ }
3958
+ }, {
3959
+ key: "render",
3960
+ value: function() {
3961
+ return Ac ? (!this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode)), Ge.createPortal(this.props.children, this.props.node || this.defaultNode)) : null;
3962
+ }
3963
+ }]), e;
3964
+ }(ee.Component);
3965
+ xr.propTypes = {
3966
+ children: je.node.isRequired,
3967
+ node: je.any
3968
+ };
3969
+ var Lc = /* @__PURE__ */ function() {
3970
+ function t(e, n) {
3971
+ for (var r = 0; r < n.length; r++) {
3972
+ var o = n[r];
3973
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
3974
+ }
3975
+ }
3976
+ return function(e, n, r) {
3977
+ return n && t(e.prototype, n), r && t(e, r), e;
3978
+ };
3979
+ }();
3980
+ function Yc(t, e) {
3981
+ if (!(t instanceof e))
3982
+ throw new TypeError("Cannot call a class as a function");
3983
+ }
3984
+ function qc(t, e) {
3985
+ if (!t)
3986
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3987
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
3988
+ }
3989
+ function Hc(t, e) {
3990
+ if (typeof e != "function" && e !== null)
3991
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
3992
+ 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);
3993
+ }
3994
+ var vr = function(t) {
3995
+ Hc(e, t);
3996
+ function e() {
3997
+ return Yc(this, e), qc(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
3998
+ }
3999
+ return Lc(e, [{
4000
+ key: "componentDidMount",
4001
+ value: function() {
4002
+ this.renderPortal();
4003
+ }
4004
+ }, {
4005
+ key: "componentDidUpdate",
4006
+ value: function(r) {
4007
+ this.renderPortal();
4008
+ }
4009
+ }, {
4010
+ key: "componentWillUnmount",
4011
+ value: function() {
4012
+ Ge.unmountComponentAtNode(this.defaultNode || this.props.node), this.defaultNode && document.body.removeChild(this.defaultNode), this.defaultNode = null, this.portal = null;
4013
+ }
4014
+ }, {
4015
+ key: "renderPortal",
4016
+ value: function(r) {
4017
+ !this.props.node && !this.defaultNode && (this.defaultNode = document.createElement("div"), document.body.appendChild(this.defaultNode));
4018
+ var o = this.props.children;
4019
+ typeof this.props.children.type == "function" && (o = ee.cloneElement(this.props.children)), this.portal = Ge.unstable_renderSubtreeIntoContainer(this, o, this.props.node || this.defaultNode);
4020
+ }
4021
+ }, {
4022
+ key: "render",
4023
+ value: function() {
4024
+ return null;
4025
+ }
4026
+ }]), e;
4027
+ }(ee.Component);
4028
+ vr.propTypes = {
4029
+ children: je.node.isRequired,
4030
+ node: je.any
4031
+ };
4032
+ var ft = void 0;
4033
+ Ge.createPortal ? ft = xr : ft = vr;
4034
+ const Bc = "_lightbox_14acg_1", Vc = "_show_14acg_16", Gc = "_header_14acg_20", Uc = "_photo-actions_14acg_26", zc = "_photo-container_14acg_31", Kc = "_photo_14acg_26", Qc = "_nav-button_14acg_41", Xc = "_photos-preview_14acg_49", Jc = "_selected_14acg_62", Zc = "_default-indicator_14acg_66", ae = {
4035
+ lightbox: Bc,
4036
+ show: Vc,
4037
+ header: Gc,
4038
+ "photo-actions": "_photo-actions_14acg_26",
4039
+ photoActions: Uc,
4040
+ "photo-container": "_photo-container_14acg_31",
4041
+ photoContainer: zc,
4042
+ photo: Kc,
4043
+ "nav-button": "_nav-button_14acg_41",
4044
+ navButton: Qc,
4045
+ "photos-preview": "_photos-preview_14acg_49",
4046
+ photosPreview: Xc,
4047
+ selected: Jc,
4048
+ "default-indicator": "_default-indicator_14acg_66",
4049
+ defaultIndicator: Zc
4050
+ }, el = "_backdrop_3huvf_1", tl = "_show_3huvf_11", tn = {
4051
+ backdrop: el,
4052
+ show: tl
4053
+ }, yr = ({ show: t, onClick: e }) => /* @__PURE__ */ s.jsx("div", { className: w("luminus-backdrop", tn.backdrop, {
4054
+ [tn.show]: t
4055
+ }), onClick: () => e && e() }), br = ({ src: t, alt: e, baseUrl: n, customToken: r, placeholder: o, ...a }) => /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: t ?? o }), nl = ({ show: t, onClose: e, photos: n, defaultIndex: r, uploadPhotosText: o, noPhotosText: a, onUploadPhotos: i, photoActions: l, baseUrl: c, customToken: u, placeholder: d, ImgComponent: h = br }) => {
4056
+ const m = q(null), [g, x] = P(r), y = n.at(g), p = g > 0, v = g < n.length - 1;
4057
+ O(() => {
4058
+ t && x(r);
4059
+ }, [r, t]), O(() => {
4060
+ g >= n.length && x(n.length - 1);
4061
+ }, [n, g]);
4062
+ const j = S((f) => {
4063
+ switch (f.key) {
4064
+ case "ArrowLeft":
4065
+ f.stopPropagation(), p && x((k) => k - 1);
4066
+ break;
4067
+ case "ArrowRight":
4068
+ f.stopPropagation(), v && x((k) => k + 1);
4069
+ break;
4070
+ case "Escape":
4071
+ f.stopPropagation(), e();
4072
+ break;
4073
+ }
4074
+ }, [v, p, e]);
4075
+ return bn(j), /* @__PURE__ */ s.jsxs(ft, { children: [
4076
+ /* @__PURE__ */ s.jsx(yr, { show: t, onClick: e }),
4077
+ /* @__PURE__ */ s.jsxs("div", { ref: m, className: w("luminus-lightbox rounded shadow", ae.lightbox, {
4078
+ [ae.show]: t
4079
+ }), children: [
4080
+ /* @__PURE__ */ s.jsxs("div", { className: ae.header, children: [
4081
+ /* @__PURE__ */ s.jsxs("div", { className: w("rounded", ae.photoActions), children: [
4082
+ i && /* @__PURE__ */ s.jsx(hr, { accept: ".jpg,.jpeg,.png", onUpload: (f) => {
4083
+ f.length > 0 && i(Array.from(f));
4084
+ }, icon: /* @__PURE__ */ s.jsx(mn, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: o ?? null }),
4085
+ y && (l == null ? void 0 : l.map(({ label: f, onClick: k, ..._ }, C) => /* @__PURE__ */ s.jsx(
4086
+ ht,
4087
+ {
4088
+ onClick: () => k(y.id),
4089
+ ..._,
4090
+ children: f
4091
+ },
4092
+ `action-${C}`
4093
+ )))
4094
+ ] }),
4095
+ /* @__PURE__ */ s.jsx("div", { role: "button", onClick: e, children: /* @__PURE__ */ s.jsx(de, { style: { fontSize: "32px" } }) })
4096
+ ] }),
4097
+ n.length === 0 && /* @__PURE__ */ s.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ s.jsx(U, { variant: "body", children: a ?? "No photos available" }) }),
4098
+ y && /* @__PURE__ */ s.jsxs("div", { className: ae.photoContainer, children: [
4099
+ /* @__PURE__ */ s.jsx("div", { role: p ? "button" : void 0, className: w("align-items-start", ae.navButton), onClick: () => p && x((f) => f - 1), children: p && /* @__PURE__ */ s.jsx(gt, { style: { fontSize: "40px" } }) }),
4100
+ /* @__PURE__ */ s.jsx(h, { src: y.lgSrc, alt: y.alt, className: w("rounded", ae.photo), baseUrl: c, customToken: u, placeholder: d }),
4101
+ /* @__PURE__ */ s.jsx("div", { role: v ? "button" : void 0, className: w("align-items-end", ae.navButton), onClick: () => v && x((f) => f + 1), children: v && /* @__PURE__ */ s.jsx(wt, { style: { fontSize: "40px" } }) })
4102
+ ] }),
4103
+ /* @__PURE__ */ s.jsx("div", { className: ae.photosPreview, children: n.map((f, k) => /* @__PURE__ */ s.jsxs("div", { role: "button", onClick: () => x(k), className: "position-relative", children: [
4104
+ /* @__PURE__ */ s.jsx(h, { role: k !== g ? "button" : void 0, src: f.smSrc, alt: f.alt, className: w("rounded", ae.photo, {
4105
+ [ae.selected]: k === g
4106
+ }), baseUrl: c, customToken: u, placeholder: d }, f.id),
4107
+ f.isDefault && /* @__PURE__ */ s.jsx("div", { className: w("text-primary", ae.defaultIndicator), children: /* @__PURE__ */ s.jsx(Jr, {}) })
4108
+ ] })) })
4109
+ ] })
4110
+ ] });
4111
+ }, Xl = ({ photos: t, onUploadPhotos: e, uploadPhotosText: n, photoActions: r, baseUrl: o, customToken: a, placeholder: i, ImgComponent: l = br }) => {
4112
+ const [c, u] = P(null), d = c !== null ? t[c] : null, [h, m] = P(!1);
4113
+ return O(() => {
4114
+ if (t.length === 0) {
4115
+ u(null), m(!1);
4116
+ return;
4117
+ }
4118
+ const g = t.findIndex((x) => x.isDefault);
4119
+ u(g > -1 ? g : 0);
4120
+ }, [t]), d ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4121
+ /* @__PURE__ */ s.jsx(l, { role: "button", src: d.smSrc, alt: d.alt, className: "rounded w-100", onClick: () => m(!0), baseUrl: o, customToken: a, placeholder: i }),
4122
+ /* @__PURE__ */ s.jsx(nl, { show: h, onClose: () => m(!1), photos: t, defaultIndex: c ?? 0, uploadPhotosText: n, onUploadPhotos: e, photoActions: r, baseUrl: o, customToken: a, placeholder: i, ImgComponent: l })
4123
+ ] }) : e ? /* @__PURE__ */ s.jsx(hr, { accept: ".jpg,.jpeg,.png", onUpload: (g) => {
4124
+ g.length > 0 && e(Array.from(g));
4125
+ }, icon: /* @__PURE__ */ s.jsx(mn, { style: { fontSize: 18 } }), multiple: !0, children: n ?? null }) : null;
4126
+ }, Jl = ({ appAccessPermissions: t, children: e }) => {
4127
+ const { NavigateComponent: n } = L(le), { useMsal: r, msalScopes: o } = L(Zr), { isAuthenticated: a } = eo(), { userLoginState: i } = L(to), l = i.state === no.LOGGING_IN, c = i.user && (t == null ? void 0 : t.every((u) => {
4128
+ var d, h;
4129
+ return (h = (d = i.user) == null ? void 0 : d.permissions) == null ? void 0 : h.includes(u);
4130
+ }));
4131
+ return r ? /* @__PURE__ */ s.jsx(Za, { interactionType: Ve.Redirect, authenticationRequest: { scopes: o }, children: l || !a() ? /* @__PURE__ */ s.jsx(At, {}) : i.user ? c ? /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ s.jsx(n, { to: "/no-user-login", replace: !0 }) }) : l ? /* @__PURE__ */ s.jsx(At, {}) : !a() || !i.user ? /* @__PURE__ */ s.jsx(n, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ s.jsx(n, { to: "/user-not-permitted", replace: !0 });
4132
+ }, Zl = (t) => {
4133
+ const { variant: e, children: n, className: r, size: o = "md", typographyVariant: a = o === "sm" ? "body2" : "body", ...i } = { ...t };
4134
+ return /* @__PURE__ */ s.jsx(Ms, { variant: e, className: `text-center ${o === "sm" ? "p-1" : o === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${r ?? ""}`, ...i, children: /* @__PURE__ */ s.jsx(U, { variant: a, children: n }) });
4135
+ }, eu = ({ version: t }) => /* @__PURE__ */ s.jsx("div", { className: "rounded", style: {
4136
+ position: "fixed",
4137
+ right: "0px",
4138
+ bottom: "0px",
4139
+ zIndex: "10000",
4140
+ backgroundColor: "rgba(255, 255, 255, 0.5)",
4141
+ padding: "4px",
4142
+ pointerEvents: "all"
4143
+ }, children: /* @__PURE__ */ s.jsxs(U, { variant: "caption", className: "w-100 text-end", children: [
4144
+ "verze ",
4145
+ t
4146
+ ] }) }), rl = "_submit-container_a9slg_1", ol = "_spacer_a9slg_14", nn = {
4147
+ "submit-container": "_submit-container_a9slg_1",
4148
+ submitContainer: rl,
4149
+ spacer: ol
4150
+ }, sl = ({ children: t, noSpacer: e = !1 }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4151
+ !e && /* @__PURE__ */ s.jsx("div", { className: nn.spacer }),
4152
+ /* @__PURE__ */ s.jsx("div", { className: w("luminus-floating-action-container shadow", nn.submitContainer), children: t })
4153
+ ] }), al = "_timeline_g1754_1", il = "_step-container_g1754_1", cl = "_step-date_g1754_1", ll = "_step-content_g1754_4", ul = "_content-header_g1754_8", dl = "_content-text_g1754_11", hl = "_step-icon_g1754_14", be = {
4154
+ timeline: al,
4155
+ "step-container": "_step-container_g1754_1",
4156
+ stepContainer: il,
4157
+ "step-date": "_step-date_g1754_1",
4158
+ stepDate: cl,
4159
+ "step-content": "_step-content_g1754_4",
4160
+ stepContent: ll,
4161
+ "content-header": "_content-header_g1754_8",
4162
+ contentHeader: ul,
4163
+ "content-text": "_content-text_g1754_11",
4164
+ contentText: dl,
4165
+ "step-icon": "_step-icon_g1754_14",
4166
+ stepIcon: hl
4167
+ }, tu = ({ steps: t }) => /* @__PURE__ */ s.jsx("div", { className: be.timeline, children: t.sort((e, n) => yo(e.date ?? /* @__PURE__ */ new Date(), n.date ?? /* @__PURE__ */ new Date())).map((e, n) => /* @__PURE__ */ s.jsxs("div", { className: w("row g-0 gx-3", be.stepContainer), children: [
4168
+ /* @__PURE__ */ s.jsx("div", { className: "col-3", children: e.date && /* @__PURE__ */ s.jsxs(U, { variant: "caption", className: w("h-100 d-flex flex-column align-items-end justify-content-center gap-0", be.stepDate), children: [
4169
+ /* @__PURE__ */ s.jsx("div", { children: ct(e.date, "dd.MM.yyyy") }),
4170
+ /* @__PURE__ */ s.jsx("div", { children: ct(e.date, "HH:mm") })
4171
+ ] }) }),
4172
+ /* @__PURE__ */ s.jsx("div", { className: "col-9", children: /* @__PURE__ */ s.jsxs("div", { className: w("h-100 d-flex flex-column gap-1 border-start border-2 p-3", be.stepContent), children: [
4173
+ /* @__PURE__ */ s.jsxs("div", { className: w("d-flex gap-2 align-items-center", be.contentHeader), children: [
4174
+ e.person && /* @__PURE__ */ s.jsx(un, { name: e.person.name ?? "", size: 22, fontSize: 12 }),
4175
+ typeof e.title == "string" ? /* @__PURE__ */ s.jsx(U, { variant: "body", className: "fw-bold", children: e.title }) : e.title
4176
+ ] }),
4177
+ e.text && /* @__PURE__ */ s.jsx(U, { variant: "body2", className: be.contentText, children: e.text }),
4178
+ /* @__PURE__ */ s.jsx("div", { className: w("text-primary", be.stepIcon), children: e.icon ?? /* @__PURE__ */ s.jsx(ro, {}) })
4179
+ ] }) })
4180
+ ] }, n)) }), fl = (t, e, n, r = !0) => {
4181
+ const o = fn({ silent: r, differentBaseUrl: e, customToken: n }), [a, i] = P(!1), [l, c] = P(null), u = S(async (d) => {
4182
+ i(!0), c(null), o.get(t, {
4183
+ signal: d,
4184
+ responseType: "blob"
4185
+ }).then((h) => {
4186
+ i(!1), c(h.data);
4187
+ }).catch(() => {
4188
+ i(!1), c(null);
4189
+ });
4190
+ }, [o, t]);
4191
+ return O(() => {
4192
+ const d = new AbortController();
4193
+ return u(d.signal), () => {
4194
+ d.abort();
4195
+ };
4196
+ }, [u]), { data: l, setData: c, reloadData: u, isLoading: a };
4197
+ }, nu = ({ src: t, alt: e, baseUrl: n, customToken: r, placeholder: o, ...a }) => {
4198
+ const { data: i } = fl(t, n, r), [l, c] = P(null);
4199
+ return O(() => {
4200
+ let u = null;
4201
+ return i !== null ? (u = URL.createObjectURL(i), c(u)) : c(null), () => {
4202
+ u !== null && URL.revokeObjectURL(u);
4203
+ };
4204
+ }, [i]), l === null && !o ? null : /* @__PURE__ */ s.jsx("img", { ...a, alt: e ?? "", src: l ?? o });
4205
+ };
4206
+ export {
4207
+ Zl as Alert,
4208
+ _l as ApiFileDownloadButton,
4209
+ Ql as AppSearch,
4210
+ Jl as AuthTemplate,
4211
+ un as AvatarIcon,
4212
+ yr as Backdrop,
4213
+ zl as Badge,
4214
+ Pc as Card,
4215
+ Cl as CheckInput,
4216
+ Kl as Collapse,
4217
+ ht as ContextButton,
4218
+ vi as Dropdown,
4219
+ ql as DropdownDivider,
4220
+ fi as DropdownItem,
4221
+ Sl as DropdownPicker,
4222
+ mi as DropdownToggle,
4223
+ Fi as ErrorBoundary,
4224
+ hr as FileUploadContextButton,
4225
+ Yl as FileUploadDropdownItem,
4226
+ sl as FloatingActionContainer,
4227
+ ei as FloatingFormSubmit,
4228
+ Ie as FloatingLabelInput,
4229
+ Ul as HomeDashboard,
4230
+ Dl as HookFormCheckInput,
4231
+ Ml as HookFormDropdownPicker,
4232
+ Fl as HookFormFileInput,
4233
+ Wl as HookFormFloatingSubmit,
4234
+ Ll as HookFormNumericStepperInput,
4235
+ Ol as HookFormRadioInput,
4236
+ Rl as HookFormSelectInput,
4237
+ Pl as HookFormTextAreaInput,
4238
+ Al as HookFormTextInput,
4239
+ Nl as HtmlTooltip,
4240
+ z as IconButton,
4241
+ nu as ImgApi,
4242
+ br as ImgDirect,
4243
+ we as InvalidFeedback,
4244
+ At as Loading,
4245
+ po as LoadingBlock,
4246
+ jl as MonthPicker,
4247
+ su as NoInputContainer,
4248
+ El as NumericStepperInput,
4249
+ Xl as PhotoLibrary,
4250
+ nl as PhotoLightbox,
4251
+ Pt as PrimaryButton,
4252
+ ge as RowLabelInput,
4253
+ Il as SelectInput,
4254
+ Nt as SimplePicker,
4255
+ Qr as SimpleToggle,
4256
+ cu as SimpleTooltip,
4257
+ Gl as Tab,
4258
+ Bl as TabPanel,
4259
+ Vl as Tabs,
4260
+ Tl as TextAreaInput,
4261
+ $l as TextInput,
4262
+ tu as Timeline,
4263
+ U as Typography,
4264
+ au as UserAvatarToggle,
4265
+ Hl as UserAvatarValueFormat,
4266
+ eu as VersionInfo,
4267
+ Xt as WidgetCard,
4268
+ kl as YearPicker
4269
+ };