react-luminus-components 1.3.31 → 1.3.33

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 (133) hide show
  1. package/README.md +349 -355
  2. package/dist/.vite/manifest.json +64 -64
  3. package/dist/FromToDatePickerDropdownToggle-BcOIaLyQ.cjs +253 -0
  4. package/dist/{FromToDatePickerDropdownToggle-a6zb7EV7.js → FromToDatePickerDropdownToggle-CGnDN_zs.js} +2949 -3196
  5. package/dist/PrimaryButton-B6qFyVVD.js +680 -0
  6. package/dist/PrimaryButton-Dow_5lBe.cjs +1 -0
  7. package/dist/SimpleTooltip-B0I1MS-L.js +5 -0
  8. package/dist/{SimpleTooltip-ngcscCjg.cjs → SimpleTooltip-CpLiAgNs.cjs} +1 -1
  9. package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
  10. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
  11. package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
  12. package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
  13. package/dist/components/Dropdown/Dropdown.d.ts +0 -1
  14. package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
  15. package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
  16. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +0 -1
  17. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +3 -3
  18. package/dist/components/Form/CheckInput/CheckInput.d.ts +0 -1
  19. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +0 -1
  20. package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +0 -1
  21. package/dist/components/Form/SelectInput/SelectInput.d.ts +0 -1
  22. package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +0 -1
  23. package/dist/components/Form/TextInput/TextInput.d.ts +0 -1
  24. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +0 -1
  25. package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +0 -1
  26. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +0 -1
  27. package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +0 -1
  28. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +0 -1
  29. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +0 -1
  30. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +0 -1
  31. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +0 -1
  32. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +20 -21
  33. package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +0 -1
  34. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +20 -21
  35. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +20 -21
  36. package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +0 -1
  37. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
  38. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +0 -1
  39. package/dist/components/NewTabs/Tab/Tab.d.ts +5 -5
  40. package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
  41. package/dist/components/NewTabs/Tabs/Tabs.d.ts +7 -7
  42. package/dist/components/Tabs/Tabs.d.ts +0 -1
  43. package/dist/components/Tabs/comps/Tab/Tab.d.ts +0 -1
  44. package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
  45. package/dist/components/common/Alert/Alert.d.ts +0 -1
  46. package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
  47. package/dist/components/common/AppSearch/AppSearch.d.ts +0 -1
  48. package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +0 -1
  49. package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
  50. package/dist/components/common/Badge/Badge.d.ts +0 -1
  51. package/dist/components/common/Card/Card.d.ts +0 -1
  52. package/dist/components/common/Collapse/Collapse.d.ts +0 -1
  53. package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
  54. package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
  55. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +0 -1
  56. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +0 -1
  57. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +0 -1
  58. package/dist/components/common/ImgApi/ImgApi.d.ts +0 -1
  59. package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +0 -1
  60. package/dist/components/common/ImgDirect/ImgDirect.d.ts +0 -1
  61. package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
  62. package/dist/components/common/Loading/Loading.d.ts +0 -1
  63. package/dist/components/common/MonthPicker/MonthPicker.d.ts +0 -1
  64. package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +0 -1
  65. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +0 -1
  66. package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
  67. package/dist/components/common/Timeline/Timeline.d.ts +0 -1
  68. package/dist/components/common/Typography/Typography.d.ts +0 -1
  69. package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
  70. package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
  71. package/dist/contexts/auth/AuthContext.d.ts +0 -1
  72. package/dist/contexts/auth/AuthProvider.d.ts +0 -1
  73. package/dist/contexts/confirm/ConfirmContext.d.ts +0 -1
  74. package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
  75. package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
  76. package/dist/contexts/loading/LoadingContext.d.ts +0 -1
  77. package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
  78. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +1 -15
  79. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +2 -16
  80. package/dist/contexts/prompt/PromptContext.d.ts +0 -1
  81. package/dist/contexts/user/UserContext.d.ts +0 -1
  82. package/dist/contexts/user/UserProvider.d.ts +0 -1
  83. package/dist/contexts.cjs.js +1 -1
  84. package/dist/contexts.d.ts +10 -27
  85. package/dist/contexts.es.js +184 -337
  86. package/dist/{dateUtils-D5PdELhi.js → dateUtils-Bc53BdYm.js} +11 -21
  87. package/dist/{dateUtils-CIDS0n5B.cjs → dateUtils-Y_XPaYyg.cjs} +1 -1
  88. package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
  89. package/dist/hooks/useGetApiData/useGetApiData.d.ts +0 -1
  90. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +0 -1
  91. package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
  92. package/dist/hooks.cjs.js +1 -1
  93. package/dist/hooks.d.ts +3 -5
  94. package/dist/hooks.es.js +46 -44
  95. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +0 -1
  96. package/dist/layout/MainContainer/MainContainer.d.ts +0 -1
  97. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +0 -1
  98. package/dist/layout/SideMenu/SideMenu.d.ts +0 -1
  99. package/dist/layout/TopBar/TopBar.d.ts +0 -1
  100. package/dist/layout.cjs.js +1 -1
  101. package/dist/layout.d.ts +0 -2
  102. package/dist/layout.es.js +95 -96
  103. package/dist/main.cjs.js +1 -1
  104. package/dist/main.es.js +2062 -2455
  105. package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
  106. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +0 -1
  107. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +0 -1
  108. package/dist/models/texts/ComponentsContextTexts.d.ts +18 -0
  109. package/dist/models/types/MenuItemType.d.ts +0 -1
  110. package/dist/models/types/PhotoAction.d.ts +0 -1
  111. package/dist/models/types/TimelineStep.d.ts +0 -1
  112. package/dist/{searchUtils-CEjMiULh.js → searchUtils-kismAHZM.js} +1 -1
  113. package/dist/{searchUtils-9_EWs2V9.cjs → searchUtils-qxu0IgEU.cjs} +1 -1
  114. package/dist/style.css +1 -1
  115. package/dist/{useFormControlType-oJGqgThz.js → useFormControlType-BAFqxupC.js} +3 -3
  116. package/dist/useLocalStorageState-BxKcArKF.cjs +1 -0
  117. package/dist/useLocalStorageState-HYmARj_B.js +76 -0
  118. package/dist/usePermissions-Dl5tlwwt.js +17 -0
  119. package/dist/usePermissions-yx-0zHae.cjs +1 -0
  120. package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
  121. package/dist/utils.cjs.js +1 -1
  122. package/dist/utils.d.ts +0 -2
  123. package/dist/utils.es.js +55 -53
  124. package/dist/variables.scss +171 -171
  125. package/package.json +106 -106
  126. package/dist/FromToDatePickerDropdownToggle-EhHpHC9A.cjs +0 -253
  127. package/dist/PrimaryButton-BbKMePCv.js +0 -718
  128. package/dist/PrimaryButton-ugYzKlak.cjs +0 -1
  129. package/dist/SimpleTooltip-Boktzm98.js +0 -5
  130. package/dist/useLocalStorageState-CT8xepqa.cjs +0 -1
  131. package/dist/useLocalStorageState-DkeM8Y6R.js +0 -74
  132. package/dist/usePermissions-BkVAe1PL.cjs +0 -1
  133. package/dist/usePermissions-Dh1Sgbd7.js +0 -15
@@ -1,718 +0,0 @@
1
- import { j as r, c as d, P as D, M as tt, v as w, J as nt, aF as _e, aG as je, o as q, G as Be, aH as ot, aI as st, w as v, aJ as Ae, aK as Me, aL as De, aM as at, aN as ke, aO as rt, A as it, I as lt, L as dt, aP as Ie, F as $e, H as ct, aQ as ut, a3 as mt } from "./FromToDatePickerDropdownToggle-a6zb7EV7.js";
2
- import * as u from "react";
3
- import { useRef as N, useEffect as Te, useContext as ve, forwardRef as ft, useState as ye, useImperativeHandle as gt, useCallback as Ce, useMemo as ht } from "react";
4
- import pt from "react-dom";
5
- import "zod";
6
- import "react-hook-form";
7
- import "react-router-dom";
8
- const Et = "_loading_rgybp_1", Tt = "_spinner-grow_rgybp_10", yt = "_second_rgybp_14", Ct = "_third_rgybp_17", _t = "_loadingBlock_rgybp_21", L = {
9
- loading: Et,
10
- "spinner-grow": "_spinner-grow_rgybp_10",
11
- spinnerGrow: Tt,
12
- second: yt,
13
- third: Ct,
14
- loadingBlock: _t
15
- }, en = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", L.loading), children: [
16
- /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary"), role: "status" }),
17
- /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary", L.second), role: "status" }),
18
- /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary", L.third), role: "status" })
19
- ] }), vt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ r.jsx("div", {
20
- ...e,
21
- ref: n,
22
- className: d(e.className, t)
23
- }));
24
- function Nt(t) {
25
- const e = N(null);
26
- return Te(() => {
27
- e.current = t;
28
- }), e.current;
29
- }
30
- const Rt = {
31
- /** An accessible label indicating the relevant information about the Close Button. */
32
- "aria-label": D.string,
33
- /** A callback fired after the Close Button is clicked. */
34
- onClick: D.func,
35
- /**
36
- * Render different color variant for the button.
37
- *
38
- * Omitting this will render the default dark color.
39
- */
40
- variant: D.oneOf(["white"])
41
- }, Ne = /* @__PURE__ */ u.forwardRef(({
42
- className: t,
43
- variant: e,
44
- "aria-label": n = "Close",
45
- ...o
46
- }, s) => /* @__PURE__ */ r.jsx("button", {
47
- ref: s,
48
- type: "button",
49
- className: d("btn-close", e && `btn-close-${e}`, t),
50
- "aria-label": n,
51
- ...o
52
- }));
53
- Ne.displayName = "CloseButton";
54
- Ne.propTypes = Rt;
55
- var St = Function.prototype.bind.call(Function.prototype.call, [].slice);
56
- function x(t, e) {
57
- return St(t.querySelectorAll(e));
58
- }
59
- const wt = "data-rr-ui-";
60
- function Ot(t) {
61
- return `${wt}${t}`;
62
- }
63
- const bt = {
64
- /**
65
- * Specify whether the feedback is for valid or invalid fields
66
- *
67
- * @type {('valid'|'invalid')}
68
- */
69
- type: D.string,
70
- /** Display feedback as a tooltip. */
71
- tooltip: D.bool,
72
- as: D.elementType
73
- }, Re = /* @__PURE__ */ u.forwardRef(
74
- // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
75
- ({
76
- as: t = "div",
77
- className: e,
78
- type: n = "valid",
79
- tooltip: o = !1,
80
- ...s
81
- }, a) => /* @__PURE__ */ r.jsx(t, {
82
- ...s,
83
- ref: a,
84
- className: d(e, `${n}-${o ? "tooltip" : "feedback"}`)
85
- })
86
- );
87
- Re.displayName = "Feedback";
88
- Re.propTypes = bt;
89
- const Ue = /* @__PURE__ */ u.forwardRef(({
90
- bsPrefix: t,
91
- type: e,
92
- size: n,
93
- htmlSize: o,
94
- id: s,
95
- className: a,
96
- isValid: m = !1,
97
- isInvalid: f = !1,
98
- plaintext: p,
99
- readOnly: y,
100
- // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
101
- as: g = "input",
102
- ...R
103
- }, E) => {
104
- const {
105
- controlId: T
106
- } = ve(tt);
107
- return t = w(t, "form-control"), process.env.NODE_ENV !== "production" && nt(T == null || !s, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ r.jsx(g, {
108
- ...R,
109
- type: e,
110
- size: o,
111
- ref: E,
112
- readOnly: y,
113
- id: s || T,
114
- className: d(a, p ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, m && "is-valid", f && "is-invalid")
115
- });
116
- });
117
- Ue.displayName = "FormControl";
118
- const tn = Object.assign(Ue, {
119
- Feedback: Re
120
- });
121
- var oe;
122
- function Fe(t) {
123
- if ((!oe && oe !== 0 || t) && _e) {
124
- var e = document.createElement("div");
125
- e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), oe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
126
- }
127
- return oe;
128
- }
129
- function he(t) {
130
- t === void 0 && (t = je());
131
- try {
132
- var e = t.activeElement;
133
- return !e || !e.nodeName ? null : e;
134
- } catch {
135
- return t.body;
136
- }
137
- }
138
- function At(t = document) {
139
- const e = t.defaultView;
140
- return Math.abs(e.innerWidth - t.documentElement.clientWidth);
141
- }
142
- const Le = Ot("modal-open");
143
- class Se {
144
- constructor({
145
- ownerDocument: e,
146
- handleContainerOverflow: n = !0,
147
- isRTL: o = !1
148
- } = {}) {
149
- this.handleContainerOverflow = n, this.isRTL = o, this.modals = [], this.ownerDocument = e;
150
- }
151
- getScrollbarWidth() {
152
- return At(this.ownerDocument);
153
- }
154
- getElement() {
155
- return (this.ownerDocument || document).body;
156
- }
157
- setModalAttributes(e) {
158
- }
159
- removeModalAttributes(e) {
160
- }
161
- setContainerStyle(e) {
162
- const n = {
163
- overflow: "hidden"
164
- }, o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.getElement();
165
- e.style = {
166
- overflow: s.style.overflow,
167
- [o]: s.style[o]
168
- }, e.scrollBarWidth && (n[o] = `${parseInt(q(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(Le, ""), q(s, n);
169
- }
170
- reset() {
171
- [...this.modals].forEach((e) => this.remove(e));
172
- }
173
- removeContainerStyle(e) {
174
- const n = this.getElement();
175
- n.removeAttribute(Le), Object.assign(n.style, e.style);
176
- }
177
- add(e) {
178
- let n = this.modals.indexOf(e);
179
- return n !== -1 || (n = this.modals.length, this.modals.push(e), this.setModalAttributes(e), n !== 0) || (this.state = {
180
- scrollBarWidth: this.getScrollbarWidth(),
181
- style: {}
182
- }, this.handleContainerOverflow && this.setContainerStyle(this.state)), n;
183
- }
184
- remove(e) {
185
- const n = this.modals.indexOf(e);
186
- n !== -1 && (this.modals.splice(n, 1), !this.modals.length && this.handleContainerOverflow && this.removeContainerStyle(this.state), this.removeModalAttributes(e));
187
- }
188
- isTopModal(e) {
189
- return !!this.modals.length && this.modals[this.modals.length - 1] === e;
190
- }
191
- }
192
- const Mt = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
193
- function kt(t, e) {
194
- if (t == null)
195
- return {};
196
- var n = {}, o = Object.keys(t), s, a;
197
- for (a = 0; a < o.length; a++)
198
- s = o[a], !(e.indexOf(s) >= 0) && (n[s] = t[s]);
199
- return n;
200
- }
201
- let pe;
202
- function It(t) {
203
- return pe || (pe = new Se({
204
- ownerDocument: t == null ? void 0 : t.document
205
- })), pe;
206
- }
207
- function Ft(t) {
208
- const e = Be(), n = t || It(e), o = N({
209
- dialog: null,
210
- backdrop: null
211
- });
212
- return Object.assign(o.current, {
213
- add: () => n.add(o.current),
214
- remove: () => n.remove(o.current),
215
- isTopModal: () => n.isTopModal(o.current),
216
- setDialogRef: Ce((s) => {
217
- o.current.dialog = s;
218
- }, []),
219
- setBackdropRef: Ce((s) => {
220
- o.current.backdrop = s;
221
- }, [])
222
- });
223
- }
224
- const We = /* @__PURE__ */ ft((t, e) => {
225
- let {
226
- show: n = !1,
227
- role: o = "dialog",
228
- className: s,
229
- style: a,
230
- children: m,
231
- backdrop: f = !0,
232
- keyboard: p = !0,
233
- onBackdropClick: y,
234
- onEscapeKeyDown: g,
235
- transition: R,
236
- runTransition: E,
237
- backdropTransition: T,
238
- runBackdropTransition: se,
239
- autoFocus: V = !0,
240
- enforceFocus: ae = !0,
241
- restoreFocus: O = !0,
242
- restoreFocusOptions: re,
243
- renderDialog: Q,
244
- renderBackdrop: ie = (l) => /* @__PURE__ */ r.jsx("div", Object.assign({}, l)),
245
- manager: le,
246
- container: de,
247
- onShow: z,
248
- onHide: $ = () => {
249
- },
250
- onExit: ce,
251
- onExited: U,
252
- onExiting: Y,
253
- onEnter: X,
254
- onEntering: J,
255
- onEntered: Z
256
- } = t, ue = kt(t, Mt);
257
- const C = Be(), b = ot(de), c = Ft(le), me = st(), P = Nt(n), [S, A] = ye(!n), h = N(null);
258
- gt(e, () => c, [c]), _e && !P && n && (h.current = he(C == null ? void 0 : C.document)), n && S && A(!1);
259
- const _ = v(() => {
260
- if (c.add(), M.current = Ae(document, "keydown", ge), G.current = Ae(
261
- document,
262
- "focus",
263
- // the timeout is necessary b/c this will run before the new modal is mounted
264
- // and so steals focus from it
265
- () => setTimeout(fe),
266
- !0
267
- ), z && z(), V) {
268
- var l, ne;
269
- const H = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : C == null ? void 0 : C.document);
270
- c.dialog && H && !Me(c.dialog, H) && (h.current = H, c.dialog.focus());
271
- }
272
- }), W = v(() => {
273
- if (c.remove(), M.current == null || M.current(), G.current == null || G.current(), O) {
274
- var l;
275
- (l = h.current) == null || l.focus == null || l.focus(re), h.current = null;
276
- }
277
- });
278
- Te(() => {
279
- !n || !b || _();
280
- }, [
281
- n,
282
- b,
283
- /* should never change: */
284
- _
285
- ]), Te(() => {
286
- S && W();
287
- }, [S, W]), De(() => {
288
- W();
289
- });
290
- const fe = v(() => {
291
- if (!ae || !me() || !c.isTopModal())
292
- return;
293
- const l = he(C == null ? void 0 : C.document);
294
- c.dialog && l && !Me(c.dialog, l) && c.dialog.focus();
295
- }), ee = v((l) => {
296
- l.target === l.currentTarget && (y == null || y(l), f === !0 && $());
297
- }), ge = v((l) => {
298
- p && at(l) && c.isTopModal() && (g == null || g(l), l.defaultPrevented || $());
299
- }), G = N(), M = N(), te = (...l) => {
300
- A(!0), U == null || U(...l);
301
- };
302
- if (!b)
303
- return null;
304
- const k = Object.assign({
305
- role: o,
306
- ref: c.setDialogRef,
307
- // apparently only works on the dialog role element
308
- "aria-modal": o === "dialog" ? !0 : void 0
309
- }, ue, {
310
- style: a,
311
- className: s,
312
- tabIndex: -1
313
- });
314
- let K = Q ? Q(k) : /* @__PURE__ */ r.jsx("div", Object.assign({}, k, {
315
- children: /* @__PURE__ */ u.cloneElement(m, {
316
- role: "document"
317
- })
318
- }));
319
- K = ke(R, E, {
320
- unmountOnExit: !0,
321
- mountOnEnter: !0,
322
- appear: !0,
323
- in: !!n,
324
- onExit: ce,
325
- onExiting: Y,
326
- onExited: te,
327
- onEnter: X,
328
- onEntering: J,
329
- onEntered: Z,
330
- children: K
331
- });
332
- let I = null;
333
- return f && (I = ie({
334
- ref: c.setBackdropRef,
335
- onClick: ee
336
- }), I = ke(T, se, {
337
- in: !!n,
338
- appear: !0,
339
- mountOnEnter: !0,
340
- unmountOnExit: !0,
341
- children: I
342
- })), /* @__PURE__ */ r.jsx(r.Fragment, {
343
- children: /* @__PURE__ */ pt.createPortal(/* @__PURE__ */ r.jsxs(r.Fragment, {
344
- children: [I, K]
345
- }), b)
346
- });
347
- });
348
- We.displayName = "Modal";
349
- const Lt = Object.assign(We, {
350
- Manager: Se
351
- });
352
- function xt(t, e) {
353
- t.classList ? t.classList.add(e) : rt(t, e) || (typeof t.className == "string" ? t.className = t.className + " " + e : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + e));
354
- }
355
- function xe(t, e) {
356
- return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
357
- }
358
- function jt(t, e) {
359
- t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = xe(t.className, e) : t.setAttribute("class", xe(t.className && t.className.baseVal || "", e));
360
- }
361
- const j = {
362
- FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
363
- STICKY_CONTENT: ".sticky-top",
364
- NAVBAR_TOGGLER: ".navbar-toggler"
365
- };
366
- class Bt extends Se {
367
- adjustAndStore(e, n, o) {
368
- const s = n.style[e];
369
- n.dataset[e] = s, q(n, {
370
- [e]: `${parseFloat(q(n, e)) + o}px`
371
- });
372
- }
373
- restore(e, n) {
374
- const o = n.dataset[e];
375
- o !== void 0 && (delete n.dataset[e], q(n, {
376
- [e]: o
377
- }));
378
- }
379
- setContainerStyle(e) {
380
- super.setContainerStyle(e);
381
- const n = this.getElement();
382
- if (xt(n, "modal-open"), !e.scrollBarWidth)
383
- return;
384
- const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
385
- x(n, j.FIXED_CONTENT).forEach((a) => this.adjustAndStore(o, a, e.scrollBarWidth)), x(n, j.STICKY_CONTENT).forEach((a) => this.adjustAndStore(s, a, -e.scrollBarWidth)), x(n, j.NAVBAR_TOGGLER).forEach((a) => this.adjustAndStore(s, a, e.scrollBarWidth));
386
- }
387
- removeContainerStyle(e) {
388
- super.removeContainerStyle(e);
389
- const n = this.getElement();
390
- jt(n, "modal-open");
391
- const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
392
- x(n, j.FIXED_CONTENT).forEach((a) => this.restore(o, a)), x(n, j.STICKY_CONTENT).forEach((a) => this.restore(s, a)), x(n, j.NAVBAR_TOGGLER).forEach((a) => this.restore(s, a));
393
- }
394
- }
395
- let Ee;
396
- function Dt(t) {
397
- return Ee || (Ee = new Bt(t)), Ee;
398
- }
399
- const Ge = /* @__PURE__ */ u.forwardRef(({
400
- className: t,
401
- bsPrefix: e,
402
- as: n = "div",
403
- ...o
404
- }, s) => (e = w(e, "modal-body"), /* @__PURE__ */ r.jsx(n, {
405
- ref: s,
406
- className: d(t, e),
407
- ...o
408
- })));
409
- Ge.displayName = "ModalBody";
410
- const Ke = /* @__PURE__ */ u.createContext({
411
- // eslint-disable-next-line @typescript-eslint/no-empty-function
412
- onHide() {
413
- }
414
- }), we = /* @__PURE__ */ u.forwardRef(({
415
- bsPrefix: t,
416
- className: e,
417
- contentClassName: n,
418
- centered: o,
419
- size: s,
420
- fullscreen: a,
421
- children: m,
422
- scrollable: f,
423
- ...p
424
- }, y) => {
425
- t = w(t, "modal");
426
- const g = `${t}-dialog`, R = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
427
- return /* @__PURE__ */ r.jsx("div", {
428
- ...p,
429
- ref: y,
430
- className: d(g, e, s && `${t}-${s}`, o && `${g}-centered`, f && `${g}-scrollable`, a && R),
431
- children: /* @__PURE__ */ r.jsx("div", {
432
- className: d(`${t}-content`, n),
433
- children: m
434
- })
435
- });
436
- });
437
- we.displayName = "ModalDialog";
438
- const He = /* @__PURE__ */ u.forwardRef(({
439
- className: t,
440
- bsPrefix: e,
441
- as: n = "div",
442
- ...o
443
- }, s) => (e = w(e, "modal-footer"), /* @__PURE__ */ r.jsx(n, {
444
- ref: s,
445
- className: d(t, e),
446
- ...o
447
- })));
448
- He.displayName = "ModalFooter";
449
- const $t = /* @__PURE__ */ u.forwardRef(({
450
- closeLabel: t = "Close",
451
- closeVariant: e,
452
- closeButton: n = !1,
453
- onHide: o,
454
- children: s,
455
- ...a
456
- }, m) => {
457
- const f = ve(Ke), p = v(() => {
458
- f == null || f.onHide(), o == null || o();
459
- });
460
- return /* @__PURE__ */ r.jsxs("div", {
461
- ref: m,
462
- ...a,
463
- children: [s, n && /* @__PURE__ */ r.jsx(Ne, {
464
- "aria-label": t,
465
- variant: e,
466
- onClick: p
467
- })]
468
- });
469
- }), qe = /* @__PURE__ */ u.forwardRef(({
470
- bsPrefix: t,
471
- className: e,
472
- closeLabel: n = "Close",
473
- closeButton: o = !1,
474
- ...s
475
- }, a) => (t = w(t, "modal-header"), /* @__PURE__ */ r.jsx($t, {
476
- ref: a,
477
- ...s,
478
- className: d(e, t),
479
- closeLabel: n,
480
- closeButton: o
481
- })));
482
- qe.displayName = "ModalHeader";
483
- const Ut = vt("h4"), Ve = /* @__PURE__ */ u.forwardRef(({
484
- className: t,
485
- bsPrefix: e,
486
- as: n = Ut,
487
- ...o
488
- }, s) => (e = w(e, "modal-title"), /* @__PURE__ */ r.jsx(n, {
489
- ref: s,
490
- className: d(t, e),
491
- ...o
492
- })));
493
- Ve.displayName = "ModalTitle";
494
- function Wt(t) {
495
- return /* @__PURE__ */ r.jsx($e, {
496
- ...t,
497
- timeout: null
498
- });
499
- }
500
- function Gt(t) {
501
- return /* @__PURE__ */ r.jsx($e, {
502
- ...t,
503
- timeout: null
504
- });
505
- }
506
- const Qe = /* @__PURE__ */ u.forwardRef(({
507
- bsPrefix: t,
508
- className: e,
509
- style: n,
510
- dialogClassName: o,
511
- contentClassName: s,
512
- children: a,
513
- dialogAs: m = we,
514
- "data-bs-theme": f,
515
- "aria-labelledby": p,
516
- "aria-describedby": y,
517
- "aria-label": g,
518
- /* BaseModal props */
519
- show: R = !1,
520
- animation: E = !0,
521
- backdrop: T = !0,
522
- keyboard: se = !0,
523
- onEscapeKeyDown: V,
524
- onShow: ae,
525
- onHide: O,
526
- container: re,
527
- autoFocus: Q = !0,
528
- enforceFocus: ie = !0,
529
- restoreFocus: le = !0,
530
- restoreFocusOptions: de,
531
- onEntered: z,
532
- onExit: $,
533
- onExiting: ce,
534
- onEnter: U,
535
- onEntering: Y,
536
- onExited: X,
537
- backdropClassName: J,
538
- manager: Z,
539
- ...ue
540
- }, C) => {
541
- const [b, c] = ye({}), [me, P] = ye(!1), S = N(!1), A = N(!1), h = N(null), [_, W] = it(), fe = lt(C, W), ee = v(O), ge = dt();
542
- t = w(t, "modal");
543
- const G = ht(() => ({
544
- onHide: ee
545
- }), [ee]);
546
- function M() {
547
- return Z || Dt({
548
- isRTL: ge
549
- });
550
- }
551
- function te(i) {
552
- if (!_e)
553
- return;
554
- const F = M().getScrollbarWidth() > 0, be = i.scrollHeight > je(i).documentElement.clientHeight;
555
- c({
556
- paddingRight: F && !be ? Fe() : void 0,
557
- paddingLeft: !F && be ? Fe() : void 0
558
- });
559
- }
560
- const k = v(() => {
561
- _ && te(_.dialog);
562
- });
563
- De(() => {
564
- Ie(window, "resize", k), h.current == null || h.current();
565
- });
566
- const K = () => {
567
- S.current = !0;
568
- }, I = (i) => {
569
- S.current && _ && i.target === _.dialog && (A.current = !0), S.current = !1;
570
- }, l = () => {
571
- P(!0), h.current = ut(_.dialog, () => {
572
- P(!1);
573
- });
574
- }, ne = (i) => {
575
- i.target === i.currentTarget && l();
576
- }, H = (i) => {
577
- if (T === "static") {
578
- ne(i);
579
- return;
580
- }
581
- if (A.current || i.target !== i.currentTarget) {
582
- A.current = !1;
583
- return;
584
- }
585
- O == null || O();
586
- }, ze = (i) => {
587
- se ? V == null || V(i) : (i.preventDefault(), T === "static" && l());
588
- }, Ye = (i, F) => {
589
- i && te(i), U == null || U(i, F);
590
- }, Xe = (i) => {
591
- h.current == null || h.current(), $ == null || $(i);
592
- }, Je = (i, F) => {
593
- Y == null || Y(i, F), ct(window, "resize", k);
594
- }, Ze = (i) => {
595
- i && (i.style.display = ""), X == null || X(i), Ie(window, "resize", k);
596
- }, Pe = Ce((i) => /* @__PURE__ */ r.jsx("div", {
597
- ...i,
598
- className: d(`${t}-backdrop`, J, !E && "show")
599
- }), [E, J, t]), Oe = {
600
- ...n,
601
- ...b
602
- };
603
- Oe.display = "block";
604
- const et = (i) => /* @__PURE__ */ r.jsx("div", {
605
- role: "dialog",
606
- ...i,
607
- style: Oe,
608
- className: d(e, t, me && `${t}-static`, !E && "show"),
609
- onClick: T ? H : void 0,
610
- onMouseUp: I,
611
- "data-bs-theme": f,
612
- "aria-label": g,
613
- "aria-labelledby": p,
614
- "aria-describedby": y,
615
- children: /* @__PURE__ */ r.jsx(m, {
616
- ...ue,
617
- onMouseDown: K,
618
- className: o,
619
- contentClassName: s,
620
- children: a
621
- })
622
- });
623
- return /* @__PURE__ */ r.jsx(Ke.Provider, {
624
- value: G,
625
- children: /* @__PURE__ */ r.jsx(Lt, {
626
- show: R,
627
- ref: fe,
628
- backdrop: T,
629
- container: re,
630
- keyboard: !0,
631
- autoFocus: Q,
632
- enforceFocus: ie,
633
- restoreFocus: le,
634
- restoreFocusOptions: de,
635
- onEscapeKeyDown: ze,
636
- onShow: ae,
637
- onHide: O,
638
- onEnter: Ye,
639
- onEntering: Je,
640
- onEntered: z,
641
- onExit: Xe,
642
- onExiting: ce,
643
- onExited: Ze,
644
- manager: M(),
645
- transition: E ? Wt : void 0,
646
- backdropTransition: E ? Gt : void 0,
647
- renderBackdrop: Pe,
648
- renderDialog: et
649
- })
650
- });
651
- });
652
- Qe.displayName = "Modal";
653
- const nn = Object.assign(Qe, {
654
- Body: Ge,
655
- Header: qe,
656
- Title: Ve,
657
- Footer: He,
658
- Dialog: we,
659
- TRANSITION_DURATION: 300,
660
- BACKDROP_TRANSITION_DURATION: 150
661
- });
662
- /*! @azure/msal-browser v3.14.0 2024-05-07 */
663
- const on = {
664
- INITIALIZE_START: "msal:initializeStart",
665
- INITIALIZE_END: "msal:initializeEnd",
666
- ACCOUNT_ADDED: "msal:accountAdded",
667
- ACCOUNT_REMOVED: "msal:accountRemoved",
668
- ACTIVE_ACCOUNT_CHANGED: "msal:activeAccountChanged",
669
- LOGIN_START: "msal:loginStart",
670
- LOGIN_SUCCESS: "msal:loginSuccess",
671
- LOGIN_FAILURE: "msal:loginFailure",
672
- ACQUIRE_TOKEN_START: "msal:acquireTokenStart",
673
- ACQUIRE_TOKEN_SUCCESS: "msal:acquireTokenSuccess",
674
- ACQUIRE_TOKEN_FAILURE: "msal:acquireTokenFailure",
675
- ACQUIRE_TOKEN_NETWORK_START: "msal:acquireTokenFromNetworkStart",
676
- SSO_SILENT_START: "msal:ssoSilentStart",
677
- SSO_SILENT_SUCCESS: "msal:ssoSilentSuccess",
678
- SSO_SILENT_FAILURE: "msal:ssoSilentFailure",
679
- ACQUIRE_TOKEN_BY_CODE_START: "msal:acquireTokenByCodeStart",
680
- ACQUIRE_TOKEN_BY_CODE_SUCCESS: "msal:acquireTokenByCodeSuccess",
681
- ACQUIRE_TOKEN_BY_CODE_FAILURE: "msal:acquireTokenByCodeFailure",
682
- HANDLE_REDIRECT_START: "msal:handleRedirectStart",
683
- HANDLE_REDIRECT_END: "msal:handleRedirectEnd",
684
- POPUP_OPENED: "msal:popupOpened",
685
- LOGOUT_START: "msal:logoutStart",
686
- LOGOUT_SUCCESS: "msal:logoutSuccess",
687
- LOGOUT_FAILURE: "msal:logoutFailure",
688
- LOGOUT_END: "msal:logoutEnd",
689
- RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
690
- }, Kt = "_button_1wjon_1", Ht = "_filled_1wjon_7", qt = "_sm_1wjon_13", Vt = "_md_1wjon_18", Qt = "_lg_1wjon_23", B = {
691
- button: Kt,
692
- filled: Ht,
693
- sm: qt,
694
- md: Vt,
695
- lg: Qt
696
- }, sn = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => {
697
- const { LinkComponent: m } = ve(mt);
698
- return a.as === "link" ? /* @__PURE__ */ r.jsx(m, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, B.button, B[t], B[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx("button", { type: "button", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, B.button, B[t], B[n]), ...a, children: s }) : null;
699
- };
700
- export {
701
- $t as A,
702
- Lt as B,
703
- Ne as C,
704
- on as E,
705
- Re as F,
706
- en as L,
707
- Ke as M,
708
- sn as P,
709
- Ot as a,
710
- tn as b,
711
- L as c,
712
- vt as d,
713
- Bt as e,
714
- nn as f,
715
- Dt as g,
716
- x as q,
717
- Nt as u
718
- };