react-luminus-components 1.2.33 → 1.2.35

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 (40) hide show
  1. package/dist/.vite/manifest.json +59 -61
  2. package/dist/EventType-Dodj1wMo.cjs +1 -0
  3. package/dist/EventType-SEEDuisM.js +636 -0
  4. package/dist/SimpleTooltip-MhGCEWts.js +5 -0
  5. package/dist/{SimpleTooltip-CjMfPKvQ.cjs → SimpleTooltip-OE_cbcNU.cjs} +1 -1
  6. package/dist/{UserAvatarToggle-BWDRIIXE.js → UserAvatarToggle-CH7OqxNp.js} +2104 -2001
  7. package/dist/UserAvatarToggle-rzyVxLmG.cjs +253 -0
  8. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +4 -1
  9. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +11 -0
  10. package/dist/contexts.cjs.js +1 -1
  11. package/dist/contexts.es.js +205 -776
  12. package/dist/dateUtils-CWKBTsx7.cjs +1 -0
  13. package/dist/dateUtils-Crak7ii9.js +131 -0
  14. package/dist/hooks.cjs.js +1 -1
  15. package/dist/hooks.es.js +19 -18
  16. package/dist/layout.cjs.js +1 -1
  17. package/dist/layout.es.js +42 -42
  18. package/dist/main.cjs.js +1 -1
  19. package/dist/main.es.js +1258 -1303
  20. package/dist/models/texts/HomeDashboardTexts.d.ts +1 -0
  21. package/dist/style.css +1 -1
  22. package/dist/{textUtils-BLtD0zaS.js → textUtils-BbxuIsKq.js} +2 -2
  23. package/dist/{useConfirm-QOAtP0re.cjs → useConfirm-9zGqmWEb.cjs} +1 -1
  24. package/dist/{useConfirm-CKDkB8lL.js → useConfirm-B3BI8PzR.js} +11 -11
  25. package/dist/{useKeyPress-DuxmarzT.js → useKeyPress-CwWcvmEW.js} +2 -2
  26. package/dist/usePermissions-CO93mmCn.cjs +1 -0
  27. package/dist/usePermissions-DVO-znuB.js +13 -0
  28. package/dist/utils/hookForm/hookFormUtils.d.ts +2 -0
  29. package/dist/utils/index.d.ts +1 -0
  30. package/dist/utils.cjs.js +1 -1
  31. package/dist/utils.es.js +13 -136
  32. package/package.json +1 -1
  33. package/dist/EventType-D1zXMD8A.js +0 -63
  34. package/dist/EventType-DO8vvA6X.cjs +0 -1
  35. package/dist/SimpleTooltip-cMiObSvf.js +0 -5
  36. package/dist/Typography-B12JkmMC.js +0 -36
  37. package/dist/Typography-Plu1Wa0_.cjs +0 -1
  38. package/dist/UserAvatarToggle-DEb7Klk7.cjs +0 -253
  39. package/dist/usePermissions-Cg_BMKPX.js +0 -12
  40. package/dist/usePermissions-zYTcBjf7.cjs +0 -1
