react-luminus-components 2.1.8 → 2.1.9

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 (48) hide show
  1. package/dist/.vite/manifest.json +191 -50
  2. package/dist/Alert-BApdinGX.cjs +1 -0
  3. package/dist/Alert-D2Bw906t.js +495 -0
  4. package/dist/DelegationContext-B1WXROG2.cjs +201 -0
  5. package/dist/DelegationContext-CCnk58PI.js +3156 -0
  6. package/dist/HelmetContext-ChKPef74.js +49 -0
  7. package/dist/HelmetContext-DDQ-Phg7.cjs +1 -0
  8. package/dist/PrimaryButton-D7r0m8xi.js +742 -0
  9. package/dist/PrimaryButton-D91b3Dmv.cjs +1 -0
  10. package/dist/SimpleTooltip-B00uLuVM.cjs +1 -0
  11. package/dist/SimpleTooltip-dwOOgecT.js +1642 -0
  12. package/dist/Typography-C5KJzU5O.js +1627 -0
  13. package/dist/Typography-Fo21SeyJ.cjs +20 -0
  14. package/dist/UserContext-45ZxeQHB.cjs +1 -0
  15. package/dist/UserContext-ZsTsf5Xe.js +270 -0
  16. package/dist/contexts.cjs.js +1 -1
  17. package/dist/contexts.es.js +1773 -852
  18. package/dist/dateUtils-CXm9PEh6.cjs +1 -0
  19. package/dist/dateUtils-ayErBYbI.js +1488 -0
  20. package/dist/hooks.cjs.js +1 -1
  21. package/dist/hooks.es.js +118 -123
  22. package/dist/index-4IYT9u10.js +95 -0
  23. package/dist/index-jmbq5h95.cjs +25 -0
  24. package/dist/layout.cjs.js +1 -1
  25. package/dist/layout.es.js +97 -98
  26. package/dist/localStorageUtils-BSATUi5m.cjs +1 -0
  27. package/dist/localStorageUtils-DNgjNynk.js +1070 -0
  28. package/dist/main.cjs.js +56 -7
  29. package/dist/main.es.js +36660 -11628
  30. package/dist/models/texts/ApprovalTexts.d.ts +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/useIsFormDirty-76y8Dca-.cjs +1 -0
  33. package/dist/useIsFormDirty-Ba5uhPH7.js +3257 -0
  34. package/dist/useWindowSize-7W91GsJQ.js +56 -0
  35. package/dist/useWindowSize-CLoDaEYh.cjs +1 -0
  36. package/dist/utils.cjs.js +1 -1
  37. package/dist/utils.es.js +79 -85
  38. package/package.json +10 -1
  39. package/dist/FormDisabledProvider-D-DRODSt.js +0 -51
  40. package/dist/FormDisabledProvider-Dt39yr7W.cjs +0 -1
  41. package/dist/localStorageUtils-CVwJ9FKd.cjs +0 -1
  42. package/dist/localStorageUtils-TeLq8MHE.js +0 -59
  43. package/dist/nivo-bar-D6NJLYWS.js +0 -39616
  44. package/dist/nivo-bar-SBWBmyeI.cjs +0 -293
  45. package/dist/useIsFormDirty-CZ4jNRFn.js +0 -117
  46. package/dist/useIsFormDirty-Crsu8mjo.cjs +0 -1
  47. package/dist/useLocalStorageState-Ca7olZgH.cjs +0 -1
  48. package/dist/useLocalStorageState-DtBc-C2W.js +0 -25
