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.20 to 0.0.1-beta.21

52

dist/index.es.js

@@ -18,5 +18,5 @@ import Oe, { useMemo as dr, useCallback as pr, useSyncExternalStore as vr, useContext as U, useState as ee, createContext as gr } from "react";

var s = Oe, f = Symbol.for("react.element"), d = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, p = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
function m(E, v, _) {
function m(E, v, j) {
var R, w = {}, S = null, B = null;
_ !== void 0 && (S = "" + _), v.key !== void 0 && (S = "" + v.key), v.ref !== void 0 && (B = v.ref);
j !== void 0 && (S = "" + j), v.key !== void 0 && (S = "" + v.key), v.ref !== void 0 && (B = v.ref);
for (R in v)

@@ -44,3 +44,3 @@ o.call(v, R) && !x.hasOwnProperty(R) && (w[R] = v[R]);

return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
var s = Oe, f = Symbol.for("react.element"), d = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), E = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), ne = Symbol.iterator, Fe = "@@iterator";
var s = Oe, f = Symbol.for("react.element"), d = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), E = 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"), B = Symbol.for("react.offscreen"), ne = 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 === o || e === x || Be || e === p || e === _ || e === R || Me || e === B || Ae || We || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === w || e.$$typeof === m || e.$$typeof === E || e.$$typeof === v || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === o || e === x || Be || e === p || e === j || e === R || Me || e === B || Ae || We || De || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === w || e.$$typeof === m || e.$$typeof === E || e.$$typeof === v || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

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

return "StrictMode";
case _:
case j:
return "Suspense";

@@ -274,5 +274,5 @@ case R:

if (g--, h--, h < 0 || a[g] !== b[h]) {
var j = `
var _ = `
` + a[g].replace(" at new ", " at ");
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, j), j;
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, _), _;
}

@@ -304,3 +304,3 @@ while (g >= 1 && h >= 0);

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

@@ -608,13 +608,13 @@ case R:

if (l) {
var j = r.children;
if (j !== void 0)
var _ = r.children;
if (_ !== void 0)
if (t)
if (J(j)) {
for (var k = 0; k < j.length; k++)
je(j[k], e);
Object.freeze && Object.freeze(j);
if (J(_)) {
for (var k = 0; k < _.length; k++)
je(_[k], e);
Object.freeze && Object.freeze(_);
} 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.");
else
je(j, e);
je(_, e);
}

@@ -797,4 +797,4 @@ return e === o ? sr(h) : ir(h), h;

}, br = ({ item: s, showSideBar: f, path: d }) => {
const o = re("md"), [p, x] = ee(!1), { Box: m, Icon: E, Text: v, NavLink: _ } = U(M).components;
return console.log("path", d), console.log("item.url", s.url), /* @__PURE__ */ i.jsx(_, { to: s.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ i.jsxs(
const o = re("md"), [p, x] = ee(!1), { Box: m, Icon: E, Text: v, NavLink: j } = U(M).components;
return console.log("path", d), console.log("item.url", s.url), /* @__PURE__ */ i.jsx(j, { to: s.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ i.jsxs(
m,

@@ -878,4 +878,4 @@ {

}, Er = ({ showSideBar: s, menus: f }) => {
const d = re("md"), { Box: o } = U(M).components, { useLocation: p } = U(M).hooks, { pathname: x } = p();
return /* @__PURE__ */ i.jsx(
const d = re("md"), { Box: o } = U(M).components, p = U(M).hooks;
return console.log("testig", p), /* @__PURE__ */ i.jsx(
o,

@@ -894,3 +894,3 @@ {

position: d ? "relative" : "absolute",
children: f.map((m, E) => /* @__PURE__ */ i.jsx(
children: f.map((x, m) => /* @__PURE__ */ i.jsx(
o,

@@ -902,13 +902,13 @@ {

style: {
borderBottom: f.length > 1 && E < f.length - 1 ? "1px solid rgba(120, 134, 127, 0.20)" : 0
borderBottom: f.length > 1 && m < f.length - 1 ? "1px solid rgba(120, 134, 127, 0.20)" : 0
},
paddingInline: "spacing-6",
children: m.items.map((v, _) => /* @__PURE__ */ i.jsx(
children: x.items.map((E, v) => /* @__PURE__ */ i.jsx(
br,
{
path: x,
item: v,
path: "path",
item: E,
showSideBar: s
},
_
v
))

@@ -929,3 +929,3 @@ }

}) => {
const [m, E] = ee(!1), v = () => E((_) => !_);
const [m, E] = ee(!1), v = () => E((j) => !j);
return /* @__PURE__ */ i.jsx(M.Provider, { value: { components: p, hooks: x }, children: /* @__PURE__ */ i.jsxs(p.Box, { height: "height-screen", style: { minHeight: "812px" }, children: [

@@ -932,0 +932,0 @@ /* @__PURE__ */ i.jsx(

@@ -9,3 +9,3 @@ (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={};/**

* 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 m(R,v,j){var _,T={},P=null,Y=null;j!==void 0&&(P=""+j),v.key!==void 0&&(P=""+v.key),v.ref!==void 0&&(Y=v.ref);for(_ in v)o.call(v,_)&&!y.hasOwnProperty(_)&&(T[_]=v[_]);if(R&&R.defaultProps)for(_ in v=R.defaultProps,v)T[_]===void 0&&(T[_]=v[_]);return{$$typeof:d,type:R,key:P,ref:Y,props:T,_owner:c.current}}return D.Fragment=p,D.jsx=m,D.jsxs=m,D}var W={};/**
*/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 m(R,v,w){var _,T={},P=null,Y=null;w!==void 0&&(P=""+w),v.key!==void 0&&(P=""+v.key),v.ref!==void 0&&(Y=v.ref);for(_ in v)o.call(v,_)&&!y.hasOwnProperty(_)&&(T[_]=v[_]);if(R&&R.defaultProps)for(_ in v=R.defaultProps,v)T[_]===void 0&&(T[_]=v[_]);return{$$typeof:d,type:R,key:P,ref:Y,props:T,_owner:c.current}}return D.Fragment=p,D.jsx=m,D.jsxs=m,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"),m=Symbol.for("react.provider"),R=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),_=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 Le(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];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(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===j||e===_||Ue||e===Y||Ye||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===T||e.$$typeof===m||e.$$typeof===R||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"&&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 j:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return se(r)+".Consumer";case m: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 P:{var u=e,f=u._payload,l=u._init;try{return C(l(f))}catch{return null}}}return null}var F=Object.assign,L=0,le,ue,ce,fe,de,pe,ve;function ge(){}ge.__reactDisabledLog=!0;function ze(){{if(L===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})}L++}}function Ke(){{if(L--,L===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})})}L<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`
*/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"),m=Symbol.for("react.provider"),R=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"),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===w||e===_||Ue||e===Y||Ye||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===T||e.$$typeof===m||e.$$typeof===R||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"&&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 w:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return se(r)+".Consumer";case m: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 P:{var u=e,f=u._payload,l=u._init;try{return C(l(f))}catch{return null}}}return null}var F=Object.assign,B=0,le,ue,ce,fe,de,pe,ve;function ge(){}ge.__reactDisabledLog=!0;function ze(){{if(B===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})}B++}}function Ke(){{if(B--,B===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})})}B<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(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(`
`),E=n.stack.split(`
`),g=a.length-1,h=E.length-1;g>=1&&h>=0&&a[g]!==E[h];)h--;for(;g>=1&&h>=0;g--,h--)if(a[g]!==E[h]){if(g!==1||h!==1)do if(g--,h--,h<0||a[g]!==E[h]){var w=`
`+a[g].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,w),w}while(g>=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"&&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 j: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 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={},xe=k.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.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(g){a=g}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 ye(e),!1}catch{return!0}}function ye(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)),ye(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]||(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',C(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 g=e.defaultProps;for(f in g)l[f]===void 0&&(l[f]=g[f])}if(a||E){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(l,h),E&&sr(l,h)}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=C(q.current.type);if(e)return`
`),g=a.length-1,h=E.length-1;g>=1&&h>=0&&a[g]!==E[h];)h--;for(;g>=1&&h>=0;g--,h--)if(a[g]!==E[h]){if(g!==1||h!==1)do if(g--,h--,h<0||a[g]!==E[h]){var j=`
`+a[g].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(g>=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"&&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 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 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={},xe=k.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.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(g){a=g}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 ye(e),!1}catch{return!0}}function ye(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)),ye(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 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"&&L.current&&r&&L.current.stateNode!==r){var t=C(L.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',C(L.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 g=e.defaultProps;for(f in g)l[f]===void 0&&(l[f]=g[f])}if(a||E){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(l,h),E&&sr(l,h)}return lr(e,a,E,u,n,L.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 "+C(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=Le(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);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 g;e===null?g="null":Z(e)?g="array":e!==void 0&&e.$$typeof===d?(g="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):g=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",g,a)}var h=ur(e,r,t,u,f);if(h==null)return h;if(l){var w=r.children;if(w!==void 0)if(n)if(Z(w)){for(var A=0;A<w.length;A++)Ce(w[A],e);Object.freeze&&Object.freeze(w)}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(w,e)}return e===o?pr(h):dr(h),h}}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 m=window.matchMedia(d);return m.addEventListener("change",y),()=>{m.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(M),c=z("md"),[y,m]=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:()=>m(!0),onMouseLeave:()=>m(!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:m,Icon:R,Text:v,NavLink:j}=x.useContext(M).components;return console.log("path",p),console.log("item.url",s.url),i.jsx(j,{to:s.url,style:{textDecoration:"none"},children:i.jsxs(m,{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(m,{children:i.jsx(R,{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(m,{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}=x.useContext(M).components,{useLocation:c}=x.useContext(M).hooks,{pathname:y}=c();return 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((m,R)=>i.jsx(o,{display:"flex",gap:"spacing-1",paddingBottom:"md",style:{borderBottom:d.length>1&&R<d.length-1?"1px solid rgba(120, 134, 127, 0.20)":0},paddingInline:"spacing-6",children:m.items.map((v,j)=>i.jsx(Ae,{path:y,item:v,showSideBar:s},j))}))})},M=x.createContext({}),We=({menus:s,logo:d,userData:p,children:o,componenst:c,hooks:y})=>{const[m,R]=x.useState(!1),v=()=>R(j=>!j);return i.jsx(M.Provider,{value:{components:c,hooks:y},children:i.jsxs(c.Box,{height:"height-screen",style:{minHeight:"812px"},children:[i.jsx(Ie,{handleToggleSidebar:v,logo:d,userData:p}),i.jsxs(c.Box,{display:"flex",direction:"row",height:"height-full",position:"relative",children:[i.jsx(De,{menus:s,showSideBar:m}),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),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===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);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 g;e===null?g="null":Z(e)?g="array":e!==void 0&&e.$$typeof===d?(g="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):g=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",g,a)}var h=ur(e,r,t,u,f);if(h==null)return h;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(h):dr(h),h}}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 m=window.matchMedia(d);return m.addEventListener("change",y),()=>{m.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(M),c=z("md"),[y,m]=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:()=>m(!0),onMouseLeave:()=>m(!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:m,Icon:R,Text:v,NavLink:w}=x.useContext(M).components;return console.log("path",p),console.log("item.url",s.url),i.jsx(w,{to:s.url,style:{textDecoration:"none"},children:i.jsxs(m,{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(m,{children:i.jsx(R,{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(m,{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}=x.useContext(M).components,c=x.useContext(M).hooks;return console.log("testig",c),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,m)=>i.jsx(o,{display:"flex",gap:"spacing-1",paddingBottom:"md",style:{borderBottom:d.length>1&&m<d.length-1?"1px solid rgba(120, 134, 127, 0.20)":0},paddingInline:"spacing-6",children:y.items.map((R,v)=>i.jsx(Ae,{path:"path",item:R,showSideBar:s},v))}))})},M=x.createContext({}),We=({menus:s,logo:d,userData:p,children:o,componenst:c,hooks:y})=>{const[m,R]=x.useState(!1),v=()=>R(w=>!w);return i.jsx(M.Provider,{value:{components:c,hooks:y},children:i.jsxs(c.Box,{height:"height-screen",style:{minHeight:"812px"},children:[i.jsx(Ie,{handleToggleSidebar:v,logo:d,userData:p}),i.jsxs(c.Box,{display:"flex",direction:"row",height:"height-full",position:"relative",children:[i.jsx(De,{menus:s,showSideBar:m}),i.jsx(c.Box,{flex:"1",children:o})]})]})})};O.DashboardLayout=We,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
{
"name": "@hudoro/admin",
"version": "0.0.1-beta.20",
"version": "0.0.1-beta.21",
"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