levannta-ui 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(O,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(O=typeof globalThis<"u"?globalThis:O||self,P(O.LevantaUI={},O.React))})(this,function(O,P){"use strict";var X={exports:{}},Y={};/**
1
+ (function(V,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(V=typeof globalThis<"u"?globalThis:V||self,P(V.LevantaUI={},V.React))})(this,function(V,P){"use strict";var ne={exports:{}},J={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ie;function Ie(){if(ie)return Y;ie=1;var s=P,v=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,R=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function x(h,f,d){var b,p={},E=null,N=null;d!==void 0&&(E=""+d),f.key!==void 0&&(E=""+f.key),f.ref!==void 0&&(N=f.ref);for(b in f)u.call(f,b)&&!_.hasOwnProperty(b)&&(p[b]=f[b]);if(h&&h.defaultProps)for(b in f=h.defaultProps,f)p[b]===void 0&&(p[b]=f[b]);return{$$typeof:v,type:h,key:E,ref:N,props:p,_owner:R.current}}return Y.Fragment=a,Y.jsx=x,Y.jsxs=x,Y}var $={};/**
9
+ */var he;function ze(){if(he)return J;he=1;var o=P,v=Symbol.for("react.element"),i=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,j=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function O(E,f,m){var s,g={},p=null,_=null;m!==void 0&&(p=""+m),f.key!==void 0&&(p=""+f.key),f.ref!==void 0&&(_=f.ref);for(s in f)c.call(f,s)&&!k.hasOwnProperty(s)&&(g[s]=f[s]);if(E&&E.defaultProps)for(s in f=E.defaultProps,f)g[s]===void 0&&(g[s]=f[s]);return{$$typeof:v,type:E,key:p,ref:_,props:g,_owner:j.current}}return J.Fragment=i,J.jsx=O,J.jsxs=O,J}var K={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var oe;function Ve(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){var s=P,v=Symbol.for("react.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),h=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),D=Symbol.iterator,I="@@iterator";function k(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[I];return typeof r=="function"?r:null}var V=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(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=V.ReactDebugCurrentFrame,c=n.getStackAddendum();c!==""&&(r+="%s",t=t.concat([c]));var m=t.map(function(l){return String(l)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var ze=!1,Je=!1,Ke=!1,Ge=!1,Xe=!1,de;de=Symbol.for("react.module.reference");function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===_||Xe||e===R||e===d||e===b||Ge||e===N||ze||Je||Ke||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===p||e.$$typeof===x||e.$$typeof===h||e.$$typeof===f||e.$$typeof===de||e.getModuleId!==void 0))}function He(e,r,t){var n=e.displayName;if(n)return n;var c=r.displayName||r.name||"";return c!==""?t+"("+c+")":t}function ve(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 u:return"Fragment";case a:return"Portal";case _:return"Profiler";case R:return"StrictMode";case d:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var r=e;return ve(r)+".Consumer";case x:var t=e;return ve(t._context)+".Provider";case f:return He(e,e.render,"ForwardRef");case p:var n=e.displayName||null;return n!==null?n:S(e.type)||"Memo";case E:{var c=e,m=c._payload,l=c._init;try{return S(l(m))}catch{return null}}}return null}var A=Object.assign,M=0,be,me,pe,he,ye,ge,Re;function _e(){}_e.__reactDisabledLog=!0;function Ze(){{if(M===0){be=console.log,me=console.info,pe=console.warn,he=console.error,ye=console.group,ge=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function Qe(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:be}),info:A({},e,{value:me}),warn:A({},e,{value:pe}),error:A({},e,{value:he}),group:A({},e,{value:ye}),groupCollapsed:A({},e,{value:ge}),groupEnd:A({},e,{value:Re})})}M<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=V.ReactCurrentDispatcher,H;function z(e,r,t){{if(H===void 0)try{throw Error()}catch(c){var n=c.stack.trim().match(/\n( *(at )?)/);H=n&&n[1]||""}return`
18
- `+H+e}}var Z=!1,J;{var er=typeof WeakMap=="function"?WeakMap:Map;J=new er}function Ee(e,r){if(!e||Z)return"";{var t=J.get(e);if(t!==void 0)return t}var n;Z=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=q.current,q.current=null,Ze();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(C){n=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){n=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var i=C.stack.split(`
19
- `),w=n.stack.split(`
20
- `),y=i.length-1,g=w.length-1;y>=1&&g>=0&&i[y]!==w[g];)g--;for(;y>=1&&g>=0;y--,g--)if(i[y]!==w[g]){if(y!==1||g!==1)do if(y--,g--,g<0||i[y]!==w[g]){var T=`
21
- `+i[y].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,T),T}while(y>=1&&g>=0);break}}}finally{Z=!1,q.current=m,Qe(),Error.prepareStackTrace=c}var W=e?e.displayName||e.name:"",F=W?z(W):"";return typeof e=="function"&&J.set(e,F),F}function rr(e,r,t){return Ee(e,!1)}function tr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return Ee(e,tr(e));if(typeof e=="string")return z(e);switch(e){case d:return z("Suspense");case b:return z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return rr(e.render);case p:return K(e.type,r,t);case E:{var n=e,c=n._payload,m=n._init;try{return K(m(c),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,je={},xe=V.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.setExtraStackFrame(null)}function nr(e,r,t,n,c){{var m=Function.call.bind(U);for(var l in e)if(m(e,l)){var i=void 0;try{if(typeof e[l]!="function"){var w=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 w.name="Invariant Violation",w}i=e[l](r,l,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){i=y}i&&!(i instanceof Error)&&(G(c),j("%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 i),G(null)),i instanceof Error&&!(i.message in je)&&(je[i.message]=!0,G(c),j("Failed %s type: %s",t,i.message),G(null))}}}var ar=Array.isArray;function Q(e){return ar(e)}function ir(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function or(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Ce(e){if(or(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ir(e)),we(e)}var B=V.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0},Te,Se,ee;ee={};function lr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ur(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function cr(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=S(B.current.type);ee[t]||(j('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',S(B.current.type),e.ref),ee[t]=!0)}}function fr(e,r){{var t=function(){Te||(Te=!0,j("%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 dr(e,r){{var t=function(){Se||(Se=!0,j("%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 vr=function(e,r,t,n,c,m,l){var i={$$typeof:v,type:e,key:r,ref:t,props:l,_owner:m};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function br(e,r,t,n,c){{var m,l={},i=null,w=null;t!==void 0&&(Ce(t),i=""+t),ur(r)&&(Ce(r.key),i=""+r.key),lr(r)&&(w=r.ref,cr(r,c));for(m in r)U.call(r,m)&&!sr.hasOwnProperty(m)&&(l[m]=r[m]);if(e&&e.defaultProps){var y=e.defaultProps;for(m in y)l[m]===void 0&&(l[m]=y[m])}if(i||w){var g=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&fr(l,g),w&&dr(l,g)}return vr(e,i,w,c,n,B.current,l)}}var re=V.ReactCurrentOwner,Oe=V.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var te;te=!1;function ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function Pe(){{if(re.current){var e=S(re.current.type);if(e)return`
17
+ */var pe;function Je(){return pe||(pe=1,process.env.NODE_ENV!=="production"&&function(){var o=P,v=Symbol.for("react.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),E=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),N=Symbol.iterator,W="@@iterator";function y(e){if(e===null||typeof e!="object")return null;var r=N&&e[N]||e[W];return typeof r=="function"?r:null}var D=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];$("error",e,n)}}function $(e,r,n){{var a=D.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(r+="%s",n=n.concat([d]));var h=n.map(function(u){return String(u)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var M=!1,te=!1,ae=!1,ie=!1,oe=!1,H;H=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===k||oe||e===j||e===m||e===s||ie||e===_||M||te||ae||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===g||e.$$typeof===O||e.$$typeof===E||e.$$typeof===f||e.$$typeof===H||e.getModuleId!==void 0))}function b(e,r,n){var a=e.displayName;if(a)return a;var d=r.displayName||r.name||"";return d!==""?n+"("+d+")":n}function S(e){return e.displayName||"Context"}function x(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 c:return"Fragment";case i:return"Portal";case k:return"Profiler";case j:return"StrictMode";case m:return"Suspense";case s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return S(r)+".Consumer";case O:var n=e;return S(n._context)+".Provider";case f:return b(e,e.render,"ForwardRef");case g:var a=e.displayName||null;return a!==null?a:x(e.type)||"Memo";case p:{var d=e,h=d._payload,u=d._init;try{return x(u(h))}catch{return null}}}return null}var T=Object.assign,A=0,Z,_e,we,Ce,Se,Te,Oe;function Ne(){}Ne.__reactDisabledLog=!0;function qe(){{if(A===0){Z=console.log,_e=console.info,we=console.warn,Ce=console.error,Se=console.group,Te=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function er(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:Z}),info:T({},e,{value:_e}),warn:T({},e,{value:we}),error:T({},e,{value:Ce}),group:T({},e,{value:Se}),groupCollapsed:T({},e,{value:Te}),groupEnd:T({},e,{value:Oe})})}A<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=D.ReactCurrentDispatcher,le;function Q(e,r,n){{if(le===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);le=a&&a[1]||""}return`
18
+ `+le+e}}var ue=!1,q;{var rr=typeof WeakMap=="function"?WeakMap:Map;q=new rr}function ke(e,r){if(!e||ue)return"";{var n=q.get(e);if(n!==void 0)return n}var a;ue=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=se.current,se.current=null,qe();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(F){a=F}Reflect.construct(e,[],u)}else{try{u.call()}catch(F){a=F}e.call(u.prototype)}}else{try{throw Error()}catch(F){a=F}e()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var l=F.stack.split(`
19
+ `),I=a.stack.split(`
20
+ `),w=l.length-1,C=I.length-1;w>=1&&C>=0&&l[w]!==I[C];)C--;for(;w>=1&&C>=0;w--,C--)if(l[w]!==I[C]){if(w!==1||C!==1)do if(w--,C--,C<0||l[w]!==I[C]){var L=`
21
+ `+l[w].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),typeof e=="function"&&q.set(e,L),L}while(w>=1&&C>=0);break}}}finally{ue=!1,se.current=h,er(),Error.prepareStackTrace=d}var z=e?e.displayName||e.name:"",Y=z?Q(z):"";return typeof e=="function"&&q.set(e,Y),Y}function nr(e,r,n){return ke(e,!1)}function tr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ee(e,r,n){if(e==null)return"";if(typeof e=="function")return ke(e,tr(e));if(typeof e=="string")return Q(e);switch(e){case m:return Q("Suspense");case s:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return nr(e.render);case g:return ee(e.type,r,n);case p:{var a=e,d=a._payload,h=a._init;try{return ee(h(d),r,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Pe={},Ie=D.ReactDebugCurrentFrame;function re(e){if(e){var r=e._owner,n=ee(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(n)}else Ie.setExtraStackFrame(null)}function ar(e,r,n,a,d){{var h=Function.call.bind(G);for(var u in e)if(h(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var I=Error((a||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}l=e[u](r,u,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){l=w}l&&!(l instanceof Error)&&(re(d),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).",a||"React class",n,u,typeof l),re(null)),l instanceof Error&&!(l.message in Pe)&&(Pe[l.message]=!0,re(d),R("Failed %s type: %s",n,l.message),re(null))}}}var ir=Array.isArray;function ce(e){return ir(e)}function or(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function sr(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function Fe(e){if(sr(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",or(e)),Ae(e)}var X=D.ReactCurrentOwner,lr={key:!0,ref:!0,__self:!0,__source:!0},De,Me,fe;fe={};function ur(e){if(G.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function cr(e){if(G.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function fr(e,r){if(typeof e.ref=="string"&&X.current&&r&&X.current.stateNode!==r){var n=x(X.current.type);fe[n]||(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',x(X.current.type),e.ref),fe[n]=!0)}}function dr(e,r){{var n=function(){De||(De=!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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function vr(e,r){{var n=function(){Me||(Me=!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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var br=function(e,r,n,a,d,h,u){var l={$$typeof:v,type:e,key:r,ref:n,props:u,_owner:h};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function mr(e,r,n,a,d){{var h,u={},l=null,I=null;n!==void 0&&(Fe(n),l=""+n),cr(r)&&(Fe(r.key),l=""+r.key),ur(r)&&(I=r.ref,fr(r,d));for(h in r)G.call(r,h)&&!lr.hasOwnProperty(h)&&(u[h]=r[h]);if(e&&e.defaultProps){var w=e.defaultProps;for(h in w)u[h]===void 0&&(u[h]=w[h])}if(l||I){var C=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&dr(u,C),I&&vr(u,C)}return br(e,l,I,d,a,X.current,u)}}var de=D.ReactCurrentOwner,Le=D.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,n=ee(e.type,e._source,r?r.type:null);Le.setExtraStackFrame(n)}else Le.setExtraStackFrame(null)}var ve;ve=!1;function be(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function We(){{if(de.current){var e=x(de.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function mr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function hr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var Ne={};function pr(e){{var r=Pe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+n+"."}return""}}var Ve={};function pr(e){{var r=We();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=pr(r);if(Ne[t])return;Ne[t]=!0;var n="";e&&e._owner&&e._owner!==re.current&&(n=" It was passed a child from "+S(e._owner.type)+"."),L(e),j('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),L(null)}}function Ae(e,r){{if(typeof e!="object")return;if(Q(e))for(var t=0;t<e.length;t++){var n=e[t];ne(n)&&ke(n,r)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var c=k(e);if(typeof c=="function"&&c!==e.entries)for(var m=c.call(e),l;!(l=m.next()).done;)ne(l.value)&&ke(l.value,r)}}}function hr(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===f||r.$$typeof===p))t=r.propTypes;else return;if(t){var n=S(r);nr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!te){te=!0;var c=S(r);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){L(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),L(null);break}}e.ref!==null&&(L(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}var Fe={};function De(e,r,t,n,c,m){{var l=qe(e);if(!l){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=mr(c);w?i+=w:i+=Pe();var y;e===null?y="null":Q(e)?y="array":e!==void 0&&e.$$typeof===v?(y="<"+(S(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,i)}var g=br(e,r,t,c,m);if(g==null)return g;if(l){var T=r.children;if(T!==void 0)if(n)if(Q(T)){for(var W=0;W<T.length;W++)Ae(T[W],e);Object.freeze&&Object.freeze(T)}else j("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 Ae(T,e)}if(U.call(r,"key")){var F=S(e),C=Object.keys(r).filter(function(xr){return xr!=="key"}),ae=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[F+ae]){var jr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+n+">.")}return r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=pr(r);if(Ve[n])return;Ve[n]=!0;var a="";e&&e._owner&&e._owner!==de.current&&(a=" It was passed a child from "+x(e._owner.type)+"."),B(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.',n,a),B(null)}}function $e(e,r){{if(typeof e!="object")return;if(ce(e))for(var n=0;n<e.length;n++){var a=e[n];be(a)&&Ye(a,r)}else if(be(e))e._store&&(e._store.validated=!0);else if(e){var d=y(e);if(typeof d=="function"&&d!==e.entries)for(var h=d.call(e),u;!(u=h.next()).done;)be(u.value)&&Ye(u.value,r)}}}function gr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===g))n=r.propTypes;else return;if(n){var a=x(r);ar(n,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!ve){ve=!0;var d=x(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"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 yr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var a=r[n];if(a!=="children"&&a!=="key"){B(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),B(null);break}}e.ref!==null&&(B(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),B(null))}}var Ue={};function Be(e,r,n,a,d,h){{var u=U(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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 I=hr(d);I?l+=I:l+=We();var w;e===null?w="null":ce(e)?w="array":e!==void 0&&e.$$typeof===v?(w="<"+(x(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):w=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",w,l)}var C=mr(e,r,n,d,h);if(C==null)return C;if(u){var L=r.children;if(L!==void 0)if(a)if(ce(L)){for(var z=0;z<L.length;z++)$e(L[z],e);Object.freeze&&Object.freeze(L)}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 $e(L,e)}if(G.call(r,"key")){var Y=x(e),F=Object.keys(r).filter(function(wr){return wr!=="key"}),me=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ue[Y+me]){var _r=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,ae,F,jr,F),Fe[F+ae]=!0}}return e===u?yr(g):hr(g),g}}function gr(e,r,t){return De(e,r,t,!0)}function Rr(e,r,t){return De(e,r,t,!1)}var _r=Rr,Er=gr;$.Fragment=u,$.jsx=_r,$.jsxs=Er}()),$}process.env.NODE_ENV==="production"?X.exports=Ie():X.exports=Ve();var o=X.exports;function se(s){var v,a,u="";if(typeof s=="string"||typeof s=="number")u+=s;else if(typeof s=="object")if(Array.isArray(s)){var R=s.length;for(v=0;v<R;v++)s[v]&&(a=se(s[v]))&&(u&&(u+=" "),u+=a)}else for(a in s)s[a]&&(u&&(u+=" "),u+=a);return u}function Le(){for(var s,v,a=0,u="",R=arguments.length;a<R;a++)(s=arguments[a])&&(v=se(s))&&(u&&(u+=" "),u+=v);return u}const le=s=>typeof s=="boolean"?`${s}`:s===0?"0":s,ue=Le,We=(s,v)=>a=>{var u;if((v==null?void 0:v.variants)==null)return ue(s,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:R,defaultVariants:_}=v,x=Object.keys(R).map(d=>{const b=a==null?void 0:a[d],p=_==null?void 0:_[d];if(b===null)return null;const E=le(b)||le(p);return R[d][E]}),h=a&&Object.entries(a).reduce((d,b)=>{let[p,E]=b;return E===void 0||(d[p]=E),d},{}),f=v==null||(u=v.compoundVariants)===null||u===void 0?void 0:u.reduce((d,b)=>{let{class:p,className:E,...N}=b;return Object.entries(N).every(D=>{let[I,k]=D;return Array.isArray(k)?k.includes({..._,...h}[I]):{..._,...h}[I]===k})?[...d,p,E]:d},[]);return ue(s,x,f,a==null?void 0:a.class,a==null?void 0:a.className)},wr="",ce=We("button",{variants:{variant:{outlined:"button-outlined",filled:"button-filled",icon:"button-icon"},color:{primary:"button-color-primary",secondary:"button-color-secondary",error:"button-color-error",clear:"button-color-clear"},size:{sm:"button-size-sm",md:"button-size-md",lg:"button-size-lg",xl:"button-size-xl"},pill:{true:"button-pill"},active:{true:"button-active"},iconLeft:{true:"button-with-icon-left"},iconRight:{true:"button-with-icon-right"},iconLeftJustified:{true:"button-with-icon-left button-with-icon-left-justified"},iconRightJustified:{true:"button-with-icon-right button-with-icon-right-justified"},iconOnly:{true:"button-icon-only"}},defaultVariants:{variant:"filled",color:"primary",size:"md"},compoundVariants:[{variant:"outlined",color:"primary",className:"button-outlined-primary"},{variant:"outlined",color:"secondary",className:"button-outlined-secondary"},{variant:"outlined",color:"error",className:"button-outlined-error"},{variant:"outlined",color:"clear",className:"button-outlined-clear"},{variant:"filled",color:"primary",className:"button-filled-primary"},{variant:"filled",color:"secondary",className:"button-filled-secondary"},{variant:"filled",color:"error",className:"button-filled-error"},{variant:"filled",color:"clear",className:"button-filled-clear"},{variant:"icon",color:"primary",className:"button-icon-primary"},{variant:"icon",color:"secondary",className:"button-icon-secondary"},{variant:"icon",color:"error",className:"button-icon-error"},{variant:"icon",color:"clear",className:"button-icon-clear"}]}),fe=P.forwardRef(({className:s,variant:v,color:a,size:u,pill:R,active:_,iconLeft:x,iconRight:h,iconLeftJustified:f,iconRightJustified:d,iconOnly:b,width:p,children:E,style:N,...D},I)=>{const k={...N||{},...p?{width:p}:{}};return o.jsxs("button",{className:ce({variant:v,color:a,size:u,pill:R,active:_,iconLeft:!!x,iconRight:!!h,iconLeftJustified:!!f,iconRightJustified:!!d,iconOnly:!!b,className:s}),style:k,ref:I,...D,children:[x&&o.jsx("span",{className:"button-icon-left",children:x}),f&&o.jsx("span",{className:"button-icon-left",children:f}),b?o.jsx("span",{children:b}):E,h&&o.jsx("span",{className:"button-icon-right",children:h}),d&&o.jsx("span",{className:"button-icon-right",children:d})]})});fe.displayName="Button";const Ye=({className:s})=>o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:o.jsx("path",{d:"M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z",fill:"#F9FAFB"})}),$e=({icon:s,url:v,label:a,submenu:u,collapsed:R})=>{const[_,x]=P.useState(!1),h=u&&u.length>0,f=d=>{h&&(d.preventDefault(),x(!_))};return o.jsxs("div",{className:`sidebar-item ${_?"open":""}`,children:[o.jsxs("a",{href:v,className:"sidebar-link sidebar-collapsed",onClick:h?f:void 0,children:[o.jsx("div",{className:"sidebar-icon",children:s}),!R&&o.jsxs("div",{className:"sidebar-content",children:[o.jsx("span",{className:"sidebar-label",children:a}),h&&o.jsx("span",{className:"submenu-arrow",children:o.jsx(Ye,{})})]})]}),h&&_&&!R&&o.jsx("div",{className:"submenu",children:u.map((d,b)=>o.jsxs("a",{href:d.url,className:"submenu-item",children:[o.jsx("div",{className:"submenu-icon",children:d.icon}),o.jsx("span",{className:"submenu-label",children:d.label})]},b))})]})},Cr="",Me=({className:s})=>o.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[o.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),o.jsx("path",{d:"M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z",fill:"#002244"})]}),Ue=({logo:s,logoCollapsed:v,items:a,logoutIcon:u,onLogout:R,logoutLabel:_="Cerrar sesión",collapsed:x=!1,onToggle:h})=>{const[f,d]=P.useState(x),b=()=>{d(!f),h&&h()};return o.jsxs("div",{className:"sidebar-wrapper",children:[o.jsxs("div",{className:`sidebar ${f?"sidebar-collapsed":""}`,children:[o.jsx("div",{className:"sidebar-header",children:o.jsx("div",{className:"sidebar-logo",children:f?o.jsx("span",{className:"logo-text",children:v}):o.jsx("span",{className:"logo-text",children:s})})}),o.jsx("div",{className:"sidebar-menu",children:a.map((p,E)=>o.jsx($e,{icon:p.icon,url:p.url,label:p.label,submenu:p.submenu,collapsed:f},E))}),R&&o.jsx("div",{className:"sidebar-footer",children:o.jsxs("button",{className:"logout-button",onClick:R,children:[u,!f&&o.jsx("span",{children:_})]})})]}),o.jsx("button",{className:`sidebar-toggle-icon${f?" collapsed":""}`,onClick:b,"aria-label":"Toggle sidebar",children:o.jsx(Me,{})})]})};O.Button=fe,O.Sidebar=Ue,O.buttonVariants=ce,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
32
+ <%s key={someKey} {...props} />`,me,Y,_r,Y),Ue[Y+me]=!0}}return e===c?yr(C):gr(C),C}}function xr(e,r,n){return Be(e,r,n,!0)}function jr(e,r,n){return Be(e,r,n,!1)}var Er=jr,Rr=xr;K.Fragment=c,K.jsx=Er,K.jsxs=Rr}()),K}process.env.NODE_ENV==="production"?ne.exports=ze():ne.exports=Je();var t=ne.exports;function ge(o){var v,i,c="";if(typeof o=="string"||typeof o=="number")c+=o;else if(typeof o=="object")if(Array.isArray(o)){var j=o.length;for(v=0;v<j;v++)o[v]&&(i=ge(o[v]))&&(c&&(c+=" "),c+=i)}else for(i in o)o[i]&&(c&&(c+=" "),c+=i);return c}function Ke(){for(var o,v,i=0,c="",j=arguments.length;i<j;i++)(o=arguments[i])&&(v=ge(o))&&(c&&(c+=" "),c+=v);return c}const ye=o=>typeof o=="boolean"?`${o}`:o===0?"0":o,xe=Ke,Ge=(o,v)=>i=>{var c;if((v==null?void 0:v.variants)==null)return xe(o,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:j,defaultVariants:k}=v,O=Object.keys(j).map(m=>{const s=i==null?void 0:i[m],g=k==null?void 0:k[m];if(s===null)return null;const p=ye(s)||ye(g);return j[m][p]}),E=i&&Object.entries(i).reduce((m,s)=>{let[g,p]=s;return p===void 0||(m[g]=p),m},{}),f=v==null||(c=v.compoundVariants)===null||c===void 0?void 0:c.reduce((m,s)=>{let{class:g,className:p,..._}=s;return Object.entries(_).every(N=>{let[W,y]=N;return Array.isArray(y)?y.includes({...k,...E}[W]):{...k,...E}[W]===y})?[...m,g,p]:m},[]);return xe(o,O,f,i==null?void 0:i.class,i==null?void 0:i.className)},Cr="",je=Ge("button",{variants:{variant:{outlined:"button-outlined",filled:"button-filled",icon:"button-icon"},color:{primary:"button-color-primary",secondary:"button-color-secondary",error:"button-color-error",clear:"button-color-clear"},size:{sm:"button-size-sm",md:"button-size-md",lg:"button-size-lg",xl:"button-size-xl"},pill:{true:"button-pill"},active:{true:"button-active"},iconLeft:{true:"button-with-icon-left"},iconRight:{true:"button-with-icon-right"},iconLeftJustified:{true:"button-with-icon-left button-with-icon-left-justified"},iconRightJustified:{true:"button-with-icon-right button-with-icon-right-justified"},iconOnly:{true:"button-icon-only"}},defaultVariants:{variant:"filled",color:"primary",size:"md"},compoundVariants:[{variant:"outlined",color:"primary",className:"button-outlined-primary"},{variant:"outlined",color:"secondary",className:"button-outlined-secondary"},{variant:"outlined",color:"error",className:"button-outlined-error"},{variant:"outlined",color:"clear",className:"button-outlined-clear"},{variant:"filled",color:"primary",className:"button-filled-primary"},{variant:"filled",color:"secondary",className:"button-filled-secondary"},{variant:"filled",color:"error",className:"button-filled-error"},{variant:"filled",color:"clear",className:"button-filled-clear"},{variant:"icon",color:"primary",className:"button-icon-primary"},{variant:"icon",color:"secondary",className:"button-icon-secondary"},{variant:"icon",color:"error",className:"button-icon-error"},{variant:"icon",color:"clear",className:"button-icon-clear"}]}),Ee=P.forwardRef(({className:o,variant:v,color:i,size:c,pill:j,active:k,iconLeft:O,iconRight:E,iconLeftJustified:f,iconRightJustified:m,iconOnly:s,width:g,children:p,style:_,...N},W)=>{const y={..._||{},...g?{width:g}:{}};return t.jsxs("button",{className:je({variant:v,color:i,size:c,pill:j,active:k,iconLeft:!!O,iconRight:!!E,iconLeftJustified:!!f,iconRightJustified:!!m,iconOnly:!!s,className:o}),style:y,ref:W,...N,children:[O&&t.jsx("span",{className:"button-icon-left",children:O}),f&&t.jsx("span",{className:"button-icon-left",children:f}),s?t.jsx("span",{children:s}):p,E&&t.jsx("span",{className:"button-icon-right",children:E}),m&&t.jsx("span",{className:"button-icon-right",children:m})]})});Ee.displayName="Button";const Xe=({className:o})=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:t.jsx("path",{d:"M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z",fill:"#F9FAFB"})}),He=({icon:o,url:v,label:i,submenu:c,collapsed:j,active:k,activePath:O,isOpen:E,onToggle:f,onExpand:m,onSetActive:s,isMobile:g=!1})=>{const p=c&&c.length>0,_=p&&c.some(y=>y.url===O),N=k||E&&p||_||v===O,W=y=>{if(y.preventDefault(),g&&p){f();return}if(s&&s(v),j&&m){m();return}p&&!j&&f()};return t.jsx("div",{className:`sidebar-item ${E?"open":""} `,children:t.jsxs("div",{className:`sidebar-item-wrapper ${N&&!j?"active":""}`,children:[t.jsxs("a",{href:v,className:`sidebar-link sidebar-collapsed ${N?"active-text":""}`,onClick:W,children:[t.jsx("div",{className:`sidebar-icon ${N?"active-text":""}`,children:o}),(!j||g)&&t.jsxs("div",{className:"sidebar-content",children:[t.jsx("span",{className:"sidebar-label",children:i}),p&&t.jsx("span",{className:"submenu-arrow",children:t.jsx(Xe,{className:`${N?"active-text":""}`})})]})]}),p&&(!j||g)&&t.jsx("div",{className:"submenu",children:c.map((y,D)=>{const R=y.url===O;return t.jsx("a",{href:y.url,className:`submenu-item ${R?"active-text":""}`,onClick:()=>s&&s(y.url),children:t.jsx("span",{className:"submenu-label",children:y.label})},D)})})]})})},Sr="",Ze=({className:o})=>t.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[t.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),t.jsx("path",{d:"M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z",fill:"#002244"})]}),Re=()=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsxs("g",{className:"hamburger-icon",children:[t.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line top-line"}),t.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line middle-line"}),t.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line bottom-line"})]})}),Qe=({logo:o,logoCollapsed:v,items:i,logoutIcon:c,onLogout:j,logoutLabel:k="Cerrar sesión",collapsed:O=!1,onToggle:E,activePath:f,onActiveChange:m})=>{const[s,g]=P.useState(O),[p,_]=P.useState(null),[N,W]=P.useState(f),[y,D]=P.useState(!1),[R,$]=P.useState(!1),[M,te]=P.useState(!1);P.useEffect(()=>{const b=()=>{te(window.innerWidth<=768)};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[]),P.useEffect(()=>{var b;if(f){W(f);const S=i.findIndex(x=>{var T;return x.url===f||((T=x.submenu)==null?void 0:T.some(A=>A.url===f))});S!==-1&&((b=i[S].submenu)!=null&&b.length?_(S):_(null))}},[f,i]);const ae=()=>{g(!s),E&&E()},ie=()=>{var b;if(s)if(g(!1),E&&E(),N){const S=i.findIndex(x=>{var T;return x.url===N||((T=x.submenu)==null?void 0:T.some(A=>A.url===N))});S!==-1&&((b=i[S].submenu)!=null&&b.length)?_(S):_(null)}else _(null)},oe=b=>{_(p===b?null:b),M&&D(!0)},H=b=>{W(b);const S=i.findIndex(x=>{var T;return x.url===b||((T=x.submenu)==null?void 0:T.some(A=>A.url===b))});if(S!==-1){const x=i[S];x.submenu&&x.submenu.length>0?_(S):_(null)}else _(null);m&&m(b),M&&(i.some(T=>{var A;return(A=T.submenu)==null?void 0:A.some(Z=>Z.url===b)})||($(!0),setTimeout(()=>{D(!1),$(!1)},500)))},U=()=>{y?($(!0),setTimeout(()=>{D(!1),$(!1)},500)):D(!0)};return t.jsxs(t.Fragment,{children:[M&&t.jsxs("div",{className:"mobile-navbar",children:[t.jsx("div",{className:"mobile-logo",children:o}),t.jsx("button",{className:`mobile-menu-button ${y?"open":""}`,onClick:U,"aria-label":"Toggle mobile menu",children:t.jsx(Re,{})})]}),!M&&t.jsx("button",{className:`mobile-menu-button ${y?"open":""}`,onClick:U,"aria-label":"Toggle mobile menu",style:{display:"none"},children:t.jsx(Re,{})}),M&&(y||R)&&t.jsx("div",{className:`sidebar-overlay ${y?"visible":""}`,onClick:U}),t.jsxs("div",{className:`sidebar-wrapper ${y?"mobile-open":""} ${R?"mobile-closing":""}`,children:[t.jsxs("div",{className:`sidebar ${!M&&s?"sidebar-collapsed":""} ${M?"sidebar-mobile":""}`,children:[!M&&t.jsx("div",{className:"sidebar-header",children:t.jsx("div",{className:"sidebar-logo",children:s?t.jsx("span",{className:"logo-text",children:v}):t.jsx("span",{className:"logo-text",children:o})})}),M&&(y||R)&&t.jsxs("div",{className:"mobile-header",children:[t.jsx("div",{className:"mobile-logo-menu",children:o}),t.jsx("button",{className:"mobile-close-button",onClick:U,"aria-label":"Close menu",children:"×"})]}),t.jsx("div",{className:"sidebar-menu",children:i.map((b,S)=>t.jsx(He,{icon:b.icon,url:b.url,label:b.label,submenu:b.submenu,collapsed:s,active:b.active||b.url===N,activePath:N,isOpen:p===S,onToggle:()=>oe(S),onExpand:ie,onSetActive:H,isMobile:M},S))}),j&&t.jsx("div",{className:"sidebar-footer",children:t.jsxs("button",{className:"logout-button",onClick:j,children:[c,!s&&t.jsx("span",{children:k})]})})]}),!M&&t.jsx("button",{className:`sidebar-toggle-icon${s?" collapsed":""}`,onClick:ae,"aria-label":"Toggle sidebar",children:t.jsx(Ze,{})})]})]})};V.Button=Ee,V.Sidebar=Qe,V.buttonVariants=je,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
33
33
  //# sourceMappingURL=index.umd.js.map