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