levannta-ui 1.0.40-react18 → 1.0.42-react18

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
@@ -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 ge;function nr(){if(ge)return K;ge=1;var t=j,a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function d(f,c,b){var u,w={},g=null,v=null;b!==void 0&&(g=""+b),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(v=c.ref);for(u in c)l.call(c,u)&&!h.hasOwnProperty(u)&&(w[u]=c[u]);if(f&&f.defaultProps)for(u in c=f.defaultProps,c)w[u]===void 0&&(w[u]=c[u]);return{$$typeof:a,type:f,key:g,ref:v,props:w,_owner:i.current}}return K.Fragment=n,K.jsx=d,K.jsxs=d,K}var X={};/**
9
+ */var be;function nr(){if(be)return K;be=1;var t=j,a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function f(u,c,g){var d,w={},b=null,v=null;g!==void 0&&(b=""+g),c.key!==void 0&&(b=""+c.key),c.ref!==void 0&&(v=c.ref);for(d in c)l.call(c,d)&&!h.hasOwnProperty(d)&&(w[d]=c[d]);if(u&&u.defaultProps)for(d in c=u.defaultProps,c)w[d]===void 0&&(w[d]=c[d]);return{$$typeof:a,type:u,key:b,ref:v,props:w,_owner:i.current}}return K.Fragment=n,K.jsx=f,K.jsxs=f,K}var X={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,18 +14,18 @@
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 be;function sr(){return be||(be=1,process.env.NODE_ENV!=="production"&&function(){var t=j,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,p="@@iterator";function m(e){if(e===null||typeof e!="object")return null;var s=y&&e[y]||e[p];return typeof s=="function"?s:null}var I=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var s=arguments.length,o=new Array(s>1?s-1:0),x=1;x<s;x++)o[x-1]=arguments[x];F("error",e,o)}}function F(e,s,o){{var x=I.ReactDebugCurrentFrame,k=x.getStackAddendum();k!==""&&(s+="%s",o=o.concat([k]));var R=o.map(function(C){return String(C)});R.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,R)}}var $=!1,ee=!1,U=!1,Z=!1,q=!1,G;G=Symbol.for("react.module.reference");function P(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===h||q||e===i||e===b||e===u||Z||e===v||$||ee||U||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===w||e.$$typeof===d||e.$$typeof===f||e.$$typeof===c||e.$$typeof===G||e.getModuleId!==void 0))}function _(e,s,o){var x=e.displayName;if(x)return x;var k=s.displayName||s.name||"";return k!==""?o+"("+k+")":o}function E(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&T("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 l:return"Fragment";case n:return"Portal";case h:return"Profiler";case i:return"StrictMode";case b:return"Suspense";case u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var s=e;return E(s)+".Consumer";case d:var o=e;return E(o._context)+".Provider";case c:return _(e,e.render,"ForwardRef");case w:var x=e.displayName||null;return x!==null?x:L(e.type)||"Memo";case g:{var k=e,R=k._payload,C=k._init;try{return L(C(R))}catch{return null}}}return null}var z=Object.assign,D=0,re,Me,ze,Ae,De,Ve,Fe;function Be(){}Be.__reactDisabledLog=!0;function Ir(){{if(D===0){re=console.log,Me=console.info,ze=console.warn,Ae=console.error,De=console.group,Ve=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Or(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:re}),info:z({},e,{value:Me}),warn:z({},e,{value:ze}),error:z({},e,{value:Ae}),group:z({},e,{value:De}),groupCollapsed:z({},e,{value:Ve}),groupEnd:z({},e,{value:Fe})})}D<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=I.ReactCurrentDispatcher,ce;function te(e,s,o){{if(ce===void 0)try{throw Error()}catch(k){var x=k.stack.trim().match(/\n( *(at )?)/);ce=x&&x[1]||""}return`
18
- `+ce+e}}var ue=!1,ne;{var $r=typeof WeakMap=="function"?WeakMap:Map;ne=new $r}function We(e,s){if(!e||ue)return"";{var o=ne.get(e);if(o!==void 0)return o}var x;ue=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=oe.current,oe.current=null,Ir();try{if(s){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(V){x=V}Reflect.construct(e,[],C)}else{try{C.call()}catch(V){x=V}e.call(C.prototype)}}else{try{throw Error()}catch(V){x=V}e()}}catch(V){if(V&&x&&typeof V.stack=="string"){for(var N=V.stack.split(`
17
+ */var pe;function sr(){return pe||(pe=1,process.env.NODE_ENV!=="production"&&function(){var t=j,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,p="@@iterator";function m(e){if(e===null||typeof e!="object")return null;var s=y&&e[y]||e[p];return typeof s=="function"?s:null}var I=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var s=arguments.length,o=new Array(s>1?s-1:0),x=1;x<s;x++)o[x-1]=arguments[x];F("error",e,o)}}function F(e,s,o){{var x=I.ReactDebugCurrentFrame,k=x.getStackAddendum();k!==""&&(s+="%s",o=o.concat([k]));var R=o.map(function(C){return String(C)});R.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,R)}}var $=!1,ee=!1,U=!1,Z=!1,q=!1,G;G=Symbol.for("react.module.reference");function P(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===h||q||e===i||e===g||e===d||Z||e===v||$||ee||U||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===w||e.$$typeof===f||e.$$typeof===u||e.$$typeof===c||e.$$typeof===G||e.getModuleId!==void 0))}function _(e,s,o){var x=e.displayName;if(x)return x;var k=s.displayName||s.name||"";return k!==""?o+"("+k+")":o}function E(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&T("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 l:return"Fragment";case n:return"Portal";case h:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var s=e;return E(s)+".Consumer";case f:var o=e;return E(o._context)+".Provider";case c:return _(e,e.render,"ForwardRef");case w:var x=e.displayName||null;return x!==null?x:L(e.type)||"Memo";case b:{var k=e,R=k._payload,C=k._init;try{return L(C(R))}catch{return null}}}return null}var z=Object.assign,D=0,re,Me,ze,Ae,De,Ve,Fe;function Be(){}Be.__reactDisabledLog=!0;function Or(){{if(D===0){re=console.log,Me=console.info,ze=console.warn,Ae=console.error,De=console.group,Ve=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function $r(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:re}),info:z({},e,{value:Me}),warn:z({},e,{value:ze}),error:z({},e,{value:Ae}),group:z({},e,{value:De}),groupCollapsed:z({},e,{value:Ve}),groupEnd:z({},e,{value:Fe})})}D<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=I.ReactCurrentDispatcher,ue;function te(e,s,o){{if(ue===void 0)try{throw Error()}catch(k){var x=k.stack.trim().match(/\n( *(at )?)/);ue=x&&x[1]||""}return`
18
+ `+ue+e}}var de=!1,ne;{var Mr=typeof WeakMap=="function"?WeakMap:Map;ne=new Mr}function We(e,s){if(!e||de)return"";{var o=ne.get(e);if(o!==void 0)return o}var x;de=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=ce.current,ce.current=null,Or();try{if(s){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(V){x=V}Reflect.construct(e,[],C)}else{try{C.call()}catch(V){x=V}e.call(C.prototype)}}else{try{throw Error()}catch(V){x=V}e()}}catch(V){if(V&&x&&typeof V.stack=="string"){for(var N=V.stack.split(`
19
19
  `),A=x.stack.split(`
20
20
  `),O=N.length-1,M=A.length-1;O>=1&&M>=0&&N[O]!==A[M];)M--;for(;O>=1&&M>=0;O--,M--)if(N[O]!==A[M]){if(O!==1||M!==1)do if(O--,M--,M<0||N[O]!==A[M]){var B=`
21
- `+N[O].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,B),B}while(O>=1&&M>=0);break}}}finally{ue=!1,oe.current=R,Or(),Error.prepareStackTrace=k}var J=e?e.displayName||e.name:"",Y=J?te(J):"";return typeof e=="function"&&ne.set(e,Y),Y}function Mr(e,s,o){return We(e,!1)}function zr(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function se(e,s,o){if(e==null)return"";if(typeof e=="function")return We(e,zr(e));if(typeof e=="string")return te(e);switch(e){case b:return te("Suspense");case u:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Mr(e.render);case w:return se(e.type,s,o);case g:{var x=e,k=x._payload,R=x._init;try{return se(R(k),s,o)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Pe={},Ye=I.ReactDebugCurrentFrame;function ae(e){if(e){var s=e._owner,o=se(e.type,e._source,s?s.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}function Ar(e,s,o,x,k){{var R=Function.call.bind(Q);for(var C in e)if(R(e,C)){var N=void 0;try{if(typeof e[C]!="function"){var A=Error((x||"React class")+": "+o+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}N=e[C](s,C,x,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){N=O}N&&!(N instanceof Error)&&(ae(k),T("%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).",x||"React class",o,C,typeof N),ae(null)),N instanceof Error&&!(N.message in Pe)&&(Pe[N.message]=!0,ae(k),T("Failed %s type: %s",o,N.message),ae(null))}}}var Dr=Array.isArray;function de(e){return Dr(e)}function Vr(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,o=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Fr(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ge(e){if(Fr(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vr(e)),Ue(e)}var He=I.ReactCurrentOwner,Br={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function Wr(e){if(Q.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function Pr(e){if(Q.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function Yr(e,s){typeof e.ref=="string"&&He.current}function Ur(e,s){{var o=function(){Je||(Je=!0,T("%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)",s))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Gr(e,s){{var o=function(){Ke||(Ke=!0,T("%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)",s))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Hr=function(e,s,o,x,k,R,C){var N={$$typeof:a,type:e,key:s,ref:o,props:C,_owner:R};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function Jr(e,s,o,x,k){{var R,C={},N=null,A=null;o!==void 0&&(Ge(o),N=""+o),Pr(s)&&(Ge(s.key),N=""+s.key),Wr(s)&&(A=s.ref,Yr(s,k));for(R in s)Q.call(s,R)&&!Br.hasOwnProperty(R)&&(C[R]=s[R]);if(e&&e.defaultProps){var O=e.defaultProps;for(R in O)C[R]===void 0&&(C[R]=O[R])}if(N||A){var M=typeof e=="function"?e.displayName||e.name||"Unknown":e;N&&Ur(C,M),A&&Gr(C,M)}return Hr(e,N,A,k,x,He.current,C)}}var fe=I.ReactCurrentOwner,Xe=I.ReactDebugCurrentFrame;function H(e){if(e){var s=e._owner,o=se(e.type,e._source,s?s.type:null);Xe.setExtraStackFrame(o)}else Xe.setExtraStackFrame(null)}var he;he=!1;function ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function Ze(){{if(fe.current){var e=L(fe.current.type);if(e)return`
21
+ `+N[O].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,B),B}while(O>=1&&M>=0);break}}}finally{de=!1,ce.current=R,$r(),Error.prepareStackTrace=k}var J=e?e.displayName||e.name:"",Y=J?te(J):"";return typeof e=="function"&&ne.set(e,Y),Y}function zr(e,s,o){return We(e,!1)}function Ar(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function se(e,s,o){if(e==null)return"";if(typeof e=="function")return We(e,Ar(e));if(typeof e=="string")return te(e);switch(e){case g:return te("Suspense");case d:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return zr(e.render);case w:return se(e.type,s,o);case b:{var x=e,k=x._payload,R=x._init;try{return se(R(k),s,o)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Pe={},Ye=I.ReactDebugCurrentFrame;function ae(e){if(e){var s=e._owner,o=se(e.type,e._source,s?s.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}function Dr(e,s,o,x,k){{var R=Function.call.bind(Q);for(var C in e)if(R(e,C)){var N=void 0;try{if(typeof e[C]!="function"){var A=Error((x||"React class")+": "+o+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}N=e[C](s,C,x,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){N=O}N&&!(N instanceof Error)&&(ae(k),T("%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).",x||"React class",o,C,typeof N),ae(null)),N instanceof Error&&!(N.message in Pe)&&(Pe[N.message]=!0,ae(k),T("Failed %s type: %s",o,N.message),ae(null))}}}var Vr=Array.isArray;function fe(e){return Vr(e)}function Fr(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,o=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Br(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ge(e){if(Br(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(e)),Ue(e)}var He=I.ReactCurrentOwner,Wr={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function Pr(e){if(Q.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function Yr(e){if(Q.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function Ur(e,s){typeof e.ref=="string"&&He.current}function Gr(e,s){{var o=function(){Je||(Je=!0,T("%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)",s))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Hr(e,s){{var o=function(){Ke||(Ke=!0,T("%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)",s))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Jr=function(e,s,o,x,k,R,C){var N={$$typeof:a,type:e,key:s,ref:o,props:C,_owner:R};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function Kr(e,s,o,x,k){{var R,C={},N=null,A=null;o!==void 0&&(Ge(o),N=""+o),Yr(s)&&(Ge(s.key),N=""+s.key),Pr(s)&&(A=s.ref,Ur(s,k));for(R in s)Q.call(s,R)&&!Wr.hasOwnProperty(R)&&(C[R]=s[R]);if(e&&e.defaultProps){var O=e.defaultProps;for(R in O)C[R]===void 0&&(C[R]=O[R])}if(N||A){var M=typeof e=="function"?e.displayName||e.name||"Unknown":e;N&&Gr(C,M),A&&Hr(C,M)}return Jr(e,N,A,k,x,He.current,C)}}var he=I.ReactCurrentOwner,Xe=I.ReactDebugCurrentFrame;function H(e){if(e){var s=e._owner,o=se(e.type,e._source,s?s.type:null);Xe.setExtraStackFrame(o)}else Xe.setExtraStackFrame(null)}var ve;ve=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function Ze(){{if(he.current){var e=L(he.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function Kr(e){return""}var qe={};function Xr(e){{var s=Ze();if(!s){var o=typeof e=="string"?e:e.displayName||e.name;o&&(s=`
23
+ Check the render method of \``+e+"`."}return""}}function Xr(e){return""}var qe={};function Zr(e){{var s=Ze();if(!s){var o=typeof e=="string"?e:e.displayName||e.name;o&&(s=`
24
24
 
25
- Check the top-level render call using <`+o+">.")}return s}}function Qe(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Xr(s);if(qe[o])return;qe[o]=!0;var x="";e&&e._owner&&e._owner!==fe.current&&(x=" It was passed a child from "+L(e._owner.type)+"."),H(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,x),H(null)}}function er(e,s){{if(typeof e!="object")return;if(de(e))for(var o=0;o<e.length;o++){var x=e[o];ve(x)&&Qe(x,s)}else if(ve(e))e._store&&(e._store.validated=!0);else if(e){var k=m(e);if(typeof k=="function"&&k!==e.entries)for(var R=k.call(e),C;!(C=R.next()).done;)ve(C.value)&&Qe(C.value,s)}}}function Zr(e){{var s=e.type;if(s==null||typeof s=="string")return;var o;if(typeof s=="function")o=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===c||s.$$typeof===w))o=s.propTypes;else return;if(o){var x=L(s);Ar(o,e.props,"prop",x,e)}else if(s.PropTypes!==void 0&&!he){he=!0;var k=L(s);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qr(e){{for(var s=Object.keys(e.props),o=0;o<s.length;o++){var x=s[o];if(x!=="children"&&x!=="key"){H(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),H(null);break}}e.ref!==null&&(H(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),H(null))}}var rr={};function tr(e,s,o,x,k,R){{var C=P(e);if(!C){var N="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(N+=" 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 A=Kr();A?N+=A:N+=Ze();var O;e===null?O="null":de(e)?O="array":e!==void 0&&e.$$typeof===a?(O="<"+(L(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,N)}var M=Jr(e,s,o,k,R);if(M==null)return M;if(C){var B=s.children;if(B!==void 0)if(x)if(de(B)){for(var J=0;J<B.length;J++)er(B[J],e);Object.freeze&&Object.freeze(B)}else T("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 er(B,e)}if(Q.call(s,"key")){var Y=L(e),V=Object.keys(s).filter(function(st){return st!=="key"}),me=V.length>0?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}";if(!rr[Y+me]){var nt=V.length>0?"{"+V.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+o+">.")}return s}}function Qe(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Zr(s);if(qe[o])return;qe[o]=!0;var x="";e&&e._owner&&e._owner!==he.current&&(x=" It was passed a child from "+L(e._owner.type)+"."),H(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,x),H(null)}}function er(e,s){{if(typeof e!="object")return;if(fe(e))for(var o=0;o<e.length;o++){var x=e[o];me(x)&&Qe(x,s)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var k=m(e);if(typeof k=="function"&&k!==e.entries)for(var R=k.call(e),C;!(C=R.next()).done;)me(C.value)&&Qe(C.value,s)}}}function qr(e){{var s=e.type;if(s==null||typeof s=="string")return;var o;if(typeof s=="function")o=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===c||s.$$typeof===w))o=s.propTypes;else return;if(o){var x=L(s);Dr(o,e.props,"prop",x,e)}else if(s.PropTypes!==void 0&&!ve){ve=!0;var k=L(s);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qr(e){{for(var s=Object.keys(e.props),o=0;o<s.length;o++){var x=s[o];if(x!=="children"&&x!=="key"){H(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),H(null);break}}e.ref!==null&&(H(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),H(null))}}var rr={};function tr(e,s,o,x,k,R){{var C=P(e);if(!C){var N="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(N+=" 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 A=Xr();A?N+=A:N+=Ze();var O;e===null?O="null":fe(e)?O="array":e!==void 0&&e.$$typeof===a?(O="<"+(L(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,N)}var M=Kr(e,s,o,k,R);if(M==null)return M;if(C){var B=s.children;if(B!==void 0)if(x)if(fe(B)){for(var J=0;J<B.length;J++)er(B[J],e);Object.freeze&&Object.freeze(B)}else T("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 er(B,e)}if(Q.call(s,"key")){var Y=L(e),V=Object.keys(s).filter(function(at){return at!=="key"}),ge=V.length>0?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}";if(!rr[Y+ge]){var st=V.length>0?"{"+V.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,me,Y,nt,Y),rr[Y+me]=!0}}return e===l?qr(M):Zr(M),M}}function Qr(e,s,o){return tr(e,s,o,!0)}function et(e,s,o){return tr(e,s,o,!1)}var rt=et,tt=Qr;X.Fragment=l,X.jsx=rt,X.jsxs=tt}()),X}process.env.NODE_ENV==="production"?ie.exports=nr():ie.exports=sr();var r=ie.exports;function pe(t){var a,n,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(a=0;a<i;a++)t[a]&&(n=pe(t[a]))&&(l&&(l+=" "),l+=n)}else for(n in t)t[n]&&(l&&(l+=" "),l+=n);return l}function ar(){for(var t,a,n=0,l="",i=arguments.length;n<i;n++)(t=arguments[n])&&(a=pe(t))&&(l&&(l+=" "),l+=a);return l}const xe=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,je=ar,W=(t,a)=>n=>{var l;if((a==null?void 0:a.variants)==null)return je(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:h}=a,d=Object.keys(i).map(b=>{const u=n==null?void 0:n[b],w=h==null?void 0:h[b];if(u===null)return null;const g=xe(u)||xe(w);return i[b][g]}),f=n&&Object.entries(n).reduce((b,u)=>{let[w,g]=u;return g===void 0||(b[w]=g),b},{}),c=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((b,u)=>{let{class:w,className:g,...v}=u;return Object.entries(v).every(y=>{let[p,m]=y;return Array.isArray(m)?m.includes({...h,...f}[p]):{...h,...f}[p]===m})?[...b,w,g]:b},[]);return je(t,d,c,n==null?void 0:n.class,n==null?void 0:n.className)},we=W("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"}]}),ye=j.forwardRef(({className:t,variant:a,color:n,size:l,pill:i,active:h,iconLeft:d,iconRight:f,iconLeftJustified:c,iconRightJustified:b,iconOnly:u,width:w,children:g,style:v,...y},p)=>{const m={...v||{},...w?{width:w}:{}};return r.jsxs("button",{className:we({variant:a,color:n,size:l,pill:i,active:h,iconLeft:!!d,iconRight:!!f,iconLeftJustified:!!c,iconRightJustified:!!b,iconOnly:!!u,className:t}),style:m,ref:p,...y,children:[d&&r.jsx("span",{className:"button-icon-left",children:d}),c&&r.jsx("span",{className:"button-icon-left",children:c}),u?r.jsx("span",{children:u}):g,f&&r.jsx("span",{className:"button-icon-right",children:f}),b&&r.jsx("span",{className:"button-icon-right",children:b})]})});ye.displayName="Button";const ir=({className:t})=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.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"})}),lr=()=>{try{const t=require("react-router-dom");return t!=null&&t.Link?t.Link:null}catch{return null}},Ne=({to:t,href:a,className:n,onClick:l,children:i})=>{const h=lr();return h?j.createElement(h,{to:t,className:n,onClick:l},i):j.createElement("a",{href:a||t,className:n,onClick:l},i)},or=({icon:t,url:a,label:n,submenu:l,collapsed:i,active:h,activePath:d,isOpen:f,onToggle:c,onExpand:b,onSetActive:u,isMobile:w=!1})=>{const g=l&&l.length>0,v=g&&l.some(m=>m.url===d),y=h||f&&g||v||a===d,p=m=>{if(m.preventDefault(),w&&g){c();return}if(u&&u(a),i&&b){b();return}g&&!i&&c()};return r.jsx("div",{className:`sidebar-item ${f?"open":""} `,children:r.jsxs("div",{className:`sidebar-item-wrapper ${y&&!i?"active":""}`,children:[r.jsxs(Ne,{to:a,href:a,className:`sidebar-link sidebar-collapsed ${y?"active-text":""}`,onClick:p,children:[r.jsx("div",{className:`sidebar-icon ${y?"active-text":""}`,children:t}),(!i||w)&&r.jsxs("div",{className:"sidebar-content",children:[r.jsx("span",{className:"sidebar-label",children:n}),g&&r.jsx("span",{className:"submenu-arrow",children:r.jsx(ir,{className:`${y?"active-text":""}`})})]})]}),g&&(!i||w)&&r.jsx("div",{className:"submenu",children:l.map((m,I)=>{const T=m.url===d;return r.jsx(Ne,{to:m.url,href:m.url,className:`submenu-item ${T?"active-text":""}`,onClick:()=>u&&u(m.url),children:r.jsx("span",{className:"submenu-label",children:m.label})},I)})})]})})},cr=({className:t})=>r.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),r.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"})]}),Ce=()=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{className:"hamburger-icon",children:[r.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line top-line"}),r.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line middle-line"}),r.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line bottom-line"})]})}),ur=({logo:t,logoCollapsed:a,items:n,logoutIcon:l,onLogout:i,logoutLabel:h="Cerrar sesión",collapsed:d=!1,onToggle:f,activePath:c,onActiveChange:b})=>{const[u,w]=j.useState(d),[g,v]=j.useState(null),[y,p]=j.useState(c),[m,I]=j.useState(!1),[T,F]=j.useState(!1),[$,ee]=j.useState(!1);j.useEffect(()=>{const _=()=>{ee(window.innerWidth<=768)};return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[]),j.useEffect(()=>{var _;if(c){p(c);const E=n.findIndex(L=>{var z;return L.url===c||((z=L.submenu)==null?void 0:z.some(D=>D.url===c))});E!==-1&&((_=n[E].submenu)!=null&&_.length?v(E):v(null))}},[c,n]);const U=()=>{w(!u),f&&f()},Z=()=>{var _;if(u)if(w(!1),f&&f(),y){const E=n.findIndex(L=>{var z;return L.url===y||((z=L.submenu)==null?void 0:z.some(D=>D.url===y))});E!==-1&&((_=n[E].submenu)!=null&&_.length)?v(E):v(null)}else v(null)},q=_=>{v(g===_?null:_),$&&I(!0)},G=_=>{p(_);const E=n.findIndex(L=>{var z;return L.url===_||((z=L.submenu)==null?void 0:z.some(D=>D.url===_))});if(E!==-1){const L=n[E];L.submenu&&L.submenu.length>0?v(E):v(null)}else v(null);b&&b(_),$&&(n.some(z=>{var D;return(D=z.submenu)==null?void 0:D.some(re=>re.url===_)})||(F(!0),setTimeout(()=>{I(!1),F(!1)},500)))},P=()=>{m?(F(!0),setTimeout(()=>{I(!1),F(!1)},500)):I(!0)};return r.jsxs(r.Fragment,{children:[$&&r.jsxs("div",{className:"mobile-navbar",children:[r.jsx("div",{className:"mobile-logo",children:t}),r.jsx("button",{className:`mobile-menu-button ${m?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",children:r.jsx(Ce,{})})]}),!$&&r.jsx("button",{className:`mobile-menu-button ${m?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",style:{display:"none"},children:r.jsx(Ce,{})}),$&&(m||T)&&r.jsx("div",{className:`sidebar-overlay ${m?"visible":""}`,onClick:P}),r.jsxs("div",{className:`sidebar-wrapper ${m?"mobile-open":""} ${T?"mobile-closing":""}`,children:[r.jsxs("div",{className:`sidebar ${!$&&u?"sidebar-collapsed":""} ${$?"sidebar-mobile":""}`,children:[!$&&r.jsx("div",{className:"sidebar-header",children:r.jsx("div",{className:"sidebar-logo",children:u?r.jsx("span",{className:"logo-text",children:a}):r.jsx("span",{className:"logo-text",children:t})})}),$&&(m||T)&&r.jsxs("div",{className:"mobile-header",children:[r.jsx("div",{className:"mobile-logo-menu",children:t}),r.jsx("button",{className:"mobile-close-button",onClick:P,"aria-label":"Close menu",children:"×"})]}),r.jsx("div",{className:"sidebar-menu",children:n.map((_,E)=>r.jsx(or,{icon:_.icon,url:_.url,label:_.label,submenu:_.submenu,collapsed:u,active:_.active||_.url===y,activePath:y,isOpen:g===E,onToggle:()=>q(E),onExpand:Z,onSetActive:G,isMobile:$},E))}),i&&r.jsx("div",{className:"sidebar-footer",children:r.jsxs("button",{className:"logout-button",onClick:i,children:[l,!u&&r.jsx("span",{children:h})]})})]}),!$&&r.jsx("button",{className:`sidebar-toggle-icon${u?" collapsed":""}`,onClick:U,"aria-label":"Toggle sidebar",children:r.jsx(cr,{})})]})]})},dr=({isOpen:t,onClose:a,title:n="",children:l,position:i="right",size:h="medium",enableSwipeToClose:d=!0})=>{const[f,c]=j.useState(!1),b=j.useRef(null),u=j.useRef(0),w=j.useRef(0),g=50,v=()=>{!f&&t&&(c(!0),setTimeout(()=>{c(!1),a()},500))},y=m=>{d&&(u.current=m.touches[0].clientX,w.current=m.touches[0].clientY)},p=m=>{if(!d||!m.changedTouches[0])return;const I=m.changedTouches[0].clientX,T=m.changedTouches[0].clientY,F=I-u.current,$=T-w.current;(i==="right"&&F>g||i==="left"&&F<-g||i==="top"&&$<-g||i==="bottom"&&$>g)&&v()};return j.useEffect(()=>{t&&c(!1)},[t]),j.useEffect(()=>(t&&!f?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t,f]),!t&&!f?null:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`drawer-overlay ${f?"fade-out":"fade-in"}`,onClick:v}),r.jsxs("div",{ref:b,className:`drawer drawer-${i} drawer-${h} ${f?"drawer-closing":"drawer-open"}`,onTouchStart:y,onTouchEnd:p,children:[r.jsxs("div",{className:`drawer-header ${n?"has-title":"no-title"}`,children:[n&&r.jsx("h2",{className:"drawer-title",children:n}),r.jsx("button",{className:"drawer-close",onClick:v,"aria-label":"Cerrar",children:"✕"})]}),r.jsx("div",{className:"drawer-content",children:l})]})]})},fr=W("modal-container",{variants:{size:{s:"modal-size-s",m:"modal-size-m",l:"modal-size-l"}},defaultVariants:{size:"m"}}),hr=({title:t,children:a,active:n,onClose:l,size:i})=>{const h=j.useRef(null);j.useEffect(()=>{const f=c=>{c.key==="Escape"&&l()};return n&&document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,l]);const d=f=>{h.current&&f.target===h.current&&l()};return n?r.jsx("div",{className:"modal-backdrop",ref:h,onClick:d,children:r.jsxs("div",{className:fr({size:i}),children:[r.jsxs("div",{className:"modal-header",children:[r.jsx("h2",{children:t}),r.jsx("button",{className:"modal-close",onClick:l,"aria-label":"Cerrar",children:"×"})]}),r.jsx("hr",{className:"modal-divider"}),r.jsx("div",{className:"modal-content",children:a})]})}):null},vr=({isOpen:t,onToggle:a,title:n,subtitle:l,children:i})=>r.jsxs("div",{className:`collapsible ${t?"open":""}`,children:[r.jsxs("div",{className:"collapsible-header",onClick:a,children:[r.jsxs("div",{className:"collapsible-header-content",children:[r.jsx("h3",{className:"collapsible-title",children:n}),l&&r.jsx("p",{className:"collapsible-subtitle",children:l})]}),r.jsx("div",{className:`collapsible-arrow ${t?"open":""}`,children:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7 10L12 15L17 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r.jsx("div",{className:`collapsible-content ${t?"open":""}`,children:i})]}),mr=({children:t})=>r.jsx("div",{className:"card",children:t}),_e=W("tab-base",{variants:{size:{xs:"tab-size-xs",sm:"tab-size-sm",md:"tab-size-md",lg:"tab-size-lg",xl:"tab-size-xl"},state:{default:"tab-state-default",hover:"tab-state-hover",focus:"tab-state-focus",active:"tab-state-active",disabled:"tab-state-disabled"},outline:{true:"tab-outline-true",false:"tab-outline-false"},iconAlignment:{none:"tab-icon-none",left:"tab-icon-left"}},defaultVariants:{size:"md",state:"default",outline:!1,iconAlignment:"none"}}),ke=j.forwardRef(({className:t,size:a,state:n,outline:l,iconAlignment:i,children:h,icon:d,active:f=!1,disabled:c=!1,...b},u)=>{const w=c?"disabled":f?"active":n||"default",g=d?i||"left":"none";return r.jsxs("button",{className:_e({size:a,state:w,outline:l,iconAlignment:g,className:t}),ref:u,disabled:c,...b,children:[d&&g==="left"&&r.jsx("span",{className:"tab-icon",children:d}),r.jsx("span",{className:"tab-content",children:h})]})});ke.displayName="Tab";const Ee=({children:t,defaultActiveIndex:a=0,activeIndex:n,onTabChange:l,className:i="",variant:h="default",size:d="md",outline:f=!1})=>{const[c,b]=j.useState(a),u=n!==void 0?n:c,w=v=>{n===void 0&&b(v),l==null||l(v)},g=["tab-group",`tab-group-${h}`,i].filter(Boolean).join(" ");return r.jsx("div",{className:g,role:"tablist",children:j.Children.map(t,(v,y)=>j.isValidElement(v)?j.cloneElement(v,{...v.props,active:y===u,size:v.props.size||d,outline:v.props.outline!==void 0?v.props.outline:f,onClick:p=>{var m,I;v.props.disabled||(w(y),(I=(m=v.props).onClick)==null||I.call(m,p))},role:"tab","aria-selected":y===u,"aria-controls":`tabpanel-${y}`,id:`tab-${y}`,tabIndex:y===u?0:-1}):v)})};Ee.displayName="TabGroup";const gr=({buttonsData:t,size:a="sm"})=>{const[n,l]=j.useState(0),i=(h,d)=>{h.onClick(),l(d)};return r.jsx("div",{className:"toggle-button-container",children:t.map((h,d)=>r.jsx("div",{className:`toggle-button-inner ${n===d?"active":""} ${a}`,onClick:()=>i(h,d),children:r.jsx("span",{children:h.label})},d))})},Se=({className:t})=>r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),br=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),r.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),r.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),r.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),pr=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M11.4 2H2v9.4h9.4V2Z",fill:"#F25022"}),r.jsx("path",{d:"M22 2h-9.4v9.4H22V2Z",fill:"#7FBA00"}),r.jsx("path",{d:"M11.4 12.6H2V22h9.4v-9.4Z",fill:"#00A4EF"}),r.jsx("path",{d:"M22 12.6h-9.4V22H22v-9.4Z",fill:"#FFB900"})]}),xr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M14.71 6.71L13.3 5.3L7.71 10.89C7.32 11.28 7.32 11.91 7.71 12.3L13.3 17.89L14.71 16.48L9.83 11.6L14.71 6.71Z",fill:"currentColor"})}),jr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M9.29 17.29L10.7 18.7L16.29 13.11C16.68 12.72 16.68 12.09 16.29 11.7L10.7 6.11L9.29 7.52L14.17 12.4L9.29 17.29Z",fill:"currentColor"})}),wr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M7.41 8.59L12 13.17L16.59 8.59L18 10L12 16L6 10L7.41 8.59Z",fill:"currentColor"})}),yr=({className:t="",size:a=24,color:n="currentColor"})=>r.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"17",width:"4",height:"4",rx:"0.5",fill:n})]}),Te=W("input",{variants:{size:{sm:"input-size-sm",md:"input-size-md",lg:"input-size-lg"},state:{default:"input-state-default",focused:"input-state-focused",filled:"input-state-filled",error:"input-state-error",success:"input-state-success",disabled:"input-state-disabled"},hasLeadingIcon:{true:"input-with-leading-icon"},hasTrailingIcon:{true:"input-with-trailing-icon"}},defaultVariants:{size:"md",state:"default"}}),Re=j.forwardRef(({className:t,size:a,state:n,leadingIcon:l,trailingIcon:i,hintText:h,onClear:d,placeholder:f="Placeholder",value:c,onChange:b,...u},w)=>{const g=!!l,v=!!i,y=c&&c.toString().length>0;let p=n;return n==="default"&&y&&(p="filled"),r.jsxs("div",{className:"input-container",children:[r.jsxs("div",{className:"input-wrapper",children:[g&&r.jsx("span",{className:"input-leading-icon",children:l}),r.jsx("input",{className:Te({size:a,state:p,hasLeadingIcon:g,hasTrailingIcon:v,className:t}),placeholder:f,value:c,ref:w,...u}),v&&r.jsx("span",{className:"input-trailing-icon",children:i}),d&&c&&c.toString().length>0&&r.jsx("button",{type:"button",className:"input-clear-button",onClick:d,"aria-label":"Clear input",children:r.jsx(Se,{})})]}),h&&r.jsx("div",{className:`input-hint input-hint-${p}`,children:h})]})});Re.displayName="Input";const Le=W("alert",{variants:{variant:{info:"alert-info",warning:"alert-warning",success:"alert-success",error:"alert-error"}},defaultVariants:{variant:"info"}}),Ie=j.forwardRef(({className:t,variant:a,title:n,description:l,children:i,onDismiss:h,icon:d,...f},c)=>{const b={info:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),warning:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),success:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),error:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},u=d||(a?b[a]:b.info);return r.jsxs("div",{className:Le({variant:a,className:t}),ref:c,...f,children:[r.jsx("div",{className:"alert-icon",children:u}),r.jsxs("div",{className:"alert-content",children:[n&&r.jsx("div",{className:"alert-title",children:n}),l&&r.jsx("div",{className:"alert-description",children:l}),i&&r.jsx("div",{className:"alert-children",children:i})]}),r.jsx("button",{className:"alert-dismiss",onClick:h,"aria-label":"Cerrar alerta",children:r.jsx(Se,{})})]})});Ie.displayName="Alert";const Nr=W("social-login",{variants:{variant:{filled:"social-login-filled",outlined:"social-login-outlined"},size:{xs:"social-login-size-xs",sm:"social-login-size-sm",md:"social-login-size-md",lg:"social-login-size-lg",xl:"social-login-size-xl"},state:{default:"social-login-state-default",hover:"social-login-state-hover",focus:"social-login-state-focus",active:"social-login-state-active",disabled:"social-login-state-disabled"},pill:{true:"social-login-pill"},iconAlignment:{left:"social-login-icon-left",leftJustified:"social-login-icon-left-justified"},provider:{google:"social-login-provider-google",microsoft:"social-login-provider-microsoft"}},defaultVariants:{variant:"filled",size:"md",state:"default",iconAlignment:"left",provider:"google"}}),Cr={google:"Continuar con Google",microsoft:"Continuar con Microsoft"},_r={google:br,microsoft:pr},Oe=j.forwardRef(({className:t,variant:a,size:n,state:l,pill:i,iconAlignment:h,provider:d,children:f,disabled:c,onClick:b,...u},w)=>{const g=_r[d],v=f||Cr[d],y=c?"disabled":l,m={xs:16,sm:18,md:20,lg:22,xl:24}[n||"md"];return r.jsxs("button",{className:Nr({variant:a,size:n,state:y,pill:i,iconAlignment:h,provider:d,className:t}),disabled:c,onClick:b,ref:w,...u,children:[r.jsx("span",{className:"social-login-icon",children:r.jsx(g,{size:m})}),r.jsx("span",{className:"social-login-text",children:v})]})});Oe.displayName="SocialLogin";const kr=W("progress-bar",{variants:{variant:{default:"progress-bar-default",gradient:"progress-bar-gradient",striped:"progress-bar-striped"},size:{sm:"progress-bar-size-sm",md:"progress-bar-size-md",lg:"progress-bar-size-lg"},color:{primary:"progress-bar-color-primary",secondary:"progress-bar-color-secondary",success:"progress-bar-color-success",warning:"progress-bar-color-warning",error:"progress-bar-color-error"},animated:{true:"progress-bar-animated"}},defaultVariants:{variant:"default",size:"md",color:"primary"}}),Er=j.forwardRef(({className:t,variant:a,size:n,color:l,animated:i,amount:h,total:d,showPercentage:f=!1,label:c,height:b,style:u,...w},g)=>{const v=Math.min(Math.max(h/d*100,0),100),y={...u||{},...b?{height:b}:{}},p={width:`${v}%`};return r.jsxs("div",{className:kr({variant:a,size:n,color:l,animated:i,className:t}),style:y,ref:g,role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":d,"aria-label":c||`Progreso: ${h} de ${d}`,...w,children:[r.jsx("div",{className:"progress-bar-track",children:r.jsx("div",{className:"progress-bar-fill",style:p})}),(f||c)&&r.jsx("div",{className:"progress-bar-text",children:c||`${Math.round(v)}%`})]})}),Sr=(t,a)=>`/logos/${`${t}_${a}.png`}`,le=j.forwardRef(({type:t="logo",color:a="color",alt:n,className:l,...i},h)=>{const d=Sr(t,a),f=n||(t==="logo"?"Levannta logo":"Levannta isologo");return r.jsx("img",{ref:h,className:["logo",l].filter(Boolean).join(" "),src:d,alt:f,...i})});le.displayName="Logo";const Tr=({title:t,children:a,className:n,showLogo:l=!0,logoProps:i,...h})=>{const d=["header",n].filter(Boolean).join(" ");return r.jsx("header",{className:d,...h,children:r.jsxs("div",{className:"header-content-wrapper",children:[r.jsx("h1",{className:"header-title",children:t}),l&&r.jsx(le,{className:"header-logo",type:(i==null?void 0:i.type)??"logo",color:(i==null?void 0:i.color)??"color",width:(i==null?void 0:i.width)??240,height:i==null?void 0:i.height,alt:i==null?void 0:i.alt}),a&&r.jsx("div",{className:"header-children",children:a})]})})},Rr=W("pagination",{variants:{size:{xs:"pagination-size-xs",sm:"pagination-size-sm",md:"pagination-size-md",lg:"pagination-size-lg"}},defaultVariants:{size:"md"}}),$e=j.forwardRef(({className:t,size:a,currentPage:n,totalPages:l,itemsPerPage:i,totalItems:h,itemsPerPageOptions:d=[10,20,50,100],onPageChange:f,onItemsPerPageChange:c,resultsLabel:b="Resultados",ofLabel:u="de",pageLabel:w="Página",prevDisabled:g,nextDisabled:v,...y},p)=>{const[m,I]=j.useState(!1),T=j.useRef(null),F=g??n<=1,$=v??n>=l,U={xs:20,sm:20,md:22,lg:24}[a||"md"],Z=a==="lg"||a==="md"?28:24,q=()=>{!F&&f&&f(n-1)},G=()=>{!$&&f&&f(n+1)},P=E=>{c&&c(E),I(!1)},_=()=>{I(!m)};return j.useEffect(()=>{const E=L=>{T.current&&!T.current.contains(L.target)&&I(!1)};return m&&document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[m]),r.jsxs("div",{className:Rr({size:a,className:t}),ref:p,...y,children:[r.jsxs("div",{className:"pagination-results-section",children:[r.jsx("div",{className:"pagination-results",children:r.jsx("span",{className:"pagination-results-text",children:b})}),r.jsx("div",{className:"pagination-items-selector",ref:T,children:r.jsxs("div",{className:"pagination-items-dropdown",children:[r.jsxs("button",{className:"pagination-items-display",onClick:_,type:"button","aria-expanded":m,"aria-haspopup":"listbox",children:[r.jsx("span",{className:"pagination-items-text",children:i}),r.jsx(wr,{size:Z,className:`pagination-chevron-down ${m?"open":""}`})]}),m&&r.jsx("div",{className:"pagination-dropdown-menu",role:"listbox",children:d.map(E=>r.jsx("button",{className:`pagination-dropdown-item ${E===i?"selected":""}`,onClick:()=>P(E),type:"button",role:"option","aria-selected":E===i,children:E},E))})]})}),r.jsx("div",{className:"pagination-total",children:r.jsxs("span",{className:"pagination-total-text",children:[u," ",h]})})]}),r.jsxs("div",{className:"pagination-navigation",children:[r.jsx("button",{className:`pagination-nav-button ${F?"disabled":""}`,onClick:q,disabled:F,type:"button","aria-label":"Página anterior",children:r.jsx(xr,{size:U})}),r.jsx("div",{className:"pagination-page-info",children:r.jsxs("span",{className:"pagination-page-text",children:[w," ",n," ",u," ",l]})}),r.jsx("button",{className:`pagination-nav-button ${$?"disabled":""}`,onClick:G,disabled:$,type:"button","aria-label":"Página siguiente",children:r.jsx(jr,{size:U})})]})]})});$e.displayName="Pagination";const Lr=({icon:t,title:a,options:n=[],value:l,onChange:i,className:h=""})=>{const[d,f]=j.useState(!1),[c,b]=j.useState(n.find(p=>p.id===l)||null),u=j.useRef(null);j.useEffect(()=>{const p=m=>{u.current&&!u.current.contains(m.target)&&f(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const w=()=>{f(!d)},g=p=>{var m;p.disabled||(b(p),f(!1),i==null||i(p),(m=p.onSelect)==null||m.call(p))},v=a,y=t||r.jsx(yr,{size:20,color:"#00D4AA"});return r.jsxs("div",{className:`selector-container ${h}`,ref:u,children:[r.jsxs("div",{className:`selector ${d?"selector--open":""}`,onClick:w,children:[r.jsx("div",{className:"selector__icon",children:y}),r.jsx("div",{className:"selector__title",children:v}),r.jsx("div",{className:"selector__chevron",children:r.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`selector__chevron-icon ${d?"selector__chevron-icon--open":""}`,children:r.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),d&&n.length>0&&r.jsx("div",{className:"selector__dropdown",children:r.jsx("div",{className:"selector__dropdown-content",children:n.map(p=>r.jsxs("div",{className:`selector__option ${(c==null?void 0:c.id)===p.id?"selector__option--selected":""} ${p.disabled?"selector__option--disabled":""}`,onClick:()=>g(p),children:[p.icon&&r.jsx("div",{className:"selector__option-icon",children:p.icon}),r.jsxs("div",{className:"selector__option-content",children:[r.jsx("div",{className:"selector__option-title",children:p.title}),p.subtitle&&r.jsx("div",{className:"selector__option-subtitle",children:p.subtitle})]})]},p.id))})})]})};S.Alert=Ie,S.Button=ye,S.Card=mr,S.Collapsible=vr,S.Drawer=dr,S.Header=Tr,S.Input=Re,S.Logo=le,S.Modal=hr,S.Pagination=$e,S.ProgressBar=Er,S.Selector=Lr,S.Sidebar=ur,S.SocialLogin=Oe,S.Tab=ke,S.TabGroup=Ee,S.ToggleButton=gr,S.alertVariants=Le,S.buttonVariants=we,S.inputVariants=Te,S.tabVariants=_e,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,ge,Y,st,Y),rr[Y+ge]=!0}}return e===l?Qr(M):qr(M),M}}function et(e,s,o){return tr(e,s,o,!0)}function rt(e,s,o){return tr(e,s,o,!1)}var tt=rt,nt=et;X.Fragment=l,X.jsx=tt,X.jsxs=nt}()),X}process.env.NODE_ENV==="production"?ie.exports=nr():ie.exports=sr();var r=ie.exports;function xe(t){var a,n,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(a=0;a<i;a++)t[a]&&(n=xe(t[a]))&&(l&&(l+=" "),l+=n)}else for(n in t)t[n]&&(l&&(l+=" "),l+=n);return l}function ar(){for(var t,a,n=0,l="",i=arguments.length;n<i;n++)(t=arguments[n])&&(a=xe(t))&&(l&&(l+=" "),l+=a);return l}const je=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,we=ar,W=(t,a)=>n=>{var l;if((a==null?void 0:a.variants)==null)return we(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:h}=a,f=Object.keys(i).map(g=>{const d=n==null?void 0:n[g],w=h==null?void 0:h[g];if(d===null)return null;const b=je(d)||je(w);return i[g][b]}),u=n&&Object.entries(n).reduce((g,d)=>{let[w,b]=d;return b===void 0||(g[w]=b),g},{}),c=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((g,d)=>{let{class:w,className:b,...v}=d;return Object.entries(v).every(y=>{let[p,m]=y;return Array.isArray(m)?m.includes({...h,...u}[p]):{...h,...u}[p]===m})?[...g,w,b]:g},[]);return we(t,f,c,n==null?void 0:n.class,n==null?void 0:n.className)},ye=W("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"}]}),le=j.forwardRef(({className:t,variant:a,color:n,size:l,pill:i,active:h,iconLeft:f,iconRight:u,iconLeftJustified:c,iconRightJustified:g,iconOnly:d,width:w,children:b,style:v,...y},p)=>{const m={...v||{},...w?{width:w}:{}};return r.jsxs("button",{className:ye({variant:a,color:n,size:l,pill:i,active:h,iconLeft:!!f,iconRight:!!u,iconLeftJustified:!!c,iconRightJustified:!!g,iconOnly:!!d,className:t}),style:m,ref:p,...y,children:[f&&r.jsx("span",{className:"button-icon-left",children:f}),c&&r.jsx("span",{className:"button-icon-left",children:c}),d?r.jsx("span",{children:d}):b,u&&r.jsx("span",{className:"button-icon-right",children:u}),g&&r.jsx("span",{className:"button-icon-right",children:g})]})});le.displayName="Button";const ir=({className:t})=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.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"})}),lr=()=>{try{const t=require("react-router-dom");return t!=null&&t.Link?t.Link:null}catch{return null}},Ne=({to:t,href:a,className:n,onClick:l,children:i})=>{const h=lr();return h?j.createElement(h,{to:t,className:n,onClick:l},i):j.createElement("a",{href:a||t,className:n,onClick:l},i)},or=({icon:t,url:a,label:n,submenu:l,collapsed:i,active:h,activePath:f,isOpen:u,onToggle:c,onExpand:g,onSetActive:d,isMobile:w=!1})=>{const b=l&&l.length>0,v=b&&l.some(m=>m.url===f),y=h||u&&b||v||a===f,p=m=>{if(m.preventDefault(),w&&b){c();return}if(d&&d(a),i&&g){g();return}b&&!i&&c()};return r.jsx("div",{className:`sidebar-item ${u?"open":""} `,children:r.jsxs("div",{className:`sidebar-item-wrapper ${y&&!i?"active":""}`,children:[r.jsxs(Ne,{to:a,href:a,className:`sidebar-link sidebar-collapsed ${y?"active-text":""}`,onClick:p,children:[r.jsx("div",{className:`sidebar-icon ${y?"active-text":""}`,children:t}),(!i||w)&&r.jsxs("div",{className:"sidebar-content",children:[r.jsx("span",{className:"sidebar-label",children:n}),b&&r.jsx("span",{className:"submenu-arrow",children:r.jsx(ir,{className:`${y?"active-text":""}`})})]})]}),b&&(!i||w)&&r.jsx("div",{className:"submenu",children:l.map((m,I)=>{const T=m.url===f;return r.jsx(Ne,{to:m.url,href:m.url,className:`submenu-item ${T?"active-text":""}`,onClick:()=>d&&d(m.url),children:r.jsx("span",{className:"submenu-label",children:m.label})},I)})})]})})},cr=({className:t})=>r.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),r.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"})]}),Ce=()=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{className:"hamburger-icon",children:[r.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line top-line"}),r.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line middle-line"}),r.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line bottom-line"})]})}),ur=({logo:t,logoCollapsed:a,items:n,logoutIcon:l,onLogout:i,logoutLabel:h="Cerrar sesión",collapsed:f=!1,onToggle:u,activePath:c,onActiveChange:g})=>{const[d,w]=j.useState(f),[b,v]=j.useState(null),[y,p]=j.useState(c),[m,I]=j.useState(!1),[T,F]=j.useState(!1),[$,ee]=j.useState(!1);j.useEffect(()=>{const _=()=>{ee(window.innerWidth<=768)};return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[]),j.useEffect(()=>{var _;if(c){p(c);const E=n.findIndex(L=>{var z;return L.url===c||((z=L.submenu)==null?void 0:z.some(D=>D.url===c))});E!==-1&&((_=n[E].submenu)!=null&&_.length?v(E):v(null))}},[c,n]);const U=()=>{w(!d),u&&u()},Z=()=>{var _;if(d)if(w(!1),u&&u(),y){const E=n.findIndex(L=>{var z;return L.url===y||((z=L.submenu)==null?void 0:z.some(D=>D.url===y))});E!==-1&&((_=n[E].submenu)!=null&&_.length)?v(E):v(null)}else v(null)},q=_=>{v(b===_?null:_),$&&I(!0)},G=_=>{p(_);const E=n.findIndex(L=>{var z;return L.url===_||((z=L.submenu)==null?void 0:z.some(D=>D.url===_))});if(E!==-1){const L=n[E];L.submenu&&L.submenu.length>0?v(E):v(null)}else v(null);g&&g(_),$&&(n.some(z=>{var D;return(D=z.submenu)==null?void 0:D.some(re=>re.url===_)})||(F(!0),setTimeout(()=>{I(!1),F(!1)},500)))},P=()=>{m?(F(!0),setTimeout(()=>{I(!1),F(!1)},500)):I(!0)};return r.jsxs(r.Fragment,{children:[$&&r.jsxs("div",{className:"mobile-navbar",children:[r.jsx("div",{className:"mobile-logo",children:t}),r.jsx("button",{className:`mobile-menu-button ${m?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",children:r.jsx(Ce,{})})]}),!$&&r.jsx("button",{className:`mobile-menu-button ${m?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",style:{display:"none"},children:r.jsx(Ce,{})}),$&&(m||T)&&r.jsx("div",{className:`sidebar-overlay ${m?"visible":""}`,onClick:P}),r.jsxs("div",{className:`sidebar-wrapper ${m?"mobile-open":""} ${T?"mobile-closing":""}`,children:[r.jsxs("div",{className:`sidebar ${!$&&d?"sidebar-collapsed":""} ${$?"sidebar-mobile":""}`,children:[!$&&r.jsx("div",{className:"sidebar-header",children:r.jsx("div",{className:"sidebar-logo",children:d?r.jsx("span",{className:"logo-text",children:a}):r.jsx("span",{className:"logo-text",children:t})})}),$&&(m||T)&&r.jsxs("div",{className:"mobile-header",children:[r.jsx("div",{className:"mobile-logo-menu",children:t}),r.jsx("button",{className:"mobile-close-button",onClick:P,"aria-label":"Close menu",children:"×"})]}),r.jsx("div",{className:"sidebar-menu",children:n.map((_,E)=>r.jsx(or,{icon:_.icon,url:_.url,label:_.label,submenu:_.submenu,collapsed:d,active:_.active||_.url===y,activePath:y,isOpen:b===E,onToggle:()=>q(E),onExpand:Z,onSetActive:G,isMobile:$},E))}),i&&r.jsx("div",{className:"sidebar-footer",children:r.jsxs("button",{className:"logout-button",onClick:i,children:[l,!d&&r.jsx("span",{children:h})]})})]}),!$&&r.jsx("button",{className:`sidebar-toggle-icon${d?" collapsed":""}`,onClick:U,"aria-label":"Toggle sidebar",children:r.jsx(cr,{})})]})]})},dr=({isOpen:t,onClose:a,title:n="",children:l,position:i="right",size:h="medium",enableSwipeToClose:f=!0})=>{const[u,c]=j.useState(!1),g=j.useRef(null),d=j.useRef(0),w=j.useRef(0),b=50,v=()=>{!u&&t&&(c(!0),setTimeout(()=>{c(!1),a()},500))},y=m=>{f&&(d.current=m.touches[0].clientX,w.current=m.touches[0].clientY)},p=m=>{if(!f||!m.changedTouches[0])return;const I=m.changedTouches[0].clientX,T=m.changedTouches[0].clientY,F=I-d.current,$=T-w.current;(i==="right"&&F>b||i==="left"&&F<-b||i==="top"&&$<-b||i==="bottom"&&$>b)&&v()};return j.useEffect(()=>{t&&c(!1)},[t]),j.useEffect(()=>(t&&!u?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t,u]),!t&&!u?null:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`drawer-overlay ${u?"fade-out":"fade-in"}`,onClick:v}),r.jsxs("div",{ref:g,className:`drawer drawer-${i} drawer-${h} ${u?"drawer-closing":"drawer-open"}`,onTouchStart:y,onTouchEnd:p,children:[r.jsxs("div",{className:`drawer-header ${n?"has-title":"no-title"}`,children:[n&&r.jsx("h2",{className:"drawer-title",children:n}),r.jsx("button",{className:"drawer-close",onClick:v,"aria-label":"Cerrar",children:"✕"})]}),r.jsx("div",{className:"drawer-content",children:l})]})]})},fr=W("modal-container",{variants:{size:{s:"modal-size-s",m:"modal-size-m",l:"modal-size-l"}},defaultVariants:{size:"m"}}),hr=({title:t,children:a,active:n,onClose:l,size:i})=>{const h=j.useRef(null);j.useEffect(()=>{const u=c=>{c.key==="Escape"&&l()};return n&&document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[n,l]);const f=u=>{h.current&&u.target===h.current&&l()};return n?r.jsx("div",{className:"modal-backdrop",ref:h,onClick:f,children:r.jsxs("div",{className:fr({size:i}),children:[r.jsxs("div",{className:"modal-header",children:[r.jsx("h2",{children:t}),r.jsx("button",{className:"modal-close",onClick:l,"aria-label":"Cerrar",children:"×"})]}),r.jsx("hr",{className:"modal-divider"}),r.jsx("div",{className:"modal-content",children:a})]})}):null},vr=({isOpen:t,onToggle:a,title:n,subtitle:l,children:i})=>r.jsxs("div",{className:`collapsible ${t?"open":""}`,children:[r.jsxs("div",{className:"collapsible-header",onClick:a,children:[r.jsxs("div",{className:"collapsible-header-content",children:[r.jsx("h3",{className:"collapsible-title",children:n}),l&&r.jsx("p",{className:"collapsible-subtitle",children:l})]}),r.jsx("div",{className:`collapsible-arrow ${t?"open":""}`,children:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7 10L12 15L17 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r.jsx("div",{className:`collapsible-content ${t?"open":""}`,children:i})]}),mr=({children:t})=>r.jsx("div",{className:"card",children:t}),_e=W("tab-base",{variants:{size:{xs:"tab-size-xs",sm:"tab-size-sm",md:"tab-size-md",lg:"tab-size-lg",xl:"tab-size-xl"},state:{default:"tab-state-default",hover:"tab-state-hover",focus:"tab-state-focus",active:"tab-state-active",disabled:"tab-state-disabled"},outline:{true:"tab-outline-true",false:"tab-outline-false"},iconAlignment:{none:"tab-icon-none",left:"tab-icon-left"}},defaultVariants:{size:"md",state:"default",outline:!1,iconAlignment:"none"}}),ke=j.forwardRef(({className:t,size:a,state:n,outline:l,iconAlignment:i,children:h,icon:f,active:u=!1,disabled:c=!1,...g},d)=>{const w=c?"disabled":u?"active":n||"default",b=f?i||"left":"none";return r.jsxs("button",{className:_e({size:a,state:w,outline:l,iconAlignment:b,className:t}),ref:d,disabled:c,...g,children:[f&&b==="left"&&r.jsx("span",{className:"tab-icon",children:f}),r.jsx("span",{className:"tab-content",children:h})]})});ke.displayName="Tab";const Ee=({children:t,defaultActiveIndex:a=0,activeIndex:n,onTabChange:l,className:i="",variant:h="default",size:f="md",outline:u=!1})=>{const[c,g]=j.useState(a),d=n!==void 0?n:c,w=v=>{n===void 0&&g(v),l==null||l(v)},b=["tab-group",`tab-group-${h}`,i].filter(Boolean).join(" ");return r.jsx("div",{className:b,role:"tablist",children:j.Children.map(t,(v,y)=>j.isValidElement(v)?j.cloneElement(v,{...v.props,active:y===d,size:v.props.size||f,outline:v.props.outline!==void 0?v.props.outline:u,onClick:p=>{var m,I;v.props.disabled||(w(y),(I=(m=v.props).onClick)==null||I.call(m,p))},role:"tab","aria-selected":y===d,"aria-controls":`tabpanel-${y}`,id:`tab-${y}`,tabIndex:y===d?0:-1}):v)})};Ee.displayName="TabGroup";const gr=({buttonsData:t,size:a="sm"})=>{const[n,l]=j.useState(0),i=(h,f)=>{h.onClick(),l(f)};return r.jsx("div",{className:"toggle-button-container",children:t.map((h,f)=>r.jsx("div",{className:`toggle-button-inner ${n===f?"active":""} ${a}`,onClick:()=>i(h,f),children:r.jsx("span",{children:h.label})},f))})},Se=({className:t})=>r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),br=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),r.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),r.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),r.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),pr=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M11.4 2H2v9.4h9.4V2Z",fill:"#F25022"}),r.jsx("path",{d:"M22 2h-9.4v9.4H22V2Z",fill:"#7FBA00"}),r.jsx("path",{d:"M11.4 12.6H2V22h9.4v-9.4Z",fill:"#00A4EF"}),r.jsx("path",{d:"M22 12.6h-9.4V22H22v-9.4Z",fill:"#FFB900"})]}),xr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M14.71 6.71L13.3 5.3L7.71 10.89C7.32 11.28 7.32 11.91 7.71 12.3L13.3 17.89L14.71 16.48L9.83 11.6L14.71 6.71Z",fill:"currentColor"})}),jr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M9.29 17.29L10.7 18.7L16.29 13.11C16.68 12.72 16.68 12.09 16.29 11.7L10.7 6.11L9.29 7.52L14.17 12.4L9.29 17.29Z",fill:"currentColor"})}),wr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M7.41 8.59L12 13.17L16.59 8.59L18 10L12 16L6 10L7.41 8.59Z",fill:"currentColor"})}),yr=({className:t="",size:a=24,color:n="currentColor"})=>r.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"17",width:"4",height:"4",rx:"0.5",fill:n})]}),Te=W("input",{variants:{size:{sm:"input-size-sm",md:"input-size-md",lg:"input-size-lg"},state:{default:"input-state-default",focused:"input-state-focused",filled:"input-state-filled",error:"input-state-error",success:"input-state-success",disabled:"input-state-disabled"},hasLeadingIcon:{true:"input-with-leading-icon"},hasTrailingIcon:{true:"input-with-trailing-icon"}},defaultVariants:{size:"md",state:"default"}}),Re=j.forwardRef(({className:t,size:a,state:n,leadingIcon:l,trailingIcon:i,hintText:h,onClear:f,placeholder:u="Placeholder",value:c,onChange:g,...d},w)=>{const b=!!l,v=!!i,y=c&&c.toString().length>0;let p=n;return n==="default"&&y&&(p="filled"),r.jsxs("div",{className:"input-container",children:[r.jsxs("div",{className:"input-wrapper",children:[b&&r.jsx("span",{className:"input-leading-icon",children:l}),r.jsx("input",{className:Te({size:a,state:p,hasLeadingIcon:b,hasTrailingIcon:v,className:t}),placeholder:u,value:c,ref:w,...d}),v&&r.jsx("span",{className:"input-trailing-icon",children:i}),f&&c&&c.toString().length>0&&r.jsx("button",{type:"button",className:"input-clear-button",onClick:f,"aria-label":"Clear input",children:r.jsx(Se,{})})]}),h&&r.jsx("div",{className:`input-hint input-hint-${p}`,children:h})]})});Re.displayName="Input";const Le=W("alert",{variants:{variant:{info:"alert-info",warning:"alert-warning",success:"alert-success",error:"alert-error"}},defaultVariants:{variant:"info"}}),Ie=j.forwardRef(({className:t,variant:a,title:n,description:l,children:i,onDismiss:h,icon:f,...u},c)=>{const g={info:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),warning:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),success:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),error:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},d=f||(a?g[a]:g.info);return r.jsxs("div",{className:Le({variant:a,className:t}),ref:c,...u,children:[r.jsx("div",{className:"alert-icon",children:d}),r.jsxs("div",{className:"alert-content",children:[n&&r.jsx("div",{className:"alert-title",children:n}),l&&r.jsx("div",{className:"alert-description",children:l}),i&&r.jsx("div",{className:"alert-children",children:i})]}),r.jsx("button",{className:"alert-dismiss",onClick:h,"aria-label":"Cerrar alerta",children:r.jsx(Se,{})})]})});Ie.displayName="Alert";const Nr=W("social-login",{variants:{variant:{filled:"social-login-filled",outlined:"social-login-outlined"},size:{xs:"social-login-size-xs",sm:"social-login-size-sm",md:"social-login-size-md",lg:"social-login-size-lg",xl:"social-login-size-xl"},state:{default:"social-login-state-default",hover:"social-login-state-hover",focus:"social-login-state-focus",active:"social-login-state-active",disabled:"social-login-state-disabled"},pill:{true:"social-login-pill"},iconAlignment:{left:"social-login-icon-left",leftJustified:"social-login-icon-left-justified"},provider:{google:"social-login-provider-google",microsoft:"social-login-provider-microsoft"}},defaultVariants:{variant:"filled",size:"md",state:"default",iconAlignment:"left",provider:"google"}}),Cr={google:"Continuar con Google",microsoft:"Continuar con Microsoft"},_r={google:br,microsoft:pr},Oe=j.forwardRef(({className:t,variant:a,size:n,state:l,pill:i,iconAlignment:h,provider:f,children:u,disabled:c,onClick:g,...d},w)=>{const b=_r[f],v=u||Cr[f],y=c?"disabled":l,m={xs:16,sm:18,md:20,lg:22,xl:24}[n||"md"];return r.jsxs("button",{className:Nr({variant:a,size:n,state:y,pill:i,iconAlignment:h,provider:f,className:t}),disabled:c,onClick:g,ref:w,...d,children:[r.jsx("span",{className:"social-login-icon",children:r.jsx(b,{size:m})}),r.jsx("span",{className:"social-login-text",children:v})]})});Oe.displayName="SocialLogin";const kr=W("progress-bar",{variants:{variant:{default:"progress-bar-default",gradient:"progress-bar-gradient",striped:"progress-bar-striped"},size:{sm:"progress-bar-size-sm",md:"progress-bar-size-md",lg:"progress-bar-size-lg"},color:{primary:"progress-bar-color-primary",secondary:"progress-bar-color-secondary",success:"progress-bar-color-success",warning:"progress-bar-color-warning",error:"progress-bar-color-error"},animated:{true:"progress-bar-animated"}},defaultVariants:{variant:"default",size:"md",color:"primary"}}),Er=j.forwardRef(({className:t,variant:a,size:n,color:l,animated:i,amount:h,total:f,showPercentage:u=!1,label:c,height:g,style:d,...w},b)=>{const v=Math.min(Math.max(h/f*100,0),100),y={...d||{},...g?{height:g}:{}},p={width:`${v}%`};return r.jsxs("div",{className:kr({variant:a,size:n,color:l,animated:i,className:t}),style:y,ref:b,role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":f,"aria-label":c||`Progreso: ${h} de ${f}`,...w,children:[r.jsx("div",{className:"progress-bar-track",children:r.jsx("div",{className:"progress-bar-fill",style:p})}),(u||c)&&r.jsx("div",{className:"progress-bar-text",children:c||`${Math.round(v)}%`})]})}),Sr=(t,a)=>`/logos/${`${t}_${a}.png`}`,oe=j.forwardRef(({type:t="logo",color:a="color",alt:n,className:l,...i},h)=>{const f=Sr(t,a),u=n||(t==="logo"?"Levannta logo":"Levannta isologo");return r.jsx("img",{ref:h,className:["logo",l].filter(Boolean).join(" "),src:f,alt:u,...i})});oe.displayName="Logo";const Tr=({title:t,children:a,className:n,showLogo:l=!0,logoProps:i,...h})=>{const f=["header",n].filter(Boolean).join(" ");return r.jsx("header",{className:f,...h,children:r.jsxs("div",{className:"header-content-wrapper",children:[r.jsx("h1",{className:"header-title",children:t}),l&&r.jsx(oe,{className:"header-logo",type:(i==null?void 0:i.type)??"logo",color:(i==null?void 0:i.color)??"color",width:(i==null?void 0:i.width)??240,height:i==null?void 0:i.height,alt:i==null?void 0:i.alt}),a&&r.jsx("div",{className:"header-children",children:a})]})})},Rr=W("pagination",{variants:{size:{xs:"pagination-size-xs",sm:"pagination-size-sm",md:"pagination-size-md",lg:"pagination-size-lg"}},defaultVariants:{size:"md"}}),$e=j.forwardRef(({className:t,size:a,currentPage:n,totalPages:l,itemsPerPage:i,totalItems:h,itemsPerPageOptions:f=[10,20,50,100],onPageChange:u,onItemsPerPageChange:c,resultsLabel:g="Resultados",ofLabel:d="de",pageLabel:w="Página",prevDisabled:b,nextDisabled:v,...y},p)=>{const[m,I]=j.useState(!1),T=j.useRef(null),F=b??n<=1,$=v??n>=l,U={xs:20,sm:20,md:22,lg:24}[a||"md"],Z=a==="lg"||a==="md"?28:24,q=()=>{!F&&u&&u(n-1)},G=()=>{!$&&u&&u(n+1)},P=E=>{c&&c(E),I(!1)},_=()=>{I(!m)};return j.useEffect(()=>{const E=L=>{T.current&&!T.current.contains(L.target)&&I(!1)};return m&&document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[m]),r.jsxs("div",{className:Rr({size:a,className:t}),ref:p,...y,children:[r.jsxs("div",{className:"pagination-results-section",children:[r.jsx("div",{className:"pagination-results",children:r.jsx("span",{className:"pagination-results-text",children:g})}),r.jsx("div",{className:"pagination-items-selector",ref:T,children:r.jsxs("div",{className:"pagination-items-dropdown",children:[r.jsxs("button",{className:"pagination-items-display",onClick:_,type:"button","aria-expanded":m,"aria-haspopup":"listbox",children:[r.jsx("span",{className:"pagination-items-text",children:i}),r.jsx(wr,{size:Z,className:`pagination-chevron-down ${m?"open":""}`})]}),m&&r.jsx("div",{className:"pagination-dropdown-menu",role:"listbox",children:f.map(E=>r.jsx("button",{className:`pagination-dropdown-item ${E===i?"selected":""}`,onClick:()=>P(E),type:"button",role:"option","aria-selected":E===i,children:E},E))})]})}),r.jsx("div",{className:"pagination-total",children:r.jsxs("span",{className:"pagination-total-text",children:[d," ",h]})})]}),r.jsxs("div",{className:"pagination-navigation",children:[r.jsx("button",{className:`pagination-nav-button ${F?"disabled":""}`,onClick:q,disabled:F,type:"button","aria-label":"Página anterior",children:r.jsx(xr,{size:U})}),r.jsx("div",{className:"pagination-page-info",children:r.jsxs("span",{className:"pagination-page-text",children:[w," ",n," ",d," ",l]})}),r.jsx("button",{className:`pagination-nav-button ${$?"disabled":""}`,onClick:G,disabled:$,type:"button","aria-label":"Página siguiente",children:r.jsx(jr,{size:U})})]})]})});$e.displayName="Pagination";const Lr=({icon:t,title:a,options:n=[],value:l,onChange:i,className:h=""})=>{const[f,u]=j.useState(!1),[c,g]=j.useState(n.find(p=>p.id===l)||null),d=j.useRef(null);j.useEffect(()=>{const p=m=>{d.current&&!d.current.contains(m.target)&&u(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const w=()=>{u(!f)},b=p=>{var m;p.disabled||(g(p),u(!1),i==null||i(p),(m=p.onSelect)==null||m.call(p))},v=a,y=t||r.jsx(yr,{size:20,color:"#00D4AA"});return r.jsxs("div",{className:`selector-container ${h}`,ref:d,children:[r.jsxs("div",{className:`selector ${f?"selector--open":""}`,onClick:w,children:[r.jsx("div",{className:"selector__icon",children:y}),r.jsx("div",{className:"selector__title",children:v}),r.jsx("div",{className:"selector__chevron",children:r.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`selector__chevron-icon ${f?"selector__chevron-icon--open":""}`,children:r.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f&&n.length>0&&r.jsx("div",{className:"selector__dropdown",children:r.jsx("div",{className:"selector__dropdown-content",children:n.map(p=>r.jsxs("div",{className:`selector__option ${(c==null?void 0:c.id)===p.id?"selector__option--selected":""} ${p.disabled?"selector__option--disabled":""}`,onClick:()=>b(p),children:[p.icon&&r.jsx("div",{className:"selector__option-icon",children:p.icon}),r.jsxs("div",{className:"selector__option-content",children:[r.jsx("div",{className:"selector__option-title",children:p.title}),p.subtitle&&r.jsx("div",{className:"selector__option-subtitle",children:p.subtitle})]})]},p.id))})})]})},Ir=({title:t,subtitle:a,buttonText:n,buttonVariant:l="filled",onClick:i,image:h="src/assets/images/default_card_wallpaper.png",icon:f,disabled:u=!1,className:c="",size:g="md"})=>r.jsxs("div",{className:`cardcta-container cardcta-size-${g} ${c}`,style:{backgroundImage:`url('${h}')`,backgroundSize:"cover",backgroundPosition:"center",position:"relative",overflow:"hidden"},children:[r.jsx("div",{className:"cardcta-gradient-overlay"}),u&&r.jsx("div",{className:"cardcta-bg-disabled"}),r.jsxs("div",{className:"cardcta-overlay",children:[r.jsx("div",{className:"cardcta-icon",children:f}),r.jsx("h3",{className:"cardcta-title",children:t}),a&&r.jsx("p",{className:"cardcta-subtitle",children:a}),r.jsx(le,{onClick:i,variant:l,size:"sm",disabled:u,children:u?r.jsx("span",{children:"Próximamente"}):n})]})]});S.Alert=Ie,S.Button=le,S.Card=mr,S.CardCTA=Ir,S.Collapsible=vr,S.Drawer=dr,S.Header=Tr,S.Input=Re,S.Logo=oe,S.Modal=hr,S.Pagination=$e,S.ProgressBar=Er,S.Selector=Lr,S.Sidebar=ur,S.SocialLogin=Oe,S.Tab=ke,S.TabGroup=Ee,S.ToggleButton=gr,S.alertVariants=Le,S.buttonVariants=ye,S.inputVariants=Te,S.tabVariants=_e,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
31
31
  //# sourceMappingURL=index.umd.js.map