@pdg/react-admin-layout 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.esm.js +574 -489
  2. package/dist/index.js +574 -489
  3. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var material=require('@mui/material'),React=require('react'),compilerRuntime=require('react/compiler-runtime'),reactRouter=require('react-router'),iconsMaterial=require('@mui/icons-material'),SimpleBar=require('simplebar-react');function insertStyle(css) {
1
+ 'use strict';var compilerRuntime=require('react/compiler-runtime'),material=require('@mui/material'),React=require('react'),reactRouter=require('react-router'),iconsMaterial=require('@mui/icons-material'),SimpleBar=require('simplebar-react');function insertStyle(css) {
2
2
  if (typeof window === 'undefined')
3
3
  return;
4
4
  const style = document.createElement('style');
@@ -6,18 +6,36 @@
6
6
  style.innerHTML = css;
7
7
  document.head.appendChild(style);
8
8
  return css;
9
- }insertStyle(".simplebar-track.simplebar-vertical{width:8px !important}.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before{opacity:.3 !important}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined{padding:5px 15px 4px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeLarge{padding:7px 21px 6px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeSmall{padding:3px 9px 2px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained{padding:6px 16px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeLarge{padding:8px 22px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeSmall{padding:4px 10px 3px}.MuiButtonBase-root.MuiButton-root.MuiButton-text{padding:6px 8px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeLarge{padding:8px 11px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeSmall{padding:4px 5px 3px}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,main,input,button,textarea,pre,select,a{font-family:\"Pretendard\",\"Apple Gothic\",\"Dotum\",sans-serif;margin:0;padding:0;border:0;vertical-align:top;box-sizing:border-box;word-break:keep-all;line-height:unset}*:before,*:after{box-sizing:border-box}");var CardLayout = function CardLayout(_ref) {
10
- var children = _ref.children,
11
- _ref$backgroundColor = _ref.backgroundColor,
12
- backgroundColor = _ref$backgroundColor === void 0 ? '#eff3f8' : _ref$backgroundColor;
13
- return /*#__PURE__*/React.createElement(material.Grid, {
14
- container: true,
15
- direction: 'column',
16
- alignItems: 'center',
17
- justifyContent: 'center',
18
- bgcolor: backgroundColor,
19
- minHeight: '100vh'
20
- }, /*#__PURE__*/React.createElement(material.Grid, null, children));
9
+ }insertStyle(".simplebar-track.simplebar-vertical{width:8px !important}.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before{opacity:.3 !important}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined{padding:5px 15px 4px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeLarge{padding:7px 21px 6px}.MuiButtonBase-root.MuiButton-root.MuiButton-outlined.MuiButton-sizeSmall{padding:3px 9px 2px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained{padding:6px 16px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeLarge{padding:8px 22px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-contained.MuiButton-sizeSmall{padding:4px 10px 3px}.MuiButtonBase-root.MuiButton-root.MuiButton-text{padding:6px 8px 5px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeLarge{padding:8px 11px 7px}.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-sizeSmall{padding:4px 5px 3px}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,main,input,button,textarea,pre,select,a{font-family:\"Pretendard\",\"Apple Gothic\",\"Dotum\",sans-serif;margin:0;padding:0;border:0;vertical-align:top;box-sizing:border-box;word-break:keep-all;line-height:unset}*:before,*:after{box-sizing:border-box}");var CardLayout = function CardLayout(t0) {
10
+ var $ = compilerRuntime.c(5);
11
+ var children = t0.children,
12
+ t1 = t0.backgroundColor;
13
+ var backgroundColor = t1 === undefined ? "#eff3f8" : t1;
14
+ var t2;
15
+ if ($[0] !== children) {
16
+ t2 = /*#__PURE__*/React.createElement(material.Grid, null, children);
17
+ $[0] = children;
18
+ $[1] = t2;
19
+ } else {
20
+ t2 = $[1];
21
+ }
22
+ var t3;
23
+ if ($[2] !== backgroundColor || $[3] !== t2) {
24
+ t3 = /*#__PURE__*/React.createElement(material.Grid, {
25
+ container: true,
26
+ direction: "column",
27
+ alignItems: "center",
28
+ justifyContent: "center",
29
+ bgcolor: backgroundColor,
30
+ minHeight: "100vh"
31
+ }, t2);
32
+ $[2] = backgroundColor;
33
+ $[3] = t2;
34
+ $[4] = t3;
35
+ } else {
36
+ t3 = $[4];
37
+ }
38
+ return t3;
21
39
  };function _arrayLikeToArray(r, a) {
22
40
  (null == a || a > r.length) && (a = r.length);
23
41
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -61,6 +79,27 @@ function _iterableToArrayLimit(r, l) {
61
79
  function _nonIterableRest() {
62
80
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
63
81
  }
82
+ function ownKeys(e, r) {
83
+ var t = Object.keys(e);
84
+ if (Object.getOwnPropertySymbols) {
85
+ var o = Object.getOwnPropertySymbols(e);
86
+ r && (o = o.filter(function (r) {
87
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
88
+ })), t.push.apply(t, o);
89
+ }
90
+ return t;
91
+ }
92
+ function _objectSpread2(e) {
93
+ for (var r = 1; r < arguments.length; r++) {
94
+ var t = null != arguments[r] ? arguments[r] : {};
95
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
96
+ _defineProperty(e, r, t[r]);
97
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
98
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
99
+ });
100
+ }
101
+ return e;
102
+ }
64
103
  function _slicedToArray(r, e) {
65
104
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
66
105
  }
@@ -104,7 +143,7 @@ var StyledListItemIcon = material.styled(material.ListItemIcon)(_templateObject2
104
143
  callback();
105
144
  }
106
145
  };var _SideMenuListItem = function SideMenuListItem(t0) {
107
- var $ = compilerRuntime.c(70);
146
+ var $ = compilerRuntime.c(48);
108
147
  var info = t0.info,
109
148
  badgeVariant = t0.badgeVariant,
110
149
  expandedBackgroundColor = t0.expandedBackgroundColor;
@@ -168,227 +207,237 @@ var StyledListItemIcon = material.styled(material.ListItemIcon)(_templateObject2
168
207
  }
169
208
  useChange(location.pathname, t2);
170
209
  var t3;
171
- if ($[9] !== badgeVariant || $[10] !== expandedBackgroundColor || $[11] !== info.badge || $[12] !== info.badgeVariant || $[13] !== info.depth || $[14] !== info.icon || $[15] !== info.items || $[16] !== info.name || $[17] !== info.uri || $[18] !== isExpand || $[19] !== isExpandable || $[20] !== location.pathname || $[21] !== navigate) {
172
- var t4;
173
- if ($[23] !== badgeVariant || $[24] !== expandedBackgroundColor || $[25] !== info.badge || $[26] !== info.badgeVariant || $[27] !== info.depth || $[28] !== info.icon || $[29] !== info.name || $[30] !== info.uri || $[31] !== isExpand || $[32] !== isExpandable || $[33] !== location.pathname || $[34] !== navigate) {
174
- var _t;
175
- if ($[36] !== info.uri || $[37] !== isExpandable || $[38] !== navigate) {
176
- _t = isExpandable ? function () {
177
- return setIsExpand(_temp$2);
178
- } : function () {
179
- return info.uri && navigate(info.uri);
180
- };
181
- $[36] = info.uri;
182
- $[37] = isExpandable;
183
- $[38] = navigate;
184
- $[39] = _t;
185
- } else {
186
- _t = $[39];
187
- }
188
- var t6 = isExpandable ? false : info.uri === location.pathname;
189
- var t7 = isExpandable && isExpand ? expandedBackgroundColor : undefined;
190
- var t8;
191
- if ($[40] !== t7) {
192
- t8 = {
193
- backgroundColor: t7
194
- };
195
- $[40] = t7;
196
- $[41] = t8;
197
- } else {
198
- t8 = $[41];
199
- }
200
- var t9;
201
- if ($[42] !== _t || $[43] !== t6 || $[44] !== t8) {
202
- t9 = {
203
- onClick: _t,
204
- selected: t6,
205
- style: t8
206
- };
207
- $[42] = _t;
208
- $[43] = t6;
209
- $[44] = t8;
210
- $[45] = t9;
211
- } else {
212
- t9 = $[45];
213
- }
214
- var t10;
215
- if ($[46] !== info.icon) {
216
- t10 = /*#__PURE__*/React.createElement(StyledListItemIcon, null, info.icon && /*#__PURE__*/React.createElement(material.Icon, {
217
- fontSize: "small"
218
- }, info.icon));
219
- $[46] = info.icon;
220
- $[47] = t10;
221
- } else {
222
- t10 = $[47];
223
- }
224
- var t11;
225
- if ($[48] !== badgeVariant || $[49] !== info.badge || $[50] !== info.badgeVariant || $[51] !== info.depth || $[52] !== info.name) {
226
- var _t2 = info.depth === 1 ? 600 : undefined;
227
- var t13;
228
- if ($[54] !== _t2) {
229
- t13 = {
230
- slotProps: {
231
- primary: {
232
- style: {
233
- fontWeight: _t2
234
- }
235
- }
236
- }
237
- };
238
- $[54] = _t2;
239
- $[55] = t13;
240
- } else {
241
- t13 = $[55];
242
- }
243
- var t14;
244
- if ($[56] !== badgeVariant || $[57] !== info.badge || $[58] !== info.badgeVariant || $[59] !== info.name) {
245
- t14 = info.badge ? /*#__PURE__*/React.createElement(material.Badge, {
246
- badgeContent: info.badge,
247
- color: "error",
248
- variant: badgeVariant !== undefined ? badgeVariant : info.badgeVariant,
249
- anchorOrigin: {
250
- horizontal: "left",
251
- vertical: "top"
252
- },
253
- slotProps: {
254
- badge: {
255
- style: {
256
- left: "100%",
257
- top: "50%",
258
- transform: "scale(.8) translate(10px, -50%)"
259
- }
260
- }
261
- }
262
- }, /*#__PURE__*/React.createElement("div", null, info.name)) : info.name;
263
- $[56] = badgeVariant;
264
- $[57] = info.badge;
265
- $[58] = info.badgeVariant;
266
- $[59] = info.name;
267
- $[60] = t14;
268
- } else {
269
- t14 = $[60];
210
+ if ($[9] !== info.uri || $[10] !== isExpandable || $[11] !== navigate) {
211
+ t3 = isExpandable ? function () {
212
+ return setIsExpand(_temp$3);
213
+ } : function () {
214
+ return info.uri && navigate(info.uri);
215
+ };
216
+ $[9] = info.uri;
217
+ $[10] = isExpandable;
218
+ $[11] = navigate;
219
+ $[12] = t3;
220
+ } else {
221
+ t3 = $[12];
222
+ }
223
+ var t4 = isExpandable ? false : info.uri === location.pathname;
224
+ var t5 = isExpandable && isExpand ? expandedBackgroundColor : undefined;
225
+ var t6;
226
+ if ($[13] !== t5) {
227
+ t6 = {
228
+ backgroundColor: t5
229
+ };
230
+ $[13] = t5;
231
+ $[14] = t6;
232
+ } else {
233
+ t6 = $[14];
234
+ }
235
+ var t7;
236
+ if ($[15] !== info.icon) {
237
+ t7 = info.icon && /*#__PURE__*/React.createElement(material.Icon, {
238
+ fontSize: "small"
239
+ }, info.icon);
240
+ $[15] = info.icon;
241
+ $[16] = t7;
242
+ } else {
243
+ t7 = $[16];
244
+ }
245
+ var t8;
246
+ if ($[17] !== t7) {
247
+ t8 = /*#__PURE__*/React.createElement(StyledListItemIcon, null, t7);
248
+ $[17] = t7;
249
+ $[18] = t8;
250
+ } else {
251
+ t8 = $[18];
252
+ }
253
+ var t9 = info.depth === 1 ? 600 : undefined;
254
+ var t10;
255
+ if ($[19] !== t9) {
256
+ t10 = {
257
+ primary: {
258
+ style: {
259
+ fontWeight: t9
270
260
  }
271
- t11 = /*#__PURE__*/React.createElement(material.ListItemText, t13, t14);
272
- $[48] = badgeVariant;
273
- $[49] = info.badge;
274
- $[50] = info.badgeVariant;
275
- $[51] = info.depth;
276
- $[52] = info.name;
277
- $[53] = t11;
278
- } else {
279
- t11 = $[53];
280
261
  }
281
- var t12;
282
- if ($[61] !== isExpand || $[62] !== isExpandable) {
283
- t12 = isExpandable && /*#__PURE__*/React.createElement(StyledExpandMore, {
284
- sx: {
285
- animation: "".concat(isExpand ? "open" : "close", " 0.1s linear"),
286
- transform: "rotate(".concat(isExpand ? 180 : 0, "deg)")
262
+ };
263
+ $[19] = t9;
264
+ $[20] = t10;
265
+ } else {
266
+ t10 = $[20];
267
+ }
268
+ var t11;
269
+ if ($[21] !== badgeVariant || $[22] !== info.badge || $[23] !== info.badgeVariant || $[24] !== info.name) {
270
+ t11 = info.badge ? /*#__PURE__*/React.createElement(material.Badge, {
271
+ badgeContent: info.badge,
272
+ color: "error",
273
+ variant: badgeVariant !== undefined ? badgeVariant : info.badgeVariant,
274
+ anchorOrigin: {
275
+ horizontal: "left",
276
+ vertical: "top"
277
+ },
278
+ slotProps: {
279
+ badge: {
280
+ style: {
281
+ left: "100%",
282
+ top: "50%",
283
+ transform: "scale(.8) translate(10px, -50%)"
287
284
  }
288
- });
289
- $[61] = isExpand;
290
- $[62] = isExpandable;
291
- $[63] = t12;
292
- } else {
293
- t12 = $[63];
294
- }
295
- t4 = /*#__PURE__*/React.createElement(material.ListItemButton, t9, t10, t11, t12);
296
- $[23] = badgeVariant;
297
- $[24] = expandedBackgroundColor;
298
- $[25] = info.badge;
299
- $[26] = info.badgeVariant;
300
- $[27] = info.depth;
301
- $[28] = info.icon;
302
- $[29] = info.name;
303
- $[30] = info.uri;
304
- $[31] = isExpand;
305
- $[32] = isExpandable;
306
- $[33] = location.pathname;
307
- $[34] = navigate;
308
- $[35] = t4;
309
- } else {
310
- t4 = $[35];
311
- }
312
- var t5;
313
- if ($[64] !== badgeVariant || $[65] !== expandedBackgroundColor || $[66] !== info.items || $[67] !== isExpand || $[68] !== isExpandable) {
314
- t5 = isExpandable && /*#__PURE__*/React.createElement(material.Collapse, {
315
- "in": isExpand,
316
- style: {
317
- backgroundColor: isExpand ? expandedBackgroundColor : undefined
318
285
  }
319
- }, info.items && info.items.map(function (subInfo, idx) {
320
- return /*#__PURE__*/React.createElement(_SideMenuListItem, {
321
- key: idx,
322
- badgeVariant: badgeVariant,
323
- info: subInfo
324
- });
325
- }));
326
- $[64] = badgeVariant;
327
- $[65] = expandedBackgroundColor;
328
- $[66] = info.items;
329
- $[67] = isExpand;
330
- $[68] = isExpandable;
331
- $[69] = t5;
332
- } else {
333
- t5 = $[69];
334
- }
335
- t3 = /*#__PURE__*/React.createElement(React.Fragment, null, t4, t5);
336
- $[9] = badgeVariant;
337
- $[10] = expandedBackgroundColor;
338
- $[11] = info.badge;
339
- $[12] = info.badgeVariant;
340
- $[13] = info.depth;
341
- $[14] = info.icon;
342
- $[15] = info.items;
343
- $[16] = info.name;
344
- $[17] = info.uri;
345
- $[18] = isExpand;
346
- $[19] = isExpandable;
347
- $[20] = location.pathname;
348
- $[21] = navigate;
349
- $[22] = t3;
350
- } else {
351
- t3 = $[22];
286
+ }
287
+ }, /*#__PURE__*/React.createElement("div", null, info.name)) : info.name;
288
+ $[21] = badgeVariant;
289
+ $[22] = info.badge;
290
+ $[23] = info.badgeVariant;
291
+ $[24] = info.name;
292
+ $[25] = t11;
293
+ } else {
294
+ t11 = $[25];
352
295
  }
353
- return t3;
296
+ var t12;
297
+ if ($[26] !== t10 || $[27] !== t11) {
298
+ t12 = /*#__PURE__*/React.createElement(material.ListItemText, {
299
+ slotProps: t10
300
+ }, t11);
301
+ $[26] = t10;
302
+ $[27] = t11;
303
+ $[28] = t12;
304
+ } else {
305
+ t12 = $[28];
306
+ }
307
+ var t13;
308
+ if ($[29] !== isExpand || $[30] !== isExpandable) {
309
+ t13 = isExpandable && /*#__PURE__*/React.createElement(StyledExpandMore, {
310
+ sx: {
311
+ animation: "".concat(isExpand ? "open" : "close", " 0.1s linear"),
312
+ transform: "rotate(".concat(isExpand ? 180 : 0, "deg)")
313
+ }
314
+ });
315
+ $[29] = isExpand;
316
+ $[30] = isExpandable;
317
+ $[31] = t13;
318
+ } else {
319
+ t13 = $[31];
320
+ }
321
+ var t14;
322
+ if ($[32] !== t12 || $[33] !== t13 || $[34] !== t3 || $[35] !== t4 || $[36] !== t6 || $[37] !== t8) {
323
+ t14 = /*#__PURE__*/React.createElement(material.ListItemButton, {
324
+ onClick: t3,
325
+ selected: t4,
326
+ style: t6
327
+ }, t8, t12, t13);
328
+ $[32] = t12;
329
+ $[33] = t13;
330
+ $[34] = t3;
331
+ $[35] = t4;
332
+ $[36] = t6;
333
+ $[37] = t8;
334
+ $[38] = t14;
335
+ } else {
336
+ t14 = $[38];
337
+ }
338
+ var t15;
339
+ if ($[39] !== badgeVariant || $[40] !== expandedBackgroundColor || $[41] !== info.items || $[42] !== isExpand || $[43] !== isExpandable) {
340
+ t15 = isExpandable && /*#__PURE__*/React.createElement(material.Collapse, {
341
+ "in": isExpand,
342
+ style: {
343
+ backgroundColor: isExpand ? expandedBackgroundColor : undefined
344
+ }
345
+ }, info.items && info.items.map(function (subInfo, idx) {
346
+ return /*#__PURE__*/React.createElement(_SideMenuListItem, {
347
+ key: idx,
348
+ badgeVariant: badgeVariant,
349
+ info: subInfo
350
+ });
351
+ }));
352
+ $[39] = badgeVariant;
353
+ $[40] = expandedBackgroundColor;
354
+ $[41] = info.items;
355
+ $[42] = isExpand;
356
+ $[43] = isExpandable;
357
+ $[44] = t15;
358
+ } else {
359
+ t15 = $[44];
360
+ }
361
+ var t16;
362
+ if ($[45] !== t14 || $[46] !== t15) {
363
+ t16 = /*#__PURE__*/React.createElement(React.Fragment, null, t14, t15);
364
+ $[45] = t14;
365
+ $[46] = t15;
366
+ $[47] = t16;
367
+ } else {
368
+ t16 = $[47];
369
+ }
370
+ return t16;
354
371
  };
355
- function _temp$2(old) {
372
+ function _temp$3(old) {
356
373
  return !old;
357
374
  }var _templateObject$3;
358
375
  var StyledList = material.styled(material.List)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n padding: 0;\n"])));var SideMenuList = function SideMenuList(t0) {
359
- var $ = compilerRuntime.c(5);
376
+ var $ = compilerRuntime.c(15);
360
377
  var list = t0.list,
361
378
  badgeVariant = t0.badgeVariant;
362
379
  var theme = material.useTheme();
380
+ var T0;
363
381
  var t1;
364
382
  if ($[0] !== badgeVariant || $[1] !== list || $[2] !== theme.palette.action.selectedOpacity || $[3] !== theme.palette.primary.main) {
365
- var finalList = list.map(_temp2$1);
366
- var expandedBackgroundColor = material.alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity / 2);
367
- t1 = /*#__PURE__*/React.createElement(StyledList, null, finalList.map(function (info, idx_0) {
368
- return /*#__PURE__*/React.createElement(_SideMenuListItem, {
369
- key: idx_0,
370
- info: info,
371
- badgeVariant: badgeVariant,
372
- expandedBackgroundColor: expandedBackgroundColor
373
- });
374
- }));
383
+ var finalList = list.map(_temp2$2);
384
+ var _t = theme.palette.action.selectedOpacity / 2;
385
+ var t3;
386
+ if ($[6] !== _t || $[7] !== theme.palette.primary.main) {
387
+ t3 = material.alpha(theme.palette.primary.main, _t);
388
+ $[6] = _t;
389
+ $[7] = theme.palette.primary.main;
390
+ $[8] = t3;
391
+ } else {
392
+ t3 = $[8];
393
+ }
394
+ var expandedBackgroundColor = t3;
395
+ T0 = StyledList;
396
+ var t4;
397
+ if ($[9] !== badgeVariant || $[10] !== expandedBackgroundColor) {
398
+ t4 = function t4(info, idx_0) {
399
+ return /*#__PURE__*/React.createElement(_SideMenuListItem, {
400
+ key: idx_0,
401
+ info: info,
402
+ badgeVariant: badgeVariant,
403
+ expandedBackgroundColor: expandedBackgroundColor
404
+ });
405
+ };
406
+ $[9] = badgeVariant;
407
+ $[10] = expandedBackgroundColor;
408
+ $[11] = t4;
409
+ } else {
410
+ t4 = $[11];
411
+ }
412
+ t1 = finalList.map(t4);
375
413
  $[0] = badgeVariant;
376
414
  $[1] = list;
377
415
  $[2] = theme.palette.action.selectedOpacity;
378
416
  $[3] = theme.palette.primary.main;
379
- $[4] = t1;
417
+ $[4] = T0;
418
+ $[5] = t1;
419
+ } else {
420
+ T0 = $[4];
421
+ t1 = $[5];
422
+ }
423
+ var t2;
424
+ if ($[12] !== T0 || $[13] !== t1) {
425
+ t2 = /*#__PURE__*/React.createElement(T0, null, t1);
426
+ $[12] = T0;
427
+ $[13] = t1;
428
+ $[14] = t2;
380
429
  } else {
381
- t1 = $[4];
430
+ t2 = $[14];
382
431
  }
383
- return t1;
432
+ return t2;
384
433
  };
385
434
  var SideMenuList$1 = /*#__PURE__*/React.memo(SideMenuList);
386
- function _temp$1(letter, idx) {
435
+ function _temp$2(letter, idx) {
387
436
  return "".concat(idx > 0 ? "_" : "").concat(letter.toLowerCase());
388
437
  }
389
- function _temp2$1(item) {
390
- return Object.assign(Object.assign({}, item), {
391
- icon: item.icon ? item.icon.replace(/[A-Z]/g, _temp$1) : undefined
438
+ function _temp2$2(item) {
439
+ return _objectSpread2(_objectSpread2({}, item), {}, {
440
+ icon: item.icon ? item.icon.replace(/[A-Z]/g, _temp$2) : undefined
392
441
  });
393
442
  }var _templateObject$2;
394
443
  var StyledSimpleBar = material.styled(SimpleBar)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n max-height: 100%;\n"])));
@@ -398,14 +447,41 @@ var StyledLogoContainerBox = material.styled(material.Box)(function (_ref) {
398
447
  borderBottom: 'thin solid #f5f5f5',
399
448
  color: 'text.primary'
400
449
  });
401
- });var SideMenu = function SideMenu(_ref) {
402
- var logo = _ref.logo,
403
- badgeVariant = _ref.badgeVariant,
404
- list = _ref.list;
405
- return /*#__PURE__*/React.createElement(StyledSimpleBar, null, /*#__PURE__*/React.createElement(StyledLogoContainerBox, null, /*#__PURE__*/React.createElement(material.Toolbar, null, logo)), list && /*#__PURE__*/React.createElement(SideMenuList$1, {
406
- badgeVariant: badgeVariant,
407
- list: list
408
- }));
450
+ });var SideMenu = function SideMenu(t0) {
451
+ var $ = compilerRuntime.c(8);
452
+ var logo = t0.logo,
453
+ badgeVariant = t0.badgeVariant,
454
+ list = t0.list;
455
+ var t1;
456
+ if ($[0] !== logo) {
457
+ t1 = /*#__PURE__*/React.createElement(StyledLogoContainerBox, null, /*#__PURE__*/React.createElement(material.Toolbar, null, logo));
458
+ $[0] = logo;
459
+ $[1] = t1;
460
+ } else {
461
+ t1 = $[1];
462
+ }
463
+ var t2;
464
+ if ($[2] !== badgeVariant || $[3] !== list) {
465
+ t2 = list && /*#__PURE__*/React.createElement(SideMenuList$1, {
466
+ badgeVariant: badgeVariant,
467
+ list: list
468
+ });
469
+ $[2] = badgeVariant;
470
+ $[3] = list;
471
+ $[4] = t2;
472
+ } else {
473
+ t2 = $[4];
474
+ }
475
+ var t3;
476
+ if ($[5] !== t1 || $[6] !== t2) {
477
+ t3 = /*#__PURE__*/React.createElement(StyledSimpleBar, null, t1, t2);
478
+ $[5] = t1;
479
+ $[6] = t2;
480
+ $[7] = t3;
481
+ } else {
482
+ t3 = $[7];
483
+ }
484
+ return t3;
409
485
  };
410
486
  var SideMenu$1 = /*#__PURE__*/React.memo(SideMenu);var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
411
487
  var StyledContainerBox$1 = material.styled(material.Box)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n position: relative;\n"])));
@@ -424,35 +500,91 @@ var StyledHeadIconContainerBox = material.styled(material.Box)(_templateObject2$
424
500
  var StyledHeadIcon = material.styled(material.Icon)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 1rem;\n"])));
425
501
  var StyledHeadTitleTypography = material.styled(material.Typography)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: 0.7rem;\n"])));
426
502
  var StyledTitleContainerDiv = material.styled('div')(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n font-size: 1rem;\n"])));
427
- var StyledTitleIconContainerDiv = material.styled('div')(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex-shrink: 0;\n display: inline-flex;\n margin-right: 0.3rem;\n"])));var Title = function Title(_ref) {
428
- var title = _ref.title,
429
- icon = _ref.icon,
430
- headTitle = _ref.headTitle,
431
- headIcon = _ref.headIcon;
432
- /********************************************************************************************************************
433
- * Variable
434
- * ******************************************************************************************************************/
435
- var finalHeadIcon = headIcon ? headIcon.replace(/[A-Z]/g, function (letter, idx) {
436
- return "".concat(idx > 0 ? '_' : '').concat(letter.toLowerCase());
437
- }) : undefined;
438
- var finalIcon = icon ? icon.replace(/[A-Z]/g, function (letter, idx) {
439
- return "".concat(idx > 0 ? '_' : '').concat(letter.toLowerCase());
440
- }) : undefined;
441
- /********************************************************************************************************************
442
- * Render
443
- * ******************************************************************************************************************/
444
- return /*#__PURE__*/React.createElement(StyledContainerBox$1, null, headTitle && (/*#__PURE__*/React.createElement(StyledHeadContainerBox, null, finalHeadIcon && (/*#__PURE__*/React.createElement(StyledHeadIconContainerBox, null, /*#__PURE__*/React.createElement(StyledHeadIcon, null, finalHeadIcon))), /*#__PURE__*/React.createElement(StyledHeadTitleTypography, null, headTitle))), /*#__PURE__*/React.createElement(StyledTitleContainerDiv, null, finalIcon && (/*#__PURE__*/React.createElement(StyledTitleIconContainerDiv, null, /*#__PURE__*/React.createElement(material.Icon, {
445
- fontSize: 'small'
446
- }, finalIcon))), /*#__PURE__*/React.createElement("div", null, title)));
503
+ var StyledTitleIconContainerDiv = material.styled('div')(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex-shrink: 0;\n display: inline-flex;\n margin-right: 0.3rem;\n"])));var Title = function Title(t0) {
504
+ var $ = compilerRuntime.c(17);
505
+ var title = t0.title,
506
+ icon = t0.icon,
507
+ headTitle = t0.headTitle,
508
+ headIcon = t0.headIcon;
509
+ var t1;
510
+ if ($[0] !== headIcon) {
511
+ t1 = headIcon ? headIcon.replace(/[A-Z]/g, _temp$1) : undefined;
512
+ $[0] = headIcon;
513
+ $[1] = t1;
514
+ } else {
515
+ t1 = $[1];
516
+ }
517
+ var finalHeadIcon = t1;
518
+ var t2;
519
+ if ($[2] !== icon) {
520
+ t2 = icon ? icon.replace(/[A-Z]/g, _temp2$1) : undefined;
521
+ $[2] = icon;
522
+ $[3] = t2;
523
+ } else {
524
+ t2 = $[3];
525
+ }
526
+ var finalIcon = t2;
527
+ var t3;
528
+ if ($[4] !== finalHeadIcon || $[5] !== headTitle) {
529
+ t3 = headTitle && /*#__PURE__*/React.createElement(StyledHeadContainerBox, null, finalHeadIcon && /*#__PURE__*/React.createElement(StyledHeadIconContainerBox, null, /*#__PURE__*/React.createElement(StyledHeadIcon, null, finalHeadIcon)), /*#__PURE__*/React.createElement(StyledHeadTitleTypography, null, headTitle));
530
+ $[4] = finalHeadIcon;
531
+ $[5] = headTitle;
532
+ $[6] = t3;
533
+ } else {
534
+ t3 = $[6];
535
+ }
536
+ var t4;
537
+ if ($[7] !== finalIcon) {
538
+ t4 = finalIcon && /*#__PURE__*/React.createElement(StyledTitleIconContainerDiv, null, /*#__PURE__*/React.createElement(material.Icon, {
539
+ fontSize: "small"
540
+ }, finalIcon));
541
+ $[7] = finalIcon;
542
+ $[8] = t4;
543
+ } else {
544
+ t4 = $[8];
545
+ }
546
+ var t5;
547
+ if ($[9] !== title) {
548
+ t5 = /*#__PURE__*/React.createElement("div", null, title);
549
+ $[9] = title;
550
+ $[10] = t5;
551
+ } else {
552
+ t5 = $[10];
553
+ }
554
+ var t6;
555
+ if ($[11] !== t4 || $[12] !== t5) {
556
+ t6 = /*#__PURE__*/React.createElement(StyledTitleContainerDiv, null, t4, t5);
557
+ $[11] = t4;
558
+ $[12] = t5;
559
+ $[13] = t6;
560
+ } else {
561
+ t6 = $[13];
562
+ }
563
+ var t7;
564
+ if ($[14] !== t3 || $[15] !== t6) {
565
+ t7 = /*#__PURE__*/React.createElement(StyledContainerBox$1, null, t3, t6);
566
+ $[14] = t3;
567
+ $[15] = t6;
568
+ $[16] = t7;
569
+ } else {
570
+ t7 = $[16];
571
+ }
572
+ return t7;
447
573
  };
448
- var Title$1 = /*#__PURE__*/React.memo(Title);var _templateObject, _templateObject2;
574
+ var Title$1 = /*#__PURE__*/React.memo(Title);
575
+ function _temp$1(letter, idx) {
576
+ return "".concat(idx > 0 ? "_" : "").concat(letter.toLowerCase());
577
+ }
578
+ function _temp2$1(letter_0, idx_0) {
579
+ return "".concat(idx_0 > 0 ? "_" : "").concat(letter_0.toLowerCase());
580
+ }var _templateObject, _templateObject2;
449
581
  var SIDE_MENU_WIDTH = 220;
450
582
  var SCREENS = ['xs', 'sm', 'md', 'lg', 'xl'];
451
583
  var _getNextScreen = function _getNextScreen(screen) {
452
584
  if (screen === 'xs') return 'sm';else if (screen === 'sm') return 'md';else if (screen === 'md') return 'lg';else return 'xl';
453
585
  };
454
586
  var DefaultLayout = function DefaultLayout(t0) {
455
- var $ = compilerRuntime.c(96);
587
+ var $ = compilerRuntime.c(67);
456
588
  var children = t0.children,
457
589
  logo = t0.logo,
458
590
  badgeVariant = t0.badgeVariant,
@@ -624,259 +756,212 @@ var DefaultLayout = function DefaultLayout(t0) {
624
756
  var mainBoxSx = t13;
625
757
  var titleData = menuTitles_0[location.pathname];
626
758
  var t14;
627
- if ($[22] !== appBarControl || $[23] !== appBarIconButtonSx || $[24] !== appBarSx || $[25] !== badgeVariant || $[26] !== children || $[27] !== isMobileOpen || $[28] !== logo || $[29] !== mainBoxSx || $[30] !== menu || $[31] !== sideMenuContainerBoxSx || $[32] !== sideMenuPermanentDrawerSx || $[33] !== sideMenuTemporaryDrawerSx || $[34] !== titleData) {
628
- var t15;
629
- if ($[36] !== appBarControl || $[37] !== appBarIconButtonSx || $[38] !== appBarSx || $[39] !== titleData) {
630
- var _t;
631
- if ($[41] !== appBarSx) {
632
- _t = {
633
- position: "fixed",
634
- elevation: 0,
635
- sx: appBarSx
636
- };
637
- $[41] = appBarSx;
638
- $[42] = _t;
639
- } else {
640
- _t = $[42];
641
- }
642
- var _t2;
643
- if ($[43] !== appBarControl || $[44] !== appBarIconButtonSx || $[45] !== titleData) {
644
- var t18;
645
- if ($[47] !== appBarIconButtonSx) {
646
- var _t3;
647
- if ($[49] === Symbol["for"]("react.memo_cache_sentinel")) {
648
- _t3 = /*#__PURE__*/React.createElement(iconsMaterial.Menu, null);
649
- $[49] = _t3;
650
- } else {
651
- _t3 = $[49];
652
- }
653
- t18 = /*#__PURE__*/React.createElement(material.IconButton, {
654
- color: "inherit",
655
- "aria-label": "open drawer",
656
- edge: "start",
657
- onClick: toggleIsMobileOpen,
658
- sx: appBarIconButtonSx
659
- }, _t3);
660
- $[47] = appBarIconButtonSx;
661
- $[48] = t18;
662
- } else {
663
- t18 = $[48];
664
- }
665
- var t19;
666
- if ($[50] !== titleData) {
667
- var t20;
668
- if ($[52] === Symbol["for"]("react.memo_cache_sentinel")) {
669
- t20 = {
670
- variant: "h6",
671
- noWrap: true,
672
- component: "div",
673
- sx: {
674
- flexGrow: 1
675
- }
676
- };
677
- $[52] = t20;
678
- } else {
679
- t20 = $[52];
680
- }
681
- t19 = /*#__PURE__*/React.createElement(material.Typography, t20, titleData && /*#__PURE__*/React.createElement(Title$1, {
682
- title: titleData.name,
683
- icon: titleData.icon,
684
- headTitle: titleData.parentName,
685
- headIcon: titleData.parentIcon
686
- }));
687
- $[50] = titleData;
688
- $[51] = t19;
689
- } else {
690
- t19 = $[51];
691
- }
692
- _t2 = /*#__PURE__*/React.createElement(material.Toolbar, null, t18, t19, appBarControl);
693
- $[43] = appBarControl;
694
- $[44] = appBarIconButtonSx;
695
- $[45] = titleData;
696
- $[46] = _t2;
697
- } else {
698
- _t2 = $[46];
699
- }
700
- t15 = /*#__PURE__*/React.createElement(StyledAppBar, _t, _t2);
701
- $[36] = appBarControl;
702
- $[37] = appBarIconButtonSx;
703
- $[38] = appBarSx;
704
- $[39] = titleData;
705
- $[40] = t15;
706
- } else {
707
- t15 = $[40];
708
- }
709
- var t16;
710
- if ($[53] !== badgeVariant || $[54] !== isMobileOpen || $[55] !== logo || $[56] !== menu || $[57] !== sideMenuContainerBoxSx || $[58] !== sideMenuPermanentDrawerSx || $[59] !== sideMenuTemporaryDrawerSx) {
711
- var _t4;
712
- if ($[61] !== sideMenuContainerBoxSx) {
713
- _t4 = {
714
- component: "nav",
715
- "aria-label": "mailbox folders",
716
- sx: sideMenuContainerBoxSx
717
- };
718
- $[61] = sideMenuContainerBoxSx;
719
- $[62] = _t4;
720
- } else {
721
- _t4 = $[62];
722
- }
723
- var _t5;
724
- if ($[63] !== badgeVariant || $[64] !== isMobileOpen || $[65] !== logo || $[66] !== menu || $[67] !== sideMenuTemporaryDrawerSx) {
725
- var _t6;
726
- if ($[69] === Symbol["for"]("react.memo_cache_sentinel")) {
727
- _t6 = {
728
- keepMounted: true
729
- };
730
- $[69] = _t6;
731
- } else {
732
- _t6 = $[69];
733
- }
734
- var _t7;
735
- if ($[70] !== isMobileOpen || $[71] !== sideMenuTemporaryDrawerSx) {
736
- _t7 = {
737
- variant: "temporary",
738
- open: isMobileOpen,
739
- onClose: toggleIsMobileOpen,
740
- sx: sideMenuTemporaryDrawerSx,
741
- ModalProps: _t6
742
- };
743
- $[70] = isMobileOpen;
744
- $[71] = sideMenuTemporaryDrawerSx;
745
- $[72] = _t7;
746
- } else {
747
- _t7 = $[72];
748
- }
749
- var t21;
750
- if ($[73] !== badgeVariant || $[74] !== logo || $[75] !== menu) {
751
- t21 = menu && /*#__PURE__*/React.createElement(SideMenu$1, {
752
- logo: logo,
753
- badgeVariant: badgeVariant,
754
- list: menu
755
- });
756
- $[73] = badgeVariant;
757
- $[74] = logo;
758
- $[75] = menu;
759
- $[76] = t21;
760
- } else {
761
- t21 = $[76];
762
- }
763
- _t5 = /*#__PURE__*/React.createElement(StyledSideMenuTemporaryDrawer, _t7, t21);
764
- $[63] = badgeVariant;
765
- $[64] = isMobileOpen;
766
- $[65] = logo;
767
- $[66] = menu;
768
- $[67] = sideMenuTemporaryDrawerSx;
769
- $[68] = _t5;
770
- } else {
771
- _t5 = $[68];
772
- }
773
- var _t8;
774
- if ($[77] !== badgeVariant || $[78] !== logo || $[79] !== menu || $[80] !== sideMenuPermanentDrawerSx) {
775
- var _t9;
776
- if ($[82] !== sideMenuPermanentDrawerSx) {
777
- _t9 = {
778
- variant: "permanent",
779
- open: true,
780
- sx: sideMenuPermanentDrawerSx
781
- };
782
- $[82] = sideMenuPermanentDrawerSx;
783
- $[83] = _t9;
784
- } else {
785
- _t9 = $[83];
786
- }
787
- var _t0;
788
- if ($[84] !== badgeVariant || $[85] !== logo || $[86] !== menu) {
789
- _t0 = menu && /*#__PURE__*/React.createElement(SideMenu$1, {
790
- logo: logo,
791
- badgeVariant: badgeVariant,
792
- list: menu
793
- });
794
- $[84] = badgeVariant;
795
- $[85] = logo;
796
- $[86] = menu;
797
- $[87] = _t0;
798
- } else {
799
- _t0 = $[87];
800
- }
801
- _t8 = /*#__PURE__*/React.createElement(StyledSideMenuPermanentDrawer, _t9, _t0);
802
- $[77] = badgeVariant;
803
- $[78] = logo;
804
- $[79] = menu;
805
- $[80] = sideMenuPermanentDrawerSx;
806
- $[81] = _t8;
807
- } else {
808
- _t8 = $[81];
809
- }
810
- t16 = /*#__PURE__*/React.createElement(material.Box, _t4, _t5, _t8);
811
- $[53] = badgeVariant;
812
- $[54] = isMobileOpen;
813
- $[55] = logo;
814
- $[56] = menu;
815
- $[57] = sideMenuContainerBoxSx;
816
- $[58] = sideMenuPermanentDrawerSx;
817
- $[59] = sideMenuTemporaryDrawerSx;
818
- $[60] = t16;
819
- } else {
820
- t16 = $[60];
821
- }
822
- var t17;
823
- if ($[88] !== children || $[89] !== mainBoxSx) {
824
- var _t1;
825
- if ($[91] !== mainBoxSx) {
826
- _t1 = {
827
- component: "main",
828
- sx: mainBoxSx
829
- };
830
- $[91] = mainBoxSx;
831
- $[92] = _t1;
832
- } else {
833
- _t1 = $[92];
834
- }
835
- var _t10;
836
- if ($[93] === Symbol["for"]("react.memo_cache_sentinel")) {
837
- _t10 = /*#__PURE__*/React.createElement(material.Toolbar, null);
838
- $[93] = _t10;
839
- } else {
840
- _t10 = $[93];
841
- }
842
- var _t11;
843
- if ($[94] !== children) {
844
- _t11 = /*#__PURE__*/React.createElement(StyledMainContentDiv, null, children);
845
- $[94] = children;
846
- $[95] = _t11;
847
- } else {
848
- _t11 = $[95];
849
- }
850
- t17 = /*#__PURE__*/React.createElement(material.Box, _t1, _t10, _t11);
851
- $[88] = children;
852
- $[89] = mainBoxSx;
853
- $[90] = t17;
854
- } else {
855
- t17 = $[90];
856
- }
857
- t14 = /*#__PURE__*/React.createElement(StyledContainerBox, null, t15, t16, t17);
858
- $[22] = appBarControl;
759
+ if ($[22] === Symbol["for"]("react.memo_cache_sentinel")) {
760
+ t14 = /*#__PURE__*/React.createElement(iconsMaterial.Menu, null);
761
+ $[22] = t14;
762
+ } else {
763
+ t14 = $[22];
764
+ }
765
+ var t15;
766
+ if ($[23] !== appBarIconButtonSx) {
767
+ t15 = /*#__PURE__*/React.createElement(material.IconButton, {
768
+ color: "inherit",
769
+ "aria-label": "open drawer",
770
+ edge: "start",
771
+ onClick: toggleIsMobileOpen,
772
+ sx: appBarIconButtonSx
773
+ }, t14);
859
774
  $[23] = appBarIconButtonSx;
860
- $[24] = appBarSx;
861
- $[25] = badgeVariant;
862
- $[26] = children;
863
- $[27] = isMobileOpen;
864
- $[28] = logo;
865
- $[29] = mainBoxSx;
866
- $[30] = menu;
867
- $[31] = sideMenuContainerBoxSx;
868
- $[32] = sideMenuPermanentDrawerSx;
869
- $[33] = sideMenuTemporaryDrawerSx;
870
- $[34] = titleData;
871
- $[35] = t14;
872
- } else {
873
- t14 = $[35];
874
- }
875
- return t14;
775
+ $[24] = t15;
776
+ } else {
777
+ t15 = $[24];
778
+ }
779
+ var t16;
780
+ if ($[25] === Symbol["for"]("react.memo_cache_sentinel")) {
781
+ t16 = {
782
+ flexGrow: 1
783
+ };
784
+ $[25] = t16;
785
+ } else {
786
+ t16 = $[25];
787
+ }
788
+ var t17;
789
+ if ($[26] !== titleData) {
790
+ t17 = titleData && /*#__PURE__*/React.createElement(Title$1, {
791
+ title: titleData.name,
792
+ icon: titleData.icon,
793
+ headTitle: titleData.parentName,
794
+ headIcon: titleData.parentIcon
795
+ });
796
+ $[26] = titleData;
797
+ $[27] = t17;
798
+ } else {
799
+ t17 = $[27];
800
+ }
801
+ var t18;
802
+ if ($[28] !== t17) {
803
+ t18 = /*#__PURE__*/React.createElement(material.Typography, {
804
+ variant: "h6",
805
+ noWrap: true,
806
+ component: "div",
807
+ sx: t16
808
+ }, t17);
809
+ $[28] = t17;
810
+ $[29] = t18;
811
+ } else {
812
+ t18 = $[29];
813
+ }
814
+ var t19;
815
+ if ($[30] !== appBarControl || $[31] !== t15 || $[32] !== t18) {
816
+ t19 = /*#__PURE__*/React.createElement(material.Toolbar, null, t15, t18, appBarControl);
817
+ $[30] = appBarControl;
818
+ $[31] = t15;
819
+ $[32] = t18;
820
+ $[33] = t19;
821
+ } else {
822
+ t19 = $[33];
823
+ }
824
+ var t20;
825
+ if ($[34] !== appBarSx || $[35] !== t19) {
826
+ t20 = /*#__PURE__*/React.createElement(StyledAppBar, {
827
+ position: "fixed",
828
+ elevation: 0,
829
+ sx: appBarSx
830
+ }, t19);
831
+ $[34] = appBarSx;
832
+ $[35] = t19;
833
+ $[36] = t20;
834
+ } else {
835
+ t20 = $[36];
836
+ }
837
+ var t21;
838
+ if ($[37] === Symbol["for"]("react.memo_cache_sentinel")) {
839
+ t21 = {
840
+ keepMounted: true
841
+ };
842
+ $[37] = t21;
843
+ } else {
844
+ t21 = $[37];
845
+ }
846
+ var t22;
847
+ if ($[38] !== badgeVariant || $[39] !== logo || $[40] !== menu) {
848
+ t22 = menu && /*#__PURE__*/React.createElement(SideMenu$1, {
849
+ logo: logo,
850
+ badgeVariant: badgeVariant,
851
+ list: menu
852
+ });
853
+ $[38] = badgeVariant;
854
+ $[39] = logo;
855
+ $[40] = menu;
856
+ $[41] = t22;
857
+ } else {
858
+ t22 = $[41];
859
+ }
860
+ var t23;
861
+ if ($[42] !== isMobileOpen || $[43] !== sideMenuTemporaryDrawerSx || $[44] !== t22) {
862
+ t23 = /*#__PURE__*/React.createElement(StyledSideMenuTemporaryDrawer, {
863
+ variant: "temporary",
864
+ open: isMobileOpen,
865
+ onClose: toggleIsMobileOpen,
866
+ sx: sideMenuTemporaryDrawerSx,
867
+ ModalProps: t21
868
+ }, t22);
869
+ $[42] = isMobileOpen;
870
+ $[43] = sideMenuTemporaryDrawerSx;
871
+ $[44] = t22;
872
+ $[45] = t23;
873
+ } else {
874
+ t23 = $[45];
875
+ }
876
+ var t24;
877
+ if ($[46] !== badgeVariant || $[47] !== logo || $[48] !== menu) {
878
+ t24 = menu && /*#__PURE__*/React.createElement(SideMenu$1, {
879
+ logo: logo,
880
+ badgeVariant: badgeVariant,
881
+ list: menu
882
+ });
883
+ $[46] = badgeVariant;
884
+ $[47] = logo;
885
+ $[48] = menu;
886
+ $[49] = t24;
887
+ } else {
888
+ t24 = $[49];
889
+ }
890
+ var t25;
891
+ if ($[50] !== sideMenuPermanentDrawerSx || $[51] !== t24) {
892
+ t25 = /*#__PURE__*/React.createElement(StyledSideMenuPermanentDrawer, {
893
+ variant: "permanent",
894
+ open: true,
895
+ sx: sideMenuPermanentDrawerSx
896
+ }, t24);
897
+ $[50] = sideMenuPermanentDrawerSx;
898
+ $[51] = t24;
899
+ $[52] = t25;
900
+ } else {
901
+ t25 = $[52];
902
+ }
903
+ var t26;
904
+ if ($[53] !== sideMenuContainerBoxSx || $[54] !== t23 || $[55] !== t25) {
905
+ t26 = /*#__PURE__*/React.createElement(material.Box, {
906
+ component: "nav",
907
+ "aria-label": "mailbox folders",
908
+ sx: sideMenuContainerBoxSx
909
+ }, t23, t25);
910
+ $[53] = sideMenuContainerBoxSx;
911
+ $[54] = t23;
912
+ $[55] = t25;
913
+ $[56] = t26;
914
+ } else {
915
+ t26 = $[56];
916
+ }
917
+ var t27;
918
+ if ($[57] === Symbol["for"]("react.memo_cache_sentinel")) {
919
+ t27 = /*#__PURE__*/React.createElement(material.Toolbar, null);
920
+ $[57] = t27;
921
+ } else {
922
+ t27 = $[57];
923
+ }
924
+ var t28;
925
+ if ($[58] !== children) {
926
+ t28 = /*#__PURE__*/React.createElement(StyledMainContentDiv, null, children);
927
+ $[58] = children;
928
+ $[59] = t28;
929
+ } else {
930
+ t28 = $[59];
931
+ }
932
+ var t29;
933
+ if ($[60] !== mainBoxSx || $[61] !== t28) {
934
+ t29 = /*#__PURE__*/React.createElement(material.Box, {
935
+ component: "main",
936
+ sx: mainBoxSx
937
+ }, t27, t28);
938
+ $[60] = mainBoxSx;
939
+ $[61] = t28;
940
+ $[62] = t29;
941
+ } else {
942
+ t29 = $[62];
943
+ }
944
+ var t30;
945
+ if ($[63] !== t20 || $[64] !== t26 || $[65] !== t29) {
946
+ t30 = /*#__PURE__*/React.createElement(StyledContainerBox, null, t20, t26, t29);
947
+ $[63] = t20;
948
+ $[64] = t26;
949
+ $[65] = t29;
950
+ $[66] = t30;
951
+ } else {
952
+ t30 = $[66];
953
+ }
954
+ return t30;
876
955
  };
956
+
957
+ /********************************************************************************************************************
958
+ * Types
959
+ * ******************************************************************************************************************/
960
+
877
961
  /********************************************************************************************************************
878
962
  * Styled Components
879
963
  * ******************************************************************************************************************/
964
+
880
965
  var StyledContainerBox = material.styled(material.Box)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n height: 100%;\n"])));
881
966
  var StyledAppBar = material.styled(material.AppBar)(function (_ref) {
882
967
  var theme = _ref.theme;