@hari_digitus/sms-ui-library 9.0.4 → 9.0.6
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.
- package/dist/SideNavBar.cjs.js +10 -10
- package/dist/SideNavBar.es.js +379 -378
- package/dist/types/icons/icon.d.ts +5 -5
- package/package.json +3 -2
package/dist/SideNavBar.es.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as m from "react";
|
|
2
|
+
import Be, { createContext as vr, useState as J, useContext as hr, useEffect as mr } from "react";
|
|
3
|
+
var fe = { exports: {} }, ee = {};
|
|
3
4
|
/**
|
|
4
5
|
* @license React
|
|
5
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +10,21 @@ var ue = { exports: {} }, Q = {};
|
|
|
9
10
|
* This source code is licensed under the MIT license found in the
|
|
10
11
|
* LICENSE file in the root directory of this source tree.
|
|
11
12
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
13
|
+
var Me;
|
|
14
|
+
function gr() {
|
|
15
|
+
if (Me) return ee;
|
|
16
|
+
Me = 1;
|
|
17
|
+
var f = Be, k = Symbol.for("react.element"), g = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, P = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, N = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function I(b, p, D) {
|
|
19
|
+
var x, _ = {}, T = null, B = null;
|
|
20
|
+
D !== void 0 && (T = "" + D), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (B = p.ref);
|
|
21
|
+
for (x in p) w.call(p, x) && !N.hasOwnProperty(x) && (_[x] = p[x]);
|
|
22
|
+
if (b && b.defaultProps) for (x in p = b.defaultProps, p) _[x] === void 0 && (_[x] = p[x]);
|
|
23
|
+
return { $$typeof: k, type: b, key: T, ref: B, props: _, _owner: P.current };
|
|
23
24
|
}
|
|
24
|
-
return
|
|
25
|
+
return ee.Fragment = g, ee.jsx = I, ee.jsxs = I, ee;
|
|
25
26
|
}
|
|
26
|
-
var
|
|
27
|
+
var re = {};
|
|
27
28
|
/**
|
|
28
29
|
* @license React
|
|
29
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,48 +35,48 @@ var ee = {};
|
|
|
34
35
|
* LICENSE file in the root directory of this source tree.
|
|
35
36
|
*/
|
|
36
37
|
var $e;
|
|
37
|
-
function
|
|
38
|
+
function br() {
|
|
38
39
|
return $e || ($e = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
-
var
|
|
40
|
+
var f = Be, k = Symbol.for("react.element"), g = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), I = Symbol.for("react.provider"), b = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), E = Symbol.iterator, te = "@@iterator";
|
|
40
41
|
function Y(e) {
|
|
41
42
|
if (e === null || typeof e != "object")
|
|
42
43
|
return null;
|
|
43
|
-
var r =
|
|
44
|
+
var r = E && e[E] || e[te];
|
|
44
45
|
return typeof r == "function" ? r : null;
|
|
45
46
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
47
|
+
var F = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function v(e) {
|
|
48
49
|
{
|
|
49
|
-
for (var r = arguments.length,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
51
|
+
t[a - 1] = arguments[a];
|
|
52
|
+
de("error", e, t);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function de(e, r, t) {
|
|
55
56
|
{
|
|
56
|
-
var a =
|
|
57
|
-
s !== "" && (r += "%s",
|
|
58
|
-
var c =
|
|
57
|
+
var a = F.ReactDebugCurrentFrame, s = a.getStackAddendum();
|
|
58
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
59
|
+
var c = t.map(function(o) {
|
|
59
60
|
return String(o);
|
|
60
61
|
});
|
|
61
62
|
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
65
|
+
var pe = !1, ne = !1, ve = !1, ae = !1, ie = !1, M;
|
|
66
|
+
M = Symbol.for("react.module.reference");
|
|
67
|
+
function H(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === w || e === N || ie || e === P || e === D || e === x || ae || e === B || pe || ne || ve || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === _ || e.$$typeof === I || e.$$typeof === b || e.$$typeof === p || // This needs to include all possible module reference object
|
|
68
69
|
// types supported by any Flight configuration anywhere since
|
|
69
70
|
// we don't know which Flight build this will end up being used
|
|
70
71
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
72
|
+
e.$$typeof === M || e.getModuleId !== void 0));
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function oe(e, r, t) {
|
|
74
75
|
var a = e.displayName;
|
|
75
76
|
if (a)
|
|
76
77
|
return a;
|
|
77
78
|
var s = r.displayName || r.name || "";
|
|
78
|
-
return s !== "" ?
|
|
79
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
79
80
|
}
|
|
80
81
|
function q(e) {
|
|
81
82
|
return e.displayName || "Context";
|
|
@@ -83,38 +84,38 @@ function gr() {
|
|
|
83
84
|
function O(e) {
|
|
84
85
|
if (e == null)
|
|
85
86
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
87
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
88
|
return e.displayName || e.name || null;
|
|
88
89
|
if (typeof e == "string")
|
|
89
90
|
return e;
|
|
90
91
|
switch (e) {
|
|
91
|
-
case
|
|
92
|
+
case w:
|
|
92
93
|
return "Fragment";
|
|
93
|
-
case
|
|
94
|
+
case g:
|
|
94
95
|
return "Portal";
|
|
95
|
-
case
|
|
96
|
+
case N:
|
|
96
97
|
return "Profiler";
|
|
97
|
-
case
|
|
98
|
+
case P:
|
|
98
99
|
return "StrictMode";
|
|
99
|
-
case
|
|
100
|
+
case D:
|
|
100
101
|
return "Suspense";
|
|
101
|
-
case
|
|
102
|
+
case x:
|
|
102
103
|
return "SuspenseList";
|
|
103
104
|
}
|
|
104
105
|
if (typeof e == "object")
|
|
105
106
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
107
|
+
case b:
|
|
107
108
|
var r = e;
|
|
108
109
|
return q(r) + ".Consumer";
|
|
109
|
-
case
|
|
110
|
-
var
|
|
111
|
-
return q(
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
110
|
+
case I:
|
|
111
|
+
var t = e;
|
|
112
|
+
return q(t._context) + ".Provider";
|
|
113
|
+
case p:
|
|
114
|
+
return oe(e, e.render, "ForwardRef");
|
|
115
|
+
case _:
|
|
115
116
|
var a = e.displayName || null;
|
|
116
117
|
return a !== null ? a : O(e.type) || "Memo";
|
|
117
|
-
case
|
|
118
|
+
case T: {
|
|
118
119
|
var s = e, c = s._payload, o = s._init;
|
|
119
120
|
try {
|
|
120
121
|
return O(o(c));
|
|
@@ -125,18 +126,18 @@ function gr() {
|
|
|
125
126
|
}
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
129
|
+
var A = Object.assign, $ = 0, h, S, L, l, K, G, z;
|
|
130
|
+
function X() {
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
132
|
+
X.__reactDisabledLog = !0;
|
|
133
|
+
function y() {
|
|
133
134
|
{
|
|
134
135
|
if ($ === 0) {
|
|
135
|
-
|
|
136
|
+
h = console.log, S = console.info, L = console.warn, l = console.error, K = console.group, G = console.groupCollapsed, z = console.groupEnd;
|
|
136
137
|
var e = {
|
|
137
138
|
configurable: !0,
|
|
138
139
|
enumerable: !0,
|
|
139
|
-
value:
|
|
140
|
+
value: X,
|
|
140
141
|
writable: !0
|
|
141
142
|
};
|
|
142
143
|
Object.defineProperties(console, {
|
|
@@ -152,7 +153,7 @@ function gr() {
|
|
|
152
153
|
$++;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function he() {
|
|
156
157
|
{
|
|
157
158
|
if ($--, $ === 0) {
|
|
158
159
|
var e = {
|
|
@@ -161,65 +162,65 @@ function gr() {
|
|
|
161
162
|
writable: !0
|
|
162
163
|
};
|
|
163
164
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
165
|
-
value:
|
|
165
|
+
log: A({}, e, {
|
|
166
|
+
value: h
|
|
166
167
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value:
|
|
168
|
+
info: A({}, e, {
|
|
169
|
+
value: S
|
|
169
170
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value:
|
|
171
|
+
warn: A({}, e, {
|
|
172
|
+
value: L
|
|
172
173
|
}),
|
|
173
|
-
error:
|
|
174
|
+
error: A({}, e, {
|
|
174
175
|
value: l
|
|
175
176
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value: H
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: D({}, e, {
|
|
177
|
+
group: A({}, e, {
|
|
180
178
|
value: K
|
|
181
179
|
}),
|
|
182
|
-
|
|
180
|
+
groupCollapsed: A({}, e, {
|
|
183
181
|
value: G
|
|
182
|
+
}),
|
|
183
|
+
groupEnd: A({}, e, {
|
|
184
|
+
value: z
|
|
184
185
|
})
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
|
-
$ < 0 &&
|
|
188
|
+
$ < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
191
|
+
var Z = F.ReactCurrentDispatcher, me;
|
|
192
|
+
function se(e, r, t) {
|
|
192
193
|
{
|
|
193
|
-
if (
|
|
194
|
+
if (me === void 0)
|
|
194
195
|
try {
|
|
195
196
|
throw Error();
|
|
196
197
|
} catch (s) {
|
|
197
198
|
var a = s.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
|
|
199
|
+
me = a && a[1] || "";
|
|
199
200
|
}
|
|
200
201
|
return `
|
|
201
|
-
` +
|
|
202
|
+
` + me + e;
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
var
|
|
205
|
+
var ge = !1, le;
|
|
205
206
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
207
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
le = new Ue();
|
|
208
209
|
}
|
|
209
210
|
function je(e, r) {
|
|
210
|
-
if (!e ||
|
|
211
|
+
if (!e || ge)
|
|
211
212
|
return "";
|
|
212
213
|
{
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
return
|
|
214
|
+
var t = le.get(e);
|
|
215
|
+
if (t !== void 0)
|
|
216
|
+
return t;
|
|
216
217
|
}
|
|
217
218
|
var a;
|
|
218
|
-
|
|
219
|
+
ge = !0;
|
|
219
220
|
var s = Error.prepareStackTrace;
|
|
220
221
|
Error.prepareStackTrace = void 0;
|
|
221
222
|
var c;
|
|
222
|
-
c =
|
|
223
|
+
c = Z.current, Z.current = null, y();
|
|
223
224
|
try {
|
|
224
225
|
if (r) {
|
|
225
226
|
var o = function() {
|
|
@@ -232,193 +233,193 @@ function gr() {
|
|
|
232
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
234
|
try {
|
|
234
235
|
Reflect.construct(o, []);
|
|
235
|
-
} catch (
|
|
236
|
-
a =
|
|
236
|
+
} catch (j) {
|
|
237
|
+
a = j;
|
|
237
238
|
}
|
|
238
239
|
Reflect.construct(e, [], o);
|
|
239
240
|
} else {
|
|
240
241
|
try {
|
|
241
242
|
o.call();
|
|
242
|
-
} catch (
|
|
243
|
-
a =
|
|
243
|
+
} catch (j) {
|
|
244
|
+
a = j;
|
|
244
245
|
}
|
|
245
246
|
e.call(o.prototype);
|
|
246
247
|
}
|
|
247
248
|
} else {
|
|
248
249
|
try {
|
|
249
250
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
a =
|
|
251
|
+
} catch (j) {
|
|
252
|
+
a = j;
|
|
252
253
|
}
|
|
253
254
|
e();
|
|
254
255
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var i =
|
|
258
|
-
`),
|
|
259
|
-
`), u = i.length - 1,
|
|
260
|
-
|
|
261
|
-
for (; u >= 1 &&
|
|
262
|
-
if (i[u] !==
|
|
263
|
-
if (u !== 1 ||
|
|
256
|
+
} catch (j) {
|
|
257
|
+
if (j && a && typeof j.stack == "string") {
|
|
258
|
+
for (var i = j.stack.split(`
|
|
259
|
+
`), R = a.stack.split(`
|
|
260
|
+
`), u = i.length - 1, d = R.length - 1; u >= 1 && d >= 0 && i[u] !== R[d]; )
|
|
261
|
+
d--;
|
|
262
|
+
for (; u >= 1 && d >= 0; u--, d--)
|
|
263
|
+
if (i[u] !== R[d]) {
|
|
264
|
+
if (u !== 1 || d !== 1)
|
|
264
265
|
do
|
|
265
|
-
if (u--,
|
|
266
|
-
var
|
|
266
|
+
if (u--, d--, d < 0 || i[u] !== R[d]) {
|
|
267
|
+
var C = `
|
|
267
268
|
` + i[u].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
269
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, C), C;
|
|
269
270
|
}
|
|
270
|
-
while (u >= 1 &&
|
|
271
|
+
while (u >= 1 && d >= 0);
|
|
271
272
|
break;
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
275
|
} finally {
|
|
275
|
-
|
|
276
|
+
ge = !1, Z.current = c, he(), Error.prepareStackTrace = s;
|
|
276
277
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
278
|
+
var V = e ? e.displayName || e.name : "", W = V ? se(V) : "";
|
|
279
|
+
return typeof e == "function" && le.set(e, W), W;
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
+
function Ve(e, r, t) {
|
|
281
282
|
return je(e, !1);
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
+
function Je(e) {
|
|
284
285
|
var r = e.prototype;
|
|
285
286
|
return !!(r && r.isReactComponent);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function ce(e, r, t) {
|
|
288
289
|
if (e == null)
|
|
289
290
|
return "";
|
|
290
291
|
if (typeof e == "function")
|
|
291
|
-
return je(e,
|
|
292
|
+
return je(e, Je(e));
|
|
292
293
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
294
|
+
return se(e);
|
|
294
295
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
296
|
+
case D:
|
|
297
|
+
return se("Suspense");
|
|
298
|
+
case x:
|
|
299
|
+
return se("SuspenseList");
|
|
299
300
|
}
|
|
300
301
|
if (typeof e == "object")
|
|
301
302
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
303
|
+
case p:
|
|
304
|
+
return Ve(e.render);
|
|
305
|
+
case _:
|
|
306
|
+
return ce(e.type, r, t);
|
|
307
|
+
case T: {
|
|
307
308
|
var a = e, s = a._payload, c = a._init;
|
|
308
309
|
try {
|
|
309
|
-
return
|
|
310
|
+
return ce(c(s), r, t);
|
|
310
311
|
} catch {
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
return "";
|
|
315
316
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
317
|
+
var Q = Object.prototype.hasOwnProperty, _e = {}, Ce = F.ReactDebugCurrentFrame;
|
|
318
|
+
function ue(e) {
|
|
318
319
|
if (e) {
|
|
319
|
-
var r = e._owner,
|
|
320
|
-
|
|
320
|
+
var r = e._owner, t = ce(e.type, e._source, r ? r.type : null);
|
|
321
|
+
Ce.setExtraStackFrame(t);
|
|
321
322
|
} else
|
|
322
|
-
|
|
323
|
+
Ce.setExtraStackFrame(null);
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function He(e, r, t, a, s) {
|
|
325
326
|
{
|
|
326
|
-
var c = Function.call.bind(
|
|
327
|
+
var c = Function.call.bind(Q);
|
|
327
328
|
for (var o in e)
|
|
328
329
|
if (c(e, o)) {
|
|
329
330
|
var i = void 0;
|
|
330
331
|
try {
|
|
331
332
|
if (typeof e[o] != "function") {
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
333
|
+
var R = Error((a || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw R.name = "Invariant Violation", R;
|
|
334
335
|
}
|
|
335
|
-
i = e[o](r, o, a,
|
|
336
|
+
i = e[o](r, o, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
337
|
} catch (u) {
|
|
337
338
|
i = u;
|
|
338
339
|
}
|
|
339
|
-
i && !(i instanceof Error) && (
|
|
340
|
+
i && !(i instanceof Error) && (ue(s), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, o, typeof i), ue(null)), i instanceof Error && !(i.message in _e) && (_e[i.message] = !0, ue(s), v("Failed %s type: %s", t, i.message), ue(null));
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
344
|
var qe = Array.isArray;
|
|
344
|
-
function
|
|
345
|
+
function be(e) {
|
|
345
346
|
return qe(e);
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function Ke(e) {
|
|
348
349
|
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
350
|
-
return
|
|
350
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
|
+
return t;
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function Ge(e) {
|
|
354
355
|
try {
|
|
355
|
-
return
|
|
356
|
+
return we(e), !1;
|
|
356
357
|
} catch {
|
|
357
358
|
return !0;
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function we(e) {
|
|
361
362
|
return "" + e;
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
364
|
+
function Se(e) {
|
|
365
|
+
if (Ge(e))
|
|
366
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), we(e);
|
|
366
367
|
}
|
|
367
|
-
var
|
|
368
|
+
var Te = F.ReactCurrentOwner, ze = {
|
|
368
369
|
key: !0,
|
|
369
370
|
ref: !0,
|
|
370
371
|
__self: !0,
|
|
371
372
|
__source: !0
|
|
372
|
-
}, Oe,
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
373
|
+
}, Oe, ke;
|
|
374
|
+
function Xe(e) {
|
|
375
|
+
if (Q.call(e, "ref")) {
|
|
375
376
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
377
|
if (r && r.isReactWarning)
|
|
377
378
|
return !1;
|
|
378
379
|
}
|
|
379
380
|
return e.ref !== void 0;
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
382
|
+
function Ze(e) {
|
|
383
|
+
if (Q.call(e, "key")) {
|
|
383
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
385
|
if (r && r.isReactWarning)
|
|
385
386
|
return !1;
|
|
386
387
|
}
|
|
387
388
|
return e.key !== void 0;
|
|
388
389
|
}
|
|
389
|
-
function Ze(e, r) {
|
|
390
|
-
typeof e.ref == "string" && Se.current;
|
|
391
|
-
}
|
|
392
390
|
function Qe(e, r) {
|
|
391
|
+
typeof e.ref == "string" && Te.current;
|
|
392
|
+
}
|
|
393
|
+
function er(e, r) {
|
|
393
394
|
{
|
|
394
|
-
var
|
|
395
|
-
Oe || (Oe = !0,
|
|
395
|
+
var t = function() {
|
|
396
|
+
Oe || (Oe = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
396
397
|
};
|
|
397
|
-
|
|
398
|
-
get:
|
|
398
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
399
|
+
get: t,
|
|
399
400
|
configurable: !0
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function rr(e, r) {
|
|
404
405
|
{
|
|
405
|
-
var
|
|
406
|
-
|
|
406
|
+
var t = function() {
|
|
407
|
+
ke || (ke = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
408
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
409
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
410
|
+
get: t,
|
|
410
411
|
configurable: !0
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
var
|
|
415
|
+
var tr = function(e, r, t, a, s, c, o) {
|
|
415
416
|
var i = {
|
|
416
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
418
|
+
$$typeof: k,
|
|
418
419
|
// Built-in properties that belong on the element
|
|
419
420
|
type: e,
|
|
420
421
|
key: r,
|
|
421
|
-
ref:
|
|
422
|
+
ref: t,
|
|
422
423
|
props: o,
|
|
423
424
|
// Record the component responsible for creating this element.
|
|
424
425
|
_owner: c
|
|
@@ -440,41 +441,41 @@ function gr() {
|
|
|
440
441
|
value: s
|
|
441
442
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
442
443
|
};
|
|
443
|
-
function nr(e, r,
|
|
444
|
+
function nr(e, r, t, a, s) {
|
|
444
445
|
{
|
|
445
|
-
var c, o = {}, i = null,
|
|
446
|
-
|
|
446
|
+
var c, o = {}, i = null, R = null;
|
|
447
|
+
t !== void 0 && (Se(t), i = "" + t), Ze(r) && (Se(r.key), i = "" + r.key), Xe(r) && (R = r.ref, Qe(r, s));
|
|
447
448
|
for (c in r)
|
|
448
|
-
|
|
449
|
+
Q.call(r, c) && !ze.hasOwnProperty(c) && (o[c] = r[c]);
|
|
449
450
|
if (e && e.defaultProps) {
|
|
450
451
|
var u = e.defaultProps;
|
|
451
452
|
for (c in u)
|
|
452
453
|
o[c] === void 0 && (o[c] = u[c]);
|
|
453
454
|
}
|
|
454
|
-
if (i ||
|
|
455
|
-
var
|
|
456
|
-
i &&
|
|
455
|
+
if (i || R) {
|
|
456
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
i && er(o, d), R && rr(o, d);
|
|
457
458
|
}
|
|
458
|
-
return
|
|
459
|
+
return tr(e, i, R, s, a, Te.current, o);
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
462
|
+
var xe = F.ReactCurrentOwner, Pe = F.ReactDebugCurrentFrame;
|
|
463
|
+
function U(e) {
|
|
463
464
|
if (e) {
|
|
464
|
-
var r = e._owner,
|
|
465
|
-
|
|
465
|
+
var r = e._owner, t = ce(e.type, e._source, r ? r.type : null);
|
|
466
|
+
Pe.setExtraStackFrame(t);
|
|
466
467
|
} else
|
|
467
|
-
|
|
468
|
+
Pe.setExtraStackFrame(null);
|
|
468
469
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
470
|
+
var Ee;
|
|
471
|
+
Ee = !1;
|
|
471
472
|
function ye(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === k;
|
|
473
474
|
}
|
|
474
|
-
function
|
|
475
|
+
function Ne() {
|
|
475
476
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e = O(
|
|
477
|
+
if (xe.current) {
|
|
478
|
+
var e = O(xe.current.type);
|
|
478
479
|
if (e)
|
|
479
480
|
return `
|
|
480
481
|
|
|
@@ -483,43 +484,43 @@ Check the render method of \`` + e + "`.";
|
|
|
483
484
|
return "";
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
|
-
function
|
|
487
|
+
function ar(e) {
|
|
487
488
|
return "";
|
|
488
489
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
490
|
+
var Ie = {};
|
|
491
|
+
function ir(e) {
|
|
491
492
|
{
|
|
492
|
-
var r =
|
|
493
|
+
var r = Ne();
|
|
493
494
|
if (!r) {
|
|
494
|
-
var
|
|
495
|
-
|
|
495
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
496
|
+
t && (r = `
|
|
496
497
|
|
|
497
|
-
Check the top-level render call using <` +
|
|
498
|
+
Check the top-level render call using <` + t + ">.");
|
|
498
499
|
}
|
|
499
500
|
return r;
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
|
-
function
|
|
503
|
+
function De(e, r) {
|
|
503
504
|
{
|
|
504
505
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
506
|
return;
|
|
506
507
|
e._store.validated = !0;
|
|
507
|
-
var
|
|
508
|
-
if (
|
|
508
|
+
var t = ir(r);
|
|
509
|
+
if (Ie[t])
|
|
509
510
|
return;
|
|
510
|
-
|
|
511
|
+
Ie[t] = !0;
|
|
511
512
|
var a = "";
|
|
512
|
-
e && e._owner && e._owner !==
|
|
513
|
+
e && e._owner && e._owner !== xe.current && (a = " It was passed a child from " + O(e._owner.type) + "."), U(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), U(null);
|
|
513
514
|
}
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function Ae(e, r) {
|
|
516
517
|
{
|
|
517
518
|
if (typeof e != "object")
|
|
518
519
|
return;
|
|
519
|
-
if (
|
|
520
|
-
for (var
|
|
521
|
-
var a = e[
|
|
522
|
-
ye(a) &&
|
|
520
|
+
if (be(e))
|
|
521
|
+
for (var t = 0; t < e.length; t++) {
|
|
522
|
+
var a = e[t];
|
|
523
|
+
ye(a) && De(a, r);
|
|
523
524
|
}
|
|
524
525
|
else if (ye(e))
|
|
525
526
|
e._store && (e._store.validated = !0);
|
|
@@ -527,187 +528,187 @@ Check the top-level render call using <` + n + ">.");
|
|
|
527
528
|
var s = Y(e);
|
|
528
529
|
if (typeof s == "function" && s !== e.entries)
|
|
529
530
|
for (var c = s.call(e), o; !(o = c.next()).done; )
|
|
530
|
-
ye(o.value) &&
|
|
531
|
+
ye(o.value) && De(o.value, r);
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
|
-
function
|
|
535
|
+
function or(e) {
|
|
535
536
|
{
|
|
536
537
|
var r = e.type;
|
|
537
538
|
if (r == null || typeof r == "string")
|
|
538
539
|
return;
|
|
539
|
-
var
|
|
540
|
+
var t;
|
|
540
541
|
if (typeof r == "function")
|
|
541
|
-
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
t = r.propTypes;
|
|
543
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
543
544
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
545
|
-
|
|
545
|
+
r.$$typeof === _))
|
|
546
|
+
t = r.propTypes;
|
|
546
547
|
else
|
|
547
548
|
return;
|
|
548
|
-
if (
|
|
549
|
+
if (t) {
|
|
549
550
|
var a = O(r);
|
|
550
|
-
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
551
|
+
He(t, e.props, "prop", a, e);
|
|
552
|
+
} else if (r.PropTypes !== void 0 && !Ee) {
|
|
553
|
+
Ee = !0;
|
|
553
554
|
var s = O(r);
|
|
554
|
-
|
|
555
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
555
556
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
557
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function sr(e) {
|
|
560
561
|
{
|
|
561
|
-
for (var r = Object.keys(e.props),
|
|
562
|
-
var a = r[
|
|
562
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
563
|
+
var a = r[t];
|
|
563
564
|
if (a !== "children" && a !== "key") {
|
|
564
|
-
|
|
565
|
+
U(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), U(null);
|
|
565
566
|
break;
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
|
-
e.ref !== null && (
|
|
569
|
+
e.ref !== null && (U(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
569
570
|
}
|
|
570
571
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
572
|
+
var Le = {};
|
|
573
|
+
function Fe(e, r, t, a, s, c) {
|
|
573
574
|
{
|
|
574
|
-
var o =
|
|
575
|
+
var o = H(e);
|
|
575
576
|
if (!o) {
|
|
576
577
|
var i = "";
|
|
577
578
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var
|
|
579
|
-
|
|
579
|
+
var R = ar();
|
|
580
|
+
R ? i += R : i += Ne();
|
|
580
581
|
var u;
|
|
581
|
-
e === null ? u = "null" :
|
|
582
|
+
e === null ? u = "null" : be(e) ? u = "array" : e !== void 0 && e.$$typeof === k ? (u = "<" + (O(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, i);
|
|
582
583
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
584
|
+
var d = nr(e, r, t, s, c);
|
|
585
|
+
if (d == null)
|
|
586
|
+
return d;
|
|
586
587
|
if (o) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
588
|
+
var C = r.children;
|
|
589
|
+
if (C !== void 0)
|
|
589
590
|
if (a)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (be(C)) {
|
|
592
|
+
for (var V = 0; V < C.length; V++)
|
|
593
|
+
Ae(C[V], e);
|
|
594
|
+
Object.freeze && Object.freeze(C);
|
|
594
595
|
} else
|
|
595
|
-
|
|
596
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
597
|
else
|
|
597
|
-
|
|
598
|
+
Ae(C, e);
|
|
598
599
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var
|
|
605
|
-
|
|
600
|
+
if (Q.call(r, "key")) {
|
|
601
|
+
var W = O(e), j = Object.keys(r).filter(function(pr) {
|
|
602
|
+
return pr !== "key";
|
|
603
|
+
}), Re = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
+
if (!Le[W + Re]) {
|
|
605
|
+
var dr = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
|
|
606
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
606
607
|
let props = %s;
|
|
607
608
|
<%s {...props} />
|
|
608
609
|
React keys must be passed directly to JSX without using spread:
|
|
609
610
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
611
|
+
<%s key={someKey} {...props} />`, Re, W, dr, W), Le[W + Re] = !0;
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
|
-
return e ===
|
|
614
|
+
return e === w ? sr(d) : or(d), d;
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
617
|
+
function lr(e, r, t) {
|
|
618
|
+
return Fe(e, r, t, !0);
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
620
|
+
function cr(e, r, t) {
|
|
621
|
+
return Fe(e, r, t, !1);
|
|
621
622
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
})()),
|
|
623
|
+
var ur = cr, fr = lr;
|
|
624
|
+
re.Fragment = w, re.jsx = ur, re.jsxs = fr;
|
|
625
|
+
})()), re;
|
|
625
626
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
627
|
+
var We;
|
|
628
|
+
function xr() {
|
|
629
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? fe.exports = gr() : fe.exports = br()), fe.exports;
|
|
629
630
|
}
|
|
630
|
-
var
|
|
631
|
-
const Ye =
|
|
632
|
-
const [
|
|
633
|
-
|
|
634
|
-
},
|
|
635
|
-
|
|
631
|
+
var n = xr();
|
|
632
|
+
const Ye = vr(null), Sr = ({ children: f }) => {
|
|
633
|
+
const [k, g] = J(!0), [w, P] = J(null), N = () => {
|
|
634
|
+
g((b) => !b), P(null);
|
|
635
|
+
}, I = (b) => {
|
|
636
|
+
P((p) => p === b ? null : b);
|
|
636
637
|
};
|
|
637
|
-
return /* @__PURE__ */
|
|
638
|
+
return /* @__PURE__ */ n.jsx(
|
|
638
639
|
Ye.Provider,
|
|
639
640
|
{
|
|
640
|
-
value: { isExpanded:
|
|
641
|
-
children:
|
|
641
|
+
value: { isExpanded: k, toggleSidebar: N, openSubmenu: w, toggleSubmenu: I },
|
|
642
|
+
children: f
|
|
642
643
|
}
|
|
643
644
|
);
|
|
644
|
-
},
|
|
645
|
-
const
|
|
646
|
-
if (!
|
|
647
|
-
return
|
|
648
|
-
}, yr = "
|
|
645
|
+
}, Er = () => {
|
|
646
|
+
const f = hr(Ye);
|
|
647
|
+
if (!f) throw new Error("useSidebar must be used inside <SidebarProvider>");
|
|
648
|
+
return f;
|
|
649
|
+
}, yr = (f) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...f }, /* @__PURE__ */ m.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M20.3334 7C20.3334 7.55228 20.0072 8 19.6048 8L4.06194 8C3.65957 8 3.33337 7.55228 3.33337 7C3.33337 6.44772 3.65957 6 4.06194 6L19.6048 6C20.0072 6 20.3334 6.44772 20.3334 7Z", fill: "white" }), /* @__PURE__ */ m.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M20.3334 12C20.3334 12.5523 20.0072 13 19.6048 13L4.06194 13C3.65957 13 3.33337 12.5523 3.33337 12C3.33337 11.4477 3.65957 11 4.06194 11L19.6048 11C20.0072 11 20.3334 11.4477 20.3334 12Z", fill: "white" }), /* @__PURE__ */ m.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M20.3334 17C20.3334 17.5523 20.0072 18 19.6048 18L4.06194 18C3.65957 18 3.33337 17.5523 3.33337 17C3.33337 16.4477 3.65957 16 4.06194 16L19.6048 16C20.0072 16 20.3334 16.4477 20.3334 17Z", fill: "white" })), Rr = (f) => /* @__PURE__ */ m.createElement("svg", { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...f }, /* @__PURE__ */ m.createElement("circle", { cx: 12, cy: 12, r: 10 }), /* @__PURE__ */ m.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }), /* @__PURE__ */ m.createElement("line", { x1: 12, y1: 17, x2: 12.01, y2: 17 })), jr = (f) => /* @__PURE__ */ m.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", ...f }, /* @__PURE__ */ m.createElement("rect", { width: 32, height: 32, rx: 8, fill: "currentColor", opacity: 0.15 }), /* @__PURE__ */ m.createElement("circle", { cx: 16, cy: 16, r: 6, fill: "currentColor" })), _r = (f) => /* @__PURE__ */ m.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", ...f }, /* @__PURE__ */ m.createElement("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ m.createElement("line", { x1: 5, y1: 12, x2: 19, y2: 12 })), Cr = (f) => /* @__PURE__ */ m.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...f }, /* @__PURE__ */ m.createElement("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }), /* @__PURE__ */ m.createElement("polyline", { points: "16 17 21 12 16 7" }), /* @__PURE__ */ m.createElement("line", { x1: 21, y1: 12, x2: 9, y2: 12 })), Tr = ({ config: f }) => {
|
|
649
650
|
const {
|
|
650
|
-
navItems:
|
|
651
|
-
user:
|
|
652
|
-
createButtonRoles:
|
|
653
|
-
createButtonLabel:
|
|
654
|
-
createButtonPath:
|
|
655
|
-
brandName:
|
|
656
|
-
brandSubtitle:
|
|
657
|
-
logo:
|
|
658
|
-
helpLabel:
|
|
659
|
-
helpIcon:
|
|
660
|
-
onSignOut:
|
|
661
|
-
onNavigate:
|
|
662
|
-
className:
|
|
663
|
-
} =
|
|
664
|
-
|
|
665
|
-
const
|
|
666
|
-
return window.addEventListener("popstate",
|
|
651
|
+
navItems: k,
|
|
652
|
+
user: g,
|
|
653
|
+
createButtonRoles: w,
|
|
654
|
+
createButtonLabel: P = "Create",
|
|
655
|
+
createButtonPath: N,
|
|
656
|
+
brandName: I = "Amphenol",
|
|
657
|
+
brandSubtitle: b = "COMMUNICATION SOLUTIONS",
|
|
658
|
+
logo: p,
|
|
659
|
+
helpLabel: D = "Help Center",
|
|
660
|
+
helpIcon: x,
|
|
661
|
+
onSignOut: _,
|
|
662
|
+
onNavigate: T,
|
|
663
|
+
className: B = ""
|
|
664
|
+
} = f, { isExpanded: E, toggleSidebar: te, openSubmenu: Y, toggleSubmenu: F } = Er(), [v, de] = J(window.location.pathname), [pe, ne] = J(!1), [ve, ae] = J(!1), [ie, M] = J(null);
|
|
665
|
+
mr(() => {
|
|
666
|
+
const h = () => de(window.location.pathname);
|
|
667
|
+
return window.addEventListener("popstate", h), () => window.removeEventListener("popstate", h);
|
|
667
668
|
}, []);
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
},
|
|
671
|
-
|
|
672
|
-
},
|
|
673
|
-
(
|
|
674
|
-
const
|
|
675
|
-
return
|
|
669
|
+
const H = (h, S) => {
|
|
670
|
+
h.preventDefault(), S && (T ? T(S) : (window.history.pushState({}, "", S), window.dispatchEvent(new PopStateEvent("popstate"))));
|
|
671
|
+
}, oe = () => g.email ? g.email.split("@")[0] : "User", q = () => g.email ? g.email.charAt(0).toUpperCase() : "U", O = () => {
|
|
672
|
+
_ ? _() : window.location.href = "/c/portal/logout";
|
|
673
|
+
}, A = !w || w.includes(g.role), $ = k.reduce(
|
|
674
|
+
(h, S) => {
|
|
675
|
+
const L = S.section || "GENERAL";
|
|
676
|
+
return h[L] || (h[L] = []), h[L].push(S), h;
|
|
676
677
|
},
|
|
677
678
|
{}
|
|
678
679
|
);
|
|
679
|
-
return /* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ n.jsxs(
|
|
680
681
|
"aside",
|
|
681
682
|
{
|
|
682
683
|
style: { backgroundColor: "#0f172a" },
|
|
683
|
-
className: `rdr-sidebar ${
|
|
684
|
+
className: `rdr-sidebar ${E ? "expanded" : "collapsed"} ${B}`,
|
|
684
685
|
children: [
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ n.jsxs("div", { className: "sidebar-header ", style: { paddingTop: "10px" }, children: [
|
|
687
|
+
/* @__PURE__ */ n.jsxs("div", { className: "logo-section", onClick: te, children: [
|
|
688
|
+
/* @__PURE__ */ n.jsx(
|
|
688
689
|
"span",
|
|
689
690
|
{
|
|
690
691
|
className: "logo-icon ",
|
|
691
692
|
style: { color: "var(--sidebar-accent)", marginTop: "15px" },
|
|
692
|
-
children:
|
|
693
|
+
children: p ?? /* @__PURE__ */ n.jsx(jr, {})
|
|
693
694
|
}
|
|
694
695
|
),
|
|
695
|
-
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
|
|
696
|
+
E && /* @__PURE__ */ n.jsxs("div", { className: "brand-text", children: [
|
|
697
|
+
/* @__PURE__ */ n.jsx("h2", { children: I }),
|
|
698
|
+
b && /* @__PURE__ */ n.jsx("span", { children: b })
|
|
698
699
|
] })
|
|
699
700
|
] }),
|
|
700
|
-
|
|
701
|
+
E && /* @__PURE__ */ n.jsx(
|
|
701
702
|
"button",
|
|
702
703
|
{
|
|
703
704
|
className: "menu-toggle",
|
|
704
|
-
onClick:
|
|
705
|
+
onClick: te,
|
|
705
706
|
"aria-label": "Collapse sidebar",
|
|
706
|
-
children: /* @__PURE__ */
|
|
707
|
+
children: /* @__PURE__ */ n.jsx(yr, {})
|
|
707
708
|
}
|
|
708
709
|
)
|
|
709
710
|
] }),
|
|
710
|
-
|
|
711
|
+
A && N && /* @__PURE__ */ n.jsx("div", { className: "sidebar-actions", children: /* @__PURE__ */ n.jsxs(
|
|
711
712
|
"button",
|
|
712
713
|
{
|
|
713
714
|
className: "sidebar-create-btn",
|
|
@@ -716,9 +717,9 @@ const Ye = pr(null), wr = ({ children: w }) => {
|
|
|
716
717
|
alignItems: "center",
|
|
717
718
|
justifyContent: "center",
|
|
718
719
|
gap: "8px",
|
|
719
|
-
width:
|
|
720
|
+
width: E ? "100%" : "44px",
|
|
720
721
|
height: "44px",
|
|
721
|
-
padding:
|
|
722
|
+
padding: E ? "0 16px" : "0",
|
|
722
723
|
borderRadius: "10px",
|
|
723
724
|
border: "none",
|
|
724
725
|
outline: "none",
|
|
@@ -727,84 +728,84 @@ const Ye = pr(null), wr = ({ children: w }) => {
|
|
|
727
728
|
fontSize: "14px",
|
|
728
729
|
fontWeight: 600,
|
|
729
730
|
color: "#fff",
|
|
730
|
-
background:
|
|
731
|
+
background: ve ? "#149B6E" : "#18B885",
|
|
731
732
|
transition: "background-color 0.2s ease"
|
|
732
733
|
},
|
|
733
|
-
onMouseEnter: () =>
|
|
734
|
-
onMouseLeave: () =>
|
|
735
|
-
onClick: (
|
|
734
|
+
onMouseEnter: () => ae(!0),
|
|
735
|
+
onMouseLeave: () => ae(!1),
|
|
736
|
+
onClick: (h) => H(h, N),
|
|
736
737
|
children: [
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
-
|
|
738
|
+
/* @__PURE__ */ n.jsx(_r, {}),
|
|
739
|
+
E && /* @__PURE__ */ n.jsx("span", { children: P })
|
|
739
740
|
]
|
|
740
741
|
}
|
|
741
742
|
) }),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
const
|
|
744
|
-
(l) => !l.roles || l.roles.includes(
|
|
743
|
+
/* @__PURE__ */ n.jsx("div", { className: "sidebar-nav", children: Object.entries($).map(([h, S]) => {
|
|
744
|
+
const L = S.filter(
|
|
745
|
+
(l) => !l.roles || l.roles.includes(g.role)
|
|
745
746
|
);
|
|
746
|
-
return
|
|
747
|
+
return L.length ? /* @__PURE__ */ n.jsxs(
|
|
747
748
|
"div",
|
|
748
749
|
{
|
|
749
750
|
className: "nav-section",
|
|
750
751
|
style: { listStyleType: "none" },
|
|
751
752
|
children: [
|
|
752
|
-
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
-
var
|
|
755
|
-
const
|
|
756
|
-
(
|
|
757
|
-
),
|
|
758
|
-
return /* @__PURE__ */
|
|
753
|
+
E && /* @__PURE__ */ n.jsx("h4", { className: "section-title", children: h }),
|
|
754
|
+
/* @__PURE__ */ n.jsx("ul", { className: "nav-items", children: L.map((l) => {
|
|
755
|
+
var z, X;
|
|
756
|
+
const K = (z = l.subItems) == null ? void 0 : z.some(
|
|
757
|
+
(y) => y.path && v.includes(y.path)
|
|
758
|
+
), G = l.path ? v === l.path : !1;
|
|
759
|
+
return /* @__PURE__ */ n.jsx("li", { children: (X = l.subItems) != null && X.length ? (
|
|
759
760
|
/* Parent with submenu */
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
762
|
+
/* @__PURE__ */ n.jsxs(
|
|
762
763
|
"div",
|
|
763
764
|
{
|
|
764
|
-
className: `nav-item ${Y === l.name ||
|
|
765
|
+
className: `nav-item ${Y === l.name || K ? "active" : ""}`,
|
|
765
766
|
"data-label": l.name,
|
|
766
|
-
onClick: () =>
|
|
767
|
-
onMouseEnter: () =>
|
|
768
|
-
onMouseLeave: () =>
|
|
769
|
-
style: Y === l.name ||
|
|
767
|
+
onClick: () => F(l.name),
|
|
768
|
+
onMouseEnter: () => M(l.name),
|
|
769
|
+
onMouseLeave: () => M(null),
|
|
770
|
+
style: Y === l.name || K || ie === l.name ? {
|
|
770
771
|
backgroundColor: "#10B981",
|
|
771
772
|
border: "1px solid #10B981",
|
|
772
773
|
borderRadius: "8px"
|
|
773
774
|
} : {},
|
|
774
775
|
children: [
|
|
775
|
-
/* @__PURE__ */
|
|
776
|
-
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ n.jsx("span", { className: "nav-icon", children: l.icon }),
|
|
777
|
+
E && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
778
|
+
/* @__PURE__ */ n.jsx("span", { className: "nav-text", children: l.name }),
|
|
779
|
+
/* @__PURE__ */ n.jsx("span", { className: "submenu-arrow", children: Y === l.name ? "−" : "+" })
|
|
779
780
|
] })
|
|
780
781
|
]
|
|
781
782
|
}
|
|
782
783
|
),
|
|
783
|
-
|
|
784
|
-
const
|
|
785
|
-
return /* @__PURE__ */
|
|
784
|
+
E && Y === l.name && /* @__PURE__ */ n.jsx("ul", { className: "submenu", children: l.subItems.map((y) => {
|
|
785
|
+
const he = y.path ? v === y.path : !1;
|
|
786
|
+
return /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs(
|
|
786
787
|
"a",
|
|
787
788
|
{
|
|
788
|
-
href:
|
|
789
|
-
onClick: (
|
|
790
|
-
className: `submenu-item ${
|
|
789
|
+
href: y.path || "/",
|
|
790
|
+
onClick: (Z) => H(Z, y.path),
|
|
791
|
+
className: `submenu-item ${he ? "active-sub" : ""}`,
|
|
791
792
|
children: [
|
|
792
|
-
|
|
793
|
-
/* @__PURE__ */
|
|
793
|
+
y.icon && /* @__PURE__ */ n.jsx("span", { className: "submenu-icon", children: y.icon }),
|
|
794
|
+
/* @__PURE__ */ n.jsx("span", { children: y.name })
|
|
794
795
|
]
|
|
795
796
|
}
|
|
796
|
-
) },
|
|
797
|
+
) }, y.name);
|
|
797
798
|
}) })
|
|
798
799
|
] })
|
|
799
800
|
) : (
|
|
800
801
|
/* Leaf nav item */
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
+
/* @__PURE__ */ n.jsxs(
|
|
802
803
|
"a",
|
|
803
804
|
{
|
|
804
805
|
href: l.path || "/",
|
|
805
806
|
"data-label": l.name,
|
|
806
|
-
onClick: (
|
|
807
|
-
style:
|
|
807
|
+
onClick: (y) => H(y, l.path),
|
|
808
|
+
style: G || ie === l.name ? {
|
|
808
809
|
backgroundColor: "#10B981",
|
|
809
810
|
border: "none",
|
|
810
811
|
// kill any CSS border including left strip
|
|
@@ -815,12 +816,12 @@ const Ye = pr(null), wr = ({ children: w }) => {
|
|
|
815
816
|
border: "none"
|
|
816
817
|
// also reset on non-active to remove the strip
|
|
817
818
|
},
|
|
818
|
-
onMouseEnter: () =>
|
|
819
|
-
onMouseLeave: () =>
|
|
820
|
-
className: `nav-item ${
|
|
819
|
+
onMouseEnter: () => M(l.name),
|
|
820
|
+
onMouseLeave: () => M(null),
|
|
821
|
+
className: `nav-item ${G ? "active" : ""}`,
|
|
821
822
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
|
|
823
|
+
/* @__PURE__ */ n.jsx("span", { className: "nav-icon", children: l.icon }),
|
|
824
|
+
E && /* @__PURE__ */ n.jsx("span", { className: "nav-text", children: l.name })
|
|
824
825
|
]
|
|
825
826
|
}
|
|
826
827
|
)
|
|
@@ -828,31 +829,31 @@ const Ye = pr(null), wr = ({ children: w }) => {
|
|
|
828
829
|
}) })
|
|
829
830
|
]
|
|
830
831
|
},
|
|
831
|
-
|
|
832
|
+
h
|
|
832
833
|
) : null;
|
|
833
834
|
}) }),
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
|
|
835
|
+
/* @__PURE__ */ n.jsxs("div", { className: "sidebar-footer", children: [
|
|
836
|
+
/* @__PURE__ */ n.jsxs("div", { className: "footer-link", "data-label": D, children: [
|
|
837
|
+
/* @__PURE__ */ n.jsx("span", { children: x ?? /* @__PURE__ */ n.jsx(Rr, {}) }),
|
|
838
|
+
E && /* @__PURE__ */ n.jsx("span", { children: D })
|
|
838
839
|
] }),
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ n.jsxs("div", { className: "user-profile-wrapper", children: [
|
|
841
|
+
/* @__PURE__ */ n.jsxs(
|
|
841
842
|
"div",
|
|
842
843
|
{
|
|
843
844
|
className: "user-profile",
|
|
844
|
-
onClick: () => ne((
|
|
845
|
+
onClick: () => ne((h) => !h),
|
|
845
846
|
children: [
|
|
846
|
-
/* @__PURE__ */
|
|
847
|
-
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ n.jsx("div", { className: "avatar", children: q() }),
|
|
848
|
+
E && /* @__PURE__ */ n.jsxs("div", { className: "user-info", children: [
|
|
849
|
+
/* @__PURE__ */ n.jsx("div", { className: "user-name", children: oe() }),
|
|
850
|
+
/* @__PURE__ */ n.jsx("div", { className: "user-role", children: g.roleName })
|
|
850
851
|
] })
|
|
851
852
|
]
|
|
852
853
|
}
|
|
853
854
|
),
|
|
854
|
-
|
|
855
|
-
/* @__PURE__ */
|
|
855
|
+
pe && /* @__PURE__ */ n.jsxs("div", { className: "profile-popup", children: [
|
|
856
|
+
/* @__PURE__ */ n.jsx(
|
|
856
857
|
"button",
|
|
857
858
|
{
|
|
858
859
|
className: "popup-close",
|
|
@@ -861,18 +862,18 @@ const Ye = pr(null), wr = ({ children: w }) => {
|
|
|
861
862
|
children: "✕"
|
|
862
863
|
}
|
|
863
864
|
),
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
-
/* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ n.jsxs("div", { className: "popup-header", children: [
|
|
866
|
+
/* @__PURE__ */ n.jsx("div", { className: "popup-avatar", children: q() }),
|
|
867
|
+
/* @__PURE__ */ n.jsxs("div", { className: "popup-user-details", children: [
|
|
868
|
+
/* @__PURE__ */ n.jsx("div", { className: "popup-name", children: oe() }),
|
|
869
|
+
/* @__PURE__ */ n.jsx("div", { className: "popup-role", children: g.roleName }),
|
|
870
|
+
/* @__PURE__ */ n.jsx("div", { className: "popup-email", children: g.email })
|
|
870
871
|
] })
|
|
871
872
|
] }),
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ n.jsx("div", { className: "popup-divider" }),
|
|
874
|
+
/* @__PURE__ */ n.jsxs("button", { className: "signout-btn", onClick: O, children: [
|
|
875
|
+
/* @__PURE__ */ n.jsx(Cr, {}),
|
|
876
|
+
/* @__PURE__ */ n.jsx("span", { children: "Sign Out" })
|
|
876
877
|
] })
|
|
877
878
|
] })
|
|
878
879
|
] })
|
|
@@ -882,7 +883,7 @@ const Ye = pr(null), wr = ({ children: w }) => {
|
|
|
882
883
|
);
|
|
883
884
|
};
|
|
884
885
|
export {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
886
|
+
Tr as SideNavbar,
|
|
887
|
+
Sr as SidebarProvider,
|
|
888
|
+
Er as useSidebar
|
|
888
889
|
};
|