ixc-library-portal 1.1.32 → 1.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ixc-library.es.js +200 -197
- package/dist/ixc-library.umd.js +12 -12
- package/package.json +1 -1
package/dist/ixc-library.umd.js
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
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 fs;function ha(){return fs||(fs=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,s=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,u=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,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,z=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function T(q){return typeof q=="string"||typeof q=="function"||q===i||q===u||q===l||q===o||q===p||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===v||q.$$typeof===x||q.$$typeof===a||q.$$typeof===c||q.$$typeof===g||q.$$typeof===j||q.$$typeof===z||q.$$typeof===D||q.$$typeof===h)}function k(q){if(typeof q=="object"&&q!==null){var ue=q.$$typeof;switch(ue){case r:var le=q.type;switch(le){case d:case u:case i:case l:case o:case p:return le;default:var fe=le&&le.$$typeof;switch(fe){case c:case g:case v:case x:case a:return fe;default:return ue}}case s:return ue}}}var w=d,A=u,H=c,G=a,
|
|
16
|
+
*/var fs;function ha(){return fs||(fs=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,s=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,u=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,v=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,z=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function T(q){return typeof q=="string"||typeof q=="function"||q===i||q===u||q===l||q===o||q===p||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===v||q.$$typeof===x||q.$$typeof===a||q.$$typeof===c||q.$$typeof===g||q.$$typeof===j||q.$$typeof===z||q.$$typeof===D||q.$$typeof===h)}function k(q){if(typeof q=="object"&&q!==null){var ue=q.$$typeof;switch(ue){case r:var le=q.type;switch(le){case d:case u:case i:case l:case o:case p:return le;default:var fe=le&&le.$$typeof;switch(fe){case c:case g:case v:case x:case a:return fe;default:return ue}}case s:return ue}}}var w=d,A=u,H=c,G=a,V=r,f=g,B=i,F=v,Z=x,Q=s,K=l,te=o,U=p,_=!1;function I(q){return _||(_=!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)||k(q)===d}function y(q){return k(q)===u}function N(q){return k(q)===c}function P(q){return k(q)===a}function S(q){return typeof q=="object"&&q!==null&&q.$$typeof===r}function O(q){return k(q)===g}function E(q){return k(q)===i}function L(q){return k(q)===v}function W(q){return k(q)===x}function R(q){return k(q)===s}function X(q){return k(q)===l}function J(q){return k(q)===o}function se(q){return k(q)===p}xe.AsyncMode=w,xe.ConcurrentMode=A,xe.ContextConsumer=H,xe.ContextProvider=G,xe.Element=V,xe.ForwardRef=f,xe.Fragment=B,xe.Lazy=F,xe.Memo=Z,xe.Portal=Q,xe.Profiler=K,xe.StrictMode=te,xe.Suspense=U,xe.isAsyncMode=I,xe.isConcurrentMode=y,xe.isContextConsumer=N,xe.isContextProvider=P,xe.isElement=S,xe.isForwardRef=O,xe.isFragment=E,xe.isLazy=L,xe.isMemo=W,xe.isPortal=R,xe.isProfiler=X,xe.isStrictMode=J,xe.isSuspense=se,xe.isValidElementType=T,xe.typeOf=k}()),xe}var ps;function gs(){return ps||(ps=1,process.env.NODE_ENV==="production"?en.exports=da():en.exports=ha()),en.exports}/*
|
|
17
17
|
object-assign
|
|
18
18
|
(c) Sindre Sorhus
|
|
19
19
|
@license MIT
|
|
20
|
-
*/var Wn,ms;function ua(){if(ms)return Wn;ms=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=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 u={};return"abcdefghijklmnopqrst".split("").forEach(function(g){u[g]=g}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wn=o()?Object.assign:function(l,a){for(var c,d=i(l),u,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)r.call(c,p)&&(d[p]=c[p]);if(e){u=e(c);for(var m=0;m<u.length;m++)s.call(c,u[m])&&(d[u[m]]=c[u[m]])}}return d},Wn}var $n,ys;function _n(){if(ys)return $n;ys=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $n=e,$n}var Bn,xs;function vs(){return xs||(xs=1,Bn=Function.call.bind(Object.prototype.hasOwnProperty)),Bn}var Ln,bs;function fa(){if(bs)return Ln;bs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_n(),s={},i=vs();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,u){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,r)}catch(v){p=v}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 s)){s[p.message]=!0;var x=u?u():"";e("Failed "+c+" type: "+p.message+(x??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(s={})},Ln=o,Ln}var Fn,js;function pa(){if(js)return Fn;js=1;var e=gs(),r=ua(),s=_n(),i=vs(),o=fa(),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 Fn=function(c,d){var u=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(y){var N=y&&(u&&y[u]||y[g]);if(typeof N=="function")return N}var m="<<anonymous>>",x={array:z("array"),bigint:z("bigint"),bool:z("boolean"),func:z("function"),number:z("number"),object:z("object"),string:z("string"),symbol:z("symbol"),any:D(),arrayOf:T,element:k(),elementType:w(),instanceOf:A,node:f(),objectOf:G,oneOf:H,oneOfType:
|
|
20
|
+
*/var Wn,ms;function ua(){if(ms)return Wn;ms=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=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 u={};return"abcdefghijklmnopqrst".split("").forEach(function(g){u[g]=g}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wn=o()?Object.assign:function(l,a){for(var c,d=i(l),u,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)r.call(c,p)&&(d[p]=c[p]);if(e){u=e(c);for(var m=0;m<u.length;m++)s.call(c,u[m])&&(d[u[m]]=c[u[m]])}}return d},Wn}var $n,ys;function _n(){if(ys)return $n;ys=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $n=e,$n}var Bn,xs;function vs(){return xs||(xs=1,Bn=Function.call.bind(Object.prototype.hasOwnProperty)),Bn}var Ln,bs;function fa(){if(bs)return Ln;bs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_n(),s={},i=vs();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,u){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,r)}catch(v){p=v}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 s)){s[p.message]=!0;var x=u?u():"";e("Failed "+c+" type: "+p.message+(x??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(s={})},Ln=o,Ln}var Fn,js;function pa(){if(js)return Fn;js=1;var e=gs(),r=ua(),s=_n(),i=vs(),o=fa(),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 Fn=function(c,d){var u=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(y){var N=y&&(u&&y[u]||y[g]);if(typeof N=="function")return N}var m="<<anonymous>>",x={array:z("array"),bigint:z("bigint"),bool:z("boolean"),func:z("function"),number:z("number"),object:z("object"),string:z("string"),symbol:z("symbol"),any:D(),arrayOf:T,element:k(),elementType:w(),instanceOf:A,node:f(),objectOf:G,oneOf:H,oneOfType:V,shape:F,exact:Z};function v(y,N){return y===N?y!==0||1/y===1/N:y!==y&&N!==N}function h(y,N){this.message=y,this.data=N&&typeof N=="object"?N:{},this.stack=""}h.prototype=Error.prototype;function j(y){if(process.env.NODE_ENV!=="production")var N={},P=0;function S(E,L,W,R,X,J,se){if(R=R||m,J=J||W,se!==s){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 ue=R+":"+W;!N[ue]&&P<3&&(l("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+R+"`. 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."),N[ue]=!0,P++)}}return L[W]==null?E?L[W]===null?new h("The "+X+" `"+J+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new h("The "+X+" `"+J+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:y(L,W,R,X,J)}var O=S.bind(null,!1);return O.isRequired=S.bind(null,!0),O}function z(y){function N(P,S,O,E,L,W){var R=P[S],X=te(R);if(X!==y){var J=U(R);return new h("Invalid "+E+" `"+L+"` of type "+("`"+J+"` supplied to `"+O+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return j(N)}function D(){return j(a)}function T(y){function N(P,S,O,E,L){if(typeof y!="function")return new h("Property `"+L+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var W=P[S];if(!Array.isArray(W)){var R=te(W);return new h("Invalid "+E+" `"+L+"` of type "+("`"+R+"` supplied to `"+O+"`, expected an array."))}for(var X=0;X<W.length;X++){var J=y(W,X,O,E,L+"["+X+"]",s);if(J instanceof Error)return J}return null}return j(N)}function k(){function y(N,P,S,O,E){var L=N[P];if(!c(L)){var W=te(L);return new h("Invalid "+O+" `"+E+"` of type "+("`"+W+"` supplied to `"+S+"`, expected a single ReactElement."))}return null}return j(y)}function w(){function y(N,P,S,O,E){var L=N[P];if(!e.isValidElementType(L)){var W=te(L);return new h("Invalid "+O+" `"+E+"` of type "+("`"+W+"` supplied to `"+S+"`, expected a single ReactElement type."))}return null}return j(y)}function A(y){function N(P,S,O,E,L){if(!(P[S]instanceof y)){var W=y.name||m,R=I(P[S]);return new h("Invalid "+E+" `"+L+"` of type "+("`"+R+"` supplied to `"+O+"`, expected ")+("instance of `"+W+"`."))}return null}return j(N)}function H(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 N(P,S,O,E,L){for(var W=P[S],R=0;R<y.length;R++)if(v(W,y[R]))return null;var X=JSON.stringify(y,function(se,q){var ue=U(q);return ue==="symbol"?String(q):q});return new h("Invalid "+E+" `"+L+"` of value `"+String(W)+"` "+("supplied to `"+O+"`, expected one of "+X+"."))}return j(N)}function G(y){function N(P,S,O,E,L){if(typeof y!="function")return new h("Property `"+L+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var W=P[S],R=te(W);if(R!=="object")return new h("Invalid "+E+" `"+L+"` of type "+("`"+R+"` supplied to `"+O+"`, expected an object."));for(var X in W)if(i(W,X)){var J=y(W,X,O,E,L+"."+X,s);if(J instanceof Error)return J}return null}return j(N)}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 N=0;N<y.length;N++){var P=y[N];if(typeof P!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(P)+" at index "+N+"."),a}function S(O,E,L,W,R){for(var X=[],J=0;J<y.length;J++){var se=y[J],q=se(O,E,L,W,R,s);if(q==null)return null;q.data&&i(q.data,"expectedType")&&X.push(q.data.expectedType)}var ue=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new h("Invalid "+W+" `"+R+"` supplied to "+("`"+L+"`"+ue+"."))}return j(S)}function f(){function y(N,P,S,O,E){return Q(N[P])?null:new h("Invalid "+O+" `"+E+"` supplied to "+("`"+S+"`, expected a ReactNode."))}return j(y)}function B(y,N,P,S,O){return new h((y||"React class")+": "+N+" type `"+P+"."+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function F(y){function N(P,S,O,E,L){var W=P[S],R=te(W);if(R!=="object")return new h("Invalid "+E+" `"+L+"` of type `"+R+"` "+("supplied to `"+O+"`, expected `object`."));for(var X in y){var J=y[X];if(typeof J!="function")return B(O,E,L,X,U(J));var se=J(W,X,O,E,L+"."+X,s);if(se)return se}return null}return j(N)}function Z(y){function N(P,S,O,E,L){var W=P[S],R=te(W);if(R!=="object")return new h("Invalid "+E+" `"+L+"` of type `"+R+"` "+("supplied to `"+O+"`, expected `object`."));var X=r({},P[S],y);for(var J in X){var se=y[J];if(i(y,J)&&typeof se!="function")return B(O,E,L,J,U(se));if(!se)return new h("Invalid "+E+" `"+L+"` key `"+J+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(P[S],null," ")+`
|
|
21
21
|
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var q=se(W,J,O,E,L+"."+J,s);if(q)return q}return null}return j(N)}function Q(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(Q);if(y===null||c(y))return!0;var N=p(y);if(N){var P=N.call(y),S;if(N!==y.entries){for(;!(S=P.next()).done;)if(!Q(S.value))return!1}else for(;!(S=P.next()).done;){var O=S.value;if(O&&!Q(O[1]))return!1}}else return!1;return!0;default:return!1}}function K(y,N){return y==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function te(y){var N=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":K(N,y)?"symbol":N}function U(y){if(typeof y>"u"||y===null)return""+y;var N=te(y);if(N==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return N}function _(y){var N=U(y);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function I(y){return!y.constructor||!y.constructor.name?m:y.constructor.name}return x.checkPropTypes=o,x.resetWarningCache=o.resetWarningCache,x.PropTypes=x,x},Fn}var Hn,ws;function ga(){if(ws)return Hn;ws=1;var e=_n();function r(){}function s(){}return s.resetWarningCache=r,Hn=function(){function i(a,c,d,u,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:s,resetWarningCache:r};return l.PropTypes=l,l},Hn}if(process.env.NODE_ENV!=="production"){var ma=gs(),ya=!0;Pn.exports=pa()(ma.isElement,ya)}else Pn.exports=ga()();var xa=Pn.exports;const n=ca(xa);var Vn={exports:{}},It={};/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-runtime.production.min.js
|
|
@@ -34,15 +34,15 @@ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var q=se(W,J,O,E,L+"."+J
|
|
|
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 Cs;function ba(){return Cs||(Cs=1,process.env.NODE_ENV!=="production"&&function(){var e=C,r=Symbol.for("react.element"),s=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"),u=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"),v=Symbol.iterator,h="@@iterator";function j(b){if(b===null||typeof b!="object")return null;var Y=v&&b[v]||b[h];return typeof Y=="function"?Y:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(b){{for(var Y=arguments.length,ne=new Array(Y>1?Y-1:0),he=1;he<Y;he++)ne[he-1]=arguments[he];T("error",b,ne)}}function T(b,Y,ne){{var he=z.ReactDebugCurrentFrame,ve=he.getStackAddendum();ve!==""&&(Y+="%s",ne=ne.concat([ve]));var Te=ne.map(function(ge){return String(ge)});Te.unshift("Warning: "+Y),Function.prototype.apply.call(console[b],console,Te)}}var k=!1,w=!1,A=!1,H=!1,G=!1,
|
|
37
|
+
*/var Cs;function ba(){return Cs||(Cs=1,process.env.NODE_ENV!=="production"&&function(){var e=C,r=Symbol.for("react.element"),s=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"),u=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"),v=Symbol.iterator,h="@@iterator";function j(b){if(b===null||typeof b!="object")return null;var Y=v&&b[v]||b[h];return typeof Y=="function"?Y:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(b){{for(var Y=arguments.length,ne=new Array(Y>1?Y-1:0),he=1;he<Y;he++)ne[he-1]=arguments[he];T("error",b,ne)}}function T(b,Y,ne){{var he=z.ReactDebugCurrentFrame,ve=he.getStackAddendum();ve!==""&&(Y+="%s",ne=ne.concat([ve]));var Te=ne.map(function(ge){return String(ge)});Te.unshift("Warning: "+Y),Function.prototype.apply.call(console[b],console,Te)}}var k=!1,w=!1,A=!1,H=!1,G=!1,V;V=Symbol.for("react.module.reference");function f(b){return!!(typeof b=="string"||typeof b=="function"||b===i||b===l||G||b===o||b===u||b===g||H||b===x||k||w||A||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===p||b.$$typeof===a||b.$$typeof===c||b.$$typeof===d||b.$$typeof===V||b.getModuleId!==void 0))}function B(b,Y,ne){var he=b.displayName;if(he)return he;var ve=Y.displayName||Y.name||"";return ve!==""?ne+"("+ve+")":ne}function F(b){return b.displayName||"Context"}function Z(b){if(b==null)return null;if(typeof b.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case i:return"Fragment";case s:return"Portal";case l:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case g:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case c:var Y=b;return F(Y)+".Consumer";case a:var ne=b;return F(ne._context)+".Provider";case d:return B(b,b.render,"ForwardRef");case p:var he=b.displayName||null;return he!==null?he:Z(b.type)||"Memo";case m:{var ve=b,Te=ve._payload,ge=ve._init;try{return Z(ge(Te))}catch{return null}}}return null}var Q=Object.assign,K=0,te,U,_,I,y,N,P;function S(){}S.__reactDisabledLog=!0;function O(){{if(K===0){te=console.log,U=console.info,_=console.warn,I=console.error,y=console.group,N=console.groupCollapsed,P=console.groupEnd;var b={configurable:!0,enumerable:!0,value:S,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}K++}}function E(){{if(K--,K===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},b,{value:te}),info:Q({},b,{value:U}),warn:Q({},b,{value:_}),error:Q({},b,{value:I}),group:Q({},b,{value:y}),groupCollapsed:Q({},b,{value:N}),groupEnd:Q({},b,{value:P})})}K<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=z.ReactCurrentDispatcher,W;function R(b,Y,ne){{if(W===void 0)try{throw Error()}catch(ve){var he=ve.stack.trim().match(/\n( *(at )?)/);W=he&&he[1]||""}return`
|
|
38
38
|
`+W+b}}var X=!1,J;{var se=typeof WeakMap=="function"?WeakMap:Map;J=new se}function q(b,Y){if(!b||X)return"";{var ne=J.get(b);if(ne!==void 0)return ne}var he;X=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Te;Te=L.current,L.current=null,O();try{if(Y){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(He){he=He}Reflect.construct(b,[],ge)}else{try{ge.call()}catch(He){he=He}b.call(ge.prototype)}}else{try{throw Error()}catch(He){he=He}b()}}catch(He){if(He&&he&&typeof He.stack=="string"){for(var pe=He.stack.split(`
|
|
39
39
|
`),Le=he.stack.split(`
|
|
40
40
|
`),Pe=pe.length-1,$e=Le.length-1;Pe>=1&&$e>=0&&pe[Pe]!==Le[$e];)$e--;for(;Pe>=1&&$e>=0;Pe--,$e--)if(pe[Pe]!==Le[$e]){if(Pe!==1||$e!==1)do if(Pe--,$e--,$e<0||pe[Pe]!==Le[$e]){var Xe=`
|
|
41
|
-
`+pe[Pe].replace(" at new "," at ");return b.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",b.displayName)),typeof b=="function"&&J.set(b,Xe),Xe}while(Pe>=1&&$e>=0);break}}}finally{X=!1,L.current=Te,E(),Error.prepareStackTrace=ve}var Ot=b?b.displayName||b.name:"",wt=Ot?R(Ot):"";return typeof b=="function"&&J.set(b,wt),wt}function ue(b,Y,ne){return q(b,!1)}function le(b){var Y=b.prototype;return!!(Y&&Y.isReactComponent)}function fe(b,Y,ne){if(b==null)return"";if(typeof b=="function")return q(b,le(b));if(typeof b=="string")return R(b);switch(b){case u:return R("Suspense");case g:return R("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case d:return ue(b.render);case p:return fe(b.type,Y,ne);case m:{var he=b,ve=he._payload,Te=he._init;try{return fe(Te(ve),Y,ne)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,we={},Re=z.ReactDebugCurrentFrame;function ce(b){if(b){var Y=b._owner,ne=fe(b.type,b._source,Y?Y.type:null);Re.setExtraStackFrame(ne)}else Re.setExtraStackFrame(null)}function oe(b,Y,ne,he,ve){{var Te=Function.call.bind(Be);for(var ge in b)if(Te(b,ge)){var pe=void 0;try{if(typeof b[ge]!="function"){var Le=Error((he||"React class")+": "+ne+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}pe=b[ge](Y,ge,he,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pe){pe=Pe}pe&&!(pe 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).",he||"React class",ne,ge,typeof pe),ce(null)),pe instanceof Error&&!(pe.message in we)&&(we[pe.message]=!0,ce(ve),D("Failed %s type: %s",ne,pe.message),ce(null))}}}var de=Array.isArray;function ee(b){return de(b)}function ie(b){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,ne=Y&&b[Symbol.toStringTag]||b.constructor.name||"Object";return ne}}function Me(b){try{return Ee(b),!1}catch{return!0}}function Ee(b){return""+b}function Ne(b){if(Me(b))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(b)),Ee(b)}var ae=z.ReactCurrentOwner,Se={key:!0,ref:!0,__self:!0,__source:!0},Ye,nt,jt;jt={};function ls(b){if(Be.call(b,"ref")){var Y=Object.getOwnPropertyDescriptor(b,"ref").get;if(Y&&Y.isReactWarning)return!1}return b.ref!==void 0}function In(b){if(Be.call(b,"key")){var Y=Object.getOwnPropertyDescriptor(b,"key").get;if(Y&&Y.isReactWarning)return!1}return b.key!==void 0}function uh(b,Y){if(typeof b.ref=="string"&&ae.current&&Y&&ae.current.stateNode!==Y){var ne=
|
|
41
|
+
`+pe[Pe].replace(" at new "," at ");return b.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",b.displayName)),typeof b=="function"&&J.set(b,Xe),Xe}while(Pe>=1&&$e>=0);break}}}finally{X=!1,L.current=Te,E(),Error.prepareStackTrace=ve}var Ot=b?b.displayName||b.name:"",wt=Ot?R(Ot):"";return typeof b=="function"&&J.set(b,wt),wt}function ue(b,Y,ne){return q(b,!1)}function le(b){var Y=b.prototype;return!!(Y&&Y.isReactComponent)}function fe(b,Y,ne){if(b==null)return"";if(typeof b=="function")return q(b,le(b));if(typeof b=="string")return R(b);switch(b){case u:return R("Suspense");case g:return R("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case d:return ue(b.render);case p:return fe(b.type,Y,ne);case m:{var he=b,ve=he._payload,Te=he._init;try{return fe(Te(ve),Y,ne)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,we={},Re=z.ReactDebugCurrentFrame;function ce(b){if(b){var Y=b._owner,ne=fe(b.type,b._source,Y?Y.type:null);Re.setExtraStackFrame(ne)}else Re.setExtraStackFrame(null)}function oe(b,Y,ne,he,ve){{var Te=Function.call.bind(Be);for(var ge in b)if(Te(b,ge)){var pe=void 0;try{if(typeof b[ge]!="function"){var Le=Error((he||"React class")+": "+ne+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}pe=b[ge](Y,ge,he,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pe){pe=Pe}pe&&!(pe 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).",he||"React class",ne,ge,typeof pe),ce(null)),pe instanceof Error&&!(pe.message in we)&&(we[pe.message]=!0,ce(ve),D("Failed %s type: %s",ne,pe.message),ce(null))}}}var de=Array.isArray;function ee(b){return de(b)}function ie(b){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,ne=Y&&b[Symbol.toStringTag]||b.constructor.name||"Object";return ne}}function Me(b){try{return Ee(b),!1}catch{return!0}}function Ee(b){return""+b}function Ne(b){if(Me(b))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(b)),Ee(b)}var ae=z.ReactCurrentOwner,Se={key:!0,ref:!0,__self:!0,__source:!0},Ye,nt,jt;jt={};function ls(b){if(Be.call(b,"ref")){var Y=Object.getOwnPropertyDescriptor(b,"ref").get;if(Y&&Y.isReactWarning)return!1}return b.ref!==void 0}function In(b){if(Be.call(b,"key")){var Y=Object.getOwnPropertyDescriptor(b,"key").get;if(Y&&Y.isReactWarning)return!1}return b.key!==void 0}function uh(b,Y){if(typeof b.ref=="string"&&ae.current&&Y&&ae.current.stateNode!==Y){var ne=Z(ae.current.type);jt[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',Z(ae.current.type),b.ref),jt[ne]=!0)}}function fh(b,Y){{var ne=function(){Ye||(Ye=!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)",Y))};ne.isReactWarning=!0,Object.defineProperty(b,"key",{get:ne,configurable:!0})}}function ph(b,Y){{var ne=function(){nt||(nt=!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)",Y))};ne.isReactWarning=!0,Object.defineProperty(b,"ref",{get:ne,configurable:!0})}}var gh=function(b,Y,ne,he,ve,Te,ge){var pe={$$typeof:r,type:b,key:Y,ref:ne,props:ge,_owner:Te};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function mh(b,Y,ne,he,ve){{var Te,ge={},pe=null,Le=null;ne!==void 0&&(Ne(ne),pe=""+ne),In(Y)&&(Ne(Y.key),pe=""+Y.key),ls(Y)&&(Le=Y.ref,uh(Y,ve));for(Te in Y)Be.call(Y,Te)&&!Se.hasOwnProperty(Te)&&(ge[Te]=Y[Te]);if(b&&b.defaultProps){var Pe=b.defaultProps;for(Te in Pe)ge[Te]===void 0&&(ge[Te]=Pe[Te])}if(pe||Le){var $e=typeof b=="function"?b.displayName||b.name||"Unknown":b;pe&&fh(ge,$e),Le&&ph(ge,$e)}return gh(b,pe,Le,ve,he,ae.current,ge)}}var as=z.ReactCurrentOwner,Ql=z.ReactDebugCurrentFrame;function At(b){if(b){var Y=b._owner,ne=fe(b.type,b._source,Y?Y.type:null);Ql.setExtraStackFrame(ne)}else Ql.setExtraStackFrame(null)}var cs;cs=!1;function ds(b){return typeof b=="object"&&b!==null&&b.$$typeof===r}function ea(){{if(as.current){var b=Z(as.current.type);if(b)return`
|
|
42
42
|
|
|
43
43
|
Check the render method of \``+b+"`."}return""}}function yh(b){return""}var ta={};function xh(b){{var Y=ea();if(!Y){var ne=typeof b=="string"?b:b.displayName||b.name;ne&&(Y=`
|
|
44
44
|
|
|
45
|
-
Check the top-level render call using <`+ne+">.")}return Y}}function na(b,Y){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var ne=xh(Y);if(ta[ne])return;ta[ne]=!0;var he="";b&&b._owner&&b._owner!==as.current&&(he=" It was passed a child from "+
|
|
45
|
+
Check the top-level render call using <`+ne+">.")}return Y}}function na(b,Y){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var ne=xh(Y);if(ta[ne])return;ta[ne]=!0;var he="";b&&b._owner&&b._owner!==as.current&&(he=" It was passed a child from "+Z(b._owner.type)+"."),At(b),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,he),At(null)}}function ra(b,Y){{if(typeof b!="object")return;if(ee(b))for(var ne=0;ne<b.length;ne++){var he=b[ne];ds(he)&&na(he,Y)}else if(ds(b))b._store&&(b._store.validated=!0);else if(b){var ve=j(b);if(typeof ve=="function"&&ve!==b.entries)for(var Te=ve.call(b),ge;!(ge=Te.next()).done;)ds(ge.value)&&na(ge.value,Y)}}}function vh(b){{var Y=b.type;if(Y==null||typeof Y=="string")return;var ne;if(typeof Y=="function")ne=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===d||Y.$$typeof===p))ne=Y.propTypes;else return;if(ne){var he=Z(Y);oe(ne,b.props,"prop",he,b)}else if(Y.PropTypes!==void 0&&!cs){cs=!0;var ve=Z(Y);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function bh(b){{for(var Y=Object.keys(b.props),ne=0;ne<Y.length;ne++){var he=Y[ne];if(he!=="children"&&he!=="key"){At(b),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",he),At(null);break}}b.ref!==null&&(At(b),D("Invalid attribute `ref` supplied to `React.Fragment`."),At(null))}}var sa={};function ia(b,Y,ne,he,ve,Te){{var ge=f(b);if(!ge){var pe="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(pe+=" 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 Le=yh();Le?pe+=Le:pe+=ea();var Pe;b===null?Pe="null":ee(b)?Pe="array":b!==void 0&&b.$$typeof===r?(Pe="<"+(Z(b.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):Pe=typeof b,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pe,pe)}var $e=mh(b,Y,ne,ve,Te);if($e==null)return $e;if(ge){var Xe=Y.children;if(Xe!==void 0)if(he)if(ee(Xe)){for(var Ot=0;Ot<Xe.length;Ot++)ra(Xe[Ot],b);Object.freeze&&Object.freeze(Xe)}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 ra(Xe,b)}if(Be.call(Y,"key")){var wt=Z(b),He=Object.keys(Y).filter(function(Th){return Th!=="key"}),hs=He.length>0?"{key: someKey, "+He.join(": ..., ")+": ...}":"{key: someKey}";if(!sa[wt+hs]){var Sh=He.length>0?"{"+He.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:
|
|
@@ -93,9 +93,9 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:at(18,`(${r})`));return
|
|
|
93
93
|
* This source code is licensed under the MIT license found in the
|
|
94
94
|
* LICENSE file in the root directory of this source tree.
|
|
95
95
|
*/function ed(e,r){const s=oa(e,r);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(`
|
|
96
|
-
`)):i.some(l=>l===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),s(...i)}:s}function td(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Gs=[];function mt(e){return Gs[0]=e,Qc(Gs)}const nd=e=>{const r=Object.keys(e).map(s=>({key:s,val:e[s]}))||[];return r.sort((s,i)=>s.val-i.val),r.reduce((s,i)=>({...s,[i.key]:i.val}),{})};function rd(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:s="px",step:i=5,...o}=e,l=nd(r),a=Object.keys(l);function c(m){return`@media (min-width:${typeof r[m]=="number"?r[m]:m}${s})`}function d(m){return`@media (max-width:${(typeof r[m]=="number"?r[m]:m)-i/100}${s})`}function u(m,x){const v=a.indexOf(x);return`@media (min-width:${typeof r[m]=="number"?r[m]:m}${s}) and (max-width:${(v!==-1&&typeof r[a[v]]=="number"?r[a[v]]:x)-i/100}${s})`}function g(m){return a.indexOf(m)+1<a.length?u(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]):u(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:l,up:c,down:d,between:u,only:g,not:p,unit:s,...o}}const sd={borderRadius:4};function Ks(e=8,r=Kn({spacing:e})){if(e.mui)return e;const s=(...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=r(l);return typeof a=="number"?`${a}px`:a}).join(" "));return s.mui=!0,s}function id(e,r){var i;const s=this;if(s.vars){if(!((i=s.colorSchemes)!=null&&i[e])||typeof s.getColorSchemeSelector!="function")return{};let o=s.getColorSchemeSelector(e);return o==="&"?r:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:r})}return s.palette.mode===e?r:{}}function Xs(e={},...r){const{breakpoints:s={},palette:i={},spacing:o,shape:l={},...a}=e,c=rd(s),d=Ks(o);let u=Ve({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...sd,...l}},a);return u=ec(u),u.applyStyles=id,u=r.reduce((g,p)=>Ve(g,p),u),u.unstable_sxConfig={..._t,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(p){return Ct({sx:p,theme:this})},u}function Js(e){const{variants:r,...s}=e,i={variants:r,style:mt(s),isProcessed:!0};return i.style===s||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=mt(o.style))}),i}const od=Xs();function Qn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yt(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function ld(e){return e?(r,s)=>s[e]:null}function ad(e,r,s){e.theme=ud(e.theme)?s:e.theme[r]||e.theme}function xn(e,r,s){const i=typeof r=="function"?r(e):r;if(Array.isArray(i))return i.flatMap(o=>xn(e,o,s));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=s?yt(i.style,s):i.style;else{const{variants:l,...a}=i;o=s?yt(mt(a),s):a}return Qs(e,i.variants,[o],s)}return i!=null&&i.isProcessed?s?yt(mt(i.style),s):i.style:s?yt(mt(i),s):i}function Qs(e,r,s=[],i=void 0){var l;let o;e:for(let a=0;a<r.length;a+=1){const c=r[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}),s.push(i?yt(mt(c.style(o)),i):c.style(o))):s.push(i?yt(mt(c.style),i):c.style)}return s}function cd(e={}){const{themeId:r,defaultTheme:s=od,rootShouldForwardProp:i=Qn,slotShouldForwardProp:o=Qn}=e;function l(c){ad(c,r,s)}return(c,d={})=>{td(c,A=>A.filter(H=>H!==Ct));const{name:u,slot:g,skipVariantsResolver:p,skipSx:m,overridesResolver:x=ld(ei(g)),...v}=d,h=u&&u.startsWith("Mui")||g?"components":"custom",j=p!==void 0?p:g&&g!=="Root"&&g!=="root"||!1,z=m||!1;let D=Qn;g==="Root"||g==="root"?D=i:g?D=o:fd(c)&&(D=void 0);const T=ed(c,{shouldForwardProp:D,label:hd(u,g),...v}),k=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(G){return xn(G,A,G.theme.modularCssLayers?h:void 0)};if(et(A)){const H=Js(A);return function(
|
|
96
|
+
`)):i.some(l=>l===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),s(...i)}:s}function td(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Gs=[];function mt(e){return Gs[0]=e,Qc(Gs)}const nd=e=>{const r=Object.keys(e).map(s=>({key:s,val:e[s]}))||[];return r.sort((s,i)=>s.val-i.val),r.reduce((s,i)=>({...s,[i.key]:i.val}),{})};function rd(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:s="px",step:i=5,...o}=e,l=nd(r),a=Object.keys(l);function c(m){return`@media (min-width:${typeof r[m]=="number"?r[m]:m}${s})`}function d(m){return`@media (max-width:${(typeof r[m]=="number"?r[m]:m)-i/100}${s})`}function u(m,x){const v=a.indexOf(x);return`@media (min-width:${typeof r[m]=="number"?r[m]:m}${s}) and (max-width:${(v!==-1&&typeof r[a[v]]=="number"?r[a[v]]:x)-i/100}${s})`}function g(m){return a.indexOf(m)+1<a.length?u(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]):u(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:l,up:c,down:d,between:u,only:g,not:p,unit:s,...o}}const sd={borderRadius:4};function Ks(e=8,r=Kn({spacing:e})){if(e.mui)return e;const s=(...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=r(l);return typeof a=="number"?`${a}px`:a}).join(" "));return s.mui=!0,s}function id(e,r){var i;const s=this;if(s.vars){if(!((i=s.colorSchemes)!=null&&i[e])||typeof s.getColorSchemeSelector!="function")return{};let o=s.getColorSchemeSelector(e);return o==="&"?r:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:r})}return s.palette.mode===e?r:{}}function Xs(e={},...r){const{breakpoints:s={},palette:i={},spacing:o,shape:l={},...a}=e,c=rd(s),d=Ks(o);let u=Ve({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...sd,...l}},a);return u=ec(u),u.applyStyles=id,u=r.reduce((g,p)=>Ve(g,p),u),u.unstable_sxConfig={..._t,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(p){return Ct({sx:p,theme:this})},u}function Js(e){const{variants:r,...s}=e,i={variants:r,style:mt(s),isProcessed:!0};return i.style===s||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=mt(o.style))}),i}const od=Xs();function Qn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yt(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function ld(e){return e?(r,s)=>s[e]:null}function ad(e,r,s){e.theme=ud(e.theme)?s:e.theme[r]||e.theme}function xn(e,r,s){const i=typeof r=="function"?r(e):r;if(Array.isArray(i))return i.flatMap(o=>xn(e,o,s));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=s?yt(i.style,s):i.style;else{const{variants:l,...a}=i;o=s?yt(mt(a),s):a}return Qs(e,i.variants,[o],s)}return i!=null&&i.isProcessed?s?yt(mt(i.style),s):i.style:s?yt(mt(i),s):i}function Qs(e,r,s=[],i=void 0){var l;let o;e:for(let a=0;a<r.length;a+=1){const c=r[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}),s.push(i?yt(mt(c.style(o)),i):c.style(o))):s.push(i?yt(mt(c.style),i):c.style)}return s}function cd(e={}){const{themeId:r,defaultTheme:s=od,rootShouldForwardProp:i=Qn,slotShouldForwardProp:o=Qn}=e;function l(c){ad(c,r,s)}return(c,d={})=>{td(c,A=>A.filter(H=>H!==Ct));const{name:u,slot:g,skipVariantsResolver:p,skipSx:m,overridesResolver:x=ld(ei(g)),...v}=d,h=u&&u.startsWith("Mui")||g?"components":"custom",j=p!==void 0?p:g&&g!=="Root"&&g!=="root"||!1,z=m||!1;let D=Qn;g==="Root"||g==="root"?D=i:g?D=o:fd(c)&&(D=void 0);const T=ed(c,{shouldForwardProp:D,label:hd(u,g),...v}),k=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(G){return xn(G,A,G.theme.modularCssLayers?h:void 0)};if(et(A)){const H=Js(A);return function(V){return H.variants?xn(V,H,V.theme.modularCssLayers?h:void 0):V.theme.modularCssLayers?yt(H.style,h):H.style}}return A},w=(...A)=>{const H=[],G=A.map(k),V=[];if(H.push(l),u&&x&&V.push(function(Z){var U,_;const K=(_=(U=Z.theme.components)==null?void 0:U[u])==null?void 0:_.styleOverrides;if(!K)return null;const te={};for(const I in K)te[I]=xn(Z,K[I],Z.theme.modularCssLayers?"theme":void 0);return x(Z,te)}),u&&!j&&V.push(function(Z){var te,U;const Q=Z.theme,K=(U=(te=Q==null?void 0:Q.components)==null?void 0:te[u])==null?void 0:U.variants;return K?Qs(Z,K,[],Z.theme.modularCssLayers?"theme":void 0):null}),z||V.push(Ct),Array.isArray(G[0])){const F=G.shift(),Z=new Array(H.length).fill(""),Q=new Array(V.length).fill("");let K;K=[...Z,...F,...Q],K.raw=[...Z,...F.raw,...Q],H.unshift(K)}const f=[...H,...G,...V],B=T(...f);return c.muiName&&(B.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(B.displayName=dd(u,g,c)),B};return T.withConfig&&(w.withConfig=T.withConfig),w}}function dd(e,r,s){return e?`${e}${Oe(r||"")}`:`Styled(${Wa(s)})`}function hd(e,r){let s;return process.env.NODE_ENV!=="production"&&e&&(s=`${e}-${ei(r||"Root")}`),s}function ud(e){for(const r in e)return!1;return!0}function fd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ei(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function er(e,r=0,s=1){return process.env.NODE_ENV!=="production"&&(e<r||e>s)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${s}].`),Ua(e,r,s)}function pd(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let s=e.match(r);return s&&s[0].length===1&&(s=s.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.`),s?`rgb${s.length===4?"a":""}(${s.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function ut(e){if(e.type)return e;if(e.charAt(0)==="#")return ut(pd(e));const r=e.indexOf("("),s=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
97
97
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:at(9,e));let i=e.substring(r+1,e.length-1),o;if(s==="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.
|
|
98
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:at(10,o))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:s,values:i,colorSpace:o}}const gd=e=>{const r=ut(e);return r.values.slice(0,3).map((s,i)=>r.type.includes("hsl")&&i!==0?`${s}%`:s).join(" ")},Bt=(e,r)=>{try{return gd(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function vn(e){const{type:r,colorSpace:s}=e;let{values:i}=e;return r.includes("rgb")?i=i.map((o,l)=>l<3?parseInt(o,10):o):r.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),r.includes("color")?i=`${s} ${i.join(" ")}`:i=`${i.join(", ")}`,`${r}(${i})`}function ti(e){e=ut(e);const{values:r}=e,s=r[0],i=r[1]/100,o=r[2]/100,l=i*Math.min(o,1-o),a=(u,g=(u+s/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(r[3])),vn({type:c,values:d})}function tr(e){e=ut(e);let r=e.type==="hsl"||e.type==="hsla"?ut(ti(e)).values:e.values;return r=r.map(s=>(e.type!=="color"&&(s/=255),s<=.03928?s/12.92:((s+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function ni(e,r){const s=tr(e),i=tr(r);return(Math.max(s,i)+.05)/(Math.min(s,i)+.05)}function Lt(e,r){return e=ut(e),r=er(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,vn(e)}function bn(e,r,s){try{return Lt(e,r)}catch{return e}}function nr(e,r){if(e=ut(e),r=er(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let s=0;s<3;s+=1)e.values[s]*=1-r;return vn(e)}function ke(e,r,s){try{return nr(e,r)}catch{return e}}function rr(e,r){if(e=ut(e),r=er(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let s=0;s<3;s+=1)e.values[s]+=(255-e.values[s])*r;else if(e.type.includes("color"))for(let s=0;s<3;s+=1)e.values[s]+=(1-e.values[s])*r;return vn(e)}function Ce(e,r,s){try{return rr(e,r)}catch{return e}}function md(e,r=.15){return tr(e)>.5?nr(e,r):rr(e,r)}function jn(e,r,s){try{return md(e,r)}catch{return e}}const yd=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function xd(e){const{theme:r,name:s,props:i}=e;if(!r||!r.components||!r.components[s])return i;const o=r.components[s];return o.defaultProps?Gn(o.defaultProps,i):!o.styleOverrides&&!o.variants?Gn(o,i):i}function vd({props:e,name:r}){const s=re.useContext(yd);return xd({props:e,name:r,theme:{components:s}})}const ri={theme:void 0};function bd(e){let r,s;return function(o){let l=r;return(l===void 0||o.theme!==s)&&(ri.theme=o.theme,l=Js(e(ri)),r=l,s=o.theme),l}}function jd(e=""){function r(...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}${r(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${r(...o)})`}const si=(e,r,s,i=[])=>{let o=e;r.forEach((l,a)=>{a===r.length-1?Array.isArray(o)?o[Number(l)]=s:o&&typeof o=="object"&&(o[l]=s):o&&typeof o=="object"&&(o[l]||(o[l]=i.includes(l)?[]:{}),o=o[l])})},wd=(e,r,s)=>{function i(o,l=[],a=[]){Object.entries(o).forEach(([c,d])=>{(!s||s&&!s([...l,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...l,c],Array.isArray(d)?[...a,c]:a):r([...l,c],d,a))})}i(e)},kd=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function sr(e,r){const{prefix:s,shouldSkipGeneratingVar:i}=r||{},o={},l={},a={};return wd(e,(c,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(c,d))){const g=`--${s?`${s}-`:""}${c.join("-")}`,p=kd(c,d);Object.assign(o,{[g]:p}),si(l,c,`var(${g})`,u),si(a,c,`var(${g}, ${p})`,u)}},c=>c[0]==="vars"),{css:o,vars:l,varsWithDefaults:a}}function Cd(e,r={}){const{getSelector:s=j,disableCssColorScheme:i,colorSchemeSelector:o}=r,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...d}=e,{vars:u,css:g,varsWithDefaults:p}=sr(d,r);let m=p;const x={},{[c]:v,...h}=l;if(Object.entries(h||{}).forEach(([T,k])=>{const{vars:w,css:A,varsWithDefaults:H}=sr(k,r);m=Ve(m,H),x[T]={css:A,vars:w}}),v){const{css:T,vars:k,varsWithDefaults:w}=sr(v,r);m=Ve(m,w),x[c]={css:T,vars:k}}function j(T,k){var A,H;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),T){if(w==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((H=(A=l[T])==null?void 0:A.palette)==null?void 0:H.mode)||T})`]:{":root":k}};if(w)return e.defaultColorScheme===T?`:root, ${w.replace("%s",String(T))}`:w.replace("%s",String(T))}return":root"}return{vars:m,generateThemeVars:()=>{let T={...u};return Object.entries(x).forEach(([,{vars:k}])=>{T=Ve(T,k)}),T},generateStyleSheets:()=>{var G,
|
|
98
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:at(10,o))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:s,values:i,colorSpace:o}}const gd=e=>{const r=ut(e);return r.values.slice(0,3).map((s,i)=>r.type.includes("hsl")&&i!==0?`${s}%`:s).join(" ")},Bt=(e,r)=>{try{return gd(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function vn(e){const{type:r,colorSpace:s}=e;let{values:i}=e;return r.includes("rgb")?i=i.map((o,l)=>l<3?parseInt(o,10):o):r.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),r.includes("color")?i=`${s} ${i.join(" ")}`:i=`${i.join(", ")}`,`${r}(${i})`}function ti(e){e=ut(e);const{values:r}=e,s=r[0],i=r[1]/100,o=r[2]/100,l=i*Math.min(o,1-o),a=(u,g=(u+s/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(r[3])),vn({type:c,values:d})}function tr(e){e=ut(e);let r=e.type==="hsl"||e.type==="hsla"?ut(ti(e)).values:e.values;return r=r.map(s=>(e.type!=="color"&&(s/=255),s<=.03928?s/12.92:((s+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function ni(e,r){const s=tr(e),i=tr(r);return(Math.max(s,i)+.05)/(Math.min(s,i)+.05)}function Lt(e,r){return e=ut(e),r=er(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,vn(e)}function bn(e,r,s){try{return Lt(e,r)}catch{return e}}function nr(e,r){if(e=ut(e),r=er(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let s=0;s<3;s+=1)e.values[s]*=1-r;return vn(e)}function ke(e,r,s){try{return nr(e,r)}catch{return e}}function rr(e,r){if(e=ut(e),r=er(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let s=0;s<3;s+=1)e.values[s]+=(255-e.values[s])*r;else if(e.type.includes("color"))for(let s=0;s<3;s+=1)e.values[s]+=(1-e.values[s])*r;return vn(e)}function Ce(e,r,s){try{return rr(e,r)}catch{return e}}function md(e,r=.15){return tr(e)>.5?nr(e,r):rr(e,r)}function jn(e,r,s){try{return md(e,r)}catch{return e}}const yd=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function xd(e){const{theme:r,name:s,props:i}=e;if(!r||!r.components||!r.components[s])return i;const o=r.components[s];return o.defaultProps?Gn(o.defaultProps,i):!o.styleOverrides&&!o.variants?Gn(o,i):i}function vd({props:e,name:r}){const s=re.useContext(yd);return xd({props:e,name:r,theme:{components:s}})}const ri={theme:void 0};function bd(e){let r,s;return function(o){let l=r;return(l===void 0||o.theme!==s)&&(ri.theme=o.theme,l=Js(e(ri)),r=l,s=o.theme),l}}function jd(e=""){function r(...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}${r(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${r(...o)})`}const si=(e,r,s,i=[])=>{let o=e;r.forEach((l,a)=>{a===r.length-1?Array.isArray(o)?o[Number(l)]=s:o&&typeof o=="object"&&(o[l]=s):o&&typeof o=="object"&&(o[l]||(o[l]=i.includes(l)?[]:{}),o=o[l])})},wd=(e,r,s)=>{function i(o,l=[],a=[]){Object.entries(o).forEach(([c,d])=>{(!s||s&&!s([...l,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?i(d,[...l,c],Array.isArray(d)?[...a,c]:a):r([...l,c],d,a))})}i(e)},kd=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function sr(e,r){const{prefix:s,shouldSkipGeneratingVar:i}=r||{},o={},l={},a={};return wd(e,(c,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!i||!i(c,d))){const g=`--${s?`${s}-`:""}${c.join("-")}`,p=kd(c,d);Object.assign(o,{[g]:p}),si(l,c,`var(${g})`,u),si(a,c,`var(${g}, ${p})`,u)}},c=>c[0]==="vars"),{css:o,vars:l,varsWithDefaults:a}}function Cd(e,r={}){const{getSelector:s=j,disableCssColorScheme:i,colorSchemeSelector:o}=r,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...d}=e,{vars:u,css:g,varsWithDefaults:p}=sr(d,r);let m=p;const x={},{[c]:v,...h}=l;if(Object.entries(h||{}).forEach(([T,k])=>{const{vars:w,css:A,varsWithDefaults:H}=sr(k,r);m=Ve(m,H),x[T]={css:A,vars:w}}),v){const{css:T,vars:k,varsWithDefaults:w}=sr(v,r);m=Ve(m,w),x[c]={css:T,vars:k}}function j(T,k){var A,H;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),T){if(w==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((H=(A=l[T])==null?void 0:A.palette)==null?void 0:H.mode)||T})`]:{":root":k}};if(w)return e.defaultColorScheme===T?`:root, ${w.replace("%s",String(T))}`:w.replace("%s",String(T))}return":root"}return{vars:m,generateThemeVars:()=>{let T={...u};return Object.entries(x).forEach(([,{vars:k}])=>{T=Ve(T,k)}),T},generateStyleSheets:()=>{var G,V;const T=[],k=e.defaultColorScheme||"light";function w(f,B){Object.keys(B).length&&T.push(typeof f=="string"?{[f]:{...B}}:f)}w(s(void 0,{...g}),g);const{[k]:A,...H}=x;if(A){const{css:f}=A,B=(V=(G=l[k])==null?void 0:G.palette)==null?void 0:V.mode,F=!i&&B?{colorScheme:B,...f}:{...f};w(s(k,{...F}),F)}return Object.entries(H).forEach(([f,{css:B}])=>{var Q,K;const F=(K=(Q=l[f])==null?void 0:Q.palette)==null?void 0:K.mode,Z=!i&&F?{colorScheme:F,...B}:{...B};w(s(f,{...Z}),Z)}),T}}}function Sd(e){return function(s){return e==="media"?(process.env.NODE_ENV!=="production"&&s!=="light"&&s!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${s}'.`),`@media (prefers-color-scheme: ${s})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${s}"] &`:e==="class"?`.${s} &`:e==="data"?`[data-${s}] &`:`${e.replace("%s",s)} &`:"&"}}const Ft={black:"#000",white:"#fff"},Td={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"},St={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"},Tt={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"},Ht={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"},Mt={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"},zt={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"},Et={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 ii(){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:Ft.white,default:Ft.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 Md=ii();function oi(){return{text:{primary:Ft.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:Ft.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 li=oi();function ai(e,r,s,i){const o=i.light||i,l=i.dark||i*1.5;e[r]||(e.hasOwnProperty(s)?e[r]=e[s]:r==="light"?e.light=rr(e.main,o):r==="dark"&&(e.dark=nr(e.main,l)))}function zd(e="light"){return e==="dark"?{main:Mt[200],light:Mt[50],dark:Mt[400]}:{main:Mt[700],light:Mt[400],dark:Mt[800]}}function Ed(e="light"){return e==="dark"?{main:St[200],light:St[50],dark:St[400]}:{main:St[500],light:St[300],dark:St[700]}}function Nd(e="light"){return e==="dark"?{main:Tt[500],light:Tt[300],dark:Tt[700]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function Dd(e="light"){return e==="dark"?{main:zt[400],light:zt[300],dark:zt[700]}:{main:zt[700],light:zt[500],dark:zt[900]}}function Ad(e="light"){return e==="dark"?{main:Et[400],light:Et[300],dark:Et[700]}:{main:Et[800],light:Et[500],dark:Et[900]}}function Od(e="light"){return e==="dark"?{main:Ht[400],light:Ht[300],dark:Ht[700]}:{main:"#ed6c02",light:Ht[500],dark:Ht[900]}}function ir(e){const{mode:r="light",contrastThreshold:s=3,tonalOffset:i=.2,...o}=e,l=e.primary||zd(r),a=e.secondary||Ed(r),c=e.error||Nd(r),d=e.info||Dd(r),u=e.success||Ad(r),g=e.warning||Od(r);function p(h){const j=ni(h,li.text.primary)>=s?li.text.primary:Md.text.primary;if(process.env.NODE_ENV!=="production"){const z=ni(h,j);z<3&&console.error([`MUI: The contrast ratio of ${z}:1 for ${j} on ${h}`,"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(`
|
|
99
99
|
`))}return j}const m=({color:h,name:j,mainShade:z=500,lightShade:D=300,darkShade:T=700})=>{if(h={...h},!h.main&&h[z]&&(h.main=h[z]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${j?` (${j})`:""} provided to augmentColor(color) is invalid.
|
|
100
100
|
The color object needs to have a \`main\` property or a \`${z}\` property.`:at(11,j?` (${j})`:"",z));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${j?` (${j})`:""} provided to augmentColor(color) is invalid.
|
|
101
101
|
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
@@ -120,7 +120,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
120
120
|
|
|
121
121
|
export default theme;`}function or(e={},...r){const{breakpoints:s,mixins:i={},spacing:o,palette:l={},transitions:a={},typography:c={},shape:d,...u}=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.":at(20));const g=ir(l),p=Xs(e);let m=Ve(p,{mixins:Rd(p.breakpoints,i),palette:g,shadows:Ld.slice(),typography:Wd(g,c),transitions:Zd(a),zIndex:{...Ud}});if(m=Ve(m,u),m=r.reduce((x,v)=>Ve(x,v),m),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(h,j)=>{let z;for(z in h){const D=h[z];if(x.includes(z)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const T=rt("",z);console.error([`MUI: The \`${j}\` component increases the CSS specificity of the \`${z}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${T}' syntax:`,JSON.stringify({root:{[`&.${T}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
122
122
|
`))}h[z]={}}}};Object.keys(m.components).forEach(h=>{const j=m.components[h].styleOverrides;j&&h.startsWith("Mui")&&v(j,h)})}return m.unstable_sxConfig={..._t,...u==null?void 0:u.unstable_sxConfig},m.unstable_sx=function(v){return Ct({sx:v,theme:this})},m.toRuntimeSource=ui,m}function qd(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const Gd=[...Array(25)].map((e,r)=>{if(r===0)return"none";const s=qd(r);return`linear-gradient(rgba(255 255 255 / ${s}), rgba(255 255 255 / ${s}))`});function fi(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function pi(e){return e==="dark"?Gd:[]}function Kd(e){const{palette:r={mode:"light"},opacity:s,overlays:i,...o}=e,l=ir(r);return{palette:l,opacity:{...fi(l.mode),...s},overlays:i||pi(l.mode),...o}}function Xd(e){var r;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((r=e[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const Jd=e=>[...[...Array(25)].map((r,s)=>`--${e?`${e}-`:""}overlays-${s}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Qd=e=>(r,s)=>{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===r){if(r==="dark"){const a={};return Jd(e.cssVarPrefix).forEach(c=>{a[c]=s[c],delete s[c]}),l==="media"?{[i]:s,"@media (prefers-color-scheme: dark)":{[i]:a}}:l?{[l.replace("%s",r)]:a,[`${i}, ${l.replace("%s",r)}`]:s}:{[i]:{...s,...a}}}if(l&&l!=="media")return`${i}, ${l.replace("%s",String(r))}`}else if(r){if(l==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[i]:s}};if(l)return l.replace("%s",String(r))}return i};function e1(e,r){r.forEach(s=>{e[s]||(e[s]={})})}function $(e,r,s){!e[r]&&s&&(e[r]=s)}function Vt(e){return typeof e!="string"||!e.startsWith("hsl")?e:ti(e)}function it(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Bt(Vt(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
123
|
-
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function t1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tt=e=>{try{return e()}catch{}},n1=(e="mui")=>jd(e);function lr(e,r,s,i){if(!r)return;r=r===!0?{}:r;const o=i==="dark"?"dark":"light";if(!s){e[i]=Kd({...r,palette:{mode:o,...r==null?void 0:r.palette}});return}const{palette:l,...a}=or({...s,palette:{mode:o,...r==null?void 0:r.palette}});return e[i]={...r,palette:l,opacity:{...fi(o),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||pi(o)},a}function r1(e={},...r){const{colorSchemes:s={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:a=Xd,colorSchemeSelector:c=s.light&&s.dark?"media":void 0,rootSelector:d=":root",...u}=e,g=Object.keys(s)[0],p=i||(s.light&&g!=="light"?"light":g),m=n1(l),{[p]:x,light:v,dark:h,...j}=s,z={...j};let D=x;if((p==="dark"&&!("dark"in s)||p==="light"&&!("light"in s))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:at(21,p));const T=lr(z,D,u,p);v&&!z.light&&lr(z,v,void 0,"light"),h&&!z.dark&&lr(z,h,void 0,"dark");let k={defaultColorScheme:p,...T,cssVarPrefix:l,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:z,font:{...Id(T.typography),...T.font},spacing:t1(u.spacing)};Object.keys(k.colorSchemes).forEach(Z=>{const f=k.colorSchemes[Z].palette,B=F=>{const V=F.split("-"),Q=V[1],K=V[2];return m(F,f[Q][K])};if(f.mode==="light"&&($(f.common,"background","#fff"),$(f.common,"onBackground","#000")),f.mode==="dark"&&($(f.common,"background","#000"),$(f.common,"onBackground","#fff")),e1(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){$(f.Alert,"errorColor",ke(f.error.light,.6)),$(f.Alert,"infoColor",ke(f.info.light,.6)),$(f.Alert,"successColor",ke(f.success.light,.6)),$(f.Alert,"warningColor",ke(f.warning.light,.6)),$(f.Alert,"errorFilledBg",B("palette-error-main")),$(f.Alert,"infoFilledBg",B("palette-info-main")),$(f.Alert,"successFilledBg",B("palette-success-main")),$(f.Alert,"warningFilledBg",B("palette-warning-main")),$(f.Alert,"errorFilledColor",tt(()=>f.getContrastText(f.error.main))),$(f.Alert,"infoFilledColor",tt(()=>f.getContrastText(f.info.main))),$(f.Alert,"successFilledColor",tt(()=>f.getContrastText(f.success.main))),$(f.Alert,"warningFilledColor",tt(()=>f.getContrastText(f.warning.main))),$(f.Alert,"errorStandardBg",Ce(f.error.light,.9)),$(f.Alert,"infoStandardBg",Ce(f.info.light,.9)),$(f.Alert,"successStandardBg",Ce(f.success.light,.9)),$(f.Alert,"warningStandardBg",Ce(f.warning.light,.9)),$(f.Alert,"errorIconColor",B("palette-error-main")),$(f.Alert,"infoIconColor",B("palette-info-main")),$(f.Alert,"successIconColor",B("palette-success-main")),$(f.Alert,"warningIconColor",B("palette-warning-main")),$(f.AppBar,"defaultBg",B("palette-grey-100")),$(f.Avatar,"defaultBg",B("palette-grey-400")),$(f.Button,"inheritContainedBg",B("palette-grey-300")),$(f.Button,"inheritContainedHoverBg",B("palette-grey-A100")),$(f.Chip,"defaultBorder",B("palette-grey-400")),$(f.Chip,"defaultAvatarColor",B("palette-grey-700")),$(f.Chip,"defaultIconColor",B("palette-grey-700")),$(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(f.LinearProgress,"primaryBg",Ce(f.primary.main,.62)),$(f.LinearProgress,"secondaryBg",Ce(f.secondary.main,.62)),$(f.LinearProgress,"errorBg",Ce(f.error.main,.62)),$(f.LinearProgress,"infoBg",Ce(f.info.main,.62)),$(f.LinearProgress,"successBg",Ce(f.success.main,.62)),$(f.LinearProgress,"warningBg",Ce(f.warning.main,.62)),$(f.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.11)`),$(f.Slider,"primaryTrack",Ce(f.primary.main,.62)),$(f.Slider,"secondaryTrack",Ce(f.secondary.main,.62)),$(f.Slider,"errorTrack",Ce(f.error.main,.62)),$(f.Slider,"infoTrack",Ce(f.info.main,.62)),$(f.Slider,"successTrack",Ce(f.success.main,.62)),$(f.Slider,"warningTrack",Ce(f.warning.main,.62));const F=jn(f.background.default,.8);$(f.SnackbarContent,"bg",F),$(f.SnackbarContent,"color",tt(()=>f.getContrastText(F))),$(f.SpeedDialAction,"fabHoverBg",jn(f.background.paper,.15)),$(f.StepConnector,"border",B("palette-grey-400")),$(f.StepContent,"border",B("palette-grey-400")),$(f.Switch,"defaultColor",B("palette-common-white")),$(f.Switch,"defaultDisabledColor",B("palette-grey-100")),$(f.Switch,"primaryDisabledColor",Ce(f.primary.main,.62)),$(f.Switch,"secondaryDisabledColor",Ce(f.secondary.main,.62)),$(f.Switch,"errorDisabledColor",Ce(f.error.main,.62)),$(f.Switch,"infoDisabledColor",Ce(f.info.main,.62)),$(f.Switch,"successDisabledColor",Ce(f.success.main,.62)),$(f.Switch,"warningDisabledColor",Ce(f.warning.main,.62)),$(f.TableCell,"border",Ce(bn(f.divider,1),.88)),$(f.Tooltip,"bg",bn(f.grey[700],.92))}if(f.mode==="dark"){$(f.Alert,"errorColor",Ce(f.error.light,.6)),$(f.Alert,"infoColor",Ce(f.info.light,.6)),$(f.Alert,"successColor",Ce(f.success.light,.6)),$(f.Alert,"warningColor",Ce(f.warning.light,.6)),$(f.Alert,"errorFilledBg",B("palette-error-dark")),$(f.Alert,"infoFilledBg",B("palette-info-dark")),$(f.Alert,"successFilledBg",B("palette-success-dark")),$(f.Alert,"warningFilledBg",B("palette-warning-dark")),$(f.Alert,"errorFilledColor",tt(()=>f.getContrastText(f.error.dark))),$(f.Alert,"infoFilledColor",tt(()=>f.getContrastText(f.info.dark))),$(f.Alert,"successFilledColor",tt(()=>f.getContrastText(f.success.dark))),$(f.Alert,"warningFilledColor",tt(()=>f.getContrastText(f.warning.dark))),$(f.Alert,"errorStandardBg",ke(f.error.light,.9)),$(f.Alert,"infoStandardBg",ke(f.info.light,.9)),$(f.Alert,"successStandardBg",ke(f.success.light,.9)),$(f.Alert,"warningStandardBg",ke(f.warning.light,.9)),$(f.Alert,"errorIconColor",B("palette-error-main")),$(f.Alert,"infoIconColor",B("palette-info-main")),$(f.Alert,"successIconColor",B("palette-success-main")),$(f.Alert,"warningIconColor",B("palette-warning-main")),$(f.AppBar,"defaultBg",B("palette-grey-900")),$(f.AppBar,"darkBg",B("palette-background-paper")),$(f.AppBar,"darkColor",B("palette-text-primary")),$(f.Avatar,"defaultBg",B("palette-grey-600")),$(f.Button,"inheritContainedBg",B("palette-grey-800")),$(f.Button,"inheritContainedHoverBg",B("palette-grey-700")),$(f.Chip,"defaultBorder",B("palette-grey-700")),$(f.Chip,"defaultAvatarColor",B("palette-grey-300")),$(f.Chip,"defaultIconColor",B("palette-grey-300")),$(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(f.LinearProgress,"primaryBg",ke(f.primary.main,.5)),$(f.LinearProgress,"secondaryBg",ke(f.secondary.main,.5)),$(f.LinearProgress,"errorBg",ke(f.error.main,.5)),$(f.LinearProgress,"infoBg",ke(f.info.main,.5)),$(f.LinearProgress,"successBg",ke(f.success.main,.5)),$(f.LinearProgress,"warningBg",ke(f.warning.main,.5)),$(f.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.13)`),$(f.Slider,"primaryTrack",ke(f.primary.main,.5)),$(f.Slider,"secondaryTrack",ke(f.secondary.main,.5)),$(f.Slider,"errorTrack",ke(f.error.main,.5)),$(f.Slider,"infoTrack",ke(f.info.main,.5)),$(f.Slider,"successTrack",ke(f.success.main,.5)),$(f.Slider,"warningTrack",ke(f.warning.main,.5));const F=jn(f.background.default,.98);$(f.SnackbarContent,"bg",F),$(f.SnackbarContent,"color",tt(()=>f.getContrastText(F))),$(f.SpeedDialAction,"fabHoverBg",jn(f.background.paper,.15)),$(f.StepConnector,"border",B("palette-grey-600")),$(f.StepContent,"border",B("palette-grey-600")),$(f.Switch,"defaultColor",B("palette-grey-300")),$(f.Switch,"defaultDisabledColor",B("palette-grey-600")),$(f.Switch,"primaryDisabledColor",ke(f.primary.main,.55)),$(f.Switch,"secondaryDisabledColor",ke(f.secondary.main,.55)),$(f.Switch,"errorDisabledColor",ke(f.error.main,.55)),$(f.Switch,"infoDisabledColor",ke(f.info.main,.55)),$(f.Switch,"successDisabledColor",ke(f.success.main,.55)),$(f.Switch,"warningDisabledColor",ke(f.warning.main,.55)),$(f.TableCell,"border",ke(bn(f.divider,1),.68)),$(f.Tooltip,"bg",bn(f.grey[700],.92))}it(f.background,"default"),it(f.background,"paper"),it(f.common,"background"),it(f.common,"onBackground"),it(f,"divider"),Object.keys(f).forEach(F=>{const V=f[F];F!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&$(f[F],"mainChannel",Bt(Vt(V.main))),V.light&&$(f[F],"lightChannel",Bt(Vt(V.light))),V.dark&&$(f[F],"darkChannel",Bt(Vt(V.dark))),V.contrastText&&$(f[F],"contrastTextChannel",Bt(Vt(V.contrastText))),F==="text"&&(it(f[F],"primary"),it(f[F],"secondary")),F==="action"&&(V.active&&it(f[F],"active"),V.selected&&it(f[F],"selected")))})}),k=r.reduce((Z,f)=>Ve(Z,f),k);const w={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Qd(k)},{vars:A,generateThemeVars:H,generateStyleSheets:G}=Cd(k,w);return k.vars=A,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([Z,f])=>{k[Z]=f}),k.generateThemeVars=H,k.generateStyleSheets=G,k.generateSpacing=function(){return Ks(u.spacing,Kn(this))},k.getColorSchemeSelector=Sd(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={..._t,...u==null?void 0:u.unstable_sxConfig},k.unstable_sx=function(f){return Ct({sx:f,theme:this})},k.toRuntimeSource=ui,k}function gi(e,r,s){e.colorSchemes&&s&&(e.colorSchemes[r]={...s!==!0&&s,palette:ir({...s===!0?{}:s.palette,mode:r})})}function s1(e={},...r){const{palette:s,cssVariables:i=!1,colorSchemes:o=s?void 0:{light:!0},defaultColorScheme:l=s==null?void 0:s.mode,...a}=e,c=l||"light",d=o==null?void 0:o[c],u={...o,...s?{[c]:{...typeof d!="boolean"&&d,palette:s}}:void 0};if(i===!1){if(!("colorSchemes"in e))return or(e,...r);let g=s;"palette"in e||u[c]&&(u[c]!==!0?g=u[c].palette:c==="dark"&&(g={mode:"dark"}));const p=or({...e,palette:g},...r);return p.defaultColorScheme=c,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},gi(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},gi(p,"light",u.light)),p}return!s&&!("light"in u)&&c==="light"&&(u.light=!0),r1({...a,colorSchemes:u,defaultColorScheme:c,...typeof i!="boolean"&&i},...r)}const i1=s1(),o1="$$material";function l1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zt=e=>l1(e)&&e!=="classes",Fe=cd({themeId:o1,defaultTheme:i1,rootShouldForwardProp:Zt});function a1(){return Vc}const xt=bd;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function vt(e){return vd(e)}function c1(e){return rt("MuiSvgIcon",e)}ct("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const d1=e=>{const{color:r,fontSize:s,classes:i}=e,o={root:["root",r!=="inherit"&&`color${Oe(r)}`,`fontSize${Oe(s)}`]};return gt(o,c1,i)},h1=Fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.color!=="inherit"&&r[`color${Oe(s.color)}`],r[`fontSize${Oe(s.fontSize)}`]]}})(xt(({theme:e})=>{var r,s,i,o,l,a,c,d,u,g,p,m,x,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(r=e.transitions)==null?void 0:r.create)==null?void 0:o.call(r,"fill",{duration:(i=(s=(e.vars??e).transitions)==null?void 0:s.duration)==null?void 0:i.shorter}),variants:[{props:h=>!h.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=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:g.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var j,z;return{props:{color:h},style:{color:(z=(j=(e.vars??e).palette)==null?void 0:j[h])==null?void 0:z.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:(v=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),wn=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiSvgIcon"}),{children:o,className:l,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:g=!1,titleAccess:p,viewBox:m="0 0 24 24",...x}=i,v=re.isValidElement(o)&&o.type==="svg",h={...i,color:a,component:c,fontSize:d,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:v},j={};g||(j.viewBox=m);const z=d1(h);return t.jsxs(h1,{as:c,className:We(z.root,l),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:s,...j,...x,...v&&o.props,ownerState:h,children:[v?o.props.children:o,p?t.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(wn.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}),wn.muiName="SvgIcon";function _e(e,r){function s(i,o){return t.jsx(wn,{"data-testid":`${r}Icon`,ref:o,...i,children:e})}return process.env.NODE_ENV!=="production"&&(s.displayName=`${r}Icon`),s.muiName=wn.muiName,re.memo(re.forwardRef(s))}function u1(e,r){if(!e)return r;if(typeof e=="function"||typeof r=="function")return o=>{const l=typeof r=="function"?r(o):r,a=typeof e=="function"?e({...o,...l}):e,c=We(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 s=r,i=We(s==null?void 0:s.className,e==null?void 0:e.className);return{...r,...e,...!!i&&{className:i},...(s==null?void 0:s.style)&&(e==null?void 0:e.style)&&{style:{...s.style,...e.style}},...(s==null?void 0:s.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const f1=_e(t.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),p1=e=>t.jsx(Zn,{...e,Icon:t.jsx(f1,{sx:{color:"#fcb035"}}),backgroundColor:"#fff5e5",textColor:"black"}),mi=_e(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"),g1=_e(t.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined"),ar=me.div`
|
|
123
|
+
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function t1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tt=e=>{try{return e()}catch{}},n1=(e="mui")=>jd(e);function lr(e,r,s,i){if(!r)return;r=r===!0?{}:r;const o=i==="dark"?"dark":"light";if(!s){e[i]=Kd({...r,palette:{mode:o,...r==null?void 0:r.palette}});return}const{palette:l,...a}=or({...s,palette:{mode:o,...r==null?void 0:r.palette}});return e[i]={...r,palette:l,opacity:{...fi(o),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||pi(o)},a}function r1(e={},...r){const{colorSchemes:s={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:a=Xd,colorSchemeSelector:c=s.light&&s.dark?"media":void 0,rootSelector:d=":root",...u}=e,g=Object.keys(s)[0],p=i||(s.light&&g!=="light"?"light":g),m=n1(l),{[p]:x,light:v,dark:h,...j}=s,z={...j};let D=x;if((p==="dark"&&!("dark"in s)||p==="light"&&!("light"in s))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:at(21,p));const T=lr(z,D,u,p);v&&!z.light&&lr(z,v,void 0,"light"),h&&!z.dark&&lr(z,h,void 0,"dark");let k={defaultColorScheme:p,...T,cssVarPrefix:l,colorSchemeSelector:c,rootSelector:d,getCssVar:m,colorSchemes:z,font:{...Id(T.typography),...T.font},spacing:t1(u.spacing)};Object.keys(k.colorSchemes).forEach(V=>{const f=k.colorSchemes[V].palette,B=F=>{const Z=F.split("-"),Q=Z[1],K=Z[2];return m(F,f[Q][K])};if(f.mode==="light"&&($(f.common,"background","#fff"),$(f.common,"onBackground","#000")),f.mode==="dark"&&($(f.common,"background","#000"),$(f.common,"onBackground","#fff")),e1(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){$(f.Alert,"errorColor",ke(f.error.light,.6)),$(f.Alert,"infoColor",ke(f.info.light,.6)),$(f.Alert,"successColor",ke(f.success.light,.6)),$(f.Alert,"warningColor",ke(f.warning.light,.6)),$(f.Alert,"errorFilledBg",B("palette-error-main")),$(f.Alert,"infoFilledBg",B("palette-info-main")),$(f.Alert,"successFilledBg",B("palette-success-main")),$(f.Alert,"warningFilledBg",B("palette-warning-main")),$(f.Alert,"errorFilledColor",tt(()=>f.getContrastText(f.error.main))),$(f.Alert,"infoFilledColor",tt(()=>f.getContrastText(f.info.main))),$(f.Alert,"successFilledColor",tt(()=>f.getContrastText(f.success.main))),$(f.Alert,"warningFilledColor",tt(()=>f.getContrastText(f.warning.main))),$(f.Alert,"errorStandardBg",Ce(f.error.light,.9)),$(f.Alert,"infoStandardBg",Ce(f.info.light,.9)),$(f.Alert,"successStandardBg",Ce(f.success.light,.9)),$(f.Alert,"warningStandardBg",Ce(f.warning.light,.9)),$(f.Alert,"errorIconColor",B("palette-error-main")),$(f.Alert,"infoIconColor",B("palette-info-main")),$(f.Alert,"successIconColor",B("palette-success-main")),$(f.Alert,"warningIconColor",B("palette-warning-main")),$(f.AppBar,"defaultBg",B("palette-grey-100")),$(f.Avatar,"defaultBg",B("palette-grey-400")),$(f.Button,"inheritContainedBg",B("palette-grey-300")),$(f.Button,"inheritContainedHoverBg",B("palette-grey-A100")),$(f.Chip,"defaultBorder",B("palette-grey-400")),$(f.Chip,"defaultAvatarColor",B("palette-grey-700")),$(f.Chip,"defaultIconColor",B("palette-grey-700")),$(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(f.LinearProgress,"primaryBg",Ce(f.primary.main,.62)),$(f.LinearProgress,"secondaryBg",Ce(f.secondary.main,.62)),$(f.LinearProgress,"errorBg",Ce(f.error.main,.62)),$(f.LinearProgress,"infoBg",Ce(f.info.main,.62)),$(f.LinearProgress,"successBg",Ce(f.success.main,.62)),$(f.LinearProgress,"warningBg",Ce(f.warning.main,.62)),$(f.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.11)`),$(f.Slider,"primaryTrack",Ce(f.primary.main,.62)),$(f.Slider,"secondaryTrack",Ce(f.secondary.main,.62)),$(f.Slider,"errorTrack",Ce(f.error.main,.62)),$(f.Slider,"infoTrack",Ce(f.info.main,.62)),$(f.Slider,"successTrack",Ce(f.success.main,.62)),$(f.Slider,"warningTrack",Ce(f.warning.main,.62));const F=jn(f.background.default,.8);$(f.SnackbarContent,"bg",F),$(f.SnackbarContent,"color",tt(()=>f.getContrastText(F))),$(f.SpeedDialAction,"fabHoverBg",jn(f.background.paper,.15)),$(f.StepConnector,"border",B("palette-grey-400")),$(f.StepContent,"border",B("palette-grey-400")),$(f.Switch,"defaultColor",B("palette-common-white")),$(f.Switch,"defaultDisabledColor",B("palette-grey-100")),$(f.Switch,"primaryDisabledColor",Ce(f.primary.main,.62)),$(f.Switch,"secondaryDisabledColor",Ce(f.secondary.main,.62)),$(f.Switch,"errorDisabledColor",Ce(f.error.main,.62)),$(f.Switch,"infoDisabledColor",Ce(f.info.main,.62)),$(f.Switch,"successDisabledColor",Ce(f.success.main,.62)),$(f.Switch,"warningDisabledColor",Ce(f.warning.main,.62)),$(f.TableCell,"border",Ce(bn(f.divider,1),.88)),$(f.Tooltip,"bg",bn(f.grey[700],.92))}if(f.mode==="dark"){$(f.Alert,"errorColor",Ce(f.error.light,.6)),$(f.Alert,"infoColor",Ce(f.info.light,.6)),$(f.Alert,"successColor",Ce(f.success.light,.6)),$(f.Alert,"warningColor",Ce(f.warning.light,.6)),$(f.Alert,"errorFilledBg",B("palette-error-dark")),$(f.Alert,"infoFilledBg",B("palette-info-dark")),$(f.Alert,"successFilledBg",B("palette-success-dark")),$(f.Alert,"warningFilledBg",B("palette-warning-dark")),$(f.Alert,"errorFilledColor",tt(()=>f.getContrastText(f.error.dark))),$(f.Alert,"infoFilledColor",tt(()=>f.getContrastText(f.info.dark))),$(f.Alert,"successFilledColor",tt(()=>f.getContrastText(f.success.dark))),$(f.Alert,"warningFilledColor",tt(()=>f.getContrastText(f.warning.dark))),$(f.Alert,"errorStandardBg",ke(f.error.light,.9)),$(f.Alert,"infoStandardBg",ke(f.info.light,.9)),$(f.Alert,"successStandardBg",ke(f.success.light,.9)),$(f.Alert,"warningStandardBg",ke(f.warning.light,.9)),$(f.Alert,"errorIconColor",B("palette-error-main")),$(f.Alert,"infoIconColor",B("palette-info-main")),$(f.Alert,"successIconColor",B("palette-success-main")),$(f.Alert,"warningIconColor",B("palette-warning-main")),$(f.AppBar,"defaultBg",B("palette-grey-900")),$(f.AppBar,"darkBg",B("palette-background-paper")),$(f.AppBar,"darkColor",B("palette-text-primary")),$(f.Avatar,"defaultBg",B("palette-grey-600")),$(f.Button,"inheritContainedBg",B("palette-grey-800")),$(f.Button,"inheritContainedHoverBg",B("palette-grey-700")),$(f.Chip,"defaultBorder",B("palette-grey-700")),$(f.Chip,"defaultAvatarColor",B("palette-grey-300")),$(f.Chip,"defaultIconColor",B("palette-grey-300")),$(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(f.LinearProgress,"primaryBg",ke(f.primary.main,.5)),$(f.LinearProgress,"secondaryBg",ke(f.secondary.main,.5)),$(f.LinearProgress,"errorBg",ke(f.error.main,.5)),$(f.LinearProgress,"infoBg",ke(f.info.main,.5)),$(f.LinearProgress,"successBg",ke(f.success.main,.5)),$(f.LinearProgress,"warningBg",ke(f.warning.main,.5)),$(f.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.13)`),$(f.Slider,"primaryTrack",ke(f.primary.main,.5)),$(f.Slider,"secondaryTrack",ke(f.secondary.main,.5)),$(f.Slider,"errorTrack",ke(f.error.main,.5)),$(f.Slider,"infoTrack",ke(f.info.main,.5)),$(f.Slider,"successTrack",ke(f.success.main,.5)),$(f.Slider,"warningTrack",ke(f.warning.main,.5));const F=jn(f.background.default,.98);$(f.SnackbarContent,"bg",F),$(f.SnackbarContent,"color",tt(()=>f.getContrastText(F))),$(f.SpeedDialAction,"fabHoverBg",jn(f.background.paper,.15)),$(f.StepConnector,"border",B("palette-grey-600")),$(f.StepContent,"border",B("palette-grey-600")),$(f.Switch,"defaultColor",B("palette-grey-300")),$(f.Switch,"defaultDisabledColor",B("palette-grey-600")),$(f.Switch,"primaryDisabledColor",ke(f.primary.main,.55)),$(f.Switch,"secondaryDisabledColor",ke(f.secondary.main,.55)),$(f.Switch,"errorDisabledColor",ke(f.error.main,.55)),$(f.Switch,"infoDisabledColor",ke(f.info.main,.55)),$(f.Switch,"successDisabledColor",ke(f.success.main,.55)),$(f.Switch,"warningDisabledColor",ke(f.warning.main,.55)),$(f.TableCell,"border",ke(bn(f.divider,1),.68)),$(f.Tooltip,"bg",bn(f.grey[700],.92))}it(f.background,"default"),it(f.background,"paper"),it(f.common,"background"),it(f.common,"onBackground"),it(f,"divider"),Object.keys(f).forEach(F=>{const Z=f[F];F!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&$(f[F],"mainChannel",Bt(Vt(Z.main))),Z.light&&$(f[F],"lightChannel",Bt(Vt(Z.light))),Z.dark&&$(f[F],"darkChannel",Bt(Vt(Z.dark))),Z.contrastText&&$(f[F],"contrastTextChannel",Bt(Vt(Z.contrastText))),F==="text"&&(it(f[F],"primary"),it(f[F],"secondary")),F==="action"&&(Z.active&&it(f[F],"active"),Z.selected&&it(f[F],"selected")))})}),k=r.reduce((V,f)=>Ve(V,f),k);const w={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Qd(k)},{vars:A,generateThemeVars:H,generateStyleSheets:G}=Cd(k,w);return k.vars=A,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([V,f])=>{k[V]=f}),k.generateThemeVars=H,k.generateStyleSheets=G,k.generateSpacing=function(){return Ks(u.spacing,Kn(this))},k.getColorSchemeSelector=Sd(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={..._t,...u==null?void 0:u.unstable_sxConfig},k.unstable_sx=function(f){return Ct({sx:f,theme:this})},k.toRuntimeSource=ui,k}function gi(e,r,s){e.colorSchemes&&s&&(e.colorSchemes[r]={...s!==!0&&s,palette:ir({...s===!0?{}:s.palette,mode:r})})}function s1(e={},...r){const{palette:s,cssVariables:i=!1,colorSchemes:o=s?void 0:{light:!0},defaultColorScheme:l=s==null?void 0:s.mode,...a}=e,c=l||"light",d=o==null?void 0:o[c],u={...o,...s?{[c]:{...typeof d!="boolean"&&d,palette:s}}:void 0};if(i===!1){if(!("colorSchemes"in e))return or(e,...r);let g=s;"palette"in e||u[c]&&(u[c]!==!0?g=u[c].palette:c==="dark"&&(g={mode:"dark"}));const p=or({...e,palette:g},...r);return p.defaultColorScheme=c,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},gi(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},gi(p,"light",u.light)),p}return!s&&!("light"in u)&&c==="light"&&(u.light=!0),r1({...a,colorSchemes:u,defaultColorScheme:c,...typeof i!="boolean"&&i},...r)}const i1=s1(),o1="$$material";function l1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zt=e=>l1(e)&&e!=="classes",Fe=cd({themeId:o1,defaultTheme:i1,rootShouldForwardProp:Zt});function a1(){return Vc}const xt=bd;process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function vt(e){return vd(e)}function c1(e){return rt("MuiSvgIcon",e)}ct("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const d1=e=>{const{color:r,fontSize:s,classes:i}=e,o={root:["root",r!=="inherit"&&`color${Oe(r)}`,`fontSize${Oe(s)}`]};return gt(o,c1,i)},h1=Fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.color!=="inherit"&&r[`color${Oe(s.color)}`],r[`fontSize${Oe(s.fontSize)}`]]}})(xt(({theme:e})=>{var r,s,i,o,l,a,c,d,u,g,p,m,x,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(r=e.transitions)==null?void 0:r.create)==null?void 0:o.call(r,"fill",{duration:(i=(s=(e.vars??e).transitions)==null?void 0:s.duration)==null?void 0:i.shorter}),variants:[{props:h=>!h.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=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:g.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var j,z;return{props:{color:h},style:{color:(z=(j=(e.vars??e).palette)==null?void 0:j[h])==null?void 0:z.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:(v=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),wn=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiSvgIcon"}),{children:o,className:l,color:a="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:g=!1,titleAccess:p,viewBox:m="0 0 24 24",...x}=i,v=re.isValidElement(o)&&o.type==="svg",h={...i,color:a,component:c,fontSize:d,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:v},j={};g||(j.viewBox=m);const z=d1(h);return t.jsxs(h1,{as:c,className:We(z.root,l),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:s,...j,...x,...v&&o.props,ownerState:h,children:[v?o.props.children:o,p?t.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(wn.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}),wn.muiName="SvgIcon";function _e(e,r){function s(i,o){return t.jsx(wn,{"data-testid":`${r}Icon`,ref:o,...i,children:e})}return process.env.NODE_ENV!=="production"&&(s.displayName=`${r}Icon`),s.muiName=wn.muiName,re.memo(re.forwardRef(s))}function u1(e,r){if(!e)return r;if(typeof e=="function"||typeof r=="function")return o=>{const l=typeof r=="function"?r(o):r,a=typeof e=="function"?e({...o,...l}):e,c=We(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 s=r,i=We(s==null?void 0:s.className,e==null?void 0:e.className);return{...r,...e,...!!i&&{className:i},...(s==null?void 0:s.style)&&(e==null?void 0:e.style)&&{style:{...s.style,...e.style}},...(s==null?void 0:s.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const f1=_e(t.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),p1=e=>t.jsx(Zn,{...e,Icon:t.jsx(f1,{sx:{color:"#fcb035"}}),backgroundColor:"#fff5e5",textColor:"black"}),mi=_e(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"),g1=_e(t.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined"),ar=me.div`
|
|
124
124
|
display: flex;
|
|
125
125
|
align-items: center;
|
|
126
126
|
border: 1px solid
|
|
@@ -305,7 +305,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
305
305
|
box-shadow: 0 2px 0 #ff3d00 inset;
|
|
306
306
|
animation: ${qi} 2s linear infinite;
|
|
307
307
|
}
|
|
308
|
-
`,Gi=({type:e="default"})=>{const r={default:"default",red:"red",icon:"icon",withOutContainer:"withOutContainer"};switch(e){case r.red:return t.jsx(Er,{children:t.jsx(N1,{})});case r.icon:return t.jsx(Er,{children:t.jsx(Nr,{children:t.jsx(E1,{width:"50px",height:"50px"})})});case r.withOutContainer:return t.jsx(Nr,{});default:return t.jsx(Er,{children:t.jsx(Nr,{})})}};Gi.propTypes={type:n.oneOf(["default","red","icon","withOutContainer"])};const Ki=e=>{const{id:r,onchange:s,label:i,colors:o,onChangeFunction:l,value:a}=e,[c,d]=C.useState(a||!1),u=m=>{d(m.target.checked),s&&s(m.target.checked),l&&l({id:r,value:m.target.checked})},g={height:"0",width:"0",visibility:"hidden",fontWeight:"500"},p={height:"0",width:"0",opacity:"0",position:"absolute"};return t.jsxs("div",{className:"switch-container",children:[i&&t.jsx("span",{className:"switch-label",children:c?"Activo":"Inactivo"}),t.jsxs("div",{children:[t.jsx("input",{className:"react-switch-checkbox",id:`react-switch-new-${r}`,type:"checkbox",checked:c,onChange:u,style:i?g:p}),t.jsx("label",{className:"react-switch-label",htmlFor:`react-switch-new-${r}`,style:{background:c?o.active:o.inactive},children:t.jsx("span",{className:"react-switch-button"})})]})]})};Ki.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};const Yt=({title:e,tooltip:r,top:s,left:i,fontSizeTitle:o,fontSizeTooltip:l,widthTooltip:a,heightTooltip:c,marginTop:d,marginBottom:u,style:g,isTooltipVisibleProp:p,fontWeight:m="700",fontSizeSubTitle:x="1vw",subTitle:v,htmlFor:h})=>{const[j,z]=C.useState(p||!1),D=()=>{z(!0)},T=()=>{z(!1)};return t.jsxs("label",{htmlFor:h,className:"flex align-items-center",style:{...g,marginTop:d,marginBottom:u,display:"flex",alignItems:"center",gap:"5px"},children:[t.jsx("p",{className:"flex align-items-center",style:{fontSize:o,fontWeight:m,color:"#2F3131"},children:e}),v&&t.jsx("p",{style:{fontSize:x,color:"#2F3131"},className:"sub-label",children:v}),r&&t.jsxs("div",{style:{position:"relative",width:"24px",height:"26px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:D,onMouseLeave:T,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"})}),j&&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:s,zIndex:1e3},children:r})]})]})};Yt.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 Xi=({width:e,height:r,minheight:s,maxHeight:i,id:o,name:l,onChange:a,label:c,subLabel:d,placeholder:u,maxCharacters:g,fontSizeLabel:p,fontSize:m,fontSizeTooltip:x,heightTooltip:v,leftTooltip:h,tooltip:j,topTooltip:z,widthTooltip:D,isTooltipVisible:T,onChangeFunction:k})=>{const w=A=>{const{name:H,value:G}=A.target;a&&a({name:H,value:G,id:o}),k&&k(A)};return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"5px",width:e},children:[c&&t.jsx(Yt,{fontSizeTitle:p,fontSizeTooltip:x,heightTooltip:v,left:h,subTitle:d,title:c,tooltip:j,top:z,widthTooltip:D,isTooltipVisibleProp:T,marginBottom:"5px",htmlFor:o}),t.jsx("textarea",{name:l,id:o,onChange:w,placeholder:u,className:"text-area-library",maxLength:g,style:{width:e,height:r,minHeight:s,maxHeight:i,fontSize:m}}),g&&t.jsxs("div",{className:"max-characters-library",children:[g," caracteres"]})]})};Xi.propTypes={width:n.string,height:n.string,minheight:n.string,maxHeight:n.string,id:n.string,name: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 Dr=e=>{const{inputProperties:r,label:s,subLabel:i,color:o,colorLabel:l,size:a="medium"}=e;return t.jsx("div",{children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{...r,sx:{"&.Mui-checked":{color:o||"#119672"}},size:a}),label:t.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"5px",alignItems:"center"},children:[t.jsx("span",{className:"label-library",style:{marginBottom:"0",color:l||"black"},children:s}),i&&t.jsx("span",{className:"sub-label",style:{marginBottom:"0"},children:i})]})})})};Dr.propTypes={inputProperties:n.object,label:n.string,subLabel:n.string,color:n.string,colorLabel:n.string};const Ji=e=>{const{inputProperties:r,size:s}=e;return t.jsx(k1,{style:{width:s},children:t.jsx("input",{...r})})};Ji.propTypes={inputProperties:n.object,size:n.string};const Qi=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qi.displayName="FormControlContext");function Ar(){return re.useContext(Qi)}class Nn{constructor(){Qt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Nn}static use(){const r=Rs(Nn.create).current,[s,i]=re.useState(!1);return r.shouldMount=s,r.setShouldMount=i,re.useEffect(r.mountEffect,[s]),r}mount(){return this.mounted||(this.mounted=A1(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var s;return(s=this.ref.current)==null?void 0:s.start(...r)})}stop(...r){this.mount().then(()=>{var s;return(s=this.ref.current)==null?void 0:s.stop(...r)})}pulsate(...r){this.mount().then(()=>{var s;return(s=this.ref.current)==null?void 0:s.pulsate(...r)})}}function D1(){return Nn.use()}function A1(){let e,r;const s=new Promise((i,o)=>{e=i,r=o});return s.resolve=e,s.reject=r,s}function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Or.apply(null,arguments)}function O1(e,r){if(e==null)return{};var s={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(r.includes(i))continue;s[i]=e[i]}return s}function Ir(e,r){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,i){return s.__proto__=i,s},Ir(e,r)}function I1(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Ir(e,r)}const eo=C.createContext(null);function R1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,r){var s=function(l){return r&&C.isValidElement(l)?r(l):l},i=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=s(o)}),i}function P1(e,r){e=e||{},r=r||{};function s(g){return g in r?r[g]:e[g]}var i=Object.create(null),o=[];for(var l in e)l in r?o.length&&(i[l]=o,o=[]):o.push(l);var a,c={};for(var d in r){if(i[d])for(a=0;a<i[d].length;a++){var u=i[d][a];c[i[d][a]]=s(u)}c[d]=s(d)}for(a=0;a<o.length;a++)c[o[a]]=s(o[a]);return c}function bt(e,r,s){return s[r]!=null?s[r]:e.props[r]}function W1(e,r){return Rr(e.children,function(s){return C.cloneElement(s,{onExited:r.bind(null,s),in:!0,appear:bt(s,"appear",e),enter:bt(s,"enter",e),exit:bt(s,"exit",e)})})}function $1(e,r,s){var i=Rr(e.children),o=P1(r,i);return Object.keys(o).forEach(function(l){var a=o[l];if(C.isValidElement(a)){var c=l in r,d=l in i,u=r[l],g=C.isValidElement(u)&&!u.props.in;d&&(!c||g)?o[l]=C.cloneElement(a,{onExited:s.bind(null,a),in:!0,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}):!d&&c&&!g?o[l]=C.cloneElement(a,{in:!1}):d&&c&&C.isValidElement(u)&&(o[l]=C.cloneElement(a,{onExited:s.bind(null,a),in:u.props.in,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}))}}),o}var _1=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},B1={component:"div",childFactory:function(r){return r}},Pr=function(e){I1(r,e);function r(i,o){var l;l=e.call(this,i,o)||this;var a=l.handleExited.bind(R1(l));return l.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},l}var s=r.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(o,l){var a=l.children,c=l.handleExited,d=l.firstRender;return{children:d?W1(o,c):$1(o,a,c),firstRender:!1}},s.handleExited=function(o,l){var a=Rr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(c){var d=Or({},c.children);return delete d[o.key],{children:d}}))},s.render=function(){var o=this.props,l=o.component,a=o.childFactory,c=O1(o,["component","childFactory"]),d=this.state.contextValue,u=_1(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,l===null?C.createElement(eo.Provider,{value:d},u):C.createElement(eo.Provider,{value:d},C.createElement(l,c,u))},r}(C.Component);Pr.propTypes=process.env.NODE_ENV!=="production"?{component:n.any,children:n.node,appear:n.bool,enter:n.bool,exit:n.bool,childFactory:n.func}:{},Pr.defaultProps=B1;function to(e){const{className:r,classes:s,pulsate:i=!1,rippleX:o,rippleY:l,rippleSize:a,in:c,onExited:d,timeout:u}=e,[g,p]=re.useState(!1),m=We(r,s.ripple,s.rippleVisible,i&&s.ripplePulsate),x={width:a,height:a,top:-(a/2)+l,left:-(a/2)+o},v=We(s.child,g&&s.childLeaving,i&&s.childPulsate);return!c&&!g&&p(!0),re.useEffect(()=>{if(!c&&d!=null){const h=setTimeout(d,u);return()=>{clearTimeout(h)}}},[d,c,u]),t.jsx("span",{className:m,style:x,children:t.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(to.propTypes={classes:n.object.isRequired,className:n.string,in:n.bool,onExited:n.func,pulsate:n.bool,rippleSize:n.number,rippleX:n.number,rippleY:n.number,timeout:n.number.isRequired});const Ke=ct("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wr=550,L1=80,F1=Rn.keyframes`
|
|
308
|
+
`,Gi=({type:e="default"})=>{const r={default:"default",red:"red",icon:"icon",withOutContainer:"withOutContainer"};switch(e){case r.red:return t.jsx(Er,{children:t.jsx(N1,{})});case r.icon:return t.jsx(Er,{children:t.jsx(Nr,{children:t.jsx(E1,{width:"50px",height:"50px"})})});case r.withOutContainer:return t.jsx(Nr,{});default:return t.jsx(Er,{children:t.jsx(Nr,{})})}};Gi.propTypes={type:n.oneOf(["default","red","icon","withOutContainer"])};const Ki=e=>{const{id:r,onchange:s,label:i,colors:o,onChangeFunction:l,value:a}=e,[c,d]=C.useState(a||!1),u=m=>{d(m.target.checked),s&&s(m.target.checked),l&&l({id:r,value:m.target.checked})},g={height:"0",width:"0",visibility:"hidden",fontWeight:"500"},p={height:"0",width:"0",opacity:"0",position:"absolute"};return t.jsxs("div",{className:"switch-container",children:[i&&t.jsx("span",{className:"switch-label",children:c?"Activo":"Inactivo"}),t.jsxs("div",{children:[t.jsx("input",{className:"react-switch-checkbox",id:`react-switch-new-${r}`,type:"checkbox",checked:c,onChange:u,style:i?g:p}),t.jsx("label",{className:"react-switch-label",htmlFor:`react-switch-new-${r}`,style:{background:c?o.active:o.inactive},children:t.jsx("span",{className:"react-switch-button"})})]})]})};Ki.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};const Yt=({title:e,tooltip:r,top:s,left:i,fontSizeTitle:o,fontSizeTooltip:l,widthTooltip:a,heightTooltip:c,marginTop:d,marginBottom:u,style:g,isTooltipVisibleProp:p,fontWeight:m="700",fontSizeSubTitle:x="1vw",subTitle:v,htmlFor:h})=>{const[j,z]=C.useState(p||!1),D=()=>{z(!0)},T=()=>{z(!1)};return t.jsxs("label",{htmlFor:h,className:"flex align-items-center",style:{...g,marginTop:d,marginBottom:u,display:"flex",alignItems:"center",gap:"5px"},children:[t.jsx("p",{className:"flex align-items-center",style:{fontSize:o,fontWeight:m,color:"#2F3131"},children:e}),v&&t.jsx("p",{style:{fontSize:x,color:"#2F3131"},className:"sub-label",children:v}),r&&t.jsxs("div",{style:{position:"relative",width:"24px",height:"26px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:D,onMouseLeave:T,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"})}),j&&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:s,zIndex:1e3},children:r})]})]})};Yt.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 Xi=({width:e,height:r,minheight:s,maxHeight:i,id:o,name:l,value:a,onChange:c,label:d,subLabel:u,placeholder:g,maxCharacters:p,fontSizeLabel:m,fontSize:x,fontSizeTooltip:v,heightTooltip:h,leftTooltip:j,tooltip:z,topTooltip:D,widthTooltip:T,isTooltipVisible:k,onChangeFunction:w})=>{const A=H=>{const{name:G,value:V}=H.target;c&&c({name:G,value:V,id:o}),w&&w(H)};return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"5px",width:e},children:[d&&t.jsx(Yt,{fontSizeTitle:m,fontSizeTooltip:v,heightTooltip:h,left:j,subTitle:u,title:d,tooltip:z,top:D,widthTooltip:T,isTooltipVisibleProp:k,marginBottom:"5px",htmlFor:o}),t.jsx("textarea",{name:l,id:o,value:a,onChange:A,placeholder:g,className:"text-area-library",maxLength:p,style:{width:e,height:r,minHeight:s,maxHeight:i,fontSize:x}}),p&&t.jsxs("div",{className:"max-characters-library",children:[p," caracteres"]})]})};Xi.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 Dr=e=>{const{inputProperties:r,label:s,subLabel:i,color:o,colorLabel:l,size:a="medium"}=e;return t.jsx("div",{children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{...r,sx:{"&.Mui-checked":{color:o||"#119672"}},size:a}),label:t.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:"5px",alignItems:"center"},children:[t.jsx("span",{className:"label-library",style:{marginBottom:"0",color:l||"black"},children:s}),i&&t.jsx("span",{className:"sub-label",style:{marginBottom:"0"},children:i})]})})})};Dr.propTypes={inputProperties:n.object,label:n.string,subLabel:n.string,color:n.string,colorLabel:n.string};const Ji=e=>{const{inputProperties:r,size:s}=e;return t.jsx(k1,{style:{width:s},children:t.jsx("input",{...r})})};Ji.propTypes={inputProperties:n.object,size:n.string};const Qi=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qi.displayName="FormControlContext");function Ar(){return re.useContext(Qi)}class Nn{constructor(){Qt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Nn}static use(){const r=Rs(Nn.create).current,[s,i]=re.useState(!1);return r.shouldMount=s,r.setShouldMount=i,re.useEffect(r.mountEffect,[s]),r}mount(){return this.mounted||(this.mounted=A1(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var s;return(s=this.ref.current)==null?void 0:s.start(...r)})}stop(...r){this.mount().then(()=>{var s;return(s=this.ref.current)==null?void 0:s.stop(...r)})}pulsate(...r){this.mount().then(()=>{var s;return(s=this.ref.current)==null?void 0:s.pulsate(...r)})}}function D1(){return Nn.use()}function A1(){let e,r;const s=new Promise((i,o)=>{e=i,r=o});return s.resolve=e,s.reject=r,s}function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Or.apply(null,arguments)}function O1(e,r){if(e==null)return{};var s={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(r.includes(i))continue;s[i]=e[i]}return s}function Ir(e,r){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,i){return s.__proto__=i,s},Ir(e,r)}function I1(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Ir(e,r)}const eo=C.createContext(null);function R1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,r){var s=function(l){return r&&C.isValidElement(l)?r(l):l},i=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=s(o)}),i}function P1(e,r){e=e||{},r=r||{};function s(g){return g in r?r[g]:e[g]}var i=Object.create(null),o=[];for(var l in e)l in r?o.length&&(i[l]=o,o=[]):o.push(l);var a,c={};for(var d in r){if(i[d])for(a=0;a<i[d].length;a++){var u=i[d][a];c[i[d][a]]=s(u)}c[d]=s(d)}for(a=0;a<o.length;a++)c[o[a]]=s(o[a]);return c}function bt(e,r,s){return s[r]!=null?s[r]:e.props[r]}function W1(e,r){return Rr(e.children,function(s){return C.cloneElement(s,{onExited:r.bind(null,s),in:!0,appear:bt(s,"appear",e),enter:bt(s,"enter",e),exit:bt(s,"exit",e)})})}function $1(e,r,s){var i=Rr(e.children),o=P1(r,i);return Object.keys(o).forEach(function(l){var a=o[l];if(C.isValidElement(a)){var c=l in r,d=l in i,u=r[l],g=C.isValidElement(u)&&!u.props.in;d&&(!c||g)?o[l]=C.cloneElement(a,{onExited:s.bind(null,a),in:!0,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}):!d&&c&&!g?o[l]=C.cloneElement(a,{in:!1}):d&&c&&C.isValidElement(u)&&(o[l]=C.cloneElement(a,{onExited:s.bind(null,a),in:u.props.in,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}))}}),o}var _1=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},B1={component:"div",childFactory:function(r){return r}},Pr=function(e){I1(r,e);function r(i,o){var l;l=e.call(this,i,o)||this;var a=l.handleExited.bind(R1(l));return l.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},l}var s=r.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(o,l){var a=l.children,c=l.handleExited,d=l.firstRender;return{children:d?W1(o,c):$1(o,a,c),firstRender:!1}},s.handleExited=function(o,l){var a=Rr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(c){var d=Or({},c.children);return delete d[o.key],{children:d}}))},s.render=function(){var o=this.props,l=o.component,a=o.childFactory,c=O1(o,["component","childFactory"]),d=this.state.contextValue,u=_1(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,l===null?C.createElement(eo.Provider,{value:d},u):C.createElement(eo.Provider,{value:d},C.createElement(l,c,u))},r}(C.Component);Pr.propTypes=process.env.NODE_ENV!=="production"?{component:n.any,children:n.node,appear:n.bool,enter:n.bool,exit:n.bool,childFactory:n.func}:{},Pr.defaultProps=B1;function to(e){const{className:r,classes:s,pulsate:i=!1,rippleX:o,rippleY:l,rippleSize:a,in:c,onExited:d,timeout:u}=e,[g,p]=re.useState(!1),m=We(r,s.ripple,s.rippleVisible,i&&s.ripplePulsate),x={width:a,height:a,top:-(a/2)+l,left:-(a/2)+o},v=We(s.child,g&&s.childLeaving,i&&s.childPulsate);return!c&&!g&&p(!0),re.useEffect(()=>{if(!c&&d!=null){const h=setTimeout(d,u);return()=>{clearTimeout(h)}}},[d,c,u]),t.jsx("span",{className:m,style:x,children:t.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(to.propTypes={classes:n.object.isRequired,className:n.string,in:n.bool,onExited:n.func,pulsate:n.bool,rippleSize:n.number,rippleX:n.number,rippleY:n.number,timeout:n.number.isRequired});const Ke=ct("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wr=550,L1=80,F1=Rn.keyframes`
|
|
309
309
|
0% {
|
|
310
310
|
transform: scale(0);
|
|
311
311
|
opacity: 0.1;
|
|
@@ -378,7 +378,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
378
378
|
animation-iteration-count: infinite;
|
|
379
379
|
animation-delay: 200ms;
|
|
380
380
|
}
|
|
381
|
-
`,no=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:a,...c}=i,[d,u]=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=Ha(),v=re.useRef(null),h=re.useRef(null),j=re.useCallback(k=>{const{pulsate:w,rippleX:A,rippleY:H,rippleSize:G,cb:Z}=k;u(f=>[...f,t.jsx(U1,{classes:{ripple:We(l.ripple,Ke.ripple),rippleVisible:We(l.rippleVisible,Ke.rippleVisible),ripplePulsate:We(l.ripplePulsate,Ke.ripplePulsate),child:We(l.child,Ke.child),childLeaving:We(l.childLeaving,Ke.childLeaving),childPulsate:We(l.childPulsate,Ke.childPulsate)},timeout:Wr,pulsate:w,rippleX:A,rippleY:H,rippleSize:G},g.current)]),g.current+=1,p.current=Z},[l]),z=re.useCallback((k={},w={},A=()=>{})=>{const{pulsate:H=!1,center:G=o||w.pulsate,fakeElement:Z=!1}=w;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const f=Z?null:h.current,B=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,V,Q;if(G||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)F=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:K,clientY:te}=k.touches&&k.touches.length>0?k.touches[0]:k;F=Math.round(K-B.left),V=Math.round(te-B.top)}if(G)Q=Math.sqrt((2*B.width**2+B.height**2)/3),Q%2===0&&(Q+=1);else{const K=Math.max(Math.abs((f?f.clientWidth:0)-F),F)*2+2,te=Math.max(Math.abs((f?f.clientHeight:0)-V),V)*2+2;Q=Math.sqrt(K**2+te**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{j({pulsate:H,rippleX:F,rippleY:V,rippleSize:Q,cb:A})},x.start(L1,()=>{v.current&&(v.current(),v.current=null)})):j({pulsate:H,rippleX:F,rippleY:V,rippleSize:Q,cb:A})},[o,j,x]),D=re.useCallback(()=>{z({},{pulsate:!0})},[z]),T=re.useCallback((k,w)=>{if(x.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,x.start(0,()=>{T(k,w)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),p.current=w},[x]);return re.useImperativeHandle(s,()=>({pulsate:D,start:z,stop:T}),[D,z,T]),t.jsx(Z1,{className:We(Ke.root,l.root,a),ref:h,...c,children:t.jsx(Pr,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(no.propTypes={center:n.bool,classes:n.object,className:n.string});function Y1(e){return rt("MuiButtonBase",e)}const q1=ct("MuiButtonBase",["root","disabled","focusVisible"]),G1=e=>{const{disabled:r,focusVisible:s,focusVisibleClassName:i,classes:o}=e,a=gt({root:["root",r&&"disabled",s&&"focusVisible"]},Y1,o);return s&&i&&(a.root+=` ${i}`),a},K1=Fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.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"},[`&.${q1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ro=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:a,className:c,component:d="button",disabled:u=!1,disableRipple:g=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:x,LinkComponent:v="a",onBlur:h,onClick:j,onContextMenu:z,onDragLeave:D,onFocus:T,onFocusVisible:k,onKeyDown:w,onKeyUp:A,onMouseDown:H,onMouseLeave:G,onMouseUp:Z,onTouchEnd:f,onTouchMove:B,onTouchStart:F,tabIndex:V=0,TouchRippleProps:Q,touchRippleRef:K,type:te,...U}=i,_=re.useRef(null),I=D1(),y=Yn(I.ref,K),[N,P]=re.useState(!1);u&&N&&P(!1),re.useImperativeHandle(o,()=>({focusVisible:()=>{P(!0),_.current.focus()}}),[]);const S=I.shouldMount&&!g&&!u;re.useEffect(()=>{N&&m&&!g&&I.pulsate()},[g,m,N,I]);const O=ot(I,"start",H,p),E=ot(I,"stop",z,p),L=ot(I,"stop",D,p),W=ot(I,"stop",Z,p),R=ot(I,"stop",ee=>{N&&ee.preventDefault(),G&&G(ee)},p),X=ot(I,"start",F,p),J=ot(I,"stop",f,p),se=ot(I,"stop",B,p),q=ot(I,"stop",ee=>{Ps(ee.target)||P(!1),h&&h(ee)},!1),ue=on(ee=>{_.current||(_.current=ee.currentTarget),Ps(ee.target)&&(P(!0),k&&k(ee)),T&&T(ee)}),le=()=>{const ee=_.current;return d&&d!=="button"&&!(ee.tagName==="A"&&ee.href)},fe=on(ee=>{m&&!ee.repeat&&N&&ee.key===" "&&I.stop(ee,()=>{I.start(ee)}),ee.target===ee.currentTarget&&le()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&le()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),j&&j(ee))}),Be=on(ee=>{m&&ee.key===" "&&N&&!ee.defaultPrevented&&I.stop(ee,()=>{I.pulsate(ee)}),A&&A(ee),j&&ee.target===ee.currentTarget&&le()&&ee.key===" "&&!ee.defaultPrevented&&j(ee)});let we=d;we==="button"&&(U.href||U.to)&&(we=v);const Re={};we==="button"?(Re.type=te===void 0?"button":te,Re.disabled=u):(!U.href&&!U.to&&(Re.role="button"),u&&(Re["aria-disabled"]=u));const ce=Yn(s,_),oe={...i,centerRipple:l,component:d,disabled:u,disableRipple:g,disableTouchRipple:p,focusRipple:m,tabIndex:V,focusVisible:N},de=G1(oe);return t.jsxs(K1,{as:we,className:We(de.root,c),ownerState:oe,onBlur:q,onClick:j,onContextMenu:E,onFocus:ue,onKeyDown:fe,onKeyUp:Be,onMouseDown:O,onMouseLeave:R,onMouseUp:W,onDragLeave:L,onTouchEnd:J,onTouchMove:se,onTouchStart:X,ref:ce,tabIndex:u?-1:V,type:te,...Re,...U,children:[a,S?t.jsx(no,{ref:y,center:l,...Q}):null]})});function ot(e,r,s,i=!1){return on(o=>(s&&s(o),i||e[r](o),!0))}process.env.NODE_ENV!=="production"&&(ro.propTypes={action:sn,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:Pa,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 X1(e){return rt("PrivateSwitchBase",e)}ct("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function qt(e,r){const{className:s,elementType:i,ownerState:o,externalForwardedProps:l,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=r,{component:u,slots:g={[e]:void 0},slotProps:p={[e]:void 0},...m}=l,x=g[e]||i,v=Xa(p[e],o),{props:{component:h,...j},internalRef:z}=Ka({className:s,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:v}),D=Yn(z,v==null?void 0:v.ref,r.ref),T=e==="root"?h||u:h,k=qa(x,{...e==="root"&&!u&&!g[e]&&a,...e!=="root"&&!g[e]&&a,...j,...T&&!c&&{as:T},...T&&c&&{component:T},ref:D},o);return[x,k]}const J1=e=>{const{classes:r,checked:s,disabled:i,edge:o}=e,l={root:["root",s&&"checked",i&&"disabled",o&&`edge${Oe(o)}`],input:["input"]};return gt(l,X1,r)},Q1=Fe(ro,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:r})=>e==="start"&&r.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:r})=>e==="end"&&r.size!=="small",style:{marginRight:-12}}]}),e0=Fe("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}),$r=re.forwardRef(function(r,s){const{autoFocus:i,checked:o,checkedIcon:l,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:g,id:p,inputProps:m,inputRef:x,name:v,onBlur:h,onChange:j,onFocus:z,readOnly:D,required:T=!1,tabIndex:k,type:w,value:A,slots:H={},slotProps:G={},...Z}=r,[f,B]=Ba({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),F=Ar(),V=E=>{z&&z(E),F&&F.onFocus&&F.onFocus(E)},Q=E=>{h&&h(E),F&&F.onBlur&&F.onBlur(E)},K=E=>{if(E.nativeEvent.defaultPrevented)return;const L=E.target.checked;B(L),j&&j(E,L)};let te=c;F&&typeof te>"u"&&(te=F.disabled);const U=w==="checkbox"||w==="radio",_={...r,checked:f,disabled:te,disableFocusRipple:d,edge:u},I=J1(_),y={slots:H,slotProps:{input:m,...G}},[N,P]=qt("root",{ref:s,elementType:Q1,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...y,component:"span",...Z},getSlotProps:E=>({...E,onFocus:L=>{var W;(W=E.onFocus)==null||W.call(E,L),V(L)},onBlur:L=>{var W;(W=E.onBlur)==null||W.call(E,L),Q(L)}}),ownerState:_,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:te,role:void 0,tabIndex:null}}),[S,O]=qt("input",{ref:x,elementType:e0,className:I.input,externalForwardedProps:y,getSlotProps:E=>({onChange:L=>{var W;(W=E.onChange)==null||W.call(E,L),K(L)}}),ownerState:_,additionalProps:{autoFocus:i,checked:o,defaultChecked:a,disabled:te,id:U?p:void 0,name:v,readOnly:D,required:T,tabIndex:k,type:w,...w==="checkbox"&&A===void 0?{}:{value:A}}});return t.jsxs(N,{...P,children:[t.jsx(S,{...O}),f?l:g]})});process.env.NODE_ENV!=="production"&&($r.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:sn,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 t0=_e(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"),n0=_e(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"),r0=Fe("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Zt})({position:"relative",display:"flex"}),s0=Fe(t0,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),i0=Fe(n0,{name:"MuiRadioButtonIcon"})(xt(({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 _r(e){const{checked:r=!1,classes:s={},fontSize:i}=e,o={...e,checked:r};return t.jsxs(r0,{className:s.root,ownerState:o,children:[t.jsx(s0,{fontSize:i,className:s.background,ownerState:o}),t.jsx(i0,{fontSize:i,className:s.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(_r.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});const so=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(so.displayName="RadioGroupContext");function o0(){return re.useContext(so)}function l0(e){return rt("MuiRadio",e)}const io=ct("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);function a0(e){return typeof e.main=="string"}function c0(e,r=[]){if(!a0(e))return!1;for(const s of r)if(!e.hasOwnProperty(s)||typeof e[s]!="string")return!1;return!0}function Gt(e=[]){return([,r])=>r&&c0(r,e)}const d0=e=>{const{classes:r,color:s,size:i}=e,o={root:["root",`color${Oe(s)}`,i!=="medium"&&`size${Oe(i)}`]};return{...r,...gt(o,l0,r)}},h0=Fe($r,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.size!=="medium"&&r[`size${Oe(s.size)}`],r[`color${Oe(s.color)}`]]}})(xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${io.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})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[r].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r,disabled:!1},style:{[`&.${io.checked}`]:{color:(e.vars||e).palette[r].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function u0(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}const f0=t.jsx(_r,{checked:!0}),p0=t.jsx(_r,{}),oo=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiRadio"}),{checked:o,checkedIcon:l=f0,color:a="primary",icon:c=p0,name:d,onChange:u,size:g="medium",className:p,disabled:m,disableRipple:x=!1,slots:v={},slotProps:h={},inputProps:j,...z}=i,D=Ar();let T=m;D&&typeof T>"u"&&(T=D.disabled),T??(T=!1);const k={...i,disabled:T,disableRipple:x,color:a,size:g},w=d0(k),A=o0();let H=o;const G=$a(u,A&&A.onChange);let Z=d;A&&(typeof H>"u"&&(H=u0(A.value,i.value)),typeof Z>"u"&&(Z=A.name));const f=h.input??j,[B,F]=qt("root",{ref:s,elementType:h0,className:We(w.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:h,...z},getSlotProps:V=>({...V,onChange:(Q,...K)=>{var te;(te=V.onChange)==null||te.call(V,Q,...K),G(Q,...K)}}),ownerState:k,additionalProps:{type:"radio",icon:re.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:re.cloneElement(l,{fontSize:l.props.fontSize??g}),disabled:T,name:Z,checked:H,slots:v,slotProps:{input:typeof f=="function"?f(k):f}}});return t.jsx(B,{...F,classes:w})});process.env.NODE_ENV!=="production"&&(oo.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:sn,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 g0(e){return rt("MuiTypography",e)}ct("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},y0=a1(),x0=e=>{const{align:r,gutterBottom:s,noWrap:i,paragraph:o,variant:l,classes:a}=e,c={root:["root",l,e.align!=="inherit"&&`align${Oe(r)}`,s&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return gt(c,g0,a)},v0=Fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.variant&&r[s.variant],s.align!=="inherit"&&r[`align${Oe(s.align)}`],s.noWrap&&r.noWrap,s.gutterBottom&&r.gutterBottom,s.paragraph&&r.paragraph]}})(xt(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([s,i])=>s!=="inherit"&&i&&typeof i=="object").map(([s,i])=>({props:{variant:s},style:i})),...Object.entries(e.palette).filter(Gt()).map(([s])=>({props:{color:s},style:{color:(e.vars||e).palette[s].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,s])=>typeof s=="string").map(([s])=>({props:{color:`text${Oe(s)}`},style:{color:(e.vars||e).palette.text[s]}})),{props:({ownerState:s})=>s.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:s})=>s.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:s})=>s.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:s})=>s.paragraph,style:{marginBottom:16}}]}})),lo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Br=re.forwardRef(function(r,s){const{color:i,...o}=vt({props:r,name:"MuiTypography"}),l=!m0[i],a=y0({...o,...l&&{color:i}}),{align:c="inherit",className:d,component:u,gutterBottom:g=!1,noWrap:p=!1,paragraph:m=!1,variant:x="body1",variantMapping:v=lo,...h}=a,j={...a,align:c,color:i,className:d,component:u,gutterBottom:g,noWrap:p,paragraph:m,variant:x,variantMapping:v},z=u||(m?"p":v[x]||lo[x])||"span",D=x0(j);return t.jsx(v0,{as:z,ref:s,className:We(D.root,d),...h,ownerState:j,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...h.style}})});process.env.NODE_ENV!=="production"&&(Br.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 b0(e){return rt("MuiFormControlLabel",e)}const Kt=ct("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function j0({props:e,states:r,muiFormControl:s}){return r.reduce((i,o)=>(i[o]=e[o],s&&typeof e[o]>"u"&&(i[o]=s[o]),i),{})}const w0=e=>{const{classes:r,disabled:s,labelPlacement:i,error:o,required:l}=e,a={root:["root",s&&"disabled",`labelPlacement${Oe(i)}`,o&&"error",l&&"required"],label:["label",s&&"disabled"],asterisk:["asterisk",o&&"error"]};return gt(a,b0,r)},k0=Fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[{[`& .${Kt.label}`]:r.label},r.root,r[`labelPlacement${Oe(s.labelPlacement)}`]]}})(xt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Kt.disabled}`]:{cursor:"default"},[`& .${Kt.label}`]:{[`&.${Kt.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:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),C0=Fe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(xt(({theme:e})=>({[`&.${Kt.error}`]:{color:(e.vars||e).palette.error.main}}))),ao=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:a={},control:c,disabled:d,disableTypography:u,inputRef:g,label:p,labelPlacement:m="end",name:x,onChange:v,required:h,slots:j={},slotProps:z={},value:D,...T}=i,k=Ar(),w=d??c.props.disabled??(k==null?void 0:k.disabled),A=h??c.props.required,H={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(K=>{typeof c.props[K]>"u"&&typeof i[K]<"u"&&(H[K]=i[K])});const G=j0({props:i,muiFormControl:k,states:["error"]}),Z={...i,disabled:w,labelPlacement:m,required:A,error:G.error},f=w0(Z),B={slots:j,slotProps:{...a,...z}},[F,V]=qt("typography",{elementType:Br,externalForwardedProps:B,ownerState:Z});let Q=p;return Q!=null&&Q.type!==Br&&!u&&(Q=t.jsx(F,{component:"span",...V,className:We(f.label,V==null?void 0:V.className),children:Q})),t.jsxs(k0,{className:We(f.root,l),ownerState:Z,ref:s,...T,children:[re.cloneElement(c,H),A?t.jsxs("div",{children:[Q,t.jsxs(C0,{ownerState:Z,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}):Q]})});process.env.NODE_ENV!=="production"&&(ao.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:sn,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 Lr=e=>{const{inputProperties:r,label:s,checked:i,onChange:o,fontSize:l}=e;return t.jsx(ao,{label:s,sx:{margin:"0px","& .MuiTypography-root":{fontSize:l||"1vw"}},control:t.jsx(oo,{...r,checked:i,onChange:o,sx:{"&.Mui-checked":{color:"#0047ab"}}})})};Lr.propTypes={inputProperties:n.object,label:n.string};const Xt=e=>{const[r,s]=C.useState(!1),{inputProperties:i}=e,o=l=>{i!=null&&i.handleChange&&typeof i.handleChange=="function"?i.handleChange(l):i!=null&&i.onChange&&typeof i.onChange=="function"&&i.onChange(l)};return t.jsxs(ar,{isfocused:r,style:{...i==null?void 0:i.size},children:[t.jsx(cr,{onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:o,fontStyle:i==null?void 0:i.fontStyle,...i}),t.jsx(m1,{isfocused:r})]})};Xt.propTypes={inputProperties:n.object};const Fr=4,Qe=e=>{const{size:r,label:s,options:i,onchange:o,error:l,inputRadio:a,sizeOptions:c,heightOptions:d="auto",maxHeightOptions:u="auto",isOpen:g,setIsOpen:p,disabledClickOutside:m,keyReset:x,value:v,color:h="white",fontSizeLabel:j="1vw",fontSizeOptions:z="0.9vw",border:D,backgroundColor:T,disableColorOpen:k,disabled:w=!1,Icon:A,displayOptions:H,height:G,paddingDropdownHeader:Z,widthIcon:f,heightIcon:B,placeholderInputSearch:F="Buscar...",borderRadiusRight:V="4px",borderRadiusLeft:Q="4px",labelText:K,subLabelText:te,gap:U="0",justifyContent:_="flex-start",id:I,fontSizeLabelText:y,fontSizeTooltip:N,heightTooltip:P,leftTooltip:S,tooltip:O,topTooltip:E,widthTooltip:L,isTooltipVisible:W,position:R="absolute",withoutOptions:X=!1,sortAlphabetically:J=!0}=e,[se,q]=C.useState(i),[ue,le]=C.useState(i),[fe,Be]=C.useState(!1),we=g!==void 0?g:fe,Re=p!==void 0?p:Be,[ce,oe]=C.useState(""),de=C.useRef(null),ee=()=>!w&&Re(!we);C.useEffect(()=>{if(v!=null)if(v!==""){const ae=i.find(Se=>Se.value===v||Se.label===v);oe(ae?ae.label:v)}else oe("")},[v,i]),C.useEffect(()=>{const ae=J?[...i].sort((Se,Ye)=>{var nt;return(nt=Se.label)==null?void 0:nt.localeCompare(Ye.label)}):[...i];q(ae),le(ae)},[i,J]);const ie=ae=>{oe(ae.label),Re(!1),o&&o({...ae,id:I})},[Me,Ee]=C.useState(""),Ne=ae=>{const Se=ae.target.value;Ee(Se);const Ye=se.filter(jt=>jt.label.toLowerCase().includes(Se.toLowerCase())),nt=J?Ye.sort((jt,ls)=>{var In;return(In=jt.label)==null?void 0:In.localeCompare(ls.label)}):Ye;le(nt)};return C.useEffect(()=>{if(m)return;const ae=Se=>{de.current&&!de.current.contains(Se.target)&&Re(!1)};return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[Re,de,m]),C.useEffect(()=>{x!==void 0&&v==null&&oe("")},[x,v]),C.useEffect(()=>{we||(le(se),Ee(""))},[we,se]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:U,justifyContent:_},children:[K&&t.jsx(Yt,{fontSizeTitle:y,fontSizeTooltip:N,heightTooltip:P,left:S,subTitle:te,title:K,tooltip:O,top:E,widthTooltip:L,isTooltipVisibleProp:W,marginBottom:"5px"}),t.jsxs("div",{ref:de,className:`dropdown ${l?"error":""} ${we&&!k?"open":""} ${w?"disabled":""}`,style:{width:r},children:[t.jsxs("div",{className:`dropdown-header ${h}`,onClick:ee,role:"button","aria-haspopup":"listbox","aria-expanded":we,style:{border:D,backgroundColor:T,cursor:w?"not-allowed":"pointer",opacity:w?.5:1,padding:Z,height:G,borderTopRightRadius:V,borderBottomRightRadius:V,borderTopLeftRadius:Q,borderBottomLeftRadius:Q},children:[t.jsx("span",{style:{fontSize:j},children:ce||s}),A?t.jsx(A,{className:`icon-basicSelect ${we?"up":"down"}`,style:{width:f,height:B}}):t.jsx("i",{className:`arrow-${h} ${we?"up":"down"}`})]}),we&&!X&&t.jsxs("ul",{className:`dropdown-options ${h} ${R}`,role:"listbox",id:`dropdown-options-basicSelect ${I}`,style:{width:c||"100%",height:d,maxHeight:u,display:H},children:[i.length>=Fr&&i.length>0&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(Xt,{inputProperties:{placeholder:F,size:{width:"100%",height:"28px"},type:"text",onChange:ae=>Ne(ae),fontStyle:"italic"}})}),i.length===0&&!X&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:z,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"}),ue.length===0&&Me.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:z,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',Me,'"']}):ue.map((ae,Se)=>t.jsxs("li",{onClick:()=>ie(ae),role:"option",style:{padding:a?"5px 0":"15px",fontSize:z},className:"flex align-center flex-wrap",children:[t.jsxs("div",{className:"flex align-center",style:{fontWeight:"400"},children:[a&&t.jsx(Lr,{inputProperties:{checked:ce===ae.label,onChange:()=>ie(ae)}}),ae.label]}),(ae==null?void 0:ae.description)&&t.jsx(w1,{children:ae==null?void 0:ae.description})]},ae.id||Se))]})]})]})};Qe.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 S0=(e,r)=>{var s,i,o;if(!Array.isArray(e)&&typeof e!="object")throw new Error("Invalid data format. Expected an array or an object.");if(r){if(typeof e=="object"&&!Array.isArray(e))return(i=(s=Object.entries(e))==null?void 0:s.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(u=>({id:u==null?void 0:u.id,name:u==null?void 0:u.name})))==null?void 0:d.sort((u,g)=>{var p;return(p=u.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.")},T0=me.button`
|
|
381
|
+
`,no=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:a,...c}=i,[d,u]=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=Ha(),v=re.useRef(null),h=re.useRef(null),j=re.useCallback(k=>{const{pulsate:w,rippleX:A,rippleY:H,rippleSize:G,cb:V}=k;u(f=>[...f,t.jsx(U1,{classes:{ripple:We(l.ripple,Ke.ripple),rippleVisible:We(l.rippleVisible,Ke.rippleVisible),ripplePulsate:We(l.ripplePulsate,Ke.ripplePulsate),child:We(l.child,Ke.child),childLeaving:We(l.childLeaving,Ke.childLeaving),childPulsate:We(l.childPulsate,Ke.childPulsate)},timeout:Wr,pulsate:w,rippleX:A,rippleY:H,rippleSize:G},g.current)]),g.current+=1,p.current=V},[l]),z=re.useCallback((k={},w={},A=()=>{})=>{const{pulsate:H=!1,center:G=o||w.pulsate,fakeElement:V=!1}=w;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const f=V?null:h.current,B=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,Z,Q;if(G||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)F=Math.round(B.width/2),Z=Math.round(B.height/2);else{const{clientX:K,clientY:te}=k.touches&&k.touches.length>0?k.touches[0]:k;F=Math.round(K-B.left),Z=Math.round(te-B.top)}if(G)Q=Math.sqrt((2*B.width**2+B.height**2)/3),Q%2===0&&(Q+=1);else{const K=Math.max(Math.abs((f?f.clientWidth:0)-F),F)*2+2,te=Math.max(Math.abs((f?f.clientHeight:0)-Z),Z)*2+2;Q=Math.sqrt(K**2+te**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{j({pulsate:H,rippleX:F,rippleY:Z,rippleSize:Q,cb:A})},x.start(L1,()=>{v.current&&(v.current(),v.current=null)})):j({pulsate:H,rippleX:F,rippleY:Z,rippleSize:Q,cb:A})},[o,j,x]),D=re.useCallback(()=>{z({},{pulsate:!0})},[z]),T=re.useCallback((k,w)=>{if(x.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,x.start(0,()=>{T(k,w)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),p.current=w},[x]);return re.useImperativeHandle(s,()=>({pulsate:D,start:z,stop:T}),[D,z,T]),t.jsx(Z1,{className:We(Ke.root,l.root,a),ref:h,...c,children:t.jsx(Pr,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(no.propTypes={center:n.bool,classes:n.object,className:n.string});function Y1(e){return rt("MuiButtonBase",e)}const q1=ct("MuiButtonBase",["root","disabled","focusVisible"]),G1=e=>{const{disabled:r,focusVisible:s,focusVisibleClassName:i,classes:o}=e,a=gt({root:["root",r&&"disabled",s&&"focusVisible"]},Y1,o);return s&&i&&(a.root+=` ${i}`),a},K1=Fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.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"},[`&.${q1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ro=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:a,className:c,component:d="button",disabled:u=!1,disableRipple:g=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:x,LinkComponent:v="a",onBlur:h,onClick:j,onContextMenu:z,onDragLeave:D,onFocus:T,onFocusVisible:k,onKeyDown:w,onKeyUp:A,onMouseDown:H,onMouseLeave:G,onMouseUp:V,onTouchEnd:f,onTouchMove:B,onTouchStart:F,tabIndex:Z=0,TouchRippleProps:Q,touchRippleRef:K,type:te,...U}=i,_=re.useRef(null),I=D1(),y=Yn(I.ref,K),[N,P]=re.useState(!1);u&&N&&P(!1),re.useImperativeHandle(o,()=>({focusVisible:()=>{P(!0),_.current.focus()}}),[]);const S=I.shouldMount&&!g&&!u;re.useEffect(()=>{N&&m&&!g&&I.pulsate()},[g,m,N,I]);const O=ot(I,"start",H,p),E=ot(I,"stop",z,p),L=ot(I,"stop",D,p),W=ot(I,"stop",V,p),R=ot(I,"stop",ee=>{N&&ee.preventDefault(),G&&G(ee)},p),X=ot(I,"start",F,p),J=ot(I,"stop",f,p),se=ot(I,"stop",B,p),q=ot(I,"stop",ee=>{Ps(ee.target)||P(!1),h&&h(ee)},!1),ue=on(ee=>{_.current||(_.current=ee.currentTarget),Ps(ee.target)&&(P(!0),k&&k(ee)),T&&T(ee)}),le=()=>{const ee=_.current;return d&&d!=="button"&&!(ee.tagName==="A"&&ee.href)},fe=on(ee=>{m&&!ee.repeat&&N&&ee.key===" "&&I.stop(ee,()=>{I.start(ee)}),ee.target===ee.currentTarget&&le()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&le()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),j&&j(ee))}),Be=on(ee=>{m&&ee.key===" "&&N&&!ee.defaultPrevented&&I.stop(ee,()=>{I.pulsate(ee)}),A&&A(ee),j&&ee.target===ee.currentTarget&&le()&&ee.key===" "&&!ee.defaultPrevented&&j(ee)});let we=d;we==="button"&&(U.href||U.to)&&(we=v);const Re={};we==="button"?(Re.type=te===void 0?"button":te,Re.disabled=u):(!U.href&&!U.to&&(Re.role="button"),u&&(Re["aria-disabled"]=u));const ce=Yn(s,_),oe={...i,centerRipple:l,component:d,disabled:u,disableRipple:g,disableTouchRipple:p,focusRipple:m,tabIndex:Z,focusVisible:N},de=G1(oe);return t.jsxs(K1,{as:we,className:We(de.root,c),ownerState:oe,onBlur:q,onClick:j,onContextMenu:E,onFocus:ue,onKeyDown:fe,onKeyUp:Be,onMouseDown:O,onMouseLeave:R,onMouseUp:W,onDragLeave:L,onTouchEnd:J,onTouchMove:se,onTouchStart:X,ref:ce,tabIndex:u?-1:Z,type:te,...Re,...U,children:[a,S?t.jsx(no,{ref:y,center:l,...Q}):null]})});function ot(e,r,s,i=!1){return on(o=>(s&&s(o),i||e[r](o),!0))}process.env.NODE_ENV!=="production"&&(ro.propTypes={action:sn,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:Pa,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 X1(e){return rt("PrivateSwitchBase",e)}ct("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function qt(e,r){const{className:s,elementType:i,ownerState:o,externalForwardedProps:l,internalForwardedProps:a,shouldForwardComponentProp:c=!1,...d}=r,{component:u,slots:g={[e]:void 0},slotProps:p={[e]:void 0},...m}=l,x=g[e]||i,v=Xa(p[e],o),{props:{component:h,...j},internalRef:z}=Ka({className:s,...d,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:v}),D=Yn(z,v==null?void 0:v.ref,r.ref),T=e==="root"?h||u:h,k=qa(x,{...e==="root"&&!u&&!g[e]&&a,...e!=="root"&&!g[e]&&a,...j,...T&&!c&&{as:T},...T&&c&&{component:T},ref:D},o);return[x,k]}const J1=e=>{const{classes:r,checked:s,disabled:i,edge:o}=e,l={root:["root",s&&"checked",i&&"disabled",o&&`edge${Oe(o)}`],input:["input"]};return gt(l,X1,r)},Q1=Fe(ro,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:r})=>e==="start"&&r.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:r})=>e==="end"&&r.size!=="small",style:{marginRight:-12}}]}),e0=Fe("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}),$r=re.forwardRef(function(r,s){const{autoFocus:i,checked:o,checkedIcon:l,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:g,id:p,inputProps:m,inputRef:x,name:v,onBlur:h,onChange:j,onFocus:z,readOnly:D,required:T=!1,tabIndex:k,type:w,value:A,slots:H={},slotProps:G={},...V}=r,[f,B]=Ba({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),F=Ar(),Z=E=>{z&&z(E),F&&F.onFocus&&F.onFocus(E)},Q=E=>{h&&h(E),F&&F.onBlur&&F.onBlur(E)},K=E=>{if(E.nativeEvent.defaultPrevented)return;const L=E.target.checked;B(L),j&&j(E,L)};let te=c;F&&typeof te>"u"&&(te=F.disabled);const U=w==="checkbox"||w==="radio",_={...r,checked:f,disabled:te,disableFocusRipple:d,edge:u},I=J1(_),y={slots:H,slotProps:{input:m,...G}},[N,P]=qt("root",{ref:s,elementType:Q1,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...y,component:"span",...V},getSlotProps:E=>({...E,onFocus:L=>{var W;(W=E.onFocus)==null||W.call(E,L),Z(L)},onBlur:L=>{var W;(W=E.onBlur)==null||W.call(E,L),Q(L)}}),ownerState:_,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:te,role:void 0,tabIndex:null}}),[S,O]=qt("input",{ref:x,elementType:e0,className:I.input,externalForwardedProps:y,getSlotProps:E=>({onChange:L=>{var W;(W=E.onChange)==null||W.call(E,L),K(L)}}),ownerState:_,additionalProps:{autoFocus:i,checked:o,defaultChecked:a,disabled:te,id:U?p:void 0,name:v,readOnly:D,required:T,tabIndex:k,type:w,...w==="checkbox"&&A===void 0?{}:{value:A}}});return t.jsxs(N,{...P,children:[t.jsx(S,{...O}),f?l:g]})});process.env.NODE_ENV!=="production"&&($r.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:sn,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 t0=_e(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"),n0=_e(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"),r0=Fe("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Zt})({position:"relative",display:"flex"}),s0=Fe(t0,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),i0=Fe(n0,{name:"MuiRadioButtonIcon"})(xt(({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 _r(e){const{checked:r=!1,classes:s={},fontSize:i}=e,o={...e,checked:r};return t.jsxs(r0,{className:s.root,ownerState:o,children:[t.jsx(s0,{fontSize:i,className:s.background,ownerState:o}),t.jsx(i0,{fontSize:i,className:s.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(_r.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});const so=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(so.displayName="RadioGroupContext");function o0(){return re.useContext(so)}function l0(e){return rt("MuiRadio",e)}const io=ct("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);function a0(e){return typeof e.main=="string"}function c0(e,r=[]){if(!a0(e))return!1;for(const s of r)if(!e.hasOwnProperty(s)||typeof e[s]!="string")return!1;return!0}function Gt(e=[]){return([,r])=>r&&c0(r,e)}const d0=e=>{const{classes:r,color:s,size:i}=e,o={root:["root",`color${Oe(s)}`,i!=="medium"&&`size${Oe(i)}`]};return{...r,...gt(o,l0,r)}},h0=Fe($r,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.size!=="medium"&&r[`size${Oe(s.size)}`],r[`color${Oe(s.color)}`]]}})(xt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${io.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})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[r].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r,disabled:!1},style:{[`&.${io.checked}`]:{color:(e.vars||e).palette[r].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function u0(e,r){return typeof r=="object"&&r!==null?e===r:String(e)===String(r)}const f0=t.jsx(_r,{checked:!0}),p0=t.jsx(_r,{}),oo=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiRadio"}),{checked:o,checkedIcon:l=f0,color:a="primary",icon:c=p0,name:d,onChange:u,size:g="medium",className:p,disabled:m,disableRipple:x=!1,slots:v={},slotProps:h={},inputProps:j,...z}=i,D=Ar();let T=m;D&&typeof T>"u"&&(T=D.disabled),T??(T=!1);const k={...i,disabled:T,disableRipple:x,color:a,size:g},w=d0(k),A=o0();let H=o;const G=$a(u,A&&A.onChange);let V=d;A&&(typeof H>"u"&&(H=u0(A.value,i.value)),typeof V>"u"&&(V=A.name));const f=h.input??j,[B,F]=qt("root",{ref:s,elementType:h0,className:We(w.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:h,...z},getSlotProps:Z=>({...Z,onChange:(Q,...K)=>{var te;(te=Z.onChange)==null||te.call(Z,Q,...K),G(Q,...K)}}),ownerState:k,additionalProps:{type:"radio",icon:re.cloneElement(c,{fontSize:c.props.fontSize??g}),checkedIcon:re.cloneElement(l,{fontSize:l.props.fontSize??g}),disabled:T,name:V,checked:H,slots:v,slotProps:{input:typeof f=="function"?f(k):f}}});return t.jsx(B,{...F,classes:w})});process.env.NODE_ENV!=="production"&&(oo.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:sn,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 g0(e){return rt("MuiTypography",e)}ct("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},y0=a1(),x0=e=>{const{align:r,gutterBottom:s,noWrap:i,paragraph:o,variant:l,classes:a}=e,c={root:["root",l,e.align!=="inherit"&&`align${Oe(r)}`,s&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return gt(c,g0,a)},v0=Fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.variant&&r[s.variant],s.align!=="inherit"&&r[`align${Oe(s.align)}`],s.noWrap&&r.noWrap,s.gutterBottom&&r.gutterBottom,s.paragraph&&r.paragraph]}})(xt(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([s,i])=>s!=="inherit"&&i&&typeof i=="object").map(([s,i])=>({props:{variant:s},style:i})),...Object.entries(e.palette).filter(Gt()).map(([s])=>({props:{color:s},style:{color:(e.vars||e).palette[s].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,s])=>typeof s=="string").map(([s])=>({props:{color:`text${Oe(s)}`},style:{color:(e.vars||e).palette.text[s]}})),{props:({ownerState:s})=>s.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:s})=>s.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:s})=>s.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:s})=>s.paragraph,style:{marginBottom:16}}]}})),lo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Br=re.forwardRef(function(r,s){const{color:i,...o}=vt({props:r,name:"MuiTypography"}),l=!m0[i],a=y0({...o,...l&&{color:i}}),{align:c="inherit",className:d,component:u,gutterBottom:g=!1,noWrap:p=!1,paragraph:m=!1,variant:x="body1",variantMapping:v=lo,...h}=a,j={...a,align:c,color:i,className:d,component:u,gutterBottom:g,noWrap:p,paragraph:m,variant:x,variantMapping:v},z=u||(m?"p":v[x]||lo[x])||"span",D=x0(j);return t.jsx(v0,{as:z,ref:s,className:We(D.root,d),...h,ownerState:j,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...h.style}})});process.env.NODE_ENV!=="production"&&(Br.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 b0(e){return rt("MuiFormControlLabel",e)}const Kt=ct("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function j0({props:e,states:r,muiFormControl:s}){return r.reduce((i,o)=>(i[o]=e[o],s&&typeof e[o]>"u"&&(i[o]=s[o]),i),{})}const w0=e=>{const{classes:r,disabled:s,labelPlacement:i,error:o,required:l}=e,a={root:["root",s&&"disabled",`labelPlacement${Oe(i)}`,o&&"error",l&&"required"],label:["label",s&&"disabled"],asterisk:["asterisk",o&&"error"]};return gt(a,b0,r)},k0=Fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[{[`& .${Kt.label}`]:r.label},r.root,r[`labelPlacement${Oe(s.labelPlacement)}`]]}})(xt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Kt.disabled}`]:{cursor:"default"},[`& .${Kt.label}`]:{[`&.${Kt.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:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),C0=Fe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(xt(({theme:e})=>({[`&.${Kt.error}`]:{color:(e.vars||e).palette.error.main}}))),ao=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiFormControlLabel"}),{checked:o,className:l,componentsProps:a={},control:c,disabled:d,disableTypography:u,inputRef:g,label:p,labelPlacement:m="end",name:x,onChange:v,required:h,slots:j={},slotProps:z={},value:D,...T}=i,k=Ar(),w=d??c.props.disabled??(k==null?void 0:k.disabled),A=h??c.props.required,H={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(K=>{typeof c.props[K]>"u"&&typeof i[K]<"u"&&(H[K]=i[K])});const G=j0({props:i,muiFormControl:k,states:["error"]}),V={...i,disabled:w,labelPlacement:m,required:A,error:G.error},f=w0(V),B={slots:j,slotProps:{...a,...z}},[F,Z]=qt("typography",{elementType:Br,externalForwardedProps:B,ownerState:V});let Q=p;return Q!=null&&Q.type!==Br&&!u&&(Q=t.jsx(F,{component:"span",...Z,className:We(f.label,Z==null?void 0:Z.className),children:Q})),t.jsxs(k0,{className:We(f.root,l),ownerState:V,ref:s,...T,children:[re.cloneElement(c,H),A?t.jsxs("div",{children:[Q,t.jsxs(C0,{ownerState:V,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}):Q]})});process.env.NODE_ENV!=="production"&&(ao.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:sn,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 Lr=e=>{const{inputProperties:r,label:s,checked:i,onChange:o,fontSize:l}=e;return t.jsx(ao,{label:s,sx:{margin:"0px","& .MuiTypography-root":{fontSize:l||"1vw"}},control:t.jsx(oo,{...r,checked:i,onChange:o,sx:{"&.Mui-checked":{color:"#0047ab"}}})})};Lr.propTypes={inputProperties:n.object,label:n.string};const Xt=e=>{const[r,s]=C.useState(!1),{inputProperties:i}=e,o=l=>{i!=null&&i.handleChange&&typeof i.handleChange=="function"?i.handleChange(l):i!=null&&i.onChange&&typeof i.onChange=="function"&&i.onChange(l)};return t.jsxs(ar,{isfocused:r,style:{...i==null?void 0:i.size},children:[t.jsx(cr,{onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:o,fontStyle:i==null?void 0:i.fontStyle,...i}),t.jsx(m1,{isfocused:r})]})};Xt.propTypes={inputProperties:n.object};const Fr=4,Qe=e=>{const{size:r,label:s,options:i,onchange:o,error:l,inputRadio:a,sizeOptions:c,heightOptions:d="auto",maxHeightOptions:u="auto",isOpen:g,setIsOpen:p,disabledClickOutside:m,keyReset:x,value:v,color:h="white",fontSizeLabel:j="1vw",fontSizeOptions:z="0.9vw",border:D,backgroundColor:T,disableColorOpen:k,disabled:w=!1,Icon:A,displayOptions:H,height:G,paddingDropdownHeader:V,widthIcon:f,heightIcon:B,placeholderInputSearch:F="Buscar...",borderRadiusRight:Z="4px",borderRadiusLeft:Q="4px",labelText:K,subLabelText:te,gap:U="0",justifyContent:_="flex-start",id:I,fontSizeLabelText:y,fontSizeTooltip:N,heightTooltip:P,leftTooltip:S,tooltip:O,topTooltip:E,widthTooltip:L,isTooltipVisible:W,position:R="absolute",withoutOptions:X=!1,sortAlphabetically:J=!0}=e,[se,q]=C.useState(i),[ue,le]=C.useState(i),[fe,Be]=C.useState(!1),we=g!==void 0?g:fe,Re=p!==void 0?p:Be,[ce,oe]=C.useState(""),de=C.useRef(null),ee=()=>!w&&Re(!we);C.useEffect(()=>{if(v!=null)if(v!==""){const ae=i.find(Se=>Se.value===v||Se.label===v);oe(ae?ae.label:v)}else oe("")},[v,i]),C.useEffect(()=>{const ae=J?[...i].sort((Se,Ye)=>{var nt;return(nt=Se.label)==null?void 0:nt.localeCompare(Ye.label)}):[...i];q(ae),le(ae)},[i,J]);const ie=ae=>{oe(ae.label),Re(!1),o&&o({...ae,id:I})},[Me,Ee]=C.useState(""),Ne=ae=>{const Se=ae.target.value;Ee(Se);const Ye=se.filter(jt=>jt.label.toLowerCase().includes(Se.toLowerCase())),nt=J?Ye.sort((jt,ls)=>{var In;return(In=jt.label)==null?void 0:In.localeCompare(ls.label)}):Ye;le(nt)};return C.useEffect(()=>{if(m)return;const ae=Se=>{de.current&&!de.current.contains(Se.target)&&Re(!1)};return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[Re,de,m]),C.useEffect(()=>{x!==void 0&&v==null&&oe("")},[x,v]),C.useEffect(()=>{we||(le(se),Ee(""))},[we,se]),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:U,justifyContent:_},children:[K&&t.jsx(Yt,{fontSizeTitle:y,fontSizeTooltip:N,heightTooltip:P,left:S,subTitle:te,title:K,tooltip:O,top:E,widthTooltip:L,isTooltipVisibleProp:W,marginBottom:"5px"}),t.jsxs("div",{ref:de,className:`dropdown ${l?"error":""} ${we&&!k?"open":""} ${w?"disabled":""}`,style:{width:r},children:[t.jsxs("div",{className:`dropdown-header ${h}`,onClick:ee,role:"button","aria-haspopup":"listbox","aria-expanded":we,style:{border:D,backgroundColor:T,cursor:w?"not-allowed":"pointer",opacity:w?.5:1,padding:V,height:G,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderTopLeftRadius:Q,borderBottomLeftRadius:Q},children:[t.jsx("span",{style:{fontSize:j},children:ce||s}),A?t.jsx(A,{className:`icon-basicSelect ${we?"up":"down"}`,style:{width:f,height:B}}):t.jsx("i",{className:`arrow-${h} ${we?"up":"down"}`})]}),we&&!X&&t.jsxs("ul",{className:`dropdown-options ${h} ${R}`,role:"listbox",id:`dropdown-options-basicSelect ${I}`,style:{width:c||"100%",height:d,maxHeight:u,display:H},children:[i.length>=Fr&&i.length>0&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(Xt,{inputProperties:{placeholder:F,size:{width:"100%",height:"28px"},type:"text",onChange:ae=>Ne(ae),fontStyle:"italic"}})}),i.length===0&&!X&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:z,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"}),ue.length===0&&Me.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:z,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',Me,'"']}):ue.map((ae,Se)=>t.jsxs("li",{onClick:()=>ie(ae),role:"option",style:{padding:a?"5px 0":"15px",fontSize:z},className:"flex align-center flex-wrap",children:[t.jsxs("div",{className:"flex align-center",style:{fontWeight:"400"},children:[a&&t.jsx(Lr,{inputProperties:{checked:ce===ae.label,onChange:()=>ie(ae)}}),ae.label]}),(ae==null?void 0:ae.description)&&t.jsx(w1,{children:ae==null?void 0:ae.description})]},ae.id||Se))]})]})]})};Qe.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 S0=(e,r)=>{var s,i,o;if(!Array.isArray(e)&&typeof e!="object")throw new Error("Invalid data format. Expected an array or an object.");if(r){if(typeof e=="object"&&!Array.isArray(e))return(i=(s=Object.entries(e))==null?void 0:s.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(u=>({id:u==null?void 0:u.id,name:u==null?void 0:u.name})))==null?void 0:d.sort((u,g)=>{var p;return(p=u.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.")},T0=me.button`
|
|
382
382
|
display: flex;
|
|
383
383
|
font-family: Roboto, sans-serif;
|
|
384
384
|
width: 410px;
|
|
@@ -435,7 +435,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
435
435
|
display: flex;
|
|
436
436
|
justify-content: center;
|
|
437
437
|
align-items: center;
|
|
438
|
-
`,Ue=e=>{const{disabled:r,onClick:s,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconProp:c}=e;return t.jsxs(co,{disabled:r,onClick:s,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"}})]})};Ue.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 Vr=({data:e,grouped:r,divideColumns:s=!1,selectButton:i,onChange:o,onChangeFunction:l,label:a,width:c,textButton:d,maxHeight:u,keyReset:g,left:p=!1,minWidthDropdown:m="100%",disabled:x,textOverflow:v=!0,widthDropdown:h,error:j,fontSizeLabelText:z,fontSizeTooltip:D,heightTooltip:T,leftTooltip:k,tooltip:w,topTooltip:A,widthTooltip:H,isTooltipVisible:G,subLabelText:Z,labelText:f,language:B="es",textSelectAll:F="Seleccionar Todo",placeholderSearch:V="Buscar...",isRelative:Q=!1,selectedValues:K,fontSizeLabel:te,fontSizeOptions:U="1vw"})=>{const[_,I]=C.useState([]),[y,N]=C.useState(""),[P,S]=C.useState(!1),O=C.useRef(null),E=C.useRef(!1),L=C.useRef(K!==void 0);C.useEffect(()=>{K!==void 0&&(I(K),L.current=!0)},[K]);const W=S0(e,r),X=Object.values(W).flat().length>=Fr,J=()=>{if(y.trim()==="")return Object.values(W).flat();const ce=y.toLowerCase(),oe=[];return Object.entries(W).forEach(([de,ee])=>{if(!Array.isArray(ee)||ee.length===0)return;if(de.toLowerCase().includes(ce))oe.push(...ee);else{const Me=ee.filter(Ee=>Ee.name.toLowerCase().includes(ce));oe.push(...Me)}}),oe},q=J().length>0,ue=ce=>ce.map(oe=>{let de=null;if(r&&typeof e=="object"&&!Array.isArray(e)){for(const ee of Object.values(e))if(Array.isArray(ee)&&(de=ee.find(ie=>ie.id===oe),de))break}else Array.isArray(e)&&(de=e.find(ee=>ee.id===oe));if(de){const ee={id:de.id,name:de.name};return de.value!==void 0&&(ee.value=de.value),Object.keys(de).forEach(ie=>{Object.prototype.hasOwnProperty.call(ee,ie)||(ee[ie]=de[ie])}),ee}return null}).filter(Boolean),le=ce=>{if(E.current=!0,ce.target.checked){const oe=J(),de=oe.map(Me=>Me.id),ie=[..._.filter(Me=>!oe.some(Ne=>Ne.id===Me)),...de];if(I(ie),o&&o(ie),l){const Me=ue(ie);l(Me)}}else{const de=J().map(ie=>ie.id),ee=_.filter(ie=>!de.includes(ie));if(I(ee),o&&o(ee),l){const ie=ue(ee);l(ie)}}},fe=ce=>{E.current=!0,I(oe=>{const de=oe.includes(ce)?oe.filter(ee=>ee!==ce):[...oe,ce];if(o&&o(de),l){const ee=ue(de);l(ee)}return de})},Be=()=>{if(o&&o(_),l){const ce=ue(_);l(ce)}S(!1)};C.useEffect(()=>{const ce=oe=>{O.current&&!O.current.contains(oe.target)&&S(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[O]),C.useEffect(()=>{P||N("")},[P]);const we=()=>_.map(oe=>{for(const de of Object.values(W)){const ee=de.find(ie=>ie.id===oe);if(ee)return ee.name}return null}).filter(Boolean).join(", ");C.useEffect(()=>{I([]),E.current=!1,K===void 0&&(L.current=!1)},[g,K]),C.useEffect(()=>{if(L.current&&!E.current){const ce=K||[];I(oe=>JSON.stringify(oe.sort())!==JSON.stringify(ce.sort())?ce:oe)}E.current=!1},[K]);const Re=Object.values(W).every(ce=>Array.isArray(ce)&&ce.length===0);return t.jsxs("div",{className:"relative",ref:O,children:[t.jsx(Qe,{label:_.length>0?we():a,onchange:()=>{},options:[],size:c,isOpen:P,setIsOpen:S,disabledClickOutside:!0,disabled:x,error:j,fontSizeLabelText:z,fontSizeTooltip:D,heightTooltip:T,leftTooltip:k,tooltip:w,topTooltip:A,widthTooltip:H,isTooltipVisible:G,labelText:f,subLabelText:Z,fontSizeLabel:te}),P&&t.jsxs("div",{className:"item-filter",style:{left:p?"0":"auto",right:p?"auto":"0",minWidth:m,width:h,position:Q?"relative":"absolute"},children:[t.jsxs("div",{children:[X&&t.jsx("div",{style:{padding:"4px 8px",fontSize:U,backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(Xt,{inputProperties:{placeholder:V,size:{width:"100%",height:"28px"},type:"text",onChange:ce=>N(ce.target.value),fontStyle:"italic"}})}),q&&t.jsx("div",{style:{padding:"0px 15px",fontSize:U,borderBottom:"1px solid #D0D0CE",backgroundColor:(()=>{const ce=J();return ce.length>0&&ce.every(de=>_.includes(de.id))?"#f4f4f4":"transparent"})()},children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{checked:(()=>{const ce=J();return ce.length>0&&(ce==null?void 0:ce.every(oe=>_==null?void 0:_.includes(oe.id)))})(),onChange:le,sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:F,sx:{"& .MuiFormControlLabel-label":{fontSize:U,whiteSpace:v?"nowrap":"normal",overflow:"hidden",textOverflow:v?"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:U,overflowWrap:"break-word"},children:['No se encontraron resultados para "',y,'"']}):(()=>{const ce=Object.entries(W).filter(([oe,de])=>{var Ee;if(!Array.isArray(de)||de.length===0)return!1;if(y.trim()==="")return!0;const ee=y.toLowerCase(),ie=(Ee=oe==null?void 0:oe.toLowerCase())==null?void 0:Ee.includes(ee),Me=de==null?void 0:de.some(Ne=>{var ae,Se;return(Se=(ae=Ne==null?void 0:Ne.name)==null?void 0:ae.toLowerCase())==null?void 0:Se.includes(ee)});return ie||Me});return ce==null?void 0:ce.map(([oe,de],ee)=>t.jsxs("div",{className:"item-group",style:{margin:r&&ee===0?"8px":"0"},children:[oe!=="Ungrouped"&&r&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{style:{fontSize:U,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(Ee=>{var Se,Ye,nt;if((y==null?void 0:y.trim())==="")return!0;const Ne=y==null?void 0:y.toLowerCase();return((Se=oe==null?void 0:oe.toLowerCase())==null?void 0:Se.includes(Ne))?!0:(nt=(Ye=Ee==null?void 0:Ee.name)==null?void 0:Ye.toLowerCase())==null?void 0:nt.includes(Ne)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(Ee=>_==null?void 0:_.includes(Ee.id)))?"#f4f4f4":"transparent"})()},children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{checked:(()=>{const ie=de.filter(Me=>{var ae,Se,Ye;if((y==null?void 0:y.trim())==="")return!0;const Ee=y==null?void 0:y.toLowerCase();return((ae=oe==null?void 0:oe.toLowerCase())==null?void 0:ae.includes(Ee))?!0:(Ye=(Se=Me==null?void 0:Me.name)==null?void 0:Se.toLowerCase())==null?void 0:Ye.includes(Ee)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(Me=>_==null?void 0:_.includes(Me.id)))})(),onChange:ie=>{E.current=!0;const Ee=de.filter(Ne=>{if(y.trim()==="")return!0;const ae=y.toLowerCase();return oe.toLowerCase().includes(ae)?!0:Ne.name.toLowerCase().includes(ae)}).map(Ne=>Ne.id);if(ie.target.checked){const Ne=Ee.filter(Se=>!_.includes(Se)),ae=[..._,...Ne];if(I(ae),o&&o(ae),l){const Se=ue(ae);l(Se)}}else{const Ne=_.filter(ae=>!Ee.includes(ae));if(I(Ne),o&&o(Ne),l){const ae=ue(Ne);l(ae)}}},sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:(()=>{if(r&&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:U,fontWeight:"400",lineHeight:"22px",whiteSpace:v?"nowrap":"normal",overflow:"hidden",textOverflow:v?"ellipsis":"clip"}}})})]}),de.filter(ie=>{if(y.trim()==="")return!0;const Me=y.toLowerCase();return oe.toLowerCase().includes(Me)?!0:ie.name.toLowerCase().includes(Me)}).map(ie=>t.jsx("div",{className:"item",style:{backgroundColor:_.includes(ie.id)?"#f4f4f4":"transparent"},children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{checked:_.includes(ie.id),onChange:()=>fe(ie.id),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:ie.name,sx:{"& .MuiFormControlLabel-label":{fontSize:U,fontWeight:"400",lineHeight:"22px",whiteSpace:v?"nowrap":"normal",overflow:"hidden",textOverflow:v?"ellipsis":"clip"}}})},ie.id))]},oe))})(),Re&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:U,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"})]}),i&&t.jsx("div",{className:"containerButtonSelectAll",children:t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>Be()},children:d})})]})]})};Vr.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 E0=e=>t.jsx(Qe,{color:"grey",...e}),N0=_e(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"),D0=_e(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"),A0=_e(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 O0(e){return rt("MuiCheckbox",e)}const Zr=ct("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),I0=e=>{const{classes:r,indeterminate:s,color:i,size:o}=e,l={root:["root",s&&"indeterminate",`color${Oe(i)}`,`size${Oe(o)}`]},a=gt(l,O0,r);return{...r,...a}},R0=Fe($r,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.indeterminate&&r.indeterminate,r[`size${Oe(s.size)}`],s.color!=="default"&&r[`color${Oe(s.color)}`]]}})(xt(({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})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[r].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r},style:{[`&.${Zr.checked}, &.${Zr.indeterminate}`]:{color:(e.vars||e).palette[r].main},[`&.${Zr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),P0=t.jsx(D0,{}),W0=t.jsx(N0,{}),$0=t.jsx(A0,{}),ho=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiCheckbox"}),{checkedIcon:o=P0,color:l="primary",icon:a=W0,indeterminate:c=!1,indeterminateIcon:d=$0,inputProps:u,size:g="medium",disableRipple:p=!1,className:m,slots:x={},slotProps:v={},...h}=i,j=c?d:a,z=c?d:o,D={...i,disableRipple:p,color:l,indeterminate:c,size:g},T=I0(D),k=v.input??u,[w,A]=qt("root",{ref:s,elementType:R0,className:We(T.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:v,...h},ownerState:D,additionalProps:{type:"checkbox",icon:re.cloneElement(j,{fontSize:j.props.fontSize??g}),checkedIcon:re.cloneElement(z,{fontSize:z.props.fontSize??g}),disableRipple:p,slots:x,slotProps:{input:u1(typeof k=="function"?k(D):k,{"data-indeterminate":c})}}});return t.jsx(w,{...A,classes:T})});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]),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 uo=e=>{const[r,s]=C.useState(!1),[i,o]=C.useState([]),l=C.useRef(null),{options:a,onchange:c,label:d,size:u,error:g,keyReset:p,fontSizeOptions:m="0.9vw",disabled:x,maxHeightOptions:v,labelText:h,subLabelText:j,gap:z="0",fontSizeLabel:D="0.9vw",onChangeFunction:T,id:k,fontSizeLabelText:w,fontSizeTooltip:A,heightTooltip:H,leftTooltip:G,tooltip:Z,topTooltip:f,widthTooltip:B,isTooltipVisible:F,placeholderInputSearch:V="Buscar...",sortAlphabetically:Q=!0}=e,[K,te]=C.useState(a);C.useEffect(()=>{const S=Q?[...a].sort((O,E)=>{var L;return(L=O.label)==null?void 0:L.localeCompare(E.label)}):[...a];te(S)},[a,Q]);const U=S=>{o(O=>O.some(E=>pt.isEqual(E,S))?(c&&c(O.filter(E=>!pt.isEqual(E,S))),T&&T({id:k,value:O.filter(E=>!pt.isEqual(E,S))}),O.filter(E=>!pt.isEqual(E,S))):(c&&c([...O,S]),T&&T({id:k,value:[...O,S]}),[...O,S]))},_=()=>i.length===0?d:i.map(S=>{const O=a.find(E=>pt.isEqual(E.value,S));return O?O.label:""}).filter(Boolean).join(", ");C.useEffect(()=>{o([])},[p]);const I=S=>{l.current&&!l.current.contains(S.target)&&s(!1)};C.useEffect(()=>(document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}),[]),C.useEffect(()=>{if(!r){const S=Q?[...a].sort((O,E)=>{var L;return(L=O.label)==null?void 0:L.localeCompare(E.label)}):[...a];te(S),N("")}},[r,a,Q]);const[y,N]=C.useState(""),P=S=>{const O=S.target.value;N(O);const E=a.filter(W=>W.label.toLowerCase().includes(O.toLowerCase())),L=Q?E.sort((W,R)=>{var X;return(X=W.label)==null?void 0:X.localeCompare(R.label)}):E;te(L)};return t.jsxs("div",{ref:l,className:"relative",style:{width:u},children:[t.jsx(Qe,{label:_(),onchange:()=>{},options:[],size:u,isOpen:r,setIsOpen:s,disabledClickOutside:!0,disabled:x,error:g,labelText:h,gap:z,subLabelText:j,fontSizeLabel:D,fontSizeLabelText:w,fontSizeTooltip:A,heightTooltip:H,leftTooltip:G,tooltip:Z,topTooltip:f,widthTooltip:B,isTooltipVisible:F}),r&&t.jsxs("ul",{className:"multiselect-options",style:{maxHeight:v},children:[a.length>=Fr&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(Xt,{inputProperties:{placeholder:V,size:{width:"100%",height:"28px"},type:"text",onChange:S=>P(S),fontStyle:"italic"}})}),K.length===0&&y.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:m,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',y,'"']}):K.map(S=>t.jsxs("li",{onClick:()=>U(S.value),className:i.some(O=>pt.isEqual(O,S.value))?"selected":"",style:{fontSize:m},children:[t.jsx(ho,{checked:i.some(O=>pt.isEqual(O,S.value)),onChange:O=>{O.stopPropagation(),U(S.value)},onClick:()=>U(S.value),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),S.label]},S.value.title||S.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"})]})]})};uo.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};const fo=e=>t.jsx(Qe,{...e,inputRadio:!0});fo.propTypes={size:n.string,options:n.array,label:n.string,onchange:n.func,error:n.bool};const po=({width:e,fontSize:r,onchange:s})=>{const[i,o]=C.useState(!1),[l,a]=C.useState(""),c=C.useRef(null),d=x=>{x.preventDefault(),o(!0)},u=x=>{x.preventDefault(),o(!1)},g=x=>{if(x.preventDefault(),o(!1),x.dataTransfer.files&&x.dataTransfer.files.length>0){const v=x.dataTransfer.files[0];s(v),a(v.name)}},p=x=>{if(x.target.files&&x.target.files.length>0){const v=x.target.files[0];s(v),a(v.name)}},m=()=>{var x;(x=c.current)==null||x.click()};return t.jsxs("div",{className:`drag-drop-upload ${i?"dragging":""}`,onDragOver:d,onDragLeave:u,onDrop:g,onClick:m,style:{width:e},children:[t.jsx(Sn,{}),l?t.jsx("p",{className:"upload-text file-name",style:{fontSize:r},children:l}):t.jsxs("p",{className:"upload-text",style:{fontSize:r},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"})]})};po.propTypes={width:n.string,fontSize:n.string,onchange:n.func};const go=e=>{const{inputProperties:r,size:s,height:i="200px"}=e,[o,l]=C.useState(0),a=c=>{l(c.target.value.length),r.onChange&&r.onChange(c)};return t.jsxs(C1,{style:{width:s,height:i},children:[t.jsx("textarea",{...r,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=e=>{var s,i,o;const{inputProperties:r}=e;return t.jsxs(v1,{style:{...r==null?void 0:r.size},isSuccessful:(s=r==null?void 0:r.state)==null?void 0:s.success,children:[t.jsx(b1,{...r}),((i=r==null?void 0:r.state)==null?void 0:i.error)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(xi,{children:"*"})}),((o=r==null?void 0:r.state)==null?void 0:o.success)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(xi,{style:{color:"#009470",fontSize:"15px"},children:"✔"})})]})};mo.propTypes={inputProperties:n.object};const yo=({label:e,onchange:r,textSelect:s,width:i,labelText:o,subLabelText:l,fontSize:a})=>{const[c,d]=C.useState("00"),[u,g]=C.useState("00"),[p,m]=C.useState(!1),[x,v]=C.useState(e??"Hora Inicio"),h=C.useRef(),j=C.useRef(),z=Array.from({length:24},(A,H)=>H.toString().padStart(2,"0")),D=Array.from({length:60},(A,H)=>H.toString().padStart(2,"0"));C.useEffect(()=>{const A=H=>{j.current&&!j.current.contains(H.target)&&m(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[]);const T=()=>{m(!1);const A=`${c}:${u}`;v(A),r(A)},k=A=>{let H=A.target.value.replace(/\D/g,"");H.length>4&&(H=H.slice(0,4));let G=H;if(H.length>=3&&(G=`${H.slice(0,2)}:${H.slice(2)}`),v(G),G.length===5){const[Z,f]=G.split(":");parseInt(Z,10)>=0&&parseInt(Z,10)<24&&parseInt(f,10)>=0&&parseInt(f,10)<60?(d(Z),g(f),r(G)):v(`${c}:${u}`)}},w=()=>{m(!p),h.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:j,style:{width:i},children:[t.jsxs("div",{className:"time-picker-input-wrapper",children:[t.jsx("input",{type:"text",ref:h,value:x,onChange:k,placeholder:"00:00",className:"time-picker-input",maxLength:5,style:{fontSize:a}}),t.jsx("button",{className:"time-picker-button",onClick:w,"aria-label":"Abrir selector de tiempo",children:t.jsx(ki,{})})]}),p&&t.jsxs("div",{className:"time-picker-dropdown",children:[t.jsxs("div",{className:"time-columns",children:[t.jsx("div",{className:"time-column",children:z.map(A=>t.jsx("div",{className:`time-option ${c===A?"selected":""}`,onClick:()=>d(A),children:A},A))}),t.jsx("div",{className:"time-column",children:D.map(A=>t.jsx("div",{className:`time-option ${u===A?"selected":""}`,onClick:()=>g(A),children:A},A))})]}),t.jsx("button",{className:"ok-button",onClick:T,children:s??"Seleccionar"})]})]})]})};yo.propTypes={label:n.string,onchange:n.func,textSelect:n.string,width:n.string,labelText:n.string,subLabelText:n.any,fontSize:n.string};const xo=e=>{var H;const[r,s]=C.useState(!1),{label:i,inputProperties:o,error:l,fontSizeLabel:a,subLabel:c,fontSizeInput:d,disabled:u,fontSizeTooltip:g,heightTooltip:p,leftTooltip:m,tooltip:x,topTooltip:v,widthTooltip:h,isTooltipVisible:j,keyReset:z}=e,D=G=>{o.handleChange&&o.handleChange(G)},T={...o};if(T.style&&T.style.width){const{width:G,...Z}=T.style;T.style=Z}const k=o==null?void 0:o.value,[w,A]=C.useState(k??"");return C.useEffect(()=>{k!==void 0&&A(k)},[k]),C.useEffect(()=>{z&&A("")},[z]),t.jsxs("div",{style:{width:(H=o==null?void 0:o.style)==null?void 0:H.width},children:[i&&t.jsx(Yt,{fontSizeTitle:a,fontSizeTooltip:g,heightTooltip:p,left:m,subTitle:c,title:i,tooltip:x,top:v,widthTooltip:h,isTooltipVisibleProp:j,marginBottom:"5px",htmlFor:(o==null?void 0:o.id)||"text-input"}),t.jsx(ar,{isfocused:r,haserror:l,style:{width:"100%"},children:t.jsx(cr,{id:o==null?void 0:o.id,onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:D,fontSizeInput:d,...k!==void 0?{value:w}:{},disabled:u,style:{width:"90%"},...T})}),l&&t.jsx(yi,{children:l})]})};xo.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 vo=e=>t.jsx("button",{className:"button-search",...e,children:t.jsx(y1,{})}),bo=e=>{const[r,s]=C.useState(!1),[i,o]=C.useState(""),{label:l,inputProperties:a,error:c,fontSizeLabel:d,borderRadiusRight:u="4px",borderRadiusLeft:g="4px"}=e,p=x=>{o(x.target.value),a.handleChange(x)},m=x=>{x.preventDefault();const v={target:{value:i,id:a.id||"text-input"},preventDefault:()=>{}};a.handleChange(v)};return t.jsxs("form",{style:{...a==null?void 0:a.size},onSubmit:m,children:[l&&t.jsx(x1,{htmlFor:a.id||"text-input",style:{fontSize:d},children:l}),t.jsxs(ar,{isfocused:r,haserror:c,disabled:a.disabled,style:{width:"100%",position:"relative",borderTopRightRadius:u,borderBottomRightRadius:u,borderTopLeftRadius:g,borderBottomLeftRadius:g},children:[t.jsx(cr,{onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:p,value:i,...a}),t.jsx("div",{style:{display:"flex",alignItems:"center",position:"absolute",right:"0px",height:"100%"},children:t.jsx(vo,{disabled:a.disabled})})]}),c&&t.jsx(yi,{children:c})]})};bo.propTypes={label:n.string,inputProperties:n.object,error:n.bool,fontSizeLabel:n.string,borderRadiusRight:n.string,borderRadiusLeft:n.string};const _0=()=>{const[e,r]=C.useState(15),s=()=>{r(l=>l+1)},i=()=>{r(l=>l-1)},o=l=>{const a=parseInt(l.target.value);isNaN(a)||r(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:s,className:"spinner-button up",children:"▲"}),t.jsx("button",{onClick:i,className:"spinner-button down",children:"▼"})]})]})},jo=({options:e,value:r,onChange:s,width:i,disabled:o,height:l,widthIcon:a,heightIcon:c,keyReset:d})=>{const u=({value:p})=>{s(p)},g=p=>p.map(m=>({label:m.toString(),value:m}));return t.jsx(Qe,{label:r,onchange:u,options:g(e),Icon:$i,size:i,disabled:o,paddingDropdownHeader:"0 0.5vw",height:l,widthIcon:a,heightIcon:c,keyReset:d,sortAlphabetically:!1})};jo.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};const wo=e=>{const{data:r,onChange:s,label:i,size:o,error:l,keyReset:a,fontSizeOptions:c="0.9vw",fontSizeTitleOptions:d="1vw",fontSizeLabel:u,disabled:g,maxHeightOptions:p,value:m,hasDivisions:x,fontSizeLabelText:v,fontSizeTooltip:h,heightTooltip:j,leftTooltip:z,tooltip:D,topTooltip:T,widthTooltip:k,isTooltipVisible:w,labelText:A,subLabelText:H}=e,[G,Z]=C.useState(!1),f=C.useRef(null),[B,F]=C.useState(m||""),V=K=>{F(K),Z(!1),s&&s(K)};C.useEffect(()=>{F("")},[a]);const Q=K=>{f.current&&!f.current.contains(K.target)&&Z(!1)};return C.useEffect(()=>(document.addEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)}),[]),t.jsxs("div",{ref:f,className:"relative",style:{width:o},children:[t.jsx(Qe,{label:B.label||i,onchange:()=>{},options:[],size:o,isOpen:G,setIsOpen:Z,disabledClickOutside:!0,disabled:g,error:l,fontSizeLabel:u,fontSizeLabelText:v,fontSizeTooltip:h,heightTooltip:j,leftTooltip:z,tooltip:D,topTooltip:T,widthTooltip:k,isTooltipVisible:w,labelText:A,subLabelText:H}),G&&t.jsx("ul",{className:"item-filter",style:{width:"100%",maxHeight:p},children:r.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(te=>t.jsx("div",{onClick:()=>V(te),className:"item",style:{padding:"15px 20px",width:"100%",fontSize:c,cursor:"pointer",fontWeight:"400"},children:te.label},te.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=({onChange:e,text:r,subText:s,fontSize:i,fileTypes:o,id:l,ref:a=null,multiple:c=!1})=>{const d=a||C.useRef(null),[u,g]=C.useState(!1),p=j=>{j.preventDefault(),g(!0)},m=j=>{j.preventDefault(),g(!1)},x=j=>{j.preventDefault(),g(!1),j.dataTransfer.files&&j.dataTransfer.files[0]&&e({file:j.dataTransfer.files[0],id:l})},v=()=>{d.current.click()},h=j=>{j.target.files&&j.target.files[0]&&e({file:j.target.files[0],id:l}),j.target.value=""};return t.jsxs("div",{className:`file-upload ${u?"dragging":""}`,onDragOver:p,onDragLeave:m,onDrop:x,onClick:v,style:{backgroundColor:"white"},children:[t.jsx("input",{ref:d,type:"file",className:"file-input",accept:o,onChange:h,multiple:c}),t.jsxs("div",{className:"flex align-center",style:{gap:"0.8vw"},children:[t.jsx(Sn,{fill:"#8598AD"}),t.jsxs("div",{className:"flex gap-05",style:{borderBottom:"1px solid #8598AD"},children:[t.jsx("p",{className:"upload-text",style:{fontSize:i,borderBottom:"0px",paddingRight:"4px"},children:r}),t.jsx("p",{className:"sub-text",style:{fontSize:i,borderBottom:"0px"},children:s})]})]})]})};ko.propTypes={onChange:n.func,text:n.string,subText:n.string,fontSize:n.string,fileTypes:n.string,id:n.string,multiple:n.bool};const Co=({handleReset:e,disabled:r})=>t.jsx("button",{className:`button-reset ${r?"disabled":""}`,onClick:()=>e(),disabled:r,children:t.jsx(Cn,{})});Co.propTypes={handleReset:n.func,disabled:n.bool};const So=({width:e})=>t.jsxs(z0,{style:{backgroundColor:"#f5f6fa",width:e},children:[t.jsx(Hr,{children:t.jsx(ur,{width:"100%",height:"30px"})}),t.jsx(Hr,{children:t.jsx(hr,{width:"100%",height:"30px"})}),t.jsx(Hr,{children:t.jsx(dr,{width:"60%",height:"30px"})})]});So.propTypes={width:n.string};const B0={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 r=e==null?void 0:e.IconProp;return t.jsx(me.ThemeProvider,{theme:B0,children:t.jsxs(T0,{...e.buttonProperties,children:[r&&t.jsx(r,{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 To=e=>{const r={...e,buttonProperties:{backgroundcolor:"#119672",...e.buttonProperties,style:{color:"white",...e.buttonProperties.style}}};return t.jsx(Ue,{...r,children:e.children})};To.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Mo=({onClick:e,width:r,fontSize:s,disabled:i,children:o="DESCARGAR",icon:l,diseableOption:a})=>{const[c,d]=C.useState(!1),u=C.useRef(null);C.useEffect(()=>{const p=m=>{u.current&&!u.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:u,style:{width:r},children:[t.jsx("button",{className:"download-button",onClick:()=>!i&&d(!c),children:t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.2vw",fontSize:s},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:r},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"})]})]})};Mo.propTypes={onClick:n.func,width:n.string,fontSize:n.string,disabled:n.bool,children:n.string,icon:n.element,diseableOption:n.object};const zo=({onclick:e,height:r})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:r},children:t.jsx(Ei,{})});zo.propTypes={onclick:n.func,height:n.string};const Eo=({onclick:e,height:r})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:r},children:t.jsx(Ni,{})});Eo.propTypes={onclick:n.func,height:n.string};const L0=_e(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"),No=e=>{const s={IconProp:L0,...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",border:"1px solid #21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Jt,{...s,children:e.children})};No.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Do=e=>{const s={...e,IconProp:kn};return t.jsx(Jt,{...s})};Do.propTypes={buttonProperties:n.shape({disabled:n.bool}),children:n.node||n.string,IconProp:n.node};const Ur=e=>t.jsx(M0,{...e.buttonProperties,children:e.children});Ur.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string};const Nt=e=>{const r={...e,buttonProperties:{backgroundcolor:"white",border:"1px solid #33a4dd",color:"#33a4dd",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Ue,{...r})};Nt.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const F0=_e(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"),Ao=e=>{const s={...e,IconProp:F0};return t.jsx(Jt,{...s})};Ao.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string,IconProp:n.node};const Oo=e=>{const{children:r,onChange:s,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"},u=g=>{const p=g.target.files[0];s(p)};return t.jsxs("div",{children:[t.jsx("input",{type:"file",id:a,accept:"image/*",disabled:i,style:{display:"none"},onChange:g=>u(g)}),t.jsxs("label",{htmlFor:a,style:c,children:[r,t.jsx(kn,{style:d})]})]})};Oo.propTypes={children:n.node||n.string,onChange:n.func,disabled:n.bool,width:n.string,fontSize:n.string,id:n.string};const Dn=({buttonProperties:e={},...r})=>{const s={backgroundcolor:"transparent",border:"1px solid #fcb035",color:"black",...e,style:{...e.style}};return t.jsx(Ue,{...r,buttonProperties:s,children:r.children})};Dn.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const H0=_e(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"),Io=({marginBottom:e,onClick:r})=>t.jsx(H0,{sx:{color:"#8598ad",width:20,height:20,marginBottom:e,cursor:"pointer"},onClick:r});Io.propTypes={marginBottom:n.string,onClick:n.func};const Ro=e=>{const r={...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Ur,{...r})};Ro.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Yr=({children:e,buttonProperties:r,widthIcon:s="70%",icon:i=t.jsx(xr,{width:s})})=>t.jsxs(Nt,{buttonProperties:r,children:[i,e]});Yr.propTypes={children:n.string,icon:n.node,buttonProperties:n.object,widthIcon:n.string};const Po=({onChange:e,isOpen:r})=>{const[s,i]=C.useState(r),o=()=>{i(!s),e&&e(s)};return t.jsx("button",{className:"reset-styles-button",onClick:o,children:s?t.jsx(br,{}):t.jsx(vr,{})})};Po.propTypes={onChange:n.func,isOpen:n.bool};const qr=({onChange:e,isOpen:r,color:s,hasHover:i,padding:o,display:l,height:a,width:c})=>t.jsx("button",{type:"button",onClick:()=>e(!r),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 ${r?"up":"down"}`,style:{borderColor:s,padding:o}})});qr.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 Wo=({className:e,text:r,onClick:s})=>t.jsxs("button",{className:`button-clean-filters ${e} `,onClick:s,children:[t.jsx(kr,{})," ",t.jsx("span",{children:r})]});Wo.propTypes={className:n.string,text:n.string,onClick:n.func};const $o=({textOpen:e,textClose:r,isOpen:s,onChange:i,className:o})=>{const[l,a]=C.useState(s);C.useEffect(()=>{a(s)},[s]);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?r:e}),l?t.jsx(br,{}):t.jsx(vr,{})]})};$o.propTypes={textOpen:n.string,textClose:n.string,isOpen:n.bool,onChange:n.func,className:n.string};const _o=({children:e,widthIcon:r="10%",width:s,icon:i=t.jsx(Zi,{width:r}),arrowRightIcon:o=t.jsx(Mr,{width:r}),hasOptions:l=!1,onClick:a,onOptionSelect:c,options:d,className:u,...g})=>{const[p,m]=C.useState(!1),x=C.useRef(null),v=h=>{m(!1),c==null||c(h)};return C.useEffect(()=>{const h=j=>{x.current&&!x.current.contains(j.target)&&m(!1)};return p&&document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[p]),t.jsxs("button",{ref:x,className:`button-white-border-blue-send-email ${u}`,...g,style:{width:s},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:s},children:d.map(h=>t.jsx("li",{className:"dropdown-options--button-white-border-li",onClick:()=>v(h),children:h.value},h.id))})]})};_o.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 Bo=e=>{const{disabled:r,onClick:s,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconLeft:c=t.jsx(Ui,{}),IconRight:d=t.jsx(Mr,{})}=e;return t.jsxs(co,{disabled:r,onClick:s,backgroundcolor:i,border:o,color:l,className:"VibrantBlueStyle ButtonVibrantBlueSend",style:{...a,display:"flex",alignItems:"center",gap:"15px",justifyContent:"center"},children:[c,e.children,d]})};Bo.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 Gr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-active",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(Mn,{}),"Activo"]});Gr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Kr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-inactive",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(Mi,{}),"Inactivo"]});Kr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Xr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-canceled",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(Di,{}),"Cancelada"]});Xr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Jr=({width:e,fontSize:r,icon:s,marginAuto:i,height:o})=>{const[l,a]=C.useState(!1);return t.jsxs("div",{className:"state-basic states-completed",style:{width:e,fontSize:r,margin:i?"auto":"",height:o},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[t.jsx(Ti,{}),"Finalizada",s&&t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(En,{height:27,background:"#d8f6c4",fillIcon:"#ff0000"})}),s&&l&&t.jsx("div",{className:"absolute hoverStates",children:"Devoluciones"})]})};Jr.propTypes={width:n.string,fontSize:n.string,icon:n.bool,marginAuto:n.bool,height:n.string};const Qr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-inTransit",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(zi,{}),"En tránsito",t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(En,{height:i})})]});Qr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Lo=({children:e,className:r="",classNameIcon:s="",fill:i="#54AC1B",...o})=>t.jsxs("div",{className:`state-basic ${r}`.trim(),...o,children:[t.jsx(Mn,{className:s,fill:i}),e]});Lo.propTypes={children:n.node,className:n.string,classNameIcon:n.string,fill:n.string};const ft=_e(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"),Fo=({width:e,fontSize:r,children:s,onDelete:i,background:o,fontWeight:l,id:a,className:c})=>t.jsxs("div",{className:`chip ${c}`,style:{width:e,fontSize:r,background:o,fontWeight:l},children:[s,t.jsx("button",{className:"reset-styles-button",onClick:()=>i({children:s,id:a}),children:t.jsx(ft,{sx:{color:"#8598ad",height:"16px"}})})]});Fo.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 es=({children:e,onChange:r,isSelect:s,height:i})=>t.jsx("div",{className:`toggle-chip ${s?"active":""}`,style:{height:i},onClick:()=>r({isSelect:!s,value:e}),children:e});es.propTypes={children:n.any,onChange:n.func,isSelect:n.bool,height:n.string};const Ho=({children:e,className:r=""})=>t.jsx("div",{className:`chip-section ${r}`,children:e});Ho.propTypes={children:n.node,className:n.string};const Vo=({text:e,icon:r,className:s,color:i,background:o,onDelete:l})=>t.jsxs("div",{className:`chip chip-with-icon ${s}`,style:{background:o},children:[r,t.jsx("span",{className:"chip-text",children:e}),l&&t.jsx("button",{className:"reset-styles-button",onClick:()=>l(e),children:t.jsx(ft,{sx:{color:i,height:"16px"}})}),!l&&t.jsx(ft,{sx:{color:i,height:"16px"}})]});Vo.propTypes={text:n.string,icon:n.element,className:n.string,color:n.string,background:n.string,onDelete:n.func};const V0=(e,r="en")=>{const s={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(r[s],i)},Zo=({date:e,language:r="es"})=>{const s=V0(e,r),i=r==="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:s})})]})};Zo.propTypes={date:n.instanceOf(Date),language:n.string};const Uo=({title:e,sizeFile:r,onDelete:s,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(gr,{width:a,height:c}):t.jsx(Ci,{width:a,height:c}),t.jsx("p",{style:{fontSize:o},children:e}),t.jsxs("span",{style:{fontSize:o},children:["(",r," K)"]}),t.jsx("button",{onClick:s,children:t.jsx(Si,{})})]});Uo.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 Dt=({options:e,onClick:r,fontSize:s,width:i})=>{const[o,l]=C.useState(!1),a=C.useRef(null),c=d=>{r(d),l(!1)};return C.useEffect(()=>{const d=u=>{a.current&&!a.current.contains(u.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(Oi,{})})}),o&&t.jsx("nav",{className:"menu-options",style:{width:i},children:e.map((d,u)=>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:s},children:g.text})]},p))},u))})]})};Dt.propTypes={options:n.arrayOf(n.shape({icon:n.element,text:n.string})),onClick:n.func,fontSize:n.string,width:n.string};const Yo=me.div`
|
|
438
|
+
`,Ue=e=>{const{disabled:r,onClick:s,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconProp:c}=e;return t.jsxs(co,{disabled:r,onClick:s,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"}})]})};Ue.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 Vr=({data:e,grouped:r,divideColumns:s=!1,selectButton:i,onChange:o,onChangeFunction:l,label:a,width:c,textButton:d,maxHeight:u,keyReset:g,left:p=!1,minWidthDropdown:m="100%",disabled:x,textOverflow:v=!0,widthDropdown:h,error:j,fontSizeLabelText:z,fontSizeTooltip:D,heightTooltip:T,leftTooltip:k,tooltip:w,topTooltip:A,widthTooltip:H,isTooltipVisible:G,subLabelText:V,labelText:f,language:B="es",textSelectAll:F="Seleccionar Todo",placeholderSearch:Z="Buscar...",isRelative:Q=!1,selectedValues:K,fontSizeLabel:te,fontSizeOptions:U="1vw"})=>{const[_,I]=C.useState([]),[y,N]=C.useState(""),[P,S]=C.useState(!1),O=C.useRef(null),E=C.useRef(!1),L=C.useRef(K!==void 0);C.useEffect(()=>{K!==void 0&&(I(K),L.current=!0)},[K]);const W=S0(e,r),X=Object.values(W).flat().length>=Fr,J=()=>{if(y.trim()==="")return Object.values(W).flat();const ce=y.toLowerCase(),oe=[];return Object.entries(W).forEach(([de,ee])=>{if(!Array.isArray(ee)||ee.length===0)return;if(de.toLowerCase().includes(ce))oe.push(...ee);else{const Me=ee.filter(Ee=>Ee.name.toLowerCase().includes(ce));oe.push(...Me)}}),oe},q=J().length>0,ue=ce=>ce.map(oe=>{let de=null;if(r&&typeof e=="object"&&!Array.isArray(e)){for(const ee of Object.values(e))if(Array.isArray(ee)&&(de=ee.find(ie=>ie.id===oe),de))break}else Array.isArray(e)&&(de=e.find(ee=>ee.id===oe));if(de){const ee={id:de.id,name:de.name};return de.value!==void 0&&(ee.value=de.value),Object.keys(de).forEach(ie=>{Object.prototype.hasOwnProperty.call(ee,ie)||(ee[ie]=de[ie])}),ee}return null}).filter(Boolean),le=ce=>{if(E.current=!0,ce.target.checked){const oe=J(),de=oe.map(Me=>Me.id),ie=[..._.filter(Me=>!oe.some(Ne=>Ne.id===Me)),...de];if(I(ie),o&&o(ie),l){const Me=ue(ie);l(Me)}}else{const de=J().map(ie=>ie.id),ee=_.filter(ie=>!de.includes(ie));if(I(ee),o&&o(ee),l){const ie=ue(ee);l(ie)}}},fe=ce=>{E.current=!0,I(oe=>{const de=oe.includes(ce)?oe.filter(ee=>ee!==ce):[...oe,ce];if(o&&o(de),l){const ee=ue(de);l(ee)}return de})},Be=()=>{if(o&&o(_),l){const ce=ue(_);l(ce)}S(!1)};C.useEffect(()=>{const ce=oe=>{O.current&&!O.current.contains(oe.target)&&S(!1)};return document.addEventListener("mousedown",ce),()=>{document.removeEventListener("mousedown",ce)}},[O]),C.useEffect(()=>{P||N("")},[P]);const we=()=>_.map(oe=>{for(const de of Object.values(W)){const ee=de.find(ie=>ie.id===oe);if(ee)return ee.name}return null}).filter(Boolean).join(", ");C.useEffect(()=>{I([]),E.current=!1,K===void 0&&(L.current=!1)},[g,K]),C.useEffect(()=>{if(L.current&&!E.current){const ce=K||[];I(oe=>JSON.stringify(oe.sort())!==JSON.stringify(ce.sort())?ce:oe)}E.current=!1},[K]);const Re=Object.values(W).every(ce=>Array.isArray(ce)&&ce.length===0);return t.jsxs("div",{className:"relative",ref:O,children:[t.jsx(Qe,{label:_.length>0?we():a,onchange:()=>{},options:[],size:c,isOpen:P,setIsOpen:S,disabledClickOutside:!0,disabled:x,error:j,fontSizeLabelText:z,fontSizeTooltip:D,heightTooltip:T,leftTooltip:k,tooltip:w,topTooltip:A,widthTooltip:H,isTooltipVisible:G,labelText:f,subLabelText:V,fontSizeLabel:te}),P&&t.jsxs("div",{className:"item-filter",style:{left:p?"0":"auto",right:p?"auto":"0",minWidth:m,width:h,position:Q?"relative":"absolute"},children:[t.jsxs("div",{children:[X&&t.jsx("div",{style:{padding:"4px 8px",fontSize:U,backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(Xt,{inputProperties:{placeholder:Z,size:{width:"100%",height:"28px"},type:"text",onChange:ce=>N(ce.target.value),fontStyle:"italic"}})}),q&&t.jsx("div",{style:{padding:"0px 15px",fontSize:U,borderBottom:"1px solid #D0D0CE",backgroundColor:(()=>{const ce=J();return ce.length>0&&ce.every(de=>_.includes(de.id))?"#f4f4f4":"transparent"})()},children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{checked:(()=>{const ce=J();return ce.length>0&&(ce==null?void 0:ce.every(oe=>_==null?void 0:_.includes(oe.id)))})(),onChange:le,sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:F,sx:{"& .MuiFormControlLabel-label":{fontSize:U,whiteSpace:v?"nowrap":"normal",overflow:"hidden",textOverflow:v?"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:U,overflowWrap:"break-word"},children:['No se encontraron resultados para "',y,'"']}):(()=>{const ce=Object.entries(W).filter(([oe,de])=>{var Ee;if(!Array.isArray(de)||de.length===0)return!1;if(y.trim()==="")return!0;const ee=y.toLowerCase(),ie=(Ee=oe==null?void 0:oe.toLowerCase())==null?void 0:Ee.includes(ee),Me=de==null?void 0:de.some(Ne=>{var ae,Se;return(Se=(ae=Ne==null?void 0:Ne.name)==null?void 0:ae.toLowerCase())==null?void 0:Se.includes(ee)});return ie||Me});return ce==null?void 0:ce.map(([oe,de],ee)=>t.jsxs("div",{className:"item-group",style:{margin:r&&ee===0?"8px":"0"},children:[oe!=="Ungrouped"&&r&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{style:{fontSize:U,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(Ee=>{var Se,Ye,nt;if((y==null?void 0:y.trim())==="")return!0;const Ne=y==null?void 0:y.toLowerCase();return((Se=oe==null?void 0:oe.toLowerCase())==null?void 0:Se.includes(Ne))?!0:(nt=(Ye=Ee==null?void 0:Ee.name)==null?void 0:Ye.toLowerCase())==null?void 0:nt.includes(Ne)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(Ee=>_==null?void 0:_.includes(Ee.id)))?"#f4f4f4":"transparent"})()},children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{checked:(()=>{const ie=de.filter(Me=>{var ae,Se,Ye;if((y==null?void 0:y.trim())==="")return!0;const Ee=y==null?void 0:y.toLowerCase();return((ae=oe==null?void 0:oe.toLowerCase())==null?void 0:ae.includes(Ee))?!0:(Ye=(Se=Me==null?void 0:Me.name)==null?void 0:Se.toLowerCase())==null?void 0:Ye.includes(Ee)});return(ie==null?void 0:ie.length)>0&&(ie==null?void 0:ie.every(Me=>_==null?void 0:_.includes(Me.id)))})(),onChange:ie=>{E.current=!0;const Ee=de.filter(Ne=>{if(y.trim()==="")return!0;const ae=y.toLowerCase();return oe.toLowerCase().includes(ae)?!0:Ne.name.toLowerCase().includes(ae)}).map(Ne=>Ne.id);if(ie.target.checked){const Ne=Ee.filter(Se=>!_.includes(Se)),ae=[..._,...Ne];if(I(ae),o&&o(ae),l){const Se=ue(ae);l(Se)}}else{const Ne=_.filter(ae=>!Ee.includes(ae));if(I(Ne),o&&o(Ne),l){const ae=ue(Ne);l(ae)}}},sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:(()=>{if(r&&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:U,fontWeight:"400",lineHeight:"22px",whiteSpace:v?"nowrap":"normal",overflow:"hidden",textOverflow:v?"ellipsis":"clip"}}})})]}),de.filter(ie=>{if(y.trim()==="")return!0;const Me=y.toLowerCase();return oe.toLowerCase().includes(Me)?!0:ie.name.toLowerCase().includes(Me)}).map(ie=>t.jsx("div",{className:"item",style:{backgroundColor:_.includes(ie.id)?"#f4f4f4":"transparent"},children:t.jsx(Je.FormControlLabel,{control:t.jsx(Je.Checkbox,{checked:_.includes(ie.id),onChange:()=>fe(ie.id),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),label:ie.name,sx:{"& .MuiFormControlLabel-label":{fontSize:U,fontWeight:"400",lineHeight:"22px",whiteSpace:v?"nowrap":"normal",overflow:"hidden",textOverflow:v?"ellipsis":"clip"}}})},ie.id))]},oe))})(),Re&&t.jsx("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:U,cursor:"default",overflowWrap:"break-word"},children:"No hay opciones disponibles"})]}),i&&t.jsx("div",{className:"containerButtonSelectAll",children:t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>Be()},children:d})})]})]})};Vr.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 E0=e=>t.jsx(Qe,{color:"grey",...e}),N0=_e(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"),D0=_e(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"),A0=_e(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 O0(e){return rt("MuiCheckbox",e)}const Zr=ct("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),I0=e=>{const{classes:r,indeterminate:s,color:i,size:o}=e,l={root:["root",s&&"indeterminate",`color${Oe(i)}`,`size${Oe(o)}`]},a=gt(l,O0,r);return{...r,...a}},R0=Fe($r,{shouldForwardProp:e=>Zt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.indeterminate&&r.indeterminate,r[`size${Oe(s.size)}`],s.color!=="default"&&r[`color${Oe(s.color)}`]]}})(xt(({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})`:Lt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Lt(e.palette[r].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Gt()).map(([r])=>({props:{color:r},style:{[`&.${Zr.checked}, &.${Zr.indeterminate}`]:{color:(e.vars||e).palette[r].main},[`&.${Zr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),P0=t.jsx(D0,{}),W0=t.jsx(N0,{}),$0=t.jsx(A0,{}),ho=re.forwardRef(function(r,s){const i=vt({props:r,name:"MuiCheckbox"}),{checkedIcon:o=P0,color:l="primary",icon:a=W0,indeterminate:c=!1,indeterminateIcon:d=$0,inputProps:u,size:g="medium",disableRipple:p=!1,className:m,slots:x={},slotProps:v={},...h}=i,j=c?d:a,z=c?d:o,D={...i,disableRipple:p,color:l,indeterminate:c,size:g},T=I0(D),k=v.input??u,[w,A]=qt("root",{ref:s,elementType:R0,className:We(T.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:v,...h},ownerState:D,additionalProps:{type:"checkbox",icon:re.cloneElement(j,{fontSize:j.props.fontSize??g}),checkedIcon:re.cloneElement(z,{fontSize:z.props.fontSize??g}),disableRipple:p,slots:x,slotProps:{input:u1(typeof k=="function"?k(D):k,{"data-indeterminate":c})}}});return t.jsx(w,{...A,classes:T})});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]),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 uo=e=>{const[r,s]=C.useState(!1),[i,o]=C.useState([]),l=C.useRef(null),{options:a,onchange:c,label:d,size:u,error:g,keyReset:p,fontSizeOptions:m="0.9vw",disabled:x,maxHeightOptions:v,labelText:h,subLabelText:j,gap:z="0",fontSizeLabel:D="0.9vw",onChangeFunction:T,id:k,fontSizeLabelText:w,fontSizeTooltip:A,heightTooltip:H,leftTooltip:G,tooltip:V,topTooltip:f,widthTooltip:B,isTooltipVisible:F,placeholderInputSearch:Z="Buscar...",sortAlphabetically:Q=!0}=e,[K,te]=C.useState(a);C.useEffect(()=>{const S=Q?[...a].sort((O,E)=>{var L;return(L=O.label)==null?void 0:L.localeCompare(E.label)}):[...a];te(S)},[a,Q]);const U=S=>{o(O=>O.some(E=>pt.isEqual(E,S))?(c&&c(O.filter(E=>!pt.isEqual(E,S))),T&&T({id:k,value:O.filter(E=>!pt.isEqual(E,S))}),O.filter(E=>!pt.isEqual(E,S))):(c&&c([...O,S]),T&&T({id:k,value:[...O,S]}),[...O,S]))},_=()=>i.length===0?d:i.map(S=>{const O=a.find(E=>pt.isEqual(E.value,S));return O?O.label:""}).filter(Boolean).join(", ");C.useEffect(()=>{o([])},[p]);const I=S=>{l.current&&!l.current.contains(S.target)&&s(!1)};C.useEffect(()=>(document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}),[]),C.useEffect(()=>{if(!r){const S=Q?[...a].sort((O,E)=>{var L;return(L=O.label)==null?void 0:L.localeCompare(E.label)}):[...a];te(S),N("")}},[r,a,Q]);const[y,N]=C.useState(""),P=S=>{const O=S.target.value;N(O);const E=a.filter(W=>W.label.toLowerCase().includes(O.toLowerCase())),L=Q?E.sort((W,R)=>{var X;return(X=W.label)==null?void 0:X.localeCompare(R.label)}):E;te(L)};return t.jsxs("div",{ref:l,className:"relative",style:{width:u},children:[t.jsx(Qe,{label:_(),onchange:()=>{},options:[],size:u,isOpen:r,setIsOpen:s,disabledClickOutside:!0,disabled:x,error:g,labelText:h,gap:z,subLabelText:j,fontSizeLabel:D,fontSizeLabelText:w,fontSizeTooltip:A,heightTooltip:H,leftTooltip:G,tooltip:V,topTooltip:f,widthTooltip:B,isTooltipVisible:F}),r&&t.jsxs("ul",{className:"multiselect-options",style:{maxHeight:v},children:[a.length>=Fr&&t.jsx("div",{style:{padding:"4px 8px",fontSize:"1vw",backgroundColor:"#dde3f1",borderBottom:"1px solid #707070"},children:t.jsx(Xt,{inputProperties:{placeholder:Z,size:{width:"100%",height:"28px"},type:"text",onChange:S=>P(S),fontStyle:"italic"}})}),K.length===0&&y.trim()!==""?t.jsxs("li",{style:{padding:"15px",textAlign:"center",color:"#8598ad",fontSize:m,cursor:"default",overflowWrap:"break-word"},children:['No se encontraron resultados para "',y,'"']}):K.map(S=>t.jsxs("li",{onClick:()=>U(S.value),className:i.some(O=>pt.isEqual(O,S.value))?"selected":"",style:{fontSize:m},children:[t.jsx(ho,{checked:i.some(O=>pt.isEqual(O,S.value)),onChange:O=>{O.stopPropagation(),U(S.value)},onClick:()=>U(S.value),sx:{color:"#CCD2DD","&.Mui-checked":{color:"#33a1dd"}},size:"small"}),S.label]},S.value.title||S.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"})]})]})};uo.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};const fo=e=>t.jsx(Qe,{...e,inputRadio:!0});fo.propTypes={size:n.string,options:n.array,label:n.string,onchange:n.func,error:n.bool};const po=({width:e,fontSize:r,onchange:s})=>{const[i,o]=C.useState(!1),[l,a]=C.useState(""),c=C.useRef(null),d=x=>{x.preventDefault(),o(!0)},u=x=>{x.preventDefault(),o(!1)},g=x=>{if(x.preventDefault(),o(!1),x.dataTransfer.files&&x.dataTransfer.files.length>0){const v=x.dataTransfer.files[0];s(v),a(v.name)}},p=x=>{if(x.target.files&&x.target.files.length>0){const v=x.target.files[0];s(v),a(v.name)}},m=()=>{var x;(x=c.current)==null||x.click()};return t.jsxs("div",{className:`drag-drop-upload ${i?"dragging":""}`,onDragOver:d,onDragLeave:u,onDrop:g,onClick:m,style:{width:e},children:[t.jsx(Sn,{}),l?t.jsx("p",{className:"upload-text file-name",style:{fontSize:r},children:l}):t.jsxs("p",{className:"upload-text",style:{fontSize:r},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"})]})};po.propTypes={width:n.string,fontSize:n.string,onchange:n.func};const go=e=>{const{inputProperties:r,size:s,height:i="200px"}=e,[o,l]=C.useState(0),a=c=>{l(c.target.value.length),r.onChange&&r.onChange(c)};return t.jsxs(C1,{style:{width:s,height:i},children:[t.jsx("textarea",{...r,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=e=>{var s,i,o;const{inputProperties:r}=e;return t.jsxs(v1,{style:{...r==null?void 0:r.size},isSuccessful:(s=r==null?void 0:r.state)==null?void 0:s.success,children:[t.jsx(b1,{...r}),((i=r==null?void 0:r.state)==null?void 0:i.error)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(xi,{children:"*"})}),((o=r==null?void 0:r.state)==null?void 0:o.success)&&t.jsx("div",{style:{height:"20px"},children:t.jsx(xi,{style:{color:"#009470",fontSize:"15px"},children:"✔"})})]})};mo.propTypes={inputProperties:n.object};const yo=({label:e,onchange:r,textSelect:s,width:i,labelText:o,subLabelText:l,fontSize:a})=>{const[c,d]=C.useState("00"),[u,g]=C.useState("00"),[p,m]=C.useState(!1),[x,v]=C.useState(e??"Hora Inicio"),h=C.useRef(),j=C.useRef(),z=Array.from({length:24},(A,H)=>H.toString().padStart(2,"0")),D=Array.from({length:60},(A,H)=>H.toString().padStart(2,"0"));C.useEffect(()=>{const A=H=>{j.current&&!j.current.contains(H.target)&&m(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[]);const T=()=>{m(!1);const A=`${c}:${u}`;v(A),r(A)},k=A=>{let H=A.target.value.replace(/\D/g,"");H.length>4&&(H=H.slice(0,4));let G=H;if(H.length>=3&&(G=`${H.slice(0,2)}:${H.slice(2)}`),v(G),G.length===5){const[V,f]=G.split(":");parseInt(V,10)>=0&&parseInt(V,10)<24&&parseInt(f,10)>=0&&parseInt(f,10)<60?(d(V),g(f),r(G)):v(`${c}:${u}`)}},w=()=>{m(!p),h.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:j,style:{width:i},children:[t.jsxs("div",{className:"time-picker-input-wrapper",children:[t.jsx("input",{type:"text",ref:h,value:x,onChange:k,placeholder:"00:00",className:"time-picker-input",maxLength:5,style:{fontSize:a}}),t.jsx("button",{className:"time-picker-button",onClick:w,"aria-label":"Abrir selector de tiempo",children:t.jsx(ki,{})})]}),p&&t.jsxs("div",{className:"time-picker-dropdown",children:[t.jsxs("div",{className:"time-columns",children:[t.jsx("div",{className:"time-column",children:z.map(A=>t.jsx("div",{className:`time-option ${c===A?"selected":""}`,onClick:()=>d(A),children:A},A))}),t.jsx("div",{className:"time-column",children:D.map(A=>t.jsx("div",{className:`time-option ${u===A?"selected":""}`,onClick:()=>g(A),children:A},A))})]}),t.jsx("button",{className:"ok-button",onClick:T,children:s??"Seleccionar"})]})]})]})};yo.propTypes={label:n.string,onchange:n.func,textSelect:n.string,width:n.string,labelText:n.string,subLabelText:n.any,fontSize:n.string};const xo=e=>{var H;const[r,s]=C.useState(!1),{label:i,inputProperties:o,error:l,fontSizeLabel:a,subLabel:c,fontSizeInput:d,disabled:u,fontSizeTooltip:g,heightTooltip:p,leftTooltip:m,tooltip:x,topTooltip:v,widthTooltip:h,isTooltipVisible:j,keyReset:z}=e,D=G=>{o.handleChange&&o.handleChange(G)},T={...o};if(T.style&&T.style.width){const{width:G,...V}=T.style;T.style=V}const k=o==null?void 0:o.value,[w,A]=C.useState(k??"");return C.useEffect(()=>{k!==void 0&&A(k)},[k]),C.useEffect(()=>{z&&A("")},[z]),t.jsxs("div",{style:{width:(H=o==null?void 0:o.style)==null?void 0:H.width},children:[i&&t.jsx(Yt,{fontSizeTitle:a,fontSizeTooltip:g,heightTooltip:p,left:m,subTitle:c,title:i,tooltip:x,top:v,widthTooltip:h,isTooltipVisibleProp:j,marginBottom:"5px",htmlFor:(o==null?void 0:o.id)||"text-input"}),t.jsx(ar,{isfocused:r,haserror:l,style:{width:"100%"},children:t.jsx(cr,{id:o==null?void 0:o.id,onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:D,fontSizeInput:d,...k!==void 0?{value:w}:{},disabled:u,style:{width:"90%"},...T})}),l&&t.jsx(yi,{children:l})]})};xo.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 vo=e=>t.jsx("button",{className:"button-search",...e,children:t.jsx(y1,{})}),bo=e=>{const[r,s]=C.useState(!1),[i,o]=C.useState(""),{label:l,inputProperties:a,error:c,fontSizeLabel:d,borderRadiusRight:u="4px",borderRadiusLeft:g="4px"}=e,p=x=>{o(x.target.value),a.handleChange(x)},m=x=>{x.preventDefault();const v={target:{value:i,id:a.id||"text-input"},preventDefault:()=>{}};a.handleChange(v)};return t.jsxs("form",{style:{...a==null?void 0:a.size},onSubmit:m,children:[l&&t.jsx(x1,{htmlFor:a.id||"text-input",style:{fontSize:d},children:l}),t.jsxs(ar,{isfocused:r,haserror:c,disabled:a.disabled,style:{width:"100%",position:"relative",borderTopRightRadius:u,borderBottomRightRadius:u,borderTopLeftRadius:g,borderBottomLeftRadius:g},children:[t.jsx(cr,{onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:p,value:i,...a}),t.jsx("div",{style:{display:"flex",alignItems:"center",position:"absolute",right:"0px",height:"100%"},children:t.jsx(vo,{disabled:a.disabled})})]}),c&&t.jsx(yi,{children:c})]})};bo.propTypes={label:n.string,inputProperties:n.object,error:n.bool,fontSizeLabel:n.string,borderRadiusRight:n.string,borderRadiusLeft:n.string};const _0=()=>{const[e,r]=C.useState(15),s=()=>{r(l=>l+1)},i=()=>{r(l=>l-1)},o=l=>{const a=parseInt(l.target.value);isNaN(a)||r(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:s,className:"spinner-button up",children:"▲"}),t.jsx("button",{onClick:i,className:"spinner-button down",children:"▼"})]})]})},jo=({options:e,value:r,onChange:s,width:i,disabled:o,height:l,widthIcon:a,heightIcon:c,keyReset:d})=>{const u=({value:p})=>{s(p)},g=p=>p.map(m=>({label:m.toString(),value:m}));return t.jsx(Qe,{label:r,onchange:u,options:g(e),Icon:$i,size:i,disabled:o,paddingDropdownHeader:"0 0.5vw",height:l,widthIcon:a,heightIcon:c,keyReset:d,sortAlphabetically:!1})};jo.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};const wo=e=>{const{data:r,onChange:s,label:i,size:o,error:l,keyReset:a,fontSizeOptions:c="0.9vw",fontSizeTitleOptions:d="1vw",fontSizeLabel:u,disabled:g,maxHeightOptions:p,value:m,hasDivisions:x,fontSizeLabelText:v,fontSizeTooltip:h,heightTooltip:j,leftTooltip:z,tooltip:D,topTooltip:T,widthTooltip:k,isTooltipVisible:w,labelText:A,subLabelText:H}=e,[G,V]=C.useState(!1),f=C.useRef(null),[B,F]=C.useState(m||""),Z=K=>{F(K),V(!1),s&&s(K)};C.useEffect(()=>{F("")},[a]);const Q=K=>{f.current&&!f.current.contains(K.target)&&V(!1)};return C.useEffect(()=>(document.addEventListener("mousedown",Q),()=>{document.removeEventListener("mousedown",Q)}),[]),t.jsxs("div",{ref:f,className:"relative",style:{width:o},children:[t.jsx(Qe,{label:B.label||i,onchange:()=>{},options:[],size:o,isOpen:G,setIsOpen:V,disabledClickOutside:!0,disabled:g,error:l,fontSizeLabel:u,fontSizeLabelText:v,fontSizeTooltip:h,heightTooltip:j,leftTooltip:z,tooltip:D,topTooltip:T,widthTooltip:k,isTooltipVisible:w,labelText:A,subLabelText:H}),G&&t.jsx("ul",{className:"item-filter",style:{width:"100%",maxHeight:p},children:r.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(te=>t.jsx("div",{onClick:()=>Z(te),className:"item",style:{padding:"15px 20px",width:"100%",fontSize:c,cursor:"pointer",fontWeight:"400"},children:te.label},te.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=({onChange:e,text:r,subText:s,fontSize:i,fileTypes:o,id:l,ref:a=null,multiple:c=!1})=>{const d=a||C.useRef(null),[u,g]=C.useState(!1),p=j=>{j.preventDefault(),g(!0)},m=j=>{j.preventDefault(),g(!1)},x=j=>{j.preventDefault(),g(!1),j.dataTransfer.files&&j.dataTransfer.files[0]&&e({file:j.dataTransfer.files[0],id:l})},v=()=>{d.current.click()},h=j=>{j.target.files&&j.target.files[0]&&e({file:j.target.files[0],id:l}),j.target.value=""};return t.jsxs("div",{className:`file-upload ${u?"dragging":""}`,onDragOver:p,onDragLeave:m,onDrop:x,onClick:v,style:{backgroundColor:"white"},children:[t.jsx("input",{ref:d,type:"file",className:"file-input",accept:o,onChange:h,multiple:c}),t.jsxs("div",{className:"flex align-center",style:{gap:"0.8vw"},children:[t.jsx(Sn,{fill:"#8598AD"}),t.jsxs("div",{className:"flex gap-05",style:{borderBottom:"1px solid #8598AD"},children:[t.jsx("p",{className:"upload-text",style:{fontSize:i,borderBottom:"0px",paddingRight:"4px"},children:r}),t.jsx("p",{className:"sub-text",style:{fontSize:i,borderBottom:"0px"},children:s})]})]})]})};ko.propTypes={onChange:n.func,text:n.string,subText:n.string,fontSize:n.string,fileTypes:n.string,id:n.string,multiple:n.bool};const Co=({handleReset:e,disabled:r})=>t.jsx("button",{className:`button-reset ${r?"disabled":""}`,onClick:()=>e(),disabled:r,children:t.jsx(Cn,{})});Co.propTypes={handleReset:n.func,disabled:n.bool};const So=({width:e})=>t.jsxs(z0,{style:{backgroundColor:"#f5f6fa",width:e},children:[t.jsx(Hr,{children:t.jsx(ur,{width:"100%",height:"30px"})}),t.jsx(Hr,{children:t.jsx(hr,{width:"100%",height:"30px"})}),t.jsx(Hr,{children:t.jsx(dr,{width:"60%",height:"30px"})})]});So.propTypes={width:n.string};const B0={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 r=e==null?void 0:e.IconProp;return t.jsx(me.ThemeProvider,{theme:B0,children:t.jsxs(T0,{...e.buttonProperties,children:[r&&t.jsx(r,{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 To=e=>{const r={...e,buttonProperties:{backgroundcolor:"#119672",...e.buttonProperties,style:{color:"white",...e.buttonProperties.style}}};return t.jsx(Ue,{...r,children:e.children})};To.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Mo=({onClick:e,width:r,fontSize:s,disabled:i,children:o="DESCARGAR",icon:l,diseableOption:a})=>{const[c,d]=C.useState(!1),u=C.useRef(null);C.useEffect(()=>{const p=m=>{u.current&&!u.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:u,style:{width:r},children:[t.jsx("button",{className:"download-button",onClick:()=>!i&&d(!c),children:t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.2vw",fontSize:s},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:r},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"})]})]})};Mo.propTypes={onClick:n.func,width:n.string,fontSize:n.string,disabled:n.bool,children:n.string,icon:n.element,diseableOption:n.object};const zo=({onclick:e,height:r})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:r},children:t.jsx(Ei,{})});zo.propTypes={onclick:n.func,height:n.string};const Eo=({onclick:e,height:r})=>t.jsx("button",{onClick:e,className:"button-plus",style:{height:r},children:t.jsx(Ni,{})});Eo.propTypes={onclick:n.func,height:n.string};const L0=_e(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"),No=e=>{const s={IconProp:L0,...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",border:"1px solid #21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Jt,{...s,children:e.children})};No.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Do=e=>{const s={...e,IconProp:kn};return t.jsx(Jt,{...s})};Do.propTypes={buttonProperties:n.shape({disabled:n.bool}),children:n.node||n.string,IconProp:n.node};const Ur=e=>t.jsx(M0,{...e.buttonProperties,children:e.children});Ur.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string};const Nt=e=>{const r={...e,buttonProperties:{backgroundcolor:"white",border:"1px solid #33a4dd",color:"#33a4dd",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Ue,{...r})};Nt.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const F0=_e(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"),Ao=e=>{const s={...e,IconProp:F0};return t.jsx(Jt,{...s})};Ao.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func}),children:n.node||n.string,IconProp:n.node};const Oo=e=>{const{children:r,onChange:s,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"},u=g=>{const p=g.target.files[0];s(p)};return t.jsxs("div",{children:[t.jsx("input",{type:"file",id:a,accept:"image/*",disabled:i,style:{display:"none"},onChange:g=>u(g)}),t.jsxs("label",{htmlFor:a,style:c,children:[r,t.jsx(kn,{style:d})]})]})};Oo.propTypes={children:n.node||n.string,onChange:n.func,disabled:n.bool,width:n.string,fontSize:n.string,id:n.string};const Dn=({buttonProperties:e={},...r})=>{const s={backgroundcolor:"transparent",border:"1px solid #fcb035",color:"black",...e,style:{...e.style}};return t.jsx(Ue,{...r,buttonProperties:s,children:r.children})};Dn.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const H0=_e(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"),Io=({marginBottom:e,onClick:r})=>t.jsx(H0,{sx:{color:"#8598ad",width:20,height:20,marginBottom:e,cursor:"pointer"},onClick:r});Io.propTypes={marginBottom:n.string,onClick:n.func};const Ro=e=>{const r={...e,buttonProperties:{backgroundcolor:"#dde3f1",color:"#21459c",...e.buttonProperties,style:{...e.buttonProperties.style}}};return t.jsx(Ur,{...r})};Ro.propTypes={buttonProperties:n.shape({disabled:n.bool,onClick:n.func,style:n.object}),children:n.node||n.string};const Yr=({children:e,buttonProperties:r,widthIcon:s="70%",icon:i=t.jsx(xr,{width:s})})=>t.jsxs(Nt,{buttonProperties:r,children:[i,e]});Yr.propTypes={children:n.string,icon:n.node,buttonProperties:n.object,widthIcon:n.string};const Po=({onChange:e,isOpen:r})=>{const[s,i]=C.useState(r),o=()=>{i(!s),e&&e(s)};return t.jsx("button",{className:"reset-styles-button",onClick:o,children:s?t.jsx(br,{}):t.jsx(vr,{})})};Po.propTypes={onChange:n.func,isOpen:n.bool};const qr=({onChange:e,isOpen:r,color:s,hasHover:i,padding:o,display:l,height:a,width:c})=>t.jsx("button",{type:"button",onClick:()=>e(!r),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 ${r?"up":"down"}`,style:{borderColor:s,padding:o}})});qr.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 Wo=({className:e,text:r,onClick:s})=>t.jsxs("button",{className:`button-clean-filters ${e} `,onClick:s,children:[t.jsx(kr,{})," ",t.jsx("span",{children:r})]});Wo.propTypes={className:n.string,text:n.string,onClick:n.func};const $o=({textOpen:e,textClose:r,isOpen:s,onChange:i,className:o})=>{const[l,a]=C.useState(s);C.useEffect(()=>{a(s)},[s]);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?r:e}),l?t.jsx(br,{}):t.jsx(vr,{})]})};$o.propTypes={textOpen:n.string,textClose:n.string,isOpen:n.bool,onChange:n.func,className:n.string};const _o=({children:e,widthIcon:r="10%",width:s,icon:i=t.jsx(Zi,{width:r}),arrowRightIcon:o=t.jsx(Mr,{width:r}),hasOptions:l=!1,onClick:a,onOptionSelect:c,options:d,className:u,...g})=>{const[p,m]=C.useState(!1),x=C.useRef(null),v=h=>{m(!1),c==null||c(h)};return C.useEffect(()=>{const h=j=>{x.current&&!x.current.contains(j.target)&&m(!1)};return p&&document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[p]),t.jsxs("button",{ref:x,className:`button-white-border-blue-send-email ${u}`,...g,style:{width:s},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:s},children:d.map(h=>t.jsx("li",{className:"dropdown-options--button-white-border-li",onClick:()=>v(h),children:h.value},h.id))})]})};_o.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 Bo=e=>{const{disabled:r,onClick:s,backgroundcolor:i,border:o,color:l,style:a}=e.buttonProperties,{IconLeft:c=t.jsx(Ui,{}),IconRight:d=t.jsx(Mr,{})}=e;return t.jsxs(co,{disabled:r,onClick:s,backgroundcolor:i,border:o,color:l,className:"VibrantBlueStyle ButtonVibrantBlueSend",style:{...a,display:"flex",alignItems:"center",gap:"15px",justifyContent:"center"},children:[c,e.children,d]})};Bo.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 Gr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-active",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(Mn,{}),"Activo"]});Gr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Kr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-inactive",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(Mi,{}),"Inactivo"]});Kr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Xr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-canceled",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(Di,{}),"Cancelada"]});Xr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Jr=({width:e,fontSize:r,icon:s,marginAuto:i,height:o})=>{const[l,a]=C.useState(!1);return t.jsxs("div",{className:"state-basic states-completed",style:{width:e,fontSize:r,margin:i?"auto":"",height:o},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[t.jsx(Ti,{}),"Finalizada",s&&t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(En,{height:27,background:"#d8f6c4",fillIcon:"#ff0000"})}),s&&l&&t.jsx("div",{className:"absolute hoverStates",children:"Devoluciones"})]})};Jr.propTypes={width:n.string,fontSize:n.string,icon:n.bool,marginAuto:n.bool,height:n.string};const Qr=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-inTransit",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(zi,{}),"En tránsito",t.jsx("div",{className:"state-icon-inTransit",children:t.jsx(En,{height:i})})]});Qr.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Lo=({children:e,className:r="",classNameIcon:s="",fill:i="#54AC1B",...o})=>t.jsxs("div",{className:`state-basic ${r}`.trim(),...o,children:[t.jsx(Mn,{className:s,fill:i}),e]});Lo.propTypes={children:n.node,className:n.string,classNameIcon:n.string,fill:n.string};const ft=_e(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"),Fo=({width:e,fontSize:r,children:s,onDelete:i,background:o,fontWeight:l,id:a,className:c})=>t.jsxs("div",{className:`chip ${c}`,style:{width:e,fontSize:r,background:o,fontWeight:l},children:[s,t.jsx("button",{className:"reset-styles-button",onClick:()=>i({children:s,id:a}),children:t.jsx(ft,{sx:{color:"#8598ad",height:"16px"}})})]});Fo.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 es=({children:e,onChange:r,isSelect:s,height:i})=>t.jsx("div",{className:`toggle-chip ${s?"active":""}`,style:{height:i},onClick:()=>r({isSelect:!s,value:e}),children:e});es.propTypes={children:n.any,onChange:n.func,isSelect:n.bool,height:n.string};const Ho=({children:e,className:r=""})=>t.jsx("div",{className:`chip-section ${r}`,children:e});Ho.propTypes={children:n.node,className:n.string};const Vo=({text:e,icon:r,className:s,color:i,background:o,onDelete:l})=>t.jsxs("div",{className:`chip chip-with-icon ${s}`,style:{background:o},children:[r,t.jsx("span",{className:"chip-text",children:e}),l&&t.jsx("button",{className:"reset-styles-button",onClick:()=>l(e),children:t.jsx(ft,{sx:{color:i,height:"16px"}})}),!l&&t.jsx(ft,{sx:{color:i,height:"16px"}})]});Vo.propTypes={text:n.string,icon:n.element,className:n.string,color:n.string,background:n.string,onDelete:n.func};const V0=(e,r="en")=>{const s={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(r[s],i)},Zo=({date:e,language:r="es"})=>{const s=V0(e,r),i=r==="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:s})})]})};Zo.propTypes={date:n.instanceOf(Date),language:n.string};const Uo=({title:e,sizeFile:r,onDelete:s,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(gr,{width:a,height:c}):t.jsx(Ci,{width:a,height:c}),t.jsx("p",{style:{fontSize:o},children:e}),t.jsxs("span",{style:{fontSize:o},children:["(",r," K)"]}),t.jsx("button",{onClick:s,children:t.jsx(Si,{})})]});Uo.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 Dt=({options:e,onClick:r,fontSize:s,width:i})=>{const[o,l]=C.useState(!1),a=C.useRef(null),c=d=>{r(d),l(!1)};return C.useEffect(()=>{const d=u=>{a.current&&!a.current.contains(u.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(Oi,{})})}),o&&t.jsx("nav",{className:"menu-options",style:{width:i},children:e.map((d,u)=>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:s},children:g.text})]},p))},u))})]})};Dt.propTypes={options:n.arrayOf(n.shape({icon:n.element,text:n.string})),onClick:n.func,fontSize:n.string,width:n.string};const Yo=me.div`
|
|
439
439
|
width: 500px;
|
|
440
440
|
padding: 12.4px;
|
|
441
441
|
display: flex;
|
|
@@ -448,4 +448,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
448
448
|
border: none;
|
|
449
449
|
background: none;
|
|
450
450
|
cursor: pointer;
|
|
451
|
-
`,qo=({children:e,height:r,width:s,style:i})=>t.jsx(Yo,{style:{height:r,width:s,...i},children:e});qo.propTypes={children:n.any,width:n.string,height:n.string,style:n.object};const Go=({title:e,height:r,width:s,style:i,children:o})=>{const[l,a]=C.useState(!1);return t.jsxs(Yo,{style:{height:l?"auto":r,width:s,...i,borderRadius:"0px",boxShadow:"none",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e,t.jsx(Z0,{onClick:()=>a(!l),children:t.jsx("i",{className:`arrow-grey-container ${l?"up":"down"}`})})]}),l&&t.jsx("div",{style:{paddingTop:"8px"},children:o})," "]})};Go.propTypes={title:n.node,width:n.string,height:n.string,style:n.object,children:n.node};const Ko=({fileType:e="excel",onClick:r,className:s="",icon:i,isClickable:o=!0,data:l,fontSize:a})=>{const{title:c}=l,d=()=>{o&&r&&r(l)},u=p=>{o&&r&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),r(l))},g=()=>{switch(e){case"excel":return t.jsx(Sr,{});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":""} ${s}`,onClick:d,onKeyDown:u,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(Tr,{width:16,height:16})})]}),t.jsx("div",{className:"file-card__title",style:{fontSize:a},children:c})]})};Ko.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 Xo=({data:e,fileType:r="excel",onClick:s,className:i="",icon:o,isClickable:l=!0,isSelected:a=!1})=>{const{title:c}=e,d=()=>{l&&s&&s(e)},u=p=>{l&&s&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),s(e))},g=()=>{switch(r){case"excel":return t.jsx(Sr,{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:u,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(Tr,{width:12,height:12})})]}),t.jsx("div",{className:"file-card-minimized__filename",children:c})]})};Xo.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 Jo=({onClick:e,className:r="",icon:s,isClickable:i=!0,fontSize:o,hasDownload:l=!1,onChange:a,isSelected:c=!1,data:d})=>{const{id:u,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":""} ${r} ${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(Dr,{inputProperties:{id:u,checked:c,onChange:a},color:"#33A1DD",size:"small"})}),t.jsx("div",{className:"folder-card__icon-container",children:s?t.jsx("div",{className:"folder-card__custom-icon",children:s}):t.jsx("div",{className:`${l?"folder-card__default-icon":"folder-card__default-icon-hover"}`,children:t.jsx(Cr,{width:"60px"})})}),t.jsx("div",{className:"folder-card__title",style:{width:"70px",fontSize:o},children:g})]})};Jo.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 Qo=({onClick:e,className:r="",icon:s,isClickable:i=!0,fontSize:o,isSelected:l=!1,data:a})=>{const{id:c,title:d}=a,u=()=>{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":""} ${r}`,onClick:u,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:s?t.jsx("div",{className:"folder-card-minimized__custom-icon",children:s}):t.jsx("div",{className:"folder-card-minimized__default-icon",children:t.jsx(Cr,{width:"32px"})})}),t.jsx("div",{className:"folder-card-minimized__title",style:{fontSize:o},children:d})]})};Qo.propTypes={onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,fontSize:n.string,isSelected:n.bool,data:n.object};const el=({color:e="#33A1DD",size:r=8})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",children:t.jsx("circle",{cx:r/2,cy:r/2,r:r/2-.5,fill:e})});el.propTypes={color:n.string,size:n.number};const tl=({width:e=3,height:r=12,color:s="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:r,fill:"none",viewBox:"0 0 3 12",children:t.jsx("path",{fill:s,stroke:s,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"})});tl.propTypes={width:n.number,height:n.number,color:n.string};const nl=({width:e=8,height:r=8,color:s="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:r,fill:"none",viewBox:"0 0 8 8",children:t.jsx("path",{fill:s,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"})});nl.propTypes={width:n.number||n.string,height:n.number||n.string,color:n.string};const rl=({className:e="",hasAlerts:r=!1,children:s,hasError:i=!1,...o})=>{const c=["state",e,r?"state--has-alerts":""].filter(Boolean).join(" ");return t.jsxs("div",{className:c,...o,children:[t.jsx("div",{className:"state__indicator",children:i?t.jsx(nl,{width:8,height:8}):t.jsx(el,{size:8})}),t.jsx("div",{className:"state__content",children:s}),r&&t.jsx("div",{className:"state__alert",children:t.jsx(tl,{color:"red",width:"80%"})})]})};rl.propTypes={className:n.string,hasAlerts:n.bool,hasError:n.bool,children:n.node.isRequired};const sl=({children:e,count:r,className:s,classNameCount:i})=>t.jsxs("div",{className:`count-card ${s}`,children:[e,t.jsx("span",{className:`count-card__count ${i}`,children:r})]});sl.propTypes={children:n.node,count:n.number||n.string,className:n.string,classNameCount:n.string};const il=({totalPages:e=50,currentPage:r=1,onChange:s,nextLabel:i,prevLabel:o,height:l,disabled:a,fontSize:c})=>{const d=h=>{h>0&&h<=e&&s(h)},u=()=>{r<e&&s(r+1)},g=()=>{r>1&&s(r-1)},m=[],x=Math.max(1,r-4),v=Math.min(e,x+9-1);for(let h=x;h<=v;h++)m.push(h);if(r>e-4){m.length=0;for(let h=e-9+1;h<=e;h++)h>0&&m.push(h)}return t.jsx("nav",{className:"pagination",children:t.jsxs("ul",{className:"pagination-list",children:[r>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(h=>t.jsx("li",{className:`pagination-link ${r===h?"active":""} ${a?"disabled":""}`,onClick:()=>a?null:d(h),style:{height:l,fontSize:c},children:h},h)),v<e&&t.jsxs(t.Fragment,{children:[v<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})]}),r<e&&t.jsxs("li",{className:`pagination-next ${a?"disabled":""}`,onClick:a?null:u,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"})})]})]})})};il.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 ts=_e(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"),ns=_e(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"),ol=_e(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"),rs={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"},ss={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"},lt=e=>{e instanceof Date||(e=new Date(e));const r=String(e.getDate()).padStart(2,"0"),s=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return{formatDDMMYYYY:`${r}-${s}-${i}`,formatMMDDYYYY:`${s}-${r}-${i}`,formatYYYYMMDD:`${i}-${s}-${r}`,originalFormat:e}},ll=(e,r,s)=>{if(!r||s<=0)return!1;const i=new Date(r);return i.setMonth(i.getMonth()+s),i.setDate(i.getDate()-1),e>i},U0=({locale:e="es",disablePastDates:r,onDateRangeChange:s,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,u]=C.useReducer(y=>y+1,0),g=e==="es"?rs:ss,[p,m]=C.useState(null),[x,v]=C.useState(null),[h,j]=C.useState(null),[z,D]=C.useState(new Date),[T,k]=C.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[w,A]=C.useState(!1),H=(y,N)=>{const P=new Date;if(P.setHours(0,0,0,0),c){const S=new Date(P);if(S.setDate(P.getDate()+c),y>S)return!0}return N&&r&&y<P||!N&&a&&y>P||r&&y<P||a&&y>P?!0:l>0&&p?ll(y,p,l):!1},G=y=>{const N=y.getFullYear(),P=y.getMonth(),O=new Date(N,P,1).getDay(),E=new Date(N,P+1,0),L=[],W=new Date(N,P,0).getDate();for(let J=O-1;J>=0;J--)L.push(new Date(N,P-1,W-J));for(let J=1;J<=E.getDate();J++)L.push(new Date(N,P,J));const X=42-L.length;for(let J=1;J<=X;J++)L.push(new Date(N,P+1,J));return L},Z=y=>!p||!x?!1:y>=p&&y<=x,f=y=>!p||!h?!1:y>=p&&y<=h||y<=p&&y>=h,B=y=>{!p||x?(m(y),v(null)):y<p?(v(p),m(y),i&&I(y,p)):(v(y),i&&I(p,y))},F=y=>{j(y)},V=()=>!p||!x?0:Math.round((x.getTime()-p.getTime())/(1e3*60*60*24))+1,Q=(y,N)=>{const P=new Date(y.getFullYear(),y.getMonth()-1,1);r&&P<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&N||(N?D(P):(k(P),P.getMonth()===z.getMonth()&&D(new Date(P.getFullYear(),P.getMonth()-1,1))))},K=(y,N)=>{const P=new Date(y.getFullYear(),y.getMonth()+1,1);N?(D(P),P.getMonth()===T.getMonth()&&k(new Date(P.getFullYear(),P.getMonth()+1,1))):k(P)},te=y=>{const P=y.toLocaleDateString(g.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),S=P[0].charAt(0).toUpperCase()+P[0].slice(1),O=P[1],E=P[2].charAt(0).toUpperCase()+P[2].slice(1),L=P[3];return`${S} ${O} de ${E} ${L}`},U=()=>{const y=new Date;m(null),v(null),D(y),k(new Date(new Date().setMonth(new Date().getMonth()+1))),A(!1),o({startDate:null,endDate:null}),u()},_=()=>{A(!1);const y=lt(p),N=lt(x);s({startDate:y,endDate:N})},I=(y,N)=>{m(y),v(N),A(!1);const P=lt(y),S=lt(N);s({startDate:P,endDate:S})};return{isOpen:w,endDate:x,language:g,leftMonth:z,startDate:p,setIsOpen:A,hoverDate:h,rightMonth:T,formatDate:te,handleSearch:_,handleCancel:U,isDateInRange:Z,getDaysInMonth:G,isDateDisabled:H,handleDateClick:B,handleDateHover:F,handlePrevClick:Q,handleNextClick:K,getDaysSelected:V,isDateInHoverRange:f,keyReset:d,resetSelect:u}},An=(e,r,s,i)=>{if(!s||i<=0)return!1;const o=new Date(s);o.setMonth(o.getMonth()+i),o.setDate(o.getDate()-1);const l=new Date(s);return l.setDate(1),r?e<l:e>o},al=({locale:e="es",onDateRangeChange:r,disablePastDates:s,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:u,disableFutureDates:g,withoutSearchButton:p,disablePastDaysCount:m,value:x})=>{const{keyReset:v,isOpen:h,endDate:j,language:z,leftMonth:D,startDate:T,setIsOpen:k,rightMonth:w,formatDate:A,handleSearch:H,handleCancel:G,isDateInRange:Z,getDaysInMonth:f,isDateDisabled:B,handleDateClick:F,handleDateHover:V,handlePrevClick:Q,handleNextClick:K,getDaysSelected:te,isDateInHoverRange:U}=U0({locale:e,onReset:l,onDateRangeChange:r,disablePastDates:s,withoutSearchButton:p,limitRange:i,disableFutureDates:g,disablePastDaysCount:m}),_=(x==null?void 0:x.startDate)instanceof Date?x.startDate:T,I=(x==null?void 0:x.endDate)instanceof Date?x.endDate:j,y=C.useRef(null);C.useEffect(()=>{const P=S=>{y.current&&!y.current.contains(S.target)&&h&&(k(!1),o||G())};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[j,G,h,k,T,o]);const N=(P,S=!0)=>{const O=f(P),E=P.getMonth(),L=(R,X)=>[R&&R.getMonth()!==E?"other-month":"",R&&Z(R)?"in-range":"",R&&U(R)?"hover-range":"",R&&(R.getTime()===(_==null?void 0:_.getTime())||R.getTime()===(I==null?void 0:I.getTime()))?"selected":"",B(R,X)?"disabled":""].join(" "),W=({date:R,isLeftCalendar:X,disablePastDates:J,leftMonth:se})=>{const q=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),ue=new Date(R.getFullYear(),R.getMonth()-1,1).getTime();return!!(J&&(ue<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:()=>Q(P,S),disabled:An(new Date(P.getFullYear(),P.getMonth()-1,1),!0,T,i)||W({date:P,isLeftCalendar:S,disablePastDates:s,leftMonth:D}),children:t.jsx("span",{className:"sr-only",children:t.jsx(ts,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[z.MONTHS[P.getMonth()],t.jsx("p",{children:P.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>K(P,S),disabled:An(new Date(P.getFullYear(),P.getMonth()+1,1),!1,T,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(ns,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),z.DAYS.map(R=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:R},R)),O.map((R,X)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${L(R,S)}`,disabled:!R||B(R),onClick:()=>R&&!B(R)&&F(R),onMouseEnter:()=>R&&!B(R)&&V(R),onMouseLeave:()=>V(null),children:t.jsx("span",{className:`day-text ${R?"":"text-muted"}`,style:{fontSize:d},children:R?R.getDate():""})})},`${R}_${X}`))]})]})};return C.useEffect(()=>{v&&G()},[v]),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 ${u?"disabled":""}`,disabled:u,onClick:()=>k(!h),children:_&&I?t.jsxs("div",{className:"container-formate",children:[t.jsxs("p",{className:`p-formate-date ${u?"disabled":""}`,style:{borderRight:"1px solid #9c9ca0"},children:[A(_)," ",t.jsx(ol,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]}),t.jsxs("p",{className:`p-formate-date ${u?"disabled":""}`,children:[A(I),t.jsx(ol,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]})]}):t.jsxs("div",{className:"container-formate",children:[t.jsx("p",{className:`p-formate-date ${u?"disabled":""}`,style:{height:"34px",fontSize:d},children:z.selectRange}),t.jsx(Vi,{width:"10%",height:"50%"})]})}),h&&t.jsx("div",{className:"square"}),h&&t.jsx("div",{className:"container-triangle",children:t.jsx("div",{className:"triangle",children:t.jsx("div",{className:"triangle-blur"})})}),h&&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:[N(D,!0),N(w,!1)]}),!p&&t.jsx("div",{className:"date-picker-footer",children:_&&I&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[te()," ",z.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Dn,{buttonProperties:{onClick:()=>G(),style:{width:"115px",textAlign:"center"}},children:z.cancel}),t.jsx(Ue,{buttonProperties:{onClick:()=>H(),style:{width:"115px",textAlign:"center"}},children:z.search})]})]})})]})]}),_&&I&&o&&t.jsx("button",{className:"button-reset",onClick:()=>G(),children:t.jsx(Cn,{})})]})};al.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 cl=(e,{disablePastDates:r,disableBusinessDays:s})=>{const i=new Date;if(i.setHours(0,0,0,0),r&&e<i)return!1;if(s&&typeof s=="number"&&s>0){let o=new Date(i),l=0;for(;l<s;){o.setDate(o.getDate()+1);const a=o.getDay();a!==0&&a!==6&&l++}if(e<o)return!1}return!0},Y0=e=>{const r=new Date;r.setHours(0,0,0,0);const s=new Date(r);s.setDate(r.getDate()+1);const i=new Date(r);return i.setDate(r.getDate()+2),e.getTime()===r.getTime()||e.getTime()===s.getTime()||e.getTime()===i.getTime()},q0=(e,r)=>{const s=new Date(r);return s.setHours(0,0,0,0),e.getTime()<=s.getTime()},G0="America/Bogota",K0=16,X0=3,J0=4,dl=0,hl=6,Q0=()=>{const e=new Date().toLocaleString("en-US",{timeZone:G0});return new Date(e)},eh=(e,r)=>{const s=r??Q0(),o=s.getHours()<K0?X0:J0;let l=0;const a=new Date(s);for(a.setDate(a.getDate()+1);l<o;){const g=a.getDay();g!==dl&&g!==hl&&l++,a.setDate(a.getDate()+1)}for(;a.getDay()===dl||a.getDay()===hl;)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},th=e=>{let r=0,s=new Date;for(s.setHours(0,0,0,0),s.setDate(s.getDate()+1);r<5;){const i=s.getDay();i!==0&&i!==6&&r++,s.setDate(s.getDate()+1)}for(;s.getDay()===0||s.getDay()===6;)s.setDate(s.getDate()+1);return e<s},nh=e=>e.getDay()===0||e.getDay()===6,rh=(e,r)=>{const s=new Date(r);s.setHours(0,0,0,0);let i=new Date(s);do i.setDate(i.getDate()+1);while(i.getDay()===0||i.getDay()===6);return e.getTime()<=i.getTime()},sh=({locale:e="es",onDateChange:r,onChangeFunction:s,disablePastDates:i,disableBusinessDays:o,disableNextTwoDays:l,disableSpecificDate:a,disableDaysBasedOnTime:c,disableFiveBusinessDays:d,disableWeekends:u,disableNextBusinessDayAfter:g,hourDisableDaysBasedOnHour:p,id:m})=>{const x=e==="es"?rs:ss,[v,h]=C.useState(new Date),[j,z]=C.useState(new Date),[D,T]=C.useState(!1),[k,w]=C.useState(null),A=C.useRef(null),H=U=>{const _=U.getFullYear(),I=U.getMonth(),N=new Date(_,I,1).getDay(),P=new Date(_,I+1,0),S=[],O=new Date(_,I,0).getDate();for(let W=N-1;W>=0;W--)S.push(new Date(_,I-1,O-W));for(let W=1;W<=P.getDate();W++)S.push(new Date(_,I,W));const L=42-S.length;for(let W=1;W<=L;W++)S.push(new Date(_,I+1,W));return S};C.useEffect(()=>{if(o&&typeof o=="number"&&o>0){let U=new Date;U.setHours(0,0,0,0);let _=new Date(U),I=0;for(;I<o;){_.setDate(_.getDate()+1);const y=_.getDay();y!==0&&y!==6&&I++}_.getMonth()>U.getMonth()&&z(_)}},[i,o]);const G=C.useMemo(()=>U=>U?i&&!cl(U,{disablePastDates:i})||o&&!cl(U,{disableBusinessDays:o})||l&&Y0(U)||a&&q0(U,new Date(a))||c&&eh(U,p)||d&&th(U)||u&&nh(U)||g&&rh(U,g):!1,[i,o,l,a,c,d,u,g,p]),Z=U=>{const _=new Date,I=new Date(_.getFullYear(),_.getMonth(),1).setHours(0,0,0,0);if(i&&U<I)return!0;if(a){const y=new Date(a).setHours(0,0,0,0);return U<y}return!1},f=U=>v&&U.getTime()===v.getTime(),B=U=>{const _=U.getMonth(),I=j.getMonth();_!==I&&z(new Date(U.getFullYear(),_,1)),w(Q(U)),h(U);const y=lt(U);r&&r(y),s&&s({id:m,date:y}),T(!1)},F=U=>{const _=new Date(U.getFullYear(),U.getMonth()-1,1),I=new Date;I.setHours(0,0,0,0),!(i&&_<new Date(I.getFullYear(),I.getMonth(),1))&&z(_)},V=U=>{const _=new Date(U.getFullYear(),U.getMonth()+1,1);z(_)},Q=U=>{const I=U.toLocaleDateString(x.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),y=I[0].charAt(0).toUpperCase()+I[0].slice(1),N=I[1],P=I[2].charAt(0).toUpperCase()+I[2].slice(1),S=I[3];return`${y} ${N} de ${P} ${S}`},K=()=>{h(new Date),T(!1)},te=()=>{T(!1),r&&r(v),s&&s({id:m,date:v})};return C.useEffect(()=>{const U=_=>{A.current&&!A.current.contains(_.target)&&T(!1)};return document.addEventListener("mousedown",U),()=>{document.removeEventListener("mousedown",U)}},[A]),{date:k,isOpen:D,setDate:w,language:x,leftMonth:j,setIsOpen:T,formatDate:Q,setLeftMonth:z,handleSearch:te,disablePrev:Z,handleCancel:K,selectedDate:v,isDateInRange:f,datePickerRef:A,getDaysInMonth:H,isDateDisabled:G,handlePrevClick:F,handleNextClick:V,handleDateClick:B,setSelectedDate:h}},ul=({label:e,error:r,locale:s,disabled:i,size:o="180px",onDateChange:l,onChangeFunction:a,disableWeekends:c,keyResetCalendar:d,disablePastDates:u,disableNextTwoDays:g,disableSpecificDate:p,disableBusinessDays:m,disableDaysBasedOnTime:x,disableFiveBusinessDays:v,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:j,heightBoxes:z="40px",labelText:D,subLabelText:T,id:k,value:w,fontSize:A})=>{const{date:H,isOpen:G,setDate:Z,language:f,leftMonth:B,setIsOpen:F,disablePrev:V,isDateInRange:Q,getDaysInMonth:K,isDateDisabled:te,handleDateClick:U,handlePrevClick:_,handleNextClick:I,datePickerRef:y,setSelectedDate:N,setLeftMonth:P,selectedDate:S}=sh({locale:s,onDateChange:l,onChangeFunction:a,disableWeekends:c,disablePastDates:u,disableBusinessDays:m,disableNextTwoDays:g,disableSpecificDate:p,disableDaysBasedOnTime:x,disableFiveBusinessDays:v,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:j,id:k}),O=w instanceof Date?w:void 0,E=W=>{if(!W)return null;const X=W.toLocaleDateString(f.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),J=X[0].charAt(0).toUpperCase()+X[0].slice(1),se=X[1],q=X[2].charAt(0).toUpperCase()+X[2].slice(1),ue=X[3];return`${J} ${se} de ${q} ${ue}`};C.useEffect(()=>{Z(null),N(null)},[d,Z,N]),C.useEffect(()=>{if(O){(B.getMonth()!==O.getMonth()||B.getFullYear()!==O.getFullYear())&&P(new Date(O.getFullYear(),O.getMonth(),1));const W=new Date(O.getFullYear(),O.getMonth(),O.getDate()),R=S?new Date(S.getFullYear(),S.getMonth(),S.getDate()):null;(!R||W.getTime()!==R.getTime())&&N(W)}},[O,B,S,P,N]);const L=W=>{const R=K(W),X=W.getMonth(),J=se=>{const q=!!O&&se&&se.getFullYear()===O.getFullYear()&&se.getMonth()===O.getMonth()&&se.getDate()===O.getDate();return[se&&se.getMonth()!==X?"other-month":"",se&&(Q(se)||q)?"selected":"",te(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:()=>_(W),disabled:V(new Date(W.getFullYear(),W.getMonth()-1,1)),children:t.jsx("span",{className:"sr-only",children:t.jsx(ts,{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:()=>I(W),children:t.jsx("span",{className:"sr-only",children:t.jsx(ns,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${z})`},children:[t.jsx("div",{className:"background-days"}),f.DAYS.map(se=>t.jsx("div",{className:"calendar-day-header",children:se},se)),R.map((se,q)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${J(se)}`,disabled:!se||te(se),onClick:()=>se&&!te(se)&&U(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(Qe,{label:O?E(O):H??e,onchange:()=>{},options:[],size:o,isOpen:G,setIsOpen:F,error:r,disabledClickOutside:!0,disabled:i,keyReset:d,Icon:wi,labelText:D,subLabelText:T,fontSizeLabel:A,withoutOptions:!0}),G&&t.jsx("div",{className:"date-picker-dropdown date-picker-individual",children:t.jsx("div",{className:"calendars-wrapper",children:L(B)})})]})};ul.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 fl=({title:e,description:r,linkText:s,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:r})]}),i]}),t.jsx("div",{className:"line-grey"}),t.jsxs("div",{className:"info-action-card__action",children:[t.jsx("button",{children:s}),t.jsx(mr,{})]})]})};fl.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 is=e=>e.map(r=>({id:r.id,title:r.title,optionsSelect:[]})),ih=(e,r)=>{const[s,i]=C.useState([]),[o,l]=C.useState(is(e)),[a,c]=C.useState(!1),d=C.useRef(null),u=C.useRef(!1),g=j=>{const z={};return e.forEach(D=>{const T=j.find(k=>k.id===D.id);T?z[D.id]={value:T.optionsSelect.map(k=>k.id),allData:T.optionsSelect}:z[D.id]={value:[],allData:[]}}),z},p=j=>{i(z=>z.includes(j)?z.filter(D=>D!==j):[...z,j])},m=(j,z)=>{u.current=!0,l(D=>{var G;const T=D.findIndex(Z=>Z.id===j);let k=[...D],w=[];const A=e.find(Z=>Z.id===j)||{};if(A.multiple!==!1)if(T===-1)w=[z],k.push({id:j,title:A.title||"",optionsSelect:w});else{const Z=D[T].optionsSelect;Z.some(B=>B.id===z.id)?w=Z.filter(B=>B.id!==z.id):w=[...Z,z],w.length===0?k.splice(T,1):(w.sort((B,F)=>{var V;return(V=B.label)==null?void 0:V.localeCompare(F.label)}),k[T].optionsSelect=w)}else if(T===-1||((G=D[T].optionsSelect[0])==null?void 0:G.id)!==z.id?w=[z]:w=[],w.length===0)T>-1&&k.splice(T,1);else{const Z={id:j,title:A.title||"",optionsSelect:w};T===-1?k.push(Z):k[T]=Z}if(r){const Z=g(k);r(Z)}return k})},x=()=>{u.current=!0;const j=is(e);if(l(j),r){const z=g(j);r(z)}},v=C.useCallback(j=>{u.current=!0,l(j)},[]),h=()=>o.reduce((j,z)=>j+z.optionsSelect.length,0);return C.useEffect(()=>{u.current||l(is(e))},[e]),C.useEffect(()=>{const j=z=>{d.current&&!d.current.contains(z.target)&&c(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),{expandedSections:s,selectedFilters:o,toggleSection:p,toggleFilter:m,clearAllFilters:x,open:a,setOpen:c,getLengthFilters:h,filterRef:d,setSelectedFilters:v}},On=(e,r)=>{var s;return r?typeof e=="object"&&!Array.isArray(e)?(s=Object.values(e))==null?void 0:s.flat():Array.isArray(e)?e:[]:Array.isArray(e)?e:[]},oh=(e,r)=>r||Array.isArray(e)?e:[],pl=({data:e=[],onChange:r,disabled:s,keyRest:i,value:o,fontSizeLabel:l="0.8vw",fontSizeTitles:a,fontSizeSelects:c="0.8vw",widthFilterComponent:d="380px",heightFilterComponent:u="400px",right:g="0",top:p="0"})=>{const{open:m,setOpen:x,toggleFilter:v,toggleSection:h,selectedFilters:j,clearAllFilters:z,getLengthFilters:D,expandedSections:T,filterRef:k,setSelectedFilters:w}=ih(e,r),[A,H]=C.useState({}),[G,Z]=C.useState({}),f=C.useRef({}),B=C.useRef(!0),F=132,V=220,Q=I=>{H(y=>({...y,[I]:!y[I]}))};C.useEffect(()=>{e.forEach(I=>{(I.selectAll||I.basicSelect)&&!(T!=null&&T.includes(I==null?void 0:I.id))&&h(I==null?void 0:I.id)})},[e,T,h]);const K=(I,y,N,P)=>{const S=N==null?void 0:N.filter(E=>P.includes(E.id)),O=o!==void 0?o:j;w(()=>{const E=O==null?void 0:O.findIndex(W=>(W==null?void 0:W.id)===I);let L=[...O];if(S.length===0)E>-1&&L.splice(E,1);else{const W={id:I,title:y,optionsSelect:S};E===-1?L.push(W):L[E]=W}if(r){const W={};e.forEach(R=>{if((R==null?void 0:R.id)===I)W[R==null?void 0:R.id]={value:P,allData:S};else{const X=L==null?void 0:L.find(J=>(J==null?void 0:J.id)===(R==null?void 0:R.id));X&&X.optionsSelect.length>0?W[R==null?void 0:R.id]={value:X.optionsSelect.map(J=>J.id),allData:X.optionsSelect}:W[R==null?void 0:R.id]={value:[],allData:[]}}}),r(W)}return L})},te=(I,y,N,P)=>{const S=N==null?void 0:N.find(E=>E.value===P||E.label===P),O=o!==void 0?o:j;w(()=>{const E=O==null?void 0:O.findIndex(W=>(W==null?void 0:W.id)===I);let L=[...O];if(!S)E>-1&&L.splice(E,1);else{const W={id:I,title:y,optionsSelect:[S]};E===-1?L.push(W):L[E]=W}if(r){const W={};e.forEach(R=>{if((R==null?void 0:R.id)===I)W[R==null?void 0:R.id]={value:P,allData:S?[S]:[]};else{const X=L==null?void 0:L.find(J=>(J==null?void 0:J.id)===(R==null?void 0:R.id));X&&X.optionsSelect.length>0?W[R==null?void 0:R.id]={value:X.optionsSelect.map(J=>J.value||J.id),allData:X.optionsSelect}:W[R==null?void 0:R.id]={value:[],allData:[]}}}),r(W)}return L})};C.useEffect(()=>{const I={};T==null||T.forEach(y=>{const N=f.current[y];N&&N.scrollHeight>F&&(I[y]=!0)}),Z(I)},[T,e]);const U=o!==void 0?o:j;C.useEffect(()=>{if(B.current){B.current=!1;return}w(o===void 0?[]:o)},[i,w,o]),C.useEffect(()=>{o!==void 0&&!B.current&&w(o)},[o,w]);const _=o!==void 0?U==null?void 0:U.reduce((I,y)=>{var N;return I+((N=y==null?void 0:y.optionsSelect)==null?void 0:N.length)},0):D();return t.jsxs("div",{className:"toggle-filter-component",ref:k,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:s,onClick:()=>x(!m),style:{fontSize:a},children:["Filtro ",_?`(${_})`:"",t.jsx(Ai,{})]}),m&&t.jsxs("div",{className:"filter-container-component",style:{width:d,height:u,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?U.reduce((y,N)=>{var P;return y+((P=N==null?void 0:N.optionsSelect)==null?void 0:P.length)},0):D())>0&&t.jsxs("button",{className:"clear-all",onClick:z,style:{fontSize:a},children:["Borrar todo",t.jsx(wr,{width:"15px",height:"15px"})]}),t.jsx(ft,{sx:{color:"#8598ad"},style:{width:"14px",height:"14px"},onClick:()=>x(!m)})]})]}),e.map(({id:I,title:y,options:N,selectAll:P,basicSelect:S,placeholderInput:O,label:E,textSelectAll:L,grouped:W,disabledSection:R})=>{var X,J,se,q,ue,le;return t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>!(P||S)&&h(I),style:{cursor:P||S?"default":"pointer"},children:[t.jsxs("span",{className:"section-header-title",style:{fontSize:l},children:["Por ",y]}),!(P||S)&&(T==null?void 0:T.includes(I))&&t.jsx("span",{className:"filter-container-icon",children:t.jsx(qr,{isOpen:T==null?void 0:T.includes(I),onChange:()=>{},color:"#8598AD",padding:"2px",display:"flex",height:"auto",width:"auto"})})]}),(T==null?void 0:T.includes(I))&&t.jsx(t.Fragment,{children:P?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Vr,{data:oh(N,W),grouped:W||!1,label:E||y,maxheight:"200px",onChange:fe=>{K(I,y,On(N,W),fe)},placeholderSearch:O||`Buscar ${y==null?void 0:y.toLowerCase()}`,textSelectAll:L||`Todos los ${y==null?void 0:y.toLowerCase()}`,width:"100%",widthDropdown:"100%",isRelative:!0,selectedValues:((J=(X=U.find(fe=>(fe==null?void 0:fe.id)===I))==null?void 0:X.optionsSelect)==null?void 0:J.map(fe=>fe.id))||[],fontSizeLabel:l,disabled:R,fontSizeOptions:c})}):S?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Qe,{label:E||y,options:On(N,W),onchange:fe=>{te(I,y,On(N,W),fe.value)},placeholderInputSearch:O||`Buscar ${y==null?void 0:y.toLowerCase()}`,size:"100%",value:((ue=(q=(se=U==null?void 0:U.find(fe=>(fe==null?void 0:fe.id)===I))==null?void 0:se.optionsSelect)==null?void 0:q[0])==null?void 0:ue.value)||"",position:"relative",fontSizeLabel:l,disabled:R,fontSizeOptions:c})}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:fe=>f.current[I]=fe,style:G[I]?A[I]?{maxHeight:V,overflowY:"scroll"}:{maxHeight:F,overflow:"hidden"}:{},children:(le=On(N,W))==null?void 0:le.map(fe=>{const Be=U==null?void 0:U.some(we=>{var Re;return(we==null?void 0:we.id)===I&&((Re=we==null?void 0:we.optionsSelect)==null?void 0:Re.some(ce=>ce.id===fe.id))});return t.jsx(es,{height:"27px",onChange:()=>v(I,fe),isSelect:Be,children:fe.label},fe.id)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:(G==null?void 0:G[I])&&t.jsx("button",{className:"view-more",onClick:()=>Q(I),children:A[I]?"Ver menos":"Ver más"})})]})})]},I)})]})]})};pl.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 gl=({title:e,description:r,linkText:s,icon:i,fnNavigate:o,width:l,fnDownload:a,gapTitleDescription:c,height:d,hasDownloadButton:u,fontSizeTitle:g,fontSizeDescription:p,fontSizeButton:m,textButton:x,widthButton:v="7.5vw",id:h})=>t.jsxs("section",{id:"info-action-card-download-template",className:"info-action-card",style:{width:l,height:d},onClick:()=>o(h),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:r})]}),t.jsx("div",{className:"info-action-card__content__icon",children:i})]}),u&&t.jsx(Yr,{buttonProperties:{disabled:!1,onClick:()=>a(),style:{minHeight:"32px",width:v,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:s}),t.jsx(mr,{})]})})]});gl.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 ml=({iconTitle:e,title:r,mainData:s,news:i,width:o,height:l,onChange:a,isSelected:c,value:d,disabled:u,keyReset:g,heightTitleFilter:p="20px",color:m="#575EE0"})=>{const[x,v]=C.useState({isSelected:c||!1,value:d||null}),h=D=>d===D.title,j=({item:D,from:T})=>{const k={isSelected:x.value!==D.title,value:x.value===D.title?null:D.title};v(k),a({item:D,from:T,title:r,selected:k.value,isSelected:k.isSelected})};C.useEffect(()=>{v({isSelected:!1,value:null})},[g]);const z=D=>!!(Number(D.quantity)===0||u);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:r})]}),t.jsx("div",{className:"ProcessFilter-statsWrapper",children:t.jsx(Ii,{})})]}),t.jsx("div",{className:"ProcessFilter-mainData",children:s.map(D=>t.jsxs("div",{onClick:()=>z(D)?null:j({item:D,from:"main"}),className:`ProcessFilter-item-wrapper ${h(D)?"selected":""} ${z(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,T)=>D+(parseInt(T.quantity)||0),0),")"]}),i.map(D=>t.jsxs("div",{onClick:()=>z(D)?null:j({item:D,from:"news"}),className:`ProcessFilter-item-wrapper ${h(D)?"selected":""} ${z(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))]})]})};ml.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 lh=({locale:e="es",disablePastDates:r,onDateRangeChange:s,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,u]=C.useState(!1),[g,p]=C.useReducer(S=>S+1,0),m=e==="es"?rs:ss,[x,v]=C.useState(null),[h,j]=C.useState(null),[z,D]=C.useState(null),[T,k]=C.useState(new Date),[w,A]=C.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[H,G]=C.useState(!1),Z=(S,O)=>{const E=new Date;if(E.setHours(0,0,0,0),c){const L=new Date(E);if(L.setDate(E.getDate()-c),S<L||S>E)return!0}return O&&r&&S<E||!O&&a&&S>E||r&&S<E||a&&S>E?!0:l>0&&x?ll(S,x,l):!1},f=S=>{const O=S.getFullYear(),E=S.getMonth(),W=new Date(O,E,1).getDay(),R=new Date(O,E+1,0),X=[],J=new Date(O,E,0).getDate();for(let ue=W-1;ue>=0;ue--)X.push(new Date(O,E-1,J-ue));for(let ue=1;ue<=R.getDate();ue++)X.push(new Date(O,E,ue));const q=42-X.length;for(let ue=1;ue<=q;ue++)X.push(new Date(O,E+1,ue));return X},B=S=>!x||!h?!1:S>=x&&S<=h,F=S=>!x||!z?!1:S>=x&&S<=z||S<=x&&S>=z,V=S=>{!x||h?(v(S),j(null)):S<x?(j(x),v(S),i&&N(S,x)):(j(S),i&&N(x,S))},Q=S=>{D(S)},K=()=>!x||!h?0:Math.round((h.getTime()-x.getTime())/(1e3*60*60*24))+1,te=(S,O)=>{const E=new Date(S.getFullYear(),S.getMonth()-1,1);r&&E<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&O||(O?k(E):(A(E),E.getMonth()===T.getMonth()&&k(new Date(E.getFullYear(),E.getMonth()-1,1))))},U=(S,O)=>{const E=new Date(S.getFullYear(),S.getMonth()+1,1);O?(k(E),E.getMonth()===w.getMonth()&&A(new Date(E.getFullYear(),E.getMonth()+1,1))):A(E)},_=S=>{const E=S.toLocaleDateString(m.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),L=E[0].charAt(0).toUpperCase()+E[0].slice(1),W=E[1],R=E[2].charAt(0).toUpperCase()+E[2].slice(1),X=E[3];return`${L} ${W} de ${R} ${X}`},I=()=>{const S=new Date;v(null),j(null),k(S),A(new Date(new Date().setMonth(new Date().getMonth()+1))),G(!1),o({startDate:null,endDate:null}),p()},y=()=>{G(!1);const S=lt(x),O=lt(h);s({startDate:S,endDate:O}),u(!1)},N=(S,O)=>{v(S),j(O),G(!1);const E=lt(S),L=lt(O);s({startDate:E,endDate:L}),u(!1)};return{isOpen:H,endDate:h,language:m,leftMonth:T,startDate:x,setIsOpen:G,hoverDate:z,rightMonth:w,formatDate:_,handleSearch:y,handleCancel:I,isDateInRange:B,getDaysInMonth:f,isDateDisabled:Z,handleDateClick:V,handleDateHover:Q,handlePrevClick:te,handleNextClick:U,getDaysSelected:K,isDateInHoverRange:F,keyReset:g,resetSelect:p,handleBasicSelect:({value:S})=>{S==="custom"?(u(!0),G(!1)):s({value:S})},isOpenCalendar:d,setIsOpenCalendar:u}},yl=({locale:e="es",onDateRangeChange:r,disablePastDates:s,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:u,disableFutureDates:g,optionsBasicSelect:p,withoutSearchButton:m,widthBasicSelect:x,fontSizeLabelBasicSelect:v,fontSizeOptionsBasicSelect:h,labelText:j,subLabelText:z,disablePastDaysCount:D,keyResetBasicSelect:T})=>{const{keyReset:k,isOpen:w,endDate:A,language:H,leftMonth:G,startDate:Z,setIsOpen:f,rightMonth:B,handleSearch:F,handleCancel:V,isDateInRange:Q,getDaysInMonth:K,isDateDisabled:te,handleDateClick:U,handleDateHover:_,handlePrevClick:I,handleNextClick:y,getDaysSelected:N,isDateInHoverRange:P,handleBasicSelect:S,isOpenCalendar:O,setIsOpenCalendar:E}=lh({locale:e,onReset:l,onDateRangeChange:r,disablePastDates:s,withoutSearchButton:m,limitRange:i,disableFutureDates:g,disablePastDaysCount:D}),L=C.useRef(null);C.useEffect(()=>{const R=X=>{L.current&&!L.current.contains(X.target)&&(w||O)&&(f(!1),E(!1),o||V())};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[A,V,w,f,Z,o,O,E]);const W=(R,X=!0)=>{const J=K(R),se=R.getMonth(),q=(le,fe)=>[le&&le.getMonth()!==se?"other-month":"",le&&Q(le)?"in-range":"",le&&P(le)?"hover-range":"",le&&(le.getTime()===(Z==null?void 0:Z.getTime())||le.getTime()===(A==null?void 0:A.getTime()))?"selected":"",te(le,fe)?"disabled":""].join(" "),ue=({date:le,isLeftCalendar:fe,disablePastDates:Be,leftMonth:we})=>{const Re=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),ce=new Date(le.getFullYear(),le.getMonth()-1,1).getTime();return!!(Be&&(ce<Re||!fe&&new Date(we.getFullYear(),we.getMonth(),1).getTime()<=Re))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>I(R,X),disabled:An(new Date(R.getFullYear(),R.getMonth()-1,1),!0,Z,i)||ue({date:R,isLeftCalendar:X,disablePastDates:s,leftMonth:G}),children:t.jsx("span",{className:"sr-only",children:t.jsx(ts,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[H.MONTHS[R.getMonth()],t.jsx("p",{children:R.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>y(R,X),disabled:An(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(ns,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),H.DAYS.map(le=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:le},le)),J.map((le,fe)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${q(le,X)}`,disabled:!le||te(le),onClick:()=>le&&!te(le)&&U(le),onMouseEnter:()=>le&&!te(le)&&_(le),onMouseLeave:()=>_(null),children:t.jsx("span",{className:`day-text ${le?"":"text-muted"}`,style:{fontSize:d},children:le?le.getDate():""})})},`${le}_${fe}`))]})]})};return C.useEffect(()=>{T&&V()},[T]),C.useEffect(()=>{w&&E(!1)},[w]),t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:L,style:{width:x},children:[t.jsx(Qe,{label:"Buscar por fecha",options:p,size:x,isOpen:w,setIsOpen:f,disabledClickOutside:!0,disabled:u,onchange:S,fontSizeLabel:v,fontSizeOptions:h,keyReset:k,labelText:j,subLabelText:z,sortAlphabetically:!1}),O&&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(G,!0),W(B,!1)]}),!m&&t.jsx("div",{className:"date-picker-footer",children:Z&&A&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[N()," ",H.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Dn,{buttonProperties:{onClick:()=>V(),style:{width:"115px",textAlign:"center"}},children:H.cancel}),t.jsx(Ue,{buttonProperties:{onClick:()=>F(),style:{width:"115px",textAlign:"center"}},children:H.search})]})]})})]})]}),Z&&A&&o&&t.jsx("button",{className:"button-reset",onClick:()=>V(),children:t.jsx(Cn,{})})]})};yl.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 ah=_e(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"),xl=({data:e,language:r,onSave:s,onCancel:i,isUpdate:o})=>{const[l,a]=C.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[r]??c.es,u=p=>{const m=l.filter((x,v)=>v!==p);a(m)},g=()=>{s(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(ft,{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:()=>u(m),children:t.jsx(ah,{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(Nt,{buttonProperties:{disabled:!1,onClick:()=>i(),style:{width:"45%"}},children:d.cancel}),t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"45%"}},children:d.save})]})]})})};xl.propTypes={data:n.array,language:n.oneOf(["en","es"]),onSave:n.func,onCancel:n.func,isUpdate:n.bool};const vl=e=>e.toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"}),bl=({isOpen:e,ticketNumber:r="##000",date:s=new Date,setIsOpen:i,isReadOnly:o=!1,fontSize:l="1vw",fontSizeButton:a="0.8vw",fontSizeTicketNumber:c="1.3vw",width:d="40vw",onAccept:u,onCreateNewTicket:g,createNewTicket:p=!0})=>{if(!e)return null;const m=()=>i(!1),x=()=>{m(),u()},v=()=>{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(ft,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[o&&t.jsxs("div",{className:"alert",children:[t.jsx(Ut,{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(Tn,{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:r})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:vl(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",style:{justifyContent:p?"space-between":"center"},children:[p&&t.jsx(Nt,{buttonProperties:{disabled:!1,onClick:()=>v(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>x(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})]})})};bl.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 ch="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=",jl=({onChange:e,handleClose:r})=>{const[s,i]=C.useState(!1),o=()=>{e(s),r()};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-VisualizationModaLogin",children:[t.jsx("img",{src:ch,alt:"",className:"backgroundTicket"}),t.jsx("div",{className:"TicketImageUserReadOnly",style:{height:"95px"},children:t.jsx("div",{className:"UserReadOnlyIconCenter",children:t.jsx(Ut,{width:80})})}),t.jsx("button",{className:"close-button-VisualizationModaLogin",onClick:r,children:t.jsx(ft,{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(Je.FormControlLabel,{control:t.jsx(Je.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(Ue,{buttonProperties:{disabled:!1,onClick:()=>{o()},style:{width:"40%"}},children:"ACEPTAR"})})]})]})]})})};jl.propTypes={onChange:n.func,handleClose:n.func};const wl=({isOpen:e,setIsOpen:r,width:s="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:u})=>{if(!e)return null;const g=()=>r(!1),p=()=>{r(!1),u()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:s},children:[t.jsx("button",{onClick:g,className:"closeButton",children:t.jsx(ft,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[t.jsx("div",{className:"iconContainer",children:t.jsx(jr,{})}),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(Ue,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"100%",fontSize:l}},children:d})})]})]})})};wl.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 kl=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-InProcessing",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(zn,{fill:"#d0aa00"}),"En Procesamiento"]});kl.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Cl=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-ToStart",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(zn,{fill:"#7c92c5"}),"Por Iniciar"]});Cl.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const os=(e,r="100px",s,i,o)=>({Activo:t.jsx(Gr,{width:r,fontSize:s,marginAuto:i,height:o}),Cancelada:t.jsx(Xr,{width:r,fontSize:s,marginAuto:i,height:o}),Finalizada:t.jsx(Jr,{width:r,fontSize:s,marginAuto:i,height:o}),Inactivo:t.jsx(Kr,{width:r,fontSize:s,marginAuto:i,height:o}),"En Procesamiento":t.jsx(kl,{width:r,fontSize:s,marginAuto:i,height:o}),"Por Iniciar":t.jsx(Cl,{width:r,fontSize:s,marginAuto:i,height:o}),"En tránsito":t.jsx(Qr,{width:r,fontSize:s,marginAuto:i,height:o})})[e]||e,Sl=({data:e,onEdit:r,width:s,dataKeysNotToRender:i=[],textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeight:d,onFnIcon:u,icon:g=t.jsx(yr,{}),widthState:p,onEditSubData:m,onFnIconSubData:x,subMessage:v,onClickOptions:h,onClickSubOptions:j,fontSizeTHead:z,fontSizeTBody:D,widthOptions:T,fontSizeOptions:k,nameOfKeyState:w="Estado",texAlignTHead:A="start",textAlignTBody:H="start",fontSizeState:G,fontStyleTBody:Z="normal",fontStyleTHead:f="normal"})=>{const[B,F]=C.useState({}),V=_=>{F(I=>({...I,[_]:!I[_]}))},Q=_=>{r(_)},K=_=>{m(_)},te=e.length>0?Object.keys(e[0]).filter(_=>_!=="subData"&&!i.includes(_)):[],U=_=>_!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),te.map((_,I)=>t.jsx("th",{style:{fontSize:z,textAlign:A,fontStyle:f},children:_.replace(/_/g," ")},I)),te.length>0?t.jsx("th",{style:{fontSize:z,textAlign:A,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:te.length+1,style:{fontSize:c,textAlign:"center",fontStyle:Z},children:a})}),e==null?void 0:e.map(_=>{var I;return t.jsxs(C.Fragment,{children:[t.jsxs("tr",{className:"main-row",children:[t.jsx("td",{children:t.jsx("button",{onClick:()=>V(_.id),className:"reset-styles-button",style:{width:"100%"},children:t.jsx("i",{className:`arrow-grey-container ${B[_.id]?"up":"down"}`})})}),te.map((y,N)=>t.jsx("td",{style:{color:y!==w?U(_.Estado):"black",padding:y===w?"0 9px":"10px",fontSize:D,textAlign:H,fontStyle:Z},children:y===w?os(_[y],p,G,H==="center"):_[y]||"-"},N)),((I=_==null?void 0:_.options)==null?void 0:I.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(Dt,{onClick:y=>{h({option:y,row:_})},options:[..._.options],fontSize:k,width:T})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>Q(_),style:{fontSize:D,fontStyle:Z},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>u(_),children:g})]})})]}),B[_.id]&&t.jsx("tr",{className:"sub-row",style:{fontStyle:"italic"},children:Array.from({length:te.length+2},(y,N)=>t.jsx("td",{className:"td-empty",style:{fontWeight:"600"},children:N===1?`${v}`:""},N))}),B[_.id]&&_.subData.length>0&&_.subData.map((y,N)=>{var P;return t.jsxs("tr",{className:"sub-row",children:[t.jsx("td",{})," ",te.map((S,O)=>t.jsx("td",{style:{color:S!==w?U(y.Estado):"black",padding:S===w?"0 9px":"10px",fontSize:D,textAlign:H,fontStyle:Z},children:S===w?os(y[S],p,G,H==="center"):y[S]||"-"},O)),((P=y==null?void 0:y.options)==null?void 0:P.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(Dt,{onClick:S=>{j({option:S,row:y})},options:[...y.options],fontSize:k,width:T})}):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:Z},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>x(y),children:g})]})})]},N)})]},_.id)})]})]})};Sl.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 Tl=({data:e,dataKeysNotToRender:r,title:s,minWidth:i,texAlignTHead:o="start",textAlignTBody:l="start",fontSizeTHead:a,fontSizeTBody:c,fontSizeTitle:d})=>{const u=e.length>0?Object.keys(e[0]).filter(g=>!r.includes(g)):[];return t.jsxs("div",{className:"log-container",style:{minWidth:i},children:[t.jsx("h1",{className:"log-title",style:{fontSize:d},children:s}),t.jsxs("table",{className:"log-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:u.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:u.map((m,x)=>t.jsx("td",{children:t.jsx("p",{children:g[m]})},x))},p))})]})]})};Tl.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 Ml=({data:e,minWidth:r,dataKeysNotToRender:s,topToolTip:i,toolTips:o,fontSizeToolTip:l,messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:u="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px",isWrap:v=!1,width:h="100%"})=>{const[j,z]=C.useState(null),D=w=>{z(w)},T=()=>{z(null)},k=e.length>0?Object.keys(e[0]).filter(w=>!s.includes(w)):[];return t.jsxs("table",{className:"table-ixc",style:{minWidth:r,minHeight:d,width:h},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[k.map((w,A)=>t.jsxs("th",{className:"relative",onMouseEnter:()=>D(w),onMouseLeave:T,style:{height:x},children:[t.jsx("p",{style:{textAlign:u,fontSize:p,whiteSpace:v?"wrap":"nowrap",textOverflow:v?"clip":"ellipsis",overflow:v?"auto":"hidden"},children:w}),o&&o[w]&&j===w&&t.jsx("div",{className:"tooltipTable",style:{top:i},children:t.jsx(zr,{fontSize:l,children:o[w]})})]},A)),k.length===0&&t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:k.length+1,style:{fontSize:c,textAlign:"center",whiteSpace:v?"wrap":"nowrap",textOverflow:v?"clip":"ellipsis",overflow:v?"auto":"hidden"},children:a})}),e.map((w,A)=>t.jsx("tr",{children:k.map((H,G)=>t.jsx("td",{style:{textAlign:g,fontSize:m,whiteSpace:v?"wrap":"nowrap",textOverflow:v?"clip":"ellipsis",overflow:v?"auto":"hidden",height:x},children:w[H]},G))},(w==null?void 0:w.id)||A))]})]})};Ml.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 zl=({data:e,onEdit:r,width:s,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,icon:u,onFnIcon:g,onClickOptions:p,widthOptions:m,fontSizeOptions:x,texAlignTHead:v="start",textAlignTBody:h="start",fontSizeTHead:j,fontSizeTBody:z})=>{const D=k=>{r(k)},T=e.length>0?Object.keys(e[0]).filter(k=>k!=="options"&&!i.includes(k)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[T.map((k,w)=>t.jsx("th",{style:{textAlign:v,fontSize:j},children:k},w)),T.length>0?t.jsx("th",{style:{textAlign:v,fontSize:j},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:T.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((k,w)=>{var A;return t.jsxs("tr",{children:[T.map((H,G)=>t.jsx("td",{style:{textAlign:h,fontSize:z},children:k[H]},G)),((A=k==null?void 0:k.options)==null?void 0:A.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(Dt,{onClick:H=>{p({option:H,row:k})},options:[...k.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(k),style:{fontSize:z,textAlign:h},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>g(k),style:{textAlign:o?h:"center"},children:u})]})})]},(k==null?void 0:k.id)||w)})]})]})};zl.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 El=({data:e,onEdit:r,width:s,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:u="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px"})=>{const v=j=>{r(j)},h=e.length>0?Object.keys(e[0]).filter(j=>!i.includes(j)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[h.map((j,z)=>t.jsx("th",{style:{textAlign:u,fontSize:p},children:j},z)),h.length>0?t.jsx("th",{style:{textAlign:u,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:h.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((j,z)=>t.jsxs("tr",{children:[h.map((D,T)=>t.jsx("td",{style:{textAlign:g,fontSize:m},children:j[D]},T)),t.jsx("td",{children:t.jsx("button",{className:"edit-button",onClick:()=>v(j),style:{fontSize:m,textAlign:g,height:x},children:o})})]},(j==null?void 0:j.id)||z))]})]})};El.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 Nl=({data:e,children:r,width:s,dataKeysNotToRender:i=[],textHeader:o="Acciones",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeigth:c,texAlignTHead:d="start",textAlignTBody:u="start",fontSizeTHead:g,fontSizeTBody:p,heightTd:m="30px"})=>{const x=e.length>0?Object.keys(e[0]).filter(h=>!i.includes(h)):[],v=h=>{if(!r)return null;const j=z=>{if(!z.props.onClick)return z;const D=z.props.onClick,T=k=>{k.rowData=h,D(k)};return C.cloneElement(z,{...z.props,onClick:T})};return Array.isArray(r)?r.map((z,D)=>j(C.cloneElement(z,{key:D,rowData:h,...z.props}))):j(C.cloneElement(r,{rowData:h}))};return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:c},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[x.map((h,j)=>t.jsx("th",{style:{textAlign:d,fontSize:g},children:h},j)),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((h,j)=>t.jsxs("tr",{children:[x.map((z,D)=>t.jsx("td",{style:{textAlign:u,fontSize:p},children:h[z]},D)),t.jsx("td",{children:t.jsx("div",{className:"action-icon",style:{height:m,display:"flex",alignItems:"center",gap:"10px"},children:v(h)})})]},(h==null?void 0:h.id)||j))]})]})};Nl.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 Dl=({data:e,onEdit:r,width:s,textButton:i="Editar",textHeader:o="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeight:c,onFnIcon:d,icon:u=t.jsx(yr,{}),widthState:g,onClickOptions:p,fontSizeTHead:m,fontSizeTBody:x,widthOptions:v,fontSizeOptions:h,dataKeysNotToRender:j=[],nameOfKeyState:z="Estado",texAlignTHead:D="start",textAlignTBody:T="start",fontSizeState:k,heightStates:w="18px",heightTd:A="30px",fontStyleTBody:H="normal",fontStyleTHead:G="normal"})=>{const Z=F=>{r(F)},f=(e==null?void 0:e.length)>0?Object.keys(e[0]).filter(F=>F!=="options"&&!j.includes(F)):[],B=F=>F!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:c,fontStyle:H},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[f.map((F,V)=>t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:G},children:F},V)),f.length>0?t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:G},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:H},children:l})}),e.map((F,V)=>{var Q;return t.jsxs("tr",{children:[f.map((K,te)=>t.jsx("td",{style:{fontSize:x,textAlign:T,color:K!==z?B(F.Estado):"black",height:A,fontStyle:H},children:K===z?os(F[K],g,k,T==="center",w):F[K]},te)),((Q=F==null?void 0:F.options)==null?void 0:Q.length)>0?t.jsx("td",{style:{overflow:"visible",height:A,fontStyle:H},children:t.jsx(Dt,{onClick:K=>{p({option:K,row:F})},options:[...F.options],fontSize:h,width:v})}):t.jsx("td",{style:{height:A,fontStyle:H},children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>Z(F),style:{fontSize:x,textAlign:T,fontStyle:H},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>d(F),children:u})]})})]},(F==null?void 0:F.id)||V)})]})]})};Dl.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 Al=({isOpen:e,ticketNumber:r="##000",date:s=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 u=()=>i(!1),g=()=>{u()};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(Ut,{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(Tn,{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:r})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:vl(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(Nt,{buttonProperties:{disabled:!1,onClick:()=>u(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})})};Al.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 Ol=({menus:e,size:r,onclick:s,height:i,fontSize:o})=>{var p;const l=e||[],[a,c]=C.useState(((p=l[0])==null?void 0:p.id)||""),[d,u]=C.useState(100/l.length),g=m=>{c(m.id),s(m)};return C.useEffect(()=>{const m=()=>{const x=100/l.length;u(x)};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[l.length]),t.jsx("nav",{className:"dynamic-menu",style:{width:r,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))})})};Ol.propTypes={menus:n.array,size:n.string,onclick:n.func,height:n.string,fontSize:n.string};const Il=({children:e,onChange:r,tabs:s,value:i,minHeight:o,width:l})=>{const[a,c]=C.useState(i),d=u=>{c(u),r(u)};return t.jsxs("div",{className:"tabs-container",style:{width:l},children:[t.jsx("div",{className:"tabs-wrapper",children:s.map(u=>t.jsxs("button",{onClick:()=>d(u.id),className:`tab-button ${a===u.id?"active":""}`,children:[t.jsx("span",{className:"tab-title",children:u.title}),t.jsx("span",{className:"tab-subtitle",children:u.subtitle})]},u.id))}),t.jsx("div",{style:{minHeight:o},children:e})]})};Il.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 Rl=({tabs:e,width:r,onChange:s,disabled:i,defaultValue:o})=>{var d;const[l,a]=C.useState(o||((d=e[0])==null?void 0:d.key)||"");C.useEffect(()=>{o&&a(o)},[o]);const c=u=>{a(u),s(u)};return t.jsx("div",{className:"DeliveryTabs-tabs-container",style:{width:r},children:t.jsx("div",{className:"tabs-wrapper",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((u,g)=>t.jsx("button",{disabled:i,className:`tab ${l===u.key?"active":""} ${g===0?"first-tab":""} ${g===e.length-1?"last-tab":""}`,onClick:()=>c(u.key),role:"tab","aria-selected":l===u.key,children:u.label},u.key))})})};Rl.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 Pl=({tabs:e,width:r,onChange:s})=>{const[i,o]=C.useState(e[0].id),l=a=>{o(a),s(a)};return t.jsx("div",{className:"tabs-simple-container",style:{width:r},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))})})};Pl.propTypes={tabs:n.array,width:n.string,onChange:n.func};const Wl=({titles:e=["1. Cargar Datos de Cancelación","2. Validar los Datos Cargados","3. Aceptar o Rechazar"],currentStep:r=1,fontSizeTitles:s,widthIcon:i,heightIcon:o,width:l})=>{const a=[Pi,Ri,Wi],c=e.map((d,u)=>({number:u+1,title:d,icon:a[u]}));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:r===1?"0%":r===2?"52%":"100%"}})}),t.jsx("div",{className:"stepper-steps",children:c.map(d=>{const u=d.icon,g=r>=d.number;return t.jsxs("div",{className:`stepper-step ${g?"active":""}`,style:{height:o},children:[t.jsx("span",{className:"stepper-title",style:{fontSize:s},children:d.title},d.number),t.jsx("div",{className:"stepper-icon",style:{width:i,height:o},children:t.jsx(u,{})})]},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,menu:r,submenu:s,tab:i,navigateFn:o,fontSize:l,Icon:a,marginTop:c})=>{const d=()=>{o({submenu:s,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(fr,{width:25,height:25})}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:r}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(pr,{})})]}),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:s}),i&&t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(pr,{})}),i&&t.jsx("li",{className:"list-none color-tab",style:{fontSize:l},children:i})]})]})};$l.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 _l=({steps:e=[],currentStep:r=1,width:s="600px"})=>{const i=()=>e.length<=1?0:r/e.length*100;return t.jsxs("div",{className:"stepper-container",style:{width:s},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<r,d=a===r;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)})})]})};_l.propTypes={steps:n.array,currentStep:n.number,width:n.string};const Bl=({icon:e,title:r,className:s="",children:i})=>t.jsxs("div",{className:`data-section ${s}`,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:r})]}),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})})]});Bl.propTypes={icon:n.elementType,title:n.string,className:n.string,children:n.oneOfType([n.node,n.arrayOf(n.node)])};const Ll=({title:e,icon:r,className:s="",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 ${s}`,children:[t.jsxs("div",{className:"observations-header",children:[r&&t.jsx(r,{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})})]});Ll.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 Fl=({children:e,className:r="",...s})=>t.jsx("th",{className:`th-table-ixc ${r}`.trim(),...s,children:e});Fl.propTypes={children:n.node,className:n.string};const dh=(e=[])=>{const r=C.useRef(null),[s,i]=C.useState(!1),o=C.useCallback(()=>{if(r.current){const l=r.current,a=l.scrollWidth>l.clientWidth;return i(a),a}return!1},[]);return C.useEffect(()=>{const a=setTimeout(()=>{o()},0);return window.addEventListener("resize",o),()=>{clearTimeout(a),window.removeEventListener("resize",o)}},e),{ref:r,isTruncated:s,checkTruncation:o}},Hl=({children:e,className:r="",classTooltip:s="",showTooltipOnTruncate:i=!1,left:o=120,top:l=0,...a})=>{const{ref:c,isTruncated:d}=dh([e]),[u,g]=C.useState(!1),[p,m]=C.useState({top:0,left:0}),x=h=>{if(d&&i){const j=h.currentTarget.getBoundingClientRect();m({top:j.top+l,left:j.left+o}),g(!0)}},v=h=>{const j=h.relatedTarget;j&&typeof j.closest=="function"&&j.closest(".td-tooltip-container")||g(!1)};return t.jsxs(t.Fragment,{children:[t.jsx("td",{ref:c,className:`td-table-ixc-base ${r}`.trim(),onMouseEnter:x,onMouseLeave:v,...a,children:e}),u&&la.createPortal(t.jsx("div",{className:`td-tooltip-container ${s}`.trim(),style:{top:`${p.top}px`,left:`${p.left}px`},onMouseEnter:()=>g(!0),onMouseLeave:h=>{var z;const j=h.relatedTarget;j&&typeof j.closest=="function"&&((z=c.current)!=null&&z.contains(j))||g(!1)},children:e}),document.body)]})};Hl.propTypes={children:n.node,className:n.string,classTooltip:n.string,showTooltipOnTruncate:n.bool,left:n.number,top:n.number};const Vl=({children:e,className:r="",...s})=>t.jsx("thead",{className:`thead-table-ixc ${r}`.trim(),...s,children:e});Vl.propTypes={children:n.node,className:n.string};const Zl=({children:e,className:r="",...s})=>t.jsx("tr",{className:`tr-table-ixc ${r}`.trim(),...s,children:e});Zl.propTypes={children:n.node,className:n.string};const Ul=({children:e,className:r="",...s})=>t.jsx("tbody",{className:`tbody-table-ixc-base ${r}`.trim(),...s,children:e});Ul.propTypes={children:n.node,className:n.string};const Yl=({children:e,className:r,...s})=>t.jsx("table",{className:`table-v2 ${r}`,...s,children:e});Yl.propTypes={children:n.node,className:n.string};const hh=Object.assign(Yl,{Th:Fl,Td:Hl,Thead:Vl,Tr:Zl,Tbody:Ul}),ql=({children:e,style:r})=>t.jsx("h3",{className:"blue-title",style:{...r},children:e});ql.propTypes={children:n.any,style:n.object};const Gl=({children:e,navigateTo:r,style:s})=>t.jsx("button",{onClick:()=>r(),style:{...s},className:"ions-link",children:e});Gl.propTypes={children:n.node,navigateTo:n.func,style:n.object};const Kl=({children:e,className:r=""})=>t.jsx("h2",{className:`simple-title ${r}`,children:e});Kl.propTypes={children:n.node,className:n.string};const Xl=({children:e,className:r=""})=>t.jsx("p",{className:`paragraph ${r}`,children:e});Xl.propTypes={children:n.node,className:n.string};const Jl=({children:e,className:r=""})=>t.jsx("div",{className:`template-container ${r}`,children:e});Jl.propTypes={children:n.node,className:n.string},n.checkPropTypes=()=>{},M.Active=Gr,M.BasicSelect=Qe,M.BlueTitle=ql,M.BoldIcon=ur,M.Breadcrumbs=$l,M.ButtonAddBoxRoundedIcon=Io,M.ButtonArrow=qr,M.ButtonCleanFilters=Wo,M.ButtonDarkBlue=Jt,M.ButtonDarkBlueRounded=Ur,M.ButtonDarkGreen=To,M.ButtonDownloadFile=Mo,M.ButtonDownloadTemplate=Ao,M.ButtonEye=$o,M.ButtonLetters=So,M.ButtonMinus=Eo,M.ButtonPlus=zo,M.ButtonReset=Co,M.ButtonSearch=vo,M.ButtonSoftPastelBlue=No,M.ButtonSoftPastelBlueRounded=Ro,M.ButtonUploadTemplate=Do,M.ButtonVibrantBlue=Ue,M.ButtonVibrantBlueSend=Bo,M.ButtonVibrantBlueUpload=Oo,M.ButtonWhiteBorderBlue=Nt,M.ButtonWhiteBorderBlueDownloadTemplate=Yr,M.ButtonWhiteBorderBlueSendEmail=_o,M.ButtonWhiteBorderOrange=Dn,M.Canceled=Xr,M.CanceledIcon=Di,M.CheckBox=Dr,M.CheckIcon=Wi,M.CheckTicketIcon=Tn,M.Chip=Fo,M.ChipSection=Ho,M.ChipWithIcon=Vo,M.CleanFiltersIcon=kr,M.ClearFilterIcon=Cn,M.ClosedEye=br,M.Completed=Jr,M.CompletedIcon=Hi,M.CountCard=sl,M.CustomArrowIcon=S1,M.DataEnteredIcon=_i,M.DataMasterArrow=mr,M.DataMasterCountryConfiguration=T1,M.DataSection=Bl,M.DateIcon=wi,M.DateRangePicker=al,M.DateRangePickerBasicSelect=yl,M.DeliveryTabs=Rl,M.DesSelectAllIcon=ji,M.DownloadTemplateIcon=xr,M.DropFile=ko,M.EditIcon=yr,M.EllipseBase=zn,M.EllipseBlueIcon=zi,M.EllipseDarkGreenIcon=Ti,M.EllipseGreenIcon=Mn,M.EllipseGreyIcon=Mi,M.EraserIcon=fr,M.ExcelIcon=gr,M.ExcelSvgIcon=Pi,M.ExpandableTable=Sl,M.EyeButton=Po,M.FileCard=Ko,M.FileCardMinimized=Xo,M.FilePreview=Uo,M.FilterComponent=pl,M.FilterIcon=Ai,M.FolderCard=Jo,M.FolderCardMinimized=Qo,M.GreyContainer=qo,M.GreyContainerDropdown=Go,M.GreyInput=Ji,M.GreySelect=E0,M.GreyTextArea=go,M.HeaderItemsComponent=Ol,M.InProcessIcon=z1,M.InProcessingIcon=Fi,M.InTransit=Qr,M.InTransitIcon=En,M.Inactive=Kr,M.InfoActionCard=fl,M.InfoActionCardDownloadTemplate=gl,M.InputRadio=Lr,M.InputSearch=Xt,M.InputUpload=po,M.InputWithButtonSearch=bo,M.InputWithLabel=xo,M.ItalicIcon=hr,M.KeyboardArrowDownOutlinedIconColorCustom=vi,M.LastUpdate=Zo,M.Link=Gl,M.Loader=Gi,M.LogTable=Tl,M.MarksIcon=dr,M.MenuIconOption=Oi,M.MenuOptions=Dt,M.MinusIcon=Ni,M.ModalListAplications=xl,M.MultiSelect=uo,M.NumberSpinner=_0,M.NumberSpinnerByRange=jo,M.ObservationIcon=Bi,M.Observations=Ll,M.OpenEye=vr,M.Pagination=il,M.Paragraph=Xl,M.PlusIcon=Ei,M.ProcessFilter=ml,M.ProductRecallIcon=M1,M.RightArrowIcon=pr,M.RoundedInput=mo,M.SelectAll=Vr,M.SelectAllIcon=bi,M.SelectRadio=fo,M.SelectWithTitle=wo,M.SimpleTap=Pl,M.SimpleTitle=Kl,M.SingleDatePicker=ul,M.State=rl,M.StateBasic=Lo,M.StatsIcon=Ii,M.Stepper=Wl,M.StepsComponent=_l,M.Switch=Ki,M.Table=Ml,M.TableActionIcon=zl,M.TableComponent=hh,M.TableEdit=El,M.TableMultipleIcon=Nl,M.TableStates=Dl,M.TabsNavigation=Il,M.TemplateTicketConfirm=Jl,M.TextArea=Xi,M.TicketComponentV2=Al,M.TicketModal=bl,M.TimeComponent=yo,M.TimeIcon=ki,M.TitleWithTooltip=Yt,M.ToStartProcessingIcon=Li,M.ToggleChip=es,M.TooltipTable=Yi,M.TooltipsWhite=zr,M.TrashIcon=wr,M.TriangleIconForNumberSpinnerByRange=$i,M.UpLoadSvgIcon=kn,M.UpdateBanner=Zn,M.UploadFileIcon=Sn,M.UserReadOnlyIcon=Ut,M.VisualizationModaLogin=jl,M.WaringBanner=p1,M.WarningIcon=jr,M.WarningModal=wl,M.WindowCheck=Ri,M.XIcon=Si,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|
|
451
|
+
`,qo=({children:e,height:r,width:s,style:i})=>t.jsx(Yo,{style:{height:r,width:s,...i},children:e});qo.propTypes={children:n.any,width:n.string,height:n.string,style:n.object};const Go=({title:e,height:r,width:s,style:i,children:o})=>{const[l,a]=C.useState(!1);return t.jsxs(Yo,{style:{height:l?"auto":r,width:s,...i,borderRadius:"0px",boxShadow:"none",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e,t.jsx(Z0,{onClick:()=>a(!l),children:t.jsx("i",{className:`arrow-grey-container ${l?"up":"down"}`})})]}),l&&t.jsx("div",{style:{paddingTop:"8px"},children:o})," "]})};Go.propTypes={title:n.node,width:n.string,height:n.string,style:n.object,children:n.node};const Ko=({fileType:e="excel",onClick:r,className:s="",icon:i,isClickable:o=!0,data:l,fontSize:a})=>{const{title:c}=l,d=()=>{o&&r&&r(l)},u=p=>{o&&r&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),r(l))},g=()=>{switch(e){case"excel":return t.jsx(Sr,{});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":""} ${s}`,onClick:d,onKeyDown:u,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(Tr,{width:16,height:16})})]}),t.jsx("div",{className:"file-card__title",style:{fontSize:a},children:c})]})};Ko.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 Xo=({data:e,fileType:r="excel",onClick:s,className:i="",icon:o,isClickable:l=!0,isSelected:a=!1})=>{const{title:c}=e,d=()=>{l&&s&&s(e)},u=p=>{l&&s&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),s(e))},g=()=>{switch(r){case"excel":return t.jsx(Sr,{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:u,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(Tr,{width:12,height:12})})]}),t.jsx("div",{className:"file-card-minimized__filename",children:c})]})};Xo.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 Jo=({onClick:e,className:r="",icon:s,isClickable:i=!0,fontSize:o,hasDownload:l=!1,onChange:a,isSelected:c=!1,data:d})=>{const{id:u,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":""} ${r} ${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(Dr,{inputProperties:{id:u,checked:c,onChange:a},color:"#33A1DD",size:"small"})}),t.jsx("div",{className:"folder-card__icon-container",children:s?t.jsx("div",{className:"folder-card__custom-icon",children:s}):t.jsx("div",{className:`${l?"folder-card__default-icon":"folder-card__default-icon-hover"}`,children:t.jsx(Cr,{width:"60px"})})}),t.jsx("div",{className:"folder-card__title",style:{width:"70px",fontSize:o},children:g})]})};Jo.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 Qo=({onClick:e,className:r="",icon:s,isClickable:i=!0,fontSize:o,isSelected:l=!1,data:a})=>{const{id:c,title:d}=a,u=()=>{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":""} ${r}`,onClick:u,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:s?t.jsx("div",{className:"folder-card-minimized__custom-icon",children:s}):t.jsx("div",{className:"folder-card-minimized__default-icon",children:t.jsx(Cr,{width:"32px"})})}),t.jsx("div",{className:"folder-card-minimized__title",style:{fontSize:o},children:d})]})};Qo.propTypes={onClick:n.func,className:n.string,icon:n.node,isClickable:n.bool,fontSize:n.string,isSelected:n.bool,data:n.object};const el=({color:e="#33A1DD",size:r=8})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",children:t.jsx("circle",{cx:r/2,cy:r/2,r:r/2-.5,fill:e})});el.propTypes={color:n.string,size:n.number};const tl=({width:e=3,height:r=12,color:s="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:r,fill:"none",viewBox:"0 0 3 12",children:t.jsx("path",{fill:s,stroke:s,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"})});tl.propTypes={width:n.number,height:n.number,color:n.string};const nl=({width:e=8,height:r=8,color:s="red"})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:r,fill:"none",viewBox:"0 0 8 8",children:t.jsx("path",{fill:s,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"})});nl.propTypes={width:n.number||n.string,height:n.number||n.string,color:n.string};const rl=({className:e="",hasAlerts:r=!1,children:s,hasError:i=!1,...o})=>{const c=["state",e,r?"state--has-alerts":""].filter(Boolean).join(" ");return t.jsxs("div",{className:c,...o,children:[t.jsx("div",{className:"state__indicator",children:i?t.jsx(nl,{width:8,height:8}):t.jsx(el,{size:8})}),t.jsx("div",{className:"state__content",children:s}),r&&t.jsx("div",{className:"state__alert",children:t.jsx(tl,{color:"red",width:"80%"})})]})};rl.propTypes={className:n.string,hasAlerts:n.bool,hasError:n.bool,children:n.node.isRequired};const sl=({children:e,count:r,className:s,classNameCount:i})=>t.jsxs("div",{className:`count-card ${s}`,children:[e,t.jsx("span",{className:`count-card__count ${i}`,children:r})]});sl.propTypes={children:n.node,count:n.number||n.string,className:n.string,classNameCount:n.string};const il=({totalPages:e=50,currentPage:r=1,onChange:s,nextLabel:i,prevLabel:o,height:l,disabled:a,fontSize:c})=>{const d=h=>{h>0&&h<=e&&s(h)},u=()=>{r<e&&s(r+1)},g=()=>{r>1&&s(r-1)},m=[],x=Math.max(1,r-4),v=Math.min(e,x+9-1);for(let h=x;h<=v;h++)m.push(h);if(r>e-4){m.length=0;for(let h=e-9+1;h<=e;h++)h>0&&m.push(h)}return t.jsx("nav",{className:"pagination",children:t.jsxs("ul",{className:"pagination-list",children:[r>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(h=>t.jsx("li",{className:`pagination-link ${r===h?"active":""} ${a?"disabled":""}`,onClick:()=>a?null:d(h),style:{height:l,fontSize:c},children:h},h)),v<e&&t.jsxs(t.Fragment,{children:[v<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})]}),r<e&&t.jsxs("li",{className:`pagination-next ${a?"disabled":""}`,onClick:a?null:u,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"})})]})]})})};il.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 ts=_e(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"),ns=_e(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"),ol=_e(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"),rs={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"},ss={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"},lt=e=>{e instanceof Date||(e=new Date(e));const r=String(e.getDate()).padStart(2,"0"),s=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return{formatDDMMYYYY:`${r}-${s}-${i}`,formatMMDDYYYY:`${s}-${r}-${i}`,formatYYYYMMDD:`${i}-${s}-${r}`,originalFormat:e}},ll=(e,r,s)=>{if(!r||s<=0)return!1;const i=new Date(r);return i.setMonth(i.getMonth()+s),i.setDate(i.getDate()-1),e>i},U0=({locale:e="es",disablePastDates:r,onDateRangeChange:s,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,u]=C.useReducer(y=>y+1,0),g=e==="es"?rs:ss,[p,m]=C.useState(null),[x,v]=C.useState(null),[h,j]=C.useState(null),[z,D]=C.useState(new Date),[T,k]=C.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[w,A]=C.useState(!1),H=(y,N)=>{const P=new Date;if(P.setHours(0,0,0,0),c){const S=new Date(P);if(S.setDate(P.getDate()+c),y>S)return!0}return N&&r&&y<P||!N&&a&&y>P||r&&y<P||a&&y>P?!0:l>0&&p?ll(y,p,l):!1},G=y=>{const N=y.getFullYear(),P=y.getMonth(),O=new Date(N,P,1).getDay(),E=new Date(N,P+1,0),L=[],W=new Date(N,P,0).getDate();for(let J=O-1;J>=0;J--)L.push(new Date(N,P-1,W-J));for(let J=1;J<=E.getDate();J++)L.push(new Date(N,P,J));const X=42-L.length;for(let J=1;J<=X;J++)L.push(new Date(N,P+1,J));return L},V=y=>!p||!x?!1:y>=p&&y<=x,f=y=>!p||!h?!1:y>=p&&y<=h||y<=p&&y>=h,B=y=>{!p||x?(m(y),v(null)):y<p?(v(p),m(y),i&&I(y,p)):(v(y),i&&I(p,y))},F=y=>{j(y)},Z=()=>!p||!x?0:Math.round((x.getTime()-p.getTime())/(1e3*60*60*24))+1,Q=(y,N)=>{const P=new Date(y.getFullYear(),y.getMonth()-1,1);r&&P<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&N||(N?D(P):(k(P),P.getMonth()===z.getMonth()&&D(new Date(P.getFullYear(),P.getMonth()-1,1))))},K=(y,N)=>{const P=new Date(y.getFullYear(),y.getMonth()+1,1);N?(D(P),P.getMonth()===T.getMonth()&&k(new Date(P.getFullYear(),P.getMonth()+1,1))):k(P)},te=y=>{const P=y.toLocaleDateString(g.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),S=P[0].charAt(0).toUpperCase()+P[0].slice(1),O=P[1],E=P[2].charAt(0).toUpperCase()+P[2].slice(1),L=P[3];return`${S} ${O} de ${E} ${L}`},U=()=>{const y=new Date;m(null),v(null),D(y),k(new Date(new Date().setMonth(new Date().getMonth()+1))),A(!1),o({startDate:null,endDate:null}),u()},_=()=>{A(!1);const y=lt(p),N=lt(x);s({startDate:y,endDate:N})},I=(y,N)=>{m(y),v(N),A(!1);const P=lt(y),S=lt(N);s({startDate:P,endDate:S})};return{isOpen:w,endDate:x,language:g,leftMonth:z,startDate:p,setIsOpen:A,hoverDate:h,rightMonth:T,formatDate:te,handleSearch:_,handleCancel:U,isDateInRange:V,getDaysInMonth:G,isDateDisabled:H,handleDateClick:B,handleDateHover:F,handlePrevClick:Q,handleNextClick:K,getDaysSelected:Z,isDateInHoverRange:f,keyReset:d,resetSelect:u}},An=(e,r,s,i)=>{if(!s||i<=0)return!1;const o=new Date(s);o.setMonth(o.getMonth()+i),o.setDate(o.getDate()-1);const l=new Date(s);return l.setDate(1),r?e<l:e>o},al=({locale:e="es",onDateRangeChange:r,disablePastDates:s,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:u,disableFutureDates:g,withoutSearchButton:p,disablePastDaysCount:m,value:x})=>{const{keyReset:v,isOpen:h,endDate:j,language:z,leftMonth:D,startDate:T,setIsOpen:k,rightMonth:w,formatDate:A,handleSearch:H,handleCancel:G,isDateInRange:V,getDaysInMonth:f,isDateDisabled:B,handleDateClick:F,handleDateHover:Z,handlePrevClick:Q,handleNextClick:K,getDaysSelected:te,isDateInHoverRange:U}=U0({locale:e,onReset:l,onDateRangeChange:r,disablePastDates:s,withoutSearchButton:p,limitRange:i,disableFutureDates:g,disablePastDaysCount:m}),_=(x==null?void 0:x.startDate)instanceof Date?x.startDate:T,I=(x==null?void 0:x.endDate)instanceof Date?x.endDate:j,y=C.useRef(null);C.useEffect(()=>{const P=S=>{y.current&&!y.current.contains(S.target)&&h&&(k(!1),o||G())};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[j,G,h,k,T,o]);const N=(P,S=!0)=>{const O=f(P),E=P.getMonth(),L=(R,X)=>[R&&R.getMonth()!==E?"other-month":"",R&&V(R)?"in-range":"",R&&U(R)?"hover-range":"",R&&(R.getTime()===(_==null?void 0:_.getTime())||R.getTime()===(I==null?void 0:I.getTime()))?"selected":"",B(R,X)?"disabled":""].join(" "),W=({date:R,isLeftCalendar:X,disablePastDates:J,leftMonth:se})=>{const q=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),ue=new Date(R.getFullYear(),R.getMonth()-1,1).getTime();return!!(J&&(ue<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:()=>Q(P,S),disabled:An(new Date(P.getFullYear(),P.getMonth()-1,1),!0,T,i)||W({date:P,isLeftCalendar:S,disablePastDates:s,leftMonth:D}),children:t.jsx("span",{className:"sr-only",children:t.jsx(ts,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[z.MONTHS[P.getMonth()],t.jsx("p",{children:P.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>K(P,S),disabled:An(new Date(P.getFullYear(),P.getMonth()+1,1),!1,T,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(ns,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),z.DAYS.map(R=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:R},R)),O.map((R,X)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${L(R,S)}`,disabled:!R||B(R),onClick:()=>R&&!B(R)&&F(R),onMouseEnter:()=>R&&!B(R)&&Z(R),onMouseLeave:()=>Z(null),children:t.jsx("span",{className:`day-text ${R?"":"text-muted"}`,style:{fontSize:d},children:R?R.getDate():""})})},`${R}_${X}`))]})]})};return C.useEffect(()=>{v&&G()},[v]),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 ${u?"disabled":""}`,disabled:u,onClick:()=>k(!h),children:_&&I?t.jsxs("div",{className:"container-formate",children:[t.jsxs("p",{className:`p-formate-date ${u?"disabled":""}`,style:{borderRight:"1px solid #9c9ca0"},children:[A(_)," ",t.jsx(ol,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]}),t.jsxs("p",{className:`p-formate-date ${u?"disabled":""}`,children:[A(I),t.jsx(ol,{sx:{color:"#9c9ca0"},style:{width:"15px",marginLeft:"5px"}})]})]}):t.jsxs("div",{className:"container-formate",children:[t.jsx("p",{className:`p-formate-date ${u?"disabled":""}`,style:{height:"34px",fontSize:d},children:z.selectRange}),t.jsx(Vi,{width:"10%",height:"50%"})]})}),h&&t.jsx("div",{className:"square"}),h&&t.jsx("div",{className:"container-triangle",children:t.jsx("div",{className:"triangle",children:t.jsx("div",{className:"triangle-blur"})})}),h&&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:[N(D,!0),N(w,!1)]}),!p&&t.jsx("div",{className:"date-picker-footer",children:_&&I&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[te()," ",z.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Dn,{buttonProperties:{onClick:()=>G(),style:{width:"115px",textAlign:"center"}},children:z.cancel}),t.jsx(Ue,{buttonProperties:{onClick:()=>H(),style:{width:"115px",textAlign:"center"}},children:z.search})]})]})})]})]}),_&&I&&o&&t.jsx("button",{className:"button-reset",onClick:()=>G(),children:t.jsx(Cn,{})})]})};al.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 cl=(e,{disablePastDates:r,disableBusinessDays:s})=>{const i=new Date;if(i.setHours(0,0,0,0),r&&e<i)return!1;if(s&&typeof s=="number"&&s>0){let o=new Date(i),l=0;for(;l<s;){o.setDate(o.getDate()+1);const a=o.getDay();a!==0&&a!==6&&l++}if(e<o)return!1}return!0},Y0=e=>{const r=new Date;r.setHours(0,0,0,0);const s=new Date(r);s.setDate(r.getDate()+1);const i=new Date(r);return i.setDate(r.getDate()+2),e.getTime()===r.getTime()||e.getTime()===s.getTime()||e.getTime()===i.getTime()},q0=(e,r)=>{const s=new Date(r);return s.setHours(0,0,0,0),e.getTime()<=s.getTime()},G0="America/Bogota",K0=16,X0=3,J0=4,dl=0,hl=6,Q0=()=>{const e=new Date().toLocaleString("en-US",{timeZone:G0});return new Date(e)},eh=(e,r)=>{const s=r??Q0(),o=s.getHours()<K0?X0:J0;let l=0;const a=new Date(s);for(a.setDate(a.getDate()+1);l<o;){const g=a.getDay();g!==dl&&g!==hl&&l++,a.setDate(a.getDate()+1)}for(;a.getDay()===dl||a.getDay()===hl;)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},th=e=>{let r=0,s=new Date;for(s.setHours(0,0,0,0),s.setDate(s.getDate()+1);r<5;){const i=s.getDay();i!==0&&i!==6&&r++,s.setDate(s.getDate()+1)}for(;s.getDay()===0||s.getDay()===6;)s.setDate(s.getDate()+1);return e<s},nh=e=>e.getDay()===0||e.getDay()===6,rh=(e,r)=>{const s=new Date(r);s.setHours(0,0,0,0);let i=new Date(s);do i.setDate(i.getDate()+1);while(i.getDay()===0||i.getDay()===6);return e.getTime()<=i.getTime()},sh=({locale:e="es",onDateChange:r,onChangeFunction:s,disablePastDates:i,disableBusinessDays:o,disableNextTwoDays:l,disableSpecificDate:a,disableDaysBasedOnTime:c,disableFiveBusinessDays:d,disableWeekends:u,disableNextBusinessDayAfter:g,hourDisableDaysBasedOnHour:p,id:m})=>{const x=e==="es"?rs:ss,[v,h]=C.useState(new Date),[j,z]=C.useState(new Date),[D,T]=C.useState(!1),[k,w]=C.useState(null),A=C.useRef(null),H=U=>{const _=U.getFullYear(),I=U.getMonth(),N=new Date(_,I,1).getDay(),P=new Date(_,I+1,0),S=[],O=new Date(_,I,0).getDate();for(let W=N-1;W>=0;W--)S.push(new Date(_,I-1,O-W));for(let W=1;W<=P.getDate();W++)S.push(new Date(_,I,W));const L=42-S.length;for(let W=1;W<=L;W++)S.push(new Date(_,I+1,W));return S};C.useEffect(()=>{if(o&&typeof o=="number"&&o>0){let U=new Date;U.setHours(0,0,0,0);let _=new Date(U),I=0;for(;I<o;){_.setDate(_.getDate()+1);const y=_.getDay();y!==0&&y!==6&&I++}_.getMonth()>U.getMonth()&&z(_)}},[i,o]);const G=C.useMemo(()=>U=>U?i&&!cl(U,{disablePastDates:i})||o&&!cl(U,{disableBusinessDays:o})||l&&Y0(U)||a&&q0(U,new Date(a))||c&&eh(U,p)||d&&th(U)||u&&nh(U)||g&&rh(U,g):!1,[i,o,l,a,c,d,u,g,p]),V=U=>{const _=new Date,I=new Date(_.getFullYear(),_.getMonth(),1).setHours(0,0,0,0);if(i&&U<I)return!0;if(a){const y=new Date(a).setHours(0,0,0,0);return U<y}return!1},f=U=>v&&U.getTime()===v.getTime(),B=U=>{const _=U.getMonth(),I=j.getMonth();_!==I&&z(new Date(U.getFullYear(),_,1)),w(Q(U)),h(U);const y=lt(U);r&&r(y),s&&s({id:m,date:y}),T(!1)},F=U=>{const _=new Date(U.getFullYear(),U.getMonth()-1,1),I=new Date;I.setHours(0,0,0,0),!(i&&_<new Date(I.getFullYear(),I.getMonth(),1))&&z(_)},Z=U=>{const _=new Date(U.getFullYear(),U.getMonth()+1,1);z(_)},Q=U=>{const I=U.toLocaleDateString(x.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),y=I[0].charAt(0).toUpperCase()+I[0].slice(1),N=I[1],P=I[2].charAt(0).toUpperCase()+I[2].slice(1),S=I[3];return`${y} ${N} de ${P} ${S}`},K=()=>{h(new Date),T(!1)},te=()=>{T(!1),r&&r(v),s&&s({id:m,date:v})};return C.useEffect(()=>{const U=_=>{A.current&&!A.current.contains(_.target)&&T(!1)};return document.addEventListener("mousedown",U),()=>{document.removeEventListener("mousedown",U)}},[A]),{date:k,isOpen:D,setDate:w,language:x,leftMonth:j,setIsOpen:T,formatDate:Q,setLeftMonth:z,handleSearch:te,disablePrev:V,handleCancel:K,selectedDate:v,isDateInRange:f,datePickerRef:A,getDaysInMonth:H,isDateDisabled:G,handlePrevClick:F,handleNextClick:Z,handleDateClick:B,setSelectedDate:h}},ul=({label:e,error:r,locale:s,disabled:i,size:o="180px",onDateChange:l,onChangeFunction:a,disableWeekends:c,keyResetCalendar:d,disablePastDates:u,disableNextTwoDays:g,disableSpecificDate:p,disableBusinessDays:m,disableDaysBasedOnTime:x,disableFiveBusinessDays:v,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:j,heightBoxes:z="40px",labelText:D,subLabelText:T,id:k,value:w,fontSize:A})=>{const{date:H,isOpen:G,setDate:V,language:f,leftMonth:B,setIsOpen:F,disablePrev:Z,isDateInRange:Q,getDaysInMonth:K,isDateDisabled:te,handleDateClick:U,handlePrevClick:_,handleNextClick:I,datePickerRef:y,setSelectedDate:N,setLeftMonth:P,selectedDate:S}=sh({locale:s,onDateChange:l,onChangeFunction:a,disableWeekends:c,disablePastDates:u,disableBusinessDays:m,disableNextTwoDays:g,disableSpecificDate:p,disableDaysBasedOnTime:x,disableFiveBusinessDays:v,disableNextBusinessDayAfter:h,hourDisableDaysBasedOnHour:j,id:k}),O=w instanceof Date?w:void 0,E=W=>{if(!W)return null;const X=W.toLocaleDateString(f.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),J=X[0].charAt(0).toUpperCase()+X[0].slice(1),se=X[1],q=X[2].charAt(0).toUpperCase()+X[2].slice(1),ue=X[3];return`${J} ${se} de ${q} ${ue}`};C.useEffect(()=>{V(null),N(null)},[d,V,N]),C.useEffect(()=>{if(O){(B.getMonth()!==O.getMonth()||B.getFullYear()!==O.getFullYear())&&P(new Date(O.getFullYear(),O.getMonth(),1));const W=new Date(O.getFullYear(),O.getMonth(),O.getDate()),R=S?new Date(S.getFullYear(),S.getMonth(),S.getDate()):null;(!R||W.getTime()!==R.getTime())&&N(W)}},[O,B,S,P,N]);const L=W=>{const R=K(W),X=W.getMonth(),J=se=>{const q=!!O&&se&&se.getFullYear()===O.getFullYear()&&se.getMonth()===O.getMonth()&&se.getDate()===O.getDate();return[se&&se.getMonth()!==X?"other-month":"",se&&(Q(se)||q)?"selected":"",te(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:()=>_(W),disabled:Z(new Date(W.getFullYear(),W.getMonth()-1,1)),children:t.jsx("span",{className:"sr-only",children:t.jsx(ts,{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:()=>I(W),children:t.jsx("span",{className:"sr-only",children:t.jsx(ns,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${z})`},children:[t.jsx("div",{className:"background-days"}),f.DAYS.map(se=>t.jsx("div",{className:"calendar-day-header",children:se},se)),R.map((se,q)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${J(se)}`,disabled:!se||te(se),onClick:()=>se&&!te(se)&&U(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(Qe,{label:O?E(O):H??e,onchange:()=>{},options:[],size:o,isOpen:G,setIsOpen:F,error:r,disabledClickOutside:!0,disabled:i,keyReset:d,Icon:wi,labelText:D,subLabelText:T,fontSizeLabel:A,withoutOptions:!0}),G&&t.jsx("div",{className:"date-picker-dropdown date-picker-individual",children:t.jsx("div",{className:"calendars-wrapper",children:L(B)})})]})};ul.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 fl=({title:e,description:r,linkText:s,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:r})]}),i]}),t.jsx("div",{className:"line-grey"}),t.jsxs("div",{className:"info-action-card__action",children:[t.jsx("button",{children:s}),t.jsx(mr,{})]})]})};fl.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 is=e=>e.map(r=>({id:r.id,title:r.title,optionsSelect:[]})),ih=(e,r)=>{const[s,i]=C.useState([]),[o,l]=C.useState(is(e)),[a,c]=C.useState(!1),d=C.useRef(null),u=C.useRef(!1),g=j=>{const z={};return e.forEach(D=>{const T=j.find(k=>k.id===D.id);T?z[D.id]={value:T.optionsSelect.map(k=>k.id),allData:T.optionsSelect}:z[D.id]={value:[],allData:[]}}),z},p=j=>{i(z=>z.includes(j)?z.filter(D=>D!==j):[...z,j])},m=(j,z)=>{u.current=!0,l(D=>{var G;const T=D.findIndex(V=>V.id===j);let k=[...D],w=[];const A=e.find(V=>V.id===j)||{};if(A.multiple!==!1)if(T===-1)w=[z],k.push({id:j,title:A.title||"",optionsSelect:w});else{const V=D[T].optionsSelect;V.some(B=>B.id===z.id)?w=V.filter(B=>B.id!==z.id):w=[...V,z],w.length===0?k.splice(T,1):(w.sort((B,F)=>{var Z;return(Z=B.label)==null?void 0:Z.localeCompare(F.label)}),k[T].optionsSelect=w)}else if(T===-1||((G=D[T].optionsSelect[0])==null?void 0:G.id)!==z.id?w=[z]:w=[],w.length===0)T>-1&&k.splice(T,1);else{const V={id:j,title:A.title||"",optionsSelect:w};T===-1?k.push(V):k[T]=V}if(r){const V=g(k);r(V)}return k})},x=()=>{u.current=!0;const j=is(e);if(l(j),r){const z=g(j);r(z)}},v=C.useCallback(j=>{u.current=!0,l(j)},[]),h=()=>o.reduce((j,z)=>j+z.optionsSelect.length,0);return C.useEffect(()=>{u.current||l(is(e))},[e]),C.useEffect(()=>{const j=z=>{d.current&&!d.current.contains(z.target)&&c(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),{expandedSections:s,selectedFilters:o,toggleSection:p,toggleFilter:m,clearAllFilters:x,open:a,setOpen:c,getLengthFilters:h,filterRef:d,setSelectedFilters:v}},On=(e,r)=>{var s;return r?typeof e=="object"&&!Array.isArray(e)?(s=Object.values(e))==null?void 0:s.flat():Array.isArray(e)?e:[]:Array.isArray(e)?e:[]},oh=(e,r)=>r||Array.isArray(e)?e:[],pl=({data:e=[],onChange:r,disabled:s,keyRest:i,value:o,fontSizeLabel:l="0.8vw",fontSizeTitles:a,fontSizeSelects:c="0.8vw",widthFilterComponent:d="380px",heightFilterComponent:u="400px",right:g="0",top:p="0"})=>{const{open:m,setOpen:x,toggleFilter:v,toggleSection:h,selectedFilters:j,clearAllFilters:z,getLengthFilters:D,expandedSections:T,filterRef:k,setSelectedFilters:w}=ih(e,r),[A,H]=C.useState({}),[G,V]=C.useState({}),f=C.useRef({}),B=C.useRef(!0),F=132,Z=220,Q=I=>{H(y=>({...y,[I]:!y[I]}))};C.useEffect(()=>{e.forEach(I=>{(I.selectAll||I.basicSelect)&&!(T!=null&&T.includes(I==null?void 0:I.id))&&h(I==null?void 0:I.id)})},[e,T,h]);const K=(I,y,N,P)=>{const S=N==null?void 0:N.filter(E=>P.includes(E.id)),O=o!==void 0?o:j;w(()=>{const E=O==null?void 0:O.findIndex(W=>(W==null?void 0:W.id)===I);let L=[...O];if(S.length===0)E>-1&&L.splice(E,1);else{const W={id:I,title:y,optionsSelect:S};E===-1?L.push(W):L[E]=W}if(r){const W={};e.forEach(R=>{if((R==null?void 0:R.id)===I)W[R==null?void 0:R.id]={value:P,allData:S};else{const X=L==null?void 0:L.find(J=>(J==null?void 0:J.id)===(R==null?void 0:R.id));X&&X.optionsSelect.length>0?W[R==null?void 0:R.id]={value:X.optionsSelect.map(J=>J.id),allData:X.optionsSelect}:W[R==null?void 0:R.id]={value:[],allData:[]}}}),r(W)}return L})},te=(I,y,N,P)=>{const S=N==null?void 0:N.find(E=>E.value===P||E.label===P),O=o!==void 0?o:j;w(()=>{const E=O==null?void 0:O.findIndex(W=>(W==null?void 0:W.id)===I);let L=[...O];if(!S)E>-1&&L.splice(E,1);else{const W={id:I,title:y,optionsSelect:[S]};E===-1?L.push(W):L[E]=W}if(r){const W={};e.forEach(R=>{if((R==null?void 0:R.id)===I)W[R==null?void 0:R.id]={value:P,allData:S?[S]:[]};else{const X=L==null?void 0:L.find(J=>(J==null?void 0:J.id)===(R==null?void 0:R.id));X&&X.optionsSelect.length>0?W[R==null?void 0:R.id]={value:X.optionsSelect.map(J=>J.value||J.id),allData:X.optionsSelect}:W[R==null?void 0:R.id]={value:[],allData:[]}}}),r(W)}return L})};C.useEffect(()=>{const I={};T==null||T.forEach(y=>{const N=f.current[y];N&&N.scrollHeight>F&&(I[y]=!0)}),V(I)},[T,e]);const U=o!==void 0?o:j;C.useEffect(()=>{if(B.current){B.current=!1;return}w(o===void 0?[]:o)},[i,w,o]),C.useEffect(()=>{o!==void 0&&!B.current&&w(o)},[o,w]);const _=o!==void 0?U==null?void 0:U.reduce((I,y)=>{var N;return I+((N=y==null?void 0:y.optionsSelect)==null?void 0:N.length)},0):D();return t.jsxs("div",{className:"toggle-filter-component",ref:k,children:[t.jsxs("button",{className:"reset-styles-button center-flex relative button-filter-component",disabled:s,onClick:()=>x(!m),style:{fontSize:a},children:["Filtro ",_?`(${_})`:"",t.jsx(Ai,{})]}),m&&t.jsxs("div",{className:"filter-container-component",style:{width:d,height:u,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?U.reduce((y,N)=>{var P;return y+((P=N==null?void 0:N.optionsSelect)==null?void 0:P.length)},0):D())>0&&t.jsxs("button",{className:"clear-all",onClick:z,style:{fontSize:a},children:["Borrar todo",t.jsx(wr,{width:"15px",height:"15px"})]}),t.jsx(ft,{sx:{color:"#8598ad"},style:{width:"14px",height:"14px"},onClick:()=>x(!m)})]})]}),e.map(({id:I,title:y,options:N,selectAll:P,basicSelect:S,placeholderInput:O,label:E,textSelectAll:L,grouped:W,disabledSection:R})=>{var X,J,se,q,ue,le;return t.jsxs("div",{className:"filter-section",children:[t.jsxs("button",{className:"section-header",onClick:()=>!(P||S)&&h(I),style:{cursor:P||S?"default":"pointer"},children:[t.jsxs("span",{className:"section-header-title",style:{fontSize:l},children:["Por ",y]}),!(P||S)&&(T==null?void 0:T.includes(I))&&t.jsx("span",{className:"filter-container-icon",children:t.jsx(qr,{isOpen:T==null?void 0:T.includes(I),onChange:()=>{},color:"#8598AD",padding:"2px",display:"flex",height:"auto",width:"auto"})})]}),(T==null?void 0:T.includes(I))&&t.jsx(t.Fragment,{children:P?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Vr,{data:oh(N,W),grouped:W||!1,label:E||y,maxheight:"200px",onChange:fe=>{K(I,y,On(N,W),fe)},placeholderSearch:O||`Buscar ${y==null?void 0:y.toLowerCase()}`,textSelectAll:L||`Todos los ${y==null?void 0:y.toLowerCase()}`,width:"100%",widthDropdown:"100%",isRelative:!0,selectedValues:((J=(X=U.find(fe=>(fe==null?void 0:fe.id)===I))==null?void 0:X.optionsSelect)==null?void 0:J.map(fe=>fe.id))||[],fontSizeLabel:l,disabled:R,fontSizeOptions:c})}):S?t.jsx("div",{style:{padding:"8px 15px"},children:t.jsx(Qe,{label:E||y,options:On(N,W),onchange:fe=>{te(I,y,On(N,W),fe.value)},placeholderInputSearch:O||`Buscar ${y==null?void 0:y.toLowerCase()}`,size:"100%",value:((ue=(q=(se=U==null?void 0:U.find(fe=>(fe==null?void 0:fe.id)===I))==null?void 0:se.optionsSelect)==null?void 0:q[0])==null?void 0:ue.value)||"",position:"relative",fontSizeLabel:l,disabled:R,fontSizeOptions:c})}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"section-content",ref:fe=>f.current[I]=fe,style:G[I]?A[I]?{maxHeight:Z,overflowY:"scroll"}:{maxHeight:F,overflow:"hidden"}:{},children:(le=On(N,W))==null?void 0:le.map(fe=>{const Be=U==null?void 0:U.some(we=>{var Re;return(we==null?void 0:we.id)===I&&((Re=we==null?void 0:we.optionsSelect)==null?void 0:Re.some(ce=>ce.id===fe.id))});return t.jsx(es,{height:"27px",onChange:()=>v(I,fe),isSelect:Be,children:fe.label},fe.id)})}),t.jsx("div",{style:{display:"flex",justifyContent:"end",padding:"0 8%",marginTop:"10px"},children:(G==null?void 0:G[I])&&t.jsx("button",{className:"view-more",onClick:()=>Q(I),children:A[I]?"Ver menos":"Ver más"})})]})})]},I)})]})]})};pl.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 gl=({title:e,description:r,linkText:s,icon:i,fnNavigate:o,width:l,fnDownload:a,gapTitleDescription:c,height:d,hasDownloadButton:u,fontSizeTitle:g,fontSizeDescription:p,fontSizeButton:m,textButton:x,widthButton:v="7.5vw",id:h})=>t.jsxs("section",{id:"info-action-card-download-template",className:"info-action-card",style:{width:l,height:d},onClick:()=>o(h),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:r})]}),t.jsx("div",{className:"info-action-card__content__icon",children:i})]}),u&&t.jsx(Yr,{buttonProperties:{disabled:!1,onClick:()=>a(),style:{minHeight:"32px",width:v,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:s}),t.jsx(mr,{})]})})]});gl.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 ml=({iconTitle:e,title:r,mainData:s,news:i,width:o,height:l,onChange:a,isSelected:c,value:d,disabled:u,keyReset:g,heightTitleFilter:p="20px",color:m="#575EE0"})=>{const[x,v]=C.useState({isSelected:c||!1,value:d||null}),h=D=>d===D.title,j=({item:D,from:T})=>{const k={isSelected:x.value!==D.title,value:x.value===D.title?null:D.title};v(k),a({item:D,from:T,title:r,selected:k.value,isSelected:k.isSelected})};C.useEffect(()=>{v({isSelected:!1,value:null})},[g]);const z=D=>!!(Number(D.quantity)===0||u);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:r})]}),t.jsx("div",{className:"ProcessFilter-statsWrapper",children:t.jsx(Ii,{})})]}),t.jsx("div",{className:"ProcessFilter-mainData",children:s.map(D=>t.jsxs("div",{onClick:()=>z(D)?null:j({item:D,from:"main"}),className:`ProcessFilter-item-wrapper ${h(D)?"selected":""} ${z(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,T)=>D+(parseInt(T.quantity)||0),0),")"]}),i.map(D=>t.jsxs("div",{onClick:()=>z(D)?null:j({item:D,from:"news"}),className:`ProcessFilter-item-wrapper ${h(D)?"selected":""} ${z(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))]})]})};ml.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 lh=({locale:e="es",disablePastDates:r,onDateRangeChange:s,withoutSearchButton:i=!1,onReset:o,limitRange:l,disableFutureDates:a,disablePastDaysCount:c})=>{const[d,u]=C.useState(!1),[g,p]=C.useReducer(S=>S+1,0),m=e==="es"?rs:ss,[x,v]=C.useState(null),[h,j]=C.useState(null),[z,D]=C.useState(null),[T,k]=C.useState(new Date),[w,A]=C.useState(new Date(new Date().setMonth(new Date().getMonth()+1))),[H,G]=C.useState(!1),V=(S,O)=>{const E=new Date;if(E.setHours(0,0,0,0),c){const L=new Date(E);if(L.setDate(E.getDate()-c),S<L||S>E)return!0}return O&&r&&S<E||!O&&a&&S>E||r&&S<E||a&&S>E?!0:l>0&&x?ll(S,x,l):!1},f=S=>{const O=S.getFullYear(),E=S.getMonth(),W=new Date(O,E,1).getDay(),R=new Date(O,E+1,0),X=[],J=new Date(O,E,0).getDate();for(let ue=W-1;ue>=0;ue--)X.push(new Date(O,E-1,J-ue));for(let ue=1;ue<=R.getDate();ue++)X.push(new Date(O,E,ue));const q=42-X.length;for(let ue=1;ue<=q;ue++)X.push(new Date(O,E+1,ue));return X},B=S=>!x||!h?!1:S>=x&&S<=h,F=S=>!x||!z?!1:S>=x&&S<=z||S<=x&&S>=z,Z=S=>{!x||h?(v(S),j(null)):S<x?(j(x),v(S),i&&N(S,x)):(j(S),i&&N(x,S))},Q=S=>{D(S)},K=()=>!x||!h?0:Math.round((h.getTime()-x.getTime())/(1e3*60*60*24))+1,te=(S,O)=>{const E=new Date(S.getFullYear(),S.getMonth()-1,1);r&&E<new Date(new Date().getFullYear(),new Date().getMonth(),1)&&O||(O?k(E):(A(E),E.getMonth()===T.getMonth()&&k(new Date(E.getFullYear(),E.getMonth()-1,1))))},U=(S,O)=>{const E=new Date(S.getFullYear(),S.getMonth()+1,1);O?(k(E),E.getMonth()===w.getMonth()&&A(new Date(E.getFullYear(),E.getMonth()+1,1))):A(E)},_=S=>{const E=S.toLocaleDateString(m.code,{weekday:"short",day:"numeric",month:"short",year:"2-digit"}).split(" "),L=E[0].charAt(0).toUpperCase()+E[0].slice(1),W=E[1],R=E[2].charAt(0).toUpperCase()+E[2].slice(1),X=E[3];return`${L} ${W} de ${R} ${X}`},I=()=>{const S=new Date;v(null),j(null),k(S),A(new Date(new Date().setMonth(new Date().getMonth()+1))),G(!1),o({startDate:null,endDate:null}),p()},y=()=>{G(!1);const S=lt(x),O=lt(h);s({startDate:S,endDate:O}),u(!1)},N=(S,O)=>{v(S),j(O),G(!1);const E=lt(S),L=lt(O);s({startDate:E,endDate:L}),u(!1)};return{isOpen:H,endDate:h,language:m,leftMonth:T,startDate:x,setIsOpen:G,hoverDate:z,rightMonth:w,formatDate:_,handleSearch:y,handleCancel:I,isDateInRange:B,getDaysInMonth:f,isDateDisabled:V,handleDateClick:Z,handleDateHover:Q,handlePrevClick:te,handleNextClick:U,getDaysSelected:K,isDateInHoverRange:F,keyReset:g,resetSelect:p,handleBasicSelect:({value:S})=>{S==="custom"?(u(!0),G(!1)):s({value:S})},isOpenCalendar:d,setIsOpenCalendar:u}},yl=({locale:e="es",onDateRangeChange:r,disablePastDates:s,limitRange:i=0,resetButton:o=!0,onReset:l,direction:a="right",heightBoxes:c="40px",fontSize:d="0.92vw",disabled:u,disableFutureDates:g,optionsBasicSelect:p,withoutSearchButton:m,widthBasicSelect:x,fontSizeLabelBasicSelect:v,fontSizeOptionsBasicSelect:h,labelText:j,subLabelText:z,disablePastDaysCount:D,keyResetBasicSelect:T})=>{const{keyReset:k,isOpen:w,endDate:A,language:H,leftMonth:G,startDate:V,setIsOpen:f,rightMonth:B,handleSearch:F,handleCancel:Z,isDateInRange:Q,getDaysInMonth:K,isDateDisabled:te,handleDateClick:U,handleDateHover:_,handlePrevClick:I,handleNextClick:y,getDaysSelected:N,isDateInHoverRange:P,handleBasicSelect:S,isOpenCalendar:O,setIsOpenCalendar:E}=lh({locale:e,onReset:l,onDateRangeChange:r,disablePastDates:s,withoutSearchButton:m,limitRange:i,disableFutureDates:g,disablePastDaysCount:D}),L=C.useRef(null);C.useEffect(()=>{const R=X=>{L.current&&!L.current.contains(X.target)&&(w||O)&&(f(!1),E(!1),o||Z())};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[A,Z,w,f,V,o,O,E]);const W=(R,X=!0)=>{const J=K(R),se=R.getMonth(),q=(le,fe)=>[le&&le.getMonth()!==se?"other-month":"",le&&Q(le)?"in-range":"",le&&P(le)?"hover-range":"",le&&(le.getTime()===(V==null?void 0:V.getTime())||le.getTime()===(A==null?void 0:A.getTime()))?"selected":"",te(le,fe)?"disabled":""].join(" "),ue=({date:le,isLeftCalendar:fe,disablePastDates:Be,leftMonth:we})=>{const Re=new Date(new Date().getFullYear(),new Date().getMonth(),1).getTime(),ce=new Date(le.getFullYear(),le.getMonth()-1,1).getTime();return!!(Be&&(ce<Re||!fe&&new Date(we.getFullYear(),we.getMonth(),1).getTime()<=Re))};return t.jsxs("div",{className:"calendar",children:[t.jsxs("div",{className:"calendar-header",children:[t.jsx("button",{className:"calendar-nav-button",onClick:()=>I(R,X),disabled:An(new Date(R.getFullYear(),R.getMonth()-1,1),!0,V,i)||ue({date:R,isLeftCalendar:X,disablePastDates:s,leftMonth:G}),children:t.jsx("span",{className:"sr-only",children:t.jsx(ts,{style:{width:"15px"}})})}),t.jsxs("h2",{className:"calendar-title",children:[H.MONTHS[R.getMonth()],t.jsx("p",{children:R.getFullYear()})]}),t.jsx("button",{className:"calendar-nav-button",onClick:()=>y(R,X),disabled:An(new Date(R.getFullYear(),R.getMonth()+1,1),!1,V,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(ns,{style:{width:"15px"}})})})]}),t.jsxs("div",{className:"calendar-grid",style:{gridTemplateColumns:`repeat(7, ${c})`},children:[t.jsx("div",{className:"background-days"}),H.DAYS.map(le=>t.jsx("div",{className:"calendar-day-header",style:{fontSize:d},children:le},le)),J.map((le,fe)=>t.jsx("div",{className:"calendar-day-wrapper",children:t.jsx("button",{className:`calendar-day ${q(le,X)}`,disabled:!le||te(le),onClick:()=>le&&!te(le)&&U(le),onMouseEnter:()=>le&&!te(le)&&_(le),onMouseLeave:()=>_(null),children:t.jsx("span",{className:`day-text ${le?"":"text-muted"}`,style:{fontSize:d},children:le?le.getDate():""})})},`${le}_${fe}`))]})]})};return C.useEffect(()=>{T&&Z()},[T]),C.useEffect(()=>{w&&E(!1)},[w]),t.jsxs("div",{className:"container-date-range-picker",children:[t.jsxs("div",{className:"date-range-picker",ref:L,style:{width:x},children:[t.jsx(Qe,{label:"Buscar por fecha",options:p,size:x,isOpen:w,setIsOpen:f,disabledClickOutside:!0,disabled:u,onchange:S,fontSizeLabel:v,fontSizeOptions:h,keyReset:k,labelText:j,subLabelText:z,sortAlphabetically:!1}),O&&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(G,!0),W(B,!1)]}),!m&&t.jsx("div",{className:"date-picker-footer",children:V&&A&&t.jsxs("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t.jsxs("div",{className:"days-selected",children:[N()," ",H.days]}),t.jsxs("div",{className:"date-picker-actions",children:[t.jsx(Dn,{buttonProperties:{onClick:()=>Z(),style:{width:"115px",textAlign:"center"}},children:H.cancel}),t.jsx(Ue,{buttonProperties:{onClick:()=>F(),style:{width:"115px",textAlign:"center"}},children:H.search})]})]})})]})]}),V&&A&&o&&t.jsx("button",{className:"button-reset",onClick:()=>Z(),children:t.jsx(Cn,{})})]})};yl.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 ah=_e(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"),xl=({data:e,language:r,onSave:s,onCancel:i,isUpdate:o})=>{const[l,a]=C.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[r]??c.es,u=p=>{const m=l.filter((x,v)=>v!==p);a(m)},g=()=>{s(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(ft,{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:()=>u(m),children:t.jsx(ah,{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(Nt,{buttonProperties:{disabled:!1,onClick:()=>i(),style:{width:"45%"}},children:d.cancel}),t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"45%"}},children:d.save})]})]})})};xl.propTypes={data:n.array,language:n.oneOf(["en","es"]),onSave:n.func,onCancel:n.func,isUpdate:n.bool};const vl=e=>e.toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"}),bl=({isOpen:e,ticketNumber:r="##000",date:s=new Date,setIsOpen:i,isReadOnly:o=!1,fontSize:l="1vw",fontSizeButton:a="0.8vw",fontSizeTicketNumber:c="1.3vw",width:d="40vw",onAccept:u,onCreateNewTicket:g,createNewTicket:p=!0})=>{if(!e)return null;const m=()=>i(!1),x=()=>{m(),u()},v=()=>{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(ft,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[o&&t.jsxs("div",{className:"alert",children:[t.jsx(Ut,{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(Tn,{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:r})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:vl(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",style:{justifyContent:p?"space-between":"center"},children:[p&&t.jsx(Nt,{buttonProperties:{disabled:!1,onClick:()=>v(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>x(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})]})})};bl.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 ch="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=",jl=({onChange:e,handleClose:r})=>{const[s,i]=C.useState(!1),o=()=>{e(s),r()};return t.jsx("div",{className:"modal-overlay",children:t.jsxs("div",{className:"modal-VisualizationModaLogin",children:[t.jsx("img",{src:ch,alt:"",className:"backgroundTicket"}),t.jsx("div",{className:"TicketImageUserReadOnly",style:{height:"95px"},children:t.jsx("div",{className:"UserReadOnlyIconCenter",children:t.jsx(Ut,{width:80})})}),t.jsx("button",{className:"close-button-VisualizationModaLogin",onClick:r,children:t.jsx(ft,{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(Je.FormControlLabel,{control:t.jsx(Je.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(Ue,{buttonProperties:{disabled:!1,onClick:()=>{o()},style:{width:"40%"}},children:"ACEPTAR"})})]})]})]})})};jl.propTypes={onChange:n.func,handleClose:n.func};const wl=({isOpen:e,setIsOpen:r,width:s="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:u})=>{if(!e)return null;const g=()=>r(!1),p=()=>{r(!1),u()};return t.jsx("div",{className:"overlay",children:t.jsxs("div",{className:"modal-ticket-modal",style:{width:s},children:[t.jsx("button",{onClick:g,className:"closeButton",children:t.jsx(ft,{sx:{color:"#8598ad"}})}),t.jsxs("div",{className:"main-content",children:[t.jsx("div",{className:"iconContainer",children:t.jsx(jr,{})}),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(Ue,{buttonProperties:{disabled:!1,onClick:()=>p(),style:{width:"100%",fontSize:l}},children:d})})]})]})})};wl.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 kl=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-InProcessing",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(zn,{fill:"#d0aa00"}),"En Procesamiento"]});kl.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const Cl=({width:e,fontSize:r,marginAuto:s,height:i})=>t.jsxs("div",{className:"state-basic states-ToStart",style:{width:e,fontSize:r,margin:s?"auto":"",height:i},children:[t.jsx(zn,{fill:"#7c92c5"}),"Por Iniciar"]});Cl.propTypes={width:n.string,fontSize:n.string,marginAuto:n.bool,height:n.string};const os=(e,r="100px",s,i,o)=>({Activo:t.jsx(Gr,{width:r,fontSize:s,marginAuto:i,height:o}),Cancelada:t.jsx(Xr,{width:r,fontSize:s,marginAuto:i,height:o}),Finalizada:t.jsx(Jr,{width:r,fontSize:s,marginAuto:i,height:o}),Inactivo:t.jsx(Kr,{width:r,fontSize:s,marginAuto:i,height:o}),"En Procesamiento":t.jsx(kl,{width:r,fontSize:s,marginAuto:i,height:o}),"Por Iniciar":t.jsx(Cl,{width:r,fontSize:s,marginAuto:i,height:o}),"En tránsito":t.jsx(Qr,{width:r,fontSize:s,marginAuto:i,height:o})})[e]||e,Sl=({data:e,onEdit:r,width:s,dataKeysNotToRender:i=[],textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeight:d,onFnIcon:u,icon:g=t.jsx(yr,{}),widthState:p,onEditSubData:m,onFnIconSubData:x,subMessage:v,onClickOptions:h,onClickSubOptions:j,fontSizeTHead:z,fontSizeTBody:D,widthOptions:T,fontSizeOptions:k,nameOfKeyState:w="Estado",texAlignTHead:A="start",textAlignTBody:H="start",fontSizeState:G,fontStyleTBody:V="normal",fontStyleTHead:f="normal"})=>{const[B,F]=C.useState({}),Z=_=>{F(I=>({...I,[_]:!I[_]}))},Q=_=>{r(_)},K=_=>{m(_)},te=e.length>0?Object.keys(e[0]).filter(_=>_!=="subData"&&!i.includes(_)):[],U=_=>_!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),te.map((_,I)=>t.jsx("th",{style:{fontSize:z,textAlign:A,fontStyle:f},children:_.replace(/_/g," ")},I)),te.length>0?t.jsx("th",{style:{fontSize:z,textAlign:A,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:te.length+1,style:{fontSize:c,textAlign:"center",fontStyle:V},children:a})}),e==null?void 0:e.map(_=>{var I;return t.jsxs(C.Fragment,{children:[t.jsxs("tr",{className:"main-row",children:[t.jsx("td",{children:t.jsx("button",{onClick:()=>Z(_.id),className:"reset-styles-button",style:{width:"100%"},children:t.jsx("i",{className:`arrow-grey-container ${B[_.id]?"up":"down"}`})})}),te.map((y,N)=>t.jsx("td",{style:{color:y!==w?U(_.Estado):"black",padding:y===w?"0 9px":"10px",fontSize:D,textAlign:H,fontStyle:V},children:y===w?os(_[y],p,G,H==="center"):_[y]||"-"},N)),((I=_==null?void 0:_.options)==null?void 0:I.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(Dt,{onClick:y=>{h({option:y,row:_})},options:[..._.options],fontSize:k,width:T})}):t.jsx("td",{children:t.jsxs("div",{className:"action-icon",children:[o&&t.jsx("button",{className:"edit-button",onClick:()=>Q(_),style:{fontSize:D,fontStyle:V},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>u(_),children:g})]})})]}),B[_.id]&&t.jsx("tr",{className:"sub-row",style:{fontStyle:"italic"},children:Array.from({length:te.length+2},(y,N)=>t.jsx("td",{className:"td-empty",style:{fontWeight:"600"},children:N===1?`${v}`:""},N))}),B[_.id]&&_.subData.length>0&&_.subData.map((y,N)=>{var P;return t.jsxs("tr",{className:"sub-row",children:[t.jsx("td",{})," ",te.map((S,O)=>t.jsx("td",{style:{color:S!==w?U(y.Estado):"black",padding:S===w?"0 9px":"10px",fontSize:D,textAlign:H,fontStyle:V},children:S===w?os(y[S],p,G,H==="center"):y[S]||"-"},O)),((P=y==null?void 0:y.options)==null?void 0:P.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(Dt,{onClick:S=>{j({option:S,row:y})},options:[...y.options],fontSize:k,width:T})}):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})]})})]},N)})]},_.id)})]})]})};Sl.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 Tl=({data:e,dataKeysNotToRender:r,title:s,minWidth:i,texAlignTHead:o="start",textAlignTBody:l="start",fontSizeTHead:a,fontSizeTBody:c,fontSizeTitle:d})=>{const u=e.length>0?Object.keys(e[0]).filter(g=>!r.includes(g)):[];return t.jsxs("div",{className:"log-container",style:{minWidth:i},children:[t.jsx("h1",{className:"log-title",style:{fontSize:d},children:s}),t.jsxs("table",{className:"log-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:u.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:u.map((m,x)=>t.jsx("td",{children:t.jsx("p",{children:g[m]})},x))},p))})]})]})};Tl.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 Ml=({data:e,minWidth:r,dataKeysNotToRender:s,topToolTip:i,toolTips:o,fontSizeToolTip:l,messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:u="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px",isWrap:v=!1,width:h="100%"})=>{const[j,z]=C.useState(null),D=w=>{z(w)},T=()=>{z(null)},k=e.length>0?Object.keys(e[0]).filter(w=>!s.includes(w)):[];return t.jsxs("table",{className:"table-ixc",style:{minWidth:r,minHeight:d,width:h},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[k.map((w,A)=>t.jsxs("th",{className:"relative",onMouseEnter:()=>D(w),onMouseLeave:T,style:{height:x},children:[t.jsx("p",{style:{textAlign:u,fontSize:p,whiteSpace:v?"wrap":"nowrap",textOverflow:v?"clip":"ellipsis",overflow:v?"auto":"hidden"},children:w}),o&&o[w]&&j===w&&t.jsx("div",{className:"tooltipTable",style:{top:i},children:t.jsx(zr,{fontSize:l,children:o[w]})})]},A)),k.length===0&&t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:k.length+1,style:{fontSize:c,textAlign:"center",whiteSpace:v?"wrap":"nowrap",textOverflow:v?"clip":"ellipsis",overflow:v?"auto":"hidden"},children:a})}),e.map((w,A)=>t.jsx("tr",{children:k.map((H,G)=>t.jsx("td",{style:{textAlign:g,fontSize:m,whiteSpace:v?"wrap":"nowrap",textOverflow:v?"clip":"ellipsis",overflow:v?"auto":"hidden",height:x},children:w[H]},G))},(w==null?void 0:w.id)||A))]})]})};Ml.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 zl=({data:e,onEdit:r,width:s,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,icon:u,onFnIcon:g,onClickOptions:p,widthOptions:m,fontSizeOptions:x,texAlignTHead:v="start",textAlignTBody:h="start",fontSizeTHead:j,fontSizeTBody:z})=>{const D=k=>{r(k)},T=e.length>0?Object.keys(e[0]).filter(k=>k!=="options"&&!i.includes(k)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[T.map((k,w)=>t.jsx("th",{style:{textAlign:v,fontSize:j},children:k},w)),T.length>0?t.jsx("th",{style:{textAlign:v,fontSize:j},children:l}):t.jsx("th",{className:"messageEmpty",children:"."})]})}),t.jsxs("tbody",{children:[e.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:T.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((k,w)=>{var A;return t.jsxs("tr",{children:[T.map((H,G)=>t.jsx("td",{style:{textAlign:h,fontSize:z},children:k[H]},G)),((A=k==null?void 0:k.options)==null?void 0:A.length)>0?t.jsx("td",{style:{overflow:"visible"},children:t.jsx(Dt,{onClick:H=>{p({option:H,row:k})},options:[...k.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(k),style:{fontSize:z,textAlign:h},children:o}),t.jsx("button",{className:"edit-icon",onClick:()=>g(k),style:{textAlign:o?h:"center"},children:u})]})})]},(k==null?void 0:k.id)||w)})]})]})};zl.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 El=({data:e,onEdit:r,width:s,dataKeysNotToRender:i,textButton:o="Editar",textHeader:l="Acción",messageWhenEmpty:a="No hay datos para mostrar",fontSizeMessageEmpty:c="1.5vw",minHeigth:d,texAlignTHead:u="start",textAlignTBody:g="start",fontSizeTHead:p,fontSizeTBody:m,heightTd:x="30px"})=>{const v=j=>{r(j)},h=e.length>0?Object.keys(e[0]).filter(j=>!i.includes(j)):[];return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:d},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[h.map((j,z)=>t.jsx("th",{style:{textAlign:u,fontSize:p},children:j},z)),h.length>0?t.jsx("th",{style:{textAlign:u,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:h.length+1,style:{fontSize:c,textAlign:"center"},children:a})}),e.map((j,z)=>t.jsxs("tr",{children:[h.map((D,T)=>t.jsx("td",{style:{textAlign:g,fontSize:m},children:j[D]},T)),t.jsx("td",{children:t.jsx("button",{className:"edit-button",onClick:()=>v(j),style:{fontSize:m,textAlign:g,height:x},children:o})})]},(j==null?void 0:j.id)||z))]})]})};El.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 Nl=({data:e,children:r,width:s,dataKeysNotToRender:i=[],textHeader:o="Acciones",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeigth:c,texAlignTHead:d="start",textAlignTBody:u="start",fontSizeTHead:g,fontSizeTBody:p,heightTd:m="30px"})=>{const x=e.length>0?Object.keys(e[0]).filter(h=>!i.includes(h)):[],v=h=>{if(!r)return null;const j=z=>{if(!z.props.onClick)return z;const D=z.props.onClick,T=k=>{k.rowData=h,D(k)};return C.cloneElement(z,{...z.props,onClick:T})};return Array.isArray(r)?r.map((z,D)=>j(C.cloneElement(z,{key:D,rowData:h,...z.props}))):j(C.cloneElement(r,{rowData:h}))};return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:c},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[x.map((h,j)=>t.jsx("th",{style:{textAlign:d,fontSize:g},children:h},j)),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((h,j)=>t.jsxs("tr",{children:[x.map((z,D)=>t.jsx("td",{style:{textAlign:u,fontSize:p},children:h[z]},D)),t.jsx("td",{children:t.jsx("div",{className:"action-icon",style:{height:m,display:"flex",alignItems:"center",gap:"10px"},children:v(h)})})]},(h==null?void 0:h.id)||j))]})]})};Nl.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 Dl=({data:e,onEdit:r,width:s,textButton:i="Editar",textHeader:o="Acción",messageWhenEmpty:l="No hay datos para mostrar",fontSizeMessageEmpty:a="1.5vw",minHeight:c,onFnIcon:d,icon:u=t.jsx(yr,{}),widthState:g,onClickOptions:p,fontSizeTHead:m,fontSizeTBody:x,widthOptions:v,fontSizeOptions:h,dataKeysNotToRender:j=[],nameOfKeyState:z="Estado",texAlignTHead:D="start",textAlignTBody:T="start",fontSizeState:k,heightStates:w="18px",heightTd:A="30px",fontStyleTBody:H="normal",fontStyleTHead:G="normal"})=>{const V=F=>{r(F)},f=(e==null?void 0:e.length)>0?Object.keys(e[0]).filter(F=>F!=="options"&&!j.includes(F)):[],B=F=>F!=="Inactivo"?"#8598ad":"#7c7c7c";return t.jsxs("table",{className:"table-ixc",style:{width:s,minHeight:c,fontStyle:H},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[f.map((F,Z)=>t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:G},children:F},Z)),f.length>0?t.jsx("th",{style:{fontSize:m,textAlign:D,fontStyle:G},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:H},children:l})}),e.map((F,Z)=>{var Q;return t.jsxs("tr",{children:[f.map((K,te)=>t.jsx("td",{style:{fontSize:x,textAlign:T,color:K!==z?B(F.Estado):"black",height:A,fontStyle:H},children:K===z?os(F[K],g,k,T==="center",w):F[K]},te)),((Q=F==null?void 0:F.options)==null?void 0:Q.length)>0?t.jsx("td",{style:{overflow:"visible",height:A,fontStyle:H},children:t.jsx(Dt,{onClick:K=>{p({option:K,row:F})},options:[...F.options],fontSize:h,width:v})}):t.jsx("td",{style:{height:A,fontStyle:H},children:t.jsxs("div",{className:"action-icon",children:[i&&t.jsx("button",{className:"edit-button",onClick:()=>V(F),style:{fontSize:x,textAlign:T,fontStyle:H},children:i}),t.jsx("button",{className:"edit-icon",onClick:()=>d(F),children:u})]})})]},(F==null?void 0:F.id)||Z)})]})]})};Dl.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 Al=({isOpen:e,ticketNumber:r="##000",date:s=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 u=()=>i(!1),g=()=>{u()};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(Ut,{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(Tn,{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:r})]}),t.jsxs("div",{className:"content-date",children:[t.jsx("p",{className:"label",style:{fontSize:l},children:"Fecha:"}),t.jsx("p",{style:{fontSize:l},children:vl(s)})]})]})]}),t.jsxs("div",{className:"buttonContainer",children:[t.jsx(Nt,{buttonProperties:{disabled:!1,onClick:()=>u(),style:{width:"50%",fontSize:a}},children:"CREAR NUEVA SOLICITUD"}),t.jsx(Ue,{buttonProperties:{disabled:!1,onClick:()=>g(),style:{width:"50%",fontSize:a}},children:"ACEPTAR"})]})]})})};Al.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 Ol=({menus:e,size:r,onclick:s,height:i,fontSize:o})=>{var p;const l=e||[],[a,c]=C.useState(((p=l[0])==null?void 0:p.id)||""),[d,u]=C.useState(100/l.length),g=m=>{c(m.id),s(m)};return C.useEffect(()=>{const m=()=>{const x=100/l.length;u(x)};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[l.length]),t.jsx("nav",{className:"dynamic-menu",style:{width:r,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))})})};Ol.propTypes={menus:n.array,size:n.string,onclick:n.func,height:n.string,fontSize:n.string};const Il=({children:e,onChange:r,tabs:s,value:i,minHeight:o,width:l})=>{const[a,c]=C.useState(i),d=u=>{c(u),r(u)};return t.jsxs("div",{className:"tabs-container",style:{width:l},children:[t.jsx("div",{className:"tabs-wrapper",children:s.map(u=>t.jsxs("button",{onClick:()=>d(u.id),className:`tab-button ${a===u.id?"active":""}`,children:[t.jsx("span",{className:"tab-title",children:u.title}),t.jsx("span",{className:"tab-subtitle",children:u.subtitle})]},u.id))}),t.jsx("div",{style:{minHeight:o},children:e})]})};Il.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 Rl=({tabs:e,width:r,onChange:s,disabled:i,defaultValue:o})=>{var d;const[l,a]=C.useState(o||((d=e[0])==null?void 0:d.key)||"");C.useEffect(()=>{o&&a(o)},[o]);const c=u=>{a(u),s(u)};return t.jsx("div",{className:"DeliveryTabs-tabs-container",style:{width:r},children:t.jsx("div",{className:"tabs-wrapper",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((u,g)=>t.jsx("button",{disabled:i,className:`tab ${l===u.key?"active":""} ${g===0?"first-tab":""} ${g===e.length-1?"last-tab":""}`,onClick:()=>c(u.key),role:"tab","aria-selected":l===u.key,children:u.label},u.key))})})};Rl.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 Pl=({tabs:e,width:r,onChange:s})=>{const[i,o]=C.useState(e[0].id),l=a=>{o(a),s(a)};return t.jsx("div",{className:"tabs-simple-container",style:{width:r},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))})})};Pl.propTypes={tabs:n.array,width:n.string,onChange:n.func};const Wl=({titles:e=["1. Cargar Datos de Cancelación","2. Validar los Datos Cargados","3. Aceptar o Rechazar"],currentStep:r=1,fontSizeTitles:s,widthIcon:i,heightIcon:o,width:l})=>{const a=[Pi,Ri,Wi],c=e.map((d,u)=>({number:u+1,title:d,icon:a[u]}));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:r===1?"0%":r===2?"52%":"100%"}})}),t.jsx("div",{className:"stepper-steps",children:c.map(d=>{const u=d.icon,g=r>=d.number;return t.jsxs("div",{className:`stepper-step ${g?"active":""}`,style:{height:o},children:[t.jsx("span",{className:"stepper-title",style:{fontSize:s},children:d.title},d.number),t.jsx("div",{className:"stepper-icon",style:{width:i,height:o},children:t.jsx(u,{})})]},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,menu:r,submenu:s,tab:i,navigateFn:o,fontSize:l,Icon:a,marginTop:c})=>{const d=()=>{o({submenu:s,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(fr,{width:25,height:25})}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:r}),t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(pr,{})})]}),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:s}),i&&t.jsx("li",{className:"list-none",style:{fontSize:l},children:t.jsx(pr,{})}),i&&t.jsx("li",{className:"list-none color-tab",style:{fontSize:l},children:i})]})]})};$l.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 _l=({steps:e=[],currentStep:r=1,width:s="600px"})=>{const i=()=>e.length<=1?0:r/e.length*100;return t.jsxs("div",{className:"stepper-container",style:{width:s},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<r,d=a===r;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)})})]})};_l.propTypes={steps:n.array,currentStep:n.number,width:n.string};const Bl=({icon:e,title:r,className:s="",children:i})=>t.jsxs("div",{className:`data-section ${s}`,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:r})]}),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})})]});Bl.propTypes={icon:n.elementType,title:n.string,className:n.string,children:n.oneOfType([n.node,n.arrayOf(n.node)])};const Ll=({title:e,icon:r,className:s="",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 ${s}`,children:[t.jsxs("div",{className:"observations-header",children:[r&&t.jsx(r,{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})})]});Ll.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 Fl=({children:e,className:r="",...s})=>t.jsx("th",{className:`th-table-ixc ${r}`.trim(),...s,children:e});Fl.propTypes={children:n.node,className:n.string};const dh=(e=[])=>{const r=C.useRef(null),[s,i]=C.useState(!1),o=C.useCallback(()=>{if(r.current){const l=r.current,a=l.scrollWidth>l.clientWidth;return i(a),a}return!1},[]);return C.useEffect(()=>{const a=setTimeout(()=>{o()},0);return window.addEventListener("resize",o),()=>{clearTimeout(a),window.removeEventListener("resize",o)}},e),{ref:r,isTruncated:s,checkTruncation:o}},Hl=({children:e,className:r="",classTooltip:s="",showTooltipOnTruncate:i=!1,left:o=120,top:l=0,...a})=>{const{ref:c,isTruncated:d}=dh([e]),[u,g]=C.useState(!1),[p,m]=C.useState({top:0,left:0}),x=h=>{if(d&&i){const j=h.currentTarget.getBoundingClientRect();m({top:j.top+l,left:j.left+o}),g(!0)}},v=h=>{const j=h.relatedTarget;j&&typeof j.closest=="function"&&j.closest(".td-tooltip-container")||g(!1)};return t.jsxs(t.Fragment,{children:[t.jsx("td",{ref:c,className:`td-table-ixc-base ${r}`.trim(),onMouseEnter:x,onMouseLeave:v,...a,children:e}),u&&la.createPortal(t.jsx("div",{className:`td-tooltip-container ${s}`.trim(),style:{top:`${p.top}px`,left:`${p.left}px`},onMouseEnter:()=>g(!0),onMouseLeave:h=>{var z;const j=h.relatedTarget;j&&typeof j.closest=="function"&&((z=c.current)!=null&&z.contains(j))||g(!1)},children:e}),document.body)]})};Hl.propTypes={children:n.node,className:n.string,classTooltip:n.string,showTooltipOnTruncate:n.bool,left:n.number,top:n.number};const Vl=({children:e,className:r="",...s})=>t.jsx("thead",{className:`thead-table-ixc ${r}`.trim(),...s,children:e});Vl.propTypes={children:n.node,className:n.string};const Zl=({children:e,className:r="",...s})=>t.jsx("tr",{className:`tr-table-ixc ${r}`.trim(),...s,children:e});Zl.propTypes={children:n.node,className:n.string};const Ul=({children:e,className:r="",...s})=>t.jsx("tbody",{className:`tbody-table-ixc-base ${r}`.trim(),...s,children:e});Ul.propTypes={children:n.node,className:n.string};const Yl=({children:e,className:r,...s})=>t.jsx("table",{className:`table-v2 ${r}`,...s,children:e});Yl.propTypes={children:n.node,className:n.string};const hh=Object.assign(Yl,{Th:Fl,Td:Hl,Thead:Vl,Tr:Zl,Tbody:Ul}),ql=({children:e,style:r})=>t.jsx("h3",{className:"blue-title",style:{...r},children:e});ql.propTypes={children:n.any,style:n.object};const Gl=({children:e,navigateTo:r,style:s})=>t.jsx("button",{onClick:()=>r(),style:{...s},className:"ions-link",children:e});Gl.propTypes={children:n.node,navigateTo:n.func,style:n.object};const Kl=({children:e,className:r=""})=>t.jsx("h2",{className:`simple-title ${r}`,children:e});Kl.propTypes={children:n.node,className:n.string};const Xl=({children:e,className:r=""})=>t.jsx("p",{className:`paragraph ${r}`,children:e});Xl.propTypes={children:n.node,className:n.string};const Jl=({children:e,className:r=""})=>t.jsx("div",{className:`template-container ${r}`,children:e});Jl.propTypes={children:n.node,className:n.string},n.checkPropTypes=()=>{},M.Active=Gr,M.BasicSelect=Qe,M.BlueTitle=ql,M.BoldIcon=ur,M.Breadcrumbs=$l,M.ButtonAddBoxRoundedIcon=Io,M.ButtonArrow=qr,M.ButtonCleanFilters=Wo,M.ButtonDarkBlue=Jt,M.ButtonDarkBlueRounded=Ur,M.ButtonDarkGreen=To,M.ButtonDownloadFile=Mo,M.ButtonDownloadTemplate=Ao,M.ButtonEye=$o,M.ButtonLetters=So,M.ButtonMinus=Eo,M.ButtonPlus=zo,M.ButtonReset=Co,M.ButtonSearch=vo,M.ButtonSoftPastelBlue=No,M.ButtonSoftPastelBlueRounded=Ro,M.ButtonUploadTemplate=Do,M.ButtonVibrantBlue=Ue,M.ButtonVibrantBlueSend=Bo,M.ButtonVibrantBlueUpload=Oo,M.ButtonWhiteBorderBlue=Nt,M.ButtonWhiteBorderBlueDownloadTemplate=Yr,M.ButtonWhiteBorderBlueSendEmail=_o,M.ButtonWhiteBorderOrange=Dn,M.Canceled=Xr,M.CanceledIcon=Di,M.CheckBox=Dr,M.CheckIcon=Wi,M.CheckTicketIcon=Tn,M.Chip=Fo,M.ChipSection=Ho,M.ChipWithIcon=Vo,M.CleanFiltersIcon=kr,M.ClearFilterIcon=Cn,M.ClosedEye=br,M.Completed=Jr,M.CompletedIcon=Hi,M.CountCard=sl,M.CustomArrowIcon=S1,M.DataEnteredIcon=_i,M.DataMasterArrow=mr,M.DataMasterCountryConfiguration=T1,M.DataSection=Bl,M.DateIcon=wi,M.DateRangePicker=al,M.DateRangePickerBasicSelect=yl,M.DeliveryTabs=Rl,M.DesSelectAllIcon=ji,M.DownloadTemplateIcon=xr,M.DropFile=ko,M.EditIcon=yr,M.EllipseBase=zn,M.EllipseBlueIcon=zi,M.EllipseDarkGreenIcon=Ti,M.EllipseGreenIcon=Mn,M.EllipseGreyIcon=Mi,M.EraserIcon=fr,M.ExcelIcon=gr,M.ExcelSvgIcon=Pi,M.ExpandableTable=Sl,M.EyeButton=Po,M.FileCard=Ko,M.FileCardMinimized=Xo,M.FilePreview=Uo,M.FilterComponent=pl,M.FilterIcon=Ai,M.FolderCard=Jo,M.FolderCardMinimized=Qo,M.GreyContainer=qo,M.GreyContainerDropdown=Go,M.GreyInput=Ji,M.GreySelect=E0,M.GreyTextArea=go,M.HeaderItemsComponent=Ol,M.InProcessIcon=z1,M.InProcessingIcon=Fi,M.InTransit=Qr,M.InTransitIcon=En,M.Inactive=Kr,M.InfoActionCard=fl,M.InfoActionCardDownloadTemplate=gl,M.InputRadio=Lr,M.InputSearch=Xt,M.InputUpload=po,M.InputWithButtonSearch=bo,M.InputWithLabel=xo,M.ItalicIcon=hr,M.KeyboardArrowDownOutlinedIconColorCustom=vi,M.LastUpdate=Zo,M.Link=Gl,M.Loader=Gi,M.LogTable=Tl,M.MarksIcon=dr,M.MenuIconOption=Oi,M.MenuOptions=Dt,M.MinusIcon=Ni,M.ModalListAplications=xl,M.MultiSelect=uo,M.NumberSpinner=_0,M.NumberSpinnerByRange=jo,M.ObservationIcon=Bi,M.Observations=Ll,M.OpenEye=vr,M.Pagination=il,M.Paragraph=Xl,M.PlusIcon=Ei,M.ProcessFilter=ml,M.ProductRecallIcon=M1,M.RightArrowIcon=pr,M.RoundedInput=mo,M.SelectAll=Vr,M.SelectAllIcon=bi,M.SelectRadio=fo,M.SelectWithTitle=wo,M.SimpleTap=Pl,M.SimpleTitle=Kl,M.SingleDatePicker=ul,M.State=rl,M.StateBasic=Lo,M.StatsIcon=Ii,M.Stepper=Wl,M.StepsComponent=_l,M.Switch=Ki,M.Table=Ml,M.TableActionIcon=zl,M.TableComponent=hh,M.TableEdit=El,M.TableMultipleIcon=Nl,M.TableStates=Dl,M.TabsNavigation=Il,M.TemplateTicketConfirm=Jl,M.TextArea=Xi,M.TicketComponentV2=Al,M.TicketModal=bl,M.TimeComponent=yo,M.TimeIcon=ki,M.TitleWithTooltip=Yt,M.ToStartProcessingIcon=Li,M.ToggleChip=es,M.TooltipTable=Yi,M.TooltipsWhite=zr,M.TrashIcon=wr,M.TriangleIconForNumberSpinnerByRange=$i,M.UpLoadSvgIcon=kn,M.UpdateBanner=Zn,M.UploadFileIcon=Sn,M.UserReadOnlyIcon=Ut,M.VisualizationModaLogin=jl,M.WaringBanner=p1,M.WarningIcon=jr,M.WarningModal=wl,M.WindowCheck=Ri,M.XIcon=Si,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|