jcicl 0.0.267 → 0.0.269

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