@data-c/ui 0.2.50 → 0.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,80 @@
1
+ var If=Object.create;var nc=Object.defineProperty;var Ef=Object.getOwnPropertyDescriptor;var Af=Object.getOwnPropertyNames;var Mf=Object.getPrototypeOf,Df=Object.prototype.hasOwnProperty;var ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ff=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Af(t))!Df.call(e,n)&&n!==r&&nc(e,n,{get:()=>t[n],enumerable:!(o=Ef(t,n))||o.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?If(Mf(e)):{},Ff(t||!e||!e.__esModule?nc(r,"default",{value:e,enumerable:!0}):r,e));var Ec=ne(z=>{"use strict";var X=typeof Symbol=="function"&&Symbol.for,ni=X?Symbol.for("react.element"):60103,ii=X?Symbol.for("react.portal"):60106,to=X?Symbol.for("react.fragment"):60107,ro=X?Symbol.for("react.strict_mode"):60108,oo=X?Symbol.for("react.profiler"):60114,no=X?Symbol.for("react.provider"):60109,io=X?Symbol.for("react.context"):60110,ai=X?Symbol.for("react.async_mode"):60111,ao=X?Symbol.for("react.concurrent_mode"):60111,so=X?Symbol.for("react.forward_ref"):60112,lo=X?Symbol.for("react.suspense"):60113,Bm=X?Symbol.for("react.suspense_list"):60120,co=X?Symbol.for("react.memo"):60115,uo=X?Symbol.for("react.lazy"):60116,_m=X?Symbol.for("react.block"):60121,Lm=X?Symbol.for("react.fundamental"):60117,$m=X?Symbol.for("react.responder"):60118,Nm=X?Symbol.for("react.scope"):60119;function he(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ni:switch(e=e.type,e){case ai:case ao:case to:case oo:case ro:case lo:return e;default:switch(e=e&&e.$$typeof,e){case io:case so:case uo:case co:case no:return e;default:return t}}case ii:return t}}}function Ic(e){return he(e)===ao}z.AsyncMode=ai;z.ConcurrentMode=ao;z.ContextConsumer=io;z.ContextProvider=no;z.Element=ni;z.ForwardRef=so;z.Fragment=to;z.Lazy=uo;z.Memo=co;z.Portal=ii;z.Profiler=oo;z.StrictMode=ro;z.Suspense=lo;z.isAsyncMode=function(e){return Ic(e)||he(e)===ai};z.isConcurrentMode=Ic;z.isContextConsumer=function(e){return he(e)===io};z.isContextProvider=function(e){return he(e)===no};z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ni};z.isForwardRef=function(e){return he(e)===so};z.isFragment=function(e){return he(e)===to};z.isLazy=function(e){return he(e)===uo};z.isMemo=function(e){return he(e)===co};z.isPortal=function(e){return he(e)===ii};z.isProfiler=function(e){return he(e)===oo};z.isStrictMode=function(e){return he(e)===ro};z.isSuspense=function(e){return he(e)===lo};z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===to||e===ao||e===oo||e===ro||e===lo||e===Bm||typeof e=="object"&&e!==null&&(e.$$typeof===uo||e.$$typeof===co||e.$$typeof===no||e.$$typeof===io||e.$$typeof===so||e.$$typeof===Lm||e.$$typeof===$m||e.$$typeof===Nm||e.$$typeof===_m)};z.typeOf=he});var Ac=ne(W=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function S(T){return typeof T=="string"||typeof T=="function"||T===o||T===c||T===a||T===n||T===d||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===m||T.$$typeof===i||T.$$typeof===l||T.$$typeof===u||T.$$typeof===y||T.$$typeof===v||T.$$typeof===x||T.$$typeof===p)}function w(T){if(typeof T=="object"&&T!==null){var qn=T.$$typeof;switch(qn){case t:var Kr=T.type;switch(Kr){case s:case c:case o:case a:case n:case d:return Kr;default:var oc=Kr&&Kr.$$typeof;switch(oc){case l:case u:case g:case m:case i:return oc;default:return qn}}case r:return qn}}}var C=s,k=c,P=l,Q=i,$=t,se=u,E=o,le=g,h=m,b=r,I=a,M=n,A=d,B=!1;function D(T){return B||(B=!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.")),F(T)||w(T)===s}function F(T){return w(T)===c}function _(T){return w(T)===l}function N(T){return w(T)===i}function L(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function pe(T){return w(T)===u}function oe(T){return w(T)===o}function Je(T){return w(T)===g}function wf(T){return w(T)===m}function Sf(T){return w(T)===r}function Tf(T){return w(T)===a}function Pf(T){return w(T)===n}function kf(T){return w(T)===d}W.AsyncMode=C,W.ConcurrentMode=k,W.ContextConsumer=P,W.ContextProvider=Q,W.Element=$,W.ForwardRef=se,W.Fragment=E,W.Lazy=le,W.Memo=h,W.Portal=b,W.Profiler=I,W.StrictMode=M,W.Suspense=A,W.isAsyncMode=D,W.isConcurrentMode=F,W.isContextConsumer=_,W.isContextProvider=N,W.isElement=L,W.isForwardRef=pe,W.isFragment=oe,W.isLazy=Je,W.isMemo=wf,W.isPortal=Sf,W.isProfiler=Tf,W.isStrictMode=Pf,W.isSuspense=kf,W.isValidElementType=S,W.typeOf=w}()});var li=ne((L2,si)=>{"use strict";process.env.NODE_ENV==="production"?si.exports=Ec():si.exports=Ac()});var Fc=ne(($2,Dc)=>{"use strict";var Mc=Object.getOwnPropertySymbols,Vm=Object.prototype.hasOwnProperty,zm=Object.prototype.propertyIsEnumerable;function Wm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Gm(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Dc.exports=Gm()?Object.assign:function(e,t){for(var r,o=Wm(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)Vm.call(r,i)&&(o[i]=r[i]);if(Mc){n=Mc(r);for(var l=0;l<n.length;l++)zm.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o}});var po=ne((N2,Rc)=>{"use strict";var Hm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Rc.exports=Hm});var ci=ne((V2,Oc)=>{Oc.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Nc=ne((z2,$c)=>{"use strict";var ui=function(){};process.env.NODE_ENV!=="production"&&(Bc=po(),fo={},_c=ci(),ui=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var Bc,fo,_c;function Lc(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(_c(e,a)){var i;try{if(typeof e[a]!="function"){var l=Error((o||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[a](t,a,o,r,null,Bc)}catch(c){i=c}if(i&&!(i instanceof Error)&&ui((o||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in fo)){fo[i.message]=!0;var s=n?n():"";ui("Failed "+r+" type: "+i.message+(s??""))}}}}Lc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(fo={})};$c.exports=Lc});var Wc=ne((W2,zc)=>{"use strict";var Um=li(),jm=Fc(),_t=po(),pi=ci(),Vc=Nc(),Lt=function(){};process.env.NODE_ENV!=="production"&&(Lt=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function mo(){return null}zc.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(h){var b=h&&(r&&h[r]||h[o]);if(typeof b=="function")return b}var a="<<anonymous>>",i={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:d(),arrayOf:f,element:m(),elementType:g(),instanceOf:p,node:S(),objectOf:v,oneOf:y,oneOfType:x,shape:C,exact:k};function l(h,b){return h===b?h!==0||1/h===1/b:h!==h&&b!==b}function s(h,b){this.message=h,this.data=b&&typeof b=="object"?b:{},this.stack=""}s.prototype=Error.prototype;function c(h){if(process.env.NODE_ENV!=="production")var b={},I=0;function M(B,D,F,_,N,L,pe){if(_=_||a,L=L||F,pe!==_t){if(t){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Je=_+":"+F;!b[Je]&&I<3&&(Lt("You are manually calling a React.PropTypes validation function for the `"+L+"` prop on `"+_+"`. 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."),b[Je]=!0,I++)}}return D[F]==null?B?D[F]===null?new s("The "+N+" `"+L+"` is marked as required "+("in `"+_+"`, but its value is `null`.")):new s("The "+N+" `"+L+"` is marked as required in "+("`"+_+"`, but its value is `undefined`.")):null:h(D,F,_,N,L)}var A=M.bind(null,!1);return A.isRequired=M.bind(null,!0),A}function u(h){function b(I,M,A,B,D,F){var _=I[M],N=$(_);if(N!==h){var L=se(_);return new s("Invalid "+B+" `"+D+"` of type "+("`"+L+"` supplied to `"+A+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return c(b)}function d(){return c(mo)}function f(h){function b(I,M,A,B,D){if(typeof h!="function")return new s("Property `"+D+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var F=I[M];if(!Array.isArray(F)){var _=$(F);return new s("Invalid "+B+" `"+D+"` of type "+("`"+_+"` supplied to `"+A+"`, expected an array."))}for(var N=0;N<F.length;N++){var L=h(F,N,A,B,D+"["+N+"]",_t);if(L instanceof Error)return L}return null}return c(b)}function m(){function h(b,I,M,A,B){var D=b[I];if(!e(D)){var F=$(D);return new s("Invalid "+A+" `"+B+"` of type "+("`"+F+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return c(h)}function g(){function h(b,I,M,A,B){var D=b[I];if(!Um.isValidElementType(D)){var F=$(D);return new s("Invalid "+A+" `"+B+"` of type "+("`"+F+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return c(h)}function p(h){function b(I,M,A,B,D){if(!(I[M]instanceof h)){var F=h.name||a,_=le(I[M]);return new s("Invalid "+B+" `"+D+"` of type "+("`"+_+"` supplied to `"+A+"`, expected ")+("instance of `"+F+"`."))}return null}return c(b)}function y(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Lt("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])."):Lt("Invalid argument supplied to oneOf, expected an array.")),mo;function b(I,M,A,B,D){for(var F=I[M],_=0;_<h.length;_++)if(l(F,h[_]))return null;var N=JSON.stringify(h,function(pe,oe){var Je=se(oe);return Je==="symbol"?String(oe):oe});return new s("Invalid "+B+" `"+D+"` of value `"+String(F)+"` "+("supplied to `"+A+"`, expected one of "+N+"."))}return c(b)}function v(h){function b(I,M,A,B,D){if(typeof h!="function")return new s("Property `"+D+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var F=I[M],_=$(F);if(_!=="object")return new s("Invalid "+B+" `"+D+"` of type "+("`"+_+"` supplied to `"+A+"`, expected an object."));for(var N in F)if(pi(F,N)){var L=h(F,N,A,B,D+"."+N,_t);if(L instanceof Error)return L}return null}return c(b)}function x(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&Lt("Invalid argument supplied to oneOfType, expected an instance of array."),mo;for(var b=0;b<h.length;b++){var I=h[b];if(typeof I!="function")return Lt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(I)+" at index "+b+"."),mo}function M(A,B,D,F,_){for(var N=[],L=0;L<h.length;L++){var pe=h[L],oe=pe(A,B,D,F,_,_t);if(oe==null)return null;oe.data&&pi(oe.data,"expectedType")&&N.push(oe.data.expectedType)}var Je=N.length>0?", expected one of type ["+N.join(", ")+"]":"";return new s("Invalid "+F+" `"+_+"` supplied to "+("`"+D+"`"+Je+"."))}return c(M)}function S(){function h(b,I,M,A,B){return P(b[I])?null:new s("Invalid "+A+" `"+B+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return c(h)}function w(h,b,I,M,A){return new s((h||"React class")+": "+b+" type `"+I+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function C(h){function b(I,M,A,B,D){var F=I[M],_=$(F);if(_!=="object")return new s("Invalid "+B+" `"+D+"` of type `"+_+"` "+("supplied to `"+A+"`, expected `object`."));for(var N in h){var L=h[N];if(typeof L!="function")return w(A,B,D,N,se(L));var pe=L(F,N,A,B,D+"."+N,_t);if(pe)return pe}return null}return c(b)}function k(h){function b(I,M,A,B,D){var F=I[M],_=$(F);if(_!=="object")return new s("Invalid "+B+" `"+D+"` of type `"+_+"` "+("supplied to `"+A+"`, expected `object`."));var N=jm({},I[M],h);for(var L in N){var pe=h[L];if(pi(h,L)&&typeof pe!="function")return w(A,B,D,L,se(pe));if(!pe)return new s("Invalid "+B+" `"+D+"` key `"+L+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[M],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(h),null," "));var oe=pe(F,L,A,B,D+"."+L,_t);if(oe)return oe}return null}return c(b)}function P(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(P);if(h===null||e(h))return!0;var b=n(h);if(b){var I=b.call(h),M;if(b!==h.entries){for(;!(M=I.next()).done;)if(!P(M.value))return!1}else for(;!(M=I.next()).done;){var A=M.value;if(A&&!P(A[1]))return!1}}else return!1;return!0;default:return!1}}function Q(h,b){return h==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function $(h){var b=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":Q(b,h)?"symbol":b}function se(h){if(typeof h>"u"||h===null)return""+h;var b=$(h);if(b==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return b}function E(h){var b=se(h);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function le(h){return!h.constructor||!h.constructor.name?a:h.constructor.name}return i.checkPropTypes=Vc,i.resetWarningCache=Vc.resetWarningCache,i.PropTypes=i,i}});var jc=ne((G2,Uc)=>{"use strict";var qm=po();function Gc(){}function Hc(){}Hc.resetWarningCache=Gc;Uc.exports=function(){function e(o,n,a,i,l,s){if(s!==qm){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Hc,resetWarningCache:Gc};return r.PropTypes=r,r}});var go=ne((H2,di)=>{process.env.NODE_ENV!=="production"?(qc=li(),Yc=!0,di.exports=Wc()(qc.isElement,Yc)):di.exports=jc()();var qc,Yc});var Jc=ne(G=>{"use strict";var mi=Symbol.for("react.transitional.element"),gi=Symbol.for("react.portal"),ho=Symbol.for("react.fragment"),yo=Symbol.for("react.strict_mode"),xo=Symbol.for("react.profiler"),vo=Symbol.for("react.consumer"),bo=Symbol.for("react.context"),Co=Symbol.for("react.forward_ref"),wo=Symbol.for("react.suspense"),So=Symbol.for("react.suspense_list"),To=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),Km=Symbol.for("react.view_transition"),Zm=Symbol.for("react.client.reference");function Se(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mi:switch(e=e.type,e){case ho:case xo:case yo:case wo:case So:case Km:return e;default:switch(e=e&&e.$$typeof,e){case bo:case Co:case Po:case To:return e;case vo:return e;default:return t}}case gi:return t}}}G.ContextConsumer=vo;G.ContextProvider=bo;G.Element=mi;G.ForwardRef=Co;G.Fragment=ho;G.Lazy=Po;G.Memo=To;G.Portal=gi;G.Profiler=xo;G.StrictMode=yo;G.Suspense=wo;G.SuspenseList=So;G.isContextConsumer=function(e){return Se(e)===vo};G.isContextProvider=function(e){return Se(e)===bo};G.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mi};G.isForwardRef=function(e){return Se(e)===Co};G.isFragment=function(e){return Se(e)===ho};G.isLazy=function(e){return Se(e)===Po};G.isMemo=function(e){return Se(e)===To};G.isPortal=function(e){return Se(e)===gi};G.isProfiler=function(e){return Se(e)===xo};G.isStrictMode=function(e){return Se(e)===yo};G.isSuspense=function(e){return Se(e)===wo};G.isSuspenseList=function(e){return Se(e)===So};G.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ho||e===xo||e===yo||e===wo||e===So||typeof e=="object"&&e!==null&&(e.$$typeof===Po||e.$$typeof===To||e.$$typeof===bo||e.$$typeof===vo||e.$$typeof===Co||e.$$typeof===Zm||e.getModuleId!==void 0)};G.typeOf=Se});var Xc=ne(H=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case o:case a:case n:case c:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case l:case s:case f:case d:return p;case i:return p;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");H.ContextConsumer=i,H.ContextProvider=l,H.Element=t,H.ForwardRef=s,H.Fragment=o,H.Lazy=f,H.Memo=d,H.Portal=r,H.Profiler=a,H.StrictMode=n,H.Suspense=c,H.SuspenseList=u,H.isContextConsumer=function(p){return e(p)===i},H.isContextProvider=function(p){return e(p)===l},H.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},H.isForwardRef=function(p){return e(p)===s},H.isFragment=function(p){return e(p)===o},H.isLazy=function(p){return e(p)===f},H.isMemo=function(p){return e(p)===d},H.isPortal=function(p){return e(p)===r},H.isProfiler=function(p){return e(p)===a},H.isStrictMode=function(p){return e(p)===n},H.isSuspense=function(p){return e(p)===c},H.isSuspenseList=function(p){return e(p)===u},H.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===a||p===n||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===l||p.$$typeof===i||p.$$typeof===s||p.$$typeof===g||p.getModuleId!==void 0)},H.typeOf=e}()});var yi=ne((X2,hi)=>{"use strict";process.env.NODE_ENV==="production"?hi.exports=Jc():hi.exports=Xc()});var Du=ne((dM,Mu)=>{"use strict";function mt(e){this._maxSize=e,this.clear()}mt.prototype.clear=function(){this._size=0,this._values=Object.create(null)};mt.prototype.get=function(e){return this._values[e]};mt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var jh=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Au=/^\d+$/,qh=/^\d/,Yh=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Kh=/^\s*(['"]?)(.*?)(\1)\s*$/,Ui=512,ku=new mt(Ui),Iu=new mt(Ui),Eu=new mt(Ui);Mu.exports={Cache:mt,split:Hi,normalizePath:Gi,setter:function(e){var t=Gi(e);return Iu.get(e)||Iu.set(e,function(o,n){for(var a=0,i=t.length,l=o;a<i-1;){var s=t[a];if(s==="__proto__"||s==="constructor"||s==="prototype")return o;l=l[t[a++]]}l[t[a]]=n})},getter:function(e,t){var r=Gi(e);return Eu.get(e)||Eu.set(e,function(n){for(var a=0,i=r.length;a<i;)if(n!=null||!t)n=n[r[a++]];else return;return n})},join:function(e){return e.reduce(function(t,r){return t+(ji(r)||Au.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Zh(Array.isArray(e)?e:Hi(e),t,r)}};function Gi(e){return ku.get(e)||ku.set(e,Hi(e).map(function(t){return t.replace(Kh,"$2")}))}function Hi(e){return e.match(jh)||[""]}function Zh(e,t,r){var o=e.length,n,a,i,l;for(a=0;a<o;a++)n=e[a],n&&(Xh(n)&&(n='"'+n+'"'),l=ji(n),i=!l&&/^\d+$/.test(n),t.call(r,n,l,i,a,e))}function ji(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Qh(e){return e.match(qh)&&!e.match(Au)}function Jh(e){return Yh.test(e)}function Xh(e){return!ji(e)&&(Qh(e)||Jh(e))}});var Ou=ne((fM,Ru)=>{var ey=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,jo=e=>e.match(ey)||[],qo=e=>e[0].toUpperCase()+e.slice(1),qi=(e,t)=>jo(e).join(t).toLowerCase(),Fu=e=>jo(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),ty=e=>qo(Fu(e)),ry=e=>qi(e,"_"),oy=e=>qi(e,"-"),ny=e=>qo(qi(e," ")),iy=e=>jo(e).map(qo).join(" ");Ru.exports={words:jo,upperFirst:qo,camelCase:Fu,pascalCase:ty,snakeCase:ry,kebabCase:oy,sentenceCase:ny,titleCase:iy}});var _u=ne((mM,Yi)=>{Yi.exports=function(e){return Bu(ay(e),e)};Yi.exports.array=Bu;function Bu(e,t){var r=e.length,o=new Array(r),n={},a=r,i=sy(t),l=ly(e);for(t.forEach(function(c){if(!l.has(c[0])||!l.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)n[a]||s(e[a],a,new Set);return o;function s(c,u,d){if(d.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!l.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!n[u]){n[u]=!0;var m=i.get(c)||new Set;if(m=Array.from(m),u=m.length){d.add(c);do{var g=m[--u];s(g,l.get(g),d)}while(u);d.delete(c)}o[--r]=c}}}function ay(e){for(var t=new Set,r=0,o=e.length;r<o;r++){var n=e[r];t.add(n[0]),t.add(n[1])}return Array.from(t)}function sy(e){for(var t=new Map,r=0,o=e.length;r<o;r++){var n=e[r];t.has(n[0])||t.set(n[0],new Set),t.has(n[1])||t.set(n[1],new Set),t.get(n[0]).add(n[1])}return t}function ly(e){for(var t=new Map,r=0,o=e.length;r<o;r++)t.set(e[r],r);return t}});import{Button as Rf,CircularProgress as Of}from"@mui/material";import{jsx as ic}from"react/jsx-runtime";var Bf=e=>{let{isLoading:t,children:r,...o}=e;return ic(Rf,{...o,disabled:t?!0:o.disabled,children:t?ic(Of,{color:"secondary",size:22}):r})},R=Bf;import{Stack as _f}from"@mui/material";import{jsx as Lf}from"react/jsx-runtime";function _e(e){return Lf(_f,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1,...e})}import{FormControl as $f,FormControlLabel as Nf,Checkbox as Vf}from"@mui/material";import{jsx as Yn}from"react/jsx-runtime";function ac(e){let{label:t,...r}=e;return Yn($f,{component:"fieldset",children:Yn(Nf,{label:t,control:Yn(Vf,{...r})})})}import{Box as sc}from"@mui/material";import{getContrast as Yf}from"polished";import{alpha as zf,createTheme as Wf,responsiveFontSizes as Gf}from"@mui/material/styles";var st="#05b5e6",Hf="#05b5e6",ie={32:"2rem",28:"1.75rem",24:"1.5",20:"1.25rem",16:"1rem",14:"0.875rem",12:"0.75rem",10:"0.625rem"},we={800:"#202024",700:"#262626",600:"#333333",500:"#808080",400:"#BBBBBA",300:"#E0E0E0",200:"#F2F2F2",100:"#FAFAFA"},Uf={cssVariables:!0,mixins:{toolbar:{height:48},menu:{width:260}},palette:{situacao:{aberto:"#FFFF00",fechado:"#FFA500",orcamento:"#800080",analise:"#0000FF",cancelado:"#FF0000",liberado:"#008000"},border:"rgba(0, 0, 0, 0.23)",text:{primary:"#262626",secondary:"#808080"},primary:{light:"#66D1E6",main:st,dark:Hf},secondary:{light:"#eceff1",main:"#13143F",dark:"#263238"},background:{default:"#FFF",paper:"#F4F4F4"},error:{main:"#F44336",dark:"#BE0D00",light:"#FF6C5F"},warning:{main:"#FFCD38",dark:"#C29000",light:"#FFED58"},success:{main:"#4CAF50",dark:"#187B1C",light:"#7DE081"},grey:{800:we[800],700:we[700],600:we[600],500:we[500],400:we[400],300:we[300],200:we[200],100:we[100]}},typography:{fontFamily:["Roboto","Lato","sans-serif","Poppins","Montserrat"].join(","),h1:{fontSize:ie[32],fontWeight:400,color:"#262626"},h2:{fontSize:ie[28],fontWeight:400,color:"#262626"},h3:{fontSize:ie[24],fontWeight:400,color:"#262626"},h4:{fontSize:ie[20],fontWeight:400,color:"#262626"},h5:{fontSize:ie[16],fontWeight:400,color:"#262626"},h6:{fontSize:ie[14],fontWeight:500,color:"#262626"},subtitle1:{fontSize:ie[14],fontWeight:400,color:"#262626"},subtitle2:{fontSize:ie[12],fontWeight:500,color:we[500]},body1:{fontSize:ie[14],fontWeight:400,color:"#262626"},body2:{fontSize:ie[12],fontWeight:400,color:"#808080"},caption:{fontSize:ie[12],fontWeight:400,color:"#808080"},overline:{fontSize:ie[10],fontWeight:400,textTransform:"uppercase",color:"#808080"}},components:{MuiTabs:{styleOverrides:{root:{minHeight:"30px"}}},MuiTab:{styleOverrides:{root:{minHeight:"30px",height:"30px",textTransform:"none",fontWeight:"400",fontSize:ie[12],"& .MuiTab-iconWrapper":{fontSize:ie[16]}}}},MuiList:{styleOverrides:{root:{paddingTop:0}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:zf(st,.1),boxShadow:`inset 0 0 0 0.5px ${st}`,borderRadius:"4px","& .MuiTypography-root":{color:st,fontWeight:500},"& .MuiListItemIcon-root svg":{strokeWidth:2,color:st}},":hover":{background:"rgba(89, 195, 224, 15%)",borderRadius:"4px"}}}},MuiToolbar:{defaultProps:{sx:{minHeight:"46px"}},styleOverrides:{root:{background:"#FFFFFF"}}},MuiChip:{defaultProps:{size:"small"}},MuiContainer:{defaultProps:{maxWidth:!1,disableGutters:!0},styleOverrides:{root:{display:"flex",flexDirection:"column",flexGrow:1}}},MuiButton:{defaultProps:{size:"small",variant:"outlined"},styleOverrides:{root:{fontSize:"0.755rem",textTransform:"none",fontWeight:"bold",minWidth:"78px"},contained:{color:"rgba(255,255,255,0.85)",boxShadow:"none"},outlined:{background:"white",":disabled":{background:"none",boxShadow:"none",borderColor:"#E0E0E0"}}}},MuiCheckbox:{defaultProps:{size:"small"}},MuiFormControl:{defaultProps:{size:"small"},styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{fontSize:ie[12],height:"auto",minHeight:"28px","&.MuiInputBase-sizeSmall":{"& .MuiOutlinedInput-input":{padding:"3.5px 14px"}},"&.MuiInputBase-multiline.MuiInputBase-sizeSmall":{height:"auto",padding:0,"& .MuiOutlinedInput-input":{padding:"8.5px 14px"}}}}},MuiTextField:{defaultProps:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0}},styleOverrides:{root:{"& label":{color:we[500],fontSize:"13px"},"& .MuiInputBase-root":{backgroundColor:"#fff"},"& .MuiInputBase-input[readonly]":{backgroundColor:we[200],color:we[700]}}}},MuiAutocomplete:{defaultProps:{size:"small"},styleOverrides:{inputRoot:{fontSize:"14px","& .MuiOutlinedInput-input":{padding:"3.5px 14px"}},root:{"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall":{padding:"0 12px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input":{padding:0}}}},MuiInputLabel:{styleOverrides:{root:{fontSize:ie[14]}}},MuiSvgIcon:{defaultProps:{fontSize:"small",color:"inherit"}},MuiIconButton:{defaultProps:{size:"small"},styleOverrides:{root:{}}},MuiPopover:{styleOverrides:{paper:{borderRadius:"12px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{"& .MuiIcon-root":{color:st},"& .MuiTypography-root":{color:st}},":hover":{borderRadius:"6px",background:"rgba(89, 195, 224, 15%)"}}}},MuiBadge:{styleOverrides:{root:{"& .MuiBadge-anchorOriginBottomLeft":{height:"16px",top:8}},badge:{fontSize:"8pt"}}},MuiTableCell:{styleOverrides:{root:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:0,"&.selected":{backgroundColor:"#199"}},head:{backgroundColor:"#FAFAFA",border:"1px solid #D0D0D0",color:"#808080","& span":{color:"#808080"},"& div":{marginLeft:"4px"}},body:{backgroundColor:"#ffffff00",border:"1px solid #D0D0D0",borderTop:"none",borderBottom:"none","& > div":{fontSize:"9pt",paddingLeft:"6px",paddingRight:"6px",paddingTop:"2px",paddingBottom:"2px"}}}},MuiTableRow:{styleOverrides:{root:{backgroundColor:"#FFFFFF",height:"30px","&.MuiTableRow-hover":{"&:hover":{backgroundColor:"#ffffde"}}},head:{borderRadius:"4px","& div":{fontWeight:"600",fontSize:"13px",padding:"2px"}}}},MUIDataTableHeadCell:{styleOverrides:{toolButton:{height:"48px"}}},MUIDataTableBodyRow:{styleOverrides:{root:{"&:hover":{backgroundColor:"#333"},"&:nth-of-type(even)":{backgroundColor:"#F5F5F5"},"&:last-child":{borderBottom:"1px solid #D0D0D0"}}}},MuiTableHead:{styleOverrides:{root:{height:"48px"}}},MuiPaper:{styleOverrides:{root:{background:"#FFFFFF"}}},MuiDrawer:{styleOverrides:{paper:{}}},MuiDialog:{styleOverrides:{paper:{borderRadius:"6px"}}},MuiDialogContent:{styleOverrides:{root:{}}}}},jf=Wf(Uf),qf=Gf(jf),V=qf;import{Fragment as Qf,jsx as Zr,jsxs as Zf}from"react/jsx-runtime";var Kf={"primary-light":V.palette.primary.light,primary:V.palette.primary.main,"primary-dark":V.palette.primary.dark,"text-secondary":V.palette.text.secondary,"text-primary":V.palette.text.primary,"background-paper":V.palette.background.paper,background:V.palette.background.default,"error-light":V.palette.error.light,error:V.palette.error.main,"erro-drark":V.palette.error.dark,"warning-light":V.palette.warning.light,warning:V.palette.warning.main,"warning-dark":V.palette.warning.dark,"success-light":V.palette.success.light,success:V.palette.success.main,"success-dark":V.palette.success.dark,"grey-100":V.palette.grey[100],"grey-200":V.palette.grey[200],"grey-300":V.palette.grey[300],"grey-400":V.palette.grey[400],"grey-500":V.palette.grey[500],"grey-600":V.palette.grey[600],"grey-700":V.palette.grey[700],"grey-800":V.palette.grey[800]};function lc(){return Zr(Qf,{children:Object.entries(Kf).map(([e,t])=>Zr(sc,{sx:{backgroundColor:t,padding:"2rem"},children:Zf(sc,{sx:{display:"flex",justifyContent:"space-between",fontFamily:V.typography.fontFamily,color:Yf(t,"#FFF")<3.5?"#000":"#FFF"},children:[Zr("strong",{children:e}),Zr("span",{children:t})]})},e))})}import{Box as Qr,IconButton as Jr,Icon as pc,Badge as sm}from"@mui/material";import{Edit as dc,Delete as fc,GetApp as mc}from"@mui/icons-material";import{Tooltip as Jf,tooltipClasses as Xf,Box as Kn,Icon as em,Typography as tm,Divider as rm}from"@mui/material";import{styled as om}from"@mui/material/styles";import{jsx as lt,jsxs as cc}from"react/jsx-runtime";var nm=om(({className:e,...t})=>lt(Jf,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Xf.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:e.typography.pxToRem(12),border:"1px solid #dadde9"}})),im={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},am=e=>{let{title:t,type:r}=e;return cc(Kn,{sx:{mt:.5},children:[cc(Kn,{sx:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center"},children:[lt(em,{color:r,fontSize:"small",children:r})," ",lt(tm,{variant:"subtitle2",sx:{ml:.5},children:im[r]})]}),lt(rm,{sx:{mt:.5}}),lt(Kn,{sx:{mt:1},children:t})]})},uc=e=>{let{type:t,children:r,title:o,...n}=e;return lt(nm,{arrow:!0,title:lt(am,{title:o||"",type:t}),enterDelay:300,...n,children:r})};uc.defaultProps={type:"info"};var Rt=uc;import{jsx as ae,jsxs as fr}from"react/jsx-runtime";var qP=()=>({style:{width:"80px",textAlign:"center"}}),YP=()=>({style:{width:"128px",textAlign:"right"}});function Zn(e){let{onClick:t,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:a,displayTransporterButton:i,disableTooltip:l,disabled:s,disabledUpdateButton:c,disabledDeleteButton:u,disabledTransporterButton:d}=e;return fr(Qr,{children:[o&&o.map(({id:f,icon:m,iconButtonProps:g,tooltip:p,visible:y,disabled:v,badge:x})=>y===null||!!y&&ae(sm,{color:"primary",badgeContent:x,children:fr(Jr,{onClick:S=>t(f,r,S),size:"small",disabled:v,...g,children:[p&&ae(Rt,{type:p.type,title:p.content,children:ae(pc,{fontSize:"small",children:m})}),!p&&ae(pc,{fontSize:"small",children:m})]},f)})),i&&fr(Jr,{size:"small",onClick:f=>t("transport",r,f),color:"primary",disabled:s||d,children:[l&&ae(mc,{fontSize:"small"}),!l&&ae(Rt,{type:"warning",title:ae(Qr,{children:"Clique para transportar este registro."}),children:ae(mc,{fontSize:"small"})})]}),n&&fr(Jr,{size:"small",color:"primary",onClick:f=>t("edit",r,f),disabled:s||c,children:[l&&ae(dc,{fontSize:"small"}),!l&&ae(Rt,{type:"info",title:ae(Qr,{children:"Clique para editar este registro."}),children:ae(dc,{fontSize:"small"})})]}),a&&fr(Jr,{size:"small",onClick:f=>t("delete",r,f),color:"primary",disabled:s||u,children:[l&&ae(fc,{fontSize:"small"}),!l&&ae(Rt,{type:"warning",title:ae(Qr,{children:"Clique para excluir este registro."}),children:ae(fc,{fontSize:"small"})})]})]})}Zn.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};import{Box as Qn,Chip as gc,IconButton as lm}from"@mui/material";import{RestartAlt as cm}from"@mui/icons-material";import{useFilterData as um,useFilterApi as pm}from"@data-c/providers";import{useCallback as dm,useMemo as fm}from"react";import{jsx as Ot,jsxs as mm}from"react/jsx-runtime";function Xr(e){let{renderLabel:t,disableds:r}=e,{deleteFilterValue:o,deleteAllFilterValues:n}=pm(),{filterValues:a,appliedValues:i}=um(),l=fm(()=>{if(Object.keys(i||{}).length>0){let u=!1,d=Object.keys(i||{});for(let f=0;f<d.length;f++){let m=i[d[f]];if(Array.isArray(m)&&m.length>0){u=!0;break}else if(!Array.isArray(m)&&m){u=!0;break}}return u}return!1},[i]),s=dm(c=>t?t(a[c].label,i[c]):`${a[c].label} - ${i&&i[c]}`,[t,a,i]);return mm(Qn,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[Ot(Qn,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end",gap:1},children:l&&Object.keys(i||{}).map(c=>{let u=Array.isArray(r)&&r.includes(c),d;if(u||(d=()=>{o&&o(c)}),Array.isArray(i[c])&&i[c].length>0)return Ot(gc,{size:"small",label:s(c),onDelete:d,variant:"outlined"},c);if(!Array.isArray(i[c])&&i[c])return Ot(gc,{size:"small",label:s(c),onDelete:d,variant:"outlined"},c)})}),l&&Ot(Qn,{sx:{mr:.5,ml:.5,display:"flex",alignContent:"center",alignItems:"center"},children:Ot(lm,{onClick:()=>{n&&n()},children:Ot(cm,{fontSize:"small",color:"error"})})})]})}import{useEffect as bm}from"react";import{useFilterApi as ti,useFilterData as Cm}from"@data-c/providers";import{RestartAlt as wm,Search as yc}from"@mui/icons-material";import{Box as Sm,Button as ei,Stack as Tm}from"@mui/material";import{Box as Jn,Stack as hc,Drawer as gm,Typography as hm,IconButton as ym,Toolbar as xm}from"@mui/material";import{Cancel as vm}from"@mui/icons-material";import{jsx as ct,jsxs as Xn}from"react/jsx-runtime";function eo(e){let{drawerTitle:t,actions:r,onClose:o,children:n,...a}=e;return ct(gm,{PaperProps:{style:{borderRadius:"12px 0 0 12px"}},onClose:o,...a,children:Xn(hc,{sx:{width:"360px",height:"100%",justifyContent:"space-between",backgroundColor:i=>i.palette.background.paper},children:[Xn(hc,{children:[ct(xm,{}),Xn(Jn,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",alignContent:"center",height:"48px",borderBottom:i=>`solid 1px ${i.palette.grey[300]}`},children:[ct(hm,{component:"h1",variant:"h5",sx:{pl:i=>i.spacing(2)},children:t}),o&&ct(ym,{onClick:o,children:ct(vm,{color:"error"})})]}),ct(Jn,{sx:{padding:i=>i.spacing(2)},children:n})]}),r&&ct(Jn,{sx:{pt:i=>i.spacing(1),pb:i=>i.spacing(1),pl:i=>i.spacing(2),pr:i=>i.spacing(2),borderTop:i=>`solid 1px ${i.palette.grey[300]}`},children:r})]})})}eo.defaultProps={anchor:"right"};import{Fragment as Im,jsx as et,jsxs as mr}from"react/jsx-runtime";var Pm=()=>{let{applyFilterValues:e,closeFilter:t,deleteAllFilterValues:r}=ti();function o(){t()}function n(){e(),t()}function a(){r&&(r(),t())}return mr(Tm,{sx:{flexDirection:"row",justifyContent:"flex-end","& > button:first-child":{mr:1}},children:[mr(ei,{fullWidth:!0,onClick:a,color:"error",children:[et(wm,{})," Redefinir Padr\xE3o"]}),mr(ei,{fullWidth:!0,variant:"contained",onClick:n,children:[et(yc,{})," Aplicar"]})]})},km=e=>{let{title:t,children:r,onApplyFilters:o,drawerProps:n}=e,{isOpen:a,appliedValues:i}=Cm(),{closeFilter:l}=ti();return bm(()=>{o&&o(i)},[i]),et(eo,{...n,drawerTitle:t,open:a,children:r,onClose:()=>l(),actions:et(Pm,{})})};function ri(e){let{triggerButtonLabel:t,triggerButtonProps:r,triggerButton:o,title:n,children:a,onApplyFilters:i,renderLabel:l,disableds:s,disableFilterControl:c,drawerProps:u}=e,{openFilter:d}=ti(),f=o==="none"?null:o||et(ei,{variant:"contained",onClick:()=>{d()},...r,children:t||"Adicionar"});return mr(Im,{children:[c&&f,!c&&mr(Sm,{sx:{display:"flex",direction:"row",justifyContent:"flex-end",alignItems:"center",alignContent:"center"},children:[et(Xr,{renderLabel:l,disableds:s}),f]}),et(km,{...u,onApplyFilters:i,title:n||"",children:a})]})}ri.defaultProps={triggerButtonLabel:"Aplicar",triggerButtonProps:{variant:"contained",startIcon:et(yc,{})},title:"Aplicar"};import{Circle as Em}from"@mui/icons-material";import{jsx as Am}from"react/jsx-runtime";function xc(e){let{isFlagged:t,type:r}=e;return t?Am(Em,{color:r,sx:{fontSize:"10pt"}}):null}import{Box as gu,Divider as gh,styled as hh,Typography as yh}from"@mui/material";function Bt(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}import Ym from"@emotion/styled";function vc(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Cc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Mm=!1,Dm=/[A-Z]|^ms/g,Fm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pc=function(t){return t.charCodeAt(1)===45},wc=function(t){return t!=null&&typeof t!="boolean"},oi=Cc(function(e){return Pc(e)?e:e.replace(Dm,"-$&").toLowerCase()}),Sc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Fm,function(o,n,a){return Le={name:n,styles:a,next:Le},n})}return bc[t]!==1&&!Pc(t)&&typeof r=="number"&&r!==0?r+"px":r},Rm="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gr(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Le={name:n.name,styles:n.styles,next:Le},n.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Le={name:i.name,styles:i.styles,next:Le},i=i.next;var l=a.styles+";";return l}return Om(e,t,r)}case"function":{if(e!==void 0){var s=Le,c=r(e);return Le=s,gr(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Om(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=gr(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?o+=a+"{"+t[l]+"}":wc(l)&&(o+=oi(a)+":"+Sc(a,l)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Mm)throw new Error(Rm);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)wc(i[s])&&(o+=oi(a)+":"+Sc(a,i[s])+";");else{var c=gr(e,t,i);switch(a){case"animation":case"animationName":{o+=oi(a)+":"+c+";";break}default:o+=a+"{"+c+"}"}}}}return o}var Tc=/label:\s*([^\s;{]+)\s*(;|$)/g,Le;function kc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";Le=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,n+=gr(r,t,a);else{var i=a;n+=i[0]}for(var l=1;l<e.length;l++)if(n+=gr(r,t,e[l]),o){var s=a;n+=s[l]}Tc.lastIndex=0;for(var c="",u;(u=Tc.exec(n))!==null;)c+="-"+u[1];var d=vc(n)+c;return{name:d,styles:n,next:Le}}import{ThemeContext as Qc,keyframes as K2,css as Z2}from"@emotion/react";function fi(e,t){let r=Ym(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
3
+ `)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...o)}:r}function Zc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Kc=[];function We(e){return Kc[0]=e,kc(Kc)}var vi=Xe(yi(),1);import*as xi from"react";function $e(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function eu(e){if(xi.isValidElement(e)||(0,vi.isValidElementType)(e)||!$e(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=eu(e[r])}),t}function Te(e,t,r={clone:!0}){let o=r.clone?{...e}:e;return $e(e)&&$e(t)&&Object.keys(t).forEach(n=>{xi.isValidElement(t[n])||(0,vi.isValidElementType)(t[n])?o[n]=t[n]:$e(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&$e(e[n])?o[n]=Te(e[n],t[n],r):r.clone?o[n]=$e(t[n])?eu(t[n]):t[n]:o[n]=t[n]}),o}var Qm=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>({...r,[o.key]:o.val}),{})};function bi(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...n}=e,a=Qm(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-o/100}${r})`}function c(f,m){let g=i.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-o/100}${r})`}function u(f){return i.indexOf(f)+1<i.length?c(f,i[i.indexOf(f)+1]):l(f)}function d(f){let m=i.indexOf(f);return m===0?l(i[1]):m===i.length-1?s(i[m]):c(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:l,down:s,between:c,only:u,not:d,unit:r,...n}}function ko(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,n)=>{let a=/min-width:\s*([0-9.]+)/;return+(o.match(a)?.[1]||0)-+(n.match(a)?.[1]||0)});return r.length?r.reduce((o,n)=>{let a=t[n];return delete o[n],o[n]=a,o},{...t}):t}function Ci(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function wi(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
4
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Bt(18,`(${t})`));return null}let[,o,n]=r,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(n).up(a)}function Io(e){let t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{let s=t(e.breakpoints.not(...l),i);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}let o={},n=a=>(r(o,a),o);return r(n),{...e,containerQueries:n}}var Jm={borderRadius:4},tu=Jm;var $t=Xe(go(),1),Xm=process.env.NODE_ENV!=="production"?$t.default.oneOfType([$t.default.number,$t.default.string,$t.default.object,$t.default.array]):{},ye=Xm;function eg(e,t){return t?Te(e,t,{clone:!1}):e}var Ge=eg;var hr={xs:0,sm:600,md:900,lg:1200,xl:1536},ru={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hr[e]}px)`},tg={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:hr[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ee(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let a=o.breakpoints||ru;return t.reduce((i,l,s)=>(i[a.up(a.keys[s])]=r(t[s]),i),{})}if(typeof t=="object"){let a=o.breakpoints||ru;return Object.keys(t).reduce((i,l)=>{if(Ci(a.keys,l)){let s=wi(o.containerQueries?o:tg,l);s&&(i[s]=r(t[l],l))}else if(Object.keys(a.values||hr).includes(l)){let s=a.up(l);i[s]=r(t[l],l)}else{let s=l;i[s]=t[s]}return i},{})}return r(t)}function Si(e={}){return e.keys?.reduce((r,o)=>{let n=e.up(o);return r[n]={},r},{})||{}}function Eo(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function ou(e,...t){let r=Si(e),o=[r,...t].reduce((n,a)=>Te(n,a),{});return Eo(Object.keys(r),o)}function rg(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,a)=>{a<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function Ao({values:e,breakpoints:t,base:r}){let o=r||rg(e,t),n=Object.keys(o);if(n.length===0)return e;let a;return n.reduce((i,l,s)=>(Array.isArray(e)?(i[l]=e[s]!=null?e[s]:e[a],a=s):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function tt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Nt(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function yr(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=Nt(e,r)||o,t&&(n=t(n,o,e)),n}function og(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,a=i=>{if(i[t]==null)return null;let l=i[t],s=i.theme,c=Nt(s,o)||{};return ee(i,l,d=>{let f=yr(c,n,d);return d===f&&typeof d=="string"&&(f=yr(c,n,`${t}${d==="default"?"":tt(d)}`,d)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:ye}:{},a.filterProps=[t],a}var U=og;function Mo(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var ng={m:"margin",p:"padding"},ig={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ag=Mo(e=>{if(e.length>2)if(nu[e])e=nu[e];else return[e];let[t,r]=e.split(""),o=ng[t],n=ig[r]||"";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),Do=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ti=[...Do,...Fo];function ut(e,t,r,o){let n=Nt(e,t,!0)??r;return typeof n=="number"||typeof n=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof n=="string"?n.startsWith("var(")&&a===0?0:n.startsWith("var(")&&a===1?n:`calc(${a} * ${n})`:n*a):Array.isArray(n)?a=>{if(typeof a=="string")return a;let i=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>n.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${i} > ${n.length-1}, you need to add the missing values.`].join(`
5
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
6
+ `)));let l=n[i];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
7
+ `)),()=>{})}function xr(e){return ut(e,"spacing",8,"spacing")}function Ne(e,t){return typeof t=="string"||t==null?t:e(t)}function sg(e,t){return r=>e.reduce((o,n)=>(o[n]=Ne(t,r),o),{})}function lg(e,t,r,o){if(!t.includes(r))return null;let n=ag(r),a=sg(n,o),i=e[r];return ee(e,i,a)}function Pi(e,t){let r=xr(e.theme);return Object.keys(e).map(o=>lg(e,t,o,r)).reduce(Ge,{})}function K(e){return Pi(e,Do)}K.propTypes=process.env.NODE_ENV!=="production"?Do.reduce((e,t)=>(e[t]=ye,e),{}):{};K.filterProps=Do;function Z(e){return Pi(e,Fo)}Z.propTypes=process.env.NODE_ENV!=="production"?Fo.reduce((e,t)=>(e[t]=ye,e),{}):{};Z.filterProps=Fo;function iu(e){return Pi(e,Ti)}iu.propTypes=process.env.NODE_ENV!=="production"?Ti.reduce((e,t)=>(e[t]=ye,e),{}):{};iu.filterProps=Ti;function ki(e=8,t=xr({spacing:e})){if(e.mui)return e;let r=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(a=>{let i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function cg(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),r=o=>Object.keys(o).reduce((n,a)=>t[a]?Ge(n,t[a](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var He=cg;function xe(e){return typeof e!="number"?e:`${e}px solid`}function Pe(e,t){return U({prop:e,themeKey:"borders",transform:t})}var ug=Pe("border",xe),pg=Pe("borderTop",xe),dg=Pe("borderRight",xe),fg=Pe("borderBottom",xe),mg=Pe("borderLeft",xe),gg=Pe("borderColor"),hg=Pe("borderTopColor"),yg=Pe("borderRightColor"),xg=Pe("borderBottomColor"),vg=Pe("borderLeftColor"),bg=Pe("outline",xe),Cg=Pe("outlineColor"),vr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ut(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Ne(t,o)});return ee(e,e.borderRadius,r)}return null};vr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ye}:{};vr.filterProps=["borderRadius"];var Jk=He(ug,pg,dg,fg,mg,gg,hg,yg,xg,vg,vr,bg,Cg);var br=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ut(e.theme,"spacing",8,"gap"),r=o=>({gap:Ne(t,o)});return ee(e,e.gap,r)}return null};br.propTypes=process.env.NODE_ENV!=="production"?{gap:ye}:{};br.filterProps=["gap"];var Cr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ut(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Ne(t,o)});return ee(e,e.columnGap,r)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ye}:{};Cr.filterProps=["columnGap"];var wr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ut(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Ne(t,o)});return ee(e,e.rowGap,r)}return null};wr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ye}:{};wr.filterProps=["rowGap"];var wg=U({prop:"gridColumn"}),Sg=U({prop:"gridRow"}),Tg=U({prop:"gridAutoFlow"}),Pg=U({prop:"gridAutoColumns"}),kg=U({prop:"gridAutoRows"}),Ig=U({prop:"gridTemplateColumns"}),Eg=U({prop:"gridTemplateRows"}),Ag=U({prop:"gridTemplateAreas"}),Mg=U({prop:"gridArea"}),iI=He(br,Cr,wr,wg,Sg,Tg,Pg,kg,Ig,Eg,Ag,Mg);function pt(e,t){return t==="grey"?t:e}var Dg=U({prop:"color",themeKey:"palette",transform:pt}),Fg=U({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pt}),Rg=U({prop:"backgroundColor",themeKey:"palette",transform:pt}),cI=He(Dg,Fg,Rg);function de(e){return e<=1&&e!==0?`${e*100}%`:e}var Og=U({prop:"width",transform:de}),Ro=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{let o=e.theme?.breakpoints?.values?.[r]||hr[r];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:de(r)}};return ee(e,e.maxWidth,t)}return null};Ro.filterProps=["maxWidth"];var Bg=U({prop:"minWidth",transform:de}),_g=U({prop:"height",transform:de}),Lg=U({prop:"maxHeight",transform:de}),$g=U({prop:"minHeight",transform:de}),mI=U({prop:"size",cssProperty:"width",transform:de}),gI=U({prop:"size",cssProperty:"height",transform:de}),Ng=U({prop:"boxSizing"}),hI=He(Og,Ro,Bg,_g,Lg,$g,Ng);var Vg={border:{themeKey:"borders",transform:xe},borderTop:{themeKey:"borders",transform:xe},borderRight:{themeKey:"borders",transform:xe},borderBottom:{themeKey:"borders",transform:xe},borderLeft:{themeKey:"borders",transform:xe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vr},color:{themeKey:"palette",transform:pt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pt},backgroundColor:{themeKey:"palette",transform:pt},p:{style:Z},pt:{style:Z},pr:{style:Z},pb:{style:Z},pl:{style:Z},px:{style:Z},py:{style:Z},padding:{style:Z},paddingTop:{style:Z},paddingRight:{style:Z},paddingBottom:{style:Z},paddingLeft:{style:Z},paddingX:{style:Z},paddingY:{style:Z},paddingInline:{style:Z},paddingInlineStart:{style:Z},paddingInlineEnd:{style:Z},paddingBlock:{style:Z},paddingBlockStart:{style:Z},paddingBlockEnd:{style:Z},m:{style:K},mt:{style:K},mr:{style:K},mb:{style:K},ml:{style:K},mx:{style:K},my:{style:K},margin:{style:K},marginTop:{style:K},marginRight:{style:K},marginBottom:{style:K},marginLeft:{style:K},marginX:{style:K},marginY:{style:K},marginInline:{style:K},marginInlineStart:{style:K},marginInlineEnd:{style:K},marginBlock:{style:K},marginBlockStart:{style:K},marginBlockEnd:{style:K},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:br},rowGap:{style:wr},columnGap:{style:Cr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:de},maxWidth:{style:Ro},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Vt=Vg;function zg(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function Wg(e,t){return typeof e=="function"?e(t):e}function Gg(){function e(r,o,n,a){let i={[r]:o,theme:n},l=a[r];if(!l)return{[r]:o};let{cssProperty:s=r,themeKey:c,transform:u,style:d}=l;if(o==null)return null;if(c==="typography"&&o==="inherit")return{[r]:o};let f=Nt(n,c)||{};return d?d(i):ee(i,o,g=>{let p=yr(f,u,g);return g===p&&typeof g=="string"&&(p=yr(f,u,`${r}${g==="default"?"":tt(g)}`,g)),s===!1?p:{[s]:p}})}function t(r){let{sx:o,theme:n={},nested:a}=r||{};if(!o)return null;let i=n.unstable_sxConfig??Vt;function l(s){let c=s;if(typeof s=="function")c=s(n);else if(typeof s!="object")return s;if(!c)return null;let u=Si(n.breakpoints),d=Object.keys(u),f=u;return Object.keys(c).forEach(m=>{let g=Wg(c[m],n);if(g!=null)if(typeof g=="object")if(i[m])f=Ge(f,e(m,g,n,i));else{let p=ee({theme:n},g,y=>({[m]:y}));zg(p,g)?f[m]=t({sx:g,theme:n,nested:!0}):f=Ge(f,p)}else f=Ge(f,e(m,g,n,i))}),!a&&n.modularCssLayers?{"@layer sx":ko(n,Eo(d,f))}:ko(n,Eo(d,f))}return Array.isArray(o)?o.map(l):l(o)}return t}var au=Gg();au.filterProps=["sx"];var zt=au;function Ii(e,t){let r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function Hg(e={},...t){let{breakpoints:r={},palette:o={},spacing:n,shape:a={},...i}=e,l=bi(r),s=ki(n),c=Te({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...tu,...a}},i);return c=Io(c),c.applyStyles=Ii,c=t.reduce((u,d)=>Te(u,d),c),c.unstable_sxConfig={...Vt,...i?.unstable_sxConfig},c.unstable_sx=function(d){return zt({sx:d,theme:this})},c}var dt=Hg;import*as su from"react";function Ug(e){return Object.keys(e).length===0}function jg(e=null){let t=su.useContext(Qc);return!t||Ug(t)?e:t}var Ei=jg;var qg=dt();function Yg(e=qg){return Ei(e)}var Ai=Yg;var Kg=e=>{let t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Vt;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Oo(e){let{sx:t,...r}=e,{systemProps:o,otherProps:n}=Kg(r),a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...i)=>{let l=t(...i);return $e(l)?{...o,...l}:o}:a={...o,...t},{...n,sx:a}}var lu=e=>e,Zg=()=>{let e=lu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=lu}}},Qg=Zg(),Mi=Qg;function cu(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=cu(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Jg(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=cu(e))&&(o&&(o+=" "),o+=t);return o}var Bo=Jg;var Xg={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _o(e,t,r="Mui"){let o=Xg[t];return o?`${r}-${o}`:`${Mi.generate(e)}-${t}`}var Lo=Xe(yi(),1);function pu(e,t=""){return e.displayName||e.name||t}function uu(e,t,r){let o=pu(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function $o(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lo.ForwardRef:return uu(e,e.render,"ForwardRef");case Lo.Memo:return uu(e,e.type,"memo");default:return}}}function Di(e){let{variants:t,...r}=e,o={variants:t,style:We(r),isProcessed:!0};return o.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=We(n.style))}),o}var eh=dt();function Fi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ft(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function th(e){return e?(t,r)=>r[e]:null}function rh(e,t,r){e.theme=ih(e.theme)?r:e.theme[t]||e.theme}function No(e,t,r){let o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(n=>No(e,n,r));if(Array.isArray(o?.variants)){let n;if(o.isProcessed)n=r?ft(o.style,r):o.style;else{let{variants:a,...i}=o;n=r?ft(We(i),r):i}return du(e,o.variants,[n],r)}return o?.isProcessed?r?ft(We(o.style),r):o.style:r?ft(We(o),r):o}function du(e,t,r=[],o=void 0){let n;e:for(let a=0;a<t.length;a+=1){let i=t[a];if(typeof i.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(n))continue}else for(let l in i.props)if(e[l]!==i.props[l]&&e.ownerState?.[l]!==i.props[l])continue e;typeof i.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(o?ft(We(i.style(n)),o):i.style(n))):r.push(o?ft(We(i.style),o):i.style)}return r}function Vo(e={}){let{themeId:t,defaultTheme:r=eh,rootShouldForwardProp:o=Fi,slotShouldForwardProp:n=Fi}=e;function a(l){rh(l,t,r)}return(l,s={})=>{Zc(l,k=>k.filter(P=>P!==zt));let{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=th(fu(u)),...g}=s,p=c&&c.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=f||!1,x=Fi;u==="Root"||u==="root"?x=o:u?x=n:ah(l)&&(x=void 0);let S=fi(l,{shouldForwardProp:x,label:nh(c,u),...g}),w=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(Q){return No(Q,k,Q.theme.modularCssLayers?p:void 0)};if($e(k)){let P=Di(k);return function($){return P.variants?No($,P,$.theme.modularCssLayers?p:void 0):$.theme.modularCssLayers?ft(P.style,p):P.style}}return k},C=(...k)=>{let P=[],Q=k.map(w),$=[];if(P.push(a),c&&m&&$.push(function(h){let I=h.theme.components?.[c]?.styleOverrides;if(!I)return null;let M={};for(let A in I)M[A]=No(h,I[A],h.theme.modularCssLayers?"theme":void 0);return m(h,M)}),c&&!y&&$.push(function(h){let I=h.theme?.components?.[c]?.variants;return I?du(h,I,[],h.theme.modularCssLayers?"theme":void 0):null}),v||$.push(zt),Array.isArray(Q[0])){let le=Q.shift(),h=new Array(P.length).fill(""),b=new Array($.length).fill(""),I;I=[...h,...le,...b],I.raw=[...h,...le.raw,...b],P.unshift(I)}let se=[...P,...Q,...$],E=S(...se);return l.muiName&&(E.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(E.displayName=oh(c,u,l)),E};return S.withConfig&&(C.withConfig=S.withConfig),C}}function oh(e,t,r){return e?`${e}${tt(t||"")}`:`Styled(${$o(r)})`}function nh(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${fu(t||"Root")}`),r}function ih(e){for(let t in e)return!1;return!0}function ah(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var sh=Vo(),Ri=sh;function Sr(e,t,r=!1){let o={...t};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let a=n;if(a==="components"||a==="slots")o[a]={...e[a],...o[a]};else if(a==="componentsProps"||a==="slotProps"){let i=e[a],l=t[a];if(!l)o[a]=i||{};else if(!i)o[a]=l;else{o[a]={...l};for(let s in i)if(Object.prototype.hasOwnProperty.call(i,s)){let c=s;o[a][c]=Sr(i[c],l[c],r)}}}else a==="className"&&r&&t.className?o.className=Bo(e?.className,t?.className):a==="style"&&r&&t.style?o.style={...e?.style,...t?.style}:o[a]===void 0&&(o[a]=e[a])}return o}function Oi(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Sr(t.components[r].defaultProps,o)}function zo({props:e,name:t,defaultTheme:r,themeId:o}){let n=Ai(r);return o&&(n=n[o]||n),Oi({theme:n,name:t,props:e})}function Wo(e,t,r=void 0){let o={};for(let n in e){let a=e[n],i="",l=!0;for(let s=0;s<a.length;s+=1){let c=a[s];c&&(i+=(l===!0?"":" ")+t(c),l=!1,r&&r[c]&&(i+=" "+r[c]))}o[n]=i}return o}var j=Xe(go(),1);var Y=Xe(go(),1);import*as Wt from"react";import{jsx as lh}from"react/jsx-runtime";var ch=dt(),uh=Ri("div",{name:"MuiStack",slot:"Root"});function ph(e){return zo({props:e,name:"MuiStack",defaultTheme:ch})}function dh(e,t){let r=Wt.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a<r.length-1&&o.push(Wt.cloneElement(t,{key:`separator-${a}`})),o),[])}var fh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],mh=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...ee({theme:t},Ao({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o}))};if(e.spacing){let o=xr(t),n=Object.keys(t.breakpoints.values).reduce((s,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(s[c]=!0),s),{}),a=Ao({values:e.direction,base:n}),i=Ao({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((s,c,u)=>{if(!a[s]){let f=c>0?a[u[c-1]]:"column";a[s]=f}}),r=Te(r,ee({theme:t},i,(s,c)=>e.useFlexGap?{gap:Ne(o,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fh(c?a[c]:e.direction)}`]:Ne(o,s)}}))}return r=ou(t.breakpoints,r),r};function Bi(e={}){let{createStyledComponent:t=uh,useThemeProps:r=ph,componentName:o="MuiStack"}=e,n=()=>Wo({root:["root"]},s=>_o(o,s),{}),a=t(mh),i=Wt.forwardRef(function(s,c){let u=r(s),d=Oo(u),{component:f="div",direction:m="column",spacing:g=0,divider:p,children:y,className:v,useFlexGap:x=!1,...S}=d,w={direction:m,spacing:g,useFlexGap:x},C=n();return lh(a,{as:f,ownerState:w,ref:c,className:Bo(C.root,v),...S,children:p?dh(y,p):y})});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:Y.default.node,direction:Y.default.oneOfType([Y.default.oneOf(["column-reverse","column","row-reverse","row"]),Y.default.arrayOf(Y.default.oneOf(["column-reverse","column","row-reverse","row"])),Y.default.object]),divider:Y.default.node,spacing:Y.default.oneOfType([Y.default.arrayOf(Y.default.oneOfType([Y.default.number,Y.default.string])),Y.default.number,Y.default.object,Y.default.string]),sx:Y.default.oneOfType([Y.default.arrayOf(Y.default.oneOfType([Y.default.func,Y.default.object,Y.default.bool])),Y.default.func,Y.default.object])}),i}var mu=Bi();process.env.NODE_ENV!=="production"&&(mu.propTypes={children:j.default.node,component:j.default.elementType,direction:j.default.oneOfType([j.default.oneOf(["column-reverse","column","row-reverse","row"]),j.default.arrayOf(j.default.oneOf(["column-reverse","column","row-reverse","row"])),j.default.object]),divider:j.default.node,spacing:j.default.oneOfType([j.default.arrayOf(j.default.oneOfType([j.default.number,j.default.string])),j.default.number,j.default.object,j.default.string]),sx:j.default.oneOfType([j.default.arrayOf(j.default.oneOfType([j.default.func,j.default.object,j.default.bool])),j.default.func,j.default.object]),useFlexGap:j.default.bool});var Go=mu;import{jsx as Ho,jsxs as hu}from"react/jsx-runtime";var xh=hh(yh)(({theme:e})=>({fontWeight:"bold"}));function yu(e){let{label:t,children:r,labelProps:o,contentProps:n,isNumber:a,showDivider:i}=e;return hu(gu,{sx:{display:"flex",gap:4},children:[hu(gu,{children:[Ho(Go,{children:Ho(xh,{...o,children:t})}),Ho(Go,{direction:a?"row":"column",justifyContent:a?"flex-end":"center",children:r})]}),i&&Ho(gh,{orientation:"vertical",flexItem:!0})]})}import{useEffect as vu,useRef as Rh,useState as bu}from"react";import{Box as Cu,IconButton as wu,Stack as Oh,Typography as Bh,useMediaQuery as _h,Toolbar as Lh}from"@mui/material";import{ArrowBack as $h,Close as Nh}from"@mui/icons-material";import{Cancel as vh,Edit as bh,Save as Ch}from"@mui/icons-material";import{Stack as wh,TextField as Sh,Typography as Th,IconButton as xu,ClickAwayListener as Ph,InputAdornment as kh,CircularProgress as Ih}from"@mui/material";import{useEffect as _i,useState as Li}from"react";import{Fragment as Eh,jsx as Ue,jsxs as $i}from"react/jsx-runtime";function Uo(e){let{typographyProps:t,onChange:r,onEscape:o,value:n,displayEditButton:a,displaySaveButton:i,textFieldProps:l,isEditing:s,isLoading:c,error:u}=e,{InputProps:d,value:f,onKeyDown:m,onChange:g,...p}=l||{},[y,v]=Li(!1),[x,S]=Li(!1),[w,C]=Li();return _i(()=>{C(n)},[n]),_i(()=>{v(!!s)},[s]),_i(()=>{u&&S(!0)},[u]),$i(Eh,{children:[!y&&!c&&!x&&$i(wh,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[Ue(Th,{onClick:()=>{v(!0)},...t,children:w}),a&&Ue(xu,{onClick:()=>{v(!0)},children:Ue(bh,{})})]}),(y||c||x)&&Ue(Ph,{onClickAway:()=>v(!1),children:Ue(Sh,{disabled:c,autoFocus:!0,value:w,error:x,onKeyDown:k=>{k.key==="Enter"&&(r(w),v(!1)),k.key==="Escape"&&(C(n),v(!1),S(!1),o&&o(n,w))},onChange:k=>{let P=k.target.value;C(P)},InputProps:{endAdornment:$i(kh,{position:"end",children:[c&&Ue(Ih,{size:18}),i&&Ue(xu,{onClick:()=>{n!=w&&r(w),v(!1)},edge:"end",children:n!=w?Ue(Ch,{}):Ue(vh,{})})]})},...p})})]})}import{InputAdornment as Ah,TextField as Mh}from"@mui/material";import{Search as Dh}from"@mui/icons-material";import Fh from"lodash";import{jsx as Ni}from"react/jsx-runtime";function Gt(e){let{onSearch:t,...r}=e,o=Fh.debounce(a=>t(a),500);function n(a){let i=a.target.value;o(i)}return Ni(Mh,{onChange:n,autoFocus:!0,InputProps:{startAdornment:Ni(Ah,{position:"start",children:Ni(Dh,{})})},...r})}import{jsx as rt,jsxs as Vi}from"react/jsx-runtime";function Su(e){let{title:t,children:r,onBack:o,onClose:n,onUpdate:a,onSearch:i,storagePath:l,toolbarProps:s}=e,[c,u]=bu(!1),[d,f]=bu("");vu(()=>{f(t)},[t]);let m=Rh(null);vu(()=>{if(i&&l){let v=localStorage.getItem(l);m.current&&(m.current.value=v),i(v||"")}},[l]);let g=_h(v=>v.breakpoints.down("sm"));function p(v){l&&localStorage.setItem(l,v),i&&i(v)}let y={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return rt(Lh,{...s,children:Vi(Cu,{sx:{display:"flex",flexDirection:g||n?"column":"row",justifyContent:"space-between",alignContent:"center",alignItems:"center",flexGrow:1},children:[Vi(Cu,{sx:{display:"flex",alignItems:"center",flexDirection:"row"},children:[o&&rt(wu,{sx:{mr:1},onClick:o,children:rt($h,{})}),a&&rt(Uo,{typographyProps:y,value:d,onChange:v=>{a&&a(v)}}),!a&&rt(Bh,{...y,children:t})]}),n&&rt(wu,{sx:{marginLeft:"auto"},onClick:n,children:rt(Nh,{fontSize:"medium"})}),Vi(Oh,{spacing:1,direction:"row",children:[i&&rt(Gt,{inputRef:m,autoFocus:!0,onSearch:p}),r]})]})})}import{Stack as dn,Typography as A0,useMediaQuery as M0,useTheme as D0}from"@mui/material";import{Stack as Vh,useMediaQuery as zh,useTheme as Wh}from"@mui/material";import{jsx as Gh}from"react/jsx-runtime";function zi(e){let{children:t}=e,r=Wh(),o=zh(r.breakpoints.up("md"));return Gh(Vh,{component:"section",display:o?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{},children:t})}import{Box as x0,Stack as v0,useMediaQuery as b0,useTheme as C0}from"@mui/material";import{Stack as Hh,Typography as Tu}from"@mui/material";import{jsx as Pu,jsxs as Uh}from"react/jsx-runtime";function Wi(e){let{label:t,subTitle:r="Acesse sua conta"}=e;return Uh(Hh,{component:"header",textAlign:"center",marginBottom:"3rem",children:[Pu(Tu,{component:"h2",fontSize:"2rem",fontWeight:"bold",variant:"body1",fontFamily:"Montserrat",sx:{color:o=>o.palette.primary.dark},children:t}),Pu(Tu,{component:"h3",fontSize:"1.25rem",fontFamily:"Montserrat",color:"primary",variant:"body1",children:r})]})}import{useState as Jt}from"react";import{Alert as lp,Divider as cp,Stack as ln,TextField as Dx,Typography as Fx}from"@mui/material";import{isAxiosError as Rx}from"axios";import{useValidations as Ox,useCredentials as Bx}from"@data-c/hooks";var ke=Xe(Du()),Tr=Xe(Ou()),zu=Xe(_u()),cy=Object.prototype.toString,uy=Error.prototype.toString,py=RegExp.prototype.toString,dy=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",fy=/^Symbol\((.*)\)(.*)$/;function my(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Lu(e,t=!1){if(e==null||e===!0||e===!1)return""+e;let r=typeof e;if(r==="number")return my(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return dy.call(e).replace(fy,"Symbol($1)");let o=cy.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+uy.call(e)+"]":o==="RegExp"?py.call(e):null}function qe(e,t){let r=Lu(e,t);return r!==null?r:JSON.stringify(e,function(o,n){let a=Lu(this[o],t);return a!==null?a:n},2)}function Wu(e){return e==null?[]:[].concat(e)}var Gu,Hu,Uu,gy=/\$\{\s*(\w+)\s*\}/g;Gu=Symbol.toStringTag;var Jo=class{constructor(t,r,o,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Gu]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],Wu(t).forEach(a=>{if(te.isError(a)){this.errors.push(...a.errors);let i=a.inner.length?a.inner:[a];this.inner.push(...i)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};Hu=Symbol.hasInstance;Uu=Symbol.toStringTag;var te=class extends Error{static formatError(t,r){let o=r.label||r.path||"this";return r=Object.assign({},r,{path:o,originalPath:r.path}),typeof t=="string"?t.replace(gy,(n,a)=>qe(r[a])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,o,n,a){let i=new Jo(t,r,o,n);if(a)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Uu]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,te)}static[Hu](t){return Jo[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},Ve={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:o})=>{let n=o!=null&&o!==r?` (cast from the value \`${qe(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${qe(r,!0)}\``+n:`${e} must match the configured type. The validated value was: \`${qe(r,!0)}\``+n}},fe={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ot={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ki={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Zi={isValue:"${path} field must be ${value}"},Ko={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Zo={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},ju={notType:e=>{let{path:t,value:r,spec:o}=e,n=o.types.length;if(Array.isArray(r)){if(r.length<n)return`${t} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${qe(r,!0)}\``;if(r.length>n)return`${t} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${qe(r,!0)}\``}return te.formatError(Ve.notType,e)}},gM=Object.assign(Object.create(null),{mixed:Ve,string:fe,number:ot,date:Ki,object:Ko,array:Zo,boolean:Zi,tuple:ju}),sn=e=>e&&e.__isYupSchema__,jt=class{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:n,otherwise:a}=r,i=typeof o=="function"?o:(...l)=>l.every(s=>s===o);return new jt(t,(l,s)=>{var c;let u=i(...l)?n:a;return(c=u?.(s))!=null?c:s})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let o=this.refs.map(a=>a.getValue(r?.value,r?.parent,r?.context)),n=this.fn(o,t,r);if(n===void 0||n===t)return t;if(!sn(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},Yo={context:"$",value:"."};var Ye=class{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Yo.context,this.isValue=this.key[0]===Yo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Yo.context:this.isValue?Yo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,ke.getter)(this.path,!0),this.map=r.map}getValue(t,r,o){let n=this.isContext?o:this.isValue?t:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(t,r){return this.getValue(t,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}};Ye.prototype.__isYupRef=!0;var Me=e=>e==null;function Ht(e){function t({value:r,path:o="",options:n,originalValue:a,schema:i},l,s){let{name:c,test:u,params:d,message:f,skipAbsent:m}=e,{parent:g,context:p,abortEarly:y=i.spec.abortEarly,disableStackTrace:v=i.spec.disableStackTrace}=n,x={value:r,parent:g,context:p};function S(E={}){let le=qu(Object.assign({value:r,originalValue:a,label:i.spec.label,path:E.path||o,spec:i.spec,disableStackTrace:E.disableStackTrace||v},d,E.params),x),h=new te(te.formatError(E.message||f,le),r,le.path,E.type||c,le.disableStackTrace);return h.params=le,h}let w=y?l:s,C={path:o,parent:g,type:c,from:n.from,createError:S,resolve(E){return Yu(E,x)},options:n,originalValue:a,schema:i},k=E=>{te.isError(E)?w(E):E?s(null):w(S())},P=E=>{te.isError(E)?w(E):l(E)};if(m&&Me(r))return k(!0);let $;try{var se;if($=u.call(C,r,C),typeof((se=$)==null?void 0:se.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(k,P)}}catch(E){P(E);return}k($)}return t.OPTIONS=e,t}function qu(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=Yu(e[r],t);return e}function Yu(e,t){return Ye.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function hy(e,t,r,o=r){let n,a,i;return t?((0,ke.forEach)(t,(l,s,c)=>{let u=s?l.slice(1,l.length-1):l;e=e.resolve({context:o,parent:n,value:r});let d=e.type==="tuple",f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${i}" must contain an index to the tuple element, e.g. "${i}[0]"`);if(r&&f>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);n=r,r=r&&r[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: "${e.type}")`);n=r,r=r&&r[u],e=e.fields[u]}a=u,i=s?"["+l+"]":"."+l}),{schema:e,parent:n,parentPath:a}):{parent:n,parentPath:t,schema:e}}var qt=class extends Set{describe(){let t=[];for(let r of this.values())t.push(Ye.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(let o of this.values())r.push(t(o));return r}clone(){return new qt(this.values())}merge(t,r){let o=this.clone();return t.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function Ut(e,t=new Map){if(sn(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let o=0;o<e.length;o++)r[o]=Ut(e[o],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(let[o,n]of e.entries())r.set(o,Ut(n,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let o of e)r.add(Ut(o,t))}else if(e instanceof Object){r={},t.set(e,r);for(let[o,n]of Object.entries(e))r[o]=Ut(n,t)}else throw Error(`Unable to clone ${e}`);return r}function yy(e){if(!(e!=null&&e.length))return;let t=[],r="",o=!1,n=!1;for(let a=0;a<e.length;a++){let i=e[a];if(i==="["&&!n){r&&(t.push(...r.split(".").filter(Boolean)),r=""),o=!0;continue}if(i==="]"&&!n){r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),o=!1;continue}if(i==='"'){n=!n;continue}if(i==="."&&!o&&!n){r&&(t.push(r),r="");continue}r+=i}return r&&t.push(...r.split(".").filter(Boolean)),t}function xy(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(o=>({message:o,path:yy(r)}))}function Ku(e,t){var r;if(!((r=e.inner)!=null&&r.length)&&e.errors.length)return xy(e,t);let o=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(n=>Ku(n,o))}var re=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new qt,this._blacklist=new qt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ve.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t?.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;let r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Ut(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=r,o}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,o=t.clone(),n=Object.assign({},r.spec,o.spec);return o.spec=n,o.internalTests=Object.assign({},r.internalTests,o.internalTests),o._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),o.tests=r.tests,o.exclusiveTests=r.exclusiveTests,o.withMutation(a=>{t.tests.forEach(i=>{a.test(i.OPTIONS)})}),o.transforms=[...r.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let o=r.conditions;r=r.clone(),r.conditions=[],r=o.reduce((n,a)=>a.resolve(n,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,o,n,a;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(n=t.recursive)!=null?n:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,r={}){let o=this.resolve(Object.assign({},r,{value:t})),n=r.assert==="ignore-optionality",a=o._cast(t,r);if(r.assert!==!1&&!o.isType(a)){if(n&&Me(a))return a;let i=qe(t),l=qe(a);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
8
+
9
+ attempted value: ${i}
10
+ `+(l!==i?`result of cast: ${l}`:""))}return a}_cast(t,r){let o=t===void 0?t:this.transforms.reduce((n,a)=>a.call(this,n,t,this,r),t);return o===void 0&&(o=this.getDefault(r)),o}_validate(t,r={},o,n){let{path:a,originalValue:i=t,strict:l=this.spec.strict}=r,s=t;l||(s=this._cast(s,Object.assign({assert:!1},r)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:a,value:s,originalValue:i,options:r,tests:c},o,u=>{if(u.length)return n(u,s);this.runTests({path:a,value:s,originalValue:i,options:r,tests:this.tests},o,n)})}runTests(t,r,o){let n=!1,{tests:a,value:i,originalValue:l,path:s,options:c}=t,u=p=>{n||(n=!0,r(p,i))},d=p=>{n||(n=!0,o(p,i))},f=a.length,m=[];if(!f)return d([]);let g={value:i,originalValue:l,path:s,options:c,schema:this};for(let p=0;p<a.length;p++){let y=a[p];y(g,u,function(x){x&&(Array.isArray(x)?m.push(...x):m.push(x)),--f<=0&&d(m)})}}asNestedTest({key:t,index:r,parent:o,parentPath:n,originalParent:a,options:i}){let l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");let s=typeof l=="number",c=o[l],u=Object.assign({},i,{strict:!0,parent:o,value:c,originalValue:a[l],key:void 0,[s?"index":"key"]:l,path:s||l.includes(".")?`${n||""}[${s?l:`"${l}"`}]`:(n?`${n}.`:"")+t});return(d,f,m)=>this.resolve(u)._validate(c,u,f,m)}validate(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),a=(o=r?.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((i,l)=>n._validate(t,r,(s,c)=>{te.isError(s)&&(s.value=c),l(s)},(s,c)=>{s.length?l(new te(s,c,void 0,void 0,a)):i(c)}))}validateSync(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),a,i=(o=r?.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(t,Object.assign({},r,{sync:!0}),(l,s)=>{throw te.isError(l)&&(l.value=s),l},(l,s)=>{if(l.length)throw new te(l,t,void 0,void 0,i);a=s}),a}isValid(t,r){return this.validate(t,r).then(()=>!0,o=>{if(te.isError(o))return!1;throw o})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(o){if(te.isError(o))return!1;throw o}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Ut(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){let o=this.clone({nullable:t});return o.internalTests.nullable=Ht({message:r,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),o}optionality(t,r){let o=this.clone({optional:t});return o.internalTests.optionality=Ht({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=Ve.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ve.notNull){return this.nullability(!1,t)}required(t=Ve.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=Ve.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=Ht(r),a=r.exclusive||r.name&&o.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(o.exclusiveTests[r.name]=!!r.exclusive),o.tests=o.tests.filter(i=>!(i.OPTIONS.name===r.name&&(a||i.OPTIONS.test===n.OPTIONS.test))),o.tests.push(n),o}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let o=this.clone(),n=Wu(t).map(a=>new Ye(a));return n.forEach(a=>{a.isSibling&&o.deps.push(a.key)}),o.conditions.push(typeof r=="function"?new jt(n,r):jt.fromOptions(n,r)),o}typeError(t){let r=this.clone();return r.internalTests.typeError=Ht({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=Ve.oneOf){let o=this.clone();return t.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=Ht({message:r,name:"oneOf",skipAbsent:!0,test(n){let a=this.schema._whitelist,i=a.resolveAll(this.resolve);return i.includes(n)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:i}})}}),o}notOneOf(t,r=Ve.notOneOf){let o=this.clone();return t.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=Ht({message:r,name:"notOneOf",test(n){let a=this.schema._blacklist,i=a.resolveAll(this.resolve);return i.includes(n)?this.createError({params:{values:Array.from(a).join(", "),resolved:i}}):!0}}),o}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){let r=(t?this.resolve(t):this).clone(),{label:o,meta:n,optional:a,nullable:i}=r.spec;return{meta:n,label:o,optional:a,nullable:i,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.filter((s,c,u)=>u.findIndex(d=>d.OPTIONS.name===s.OPTIONS.name)===c).map(s=>{let c=s.OPTIONS.params&&t?qu(Object.assign({},s.OPTIONS.params),t):s.OPTIONS.params;return{name:s.OPTIONS.name,params:c}})}}get"~standard"(){let t=this;return{version:1,vendor:"yup",async validate(o){try{return{value:await t.validate(o,{abortEarly:!1})}}catch(n){if(n instanceof te)return{issues:Ku(n)};throw n}}}}};re.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])re.prototype[`${e}At`]=function(t,r,o={}){let{parent:n,parentPath:a,schema:i}=hy(this,t,r,o.context);return i[e](n&&n[a],Object.assign({},o,{parent:n,path:t}))};for(let e of["equals","is"])re.prototype[e]=re.prototype.oneOf;for(let e of["not","nope"])re.prototype[e]=re.prototype.notOneOf;var vy=()=>!0;function by(e){return new Xo(e)}var Xo=class extends re{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:vy},t))}};by.prototype=Xo.prototype;function Cy(){return new en}var en=class extends re{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r)=>{if(this.spec.coerce&&!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Zi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Me(r)||r===!0}})}isFalse(t=Zi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Me(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}};Cy.prototype=en.prototype;var wy=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Sy(e){let t=Qi(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function Qi(e){var t,r;let o=wy.exec(e);return o?{year:je(o[1]),month:je(o[2],1)-1,day:je(o[3],1),hour:je(o[4]),minute:je(o[5]),second:je(o[6]),millisecond:o[7]?je(o[7].substring(0,3)):0,precision:(t=(r=o[7])==null?void 0:r.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:je(o[10]),minuteOffset:je(o[11])}:null}function je(e,t=0){return Number(e)||t}var Ty=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Py=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ky=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Iy="^\\d{4}-\\d{2}-\\d{2}",Ey="\\d{2}:\\d{2}:\\d{2}",Ay="(([+-]\\d{2}(:?\\d{2})?)|Z)",My=new RegExp(`${Iy}T${Ey}(\\.\\d+)?${Ay}$`),Dy=e=>Me(e)||e===e.trim(),Fy={}.toString();function ce(){return new tn}var tn=class extends re{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r)=>{if(!this.spec.coerce||this.isType(t)||Array.isArray(t))return t;let o=t!=null&&t.toString?t.toString():t;return o===Fy?t:o})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ve.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=fe.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r=fe.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r=fe.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,r){let o=!1,n,a;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:a}=r:n=r),this.test({name:a||"matches",message:n||fe.matches,params:{regex:t},skipAbsent:!0,test:i=>i===""&&o||i.search(t)!==-1})}email(t=fe.email){return this.matches(Ty,{name:"email",message:t,excludeEmptyString:!0})}url(t=fe.url){return this.matches(Py,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=fe.uuid){return this.matches(ky,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",o,n;return t&&(typeof t=="object"?{message:r="",allowOffset:o=!1,precision:n=void 0}=t:r=t),this.matches(My,{name:"datetime",message:r||fe.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||fe.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:a=>{if(!a||o)return!0;let i=Qi(a);return i?!!i.z:!1}}).test({name:"datetime_precision",message:r||fe.datetime_precision,params:{precision:n},skipAbsent:!0,test:a=>{if(!a||n==null)return!0;let i=Qi(a);return i?i.precision===n:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=fe.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Dy})}lowercase(t=fe.lowercase){return this.transform(r=>Me(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Me(r)||r===r.toLowerCase()})}uppercase(t=fe.uppercase){return this.transform(r=>Me(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Me(r)||r===r.toUpperCase()})}};ce.prototype=tn.prototype;var Ry=e=>e!=+e;function Oy(){return new rn}var rn=class extends re{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Ry(t)}}),this.withMutation(()=>{this.transform((t,r)=>{if(!this.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return this.isType(o)||o===null?o:parseFloat(o)})})}min(t,r=ot.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,r=ot.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,r=ot.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,r=ot.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=ot.positive){return this.moreThan(0,t)}negative(t=ot.negative){return this.lessThan(0,t)}integer(t=ot.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>Me(t)?t:t|0)}round(t){var r;let o=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(n=>Me(n)?n:Math[t](n))}};Oy.prototype=rn.prototype;var Zu=new Date(""),By=e=>Object.prototype.toString.call(e)==="[object Date]";function Qu(){return new gt}var gt=class extends re{constructor(){super({type:"date",check(t){return By(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r)=>!this.spec.coerce||this.isType(t)||t===null?t:(t=Sy(t),isNaN(t)?gt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let o;if(Ye.isRef(t))o=t;else{let n=this.cast(t);if(!this._typeCheck(n))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);o=n}return o}min(t,r=Ki.min){let o=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(t,r=Ki.max){let o=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};gt.INVALID_DATE=Zu;Qu.prototype=gt.prototype;Qu.INVALID_DATE=Zu;function _y(e,t=[]){let r=[],o=new Set,n=new Set(t.map(([i,l])=>`${i}-${l}`));function a(i,l){let s=(0,ke.split)(i)[0];o.add(s),n.has(`${l}-${s}`)||r.push([l,s])}for(let i of Object.keys(e)){let l=e[i];o.add(i),Ye.isRef(l)&&l.isSibling?a(l.path,i):sn(l)&&"deps"in l&&l.deps.forEach(s=>a(s,i))}return zu.default.array(Array.from(o),r).reverse()}function $u(e,t){let r=1/0;return e.some((o,n)=>{var a;if((a=t.path)!=null&&a.includes(o))return r=n,!0}),r}function Ju(e){return(t,r)=>$u(e,t)-$u(e,r)}var Xu=(e,t,r)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch{}return r.isType(o)?o:e};function Qo(e){if("fields"in e){let t={};for(let[r,o]of Object.entries(e.fields))t[r]=Qo(o);return e.setFields(t)}if(e.type==="array"){let t=e.optional();return t.innerType&&(t.innerType=Qo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Qo)}):"optional"in e?e.optional():e}var Ly=(e,t)=>{let r=[...(0,ke.normalizePath)(t)];if(r.length===1)return r[0]in e;let o=r.pop(),n=(0,ke.getter)((0,ke.join)(r),!0)(e);return!!(n&&o in n)},Nu=e=>Object.prototype.toString.call(e)==="[object Object]";function Vu(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(o=>r.indexOf(o)===-1)}var $y=Ju([]);function ve(e){return new on(e)}var on=class extends re{constructor(t){super({type:"object",check(r){return Nu(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=$y,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var o;let n=super._cast(t,r);if(n===void 0)return this.getDefault(r);if(!this._typeCheck(n))return n;let a=this.fields,i=(o=r.stripUnknown)!=null?o:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(d=>!this._nodes.includes(d))),s={},c=Object.assign({},r,{parent:s,__validating:r.__validating||!1}),u=!1;for(let d of l){let f=a[d],m=d in n,g=n[d];if(f){let p;c.path=(r.path?`${r.path}.`:"")+d,f=f.resolve({value:g,context:r.context,parent:s});let y=f instanceof re?f.spec:void 0,v=y?.strict;if(y!=null&&y.strip){u=u||d in n;continue}p=!r.__validating||!v?f.cast(g,c):g,p!==void 0&&(s[d]=p)}else m&&!i&&(s[d]=g);(m!==d in s||s[d]!==g)&&(u=!0)}return u?s:n}_validate(t,r={},o,n){let{from:a=[],originalValue:i=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:i},...a],r.__validating=!0,r.originalValue=i,super._validate(t,r,o,(s,c)=>{if(!l||!Nu(c)){n(s,c);return}i=i||c;let u=[];for(let d of this._nodes){let f=this.fields[d];!f||Ye.isRef(f)||u.push(f.asNestedTest({options:r,key:d,parent:c,parentPath:r.path,originalParent:i}))}this.runTests({tests:u,value:c,originalValue:i,options:r},o,d=>{n(d.sort(this._sortErrors).concat(s),c)})})}clone(t){let r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),o=r.fields;for(let[n,a]of Object.entries(this.fields)){let i=o[n];o[n]=i===void 0?a:i}return r.withMutation(n=>n.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(o=>{var n;let a=this.fields[o],i=t;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[o]})),r[o]=a&&"getDefault"in a?a.getDefault(i):void 0}),r}setFields(t,r){let o=this.clone();return o.fields=t,o._nodes=_y(t,r),o._sortErrors=Ju(Object.keys(t)),r&&(o._excludedEdges=r),o}shape(t,r=[]){return this.clone().withMutation(o=>{let n=o._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),n=[...o._excludedEdges,...r]),o.setFields(Object.assign(o.fields,t),n)})}partial(){let t={};for(let[r,o]of Object.entries(this.fields))t[r]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Qo(this)}pick(t){let r={};for(let o of t)this.fields[o]&&(r[o]=this.fields[o]);return this.setFields(r,this._excludedEdges.filter(([o,n])=>t.includes(o)&&t.includes(n)))}omit(t){let r=[];for(let o of Object.keys(this.fields))t.includes(o)||r.push(o);return this.pick(r)}from(t,r,o){let n=(0,ke.getter)(t,!0);return this.transform(a=>{if(!a)return a;let i=a;return Ly(a,t)&&(i=Object.assign({},a),o||delete i[t],i[r]=n(a)),i})}json(){return this.transform(Xu)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Ko.exact,test(r){if(r==null)return!0;let o=Vu(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Ko.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;let a=Vu(this.schema,n);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,r=Ko.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[t(n)]=r[n];return o})}camelCase(){return this.transformKeys(Tr.camelCase)}snakeCase(){return this.transformKeys(Tr.snakeCase)}constantCase(){return this.transformKeys(t=>(0,Tr.snakeCase)(t).toUpperCase())}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(let[a,i]of Object.entries(r.fields)){var n;let l=t;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[a]})),o.fields[a]=i.describe(l)}return o}};ve.prototype=on.prototype;function Ny(e){return new nn(e)}var nn=class extends re{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){let o=super._cast(t,r);if(!this._typeCheck(o)||!this.innerType)return o;let n=!1,a=o.map((i,l)=>{let s=this.innerType.cast(i,Object.assign({},r,{path:`${r.path||""}[${l}]`,parent:o,originalValue:i,value:i,index:l}));return s!==i&&(n=!0),s});return n?a:o}_validate(t,r={},o,n){var a;let i=this.innerType,l=(a=r.recursive)!=null?a:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,o,(s,c)=>{var u;if(!l||!i||!this._typeCheck(c)){n(s,c);return}let d=new Array(c.length);for(let m=0;m<c.length;m++){var f;d[m]=i.asNestedTest({options:r,index:m,parent:c,parentPath:r.path,originalParent:(f=r.originalValue)!=null?f:t})}this.runTests({value:c,tests:d,originalValue:(u=r.originalValue)!=null?u:t,options:r},o,m=>n(m.concat(s),c))})}clone(t){let r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(Xu)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!sn(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+qe(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Zo.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r){return r=r||Zo.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r){return r=r||Zo.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(o,n,a)=>!t(o,n,a):o=>!!o;return this.transform(o=>o!=null?o.filter(r):o)}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);if(r.innerType){var n;let a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),o.innerType=r.innerType.describe(a)}return o}};Ny.prototype=nn.prototype;function Vy(e){return new an(e)}var an=class extends re{constructor(t){super({type:"tuple",spec:{types:t},check(r){let o=this.spec.types;return Array.isArray(r)&&r.length===o.length}}),this.withMutation(()=>{this.typeError(ju.notType)})}_cast(t,r){let{types:o}=this.spec,n=super._cast(t,r);if(!this._typeCheck(n))return n;let a=!1,i=o.map((l,s)=>{let c=l.cast(n[s],Object.assign({},r,{path:`${r.path||""}[${s}]`,parent:n,originalValue:n[s],value:n[s],index:s}));return c!==n[s]&&(a=!0),c});return a?i:n}_validate(t,r={},o,n){let a=this.spec.types;super._validate(t,r,o,(i,l)=>{var s;if(!this._typeCheck(l)){n(i,l);return}let c=[];for(let[d,f]of a.entries()){var u;c[d]=f.asNestedTest({options:r,index:d,parent:l,parentPath:r.path,originalParent:(u=r.originalValue)!=null?u:t})}this.runTests({value:l,tests:c,originalValue:(s=r.originalValue)!=null?s:t,options:r},o,d=>n(d.concat(i),l))})}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=r.spec.types.map((n,a)=>{var i;let l=t;return(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[a]})),n.describe(l)}),o}};Vy.prototype=an.prototype;import{Alert as np,Grid as Kt}from"@mui/material";import{useState as ip}from"react";import{useCredentials as Px,useForm as kx,useValidations as Ix}from"@data-c/hooks";import{isAxiosError as Ex}from"axios";import{useEffect as ap}from"react";import Ax from"validator/lib/isStrongPassword";import{useState as zy}from"react";import{Visibility as Wy,VisibilityOff as Gy}from"@mui/icons-material";import{IconButton as Hy,InputAdornment as Uy,TextField as jy}from"@mui/material";import{jsx as Pr}from"react/jsx-runtime";function ht(e){let{name:t,label:r,value:o,onChange:n,onKeyDown:a}=e,[i,l]=zy(!1);function s(){l(!i)}return Pr(jy,{name:t,label:r,value:o||"",onChange:n,onKeyDown:a,type:i?"text":"password",InputProps:{endAdornment:Pr(Uy,{position:"end",children:Pr(Hy,{tabIndex:-1,onClick:s,edge:"end",children:i?Pr(Gy,{}):Pr(Wy,{})})})}})}import{useDialogs as $D}from"@toolpad/core";import{jsx as qy}from"react/jsx-runtime";function Ji({children:e,...t}){return qy(R,{variant:"outlined",color:"error",...t,children:"Cancelar"})}import{Close as Yy}from"@mui/icons-material";import{IconButton as Ky}from"@mui/material";import{jsx as ep}from"react/jsx-runtime";function yt({onClose:e}){return ep(Ky,{onClick:()=>e(),sx:{position:"absolute",right:"11px"},children:ep(Yy,{})})}import{Stack as Zy}from"@mui/material";import{jsx as Qy}from"react/jsx-runtime";function xt(e){return Qy(Zy,{direction:"row",alignItems:"center",gap:1,marginLeft:"auto",...e})}import{jsx as Jy}from"react/jsx-runtime";function Xi({children:e,label:t,...r}){return Jy(R,{variant:"contained",...r,children:t||"Salvar"})}import{Button as Xy}from"@mui/material";import{useDialogs as ex}from"@toolpad/core";import{jsx as tx}from"react/jsx-runtime";function ea(e){let{dialogComponent:t,payload:r,label:o,...n}=e,a=ex();return tx(Xy,{variant:"contained",onClick:()=>{a.open(t,r)},...n,children:o||" Adicionar"})}import{Typography as gx}from"@mui/material";import{Stack as tp}from"@mui/material";import{jsx as rp}from"react/jsx-runtime";function vt({children:e,...t}){return rp(tp,{component:"main",margin:"44px 0 55.75px",overflow:"auto",children:rp(tp,{padding:"16px",...t,children:e})})}import{Stack as rx,useTheme as ox}from"@mui/material";import{jsx as nx}from"react/jsx-runtime";function bt(e){let t=ox();return nx(rx,{component:"footer",position:"absolute",direction:"row",alignItems:"center",bottom:0,left:0,right:0,padding:"8px 16px",borderTop:`solid 1px ${t.palette.grey[300]}`,height:"48px",sx:{backgroundColor:t.palette.background.paper},...e})}import{Stack as ix,useTheme as ax}from"@mui/material";import{jsx as sx}from"react/jsx-runtime";function Ct(e){let t=ax();return sx(ix,{component:"header",height:"44px",position:"absolute",direction:"row",top:0,left:0,right:0,display:"flex",alignItems:"center",padding:"16px",borderBottom:`solid 1px ${t.palette.grey[300]}`,...e})}import{forwardRef as lx}from"react";import{Dialog as cx,Slide as ux,Stack as px}from"@mui/material";import{jsx as ta}from"react/jsx-runtime";var dx=lx(function(t,r){return ta(ux,{direction:"up",ref:r,...t})});function wt({children:e,height:t,fullWidth:r=!0,...o}){return ta(cx,{disableRestoreFocus:!0,fullWidth:r,TransitionComponent:dx,sx:{"& .MuiBackdrop-root":{backgroundColor:"#6464648F"},...o?.sx},PaperProps:{style:{height:t,overflow:"hidden",position:"absolute",top:"51px",margin:0}},...o,children:ta(px,{height:"100%",position:"relative",overflow:"auto",children:e})})}import{Typography as fx}from"@mui/material";import{jsx as mx}from"react/jsx-runtime";function St(e){return mx(fx,{component:"h6",variant:"h6",sx:{whiteSpace:"nowrap"},...e})}import{jsx as Tt,jsxs as ra}from"react/jsx-runtime";function oa(e){let{open:t,onClose:r,payload:o}=e,{title:n,message:a,confirmButtonLabel:i="Confirmar",cancelButtonLabel:l="Cancelar",payload:s}=o;return ra(wt,{open:t,onClose:()=>r(!1),children:[ra(Ct,{children:[Tt(St,{children:n||"Precisamos da sua confirma\xE7\xE3o"}),Tt(yt,{onClose:()=>r(!1)})]}),Tt(vt,{children:Tt(gx,{variant:"body1",children:a||"Voc\xEA tem certeza que deseja continuar?"})}),Tt(bt,{children:ra(xt,{children:[Tt(R,{onClick:()=>r(!1),sx:{minWidth:"100px"},children:l}),Tt(R,{color:"error",variant:"contained",onClick:()=>r(s??!0),sx:{minWidth:"100px"},children:i})]})})]})}import{Alert as hx}from"@mui/material";import{jsx as Pt,jsxs as na}from"react/jsx-runtime";function ia({open:e,onClose:t,payload:r}){let{useRemover:o,configs:n}=r,{mutateAsync:a,isLoading:i}=o();async function l(){try{await a(n),t()}catch{}}return na(wt,{open:e,onClose:t,children:[na(Ct,{children:[Pt(St,{children:"Tem certeza de que deseja excluir este registro?"}),Pt(yt,{onClose:t})]}),Pt(vt,{children:Pt(hx,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),Pt(bt,{children:na(xt,{children:[Pt(R,{onClick:()=>t(),sx:{minWidth:"100px"},children:"Manter registro"}),Pt(R,{color:"error",variant:"contained",isLoading:i,onClick:l,sx:{minWidth:"100px"},children:"Remover"})]})})]})}import{DialogsProvider as yx}from"@toolpad/core";import{jsx as xx}from"react/jsx-runtime";function aa({children:e}){return xx(yx,{children:e})}var vx={Root:wt,Provider:aa,AdicionarButton:ea,Header:Ct,Title:St,ActionClose:yt,Content:vt,Footer:bt,Actions:xt,ActionCancelar:Ji,ActionSalvar:Xi,ConfirmDelete:ia,Confirm:oa},O=vx;import{Box as bx,Typography as Cx,useTheme as wx}from"@mui/material";import{Circle as Sx}from"@mui/icons-material";import{jsx as op,jsxs as Tx}from"react/jsx-runtime";function kt(e){let{isValid:t,message:r}=e,o=wx();return Tx(bx,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[op(Sx,{color:t?"success":"inherit",sx:{fontSize:"8pt"}}),op(Cx,{variant:"body2",sx:{color:t?o.palette.success.main:"inherit",textDecoration:t?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}import{jsx as J,jsxs as Zt}from"react/jsx-runtime";var sp={senhaAtual:"",senhaNova:""},Mx=ve().shape({senhaAtual:ce().required("Informe a Senha Atual."),senhaNova:ce().required("Informe a Nova Senha.")});function Qt(e){let{isOpen:t,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:a,primeiroAcesso:i,senhaAtual:l,email:s}=e,{alterarSenha:c,isSubmitting:u}=Px(r),{setValidationErrors:d,validationProps:f}=Ix(),{data:m,handleChange:g,setData:p,changeValue:y}=kx(sp),[v,x]=ip(!1),[S,w]=ip(null);ap(()=>{l&&y("senhaAtual",l)},[l]),ap(()=>{m.senhaNova&&x(Ax(m.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[m.senhaNova]);async function C(){d(null),w(null),Mx.validate(m,{abortEarly:!1}).then(async()=>{let{senhaAtual:E,senhaNova:le}=m;try{await c(E,le,s)&&(n&&n(),p(sp))}catch(h){if(a&&a(h),Ex(h)){w(h.response?.data.message);return}w("Ocorreu um erro ao tentar alterar a senha")}}).catch(E=>{d(E)})}function k(){return m?.senhaNova.length>=8}function P(){if(m?.senhaNova){let E=m?.senhaNova.match(/[a-z]/g);return Array.isArray(E)&&E.length>0}return!1}function Q(){if(m?.senhaNova){let E=m?.senhaNova.match(/[A-Z]/g);return Array.isArray(E)&&E.length>0}return!1}function $(){if(m?.senhaNova){let E=m?.senhaNova.match(/\d/g);return Array.isArray(E)&&E.length>0}return!1}function se(){if(m?.senhaNova){let E=m?.senhaNova.match(/\W/g);return Array.isArray(E)&&E.length>0}return!1}return Zt(O.Root,{open:t,onClose:E=>o(),maxWidth:"md",children:[Zt(O.Header,{children:[J(O.Title,{children:"Alterar Senha"}),J(O.ActionClose,{onClose:o})]}),J(O.Content,{children:Zt(Kt,{container:!0,spacing:2,children:[i&&J(Kt,{size:12,children:Zt(np,{severity:"info",children:["Voc\xEA est\xE1 acessando o sistema com uma senha tempor\xE1ria.",J("br",{}),"Cadastre uma senha segura para deixar sua conta mais protegida."]})}),J(Kt,{size:12,children:J(ht,{name:"senhaAtual",label:"Senha Atual",value:m?.senhaAtual||"",onChange:g,...f("senhaAtual")})}),J(Kt,{size:12,children:J(ht,{name:"senhaNova",label:"Nova Senha",value:m?.senhaNova||"",onChange:g,...f("senhaNova")})}),Zt(Kt,{size:12,children:[J(kt,{isValid:k(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),J(kt,{isValid:P(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),J(kt,{isValid:Q(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),J(kt,{isValid:$(),message:"A nova senha deve ter ao menos um n\xFAmero"}),J(kt,{isValid:se(),message:"A nova senha deve ter ao menos um caracter especial"})]}),S&&J(Kt,{size:12,children:J(np,{severity:"error",children:S})})]})}),J(O.Footer,{children:Zt(O.Actions,{children:[J(O.ActionCancelar,{onClick:()=>o()}),J(O.ActionSalvar,{label:"Alterar Senha",onClick:C,isLoading:u,disabled:!v})]})})]})}import{Mail as _x,WhatsApp as Lx}from"@mui/icons-material";import{jsx as me,jsxs as kr}from"react/jsx-runtime";var $x=ve().shape({email:ce().required("Informe o e-mail"),password:ce().required("Informe a senha")});function sa(e){let{onLoginSuccess:t,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=e,[a,i]=Jt(""),[l,s]=Jt(""),[c,u]=Jt(!1),[d,f]=Jt(!1),[m,g]=Jt(!1),[p,y]=Jt(null),{login:v}=Bx(n),{validationProps:x,setValidationErrors:S}=Ox();async function w(){S(null),y(null),$x.validate({email:a,password:l},{abortEarly:!1}).then(async()=>{u(!0);try{let C=await v(a,l);C&&t(C)}catch(C){if(Rx(C)){if(C.response?.data.code==="E_FIRST_ACCESS"){f(!0);return}y(C.response?.data.message)}r(C)}}).catch(C=>{S(C)}).finally(()=>{u(!1)})}return kr(ln,{component:"form",onSubmit:w,children:[kr(ln,{spacing:2,children:[me(Dx,{name:"email",label:"E-mail",margin:"normal",autoFocus:!0,value:a||"",onChange:C=>i(C.target.value),...x("email")}),me(ht,{name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:l||"",onChange:C=>s(C.target.value),onKeyDown:C=>C.key==="Enter"&&w(),...x("password")}),me(R,{fullWidth:!0,variant:"contained",onClick:w,isLoading:c,sx:{mt:1},children:"Entrar"})]}),me(R,{onClick:()=>o("esqueci-senha"),variant:"text",disableRipple:!0,disableTouchRipple:!0,sx:{justifyContent:"flex-start",alignContent:"center",alignItems:"center",textAlign:"left",width:"120px",marginTop:.5,fontWeight:"400",":hover":{}},children:"Esqueci a senha"}),p&&me(lp,{severity:"error",children:p}),m&&kr(lp,{severity:"success",children:["Senha cadastrada com sucesso",me("br",{}),"Tudo pronto para voc\xEA fazer o login"]}),kr(ln,{direction:"row",justifyContent:"center",alignItems:"center",mt:2,mb:2,children:[me(cp,{sx:{flexGrow:1,mr:1}}),me(Fx,{children:"Ou fa\xE7a login com"}),me(cp,{sx:{flexGrow:1,ml:1}})]}),kr(ln,{spacing:1,children:[me(R,{onClick:()=>o("otp-email"),startIcon:me(_x,{}),children:"Entrar com senha tempor\xE1ria"}),me(R,{onClick:()=>o("otp-whatsapp"),startIcon:me(Lx,{}),children:"Entrar com senha tempor\xE1ria"})]}),me(Qt,{senhaAtual:l,email:a,primeiroAcesso:!0,isOpen:d,onClose:async()=>f(!1),onSuccess:()=>{f(!1),g(!0),s("")},credentialsConfig:n})]})}import{useState as cn}from"react";import{Alert as up,Box as Nx,TextField as Vx}from"@mui/material";import{useCredentials as zx,useValidations as Wx}from"@data-c/hooks";import{jsx as It,jsxs as Hx}from"react/jsx-runtime";var Gx=ve().shape({email:ce().required("Informe o e-mail")});function la(e){let{onLoginClick:t,credentialsConfig:r}=e,[o,n]=cn(""),[a,i]=cn(!1),[l,s]=cn(!1),[c,u]=cn(null),{recuperarSenha:d}=zx(r),{validationProps:f,setValidationErrors:m}=Wx();async function g(){m(null),Gx.validate({email:o},{abortEarly:!1}).then(async()=>{try{i(!0),await d(o),s(!0)}catch(p){u(p.response?.data.message)}finally{i(!1)}}).catch(p=>{m(p)})}return Hx(Nx,{component:"form",children:[It(Vx,{name:"email",label:"E-mail",margin:"normal",placeholder:"Informe o e-mail utilizado para acessar o sistema",autoFocus:!0,value:o||"",onChange:p=>n(p.target.value),...f("email")}),It(R,{fullWidth:!0,variant:"contained",onClick:g,isLoading:a,children:"Recuperar minha senha"}),It(_e,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:It(R,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:p=>p.palette.primary.dark}},children:"Voltar para o Login"})}),l&&It(up,{severity:"success",action:It(R,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:p=>p.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),c&&It(up,{severity:"error",children:c})]})}import{useEffect as Ux,useState as jx}from"react";import{Box as qx,MenuItem as Yx,TextField as Kx}from"@mui/material";import{useCredentials as Zx}from"@data-c/hooks";import{jsx as ca,jsxs as Qx}from"react/jsx-runtime";function ua(e){let{loginData:t,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=e,[a,i]=jx(""),{selecionarLicenca:l,isSubmitting:s}=Zx(r);Ux(()=>{if(Array.isArray(t?.empresas)){let u=t?.empresas[0];i(u?.uuid)}},[t]);async function c(){try{let u=await l(t?.token,a);u?n(u):o("Nenhuma token definida")}catch(u){o(u)}}return Qx(qx,{component:"form",sx:{minWidth:"290px"},children:[ca(Kx,{label:"Licen\xE7as",margin:"normal",select:!0,autoFocus:!0,value:a,onChange:u=>{i(u.target.value)},children:t?.empresas?.map(u=>ca(Yx,{value:u.uuid,children:u.nome},u.uuid))}),ca(R,{fullWidth:!0,variant:"contained",onClick:c,isLoading:s,sx:{mt:1},children:"Confirmar"})]})}import{useEffect as w0,useState as gp}from"react";import{useCredentials as S0}from"@data-c/hooks";import{Alert as c0,IconButton as u0,Stack as mp,TextField as p0,Typography as d0}from"@mui/material";import{useForm as f0}from"@data-c/hooks";import{useState as Jx,useMemo as Xx}from"react";import e0 from"@mui/material/TextField";import{jsx as t0}from"react/jsx-runtime";var pp=e=>{let t=e.replace(/\D/g,"");return t.length<=2?`(${t}`:t.length<=7?`(${t.slice(0,2)}) ${t.slice(2)}`:t.length<=11?`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7,11)}`};function Ir(e){let{value:t,onChange:r,...o}=e,[n,a]=Jx(""),i=t!==void 0,l=Xx(()=>i?pp(t||""):n,[t,n,i]);return t0(e0,{value:l,onChange:c=>{let u=pp(c.target.value);if(i||a(u),r){let d={...c,target:{...c.target,value:u}};r(d)}},inputProps:{maxLength:15},...o})}import{useCredentials as m0}from"@data-c/hooks";import{useState as fa}from"react";import{useCredentials as i0}from"@data-c/hooks";import{Alert as a0,Stack as s0,Typography as fp}from"@mui/material";import{useEffect as l0,useState as pa}from"react";import{useRef as r0}from"react";import{Box as o0,TextField as n0}from"@mui/material";import{jsx as dp}from"react/jsx-runtime";function Er({length:e=6,value:t,onChange:r}){let o=r0([]),n=(i,l)=>{let s="ABCDEF0123456789",c=l.toUpperCase().split("").find(f=>s.includes(f))||"",u=t.split("");u[i]=c;let d=u.join("");r(d),c&&i<e-1&&o.current[i+1]?.focus()},a=(i,l)=>{l.key==="Backspace"&&!t[i]&&i>0&&o.current[i-1]?.focus()};return dp(o0,{display:"flex",gap:1,children:Array.from({length:e}).map((i,l)=>dp(n0,{autoFocus:l===0,inputRef:s=>o.current[l]=s,slotProps:{htmlInput:{maxLength:1,style:{textAlign:"center",fontSize:"24px",width:"24px",height:"36px"}}},value:t[l]||"",onChange:s=>n(l,s.target.value),onKeyDown:s=>a(l,s)},l))})}import{jsx as De,jsxs as Ar}from"react/jsx-runtime";function da(e){let{open:t,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:a}=e,[i,l]=pa(""),[s,c]=pa(!1),[u,d]=pa(!1),{validarOtpVerificationCode:f}=i0(a);l0(()=>{s&&setTimeout(()=>{c(!1)},3e3)},[s]);async function m(){try{d(!0);let g=await f({channel:o.channel,target:o.target,code:i});g&&n(g),r()}catch(g){c(g.response.data.message)}finally{d(!1)}}return Ar(O.Root,{open:t,onClose:g=>r(),maxWidth:"xs",children:[Ar(O.Header,{children:[De(O.Title,{children:"Entrar com senha tempor\xE1ria"}),De(O.ActionClose,{onClose:r})]}),De(O.Content,{children:Ar(s0,{spacing:2,justifyContent:"center",alignContent:"center",alignItems:"center",children:[De(fp,{variant:"subtitle1",sx:{fontWeight:"bolder",fontSize:"11pt"},children:"\u{1F510} Digite a senha tempor\xE1ria para acessar sua conta"}),Ar(fp,{variant:"body1",sx:{fontSize:"10pt"},children:["Enviamos uma senha tempor\xE1ria para ",De("b",{children:o.target}),". ",De("br",{}),"Digite o c\xF3digo abaixo para acessar sua conta."]}),De(Er,{value:i,onChange:g=>{l(g)}}),s&&De(a0,{sx:{flexGrow:1},severity:"error",children:s})]})}),De(O.Footer,{children:Ar(O.Actions,{children:[De(O.ActionCancelar,{onClick:()=>r()}),De(O.ActionSalvar,{label:"Entrar",onClick:m,isLoading:u,disabled:i.length!=6})]})})]})}import{HelpOutline as g0}from"@mui/icons-material";import{Fragment as y0,jsx as Fe,jsxs as un}from"react/jsx-runtime";var h0=ve().shape({contato:ce().when("$tipo",([e],t)=>e==="otp-email"?t.email("E-mail inv\xE1lido").required("Informe o e-mail"):t.matches(/^\+?[1-9]\d{7,14}$/,"N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp"))});function pn(e){let{tipo:t,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=e,[a,i]=fa(!1),[l,s]=fa(!1),{gerarOtpVerificationCode:c}=m0(r),{handleChange:u,changeValue:d,data:f,validate:m,validationErrors:g}=f0({contato:""},h0),[p,y]=fa(!1);return un(y0,{children:[Fe("form",{onSubmit:async x=>{x.preventDefault(),m(async S=>{try{s(!1),i(!0);let w=await c({channel:t==="otp-email"?"email":"whatsapp",target:S.contato});y(!0)}catch(w){s(w.response.data.message)}finally{i(!1)}},{context:{tipo:t}})},children:un(mp,{spacing:2,children:[Fe(d0,{variant:"subtitle2",children:t==="otp-email"?" Informe seu e-mail para receber um c\xF3digo de acesso":"Informe seu n\xFAmero de WhatsApp para receber um c\xF3digo de acesso"}),t==="otp-email"&&Fe(p0,{autoFocus:!0,name:"contato",label:"E-mail",value:f.contato||"",onChange:u,fullWidth:!0,...g("contato")}),t==="otp-whatsapp"&&Fe(Ir,{autoFocus:!0,name:"contato",label:"Whatsapp",value:f.contato||"",onChange:x=>{d("contato",x.target.value.replace(/[^\d+]/g,""))},fullWidth:!0,...g("contato")}),un(mp,{children:[Fe(R,{isLoading:a,type:"submit",variant:"contained",color:"primary",children:"Enviar c\xF3digo"}),un(_e,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:[Fe(R,{onClick:n,variant:"text",sx:{fontWeight:"400",":hover":{color:x=>x.palette.primary.dark}},children:"Voltar para o Login"}),Fe("a",{href:"https://datacsistemashelp.zendesk.com/hc/pt-br/articles/36489079108756-Login-OTP-via-WhatsApp",target:"_blank",rel:"noopener noreferrer",children:Fe(u0,{children:Fe(g0,{color:"primary"})})})]})]}),l&&Fe(c0,{severity:"error",children:l})]})}),Fe(da,{onLoginSuccess:o,open:p,onClose:async x=>{y(!1)},payload:{target:f.contato,channel:t==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}import{jsx as Xt,jsxs as hp}from"react/jsx-runtime";var T0={login:"Acesse sua conta",licensa:"Selecione a licen\xE7a","esqueci-senha":"Recupere a sua senha","otp-email":"Entrar com senha tempor\xE1ria (E-mail)","otp-whatsapp":"Entrar com senha tempor\xE1ria (WhatsApp)"};function ma(e){let{credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:a}=e,[i,l]=gp(),{selecionarLicenca:s,isAuthenticated:c}=S0(t),[u,d]=gp("login"),f=C0(),m=b0(f.breakpoints.up("md"));w0(()=>{c&&n&&n()},[c]);async function g(S){try{if(Array.isArray(S?.empresas)){if(S?.empresas.length===1){let w=await s(S?.token,S.empresas[0].uuid);w&&r(w);return}d("licensa"),l(S);return}r(S)}catch(w){o(w)}}async function p(S){o(S)}function y(S){d(S)}function v(){d("login")}let x=T0[u];return hp(v0,{children:[Xt(Wi,{label:a,subTitle:x}),hp(x0,{sx:{marginTop:2},children:[u==="login"&&Xt(sa,{credentialsConfig:t,onLoginSuccess:g,onLoginFailed:p,onOptionsClick:y}),u==="licensa"&&Xt(ua,{loginData:i,credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o}),u==="esqueci-senha"&&Xt(la,{onLoginClick:v,credentialsConfig:t}),u==="otp-email"&&Xt(pn,{onLoginClick:v,onLoginSuccess:g,tipo:"otp-email",credentialsConfig:t}),u==="otp-whatsapp"&&Xt(pn,{onLoginClick:v,onLoginSuccess:g,tipo:"otp-whatsapp",credentialsConfig:t})]})]})}import{ArrowRight as P0}from"@mui/icons-material";import{Link as k0,Stack as yp,Typography as ga,useMediaQuery as I0,useTheme as E0}from"@mui/material";import{jsx as er,jsxs as xp}from"react/jsx-runtime";function ha(){let e=E0(),t=I0(e.breakpoints.up("md"));return er(yp,{component:"section",display:t?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{backgroundImage:"url(https://datac-site-assets.s3.sa-east-1.amazonaws.com/background_login.png)",backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat"},children:xp(yp,{padding:"2rem",children:[er(ga,{component:"h1",fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"bold",color:"white",fontFamily:"Montserrat",letterSpacing:0,children:"Inova\xE7\xE3o e tecnologia"}),er(ga,{component:"h2",color:"white",fontSize:"2.5rem",lineHeight:"3rem",letterSpacing:0,fontWeight:"bold",fontFamily:"Montserrat",children:"para empresas de resultado"}),er(ga,{component:"span",fontSize:"1.25rem",lineHeight:"1.25rem",fontWeight:"300",letterSpacing:0,marginTop:"1.5rem",marginBottom:"3rem",fontFamily:"Montserrat",sx:{color:"rgb(68, 167, 255)"},children:"Mais de 30 anos de exist\xEAncia e muitas hist\xF3rias de sucesso."}),er(k0,{href:"https://site.datac.com.br/services/",target:"_blank",children:xp(R,{component:"a",variant:"text",sx:{width:"fit-content",color:"rgb(255, 255, 255)",fontWeight:"400",fontSize:"0.875rem",lineHeight:"1.125rem",fontFamily:"Montserrat",backgroundColor:"rgb(22, 23, 101)",borderRadius:"30px",padding:"17px 48px",":hover":{backgroundColor:"rgb(255, 255, 255)",color:"rgb(22, 23, 101)"},alignItems:"center"},children:["Conhe\xE7a nossos produtos",er(P0,{fontSize:"medium",sx:{color:r=>r.palette.success.light}})]})})]})})}import{jsx as Et,jsxs as ya}from"react/jsx-runtime";function F0({children:e}){let t=D0(),r=M0(t.breakpoints.up("md"));return ya(dn,{component:"section",width:r?"46%":"100%",minWidth:"420px",maxWidth:r?"614px":"initial",justifyContent:"center",alignItems:"center",padding:"2rem",children:[Et(dn,{width:"100%",maxWidth:"28rem",margin:"auto 0",children:e}),ya(dn,{direction:"row",alignItems:"center",marginBottom:-3,children:[Et("img",{width:"60",src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/logomarca.png"}),Et(A0,{variant:"body1",component:"span",fontSize:"0.7rem",sx:{color:o=>o.palette.grey[500]},children:"Data C Sistemas"})]})]})}function vp(e){let{banner:t,loginSection:r}=e;return ya(dn,{component:"main",direction:"row",height:"100vh",children:[t?Et(zi,{children:t}):Et(ha,{}),Et(F0,{children:r||Et(ma,{...e})})]})}import{formatDocumento as tf,normalizeText as rf}from"@data-c/hooks";import{Stack as R0}from"@mui/material";import{jsx as O0}from"react/jsx-runtime";function xa(e){return O0(R0,{direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1,...e})}import{AppBar as B0,Stack as _0,Toolbar as L0}from"@mui/material";import $0 from"react";import{jsx as fn}from"react/jsx-runtime";function va({children:e}){return fn($0.Fragment,{children:fn(B0,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:t=>t.zIndex.drawer+1,borderBottom:t=>`1px solid ${t.palette.grey[300]}`},children:fn(L0,{children:fn(_0,{sx:{width:"100%"},direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",children:e})})})})}import{IconButton as pb}from"@mui/material";import{SvgIcon as N0}from"@mui/material";import{jsx as tr,jsxs as V0}from"react/jsx-runtime";function ba(e){return tr(N0,{...e,children:V0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[tr("path",{d:"M3 5v14"}),tr("path",{d:"M8 5v14"}),tr("path",{d:"M12 5v14"}),tr("path",{d:"M17 5v14"}),tr("path",{d:"M21 5v14"})]})})}import{SvgIcon as z0}from"@mui/material";import{jsx as Ca,jsxs as W0}from"react/jsx-runtime";function wa(e){return Ca(z0,{...e,children:W0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ca("circle",{cx:"12",cy:"12",r:"10"}),Ca("path",{d:"m4.9 4.9 14.2 14.2"})]})})}import{SvgIcon as G0}from"@mui/material";import{jsx as mn,jsxs as H0}from"react/jsx-runtime";function Sa(e){return mn(G0,{...e,children:H0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[mn("rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}),mn("path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}),mn("path",{d:"M10 12h4"})]})})}import{SvgIcon as U0}from"@mui/material";import{jsx as Ta}from"react/jsx-runtime";function Mr(e){return Ta(U0,{...e,children:Ta("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:Ta("path",{d:"m6 9 6 6 6-6"})})})}import{SvgIcon as j0}from"@mui/material";import{jsx as Pa}from"react/jsx-runtime";function ka(e){return Pa(j0,{...e,children:Pa("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:Pa("path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9"})})})}import{SvgIcon as q0}from"@mui/material";import{jsx as Dr,jsxs as Y0}from"react/jsx-runtime";function Ia(e){return Dr(q0,{...e,children:Y0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Dr("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),Dr("circle",{cx:"9",cy:"7",r:"4"}),Dr("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),Dr("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})})}import{SvgIcon as K0}from"@mui/material";import{jsx as Ea,jsxs as Z0}from"react/jsx-runtime";function Aa(e){return Ea(K0,{...e,children:Z0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ea("path",{d:"m11 17-5-5 5-5"}),Ea("path",{d:"m18 17-5-5 5-5"})]})})}import{SvgIcon as Q0}from"@mui/material";import{jsx as Ma,jsxs as J0}from"react/jsx-runtime";function Da(e){return Ma(Q0,{...e,children:J0("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ma("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),Ma("circle",{cx:"12",cy:"12",r:"3"})]})})}import{SvgIcon as X0}from"@mui/material";import{jsx as Fr,jsxs as ev}from"react/jsx-runtime";function Fa(e){return Fr(X0,{...e,children:ev("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Fr("rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),Fr("rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),Fr("rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),Fr("rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})})}import{SvgIcon as tv}from"@mui/material";import{jsx as rr,jsxs as rv}from"react/jsx-runtime";function Ra(e){return rr(tv,{...e,children:rv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[rr("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),rr("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),rr("path",{d:"M10 9H8"}),rr("path",{d:"M16 13H8"}),rr("path",{d:"M16 17H8"})]})})}import{SvgIcon as ov}from"@mui/material";import{jsx as Oa}from"react/jsx-runtime";function Rr(e){return Oa(ov,{...e,children:Oa("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:Oa("path",{d:"m6 9 6 6 6-6"})})})}import{SvgIcon as nv}from"@mui/material";import{jsx as gn,jsxs as iv}from"react/jsx-runtime";function Ba(e){return gn(nv,{...e,children:iv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[gn("path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"}),gn("path",{d:"M22 21H7"}),gn("path",{d:"m5 11 9 9"})]})})}import{styled as av}from"@mui/material/styles";import{jsx as cv}from"react/jsx-runtime";var sv=e=>({transition:e.transitions.create(["transform"],{duration:500})}),lv=av(Rr,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({...sv(e),...t&&{transform:"rotate(-180deg)"},...!t&&{transform:"rotate(0)"}}));function _a(e){let{open:t}=e;return cv(lv,{fontSize:"small",open:t})}import{SvgIcon as uv}from"@mui/material";import{jsx as hn,jsxs as pv}from"react/jsx-runtime";function La(e){return hn(uv,{...e,children:pv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[hn("path",{d:"M3 6h18"}),hn("path",{d:"M7 12h10"}),hn("path",{d:"M10 18h4"})]})})}import{SvgIcon as dv}from"@mui/material";import{jsx as yn,jsxs as fv}from"react/jsx-runtime";function $a(e){return yn(dv,{...e,children:fv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[yn("path",{d:"M18 20a6 6 0 0 0-12 0"}),yn("circle",{cx:"12",cy:"10",r:"4"}),yn("circle",{cx:"12",cy:"12",r:"10"})]})})}import{SvgIcon as mv}from"@mui/material";import{jsx as or,jsxs as gv}from"react/jsx-runtime";function Na(e){return or(mv,{...e,children:gv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[or("path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),or("path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4"}),or("path",{d:"m21 3 1 11h-2"}),or("path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),or("path",{d:"M3 4h8"})]})})}import{SvgIcon as hv}from"@mui/material";import{jsx as xn,jsxs as yv}from"react/jsx-runtime";function Va(e){return xn(hv,{...e,children:yv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[xn("path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"}),xn("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),xn("path",{d:"M12 17h.01"})]})})}import{SvgIcon as xv}from"@mui/material";import{jsx as vn,jsxs as vv}from"react/jsx-runtime";function za(e){return vn(xv,{...e,children:vv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[vn("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),vn("path",{d:"M3 3v5h5"}),vn("path",{d:"M12 7v5l4 2"})]})})}import{SvgIcon as bv}from"@mui/material";import{jsx as Or,jsxs as Cv}from"react/jsx-runtime";function Wa(e){return Or(bv,{...e,children:Cv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Or("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),Or("path",{d:"M8 7v7"}),Or("path",{d:"M12 7v4"}),Or("path",{d:"M16 7v9"})]})})}import{SvgIcon as wv}from"@mui/material";import{jsx as bn,jsxs as Sv}from"react/jsx-runtime";function Ga(e){return bn(wv,{...e,children:Sv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[bn("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),bn("polyline",{points:"16 17 21 12 16 7"}),bn("line",{x1:"21",x2:"9",y1:"12",y2:"12"})]})})}import{SvgIcon as Tv}from"@mui/material";import{jsx as Ha,jsxs as Pv}from"react/jsx-runtime";function Ua(e){return Ha(Tv,{...e,children:Pv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"white",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ha("path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}),Ha("circle",{cx:"12",cy:"10",r:"3"})]})})}import{SvgIcon as kv}from"@mui/material";import{jsx as Cn,jsxs as Iv}from"react/jsx-runtime";function ja(e){return Cn(kv,{...e,children:Iv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Cn("path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"}),Cn("path",{d:"M15 5.764v15"}),Cn("path",{d:"M9 3.236v15"})]})})}import{SvgIcon as Ev}from"@mui/material";import{jsx as wn,jsxs as Av}from"react/jsx-runtime";function qa(e){return wn(Ev,{...e,children:Av("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[wn("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),wn("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),wn("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})})}import{SvgIcon as Mv}from"@mui/material";import{jsx as nr,jsxs as Dv}from"react/jsx-runtime";function Ya(e){return nr(Mv,{...e,children:Dv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[nr("path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),nr("path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4"}),nr("path",{d:"m21 3 1 11h-2"}),nr("path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),nr("path",{d:"M3 4h8"})]})})}import{SvgIcon as Fv}from"@mui/material";import{jsx as Ka,jsxs as Rv}from"react/jsx-runtime";function Za(e){return Ka(Fv,{...e,children:Rv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ka("path",{d:"m6 17 5-5-5-5"}),Ka("path",{d:"m13 17 5-5-5-5"})]})})}import{SvgIcon as Ov}from"@mui/material";import{jsx as Qa,jsxs as Bv}from"react/jsx-runtime";function Ja(e){return Qa(Ov,{...e,children:Bv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Qa("path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),Qa("circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})})}import{SvgIcon as _v}from"@mui/material";import{jsx as Xa,jsxs as Lv}from"react/jsx-runtime";function es(e){return Xa(_v,{...e,children:Lv("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Xa("circle",{cx:"11",cy:"11",r:"8"}),Xa("path",{d:"m21 21-4.3-4.3"})]})})}import{SvgIcon as $v}from"@mui/material";import{jsx as ir,jsxs as Nv}from"react/jsx-runtime";function ts(e){return ir($v,{...e,children:Nv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[ir("path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7"}),ir("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),ir("path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4"}),ir("path",{d:"M2 7h20"}),ir("path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7"})]})})}import{SvgIcon as Vv}from"@mui/material";import{jsx as Sn,jsxs as zv}from"react/jsx-runtime";function rs(e){return Sn(Vv,{...e,children:zv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Sn("path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}),Sn("path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}),Sn("path",{d:"M7 2h1a4 4 0 0 1 4 4v1"})]})})}import{SvgIcon as Wv}from"@mui/material";import{jsx as Br,jsxs as Gv}from"react/jsx-runtime";function os(e){return Br(Wv,{...e,children:Gv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Br("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),Br("circle",{cx:"9",cy:"7",r:"4"}),Br("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),Br("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})})}import{SvgIcon as Hv}from"@mui/material";import{jsx as ns,jsxs as Uv}from"react/jsx-runtime";function is(e){return ns(Hv,{...e,children:Uv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[ns("path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"}),ns("path",{d:"m10 15 5-3-5-3z"})]})})}import{SvgIcon as jv}from"@mui/material";import{jsx as Tn,jsxs as qv}from"react/jsx-runtime";function as(e){return Tn(jv,{...e,children:qv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tn("path",{d:"M12 17V3"}),Tn("path",{d:"m6 11 6 6 6-6"}),Tn("path",{d:"M19 21H5"})]})})}import{SvgIcon as Yv}from"@mui/material";import{jsx as At,jsxs as Kv}from"react/jsx-runtime";function ss(e){return At(Yv,{...e,children:Kv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[At("line",{x1:"3",x2:"21",y1:"22",y2:"22"}),At("line",{x1:"6",x2:"6",y1:"18",y2:"11"}),At("line",{x1:"10",x2:"10",y1:"18",y2:"11"}),At("line",{x1:"14",x2:"14",y1:"18",y2:"11"}),At("line",{x1:"18",x2:"18",y1:"18",y2:"11"}),At("polygon",{points:"12 2 20 7 4 7"})]})})}import{SvgIcon as Zv}from"@mui/material";import{jsx as _r,jsxs as Qv}from"react/jsx-runtime";function ls(e){return _r(Zv,{...e,children:Qv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_r("path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}),_r("path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}),_r("path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}),_r("path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"})]})})}import{SvgIcon as Jv}from"@mui/material";import{jsx as Pn,jsxs as Xv}from"react/jsx-runtime";function cs(e){return Pn(Jv,{...e,children:Xv("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Pn("circle",{cx:"16",cy:"16",r:"6"}),Pn("path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2"}),Pn("path",{d:"M16 14v2l1 1"})]})})}import{SvgIcon as eb}from"@mui/material";import{jsx as Lr,jsxs as tb}from"react/jsx-runtime";function us(e){return Lr(eb,{...e,children:tb("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Lr("path",{d:"M13.22 2.416a2 2 0 0 0-2.511.057l-7 5.999A2 2 0 0 0 3 10v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7.354"}),Lr("path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}),Lr("path",{d:"M15 6h6"}),Lr("path",{d:"M18 3v6"})]})})}import{SvgIcon as rb}from"@mui/material";import{jsx as ar,jsxs as ob}from"react/jsx-runtime";function ps(e){return ar(rb,{...e,children:ob("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[ar("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),ar("line",{x1:"3",x2:"21",y1:"9",y2:"9"}),ar("line",{x1:"3",x2:"21",y1:"15",y2:"15"}),ar("line",{x1:"9",x2:"9",y1:"9",y2:"21"}),ar("line",{x1:"15",x2:"15",y1:"9",y2:"21"})]})})}import{SvgIcon as nb}from"@mui/material";import{jsx as ds}from"react/jsx-runtime";function fs(e){return ds(nb,{...e,children:ds("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:ds("path",{d:"m15 18-6-6 6-6"})})})}import{SvgIcon as ib}from"@mui/material";import{jsx as ms}from"react/jsx-runtime";function gs(e){return ms(ib,{...e,children:ms("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:ms("path",{d:"m9 18 6-6-6-6"})})})}import{SvgIcon as ab}from"@mui/material";import{jsx as Re,jsxs as sb}from"react/jsx-runtime";function hs(e){return Re(ab,{...e,children:sb("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Re("path",{d:"M8 2v4"}),Re("path",{d:"M16 2v4"}),Re("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),Re("path",{d:"M3 10h18"}),Re("path",{d:"M8 14h.01"}),Re("path",{d:"M12 14h.01"}),Re("path",{d:"M16 14h.01"}),Re("path",{d:"M8 18h.01"}),Re("path",{d:"M12 18h.01"}),Re("path",{d:"M16 18h.01"})]})})}import{SvgIcon as lb}from"@mui/material";import{jsx as kn,jsxs as cb}from"react/jsx-runtime";function ys(e){return kn(lb,{...e,children:cb("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[kn("path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),kn("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),kn("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})})}var ub={Circle:ka,Dashboard:Fa,Expandable:_a,Down:Rr,Negociacao:Ya,Cadastro:Sa,Clientes:Ia,Filter:La,Search:es,ChevronDown:Mr,Kanban:Wa,Erease:Ba,BarCode:ba,TextCursor:rs,OpenPanel:Za,ClosePanel:Aa,Menu:qa,Configs:Da,Users:os,Password:Ja,Logout:Ga,History:za,Help:Va,Video:is,Docs:Ra,Block:wa,Maps:ja,MapPin:Ua,HandShake:Na,Store:ts,Download:as,ContaBancaria:ss,GrupoLancamento:ls,HistoricoPadrao:cs,Imovel:us,Lancamento:ps,ChevronLeft:fs,ChevronRight:gs,Calendar:hs,Save:ys,Profile:$a},ge=ub;import{jsx as bp}from"react/jsx-runtime";function xs(e){let{...t}=e;return bp(pb,{...t,children:bp(ge.Menu,{})})}var db={Root:va,Content:xa,ToggleMenu:xs},fb=db;import{Collapse as mb,List as gb,ListItem as hb,ListItemIcon as yb,ListItemText as xb,Icon as vb,ListItemButton as bb,styled as Cb}from"@mui/material";import{useState as wb}from"react";import{Fragment as Tb,jsx as nt,jsxs as Cp}from"react/jsx-runtime";var Sb=Cb(bb,{})(({theme:e})=>({height:"32px",cursor:"pointer",gap:e.spacing(2),transition:"0.2s ease-in-out",padding:`${e.spacing(.25)} ${e.spacing(2)} ${e.spacing(.25)} ${e.spacing(2)}`,"&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{fontSize:"0.805rem",color:e.palette.text.primary},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function vs({label:e,icon:t,visible:r=!0,children:o,selected:n=!1,onClick:a,link:i,secondaryLabel:l}){if(!r)return null;let[s,c]=wb(!1),u=!!o;function d(){if(u){c(m=>!m);return}a&&i&&a(i)}function f(m){return typeof t=="string"?nt(vb,{children:t}):m||nt(ge.Circle,{})}return Cp(Tb,{children:[nt(hb,{disableGutters:!0,disablePadding:!0,children:Cp(Sb,{selected:n,disableGutters:!0,onClick:m=>{m.stopPropagation(),d()},children:[nt(yb,{children:f(t)}),nt(xb,{primary:e}),l,u&&nt(ge.Expandable,{open:s})]})}),u&&nt(mb,{in:s,timeout:"auto",unmountOnExit:!0,children:nt(gb,{sx:{"& .MuiListItemButton-root":{paddingLeft:4},"& .MuiList-root > .MuiListItem-root > .MuiListItemButton-root":{paddingLeft:6},"& .MuiList-root > .MuiList-root > .MuiListItemButton-root":{paddingLeft:12}},disablePadding:!0,children:o})})]})}import{ListItem as Ib,ListItemIcon as Eb,ListItemText as Ab,Icon as Mb,ListItemButton as Db,Popper as Fb,styled as Rb}from"@mui/material";import Ob from"lodash";import bs,{useState as Bb}from"react";import{Paper as Pb}from"@mui/material";import{jsx as kb}from"react/jsx-runtime";function In(e){return kb(Pb,{sx:{p:2},elevation:0,...e})}import{jsx as Mt,jsxs as Lb}from"react/jsx-runtime";var _b=Rb(Db,{})(({theme:e})=>({cursor:"pointer",padding:`${e.spacing(1)} ${e.spacing(0)} ${e.spacing(.25)} ${e.spacing(0)}`,minHeight:"32px",flexDirection:"column",justifyContent:"center",alignItem:"center",alignContent:"center","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiTypography-root":{fontSize:"0.805rem",color:e.palette.text.primary},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function wp(e,t){return bs.Children.map(e,r=>{if(!bs.isValidElement(r))return r;let o=r.props?.children?wp(r.props.children,t):null;return bs.cloneElement(r,{open:t,children:o})})}function Cs(e){let{icon:t,label:r,link:o,id:n,selected:a=!1,children:i,onClick:l}=e,[s,c]=Bb(null);function u(){l&&o&&l(o)}function d(p,y){c({element:p.currentTarget,id:y})}function f(){c(null)}let m=wp(i,!0);function g(p){return typeof t=="string"?Mt(Mb,{children:t}):p||Mt(ge.Circle,{})}return Mt(Ib,{disableGutters:!0,disablePadding:!0,children:Lb(_b,{selected:a,onMouseEnter:p=>{o||d(p,n)},onMouseLeave:()=>{o||f()},disableGutters:!0,onClick:p=>{p.stopPropagation(),u()},children:[Mt(Eb,{children:g(t)}),Mt(Ab,{primary:Ob.truncate(r,{length:12})}),s?.id===n&&Mt(Fb,{sx:{zIndex:999999},anchorEl:s?.element,open:!!s?.element,placement:"right-start",children:Mt(In,{elevation:1,sx:{position:"relative","&::before":{content:'""',position:"absolute",left:-8,width:"1.2rem",height:"1.2rem",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1waW4tc2FmZXR5LW9wZW4iPjxwYXRoIGQ9Ik0yMC44IDMuMmMtMS42LTEuNi00LjEtMS42LTUuNyAwTDEyLjMgNlMxNSA5IDE4IDZjLTMgMyAwIDUuNyAwIDUuN2wyLjgtMi44YzEuNi0xLjYgMS42LTQuMiAwLTUuNyIvPjxwYXRoIGQ9Im03LjEgMjEuMSAxMC4zLTEwLjIiLz48Y2lyY2xlIGN4PSI1IiBjeT0iMTkiIHI9IjMiLz48cGF0aCBkPSJNOSAycy00LjEgOS41LTYuNzU1IDE1LjgiLz48L3N2Zz4=")',backgroundSize:"contain",backgroundRepeat:"no-repeat",transition:"transform 0.2s ease-in-out"},p:1,width:p=>p.mixins.menu?.width},children:m})})]})})}import{jsx as Sp}from"react/jsx-runtime";function ws(e){let{open:t,isFirstLevel:r=!1,...o}=e;return t?Sp(vs,{...o}):Sp(Cs,{...o})}import{createContext as $b,useContext as Nb,useEffect as Vb,useState as zb}from"react";import{jsx as Hb}from"react/jsx-runtime";function Wb(e,t){if(!e)throw new Error(t)}var Tp=$b(null);function Pp(e){let{children:t,storageKey:r="mio:menu"}=e,[o,n]=zb(()=>{let i=window.localStorage.getItem(r)||"true";return i?JSON.parse(i):!0});function a(){n(i=>!i)}return Vb(()=>{window.localStorage.setItem(r,JSON.stringify(o))},[o,r]),Hb(Tp.Provider,{value:{isOpen:o,toggleMenu:a},children:t})}function Gb(){let e=Nb(Tp);return Wb(e,"cannot find MenuContext provider"),e}import{List as Ub,Drawer as jb}from"@mui/material";import{styled as Ap}from"@mui/material/styles";import Ss from"react";import{jsx as Ep,jsxs as Kb}from"react/jsx-runtime";var kp=e=>({width:e?.mixins?.menu?.width||64,background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Ip=e=>({background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:0,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(12)} + 1px)`}}),qb=Ap(jb,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({width:e?.mixins?.menu?.width||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...kp(e),"& .MuiDrawer-paper":kp(e)},...!t&&{...Ip(e),"& .MuiDrawer-paper":Ip(e)}})),Yb=Ap("div")(({theme:e})=>e.mixins.toolbar);function Mp(e,t,r,o){return Ss.Children.map(e,n=>{if(!Ss.isValidElement(n))return n;let a=n.props.link?.split("/").filter(Boolean)||[],i=n.props.link||"",c="/"+(t?.split("/").filter(Boolean)||[]).slice(0,a.length).join("/"),u=n.props?.children?Mp(n.props.children,t,r,o):null;return Ss.cloneElement(n,{open:r,selected:c===i,onClick:d=>{o&&o(d)},children:u})})}function Ts(e){let{open:t,toggleMenu:r,children:o,onClickItem:n,listProps:a}=e,l=new URL(window.location.href).pathname,s=Mp(o,l,t,n);return Kb(qb,{variant:"permanent",open:t,onClose:r,children:[Ep(Yb,{}),Ep(Ub,{...a,children:s})]})}import{jsx as Jb}from"react/jsx-runtime";function Zb(e){return e.map(t=>t.visible?Jb(Dp.Item,{link:t.link,id:t.id,label:t.label,icon:t.icon,secondaryLabel:t.secondaryLabel,children:t.items&&Zb(t.items)},t.id):null)}var Dp={Root:Ts,Item:ws,Provider:Pp};var Qb=Dp;import{Button as Xb,Breadcrumbs as eC,Typography as tC}from"@mui/material";import{jsx as Ps}from"react/jsx-runtime";function Fp(e){let{links:t}=e;function r(o,n){location.pathname}return Ps(eC,{sx:{height:"30px",display:"flex",textWrap:"nowrap"},children:t.map((o,n)=>t.length===1||t.length===n+1?Ps(tC,{sx:{fontSize:"10pt",fontWeight:"bolder"},variant:"subtitle1",color:"black",children:o.label},o.link):Ps(Xb,{variant:"text",children:o.label},o.link))})}import{Stack as rC}from"@mui/material";import{jsx as oC}from"react/jsx-runtime";function ks(e){let{children:t}=e;return oC(rC,{pl:1,pr:1,pt:.5,pb:.5,direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",spacing:1,children:t})}var nC={Root:ks},iC=nC;import{Stack as aC}from"@mui/material";import{jsx as sC}from"react/jsx-runtime";function Is({children:e,...t}){return sC(aC,{pt:1,pl:1,pr:1,pb:1,direction:"row",spacing:1,justifyContent:"flex-end",sx:{backgroundColor:r=>r.palette.background.paper,borderTop:r=>`1px solid ${r.palette.border}`},...t,children:e})}import{IconButton as fC}from"@mui/material";import Bp,{useContext as _p,useEffect as Rp,useMemo as cC,useReducer as uC}from"react";var lC=process.env.NODE_ENV==="production",Es="Invariant failed";function As(e,t){if(!e){if(lC)throw new Error(Es);var r=typeof t=="function"?t():t,o=r?"".concat(Es,": ").concat(r):Es;throw new Error(o)}}import{v4 as pC}from"uuid";import{jsx as Op}from"react/jsx-runtime";function dC(e,t){switch(t.type){case"loadFiltersFromStorage":return{...e,filterValues:t?.storageValues?.filterValues,appliedValues:t?.storageValues?.appliedValues};case"updateFilterValues":return{...e,filterValues:t.filterValues};case"updateFilterValue":return{...e,filterValues:{...e.filterValues,[t.payload.name]:t.payload.value}};case"updateAppliedValues":let r=e.filterValues,o=[];if(r&&Object.entries(r).length>0){let[s]=Object.keys(r);o=[{[s]:r[s]}]}return t?.storagePath&&localStorage.setItem(t.storagePath,JSON.stringify({appliedValues:r,filterValuesAsArray:o,filterValues:e.filterValues})),t.onFilterApplied&&t.onFilterApplied(r),{...e,appliedValues:r,filterValuesAsArray:o,isOpen:!1,searchId:pC()};case"updateIsOpen":return{...e,isOpen:t.isOpen,target:t.target};case"updateContainer":return{...e,container:t.container};case"toggleIsOpen":return{...e,isOpen:!e.isOpen};case"deleteAppliedValue":let{[t.filterName]:n,...a}=e.appliedValues||{},{[t.filterName]:i,...l}=e.filterValues||{};if(t?.storagePath){let s=JSON.parse(localStorage.getItem(t.storagePath)||"{}"),{[t.filterName]:c,...u}=s.appliedValues||{},{[t.filterName]:d,...f}=s.filterValues||{};localStorage.setItem(t.storagePath,JSON.stringify({...s,appliedValues:u,filterValues:f}))}return{...e,appliedValues:a,filterValues:l};case"deleteAllAppliedValues":return t.storagePath&&localStorage.removeItem(t.storagePath),t.onFilterApplied&&t.onFilterApplied(t.filterValues),{...e,appliedValues:{},filterValues:t.filterValues}}}var Lp=Bp.createContext({}),$p=Bp.createContext({});function Np(e){let{children:t,filterValues:r,storagePath:o,onFilterApplied:n}=e,[a,i]=uC(dC,{filterValues:{}});Rp(()=>{r!=null&&(i({type:"updateFilterValues",filterValues:r}),i({type:"updateAppliedValues",storagePath:o,onFilterApplied:n}))},[r,o,n]),Rp(()=>{if(o){let s=localStorage.getItem(o);if(s&&s!=="undefined"){let c=JSON.parse(s);i({type:"loadFiltersFromStorage",storageValues:c})}}},[o]);let l=cC(()=>{function s(x){i({type:"updateIsOpen",isOpen:!0,target:x?.target||void 0})}function c(){i({type:"updateIsOpen",isOpen:!1,target:void 0})}function u(){i({type:"toggleIsOpen"})}function d(x){let S=x.target.type,w=x.target.name,C;switch(S){case"text":C=x.target.value;break;case"checkbox":C=x.target.checked;break;default:C=x.target.value}i({type:"updateFilterValue",payload:{name:w,value:C}})}function f(x,S){i({type:"updateFilterValue",payload:{name:x,value:S}})}function m(x){i({type:"updateFilterValues",filterValues:x})}function g(){i({type:"updateAppliedValues",storagePath:o,onFilterApplied:n})}function p(x){i({type:"deleteAppliedValue",filterName:x,storagePath:o,onFilterApplied:n})}function y(){i({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),i({type:"updateAppliedValues",storagePath:o,onFilterApplied:n})}function v(x){i({type:"updateContainer",container:x})}return{setContainer:v,openFilter:s,closeFilter:c,onChangeFilterValue:d,changeFilterValue:f,changeFilterValues:m,applyFilterValues:g,deleteFilterValue:p,deleteAllFilterValues:y,toggleFilter:u}},[r]);return Op($p.Provider,{value:l,children:Op(Lp.Provider,{value:a,children:t})})}function sr(){let e=_p(Lp);return As(e,"cannot find FilterDataContext provider"),e}function Ie(){let e=_p($p);return As(e,"cannot find FilterApiContextContext provider"),e}import{jsx as Vp}from"react/jsx-runtime";function Ms(){let{openFilter:e}=Ie();return Vp(fC,{onClick:t=>{e(t)},children:Vp(ge.Filter,{})})}import{Popover as mC}from"@mui/material";import{jsx as gC}from"react/jsx-runtime";function Ds(e){let{children:t}=e,{isOpen:r,container:o}=sr(),{closeFilter:n}=Ie();return gC(mC,{elevation:0,open:r,onClose:n,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{"& .MuiPopover-paper":{width:"360px",border:i=>`1px solid ${i.palette.border}`,borderRadius:"8px",mt:.5,pt:2}},children:t})}import{Box as hC}from"@mui/material";import{jsx as yC}from"react/jsx-runtime";function Fs({children:e}){return yC(hC,{mt:1,ml:1,mr:1,mb:2,children:e})}import{Button as xC,Stack as vC}from"@mui/material";import{jsx as Rs,jsxs as bC}from"react/jsx-runtime";function Os(){let{applyFilterValues:e}=Ie();return Rs(xC,{variant:"contained",onClick:()=>{e()},children:bC(vC,{direction:"row",spacing:.5,alignItems:"center",children:[Rs(ge.Search,{sx:{fontSize:"0.855rem"}})," ",Rs("span",{children:"Pesquisar"})]})})}import{Chip as CC}from"@mui/material";import{jsx as wC}from"react/jsx-runtime";function Bs(e){let{children:t,disabledDelete:r=!1,...o}=e;return wC(CC,{...o})}import{usePopover as SC}from"@data-c/hooks";import{Box as TC,Button as zp,Popover as PC,Stack as Wp}from"@mui/material";import $r from"react";import{jsx as _s,jsxs as Ls}from"react/jsx-runtime";function $s({children:e}){let{appliedValues:t}=sr(),{applyFilterValues:r,deleteFilterValue:o}=Ie(),{isOpen:n,open:a,close:i,anchorEl:l,data:s}=SC(),c=$r.Children.map(e,u=>!$r.isValidElement(u)||!(t&&u.props.name in t)?null:$r.cloneElement(u,{onDelete:u.props.disabledDelete?void 0:f=>{o&&o(u.props.name||""),i()},onClick:f=>{a(f,{target:f.currentTarget,name:u.props.name,disabledDelete:u.props.disabledDelete||!1})}}));return Ls(Wp,{direction:"row",spacing:.5,flex:1,justifyContent:"flex-end",children:[c,Ls(PC,{open:!!n||!1,onClose:()=>i(),anchorEl:l,elevation:0,sx:{"& .MuiPopover-paper":{minWidth:"300px",border:u=>`1px solid ${u.palette.border}`,borderRadius:"8px",mt:1}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[_s(TC,{pt:2,pl:1,pr:1,pb:2,children:$r.Children.map(e,u=>$r.isValidElement(u)&&u.props.name===s?.name?u.props.children:null)}),Ls(Wp,{sx:{backgroundColor:u=>u.palette.background.paper,borderTop:u=>`1px solid ${u.palette.border}`},p:1,direction:"row",justifyContent:"flex-end",spacing:1,children:[!s?.disabledDelete&&_s(zp,{color:"error",onClick:()=>{o&&o(s?.name||""),i()},children:"Apagar"}),_s(zp,{variant:"contained",onClick:()=>{i(),r()},children:"Aplicar"})]})]})]})}import{Stack as Gp}from"@mui/material";import{useEffect as kC,useRef as IC}from"react";import{jsx as Hp,jsxs as EC}from"react/jsx-runtime";function Ns({children:e}){let t=IC(null),{setContainer:r}=Ie(),{container:o}=sr();return kC(()=>{let n=()=>{t.current&&r(t.current)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[o]),EC(Gp,{ref:t,direction:"row",alignContent:"center",alignItems:"center",spacing:1,children:[Hp(ge.Search,{sx:{fontSize:"0.95rem"}}),Hp(Gp,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center",children:e})]})}import{Button as AC}from"@mui/material";import{jsx as MC}from"react/jsx-runtime";function Vs(){let{deleteAllFilterValues:e}=Ie();return MC(AC,{color:"error",onClick:()=>{e&&e()},children:"Resetar"})}import{Box as DC}from"@mui/material";import{jsx as FC}from"react/jsx-runtime";function zs(e){let{children:t}=e;return FC(DC,{sx:{border:r=>`1px solid ${r.palette.border}`,borderRadius:"90px",flexGrow:1,pl:1,pr:1},children:t})}import{InputBase as RC}from"@mui/material";import OC from"lodash";import{jsx as BC}from"react/jsx-runtime";function Ws(e){let{onChange:t,...r}=e,o=OC.debounce(a=>t(a),500);function n(a){let i=a.target.value;o(i)}return BC(RC,{fullWidth:!0,onChange:n,...r})}var _C={Root:zs,SearchTextField:Ws,Container:Ns,AdvancedContainer:Ds,AdvancedContent:Fs,AdvancedActionsContainer:Is,AdvancedButton:Ms,Provider:Np,ApplyButton:Os,ResetButton:Vs,Chips:$s,Chip:Bs},LC=_C;import{ColumnsPanelTrigger as J1,useGridApiRef as X1}from"@mui/x-data-grid";import{useEffect as Zp,useMemo as WC}from"react";import{Circle as Qp}from"@mui/icons-material";import{LinearProgress as GC,Stack as HC}from"@mui/material";import{DataGrid as UC,gridFilteredSortedRowIdsSelector as jC}from"@mui/x-data-grid";import{ptBR as qC}from"@mui/x-data-grid/locales";import{Stack as Gs,Typography as Up}from"@mui/material";import{jsx as En,jsxs as jp}from"react/jsx-runtime";function Hs(){return jp(Gs,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[En(Gs,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:En("img",{src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/empty-data.svg",alt:"Imagem de notifica\xE7\xE3o",width:"148px",height:"148px"})}),jp(Gs,{spacing:1,textAlign:"center",children:[En(Up,{variant:"h4",component:"h2",fontWeight:"600",children:"Nenhum registro encontrado"}),En(Up,{variant:"body2",whiteSpace:"normal",children:"Tente outra pesquisa ou adicione um novo registro."})]})]})}import{Stack as Us,Typography as qp}from"@mui/material";import{jsx as An,jsxs as Yp}from"react/jsx-runtime";function js({errorMessage:e}){return Yp(Us,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[An(Us,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:An("img",{src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/error.svg",alt:"Imagem de erro",width:"148px",height:"148px"})}),Yp(Us,{gap:1,textAlign:"center",children:[An(qp,{variant:"h4",component:"h2",fontWeight:"600",children:"Ops! Algo deu errado"}),An(qp,{variant:"body2",children:e})]})]})}import{createContext as $C,useContext as NC,useState as qs}from"react";import{useGridApiRef as VC}from"@mui/x-data-grid";import{jsx as zC}from"react/jsx-runtime";var Kp=$C({});function Ys({children:e}){let[t,r]=qs({type:"include",ids:new Set}),[o,n]=qs(!1),[a,i]=qs(!1),l=VC();function s(){r({type:"include",ids:new Set}),n(!0)}return zC(Kp.Provider,{value:{apiRef:l,rowsSelectedId:t,clearCallback:o,breakpoint:a,setClearCallback:n,setBreakpoint:i,setRowsSelectedId:r,clearRowsSelectedId:s},children:e})}function ze(){return NC(Kp)}import{jsx as lr,jsxs as KC}from"react/jsx-runtime";var YC=({apiRef:e})=>jC(e);function Ks(e){let{error:t,isLoading:r,isFetching:o,data:n,columns:a,controlledRowsSelectedId:i,onClearRowsSelectedId:l,onRowSelectionChange:s,onCellKeyDown:c,onRowDoubleClick:u,stackProps:d,slots:f,...m}=e,{rowsSelectedId:g,setRowsSelectedId:p,clearCallback:y,setClearCallback:v,apiRef:x}=ze(),S=WC(()=>k=>k.map(P=>P.headerName==="A\xE7\xF5es"?{...P,minWidth:P.minWidth||80,maxWidth:P.maxWidth||P.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}:{...P,flex:P.flex||1,minWidth:P.minWidth||100,headerClassName:P?.enableStickyColumns?"sticky-header":"",cellClassName:P?.enableStickyColumns?"sticky-cell":""}),[a]);Zp(()=>{i&&p(i)},[i]),Zp(()=>{y&&(l&&l({type:"include",ids:new Set}),v(!1))},[y]);function w(k,P,Q){switch(P.ctrlKey&&P.code==="KeyE"?"ctrl+e":P.code){case"Enter":P.preventDefault(),c&&c("edit",k.id);break;case"F3":P.preventDefault(),c&&c("edit",k.id);break;case"Delete":P.preventDefault(),c&&c("delete",k.id);break;case"ctrl+e":P.preventDefault(),(E=>{x?.current&&x.current.exportDataAsCsv(E)})({getRowsToExport:YC});break;default:break}}function C(k,P,Q){u&&u("edit",k.id)}return KC(HC,{height:"100%",minHeight:"500px",position:"relative",...d,children:[!r&&o&&lr(GC,{sx:{position:"absolute",top:0,right:0,left:0,zIndex:999,height:"3px"}}),lr(UC,{apiRef:x,rows:n,columns:S(a),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:C,onCellKeyDown:w,disableRowSelectionOnClick:!0,rowSelectionModel:g,onRowSelectionModelChange:(k,P)=>{s&&s(k,P),!i&&p(k)},slots:{booleanCellFalseIcon:()=>lr(Qp,{color:"error",sx:{fontSize:"10pt"}}),booleanCellTrueIcon:()=>lr(Qp,{color:"success",sx:{fontSize:"10pt"}}),noRowsOverlay:()=>!r&&t?lr(js,{errorMessage:t}):lr(Hs,{}),...f},slotProps:{loadingOverlay:{variant:"skeleton",noRowsVariant:"skeleton"}},disableColumnFilter:!0,localeText:qC.components.MuiDataGrid.defaultProps.localeText,sx:{border:"none",borderRadius:0,"--DataGrid-rowBorderColor":"#edf2f9","--DataGrid-containerBackground":"#f4f6fa",".MuiDataGrid-overlayWrapperInner":{display:"flex",alignItems:"center",justifyContent:"center"},".MuiDataGrid-row":{backgroundColor:"white","&:nth-of-type(even)":{backgroundColor:"#f9fafd"},":hover":{backgroundColor:"#e9e9e9"},"&.Mui-selected":{backgroundColor:"rgb(238, 249, 252)","&:hover":{backgroundColor:"rgb(222, 243, 249)"}}},".MuiDataGrid-cell":{fontSize:"12px",color:"#0b0e14"},".MuiDataGrid-columnHeaders":{border:"solid 1px #edf2f9"},".MuiDataGrid-columnHeaderTitle":{fontSize:"12px",color:"#0b0e14",fontWeight:"600"},"& .sticky-cell":{position:"sticky",right:0,background:"inherit",zIndex:1},"& .sticky-header":{position:"sticky",right:0,background:"inherit",zIndex:2}},...m})]})}import{GridActionsCellItem as ZC}from"@mui/x-data-grid";import{jsx as QC}from"react/jsx-runtime";function Zs(e){let{ref:t,...r}=e;return QC(ZC,{...r,ref:t})}import{GridActionsCellItem as JC}from"@mui/x-data-grid";import{Trash2 as XC}from"lucide-react";import{jsx as Jp}from"react/jsx-runtime";function Qs(e){let{ref:t,...r}=e;return Jp(JC,{color:"error",label:"Deletar",icon:Jp(XC,{size:16}),...r,ref:t})}import{GridActionsCellItem as e1}from"@mui/x-data-grid";import{Pencil as t1}from"lucide-react";import{jsx as Xp}from"react/jsx-runtime";function Js(e){let{ref:t,...r}=e;return Xp(e1,{label:"Editar",color:"primary",icon:Xp(t1,{size:16}),...r,ref:t})}import{useEffect as r1}from"react";import{Stack as o1,useMediaQuery as n1,useTheme as i1}from"@mui/material";import{jsx as a1}from"react/jsx-runtime";function Xs({children:e,breakpoints:t}){let{setBreakpoint:r}=ze(),o=i1(),n=n1(o.breakpoints.down(t||"md"));return r1(()=>{r(n)},[n]),a1(o1,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:1,marginLeft:"auto",flexGrow:1,children:e})}import{GridActionsCellItem as s1}from"@mui/x-data-grid";import{ArrowBigDown as l1}from"lucide-react";import{jsx as ed}from"react/jsx-runtime";function el(e){let{ref:t,...r}=e;return ed(s1,{color:"primary",label:"Transportar",icon:ed(l1,{size:16}),...r,ref:t})}import{Button as c1,CircularProgress as td,IconButton as u1,Tooltip as p1,Box as d1}from"@mui/material";import{Fragment as f1,jsx as Nr,jsxs as rd}from"react/jsx-runtime";function Vr(e){let{isLoading:t,startIcon:r,children:o,title:n,...a}=e,{breakpoint:i}=ze();return Nr(f1,{children:i?Nr(p1,{title:o,children:rd(u1,{...a,color:"primary",disabled:t?!0:a.disabled,children:[r,t&&Nr(td,{color:"secondary",size:14,sx:{position:"absolute",top:"25%",bottom:"25%",left:"25%",right:"25%",transform:"translate(-50%, -50%)"}})]})}):Nr(c1,{startIcon:r,disabled:t?!0:a.disabled,sx:{position:"relative",height:"26px",minWidth:"70px",padding:"7px 8px 8px",border:"1px solid rgba(223, 226, 231, 0.8)",borderRadius:"6px",display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:1,transition:"width 0.2s ease"},...a,children:rd(d1,{component:"span",sx:{transition:"opacity 0.2s ease, width 0.2s ease",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[t&&Nr(td,{color:"secondary",size:14,sx:{position:"absolute",top:"22%",left:"44%",transform:"translate(-50%, -50%)"}}),o]})})})}import{GridActionsCellItem as m1}from"@mui/x-data-grid";import{jsx as od}from"react/jsx-runtime";function tl(e){let{event:t,onClick:r,...o}=e;return od(m1,{label:"A\xE7\xE3o",onClick:()=>{},icon:od("span",{children:"\u{1F527}"})})}import{Delete as g1}from"@mui/icons-material";import{GridActionsCellItem as h1}from"@mui/x-data-grid";import{jsx as nd}from"react/jsx-runtime";function rl({onClick:e,...t}){return nd(h1,{icon:nd(g1,{}),label:"Delete",color:"primary",onClick:()=>{e&&e("delete")},...t})}import{Edit as y1}from"@mui/icons-material";import{GridActionsCellItem as x1}from"@mui/x-data-grid";import{jsx as id}from"react/jsx-runtime";function ol({onClick:e,...t}){return id(x1,{icon:id(y1,{}),label:"Edit",color:"primary",onClick:()=>e&&e("edit"),...t})}import{Children as v1,cloneElement as b1,isValidElement as C1}from"react";import{Fragment as w1,jsx as S1}from"react/jsx-runtime";function nl(e){let{children:t,onClick:r}=e;return S1(w1,{children:v1.map(t,o=>{if(C1(o))return b1(o,{onClick:r})})})}import{GetApp as T1}from"@mui/icons-material";import{GridActionsCellItem as P1}from"@mui/x-data-grid";import{jsx as ad}from"react/jsx-runtime";function il({onClick:e,...t}){return ad(P1,{icon:ad(T1,{}),label:"Transport",color:"primary",onClick:()=>e&&e("transport"),...t})}import{Stack as k1}from"@mui/material";import{jsx as I1}from"react/jsx-runtime";function al(e){return I1(k1,{direction:"row",width:"100%",flexGrow:1,alignItems:"center",gap:1.5,sx:{background:"#f4f"},...e})}import{FileDownload as E1}from"@mui/icons-material";import{gridFilteredSortedRowIdsSelector as A1}from"@mui/x-data-grid";import{jsx as sd}from"react/jsx-runtime";var M1=({apiRef:e})=>A1(e);function sl(){let{apiRef:e}=ze(),t=r=>{e?.current&&e.current.exportDataAsCsv(r)};return sd(Vr,{startIcon:sd(E1,{}),onClick:()=>t({getRowsToExport:M1}),children:"Exportar CSV"})}import{TableFooter as D1}from"@mui/material";import{jsx as F1}from"react/jsx-runtime";function ll(e){return F1(D1,{...e,sx:{height:"54px",paddingX:"12px",gap:"12px",display:"flex",alignItems:"center",backgroundColor:"white",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",borderTop:"1px solid #edf2f9"}})}import{useMemo as ld}from"react";import{TextField as R1,Pagination as O1,MenuItem as B1,Stack as cd,Typography as _1}from"@mui/material";import{pluralizar as ud}from"@data-c/hooks";import{jsx as Mn,jsxs as pd}from"react/jsx-runtime";function cl(e){let{onChangePageSize:t,onChangePage:r,pagination:o,rowsPerPageOptions:n=[15,50,100,200]}=e,{page:a,pageSize:i=15,totalRecords:l}=o||{},s=ld(()=>o?.lastPage?o.lastPage:(l||0)<i?1:Math.max(Math.ceil((l||0)/i)),[l,i]),c=ld(()=>{if((l||0)<i)return`Exibindo ${ud(l||0,"registro","registros",!0)}`;let d=i;if(a===s){let f=(l||0)%i;d=f===0?i:f}return`Exibindo ${ud(d||0,"registro","registros",!0)} de ${l}`},[o,s]);return pd(cd,{width:"100%",direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[Mn(_1,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:c}),!0&&pd(cd,{direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[Mn(R1,{sx:{width:"78px",fontSize:"8pt"},size:"small",value:i||0,select:!0,onChange:d=>{t&&t(parseInt(d.target.value))},children:n.map(d=>Mn(B1,{value:d,children:d},d))}),Mn(O1,{variant:"outlined",shape:"rounded",count:s||0,showFirstButton:!0,showLastButton:!0,onChange:(d,f)=>{r&&r(f)},page:a||0,color:"primary"})]})]})}import{useEffect as L1,useRef as $1,useState as N1}from"react";import{Stack as V1}from"@mui/material";import{jsx as dd}from"react/jsx-runtime";function ul({children:e,height:t,...r}){let o=$1(null),[n,a]=N1(500);return L1(()=>{let i=()=>{let l=o.current;if(!l)return;let s=l.getBoundingClientRect().top;a(window.innerHeight-s)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]),dd(V1,{ref:o,sx:{backgroundColor:"#f4f6fa",border:"1px solid #edf2f9",borderRadius:2,height:t||`calc(${n}px - 16px)`,...r.sx},...r,children:dd(Ys,{children:e})})}import{Stack as z1,Typography as W1}from"@mui/material";import{useMemo as G1}from"react";import{jsx as U1,jsxs as H1}from"react/jsx-runtime";function pl(e){let{countTitle:t,gender:r}=e,{rowsSelectedId:o}=ze(),n=o?.ids.size||0,a=G1(()=>{if(!t)return"";let i=r==="feminino"?"selecionada":"selecionado",l=r==="feminino"?"selecionadas":"selecionados",s=r==="feminino"?"Nenhuma":"Nenhum";return n===1?`${t} ${i}`:n&&n>1?`${t.split(" ").map(c=>`${c}s`).join(" ")} ${l}`:`${s} ${t} ${i}`},[n]);return U1(z1,{children:H1(W1,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:[n&&n>0?n:""," ",a]})})}import{Typography as j1,useTheme as q1}from"@mui/material";import{jsx as Y1}from"react/jsx-runtime";function dl({children:e,titleDivider:t=!1,sx:r}){let o=q1();return Y1(j1,{variant:"h6",whiteSpace:"nowrap",sx:{borderRight:t?`solid 1px ${o.palette.grey[300]}`:"none",paddingRight:1.5,...r},children:e})}import{Paper as K1,Stack as Z1}from"@mui/material";import{jsx as Q1}from"react/jsx-runtime";function fl({children:e}){return Q1(Z1,{component:K1,elevation:0,gap:1.5,flexDirection:"row",justifyContent:"space-between",alignItems:"center",p:1,borderRadius:"8px 8px 0 0",sx:{width:"100%"},children:e})}var ew={CellActionTransport:il,SelectionCounter:pl,CellActionDelete:rl,ExportCsvButton:sl,CellActionEdit:ol,CellActions:nl,CellAction:tl,Pagination:cl,Actions:Xs,Toolbar:fl,Content:al,Button:Vr,Footer:ll,Table:Ks,Title:dl,Root:ul,Action:Zs,ActionEdit:Js,ActionDelete:Qs,ActionTransport:el,ColumnsPanelTrigger:J1,useGridApiRef:X1},tw=ew;import{Stack as rw}from"@mui/material";import{jsx as ow}from"react/jsx-runtime";function ml(e){return ow(rw,{gap:.5,overflow:"hidden",...e})}import{Stack as nw}from"@mui/material";import{jsx as iw}from"react/jsx-runtime";function gl(e){return iw(nw,{sx:[{overflowY:"auto",overflowX:"hidden"},...Array.isArray(e.sx)?e.sx:e.sx?[e.sx]:[]],...e})}import{MenuItem as aw}from"@mui/material";import{jsx as sw}from"react/jsx-runtime";function hl(e){return sw(aw,{...e})}var lw={Root:ml,Content:gl,Item:hl},zr=lw;import{createContext as cw,useCallback as fd,useContext as uw,useEffect as pw,useState as md}from"react";import{jsx as dw}from"react/jsx-runtime";var gd=cw(void 0),hd=({children:e,open:t,onOpenChange:r})=>{let[o,n]=md(!1),[a,i]=md(null),l=fd(c=>{i(c),n(!0),r?.(!0)},[]),s=fd(()=>{n(!1),i(null),r?.(!1)},[]);return pw(()=>{n(!!t)},[t]),dw(gd.Provider,{value:{isOpen:o,open:l,close:s,anchorEl:a,setAnchorEl:i},children:e})},cr=()=>{let e=uw(gd);if(!e)throw new Error("usePopover must be used within a PopoverProvider");return e};import{jsx as fw}from"react/jsx-runtime";function yl(e){let{children:t,open:r,onOpenChange:o}=e;return fw(hd,{open:r,onOpenChange:o,children:t})}import{Button as mw}from"@mui/material";import{Slot as gw}from"@radix-ui/react-slot";import{jsx as hw}from"react/jsx-runtime";function xl(e){let{asChild:t=!1,...r}=e,o=t?gw:mw,{open:n}=cr();return hw(o,{onClick:a=>{n(a.currentTarget)},...r})}import{Button as yw}from"@mui/material";import{Slot as xw}from"@radix-ui/react-slot";import{jsx as vw}from"react/jsx-runtime";function vl(e){let{asChild:t=!1,...r}=e,o=t?xw:yw,{close:n}=cr();return vw(o,{onClick:a=>{n()},...r})}import{Popover as bw}from"@mui/material";import{jsx as Cw}from"react/jsx-runtime";function bl(e){let{isOpen:t,close:r,anchorEl:o}=cr();return Cw(bw,{open:t,anchorEl:o,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},slotProps:{paper:{sx:{borderRadius:"12px"}}},transformOrigin:{vertical:"top",horizontal:"center"},...e,children:e.children})}var ww={Root:yl,Trigger:xl,Content:bl,Close:vl},ur=ww;import{Button as Sw,ButtonGroup as Tw,ClickAwayListener as Pw,Grow as kw,MenuList as Iw,MenuItem as Ew,Paper as Aw,Popper as Mw}from"@mui/material";import yd,{Children as Dw,useEffect as xd,useRef as Fw,useState as vd}from"react";import{jsx as it,jsxs as Cd}from"react/jsx-runtime";var bd="mio-componente:button-group:value";function Cl(e){let{children:t,value:r,onChange:o,isLoading:n,disableMemory:a}=e,[i,l]=vd(!1),[s,c]=vd(()=>{if(!a)return window.localStorage.getItem(bd)||r||0;if(r)return r}),u=Fw(null);xd(()=>{c(r===void 0?0:r)},[r]),xd(()=>{window.localStorage.setItem(bd,s||0),c(s)},[s]);let d=[],f=Dw.map(t,(m,g)=>{d.push({label:m.props.children,value:m.props?.value||g});let p=yd.cloneElement(m,{isLoading:n,sx:{maxWidth:"300px",width:"120px"},value:m.props?.value||g});return!s&&g===0||s&&Number(p.props.value)===Number(s)?p:null});return Cd(yd.Fragment,{children:[Cd(Tw,{variant:"contained",size:"small",ref:u,children:[f,it(Sw,{disabled:n,"data-allow-click":"true",onClick:()=>{l(m=>!m)},sx:{width:"30px"},children:it(Mr,{sx:{fontSize:"13pt"}})})]}),it(Mw,{open:i,transition:!0,anchorEl:u.current,sx:{zIndex:999999},placement:"bottom-end",children:({TransitionProps:m})=>it(kw,{...m,children:it(Aw,{sx:{minWidth:"120px"},children:it(Pw,{onClickAway:()=>l(!1),children:it(Iw,{autoFocusItem:!0,disablePadding:!0,children:d.map(g=>it(Ew,{onClick:()=>{o?o(g.value):c(g.value),l(!1)},children:g.label},g.value))})})})})})]})}import{jsx as Rw}from"react/jsx-runtime";function wl(e){return Rw(R,{...e})}var Ow={Root:Cl,Button:wl},Bw=Ow;import{Box as _w}from"@mui/material";import{jsx as Lw}from"react/jsx-runtime";function Sl(e){let{children:t,sx:r,...o}=e;return Lw(_w,{sx:{position:"relative",border:n=>`1px solid ${n.palette.divider} `,boxShadow:n=>`1px 2px 4px ${n.palette.divider}`,borderRadius:2,...r},...o,children:t})}import{Box as $w,Stack as Nw}from"@mui/material";import wd from"react";import{jsx as Sd}from"react/jsx-runtime";function Tl(e){let{children:t}=e,r=wd.Children.toArray(t).map(o=>wd.isValidElement(o)&&Sd($w,{sx:{},children:o}));return Sd(Nw,{sx:{backgroundColor:o=>o.palette.background.paper,borderBottom:o=>`solid 1px ${o.palette.divider}`,height:"30px",pl:1,pr:1},direction:"row",alignItems:"center",justifyContent:"space-between",children:t})}import{Typography as Vw}from"@mui/material";import{jsx as zw}from"react/jsx-runtime";function Pl(e){let{title:t}=e;return zw(Vw,{component:"h6",variant:"h6",children:t})}import{Stack as Ww}from"@mui/material";import{jsx as Gw}from"react/jsx-runtime";function kl(e){let{children:t,...r}=e;return Gw(Ww,{...r,sx:{p:1,...r.sx},children:t})}var Hw={Root:Sl,Content:kl,Header:Tl,Title:Pl},Uw=Hw;import*as jw from"lucide-react";import{jsx as Kw}from"react/jsx-runtime";var qw=({name:e,size:t=16,strokeWidth:r=1.5,color:o="currentColor",...n})=>{let a=jw[e];return Kw(a,{size:t,strokeWidth:r,color:o,...n})},Yw=qw;import{Typography as Zw,useTheme as Qw}from"@mui/material";import{jsx as Xw}from"react/jsx-runtime";function Jw(e,t){switch(t){case"title1":return{fontSize:"2rem",color:e.palette.primary.main,fontWeight:700};case"title2":return{fontSize:"1.25rem",color:e.palette.text.secondary,fontWeight:500};case"title3":return{fontSize:"0.850rem",color:e.palette.grey[600],fontWeight:700};default:return{}}}function Dn({children:e,variant:t="title1",sx:r,...o}){let n=Qw();return Xw(Zw,{sx:{...Jw(n,t),...r},...o,children:e})}import{Box as eS}from"@mui/material";import{jsx as tS}from"react/jsx-runtime";function Il(e){return tS(eS,{mt:2,sx:{display:"flex",flexDirection:"column",flexGrow:1},...e})}import{Stack as rS}from"@mui/material";import{jsx as oS}from"react/jsx-runtime";function El(e){let{children:t,...r}=e;return oS(rS,{direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",spacing:1,...r,children:t})}import{Container as nS}from"@mui/material";import{jsx as iS}from"react/jsx-runtime";function Al(e){return iS(nS,{sx:{padding:1,inset:0,overflow:"auto"},...e})}import{jsx as aS}from"react/jsx-runtime";function Ml({title:e,...t}){return aS(Dn,{variant:"title3",...t,children:e})}var sS={Root:Al,Header:El,Title:Ml,Content:Il},lS=sS;import{CircularProgress as kd,IconButton as Td,Autocomplete as cS,Stack as Id,TextField as uS,Typography as pS}from"@mui/material";import dS from"lodash";import Pd,{useCallback as fS}from"react";import{jsx as Ke,jsxs as gS}from"react/jsx-runtime";function mS(){return gS(Id,{direction:"row",spacing:1,alignContent:"center",alignItems:"center",children:[Ke(kd,{size:16}),Ke(pS,{variant:"body1",children:"Carregando..."})]})}function Fn(e){let{value:t,onChange:r,onSearchChange:o,onDoubleClick:n,options:a,isLoading:i,renderValue:l,required:s,readonly:c,multiple:u,disableCloseOnSelect:d,endAdornment:f,disabled:m,filterOptions:g,renderOption:p,...y}=e;function v(C,k=!1,P=!1){if(C){let Q=Pd.Children.toArray(C.props?.children),$=Q.length===1?0:1;return Q.splice($,0,Ke(Td,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>{},disabled:P,children:"'s'"})),f&&Q.unshift(f),k&&Q.unshift(Ke(Td,{disabled:!0,children:Ke(kd,{color:"primary",size:18})})),Ke(Id,{direction:"row",spacing:2,children:Pd.cloneElement(C,{},Q)})}return C}let x=dS.debounce((C,k)=>{k!=="selectOption"&&o&&o(C,k)},500),S=fS((C,k,P)=>{x(k,P)},[x]);function w(C){r&&r(C)}return Ke(cS,{onDoubleClick:()=>{n&&n()},multiple:u,loading:i,loadingText:Ke(mS,{}),value:t,onChange:(C,k)=>w(k),options:a,onInputChange:S,getOptionLabel:l,readOnly:c,disabled:m,disableCloseOnSelect:d,filterOptions:g,renderOption:p,renderInput:C=>Ke(uS,{slotProps:{inputLabel:{shrink:!0},input:{...C.InputProps,startAdornment:f}},...C,required:s,fullWidth:!0,disabled:m,...y}),noOptionsText:"Digite algo para pesquisar"})}import Dd,{isValidElement as bS}from"react";import{createContext as hS,useContext as yS}from"react";var Ed=hS(void 0),Rn=()=>{let e=yS(Ed);if(!e)throw new Error("useTransporterScope must be used inside <Transporter.Root />");return e},Ad=Ed.Provider;import{createStore as xS,useStore as vS}from"zustand";var On=new Map;function Md(e){if(On.has(e))return On.get(e);let t=xS((r,o)=>({isOpen:!1,query:void 0,setQuery:n=>r({query:n}),setValue:n=>r({value:n}),openTransporter:()=>r({isOpen:!0}),closeTransporter:async n=>{if(r({isOpen:!1}),n)if(Array.isArray(o().value)){if(typeof n!="string"&&typeof n!="number"){let s=o().value,u=s.includes(n)?s.filter(d=>d!==n):[...s,n];o().triggerOnChange(u);return}let a=o().value,l=a.find(s=>s?.id===n.id)?a.filter(s=>s!==n):[...a,n];o().triggerOnChange(l)}else o().triggerOnChange(n)},onChange:void 0,setOnChange:n=>r({onChange:n}),triggerOnChange:n=>{o().onChange?.(n)}}));return On.set(e,t),t}function Wr(e){let t=On.get(e);if(!t)throw new Error(`No transporter store found for id "${e}"`);return vS(t)}import{jsx as Dl,jsxs as Fd}from"react/jsx-runtime";function Fl(e){let{children:t,title:r}=e,o=Rn(),{isOpen:n,closeTransporter:a}=Wr(o);if(!n)return null;let i=Dd.Children.map(t,l=>{if(bS(l))return Dd.cloneElement(l,{displayTransportAction:!0,onTransport:s=>{a(s)}});throw new Error("Tipo inv\xE1lido para DataTable")});return Fd(O.Root,{open:n,onClose:a,fullWidth:!0,maxWidth:"lg",children:[Fd(O.Header,{children:[Dl(O.Title,{children:r||"Caixa de Busca Avan\xE7ada"}),Dl(O.ActionClose,{onClose:a})]}),Dl(O.Content,{children:i})]})}import{useEffect as CS}from"react";import{jsx as wS}from"react/jsx-runtime";function Rl(e){let{scope:t,onChange:r,value:o,children:n}=e,a=Md(t);return a.getState().setValue(o),CS(()=>(a.getState().setOnChange(r),()=>{a.getState().setOnChange(void 0)}),[t,r]),wS(Ad,{value:t,children:n})}import{jsx as SS}from"react/jsx-runtime";function Ol(e){let{disableLocalFiltering:t,renderOption:r,...o}=e,n=Rn(),{openTransporter:a,triggerOnChange:i,value:l}=Wr(n);return SS(Fn,{onDoubleClick:()=>a(),value:l,onChange:s=>{i(s)},...t&&{filterOptions:s=>s},renderOption:r,...o})}var TS={Root:Rl,TextField:Ol,Container:Fl};var PS=TS;import{TextField as kS}from"@mui/material";import{jsx as IS}from"react/jsx-runtime";function be(e){return IS(kS,{...e,slotProps:{input:{readOnly:e.readonly,...e.slotProps?.input},...e.slotProps}})}import{useMemo as ES,useState as AS}from"react";import{jsx as DS}from"react/jsx-runtime";var Bn=e=>e.replace(/\D/g,""),Rd=e=>{let t=Bn(e).slice(0,11);return t.length<=3?t:t.length<=6?`${t.slice(0,3)}.${t.slice(3)}`:t.length<=9?`${t.slice(0,3)}.${t.slice(3,6)}.${t.slice(6)}`:`${t.slice(0,3)}.${t.slice(3,6)}.${t.slice(6,9)}-${t.slice(9)}`},Od=e=>{let t=Bn(e).slice(0,14);return t.length<=2?t:t.length<=5?`${t.slice(0,2)}.${t.slice(2)}`:t.length<=8?`${t.slice(0,2)}.${t.slice(2,5)}.${t.slice(5)}`:t.length<=12?`${t.slice(0,2)}.${t.slice(2,5)}.${t.slice(5,8)}/${t.slice(8)}`:`${t.slice(0,2)}.${t.slice(2,5)}.${t.slice(5,8)}/${t.slice(8,12)}-${t.slice(12)}`},Bd=(e,t)=>{let r=Bn(e);return t==="cpf"?Rd(r):t==="cnpj"?Od(r):r.length<=11?Rd(r):Od(r)},MS=(e,t)=>e==="cpf"?14:18;function _d(e){let{value:t,onChange:r,tipoDocumento:o="auto",slotProps:n,...a}=e,[i,l]=AS(""),s=t!==void 0,c=ES(()=>s?Bd(t||"",o):i,[t,i,s,o]),u=f=>{let m=f.target.value,g=Bd(m,o);if(s||l(g),r){let p=Bn(m);f.target.value=p,r(f)}},d=MS(o,t||i);return DS(be,{value:c,onChange:u,slotProps:{htmlInput:{maxLength:d,...n?.htmlInput},...n},placeholder:o==="cnpj"?"99.999.999/9999-99":o==="cpf"?"999.999.999-99":"CPF (999.999.999-99) ou CNPJ (99.999.999/9999-99)",...a})}import{useMemo as FS,useState as RS}from"react";import{jsx as OS}from"react/jsx-runtime";var $d=e=>e.replace(/\D/g,""),Ld=e=>{let t=$d(e).slice(0,8);return t.length<=5?t:`${t.slice(0,5)}-${t.slice(5)}`};function Nd(e){let{value:t,onChange:r,slotProps:o,...n}=e,[a,i]=RS(""),l=t!==void 0,s=FS(()=>l?Ld(t||""):a,[t,a,l]);return OS(be,{value:s,onChange:u=>{let d=u.target.value,f=Ld(d);if(l||i(f),r){let m=$d(d);u.target.value=m,r(u)}},slotProps:{htmlInput:{maxLength:9,...o?.htmlInput},...o},placeholder:"99999-999",...n})}import{useMemo as BS,useState as _S}from"react";import{jsx as $S}from"react/jsx-runtime";var _n=e=>e.replace(/\D/g,""),Bl=(e,t)=>{let r=_n(e);if(t){let o=r.slice(0,2),n=r.slice(2,4),a=r.slice(4,8),i=r.slice(8,12);return r.length<=2?`+${o}`:r.length<=4?`+${o} (${n}`:r.length<=8?`+${o} (${n}) ${a}`:`+${o} (${n}) ${a}-${i}`}else{let o=r.slice(0,10);return o.length<=2?`(${o}`:o.length<=6?`(${o.slice(0,2)}) ${o.slice(2)}`:`(${o.slice(0,2)}) ${o.slice(2,6)}-${o.slice(6)}`}},_l=(e,t)=>{let r=_n(e).slice(0,t?15:11);if(t){let o=r.slice(0,2),n=r.slice(2,4),a=r.slice(4,9),i=r.slice(9,13),l=r.slice(13);return r.length<=2?`+${o}`:r.length<=4?`+${o} (${n}`:r.length<=9?`+${o} (${n}) ${a}`:r.length<=13?`+${o} (${n}) ${a}-${i}`:`+${o} (${n}) ${a}-${i}${l}`}else{let o=r.slice(0,11);return o.length<=2?`(${o}`:o.length<=7?`(${o.slice(0,2)}) ${o.slice(2)}`:`(${o.slice(0,2)}) ${o.slice(2,7)}-${o.slice(7)}`}},Vd=(e,t,r)=>{let o=_n(e);return t==="fixed"?Bl(o,r):t==="mobile"?_l(o,r):r?o.length>12?_l(o,r):Bl(o,r):o.length>10?_l(o,r):Bl(o,r)},LS=(e,t)=>t?19:e==="fixed"?14:15;function zd(e){let{value:t,onChange:r,tipoTelefone:o="auto",allowDDI:n=!1,inputProps:a,...i}=e,[l,s]=_S(""),c=t!==void 0,u=BS(()=>c?Vd(t||"",o,n):l,[t,l,c,o,n]),d=m=>{let g=m.target.value,p=Vd(g,o,n);if(c||s(p),r){let y=_n(g);m.target.value=y,r(m)}},f=LS(o,n);return $S(be,{value:u,onChange:d,inputProps:{maxLength:f,...a},placeholder:n?o==="mobile"?"+99 (99) 99999-9999":o==="fixed"?"+99 (99) 9999-9999":"+99 (99) 9999-9999 ou +99 (99) 99999-9999":o==="mobile"?"(99) 99999-9999":o==="fixed"?"(99) 9999-9999":"(99) 9999-9999 ou (99) 99999-9999",...i})}import{Alert as Wd,CircularProgress as US,Dialog as jS,DialogContent as qS,DialogTitle as YS}from"@mui/material";import KS from"axios";import{useEffect as Gd,useState as Gr}from"react";import{Collapse as NS,Stack as VS,Typography as zS}from"@mui/material";import{useState as WS}from"react";import{Fragment as GS,jsx as Ln,jsxs as HS}from"react/jsx-runtime";function Ll(e){let{article:t,isOpen:r}=e,[o,n]=WS(!!r);return HS(GS,{children:[Ln(VS,{onClick:()=>n(!o),sx:{p:.5,":hover":{borderRadius:"4px",backgroundColor:a=>a.palette.grey[200],cursor:"pointer"}},children:Ln(zS,{variant:"subtitle1",children:t.title})}),Ln(NS,{in:o,sx:{pl:1,pr:1},children:Ln("div",{dangerouslySetInnerHTML:{__html:t?.body?.replace('width="560"','width="412px"').replace('height="315"','height="240px"').replace("h2","h3")||""}})})]})}import{Fragment as ZS,jsx as $n,jsxs as Hr}from"react/jsx-runtime";function Hd(e){let{sectionId:t,versao:r,authorization:o,notificarNovaVersao:n=!1,localStoragePath:a}=e,[i,l]=Gr(void 0),[s,c]=Gr(!1),[u,d]=Gr(!1),[f,m]=Gr(!1),[g,p]=Gr(!1);return Gd(()=>{if(n&&a){let y=JSON.parse(localStorage.getItem(a)||"[]");y.includes(r)||(m(!0),p(!0),localStorage.setItem(a,JSON.stringify([...y,r])))}},[n,a,r]),Gd(()=>{async function y(){c(!0);try{let v=localStorage.getItem(t);if(v){let w=JSON.parse(v);if(new Date().getTime()-w.timestamp<10*60*1e3){l(w.article),c(!1);return}}let x=o?{Authorization:`Bearer ${o}`}:{},S=await KS.get(`https://datacsistemashelp.zendesk.com/api/v2/help_center/pt-br/sections/${t}/articles`,{headers:x,params:{sort_by:"created_at",sort_order:"desc"}});l(S.data.articles)}catch{d("Ocorreu um erro ao obter as notas de vers\xE3o")}finally{c(!1)}}t&&f&&y()},[t,f]),Hr(ZS,{children:[$n(R,{onClick:y=>{y.preventDefault(),m(!0)},sx:{fontSize:"0.7rem",minWidth:0,pt:0,pb:0,pl:.5,pr:.5,color:y=>y.palette.grey[500]},variant:"text",children:r}),Hr(jS,{fullWidth:!0,maxWidth:"md",scroll:"paper",open:f,onClose:()=>m(!1),children:[Hr(YS,{children:["Notas de Vers\xE3o"," ",s&&$n(US,{sx:{ml:1},size:14})]}),Hr(qS,{children:[g&&Hr(Wd,{severity:"info",sx:{mb:2},children:["Uma nova vers\xE3o (",r,") est\xE1 dispon\xEDvel!"]}),u&&$n(Wd,{severity:"error",children:"N\xE3o foi poss\xEDvel carregar o conte\xFAdo"}),i?.map((y,v)=>$n(Ll,{isOpen:v===0,article:y},y.id))]})]})]})}import{DatePicker as QS}from"@mui/x-date-pickers";import{DateTime as JS}from"luxon";import{jsx as XS}from"react/jsx-runtime";function Dt(e){let{value:t,error:r,onChange:o,fromFormat:n,format:a,...i}=e;function l(s){if(s?.isValid){o(s?.toFormat("yyyy-MM-dd"));return}if(s===null){o(null);return}}return XS(QS,{format:a||"dd/MM/yyyy",value:JS.fromFormat(t||"",n||"yyyy-MM-dd"),onChange:s=>l(s),slotProps:{textField:{error:!!r}},...i})}import{LocalizationProvider as eT}from"@mui/x-date-pickers";import{AdapterLuxon as tT}from"@mui/x-date-pickers/AdapterLuxon";import{jsx as rT}from"react/jsx-runtime";function Ud({children:e}){return rT(eT,{dateAdapter:tT,adapterLocale:"pt-br",children:e})}import{IconButton as Nn,InputAdornment as jd,MenuItem as Ee,Stack as Vn,styled as oT}from"@mui/material";import{ArrowLeftIcon as qd,ArrowRightIcon as Yd,PickersDay as nT}from"@mui/x-date-pickers";import{DateTime as Ce}from"luxon";import{useEffect as iT,useMemo as Jd,useState as Kd}from"react";import{jsx as q,jsxs as Ze}from"react/jsx-runtime";var aT=oT(nT,{shouldForwardProp:e=>e!=="isSelected"&&e!=="isHovered"})(({theme:e,isSelected:t,isHovered:r,isToday:o,day:n})=>()=>({borderRadius:0,"& .MuiPickersDay-today":{backgroundColor:"#f52",borderRadius:"50%"},...o&&!r&&!t&&{borderRadius:"50%","& .MuiPickersDay-today":{padding:"0px"}},...t&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover, &:focus":{backgroundColor:e.palette.primary.main}},...r&&{backgroundColor:e.palette.primary[e.palette.mode],"&:hover, &:focus":{backgroundColor:e.palette.primary[e.palette.mode]}},...n.weekday===1&&{borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},...n.weekday===7&&{borderTopRightRadius:"50%",borderBottomRightRadius:"50%"}})),Zd=(e,t)=>t==null?!1:e.weekNumber===t.weekNumber;function Qd(e){let{day:t,selectedDay:r,hoveredDay:o,...n}=e,a=Jd(()=>t.day===Ce.now().day,[]);return q(aT,{...n,day:t,isToday:a,sx:{px:2.5},disableMargin:!0,selected:!1,isSelected:Zd(t,r),isHovered:Zd(t,o)})}function $l(e){let{value:t,onChange:r,renderFieldSet:o}=e,[n,a]=Kd(null),[i,l]=Kd({tipo:"month",firstDate:null,secondDate:null});iT(()=>{t&&l(t)},[t]);function s(){let y=(i.firstDate?Ce.fromFormat(i.firstDate,"yyyy-MM-dd"):Ce.now().startOf("day")).minus({[i.tipo]:1});d(i.tipo,y.toFormat("yyyy-MM-dd"))}function c(){let y=(i.firstDate?Ce.fromFormat(i.firstDate,"yyyy-MM-dd"):Ce.now().startOf("day")).plus({[i.tipo]:1});d(i.tipo,y.toFormat("yyyy-MM-dd"))}function u(p,y,v){let x=y.startOf(v).toFormat("yyyy-MM-dd"),S=y.endOf(v).toFormat("yyyy-MM-dd"),w={tipo:p,firstDate:x,secondDate:S};l(w),r&&r(w)}function d(p,y){if(p==="livre"){l({...i,tipo:"livre"}),r&&r({...i,tipo:"livre"});return}let v=y?Ce.fromFormat(y,"yyyy-MM-dd"):Ce.now();p==="month"&&u(p,v,"month"),p==="day"&&u(p,v,"day"),p==="week"&&u(p,v,"week"),p==="quarter"&&u(p,v,"quarter"),p==="year"&&u(p,v,"year")}function f(p){if(i.tipo==="livre"&&p){let y={...i,firstDate:p};l(y),r&&r(y);return}p&&d(i.tipo,p)}function m(p){if(i.tipo==="livre"&&p){let y={...i,secondDate:p};l(y),r&&r(y);return}p&&d(i.tipo,p)}let g=Jd(()=>{if(i.tipo==="month"||i.tipo==="quarter")return["month"];if(i.tipo==="day")return["day"];if(i.tipo==="year")return["year"]},[i.tipo]);return o?Ze("fieldset",{style:{border:"1px solid #cfcfcf",borderRadius:"4px"},children:[q("legend",{style:{color:"#808080",fontSize:"0.7rem",paddingLeft:"4px",paddingRight:"8px"},children:"Per\xEDodo"}),Ze(Vn,{spacing:2,children:[Ze(be,{value:i.tipo,onChange:p=>{let y=p.target.value;d(y,i?.firstDate||null)},select:!0,fullWidth:!0,size:"small",variant:"outlined",InputProps:{startAdornment:i?.tipo!=="livre"&&Ze(jd,{position:"start",children:[q(Nn,{size:"small",onClick:s,children:q(qd,{fontSize:"small"})}),q(Nn,{size:"small",onClick:c,children:q(Yd,{fontSize:"small"})})]})},children:[q(Ee,{value:"livre",children:"Livre"}),q(Ee,{value:"month",children:"Mensal"}),q(Ee,{value:"day",children:"Di\xE1rio"}),q(Ee,{value:"week",children:"Semanal"}),q(Ee,{value:"quarter",children:"Trimestral"}),q(Ee,{value:"year",children:"Anual"})]}),Ze(Vn,{direction:"row",spacing:1,children:[q(Dt,{label:"In\xEDcio",onChange:f,value:i.firstDate,showDaysOutsideCurrentMonth:!0,slots:i.tipo==="week"?{day:Qd}:void 0,slotProps:i.tipo==="week"?{day:p=>({selectedDay:i?.firstDate?Ce.fromFormat(i.firstDate,"yyyy-MM-dd").startOf("week"):Ce.now(),hoveredDay:n,onPointerEnter:()=>a(p.day),onPointerLeave:()=>a(null)})}:void 0,views:g}),i.tipo!=="day"&&q(Dt,{disabled:i.tipo!=="livre"||!i?.firstDate,minDate:i?.firstDate?Ce.fromFormat(i.firstDate,"yyyy-MM-dd"):void 0,showDaysOutsideCurrentMonth:!0,label:"Fim",onChange:m,value:i.secondDate})]})]})]}):Ze(Vn,{spacing:2,children:[Ze(be,{value:i.tipo,onChange:p=>{let y=p.target.value;d(y,i?.firstDate||null)},select:!0,fullWidth:!0,size:"small",variant:"outlined",InputProps:{startAdornment:i?.tipo!=="livre"&&Ze(jd,{position:"start",children:[q(Nn,{size:"small",onClick:s,children:q(qd,{fontSize:"small"})}),q(Nn,{size:"small",onClick:c,children:q(Yd,{fontSize:"small"})})]})},children:[q(Ee,{value:"livre",children:"Livre"}),q(Ee,{value:"month",children:"Mensal"}),q(Ee,{value:"day",children:"Di\xE1rio"}),q(Ee,{value:"week",children:"Semanal"}),q(Ee,{value:"quarter",children:"Trimestral"}),q(Ee,{value:"year",children:"Anual"})]}),Ze(Vn,{direction:"row",spacing:1,children:[q(Dt,{label:"In\xEDcio",onChange:f,value:i.firstDate,showDaysOutsideCurrentMonth:!0,slots:i.tipo==="week"?{day:Qd}:void 0,slotProps:i.tipo==="week"?{day:p=>({selectedDay:i?.firstDate?Ce.fromFormat(i.firstDate,"yyyy-MM-dd").startOf("week"):Ce.now(),hoveredDay:n,onPointerEnter:()=>a(p.day),onPointerLeave:()=>a(null)})}:void 0,views:g}),i.tipo!=="day"&&q(Dt,{disabled:i.tipo!=="livre"||!i?.firstDate,minDate:i?.firstDate?Ce.fromFormat(i.firstDate,"yyyy-MM-dd"):void 0,showDaysOutsideCurrentMonth:!0,label:"Fim",onChange:p=>{l({...i,secondDate:p})},value:i.secondDate})]})]})}$l.defaultProps={renderFieldSet:!0};import{formatCurrency as sT,isValidNumber as lT}from"@data-c/hooks";import{forwardRef as cT,useCallback as Xd}from"react";import{jsx as pT}from"react/jsx-runtime";function Nl(e){if(!e)return 0;let t=String(e);return t=t.replace(/\./g,"").replace(/,/g,"."),parseFloat(t)}var Vl=null,zn=!1,ef=cT((e,t)=>{let{value:r,onChange:o,sx:n,...a}=e;Vl=null;let i=Xd(s=>{let c=s.target.value||"0.00";lT(c)&&(Vl==="Backspace"?c=(Nl(c)/10).toFixed(2):zn?(c=(Nl(c)/100).toFixed(2),zn=!1):c=(Nl(c)*10).toFixed(2),o&&(s.target.value=c,o(s,c)))},[o]),l=Xd(s=>{s.target.selectionStart===s.target.selectionEnd&&(s.target.selectionStart=s.target.value.length,s.target.selectionEnd=s.target.value.length)},[]);return pT(be,{onKeyDown:s=>{Vl=s.key},onSelect:s=>{let c=s.target;c.selectionStart===0&&c.selectionEnd===c.value.length?zn=!0:zn=!1,l(s)},onChange:i,value:sT(String(r),2)||"",inputRef:t,sx:{"& .MuiInputBase-input":{textAlign:"right"},...n},...a})});ef.defaultProps={value:0};var uT=ef;import{Button as dT,Stack as of,Typography as Wn}from"@mui/material";import{ArrowDropDown as fT}from"@mui/icons-material";import{useState as mT}from"react";import{jsx as Oe,jsxs as Ur}from"react/jsx-runtime";function nf(e){let{licencas:t,licencaSelecionada:r,onAlterarLicenca:o}=e,[n,a]=mT("");if(t.length===0)return Ur(of,{overflow:"hidden",children:[Oe(Wn,{overflow:"hidden",textOverflow:"ellipsis",variant:"body1",children:r.nome}),Oe(Wn,{overflow:"hidden",textOverflow:"ellipsis",variant:"body2",children:tf(r.documento)})]});function i(s){a(s)}let l=n.length>0?t.filter(s=>["nome"].some(c=>rf(String(s[c])).includes(rf(n)))):t;return Ur(ur.Root,{children:[Oe(ur.Trigger,{asChild:!0,children:Ur(dT,{sx:{color:s=>s.palette.grey[900]},variant:"text",children:[r.nome,Oe(fT,{})]})}),Oe(ur.Content,{sx:{"& .MuiPopover-paper":{minWidth:"300px",borderRadius:"12px",p:.5}},children:Ur(zr.Root,{sx:{m:.5,minWidth:"300px",maxHeight:"300px",overflow:"auto"},children:[Oe(Gt,{autoFocus:!0,onSearch:i}),Oe(zr.Content,{children:l.map(s=>Oe(ur.Close,{asChild:!0,children:Oe(zr.Item,{selected:r.uuid===s.uuid,onClick:()=>o(s),children:Ur(of,{children:[Oe(Wn,{variant:"body1",textOverflow:"ellipsis",children:s.nome}),Oe(Wn,{variant:"body2",textOverflow:"ellipsis",children:tf(s.documento)})]})})},s.uuid))})]})})]})}import{Drawer as OT,Toolbar as BT}from"@mui/material";import{styled as _T}from"@mui/material/styles";import{List as IT}from"@mui/material";import{useState as bT}from"react";import{Box as CT,Collapse as wT,Icon as ST,ListItemText as TT}from"@mui/material";import{ExpandMore as PT,ExpandLess as kT}from"@mui/icons-material";import{MenuItem as gT}from"@mui/material";import{styled as hT}from"@mui/material/styles";import{jsx as vT}from"react/jsx-runtime";var yT=hT(gT,{})(({theme:e})=>({borderRadius:"6px",width:"90%",gap:"16px",margin:"0 auto",padding:"8px 16px",transition:"0.1s ease-in-out","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main},"& .MuiSvgIcon-root":{color:e.palette.primary.main},"& .MuiIcon-root":{color:e.palette.primary.main}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{letterSpacing:"0.5px",color:e.palette.text.secondary,fontSize:e.typography.body1},"& .MuiSvgIcon-root":{fontSize:"24px"}})),xT=e=>vT(yT,{...e}),Gn=xT;import{jsx as pr,jsxs as af}from"react/jsx-runtime";function zl(e){let{menuItem:t,activeMenu:r,onMenuClick:o}=e,[n,a]=bT(!1);if(!t.visible)return null;let i=!!(t?.items&&t?.items.length>0);function l(){a(!n)}return af(CT,{children:[af(Gn,{onClick:()=>{if(t?.link){o(t.link);return}l()},selected:r===t.link,children:[!!t.icon&&pr(ST,{children:t.icon}),pr(TT,{primary:t.label}),i&&!n&&pr(PT,{}),i&&n&&pr(kT,{})]}),t?.items&&pr(wT,{in:n,timeout:"auto",unmountOnExit:!0,children:pr(Ft,{activeMenu:r,sx:{pl:s=>s.spacing(1.5)},menus:t?.items||[],onMenuClick:o})})]})}import{jsx as sf}from"react/jsx-runtime";function Ft(e){let{menus:t,activeMenu:r,onMenuClick:o,...n}=e;return sf(IT,{component:"nav",disablePadding:!0,...n,children:t.map(a=>sf(zl,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))})}import{useState as ET}from"react";import{List as AT,Icon as MT,ListItemIcon as DT,Popper as FT}from"@mui/material";import{jsx as jr,jsxs as RT}from"react/jsx-runtime";function Wl(e){let{menus:t,activeMenu:r,onMenuClick:o}=e,[n,a]=ET(null),i=(s,c,u)=>{a({element:s.currentTarget,id:c,items:u})},l=()=>{a(null)};return jr(AT,{component:"nav",disablePadding:!0,children:t.map(s=>s.visible?RT(Gn,{onMouseEnter:c=>{s?.link||i(c,s.id,s.items)},onMouseLeave:()=>{s?.link||l()},onClick:()=>{s?.link&&o(s.link)},selected:r===s.link,children:[jr(DT,{children:jr(MT,{children:s.icon})}),n?.id===s.id&&jr(FT,{sx:{zIndex:999999},anchorEl:n?.element,open:!!n?.element,placement:"right-start",children:jr(Ft,{activeMenu:r,onMenuClick:o,menus:s?.items||[],sx:{minWidth:"240px",backgroundColor:V.palette.background.paper,borderRadius:"12px",padding:"16px 4px",boxShadow:"0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%);"}})})]},`minMenu-${s.id}`):null)})}import{jsx as Gl,jsxs as $T}from"react/jsx-runtime";var lf=(e,t)=>({width:e,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}),cf=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(8)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),LT=_T(OT,{shouldForwardProp:e=>e!=="open"&&e!=="width"})(({theme:e,open:t,width:r})=>({width:r,bgcolor:e.palette.background.paper,boxShadow:"2px 3px 20px -16px rgb(32 32 36 / 30%)",borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...lf(r,e),"& .MuiDrawer-paper":lf(r,e)},...!t&&{...cf(e),"& .MuiDrawer-paper":cf(e)}}));function uf(e){let{open:t,items:r,width:o,activeMenu:n,onMenuClick:a,toggleMenu:i,...l}=e;return $T(LT,{width:o,open:t,onClose:()=>i(!1),...l,children:[Gl(BT,{}),t&&Gl(Ft,{onMenuClick:a,activeMenu:n,menus:r}),!t&&Gl(Wl,{onMenuClick:a,activeMenu:n,menus:r})]})}import{Box as NT}from"@mui/material";import{jsx as VT}from"react/jsx-runtime";function pf(e){return VT(NT,{m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1},...e})}import{useUserContext as zT}from"@data-c/providers";import WT from"@mui/material/Avatar";import{jsx as GT}from"react/jsx-runtime";function df(e){let{user:t}=zT();return GT(WT,{src:t?.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2},...e})}import{Stack as tc,Tab as bf,Tabs as fP}from"@mui/material";import{useState as mP}from"react";import{Box as HT}from"@mui/material";import{jsx as UT}from"react/jsx-runtime";function Hn(e){let{children:t,value:r,index:o,...n}=e;return r!==o?null:UT(HT,{role:"tabpanel",hidden:r!==o,id:`scrollable-auto-tabpanel-${o}`,"aria-labelledby":`scrollable-auto-tab-${o}`,sx:{display:"flex",flexDirection:"column",flexGrow:1},...n,children:r===o&&t})}import{useCredentials as JT,useForm as XT}from"@data-c/hooks";import{Alert as hf,Divider as eP,Grid as qr,Stack as tP,TextField as Ul,Typography as yf}from"@mui/material";import{useEffect as jl,useState as ql}from"react";import{useState as dr,useCallback as jT}from"react";import qT from"react-easy-crop";import YT from"@mui/material/Slider";import ff from"@mui/material/Button";import KT from"@mui/material/Dialog";import mf from"@mui/material/Avatar";function Hl(e,t){return new Promise(r=>{let o=new Image;o.src=e,o.onload=()=>{let n=document.createElement("canvas");n.width=t.width,n.height=t.height;let a=n.getContext("2d");a&&(a.drawImage(o,t.x,t.y,t.width,t.height,0,0,t.width,t.height),r(n.toDataURL("image/jpeg")))}})}import{Stack as ZT}from"@mui/material";import{jsx as Qe,jsxs as Un}from"react/jsx-runtime";var QT=({onSave:e,src:t})=>{let[r,o]=dr(null),[n,a]=dr(null),[i,l]=dr({x:0,y:0}),[s,c]=dr(1),[u,d]=dr(null),[f,m]=dr(!1),g=jT((v,x)=>{d(x)},[]);return Un(ZT,{direction:"row",spacing:2,alignItems:"center",children:[n?Qe(mf,{src:n,alt:"Preview",sx:{width:64,height:64,margin:"auto",mb:2}}):Qe(mf,{src:t,sx:{width:64,height:64,margin:"auto",mb:2}}),Un("label",{children:[Qe("input",{type:"file",accept:"image/*",onChange:v=>{let x=v.target.files?.[0];if(!x)return;let S=new FileReader;S.onload=()=>{o(S.result),m(!0)},S.readAsDataURL(x)},style:{display:"none"}}),Qe(ff,{variant:"contained",component:"span",children:"Alterar foto"})]}),Un(KT,{open:f,onClose:()=>m(!1),maxWidth:"sm",fullWidth:!0,children:[Qe("div",{style:{position:"relative",height:400,background:"#333"},children:r&&Qe(qT,{image:r,crop:i,zoom:s,aspect:1,cropShape:"round",showGrid:!1,onCropChange:l,onZoomChange:c,onCropComplete:g})}),Un("div",{style:{padding:20},children:[Qe(YT,{value:s,min:1,max:3,step:.1,onChange:(v,x)=>c(x)}),Qe(_e,{children:Qe(ff,{variant:"contained",onClick:async()=>{if(!r||!u)return;let v=await Hl(r,u);a(v),m(!1),e&&e(v)},children:"Salvar"})})]})]})]})},gf=QT;import{jsx as ue,jsxs as xf}from"react/jsx-runtime";var rP=ve().shape({name:ce().required("Informe o nome")});function Yl(e){let{usuario:t,credentialsConfig:r,onUploadComplete:o}=e,{data:n,setData:a,handleChange:i,validate:l,validationErrors:s}=XT(t,rP),[c,u]=ql(!1),[d,f]=ql(!1),[m,g]=ql(!1),{uploadAvatar:p,atualizarUsuario:y}=JT(r);jl(()=>{a(t)},[t]),jl(()=>{m&&setTimeout(()=>{g(!1)},3e3)},[m]),jl(()=>{c&&setTimeout(()=>{u(!1)},3e3)},[c]);function v(){l(async x=>{try{f(!0),await y(x),g(!0)}catch{u("Ocorreu um erro ao alterar os dados da conta")}finally{f(!1)}})}return xf(tP,{spacing:2,children:[ue(yf,{variant:"h6",children:"Avatar"}),ue(gf,{src:n?.avatarUrl,onSave:x=>{try{p(x),o&&(g(!0),o(!0))}catch(S){u("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,S)}}}),ue(eP,{}),ue(yf,{variant:"h6",children:"Informa\xE7\xF5es da Conta"}),xf(qr,{container:!0,spacing:1.5,children:[ue(qr,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:ue(Ul,{disabled:!0,fullWidth:!0,label:"E-mail",value:n?.email||""})}),ue(qr,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:ue(Ul,{name:"name",fullWidth:!0,label:"Nome",value:n?.name||"",onChange:i,...s("name")})}),ue(qr,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:ue(Ul,{name:"surname",fullWidth:!0,label:"Sobrenome",value:n?.surname||"",onChange:i})})]}),ue(qr,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:ue(_e,{children:ue(R,{isLoading:d,onClick:()=>v(),variant:"contained",children:"Salvar"})})}),m&&ue(hf,{children:"Dados da conta alterados com sucesso!"}),c&&ue(hf,{severity:"error",children:c})]})}import{useCredentials as sP,useForm as lP}from"@data-c/hooks";import{Alert as cP,Divider as uP,Stack as Ql,Typography as Jl}from"@mui/material";import{useEffect as pP,useState as jn}from"react";import{useCredentials as oP}from"@data-c/hooks";import{Alert as nP,Stack as iP,Typography as vf}from"@mui/material";import{useEffect as aP,useState as Kl}from"react";import{jsx as Be,jsxs as Yr}from"react/jsx-runtime";function Zl(e){let{open:t,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:a}=e,[i,l]=Kl(""),[s,c]=Kl(!1),[u,d]=Kl(!1),{validarCodigoWhatsapp:f}=oP(a);aP(()=>{s&&setTimeout(()=>{c(!1)},3e3)},[s]);async function m(){try{d(!0);let g=await f(i);n(g.data)}catch(g){c(g.response.data.message)}finally{d(!1)}}return Yr(O.Root,{open:t,onClose:g=>r(),maxWidth:"xs",children:[Yr(O.Header,{children:[Be(O.Title,{children:"Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp"}),Be(O.ActionClose,{onClose:r})]}),Be(O.Content,{children:Yr(iP,{spacing:2,justifyContent:"center",alignContent:"center",alignItems:"center",children:[Be(vf,{variant:"subtitle1",sx:{fontWeight:"bolder",fontSize:"11pt"},children:"\u{1F510} Verifique seu n\xFAmero"}),Yr(vf,{variant:"body1",sx:{fontSize:"10pt"},children:["Enviamos um c\xF3digo via WhatsApp para +55"," ",Be("b",{children:`(${o?.whatsappNumber?.slice(0,2)}) ${o?.whatsappNumber?.slice(2,7)}-${o?.whatsappNumber?.slice(7)}`}),". ",Be("br",{}),"Digite o c\xF3digo abaixo para confirmar que este n\xFAmero \xE9 seu."]}),Be(Er,{value:i,onChange:g=>{l(g)}}),s&&Be(nP,{sx:{flexGrow:1},severity:"error",children:s})]})}),Be(O.Footer,{children:Yr(O.Actions,{children:[Be(O.ActionCancelar,{onClick:()=>r()}),Be(O.ActionSalvar,{label:"Verificar",onClick:m,isLoading:u,disabled:i.length!=6})]})})]})}import{Verified as dP}from"@mui/icons-material";import{jsx as Ae,jsxs as Xl}from"react/jsx-runtime";var SW=ve().shape({whatsappNumber:ce().required("Informe o n\xFAmero do whastapp").length(15)});function ec(e){let{usuario:t,credentialsConfig:r,onWhastappSaved:o}=e,[n,a]=jn(!1),[i,l]=jn(!1),{data:s,setData:c,changeValue:u,validate:d,validationErrors:f}=lP(t),[m,g]=jn(!1),[p,y]=jn(!1),{atualizarUsuario:v,gerarWhatsappVerificationCode:x}=sP(r);pP(()=>{c(t)},[t]);function S(){d(async C=>{try{l(!0);let k=await v(C);o&&o(k.data)}catch{}finally{l(!1)}})}async function w(){try{g(!0);let C=await x();y(!0)}catch{}finally{g(!1)}}return Xl(Ql,{spacing:2,children:[Ae(Jl,{variant:"h6",children:"Senha"}),Ae(R,{onClick:()=>{a(!0)},sx:{width:"200px"},fullWidth:!1,variant:"contained",children:"Alterar Senha"}),Ae(Qt,{isOpen:n,onClose:async()=>a(!1),credentialsConfig:r}),Ae(uP,{}),Ae(Jl,{variant:"h6",children:"Login com Whastapp"}),Xl(Ql,{direction:"row",spacing:2,children:[Ae(Ir,{disabled:!!s?.whatsappVerifiedAt,fullWidth:!1,name:"whatsappNumber",label:"Whastapp",value:s.whatsappNumber||"",onChange:C=>{u("whatsappNumber",C.target.value)}}),s.whatsappVerifiedAt&&Xl(Ql,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:[Ae(dP,{color:"success"}),Ae(Jl,{variant:"body2",children:"N\xFAmero Verificado"})]}),s.whatsappNumber&&s.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&Ae(R,{isLoading:i,onClick:S,children:"Salvar Whatsapp"})]}),t.whatsappNumber&&t.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&Ae(cP,{severity:"warning",action:Ae(R,{isLoading:m,onClick:w,children:"Enviar n\xFAmero de verifica\xE7\xE3o"}),children:"O seu n\xFAmero de whatsapp ainda n\xE3o est\xE1 validado"}),Ae(Zl,{open:p,onClose:async C=>{y(!1)},payload:t,credentialsConfig:r,onCodigoVerificado:C=>{c(C),y(!1)}})]})}import{useUserContext as gP}from"@data-c/providers";import{Fragment as hP,jsx as at,jsxs as rc}from"react/jsx-runtime";function Cf(e){let[t,r]=mP(0),{user:o,setUser:n,credentialsConfig:a}=gP();return at(hP,{children:rc(tc,{spacing:2,direction:"row",children:[at(tc,{sx:{width:"200px"},children:rc(fP,{orientation:"vertical",value:t,onChange:(i,l)=>{r(l)},sx:{"& .MuiButtonBase-root":{alignItems:"flex-start"}},children:[at(bf,{label:"Minha Conta",value:0}),at(bf,{label:"Login e Seguran\xE7a",value:1})]})}),rc(tc,{sx:{flexGrow:1},children:[at(Hn,{value:t,index:0,children:at(Yl,{credentialsConfig:a,usuario:o||{}})}),at(Hn,{value:t,index:1,children:at(ec,{onWhastappSaved:i=>{n(i)},credentialsConfig:a,usuario:o||{}})})]})]})})}export{nf as AlterarLicenca,Qt as AlterarSenha,Fn as Autocomplete,df as Avatar,Fp as Breadcrumbs,R as Button,_e as ButtonContainer,Bw as ButtonGroup,Nd as CEPTextField,Uw as Card,ac as Checkbox,lc as ColorsGrid,pf as Content,iC as ContentTitle,YP as CurrencyCellStyle,uT as CurrencyTextField,tw as DataTable,Zn as DataTableOptions,Dt as DatePicker,Ud as DatePickerProvider,$l as DateRangePicker,O as Dialog,_d as DocumentoTextField,uf as DrawerMenu,Uo as Editable,LC as Filter,$p as FilterApiContext,ri as FilterContainer,Xr as FilterControl,Lp as FilterDataContext,Np as FilterProvider,xc as Flag,fb as Header,ge as Icon,yu as LabelValue,zr as List,Yw as LucidIcon,Qb as Menu,vp as MioAuth,Hd as NotaVersao,qP as OptionStyles,lS as Page,Su as PageTitle,ht as PasswordTextField,ur as Popover,Cf as Profile,Gt as SearchTextField,In as Surface,zd as TelefoneTextField,be as TextField,Dn as Title,Rt as Tooltip,PS as Transporter,Zb as renderMenuItems,V as theme,$D as useDialogs,sr as useFilter,Ie as useFilterApi,Gb as useMenu,Wr as useTransporter};
11
+ /*! Bundled license information:
12
+
13
+ react-is/cjs/react-is.production.min.js:
14
+ (** @license React v16.13.1
15
+ * react-is.production.min.js
16
+ *
17
+ * Copyright (c) Facebook, Inc. and its affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ *)
22
+
23
+ react-is/cjs/react-is.development.js:
24
+ (** @license React v16.13.1
25
+ * react-is.development.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ *)
32
+
33
+ object-assign/index.js:
34
+ (*
35
+ object-assign
36
+ (c) Sindre Sorhus
37
+ @license MIT
38
+ *)
39
+
40
+ react-is/cjs/react-is.production.js:
41
+ (**
42
+ * @license React
43
+ * react-is.production.js
44
+ *
45
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ *)
50
+
51
+ react-is/cjs/react-is.development.js:
52
+ (**
53
+ * @license React
54
+ * react-is.development.js
55
+ *
56
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE file in the root directory of this source tree.
60
+ *)
61
+
62
+ @mui/styled-engine/esm/index.js:
63
+ (**
64
+ * @mui/styled-engine v7.3.6
65
+ *
66
+ * @license MIT
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ *)
70
+
71
+ @mui/system/esm/index.js:
72
+ (**
73
+ * @mui/system v7.3.6
74
+ *
75
+ * @license MIT
76
+ * This source code is licensed under the MIT license found in the
77
+ * LICENSE file in the root directory of this source tree.
78
+ *)
79
+ */
80
+ //# sourceMappingURL=index.mjs.map