New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hudoro/admin

Package Overview
Dependencies
Maintainers
2
Versions
321
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hudoro/admin - npm Package Compare versions

Comparing version 0.0.1-beta.10 to 0.0.1-beta.11

258

dist/index.es.js

@@ -1,3 +0,3 @@

import Oe, { 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 = {};
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 = {};
/**

@@ -13,16 +13,16 @@ * @license React

var Ce;
function mr() {
function xr() {
if (Ce)
return W;
Ce = 1;
var l = Oe, d = Symbol.for("react.element"), c = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, p = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
function x(y, m, j) {
var b, w = {}, S = null, M = null;
j !== void 0 && (S = "" + j), m.key !== void 0 && (S = "" + m.key), m.ref !== void 0 && (M = m.ref);
for (b in m)
a.call(m, b) && !v.hasOwnProperty(b) && (w[b] = m[b]);
var l = Oe, d = Symbol.for("react.element"), c = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, p = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
function x(y, h, _) {
var b, j = {}, S = null, M = null;
_ !== void 0 && (S = "" + _), h.key !== void 0 && (S = "" + h.key), h.ref !== void 0 && (M = h.ref);
for (b in h)
a.call(h, b) && !m.hasOwnProperty(b) && (j[b] = h[b]);
if (y && y.defaultProps)
for (b in m = y.defaultProps, m)
w[b] === void 0 && (w[b] = m[b]);
return { $$typeof: d, type: y, key: S, ref: M, props: w, _owner: p.current };
for (b in h = y.defaultProps, h)
j[b] === void 0 && (j[b] = h[b]);
return { $$typeof: d, type: y, key: S, ref: M, props: j, _owner: p.current };
}

@@ -42,5 +42,5 @@ return W.Fragment = c, W.jsx = x, W.jsxs = x, W;

var Se;
function xr() {
function yr() {
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
var l = Oe, d = Symbol.for("react.element"), c = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), y = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), b = 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";
var l = Oe, d = Symbol.for("react.element"), c = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), y = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), te = Symbol.iterator, Fe = "@@iterator";
function ke(e) {

@@ -73,3 +73,3 @@ if (e === null || typeof e != "object")

function Le(e) {
return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || Be || e === p || e === j || e === b || Me || e === M || Ae || We || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === w || e.$$typeof === x || e.$$typeof === y || e.$$typeof === m || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === a || e === m || Be || e === p || e === _ || e === b || Me || e === M || Ae || We || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === j || e.$$typeof === x || e.$$typeof === y || e.$$typeof === h || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -102,7 +102,7 @@ // we don't know which Flight build this will end up being used

return "Portal";
case v:
case m:
return "Profiler";
case p:
return "StrictMode";
case j:
case _:
return "Suspense";

@@ -120,5 +120,5 @@ case b:

return ae(t._context) + ".Provider";
case m:
case h:
return $e(e, e.render, "ForwardRef");
case w:
case j:
var n = e.displayName || null;

@@ -199,6 +199,6 @@ return n !== null ? n : T(e.type) || "Memo";

}
var H = P.ReactCurrentDispatcher, q;
var V = P.ReactCurrentDispatcher, H;
function B(e, r, t) {
{
if (q === void 0)
if (H === void 0)
try {

@@ -208,15 +208,15 @@ throw Error();

var n = u.stack.trim().match(/\n( *(at )?)/);
q = n && n[1] || "";
H = n && n[1] || "";
}
return `
` + q + e;
` + H + e;
}
}
var G = !1, L;
var q = !1, L;
{
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
L = new Ve();
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
L = new Ue();
}
function pe(e, r) {
if (!e || G)
if (!e || q)
return "";

@@ -229,7 +229,7 @@ {

var n;
G = !0;
q = !0;
var u = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var f;
f = H.current, H.current = null, Ye();
f = V.current, V.current = null, Ye();
try {

@@ -271,14 +271,14 @@ if (r) {

`), R = n.stack.split(`
`), g = o.length - 1, h = R.length - 1; g >= 1 && h >= 0 && o[g] !== R[h]; )
h--;
for (; g >= 1 && h >= 0; g--, h--)
if (o[g] !== R[h]) {
if (g !== 1 || h !== 1)
`), v = o.length - 1, g = R.length - 1; v >= 1 && g >= 0 && o[v] !== R[g]; )
g--;
for (; v >= 1 && g >= 0; v--, g--)
if (o[v] !== R[g]) {
if (v !== 1 || g !== 1)
do
if (g--, h--, h < 0 || o[g] !== R[h]) {
var _ = `
` + o[g].replace(" at new ", " at ");
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, _), _;
if (v--, g--, g < 0 || o[v] !== R[g]) {
var w = `
` + o[v].replace(" at new ", " at ");
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, w), w;
}
while (g >= 1 && h >= 0);
while (v >= 1 && g >= 0);
break;

@@ -288,3 +288,3 @@ }

} finally {
G = !1, H.current = f, Ne(), Error.prepareStackTrace = u;
q = !1, V.current = f, Ne(), Error.prepareStackTrace = u;
}

@@ -294,3 +294,3 @@ var k = e ? e.displayName || e.name : "", Te = k ? B(k) : "";

}
function Ue(e, r, t) {
function Ve(e, r, t) {
return pe(e, !1);

@@ -310,3 +310,3 @@ }

switch (e) {
case j:
case _:
return B("Suspense");

@@ -318,5 +318,5 @@ case b:

switch (e.$$typeof) {
case m:
return Ue(e.render);
case w:
case h:
return Ve(e.render);
case j:
return $(e.type, r, t);

@@ -353,4 +353,4 @@ case S: {

o = e[s](r, s, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (g) {
o = g;
} catch (v) {
o = v;
}

@@ -362,3 +362,3 @@ o && !(o instanceof Error) && (N(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, s, typeof o), N(null)), o instanceof Error && !(o.message in ve) && (ve[o.message] = !0, N(u), E("Failed %s type: %s", t, o.message), N(null));

var Ge = Array.isArray;
function J(e) {
function G(e) {
return Ge(e);

@@ -391,4 +391,4 @@ }

__source: !0
}, xe, ye, z;
z = {};
}, xe, ye, J;
J = {};
function Qe(e) {

@@ -413,3 +413,3 @@ if (Y.call(e, "ref")) {

var t = T(A.current.type);
z[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', T(A.current.type), e.ref), z[t] = !0);
J[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', T(A.current.type), e.ref), J[t] = !0);
}

@@ -475,9 +475,9 @@ }

if (e && e.defaultProps) {
var g = e.defaultProps;
for (f in g)
s[f] === void 0 && (s[f] = g[f]);
var v = e.defaultProps;
for (f in v)
s[f] === void 0 && (s[f] = v[f]);
}
if (o || R) {
var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && er(s, h), R && rr(s, h);
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && er(s, g), R && rr(s, g);
}

@@ -487,3 +487,3 @@ return tr(e, o, R, u, n, A.current, s);

}
var K = P.ReactCurrentOwner, be = P.ReactDebugCurrentFrame;
var z = P.ReactCurrentOwner, be = P.ReactDebugCurrentFrame;
function F(e) {

@@ -496,5 +496,5 @@ if (e) {

}
var Q;
Q = !1;
function X(e) {
var K;
K = !1;
function Q(e) {
return typeof e == "object" && e !== null && e.$$typeof === d;

@@ -504,4 +504,4 @@ }

{
if (K.current) {
var e = T(K.current.type);
if (z.current) {
var e = T(z.current.type);
if (e)

@@ -549,3 +549,3 @@ return `

var n = "";
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + T(e._owner.type) + "."), F(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), F(null);
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + T(e._owner.type) + "."), F(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), F(null);
}

@@ -557,8 +557,8 @@ }

return;
if (J(e))
if (G(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
X(n) && _e(n, r);
Q(n) && _e(n, r);
}
else if (X(e))
else if (Q(e))
e._store && (e._store.validated = !0);

@@ -569,3 +569,3 @@ else if (e) {

for (var f = u.call(e), s; !(s = f.next()).done; )
X(s.value) && _e(s.value, r);
Q(s.value) && _e(s.value, r);
}

@@ -582,5 +582,5 @@ }

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === w))
r.$$typeof === j))
t = r.propTypes;

@@ -592,4 +592,4 @@ else

qe(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !Q) {
Q = !0;
} else if (r.PropTypes !== void 0 && !K) {
K = !0;
var u = T(r);

@@ -621,22 +621,22 @@ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");

R ? o += R : o += Ee();
var g;
e === null ? g = "null" : J(e) ? g = "array" : e !== void 0 && e.$$typeof === d ? (g = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : g = 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", g, o);
var v;
e === null ? v = "null" : G(e) ? v = "array" : e !== void 0 && e.$$typeof === d ? (v = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : v = 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", v, o);
}
var h = nr(e, r, t, u, f);
if (h == null)
return h;
var g = nr(e, r, t, u, f);
if (g == null)
return g;
if (s) {
var _ = r.children;
if (_ !== void 0)
var w = r.children;
if (w !== void 0)
if (n)
if (J(_)) {
for (var k = 0; k < _.length; k++)
je(_[k], e);
Object.freeze && Object.freeze(_);
if (G(w)) {
for (var k = 0; k < w.length; k++)
je(w[k], e);
Object.freeze && Object.freeze(w);
} 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
je(_, e);
je(w, e);
}
return e === a ? sr(h) : ir(h), h;
return e === a ? sr(g) : ir(g), g;
}

@@ -654,5 +654,5 @@ }

}
process.env.NODE_ENV === "production" ? Z.exports = mr() : Z.exports = xr();
var i = Z.exports, Pe = /* @__PURE__ */ ((l) => (l.sm = "40rem", l.md = "48rem", l.lg = "64rem", l.xl = "80rem", l["2xl"] = "96rem", l))(Pe || {});
function yr(l) {
process.env.NODE_ENV === "production" ? X.exports = xr() : X.exports = yr();
var i = X.exports, Pe = /* @__PURE__ */ ((l) => (l.sm = "40rem", l.md = "48rem", l.lg = "64rem", l.xl = "80rem", l["2xl"] = "96rem", l))(Pe || {});
function br(l) {
const d = Pe[l];

@@ -662,7 +662,7 @@ return d ? `(min-width: ${d})` : l;

function re(l) {
const d = dr(() => yr(l), [l]), c = pr(
(v) => {
const d = dr(() => br(l), [l]), c = pr(
(m) => {
const x = window.matchMedia(d);
return x.addEventListener("change", v), () => {
x.removeEventListener("change", v);
return x.addEventListener("change", m), () => {
x.removeEventListener("change", m);
};

@@ -676,4 +676,4 @@ },

}
const br = ({ handleToggleSidebar: l, logo: d, userData: c }) => {
const a = ee(U), p = re("md"), [v, x] = V(!1);
const Er = ({ handleToggleSidebar: l, logo: d, userData: c }) => {
const a = Z(U), p = re("md"), [m, x] = ee(!1);
return /* @__PURE__ */ i.jsxs(

@@ -743,4 +743,4 @@ a.Box,

transition: ".3s",
transform: v ? "scale(1.3)" : "scale(1)",
filter: v ? "contrast(1.75)" : "contrast(1)"
transform: m ? "scale(1.3)" : "scale(1)",
filter: m ? "contrast(1.75)" : "contrast(1)"
},

@@ -820,8 +820,14 @@ children: /* @__PURE__ */ i.jsx(a.Icon, { name: "Dot", width: 16, color: "red" })

);
}, Er = ({ item: l, showSideBar: d }) => {
const c = re("md"), [a, p] = V(""), [v, x] = V(!1), { Box: y, Icon: m, Text: j, NavLink: b } = ee(U);
return gr(() => {
p(window.location.pathname);
}, [window.location.pathname]), console.log("path from @hudoro/admin", a), /* @__PURE__ */ i.jsx(b, { to: l.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ i.jsxs(
y,
}, Rr = ({ item: l, showSideBar: d }) => {
const c = re("md"), [a, p] = ee(!1), { Box: m, Icon: x, Text: y, NavLink: h } = Z(U), _ = gr(window.location.pathname);
return hr(() => {
const b = setInterval(() => {
const j = window.location.pathname;
j !== _.current && (console.log("URL berubah:", j), _.current = j);
}, 100);
return () => {
clearInterval(b);
};
}, []), /* @__PURE__ */ i.jsx(h, { to: l.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ i.jsxs(
m,
{

@@ -835,3 +841,3 @@ height: "height-12",

width: c ? d ? "258px" : "48px" : "211px",
backgroundColor: a === l.url || v ? "#E6E9FB" : "transparent",
backgroundColor: _.current === l.url || a ? "#E6E9FB" : "transparent",
transition: "background-color .3s"

@@ -844,11 +850,11 @@ },

position: "relative",
onMouseEnter: () => x(!0),
onMouseLeave: () => x(!1),
onMouseEnter: () => p(!0),
onMouseLeave: () => p(!1),
children: [
/* @__PURE__ */ i.jsx(y, { children: /* @__PURE__ */ i.jsx(
m,
/* @__PURE__ */ i.jsx(m, { children: /* @__PURE__ */ i.jsx(
x,
{
name: l.icon,
width: 20,
color: a === l.url || v ? "#001ED2" : "#78867F",
color: _.current === l.url || a ? "#001ED2" : "#78867F",
style: { transition: "color .3s" }

@@ -858,3 +864,3 @@ }

c && d ? /* @__PURE__ */ i.jsx(
j,
y,
{

@@ -864,3 +870,3 @@ fontFamily: "Poppins",

style: {
color: a === l.url || v ? "#001ED2" : "#78867F",
color: _.current === l.url || a ? "#001ED2" : "#78867F",
transition: "color .3s"

@@ -872,3 +878,3 @@ },

c ? null : /* @__PURE__ */ i.jsx(
j,
y,
{

@@ -878,3 +884,3 @@ fontFamily: "Poppins",

style: {
color: a === l.url || v ? "#001ED2" : "#78867F",
color: _.current === l.url || a ? "#001ED2" : "#78867F",
transition: "color .3s"

@@ -886,3 +892,3 @@ },

/* @__PURE__ */ i.jsx(
y,
m,
{

@@ -899,8 +905,8 @@ paddingInline: "md",

marginLeft: "4px",
transform: c && !d && v ? "translateY(0px)" : "translateY(5px)",
opacity: c && !d && v ? "1" : "0",
transform: c && !d && a ? "translateY(0px)" : "translateY(5px)",
opacity: c && !d && a ? "1" : "0",
transition: ".3s",
pointerEvents: "none"
},
children: /* @__PURE__ */ i.jsx(j, { fontFamily: "Poppins", fontWeight: "medium", fontSize: "sm", children: l.name })
children: /* @__PURE__ */ i.jsx(y, { fontFamily: "Poppins", fontWeight: "medium", fontSize: "sm", children: l.name })
}

@@ -911,4 +917,4 @@ )

) });
}, Rr = ({ showSideBar: l, menus: d }) => {
const c = re("md"), { Box: a } = ee(U);
}, _r = ({ showSideBar: l, menus: d }) => {
const c = re("md"), { Box: a } = Z(U);
return /* @__PURE__ */ i.jsx(

@@ -928,3 +934,3 @@ a,

position: c ? "relative" : "absolute",
children: d.map((p, v) => /* @__PURE__ */ i.jsx(
children: d.map((p, m) => /* @__PURE__ */ i.jsx(
a,

@@ -936,6 +942,6 @@ {

style: {
borderBottom: d.length > 1 && v < d.length - 1 ? "1px solid rgba(120, 134, 127, 0.20)" : 0
borderBottom: d.length > 1 && m < d.length - 1 ? "1px solid rgba(120, 134, 127, 0.20)" : 0
},
paddingInline: "spacing-6",
children: p.items.map((x, y) => /* @__PURE__ */ i.jsx(Er, { item: x, showSideBar: l }, y))
children: p.items.map((x, y) => /* @__PURE__ */ i.jsx(Rr, { item: x, showSideBar: l }, y))
}

@@ -945,5 +951,5 @@ ))

);
}, U = hr(
}, U = mr(
{}
), jr = ({
), wr = ({
menus: l,

@@ -955,6 +961,6 @@ logo: d,

}) => {
const [v, x] = V(!1), y = () => x((m) => !m);
const [m, x] = ee(!1), y = () => x((h) => !h);
return console.log("compn", p), /* @__PURE__ */ i.jsx(U.Provider, { value: p, children: /* @__PURE__ */ i.jsxs(p.Box, { height: "height-screen", style: { minHeight: "812px" }, children: [
/* @__PURE__ */ i.jsx(
br,
Er,
{

@@ -974,3 +980,3 @@ handleToggleSidebar: y,

children: [
/* @__PURE__ */ i.jsx(Rr, { menus: l, showSideBar: v }),
/* @__PURE__ */ i.jsx(_r, { menus: l, showSideBar: m }),
/* @__PURE__ */ i.jsx(p.Box, { flex: "1", children: a })

@@ -983,3 +989,3 @@ ]

export {
jr as DashboardLayout
wr as DashboardLayout
};

@@ -1,2 +0,2 @@

(function(O,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],y):(O=typeof globalThis<"u"?globalThis:O||self,y(O.Admin={},O.React))})(this,function(O,y){"use strict";var J={exports:{}},D={};/**
(function(O,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(O=typeof globalThis<"u"?globalThis:O||self,m(O.Admin={},O.React))})(this,function(O,m){"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 l=y,d=Symbol.for("react.element"),c=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,p=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function x(b,m,w){var E,T={},P=null,Y=null;w!==void 0&&(P=""+w),m.key!==void 0&&(P=""+m.key),m.ref!==void 0&&(Y=m.ref);for(E in m)o.call(m,E)&&!v.hasOwnProperty(E)&&(T[E]=m[E]);if(b&&b.defaultProps)for(E in m=b.defaultProps,m)T[E]===void 0&&(T[E]=m[E]);return{$$typeof:d,type:b,key:P,ref:Y,props:T,_owner:p.current}}return D.Fragment=c,D.jsx=x,D.jsxs=x,D}var W={};/**
*/var te;function Pe(){if(te)return D;te=1;var l=m,d=Symbol.for("react.element"),c=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,p=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function x(b,g,j){var E,w={},P=null,Y=null;j!==void 0&&(P=""+j),g.key!==void 0&&(P=""+g.key),g.ref!==void 0&&(Y=g.ref);for(E in g)a.call(g,E)&&!y.hasOwnProperty(E)&&(w[E]=g[E]);if(b&&b.defaultProps)for(E in g=b.defaultProps,g)w[E]===void 0&&(w[E]=g[E]);return{$$typeof:d,type:b,key:P,ref:Y,props:w,_owner:p.current}}return D.Fragment=c,D.jsx=x,D.jsxs=x,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 l=y,d=Symbol.for("react.element"),c=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),b=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=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=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(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(s){return String(s)});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===v||He||e===p||e===w||e===E||Ue||e===Y||Ye||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===T||e.$$typeof===x||e.$$typeof===b||e.$$typeof===m||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"&&R("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 c:return"Portal";case v:return"Profiler";case p:return"StrictMode";case w:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return se(r)+".Consumer";case x:var t=e;return se(t._context)+".Provider";case m:return Je(e,e.render,"ForwardRef");case T:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case P:{var u=e,f=u._payload,s=u._init;try{return C(s(f))}catch{return null}}}return null}var F=Object.assign,M=0,le,ue,ce,fe,de,pe,ve;function he(){}he.__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:he,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&&R("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 ge(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 s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(S){n=S}Reflect.construct(e,[],s)}else{try{s.call()}catch(S){n=S}e.call(s.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(`
*/var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var l=m,d=Symbol.for("react.element"),c=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),b=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),oe=Symbol.iterator,Me="@@iterator";function Le(e){if(e===null||typeof e!="object")return null;var r=oe&&e[oe]||e[Me];return typeof r=="function"?r:null}var k=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Be("error",e,t)}}function Be(e,r,t){{var n=k.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var f=t.map(function(s){return String(s)});f.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,f)}}var Ye=!1,Ne=!1,Ue=!1,Ve=!1,He=!1,ie;ie=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===y||He||e===p||e===j||e===E||Ve||e===Y||Ye||Ne||Ue||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b||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 C(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 a:return"Fragment";case c:return"Portal";case y:return"Profiler";case p:return"StrictMode";case j:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return se(r)+".Consumer";case x: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:C(e.type)||"Memo";case P:{var u=e,f=u._payload,s=u._init;try{return C(s(f))}catch{return null}}}return null}var F=Object.assign,M=0,le,ue,ce,fe,de,pe,ve;function he(){}he.__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:he,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&&R("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,U;{var Qe=typeof WeakMap=="function"?WeakMap:Map;U=new Qe}function ge(e,r){if(!e||X)return"";{var t=U.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 s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(S){n=S}Reflect.construct(e,[],s)}else{try{s.call()}catch(S){n=S}e.call(s.prototype)}}else{try{throw Error()}catch(S){n=S}e()}}catch(S){if(S&&n&&typeof S.stack=="string"){for(var o=S.stack.split(`
`),_=n.stack.split(`
`),h=a.length-1,g=_.length-1;h>=1&&g>=0&&a[h]!==_[g];)g--;for(;h>=1&&g>=0;h--,g--)if(a[h]!==_[g]){if(h!==1||g!==1)do if(h--,g--,g<0||a[h]!==_[g]){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&&g>=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 ge(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 ge(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case w:return N("Suspense");case E:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return Xe(e.render);case T: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 s in e)if(f(e,s)){var a=void 0;try{if(typeof e[s]!="function"){var _=Error((n||"React class")+": "+t+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}a=e[s](r,s,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(h){a=h}a&&!(a instanceof Error)&&(G(u),R("%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,s,typeof a),G(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,G(u),R("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 R("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]||(R('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,R("%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,R("%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,s){var a={$$typeof:d,type:e,key:r,ref:t,props:s,_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,s={},a=null,_=null;t!==void 0&&(be(t),a=""+t),or(r)&&(be(r.key),a=""+r.key),nr(r)&&(_=r.ref,ar(r,u));for(f in r)H.call(r,f)&&!tr.hasOwnProperty(f)&&(s[f]=r[f]);if(e&&e.defaultProps){var h=e.defaultProps;for(f in h)s[f]===void 0&&(s[f]=h[f])}if(a||_){var g=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(s,g),_&&sr(s,g)}return lr(e,a,_,u,n,B.current,s)}}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`
`),v=o.length-1,h=_.length-1;v>=1&&h>=0&&o[v]!==_[h];)h--;for(;v>=1&&h>=0;v--,h--)if(o[v]!==_[h]){if(v!==1||h!==1)do if(v--,h--,h<0||o[v]!==_[h]){var T=`
`+o[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,T),T}while(v>=1&&h>=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"&&U.set(e,Oe),Oe}function Xe(e,r,t){return ge(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return ge(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case j:return N("Suspense");case E:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return Xe(e.render);case w:return V(e.type,r,t);case P:{var n=e,u=n._payload,f=n._init;try{return V(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=V(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 s in e)if(f(e,s)){var o=void 0;try{if(typeof e[s]!="function"){var _=Error((n||"React class")+": "+t+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}o=e[s](r,s,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){o=v}o&&!(o instanceof Error)&&(G(u),R("%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,s,typeof o),G(null)),o instanceof Error&&!(o.message in me)&&(me[o.message]=!0,G(u),R("Failed %s type: %s",t,o.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 R("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 L=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 ar(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 or(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=C(L.current.type);$[t]||(R('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(L.current.type),e.ref),$[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,R("%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,R("%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,s){var o={$$typeof:d,type:e,key:r,ref:t,props:s,_owner:f};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ur(e,r,t,n,u){{var f,s={},o=null,_=null;t!==void 0&&(be(t),o=""+t),ar(r)&&(be(r.key),o=""+r.key),nr(r)&&(_=r.ref,or(r,u));for(f in r)H.call(r,f)&&!tr.hasOwnProperty(f)&&(s[f]=r[f]);if(e&&e.defaultProps){var v=e.defaultProps;for(f in v)s[f]===void 0&&(s[f]=v[f])}if(o||_){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ir(s,h),_&&sr(s,h)}return lr(e,o,_,u,n,L.current,s)}}var q=k.ReactCurrentOwner,_e=k.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=V(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 "+C(e._owner.type)+"."),I(e),R('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),s;!(s=f.next()).done;)re(s.value)&&Te(s.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===m||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);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("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),R("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),R("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Se(e,r,t,n,u,f){{var s=Ge(e);if(!s){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 _=cr(u);_?a+=_: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,R("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 g=ur(e,r,t,u,f);if(g==null)return g;if(s){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 R("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(g):dr(g),g}}function vr(e,r,t){return Se(e,r,t,!0)}function hr(e,r,t){return Se(e,r,t,!1)}var gr=hr,mr=vr;W.Fragment=o,W.jsx=gr,W.jsxs=mr}()),W}process.env.NODE_ENV==="production"?J.exports=Pe():J.exports=Fe();var i=J.exports,oe=(l=>(l.sm="40rem",l.md="48rem",l.lg="64rem",l.xl="80rem",l["2xl"]="96rem",l))(oe||{});function ke(l){const d=oe[l];return d?`(min-width: ${d})`:l}function z(l){const d=y.useMemo(()=>ke(l),[l]),c=y.useCallback(v=>{const x=window.matchMedia(d);return x.addEventListener("change",v),()=>{x.removeEventListener("change",v)}},[d]),o=()=>window.matchMedia(d).matches,p=()=>{throw Error("useMediaQuery is a client-only hook")};return y.useSyncExternalStore(c,o,p)}const Ie=({handleToggleSidebar:l,logo:d,userData:c})=>{const o=y.useContext(L),p=z("md"),[v,x]=y.useState(!1);return i.jsxs(o.Box,{style:{minHeight:p?"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:p?"md":"spacing-6",children:[i.jsx(o.Icon,{name:"MenuBars",width:24,color:"#606B66",cursor:"pointer",onClick:l}),i.jsx("img",{src:d,width:141,height:40,alt:"TUVNORD"})]}),i.jsxs(o.Box,{display:"flex",direction:"row",align:"center",gap:p?"spacing-6":"spacing-2",children:[i.jsxs(o.Box,{position:"relative",cursor:"pointer",onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!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:v?"scale(1.3)":"scale(1)",filter:v?"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:p?"spacing-6":"spacing-1",paddingLeft:p?"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:(c==null?void 0:c.userName.slice(0,1))||"DT"})}),p?i.jsxs(o.Box,{display:"flex",gap:"xs",children:[i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(c==null?void 0:c.userName)||"Dani Ganteng"}),i.jsx(o.Text,{fontFamily:"Montserrat",fontWeight:"medium",color:"gray-400",children:(c==null?void 0:c.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:l,showSideBar:d})=>{const c=z("md"),[o,p]=y.useState(""),[v,x]=y.useState(!1),{Box:b,Icon:m,Text:w,NavLink:E}=y.useContext(L);return y.useEffect(()=>{p(window.location.pathname)},[window.location.pathname]),console.log("path from @hudoro/admin",o),i.jsx(E,{to:l.url,style:{textDecoration:"none"},children:i.jsxs(b,{height:"height-12",display:"flex",align:"center",paddingInline:"spacing-4",style:{borderRadius:"4px",width:c?d?"258px":"48px":"211px",backgroundColor:o===l.url||v?"#E6E9FB":"transparent",transition:"background-color .3s"},direction:"row",gap:"spacing-2",cursor:"pointer",justify:c?d?"flex-start":"center":"flex-start",position:"relative",onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[i.jsx(b,{children:i.jsx(m,{name:l.icon,width:20,color:o===l.url||v?"#001ED2":"#78867F",style:{transition:"color .3s"}})}),c&&d?i.jsx(w,{fontFamily:"Poppins",fontWeight:"medium",style:{color:o===l.url||v?"#001ED2":"#78867F",transition:"color .3s"},children:l.name}):null,c?null:i.jsx(w,{fontFamily:"Poppins",fontWeight:"medium",style:{color:o===l.url||v?"#001ED2":"#78867F",transition:"color .3s"},children:l.name}),i.jsx(b,{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:c&&!d&&v?"translateY(0px)":"translateY(5px)",opacity:c&&!d&&v?"1":"0",transition:".3s",pointerEvents:"none"},children:i.jsx(w,{fontFamily:"Poppins",fontWeight:"medium",fontSize:"sm",children:l.name})})]})})},De=({showSideBar:l,menus:d})=>{const c=z("md"),{Box:o}=y.useContext(L);return i.jsx(o,{paddingBlock:"spacing-5",borderWidth:"border",borderStyle:"border-solid-r",borderColor:"gray-300",gap:"spacing-4",style:{display:c||l?"flex":"none",backgroundColor:"#FFFEFF"},height:"height-full",position:c?"relative":"absolute",children:d.map((p,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:p.items.map((x,b)=>i.jsx(Ae,{item:x,showSideBar:l},b))}))})},L=y.createContext({}),We=({menus:l,logo:d,userData:c,children:o,componenst:p})=>{const[v,x]=y.useState(!1),b=()=>x(m=>!m);return console.log("compn",p),i.jsx(L.Provider,{value:p,children:i.jsxs(p.Box,{height:"height-screen",style:{minHeight:"812px"},children:[i.jsx(Ie,{handleToggleSidebar:b,logo:d,userData:c}),i.jsxs(p.Box,{display:"flex",direction:"row",height:"height-full",position:"relative",children:[i.jsx(De,{menus:l,showSideBar:v}),i.jsx(p.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),R('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=Le(e);if(typeof u=="function"&&u!==e.entries)for(var f=u.call(e),s;!(s=f.next()).done;)re(s.value)&&Te(s.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=C(r);$e(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var u=C(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("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),R("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),R("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Se(e,r,t,n,u,f){{var s=Ge(e);if(!s){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 _=cr(u);_?o+=_:o+=je();var v;e===null?v="null":Z(e)?v="array":e!==void 0&&e.$$typeof===d?(v="<"+(C(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,o)}var h=ur(e,r,t,u,f);if(h==null)return h;if(s){var T=r.children;if(T!==void 0)if(n)if(Z(T)){for(var A=0;A<T.length;A++)Ce(T[A],e);Object.freeze&&Object.freeze(T)}else R("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(T,e)}return e===a?pr(h):dr(h),h}}function vr(e,r,t){return Se(e,r,t,!0)}function hr(e,r,t){return Se(e,r,t,!1)}var gr=hr,mr=vr;W.Fragment=a,W.jsx=gr,W.jsxs=mr}()),W}process.env.NODE_ENV==="production"?J.exports=Pe():J.exports=Fe();var i=J.exports,ae=(l=>(l.sm="40rem",l.md="48rem",l.lg="64rem",l.xl="80rem",l["2xl"]="96rem",l))(ae||{});function ke(l){const d=ae[l];return d?`(min-width: ${d})`:l}function z(l){const d=m.useMemo(()=>ke(l),[l]),c=m.useCallback(y=>{const x=window.matchMedia(d);return x.addEventListener("change",y),()=>{x.removeEventListener("change",y)}},[d]),a=()=>window.matchMedia(d).matches,p=()=>{throw Error("useMediaQuery is a client-only hook")};return m.useSyncExternalStore(c,a,p)}const Ie=({handleToggleSidebar:l,logo:d,userData:c})=>{const a=m.useContext(B),p=z("md"),[y,x]=m.useState(!1);return i.jsxs(a.Box,{style:{minHeight:p?"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(a.Box,{display:"flex",direction:"row",align:"center",gap:p?"md":"spacing-6",children:[i.jsx(a.Icon,{name:"MenuBars",width:24,color:"#606B66",cursor:"pointer",onClick:l}),i.jsx("img",{src:d,width:141,height:40,alt:"TUVNORD"})]}),i.jsxs(a.Box,{display:"flex",direction:"row",align:"center",gap:p?"spacing-6":"spacing-2",children:[i.jsxs(a.Box,{position:"relative",cursor:"pointer",onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[i.jsx(a.Icon,{name:"Bell",width:24}),i.jsx(a.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(a.Icon,{name:"Dot",width:16,color:"red"})})]}),i.jsxs(a.Box,{display:"flex",direction:"row",align:"center",gap:p?"spacing-6":"spacing-1",paddingLeft:p?"spacing-6":"spacing-3",borderWidth:"border",borderStyle:"border-solid-l",borderColor:"gray-300",children:[i.jsxs(a.Box,{display:"flex",direction:"row",align:"center",gap:"spacing-2",children:[i.jsx(a.Box,{height:"height-10",width:"width-10",borderRadius:"rounded-full",display:"flex",align:"center",justify:"center",style:{background:"#E6E9FB"},children:i.jsx(a.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(c==null?void 0:c.userName.slice(0,1))||"DT"})}),p?i.jsxs(a.Box,{display:"flex",gap:"xs",children:[i.jsx(a.Text,{fontFamily:"Montserrat",fontWeight:"medium",children:(c==null?void 0:c.userName)||"Dani Ganteng"}),i.jsx(a.Text,{fontFamily:"Montserrat",fontWeight:"medium",color:"gray-400",children:(c==null?void 0:c.userEmail)||"dani@tamvan.com"})]}):null]}),i.jsx(a.Box,{children:i.jsx(a.Icon,{name:"DownArrow",width:24,color:"#111827",strokeWidth:2,cursor:"pointer"})})]})]})]})},Ae=({item:l,showSideBar:d})=>{const c=z("md"),[a,p]=m.useState(!1),{Box:y,Icon:x,Text:b,NavLink:g}=m.useContext(B),j=m.useRef(window.location.pathname);return m.useEffect(()=>{const E=setInterval(()=>{const w=window.location.pathname;w!==j.current&&(console.log("URL berubah:",w),j.current=w)},100);return()=>{clearInterval(E)}},[]),i.jsx(g,{to:l.url,style:{textDecoration:"none"},children:i.jsxs(y,{height:"height-12",display:"flex",align:"center",paddingInline:"spacing-4",style:{borderRadius:"4px",width:c?d?"258px":"48px":"211px",backgroundColor:j.current===l.url||a?"#E6E9FB":"transparent",transition:"background-color .3s"},direction:"row",gap:"spacing-2",cursor:"pointer",justify:c?d?"flex-start":"center":"flex-start",position:"relative",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[i.jsx(y,{children:i.jsx(x,{name:l.icon,width:20,color:j.current===l.url||a?"#001ED2":"#78867F",style:{transition:"color .3s"}})}),c&&d?i.jsx(b,{fontFamily:"Poppins",fontWeight:"medium",style:{color:j.current===l.url||a?"#001ED2":"#78867F",transition:"color .3s"},children:l.name}):null,c?null:i.jsx(b,{fontFamily:"Poppins",fontWeight:"medium",style:{color:j.current===l.url||a?"#001ED2":"#78867F",transition:"color .3s"},children:l.name}),i.jsx(y,{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:c&&!d&&a?"translateY(0px)":"translateY(5px)",opacity:c&&!d&&a?"1":"0",transition:".3s",pointerEvents:"none"},children:i.jsx(b,{fontFamily:"Poppins",fontWeight:"medium",fontSize:"sm",children:l.name})})]})})},De=({showSideBar:l,menus:d})=>{const c=z("md"),{Box:a}=m.useContext(B);return i.jsx(a,{paddingBlock:"spacing-5",borderWidth:"border",borderStyle:"border-solid-r",borderColor:"gray-300",gap:"spacing-4",style:{display:c||l?"flex":"none",backgroundColor:"#FFFEFF"},height:"height-full",position:c?"relative":"absolute",children:d.map((p,y)=>i.jsx(a,{display:"flex",gap:"spacing-1",paddingBottom:"md",style:{borderBottom:d.length>1&&y<d.length-1?"1px solid rgba(120, 134, 127, 0.20)":0},paddingInline:"spacing-6",children:p.items.map((x,b)=>i.jsx(Ae,{item:x,showSideBar:l},b))}))})},B=m.createContext({}),We=({menus:l,logo:d,userData:c,children:a,componenst:p})=>{const[y,x]=m.useState(!1),b=()=>x(g=>!g);return console.log("compn",p),i.jsx(B.Provider,{value:p,children:i.jsxs(p.Box,{height:"height-screen",style:{minHeight:"812px"},children:[i.jsx(Ie,{handleToggleSidebar:b,logo:d,userData:c}),i.jsxs(p.Box,{display:"flex",direction:"row",height:"height-full",position:"relative",children:[i.jsx(De,{menus:l,showSideBar:y}),i.jsx(p.Box,{flex:"1",children:a})]})]})})};O.DashboardLayout=We,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
{
"name": "@hudoro/admin",
"version": "0.0.1-beta.10",
"version": "0.0.1-beta.11",
"description": "tuv budgeting component for Hudoro UI",

@@ -5,0 +5,0 @@ "author": "Prawito Hudoro",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc