ixc-library-portal 1.1.47 → 1.1.48

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.
@@ -6,19 +6,19 @@
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 jr;function ja(){if(jr)return xe;jr=1;var e=typeof Symbol=="function"&&Symbol.for,s=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function z(k){if(typeof k=="object"&&k!==null){var R=k.$$typeof;switch(R){case s:switch(k=k.type,k){case d:case h:case i:case l:case o:case p:return k;default:switch(k=k&&k.$$typeof,k){case c:case g:case b:case x:case a:return k;default:return R}}case r:return R}}}function C(k){return z(k)===h}return xe.AsyncMode=d,xe.ConcurrentMode=h,xe.ContextConsumer=c,xe.ContextProvider=a,xe.Element=s,xe.ForwardRef=g,xe.Fragment=i,xe.Lazy=b,xe.Memo=x,xe.Portal=r,xe.Profiler=l,xe.StrictMode=o,xe.Suspense=p,xe.isAsyncMode=function(k){return C(k)||z(k)===d},xe.isConcurrentMode=C,xe.isContextConsumer=function(k){return z(k)===c},xe.isContextProvider=function(k){return z(k)===a},xe.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===s},xe.isForwardRef=function(k){return z(k)===g},xe.isFragment=function(k){return z(k)===i},xe.isLazy=function(k){return z(k)===b},xe.isMemo=function(k){return z(k)===x},xe.isPortal=function(k){return z(k)===r},xe.isProfiler=function(k){return z(k)===l},xe.isStrictMode=function(k){return z(k)===o},xe.isSuspense=function(k){return z(k)===p},xe.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===i||k===h||k===l||k===o||k===p||k===m||typeof k=="object"&&k!==null&&(k.$$typeof===b||k.$$typeof===x||k.$$typeof===a||k.$$typeof===c||k.$$typeof===g||k.$$typeof===w||k.$$typeof===T||k.$$typeof===D||k.$$typeof===u)},xe.typeOf=z,xe}var be={};/** @license React v16.13.1
9
+ */var jr;function ja(){if(jr)return xe;jr=1;var e=typeof Symbol=="function"&&Symbol.for,s=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function z(k){if(typeof k=="object"&&k!==null){var $=k.$$typeof;switch($){case s:switch(k=k.type,k){case d:case h:case i:case l:case o:case p:return k;default:switch(k=k&&k.$$typeof,k){case c:case g:case b:case x:case a:return k;default:return $}}case r:return $}}}function C(k){return z(k)===h}return xe.AsyncMode=d,xe.ConcurrentMode=h,xe.ContextConsumer=c,xe.ContextProvider=a,xe.Element=s,xe.ForwardRef=g,xe.Fragment=i,xe.Lazy=b,xe.Memo=x,xe.Portal=r,xe.Profiler=l,xe.StrictMode=o,xe.Suspense=p,xe.isAsyncMode=function(k){return C(k)||z(k)===d},xe.isConcurrentMode=C,xe.isContextConsumer=function(k){return z(k)===c},xe.isContextProvider=function(k){return z(k)===a},xe.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===s},xe.isForwardRef=function(k){return z(k)===g},xe.isFragment=function(k){return z(k)===i},xe.isLazy=function(k){return z(k)===b},xe.isMemo=function(k){return z(k)===x},xe.isPortal=function(k){return z(k)===r},xe.isProfiler=function(k){return z(k)===l},xe.isStrictMode=function(k){return z(k)===o},xe.isSuspense=function(k){return z(k)===p},xe.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===i||k===h||k===l||k===o||k===p||k===m||typeof k=="object"&&k!==null&&(k.$$typeof===b||k.$$typeof===x||k.$$typeof===a||k.$$typeof===c||k.$$typeof===g||k.$$typeof===w||k.$$typeof===T||k.$$typeof===D||k.$$typeof===u)},xe.typeOf=z,xe}var be={};/** @license React v16.13.1
10
10
  * react-is.development.js
11
11
  *
12
12
  * Copyright (c) Facebook, Inc. and its affiliates.
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */var wr;function wa(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,s=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function z(Q){return typeof Q=="string"||typeof Q=="function"||Q===i||Q===h||Q===l||Q===o||Q===p||Q===m||typeof Q=="object"&&Q!==null&&(Q.$$typeof===b||Q.$$typeof===x||Q.$$typeof===a||Q.$$typeof===c||Q.$$typeof===g||Q.$$typeof===w||Q.$$typeof===T||Q.$$typeof===D||Q.$$typeof===u)}function C(Q){if(typeof Q=="object"&&Q!==null){var he=Q.$$typeof;switch(he){case s:var le=Q.type;switch(le){case d:case h:case i:case l:case o:case p:return le;default:var fe=le&&le.$$typeof;switch(fe){case c:case g:case b:case x:case a:return fe;default:return he}}case r:return he}}}var k=d,R=h,L=c,V=a,_=s,f=g,H=i,U=b,B=x,Z=r,K=l,ee=o,F=p,E=!1;function j(Q){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(Q)||C(Q)===d}function y(Q){return C(Q)===h}function I(Q){return C(Q)===c}function P(Q){return C(Q)===a}function O(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===s}function M(Q){return C(Q)===g}function A(Q){return C(Q)===i}function q(Q){return C(Q)===b}function $(Q){return C(Q)===x}function W(Q){return C(Q)===r}function X(Q){return C(Q)===l}function G(Q){return C(Q)===o}function se(Q){return C(Q)===p}be.AsyncMode=k,be.ConcurrentMode=R,be.ContextConsumer=L,be.ContextProvider=V,be.Element=_,be.ForwardRef=f,be.Fragment=H,be.Lazy=U,be.Memo=B,be.Portal=Z,be.Profiler=K,be.StrictMode=ee,be.Suspense=F,be.isAsyncMode=j,be.isConcurrentMode=y,be.isContextConsumer=I,be.isContextProvider=P,be.isElement=O,be.isForwardRef=M,be.isFragment=A,be.isLazy=q,be.isMemo=$,be.isPortal=W,be.isProfiler=X,be.isStrictMode=G,be.isSuspense=se,be.isValidElementType=z,be.typeOf=C}()),be}var kr;function Cr(){return kr||(kr=1,process.env.NODE_ENV==="production"?tn.exports=ja():tn.exports=wa()),tn.exports}/*
16
+ */var wr;function wa(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,s=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function z(Q){return typeof Q=="string"||typeof Q=="function"||Q===i||Q===h||Q===l||Q===o||Q===p||Q===m||typeof Q=="object"&&Q!==null&&(Q.$$typeof===b||Q.$$typeof===x||Q.$$typeof===a||Q.$$typeof===c||Q.$$typeof===g||Q.$$typeof===w||Q.$$typeof===T||Q.$$typeof===D||Q.$$typeof===u)}function C(Q){if(typeof Q=="object"&&Q!==null){var he=Q.$$typeof;switch(he){case s:var le=Q.type;switch(le){case d:case h:case i:case l:case o:case p:return le;default:var fe=le&&le.$$typeof;switch(fe){case c:case g:case b:case x:case a:return fe;default:return he}}case r:return he}}}var k=d,$=h,B=c,_=a,V=s,f=g,H=i,U=b,F=x,Z=r,K=l,ee=o,L=p,E=!1;function j(Q){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(Q)||C(Q)===d}function y(Q){return C(Q)===h}function I(Q){return C(Q)===c}function R(Q){return C(Q)===a}function O(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===s}function M(Q){return C(Q)===g}function A(Q){return C(Q)===i}function q(Q){return C(Q)===b}function W(Q){return C(Q)===x}function P(Q){return C(Q)===r}function X(Q){return C(Q)===l}function G(Q){return C(Q)===o}function se(Q){return C(Q)===p}be.AsyncMode=k,be.ConcurrentMode=$,be.ContextConsumer=B,be.ContextProvider=_,be.Element=V,be.ForwardRef=f,be.Fragment=H,be.Lazy=U,be.Memo=F,be.Portal=Z,be.Profiler=K,be.StrictMode=ee,be.Suspense=L,be.isAsyncMode=j,be.isConcurrentMode=y,be.isContextConsumer=I,be.isContextProvider=R,be.isElement=O,be.isForwardRef=M,be.isFragment=A,be.isLazy=q,be.isMemo=W,be.isPortal=P,be.isProfiler=X,be.isStrictMode=G,be.isSuspense=se,be.isValidElementType=z,be.typeOf=C}()),be}var kr;function Cr(){return kr||(kr=1,process.env.NODE_ENV==="production"?tn.exports=ja():tn.exports=wa()),tn.exports}/*
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var Gn,Sr;function ka(){if(Sr)return Gn;Sr=1;var e=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function o(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(g){return a[g]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(g){h[g]=g}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gn=o()?Object.assign:function(l,a){for(var c,d=i(l),h,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)s.call(c,p)&&(d[p]=c[p]);if(e){h=e(c);for(var m=0;m<h.length;m++)r.call(c,h[m])&&(d[h[m]]=c[h[m]])}}return d},Gn}var Kn,Tr;function Qn(){if(Tr)return Kn;Tr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kn=e,Kn}var Xn,Mr;function zr(){return Mr||(Mr=1,Xn=Function.call.bind(Object.prototype.hasOwnProperty)),Xn}var Jn,Er;function Ca(){if(Er)return Jn;Er=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var s=Qn(),r={},i=zr();e=function(l){var a="Warning: "+l;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(l,a,c,d,h){if(process.env.NODE_ENV!=="production"){for(var g in l)if(i(l,g)){var p;try{if(typeof l[g]!="function"){var m=Error((d||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=l[g](a,g,d,c,null,s)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var x=h?h():"";e("Failed "+c+" type: "+p.message+(x??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Jn=o,Jn}var es,Nr;function Sa(){if(Nr)return es;Nr=1;var e=Cr(),s=ka(),r=Qn(),i=zr(),o=Ca(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return es=function(c,d){var h=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(y){var I=y&&(h&&y[h]||y[g]);if(typeof I=="function")return I}var m="<<anonymous>>",x={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:D(),arrayOf:z,element:C(),elementType:k(),instanceOf:R,node:f(),objectOf:V,oneOf:L,oneOfType:_,shape:U,exact:B};function b(y,I){return y===I?y!==0||1/y===1/I:y!==y&&I!==I}function u(y,I){this.message=y,this.data=I&&typeof I=="object"?I:{},this.stack=""}u.prototype=Error.prototype;function w(y){if(process.env.NODE_ENV!=="production")var I={},P=0;function O(A,q,$,W,X,G,se){if(W=W||m,G=G||$,se!==r){if(d){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=W+":"+$;!I[he]&&P<3&&(l("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[he]=!0,P++)}}return q[$]==null?A?q[$]===null?new u("The "+X+" `"+G+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new u("The "+X+" `"+G+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:y(q,$,W,X,G)}var M=O.bind(null,!1);return M.isRequired=O.bind(null,!0),M}function T(y){function I(P,O,M,A,q,$){var W=P[O],X=ee(W);if(X!==y){var G=F(W);return new u("Invalid "+A+" `"+q+"` of type "+("`"+G+"` supplied to `"+M+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return w(I)}function D(){return w(a)}function z(y){function I(P,O,M,A,q){if(typeof y!="function")return new u("Property `"+q+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var $=P[O];if(!Array.isArray($)){var W=ee($);return new u("Invalid "+A+" `"+q+"` of type "+("`"+W+"` supplied to `"+M+"`, expected an array."))}for(var X=0;X<$.length;X++){var G=y($,X,M,A,q+"["+X+"]",r);if(G instanceof Error)return G}return null}return w(I)}function C(){function y(I,P,O,M,A){var q=I[P];if(!c(q)){var $=ee(q);return new u("Invalid "+M+" `"+A+"` of type "+("`"+$+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return w(y)}function k(){function y(I,P,O,M,A){var q=I[P];if(!e.isValidElementType(q)){var $=ee(q);return new u("Invalid "+M+" `"+A+"` of type "+("`"+$+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return w(y)}function R(y){function I(P,O,M,A,q){if(!(P[O]instanceof y)){var $=y.name||m,W=j(P[O]);return new u("Invalid "+A+" `"+q+"` of type "+("`"+W+"` supplied to `"+M+"`, expected ")+("instance of `"+$+"`."))}return null}return w(I)}function L(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),a;function I(P,O,M,A,q){for(var $=P[O],W=0;W<y.length;W++)if(b($,y[W]))return null;var X=JSON.stringify(y,function(se,Q){var he=F(Q);return he==="symbol"?String(Q):Q});return new u("Invalid "+A+" `"+q+"` of value `"+String($)+"` "+("supplied to `"+M+"`, expected one of "+X+"."))}return w(I)}function V(y){function I(P,O,M,A,q){if(typeof y!="function")return new u("Property `"+q+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var $=P[O],W=ee($);if(W!=="object")return new u("Invalid "+A+" `"+q+"` of type "+("`"+W+"` supplied to `"+M+"`, expected an object."));for(var X in $)if(i($,X)){var G=y($,X,M,A,q+"."+X,r);if(G instanceof Error)return G}return null}return w(I)}function _(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<y.length;I++){var P=y[I];if(typeof P!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(P)+" at index "+I+"."),a}function O(M,A,q,$,W){for(var X=[],G=0;G<y.length;G++){var se=y[G],Q=se(M,A,q,$,W,r);if(Q==null)return null;Q.data&&i(Q.data,"expectedType")&&X.push(Q.data.expectedType)}var he=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new u("Invalid "+$+" `"+W+"` supplied to "+("`"+q+"`"+he+"."))}return w(O)}function f(){function y(I,P,O,M,A){return Z(I[P])?null:new u("Invalid "+M+" `"+A+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return w(y)}function H(y,I,P,O,M){return new u((y||"React class")+": "+I+" type `"+P+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function U(y){function I(P,O,M,A,q){var $=P[O],W=ee($);if(W!=="object")return new u("Invalid "+A+" `"+q+"` of type `"+W+"` "+("supplied to `"+M+"`, expected `object`."));for(var X in y){var G=y[X];if(typeof G!="function")return H(M,A,q,X,F(G));var se=G($,X,M,A,q+"."+X,r);if(se)return se}return null}return w(I)}function B(y){function I(P,O,M,A,q){var $=P[O],W=ee($);if(W!=="object")return new u("Invalid "+A+" `"+q+"` of type `"+W+"` "+("supplied to `"+M+"`, expected `object`."));var X=s({},P[O],y);for(var G in X){var se=y[G];if(i(y,G)&&typeof se!="function")return H(M,A,q,G,F(se));if(!se)return new u("Invalid "+A+" `"+q+"` key `"+G+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(P[O],null," ")+`
21
- Valid keys: `+JSON.stringify(Object.keys(y),null," "));var Q=se($,G,M,A,q+"."+G,r);if(Q)return Q}return null}return w(I)}function Z(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(Z);if(y===null||c(y))return!0;var I=p(y);if(I){var P=I.call(y),O;if(I!==y.entries){for(;!(O=P.next()).done;)if(!Z(O.value))return!1}else for(;!(O=P.next()).done;){var M=O.value;if(M&&!Z(M[1]))return!1}}else return!1;return!0;default:return!1}}function K(y,I){return y==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function ee(y){var I=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":K(I,y)?"symbol":I}function F(y){if(typeof y>"u"||y===null)return""+y;var I=ee(y);if(I==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return I}function E(y){var I=F(y);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function j(y){return!y.constructor||!y.constructor.name?m:y.constructor.name}return x.checkPropTypes=o,x.resetWarningCache=o.resetWarningCache,x.PropTypes=x,x},es}var ts,Dr;function Ta(){if(Dr)return ts;Dr=1;var e=Qn();function s(){}function r(){}return r.resetWarningCache=s,ts=function(){function i(a,c,d,h,g,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function o(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:s};return l.PropTypes=l,l},ts}if(process.env.NODE_ENV!=="production"){var Ma=Cr(),za=!0;Yn.exports=Sa()(Ma.isElement,za)}else Yn.exports=Ta()();var Ea=Yn.exports;const n=va(Ea);var ns={exports:{}},Pt={};/**
20
+ */var Gn,Sr;function ka(){if(Sr)return Gn;Sr=1;var e=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function o(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(g){return a[g]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(g){h[g]=g}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gn=o()?Object.assign:function(l,a){for(var c,d=i(l),h,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)s.call(c,p)&&(d[p]=c[p]);if(e){h=e(c);for(var m=0;m<h.length;m++)r.call(c,h[m])&&(d[h[m]]=c[h[m]])}}return d},Gn}var Kn,Tr;function Qn(){if(Tr)return Kn;Tr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kn=e,Kn}var Xn,Mr;function zr(){return Mr||(Mr=1,Xn=Function.call.bind(Object.prototype.hasOwnProperty)),Xn}var Jn,Er;function Ca(){if(Er)return Jn;Er=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var s=Qn(),r={},i=zr();e=function(l){var a="Warning: "+l;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(l,a,c,d,h){if(process.env.NODE_ENV!=="production"){for(var g in l)if(i(l,g)){var p;try{if(typeof l[g]!="function"){var m=Error((d||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=l[g](a,g,d,c,null,s)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var x=h?h():"";e("Failed "+c+" type: "+p.message+(x??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Jn=o,Jn}var es,Nr;function Sa(){if(Nr)return es;Nr=1;var e=Cr(),s=ka(),r=Qn(),i=zr(),o=Ca(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return es=function(c,d){var h=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(y){var I=y&&(h&&y[h]||y[g]);if(typeof I=="function")return I}var m="<<anonymous>>",x={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:D(),arrayOf:z,element:C(),elementType:k(),instanceOf:$,node:f(),objectOf:_,oneOf:B,oneOfType:V,shape:U,exact:F};function b(y,I){return y===I?y!==0||1/y===1/I:y!==y&&I!==I}function u(y,I){this.message=y,this.data=I&&typeof I=="object"?I:{},this.stack=""}u.prototype=Error.prototype;function w(y){if(process.env.NODE_ENV!=="production")var I={},R=0;function O(A,q,W,P,X,G,se){if(P=P||m,G=G||W,se!==r){if(d){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=P+":"+W;!I[he]&&R<3&&(l("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+P+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[he]=!0,R++)}}return q[W]==null?A?q[W]===null?new u("The "+X+" `"+G+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new u("The "+X+" `"+G+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:y(q,W,P,X,G)}var M=O.bind(null,!1);return M.isRequired=O.bind(null,!0),M}function T(y){function I(R,O,M,A,q,W){var P=R[O],X=ee(P);if(X!==y){var G=L(P);return new u("Invalid "+A+" `"+q+"` of type "+("`"+G+"` supplied to `"+M+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return w(I)}function D(){return w(a)}function z(y){function I(R,O,M,A,q){if(typeof y!="function")return new u("Property `"+q+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var W=R[O];if(!Array.isArray(W)){var P=ee(W);return new u("Invalid "+A+" `"+q+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an array."))}for(var X=0;X<W.length;X++){var G=y(W,X,M,A,q+"["+X+"]",r);if(G instanceof Error)return G}return null}return w(I)}function C(){function y(I,R,O,M,A){var q=I[R];if(!c(q)){var W=ee(q);return new u("Invalid "+M+" `"+A+"` of type "+("`"+W+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return w(y)}function k(){function y(I,R,O,M,A){var q=I[R];if(!e.isValidElementType(q)){var W=ee(q);return new u("Invalid "+M+" `"+A+"` of type "+("`"+W+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return w(y)}function $(y){function I(R,O,M,A,q){if(!(R[O]instanceof y)){var W=y.name||m,P=j(R[O]);return new u("Invalid "+A+" `"+q+"` of type "+("`"+P+"` supplied to `"+M+"`, expected ")+("instance of `"+W+"`."))}return null}return w(I)}function B(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),a;function I(R,O,M,A,q){for(var W=R[O],P=0;P<y.length;P++)if(b(W,y[P]))return null;var X=JSON.stringify(y,function(se,Q){var he=L(Q);return he==="symbol"?String(Q):Q});return new u("Invalid "+A+" `"+q+"` of value `"+String(W)+"` "+("supplied to `"+M+"`, expected one of "+X+"."))}return w(I)}function _(y){function I(R,O,M,A,q){if(typeof y!="function")return new u("Property `"+q+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var W=R[O],P=ee(W);if(P!=="object")return new u("Invalid "+A+" `"+q+"` of type "+("`"+P+"` supplied to `"+M+"`, expected an object."));for(var X in W)if(i(W,X)){var G=y(W,X,M,A,q+"."+X,r);if(G instanceof Error)return G}return null}return w(I)}function V(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<y.length;I++){var R=y[I];if(typeof R!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(R)+" at index "+I+"."),a}function O(M,A,q,W,P){for(var X=[],G=0;G<y.length;G++){var se=y[G],Q=se(M,A,q,W,P,r);if(Q==null)return null;Q.data&&i(Q.data,"expectedType")&&X.push(Q.data.expectedType)}var he=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new u("Invalid "+W+" `"+P+"` supplied to "+("`"+q+"`"+he+"."))}return w(O)}function f(){function y(I,R,O,M,A){return Z(I[R])?null:new u("Invalid "+M+" `"+A+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return w(y)}function H(y,I,R,O,M){return new u((y||"React class")+": "+I+" type `"+R+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function U(y){function I(R,O,M,A,q){var W=R[O],P=ee(W);if(P!=="object")return new u("Invalid "+A+" `"+q+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));for(var X in y){var G=y[X];if(typeof G!="function")return H(M,A,q,X,L(G));var se=G(W,X,M,A,q+"."+X,r);if(se)return se}return null}return w(I)}function F(y){function I(R,O,M,A,q){var W=R[O],P=ee(W);if(P!=="object")return new u("Invalid "+A+" `"+q+"` of type `"+P+"` "+("supplied to `"+M+"`, expected `object`."));var X=s({},R[O],y);for(var G in X){var se=y[G];if(i(y,G)&&typeof se!="function")return H(M,A,q,G,L(se));if(!se)return new u("Invalid "+A+" `"+q+"` key `"+G+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(R[O],null," ")+`
21
+ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var Q=se(W,G,M,A,q+"."+G,r);if(Q)return Q}return null}return w(I)}function Z(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(Z);if(y===null||c(y))return!0;var I=p(y);if(I){var R=I.call(y),O;if(I!==y.entries){for(;!(O=R.next()).done;)if(!Z(O.value))return!1}else for(;!(O=R.next()).done;){var M=O.value;if(M&&!Z(M[1]))return!1}}else return!1;return!0;default:return!1}}function K(y,I){return y==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function ee(y){var I=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":K(I,y)?"symbol":I}function L(y){if(typeof y>"u"||y===null)return""+y;var I=ee(y);if(I==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return I}function E(y){var I=L(y);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function j(y){return!y.constructor||!y.constructor.name?m:y.constructor.name}return x.checkPropTypes=o,x.resetWarningCache=o.resetWarningCache,x.PropTypes=x,x},es}var ts,Dr;function Ta(){if(Dr)return ts;Dr=1;var e=Qn();function s(){}function r(){}return r.resetWarningCache=s,ts=function(){function i(a,c,d,h,g,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function o(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:s};return l.PropTypes=l,l},ts}if(process.env.NODE_ENV!=="production"){var Ma=Cr(),za=!0;Yn.exports=Sa()(Ma.isElement,za)}else Yn.exports=Ta()();var Ea=Yn.exports;const n=va(Ea);var ns={exports:{}},Pt={};/**
22
22
  * @license React
23
23
  * react-jsx-runtime.production.min.js
24
24
  *
@@ -34,15 +34,15 @@ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var Q=se($,G,M,A,q+"."+G
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Ar;function Da(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){var e=v,s=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),b=Symbol.iterator,u="@@iterator";function w(S){if(S===null||typeof S!="object")return null;var J=b&&S[b]||S[u];return typeof J=="function"?J:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(S){{for(var J=arguments.length,ne=new Array(J>1?J-1:0),ue=1;ue<J;ue++)ne[ue-1]=arguments[ue];z("error",S,ne)}}function z(S,J,ne){{var ue=T.ReactDebugCurrentFrame,ve=ue.getStackAddendum();ve!==""&&(J+="%s",ne=ne.concat([ve]));var Me=ne.map(function(ye){return String(ye)});Me.unshift("Warning: "+J),Function.prototype.apply.call(console[S],console,Me)}}var C=!1,k=!1,R=!1,L=!1,V=!1,_;_=Symbol.for("react.module.reference");function f(S){return!!(typeof S=="string"||typeof S=="function"||S===i||S===l||V||S===o||S===h||S===g||L||S===x||C||k||R||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===p||S.$$typeof===a||S.$$typeof===c||S.$$typeof===d||S.$$typeof===_||S.getModuleId!==void 0))}function H(S,J,ne){var ue=S.displayName;if(ue)return ue;var ve=J.displayName||J.name||"";return ve!==""?ne+"("+ve+")":ne}function U(S){return S.displayName||"Context"}function B(S){if(S==null)return null;if(typeof S.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case i:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case c:var J=S;return U(J)+".Consumer";case a:var ne=S;return U(ne._context)+".Provider";case d:return H(S,S.render,"ForwardRef");case p:var ue=S.displayName||null;return ue!==null?ue:B(S.type)||"Memo";case m:{var ve=S,Me=ve._payload,ye=ve._init;try{return B(ye(Me))}catch{return null}}}return null}var Z=Object.assign,K=0,ee,F,E,j,y,I,P;function O(){}O.__reactDisabledLog=!0;function M(){{if(K===0){ee=console.log,F=console.info,E=console.warn,j=console.error,y=console.group,I=console.groupCollapsed,P=console.groupEnd;var S={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}K++}}function A(){{if(K--,K===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},S,{value:ee}),info:Z({},S,{value:F}),warn:Z({},S,{value:E}),error:Z({},S,{value:j}),group:Z({},S,{value:y}),groupCollapsed:Z({},S,{value:I}),groupEnd:Z({},S,{value:P})})}K<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=T.ReactCurrentDispatcher,$;function W(S,J,ne){{if($===void 0)try{throw Error()}catch(ve){var ue=ve.stack.trim().match(/\n( *(at )?)/);$=ue&&ue[1]||""}return`
38
- `+$+S}}var X=!1,G;{var se=typeof WeakMap=="function"?WeakMap:Map;G=new se}function Q(S,J){if(!S||X)return"";{var ne=G.get(S);if(ne!==void 0)return ne}var ue;X=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=q.current,q.current=null,M();try{if(J){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(qe){ue=qe}Reflect.construct(S,[],ye)}else{try{ye.call()}catch(qe){ue=qe}S.call(ye.prototype)}}else{try{throw Error()}catch(qe){ue=qe}S()}}catch(qe){if(qe&&ue&&typeof qe.stack=="string"){for(var me=qe.stack.split(`
37
+ */var Ar;function Da(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){var e=v,s=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),b=Symbol.iterator,u="@@iterator";function w(S){if(S===null||typeof S!="object")return null;var J=b&&S[b]||S[u];return typeof J=="function"?J:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(S){{for(var J=arguments.length,ne=new Array(J>1?J-1:0),ue=1;ue<J;ue++)ne[ue-1]=arguments[ue];z("error",S,ne)}}function z(S,J,ne){{var ue=T.ReactDebugCurrentFrame,ve=ue.getStackAddendum();ve!==""&&(J+="%s",ne=ne.concat([ve]));var Me=ne.map(function(ye){return String(ye)});Me.unshift("Warning: "+J),Function.prototype.apply.call(console[S],console,Me)}}var C=!1,k=!1,$=!1,B=!1,_=!1,V;V=Symbol.for("react.module.reference");function f(S){return!!(typeof S=="string"||typeof S=="function"||S===i||S===l||_||S===o||S===h||S===g||B||S===x||C||k||$||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===p||S.$$typeof===a||S.$$typeof===c||S.$$typeof===d||S.$$typeof===V||S.getModuleId!==void 0))}function H(S,J,ne){var ue=S.displayName;if(ue)return ue;var ve=J.displayName||J.name||"";return ve!==""?ne+"("+ve+")":ne}function U(S){return S.displayName||"Context"}function F(S){if(S==null)return null;if(typeof S.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case i:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case c:var J=S;return U(J)+".Consumer";case a:var ne=S;return U(ne._context)+".Provider";case d:return H(S,S.render,"ForwardRef");case p:var ue=S.displayName||null;return ue!==null?ue:F(S.type)||"Memo";case m:{var ve=S,Me=ve._payload,ye=ve._init;try{return F(ye(Me))}catch{return null}}}return null}var Z=Object.assign,K=0,ee,L,E,j,y,I,R;function O(){}O.__reactDisabledLog=!0;function M(){{if(K===0){ee=console.log,L=console.info,E=console.warn,j=console.error,y=console.group,I=console.groupCollapsed,R=console.groupEnd;var S={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}K++}}function A(){{if(K--,K===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},S,{value:ee}),info:Z({},S,{value:L}),warn:Z({},S,{value:E}),error:Z({},S,{value:j}),group:Z({},S,{value:y}),groupCollapsed:Z({},S,{value:I}),groupEnd:Z({},S,{value:R})})}K<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=T.ReactCurrentDispatcher,W;function P(S,J,ne){{if(W===void 0)try{throw Error()}catch(ve){var ue=ve.stack.trim().match(/\n( *(at )?)/);W=ue&&ue[1]||""}return`
38
+ `+W+S}}var X=!1,G;{var se=typeof WeakMap=="function"?WeakMap:Map;G=new se}function Q(S,J){if(!S||X)return"";{var ne=G.get(S);if(ne!==void 0)return ne}var ue;X=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=q.current,q.current=null,M();try{if(J){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(qe){ue=qe}Reflect.construct(S,[],ye)}else{try{ye.call()}catch(qe){ue=qe}S.call(ye.prototype)}}else{try{throw Error()}catch(qe){ue=qe}S()}}catch(qe){if(qe&&ue&&typeof qe.stack=="string"){for(var me=qe.stack.split(`
39
39
  `),He=ue.stack.split(`
40
40
  `),We=me.length-1,Be=He.length-1;We>=1&&Be>=0&&me[We]!==He[Be];)Be--;for(;We>=1&&Be>=0;We--,Be--)if(me[We]!==He[Be]){if(We!==1||Be!==1)do if(We--,Be--,Be<0||me[We]!==He[Be]){var Je=`
41
- `+me[We].replace(" at new "," at ");return S.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",S.displayName)),typeof S=="function"&&G.set(S,Je),Je}while(We>=1&&Be>=0);break}}}finally{X=!1,q.current=Me,A(),Error.prepareStackTrace=ve}var Rt=S?S.displayName||S.name:"",kt=Rt?W(Rt):"";return typeof S=="function"&&G.set(S,kt),kt}function he(S,J,ne){return Q(S,!1)}function le(S){var J=S.prototype;return!!(J&&J.isReactComponent)}function fe(S,J,ne){if(S==null)return"";if(typeof S=="function")return Q(S,le(S));if(typeof S=="string")return W(S);switch(S){case h:return W("Suspense");case g:return W("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case d:return he(S.render);case p:return fe(S.type,J,ne);case m:{var ue=S,ve=ue._payload,Me=ue._init;try{return fe(Me(ve),J,ne)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,ke={},Pe=T.ReactDebugCurrentFrame;function ce(S){if(S){var J=S._owner,ne=fe(S.type,S._source,J?J.type:null);Pe.setExtraStackFrame(ne)}else Pe.setExtraStackFrame(null)}function oe(S,J,ne,ue,ve){{var Me=Function.call.bind(_e);for(var ye in S)if(Me(S,ye)){var me=void 0;try{if(typeof S[ye]!="function"){var He=Error((ue||"React class")+": "+ne+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}me=S[ye](J,ye,ue,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){me=We}me&&!(me instanceof Error)&&(ce(ve),D("%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).",ue||"React class",ne,ye,typeof me),ce(null)),me instanceof Error&&!(me.message in ke)&&(ke[me.message]=!0,ce(ve),D("Failed %s type: %s",ne,me.message),ce(null))}}}var de=Array.isArray;function te(S){return de(S)}function ie(S){{var J=typeof Symbol=="function"&&Symbol.toStringTag,ne=J&&S[Symbol.toStringTag]||S.constructor.name||"Object";return ne}}function ze(S){try{return Ne(S),!1}catch{return!0}}function Ne(S){return""+S}function De(S){if(ze(S))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(S)),Ne(S)}var ae=T.ReactCurrentOwner,Te={key:!0,ref:!0,__self:!0,__source:!0},Ge,st,wt;wt={};function mr(S){if(_e.call(S,"ref")){var J=Object.getOwnPropertyDescriptor(S,"ref").get;if(J&&J.isReactWarning)return!1}return S.ref!==void 0}function Un(S){if(_e.call(S,"key")){var J=Object.getOwnPropertyDescriptor(S,"key").get;if(J&&J.isReactWarning)return!1}return S.key!==void 0}function Ou(S,J){if(typeof S.ref=="string"&&ae.current&&J&&ae.current.stateNode!==J){var ne=B(ae.current.type);wt[ne]||(D('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',B(ae.current.type),S.ref),wt[ne]=!0)}}function Au(S,J){{var ne=function(){Ge||(Ge=!0,D("%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)",J))};ne.isReactWarning=!0,Object.defineProperty(S,"key",{get:ne,configurable:!0})}}function Iu(S,J){{var ne=function(){st||(st=!0,D("%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)",J))};ne.isReactWarning=!0,Object.defineProperty(S,"ref",{get:ne,configurable:!0})}}var Ru=function(S,J,ne,ue,ve,Me,ye){var me={$$typeof:s,type:S,key:J,ref:ne,props:ye,_owner:Me};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Pu(S,J,ne,ue,ve){{var Me,ye={},me=null,He=null;ne!==void 0&&(De(ne),me=""+ne),Un(J)&&(De(J.key),me=""+J.key),mr(J)&&(He=J.ref,Ou(J,ve));for(Me in J)_e.call(J,Me)&&!Te.hasOwnProperty(Me)&&(ye[Me]=J[Me]);if(S&&S.defaultProps){var We=S.defaultProps;for(Me in We)ye[Me]===void 0&&(ye[Me]=We[Me])}if(me||He){var Be=typeof S=="function"?S.displayName||S.name||"Unknown":S;me&&Au(ye,Be),He&&Iu(ye,Be)}return Ru(S,me,He,ve,ue,ae.current,ye)}}var yr=T.ReactCurrentOwner,da=T.ReactDebugCurrentFrame;function It(S){if(S){var J=S._owner,ne=fe(S.type,S._source,J?J.type:null);da.setExtraStackFrame(ne)}else da.setExtraStackFrame(null)}var xr;xr=!1;function br(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function ua(){{if(yr.current){var S=B(yr.current.type);if(S)return`
41
+ `+me[We].replace(" at new "," at ");return S.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",S.displayName)),typeof S=="function"&&G.set(S,Je),Je}while(We>=1&&Be>=0);break}}}finally{X=!1,q.current=Me,A(),Error.prepareStackTrace=ve}var Rt=S?S.displayName||S.name:"",kt=Rt?P(Rt):"";return typeof S=="function"&&G.set(S,kt),kt}function he(S,J,ne){return Q(S,!1)}function le(S){var J=S.prototype;return!!(J&&J.isReactComponent)}function fe(S,J,ne){if(S==null)return"";if(typeof S=="function")return Q(S,le(S));if(typeof S=="string")return P(S);switch(S){case h:return P("Suspense");case g:return P("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case d:return he(S.render);case p:return fe(S.type,J,ne);case m:{var ue=S,ve=ue._payload,Me=ue._init;try{return fe(Me(ve),J,ne)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,ke={},Pe=T.ReactDebugCurrentFrame;function ce(S){if(S){var J=S._owner,ne=fe(S.type,S._source,J?J.type:null);Pe.setExtraStackFrame(ne)}else Pe.setExtraStackFrame(null)}function oe(S,J,ne,ue,ve){{var Me=Function.call.bind(_e);for(var ye in S)if(Me(S,ye)){var me=void 0;try{if(typeof S[ye]!="function"){var He=Error((ue||"React class")+": "+ne+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}me=S[ye](J,ye,ue,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){me=We}me&&!(me instanceof Error)&&(ce(ve),D("%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).",ue||"React class",ne,ye,typeof me),ce(null)),me instanceof Error&&!(me.message in ke)&&(ke[me.message]=!0,ce(ve),D("Failed %s type: %s",ne,me.message),ce(null))}}}var de=Array.isArray;function te(S){return de(S)}function ie(S){{var J=typeof Symbol=="function"&&Symbol.toStringTag,ne=J&&S[Symbol.toStringTag]||S.constructor.name||"Object";return ne}}function ze(S){try{return Ne(S),!1}catch{return!0}}function Ne(S){return""+S}function De(S){if(ze(S))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(S)),Ne(S)}var ae=T.ReactCurrentOwner,Te={key:!0,ref:!0,__self:!0,__source:!0},Ge,st,wt;wt={};function mr(S){if(_e.call(S,"ref")){var J=Object.getOwnPropertyDescriptor(S,"ref").get;if(J&&J.isReactWarning)return!1}return S.ref!==void 0}function Un(S){if(_e.call(S,"key")){var J=Object.getOwnPropertyDescriptor(S,"key").get;if(J&&J.isReactWarning)return!1}return S.key!==void 0}function Ou(S,J){if(typeof S.ref=="string"&&ae.current&&J&&ae.current.stateNode!==J){var ne=F(ae.current.type);wt[ne]||(D('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',F(ae.current.type),S.ref),wt[ne]=!0)}}function Au(S,J){{var ne=function(){Ge||(Ge=!0,D("%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)",J))};ne.isReactWarning=!0,Object.defineProperty(S,"key",{get:ne,configurable:!0})}}function Iu(S,J){{var ne=function(){st||(st=!0,D("%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)",J))};ne.isReactWarning=!0,Object.defineProperty(S,"ref",{get:ne,configurable:!0})}}var Ru=function(S,J,ne,ue,ve,Me,ye){var me={$$typeof:s,type:S,key:J,ref:ne,props:ye,_owner:Me};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Pu(S,J,ne,ue,ve){{var Me,ye={},me=null,He=null;ne!==void 0&&(De(ne),me=""+ne),Un(J)&&(De(J.key),me=""+J.key),mr(J)&&(He=J.ref,Ou(J,ve));for(Me in J)_e.call(J,Me)&&!Te.hasOwnProperty(Me)&&(ye[Me]=J[Me]);if(S&&S.defaultProps){var We=S.defaultProps;for(Me in We)ye[Me]===void 0&&(ye[Me]=We[Me])}if(me||He){var Be=typeof S=="function"?S.displayName||S.name||"Unknown":S;me&&Au(ye,Be),He&&Iu(ye,Be)}return Ru(S,me,He,ve,ue,ae.current,ye)}}var yr=T.ReactCurrentOwner,da=T.ReactDebugCurrentFrame;function It(S){if(S){var J=S._owner,ne=fe(S.type,S._source,J?J.type:null);da.setExtraStackFrame(ne)}else da.setExtraStackFrame(null)}var xr;xr=!1;function br(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function ua(){{if(yr.current){var S=F(yr.current.type);if(S)return`
42
42
 
43
43
  Check the render method of \``+S+"`."}return""}}function Wu(S){return""}var ha={};function $u(S){{var J=ua();if(!J){var ne=typeof S=="string"?S:S.displayName||S.name;ne&&(J=`
44
44
 
45
- Check the top-level render call using <`+ne+">.")}return J}}function fa(S,J){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var ne=$u(J);if(ha[ne])return;ha[ne]=!0;var ue="";S&&S._owner&&S._owner!==yr.current&&(ue=" It was passed a child from "+B(S._owner.type)+"."),It(S),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ne,ue),It(null)}}function pa(S,J){{if(typeof S!="object")return;if(te(S))for(var ne=0;ne<S.length;ne++){var ue=S[ne];br(ue)&&fa(ue,J)}else if(br(S))S._store&&(S._store.validated=!0);else if(S){var ve=w(S);if(typeof ve=="function"&&ve!==S.entries)for(var Me=ve.call(S),ye;!(ye=Me.next()).done;)br(ye.value)&&fa(ye.value,J)}}}function Bu(S){{var J=S.type;if(J==null||typeof J=="string")return;var ne;if(typeof J=="function")ne=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===d||J.$$typeof===p))ne=J.propTypes;else return;if(ne){var ue=B(J);oe(ne,S.props,"prop",ue,S)}else if(J.PropTypes!==void 0&&!xr){xr=!0;var ve=B(J);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fu(S){{for(var J=Object.keys(S.props),ne=0;ne<J.length;ne++){var ue=J[ne];if(ue!=="children"&&ue!=="key"){It(S),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),It(null);break}}S.ref!==null&&(It(S),D("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}var ga={};function ma(S,J,ne,ue,ve,Me){{var ye=f(S);if(!ye){var me="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(me+=" 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 He=Wu();He?me+=He:me+=ua();var We;S===null?We="null":te(S)?We="array":S!==void 0&&S.$$typeof===s?(We="<"+(B(S.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):We=typeof S,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,me)}var Be=Pu(S,J,ne,ve,Me);if(Be==null)return Be;if(ye){var Je=J.children;if(Je!==void 0)if(ue)if(te(Je)){for(var Rt=0;Rt<Je.length;Rt++)pa(Je[Rt],S);Object.freeze&&Object.freeze(Je)}else D("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 pa(Je,S)}if(_e.call(J,"key")){var kt=B(S),qe=Object.keys(J).filter(function(Uu){return Uu!=="key"}),vr=qe.length>0?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}";if(!ga[kt+vr]){var qu=qe.length>0?"{"+qe.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
45
+ Check the top-level render call using <`+ne+">.")}return J}}function fa(S,J){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var ne=$u(J);if(ha[ne])return;ha[ne]=!0;var ue="";S&&S._owner&&S._owner!==yr.current&&(ue=" It was passed a child from "+F(S._owner.type)+"."),It(S),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ne,ue),It(null)}}function pa(S,J){{if(typeof S!="object")return;if(te(S))for(var ne=0;ne<S.length;ne++){var ue=S[ne];br(ue)&&fa(ue,J)}else if(br(S))S._store&&(S._store.validated=!0);else if(S){var ve=w(S);if(typeof ve=="function"&&ve!==S.entries)for(var Me=ve.call(S),ye;!(ye=Me.next()).done;)br(ye.value)&&fa(ye.value,J)}}}function Bu(S){{var J=S.type;if(J==null||typeof J=="string")return;var ne;if(typeof J=="function")ne=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===d||J.$$typeof===p))ne=J.propTypes;else return;if(ne){var ue=F(J);oe(ne,S.props,"prop",ue,S)}else if(J.PropTypes!==void 0&&!xr){xr=!0;var ve=F(J);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fu(S){{for(var J=Object.keys(S.props),ne=0;ne<J.length;ne++){var ue=J[ne];if(ue!=="children"&&ue!=="key"){It(S),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),It(null);break}}S.ref!==null&&(It(S),D("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}var ga={};function ma(S,J,ne,ue,ve,Me){{var ye=f(S);if(!ye){var me="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(me+=" 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 He=Wu();He?me+=He:me+=ua();var We;S===null?We="null":te(S)?We="array":S!==void 0&&S.$$typeof===s?(We="<"+(F(S.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):We=typeof S,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,me)}var Be=Pu(S,J,ne,ve,Me);if(Be==null)return Be;if(ye){var Je=J.children;if(Je!==void 0)if(ue)if(te(Je)){for(var Rt=0;Rt<Je.length;Rt++)pa(Je[Rt],S);Object.freeze&&Object.freeze(Je)}else D("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 pa(Je,S)}if(_e.call(J,"key")){var kt=F(S),qe=Object.keys(J).filter(function(Uu){return Uu!=="key"}),vr=qe.length>0?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}";if(!ga[kt+vr]){var qu=qe.length>0?"{"+qe.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
46
46
  let props = %s;
47
47
  <%s {...props} />
48
48
  React keys must be passed directly to JSX without using spread:
@@ -91,9 +91,9 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ut(18,`(${s})`));return
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
93
  */function ud(e,s){const r=ya(e,s);return process.env.NODE_ENV!=="production"?(...i)=>{const o=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
94
- `)):i.some(l=>l===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...i)}:r}function hd(e,s){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=s(e.__emotion_styles))}const ri=[];function yt(e){return ri[0]=e,dd(ri)}const fd=e=>{const s=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return s.sort((r,i)=>r.val-i.val),s.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function pd(e){const{values:s={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...o}=e,l=fd(s),a=Object.keys(l);function c(m){return`@media (min-width:${typeof s[m]=="number"?s[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof s[m]=="number"?s[m]:m)-i/100}${r})`}function h(m,x){const b=a.indexOf(x);return`@media (min-width:${typeof s[m]=="number"?s[m]:m}${r}) and (max-width:${(b!==-1&&typeof s[a[b]]=="number"?s[a[b]]:x)-i/100}${r})`}function g(m){return a.indexOf(m)+1<a.length?h(m,a[a.indexOf(m)+1]):c(m)}function p(m){const x=a.indexOf(m);return x===0?c(a[1]):x===a.length-1?d(a[x]):h(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:l,up:c,down:d,between:h,only:g,not:p,unit:r,...o}}const gd={borderRadius:4};function ii(e=8,s=as({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(l=>{const a=s(l);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function md(e,s){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?s:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:s})}return r.palette.mode===e?s:{}}function oi(e={},...s){const{breakpoints:r={},palette:i={},spacing:o,shape:l={},...a}=e,c=pd(r),d=ii(o);let h=Ue({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...gd,...l}},a);return h=uc(h),h.applyStyles=md,h=s.reduce((g,p)=>Ue(g,p),h),h.unstable_sxConfig={...Lt,...a==null?void 0:a.unstable_sxConfig},h.unstable_sx=function(p){return St({sx:p,theme:this})},h}function li(e){const{variants:s,...r}=e,i={variants:s,style:yt(r),isProcessed:!0};return i.style===r||s&&s.forEach(o=>{typeof o.style!="function"&&(o.style=yt(o.style))}),i}const yd=oi();function us(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xt(e,s){return s&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${s}{${String(e.styles)}}`),e}function xd(e){return e?(s,r)=>r[e]:null}function bd(e,s,r){e.theme=kd(e.theme)?r:e.theme[s]||e.theme}function bn(e,s,r){const i=typeof s=="function"?s(e):s;if(Array.isArray(i))return i.flatMap(o=>bn(e,o,r));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=r?xt(i.style,r):i.style;else{const{variants:l,...a}=i;o=r?xt(yt(a),r):a}return ai(e,i.variants,[o],r)}return i!=null&&i.isProcessed?r?xt(yt(i.style),r):i.style:r?xt(yt(i),r):i}function ai(e,s,r=[],i=void 0){var l;let o;e:for(let a=0;a<s.length;a+=1){const c=s[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&((l=e.ownerState)==null?void 0:l[d])!==c.props[d])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i?xt(yt(c.style(o)),i):c.style(o))):r.push(i?xt(yt(c.style),i):c.style)}return r}function vd(e={}){const{themeId:s,defaultTheme:r=yd,rootShouldForwardProp:i=us,slotShouldForwardProp:o=us}=e;function l(c){bd(c,s,r)}return(c,d={})=>{hd(c,R=>R.filter(L=>L!==St));const{name:h,slot:g,skipVariantsResolver:p,skipSx:m,overridesResolver:x=xd(ci(g)),...b}=d,u=h&&h.startsWith("Mui")||g?"components":"custom",w=p!==void 0?p:g&&g!=="Root"&&g!=="root"||!1,T=m||!1;let D=us;g==="Root"||g==="root"?D=i:g?D=o:Cd(c)&&(D=void 0);const z=ud(c,{shouldForwardProp:D,label:wd(h,g),...b}),C=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(V){return bn(V,R,V.theme.modularCssLayers?u:void 0)};if(tt(R)){const L=li(R);return function(_){return L.variants?bn(_,L,_.theme.modularCssLayers?u:void 0):_.theme.modularCssLayers?xt(L.style,u):L.style}}return R},k=(...R)=>{const L=[],V=R.map(C),_=[];if(L.push(l),h&&x&&_.push(function(B){var F,E;const K=(E=(F=B.theme.components)==null?void 0:F[h])==null?void 0:E.styleOverrides;if(!K)return null;const ee={};for(const j in K)ee[j]=bn(B,K[j],B.theme.modularCssLayers?"theme":void 0);return x(B,ee)}),h&&!w&&_.push(function(B){var ee,F;const Z=B.theme,K=(F=(ee=Z==null?void 0:Z.components)==null?void 0:ee[h])==null?void 0:F.variants;return K?ai(B,K,[],B.theme.modularCssLayers?"theme":void 0):null}),T||_.push(St),Array.isArray(V[0])){const U=V.shift(),B=new Array(L.length).fill(""),Z=new Array(_.length).fill("");let K;K=[...B,...U,...Z],K.raw=[...B,...U.raw,...Z],L.unshift(K)}const f=[...L,...V,..._],H=z(...f);return c.muiName&&(H.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(H.displayName=jd(h,g,c)),H};return z.withConfig&&(k.withConfig=z.withConfig),k}}function jd(e,s,r){return e?`${e}${Ie(s||"")}`:`Styled(${Ya(r)})`}function wd(e,s){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${ci(s||"Root")}`),r}function kd(e){for(const s in e)return!1;return!0}function Cd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ci(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function hs(e,s=0,r=1){return process.env.NODE_ENV!=="production"&&(e<s||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${s}, ${r}].`),sc(e,s,r)}function Sd(e){e=e.slice(1);const s=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(s);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function gt(e){if(e.type)return e;if(e.charAt(0)==="#")return gt(Sd(e));const s=e.indexOf("("),r=e.substring(0,s);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
94
+ `)):i.some(l=>l===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...i)}:r}function hd(e,s){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=s(e.__emotion_styles))}const ri=[];function yt(e){return ri[0]=e,dd(ri)}const fd=e=>{const s=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return s.sort((r,i)=>r.val-i.val),s.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function pd(e){const{values:s={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...o}=e,l=fd(s),a=Object.keys(l);function c(m){return`@media (min-width:${typeof s[m]=="number"?s[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof s[m]=="number"?s[m]:m)-i/100}${r})`}function h(m,x){const b=a.indexOf(x);return`@media (min-width:${typeof s[m]=="number"?s[m]:m}${r}) and (max-width:${(b!==-1&&typeof s[a[b]]=="number"?s[a[b]]:x)-i/100}${r})`}function g(m){return a.indexOf(m)+1<a.length?h(m,a[a.indexOf(m)+1]):c(m)}function p(m){const x=a.indexOf(m);return x===0?c(a[1]):x===a.length-1?d(a[x]):h(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:l,up:c,down:d,between:h,only:g,not:p,unit:r,...o}}const gd={borderRadius:4};function ii(e=8,s=as({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(l=>{const a=s(l);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function md(e,s){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?s:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:s})}return r.palette.mode===e?s:{}}function oi(e={},...s){const{breakpoints:r={},palette:i={},spacing:o,shape:l={},...a}=e,c=pd(r),d=ii(o);let h=Ue({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...gd,...l}},a);return h=uc(h),h.applyStyles=md,h=s.reduce((g,p)=>Ue(g,p),h),h.unstable_sxConfig={...Lt,...a==null?void 0:a.unstable_sxConfig},h.unstable_sx=function(p){return St({sx:p,theme:this})},h}function li(e){const{variants:s,...r}=e,i={variants:s,style:yt(r),isProcessed:!0};return i.style===r||s&&s.forEach(o=>{typeof o.style!="function"&&(o.style=yt(o.style))}),i}const yd=oi();function us(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xt(e,s){return s&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${s}{${String(e.styles)}}`),e}function xd(e){return e?(s,r)=>r[e]:null}function bd(e,s,r){e.theme=kd(e.theme)?r:e.theme[s]||e.theme}function bn(e,s,r){const i=typeof s=="function"?s(e):s;if(Array.isArray(i))return i.flatMap(o=>bn(e,o,r));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=r?xt(i.style,r):i.style;else{const{variants:l,...a}=i;o=r?xt(yt(a),r):a}return ai(e,i.variants,[o],r)}return i!=null&&i.isProcessed?r?xt(yt(i.style),r):i.style:r?xt(yt(i),r):i}function ai(e,s,r=[],i=void 0){var l;let o;e:for(let a=0;a<s.length;a+=1){const c=s[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&((l=e.ownerState)==null?void 0:l[d])!==c.props[d])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i?xt(yt(c.style(o)),i):c.style(o))):r.push(i?xt(yt(c.style),i):c.style)}return r}function vd(e={}){const{themeId:s,defaultTheme:r=yd,rootShouldForwardProp:i=us,slotShouldForwardProp:o=us}=e;function l(c){bd(c,s,r)}return(c,d={})=>{hd(c,$=>$.filter(B=>B!==St));const{name:h,slot:g,skipVariantsResolver:p,skipSx:m,overridesResolver:x=xd(ci(g)),...b}=d,u=h&&h.startsWith("Mui")||g?"components":"custom",w=p!==void 0?p:g&&g!=="Root"&&g!=="root"||!1,T=m||!1;let D=us;g==="Root"||g==="root"?D=i:g?D=o:Cd(c)&&(D=void 0);const z=ud(c,{shouldForwardProp:D,label:wd(h,g),...b}),C=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(_){return bn(_,$,_.theme.modularCssLayers?u:void 0)};if(tt($)){const B=li($);return function(V){return B.variants?bn(V,B,V.theme.modularCssLayers?u:void 0):V.theme.modularCssLayers?xt(B.style,u):B.style}}return $},k=(...$)=>{const B=[],_=$.map(C),V=[];if(B.push(l),h&&x&&V.push(function(F){var L,E;const K=(E=(L=F.theme.components)==null?void 0:L[h])==null?void 0:E.styleOverrides;if(!K)return null;const ee={};for(const j in K)ee[j]=bn(F,K[j],F.theme.modularCssLayers?"theme":void 0);return x(F,ee)}),h&&!w&&V.push(function(F){var ee,L;const Z=F.theme,K=(L=(ee=Z==null?void 0:Z.components)==null?void 0:ee[h])==null?void 0:L.variants;return K?ai(F,K,[],F.theme.modularCssLayers?"theme":void 0):null}),T||V.push(St),Array.isArray(_[0])){const U=_.shift(),F=new Array(B.length).fill(""),Z=new Array(V.length).fill("");let K;K=[...F,...U,...Z],K.raw=[...F,...U.raw,...Z],B.unshift(K)}const f=[...B,..._,...V],H=z(...f);return c.muiName&&(H.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(H.displayName=jd(h,g,c)),H};return z.withConfig&&(k.withConfig=z.withConfig),k}}function jd(e,s,r){return e?`${e}${Ie(s||"")}`:`Styled(${Ya(r)})`}function wd(e,s){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${ci(s||"Root")}`),r}function kd(e){for(const s in e)return!1;return!0}function Cd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ci(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function hs(e,s=0,r=1){return process.env.NODE_ENV!=="production"&&(e<s||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${s}, ${r}].`),sc(e,s,r)}function Sd(e){e=e.slice(1);const s=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(s);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function gt(e){if(e.type)return e;if(e.charAt(0)==="#")return gt(Sd(e));const s=e.indexOf("("),r=e.substring(0,s);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
95
95
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ut(9,e));let i=e.substring(s+1,e.length-1),o;if(r==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
96
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ut(10,o))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:r,values:i,colorSpace:o}}const Td=e=>{const s=gt(e);return s.values.slice(0,3).map((r,i)=>s.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},_t=(e,s)=>{try{return Td(e)}catch{return s&&process.env.NODE_ENV!=="production"&&console.warn(s),e}};function vn(e){const{type:s,colorSpace:r}=e;let{values:i}=e;return s.includes("rgb")?i=i.map((o,l)=>l<3?parseInt(o,10):o):s.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),s.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${s}(${i})`}function di(e){e=gt(e);const{values:s}=e,r=s[0],i=s[1]/100,o=s[2]/100,l=i*Math.min(o,1-o),a=(h,g=(h+r/30)%12)=>o-l*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",d.push(s[3])),vn({type:c,values:d})}function fs(e){e=gt(e);let s=e.type==="hsl"||e.type==="hsla"?gt(di(e)).values:e.values;return s=s.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*s[0]+.7152*s[1]+.0722*s[2]).toFixed(3))}function ui(e,s){const r=fs(e),i=fs(s);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Ht(e,s){return e=gt(e),s=hs(s),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${s}`:e.values[3]=s,vn(e)}function jn(e,s,r){try{return Ht(e,s)}catch{return e}}function ps(e,s){if(e=gt(e),s=hs(s),e.type.includes("hsl"))e.values[2]*=1-s;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-s;return vn(e)}function Ce(e,s,r){try{return ps(e,s)}catch{return e}}function gs(e,s){if(e=gt(e),s=hs(s),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*s;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*s;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*s;return vn(e)}function Se(e,s,r){try{return gs(e,s)}catch{return e}}function Md(e,s=.15){return fs(e)>.5?ps(e,s):gs(e,s)}function wn(e,s,r){try{return Md(e,s)}catch{return e}}const zd=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function Ed(e){const{theme:s,name:r,props:i}=e;if(!s||!s.components||!s.components[r])return i;const o=s.components[r];return o.defaultProps?ls(o.defaultProps,i):!o.styleOverrides&&!o.variants?ls(o,i):i}function Nd({props:e,name:s}){const r=re.useContext(zd);return Ed({props:e,name:s,theme:{components:r}})}const hi={theme:void 0};function Dd(e){let s,r;return function(o){let l=s;return(l===void 0||o.theme!==r)&&(hi.theme=o.theme,l=li(e(hi)),s=l,r=o.theme),l}}function Od(e=""){function s(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${s(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${s(...o)})`}const fi=(e,s,r,i=[])=>{let o=e;s.forEach((l,a)=>{a===s.length-1?Array.isArray(o)?o[Number(l)]=r:o&&typeof o=="object"&&(o[l]=r):o&&typeof o=="object"&&(o[l]||(o[l]=i.includes(l)?[]:{}),o=o[l])})},Ad=(e,s,r)=>{function i(o,l=[],a=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...l,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...l,c],Array.isArray(d)?[...a,c]:a):s([...l,c],d,a))})}i(e)},Id=(e,s)=>typeof s=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?s:`${s}px`:s;function ms(e,s){const{prefix:r,shouldSkipGeneratingVar:i}=s||{},o={},l={},a={};return Ad(e,(c,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(c,d))){const g=`--${r?`${r}-`:""}${c.join("-")}`,p=Id(c,d);Object.assign(o,{[g]:p}),fi(l,c,`var(${g})`,h),fi(a,c,`var(${g}, ${p})`,h)}},c=>c[0]==="vars"),{css:o,vars:l,varsWithDefaults:a}}function Rd(e,s={}){const{getSelector:r=w,disableCssColorScheme:i,colorSchemeSelector:o}=s,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...d}=e,{vars:h,css:g,varsWithDefaults:p}=ms(d,s);let m=p;const x={},{[c]:b,...u}=l;if(Object.entries(u||{}).forEach(([z,C])=>{const{vars:k,css:R,varsWithDefaults:L}=ms(C,s);m=Ue(m,L),x[z]={css:R,vars:k}}),b){const{css:z,vars:C,varsWithDefaults:k}=ms(b,s);m=Ue(m,k),x[c]={css:z,vars:C}}function w(z,C){var R,L;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),z){if(k==="media")return e.defaultColorScheme===z?":root":{[`@media (prefers-color-scheme: ${((L=(R=l[z])==null?void 0:R.palette)==null?void 0:L.mode)||z})`]:{":root":C}};if(k)return e.defaultColorScheme===z?`:root, ${k.replace("%s",String(z))}`:k.replace("%s",String(z))}return":root"}return{vars:m,generateThemeVars:()=>{let z={...h};return Object.entries(x).forEach(([,{vars:C}])=>{z=Ue(z,C)}),z},generateStyleSheets:()=>{var V,_;const z=[],C=e.defaultColorScheme||"light";function k(f,H){Object.keys(H).length&&z.push(typeof f=="string"?{[f]:{...H}}:f)}k(r(void 0,{...g}),g);const{[C]:R,...L}=x;if(R){const{css:f}=R,H=(_=(V=l[C])==null?void 0:V.palette)==null?void 0:_.mode,U=!i&&H?{colorScheme:H,...f}:{...f};k(r(C,{...U}),U)}return Object.entries(L).forEach(([f,{css:H}])=>{var Z,K;const U=(K=(Z=l[f])==null?void 0:Z.palette)==null?void 0:K.mode,B=!i&&U?{colorScheme:U,...H}:{...H};k(r(f,{...B}),B)}),z}}}function Pd(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Vt={black:"#000",white:"#fff"},Wd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Mt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},qt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},zt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Et={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Nt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function pi(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Vt.white,default:Vt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const $d=pi();function gi(){return{text:{primary:Vt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Vt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const mi=gi();function yi(e,s,r,i){const o=i.light||i,l=i.dark||i*1.5;e[s]||(e.hasOwnProperty(r)?e[s]=e[r]:s==="light"?e.light=gs(e.main,o):s==="dark"&&(e.dark=ps(e.main,l)))}function Bd(e="light"){return e==="dark"?{main:zt[200],light:zt[50],dark:zt[400]}:{main:zt[700],light:zt[400],dark:zt[800]}}function Fd(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[500],light:Tt[300],dark:Tt[700]}}function Ld(e="light"){return e==="dark"?{main:Mt[500],light:Mt[300],dark:Mt[700]}:{main:Mt[700],light:Mt[400],dark:Mt[800]}}function _d(e="light"){return e==="dark"?{main:Et[400],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[500],dark:Et[900]}}function Hd(e="light"){return e==="dark"?{main:Nt[400],light:Nt[300],dark:Nt[700]}:{main:Nt[800],light:Nt[500],dark:Nt[900]}}function Vd(e="light"){return e==="dark"?{main:qt[400],light:qt[300],dark:qt[700]}:{main:"#ed6c02",light:qt[500],dark:qt[900]}}function ys(e){const{mode:s="light",contrastThreshold:r=3,tonalOffset:i=.2,...o}=e,l=e.primary||Bd(s),a=e.secondary||Fd(s),c=e.error||Ld(s),d=e.info||_d(s),h=e.success||Hd(s),g=e.warning||Vd(s);function p(u){const w=ui(u,mi.text.primary)>=r?mi.text.primary:$d.text.primary;if(process.env.NODE_ENV!=="production"){const T=ui(u,w);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${w} on ${u}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
96
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ut(10,o))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:r,values:i,colorSpace:o}}const Td=e=>{const s=gt(e);return s.values.slice(0,3).map((r,i)=>s.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},_t=(e,s)=>{try{return Td(e)}catch{return s&&process.env.NODE_ENV!=="production"&&console.warn(s),e}};function vn(e){const{type:s,colorSpace:r}=e;let{values:i}=e;return s.includes("rgb")?i=i.map((o,l)=>l<3?parseInt(o,10):o):s.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),s.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${s}(${i})`}function di(e){e=gt(e);const{values:s}=e,r=s[0],i=s[1]/100,o=s[2]/100,l=i*Math.min(o,1-o),a=(h,g=(h+r/30)%12)=>o-l*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",d.push(s[3])),vn({type:c,values:d})}function fs(e){e=gt(e);let s=e.type==="hsl"||e.type==="hsla"?gt(di(e)).values:e.values;return s=s.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*s[0]+.7152*s[1]+.0722*s[2]).toFixed(3))}function ui(e,s){const r=fs(e),i=fs(s);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Ht(e,s){return e=gt(e),s=hs(s),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${s}`:e.values[3]=s,vn(e)}function jn(e,s,r){try{return Ht(e,s)}catch{return e}}function ps(e,s){if(e=gt(e),s=hs(s),e.type.includes("hsl"))e.values[2]*=1-s;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-s;return vn(e)}function Ce(e,s,r){try{return ps(e,s)}catch{return e}}function gs(e,s){if(e=gt(e),s=hs(s),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*s;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*s;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*s;return vn(e)}function Se(e,s,r){try{return gs(e,s)}catch{return e}}function Md(e,s=.15){return fs(e)>.5?ps(e,s):gs(e,s)}function wn(e,s,r){try{return Md(e,s)}catch{return e}}const zd=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function Ed(e){const{theme:s,name:r,props:i}=e;if(!s||!s.components||!s.components[r])return i;const o=s.components[r];return o.defaultProps?ls(o.defaultProps,i):!o.styleOverrides&&!o.variants?ls(o,i):i}function Nd({props:e,name:s}){const r=re.useContext(zd);return Ed({props:e,name:s,theme:{components:r}})}const hi={theme:void 0};function Dd(e){let s,r;return function(o){let l=s;return(l===void 0||o.theme!==r)&&(hi.theme=o.theme,l=li(e(hi)),s=l,r=o.theme),l}}function Od(e=""){function s(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${s(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${s(...o)})`}const fi=(e,s,r,i=[])=>{let o=e;s.forEach((l,a)=>{a===s.length-1?Array.isArray(o)?o[Number(l)]=r:o&&typeof o=="object"&&(o[l]=r):o&&typeof o=="object"&&(o[l]||(o[l]=i.includes(l)?[]:{}),o=o[l])})},Ad=(e,s,r)=>{function i(o,l=[],a=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...l,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...l,c],Array.isArray(d)?[...a,c]:a):s([...l,c],d,a))})}i(e)},Id=(e,s)=>typeof s=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?s:`${s}px`:s;function ms(e,s){const{prefix:r,shouldSkipGeneratingVar:i}=s||{},o={},l={},a={};return Ad(e,(c,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(c,d))){const g=`--${r?`${r}-`:""}${c.join("-")}`,p=Id(c,d);Object.assign(o,{[g]:p}),fi(l,c,`var(${g})`,h),fi(a,c,`var(${g}, ${p})`,h)}},c=>c[0]==="vars"),{css:o,vars:l,varsWithDefaults:a}}function Rd(e,s={}){const{getSelector:r=w,disableCssColorScheme:i,colorSchemeSelector:o}=s,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...d}=e,{vars:h,css:g,varsWithDefaults:p}=ms(d,s);let m=p;const x={},{[c]:b,...u}=l;if(Object.entries(u||{}).forEach(([z,C])=>{const{vars:k,css:$,varsWithDefaults:B}=ms(C,s);m=Ue(m,B),x[z]={css:$,vars:k}}),b){const{css:z,vars:C,varsWithDefaults:k}=ms(b,s);m=Ue(m,k),x[c]={css:z,vars:C}}function w(z,C){var $,B;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),z){if(k==="media")return e.defaultColorScheme===z?":root":{[`@media (prefers-color-scheme: ${((B=($=l[z])==null?void 0:$.palette)==null?void 0:B.mode)||z})`]:{":root":C}};if(k)return e.defaultColorScheme===z?`:root, ${k.replace("%s",String(z))}`:k.replace("%s",String(z))}return":root"}return{vars:m,generateThemeVars:()=>{let z={...h};return Object.entries(x).forEach(([,{vars:C}])=>{z=Ue(z,C)}),z},generateStyleSheets:()=>{var _,V;const z=[],C=e.defaultColorScheme||"light";function k(f,H){Object.keys(H).length&&z.push(typeof f=="string"?{[f]:{...H}}:f)}k(r(void 0,{...g}),g);const{[C]:$,...B}=x;if($){const{css:f}=$,H=(V=(_=l[C])==null?void 0:_.palette)==null?void 0:V.mode,U=!i&&H?{colorScheme:H,...f}:{...f};k(r(C,{...U}),U)}return Object.entries(B).forEach(([f,{css:H}])=>{var Z,K;const U=(K=(Z=l[f])==null?void 0:Z.palette)==null?void 0:K.mode,F=!i&&U?{colorScheme:U,...H}:{...H};k(r(f,{...F}),F)}),z}}}function Pd(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Vt={black:"#000",white:"#fff"},Wd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Mt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},qt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},zt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Et={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Nt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function pi(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Vt.white,default:Vt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const $d=pi();function gi(){return{text:{primary:Vt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Vt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const mi=gi();function yi(e,s,r,i){const o=i.light||i,l=i.dark||i*1.5;e[s]||(e.hasOwnProperty(r)?e[s]=e[r]:s==="light"?e.light=gs(e.main,o):s==="dark"&&(e.dark=ps(e.main,l)))}function Bd(e="light"){return e==="dark"?{main:zt[200],light:zt[50],dark:zt[400]}:{main:zt[700],light:zt[400],dark:zt[800]}}function Fd(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[500],light:Tt[300],dark:Tt[700]}}function Ld(e="light"){return e==="dark"?{main:Mt[500],light:Mt[300],dark:Mt[700]}:{main:Mt[700],light:Mt[400],dark:Mt[800]}}function _d(e="light"){return e==="dark"?{main:Et[400],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[500],dark:Et[900]}}function Hd(e="light"){return e==="dark"?{main:Nt[400],light:Nt[300],dark:Nt[700]}:{main:Nt[800],light:Nt[500],dark:Nt[900]}}function Vd(e="light"){return e==="dark"?{main:qt[400],light:qt[300],dark:qt[700]}:{main:"#ed6c02",light:qt[500],dark:qt[900]}}function ys(e){const{mode:s="light",contrastThreshold:r=3,tonalOffset:i=.2,...o}=e,l=e.primary||Bd(s),a=e.secondary||Fd(s),c=e.error||Ld(s),d=e.info||_d(s),h=e.success||Hd(s),g=e.warning||Vd(s);function p(u){const w=ui(u,mi.text.primary)>=r?mi.text.primary:$d.text.primary;if(process.env.NODE_ENV!=="production"){const T=ui(u,w);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${w} on ${u}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
97
97
  `))}return w}const m=({color:u,name:w,mainShade:T=500,lightShade:D=300,darkShade:z=700})=>{if(u={...u},!u.main&&u[T]&&(u.main=u[T]),!u.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
98
98
  The color object needs to have a \`main\` property or a \`${T}\` property.`:ut(11,w?` (${w})`:"",T));if(typeof u.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
99
99
  \`color.main\` should be a string, but \`${JSON.stringify(u.main)}\` was provided instead.
@@ -118,7 +118,7 @@ theme.transitions = createTransitions(theme.transitions || {});
118
118
 
119
119
  export default theme;`}function xs(e={},...s){const{breakpoints:r,mixins:i={},spacing:o,palette:l={},transitions:a={},typography:c={},shape:d,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ut(20));const g=ys(l),p=oi(e);let m=Ue(p,{mixins:Ud(p.breakpoints,i),palette:g,shadows:Xd.slice(),typography:Yd(g,c),transitions:n1(a),zIndex:{...s1}});if(m=Ue(m,h),m=s.reduce((x,b)=>Ue(x,b),m),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(u,w)=>{let T;for(T in u){const D=u[T];if(x.includes(T)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const z=rt("",T);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(u,null,2),"",`Instead, you need to use the '&.${z}' syntax:`,JSON.stringify({root:{[`&.${z}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
120
120
  `))}u[T]={}}}};Object.keys(m.components).forEach(u=>{const w=m.components[u].styleOverrides;w&&u.startsWith("Mui")&&b(w,u)})}return m.unstable_sxConfig={...Lt,...h==null?void 0:h.unstable_sxConfig},m.unstable_sx=function(b){return St({sx:b,theme:this})},m.toRuntimeSource=ji,m}function i1(e){let s;return e<1?s=5.11916*e**2:s=4.5*Math.log(e+1)+2,Math.round(s*10)/1e3}const o1=[...Array(25)].map((e,s)=>{if(s===0)return"none";const r=i1(s);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function wi(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ki(e){return e==="dark"?o1:[]}function l1(e){const{palette:s={mode:"light"},opacity:r,overlays:i,...o}=e,l=ys(s);return{palette:l,opacity:{...wi(l.mode),...r},overlays:i||ki(l.mode),...o}}function a1(e){var s;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((s=e[1])!=null&&s.match(/(mode|contrastThreshold|tonalOffset)/))}const c1=e=>[...[...Array(25)].map((s,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],d1=e=>(s,r)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let l=o;if(o==="class"&&(l=".%s"),o==="data"&&(l="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(l=`[${o}="%s"]`),e.defaultColorScheme===s){if(s==="dark"){const a={};return c1(e.cssVarPrefix).forEach(c=>{a[c]=r[c],delete r[c]}),l==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:a}}:l?{[l.replace("%s",s)]:a,[`${i}, ${l.replace("%s",s)}`]:r}:{[i]:{...r,...a}}}if(l&&l!=="media")return`${i}, ${l.replace("%s",String(s))}`}else if(s){if(l==="media")return{[`@media (prefers-color-scheme: ${String(s)})`]:{[i]:r}};if(l)return l.replace("%s",String(s))}return i};function u1(e,s){s.forEach(r=>{e[r]||(e[r]={})})}function Y(e,s,r){!e[s]&&r&&(e[s]=r)}function Ut(e){return typeof e!="string"||!e.startsWith("hsl")?e:di(e)}function ot(e,s){`${s}Channel`in e||(e[`${s}Channel`]=_t(Ut(e[s]),`MUI: Can't create \`palette.${s}Channel\` because \`palette.${s}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
121
- To suppress this warning, you need to explicitly provide the \`palette.${s}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function h1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const nt=e=>{try{return e()}catch{}},f1=(e="mui")=>Od(e);function bs(e,s,r,i){if(!s)return;s=s===!0?{}:s;const o=i==="dark"?"dark":"light";if(!r){e[i]=l1({...s,palette:{mode:o,...s==null?void 0:s.palette}});return}const{palette:l,...a}=xs({...r,palette:{mode:o,...s==null?void 0:s.palette}});return e[i]={...s,palette:l,opacity:{...wi(o),...s==null?void 0:s.opacity},overlays:(s==null?void 0:s.overlays)||ki(o)},a}function p1(e={},...s){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:a=a1,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(r)[0],p=i||(r.light&&g!=="light"?"light":g),m=f1(l),{[p]:x,light:b,dark:u,...w}=r,T={...w};let D=x;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:ut(21,p));const z=bs(T,D,h,p);b&&!T.light&&bs(T,b,void 0,"light"),u&&!T.dark&&bs(T,u,void 0,"dark");let C={defaultColorScheme:p,...z,cssVarPrefix:l,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...qd(z.typography),...z.font},spacing:h1(h.spacing)};Object.keys(C.colorSchemes).forEach(_=>{const f=C.colorSchemes[_].palette,H=U=>{const B=U.split("-"),Z=B[1],K=B[2];return m(U,f[Z][K])};if(f.mode==="light"&&(Y(f.common,"background","#fff"),Y(f.common,"onBackground","#000")),f.mode==="dark"&&(Y(f.common,"background","#000"),Y(f.common,"onBackground","#fff")),u1(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){Y(f.Alert,"errorColor",Ce(f.error.light,.6)),Y(f.Alert,"infoColor",Ce(f.info.light,.6)),Y(f.Alert,"successColor",Ce(f.success.light,.6)),Y(f.Alert,"warningColor",Ce(f.warning.light,.6)),Y(f.Alert,"errorFilledBg",H("palette-error-main")),Y(f.Alert,"infoFilledBg",H("palette-info-main")),Y(f.Alert,"successFilledBg",H("palette-success-main")),Y(f.Alert,"warningFilledBg",H("palette-warning-main")),Y(f.Alert,"errorFilledColor",nt(()=>f.getContrastText(f.error.main))),Y(f.Alert,"infoFilledColor",nt(()=>f.getContrastText(f.info.main))),Y(f.Alert,"successFilledColor",nt(()=>f.getContrastText(f.success.main))),Y(f.Alert,"warningFilledColor",nt(()=>f.getContrastText(f.warning.main))),Y(f.Alert,"errorStandardBg",Se(f.error.light,.9)),Y(f.Alert,"infoStandardBg",Se(f.info.light,.9)),Y(f.Alert,"successStandardBg",Se(f.success.light,.9)),Y(f.Alert,"warningStandardBg",Se(f.warning.light,.9)),Y(f.Alert,"errorIconColor",H("palette-error-main")),Y(f.Alert,"infoIconColor",H("palette-info-main")),Y(f.Alert,"successIconColor",H("palette-success-main")),Y(f.Alert,"warningIconColor",H("palette-warning-main")),Y(f.AppBar,"defaultBg",H("palette-grey-100")),Y(f.Avatar,"defaultBg",H("palette-grey-400")),Y(f.Button,"inheritContainedBg",H("palette-grey-300")),Y(f.Button,"inheritContainedHoverBg",H("palette-grey-A100")),Y(f.Chip,"defaultBorder",H("palette-grey-400")),Y(f.Chip,"defaultAvatarColor",H("palette-grey-700")),Y(f.Chip,"defaultIconColor",H("palette-grey-700")),Y(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(f.LinearProgress,"primaryBg",Se(f.primary.main,.62)),Y(f.LinearProgress,"secondaryBg",Se(f.secondary.main,.62)),Y(f.LinearProgress,"errorBg",Se(f.error.main,.62)),Y(f.LinearProgress,"infoBg",Se(f.info.main,.62)),Y(f.LinearProgress,"successBg",Se(f.success.main,.62)),Y(f.LinearProgress,"warningBg",Se(f.warning.main,.62)),Y(f.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),Y(f.Slider,"primaryTrack",Se(f.primary.main,.62)),Y(f.Slider,"secondaryTrack",Se(f.secondary.main,.62)),Y(f.Slider,"errorTrack",Se(f.error.main,.62)),Y(f.Slider,"infoTrack",Se(f.info.main,.62)),Y(f.Slider,"successTrack",Se(f.success.main,.62)),Y(f.Slider,"warningTrack",Se(f.warning.main,.62));const U=wn(f.background.default,.8);Y(f.SnackbarContent,"bg",U),Y(f.SnackbarContent,"color",nt(()=>f.getContrastText(U))),Y(f.SpeedDialAction,"fabHoverBg",wn(f.background.paper,.15)),Y(f.StepConnector,"border",H("palette-grey-400")),Y(f.StepContent,"border",H("palette-grey-400")),Y(f.Switch,"defaultColor",H("palette-common-white")),Y(f.Switch,"defaultDisabledColor",H("palette-grey-100")),Y(f.Switch,"primaryDisabledColor",Se(f.primary.main,.62)),Y(f.Switch,"secondaryDisabledColor",Se(f.secondary.main,.62)),Y(f.Switch,"errorDisabledColor",Se(f.error.main,.62)),Y(f.Switch,"infoDisabledColor",Se(f.info.main,.62)),Y(f.Switch,"successDisabledColor",Se(f.success.main,.62)),Y(f.Switch,"warningDisabledColor",Se(f.warning.main,.62)),Y(f.TableCell,"border",Se(jn(f.divider,1),.88)),Y(f.Tooltip,"bg",jn(f.grey[700],.92))}if(f.mode==="dark"){Y(f.Alert,"errorColor",Se(f.error.light,.6)),Y(f.Alert,"infoColor",Se(f.info.light,.6)),Y(f.Alert,"successColor",Se(f.success.light,.6)),Y(f.Alert,"warningColor",Se(f.warning.light,.6)),Y(f.Alert,"errorFilledBg",H("palette-error-dark")),Y(f.Alert,"infoFilledBg",H("palette-info-dark")),Y(f.Alert,"successFilledBg",H("palette-success-dark")),Y(f.Alert,"warningFilledBg",H("palette-warning-dark")),Y(f.Alert,"errorFilledColor",nt(()=>f.getContrastText(f.error.dark))),Y(f.Alert,"infoFilledColor",nt(()=>f.getContrastText(f.info.dark))),Y(f.Alert,"successFilledColor",nt(()=>f.getContrastText(f.success.dark))),Y(f.Alert,"warningFilledColor",nt(()=>f.getContrastText(f.warning.dark))),Y(f.Alert,"errorStandardBg",Ce(f.error.light,.9)),Y(f.Alert,"infoStandardBg",Ce(f.info.light,.9)),Y(f.Alert,"successStandardBg",Ce(f.success.light,.9)),Y(f.Alert,"warningStandardBg",Ce(f.warning.light,.9)),Y(f.Alert,"errorIconColor",H("palette-error-main")),Y(f.Alert,"infoIconColor",H("palette-info-main")),Y(f.Alert,"successIconColor",H("palette-success-main")),Y(f.Alert,"warningIconColor",H("palette-warning-main")),Y(f.AppBar,"defaultBg",H("palette-grey-900")),Y(f.AppBar,"darkBg",H("palette-background-paper")),Y(f.AppBar,"darkColor",H("palette-text-primary")),Y(f.Avatar,"defaultBg",H("palette-grey-600")),Y(f.Button,"inheritContainedBg",H("palette-grey-800")),Y(f.Button,"inheritContainedHoverBg",H("palette-grey-700")),Y(f.Chip,"defaultBorder",H("palette-grey-700")),Y(f.Chip,"defaultAvatarColor",H("palette-grey-300")),Y(f.Chip,"defaultIconColor",H("palette-grey-300")),Y(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(f.LinearProgress,"primaryBg",Ce(f.primary.main,.5)),Y(f.LinearProgress,"secondaryBg",Ce(f.secondary.main,.5)),Y(f.LinearProgress,"errorBg",Ce(f.error.main,.5)),Y(f.LinearProgress,"infoBg",Ce(f.info.main,.5)),Y(f.LinearProgress,"successBg",Ce(f.success.main,.5)),Y(f.LinearProgress,"warningBg",Ce(f.warning.main,.5)),Y(f.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),Y(f.Slider,"primaryTrack",Ce(f.primary.main,.5)),Y(f.Slider,"secondaryTrack",Ce(f.secondary.main,.5)),Y(f.Slider,"errorTrack",Ce(f.error.main,.5)),Y(f.Slider,"infoTrack",Ce(f.info.main,.5)),Y(f.Slider,"successTrack",Ce(f.success.main,.5)),Y(f.Slider,"warningTrack",Ce(f.warning.main,.5));const U=wn(f.background.default,.98);Y(f.SnackbarContent,"bg",U),Y(f.SnackbarContent,"color",nt(()=>f.getContrastText(U))),Y(f.SpeedDialAction,"fabHoverBg",wn(f.background.paper,.15)),Y(f.StepConnector,"border",H("palette-grey-600")),Y(f.StepContent,"border",H("palette-grey-600")),Y(f.Switch,"defaultColor",H("palette-grey-300")),Y(f.Switch,"defaultDisabledColor",H("palette-grey-600")),Y(f.Switch,"primaryDisabledColor",Ce(f.primary.main,.55)),Y(f.Switch,"secondaryDisabledColor",Ce(f.secondary.main,.55)),Y(f.Switch,"errorDisabledColor",Ce(f.error.main,.55)),Y(f.Switch,"infoDisabledColor",Ce(f.info.main,.55)),Y(f.Switch,"successDisabledColor",Ce(f.success.main,.55)),Y(f.Switch,"warningDisabledColor",Ce(f.warning.main,.55)),Y(f.TableCell,"border",Ce(jn(f.divider,1),.68)),Y(f.Tooltip,"bg",jn(f.grey[700],.92))}ot(f.background,"default"),ot(f.background,"paper"),ot(f.common,"background"),ot(f.common,"onBackground"),ot(f,"divider"),Object.keys(f).forEach(U=>{const B=f[U];U!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&Y(f[U],"mainChannel",_t(Ut(B.main))),B.light&&Y(f[U],"lightChannel",_t(Ut(B.light))),B.dark&&Y(f[U],"darkChannel",_t(Ut(B.dark))),B.contrastText&&Y(f[U],"contrastTextChannel",_t(Ut(B.contrastText))),U==="text"&&(ot(f[U],"primary"),ot(f[U],"secondary")),U==="action"&&(B.active&&ot(f[U],"active"),B.selected&&ot(f[U],"selected")))})}),C=s.reduce((_,f)=>Ue(_,f),C);const k={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:d1(C)},{vars:R,generateThemeVars:L,generateStyleSheets:V}=Rd(C,k);return C.vars=R,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([_,f])=>{C[_]=f}),C.generateThemeVars=L,C.generateStyleSheets=V,C.generateSpacing=function(){return ii(h.spacing,as(this))},C.getColorSchemeSelector=Pd(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=a,C.unstable_sxConfig={...Lt,...h==null?void 0:h.unstable_sxConfig},C.unstable_sx=function(f){return St({sx:f,theme:this})},C.toRuntimeSource=ji,C}function Ci(e,s,r){e.colorSchemes&&r&&(e.colorSchemes[s]={...r!==!0&&r,palette:ys({...r===!0?{}:r.palette,mode:s})})}function g1(e={},...s){const{palette:r,cssVariables:i=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:l=r==null?void 0:r.mode,...a}=e,c=l||"light",d=o==null?void 0:o[c],h={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return xs(e,...s);let g=r;"palette"in e||h[c]&&(h[c]!==!0?g=h[c].palette:c==="dark"&&(g={mode:"dark"}));const p=xs({...e,palette:g},...s);return p.defaultColorScheme=c,p.colorSchemes=h,p.palette.mode==="light"&&(p.colorSchemes.light={...h.light!==!0&&h.light,palette:p.palette},Ci(p,"dark",h.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:p.palette},Ci(p,"light",h.light)),p}return!r&&!("light"in h)&&c==="light"&&(h.light=!0),p1({...a,colorSchemes:h,defaultColorScheme:c,...typeof i!="boolean"&&i},...s)}const m1=g1(),y1="$$material";function x1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zt=e=>x1(e)&&e!=="classes",Ve=vd({themeId:y1,defaultTheme:m1,rootShouldForwardProp:Zt});function b1(){return td}const bt=Dd;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function vt(e){return Nd(e)}function v1(e){return rt("MuiSvgIcon",e)}ht("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const j1=e=>{const{color:s,fontSize:r,classes:i}=e,o={root:["root",s!=="inherit"&&`color${Ie(s)}`,`fontSize${Ie(r)}`]};return mt(o,v1,i)},w1=Ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.color!=="inherit"&&s[`color${Ie(r.color)}`],s[`fontSize${Ie(r.fontSize)}`]]}})(bt(({theme:e})=>{var s,r,i,o,l,a,c,d,h,g,p,m,x,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(s=e.transitions)==null?void 0:s.create)==null?void 0:o.call(s,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:a.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,u])=>u&&u.main).map(([u])=>{var w,T;return{props:{color:u},style:{color:(T=(w=(e.vars??e).palette)==null?void 0:w[u])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(b=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),kn=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiSvgIcon"}),{children:o,className:l,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:p,viewBox:m="0 0 24 24",...x}=i,b=re.isValidElement(o)&&o.type==="svg",u={...i,color:a,component:c,fontSize:d,instanceFontSize:s.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:b},w={};g||(w.viewBox=m);const T=j1(u);return t.jsxs(w1,{as:c,className:$e(T.root,l),focusable:"false",color:h,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...w,...x,...b&&o.props,ownerState:u,children:[b?o.props.children:o,p?t.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(kn.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,fontSize:n.oneOfType([n.oneOf(["inherit","large","medium","small"]),n.string]),htmlColor:n.string,inheritViewBox:n.bool,shapeRendering:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleAccess:n.string,viewBox:n.string}),kn.muiName="SvgIcon";function Fe(e,s){function r(i,o){return t.jsx(kn,{"data-testid":`${s}Icon`,ref:o,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${s}Icon`),r.muiName=kn.muiName,re.memo(re.forwardRef(r))}function k1(e,s){if(!e)return s;if(typeof e=="function"||typeof s=="function")return o=>{const l=typeof s=="function"?s(o):s,a=typeof e=="function"?e({...o,...l}):e,c=$e(o==null?void 0:o.className,l==null?void 0:l.className,a==null?void 0:a.className);return{...l,...a,...!!c&&{className:c},...(l==null?void 0:l.style)&&(a==null?void 0:a.style)&&{style:{...l.style,...a.style}},...(l==null?void 0:l.sx)&&(a==null?void 0:a.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const r=s,i=$e(r==null?void 0:r.className,e==null?void 0:e.className);return{...s,...e,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const C1=Fe(t.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),S1=e=>t.jsx(ss,{...e,Icon:t.jsx(C1,{sx:{color:"#fcb035"}}),backgroundColor:"#fff5e5",textColor:"black"}),Si=Fe(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),T1=Fe(t.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined"),vs=pe.div`
121
+ To suppress this warning, you need to explicitly provide the \`palette.${s}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function h1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const nt=e=>{try{return e()}catch{}},f1=(e="mui")=>Od(e);function bs(e,s,r,i){if(!s)return;s=s===!0?{}:s;const o=i==="dark"?"dark":"light";if(!r){e[i]=l1({...s,palette:{mode:o,...s==null?void 0:s.palette}});return}const{palette:l,...a}=xs({...r,palette:{mode:o,...s==null?void 0:s.palette}});return e[i]={...s,palette:l,opacity:{...wi(o),...s==null?void 0:s.opacity},overlays:(s==null?void 0:s.overlays)||ki(o)},a}function p1(e={},...s){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:a=a1,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(r)[0],p=i||(r.light&&g!=="light"?"light":g),m=f1(l),{[p]:x,light:b,dark:u,...w}=r,T={...w};let D=x;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:ut(21,p));const z=bs(T,D,h,p);b&&!T.light&&bs(T,b,void 0,"light"),u&&!T.dark&&bs(T,u,void 0,"dark");let C={defaultColorScheme:p,...z,cssVarPrefix:l,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...qd(z.typography),...z.font},spacing:h1(h.spacing)};Object.keys(C.colorSchemes).forEach(V=>{const f=C.colorSchemes[V].palette,H=U=>{const F=U.split("-"),Z=F[1],K=F[2];return m(U,f[Z][K])};if(f.mode==="light"&&(Y(f.common,"background","#fff"),Y(f.common,"onBackground","#000")),f.mode==="dark"&&(Y(f.common,"background","#000"),Y(f.common,"onBackground","#fff")),u1(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){Y(f.Alert,"errorColor",Ce(f.error.light,.6)),Y(f.Alert,"infoColor",Ce(f.info.light,.6)),Y(f.Alert,"successColor",Ce(f.success.light,.6)),Y(f.Alert,"warningColor",Ce(f.warning.light,.6)),Y(f.Alert,"errorFilledBg",H("palette-error-main")),Y(f.Alert,"infoFilledBg",H("palette-info-main")),Y(f.Alert,"successFilledBg",H("palette-success-main")),Y(f.Alert,"warningFilledBg",H("palette-warning-main")),Y(f.Alert,"errorFilledColor",nt(()=>f.getContrastText(f.error.main))),Y(f.Alert,"infoFilledColor",nt(()=>f.getContrastText(f.info.main))),Y(f.Alert,"successFilledColor",nt(()=>f.getContrastText(f.success.main))),Y(f.Alert,"warningFilledColor",nt(()=>f.getContrastText(f.warning.main))),Y(f.Alert,"errorStandardBg",Se(f.error.light,.9)),Y(f.Alert,"infoStandardBg",Se(f.info.light,.9)),Y(f.Alert,"successStandardBg",Se(f.success.light,.9)),Y(f.Alert,"warningStandardBg",Se(f.warning.light,.9)),Y(f.Alert,"errorIconColor",H("palette-error-main")),Y(f.Alert,"infoIconColor",H("palette-info-main")),Y(f.Alert,"successIconColor",H("palette-success-main")),Y(f.Alert,"warningIconColor",H("palette-warning-main")),Y(f.AppBar,"defaultBg",H("palette-grey-100")),Y(f.Avatar,"defaultBg",H("palette-grey-400")),Y(f.Button,"inheritContainedBg",H("palette-grey-300")),Y(f.Button,"inheritContainedHoverBg",H("palette-grey-A100")),Y(f.Chip,"defaultBorder",H("palette-grey-400")),Y(f.Chip,"defaultAvatarColor",H("palette-grey-700")),Y(f.Chip,"defaultIconColor",H("palette-grey-700")),Y(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(f.LinearProgress,"primaryBg",Se(f.primary.main,.62)),Y(f.LinearProgress,"secondaryBg",Se(f.secondary.main,.62)),Y(f.LinearProgress,"errorBg",Se(f.error.main,.62)),Y(f.LinearProgress,"infoBg",Se(f.info.main,.62)),Y(f.LinearProgress,"successBg",Se(f.success.main,.62)),Y(f.LinearProgress,"warningBg",Se(f.warning.main,.62)),Y(f.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),Y(f.Slider,"primaryTrack",Se(f.primary.main,.62)),Y(f.Slider,"secondaryTrack",Se(f.secondary.main,.62)),Y(f.Slider,"errorTrack",Se(f.error.main,.62)),Y(f.Slider,"infoTrack",Se(f.info.main,.62)),Y(f.Slider,"successTrack",Se(f.success.main,.62)),Y(f.Slider,"warningTrack",Se(f.warning.main,.62));const U=wn(f.background.default,.8);Y(f.SnackbarContent,"bg",U),Y(f.SnackbarContent,"color",nt(()=>f.getContrastText(U))),Y(f.SpeedDialAction,"fabHoverBg",wn(f.background.paper,.15)),Y(f.StepConnector,"border",H("palette-grey-400")),Y(f.StepContent,"border",H("palette-grey-400")),Y(f.Switch,"defaultColor",H("palette-common-white")),Y(f.Switch,"defaultDisabledColor",H("palette-grey-100")),Y(f.Switch,"primaryDisabledColor",Se(f.primary.main,.62)),Y(f.Switch,"secondaryDisabledColor",Se(f.secondary.main,.62)),Y(f.Switch,"errorDisabledColor",Se(f.error.main,.62)),Y(f.Switch,"infoDisabledColor",Se(f.info.main,.62)),Y(f.Switch,"successDisabledColor",Se(f.success.main,.62)),Y(f.Switch,"warningDisabledColor",Se(f.warning.main,.62)),Y(f.TableCell,"border",Se(jn(f.divider,1),.88)),Y(f.Tooltip,"bg",jn(f.grey[700],.92))}if(f.mode==="dark"){Y(f.Alert,"errorColor",Se(f.error.light,.6)),Y(f.Alert,"infoColor",Se(f.info.light,.6)),Y(f.Alert,"successColor",Se(f.success.light,.6)),Y(f.Alert,"warningColor",Se(f.warning.light,.6)),Y(f.Alert,"errorFilledBg",H("palette-error-dark")),Y(f.Alert,"infoFilledBg",H("palette-info-dark")),Y(f.Alert,"successFilledBg",H("palette-success-dark")),Y(f.Alert,"warningFilledBg",H("palette-warning-dark")),Y(f.Alert,"errorFilledColor",nt(()=>f.getContrastText(f.error.dark))),Y(f.Alert,"infoFilledColor",nt(()=>f.getContrastText(f.info.dark))),Y(f.Alert,"successFilledColor",nt(()=>f.getContrastText(f.success.dark))),Y(f.Alert,"warningFilledColor",nt(()=>f.getContrastText(f.warning.dark))),Y(f.Alert,"errorStandardBg",Ce(f.error.light,.9)),Y(f.Alert,"infoStandardBg",Ce(f.info.light,.9)),Y(f.Alert,"successStandardBg",Ce(f.success.light,.9)),Y(f.Alert,"warningStandardBg",Ce(f.warning.light,.9)),Y(f.Alert,"errorIconColor",H("palette-error-main")),Y(f.Alert,"infoIconColor",H("palette-info-main")),Y(f.Alert,"successIconColor",H("palette-success-main")),Y(f.Alert,"warningIconColor",H("palette-warning-main")),Y(f.AppBar,"defaultBg",H("palette-grey-900")),Y(f.AppBar,"darkBg",H("palette-background-paper")),Y(f.AppBar,"darkColor",H("palette-text-primary")),Y(f.Avatar,"defaultBg",H("palette-grey-600")),Y(f.Button,"inheritContainedBg",H("palette-grey-800")),Y(f.Button,"inheritContainedHoverBg",H("palette-grey-700")),Y(f.Chip,"defaultBorder",H("palette-grey-700")),Y(f.Chip,"defaultAvatarColor",H("palette-grey-300")),Y(f.Chip,"defaultIconColor",H("palette-grey-300")),Y(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(f.LinearProgress,"primaryBg",Ce(f.primary.main,.5)),Y(f.LinearProgress,"secondaryBg",Ce(f.secondary.main,.5)),Y(f.LinearProgress,"errorBg",Ce(f.error.main,.5)),Y(f.LinearProgress,"infoBg",Ce(f.info.main,.5)),Y(f.LinearProgress,"successBg",Ce(f.success.main,.5)),Y(f.LinearProgress,"warningBg",Ce(f.warning.main,.5)),Y(f.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),Y(f.Slider,"primaryTrack",Ce(f.primary.main,.5)),Y(f.Slider,"secondaryTrack",Ce(f.secondary.main,.5)),Y(f.Slider,"errorTrack",Ce(f.error.main,.5)),Y(f.Slider,"infoTrack",Ce(f.info.main,.5)),Y(f.Slider,"successTrack",Ce(f.success.main,.5)),Y(f.Slider,"warningTrack",Ce(f.warning.main,.5));const U=wn(f.background.default,.98);Y(f.SnackbarContent,"bg",U),Y(f.SnackbarContent,"color",nt(()=>f.getContrastText(U))),Y(f.SpeedDialAction,"fabHoverBg",wn(f.background.paper,.15)),Y(f.StepConnector,"border",H("palette-grey-600")),Y(f.StepContent,"border",H("palette-grey-600")),Y(f.Switch,"defaultColor",H("palette-grey-300")),Y(f.Switch,"defaultDisabledColor",H("palette-grey-600")),Y(f.Switch,"primaryDisabledColor",Ce(f.primary.main,.55)),Y(f.Switch,"secondaryDisabledColor",Ce(f.secondary.main,.55)),Y(f.Switch,"errorDisabledColor",Ce(f.error.main,.55)),Y(f.Switch,"infoDisabledColor",Ce(f.info.main,.55)),Y(f.Switch,"successDisabledColor",Ce(f.success.main,.55)),Y(f.Switch,"warningDisabledColor",Ce(f.warning.main,.55)),Y(f.TableCell,"border",Ce(jn(f.divider,1),.68)),Y(f.Tooltip,"bg",jn(f.grey[700],.92))}ot(f.background,"default"),ot(f.background,"paper"),ot(f.common,"background"),ot(f.common,"onBackground"),ot(f,"divider"),Object.keys(f).forEach(U=>{const F=f[U];U!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&Y(f[U],"mainChannel",_t(Ut(F.main))),F.light&&Y(f[U],"lightChannel",_t(Ut(F.light))),F.dark&&Y(f[U],"darkChannel",_t(Ut(F.dark))),F.contrastText&&Y(f[U],"contrastTextChannel",_t(Ut(F.contrastText))),U==="text"&&(ot(f[U],"primary"),ot(f[U],"secondary")),U==="action"&&(F.active&&ot(f[U],"active"),F.selected&&ot(f[U],"selected")))})}),C=s.reduce((V,f)=>Ue(V,f),C);const k={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:d1(C)},{vars:$,generateThemeVars:B,generateStyleSheets:_}=Rd(C,k);return C.vars=$,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([V,f])=>{C[V]=f}),C.generateThemeVars=B,C.generateStyleSheets=_,C.generateSpacing=function(){return ii(h.spacing,as(this))},C.getColorSchemeSelector=Pd(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=a,C.unstable_sxConfig={...Lt,...h==null?void 0:h.unstable_sxConfig},C.unstable_sx=function(f){return St({sx:f,theme:this})},C.toRuntimeSource=ji,C}function Ci(e,s,r){e.colorSchemes&&r&&(e.colorSchemes[s]={...r!==!0&&r,palette:ys({...r===!0?{}:r.palette,mode:s})})}function g1(e={},...s){const{palette:r,cssVariables:i=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:l=r==null?void 0:r.mode,...a}=e,c=l||"light",d=o==null?void 0:o[c],h={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return xs(e,...s);let g=r;"palette"in e||h[c]&&(h[c]!==!0?g=h[c].palette:c==="dark"&&(g={mode:"dark"}));const p=xs({...e,palette:g},...s);return p.defaultColorScheme=c,p.colorSchemes=h,p.palette.mode==="light"&&(p.colorSchemes.light={...h.light!==!0&&h.light,palette:p.palette},Ci(p,"dark",h.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:p.palette},Ci(p,"light",h.light)),p}return!r&&!("light"in h)&&c==="light"&&(h.light=!0),p1({...a,colorSchemes:h,defaultColorScheme:c,...typeof i!="boolean"&&i},...s)}const m1=g1(),y1="$$material";function x1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zt=e=>x1(e)&&e!=="classes",Ve=vd({themeId:y1,defaultTheme:m1,rootShouldForwardProp:Zt});function b1(){return td}const bt=Dd;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function vt(e){return Nd(e)}function v1(e){return rt("MuiSvgIcon",e)}ht("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const j1=e=>{const{color:s,fontSize:r,classes:i}=e,o={root:["root",s!=="inherit"&&`color${Ie(s)}`,`fontSize${Ie(r)}`]};return mt(o,v1,i)},w1=Ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.color!=="inherit"&&s[`color${Ie(r.color)}`],s[`fontSize${Ie(r.fontSize)}`]]}})(bt(({theme:e})=>{var s,r,i,o,l,a,c,d,h,g,p,m,x,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(s=e.transitions)==null?void 0:s.create)==null?void 0:o.call(s,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:a.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,u])=>u&&u.main).map(([u])=>{var w,T;return{props:{color:u},style:{color:(T=(w=(e.vars??e).palette)==null?void 0:w[u])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(b=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),kn=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiSvgIcon"}),{children:o,className:l,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:p,viewBox:m="0 0 24 24",...x}=i,b=re.isValidElement(o)&&o.type==="svg",u={...i,color:a,component:c,fontSize:d,instanceFontSize:s.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:b},w={};g||(w.viewBox=m);const T=j1(u);return t.jsxs(w1,{as:c,className:$e(T.root,l),focusable:"false",color:h,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...w,...x,...b&&o.props,ownerState:u,children:[b?o.props.children:o,p?t.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(kn.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,fontSize:n.oneOfType([n.oneOf(["inherit","large","medium","small"]),n.string]),htmlColor:n.string,inheritViewBox:n.bool,shapeRendering:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleAccess:n.string,viewBox:n.string}),kn.muiName="SvgIcon";function Fe(e,s){function r(i,o){return t.jsx(kn,{"data-testid":`${s}Icon`,ref:o,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${s}Icon`),r.muiName=kn.muiName,re.memo(re.forwardRef(r))}function k1(e,s){if(!e)return s;if(typeof e=="function"||typeof s=="function")return o=>{const l=typeof s=="function"?s(o):s,a=typeof e=="function"?e({...o,...l}):e,c=$e(o==null?void 0:o.className,l==null?void 0:l.className,a==null?void 0:a.className);return{...l,...a,...!!c&&{className:c},...(l==null?void 0:l.style)&&(a==null?void 0:a.style)&&{style:{...l.style,...a.style}},...(l==null?void 0:l.sx)&&(a==null?void 0:a.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const r=s,i=$e(r==null?void 0:r.className,e==null?void 0:e.className);return{...s,...e,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const C1=Fe(t.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),S1=e=>t.jsx(ss,{...e,Icon:t.jsx(C1,{sx:{color:"#fcb035"}}),backgroundColor:"#fff5e5",textColor:"black"}),Si=Fe(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),T1=Fe(t.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined"),vs=pe.div`
122
122
  display: flex;
123
123
  align-items: center;
124
124
  border: 1px solid
@@ -376,7 +376,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${s}Chann
376
376
  animation-iteration-count: infinite;
377
377
  animation-delay: 200ms;
378
378
  }
379
- `,lo=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:a,...c}=i,[d,h]=re.useState([]),g=re.useRef(0),p=re.useRef(null);re.useEffect(()=>{p.current&&(p.current(),p.current=null)},[d]);const m=re.useRef(!1),x=ec(),b=re.useRef(null),u=re.useRef(null),w=re.useCallback(C=>{const{pulsate:k,rippleX:R,rippleY:L,rippleSize:V,cb:_}=C;h(f=>[...f,t.jsx(s0,{classes:{ripple:$e(l.ripple,Xe.ripple),rippleVisible:$e(l.rippleVisible,Xe.rippleVisible),ripplePulsate:$e(l.ripplePulsate,Xe.ripplePulsate),child:$e(l.child,Xe.child),childLeaving:$e(l.childLeaving,Xe.childLeaving),childPulsate:$e(l.childPulsate,Xe.childPulsate)},timeout:Us,pulsate:k,rippleX:R,rippleY:L,rippleSize:V},g.current)]),g.current+=1,p.current=_},[l]),T=re.useCallback((C={},k={},R=()=>{})=>{const{pulsate:L=!1,center:V=o||k.pulsate,fakeElement:_=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&m.current){m.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(m.current=!0);const f=_?null:u.current,H=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,B,Z;if(V||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(H.width/2),B=Math.round(H.height/2);else{const{clientX:K,clientY:ee}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(K-H.left),B=Math.round(ee-H.top)}if(V)Z=Math.sqrt((2*H.width**2+H.height**2)/3),Z%2===0&&(Z+=1);else{const K=Math.max(Math.abs((f?f.clientWidth:0)-U),U)*2+2,ee=Math.max(Math.abs((f?f.clientHeight:0)-B),B)*2+2;Z=Math.sqrt(K**2+ee**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{w({pulsate:L,rippleX:U,rippleY:B,rippleSize:Z,cb:R})},x.start(X1,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:L,rippleX:U,rippleY:B,rippleSize:Z,cb:R})},[o,w,x]),D=re.useCallback(()=>{T({},{pulsate:!0})},[T]),z=re.useCallback((C,k)=>{if(x.clear(),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,x.start(0,()=>{z(C,k)});return}b.current=null,h(R=>R.length>0?R.slice(1):R),p.current=k},[x]);return re.useImperativeHandle(r,()=>({pulsate:D,start:T,stop:z}),[D,T,z]),t.jsx(n0,{className:$e(Xe.root,l.root,a),ref:u,...c,children:t.jsx(qs,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(lo.propTypes={center:n.bool,classes:n.object,className:n.string});function r0(e){return rt("MuiButtonBase",e)}const i0=ht("MuiButtonBase",["root","disabled","focusVisible"]),o0=e=>{const{disabled:s,focusVisible:r,focusVisibleClassName:i,classes:o}=e,a=mt({root:["root",s&&"disabled",r&&"focusVisible"]},r0,o);return r&&i&&(a.root+=` ${i}`),a},l0=Ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,s)=>s.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${i0.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ao=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:a,className:c,component:d="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:x,LinkComponent:b="a",onBlur:u,onClick:w,onContextMenu:T,onDragLeave:D,onFocus:z,onFocusVisible:C,onKeyDown:k,onKeyUp:R,onMouseDown:L,onMouseLeave:V,onMouseUp:_,onTouchEnd:f,onTouchMove:H,onTouchStart:U,tabIndex:B=0,TouchRippleProps:Z,touchRippleRef:K,type:ee,...F}=i,E=re.useRef(null),j=_1(),y=is(j.ref,K),[I,P]=re.useState(!1);h&&I&&P(!1),re.useImperativeHandle(o,()=>({focusVisible:()=>{P(!0),E.current.focus()}}),[]);const O=j.shouldMount&&!g&&!h;re.useEffect(()=>{I&&m&&!g&&j.pulsate()},[g,m,I,j]);const M=lt(j,"start",L,p),A=lt(j,"stop",T,p),q=lt(j,"stop",D,p),$=lt(j,"stop",_,p),W=lt(j,"stop",te=>{I&&te.preventDefault(),V&&V(te)},p),X=lt(j,"start",U,p),G=lt(j,"stop",f,p),se=lt(j,"stop",H,p),Q=lt(j,"stop",te=>{qr(te.target)||P(!1),u&&u(te)},!1),he=ln(te=>{E.current||(E.current=te.currentTarget),qr(te.target)&&(P(!0),C&&C(te)),z&&z(te)}),le=()=>{const te=E.current;return d&&d!=="button"&&!(te.tagName==="A"&&te.href)},fe=ln(te=>{m&&!te.repeat&&I&&te.key===" "&&j.stop(te,()=>{j.start(te)}),te.target===te.currentTarget&&le()&&te.key===" "&&te.preventDefault(),k&&k(te),te.target===te.currentTarget&&le()&&te.key==="Enter"&&!h&&(te.preventDefault(),w&&w(te))}),_e=ln(te=>{m&&te.key===" "&&I&&!te.defaultPrevented&&j.stop(te,()=>{j.pulsate(te)}),R&&R(te),w&&te.target===te.currentTarget&&le()&&te.key===" "&&!te.defaultPrevented&&w(te)});let ke=d;ke==="button"&&(F.href||F.to)&&(ke=b);const Pe={};ke==="button"?(Pe.type=ee===void 0?"button":ee,Pe.disabled=h):(!F.href&&!F.to&&(Pe.role="button"),h&&(Pe["aria-disabled"]=h));const ce=is(r,E),oe={...i,centerRipple:l,component:d,disabled:h,disableRipple:g,disableTouchRipple:p,focusRipple:m,tabIndex:B,focusVisible:I},de=o0(oe);return t.jsxs(l0,{as:ke,className:$e(de.root,c),ownerState:oe,onBlur:Q,onClick:w,onContextMenu:A,onFocus:he,onKeyDown:fe,onKeyUp:_e,onMouseDown:M,onMouseLeave:W,onMouseUp:$,onDragLeave:q,onTouchEnd:G,onTouchMove:se,onTouchStart:X,ref:ce,tabIndex:h?-1:B,type:ee,...Pe,...F,children:[a,O?t.jsx(lo,{ref:y,center:l,...Z}):null]})});function lt(e,s,r,i=!1){return ln(o=>(r&&r(o),i||e[s](o),!0))}process.env.NODE_ENV!=="production"&&(ao.propTypes={action:on,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:Za,disabled:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,href:n.any,LinkComponent:n.elementType,onBlur:n.func,onClick:n.func,onContextMenu:n.func,onDragLeave:n.func,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onKeyUp:n.func,onMouseDown:n.func,onMouseLeave:n.func,onMouseUp:n.func,onTouchEnd:n.func,onTouchMove:n.func,onTouchStart:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string])});function a0(e){return rt("PrivateSwitchBase",e)}ht("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function Gt(e,s){const{className:r,elementType:i,ownerState:o,externalForwardedProps:l,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=s,{component:h,slots:g={[e]:void 0},slotProps:p={[e]:void 0},...m}=l,x=g[e]||i,b=ac(p[e],o),{props:{component:u,...w},internalRef:T}=lc({className:r,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:b}),D=is(T,b==null?void 0:b.ref,s.ref),z=e==="root"?u||h:u,C=ic(x,{...e==="root"&&!h&&!g[e]&&a,...e!=="root"&&!g[e]&&a,...w,...z&&!c&&{as:z},...z&&c&&{component:z},ref:D},o);return[x,C]}const c0=e=>{const{classes:s,checked:r,disabled:i,edge:o}=e,l={root:["root",r&&"checked",i&&"disabled",o&&`edge${Ie(o)}`],input:["input"]};return mt(l,a0,s)},d0=Ve(ao,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:s})=>e==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:s})=>e==="end"&&s.size!=="small",style:{marginRight:-12}}]}),u0=Ve("input",{name:"MuiSwitchBase",shouldForwardProp:Zt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zs=re.forwardRef(function(s,r){const{autoFocus:i,checked:o,checkedIcon:l,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:h=!1,icon:g,id:p,inputProps:m,inputRef:x,name:b,onBlur:u,onChange:w,onFocus:T,readOnly:D,required:z=!1,tabIndex:C,type:k,value:R,slots:L={},slotProps:V={},..._}=s,[f,H]=Qa({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),U=Ls(),B=A=>{T&&T(A),U&&U.onFocus&&U.onFocus(A)},Z=A=>{u&&u(A),U&&U.onBlur&&U.onBlur(A)},K=A=>{if(A.nativeEvent.defaultPrevented)return;const q=A.target.checked;H(q),w&&w(A,q)};let ee=c;U&&typeof ee>"u"&&(ee=U.disabled);const F=k==="checkbox"||k==="radio",E={...s,checked:f,disabled:ee,disableFocusRipple:d,edge:h},j=c0(E),y={slots:L,slotProps:{input:m,...V}},[I,P]=Gt("root",{ref:r,elementType:d0,className:j.root,shouldForwardComponentProp:!0,externalForwardedProps:{...y,component:"span",..._},getSlotProps:A=>({...A,onFocus:q=>{var $;($=A.onFocus)==null||$.call(A,q),B(q)},onBlur:q=>{var $;($=A.onBlur)==null||$.call(A,q),Z(q)}}),ownerState:E,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:ee,role:void 0,tabIndex:null}}),[O,M]=Gt("input",{ref:x,elementType:u0,className:j.input,externalForwardedProps:y,getSlotProps:A=>({onChange:q=>{var $;($=A.onChange)==null||$.call(A,q),K(q)}}),ownerState:E,additionalProps:{autoFocus:i,checked:o,defaultChecked:a,disabled:ee,id:F?p:void 0,name:b,readOnly:D,required:z,tabIndex:C,type:k,...k==="checkbox"&&R===void 0?{}:{value:R}}});return t.jsxs(I,{...P,children:[t.jsx(O,{...M}),f?l:g]})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={autoFocus:n.bool,checked:n.bool,checkedIcon:n.node.isRequired,classes:n.object,className:n.string,defaultChecked:n.bool,disabled:n.bool,disableFocusRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node.isRequired,id:n.string,inputProps:n.object,inputRef:on,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,readOnly:n.bool,required:n.bool,slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.string.isRequired,value:n.any});const h0=Fe(t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),f0=Fe(t.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),p0=Ve("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Zt})({position:"relative",display:"flex"}),g0=Ve(h0,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),m0=Ve(f0,{name:"MuiRadioButtonIcon"})(bt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Ys(e){const{checked:s=!1,classes:r={},fontSize:i}=e,o={...e,checked:s};return t.jsxs(p0,{className:r.root,ownerState:o,children:[t.jsx(g0,{fontSize:i,className:r.background,ownerState:o}),t.jsx(m0,{fontSize:i,className:r.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Ys.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});const co=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(co.displayName="RadioGroupContext");function y0(){return re.useContext(co)}function x0(e){return rt("MuiRadio",e)}const uo=ht("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);function b0(e){return typeof e.main=="string"}function v0(e,s=[]){if(!b0(e))return!1;for(const r of s)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Kt(e=[]){return([,s])=>s&&v0(s,e)}const j0=e=>{const{classes:s,color:r,size:i}=e,o={root:["root",`color${Ie(r)}`,i!=="medium"&&`size${Ie(i)}`]};return{...s,...mt(o,x0,s)}},w0=Ve(Zs,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.size!=="medium"&&s[`size${Ie(r.size)}`],s[`color${Ie(r.color)}`]]}})(bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${uo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[s].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[s].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s,disabled:!1},style:{[`&.${uo.checked}`]:{color:(e.vars||e).palette[s].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function k0(e,s){return typeof s=="object"&&s!==null?e===s:String(e)===String(s)}const C0=t.jsx(Ys,{checked:!0}),S0=t.jsx(Ys,{}),ho=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiRadio"}),{checked:o,checkedIcon:l=C0,color:a="primary",icon:c=S0,name:d,onChange:h,size:g="medium",className:p,disabled:m,disableRipple:x=!1,slots:b={},slotProps:u={},inputProps:w,...T}=i,D=Ls();let z=m;D&&typeof z>"u"&&(z=D.disabled),z??(z=!1);const C={...i,disabled:z,disableRipple:x,color:a,size:g},k=j0(C),R=y0();let L=o;const V=Ga(h,R&&R.onChange);let _=d;R&&(typeof L>"u"&&(L=k0(R.value,i.value)),typeof _>"u"&&(_=R.name));const f=u.input??w,[H,U]=Gt("root",{ref:r,elementType:w0,className:$e(k.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:u,...T},getSlotProps:B=>({...B,onChange:(Z,...K)=>{var ee;(ee=B.onChange)==null||ee.call(B,Z,...K),V(Z,...K)}}),ownerState:C,additionalProps:{type:"radio",icon:re.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:re.cloneElement(l,{fontSize:l.props.fontSize??g}),disabled:z,name:_,checked:L,slots:b,slotProps:{input:typeof f=="function"?f(C):f}}});return t.jsx(H,{...U,classes:k})});process.env.NODE_ENV!=="production"&&(ho.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,inputProps:n.object,inputRef:on,name:n.string,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function T0(e){return rt("MuiTypography",e)}ht("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const M0={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},z0=b1(),E0=e=>{const{align:s,gutterBottom:r,noWrap:i,paragraph:o,variant:l,classes:a}=e,c={root:["root",l,e.align!=="inherit"&&`align${Ie(s)}`,r&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return mt(c,T0,a)},N0=Ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.variant&&s[r.variant],r.align!=="inherit"&&s[`align${Ie(r.align)}`],r.noWrap&&s.noWrap,r.gutterBottom&&s.gutterBottom,r.paragraph&&s.paragraph]}})(bt(({theme:e})=>{var s;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((s=e.palette)==null?void 0:s.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Ie(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),fo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gs=re.forwardRef(function(s,r){const{color:i,...o}=vt({props:s,name:"MuiTypography"}),l=!M0[i],a=z0({...o,...l&&{color:i}}),{align:c="inherit",className:d,component:h,gutterBottom:g=!1,noWrap:p=!1,paragraph:m=!1,variant:x="body1",variantMapping:b=fo,...u}=a,w={...a,align:c,color:i,className:d,component:h,gutterBottom:g,noWrap:p,paragraph:m,variant:x,variantMapping:b},T=h||(m?"p":b[x]||fo[x])||"span",D=E0(w);return t.jsx(N0,{as:T,ref:r,className:$e(D.root,d),...u,ownerState:w,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...u.style}})});process.env.NODE_ENV!=="production"&&(Gs.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),n.string]),component:n.elementType,gutterBottom:n.bool,noWrap:n.bool,paragraph:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),n.string]),variantMapping:n.object});function D0(e){return rt("MuiFormControlLabel",e)}const Qt=ht("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function O0({props:e,states:s,muiFormControl:r}){return s.reduce((i,o)=>(i[o]=e[o],r&&typeof e[o]>"u"&&(i[o]=r[o]),i),{})}const A0=e=>{const{classes:s,disabled:r,labelPlacement:i,error:o,required:l}=e,a={root:["root",r&&"disabled",`labelPlacement${Ie(i)}`,o&&"error",l&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return mt(a,D0,s)},I0=Ve("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[{[`& .${Qt.label}`]:s.label},s.root,s[`labelPlacement${Ie(r.labelPlacement)}`]]}})(bt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qt.disabled}`]:{cursor:"default"},[`& .${Qt.label}`]:{[`&.${Qt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:s})=>s==="start"||s==="top"||s==="bottom",style:{marginLeft:16}}]}))),R0=Ve("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,s)=>s.asterisk})(bt(({theme:e})=>({[`&.${Qt.error}`]:{color:(e.vars||e).palette.error.main}}))),po=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:a={},control:c,disabled:d,disableTypography:h,inputRef:g,label:p,labelPlacement:m="end",name:x,onChange:b,required:u,slots:w={},slotProps:T={},value:D,...z}=i,C=Ls(),k=d??c.props.disabled??(C==null?void 0:C.disabled),R=u??c.props.required,L={disabled:k,required:R};["checked","name","onChange","value","inputRef"].forEach(K=>{typeof c.props[K]>"u"&&typeof i[K]<"u"&&(L[K]=i[K])});const V=O0({props:i,muiFormControl:C,states:["error"]}),_={...i,disabled:k,labelPlacement:m,required:R,error:V.error},f=A0(_),H={slots:w,slotProps:{...a,...T}},[U,B]=Gt("typography",{elementType:Gs,externalForwardedProps:H,ownerState:_});let Z=p;return Z!=null&&Z.type!==Gs&&!h&&(Z=t.jsx(U,{component:"span",...B,className:$e(f.label,B==null?void 0:B.className),children:Z})),t.jsxs(I0,{className:$e(f.root,l),ownerState:_,ref:r,...z,children:[re.cloneElement(c,L),R?t.jsxs("div",{children:[Z,t.jsxs(R0,{ownerState:_,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}):Z]})});process.env.NODE_ENV!=="production"&&(po.propTypes={checked:n.bool,classes:n.object,className:n.string,componentsProps:n.shape({typography:n.object}),control:n.element.isRequired,disabled:n.bool,disableTypography:n.bool,inputRef:on,label:n.node,labelPlacement:n.oneOf(["bottom","end","start","top"]),name:n.string,onChange:n.func,required:n.bool,slotProps:n.shape({typography:n.oneOfType([n.func,n.object])}),slots:n.shape({typography:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const Ks=e=>{const{inputProperties:s,label:r,checked:i,onChange:o,fontSize:l}=e;return t.jsx(po,{label:r,sx:{margin:"0px","& .MuiTypography-root":{fontSize:l||"1vw"}},control:t.jsx(ho,{...s,checked:i,onChange:o,sx:{"&.Mui-checked":{color:"#0047ab"}}})})};Ks.propTypes={inputProperties:n.object,label:n.string};const at=v.forwardRef((e,s)=>{const[r,i]=v.useState(!1),{inputProperties:o}=e,l=a=>{o!=null&&o.handleChange&&typeof o.handleChange=="function"?o.handleChange(a):o!=null&&o.onChange&&typeof o.onChange=="function"&&o.onChange(a)};return t.jsxs(vs,{isfocused:r,style:{...o==null?void 0:o.size},children:[t.jsx(js,{ref:s,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:l,fontStyle:o==null?void 0:o.fontStyle,...o}),t.jsx(M1,{isfocused:r})]})});at.displayName="InputSearch",at.propTypes={inputProperties:n.object};const Xt=({title:e,tooltip:s,top:r,left:i,fontSizeTitle:o,fontSizeTooltip:l,widthTooltip:a,heightTooltip:c,marginTop:d,marginBottom:h,style:g,isTooltipVisibleProp:p,fontWeight:m="700",fontSizeSubTitle:x="1vw",subTitle:b,htmlFor:u})=>{const[w,T]=v.useState(p||!1),D=()=>{T(!0)},z=()=>{T(!1)};return t.jsxs("label",{htmlFor:u,className:"flex align-items-center",style:{...g,marginTop:d,marginBottom:h,display:"flex",alignItems:"center",gap:"5px"},children:[t.jsx("p",{className:"flex align-items-center",style:{fontSize:o,fontWeight:m,color:"#2F3131"},children:e}),b&&t.jsx("p",{style:{fontSize:x,color:"#2F3131"},className:"sub-label",children:b}),s&&t.jsxs("div",{style:{position:"relative",width:"24px",height:"26px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:D,onMouseLeave:z,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:26,fill:"none",viewBox:"0 0 24 26",children:t.jsx("path",{fill:"#21459C",d:"M12 2.43c-2.652 0-5.196 1.112-7.071 3.091S2 10.183 2 12.981s1.054 5.482 2.929 7.46c1.875 1.979 4.419 3.09 7.071 3.09s5.196-1.111 7.071-3.09C20.946 18.463 22 15.78 22 12.982s-1.054-5.481-2.929-7.46c-1.875-1.979-4.419-3.09-7.071-3.09Zm1 15.826h-2v-6.33h2v6.33Zm0-8.44h-2v-2.11h2v2.11Z"})}),w&&t.jsx("p",{style:{position:"absolute",width:a,height:c,display:"flex",alignItems:"center",justifyContent:"center",background:"white",left:i,border:"1px solid #707070",padding:"5px",borderRadius:"10px",color:"#707070",fontWeight:"400",fontSize:l,top:r,zIndex:1e3},children:s})]})]})};Xt.propTypes={title:n.string||n.any,tooltip:n.string||n.node||n.array||n.element||n.elementType,top:n.string||n.any,left:n.string||n.any,fontSizeTitle:n.string||n.any,fontSizeTooltip:n.string||n.any,widthTooltip:n.string||n.any,heightTooltip:n.string||n.any,marginTop:n.string||n.any,marginBottom:n.string||n.any,style:n.object||n.any,isTooltipVisibleProp:n.bool||n.any,fontWeight:n.string||n.any,fontSizeSubTitle:n.string||n.any,subTitle:n.string||n.any,htmlFor:n.string||n.any};const Dt=4,et=e=>{const{size:s,label:r,options:i,onchange:o,error:l,inputRadio:a,sizeOptions:c,heightOptions:d="auto",maxHeightOptions:h="auto",isOpen:g,setIsOpen:p,disabledClickOutside:m,keyReset:x,value:b,color:u="white",fontSizeLabel:w="1vw",fontSizeOptions:T="0.9vw",border:D,backgroundColor:z,disableColorOpen:C,disabled:k=!1,Icon:R,displayOptions:L,height:V,paddingDropdownHeader:_,widthIcon:f,heightIcon:H,placeholderInputSearch:U="Buscar...",borderRadiusRight:B="4px",borderRadiusLeft:Z="4px",labelText:K,subLabelText:ee,gap:F="0",justifyContent:E="flex-start",id:j,fontSizeLabelText:y,fontSizeTooltip:I,heightTooltip:P,leftTooltip:O,tooltip:M,topTooltip:A,widthTooltip:q,isTooltipVisible:$,position:W="absolute",withoutOptions:X=!1,sortAlphabetically:G=!0}=e,[se,Q]=v.useState(i),[he,le]=v.useState(i),[fe,_e]=v.useState(!1),ke=g!==void 0?g:fe,Pe=p!==void 0?p:_e,[ce,oe]=v.useState(""),de=v.useRef(null),te=()=>!k&&Pe(!ke);v.useEffect(()=>{if(b!=null)if(b!==""){const ae=i.find(Te=>Te.value===b||Te.label===b);oe(ae?ae.label:b)}else oe("")},[b,i]),v.useEffect(()=>{const ae=G?[...i].sort((Te,Ge)=>{var st;return(st=Te.label)==null?void 0:st.localeCompare(Ge.label)}):[...i];Q(ae),le(ae)},[i,G]);const ie=ae=>{oe(ae.label),Pe(!1),o&&o({...ae,id:j})},[ze,Ne]=v.useState(""),De=ae=>{const Te=ae.target.value;Ne(Te);const Ge=se.filter(wt=>wt.label.toLowerCase().includes(Te.toLowerCase())),st=G?Ge.sort((wt,mr)=>{var Un;return(Un=wt.label)==null?void 0:Un.localeCompare(mr.label)}):Ge;le(st)};return v.useEffect(()=>{if(m)return;const ae=Te=>{de.current&&!de.current.contains(Te.target)&&Pe(!1)};return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[Pe,de,m]),v.useEffect(()=>{x!==void 0&&b==null&&oe("")},[x,b]),v.useEffect(()=>{ke||(le(se),Ne(""))},[ke,se]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:F,justifyContent:E},children:[K&&t.jsx(Xt,{fontSizeTitle:y,fontSizeTooltip:I,heightTooltip:P,left:O,subTitle:ee,title:K,tooltip:M,top:A,widthTooltip:q,isTooltipVisibleProp:$,marginBottom:"5px"}),t.jsxs("div",{ref:de,className:`dropdown ${l?"error":""} ${ke&&!C?"open":""} ${k?"disabled":""}`,style:{width:s},children:[t.jsxs("div",{className:`dropdown-header ${u}`,onClick:te,role:"button","aria-haspopup":"listbox","aria-expanded":ke,style:{border:D,backgroundColor:z,cursor:k?"not-allowed":"pointer",opacity:k?.5:1,padding:_,height:V,borderTopRightRadius:B,borderBottomRightRadius:B,borderTopLeftRadius:Z,borderBottomLeftRadius:Z},children:[t.jsx("span",{style:{fontSize:w},children:ce||r}),R?t.jsx(R,{className:`icon-basicSelect ${ke?"up":"down"}`,style:{width:f,height:H}}):t.jsx("i",{className:`arrow-${u} ${ke?"up":"down"}`})]}),ke&&!X&&t.jsxs("ul",{className:`dropdown-options ${u} ${W}`,role:"listbox",id:`dropdown-options-basicSelect ${j}`,style:{width:c||"100%",height:d,maxHeight:h,display:L},children:[i.length>=Dt&&i.length>0&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(at,{inputProperties:{placeholder:U,size:{width:"100%",height:"28px"},type:"text",onChange:ae=>De(ae),fontStyle:"italic"}})}),i.length===0&&!X&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:T,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"}),he.length===0&&ze.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:T,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',ze,'"']}):he.map((ae,Te)=>t.jsxs("li",{onClick:()=>ie(ae),role:"option",style:{padding:a?"5px 0":"15px",fontSize:T},className:"flex align-center flex-wrap",children:[t.jsxs("div",{className:"flex align-center",style:{fontWeight:"400"},children:[a&&t.jsx(Ks,{inputProperties:{checked:ce===ae.label,onChange:()=>ie(ae)}}),ae.label]}),(ae==null?void 0:ae.description)&&t.jsx(A1,{children:ae==null?void 0:ae.description})]},ae.id||Te))]})]})]})};et.propTypes={size:n.string,options:n.array,label:n.string,onchange:n.func,error:n.bool,inputRadio:n.bool,sizeOptions:n.string,heightOptions:n.string,isOpen:n.bool,setIsOpen:n.func,disabledClickOutside:n.bool,keyReset:n.number,value:n.string,maxHeightOptions:n.string,color:n.oneOf(["white","grey"]),fontSizeLabel:n.string,fontSizeOptions:n.string,border:n.string,backgroundColor:n.string,disableColorOpen:n.bool,disabled:n.bool,Icon:n.elementType||n.element||n.func||n.node||n.object||n.any,displayOptions:n.string,height:n.string,paddingDropdownHeader:n.string,widthIcon:n.string,heightIcon:n.string,placeholderInputSearch:n.string,borderRadiusRight:n.string,borderRadiusLeft:n.string,labelText:n.string,subLabelText:n.any,gap:n.string,justifyContent:n.string,id:n.string,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,position:n.string,withoutOptions:n.bool,sortAlphabetically:n.bool};const P0=e=>t.jsx(et,{color:"grey",...e}),go=e=>{const{inputProperties:s,size:r,height:i="200px"}=e,[o,l]=v.useState(0),a=c=>{l(c.target.value.length),s.onChange&&s.onChange(c)};return t.jsxs(R1,{style:{width:r,height:i},children:[t.jsx("textarea",{...s,maxLength:220,onChange:a}),t.jsxs("p",{children:[o,"/220"]})]})};go.propTypes={inputProperties:n.object,size:n.string,height:n.string,handleChange:n.func};const mo=({width:e,fontSize:s,onchange:r})=>{const[i,o]=v.useState(!1),[l,a]=v.useState(""),c=v.useRef(null),d=x=>{x.preventDefault(),o(!0)},h=x=>{x.preventDefault(),o(!1)},g=x=>{if(x.preventDefault(),o(!1),x.dataTransfer.files&&x.dataTransfer.files.length>0){const b=x.dataTransfer.files[0];r(b),a(b.name)}},p=x=>{if(x.target.files&&x.target.files.length>0){const b=x.target.files[0];r(b),a(b.name)}},m=()=>{var x;(x=c.current)==null||x.click()};return t.jsxs("div",{className:`drag-drop-upload ${i?"dragging":""}`,onDragOver:d,onDragLeave:h,onDrop:g,onClick:m,style:{width:e},children:[t.jsx(Mn,{}),l?t.jsx("p",{className:"upload-text file-name",style:{fontSize:s},children:l}):t.jsxs("p",{className:"upload-text",style:{fontSize:s},children:[t.jsx("span",{children:"Seleccione archivo"})," o arrastre hasta aquí (word, excel, png, jpg o pdf)"]}),t.jsx("input",{type:"file",ref:c,onChange:p,style:{display:"none"},accept:".pdf,.doc,.docx,.xlsx,.png,.jpg,.jpeg"})]})};mo.propTypes={width:n.string,fontSize:n.string,onchange:n.func};const yo=e=>t.jsx("button",{className:"button-search",...e,children:t.jsx(z1,{})}),xo=e=>{const[s,r]=v.useState(!1),[i,o]=v.useState(""),{label:l,inputProperties:a,error:c,fontSizeLabel:d,borderRadiusRight:h="4px",borderRadiusLeft:g="4px"}=e,p=x=>{o(x.target.value),a.handleChange(x)},m=x=>{x.preventDefault();const b={target:{value:i,id:a.id||"text-input"},preventDefault:()=>{}};a.handleChange(b)};return t.jsxs("form",{style:{...a==null?void 0:a.size},onSubmit:m,children:[l&&t.jsx(E1,{htmlFor:a.id||"text-input",style:{fontSize:d},children:l}),t.jsxs(vs,{isfocused:s,haserror:c,disabled:a.disabled,style:{width:"100%",position:"relative",borderTopRightRadius:h,borderBottomRightRadius:h,borderTopLeftRadius:g,borderBottomLeftRadius:g},children:[t.jsx(js,{onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:p,value:i,...a}),t.jsx("div",{style:{display:"flex",alignItems:"center",position:"absolute",right:"0px",height:"100%"},children:t.jsx(yo,{disabled:a.disabled})})]}),c&&t.jsx(Ti,{children:c})]})};xo.propTypes={label:n.string,inputProperties:n.object,error:n.bool,fontSizeLabel:n.string,borderRadiusRight:n.string,borderRadiusLeft:n.string};const W0=()=>{const[e,s]=v.useState(15),r=()=>{s(l=>l+1)},i=()=>{s(l=>l-1)},o=l=>{const a=parseInt(l.target.value);isNaN(a)||s(a)};return t.jsxs("div",{className:"number-spinner",children:[t.jsx("input",{type:"number",value:e,onChange:o,className:"number-input"}),t.jsxs("div",{className:"spinner-buttons",children:[t.jsx("button",{onClick:r,className:"spinner-button up",children:"▲"}),t.jsx("button",{onClick:i,className:"spinner-button down",children:"▼"})]})]})},bo=({options:e,value:s,onChange:r,width:i,disabled:o,height:l,widthIcon:a,heightIcon:c,keyReset:d,fontSize:h})=>{const g=({value:m})=>{r(m)},p=m=>m.map(x=>({label:x.toString(),value:x}));return t.jsx(et,{label:s,onchange:g,options:p(e),Icon:Ui,size:i,disabled:o,paddingDropdownHeader:"0 0.5vw",height:l,widthIcon:a,heightIcon:c,keyReset:d,sortAlphabetically:!1,fontSizeLabel:h})};bo.propTypes={options:n.array,value:n.any,onChange:n.func,disabled:n.bool,width:n.string,height:n.string,widthIcon:n.string,heightIcon:n.string,keyReset:n.number,fontSize:n.string};const vo=e=>{var r,i,o;const{inputProperties:s}=e;return t.jsxs(N1,{style:{...s==null?void 0:s.size},isSuccessful:(r=s==null?void 0:s.state)==null?void 0:r.success,children:[t.jsx(D1,{...s}),((i=s==null?void 0:s.state)==null?void 0:i.error)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(Mi,{children:"*"})}),((o=s==null?void 0:s.state)==null?void 0:o.success)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(Mi,{style:{color:"#009470",fontSize:"15px"},children:"✔"})})]})};vo.propTypes={inputProperties:n.object};const $0=e=>{const{options:s=[],value:r,onChange:i,onBlur:o,onFocus:l,sortAlphabetically:a=!0,searchable:c=!0}=e,[d,h]=v.useState([]),[g,p]=v.useState(!1),[m,x]=v.useState(!1),[b,u]=v.useState(""),[w,T]=v.useState(null),D=v.useRef(null),z=v.useRef(null),C=v.useRef(null),k=B=>B.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();v.useEffect(()=>{let B=[...s];a&&B.sort((Z,K)=>(Z.label||"").localeCompare(K.label||"")),h(B)},[s,a]),v.useEffect(()=>{if(r!=null){const B=s.find(Z=>ge.isEqual(Z.value,r));T(B||null)}else T(null)},[r,s]),v.useEffect(()=>{if(!b.trim()){let Z=[...s];a&&Z.sort((K,ee)=>(K.label||"").localeCompare(ee.label||"")),h(Z);return}const B=s.filter(Z=>k(Z.label).includes(k(b)));a&&B.sort((Z,K)=>(Z.label||"").localeCompare(K.label||"")),h(B)},[b,s,a]),v.useEffect(()=>{m?C.current&&setTimeout(()=>{var B;return(B=C.current)==null?void 0:B.focus()},50):u("")},[m]),v.useEffect(()=>{const B=Z=>{D.current&&!D.current.contains(Z.target)&&(x(!1),p(!1))};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[]);const R=()=>{var B;e.disabled||(x(!m),m||(B=z.current)==null||B.focus())},L=B=>{let Z;ge.isEqual(w==null?void 0:w.value,B.value)?Z=null:Z=B,T(Z),x(!1);const K={target:{id:e.id,name:e.name,value:(Z==null?void 0:Z.value)||null,type:"select",checked:void 0,selectedOption:Z,label:(Z==null?void 0:Z.label)||null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(K),o==null||o(K)},V=()=>{T(null),u("");const B={target:{id:e.id,name:e.name,value:null,type:"select",checked:void 0,selectedOption:null,label:null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(B)},_=B=>{p(!0),l==null||l(B)},f=B=>{var Z;(Z=D.current)!=null&&Z.contains(B.relatedTarget)||(p(!1),o==null||o(B))},H=B=>{var Z;if(!e.disabled)switch(B.key){case"Enter":case" ":m||(B.preventDefault(),x(!0));break;case"Escape":x(!1),(Z=z.current)==null||Z.focus();break;case"ArrowDown":case"ArrowUp":B.preventDefault(),m||x(!0);break}},U=v.useMemo(()=>c&&s.length>=Dt,[c,s.length]);return{filteredOptions:d,isFocused:g,isOpen:m,searchQuery:b,setSearchQuery:u,selectedOption:w,dropdownRef:D,inputRef:z,searchInputRef:C,toggleDropdown:R,handleOptionSelect:L,handleClear:V,handleFocus:_,handleBlur:f,handleKeyDown:H,showSearch:U}},Bn=v.forwardRef((e,s)=>{const{className:r="",disabled:i=!1,dropdownClassName:o="",error:l=!1,icon:a,id:c,placeholder:d="Select",maxHeight:h="300px",name:g,noOptionsMessage:p="No hay opciones disponibles",noResultsMessage:m="No se encontraron resultados",options:x=[],required:b=!1,placeholderInput:u="Buscar...",width:w="300px",fontSize:T="14px",fontSizeOptions:D="14px",position:z="absolute",...C}=e,{filteredOptions:k,isFocused:R,isOpen:L,searchQuery:V,setSearchQuery:_,selectedOption:f,dropdownRef:H,inputRef:U,searchInputRef:B,toggleDropdown:Z,handleOptionSelect:K,handleClear:ee,handleFocus:F,handleBlur:E,handleKeyDown:j,showSearch:y}=$0(e);v.useImperativeHandle(s,()=>({focus:()=>{var O;return(O=U.current)==null?void 0:O.focus()},blur:()=>{var O;return(O=U.current)==null?void 0:O.blur()},value:(f==null?void 0:f.value)||"",clear:()=>ee()}));const I=["bs-dropdown",l&&"bs-error",i&&"bs-disabled",L&&"bs-open",R&&"bs-focused",r].filter(Boolean).join(" "),P=["bs-dropdown-options",o].filter(Boolean).join(" ");return t.jsxs("div",{ref:H,className:I,...C,style:{width:w},children:[t.jsx("input",{ref:U,type:"hidden",id:c,name:g,value:(f==null?void 0:f.value)||"",required:b,disabled:i}),t.jsxs("div",{className:"bs-dropdown-header",onClick:Z,onFocus:F,onBlur:E,onKeyDown:j,role:"combobox","aria-expanded":L,"aria-haspopup":"listbox","aria-labelledby":`${c}-label`,"aria-disabled":i,tabIndex:i?-1:0,style:{fontSize:T},children:[t.jsx("span",{className:"bs-dropdown-value",style:{fontSize:T},children:(f==null?void 0:f.label)||d}),a?t.jsx(a,{className:`bs-icon ${L?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${L?"bs-arrow-up":"bs-arrow-down"}`})]}),L&&t.jsxs("div",{className:P,role:"listbox",style:{position:z},children:[y&&t.jsx("div",{className:"bs-search-container",children:t.jsx(at,{ref:B,inputProperties:{placeholder:u,size:{width:"100%",height:"28px"},type:"text",onChange:O=>_(O.target.value),onKeyDown:O=>{O.key==="Enter"&&k.length>0&&K(k[0])},fontStyle:"italic",value:V,style:{fontSize:T}}})}),t.jsx("ul",{className:"bs-options-list",style:{maxHeight:h},children:x.length===0?t.jsx("li",{className:"bs-no-options",children:p}):k.length===0?t.jsxs("li",{className:"bs-no-options",children:[m," ",V&&`"${V}"`]}):k.map((O,M)=>t.jsxs("li",{className:`bs-option ${ge.isEqual(f==null?void 0:f.value,O.value)?"bs-selected":""}`,onClick:()=>K(O),role:"option","aria-selected":ge.isEqual(f==null?void 0:f.value,O.value),style:{fontSize:D},children:[t.jsx("span",{className:"bs-option-label",style:{fontSize:D},children:O.label}),O.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:D},children:O.description})]},O.id||O.value||M))})]})]})});Bn.displayName="Select",Bn.propTypes={id:n.string,label:n.string,name:n.string,placeholder:n.string,options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string})),className:n.string,disabled:n.bool,dropdownClassName:n.string,error:n.bool,fontSize:n.string,icon:n.elementType,maxHeight:n.string,noOptionsMessage:n.string,noResultsMessage:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,required:n.bool,searchable:n.bool,placeholderInput:n.string,sortAlphabetically:n.bool,value:n.any,width:n.string,fontSizeOptions:n.string};const B0=e=>{const{options:s=[],value:r,onChange:i,onBlur:o,onFocus:l,sortAlphabetically:a=!0,searchable:c=!0,textSelectAll:d="Seleccionar Todo"}=e,[h,g]=v.useState([]),[p,m]=v.useState(!1),[x,b]=v.useState(!1),[u,w]=v.useState(""),[T,D]=v.useState([]),z=v.useRef(null),C=v.useRef(null),k=v.useRef(null),R=v.useMemo(()=>{const j=s;if(Array.isArray(j))return j.map(y=>({...y,group:null}));if(typeof j=="object"&&j!==null){const y=[];return Object.entries(j).forEach(([I,P])=>{Array.isArray(P)&&P.forEach(O=>{y.push({...O,group:I})})}),y}return[]},[s]),L=j=>j.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();v.useEffect(()=>{let j=[...R];a&&j.sort((y,I)=>(y.label||"").localeCompare(I.label||"")),g(j)},[R,a]),v.useEffect(()=>{r!=null?Array.isArray(r)?D(r):D([]):D([])},[r,s]),v.useEffect(()=>{if(!u.trim()){let y=[...R];a&&y.sort((I,P)=>(I.label||"").localeCompare(P.label||"")),g(y);return}const j=R.filter(y=>L(y.label).includes(L(u)));a&&j.sort((y,I)=>(y.label||"").localeCompare(I.label||"")),g(j)},[u,R,a]),v.useEffect(()=>{x?k.current&&setTimeout(()=>{var j;return(j=k.current)==null?void 0:j.focus()},50):w("")},[x]),v.useEffect(()=>{const j=y=>{z.current&&!z.current.contains(y.target)&&(b(!1),m(!1))};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]);const V=()=>{var j;e.disabled||(b(!x),x||(j=C.current)==null||j.focus())},_=j=>{D(y=>{const I=y.some(M=>ge.isEqual(M,j.value));let P;I?P=y.filter(M=>!ge.isEqual(M,j.value)):P=[...y,j.value];const O={target:{id:e.id,name:e.name,value:P,type:"select-multiple",checked:void 0,selectedOptions:P},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};return i==null||i(O),o==null||o(O),P})},f=()=>{const j=h.map(y=>y.value);D(y=>{const I=j.every(M=>y.some(A=>ge.isEqual(A,M)));let P;if(I)P=y.filter(M=>!j.some(A=>ge.isEqual(M,A)));else{const M=j.filter(A=>!y.some(q=>ge.isEqual(q,A)));P=[...y,...M]}const O={target:{id:e.id,name:e.name,value:P,type:"select-multiple",checked:void 0,selectedOptions:P},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};return i==null||i(O),o==null||o(O),P})},H=()=>{D([]),w("");const j={target:{id:e.id,name:e.name,value:[],type:"select-multiple",checked:void 0,selectedOptions:[]},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(j)},U=j=>{m(!0),l==null||l(j)},B=j=>{var y;(y=z.current)!=null&&y.contains(j.relatedTarget)||(m(!1),o==null||o(j))},Z=j=>{var y;if(!e.disabled)switch(j.key){case"Enter":case" ":x||(j.preventDefault(),b(!0));break;case"Escape":b(!1),(y=C.current)==null||y.focus();break;case"ArrowDown":case"ArrowUp":j.preventDefault(),x||b(!0);break}},K=v.useMemo(()=>c&&R.length>=Dt,[c,R.length]),ee=()=>T.length===0?e.placeholder||"Select":T.map(y=>{const I=R.find(P=>ge.isEqual(P.value,y));return I?I.label:""}).filter(Boolean).join(", "),F=j=>{const y=j.map(M=>M.value),P=y.every(M=>T.some(A=>ge.isEqual(A,M)))?T.filter(M=>!y.some(A=>ge.isEqual(M,A))):[...T,...y.filter(M=>!T.some(A=>ge.isEqual(A,M)))];D(P);const O={target:{id:e.id,name:e.name,value:P,type:"select-multiple",checked:void 0,selectedOptions:P},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(O),o==null||o(O)},E=h.length>0&&h.every(j=>T.some(y=>ge.isEqual(y,j.value)));return{filteredOptions:h,isFocused:p,isOpen:x,searchQuery:u,setSearchQuery:w,selectedOptions:T,dropdownRef:z,inputRef:C,searchInputRef:k,toggleDropdown:V,handleOptionSelect:_,handleSelectAll:f,handleSelectGroup:F,handleClear:H,handleFocus:U,handleBlur:B,handleKeyDown:Z,showSearch:K,getDisplayLabel:ee,allVisibleSelected:E,textSelectAll:d}},Fn=v.forwardRef((e,s)=>{const{className:r="",disabled:i=!1,dropdownClassName:o="",error:l=!1,fontSize:a="14px",fontSizeOptions:c="12px",icon:d,id:h,maxHeight:g="300px",name:p,noOptionsMessage:m="No hay opciones disponibles",noResultsMessage:x="No se encontraron resultados",options:b=[],required:u=!1,placeholderInput:w="Buscar...",width:T="300px",position:D="absolute",...z}=e,{filteredOptions:C,isFocused:k,isOpen:R,searchQuery:L,setSearchQuery:V,selectedOptions:_,dropdownRef:f,inputRef:H,searchInputRef:U,toggleDropdown:B,handleOptionSelect:Z,handleSelectAll:K,handleSelectGroup:ee,handleClear:F,handleFocus:E,handleBlur:j,handleKeyDown:y,showSearch:I,getDisplayLabel:P,allVisibleSelected:O,textSelectAll:M}=B0(e),A=C.reduce((W,X)=>{const G=X.group||"Ungrouped";return W[G]||(W[G]=[]),W[G].push(X),W},{});v.useImperativeHandle(s,()=>({focus:()=>{var W;return(W=H.current)==null?void 0:W.focus()},blur:()=>{var W;return(W=H.current)==null?void 0:W.blur()},value:_,clear:()=>F()}));const q=["bs-dropdown",l&&"bs-error",i&&"bs-disabled",R&&"bs-open",k&&"bs-focused",r].filter(Boolean).join(" "),$=["bs-dropdown-options",o].filter(Boolean).join(" ");return t.jsxs("div",{ref:f,className:q,...z,style:{width:T},children:[t.jsx("input",{ref:H,type:"hidden",id:h,name:p,value:JSON.stringify(_),required:u,disabled:i}),t.jsxs("div",{className:"bs-dropdown-header",onClick:B,onFocus:E,onBlur:j,onKeyDown:y,role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-labelledby":`${h}-label`,"aria-disabled":i,tabIndex:i?-1:0,style:{fontSize:a},children:[t.jsx("span",{className:"bs-dropdown-value",style:{fontSize:a},children:P()}),d?t.jsx(d,{className:`bs-icon ${R?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${R?"bs-arrow-up":"bs-arrow-down"}`})]}),R&&t.jsxs("div",{className:$,role:"listbox",style:{position:D},children:[I&&t.jsx("div",{className:"bs-search-container",children:t.jsx(at,{ref:U,inputProperties:{placeholder:w,size:{width:"100%",height:"28px"},type:"text",onChange:W=>V(W.target.value),onKeyDown:W=>{W.key==="Enter"&&C.length>0},fontStyle:"italic",value:L,style:{fontSize:a}}})}),C.length>0&&t.jsxs("div",{className:`bs-select-all ${O?"bs-select-all-all":""}`,style:{padding:"6px 0px"},children:[t.jsx(Le.Checkbox,{checked:O,onChange:W=>{W.stopPropagation(),K()},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsx("span",{style:{fontSize:a,cursor:"pointer"},onClick:K,children:M})]}),t.jsx("div",{className:"bs-options-list",style:{maxHeight:g},children:Object.keys(A).length===0?t.jsx("div",{className:"bs-no-options",children:b.length===0?m:x+(L?` "${L}"`:"")}):Object.entries(A).map(([W,X])=>t.jsxs("div",{style:{marginTop:W!=="Ungrouped"?"8px":"0px"},children:[W!=="Ungrouped"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bs-group-title",style:{fontSize:a,fontWeight:"bold",marginBottom:"8px",marginLeft:"10px"},children:W}),t.jsxs("div",{className:`bs-group-header ${X.every(G=>_.some(se=>ge.isEqual(se,G.value)))?"bs-select-all-all-header":""}`,children:[t.jsx(Le.Checkbox,{checked:X.every(G=>_.some(se=>ge.isEqual(se,G.value))),onChange:G=>{G.stopPropagation(),ee(X)},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsxs("span",{style:{fontSize:c,cursor:"pointer"},onClick:()=>ee(X),children:["Seleccionar ",W]})]}),X.map((G,se)=>t.jsxs("div",{className:`bs-option ${_.some(Q=>ge.isEqual(Q,G.value))?"bs-selected":""}`,style:{display:"flex",alignItems:"center",gap:"0px",padding:"6px 0px"},role:"option","aria-selected":_.some(Q=>ge.isEqual(Q,G.value)),children:[t.jsx(Le.Checkbox,{checked:_.some(Q=>ge.isEqual(Q,G.value)),onChange:Q=>{Q.stopPropagation(),Z(G)},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsx("span",{className:"bs-option-label",style:{fontSize:c,cursor:"pointer"},onClick:()=>Z(G),children:G.label}),G.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:c},children:G.description})]},G.id||G.value||se))]}),W==="Ungrouped"&&X.map((G,se)=>t.jsxs("div",{className:`bs-option ${_.some(Q=>ge.isEqual(Q,G.value))?"bs-selected":""}`,role:"option",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0px"},"aria-selected":_.some(Q=>ge.isEqual(Q,G.value)),children:[t.jsx(Le.Checkbox,{checked:_.some(Q=>ge.isEqual(Q,G.value)),onChange:Q=>{Q.stopPropagation(),Z(G)},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsx("span",{className:"bs-option-label",style:{fontSize:c,cursor:"pointer"},onClick:()=>Z(G),children:G.label}),G.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:c},children:G.description})]},G.id||G.value||se))]},W))})]})]})});Fn.displayName="SelectMultiple",Fn.propTypes={id:n.string,label:n.string,name:n.string,placeholder:n.string,options:n.oneOfType([n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string})),n.object]),className:n.string,disabled:n.bool,dropdownClassName:n.string,error:n.bool,fontSize:n.string,fontSizeOptions:n.string,icon:n.elementType,maxHeight:n.string,noOptionsMessage:n.string,noResultsMessage:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,required:n.bool,searchable:n.bool,placeholderInput:n.string,sortAlphabetically:n.bool,value:n.array,width:n.string,textSelectAll:n.string};const F0=e=>{const{options:s=[],value:r,onChange:i,onBlur:o,onFocus:l,sortAlphabetically:a=!1,searchable:c=!1}=e,[d,h]=v.useState(!1),[g,p]=v.useState(""),[m,x]=v.useState([]),[b,u]=v.useState(null),[w,T]=v.useState(!1),[D,z]=v.useState(null),[C,k]=v.useState({top:0,left:0}),R=v.useRef(null),L=v.useRef(null),V=v.useRef(null),_=E=>E.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();v.useEffect(()=>{let E=[...s];a&&E.sort((j,y)=>(j.label||"").localeCompare(y.label||"")),x(E)},[s,a]),v.useEffect(()=>{if(r!=null){const E=s.find(j=>ge.isEqual(j.value,r));u(E||null)}else u(null)},[r,s]),v.useEffect(()=>{if(!g.trim()){let j=[...s];a&&j.sort((y,I)=>(y.label||"").localeCompare(I.label||"")),x(j);return}const E=s.filter(j=>_(j.label).includes(_(g)));a&&E.sort((j,y)=>(j.label||"").localeCompare(y.label||"")),x(E)},[g,s,a]),v.useEffect(()=>{d?V.current&&setTimeout(()=>{var E;return(E=V.current)==null?void 0:E.focus()},50):p("")},[d]),v.useEffect(()=>{const E=j=>{R.current&&!R.current.contains(j.target)&&(h(!1),T(!1),z(null))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);const f=()=>{var E;e.disabled||(h(!d),d||(E=L.current)==null||E.focus())},H=E=>{if(E.children&&E.children.length>0)return;let j;ge.isEqual(b==null?void 0:b.value,E.value)?j=null:j=E,u(j),h(!1),z(null);const y={target:{id:e.id,name:e.name,value:(j==null?void 0:j.value)||null,type:"nested-select",checked:void 0,selectedOption:j,label:(j==null?void 0:j.label)||null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(y),o==null||o(y)},U=(E,j)=>{if(j.stopPropagation(),E.children&&E.children.length>0)if(D&&D.id===E.id)z(null);else{const y=j.currentTarget.getBoundingClientRect();k({top:y.top,left:y.right}),z(E)}else H(E)},B=()=>{u(null),p("");const E={target:{id:e.id,name:e.name,value:null,type:"select",checked:void 0,selectedOption:null,label:null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(E)},Z=E=>{T(!0),l==null||l(E)},K=E=>{var j;(j=R.current)!=null&&j.contains(E.relatedTarget)||(T(!1),o==null||o(E))},ee=E=>{var j;if(!e.disabled)switch(E.key){case"Enter":case" ":d||(E.preventDefault(),h(!0));break;case"Escape":h(!1),(j=L.current)==null||j.focus();break;case"ArrowDown":case"ArrowUp":E.preventDefault(),d||h(!0);break}},F=v.useMemo(()=>c&&s.length>=Dt,[c,s.length]);return{filteredOptions:m,isFocused:w,isOpen:d,searchQuery:g,setSearchQuery:p,selectedOption:b,activeOption:D,subMenuPosition:C,dropdownRef:R,inputRef:L,searchInputRef:V,toggleDropdown:f,handleOptionSelect:H,handleOptionClick:U,handleClear:B,handleFocus:Z,handleBlur:K,handleKeyDown:ee,showSearch:F}},Qs=v.forwardRef((e,s)=>{const{id:r,name:i,placeholder:o="Select",options:l=[],disabled:a=!1,error:c=!1,required:d=!1,className:h="",dropdownClassName:g="",placeholderInput:p="Buscar...",noOptionsMessage:m="No hay opciones disponibles",noResultsMessage:x="No se encontraron resultados",width:b="300px",maxHeight:u="300px",fontSize:w="14px",icon:T,...D}=e,{filteredOptions:z,isFocused:C,isOpen:k,searchQuery:R,setSearchQuery:L,selectedOption:V,activeOption:_,subMenuPosition:f,dropdownRef:H,inputRef:U,searchInputRef:B,toggleDropdown:Z,handleOptionSelect:K,handleOptionClick:ee,handleClear:F,handleFocus:E,handleBlur:j,handleKeyDown:y,showSearch:I}=F0(e);v.useImperativeHandle(s,()=>({focus:()=>{var M;return(M=U.current)==null?void 0:M.focus()},blur:()=>{var M;return(M=U.current)==null?void 0:M.blur()},value:(V==null?void 0:V.value)||"",clear:()=>F()}));const P=["bs-dropdown",c&&"bs-error",a&&"bs-disabled",k&&"bs-open",C&&"bs-focused",h].filter(Boolean).join(" "),O=["bs-dropdown-options",g].filter(Boolean).join(" ");return t.jsxs("div",{ref:H,className:P,...D,style:{width:b},children:[t.jsx("input",{ref:U,type:"hidden",id:r,name:i,value:(V==null?void 0:V.value)||"",required:d,disabled:a}),t.jsxs("div",{className:"bs-dropdown-header",onClick:Z,onFocus:E,onBlur:j,onKeyDown:y,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-labelledby":`${r}-label`,"aria-disabled":a,tabIndex:a?-1:0,style:{fontSize:w},children:[t.jsx("span",{className:"bs-dropdown-value",children:(V==null?void 0:V.label)||o}),T?t.jsx(T,{className:`bs-icon ${k?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${k?"bs-arrow-up":"bs-arrow-down"}`})]}),k&&t.jsxs("div",{className:O,role:"listbox",children:[I&&t.jsx("div",{className:"bs-search-container",children:t.jsx(at,{ref:B,inputProperties:{placeholder:p,size:{width:"100%",height:"28px"},type:"text",onChange:M=>L(M.target.value),onKeyDown:M=>{M.key==="Enter"&&z.length>0&&K(z[0])},onClick:M=>M.stopPropagation(),value:R,style:{fontSize:w}}})}),t.jsx("ul",{className:"bs-options-list",style:{maxHeight:u},children:l.length===0?t.jsx("li",{className:"bs-no-options",children:m}):z.length===0?t.jsxs("li",{className:"bs-no-options",children:[x," ",R&&`"${R}"`]}):z.map((M,A)=>t.jsxs("li",{className:`bs-option ${ge.isEqual(V==null?void 0:V.value,M.value)?"bs-selected":""} ${_&&ge.isEqual(_.value,M.value)?"bs-active":""}`,onClick:q=>ee(M,q),role:"option","aria-selected":ge.isEqual(V==null?void 0:V.value,M.value),"aria-haspopup":M.children&&M.children.length>0?"menu":void 0,"aria-expanded":!!(_&&ge.isEqual(_.value,M.value)),style:{fontSize:w},children:[t.jsx("span",{className:"bs-option-label",children:M.label}),M.description&&t.jsx("span",{className:"bs-option-description",children:M.description}),M.children&&M.children.length>0&&t.jsx("span",{className:"bs-option-arrow",children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:8,height:12,fill:"none",children:t.jsx("path",{fill:"#8598AD",fillRule:"evenodd",d:"M0 1.4 4.6 6 0 10.6 1.4 12l6-6-6-6L0 1.4Z",clipRule:"evenodd"})})})]},M.id||M.value||A))}),_&&_.children&&_.children.length>0&&t.jsx("div",{className:"bs-submenu",style:{position:"fixed",top:f.top,left:f.left,zIndex:9999,maxHeight:u},children:t.jsx("ul",{className:"bs-options-list",children:_.children.map((M,A)=>t.jsxs("li",{className:`bs-option ${ge.isEqual(V==null?void 0:V.value,M.value)?"bs-selected":""}`,onClick:q=>{q.stopPropagation(),K(M)},role:"option","aria-selected":ge.isEqual(V==null?void 0:V.value,M.value),style:{fontSize:w},children:[t.jsx("span",{className:"bs-option-label",children:M.label}),M.description&&t.jsx("span",{className:"bs-option-description",children:M.description})]},M.id||M.value||A))})})]})]})});Qs.displayName="SelectNested",Qs.propTypes={id:n.string,label:n.string,name:n.string,placeholder:n.string,options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string,children:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string}))})),className:n.string,disabled:n.bool,dropdownClassName:n.string,error:n.bool,fontSize:n.string,icon:n.elementType,maxHeight:n.string,noOptionsMessage:n.string,noResultsMessage:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,required:n.bool,searchable:n.bool,placeholderInput:n.string,sortAlphabetically:n.bool,value:n.any,width:n.string};const jo=e=>t.jsx(et,{...e,inputRadio:!0});jo.propTypes={size:n.string,options:n.array,label:n.string,onchange:n.func,error:n.bool};const wo=e=>{const{data:s,onChange:r,label:i,size:o,error:l,keyReset:a,fontSizeOptions:c="0.9vw",fontSizeTitleOptions:d="1vw",fontSizeLabel:h,disabled:g,maxHeightOptions:p,value:m,hasDivisions:x,fontSizeLabelText:b,fontSizeTooltip:u,heightTooltip:w,leftTooltip:T,tooltip:D,topTooltip:z,widthTooltip:C,isTooltipVisible:k,labelText:R,subLabelText:L}=e,[V,_]=v.useState(!1),f=v.useRef(null),[H,U]=v.useState(m||""),B=K=>{U(K),_(!1),r&&r(K)};v.useEffect(()=>{U("")},[a]);const Z=K=>{f.current&&!f.current.contains(K.target)&&_(!1)};return v.useEffect(()=>(document.addEventListener("mousedown",Z),()=>{document.removeEventListener("mousedown",Z)}),[]),t.jsxs("div",{ref:f,className:"relative",style:{width:o},children:[t.jsx(et,{label:H.label||i,onchange:()=>{},options:[],size:o,isOpen:V,setIsOpen:_,disabledClickOutside:!0,disabled:g,error:l,fontSizeLabel:h,fontSizeLabelText:b,fontSizeTooltip:u,heightTooltip:w,leftTooltip:T,tooltip:D,topTooltip:z,widthTooltip:C,isTooltipVisible:k,labelText:R,subLabelText:L}),V&&t.jsx("ul",{className:"item-filter",style:{width:"100%",maxHeight:p},children:s.map(K=>t.jsxs("div",{className:`item-group ${x?"border-bottom-select":""}`,style:{marginTop:"15px"},children:[t.jsx("h3",{style:{fontSize:d,fontWeight:"700"},children:K.title}),K.options.map(ee=>t.jsx("div",{onClick:()=>B(ee),className:"item",style:{padding:"15px 20px",width:"100%",fontSize:c,cursor:"pointer",fontWeight:"400"},children:ee.label},ee.label))]},K.title))})]})};wo.propTypes={data:n.array,onChange:n.func,label:n.string,size:n.string,error:n.bool,keyReset:n.number,fontSizeLabel:n.string,fontSizeOptions:n.string,disabled:n.bool,maxHeightOptions:n.string,value:n.string,fontSizeTitleOptions:n.string,hasDivisions:n.bool,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,labelText:n.string,subLabelText:n.string};const ko=e=>{const{id:s,onchange:r,label:i,colors:o,onChangeFunction:l,value:a,disabled:c}=e,[d,h]=v.useState(a||!1);v.useEffect(()=>{h(a||!1)},[a]);const g=x=>{c||(h(x.target.checked),r&&r(x.target.checked),l&&l({id:s,value:x.target.checked}))},p={height:"0",width:"0",visibility:"hidden",fontWeight:"500"},m={height:"0",width:"0",opacity:"0",position:"absolute"};return t.jsxs("div",{className:"switch-container",children:[i&&t.jsx("span",{className:"switch-label",children:d?"Activo":"Inactivo"}),t.jsxs("div",{children:[t.jsx("input",{className:"react-switch-checkbox",id:`react-switch-new-${s}`,type:"checkbox",checked:d,onChange:g,disabled:c,style:i?p:m}),t.jsx("label",{className:"react-switch-label",htmlFor:`react-switch-new-${s}`,style:{background:d?o.active:o.inactive},children:t.jsx("span",{className:"react-switch-button"})})]})]})};ko.propTypes={id:n.string,onchange:n.func,label:n.string,colors:n.shape({active:n.string,inactive:n.string}),onChangeFunction:n.func,value:n.bool,disabled:n.bool};const Co=({width:e,height:s,minheight:r,maxHeight:i,id:o,name:l,value:a,onChange:c,label:d,subLabel:h,placeholder:g,maxCharacters:p,fontSizeLabel:m,fontSize:x,fontSizeTooltip:b,heightTooltip:u,leftTooltip:w,tooltip:T,topTooltip:D,widthTooltip:z,isTooltipVisible:C,onChangeFunction:k})=>{const R=L=>{const{name:V,value:_}=L.target;c&&c({name:V,value:_,id:o}),k&&k(L)};return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"5px",width:e},children:[d&&t.jsx(Xt,{fontSizeTitle:m,fontSizeTooltip:b,heightTooltip:u,left:w,subTitle:h,title:d,tooltip:T,top:D,widthTooltip:z,isTooltipVisibleProp:C,marginBottom:"5px",htmlFor:o}),t.jsx("textarea",{name:l,id:o,value:a,onChange:R,placeholder:g,className:"text-area-library",maxLength:p,style:{width:e,height:s,minHeight:r,maxHeight:i,fontSize:x}}),p&&t.jsxs("div",{className:"max-characters-library",children:[p," caracteres"]})]})};Co.propTypes={width:n.string,height:n.string,minheight:n.string,maxHeight:n.string,id:n.string,name:n.string,value:n.string,onChange:n.func,label:n.string,subLabel:n.string,placeholder:n.string,maxCharacters:n.number,fontSizeLabel:n.string,fontSize:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,onChangeFunction:n.func};const So=({label:e,onchange:s,textSelect:r,width:i,labelText:o,subLabelText:l,fontSize:a})=>{const[c,d]=v.useState("00"),[h,g]=v.useState("00"),[p,m]=v.useState(!1),[x,b]=v.useState(e??"Hora Inicio"),u=v.useRef(),w=v.useRef(),T=Array.from({length:24},(R,L)=>L.toString().padStart(2,"0")),D=Array.from({length:60},(R,L)=>L.toString().padStart(2,"0"));v.useEffect(()=>{const R=L=>{w.current&&!w.current.contains(L.target)&&m(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[]);const z=()=>{m(!1);const R=`${c}:${h}`;b(R),s(R)},C=R=>{let L=R.target.value.replace(/\D/g,"");L.length>4&&(L=L.slice(0,4));let V=L;if(L.length>=3&&(V=`${L.slice(0,2)}:${L.slice(2)}`),b(V),V.length===5){const[_,f]=V.split(":");parseInt(_,10)>=0&&parseInt(_,10)<24&&parseInt(f,10)>=0&&parseInt(f,10)<60?(d(_),g(f),s(V)):b(`${c}:${h}`)}},k=()=>{m(!p),u.current.focus()};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",gap:"5px"},children:[o&&t.jsx("label",{className:"label-library",children:o}),l&&t.jsx("label",{className:"sub-label",children:l})]}),t.jsxs("div",{className:"time-picker-container",ref:w,style:{width:i},children:[t.jsxs("div",{className:"time-picker-input-wrapper",children:[t.jsx("input",{type:"text",ref:u,value:x,onChange:C,placeholder:"00:00",className:"time-picker-input",maxLength:5,style:{fontSize:a}}),t.jsx("button",{className:"time-picker-button",onClick:k,"aria-label":"Abrir selector de tiempo",children:t.jsx(Oi,{})})]}),p&&t.jsxs("div",{className:"time-picker-dropdown",children:[t.jsxs("div",{className:"time-columns",children:[t.jsx("div",{className:"time-column",children:T.map(R=>t.jsx("div",{className:`time-option ${c===R?"selected":""}`,onClick:()=>d(R),children:R},R))}),t.jsx("div",{className:"time-column",children:D.map(R=>t.jsx("div",{className:`time-option ${h===R?"selected":""}`,onClick:()=>g(R),children:R},R))})]}),t.jsx("button",{className:"ok-button",onClick:z,children:r??"Seleccionar"})]})]})]})};So.propTypes={label:n.string,onchange:n.func,textSelect:n.string,width:n.string,labelText:n.string,subLabelText:n.any,fontSize:n.string};const L0=pe.div`
379
+ `,lo=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:a,...c}=i,[d,h]=re.useState([]),g=re.useRef(0),p=re.useRef(null);re.useEffect(()=>{p.current&&(p.current(),p.current=null)},[d]);const m=re.useRef(!1),x=ec(),b=re.useRef(null),u=re.useRef(null),w=re.useCallback(C=>{const{pulsate:k,rippleX:$,rippleY:B,rippleSize:_,cb:V}=C;h(f=>[...f,t.jsx(s0,{classes:{ripple:$e(l.ripple,Xe.ripple),rippleVisible:$e(l.rippleVisible,Xe.rippleVisible),ripplePulsate:$e(l.ripplePulsate,Xe.ripplePulsate),child:$e(l.child,Xe.child),childLeaving:$e(l.childLeaving,Xe.childLeaving),childPulsate:$e(l.childPulsate,Xe.childPulsate)},timeout:Us,pulsate:k,rippleX:$,rippleY:B,rippleSize:_},g.current)]),g.current+=1,p.current=V},[l]),T=re.useCallback((C={},k={},$=()=>{})=>{const{pulsate:B=!1,center:_=o||k.pulsate,fakeElement:V=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&m.current){m.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(m.current=!0);const f=V?null:u.current,H=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,F,Z;if(_||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(H.width/2),F=Math.round(H.height/2);else{const{clientX:K,clientY:ee}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(K-H.left),F=Math.round(ee-H.top)}if(_)Z=Math.sqrt((2*H.width**2+H.height**2)/3),Z%2===0&&(Z+=1);else{const K=Math.max(Math.abs((f?f.clientWidth:0)-U),U)*2+2,ee=Math.max(Math.abs((f?f.clientHeight:0)-F),F)*2+2;Z=Math.sqrt(K**2+ee**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{w({pulsate:B,rippleX:U,rippleY:F,rippleSize:Z,cb:$})},x.start(X1,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:B,rippleX:U,rippleY:F,rippleSize:Z,cb:$})},[o,w,x]),D=re.useCallback(()=>{T({},{pulsate:!0})},[T]),z=re.useCallback((C,k)=>{if(x.clear(),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,x.start(0,()=>{z(C,k)});return}b.current=null,h($=>$.length>0?$.slice(1):$),p.current=k},[x]);return re.useImperativeHandle(r,()=>({pulsate:D,start:T,stop:z}),[D,T,z]),t.jsx(n0,{className:$e(Xe.root,l.root,a),ref:u,...c,children:t.jsx(qs,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(lo.propTypes={center:n.bool,classes:n.object,className:n.string});function r0(e){return rt("MuiButtonBase",e)}const i0=ht("MuiButtonBase",["root","disabled","focusVisible"]),o0=e=>{const{disabled:s,focusVisible:r,focusVisibleClassName:i,classes:o}=e,a=mt({root:["root",s&&"disabled",r&&"focusVisible"]},r0,o);return r&&i&&(a.root+=` ${i}`),a},l0=Ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,s)=>s.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${i0.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ao=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:a,className:c,component:d="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:x,LinkComponent:b="a",onBlur:u,onClick:w,onContextMenu:T,onDragLeave:D,onFocus:z,onFocusVisible:C,onKeyDown:k,onKeyUp:$,onMouseDown:B,onMouseLeave:_,onMouseUp:V,onTouchEnd:f,onTouchMove:H,onTouchStart:U,tabIndex:F=0,TouchRippleProps:Z,touchRippleRef:K,type:ee,...L}=i,E=re.useRef(null),j=_1(),y=is(j.ref,K),[I,R]=re.useState(!1);h&&I&&R(!1),re.useImperativeHandle(o,()=>({focusVisible:()=>{R(!0),E.current.focus()}}),[]);const O=j.shouldMount&&!g&&!h;re.useEffect(()=>{I&&m&&!g&&j.pulsate()},[g,m,I,j]);const M=lt(j,"start",B,p),A=lt(j,"stop",T,p),q=lt(j,"stop",D,p),W=lt(j,"stop",V,p),P=lt(j,"stop",te=>{I&&te.preventDefault(),_&&_(te)},p),X=lt(j,"start",U,p),G=lt(j,"stop",f,p),se=lt(j,"stop",H,p),Q=lt(j,"stop",te=>{qr(te.target)||R(!1),u&&u(te)},!1),he=ln(te=>{E.current||(E.current=te.currentTarget),qr(te.target)&&(R(!0),C&&C(te)),z&&z(te)}),le=()=>{const te=E.current;return d&&d!=="button"&&!(te.tagName==="A"&&te.href)},fe=ln(te=>{m&&!te.repeat&&I&&te.key===" "&&j.stop(te,()=>{j.start(te)}),te.target===te.currentTarget&&le()&&te.key===" "&&te.preventDefault(),k&&k(te),te.target===te.currentTarget&&le()&&te.key==="Enter"&&!h&&(te.preventDefault(),w&&w(te))}),_e=ln(te=>{m&&te.key===" "&&I&&!te.defaultPrevented&&j.stop(te,()=>{j.pulsate(te)}),$&&$(te),w&&te.target===te.currentTarget&&le()&&te.key===" "&&!te.defaultPrevented&&w(te)});let ke=d;ke==="button"&&(L.href||L.to)&&(ke=b);const Pe={};ke==="button"?(Pe.type=ee===void 0?"button":ee,Pe.disabled=h):(!L.href&&!L.to&&(Pe.role="button"),h&&(Pe["aria-disabled"]=h));const ce=is(r,E),oe={...i,centerRipple:l,component:d,disabled:h,disableRipple:g,disableTouchRipple:p,focusRipple:m,tabIndex:F,focusVisible:I},de=o0(oe);return t.jsxs(l0,{as:ke,className:$e(de.root,c),ownerState:oe,onBlur:Q,onClick:w,onContextMenu:A,onFocus:he,onKeyDown:fe,onKeyUp:_e,onMouseDown:M,onMouseLeave:P,onMouseUp:W,onDragLeave:q,onTouchEnd:G,onTouchMove:se,onTouchStart:X,ref:ce,tabIndex:h?-1:F,type:ee,...Pe,...L,children:[a,O?t.jsx(lo,{ref:y,center:l,...Z}):null]})});function lt(e,s,r,i=!1){return ln(o=>(r&&r(o),i||e[s](o),!0))}process.env.NODE_ENV!=="production"&&(ao.propTypes={action:on,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:Za,disabled:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,href:n.any,LinkComponent:n.elementType,onBlur:n.func,onClick:n.func,onContextMenu:n.func,onDragLeave:n.func,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onKeyUp:n.func,onMouseDown:n.func,onMouseLeave:n.func,onMouseUp:n.func,onTouchEnd:n.func,onTouchMove:n.func,onTouchStart:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string])});function a0(e){return rt("PrivateSwitchBase",e)}ht("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function Gt(e,s){const{className:r,elementType:i,ownerState:o,externalForwardedProps:l,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=s,{component:h,slots:g={[e]:void 0},slotProps:p={[e]:void 0},...m}=l,x=g[e]||i,b=ac(p[e],o),{props:{component:u,...w},internalRef:T}=lc({className:r,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:b}),D=is(T,b==null?void 0:b.ref,s.ref),z=e==="root"?u||h:u,C=ic(x,{...e==="root"&&!h&&!g[e]&&a,...e!=="root"&&!g[e]&&a,...w,...z&&!c&&{as:z},...z&&c&&{component:z},ref:D},o);return[x,C]}const c0=e=>{const{classes:s,checked:r,disabled:i,edge:o}=e,l={root:["root",r&&"checked",i&&"disabled",o&&`edge${Ie(o)}`],input:["input"]};return mt(l,a0,s)},d0=Ve(ao,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:s})=>e==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:s})=>e==="end"&&s.size!=="small",style:{marginRight:-12}}]}),u0=Ve("input",{name:"MuiSwitchBase",shouldForwardProp:Zt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zs=re.forwardRef(function(s,r){const{autoFocus:i,checked:o,checkedIcon:l,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:h=!1,icon:g,id:p,inputProps:m,inputRef:x,name:b,onBlur:u,onChange:w,onFocus:T,readOnly:D,required:z=!1,tabIndex:C,type:k,value:$,slots:B={},slotProps:_={},...V}=s,[f,H]=Qa({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),U=Ls(),F=A=>{T&&T(A),U&&U.onFocus&&U.onFocus(A)},Z=A=>{u&&u(A),U&&U.onBlur&&U.onBlur(A)},K=A=>{if(A.nativeEvent.defaultPrevented)return;const q=A.target.checked;H(q),w&&w(A,q)};let ee=c;U&&typeof ee>"u"&&(ee=U.disabled);const L=k==="checkbox"||k==="radio",E={...s,checked:f,disabled:ee,disableFocusRipple:d,edge:h},j=c0(E),y={slots:B,slotProps:{input:m,..._}},[I,R]=Gt("root",{ref:r,elementType:d0,className:j.root,shouldForwardComponentProp:!0,externalForwardedProps:{...y,component:"span",...V},getSlotProps:A=>({...A,onFocus:q=>{var W;(W=A.onFocus)==null||W.call(A,q),F(q)},onBlur:q=>{var W;(W=A.onBlur)==null||W.call(A,q),Z(q)}}),ownerState:E,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:ee,role:void 0,tabIndex:null}}),[O,M]=Gt("input",{ref:x,elementType:u0,className:j.input,externalForwardedProps:y,getSlotProps:A=>({onChange:q=>{var W;(W=A.onChange)==null||W.call(A,q),K(q)}}),ownerState:E,additionalProps:{autoFocus:i,checked:o,defaultChecked:a,disabled:ee,id:L?p:void 0,name:b,readOnly:D,required:z,tabIndex:C,type:k,...k==="checkbox"&&$===void 0?{}:{value:$}}});return t.jsxs(I,{...R,children:[t.jsx(O,{...M}),f?l:g]})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={autoFocus:n.bool,checked:n.bool,checkedIcon:n.node.isRequired,classes:n.object,className:n.string,defaultChecked:n.bool,disabled:n.bool,disableFocusRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node.isRequired,id:n.string,inputProps:n.object,inputRef:on,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,readOnly:n.bool,required:n.bool,slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.string.isRequired,value:n.any});const h0=Fe(t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),f0=Fe(t.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),p0=Ve("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Zt})({position:"relative",display:"flex"}),g0=Ve(h0,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),m0=Ve(f0,{name:"MuiRadioButtonIcon"})(bt(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Ys(e){const{checked:s=!1,classes:r={},fontSize:i}=e,o={...e,checked:s};return t.jsxs(p0,{className:r.root,ownerState:o,children:[t.jsx(g0,{fontSize:i,className:r.background,ownerState:o}),t.jsx(m0,{fontSize:i,className:r.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Ys.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});const co=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(co.displayName="RadioGroupContext");function y0(){return re.useContext(co)}function x0(e){return rt("MuiRadio",e)}const uo=ht("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);function b0(e){return typeof e.main=="string"}function v0(e,s=[]){if(!b0(e))return!1;for(const r of s)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Kt(e=[]){return([,s])=>s&&v0(s,e)}const j0=e=>{const{classes:s,color:r,size:i}=e,o={root:["root",`color${Ie(r)}`,i!=="medium"&&`size${Ie(i)}`]};return{...s,...mt(o,x0,s)}},w0=Ve(Zs,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.size!=="medium"&&s[`size${Ie(r.size)}`],s[`color${Ie(r.color)}`]]}})(bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${uo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[s].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[s].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s,disabled:!1},style:{[`&.${uo.checked}`]:{color:(e.vars||e).palette[s].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function k0(e,s){return typeof s=="object"&&s!==null?e===s:String(e)===String(s)}const C0=t.jsx(Ys,{checked:!0}),S0=t.jsx(Ys,{}),ho=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiRadio"}),{checked:o,checkedIcon:l=C0,color:a="primary",icon:c=S0,name:d,onChange:h,size:g="medium",className:p,disabled:m,disableRipple:x=!1,slots:b={},slotProps:u={},inputProps:w,...T}=i,D=Ls();let z=m;D&&typeof z>"u"&&(z=D.disabled),z??(z=!1);const C={...i,disabled:z,disableRipple:x,color:a,size:g},k=j0(C),$=y0();let B=o;const _=Ga(h,$&&$.onChange);let V=d;$&&(typeof B>"u"&&(B=k0($.value,i.value)),typeof V>"u"&&(V=$.name));const f=u.input??w,[H,U]=Gt("root",{ref:r,elementType:w0,className:$e(k.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:u,...T},getSlotProps:F=>({...F,onChange:(Z,...K)=>{var ee;(ee=F.onChange)==null||ee.call(F,Z,...K),_(Z,...K)}}),ownerState:C,additionalProps:{type:"radio",icon:re.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:re.cloneElement(l,{fontSize:l.props.fontSize??g}),disabled:z,name:V,checked:B,slots:b,slotProps:{input:typeof f=="function"?f(C):f}}});return t.jsx(H,{...U,classes:k})});process.env.NODE_ENV!=="production"&&(ho.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,inputProps:n.object,inputRef:on,name:n.string,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function T0(e){return rt("MuiTypography",e)}ht("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const M0={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},z0=b1(),E0=e=>{const{align:s,gutterBottom:r,noWrap:i,paragraph:o,variant:l,classes:a}=e,c={root:["root",l,e.align!=="inherit"&&`align${Ie(s)}`,r&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return mt(c,T0,a)},N0=Ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.variant&&s[r.variant],r.align!=="inherit"&&s[`align${Ie(r.align)}`],r.noWrap&&s.noWrap,r.gutterBottom&&s.gutterBottom,r.paragraph&&s.paragraph]}})(bt(({theme:e})=>{var s;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((s=e.palette)==null?void 0:s.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Ie(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),fo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gs=re.forwardRef(function(s,r){const{color:i,...o}=vt({props:s,name:"MuiTypography"}),l=!M0[i],a=z0({...o,...l&&{color:i}}),{align:c="inherit",className:d,component:h,gutterBottom:g=!1,noWrap:p=!1,paragraph:m=!1,variant:x="body1",variantMapping:b=fo,...u}=a,w={...a,align:c,color:i,className:d,component:h,gutterBottom:g,noWrap:p,paragraph:m,variant:x,variantMapping:b},T=h||(m?"p":b[x]||fo[x])||"span",D=E0(w);return t.jsx(N0,{as:T,ref:r,className:$e(D.root,d),...u,ownerState:w,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...u.style}})});process.env.NODE_ENV!=="production"&&(Gs.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),n.string]),component:n.elementType,gutterBottom:n.bool,noWrap:n.bool,paragraph:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),n.string]),variantMapping:n.object});function D0(e){return rt("MuiFormControlLabel",e)}const Qt=ht("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function O0({props:e,states:s,muiFormControl:r}){return s.reduce((i,o)=>(i[o]=e[o],r&&typeof e[o]>"u"&&(i[o]=r[o]),i),{})}const A0=e=>{const{classes:s,disabled:r,labelPlacement:i,error:o,required:l}=e,a={root:["root",r&&"disabled",`labelPlacement${Ie(i)}`,o&&"error",l&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return mt(a,D0,s)},I0=Ve("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[{[`& .${Qt.label}`]:s.label},s.root,s[`labelPlacement${Ie(r.labelPlacement)}`]]}})(bt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qt.disabled}`]:{cursor:"default"},[`& .${Qt.label}`]:{[`&.${Qt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:s})=>s==="start"||s==="top"||s==="bottom",style:{marginLeft:16}}]}))),R0=Ve("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,s)=>s.asterisk})(bt(({theme:e})=>({[`&.${Qt.error}`]:{color:(e.vars||e).palette.error.main}}))),po=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:a={},control:c,disabled:d,disableTypography:h,inputRef:g,label:p,labelPlacement:m="end",name:x,onChange:b,required:u,slots:w={},slotProps:T={},value:D,...z}=i,C=Ls(),k=d??c.props.disabled??(C==null?void 0:C.disabled),$=u??c.props.required,B={disabled:k,required:$};["checked","name","onChange","value","inputRef"].forEach(K=>{typeof c.props[K]>"u"&&typeof i[K]<"u"&&(B[K]=i[K])});const _=O0({props:i,muiFormControl:C,states:["error"]}),V={...i,disabled:k,labelPlacement:m,required:$,error:_.error},f=A0(V),H={slots:w,slotProps:{...a,...T}},[U,F]=Gt("typography",{elementType:Gs,externalForwardedProps:H,ownerState:V});let Z=p;return Z!=null&&Z.type!==Gs&&!h&&(Z=t.jsx(U,{component:"span",...F,className:$e(f.label,F==null?void 0:F.className),children:Z})),t.jsxs(I0,{className:$e(f.root,l),ownerState:V,ref:r,...z,children:[re.cloneElement(c,B),$?t.jsxs("div",{children:[Z,t.jsxs(R0,{ownerState:V,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}):Z]})});process.env.NODE_ENV!=="production"&&(po.propTypes={checked:n.bool,classes:n.object,className:n.string,componentsProps:n.shape({typography:n.object}),control:n.element.isRequired,disabled:n.bool,disableTypography:n.bool,inputRef:on,label:n.node,labelPlacement:n.oneOf(["bottom","end","start","top"]),name:n.string,onChange:n.func,required:n.bool,slotProps:n.shape({typography:n.oneOfType([n.func,n.object])}),slots:n.shape({typography:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const Ks=e=>{const{inputProperties:s,label:r,checked:i,onChange:o,fontSize:l}=e;return t.jsx(po,{label:r,sx:{margin:"0px","& .MuiTypography-root":{fontSize:l||"1vw"}},control:t.jsx(ho,{...s,checked:i,onChange:o,sx:{"&.Mui-checked":{color:"#0047ab"}}})})};Ks.propTypes={inputProperties:n.object,label:n.string};const at=v.forwardRef((e,s)=>{const[r,i]=v.useState(!1),{inputProperties:o}=e,l=a=>{o!=null&&o.handleChange&&typeof o.handleChange=="function"?o.handleChange(a):o!=null&&o.onChange&&typeof o.onChange=="function"&&o.onChange(a)};return t.jsxs(vs,{isfocused:r,style:{...o==null?void 0:o.size},children:[t.jsx(js,{ref:s,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:l,fontStyle:o==null?void 0:o.fontStyle,...o}),t.jsx(M1,{isfocused:r})]})});at.displayName="InputSearch",at.propTypes={inputProperties:n.object};const Xt=({title:e,tooltip:s,top:r,left:i,fontSizeTitle:o,fontSizeTooltip:l,widthTooltip:a,heightTooltip:c,marginTop:d,marginBottom:h,style:g,isTooltipVisibleProp:p,fontWeight:m="700",fontSizeSubTitle:x="1vw",subTitle:b,htmlFor:u})=>{const[w,T]=v.useState(p||!1),D=()=>{T(!0)},z=()=>{T(!1)};return t.jsxs("label",{htmlFor:u,className:"flex align-items-center",style:{...g,marginTop:d,marginBottom:h,display:"flex",alignItems:"center",gap:"5px"},children:[t.jsx("p",{className:"flex align-items-center",style:{fontSize:o,fontWeight:m,color:"#2F3131"},children:e}),b&&t.jsx("p",{style:{fontSize:x,color:"#2F3131"},className:"sub-label",children:b}),s&&t.jsxs("div",{style:{position:"relative",width:"24px",height:"26px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:D,onMouseLeave:z,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:26,fill:"none",viewBox:"0 0 24 26",children:t.jsx("path",{fill:"#21459C",d:"M12 2.43c-2.652 0-5.196 1.112-7.071 3.091S2 10.183 2 12.981s1.054 5.482 2.929 7.46c1.875 1.979 4.419 3.09 7.071 3.09s5.196-1.111 7.071-3.09C20.946 18.463 22 15.78 22 12.982s-1.054-5.481-2.929-7.46c-1.875-1.979-4.419-3.09-7.071-3.09Zm1 15.826h-2v-6.33h2v6.33Zm0-8.44h-2v-2.11h2v2.11Z"})}),w&&t.jsx("p",{style:{position:"absolute",width:a,height:c,display:"flex",alignItems:"center",justifyContent:"center",background:"white",left:i,border:"1px solid #707070",padding:"5px",borderRadius:"10px",color:"#707070",fontWeight:"400",fontSize:l,top:r,zIndex:1e3},children:s})]})]})};Xt.propTypes={title:n.string||n.any,tooltip:n.string||n.node||n.array||n.element||n.elementType,top:n.string||n.any,left:n.string||n.any,fontSizeTitle:n.string||n.any,fontSizeTooltip:n.string||n.any,widthTooltip:n.string||n.any,heightTooltip:n.string||n.any,marginTop:n.string||n.any,marginBottom:n.string||n.any,style:n.object||n.any,isTooltipVisibleProp:n.bool||n.any,fontWeight:n.string||n.any,fontSizeSubTitle:n.string||n.any,subTitle:n.string||n.any,htmlFor:n.string||n.any};const Dt=4,et=e=>{const{size:s,label:r,options:i,onchange:o,error:l,inputRadio:a,sizeOptions:c,heightOptions:d="auto",maxHeightOptions:h="auto",isOpen:g,setIsOpen:p,disabledClickOutside:m,keyReset:x,value:b,color:u="white",fontSizeLabel:w="1vw",fontSizeOptions:T="0.9vw",border:D,backgroundColor:z,disableColorOpen:C,disabled:k=!1,Icon:$,displayOptions:B,height:_,paddingDropdownHeader:V,widthIcon:f,heightIcon:H,placeholderInputSearch:U="Buscar...",borderRadiusRight:F="4px",borderRadiusLeft:Z="4px",labelText:K,subLabelText:ee,gap:L="0",justifyContent:E="flex-start",id:j,fontSizeLabelText:y,fontSizeTooltip:I,heightTooltip:R,leftTooltip:O,tooltip:M,topTooltip:A,widthTooltip:q,isTooltipVisible:W,position:P="absolute",withoutOptions:X=!1,sortAlphabetically:G=!0}=e,[se,Q]=v.useState(i),[he,le]=v.useState(i),[fe,_e]=v.useState(!1),ke=g!==void 0?g:fe,Pe=p!==void 0?p:_e,[ce,oe]=v.useState(""),de=v.useRef(null),te=()=>!k&&Pe(!ke);v.useEffect(()=>{if(b!=null)if(b!==""){const ae=i.find(Te=>Te.value===b||Te.label===b);oe(ae?ae.label:b)}else oe("")},[b,i]),v.useEffect(()=>{const ae=G?[...i].sort((Te,Ge)=>{var st;return(st=Te.label)==null?void 0:st.localeCompare(Ge.label)}):[...i];Q(ae),le(ae)},[i,G]);const ie=ae=>{oe(ae.label),Pe(!1),o&&o({...ae,id:j})},[ze,Ne]=v.useState(""),De=ae=>{const Te=ae.target.value;Ne(Te);const Ge=se.filter(wt=>wt.label.toLowerCase().includes(Te.toLowerCase())),st=G?Ge.sort((wt,mr)=>{var Un;return(Un=wt.label)==null?void 0:Un.localeCompare(mr.label)}):Ge;le(st)};return v.useEffect(()=>{if(m)return;const ae=Te=>{de.current&&!de.current.contains(Te.target)&&Pe(!1)};return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[Pe,de,m]),v.useEffect(()=>{x!==void 0&&b==null&&oe("")},[x,b]),v.useEffect(()=>{ke||(le(se),Ne(""))},[ke,se]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:L,justifyContent:E},children:[K&&t.jsx(Xt,{fontSizeTitle:y,fontSizeTooltip:I,heightTooltip:R,left:O,subTitle:ee,title:K,tooltip:M,top:A,widthTooltip:q,isTooltipVisibleProp:W,marginBottom:"5px"}),t.jsxs("div",{ref:de,className:`dropdown ${l?"error":""} ${ke&&!C?"open":""} ${k?"disabled":""}`,style:{width:s},children:[t.jsxs("div",{className:`dropdown-header ${u}`,onClick:te,role:"button","aria-haspopup":"listbox","aria-expanded":ke,style:{border:D,backgroundColor:z,cursor:k?"not-allowed":"pointer",opacity:k?.5:1,padding:V,height:_,borderTopRightRadius:F,borderBottomRightRadius:F,borderTopLeftRadius:Z,borderBottomLeftRadius:Z},children:[t.jsx("span",{style:{fontSize:w},children:ce||r}),$?t.jsx($,{className:`icon-basicSelect ${ke?"up":"down"}`,style:{width:f,height:H}}):t.jsx("i",{className:`arrow-${u} ${ke?"up":"down"}`})]}),ke&&!X&&t.jsxs("ul",{className:`dropdown-options ${u} ${P}`,role:"listbox",id:`dropdown-options-basicSelect ${j}`,style:{width:c||"100%",height:d,maxHeight:h,display:B},children:[i.length>=Dt&&i.length>0&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(at,{inputProperties:{placeholder:U,size:{width:"100%",height:"28px"},type:"text",onChange:ae=>De(ae),fontStyle:"italic"}})}),i.length===0&&!X&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:T,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"}),he.length===0&&ze.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:T,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',ze,'"']}):he.map((ae,Te)=>t.jsxs("li",{onClick:()=>ie(ae),role:"option",style:{padding:a?"5px 0":"15px",fontSize:T},className:"flex align-center flex-wrap",children:[t.jsxs("div",{className:"flex align-center",style:{fontWeight:"400"},children:[a&&t.jsx(Ks,{inputProperties:{checked:ce===ae.label,onChange:()=>ie(ae)}}),ae.label]}),(ae==null?void 0:ae.description)&&t.jsx(A1,{children:ae==null?void 0:ae.description})]},ae.id||Te))]})]})]})};et.propTypes={size:n.string,options:n.array,label:n.string,onchange:n.func,error:n.bool,inputRadio:n.bool,sizeOptions:n.string,heightOptions:n.string,isOpen:n.bool,setIsOpen:n.func,disabledClickOutside:n.bool,keyReset:n.number,value:n.string,maxHeightOptions:n.string,color:n.oneOf(["white","grey"]),fontSizeLabel:n.string,fontSizeOptions:n.string,border:n.string,backgroundColor:n.string,disableColorOpen:n.bool,disabled:n.bool,Icon:n.elementType||n.element||n.func||n.node||n.object||n.any,displayOptions:n.string,height:n.string,paddingDropdownHeader:n.string,widthIcon:n.string,heightIcon:n.string,placeholderInputSearch:n.string,borderRadiusRight:n.string,borderRadiusLeft:n.string,labelText:n.string,subLabelText:n.any,gap:n.string,justifyContent:n.string,id:n.string,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,position:n.string,withoutOptions:n.bool,sortAlphabetically:n.bool};const P0=e=>t.jsx(et,{color:"grey",...e}),go=e=>{const{inputProperties:s,size:r,height:i="200px"}=e,[o,l]=v.useState(0),a=c=>{l(c.target.value.length),s.onChange&&s.onChange(c)};return t.jsxs(R1,{style:{width:r,height:i},children:[t.jsx("textarea",{...s,maxLength:220,onChange:a}),t.jsxs("p",{children:[o,"/220"]})]})};go.propTypes={inputProperties:n.object,size:n.string,height:n.string,handleChange:n.func};const mo=({width:e,fontSize:s,onchange:r})=>{const[i,o]=v.useState(!1),[l,a]=v.useState(""),c=v.useRef(null),d=x=>{x.preventDefault(),o(!0)},h=x=>{x.preventDefault(),o(!1)},g=x=>{if(x.preventDefault(),o(!1),x.dataTransfer.files&&x.dataTransfer.files.length>0){const b=x.dataTransfer.files[0];r(b),a(b.name)}},p=x=>{if(x.target.files&&x.target.files.length>0){const b=x.target.files[0];r(b),a(b.name)}},m=()=>{var x;(x=c.current)==null||x.click()};return t.jsxs("div",{className:`drag-drop-upload ${i?"dragging":""}`,onDragOver:d,onDragLeave:h,onDrop:g,onClick:m,style:{width:e},children:[t.jsx(Mn,{}),l?t.jsx("p",{className:"upload-text file-name",style:{fontSize:s},children:l}):t.jsxs("p",{className:"upload-text",style:{fontSize:s},children:[t.jsx("span",{children:"Seleccione archivo"})," o arrastre hasta aquí (word, excel, png, jpg o pdf)"]}),t.jsx("input",{type:"file",ref:c,onChange:p,style:{display:"none"},accept:".pdf,.doc,.docx,.xlsx,.png,.jpg,.jpeg"})]})};mo.propTypes={width:n.string,fontSize:n.string,onchange:n.func};const yo=e=>t.jsx("button",{className:"button-search",...e,children:t.jsx(z1,{})}),xo=e=>{const[s,r]=v.useState(!1),[i,o]=v.useState(""),{label:l,inputProperties:a,error:c,fontSizeLabel:d,borderRadiusRight:h="4px",borderRadiusLeft:g="4px"}=e,p=x=>{o(x.target.value),a.handleChange(x)},m=x=>{x.preventDefault();const b={target:{value:i,id:a.id||"text-input"},preventDefault:()=>{}};a.handleChange(b)};return t.jsxs("form",{style:{...a==null?void 0:a.size},onSubmit:m,children:[l&&t.jsx(E1,{htmlFor:a.id||"text-input",style:{fontSize:d},children:l}),t.jsxs(vs,{isfocused:s,haserror:c,disabled:a.disabled,style:{width:"100%",position:"relative",borderTopRightRadius:h,borderBottomRightRadius:h,borderTopLeftRadius:g,borderBottomLeftRadius:g},children:[t.jsx(js,{onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:p,value:i,...a}),t.jsx("div",{style:{display:"flex",alignItems:"center",position:"absolute",right:"0px",height:"100%"},children:t.jsx(yo,{disabled:a.disabled})})]}),c&&t.jsx(Ti,{children:c})]})};xo.propTypes={label:n.string,inputProperties:n.object,error:n.bool,fontSizeLabel:n.string,borderRadiusRight:n.string,borderRadiusLeft:n.string};const W0=()=>{const[e,s]=v.useState(15),r=()=>{s(l=>l+1)},i=()=>{s(l=>l-1)},o=l=>{const a=parseInt(l.target.value);isNaN(a)||s(a)};return t.jsxs("div",{className:"number-spinner",children:[t.jsx("input",{type:"number",value:e,onChange:o,className:"number-input"}),t.jsxs("div",{className:"spinner-buttons",children:[t.jsx("button",{onClick:r,className:"spinner-button up",children:"▲"}),t.jsx("button",{onClick:i,className:"spinner-button down",children:"▼"})]})]})},bo=({options:e,value:s,onChange:r,width:i,disabled:o,height:l,widthIcon:a,heightIcon:c,keyReset:d,fontSize:h})=>{const g=({value:m})=>{r(m)},p=m=>m.map(x=>({label:x.toString(),value:x}));return t.jsx(et,{label:s,onchange:g,options:p(e),Icon:Ui,size:i,disabled:o,paddingDropdownHeader:"0 0.5vw",height:l,widthIcon:a,heightIcon:c,keyReset:d,sortAlphabetically:!1,fontSizeLabel:h})};bo.propTypes={options:n.array,value:n.any,onChange:n.func,disabled:n.bool,width:n.string,height:n.string,widthIcon:n.string,heightIcon:n.string,keyReset:n.number,fontSize:n.string};const vo=e=>{var r,i,o;const{inputProperties:s}=e;return t.jsxs(N1,{style:{...s==null?void 0:s.size},isSuccessful:(r=s==null?void 0:s.state)==null?void 0:r.success,children:[t.jsx(D1,{...s}),((i=s==null?void 0:s.state)==null?void 0:i.error)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(Mi,{children:"*"})}),((o=s==null?void 0:s.state)==null?void 0:o.success)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(Mi,{style:{color:"#009470",fontSize:"15px"},children:"✔"})})]})};vo.propTypes={inputProperties:n.object};const $0=e=>{const{options:s=[],value:r,onChange:i,onBlur:o,onFocus:l,sortAlphabetically:a=!0,searchable:c=!0}=e,[d,h]=v.useState([]),[g,p]=v.useState(!1),[m,x]=v.useState(!1),[b,u]=v.useState(""),[w,T]=v.useState(null),D=v.useRef(null),z=v.useRef(null),C=v.useRef(null),k=F=>F.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();v.useEffect(()=>{let F=[...s];a&&F.sort((Z,K)=>(Z.label||"").localeCompare(K.label||"")),h(F)},[s,a]),v.useEffect(()=>{if(r!=null){const F=s.find(Z=>ge.isEqual(Z.value,r));T(F||null)}else T(null)},[r,s]),v.useEffect(()=>{if(!b.trim()){let Z=[...s];a&&Z.sort((K,ee)=>(K.label||"").localeCompare(ee.label||"")),h(Z);return}const F=s.filter(Z=>k(Z.label).includes(k(b)));a&&F.sort((Z,K)=>(Z.label||"").localeCompare(K.label||"")),h(F)},[b,s,a]),v.useEffect(()=>{m?C.current&&setTimeout(()=>{var F;return(F=C.current)==null?void 0:F.focus()},50):u("")},[m]),v.useEffect(()=>{const F=Z=>{D.current&&!D.current.contains(Z.target)&&(x(!1),p(!1))};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]);const $=()=>{var F;e.disabled||(x(!m),m||(F=z.current)==null||F.focus())},B=F=>{let Z;ge.isEqual(w==null?void 0:w.value,F.value)?Z=null:Z=F,T(Z),x(!1);const K={target:{id:e.id,name:e.name,value:(Z==null?void 0:Z.value)||null,type:"select",checked:void 0,selectedOption:Z,label:(Z==null?void 0:Z.label)||null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(K),o==null||o(K)},_=()=>{T(null),u("");const F={target:{id:e.id,name:e.name,value:null,type:"select",checked:void 0,selectedOption:null,label:null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(F)},V=F=>{p(!0),l==null||l(F)},f=F=>{var Z;(Z=D.current)!=null&&Z.contains(F.relatedTarget)||(p(!1),o==null||o(F))},H=F=>{var Z;if(!e.disabled)switch(F.key){case"Enter":case" ":m||(F.preventDefault(),x(!0));break;case"Escape":x(!1),(Z=z.current)==null||Z.focus();break;case"ArrowDown":case"ArrowUp":F.preventDefault(),m||x(!0);break}},U=v.useMemo(()=>c&&s.length>=Dt,[c,s.length]);return{filteredOptions:d,isFocused:g,isOpen:m,searchQuery:b,setSearchQuery:u,selectedOption:w,dropdownRef:D,inputRef:z,searchInputRef:C,toggleDropdown:$,handleOptionSelect:B,handleClear:_,handleFocus:V,handleBlur:f,handleKeyDown:H,showSearch:U}},Bn=v.forwardRef((e,s)=>{const{className:r="",disabled:i=!1,dropdownClassName:o="",error:l=!1,icon:a,id:c,placeholder:d="Select",maxHeight:h="300px",name:g,noOptionsMessage:p="No hay opciones disponibles",noResultsMessage:m="No se encontraron resultados",options:x=[],required:b=!1,placeholderInput:u="Buscar...",width:w="300px",fontSize:T="14px",fontSizeOptions:D="14px",position:z="absolute",...C}=e,{filteredOptions:k,isFocused:$,isOpen:B,searchQuery:_,setSearchQuery:V,selectedOption:f,dropdownRef:H,inputRef:U,searchInputRef:F,toggleDropdown:Z,handleOptionSelect:K,handleClear:ee,handleFocus:L,handleBlur:E,handleKeyDown:j,showSearch:y}=$0(e);v.useImperativeHandle(s,()=>({focus:()=>{var O;return(O=U.current)==null?void 0:O.focus()},blur:()=>{var O;return(O=U.current)==null?void 0:O.blur()},value:(f==null?void 0:f.value)||"",clear:()=>ee()}));const I=["bs-dropdown",l&&"bs-error",i&&"bs-disabled",B&&"bs-open",$&&"bs-focused",r].filter(Boolean).join(" "),R=["bs-dropdown-options",o].filter(Boolean).join(" ");return t.jsxs("div",{ref:H,className:I,...C,style:{width:w},children:[t.jsx("input",{ref:U,type:"hidden",id:c,name:g,value:(f==null?void 0:f.value)||"",required:b,disabled:i}),t.jsxs("div",{className:"bs-dropdown-header",onClick:Z,onFocus:L,onBlur:E,onKeyDown:j,role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-labelledby":`${c}-label`,"aria-disabled":i,tabIndex:i?-1:0,style:{fontSize:T},children:[t.jsx("span",{className:"bs-dropdown-value",style:{fontSize:T},children:(f==null?void 0:f.label)||d}),a?t.jsx(a,{className:`bs-icon ${B?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${B?"bs-arrow-up":"bs-arrow-down"}`})]}),B&&t.jsxs("div",{className:R,role:"listbox",style:{position:z},children:[y&&t.jsx("div",{className:"bs-search-container",children:t.jsx(at,{ref:F,inputProperties:{placeholder:u,size:{width:"100%",height:"28px"},type:"text",onChange:O=>V(O.target.value),onKeyDown:O=>{O.key==="Enter"&&k.length>0&&K(k[0])},fontStyle:"italic",value:_,style:{fontSize:T}}})}),t.jsx("ul",{className:"bs-options-list",style:{maxHeight:h},children:x.length===0?t.jsx("li",{className:"bs-no-options",children:p}):k.length===0?t.jsxs("li",{className:"bs-no-options",children:[m," ",_&&`"${_}"`]}):k.map((O,M)=>t.jsxs("li",{className:`bs-option ${ge.isEqual(f==null?void 0:f.value,O.value)?"bs-selected":""}`,onClick:()=>K(O),role:"option","aria-selected":ge.isEqual(f==null?void 0:f.value,O.value),style:{fontSize:D},children:[t.jsx("span",{className:"bs-option-label",style:{fontSize:D},children:O.label}),O.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:D},children:O.description})]},O.id||O.value||M))})]})]})});Bn.displayName="Select",Bn.propTypes={id:n.string,label:n.string,name:n.string,placeholder:n.string,options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string})),className:n.string,disabled:n.bool,dropdownClassName:n.string,error:n.bool,fontSize:n.string,icon:n.elementType,maxHeight:n.string,noOptionsMessage:n.string,noResultsMessage:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,required:n.bool,searchable:n.bool,placeholderInput:n.string,sortAlphabetically:n.bool,value:n.any,width:n.string,fontSizeOptions:n.string};const B0=e=>{const{options:s=[],value:r,onChange:i,onBlur:o,onFocus:l,sortAlphabetically:a=!0,searchable:c=!0,textSelectAll:d="Seleccionar Todo"}=e,[h,g]=v.useState([]),[p,m]=v.useState(!1),[x,b]=v.useState(!1),[u,w]=v.useState(""),[T,D]=v.useState([]),z=v.useRef(null),C=v.useRef(null),k=v.useRef(null),$=v.useMemo(()=>{const j=s;if(Array.isArray(j))return j.map(y=>({...y,group:null}));if(typeof j=="object"&&j!==null){const y=[];return Object.entries(j).forEach(([I,R])=>{Array.isArray(R)&&R.forEach(O=>{y.push({...O,group:I})})}),y}return[]},[s]),B=j=>j.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();v.useEffect(()=>{let j=[...$];a&&j.sort((y,I)=>(y.label||"").localeCompare(I.label||"")),g(j)},[$,a]),v.useEffect(()=>{r!=null?Array.isArray(r)?D(r):D([]):D([])},[r,s]),v.useEffect(()=>{if(!u.trim()){let y=[...$];a&&y.sort((I,R)=>(I.label||"").localeCompare(R.label||"")),g(y);return}const j=$.filter(y=>B(y.label).includes(B(u)));a&&j.sort((y,I)=>(y.label||"").localeCompare(I.label||"")),g(j)},[u,$,a]),v.useEffect(()=>{x?k.current&&setTimeout(()=>{var j;return(j=k.current)==null?void 0:j.focus()},50):w("")},[x]),v.useEffect(()=>{const j=y=>{z.current&&!z.current.contains(y.target)&&(b(!1),m(!1))};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]);const _=()=>{var j;e.disabled||(b(!x),x||(j=C.current)==null||j.focus())},V=j=>{D(y=>{const I=y.some(M=>ge.isEqual(M,j.value));let R;I?R=y.filter(M=>!ge.isEqual(M,j.value)):R=[...y,j.value];const O={target:{id:e.id,name:e.name,value:R,type:"select-multiple",checked:void 0,selectedOptions:R},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};return i==null||i(O),o==null||o(O),R})},f=()=>{const j=h.map(y=>y.value);D(y=>{const I=j.every(M=>y.some(A=>ge.isEqual(A,M)));let R;if(I)R=y.filter(M=>!j.some(A=>ge.isEqual(M,A)));else{const M=j.filter(A=>!y.some(q=>ge.isEqual(q,A)));R=[...y,...M]}const O={target:{id:e.id,name:e.name,value:R,type:"select-multiple",checked:void 0,selectedOptions:R},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};return i==null||i(O),o==null||o(O),R})},H=()=>{D([]),w("");const j={target:{id:e.id,name:e.name,value:[],type:"select-multiple",checked:void 0,selectedOptions:[]},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(j)},U=j=>{m(!0),l==null||l(j)},F=j=>{var y;(y=z.current)!=null&&y.contains(j.relatedTarget)||(m(!1),o==null||o(j))},Z=j=>{var y;if(!e.disabled)switch(j.key){case"Enter":case" ":x||(j.preventDefault(),b(!0));break;case"Escape":b(!1),(y=C.current)==null||y.focus();break;case"ArrowDown":case"ArrowUp":j.preventDefault(),x||b(!0);break}},K=v.useMemo(()=>c&&$.length>=Dt,[c,$.length]),ee=()=>T.length===0?e.placeholder||"Select":T.map(y=>{const I=$.find(R=>ge.isEqual(R.value,y));return I?I.label:""}).filter(Boolean).join(", "),L=j=>{const y=j.map(M=>M.value),R=y.every(M=>T.some(A=>ge.isEqual(A,M)))?T.filter(M=>!y.some(A=>ge.isEqual(M,A))):[...T,...y.filter(M=>!T.some(A=>ge.isEqual(A,M)))];D(R);const O={target:{id:e.id,name:e.name,value:R,type:"select-multiple",checked:void 0,selectedOptions:R},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(O),o==null||o(O)},E=h.length>0&&h.every(j=>T.some(y=>ge.isEqual(y,j.value)));return{filteredOptions:h,isFocused:p,isOpen:x,searchQuery:u,setSearchQuery:w,selectedOptions:T,dropdownRef:z,inputRef:C,searchInputRef:k,toggleDropdown:_,handleOptionSelect:V,handleSelectAll:f,handleSelectGroup:L,handleClear:H,handleFocus:U,handleBlur:F,handleKeyDown:Z,showSearch:K,getDisplayLabel:ee,allVisibleSelected:E,textSelectAll:d}},Fn=v.forwardRef((e,s)=>{const{className:r="",disabled:i=!1,dropdownClassName:o="",error:l=!1,fontSize:a="14px",fontSizeOptions:c="12px",icon:d,id:h,maxHeight:g="300px",name:p,noOptionsMessage:m="No hay opciones disponibles",noResultsMessage:x="No se encontraron resultados",options:b=[],required:u=!1,placeholderInput:w="Buscar...",width:T="300px",position:D="absolute",...z}=e,{filteredOptions:C,isFocused:k,isOpen:$,searchQuery:B,setSearchQuery:_,selectedOptions:V,dropdownRef:f,inputRef:H,searchInputRef:U,toggleDropdown:F,handleOptionSelect:Z,handleSelectAll:K,handleSelectGroup:ee,handleClear:L,handleFocus:E,handleBlur:j,handleKeyDown:y,showSearch:I,getDisplayLabel:R,allVisibleSelected:O,textSelectAll:M}=B0(e),A=C.reduce((P,X)=>{const G=X.group||"Ungrouped";return P[G]||(P[G]=[]),P[G].push(X),P},{});v.useImperativeHandle(s,()=>({focus:()=>{var P;return(P=H.current)==null?void 0:P.focus()},blur:()=>{var P;return(P=H.current)==null?void 0:P.blur()},value:V,clear:()=>L()}));const q=["bs-dropdown",l&&"bs-error",i&&"bs-disabled",$&&"bs-open",k&&"bs-focused",r].filter(Boolean).join(" "),W=["bs-dropdown-options",o].filter(Boolean).join(" ");return t.jsxs("div",{ref:f,className:q,...z,style:{width:T},children:[t.jsx("input",{ref:H,type:"hidden",id:h,name:p,value:JSON.stringify(V),required:u,disabled:i}),t.jsxs("div",{className:"bs-dropdown-header",onClick:F,onFocus:E,onBlur:j,onKeyDown:y,role:"combobox","aria-expanded":$,"aria-haspopup":"listbox","aria-labelledby":`${h}-label`,"aria-disabled":i,tabIndex:i?-1:0,style:{fontSize:a},children:[t.jsx("span",{className:"bs-dropdown-value",style:{fontSize:a},children:R()}),d?t.jsx(d,{className:`bs-icon ${$?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${$?"bs-arrow-up":"bs-arrow-down"}`})]}),$&&t.jsxs("div",{className:W,role:"listbox",style:{position:D},children:[I&&t.jsx("div",{className:"bs-search-container",children:t.jsx(at,{ref:U,inputProperties:{placeholder:w,size:{width:"100%",height:"28px"},type:"text",onChange:P=>_(P.target.value),onKeyDown:P=>{P.key==="Enter"&&C.length>0},fontStyle:"italic",value:B,style:{fontSize:a}}})}),C.length>0&&t.jsxs("div",{className:`bs-select-all ${O?"bs-select-all-all":""}`,style:{padding:"6px 0px"},children:[t.jsx(Le.Checkbox,{checked:O,onChange:P=>{P.stopPropagation(),K()},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsx("span",{style:{fontSize:a,cursor:"pointer"},onClick:K,children:M})]}),t.jsx("div",{className:"bs-options-list",style:{maxHeight:g},children:Object.keys(A).length===0?t.jsx("div",{className:"bs-no-options",children:b.length===0?m:x+(B?` "${B}"`:"")}):Object.entries(A).map(([P,X])=>t.jsxs("div",{style:{marginTop:P!=="Ungrouped"?"8px":"0px"},children:[P!=="Ungrouped"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bs-group-title",style:{fontSize:a,fontWeight:"bold",marginBottom:"8px",marginLeft:"10px"},children:P}),t.jsxs("div",{className:`bs-group-header ${X.every(G=>V.some(se=>ge.isEqual(se,G.value)))?"bs-select-all-all-header":""}`,children:[t.jsx(Le.Checkbox,{checked:X.every(G=>V.some(se=>ge.isEqual(se,G.value))),onChange:G=>{G.stopPropagation(),ee(X)},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsxs("span",{style:{fontSize:c,cursor:"pointer"},onClick:()=>ee(X),children:["Seleccionar ",P]})]}),X.map((G,se)=>t.jsxs("div",{className:`bs-option ${V.some(Q=>ge.isEqual(Q,G.value))?"bs-selected":""}`,style:{display:"flex",alignItems:"center",gap:"0px",padding:"6px 0px"},role:"option","aria-selected":V.some(Q=>ge.isEqual(Q,G.value)),children:[t.jsx(Le.Checkbox,{checked:V.some(Q=>ge.isEqual(Q,G.value)),onChange:Q=>{Q.stopPropagation(),Z(G)},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsx("span",{className:"bs-option-label",style:{fontSize:c,cursor:"pointer"},onClick:()=>Z(G),children:G.label}),G.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:c},children:G.description})]},G.id||G.value||se))]}),P==="Ungrouped"&&X.map((G,se)=>t.jsxs("div",{className:`bs-option ${V.some(Q=>ge.isEqual(Q,G.value))?"bs-selected":""}`,role:"option",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0px"},"aria-selected":V.some(Q=>ge.isEqual(Q,G.value)),children:[t.jsx(Le.Checkbox,{checked:V.some(Q=>ge.isEqual(Q,G.value)),onChange:Q=>{Q.stopPropagation(),Z(G)},size:"small",sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}}}),t.jsx("span",{className:"bs-option-label",style:{fontSize:c,cursor:"pointer"},onClick:()=>Z(G),children:G.label}),G.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:c},children:G.description})]},G.id||G.value||se))]},P))})]})]})});Fn.displayName="SelectMultiple",Fn.propTypes={id:n.string,label:n.string,name:n.string,placeholder:n.string,options:n.oneOfType([n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string})),n.object]),className:n.string,disabled:n.bool,dropdownClassName:n.string,error:n.bool,fontSize:n.string,fontSizeOptions:n.string,icon:n.elementType,maxHeight:n.string,noOptionsMessage:n.string,noResultsMessage:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,required:n.bool,searchable:n.bool,placeholderInput:n.string,sortAlphabetically:n.bool,value:n.array,width:n.string,textSelectAll:n.string};const F0=e=>{const{options:s=[],value:r,onChange:i,onBlur:o,onFocus:l,sortAlphabetically:a=!1,searchable:c=!1}=e,[d,h]=v.useState(!1),[g,p]=v.useState(""),[m,x]=v.useState([]),[b,u]=v.useState(null),[w,T]=v.useState(!1),[D,z]=v.useState(null),[C,k]=v.useState({top:0,left:0}),$=v.useRef(null),B=v.useRef(null),_=v.useRef(null),V=E=>E.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();v.useEffect(()=>{let E=[...s];a&&E.sort((j,y)=>(j.label||"").localeCompare(y.label||"")),x(E)},[s,a]),v.useEffect(()=>{if(r!=null){const E=s.find(j=>ge.isEqual(j.value,r));u(E||null)}else u(null)},[r,s]),v.useEffect(()=>{if(!g.trim()){let j=[...s];a&&j.sort((y,I)=>(y.label||"").localeCompare(I.label||"")),x(j);return}const E=s.filter(j=>V(j.label).includes(V(g)));a&&E.sort((j,y)=>(j.label||"").localeCompare(y.label||"")),x(E)},[g,s,a]),v.useEffect(()=>{d?_.current&&setTimeout(()=>{var E;return(E=_.current)==null?void 0:E.focus()},50):p("")},[d]),v.useEffect(()=>{const E=j=>{$.current&&!$.current.contains(j.target)&&(h(!1),T(!1),z(null))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);const f=()=>{var E;e.disabled||(h(!d),d||(E=B.current)==null||E.focus())},H=E=>{if(E.children&&E.children.length>0)return;let j;ge.isEqual(b==null?void 0:b.value,E.value)?j=null:j=E,u(j),h(!1),z(null);const y={target:{id:e.id,name:e.name,value:(j==null?void 0:j.value)||null,type:"nested-select",checked:void 0,selectedOption:j,label:(j==null?void 0:j.label)||null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(y),o==null||o(y)},U=(E,j)=>{if(j.stopPropagation(),E.children&&E.children.length>0)if(D&&D.id===E.id)z(null);else{const y=j.currentTarget.getBoundingClientRect();k({top:y.top,left:y.right}),z(E)}else H(E)},F=()=>{u(null),p("");const E={target:{id:e.id,name:e.name,value:null,type:"select",checked:void 0,selectedOption:null,label:null},type:"change",preventDefault:()=>{},stopPropagation:()=>{}};i==null||i(E)},Z=E=>{T(!0),l==null||l(E)},K=E=>{var j;(j=$.current)!=null&&j.contains(E.relatedTarget)||(T(!1),o==null||o(E))},ee=E=>{var j;if(!e.disabled)switch(E.key){case"Enter":case" ":d||(E.preventDefault(),h(!0));break;case"Escape":h(!1),(j=B.current)==null||j.focus();break;case"ArrowDown":case"ArrowUp":E.preventDefault(),d||h(!0);break}},L=v.useMemo(()=>c&&s.length>=Dt,[c,s.length]);return{filteredOptions:m,isFocused:w,isOpen:d,searchQuery:g,setSearchQuery:p,selectedOption:b,activeOption:D,subMenuPosition:C,dropdownRef:$,inputRef:B,searchInputRef:_,toggleDropdown:f,handleOptionSelect:H,handleOptionClick:U,handleClear:F,handleFocus:Z,handleBlur:K,handleKeyDown:ee,showSearch:L}},Qs=v.forwardRef((e,s)=>{const{id:r,name:i,placeholder:o="Select",options:l=[],disabled:a=!1,error:c=!1,required:d=!1,className:h="",dropdownClassName:g="",placeholderInput:p="Buscar...",noOptionsMessage:m="No hay opciones disponibles",noResultsMessage:x="No se encontraron resultados",width:b="300px",maxHeight:u="300px",fontSize:w="14px",icon:T,...D}=e,{filteredOptions:z,isFocused:C,isOpen:k,searchQuery:$,setSearchQuery:B,selectedOption:_,activeOption:V,subMenuPosition:f,dropdownRef:H,inputRef:U,searchInputRef:F,toggleDropdown:Z,handleOptionSelect:K,handleOptionClick:ee,handleClear:L,handleFocus:E,handleBlur:j,handleKeyDown:y,showSearch:I}=F0(e);v.useImperativeHandle(s,()=>({focus:()=>{var M;return(M=U.current)==null?void 0:M.focus()},blur:()=>{var M;return(M=U.current)==null?void 0:M.blur()},value:(_==null?void 0:_.value)||"",clear:()=>L()}));const R=["bs-dropdown",c&&"bs-error",a&&"bs-disabled",k&&"bs-open",C&&"bs-focused",h].filter(Boolean).join(" "),O=["bs-dropdown-options",g].filter(Boolean).join(" ");return t.jsxs("div",{ref:H,className:R,...D,style:{width:b},children:[t.jsx("input",{ref:U,type:"hidden",id:r,name:i,value:(_==null?void 0:_.value)||"",required:d,disabled:a}),t.jsxs("div",{className:"bs-dropdown-header",onClick:Z,onFocus:E,onBlur:j,onKeyDown:y,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-labelledby":`${r}-label`,"aria-disabled":a,tabIndex:a?-1:0,style:{fontSize:w},children:[t.jsx("span",{className:"bs-dropdown-value",children:(_==null?void 0:_.label)||o}),T?t.jsx(T,{className:`bs-icon ${k?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${k?"bs-arrow-up":"bs-arrow-down"}`})]}),k&&t.jsxs("div",{className:O,role:"listbox",children:[I&&t.jsx("div",{className:"bs-search-container",children:t.jsx(at,{ref:F,inputProperties:{placeholder:p,size:{width:"100%",height:"28px"},type:"text",onChange:M=>B(M.target.value),onKeyDown:M=>{M.key==="Enter"&&z.length>0&&K(z[0])},onClick:M=>M.stopPropagation(),value:$,style:{fontSize:w}}})}),t.jsx("ul",{className:"bs-options-list",style:{maxHeight:u},children:l.length===0?t.jsx("li",{className:"bs-no-options",children:m}):z.length===0?t.jsxs("li",{className:"bs-no-options",children:[x," ",$&&`"${$}"`]}):z.map((M,A)=>t.jsxs("li",{className:`bs-option ${ge.isEqual(_==null?void 0:_.value,M.value)?"bs-selected":""} ${V&&ge.isEqual(V.value,M.value)?"bs-active":""}`,onClick:q=>ee(M,q),role:"option","aria-selected":ge.isEqual(_==null?void 0:_.value,M.value),"aria-haspopup":M.children&&M.children.length>0?"menu":void 0,"aria-expanded":!!(V&&ge.isEqual(V.value,M.value)),style:{fontSize:w},children:[t.jsx("span",{className:"bs-option-label",children:M.label}),M.description&&t.jsx("span",{className:"bs-option-description",children:M.description}),M.children&&M.children.length>0&&t.jsx("span",{className:"bs-option-arrow",children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:8,height:12,fill:"none",children:t.jsx("path",{fill:"#8598AD",fillRule:"evenodd",d:"M0 1.4 4.6 6 0 10.6 1.4 12l6-6-6-6L0 1.4Z",clipRule:"evenodd"})})})]},M.id||M.value||A))}),V&&V.children&&V.children.length>0&&t.jsx("div",{className:"bs-submenu",style:{position:"fixed",top:f.top,left:f.left,zIndex:9999,maxHeight:u},children:t.jsx("ul",{className:"bs-options-list",children:V.children.map((M,A)=>t.jsxs("li",{className:`bs-option ${ge.isEqual(_==null?void 0:_.value,M.value)?"bs-selected":""}`,onClick:q=>{q.stopPropagation(),K(M)},role:"option","aria-selected":ge.isEqual(_==null?void 0:_.value,M.value),style:{fontSize:w},children:[t.jsx("span",{className:"bs-option-label",children:M.label}),M.description&&t.jsx("span",{className:"bs-option-description",children:M.description})]},M.id||M.value||A))})})]})]})});Qs.displayName="SelectNested",Qs.propTypes={id:n.string,label:n.string,name:n.string,placeholder:n.string,options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string,children:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string}))})),className:n.string,disabled:n.bool,dropdownClassName:n.string,error:n.bool,fontSize:n.string,icon:n.elementType,maxHeight:n.string,noOptionsMessage:n.string,noResultsMessage:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,required:n.bool,searchable:n.bool,placeholderInput:n.string,sortAlphabetically:n.bool,value:n.any,width:n.string};const jo=e=>t.jsx(et,{...e,inputRadio:!0});jo.propTypes={size:n.string,options:n.array,label:n.string,onchange:n.func,error:n.bool};const wo=e=>{const{data:s,onChange:r,label:i,size:o,error:l,keyReset:a,fontSizeOptions:c="0.9vw",fontSizeTitleOptions:d="1vw",fontSizeLabel:h,disabled:g,maxHeightOptions:p,value:m,hasDivisions:x,fontSizeLabelText:b,fontSizeTooltip:u,heightTooltip:w,leftTooltip:T,tooltip:D,topTooltip:z,widthTooltip:C,isTooltipVisible:k,labelText:$,subLabelText:B}=e,[_,V]=v.useState(!1),f=v.useRef(null),[H,U]=v.useState(m||""),F=K=>{U(K),V(!1),r&&r(K)};v.useEffect(()=>{U("")},[a]);const Z=K=>{f.current&&!f.current.contains(K.target)&&V(!1)};return v.useEffect(()=>(document.addEventListener("mousedown",Z),()=>{document.removeEventListener("mousedown",Z)}),[]),t.jsxs("div",{ref:f,className:"relative",style:{width:o},children:[t.jsx(et,{label:H.label||i,onchange:()=>{},options:[],size:o,isOpen:_,setIsOpen:V,disabledClickOutside:!0,disabled:g,error:l,fontSizeLabel:h,fontSizeLabelText:b,fontSizeTooltip:u,heightTooltip:w,leftTooltip:T,tooltip:D,topTooltip:z,widthTooltip:C,isTooltipVisible:k,labelText:$,subLabelText:B}),_&&t.jsx("ul",{className:"item-filter",style:{width:"100%",maxHeight:p},children:s.map(K=>t.jsxs("div",{className:`item-group ${x?"border-bottom-select":""}`,style:{marginTop:"15px"},children:[t.jsx("h3",{style:{fontSize:d,fontWeight:"700"},children:K.title}),K.options.map(ee=>t.jsx("div",{onClick:()=>F(ee),className:"item",style:{padding:"15px 20px",width:"100%",fontSize:c,cursor:"pointer",fontWeight:"400"},children:ee.label},ee.label))]},K.title))})]})};wo.propTypes={data:n.array,onChange:n.func,label:n.string,size:n.string,error:n.bool,keyReset:n.number,fontSizeLabel:n.string,fontSizeOptions:n.string,disabled:n.bool,maxHeightOptions:n.string,value:n.string,fontSizeTitleOptions:n.string,hasDivisions:n.bool,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,labelText:n.string,subLabelText:n.string};const ko=e=>{const{id:s,onchange:r,label:i,colors:o,onChangeFunction:l,value:a,disabled:c}=e,[d,h]=v.useState(a||!1);v.useEffect(()=>{h(a||!1)},[a]);const g=x=>{c||(h(x.target.checked),r&&r(x.target.checked),l&&l({id:s,value:x.target.checked}))},p={height:"0",width:"0",visibility:"hidden",fontWeight:"500"},m={height:"0",width:"0",opacity:"0",position:"absolute"};return t.jsxs("div",{className:"switch-container",children:[i&&t.jsx("span",{className:"switch-label",children:d?"Activo":"Inactivo"}),t.jsxs("div",{children:[t.jsx("input",{className:"react-switch-checkbox",id:`react-switch-new-${s}`,type:"checkbox",checked:d,onChange:g,disabled:c,style:i?p:m}),t.jsx("label",{className:"react-switch-label",htmlFor:`react-switch-new-${s}`,style:{background:d?o.active:o.inactive},children:t.jsx("span",{className:"react-switch-button"})})]})]})};ko.propTypes={id:n.string,onchange:n.func,label:n.string,colors:n.shape({active:n.string,inactive:n.string}),onChangeFunction:n.func,value:n.bool,disabled:n.bool};const Co=({width:e,height:s,minheight:r,maxHeight:i,id:o,name:l,value:a,onChange:c,label:d,subLabel:h,placeholder:g,maxCharacters:p,fontSizeLabel:m,fontSize:x,fontSizeTooltip:b,heightTooltip:u,leftTooltip:w,tooltip:T,topTooltip:D,widthTooltip:z,isTooltipVisible:C,onChangeFunction:k})=>{const $=B=>{const{name:_,value:V}=B.target;c&&c({name:_,value:V,id:o}),k&&k(B)};return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"5px",width:e},children:[d&&t.jsx(Xt,{fontSizeTitle:m,fontSizeTooltip:b,heightTooltip:u,left:w,subTitle:h,title:d,tooltip:T,top:D,widthTooltip:z,isTooltipVisibleProp:C,marginBottom:"5px",htmlFor:o}),t.jsx("textarea",{name:l,id:o,value:a,onChange:$,placeholder:g,className:"text-area-library",maxLength:p,style:{width:e,height:s,minHeight:r,maxHeight:i,fontSize:x}}),p&&t.jsxs("div",{className:"max-characters-library",children:[p," caracteres"]})]})};Co.propTypes={width:n.string,height:n.string,minheight:n.string,maxHeight:n.string,id:n.string,name:n.string,value:n.string,onChange:n.func,label:n.string,subLabel:n.string,placeholder:n.string,maxCharacters:n.number,fontSizeLabel:n.string,fontSize:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,onChangeFunction:n.func};const So=({label:e,onchange:s,textSelect:r,width:i,labelText:o,subLabelText:l,fontSize:a,value:c})=>{const[d,h]=v.useState(()=>c&&c.includes(":")?c.split(":")[0]:"00"),[g,p]=v.useState(()=>c&&c.includes(":")?c.split(":")[1]:"00"),[m,x]=v.useState(!1),[b,u]=v.useState(()=>c||(e??"Hora Inicio")),w=v.useRef(),T=v.useRef(),D=Array.from({length:24},(B,_)=>_.toString().padStart(2,"0")),z=Array.from({length:60},(B,_)=>_.toString().padStart(2,"0"));v.useEffect(()=>{const B=_=>{T.current&&!T.current.contains(_.target)&&x(!1)};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[]),v.useEffect(()=>{if(c&&c.includes(":")){const[B,_]=c.split(":");h(B),p(_),u(c)}},[c]);const C=()=>{x(!1);const B=`${d}:${g}`;u(B),s(B)},k=B=>{let _=B.target.value.replace(/\D/g,"");_.length>4&&(_=_.slice(0,4));let V=_;if(_.length>=3&&(V=`${_.slice(0,2)}:${_.slice(2)}`),u(V),V.length===5){const[f,H]=V.split(":");parseInt(f,10)>=0&&parseInt(f,10)<24&&parseInt(H,10)>=0&&parseInt(H,10)<60?(h(f),p(H),s(V)):u(`${d}:${g}`)}},$=()=>{x(!m),w.current.focus()};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",gap:"5px"},children:[o&&t.jsx("label",{className:"label-library",children:o}),l&&t.jsx("label",{className:"sub-label",children:l})]}),t.jsxs("div",{className:"time-picker-container",ref:T,style:{width:i},children:[t.jsxs("div",{className:"time-picker-input-wrapper",children:[t.jsx("input",{type:"text",ref:w,value:b,onChange:k,placeholder:"00:00",className:"time-picker-input",maxLength:5,style:{fontSize:a}}),t.jsx("button",{className:"time-picker-button",onClick:$,"aria-label":"Abrir selector de tiempo",children:t.jsx(Oi,{})})]}),m&&t.jsxs("div",{className:"time-picker-dropdown",children:[t.jsxs("div",{className:"time-columns",children:[t.jsx("div",{className:"time-column",children:D.map(B=>t.jsx("div",{className:`time-option ${d===B?"selected":""}`,onClick:()=>h(B),children:B},B))}),t.jsx("div",{className:"time-column",children:z.map(B=>t.jsx("div",{className:`time-option ${g===B?"selected":""}`,onClick:()=>p(B),children:B},B))})]}),t.jsx("button",{className:"ok-button",onClick:C,children:r??"Seleccionar"})]})]})]})};So.propTypes={label:n.string,onchange:n.func,textSelect:n.string,width:n.string,labelText:n.string,subLabelText:n.any,fontSize:n.string,value:n.string};const L0=pe.div`
380
380
  display: flex;
381
381
  align-items: center;
382
382
  gap: 4px;
@@ -425,7 +425,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${s}Chann
425
425
  line-height: 18px;
426
426
  color: #8598ad;
427
427
  font-weight: 600;
428
- `,To=({currentPage:e=1,totalPages:s=1,onChange:r,disabled:i=!1,label:o="Página",ofLabel:l="de",fontSize:a="18px",height:c="auto"})=>{const d=p=>{const m=p.target.value;if(m===""){r==null||r("");return}const x=parseInt(m,10);isNaN(x)||(x>=1&&x<=s?r==null||r(x):x>s&&(r==null||r(s)))},h=p=>{const m=p.target.value;m===""||parseInt(m,10)<1?r==null||r(e):parseInt(m,10)>s&&(r==null||r(s))},g=p=>{if(p.key==="Enter")p.target.blur();else if(p.key==="ArrowUp"){p.preventDefault();const m=Math.min(e+1,s);r==null||r(m)}else if(p.key==="ArrowDown"){p.preventDefault();const m=Math.max(e-1,1);r==null||r(m)}};return t.jsxs(L0,{children:[t.jsx(_0,{fontSize:a,children:o}),t.jsx(H0,{type:"number",value:e,onChange:d,onBlur:h,onKeyDown:g,disabled:i,min:1,max:s,style:{fontSize:a,height:c}}),t.jsxs(V0,{fontSize:a,children:[l," ",s]})]})};To.propTypes={currentPage:n.number,totalPages:n.number,onChange:n.func,disabled:n.bool,label:n.string,ofLabel:n.string,fontSize:n.string,height:n.string};const Xs=({className:e,error:s,...r})=>t.jsx("input",{className:`${e} input-ixc ${s?"error":""}`,...r});Xs.propTypes={className:n.string,props:n.object,error:n.bool};const Mo=({icon:e,iconPosition:s="right",onIconClick:r,className:i="",classNameInput:o="",iconReactive:l=!1,...a})=>{const c=typeof r=="function",d=`input-icon-wrapper ${s} ${l?"icon-reactive":""} ${i}`.trim(),h=`input-with-icon ${o}`.trim();return t.jsxs("div",{className:d,children:[t.jsx(Xs,{...a,className:h}),c?t.jsx("button",{type:"button",className:"input-icon-button",onClick:r,"aria-label":"Icon button",children:e}):t.jsx("span",{className:"input-icon-decoration",children:e})]})};Mo.propTypes={icon:n.node.isRequired,iconPosition:n.oneOf(["left","right"]),onIconClick:n.func,className:n.string,classNameInput:n.string,iconReactive:n.bool};const q0=Fe(t.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),U0=Fe(t.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Z0=Fe(t.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Y0(e){return rt("MuiCheckbox",e)}const Js=ht("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),G0=e=>{const{classes:s,indeterminate:r,color:i,size:o}=e,l={root:["root",r&&"indeterminate",`color${Ie(i)}`,`size${Ie(o)}`]},a=mt(l,Y0,s);return{...s,...a}},K0=Ve(Zs,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.indeterminate&&s.indeterminate,s[`size${Ie(r.size)}`],r.color!=="default"&&s[`color${Ie(r.color)}`]]}})(bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[s].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[s].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s},style:{[`&.${Js.checked}, &.${Js.indeterminate}`]:{color:(e.vars||e).palette[s].main},[`&.${Js.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Q0=t.jsx(U0,{}),X0=t.jsx(q0,{}),J0=t.jsx(Z0,{}),zo=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiCheckbox"}),{checkedIcon:o=Q0,color:l="primary",icon:a=X0,indeterminate:c=!1,indeterminateIcon:d=J0,inputProps:h,size:g="medium",disableRipple:p=!1,className:m,slots:x={},slotProps:b={},...u}=i,w=c?d:a,T=c?d:o,D={...i,disableRipple:p,color:l,indeterminate:c,size:g},z=G0(D),C=b.input??h,[k,R]=Gt("root",{ref:r,elementType:K0,className:$e(z.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:b,...u},ownerState:D,additionalProps:{type:"checkbox",icon:re.cloneElement(w,{fontSize:w.props.fontSize??g}),checkedIcon:re.cloneElement(T,{fontSize:T.props.fontSize??g}),disableRipple:p,slots:x,slotProps:{input:k1(typeof C=="function"?C(D):C,{"data-indeterminate":c})}}});return t.jsx(k,{...R,classes:z})});process.env.NODE_ENV!=="production"&&(zo.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,indeterminate:n.bool,indeterminateIcon:n.node,inputProps:n.object,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const Eo=e=>{const[s,r]=v.useState(!1),[i,o]=v.useState([]),l=v.useRef(null),{options:a,onchange:c,label:d,size:h,error:g,keyReset:p,fontSizeOptions:m="0.9vw",disabled:x,maxHeightOptions:b,labelText:u,subLabelText:w,gap:T="0",fontSizeLabel:D="0.9vw",onChangeFunction:z,id:C,fontSizeLabelText:k,fontSizeTooltip:R,heightTooltip:L,leftTooltip:V,tooltip:_,topTooltip:f,widthTooltip:H,isTooltipVisible:U,placeholderInputSearch:B="Buscar...",sortAlphabetically:Z=!0,value:K}=e,[ee,F]=v.useState(a);v.useEffect(()=>{const M=Z?[...a].sort((A,q)=>{var $;return($=A.label)==null?void 0:$.localeCompare(q.label)}):[...a];F(M)},[a,Z]);const E=M=>{o(A=>A.some(q=>ge.isEqual(q,M))?(c&&c(A.filter(q=>!ge.isEqual(q,M))),z&&z({id:C,value:A.filter(q=>!ge.isEqual(q,M))}),A.filter(q=>!ge.isEqual(q,M))):(c&&c([...A,M]),z&&z({id:C,value:[...A,M]}),[...A,M]))},j=()=>i.length===0?d:i.map(M=>{const A=a.find(q=>ge.isEqual(q.value,M));return A?A.label:""}).filter(Boolean).join(", ");v.useEffect(()=>{o([])},[p]),v.useEffect(()=>{K!=null&&(Array.isArray(K)?o(K):o([]))},[K]);const y=M=>{l.current&&!l.current.contains(M.target)&&r(!1)};v.useEffect(()=>(document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}),[]),v.useEffect(()=>{if(!s){const M=Z?[...a].sort((A,q)=>{var $;return($=A.label)==null?void 0:$.localeCompare(q.label)}):[...a];F(M),P("")}},[s,a,Z]);const[I,P]=v.useState(""),O=M=>{const A=M.target.value;P(A);const q=a.filter(W=>W.label.toLowerCase().includes(A.toLowerCase())),$=Z?q.sort((W,X)=>{var G;return(G=W.label)==null?void 0:G.localeCompare(X.label)}):q;F($)};return t.jsxs("div",{ref:l,className:"relative",style:{width:h},children:[t.jsx(et,{label:j(),onchange:()=>{},options:[],size:h,isOpen:s,setIsOpen:r,disabledClickOutside:!0,disabled:x,error:g,labelText:u,gap:T,subLabelText:w,fontSizeLabel:D,fontSizeLabelText:k,fontSizeTooltip:R,heightTooltip:L,leftTooltip:V,tooltip:_,topTooltip:f,widthTooltip:H,isTooltipVisible:U,withoutOptions:!0}),s&&t.jsxs("ul",{className:"multiselect-options",style:{maxHeight:b},children:[a.length>=Dt&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(at,{inputProperties:{placeholder:B,size:{width:"100%",height:"28px"},type:"text",onChange:M=>O(M),fontStyle:"italic"}})}),ee.length===0&&I.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:m,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',I,'"']}):ee.map(M=>t.jsxs("li",{onClick:()=>E(M.value),className:i.some(A=>ge.isEqual(A,M.value))?"selected":"",style:{fontSize:m},children:[t.jsx(zo,{checked:i.some(A=>ge.isEqual(A,M.value)),onChange:A=>{A.stopPropagation(),E(M.value)},onClick:()=>E(M.value),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),M.label]},M.value.title||M.value)),a.length===0&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:m,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"})]})]})};Eo.propTypes={options:n.array,onchange:n.func,label:n.string,size:n.string,error:n.bool,keyReset:n.number,fontSizeOptions:n.string,disabled:n.bool,maxHeightOptions:n.string,labelText:n.string,subLabelText:n.any,gap:n.string,onChangeFunction:n.func,id:n.string,fontSizeLabel:n.string,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,placeholderInputSearch:n.string,inputProperties:n.object,sortAlphabetically:n.bool,value:n.array};const eu=(e,s)=>{var r,i,o;if(!Array.isArray(e)&&typeof e!="object")throw new Error("Invalid data format. Expected an array or an object.");if(s){if(typeof e=="object"&&!Array.isArray(e))return(i=(r=Object.entries(e))==null?void 0:r.sort(([l],[a])=>l==null?void 0:l.localeCompare(a)))==null?void 0:i.reduce((l,[a,c])=>{var d;return l[a]=Array.isArray(c)?(d=c.map(h=>({id:h==null?void 0:h.id,name:h==null?void 0:h.name})))==null?void 0:d.sort((h,g)=>{var p;return(p=h.name)==null?void 0:p.localeCompare(g==null?void 0:g.name)}):[],l},{});throw new Error("Grouped mode requires data to be an object.")}if(Array.isArray(e))return{all:(o=e==null?void 0:e.map(l=>({id:l==null?void 0:l.id,name:l==null?void 0:l.name})))==null?void 0:o.sort((l,a)=>{var c;return(c=l.name)==null?void 0:c.localeCompare(a==null?void 0:a.name)})};throw new Error("Ungrouped mode requires data to be an array.")},tu=pe.button`
428
+ `,To=({currentPage:e=1,totalPages:s=1,onChange:r,disabled:i=!1,label:o="Página",ofLabel:l="de",fontSize:a="18px",height:c="auto"})=>{const d=p=>{const m=p.target.value;if(m===""){r==null||r("");return}const x=parseInt(m,10);isNaN(x)||(x>=1&&x<=s?r==null||r(x):x>s&&(r==null||r(s)))},h=p=>{const m=p.target.value;m===""||parseInt(m,10)<1?r==null||r(e):parseInt(m,10)>s&&(r==null||r(s))},g=p=>{if(p.key==="Enter")p.target.blur();else if(p.key==="ArrowUp"){p.preventDefault();const m=Math.min(e+1,s);r==null||r(m)}else if(p.key==="ArrowDown"){p.preventDefault();const m=Math.max(e-1,1);r==null||r(m)}};return t.jsxs(L0,{children:[t.jsx(_0,{fontSize:a,children:o}),t.jsx(H0,{type:"number",value:e,onChange:d,onBlur:h,onKeyDown:g,disabled:i,min:1,max:s,style:{fontSize:a,height:c}}),t.jsxs(V0,{fontSize:a,children:[l," ",s]})]})};To.propTypes={currentPage:n.number,totalPages:n.number,onChange:n.func,disabled:n.bool,label:n.string,ofLabel:n.string,fontSize:n.string,height:n.string};const Xs=({className:e,error:s,...r})=>t.jsx("input",{className:`${e} input-ixc ${s?"error":""}`,...r});Xs.propTypes={className:n.string,props:n.object,error:n.bool};const Mo=({icon:e,iconPosition:s="right",onIconClick:r,className:i="",classNameInput:o="",iconReactive:l=!1,...a})=>{const c=typeof r=="function",d=`input-icon-wrapper ${s} ${l?"icon-reactive":""} ${i}`.trim(),h=`input-with-icon ${o}`.trim();return t.jsxs("div",{className:d,children:[t.jsx(Xs,{...a,className:h}),c?t.jsx("button",{type:"button",className:"input-icon-button",onClick:r,"aria-label":"Icon button",children:e}):t.jsx("span",{className:"input-icon-decoration",children:e})]})};Mo.propTypes={icon:n.node.isRequired,iconPosition:n.oneOf(["left","right"]),onIconClick:n.func,className:n.string,classNameInput:n.string,iconReactive:n.bool};const q0=Fe(t.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),U0=Fe(t.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Z0=Fe(t.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Y0(e){return rt("MuiCheckbox",e)}const Js=ht("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),G0=e=>{const{classes:s,indeterminate:r,color:i,size:o}=e,l={root:["root",r&&"indeterminate",`color${Ie(i)}`,`size${Ie(o)}`]},a=mt(l,Y0,s);return{...s,...a}},K0=Ve(Zs,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:r}=e;return[s.root,r.indeterminate&&s.indeterminate,s[`size${Ie(r.size)}`],r.color!=="default"&&s[`color${Ie(r.color)}`]]}})(bt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[s].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ht(e.palette[s].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Kt()).map(([s])=>({props:{color:s},style:{[`&.${Js.checked}, &.${Js.indeterminate}`]:{color:(e.vars||e).palette[s].main},[`&.${Js.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Q0=t.jsx(U0,{}),X0=t.jsx(q0,{}),J0=t.jsx(Z0,{}),zo=re.forwardRef(function(s,r){const i=vt({props:s,name:"MuiCheckbox"}),{checkedIcon:o=Q0,color:l="primary",icon:a=X0,indeterminate:c=!1,indeterminateIcon:d=J0,inputProps:h,size:g="medium",disableRipple:p=!1,className:m,slots:x={},slotProps:b={},...u}=i,w=c?d:a,T=c?d:o,D={...i,disableRipple:p,color:l,indeterminate:c,size:g},z=G0(D),C=b.input??h,[k,$]=Gt("root",{ref:r,elementType:K0,className:$e(z.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:b,...u},ownerState:D,additionalProps:{type:"checkbox",icon:re.cloneElement(w,{fontSize:w.props.fontSize??g}),checkedIcon:re.cloneElement(T,{fontSize:T.props.fontSize??g}),disableRipple:p,slots:x,slotProps:{input:k1(typeof C=="function"?C(D):C,{"data-indeterminate":c})}}});return t.jsx(k,{...$,classes:z})});process.env.NODE_ENV!=="production"&&(zo.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,indeterminate:n.bool,indeterminateIcon:n.node,inputProps:n.object,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({input:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const Eo=e=>{const[s,r]=v.useState(!1),[i,o]=v.useState([]),l=v.useRef(null),{options:a,onchange:c,label:d,size:h,error:g,keyReset:p,fontSizeOptions:m="0.9vw",disabled:x,maxHeightOptions:b,labelText:u,subLabelText:w,gap:T="0",fontSizeLabel:D="0.9vw",onChangeFunction:z,id:C,fontSizeLabelText:k,fontSizeTooltip:$,heightTooltip:B,leftTooltip:_,tooltip:V,topTooltip:f,widthTooltip:H,isTooltipVisible:U,placeholderInputSearch:F="Buscar...",sortAlphabetically:Z=!0,value:K}=e,[ee,L]=v.useState(a);v.useEffect(()=>{const M=Z?[...a].sort((A,q)=>{var W;return(W=A.label)==null?void 0:W.localeCompare(q.label)}):[...a];L(M)},[a,Z]);const E=M=>{o(A=>A.some(q=>ge.isEqual(q,M))?(c&&c(A.filter(q=>!ge.isEqual(q,M))),z&&z({id:C,value:A.filter(q=>!ge.isEqual(q,M))}),A.filter(q=>!ge.isEqual(q,M))):(c&&c([...A,M]),z&&z({id:C,value:[...A,M]}),[...A,M]))},j=()=>i.length===0?d:i.map(M=>{const A=a.find(q=>ge.isEqual(q.value,M));return A?A.label:""}).filter(Boolean).join(", ");v.useEffect(()=>{o([])},[p]),v.useEffect(()=>{K!=null&&(Array.isArray(K)?o(K):o([]))},[K]);const y=M=>{l.current&&!l.current.contains(M.target)&&r(!1)};v.useEffect(()=>(document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}),[]),v.useEffect(()=>{if(!s){const M=Z?[...a].sort((A,q)=>{var W;return(W=A.label)==null?void 0:W.localeCompare(q.label)}):[...a];L(M),R("")}},[s,a,Z]);const[I,R]=v.useState(""),O=M=>{const A=M.target.value;R(A);const q=a.filter(P=>P.label.toLowerCase().includes(A.toLowerCase())),W=Z?q.sort((P,X)=>{var G;return(G=P.label)==null?void 0:G.localeCompare(X.label)}):q;L(W)};return t.jsxs("div",{ref:l,className:"relative",style:{width:h},children:[t.jsx(et,{label:j(),onchange:()=>{},options:[],size:h,isOpen:s,setIsOpen:r,disabledClickOutside:!0,disabled:x,error:g,labelText:u,gap:T,subLabelText:w,fontSizeLabel:D,fontSizeLabelText:k,fontSizeTooltip:$,heightTooltip:B,leftTooltip:_,tooltip:V,topTooltip:f,widthTooltip:H,isTooltipVisible:U,withoutOptions:!0}),s&&t.jsxs("ul",{className:"multiselect-options",style:{maxHeight:b},children:[a.length>=Dt&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(at,{inputProperties:{placeholder:F,size:{width:"100%",height:"28px"},type:"text",onChange:M=>O(M),fontStyle:"italic"}})}),ee.length===0&&I.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:m,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',I,'"']}):ee.map(M=>t.jsxs("li",{onClick:()=>E(M.value),className:i.some(A=>ge.isEqual(A,M.value))?"selected":"",style:{fontSize:m},children:[t.jsx(zo,{checked:i.some(A=>ge.isEqual(A,M.value)),onChange:A=>{A.stopPropagation(),E(M.value)},onClick:()=>E(M.value),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),M.label]},M.value.title||M.value)),a.length===0&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:m,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"})]})]})};Eo.propTypes={options:n.array,onchange:n.func,label:n.string,size:n.string,error:n.bool,keyReset:n.number,fontSizeOptions:n.string,disabled:n.bool,maxHeightOptions:n.string,labelText:n.string,subLabelText:n.any,gap:n.string,onChangeFunction:n.func,id:n.string,fontSizeLabel:n.string,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,placeholderInputSearch:n.string,inputProperties:n.object,sortAlphabetically:n.bool,value:n.array};const eu=(e,s)=>{var r,i,o;if(!Array.isArray(e)&&typeof e!="object")throw new Error("Invalid data format. Expected an array or an object.");if(s){if(typeof e=="object"&&!Array.isArray(e))return(i=(r=Object.entries(e))==null?void 0:r.sort(([l],[a])=>l==null?void 0:l.localeCompare(a)))==null?void 0:i.reduce((l,[a,c])=>{var d;return l[a]=Array.isArray(c)?(d=c.map(h=>({id:h==null?void 0:h.id,name:h==null?void 0:h.name})))==null?void 0:d.sort((h,g)=>{var p;return(p=h.name)==null?void 0:p.localeCompare(g==null?void 0:g.name)}):[],l},{});throw new Error("Grouped mode requires data to be an object.")}if(Array.isArray(e))return{all:(o=e==null?void 0:e.map(l=>({id:l==null?void 0:l.id,name:l==null?void 0:l.name})))==null?void 0:o.sort((l,a)=>{var c;return(c=l.name)==null?void 0:c.localeCompare(a==null?void 0:a.name)})};throw new Error("Ungrouped mode requires data to be an array.")},tu=pe.button`
429
429
  display: flex;
430
430
  font-family: Roboto, sans-serif;
431
431
  width: 410px;
@@ -482,7 +482,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${s}Chann
482
482
  display: flex;
483
483
  justify-content: center;
484
484
  align-items: center;
485
- `,Ye=e=>{const{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconProp:c}=e;return t.jsxs(No,{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,className:"VibrantBlueStyle",style:{...a,display:"flex",alignItems:"center",gap:"15px",justifyContent:"center"},children:[e.children,c&&t.jsx(c,{style:{width:"30px",height:"25px"}})]})};Ye.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,backgroundcolor:n.string,border:n.string,color:n.string,style:n.object}),children:n.node||n.string,IconProp:n.any};const tr=({data:e,grouped:s,divideColumns:r=!1,selectButton:i,onChange:o,onChangeFunction:l,label:a,width:c,textButton:d,maxHeight:h,keyReset:g,left:p=!1,minWidthDropdown:m="100%",disabled:x,textOverflow:b=!0,widthDropdown:u,error:w,fontSizeLabelText:T,fontSizeTooltip:D,heightTooltip:z,leftTooltip:C,tooltip:k,topTooltip:R,widthTooltip:L,isTooltipVisible:V,subLabelText:_,labelText:f,language:H="es",textSelectAll:U="Seleccionar Todo",placeholderSearch:B="Buscar...",isRelative:Z=!1,selectedValues:K,fontSizeLabel:ee,fontSizeOptions:F="1vw"})=>{const[E,j]=v.useState([]),[y,I]=v.useState(""),[P,O]=v.useState(!1),M=v.useRef(null),A=v.useRef(!1),q=v.useRef(K!==void 0);v.useEffect(()=>{K!==void 0&&(j(K),q.current=!0)},[K]);const $=eu(e,s),X=Object.values($).flat().length>=Dt,G=()=>{if(y.trim()==="")return Object.values($).flat();const ce=y.toLowerCase(),oe=[];return Object.entries($).forEach(([de,te])=>{if(!Array.isArray(te)||te.length===0)return;if(de.toLowerCase().includes(ce))oe.push(...te);else{const ze=te.filter(Ne=>Ne.name.toLowerCase().includes(ce));oe.push(...ze)}}),oe},Q=G().length>0,he=ce=>ce.map(oe=>{let de=null;if(s&&typeof e=="object"&&!Array.isArray(e)){for(const te of Object.values(e))if(Array.isArray(te)&&(de=te.find(ie=>ie.id===oe),de))break}else Array.isArray(e)&&(de=e.find(te=>te.id===oe));if(de){const te={id:de.id,name:de.name};return de.value!==void 0&&(te.value=de.value),Object.keys(de).forEach(ie=>{Object.prototype.hasOwnProperty.call(te,ie)||(te[ie]=de[ie])}),te}return null}).filter(Boolean),le=ce=>{if(A.current=!0,ce.target.checked){const oe=G(),de=oe.map(ze=>ze.id),ie=[...E.filter(ze=>!oe.some(De=>De.id===ze)),...de];if(j(ie),o&&o(ie),l){const ze=he(ie);l(ze)}}else{const de=G().map(ie=>ie.id),te=E.filter(ie=>!de.includes(ie));if(j(te),o&&o(te),l){const ie=he(te);l(ie)}}},fe=ce=>{A.current=!0,j(oe=>{const de=oe.includes(ce)?oe.filter(te=>te!==ce):[...oe,ce];if(o&&o(de),l){const te=he(de);l(te)}return de})},_e=()=>{if(o&&o(E),l){const ce=he(E);l(ce)}O(!1)};v.useEffect(()=>{const ce=oe=>{M.current&&!M.current.contains(oe.target)&&O(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[M]),v.useEffect(()=>{P||I("")},[P]);const ke=()=>E.map(oe=>{for(const de of Object.values($)){const te=de.find(ie=>ie.id===oe);if(te)return te.name}return null}).filter(Boolean).join(", ");v.useEffect(()=>{j([]),A.current=!1,K===void 0&&(q.current=!1)},[g,K]),v.useEffect(()=>{if(q.current&&!A.current){const ce=K||[];j(oe=>JSON.stringify(oe.sort())!==JSON.stringify(ce.sort())?ce:oe)}A.current=!1},[K]);const Pe=Object.values($).every(ce=>Array.isArray(ce)&&ce.length===0);return t.jsxs("div",{className:"relative",ref:M,children:[t.jsx(et,{label:E.length>0?ke():a,onchange:()=>{},options:[],size:c,isOpen:P,setIsOpen:O,disabledClickOutside:!0,disabled:x,error:w,fontSizeLabelText:T,fontSizeTooltip:D,heightTooltip:z,leftTooltip:C,tooltip:k,topTooltip:R,widthTooltip:L,isTooltipVisible:V,labelText:f,subLabelText:_,fontSizeLabel:ee,withoutOptions:!0}),P&&t.jsxs("div",{className:"item-filter",style:{left:p?"0":"auto",right:p?"auto":"0",minWidth:m,width:u,position:Z?"relative":"absolute"},children:[t.jsxs("div",{children:[X&&t.jsx("div",{style:{padding:"4px 8px",fontSize:F,backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(at,{inputProperties:{placeholder:B,size:{width:"100%",height:"28px"},type:"text",onChange:ce=>I(ce.target.value),fontStyle:"italic"}})}),Q&&t.jsx("div",{style:{padding:"0px 15px",fontSize:F,borderBottom:"1px solid #D0D0CE",backgroundColor:(()=>{const ce=G();return ce.length>0&&ce.every(de=>E.includes(de.id))?"#f4f4f4":"transparent"})()},children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{checked:(()=>{const ce=G();return ce.length>0&&(ce==null?void 0:ce.every(oe=>E==null?void 0:E.includes(oe.id)))})(),onChange:le,sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:U,sx:{"& .MuiFormControlLabel-label":{fontSize:F,whiteSpace:b?"nowrap":"normal",overflow:"hidden",textOverflow:b?"ellipsis":"clip",textAlign:"start"}}})})]}),t.jsxs("div",{className:"items-list",children:[!Q&&y.trim()!==""?t.jsxs("div",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:F,overflowWrap:"break-word"},children:['No se encontraron resultados para "',y,'"']}):(()=>{const ce=Object.entries($).filter(([oe,de])=>{var Ne;if(!Array.isArray(de)||de.length===0)return!1;if(y.trim()==="")return!0;const te=y.toLowerCase(),ie=(Ne=oe==null?void 0:oe.toLowerCase())==null?void 0:Ne.includes(te),ze=de==null?void 0:de.some(De=>{var ae,Te;return(Te=(ae=De==null?void 0:De.name)==null?void 0:ae.toLowerCase())==null?void 0:Te.includes(te)});return ie||ze});return ce==null?void 0:ce.map(([oe,de],te)=>t.jsxs("div",{className:"item-group",style:{margin:s&&te===0?"8px":"0"},children:[oe!=="Ungrouped"&&s&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{style:{fontSize:F,margin:"0",fontStyle:"italic",fontWeight:"600",lineHeight:"22px"},children:oe}),t.jsx("div",{className:"item",style:{backgroundColor:(()=>{const ie=de==null?void 0:de.filter(Ne=>{var Te,Ge,st;if((y==null?void 0:y.trim())==="")return!0;const De=y==null?void 0:y.toLowerCase();return((Te=oe==null?void 0:oe.toLowerCase())==null?void 0:Te.includes(De))?!0:(st=(Ge=Ne==null?void 0:Ne.name)==null?void 0:Ge.toLowerCase())==null?void 0:st.includes(De)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(Ne=>E==null?void 0:E.includes(Ne.id)))?"#f4f4f4":"transparent"})()},children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{checked:(()=>{const ie=de.filter(ze=>{var ae,Te,Ge;if((y==null?void 0:y.trim())==="")return!0;const Ne=y==null?void 0:y.toLowerCase();return((ae=oe==null?void 0:oe.toLowerCase())==null?void 0:ae.includes(Ne))?!0:(Ge=(Te=ze==null?void 0:ze.name)==null?void 0:Te.toLowerCase())==null?void 0:Ge.includes(Ne)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(ze=>E==null?void 0:E.includes(ze.id)))})(),onChange:ie=>{A.current=!0;const Ne=de.filter(De=>{if(y.trim()==="")return!0;const ae=y.toLowerCase();return oe.toLowerCase().includes(ae)?!0:De.name.toLowerCase().includes(ae)}).map(De=>De.id);if(ie.target.checked){const De=Ne.filter(Te=>!E.includes(Te)),ae=[...E,...De];if(j(ae),o&&o(ae),l){const Te=he(ae);l(Te)}}else{const De=E.filter(ae=>!Ne.includes(ae));if(j(De),o&&o(De),l){const ae=he(De);l(ae)}}},sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:(()=>{if(s&&typeof e=="object"&&!Array.isArray(e)){const ie=e[oe];if(Array.isArray(ie)&&ie.length>0&&ie[0].groupLabel)return ie[0].groupLabel}return`Seleccionar ${oe}`})(),sx:{"& .MuiFormControlLabel-label":{fontSize:F,fontWeight:"400",lineHeight:"22px",whiteSpace:b?"nowrap":"normal",overflow:"hidden",textOverflow:b?"ellipsis":"clip"}}})})]}),de.filter(ie=>{if(y.trim()==="")return!0;const ze=y.toLowerCase();return oe.toLowerCase().includes(ze)?!0:ie.name.toLowerCase().includes(ze)}).map(ie=>t.jsx("div",{className:"item",style:{backgroundColor:E.includes(ie.id)?"#f4f4f4":"transparent"},children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{checked:E.includes(ie.id),onChange:()=>fe(ie.id),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:ie.name,sx:{"& .MuiFormControlLabel-label":{fontSize:F,fontWeight:"400",lineHeight:"22px",whiteSpace:b?"nowrap":"normal",overflow:"hidden",textOverflow:b?"ellipsis":"clip"}}})},ie.id))]},oe))})(),Pe&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:F,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"})]}),i&&t.jsx("div",{className:"containerButtonSelectAll",children:t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>_e()},children:d})})]})]})};tr.propTypes={data:n.array,grouped:n.bool,divideColumns:n.bool,selectButton:n.bool,onChange:n.func,onChangeFunction:n.func,label:n.string,width:n.string,textButton:n.string,maxHeight:n.string,keyReset:n.number,left:n.bool,minWidthDropdown:n.string,disabled:n.bool,textOverflow:n.bool,widthDropdown:n.string,error:n.bool,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,subLabelText:n.string,labelText:n.string,language:n.string,textSelectAll:n.string,placeholderSearch:n.string,isRelative:n.bool,selectedValues:n.array,fontSizeLabel:n.string,fontSizeOptions:n.string};const Do=e=>{var L;const[s,r]=v.useState(!1),{label:i,inputProperties:o,error:l,fontSizeLabel:a,subLabel:c,fontSizeInput:d,disabled:h,fontSizeTooltip:g,heightTooltip:p,leftTooltip:m,tooltip:x,topTooltip:b,widthTooltip:u,isTooltipVisible:w,keyReset:T}=e,D=V=>{o.handleChange&&o.handleChange(V)},z={...o};if(z.style&&z.style.width){const{width:V,..._}=z.style;z.style=_}const C=o==null?void 0:o.value,[k,R]=v.useState(C??"");return v.useEffect(()=>{C!==void 0&&R(C)},[C]),v.useEffect(()=>{T&&R("")},[T]),t.jsxs("div",{style:{width:(L=o==null?void 0:o.style)==null?void 0:L.width},children:[i&&t.jsx(Xt,{fontSizeTitle:a,fontSizeTooltip:g,heightTooltip:p,left:m,subTitle:c,title:i,tooltip:x,top:b,widthTooltip:u,isTooltipVisibleProp:w,marginBottom:"5px",htmlFor:(o==null?void 0:o.id)||"text-input"}),t.jsx(vs,{isfocused:s,haserror:l,style:{width:"100%"},children:t.jsx(js,{id:o==null?void 0:o.id,onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:D,fontSizeInput:d,...C!==void 0?{value:k}:{},disabled:h,style:{width:"90%"},...z})}),l&&t.jsx(Ti,{children:l})]})};Do.propTypes={label:n.string,inputProperties:n.object,error:n.bool,fontSizeLabel:n.string,subLabel:n.string,fontSizeInput:n.string,value:n.string,disabled:n.bool,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,keyReset:n.bool};const Oo=({handleReset:e,disabled:s})=>t.jsx("button",{className:`button-reset ${s?"disabled":""}`,onClick:()=>e(),disabled:s,children:t.jsx(Sn,{})});Oo.propTypes={handleReset:n.func,disabled:n.bool};const Ao=({width:e})=>t.jsxs(su,{style:{backgroundColor:"#f5f6fa",width:e},children:[t.jsx(er,{children:t.jsx(Cs,{width:"100%",height:"30px"})}),t.jsx(er,{children:t.jsx(ks,{width:"100%",height:"30px"})}),t.jsx(er,{children:t.jsx(ws,{width:"60%",height:"30px"})})]});Ao.propTypes={width:n.string};const ru={colors:{backgroundPrimary:"#f5f6fa",backgroundSecondary:"#ffffff",backgroundThird:"#DDE3F1",contrastPrimary:"#0b14a7",contrastSecondary:"#33A4DD",contrastBackground:"#d4eaf5",dangerPrimary:"#FF3F3F",textSecondary:"#97A7B9",secondaryColor:"#0047AB",circularComponentContrast:"#797979",bottonSecondary:"#d3ecf8",bottonSuccess:"#119672",circularComponentBackground:"#d3ecf8",circularComponentCheckBackground:"#c4ebe0",circularComponentBackgroundDisabled:"#797979",buttonBlueBackground:"#21459c"},size:{xs:"0.8vw",s:"1vw",m:"1.3vw",l:"1.5vw",xl:"2vw"},gap:{xs:"0.5vw",s:"1vw",m:"1.5vw",l:"2vw",xl:"2.5vw"},typography:{body1:{fontSize:"1rem"}}},Jt=e=>{const s=e==null?void 0:e.IconProp;return t.jsx(pe.ThemeProvider,{theme:ru,children:t.jsxs(tu,{...e.buttonProperties,children:[s&&t.jsx(s,{style:{width:"30px",height:"30px"}}),e.children]})})};Jt.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string,IconProp:n.any};const Io=e=>{const s={...e,buttonProperties:{backgroundcolor:"#119672",...e.buttonProperties,style:{color:"white",...e.buttonProperties.style}}};return t.jsx(Ye,{...s,children:e.children})};Io.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Ro=({onClick:e,width:s,fontSize:r,disabled:i,children:o="DESCARGAR",icon:l,diseableOption:a})=>{const[c,d]=v.useState(!1),h=v.useRef(null);v.useEffect(()=>{const p=m=>{h.current&&!h.current.contains(m.target)&&d(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]);const g=p=>{e(p),d(!1)};return t.jsxs("div",{className:`download-button-container ${i?"disabled":""}`,ref:h,style:{width:s},children:[t.jsx("button",{className:"download-button",onClick:()=>!i&&d(!c),children:t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.2vw",fontSize:r},children:[l,o]})}),t.jsx("div",{className:`arrowContainer ${i?"disabled":""}`,onClick:()=>!i&&d(!c),children:t.jsx("i",{className:`arrow-white ${c?"up":"down"}`})}),c&&t.jsxs("div",{className:"dropdown-menu",style:{width:s},children:[!(a!=null&&a.csv)&&t.jsx("button",{onClick:()=>g("csv"),children:"CSV"}),!(a!=null&&a.xlsx)&&t.jsx("button",{onClick:()=>g("xlsx"),children:"XLSX"})]})]})};Ro.propTypes={onClick:n.func,width:n.string,fontSize:n.string,disabled:n.bool,children:n.string,icon:n.element,diseableOption:n.object};const Po=({onclick:e,height:s})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:s},children:t.jsx($i,{})});Po.propTypes={onclick:n.func,height:n.string};const Wo=({onclick:e,height:s})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:s},children:t.jsx(Bi,{})});Wo.propTypes={onclick:n.func,height:n.string};const iu=Fe(t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),$o=e=>{const r={IconProp:iu,...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",border:"1px solid #21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Jt,{...r,children:e.children})};$o.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Bo=e=>{const r={...e,IconProp:Cn};return t.jsx(Jt,{...r})};Bo.propTypes={buttonProperties:n.shape({disabled:n.bool}),children:n.node||n.string,IconProp:n.node};const nr=e=>t.jsx(nu,{...e.buttonProperties,children:e.children});nr.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string};const Ot=e=>{const s={...e,buttonProperties:{backgroundcolor:"white",border:"1px solid #33a4dd",color:"#33a4dd",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Ye,{...s})};Ot.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const ou=Fe(t.jsx("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 10V8h-2v4H8l4 4 4-4z"}),"ArrowCircleDown"),Fo=e=>{const r={...e,IconProp:ou};return t.jsx(Jt,{...r})};Fo.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string,IconProp:n.node};const Lo=e=>{const{children:s,onChange:r,disabled:i,width:o,fontSize:l,id:a}=e,c={width:o||"auto",display:"inline-flex",alignItems:"center",justifyContent:"space-between",padding:"10px 20px",backgroundColor:i?"#7e8080":"#33a4dd",color:"white",borderRadius:"4px",border:"none",cursor:i?"not-allowed":"pointer",fontSize:l||"14px",transition:"background-color 0.3s",fontFamily:"'Roboto', sans-serif"},d={marginLeft:"10px",width:"20px",height:"20px"},h=g=>{const p=g.target.files[0];r(p)};return t.jsxs("div",{children:[t.jsx("input",{type:"file",id:a,accept:"image/*",disabled:i,style:{display:"none"},onChange:g=>h(g)}),t.jsxs("label",{htmlFor:a,style:c,children:[s,t.jsx(Cn,{style:d})]})]})};Lo.propTypes={children:n.node||n.string,onChange:n.func,disabled:n.bool,width:n.string,fontSize:n.string,id:n.string};const Ln=({buttonProperties:e={},...s})=>{const r={backgroundcolor:"transparent",border:"1px solid #fcb035",color:"black",...e,style:{...e.style}};return t.jsx(Ye,{...s,buttonProperties:r,children:s.children})};Ln.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const lu=Fe(t.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1"}),"AddBoxRounded"),_o=({marginBottom:e,onClick:s})=>t.jsx(lu,{sx:{color:"#8598ad",width:20,height:20,marginBottom:e,cursor:"pointer"},onClick:s});_o.propTypes={marginBottom:n.string,onClick:n.func};const Ho=e=>{const s={...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(nr,{...s})};Ho.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const sr=({children:e,buttonProperties:s,widthIcon:r="70%",icon:i=t.jsx(zs,{width:r})})=>t.jsxs(Ot,{buttonProperties:s,children:[i,e]});sr.propTypes={children:n.string,icon:n.node,buttonProperties:n.object,widthIcon:n.string};const Vo=({onChange:e,isOpen:s})=>{const[r,i]=v.useState(s),o=()=>{i(!r),e&&e(r)};return t.jsx("button",{className:"reset-styles-button",onClick:o,children:r?t.jsx(Ns,{}):t.jsx(Es,{})})};Vo.propTypes={onChange:n.func,isOpen:n.bool};const _n=({onChange:e,isOpen:s,color:r,hasHover:i,padding:o,display:l,height:a,width:c})=>t.jsx("button",{type:"button",onClick:()=>e(!s),className:`reset-styles-button arrow-button ${i?"hoverclass":""}`,style:{height:a,width:c,transition:"transform 0.3s ease",display:l},children:t.jsx("i",{className:`arrow-blue-container ${s?"up":"down"}`,style:{borderColor:r,padding:o}})});_n.propTypes={onChange:n.func,isOpen:n.bool,color:n.string,hasHover:n.bool,padding:n.string,display:n.string,height:n.string,width:n.string};const qo=({className:e,text:s,onClick:r})=>t.jsxs("button",{className:`button-clean-filters ${e} `,onClick:r,children:[t.jsx(As,{})," ",t.jsx("span",{children:s})]});qo.propTypes={className:n.string,text:n.string,onClick:n.func};const Uo=({textOpen:e,textClose:s,isOpen:r,onChange:i,className:o})=>{const[l,a]=v.useState(r);v.useEffect(()=>{a(r)},[r]);const c=()=>{const d=!l;a(d),i&&i(d)};return t.jsxs("button",{className:`button-vibrant-blue ${o}`,onClick:c,children:[t.jsx("span",{className:"button-eye-text",children:l?s:e}),l?t.jsx(Ns,{}):t.jsx(Es,{})]})};Uo.propTypes={textOpen:n.string,textClose:n.string,isOpen:n.bool,onChange:n.func,className:n.string};const Zo=({children:e,widthIcon:s="10%",width:r,icon:i=t.jsx(Rs,{width:s}),arrowRightIcon:o=t.jsx(Wn,{width:s}),hasOptions:l=!1,onClick:a,onOptionSelect:c,options:d,className:h,...g})=>{const[p,m]=v.useState(!1),x=v.useRef(null),b=u=>{m(!1),c==null||c(u)};return v.useEffect(()=>{const u=w=>{x.current&&!x.current.contains(w.target)&&m(!1)};return p&&document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[p]),t.jsxs("button",{ref:x,className:`button-white-border-blue-send-email ${h}`,...g,style:{width:r},onClick:()=>{l&&m(!p),a==null||a()},children:[i,e,l?t.jsx("i",{className:`arrow-white ${p?"up":"down"}`}):o,p&&d&&t.jsx("ul",{className:"dropdown-options--button-white-border",style:{width:r},children:d.map(u=>t.jsx("li",{className:"dropdown-options--button-white-border-li",onClick:()=>b(u),children:u.value},u.id))})]})};Zo.propTypes={children:n.string,icon:n.node,widthIcon:n.string,arrowRightIcon:n.node,hasOptions:n.bool,onClick:n.func,onOptionSelect:n.func,options:n.arrayOf(n.object),width:n.string,className:n.string};const Yo=e=>{const{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconLeft:c=t.jsx(Ps,{}),IconRight:d=t.jsx(Wn,{})}=e;return t.jsxs(No,{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,className:"VibrantBlueStyle ButtonVibrantBlueSend",style:{...a,display:"flex",alignItems:"center",gap:"15px",justifyContent:"center"},children:[c,e.children,d]})};Yo.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,backgroundcolor:n.string,border:n.string,color:n.string,style:n.object}),children:n.node||n.string,IconLeft:n.any,IconRight:n.any};const au=e=>{const{onChange:s}=e,[r,i]=v.useState(!1),o=v.useRef(null),l=v.useRef(null);return v.useEffect(()=>{const d=h=>{o.current&&!o.current.contains(h.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[]),{isOpen:r,dropdownRef:o,buttonRef:l,toggleDropdown:()=>{e.disabled||i(!r)},handleOptionSelect:d=>{i(!1),s&&s(d)}}},rr=v.forwardRef((e,s)=>{const{className:r="",buttonClassName:i="",disabled:o=!1,dropdownClassName:l="",id:a,children:c="CREAR NUEVO USUARIO",maxHeight:d="300px",options:h=[],width:g,height:p,fontSize:m="14px",icon:x,...b}=e,{isOpen:u,dropdownRef:w,buttonRef:T,toggleDropdown:D,handleOptionSelect:z}=au(e);v.useImperativeHandle(s,()=>({focus:()=>{var L;return(L=T.current)==null?void 0:L.focus()},blur:()=>{var L;return(L=T.current)==null?void 0:L.blur()},close:()=>D(!1)}));const C=["bs-button-dropdown-container",r].filter(Boolean).join(" "),k=["bs-button-dropdown",o&&"bs-button-disabled",u&&"bs-button-open",i].filter(Boolean).join(" "),R=["bs-dropdown-options",l].filter(Boolean).join(" ");return t.jsxs("div",{ref:w,className:C,style:{width:g,height:p},...b,children:[t.jsxs("button",{ref:T,className:k,onClick:D,disabled:o,style:{fontSize:m,height:p},children:[t.jsx("span",{className:"bs-button-label",children:c}),x?t.jsx(x,{className:`bs-icon ${u?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${u?"bs-arrow-up":"bs-arrow-down"}`})]}),u&&t.jsx("div",{className:R,role:"menu",children:t.jsx("ul",{className:"bs-options-list",style:{maxHeight:d},children:h.length===0?t.jsx("li",{className:"bs-no-options",children:"No hay opciones disponibles"}):h.map((L,V)=>t.jsxs("li",{className:"bs-option",onClick:()=>z(L),role:"menuitem",style:{fontSize:m},children:[t.jsx("span",{className:"bs-option-label",style:{fontSize:m},children:L.label}),L.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:m},children:L.description})]},L.id||L.value||V))})})]})});rr.displayName="ButtonWithOptions",rr.propTypes={id:n.string,children:n.node,options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string})),className:n.string,buttonClassName:n.string,disabled:n.bool,dropdownClassName:n.string,fontSize:n.string,icon:n.elementType,maxHeight:n.string,onChange:n.func,width:n.string,height:n.string};const ir=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-active",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Nn,{}),"Activo"]});ir.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const or=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-inactive",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Pi,{}),"Inactivo"]});or.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const lr=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-canceled",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Fi,{}),"Cancelada"]});lr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const ar=({width:e,fontSize:s,icon:r,marginAuto:i,height:o})=>{const[l,a]=v.useState(!1);return t.jsxs("div",{className:"state-basic states-completed",style:{width:e,fontSize:s,margin:i?"auto":"",height:o},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[t.jsx(Ri,{}),"Finalizada",r&&t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(An,{height:27,background:"#d8f6c4",fillIcon:"#ff0000"})}),r&&l&&t.jsx("div",{className:"absolute hoverStates",children:"Devoluciones"})]})};ar.propTypes={width:n.string,fontSize:n.string,icon:n.bool,marginAuto:n.bool,height:n.string};const cr=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-inTransit",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Wi,{}),"En tránsito",t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(An,{height:i})})]});cr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Go=({children:e,className:s="",classNameIcon:r="",fill:i="#54AC1B",...o})=>t.jsxs("div",{className:`state-basic ${s}`.trim(),...o,children:[t.jsx(Nn,{className:r,fill:i}),e]});Go.propTypes={children:n.node,className:n.string,classNameIcon:n.string,fill:n.string};const ct=Fe(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Ko=({width:e,fontSize:s,children:r,onDelete:i,background:o,fontWeight:l,id:a,className:c})=>t.jsxs("div",{className:`chip ${c}`,style:{width:e,fontSize:s,background:o,fontWeight:l},children:[r,t.jsx("button",{className:"reset-styles-button",onClick:()=>i({children:r,id:a}),children:t.jsx(ct,{sx:{color:"#8598ad",height:"16px"}})})]});Ko.propTypes={width:n.string,fontSize:n.string,children:n.any,onDelete:n.func,background:n.string,fontWeight:n.string,id:n.string,className:n.string};const Hn=({children:e,onChange:s,isSelect:r,height:i})=>t.jsx("div",{className:`toggle-chip ${r?"active":""}`,style:{height:i},onClick:()=>s({isSelect:!r,value:e}),children:e});Hn.propTypes={children:n.any,onChange:n.func,isSelect:n.bool,height:n.string};const Qo=({children:e,className:s=""})=>t.jsx("div",{className:`chip-section ${s}`,children:e});Qo.propTypes={children:n.node,className:n.string};const Xo=({text:e,icon:s,className:r,color:i,background:o,onDelete:l})=>t.jsxs("div",{className:`chip chip-with-icon ${r}`,style:{background:o},children:[s,t.jsx("span",{className:"chip-text",children:e}),l&&t.jsx("button",{className:"reset-styles-button",onClick:()=>l(e),children:t.jsx(ct,{sx:{color:i,height:"16px"}})}),!l&&t.jsx(ct,{sx:{color:i,height:"16px"}})]});Xo.propTypes={text:n.string,icon:n.element,className:n.string,color:n.string,background:n.string,onDelete:n.func};const cu=(e,s="en")=>{const r={en:"en-US",es:"es-ES"},i={day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1};return e.toLocaleDateString(s[r],i)},Jo=({date:e,language:s="es"})=>{const r=cu(e,s),i=s==="es"?"Última Actualización":"Last Update";return t.jsxs("div",{className:"last-update-container",children:[t.jsx("div",{className:"last-update-header",children:t.jsx("h2",{children:i})}),t.jsx("div",{className:"last-update-content",children:t.jsx("p",{children:r})})]})};Jo.propTypes={date:n.instanceOf(Date),language:n.string};const el=({title:e,sizeFile:s,onDelete:r,width:i,fontSize:o,typeFile:l="excel",widthIcon:a="30%",heightIcon:c="100%",gap:d="1.1vw"})=>t.jsxs("div",{className:"FilePreview container",style:{width:i,gap:d},children:[l==="excel"?t.jsx(Ss,{width:a,height:c}):t.jsx(Ai,{width:a,height:c}),t.jsx("p",{style:{fontSize:o},children:e}),t.jsxs("span",{style:{fontSize:o},children:["(",s," K)"]}),t.jsx("button",{onClick:r,children:t.jsx(Ii,{})})]});el.propTypes={title:n.string,sizeFile:n.string,onDelete:n.func,width:n.string,fontSize:n.string,typeFile:n.oneOf(["excel","pdf"]),widthIcon:n.string,heightIcon:n.string,gap:n.string};const At=({options:e,onClick:s,fontSize:r,width:i})=>{const[o,l]=v.useState(!1),a=v.useRef(null),c=d=>{s(d),l(!1)};return v.useEffect(()=>{const d=h=>{a.current&&!a.current.contains(h.target)&&l(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),t.jsxs("div",{className:"menu-options__container",ref:a,children:[t.jsx("button",{className:`menu-button reset-styles-button ${o?"open":""}`,onClick:()=>l(!o),children:t.jsx("span",{className:"menu-icon",children:t.jsx(Li,{})})}),o&&t.jsx("nav",{className:"menu-options",style:{width:i},children:e.map((d,h)=>t.jsx("div",{className:"menu-options__group",children:d.data.map((g,p)=>t.jsxs("button",{className:"menu-item",onClick:()=>c(g.text),children:[t.jsx("span",{className:"menu-icon",children:g.icon}),t.jsx("span",{className:"menu-text",style:{fontSize:r},children:g.text})]},p))},h))})]})};At.propTypes={options:n.arrayOf(n.shape({icon:n.element,text:n.string})),onClick:n.func,fontSize:n.string,width:n.string};const tl=pe.div`
485
+ `,Ye=e=>{const{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconProp:c}=e;return t.jsxs(No,{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,className:"VibrantBlueStyle",style:{...a,display:"flex",alignItems:"center",gap:"15px",justifyContent:"center"},children:[e.children,c&&t.jsx(c,{style:{width:"30px",height:"25px"}})]})};Ye.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,backgroundcolor:n.string,border:n.string,color:n.string,style:n.object}),children:n.node||n.string,IconProp:n.any};const tr=({data:e,grouped:s,divideColumns:r=!1,selectButton:i,onChange:o,onChangeFunction:l,label:a,width:c,textButton:d,maxHeight:h,keyReset:g,left:p=!1,minWidthDropdown:m="100%",disabled:x,textOverflow:b=!0,widthDropdown:u,error:w,fontSizeLabelText:T,fontSizeTooltip:D,heightTooltip:z,leftTooltip:C,tooltip:k,topTooltip:$,widthTooltip:B,isTooltipVisible:_,subLabelText:V,labelText:f,language:H="es",textSelectAll:U="Seleccionar Todo",placeholderSearch:F="Buscar...",isRelative:Z=!1,selectedValues:K,fontSizeLabel:ee,fontSizeOptions:L="1vw"})=>{const[E,j]=v.useState([]),[y,I]=v.useState(""),[R,O]=v.useState(!1),M=v.useRef(null),A=v.useRef(!1),q=v.useRef(K!==void 0);v.useEffect(()=>{K!==void 0&&(j(K),q.current=!0)},[K]);const W=eu(e,s),X=Object.values(W).flat().length>=Dt,G=()=>{if(y.trim()==="")return Object.values(W).flat();const ce=y.toLowerCase(),oe=[];return Object.entries(W).forEach(([de,te])=>{if(!Array.isArray(te)||te.length===0)return;if(de.toLowerCase().includes(ce))oe.push(...te);else{const ze=te.filter(Ne=>Ne.name.toLowerCase().includes(ce));oe.push(...ze)}}),oe},Q=G().length>0,he=ce=>ce.map(oe=>{let de=null;if(s&&typeof e=="object"&&!Array.isArray(e)){for(const te of Object.values(e))if(Array.isArray(te)&&(de=te.find(ie=>ie.id===oe),de))break}else Array.isArray(e)&&(de=e.find(te=>te.id===oe));if(de){const te={id:de.id,name:de.name};return de.value!==void 0&&(te.value=de.value),Object.keys(de).forEach(ie=>{Object.prototype.hasOwnProperty.call(te,ie)||(te[ie]=de[ie])}),te}return null}).filter(Boolean),le=ce=>{if(A.current=!0,ce.target.checked){const oe=G(),de=oe.map(ze=>ze.id),ie=[...E.filter(ze=>!oe.some(De=>De.id===ze)),...de];if(j(ie),o&&o(ie),l){const ze=he(ie);l(ze)}}else{const de=G().map(ie=>ie.id),te=E.filter(ie=>!de.includes(ie));if(j(te),o&&o(te),l){const ie=he(te);l(ie)}}},fe=ce=>{A.current=!0,j(oe=>{const de=oe.includes(ce)?oe.filter(te=>te!==ce):[...oe,ce];if(o&&o(de),l){const te=he(de);l(te)}return de})},_e=()=>{if(o&&o(E),l){const ce=he(E);l(ce)}O(!1)};v.useEffect(()=>{const ce=oe=>{M.current&&!M.current.contains(oe.target)&&O(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[M]),v.useEffect(()=>{R||I("")},[R]);const ke=()=>E.map(oe=>{for(const de of Object.values(W)){const te=de.find(ie=>ie.id===oe);if(te)return te.name}return null}).filter(Boolean).join(", ");v.useEffect(()=>{j([]),A.current=!1,K===void 0&&(q.current=!1)},[g,K]),v.useEffect(()=>{if(q.current&&!A.current){const ce=K||[];j(oe=>JSON.stringify(oe.sort())!==JSON.stringify(ce.sort())?ce:oe)}A.current=!1},[K]);const Pe=Object.values(W).every(ce=>Array.isArray(ce)&&ce.length===0);return t.jsxs("div",{className:"relative",ref:M,children:[t.jsx(et,{label:E.length>0?ke():a,onchange:()=>{},options:[],size:c,isOpen:R,setIsOpen:O,disabledClickOutside:!0,disabled:x,error:w,fontSizeLabelText:T,fontSizeTooltip:D,heightTooltip:z,leftTooltip:C,tooltip:k,topTooltip:$,widthTooltip:B,isTooltipVisible:_,labelText:f,subLabelText:V,fontSizeLabel:ee,withoutOptions:!0}),R&&t.jsxs("div",{className:"item-filter",style:{left:p?"0":"auto",right:p?"auto":"0",minWidth:m,width:u,position:Z?"relative":"absolute"},children:[t.jsxs("div",{children:[X&&t.jsx("div",{style:{padding:"4px 8px",fontSize:L,backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(at,{inputProperties:{placeholder:F,size:{width:"100%",height:"28px"},type:"text",onChange:ce=>I(ce.target.value),fontStyle:"italic"}})}),Q&&t.jsx("div",{style:{padding:"0px 15px",fontSize:L,borderBottom:"1px solid #D0D0CE",backgroundColor:(()=>{const ce=G();return ce.length>0&&ce.every(de=>E.includes(de.id))?"#f4f4f4":"transparent"})()},children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{checked:(()=>{const ce=G();return ce.length>0&&(ce==null?void 0:ce.every(oe=>E==null?void 0:E.includes(oe.id)))})(),onChange:le,sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:U,sx:{"& .MuiFormControlLabel-label":{fontSize:L,whiteSpace:b?"nowrap":"normal",overflow:"hidden",textOverflow:b?"ellipsis":"clip",textAlign:"start"}}})})]}),t.jsxs("div",{className:"items-list",children:[!Q&&y.trim()!==""?t.jsxs("div",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:L,overflowWrap:"break-word"},children:['No se encontraron resultados para "',y,'"']}):(()=>{const ce=Object.entries(W).filter(([oe,de])=>{var Ne;if(!Array.isArray(de)||de.length===0)return!1;if(y.trim()==="")return!0;const te=y.toLowerCase(),ie=(Ne=oe==null?void 0:oe.toLowerCase())==null?void 0:Ne.includes(te),ze=de==null?void 0:de.some(De=>{var ae,Te;return(Te=(ae=De==null?void 0:De.name)==null?void 0:ae.toLowerCase())==null?void 0:Te.includes(te)});return ie||ze});return ce==null?void 0:ce.map(([oe,de],te)=>t.jsxs("div",{className:"item-group",style:{margin:s&&te===0?"8px":"0"},children:[oe!=="Ungrouped"&&s&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{style:{fontSize:L,margin:"0",fontStyle:"italic",fontWeight:"600",lineHeight:"22px"},children:oe}),t.jsx("div",{className:"item",style:{backgroundColor:(()=>{const ie=de==null?void 0:de.filter(Ne=>{var Te,Ge,st;if((y==null?void 0:y.trim())==="")return!0;const De=y==null?void 0:y.toLowerCase();return((Te=oe==null?void 0:oe.toLowerCase())==null?void 0:Te.includes(De))?!0:(st=(Ge=Ne==null?void 0:Ne.name)==null?void 0:Ge.toLowerCase())==null?void 0:st.includes(De)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(Ne=>E==null?void 0:E.includes(Ne.id)))?"#f4f4f4":"transparent"})()},children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{checked:(()=>{const ie=de.filter(ze=>{var ae,Te,Ge;if((y==null?void 0:y.trim())==="")return!0;const Ne=y==null?void 0:y.toLowerCase();return((ae=oe==null?void 0:oe.toLowerCase())==null?void 0:ae.includes(Ne))?!0:(Ge=(Te=ze==null?void 0:ze.name)==null?void 0:Te.toLowerCase())==null?void 0:Ge.includes(Ne)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(ze=>E==null?void 0:E.includes(ze.id)))})(),onChange:ie=>{A.current=!0;const Ne=de.filter(De=>{if(y.trim()==="")return!0;const ae=y.toLowerCase();return oe.toLowerCase().includes(ae)?!0:De.name.toLowerCase().includes(ae)}).map(De=>De.id);if(ie.target.checked){const De=Ne.filter(Te=>!E.includes(Te)),ae=[...E,...De];if(j(ae),o&&o(ae),l){const Te=he(ae);l(Te)}}else{const De=E.filter(ae=>!Ne.includes(ae));if(j(De),o&&o(De),l){const ae=he(De);l(ae)}}},sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:(()=>{if(s&&typeof e=="object"&&!Array.isArray(e)){const ie=e[oe];if(Array.isArray(ie)&&ie.length>0&&ie[0].groupLabel)return ie[0].groupLabel}return`Seleccionar ${oe}`})(),sx:{"& .MuiFormControlLabel-label":{fontSize:L,fontWeight:"400",lineHeight:"22px",whiteSpace:b?"nowrap":"normal",overflow:"hidden",textOverflow:b?"ellipsis":"clip"}}})})]}),de.filter(ie=>{if(y.trim()==="")return!0;const ze=y.toLowerCase();return oe.toLowerCase().includes(ze)?!0:ie.name.toLowerCase().includes(ze)}).map(ie=>t.jsx("div",{className:"item",style:{backgroundColor:E.includes(ie.id)?"#f4f4f4":"transparent"},children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{checked:E.includes(ie.id),onChange:()=>fe(ie.id),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:ie.name,sx:{"& .MuiFormControlLabel-label":{fontSize:L,fontWeight:"400",lineHeight:"22px",whiteSpace:b?"nowrap":"normal",overflow:"hidden",textOverflow:b?"ellipsis":"clip"}}})},ie.id))]},oe))})(),Pe&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:L,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"})]}),i&&t.jsx("div",{className:"containerButtonSelectAll",children:t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>_e()},children:d})})]})]})};tr.propTypes={data:n.array,grouped:n.bool,divideColumns:n.bool,selectButton:n.bool,onChange:n.func,onChangeFunction:n.func,label:n.string,width:n.string,textButton:n.string,maxHeight:n.string,keyReset:n.number,left:n.bool,minWidthDropdown:n.string,disabled:n.bool,textOverflow:n.bool,widthDropdown:n.string,error:n.bool,fontSizeLabelText:n.string,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,subLabelText:n.string,labelText:n.string,language:n.string,textSelectAll:n.string,placeholderSearch:n.string,isRelative:n.bool,selectedValues:n.array,fontSizeLabel:n.string,fontSizeOptions:n.string};const Do=e=>{var B;const[s,r]=v.useState(!1),{label:i,inputProperties:o,error:l,fontSizeLabel:a,subLabel:c,fontSizeInput:d,disabled:h,fontSizeTooltip:g,heightTooltip:p,leftTooltip:m,tooltip:x,topTooltip:b,widthTooltip:u,isTooltipVisible:w,keyReset:T}=e,D=_=>{o.handleChange&&o.handleChange(_)},z={...o};if(z.style&&z.style.width){const{width:_,...V}=z.style;z.style=V}const C=o==null?void 0:o.value,[k,$]=v.useState(C??"");return v.useEffect(()=>{C!==void 0&&$(C)},[C]),v.useEffect(()=>{T&&$("")},[T]),t.jsxs("div",{style:{width:(B=o==null?void 0:o.style)==null?void 0:B.width},children:[i&&t.jsx(Xt,{fontSizeTitle:a,fontSizeTooltip:g,heightTooltip:p,left:m,subTitle:c,title:i,tooltip:x,top:b,widthTooltip:u,isTooltipVisibleProp:w,marginBottom:"5px",htmlFor:(o==null?void 0:o.id)||"text-input"}),t.jsx(vs,{isfocused:s,haserror:l,style:{width:"100%"},children:t.jsx(js,{id:o==null?void 0:o.id,onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:D,fontSizeInput:d,...C!==void 0?{value:k}:{},disabled:h,style:{width:"90%"},...z})}),l&&t.jsx(Ti,{children:l})]})};Do.propTypes={label:n.string,inputProperties:n.object,error:n.bool,fontSizeLabel:n.string,subLabel:n.string,fontSizeInput:n.string,value:n.string,disabled:n.bool,fontSizeTooltip:n.string,heightTooltip:n.string,leftTooltip:n.string,tooltip:n.string,topTooltip:n.string,widthTooltip:n.string,isTooltipVisible:n.bool,keyReset:n.bool};const Oo=({handleReset:e,disabled:s})=>t.jsx("button",{className:`button-reset ${s?"disabled":""}`,onClick:()=>e(),disabled:s,children:t.jsx(Sn,{})});Oo.propTypes={handleReset:n.func,disabled:n.bool};const Ao=({width:e})=>t.jsxs(su,{style:{backgroundColor:"#f5f6fa",width:e},children:[t.jsx(er,{children:t.jsx(Cs,{width:"100%",height:"30px"})}),t.jsx(er,{children:t.jsx(ks,{width:"100%",height:"30px"})}),t.jsx(er,{children:t.jsx(ws,{width:"60%",height:"30px"})})]});Ao.propTypes={width:n.string};const ru={colors:{backgroundPrimary:"#f5f6fa",backgroundSecondary:"#ffffff",backgroundThird:"#DDE3F1",contrastPrimary:"#0b14a7",contrastSecondary:"#33A4DD",contrastBackground:"#d4eaf5",dangerPrimary:"#FF3F3F",textSecondary:"#97A7B9",secondaryColor:"#0047AB",circularComponentContrast:"#797979",bottonSecondary:"#d3ecf8",bottonSuccess:"#119672",circularComponentBackground:"#d3ecf8",circularComponentCheckBackground:"#c4ebe0",circularComponentBackgroundDisabled:"#797979",buttonBlueBackground:"#21459c"},size:{xs:"0.8vw",s:"1vw",m:"1.3vw",l:"1.5vw",xl:"2vw"},gap:{xs:"0.5vw",s:"1vw",m:"1.5vw",l:"2vw",xl:"2.5vw"},typography:{body1:{fontSize:"1rem"}}},Jt=e=>{const s=e==null?void 0:e.IconProp;return t.jsx(pe.ThemeProvider,{theme:ru,children:t.jsxs(tu,{...e.buttonProperties,children:[s&&t.jsx(s,{style:{width:"30px",height:"30px"}}),e.children]})})};Jt.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string,IconProp:n.any};const Io=e=>{const s={...e,buttonProperties:{backgroundcolor:"#119672",...e.buttonProperties,style:{color:"white",...e.buttonProperties.style}}};return t.jsx(Ye,{...s,children:e.children})};Io.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Ro=({onClick:e,width:s,fontSize:r,disabled:i,children:o="DESCARGAR",icon:l,diseableOption:a})=>{const[c,d]=v.useState(!1),h=v.useRef(null);v.useEffect(()=>{const p=m=>{h.current&&!h.current.contains(m.target)&&d(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]);const g=p=>{e(p),d(!1)};return t.jsxs("div",{className:`download-button-container ${i?"disabled":""}`,ref:h,style:{width:s},children:[t.jsx("button",{className:"download-button",onClick:()=>!i&&d(!c),children:t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.2vw",fontSize:r},children:[l,o]})}),t.jsx("div",{className:`arrowContainer ${i?"disabled":""}`,onClick:()=>!i&&d(!c),children:t.jsx("i",{className:`arrow-white ${c?"up":"down"}`})}),c&&t.jsxs("div",{className:"dropdown-menu",style:{width:s},children:[!(a!=null&&a.csv)&&t.jsx("button",{onClick:()=>g("csv"),children:"CSV"}),!(a!=null&&a.xlsx)&&t.jsx("button",{onClick:()=>g("xlsx"),children:"XLSX"})]})]})};Ro.propTypes={onClick:n.func,width:n.string,fontSize:n.string,disabled:n.bool,children:n.string,icon:n.element,diseableOption:n.object};const Po=({onclick:e,height:s})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:s},children:t.jsx($i,{})});Po.propTypes={onclick:n.func,height:n.string};const Wo=({onclick:e,height:s})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:s},children:t.jsx(Bi,{})});Wo.propTypes={onclick:n.func,height:n.string};const iu=Fe(t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),$o=e=>{const r={IconProp:iu,...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",border:"1px solid #21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Jt,{...r,children:e.children})};$o.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Bo=e=>{const r={...e,IconProp:Cn};return t.jsx(Jt,{...r})};Bo.propTypes={buttonProperties:n.shape({disabled:n.bool}),children:n.node||n.string,IconProp:n.node};const nr=e=>t.jsx(nu,{...e.buttonProperties,children:e.children});nr.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string};const Ot=e=>{const s={...e,buttonProperties:{backgroundcolor:"white",border:"1px solid #33a4dd",color:"#33a4dd",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Ye,{...s})};Ot.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const ou=Fe(t.jsx("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 10V8h-2v4H8l4 4 4-4z"}),"ArrowCircleDown"),Fo=e=>{const r={...e,IconProp:ou};return t.jsx(Jt,{...r})};Fo.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string,IconProp:n.node};const Lo=e=>{const{children:s,onChange:r,disabled:i,width:o,fontSize:l,id:a}=e,c={width:o||"auto",display:"inline-flex",alignItems:"center",justifyContent:"space-between",padding:"10px 20px",backgroundColor:i?"#7e8080":"#33a4dd",color:"white",borderRadius:"4px",border:"none",cursor:i?"not-allowed":"pointer",fontSize:l||"14px",transition:"background-color 0.3s",fontFamily:"'Roboto', sans-serif"},d={marginLeft:"10px",width:"20px",height:"20px"},h=g=>{const p=g.target.files[0];r(p)};return t.jsxs("div",{children:[t.jsx("input",{type:"file",id:a,accept:"image/*",disabled:i,style:{display:"none"},onChange:g=>h(g)}),t.jsxs("label",{htmlFor:a,style:c,children:[s,t.jsx(Cn,{style:d})]})]})};Lo.propTypes={children:n.node||n.string,onChange:n.func,disabled:n.bool,width:n.string,fontSize:n.string,id:n.string};const Ln=({buttonProperties:e={},...s})=>{const r={backgroundcolor:"transparent",border:"1px solid #fcb035",color:"black",...e,style:{...e.style}};return t.jsx(Ye,{...s,buttonProperties:r,children:s.children})};Ln.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const lu=Fe(t.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1"}),"AddBoxRounded"),_o=({marginBottom:e,onClick:s})=>t.jsx(lu,{sx:{color:"#8598ad",width:20,height:20,marginBottom:e,cursor:"pointer"},onClick:s});_o.propTypes={marginBottom:n.string,onClick:n.func};const Ho=e=>{const s={...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(nr,{...s})};Ho.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const sr=({children:e,buttonProperties:s,widthIcon:r="70%",icon:i=t.jsx(zs,{width:r})})=>t.jsxs(Ot,{buttonProperties:s,children:[i,e]});sr.propTypes={children:n.string,icon:n.node,buttonProperties:n.object,widthIcon:n.string};const Vo=({onChange:e,isOpen:s})=>{const[r,i]=v.useState(s),o=()=>{i(!r),e&&e(r)};return t.jsx("button",{className:"reset-styles-button",onClick:o,children:r?t.jsx(Ns,{}):t.jsx(Es,{})})};Vo.propTypes={onChange:n.func,isOpen:n.bool};const _n=({onChange:e,isOpen:s,color:r,hasHover:i,padding:o,display:l,height:a,width:c})=>t.jsx("button",{type:"button",onClick:()=>e(!s),className:`reset-styles-button arrow-button ${i?"hoverclass":""}`,style:{height:a,width:c,transition:"transform 0.3s ease",display:l},children:t.jsx("i",{className:`arrow-blue-container ${s?"up":"down"}`,style:{borderColor:r,padding:o}})});_n.propTypes={onChange:n.func,isOpen:n.bool,color:n.string,hasHover:n.bool,padding:n.string,display:n.string,height:n.string,width:n.string};const qo=({className:e,text:s,onClick:r})=>t.jsxs("button",{className:`button-clean-filters ${e} `,onClick:r,children:[t.jsx(As,{})," ",t.jsx("span",{children:s})]});qo.propTypes={className:n.string,text:n.string,onClick:n.func};const Uo=({textOpen:e,textClose:s,isOpen:r,onChange:i,className:o})=>{const[l,a]=v.useState(r);v.useEffect(()=>{a(r)},[r]);const c=()=>{const d=!l;a(d),i&&i(d)};return t.jsxs("button",{className:`button-vibrant-blue ${o}`,onClick:c,children:[t.jsx("span",{className:"button-eye-text",children:l?s:e}),l?t.jsx(Ns,{}):t.jsx(Es,{})]})};Uo.propTypes={textOpen:n.string,textClose:n.string,isOpen:n.bool,onChange:n.func,className:n.string};const Zo=({children:e,widthIcon:s="10%",width:r,icon:i=t.jsx(Rs,{width:s}),arrowRightIcon:o=t.jsx(Wn,{width:s}),hasOptions:l=!1,onClick:a,onOptionSelect:c,options:d,className:h,...g})=>{const[p,m]=v.useState(!1),x=v.useRef(null),b=u=>{m(!1),c==null||c(u)};return v.useEffect(()=>{const u=w=>{x.current&&!x.current.contains(w.target)&&m(!1)};return p&&document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[p]),t.jsxs("button",{ref:x,className:`button-white-border-blue-send-email ${h}`,...g,style:{width:r},onClick:()=>{l&&m(!p),a==null||a()},children:[i,e,l?t.jsx("i",{className:`arrow-white ${p?"up":"down"}`}):o,p&&d&&t.jsx("ul",{className:"dropdown-options--button-white-border",style:{width:r},children:d.map(u=>t.jsx("li",{className:"dropdown-options--button-white-border-li",onClick:()=>b(u),children:u.value},u.id))})]})};Zo.propTypes={children:n.string,icon:n.node,widthIcon:n.string,arrowRightIcon:n.node,hasOptions:n.bool,onClick:n.func,onOptionSelect:n.func,options:n.arrayOf(n.object),width:n.string,className:n.string};const Yo=e=>{const{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconLeft:c=t.jsx(Ps,{}),IconRight:d=t.jsx(Wn,{})}=e;return t.jsxs(No,{disabled:s,onClick:r,backgroundcolor:i,border:o,color:l,className:"VibrantBlueStyle ButtonVibrantBlueSend",style:{...a,display:"flex",alignItems:"center",gap:"15px",justifyContent:"center"},children:[c,e.children,d]})};Yo.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,backgroundcolor:n.string,border:n.string,color:n.string,style:n.object}),children:n.node||n.string,IconLeft:n.any,IconRight:n.any};const au=e=>{const{onChange:s}=e,[r,i]=v.useState(!1),o=v.useRef(null),l=v.useRef(null);return v.useEffect(()=>{const d=h=>{o.current&&!o.current.contains(h.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[]),{isOpen:r,dropdownRef:o,buttonRef:l,toggleDropdown:()=>{e.disabled||i(!r)},handleOptionSelect:d=>{i(!1),s&&s(d)}}},rr=v.forwardRef((e,s)=>{const{className:r="",buttonClassName:i="",disabled:o=!1,dropdownClassName:l="",id:a,children:c="CREAR NUEVO USUARIO",maxHeight:d="300px",options:h=[],width:g,height:p,fontSize:m="14px",icon:x,...b}=e,{isOpen:u,dropdownRef:w,buttonRef:T,toggleDropdown:D,handleOptionSelect:z}=au(e);v.useImperativeHandle(s,()=>({focus:()=>{var B;return(B=T.current)==null?void 0:B.focus()},blur:()=>{var B;return(B=T.current)==null?void 0:B.blur()},close:()=>D(!1)}));const C=["bs-button-dropdown-container",r].filter(Boolean).join(" "),k=["bs-button-dropdown",o&&"bs-button-disabled",u&&"bs-button-open",i].filter(Boolean).join(" "),$=["bs-dropdown-options",l].filter(Boolean).join(" ");return t.jsxs("div",{ref:w,className:C,style:{width:g,height:p},...b,children:[t.jsxs("button",{ref:T,className:k,onClick:D,disabled:o,style:{fontSize:m,height:p},children:[t.jsx("span",{className:"bs-button-label",children:c}),x?t.jsx(x,{className:`bs-icon ${u?"bs-icon-up":""}`}):t.jsx("i",{className:`bs-arrow ${u?"bs-arrow-up":"bs-arrow-down"}`})]}),u&&t.jsx("div",{className:$,role:"menu",children:t.jsx("ul",{className:"bs-options-list",style:{maxHeight:d},children:h.length===0?t.jsx("li",{className:"bs-no-options",children:"No hay opciones disponibles"}):h.map((B,_)=>t.jsxs("li",{className:"bs-option",onClick:()=>z(B),role:"menuitem",style:{fontSize:m},children:[t.jsx("span",{className:"bs-option-label",style:{fontSize:m},children:B.label}),B.description&&t.jsx("span",{className:"bs-option-description",style:{fontSize:m},children:B.description})]},B.id||B.value||_))})})]})});rr.displayName="ButtonWithOptions",rr.propTypes={id:n.string,children:n.node,options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired,description:n.string})),className:n.string,buttonClassName:n.string,disabled:n.bool,dropdownClassName:n.string,fontSize:n.string,icon:n.elementType,maxHeight:n.string,onChange:n.func,width:n.string,height:n.string};const ir=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-active",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Nn,{}),"Activo"]});ir.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const or=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-inactive",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Pi,{}),"Inactivo"]});or.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const lr=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-canceled",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Fi,{}),"Cancelada"]});lr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const ar=({width:e,fontSize:s,icon:r,marginAuto:i,height:o})=>{const[l,a]=v.useState(!1);return t.jsxs("div",{className:"state-basic states-completed",style:{width:e,fontSize:s,margin:i?"auto":"",height:o},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[t.jsx(Ri,{}),"Finalizada",r&&t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(An,{height:27,background:"#d8f6c4",fillIcon:"#ff0000"})}),r&&l&&t.jsx("div",{className:"absolute hoverStates",children:"Devoluciones"})]})};ar.propTypes={width:n.string,fontSize:n.string,icon:n.bool,marginAuto:n.bool,height:n.string};const cr=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-inTransit",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Wi,{}),"En tránsito",t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(An,{height:i})})]});cr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Go=({children:e,className:s="",classNameIcon:r="",fill:i="#54AC1B",...o})=>t.jsxs("div",{className:`state-basic ${s}`.trim(),...o,children:[t.jsx(Nn,{className:r,fill:i}),e]});Go.propTypes={children:n.node,className:n.string,classNameIcon:n.string,fill:n.string};const ct=Fe(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Ko=({width:e,fontSize:s,children:r,onDelete:i,background:o,fontWeight:l,id:a,className:c})=>t.jsxs("div",{className:`chip ${c}`,style:{width:e,fontSize:s,background:o,fontWeight:l},children:[r,t.jsx("button",{className:"reset-styles-button",onClick:()=>i({children:r,id:a}),children:t.jsx(ct,{sx:{color:"#8598ad",height:"16px"}})})]});Ko.propTypes={width:n.string,fontSize:n.string,children:n.any,onDelete:n.func,background:n.string,fontWeight:n.string,id:n.string,className:n.string};const Hn=({children:e,onChange:s,isSelect:r,height:i})=>t.jsx("div",{className:`toggle-chip ${r?"active":""}`,style:{height:i},onClick:()=>s({isSelect:!r,value:e}),children:e});Hn.propTypes={children:n.any,onChange:n.func,isSelect:n.bool,height:n.string};const Qo=({children:e,className:s=""})=>t.jsx("div",{className:`chip-section ${s}`,children:e});Qo.propTypes={children:n.node,className:n.string};const Xo=({text:e,icon:s,className:r,color:i,background:o,onDelete:l})=>t.jsxs("div",{className:`chip chip-with-icon ${r}`,style:{background:o},children:[s,t.jsx("span",{className:"chip-text",children:e}),l&&t.jsx("button",{className:"reset-styles-button",onClick:()=>l(e),children:t.jsx(ct,{sx:{color:i,height:"16px"}})}),!l&&t.jsx(ct,{sx:{color:i,height:"16px"}})]});Xo.propTypes={text:n.string,icon:n.element,className:n.string,color:n.string,background:n.string,onDelete:n.func};const cu=(e,s="en")=>{const r={en:"en-US",es:"es-ES"},i={day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1};return e.toLocaleDateString(s[r],i)},Jo=({date:e,language:s="es"})=>{const r=cu(e,s),i=s==="es"?"Última Actualización":"Last Update";return t.jsxs("div",{className:"last-update-container",children:[t.jsx("div",{className:"last-update-header",children:t.jsx("h2",{children:i})}),t.jsx("div",{className:"last-update-content",children:t.jsx("p",{children:r})})]})};Jo.propTypes={date:n.instanceOf(Date),language:n.string};const el=({title:e,sizeFile:s,onDelete:r,width:i,fontSize:o,typeFile:l="excel",widthIcon:a="30%",heightIcon:c="100%",gap:d="1.1vw"})=>t.jsxs("div",{className:"FilePreview container",style:{width:i,gap:d},children:[l==="excel"?t.jsx(Ss,{width:a,height:c}):t.jsx(Ai,{width:a,height:c}),t.jsx("p",{style:{fontSize:o},children:e}),t.jsxs("span",{style:{fontSize:o},children:["(",s," K)"]}),t.jsx("button",{onClick:r,children:t.jsx(Ii,{})})]});el.propTypes={title:n.string,sizeFile:n.string,onDelete:n.func,width:n.string,fontSize:n.string,typeFile:n.oneOf(["excel","pdf"]),widthIcon:n.string,heightIcon:n.string,gap:n.string};const At=({options:e,onClick:s,fontSize:r,width:i})=>{const[o,l]=v.useState(!1),a=v.useRef(null),c=d=>{s(d),l(!1)};return v.useEffect(()=>{const d=h=>{a.current&&!a.current.contains(h.target)&&l(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),t.jsxs("div",{className:"menu-options__container",ref:a,children:[t.jsx("button",{className:`menu-button reset-styles-button ${o?"open":""}`,onClick:()=>l(!o),children:t.jsx("span",{className:"menu-icon",children:t.jsx(Li,{})})}),o&&t.jsx("nav",{className:"menu-options",style:{width:i},children:e.map((d,h)=>t.jsx("div",{className:"menu-options__group",children:d.data.map((g,p)=>t.jsxs("button",{className:"menu-item",onClick:()=>c(g.text),children:[t.jsx("span",{className:"menu-icon",children:g.icon}),t.jsx("span",{className:"menu-text",style:{fontSize:r},children:g.text})]},p))},h))})]})};At.propTypes={options:n.arrayOf(n.shape({icon:n.element,text:n.string})),onClick:n.func,fontSize:n.string,width:n.string};const tl=pe.div`
486
486
  width: 500px;
487
487
  padding: 12.4px;
488
488
  display: flex;
@@ -495,4 +495,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${s}Chann
495
495
  border: none;
496
496
  background: none;
497
497
  cursor: pointer;
498
- `,nl=({children:e,height:s,width:r,style:i})=>t.jsx(tl,{style:{height:s,width:r,...i},children:e});nl.propTypes={children:n.any,width:n.string,height:n.string,style:n.object};const sl=({title:e,height:s,width:r,style:i,children:o})=>{const[l,a]=v.useState(!1);return t.jsxs(tl,{style:{height:l?"auto":s,width:r,...i,borderRadius:"0px",boxShadow:"none",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e,t.jsx(du,{onClick:()=>a(!l),children:t.jsx("i",{className:`arrow-grey-container ${l?"up":"down"}`})})]}),l&&t.jsx("div",{style:{paddingTop:"8px"},children:o})," "]})};sl.propTypes={title:n.node,width:n.string,height:n.string,style:n.object,children:n.node};const rl=({fileType:e="excel",onClick:s,className:r="",icon:i,isClickable:o=!0,data:l,fontSize:a})=>{const{title:c}=l,d=()=>{o&&s&&s(l)},h=p=>{o&&s&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),s(l))},g=()=>{switch(e){case"excel":return t.jsx(Rn,{});case"word":return t.jsxs("svg",{width:"76",height:"63",viewBox:"0 0 76 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"8",y:"8",width:"60",height:"47",rx:"4",fill:"#2B579A"}),t.jsx("rect",{x:"12",y:"12",width:"52",height:"39",rx:"2",fill:"#2F5F8F"}),t.jsx("text",{x:"38",y:"20",textAnchor:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"DOC"}),t.jsx("rect",{x:"18",y:"25",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"29",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"33",width:"30",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"37",width:"35",height:"2",fill:"white"})]});case"pdf":return t.jsxs("svg",{width:"76",height:"63",viewBox:"0 0 76 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"8",y:"8",width:"60",height:"47",rx:"4",fill:"#D93025"}),t.jsx("rect",{x:"12",y:"12",width:"52",height:"39",rx:"2",fill:"#EA4335"}),t.jsx("text",{x:"38",y:"20",textAnchor:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"PDF"}),t.jsx("rect",{x:"18",y:"25",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"29",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"33",width:"30",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"37",width:"35",height:"2",fill:"white"})]});default:return t.jsxs("svg",{width:"76",height:"63",viewBox:"0 0 76 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"8",y:"8",width:"60",height:"47",rx:"4",fill:"#9AA0A6"}),t.jsx("rect",{x:"12",y:"12",width:"52",height:"39",rx:"2",fill:"#BDC1C6"}),t.jsx("rect",{x:"18",y:"25",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"29",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"33",width:"30",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"37",width:"35",height:"2",fill:"white"})]})}};return t.jsxs("div",{className:`file-card ${o?"file-card--clickable":""} ${r}`,onClick:d,onKeyDown:h,tabIndex:o?0:-1,role:o?"button":"presentation","aria-label":o?`Abrir archivo ${c}`:void 0,children:[t.jsxs("div",{className:"file-card__icon-container",children:[i||g(),t.jsx("div",{className:"file-card__download-icon",children:t.jsx(Pn,{width:16,height:16})})]}),t.jsx("div",{className:"file-card__title",style:{fontSize:a},children:c})]})};rl.propTypes={data:n.object.isRequired,fileType:n.oneOf(["excel","word","pdf","generic"]),onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool};const il=({data:e,fileType:s="excel",onClick:r,className:i="",icon:o,isClickable:l=!0,isSelected:a=!1})=>{const{title:c}=e,d=()=>{l&&r&&r(e)},h=p=>{l&&r&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),r(e))},g=()=>{switch(s){case"excel":return t.jsx(Rn,{width:"32px"});case"word":return t.jsxs("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"2",width:"28",height:"22",rx:"2",fill:"#2B579A"}),t.jsx("rect",{x:"4",y:"4",width:"24",height:"18",rx:"1",fill:"#2F5F8F"}),t.jsx("text",{x:"16",y:"10",textAnchor:"middle",fill:"white",fontSize:"6",fontWeight:"bold",children:"DOC"}),t.jsx("rect",{x:"7",y:"12",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"14",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"16",width:"14",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"18",width:"16",height:"1",fill:"white"})]});case"pdf":return t.jsxs("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"2",width:"28",height:"22",rx:"2",fill:"#D93025"}),t.jsx("rect",{x:"4",y:"4",width:"24",height:"18",rx:"1",fill:"#EA4335"}),t.jsx("text",{x:"16",y:"10",textAnchor:"middle",fill:"white",fontSize:"6",fontWeight:"bold",children:"PDF"}),t.jsx("rect",{x:"7",y:"12",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"14",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"16",width:"14",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"18",width:"16",height:"1",fill:"white"})]});default:return t.jsxs("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"2",width:"28",height:"22",rx:"2",fill:"#9AA0A6"}),t.jsx("rect",{x:"4",y:"4",width:"24",height:"18",rx:"1",fill:"#BDC1C6"}),t.jsx("rect",{x:"7",y:"12",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"14",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"16",width:"14",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"18",width:"16",height:"1",fill:"white"})]})}};return t.jsxs("div",{className:`file-card-minimized ${l?"file-card-minimized--clickable":""} ${a?"file-card-minimized--selected":""} ${i}`,onClick:d,onKeyDown:h,tabIndex:l?0:-1,role:l?"button":"presentation","aria-label":l?`Abrir archivo ${c}`:void 0,children:[t.jsxs("div",{className:"file-card-minimized__icon-container",children:[o||g(),t.jsx("div",{className:"file-card-minimized__download-icon",children:t.jsx(Pn,{width:12,height:12})})]}),t.jsx("div",{className:"file-card-minimized__filename",children:c})]})};il.propTypes={data:n.object.isRequired,fileType:n.oneOf(["excel","word","pdf","generic"]),onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,isSelected:n.bool};const ol=({onClick:e,className:s="",icon:r,isClickable:i=!0,fontSize:o,hasDownload:l=!1,onChange:a,isSelected:c=!1,data:d})=>{const{id:h,title:g}=d,p=()=>{i&&e&&e(d)},m=x=>{i&&e&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),e(d))};return t.jsxs("div",{className:`folder-card ${i?"folder-card--clickable":""} ${s} ${c?"folder-card--selected":""} ${l?"folder-card--has-download":""}`,onClick:p,onKeyDown:m,tabIndex:i?0:-1,role:i?"button":"presentation","aria-label":i?`Abrir carpeta ${g}`:void 0,style:{border:l?"1px solid #707070":"none"},children:[l&&t.jsx("div",{className:"folder-card__checkbox-container",children:t.jsx(Fs,{inputProperties:{id:h,checked:c,onChange:a},color:"#33A1DD",size:"small"})}),t.jsx("div",{className:"folder-card__icon-container",children:r?t.jsx("div",{className:"folder-card__custom-icon",children:r}):t.jsx("div",{className:`${l?"folder-card__default-icon":"folder-card__default-icon-hover"}`,children:t.jsx(In,{width:"60px"})})}),t.jsx("div",{className:"folder-card__title",style:{width:"70px",fontSize:o},children:g})]})};ol.propTypes={title:n.string.isRequired,onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,fontSize:n.string,id:n.string,value:n.any,hasDownload:n.bool,onChange:n.func,isSelected:n.bool};const ll=({onClick:e,className:s="",icon:r,isClickable:i=!0,fontSize:o,isSelected:l=!1,data:a})=>{const{id:c,title:d}=a,h=()=>{i&&e&&e(a)},g=p=>{i&&e&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),e(a))};return t.jsxs("div",{className:`folder-card-minimized ${i?"folder-card-minimized--clickable":""} ${l?"folder-card-minimized--selected":""} ${s}`,onClick:h,onKeyDown:g,tabIndex:i?0:-1,role:i?"button":"presentation","aria-label":i?`Abrir carpeta ${d}`:void 0,children:[t.jsx("div",{className:"folder-card-minimized__icon-container",children:r?t.jsx("div",{className:"folder-card-minimized__custom-icon",children:r}):t.jsx("div",{className:"folder-card-minimized__default-icon",children:t.jsx(In,{width:"32px"})})}),t.jsx("div",{className:"folder-card-minimized__title",style:{fontSize:o},children:d})]})};ll.propTypes={onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,fontSize:n.string,isSelected:n.bool,data:n.object};const al=({color:e="#33A1DD",size:s=8})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:"none",children:t.jsx("circle",{cx:s/2,cy:s/2,r:s/2-.5,fill:e})});al.propTypes={color:n.string,size:n.number};const cl=({width:e=3,height:s=12,color:r="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:s,fill:"none",viewBox:"0 0 3 12",children:t.jsx("path",{fill:r,stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M1.43 1.275c-.232 0-.445.198-.43.43l.216 5.798a.215.215 0 0 0 .43 0l.214-5.798c.015-.232-.197-.43-.43-.43ZM1.43 10.725a.43.43 0 1 0 0-.86.43.43 0 0 0 0 .86Z"})});cl.propTypes={width:n.number,height:n.number,color:n.string};const dl=({width:e=8,height:s=8,color:r="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:s,fill:"none",viewBox:"0 0 8 8",children:t.jsx("path",{fill:r,d:"M4 .667a3.33 3.33 0 0 0-3.08 4.61A3.33 3.33 0 0 0 5.276 7.08a3.33 3.33 0 0 0 1.805-4.356A3.33 3.33 0 0 0 4 .667Zm1.667 4.53-.47.47L4 4.47 2.804 5.667l-.47-.47L3.53 4 2.334 2.803l.47-.47L4 3.53l1.197-1.197.47.47L4.47 4l1.197 1.197Z"})});dl.propTypes={width:n.number||n.string,height:n.number||n.string,color:n.string};const ul=({className:e="",hasAlerts:s=!1,children:r,hasError:i=!1,...o})=>{const c=["state",e,s?"state--has-alerts":""].filter(Boolean).join(" ");return t.jsxs("div",{className:c,...o,children:[t.jsx("div",{className:"state__indicator",children:i?t.jsx(dl,{width:8,height:8}):t.jsx(al,{size:8})}),t.jsx("div",{className:"state__content",children:r}),s&&t.jsx("div",{className:"state__alert",children:t.jsx(cl,{color:"red",width:"80%"})})]})};ul.propTypes={className:n.string,hasAlerts:n.bool,hasError:n.bool,children:n.node.isRequired};const hl=({children:e,count:s,className:r,classNameCount:i})=>t.jsxs("div",{className:`count-card ${r}`,children:[e,t.jsx("span",{className:`count-card__count ${i}`,children:s})]});hl.propTypes={children:n.node,count:n.number||n.string,className:n.string,classNameCount:n.string};const fl=({totalPages:e=50,currentPage:s=1,onChange:r,nextLabel:i,prevLabel:o,height:l,disabled:a,fontSize:c})=>{const d=u=>{u>0&&u<=e&&r(u)},h=()=>{s<e&&r(s+1)},g=()=>{s>1&&r(s-1)},m=[],x=Math.max(1,s-4),b=Math.min(e,x+9-1);for(let u=x;u<=b;u++)m.push(u);if(s>e-4){m.length=0;for(let u=e-9+1;u<=e;u++)u>0&&m.push(u)}return t.jsx("nav",{className:"pagination",children:t.jsxs("ul",{className:"pagination-list",children:[s>1&&t.jsxs("li",{className:`pagination-prev ${a?"disabled":""}`,onClick:a?null:g,style:{height:l,fontSize:c},children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})}),o]}),x>1&&t.jsxs(t.Fragment,{children:[t.jsx("li",{className:`pagination-link ${a?"disabled":""}`,onClick:()=>a?null:d(1),style:{height:l,fontSize:c},children:"1"}),x>2&&t.jsx("li",{className:"pagination-list",style:{height:l,fontSize:c},children:"..."})]}),m.map(u=>t.jsx("li",{className:`pagination-link ${s===u?"active":""} ${a?"disabled":""}`,onClick:()=>a?null:d(u),style:{height:l,fontSize:c},children:u},u)),b<e&&t.jsxs(t.Fragment,{children:[b<e-1&&t.jsx("li",{className:`pagination-list ${a?"disabled":""}`,style:{height:l,fontSize:c},children:"..."}),t.jsx("li",{className:`pagination-link ${a?"disabled":""}`,onClick:()=>a?null:d(e),style:{height:l,fontSize:c},children:e})]}),s<e&&t.jsxs("li",{className:`pagination-next ${a?"disabled":""}`,onClick:a?null:h,style:{height:l,fontSize:c},children:[i,t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]})})};fl.propTypes={totalPages:n.number,currentPage:n.number,onChange:n.func,nextLabel:n.string,prevLabel:n.string,height:n.string,disabled:n.bool,fontSize:n.string};const dr=Fe(t.jsx("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded"),ur=Fe(t.jsx("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76"}),"ArrowForwardIosRounded"),pl=Fe(t.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),hr={DAYS:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],MONTHS:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],code:"es-ES",selectRange:"Selecciona un Rango de fechas",days:"días",cancel:"CANCELAR",search:"BUSCAR"},fr={DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],code:"en-US",selectRange:"Select a date range",days:"days",cancel:"CANCEL",search:"SEARCH"},dt=e=>{e instanceof Date||(e=new Date(e));const s=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return{formatDDMMYYYY:`${s}-${r}-${i}`,formatMMDDYYYY:`${r}-${s}-${i}`,formatYYYYMMDD:`${i}-${r}-${s}`,originalFormat:e}},gl=(e,s,r)=>{if(!s||r<=0)return!1;const i=new Date(s);return i.setMonth(i.getMonth()+r),i.setDate(i.getDate()-1),e>i},uu=({locale:e="es",disablePastDates:s,onDateRangeChange:r,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,h]=v.useReducer(y=>y+1,0),g=e==="es"?hr:fr,[p,m]=v.useState(null),[x,b]=v.useState(null),[u,w]=v.useState(null),[T,D]=v.useState(new Date),[z,C]=v.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[k,R]=v.useState(!1),L=(y,I)=>{const P=new Date;if(P.setHours(0,0,0,0),c){const O=new Date(P);if(O.setDate(P.getDate()+c),y>O)return!0}return I&&s&&y<P||!I&&a&&y>P||s&&y<P||a&&y>P?!0:l>0&&p?gl(y,p,l):!1},V=y=>{const I=y.getFullYear(),P=y.getMonth(),M=new Date(I,P,1).getDay(),A=new Date(I,P+1,0),q=[],$=new Date(I,P,0).getDate();for(let G=M-1;G>=0;G--)q.push(new Date(I,P-1,$-G));for(let G=1;G<=A.getDate();G++)q.push(new Date(I,P,G));const X=42-q.length;for(let G=1;G<=X;G++)q.push(new Date(I,P+1,G));return q},_=y=>!p||!x?!1:y>=p&&y<=x,f=y=>!p||!u?!1:y>=p&&y<=u||y<=p&&y>=u,H=y=>{!p||x?(m(y),b(null)):y<p?(b(p),m(y),i&&j(y,p)):(b(y),i&&j(p,y))},U=y=>{w(y)},B=()=>!p||!x?0:Math.round((x.getTime()-p.getTime())/(1e3*60*60*24))+1,Z=(y,I)=>{const P=new Date(y.getFullYear(),y.getMonth()-1,1);s&&P<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&I||(I?D(P):(C(P),P.getMonth()===T.getMonth()&&D(new Date(P.getFullYear(),P.getMonth()-1,1))))},K=(y,I)=>{const P=new Date(y.getFullYear(),y.getMonth()+1,1);I?(D(P),P.getMonth()===z.getMonth()&&C(new Date(P.getFullYear(),P.getMonth()+1,1))):C(P)},ee=y=>{const P=y.toLocaleDateString(g.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),O=P[0].charAt(0).toUpperCase()+P[0].slice(1),M=P[1],A=P[2].charAt(0).toUpperCase()+P[2].slice(1),q=P[3];return`${O} ${M} de ${A} ${q}`},F=()=>{const y=new Date;m(null),b(null),D(y),C(new Date(new Date().setMonth(new Date().getMonth()+1))),R(!1),o({startDate:null,endDate:null}),h()},E=()=>{R(!1);const y=dt(p),I=dt(x);r({startDate:y,endDate:I})},j=(y,I)=>{m(y),b(I),R(!1);const P=dt(y),O=dt(I);r({startDate:P,endDate:O})};return{isOpen:k,endDate:x,language:g,leftMonth:T,startDate:p,setIsOpen:R,hoverDate:u,rightMonth:z,formatDate:ee,handleSearch:E,handleCancel:F,isDateInRange:_,getDaysInMonth:V,isDateDisabled:L,handleDateClick:H,handleDateHover:U,handlePrevClick:Z,handleNextClick:K,getDaysSelected:B,isDateInHoverRange:f,keyReset:d,resetSelect:h}},Vn=(e,s,r,i)=>{if(!r||i<=0)return!1;const o=new Date(r);o.setMonth(o.getMonth()+i),o.setDate(o.getDate()-1);const l=new Date(r);return l.setDate(1),s?e<l:e>o},ml=({locale:e="es",onDateRangeChange:s,disablePastDates:r,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:h,disableFutureDates:g,withoutSearchButton:p,disablePastDaysCount:m,value:x})=>{const{keyReset:b,isOpen:u,endDate:w,language:T,leftMonth:D,startDate:z,setIsOpen:C,rightMonth:k,formatDate:R,handleSearch:L,handleCancel:V,isDateInRange:_,getDaysInMonth:f,isDateDisabled:H,handleDateClick:U,handleDateHover:B,handlePrevClick:Z,handleNextClick:K,getDaysSelected:ee,isDateInHoverRange:F}=uu({locale:e,onReset:l,onDateRangeChange:s,disablePastDates:r,withoutSearchButton:p,limitRange:i,disableFutureDates:g,disablePastDaysCount:m}),E=(x==null?void 0:x.startDate)instanceof Date?x.startDate:z,j=(x==null?void 0:x.endDate)instanceof Date?x.endDate:w,y=v.useRef(null);v.useEffect(()=>{const P=O=>{y.current&&!y.current.contains(O.target)&&u&&(C(!1),o||V())};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[w,V,u,C,z,o]);const I=(P,O=!0)=>{const M=f(P),A=P.getMonth(),q=(W,X)=>[W&&W.getMonth()!==A?"other-month":"",W&&_(W)?"in-range":"",W&&F(W)?"hover-range":"",W&&(W.getTime()===(E==null?void 0:E.getTime())||W.getTime()===(j==null?void 0:j.getTime()))?"selected":"",H(W,X)?"disabled":""].join(" "),$=({date:W,isLeftCalendar:X,disablePastDates:G,leftMonth:se})=>{const Q=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),he=new Date(W.getFullYear(),W.getMonth()-1,1).getTime();return!!(G&&(he<Q||!X&&new Date(se.getFullYear(),se.getMonth(),1).getTime()<=Q))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>Z(P,O),disabled:Vn(new Date(P.getFullYear(),P.getMonth()-1,1),!0,z,i)||$({date:P,isLeftCalendar:O,disablePastDates:r,leftMonth:D}),children:t.jsx("span",{className:"sr-only",children:t.jsx(dr,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[T.MONTHS[P.getMonth()],t.jsx("p",{children:P.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>K(P,O),disabled:Vn(new Date(P.getFullYear(),P.getMonth()+1,1),!1,z,i)||g&&new Date(P.getFullYear(),P.getMonth(),1).getTime()>=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),children:t.jsx("span",{className:"sr-only",children:t.jsx(ur,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),T.DAYS.map(W=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:W},W)),M.map((W,X)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${q(W,O)}`,disabled:!W||H(W),onClick:()=>W&&!H(W)&&U(W),onMouseEnter:()=>W&&!H(W)&&B(W),onMouseLeave:()=>B(null),children:t.jsx("span",{className:`day-text ${W?"":"text-muted"}`,style:{fontSize:d},children:W?W.getDate():""})})},`${W}_${X}`))]})]})};return v.useEffect(()=>{b&&V()},[b]),t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:y,children:[t.jsx("button",{className:`date-picker-toggle ${h?"disabled":""}`,disabled:h,onClick:()=>C(!u),children:E&&j?t.jsxs("div",{className:"container-formate",children:[t.jsxs("p",{className:`p-formate-date ${h?"disabled":""}`,style:{borderRight:"1px solid #9c9ca0"},children:[R(E)," ",t.jsx(pl,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]}),t.jsxs("p",{className:`p-formate-date ${h?"disabled":""}`,children:[R(j),t.jsx(pl,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]})]}):t.jsxs("div",{className:"container-formate",children:[t.jsx("p",{className:`p-formate-date ${h?"disabled":""}`,style:{height:"34px",fontSize:d},children:T.selectRange}),t.jsx(Is,{width:"10%",height:"50%"})]})}),u&&t.jsx("div",{className:"square"}),u&&t.jsx("div",{className:"container-triangle",children:t.jsx("div",{className:"triangle",children:t.jsx("div",{className:"triangle-blur"})})}),u&&t.jsxs("div",{className:"date-picker-dropdown",style:{right:a==="right"?"0":"auto",left:a==="left"?"0":"auto",top:"135%"},children:[t.jsxs("div",{className:"calendars-wrapper",children:[I(D,!0),I(k,!1)]}),!p&&t.jsx("div",{className:"date-picker-footer",children:E&&j&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[ee()," ",T.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Ln,{buttonProperties:{onClick:()=>V(),style:{width:"115px",textAlign:"center"}},children:T.cancel}),t.jsx(Ye,{buttonProperties:{onClick:()=>L(),style:{width:"115px",textAlign:"center"}},children:T.search})]})]})})]})]}),E&&j&&o&&t.jsx("button",{className:"button-reset",onClick:()=>V(),children:t.jsx(Sn,{})})]})};ml.propTypes={locale:n.oneOf(["es","en"]),heightBoxes:n.string,onDateRangeChange:n.func,disablePastDates:n.bool,resetButton:n.bool,withoutSearchButton:n.bool,onReset:n.func,direction:n.oneOf(["left","right"]),fontSize:n.string,limitRange:n.number,keyReset:n.number,disabled:n.bool,disableFutureDates:n.bool,disablePastDaysCount:n.number,value:n.shape({startDate:n.instanceOf(Date),endDate:n.instanceOf(Date)})};const yl=(e,{disablePastDates:s,disableBusinessDays:r})=>{const i=new Date;if(i.setHours(0,0,0,0),s&&e<i)return!1;if(r&&typeof r=="number"&&r>0){let o=new Date(i),l=0;for(;l<r;){o.setDate(o.getDate()+1);const a=o.getDay();a!==0&&a!==6&&l++}if(e<o)return!1}return!0},hu=e=>{const s=new Date;s.setHours(0,0,0,0);const r=new Date(s);r.setDate(s.getDate()+1);const i=new Date(s);return i.setDate(s.getDate()+2),e.getTime()===s.getTime()||e.getTime()===r.getTime()||e.getTime()===i.getTime()},fu=(e,s)=>{const r=new Date(s);return r.setHours(0,0,0,0),e.getTime()<=r.getTime()},pu="America/Bogota",gu=16,mu=3,yu=4,xl=0,bl=6,xu=()=>{const e=new Date().toLocaleString("en-US",{timeZone:pu});return new Date(e)},bu=(e,s)=>{const r=s??xu(),o=r.getHours()<gu?mu:yu;let l=0;const a=new Date(r);for(a.setDate(a.getDate()+1);l<o;){const g=a.getDay();g!==xl&&g!==bl&&l++,a.setDate(a.getDate()+1)}for(;a.getDay()===xl||a.getDay()===bl;)a.setDate(a.getDate()+1);const c=new Date(e);c.setHours(0,0,0,0);const d=new Date(a);return d.setHours(0,0,0,0),c<d},vu=e=>{let s=0,r=new Date;for(r.setHours(0,0,0,0),r.setDate(r.getDate()+1);s<5;){const i=r.getDay();i!==0&&i!==6&&s++,r.setDate(r.getDate()+1)}for(;r.getDay()===0||r.getDay()===6;)r.setDate(r.getDate()+1);return e<r},ju=e=>e.getDay()===0||e.getDay()===6,wu=(e,s)=>{const r=new Date(s);r.setHours(0,0,0,0);let i=new Date(r);do i.setDate(i.getDate()+1);while(i.getDay()===0||i.getDay()===6);return e.getTime()<=i.getTime()},ku=({locale:e="es",onDateChange:s,onChangeFunction:r,disablePastDates:i,disableBusinessDays:o,disableNextTwoDays:l,disableSpecificDate:a,disableDaysBasedOnTime:c,disableFiveBusinessDays:d,disableWeekends:h,disableNextBusinessDayAfter:g,hourDisableDaysBasedOnHour:p,id:m})=>{const x=e==="es"?hr:fr,[b,u]=v.useState(new Date),[w,T]=v.useState(new Date),[D,z]=v.useState(!1),[C,k]=v.useState(null),R=v.useRef(null),L=F=>{const E=F.getFullYear(),j=F.getMonth(),I=new Date(E,j,1).getDay(),P=new Date(E,j+1,0),O=[],M=new Date(E,j,0).getDate();for(let $=I-1;$>=0;$--)O.push(new Date(E,j-1,M-$));for(let $=1;$<=P.getDate();$++)O.push(new Date(E,j,$));const q=42-O.length;for(let $=1;$<=q;$++)O.push(new Date(E,j+1,$));return O};v.useEffect(()=>{if(o&&typeof o=="number"&&o>0){let F=new Date;F.setHours(0,0,0,0);let E=new Date(F),j=0;for(;j<o;){E.setDate(E.getDate()+1);const y=E.getDay();y!==0&&y!==6&&j++}E.getMonth()>F.getMonth()&&T(E)}},[i,o]);const V=v.useMemo(()=>F=>F?i&&!yl(F,{disablePastDates:i})||o&&!yl(F,{disableBusinessDays:o})||l&&hu(F)||a&&fu(F,new Date(a))||c&&bu(F,p)||d&&vu(F)||h&&ju(F)||g&&wu(F,g):!1,[i,o,l,a,c,d,h,g,p]),_=F=>{const E=new Date,j=new Date(E.getFullYear(),E.getMonth(),1).setHours(0,0,0,0);if(i&&F<j)return!0;if(a){const y=new Date(a).setHours(0,0,0,0);return new Date(F.getFullYear(),F.getMonth()+1,0).setHours(0,0,0,0)<y}return!1},f=F=>b&&F.getTime()===b.getTime(),H=F=>{const E=F.getMonth(),j=w.getMonth();E!==j&&T(new Date(F.getFullYear(),E,1)),k(Z(F)),u(F);const y=dt(F);s&&s(y),r&&r({id:m,date:y}),z(!1)},U=F=>{const E=new Date(F.getFullYear(),F.getMonth()-1,1),j=new Date;j.setHours(0,0,0,0),!(i&&E<new Date(j.getFullYear(),j.getMonth(),1))&&T(E)},B=F=>{const E=new Date(F.getFullYear(),F.getMonth()+1,1);T(E)},Z=F=>{const j=F.toLocaleDateString(x.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),y=j[0].charAt(0).toUpperCase()+j[0].slice(1),I=j[1],P=j[2].charAt(0).toUpperCase()+j[2].slice(1),O=j[3];return`${y} ${I} de ${P} ${O}`},K=()=>{u(new Date),z(!1)},ee=()=>{z(!1),s&&s(b),r&&r({id:m,date:b})};return v.useEffect(()=>{const F=E=>{R.current&&!R.current.contains(E.target)&&z(!1)};return document.addEventListener("mousedown",F),()=>{document.removeEventListener("mousedown",F)}},[R]),{date:C,isOpen:D,setDate:k,language:x,leftMonth:w,setIsOpen:z,formatDate:Z,setLeftMonth:T,handleSearch:ee,disablePrev:_,handleCancel:K,selectedDate:b,isDateInRange:f,datePickerRef:R,getDaysInMonth:L,isDateDisabled:V,handlePrevClick:U,handleNextClick:B,handleDateClick:H,setSelectedDate:u}},vl=({label:e,error:s,locale:r,disabled:i,size:o="180px",onDateChange:l,onChangeFunction:a,disableWeekends:c,keyResetCalendar:d,disablePastDates:h,disableNextTwoDays:g,disableSpecificDate:p,disableBusinessDays:m,disableDaysBasedOnTime:x,disableFiveBusinessDays:b,disableNextBusinessDayAfter:u,hourDisableDaysBasedOnHour:w,heightBoxes:T="40px",labelText:D,subLabelText:z,id:C,value:k,fontSize:R})=>{const{date:L,isOpen:V,setDate:_,language:f,leftMonth:H,setIsOpen:U,disablePrev:B,isDateInRange:Z,getDaysInMonth:K,isDateDisabled:ee,handleDateClick:F,handlePrevClick:E,handleNextClick:j,datePickerRef:y,setSelectedDate:I,setLeftMonth:P,selectedDate:O}=ku({locale:r,onDateChange:l,onChangeFunction:a,disableWeekends:c,disablePastDates:h,disableBusinessDays:m,disableNextTwoDays:g,disableSpecificDate:p,disableDaysBasedOnTime:x,disableFiveBusinessDays:b,disableNextBusinessDayAfter:u,hourDisableDaysBasedOnHour:w,id:C}),M=k instanceof Date?k:void 0,A=$=>{if(!$)return null;const X=$.toLocaleDateString(f.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),G=X[0].charAt(0).toUpperCase()+X[0].slice(1),se=X[1],Q=X[2].charAt(0).toUpperCase()+X[2].slice(1),he=X[3];return`${G} ${se} de ${Q} ${he}`};v.useEffect(()=>{_(null),I(null)},[d,_,I]),v.useEffect(()=>{if(M){(H.getMonth()!==M.getMonth()||H.getFullYear()!==M.getFullYear())&&P(new Date(M.getFullYear(),M.getMonth(),1));const $=new Date(M.getFullYear(),M.getMonth(),M.getDate()),W=O?new Date(O.getFullYear(),O.getMonth(),O.getDate()):null;(!W||$.getTime()!==W.getTime())&&I($)}},[M,H,O,P,I]);const q=$=>{const W=K($),X=$.getMonth(),G=se=>{const Q=!!M&&se&&se.getFullYear()===M.getFullYear()&&se.getMonth()===M.getMonth()&&se.getDate()===M.getDate();return[se&&se.getMonth()!==X?"other-month":"",se&&(Z(se)||Q)?"selected":"",ee(se)?"disabled":""].join(" ")};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>E($),disabled:B(new Date($.getFullYear(),$.getMonth()-1,1)),children:t.jsx("span",{className:"sr-only",children:t.jsx(dr,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[f.MONTHS[$.getMonth()],t.jsx("p",{children:$.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>j($),children:t.jsx("span",{className:"sr-only",children:t.jsx(ur,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${T})`},children:[t.jsx("div",{className:"background-days"}),f.DAYS.map(se=>t.jsx("div",{className:"calendar-day-header",children:se},se)),W.map((se,Q)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${G(se)}`,disabled:!se||ee(se),onClick:()=>se&&!ee(se)&&F(se),children:t.jsx("span",{className:`day-text ${se?"":"text-muted"}`,children:se?se.getDate():""})})},`${se}_${Q}`))]})]})};return t.jsxs("div",{className:"single-date-picker-container relative",ref:y,children:[t.jsx(et,{label:M?A(M):L??e,onchange:()=>{},options:[],size:o,isOpen:V,setIsOpen:U,error:s,disabledClickOutside:!0,disabled:i,keyReset:d,Icon:Di,labelText:D,subLabelText:z,fontSizeLabel:R,withoutOptions:!0}),V&&t.jsx("div",{className:"date-picker-dropdown date-picker-individual",children:t.jsx("div",{className:"calendars-wrapper",children:q(H)})})]})};vl.propTypes={locale:n.oneOf(["es-ES","en-US"]),onDateChange:n.func,disableBusinessDays:n.number,disablePastDates:n.bool,label:n.string,size:n.string,disableNextTwoDays:n.bool,disableSpecificDate:n.instanceOf(Date),keyResetCalendar:n.number,error:n.bool,disableDaysBasedOnTime:n.bool,disableFiveBusinessDays:n.bool,disabled:n.bool,disableWeekends:n.bool,disableNextBusinessDayAfter:n.instanceOf(Date),hourDisableDaysBasedOnHour:n.instanceOf(Date),heightBoxes:n.string,labelText:n.string,subLabelText:n.any,id:n.string,onChangeFunction:n.func,value:n.instanceOf(Date),fontSize:n.string};const jl=({title:e,description:s,linkText:r,icon:i,fnNavigate:o,width:l,height:a,id:c})=>{const d=()=>{o(c)};return t.jsxs("section",{className:"info-action-card",style:{width:l,height:a},onClick:d,children:[t.jsxs("div",{className:"info-action-card__content",children:[t.jsxs("div",{className:"info-action-card__content__text__container",children:[t.jsx("h3",{children:e}),t.jsx("p",{children:s})]}),i]}),t.jsx("div",{className:"line-grey"}),t.jsxs("div",{className:"info-action-card__action",children:[t.jsx("button",{children:r}),t.jsx(Ts,{})]})]})};jl.propTypes={title:n.string,description:n.string,linkText:n.string,icon:n.node,fnNavigate:n.func,width:n.string,height:n.string,id:n.string};const pr=e=>e.map(s=>({id:s.id,title:s.title,optionsSelect:[]})),Cu=(e,s)=>{const[r,i]=v.useState([]),[o,l]=v.useState(pr(e)),[a,c]=v.useState(!1),d=v.useRef(null),h=v.useRef(!1),g=w=>{const T={};return e.forEach(D=>{const z=w.find(C=>C.id===D.id);z?T[D.id]={value:z.optionsSelect.map(C=>C.id),allData:z.optionsSelect}:T[D.id]={value:[],allData:[]}}),T},p=w=>{i(T=>T.includes(w)?T.filter(D=>D!==w):[...T,w])},m=(w,T)=>{h.current=!0,l(D=>{var V;const z=D.findIndex(_=>_.id===w);let C=[...D],k=[];const R=e.find(_=>_.id===w)||{};if(R.multiple!==!1)if(z===-1)k=[T],C.push({id:w,title:R.title||"",optionsSelect:k});else{const _=D[z].optionsSelect;_.some(H=>H.id===T.id)?k=_.filter(H=>H.id!==T.id):k=[..._,T],k.length===0?C.splice(z,1):(k.sort((H,U)=>{var B;return(B=H.label)==null?void 0:B.localeCompare(U.label)}),C[z].optionsSelect=k)}else if(z===-1||((V=D[z].optionsSelect[0])==null?void 0:V.id)!==T.id?k=[T]:k=[],k.length===0)z>-1&&C.splice(z,1);else{const _={id:w,title:R.title||"",optionsSelect:k};z===-1?C.push(_):C[z]=_}if(s){const _=g(C);s(_)}return C})},x=()=>{h.current=!0;const w=pr(e);if(l(w),s){const T=g(w);s(T)}},b=v.useCallback(w=>{h.current=!0,l(w)},[]),u=()=>o.reduce((w,T)=>w+T.optionsSelect.length,0);return v.useEffect(()=>{h.current||l(pr(e))},[e]),v.useEffect(()=>{const w=T=>{d.current&&!d.current.contains(T.target)&&c(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),{expandedSections:r,selectedFilters:o,toggleSection:p,toggleFilter:m,clearAllFilters:x,open:a,setOpen:c,getLengthFilters:u,filterRef:d,setSelectedFilters:b}},qn=(e,s)=>{var r;return s?typeof e=="object"&&!Array.isArray(e)?(r=Object.values(e))==null?void 0:r.flat():Array.isArray(e)?e:[]:Array.isArray(e)?e:[]},Su=(e,s)=>s||Array.isArray(e)?e:[],wl=({data:e=[],onChange:s,disabled:r,keyRest:i,value:o,fontSizeLabel:l="0.8vw",fontSizeTitles:a,fontSizeSelects:c="0.8vw",widthFilterComponent:d="380px",heightFilterComponent:h="400px",right:g="0",top:p="0"})=>{const{open:m,setOpen:x,toggleFilter:b,toggleSection:u,selectedFilters:w,clearAllFilters:T,getLengthFilters:D,expandedSections:z,filterRef:C,setSelectedFilters:k}=Cu(e,s),[R,L]=v.useState({}),[V,_]=v.useState({}),f=v.useRef({}),H=v.useRef(!0),U=132,B=220,Z=j=>{L(y=>({...y,[j]:!y[j]}))};v.useEffect(()=>{e.forEach(j=>{(j.selectAll||j.basicSelect)&&!(z!=null&&z.includes(j==null?void 0:j.id))&&u(j==null?void 0:j.id)})},[e,z,u]);const K=(j,y,I,P)=>{const O=I==null?void 0:I.filter(A=>P.includes(A.id)),M=o!==void 0?o:w;k(()=>{const A=M==null?void 0:M.findIndex($=>($==null?void 0:$.id)===j);let q=[...M];if(O.length===0)A>-1&&q.splice(A,1);else{const $={id:j,title:y,optionsSelect:O};A===-1?q.push($):q[A]=$}if(s){const $={};e.forEach(W=>{if((W==null?void 0:W.id)===j)$[W==null?void 0:W.id]={value:P,allData:O};else{const X=q==null?void 0:q.find(G=>(G==null?void 0:G.id)===(W==null?void 0:W.id));X&&X.optionsSelect.length>0?$[W==null?void 0:W.id]={value:X.optionsSelect.map(G=>G.id),allData:X.optionsSelect}:$[W==null?void 0:W.id]={value:[],allData:[]}}}),s($)}return q})},ee=(j,y,I,P)=>{const O=I==null?void 0:I.find(A=>A.value===P||A.label===P),M=o!==void 0?o:w;k(()=>{const A=M==null?void 0:M.findIndex($=>($==null?void 0:$.id)===j);let q=[...M];if(!O)A>-1&&q.splice(A,1);else{const $={id:j,title:y,optionsSelect:[O]};A===-1?q.push($):q[A]=$}if(s){const $={};e.forEach(W=>{if((W==null?void 0:W.id)===j)$[W==null?void 0:W.id]={value:P,allData:O?[O]:[]};else{const X=q==null?void 0:q.find(G=>(G==null?void 0:G.id)===(W==null?void 0:W.id));X&&X.optionsSelect.length>0?$[W==null?void 0:W.id]={value:X.optionsSelect.map(G=>G.value||G.id),allData:X.optionsSelect}:$[W==null?void 0:W.id]={value:[],allData:[]}}}),s($)}return q})};v.useEffect(()=>{const j={};z==null||z.forEach(y=>{const I=f.current[y];I&&I.scrollHeight>U&&(j[y]=!0)}),_(j)},[z,e]);const F=o!==void 0?o:w;v.useEffect(()=>{if(H.current){H.current=!1;return}k(o===void 0?[]:o)},[i,k,o]),v.useEffect(()=>{o!==void 0&&!H.current&&k(o)},[o,k]);const E=o!==void 0?F==null?void 0:F.reduce((j,y)=>{var I;return j+((I=y==null?void 0:y.optionsSelect)==null?void 0:I.length)},0):D();return t.jsxs("div",{className:"toggle-filter-component",ref:C,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:r,onClick:()=>x(!m),style:{fontSize:a},children:["Filtro ",E?`(${E})`:"",t.jsx(Ds,{})]}),m&&t.jsxs("div",{className:"filter-container-component",style:{width:d,height:h,right:g,top:p},children:[t.jsxs("div",{className:"filter-header",children:[t.jsx("h2",{className:"filter-title",style:{fontSize:a},children:"Filtros"}),t.jsxs("div",{className:"filter-header-buttons",children:[(o!==void 0?F.reduce((y,I)=>{var P;return y+((P=I==null?void 0:I.optionsSelect)==null?void 0:P.length)},0):D())>0&&t.jsxs("button",{className:"clear-all",onClick:T,style:{fontSize:a},children:["Borrar todo",t.jsx(On,{width:"15px",height:"15px"})]}),t.jsx(ct,{sx:{color:"#8598ad"},style:{width:"14px",height:"14px"},onClick:()=>x(!m)})]})]}),e.map(({id:j,title:y,options:I,selectAll:P,basicSelect:O,placeholderInput:M,label:A,textSelectAll:q,grouped:$,disabledSection:W})=>{var X,G,se,Q,he,le;return t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>!(P||O)&&u(j),style:{cursor:P||O?"default":"pointer"},children:[t.jsxs("span",{className:"section-header-title",style:{fontSize:l},children:["Por ",y]}),!(P||O)&&(z==null?void 0:z.includes(j))&&t.jsx("span",{className:"filter-container-icon",children:t.jsx(_n,{isOpen:z==null?void 0:z.includes(j),onChange:()=>{},color:"#8598AD",padding:"2px",display:"flex",height:"auto",width:"auto"})})]}),(z==null?void 0:z.includes(j))&&t.jsx(t.Fragment,{children:P?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(tr,{data:Su(I,$),grouped:$||!1,label:A||y,maxheight:"200px",onChange:fe=>{K(j,y,qn(I,$),fe)},placeholderSearch:M||`Buscar ${y==null?void 0:y.toLowerCase()}`,textSelectAll:q||`Todos los ${y==null?void 0:y.toLowerCase()}`,width:"100%",widthDropdown:"100%",isRelative:!0,selectedValues:((G=(X=F.find(fe=>(fe==null?void 0:fe.id)===j))==null?void 0:X.optionsSelect)==null?void 0:G.map(fe=>fe.id))||[],fontSizeLabel:l,disabled:W,fontSizeOptions:c})}):O?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(et,{label:A||y,options:qn(I,$),onchange:fe=>{ee(j,y,qn(I,$),fe.value)},placeholderInputSearch:M||`Buscar ${y==null?void 0:y.toLowerCase()}`,size:"100%",value:((he=(Q=(se=F==null?void 0:F.find(fe=>(fe==null?void 0:fe.id)===j))==null?void 0:se.optionsSelect)==null?void 0:Q[0])==null?void 0:he.value)||"",position:"relative",fontSizeLabel:l,disabled:W,fontSizeOptions:c})}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:fe=>f.current[j]=fe,style:V[j]?R[j]?{maxHeight:B,overflowY:"scroll"}:{maxHeight:U,overflow:"hidden"}:{},children:(le=qn(I,$))==null?void 0:le.map(fe=>{const _e=F==null?void 0:F.some(ke=>{var Pe;return(ke==null?void 0:ke.id)===j&&((Pe=ke==null?void 0:ke.optionsSelect)==null?void 0:Pe.some(ce=>ce.id===fe.id))});return t.jsx(Hn,{height:"27px",onChange:()=>b(j,fe),isSelect:_e,children:fe.label},fe.id)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:(V==null?void 0:V[j])&&t.jsx("button",{className:"view-more",onClick:()=>Z(j),children:R[j]?"Ver menos":"Ver más"})})]})})]},j)})]})]})};wl.propTypes={data:n.arrayOf(n.shape({id:n.string.isRequired,title:n.string.isRequired,selectAll:n.bool,basicSelect:n.bool,grouped:n.bool,placeholderInput:n.string,label:n.string,textSelectAll:n.string,options:n.oneOfType([n.arrayOf(n.shape({id:n.string.isRequired,label:n.string.isRequired,name:n.string,value:n.string})),n.object]).isRequired})),onChange:n.func,disabled:n.bool,keyRest:n.oneOfType([n.number,n.string]),value:n.array,fontSizeLabel:n.string,fontSizeTitles:n.string,widthFilterComponent:n.string,heightFilterComponent:n.string,right:n.string,fontSizeSelects:n.string,top:n.string};const Tu=(e,s,r)=>{const[i,o]=v.useState([]),[l,a]=v.useState(!1),c=v.useRef(null);v.useEffect(()=>{const m=e.filter(x=>x.type==="select"||x.type==="multiselect").map(x=>x.id);o(m)},[e]);const d=m=>{o(x=>x.includes(m)?x.filter(b=>b!==m):[...x,m])},h=v.useCallback((m,x)=>{const b=s.map(u=>u.id===m?{...u,value:x}:u);r&&r(b)},[s,r]),g=v.useCallback(()=>{const m=e.map(x=>x.type==="multiselect"||x.type==="chips"?{id:x.id,value:[]}:{id:x.id,value:""});r&&r(m)},[e,r]),p=v.useCallback(()=>{if(!s||!Array.isArray(s))return 0;let m=0;return s.forEach(x=>{const b=x.value;Array.isArray(b)?m+=b.length:b&&b!==""&&(m+=1)}),m},[s]);return v.useEffect(()=>{const m=x=>{c.current&&!c.current.contains(x.target)&&a(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]),{expandedSections:i,open:l,setOpen:a,toggleSection:d,handleFilterChange:h,clearAllFilters:g,getTotalSelected:p,filterRef:c}},kl=({data:e=[],value:s,onChange:r,disabled:i=!1,fontSizeLabel:o="10px",fontSizeTitles:l="10px",fontSizeSelects:a="10px",widthFilterComponent:c="380px",height:d="400px",right:h="0",top:g="0"})=>{const[p,m]=v.useState(e.map(F=>({id:F.id,value:F.type==="multiselect"||F.type==="chips"?[]:""}))),x=s!==void 0,b=x?s:p,u=F=>{x||m(F),r&&r(F)},{open:w,setOpen:T,expandedSections:D,toggleSection:z,handleFilterChange:C,clearAllFilters:k,getTotalSelected:R,filterRef:L}=Tu(e,b,u),[V,_]=v.useState({}),[f,H]=v.useState({}),U=v.useRef({}),B=132,Z=220,K=F=>{_(E=>({...E,[F]:!E[F]}))};v.useEffect(()=>{const F={};D==null||D.forEach(E=>{const j=U.current[E];j&&j.scrollHeight>B&&(F[E]=!0)}),H(F)},[D,e]);const ee=R();return t.jsxs("div",{className:"toggle-filter-component",ref:L,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:i,onClick:()=>T(!w),style:{fontSize:l},children:["Filtro ",ee?`(${ee})`:"",t.jsx(Ds,{})]}),w&&t.jsxs("div",{className:"filter-container-component",style:{width:c,height:d,right:h,top:g},children:[t.jsxs("div",{className:"filter-header",children:[t.jsx("h2",{className:"filter-title",style:{fontSize:l},children:"Filtros"}),t.jsxs("div",{className:"filter-header-buttons",children:[ee>0&&t.jsxs("button",{className:"clear-all",onClick:k,style:{fontSize:l},children:["Borrar todo",t.jsx(On,{width:"15px",height:"15px"})]}),t.jsx(ct,{sx:{color:"#8598ad"},style:{width:"14px",height:"14px"},onClick:()=>T(!w)})]})]}),e.map(({id:F,title:E,type:j="chips",options:y=[],placeholder:I,placeholderInput:P,textSelectAll:O,disabled:M})=>{var A,q;return t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>!(j==="select"||j==="multiselect")&&z(F),style:{cursor:j==="select"||j==="multiselect"?"default":"pointer"},children:[t.jsxs("span",{className:"section-header-title",style:{fontSize:o},children:["Por ",E]}),j==="chips"&&t.jsx("span",{className:"filter-container-icon",children:t.jsx(_n,{isOpen:D==null?void 0:D.includes(F),onChange:()=>{},color:"#8598AD",padding:"2px",display:"flex",height:"auto",width:"auto"})})]}),(D==null?void 0:D.includes(F))&&t.jsxs(t.Fragment,{children:[j==="select"&&t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Bn,{id:F,placeholder:I||`Seleccione ${E}`,options:y,onChange:$=>{C(F,$.target.value||"")},placeholderInput:P||`Buscar ${E==null?void 0:E.toLowerCase()}`,width:"100%",value:((A=b==null?void 0:b.find($=>$.id===F))==null?void 0:A.value)||"",disabled:M,fontSize:a,fontSizeOptions:a,position:"relative"})}),j==="multiselect"&&t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Fn,{id:F,placeholder:I||`Seleccione ${E}`,options:y,onChange:$=>{C(F,$.target.value||[])},placeholderInput:P||`Buscar ${E==null?void 0:E.toLowerCase()}`,width:"100%",value:((q=b==null?void 0:b.find($=>$.id===F))==null?void 0:q.value)||[],disabled:M,fontSize:a,fontSizeOptions:a,textSelectAll:O||`Todos los ${E==null?void 0:E.toLowerCase()}`,position:"relative"})}),j==="chips"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:$=>U.current[F]=$,style:f[F]?V[F]?{maxHeight:Z,overflowY:"scroll"}:{maxHeight:B,overflow:"hidden"}:{},children:y==null?void 0:y.map($=>{var G;const W=((G=b==null?void 0:b.find(se=>se.id===F))==null?void 0:G.value)||[],X=W.includes($.value);return t.jsx(Hn,{height:"27px",onChange:()=>{const se=X?W.filter(Q=>Q!==$.value):[...W,$.value];C(F,se)},isSelect:X,children:$.label},$.id||$.value)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:(f==null?void 0:f[F])&&t.jsx("button",{className:"view-more",onClick:()=>K(F),children:V[F]?"Ver menos":"Ver más"})})]})]})]},F)})]})]})};kl.propTypes={data:n.arrayOf(n.shape({id:n.string.isRequired,title:n.string.isRequired,type:n.oneOf(["select","multiselect","chips"]),options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired})).isRequired,placeholder:n.string,placeholderInput:n.string,label:n.string,textSelectAll:n.string,disabled:n.bool})).isRequired,value:n.arrayOf(n.shape({id:n.string.isRequired,value:n.any.isRequired})),onChange:n.func.isRequired,disabled:n.bool,fontSizeLabel:n.string,fontSizeTitles:n.string,fontSizeSelects:n.string,widthFilterComponent:n.string,height:n.string,right:n.string,top:n.string};const Cl=({title:e,description:s,linkText:r,icon:i,fnNavigate:o,width:l,fnDownload:a,gapTitleDescription:c,height:d,hasDownloadButton:h,fontSizeTitle:g,fontSizeDescription:p,fontSizeButton:m,textButton:x,widthButton:b="7.5vw",id:u})=>t.jsxs("section",{id:"info-action-card-download-template",className:"info-action-card",style:{width:l,height:d},onClick:()=>o(u),children:[t.jsxs("div",{style:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:[t.jsxs("div",{className:"info-action-card__content info-action-card__content-download-template",children:[t.jsxs("div",{className:"info-action-card__content__text info-action-card__content__text-download-template",style:{gap:c},children:[t.jsx("h3",{style:{fontSize:g},children:e}),t.jsx("p",{style:{fontSize:p},children:s})]}),t.jsx("div",{className:"info-action-card__content__icon",children:i})]}),h&&t.jsx(sr,{buttonProperties:{disabled:!1,onClick:()=>a(),style:{minHeight:"32px",width:b,marginLeft:"10px",fontSize:m,display:"flex",justifyContent:"space-between",alignItems:"center"}},children:x})]}),t.jsx("div",{className:"info-action-card__action info-action-card__action-download-template",children:t.jsxs("div",{style:{display:"flex",alignItems:"center",padding:" 15px",gap:"10px",fontSize:p},children:[t.jsx("button",{children:r}),t.jsx(Ts,{})]})})]});Cl.propTypes={title:n.string,description:n.string,linkText:n.string,icon:n.node,fnNavigate:n.func,width:n.string,fnDownload:n.func,gapTitleDescription:n.string,height:n.string,hasDownloadButton:n.bool,fontSizeTitle:n.string,fontSizeDescription:n.string,fontSizeButton:n.string,textButton:n.string,widthButton:n.string,id:n.string};const Sl=({iconTitle:e,title:s,mainData:r,news:i,width:o,height:l,onChange:a,isSelected:c,value:d,disabled:h,keyReset:g,heightTitleFilter:p="20px",color:m="#575EE0"})=>{const[x,b]=v.useState({isSelected:c||!1,value:d||null}),u=D=>d===D.title,w=({item:D,from:z})=>{const C={isSelected:x.value!==D.title,value:x.value===D.title?null:D.title};b(C),a({item:D,from:z,title:s,selected:C.value,isSelected:C.isSelected})};v.useEffect(()=>{b({isSelected:!1,value:null})},[g]);const T=D=>!!(Number(D.quantity)===0||h);return t.jsxs("div",{className:"ProcessFilter",style:{width:o,height:l,borderColor:m},children:[t.jsxs("div",{className:"ProcessFilter-header",style:{height:p},children:[t.jsxs("div",{className:"ProcessFilter-titleWrapper",children:[e,t.jsx("h2",{className:"ProcessFilter-title",style:{color:m},children:s})]}),t.jsx("div",{className:"ProcessFilter-statsWrapper",children:t.jsx(_i,{})})]}),t.jsx("div",{className:"ProcessFilter-mainData",children:r.map(D=>t.jsxs("div",{onClick:()=>T(D)?null:w({item:D,from:"main"}),className:`ProcessFilter-item-wrapper ${u(D)?"selected":""} ${T(D)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:D.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:D.quantity})]},D.id))}),i.length>0&&t.jsxs("div",{className:"",children:[t.jsxs("h3",{className:"ProcessFilter-newsTitle",children:["Novedades (",i.reduce((D,z)=>D+(parseInt(z.quantity)||0),0),")"]}),i.map(D=>t.jsxs("div",{onClick:()=>T(D)?null:w({item:D,from:"news"}),className:`ProcessFilter-item-wrapper ${u(D)?"selected":""} ${T(D)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:D.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:D.quantity})]},D.id))]})]})};Sl.propTypes={iconTitle:n.any,title:n.string,mainData:n.array,news:n.array,width:n.string,height:n.string,onChange:n.func,isSelected:n.bool,value:n.string,disabled:n.bool,keyReset:n.number,heightTitleFilter:n.string,color:n.string};const Mu=({locale:e="es",disablePastDates:s,onDateRangeChange:r,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,h]=v.useState(!1),[g,p]=v.useReducer(O=>O+1,0),m=e==="es"?hr:fr,[x,b]=v.useState(null),[u,w]=v.useState(null),[T,D]=v.useState(null),[z,C]=v.useState(new Date),[k,R]=v.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[L,V]=v.useState(!1),_=(O,M)=>{const A=new Date;if(A.setHours(0,0,0,0),c){const q=new Date(A);if(q.setDate(A.getDate()-c),O<q||O>A)return!0}return M&&s&&O<A||!M&&a&&O>A||s&&O<A||a&&O>A?!0:l>0&&x?gl(O,x,l):!1},f=O=>{const M=O.getFullYear(),A=O.getMonth(),$=new Date(M,A,1).getDay(),W=new Date(M,A+1,0),X=[],G=new Date(M,A,0).getDate();for(let he=$-1;he>=0;he--)X.push(new Date(M,A-1,G-he));for(let he=1;he<=W.getDate();he++)X.push(new Date(M,A,he));const Q=42-X.length;for(let he=1;he<=Q;he++)X.push(new Date(M,A+1,he));return X},H=O=>!x||!u?!1:O>=x&&O<=u,U=O=>!x||!T?!1:O>=x&&O<=T||O<=x&&O>=T,B=O=>{!x||u?(b(O),w(null)):O<x?(w(x),b(O),i&&I(O,x)):(w(O),i&&I(x,O))},Z=O=>{D(O)},K=()=>!x||!u?0:Math.round((u.getTime()-x.getTime())/(1e3*60*60*24))+1,ee=(O,M)=>{const A=new Date(O.getFullYear(),O.getMonth()-1,1);s&&A<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&M||(M?C(A):(R(A),A.getMonth()===z.getMonth()&&C(new Date(A.getFullYear(),A.getMonth()-1,1))))},F=(O,M)=>{const A=new Date(O.getFullYear(),O.getMonth()+1,1);M?(C(A),A.getMonth()===k.getMonth()&&R(new Date(A.getFullYear(),A.getMonth()+1,1))):R(A)},E=O=>{const A=O.toLocaleDateString(m.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),q=A[0].charAt(0).toUpperCase()+A[0].slice(1),$=A[1],W=A[2].charAt(0).toUpperCase()+A[2].slice(1),X=A[3];return`${q} ${$} de ${W} ${X}`},j=()=>{const O=new Date;b(null),w(null),C(O),R(new Date(new Date().setMonth(new Date().getMonth()+1))),V(!1),o({startDate:null,endDate:null}),p()},y=()=>{V(!1);const O=dt(x),M=dt(u);r({startDate:O,endDate:M}),h(!1)},I=(O,M)=>{b(O),w(M),V(!1);const A=dt(O),q=dt(M);r({startDate:A,endDate:q}),h(!1)};return{isOpen:L,endDate:u,language:m,leftMonth:z,startDate:x,setIsOpen:V,hoverDate:T,rightMonth:k,formatDate:E,handleSearch:y,handleCancel:j,isDateInRange:H,getDaysInMonth:f,isDateDisabled:_,handleDateClick:B,handleDateHover:Z,handlePrevClick:ee,handleNextClick:F,getDaysSelected:K,isDateInHoverRange:U,keyReset:g,resetSelect:p,handleBasicSelect:({value:O})=>{O==="custom"?(h(!0),V(!1)):r({value:O})},isOpenCalendar:d,setIsOpenCalendar:h}},Tl=({locale:e="es",onDateRangeChange:s,disablePastDates:r,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:h,disableFutureDates:g,optionsBasicSelect:p,withoutSearchButton:m,widthBasicSelect:x,fontSizeLabelBasicSelect:b,fontSizeOptionsBasicSelect:u,labelText:w,subLabelText:T,disablePastDaysCount:D,keyResetBasicSelect:z})=>{const{keyReset:C,isOpen:k,endDate:R,language:L,leftMonth:V,startDate:_,setIsOpen:f,rightMonth:H,handleSearch:U,handleCancel:B,isDateInRange:Z,getDaysInMonth:K,isDateDisabled:ee,handleDateClick:F,handleDateHover:E,handlePrevClick:j,handleNextClick:y,getDaysSelected:I,isDateInHoverRange:P,handleBasicSelect:O,isOpenCalendar:M,setIsOpenCalendar:A}=Mu({locale:e,onReset:l,onDateRangeChange:s,disablePastDates:r,withoutSearchButton:m,limitRange:i,disableFutureDates:g,disablePastDaysCount:D}),q=v.useRef(null);v.useEffect(()=>{const W=X=>{q.current&&!q.current.contains(X.target)&&(k||M)&&(f(!1),A(!1),o||B())};return document.addEventListener("mousedown",W),()=>{document.removeEventListener("mousedown",W)}},[R,B,k,f,_,o,M,A]);const $=(W,X=!0)=>{const G=K(W),se=W.getMonth(),Q=(le,fe)=>[le&&le.getMonth()!==se?"other-month":"",le&&Z(le)?"in-range":"",le&&P(le)?"hover-range":"",le&&(le.getTime()===(_==null?void 0:_.getTime())||le.getTime()===(R==null?void 0:R.getTime()))?"selected":"",ee(le,fe)?"disabled":""].join(" "),he=({date:le,isLeftCalendar:fe,disablePastDates:_e,leftMonth:ke})=>{const Pe=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),ce=new Date(le.getFullYear(),le.getMonth()-1,1).getTime();return!!(_e&&(ce<Pe||!fe&&new Date(ke.getFullYear(),ke.getMonth(),1).getTime()<=Pe))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>j(W,X),disabled:Vn(new Date(W.getFullYear(),W.getMonth()-1,1),!0,_,i)||he({date:W,isLeftCalendar:X,disablePastDates:r,leftMonth:V}),children:t.jsx("span",{className:"sr-only",children:t.jsx(dr,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[L.MONTHS[W.getMonth()],t.jsx("p",{children:W.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>y(W,X),disabled:Vn(new Date(W.getFullYear(),W.getMonth()+1,1),!1,_,i)||g&&new Date(W.getFullYear(),W.getMonth(),1).getTime()>=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),children:t.jsx("span",{className:"sr-only",children:t.jsx(ur,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),L.DAYS.map(le=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:le},le)),G.map((le,fe)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${Q(le,X)}`,disabled:!le||ee(le),onClick:()=>le&&!ee(le)&&F(le),onMouseEnter:()=>le&&!ee(le)&&E(le),onMouseLeave:()=>E(null),children:t.jsx("span",{className:`day-text ${le?"":"text-muted"}`,style:{fontSize:d},children:le?le.getDate():""})})},`${le}_${fe}`))]})]})};return v.useEffect(()=>{z&&B()},[z]),v.useEffect(()=>{k&&A(!1)},[k]),t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:q,style:{width:x},children:[t.jsx(et,{label:"Buscar por fecha",options:p,size:x,isOpen:k,setIsOpen:f,disabledClickOutside:!0,disabled:h,onchange:O,fontSizeLabel:b,fontSizeOptions:u,keyReset:C,labelText:w,subLabelText:T,sortAlphabetically:!1}),M&&t.jsxs("div",{className:"date-picker-dropdown",style:{right:a==="right"?"0":"auto",left:a==="left"?"0":"auto",top:"90%"},children:[t.jsxs("div",{className:"calendars-wrapper",children:[$(V,!0),$(H,!1)]}),!m&&t.jsx("div",{className:"date-picker-footer",children:_&&R&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[I()," ",L.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Ln,{buttonProperties:{onClick:()=>B(),style:{width:"115px",textAlign:"center"}},children:L.cancel}),t.jsx(Ye,{buttonProperties:{onClick:()=>U(),style:{width:"115px",textAlign:"center"}},children:L.search})]})]})})]})]}),_&&R&&o&&t.jsx("button",{className:"button-reset",onClick:()=>B(),children:t.jsx(Sn,{})})]})};Tl.propTypes={locale:n.oneOf(["es","en"]),heightBoxes:n.string,onDateRangeChange:n.func,disablePastDates:n.bool,resetButton:n.bool,withoutSearchButton:n.bool,onReset:n.func,direction:n.oneOf(["left","right"]),fontSize:n.string,limitRange:n.number,keyReset:n.number,disabled:n.bool,disableFutureDates:n.bool,optionsBasicSelect:n.array,widthBasicSelect:n.string,fontSizeLabelBasicSelect:n.string,fontSizeOptionsBasicSelect:n.string,labelText:n.string,subLabelText:n.any,disablePastDaysCount:n.number,keyResetBasicSelect:n.number};const Ml=({width:e,menu:s,submenu:r,tab:i,navigateFn:o,fontSize:l,Icon:a,marginTop:c})=>{const d=()=>{o({submenu:r,tab:i})};return t.jsxs("div",{className:"flex gap w-full",style:{width:e},children:[t.jsxs("ul",{className:"flex gap items-center ulBreadcrumbs",children:[t.jsx("li",{className:"list-none flex",style:{marginTop:c??"4px"},children:a||t.jsx(Tn,{width:25,height:25})}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:s}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(zn,{})})]}),t.jsxs("ul",{className:"flex gap items-center pointer ulBreadcrumbs",children:[t.jsx("li",{className:`list-none ${i?"border-bottom":"color-tab"}`,onClick:d,style:{fontSize:l},children:r}),i&&t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(zn,{})}),i&&t.jsx("li",{className:"list-none color-tab",style:{fontSize:l},children:i})]})]})};Ml.propTypes={width:n.string,menu:n.string,submenu:n.string,tab:n.string,navigateFn:n.func,fontSize:n.string,Icon:n.element,marginTop:n.string};const zl=({steps:e=[],currentStep:s=1,width:r="600px"})=>{const i=()=>e.length<=1?0:s/e.length*100;return t.jsxs("div",{className:"stepper-container",style:{width:r},children:[t.jsx("div",{className:"stepper-line",style:{"--progress-width":`${i()}%`}}),t.jsx("div",{className:"stepper-steps",children:e.map((o,l)=>{const a=l+1,c=a<s,d=a===s;return t.jsxs("div",{className:"step-wrapper",children:[t.jsx("div",{className:`step-circle ${c?"completed":d?"current":"inactive"}`,children:c?t.jsx("svg",{className:"checkmark",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:t.jsx("polyline",{points:"20,6 9,17 4,12"})}):t.jsx("span",{className:"step-number",children:a})}),t.jsx("div",{className:"step-label",children:o.title})]},l)})})]})};zl.propTypes={steps:n.array,currentStep:n.number,width:n.string};const El=({width:e,items:s=[],onItemClick:r,fontSize:i,Icon:o,marginTop:l})=>{const a=(c,d)=>{r&&typeof r=="function"&&r(c,d)};return!s||s.length===0?null:t.jsx("div",{className:"flex gap w-full",style:{width:e},children:t.jsxs("ul",{className:"flex gap items-center ulBreadcrumbs",children:[t.jsx("li",{className:"list-none flex",style:{marginTop:l??"4px"},children:o||t.jsx(Tn,{width:25,height:25})}),s.map((c,d)=>{const h=d===s.length-1,g=(c==null?void 0:c.isClickable)!==!1&&!h,p=d===1;return t.jsxs("div",{className:"flex gap items-center",children:[t.jsx("li",{className:`list-none ${h?"color-tab":g||p?"pointer border-bottom":""}`,onClick:()=>g?a(c,d):null,style:{fontSize:i,cursor:g?"pointer":"default"},title:g?`Click to navigate to ${c.name||c}`:void 0,children:c.name||c}),!h&&t.jsx("li",{className:"list-none",style:{fontSize:i},children:t.jsx(zn,{})})]},d)})]})})};El.propTypes={width:n.string,items:n.arrayOf(n.oneOfType([n.string,n.shape({name:n.string.isRequired,path:n.string,id:n.oneOfType([n.string,n.number]),data:n.any})])).isRequired,onItemClick:n.func,fontSize:n.string,Icon:n.element,marginTop:n.string};const Nl=({icon:e,title:s,className:r="",children:i})=>t.jsxs("div",{className:`data-section ${r}`,children:[t.jsxs("div",{className:"data-section-header",children:[e&&t.jsx(e,{className:"data-section-icon"}),t.jsx("h3",{className:"data-section-title",children:s})]}),t.jsx("div",{className:"data-section-content",children:Array.isArray(i)?i.map((o,l)=>t.jsx("div",{className:"data-section-item",children:o},l)):t.jsx("div",{className:"data-section-item",children:i})})]});Nl.propTypes={icon:n.elementType,title:n.string,className:n.string,children:n.oneOfType([n.node,n.arrayOf(n.node)])};const zu=Fe(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),Dl=({data:e,language:s,onSave:r,onCancel:i,isUpdate:o})=>{const[l,a]=v.useState(e),c={en:{title:"Application list",update:"Update application",cancel:"CANCEL",save:"SAVE"},es:{title:"Lista de aplicaciones",update:"Editar aplicación",cancel:"CANCELAR",save:"GUARDAR"}},d=c[s]??c.es,h=p=>{const m=l.filter((x,b)=>b!==p);a(m)},g=()=>{r(l)};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-listAplication",children:[t.jsxs("div",{className:"relative-onehundredpercent",children:[t.jsx("div",{className:"modal-listAplication-header",children:t.jsx("h2",{children:o?d.update:d.title})}),t.jsx("button",{className:"close-button",onClick:i,children:t.jsx(ct,{sx:{color:"#8598ad"}})})]}),t.jsx("div",{className:"modal-listAplication-content",children:l==null?void 0:l.map((p,m)=>t.jsxs("div",{className:"application-item",children:[t.jsx("div",{className:"application-header",children:t.jsx("h3",{children:p.title})}),t.jsxs("div",{className:"container-center-between",children:[t.jsx("div",{className:"application-title",children:typeof p.logo=="string"?t.jsx("div",{children:t.jsx("img",{src:p==null?void 0:p.logo,alt:`${p.title} logo`,className:"app-logo"})}):t.jsx("div",{children:t.jsx(p.logo,{})})}),l.length>1&&t.jsx("button",{className:"remove-button",onClick:()=>h(m),children:t.jsx(zu,{sx:{color:"#8598ad"}})})]}),t.jsx("p",{className:"application-manager",children:p.manager}),m<e.length-1&&t.jsx("hr",{})]},m))}),t.jsxs("div",{className:"modal-listAplication-footer",children:[t.jsx(Ot,{buttonProperties:{disabled:!1,onClick:()=>i(),style:{width:"45%"}},children:d.cancel}),t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"45%"}},children:d.save})]})]})})};Dl.propTypes={data:n.array,language:n.oneOf(["en","es"]),onSave:n.func,onCancel:n.func,isUpdate:n.bool};const Ol=e=>e.toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"}),Al=({isOpen:e,ticketNumber:s="##000",date:r=new Date,setIsOpen:i,isReadOnly:o=!1,fontSize:l="1vw",fontSizeButton:a="0.8vw",fontSizeTicketNumber:c="1.3vw",width:d="40vw",onAccept:h,onCreateNewTicket:g,createNewTicket:p=!0})=>{if(!e)return null;const m=()=>i(!1),x=()=>{m(),h()},b=()=>{m(),g()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:d},children:[t.jsx("button",{onClick:m,className:"closeButton",children:t.jsx(ct,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[o&&t.jsxs("div",{className:"alert",children:[t.jsx(Yt,{width:30}),t.jsx("p",{style:{fontSize:l},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(En,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:l},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:s})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:Ol(r)})]})]})]}),t.jsxs("div",{className:"buttonContainer",style:{justifyContent:p?"space-between":"center"},children:[p&&t.jsx(Ot,{buttonProperties:{disabled:!1,onClick:()=>b(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>x(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})]})})};Al.propTypes={isOpen:n.bool,ticketNumber:n.string,date:n.instanceOf(Date),setIsOpen:n.func,isReadOnly:n.bool,fontSize:n.string,fontSizeButton:n.string,fontSizeTicketNumber:n.string,width:n.string,onAccept:n.func,onCreateNewTicket:n.func,createNewTicket:n.bool};const Eu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAugAAACTCAMAAADr/hyJAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAJhUExURQAAANzz7dzz7dz07P///9zz7dzz7dvt7dzz7dvz7dzz7t3y7t307dvz7dv//9zz7d307eD169zz7dr079vz7dvz7dzz7d307b///9zz7tzz7dzz7tjr69vz69zy7dzz7dzy7tz27d307Nzz7f///9z07dzz7dX//9zz7tzz7dzz7dXq6t3y7tzz7dzz7f///9vz89v07Nzz7Nzz7d//397379zz7dzz7d/v793u7tjw8N/v79rz7Nzy7tzz7eHw8Nvz7dzz6N3z7dzz7dny8tvw8Nzz7d706dzz7eP/49zz7d307dzz7dzz7N307tvy7tzz7dv07N317N3y7t3z7dzx6uPx8dj169307tvy7dzz7tzz7dz169v07dzz7d3z7d3z7Nrw8Nzz7tvz7dzz7d337tzz7dzz7dz07Nzz7dzz7Nfy8tzz7dzz69zz7d3x6ub/5tHo6Nzz7N3z7dzy7dzy7Nzy7tvz7dv07sz//931693z7dzy7dz07d3z7tzz7d307dvz7dvz7N3x7tzy7dvy7Nrx7Nv07Nzz7dzz7dz07dzz7dv07dvy7dzy7Nzz7dzy7tzz7tzz7dvy69v169zy7dzz7drz79zz7dzy7dzz7t307tv179zz7t307dvz7Nvz7dzz7tzz7dvz7t/y7Nzz7dv07dv07dz07dzz7dzz7Nvz7d3z7dzy7d7y69zz7tzz7dzz7dzz7N3y7d3y7d7x7Nzy7tz07N3z7N3y7Nzz7tzz7Nz07dzz7tzz7Nzy7dzz7tzz7dzz7d3z7tz17t707t/06tzz7tv07dzz7f///6DK0vIAAADJdFJOUwDE5l4B+pEOuyrbTPSAB/ycGbww11XsbwSw9oUNQMv9oR1E0gLfxwZm6dUMd/LhAxWI+OsIH5n7IA8hECmi8xErFqvwFCP3F/UJ7959zllNxbM1PKokEhqGY8zZM3LYuVIize3jHv75ieVsE91B2iUKC3vPtmB1rFwFNH/KtGjocLqkS4x5N12a8XSunWRR7naSgk4ytag+kLeEWzGvyKVUsadqKL2ecZ/il4FTOieTprjqjmE2O1+Vo75tSFhui7/W0WlJLhgsR8ixHpYAAAABYktHRASPaNlRAAAAB3RJTUUH6AsMDjsfsOFyIQAAAAFvck5UAc+id5oAAAbYSURBVHja7d3pdxNVGIDxSQJp0CYBYRqEQiEt0tYUmBZiEdKWpSxWSWMK1RjAqlCWVmUTlEWxgKJAFdwRFUFUVNz3fdf/ykY8AkJqs74zc5/fx36aufOcnDt3bme0PwEFaNIHABQDoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOpRA6FACoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOpRA6FACoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOpRA6FACoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOlTgIHTYn9M1jNBhd8PdJZpG6LA5zwhNI3TY3FVXaxqhw+ZKvT6N0GFz/pGjNI3QYXPXjNY0QofNjdE1jdBhc2WBsZd2rl0rfUhAvo0bX65dZsJE6cMC8qli0mTtioKV0ocG5I1ntJZOlT5F+uiAvLhugjaYqdU10kcI5KxW1/7P9aE66aMEcjKtevr/dj5ghlEvfaRA1hpCM4eSecqs8A3SRwtkpcxbMtTMUxpJHRZUZ8zOJPOUG8N+6aMGMlJnzMk085S5EVKHdTQZzdlkntISqZA+emBISt3zss08ZfR8Uof5LRi/MJfMU1q5LYXJlXmznrRcrNG9SPpMgLRqvBmvtKSz2FgifTbAFU0LLM1X5ikLvTdJnxFwmbaAL/e4L9V8c430WQGXuGXZkPa0ZMrnGiN9ZsC/HNFhhcg8pSraLn12QEpF7NZCVX5evIPHpZDW5J5V2MxTlrPaCFE13hWFzzyl87Yy6XOFsipvH/J289z5XPwfNQRUeAp3B5oGk3UUW1N4bpEr/1urwUMkFE9bqEhT88uVBHg9Booj4Rqbe7DZqwoyg0HBLYqMzr3VXLUaDdLjAFu7Q27Ocimf7pEeC9iVPxYs9jrLYJLhUukRgQ05jcm5x5lfK1aukh4V2EvF6jtFb0DT4mcd+eM0uqSDTm929V3S4wM7qPDo5vwxvyDpvlt6lGBx9xhrpDMeipm6Z630UMGyujuiBfm/oYIYsW699HjBkiZu2Cgdb2aq4tyZIkNOtwkegGauxMUUBkNWHzP9/Wd6a0I90uMHS0gELDZl+a+q3pFs5sXg7vXeJ91pPviiEabrSKcsHDfTZpbc3K/HhksPKExoQSRq3Yn5la2odnBriovVx1ybpLMsiNbNW6THFmbRvXVb3l6Ca0KNAX7X8affEcjp+xSWMIvW1TZQ+QzpCGkdhVUfq1al8vO6Hmjn60iqKd2+w87z8nQWujpYX1dHWUS/Xjo5MfdHIzw3VcEUd/BB6diETY+775G+DCioWsNGzz5zMeyhnbuYsNvTuN17LPHfQkWzUI8skL4oyLOHI3q5dFgmND1uJKQvDfLFn/AmmbCkdd8je/mehvXVPLrMJG+RM7GlQSPB4yTruiFhxKukI7KKxXrYKX3BkIWesK7iI6FcVCVDnm7p64YMlHoCjdLVWFR53767WHe0giV79x+w239QFFk5U3aTG5iUB4v4oTg7m6e7WXg0JX/CiJZI52Evax57fIz0ZcXFutuNPiIviHlRw8ENqhmUOozgUukc7G1TPOQZJ32dlXbQE4pPlc5ADb74E0+yzi6govbQ4RE82C+uzoF5DNsFiqfOYUQt/to463owGYi0SReggJ5IIMljfWmTj4zf2y+dgm21dTzVy9qKeXRGvTG+KZNfzpg3av/Xr1hQ1VzX0+1N0nnYgnPr0WOd0tcTgxr4be+oZdNAtvw9A7/jo6QvIoZoTjwQdtRLR2MxTYlIIG7P137am+8Z17pnp0jnYwXdlc9tPrKcdRVLK0+6jFgPc5k0nDHDlWTzoW2seH7PCy+2sbn9gvrK+S8df5nEbWlqVzQUdhyUbkxYfyIS0lus89VaZKuzd8++E5VLpIMruoZXXj2641Ye/6imOamHwh4VPhDZn+gYmInPkR5wiJqTfG2l++QWG+4iWLu+/fV1p/pO+6SHGGZS3tJ3yni9fb1fus+cLbrqjTM7t/W2smscg2luCVZ7w7GE1ba899d6IkZAT3ayII6MbDo9Ycebxlu7d71t3o3vdXc4Tpx9Z8O7763h9xu5KzkXP3Jq5/sffLirTfytv/6PVrXHJn28/5OrP53MOjgKZuy8059FP1/50hdfnvwq0dNQ+C01Tc5Vuzzbz7yw8+vj33zayuIJZPhmdCV7j31b/V1o/PfhSMfqHxI/9jT0Z7GKM7y/39nz00TP7o5DZw1v6OfD+i/xXxubmXLD3KY3N//W1fV7MhkPntenX/DHP387kEye6+ra2MzLOQEAyMBf4Qb2Ap6Bh4QAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjQtMTEtMTJUMTQ6NTk6MTIrMDA6MDBpf70TAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI0LTExLTEyVDE0OjU5OjEyKzAwOjAwGCIFrwAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyNC0xMS0xMlQxNDo1OTozMSswMDowMDz6OZAAAAAASUVORK5CYII=",Il=({onChange:e,handleClose:s})=>{const[r,i]=v.useState(!1),o=()=>{e(r),s()};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-VisualizationModaLogin",children:[t.jsx("img",{src:Eu,alt:"",className:"backgroundTicket"}),t.jsx("div",{className:"TicketImageUserReadOnly",style:{height:"95px"},children:t.jsx("div",{className:"UserReadOnlyIconCenter",children:t.jsx(Yt,{width:80})})}),t.jsx("button",{className:"close-button-VisualizationModaLogin",onClick:s,children:t.jsx(ct,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"container-content",children:[t.jsx("div",{className:"modal-header",children:t.jsx("h2",{children:"¿Qué es un usuario de Visualización?"})}),t.jsxs("div",{className:"modal-content",children:[t.jsx("p",{children:"Este perfil se puede utilizar para realizar ensayos o simulaciones dentro del portal, aplicación o plataforma. Este tipo de usuario se creo con el objetivo de evaluar funcionalidades, detectar errores o problemas, y verificar que el sistema funciona correctamente antes de que esté disponible para usuarios reales."}),t.jsx("h3",{children:"¿Qué puedo y que no puedo hacer?"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Puedes Visualizar y hacer el flujo de una sección dentro del portal"}),t.jsx("li",{children:"Puedes hacer la navegación pero no es posible guardar o realizar solicitudes de Tickets"})]}),t.jsx("div",{className:"checkbox-container",children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{onChange:l=>i(l.target.checked),sx:{"&.Mui-checked":{color:"#33a4dd"}}}),label:"No volver a mostrar al iniciar sesión"})}),t.jsx("div",{className:"container-button-modal",children:t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>{o()},style:{width:"40%"}},children:"ACEPTAR"})})]})]})]})})};Il.propTypes={onChange:n.func,handleClose:n.func};const Rl=({isOpen:e,setIsOpen:s,width:r="30vw",fontSizeTitle:i="1.5vw",fontSizeDescription:o="1vw",fontSizeButton:l="1vw",description:a="Al cancelar perderás los datos proporcionado en la acción.",title:c="¿Estas seguro que deseas cancelar dia y hora específicos de la promoción?",textButton:d="ACEPTAR",onAccept:h})=>{if(!e)return null;const g=()=>s(!1),p=()=>{s(!1),h()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:r},children:[t.jsx("button",{onClick:g,className:"closeButton",children:t.jsx(ct,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[t.jsx("div",{className:"iconContainer",children:t.jsx(Os,{})}),t.jsx("h2",{className:"title",style:{border:"none",fontSize:i},children:c}),t.jsx("p",{className:"warning-modal-description",style:{fontSize:o},children:a}),t.jsx("div",{className:"buttonContainer",children:t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"100%",fontSize:l}},children:d})})]})]})})};Rl.propTypes={isOpen:n.bool,setIsOpen:n.func,width:n.string,fontSizeTitle:n.string,fontSizeDescription:n.string,fontSizeButton:n.string,textButton:n.string,onAccept:n.func};const Pl=({title:e,icon:s,className:r="",classNameTextArea:i="",value:o="",onChange:l,placeholder:a="Modificación de la promoción por cambios de Stock.",disabled:c=!1})=>t.jsxs("div",{className:`observations ${r}`,children:[t.jsxs("div",{className:"observations-header",children:[s&&t.jsx(s,{className:"observations-icon"}),t.jsx("h3",{className:"observations-title",children:e})]}),t.jsx("div",{className:"observations-content",children:t.jsx("textarea",{className:`observations-textarea ${i}`,value:o,onChange:l,placeholder:a,rows:4,disabled:c})})]});Pl.propTypes={title:n.string,icon:n.elementType,className:n.string,classNameTextArea:n.string,value:n.string,onChange:n.func,placeholder:n.string,disabled:n.bool};const Wl=({titles:e=["1. Cargar Datos de Cancelación","2. Validar los Datos Cargados","3. Aceptar o Rechazar"],currentStep:s=1,fontSizeTitles:r,widthIcon:i,heightIcon:o,width:l})=>{const a=[Vi,Hi,qi],c=e.map((d,h)=>({number:h+1,title:d,icon:a[h]}));return t.jsxs("div",{className:"stepper",style:{width:l},children:[t.jsx("div",{className:"stepper-progress",children:t.jsx("div",{className:"stepper-progress-bar",style:{width:s===1?"0%":s===2?"52%":"100%"}})}),t.jsx("div",{className:"stepper-steps",children:c.map(d=>{const h=d.icon,g=s>=d.number;return t.jsxs("div",{className:`stepper-step ${g?"active":""}`,style:{height:o},children:[t.jsx("span",{className:"stepper-title",style:{fontSize:r},children:d.title},d.number),t.jsx("div",{className:"stepper-icon",style:{width:i,height:o},children:t.jsx(h,{})})]},d.number)})})]})};Wl.propTypes={titles:n.arrayOf(n.string),currentStep:n.number,fontSizeTitles:n.string,widthIcon:n.string,heightIcon:n.string,width:n.string};const $l=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-InProcessing",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Dn,{fill:"#d0aa00"}),"En Procesamiento"]});$l.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Bl=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-ToStart",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Dn,{fill:"#7c92c5"}),"Por Iniciar"]});Bl.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const gr=(e,s="100px",r,i,o)=>({Activo:t.jsx(ir,{width:s,fontSize:r,marginAuto:i,height:o}),Cancelada:t.jsx(lr,{width:s,fontSize:r,marginAuto:i,height:o}),Finalizada:t.jsx(ar,{width:s,fontSize:r,marginAuto:i,height:o}),Inactivo:t.jsx(or,{width:s,fontSize:r,marginAuto:i,height:o}),"En Procesamiento":t.jsx($l,{width:s,fontSize:r,marginAuto:i,height:o}),"Por Iniciar":t.jsx(Bl,{width:s,fontSize:r,marginAuto:i,height:o}),"En tránsito":t.jsx(cr,{width:s,fontSize:r,marginAuto:i,height:o})})[e]||e,Fl=({data:e,onEdit:s,width:r,dataKeysNotToRender:i=[],textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeight:d,onFnIcon:h,icon:g=t.jsx(Ms,{}),widthState:p,onEditSubData:m,onFnIconSubData:x,subMessage:b,onClickOptions:u,onClickSubOptions:w,fontSizeTHead:T,fontSizeTBody:D,widthOptions:z,fontSizeOptions:C,nameOfKeyState:k="Estado",texAlignTHead:R="start",textAlignTBody:L="start",fontSizeState:V,fontStyleTBody:_="normal",fontStyleTHead:f="normal"})=>{const[H,U]=v.useState({}),B=E=>{U(j=>({...j,[E]:!j[E]}))},Z=E=>{s(E)},K=E=>{m(E)},ee=e.length>0?Object.keys(e[0]).filter(E=>E!=="subData"&&!i.includes(E)):[],F=E=>E!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),ee.map((E,j)=>t.jsx("th",{style:{fontSize:T,textAlign:R,fontStyle:f},children:E.replace(/_/g," ")},j)),ee.length>0?t.jsx("th",{style:{fontSize:T,textAlign:R,fontStyle:f},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:ee.length+1,style:{fontSize:c,textAlign:"center",fontStyle:_},children:a})}),e==null?void 0:e.map(E=>{var j;return t.jsxs(v.Fragment,{children:[t.jsxs("tr",{className:"main-row",children:[t.jsx("td",{children:t.jsx("button",{onClick:()=>B(E.id),className:"reset-styles-button",style:{width:"100%"},children:t.jsx("i",{className:`arrow-grey-container ${H[E.id]?"up":"down"}`})})}),ee.map((y,I)=>t.jsx("td",{style:{color:y!==k?F(E.Estado):"black",padding:y===k?"0 9px":"10px",fontSize:D,textAlign:L,fontStyle:_},children:y===k?gr(E[y],p,V,L==="center"):E[y]||"-"},I)),((j=E==null?void 0:E.options)==null?void 0:j.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(At,{onClick:y=>{u({option:y,row:E})},options:[...E.options],fontSize:C,width:z})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>Z(E),style:{fontSize:D,fontStyle:_},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>h(E),children:g})]})})]}),H[E.id]&&t.jsx("tr",{className:"sub-row",style:{fontStyle:"italic"},children:Array.from({length:ee.length+2},(y,I)=>t.jsx("td",{className:"td-empty",style:{fontWeight:"600"},children:I===1?`${b}`:""},I))}),H[E.id]&&E.subData.length>0&&E.subData.map((y,I)=>{var P;return t.jsxs("tr",{className:"sub-row",children:[t.jsx("td",{})," ",ee.map((O,M)=>t.jsx("td",{style:{color:O!==k?F(y.Estado):"black",padding:O===k?"0 9px":"10px",fontSize:D,textAlign:L,fontStyle:_},children:O===k?gr(y[O],p,V,L==="center"):y[O]||"-"},M)),((P=y==null?void 0:y.options)==null?void 0:P.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(At,{onClick:O=>{w({option:O,row:y})},options:[...y.options],fontSize:C,width:z})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>K(y),style:{fontSize:D,fontStyle:_},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>x(y),children:g})]})})]},I)})]},E.id)})]})]})};Fl.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeight:n.string,icon:n.node,onFnIcon:n.func,widthState:n.string,onEditSubData:n.func,onFnIconSubData:n.func,subMessage:n.string,onClickOptions:n.func,onClickSubOptions:n.func,fontSizeTHead:n.string,fontSizeTBody:n.string,fontSizeOptions:n.string,texAlignTHead:n.string,widthOptions:n.string,nameOfKeyState:n.string,textAlignTBody:n.string,fontSizeState:n.string,fontStyleTBody:n.string,fontStyleTHead:n.string};const Ll=({data:e,dataKeysNotToRender:s,title:r,minWidth:i,texAlignTHead:o="start",textAlignTBody:l="start",fontSizeTHead:a,fontSizeTBody:c,fontSizeTitle:d})=>{const h=e.length>0?Object.keys(e[0]).filter(g=>!s.includes(g)):[];return t.jsxs("div",{className:"log-container",style:{minWidth:i},children:[t.jsx("h1",{className:"log-title",style:{fontSize:d},children:r}),t.jsxs("table",{className:"log-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:h.map((g,p)=>t.jsx("th",{style:{textAlign:o,fontSize:a},children:t.jsx("p",{children:g})},p))})}),t.jsx("tbody",{children:e.map((g,p)=>t.jsx("tr",{style:{textAlign:l,fontSize:c},children:h.map((m,x)=>t.jsx("td",{children:t.jsx("p",{children:g[m]})},x))},p))})]})]})};Ll.propTypes={title:n.string,data:n.array,dataKeysNotToRender:n.array,minWidth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,fontSizeTitle:n.string};const _l=({data:e,minWidth:s,dataKeysNotToRender:r,topToolTip:i,toolTips:o,fontSizeToolTip:l,messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:h="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px",isWrap:b=!1,width:u="100%"})=>{const[w,T]=v.useState(null),D=k=>{T(k)},z=()=>{T(null)},C=e.length>0?Object.keys(e[0]).filter(k=>!r.includes(k)):[];return t.jsxs("table",{className:"table-ixc",style:{minWidth:s,minHeight:d,width:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[C.map((k,R)=>t.jsxs("th",{className:"relative",onMouseEnter:()=>D(k),onMouseLeave:z,style:{height:x},children:[t.jsx("p",{style:{textAlign:h,fontSize:p,whiteSpace:b?"wrap":"nowrap",textOverflow:b?"clip":"ellipsis",overflow:b?"auto":"hidden"},children:k}),o&&o[k]&&w===k&&t.jsx("div",{className:"tooltipTable",style:{top:i},children:t.jsx(Ws,{fontSize:l,children:o[k]})})]},R)),C.length===0&&t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:C.length+1,style:{fontSize:c,textAlign:"center",whiteSpace:b?"wrap":"nowrap",textOverflow:b?"clip":"ellipsis",overflow:b?"auto":"hidden"},children:a})}),e.map((k,R)=>t.jsx("tr",{children:C.map((L,V)=>t.jsx("td",{style:{textAlign:g,fontSize:m,whiteSpace:b?"wrap":"nowrap",textOverflow:b?"clip":"ellipsis",overflow:b?"auto":"hidden",height:x},children:k[L]},V))},(k==null?void 0:k.id)||R))]})]})};_l.propTypes={minWidth:n.string,toolTips:n.object,topToolTip:n.string,data:n.arrayOf(n.object),dataKeysNotToRender:n.arrayOf(n.string),fontSizeToolTip:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,heightTd:n.string,isWrap:n.bool,width:n.string};const Hl=({data:e,onEdit:s,width:r,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,icon:h,onFnIcon:g,onClickOptions:p,widthOptions:m,fontSizeOptions:x,texAlignTHead:b="start",textAlignTBody:u="start",fontSizeTHead:w,fontSizeTBody:T})=>{const D=C=>{s(C)},z=e.length>0?Object.keys(e[0]).filter(C=>C!=="options"&&!i.includes(C)):[];return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[z.map((C,k)=>t.jsx("th",{style:{textAlign:b,fontSize:w},children:C},k)),z.length>0?t.jsx("th",{style:{textAlign:b,fontSize:w},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:z.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((C,k)=>{var R;return t.jsxs("tr",{children:[z.map((L,V)=>t.jsx("td",{style:{textAlign:u,fontSize:T},children:C[L]},V)),((R=C==null?void 0:C.options)==null?void 0:R.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(At,{onClick:L=>{p({option:L,row:C})},options:[...C.options],fontSize:x,width:m})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>D(C),style:{fontSize:T,textAlign:u},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>g(C),style:{textAlign:o?u:"center"},children:h})]})})]},(C==null?void 0:C.id)||k)})]})]})};Hl.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),language:n.oneOf(["en","es"]),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,icon:n.node,onFnIcon:n.func,onClickOptions:n.func,widthOptions:n.string,fontSizeOptions:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string};const Vl=({data:e,onEdit:s,width:r,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:h="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px"})=>{const b=w=>{s(w)},u=e.length>0?Object.keys(e[0]).filter(w=>!i.includes(w)):[];return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[u.map((w,T)=>t.jsx("th",{style:{textAlign:h,fontSize:p},children:w},T)),u.length>0?t.jsx("th",{style:{textAlign:h,fontSize:p},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:u.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((w,T)=>t.jsxs("tr",{children:[u.map((D,z)=>t.jsx("td",{style:{textAlign:g,fontSize:m},children:w[D]},z)),t.jsx("td",{children:t.jsx("button",{className:"edit-button",onClick:()=>b(w),style:{fontSize:m,textAlign:g,height:x},children:o})})]},(w==null?void 0:w.id)||T))]})]})};Vl.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),language:n.oneOf(["en","es"]),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,heightTd:n.string};const ql=({data:e,children:s,width:r,dataKeysNotToRender:i=[],textHeader:o="Acciones",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeigth:c,texAlignTHead:d="start",textAlignTBody:h="start",fontSizeTHead:g,fontSizeTBody:p,heightTd:m="30px"})=>{const x=e.length>0?Object.keys(e[0]).filter(u=>!i.includes(u)):[],b=u=>{if(!s)return null;const w=T=>{if(!T.props.onClick)return T;const D=T.props.onClick,z=C=>{C.rowData=u,D(C)};return v.cloneElement(T,{...T.props,onClick:z})};return Array.isArray(s)?s.map((T,D)=>w(v.cloneElement(T,{key:D,rowData:u,...T.props}))):w(v.cloneElement(s,{rowData:u}))};return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:c},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[x.map((u,w)=>t.jsx("th",{style:{textAlign:d,fontSize:g},children:u},w)),x.length>0?t.jsx("th",{style:{textAlign:d,fontSize:g},children:o}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:x.length+1,style:{fontSize:a,textAlign:"center"},children:l})}),e.map((u,w)=>t.jsxs("tr",{children:[x.map((T,D)=>t.jsx("td",{style:{textAlign:h,fontSize:p},children:u[T]},D)),t.jsx("td",{children:t.jsx("div",{className:"action-icon",style:{height:m,display:"flex",alignItems:"center",gap:"10px"},children:b(u)})})]},(u==null?void 0:u.id)||w))]})]})};ql.propTypes={data:n.arrayOf(n.object),children:n.oneOfType([n.element,n.arrayOf(n.element)]),width:n.string,dataKeysNotToRender:n.arrayOf(n.string),textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,heightTd:n.string};const Ul=({data:e,onEdit:s,width:r,textButton:i="Editar",textHeader:o="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeight:c,onFnIcon:d,icon:h=t.jsx(Ms,{}),widthState:g,onClickOptions:p,fontSizeTHead:m,fontSizeTBody:x,widthOptions:b,fontSizeOptions:u,dataKeysNotToRender:w=[],nameOfKeyState:T="Estado",texAlignTHead:D="start",textAlignTBody:z="start",fontSizeState:C,heightStates:k="18px",heightTd:R="30px",fontStyleTBody:L="normal",fontStyleTHead:V="normal"})=>{const _=U=>{s(U)},f=(e==null?void 0:e.length)>0?Object.keys(e[0]).filter(U=>U!=="options"&&!w.includes(U)):[],H=U=>U!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:c,fontStyle:L},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[f.map((U,B)=>t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:V},children:U},B)),f.length>0?t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:V},children:o}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:f.length+1,style:{fontSize:a,textAlign:"center",fontStyle:L},children:l})}),e.map((U,B)=>{var Z;return t.jsxs("tr",{children:[f.map((K,ee)=>t.jsx("td",{style:{fontSize:x,textAlign:z,color:K!==T?H(U.Estado):"black",height:R,fontStyle:L},children:K===T?gr(U[K],g,C,z==="center",k):U[K]},ee)),((Z=U==null?void 0:U.options)==null?void 0:Z.length)>0?t.jsx("td",{style:{overflow:"visible",height:R,fontStyle:L},children:t.jsx(At,{onClick:K=>{p({option:K,row:U})},options:[...U.options],fontSize:u,width:b})}):t.jsx("td",{style:{height:R,fontStyle:L},children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>_(U),style:{fontSize:x,textAlign:z,fontStyle:L},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>d(U),children:h})]})})]},(U==null?void 0:U.id)||B)})]})]})};Ul.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeight:n.string,icon:n.node,onFnIcon:n.func,widthState:n.string,onClickOptions:n.func,fontSizeTHead:n.string,fontSizeTBody:n.string,fontSizeOptions:n.string,texAlignTHead:n.string,widthOptions:n.string,nameOfKeyState:n.string,textAlignTBody:n.string,fontSizeState:n.string,heightStates:n.string,heightTd:n.string,fontStyleTBody:n.string,fontStyleTHead:n.string};const Zl=({children:e,className:s="",...r})=>t.jsx("th",{className:`th-table-ixc ${s}`.trim(),...r,children:e});Zl.propTypes={children:n.node,className:n.string};const Nu=(e=[])=>{const s=v.useRef(null),[r,i]=v.useState(!1),o=v.useCallback(()=>{if(s.current){const l=s.current,a=l.scrollWidth>l.clientWidth;return i(a),a}return!1},[]);return v.useEffect(()=>{const a=setTimeout(()=>{o()},0);return window.addEventListener("resize",o),()=>{clearTimeout(a),window.removeEventListener("resize",o)}},e),{ref:s,isTruncated:r,checkTruncation:o}},Yl=({children:e,className:s="",classTooltip:r="",showTooltipOnTruncate:i=!1,left:o=120,top:l=0,...a})=>{const{ref:c,isTruncated:d}=Nu([e]),[h,g]=v.useState(!1),[p,m]=v.useState({top:0,left:0}),x=u=>{if(d&&i){const w=u.currentTarget.getBoundingClientRect();m({top:w.top+l,left:w.left+o}),g(!0)}},b=u=>{const w=u.relatedTarget;w&&typeof w.closest=="function"&&w.closest(".td-tooltip-container")||g(!1)};return t.jsxs(t.Fragment,{children:[t.jsx("td",{ref:c,className:`td-table-ixc-base ${s}`.trim(),onMouseEnter:x,onMouseLeave:b,...a,children:e}),h&&xa.createPortal(t.jsx("div",{className:`td-tooltip-container ${r}`.trim(),style:{top:`${p.top}px`,left:`${p.left}px`},onMouseEnter:()=>g(!0),onMouseLeave:u=>{var T;const w=u.relatedTarget;w&&typeof w.closest=="function"&&((T=c.current)!=null&&T.contains(w))||g(!1)},children:e}),document.body)]})};Yl.propTypes={children:n.node,className:n.string,classTooltip:n.string,showTooltipOnTruncate:n.bool,left:n.number,top:n.number};const Gl=({children:e,className:s="",...r})=>t.jsx("thead",{className:`thead-table-ixc ${s}`.trim(),...r,children:e});Gl.propTypes={children:n.node,className:n.string};const Kl=({children:e,className:s="",...r})=>t.jsx("tr",{className:`tr-table-ixc ${s}`.trim(),...r,children:e});Kl.propTypes={children:n.node,className:n.string};const Ql=({children:e,className:s="",...r})=>t.jsx("tbody",{className:`tbody-table-ixc-base ${s}`.trim(),...r,children:e});Ql.propTypes={children:n.node,className:n.string};const Xl=({children:e,className:s,...r})=>t.jsx("table",{className:`table-v2 ${s}`,...r,children:e});Xl.propTypes={children:n.node,className:n.string};const Du=Object.assign(Xl,{Th:Zl,Td:Yl,Thead:Gl,Tr:Kl,Tbody:Ql}),Jl=({menus:e,size:s,onclick:r,height:i,fontSize:o})=>{var p;const l=e||[],[a,c]=v.useState(((p=l[0])==null?void 0:p.id)||""),[d,h]=v.useState(100/l.length),g=m=>{c(m.id),r(m)};return v.useEffect(()=>{const m=()=>{const x=100/l.length;h(x)};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[l.length]),t.jsx("nav",{className:"dynamic-menu",style:{width:s,height:i},children:t.jsx("ul",{children:l.map(m=>t.jsx("li",{className:a===m.id?"selected":"",style:{width:`${d}%`},onClick:()=>g(m),children:t.jsx("button",{style:{fontSize:o},children:m.label})},m.id))})})};Jl.propTypes={menus:n.array,size:n.string,onclick:n.func,height:n.string,fontSize:n.string};const ea=({children:e,onChange:s,tabs:r,value:i,minHeight:o,width:l})=>{const[a,c]=v.useState(i),d=h=>{c(h),s(h)};return t.jsxs("div",{className:"tabs-container",style:{width:l},children:[t.jsx("div",{className:"tabs-wrapper",children:r.map(h=>t.jsxs("button",{onClick:()=>d(h.id),className:`tab-button ${a===h.id?"active":""}`,children:[t.jsx("span",{className:"tab-title",children:h.title}),t.jsx("span",{className:"tab-subtitle",children:h.subtitle})]},h.id))}),t.jsx("div",{style:{minHeight:o},children:e})]})};ea.propTypes={children:n.node,onChange:n.func,tabs:n.arrayOf(n.shape({id:n.string,title:n.string,subtitle:n.any})),value:n.string,minHeight:n.string,width:n.string};const ta=({tabs:e,width:s,onChange:r,disabled:i,defaultValue:o})=>{var d;const[l,a]=v.useState(o||((d=e[0])==null?void 0:d.key)||"");v.useEffect(()=>{o&&a(o)},[o]);const c=h=>{a(h),r(h)};return t.jsx("div",{className:"DeliveryTabs-tabs-container",style:{width:s},children:t.jsx("div",{className:"tabs-wrapper",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((h,g)=>t.jsx("button",{disabled:i,className:`tab ${l===h.key?"active":""} ${g===0?"first-tab":""} ${g===e.length-1?"last-tab":""}`,onClick:()=>c(h.key),role:"tab","aria-selected":l===h.key,children:h.label},h.key))})})};ta.propTypes={tabs:n.arrayOf(n.shape({key:n.string,label:n.string})),width:n.string,onChange:n.func,disabled:n.bool,defaultValue:n.string};const na=({tabs:e,width:s,onChange:r})=>{const[i,o]=v.useState(e[0].id),l=a=>{o(a),r(a)};return t.jsx("div",{className:"tabs-simple-container",style:{width:s},children:t.jsx("div",{className:"tabs-simple-header",children:e.map(a=>t.jsx("button",{className:`tabs-simple-button ${i===a.id?"tabs-simple-button-active":""}`,onClick:()=>l(a.id),children:a.label},a.id))})})};na.propTypes={tabs:n.array,width:n.string,onChange:n.func};const sa=({isOpen:e,ticketNumber:s="##000",date:r=new Date,setIsOpen:i,isReadOnly:o=!1,fontSize:l="1vw",fontSizeButton:a="0.8vw",fontSizeTicketNumber:c="1.3vw",width:d="40vw"})=>{if(!e)return null;const h=()=>i(!1),g=()=>{h()};return t.jsx("div",{className:"ticket-component-v2",style:{width:d},children:t.jsxs("div",{className:"main-content",children:[o&&t.jsxs("div",{className:"alert",children:[t.jsx(Yt,{width:30}),t.jsx("p",{style:{fontSize:l},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(En,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:l},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:s})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:Ol(r)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(Ot,{buttonProperties:{disabled:!1,onClick:()=>h(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})})};sa.propTypes={isOpen:n.bool,width:n.string,onClose:n.func,setIsOpen:n.func,isReadOnly:n.bool,fontSize:n.string,ticketNumber:n.string,date:n.instanceOf(Date),fontSizeButton:n.string,fontSizeTicketNumber:n.string};const ra=({children:e,style:s})=>t.jsx("h3",{className:"blue-title",style:{...s},children:e});ra.propTypes={children:n.any,style:n.object};const ia=({children:e,navigateTo:s,style:r})=>t.jsx("button",{onClick:()=>s(),style:{...r},className:"ions-link",children:e});ia.propTypes={children:n.node,navigateTo:n.func,style:n.object};const oa=({children:e,className:s=""})=>t.jsx("h2",{className:`simple-title ${s}`,children:e});oa.propTypes={children:n.node,className:n.string};const la=({children:e,className:s=""})=>t.jsx("p",{className:`paragraph ${s}`,children:e});la.propTypes={children:n.node,className:n.string};const aa=({tooltip:e,className:s,classNameLabel:r,classNameTooltip:i,debug:o=!1,children:l})=>{const[a,c]=v.useState(!1),d=()=>{c(!0)},h=()=>{c(!1)};return t.jsxs("div",{className:`container-label ${s}`,children:[t.jsx("label",{className:`label-library ${r}`,children:l}),e&&t.jsxs("div",{style:{position:"relative",width:"24px",height:"26px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:d,onMouseLeave:h,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:26,fill:"none",viewBox:"0 0 24 26",children:t.jsx("path",{fill:"#21459C",d:"M12 2.43c-2.652 0-5.196 1.112-7.071 3.091S2 10.183 2 12.981s1.054 5.482 2.929 7.46c1.875 1.979 4.419 3.09 7.071 3.09s5.196-1.111 7.071-3.09C20.946 18.463 22 15.78 22 12.982s-1.054-5.481-2.929-7.46c-1.875-1.979-4.419-3.09-7.071-3.09Zm1 15.826h-2v-6.33h2v6.33Zm0-8.44h-2v-2.11h2v2.11Z"})}),(a||o)&&t.jsx("p",{className:`tooltip ${i}`,children:e})]})]})};aa.propTypes={tooltip:n.string,classNameTooltip:n.string,className:n.string,classNameLabel:n.string,debug:n.bool,children:n.string};const ca=({children:e,className:s=""})=>t.jsx("div",{className:`template-container ${s}`,children:e});ca.propTypes={children:n.node,className:n.string},n.checkPropTypes=()=>{},N.Active=ir,N.ArrowRightIcon=Wn,N.BasicSelect=et,N.BlueTitle=ra,N.BoldIcon=Cs,N.Breadcrumbs=Ml,N.BreadcrumbsNested=El,N.ButtonAddBoxRoundedIcon=_o,N.ButtonArrow=_n,N.ButtonCleanFilters=qo,N.ButtonDarkBlue=Jt,N.ButtonDarkBlueRounded=nr,N.ButtonDarkGreen=Io,N.ButtonDownloadFile=Ro,N.ButtonDownloadTemplate=Fo,N.ButtonEye=Uo,N.ButtonLetters=Ao,N.ButtonMinus=Wo,N.ButtonPlus=Po,N.ButtonReset=Oo,N.ButtonSearch=yo,N.ButtonSoftPastelBlue=$o,N.ButtonSoftPastelBlueRounded=Ho,N.ButtonUploadTemplate=Bo,N.ButtonVibrantBlue=Ye,N.ButtonVibrantBlueSend=Yo,N.ButtonVibrantBlueUpload=Lo,N.ButtonWhiteBorderBlue=Ot,N.ButtonWhiteBorderBlueDownloadTemplate=sr,N.ButtonWhiteBorderBlueSendEmail=Zo,N.ButtonWhiteBorderOrange=Ln,N.ButtonWithOptions=rr,N.Canceled=lr,N.CanceledIcon=Fi,N.CheckBox=Fs,N.CheckIcon=qi,N.CheckTicketIcon=En,N.Chip=Ko,N.ChipSection=Qo,N.ChipWithIcon=Xo,N.CleanFiltersIcon=As,N.ClearFilterIcon=Sn,N.ClosedEye=Ns,N.Completed=ar,N.CompletedIcon=Qi,N.CountCard=hl,N.CustomArrowIcon=P1,N.DataEnteredIcon=Zi,N.DataMasterArrow=Ts,N.DataMasterCountryConfiguration=W1,N.DataSection=Nl,N.DateIcon=Di,N.DateRangeIcon=Is,N.DateRangePicker=ml,N.DateRangePickerBasicSelect=Tl,N.DeliveryTabs=ta,N.DesSelectAllIcon=Ni,N.DownloadIconHover=Pn,N.DownloadTemplateIcon=zs,N.DropFile=no,N.EditIcon=Ms,N.EllipseBase=Dn,N.EllipseBlueIcon=Wi,N.EllipseDarkGreenIcon=Ri,N.EllipseGreenIcon=Nn,N.EllipseGreyIcon=Pi,N.EmailIcon=Rs,N.EraserIcon=Tn,N.ExcelIcon=Ss,N.ExcelSvgIcon=Vi,N.ExpandableTable=Fl,N.EyeButton=Vo,N.FileCard=rl,N.FileCardIcon=Rn,N.FileCardMinimized=il,N.FilePreview=el,N.FilterComponent=wl,N.FilterIcon=Ds,N.FilterTable=kl,N.FolderCard=ol,N.FolderCardIcon=In,N.FolderCardMinimized=ll,N.GreyContainer=nl,N.GreyContainerDropdown=sl,N.GreyInput=so,N.GreySelect=P0,N.GreyTextArea=go,N.HeaderItemsComponent=Jl,N.InProcessIcon=B1,N.InProcessingIcon=Ki,N.InTransit=cr,N.InTransitIcon=An,N.Inactive=or,N.InfoActionCard=jl,N.InfoActionCardDownloadTemplate=Cl,N.Input=Xs,N.InputIcon=Mo,N.InputRadio=Ks,N.InputSearch=at,N.InputUpload=mo,N.InputWithButtonSearch=xo,N.InputWithLabel=Do,N.ItalicIcon=ks,N.KeyboardArrowDownOutlinedIconColorCustom=zi,N.Label=aa,N.LastUpdate=Jo,N.Link=ia,N.Loader=to,N.LogTable=Ll,N.MarksIcon=ws,N.MenuIconOption=Li,N.MenuOptions=At,N.MinusIcon=Bi,N.ModalListAplications=Dl,N.MultiSelect=Eo,N.NumberSpinner=W0,N.NumberSpinnerByRange=bo,N.ObservationIcon=Yi,N.Observations=Pl,N.OpenEye=Es,N.Pagination=fl,N.Paragraph=la,N.PlusIcon=$i,N.ProcessFilter=Sl,N.ProductRecallIcon=$1,N.RightArrowIcon=zn,N.RoundedInput=vo,N.SearchIcon=Xi,N.Select=Bn,N.SelectAll=tr,N.SelectAllIcon=Ei,N.SelectMultiple=Fn,N.SelectNested=Qs,N.SelectPaginator=To,N.SelectRadio=jo,N.SelectWithTitle=wo,N.SimpleTap=na,N.SimpleTitle=oa,N.SingleDatePicker=vl,N.State=ul,N.StateBasic=Go,N.StatsIcon=_i,N.Stepper=Wl,N.StepsComponent=zl,N.Switch=ko,N.Table=_l,N.TableActionIcon=Hl,N.TableComponent=Du,N.TableEdit=Vl,N.TableMultipleIcon=ql,N.TableStates=Ul,N.TabsNavigation=ea,N.TemplateTicketConfirm=ca,N.TextArea=Co,N.TicketComponentV2=sa,N.TicketModal=Al,N.TimeComponent=So,N.TimeIcon=Oi,N.TitleWithTooltip=Xt,N.ToStartProcessingIcon=Gi,N.ToggleChip=Hn,N.TooltipTable=Ji,N.TooltipsWhite=Ws,N.TrashIcon=On,N.TriangleIconForNumberSpinnerByRange=Ui,N.UpLoadSvgIcon=Cn,N.UpdateBanner=ss,N.UploadFileIcon=Mn,N.UserIcon=Ps,N.UserReadOnlyIcon=Yt,N.VisualizationModaLogin=Il,N.WaringBanner=S1,N.WarningIcon=Os,N.WarningModal=Rl,N.WindowCheck=Hi,N.XIcon=Ii,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
498
+ `,nl=({children:e,height:s,width:r,style:i})=>t.jsx(tl,{style:{height:s,width:r,...i},children:e});nl.propTypes={children:n.any,width:n.string,height:n.string,style:n.object};const sl=({title:e,height:s,width:r,style:i,children:o})=>{const[l,a]=v.useState(!1);return t.jsxs(tl,{style:{height:l?"auto":s,width:r,...i,borderRadius:"0px",boxShadow:"none",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e,t.jsx(du,{onClick:()=>a(!l),children:t.jsx("i",{className:`arrow-grey-container ${l?"up":"down"}`})})]}),l&&t.jsx("div",{style:{paddingTop:"8px"},children:o})," "]})};sl.propTypes={title:n.node,width:n.string,height:n.string,style:n.object,children:n.node};const rl=({fileType:e="excel",onClick:s,className:r="",icon:i,isClickable:o=!0,data:l,fontSize:a})=>{const{title:c}=l,d=()=>{o&&s&&s(l)},h=p=>{o&&s&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),s(l))},g=()=>{switch(e){case"excel":return t.jsx(Rn,{});case"word":return t.jsxs("svg",{width:"76",height:"63",viewBox:"0 0 76 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"8",y:"8",width:"60",height:"47",rx:"4",fill:"#2B579A"}),t.jsx("rect",{x:"12",y:"12",width:"52",height:"39",rx:"2",fill:"#2F5F8F"}),t.jsx("text",{x:"38",y:"20",textAnchor:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"DOC"}),t.jsx("rect",{x:"18",y:"25",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"29",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"33",width:"30",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"37",width:"35",height:"2",fill:"white"})]});case"pdf":return t.jsxs("svg",{width:"76",height:"63",viewBox:"0 0 76 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"8",y:"8",width:"60",height:"47",rx:"4",fill:"#D93025"}),t.jsx("rect",{x:"12",y:"12",width:"52",height:"39",rx:"2",fill:"#EA4335"}),t.jsx("text",{x:"38",y:"20",textAnchor:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"PDF"}),t.jsx("rect",{x:"18",y:"25",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"29",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"33",width:"30",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"37",width:"35",height:"2",fill:"white"})]});default:return t.jsxs("svg",{width:"76",height:"63",viewBox:"0 0 76 63",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"8",y:"8",width:"60",height:"47",rx:"4",fill:"#9AA0A6"}),t.jsx("rect",{x:"12",y:"12",width:"52",height:"39",rx:"2",fill:"#BDC1C6"}),t.jsx("rect",{x:"18",y:"25",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"29",width:"40",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"33",width:"30",height:"2",fill:"white"}),t.jsx("rect",{x:"18",y:"37",width:"35",height:"2",fill:"white"})]})}};return t.jsxs("div",{className:`file-card ${o?"file-card--clickable":""} ${r}`,onClick:d,onKeyDown:h,tabIndex:o?0:-1,role:o?"button":"presentation","aria-label":o?`Abrir archivo ${c}`:void 0,children:[t.jsxs("div",{className:"file-card__icon-container",children:[i||g(),t.jsx("div",{className:"file-card__download-icon",children:t.jsx(Pn,{width:16,height:16})})]}),t.jsx("div",{className:"file-card__title",style:{fontSize:a},children:c})]})};rl.propTypes={data:n.object.isRequired,fileType:n.oneOf(["excel","word","pdf","generic"]),onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool};const il=({data:e,fileType:s="excel",onClick:r,className:i="",icon:o,isClickable:l=!0,isSelected:a=!1})=>{const{title:c}=e,d=()=>{l&&r&&r(e)},h=p=>{l&&r&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),r(e))},g=()=>{switch(s){case"excel":return t.jsx(Rn,{width:"32px"});case"word":return t.jsxs("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"2",width:"28",height:"22",rx:"2",fill:"#2B579A"}),t.jsx("rect",{x:"4",y:"4",width:"24",height:"18",rx:"1",fill:"#2F5F8F"}),t.jsx("text",{x:"16",y:"10",textAnchor:"middle",fill:"white",fontSize:"6",fontWeight:"bold",children:"DOC"}),t.jsx("rect",{x:"7",y:"12",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"14",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"16",width:"14",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"18",width:"16",height:"1",fill:"white"})]});case"pdf":return t.jsxs("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"2",width:"28",height:"22",rx:"2",fill:"#D93025"}),t.jsx("rect",{x:"4",y:"4",width:"24",height:"18",rx:"1",fill:"#EA4335"}),t.jsx("text",{x:"16",y:"10",textAnchor:"middle",fill:"white",fontSize:"6",fontWeight:"bold",children:"PDF"}),t.jsx("rect",{x:"7",y:"12",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"14",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"16",width:"14",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"18",width:"16",height:"1",fill:"white"})]});default:return t.jsxs("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"2",width:"28",height:"22",rx:"2",fill:"#9AA0A6"}),t.jsx("rect",{x:"4",y:"4",width:"24",height:"18",rx:"1",fill:"#BDC1C6"}),t.jsx("rect",{x:"7",y:"12",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"14",width:"18",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"16",width:"14",height:"1",fill:"white"}),t.jsx("rect",{x:"7",y:"18",width:"16",height:"1",fill:"white"})]})}};return t.jsxs("div",{className:`file-card-minimized ${l?"file-card-minimized--clickable":""} ${a?"file-card-minimized--selected":""} ${i}`,onClick:d,onKeyDown:h,tabIndex:l?0:-1,role:l?"button":"presentation","aria-label":l?`Abrir archivo ${c}`:void 0,children:[t.jsxs("div",{className:"file-card-minimized__icon-container",children:[o||g(),t.jsx("div",{className:"file-card-minimized__download-icon",children:t.jsx(Pn,{width:12,height:12})})]}),t.jsx("div",{className:"file-card-minimized__filename",children:c})]})};il.propTypes={data:n.object.isRequired,fileType:n.oneOf(["excel","word","pdf","generic"]),onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,isSelected:n.bool};const ol=({onClick:e,className:s="",icon:r,isClickable:i=!0,fontSize:o,hasDownload:l=!1,onChange:a,isSelected:c=!1,data:d})=>{const{id:h,title:g}=d,p=()=>{i&&e&&e(d)},m=x=>{i&&e&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),e(d))};return t.jsxs("div",{className:`folder-card ${i?"folder-card--clickable":""} ${s} ${c?"folder-card--selected":""} ${l?"folder-card--has-download":""}`,onClick:p,onKeyDown:m,tabIndex:i?0:-1,role:i?"button":"presentation","aria-label":i?`Abrir carpeta ${g}`:void 0,style:{border:l?"1px solid #707070":"none"},children:[l&&t.jsx("div",{className:"folder-card__checkbox-container",children:t.jsx(Fs,{inputProperties:{id:h,checked:c,onChange:a},color:"#33A1DD",size:"small"})}),t.jsx("div",{className:"folder-card__icon-container",children:r?t.jsx("div",{className:"folder-card__custom-icon",children:r}):t.jsx("div",{className:`${l?"folder-card__default-icon":"folder-card__default-icon-hover"}`,children:t.jsx(In,{width:"60px"})})}),t.jsx("div",{className:"folder-card__title",style:{width:"70px",fontSize:o},children:g})]})};ol.propTypes={title:n.string.isRequired,onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,fontSize:n.string,id:n.string,value:n.any,hasDownload:n.bool,onChange:n.func,isSelected:n.bool};const ll=({onClick:e,className:s="",icon:r,isClickable:i=!0,fontSize:o,isSelected:l=!1,data:a})=>{const{id:c,title:d}=a,h=()=>{i&&e&&e(a)},g=p=>{i&&e&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),e(a))};return t.jsxs("div",{className:`folder-card-minimized ${i?"folder-card-minimized--clickable":""} ${l?"folder-card-minimized--selected":""} ${s}`,onClick:h,onKeyDown:g,tabIndex:i?0:-1,role:i?"button":"presentation","aria-label":i?`Abrir carpeta ${d}`:void 0,children:[t.jsx("div",{className:"folder-card-minimized__icon-container",children:r?t.jsx("div",{className:"folder-card-minimized__custom-icon",children:r}):t.jsx("div",{className:"folder-card-minimized__default-icon",children:t.jsx(In,{width:"32px"})})}),t.jsx("div",{className:"folder-card-minimized__title",style:{fontSize:o},children:d})]})};ll.propTypes={onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,fontSize:n.string,isSelected:n.bool,data:n.object};const al=({color:e="#33A1DD",size:s=8})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:"none",children:t.jsx("circle",{cx:s/2,cy:s/2,r:s/2-.5,fill:e})});al.propTypes={color:n.string,size:n.number};const cl=({width:e=3,height:s=12,color:r="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:s,fill:"none",viewBox:"0 0 3 12",children:t.jsx("path",{fill:r,stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M1.43 1.275c-.232 0-.445.198-.43.43l.216 5.798a.215.215 0 0 0 .43 0l.214-5.798c.015-.232-.197-.43-.43-.43ZM1.43 10.725a.43.43 0 1 0 0-.86.43.43 0 0 0 0 .86Z"})});cl.propTypes={width:n.number,height:n.number,color:n.string};const dl=({width:e=8,height:s=8,color:r="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:s,fill:"none",viewBox:"0 0 8 8",children:t.jsx("path",{fill:r,d:"M4 .667a3.33 3.33 0 0 0-3.08 4.61A3.33 3.33 0 0 0 5.276 7.08a3.33 3.33 0 0 0 1.805-4.356A3.33 3.33 0 0 0 4 .667Zm1.667 4.53-.47.47L4 4.47 2.804 5.667l-.47-.47L3.53 4 2.334 2.803l.47-.47L4 3.53l1.197-1.197.47.47L4.47 4l1.197 1.197Z"})});dl.propTypes={width:n.number||n.string,height:n.number||n.string,color:n.string};const ul=({className:e="",hasAlerts:s=!1,children:r,hasError:i=!1,...o})=>{const c=["state",e,s?"state--has-alerts":""].filter(Boolean).join(" ");return t.jsxs("div",{className:c,...o,children:[t.jsx("div",{className:"state__indicator",children:i?t.jsx(dl,{width:8,height:8}):t.jsx(al,{size:8})}),t.jsx("div",{className:"state__content",children:r}),s&&t.jsx("div",{className:"state__alert",children:t.jsx(cl,{color:"red",width:"80%"})})]})};ul.propTypes={className:n.string,hasAlerts:n.bool,hasError:n.bool,children:n.node.isRequired};const hl=({children:e,count:s,className:r,classNameCount:i})=>t.jsxs("div",{className:`count-card ${r}`,children:[e,t.jsx("span",{className:`count-card__count ${i}`,children:s})]});hl.propTypes={children:n.node,count:n.number||n.string,className:n.string,classNameCount:n.string};const fl=({totalPages:e=50,currentPage:s=1,onChange:r,nextLabel:i,prevLabel:o,height:l,disabled:a,fontSize:c})=>{const d=u=>{u>0&&u<=e&&r(u)},h=()=>{s<e&&r(s+1)},g=()=>{s>1&&r(s-1)},m=[],x=Math.max(1,s-4),b=Math.min(e,x+9-1);for(let u=x;u<=b;u++)m.push(u);if(s>e-4){m.length=0;for(let u=e-9+1;u<=e;u++)u>0&&m.push(u)}return t.jsx("nav",{className:"pagination",children:t.jsxs("ul",{className:"pagination-list",children:[s>1&&t.jsxs("li",{className:`pagination-prev ${a?"disabled":""}`,onClick:a?null:g,style:{height:l,fontSize:c},children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"15 18 9 12 15 6"})}),o]}),x>1&&t.jsxs(t.Fragment,{children:[t.jsx("li",{className:`pagination-link ${a?"disabled":""}`,onClick:()=>a?null:d(1),style:{height:l,fontSize:c},children:"1"}),x>2&&t.jsx("li",{className:"pagination-list",style:{height:l,fontSize:c},children:"..."})]}),m.map(u=>t.jsx("li",{className:`pagination-link ${s===u?"active":""} ${a?"disabled":""}`,onClick:()=>a?null:d(u),style:{height:l,fontSize:c},children:u},u)),b<e&&t.jsxs(t.Fragment,{children:[b<e-1&&t.jsx("li",{className:`pagination-list ${a?"disabled":""}`,style:{height:l,fontSize:c},children:"..."}),t.jsx("li",{className:`pagination-link ${a?"disabled":""}`,onClick:()=>a?null:d(e),style:{height:l,fontSize:c},children:e})]}),s<e&&t.jsxs("li",{className:`pagination-next ${a?"disabled":""}`,onClick:a?null:h,style:{height:l,fontSize:c},children:[i,t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]})})};fl.propTypes={totalPages:n.number,currentPage:n.number,onChange:n.func,nextLabel:n.string,prevLabel:n.string,height:n.string,disabled:n.bool,fontSize:n.string};const dr=Fe(t.jsx("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded"),ur=Fe(t.jsx("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76"}),"ArrowForwardIosRounded"),pl=Fe(t.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),hr={DAYS:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],MONTHS:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],code:"es-ES",selectRange:"Selecciona un Rango de fechas",days:"días",cancel:"CANCELAR",search:"BUSCAR"},fr={DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],code:"en-US",selectRange:"Select a date range",days:"days",cancel:"CANCEL",search:"SEARCH"},dt=e=>{e instanceof Date||(e=new Date(e));const s=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return{formatDDMMYYYY:`${s}-${r}-${i}`,formatMMDDYYYY:`${r}-${s}-${i}`,formatYYYYMMDD:`${i}-${r}-${s}`,originalFormat:e}},gl=(e,s,r)=>{if(!s||r<=0)return!1;const i=new Date(s);return i.setMonth(i.getMonth()+r),i.setDate(i.getDate()-1),e>i},uu=({locale:e="es",disablePastDates:s,onDateRangeChange:r,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,h]=v.useReducer(y=>y+1,0),g=e==="es"?hr:fr,[p,m]=v.useState(null),[x,b]=v.useState(null),[u,w]=v.useState(null),[T,D]=v.useState(new Date),[z,C]=v.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[k,$]=v.useState(!1),B=(y,I)=>{const R=new Date;if(R.setHours(0,0,0,0),c){const O=new Date(R);if(O.setDate(R.getDate()+c),y>O)return!0}return I&&s&&y<R||!I&&a&&y>R||s&&y<R||a&&y>R?!0:l>0&&p?gl(y,p,l):!1},_=y=>{const I=y.getFullYear(),R=y.getMonth(),M=new Date(I,R,1).getDay(),A=new Date(I,R+1,0),q=[],W=new Date(I,R,0).getDate();for(let G=M-1;G>=0;G--)q.push(new Date(I,R-1,W-G));for(let G=1;G<=A.getDate();G++)q.push(new Date(I,R,G));const X=42-q.length;for(let G=1;G<=X;G++)q.push(new Date(I,R+1,G));return q},V=y=>!p||!x?!1:y>=p&&y<=x,f=y=>!p||!u?!1:y>=p&&y<=u||y<=p&&y>=u,H=y=>{!p||x?(m(y),b(null)):y<p?(b(p),m(y),i&&j(y,p)):(b(y),i&&j(p,y))},U=y=>{w(y)},F=()=>!p||!x?0:Math.round((x.getTime()-p.getTime())/(1e3*60*60*24))+1,Z=(y,I)=>{const R=new Date(y.getFullYear(),y.getMonth()-1,1);s&&R<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&I||(I?D(R):(C(R),R.getMonth()===T.getMonth()&&D(new Date(R.getFullYear(),R.getMonth()-1,1))))},K=(y,I)=>{const R=new Date(y.getFullYear(),y.getMonth()+1,1);I?(D(R),R.getMonth()===z.getMonth()&&C(new Date(R.getFullYear(),R.getMonth()+1,1))):C(R)},ee=y=>{const R=y.toLocaleDateString(g.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),O=R[0].charAt(0).toUpperCase()+R[0].slice(1),M=R[1],A=R[2].charAt(0).toUpperCase()+R[2].slice(1),q=R[3];return`${O} ${M} de ${A} ${q}`},L=()=>{const y=new Date;m(null),b(null),D(y),C(new Date(new Date().setMonth(new Date().getMonth()+1))),$(!1),o({startDate:null,endDate:null}),h()},E=()=>{$(!1);const y=dt(p),I=dt(x);r({startDate:y,endDate:I})},j=(y,I)=>{m(y),b(I),$(!1);const R=dt(y),O=dt(I);r({startDate:R,endDate:O})};return{isOpen:k,endDate:x,language:g,leftMonth:T,startDate:p,setIsOpen:$,hoverDate:u,rightMonth:z,formatDate:ee,handleSearch:E,handleCancel:L,isDateInRange:V,getDaysInMonth:_,isDateDisabled:B,handleDateClick:H,handleDateHover:U,handlePrevClick:Z,handleNextClick:K,getDaysSelected:F,isDateInHoverRange:f,keyReset:d,resetSelect:h}},Vn=(e,s,r,i)=>{if(!r||i<=0)return!1;const o=new Date(r);o.setMonth(o.getMonth()+i),o.setDate(o.getDate()-1);const l=new Date(r);return l.setDate(1),s?e<l:e>o},ml=({locale:e="es",onDateRangeChange:s,disablePastDates:r,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:h,disableFutureDates:g,withoutSearchButton:p,disablePastDaysCount:m,value:x})=>{const{keyReset:b,isOpen:u,endDate:w,language:T,leftMonth:D,startDate:z,setIsOpen:C,rightMonth:k,formatDate:$,handleSearch:B,handleCancel:_,isDateInRange:V,getDaysInMonth:f,isDateDisabled:H,handleDateClick:U,handleDateHover:F,handlePrevClick:Z,handleNextClick:K,getDaysSelected:ee,isDateInHoverRange:L}=uu({locale:e,onReset:l,onDateRangeChange:s,disablePastDates:r,withoutSearchButton:p,limitRange:i,disableFutureDates:g,disablePastDaysCount:m}),E=(x==null?void 0:x.startDate)instanceof Date?x.startDate:z,j=(x==null?void 0:x.endDate)instanceof Date?x.endDate:w,y=v.useRef(null);v.useEffect(()=>{const R=O=>{y.current&&!y.current.contains(O.target)&&u&&(C(!1),o||_())};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[w,_,u,C,z,o]);const I=(R,O=!0)=>{const M=f(R),A=R.getMonth(),q=(P,X)=>[P&&P.getMonth()!==A?"other-month":"",P&&V(P)?"in-range":"",P&&L(P)?"hover-range":"",P&&(P.getTime()===(E==null?void 0:E.getTime())||P.getTime()===(j==null?void 0:j.getTime()))?"selected":"",H(P,X)?"disabled":""].join(" "),W=({date:P,isLeftCalendar:X,disablePastDates:G,leftMonth:se})=>{const Q=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),he=new Date(P.getFullYear(),P.getMonth()-1,1).getTime();return!!(G&&(he<Q||!X&&new Date(se.getFullYear(),se.getMonth(),1).getTime()<=Q))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>Z(R,O),disabled:Vn(new Date(R.getFullYear(),R.getMonth()-1,1),!0,z,i)||W({date:R,isLeftCalendar:O,disablePastDates:r,leftMonth:D}),children:t.jsx("span",{className:"sr-only",children:t.jsx(dr,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[T.MONTHS[R.getMonth()],t.jsx("p",{children:R.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>K(R,O),disabled:Vn(new Date(R.getFullYear(),R.getMonth()+1,1),!1,z,i)||g&&new Date(R.getFullYear(),R.getMonth(),1).getTime()>=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),children:t.jsx("span",{className:"sr-only",children:t.jsx(ur,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),T.DAYS.map(P=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:P},P)),M.map((P,X)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${q(P,O)}`,disabled:!P||H(P),onClick:()=>P&&!H(P)&&U(P),onMouseEnter:()=>P&&!H(P)&&F(P),onMouseLeave:()=>F(null),children:t.jsx("span",{className:`day-text ${P?"":"text-muted"}`,style:{fontSize:d},children:P?P.getDate():""})})},`${P}_${X}`))]})]})};return v.useEffect(()=>{b&&_()},[b]),t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:y,children:[t.jsx("button",{className:`date-picker-toggle ${h?"disabled":""}`,disabled:h,onClick:()=>C(!u),children:E&&j?t.jsxs("div",{className:"container-formate",children:[t.jsxs("p",{className:`p-formate-date ${h?"disabled":""}`,style:{borderRight:"1px solid #9c9ca0"},children:[$(E)," ",t.jsx(pl,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]}),t.jsxs("p",{className:`p-formate-date ${h?"disabled":""}`,children:[$(j),t.jsx(pl,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]})]}):t.jsxs("div",{className:"container-formate",children:[t.jsx("p",{className:`p-formate-date ${h?"disabled":""}`,style:{height:"34px",fontSize:d},children:T.selectRange}),t.jsx(Is,{width:"10%",height:"50%"})]})}),u&&t.jsx("div",{className:"square"}),u&&t.jsx("div",{className:"container-triangle",children:t.jsx("div",{className:"triangle",children:t.jsx("div",{className:"triangle-blur"})})}),u&&t.jsxs("div",{className:"date-picker-dropdown",style:{right:a==="right"?"0":"auto",left:a==="left"?"0":"auto",top:"135%"},children:[t.jsxs("div",{className:"calendars-wrapper",children:[I(D,!0),I(k,!1)]}),!p&&t.jsx("div",{className:"date-picker-footer",children:E&&j&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[ee()," ",T.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Ln,{buttonProperties:{onClick:()=>_(),style:{width:"115px",textAlign:"center"}},children:T.cancel}),t.jsx(Ye,{buttonProperties:{onClick:()=>B(),style:{width:"115px",textAlign:"center"}},children:T.search})]})]})})]})]}),E&&j&&o&&t.jsx("button",{className:"button-reset",onClick:()=>_(),children:t.jsx(Sn,{})})]})};ml.propTypes={locale:n.oneOf(["es","en"]),heightBoxes:n.string,onDateRangeChange:n.func,disablePastDates:n.bool,resetButton:n.bool,withoutSearchButton:n.bool,onReset:n.func,direction:n.oneOf(["left","right"]),fontSize:n.string,limitRange:n.number,keyReset:n.number,disabled:n.bool,disableFutureDates:n.bool,disablePastDaysCount:n.number,value:n.shape({startDate:n.instanceOf(Date),endDate:n.instanceOf(Date)})};const yl=(e,{disablePastDates:s,disableBusinessDays:r})=>{const i=new Date;if(i.setHours(0,0,0,0),s&&e<i)return!1;if(r&&typeof r=="number"&&r>0){let o=new Date(i),l=0;for(;l<r;){o.setDate(o.getDate()+1);const a=o.getDay();a!==0&&a!==6&&l++}if(e<o)return!1}return!0},hu=e=>{const s=new Date;s.setHours(0,0,0,0);const r=new Date(s);r.setDate(s.getDate()+1);const i=new Date(s);return i.setDate(s.getDate()+2),e.getTime()===s.getTime()||e.getTime()===r.getTime()||e.getTime()===i.getTime()},fu=(e,s)=>{const r=new Date(s);return r.setHours(0,0,0,0),e.getTime()<=r.getTime()},pu="America/Bogota",gu=16,mu=3,yu=4,xl=0,bl=6,xu=()=>{const e=new Date().toLocaleString("en-US",{timeZone:pu});return new Date(e)},bu=(e,s)=>{const r=s??xu(),o=r.getHours()<gu?mu:yu;let l=0;const a=new Date(r);for(a.setDate(a.getDate()+1);l<o;){const g=a.getDay();g!==xl&&g!==bl&&l++,a.setDate(a.getDate()+1)}for(;a.getDay()===xl||a.getDay()===bl;)a.setDate(a.getDate()+1);const c=new Date(e);c.setHours(0,0,0,0);const d=new Date(a);return d.setHours(0,0,0,0),c<d},vu=e=>{let s=0,r=new Date;for(r.setHours(0,0,0,0),r.setDate(r.getDate()+1);s<5;){const i=r.getDay();i!==0&&i!==6&&s++,r.setDate(r.getDate()+1)}for(;r.getDay()===0||r.getDay()===6;)r.setDate(r.getDate()+1);return e<r},ju=e=>e.getDay()===0||e.getDay()===6,wu=(e,s)=>{const r=new Date(s);r.setHours(0,0,0,0);let i=new Date(r);do i.setDate(i.getDate()+1);while(i.getDay()===0||i.getDay()===6);return e.getTime()<=i.getTime()},ku=({locale:e="es",onDateChange:s,onChangeFunction:r,disablePastDates:i,disableBusinessDays:o,disableNextTwoDays:l,disableSpecificDate:a,disableDaysBasedOnTime:c,disableFiveBusinessDays:d,disableWeekends:h,disableNextBusinessDayAfter:g,hourDisableDaysBasedOnHour:p,id:m})=>{const x=e==="es"?hr:fr,[b,u]=v.useState(new Date),[w,T]=v.useState(new Date),[D,z]=v.useState(!1),[C,k]=v.useState(null),$=v.useRef(null),B=L=>{const E=L.getFullYear(),j=L.getMonth(),I=new Date(E,j,1).getDay(),R=new Date(E,j+1,0),O=[],M=new Date(E,j,0).getDate();for(let W=I-1;W>=0;W--)O.push(new Date(E,j-1,M-W));for(let W=1;W<=R.getDate();W++)O.push(new Date(E,j,W));const q=42-O.length;for(let W=1;W<=q;W++)O.push(new Date(E,j+1,W));return O};v.useEffect(()=>{if(o&&typeof o=="number"&&o>0){let L=new Date;L.setHours(0,0,0,0);let E=new Date(L),j=0;for(;j<o;){E.setDate(E.getDate()+1);const y=E.getDay();y!==0&&y!==6&&j++}E.getMonth()>L.getMonth()&&T(E)}},[i,o]);const _=v.useMemo(()=>L=>L?i&&!yl(L,{disablePastDates:i})||o&&!yl(L,{disableBusinessDays:o})||l&&hu(L)||a&&fu(L,new Date(a))||c&&bu(L,p)||d&&vu(L)||h&&ju(L)||g&&wu(L,g):!1,[i,o,l,a,c,d,h,g,p]),V=L=>{const E=new Date,j=new Date(E.getFullYear(),E.getMonth(),1).setHours(0,0,0,0);if(i&&L<j)return!0;if(a){const y=new Date(a).setHours(0,0,0,0);return new Date(L.getFullYear(),L.getMonth()+1,0).setHours(0,0,0,0)<y}return!1},f=L=>b&&L.getTime()===b.getTime(),H=L=>{const E=L.getMonth(),j=w.getMonth();E!==j&&T(new Date(L.getFullYear(),E,1)),k(Z(L)),u(L);const y=dt(L);s&&s(y),r&&r({id:m,date:y}),z(!1)},U=L=>{const E=new Date(L.getFullYear(),L.getMonth()-1,1),j=new Date;j.setHours(0,0,0,0),!(i&&E<new Date(j.getFullYear(),j.getMonth(),1))&&T(E)},F=L=>{const E=new Date(L.getFullYear(),L.getMonth()+1,1);T(E)},Z=L=>{const j=L.toLocaleDateString(x.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),y=j[0].charAt(0).toUpperCase()+j[0].slice(1),I=j[1],R=j[2].charAt(0).toUpperCase()+j[2].slice(1),O=j[3];return`${y} ${I} de ${R} ${O}`},K=()=>{u(new Date),z(!1)},ee=()=>{z(!1),s&&s(b),r&&r({id:m,date:b})};return v.useEffect(()=>{const L=E=>{$.current&&!$.current.contains(E.target)&&z(!1)};return document.addEventListener("mousedown",L),()=>{document.removeEventListener("mousedown",L)}},[$]),{date:C,isOpen:D,setDate:k,language:x,leftMonth:w,setIsOpen:z,formatDate:Z,setLeftMonth:T,handleSearch:ee,disablePrev:V,handleCancel:K,selectedDate:b,isDateInRange:f,datePickerRef:$,getDaysInMonth:B,isDateDisabled:_,handlePrevClick:U,handleNextClick:F,handleDateClick:H,setSelectedDate:u}},vl=({label:e,error:s,locale:r,disabled:i,size:o="180px",onDateChange:l,onChangeFunction:a,disableWeekends:c,keyResetCalendar:d,disablePastDates:h,disableNextTwoDays:g,disableSpecificDate:p,disableBusinessDays:m,disableDaysBasedOnTime:x,disableFiveBusinessDays:b,disableNextBusinessDayAfter:u,hourDisableDaysBasedOnHour:w,heightBoxes:T="40px",labelText:D,subLabelText:z,id:C,value:k,fontSize:$})=>{const{date:B,isOpen:_,setDate:V,language:f,leftMonth:H,setIsOpen:U,disablePrev:F,isDateInRange:Z,getDaysInMonth:K,isDateDisabled:ee,handleDateClick:L,handlePrevClick:E,handleNextClick:j,datePickerRef:y,setSelectedDate:I,setLeftMonth:R,selectedDate:O}=ku({locale:r,onDateChange:l,onChangeFunction:a,disableWeekends:c,disablePastDates:h,disableBusinessDays:m,disableNextTwoDays:g,disableSpecificDate:p,disableDaysBasedOnTime:x,disableFiveBusinessDays:b,disableNextBusinessDayAfter:u,hourDisableDaysBasedOnHour:w,id:C}),M=k instanceof Date?k:void 0,A=W=>{if(!W)return null;const X=W.toLocaleDateString(f.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),G=X[0].charAt(0).toUpperCase()+X[0].slice(1),se=X[1],Q=X[2].charAt(0).toUpperCase()+X[2].slice(1),he=X[3];return`${G} ${se} de ${Q} ${he}`};v.useEffect(()=>{V(null),I(null)},[d,V,I]),v.useEffect(()=>{if(M){(H.getMonth()!==M.getMonth()||H.getFullYear()!==M.getFullYear())&&R(new Date(M.getFullYear(),M.getMonth(),1));const W=new Date(M.getFullYear(),M.getMonth(),M.getDate()),P=O?new Date(O.getFullYear(),O.getMonth(),O.getDate()):null;(!P||W.getTime()!==P.getTime())&&I(W)}},[M,H,O,R,I]);const q=W=>{const P=K(W),X=W.getMonth(),G=se=>{const Q=!!M&&se&&se.getFullYear()===M.getFullYear()&&se.getMonth()===M.getMonth()&&se.getDate()===M.getDate();return[se&&se.getMonth()!==X?"other-month":"",se&&(Z(se)||Q)?"selected":"",ee(se)?"disabled":""].join(" ")};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>E(W),disabled:F(new Date(W.getFullYear(),W.getMonth()-1,1)),children:t.jsx("span",{className:"sr-only",children:t.jsx(dr,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[f.MONTHS[W.getMonth()],t.jsx("p",{children:W.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>j(W),children:t.jsx("span",{className:"sr-only",children:t.jsx(ur,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${T})`},children:[t.jsx("div",{className:"background-days"}),f.DAYS.map(se=>t.jsx("div",{className:"calendar-day-header",children:se},se)),P.map((se,Q)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${G(se)}`,disabled:!se||ee(se),onClick:()=>se&&!ee(se)&&L(se),children:t.jsx("span",{className:`day-text ${se?"":"text-muted"}`,children:se?se.getDate():""})})},`${se}_${Q}`))]})]})};return t.jsxs("div",{className:"single-date-picker-container relative",ref:y,children:[t.jsx(et,{label:M?A(M):B??e,onchange:()=>{},options:[],size:o,isOpen:_,setIsOpen:U,error:s,disabledClickOutside:!0,disabled:i,keyReset:d,Icon:Di,labelText:D,subLabelText:z,fontSizeLabel:$,withoutOptions:!0}),_&&t.jsx("div",{className:"date-picker-dropdown date-picker-individual",children:t.jsx("div",{className:"calendars-wrapper",children:q(H)})})]})};vl.propTypes={locale:n.oneOf(["es-ES","en-US"]),onDateChange:n.func,disableBusinessDays:n.number,disablePastDates:n.bool,label:n.string,size:n.string,disableNextTwoDays:n.bool,disableSpecificDate:n.instanceOf(Date),keyResetCalendar:n.number,error:n.bool,disableDaysBasedOnTime:n.bool,disableFiveBusinessDays:n.bool,disabled:n.bool,disableWeekends:n.bool,disableNextBusinessDayAfter:n.instanceOf(Date),hourDisableDaysBasedOnHour:n.instanceOf(Date),heightBoxes:n.string,labelText:n.string,subLabelText:n.any,id:n.string,onChangeFunction:n.func,value:n.instanceOf(Date),fontSize:n.string};const jl=({title:e,description:s,linkText:r,icon:i,fnNavigate:o,width:l,height:a,id:c})=>{const d=()=>{o(c)};return t.jsxs("section",{className:"info-action-card",style:{width:l,height:a},onClick:d,children:[t.jsxs("div",{className:"info-action-card__content",children:[t.jsxs("div",{className:"info-action-card__content__text__container",children:[t.jsx("h3",{children:e}),t.jsx("p",{children:s})]}),i]}),t.jsx("div",{className:"line-grey"}),t.jsxs("div",{className:"info-action-card__action",children:[t.jsx("button",{children:r}),t.jsx(Ts,{})]})]})};jl.propTypes={title:n.string,description:n.string,linkText:n.string,icon:n.node,fnNavigate:n.func,width:n.string,height:n.string,id:n.string};const pr=e=>e.map(s=>({id:s.id,title:s.title,optionsSelect:[]})),Cu=(e,s)=>{const[r,i]=v.useState([]),[o,l]=v.useState(pr(e)),[a,c]=v.useState(!1),d=v.useRef(null),h=v.useRef(!1),g=w=>{const T={};return e.forEach(D=>{const z=w.find(C=>C.id===D.id);z?T[D.id]={value:z.optionsSelect.map(C=>C.id),allData:z.optionsSelect}:T[D.id]={value:[],allData:[]}}),T},p=w=>{i(T=>T.includes(w)?T.filter(D=>D!==w):[...T,w])},m=(w,T)=>{h.current=!0,l(D=>{var _;const z=D.findIndex(V=>V.id===w);let C=[...D],k=[];const $=e.find(V=>V.id===w)||{};if($.multiple!==!1)if(z===-1)k=[T],C.push({id:w,title:$.title||"",optionsSelect:k});else{const V=D[z].optionsSelect;V.some(H=>H.id===T.id)?k=V.filter(H=>H.id!==T.id):k=[...V,T],k.length===0?C.splice(z,1):(k.sort((H,U)=>{var F;return(F=H.label)==null?void 0:F.localeCompare(U.label)}),C[z].optionsSelect=k)}else if(z===-1||((_=D[z].optionsSelect[0])==null?void 0:_.id)!==T.id?k=[T]:k=[],k.length===0)z>-1&&C.splice(z,1);else{const V={id:w,title:$.title||"",optionsSelect:k};z===-1?C.push(V):C[z]=V}if(s){const V=g(C);s(V)}return C})},x=()=>{h.current=!0;const w=pr(e);if(l(w),s){const T=g(w);s(T)}},b=v.useCallback(w=>{h.current=!0,l(w)},[]),u=()=>o.reduce((w,T)=>w+T.optionsSelect.length,0);return v.useEffect(()=>{h.current||l(pr(e))},[e]),v.useEffect(()=>{const w=T=>{d.current&&!d.current.contains(T.target)&&c(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),{expandedSections:r,selectedFilters:o,toggleSection:p,toggleFilter:m,clearAllFilters:x,open:a,setOpen:c,getLengthFilters:u,filterRef:d,setSelectedFilters:b}},qn=(e,s)=>{var r;return s?typeof e=="object"&&!Array.isArray(e)?(r=Object.values(e))==null?void 0:r.flat():Array.isArray(e)?e:[]:Array.isArray(e)?e:[]},Su=(e,s)=>s||Array.isArray(e)?e:[],wl=({data:e=[],onChange:s,disabled:r,keyRest:i,value:o,fontSizeLabel:l="0.8vw",fontSizeTitles:a,fontSizeSelects:c="0.8vw",widthFilterComponent:d="380px",heightFilterComponent:h="400px",right:g="0",top:p="0"})=>{const{open:m,setOpen:x,toggleFilter:b,toggleSection:u,selectedFilters:w,clearAllFilters:T,getLengthFilters:D,expandedSections:z,filterRef:C,setSelectedFilters:k}=Cu(e,s),[$,B]=v.useState({}),[_,V]=v.useState({}),f=v.useRef({}),H=v.useRef(!0),U=132,F=220,Z=j=>{B(y=>({...y,[j]:!y[j]}))};v.useEffect(()=>{e.forEach(j=>{(j.selectAll||j.basicSelect)&&!(z!=null&&z.includes(j==null?void 0:j.id))&&u(j==null?void 0:j.id)})},[e,z,u]);const K=(j,y,I,R)=>{const O=I==null?void 0:I.filter(A=>R.includes(A.id)),M=o!==void 0?o:w;k(()=>{const A=M==null?void 0:M.findIndex(W=>(W==null?void 0:W.id)===j);let q=[...M];if(O.length===0)A>-1&&q.splice(A,1);else{const W={id:j,title:y,optionsSelect:O};A===-1?q.push(W):q[A]=W}if(s){const W={};e.forEach(P=>{if((P==null?void 0:P.id)===j)W[P==null?void 0:P.id]={value:R,allData:O};else{const X=q==null?void 0:q.find(G=>(G==null?void 0:G.id)===(P==null?void 0:P.id));X&&X.optionsSelect.length>0?W[P==null?void 0:P.id]={value:X.optionsSelect.map(G=>G.id),allData:X.optionsSelect}:W[P==null?void 0:P.id]={value:[],allData:[]}}}),s(W)}return q})},ee=(j,y,I,R)=>{const O=I==null?void 0:I.find(A=>A.value===R||A.label===R),M=o!==void 0?o:w;k(()=>{const A=M==null?void 0:M.findIndex(W=>(W==null?void 0:W.id)===j);let q=[...M];if(!O)A>-1&&q.splice(A,1);else{const W={id:j,title:y,optionsSelect:[O]};A===-1?q.push(W):q[A]=W}if(s){const W={};e.forEach(P=>{if((P==null?void 0:P.id)===j)W[P==null?void 0:P.id]={value:R,allData:O?[O]:[]};else{const X=q==null?void 0:q.find(G=>(G==null?void 0:G.id)===(P==null?void 0:P.id));X&&X.optionsSelect.length>0?W[P==null?void 0:P.id]={value:X.optionsSelect.map(G=>G.value||G.id),allData:X.optionsSelect}:W[P==null?void 0:P.id]={value:[],allData:[]}}}),s(W)}return q})};v.useEffect(()=>{const j={};z==null||z.forEach(y=>{const I=f.current[y];I&&I.scrollHeight>U&&(j[y]=!0)}),V(j)},[z,e]);const L=o!==void 0?o:w;v.useEffect(()=>{if(H.current){H.current=!1;return}k(o===void 0?[]:o)},[i,k,o]),v.useEffect(()=>{o!==void 0&&!H.current&&k(o)},[o,k]);const E=o!==void 0?L==null?void 0:L.reduce((j,y)=>{var I;return j+((I=y==null?void 0:y.optionsSelect)==null?void 0:I.length)},0):D();return t.jsxs("div",{className:"toggle-filter-component",ref:C,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:r,onClick:()=>x(!m),style:{fontSize:a},children:["Filtro ",E?`(${E})`:"",t.jsx(Ds,{})]}),m&&t.jsxs("div",{className:"filter-container-component",style:{width:d,height:h,right:g,top:p},children:[t.jsxs("div",{className:"filter-header",children:[t.jsx("h2",{className:"filter-title",style:{fontSize:a},children:"Filtros"}),t.jsxs("div",{className:"filter-header-buttons",children:[(o!==void 0?L.reduce((y,I)=>{var R;return y+((R=I==null?void 0:I.optionsSelect)==null?void 0:R.length)},0):D())>0&&t.jsxs("button",{className:"clear-all",onClick:T,style:{fontSize:a},children:["Borrar todo",t.jsx(On,{width:"15px",height:"15px"})]}),t.jsx(ct,{sx:{color:"#8598ad"},style:{width:"14px",height:"14px"},onClick:()=>x(!m)})]})]}),e.map(({id:j,title:y,options:I,selectAll:R,basicSelect:O,placeholderInput:M,label:A,textSelectAll:q,grouped:W,disabledSection:P})=>{var X,G,se,Q,he,le;return t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>!(R||O)&&u(j),style:{cursor:R||O?"default":"pointer"},children:[t.jsxs("span",{className:"section-header-title",style:{fontSize:l},children:["Por ",y]}),!(R||O)&&(z==null?void 0:z.includes(j))&&t.jsx("span",{className:"filter-container-icon",children:t.jsx(_n,{isOpen:z==null?void 0:z.includes(j),onChange:()=>{},color:"#8598AD",padding:"2px",display:"flex",height:"auto",width:"auto"})})]}),(z==null?void 0:z.includes(j))&&t.jsx(t.Fragment,{children:R?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(tr,{data:Su(I,W),grouped:W||!1,label:A||y,maxheight:"200px",onChange:fe=>{K(j,y,qn(I,W),fe)},placeholderSearch:M||`Buscar ${y==null?void 0:y.toLowerCase()}`,textSelectAll:q||`Todos los ${y==null?void 0:y.toLowerCase()}`,width:"100%",widthDropdown:"100%",isRelative:!0,selectedValues:((G=(X=L.find(fe=>(fe==null?void 0:fe.id)===j))==null?void 0:X.optionsSelect)==null?void 0:G.map(fe=>fe.id))||[],fontSizeLabel:l,disabled:P,fontSizeOptions:c})}):O?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(et,{label:A||y,options:qn(I,W),onchange:fe=>{ee(j,y,qn(I,W),fe.value)},placeholderInputSearch:M||`Buscar ${y==null?void 0:y.toLowerCase()}`,size:"100%",value:((he=(Q=(se=L==null?void 0:L.find(fe=>(fe==null?void 0:fe.id)===j))==null?void 0:se.optionsSelect)==null?void 0:Q[0])==null?void 0:he.value)||"",position:"relative",fontSizeLabel:l,disabled:P,fontSizeOptions:c})}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:fe=>f.current[j]=fe,style:_[j]?$[j]?{maxHeight:F,overflowY:"scroll"}:{maxHeight:U,overflow:"hidden"}:{},children:(le=qn(I,W))==null?void 0:le.map(fe=>{const _e=L==null?void 0:L.some(ke=>{var Pe;return(ke==null?void 0:ke.id)===j&&((Pe=ke==null?void 0:ke.optionsSelect)==null?void 0:Pe.some(ce=>ce.id===fe.id))});return t.jsx(Hn,{height:"27px",onChange:()=>b(j,fe),isSelect:_e,children:fe.label},fe.id)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:(_==null?void 0:_[j])&&t.jsx("button",{className:"view-more",onClick:()=>Z(j),children:$[j]?"Ver menos":"Ver más"})})]})})]},j)})]})]})};wl.propTypes={data:n.arrayOf(n.shape({id:n.string.isRequired,title:n.string.isRequired,selectAll:n.bool,basicSelect:n.bool,grouped:n.bool,placeholderInput:n.string,label:n.string,textSelectAll:n.string,options:n.oneOfType([n.arrayOf(n.shape({id:n.string.isRequired,label:n.string.isRequired,name:n.string,value:n.string})),n.object]).isRequired})),onChange:n.func,disabled:n.bool,keyRest:n.oneOfType([n.number,n.string]),value:n.array,fontSizeLabel:n.string,fontSizeTitles:n.string,widthFilterComponent:n.string,heightFilterComponent:n.string,right:n.string,fontSizeSelects:n.string,top:n.string};const Tu=(e,s,r)=>{const[i,o]=v.useState([]),[l,a]=v.useState(!1),c=v.useRef(null);v.useEffect(()=>{const m=e.filter(x=>x.type==="select"||x.type==="multiselect").map(x=>x.id);o(m)},[e]);const d=m=>{o(x=>x.includes(m)?x.filter(b=>b!==m):[...x,m])},h=v.useCallback((m,x)=>{const b=s.map(u=>u.id===m?{...u,value:x}:u);r&&r(b)},[s,r]),g=v.useCallback(()=>{const m=e.map(x=>x.type==="multiselect"||x.type==="chips"?{id:x.id,value:[]}:{id:x.id,value:""});r&&r(m)},[e,r]),p=v.useCallback(()=>{if(!s||!Array.isArray(s))return 0;let m=0;return s.forEach(x=>{const b=x.value;Array.isArray(b)?m+=b.length:b&&b!==""&&(m+=1)}),m},[s]);return v.useEffect(()=>{const m=x=>{c.current&&!c.current.contains(x.target)&&a(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]),{expandedSections:i,open:l,setOpen:a,toggleSection:d,handleFilterChange:h,clearAllFilters:g,getTotalSelected:p,filterRef:c}},kl=({data:e=[],value:s,onChange:r,disabled:i=!1,fontSizeLabel:o="10px",fontSizeTitles:l="10px",fontSizeSelects:a="10px",widthFilterComponent:c="380px",height:d="400px",right:h="0",top:g="0"})=>{const[p,m]=v.useState(e.map(L=>({id:L.id,value:L.type==="multiselect"||L.type==="chips"?[]:""}))),x=s!==void 0,b=x?s:p,u=L=>{x||m(L),r&&r(L)},{open:w,setOpen:T,expandedSections:D,toggleSection:z,handleFilterChange:C,clearAllFilters:k,getTotalSelected:$,filterRef:B}=Tu(e,b,u),[_,V]=v.useState({}),[f,H]=v.useState({}),U=v.useRef({}),F=132,Z=220,K=L=>{V(E=>({...E,[L]:!E[L]}))};v.useEffect(()=>{const L={};D==null||D.forEach(E=>{const j=U.current[E];j&&j.scrollHeight>F&&(L[E]=!0)}),H(L)},[D,e]);const ee=$();return t.jsxs("div",{className:"toggle-filter-component",ref:B,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:i,onClick:()=>T(!w),style:{fontSize:l},children:["Filtro ",ee?`(${ee})`:"",t.jsx(Ds,{})]}),w&&t.jsxs("div",{className:"filter-container-component",style:{width:c,height:d,right:h,top:g},children:[t.jsxs("div",{className:"filter-header",children:[t.jsx("h2",{className:"filter-title",style:{fontSize:l},children:"Filtros"}),t.jsxs("div",{className:"filter-header-buttons",children:[ee>0&&t.jsxs("button",{className:"clear-all",onClick:k,style:{fontSize:l},children:["Borrar todo",t.jsx(On,{width:"15px",height:"15px"})]}),t.jsx(ct,{sx:{color:"#8598ad"},style:{width:"14px",height:"14px"},onClick:()=>T(!w)})]})]}),e.map(({id:L,title:E,type:j="chips",options:y=[],placeholder:I,placeholderInput:R,textSelectAll:O,disabled:M})=>{var A,q;return t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>!(j==="select"||j==="multiselect")&&z(L),style:{cursor:j==="select"||j==="multiselect"?"default":"pointer"},children:[t.jsxs("span",{className:"section-header-title",style:{fontSize:o},children:["Por ",E]}),j==="chips"&&t.jsx("span",{className:"filter-container-icon",children:t.jsx(_n,{isOpen:D==null?void 0:D.includes(L),onChange:()=>{},color:"#8598AD",padding:"2px",display:"flex",height:"auto",width:"auto"})})]}),(D==null?void 0:D.includes(L))&&t.jsxs(t.Fragment,{children:[j==="select"&&t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Bn,{id:L,placeholder:I||`Seleccione ${E}`,options:y,onChange:W=>{C(L,W.target.value||"")},placeholderInput:R||`Buscar ${E==null?void 0:E.toLowerCase()}`,width:"100%",value:((A=b==null?void 0:b.find(W=>W.id===L))==null?void 0:A.value)||"",disabled:M,fontSize:a,fontSizeOptions:a,position:"relative"})}),j==="multiselect"&&t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Fn,{id:L,placeholder:I||`Seleccione ${E}`,options:y,onChange:W=>{C(L,W.target.value||[])},placeholderInput:R||`Buscar ${E==null?void 0:E.toLowerCase()}`,width:"100%",value:((q=b==null?void 0:b.find(W=>W.id===L))==null?void 0:q.value)||[],disabled:M,fontSize:a,fontSizeOptions:a,textSelectAll:O||`Todos los ${E==null?void 0:E.toLowerCase()}`,position:"relative"})}),j==="chips"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:W=>U.current[L]=W,style:f[L]?_[L]?{maxHeight:Z,overflowY:"scroll"}:{maxHeight:F,overflow:"hidden"}:{},children:y==null?void 0:y.map(W=>{var G;const P=((G=b==null?void 0:b.find(se=>se.id===L))==null?void 0:G.value)||[],X=P.includes(W.value);return t.jsx(Hn,{height:"27px",onChange:()=>{const se=X?P.filter(Q=>Q!==W.value):[...P,W.value];C(L,se)},isSelect:X,children:W.label},W.id||W.value)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:(f==null?void 0:f[L])&&t.jsx("button",{className:"view-more",onClick:()=>K(L),children:_[L]?"Ver menos":"Ver más"})})]})]})]},L)})]})]})};kl.propTypes={data:n.arrayOf(n.shape({id:n.string.isRequired,title:n.string.isRequired,type:n.oneOf(["select","multiselect","chips"]),options:n.arrayOf(n.shape({id:n.oneOfType([n.string,n.number]),value:n.any.isRequired,label:n.string.isRequired})).isRequired,placeholder:n.string,placeholderInput:n.string,label:n.string,textSelectAll:n.string,disabled:n.bool})).isRequired,value:n.arrayOf(n.shape({id:n.string.isRequired,value:n.any.isRequired})),onChange:n.func.isRequired,disabled:n.bool,fontSizeLabel:n.string,fontSizeTitles:n.string,fontSizeSelects:n.string,widthFilterComponent:n.string,height:n.string,right:n.string,top:n.string};const Cl=({title:e,description:s,linkText:r,icon:i,fnNavigate:o,width:l,fnDownload:a,gapTitleDescription:c,height:d,hasDownloadButton:h,fontSizeTitle:g,fontSizeDescription:p,fontSizeButton:m,textButton:x,widthButton:b="7.5vw",id:u})=>t.jsxs("section",{id:"info-action-card-download-template",className:"info-action-card",style:{width:l,height:d},onClick:()=>o(u),children:[t.jsxs("div",{style:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:[t.jsxs("div",{className:"info-action-card__content info-action-card__content-download-template",children:[t.jsxs("div",{className:"info-action-card__content__text info-action-card__content__text-download-template",style:{gap:c},children:[t.jsx("h3",{style:{fontSize:g},children:e}),t.jsx("p",{style:{fontSize:p},children:s})]}),t.jsx("div",{className:"info-action-card__content__icon",children:i})]}),h&&t.jsx(sr,{buttonProperties:{disabled:!1,onClick:()=>a(),style:{minHeight:"32px",width:b,marginLeft:"10px",fontSize:m,display:"flex",justifyContent:"space-between",alignItems:"center"}},children:x})]}),t.jsx("div",{className:"info-action-card__action info-action-card__action-download-template",children:t.jsxs("div",{style:{display:"flex",alignItems:"center",padding:" 15px",gap:"10px",fontSize:p},children:[t.jsx("button",{children:r}),t.jsx(Ts,{})]})})]});Cl.propTypes={title:n.string,description:n.string,linkText:n.string,icon:n.node,fnNavigate:n.func,width:n.string,fnDownload:n.func,gapTitleDescription:n.string,height:n.string,hasDownloadButton:n.bool,fontSizeTitle:n.string,fontSizeDescription:n.string,fontSizeButton:n.string,textButton:n.string,widthButton:n.string,id:n.string};const Sl=({iconTitle:e,title:s,mainData:r,news:i,width:o,height:l,onChange:a,isSelected:c,value:d,disabled:h,keyReset:g,heightTitleFilter:p="20px",color:m="#575EE0"})=>{const[x,b]=v.useState({isSelected:c||!1,value:d||null}),u=D=>d===D.title,w=({item:D,from:z})=>{const C={isSelected:x.value!==D.title,value:x.value===D.title?null:D.title};b(C),a({item:D,from:z,title:s,selected:C.value,isSelected:C.isSelected})};v.useEffect(()=>{b({isSelected:!1,value:null})},[g]);const T=D=>!!(Number(D.quantity)===0||h);return t.jsxs("div",{className:"ProcessFilter",style:{width:o,height:l,borderColor:m},children:[t.jsxs("div",{className:"ProcessFilter-header",style:{height:p},children:[t.jsxs("div",{className:"ProcessFilter-titleWrapper",children:[e,t.jsx("h2",{className:"ProcessFilter-title",style:{color:m},children:s})]}),t.jsx("div",{className:"ProcessFilter-statsWrapper",children:t.jsx(_i,{})})]}),t.jsx("div",{className:"ProcessFilter-mainData",children:r.map(D=>t.jsxs("div",{onClick:()=>T(D)?null:w({item:D,from:"main"}),className:`ProcessFilter-item-wrapper ${u(D)?"selected":""} ${T(D)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:D.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:D.quantity})]},D.id))}),i.length>0&&t.jsxs("div",{className:"",children:[t.jsxs("h3",{className:"ProcessFilter-newsTitle",children:["Novedades (",i.reduce((D,z)=>D+(parseInt(z.quantity)||0),0),")"]}),i.map(D=>t.jsxs("div",{onClick:()=>T(D)?null:w({item:D,from:"news"}),className:`ProcessFilter-item-wrapper ${u(D)?"selected":""} ${T(D)?"disabled":""}`,children:[t.jsxs("div",{className:"ProcessFilter-item-content-icon-title",children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:11,fill:"none",children:t.jsx("path",{fill:"#fff",d:"M13.407 1.545 11.832 0 4.469 7.172l-2.883-2.8L0 5.91l4.469 4.343 8.938-8.708Z"})}),t.jsx("span",{className:"ProcessFilter-item-title",children:D.title})]}),t.jsx("span",{className:"ProcessFilter-item-quantity",children:D.quantity})]},D.id))]})]})};Sl.propTypes={iconTitle:n.any,title:n.string,mainData:n.array,news:n.array,width:n.string,height:n.string,onChange:n.func,isSelected:n.bool,value:n.string,disabled:n.bool,keyReset:n.number,heightTitleFilter:n.string,color:n.string};const Mu=({locale:e="es",disablePastDates:s,onDateRangeChange:r,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,h]=v.useState(!1),[g,p]=v.useReducer(O=>O+1,0),m=e==="es"?hr:fr,[x,b]=v.useState(null),[u,w]=v.useState(null),[T,D]=v.useState(null),[z,C]=v.useState(new Date),[k,$]=v.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[B,_]=v.useState(!1),V=(O,M)=>{const A=new Date;if(A.setHours(0,0,0,0),c){const q=new Date(A);if(q.setDate(A.getDate()-c),O<q||O>A)return!0}return M&&s&&O<A||!M&&a&&O>A||s&&O<A||a&&O>A?!0:l>0&&x?gl(O,x,l):!1},f=O=>{const M=O.getFullYear(),A=O.getMonth(),W=new Date(M,A,1).getDay(),P=new Date(M,A+1,0),X=[],G=new Date(M,A,0).getDate();for(let he=W-1;he>=0;he--)X.push(new Date(M,A-1,G-he));for(let he=1;he<=P.getDate();he++)X.push(new Date(M,A,he));const Q=42-X.length;for(let he=1;he<=Q;he++)X.push(new Date(M,A+1,he));return X},H=O=>!x||!u?!1:O>=x&&O<=u,U=O=>!x||!T?!1:O>=x&&O<=T||O<=x&&O>=T,F=O=>{!x||u?(b(O),w(null)):O<x?(w(x),b(O),i&&I(O,x)):(w(O),i&&I(x,O))},Z=O=>{D(O)},K=()=>!x||!u?0:Math.round((u.getTime()-x.getTime())/(1e3*60*60*24))+1,ee=(O,M)=>{const A=new Date(O.getFullYear(),O.getMonth()-1,1);s&&A<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&M||(M?C(A):($(A),A.getMonth()===z.getMonth()&&C(new Date(A.getFullYear(),A.getMonth()-1,1))))},L=(O,M)=>{const A=new Date(O.getFullYear(),O.getMonth()+1,1);M?(C(A),A.getMonth()===k.getMonth()&&$(new Date(A.getFullYear(),A.getMonth()+1,1))):$(A)},E=O=>{const A=O.toLocaleDateString(m.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),q=A[0].charAt(0).toUpperCase()+A[0].slice(1),W=A[1],P=A[2].charAt(0).toUpperCase()+A[2].slice(1),X=A[3];return`${q} ${W} de ${P} ${X}`},j=()=>{const O=new Date;b(null),w(null),C(O),$(new Date(new Date().setMonth(new Date().getMonth()+1))),_(!1),o({startDate:null,endDate:null}),p()},y=()=>{_(!1);const O=dt(x),M=dt(u);r({startDate:O,endDate:M}),h(!1)},I=(O,M)=>{b(O),w(M),_(!1);const A=dt(O),q=dt(M);r({startDate:A,endDate:q}),h(!1)};return{isOpen:B,endDate:u,language:m,leftMonth:z,startDate:x,setIsOpen:_,hoverDate:T,rightMonth:k,formatDate:E,handleSearch:y,handleCancel:j,isDateInRange:H,getDaysInMonth:f,isDateDisabled:V,handleDateClick:F,handleDateHover:Z,handlePrevClick:ee,handleNextClick:L,getDaysSelected:K,isDateInHoverRange:U,keyReset:g,resetSelect:p,handleBasicSelect:({value:O})=>{O==="custom"?(h(!0),_(!1)):r({value:O})},isOpenCalendar:d,setIsOpenCalendar:h}},Tl=({locale:e="es",onDateRangeChange:s,disablePastDates:r,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:h,disableFutureDates:g,optionsBasicSelect:p,withoutSearchButton:m,widthBasicSelect:x,fontSizeLabelBasicSelect:b,fontSizeOptionsBasicSelect:u,labelText:w,subLabelText:T,disablePastDaysCount:D,keyResetBasicSelect:z})=>{const{keyReset:C,isOpen:k,endDate:$,language:B,leftMonth:_,startDate:V,setIsOpen:f,rightMonth:H,handleSearch:U,handleCancel:F,isDateInRange:Z,getDaysInMonth:K,isDateDisabled:ee,handleDateClick:L,handleDateHover:E,handlePrevClick:j,handleNextClick:y,getDaysSelected:I,isDateInHoverRange:R,handleBasicSelect:O,isOpenCalendar:M,setIsOpenCalendar:A}=Mu({locale:e,onReset:l,onDateRangeChange:s,disablePastDates:r,withoutSearchButton:m,limitRange:i,disableFutureDates:g,disablePastDaysCount:D}),q=v.useRef(null);v.useEffect(()=>{const P=X=>{q.current&&!q.current.contains(X.target)&&(k||M)&&(f(!1),A(!1),o||F())};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[$,F,k,f,V,o,M,A]);const W=(P,X=!0)=>{const G=K(P),se=P.getMonth(),Q=(le,fe)=>[le&&le.getMonth()!==se?"other-month":"",le&&Z(le)?"in-range":"",le&&R(le)?"hover-range":"",le&&(le.getTime()===(V==null?void 0:V.getTime())||le.getTime()===($==null?void 0:$.getTime()))?"selected":"",ee(le,fe)?"disabled":""].join(" "),he=({date:le,isLeftCalendar:fe,disablePastDates:_e,leftMonth:ke})=>{const Pe=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),ce=new Date(le.getFullYear(),le.getMonth()-1,1).getTime();return!!(_e&&(ce<Pe||!fe&&new Date(ke.getFullYear(),ke.getMonth(),1).getTime()<=Pe))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>j(P,X),disabled:Vn(new Date(P.getFullYear(),P.getMonth()-1,1),!0,V,i)||he({date:P,isLeftCalendar:X,disablePastDates:r,leftMonth:_}),children:t.jsx("span",{className:"sr-only",children:t.jsx(dr,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[B.MONTHS[P.getMonth()],t.jsx("p",{children:P.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>y(P,X),disabled:Vn(new Date(P.getFullYear(),P.getMonth()+1,1),!1,V,i)||g&&new Date(P.getFullYear(),P.getMonth(),1).getTime()>=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),children:t.jsx("span",{className:"sr-only",children:t.jsx(ur,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),B.DAYS.map(le=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:le},le)),G.map((le,fe)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${Q(le,X)}`,disabled:!le||ee(le),onClick:()=>le&&!ee(le)&&L(le),onMouseEnter:()=>le&&!ee(le)&&E(le),onMouseLeave:()=>E(null),children:t.jsx("span",{className:`day-text ${le?"":"text-muted"}`,style:{fontSize:d},children:le?le.getDate():""})})},`${le}_${fe}`))]})]})};return v.useEffect(()=>{z&&F()},[z]),v.useEffect(()=>{k&&A(!1)},[k]),t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:q,style:{width:x},children:[t.jsx(et,{label:"Buscar por fecha",options:p,size:x,isOpen:k,setIsOpen:f,disabledClickOutside:!0,disabled:h,onchange:O,fontSizeLabel:b,fontSizeOptions:u,keyReset:C,labelText:w,subLabelText:T,sortAlphabetically:!1}),M&&t.jsxs("div",{className:"date-picker-dropdown",style:{right:a==="right"?"0":"auto",left:a==="left"?"0":"auto",top:"90%"},children:[t.jsxs("div",{className:"calendars-wrapper",children:[W(_,!0),W(H,!1)]}),!m&&t.jsx("div",{className:"date-picker-footer",children:V&&$&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[I()," ",B.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Ln,{buttonProperties:{onClick:()=>F(),style:{width:"115px",textAlign:"center"}},children:B.cancel}),t.jsx(Ye,{buttonProperties:{onClick:()=>U(),style:{width:"115px",textAlign:"center"}},children:B.search})]})]})})]})]}),V&&$&&o&&t.jsx("button",{className:"button-reset",onClick:()=>F(),children:t.jsx(Sn,{})})]})};Tl.propTypes={locale:n.oneOf(["es","en"]),heightBoxes:n.string,onDateRangeChange:n.func,disablePastDates:n.bool,resetButton:n.bool,withoutSearchButton:n.bool,onReset:n.func,direction:n.oneOf(["left","right"]),fontSize:n.string,limitRange:n.number,keyReset:n.number,disabled:n.bool,disableFutureDates:n.bool,optionsBasicSelect:n.array,widthBasicSelect:n.string,fontSizeLabelBasicSelect:n.string,fontSizeOptionsBasicSelect:n.string,labelText:n.string,subLabelText:n.any,disablePastDaysCount:n.number,keyResetBasicSelect:n.number};const Ml=({width:e,menu:s,submenu:r,tab:i,navigateFn:o,fontSize:l,Icon:a,marginTop:c})=>{const d=()=>{o({submenu:r,tab:i})};return t.jsxs("div",{className:"flex gap w-full",style:{width:e},children:[t.jsxs("ul",{className:"flex gap items-center ulBreadcrumbs",children:[t.jsx("li",{className:"list-none flex",style:{marginTop:c??"4px"},children:a||t.jsx(Tn,{width:25,height:25})}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:s}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(zn,{})})]}),t.jsxs("ul",{className:"flex gap items-center pointer ulBreadcrumbs",children:[t.jsx("li",{className:`list-none ${i?"border-bottom":"color-tab"}`,onClick:d,style:{fontSize:l},children:r}),i&&t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(zn,{})}),i&&t.jsx("li",{className:"list-none color-tab",style:{fontSize:l},children:i})]})]})};Ml.propTypes={width:n.string,menu:n.string,submenu:n.string,tab:n.string,navigateFn:n.func,fontSize:n.string,Icon:n.element,marginTop:n.string};const zl=({steps:e=[],currentStep:s=1,width:r="600px"})=>{const i=()=>e.length<=1?0:s/e.length*100;return t.jsxs("div",{className:"stepper-container",style:{width:r},children:[t.jsx("div",{className:"stepper-line",style:{"--progress-width":`${i()}%`}}),t.jsx("div",{className:"stepper-steps",children:e.map((o,l)=>{const a=l+1,c=a<s,d=a===s;return t.jsxs("div",{className:"step-wrapper",children:[t.jsx("div",{className:`step-circle ${c?"completed":d?"current":"inactive"}`,children:c?t.jsx("svg",{className:"checkmark",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:t.jsx("polyline",{points:"20,6 9,17 4,12"})}):t.jsx("span",{className:"step-number",children:a})}),t.jsx("div",{className:"step-label",children:o.title})]},l)})})]})};zl.propTypes={steps:n.array,currentStep:n.number,width:n.string};const El=({width:e,items:s=[],onItemClick:r,fontSize:i,Icon:o,marginTop:l})=>{const a=(c,d)=>{r&&typeof r=="function"&&r(c,d)};return!s||s.length===0?null:t.jsx("div",{className:"flex gap w-full",style:{width:e},children:t.jsxs("ul",{className:"flex gap items-center ulBreadcrumbs",children:[t.jsx("li",{className:"list-none flex",style:{marginTop:l??"4px"},children:o||t.jsx(Tn,{width:25,height:25})}),s.map((c,d)=>{const h=d===s.length-1,g=(c==null?void 0:c.isClickable)!==!1&&!h,p=d===1;return t.jsxs("div",{className:"flex gap items-center",children:[t.jsx("li",{className:`list-none ${h?"color-tab":g||p?"pointer border-bottom":""}`,onClick:()=>g?a(c,d):null,style:{fontSize:i,cursor:g?"pointer":"default"},title:g?`Click to navigate to ${c.name||c}`:void 0,children:c.name||c}),!h&&t.jsx("li",{className:"list-none",style:{fontSize:i},children:t.jsx(zn,{})})]},d)})]})})};El.propTypes={width:n.string,items:n.arrayOf(n.oneOfType([n.string,n.shape({name:n.string.isRequired,path:n.string,id:n.oneOfType([n.string,n.number]),data:n.any})])).isRequired,onItemClick:n.func,fontSize:n.string,Icon:n.element,marginTop:n.string};const Nl=({icon:e,title:s,className:r="",children:i})=>t.jsxs("div",{className:`data-section ${r}`,children:[t.jsxs("div",{className:"data-section-header",children:[e&&t.jsx(e,{className:"data-section-icon"}),t.jsx("h3",{className:"data-section-title",children:s})]}),t.jsx("div",{className:"data-section-content",children:Array.isArray(i)?i.map((o,l)=>t.jsx("div",{className:"data-section-item",children:o},l)):t.jsx("div",{className:"data-section-item",children:i})})]});Nl.propTypes={icon:n.elementType,title:n.string,className:n.string,children:n.oneOfType([n.node,n.arrayOf(n.node)])};const zu=Fe(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),Dl=({data:e,language:s,onSave:r,onCancel:i,isUpdate:o})=>{const[l,a]=v.useState(e),c={en:{title:"Application list",update:"Update application",cancel:"CANCEL",save:"SAVE"},es:{title:"Lista de aplicaciones",update:"Editar aplicación",cancel:"CANCELAR",save:"GUARDAR"}},d=c[s]??c.es,h=p=>{const m=l.filter((x,b)=>b!==p);a(m)},g=()=>{r(l)};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-listAplication",children:[t.jsxs("div",{className:"relative-onehundredpercent",children:[t.jsx("div",{className:"modal-listAplication-header",children:t.jsx("h2",{children:o?d.update:d.title})}),t.jsx("button",{className:"close-button",onClick:i,children:t.jsx(ct,{sx:{color:"#8598ad"}})})]}),t.jsx("div",{className:"modal-listAplication-content",children:l==null?void 0:l.map((p,m)=>t.jsxs("div",{className:"application-item",children:[t.jsx("div",{className:"application-header",children:t.jsx("h3",{children:p.title})}),t.jsxs("div",{className:"container-center-between",children:[t.jsx("div",{className:"application-title",children:typeof p.logo=="string"?t.jsx("div",{children:t.jsx("img",{src:p==null?void 0:p.logo,alt:`${p.title} logo`,className:"app-logo"})}):t.jsx("div",{children:t.jsx(p.logo,{})})}),l.length>1&&t.jsx("button",{className:"remove-button",onClick:()=>h(m),children:t.jsx(zu,{sx:{color:"#8598ad"}})})]}),t.jsx("p",{className:"application-manager",children:p.manager}),m<e.length-1&&t.jsx("hr",{})]},m))}),t.jsxs("div",{className:"modal-listAplication-footer",children:[t.jsx(Ot,{buttonProperties:{disabled:!1,onClick:()=>i(),style:{width:"45%"}},children:d.cancel}),t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"45%"}},children:d.save})]})]})})};Dl.propTypes={data:n.array,language:n.oneOf(["en","es"]),onSave:n.func,onCancel:n.func,isUpdate:n.bool};const Ol=e=>e.toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"}),Al=({isOpen:e,ticketNumber:s="##000",date:r=new Date,setIsOpen:i,isReadOnly:o=!1,fontSize:l="1vw",fontSizeButton:a="0.8vw",fontSizeTicketNumber:c="1.3vw",width:d="40vw",onAccept:h,onCreateNewTicket:g,createNewTicket:p=!0})=>{if(!e)return null;const m=()=>i(!1),x=()=>{m(),h()},b=()=>{m(),g()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:d},children:[t.jsx("button",{onClick:m,className:"closeButton",children:t.jsx(ct,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[o&&t.jsxs("div",{className:"alert",children:[t.jsx(Yt,{width:30}),t.jsx("p",{style:{fontSize:l},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(En,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:l},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:s})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:Ol(r)})]})]})]}),t.jsxs("div",{className:"buttonContainer",style:{justifyContent:p?"space-between":"center"},children:[p&&t.jsx(Ot,{buttonProperties:{disabled:!1,onClick:()=>b(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>x(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})]})})};Al.propTypes={isOpen:n.bool,ticketNumber:n.string,date:n.instanceOf(Date),setIsOpen:n.func,isReadOnly:n.bool,fontSize:n.string,fontSizeButton:n.string,fontSizeTicketNumber:n.string,width:n.string,onAccept:n.func,onCreateNewTicket:n.func,createNewTicket:n.bool};const Eu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAugAAACTCAMAAADr/hyJAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAJhUExURQAAANzz7dzz7dz07P///9zz7dzz7dvt7dzz7dvz7dzz7t3y7t307dvz7dv//9zz7d307eD169zz7dr079vz7dvz7dzz7d307b///9zz7tzz7dzz7tjr69vz69zy7dzz7dzy7tz27d307Nzz7f///9z07dzz7dX//9zz7tzz7dzz7dXq6t3y7tzz7dzz7f///9vz89v07Nzz7Nzz7d//397379zz7dzz7d/v793u7tjw8N/v79rz7Nzy7tzz7eHw8Nvz7dzz6N3z7dzz7dny8tvw8Nzz7d706dzz7eP/49zz7d307dzz7dzz7N307tvy7tzz7dv07N317N3y7t3z7dzx6uPx8dj169307tvy7dzz7tzz7dz169v07dzz7d3z7d3z7Nrw8Nzz7tvz7dzz7d337tzz7dzz7dz07Nzz7dzz7Nfy8tzz7dzz69zz7d3x6ub/5tHo6Nzz7N3z7dzy7dzy7Nzy7tvz7dv07sz//931693z7dzy7dz07d3z7tzz7d307dvz7dvz7N3x7tzy7dvy7Nrx7Nv07Nzz7dzz7dz07dzz7dv07dvy7dzy7Nzz7dzy7tzz7tzz7dvy69v169zy7dzz7drz79zz7dzy7dzz7t307tv179zz7t307dvz7Nvz7dzz7tzz7dvz7t/y7Nzz7dv07dv07dz07dzz7dzz7Nvz7d3z7dzy7d7y69zz7tzz7dzz7dzz7N3y7d3y7d7x7Nzy7tz07N3z7N3y7Nzz7tzz7Nz07dzz7tzz7Nzy7dzz7tzz7dzz7d3z7tz17t707t/06tzz7tv07dzz7f///6DK0vIAAADJdFJOUwDE5l4B+pEOuyrbTPSAB/ycGbww11XsbwSw9oUNQMv9oR1E0gLfxwZm6dUMd/LhAxWI+OsIH5n7IA8hECmi8xErFqvwFCP3F/UJ7959zllNxbM1PKokEhqGY8zZM3LYuVIize3jHv75ieVsE91B2iUKC3vPtmB1rFwFNH/KtGjocLqkS4x5N12a8XSunWRR7naSgk4ytag+kLeEWzGvyKVUsadqKL2ecZ/il4FTOieTprjqjmE2O1+Vo75tSFhui7/W0WlJLhgsR8ixHpYAAAABYktHRASPaNlRAAAAB3RJTUUH6AsMDjsfsOFyIQAAAAFvck5UAc+id5oAAAbYSURBVHja7d3pdxNVGIDxSQJp0CYBYRqEQiEt0tYUmBZiEdKWpSxWSWMK1RjAqlCWVmUTlEWxgKJAFdwRFUFUVNz3fdf/ykY8AkJqs74zc5/fx36aufOcnDt3bme0PwEFaNIHABQDoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOpRA6FACoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOpRA6FACoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOpRA6FACoUMJhA4lEDqUQOhQAqFDCYQOJRA6lEDoUAKhQwmEDiUQOlTgIHTYn9M1jNBhd8PdJZpG6LA5zwhNI3TY3FVXaxqhw+ZKvT6N0GFz/pGjNI3QYXPXjNY0QofNjdE1jdBhc2WBsZd2rl0rfUhAvo0bX65dZsJE6cMC8qli0mTtioKV0ocG5I1ntJZOlT5F+uiAvLhugjaYqdU10kcI5KxW1/7P9aE66aMEcjKtevr/dj5ghlEvfaRA1hpCM4eSecqs8A3SRwtkpcxbMtTMUxpJHRZUZ8zOJPOUG8N+6aMGMlJnzMk085S5EVKHdTQZzdlkntISqZA+emBISt3zss08ZfR8Uof5LRi/MJfMU1q5LYXJlXmznrRcrNG9SPpMgLRqvBmvtKSz2FgifTbAFU0LLM1X5ikLvTdJnxFwmbaAL/e4L9V8c430WQGXuGXZkPa0ZMrnGiN9ZsC/HNFhhcg8pSraLn12QEpF7NZCVX5evIPHpZDW5J5V2MxTlrPaCFE13hWFzzyl87Yy6XOFsipvH/J289z5XPwfNQRUeAp3B5oGk3UUW1N4bpEr/1urwUMkFE9bqEhT88uVBHg9Booj4Rqbe7DZqwoyg0HBLYqMzr3VXLUaDdLjAFu7Q27Ocimf7pEeC9iVPxYs9jrLYJLhUukRgQ05jcm5x5lfK1aukh4V2EvF6jtFb0DT4mcd+eM0uqSDTm929V3S4wM7qPDo5vwxvyDpvlt6lGBx9xhrpDMeipm6Z630UMGyujuiBfm/oYIYsW699HjBkiZu2Cgdb2aq4tyZIkNOtwkegGauxMUUBkNWHzP9/Wd6a0I90uMHS0gELDZl+a+q3pFs5sXg7vXeJ91pPviiEabrSKcsHDfTZpbc3K/HhksPKExoQSRq3Yn5la2odnBriovVx1ybpLMsiNbNW6THFmbRvXVb3l6Ca0KNAX7X8affEcjp+xSWMIvW1TZQ+QzpCGkdhVUfq1al8vO6Hmjn60iqKd2+w87z8nQWujpYX1dHWUS/Xjo5MfdHIzw3VcEUd/BB6diETY+775G+DCioWsNGzz5zMeyhnbuYsNvTuN17LPHfQkWzUI8skL4oyLOHI3q5dFgmND1uJKQvDfLFn/AmmbCkdd8je/mehvXVPLrMJG+RM7GlQSPB4yTruiFhxKukI7KKxXrYKX3BkIWesK7iI6FcVCVDnm7p64YMlHoCjdLVWFR53767WHe0giV79x+w239QFFk5U3aTG5iUB4v4oTg7m6e7WXg0JX/CiJZI52Evax57fIz0ZcXFutuNPiIviHlRw8ENqhmUOozgUukc7G1TPOQZJ32dlXbQE4pPlc5ADb74E0+yzi6govbQ4RE82C+uzoF5DNsFiqfOYUQt/to463owGYi0SReggJ5IIMljfWmTj4zf2y+dgm21dTzVy9qKeXRGvTG+KZNfzpg3av/Xr1hQ1VzX0+1N0nnYgnPr0WOd0tcTgxr4be+oZdNAtvw9A7/jo6QvIoZoTjwQdtRLR2MxTYlIIG7P137am+8Z17pnp0jnYwXdlc9tPrKcdRVLK0+6jFgPc5k0nDHDlWTzoW2seH7PCy+2sbn9gvrK+S8df5nEbWlqVzQUdhyUbkxYfyIS0lus89VaZKuzd8++E5VLpIMruoZXXj2641Ye/6imOamHwh4VPhDZn+gYmInPkR5wiJqTfG2l++QWG+4iWLu+/fV1p/pO+6SHGGZS3tJ3yni9fb1fus+cLbrqjTM7t/W2smscg2luCVZ7w7GE1ba899d6IkZAT3ayII6MbDo9Ycebxlu7d71t3o3vdXc4Tpx9Z8O7763h9xu5KzkXP3Jq5/sffLirTfytv/6PVrXHJn28/5OrP53MOjgKZuy8059FP1/50hdfnvwq0dNQ+C01Tc5Vuzzbz7yw8+vj33zayuIJZPhmdCV7j31b/V1o/PfhSMfqHxI/9jT0Z7GKM7y/39nz00TP7o5DZw1v6OfD+i/xXxubmXLD3KY3N//W1fV7MhkPntenX/DHP387kEye6+ra2MzLOQEAyMBf4Qb2Ap6Bh4QAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjQtMTEtMTJUMTQ6NTk6MTIrMDA6MDBpf70TAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI0LTExLTEyVDE0OjU5OjEyKzAwOjAwGCIFrwAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyNC0xMS0xMlQxNDo1OTozMSswMDowMDz6OZAAAAAASUVORK5CYII=",Il=({onChange:e,handleClose:s})=>{const[r,i]=v.useState(!1),o=()=>{e(r),s()};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-VisualizationModaLogin",children:[t.jsx("img",{src:Eu,alt:"",className:"backgroundTicket"}),t.jsx("div",{className:"TicketImageUserReadOnly",style:{height:"95px"},children:t.jsx("div",{className:"UserReadOnlyIconCenter",children:t.jsx(Yt,{width:80})})}),t.jsx("button",{className:"close-button-VisualizationModaLogin",onClick:s,children:t.jsx(ct,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"container-content",children:[t.jsx("div",{className:"modal-header",children:t.jsx("h2",{children:"¿Qué es un usuario de Visualización?"})}),t.jsxs("div",{className:"modal-content",children:[t.jsx("p",{children:"Este perfil se puede utilizar para realizar ensayos o simulaciones dentro del portal, aplicación o plataforma. Este tipo de usuario se creo con el objetivo de evaluar funcionalidades, detectar errores o problemas, y verificar que el sistema funciona correctamente antes de que esté disponible para usuarios reales."}),t.jsx("h3",{children:"¿Qué puedo y que no puedo hacer?"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Puedes Visualizar y hacer el flujo de una sección dentro del portal"}),t.jsx("li",{children:"Puedes hacer la navegación pero no es posible guardar o realizar solicitudes de Tickets"})]}),t.jsx("div",{className:"checkbox-container",children:t.jsx(Le.FormControlLabel,{control:t.jsx(Le.Checkbox,{onChange:l=>i(l.target.checked),sx:{"&.Mui-checked":{color:"#33a4dd"}}}),label:"No volver a mostrar al iniciar sesión"})}),t.jsx("div",{className:"container-button-modal",children:t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>{o()},style:{width:"40%"}},children:"ACEPTAR"})})]})]})]})})};Il.propTypes={onChange:n.func,handleClose:n.func};const Rl=({isOpen:e,setIsOpen:s,width:r="30vw",fontSizeTitle:i="1.5vw",fontSizeDescription:o="1vw",fontSizeButton:l="1vw",description:a="Al cancelar perderás los datos proporcionado en la acción.",title:c="¿Estas seguro que deseas cancelar dia y hora específicos de la promoción?",textButton:d="ACEPTAR",onAccept:h})=>{if(!e)return null;const g=()=>s(!1),p=()=>{s(!1),h()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:r},children:[t.jsx("button",{onClick:g,className:"closeButton",children:t.jsx(ct,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[t.jsx("div",{className:"iconContainer",children:t.jsx(Os,{})}),t.jsx("h2",{className:"title",style:{border:"none",fontSize:i},children:c}),t.jsx("p",{className:"warning-modal-description",style:{fontSize:o},children:a}),t.jsx("div",{className:"buttonContainer",children:t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"100%",fontSize:l}},children:d})})]})]})})};Rl.propTypes={isOpen:n.bool,setIsOpen:n.func,width:n.string,fontSizeTitle:n.string,fontSizeDescription:n.string,fontSizeButton:n.string,textButton:n.string,onAccept:n.func};const Pl=({title:e,icon:s,className:r="",classNameTextArea:i="",value:o="",onChange:l,placeholder:a="Modificación de la promoción por cambios de Stock.",disabled:c=!1})=>t.jsxs("div",{className:`observations ${r}`,children:[t.jsxs("div",{className:"observations-header",children:[s&&t.jsx(s,{className:"observations-icon"}),t.jsx("h3",{className:"observations-title",children:e})]}),t.jsx("div",{className:"observations-content",children:t.jsx("textarea",{className:`observations-textarea ${i}`,value:o,onChange:l,placeholder:a,rows:4,disabled:c})})]});Pl.propTypes={title:n.string,icon:n.elementType,className:n.string,classNameTextArea:n.string,value:n.string,onChange:n.func,placeholder:n.string,disabled:n.bool};const Wl=({titles:e=["1. Cargar Datos de Cancelación","2. Validar los Datos Cargados","3. Aceptar o Rechazar"],currentStep:s=1,fontSizeTitles:r,widthIcon:i,heightIcon:o,width:l})=>{const a=[Vi,Hi,qi],c=e.map((d,h)=>({number:h+1,title:d,icon:a[h]}));return t.jsxs("div",{className:"stepper",style:{width:l},children:[t.jsx("div",{className:"stepper-progress",children:t.jsx("div",{className:"stepper-progress-bar",style:{width:s===1?"0%":s===2?"52%":"100%"}})}),t.jsx("div",{className:"stepper-steps",children:c.map(d=>{const h=d.icon,g=s>=d.number;return t.jsxs("div",{className:`stepper-step ${g?"active":""}`,style:{height:o},children:[t.jsx("span",{className:"stepper-title",style:{fontSize:r},children:d.title},d.number),t.jsx("div",{className:"stepper-icon",style:{width:i,height:o},children:t.jsx(h,{})})]},d.number)})})]})};Wl.propTypes={titles:n.arrayOf(n.string),currentStep:n.number,fontSizeTitles:n.string,widthIcon:n.string,heightIcon:n.string,width:n.string};const $l=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-InProcessing",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Dn,{fill:"#d0aa00"}),"En Procesamiento"]});$l.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Bl=({width:e,fontSize:s,marginAuto:r,height:i})=>t.jsxs("div",{className:"state-basic states-ToStart",style:{width:e,fontSize:s,margin:r?"auto":"",height:i},children:[t.jsx(Dn,{fill:"#7c92c5"}),"Por Iniciar"]});Bl.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const gr=(e,s="100px",r,i,o)=>({Activo:t.jsx(ir,{width:s,fontSize:r,marginAuto:i,height:o}),Cancelada:t.jsx(lr,{width:s,fontSize:r,marginAuto:i,height:o}),Finalizada:t.jsx(ar,{width:s,fontSize:r,marginAuto:i,height:o}),Inactivo:t.jsx(or,{width:s,fontSize:r,marginAuto:i,height:o}),"En Procesamiento":t.jsx($l,{width:s,fontSize:r,marginAuto:i,height:o}),"Por Iniciar":t.jsx(Bl,{width:s,fontSize:r,marginAuto:i,height:o}),"En tránsito":t.jsx(cr,{width:s,fontSize:r,marginAuto:i,height:o})})[e]||e,Fl=({data:e,onEdit:s,width:r,dataKeysNotToRender:i=[],textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeight:d,onFnIcon:h,icon:g=t.jsx(Ms,{}),widthState:p,onEditSubData:m,onFnIconSubData:x,subMessage:b,onClickOptions:u,onClickSubOptions:w,fontSizeTHead:T,fontSizeTBody:D,widthOptions:z,fontSizeOptions:C,nameOfKeyState:k="Estado",texAlignTHead:$="start",textAlignTBody:B="start",fontSizeState:_,fontStyleTBody:V="normal",fontStyleTHead:f="normal"})=>{const[H,U]=v.useState({}),F=E=>{U(j=>({...j,[E]:!j[E]}))},Z=E=>{s(E)},K=E=>{m(E)},ee=e.length>0?Object.keys(e[0]).filter(E=>E!=="subData"&&!i.includes(E)):[],L=E=>E!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),ee.map((E,j)=>t.jsx("th",{style:{fontSize:T,textAlign:$,fontStyle:f},children:E.replace(/_/g," ")},j)),ee.length>0?t.jsx("th",{style:{fontSize:T,textAlign:$,fontStyle:f},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:ee.length+1,style:{fontSize:c,textAlign:"center",fontStyle:V},children:a})}),e==null?void 0:e.map(E=>{var j;return t.jsxs(v.Fragment,{children:[t.jsxs("tr",{className:"main-row",children:[t.jsx("td",{children:t.jsx("button",{onClick:()=>F(E.id),className:"reset-styles-button",style:{width:"100%"},children:t.jsx("i",{className:`arrow-grey-container ${H[E.id]?"up":"down"}`})})}),ee.map((y,I)=>t.jsx("td",{style:{color:y!==k?L(E.Estado):"black",padding:y===k?"0 9px":"10px",fontSize:D,textAlign:B,fontStyle:V},children:y===k?gr(E[y],p,_,B==="center"):E[y]||"-"},I)),((j=E==null?void 0:E.options)==null?void 0:j.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(At,{onClick:y=>{u({option:y,row:E})},options:[...E.options],fontSize:C,width:z})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>Z(E),style:{fontSize:D,fontStyle:V},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>h(E),children:g})]})})]}),H[E.id]&&t.jsx("tr",{className:"sub-row",style:{fontStyle:"italic"},children:Array.from({length:ee.length+2},(y,I)=>t.jsx("td",{className:"td-empty",style:{fontWeight:"600"},children:I===1?`${b}`:""},I))}),H[E.id]&&E.subData.length>0&&E.subData.map((y,I)=>{var R;return t.jsxs("tr",{className:"sub-row",children:[t.jsx("td",{})," ",ee.map((O,M)=>t.jsx("td",{style:{color:O!==k?L(y.Estado):"black",padding:O===k?"0 9px":"10px",fontSize:D,textAlign:B,fontStyle:V},children:O===k?gr(y[O],p,_,B==="center"):y[O]||"-"},M)),((R=y==null?void 0:y.options)==null?void 0:R.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(At,{onClick:O=>{w({option:O,row:y})},options:[...y.options],fontSize:C,width:z})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>K(y),style:{fontSize:D,fontStyle:V},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>x(y),children:g})]})})]},I)})]},E.id)})]})]})};Fl.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeight:n.string,icon:n.node,onFnIcon:n.func,widthState:n.string,onEditSubData:n.func,onFnIconSubData:n.func,subMessage:n.string,onClickOptions:n.func,onClickSubOptions:n.func,fontSizeTHead:n.string,fontSizeTBody:n.string,fontSizeOptions:n.string,texAlignTHead:n.string,widthOptions:n.string,nameOfKeyState:n.string,textAlignTBody:n.string,fontSizeState:n.string,fontStyleTBody:n.string,fontStyleTHead:n.string};const Ll=({data:e,dataKeysNotToRender:s,title:r,minWidth:i,texAlignTHead:o="start",textAlignTBody:l="start",fontSizeTHead:a,fontSizeTBody:c,fontSizeTitle:d})=>{const h=e.length>0?Object.keys(e[0]).filter(g=>!s.includes(g)):[];return t.jsxs("div",{className:"log-container",style:{minWidth:i},children:[t.jsx("h1",{className:"log-title",style:{fontSize:d},children:r}),t.jsxs("table",{className:"log-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:h.map((g,p)=>t.jsx("th",{style:{textAlign:o,fontSize:a},children:t.jsx("p",{children:g})},p))})}),t.jsx("tbody",{children:e.map((g,p)=>t.jsx("tr",{style:{textAlign:l,fontSize:c},children:h.map((m,x)=>t.jsx("td",{children:t.jsx("p",{children:g[m]})},x))},p))})]})]})};Ll.propTypes={title:n.string,data:n.array,dataKeysNotToRender:n.array,minWidth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,fontSizeTitle:n.string};const _l=({data:e,minWidth:s,dataKeysNotToRender:r,topToolTip:i,toolTips:o,fontSizeToolTip:l,messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:h="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px",isWrap:b=!1,width:u="100%"})=>{const[w,T]=v.useState(null),D=k=>{T(k)},z=()=>{T(null)},C=e.length>0?Object.keys(e[0]).filter(k=>!r.includes(k)):[];return t.jsxs("table",{className:"table-ixc",style:{minWidth:s,minHeight:d,width:u},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[C.map((k,$)=>t.jsxs("th",{className:"relative",onMouseEnter:()=>D(k),onMouseLeave:z,style:{height:x},children:[t.jsx("p",{style:{textAlign:h,fontSize:p,whiteSpace:b?"wrap":"nowrap",textOverflow:b?"clip":"ellipsis",overflow:b?"auto":"hidden"},children:k}),o&&o[k]&&w===k&&t.jsx("div",{className:"tooltipTable",style:{top:i},children:t.jsx(Ws,{fontSize:l,children:o[k]})})]},$)),C.length===0&&t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:C.length+1,style:{fontSize:c,textAlign:"center",whiteSpace:b?"wrap":"nowrap",textOverflow:b?"clip":"ellipsis",overflow:b?"auto":"hidden"},children:a})}),e.map((k,$)=>t.jsx("tr",{children:C.map((B,_)=>t.jsx("td",{style:{textAlign:g,fontSize:m,whiteSpace:b?"wrap":"nowrap",textOverflow:b?"clip":"ellipsis",overflow:b?"auto":"hidden",height:x},children:k[B]},_))},(k==null?void 0:k.id)||$))]})]})};_l.propTypes={minWidth:n.string,toolTips:n.object,topToolTip:n.string,data:n.arrayOf(n.object),dataKeysNotToRender:n.arrayOf(n.string),fontSizeToolTip:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,heightTd:n.string,isWrap:n.bool,width:n.string};const Hl=({data:e,onEdit:s,width:r,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,icon:h,onFnIcon:g,onClickOptions:p,widthOptions:m,fontSizeOptions:x,texAlignTHead:b="start",textAlignTBody:u="start",fontSizeTHead:w,fontSizeTBody:T})=>{const D=C=>{s(C)},z=e.length>0?Object.keys(e[0]).filter(C=>C!=="options"&&!i.includes(C)):[];return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[z.map((C,k)=>t.jsx("th",{style:{textAlign:b,fontSize:w},children:C},k)),z.length>0?t.jsx("th",{style:{textAlign:b,fontSize:w},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:z.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((C,k)=>{var $;return t.jsxs("tr",{children:[z.map((B,_)=>t.jsx("td",{style:{textAlign:u,fontSize:T},children:C[B]},_)),(($=C==null?void 0:C.options)==null?void 0:$.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(At,{onClick:B=>{p({option:B,row:C})},options:[...C.options],fontSize:x,width:m})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>D(C),style:{fontSize:T,textAlign:u},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>g(C),style:{textAlign:o?u:"center"},children:h})]})})]},(C==null?void 0:C.id)||k)})]})]})};Hl.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),language:n.oneOf(["en","es"]),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,icon:n.node,onFnIcon:n.func,onClickOptions:n.func,widthOptions:n.string,fontSizeOptions:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string};const Vl=({data:e,onEdit:s,width:r,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:h="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px"})=>{const b=w=>{s(w)},u=e.length>0?Object.keys(e[0]).filter(w=>!i.includes(w)):[];return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[u.map((w,T)=>t.jsx("th",{style:{textAlign:h,fontSize:p},children:w},T)),u.length>0?t.jsx("th",{style:{textAlign:h,fontSize:p},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:u.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((w,T)=>t.jsxs("tr",{children:[u.map((D,z)=>t.jsx("td",{style:{textAlign:g,fontSize:m},children:w[D]},z)),t.jsx("td",{children:t.jsx("button",{className:"edit-button",onClick:()=>b(w),style:{fontSize:m,textAlign:g,height:x},children:o})})]},(w==null?void 0:w.id)||T))]})]})};Vl.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),language:n.oneOf(["en","es"]),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,heightTd:n.string};const ql=({data:e,children:s,width:r,dataKeysNotToRender:i=[],textHeader:o="Acciones",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeigth:c,texAlignTHead:d="start",textAlignTBody:h="start",fontSizeTHead:g,fontSizeTBody:p,heightTd:m="30px"})=>{const x=e.length>0?Object.keys(e[0]).filter(u=>!i.includes(u)):[],b=u=>{if(!s)return null;const w=T=>{if(!T.props.onClick)return T;const D=T.props.onClick,z=C=>{C.rowData=u,D(C)};return v.cloneElement(T,{...T.props,onClick:z})};return Array.isArray(s)?s.map((T,D)=>w(v.cloneElement(T,{key:D,rowData:u,...T.props}))):w(v.cloneElement(s,{rowData:u}))};return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:c},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[x.map((u,w)=>t.jsx("th",{style:{textAlign:d,fontSize:g},children:u},w)),x.length>0?t.jsx("th",{style:{textAlign:d,fontSize:g},children:o}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:x.length+1,style:{fontSize:a,textAlign:"center"},children:l})}),e.map((u,w)=>t.jsxs("tr",{children:[x.map((T,D)=>t.jsx("td",{style:{textAlign:h,fontSize:p},children:u[T]},D)),t.jsx("td",{children:t.jsx("div",{className:"action-icon",style:{height:m,display:"flex",alignItems:"center",gap:"10px"},children:b(u)})})]},(u==null?void 0:u.id)||w))]})]})};ql.propTypes={data:n.arrayOf(n.object),children:n.oneOfType([n.element,n.arrayOf(n.element)]),width:n.string,dataKeysNotToRender:n.arrayOf(n.string),textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeigth:n.string,texAlignTHead:n.string,textAlignTBody:n.string,fontSizeTHead:n.string,fontSizeTBody:n.string,heightTd:n.string};const Ul=({data:e,onEdit:s,width:r,textButton:i="Editar",textHeader:o="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeight:c,onFnIcon:d,icon:h=t.jsx(Ms,{}),widthState:g,onClickOptions:p,fontSizeTHead:m,fontSizeTBody:x,widthOptions:b,fontSizeOptions:u,dataKeysNotToRender:w=[],nameOfKeyState:T="Estado",texAlignTHead:D="start",textAlignTBody:z="start",fontSizeState:C,heightStates:k="18px",heightTd:$="30px",fontStyleTBody:B="normal",fontStyleTHead:_="normal"})=>{const V=U=>{s(U)},f=(e==null?void 0:e.length)>0?Object.keys(e[0]).filter(U=>U!=="options"&&!w.includes(U)):[],H=U=>U!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:r,minHeight:c,fontStyle:B},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[f.map((U,F)=>t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:_},children:U},F)),f.length>0?t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:_},children:o}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:f.length+1,style:{fontSize:a,textAlign:"center",fontStyle:B},children:l})}),e.map((U,F)=>{var Z;return t.jsxs("tr",{children:[f.map((K,ee)=>t.jsx("td",{style:{fontSize:x,textAlign:z,color:K!==T?H(U.Estado):"black",height:$,fontStyle:B},children:K===T?gr(U[K],g,C,z==="center",k):U[K]},ee)),((Z=U==null?void 0:U.options)==null?void 0:Z.length)>0?t.jsx("td",{style:{overflow:"visible",height:$,fontStyle:B},children:t.jsx(At,{onClick:K=>{p({option:K,row:U})},options:[...U.options],fontSize:u,width:b})}):t.jsx("td",{style:{height:$,fontStyle:B},children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>V(U),style:{fontSize:x,textAlign:z,fontStyle:B},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>d(U),children:h})]})})]},(U==null?void 0:U.id)||F)})]})]})};Ul.propTypes={data:n.arrayOf(n.object),onEdit:n.func,width:n.string,dataKeysNotToRender:n.arrayOf(n.string),textButton:n.string,textHeader:n.string,messageWhenEmpty:n.string,fontSizeMessageEmpty:n.string,minHeight:n.string,icon:n.node,onFnIcon:n.func,widthState:n.string,onClickOptions:n.func,fontSizeTHead:n.string,fontSizeTBody:n.string,fontSizeOptions:n.string,texAlignTHead:n.string,widthOptions:n.string,nameOfKeyState:n.string,textAlignTBody:n.string,fontSizeState:n.string,heightStates:n.string,heightTd:n.string,fontStyleTBody:n.string,fontStyleTHead:n.string};const Zl=({children:e,className:s="",...r})=>t.jsx("th",{className:`th-table-ixc ${s}`.trim(),...r,children:e});Zl.propTypes={children:n.node,className:n.string};const Nu=(e=[])=>{const s=v.useRef(null),[r,i]=v.useState(!1),o=v.useCallback(()=>{if(s.current){const l=s.current,a=l.scrollWidth>l.clientWidth;return i(a),a}return!1},[]);return v.useEffect(()=>{const a=setTimeout(()=>{o()},0);return window.addEventListener("resize",o),()=>{clearTimeout(a),window.removeEventListener("resize",o)}},e),{ref:s,isTruncated:r,checkTruncation:o}},Yl=({children:e,className:s="",classTooltip:r="",showTooltipOnTruncate:i=!1,left:o=120,top:l=0,...a})=>{const{ref:c,isTruncated:d}=Nu([e]),[h,g]=v.useState(!1),[p,m]=v.useState({top:0,left:0}),x=u=>{if(d&&i){const w=u.currentTarget.getBoundingClientRect();m({top:w.top+l,left:w.left+o}),g(!0)}},b=u=>{const w=u.relatedTarget;w&&typeof w.closest=="function"&&w.closest(".td-tooltip-container")||g(!1)};return t.jsxs(t.Fragment,{children:[t.jsx("td",{ref:c,className:`td-table-ixc-base ${s}`.trim(),onMouseEnter:x,onMouseLeave:b,...a,children:e}),h&&xa.createPortal(t.jsx("div",{className:`td-tooltip-container ${r}`.trim(),style:{top:`${p.top}px`,left:`${p.left}px`},onMouseEnter:()=>g(!0),onMouseLeave:u=>{var T;const w=u.relatedTarget;w&&typeof w.closest=="function"&&((T=c.current)!=null&&T.contains(w))||g(!1)},children:e}),document.body)]})};Yl.propTypes={children:n.node,className:n.string,classTooltip:n.string,showTooltipOnTruncate:n.bool,left:n.number,top:n.number};const Gl=({children:e,className:s="",...r})=>t.jsx("thead",{className:`thead-table-ixc ${s}`.trim(),...r,children:e});Gl.propTypes={children:n.node,className:n.string};const Kl=({children:e,className:s="",...r})=>t.jsx("tr",{className:`tr-table-ixc ${s}`.trim(),...r,children:e});Kl.propTypes={children:n.node,className:n.string};const Ql=({children:e,className:s="",...r})=>t.jsx("tbody",{className:`tbody-table-ixc-base ${s}`.trim(),...r,children:e});Ql.propTypes={children:n.node,className:n.string};const Xl=({children:e,className:s,...r})=>t.jsx("table",{className:`table-v2 ${s}`,...r,children:e});Xl.propTypes={children:n.node,className:n.string};const Du=Object.assign(Xl,{Th:Zl,Td:Yl,Thead:Gl,Tr:Kl,Tbody:Ql}),Jl=({menus:e,size:s,onclick:r,height:i,fontSize:o})=>{var p;const l=e||[],[a,c]=v.useState(((p=l[0])==null?void 0:p.id)||""),[d,h]=v.useState(100/l.length),g=m=>{c(m.id),r(m)};return v.useEffect(()=>{const m=()=>{const x=100/l.length;h(x)};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[l.length]),t.jsx("nav",{className:"dynamic-menu",style:{width:s,height:i},children:t.jsx("ul",{children:l.map(m=>t.jsx("li",{className:a===m.id?"selected":"",style:{width:`${d}%`},onClick:()=>g(m),children:t.jsx("button",{style:{fontSize:o},children:m.label})},m.id))})})};Jl.propTypes={menus:n.array,size:n.string,onclick:n.func,height:n.string,fontSize:n.string};const ea=({children:e,onChange:s,tabs:r,value:i,minHeight:o,width:l})=>{const[a,c]=v.useState(i),d=h=>{c(h),s(h)};return t.jsxs("div",{className:"tabs-container",style:{width:l},children:[t.jsx("div",{className:"tabs-wrapper",children:r.map(h=>t.jsxs("button",{onClick:()=>d(h.id),className:`tab-button ${a===h.id?"active":""}`,children:[t.jsx("span",{className:"tab-title",children:h.title}),t.jsx("span",{className:"tab-subtitle",children:h.subtitle})]},h.id))}),t.jsx("div",{style:{minHeight:o},children:e})]})};ea.propTypes={children:n.node,onChange:n.func,tabs:n.arrayOf(n.shape({id:n.string,title:n.string,subtitle:n.any})),value:n.string,minHeight:n.string,width:n.string};const ta=({tabs:e,width:s,onChange:r,disabled:i,defaultValue:o})=>{var d;const[l,a]=v.useState(o||((d=e[0])==null?void 0:d.key)||"");v.useEffect(()=>{o&&a(o)},[o]);const c=h=>{a(h),r(h)};return t.jsx("div",{className:"DeliveryTabs-tabs-container",style:{width:s},children:t.jsx("div",{className:"tabs-wrapper",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((h,g)=>t.jsx("button",{disabled:i,className:`tab ${l===h.key?"active":""} ${g===0?"first-tab":""} ${g===e.length-1?"last-tab":""}`,onClick:()=>c(h.key),role:"tab","aria-selected":l===h.key,children:h.label},h.key))})})};ta.propTypes={tabs:n.arrayOf(n.shape({key:n.string,label:n.string})),width:n.string,onChange:n.func,disabled:n.bool,defaultValue:n.string};const na=({tabs:e,width:s,onChange:r})=>{const[i,o]=v.useState(e[0].id),l=a=>{o(a),r(a)};return t.jsx("div",{className:"tabs-simple-container",style:{width:s},children:t.jsx("div",{className:"tabs-simple-header",children:e.map(a=>t.jsx("button",{className:`tabs-simple-button ${i===a.id?"tabs-simple-button-active":""}`,onClick:()=>l(a.id),children:a.label},a.id))})})};na.propTypes={tabs:n.array,width:n.string,onChange:n.func};const sa=({isOpen:e,ticketNumber:s="##000",date:r=new Date,setIsOpen:i,isReadOnly:o=!1,fontSize:l="1vw",fontSizeButton:a="0.8vw",fontSizeTicketNumber:c="1.3vw",width:d="40vw"})=>{if(!e)return null;const h=()=>i(!1),g=()=>{h()};return t.jsx("div",{className:"ticket-component-v2",style:{width:d},children:t.jsxs("div",{className:"main-content",children:[o&&t.jsxs("div",{className:"alert",children:[t.jsx(Yt,{width:30}),t.jsx("p",{style:{fontSize:l},children:"Estás usando un usuario de prueba. No se va a generar ningún Ticket"})]}),t.jsx("h2",{className:"title",children:"Se ha cargado su solicitud correctamente"}),t.jsxs("div",{className:"content-ticket",children:[t.jsx(En,{width:"35%"}),t.jsxs("div",{className:"content",children:[t.jsx("p",{style:{fontSize:l},children:"Se ha creado una nueva solicitud"}),t.jsxs("div",{children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Número de ticket"}),t.jsx("p",{className:"ticketNumber",style:{fontSize:c},children:s})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:Ol(r)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(Ot,{buttonProperties:{disabled:!1,onClick:()=>h(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ye,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})})};sa.propTypes={isOpen:n.bool,width:n.string,onClose:n.func,setIsOpen:n.func,isReadOnly:n.bool,fontSize:n.string,ticketNumber:n.string,date:n.instanceOf(Date),fontSizeButton:n.string,fontSizeTicketNumber:n.string};const ra=({children:e,style:s})=>t.jsx("h3",{className:"blue-title",style:{...s},children:e});ra.propTypes={children:n.any,style:n.object};const ia=({children:e,navigateTo:s,style:r})=>t.jsx("button",{onClick:()=>s(),style:{...r},className:"ions-link",children:e});ia.propTypes={children:n.node,navigateTo:n.func,style:n.object};const oa=({children:e,className:s=""})=>t.jsx("h2",{className:`simple-title ${s}`,children:e});oa.propTypes={children:n.node,className:n.string};const la=({children:e,className:s=""})=>t.jsx("p",{className:`paragraph ${s}`,children:e});la.propTypes={children:n.node,className:n.string};const aa=({tooltip:e,className:s,classNameLabel:r,classNameTooltip:i,debug:o=!1,children:l})=>{const[a,c]=v.useState(!1),d=()=>{c(!0)},h=()=>{c(!1)};return t.jsxs("div",{className:`container-label ${s}`,children:[t.jsx("label",{className:`label-library ${r}`,children:l}),e&&t.jsxs("div",{style:{position:"relative",width:"24px",height:"26px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:d,onMouseLeave:h,children:[t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:26,fill:"none",viewBox:"0 0 24 26",children:t.jsx("path",{fill:"#21459C",d:"M12 2.43c-2.652 0-5.196 1.112-7.071 3.091S2 10.183 2 12.981s1.054 5.482 2.929 7.46c1.875 1.979 4.419 3.09 7.071 3.09s5.196-1.111 7.071-3.09C20.946 18.463 22 15.78 22 12.982s-1.054-5.481-2.929-7.46c-1.875-1.979-4.419-3.09-7.071-3.09Zm1 15.826h-2v-6.33h2v6.33Zm0-8.44h-2v-2.11h2v2.11Z"})}),(a||o)&&t.jsx("p",{className:`tooltip ${i}`,children:e})]})]})};aa.propTypes={tooltip:n.string,classNameTooltip:n.string,className:n.string,classNameLabel:n.string,debug:n.bool,children:n.string};const ca=({children:e,className:s=""})=>t.jsx("div",{className:`template-container ${s}`,children:e});ca.propTypes={children:n.node,className:n.string},n.checkPropTypes=()=>{},N.Active=ir,N.ArrowRightIcon=Wn,N.BasicSelect=et,N.BlueTitle=ra,N.BoldIcon=Cs,N.Breadcrumbs=Ml,N.BreadcrumbsNested=El,N.ButtonAddBoxRoundedIcon=_o,N.ButtonArrow=_n,N.ButtonCleanFilters=qo,N.ButtonDarkBlue=Jt,N.ButtonDarkBlueRounded=nr,N.ButtonDarkGreen=Io,N.ButtonDownloadFile=Ro,N.ButtonDownloadTemplate=Fo,N.ButtonEye=Uo,N.ButtonLetters=Ao,N.ButtonMinus=Wo,N.ButtonPlus=Po,N.ButtonReset=Oo,N.ButtonSearch=yo,N.ButtonSoftPastelBlue=$o,N.ButtonSoftPastelBlueRounded=Ho,N.ButtonUploadTemplate=Bo,N.ButtonVibrantBlue=Ye,N.ButtonVibrantBlueSend=Yo,N.ButtonVibrantBlueUpload=Lo,N.ButtonWhiteBorderBlue=Ot,N.ButtonWhiteBorderBlueDownloadTemplate=sr,N.ButtonWhiteBorderBlueSendEmail=Zo,N.ButtonWhiteBorderOrange=Ln,N.ButtonWithOptions=rr,N.Canceled=lr,N.CanceledIcon=Fi,N.CheckBox=Fs,N.CheckIcon=qi,N.CheckTicketIcon=En,N.Chip=Ko,N.ChipSection=Qo,N.ChipWithIcon=Xo,N.CleanFiltersIcon=As,N.ClearFilterIcon=Sn,N.ClosedEye=Ns,N.Completed=ar,N.CompletedIcon=Qi,N.CountCard=hl,N.CustomArrowIcon=P1,N.DataEnteredIcon=Zi,N.DataMasterArrow=Ts,N.DataMasterCountryConfiguration=W1,N.DataSection=Nl,N.DateIcon=Di,N.DateRangeIcon=Is,N.DateRangePicker=ml,N.DateRangePickerBasicSelect=Tl,N.DeliveryTabs=ta,N.DesSelectAllIcon=Ni,N.DownloadIconHover=Pn,N.DownloadTemplateIcon=zs,N.DropFile=no,N.EditIcon=Ms,N.EllipseBase=Dn,N.EllipseBlueIcon=Wi,N.EllipseDarkGreenIcon=Ri,N.EllipseGreenIcon=Nn,N.EllipseGreyIcon=Pi,N.EmailIcon=Rs,N.EraserIcon=Tn,N.ExcelIcon=Ss,N.ExcelSvgIcon=Vi,N.ExpandableTable=Fl,N.EyeButton=Vo,N.FileCard=rl,N.FileCardIcon=Rn,N.FileCardMinimized=il,N.FilePreview=el,N.FilterComponent=wl,N.FilterIcon=Ds,N.FilterTable=kl,N.FolderCard=ol,N.FolderCardIcon=In,N.FolderCardMinimized=ll,N.GreyContainer=nl,N.GreyContainerDropdown=sl,N.GreyInput=so,N.GreySelect=P0,N.GreyTextArea=go,N.HeaderItemsComponent=Jl,N.InProcessIcon=B1,N.InProcessingIcon=Ki,N.InTransit=cr,N.InTransitIcon=An,N.Inactive=or,N.InfoActionCard=jl,N.InfoActionCardDownloadTemplate=Cl,N.Input=Xs,N.InputIcon=Mo,N.InputRadio=Ks,N.InputSearch=at,N.InputUpload=mo,N.InputWithButtonSearch=xo,N.InputWithLabel=Do,N.ItalicIcon=ks,N.KeyboardArrowDownOutlinedIconColorCustom=zi,N.Label=aa,N.LastUpdate=Jo,N.Link=ia,N.Loader=to,N.LogTable=Ll,N.MarksIcon=ws,N.MenuIconOption=Li,N.MenuOptions=At,N.MinusIcon=Bi,N.ModalListAplications=Dl,N.MultiSelect=Eo,N.NumberSpinner=W0,N.NumberSpinnerByRange=bo,N.ObservationIcon=Yi,N.Observations=Pl,N.OpenEye=Es,N.Pagination=fl,N.Paragraph=la,N.PlusIcon=$i,N.ProcessFilter=Sl,N.ProductRecallIcon=$1,N.RightArrowIcon=zn,N.RoundedInput=vo,N.SearchIcon=Xi,N.Select=Bn,N.SelectAll=tr,N.SelectAllIcon=Ei,N.SelectMultiple=Fn,N.SelectNested=Qs,N.SelectPaginator=To,N.SelectRadio=jo,N.SelectWithTitle=wo,N.SimpleTap=na,N.SimpleTitle=oa,N.SingleDatePicker=vl,N.State=ul,N.StateBasic=Go,N.StatsIcon=_i,N.Stepper=Wl,N.StepsComponent=zl,N.Switch=ko,N.Table=_l,N.TableActionIcon=Hl,N.TableComponent=Du,N.TableEdit=Vl,N.TableMultipleIcon=ql,N.TableStates=Ul,N.TabsNavigation=ea,N.TemplateTicketConfirm=ca,N.TextArea=Co,N.TicketComponentV2=sa,N.TicketModal=Al,N.TimeComponent=So,N.TimeIcon=Oi,N.TitleWithTooltip=Xt,N.ToStartProcessingIcon=Gi,N.ToggleChip=Hn,N.TooltipTable=Ji,N.TooltipsWhite=Ws,N.TrashIcon=On,N.TriangleIconForNumberSpinnerByRange=Ui,N.UpLoadSvgIcon=Cn,N.UpdateBanner=ss,N.UploadFileIcon=Mn,N.UserIcon=Ps,N.UserReadOnlyIcon=Yt,N.VisualizationModaLogin=Il,N.WaringBanner=S1,N.WarningIcon=Os,N.WarningModal=Rl,N.WindowCheck=Hi,N.XIcon=Ii,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});