levannta-ui 1.0.52 → 1.0.53-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
@@ -1,23 +1,31 @@
1
- (function(w,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(w=typeof globalThis<"u"?globalThis:w||self,f(w.LevantaUI={},w.React))})(this,function(w,f){"use strict";var q={exports:{}},G={};/**
1
+ (function(E,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(E=typeof globalThis<"u"?globalThis:E||self,g(E.LevantaUI={},E.React))})(this,function(E,g){"use strict";var ce={exports:{}},q={};/**
2
2
  * @license React
3
- * react-jsx-runtime.production.js
3
+ * react-jsx-runtime.production.min.js
4
4
  *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
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 te;function Se(){if(te)return G;te=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(l,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var d in a)d!=="key"&&(i[d]=a[d])}else i=a;return a=i.ref,{$$typeof:s,type:l,key:c,ref:a!==void 0?a:null,props:i}}return G.Fragment=r,G.jsx=t,G.jsxs=t,G}var H={};/**
9
+ */var je;function dr(){if(je)return q;je=1;var t=g,a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function v(f,u,h){var o,p={},d=null,j=null;h!==void 0&&(d=""+h),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(j=u.ref);for(o in u)i.call(u,o)&&!m.hasOwnProperty(o)&&(p[o]=u[o]);if(f&&f.defaultProps)for(o in u=f.defaultProps,u)p[o]===void 0&&(p[o]=u[o]);return{$$typeof:a,type:f,key:d,ref:j,props:p,_owner:l.current}}return q.Fragment=n,q.jsx=v,q.jsxs=v,q}var Q={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
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 ne;function Te(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){function s(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Z?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case _:return"Profiler";case v:return"StrictMode";case B:return"Suspense";case M:return"SuspenseList";case U:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case y:return"Portal";case N:return(n.displayName||"Context")+".Provider";case L:return(n._context.displayName||"Context")+".Consumer";case z:var g=n.render;return n=n.displayName,n||(n=g.displayName||g.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case C:return g=n.displayName||null,g!==null?g:s(n.type)||"Memo";case Y:g=n._payload,n=n._init;try{return s(n(g))}catch{}}return null}function r(n){return""+n}function t(n){try{r(n);var g=!1}catch{g=!0}if(g){g=console;var k=g.error,S=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return k.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),r(n)}}function l(n){if(n===x)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===Y)return"<...>";try{var g=s(n);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function a(){var n=W.A;return n===null?null:n.getOwner()}function i(){return Error("react-stack-top-frame")}function c(n){if($.call(n,"key")){var g=Object.getOwnPropertyDescriptor(n,"key").get;if(g&&g.isReactWarning)return!1}return n.key!==void 0}function d(n,g){function k(){E||(E=!0,console.error("%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://react.dev/link/special-props)",g))}k.isReactWarning=!0,Object.defineProperty(n,"key",{get:k,configurable:!0})}function u(){var n=s(this.type);return A[n]||(A[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function m(n,g,k,S,F,O,K,ee){return k=O.ref,n={$$typeof:p,type:n,key:g,props:O,_owner:F},(k!==void 0?k:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:u}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function h(n,g,k,S,F,O,K,ee){var T=g.children;if(T!==void 0)if(S)if(D(T)){for(S=0;S<T.length;S++)b(T[S]);Object.freeze&&Object.freeze(T)}else console.error("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 b(T);if($.call(g,"key")){T=s(n);var P=Object.keys(g).filter(function(qe){return qe!=="key"});S=0<P.length?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}",X[T+S]||(P=0<P.length?"{"+P.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var we;function fr(){return we||(we=1,process.env.NODE_ENV!=="production"&&function(){var t=g,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),S=Symbol.iterator,w="@@iterator";function b(e){if(e===null||typeof e!="object")return null;var s=S&&e[S]||e[w];return typeof s=="function"?s:null}var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){{for(var s=arguments.length,c=new Array(s>1?s-1:0),x=1;x<s;x++)c[x-1]=arguments[x];T("error",e,c)}}function T(e,s,c){{var x=L.ReactDebugCurrentFrame,_=x.getStackAddendum();_!==""&&(s+="%s",c=c.concat([_]));var R=c.map(function(C){return String(C)});R.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,R)}}var W=!1,G=!1,P=!1,M=!1,ee=!1,K;K=Symbol.for("react.module.reference");function re(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===m||ee||e===l||e===h||e===o||M||e===j||W||G||P||typeof e=="object"&&e!==null&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===v||e.$$typeof===f||e.$$typeof===u||e.$$typeof===K||e.getModuleId!==void 0))}function te(e,s,c){var x=e.displayName;if(x)return x;var _=s.displayName||s.name||"";return _!==""?c+"("+_+")":c}function A(e){return e.displayName||"Context"}function z(e){if(e==null)return null;if(typeof e.tag=="number"&&k("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 i:return"Fragment";case n:return"Portal";case m:return"Profiler";case l:return"StrictMode";case h:return"Suspense";case o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var s=e;return A(s)+".Consumer";case v:var c=e;return A(c._context)+".Provider";case u:return te(e,e.render,"ForwardRef");case p:var x=e.displayName||null;return x!==null?x:z(e.type)||"Memo";case d:{var _=e,R=_._payload,C=_._init;try{return z(C(R))}catch{return null}}}return null}var N=Object.assign,$=0,D,B,U,se,He,Ge,Je;function Ke(){}Ke.__reactDisabledLog=!0;function Ir(){{if($===0){D=console.log,B=console.info,U=console.warn,se=console.error,He=console.group,Ge=console.groupCollapsed,Je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Or(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:D}),info:N({},e,{value:B}),warn:N({},e,{value:U}),error:N({},e,{value:se}),group:N({},e,{value:He}),groupCollapsed:N({},e,{value:Ge}),groupEnd:N({},e,{value:Je})})}$<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=L.ReactCurrentDispatcher,he;function ae(e,s,c){{if(he===void 0)try{throw Error()}catch(_){var x=_.stack.trim().match(/\n( *(at )?)/);he=x&&x[1]||""}return`
18
+ `+he+e}}var ve=!1,ie;{var Mr=typeof WeakMap=="function"?WeakMap:Map;ie=new Mr}function Xe(e,s){if(!e||ve)return"";{var c=ie.get(e);if(c!==void 0)return c}var x;ve=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=fe.current,fe.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(F){x=F}Reflect.construct(e,[],C)}else{try{C.call()}catch(F){x=F}e.call(C.prototype)}}else{try{throw Error()}catch(F){x=F}e()}}catch(F){if(F&&x&&typeof F.stack=="string"){for(var y=F.stack.split(`
19
+ `),V=x.stack.split(`
20
+ `),I=y.length-1,O=V.length-1;I>=1&&O>=0&&y[I]!==V[O];)O--;for(;I>=1&&O>=0;I--,O--)if(y[I]!==V[O]){if(I!==1||O!==1)do if(I--,O--,O<0||y[I]!==V[O]){var Y=`
21
+ `+y[I].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),typeof e=="function"&&ie.set(e,Y),Y}while(I>=1&&O>=0);break}}}finally{ve=!1,fe.current=R,Or(),Error.prepareStackTrace=_}var Z=e?e.displayName||e.name:"",J=Z?ae(Z):"";return typeof e=="function"&&ie.set(e,J),J}function Ar(e,s,c){return Xe(e,!1)}function zr(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function le(e,s,c){if(e==null)return"";if(typeof e=="function")return Xe(e,zr(e));if(typeof e=="string")return ae(e);switch(e){case h:return ae("Suspense");case o:return ae("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Ar(e.render);case p:return le(e.type,s,c);case d:{var x=e,_=x._payload,R=x._init;try{return le(R(_),s,c)}catch{}}}return""}var ne=Object.prototype.hasOwnProperty,Ze={},qe=L.ReactDebugCurrentFrame;function oe(e){if(e){var s=e._owner,c=le(e.type,e._source,s?s.type:null);qe.setExtraStackFrame(c)}else qe.setExtraStackFrame(null)}function Dr(e,s,c,x,_){{var R=Function.call.bind(ne);for(var C in e)if(R(e,C)){var y=void 0;try{if(typeof e[C]!="function"){var V=Error((x||"React class")+": "+c+" 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 V.name="Invariant Violation",V}y=e[C](s,C,x,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){y=I}y&&!(y instanceof Error)&&(oe(_),k("%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",c,C,typeof y),oe(null)),y instanceof Error&&!(y.message in Ze)&&(Ze[y.message]=!0,oe(_),k("Failed %s type: %s",c,y.message),oe(null))}}}var Vr=Array.isArray;function me(e){return Vr(e)}function Fr(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c}}function Br(e){try{return Qe(e),!1}catch{return!0}}function Qe(e){return""+e}function er(e){if(Br(e))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(e)),Qe(e)}var rr=L.ReactCurrentOwner,Wr={key:!0,ref:!0,__self:!0,__source:!0},tr,nr;function Pr(e){if(ne.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(ne.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"&&rr.current}function Hr(e,s){{var c=function(){tr||(tr=!0,k("%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))};c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}}function Gr(e,s){{var c=function(){nr||(nr=!0,k("%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))};c.isReactWarning=!0,Object.defineProperty(e,"ref",{get:c,configurable:!0})}}var Jr=function(e,s,c,x,_,R,C){var y={$$typeof:a,type:e,key:s,ref:c,props:C,_owner:R};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Kr(e,s,c,x,_){{var R,C={},y=null,V=null;c!==void 0&&(er(c),y=""+c),Yr(s)&&(er(s.key),y=""+s.key),Pr(s)&&(V=s.ref,Ur(s,_));for(R in s)ne.call(s,R)&&!Wr.hasOwnProperty(R)&&(C[R]=s[R]);if(e&&e.defaultProps){var I=e.defaultProps;for(R in I)C[R]===void 0&&(C[R]=I[R])}if(y||V){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;y&&Hr(C,O),V&&Gr(C,O)}return Jr(e,y,V,_,x,rr.current,C)}}var ge=L.ReactCurrentOwner,sr=L.ReactDebugCurrentFrame;function X(e){if(e){var s=e._owner,c=le(e.type,e._source,s?s.type:null);sr.setExtraStackFrame(c)}else sr.setExtraStackFrame(null)}var be;be=!1;function pe(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function ar(){{if(ge.current){var e=z(ge.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function Xr(e){return""}var ir={};function Zr(e){{var s=ar();if(!s){var c=typeof e=="string"?e:e.displayName||e.name;c&&(s=`
24
+
25
+ Check the top-level render call using <`+c+">.")}return s}}function lr(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var c=Zr(s);if(ir[c])return;ir[c]=!0;var x="";e&&e._owner&&e._owner!==ge.current&&(x=" It was passed a child from "+z(e._owner.type)+"."),X(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,x),X(null)}}function or(e,s){{if(typeof e!="object")return;if(me(e))for(var c=0;c<e.length;c++){var x=e[c];pe(x)&&lr(x,s)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var _=b(e);if(typeof _=="function"&&_!==e.entries)for(var R=_.call(e),C;!(C=R.next()).done;)pe(C.value)&&lr(C.value,s)}}}function qr(e){{var s=e.type;if(s==null||typeof s=="string")return;var c;if(typeof s=="function")c=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===u||s.$$typeof===p))c=s.propTypes;else return;if(c){var x=z(s);Dr(c,e.props,"prop",x,e)}else if(s.PropTypes!==void 0&&!be){be=!0;var _=z(s);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&k("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),c=0;c<s.length;c++){var x=s[c];if(x!=="children"&&x!=="key"){X(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),X(null);break}}e.ref!==null&&(X(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),X(null))}}var cr={};function ur(e,s,c,x,_,R){{var C=re(e);if(!C){var y="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(y+=" 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 V=Xr();V?y+=V:y+=ar();var I;e===null?I="null":me(e)?I="array":e!==void 0&&e.$$typeof===a?(I="<"+(z(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):I=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,y)}var O=Kr(e,s,c,_,R);if(O==null)return O;if(C){var Y=s.children;if(Y!==void 0)if(x)if(me(Y)){for(var Z=0;Z<Y.length;Z++)or(Y[Z],e);Object.freeze&&Object.freeze(Y)}else k("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 or(Y,e)}if(ne.call(s,"key")){var J=z(e),F=Object.keys(s).filter(function(at){return at!=="key"}),xe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!cr[J+xe]){var st=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
18
26
  let props = %s;
19
27
  <%s {...props} />
20
28
  React keys must be passed directly to JSX without using spread:
21
29
  let props = %s;
22
- <%s key={someKey} {...props} />`,S,T,P,T),X[T+S]=!0)}if(T=null,k!==void 0&&(t(k),T=""+k),c(g)&&(t(g.key),T=""+g.key),"key"in g){k={};for(var se in g)se!=="key"&&(k[se]=g[se])}else k=g;return T&&d(k,typeof n=="function"?n.displayName||n.name||"Unknown":n),m(n,T,O,F,a(),k,K,ee)}function b(n){typeof n=="object"&&n!==null&&n.$$typeof===p&&n._store&&(n._store.validated=1)}var o=f,p=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),N=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),W=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,D=Array.isArray,j=console.createTask?console.createTask:function(){return null};o={react_stack_bottom_frame:function(n){return n()}};var E,A={},I=o.react_stack_bottom_frame.bind(o,i)(),R=j(l(i)),X={};H.Fragment=x,H.jsx=function(n,g,k,S,F){var O=1e4>W.recentlyCreatedOwnerStacks++;return h(n,g,k,!1,S,F,O?Error("react-stack-top-frame"):I,O?j(l(n)):R)},H.jsxs=function(n,g,k,S,F){var O=1e4>W.recentlyCreatedOwnerStacks++;return h(n,g,k,!0,S,F,O?Error("react-stack-top-frame"):I,O?j(l(n)):R)}}()),H}process.env.NODE_ENV==="production"?q.exports=Se():q.exports=Te();var e=q.exports;function re(s){var r,t,l="";if(typeof s=="string"||typeof s=="number")l+=s;else if(typeof s=="object")if(Array.isArray(s)){var a=s.length;for(r=0;r<a;r++)s[r]&&(t=re(s[r]))&&(l&&(l+=" "),l+=t)}else for(t in s)s[t]&&(l&&(l+=" "),l+=t);return l}function Le(){for(var s,r,t=0,l="",a=arguments.length;t<a;t++)(s=arguments[t])&&(r=re(s))&&(l&&(l+=" "),l+=r);return l}const ae=s=>typeof s=="boolean"?`${s}`:s===0?"0":s,le=Le,V=(s,r)=>t=>{var l;if((r==null?void 0:r.variants)==null)return le(s,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:a,defaultVariants:i}=r,c=Object.keys(a).map(m=>{const h=t==null?void 0:t[m],b=i==null?void 0:i[m];if(h===null)return null;const o=ae(h)||ae(b);return a[m][o]}),d=t&&Object.entries(t).reduce((m,h)=>{let[b,o]=h;return o===void 0||(m[b]=o),m},{}),u=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((m,h)=>{let{class:b,className:o,...p}=h;return Object.entries(p).every(y=>{let[x,v]=y;return Array.isArray(v)?v.includes({...i,...d}[x]):{...i,...d}[x]===v})?[...m,b,o]:m},[]);return le(s,c,u,t==null?void 0:t.class,t==null?void 0:t.className)},ie=V("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"}]}),J=f.forwardRef(({className:s,variant:r,color:t,size:l,pill:a,active:i,iconLeft:c,iconRight:d,iconLeftJustified:u,iconRightJustified:m,iconOnly:h,width:b,children:o,style:p,...y},x)=>{const v={...p||{},...b?{width:b}:{}};return e.jsxs("button",{className:ie({variant:r,color:t,size:l,pill:a,active:i,iconLeft:!!c,iconRight:!!d,iconLeftJustified:!!u,iconRightJustified:!!m,iconOnly:!!h,className:s}),style:v,ref:x,...y,children:[c&&e.jsx("span",{className:"button-icon-left",children:c}),u&&e.jsx("span",{className:"button-icon-left",children:u}),h?e.jsx("span",{children:h}):o,d&&e.jsx("span",{className:"button-icon-right",children:d}),m&&e.jsx("span",{className:"button-icon-right",children:m})]})});J.displayName="Button";const $e=({className:s})=>e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.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"})}),Ae=()=>{try{const s=require("react-router-dom");return s!=null&&s.Link?s.Link:null}catch{return null}},oe=({to:s,href:r,className:t,onClick:l,children:a})=>{const i=Ae();return i?f.createElement(i,{to:s,className:t,onClick:l},a):f.createElement("a",{href:r||s,className:t,onClick:l},a)},Ie=({icon:s,url:r,label:t,submenu:l,collapsed:a,active:i,activePath:c,isOpen:d,onToggle:u,onExpand:m,onSetActive:h,isMobile:b=!1})=>{const o=l&&l.length>0,p=o&&l.some(v=>v.url===c),y=i||d&&o||p||r===c,x=v=>{if(v.preventDefault(),b&&o){u();return}if(h&&h(r),a&&m){m();return}o&&!a&&u()};return e.jsx("div",{className:`sidebar-item ${d?"open":""} `,children:e.jsxs("div",{className:`sidebar-item-wrapper ${y&&!a?"active":""}`,children:[e.jsxs(oe,{to:r,href:r,className:`sidebar-link sidebar-collapsed ${y?"active-text":""}`,onClick:x,children:[e.jsx("div",{className:`sidebar-icon ${y?"active-text":""}`,children:s}),(!a||b)&&e.jsxs("div",{className:"sidebar-content",children:[e.jsx("span",{className:"sidebar-label",children:t}),o&&e.jsx("span",{className:"submenu-arrow",children:e.jsx($e,{className:`${y?"active-text":""}`})})]})]}),o&&(!a||b)&&e.jsx("div",{className:"submenu",children:l.map((v,_)=>{const L=v.url===c;return e.jsx(oe,{to:v.url,href:v.url,className:`submenu-item ${L?"active-text":""}`,onClick:()=>h&&h(v.url),children:e.jsx("span",{className:"submenu-label",children:v.label})},_)})})]})})},ze=({className:s})=>e.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),e.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=()=>e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{className:"hamburger-icon",children:[e.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line top-line"}),e.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line middle-line"}),e.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line bottom-line"})]})}),de=f.forwardRef(({logo:s,logoCollapsed:r,items:t,logoutIcon:l,onLogout:a,logoutLabel:i="Cerrar sesión",collapsed:c=!1,onToggle:d,activePath:u,onActiveChange:m,className:h,...b},o)=>{const[p,y]=f.useState(c),[x,v]=f.useState(null),[_,L]=f.useState(u),[N,z]=f.useState(!1),[B,M]=f.useState(!1),[C,Y]=f.useState(!1);f.useEffect(()=>{const j=()=>{Y(window.innerWidth<=768)};return j(),window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)}},[]),f.useEffect(()=>{var j;if(u){L(u);const E=t.findIndex(A=>{var I;return A.url===u||((I=A.submenu)==null?void 0:I.some(R=>R.url===u))});E!==-1&&((j=t[E].submenu)!=null&&j.length?v(E):v(null))}},[u,t]);const U=()=>{y(!p),d&&d()},Z=()=>{var j;if(p)if(y(!1),d&&d(),_){const E=t.findIndex(A=>{var I;return A.url===_||((I=A.submenu)==null?void 0:I.some(R=>R.url===_))});E!==-1&&((j=t[E].submenu)!=null&&j.length)?v(E):v(null)}else v(null)},W=j=>{v(x===j?null:j),C&&z(!0)},$=j=>{L(j);const E=t.findIndex(A=>{var I;return A.url===j||((I=A.submenu)==null?void 0:I.some(R=>R.url===j))});if(E!==-1){const A=t[E];A.submenu&&A.submenu.length>0?v(E):v(null)}else v(null);m&&m(j),C&&(t.some(I=>{var R;return(R=I.submenu)==null?void 0:R.some(X=>X.url===j)})||(M(!0),setTimeout(()=>{z(!1),M(!1)},500)))},D=()=>{N?(M(!0),setTimeout(()=>{z(!1),M(!1)},500)):z(!0)};return e.jsxs(e.Fragment,{children:[C&&e.jsxs("div",{className:"mobile-navbar",children:[e.jsx("div",{className:"mobile-logo",children:s}),e.jsx("button",{className:`mobile-menu-button ${N?"open":""}`,onClick:D,"aria-label":"Toggle mobile menu",children:e.jsx(ce,{})})]}),!C&&e.jsx("button",{className:`mobile-menu-button ${N?"open":""}`,onClick:D,"aria-label":"Toggle mobile menu",style:{display:"none"},children:e.jsx(ce,{})}),C&&(N||B)&&e.jsx("div",{className:`sidebar-overlay ${N?"visible":""}`,onClick:D}),e.jsxs("div",{className:`sidebar-wrapper ${N?"mobile-open":""} ${B?"mobile-closing":""} ${h||""}`,ref:o,...b,children:[e.jsxs("div",{className:`sidebar ${!C&&p?"sidebar-collapsed":""} ${C?"sidebar-mobile":""}`,children:[!C&&e.jsx("div",{className:"sidebar-header",children:e.jsx("div",{className:"sidebar-logo",children:p?e.jsx("span",{className:"logo-text",children:r}):e.jsx("span",{className:"logo-text",children:s})})}),C&&(N||B)&&e.jsxs("div",{className:"mobile-header",children:[e.jsx("div",{className:"mobile-logo-menu",children:s}),e.jsx("button",{className:"mobile-close-button",onClick:D,"aria-label":"Close menu",children:"×"})]}),e.jsx("div",{className:"sidebar-menu",children:t.map((j,E)=>e.jsx(Ie,{icon:j.icon,url:j.url,label:j.label,submenu:j.submenu,collapsed:p,active:j.active||j.url===_,activePath:_,isOpen:x===E,onToggle:()=>W(E),onExpand:Z,onSetActive:$,isMobile:C},E))}),a&&e.jsx("div",{className:"sidebar-footer",children:e.jsxs("button",{className:"logout-button",onClick:a,children:[l,!p&&e.jsx("span",{children:i})]})})]}),!C&&e.jsx("button",{className:`sidebar-toggle-icon${p?" collapsed":""}`,onClick:U,"aria-label":"Toggle sidebar",children:e.jsx(ze,{})})]})]})});de.displayName="Sidebar";const ue=f.forwardRef(({isOpen:s,onClose:r,title:t="",children:l,position:a="right",size:i="medium",enableSwipeToClose:c=!0,className:d,...u},m)=>{const[h,b]=f.useState(!1),o=f.useRef(null),p=f.useRef(0),y=f.useRef(0),x=50,v=()=>{!h&&s&&(b(!0),setTimeout(()=>{b(!1),r()},500))},_=N=>{c&&(p.current=N.touches[0].clientX,y.current=N.touches[0].clientY)},L=N=>{if(!c||!N.changedTouches[0])return;const z=N.changedTouches[0].clientX,B=N.changedTouches[0].clientY,M=z-p.current,C=B-y.current;(a==="right"&&M>x||a==="left"&&M<-x||a==="top"&&C<-x||a==="bottom"&&C>x)&&v()};return f.useEffect(()=>{s&&b(!1)},[s]),f.useEffect(()=>(s&&!h?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s,h]),!s&&!h?null:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`drawer-overlay ${h?"fade-out":"fade-in"}`,onClick:v}),e.jsxs("div",{ref:N=>{o.current=N,typeof m=="function"?m(N):m&&(m.current=N)},className:`drawer drawer-${a} drawer-${i} ${h?"drawer-closing":"drawer-open"} ${d||""}`,onTouchStart:_,onTouchEnd:L,...u,children:[e.jsxs("div",{className:`drawer-header ${t?"has-title":"no-title"}`,children:[t&&e.jsx("h2",{className:"drawer-title",children:t}),e.jsx("button",{className:"drawer-close",onClick:v,"aria-label":"Cerrar",children:"✕"})]}),e.jsx("div",{className:"drawer-content",children:l})]})]})});ue.displayName="Drawer";const Me=V("modal-container",{variants:{size:{s:"modal-size-s",m:"modal-size-m",l:"modal-size-l"}},defaultVariants:{size:"m"}}),me=f.forwardRef(({title:s,children:r,active:t,onClose:l,size:a,className:i,...c},d)=>{const u=f.useRef(null);f.useEffect(()=>{const h=b=>{b.key==="Escape"&&l()};return t&&document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[t,l]);const m=h=>{u.current&&h.target===u.current&&l()};return t?e.jsx("div",{className:"modal-backdrop",ref:u,onClick:m,children:e.jsxs("div",{className:`${Me({size:a})} ${i||""}`,ref:d,...c,children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h2",{children:s}),e.jsx("button",{className:"modal-close",onClick:l,"aria-label":"Cerrar",children:"×"})]}),e.jsx("hr",{className:"modal-divider"}),e.jsx("div",{className:"modal-content",children:r})]})}):null});me.displayName="Modal";const fe=f.forwardRef(({isOpen:s,onToggle:r,title:t,subtitle:l,children:a,className:i,...c},d)=>e.jsxs("div",{className:`collapsible ${s?"open":""} ${i||""}`,ref:d,...c,children:[e.jsxs("div",{className:"collapsible-header",onClick:r,children:[e.jsxs("div",{className:"collapsible-header-content",children:[e.jsx("h3",{className:"collapsible-title",children:t}),l&&e.jsx("p",{className:"collapsible-subtitle",children:l})]}),e.jsx("div",{className:`collapsible-arrow ${s?"open":""}`,children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7 10L12 15L17 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsx("div",{className:`collapsible-content ${s?"open":""}`,children:a})]}));fe.displayName="Collapsible";const he=f.forwardRef(({children:s,className:r,...t},l)=>e.jsx("div",{className:`card ${r||""}`,ref:l,...t,children:s}));he.displayName="Card";const ve=V("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"}}),xe=f.forwardRef(({className:s,size:r,state:t,outline:l,iconAlignment:a,children:i,icon:c,active:d=!1,disabled:u=!1,...m},h)=>{const b=u?"disabled":d?"active":t||"default",o=c?a||"left":"none";return e.jsxs("button",{className:ve({size:r,state:b,outline:l,iconAlignment:o,className:s}),ref:h,disabled:u,...m,children:[c&&o==="left"&&e.jsx("span",{className:"tab-icon",children:c}),e.jsx("span",{className:"tab-content",children:i})]})});xe.displayName="Tab";const be=f.forwardRef(({children:s,defaultActiveIndex:r=0,activeIndex:t,onTabChange:l,className:a="",variant:i="default",size:c="md",outline:d=!1,...u},m)=>{const[h,b]=f.useState(r),o=t!==void 0?t:h,p=x=>{t===void 0&&b(x),l==null||l(x)},y=["tab-group",`tab-group-${i}`,a].filter(Boolean).join(" ");return e.jsx("div",{className:y,role:"tablist",ref:m,...u,children:f.Children.map(s,(x,v)=>f.isValidElement(x)?f.cloneElement(x,{...x.props,active:v===o,size:x.props.size||c,outline:x.props.outline!==void 0?x.props.outline:d,onClick:_=>{var L,N;x.props.disabled||(p(v),(N=(L=x.props).onClick)==null||N.call(L,_))},role:"tab","aria-selected":v===o,"aria-controls":`tabpanel-${v}`,id:`tab-${v}`,tabIndex:v===o?0:-1}):x)})});be.displayName="TabGroup";const ge=f.forwardRef(({buttonsData:s,size:r="sm",className:t,...l},a)=>{const[i,c]=f.useState(0),d=(u,m)=>{u.onClick(),c(m)};return e.jsx("div",{className:`toggle-button-container ${t||""}`,ref:a,...l,children:s.map((u,m)=>e.jsx("div",{className:`toggle-button-inner ${i===m?"active":""} ${r}`,onClick:()=>d(u,m),children:e.jsx("span",{children:u.label})},m))})});ge.displayName="ToggleButton";const pe=({className:s})=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:e.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Re=({size:s=24,className:r=""})=>e.jsxs("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[e.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"}),e.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"}),e.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"}),e.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"})]}),Oe=({size:s=24,className:r=""})=>e.jsxs("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[e.jsx("path",{d:"M11.4 2H2v9.4h9.4V2Z",fill:"#F25022"}),e.jsx("path",{d:"M22 2h-9.4v9.4H22V2Z",fill:"#7FBA00"}),e.jsx("path",{d:"M11.4 12.6H2V22h9.4v-9.4Z",fill:"#00A4EF"}),e.jsx("path",{d:"M22 12.6h-9.4V22H22v-9.4Z",fill:"#FFB900"})]}),Ve=({size:s=24,className:r})=>e.jsx("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:e.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"})}),Be=({size:s=24,className:r})=>e.jsx("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:e.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"})}),De=({size:s=24,className:r})=>e.jsx("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:e.jsx("path",{d:"M7.41 8.59L12 13.17L16.59 8.59L18 10L12 16L6 10L7.41 8.59Z",fill:"currentColor"})}),Fe=({className:s="",size:r=24,color:t="currentColor"})=>e.jsxs("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[e.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"10",y:"3",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"17",y:"3",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"3",y:"10",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"10",y:"10",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"17",y:"10",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"3",y:"17",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"10",y:"17",width:"4",height:"4",rx:"0.5",fill:t}),e.jsx("rect",{x:"17",y:"17",width:"4",height:"4",rx:"0.5",fill:t})]}),je=V("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"}}),we=f.forwardRef(({className:s,size:r,state:t,leadingIcon:l,trailingIcon:a,hintText:i,onClear:c,placeholder:d="Placeholder",value:u,onChange:m,...h},b)=>{const o=!!l,p=!!a,y=u&&u.toString().length>0;let x=t;return t==="default"&&y&&(x="filled"),e.jsxs("div",{className:"input-container",children:[e.jsxs("div",{className:"input-wrapper",children:[o&&e.jsx("span",{className:"input-leading-icon",children:l}),e.jsx("input",{className:je({size:r,state:x,hasLeadingIcon:o,hasTrailingIcon:p,className:s}),placeholder:d,value:u,ref:b,...h}),p&&e.jsx("span",{className:"input-trailing-icon",children:a}),c&&u&&u.toString().length>0&&e.jsx("button",{type:"button",className:"input-clear-button",onClick:c,"aria-label":"Clear input",children:e.jsx(pe,{})})]}),i&&e.jsx("div",{className:`input-hint input-hint-${x}`,children:i})]})});we.displayName="Input";const Ne=V("alert",{variants:{variant:{info:"alert-info",warning:"alert-warning",success:"alert-success",error:"alert-error"}},defaultVariants:{variant:"info"}}),ye=f.forwardRef(({className:s,variant:r,title:t,description:l,children:a,onDismiss:i,icon:c,...d},u)=>{const m={info:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),e.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),warning:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),e.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),success:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),e.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),error:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),e.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},h=c||(r?m[r]:m.info);return e.jsxs("div",{className:Ne({variant:r,className:s}),ref:u,...d,children:[e.jsx("div",{className:"alert-icon",children:h}),e.jsxs("div",{className:"alert-content",children:[t&&e.jsx("div",{className:"alert-title",children:t}),l&&e.jsx("div",{className:"alert-description",children:l}),a&&e.jsx("div",{className:"alert-children",children:a})]}),i&&e.jsx("button",{className:"alert-dismiss",onClick:i,"aria-label":"Close alert",children:e.jsx(pe,{})})]})});ye.displayName="Alert";const We=V("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"}}),Ye={google:"Continuar con Google",microsoft:"Continuar con Microsoft"},Pe={google:Re,microsoft:Oe},ke=f.forwardRef(({className:s,variant:r,size:t,state:l,pill:a,iconAlignment:i,provider:c,children:d,disabled:u,onClick:m,...h},b)=>{const o=Pe[c],p=d||Ye[c],y=u?"disabled":l,v={xs:16,sm:18,md:20,lg:22,xl:24}[t||"md"];return e.jsxs("button",{className:We({variant:r,size:t,state:y,pill:a,iconAlignment:i,provider:c,className:s}),disabled:u,onClick:m,ref:b,...h,children:[e.jsx("span",{className:"social-login-icon",children:e.jsx(o,{size:v})}),e.jsx("span",{className:"social-login-text",children:p})]})});ke.displayName="SocialLogin";const Ge=V("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"}}),He=f.forwardRef(({className:s,variant:r,size:t,color:l,animated:a,amount:i,total:c,showPercentage:d=!1,label:u,height:m,style:h,...b},o)=>{const p=Math.min(Math.max(i/c*100,0),100),y={...h||{},...m?{height:m}:{}},x={width:`${p}%`};return e.jsxs("div",{className:Ge({variant:r,size:t,color:l,animated:a,className:s}),style:y,ref:o,role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":c,"aria-label":u||`Progreso: ${i} de ${c}`,...b,children:[e.jsx("div",{className:"progress-bar-track",children:e.jsx("div",{className:"progress-bar-fill",style:x})}),(d||u)&&e.jsx("div",{className:"progress-bar-text",children:u||`${Math.round(p)}%`})]})}),Ue=(s,r)=>`/logos/${`${s}_${r}.png`}`,Q=f.forwardRef(({type:s="logo",color:r="color",alt:t,className:l,...a},i)=>{const c=Ue(s,r),d=t||(s==="logo"?"Levannta logo":"Levannta isologo");return e.jsx("img",{ref:i,className:["logo",l].filter(Boolean).join(" "),src:c,alt:d,...a})});Q.displayName="Logo";const Ce=f.forwardRef(({title:s,children:r,className:t,showLogo:l=!0,logoProps:a,...i},c)=>{const d=["header",t].filter(Boolean).join(" ");return e.jsx("header",{className:d,ref:c,...i,children:e.jsxs("div",{className:"header-content-wrapper",children:[e.jsx("h1",{className:"header-title",children:s}),l&&e.jsx(Q,{className:"header-logo",type:(a==null?void 0:a.type)??"logo",color:(a==null?void 0:a.color)??"color",width:(a==null?void 0:a.width)??240,height:a==null?void 0:a.height,alt:a==null?void 0:a.alt}),r&&e.jsx("div",{className:"header-children",children:r})]})})});Ce.displayName="Header";const Ze=V("pagination",{variants:{size:{xs:"pagination-size-xs",sm:"pagination-size-sm",md:"pagination-size-md",lg:"pagination-size-lg"}},defaultVariants:{size:"md"}}),Ee=f.forwardRef(({className:s,size:r,currentPage:t,totalPages:l,itemsPerPage:a,totalItems:i,itemsPerPageOptions:c=[10,20,50,100],onPageChange:d,onItemsPerPageChange:u,resultsLabel:m="Resultados",ofLabel:h="de",pageLabel:b="Página",prevDisabled:o,nextDisabled:p,...y},x)=>{const[v,_]=f.useState(!1),L=f.useRef(null),N=o??t<=1,z=p??t>=l,M={xs:20,sm:20,md:22,lg:24}[r||"md"],C=r==="lg"||r==="md"?28:24,Y=()=>{!N&&d&&d(t-1)},U=()=>{!z&&d&&d(t+1)},Z=$=>{u&&u($),_(!1)},W=()=>{_(!v)};return f.useEffect(()=>{const $=D=>{L.current&&!L.current.contains(D.target)&&_(!1)};return v&&document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[v]),e.jsxs("div",{className:Ze({size:r,className:s}),ref:x,...y,children:[e.jsxs("div",{className:"pagination-results-section",children:[e.jsx("div",{className:"pagination-results",children:e.jsx("span",{className:"pagination-results-text",children:m})}),e.jsx("div",{className:"pagination-items-selector",ref:L,children:e.jsxs("div",{className:"pagination-items-dropdown",children:[e.jsxs("button",{className:"pagination-items-display",onClick:W,type:"button","aria-expanded":v,"aria-haspopup":"listbox",children:[e.jsx("span",{className:"pagination-items-text",children:a}),e.jsx(De,{size:C,className:`pagination-chevron-down ${v?"open":""}`})]}),v&&e.jsx("div",{className:"pagination-dropdown-menu",role:"listbox",children:c.map($=>e.jsx("button",{className:`pagination-dropdown-item ${$===a?"selected":""}`,onClick:()=>Z($),type:"button",role:"option","aria-selected":$===a,children:$},$))})]})}),e.jsx("div",{className:"pagination-total",children:e.jsxs("span",{className:"pagination-total-text",children:[h," ",i]})})]}),e.jsxs("div",{className:"pagination-navigation",children:[e.jsx("button",{className:`pagination-nav-button ${N?"disabled":""}`,onClick:Y,disabled:N,type:"button","aria-label":"Página anterior",children:e.jsx(Ve,{size:M})}),e.jsx("div",{className:"pagination-page-info",children:e.jsxs("span",{className:"pagination-page-text",children:[b," ",t," ",h," ",l]})}),e.jsx("button",{className:`pagination-nav-button ${z?"disabled":""}`,onClick:U,disabled:z,type:"button","aria-label":"Página siguiente",children:e.jsx(Be,{size:M})})]})]})});Ee.displayName="Pagination";const Xe=({icon:s,title:r,options:t=[],onChange:l,className:a=""})=>{const[i,c]=f.useState(!1),d=f.useRef(null);f.useEffect(()=>{const o=p=>{d.current&&!d.current.contains(p.target)&&c(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[]);const u=()=>{c(!i)},m=o=>{var p;o.disabled||(c(!1),l==null||l(o),(p=o.onSelect)==null||p.call(o))},h=r,b=s||e.jsx(Fe,{size:20,color:"#00D4AA"});return e.jsxs("div",{className:`selector-container ${a}`,ref:d,children:[e.jsxs("div",{className:`selector ${i?"selector--open":""}`,onClick:u,children:[e.jsx("div",{className:"selector__icon",children:b}),e.jsx("div",{className:"selector__title",children:h}),e.jsx("div",{className:"selector__chevron",children:e.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`selector__chevron-icon ${i?"selector__chevron-icon--open":""}`,children:e.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i&&t.length>0&&e.jsx("div",{className:"selector__dropdown",children:e.jsx("div",{className:"selector__dropdown-content",children:t.map(o=>e.jsxs("div",{className:`selector__option ${o.active?"selector__option--selected":""} ${o.disabled?"selector__option--disabled":""}`,onClick:()=>m(o),children:[o.icon&&e.jsx("div",{className:"selector__option-icon",children:o.icon}),e.jsxs("div",{className:"selector__option-content",children:[e.jsx("div",{className:"selector__option-title",children:o.title}),o.subtitle&&e.jsx("div",{className:"selector__option-subtitle",children:o.subtitle})]})]},o.id))})})]})},_e=f.forwardRef(({title:s,subtitle:r,buttonText:t,buttonVariant:l="filled",onClick:a,image:i="src/assets/images/default_card_wallpaper.png",icon:c,disabled:d=!1,className:u="",size:m="md",...h},b)=>e.jsxs("div",{className:`cardcta-container cardcta-size-${m} ${u}`,style:{backgroundImage:`url('${i}')`,backgroundSize:"cover",backgroundPosition:"center",position:"relative",overflow:"hidden"},ref:b,...h,children:[e.jsx("div",{className:"cardcta-gradient-overlay"}),d&&e.jsx("div",{className:"cardcta-bg-disabled"}),e.jsxs("div",{className:"cardcta-overlay",children:[e.jsx("div",{className:"cardcta-icon",children:c}),e.jsx("h3",{className:"cardcta-title",children:s}),r&&e.jsx("p",{className:"cardcta-subtitle",children:r}),e.jsx(J,{onClick:a,size:"sm",disabled:d,variant:l,children:d?e.jsx("span",{children:"Próximamente"}):t})]})]}));_e.displayName="CardCTA",w.Alert=ye,w.Button=J,w.Card=he,w.CardCTA=_e,w.Collapsible=fe,w.Drawer=ue,w.Header=Ce,w.Input=we,w.Logo=Q,w.Modal=me,w.Pagination=Ee,w.ProgressBar=He,w.Selector=Xe,w.Sidebar=de,w.SocialLogin=ke,w.Tab=xe,w.TabGroup=be,w.ToggleButton=ge,w.alertVariants=Ne,w.buttonVariants=ie,w.inputVariants=je,w.tabVariants=ve,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,xe,J,st,J),cr[J+xe]=!0}}return e===i?Qr(O):qr(O),O}}function et(e,s,c){return ur(e,s,c,!0)}function rt(e,s,c){return ur(e,s,c,!1)}var tt=rt,nt=et;Q.Fragment=i,Q.jsx=tt,Q.jsxs=nt}()),Q}process.env.NODE_ENV==="production"?ce.exports=dr():ce.exports=fr();var r=ce.exports;function ye(t){var a,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(a=0;a<l;a++)t[a]&&(n=ye(t[a]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function hr(){for(var t,a,n=0,i="",l=arguments.length;n<l;n++)(t=arguments[n])&&(a=ye(t))&&(i&&(i+=" "),i+=a);return i}const Ne=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ce=hr,H=(t,a)=>n=>{var i;if((a==null?void 0:a.variants)==null)return Ce(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:m}=a,v=Object.keys(l).map(h=>{const o=n==null?void 0:n[h],p=m==null?void 0:m[h];if(o===null)return null;const d=Ne(o)||Ne(p);return l[h][d]}),f=n&&Object.entries(n).reduce((h,o)=>{let[p,d]=o;return d===void 0||(h[p]=d),h},{}),u=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((h,o)=>{let{class:p,className:d,...j}=o;return Object.entries(j).every(S=>{let[w,b]=S;return Array.isArray(b)?b.includes({...m,...f}[w]):{...m,...f}[w]===b})?[...h,p,d]:h},[]);return Ce(t,v,u,n==null?void 0:n.class,n==null?void 0:n.className)},_e=H("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"}]}),ue=g.forwardRef(({className:t,variant:a,color:n,size:i,pill:l,active:m,iconLeft:v,iconRight:f,iconLeftJustified:u,iconRightJustified:h,iconOnly:o,width:p,children:d,style:j,...S},w)=>{const b={...j||{},...p?{width:p}:{}};return r.jsxs("button",{className:_e({variant:a,color:n,size:i,pill:l,active:m,iconLeft:!!v,iconRight:!!f,iconLeftJustified:!!u,iconRightJustified:!!h,iconOnly:!!o,className:t}),style:b,ref:w,...S,children:[v&&r.jsx("span",{className:"button-icon-left",children:v}),u&&r.jsx("span",{className:"button-icon-left",children:u}),o?r.jsx("span",{children:o}):d,f&&r.jsx("span",{className:"button-icon-right",children:f}),h&&r.jsx("span",{className:"button-icon-right",children:h})]})});ue.displayName="Button";const vr=({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"})}),mr=()=>{try{const t=require("react-router-dom");return t!=null&&t.Link?t.Link:null}catch{return null}},ke=({to:t,href:a,className:n,onClick:i,children:l})=>{const m=mr();return m?g.createElement(m,{to:t,className:n,onClick:i},l):g.createElement("a",{href:a||t,className:n,onClick:i},l)},gr=({icon:t,url:a,label:n,submenu:i,collapsed:l,active:m,activePath:v,isOpen:f,onToggle:u,onExpand:h,onSetActive:o,isMobile:p=!1})=>{const d=i&&i.length>0,j=d&&i.some(b=>b.url===v),S=m||f&&d||j||a===v,w=b=>{if(b.preventDefault(),p&&d){u();return}if(o&&o(a),l&&h){h();return}d&&!l&&u()};return r.jsx("div",{className:`sidebar-item ${f?"open":""} `,children:r.jsxs("div",{className:`sidebar-item-wrapper ${S&&!l?"active":""}`,children:[r.jsxs(ke,{to:a,href:a,className:`sidebar-link sidebar-collapsed ${S?"active-text":""}`,onClick:w,children:[r.jsx("div",{className:`sidebar-icon ${S?"active-text":""}`,children:t}),(!l||p)&&r.jsxs("div",{className:"sidebar-content",children:[r.jsx("span",{className:"sidebar-label",children:n}),d&&r.jsx("span",{className:"submenu-arrow",children:r.jsx(vr,{className:`${S?"active-text":""}`})})]})]}),d&&(!l||p)&&r.jsx("div",{className:"submenu",children:i.map((b,L)=>{const k=b.url===v;return r.jsx(ke,{to:b.url,href:b.url,className:`submenu-item ${k?"active-text":""}`,onClick:()=>o&&o(b.url),children:r.jsx("span",{className:"submenu-label",children:b.label})},L)})})]})})},br=({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"})]}),Ee=()=>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"})]})}),Se=g.forwardRef(({logo:t,logoCollapsed:a,items:n,logoutIcon:i,onLogout:l,logoutLabel:m="Cerrar sesión",collapsed:v=!1,onToggle:f,activePath:u,onActiveChange:h,className:o,...p},d)=>{const[j,S]=g.useState(v),[w,b]=g.useState(null),[L,k]=g.useState(u),[T,W]=g.useState(!1),[G,P]=g.useState(!1),[M,ee]=g.useState(!1);g.useEffect(()=>{const N=()=>{ee(window.innerWidth<=768)};return N(),window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}},[]),g.useEffect(()=>{var N;if(u){k(u);const $=n.findIndex(D=>{var B;return D.url===u||((B=D.submenu)==null?void 0:B.some(U=>U.url===u))});$!==-1&&((N=n[$].submenu)!=null&&N.length?b($):b(null))}},[u,n]);const K=()=>{S(!j),f&&f()},re=()=>{var N;if(j)if(S(!1),f&&f(),L){const $=n.findIndex(D=>{var B;return D.url===L||((B=D.submenu)==null?void 0:B.some(U=>U.url===L))});$!==-1&&((N=n[$].submenu)!=null&&N.length)?b($):b(null)}else b(null)},te=N=>{b(w===N?null:N),M&&W(!0)},A=N=>{k(N);const $=n.findIndex(D=>{var B;return D.url===N||((B=D.submenu)==null?void 0:B.some(U=>U.url===N))});if($!==-1){const D=n[$];D.submenu&&D.submenu.length>0?b($):b(null)}else b(null);h&&h(N),M&&(n.some(B=>{var U;return(U=B.submenu)==null?void 0:U.some(se=>se.url===N)})||(P(!0),setTimeout(()=>{W(!1),P(!1)},500)))},z=()=>{T?(P(!0),setTimeout(()=>{W(!1),P(!1)},500)):W(!0)};return r.jsxs(r.Fragment,{children:[M&&r.jsxs("div",{className:"mobile-navbar",children:[r.jsx("div",{className:"mobile-logo",children:t}),r.jsx("button",{className:`mobile-menu-button ${T?"open":""}`,onClick:z,"aria-label":"Toggle mobile menu",children:r.jsx(Ee,{})})]}),!M&&r.jsx("button",{className:`mobile-menu-button ${T?"open":""}`,onClick:z,"aria-label":"Toggle mobile menu",style:{display:"none"},children:r.jsx(Ee,{})}),M&&(T||G)&&r.jsx("div",{className:`sidebar-overlay ${T?"visible":""}`,onClick:z}),r.jsxs("div",{className:`sidebar-wrapper ${T?"mobile-open":""} ${G?"mobile-closing":""} ${o||""}`,ref:d,...p,children:[r.jsxs("div",{className:`sidebar ${!M&&j?"sidebar-collapsed":""} ${M?"sidebar-mobile":""}`,children:[!M&&r.jsx("div",{className:"sidebar-header",children:r.jsx("div",{className:"sidebar-logo",children:j?r.jsx("span",{className:"logo-text",children:a}):r.jsx("span",{className:"logo-text",children:t})})}),M&&(T||G)&&r.jsxs("div",{className:"mobile-header",children:[r.jsx("div",{className:"mobile-logo-menu",children:t}),r.jsx("button",{className:"mobile-close-button",onClick:z,"aria-label":"Close menu",children:"×"})]}),r.jsx("div",{className:"sidebar-menu",children:n.map((N,$)=>r.jsx(gr,{icon:N.icon,url:N.url,label:N.label,submenu:N.submenu,collapsed:j,active:N.active||N.url===L,activePath:L,isOpen:w===$,onToggle:()=>te($),onExpand:re,onSetActive:A,isMobile:M},$))}),l&&r.jsx("div",{className:"sidebar-footer",children:r.jsxs("button",{className:"logout-button",onClick:l,children:[i,!j&&r.jsx("span",{children:m})]})})]}),!M&&r.jsx("button",{className:`sidebar-toggle-icon${j?" collapsed":""}`,onClick:K,"aria-label":"Toggle sidebar",children:r.jsx(br,{})})]})]})});Se.displayName="Sidebar";const Te=g.forwardRef(({isOpen:t,onClose:a,title:n="",children:i,position:l="right",size:m="medium",enableSwipeToClose:v=!0,className:f,...u},h)=>{const[o,p]=g.useState(!1),d=g.useRef(null),j=g.useRef(0),S=g.useRef(0),w=50,b=()=>{!o&&t&&(p(!0),setTimeout(()=>{p(!1),a()},500))},L=T=>{v&&(j.current=T.touches[0].clientX,S.current=T.touches[0].clientY)},k=T=>{if(!v||!T.changedTouches[0])return;const W=T.changedTouches[0].clientX,G=T.changedTouches[0].clientY,P=W-j.current,M=G-S.current;(l==="right"&&P>w||l==="left"&&P<-w||l==="top"&&M<-w||l==="bottom"&&M>w)&&b()};return g.useEffect(()=>{t&&p(!1)},[t]),g.useEffect(()=>(t&&!o?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t,o]),!t&&!o?null:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`drawer-overlay ${o?"fade-out":"fade-in"}`,onClick:b}),r.jsxs("div",{ref:T=>{d.current=T,typeof h=="function"?h(T):h&&(h.current=T)},className:`drawer drawer-${l} drawer-${m} ${o?"drawer-closing":"drawer-open"} ${f||""}`,onTouchStart:L,onTouchEnd:k,...u,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:b,"aria-label":"Cerrar",children:"✕"})]}),r.jsx("div",{className:"drawer-content",children:i})]})]})});Te.displayName="Drawer";const pr=H("modal-container",{variants:{size:{s:"modal-size-s",m:"modal-size-m",l:"modal-size-l"}},defaultVariants:{size:"m"}}),Re=g.forwardRef(({title:t,children:a,active:n,onClose:i,size:l,className:m,...v},f)=>{const u=g.useRef(null);g.useEffect(()=>{const o=p=>{p.key==="Escape"&&i()};return n&&document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[n,i]);const h=o=>{u.current&&o.target===u.current&&i()};return n?r.jsx("div",{className:"modal-backdrop",ref:u,onClick:h,children:r.jsxs("div",{className:`${pr({size:l})} ${m||""}`,ref:f,...v,children:[r.jsxs("div",{className:"modal-header",children:[r.jsx("h2",{children:t}),r.jsx("button",{className:"modal-close",onClick:i,"aria-label":"Cerrar",children:"×"})]}),r.jsx("hr",{className:"modal-divider"}),r.jsx("div",{className:"modal-content",children:a})]})}):null});Re.displayName="Modal";const Le=g.forwardRef(({isOpen:t,onToggle:a,title:n,subtitle:i,children:l,className:m,...v},f)=>r.jsxs("div",{className:`collapsible ${t?"open":""} ${m||""}`,ref:f,...v,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}),i&&r.jsx("p",{className:"collapsible-subtitle",children:i})]}),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:l})]}));Le.displayName="Collapsible";const $e=g.forwardRef(({children:t,className:a,...n},i)=>r.jsx("div",{className:`card ${a||""}`,ref:i,...n,children:t}));$e.displayName="Card";const Ie=H("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"}}),Oe=g.forwardRef(({className:t,size:a,state:n,outline:i,iconAlignment:l,children:m,icon:v,active:f=!1,disabled:u=!1,...h},o)=>{const p=u?"disabled":f?"active":n||"default",d=v?l||"left":"none";return r.jsxs("button",{className:Ie({size:a,state:p,outline:i,iconAlignment:d,className:t}),ref:o,disabled:u,...h,children:[v&&d==="left"&&r.jsx("span",{className:"tab-icon",children:v}),r.jsx("span",{className:"tab-content",children:m})]})});Oe.displayName="Tab";const Me=g.forwardRef(({children:t,defaultActiveIndex:a=0,activeIndex:n,onTabChange:i,className:l="",variant:m="default",size:v="md",outline:f=!1,...u},h)=>{const[o,p]=g.useState(a),d=n!==void 0?n:o,j=w=>{n===void 0&&p(w),i==null||i(w)},S=["tab-group",`tab-group-${m}`,l].filter(Boolean).join(" ");return r.jsx("div",{className:S,role:"tablist",ref:h,...u,children:g.Children.map(t,(w,b)=>g.isValidElement(w)?g.cloneElement(w,{...w.props,active:b===d,size:w.props.size||v,outline:w.props.outline!==void 0?w.props.outline:f,onClick:L=>{var k,T;w.props.disabled||(j(b),(T=(k=w.props).onClick)==null||T.call(k,L))},role:"tab","aria-selected":b===d,"aria-controls":`tabpanel-${b}`,id:`tab-${b}`,tabIndex:b===d?0:-1}):w)})});Me.displayName="TabGroup";const Ae=g.forwardRef(({buttonsData:t,size:a="sm",className:n,activeIndex:i,...l},m)=>{const[v,f]=g.useState(i),u=(h,o)=>{h.onClick(),f(o)};return r.jsx("div",{className:`toggle-button-container ${n||""}`,ref:m,...l,children:t.map((h,o)=>r.jsx("div",{className:`toggle-button-inner ${v===o?"active":""} ${a}`,onClick:()=>u(h,o),children:r.jsx("span",{children:h.label})},o))})});Ae.displayName="ToggleButton";const ze=({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"})}),xr=({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"})]}),jr=({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"})]}),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:"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"})}),yr=({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"})}),Nr=({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"})}),Cr=({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})]}),De=H("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"}}),Ve=g.forwardRef(({className:t,size:a,state:n,leadingIcon:i,trailingIcon:l,hintText:m,onClear:v,placeholder:f="Placeholder",value:u,onChange:h,...o},p)=>{const d=!!i,j=!!l,S=u&&u.toString().length>0;let w=n;return n==="default"&&S&&(w="filled"),r.jsxs("div",{className:"input-container",children:[r.jsxs("div",{className:"input-wrapper",children:[d&&r.jsx("span",{className:"input-leading-icon",children:i}),r.jsx("input",{className:De({size:a,state:w,hasLeadingIcon:d,hasTrailingIcon:j,className:t}),placeholder:f,value:u,ref:p,...o}),j&&r.jsx("span",{className:"input-trailing-icon",children:l}),v&&u&&u.toString().length>0&&r.jsx("button",{type:"button",className:"input-clear-button",onClick:v,"aria-label":"Clear input",children:r.jsx(ze,{})})]}),m&&r.jsx("div",{className:`input-hint input-hint-${w}`,children:m})]})});Ve.displayName="Input";const Fe=H("alert",{variants:{variant:{info:"alert-info",warning:"alert-warning",success:"alert-success",error:"alert-error"}},defaultVariants:{variant:"info"}}),Be=g.forwardRef(({className:t,variant:a,title:n,description:i,children:l,onDismiss:m,icon:v,...f},u)=>{const h={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"})]})},o=v||(a?h[a]:h.info);return r.jsxs("div",{className:Fe({variant:a,className:t}),ref:u,...f,children:[r.jsx("div",{className:"alert-icon",children:o}),r.jsxs("div",{className:"alert-content",children:[n&&r.jsx("div",{className:"alert-title",children:n}),i&&r.jsx("div",{className:"alert-description",children:i}),l&&r.jsx("div",{className:"alert-children",children:l})]}),m&&r.jsx("button",{className:"alert-dismiss",onClick:m,"aria-label":"Close alert",children:r.jsx(ze,{})})]})});Be.displayName="Alert";const _r=H("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"}}),kr={google:"Continuar con Google",microsoft:"Continuar con Microsoft"},Er={google:xr,microsoft:jr},We=g.forwardRef(({className:t,variant:a,size:n,state:i,pill:l,iconAlignment:m,provider:v,children:f,disabled:u,onClick:h,...o},p)=>{const d=Er[v],j=f||kr[v],S=u?"disabled":i,b={xs:16,sm:18,md:20,lg:22,xl:24}[n||"md"];return r.jsxs("button",{className:_r({variant:a,size:n,state:S,pill:l,iconAlignment:m,provider:v,className:t}),disabled:u,onClick:h,ref:p,...o,children:[r.jsx("span",{className:"social-login-icon",children:r.jsx(d,{size:b})}),r.jsx("span",{className:"social-login-text",children:j})]})});We.displayName="SocialLogin";const Sr=H("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"}}),Tr=g.forwardRef(({className:t,variant:a,size:n,color:i,animated:l,amount:m,total:v,showPercentage:f=!1,label:u,height:h,style:o,...p},d)=>{const j=Math.min(Math.max(m/v*100,0),100),S={...o||{},...h?{height:h}:{}},w={width:`${j}%`};return r.jsxs("div",{className:Sr({variant:a,size:n,color:i,animated:l,className:t}),style:S,ref:d,role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":v,"aria-label":u||`Progreso: ${m} de ${v}`,...p,children:[r.jsx("div",{className:"progress-bar-track",children:r.jsx("div",{className:"progress-bar-fill",style:w})}),(f||u)&&r.jsx("div",{className:"progress-bar-text",children:u||`${Math.round(j)}%`})]})}),Rr=(t,a)=>`/logos/${`${t}_${a}.png`}`,de=g.forwardRef(({type:t="logo",color:a="color",alt:n,className:i,...l},m)=>{const v=Rr(t,a),f=n||(t==="logo"?"Levannta logo":"Levannta isologo");return r.jsx("img",{ref:m,className:["logo",i].filter(Boolean).join(" "),src:v,alt:f,...l})});de.displayName="Logo";const Pe=g.forwardRef(({title:t,children:a,className:n,showLogo:i=!0,logoProps:l,...m},v)=>{const f=["header",n].filter(Boolean).join(" ");return r.jsx("header",{className:f,ref:v,...m,children:r.jsxs("div",{className:"header-content-wrapper",children:[r.jsx("h1",{className:"header-title",children:t}),i&&r.jsx(de,{className:"header-logo",type:(l==null?void 0:l.type)??"logo",color:(l==null?void 0:l.color)??"color",width:(l==null?void 0:l.width)??240,height:l==null?void 0:l.height,alt:l==null?void 0:l.alt}),a&&r.jsx("div",{className:"header-children",children:a})]})})});Pe.displayName="Header";const Lr=H("pagination",{variants:{size:{xs:"pagination-size-xs",sm:"pagination-size-sm",md:"pagination-size-md",lg:"pagination-size-lg"}},defaultVariants:{size:"md"}}),Ye=g.forwardRef(({className:t,size:a,currentPage:n,totalPages:i,itemsPerPage:l,totalItems:m,itemsPerPageOptions:v=[10,20,50,100],onPageChange:f,onItemsPerPageChange:u,resultsLabel:h="Resultados",ofLabel:o="de",pageLabel:p="Página",prevDisabled:d,nextDisabled:j,...S},w)=>{const[b,L]=g.useState(!1),k=g.useRef(null),T=d??n<=1,W=j??n>=i,P={xs:20,sm:20,md:22,lg:24}[a||"md"],M=a==="lg"||a==="md"?28:24,ee=()=>{!T&&f&&f(n-1)},K=()=>{!W&&f&&f(n+1)},re=A=>{u&&u(A),L(!1)},te=()=>{L(!b)};return g.useEffect(()=>{const A=z=>{k.current&&!k.current.contains(z.target)&&L(!1)};return b&&document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[b]),r.jsxs("div",{className:Lr({size:a,className:t}),ref:w,...S,children:[r.jsxs("div",{className:"pagination-results-section",children:[r.jsx("div",{className:"pagination-results",children:r.jsx("span",{className:"pagination-results-text",children:h})}),r.jsx("div",{className:"pagination-items-selector",ref:k,children:r.jsxs("div",{className:"pagination-items-dropdown",children:[r.jsxs("button",{className:"pagination-items-display",onClick:te,type:"button","aria-expanded":b,"aria-haspopup":"listbox",children:[r.jsx("span",{className:"pagination-items-text",children:l}),r.jsx(Nr,{size:M,className:`pagination-chevron-down ${b?"open":""}`})]}),b&&r.jsx("div",{className:"pagination-dropdown-menu",role:"listbox",children:v.map(A=>r.jsx("button",{className:`pagination-dropdown-item ${A===l?"selected":""}`,onClick:()=>re(A),type:"button",role:"option","aria-selected":A===l,children:A},A))})]})}),r.jsx("div",{className:"pagination-total",children:r.jsxs("span",{className:"pagination-total-text",children:[o," ",m]})})]}),r.jsxs("div",{className:"pagination-navigation",children:[r.jsx("button",{className:`pagination-nav-button ${T?"disabled":""}`,onClick:ee,disabled:T,type:"button","aria-label":"Página anterior",children:r.jsx(wr,{size:P})}),r.jsx("div",{className:"pagination-page-info",children:r.jsxs("span",{className:"pagination-page-text",children:[p," ",n," ",o," ",i]})}),r.jsx("button",{className:`pagination-nav-button ${W?"disabled":""}`,onClick:K,disabled:W,type:"button","aria-label":"Página siguiente",children:r.jsx(yr,{size:P})})]})]})});Ye.displayName="Pagination";const $r=({icon:t,title:a,options:n=[],onChange:i,className:l=""})=>{const[m,v]=g.useState(!1),f=g.useRef(null);g.useEffect(()=>{const d=j=>{f.current&&!f.current.contains(j.target)&&v(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[]);const u=()=>{v(!m)},h=d=>{var j;d.disabled||(v(!1),i==null||i(d),(j=d.onSelect)==null||j.call(d))},o=a,p=t||r.jsx(Cr,{size:20,color:"#00D4AA"});return r.jsxs("div",{className:`selector-container ${l}`,ref:f,children:[r.jsxs("div",{className:`selector ${m?"selector--open":""}`,onClick:u,children:[r.jsx("div",{className:"selector__icon",children:p}),r.jsx("div",{className:"selector__title",children:o}),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 ${m?"selector__chevron-icon--open":""}`,children:r.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),m&&n.length>0&&r.jsx("div",{className:"selector__dropdown",children:r.jsx("div",{className:"selector__dropdown-content",children:n.map(d=>r.jsxs("div",{className:`selector__option ${d.active?"selector__option--selected":""} ${d.disabled?"selector__option--disabled":""}`,onClick:()=>h(d),children:[d.icon&&r.jsx("div",{className:"selector__option-icon",children:d.icon}),r.jsxs("div",{className:"selector__option-content",children:[r.jsx("div",{className:"selector__option-title",children:d.title}),d.subtitle&&r.jsx("div",{className:"selector__option-subtitle",children:d.subtitle})]})]},d.id))})})]})},Ue=g.forwardRef(({title:t,subtitle:a,buttonText:n,buttonVariant:i="filled",onClick:l,image:m="src/assets/images/default_card_wallpaper.png",icon:v,disabled:f=!1,className:u="",size:h="md",...o},p)=>r.jsxs("div",{className:`cardcta-container cardcta-size-${h} ${u}`,style:{backgroundImage:`url('${m}')`,backgroundSize:"cover",backgroundPosition:"center",position:"relative",overflow:"hidden"},ref:p,...o,children:[r.jsx("div",{className:"cardcta-gradient-overlay"}),f&&r.jsx("div",{className:"cardcta-bg-disabled"}),r.jsxs("div",{className:"cardcta-overlay",children:[r.jsx("div",{className:"cardcta-icon",children:v}),r.jsx("h3",{className:"cardcta-title",children:t}),a&&r.jsx("p",{className:"cardcta-subtitle",children:a}),r.jsx(ue,{onClick:l,size:"sm",disabled:f,variant:i,children:f?r.jsx("span",{children:"Próximamente"}):n})]})]}));Ue.displayName="CardCTA",E.Alert=Be,E.Button=ue,E.Card=$e,E.CardCTA=Ue,E.Collapsible=Le,E.Drawer=Te,E.Header=Pe,E.Input=Ve,E.Logo=de,E.Modal=Re,E.Pagination=Ye,E.ProgressBar=Tr,E.Selector=$r,E.Sidebar=Se,E.SocialLogin=We,E.Tab=Oe,E.TabGroup=Me,E.ToggleButton=Ae,E.alertVariants=Fe,E.buttonVariants=_e,E.inputVariants=De,E.tabVariants=Ie,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
23
31
  //# sourceMappingURL=index.umd.js.map