@@ -0,0 +1,636 @@
1
+ import { j as i, b as c, P as me, ar as ve, as as xe, s as H, q as Le, at as Pe, au as Ze, u as p, av as _e, aw as we, ax as Be, ay as Je, az as Ae, aA as et, i as B, m as tt, v as nt, z as ot, aB as Me, aC as De, r as at, aD as st } from "./UserAvatarToggle-CH7OqxNp.js";
2
+ import * as u from "react";
3
+ import { useRef as T, useEffect as pe, forwardRef as rt, useState as Te, useImperativeHandle as it, useCallback as Ce, useContext as lt, useMemo as dt } from "react";
4
+ import ct from "react-dom";
5
+ const ut = "_loading_14qfh_1", ft = "_spinner-grow_14qfh_10", mt = "_second_14qfh_14", ht = "_third_14qfh_17", k = {
6
+ loading: ut,
7
+ "spinner-grow": "_spinner-grow_14qfh_10",
8
+ spinnerGrow: ft,
9
+ second: mt,
10
+ third: ht
11
+ }, jt = () => /* @__PURE__ */ i.jsxs("div", { className: c("luminus-loading", k.loading), children: [
12
+ /* @__PURE__ */ i.jsx("div", { className: c("spinner-grow", k.spinnerGrow, "text-primary"), role: "status" }),
13
+ /* @__PURE__ */ i.jsx("div", { className: c("spinner-grow", k.spinnerGrow, "text-primary", k.second), role: "status" }),
14
+ /* @__PURE__ */ i.jsx("div", { className: c("spinner-grow", k.spinnerGrow, "text-primary", k.third), role: "status" })
15
+ ] }), gt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ i.jsx("div", {
16
+ ...e,
17
+ ref: n,
18
+ className: c(e.className, t)
19
+ }));
20
+ function Et(t) {
21
+ const e = T(null);
22
+ return pe(() => {
23
+ e.current = t;
24
+ }), e.current;
25
+ }
26
+ const pt = {
27
+ /** An accessible label indicating the relevant information about the Close Button. */
28
+ "aria-label": me.string,
29
+ /** A callback fired after the Close Button is clicked. */
30
+ onClick: me.func,
31
+ /**
32
+ * Render different color variant for the button.
33
+ *
34
+ * Omitting this will render the default dark color.
35
+ */
36
+ variant: me.oneOf(["white"])
37
+ }, Re = /* @__PURE__ */ u.forwardRef(({
38
+ className: t,
39
+ variant: e,
40
+ "aria-label": n = "Close",
41
+ ...o
42
+ }, a) => /* @__PURE__ */ i.jsx("button", {
43
+ ref: a,
44
+ type: "button",
45
+ className: c("btn-close", e && `btn-close-${e}`, t),
46
+ "aria-label": n,
47
+ ...o
48
+ }));
49
+ Re.displayName = "CloseButton";
50
+ Re.propTypes = pt;
51
+ var Tt = Function.prototype.bind.call(Function.prototype.call, [].slice);
52
+ function x(t, e) {
53
+ return Tt(t.querySelectorAll(e));
54
+ }
55
+ const Ct = "data-rr-ui-";
56
+ function vt(t) {
57
+ return `${Ct}${t}`;
58
+ }
59
+ var te;
60
+ function be(t) {
61
+ if ((!te && te !== 0 || t) && ve) {
62
+ var e = document.createElement("div");
63
+ e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), te = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
64
+ }
65
+ return te;
66
+ }
67
+ function he(t) {
68
+ t === void 0 && (t = xe());
69
+ try {
70
+ var e = t.activeElement;
71
+ return !e || !e.nodeName ? null : e;
72
+ } catch {
73
+ return t.body;
74
+ }
75
+ }
76
+ function Rt(t = document) {
77
+ const e = t.defaultView;
78
+ return Math.abs(e.innerWidth - t.documentElement.clientWidth);
79
+ }
80
+ const Ie = vt("modal-open");
81
+ class ye {
82
+ constructor({
83
+ ownerDocument: e,
84
+ handleContainerOverflow: n = !0,
85
+ isRTL: o = !1
86
+ } = {}) {
87
+ this.handleContainerOverflow = n, this.isRTL = o, this.modals = [], this.ownerDocument = e;
88
+ }
89
+ getScrollbarWidth() {
90
+ return Rt(this.ownerDocument);
91
+ }
92
+ getElement() {
93
+ return (this.ownerDocument || document).body;
94
+ }
95
+ setModalAttributes(e) {
96
+ }
97
+ removeModalAttributes(e) {
98
+ }
99
+ setContainerStyle(e) {
100
+ const n = {
101
+ overflow: "hidden"
102
+ }, o = this.isRTL ? "paddingLeft" : "paddingRight", a = this.getElement();
103
+ e.style = {
104
+ overflow: a.style.overflow,
105
+ [o]: a.style[o]
106
+ }, e.scrollBarWidth && (n[o] = `${parseInt(H(a, o) || "0", 10) + e.scrollBarWidth}px`), a.setAttribute(Ie, ""), H(a, n);
107
+ }
108
+ reset() {
109
+ [...this.modals].forEach((e) => this.remove(e));
110
+ }
111
+ removeContainerStyle(e) {
112
+ const n = this.getElement();
113
+ n.removeAttribute(Ie), Object.assign(n.style, e.style);
114
+ }
115
+ add(e) {
116
+ let n = this.modals.indexOf(e);
117
+ return n !== -1 || (n = this.modals.length, this.modals.push(e), this.setModalAttributes(e), n !== 0) || (this.state = {
118
+ scrollBarWidth: this.getScrollbarWidth(),
119
+ style: {}
120
+ }, this.handleContainerOverflow && this.setContainerStyle(this.state)), n;
121
+ }
122
+ remove(e) {
123
+ const n = this.modals.indexOf(e);
124
+ n !== -1 && (this.modals.splice(n, 1), !this.modals.length && this.handleContainerOverflow && this.removeContainerStyle(this.state), this.removeModalAttributes(e));
125
+ }
126
+ isTopModal(e) {
127
+ return !!this.modals.length && this.modals[this.modals.length - 1] === e;
128
+ }
129
+ }
130
+ const yt = ["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"];
131
+ function St(t, e) {
132
+ if (t == null)
133
+ return {};
134
+ var n = {}, o = Object.keys(t), a, r;
135
+ for (r = 0; r < o.length; r++)
136
+ a = o[r], !(e.indexOf(a) >= 0) && (n[a] = t[a]);
137
+ return n;
138
+ }
139
+ let ge;
140
+ function Nt(t) {
141
+ return ge || (ge = new ye({
142
+ ownerDocument: t == null ? void 0 : t.document
143
+ })), ge;
144
+ }
145
+ function Ot(t) {
146
+ const e = Le(), n = t || Nt(e), o = T({
147
+ dialog: null,
148
+ backdrop: null
149
+ });
150
+ return Object.assign(o.current, {
151
+ add: () => n.add(o.current),
152
+ remove: () => n.remove(o.current),
153
+ isTopModal: () => n.isTopModal(o.current),
154
+ setDialogRef: Ce((a) => {
155
+ o.current.dialog = a;
156
+ }, []),
157
+ setBackdropRef: Ce((a) => {
158
+ o.current.backdrop = a;
159
+ }, [])
160
+ });
161
+ }
162
+ const Fe = /* @__PURE__ */ rt((t, e) => {
163
+ let {
164
+ show: n = !1,
165
+ role: o = "dialog",
166
+ className: a,
167
+ style: r,
168
+ children: C,
169
+ backdrop: m = !0,
170
+ keyboard: v = !0,
171
+ onBackdropClick: S,
172
+ onEscapeKeyDown: h,
173
+ transition: D,
174
+ runTransition: R,
175
+ backdropTransition: N,
176
+ runBackdropTransition: ne,
177
+ autoFocus: $ = !0,
178
+ enforceFocus: oe = !0,
179
+ restoreFocus: O = !0,
180
+ restoreFocusOptions: ae,
181
+ renderDialog: q,
182
+ renderBackdrop: se = (l) => /* @__PURE__ */ i.jsx("div", Object.assign({}, l)),
183
+ manager: re,
184
+ container: ie,
185
+ onShow: z,
186
+ onHide: F = () => {
187
+ },
188
+ onExit: le,
189
+ onExited: j,
190
+ onExiting: V,
191
+ onEnter: Q,
192
+ onEntering: Y,
193
+ onEntered: X
194
+ } = t, de = St(t, yt);
195
+ const g = Le(), _ = Pe(ie), d = Ot(re), ce = Ze(), P = Et(n), [y, w] = Te(!n), f = T(null);
196
+ it(e, () => d, [d]), ve && !P && n && (f.current = he(g == null ? void 0 : g.document)), n && y && w(!1);
197
+ const E = p(() => {
198
+ if (d.add(), A.current = _e(document, "keydown", fe), W.current = _e(
199
+ document,
200
+ "focus",
201
+ // the timeout is necessary b/c this will run before the new modal is mounted
202
+ // and so steals focus from it
203
+ () => setTimeout(ue),
204
+ !0
205
+ ), z && z(), $) {
206
+ var l, ee;
207
+ const K = he((l = (ee = d.dialog) == null ? void 0 : ee.ownerDocument) != null ? l : g == null ? void 0 : g.document);
208
+ d.dialog && K && !we(d.dialog, K) && (f.current = K, d.dialog.focus());
209
+ }
210
+ }), U = p(() => {
211
+ if (d.remove(), A.current == null || A.current(), W.current == null || W.current(), O) {
212
+ var l;
213
+ (l = f.current) == null || l.focus == null || l.focus(ae), f.current = null;
214
+ }
215
+ });
216
+ pe(() => {
217
+ !n || !_ || E();
218
+ }, [
219
+ n,
220
+ _,
221
+ /* should never change: */
222
+ E
223
+ ]), pe(() => {
224
+ y && U();
225
+ }, [y, U]), Be(() => {
226
+ U();
227
+ });
228
+ const ue = p(() => {
229
+ if (!oe || !ce() || !d.isTopModal())
230
+ return;
231
+ const l = he(g == null ? void 0 : g.document);
232
+ d.dialog && l && !we(d.dialog, l) && d.dialog.focus();
233
+ }), Z = p((l) => {
234
+ l.target === l.currentTarget && (S == null || S(l), m === !0 && F());
235
+ }), fe = p((l) => {
236
+ v && Je(l) && d.isTopModal() && (h == null || h(l), l.defaultPrevented || F());
237
+ }), W = T(), A = T(), J = (...l) => {
238
+ w(!0), j == null || j(...l);
239
+ };
240
+ if (!_)
241
+ return null;
242
+ const M = Object.assign({
243
+ role: o,
244
+ ref: d.setDialogRef,
245
+ // apparently only works on the dialog role element
246
+ "aria-modal": o === "dialog" ? !0 : void 0
247
+ }, de, {
248
+ style: r,
249
+ className: a,
250
+ tabIndex: -1
251
+ });
252
+ let G = q ? q(M) : /* @__PURE__ */ i.jsx("div", Object.assign({}, M, {
253
+ children: /* @__PURE__ */ u.cloneElement(C, {
254
+ role: "document"
255
+ })
256
+ }));
257
+ G = Ae(D, R, {
258
+ unmountOnExit: !0,
259
+ mountOnEnter: !0,
260
+ appear: !0,
261
+ in: !!n,
262
+ onExit: le,
263
+ onExiting: V,
264
+ onExited: J,
265
+ onEnter: Q,
266
+ onEntering: Y,
267
+ onEntered: X,
268
+ children: G
269
+ });
270
+ let b = null;
271
+ return m && (b = se({
272
+ ref: d.setBackdropRef,
273
+ onClick: Z
274
+ }), b = Ae(N, ne, {
275
+ in: !!n,
276
+ appear: !0,
277
+ mountOnEnter: !0,
278
+ unmountOnExit: !0,
279
+ children: b
280
+ })), /* @__PURE__ */ i.jsx(i.Fragment, {
281
+ children: /* @__PURE__ */ ct.createPortal(/* @__PURE__ */ i.jsxs(i.Fragment, {
282
+ children: [b, G]
283
+ }), _)
284
+ });
285
+ });
286
+ Fe.displayName = "Modal";
287
+ const _t = Object.assign(Fe, {
288
+ Manager: ye
289
+ });
290
+ function wt(t, e) {
291
+ t.classList ? t.classList.add(e) : et(t, e) || (typeof t.className == "string" ? t.className = t.className + " " + e : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + e));
292
+ }
293
+ function ke(t, e) {
294
+ return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
295
+ }
296
+ function At(t, e) {
297
+ t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = ke(t.className, e) : t.setAttribute("class", ke(t.className && t.className.baseVal || "", e));
298
+ }
299
+ const L = {
300
+ FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
301
+ STICKY_CONTENT: ".sticky-top",
302
+ NAVBAR_TOGGLER: ".navbar-toggler"
303
+ };
304
+ class Mt extends ye {
305
+ adjustAndStore(e, n, o) {
306
+ const a = n.style[e];
307
+ n.dataset[e] = a, H(n, {
308
+ [e]: `${parseFloat(H(n, e)) + o}px`
309
+ });
310
+ }
311
+ restore(e, n) {
312
+ const o = n.dataset[e];
313
+ o !== void 0 && (delete n.dataset[e], H(n, {
314
+ [e]: o
315
+ }));
316
+ }
317
+ setContainerStyle(e) {
318
+ super.setContainerStyle(e);
319
+ const n = this.getElement();
320
+ if (wt(n, "modal-open"), !e.scrollBarWidth)
321
+ return;
322
+ const o = this.isRTL ? "paddingLeft" : "paddingRight", a = this.isRTL ? "marginLeft" : "marginRight";
323
+ x(n, L.FIXED_CONTENT).forEach((r) => this.adjustAndStore(o, r, e.scrollBarWidth)), x(n, L.STICKY_CONTENT).forEach((r) => this.adjustAndStore(a, r, -e.scrollBarWidth)), x(n, L.NAVBAR_TOGGLER).forEach((r) => this.adjustAndStore(a, r, e.scrollBarWidth));
324
+ }
325
+ removeContainerStyle(e) {
326
+ super.removeContainerStyle(e);
327
+ const n = this.getElement();
328
+ At(n, "modal-open");
329
+ const o = this.isRTL ? "paddingLeft" : "paddingRight", a = this.isRTL ? "marginLeft" : "marginRight";
330
+ x(n, L.FIXED_CONTENT).forEach((r) => this.restore(o, r)), x(n, L.STICKY_CONTENT).forEach((r) => this.restore(a, r)), x(n, L.NAVBAR_TOGGLER).forEach((r) => this.restore(a, r));
331
+ }
332
+ }
333
+ let Ee;
334
+ function bt(t) {
335
+ return Ee || (Ee = new Mt(t)), Ee;
336
+ }
337
+ const je = /* @__PURE__ */ u.forwardRef(({
338
+ className: t,
339
+ bsPrefix: e,
340
+ as: n = "div",
341
+ ...o
342
+ }, a) => (e = B(e, "modal-body"), /* @__PURE__ */ i.jsx(n, {
343
+ ref: a,
344
+ className: c(t, e),
345
+ ...o
346
+ })));
347
+ je.displayName = "ModalBody";
348
+ const Ue = /* @__PURE__ */ u.createContext({
349
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
350
+ onHide() {
351
+ }
352
+ }), Se = /* @__PURE__ */ u.forwardRef(({
353
+ bsPrefix: t,
354
+ className: e,
355
+ contentClassName: n,
356
+ centered: o,
357
+ size: a,
358
+ fullscreen: r,
359
+ children: C,
360
+ scrollable: m,
361
+ ...v
362
+ }, S) => {
363
+ t = B(t, "modal");
364
+ const h = `${t}-dialog`, D = typeof r == "string" ? `${t}-fullscreen-${r}` : `${t}-fullscreen`;
365
+ return /* @__PURE__ */ i.jsx("div", {
366
+ ...v,
367
+ ref: S,
368
+ className: c(h, e, a && `${t}-${a}`, o && `${h}-centered`, m && `${h}-scrollable`, r && D),
369
+ children: /* @__PURE__ */ i.jsx("div", {
370
+ className: c(`${t}-content`, n),
371
+ children: C
372
+ })
373
+ });
374
+ });
375
+ Se.displayName = "ModalDialog";
376
+ const We = /* @__PURE__ */ u.forwardRef(({
377
+ className: t,
378
+ bsPrefix: e,
379
+ as: n = "div",
380
+ ...o
381
+ }, a) => (e = B(e, "modal-footer"), /* @__PURE__ */ i.jsx(n, {
382
+ ref: a,
383
+ className: c(t, e),
384
+ ...o
385
+ })));
386
+ We.displayName = "ModalFooter";
387
+ const It = /* @__PURE__ */ u.forwardRef(({
388
+ closeLabel: t = "Close",
389
+ closeVariant: e,
390
+ closeButton: n = !1,
391
+ onHide: o,
392
+ children: a,
393
+ ...r
394
+ }, C) => {
395
+ const m = lt(Ue), v = p(() => {
396
+ m == null || m.onHide(), o == null || o();
397
+ });
398
+ return /* @__PURE__ */ i.jsxs("div", {
399
+ ref: C,
400
+ ...r,
401
+ children: [a, n && /* @__PURE__ */ i.jsx(Re, {
402
+ "aria-label": t,
403
+ variant: e,
404
+ onClick: v
405
+ })]
406
+ });
407
+ }), Ge = /* @__PURE__ */ u.forwardRef(({
408
+ bsPrefix: t,
409
+ className: e,
410
+ closeLabel: n = "Close",
411
+ closeButton: o = !1,
412
+ ...a
413
+ }, r) => (t = B(t, "modal-header"), /* @__PURE__ */ i.jsx(It, {
414
+ ref: r,
415
+ ...a,
416
+ className: c(e, t),
417
+ closeLabel: n,
418
+ closeButton: o
419
+ })));
420
+ Ge.displayName = "ModalHeader";
421
+ const kt = gt("h4"), Ke = /* @__PURE__ */ u.forwardRef(({
422
+ className: t,
423
+ bsPrefix: e,
424
+ as: n = kt,
425
+ ...o
426
+ }, a) => (e = B(e, "modal-title"), /* @__PURE__ */ i.jsx(n, {
427
+ ref: a,
428
+ className: c(t, e),
429
+ ...o
430
+ })));
431
+ Ke.displayName = "ModalTitle";
432
+ function xt(t) {
433
+ return /* @__PURE__ */ i.jsx(De, {
434
+ ...t,
435
+ timeout: null
436
+ });
437
+ }
438
+ function Lt(t) {
439
+ return /* @__PURE__ */ i.jsx(De, {
440
+ ...t,
441
+ timeout: null
442
+ });
443
+ }
444
+ const He = /* @__PURE__ */ u.forwardRef(({
445
+ bsPrefix: t,
446
+ className: e,
447
+ style: n,
448
+ dialogClassName: o,
449
+ contentClassName: a,
450
+ children: r,
451
+ dialogAs: C = Se,
452
+ "data-bs-theme": m,
453
+ "aria-labelledby": v,
454
+ "aria-describedby": S,
455
+ "aria-label": h,
456
+ /* BaseModal props */
457
+ show: D = !1,
458
+ animation: R = !0,
459
+ backdrop: N = !0,
460
+ keyboard: ne = !0,
461
+ onEscapeKeyDown: $,
462
+ onShow: oe,
463
+ onHide: O,
464
+ container: ae,
465
+ autoFocus: q = !0,
466
+ enforceFocus: se = !0,
467
+ restoreFocus: re = !0,
468
+ restoreFocusOptions: ie,
469
+ onEntered: z,
470
+ onExit: F,
471
+ onExiting: le,
472
+ onEnter: j,
473
+ onEntering: V,
474
+ onExited: Q,
475
+ backdropClassName: Y,
476
+ manager: X,
477
+ ...de
478
+ }, g) => {
479
+ const [_, d] = Te({}), [ce, P] = Te(!1), y = T(!1), w = T(!1), f = T(null), [E, U] = tt(), ue = nt(g, U), Z = p(O), fe = ot();
480
+ t = B(t, "modal");
481
+ const W = dt(() => ({
482
+ onHide: Z
483
+ }), [Z]);
484
+ function A() {
485
+ return X || bt({
486
+ isRTL: fe
487
+ });
488
+ }
489
+ function J(s) {
490
+ if (!ve)
491
+ return;
492
+ const I = A().getScrollbarWidth() > 0, Oe = s.scrollHeight > xe(s).documentElement.clientHeight;
493
+ d({
494
+ paddingRight: I && !Oe ? be() : void 0,
495
+ paddingLeft: !I && Oe ? be() : void 0
496
+ });
497
+ }
498
+ const M = p(() => {
499
+ E && J(E.dialog);
500
+ });
501
+ Be(() => {
502
+ Me(window, "resize", M), f.current == null || f.current();
503
+ });
504
+ const G = () => {
505
+ y.current = !0;
506
+ }, b = (s) => {
507
+ y.current && E && s.target === E.dialog && (w.current = !0), y.current = !1;
508
+ }, l = () => {
509
+ P(!0), f.current = st(E.dialog, () => {
510
+ P(!1);
511
+ });
512
+ }, ee = (s) => {
513
+ s.target === s.currentTarget && l();
514
+ }, K = (s) => {
515
+ if (N === "static") {
516
+ ee(s);
517
+ return;
518
+ }
519
+ if (w.current || s.target !== s.currentTarget) {
520
+ w.current = !1;
521
+ return;
522
+ }
523
+ O == null || O();
524
+ }, $e = (s) => {
525
+ ne ? $ == null || $(s) : (s.preventDefault(), N === "static" && l());
526
+ }, qe = (s, I) => {
527
+ s && J(s), j == null || j(s, I);
528
+ }, ze = (s) => {
529
+ f.current == null || f.current(), F == null || F(s);
530
+ }, Ve = (s, I) => {
531
+ V == null || V(s, I), at(window, "resize", M);
532
+ }, Qe = (s) => {
533
+ s && (s.style.display = ""), Q == null || Q(s), Me(window, "resize", M);
534
+ }, Ye = Ce((s) => /* @__PURE__ */ i.jsx("div", {
535
+ ...s,
536
+ className: c(`${t}-backdrop`, Y, !R && "show")
537
+ }), [R, Y, t]), Ne = {
538
+ ...n,
539
+ ..._
540
+ };
541
+ Ne.display = "block";
542
+ const Xe = (s) => /* @__PURE__ */ i.jsx("div", {
543
+ role: "dialog",
544
+ ...s,
545
+ style: Ne,
546
+ className: c(e, t, ce && `${t}-static`, !R && "show"),
547
+ onClick: N ? K : void 0,
548
+ onMouseUp: b,
549
+ "data-bs-theme": m,
550
+ "aria-label": h,
551
+ "aria-labelledby": v,
552
+ "aria-describedby": S,
553
+ children: /* @__PURE__ */ i.jsx(C, {
554
+ ...de,
555
+ onMouseDown: G,
556
+ className: o,
557
+ contentClassName: a,
558
+ children: r
559
+ })
560
+ });
561
+ return /* @__PURE__ */ i.jsx(Ue.Provider, {
562
+ value: W,
563
+ children: /* @__PURE__ */ i.jsx(_t, {
564
+ show: D,
565
+ ref: ue,
566
+ backdrop: N,
567
+ container: ae,
568
+ keyboard: !0,
569
+ autoFocus: q,
570
+ enforceFocus: se,
571
+ restoreFocus: re,
572
+ restoreFocusOptions: ie,
573
+ onEscapeKeyDown: $e,
574
+ onShow: oe,
575
+ onHide: O,
576
+ onEnter: qe,
577
+ onEntering: Ve,
578
+ onEntered: z,
579
+ onExit: ze,
580
+ onExiting: le,
581
+ onExited: Qe,
582
+ manager: A(),
583
+ transition: R ? xt : void 0,
584
+ backdropTransition: R ? Lt : void 0,
585
+ renderBackdrop: Ye,
586
+ renderDialog: Xe
587
+ })
588
+ });
589
+ });
590
+ He.displayName = "Modal";
591
+ const Ut = Object.assign(He, {
592
+ Body: je,
593
+ Header: Ge,
594
+ Title: Ke,
595
+ Footer: We,
596
+ Dialog: Se,
597
+ TRANSITION_DURATION: 300,
598
+ BACKDROP_TRANSITION_DURATION: 150
599
+ });
600
+ /*! @azure/msal-browser v3.14.0 2024-05-07 */
601
+ const Wt = {
602
+ INITIALIZE_START: "msal:initializeStart",
603
+ INITIALIZE_END: "msal:initializeEnd",
604
+ ACCOUNT_ADDED: "msal:accountAdded",
605
+ ACCOUNT_REMOVED: "msal:accountRemoved",
606
+ ACTIVE_ACCOUNT_CHANGED: "msal:activeAccountChanged",
607
+ LOGIN_START: "msal:loginStart",
608
+ LOGIN_SUCCESS: "msal:loginSuccess",
609
+ LOGIN_FAILURE: "msal:loginFailure",
610
+ ACQUIRE_TOKEN_START: "msal:acquireTokenStart",
611
+ ACQUIRE_TOKEN_SUCCESS: "msal:acquireTokenSuccess",
612
+ ACQUIRE_TOKEN_FAILURE: "msal:acquireTokenFailure",
613
+ ACQUIRE_TOKEN_NETWORK_START: "msal:acquireTokenFromNetworkStart",
614
+ SSO_SILENT_START: "msal:ssoSilentStart",
615
+ SSO_SILENT_SUCCESS: "msal:ssoSilentSuccess",
616
+ SSO_SILENT_FAILURE: "msal:ssoSilentFailure",
617
+ ACQUIRE_TOKEN_BY_CODE_START: "msal:acquireTokenByCodeStart",
618
+ ACQUIRE_TOKEN_BY_CODE_SUCCESS: "msal:acquireTokenByCodeSuccess",
619
+ ACQUIRE_TOKEN_BY_CODE_FAILURE: "msal:acquireTokenByCodeFailure",
620
+ HANDLE_REDIRECT_START: "msal:handleRedirectStart",
621
+ HANDLE_REDIRECT_END: "msal:handleRedirectEnd",
622
+ POPUP_OPENED: "msal:popupOpened",
623
+ LOGOUT_START: "msal:logoutStart",
624
+ LOGOUT_SUCCESS: "msal:logoutSuccess",
625
+ LOGOUT_FAILURE: "msal:logoutFailure",
626
+ LOGOUT_END: "msal:logoutEnd",
627
+ RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
628
+ };
629
+ export {
630
+ Wt as E,
631
+ jt as L,
632
+ Ut as M,
633
+ vt as d,
634
+ x as q,
635
+ Et as u
636
+ };
@@ -0,0 +1,5 @@
1
+ import { j as o, X as t, ai as a } from "./UserAvatarToggle-CH7OqxNp.js";
2
+ const l = ({ text: s, placement: r, children: i }) => /* @__PURE__ */ o.jsx(t, { placement: r, overlay: /* @__PURE__ */ o.jsx(a, { className: "luminus-tooltip", children: s }), children: i });
3
+ export {
4
+ l as S
5
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("./UserAvatarToggle-DEb7Klk7.cjs"),s=({text:t,placement:o,children:r})=>e.jsxRuntimeExports.jsx(e.OverlayTrigger,{placement:o,overlay:e.jsxRuntimeExports.jsx(e.Tooltip,{className:"luminus-tooltip",children:t}),children:r});exports.SimpleTooltip=s;
1
+ "use strict";const e=require("./UserAvatarToggle-rzyVxLmG.cjs"),s=({text:t,placement:o,children:r})=>e.jsxRuntimeExports.jsx(e.OverlayTrigger,{placement:o,overlay:e.jsxRuntimeExports.jsx(e.Tooltip,{className:"luminus-tooltip",children:t}),children:r});exports.SimpleTooltip=s;