@@ -0,0 +1,495 @@
1
+ import { G as K, L as re } from "./UserContext-ZsTsf5Xe.js";
2
+ import { jsx as m, jsxs as z, Fragment as G } from "react/jsx-runtime";
3
+ import { a as D, c as ee } from "./index-4IYT9u10.js";
4
+ import { d as we, C as Oe, H as Se } from "./HelmetContext-ChKPef74.js";
5
+ import { u as ce } from "./useWindowSize-7W91GsJQ.js";
6
+ import { e as te, u as Ce, F as ne, m as ye, o as le } from "./Typography-C5KJzU5O.js";
7
+ import * as T from "react";
8
+ import { useContext as q, useState as J, useEffect as ie } from "react";
9
+ import { d as xe } from "./SimpleTooltip-dwOOgecT.js";
10
+ const ue = we("h4");
11
+ ue.displayName = "DivStyledAsH4";
12
+ const de = /* @__PURE__ */ T.forwardRef(({
13
+ className: t,
14
+ bsPrefix: e,
15
+ as: n = ue,
16
+ ...i
17
+ }, r) => (e = te(e, "alert-heading"), /* @__PURE__ */ m(n, {
18
+ ref: r,
19
+ className: D(t, e),
20
+ ...i
21
+ })));
22
+ de.displayName = "AlertHeading";
23
+ const je = ["as", "disabled"];
24
+ function Me(t, e) {
25
+ if (t == null) return {};
26
+ var n = {};
27
+ for (var i in t) if ({}.hasOwnProperty.call(t, i)) {
28
+ if (e.indexOf(i) >= 0) continue;
29
+ n[i] = t[i];
30
+ }
31
+ return n;
32
+ }
33
+ function Ae(t) {
34
+ return !t || t.trim() === "#";
35
+ }
36
+ function fe({
37
+ tagName: t,
38
+ disabled: e,
39
+ href: n,
40
+ target: i,
41
+ rel: r,
42
+ role: d,
43
+ onClick: f,
44
+ tabIndex: b = 0,
45
+ type: p
46
+ }) {
47
+ t || (n != null || i != null || r != null ? t = "a" : t = "button");
48
+ const w = {
49
+ tagName: t
50
+ };
51
+ if (t === "button")
52
+ return [{
53
+ type: p || "button",
54
+ disabled: e
55
+ }, w];
56
+ const s = (o) => {
57
+ if ((e || t === "a" && Ae(n)) && o.preventDefault(), e) {
58
+ o.stopPropagation();
59
+ return;
60
+ }
61
+ f == null || f(o);
62
+ }, a = (o) => {
63
+ o.key === " " && (o.preventDefault(), s(o));
64
+ };
65
+ return t === "a" && (n || (n = "#"), e && (n = void 0)), [{
66
+ role: d ?? "button",
67
+ // explicitly undefined so that it overrides the props disabled in a spread
68
+ // e.g. <Tag {...props} {...hookProps} />
69
+ disabled: void 0,
70
+ tabIndex: e ? void 0 : b,
71
+ href: n,
72
+ target: t === "a" ? i : void 0,
73
+ "aria-disabled": e || void 0,
74
+ rel: t === "a" ? r : void 0,
75
+ onClick: s,
76
+ onKeyDown: a
77
+ }, w];
78
+ }
79
+ const Ee = /* @__PURE__ */ T.forwardRef((t, e) => {
80
+ let {
81
+ as: n,
82
+ disabled: i
83
+ } = t, r = Me(t, je);
84
+ const [d, {
85
+ tagName: f
86
+ }] = fe(Object.assign({
87
+ tagName: n,
88
+ disabled: i
89
+ }, r));
90
+ return /* @__PURE__ */ m(f, Object.assign({}, r, d, {
91
+ ref: e
92
+ }));
93
+ });
94
+ Ee.displayName = "Button";
95
+ const He = ["onKeyDown"];
96
+ function Te(t, e) {
97
+ if (t == null) return {};
98
+ var n = {};
99
+ for (var i in t) if ({}.hasOwnProperty.call(t, i)) {
100
+ if (e.indexOf(i) >= 0) continue;
101
+ n[i] = t[i];
102
+ }
103
+ return n;
104
+ }
105
+ function De(t) {
106
+ return !t || t.trim() === "#";
107
+ }
108
+ const he = /* @__PURE__ */ T.forwardRef((t, e) => {
109
+ let {
110
+ onKeyDown: n
111
+ } = t, i = Te(t, He);
112
+ const [r] = fe(Object.assign({
113
+ tagName: "a"
114
+ }, i)), d = Ce((f) => {
115
+ r.onKeyDown(f), n == null || n(f);
116
+ });
117
+ return De(i.href) || i.role === "button" ? /* @__PURE__ */ m("a", Object.assign({
118
+ ref: e
119
+ }, i, r, {
120
+ onKeyDown: d
121
+ })) : /* @__PURE__ */ m("a", Object.assign({
122
+ ref: e
123
+ }, i, {
124
+ onKeyDown: n
125
+ }));
126
+ });
127
+ he.displayName = "Anchor";
128
+ const me = /* @__PURE__ */ T.forwardRef(({
129
+ className: t,
130
+ bsPrefix: e,
131
+ as: n = he,
132
+ ...i
133
+ }, r) => (e = te(e, "alert-link"), /* @__PURE__ */ m(n, {
134
+ ref: r,
135
+ className: D(t, e),
136
+ ...i
137
+ })));
138
+ me.displayName = "AlertLink";
139
+ const be = /* @__PURE__ */ T.forwardRef((t, e) => {
140
+ const {
141
+ bsPrefix: n,
142
+ show: i = !0,
143
+ closeLabel: r = "Close alert",
144
+ closeVariant: d,
145
+ className: f,
146
+ children: b,
147
+ variant: p = "primary",
148
+ onClose: w,
149
+ dismissible: s,
150
+ transition: a = ne,
151
+ ...o
152
+ } = xe(t, {
153
+ show: "onClose"
154
+ }), c = te(n, "alert"), u = ye((A) => {
155
+ w && w(!1, A);
156
+ }), h = a === !0 ? ne : a, l = /* @__PURE__ */ z("div", {
157
+ role: "alert",
158
+ ...h ? void 0 : o,
159
+ ref: e,
160
+ className: D(f, c, p && `${c}-${p}`, s && `${c}-dismissible`),
161
+ children: [s && /* @__PURE__ */ m(Oe, {
162
+ onClick: u,
163
+ "aria-label": r,
164
+ variant: d
165
+ }), b]
166
+ });
167
+ return h ? /* @__PURE__ */ m(h, {
168
+ unmountOnExit: !0,
169
+ ...o,
170
+ ref: void 0,
171
+ in: i,
172
+ children: l
173
+ }) : i ? l : null;
174
+ });
175
+ be.displayName = "Alert";
176
+ const Le = Object.assign(be, {
177
+ Link: me,
178
+ Heading: de
179
+ });
180
+ function ut(t) {
181
+ return K({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M238.15,78.54,177.46,17.86a20,20,0,0,0-28.3,0L97.2,70c-12.43-3.33-36.68-5.72-61.74,14.5a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.91,228c.46,0,.93,0,1.4-.05A20,20,0,0,0,171.87,220c4.69-6.23,11-16.13,14.44-28s3.45-22.88.16-33.4l51.7-51.87A20,20,0,0,0,238.15,78.54Zm-74.26,68.79a12,12,0,0,0-2.23,13.84c3.43,6.86,6.9,21-6.28,40.65L54.08,100.53c21.09-14.59,39.53-6.64,41-6a11.67,11.67,0,0,0,13.81-2.29l54.43-54.61,55,55Z" }, child: [] }] })(t);
182
+ }
183
+ function dt(t) {
184
+ return K({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M56.88,31.93A12,12,0,1,0,39.12,48.07L60,71A76,76,0,0,0,35.46,84.51a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.9,228c.47,0,.94,0,1.41-.05A20,20,0,0,0,171.87,220a97.47,97.47,0,0,0,9.54-15.46l17.72,19.49a12,12,0,1,0,17.76-16.14Zm98.49,169.88L54.08,100.52C62,95,70.31,92.12,78.91,91.83l84.51,93A62,62,0,0,1,155.37,201.81Zm82.78-95-39,39.11a12,12,0,1,1-17-16.95l36.19-36.3-55-55L130.59,70.5a12,12,0,0,1-17-16.94l35.57-35.69a20,20,0,0,1,28.3,0l60.69,60.68A20,20,0,0,1,238.15,106.83Z" }, child: [] }] })(t);
185
+ }
186
+ function ft(t) {
187
+ return K({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z" }, child: [] }] })(t);
188
+ }
189
+ function ht(t) {
190
+ return K({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM68.24,153.94l-12-48a8,8,0,1,1,15.52-3.88l6.76,27,6.32-12.66a8,8,0,0,1,14.32,0l6.32,12.66,6.76-27a8,8,0,0,1,15.52,3.88l-12,48a8,8,0,0,1-6.89,6,8.46,8.46,0,0,1-.87.05,8,8,0,0,1-7.16-4.42L92,137.89l-8.84,17.69a8,8,0,0,1-14.92-1.64ZM200,216H72V192h72a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16H72V40H200Z" }, child: [] }] })(t);
191
+ }
192
+ const _e = "Left", Pe = "Right", Re = "Up", $e = "Down", Z = {
193
+ delta: 10,
194
+ preventScrollOnSwipe: !1,
195
+ rotationAngle: 0,
196
+ trackMouse: !1,
197
+ trackTouch: !0,
198
+ swipeDuration: 1 / 0,
199
+ touchEventOptions: { passive: !0 }
200
+ }, Q = {
201
+ first: !0,
202
+ initial: [0, 0],
203
+ start: 0,
204
+ swiping: !1,
205
+ xy: [0, 0]
206
+ }, oe = "mousemove", se = "mouseup", ke = "touchend", Ne = "touchmove", Ue = "touchstart";
207
+ function Be(t, e, n, i) {
208
+ return t > e ? n > 0 ? Pe : _e : i > 0 ? $e : Re;
209
+ }
210
+ function ae(t, e) {
211
+ if (e === 0)
212
+ return t;
213
+ const n = Math.PI / 180 * e, i = t[0] * Math.cos(n) + t[1] * Math.sin(n), r = t[1] * Math.cos(n) - t[0] * Math.sin(n);
214
+ return [i, r];
215
+ }
216
+ function Ze(t, e) {
217
+ const n = (s) => {
218
+ const a = "touches" in s;
219
+ a && s.touches.length > 1 || t((o, c) => {
220
+ c.trackMouse && !a && (document.addEventListener(oe, i), document.addEventListener(se, f));
221
+ const { clientX: u, clientY: h } = a ? s.touches[0] : s, l = ae([u, h], c.rotationAngle);
222
+ return c.onTouchStartOrOnMouseDown && c.onTouchStartOrOnMouseDown({ event: s }), Object.assign(Object.assign(Object.assign({}, o), Q), { initial: l.slice(), xy: l, start: s.timeStamp || 0 });
223
+ });
224
+ }, i = (s) => {
225
+ t((a, o) => {
226
+ const c = "touches" in s;
227
+ if (c && s.touches.length > 1)
228
+ return a;
229
+ if (s.timeStamp - a.start > o.swipeDuration)
230
+ return a.swiping ? Object.assign(Object.assign({}, a), { swiping: !1 }) : a;
231
+ const { clientX: u, clientY: h } = c ? s.touches[0] : s, [l, A] = ae([u, h], o.rotationAngle), O = l - a.xy[0], g = A - a.xy[1], S = Math.abs(O), v = Math.abs(g), C = (s.timeStamp || 0) - a.start, j = Math.sqrt(S * S + v * v) / (C || 1), M = [O / (C || 1), g / (C || 1)], y = Be(S, v, O, g), x = typeof o.delta == "number" ? o.delta : o.delta[y.toLowerCase()] || Z.delta;
232
+ if (S < x && v < x && !a.swiping)
233
+ return a;
234
+ const E = {
235
+ absX: S,
236
+ absY: v,
237
+ deltaX: O,
238
+ deltaY: g,
239
+ dir: y,
240
+ event: s,
241
+ first: a.first,
242
+ initial: a.initial,
243
+ velocity: j,
244
+ vxvy: M
245
+ };
246
+ E.first && o.onSwipeStart && o.onSwipeStart(E), o.onSwiping && o.onSwiping(E);
247
+ let L = !1;
248
+ return (o.onSwiping || o.onSwiped || o[`onSwiped${y}`]) && (L = !0), L && o.preventScrollOnSwipe && o.trackTouch && s.cancelable && s.preventDefault(), Object.assign(Object.assign({}, a), {
249
+ // first is now always false
250
+ first: !1,
251
+ eventData: E,
252
+ swiping: !0
253
+ });
254
+ });
255
+ }, r = (s) => {
256
+ t((a, o) => {
257
+ let c;
258
+ if (a.swiping && a.eventData) {
259
+ if (s.timeStamp - a.start < o.swipeDuration) {
260
+ c = Object.assign(Object.assign({}, a.eventData), { event: s }), o.onSwiped && o.onSwiped(c);
261
+ const u = o[`onSwiped${c.dir}`];
262
+ u && u(c);
263
+ }
264
+ } else
265
+ o.onTap && o.onTap({ event: s });
266
+ return o.onTouchEndOrOnMouseUp && o.onTouchEndOrOnMouseUp({ event: s }), Object.assign(Object.assign(Object.assign({}, a), Q), { eventData: c });
267
+ });
268
+ }, d = () => {
269
+ document.removeEventListener(oe, i), document.removeEventListener(se, f);
270
+ }, f = (s) => {
271
+ d(), r(s);
272
+ }, b = (s, a) => {
273
+ let o = () => {
274
+ };
275
+ if (s && s.addEventListener) {
276
+ const c = Object.assign(Object.assign({}, Z.touchEventOptions), a.touchEventOptions), u = [
277
+ [Ue, n, c],
278
+ // preventScrollOnSwipe option supersedes touchEventOptions.passive
279
+ [
280
+ Ne,
281
+ i,
282
+ Object.assign(Object.assign({}, c), a.preventScrollOnSwipe ? { passive: !1 } : {})
283
+ ],
284
+ [ke, r, c]
285
+ ];
286
+ u.forEach(([h, l, A]) => s.addEventListener(h, l, A)), o = () => u.forEach(([h, l]) => s.removeEventListener(h, l));
287
+ }
288
+ return o;
289
+ }, w = {
290
+ ref: (s) => {
291
+ s !== null && t((a, o) => {
292
+ if (a.el === s)
293
+ return a;
294
+ const c = {};
295
+ return a.el && a.el !== s && a.cleanUpTouch && (a.cleanUpTouch(), c.cleanUpTouch = void 0), o.trackTouch && s && (c.cleanUpTouch = b(s, o)), Object.assign(Object.assign(Object.assign({}, a), { el: s }), c);
296
+ });
297
+ }
298
+ };
299
+ return e.trackMouse && (w.onMouseDown = n), [w, b];
300
+ }
301
+ function ze(t, e, n, i) {
302
+ return !e.trackTouch || !t.el ? (t.cleanUpTouch && t.cleanUpTouch(), Object.assign(Object.assign({}, t), { cleanUpTouch: void 0 })) : t.cleanUpTouch ? e.preventScrollOnSwipe !== n.preventScrollOnSwipe || e.touchEventOptions.passive !== n.touchEventOptions.passive ? (t.cleanUpTouch(), Object.assign(Object.assign({}, t), { cleanUpTouch: i(t.el, e) })) : t : Object.assign(Object.assign({}, t), { cleanUpTouch: i(t.el, e) });
303
+ }
304
+ function pe(t) {
305
+ const { trackMouse: e } = t, n = T.useRef(Object.assign({}, Q)), i = T.useRef(Object.assign({}, Z)), r = T.useRef(Object.assign({}, i.current));
306
+ r.current = Object.assign({}, i.current), i.current = Object.assign(Object.assign({}, Z), t);
307
+ let d;
308
+ for (d in Z)
309
+ i.current[d] === void 0 && (i.current[d] = Z[d]);
310
+ const [f, b] = T.useMemo(() => Ze((p) => n.current = p(n.current, i.current), { trackMouse: e }), [e]);
311
+ return n.current = ze(n.current, i.current, r.current, b), f;
312
+ }
313
+ const Ve = "_side-content-bar_16o0s_1", Ie = "_mobile_16o0s_12", Xe = "_expanded_16o0s_20", We = "_content-container_16o0s_23", Ke = "_resizer_16o0s_31", Fe = "_expander_16o0s_46", Ye = "_icon_16o0s_65", H = {
314
+ sideContentBar: Ve,
315
+ mobile: Ie,
316
+ expanded: Xe,
317
+ contentContainer: We,
318
+ resizer: Ke,
319
+ expander: Fe,
320
+ icon: Ye
321
+ }, Ge = (t) => {
322
+ const e = ee.c(34), {
323
+ width: n,
324
+ children: i,
325
+ isExpandedOnMobileState: r,
326
+ resizeable: d,
327
+ onResize: f
328
+ } = t, [b, p] = r, w = d === void 0 ? !0 : d, {
329
+ ProjectIconComponent: s
330
+ } = q(re), {
331
+ isMobile: a
332
+ } = ce();
333
+ let o;
334
+ e[0] !== p ? (o = (x) => {
335
+ x.velocity > 0.8 && p(!1);
336
+ }, e[0] = p, e[1] = o) : o = e[1];
337
+ let c;
338
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = {
339
+ delta: 100
340
+ }, e[2] = c) : c = e[2];
341
+ let u;
342
+ e[3] !== o ? (u = {
343
+ onSwipedRight: o,
344
+ ...c
345
+ }, e[3] = o, e[4] = u) : u = e[4];
346
+ const h = pe(u), [l, A] = J(null);
347
+ let O;
348
+ e[5] !== b || e[6] !== a ? (O = D("luminus-side-content-bar shadow", H.sideContentBar, {
349
+ [H.mobile]: a
350
+ }, {
351
+ [H.expanded]: b
352
+ }), e[5] = b, e[6] = a, e[7] = O) : O = e[7];
353
+ const g = `${n}px`;
354
+ let S;
355
+ e[8] !== g ? (S = {
356
+ width: g
357
+ }, e[8] = g, e[9] = S) : S = e[9];
358
+ let v;
359
+ e[10] !== s || e[11] !== (l == null ? void 0 : l.startX) || e[12] !== (l == null ? void 0 : l.widthStart) || e[13] !== a || e[14] !== f || e[15] !== w || e[16] !== n ? (v = w && !a ? /* @__PURE__ */ m("div", { role: "button", className: D(H.resizer, "luminus-side-content-bar-resizer", "shadow"), draggable: !0, onDragStart: (x) => A({
360
+ startX: x.clientX,
361
+ widthStart: n
362
+ }), onDrag: (x) => f(((l == null ? void 0 : l.widthStart) ?? 0) + (((l == null ? void 0 : l.startX) ?? 0) - x.clientX)), onDragEnd: () => A(null), children: /* @__PURE__ */ m(s, { className: H.icon, icon: "resizer-horizontal" }) }) : null, e[10] = s, e[11] = l == null ? void 0 : l.startX, e[12] = l == null ? void 0 : l.widthStart, e[13] = a, e[14] = f, e[15] = w, e[16] = n, e[17] = v) : v = e[17];
363
+ let C;
364
+ e[18] !== i ? (C = /* @__PURE__ */ m("div", { className: H.contentContainer, children: i }), e[18] = i, e[19] = C) : C = e[19];
365
+ let j;
366
+ e[20] !== h || e[21] !== C || e[22] !== O || e[23] !== S || e[24] !== v ? (j = /* @__PURE__ */ z("section", { className: O, style: S, ...h, children: [
367
+ v,
368
+ C
369
+ ] }), e[20] = h, e[21] = C, e[22] = O, e[23] = S, e[24] = v, e[25] = j) : j = e[25];
370
+ let M;
371
+ e[26] !== s || e[27] !== b || e[28] !== a || e[29] !== p ? (M = a ? /* @__PURE__ */ m("div", { role: "button", onClick: () => p(!b), className: D(H.expander, {
372
+ [H.expanded]: b
373
+ }, "luminus-side-content-bar-expander", "shadow"), children: /* @__PURE__ */ m(s, { className: H.icon, icon: "chevron-left" }) }) : null, e[26] = s, e[27] = b, e[28] = a, e[29] = p, e[30] = M) : M = e[30];
374
+ let y;
375
+ return e[31] !== j || e[32] !== M ? (y = /* @__PURE__ */ z(G, { children: [
376
+ j,
377
+ M
378
+ ] }), e[31] = j, e[32] = M, e[33] = y) : y = e[33], y;
379
+ }, qe = (t) => {
380
+ const e = ee.c(4), {
381
+ title: n
382
+ } = t;
383
+ let i;
384
+ e[0] !== n ? (i = typeof n == "string" ? /* @__PURE__ */ m(le, { variant: "h3", children: n }) : n, e[0] = n, e[1] = i) : i = e[1];
385
+ let r;
386
+ return e[2] !== i ? (r = /* @__PURE__ */ m("div", { className: "mb-3", children: i }), e[2] = i, e[3] = r) : r = e[3], r;
387
+ }, Je = "_full-screen-container_1rm4r_1", ge = {
388
+ fullScreenContainer: Je
389
+ }, Qe = D("overflow-hidden luminus-full-screen-container", ge.fullScreenContainer), et = "container-fluid", mt = (t) => {
390
+ const e = ee.c(45), {
391
+ title: n,
392
+ children: i,
393
+ sideContent: r,
394
+ sideContentWidth: d,
395
+ sideContentResizeable: f,
396
+ noPadding: b,
397
+ className: p,
398
+ variant: w,
399
+ helmet: s,
400
+ unavailableOnMobile: a
401
+ } = t, o = d === void 0 ? 250 : d, c = f === void 0 ? !0 : f, u = w === void 0 ? "main" : w, {
402
+ addHelmet: h,
403
+ removeHelmet: l
404
+ } = q(Se), {
405
+ texts: A
406
+ } = q(re), {
407
+ container: O
408
+ } = A, [g, S] = J(o), [v, C] = J(!1);
409
+ let j;
410
+ e: switch (u) {
411
+ case "fullScreen": {
412
+ j = Qe;
413
+ break e;
414
+ }
415
+ case "main": {
416
+ j = et;
417
+ break e;
418
+ }
419
+ default:
420
+ throw new Error(`PageContainer got incorrect variant type: ${u}`);
421
+ }
422
+ const M = j;
423
+ let y, x;
424
+ e[0] !== h || e[1] !== s || e[2] !== l || e[3] !== n ? (y = () => (s ? h(s) : typeof n == "string" && n && h(n), () => l()), x = [s, h, l, n], e[0] = h, e[1] = s, e[2] = l, e[3] = n, e[4] = y, e[5] = x) : (y = e[4], x = e[5]), ie(y, x);
425
+ let E;
426
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (E = {
427
+ onSwipedLeft: (W) => {
428
+ W.velocity > 0.8 && C(!0);
429
+ },
430
+ delta: 100
431
+ }, e[6] = E) : E = e[6];
432
+ const L = pe(E), {
433
+ isMobile: ve
434
+ } = ce(), _ = ve && a;
435
+ let V, I;
436
+ e[7] !== o ? (I = () => {
437
+ S(o);
438
+ }, V = [o], e[7] = o, e[8] = V, e[9] = I) : (V = e[8], I = e[9]), ie(I, V);
439
+ const F = b ? "p-0" : "p-3";
440
+ let P;
441
+ e[10] !== p || e[11] !== F || e[12] !== M ? (P = D(M, F, p), e[10] = p, e[11] = F, e[12] = M, e[13] = P) : P = e[13];
442
+ let R;
443
+ e[14] !== r || e[15] !== g || e[16] !== u ? (R = u === "fullScreen" ? {
444
+ width: r ? `calc(100% - ${g}px)` : "100%"
445
+ } : void 0, e[14] = r, e[15] = g, e[16] = u, e[17] = R) : R = e[17];
446
+ const Y = u === "fullScreen" ? ge.fullScreenContainer : void 0;
447
+ let $;
448
+ e[18] !== r || e[19] !== g || e[20] !== u ? ($ = u === "main" ? {
449
+ paddingRight: r ? `${g}px` : void 0
450
+ } : {
451
+ height: "100%",
452
+ width: "100%"
453
+ }, e[18] = r, e[19] = g, e[20] = u, e[21] = $) : $ = e[21];
454
+ let k;
455
+ e[22] !== _ || e[23] !== i || e[24] !== O || e[25] !== n ? (k = _ ? /* @__PURE__ */ m(tt, { variant: "warning", children: O.unavailableOnMobile }) : /* @__PURE__ */ z(G, { children: [
456
+ n ? /* @__PURE__ */ m(qe, { title: n }) : null,
457
+ i
458
+ ] }), e[22] = _, e[23] = i, e[24] = O, e[25] = n, e[26] = k) : k = e[26];
459
+ let N;
460
+ e[27] !== Y || e[28] !== $ || e[29] !== k ? (N = /* @__PURE__ */ m("div", { className: Y, style: $, children: k }), e[27] = Y, e[28] = $, e[29] = k, e[30] = N) : N = e[30];
461
+ let U;
462
+ e[31] !== L || e[32] !== P || e[33] !== R || e[34] !== N ? (U = /* @__PURE__ */ m("div", { className: P, style: R, ...L, children: N }), e[31] = L, e[32] = P, e[33] = R, e[34] = N, e[35] = U) : U = e[35];
463
+ let B;
464
+ e[36] !== _ || e[37] !== v || e[38] !== r || e[39] !== c || e[40] !== g ? (B = r && !_ ? /* @__PURE__ */ m(Ge, { width: g, isExpandedOnMobileState: [v, C], resizeable: c, onResize: (W) => c ? S(W) : {}, children: r }) : null, e[36] = _, e[37] = v, e[38] = r, e[39] = c, e[40] = g, e[41] = B) : B = e[41];
465
+ let X;
466
+ return e[42] !== U || e[43] !== B ? (X = /* @__PURE__ */ z(G, { children: [
467
+ U,
468
+ B
469
+ ] }), e[42] = U, e[43] = B, e[44] = X) : X = e[44], X;
470
+ }, tt = (t) => {
471
+ const {
472
+ variant: e,
473
+ children: n,
474
+ className: i,
475
+ size: r = "md",
476
+ typographyVariant: d = r === "sm" ? "body2" : "body",
477
+ ...f
478
+ } = {
479
+ ...t
480
+ };
481
+ return /* @__PURE__ */ m(Le, { variant: e, className: `text-center ${r === "sm" ? "p-1" : r === "md" ? "p-3" : "p-4"} bg-${e} bg-opacity-10 border-none ${i ?? ""}`, ...f, children: /* @__PURE__ */ m(le, { variant: d, children: n }) });
482
+ };
483
+ export {
484
+ he as A,
485
+ Ee as B,
486
+ ht as P,
487
+ Ge as S,
488
+ ft as a,
489
+ tt as b,
490
+ mt as c,
491
+ pe as d,
492
+ dt as e,
493
+ ut as f,
494
+ fe as u
495
+ };