jcicl 1.0.63 → 1.0.64

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.
@@ -1,144 +1,144 @@
1
- import { jsx as i, jsxs as y, Fragment as ke } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as C, Fragment as ye } from "react/jsx-runtime";
2
2
  import * as D from "react";
3
- import { useState as K } from "react";
4
- import { c as de } from "../.chunks/createSvgIcon.js";
3
+ import { useState as ee } from "react";
4
+ import { c as pe } from "../.chunks/createSvgIcon.js";
5
5
  import { n as m, i as _ } from "../.chunks/emotion-styled.browser.esm.js";
6
- import { c as P } from "../.chunks/emotion-react.browser.esm.js";
7
- import { P as Ve, A as Ge } from "../.chunks/AppHeader.js";
8
- import { Nav as L } from "../Nav/Nav.js";
9
- import Z from "../ScrollContainer/ScrollContainer.js";
10
- import { Button as re } from "../Button/Button.js";
11
- import r from "../theme.js";
12
- import { l as Xe } from "../.chunks/jocologo.js";
13
- import { X as Ye } from "../.chunks/Close.js";
14
- import { P as t, g as _e, a as qe, s as pe, r as Qe, c as te, u as Je, b as ee, d as Ke } from "../.chunks/DefaultPropsProvider.js";
15
- import { u as Ze } from "../.chunks/index.js";
16
- import { e as eo, H as oo, u as He, g as ro, T as to, r as no, b as ye } from "../.chunks/Portal.js";
17
- import { m as Ee } from "../.chunks/memoTheme.js";
18
- import { o as Se, d as io, M as ao } from "../.chunks/TextField.js";
19
- import { P as so } from "../.chunks/Paper.js";
20
- import { i as lo } from "../.chunks/integerPropType.js";
21
- import { c as co } from "../.chunks/chainPropTypes.js";
22
- import { u as po } from "../.chunks/TransitionGroupContext.js";
23
- import { u as Ce } from "../.chunks/useMediaQuery.js";
24
- function ho(e, o, a) {
25
- const n = o.getBoundingClientRect(), l = a && a.getBoundingClientRect(), T = Se(o);
26
- let x;
6
+ import { c as T } from "../.chunks/emotion-react.browser.esm.js";
7
+ import { P as Ge, A as Xe } from "../.chunks/AppHeader.js";
8
+ import { Nav as j } from "../Nav/Nav.js";
9
+ import oe from "../ScrollContainer/ScrollContainer.js";
10
+ import { Button as ne } from "../Button/Button.js";
11
+ import a from "../theme.js";
12
+ import { l as Ye } from "../.chunks/jocologo.js";
13
+ import { X as Qe } from "../.chunks/Close.js";
14
+ import { P as r, g as _e, a as qe, s as he, r as Je, c as ie, u as Ke, b as re, d as Ze } from "../.chunks/DefaultPropsProvider.js";
15
+ import { u as eo } from "../.chunks/index.js";
16
+ import { e as oo, H as ro, u as ze, g as to, T as no, r as io, b as Ce } from "../.chunks/Portal.js";
17
+ import { m as De } from "../.chunks/memoTheme.js";
18
+ import { o as Se, d as ao, M as so } from "../.chunks/TextField.js";
19
+ import { P as lo } from "../.chunks/Paper.js";
20
+ import { i as co } from "../.chunks/integerPropType.js";
21
+ import { c as po } from "../.chunks/chainPropTypes.js";
22
+ import { u as ho } from "../.chunks/TransitionGroupContext.js";
23
+ import { u as Pe } from "../.chunks/useMediaQuery.js";
24
+ function uo(e, o, t) {
25
+ const n = o.getBoundingClientRect(), l = t && t.getBoundingClientRect(), R = Se(o);
26
+ let b;
27
27
  if (o.fakeTransform)
28
- x = o.fakeTransform;
28
+ b = o.fakeTransform;
29
29
  else {
30
- const u = T.getComputedStyle(o);
31
- x = u.getPropertyValue("-webkit-transform") || u.getPropertyValue("transform");
30
+ const p = R.getComputedStyle(o);
31
+ b = p.getPropertyValue("-webkit-transform") || p.getPropertyValue("transform");
32
32
  }
33
- let d = 0, g = 0;
34
- if (x && x !== "none" && typeof x == "string") {
35
- const u = x.split("(")[1].split(")")[0].split(",");
36
- d = parseInt(u[4], 10), g = parseInt(u[5], 10);
33
+ let d = 0, f = 0;
34
+ if (b && b !== "none" && typeof b == "string") {
35
+ const p = b.split("(")[1].split(")")[0].split(",");
36
+ d = parseInt(p[4], 10), f = parseInt(p[5], 10);
37
37
  }
38
- return e === "left" ? l ? `translateX(${l.right + d - n.left}px)` : `translateX(${T.innerWidth + d - n.left}px)` : e === "right" ? l ? `translateX(-${n.right - l.left - d}px)` : `translateX(-${n.left + n.width - d}px)` : e === "up" ? l ? `translateY(${l.bottom + g - n.top}px)` : `translateY(${T.innerHeight + g - n.top}px)` : l ? `translateY(-${n.top - l.top + n.height - g}px)` : `translateY(-${n.top + n.height - g}px)`;
38
+ return e === "left" ? l ? `translateX(${l.right + d - n.left}px)` : `translateX(${R.innerWidth + d - n.left}px)` : e === "right" ? l ? `translateX(-${n.right - l.left - d}px)` : `translateX(-${n.left + n.width - d}px)` : e === "up" ? l ? `translateY(${l.bottom + f - n.top}px)` : `translateY(${R.innerHeight + f - n.top}px)` : l ? `translateY(-${n.top - l.top + n.height - f}px)` : `translateY(-${n.top + n.height - f}px)`;
39
39
  }
40
- function ze(e) {
40
+ function Ie(e) {
41
41
  return typeof e == "function" ? e() : e;
42
42
  }
43
- function oe(e, o, a) {
44
- const n = ze(a), l = ho(e, o, n);
43
+ function te(e, o, t) {
44
+ const n = Ie(t), l = uo(e, o, n);
45
45
  l && (o.style.webkitTransform = l, o.style.transform = l);
46
46
  }
47
- const De = /* @__PURE__ */ D.forwardRef(function(o, a) {
48
- const n = He(), l = {
47
+ const Ne = /* @__PURE__ */ D.forwardRef(function(o, t) {
48
+ const n = ze(), l = {
49
49
  enter: n.transitions.easing.easeOut,
50
50
  exit: n.transitions.easing.sharp
51
- }, T = {
51
+ }, R = {
52
52
  enter: n.transitions.duration.enteringScreen,
53
53
  exit: n.transitions.duration.leavingScreen
54
54
  }, {
55
- addEndListener: x,
55
+ addEndListener: b,
56
56
  appear: d = !0,
57
- children: g,
58
- container: u,
59
- direction: b = "down",
60
- easing: O = l,
61
- in: C,
62
- onEnter: F,
63
- onEntered: W,
64
- onEntering: j,
65
- onExit: I,
66
- onExited: $,
67
- onExiting: V,
68
- style: R,
69
- timeout: M = T,
57
+ children: f,
58
+ container: p,
59
+ direction: g = "down",
60
+ easing: N = l,
61
+ in: P,
62
+ onEnter: U,
63
+ onEntered: X,
64
+ onEntering: O,
65
+ onExit: k,
66
+ onExited: B,
67
+ onExiting: S,
68
+ style: H,
69
+ timeout: $ = R,
70
70
  // eslint-disable-next-line react/prop-types
71
- TransitionComponent: v = to,
72
- ...H
73
- } = o, h = D.useRef(null), G = po(ro(g), h, a), E = (s) => (f) => {
74
- s && (f === void 0 ? s(h.current) : s(h.current, f));
75
- }, c = E((s, f) => {
76
- oe(b, s, u), no(s), F && F(s, f);
77
- }), p = E((s, f) => {
78
- const z = ye({
79
- timeout: M,
80
- style: R,
81
- easing: O
71
+ TransitionComponent: M = no,
72
+ ...x
73
+ } = o, h = D.useRef(null), A = ho(to(f), h, t), E = (s) => (u) => {
74
+ s && (u === void 0 ? s(h.current) : s(h.current, u));
75
+ }, z = E((s, u) => {
76
+ te(g, s, p), io(s), U && U(s, u);
77
+ }), c = E((s, u) => {
78
+ const J = Ce({
79
+ timeout: $,
80
+ style: H,
81
+ easing: N
82
82
  }, {
83
83
  mode: "enter"
84
84
  });
85
85
  s.style.webkitTransition = n.transitions.create("-webkit-transform", {
86
- ...z
86
+ ...J
87
87
  }), s.style.transition = n.transitions.create("transform", {
88
- ...z
89
- }), s.style.webkitTransform = "none", s.style.transform = "none", j && j(s, f);
90
- }), N = E(W), S = E(V), k = E((s) => {
91
- const f = ye({
92
- timeout: M,
93
- style: R,
94
- easing: O
88
+ ...J
89
+ }), s.style.webkitTransform = "none", s.style.transform = "none", O && O(s, u);
90
+ }), v = E(X), I = E(S), W = E((s) => {
91
+ const u = Ce({
92
+ timeout: $,
93
+ style: H,
94
+ easing: N
95
95
  }, {
96
96
  mode: "exit"
97
97
  });
98
- s.style.webkitTransition = n.transitions.create("-webkit-transform", f), s.style.transition = n.transitions.create("transform", f), oe(b, s, u), I && I(s);
99
- }), B = E((s) => {
100
- s.style.webkitTransition = "", s.style.transition = "", $ && $(s);
101
- }), ne = (s) => {
102
- x && x(h.current, s);
98
+ s.style.webkitTransition = n.transitions.create("-webkit-transform", u), s.style.transition = n.transitions.create("transform", u), te(g, s, p), k && k(s);
99
+ }), y = E((s) => {
100
+ s.style.webkitTransition = "", s.style.transition = "", B && B(s);
101
+ }), L = (s) => {
102
+ b && b(h.current, s);
103
103
  }, q = D.useCallback(() => {
104
- h.current && oe(b, h.current, u);
105
- }, [b, u]);
104
+ h.current && te(g, h.current, p);
105
+ }, [g, p]);
106
106
  return D.useEffect(() => {
107
- if (C || b === "down" || b === "right")
107
+ if (P || g === "down" || g === "right")
108
108
  return;
109
- const s = io(() => {
110
- h.current && oe(b, h.current, u);
111
- }), f = Se(h.current);
112
- return f.addEventListener("resize", s), () => {
113
- s.clear(), f.removeEventListener("resize", s);
109
+ const s = ao(() => {
110
+ h.current && te(g, h.current, p);
111
+ }), u = Se(h.current);
112
+ return u.addEventListener("resize", s), () => {
113
+ s.clear(), u.removeEventListener("resize", s);
114
114
  };
115
- }, [b, C, u]), D.useEffect(() => {
116
- C || q();
117
- }, [C, q]), /* @__PURE__ */ i(v, {
115
+ }, [g, P, p]), D.useEffect(() => {
116
+ P || q();
117
+ }, [P, q]), /* @__PURE__ */ i(M, {
118
118
  nodeRef: h,
119
- onEnter: c,
120
- onEntered: N,
121
- onEntering: p,
122
- onExit: k,
123
- onExited: B,
124
- onExiting: S,
125
- addEndListener: ne,
119
+ onEnter: z,
120
+ onEntered: v,
121
+ onEntering: c,
122
+ onExit: W,
123
+ onExited: y,
124
+ onExiting: I,
125
+ addEndListener: L,
126
126
  appear: d,
127
- in: C,
128
- timeout: M,
129
- ...H,
130
- children: (s, f) => /* @__PURE__ */ D.cloneElement(g, {
131
- ref: G,
127
+ in: P,
128
+ timeout: $,
129
+ ...x,
130
+ children: (s, u) => /* @__PURE__ */ D.cloneElement(f, {
131
+ ref: A,
132
132
  style: {
133
- visibility: s === "exited" && !C ? "hidden" : void 0,
134
- ...R,
135
- ...g.props.style
133
+ visibility: s === "exited" && !P ? "hidden" : void 0,
134
+ ...H,
135
+ ...f.props.style
136
136
  },
137
- ...f
137
+ ...u
138
138
  })
139
139
  });
140
140
  });
141
- process.env.NODE_ENV !== "production" && (De.propTypes = {
141
+ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
142
142
  // ┌────────────────────────────── Warning ──────────────────────────────┐
143
143
  // │ These PropTypes are generated from the TypeScript type definitions. │
144
144
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -148,27 +148,27 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
148
148
  * node and a done callback. Allows for more fine grained transition end
149
149
  * logic. Note: Timeouts are still used as a fallback if provided.
150
150
  */
151
- addEndListener: t.func,
151
+ addEndListener: r.func,
152
152
  /**
153
153
  * Perform the enter transition when it first mounts if `in` is also `true`.
154
154
  * Set this to `false` to disable this behavior.
155
155
  * @default true
156
156
  */
157
- appear: t.bool,
157
+ appear: r.bool,
158
158
  /**
159
159
  * A single child content element.
160
160
  */
161
- children: eo.isRequired,
161
+ children: oo.isRequired,
162
162
  /**
163
163
  * An HTML element, or a function that returns one.
164
164
  * It's used to set the container the Slide is transitioning from.
165
165
  */
166
- container: co(t.oneOfType([oo, t.func]), (e) => {
166
+ container: po(r.oneOfType([ro, r.func]), (e) => {
167
167
  if (e.open) {
168
- const o = ze(e.container);
168
+ const o = Ie(e.container);
169
169
  if (o && o.nodeType === 1) {
170
- const a = o.getBoundingClientRect();
171
- if (process.env.NODE_ENV !== "test" && a.top === 0 && a.left === 0 && a.right === 0 && a.bottom === 0)
170
+ const t = o.getBoundingClientRect();
171
+ if (process.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
172
172
  return new Error(["MUI: The `container` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
173
173
  `));
174
174
  } else if (!o || typeof o.getBoundingClientRect != "function" || o.contextElement != null && o.contextElement.nodeType !== 1)
@@ -181,7 +181,7 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
181
181
  * Direction the child node will enter from.
182
182
  * @default 'down'
183
183
  */
184
- direction: t.oneOf(["down", "left", "right", "up"]),
184
+ direction: r.oneOf(["down", "left", "right", "up"]),
185
185
  /**
186
186
  * The transition timing function.
187
187
  * You may specify a single easing or a object containing enter and exit values.
@@ -190,42 +190,42 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
190
190
  * exit: theme.transitions.easing.sharp,
191
191
  * }
192
192
  */
193
- easing: t.oneOfType([t.shape({
194
- enter: t.string,
195
- exit: t.string
196
- }), t.string]),
193
+ easing: r.oneOfType([r.shape({
194
+ enter: r.string,
195
+ exit: r.string
196
+ }), r.string]),
197
197
  /**
198
198
  * If `true`, the component will transition in.
199
199
  */
200
- in: t.bool,
200
+ in: r.bool,
201
201
  /**
202
202
  * @ignore
203
203
  */
204
- onEnter: t.func,
204
+ onEnter: r.func,
205
205
  /**
206
206
  * @ignore
207
207
  */
208
- onEntered: t.func,
208
+ onEntered: r.func,
209
209
  /**
210
210
  * @ignore
211
211
  */
212
- onEntering: t.func,
212
+ onEntering: r.func,
213
213
  /**
214
214
  * @ignore
215
215
  */
216
- onExit: t.func,
216
+ onExit: r.func,
217
217
  /**
218
218
  * @ignore
219
219
  */
220
- onExited: t.func,
220
+ onExited: r.func,
221
221
  /**
222
222
  * @ignore
223
223
  */
224
- onExiting: t.func,
224
+ onExiting: r.func,
225
225
  /**
226
226
  * @ignore
227
227
  */
228
- style: t.object,
228
+ style: r.object,
229
229
  /**
230
230
  * The duration for the transition, in milliseconds.
231
231
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -234,59 +234,59 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
234
234
  * exit: theme.transitions.duration.leavingScreen,
235
235
  * }
236
236
  */
237
- timeout: t.oneOfType([t.number, t.shape({
238
- appear: t.number,
239
- enter: t.number,
240
- exit: t.number
237
+ timeout: r.oneOfType([r.number, r.shape({
238
+ appear: r.number,
239
+ enter: r.number,
240
+ exit: r.number
241
241
  })])
242
242
  });
243
- function uo(e) {
243
+ function fo(e) {
244
244
  return _e("MuiDrawer", e);
245
245
  }
246
246
  qe("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
247
- const Ie = (e, o) => {
247
+ const Oe = (e, o) => {
248
248
  const {
249
- ownerState: a
249
+ ownerState: t
250
250
  } = e;
251
- return [o.root, (a.variant === "permanent" || a.variant === "persistent") && o.docked, o.modal];
252
- }, fo = (e) => {
251
+ return [o.root, (t.variant === "permanent" || t.variant === "persistent") && o.docked, o.modal];
252
+ }, mo = (e) => {
253
253
  const {
254
254
  classes: o,
255
- anchor: a,
255
+ anchor: t,
256
256
  variant: n
257
257
  } = e, l = {
258
258
  root: ["root"],
259
259
  docked: [(n === "permanent" || n === "persistent") && "docked"],
260
260
  modal: ["modal"],
261
- paper: ["paper", `paperAnchor${te(a)}`, n !== "temporary" && `paperAnchorDocked${te(a)}`]
261
+ paper: ["paper", `paperAnchor${ie(t)}`, n !== "temporary" && `paperAnchorDocked${ie(t)}`]
262
262
  };
263
- return Ke(l, uo, o);
264
- }, go = pe(ao, {
263
+ return Ze(l, fo, o);
264
+ }, go = he(so, {
265
265
  name: "MuiDrawer",
266
266
  slot: "Root",
267
- overridesResolver: Ie
268
- })(Ee(({
267
+ overridesResolver: Oe
268
+ })(De(({
269
269
  theme: e
270
270
  }) => ({
271
271
  zIndex: (e.vars || e).zIndex.drawer
272
- }))), $e = pe("div", {
273
- shouldForwardProp: Qe,
272
+ }))), $e = he("div", {
273
+ shouldForwardProp: Je,
274
274
  name: "MuiDrawer",
275
275
  slot: "Docked",
276
276
  skipVariantsResolver: !1,
277
- overridesResolver: Ie
277
+ overridesResolver: Oe
278
278
  })({
279
279
  flex: "0 0 auto"
280
- }), mo = pe(so, {
280
+ }), bo = he(lo, {
281
281
  name: "MuiDrawer",
282
282
  slot: "Paper",
283
283
  overridesResolver: (e, o) => {
284
284
  const {
285
- ownerState: a
285
+ ownerState: t
286
286
  } = e;
287
- return [o.paper, o[`paperAnchor${te(a.anchor)}`], a.variant !== "temporary" && o[`paperAnchorDocked${te(a.anchor)}`]];
287
+ return [o.paper, o[`paperAnchor${ie(t.anchor)}`], t.variant !== "temporary" && o[`paperAnchorDocked${ie(t.anchor)}`]];
288
288
  }
289
- })(Ee(({
289
+ })(De(({
290
290
  theme: e
291
291
  }) => ({
292
292
  overflowY: "auto",
@@ -370,108 +370,108 @@ const Ie = (e, o) => {
370
370
  borderTop: `1px solid ${(e.vars || e).palette.divider}`
371
371
  }
372
372
  }]
373
- }))), Ne = {
373
+ }))), Be = {
374
374
  left: "right",
375
375
  right: "left",
376
376
  top: "down",
377
377
  bottom: "up"
378
378
  };
379
- function bo(e) {
379
+ function xo(e) {
380
380
  return ["left", "right"].includes(e);
381
381
  }
382
- function xo({
382
+ function vo({
383
383
  direction: e
384
384
  }, o) {
385
- return e === "rtl" && bo(o) ? Ne[o] : o;
385
+ return e === "rtl" && xo(o) ? Be[o] : o;
386
386
  }
387
- const U = /* @__PURE__ */ D.forwardRef(function(o, a) {
388
- const n = Je({
387
+ const G = /* @__PURE__ */ D.forwardRef(function(o, t) {
388
+ const n = Ke({
389
389
  props: o,
390
390
  name: "MuiDrawer"
391
- }), l = He(), T = Ze(), x = {
391
+ }), l = ze(), R = eo(), b = {
392
392
  enter: l.transitions.duration.enteringScreen,
393
393
  exit: l.transitions.duration.leavingScreen
394
394
  }, {
395
395
  anchor: d = "left",
396
- BackdropProps: g,
397
- children: u,
398
- className: b,
399
- elevation: O = 16,
400
- hideBackdrop: C = !1,
396
+ BackdropProps: f,
397
+ children: p,
398
+ className: g,
399
+ elevation: N = 16,
400
+ hideBackdrop: P = !1,
401
401
  ModalProps: {
402
- BackdropProps: F,
403
- ...W
402
+ BackdropProps: U,
403
+ ...X
404
404
  } = {},
405
- onClose: j,
406
- open: I = !1,
407
- PaperProps: $ = {},
408
- SlideProps: V,
405
+ onClose: O,
406
+ open: k = !1,
407
+ PaperProps: B = {},
408
+ SlideProps: S,
409
409
  // eslint-disable-next-line react/prop-types
410
- TransitionComponent: R = De,
411
- transitionDuration: M = x,
412
- variant: v = "temporary",
413
- ...H
410
+ TransitionComponent: H = Ne,
411
+ transitionDuration: $ = b,
412
+ variant: M = "temporary",
413
+ ...x
414
414
  } = n, h = D.useRef(!1);
415
415
  D.useEffect(() => {
416
416
  h.current = !0;
417
417
  }, []);
418
- const G = xo({
419
- direction: T ? "rtl" : "ltr"
420
- }, d), c = {
418
+ const A = vo({
419
+ direction: R ? "rtl" : "ltr"
420
+ }, d), z = {
421
421
  ...n,
422
422
  anchor: d,
423
- elevation: O,
424
- open: I,
425
- variant: v,
426
- ...H
427
- }, p = fo(c), N = /* @__PURE__ */ i(mo, {
428
- elevation: v === "temporary" ? O : 0,
423
+ elevation: N,
424
+ open: k,
425
+ variant: M,
426
+ ...x
427
+ }, c = mo(z), v = /* @__PURE__ */ i(bo, {
428
+ elevation: M === "temporary" ? N : 0,
429
429
  square: !0,
430
- ...$,
431
- className: ee(p.paper, $.className),
432
- ownerState: c,
433
- children: u
430
+ ...B,
431
+ className: re(c.paper, B.className),
432
+ ownerState: z,
433
+ children: p
434
434
  });
435
- if (v === "permanent")
435
+ if (M === "permanent")
436
436
  return /* @__PURE__ */ i($e, {
437
- className: ee(p.root, p.docked, b),
438
- ownerState: c,
439
- ref: a,
440
- ...H,
441
- children: N
437
+ className: re(c.root, c.docked, g),
438
+ ownerState: z,
439
+ ref: t,
440
+ ...x,
441
+ children: v
442
442
  });
443
- const S = /* @__PURE__ */ i(R, {
444
- in: I,
445
- direction: Ne[G],
446
- timeout: M,
443
+ const I = /* @__PURE__ */ i(H, {
444
+ in: k,
445
+ direction: Be[A],
446
+ timeout: $,
447
447
  appear: h.current,
448
- ...V,
449
- children: N
448
+ ...S,
449
+ children: v
450
450
  });
451
- return v === "persistent" ? /* @__PURE__ */ i($e, {
452
- className: ee(p.root, p.docked, b),
453
- ownerState: c,
454
- ref: a,
455
- ...H,
456
- children: S
451
+ return M === "persistent" ? /* @__PURE__ */ i($e, {
452
+ className: re(c.root, c.docked, g),
453
+ ownerState: z,
454
+ ref: t,
455
+ ...x,
456
+ children: I
457
457
  }) : /* @__PURE__ */ i(go, {
458
458
  BackdropProps: {
459
- ...g,
460
- ...F,
461
- transitionDuration: M
459
+ ...f,
460
+ ...U,
461
+ transitionDuration: $
462
462
  },
463
- className: ee(p.root, p.modal, b),
464
- open: I,
465
- ownerState: c,
466
- onClose: j,
467
- hideBackdrop: C,
468
- ref: a,
469
- ...H,
470
- ...W,
471
- children: S
463
+ className: re(c.root, c.modal, g),
464
+ open: k,
465
+ ownerState: z,
466
+ onClose: O,
467
+ hideBackdrop: P,
468
+ ref: t,
469
+ ...x,
470
+ ...X,
471
+ children: I
472
472
  });
473
473
  });
474
- process.env.NODE_ENV !== "production" && (U.propTypes = {
474
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
475
475
  // ┌────────────────────────────── Warning ──────────────────────────────┐
476
476
  // │ These PropTypes are generated from the TypeScript type definitions. │
477
477
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -480,38 +480,38 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
480
480
  * Side from which the drawer will appear.
481
481
  * @default 'left'
482
482
  */
483
- anchor: t.oneOf(["bottom", "left", "right", "top"]),
483
+ anchor: r.oneOf(["bottom", "left", "right", "top"]),
484
484
  /**
485
485
  * @ignore
486
486
  */
487
- BackdropProps: t.object,
487
+ BackdropProps: r.object,
488
488
  /**
489
489
  * The content of the component.
490
490
  */
491
- children: t.node,
491
+ children: r.node,
492
492
  /**
493
493
  * Override or extend the styles applied to the component.
494
494
  */
495
- classes: t.object,
495
+ classes: r.object,
496
496
  /**
497
497
  * @ignore
498
498
  */
499
- className: t.string,
499
+ className: r.string,
500
500
  /**
501
501
  * The elevation of the drawer.
502
502
  * @default 16
503
503
  */
504
- elevation: lo,
504
+ elevation: co,
505
505
  /**
506
506
  * If `true`, the backdrop is not rendered.
507
507
  * @default false
508
508
  */
509
- hideBackdrop: t.bool,
509
+ hideBackdrop: r.bool,
510
510
  /**
511
511
  * Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.
512
512
  * @default {}
513
513
  */
514
- ModalProps: t.object,
514
+ ModalProps: r.object,
515
515
  /**
516
516
  * Callback fired when the component requests to be closed.
517
517
  * The `reason` parameter can optionally be used to control the response to `onClose`.
@@ -519,25 +519,25 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
519
519
  * @param {object} event The event source of the callback.
520
520
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
521
521
  */
522
- onClose: t.func,
522
+ onClose: r.func,
523
523
  /**
524
524
  * If `true`, the component is shown.
525
525
  * @default false
526
526
  */
527
- open: t.bool,
527
+ open: r.bool,
528
528
  /**
529
529
  * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
530
530
  * @default {}
531
531
  */
532
- PaperProps: t.object,
532
+ PaperProps: r.object,
533
533
  /**
534
534
  * Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
535
535
  */
536
- SlideProps: t.object,
536
+ SlideProps: r.object,
537
537
  /**
538
538
  * The system prop that allows defining system overrides as well as additional CSS styles.
539
539
  */
540
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
540
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
541
541
  /**
542
542
  * The duration for the transition, in milliseconds.
543
543
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -546,24 +546,24 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
546
546
  * exit: theme.transitions.duration.leavingScreen,
547
547
  * }
548
548
  */
549
- transitionDuration: t.oneOfType([t.number, t.shape({
550
- appear: t.number,
551
- enter: t.number,
552
- exit: t.number
549
+ transitionDuration: r.oneOfType([r.number, r.shape({
550
+ appear: r.number,
551
+ enter: r.number,
552
+ exit: r.number
553
553
  })]),
554
554
  /**
555
555
  * The variant to use.
556
556
  * @default 'temporary'
557
557
  */
558
- variant: t.oneOf(["permanent", "persistent", "temporary"])
558
+ variant: r.oneOf(["permanent", "persistent", "temporary"])
559
559
  });
560
- const Pe = de(/* @__PURE__ */ i("path", {
560
+ const Te = pe(/* @__PURE__ */ i("path", {
561
561
  d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
562
- }), "ArrowForward"), Te = de(/* @__PURE__ */ i("path", {
562
+ }), "ArrowForward"), Re = pe(/* @__PURE__ */ i("path", {
563
563
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
564
- }), "Cancel"), vo = de(/* @__PURE__ */ i("path", {
564
+ }), "Cancel"), wo = pe(/* @__PURE__ */ i("path", {
565
565
  d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
566
- }), "MoreHoriz"), wo = m("div", {
566
+ }), "MoreHoriz"), ko = m("div", {
567
567
  shouldForwardProp: (e) => _(e) && e !== "hasSiteBanner"
568
568
  })(({ backgroundColor: e, hasSiteBanner: o }) => ({
569
569
  display: "flex",
@@ -571,10 +571,10 @@ const Pe = de(/* @__PURE__ */ i("path", {
571
571
  width: "100%",
572
572
  position: "relative",
573
573
  backgroundColor: e,
574
- height: o ? `calc(100vh - ${r.constants.siteBannerHeight}px)` : "100vh",
574
+ height: o ? `calc(100vh - ${a.constants.siteBannerHeight}px)` : "100vh",
575
575
  fontFamily: "Roboto, sans-serif",
576
576
  overflow: "hidden"
577
- })), ko = m("div")(
577
+ })), yo = m("div")(
578
578
  ({ tabletPadding: e, mobile: o }) => ({
579
579
  display: "flex",
580
580
  flexDirection: o ? "column-reverse" : "row",
@@ -584,16 +584,16 @@ const Pe = de(/* @__PURE__ */ i("path", {
584
584
  padding: o ? 0 : "0 2px 4px",
585
585
  paddingLeft: e ? "2px" : 0,
586
586
  boxSizing: "border-box",
587
- height: `calc(100% - ${r.constants.appHeaderHeight}px)`
587
+ height: `calc(100% - ${a.constants.appHeaderHeight}px)`
588
588
  })
589
- ), yo = m("div", {
589
+ ), Co = m("div", {
590
590
  shouldForwardProp: (e) => _(e)
591
- })(({ withActionsPanel: e, tablet: o, borderColor: a, backgroundColor: n }) => ({
591
+ })(({ withActionsPanel: e, tablet: o, borderColor: t, backgroundColor: n }) => ({
592
592
  zIndex: 108,
593
593
  display: "flex",
594
594
  flexDirection: "column",
595
595
  opacity: e ? 1 : 0,
596
- border: `1px solid ${a}`,
596
+ border: `1px solid ${t}`,
597
597
  borderRight: 0,
598
598
  borderRadius: "4px",
599
599
  borderTopRightRadius: 0,
@@ -608,9 +608,9 @@ const Pe = de(/* @__PURE__ */ i("path", {
608
608
  ...!e && {
609
609
  border: "none"
610
610
  }
611
- })), Co = m("div", {
611
+ })), Po = m("div", {
612
612
  shouldForwardProp: (e) => _(e)
613
- })(({ show: e, width: o = r.constants.navDefaultWidth, borderColor: a, backgroundColor: n }) => ({
613
+ })(({ show: e, width: o = a.constants.navDefaultWidth, borderColor: t, backgroundColor: n }) => ({
614
614
  zIndex: 108,
615
615
  display: "flex",
616
616
  flexDirection: "column",
@@ -618,7 +618,7 @@ const Pe = de(/* @__PURE__ */ i("path", {
618
618
  overflow: "hidden",
619
619
  flexShrink: 0,
620
620
  opacity: e ? 1 : 0,
621
- border: `1px solid ${a}`,
621
+ border: `1px solid ${t}`,
622
622
  borderRight: 0,
623
623
  borderRadius: "4px",
624
624
  borderTopRightRadius: 0,
@@ -631,18 +631,20 @@ const Pe = de(/* @__PURE__ */ i("path", {
631
631
  ...!e && {
632
632
  border: "none"
633
633
  }
634
- })), $o = m(U)(
635
- ({ shadowColor: e, backgroundColor: o }) => ({
636
- ...P`
637
- top: ${r.constants.appHeaderHeight}px;
634
+ })), $o = m(G, {
635
+ shouldForwardProp: (e) => !["$topOffset"].includes(e)
636
+ })(
637
+ ({ shadowColor: e, backgroundColor: o, $topOffset: t }) => ({
638
+ ...T`
639
+ top: ${t}px;
638
640
  font-family: 'Roboto';
639
641
 
640
642
  .MuiDrawer-paper {
641
643
  width: 360px;
642
644
  max-width: 100vw;
643
645
  box-sizing: border-box;
644
- top: ${r.constants.appHeaderHeight}px;
645
- height: calc(100vh - ${r.constants.appHeaderHeight}px);
646
+ top: ${t}px;
647
+ height: calc(100vh - ${t}px);
646
648
  background-color: ${o};
647
649
  box-shadow: 0 3px 6px 3px ${e};
648
650
  padding: 13px;
@@ -650,13 +652,13 @@ const Pe = de(/* @__PURE__ */ i("path", {
650
652
  }
651
653
 
652
654
  .MuiBackdrop-root {
653
- top: ${r.constants.appHeaderHeight}px;
655
+ top: ${t}px;
654
656
  background-color: transparent;
655
657
  }
656
658
  `
657
659
  })
658
- ), Re = m(re)(({ iconColor: e, highlight1: o, highlight2: a, rightDrawer: n = !1 }) => ({
659
- ...P`
660
+ ), Me = m(ne)(({ iconColor: e, highlight1: o, highlight2: t, rightDrawer: n = !1 }) => ({
661
+ ...T`
660
662
  position: absolute;
661
663
  top: -0.5rem;
662
664
  ${!n && { right: "-0.5rem" }};
@@ -674,17 +676,17 @@ const Pe = de(/* @__PURE__ */ i("path", {
674
676
  :focus-visible {
675
677
  svg {
676
678
  filter: unset;
677
- background-color: ${a};
679
+ background-color: ${t};
678
680
  fill: ${e};
679
681
  }
680
682
  }
681
683
  `
682
- })), Po = m("div", {
684
+ })), To = m("div", {
683
685
  shouldForwardProp: (e) => _(e)
684
- })(({ withActionsPanel: e, borderColor: o, backgroundColor: a, mobileScreen: n }) => ({
686
+ })(({ withActionsPanel: e, borderColor: o, backgroundColor: t, mobileScreen: n }) => ({
685
687
  display: "flex",
686
688
  overflow: "hidden",
687
- backgroundColor: a,
689
+ backgroundColor: t,
688
690
  width: "100%",
689
691
  boxSizing: "border-box",
690
692
  padding: "0 9px",
@@ -703,10 +705,10 @@ const Pe = de(/* @__PURE__ */ i("path", {
703
705
  borderBottomLeftRadius: e ? 0 : "4px",
704
706
  borderTopLeftRadius: e ? 0 : "4px"
705
707
  }
706
- })), To = m(U, {
708
+ })), Ro = m(G, {
707
709
  shouldForwardProp: (e) => !["backgroundColor", "shadowColor"].includes(e)
708
710
  })(({ backgroundColor: e, shadowColor: o }) => ({
709
- ...P`
711
+ ...T`
710
712
  z-index: 1327;
711
713
 
712
714
  .MuiDrawer-paper {
@@ -721,408 +723,424 @@ const Pe = de(/* @__PURE__ */ i("path", {
721
723
  background-color: transparent;
722
724
  }
723
725
  `
724
- })), Ro = m(U, {
725
- shouldForwardProp: (e) => e != "backgroundColor"
726
- })(({ backgroundColor: e }) => ({
727
- ...P`
726
+ })), Mo = m(G, {
727
+ shouldForwardProp: (e) => !["backgroundColor", "$topOffset"].includes(e)
728
+ })(({ backgroundColor: e, $topOffset: o }) => ({
729
+ ...T`
728
730
  z-index: 1300;
729
731
 
730
732
  .MuiDrawer-paper {
731
733
  z-index: 1300;
732
734
  width: 100vw;
733
- top: ${r.constants.appHeaderHeight}px;
734
- height: calc(100vh - ${r.constants.appHeaderHeight}px - 72px);
735
+ top: ${o}px;
736
+ height: calc(100vh - ${o}px - 72px);
735
737
  background-color: ${e};
736
738
  box-shadow: none;
737
739
  }
738
740
 
739
741
  .MuiBackdrop-root {
740
742
  z-index: 1300;
741
- top: ${r.constants.appHeaderHeight}px;
742
- height: calc(100vh - ${r.constants.appHeaderHeight}px);
743
+ top: ${o}px;
744
+ height: calc(100vh - ${o}px);
743
745
  background-color: transparent;
744
746
  }
745
747
  `
746
- })), Mo = m("div", {
747
- shouldForwardProp: (e) => _(e)
748
- })(({ backgroundColor: e, open: o }) => ({
749
- ...P`
748
+ })), Eo = m("div", {
749
+ shouldForwardProp: (e) => _(e) && e !== "$topOffset"
750
+ })(({ backgroundColor: e, open: o, $topOffset: t }) => ({
751
+ ...T`
750
752
  position: fixed;
751
753
  transition: height 201ms cubic-bezier(0, 0, 0.2, 1);
752
754
  z-index: 1300;
753
755
  bottom: 72px;
754
756
  width: 100vw;
755
- height: ${o ? `calc(100vh - ${r.constants.appHeaderHeight}px - 72px)` : 0};
757
+ height: ${o ? `calc(100vh - ${t}px - 72px)` : 0};
756
758
  overflow: hidden;
757
759
  background-color: ${e};
758
760
  box-sizing: border-box;
759
761
  padding: ${o ? "16px" : 0};
760
762
  `
761
- })), Ho = m("h1")(({ color: e }) => ({
762
- ...P`
763
+ })), zo = m("h1")(({ color: e }) => ({
764
+ ...T`
763
765
  margin: 0;
764
766
  font-size: 2.1rem;
765
767
  font-family: 'Roboto';
766
768
  color: ${e};
767
769
  `
768
- })), Eo = m(U)(({ backgroundQuaternary: e }) => ({
769
- ...P`
770
- top: ${r.constants.appHeaderHeight}px;
770
+ })), Do = m(G, {
771
+ shouldForwardProp: (e) => !["backgroundQuaternary", "$topOffset"].includes(e)
772
+ })(({ backgroundQuaternary: e, $topOffset: o }) => ({
773
+ ...T`
774
+ top: ${o}px;
771
775
  font-family: 'Roboto';
772
776
  z-index: 1336;
773
777
 
774
778
  .MuiDrawer-paper {
775
779
  width: 100vw;
776
780
  box-sizing: border-box;
777
- top: ${r.constants.appHeaderHeight}px;
778
- height: calc(100vh - ${r.constants.appHeaderHeight}px);
779
- background-image: linear-gradient(to bottom right, ${r.colors.oldPaper}, ${e});
781
+ top: ${o}px;
782
+ height: calc(100vh - ${o}px);
783
+ background-image: linear-gradient(to bottom right, ${a.colors.oldPaper}, ${e});
780
784
  padding: 0;
781
785
  }
782
786
 
783
787
  .MuiBackdrop-root {
784
- top: ${r.constants.appHeaderHeight}px;
788
+ top: ${o}px;
785
789
  background-color: transparent;
786
790
  }
787
791
  `
788
792
  })), So = m("img")(({ width: e, height: o }) => ({
789
- ...P`
793
+ ...T`
790
794
  width: ${e}px;
791
795
  height: ${o}px;
792
796
  `
793
- })), Me = m("div")(({ justifyStart: e }) => ({
794
- ...P`
797
+ })), Ee = m("div")(({ justifyStart: e }) => ({
798
+ ...T`
795
799
  display: flex;
796
800
  flex-direction: row;
797
801
  align-items: flex-start;
798
802
  justify-content: ${e ? "start" : "space-between"};
799
803
  padding: 8px 16px 8px 24px;
800
804
  `
801
- })), zo = m(U)(() => ({
802
- ...P`
803
- top: ${r.constants.appHeaderHeight}px;
805
+ })), Io = m(G, {
806
+ shouldForwardProp: (e) => e !== "$topOffset"
807
+ })(({ $topOffset: e }) => ({
808
+ ...T`
809
+ top: ${e}px;
804
810
  font-family: 'Roboto';
805
811
 
806
812
  .MuiDrawer-paper {
807
813
  width: 360px;
808
814
  max-width: 100vw;
809
815
  box-sizing: border-box;
810
- top: ${r.constants.appHeaderHeight}px;
811
- height: calc(100vh - ${r.constants.appHeaderHeight}px);
812
- background-color: ${r.colors.white};
813
- box-shadow: 0 3px 6px 3px ${r.colors.gray};
816
+ top: ${e}px;
817
+ height: calc(100vh - ${e}px);
818
+ background-color: ${a.colors.white};
819
+ box-shadow: 0 3px 6px 3px ${a.colors.gray};
814
820
  padding: 0;
815
821
  overflow: visible;
816
822
  }
817
823
 
818
824
  .MuiBackdrop-root {
819
- top: ${r.constants.appHeaderHeight}px;
825
+ top: ${e}px;
820
826
  background-color: transparent;
821
827
  }
822
828
 
823
829
  .MuiDrawer-root {
824
- z-index: 13000;
830
+ z-index: 9200;
825
831
  }
826
832
  `
827
- })), rr = ({
833
+ })), tr = ({
828
834
  navProps: e,
829
835
  subnavItems: o,
830
- activeSubnavRoute: a,
836
+ activeSubnavRoute: t,
831
837
  appHeaderProps: n = {},
832
838
  userInfo: l,
833
- userSettingsEnabled: T = !0,
834
- userProfileMenuItems: x = [],
839
+ userSettingsEnabled: R = !0,
840
+ userProfileMenuItems: b = [],
835
841
  actionsPanelContent: d,
836
- navWidth: g = r.constants.navDefaultWidth,
837
- breakpoints: u = { mobile: r.screenSizes.mobile, tablet: r.screenSizes.tablet },
838
- children: b,
839
- themeColors: O = {},
840
- logoProps: C = {},
841
- loggedIn: F,
842
- mobileActionsPanelOpen: W,
843
- hasSiteBanner: j = !1
842
+ navWidth: f = a.constants.navDefaultWidth,
843
+ breakpoints: p = { mobile: a.screenSizes.mobile, tablet: a.screenSizes.tablet },
844
+ children: g,
845
+ themeColors: N = {},
846
+ logoProps: P = {},
847
+ loggedIn: U,
848
+ mobileActionsPanelOpen: X,
849
+ hasSiteBanner: O = !1
844
850
  }) => {
845
- var we;
846
- const [I, $] = K(!1), [V, R] = K(!1), [M, v] = K(!1), [H, h] = K(!1), { mobile: G = r.screenSizes.mobile, tablet: E = r.screenSizes.tablet } = u, c = Ce(`(max-width: ${G})`), p = Ce(`(max-width: ${E})`) && !c, N = !c && !p, {
847
- backgroundPrimary: S = r.colors.whiteGreen,
848
- backgroundSecondary: k = r.colors.whiteGreenA,
849
- backgroundTertiary: B = r.colors.sage,
850
- highlightPrimary: ne = r.colors.sunlight,
851
- backgroundQuaternary: q = r.colors.moss,
852
- highlightSecondary: s = r.colors.dandelion,
853
- highlightTertiary: f = `${r.colors.dandelion}99`,
854
- iconPrimary: z = r.colors.darkGreen,
855
- shadowPrimary: ie = r.colors.darkGreenO99,
856
- shadowSecondary: Q = r.boxShadows.darkGreen,
857
- shadowTertiary: he = r.boxShadows.darkGreenThick,
858
- borderPrimary: X = r.colors.green,
859
- scrollColor: A = r.colors.darkGreenO99,
860
- loadingColor: Oe = r.colors.green,
861
- iconColors: ue = {
862
- icon: /* @__PURE__ */ i(Ve, {}),
863
- iconColor: r.colors.darkGreen,
864
- backgroundColor: r.colors.mint
851
+ var ke;
852
+ const k = O ? a.constants.appHeaderHeight + a.constants.siteBannerHeight : a.constants.appHeaderHeight, [B, S] = ee(!1), [H, $] = ee(!1), [M, x] = ee(!1), [h, A] = ee(!1), { mobile: E = a.screenSizes.mobile, tablet: z = a.screenSizes.tablet } = p, c = Pe(`(max-width: ${E})`), v = Pe(`(max-width: ${z})`) && !c, I = !c && !v, {
853
+ backgroundPrimary: W = a.colors.whiteGreen,
854
+ backgroundSecondary: y = a.colors.whiteGreenA,
855
+ backgroundTertiary: L = a.colors.sage,
856
+ highlightPrimary: q = a.colors.sunlight,
857
+ backgroundQuaternary: s = a.colors.moss,
858
+ highlightSecondary: u = a.colors.dandelion,
859
+ highlightTertiary: J = `${a.colors.dandelion}99`,
860
+ iconPrimary: V = a.colors.darkGreen,
861
+ shadowPrimary: ae = a.colors.darkGreenO99,
862
+ shadowSecondary: K = a.boxShadows.darkGreen,
863
+ shadowTertiary: ue = a.boxShadows.darkGreenThick,
864
+ borderPrimary: Y = a.colors.green,
865
+ scrollColor: F = a.colors.darkGreenO99,
866
+ loadingColor: He = a.colors.green,
867
+ iconColors: fe = {
868
+ icon: /* @__PURE__ */ i(Ge, {}),
869
+ iconColor: a.colors.darkGreen,
870
+ backgroundColor: a.colors.mint
865
871
  }
866
- } = O, { logoSrc: fe = Xe, logoWidth: ge = 36, logoHeight: me = 50 } = C, be = {
867
- backgroundPrimary: S,
868
- backgroundSecondary: k,
869
- backgroundTertiary: B,
870
- highlightPrimary: ne,
871
- highlightSecondary: s,
872
- highlightTertiary: f,
873
- borderPrimary: X,
874
- iconPrimary: z,
875
- shadowPrimary: ie,
876
- shadowSecondary: Q,
877
- shadowTertiary: he,
878
- scrollColor: A,
879
- loadingColor: Oe,
880
- iconColors: ue
881
- }, Be = { logoSrc: fe, logoWidth: ge, logoHeight: me }, ae = d != null, Ae = { ...n, navWidth: g, loggedIn: F }, Y = { ...e, themeColors: be }, Le = {
882
- ...Y,
883
- navWidth: `${g}px`,
872
+ } = N, { logoSrc: me = Ye, logoWidth: ge = 36, logoHeight: be = 50 } = P, xe = {
873
+ backgroundPrimary: W,
874
+ backgroundSecondary: y,
875
+ backgroundTertiary: L,
876
+ highlightPrimary: q,
877
+ highlightSecondary: u,
878
+ highlightTertiary: J,
879
+ borderPrimary: Y,
880
+ iconPrimary: V,
881
+ shadowPrimary: ae,
882
+ shadowSecondary: K,
883
+ shadowTertiary: ue,
884
+ scrollColor: F,
885
+ loadingColor: He,
886
+ iconColors: fe
887
+ }, Ae = { logoSrc: me, logoWidth: ge, logoHeight: be }, se = d != null, Le = { ...n, navWidth: f, loggedIn: U }, Q = { ...e, themeColors: xe }, Fe = {
888
+ ...Q,
889
+ navWidth: `${f}px`,
884
890
  isMobile: c
885
- }, { navItems: J } = e, se = o || ((we = J.find((w) => w.label === (e == null ? void 0 : e.activeRoute))) == null ? void 0 : we.subnavItems) || [], Fe = {
886
- themeColors: be,
887
- activeRoute: a,
888
- navItems: se
889
- }, xe = [
891
+ }, { navItems: Z } = e, le = o || ((ke = Z.find((w) => w.label === (e == null ? void 0 : e.activeRoute))) == null ? void 0 : ke.subnavItems) || [], je = {
892
+ themeColors: xe,
893
+ activeRoute: t,
894
+ navItems: le
895
+ }, ve = [
890
896
  // { label: 'Log Out', icon: <LogoutIcon />, onClick: onLogout },
891
- ...x
897
+ ...b
892
898
  ].map((w) => ({
893
899
  ...w,
894
900
  onClick: () => {
895
- w.onClick && w.onClick(), v(!1);
901
+ w.onClick && w.onClick(), x(!1);
896
902
  }
897
- })), je = J.map((w) => ({
903
+ })), Ue = Z.map((w) => ({
898
904
  ...w,
899
905
  onClick: () => {
900
- w.onClick && w.onClick(), $(!1);
906
+ w.onClick && w.onClick(), S(!1);
901
907
  }
902
- })), le = {
903
- ...Y,
908
+ })), ce = {
909
+ ...Q,
904
910
  navWidth: "100%",
905
911
  isTablet: !0,
906
- navItems: je
912
+ navItems: Ue
907
913
  };
908
- let ce = J.map((w) => ({
914
+ let de = Z.map((w) => ({
909
915
  ...w,
910
916
  onClick: () => {
911
- w.onClick && w.onClick(), h(!1);
917
+ w.onClick && w.onClick(), A(!1);
912
918
  }
913
- })), ve = [];
914
- J.length > 4 && c && (ve = ce.splice(3), ce.push({
919
+ })), we = [];
920
+ Z.length > 4 && c && (we = de.splice(3), de.push({
915
921
  label: "More",
916
- icon: /* @__PURE__ */ i(vo, {}),
917
- onClick: () => h(!0)
922
+ icon: /* @__PURE__ */ i(wo, {}),
923
+ onClick: () => A(!0)
918
924
  }));
919
- const Ue = {
920
- ...Y,
925
+ const We = {
926
+ ...Q,
921
927
  navWidth: "100%",
922
- navItems: ce,
928
+ navItems: de,
923
929
  isMobile: !0,
924
- activeRoute: H ? "More" : Y.activeRoute
925
- }, We = {
926
- ...Y,
930
+ activeRoute: h ? "More" : Q.activeRoute
931
+ }, Ve = {
932
+ ...Q,
927
933
  navWidth: "100%",
928
- navItems: ve,
934
+ navItems: we,
929
935
  isTablet: !0
930
936
  };
931
- return /* @__PURE__ */ y(wo, { backgroundColor: k, hasSiteBanner: j, children: [
937
+ return /* @__PURE__ */ C(ko, { backgroundColor: y, hasSiteBanner: O, children: [
932
938
  /* @__PURE__ */ i(
933
- Ge,
939
+ Xe,
934
940
  {
935
- ...Ae,
936
- hamburgerMenu: p,
937
- onHamburgerMenuClick: () => $(!0),
938
- onUserMenuClick: () => v(!0),
939
- logoProps: Be,
940
- iconColor: z,
941
+ ...Le,
942
+ hamburgerMenu: v,
943
+ onHamburgerMenuClick: () => S(!0),
944
+ onUserMenuClick: () => x(!0),
945
+ logoProps: Ae,
946
+ iconColor: V,
941
947
  isMobile: c,
942
- themeProps: { shadowSecondary: Q, shadowTertiary: he, iconPrimary: z, borderPrimary: X },
943
- iconColors: ue,
948
+ themeProps: { shadowSecondary: K, shadowTertiary: ue, iconPrimary: V, borderPrimary: Y },
949
+ iconColors: fe,
944
950
  userName: l == null ? void 0 : l.name,
945
- userSettingsEnabled: T
951
+ userSettingsEnabled: R
946
952
  }
947
953
  ),
948
- /* @__PURE__ */ y(ko, { tabletPadding: p, mobile: c, children: [
949
- N && /* @__PURE__ */ i(L, { ...Le }),
950
- c && /* @__PURE__ */ y(ke, { children: [
951
- /* @__PURE__ */ i(L, { ...Ue }),
954
+ /* @__PURE__ */ C(yo, { tabletPadding: v, mobile: c, children: [
955
+ I && /* @__PURE__ */ i(j, { ...Fe }),
956
+ c && /* @__PURE__ */ C(ye, { children: [
957
+ /* @__PURE__ */ i(j, { ...We }),
952
958
  /* @__PURE__ */ i(
953
- Ro,
959
+ Mo,
954
960
  {
955
- open: H,
956
- onClose: () => h(!1),
957
- backgroundColor: k,
961
+ open: h,
962
+ onClose: () => A(!1),
963
+ backgroundColor: y,
964
+ $topOffset: k,
958
965
  anchor: "right",
959
- children: /* @__PURE__ */ i(L, { ...We })
966
+ children: /* @__PURE__ */ i(j, { ...Ve })
960
967
  }
961
968
  )
962
969
  ] }),
963
- p && /* @__PURE__ */ y(
964
- To,
970
+ v && /* @__PURE__ */ C(
971
+ Ro,
965
972
  {
966
- open: I,
967
- onClose: () => $(!1),
968
- backgroundColor: k,
969
- shadowColor: ie,
973
+ open: B,
974
+ onClose: () => S(!1),
975
+ backgroundColor: y,
976
+ shadowColor: ae,
970
977
  children: [
971
- /* @__PURE__ */ y(Me, { children: [
972
- /* @__PURE__ */ i(So, { src: fe, alt: "logo", width: ge, height: me }),
973
- /* @__PURE__ */ i(re, { variant: "icon", size: 36, onClick: () => $(!1), color: z, children: /* @__PURE__ */ i(Ye, {}) })
978
+ /* @__PURE__ */ C(Ee, { children: [
979
+ /* @__PURE__ */ i(So, { src: me, alt: "logo", width: ge, height: be }),
980
+ /* @__PURE__ */ i(ne, { variant: "icon", size: 36, onClick: () => S(!1), color: V, children: /* @__PURE__ */ i(Qe, {}) })
974
981
  ] }),
975
- /* @__PURE__ */ i(L, { ...le })
982
+ /* @__PURE__ */ i(j, { ...ce })
976
983
  ]
977
984
  }
978
985
  ),
979
- p && /* @__PURE__ */ y(
986
+ v && /* @__PURE__ */ C(
980
987
  $o,
981
988
  {
982
- open: V && ae,
983
- onClose: () => R(!1),
984
- shadowColor: ie,
985
- backgroundColor: B,
989
+ open: H && se,
990
+ onClose: () => $(!1),
991
+ shadowColor: ae,
992
+ $topOffset: k,
993
+ backgroundColor: L,
986
994
  children: [
987
995
  /* @__PURE__ */ i(
988
- Re,
996
+ Me,
989
997
  {
990
998
  variant: "icon",
991
999
  size: 24,
992
- onClick: () => R(!1),
993
- iconColor: z,
994
- highlight1: k,
995
- highlight2: k,
996
- children: /* @__PURE__ */ i(Te, {})
1000
+ onClick: () => $(!1),
1001
+ iconColor: V,
1002
+ highlight1: y,
1003
+ highlight2: y,
1004
+ children: /* @__PURE__ */ i(Re, {})
997
1005
  }
998
1006
  ),
999
- /* @__PURE__ */ i(Z, { scrollColor: A, direction: "vertical", children: d && d })
1007
+ /* @__PURE__ */ i(oe, { scrollColor: F, direction: "vertical", children: d && d })
1000
1008
  ]
1001
1009
  }
1002
1010
  ),
1003
- (p || N) && /* @__PURE__ */ y(
1004
- zo,
1011
+ (v || I) && /* @__PURE__ */ C(
1012
+ Io,
1005
1013
  {
1006
1014
  anchor: "right",
1007
1015
  open: M,
1008
- onClose: () => v(!1),
1016
+ onClose: () => x(!1),
1017
+ $topOffset: k,
1009
1018
  children: [
1010
1019
  /* @__PURE__ */ i(
1011
- Re,
1020
+ Me,
1012
1021
  {
1013
1022
  variant: "icon",
1014
1023
  size: 24,
1015
- onClick: () => v(!1),
1016
- iconColor: r.colors.midnight,
1017
- highlight1: r.colors.white,
1018
- highlight2: k,
1024
+ onClick: () => x(!1),
1025
+ iconColor: a.colors.midnight,
1026
+ highlight1: a.colors.white,
1027
+ highlight2: y,
1019
1028
  rightDrawer: !0,
1020
- children: /* @__PURE__ */ i(Te, {})
1029
+ children: /* @__PURE__ */ i(Re, {})
1021
1030
  }
1022
1031
  ),
1023
1032
  /* @__PURE__ */ i(
1024
- L,
1033
+ j,
1025
1034
  {
1026
- ...le,
1027
- navItems: xe,
1035
+ ...ce,
1036
+ navItems: ve,
1028
1037
  themeColors: {
1029
- iconPrimary: r.colors.midnight,
1030
- highlightPrimary: S,
1031
- highlightTertiary: k,
1032
- shadowSecondary: Q,
1033
- scrollColor: A
1038
+ iconPrimary: a.colors.midnight,
1039
+ highlightPrimary: W,
1040
+ highlightTertiary: y,
1041
+ shadowSecondary: K,
1042
+ scrollColor: F
1034
1043
  }
1035
1044
  }
1036
1045
  )
1037
1046
  ]
1038
1047
  }
1039
1048
  ),
1040
- c && /* @__PURE__ */ y(ke, { children: [
1041
- /* @__PURE__ */ y(
1042
- Eo,
1049
+ c && /* @__PURE__ */ C(ye, { children: [
1050
+ /* @__PURE__ */ C(
1051
+ Do,
1043
1052
  {
1044
1053
  anchor: "right",
1045
1054
  open: M,
1046
- onClose: () => v(!1),
1047
- backgroundQuaternary: q,
1055
+ onClose: () => x(!1),
1056
+ $topOffset: k,
1057
+ backgroundQuaternary: s,
1048
1058
  children: [
1049
- /* @__PURE__ */ y(Me, { children: [
1050
- /* @__PURE__ */ i(Ho, { color: r.colors.midnight, children: "Settings" }),
1059
+ /* @__PURE__ */ C(Ee, { children: [
1060
+ /* @__PURE__ */ i(zo, { color: a.colors.midnight, children: "Settings" }),
1051
1061
  /* @__PURE__ */ i(
1052
- re,
1062
+ ne,
1053
1063
  {
1054
1064
  variant: "icon",
1055
1065
  size: 36,
1056
- onClick: () => v(!1),
1057
- color: r.colors.midnight,
1058
- children: /* @__PURE__ */ i(Pe, {})
1066
+ onClick: () => x(!1),
1067
+ color: a.colors.midnight,
1068
+ children: /* @__PURE__ */ i(Te, {})
1059
1069
  }
1060
1070
  )
1061
1071
  ] }),
1062
1072
  /* @__PURE__ */ i(
1063
- L,
1073
+ j,
1064
1074
  {
1065
- ...le,
1066
- navItems: xe,
1075
+ ...ce,
1076
+ navItems: ve,
1067
1077
  themeColors: {
1068
- iconPrimary: r.colors.midnight,
1069
- highlightPrimary: S,
1070
- highlightTertiary: k,
1071
- shadowSecondary: Q,
1072
- scrollColor: A
1078
+ iconPrimary: a.colors.midnight,
1079
+ highlightPrimary: W,
1080
+ highlightTertiary: y,
1081
+ shadowSecondary: K,
1082
+ scrollColor: F
1073
1083
  }
1074
1084
  }
1075
1085
  )
1076
1086
  ]
1077
1087
  }
1078
1088
  ),
1079
- /* @__PURE__ */ i(Mo, { backgroundColor: B, open: W, children: /* @__PURE__ */ i(Z, { scrollColor: A, direction: "vertical", children: d }) })
1089
+ /* @__PURE__ */ i(
1090
+ Eo,
1091
+ {
1092
+ backgroundColor: L,
1093
+ open: X,
1094
+ $topOffset: k,
1095
+ children: /* @__PURE__ */ i(oe, { scrollColor: F, direction: "vertical", children: d })
1096
+ }
1097
+ )
1080
1098
  ] }),
1081
- !c && /* @__PURE__ */ y(
1082
- yo,
1099
+ !c && /* @__PURE__ */ C(
1100
+ Co,
1083
1101
  {
1084
- withActionsPanel: ae,
1085
- tablet: p,
1086
- borderColor: X,
1087
- backgroundColor: B,
1102
+ withActionsPanel: se,
1103
+ tablet: v,
1104
+ borderColor: Y,
1105
+ backgroundColor: L,
1088
1106
  children: [
1089
- N && /* @__PURE__ */ i(Z, { scrollColor: A, direction: "vertical", children: d && d }),
1090
- p && /* @__PURE__ */ i(
1091
- re,
1107
+ I && /* @__PURE__ */ i(oe, { scrollColor: F, direction: "vertical", children: d && d }),
1108
+ v && /* @__PURE__ */ i(
1109
+ ne,
1092
1110
  {
1093
1111
  variant: "icon",
1094
1112
  size: 36,
1095
- onClick: () => R(!0),
1096
- color: z,
1097
- children: /* @__PURE__ */ i(Pe, {})
1113
+ onClick: () => $(!0),
1114
+ color: V,
1115
+ children: /* @__PURE__ */ i(Te, {})
1098
1116
  }
1099
1117
  )
1100
1118
  ]
1101
1119
  }
1102
1120
  ),
1103
1121
  !c && /* @__PURE__ */ i(
1104
- Co,
1122
+ Po,
1105
1123
  {
1106
- show: se && se.length > 0,
1107
- borderColor: X,
1108
- backgroundColor: B,
1109
- width: g,
1110
- children: /* @__PURE__ */ i(L, { ...Fe })
1124
+ show: le && le.length > 0,
1125
+ borderColor: Y,
1126
+ backgroundColor: L,
1127
+ width: f,
1128
+ children: /* @__PURE__ */ i(j, { ...je })
1111
1129
  }
1112
1130
  ),
1113
1131
  /* @__PURE__ */ i(
1114
- Po,
1132
+ To,
1115
1133
  {
1116
- withActionsPanel: ae,
1117
- borderColor: X,
1118
- backgroundColor: S,
1134
+ withActionsPanel: se,
1135
+ borderColor: Y,
1136
+ backgroundColor: W,
1119
1137
  mobileScreen: c,
1120
- children: /* @__PURE__ */ i(Z, { scrollColor: A, children: b })
1138
+ children: /* @__PURE__ */ i(oe, { scrollColor: F, children: g })
1121
1139
  }
1122
1140
  )
1123
1141
  ] })
1124
1142
  ] });
1125
1143
  };
1126
1144
  export {
1127
- rr as default
1145
+ tr as default
1128
1146
  };