@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.
@@ -1,5 +1,6 @@
1
- import We, { createContext as pr, useState as V, useContext as vr, useEffect as hr } from "react";
2
- var ue = { exports: {} }, Q = {};
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 Fe;
13
- function mr() {
14
- if (Fe) return Q;
15
- Fe = 1;
16
- var w = We, T = Symbol.for("react.element"), h = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, k = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function N(m, d, I) {
18
- var g, j = {}, S = null, W = null;
19
- I !== void 0 && (S = "" + I), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (W = d.ref);
20
- for (g in d) _.call(d, g) && !P.hasOwnProperty(g) && (j[g] = d[g]);
21
- if (m && m.defaultProps) for (g in d = m.defaultProps, d) j[g] === void 0 && (j[g] = d[g]);
22
- return { $$typeof: T, type: m, key: S, ref: W, props: j, _owner: k.current };
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 Q.Fragment = h, Q.jsx = N, Q.jsxs = N, Q;
25
+ return ee.Fragment = g, ee.jsx = I, ee.jsxs = I, ee;
25
26
  }
26
- var ee = {};
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 gr() {
38
+ function br() {
38
39
  return $e || ($e = 1, process.env.NODE_ENV !== "production" && (function() {
39
- var w = We, T = Symbol.for("react.element"), h = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), N = Symbol.for("react.provider"), m = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), b = Symbol.iterator, re = "@@iterator";
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 = b && e[b] || e[re];
44
+ var r = E && e[E] || e[te];
44
45
  return typeof r == "function" ? r : null;
45
46
  }
46
- var L = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function p(e) {
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, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
50
- n[a - 1] = arguments[a];
51
- fe("error", e, n);
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 fe(e, r, n) {
55
+ function de(e, r, t) {
55
56
  {
56
- var a = L.ReactDebugCurrentFrame, s = a.getStackAddendum();
57
- s !== "" && (r += "%s", n = n.concat([s]));
58
- var c = n.map(function(o) {
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 de = !1, ne = !1, pe = !1, te = !1, ae = !1, F;
65
- F = Symbol.for("react.module.reference");
66
- function J(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === _ || e === P || ae || e === k || e === I || e === g || te || e === W || de || ne || pe || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === j || e.$$typeof === N || e.$$typeof === m || e.$$typeof === d || // This needs to include all possible module reference object
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 === F || e.getModuleId !== void 0));
72
+ e.$$typeof === M || e.getModuleId !== void 0));
72
73
  }
73
- function ie(e, r, n) {
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 !== "" ? n + "(" + s + ")" : n;
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" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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 h:
94
+ case g:
94
95
  return "Portal";
95
- case P:
96
+ case N:
96
97
  return "Profiler";
97
- case k:
98
+ case P:
98
99
  return "StrictMode";
99
- case I:
100
+ case D:
100
101
  return "Suspense";
101
- case g:
102
+ case x:
102
103
  return "SuspenseList";
103
104
  }
104
105
  if (typeof e == "object")
105
106
  switch (e.$$typeof) {
106
- case m:
107
+ case b:
107
108
  var r = e;
108
109
  return q(r) + ".Consumer";
109
- case N:
110
- var n = e;
111
- return q(n._context) + ".Provider";
112
- case d:
113
- return ie(e, e.render, "ForwardRef");
114
- case j:
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 S: {
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 D = Object.assign, $ = 0, v, C, A, l, H, K, G;
129
- function z() {
129
+ var A = Object.assign, $ = 0, h, S, L, l, K, G, z;
130
+ function X() {
130
131
  }
131
- z.__reactDisabledLog = !0;
132
- function x() {
132
+ X.__reactDisabledLog = !0;
133
+ function y() {
133
134
  {
134
135
  if ($ === 0) {
135
- v = console.log, C = console.info, A = console.warn, l = console.error, H = console.group, K = console.groupCollapsed, G = console.groupEnd;
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: z,
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 ve() {
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: D({}, e, {
165
- value: v
165
+ log: A({}, e, {
166
+ value: h
166
167
  }),
167
- info: D({}, e, {
168
- value: C
168
+ info: A({}, e, {
169
+ value: S
169
170
  }),
170
- warn: D({}, e, {
171
- value: A
171
+ warn: A({}, e, {
172
+ value: L
172
173
  }),
173
- error: D({}, e, {
174
+ error: A({}, e, {
174
175
  value: l
175
176
  }),
176
- group: D({}, e, {
177
- value: H
178
- }),
179
- groupCollapsed: D({}, e, {
177
+ group: A({}, e, {
180
178
  value: K
181
179
  }),
182
- groupEnd: D({}, e, {
180
+ groupCollapsed: A({}, e, {
183
181
  value: G
182
+ }),
183
+ groupEnd: A({}, e, {
184
+ value: z
184
185
  })
185
186
  });
186
187
  }
187
- $ < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ $ < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
189
  }
189
190
  }
190
- var X = L.ReactCurrentDispatcher, he;
191
- function oe(e, r, n) {
191
+ var Z = F.ReactCurrentDispatcher, me;
192
+ function se(e, r, t) {
192
193
  {
193
- if (he === void 0)
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
- he = a && a[1] || "";
199
+ me = a && a[1] || "";
199
200
  }
200
201
  return `
201
- ` + he + e;
202
+ ` + me + e;
202
203
  }
203
204
  }
204
- var me = !1, se;
205
+ var ge = !1, le;
205
206
  {
206
- var Be = typeof WeakMap == "function" ? WeakMap : Map;
207
- se = new Be();
207
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
208
+ le = new Ue();
208
209
  }
209
210
  function je(e, r) {
210
- if (!e || me)
211
+ if (!e || ge)
211
212
  return "";
212
213
  {
213
- var n = se.get(e);
214
- if (n !== void 0)
215
- return n;
214
+ var t = le.get(e);
215
+ if (t !== void 0)
216
+ return t;
216
217
  }
217
218
  var a;
218
- me = !0;
219
+ ge = !0;
219
220
  var s = Error.prepareStackTrace;
220
221
  Error.prepareStackTrace = void 0;
221
222
  var c;
222
- c = X.current, X.current = null, x();
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 (E) {
236
- a = E;
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 (E) {
243
- a = E;
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 (E) {
251
- a = E;
251
+ } catch (j) {
252
+ a = j;
252
253
  }
253
254
  e();
254
255
  }
255
- } catch (E) {
256
- if (E && a && typeof E.stack == "string") {
257
- for (var i = E.stack.split(`
258
- `), y = a.stack.split(`
259
- `), u = i.length - 1, f = y.length - 1; u >= 1 && f >= 0 && i[u] !== y[f]; )
260
- f--;
261
- for (; u >= 1 && f >= 0; u--, f--)
262
- if (i[u] !== y[f]) {
263
- if (u !== 1 || f !== 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--, f--, f < 0 || i[u] !== y[f]) {
266
- var R = `
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 && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, R), R;
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 && f >= 0);
271
+ while (u >= 1 && d >= 0);
271
272
  break;
272
273
  }
273
274
  }
274
275
  } finally {
275
- me = !1, X.current = c, ve(), Error.prepareStackTrace = s;
276
+ ge = !1, Z.current = c, he(), Error.prepareStackTrace = s;
276
277
  }
277
- var U = e ? e.displayName || e.name : "", M = U ? oe(U) : "";
278
- return typeof e == "function" && se.set(e, M), M;
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 Ue(e, r, n) {
281
+ function Ve(e, r, t) {
281
282
  return je(e, !1);
282
283
  }
283
- function Ve(e) {
284
+ function Je(e) {
284
285
  var r = e.prototype;
285
286
  return !!(r && r.isReactComponent);
286
287
  }
287
- function le(e, r, n) {
288
+ function ce(e, r, t) {
288
289
  if (e == null)
289
290
  return "";
290
291
  if (typeof e == "function")
291
- return je(e, Ve(e));
292
+ return je(e, Je(e));
292
293
  if (typeof e == "string")
293
- return oe(e);
294
+ return se(e);
294
295
  switch (e) {
295
- case I:
296
- return oe("Suspense");
297
- case g:
298
- return oe("SuspenseList");
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 d:
303
- return Ue(e.render);
304
- case j:
305
- return le(e.type, r, n);
306
- case S: {
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 le(c(s), r, n);
310
+ return ce(c(s), r, t);
310
311
  } catch {
311
312
  }
312
313
  }
313
314
  }
314
315
  return "";
315
316
  }
316
- var Z = Object.prototype.hasOwnProperty, Re = {}, _e = L.ReactDebugCurrentFrame;
317
- function ce(e) {
317
+ var Q = Object.prototype.hasOwnProperty, _e = {}, Ce = F.ReactDebugCurrentFrame;
318
+ function ue(e) {
318
319
  if (e) {
319
- var r = e._owner, n = le(e.type, e._source, r ? r.type : null);
320
- _e.setExtraStackFrame(n);
320
+ var r = e._owner, t = ce(e.type, e._source, r ? r.type : null);
321
+ Ce.setExtraStackFrame(t);
321
322
  } else
322
- _e.setExtraStackFrame(null);
323
+ Ce.setExtraStackFrame(null);
323
324
  }
324
- function Je(e, r, n, a, s) {
325
+ function He(e, r, t, a, s) {
325
326
  {
326
- var c = Function.call.bind(Z);
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 y = Error((a || "React class") + ": " + n + " 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`.");
333
- throw y.name = "Invariant Violation", y;
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, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
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) && (ce(s), p("%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", n, o, typeof i), ce(null)), i instanceof Error && !(i.message in Re) && (Re[i.message] = !0, ce(s), p("Failed %s type: %s", n, i.message), ce(null));
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 ge(e) {
345
+ function be(e) {
345
346
  return qe(e);
346
347
  }
347
- function He(e) {
348
+ function Ke(e) {
348
349
  {
349
- var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
- return n;
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 Ke(e) {
354
+ function Ge(e) {
354
355
  try {
355
- return Ce(e), !1;
356
+ return we(e), !1;
356
357
  } catch {
357
358
  return !0;
358
359
  }
359
360
  }
360
- function Ce(e) {
361
+ function we(e) {
361
362
  return "" + e;
362
363
  }
363
- function we(e) {
364
- if (Ke(e))
365
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Ce(e);
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 Se = L.ReactCurrentOwner, Ge = {
368
+ var Te = F.ReactCurrentOwner, ze = {
368
369
  key: !0,
369
370
  ref: !0,
370
371
  __self: !0,
371
372
  __source: !0
372
- }, Oe, Te;
373
- function ze(e) {
374
- if (Z.call(e, "ref")) {
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 Xe(e) {
382
- if (Z.call(e, "key")) {
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 n = function() {
395
- Oe || (Oe = !0, p("%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));
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
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
- get: n,
398
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
399
+ get: t,
399
400
  configurable: !0
400
401
  });
401
402
  }
402
403
  }
403
- function er(e, r) {
404
+ function rr(e, r) {
404
405
  {
405
- var n = function() {
406
- Te || (Te = !0, p("%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));
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
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
- get: n,
409
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
410
+ get: t,
410
411
  configurable: !0
411
412
  });
412
413
  }
413
414
  }
414
- var rr = function(e, r, n, a, s, c, o) {
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: T,
418
+ $$typeof: k,
418
419
  // Built-in properties that belong on the element
419
420
  type: e,
420
421
  key: r,
421
- ref: n,
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, n, a, s) {
444
+ function nr(e, r, t, a, s) {
444
445
  {
445
- var c, o = {}, i = null, y = null;
446
- n !== void 0 && (we(n), i = "" + n), Xe(r) && (we(r.key), i = "" + r.key), ze(r) && (y = r.ref, Ze(r, s));
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
- Z.call(r, c) && !Ge.hasOwnProperty(c) && (o[c] = r[c]);
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 || y) {
455
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- i && Qe(o, f), y && er(o, f);
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 rr(e, i, y, s, a, Se.current, o);
459
+ return tr(e, i, R, s, a, Te.current, o);
459
460
  }
460
461
  }
461
- var be = L.ReactCurrentOwner, ke = L.ReactDebugCurrentFrame;
462
- function B(e) {
462
+ var xe = F.ReactCurrentOwner, Pe = F.ReactDebugCurrentFrame;
463
+ function U(e) {
463
464
  if (e) {
464
- var r = e._owner, n = le(e.type, e._source, r ? r.type : null);
465
- ke.setExtraStackFrame(n);
465
+ var r = e._owner, t = ce(e.type, e._source, r ? r.type : null);
466
+ Pe.setExtraStackFrame(t);
466
467
  } else
467
- ke.setExtraStackFrame(null);
468
+ Pe.setExtraStackFrame(null);
468
469
  }
469
- var xe;
470
- xe = !1;
470
+ var Ee;
471
+ Ee = !1;
471
472
  function ye(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === T;
473
+ return typeof e == "object" && e !== null && e.$$typeof === k;
473
474
  }
474
- function Pe() {
475
+ function Ne() {
475
476
  {
476
- if (be.current) {
477
- var e = O(be.current.type);
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 tr(e) {
487
+ function ar(e) {
487
488
  return "";
488
489
  }
489
- var Ne = {};
490
- function ar(e) {
490
+ var Ie = {};
491
+ function ir(e) {
491
492
  {
492
- var r = Pe();
493
+ var r = Ne();
493
494
  if (!r) {
494
- var n = typeof e == "string" ? e : e.displayName || e.name;
495
- n && (r = `
495
+ var t = typeof e == "string" ? e : e.displayName || e.name;
496
+ t && (r = `
496
497
 
497
- Check the top-level render call using <` + n + ">.");
498
+ Check the top-level render call using <` + t + ">.");
498
499
  }
499
500
  return r;
500
501
  }
501
502
  }
502
- function Ie(e, r) {
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 n = ar(r);
508
- if (Ne[n])
508
+ var t = ir(r);
509
+ if (Ie[t])
509
510
  return;
510
- Ne[n] = !0;
511
+ Ie[t] = !0;
511
512
  var a = "";
512
- e && e._owner && e._owner !== be.current && (a = " It was passed a child from " + O(e._owner.type) + "."), B(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), B(null);
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 De(e, r) {
516
+ function Ae(e, r) {
516
517
  {
517
518
  if (typeof e != "object")
518
519
  return;
519
- if (ge(e))
520
- for (var n = 0; n < e.length; n++) {
521
- var a = e[n];
522
- ye(a) && Ie(a, r);
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) && Ie(o.value, r);
531
+ ye(o.value) && De(o.value, r);
531
532
  }
532
533
  }
533
534
  }
534
- function ir(e) {
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 n;
540
+ var t;
540
541
  if (typeof r == "function")
541
- n = r.propTypes;
542
- else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
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 === j))
545
- n = r.propTypes;
545
+ r.$$typeof === _))
546
+ t = r.propTypes;
546
547
  else
547
548
  return;
548
- if (n) {
549
+ if (t) {
549
550
  var a = O(r);
550
- Je(n, e.props, "prop", a, e);
551
- } else if (r.PropTypes !== void 0 && !xe) {
552
- xe = !0;
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
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
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 && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 or(e) {
560
+ function sr(e) {
560
561
  {
561
- for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
562
- var a = r[n];
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
- B(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), B(null);
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 && (B(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
569
+ e.ref !== null && (U(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
569
570
  }
570
571
  }
571
- var Ae = {};
572
- function Le(e, r, n, a, s, c) {
572
+ var Le = {};
573
+ function Fe(e, r, t, a, s, c) {
573
574
  {
574
- var o = J(e);
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 y = tr();
579
- y ? i += y : i += Pe();
579
+ var R = ar();
580
+ R ? i += R : i += Ne();
580
581
  var u;
581
- e === null ? u = "null" : ge(e) ? u = "array" : e !== void 0 && e.$$typeof === T ? (u = "<" + (O(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, p("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
+ 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 f = nr(e, r, n, s, c);
584
- if (f == null)
585
- return f;
584
+ var d = nr(e, r, t, s, c);
585
+ if (d == null)
586
+ return d;
586
587
  if (o) {
587
- var R = r.children;
588
- if (R !== void 0)
588
+ var C = r.children;
589
+ if (C !== void 0)
589
590
  if (a)
590
- if (ge(R)) {
591
- for (var U = 0; U < R.length; U++)
592
- De(R[U], e);
593
- Object.freeze && Object.freeze(R);
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
- p("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
+ 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
- De(R, e);
598
+ Ae(C, e);
598
599
  }
599
- if (Z.call(r, "key")) {
600
- var M = O(e), E = Object.keys(r).filter(function(dr) {
601
- return dr !== "key";
602
- }), Ee = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Ae[M + Ee]) {
604
- var fr = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
605
- p(`A props object containing a "key" prop is being spread into JSX:
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} />`, Ee, M, fr, M), Ae[M + Ee] = !0;
611
+ <%s key={someKey} {...props} />`, Re, W, dr, W), Le[W + Re] = !0;
611
612
  }
612
613
  }
613
- return e === _ ? or(f) : ir(f), f;
614
+ return e === w ? sr(d) : or(d), d;
614
615
  }
615
616
  }
616
- function sr(e, r, n) {
617
- return Le(e, r, n, !0);
617
+ function lr(e, r, t) {
618
+ return Fe(e, r, t, !0);
618
619
  }
619
- function lr(e, r, n) {
620
- return Le(e, r, n, !1);
620
+ function cr(e, r, t) {
621
+ return Fe(e, r, t, !1);
621
622
  }
622
- var cr = lr, ur = sr;
623
- ee.Fragment = _, ee.jsx = cr, ee.jsxs = ur;
624
- })()), ee;
623
+ var ur = cr, fr = lr;
624
+ re.Fragment = w, re.jsx = ur, re.jsxs = fr;
625
+ })()), re;
625
626
  }
626
- var Me;
627
- function br() {
628
- return Me || (Me = 1, process.env.NODE_ENV === "production" ? ue.exports = mr() : ue.exports = gr()), ue.exports;
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 t = br();
631
- const Ye = pr(null), wr = ({ children: w }) => {
632
- const [T, h] = V(!0), [_, k] = V(null), P = () => {
633
- h((m) => !m), k(null);
634
- }, N = (m) => {
635
- k((d) => d === m ? null : m);
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__ */ t.jsx(
638
+ return /* @__PURE__ */ n.jsx(
638
639
  Ye.Provider,
639
640
  {
640
- value: { isExpanded: T, toggleSidebar: P, openSubmenu: _, toggleSubmenu: N },
641
- children: w
641
+ value: { isExpanded: k, toggleSidebar: N, openSubmenu: w, toggleSubmenu: I },
642
+ children: f
642
643
  }
643
644
  );
644
- }, xr = () => {
645
- const w = vr(Ye);
646
- if (!w) throw new Error("useSidebar must be used inside <SidebarProvider>");
647
- return w;
648
- }, yr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.3334%207C20.3334%207.55228%2020.0072%208%2019.6048%208L4.06194%208C3.65957%208%203.33337%207.55228%203.33337%207C3.33337%206.44772%203.65957%206%204.06194%206L19.6048%206C20.0072%206%2020.3334%206.44772%2020.3334%207Z'%20fill='white'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.3334%2012C20.3334%2012.5523%2020.0072%2013%2019.6048%2013L4.06194%2013C3.65957%2013%203.33337%2012.5523%203.33337%2012C3.33337%2011.4477%203.65957%2011%204.06194%2011L19.6048%2011C20.0072%2011%2020.3334%2011.4477%2020.3334%2012Z'%20fill='white'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.3334%2017C20.3334%2017.5523%2020.0072%2018%2019.6048%2018L4.06194%2018C3.65957%2018%203.33337%2017.5523%203.33337%2017C3.33337%2016.4477%203.65957%2016%204.06194%2016L19.6048%2016C20.0072%2016%2020.3334%2016.4477%2020.3334%2017Z'%20fill='white'%20/%3e%3c/svg%3e", Er = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20strokeWidth='2'%20strokeLinecap='round'%20strokeLinejoin='round'%20%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20/%3e%3cpath%20d='M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203'%20/%3e%3cline%20x1='12'%20y1='17'%20x2='12.01'%20y2='17'%20/%3e%3c/svg%3e", jr = "data:image/svg+xml,", Rr = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20strokeWidth='2.5'%20strokeLinecap='round'%20strokeLinejoin='round'%20%3e%3cline%20x1='12'%20y1='5'%20x2='12'%20y2='19'%20/%3e%3cline%20x1='5'%20y1='12'%20x2='19'%20y2='12'%20/%3e%3c/svg%3e", _r = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20strokeWidth='2'%20strokeLinecap='round'%20strokeLinejoin='round'%20%3e%3cpath%20d='M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4'%20/%3e%3cpolyline%20points='16%2017%2021%2012%2016%207'%20/%3e%3cline%20x1='21'%20y1='12'%20x2='9'%20y2='12'%20/%3e%3c/svg%3e", Sr = ({ config: w }) => {
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: T,
651
- user: h,
652
- createButtonRoles: _,
653
- createButtonLabel: k = "Create",
654
- createButtonPath: P,
655
- brandName: N = "Amphenol",
656
- brandSubtitle: m = "COMMUNICATION SOLUTIONS",
657
- logo: d,
658
- helpLabel: I = "Help Center",
659
- helpIcon: g,
660
- onSignOut: j,
661
- onNavigate: S,
662
- className: W = ""
663
- } = w, { isExpanded: b, toggleSidebar: re, openSubmenu: Y, toggleSubmenu: L } = xr(), [p, fe] = V(window.location.pathname), [de, ne] = V(!1), [pe, te] = V(!1), [ae, F] = V(null);
664
- hr(() => {
665
- const v = () => fe(window.location.pathname);
666
- return window.addEventListener("popstate", v), () => window.removeEventListener("popstate", v);
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 J = (v, C) => {
669
- v.preventDefault(), C && (S ? S(C) : (window.history.pushState({}, "", C), window.dispatchEvent(new PopStateEvent("popstate"))));
670
- }, ie = () => h.email ? h.email.split("@")[0] : "User", q = () => h.email ? h.email.charAt(0).toUpperCase() : "U", O = () => {
671
- j ? j() : window.location.href = "/c/portal/logout";
672
- }, D = !_ || _.includes(h.role), $ = T.reduce(
673
- (v, C) => {
674
- const A = C.section || "GENERAL";
675
- return v[A] || (v[A] = []), v[A].push(C), v;
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__ */ t.jsxs(
680
+ return /* @__PURE__ */ n.jsxs(
680
681
  "aside",
681
682
  {
682
683
  style: { backgroundColor: "#0f172a" },
683
- className: `rdr-sidebar ${b ? "expanded" : "collapsed"} ${W}`,
684
+ className: `rdr-sidebar ${E ? "expanded" : "collapsed"} ${B}`,
684
685
  children: [
685
- /* @__PURE__ */ t.jsxs("div", { className: "sidebar-header ", style: { paddingTop: "10px" }, children: [
686
- /* @__PURE__ */ t.jsxs("div", { className: "logo-section", onClick: re, children: [
687
- /* @__PURE__ */ t.jsx(
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: d ?? /* @__PURE__ */ t.jsx(jr, {})
693
+ children: p ?? /* @__PURE__ */ n.jsx(jr, {})
693
694
  }
694
695
  ),
695
- b && /* @__PURE__ */ t.jsxs("div", { className: "brand-text", children: [
696
- /* @__PURE__ */ t.jsx("h2", { children: N }),
697
- m && /* @__PURE__ */ t.jsx("span", { children: m })
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
- b && /* @__PURE__ */ t.jsx(
701
+ E && /* @__PURE__ */ n.jsx(
701
702
  "button",
702
703
  {
703
704
  className: "menu-toggle",
704
- onClick: re,
705
+ onClick: te,
705
706
  "aria-label": "Collapse sidebar",
706
- children: /* @__PURE__ */ t.jsx(yr, {})
707
+ children: /* @__PURE__ */ n.jsx(yr, {})
707
708
  }
708
709
  )
709
710
  ] }),
710
- D && P && /* @__PURE__ */ t.jsx("div", { className: "sidebar-actions", children: /* @__PURE__ */ t.jsxs(
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: b ? "100%" : "44px",
720
+ width: E ? "100%" : "44px",
720
721
  height: "44px",
721
- padding: b ? "0 16px" : "0",
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: pe ? "#149B6E" : "#18B885",
731
+ background: ve ? "#149B6E" : "#18B885",
731
732
  transition: "background-color 0.2s ease"
732
733
  },
733
- onMouseEnter: () => te(!0),
734
- onMouseLeave: () => te(!1),
735
- onClick: (v) => J(v, P),
734
+ onMouseEnter: () => ae(!0),
735
+ onMouseLeave: () => ae(!1),
736
+ onClick: (h) => H(h, N),
736
737
  children: [
737
- /* @__PURE__ */ t.jsx(Rr, {}),
738
- b && /* @__PURE__ */ t.jsx("span", { children: k })
738
+ /* @__PURE__ */ n.jsx(_r, {}),
739
+ E && /* @__PURE__ */ n.jsx("span", { children: P })
739
740
  ]
740
741
  }
741
742
  ) }),
742
- /* @__PURE__ */ t.jsx("div", { className: "sidebar-nav", children: Object.entries($).map(([v, C]) => {
743
- const A = C.filter(
744
- (l) => !l.roles || l.roles.includes(h.role)
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 A.length ? /* @__PURE__ */ t.jsxs(
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
- b && /* @__PURE__ */ t.jsx("h4", { className: "section-title", children: v }),
753
- /* @__PURE__ */ t.jsx("ul", { className: "nav-items", children: A.map((l) => {
754
- var G, z;
755
- const H = (G = l.subItems) == null ? void 0 : G.some(
756
- (x) => x.path && p.includes(x.path)
757
- ), K = l.path ? p === l.path : !1;
758
- return /* @__PURE__ */ t.jsx("li", { children: (z = l.subItems) != null && z.length ? (
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__ */ t.jsxs(t.Fragment, { children: [
761
- /* @__PURE__ */ t.jsxs(
761
+ /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
762
+ /* @__PURE__ */ n.jsxs(
762
763
  "div",
763
764
  {
764
- className: `nav-item ${Y === l.name || H ? "active" : ""}`,
765
+ className: `nav-item ${Y === l.name || K ? "active" : ""}`,
765
766
  "data-label": l.name,
766
- onClick: () => L(l.name),
767
- onMouseEnter: () => F(l.name),
768
- onMouseLeave: () => F(null),
769
- style: Y === l.name || H || ae === 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__ */ t.jsx("span", { className: "nav-icon", children: l.icon }),
776
- b && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
777
- /* @__PURE__ */ t.jsx("span", { className: "nav-text", children: l.name }),
778
- /* @__PURE__ */ t.jsx("span", { className: "submenu-arrow", children: Y === l.name ? "−" : "+" })
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
- b && Y === l.name && /* @__PURE__ */ t.jsx("ul", { className: "submenu", children: l.subItems.map((x) => {
784
- const ve = x.path ? p === x.path : !1;
785
- return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
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: x.path || "/",
789
- onClick: (X) => J(X, x.path),
790
- className: `submenu-item ${ve ? "active-sub" : ""}`,
789
+ href: y.path || "/",
790
+ onClick: (Z) => H(Z, y.path),
791
+ className: `submenu-item ${he ? "active-sub" : ""}`,
791
792
  children: [
792
- x.icon && /* @__PURE__ */ t.jsx("span", { className: "submenu-icon", children: x.icon }),
793
- /* @__PURE__ */ t.jsx("span", { children: x.name })
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
- ) }, x.name);
797
+ ) }, y.name);
797
798
  }) })
798
799
  ] })
799
800
  ) : (
800
801
  /* Leaf nav item */
801
- /* @__PURE__ */ t.jsxs(
802
+ /* @__PURE__ */ n.jsxs(
802
803
  "a",
803
804
  {
804
805
  href: l.path || "/",
805
806
  "data-label": l.name,
806
- onClick: (x) => J(x, l.path),
807
- style: K || ae === l.name ? {
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: () => F(l.name),
819
- onMouseLeave: () => F(null),
820
- className: `nav-item ${K ? "active" : ""}`,
819
+ onMouseEnter: () => M(l.name),
820
+ onMouseLeave: () => M(null),
821
+ className: `nav-item ${G ? "active" : ""}`,
821
822
  children: [
822
- /* @__PURE__ */ t.jsx("span", { className: "nav-icon", children: l.icon }),
823
- b && /* @__PURE__ */ t.jsx("span", { className: "nav-text", children: l.name })
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
- v
832
+ h
832
833
  ) : null;
833
834
  }) }),
834
- /* @__PURE__ */ t.jsxs("div", { className: "sidebar-footer", children: [
835
- /* @__PURE__ */ t.jsxs("div", { className: "footer-link", "data-label": I, children: [
836
- /* @__PURE__ */ t.jsx("span", { children: g ?? /* @__PURE__ */ t.jsx(Er, {}) }),
837
- b && /* @__PURE__ */ t.jsx("span", { children: I })
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__ */ t.jsxs("div", { className: "user-profile-wrapper", children: [
840
- /* @__PURE__ */ t.jsxs(
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((v) => !v),
845
+ onClick: () => ne((h) => !h),
845
846
  children: [
846
- /* @__PURE__ */ t.jsx("div", { className: "avatar", children: q() }),
847
- b && /* @__PURE__ */ t.jsxs("div", { className: "user-info", children: [
848
- /* @__PURE__ */ t.jsx("div", { className: "user-name", children: ie() }),
849
- /* @__PURE__ */ t.jsx("div", { className: "user-role", children: h.roleName })
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
- de && /* @__PURE__ */ t.jsxs("div", { className: "profile-popup", children: [
855
- /* @__PURE__ */ t.jsx(
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__ */ t.jsxs("div", { className: "popup-header", children: [
865
- /* @__PURE__ */ t.jsx("div", { className: "popup-avatar", children: q() }),
866
- /* @__PURE__ */ t.jsxs("div", { className: "popup-user-details", children: [
867
- /* @__PURE__ */ t.jsx("div", { className: "popup-name", children: ie() }),
868
- /* @__PURE__ */ t.jsx("div", { className: "popup-role", children: h.roleName }),
869
- /* @__PURE__ */ t.jsx("div", { className: "popup-email", children: h.email })
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__ */ t.jsx("div", { className: "popup-divider" }),
873
- /* @__PURE__ */ t.jsxs("button", { className: "signout-btn", onClick: O, children: [
874
- /* @__PURE__ */ t.jsx(_r, {}),
875
- /* @__PURE__ */ t.jsx("span", { children: "Sign Out" })
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
- Sr as SideNavbar,
886
- wr as SidebarProvider,
887
- xr as useSidebar
886
+ Tr as SideNavbar,
887
+ Sr as SidebarProvider,
888
+ Er as useSidebar
888
889
  };