@hudoro/admin
Advanced tools
Comparing version 0.0.1-beta.18 to 0.0.1-beta.19
@@ -1,3 +0,3 @@ | ||
import Oe, { useMemo as dr, useCallback as pr, useSyncExternalStore as vr, useContext as Z, useState as ee, useRef as gr, useEffect as hr, createContext as mr } from "react"; | ||
var X = { exports: {} }, W = {}; | ||
import Pe, { useMemo as dr, useCallback as pr, useSyncExternalStore as vr, useContext as ee, useState as V, useEffect as gr, createContext as hr } from "react"; | ||
var Z = { exports: {} }, W = {}; | ||
/** | ||
@@ -13,18 +13,18 @@ * @license React | ||
var Ce; | ||
function xr() { | ||
function mr() { | ||
if (Ce) | ||
return W; | ||
Ce = 1; | ||
var s = Oe, d = Symbol.for("react.element"), p = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function v(E, g, C) { | ||
var R, j = {}, S = null, M = null; | ||
C !== void 0 && (S = "" + C), g.key !== void 0 && (S = "" + g.key), g.ref !== void 0 && (M = g.ref); | ||
for (R in g) | ||
o.call(g, R) && !x.hasOwnProperty(R) && (j[R] = g[R]); | ||
if (E && E.defaultProps) | ||
for (R in g = E.defaultProps, g) | ||
j[R] === void 0 && (j[R] = g[R]); | ||
return { $$typeof: d, type: E, key: S, ref: M, props: j, _owner: c.current }; | ||
var s = Pe, d = Symbol.for("react.element"), p = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function g(y, v, j) { | ||
var R, w = {}, S = null, M = null; | ||
j !== void 0 && (S = "" + j), v.key !== void 0 && (S = "" + v.key), v.ref !== void 0 && (M = v.ref); | ||
for (R in v) | ||
o.call(v, R) && !x.hasOwnProperty(R) && (w[R] = v[R]); | ||
if (y && y.defaultProps) | ||
for (R in v = y.defaultProps, v) | ||
w[R] === void 0 && (w[R] = v[R]); | ||
return { $$typeof: d, type: y, key: S, ref: M, props: w, _owner: c.current }; | ||
} | ||
return W.Fragment = p, W.jsx = v, W.jsxs = v, W; | ||
return W.Fragment = p, W.jsx = g, W.jsxs = g, W; | ||
} | ||
@@ -42,24 +42,24 @@ var D = {}; | ||
var Se; | ||
function yr() { | ||
function xr() { | ||
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() { | ||
var s = Oe, d = Symbol.for("react.element"), p = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), E = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), ne = Symbol.iterator, Fe = "@@iterator"; | ||
var s = Pe, d = Symbol.for("react.element"), p = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), y = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), te = Symbol.iterator, Fe = "@@iterator"; | ||
function ke(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = ne && e[ne] || e[Fe]; | ||
var r = te && e[te] || e[Fe]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var P = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function y(e) { | ||
var O = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function b(e) { | ||
{ | ||
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++) | ||
n[t - 1] = arguments[t]; | ||
Ie("error", e, n); | ||
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) | ||
t[n - 1] = arguments[n]; | ||
Ie("error", e, t); | ||
} | ||
} | ||
function Ie(e, r, n) { | ||
function Ie(e, r, t) { | ||
{ | ||
var t = P.ReactDebugCurrentFrame, u = t.getStackAddendum(); | ||
u !== "" && (r += "%s", n = n.concat([u])); | ||
var f = n.map(function(l) { | ||
var n = O.ReactDebugCurrentFrame, u = n.getStackAddendum(); | ||
u !== "" && (r += "%s", t = t.concat([u])); | ||
var f = t.map(function(l) { | ||
return String(l); | ||
@@ -70,17 +70,17 @@ }); | ||
} | ||
var Ae = !1, We = !1, De = !1, Me = !1, Be = !1, te; | ||
te = Symbol.for("react.module.reference"); | ||
var Ae = !1, We = !1, De = !1, Me = !1, Be = !1, ne; | ||
ne = Symbol.for("react.module.reference"); | ||
function Le(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === o || e === x || Be || e === c || e === C || e === R || Me || e === M || Ae || We || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === j || e.$$typeof === v || e.$$typeof === E || e.$$typeof === g || // This needs to include all possible module reference object | ||
return !!(typeof e == "string" || typeof e == "function" || e === o || e === x || Be || e === c || e === j || e === R || Me || e === M || Ae || We || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === w || e.$$typeof === g || e.$$typeof === y || e.$$typeof === v || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
e.$$typeof === te || e.getModuleId !== void 0)); | ||
e.$$typeof === ne || e.getModuleId !== void 0)); | ||
} | ||
function $e(e, r, n) { | ||
var t = e.displayName; | ||
if (t) | ||
return t; | ||
function $e(e, r, t) { | ||
var n = e.displayName; | ||
if (n) | ||
return n; | ||
var u = r.displayName || r.name || ""; | ||
return u !== "" ? n + "(" + u + ")" : n; | ||
return u !== "" ? t + "(" + u + ")" : t; | ||
} | ||
@@ -90,6 +90,6 @@ function oe(e) { | ||
} | ||
function w(e) { | ||
function T(e) { | ||
if (e == null) | ||
return null; | ||
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
return e.displayName || e.name || null; | ||
@@ -107,3 +107,3 @@ if (typeof e == "string") | ||
return "StrictMode"; | ||
case C: | ||
case j: | ||
return "Suspense"; | ||
@@ -115,17 +115,17 @@ case R: | ||
switch (e.$$typeof) { | ||
case E: | ||
case y: | ||
var r = e; | ||
return oe(r) + ".Consumer"; | ||
case g: | ||
var t = e; | ||
return oe(t._context) + ".Provider"; | ||
case v: | ||
var n = e; | ||
return oe(n._context) + ".Provider"; | ||
case g: | ||
return $e(e, e.render, "ForwardRef"); | ||
case j: | ||
var t = e.displayName || null; | ||
return t !== null ? t : w(e.type) || "Memo"; | ||
case w: | ||
var n = e.displayName || null; | ||
return n !== null ? n : T(e.type) || "Memo"; | ||
case S: { | ||
var u = e, f = u._payload, l = u._init; | ||
try { | ||
return w(l(f)); | ||
return T(l(f)); | ||
} catch { | ||
@@ -138,3 +138,3 @@ return null; | ||
} | ||
var O = Object.assign, I = 0, ae, ie, se, le, ue, ce, fe; | ||
var P = Object.assign, I = 0, ae, ie, se, le, ue, ce, fe; | ||
function de() { | ||
@@ -175,21 +175,21 @@ } | ||
Object.defineProperties(console, { | ||
log: O({}, e, { | ||
log: P({}, e, { | ||
value: ae | ||
}), | ||
info: O({}, e, { | ||
info: P({}, e, { | ||
value: ie | ||
}), | ||
warn: O({}, e, { | ||
warn: P({}, e, { | ||
value: se | ||
}), | ||
error: O({}, e, { | ||
error: P({}, e, { | ||
value: le | ||
}), | ||
group: O({}, e, { | ||
group: P({}, e, { | ||
value: ue | ||
}), | ||
groupCollapsed: O({}, e, { | ||
groupCollapsed: P({}, e, { | ||
value: ce | ||
}), | ||
groupEnd: O({}, e, { | ||
groupEnd: P({}, e, { | ||
value: fe | ||
@@ -199,20 +199,20 @@ }) | ||
} | ||
I < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
I < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var U = P.ReactCurrentDispatcher, H; | ||
function B(e, r, n) { | ||
var H = O.ReactCurrentDispatcher, q; | ||
function B(e, r, t) { | ||
{ | ||
if (H === void 0) | ||
if (q === void 0) | ||
try { | ||
throw Error(); | ||
} catch (u) { | ||
var t = u.stack.trim().match(/\n( *(at )?)/); | ||
H = t && t[1] || ""; | ||
var n = u.stack.trim().match(/\n( *(at )?)/); | ||
q = n && n[1] || ""; | ||
} | ||
return ` | ||
` + H + e; | ||
` + q + e; | ||
} | ||
} | ||
var q = !1, L; | ||
var G = !1, L; | ||
{ | ||
@@ -223,15 +223,15 @@ var Ve = typeof WeakMap == "function" ? WeakMap : Map; | ||
function pe(e, r) { | ||
if (!e || q) | ||
if (!e || G) | ||
return ""; | ||
{ | ||
var n = L.get(e); | ||
if (n !== void 0) | ||
return n; | ||
var t = L.get(e); | ||
if (t !== void 0) | ||
return t; | ||
} | ||
var t; | ||
q = !0; | ||
var n; | ||
G = !0; | ||
var u = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var f; | ||
f = U.current, U.current = null, Ye(); | ||
f = H.current, H.current = null, Ye(); | ||
try { | ||
@@ -249,4 +249,4 @@ if (r) { | ||
Reflect.construct(l, []); | ||
} catch (T) { | ||
t = T; | ||
} catch (C) { | ||
n = C; | ||
} | ||
@@ -257,4 +257,4 @@ Reflect.construct(e, [], l); | ||
l.call(); | ||
} catch (T) { | ||
t = T; | ||
} catch (C) { | ||
n = C; | ||
} | ||
@@ -266,18 +266,18 @@ e.call(l.prototype); | ||
throw Error(); | ||
} catch (T) { | ||
t = T; | ||
} catch (C) { | ||
n = C; | ||
} | ||
e(); | ||
} | ||
} catch (T) { | ||
if (T && t && typeof T.stack == "string") { | ||
for (var a = T.stack.split(` | ||
`), b = t.stack.split(` | ||
`), h = a.length - 1, m = b.length - 1; h >= 1 && m >= 0 && a[h] !== b[m]; ) | ||
} catch (C) { | ||
if (C && n && typeof C.stack == "string") { | ||
for (var a = C.stack.split(` | ||
`), E = n.stack.split(` | ||
`), h = a.length - 1, m = E.length - 1; h >= 1 && m >= 0 && a[h] !== E[m]; ) | ||
m--; | ||
for (; h >= 1 && m >= 0; h--, m--) | ||
if (a[h] !== b[m]) { | ||
if (a[h] !== E[m]) { | ||
if (h !== 1 || m !== 1) | ||
do | ||
if (h--, m--, m < 0 || a[h] !== b[m]) { | ||
if (h--, m--, m < 0 || a[h] !== E[m]) { | ||
var _ = ` | ||
@@ -292,3 +292,3 @@ ` + a[h].replace(" at new ", " at "); | ||
} finally { | ||
q = !1, U.current = f, Ne(), Error.prepareStackTrace = u; | ||
G = !1, H.current = f, Ne(), Error.prepareStackTrace = u; | ||
} | ||
@@ -298,3 +298,3 @@ var k = e ? e.displayName || e.name : "", Te = k ? B(k) : ""; | ||
} | ||
function Ue(e, r, n) { | ||
function Ue(e, r, t) { | ||
return pe(e, !1); | ||
@@ -306,3 +306,3 @@ } | ||
} | ||
function $(e, r, n) { | ||
function $(e, r, t) { | ||
if (e == null) | ||
@@ -315,3 +315,3 @@ return ""; | ||
switch (e) { | ||
case C: | ||
case j: | ||
return B("Suspense"); | ||
@@ -323,10 +323,10 @@ case R: | ||
switch (e.$$typeof) { | ||
case g: | ||
case v: | ||
return Ue(e.render); | ||
case j: | ||
return $(e.type, r, n); | ||
case w: | ||
return $(e.type, r, t); | ||
case S: { | ||
var t = e, u = t._payload, f = t._init; | ||
var n = e, u = n._payload, f = n._init; | ||
try { | ||
return $(f(u), r, n); | ||
return $(f(u), r, t); | ||
} catch { | ||
@@ -338,11 +338,11 @@ } | ||
} | ||
var Y = Object.prototype.hasOwnProperty, ve = {}, ge = P.ReactDebugCurrentFrame; | ||
var Y = Object.prototype.hasOwnProperty, ve = {}, ge = O.ReactDebugCurrentFrame; | ||
function N(e) { | ||
if (e) { | ||
var r = e._owner, n = $(e.type, e._source, r ? r.type : null); | ||
ge.setExtraStackFrame(n); | ||
var r = e._owner, t = $(e.type, e._source, r ? r.type : null); | ||
ge.setExtraStackFrame(t); | ||
} else | ||
ge.setExtraStackFrame(null); | ||
} | ||
function qe(e, r, n, t, u) { | ||
function qe(e, r, t, n, u) { | ||
{ | ||
@@ -355,10 +355,10 @@ var f = Function.call.bind(Y); | ||
if (typeof e[l] != "function") { | ||
var b = Error((t || "React class") + ": " + n + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw b.name = "Invariant Violation", b; | ||
var E = Error((n || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw E.name = "Invariant Violation", E; | ||
} | ||
a = e[l](r, l, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
a = e[l](r, l, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (h) { | ||
a = h; | ||
} | ||
a && !(a instanceof Error) && (N(u), y("%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).", t || "React class", n, l, typeof a), N(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, N(u), y("Failed %s type: %s", n, a.message), N(null)); | ||
a && !(a instanceof Error) && (N(u), b("%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).", n || "React class", t, l, typeof a), N(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, N(u), b("Failed %s type: %s", t, a.message), N(null)); | ||
} | ||
@@ -368,3 +368,3 @@ } | ||
var Ge = Array.isArray; | ||
function G(e) { | ||
function J(e) { | ||
return Ge(e); | ||
@@ -374,4 +374,4 @@ } | ||
{ | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return n; | ||
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
return t; | ||
} | ||
@@ -391,5 +391,5 @@ } | ||
if (ze(e)) | ||
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), he(e); | ||
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), he(e); | ||
} | ||
var A = P.ReactCurrentOwner, Ke = { | ||
var A = O.ReactCurrentOwner, Ke = { | ||
key: !0, | ||
@@ -399,4 +399,4 @@ ref: !0, | ||
__source: !0 | ||
}, xe, ye, J; | ||
J = {}; | ||
}, xe, ye, z; | ||
z = {}; | ||
function Qe(e) { | ||
@@ -420,4 +420,4 @@ if (Y.call(e, "ref")) { | ||
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) { | ||
var n = w(A.current.type); | ||
J[n] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(A.current.type), e.ref), J[n] = !0); | ||
var t = T(A.current.type); | ||
z[t] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', T(A.current.type), e.ref), z[t] = !0); | ||
} | ||
@@ -427,7 +427,7 @@ } | ||
{ | ||
var n = function() { | ||
xe || (xe = !0, y("%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)); | ||
var t = function() { | ||
xe || (xe = !0, b("%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)); | ||
}; | ||
n.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: n, | ||
t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
get: t, | ||
configurable: !0 | ||
@@ -439,7 +439,7 @@ }); | ||
{ | ||
var n = function() { | ||
ye || (ye = !0, y("%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)); | ||
var t = function() { | ||
ye || (ye = !0, b("%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)); | ||
}; | ||
n.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: n, | ||
t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
get: t, | ||
configurable: !0 | ||
@@ -449,3 +449,3 @@ }); | ||
} | ||
var nr = function(e, r, n, t, u, f, l) { | ||
var tr = function(e, r, t, n, u, f, l) { | ||
var a = { | ||
@@ -457,3 +457,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
key: r, | ||
ref: n, | ||
ref: t, | ||
props: l, | ||
@@ -472,3 +472,3 @@ // Record the component responsible for creating this element. | ||
writable: !1, | ||
value: t | ||
value: n | ||
}), Object.defineProperty(a, "_source", { | ||
@@ -481,6 +481,6 @@ configurable: !1, | ||
}; | ||
function tr(e, r, n, t, u) { | ||
function nr(e, r, t, n, u) { | ||
{ | ||
var f, l = {}, a = null, b = null; | ||
n !== void 0 && (me(n), a = "" + n), Xe(r) && (me(r.key), a = "" + r.key), Qe(r) && (b = r.ref, Ze(r, u)); | ||
var f, l = {}, a = null, E = null; | ||
t !== void 0 && (me(t), a = "" + t), Xe(r) && (me(r.key), a = "" + r.key), Qe(r) && (E = r.ref, Ze(r, u)); | ||
for (f in r) | ||
@@ -493,20 +493,20 @@ Y.call(r, f) && !Ke.hasOwnProperty(f) && (l[f] = r[f]); | ||
} | ||
if (a || b) { | ||
if (a || E) { | ||
var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
a && er(l, m), b && rr(l, m); | ||
a && er(l, m), E && rr(l, m); | ||
} | ||
return nr(e, a, b, u, t, A.current, l); | ||
return tr(e, a, E, u, n, A.current, l); | ||
} | ||
} | ||
var z = P.ReactCurrentOwner, be = P.ReactDebugCurrentFrame; | ||
var K = O.ReactCurrentOwner, be = O.ReactDebugCurrentFrame; | ||
function F(e) { | ||
if (e) { | ||
var r = e._owner, n = $(e.type, e._source, r ? r.type : null); | ||
be.setExtraStackFrame(n); | ||
var r = e._owner, t = $(e.type, e._source, r ? r.type : null); | ||
be.setExtraStackFrame(t); | ||
} else | ||
be.setExtraStackFrame(null); | ||
} | ||
var K; | ||
K = !1; | ||
function Q(e) { | ||
var Q; | ||
Q = !1; | ||
function X(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === d; | ||
@@ -516,4 +516,4 @@ } | ||
{ | ||
if (z.current) { | ||
var e = w(z.current.type); | ||
if (K.current) { | ||
var e = T(K.current.type); | ||
if (e) | ||
@@ -530,6 +530,6 @@ return ` | ||
if (e !== void 0) { | ||
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber; | ||
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber; | ||
return ` | ||
Check your code at ` + r + ":" + n + "."; | ||
Check your code at ` + r + ":" + t + "."; | ||
} | ||
@@ -544,6 +544,6 @@ return ""; | ||
if (!r) { | ||
var n = typeof e == "string" ? e : e.displayName || e.name; | ||
n && (r = ` | ||
var t = typeof e == "string" ? e : e.displayName || e.name; | ||
t && (r = ` | ||
Check the top-level render call using <` + n + ">."); | ||
Check the top-level render call using <` + t + ">."); | ||
} | ||
@@ -558,8 +558,8 @@ return r; | ||
e._store.validated = !0; | ||
var n = ar(r); | ||
if (Re[n]) | ||
var t = ar(r); | ||
if (Re[t]) | ||
return; | ||
Re[n] = !0; | ||
var t = ""; | ||
e && e._owner && e._owner !== z.current && (t = " It was passed a child from " + w(e._owner.type) + "."), F(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), F(null); | ||
Re[t] = !0; | ||
var n = ""; | ||
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + T(e._owner.type) + "."), F(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null); | ||
} | ||
@@ -571,8 +571,8 @@ } | ||
return; | ||
if (G(e)) | ||
for (var n = 0; n < e.length; n++) { | ||
var t = e[n]; | ||
Q(t) && _e(t, r); | ||
if (J(e)) | ||
for (var t = 0; t < e.length; t++) { | ||
var n = e[t]; | ||
X(n) && _e(n, r); | ||
} | ||
else if (Q(e)) | ||
else if (X(e)) | ||
e._store && (e._store.validated = !0); | ||
@@ -583,3 +583,3 @@ else if (e) { | ||
for (var f = u.call(e), l; !(l = f.next()).done; ) | ||
Q(l.value) && _e(l.value, r); | ||
X(l.value) && _e(l.value, r); | ||
} | ||
@@ -593,20 +593,20 @@ } | ||
return; | ||
var n; | ||
var t; | ||
if (typeof r == "function") | ||
n = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here. | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === j)) | ||
n = r.propTypes; | ||
r.$$typeof === w)) | ||
t = r.propTypes; | ||
else | ||
return; | ||
if (n) { | ||
var t = w(r); | ||
qe(n, e.props, "prop", t, e); | ||
} else if (r.PropTypes !== void 0 && !K) { | ||
K = !0; | ||
var u = w(r); | ||
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown"); | ||
if (t) { | ||
var n = T(r); | ||
qe(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !Q) { | ||
Q = !0; | ||
var u = T(r); | ||
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
@@ -616,13 +616,13 @@ } | ||
{ | ||
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) { | ||
var t = r[n]; | ||
if (t !== "children" && t !== "key") { | ||
F(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), F(null); | ||
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
var n = r[t]; | ||
if (n !== "children" && n !== "key") { | ||
F(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && (F(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), F(null)); | ||
e.ref !== null && (F(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), F(null)); | ||
} | ||
} | ||
function we(e, r, n, t, u, f) { | ||
function we(e, r, t, n, u, f) { | ||
{ | ||
@@ -633,8 +633,8 @@ var l = Le(e); | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); | ||
var b = or(u); | ||
b ? a += b : a += Ee(); | ||
var E = or(u); | ||
E ? a += E : a += Ee(); | ||
var h; | ||
e === null ? h = "null" : G(e) ? h = "array" : e !== void 0 && e.$$typeof === d ? (h = "<" + (w(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, a); | ||
e === null ? h = "null" : J(e) ? h = "array" : e !== void 0 && e.$$typeof === d ? (h = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, a); | ||
} | ||
var m = tr(e, r, n, u, f); | ||
var m = nr(e, r, t, u, f); | ||
if (m == null) | ||
@@ -645,4 +645,4 @@ return m; | ||
if (_ !== void 0) | ||
if (t) | ||
if (G(_)) { | ||
if (n) | ||
if (J(_)) { | ||
for (var k = 0; k < _.length; k++) | ||
@@ -652,3 +652,3 @@ je(_[k], e); | ||
} else | ||
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
else | ||
@@ -660,7 +660,7 @@ je(_, e); | ||
} | ||
function lr(e, r, n) { | ||
return we(e, r, n, !0); | ||
function lr(e, r, t) { | ||
return we(e, r, t, !0); | ||
} | ||
function ur(e, r, n) { | ||
return we(e, r, n, !1); | ||
function ur(e, r, t) { | ||
return we(e, r, t, !1); | ||
} | ||
@@ -671,14 +671,14 @@ var cr = ur, fr = lr; | ||
} | ||
process.env.NODE_ENV === "production" ? X.exports = xr() : X.exports = yr(); | ||
var i = X.exports, Pe = /* @__PURE__ */ ((s) => (s.sm = "40rem", s.md = "48rem", s.lg = "64rem", s.xl = "80rem", s["2xl"] = "96rem", s))(Pe || {}); | ||
function br(s) { | ||
const d = Pe[s]; | ||
process.env.NODE_ENV === "production" ? Z.exports = mr() : Z.exports = xr(); | ||
var i = Z.exports, Oe = /* @__PURE__ */ ((s) => (s.sm = "40rem", s.md = "48rem", s.lg = "64rem", s.xl = "80rem", s["2xl"] = "96rem", s))(Oe || {}); | ||
function yr(s) { | ||
const d = Oe[s]; | ||
return d ? `(min-width: ${d})` : s; | ||
} | ||
function re(s) { | ||
const d = dr(() => br(s), [s]), p = pr( | ||
const d = dr(() => yr(s), [s]), p = pr( | ||
(x) => { | ||
const v = window.matchMedia(d); | ||
return v.addEventListener("change", x), () => { | ||
v.removeEventListener("change", x); | ||
const g = window.matchMedia(d); | ||
return g.addEventListener("change", x), () => { | ||
g.removeEventListener("change", x); | ||
}; | ||
@@ -692,4 +692,4 @@ }, | ||
} | ||
const Er = ({ handleToggleSidebar: s, logo: d, userData: p }) => { | ||
const o = Z(V), c = re("md"), [x, v] = ee(!1); | ||
const br = ({ handleToggleSidebar: s, logo: d, userData: p }) => { | ||
const o = ee(U), c = re("md"), [x, g] = V(!1); | ||
return /* @__PURE__ */ i.jsxs( | ||
@@ -747,4 +747,4 @@ o.Box, | ||
cursor: "pointer", | ||
onMouseEnter: () => v(!0), | ||
onMouseLeave: () => v(!1), | ||
onMouseEnter: () => g(!0), | ||
onMouseLeave: () => g(!1), | ||
children: [ | ||
@@ -836,6 +836,6 @@ /* @__PURE__ */ i.jsx(o.Icon, { name: "Bell", width: 24 }), | ||
); | ||
}, Rr = ({ item: s, showSideBar: d, path: p }) => { | ||
const o = re("md"), [c, x] = ee(!1), { Box: v, Icon: E, Text: g, NavLink: C } = Z(V); | ||
return console.log("path", p), console.log("item.url", s.url), /* @__PURE__ */ i.jsx(C, { to: s.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ i.jsxs( | ||
v, | ||
}, Er = ({ item: s, showSideBar: d, path: p }) => { | ||
const o = re("md"), [c, x] = V(!1), { Box: g, Icon: y, Text: v, NavLink: j } = ee(U); | ||
return console.log("path", p), console.log("item.url", s.url), /* @__PURE__ */ i.jsx(j, { to: s.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ i.jsxs( | ||
g, | ||
{ | ||
@@ -860,4 +860,4 @@ height: "height-12", | ||
children: [ | ||
/* @__PURE__ */ i.jsx(v, { children: /* @__PURE__ */ i.jsx( | ||
E, | ||
/* @__PURE__ */ i.jsx(g, { children: /* @__PURE__ */ i.jsx( | ||
y, | ||
{ | ||
@@ -871,3 +871,3 @@ name: s.icon, | ||
o && d ? /* @__PURE__ */ i.jsx( | ||
g, | ||
v, | ||
{ | ||
@@ -884,3 +884,3 @@ fontFamily: "Poppins", | ||
o ? null : /* @__PURE__ */ i.jsx( | ||
g, | ||
v, | ||
{ | ||
@@ -897,3 +897,3 @@ fontFamily: "Poppins", | ||
/* @__PURE__ */ i.jsx( | ||
v, | ||
g, | ||
{ | ||
@@ -915,3 +915,3 @@ paddingInline: "md", | ||
}, | ||
children: /* @__PURE__ */ i.jsx(g, { fontFamily: "Poppins", fontWeight: "medium", fontSize: "sm", children: s.name }) | ||
children: /* @__PURE__ */ i.jsx(v, { fontFamily: "Poppins", fontWeight: "medium", fontSize: "sm", children: s.name }) | ||
} | ||
@@ -922,11 +922,11 @@ ) | ||
) }); | ||
}, _r = ({ showSideBar: s, menus: d }) => { | ||
const p = re("md"), { Box: o } = Z(V), c = gr(window.location.pathname); | ||
return hr(() => { | ||
const x = setInterval(() => { | ||
const v = window.location.pathname; | ||
v !== c.current && (console.log("current path:", v), c.current = v); | ||
}, Rr = ({ showSideBar: s, menus: d }) => { | ||
const p = re("md"), { Box: o } = ee(U), [c, x] = V(window.location.pathname); | ||
return gr(() => { | ||
const g = setInterval(() => { | ||
const y = window.location.pathname; | ||
y !== c && (console.log("current path:", y), x(y)); | ||
}, 100); | ||
return () => { | ||
clearInterval(x); | ||
clearInterval(g); | ||
}; | ||
@@ -947,3 +947,3 @@ }, []), /* @__PURE__ */ i.jsx( | ||
position: p ? "relative" : "absolute", | ||
children: d.map((x, v) => /* @__PURE__ */ i.jsx( | ||
children: d.map((g, y) => /* @__PURE__ */ i.jsx( | ||
o, | ||
@@ -955,13 +955,13 @@ { | ||
style: { | ||
borderBottom: d.length > 1 && v < d.length - 1 ? "1px solid rgba(120, 134, 127, 0.20)" : 0 | ||
borderBottom: d.length > 1 && y < d.length - 1 ? "1px solid rgba(120, 134, 127, 0.20)" : 0 | ||
}, | ||
paddingInline: "spacing-6", | ||
children: x.items.map((E, g) => /* @__PURE__ */ i.jsx( | ||
Rr, | ||
children: g.items.map((v, j) => /* @__PURE__ */ i.jsx( | ||
Er, | ||
{ | ||
path: c.current, | ||
item: E, | ||
path: c, | ||
item: v, | ||
showSideBar: s | ||
}, | ||
g | ||
j | ||
)) | ||
@@ -972,5 +972,5 @@ } | ||
); | ||
}, V = mr( | ||
}, U = hr( | ||
{} | ||
), wr = ({ | ||
), jr = ({ | ||
menus: s, | ||
@@ -982,8 +982,8 @@ logo: d, | ||
}) => { | ||
const [x, v] = ee(!1), E = () => v((g) => !g); | ||
return /* @__PURE__ */ i.jsx(V.Provider, { value: c, children: /* @__PURE__ */ i.jsxs(c.Box, { height: "height-screen", style: { minHeight: "812px" }, children: [ | ||
const [x, g] = V(!1), y = () => g((v) => !v); | ||
return /* @__PURE__ */ i.jsx(U.Provider, { value: c, children: /* @__PURE__ */ i.jsxs(c.Box, { height: "height-screen", style: { minHeight: "812px" }, children: [ | ||
/* @__PURE__ */ i.jsx( | ||
Er, | ||
br, | ||
{ | ||
handleToggleSidebar: E, | ||
handleToggleSidebar: y, | ||
logo: d, | ||
@@ -1001,3 +1001,3 @@ userData: p | ||
children: [ | ||
/* @__PURE__ */ i.jsx(_r, { menus: s, showSideBar: x }), | ||
/* @__PURE__ */ i.jsx(Rr, { menus: s, showSideBar: x }), | ||
/* @__PURE__ */ i.jsx(c.Box, { flex: "1", children: o }) | ||
@@ -1010,3 +1010,3 @@ ] | ||
export { | ||
wr as DashboardLayout | ||
jr as DashboardLayout | ||
}; |
@@ -1,2 +0,2 @@ | ||
(function(O,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(O=typeof globalThis<"u"?globalThis:O||self,x(O.Admin={},O.React))})(this,function(O,x){"use strict";var J={exports:{}},D={};/** | ||
(function(P,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],y):(P=typeof globalThis<"u"?globalThis:P||self,y(P.Admin={},P.React))})(this,function(P,y){"use strict";var J={exports:{}},D={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var te;function Pe(){if(te)return D;te=1;var s=x,d=Symbol.for("react.element"),p=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function v(R,g,S){var _,w={},P=null,Y=null;S!==void 0&&(P=""+S),g.key!==void 0&&(P=""+g.key),g.ref!==void 0&&(Y=g.ref);for(_ in g)o.call(g,_)&&!y.hasOwnProperty(_)&&(w[_]=g[_]);if(R&&R.defaultProps)for(_ in g=R.defaultProps,g)w[_]===void 0&&(w[_]=g[_]);return{$$typeof:d,type:R,key:P,ref:Y,props:w,_owner:c.current}}return D.Fragment=p,D.jsx=v,D.jsxs=v,D}var W={};/** | ||
*/var te;function Oe(){if(te)return D;te=1;var s=y,d=Symbol.for("react.element"),p=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function g(b,v,w){var _,T={},O=null,Y=null;w!==void 0&&(O=""+w),v.key!==void 0&&(O=""+v.key),v.ref!==void 0&&(Y=v.ref);for(_ in v)o.call(v,_)&&!x.hasOwnProperty(_)&&(T[_]=v[_]);if(b&&b.defaultProps)for(_ in v=b.defaultProps,v)T[_]===void 0&&(T[_]=v[_]);return{$$typeof:d,type:b,key:O,ref:Y,props:T,_owner:c.current}}return D.Fragment=p,D.jsx=g,D.jsxs=g,D}var W={};/** | ||
* @license React | ||
@@ -18,7 +18,7 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var s=x,d=Symbol.for("react.element"),p=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),R=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ae=Symbol.iterator,Me="@@iterator";function Be(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Me];return typeof r=="function"?r:null}var k=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Le("error",e,t)}}function Le(e,r,t){{var n=k.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var f=t.map(function(l){return String(l)});f.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,f)}}var Ye=!1,Ne=!1,Ve=!1,Ue=!1,He=!1,ie;ie=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===y||He||e===c||e===S||e===_||Ue||e===Y||Ye||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===w||e.$$typeof===v||e.$$typeof===R||e.$$typeof===g||e.$$typeof===ie||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function se(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case p:return"Portal";case y:return"Profiler";case c:return"StrictMode";case S:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return se(r)+".Consumer";case v:var t=e;return se(t._context)+".Provider";case g:return Je(e,e.render,"ForwardRef");case w:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case P:{var u=e,f=u._payload,l=u._init;try{return T(l(f))}catch{return null}}}return null}var F=Object.assign,M=0,le,ue,ce,fe,de,pe,ve;function ge(){}ge.__reactDisabledLog=!0;function ze(){{if(M===0){le=console.log,ue=console.info,ce=console.warn,fe=console.error,de=console.group,pe=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function Ke(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:le}),info:F({},e,{value:ue}),warn:F({},e,{value:ce}),error:F({},e,{value:fe}),group:F({},e,{value:de}),groupCollapsed:F({},e,{value:pe}),groupEnd:F({},e,{value:ve})})}M<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=k.ReactCurrentDispatcher,Q;function N(e,r,t){{if(Q===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);Q=n&&n[1]||""}return` | ||
`+Q+e}}var X=!1,V;{var Qe=typeof WeakMap=="function"?WeakMap:Map;V=new Qe}function he(e,r){if(!e||X)return"";{var t=V.get(e);if(t!==void 0)return t}var n;X=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var f;f=K.current,K.current=null,ze();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(C){n=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){n=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var a=C.stack.split(` | ||
`),E=n.stack.split(` | ||
`),h=a.length-1,m=E.length-1;h>=1&&m>=0&&a[h]!==E[m];)m--;for(;h>=1&&m>=0;h--,m--)if(a[h]!==E[m]){if(h!==1||m!==1)do if(h--,m--,m<0||a[h]!==E[m]){var j=` | ||
`+a[h].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,j),j}while(h>=1&&m>=0);break}}}finally{X=!1,K.current=f,Ke(),Error.prepareStackTrace=u}var A=e?e.displayName||e.name:"",Oe=A?N(A):"";return typeof e=="function"&&V.set(e,Oe),Oe}function Xe(e,r,t){return he(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case S:return N("Suspense");case _:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return Xe(e.render);case w:return U(e.type,r,t);case P:{var n=e,u=n._payload,f=n._init;try{return U(f(u),r,t)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,me={},ye=k.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function $e(e,r,t,n,u){{var f=Function.call.bind(H);for(var l in e)if(f(e,l)){var a=void 0;try{if(typeof e[l]!="function"){var E=Error((n||"React class")+": "+t+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}a=e[l](r,l,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(h){a=h}a&&!(a instanceof Error)&&(G(u),b("%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).",n||"React class",t,l,typeof a),G(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,G(u),b("Failed %s type: %s",t,a.message),G(null))}}}var qe=Array.isArray;function Z(e){return qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return xe(e),!1}catch{return!0}}function xe(e){return""+e}function be(e){if(rr(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),xe(e)}var B=k.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Ee,Re,$;$={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=T(B.current.type);$[t]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(B.current.type),e.ref),$[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,b("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Re||(Re=!0,b("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,n,u,f,l){var a={$$typeof:d,type:e,key:r,ref:t,props:l,_owner:f};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,u){{var f,l={},a=null,E=null;t!==void 0&&(be(t),a=""+t),or(r)&&(be(r.key),a=""+r.key),nr(r)&&(E=r.ref,ar(r,u));for(f in r)H.call(r,f)&&!tr.hasOwnProperty(f)&&(l[f]=r[f]);if(e&&e.defaultProps){var h=e.defaultProps;for(f in h)l[f]===void 0&&(l[f]=h[f])}if(a||E){var m=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(l,m),E&&sr(l,m)}return lr(e,a,E,u,n,B.current,l)}}var q=k.ReactCurrentOwner,_e=k.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function je(){{if(q.current){var e=T(q.current.type);if(e)return` | ||
*/var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var s=y,d=Symbol.for("react.element"),p=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ae=Symbol.iterator,Me="@@iterator";function Be(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Me];return typeof r=="function"?r:null}var k=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Le("error",e,t)}}function Le(e,r,t){{var n=k.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var f=t.map(function(l){return String(l)});f.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,f)}}var Ye=!1,Ne=!1,Ve=!1,Ue=!1,He=!1,ie;ie=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===x||He||e===c||e===w||e===_||Ue||e===Y||Ye||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===T||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===ie||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function se(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case p:return"Portal";case x:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return se(r)+".Consumer";case g:var t=e;return se(t._context)+".Provider";case v:return Je(e,e.render,"ForwardRef");case T:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case O:{var u=e,f=u._payload,l=u._init;try{return C(l(f))}catch{return null}}}return null}var F=Object.assign,M=0,le,ue,ce,fe,de,pe,ve;function ge(){}ge.__reactDisabledLog=!0;function ze(){{if(M===0){le=console.log,ue=console.info,ce=console.warn,fe=console.error,de=console.group,pe=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function Ke(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:le}),info:F({},e,{value:ue}),warn:F({},e,{value:ce}),error:F({},e,{value:fe}),group:F({},e,{value:de}),groupCollapsed:F({},e,{value:pe}),groupEnd:F({},e,{value:ve})})}M<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=k.ReactCurrentDispatcher,Q;function N(e,r,t){{if(Q===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);Q=n&&n[1]||""}return` | ||
`+Q+e}}var X=!1,V;{var Qe=typeof WeakMap=="function"?WeakMap:Map;V=new Qe}function he(e,r){if(!e||X)return"";{var t=V.get(e);if(t!==void 0)return t}var n;X=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var f;f=K.current,K.current=null,ze();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(S){n=S}Reflect.construct(e,[],l)}else{try{l.call()}catch(S){n=S}e.call(l.prototype)}}else{try{throw Error()}catch(S){n=S}e()}}catch(S){if(S&&n&&typeof S.stack=="string"){for(var a=S.stack.split(` | ||
`),R=n.stack.split(` | ||
`),h=a.length-1,m=R.length-1;h>=1&&m>=0&&a[h]!==R[m];)m--;for(;h>=1&&m>=0;h--,m--)if(a[h]!==R[m]){if(h!==1||m!==1)do if(h--,m--,m<0||a[h]!==R[m]){var j=` | ||
`+a[h].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,j),j}while(h>=1&&m>=0);break}}}finally{X=!1,K.current=f,Ke(),Error.prepareStackTrace=u}var A=e?e.displayName||e.name:"",Pe=A?N(A):"";return typeof e=="function"&&V.set(e,Pe),Pe}function Xe(e,r,t){return he(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case w:return N("Suspense");case _:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Xe(e.render);case T:return U(e.type,r,t);case O:{var n=e,u=n._payload,f=n._init;try{return U(f(u),r,t)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,me={},ye=k.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function $e(e,r,t,n,u){{var f=Function.call.bind(H);for(var l in e)if(f(e,l)){var a=void 0;try{if(typeof e[l]!="function"){var R=Error((n||"React class")+": "+t+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}a=e[l](r,l,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(h){a=h}a&&!(a instanceof Error)&&(G(u),E("%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).",n||"React class",t,l,typeof a),G(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,G(u),E("Failed %s type: %s",t,a.message),G(null))}}}var qe=Array.isArray;function Z(e){return qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return xe(e),!1}catch{return!0}}function xe(e){return""+e}function be(e){if(rr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),xe(e)}var B=k.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Ee,Re,$;$={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=C(B.current.type);$[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C(B.current.type),e.ref),$[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,E("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Re||(Re=!0,E("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,n,u,f,l){var a={$$typeof:d,type:e,key:r,ref:t,props:l,_owner:f};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,u){{var f,l={},a=null,R=null;t!==void 0&&(be(t),a=""+t),or(r)&&(be(r.key),a=""+r.key),nr(r)&&(R=r.ref,ar(r,u));for(f in r)H.call(r,f)&&!tr.hasOwnProperty(f)&&(l[f]=r[f]);if(e&&e.defaultProps){var h=e.defaultProps;for(f in h)l[f]===void 0&&(l[f]=h[f])}if(a||R){var m=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(l,m),R&&sr(l,m)}return lr(e,a,R,u,n,B.current,l)}}var q=k.ReactCurrentOwner,_e=k.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function je(){{if(q.current){var e=C(q.current.type);if(e)return` | ||
@@ -29,2 +29,2 @@ Check the render method of \``+e+"`."}return""}}function cr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return` | ||
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(we[t])return;we[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),I(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function Ce(e,r){{if(typeof e!="object")return;if(Z(e))for(var t=0;t<e.length;t++){var n=e[t];re(n)&&Te(n,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var u=Be(e);if(typeof u=="function"&&u!==e.entries)for(var f=u.call(e),l;!(l=f.next()).done;)re(l.value)&&Te(l.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===w))t=r.propTypes;else return;if(t){var n=T(r);$e(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var u=T(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Se(e,r,t,n,u,f){{var l=Ge(e);if(!l){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var E=cr(u);E?a+=E:a+=je();var h;e===null?h="null":Z(e)?h="array":e!==void 0&&e.$$typeof===d?(h="<"+(T(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,a)}var m=ur(e,r,t,u,f);if(m==null)return m;if(l){var j=r.children;if(j!==void 0)if(n)if(Z(j)){for(var A=0;A<j.length;A++)Ce(j[A],e);Object.freeze&&Object.freeze(j)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(j,e)}return e===o?pr(m):dr(m),m}}function vr(e,r,t){return Se(e,r,t,!0)}function gr(e,r,t){return Se(e,r,t,!1)}var hr=gr,mr=vr;W.Fragment=o,W.jsx=hr,W.jsxs=mr}()),W}process.env.NODE_ENV==="production"?J.exports=Pe():J.exports=Fe();var i=J.exports,oe=(s=>(s.sm="40rem",s.md="48rem",s.lg="64rem",s.xl="80rem",s["2xl"]="96rem",s))(oe||{});function ke(s){const d=oe[s];return d?`(min-width: ${d})`:s}function z(s){const d=x.useMemo(()=>ke(s),[s]),p=x.useCallback(y=>{const v=window.matchMedia(d);return v.addEventListener("change",y),()=>{v.removeEventListener("change",y)}},[d]),o=()=>window.matchMedia(d).matches,c=()=>{throw Error("useMediaQuery is a client-only hook")};return x.useSyncExternalStore(p,o,c)}const Ie=({handleToggleSidebar:s,logo:d,userData:p})=>{const o=x.useContext(L),c=z("md"),[y,v]=x.useState(!1);return i.jsxs(o.Box,{style:{minHeight:c?"75px":"73px",backgroundColor:"white"},paddingInline:"spacing-6",paddingBlock:"spacing-2",display:"flex",align:"center",justify:"space-between",direction:"row",borderWidth:"border",borderStyle:"border-solid-b",borderColor:"gray-300",children:[i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:c?"md":"spacing-6",children:[i.jsx(o.Icon,{name:"MenuBars",width:24,color:"#606B66",cursor:"pointer",onClick:s}),i.jsx("img",{src:d,width:141,height:40,alt:"TUVNORD"})]}),i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:c?"spacing-6":"spacing-2",children:[i.jsxs(o.Box,{position:"relative",cursor:"pointer",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[i.jsx(o.Icon,{name:"Bell",width:24}),i.jsx(o.Box,{position:"absolute",right:"right-0",style:{top:"-7px",transition:".3s",transform:y?"scale(1.3)":"scale(1)",filter:y?"contrast(1.75)":"contrast(1)"},children:i.jsx(o.Icon,{name:"Dot",width:16,color:"red"})})]}),i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:c?"spacing-6":"spacing-1",paddingLeft:c?"spacing-6":"spacing-3",borderWidth:"border",borderStyle:"border-solid-l",borderColor:"gray-300",children:[i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:"spacing-2",children:[i.jsx(o.Box,{height:"height-10",width:"width-10",borderRadius:"rounded-full",display:"flex",align:"center",justify:"center",style:{background:"#E6E9FB"},children:i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(p==null?void 0:p.userName.slice(0,1))||"DT"})}),c?i.jsxs(o.Box,{display:"flex",gap:"xs",children:[i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(p==null?void 0:p.userName)||"Dani Ganteng"}),i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",color:"gray-400",children:(p==null?void 0:p.userEmail)||"dani@tamvan.com"})]}):null]}),i.jsx(o.Box,{children:i.jsx(o.Icon,{name:"DownArrow",width:24,color:"#111827",strokeWidth:2,cursor:"pointer"})})]})]})]})},Ae=({item:s,showSideBar:d,path:p})=>{const o=z("md"),[c,y]=x.useState(!1),{Box:v,Icon:R,Text:g,NavLink:S}=x.useContext(L);return console.log("path",p),console.log("item.url",s.url),i.jsx(S,{to:s.url,style:{textDecoration:"none"},children:i.jsxs(v,{height:"height-12",display:"flex",align:"center",paddingInline:"spacing-4",style:{borderRadius:"4px",width:o?d?"258px":"48px":"211px",backgroundColor:p===s.url||c?"#E6E9FB":"transparent",transition:"background-color .3s"},direction:"row",gap:"spacing-2",cursor:"pointer",justify:o?d?"flex-start":"center":"flex-start",position:"relative",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[i.jsx(v,{children:i.jsx(R,{name:s.icon,width:20,color:p===s.url||c?"#001ED2":"#78867F",style:{transition:"color .3s"}})}),o&&d?i.jsx(g,{fontFamily:"Poppins",fontWeight:"medium",style:{color:p===s.url||c?"#001ED2":"#78867F",transition:"color .3s"},children:s.name}):null,o?null:i.jsx(g,{fontFamily:"Poppins",fontWeight:"medium",style:{color:p===s.url||c?"#001ED2":"#78867F",transition:"color .3s"},children:s.name}),i.jsx(v,{paddingInline:"md",paddingBlock:"sm",position:"absolute",style:{backgroundColor:"#FFFEFF",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px #F0F0F0",borderRadius:"10px",left:"100%",bottom:"-40%",marginLeft:"4px",transform:o&&!d&&c?"translateY(0px)":"translateY(5px)",opacity:o&&!d&&c?"1":"0",transition:".3s",pointerEvents:"none"},children:i.jsx(g,{fontFamily:"Poppins",fontWeight:"medium",fontSize:"sm",children:s.name})})]})})},De=({showSideBar:s,menus:d})=>{const p=z("md"),{Box:o}=x.useContext(L),c=x.useRef(window.location.pathname);return x.useEffect(()=>{const y=setInterval(()=>{const v=window.location.pathname;v!==c.current&&(console.log("current path:",v),c.current=v)},100);return()=>{clearInterval(y)}},[]),i.jsx(o,{paddingBlock:"spacing-5",borderWidth:"border",borderStyle:"border-solid-r",borderColor:"gray-300",gap:"spacing-4",style:{display:p||s?"flex":"none",backgroundColor:"#FFFEFF"},height:"height-full",position:p?"relative":"absolute",children:d.map((y,v)=>i.jsx(o,{display:"flex",gap:"spacing-1",paddingBottom:"md",style:{borderBottom:d.length>1&&v<d.length-1?"1px solid rgba(120, 134, 127, 0.20)":0},paddingInline:"spacing-6",children:y.items.map((R,g)=>i.jsx(Ae,{path:c.current,item:R,showSideBar:s},g))}))})},L=x.createContext({}),We=({menus:s,logo:d,userData:p,children:o,componenst:c})=>{const[y,v]=x.useState(!1),R=()=>v(g=>!g);return i.jsx(L.Provider,{value:c,children:i.jsxs(c.Box,{height:"height-screen",style:{minHeight:"812px"},children:[i.jsx(Ie,{handleToggleSidebar:R,logo:d,userData:p}),i.jsxs(c.Box,{display:"flex",direction:"row",height:"height-full",position:"relative",children:[i.jsx(De,{menus:s,showSideBar:y}),i.jsx(c.Box,{flex:"1",children:o})]})]})})};O.DashboardLayout=We,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}); | ||
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(we[t])return;we[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+C(e._owner.type)+"."),I(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function Ce(e,r){{if(typeof e!="object")return;if(Z(e))for(var t=0;t<e.length;t++){var n=e[t];re(n)&&Te(n,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var u=Be(e);if(typeof u=="function"&&u!==e.entries)for(var f=u.call(e),l;!(l=f.next()).done;)re(l.value)&&Te(l.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===T))t=r.propTypes;else return;if(t){var n=C(r);$e(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var u=C(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Se(e,r,t,n,u,f){{var l=Ge(e);if(!l){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=cr(u);R?a+=R:a+=je();var h;e===null?h="null":Z(e)?h="array":e!==void 0&&e.$$typeof===d?(h="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):h=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",h,a)}var m=ur(e,r,t,u,f);if(m==null)return m;if(l){var j=r.children;if(j!==void 0)if(n)if(Z(j)){for(var A=0;A<j.length;A++)Ce(j[A],e);Object.freeze&&Object.freeze(j)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(j,e)}return e===o?pr(m):dr(m),m}}function vr(e,r,t){return Se(e,r,t,!0)}function gr(e,r,t){return Se(e,r,t,!1)}var hr=gr,mr=vr;W.Fragment=o,W.jsx=hr,W.jsxs=mr}()),W}process.env.NODE_ENV==="production"?J.exports=Oe():J.exports=Fe();var i=J.exports,oe=(s=>(s.sm="40rem",s.md="48rem",s.lg="64rem",s.xl="80rem",s["2xl"]="96rem",s))(oe||{});function ke(s){const d=oe[s];return d?`(min-width: ${d})`:s}function z(s){const d=y.useMemo(()=>ke(s),[s]),p=y.useCallback(x=>{const g=window.matchMedia(d);return g.addEventListener("change",x),()=>{g.removeEventListener("change",x)}},[d]),o=()=>window.matchMedia(d).matches,c=()=>{throw Error("useMediaQuery is a client-only hook")};return y.useSyncExternalStore(p,o,c)}const Ie=({handleToggleSidebar:s,logo:d,userData:p})=>{const o=y.useContext(L),c=z("md"),[x,g]=y.useState(!1);return i.jsxs(o.Box,{style:{minHeight:c?"75px":"73px",backgroundColor:"white"},paddingInline:"spacing-6",paddingBlock:"spacing-2",display:"flex",align:"center",justify:"space-between",direction:"row",borderWidth:"border",borderStyle:"border-solid-b",borderColor:"gray-300",children:[i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:c?"md":"spacing-6",children:[i.jsx(o.Icon,{name:"MenuBars",width:24,color:"#606B66",cursor:"pointer",onClick:s}),i.jsx("img",{src:d,width:141,height:40,alt:"TUVNORD"})]}),i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:c?"spacing-6":"spacing-2",children:[i.jsxs(o.Box,{position:"relative",cursor:"pointer",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[i.jsx(o.Icon,{name:"Bell",width:24}),i.jsx(o.Box,{position:"absolute",right:"right-0",style:{top:"-7px",transition:".3s",transform:x?"scale(1.3)":"scale(1)",filter:x?"contrast(1.75)":"contrast(1)"},children:i.jsx(o.Icon,{name:"Dot",width:16,color:"red"})})]}),i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:c?"spacing-6":"spacing-1",paddingLeft:c?"spacing-6":"spacing-3",borderWidth:"border",borderStyle:"border-solid-l",borderColor:"gray-300",children:[i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:"spacing-2",children:[i.jsx(o.Box,{height:"height-10",width:"width-10",borderRadius:"rounded-full",display:"flex",align:"center",justify:"center",style:{background:"#E6E9FB"},children:i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(p==null?void 0:p.userName.slice(0,1))||"DT"})}),c?i.jsxs(o.Box,{display:"flex",gap:"xs",children:[i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(p==null?void 0:p.userName)||"Dani Ganteng"}),i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",color:"gray-400",children:(p==null?void 0:p.userEmail)||"dani@tamvan.com"})]}):null]}),i.jsx(o.Box,{children:i.jsx(o.Icon,{name:"DownArrow",width:24,color:"#111827",strokeWidth:2,cursor:"pointer"})})]})]})]})},Ae=({item:s,showSideBar:d,path:p})=>{const o=z("md"),[c,x]=y.useState(!1),{Box:g,Icon:b,Text:v,NavLink:w}=y.useContext(L);return console.log("path",p),console.log("item.url",s.url),i.jsx(w,{to:s.url,style:{textDecoration:"none"},children:i.jsxs(g,{height:"height-12",display:"flex",align:"center",paddingInline:"spacing-4",style:{borderRadius:"4px",width:o?d?"258px":"48px":"211px",backgroundColor:p===s.url||c?"#E6E9FB":"transparent",transition:"background-color .3s"},direction:"row",gap:"spacing-2",cursor:"pointer",justify:o?d?"flex-start":"center":"flex-start",position:"relative",onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[i.jsx(g,{children:i.jsx(b,{name:s.icon,width:20,color:p===s.url||c?"#001ED2":"#78867F",style:{transition:"color .3s"}})}),o&&d?i.jsx(v,{fontFamily:"Poppins",fontWeight:"medium",style:{color:p===s.url||c?"#001ED2":"#78867F",transition:"color .3s"},children:s.name}):null,o?null:i.jsx(v,{fontFamily:"Poppins",fontWeight:"medium",style:{color:p===s.url||c?"#001ED2":"#78867F",transition:"color .3s"},children:s.name}),i.jsx(g,{paddingInline:"md",paddingBlock:"sm",position:"absolute",style:{backgroundColor:"#FFFEFF",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px #F0F0F0",borderRadius:"10px",left:"100%",bottom:"-40%",marginLeft:"4px",transform:o&&!d&&c?"translateY(0px)":"translateY(5px)",opacity:o&&!d&&c?"1":"0",transition:".3s",pointerEvents:"none"},children:i.jsx(v,{fontFamily:"Poppins",fontWeight:"medium",fontSize:"sm",children:s.name})})]})})},De=({showSideBar:s,menus:d})=>{const p=z("md"),{Box:o}=y.useContext(L),[c,x]=y.useState(window.location.pathname);return y.useEffect(()=>{const g=setInterval(()=>{const b=window.location.pathname;b!==c&&(console.log("current path:",b),x(b))},100);return()=>{clearInterval(g)}},[]),i.jsx(o,{paddingBlock:"spacing-5",borderWidth:"border",borderStyle:"border-solid-r",borderColor:"gray-300",gap:"spacing-4",style:{display:p||s?"flex":"none",backgroundColor:"#FFFEFF"},height:"height-full",position:p?"relative":"absolute",children:d.map((g,b)=>i.jsx(o,{display:"flex",gap:"spacing-1",paddingBottom:"md",style:{borderBottom:d.length>1&&b<d.length-1?"1px solid rgba(120, 134, 127, 0.20)":0},paddingInline:"spacing-6",children:g.items.map((v,w)=>i.jsx(Ae,{path:c,item:v,showSideBar:s},w))}))})},L=y.createContext({}),We=({menus:s,logo:d,userData:p,children:o,componenst:c})=>{const[x,g]=y.useState(!1),b=()=>g(v=>!v);return i.jsx(L.Provider,{value:c,children:i.jsxs(c.Box,{height:"height-screen",style:{minHeight:"812px"},children:[i.jsx(Ie,{handleToggleSidebar:b,logo:d,userData:p}),i.jsxs(c.Box,{display:"flex",direction:"row",height:"height-full",position:"relative",children:[i.jsx(De,{menus:s,showSideBar:x}),i.jsx(c.Box,{flex:"1",children:o})]})]})})};P.DashboardLayout=We,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@hudoro/admin", | ||
"version": "0.0.1-beta.18", | ||
"version": "0.0.1-beta.19", | ||
"description": "tuv budgeting component for Hudoro UI", | ||
@@ -5,0 +5,0 @@ "author": "Prawito Hudoro", |
52183