jcicl 0.0.215 → 0.0.219

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