@data-c/ui 0.1.45 → 0.1.46

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.js CHANGED
@@ -1,13 +1,13 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var af=Object.create;var kn=Object.defineProperty,sf=Object.defineProperties,lf=Object.getOwnPropertyDescriptor,cf=Object.getOwnPropertyDescriptors,pf=Object.getOwnPropertyNames,$r=Object.getOwnPropertySymbols,uf=Object.getPrototypeOf,Sn=Object.prototype.hasOwnProperty,vl=Object.prototype.propertyIsEnumerable;var xl=(e,t,r)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))Sn.call(t,r)&&xl(e,r,t[r]);if($r)for(var r of $r(t))vl.call(t,r)&&xl(e,r,t[r]);return e},d=(e,t)=>sf(e,cf(t));var w=(e,t)=>{var r={};for(var o in e)Sn.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&$r)for(var o of $r(e))t.indexOf(o)<0&&vl.call(e,o)&&(r[o]=e[o]);return r};var ce=(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 pf(t))!Sn.call(e,n)&&n!==r&&kn(e,n,{get:()=>t[n],enumerable:!(o=lf(t,n))||o.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?af(uf(e)):{},ff(t||!e||!e.__esModule?kn(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r)=>new Promise((o,n)=>{var i=s=>{try{l(r.next(s))}catch(p){n(p)}},a=s=>{try{l(r.throw(s))}catch(p){n(p)}},l=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,a);l((r=r.apply(e,t)).next())});var tc=ce(U=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,jn=ne?Symbol.for("react.element"):60103,Wn=ne?Symbol.for("react.portal"):60106,Gr=ne?Symbol.for("react.fragment"):60107,Hr=ne?Symbol.for("react.strict_mode"):60108,Ur=ne?Symbol.for("react.profiler"):60114,qr=ne?Symbol.for("react.provider"):60109,Yr=ne?Symbol.for("react.context"):60110,Gn=ne?Symbol.for("react.async_mode"):60111,Kr=ne?Symbol.for("react.concurrent_mode"):60111,Zr=ne?Symbol.for("react.forward_ref"):60112,Qr=ne?Symbol.for("react.suspense"):60113,h0=ne?Symbol.for("react.suspense_list"):60120,Xr=ne?Symbol.for("react.memo"):60115,Jr=ne?Symbol.for("react.lazy"):60116,g0=ne?Symbol.for("react.block"):60121,y0=ne?Symbol.for("react.fundamental"):60117,x0=ne?Symbol.for("react.responder"):60118,v0=ne?Symbol.for("react.scope"):60119;function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jn:switch(e=e.type,e){case Gn:case Kr:case Gr:case Ur:case Hr:case Qr:return e;default:switch(e=e&&e.$$typeof,e){case Yr:case Zr:case Jr:case Xr:case qr:return e;default:return t}}case Wn:return t}}}function ec(e){return ve(e)===Kr}U.AsyncMode=Gn;U.ConcurrentMode=Kr;U.ContextConsumer=Yr;U.ContextProvider=qr;U.Element=jn;U.ForwardRef=Zr;U.Fragment=Gr;U.Lazy=Jr;U.Memo=Xr;U.Portal=Wn;U.Profiler=Ur;U.StrictMode=Hr;U.Suspense=Qr;U.isAsyncMode=function(e){return ec(e)||ve(e)===Gn};U.isConcurrentMode=ec;U.isContextConsumer=function(e){return ve(e)===Yr};U.isContextProvider=function(e){return ve(e)===qr};U.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jn};U.isForwardRef=function(e){return ve(e)===Zr};U.isFragment=function(e){return ve(e)===Gr};U.isLazy=function(e){return ve(e)===Jr};U.isMemo=function(e){return ve(e)===Xr};U.isPortal=function(e){return ve(e)===Wn};U.isProfiler=function(e){return ve(e)===Ur};U.isStrictMode=function(e){return ve(e)===Hr};U.isSuspense=function(e){return ve(e)===Qr};U.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gr||e===Kr||e===Ur||e===Hr||e===Qr||e===h0||typeof e=="object"&&e!==null&&(e.$$typeof===Jr||e.$$typeof===Xr||e.$$typeof===qr||e.$$typeof===Yr||e.$$typeof===Zr||e.$$typeof===y0||e.$$typeof===x0||e.$$typeof===v0||e.$$typeof===g0)};U.typeOf=ve});var rc=ce(q=>{"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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function C(A){return typeof A=="string"||typeof A=="function"||A===o||A===p||A===i||A===n||A===f||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===x||A.$$typeof===h||A.$$typeof===a||A.$$typeof===l||A.$$typeof===u||A.$$typeof===k||A.$$typeof===v||A.$$typeof===P||A.$$typeof===g)}function S(A){if(typeof A=="object"&&A!==null){var wn=A.$$typeof;switch(wn){case t:var Lr=A.type;switch(Lr){case s:case p:case o:case i:case n:case f:return Lr;default:var yl=Lr&&Lr.$$typeof;switch(yl){case l:case u:case x:case h:case a:return yl;default:return wn}}case r:return wn}}}var D=s,F=p,T=l,te=a,W=t,re=u,R=o,B=x,y=h,b=r,I=i,E=n,M=f,_=!1;function O(A){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(A)||S(A)===s}function L(A){return S(A)===p}function z(A){return S(A)===l}function G(A){return S(A)===a}function V(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function me(A){return S(A)===u}function le(A){return S(A)===o}function Qe(A){return S(A)===x}function ef(A){return S(A)===h}function tf(A){return S(A)===r}function rf(A){return S(A)===i}function of(A){return S(A)===n}function nf(A){return S(A)===f}q.AsyncMode=D,q.ConcurrentMode=F,q.ContextConsumer=T,q.ContextProvider=te,q.Element=W,q.ForwardRef=re,q.Fragment=R,q.Lazy=B,q.Memo=y,q.Portal=b,q.Profiler=I,q.StrictMode=E,q.Suspense=M,q.isAsyncMode=O,q.isConcurrentMode=L,q.isContextConsumer=z,q.isContextProvider=G,q.isElement=V,q.isForwardRef=me,q.isFragment=le,q.isLazy=Qe,q.isMemo=ef,q.isPortal=tf,q.isProfiler=rf,q.isStrictMode=of,q.isSuspense=nf,q.isValidElementType=C,q.typeOf=S}()});var Un=ce((p5,Hn)=>{"use strict";process.env.NODE_ENV==="production"?Hn.exports=tc():Hn.exports=rc()});var ic=ce((u5,nc)=>{"use strict";var oc=Object.getOwnPropertySymbols,b0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable;function w0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function k0(){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(i){return t[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}nc.exports=k0()?Object.assign:function(e,t){for(var r,o=w0(e),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)b0.call(r,a)&&(o[a]=r[a]);if(oc){n=oc(r);for(var l=0;l<n.length;l++)C0.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o}});var eo=ce((f5,ac)=>{"use strict";var S0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ac.exports=S0});var qn=ce((d5,sc)=>{sc.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var fc=ce((m5,uc)=>{"use strict";var Yn=function(){};process.env.NODE_ENV!=="production"&&(lc=eo(),to={},cc=qn(),Yn=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});var lc,to,cc;function pc(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in e)if(cc(e,i)){var a;try{if(typeof e[i]!="function"){var l=Error((o||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=e[i](t,i,o,r,null,lc)}catch(p){a=p}if(a&&!(a instanceof Error)&&Yn((o||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in to)){to[a.message]=!0;var s=n?n():"";Yn("Failed "+r+" type: "+a.message+(s!=null?s:""))}}}}pc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(to={})};uc.exports=pc});var hc=ce((h5,mc)=>{"use strict";var P0=Un(),T0=ic(),Tt=eo(),Kn=qn(),dc=fc(),It=function(){};process.env.NODE_ENV!=="production"&&(It=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function ro(){return null}mc.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(y){var b=y&&(r&&y[r]||y[o]);if(typeof b=="function")return b}var i="<<anonymous>>",a={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:f(),arrayOf:m,element:h(),elementType:x(),instanceOf:g,node:C(),objectOf:v,oneOf:k,oneOfType:P,shape:D,exact:F};function l(y,b){return y===b?y!==0||1/y===1/b:y!==y&&b!==b}function s(y,b){this.message=y,this.data=b&&typeof b=="object"?b:{},this.stack=""}s.prototype=Error.prototype;function p(y){if(process.env.NODE_ENV!=="production")var b={},I=0;function E(_,O,L,z,G,V,me){if(z=z||i,V=V||L,me!==Tt){if(t){var le=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 le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Qe=z+":"+L;!b[Qe]&&I<3&&(It("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+z+"`. 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[Qe]=!0,I++)}}return O[L]==null?_?O[L]===null?new s("The "+G+" `"+V+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new s("The "+G+" `"+V+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:y(O,L,z,G,V)}var M=E.bind(null,!1);return M.isRequired=E.bind(null,!0),M}function u(y){function b(I,E,M,_,O,L){var z=I[E],G=W(z);if(G!==y){var V=re(z);return new s("Invalid "+_+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return p(b)}function f(){return p(ro)}function m(y){function b(I,E,M,_,O){if(typeof y!="function")return new s("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var L=I[E];if(!Array.isArray(L)){var z=W(L);return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected an array."))}for(var G=0;G<L.length;G++){var V=y(L,G,M,_,O+"["+G+"]",Tt);if(V instanceof Error)return V}return null}return p(b)}function h(){function y(b,I,E,M,_){var O=b[I];if(!e(O)){var L=W(O);return new s("Invalid "+M+" `"+_+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement."))}return null}return p(y)}function x(){function y(b,I,E,M,_){var O=b[I];if(!P0.isValidElementType(O)){var L=W(O);return new s("Invalid "+M+" `"+_+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement type."))}return null}return p(y)}function g(y){function b(I,E,M,_,O){if(!(I[E]instanceof y)){var L=y.name||i,z=B(I[E]);return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected ")+("instance of `"+L+"`."))}return null}return p(b)}function k(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?It("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])."):It("Invalid argument supplied to oneOf, expected an array.")),ro;function b(I,E,M,_,O){for(var L=I[E],z=0;z<y.length;z++)if(l(L,y[z]))return null;var G=JSON.stringify(y,function(me,le){var Qe=re(le);return Qe==="symbol"?String(le):le});return new s("Invalid "+_+" `"+O+"` of value `"+String(L)+"` "+("supplied to `"+M+"`, expected one of "+G+"."))}return p(b)}function v(y){function b(I,E,M,_,O){if(typeof y!="function")return new s("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var L=I[E],z=W(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected an object."));for(var G in L)if(Kn(L,G)){var V=y(L,G,M,_,O+"."+G,Tt);if(V instanceof Error)return V}return null}return p(b)}function P(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&It("Invalid argument supplied to oneOfType, expected an instance of array."),ro;for(var b=0;b<y.length;b++){var I=y[b];if(typeof I!="function")return It("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+R(I)+" at index "+b+"."),ro}function E(M,_,O,L,z){for(var G=[],V=0;V<y.length;V++){var me=y[V],le=me(M,_,O,L,z,Tt);if(le==null)return null;le.data&&Kn(le.data,"expectedType")&&G.push(le.data.expectedType)}var Qe=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new s("Invalid "+L+" `"+z+"` supplied to "+("`"+O+"`"+Qe+"."))}return p(E)}function C(){function y(b,I,E,M,_){return T(b[I])?null:new s("Invalid "+M+" `"+_+"` supplied to "+("`"+E+"`, expected a ReactNode."))}return p(y)}function S(y,b,I,E,M){return new s((y||"React class")+": "+b+" type `"+I+"."+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function D(y){function b(I,E,M,_,O){var L=I[E],z=W(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type `"+z+"` "+("supplied to `"+M+"`, expected `object`."));for(var G in y){var V=y[G];if(typeof V!="function")return S(M,_,O,G,re(V));var me=V(L,G,M,_,O+"."+G,Tt);if(me)return me}return null}return p(b)}function F(y){function b(I,E,M,_,O){var L=I[E],z=W(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type `"+z+"` "+("supplied to `"+M+"`, expected `object`."));var G=T0({},I[E],y);for(var V in G){var me=y[V];if(Kn(y,V)&&typeof me!="function")return S(M,_,O,V,re(me));if(!me)return new s("Invalid "+_+" `"+O+"` key `"+V+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(I[E],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(y),null," "));var le=me(L,V,M,_,O+"."+V,Tt);if(le)return le}return null}return p(b)}function T(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(T);if(y===null||e(y))return!0;var b=n(y);if(b){var I=b.call(y),E;if(b!==y.entries){for(;!(E=I.next()).done;)if(!T(E.value))return!1}else for(;!(E=I.next()).done;){var M=E.value;if(M&&!T(M[1]))return!1}}else return!1;return!0;default:return!1}}function te(y,b){return y==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function W(y){var b=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":te(b,y)?"symbol":b}function re(y){if(typeof y=="undefined"||y===null)return""+y;var b=W(y);if(b==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return b}function R(y){var b=re(y);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function B(y){return!y.constructor||!y.constructor.name?i:y.constructor.name}return a.checkPropTypes=dc,a.resetWarningCache=dc.resetWarningCache,a.PropTypes=a,a}});var vc=ce((g5,xc)=>{"use strict";var I0=eo();function gc(){}function yc(){}yc.resetWarningCache=gc;xc.exports=function(){function e(o,n,i,a,l,s){if(s!==I0){var p=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 p.name="Invariant Violation",p}}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:yc,resetWarningCache:gc};return r.PropTypes=r,r}});var oo=ce((y5,Zn)=>{process.env.NODE_ENV!=="production"?(bc=Un(),Cc=!0,Zn.exports=hc()(bc.isElement,Cc)):Zn.exports=vc()();var bc,Cc});var Pc=ce(Y=>{"use strict";var Jn=Symbol.for("react.transitional.element"),ei=Symbol.for("react.portal"),no=Symbol.for("react.fragment"),io=Symbol.for("react.strict_mode"),ao=Symbol.for("react.profiler");Symbol.for("react.provider");var so=Symbol.for("react.consumer"),lo=Symbol.for("react.context"),co=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),uo=Symbol.for("react.suspense_list"),fo=Symbol.for("react.memo"),mo=Symbol.for("react.lazy"),A0=Symbol.for("react.view_transition"),M0=Symbol.for("react.client.reference");function Pe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jn:switch(e=e.type,e){case no:case ao:case io:case po:case uo:case A0:return e;default:switch(e=e&&e.$$typeof,e){case lo:case co:case mo:case fo:return e;case so:return e;default:return t}}case ei:return t}}}Y.ContextConsumer=so;Y.ContextProvider=lo;Y.Element=Jn;Y.ForwardRef=co;Y.Fragment=no;Y.Lazy=mo;Y.Memo=fo;Y.Portal=ei;Y.Profiler=ao;Y.StrictMode=io;Y.Suspense=po;Y.SuspenseList=uo;Y.isContextConsumer=function(e){return Pe(e)===so};Y.isContextProvider=function(e){return Pe(e)===lo};Y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jn};Y.isForwardRef=function(e){return Pe(e)===co};Y.isFragment=function(e){return Pe(e)===no};Y.isLazy=function(e){return Pe(e)===mo};Y.isMemo=function(e){return Pe(e)===fo};Y.isPortal=function(e){return Pe(e)===ei};Y.isProfiler=function(e){return Pe(e)===ao};Y.isStrictMode=function(e){return Pe(e)===io};Y.isSuspense=function(e){return Pe(e)===po};Y.isSuspenseList=function(e){return Pe(e)===uo};Y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===no||e===ao||e===io||e===po||e===uo||typeof e=="object"&&e!==null&&(e.$$typeof===mo||e.$$typeof===fo||e.$$typeof===lo||e.$$typeof===so||e.$$typeof===co||e.$$typeof===M0||e.getModuleId!==void 0)};Y.typeOf=Pe});var Tc=ce(K=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var k=g.$$typeof;switch(k){case t:switch(g=g.type,g){case o:case i:case n:case p:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case s:case m:case f:return g;case a:return g;default:return k}}case r:return k}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");K.ContextConsumer=a,K.ContextProvider=l,K.Element=t,K.ForwardRef=s,K.Fragment=o,K.Lazy=m,K.Memo=f,K.Portal=r,K.Profiler=i,K.StrictMode=n,K.Suspense=p,K.SuspenseList=u,K.isContextConsumer=function(g){return e(g)===a},K.isContextProvider=function(g){return e(g)===l},K.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},K.isForwardRef=function(g){return e(g)===s},K.isFragment=function(g){return e(g)===o},K.isLazy=function(g){return e(g)===m},K.isMemo=function(g){return e(g)===f},K.isPortal=function(g){return e(g)===r},K.isProfiler=function(g){return e(g)===i},K.isStrictMode=function(g){return e(g)===n},K.isSuspense=function(g){return e(g)===p},K.isSuspenseList=function(g){return e(g)===u},K.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===n||g===p||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===s||g.$$typeof===x||g.getModuleId!==void 0)},K.typeOf=e}()});var ri=ce((T5,ti)=>{"use strict";process.env.NODE_ENV==="production"?ti.exports=Pc():ti.exports=Tc()});var lp=ce((mw,sp)=>{"use strict";function ft(e){this._maxSize=e,this.clear()}ft.prototype.clear=function(){this._size=0,this._values=Object.create(null)};ft.prototype.get=function(e){return this._values[e]};ft.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var $1=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ap=/^\d+$/,N1=/^\d/,z1=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,V1=/^\s*(['"]?)(.*?)(\1)\s*$/,Bi=512,op=new ft(Bi),np=new ft(Bi),ip=new ft(Bi);sp.exports={Cache:ft,split:Oi,normalizePath:Di,setter:function(e){var t=Di(e);return np.get(e)||np.set(e,function(o,n){for(var i=0,a=t.length,l=o;i<a-1;){var s=t[i];if(s==="__proto__"||s==="constructor"||s==="prototype")return o;l=l[t[i++]]}l[t[i]]=n})},getter:function(e,t){var r=Di(e);return ip.get(e)||ip.set(e,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!t)n=n[r[i++]];else return;return n})},join:function(e){return e.reduce(function(t,r){return t+(_i(r)||ap.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){j1(Array.isArray(e)?e:Oi(e),t,r)}};function Di(e){return op.get(e)||op.set(e,Oi(e).map(function(t){return t.replace(V1,"$2")}))}function Oi(e){return e.match($1)||[""]}function j1(e,t,r){var o=e.length,n,i,a,l;for(i=0;i<o;i++)n=e[i],n&&(H1(n)&&(n='"'+n+'"'),l=_i(n),a=!l&&/^\d+$/.test(n),t.call(r,n,l,a,i,e))}function _i(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function W1(e){return e.match(N1)&&!e.match(ap)}function G1(e){return z1.test(e)}function H1(e){return!_i(e)&&(W1(e)||G1(e))}});var up=ce((hw,pp)=>{var U1=/[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,Ro=e=>e.match(U1)||[],Do=e=>e[0].toUpperCase()+e.slice(1),Li=(e,t)=>Ro(e).join(t).toLowerCase(),cp=e=>Ro(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),q1=e=>Do(cp(e)),Y1=e=>Li(e,"_"),K1=e=>Li(e,"-"),Z1=e=>Do(Li(e," ")),Q1=e=>Ro(e).map(Do).join(" ");pp.exports={words:Ro,upperFirst:Do,camelCase:cp,pascalCase:q1,snakeCase:Y1,kebabCase:K1,sentenceCase:Z1,titleCase:Q1}});var dp=ce((gw,$i)=>{$i.exports=function(e){return fp(X1(e),e)};$i.exports.array=fp;function fp(e,t){var r=e.length,o=new Array(r),n={},i=r,a=J1(t),l=eh(e);for(t.forEach(function(p){if(!l.has(p[0])||!l.has(p[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)n[i]||s(e[i],i,new Set);return o;function s(p,u,f){if(f.has(p)){var m;try{m=", node was:"+JSON.stringify(p)}catch(g){m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(p))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(p));if(!n[u]){n[u]=!0;var h=a.get(p)||new Set;if(h=Array.from(h),u=h.length){f.add(p);do{var x=h[--u];s(x,l.get(x),f)}while(u);f.delete(p)}o[--r]=p}}}function X1(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 J1(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 eh(e){for(var t=new Map,r=0,o=e.length;r<o;r++)t.set(e[r],r);return t}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var hf=e=>{let n=e,{isLoading:t,children:r}=n,o=w(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,d(c({},o),{disabled:t?!0:o.disabled,children:t?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},N= exports.Button =hf;function Se(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},e))}function Cl(e){let o=e,{label:t}=o,r=w(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:t,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}var _polished = require('polished');var _styles = require('@mui/material/styles');var Ct="#4BA9C1",kf="#2C96B3",Sf=32,Pf={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:Ct,dark:kf},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:"#202024",700:"#262626",600:"#333333",500:"#808080",400:"#BBBBBA",300:"#E0E0E0",200:"#F2F2F2",100:"#FAFAFA"}},typography:{fontFamily:["Roboto","Lato","sans-serif","Poppins","Montserrat"].join(","),h1:{fontSize:"2rem"},h2:{fontSize:"1.75rem"},h3:{fontSize:"1.5rem"},h4:{fontSize:"1.25rem"},h5:{fontSize:"1rem"},h6:{fontSize:"0.875rem"},button:{fontSize:"0.875rem",fontWeight:"bold",textTransform:"none"},body1:{fontSize:"0.775rem",color:"#262626"},body2:{fontSize:"0.7685rem",color:"#808080"},subtitle1:{fontSize:"0.885rem"},subtitle2:{fontSize:"0.785rem",color:"#808080"}},components:{MuiTab:{styleOverrides:{root:{minHeight:"30px",height:"30px"}}},MuiList:{styleOverrides:{root:{paddingTop:0}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{"& .MuiIcon-root":{color:Ct,borderRadius:"0px"},"& .MuiSvgIcon-root":{color:Ct},"& .MuiTypography-root":{color:Ct}},":hover":{background:"rgba(89, 195, 224, 15%)"}}}},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:{height:`${Sf}px`,fontSize:"0.9rem"}}},MuiTextField:{defaultProps:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0}},styleOverrides:{root:{"& label":{color:"#808080",fontSize:"0.8rem"}}}},MuiAutocomplete:{defaultProps:{size:"small"},styleOverrides:{inputRoot:{height:"auto"},root:{"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input":{padding:0}}}},MuiInputLabel:{styleOverrides:{root:{fontSize:"0.875rem"}}},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:Ct},"& .MuiTypography-root":{color:Ct}},":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:{}}}}},Tf=_styles.createTheme.call(void 0, Pf),If=_styles.responsiveFontSizes.call(void 0, Tf),H= exports.theme =If;var Af={"primary-light":H.palette.primary.light,primary:H.palette.primary.main,"primary-dark":H.palette.primary.dark,"text-secondary":H.palette.text.secondary,"text-primary":H.palette.text.primary,"background-paper":H.palette.background.paper,background:H.palette.background.default,"error-light":H.palette.error.light,error:H.palette.error.main,"erro-drark":H.palette.error.dark,"warning-light":H.palette.warning.light,warning:H.palette.warning.main,"warning-dark":H.palette.warning.dark,"success-light":H.palette.success.light,success:H.palette.success.main,"success-dark":H.palette.success.dark,"grey-100":H.palette.grey[100],"grey-200":H.palette.grey[200],"grey-300":H.palette.grey[300],"grey-400":H.palette.grey[400],"grey-500":H.palette.grey[500],"grey-600":H.palette.grey[600],"grey-700":H.palette.grey[700],"grey-800":H.palette.grey[800]};function kl(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(Af).map(([e,t])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:t,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:H.typography.fontFamily,color:_polished.getContrast.call(void 0, t,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:e}),_jsxruntime.jsx.call(void 0, "span",{children:t})]})},e))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var oi = _interopRequireWildcard(_react); var Oc = _interopRequireWildcard(_react); var Rt = _interopRequireWildcard(_react);function Pl(e){if(!e)return 0;let t=String(e);return t=t.replace(/\./g,"").replace(/,/g,"."),parseFloat(t)}var Tn=null,Tl=_react.forwardRef.call(void 0, (e,t)=>{let l=e,{value:r,onChange:o}=l,n=w(l,["value","onChange"]);Tn=null;let i=_react.useCallback.call(void 0, s=>{let p=s.target.value||"0.00";_hooks.isValidNumber.call(void 0, p)&&(Tn==="Backspace"?p=(Pl(p)/10).toFixed(2):p=(Pl(p)*10).toFixed(2),o&&(s.target.value=p,o(s,p)))},[o]),a=_react.useCallback.call(void 0, s=>{s.target.selectionStart===s.target.selectionEnd&&(s.target.selectionStart=s.target.value.length,s.target.selectionEnd=s.target.value.length)},[]);return _jsxruntime.jsx.call(void 0, _material.TextField,c({onKeyDown:s=>{Tn=s.key},onSelect:s=>{a(s)},onChange:i,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:t,sx:{"& .MuiInputBase-input":{textAlign:"right"}}},n))});Tl.defaultProps={value:0};var _f=Tl;var _iconsmaterial = require('@mui/icons-material');var Il={content:{cancel:"error",confirm:"primary"},info:{cancel:"error",confirm:"info"},success:{cancel:"error",confirm:"success"},warning:{cancel:"primary",confirm:"warning"},error:{cancel:"primary",confirm:"error"}};function Je(e){let{cancelLabel:t,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=e;return _jsxruntime.jsxs.call(void 0, Se,{children:[n&&_jsxruntime.jsx.call(void 0, N,{onClick:()=>{n()},color:Il[o||"content"].cancel,children:t}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>{i&&i()},color:Il[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var $f={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};Je.defaultProps=$f;function je(e){let{title:t,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:l}=e,s=_material.useTheme.call(void 0, ),p=o==="none"?null:o||_jsxruntime.jsx.call(void 0, Je,c({onCancel:()=>{n&&n({},"backdropClick")},onConfirm:()=>{i&&i()},type:a},l)),u=_react.useMemo.call(void 0, ()=>a==="error"?"error_outlined":a==="warning"?"error_amber":a==="info"||a==="success"?"info":!1,[a]),f=_react.useMemo.call(void 0, ()=>a!=="content"?a:"primary",[a]);return _jsxruntime.jsxs.call(void 0, _material.Dialog,d(c({},e),{children:[_jsxruntime.jsx.call(void 0, _material.DialogTitle,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{color:m=>{if(a!=="content")return m.palette[f||"primary"].main}},fontSize:"17pt",variant:"h3",children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"flex-start",alignItems:"center",children:[u&&_jsxruntime.jsx.call(void 0, _material.Icon,{sx:{mr:1},fontSize:"medium",children:u}),t]})}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>n({},"escapeKeyDown"),sx:{mr:-1,color:s.palette.text.primary},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{color:"inherit"})})]})}),_jsxruntime.jsx.call(void 0, _material.DialogContent,{children:_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1,color:m=>m.palette.grey[500],fontFamily:m=>m.typography.fontFamily},children:r})}),_jsxruntime.jsx.call(void 0, _material.DialogActions,{sx:{padding:2},children:p})]}))}je.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function En(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=e;return _jsxruntime.jsx.call(void 0, Je,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function An(e){let{isOpenConfirm:t}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:l}=e;return _jsxruntime.jsx.call(void 0, je,{type:o,open:t,title:n,actions:a||_jsxruntime.jsx.call(void 0, En,{type:o,onDelete:l||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onDelete")})}),onClose:()=>{r()},maxWidth:"xs",children:i})}var td={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};An.defaultProps=td;var _muidatatables = require('mui-datatables'); var _muidatatables2 = _interopRequireDefault(_muidatatables);var cd=e=>{let{count:t,rowsPerPage:r,page:o,changePage:n,changeRowsPerPage:i,rowsPerPageOptions:a}=e,l=_react.useMemo.call(void 0, ()=>Math.max(0,Math.ceil(t/r)),[t,r]);return _jsxruntime.jsx.call(void 0, _material.TableFooter,{children:_jsxruntime.jsx.call(void 0, _material.TableRow,{children:_jsxruntime.jsxs.call(void 0, _material.TableCell,{colSpan:1e3,sx:{display:"flex",justifyContent:"flex-end",padding:"12px 12px 12px 12px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"128px",fontSize:"8pt"},label:"Tamanho da p\xE1gina",size:"small",value:r,select:!0,onChange:s=>{i(s.target.value)},children:a.map(s=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:s,children:s},s))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:l,showFirstButton:!0,showLastButton:!0,onChange:(s,p)=>{n(p)},page:o,color:"primary"})]})})})},Rl=cd;function wt(e){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},e))}var Dl=_muidatatables2.default,vd={body:{noMatch:"Nenhum registro encontrado",toolTip:"Ordenar"},pagination:{next:"Pr\xF3ximo",previous:"Anterior",rowsPerPage:"Linhas por p\xE1g:",displayRows:"de"},toolbar:{search:"Procurar",downloadCsv:"Download CSV",print:"Imprimir",viewColumns:"Colunas",filterTable:"Procurar na Tabela"},filter:{all:"Todos",title:"Filtros",reset:"Limpar"},viewColumns:{title:"Visualizar Colunas",titleAria:"Mostrar/Ocultar Colunas da Tabela"},selectedRows:{text:"Linhas Selecionadas",delete:"Remover",deleteAria:"Remover Linhas Selecionadas"}},bd=e=>({filterType:"textField",selectableRows:"none",elevation:0,responsive:"standard",print:!1,download:!1,filter:!1,search:!1,sort:!1,viewColumns:!1,textLabels:vd,serverSide:!0,rowsPerPageOptions:[15,50,100],rowsPerPage:15,fixedHeader:!0,fixedSelectColumn:!1,tableBodyMaxHeight:e}),Cd=e=>{let S=e,{surface:t,error:r,tableTitle:o,isLoading:n,isFetching:i,data:a,columns:l,options:s,pagination:p,changePage:u,changePageSize:f,changeSort:m}=S,h=w(S,["surface","error","tableTitle","isLoading","isFetching","data","columns","options","pagination","changePage","changePageSize","changeSort"]),x=_material.useTheme.call(void 0, ),k=_material.useMediaQuery.call(void 0, x.breakpoints.up("xl"))?75:70,v=p?`${k}vh`:`calc(${k}vh + 65px)`,P=bd(v),C=s||{};return C&&(u&&(C.onChangePage=u),f&&(C.onChangeRowsPerPage=f),m&&(C.onColumnSortChange=m),C.customFooter=(D,F,T,te,W,re)=>!p||n?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{}):_jsxruntime.jsx.call(void 0, Rl,{count:p.totalRecords,page:p.page,rowsPerPage:p.pageSize,rowsPerPageOptions:(C==null?void 0:C.rowsPerPageOptions)||(P==null?void 0:P.rowsPerPageOptions),changeRowsPerPage:C==null?void 0:C.onChangeRowsPerPage,changePage:C==null?void 0:C.onChangePage,textLabels:re})),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[i&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{}),r&&_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},spacing:2,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:r})}),t&&_jsxruntime.jsx.call(void 0, wt,{children:_jsxruntime.jsx.call(void 0, Dl,c({title:o,data:a,columns:l,options:c(c({},P),C)},h))}),!t&&_jsxruntime.jsx.call(void 0, Dl,c({title:o,data:a,columns:l,options:c(c({},P),C)},h))]})},wd= exports.DataTable =Cd;var Md=_styles.styled.call(void 0, r=>{var o=r,{className:e}=o,t=w(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,d(c({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:e.typography.pxToRem(12),border:"1px solid #dadde9"}})),Fd={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},Rd=e=>{let{title:t,type:r}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{mt:.5},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, _material.Icon,{color:r,fontSize:"small",children:r})," ",_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",sx:{ml:.5},children:Fd[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:t})]})},_l=e=>{let i=e,{type:t,children:r,title:o}=i,n=w(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, Md,d(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, Rd,{title:o||"",type:t}),enterDelay:300},n),{children:r}))};_l.defaultProps={type:"info"};var kt=_l;var ob=()=>({style:{width:"80px",textAlign:"center"}}),nb= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function Fn(e){let{onClick:t,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:l,disabled:s,disabledUpdateButton:p,disabledDeleteButton:u,disabledTransporterButton:f}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:m,icon:h,iconButtonProps:x,tooltip:g,visible:k,disabled:v,badge:P})=>k===null||!!k&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:P,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({onClick:C=>t(m,r,C),size:"small",disabled:v},x),{children:[g&&_jsxruntime.jsx.call(void 0, kt,{type:g.type,title:g.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:h})}),!g&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:h})]}),m)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:m=>t("transport",r,m),color:"primary",disabled:s||f,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, kt,{type:"warning",title:_jsxruntime.jsx.call(void 0, _material.Box,{children:"Clique para transportar este registro."}),children:_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"})})]}),n&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",color:"primary",onClick:m=>t("edit",r,m),disabled:s||p,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, kt,{type:"info",title:_jsxruntime.jsx.call(void 0, _material.Box,{children:"Clique para editar este registro."}),children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"})})]}),i&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:m=>t("delete",r,m),color:"primary",disabled:s||u,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, kt,{type:"warning",title:_jsxruntime.jsx.call(void 0, _material.Box,{children:"Clique para excluir este registro."}),children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"})})]})]})}Fn.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function jr(e){let{renderLabel:t,disableds:r}=e,{deleteFilterValue:o,deleteAllFilterValues:n}=_providers.useFilterApi.call(void 0, ),{filterValues:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),l=_react.useMemo.call(void 0, ()=>{if(Object.keys(a||{}).length>0){let u=!1,f=Object.keys(a||{});for(let m=0;m<f.length;m++){let h=a[f[m]];if(Array.isArray(h)&&h.length>0){u=!0;break}else if(!Array.isArray(h)&&h){u=!0;break}}return u}return!1},[a]),s=_react.useCallback.call(void 0, p=>t?t(i[p].label,a[p]):`${i[p].label} - ${a&&a[p]}`,[t,i,a]);return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end",gap:1},children:l&&Object.keys(a||{}).map(p=>{let u=Array.isArray(r)&&r.includes(p),f;if(u||(f=()=>{o&&o(p)}),Array.isArray(a[p])&&a[p].length>0)return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(p),onDelete:f,variant:"outlined"},p);if(!Array.isArray(a[p])&&a[p])return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(p),onDelete:f,variant:"outlined"},p)})}),l&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mr:.5,ml:.5,display:"flex",alignContent:"center",alignItems:"center"},children:_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{n&&n()},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{fontSize:"small",color:"error"})})})]})}function Wr(e){let a=e,{drawerTitle:t,actions:r,onClose:o,children:n}=a,i=w(a,["drawerTitle","actions","onClose","children"]);return _jsxruntime.jsx.call(void 0, _material.Drawer,d(c({PaperProps:{style:{borderRadius:"12px 0 0 12px"}},onClose:o},i),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{width:"360px",height:"100%",justifyContent:"space-between",backgroundColor:l=>l.palette.background.paper},children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",alignContent:"center",height:"48px",borderBottom:l=>`solid 1px ${l.palette.grey[300]}`},children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",variant:"h5",sx:{pl:l=>l.spacing(2)},children:t}),o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{color:"error"})})]}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{padding:l=>l.spacing(2)},children:n})]}),r&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{pt:l=>l.spacing(1),pb:l=>l.spacing(1),pl:l=>l.spacing(2),pr:l=>l.spacing(2),borderTop:l=>`solid 1px ${l.palette.grey[300]}`},children:r})]})}))}Wr.defaultProps={anchor:"right"};var Qd=()=>{let{applyFilterValues:e,closeFilter:t,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){t()}function n(){e(),t()}function i(){r&&(r(),t())}return _jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexDirection:"row",justifyContent:"flex-end","& > button:first-child":{mr:1}},children:[_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,onClick:i,color:"error",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{})," Redefinir Padr\xE3o"]}),_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,variant:"contained",onClick:n,children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})," Aplicar"]})]})},Xd=e=>{let{title:t,children:r,onApplyFilters:o,drawerProps:n}=e,{isOpen:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),{closeFilter:l}=_providers.useFilterApi.call(void 0, );return _react.useEffect.call(void 0, ()=>{o&&o(a)},[a]),_jsxruntime.jsx.call(void 0, Wr,d(c({},n),{drawerTitle:t,open:i,children:r,onClose:()=>l(),actions:_jsxruntime.jsx.call(void 0, Qd,{})}))};function Ln(e){let{triggerButtonLabel:t,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:l,disableds:s,disableFilterControl:p,drawerProps:u}=e,{openFilter:f}=_providers.useFilterApi.call(void 0, ),m=o==="none"?null:o||_jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{f()}},r),{children:t||"Adicionar"}));return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[p&&m,!p&&_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",direction:"row",justifyContent:"flex-end",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, jr,{renderLabel:l,disableds:s}),m]}),_jsxruntime.jsx.call(void 0, Xd,d(c({},u),{onApplyFilters:a,title:n||"",children:i}))]})}Ln.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function Gl(e){let{isFlagged:t,type:r}=e;return t?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function $n(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=e;return _jsxruntime.jsx.call(void 0, Je,{confirmLabel:a||"Salvar",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function zn(e){let{view:t,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:l,triggerButtonProps:s,confirmButtonLabel:p}=e,{isOpen:u}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:m}=_providers.useFormApi.call(void 0, ),h=o||_jsxruntime.jsx.call(void 0, $n,{hideCancelButton:t==="plain",confirmButtonLabel:p,onSubmitForm:n||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onSubmitForm")})}),x=i==="none"?null:i||_jsxruntime.jsx.call(void 0, N,d(c({variant:"contained",onClick:()=>{m()}},s),{children:l||"Adicionar"}));return t==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[x,_jsxruntime.jsx.call(void 0, je,d(c({},a),{onClose:()=>{f()},open:!!u,children:r,actions:h}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,h]})}var l0={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};zn.defaultProps=l0;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function Pt(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.`}function Ul(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 ql={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 Yl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var p0=!1,u0=/[A-Z]|^ms/g,f0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xl=function(t){return t.charCodeAt(1)===45},Kl=function(t){return t!=null&&typeof t!="boolean"},Vn=Yl(function(e){return Xl(e)?e:e.replace(u0,"-$&").toLowerCase()}),Zl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(f0,function(o,n,i){return _e={name:n,styles:i,next:_e},n})}return ql[t]!==1&&!Xl(t)&&typeof r=="number"&&r!==0?r+"px":r},d0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rr(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 _e={name:n.name,styles:n.styles,next:_e},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)_e={name:a.name,styles:a.styles,next:_e},a=a.next;var l=i.styles+";";return l}return m0(e,t,r)}case"function":{if(e!==void 0){var s=_e,p=r(e);return _e=s,rr(e,t,p)}break}}var u=r;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function m0(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=rr(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":Kl(l)&&(o+=Vn(i)+":"+Zl(i,l)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&p0)throw new Error(d0);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Kl(a[s])&&(o+=Vn(i)+":"+Zl(i,a[s])+";");else{var p=rr(e,t,a);switch(i){case"animation":case"animationName":{o+=Vn(i)+":"+p+";";break}default:o+=i+"{"+p+"}"}}}}return o}var Ql=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function Jl(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="";_e=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,n+=rr(r,t,i);else{var a=i;n+=a[0]}for(var l=1;l<e.length;l++)if(n+=rr(r,t,e[l]),o){var s=i;n+=s[l]}Ql.lastIndex=0;for(var p="",u;(u=Ql.exec(n))!==null;)p+="-"+u[1];var f=Ul(n)+p;return{name:f,styles:n,next:_e}}var _react2 = require('@emotion/react');function Qn(e,t){let r=_styled2.default.call(void 0, 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(i=>i===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...o)}:r}function kc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var wc=[];function Xn(e){return wc[0]=e,Jl(wc)}var ni=Xe(ri());function Le(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 Ic(e){if(oi.isValidElement(e)||(0,ni.isValidElementType)(e)||!Le(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Ic(e[r])}),t}function Te(e,t,r={clone:!0}){let o=r.clone?c({},e):e;return Le(e)&&Le(t)&&Object.keys(t).forEach(n=>{oi.isValidElement(t[n])||(0,ni.isValidElementType)(t[n])?o[n]=t[n]:Le(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Le(e[n])?o[n]=Te(e[n],t[n],r):r.clone?o[n]=Le(t[n])?Ic(t[n]):t[n]:o[n]=t[n]}),o}var F0=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)=>d(c({},r),{[o.key]:o.val}),{})};function ii(e){let m=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=m,n=w(m,["values","unit","step"]),i=F0(t),a=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${r})`}function p(h,x){let g=a.indexOf(x);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:x)-o/100}${r})`}function u(h){return a.indexOf(h)+1<a.length?p(h,a[a.indexOf(h)+1]):l(h)}function f(h){let x=a.indexOf(h);return x===0?l(a[1]):x===a.length-1?s(a[x]):p(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return c({keys:a,values:i,up:l,down:s,between:p,only:u,not:f,unit:r},n)}function ai(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,n)=>{var a,l;let i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=n.match(i))==null?void 0:l[1])||0)});return r.length?r.reduce((o,n)=>{let i=t[n];return delete o[n],o[n]=i,o},c({},t)):t}function si(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function li(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\`.`:Pt(18,`(${t})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(n).up(i)}function ho(e){let t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{let s=t(e.breakpoints.not(...l),a);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=i=>(r(o,i),o);return r(n),d(c({},e),{containerQueries:n})}var R0={borderRadius:4},Ec=R0;var Et=Xe(oo()),D0=process.env.NODE_ENV!=="production"?Et.default.oneOfType([Et.default.number,Et.default.string,Et.default.object,Et.default.array]):{},be=D0;function O0(e,t){return t?Te(e,t,{clone:!1}):e}var We=O0;var or={xs:0,sm:600,md:900,lg:1200,xl:1536},Ac={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${or[e]}px)`},B0={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:or[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ie(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let i=o.breakpoints||Ac;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){let i=o.breakpoints||Ac;return Object.keys(t).reduce((a,l)=>{if(si(i.keys,l)){let s=li(o.containerQueries?o:B0,l);s&&(a[s]=r(t[l],l))}else if(Object.keys(i.values||or).includes(l)){let s=i.up(l);a[s]=r(t[l],l)}else{let s=l;a[s]=t[s]}return a},{})}return r(t)}function ci(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,n)=>{let i=e.up(n);return o[i]={},o},{}))||{}}function pi(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function Mc(e,...t){let r=ci(e),o=[r,...t].reduce((n,i)=>Te(n,i),{});return pi(Object.keys(r),o)}function _0(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,i)=>{i<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function go({values:e,breakpoints:t,base:r}){let o=r||_0(e,t),n=Object.keys(o);if(n.length===0)return e;let i;return n.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function rt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Pt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function At(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,i)=>n&&n[i]?n[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function nr(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=At(e,r)||o,t&&(n=t(n,o,e)),n}function L0(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,i=a=>{if(a[t]==null)return null;let l=a[t],s=a.theme,p=At(s,o)||{};return ie(a,l,f=>{let m=nr(p,n,f);return f===m&&typeof f=="string"&&(m=nr(p,n,`${t}${f==="default"?"":rt(f)}`,f)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:be}:{},i.filterProps=[t],i}var Z=L0;function yo(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var $0={m:"margin",p:"padding"},N0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z0=yo(e=>{if(e.length>2)if(Fc[e])e=Fc[e];else return[e];let[t,r]=e.split(""),o=$0[t],n=N0[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),xo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ui=[...xo,...vo];function ct(e,t,r,o){var i;let n=(i=At(e,t,!0))!=null?i: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"?`calc(${a} * ${n})`:n*a):Array.isArray(n)?a=>{if(typeof a=="string")return a;let l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>n.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${l} > ${n.length-1}, you need to add the missing values.`].join(`
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var lf=Object.create;var Sn=Object.defineProperty,cf=Object.defineProperties,pf=Object.getOwnPropertyDescriptor,uf=Object.getOwnPropertyDescriptors,ff=Object.getOwnPropertyNames,$r=Object.getOwnPropertySymbols,df=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable;var bl=(e,t,r)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))Pn.call(t,r)&&bl(e,r,t[r]);if($r)for(var r of $r(t))Cl.call(t,r)&&bl(e,r,t[r]);return e},d=(e,t)=>cf(e,uf(t));var w=(e,t)=>{var r={};for(var o in e)Pn.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&$r)for(var o of $r(e))t.indexOf(o)<0&&Cl.call(e,o)&&(r[o]=e[o]);return r};var ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mf=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ff(t))!Pn.call(e,n)&&n!==r&&Sn(e,n,{get:()=>t[n],enumerable:!(o=pf(t,n))||o.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?lf(df(e)):{},mf(t||!e||!e.__esModule?Sn(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r)=>new Promise((o,n)=>{var i=s=>{try{l(r.next(s))}catch(p){n(p)}},a=s=>{try{l(r.throw(s))}catch(p){n(p)}},l=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,a);l((r=r.apply(e,t)).next())});var oc=ce(U=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,Wn=ne?Symbol.for("react.element"):60103,Gn=ne?Symbol.for("react.portal"):60106,Gr=ne?Symbol.for("react.fragment"):60107,Hr=ne?Symbol.for("react.strict_mode"):60108,Ur=ne?Symbol.for("react.profiler"):60114,qr=ne?Symbol.for("react.provider"):60109,Yr=ne?Symbol.for("react.context"):60110,Hn=ne?Symbol.for("react.async_mode"):60111,Kr=ne?Symbol.for("react.concurrent_mode"):60111,Zr=ne?Symbol.for("react.forward_ref"):60112,Qr=ne?Symbol.for("react.suspense"):60113,y0=ne?Symbol.for("react.suspense_list"):60120,Xr=ne?Symbol.for("react.memo"):60115,Jr=ne?Symbol.for("react.lazy"):60116,x0=ne?Symbol.for("react.block"):60121,v0=ne?Symbol.for("react.fundamental"):60117,b0=ne?Symbol.for("react.responder"):60118,C0=ne?Symbol.for("react.scope"):60119;function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wn:switch(e=e.type,e){case Hn:case Kr:case Gr:case Ur:case Hr:case Qr:return e;default:switch(e=e&&e.$$typeof,e){case Yr:case Zr:case Jr:case Xr:case qr:return e;default:return t}}case Gn:return t}}}function rc(e){return ve(e)===Kr}U.AsyncMode=Hn;U.ConcurrentMode=Kr;U.ContextConsumer=Yr;U.ContextProvider=qr;U.Element=Wn;U.ForwardRef=Zr;U.Fragment=Gr;U.Lazy=Jr;U.Memo=Xr;U.Portal=Gn;U.Profiler=Ur;U.StrictMode=Hr;U.Suspense=Qr;U.isAsyncMode=function(e){return rc(e)||ve(e)===Hn};U.isConcurrentMode=rc;U.isContextConsumer=function(e){return ve(e)===Yr};U.isContextProvider=function(e){return ve(e)===qr};U.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wn};U.isForwardRef=function(e){return ve(e)===Zr};U.isFragment=function(e){return ve(e)===Gr};U.isLazy=function(e){return ve(e)===Jr};U.isMemo=function(e){return ve(e)===Xr};U.isPortal=function(e){return ve(e)===Gn};U.isProfiler=function(e){return ve(e)===Ur};U.isStrictMode=function(e){return ve(e)===Hr};U.isSuspense=function(e){return ve(e)===Qr};U.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gr||e===Kr||e===Ur||e===Hr||e===Qr||e===y0||typeof e=="object"&&e!==null&&(e.$$typeof===Jr||e.$$typeof===Xr||e.$$typeof===qr||e.$$typeof===Yr||e.$$typeof===Zr||e.$$typeof===v0||e.$$typeof===b0||e.$$typeof===C0||e.$$typeof===x0)};U.typeOf=ve});var nc=ce(q=>{"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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function C(A){return typeof A=="string"||typeof A=="function"||A===o||A===p||A===i||A===n||A===f||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===x||A.$$typeof===h||A.$$typeof===a||A.$$typeof===l||A.$$typeof===u||A.$$typeof===k||A.$$typeof===v||A.$$typeof===P||A.$$typeof===g)}function S(A){if(typeof A=="object"&&A!==null){var kn=A.$$typeof;switch(kn){case t:var Lr=A.type;switch(Lr){case s:case p:case o:case i:case n:case f:return Lr;default:var vl=Lr&&Lr.$$typeof;switch(vl){case l:case u:case x:case h:case a:return vl;default:return kn}}case r:return kn}}}var D=s,F=p,T=l,te=a,W=t,re=u,R=o,B=x,y=h,b=r,I=i,E=n,M=f,_=!1;function O(A){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(A)||S(A)===s}function L(A){return S(A)===p}function z(A){return S(A)===l}function G(A){return S(A)===a}function V(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function me(A){return S(A)===u}function le(A){return S(A)===o}function Qe(A){return S(A)===x}function rf(A){return S(A)===h}function of(A){return S(A)===r}function nf(A){return S(A)===i}function af(A){return S(A)===n}function sf(A){return S(A)===f}q.AsyncMode=D,q.ConcurrentMode=F,q.ContextConsumer=T,q.ContextProvider=te,q.Element=W,q.ForwardRef=re,q.Fragment=R,q.Lazy=B,q.Memo=y,q.Portal=b,q.Profiler=I,q.StrictMode=E,q.Suspense=M,q.isAsyncMode=O,q.isConcurrentMode=L,q.isContextConsumer=z,q.isContextProvider=G,q.isElement=V,q.isForwardRef=me,q.isFragment=le,q.isLazy=Qe,q.isMemo=rf,q.isPortal=of,q.isProfiler=nf,q.isStrictMode=af,q.isSuspense=sf,q.isValidElementType=C,q.typeOf=S}()});var qn=ce((m5,Un)=>{"use strict";process.env.NODE_ENV==="production"?Un.exports=oc():Un.exports=nc()});var sc=ce((h5,ac)=>{"use strict";var ic=Object.getOwnPropertySymbols,w0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable;function S0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function P0(){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(i){return t[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}ac.exports=P0()?Object.assign:function(e,t){for(var r,o=S0(e),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)w0.call(r,a)&&(o[a]=r[a]);if(ic){n=ic(r);for(var l=0;l<n.length;l++)k0.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o}});var eo=ce((g5,lc)=>{"use strict";var T0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";lc.exports=T0});var Yn=ce((y5,cc)=>{cc.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var mc=ce((x5,dc)=>{"use strict";var Kn=function(){};process.env.NODE_ENV!=="production"&&(pc=eo(),to={},uc=Yn(),Kn=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});var pc,to,uc;function fc(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in e)if(uc(e,i)){var a;try{if(typeof e[i]!="function"){var l=Error((o||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=e[i](t,i,o,r,null,pc)}catch(p){a=p}if(a&&!(a instanceof Error)&&Kn((o||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in to)){to[a.message]=!0;var s=n?n():"";Kn("Failed "+r+" type: "+a.message+(s!=null?s:""))}}}}fc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(to={})};dc.exports=fc});var yc=ce((v5,gc)=>{"use strict";var I0=qn(),E0=sc(),Tt=eo(),Zn=Yn(),hc=mc(),It=function(){};process.env.NODE_ENV!=="production"&&(It=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function ro(){return null}gc.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(y){var b=y&&(r&&y[r]||y[o]);if(typeof b=="function")return b}var i="<<anonymous>>",a={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:f(),arrayOf:m,element:h(),elementType:x(),instanceOf:g,node:C(),objectOf:v,oneOf:k,oneOfType:P,shape:D,exact:F};function l(y,b){return y===b?y!==0||1/y===1/b:y!==y&&b!==b}function s(y,b){this.message=y,this.data=b&&typeof b=="object"?b:{},this.stack=""}s.prototype=Error.prototype;function p(y){if(process.env.NODE_ENV!=="production")var b={},I=0;function E(_,O,L,z,G,V,me){if(z=z||i,V=V||L,me!==Tt){if(t){var le=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 le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Qe=z+":"+L;!b[Qe]&&I<3&&(It("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+z+"`. 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[Qe]=!0,I++)}}return O[L]==null?_?O[L]===null?new s("The "+G+" `"+V+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new s("The "+G+" `"+V+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:y(O,L,z,G,V)}var M=E.bind(null,!1);return M.isRequired=E.bind(null,!0),M}function u(y){function b(I,E,M,_,O,L){var z=I[E],G=W(z);if(G!==y){var V=re(z);return new s("Invalid "+_+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return p(b)}function f(){return p(ro)}function m(y){function b(I,E,M,_,O){if(typeof y!="function")return new s("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var L=I[E];if(!Array.isArray(L)){var z=W(L);return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected an array."))}for(var G=0;G<L.length;G++){var V=y(L,G,M,_,O+"["+G+"]",Tt);if(V instanceof Error)return V}return null}return p(b)}function h(){function y(b,I,E,M,_){var O=b[I];if(!e(O)){var L=W(O);return new s("Invalid "+M+" `"+_+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement."))}return null}return p(y)}function x(){function y(b,I,E,M,_){var O=b[I];if(!I0.isValidElementType(O)){var L=W(O);return new s("Invalid "+M+" `"+_+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement type."))}return null}return p(y)}function g(y){function b(I,E,M,_,O){if(!(I[E]instanceof y)){var L=y.name||i,z=B(I[E]);return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected ")+("instance of `"+L+"`."))}return null}return p(b)}function k(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?It("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])."):It("Invalid argument supplied to oneOf, expected an array.")),ro;function b(I,E,M,_,O){for(var L=I[E],z=0;z<y.length;z++)if(l(L,y[z]))return null;var G=JSON.stringify(y,function(me,le){var Qe=re(le);return Qe==="symbol"?String(le):le});return new s("Invalid "+_+" `"+O+"` of value `"+String(L)+"` "+("supplied to `"+M+"`, expected one of "+G+"."))}return p(b)}function v(y){function b(I,E,M,_,O){if(typeof y!="function")return new s("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var L=I[E],z=W(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected an object."));for(var G in L)if(Zn(L,G)){var V=y(L,G,M,_,O+"."+G,Tt);if(V instanceof Error)return V}return null}return p(b)}function P(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&It("Invalid argument supplied to oneOfType, expected an instance of array."),ro;for(var b=0;b<y.length;b++){var I=y[b];if(typeof I!="function")return It("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+R(I)+" at index "+b+"."),ro}function E(M,_,O,L,z){for(var G=[],V=0;V<y.length;V++){var me=y[V],le=me(M,_,O,L,z,Tt);if(le==null)return null;le.data&&Zn(le.data,"expectedType")&&G.push(le.data.expectedType)}var Qe=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new s("Invalid "+L+" `"+z+"` supplied to "+("`"+O+"`"+Qe+"."))}return p(E)}function C(){function y(b,I,E,M,_){return T(b[I])?null:new s("Invalid "+M+" `"+_+"` supplied to "+("`"+E+"`, expected a ReactNode."))}return p(y)}function S(y,b,I,E,M){return new s((y||"React class")+": "+b+" type `"+I+"."+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function D(y){function b(I,E,M,_,O){var L=I[E],z=W(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type `"+z+"` "+("supplied to `"+M+"`, expected `object`."));for(var G in y){var V=y[G];if(typeof V!="function")return S(M,_,O,G,re(V));var me=V(L,G,M,_,O+"."+G,Tt);if(me)return me}return null}return p(b)}function F(y){function b(I,E,M,_,O){var L=I[E],z=W(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type `"+z+"` "+("supplied to `"+M+"`, expected `object`."));var G=E0({},I[E],y);for(var V in G){var me=y[V];if(Zn(y,V)&&typeof me!="function")return S(M,_,O,V,re(me));if(!me)return new s("Invalid "+_+" `"+O+"` key `"+V+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(I[E],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var le=me(L,V,M,_,O+"."+V,Tt);if(le)return le}return null}return p(b)}function T(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(T);if(y===null||e(y))return!0;var b=n(y);if(b){var I=b.call(y),E;if(b!==y.entries){for(;!(E=I.next()).done;)if(!T(E.value))return!1}else for(;!(E=I.next()).done;){var M=E.value;if(M&&!T(M[1]))return!1}}else return!1;return!0;default:return!1}}function te(y,b){return y==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function W(y){var b=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":te(b,y)?"symbol":b}function re(y){if(typeof y=="undefined"||y===null)return""+y;var b=W(y);if(b==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return b}function R(y){var b=re(y);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function B(y){return!y.constructor||!y.constructor.name?i:y.constructor.name}return a.checkPropTypes=hc,a.resetWarningCache=hc.resetWarningCache,a.PropTypes=a,a}});var Cc=ce((b5,bc)=>{"use strict";var A0=eo();function xc(){}function vc(){}vc.resetWarningCache=xc;bc.exports=function(){function e(o,n,i,a,l,s){if(s!==A0){var p=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 p.name="Invariant Violation",p}}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:vc,resetWarningCache:xc};return r.PropTypes=r,r}});var oo=ce((C5,Qn)=>{process.env.NODE_ENV!=="production"?(wc=qn(),kc=!0,Qn.exports=yc()(wc.isElement,kc)):Qn.exports=Cc()();var wc,kc});var Ic=ce(Y=>{"use strict";var ei=Symbol.for("react.transitional.element"),ti=Symbol.for("react.portal"),no=Symbol.for("react.fragment"),io=Symbol.for("react.strict_mode"),ao=Symbol.for("react.profiler");Symbol.for("react.provider");var so=Symbol.for("react.consumer"),lo=Symbol.for("react.context"),co=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),uo=Symbol.for("react.suspense_list"),fo=Symbol.for("react.memo"),mo=Symbol.for("react.lazy"),F0=Symbol.for("react.view_transition"),R0=Symbol.for("react.client.reference");function Pe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ei:switch(e=e.type,e){case no:case ao:case io:case po:case uo:case F0:return e;default:switch(e=e&&e.$$typeof,e){case lo:case co:case mo:case fo:return e;case so:return e;default:return t}}case ti:return t}}}Y.ContextConsumer=so;Y.ContextProvider=lo;Y.Element=ei;Y.ForwardRef=co;Y.Fragment=no;Y.Lazy=mo;Y.Memo=fo;Y.Portal=ti;Y.Profiler=ao;Y.StrictMode=io;Y.Suspense=po;Y.SuspenseList=uo;Y.isContextConsumer=function(e){return Pe(e)===so};Y.isContextProvider=function(e){return Pe(e)===lo};Y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ei};Y.isForwardRef=function(e){return Pe(e)===co};Y.isFragment=function(e){return Pe(e)===no};Y.isLazy=function(e){return Pe(e)===mo};Y.isMemo=function(e){return Pe(e)===fo};Y.isPortal=function(e){return Pe(e)===ti};Y.isProfiler=function(e){return Pe(e)===ao};Y.isStrictMode=function(e){return Pe(e)===io};Y.isSuspense=function(e){return Pe(e)===po};Y.isSuspenseList=function(e){return Pe(e)===uo};Y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===no||e===ao||e===io||e===po||e===uo||typeof e=="object"&&e!==null&&(e.$$typeof===mo||e.$$typeof===fo||e.$$typeof===lo||e.$$typeof===so||e.$$typeof===co||e.$$typeof===R0||e.getModuleId!==void 0)};Y.typeOf=Pe});var Ec=ce(K=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var k=g.$$typeof;switch(k){case t:switch(g=g.type,g){case o:case i:case n:case p:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case s:case m:case f:return g;case a:return g;default:return k}}case r:return k}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");K.ContextConsumer=a,K.ContextProvider=l,K.Element=t,K.ForwardRef=s,K.Fragment=o,K.Lazy=m,K.Memo=f,K.Portal=r,K.Profiler=i,K.StrictMode=n,K.Suspense=p,K.SuspenseList=u,K.isContextConsumer=function(g){return e(g)===a},K.isContextProvider=function(g){return e(g)===l},K.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},K.isForwardRef=function(g){return e(g)===s},K.isFragment=function(g){return e(g)===o},K.isLazy=function(g){return e(g)===m},K.isMemo=function(g){return e(g)===f},K.isPortal=function(g){return e(g)===r},K.isProfiler=function(g){return e(g)===i},K.isStrictMode=function(g){return e(g)===n},K.isSuspense=function(g){return e(g)===p},K.isSuspenseList=function(g){return e(g)===u},K.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===n||g===p||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===s||g.$$typeof===x||g.getModuleId!==void 0)},K.typeOf=e}()});var oi=ce((M5,ri)=>{"use strict";process.env.NODE_ENV==="production"?ri.exports=Ic():ri.exports=Ec()});var pp=ce((xw,cp)=>{"use strict";function ft(e){this._maxSize=e,this.clear()}ft.prototype.clear=function(){this._size=0,this._values=Object.create(null)};ft.prototype.get=function(e){return this._values[e]};ft.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var z1=/[^.^\]^[]+|(?=\[\]|\.\.)/g,lp=/^\d+$/,V1=/^\d/,j1=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,W1=/^\s*(['"]?)(.*?)(\1)\s*$/,_i=512,ip=new ft(_i),ap=new ft(_i),sp=new ft(_i);cp.exports={Cache:ft,split:Bi,normalizePath:Oi,setter:function(e){var t=Oi(e);return ap.get(e)||ap.set(e,function(o,n){for(var i=0,a=t.length,l=o;i<a-1;){var s=t[i];if(s==="__proto__"||s==="constructor"||s==="prototype")return o;l=l[t[i++]]}l[t[i]]=n})},getter:function(e,t){var r=Oi(e);return sp.get(e)||sp.set(e,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!t)n=n[r[i++]];else return;return n})},join:function(e){return e.reduce(function(t,r){return t+(Li(r)||lp.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){G1(Array.isArray(e)?e:Bi(e),t,r)}};function Oi(e){return ip.get(e)||ip.set(e,Bi(e).map(function(t){return t.replace(W1,"$2")}))}function Bi(e){return e.match(z1)||[""]}function G1(e,t,r){var o=e.length,n,i,a,l;for(i=0;i<o;i++)n=e[i],n&&(q1(n)&&(n='"'+n+'"'),l=Li(n),a=!l&&/^\d+$/.test(n),t.call(r,n,l,a,i,e))}function Li(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function H1(e){return e.match(V1)&&!e.match(lp)}function U1(e){return j1.test(e)}function q1(e){return!Li(e)&&(H1(e)||U1(e))}});var dp=ce((vw,fp)=>{var Y1=/[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,Ro=e=>e.match(Y1)||[],Do=e=>e[0].toUpperCase()+e.slice(1),$i=(e,t)=>Ro(e).join(t).toLowerCase(),up=e=>Ro(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),K1=e=>Do(up(e)),Z1=e=>$i(e,"_"),Q1=e=>$i(e,"-"),X1=e=>Do($i(e," ")),J1=e=>Ro(e).map(Do).join(" ");fp.exports={words:Ro,upperFirst:Do,camelCase:up,pascalCase:K1,snakeCase:Z1,kebabCase:Q1,sentenceCase:X1,titleCase:J1}});var hp=ce((bw,Ni)=>{Ni.exports=function(e){return mp(eh(e),e)};Ni.exports.array=mp;function mp(e,t){var r=e.length,o=new Array(r),n={},i=r,a=th(t),l=rh(e);for(t.forEach(function(p){if(!l.has(p[0])||!l.has(p[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)n[i]||s(e[i],i,new Set);return o;function s(p,u,f){if(f.has(p)){var m;try{m=", node was:"+JSON.stringify(p)}catch(g){m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(p))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(p));if(!n[u]){n[u]=!0;var h=a.get(p)||new Set;if(h=Array.from(h),u=h.length){f.add(p);do{var x=h[--u];s(x,l.get(x),f)}while(u);f.delete(p)}o[--r]=p}}}function eh(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 th(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 rh(e){for(var t=new Map,r=0,o=e.length;r<o;r++)t.set(e[r],r);return t}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var yf=e=>{let n=e,{isLoading:t,children:r}=n,o=w(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,d(c({},o),{disabled:t?!0:o.disabled,children:t?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},N= exports.Button =yf;function Se(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},e))}function kl(e){let o=e,{label:t}=o,r=w(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:t,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}var _polished = require('polished');var _styles = require('@mui/material/styles');var Ct="#4BA9C1",Pf="#2C96B3",Tf=32,If={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:Ct,dark:Pf},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:"#202024",700:"#262626",600:"#333333",500:"#808080",400:"#BBBBBA",300:"#E0E0E0",200:"#F2F2F2",100:"#FAFAFA"}},typography:{fontFamily:["Roboto","Lato","sans-serif","Poppins","Montserrat"].join(","),h1:{fontSize:"2rem"},h2:{fontSize:"1.75rem"},h3:{fontSize:"1.5rem"},h4:{fontSize:"1.25rem"},h5:{fontSize:"1rem"},h6:{fontSize:"0.875rem"},button:{fontSize:"0.875rem",fontWeight:"bold",textTransform:"none"},body1:{fontSize:"0.775rem",color:"#262626"},body2:{fontSize:"0.7685rem",color:"#808080"},subtitle1:{fontSize:"0.885rem"},subtitle2:{fontSize:"0.785rem",color:"#808080"}},components:{MuiTab:{styleOverrides:{root:{minHeight:"30px",height:"30px"}}},MuiList:{styleOverrides:{root:{paddingTop:0}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{"& .MuiIcon-root":{color:Ct,borderRadius:"0px"},"& .MuiSvgIcon-root":{color:Ct},"& .MuiTypography-root":{color:Ct}},":hover":{background:"rgba(89, 195, 224, 15%)"}}}},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:{height:`${Tf}px`,fontSize:"0.9rem"}}},MuiTextField:{defaultProps:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0}},styleOverrides:{root:{"& label":{color:"#808080",fontSize:"0.8rem"}}}},MuiAutocomplete:{defaultProps:{size:"small"},styleOverrides:{inputRoot:{height:"auto"},root:{"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input":{padding:0}}}},MuiInputLabel:{styleOverrides:{root:{fontSize:"0.875rem"}}},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:Ct},"& .MuiTypography-root":{color:Ct}},":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:{}}}}},Ef=_styles.createTheme.call(void 0, If),Af=_styles.responsiveFontSizes.call(void 0, Ef),H= exports.theme =Af;var Ff={"primary-light":H.palette.primary.light,primary:H.palette.primary.main,"primary-dark":H.palette.primary.dark,"text-secondary":H.palette.text.secondary,"text-primary":H.palette.text.primary,"background-paper":H.palette.background.paper,background:H.palette.background.default,"error-light":H.palette.error.light,error:H.palette.error.main,"erro-drark":H.palette.error.dark,"warning-light":H.palette.warning.light,warning:H.palette.warning.main,"warning-dark":H.palette.warning.dark,"success-light":H.palette.success.light,success:H.palette.success.main,"success-dark":H.palette.success.dark,"grey-100":H.palette.grey[100],"grey-200":H.palette.grey[200],"grey-300":H.palette.grey[300],"grey-400":H.palette.grey[400],"grey-500":H.palette.grey[500],"grey-600":H.palette.grey[600],"grey-700":H.palette.grey[700],"grey-800":H.palette.grey[800]};function Pl(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(Ff).map(([e,t])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:t,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:H.typography.fontFamily,color:_polished.getContrast.call(void 0, t,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:e}),_jsxruntime.jsx.call(void 0, "span",{children:t})]})},e))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var ni = _interopRequireWildcard(_react); var _c = _interopRequireWildcard(_react); var Rt = _interopRequireWildcard(_react);function Il(e){if(!e)return 0;let t=String(e);return t=t.replace(/\./g,"").replace(/,/g,"."),parseFloat(t)}var In=null,El=_react.forwardRef.call(void 0, (e,t)=>{let l=e,{value:r,onChange:o}=l,n=w(l,["value","onChange"]);In=null;let i=_react.useCallback.call(void 0, s=>{let p=s.target.value||"0.00";_hooks.isValidNumber.call(void 0, p)&&(In==="Backspace"?p=(Il(p)/10).toFixed(2):p=(Il(p)*10).toFixed(2),o&&(s.target.value=p,o(s,p)))},[o]),a=_react.useCallback.call(void 0, s=>{s.target.selectionStart===s.target.selectionEnd&&(s.target.selectionStart=s.target.value.length,s.target.selectionEnd=s.target.value.length)},[]);return _jsxruntime.jsx.call(void 0, _material.TextField,c({onKeyDown:s=>{In=s.key},onSelect:s=>{a(s)},onChange:i,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:t,sx:{"& .MuiInputBase-input":{textAlign:"right"}}},n))});El.defaultProps={value:0};var $f=El;var _iconsmaterial = require('@mui/icons-material');var Al={content:{cancel:"error",confirm:"primary"},info:{cancel:"error",confirm:"info"},success:{cancel:"error",confirm:"success"},warning:{cancel:"primary",confirm:"warning"},error:{cancel:"primary",confirm:"error"}};function Je(e){let{cancelLabel:t,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=e;return _jsxruntime.jsxs.call(void 0, Se,{children:[n&&_jsxruntime.jsx.call(void 0, N,{onClick:()=>{n()},color:Al[o||"content"].cancel,children:t}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>{i&&i()},color:Al[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var zf={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};Je.defaultProps=zf;function je(e){let{title:t,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:l}=e,s=_material.useTheme.call(void 0, ),p=o==="none"?null:o||_jsxruntime.jsx.call(void 0, Je,c({onCancel:()=>{n&&n({},"backdropClick")},onConfirm:()=>{i&&i()},type:a},l)),u=_react.useMemo.call(void 0, ()=>a==="error"?"error_outlined":a==="warning"?"error_amber":a==="info"||a==="success"?"info":!1,[a]),f=_react.useMemo.call(void 0, ()=>a!=="content"?a:"primary",[a]);return _jsxruntime.jsxs.call(void 0, _material.Dialog,d(c({},e),{children:[_jsxruntime.jsx.call(void 0, _material.DialogTitle,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{color:m=>{if(a!=="content")return m.palette[f||"primary"].main}},fontSize:"17pt",variant:"h3",children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"flex-start",alignItems:"center",children:[u&&_jsxruntime.jsx.call(void 0, _material.Icon,{sx:{mr:1},fontSize:"medium",children:u}),t]})}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>n({},"escapeKeyDown"),sx:{mr:-1,color:s.palette.text.primary},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{color:"inherit"})})]})}),_jsxruntime.jsx.call(void 0, _material.DialogContent,{children:_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1,color:m=>m.palette.grey[500],fontFamily:m=>m.typography.fontFamily},children:r})}),_jsxruntime.jsx.call(void 0, _material.DialogActions,{sx:{padding:2},children:p})]}))}je.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function An(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=e;return _jsxruntime.jsx.call(void 0, Je,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function Mn(e){let{isOpenConfirm:t}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:l}=e;return _jsxruntime.jsx.call(void 0, je,{type:o,open:t,title:n,actions:a||_jsxruntime.jsx.call(void 0, An,{type:o,onDelete:l||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onDelete")})}),onClose:()=>{r()},maxWidth:"xs",children:i})}var od={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};Mn.defaultProps=od;var _muidatatables = require('mui-datatables'); var _muidatatables2 = _interopRequireDefault(_muidatatables);var ud=e=>{let{count:t,rowsPerPage:r,page:o,changePage:n,changeRowsPerPage:i,rowsPerPageOptions:a}=e,l=_react.useMemo.call(void 0, ()=>Math.max(0,Math.ceil(t/r)),[t,r]);return _jsxruntime.jsx.call(void 0, _material.TableFooter,{children:_jsxruntime.jsx.call(void 0, _material.TableRow,{children:_jsxruntime.jsxs.call(void 0, _material.TableCell,{colSpan:1e3,sx:{display:"flex",justifyContent:"flex-end",padding:"12px 12px 12px 12px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"128px",fontSize:"8pt"},label:"Tamanho da p\xE1gina",size:"small",value:r,select:!0,onChange:s=>{i(s.target.value)},children:a.map(s=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:s,children:s},s))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:l,showFirstButton:!0,showLastButton:!0,onChange:(s,p)=>{n(p)},page:o,color:"primary"})]})})})},Ol=ud;function wt(e){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},e))}var Bl=_muidatatables2.default,Cd={body:{noMatch:"Nenhum registro encontrado",toolTip:"Ordenar"},pagination:{next:"Pr\xF3ximo",previous:"Anterior",rowsPerPage:"Linhas por p\xE1g:",displayRows:"de"},toolbar:{search:"Procurar",downloadCsv:"Download CSV",print:"Imprimir",viewColumns:"Colunas",filterTable:"Procurar na Tabela"},filter:{all:"Todos",title:"Filtros",reset:"Limpar"},viewColumns:{title:"Visualizar Colunas",titleAria:"Mostrar/Ocultar Colunas da Tabela"},selectedRows:{text:"Linhas Selecionadas",delete:"Remover",deleteAria:"Remover Linhas Selecionadas"}},wd=e=>({filterType:"textField",selectableRows:"none",elevation:0,responsive:"standard",print:!1,download:!1,filter:!1,search:!1,sort:!1,viewColumns:!1,textLabels:Cd,serverSide:!0,rowsPerPageOptions:[15,50,100],rowsPerPage:15,fixedHeader:!0,fixedSelectColumn:!1,tableBodyMaxHeight:e}),kd=e=>{let S=e,{surface:t,error:r,tableTitle:o,isLoading:n,isFetching:i,data:a,columns:l,options:s,pagination:p,changePage:u,changePageSize:f,changeSort:m}=S,h=w(S,["surface","error","tableTitle","isLoading","isFetching","data","columns","options","pagination","changePage","changePageSize","changeSort"]),x=_material.useTheme.call(void 0, ),k=_material.useMediaQuery.call(void 0, x.breakpoints.up("xl"))?75:70,v=p?`${k}vh`:`calc(${k}vh + 65px)`,P=wd(v),C=s||{};return C&&(u&&(C.onChangePage=u),f&&(C.onChangeRowsPerPage=f),m&&(C.onColumnSortChange=m),C.customFooter=(D,F,T,te,W,re)=>!p||n?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{}):_jsxruntime.jsx.call(void 0, Ol,{count:p.totalRecords,page:p.page,rowsPerPage:p.pageSize,rowsPerPageOptions:(C==null?void 0:C.rowsPerPageOptions)||(P==null?void 0:P.rowsPerPageOptions),changeRowsPerPage:C==null?void 0:C.onChangeRowsPerPage,changePage:C==null?void 0:C.onChangePage,textLabels:re})),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[i&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{}),r&&_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},spacing:2,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:r})}),t&&_jsxruntime.jsx.call(void 0, wt,{children:_jsxruntime.jsx.call(void 0, Bl,c({title:o,data:a,columns:l,options:c(c({},P),C)},h))}),!t&&_jsxruntime.jsx.call(void 0, Bl,c({title:o,data:a,columns:l,options:c(c({},P),C)},h))]})},Sd= exports.DataTable =kd;var Rd=_styles.styled.call(void 0, r=>{var o=r,{className:e}=o,t=w(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,d(c({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:e.typography.pxToRem(12),border:"1px solid #dadde9"}})),Dd={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},Od=e=>{let{title:t,type:r}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{mt:.5},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, _material.Icon,{color:r,fontSize:"small",children:r})," ",_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",sx:{ml:.5},children:Dd[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:t})]})},$l=e=>{let i=e,{type:t,children:r,title:o}=i,n=w(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, Rd,d(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, Od,{title:o||"",type:t}),enterDelay:300},n),{children:r}))};$l.defaultProps={type:"info"};var kt=$l;var sb=()=>({style:{width:"80px",textAlign:"center"}}),lb= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function Rn(e){let{onClick:t,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:l,disabled:s,disabledUpdateButton:p,disabledDeleteButton:u,disabledTransporterButton:f}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:m,icon:h,iconButtonProps:x,tooltip:g,visible:k,disabled:v,badge:P})=>k===null||!!k&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:P,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({onClick:C=>t(m,r,C),size:"small",disabled:v},x),{children:[g&&_jsxruntime.jsx.call(void 0, kt,{type:g.type,title:g.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:h})}),!g&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:h})]}),m)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:m=>t("transport",r,m),color:"primary",disabled:s||f,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, kt,{type:"warning",title:_jsxruntime.jsx.call(void 0, _material.Box,{children:"Clique para transportar este registro."}),children:_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"})})]}),n&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",color:"primary",onClick:m=>t("edit",r,m),disabled:s||p,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, kt,{type:"info",title:_jsxruntime.jsx.call(void 0, _material.Box,{children:"Clique para editar este registro."}),children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"})})]}),i&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:m=>t("delete",r,m),color:"primary",disabled:s||u,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, kt,{type:"warning",title:_jsxruntime.jsx.call(void 0, _material.Box,{children:"Clique para excluir este registro."}),children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"})})]})]})}Rn.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function jr(e){let{renderLabel:t,disableds:r}=e,{deleteFilterValue:o,deleteAllFilterValues:n}=_providers.useFilterApi.call(void 0, ),{filterValues:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),l=_react.useMemo.call(void 0, ()=>{if(Object.keys(a||{}).length>0){let u=!1,f=Object.keys(a||{});for(let m=0;m<f.length;m++){let h=a[f[m]];if(Array.isArray(h)&&h.length>0){u=!0;break}else if(!Array.isArray(h)&&h){u=!0;break}}return u}return!1},[a]),s=_react.useCallback.call(void 0, p=>t?t(i[p].label,a[p]):`${i[p].label} - ${a&&a[p]}`,[t,i,a]);return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end",gap:1},children:l&&Object.keys(a||{}).map(p=>{let u=Array.isArray(r)&&r.includes(p),f;if(u||(f=()=>{o&&o(p)}),Array.isArray(a[p])&&a[p].length>0)return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(p),onDelete:f,variant:"outlined"},p);if(!Array.isArray(a[p])&&a[p])return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(p),onDelete:f,variant:"outlined"},p)})}),l&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mr:.5,ml:.5,display:"flex",alignContent:"center",alignItems:"center"},children:_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{n&&n()},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{fontSize:"small",color:"error"})})})]})}function Wr(e){let a=e,{drawerTitle:t,actions:r,onClose:o,children:n}=a,i=w(a,["drawerTitle","actions","onClose","children"]);return _jsxruntime.jsx.call(void 0, _material.Drawer,d(c({PaperProps:{style:{borderRadius:"12px 0 0 12px"}},onClose:o},i),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{width:"360px",height:"100%",justifyContent:"space-between",backgroundColor:l=>l.palette.background.paper},children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",alignContent:"center",height:"48px",borderBottom:l=>`solid 1px ${l.palette.grey[300]}`},children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",variant:"h5",sx:{pl:l=>l.spacing(2)},children:t}),o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{color:"error"})})]}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{padding:l=>l.spacing(2)},children:n})]}),r&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{pt:l=>l.spacing(1),pb:l=>l.spacing(1),pl:l=>l.spacing(2),pr:l=>l.spacing(2),borderTop:l=>`solid 1px ${l.palette.grey[300]}`},children:r})]})}))}Wr.defaultProps={anchor:"right"};var Jd=()=>{let{applyFilterValues:e,closeFilter:t,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){t()}function n(){e(),t()}function i(){r&&(r(),t())}return _jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexDirection:"row",justifyContent:"flex-end","& > button:first-child":{mr:1}},children:[_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,onClick:i,color:"error",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{})," Redefinir Padr\xE3o"]}),_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,variant:"contained",onClick:n,children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})," Aplicar"]})]})},e0=e=>{let{title:t,children:r,onApplyFilters:o,drawerProps:n}=e,{isOpen:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),{closeFilter:l}=_providers.useFilterApi.call(void 0, );return _react.useEffect.call(void 0, ()=>{o&&o(a)},[a]),_jsxruntime.jsx.call(void 0, Wr,d(c({},n),{drawerTitle:t,open:i,children:r,onClose:()=>l(),actions:_jsxruntime.jsx.call(void 0, Jd,{})}))};function $n(e){let{triggerButtonLabel:t,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:l,disableds:s,disableFilterControl:p,drawerProps:u}=e,{openFilter:f}=_providers.useFilterApi.call(void 0, ),m=o==="none"?null:o||_jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{f()}},r),{children:t||"Adicionar"}));return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[p&&m,!p&&_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",direction:"row",justifyContent:"flex-end",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, jr,{renderLabel:l,disableds:s}),m]}),_jsxruntime.jsx.call(void 0, e0,d(c({},u),{onApplyFilters:a,title:n||"",children:i}))]})}$n.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function Ul(e){let{isFlagged:t,type:r}=e;return t?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function Nn(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=e;return _jsxruntime.jsx.call(void 0, Je,{confirmLabel:a||"Salvar",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function Vn(e){let{view:t,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:l,triggerButtonProps:s,confirmButtonLabel:p}=e,{isOpen:u}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:m}=_providers.useFormApi.call(void 0, ),h=o||_jsxruntime.jsx.call(void 0, Nn,{hideCancelButton:t==="plain",confirmButtonLabel:p,onSubmitForm:n||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onSubmitForm")})}),x=i==="none"?null:i||_jsxruntime.jsx.call(void 0, N,d(c({variant:"contained",onClick:()=>{m()}},s),{children:l||"Adicionar"}));return t==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[x,_jsxruntime.jsx.call(void 0, je,d(c({},a),{onClose:()=>{f()},open:!!u,children:r,actions:h}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,h]})}var p0={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};Vn.defaultProps=p0;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function Pt(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.`}function Yl(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 Kl={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 Zl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f0=!1,d0=/[A-Z]|^ms/g,m0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ec=function(t){return t.charCodeAt(1)===45},Ql=function(t){return t!=null&&typeof t!="boolean"},jn=Zl(function(e){return ec(e)?e:e.replace(d0,"-$&").toLowerCase()}),Xl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(m0,function(o,n,i){return _e={name:n,styles:i,next:_e},n})}return Kl[t]!==1&&!ec(t)&&typeof r=="number"&&r!==0?r+"px":r},h0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rr(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 _e={name:n.name,styles:n.styles,next:_e},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)_e={name:a.name,styles:a.styles,next:_e},a=a.next;var l=i.styles+";";return l}return g0(e,t,r)}case"function":{if(e!==void 0){var s=_e,p=r(e);return _e=s,rr(e,t,p)}break}}var u=r;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function g0(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=rr(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":Ql(l)&&(o+=jn(i)+":"+Xl(i,l)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&f0)throw new Error(h0);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Ql(a[s])&&(o+=jn(i)+":"+Xl(i,a[s])+";");else{var p=rr(e,t,a);switch(i){case"animation":case"animationName":{o+=jn(i)+":"+p+";";break}default:o+=i+"{"+p+"}"}}}}return o}var Jl=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function tc(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="";_e=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,n+=rr(r,t,i);else{var a=i;n+=a[0]}for(var l=1;l<e.length;l++)if(n+=rr(r,t,e[l]),o){var s=i;n+=s[l]}Jl.lastIndex=0;for(var p="",u;(u=Jl.exec(n))!==null;)p+="-"+u[1];var f=Yl(n)+p;return{name:f,styles:n,next:_e}}var _react2 = require('@emotion/react');function Xn(e,t){let r=_styled2.default.call(void 0, 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(i=>i===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...o)}:r}function Pc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Sc=[];function Jn(e){return Sc[0]=e,tc(Sc)}var ii=Xe(oi());function Le(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 Ac(e){if(ni.isValidElement(e)||(0,ii.isValidElementType)(e)||!Le(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Ac(e[r])}),t}function Te(e,t,r={clone:!0}){let o=r.clone?c({},e):e;return Le(e)&&Le(t)&&Object.keys(t).forEach(n=>{ni.isValidElement(t[n])||(0,ii.isValidElementType)(t[n])?o[n]=t[n]:Le(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Le(e[n])?o[n]=Te(e[n],t[n],r):r.clone?o[n]=Le(t[n])?Ac(t[n]):t[n]:o[n]=t[n]}),o}var D0=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)=>d(c({},r),{[o.key]:o.val}),{})};function ai(e){let m=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=m,n=w(m,["values","unit","step"]),i=D0(t),a=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${r})`}function p(h,x){let g=a.indexOf(x);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:x)-o/100}${r})`}function u(h){return a.indexOf(h)+1<a.length?p(h,a[a.indexOf(h)+1]):l(h)}function f(h){let x=a.indexOf(h);return x===0?l(a[1]):x===a.length-1?s(a[x]):p(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return c({keys:a,values:i,up:l,down:s,between:p,only:u,not:f,unit:r},n)}function si(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,n)=>{var a,l;let i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=n.match(i))==null?void 0:l[1])||0)});return r.length?r.reduce((o,n)=>{let i=t[n];return delete o[n],o[n]=i,o},c({},t)):t}function li(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ci(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\`.`:Pt(18,`(${t})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(n).up(i)}function ho(e){let t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{let s=t(e.breakpoints.not(...l),a);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=i=>(r(o,i),o);return r(n),d(c({},e),{containerQueries:n})}var O0={borderRadius:4},Mc=O0;var Et=Xe(oo()),B0=process.env.NODE_ENV!=="production"?Et.default.oneOfType([Et.default.number,Et.default.string,Et.default.object,Et.default.array]):{},be=B0;function _0(e,t){return t?Te(e,t,{clone:!1}):e}var We=_0;var or={xs:0,sm:600,md:900,lg:1200,xl:1536},Fc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${or[e]}px)`},L0={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:or[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ie(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let i=o.breakpoints||Fc;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){let i=o.breakpoints||Fc;return Object.keys(t).reduce((a,l)=>{if(li(i.keys,l)){let s=ci(o.containerQueries?o:L0,l);s&&(a[s]=r(t[l],l))}else if(Object.keys(i.values||or).includes(l)){let s=i.up(l);a[s]=r(t[l],l)}else{let s=l;a[s]=t[s]}return a},{})}return r(t)}function pi(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,n)=>{let i=e.up(n);return o[i]={},o},{}))||{}}function ui(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function Rc(e,...t){let r=pi(e),o=[r,...t].reduce((n,i)=>Te(n,i),{});return ui(Object.keys(r),o)}function $0(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,i)=>{i<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function go({values:e,breakpoints:t,base:r}){let o=r||$0(e,t),n=Object.keys(o);if(n.length===0)return e;let i;return n.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function rt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Pt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function At(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,i)=>n&&n[i]?n[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function nr(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=At(e,r)||o,t&&(n=t(n,o,e)),n}function N0(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,i=a=>{if(a[t]==null)return null;let l=a[t],s=a.theme,p=At(s,o)||{};return ie(a,l,f=>{let m=nr(p,n,f);return f===m&&typeof f=="string"&&(m=nr(p,n,`${t}${f==="default"?"":rt(f)}`,f)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:be}:{},i.filterProps=[t],i}var Z=N0;function yo(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var z0={m:"margin",p:"padding"},V0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j0=yo(e=>{if(e.length>2)if(Dc[e])e=Dc[e];else return[e];let[t,r]=e.split(""),o=z0[t],n=V0[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),xo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fi=[...xo,...vo];function ct(e,t,r,o){var i;let n=(i=At(e,t,!0))!=null?i: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"?`calc(${a} * ${n})`:n*a):Array.isArray(n)?a=>{if(typeof a=="string")return a;let l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>n.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${l} > ${n.length-1}, you need to add the missing values.`].join(`
5
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
6
  `)));let s=n[l];return a>=0?s:typeof s=="number"?-s:`-${s}`}: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 ir(e){return ct(e,"spacing",8,"spacing")}function $e(e,t){return typeof t=="string"||t==null?t:e(t)}function V0(e,t){return r=>e.reduce((o,n)=>(o[n]=$e(t,r),o),{})}function j0(e,t,r,o){if(!t.includes(r))return null;let n=z0(r),i=V0(n,o),a=e[r];return ie(e,a,i)}function fi(e,t){let r=ir(e.theme);return Object.keys(e).map(o=>j0(e,t,o,r)).reduce(We,{})}function J(e){return fi(e,xo)}J.propTypes=process.env.NODE_ENV!=="production"?xo.reduce((e,t)=>(e[t]=be,e),{}):{};J.filterProps=xo;function ee(e){return fi(e,vo)}ee.propTypes=process.env.NODE_ENV!=="production"?vo.reduce((e,t)=>(e[t]=be,e),{}):{};ee.filterProps=vo;function Rc(e){return fi(e,ui)}Rc.propTypes=process.env.NODE_ENV!=="production"?ui.reduce((e,t)=>(e[t]=be,e),{}):{};Rc.filterProps=ui;function di(e=8,t=ir({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(i=>{let a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function W0(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>t[i]?We(n,t[i](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 Ge=W0;function Ce(e){return typeof e!="number"?e:`${e}px solid`}function Ie(e,t){return Z({prop:e,themeKey:"borders",transform:t})}var G0=Ie("border",Ce),H0=Ie("borderTop",Ce),U0=Ie("borderRight",Ce),q0=Ie("borderBottom",Ce),Y0=Ie("borderLeft",Ce),K0=Ie("borderColor"),Z0=Ie("borderTopColor"),Q0=Ie("borderRightColor"),X0=Ie("borderBottomColor"),J0=Ie("borderLeftColor"),em=Ie("outline",Ce),tm=Ie("outlineColor"),ar=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ct(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:$e(t,o)});return ie(e,e.borderRadius,r)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:be}:{};ar.filterProps=["borderRadius"];var A8=Ge(G0,H0,U0,q0,Y0,K0,Z0,Q0,X0,J0,ar,em,tm);var sr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ct(e.theme,"spacing",8,"gap"),r=o=>({gap:$e(t,o)});return ie(e,e.gap,r)}return null};sr.propTypes=process.env.NODE_ENV!=="production"?{gap:be}:{};sr.filterProps=["gap"];var lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ct(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:$e(t,o)});return ie(e,e.columnGap,r)}return null};lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:be}:{};lr.filterProps=["columnGap"];var cr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ct(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:$e(t,o)});return ie(e,e.rowGap,r)}return null};cr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:be}:{};cr.filterProps=["rowGap"];var rm=Z({prop:"gridColumn"}),om=Z({prop:"gridRow"}),nm=Z({prop:"gridAutoFlow"}),im=Z({prop:"gridAutoColumns"}),am=Z({prop:"gridAutoRows"}),sm=Z({prop:"gridTemplateColumns"}),lm=Z({prop:"gridTemplateRows"}),cm=Z({prop:"gridTemplateAreas"}),pm=Z({prop:"gridArea"}),_8=Ge(sr,lr,cr,rm,om,nm,im,am,sm,lm,cm,pm);function pt(e,t){return t==="grey"?t:e}var um=Z({prop:"color",themeKey:"palette",transform:pt}),fm=Z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pt}),dm=Z({prop:"backgroundColor",themeKey:"palette",transform:pt}),z8=Ge(um,fm,dm);function he(e){return e<=1&&e!==0?`${e*100}%`:e}var mm=Z({prop:"width",transform:he}),bo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var n,i,a,l,s;let o=((a=(i=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||or[r];return o?((s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:he(r)}};return ie(e,e.maxWidth,t)}return null};bo.filterProps=["maxWidth"];var hm=Z({prop:"minWidth",transform:he}),gm=Z({prop:"height",transform:he}),ym=Z({prop:"maxHeight",transform:he}),xm=Z({prop:"minHeight",transform:he}),H8=Z({prop:"size",cssProperty:"width",transform:he}),U8=Z({prop:"size",cssProperty:"height",transform:he}),vm=Z({prop:"boxSizing"}),q8=Ge(mm,bo,hm,gm,ym,xm,vm);var bm={border:{themeKey:"borders",transform:Ce},borderTop:{themeKey:"borders",transform:Ce},borderRight:{themeKey:"borders",transform:Ce},borderBottom:{themeKey:"borders",transform:Ce},borderLeft:{themeKey:"borders",transform:Ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ce},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ar},color:{themeKey:"palette",transform:pt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pt},backgroundColor:{themeKey:"palette",transform:pt},p:{style:ee},pt:{style:ee},pr:{style:ee},pb:{style:ee},pl:{style:ee},px:{style:ee},py:{style:ee},padding:{style:ee},paddingTop:{style:ee},paddingRight:{style:ee},paddingBottom:{style:ee},paddingLeft:{style:ee},paddingX:{style:ee},paddingY:{style:ee},paddingInline:{style:ee},paddingInlineStart:{style:ee},paddingInlineEnd:{style:ee},paddingBlock:{style:ee},paddingBlockStart:{style:ee},paddingBlockEnd:{style:ee},m:{style:J},mt:{style:J},mr:{style:J},mb:{style:J},ml:{style:J},mx:{style:J},my:{style:J},margin:{style:J},marginTop:{style:J},marginRight:{style:J},marginBottom:{style:J},marginLeft:{style:J},marginX:{style:J},marginY:{style:J},marginInline:{style:J},marginInlineStart:{style:J},marginInlineEnd:{style:J},marginBlock:{style:J},marginBlockStart:{style:J},marginBlockEnd:{style:J},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:sr},rowGap:{style:cr},columnGap:{style:lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:he},maxWidth:{style:bo},minWidth:{transform:he},height:{transform:he},maxHeight:{transform:he},minHeight:{transform:he},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"}},Mt=bm;function Cm(...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 wm(e,t){return typeof e=="function"?e(t):e}function km(){function e(r,o,n,i){let a={[r]:o,theme:n},l=i[r];if(!l)return{[r]:o};let{cssProperty:s=r,themeKey:p,transform:u,style:f}=l;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};let m=At(n,p)||{};return f?f(a):ie(a,o,x=>{let g=nr(m,u,x);return x===g&&typeof x=="string"&&(g=nr(m,u,`${r}${x==="default"?"":rt(x)}`,x)),s===!1?g:{[s]:g}})}function t(r){var l;let{sx:o,theme:n={}}=r||{};if(!o)return null;let i=(l=n.unstable_sxConfig)!=null?l:Mt;function a(s){let p=s;if(typeof s=="function")p=s(n);else if(typeof s!="object")return s;if(!p)return null;let u=ci(n.breakpoints),f=Object.keys(u),m=u;return Object.keys(p).forEach(h=>{let x=wm(p[h],n);if(x!=null)if(typeof x=="object")if(i[h])m=We(m,e(h,x,n,i));else{let g=ie({theme:n},x,k=>({[h]:k}));Cm(g,x)?m[h]=t({sx:x,theme:n}):m=We(m,g)}else m=We(m,e(h,x,n,i))}),ai(n,pi(f,m))}return Array.isArray(o)?o.map(a):a(o)}return t}var Dc=km();Dc.filterProps=["sx"];var Ft=Dc;function mi(e,t){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Sm(e={},...t){let u=e,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=u,a=w(u,["breakpoints","palette","spacing","shape"]),l=ii(r),s=di(n),p=Te({breakpoints:l,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:s,shape:c(c({},Ec),i)},a);return p=ho(p),p.applyStyles=mi,p=t.reduce((f,m)=>Te(f,m),p),p.unstable_sxConfig=c(c({},Mt),a==null?void 0:a.unstable_sxConfig),p.unstable_sx=function(m){return Ft({sx:m,theme:this})},p}var ut=Sm;function Pm(e){return Object.keys(e).length===0}function Tm(e=null){let t=Oc.useContext(_react2.ThemeContext);return!t||Pm(t)?e:t}var hi=Tm;var Im=ut();function Em(e=Im){return hi(e)}var gi=Em;var Am=e=>{var o,n;let t={systemProps:{},otherProps:{}},r=(n=(o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Mt;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Co(e){let a=e,{sx:t}=a,r=w(a,["sx"]),{systemProps:o,otherProps:n}=Am(r),i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...l)=>{let s=t(...l);return Le(s)?c(c({},o),s):o}:i=c(c({},o),t),d(c({},n),{sx:i})}var Bc=e=>e,Mm=()=>{let e=Bc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bc}}},Fm=Mm(),yi=Fm;function _c(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=_c(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Rm(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=_c(e))&&(o&&(o+=" "),o+=t);return o}var Lc=Rm;var Dm={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 wo(e,t,r="Mui"){let o=Dm[t];return o?`${r}-${o}`:`${yi.generate(e)}-${t}`}var ko=Xe(ri());function Nc(e,t=""){return e.displayName||e.name||t}function $c(e,t,r){let o=Nc(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function So(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Nc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ko.ForwardRef:return $c(e,e.render,"ForwardRef");case ko.Memo:return $c(e,e.type,"memo");default:return}}}function xi(e){let n=e,{variants:t}=n,r=w(n,["variants"]),o={variants:t,style:Xn(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Xn(i.style))}),o}var Om=ut();function vi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Bm(e){return e?(t,r)=>r[e]:null}function _m(e,t,r){e.theme=Nm(e.theme)?r:e.theme[t]||e.theme}function Po(e,t){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>Po(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{let o=r,{variants:i}=o;n=w(o,["variants"])}return zc(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function zc(e,t,r=[]){var n;let o;e:for(let i=0;i<t.length;i+=1){let a=t[i];if(typeof a.props=="function"){if(o!=null||(o=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),!a.props(o))continue}else for(let l in a.props)if(e[l]!==a.props[l]&&((n=e.ownerState)==null?void 0:n[l])!==a.props[l])continue e;typeof a.style=="function"?(o!=null||(o=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),r.push(a.style(o))):r.push(a.style)}return r}function To(e={}){let{themeId:t,defaultTheme:r=Om,rootShouldForwardProp:o=vi,slotShouldForwardProp:n=vi}=e;function i(l){_m(l,t,r)}return(l,s={})=>{kc(l,F=>F.filter(T=>T!==Ft));let D=s,{name:p,slot:u,skipVariantsResolver:f,skipSx:m,overridesResolver:h=Bm(Vc(u))}=D,x=w(D,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,k=m||!1,v=vi;u==="Root"||u==="root"?v=o:u?v=n:zm(l)&&(v=void 0);let P=Qn(l,c({shouldForwardProp:v,label:$m(p,u)},x)),C=F=>{if(F.__emotion_real===F)return F;if(typeof F=="function")return function(te){return Po(te,F)};if(Le(F)){let T=xi(F);return T.variants?function(W){return Po(W,T)}:T.style}return F},S=(...F)=>{let T=[],te=F.map(C),W=[];if(T.push(i),p&&h&&W.push(function(y){var M,_;let I=(_=(M=y.theme.components)==null?void 0:M[p])==null?void 0:_.styleOverrides;if(!I)return null;let E={};for(let O in I)E[O]=Po(y,I[O]);return h(y,E)}),p&&!g&&W.push(function(y){var E,M;let b=y.theme,I=(M=(E=b==null?void 0:b.components)==null?void 0:E[p])==null?void 0:M.variants;return I?zc(y,I):null}),k||W.push(Ft),Array.isArray(te[0])){let B=te.shift(),y=new Array(T.length).fill(""),b=new Array(W.length).fill(""),I;I=[...y,...B,...b],I.raw=[...y,...B.raw,...b],T.unshift(I)}let re=[...T,...te,...W],R=P(...re);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=Lm(p,u,l)),R};return P.withConfig&&(S.withConfig=P.withConfig),S}}function Lm(e,t,r){return e?`${e}${rt(t||"")}`:`Styled(${So(r)})`}function $m(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Vc(t||"Root")}`),r}function Nm(e){for(let t in e)return!1;return!0}function zm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Vc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Vm=To(),bi=Vm;function pr(e,t){let r=c({},t);for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let n=o;if(n==="components"||n==="slots")r[n]=c(c({},e[n]),r[n]);else if(n==="componentsProps"||n==="slotProps"){let i=e[n],a=t[n];if(!a)r[n]=i||{};else if(!i)r[n]=a;else{r[n]=c({},a);for(let l in i)if(Object.prototype.hasOwnProperty.call(i,l)){let s=l;r[n][s]=pr(i[s],a[s])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function Ci(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:pr(t.components[r].defaultProps,o)}function Io({props:e,name:t,defaultTheme:r,themeId:o}){let n=gi(r);return o&&(n=n[o]||n),Ci({theme:n,name:t,props:e})}function Eo(e,t,r=void 0){let o={};for(let n in e){let i=e[n],a="",l=!0;for(let s=0;s<i.length;s+=1){let p=i[s];p&&(a+=(l===!0?"":" ")+t(p),l=!1,r&&r[p]&&(a+=" "+r[p]))}o[n]=a}return o}var Q=Xe(oo());var X=Xe(oo());var Wm=ut(),Gm=bi("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Hm(e){return Io({props:e,name:"MuiStack",defaultTheme:Wm})}function Um(e,t){let r=Rt.Children.toArray(e).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(Rt.cloneElement(t,{key:`separator-${i}`})),o),[])}var qm=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Ym=({ownerState:e,theme:t})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:t},go({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){let o=ir(t),n=Object.keys(t.breakpoints.values).reduce((s,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(s[p]=!0),s),{}),i=go({values:e.direction,base:n}),a=go({values:e.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((s,p,u)=>{if(!i[s]){let m=p>0?i[u[p-1]]:"column";i[s]=m}}),r=Te(r,ie({theme:t},a,(s,p)=>e.useFlexGap?{gap:$e(o,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${qm(p?i[p]:e.direction)}`]:$e(o,s)}}))}return r=Mc(t.breakpoints,r),r};function wi(e={}){let{createStyledComponent:t=Gm,useThemeProps:r=Hm,componentName:o="MuiStack"}=e,n=()=>Eo({root:["root"]},s=>wo(o,s),{}),i=t(Ym),a=Rt.forwardRef(function(s,p){let u=r(s),F=Co(u),{component:m="div",direction:h="column",spacing:x=0,divider:g,children:k,className:v,useFlexGap:P=!1}=F,C=w(F,["component","direction","spacing","divider","children","className","useFlexGap"]),S={direction:h,spacing:x,useFlexGap:P},D=n();return _jsxruntime.jsx.call(void 0, i,d(c({as:m,ownerState:S,ref:p,className:Lc(D.root,v)},C),{children:g?Um(k,g):k}))});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:X.default.node,direction:X.default.oneOfType([X.default.oneOf(["column-reverse","column","row-reverse","row"]),X.default.arrayOf(X.default.oneOf(["column-reverse","column","row-reverse","row"])),X.default.object]),divider:X.default.node,spacing:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.number,X.default.string])),X.default.number,X.default.object,X.default.string]),sx:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.func,X.default.object,X.default.bool])),X.default.func,X.default.object])}),a}var jc=wi();process.env.NODE_ENV!=="production"&&(jc.propTypes={children:Q.default.node,component:Q.default.elementType,direction:Q.default.oneOfType([Q.default.oneOf(["column-reverse","column","row-reverse","row"]),Q.default.arrayOf(Q.default.oneOf(["column-reverse","column","row-reverse","row"])),Q.default.object]),divider:Q.default.node,spacing:Q.default.oneOfType([Q.default.arrayOf(Q.default.oneOfType([Q.default.number,Q.default.string])),Q.default.number,Q.default.object,Q.default.string]),sx:Q.default.oneOfType([Q.default.arrayOf(Q.default.oneOfType([Q.default.func,Q.default.object,Q.default.bool])),Q.default.func,Q.default.object]),useFlexGap:Q.default.bool});var Ao=jc;var Xm=_styled2.default.call(void 0, (0, _material.Typography))(({theme:e})=>({fontWeight:"bold"}));function Hc(e){let{label:t,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",gap:4},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsx.call(void 0, Ao,{children:_jsxruntime.jsx.call(void 0, Xm,d(c({},o),{children:t}))}),_jsxruntime.jsx.call(void 0, Ao,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function Fo(e){let{typographyProps:t,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:l,isEditing:s,isLoading:p,error:u}=e,F=l||{},{InputProps:f,value:m,onKeyDown:h,onChange:x}=F,g=w(F,["InputProps","value","onKeyDown","onChange"]),[k,v]=_react.useState.call(void 0, !1),[P,C]=_react.useState.call(void 0, !1),[S,D]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{D(n)},[n]),_react.useEffect.call(void 0, ()=>{v(!!s)},[s]),_react.useEffect.call(void 0, ()=>{u&&C(!0)},[u]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!k&&!p&&!P&&_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, _material.Typography,d(c({onClick:()=>{v(!0)}},t),{children:S})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{v(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(k||p||P)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>v(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:p,autoFocus:!0,value:S,error:P,onKeyDown:T=>{T.key==="Enter"&&(r(S),v(!1)),T.key==="Escape"&&(D(n),v(!1),C(!1),o&&o(n,S))},onChange:T=>{let te=T.target.value;D(te)},InputProps:{endAdornment:_jsxruntime.jsxs.call(void 0, _material.InputAdornment,{position:"end",children:[p&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{size:18}),a&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{n!=S&&r(S),v(!1)},edge:"end",children:n!=S?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},g))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function Dt(e){let i=e,{onSearch:t}=i,r=w(i,["onSearch"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let l=a.target.value;o(l)}return _jsxruntime.jsx.call(void 0, _material.TextField,c({onChange:n,autoFocus:!0,InputProps:{startAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"start",children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})})}},r))}function Qc(e){let{title:t,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:l,toolbarProps:s}=e,[p,u]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{m(t)},[t]);let h=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&l){let v=localStorage.getItem(l);h.current&&(h.current.value=v),a(v||"")}},[l]);let x=_material.useMediaQuery.call(void 0, v=>v.breakpoints.down("sm"));function g(v){l&&localStorage.setItem(l,v),a&&a(v)}let k={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return _jsxruntime.jsx.call(void 0, _material.Toolbar,d(c({},s),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:x||n?"column":"row",justifyContent:"space-between",alignContent:"center",alignItems:"center",flexGrow:1},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row"},children:[o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{mr:1},onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.ArrowBack,{})}),i&&_jsxruntime.jsx.call(void 0, Fo,{typographyProps:k,value:f,onChange:v=>{i&&i(v)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,d(c({},k),{children:t}))]}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{marginLeft:"auto"},onClick:n,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{fontSize:"medium"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,direction:"row",children:[a&&_jsxruntime.jsx.call(void 0, Dt,{inputRef:h,autoFocus:!0,onSearch:g}),r]})]})}))}function Mi(e){let R=e,{value:t,label:r,options:o,isLoading:n,form:i,table:a,tableProps:l,onChange:s,onSearch:p,renderValue:u,dialogProps:f,disabled:m,filterOptions:h,optionKeyName:x}=R,g=w(R,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:k,openDialog:v,closeDialog:P}=_hooks.useDialog.call(void 0, ),[C,S]=_react.useState.call(void 0, null),D=i||oi.default.Fragment,F=_lodash2.default.debounce(B=>p(B),500),T=_react.useCallback.call(void 0, (B,y)=>$(this,null,function*(){F(y)}),[F]),te=_react.useCallback.call(void 0, (B,y,b)=>{if(x&&(y!=null&&y[x].includes("Adicionar op\xE7\xE3o:"))){let I=y[x].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),E=d(c({},y),{[x]:I});s&&s(E);return}s&&s(y)},[s]);function W(B,y=!1,b=!1){var I;if(B){let E=oi.default.Children.toArray((I=B.props)==null?void 0:I.children),M=E.length===1?0:1;return E.splice(M,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>v(),disabled:b,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.SearchOutlined,{fontSize:"small"})})),y&&E.unshift(_jsxruntime.jsx.call(void 0, _material.IconButton,{disabled:!0,children:_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"primary",size:18})})),oi.default.cloneElement(B,{},E)}return B}function re(B,y){if(!x)return B;let I=_material.createFilterOptions.call(void 0, )(B,y),{inputValue:E}=y,M=B.some(_=>E===_[x]);return E!==""&&!M&&I.push({[x]:`Adicionar op\xE7\xE3o: "${E}"`}),I}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Autocomplete,{disabled:m,loadingText:"Carregando...",loading:n,onChange:te,value:t,onInputChange:T,options:o,getOptionLabel:u,filterOptions:re,renderInput:B=>_jsxruntime.jsx.call(void 0, _material.TextField,c(d(c({label:r,onDoubleClick:()=>{m||v()}},B),{InputProps:d(c({},B.InputProps),{endAdornment:W(B.InputProps.endAdornment,n,m)}),disabled:m}),g)),clearIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.BackspaceOutlined,{}),componentsProps:{clearIndicator:{sx:{visibility:"visible"}}},noOptionsText:"Nenhum registro"}),_jsxruntime.jsx.call(void 0, _providers.FormProvider,{children:_jsxruntime.jsx.call(void 0, je,d(c({open:k,onClose:()=>P(),actions:"none"},f),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, Dt,{placeholder:"Pesquisar",onSearch:B=>S(B)}),i&&_jsxruntime.jsx.call(void 0, D,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:C,enableTransporter:!0,onTransport:B=>{P(),s&&s(B)}},l))]})}))})]})}var M1={dialogProps:{maxWidth:"md",fullWidth:!0}};Mi.defaultProps=M1;function Fi(e){let{children:t}=e,r=_material.useTheme.call(void 0, ),o=_material.useMediaQuery.call(void 0, r.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:o?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{},children:t})}function Ri(e){let{label:t,subTitle:r="Acesse sua conta"}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"header",textAlign:"center",marginBottom:"3rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",fontSize:"2rem",fontWeight:"bold",variant:"body1",fontFamily:"Montserrat",sx:{color:o=>o.palette.primary.dark},children:t}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h3",fontSize:"1.25rem",fontFamily:"Montserrat",color:"primary",variant:"body1",children:r})]})}var _axios = require('axios');var Ae=Xe(lp()),ur=Xe(up()),xp=Xe(dp()),th=Object.prototype.toString,rh=Error.prototype.toString,oh=RegExp.prototype.toString,nh=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",ih=/^Symbol\((.*)\)(.*)$/;function ah(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function mp(e,t=!1){if(e==null||e===!0||e===!1)return""+e;let r=typeof e;if(r==="number")return ah(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return nh.call(e).replace(ih,"Symbol($1)");let o=th.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+rh.call(e)+"]":o==="RegExp"?oh.call(e):null}function qe(e,t){let r=mp(e,t);return r!==null?r:JSON.stringify(e,function(o,n){let i=mp(this[o],t);return i!==null?i:n},2)}function vp(e){return e==null?[]:[].concat(e)}var bp,Cp,wp,sh=/\$\{\s*(\w+)\s*\}/g;bp=Symbol.toStringTag;var $o=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[bp]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],vp(t).forEach(i=>{if(ue.isError(i)){this.errors.push(...i.errors);let a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};Cp=Symbol.hasInstance;wp=Symbol.toStringTag;var ue=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(sh,(n,i)=>qe(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,o,n,i){let a=new $o(t,r,o,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[wp]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ue)}static[Cp](t){return $o[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},Ne={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}},ge={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"},nt={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"},Ni={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},zi={isValue:"${path} field must be ${value}"},Bo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},_o={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"},kp={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 ue.formatError(Ne.notType,e)}},yw=Object.assign(Object.create(null),{mixed:Ne,string:ge,number:nt,date:Ni,object:Bo,array:_o,boolean:zi,tuple:kp}),Uo=e=>e&&e.__isYupSchema__,_t=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:i}=r,a=typeof o=="function"?o:(...l)=>l.every(s=>s===o);return new _t(t,(l,s)=>{var p;let u=a(...l)?n:i;return(p=u==null?void 0:u(s))!=null?p: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(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),n=this.fn(o,t,r);if(n===void 0||n===t)return t;if(!Uo(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},Oo={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]===Oo.context,this.isValue=this.key[0]===Oo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Oo.context:this.isValue?Oo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,Ae.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==null?void 0:r.parent,r==null?void 0: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 Fe=e=>e==null;function Ot(e){function t({value:r,path:o="",options:n,originalValue:i,schema:a},l,s){let{name:p,test:u,params:f,message:m,skipAbsent:h}=e,{parent:x,context:g,abortEarly:k=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=n;function P(R){return Ye.isRef(R)?R.getValue(r,x,g):R}function C(R={}){let B=Object.assign({value:r,originalValue:i,label:a.spec.label,path:R.path||o,spec:a.spec,disableStackTrace:R.disableStackTrace||v},f,R.params);for(let b of Object.keys(B))B[b]=P(B[b]);let y=new ue(ue.formatError(R.message||m,B),r,B.path,R.type||p,B.disableStackTrace);return y.params=B,y}let S=k?l:s,D={path:o,parent:x,type:p,from:n.from,createError:C,resolve:P,options:n,originalValue:i,schema:a},F=R=>{ue.isError(R)?S(R):R?s(null):S(C())},T=R=>{ue.isError(R)?S(R):l(R)};if(h&&Fe(r))return F(!0);let W;try{var re;if(W=u.call(D,r,D),typeof((re=W)==null?void 0:re.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(F,T)}}catch(R){T(R);return}F(W)}return t.OPTIONS=e,t}function lh(e,t,r,o=r){let n,i,a;return t?((0,Ae.forEach)(t,(l,s,p)=>{let u=s?l.slice(1,l.length-1):l;e=e.resolve({context:o,parent:n,value:r});let f=e.type==="tuple",m=p?parseInt(u,10):0;if(e.innerType||f){if(f&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&m>=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[m],e=f?e.spec.types[m]:e.innerType}if(!p){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);n=r,r=r&&r[u],e=e.fields[u]}i=u,a=s?"["+l+"]":"."+l}),{schema:e,parent:n,parentPath:i}):{parent:n,parentPath:t,schema:e}}var Lt=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 Lt(this.values())}merge(t,r){let o=this.clone();return t.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function Bt(e,t=new Map){if(Uo(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]=Bt(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,Bt(n,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let o of e)r.add(Bt(o,t))}else if(e instanceof Object){r={},t.set(e,r);for(let[o,n]of Object.entries(e))r[o]=Bt(n,t)}else throw Error(`Unable to clone ${e}`);return r}var ae=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 Lt,this._blacklist=new Lt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ne.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==null?void 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=Bt(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(i=>{t.tests.forEach(a=>{i.test(a.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,i)=>i.resolve(n,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,o,n,i;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:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let o=this.resolve(Object.assign({value:t},r)),n=r.assert==="ignore-optionality",i=o._cast(t,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Fe(i))return i;let a=qe(t),l=qe(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
7
+ `)),()=>{})}function ir(e){return ct(e,"spacing",8,"spacing")}function $e(e,t){return typeof t=="string"||t==null?t:e(t)}function W0(e,t){return r=>e.reduce((o,n)=>(o[n]=$e(t,r),o),{})}function G0(e,t,r,o){if(!t.includes(r))return null;let n=j0(r),i=W0(n,o),a=e[r];return ie(e,a,i)}function di(e,t){let r=ir(e.theme);return Object.keys(e).map(o=>G0(e,t,o,r)).reduce(We,{})}function J(e){return di(e,xo)}J.propTypes=process.env.NODE_ENV!=="production"?xo.reduce((e,t)=>(e[t]=be,e),{}):{};J.filterProps=xo;function ee(e){return di(e,vo)}ee.propTypes=process.env.NODE_ENV!=="production"?vo.reduce((e,t)=>(e[t]=be,e),{}):{};ee.filterProps=vo;function Oc(e){return di(e,fi)}Oc.propTypes=process.env.NODE_ENV!=="production"?fi.reduce((e,t)=>(e[t]=be,e),{}):{};Oc.filterProps=fi;function mi(e=8,t=ir({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(i=>{let a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function H0(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>t[i]?We(n,t[i](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 Ge=H0;function Ce(e){return typeof e!="number"?e:`${e}px solid`}function Ie(e,t){return Z({prop:e,themeKey:"borders",transform:t})}var U0=Ie("border",Ce),q0=Ie("borderTop",Ce),Y0=Ie("borderRight",Ce),K0=Ie("borderBottom",Ce),Z0=Ie("borderLeft",Ce),Q0=Ie("borderColor"),X0=Ie("borderTopColor"),J0=Ie("borderRightColor"),em=Ie("borderBottomColor"),tm=Ie("borderLeftColor"),rm=Ie("outline",Ce),om=Ie("outlineColor"),ar=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ct(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:$e(t,o)});return ie(e,e.borderRadius,r)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:be}:{};ar.filterProps=["borderRadius"];var D8=Ge(U0,q0,Y0,K0,Z0,Q0,X0,J0,em,tm,ar,rm,om);var sr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ct(e.theme,"spacing",8,"gap"),r=o=>({gap:$e(t,o)});return ie(e,e.gap,r)}return null};sr.propTypes=process.env.NODE_ENV!=="production"?{gap:be}:{};sr.filterProps=["gap"];var lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ct(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:$e(t,o)});return ie(e,e.columnGap,r)}return null};lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:be}:{};lr.filterProps=["columnGap"];var cr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ct(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:$e(t,o)});return ie(e,e.rowGap,r)}return null};cr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:be}:{};cr.filterProps=["rowGap"];var nm=Z({prop:"gridColumn"}),im=Z({prop:"gridRow"}),am=Z({prop:"gridAutoFlow"}),sm=Z({prop:"gridAutoColumns"}),lm=Z({prop:"gridAutoRows"}),cm=Z({prop:"gridTemplateColumns"}),pm=Z({prop:"gridTemplateRows"}),um=Z({prop:"gridTemplateAreas"}),fm=Z({prop:"gridArea"}),z8=Ge(sr,lr,cr,nm,im,am,sm,lm,cm,pm,um,fm);function pt(e,t){return t==="grey"?t:e}var dm=Z({prop:"color",themeKey:"palette",transform:pt}),mm=Z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pt}),hm=Z({prop:"backgroundColor",themeKey:"palette",transform:pt}),G8=Ge(dm,mm,hm);function he(e){return e<=1&&e!==0?`${e*100}%`:e}var gm=Z({prop:"width",transform:he}),bo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var n,i,a,l,s;let o=((a=(i=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||or[r];return o?((s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:he(r)}};return ie(e,e.maxWidth,t)}return null};bo.filterProps=["maxWidth"];var ym=Z({prop:"minWidth",transform:he}),xm=Z({prop:"height",transform:he}),vm=Z({prop:"maxHeight",transform:he}),bm=Z({prop:"minHeight",transform:he}),K8=Z({prop:"size",cssProperty:"width",transform:he}),Z8=Z({prop:"size",cssProperty:"height",transform:he}),Cm=Z({prop:"boxSizing"}),Q8=Ge(gm,bo,ym,xm,vm,bm,Cm);var wm={border:{themeKey:"borders",transform:Ce},borderTop:{themeKey:"borders",transform:Ce},borderRight:{themeKey:"borders",transform:Ce},borderBottom:{themeKey:"borders",transform:Ce},borderLeft:{themeKey:"borders",transform:Ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ce},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ar},color:{themeKey:"palette",transform:pt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pt},backgroundColor:{themeKey:"palette",transform:pt},p:{style:ee},pt:{style:ee},pr:{style:ee},pb:{style:ee},pl:{style:ee},px:{style:ee},py:{style:ee},padding:{style:ee},paddingTop:{style:ee},paddingRight:{style:ee},paddingBottom:{style:ee},paddingLeft:{style:ee},paddingX:{style:ee},paddingY:{style:ee},paddingInline:{style:ee},paddingInlineStart:{style:ee},paddingInlineEnd:{style:ee},paddingBlock:{style:ee},paddingBlockStart:{style:ee},paddingBlockEnd:{style:ee},m:{style:J},mt:{style:J},mr:{style:J},mb:{style:J},ml:{style:J},mx:{style:J},my:{style:J},margin:{style:J},marginTop:{style:J},marginRight:{style:J},marginBottom:{style:J},marginLeft:{style:J},marginX:{style:J},marginY:{style:J},marginInline:{style:J},marginInlineStart:{style:J},marginInlineEnd:{style:J},marginBlock:{style:J},marginBlockStart:{style:J},marginBlockEnd:{style:J},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:sr},rowGap:{style:cr},columnGap:{style:lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:he},maxWidth:{style:bo},minWidth:{transform:he},height:{transform:he},maxHeight:{transform:he},minHeight:{transform:he},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"}},Mt=wm;function km(...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 Sm(e,t){return typeof e=="function"?e(t):e}function Pm(){function e(r,o,n,i){let a={[r]:o,theme:n},l=i[r];if(!l)return{[r]:o};let{cssProperty:s=r,themeKey:p,transform:u,style:f}=l;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};let m=At(n,p)||{};return f?f(a):ie(a,o,x=>{let g=nr(m,u,x);return x===g&&typeof x=="string"&&(g=nr(m,u,`${r}${x==="default"?"":rt(x)}`,x)),s===!1?g:{[s]:g}})}function t(r){var l;let{sx:o,theme:n={}}=r||{};if(!o)return null;let i=(l=n.unstable_sxConfig)!=null?l:Mt;function a(s){let p=s;if(typeof s=="function")p=s(n);else if(typeof s!="object")return s;if(!p)return null;let u=pi(n.breakpoints),f=Object.keys(u),m=u;return Object.keys(p).forEach(h=>{let x=Sm(p[h],n);if(x!=null)if(typeof x=="object")if(i[h])m=We(m,e(h,x,n,i));else{let g=ie({theme:n},x,k=>({[h]:k}));km(g,x)?m[h]=t({sx:x,theme:n}):m=We(m,g)}else m=We(m,e(h,x,n,i))}),si(n,ui(f,m))}return Array.isArray(o)?o.map(a):a(o)}return t}var Bc=Pm();Bc.filterProps=["sx"];var Ft=Bc;function hi(e,t){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Tm(e={},...t){let u=e,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=u,a=w(u,["breakpoints","palette","spacing","shape"]),l=ai(r),s=mi(n),p=Te({breakpoints:l,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:s,shape:c(c({},Mc),i)},a);return p=ho(p),p.applyStyles=hi,p=t.reduce((f,m)=>Te(f,m),p),p.unstable_sxConfig=c(c({},Mt),a==null?void 0:a.unstable_sxConfig),p.unstable_sx=function(m){return Ft({sx:m,theme:this})},p}var ut=Tm;function Im(e){return Object.keys(e).length===0}function Em(e=null){let t=_c.useContext(_react2.ThemeContext);return!t||Im(t)?e:t}var gi=Em;var Am=ut();function Mm(e=Am){return gi(e)}var yi=Mm;var Fm=e=>{var o,n;let t={systemProps:{},otherProps:{}},r=(n=(o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Mt;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Co(e){let a=e,{sx:t}=a,r=w(a,["sx"]),{systemProps:o,otherProps:n}=Fm(r),i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...l)=>{let s=t(...l);return Le(s)?c(c({},o),s):o}:i=c(c({},o),t),d(c({},n),{sx:i})}var Lc=e=>e,Rm=()=>{let e=Lc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Lc}}},Dm=Rm(),xi=Dm;function $c(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=$c(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Om(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=$c(e))&&(o&&(o+=" "),o+=t);return o}var Nc=Om;var Bm={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 wo(e,t,r="Mui"){let o=Bm[t];return o?`${r}-${o}`:`${xi.generate(e)}-${t}`}var ko=Xe(oi());function Vc(e,t=""){return e.displayName||e.name||t}function zc(e,t,r){let o=Vc(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function So(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ko.ForwardRef:return zc(e,e.render,"ForwardRef");case ko.Memo:return zc(e,e.type,"memo");default:return}}}function vi(e){let n=e,{variants:t}=n,r=w(n,["variants"]),o={variants:t,style:Jn(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Jn(i.style))}),o}var _m=ut();function bi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Lm(e){return e?(t,r)=>r[e]:null}function $m(e,t,r){e.theme=Vm(e.theme)?r:e.theme[t]||e.theme}function Po(e,t){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>Po(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{let o=r,{variants:i}=o;n=w(o,["variants"])}return jc(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function jc(e,t,r=[]){var n;let o;e:for(let i=0;i<t.length;i+=1){let a=t[i];if(typeof a.props=="function"){if(o!=null||(o=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),!a.props(o))continue}else for(let l in a.props)if(e[l]!==a.props[l]&&((n=e.ownerState)==null?void 0:n[l])!==a.props[l])continue e;typeof a.style=="function"?(o!=null||(o=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),r.push(a.style(o))):r.push(a.style)}return r}function To(e={}){let{themeId:t,defaultTheme:r=_m,rootShouldForwardProp:o=bi,slotShouldForwardProp:n=bi}=e;function i(l){$m(l,t,r)}return(l,s={})=>{Pc(l,F=>F.filter(T=>T!==Ft));let D=s,{name:p,slot:u,skipVariantsResolver:f,skipSx:m,overridesResolver:h=Lm(Wc(u))}=D,x=w(D,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,k=m||!1,v=bi;u==="Root"||u==="root"?v=o:u?v=n:jm(l)&&(v=void 0);let P=Xn(l,c({shouldForwardProp:v,label:zm(p,u)},x)),C=F=>{if(F.__emotion_real===F)return F;if(typeof F=="function")return function(te){return Po(te,F)};if(Le(F)){let T=vi(F);return T.variants?function(W){return Po(W,T)}:T.style}return F},S=(...F)=>{let T=[],te=F.map(C),W=[];if(T.push(i),p&&h&&W.push(function(y){var M,_;let I=(_=(M=y.theme.components)==null?void 0:M[p])==null?void 0:_.styleOverrides;if(!I)return null;let E={};for(let O in I)E[O]=Po(y,I[O]);return h(y,E)}),p&&!g&&W.push(function(y){var E,M;let b=y.theme,I=(M=(E=b==null?void 0:b.components)==null?void 0:E[p])==null?void 0:M.variants;return I?jc(y,I):null}),k||W.push(Ft),Array.isArray(te[0])){let B=te.shift(),y=new Array(T.length).fill(""),b=new Array(W.length).fill(""),I;I=[...y,...B,...b],I.raw=[...y,...B.raw,...b],T.unshift(I)}let re=[...T,...te,...W],R=P(...re);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=Nm(p,u,l)),R};return P.withConfig&&(S.withConfig=P.withConfig),S}}function Nm(e,t,r){return e?`${e}${rt(t||"")}`:`Styled(${So(r)})`}function zm(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Wc(t||"Root")}`),r}function Vm(e){for(let t in e)return!1;return!0}function jm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Wc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Wm=To(),Ci=Wm;function pr(e,t){let r=c({},t);for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let n=o;if(n==="components"||n==="slots")r[n]=c(c({},e[n]),r[n]);else if(n==="componentsProps"||n==="slotProps"){let i=e[n],a=t[n];if(!a)r[n]=i||{};else if(!i)r[n]=a;else{r[n]=c({},a);for(let l in i)if(Object.prototype.hasOwnProperty.call(i,l)){let s=l;r[n][s]=pr(i[s],a[s])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function wi(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:pr(t.components[r].defaultProps,o)}function Io({props:e,name:t,defaultTheme:r,themeId:o}){let n=yi(r);return o&&(n=n[o]||n),wi({theme:n,name:t,props:e})}function Eo(e,t,r=void 0){let o={};for(let n in e){let i=e[n],a="",l=!0;for(let s=0;s<i.length;s+=1){let p=i[s];p&&(a+=(l===!0?"":" ")+t(p),l=!1,r&&r[p]&&(a+=" "+r[p]))}o[n]=a}return o}var Q=Xe(oo());var X=Xe(oo());var Hm=ut(),Um=Ci("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function qm(e){return Io({props:e,name:"MuiStack",defaultTheme:Hm})}function Ym(e,t){let r=Rt.Children.toArray(e).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(Rt.cloneElement(t,{key:`separator-${i}`})),o),[])}var Km=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Zm=({ownerState:e,theme:t})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:t},go({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){let o=ir(t),n=Object.keys(t.breakpoints.values).reduce((s,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(s[p]=!0),s),{}),i=go({values:e.direction,base:n}),a=go({values:e.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((s,p,u)=>{if(!i[s]){let m=p>0?i[u[p-1]]:"column";i[s]=m}}),r=Te(r,ie({theme:t},a,(s,p)=>e.useFlexGap?{gap:$e(o,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Km(p?i[p]:e.direction)}`]:$e(o,s)}}))}return r=Rc(t.breakpoints,r),r};function ki(e={}){let{createStyledComponent:t=Um,useThemeProps:r=qm,componentName:o="MuiStack"}=e,n=()=>Eo({root:["root"]},s=>wo(o,s),{}),i=t(Zm),a=Rt.forwardRef(function(s,p){let u=r(s),F=Co(u),{component:m="div",direction:h="column",spacing:x=0,divider:g,children:k,className:v,useFlexGap:P=!1}=F,C=w(F,["component","direction","spacing","divider","children","className","useFlexGap"]),S={direction:h,spacing:x,useFlexGap:P},D=n();return _jsxruntime.jsx.call(void 0, i,d(c({as:m,ownerState:S,ref:p,className:Nc(D.root,v)},C),{children:g?Ym(k,g):k}))});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:X.default.node,direction:X.default.oneOfType([X.default.oneOf(["column-reverse","column","row-reverse","row"]),X.default.arrayOf(X.default.oneOf(["column-reverse","column","row-reverse","row"])),X.default.object]),divider:X.default.node,spacing:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.number,X.default.string])),X.default.number,X.default.object,X.default.string]),sx:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.func,X.default.object,X.default.bool])),X.default.func,X.default.object])}),a}var Gc=ki();process.env.NODE_ENV!=="production"&&(Gc.propTypes={children:Q.default.node,component:Q.default.elementType,direction:Q.default.oneOfType([Q.default.oneOf(["column-reverse","column","row-reverse","row"]),Q.default.arrayOf(Q.default.oneOf(["column-reverse","column","row-reverse","row"])),Q.default.object]),divider:Q.default.node,spacing:Q.default.oneOfType([Q.default.arrayOf(Q.default.oneOfType([Q.default.number,Q.default.string])),Q.default.number,Q.default.object,Q.default.string]),sx:Q.default.oneOfType([Q.default.arrayOf(Q.default.oneOfType([Q.default.func,Q.default.object,Q.default.bool])),Q.default.func,Q.default.object]),useFlexGap:Q.default.bool});var Ao=Gc;var e1=_styled2.default.call(void 0, (0, _material.Typography))(({theme:e})=>({fontWeight:"bold"}));function qc(e){let{label:t,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",gap:4},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsx.call(void 0, Ao,{children:_jsxruntime.jsx.call(void 0, e1,d(c({},o),{children:t}))}),_jsxruntime.jsx.call(void 0, Ao,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function Fo(e){let{typographyProps:t,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:l,isEditing:s,isLoading:p,error:u}=e,F=l||{},{InputProps:f,value:m,onKeyDown:h,onChange:x}=F,g=w(F,["InputProps","value","onKeyDown","onChange"]),[k,v]=_react.useState.call(void 0, !1),[P,C]=_react.useState.call(void 0, !1),[S,D]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{D(n)},[n]),_react.useEffect.call(void 0, ()=>{v(!!s)},[s]),_react.useEffect.call(void 0, ()=>{u&&C(!0)},[u]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!k&&!p&&!P&&_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, _material.Typography,d(c({onClick:()=>{v(!0)}},t),{children:S})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{v(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(k||p||P)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>v(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:p,autoFocus:!0,value:S,error:P,onKeyDown:T=>{T.key==="Enter"&&(r(S),v(!1)),T.key==="Escape"&&(D(n),v(!1),C(!1),o&&o(n,S))},onChange:T=>{let te=T.target.value;D(te)},InputProps:{endAdornment:_jsxruntime.jsxs.call(void 0, _material.InputAdornment,{position:"end",children:[p&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{size:18}),a&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{n!=S&&r(S),v(!1)},edge:"end",children:n!=S?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},g))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function Dt(e){let i=e,{onSearch:t}=i,r=w(i,["onSearch"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let l=a.target.value;o(l)}return _jsxruntime.jsx.call(void 0, _material.TextField,c({onChange:n,autoFocus:!0,InputProps:{startAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"start",children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})})}},r))}function Jc(e){let{title:t,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:l,toolbarProps:s}=e,[p,u]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{m(t)},[t]);let h=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&l){let v=localStorage.getItem(l);h.current&&(h.current.value=v),a(v||"")}},[l]);let x=_material.useMediaQuery.call(void 0, v=>v.breakpoints.down("sm"));function g(v){l&&localStorage.setItem(l,v),a&&a(v)}let k={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return _jsxruntime.jsx.call(void 0, _material.Toolbar,d(c({},s),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:x||n?"column":"row",justifyContent:"space-between",alignContent:"center",alignItems:"center",flexGrow:1},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row"},children:[o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{mr:1},onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.ArrowBack,{})}),i&&_jsxruntime.jsx.call(void 0, Fo,{typographyProps:k,value:f,onChange:v=>{i&&i(v)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,d(c({},k),{children:t}))]}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{marginLeft:"auto"},onClick:n,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{fontSize:"medium"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,direction:"row",children:[a&&_jsxruntime.jsx.call(void 0, Dt,{inputRef:h,autoFocus:!0,onSearch:g}),r]})]})}))}function Fi(e){let R=e,{value:t,label:r,options:o,isLoading:n,form:i,table:a,tableProps:l,onChange:s,onSearch:p,renderValue:u,dialogProps:f,disabled:m,filterOptions:h,optionKeyName:x}=R,g=w(R,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:k,openDialog:v,closeDialog:P}=_hooks.useDialog.call(void 0, ),[C,S]=_react.useState.call(void 0, null),D=i||ni.default.Fragment,F=_lodash2.default.debounce(B=>p(B),500),T=_react.useCallback.call(void 0, (B,y)=>$(this,null,function*(){F(y)}),[F]),te=_react.useCallback.call(void 0, (B,y,b)=>{if(x&&(y!=null&&y[x].includes("Adicionar op\xE7\xE3o:"))){let I=y[x].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),E=d(c({},y),{[x]:I});s&&s(E);return}s&&s(y)},[s]);function W(B,y=!1,b=!1){var I;if(B){let E=ni.default.Children.toArray((I=B.props)==null?void 0:I.children),M=E.length===1?0:1;return E.splice(M,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>v(),disabled:b,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.SearchOutlined,{fontSize:"small"})})),y&&E.unshift(_jsxruntime.jsx.call(void 0, _material.IconButton,{disabled:!0,children:_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"primary",size:18})})),ni.default.cloneElement(B,{},E)}return B}function re(B,y){if(!x)return B;let I=_material.createFilterOptions.call(void 0, )(B,y),{inputValue:E}=y,M=B.some(_=>E===_[x]);return E!==""&&!M&&I.push({[x]:`Adicionar op\xE7\xE3o: "${E}"`}),I}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Autocomplete,{disabled:m,loadingText:"Carregando...",loading:n,onChange:te,value:t,onInputChange:T,options:o,getOptionLabel:u,filterOptions:re,renderInput:B=>_jsxruntime.jsx.call(void 0, _material.TextField,c(d(c({label:r,onDoubleClick:()=>{m||v()}},B),{InputProps:d(c({},B.InputProps),{endAdornment:W(B.InputProps.endAdornment,n,m)}),disabled:m}),g)),clearIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.BackspaceOutlined,{}),componentsProps:{clearIndicator:{sx:{visibility:"visible"}}},noOptionsText:"Nenhum registro"}),_jsxruntime.jsx.call(void 0, _providers.FormProvider,{children:_jsxruntime.jsx.call(void 0, je,d(c({open:k,onClose:()=>P(),actions:"none"},f),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, Dt,{placeholder:"Pesquisar",onSearch:B=>S(B)}),i&&_jsxruntime.jsx.call(void 0, D,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:C,enableTransporter:!0,onTransport:B=>{P(),s&&s(B)}},l))]})}))})]})}var R1={dialogProps:{maxWidth:"md",fullWidth:!0}};Fi.defaultProps=R1;function Ri(e){let{children:t}=e,r=_material.useTheme.call(void 0, ),o=_material.useMediaQuery.call(void 0, r.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:o?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{},children:t})}function Di(e){let{label:t,subTitle:r="Acesse sua conta"}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"header",textAlign:"center",marginBottom:"3rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",fontSize:"2rem",fontWeight:"bold",variant:"body1",fontFamily:"Montserrat",sx:{color:o=>o.palette.primary.dark},children:t}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h3",fontSize:"1.25rem",fontFamily:"Montserrat",color:"primary",variant:"body1",children:r})]})}var _axios = require('axios');var Ae=Xe(pp()),ur=Xe(dp()),bp=Xe(hp()),oh=Object.prototype.toString,nh=Error.prototype.toString,ih=RegExp.prototype.toString,ah=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",sh=/^Symbol\((.*)\)(.*)$/;function lh(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function gp(e,t=!1){if(e==null||e===!0||e===!1)return""+e;let r=typeof e;if(r==="number")return lh(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return ah.call(e).replace(sh,"Symbol($1)");let o=oh.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+nh.call(e)+"]":o==="RegExp"?ih.call(e):null}function qe(e,t){let r=gp(e,t);return r!==null?r:JSON.stringify(e,function(o,n){let i=gp(this[o],t);return i!==null?i:n},2)}function Cp(e){return e==null?[]:[].concat(e)}var wp,kp,Sp,ch=/\$\{\s*(\w+)\s*\}/g;wp=Symbol.toStringTag;var $o=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[wp]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],Cp(t).forEach(i=>{if(ue.isError(i)){this.errors.push(...i.errors);let a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};kp=Symbol.hasInstance;Sp=Symbol.toStringTag;var ue=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(ch,(n,i)=>qe(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,o,n,i){let a=new $o(t,r,o,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Sp]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ue)}static[kp](t){return $o[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},Ne={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}},ge={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"},nt={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"},zi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Vi={isValue:"${path} field must be ${value}"},Bo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},_o={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"},Pp={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 ue.formatError(Ne.notType,e)}},Cw=Object.assign(Object.create(null),{mixed:Ne,string:ge,number:nt,date:zi,object:Bo,array:_o,boolean:Vi,tuple:Pp}),Uo=e=>e&&e.__isYupSchema__,_t=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:i}=r,a=typeof o=="function"?o:(...l)=>l.every(s=>s===o);return new _t(t,(l,s)=>{var p;let u=a(...l)?n:i;return(p=u==null?void 0:u(s))!=null?p: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(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),n=this.fn(o,t,r);if(n===void 0||n===t)return t;if(!Uo(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},Oo={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]===Oo.context,this.isValue=this.key[0]===Oo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Oo.context:this.isValue?Oo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,Ae.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==null?void 0:r.parent,r==null?void 0: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 Fe=e=>e==null;function Ot(e){function t({value:r,path:o="",options:n,originalValue:i,schema:a},l,s){let{name:p,test:u,params:f,message:m,skipAbsent:h}=e,{parent:x,context:g,abortEarly:k=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=n;function P(R){return Ye.isRef(R)?R.getValue(r,x,g):R}function C(R={}){let B=Object.assign({value:r,originalValue:i,label:a.spec.label,path:R.path||o,spec:a.spec,disableStackTrace:R.disableStackTrace||v},f,R.params);for(let b of Object.keys(B))B[b]=P(B[b]);let y=new ue(ue.formatError(R.message||m,B),r,B.path,R.type||p,B.disableStackTrace);return y.params=B,y}let S=k?l:s,D={path:o,parent:x,type:p,from:n.from,createError:C,resolve:P,options:n,originalValue:i,schema:a},F=R=>{ue.isError(R)?S(R):R?s(null):S(C())},T=R=>{ue.isError(R)?S(R):l(R)};if(h&&Fe(r))return F(!0);let W;try{var re;if(W=u.call(D,r,D),typeof((re=W)==null?void 0:re.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(F,T)}}catch(R){T(R);return}F(W)}return t.OPTIONS=e,t}function ph(e,t,r,o=r){let n,i,a;return t?((0,Ae.forEach)(t,(l,s,p)=>{let u=s?l.slice(1,l.length-1):l;e=e.resolve({context:o,parent:n,value:r});let f=e.type==="tuple",m=p?parseInt(u,10):0;if(e.innerType||f){if(f&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&m>=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[m],e=f?e.spec.types[m]:e.innerType}if(!p){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);n=r,r=r&&r[u],e=e.fields[u]}i=u,a=s?"["+l+"]":"."+l}),{schema:e,parent:n,parentPath:i}):{parent:n,parentPath:t,schema:e}}var Lt=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 Lt(this.values())}merge(t,r){let o=this.clone();return t.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function Bt(e,t=new Map){if(Uo(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]=Bt(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,Bt(n,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let o of e)r.add(Bt(o,t))}else if(e instanceof Object){r={},t.set(e,r);for(let[o,n]of Object.entries(e))r[o]=Bt(n,t)}else throw Error(`Unable to clone ${e}`);return r}var ae=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 Lt,this._blacklist=new Lt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ne.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==null?void 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=Bt(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(i=>{t.tests.forEach(a=>{i.test(a.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,i)=>i.resolve(n,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,o,n,i;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:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let o=this.resolve(Object.assign({value:t},r)),n=r.assert==="ignore-optionality",i=o._cast(t,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Fe(i))return i;let a=qe(t),l=qe(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
8
8
 
9
9
  attempted value: ${a}
10
- `+(l!==a?`result of cast: ${l}`:""))}return i}_cast(t,r){let o=t===void 0?t:this.transforms.reduce((n,i)=>i.call(this,n,t,this),t);return o===void 0&&(o=this.getDefault(r)),o}_validate(t,r={},o,n){let{path:i,originalValue:a=t,strict:l=this.spec.strict}=r,s=t;l||(s=this._cast(s,Object.assign({assert:!1},r)));let p=[];for(let u of Object.values(this.internalTests))u&&p.push(u);this.runTests({path:i,value:s,originalValue:a,options:r,tests:p},o,u=>{if(u.length)return n(u,s);this.runTests({path:i,value:s,originalValue:a,options:r,tests:this.tests},o,n)})}runTests(t,r,o){let n=!1,{tests:i,value:a,originalValue:l,path:s,options:p}=t,u=g=>{n||(n=!0,r(g,a))},f=g=>{n||(n=!0,o(g,a))},m=i.length,h=[];if(!m)return f([]);let x={value:a,originalValue:l,path:s,options:p,schema:this};for(let g=0;g<i.length;g++){let k=i[g];k(x,u,function(P){P&&(Array.isArray(P)?h.push(...P):h.push(P)),--m<=0&&f(h)})}}asNestedTest({key:t,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let l=t!=null?t:r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");let s=typeof l=="number",p=o[l],u=Object.assign({},a,{strict:!0,parent:o,value:p,originalValue:i[l],key:void 0,[s?"index":"key"]:l,path:s||l.includes(".")?`${n||""}[${s?l:`"${l}"`}]`:(n?`${n}.`:"")+t});return(f,m,h)=>this.resolve(u)._validate(p,u,m,h)}validate(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,l)=>n._validate(t,r,(s,p)=>{ue.isError(s)&&(s.value=p),l(s)},(s,p)=>{s.length?l(new ue(s,p,void 0,void 0,i)):a(p)}))}validateSync(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(t,Object.assign({},r,{sync:!0}),(l,s)=>{throw ue.isError(l)&&(l.value=s),l},(l,s)=>{if(l.length)throw new ue(l,t,void 0,void 0,a);i=s}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,o=>{if(ue.isError(o))return!1;throw o})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(o){if(ue.isError(o))return!1;throw o}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Bt(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=Ot({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=Ot({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=Ne.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ne.notNull){return this.nullability(!1,t)}required(t=Ne.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=Ne.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=Ot(r),i=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(a=>!(a.OPTIONS.name===r.name&&(i||a.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=vp(t).map(i=>new Ye(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new _t(n,r):_t.fromOptions(n,r)),o}typeError(t){let r=this.clone();return r.internalTests.typeError=Ot({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=Ne.oneOf){let o=this.clone();return t.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=Ot({message:r,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),o}notOneOf(t,r=Ne.notOneOf){let o=this.clone();return t.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=Ot({message:r,name:"notOneOf",test(n){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!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:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,p,u)=>u.findIndex(f=>f.name===s.name)===p)}}};ae.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])ae.prototype[`${e}At`]=function(t,r,o={}){let{parent:n,parentPath:i,schema:a}=lh(this,t,r,o.context);return a[e](n&&n[i],Object.assign({},o,{parent:n,path:t}))};for(let e of["equals","is"])ae.prototype[e]=ae.prototype.oneOf;for(let e of["not","nope"])ae.prototype[e]=ae.prototype.notOneOf;var ch=()=>!0;function ph(e){return new No(e)}var No=class extends ae{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:ch},t))}};ph.prototype=No.prototype;function uh(){return new zo}var zo=class extends ae{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(o.spec.coerce&&!o.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 Fe(r)||r===!0}})}isFalse(t=zi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Fe(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)}};uh.prototype=zo.prototype;var fh=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function dh(e){let t=Vi(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 Vi(e){var t,r;let o=fh.exec(e);return o?{year:Ue(o[1]),month:Ue(o[2],1)-1,day:Ue(o[3],1),hour:Ue(o[4]),minute:Ue(o[5]),second:Ue(o[6]),millisecond:o[7]?Ue(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:Ue(o[10]),minuteOffset:Ue(o[11])}:null}function Ue(e,t=0){return Number(e)||t}var mh=/^[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])?)*$/,hh=/^((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,gh=/^(?:[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,yh="^\\d{4}-\\d{2}-\\d{2}",xh="\\d{2}:\\d{2}:\\d{2}",vh="(([+-]\\d{2}(:?\\d{2})?)|Z)",bh=new RegExp(`${yh}T${xh}(\\.\\d+)?${vh}$`),Ch=e=>Fe(e)||e===e.trim(),wh={}.toString();function fe(){return new Vo}var Vo=class extends ae{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;let n=t!=null&&t.toString?t.toString():t;return n===wh?t:n})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ne.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=ge.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=ge.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=ge.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,i;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:i}=r:n=r),this.test({name:i||"matches",message:n||ge.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&o||a.search(t)!==-1})}email(t=ge.email){return this.matches(mh,{name:"email",message:t,excludeEmptyString:!0})}url(t=ge.url){return this.matches(hh,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ge.uuid){return this.matches(gh,{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(bh,{name:"datetime",message:r||ge.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||ge.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:i=>{if(!i||o)return!0;let a=Vi(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||ge.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;let a=Vi(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ge.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Ch})}lowercase(t=ge.lowercase){return this.transform(r=>Fe(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Fe(r)||r===r.toLowerCase()})}uppercase(t=ge.uppercase){return this.transform(r=>Fe(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Fe(r)||r===r.toUpperCase()})}};fe.prototype=Vo.prototype;var kh=e=>e!=+e;function Sh(){return new jo}var jo=class extends ae{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!kh(t)}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce)return t;let n=t;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return o.isType(n)||n===null?n:parseFloat(n)})})}min(t,r=nt.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=nt.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=nt.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=nt.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=nt.positive){return this.moreThan(0,t)}negative(t=nt.negative){return this.lessThan(0,t)}integer(t=nt.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>Fe(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=>Fe(n)?n:Math[t](n))}};Sh.prototype=jo.prototype;var Sp=new Date(""),Ph=e=>Object.prototype.toString.call(e)==="[object Date]";function Pp(){return new dt}var dt=class extends ae{constructor(){super({type:"date",check(t){return Ph(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=dh(t),isNaN(t)?dt.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=Ni.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=Ni.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)}})}};dt.INVALID_DATE=Sp;Pp.prototype=dt.prototype;Pp.INVALID_DATE=Sp;function Th(e,t=[]){let r=[],o=new Set,n=new Set(t.map(([a,l])=>`${a}-${l}`));function i(a,l){let s=(0,Ae.split)(a)[0];o.add(s),n.has(`${l}-${s}`)||r.push([l,s])}for(let a of Object.keys(e)){let l=e[a];o.add(a),Ye.isRef(l)&&l.isSibling?i(l.path,a):Uo(l)&&"deps"in l&&l.deps.forEach(s=>i(s,a))}return xp.default.array(Array.from(o),r).reverse()}function hp(e,t){let r=1/0;return e.some((o,n)=>{var i;if((i=t.path)!=null&&i.includes(o))return r=n,!0}),r}function Tp(e){return(t,r)=>hp(e,t)-hp(e,r)}var Ip=(e,t,r)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch(n){}return r.isType(o)?o:e};function Lo(e){if("fields"in e){let t={};for(let[r,o]of Object.entries(e.fields))t[r]=Lo(o);return e.setFields(t)}if(e.type==="array"){let t=e.optional();return t.innerType&&(t.innerType=Lo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Lo)}):"optional"in e?e.optional():e}var Ih=(e,t)=>{let r=[...(0,Ae.normalizePath)(t)];if(r.length===1)return r[0]in e;let o=r.pop(),n=(0,Ae.getter)((0,Ae.join)(r),!0)(e);return!!(n&&o in n)},gp=e=>Object.prototype.toString.call(e)==="[object Object]";function yp(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(o=>r.indexOf(o)===-1)}var Eh=Tp([]);function we(e){return new Wo(e)}var Wo=class extends ae{constructor(t){super({type:"object",check(r){return gp(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Eh,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 i=this.fields,a=(o=r.stripUnknown)!=null?o:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),s={},p=Object.assign({},r,{parent:s,__validating:r.__validating||!1}),u=!1;for(let f of l){let m=i[f],h=f in n;if(m){let x,g=n[f];p.path=(r.path?`${r.path}.`:"")+f,m=m.resolve({value:g,context:r.context,parent:s});let k=m instanceof ae?m.spec:void 0,v=k==null?void 0:k.strict;if(k!=null&&k.strip){u=u||f in n;continue}x=!r.__validating||!v?m.cast(n[f],p):n[f],x!==void 0&&(s[f]=x)}else h&&!a&&(s[f]=n[f]);(h!==f in s||s[f]!==n[f])&&(u=!0)}return u?s:n}_validate(t,r={},o,n){let{from:i=[],originalValue:a=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(t,r,o,(s,p)=>{if(!l||!gp(p)){n(s,p);return}a=a||p;let u=[];for(let f of this._nodes){let m=this.fields[f];!m||Ye.isRef(m)||u.push(m.asNestedTest({options:r,key:f,parent:p,parentPath:r.path,originalParent:a}))}this.runTests({tests:u,value:p,originalValue:a,options:r},o,f=>{n(f.sort(this._sortErrors).concat(s),p)})})}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,i]of Object.entries(this.fields)){let a=o[n];o[n]=a===void 0?i:a}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 i=this.fields[o],a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),r[o]=i&&"getDefault"in i?i.getDefault(a):void 0}),r}setFields(t,r){let o=this.clone();return o.fields=t,o._nodes=Th(t,r),o._sortErrors=Tp(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 Lo(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,Ae.getter)(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return Ih(i,t)&&(a=Object.assign({},i),o||delete a[t],a[r]=n(i)),a})}json(){return this.transform(Ip)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Bo.exact,test(r){if(r==null)return!0;let o=yp(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Bo.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 i=yp(this.schema,n);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,r=Bo.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(ur.camelCase)}snakeCase(){return this.transformKeys(ur.snakeCase)}constantCase(){return this.transformKeys(t=>(0,ur.snakeCase)(t).toUpperCase())}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(let[i,a]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[i]})),o.fields[i]=a.describe(l)}return o}};we.prototype=Wo.prototype;function Ah(e){return new Go(e)}var Go=class extends ae{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,i=o.map((a,l)=>{let s=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return s!==a&&(n=!0),s});return n?i:o}_validate(t,r={},o,n){var i;let a=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,o,(s,p)=>{var u;if(!l||!a||!this._typeCheck(p)){n(s,p);return}let f=new Array(p.length);for(let h=0;h<p.length;h++){var m;f[h]=a.asNestedTest({options:r,index:h,parent:p,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:p,tests:f,originalValue:(u=r.originalValue)!=null?u:t,options:r},o,h=>n(h.concat(s),p))})}clone(t){let r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(Ip)}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(!Uo(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=_o.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||_o.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||_o.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,i)=>!t(o,n,i):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 i=t;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),o.innerType=r.innerType.describe(i)}return o}};Ah.prototype=Go.prototype;function Mh(e){return new Ho(e)}var Ho=class extends ae{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(kp.notType)})}_cast(t,r){let{types:o}=this.spec,n=super._cast(t,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((l,s)=>{let p=l.cast(n[s],Object.assign({},r,{path:`${r.path||""}[${s}]`}));return p!==n[s]&&(i=!0),p});return i?a:n}_validate(t,r={},o,n){let i=this.spec.types;super._validate(t,r,o,(a,l)=>{var s;if(!this._typeCheck(l)){n(a,l);return}let p=[];for(let[f,m]of i.entries()){var u;p[f]=m.asNestedTest({options:r,index:f,parent:l,parentPath:r.path,originalParent:(u=r.originalValue)!=null?u:t})}this.runTests({value:l,tests:p,originalValue:(s=r.originalValue)!=null?s:t,options:r},o,f=>n(f.concat(a),l))})}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=r.spec.types.map((n,i)=>{var a;let l=t;return(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.describe(l)}),o}};Mh.prototype=Ho.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function mt(e){let{name:t,label:r,value:o,onChange:n,onKeyDown:i}=e,[a,l]=_react.useState.call(void 0, !1);function s(){l(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:t,label:r,value:o||"",onChange:n,onKeyDown:i,type:a?"text":"password",InputProps:{endAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"end",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{tabIndex:-1,onClick:s,edge:"end",children:a?_jsxruntime.jsx.call(void 0, _iconsmaterial.VisibilityOff,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Visibility,{})})})}})}var Vh=_react.forwardRef.call(void 0, function(t,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},t))});function dr(n){var i=n,{children:e,height:t,fullWidth:r=!0}=i,o=w(i,["children","height","fullWidth"]);return _jsxruntime.jsx.call(void 0, _material.Dialog,d(c({disableRestoreFocus:!0,fullWidth:r,TransitionComponent:Vh,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:t,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:e})}))}var _core = require('@toolpad/core');function Wi({children:e}){return _jsxruntime.jsx.call(void 0, _core.DialogsProvider,{children:e})}function Gi(e){let a=e,{dialogComponent:t,payload:r,label:o}=a,n=w(a,["dialogComponent","payload","label"]),i=_core.useDialogs.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{i.open(t,r)}},n),{children:o||" Adicionar"}))}function mr(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({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))}function hr(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h2",variant:"button",sx:{fontSize:"14px",color:t.palette.grey[500],whiteSpace:"nowrap"}},e))}function gr({onClose:e}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>e(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function yr(r){var o=r,{children:e}=o,t=w(o,["children"]);return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"main",margin:"44px 0 55.75px",overflow:"auto",children:_jsxruntime.jsx.call(void 0, _material.Stack,d(c({padding:"16px"},t),{children:e}))})}function xr(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({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))}function vr(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},e))}function Hi(r){var o=r,{children:e}=o,t=w(o,["children"]);return _jsxruntime.jsx.call(void 0, N,d(c({variant:"outlined",color:"error"},t),{children:"Cancelar"}))}function Ui(o){var n=o,{children:e,label:t}=n,r=w(n,["children","label"]);return _jsxruntime.jsx.call(void 0, N,d(c({variant:"contained"},r),{children:t||"Salvar"}))}function Yi({open:e,onClose:t,payload:r}){let{useRemover:o,identificador:n}=r,{mutateAsync:i,isLoading:a}=o();function l(){return $(this,null,function*(){try{yield i(n),t()}catch(s){}})}return _jsxruntime.jsxs.call(void 0, dr,{open:e,onClose:t,children:[_jsxruntime.jsxs.call(void 0, mr,{children:[_jsxruntime.jsx.call(void 0, hr,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, gr,{onClose:t})]}),_jsxruntime.jsx.call(void 0, yr,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, xr,{children:_jsxruntime.jsxs.call(void 0, vr,{children:[_jsxruntime.jsx.call(void 0, N,{onClick:()=>t(),sx:{minWidth:"100px"},children:"Manter registro"}),_jsxruntime.jsx.call(void 0, N,{color:"error",variant:"contained",isLoading:a,onClick:l,sx:{minWidth:"100px"},children:"Remover"})]})})]})}var cg={Root:dr,Provider:Wi,AdicionarButton:Gi,Header:mr,Title:hr,ActionClose:gr,Content:yr,Footer:xr,Actions:vr,ActionCancelar:Hi,ActionSalvar:Ui,ConfirmDelete:Yi},j= exports.DialogV2 =cg;function gt(e){let{isValid:t,message:r}=e,o=_material.useTheme.call(void 0, );return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:t?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:t?o.palette.success.main:"inherit",textDecoration:t?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var Bp={senhaAtual:"",senhaNova:""},bg=we().shape({senhaAtual:fe().required("Informe a Senha Atual."),senhaNova:fe().required("Informe a Nova Senha.")});function Vt(e){let{isOpen:t,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:l,email:s}=e,{alterarSenha:p,isSubmitting:u}=_hooks.useCredentials.call(void 0, r),{setValidationErrors:f,validationProps:m}=_hooks.useValidations.call(void 0, ),{data:h,handleChange:x,setData:g,changeValue:k}=_hooks.useForm.call(void 0, Bp),[v,P]=_react.useState.call(void 0, !1),[C,S]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{l&&k("senhaAtual",l)},[l]),_react.useEffect.call(void 0, ()=>{h.senhaNova&&P(_isStrongPassword2.default.call(void 0, h.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[h.senhaNova]);function D(){return $(this,null,function*(){f(null),S(null),bg.validate(h,{abortEarly:!1}).then(()=>$(this,null,function*(){var y;let{senhaAtual:R,senhaNova:B}=h;try{(yield p(R,B,s))&&(n&&n(),g(Bp))}catch(b){if(i&&i(b),_axios.isAxiosError.call(void 0, b)){S((y=b.response)==null?void 0:y.data.message);return}S("Ocorreu um erro ao tentar alterar a senha")}})).catch(R=>{f(R)})})}function F(){return(h==null?void 0:h.senhaNova.length)>=8}function T(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/[a-z]/g);return Array.isArray(R)&&R.length>0}return!1}function te(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/[A-Z]/g);return Array.isArray(R)&&R.length>0}return!1}function W(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/\d/g);return Array.isArray(R)&&R.length>0}return!1}function re(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/\W/g);return Array.isArray(R)&&R.length>0}return!1}return _jsxruntime.jsxs.call(void 0, j.Root,{open:t,onClose:R=>o(),maxWidth:"md",children:[_jsxruntime.jsxs.call(void 0, j.Header,{children:[_jsxruntime.jsx.call(void 0, j.Title,{children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, j.ActionClose,{onClose:o})]}),_jsxruntime.jsx.call(void 0, j.Content,{children:_jsxruntime.jsxs.call(void 0, _material.Grid2,{container:!0,spacing:2,children:[a&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsxs.call(void 0, _material.Alert,{severity:"info",children:["Voc\xEA est\xE1 acessando o sistema com uma senha tempor\xE1ria.",_jsxruntime.jsx.call(void 0, "br",{}),"Cadastre uma senha segura para deixar sua conta mais protegida."]})}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, mt,c({name:"senhaAtual",label:"Senha Atual",value:(h==null?void 0:h.senhaAtual)||"",onChange:x},m("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, mt,c({name:"senhaNova",label:"Nova Senha",value:(h==null?void 0:h.senhaNova)||"",onChange:x},m("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{size:12,children:[_jsxruntime.jsx.call(void 0, gt,{isValid:F(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, gt,{isValid:T(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, gt,{isValid:te(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, gt,{isValid:W(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, gt,{isValid:re(),message:"A nova senha deve ter ao menos um caracter especial"})]}),C&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:C})})]})}),_jsxruntime.jsx.call(void 0, j.Footer,{children:_jsxruntime.jsxs.call(void 0, j.Actions,{children:[_jsxruntime.jsx.call(void 0, j.ActionCancelar,{onClick:()=>o()}),_jsxruntime.jsx.call(void 0, j.ActionSalvar,{label:"Alterar Senha",onClick:D,isLoading:u,disabled:!v})]})})]})}var Eg=we().shape({email:fe().required("Informe o e-mail"),password:fe().required("Informe a senha")});function Ki(e){let{onLoginSuccess:t,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=e,[i,a]=_react.useState.call(void 0, ""),[l,s]=_react.useState.call(void 0, ""),[p,u]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[h,x]=_react.useState.call(void 0, !1),[g,k]=_react.useState.call(void 0, null),{login:v}=_hooks.useCredentials.call(void 0, n),{validationProps:P,setValidationErrors:C}=_hooks.useValidations.call(void 0, );function S(){return $(this,null,function*(){C(null),k(null),Eg.validate({email:i,password:l},{abortEarly:!1}).then(()=>$(this,null,function*(){var D,F;u(!0);try{let T=yield v(i,l);T&&t(T)}catch(T){if(_axios.isAxiosError.call(void 0, T)){if(((D=T.response)==null?void 0:D.data.code)==="E_FIRST_ACCESS"){m(!0);return}k((F=T.response)==null?void 0:F.data.message)}r(T)}})).catch(D=>{C(D)}).finally(()=>{u(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:S,children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",autoFocus:!0,value:i||"",onChange:D=>a(D.target.value)},P("email"))),_jsxruntime.jsx.call(void 0, mt,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:l||"",onChange:D=>s(D.target.value),onKeyDown:D=>D.key==="Enter"&&S()},P("password"))),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:S,isLoading:p,sx:{mt:1},children:"Entrar"})]}),_jsxruntime.jsx.call(void 0, N,{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"}),g&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:g}),h&&_jsxruntime.jsxs.call(void 0, _material.Alert,{severity:"success",children:["Senha cadastrada com sucesso",_jsxruntime.jsx.call(void 0, "br",{}),"Tudo pronto para voc\xEA fazer o login"]}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"center",alignItems:"center",mt:2,mb:2,children:[_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{flexGrow:1,mr:1}}),_jsxruntime.jsx.call(void 0, _material.Typography,{children:"Ou fa\xE7a login com"}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{flexGrow:1,ml:1}})]}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,children:[_jsxruntime.jsx.call(void 0, N,{onClick:()=>o("otp-email"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Mail,{}),children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>o("otp-whatsapp"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.WhatsApp,{}),children:"Entrar com senha tempor\xE1ria"})]}),_jsxruntime.jsx.call(void 0, Vt,{senhaAtual:l,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>$(this,null,function*(){return m(!1)}),onSuccess:()=>{m(!1),x(!0),s("")},credentialsConfig:n})]})}var Dg=we().shape({email:fe().required("Informe o e-mail")});function Zi(e){let{onLoginClick:t,credentialsConfig:r}=e,[o,n]=_react.useState.call(void 0, ""),[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),[p,u]=_react.useState.call(void 0, null),{recuperarSenha:f}=_hooks.useCredentials.call(void 0, r),{validationProps:m,setValidationErrors:h}=_hooks.useValidations.call(void 0, );function x(){return $(this,null,function*(){h(null),Dg.validate({email:o},{abortEarly:!1}).then(()=>$(this,null,function*(){var g;try{a(!0),yield f(o),s(!0)}catch(k){u((g=k.response)==null?void 0:g.data.message)}finally{a(!1)}})).catch(g=>{h(g)})})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",placeholder:"Informe o e-mail utilizado para acessar o sistema",autoFocus:!0,value:o||"",onChange:g=>n(g.target.value)},m("email"))),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:x,isLoading:i,children:"Recuperar minha senha"}),_jsxruntime.jsx.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, N,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Voltar para o Login"})}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"success",action:_jsxruntime.jsx.call(void 0, N,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),p&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:p})]})}function Xi(e){var u;let{loginData:t,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=e,[i,a]=_react.useState.call(void 0, ""),{selecionarLicenca:l,isSubmitting:s}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{if(Array.isArray(t==null?void 0:t.empresas)){let f=t==null?void 0:t.empresas[0];a(f==null?void 0:f.uuid)}},[t]);function p(){return $(this,null,function*(){try{let f=yield l(t==null?void 0:t.token,i);f?n(f):o("Nenhuma token definida")}catch(f){o(f)}})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",sx:{minWidth:"290px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{label:"Licen\xE7as",margin:"normal",select:!0,autoFocus:!0,value:i,onChange:f=>{a(f.target.value)},children:(u=t==null?void 0:t.empresas)==null?void 0:u.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f.uuid,children:f.nome},f.uuid))}),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:p,isLoading:s,sx:{mt:1},children:"Confirmar"})]})}var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);var Np=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 Cr(e){let p=e,{value:t,onChange:r}=p,o=w(p,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=t!==void 0,l=_react.useMemo.call(void 0, ()=>a?Np(t||""):n,[t,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:l,onChange:u=>{let f=Np(u.target.value);if(a||i(f),r){let m=d(c({},u),{target:d(c({},u.target),{value:f})});r(m)}},inputProps:{maxLength:15}},o))}function wr({length:e=6,value:t,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,l)=>{var m;let s="ABCDEF0123456789",p=l.toUpperCase().split("").find(h=>s.includes(h))||"",u=t.split("");u[a]=p;let f=u.join("");r(f),p&&a<e-1&&((m=o.current[a+1])==null||m.focus())},i=(a,l)=>{var s;l.key==="Backspace"&&!t[a]&&a>0&&((s=o.current[a-1])==null||s.focus())};return _jsxruntime.jsx.call(void 0, _material.Box,{display:"flex",gap:1,children:Array.from({length:e}).map((a,l)=>_jsxruntime.jsx.call(void 0, _material.TextField,{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=>i(l,s)},l))})}function ea(e){let{open:t,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=e,[a,l]=_react.useState.call(void 0, ""),[s,p]=_react.useState.call(void 0, !1),[u,f]=_react.useState.call(void 0, !1),{validarOtpVerificationCode:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{p(!1)},3e3)},[s]);function h(){return $(this,null,function*(){try{f(!0);let x=yield m({channel:o.channel,target:o.target,code:a});x&&n(x),r()}catch(x){p(x.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:t,onClose:x=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, j.Header,{children:[_jsxruntime.jsx.call(void 0, j.Title,{children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, j.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, j.Content,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,justifyContent:"center",alignContent:"center",alignItems:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle1",sx:{fontWeight:"bolder",fontSize:"11pt"},children:"\u{1F510} Digite a senha tempor\xE1ria para acessar sua conta"}),_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body1",sx:{fontSize:"10pt"},children:["Enviamos uma senha tempor\xE1ria para ",_jsxruntime.jsx.call(void 0, "b",{children:o.target}),". ",_jsxruntime.jsx.call(void 0, "br",{}),"Digite o c\xF3digo abaixo para acessar sua conta."]}),_jsxruntime.jsx.call(void 0, wr,{value:a,onChange:x=>{l(x)}}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, j.Footer,{children:_jsxruntime.jsxs.call(void 0, j.Actions,{children:[_jsxruntime.jsx.call(void 0, j.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, j.ActionSalvar,{label:"Entrar",onClick:h,isLoading:u,disabled:a.length!=6})]})})]})}var a2=we().shape({contato:fe().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 Zo(e){let{tipo:t,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=e,[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),{gerarOtpVerificationCode:p}=_hooks.useCredentials.call(void 0, r),{handleChange:u,changeValue:f,data:m,validate:h,validationErrors:x}=_hooks.useForm.call(void 0, {contato:""},a2),[g,k]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:P=>$(this,null,function*(){P.preventDefault(),h(C=>$(this,null,function*(){try{s(!1),a(!0);let S=yield p({channel:t==="otp-email"?"email":"whatsapp",target:C.contato});k(!0)}catch(S){s(S.response.data.message)}finally{a(!1)}}),{context:{tipo:t}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{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"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:m.contato||"",onChange:u,fullWidth:!0},x("contato"))),t==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Cr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:m.contato||"",onChange:P=>{f("contato",P.target.value.replace(/[^\d+]/g,""))},fullWidth:!0},x("contato"))),_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, N,{isLoading:i,type:"submit",variant:"contained",color:"primary",children:"Enviar c\xF3digo"}),_jsxruntime.jsxs.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:[_jsxruntime.jsx.call(void 0, N,{onClick:n,variant:"text",sx:{fontWeight:"400",":hover":{color:P=>P.palette.primary.dark}},children:"Voltar para o Login"}),_jsxruntime.jsx.call(void 0, "a",{href:"https://datacsistemashelp.zendesk.com/hc/pt-br/articles/36489079108756-Login-OTP-via-WhatsApp",target:"_blank",rel:"noopener noreferrer",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{children:_jsxruntime.jsx.call(void 0, _iconsmaterial.HelpOutline,{color:"primary"})})})]})]}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:l})]})}),_jsxruntime.jsx.call(void 0, ea,{onLoginSuccess:o,open:g,onClose:P=>$(this,null,function*(){k(!1)}),payload:{target:m.contato,channel:t==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var m2={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 ra(e){let{credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=e,[a,l]=_react.useState.call(void 0, ),{selecionarLicenca:s,isAuthenticated:p}=_hooks.useCredentials.call(void 0, t),[u,f]=_react.useState.call(void 0, "login"),m=_material.useTheme.call(void 0, ),h=_material.useMediaQuery.call(void 0, m.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{p&&n&&n()},[p]);function x(C){return $(this,null,function*(){try{if(Array.isArray(C==null?void 0:C.empresas)){if((C==null?void 0:C.empresas.length)===1){let S=yield s(C==null?void 0:C.token,C.empresas[0].uuid);S&&r(S);return}f("licensa"),l(C);return}r(C)}catch(S){o(S)}})}function g(C){return $(this,null,function*(){o(C)})}function k(C){f(C)}function v(){f("login")}let P=m2[u];return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"section",width:h?"46%":"100%",minWidth:"420px",maxWidth:h?"614px":"initial",justifyContent:"center",alignItems:"center",padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",maxWidth:"28rem",margin:"auto 0",children:_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, Ri,{label:i,subTitle:P}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[u==="login"&&_jsxruntime.jsx.call(void 0, Ki,{credentialsConfig:t,onLoginSuccess:x,onLoginFailed:g,onOptionsClick:k}),u==="licensa"&&_jsxruntime.jsx.call(void 0, Xi,{loginData:a,credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o}),u==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, Zi,{onLoginClick:v,credentialsConfig:t}),u==="otp-email"&&_jsxruntime.jsx.call(void 0, Zo,{onLoginClick:v,onLoginSuccess:x,tipo:"otp-email",credentialsConfig:t}),u==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Zo,{onLoginClick:v,onLoginSuccess:x,tipo:"otp-whatsapp",credentialsConfig:t})]})]})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",marginBottom:-3,children:[_jsxruntime.jsx.call(void 0, "img",{width:"60",src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/logomarca.png"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",component:"span",fontSize:"0.7rem",sx:{color:C=>C.palette.grey[500]},children:"Data C Sistemas"})]})]})}function na(){let e=_material.useTheme.call(void 0, ),t=_material.useMediaQuery.call(void 0, e.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{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:_jsxruntime.jsxs.call(void 0, _material.Stack,{padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"bold",color:"white",fontFamily:"Montserrat",letterSpacing:0,children:"Inova\xE7\xE3o e tecnologia"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",color:"white",fontSize:"2.5rem",lineHeight:"3rem",letterSpacing:0,fontWeight:"bold",fontFamily:"Montserrat",children:"para empresas de resultado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{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 25 anos de exist\xEAncia e muitas hist\xF3rias de sucesso."}),_jsxruntime.jsx.call(void 0, _material.Link,{href:"https://site.datac.com.br/services/",target:"_blank",children:_jsxruntime.jsxs.call(void 0, N,{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",_jsxruntime.jsx.call(void 0, _iconsmaterial.ArrowRight,{fontSize:"medium",sx:{color:r=>r.palette.success.light}})]})})]})})}function Up(e){let{banner:t}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[t?_jsxruntime.jsx.call(void 0, Fi,{children:t}):_jsxruntime.jsx.call(void 0, na,{}),_jsxruntime.jsx.call(void 0, ra,c({},e))]})}var k2=_styles.styled.call(void 0, _material.MenuItem,{})(({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"}})),S2=e=>_jsxruntime.jsx.call(void 0, k2,c({},e)),Jo=S2;function aa(e){let{menuItem:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, !1);if(!t.visible)return null;let a=!!(t!=null&&t.items&&(t==null?void 0:t.items.length)>0);function l(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, Jo,{onClick:()=>{if(t!=null&&t.link){o(t.link);return}l()},selected:r===t.link,children:[!!t.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:t.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:t.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(t==null?void 0:t.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, xt,{activeMenu:r,sx:{pl:s=>s.spacing(1.5)},menus:(t==null?void 0:t.items)||[],onMenuClick:o})})]})}function xt(e){let i=e,{menus:t,activeMenu:r,onMenuClick:o}=i,n=w(i,["menus","activeMenu","onMenuClick"]);return _jsxruntime.jsx.call(void 0, _material.List,d(c({component:"nav",disablePadding:!0},n),{children:t.map(a=>_jsxruntime.jsx.call(void 0, aa,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function sa(e){let{menus:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, null),a=(s,p,u)=>{i({element:s.currentTarget,id:p,items:u})},l=()=>{i(null)};return _jsxruntime.jsx.call(void 0, _material.List,{component:"nav",disablePadding:!0,children:t.map(s=>s.visible?_jsxruntime.jsxs.call(void 0, Jo,{onMouseEnter:p=>{s!=null&&s.link||a(p,s.id,s.items)},onMouseLeave:()=>{s!=null&&s.link||l()},onClick:()=>{s!=null&&s.link&&o(s.link)},selected:r===s.link,children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:_jsxruntime.jsx.call(void 0, _material.Icon,{children:s.icon})}),(n==null?void 0:n.id)===s.id&&_jsxruntime.jsx.call(void 0, _material.Popper,{sx:{zIndex:999999},anchorEl:n==null?void 0:n.element,open:!!(n!=null&&n.element),placement:"right-start",children:_jsxruntime.jsx.call(void 0, xt,{activeMenu:r,onMenuClick:o,menus:(s==null?void 0:s.items)||[],sx:{minWidth:"240px",backgroundColor:H.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)})}var Kp=(e,t)=>({width:e,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}),Zp=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)`}}),W2=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"&&e!=="width"})(({theme:e,open:t,width:r})=>c(c({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&&d(c({},Kp(r,e)),{"& .MuiDrawer-paper":Kp(r,e)})),!t&&d(c({},Zp(e)),{"& .MuiDrawer-paper":Zp(e)})));function Qp(e){let s=e,{open:t,items:r,width:o,activeMenu:n,onMenuClick:i,toggleMenu:a}=s,l=w(s,["open","items","width","activeMenu","onMenuClick","toggleMenu"]);return _jsxruntime.jsxs.call(void 0, W2,d(c({width:o,open:t,onClose:()=>a(!1)},l),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),t&&_jsxruntime.jsx.call(void 0, xt,{onMenuClick:i,activeMenu:n,menus:r}),!t&&_jsxruntime.jsx.call(void 0, sa,{onMenuClick:i,activeMenu:n,menus:r})]}))}function Xp(e){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},e))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function Jp(e){let{user:t}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:t==null?void 0:t.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},e))}function en(e){let i=e,{children:t,value:r,index:o}=i,n=w(i,["children","value","index"]);return r!==o?null:_jsxruntime.jsx.call(void 0, _material.Box,d(c({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}))}var _reacteasycrop = require('react-easy-crop'); var _reacteasycrop2 = _interopRequireDefault(_reacteasycrop);var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);var _Button = require('@mui/material/Button'); var _Button2 = _interopRequireDefault(_Button);var _Dialog = require('@mui/material/Dialog'); var _Dialog2 = _interopRequireDefault(_Dialog);function ca(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 i=n.getContext("2d");i&&(i.drawImage(o,t.x,t.y,t.width,t.height,0,0,t.width,t.height),r(n.toDataURL("image/jpeg")))}})}var oy=({onSave:e,src:t})=>{let[r,o]=_react.useState.call(void 0, null),[n,i]=_react.useState.call(void 0, null),[a,l]=_react.useState.call(void 0, {x:0,y:0}),[s,p]=_react.useState.call(void 0, 1),[u,f]=_react.useState.call(void 0, null),[m,h]=_react.useState.call(void 0, !1),x=_react.useCallback.call(void 0, (v,P)=>{f(P)},[]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,alignItems:"center",children:[n?_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:n,alt:"Preview",sx:{width:64,height:64,margin:"auto",mb:2}}):_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:t,sx:{width:64,height:64,margin:"auto",mb:2}}),_jsxruntime.jsxs.call(void 0, "label",{children:[_jsxruntime.jsx.call(void 0, "input",{type:"file",accept:"image/*",onChange:v=>{var S;let P=(S=v.target.files)==null?void 0:S[0];if(!P)return;let C=new FileReader;C.onload=()=>{o(C.result),h(!0)},C.readAsDataURL(P)},style:{display:"none"}}),_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",component:"span",children:"Alterar foto"})]}),_jsxruntime.jsxs.call(void 0, _Dialog2.default,{open:m,onClose:()=>h(!1),maxWidth:"sm",fullWidth:!0,children:[_jsxruntime.jsx.call(void 0, "div",{style:{position:"relative",height:400,background:"#333"},children:r&&_jsxruntime.jsx.call(void 0, _reacteasycrop2.default,{image:r,crop:a,zoom:s,aspect:1,cropShape:"round",showGrid:!1,onCropChange:l,onZoomChange:p,onCropComplete:x})}),_jsxruntime.jsxs.call(void 0, "div",{style:{padding:20},children:[_jsxruntime.jsx.call(void 0, _Slider2.default,{value:s,min:1,max:3,step:.1,onChange:(v,P)=>p(P)}),_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>$(void 0,null,function*(){if(!r||!u)return;let v=yield ca(r,u);i(v),h(!1),e&&e(v)}),children:"Salvar"})})]})]})]})},ru=oy;var ly=we().shape({name:fe().required("Informe o nome")});function da(e){let{usuario:t,credentialsConfig:r,onUploadComplete:o}=e,{data:n,setData:i,handleChange:a,validate:l,validationErrors:s}=_hooks.useForm.call(void 0, t,ly),[p,u]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[h,x]=_react.useState.call(void 0, !1),{uploadAvatar:g,atualizarUsuario:k}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(t)},[t]),_react.useEffect.call(void 0, ()=>{h&&setTimeout(()=>{x(!1)},3e3)},[h]),_react.useEffect.call(void 0, ()=>{p&&setTimeout(()=>{u(!1)},3e3)},[p]);function v(){l(P=>$(this,null,function*(){try{m(!0),yield k(P),x(!0)}catch(C){u("Ocorreu um erro ao alterar os dados da conta")}finally{m(!1)}}))}return _jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Avatar"}),_jsxruntime.jsx.call(void 0, ru,{src:n==null?void 0:n.avatarUrl,onSave:P=>{try{g(P),o&&(x(!0),o(!0))}catch(C){u("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,C)}}}),_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Informa\xE7\xF5es da Conta"}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{container:!0,spacing:1.5,children:[_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{disabled:!0,fullWidth:!0,label:"E-mail",value:(n==null?void 0:n.email)||""})}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"name",fullWidth:!0,label:"Nome",value:(n==null?void 0:n.name)||"",onChange:a},s("name")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{name:"surname",fullWidth:!0,label:"Sobrenome",value:(n==null?void 0:n.surname)||"",onChange:a})})]}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, N,{isLoading:f,onClick:()=>v(),variant:"contained",children:"Salvar"})})}),h&&_jsxruntime.jsx.call(void 0, _material.Alert,{children:"Dados da conta alterados com sucesso!"}),p&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:p})]})}function ha(e){var x,g,k;let{open:t,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=e,[a,l]=_react.useState.call(void 0, ""),[s,p]=_react.useState.call(void 0, !1),[u,f]=_react.useState.call(void 0, !1),{validarCodigoWhatsapp:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{p(!1)},3e3)},[s]);function h(){return $(this,null,function*(){try{f(!0);let v=yield m(a);n(v.data)}catch(v){p(v.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:t,onClose:v=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, j.Header,{children:[_jsxruntime.jsx.call(void 0, j.Title,{children:"Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp"}),_jsxruntime.jsx.call(void 0, j.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, j.Content,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,justifyContent:"center",alignContent:"center",alignItems:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle1",sx:{fontWeight:"bolder",fontSize:"11pt"},children:"\u{1F510} Verifique seu n\xFAmero"}),_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body1",sx:{fontSize:"10pt"},children:["Enviamos um c\xF3digo via WhatsApp para +55"," ",_jsxruntime.jsx.call(void 0, "b",{children:`(${(x=o==null?void 0:o.whatsappNumber)==null?void 0:x.slice(0,2)}) ${(g=o==null?void 0:o.whatsappNumber)==null?void 0:g.slice(2,7)}-${(k=o==null?void 0:o.whatsappNumber)==null?void 0:k.slice(7)}`}),". ",_jsxruntime.jsx.call(void 0, "br",{}),"Digite o c\xF3digo abaixo para confirmar que este n\xFAmero \xE9 seu."]}),_jsxruntime.jsx.call(void 0, wr,{value:a,onChange:v=>{l(v)}}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, j.Footer,{children:_jsxruntime.jsxs.call(void 0, j.Actions,{children:[_jsxruntime.jsx.call(void 0, j.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, j.ActionSalvar,{label:"Verificar",onClick:h,isLoading:u,disabled:a.length!=6})]})})]})}var zI=we().shape({whatsappNumber:fe().required("Informe o n\xFAmero do whastapp").length(15)});function va(e){let{usuario:t,credentialsConfig:r,onWhastappSaved:o}=e,[n,i]=_react.useState.call(void 0, !1),[a,l]=_react.useState.call(void 0, !1),{data:s,setData:p,changeValue:u,validate:f,validationErrors:m}=_hooks.useForm.call(void 0, t),[h,x]=_react.useState.call(void 0, !1),[g,k]=_react.useState.call(void 0, !1),{atualizarUsuario:v,gerarWhatsappVerificationCode:P}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{p(t)},[t]);function C(){f(D=>$(this,null,function*(){try{l(!0);let F=yield v(D);o&&o(F.data)}catch(F){}finally{l(!1)}}))}function S(){return $(this,null,function*(){try{x(!0);let D=yield P();k(!0)}catch(D){}finally{x(!1)}})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Senha"}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>{i(!0)},sx:{width:"200px"},fullWidth:!1,variant:"contained",children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, Vt,{isOpen:n,onClose:()=>$(this,null,function*(){return i(!1)}),credentialsConfig:r}),_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Login com Whastapp"}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,children:[_jsxruntime.jsx.call(void 0, Cr,{disabled:!!(s!=null&&s.whatsappVerifiedAt),fullWidth:!1,name:"whatsappNumber",label:"Whastapp",value:s.whatsappNumber||"",onChange:D=>{u("whatsappNumber",D.target.value)}}),s.whatsappVerifiedAt&&_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Verified,{color:"success"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",children:"N\xFAmero Verificado"})]}),s.whatsappNumber&&s.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, N,{isLoading:a,onClick:C,children:"Salvar Whatsapp"})]}),t.whatsappNumber&&t.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"warning",action:_jsxruntime.jsx.call(void 0, N,{isLoading:h,onClick:S,children:"Enviar n\xFAmero de verifica\xE7\xE3o"}),children:"O seu n\xFAmero de whatsapp ainda n\xE3o est\xE1 validado"}),_jsxruntime.jsx.call(void 0, ha,{open:g,onClose:D=>$(this,null,function*(){k(!1)}),payload:t,credentialsConfig:r,onCodigoVerificado:D=>{p(D),k(!1)}})]})}function lu(e){let[t,r]=_react.useState.call(void 0, 0),{user:o,setUser:n,credentialsConfig:i}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,direction:"row",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"200px"},children:_jsxruntime.jsxs.call(void 0, _material.Tabs,{orientation:"vertical",value:t,onChange:(a,l)=>{r(l)},sx:{"& .MuiButtonBase-root":{alignItems:"flex-start"}},children:[_jsxruntime.jsx.call(void 0, _material.Tab,{label:"Minha Conta",value:0}),_jsxruntime.jsx.call(void 0, _material.Tab,{label:"Login e Seguran\xE7a",value:1})]})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexGrow:1},children:[_jsxruntime.jsx.call(void 0, en,{value:t,index:0,children:_jsxruntime.jsx.call(void 0, da,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, en,{value:t,index:1,children:_jsxruntime.jsx.call(void 0, va,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}function wa(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},e))}function ka({children:e}){return _jsxruntime.jsx.call(void 0, oi.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:t=>t.zIndex.drawer+1,borderBottom:t=>`1px solid ${t.palette.grey[300]}`},children:_jsxruntime.jsx.call(void 0, _material.Toolbar,{children:_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",children:e})})})})}function Sa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M21 5v14"})]})}))}function Ta(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"}),_jsxruntime.jsx.call(void 0, "path",{d:"m4.9 4.9 14.2 14.2"})]})}))}function Ia(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 12h4"})]})}))}function Aa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function Fa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "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"})})}))}function Ra(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"9",cy:"7",r:"4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}))}function Oa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17-5-5 5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m18 17-5-5 5-5"})]})}))}function _a(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"3"})]})}))}function La(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})}))}function $a(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 9H8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 13H8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 17H8"})]})}))}function Ar(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function za(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21H7"}),_jsxruntime.jsx.call(void 0, "path",{d:"m5 11 9 9"})]})}))}var Qy=e=>({transition:e.transitions.create(["transform"],{duration:500})}),Xy=_styles.styled.call(void 0, Ar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>c(c(c({},Qy(e)),t&&{transform:"rotate(-180deg)"}),!t&&{transform:"rotate(0)"}));function Va(e){let{open:t}=e;return _jsxruntime.jsx.call(void 0, Xy,{fontSize:"small",open:t})}function ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 6h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 12h10"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 18h4"})]})}))}function Wa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 3 1 11h-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 4h8"})]})}))}function Ga(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 17h.01"})]})}))}function Ha(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3v5h5"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v5l4 2"})]})}))}function Ua(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 7v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 7v9"})]})}))}function qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),_jsxruntime.jsx.call(void 0, "polyline",{points:"16 17 21 12 16 7"}),_jsxruntime.jsx.call(void 0, "line",{x1:"21",x2:"9",y1:"12",y2:"12"})]})}))}function Ka(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"3"})]})}))}function Za(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 5.764v15"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9 3.236v15"})]})}))}function Qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"12",y2:"12"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"6",y2:"6"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})}))}function Xa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 3 1 11h-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 4h8"})]})}))}function es(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m6 17 5-5-5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m13 17 5-5-5-5"})]})}))}function rs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}))}function ns(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"11",cy:"11",r:"8"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 21-4.3-4.3"})]})}))}function is(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2 7h20"}),_jsxruntime.jsx.call(void 0, "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"})]})}))}function as(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 2h1a4 4 0 0 1 4 4v1"})]})}))}function ss(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"9",cy:"7",r:"4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}))}function cs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"m10 15 5-3-5-3z"})]})}))}function ps(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M12 17V3"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 11 6 6 6-6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M19 21H5"})]})}))}function us(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"22",y2:"22"}),_jsxruntime.jsx.call(void 0, "line",{x1:"6",x2:"6",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"10",x2:"10",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"14",x2:"14",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"18",x2:"18",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "polygon",{points:"12 2 20 7 4 7"})]})}))}function fs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "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"})]})}))}function ds(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "circle",{cx:"16",cy:"16",r:"6"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14v2l1 1"})]})}))}function ms(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 6h6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M18 3v6"})]})}))}function hs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"9",y2:"9"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"15",y2:"15"}),_jsxruntime.jsx.call(void 0, "line",{x1:"9",x2:"9",y1:"9",y2:"21"}),_jsxruntime.jsx.call(void 0, "line",{x1:"15",x2:"15",y1:"9",y2:"21"})]})}))}function ys(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m15 18-6-6 6-6"})})}))}function vs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}))}function bs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M8 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 2v4"}),_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 10h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 18h.01"})]})}))}function Cs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})}))}var Xx={Circle:Fa,Dashboard:La,Expandable:Va,Down:Ar,Negociacao:Xa,Cadastro:Ia,Clientes:Ra,Filter:ja,Search:ns,ChevronDown:Aa,Kanban:Ua,Erease:za,BarCode:Sa,TextCursor:as,OpenPanel:es,ClosePanel:Oa,Menu:Qa,Configs:_a,Users:ss,Password:rs,Logout:qa,History:Ha,Help:Ga,Video:cs,Docs:$a,Block:Ta,Maps:Za,MapPin:Ka,HandShake:Wa,Store:is,Download:ps,ContaBancaria:us,GrupoLancamento:fs,HistoricoPadrao:ds,Imovel:ms,Lancamento:hs,ChevronLeft:ys,ChevronRight:vs,Calendar:bs,Save:Cs},xe= exports.Icon =Xx;function ws(e){let t=w(e,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,d(c({},t),{children:_jsxruntime.jsx.call(void 0, xe.Menu,{})}))}var e4={Root:ka,Content:wa,ToggleMenu:ws},t4= exports.Header =e4;var u4=_material.styled.call(void 0, _material.ListItemButton,{})(({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 ks({label:e,icon:t,visible:r=!0,children:o,selected:n=!1,onClick:i,link:a}){if(!r)return null;let[l,s]=_react.useState.call(void 0, !1),p=!!o;function u(){if(p){s(m=>!m);return}i&&a&&i(a)}function f(m){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):m||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, u4,{selected:n,disableGutters:!0,onClick:m=>{m.stopPropagation(),u()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:f(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e}),p&&_jsxruntime.jsx.call(void 0, xe.Expandable,{open:l})]})}),p&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:l,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, _material.List,{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})})]})}var w4=_material.styled.call(void 0, _material.ListItemButton,{})(({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 uu(e,t){return oi.default.Children.map(e,r=>{var n;if(!oi.default.isValidElement(r))return r;let o=(n=r.props)!=null&&n.children?uu(r.props.children,t):null;return oi.default.cloneElement(r,{open:t,children:o})})}function Ps(e){let{icon:t,label:r,link:o,id:n,selected:i=!1,children:a,onClick:l}=e,[s,p]=_react.useState.call(void 0, null);function u(){l&&o&&l(o)}function f(g,k){p({element:g.currentTarget,id:k})}function m(){p(null)}let h=uu(a,!0);function x(g){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):g||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, w4,{selected:i,onMouseEnter:g=>{o||f(g,n)},onMouseLeave:()=>{o||m()},disableGutters:!0,onClick:g=>{g.stopPropagation(),u()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:x(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:_lodash2.default.truncate(r,{length:12})}),(s==null?void 0:s.id)===n&&_jsxruntime.jsx.call(void 0, _material.Popper,{sx:{zIndex:999999},anchorEl:s==null?void 0:s.element,open:!!(s!=null&&s.element),placement:"right-start",children:_jsxruntime.jsx.call(void 0, wt,{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:g=>{var k;return(k=g.mixins.menu)==null?void 0:k.width}},children:h})})]})})}function Ts(e){let n=e,{open:t,isFirstLevel:r=!1}=n,o=w(n,["open","isFirstLevel"]);return t?_jsxruntime.jsx.call(void 0, ks,c({},o)):_jsxruntime.jsx.call(void 0, Ps,c({},o))}var du=e=>{var t,r;return{width:((r=(t=e==null?void 0:e.mixins)==null?void 0:t.menu)==null?void 0:r.width)||64,background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}},mu=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)`}}),T4=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{var r,o;return c(c({width:((o=(r=e==null?void 0:e.mixins)==null?void 0:r.menu)==null?void 0:o.width)||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},t&&d(c({},du(e)),{"& .MuiDrawer-paper":du(e)})),!t&&d(c({},mu(e)),{"& .MuiDrawer-paper":mu(e)}))}),I4=_styles.styled.call(void 0, "div")(({theme:e})=>e.mixins.toolbar);function yu(e,t,r,o){return oi.default.Children.map(e,n=>{var f,m;if(!oi.default.isValidElement(n))return n;let i=((f=n.props.link)==null?void 0:f.split("/").filter(Boolean))||[],a=n.props.link||"",p="/"+((t==null?void 0:t.split("/").filter(Boolean))||[]).slice(0,i.length).join("/"),u=(m=n.props)!=null&&m.children?yu(n.props.children,t,r,o):null;return oi.default.cloneElement(n,{open:r,selected:p===a,onClick:h=>{o&&o(h)},children:u})})}function Es(e){let{open:t,toggleMenu:r,children:o,onClickItem:n}=e,a=new URL(window.location.href).pathname,l=yu(o,a,t,n);return _jsxruntime.jsxs.call(void 0, T4,{variant:"permanent",open:t,onClose:r,children:[_jsxruntime.jsx.call(void 0, I4,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:l})]})}function A4(e){return e.map(t=>t.visible?_jsxruntime.jsx.call(void 0, xu.Item,{link:t.link,id:t.id,label:t.label,icon:t.icon,children:t.items&&A4(t.items)},t.id):null)}var xu={Root:Es,Item:Ts},M4= exports.Menu =xu;function vu(e){let{links:t}=e;function r(o,n){location.pathname}return _jsxruntime.jsx.call(void 0, _material.Breadcrumbs,{sx:{height:"30px",display:"flex",textWrap:"nowrap"},children:t.map((o,n)=>t.length===1||t.length===n+1?_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{fontSize:"10pt",fontWeight:"bolder"},variant:"subtitle1",color:"black",children:o.label},o.link):_jsxruntime.jsx.call(void 0, _material.Button,{variant:"text",children:o.label},o.link))})}function Ms(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Stack,{pl:1,pr:1,pt:.5,pb:.5,direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",spacing:1,children:t})}var L4={Root:Ms},$4= exports.ContentTitle =L4;var N4=process.env.NODE_ENV==="production",Fs="Invariant failed";function Rs(e,t){if(!e){if(N4)throw new Error(Fs);var r=typeof t=="function"?t():t,o=r?"".concat(Fs,": ").concat(r):Fs;throw new Error(o)}}var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);var xn=new Uint8Array(256),yn=xn.length;function Ds(){return yn>xn.length-16&&(_crypto2.default.randomFillSync(xn),yn=0),xn.slice(yn,yn+=16)}var se=[];for(let e=0;e<256;++e)se.push((e+256).toString(16).slice(1));function bu(e,t=0){return se[e[t+0]]+se[e[t+1]]+se[e[t+2]]+se[e[t+3]]+"-"+se[e[t+4]]+se[e[t+5]]+"-"+se[e[t+6]]+se[e[t+7]]+"-"+se[e[t+8]]+se[e[t+9]]+"-"+se[e[t+10]]+se[e[t+11]]+se[e[t+12]]+se[e[t+13]]+se[e[t+14]]+se[e[t+15]]}var Os={randomUUID:_crypto2.default.randomUUID};function j4(e,t,r){if(Os.randomUUID&&!t&&!e)return Os.randomUUID();e=e||{};let o=e.random||(e.rng||Ds)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){r=r||0;for(let n=0;n<16;++n)t[r+n]=o[n];return t}return bu(o)}var Bs=j4;function H4(e,t){var r,o;switch(t.type){case"loadFiltersFromStorage":return d(c({},e),{filterValues:(r=t==null?void 0:t.storageValues)==null?void 0:r.filterValues,appliedValues:(o=t==null?void 0:t.storageValues)==null?void 0:o.appliedValues});case"updateFilterValues":return d(c({},e),{filterValues:t.filterValues});case"updateFilterValue":return d(c({},e),{filterValues:d(c({},e.filterValues),{[t.payload.name]:t.payload.value})});case"updateAppliedValues":let n=e.filterValues,i=[];if(n&&Object.entries(n).length>0){let[a]=Object.keys(n);i=[{[a]:n[a]}]}return t!=null&&t.storagePath&&localStorage.setItem(t.storagePath,JSON.stringify({appliedValues:n,filterValuesAsArray:i,filterValues:e.filterValues})),d(c({},e),{appliedValues:n,filterValuesAsArray:i,isOpen:!1,searchId:Bs()});case"updateIsOpen":return d(c({},e),{isOpen:t.isOpen,target:t.target});case"updateContainer":return d(c({},e),{container:t.container});case"toggleIsOpen":return d(c({},e),{isOpen:!e.isOpen});case"deleteAppliedValue":return delete e.appliedValues[t.filterName],c({},e);case"deleteAllAppliedValues":return e.appliedValues={},e.filterValues=t.filterValues,t.storagePath&&localStorage.removeItem(t.storagePath),c({},e)}}var Pu=oi.default.createContext({}),Tu=oi.default.createContext({});function Iu(e){let{children:t,filterValues:r={},storagePath:o}=e,[n,i]=_react.useReducer.call(void 0, H4,{filterValues:{}});_react.useEffect.call(void 0, ()=>{i({type:"updateFilterValues",filterValues:r}),i({type:"updateAppliedValues",storagePath:o})},[r]),_react.useEffect.call(void 0, ()=>{if(o){let l=localStorage.getItem(o);if(l&&l!=="undefined"){let s=JSON.parse(l);i({type:"loadFiltersFromStorage",storageValues:s})}}},[]);let a=_react.useMemo.call(void 0, ()=>{function l(v){i({type:"updateIsOpen",isOpen:!0,target:(v==null?void 0:v.target)||void 0})}function s(){i({type:"updateIsOpen",isOpen:!1,target:void 0})}function p(){i({type:"toggleIsOpen"})}function u(v){let P=v.target.type,C=v.target.name,S;switch(P){case"text":S=v.target.value;break;case"checkbox":S=v.target.checked;break;default:S=v.target.value}i({type:"updateFilterValue",payload:{name:C,value:S}})}function f(v,P){i({type:"updateFilterValue",payload:{name:v,value:P}})}function m(v){i({type:"updateFilterValues",filterValues:v})}function h(){i({type:"updateAppliedValues",storagePath:o})}function x(v){i({type:"deleteAppliedValue",filterName:v})}function g(){i({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),i({type:"updateAppliedValues",storagePath:o})}function k(v){i({type:"updateContainer",container:v})}return{setContainer:k,openFilter:l,closeFilter:s,onChangeFilterValue:u,changeFilterValue:f,changeFilterValues:m,applyFilterValues:h,deleteFilterValue:x,deleteAllFilterValues:g,toggleFilter:p}},[r]);return _jsxruntime.jsx.call(void 0, Tu.Provider,{value:a,children:_jsxruntime.jsx.call(void 0, Pu.Provider,{value:n,children:t})})}function Or(){let e=_react.useContext.call(void 0, Pu);return Rs(e,"cannot find FilterDataContext provider"),e}function ke(){let e=_react.useContext.call(void 0, Tu);return Rs(e,"cannot find FilterApiContextContext provider"),e}function _s(){let{openFilter:e}=ke();return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:t=>e(t),children:_jsxruntime.jsx.call(void 0, xe.Filter,{})})}function $s(e){let{children:t}=e,{isOpen:r,container:o}=Or(),{closeFilter:n}=ke(),i=(o==null?void 0:o.getBoundingClientRect().width)||300;return _jsxruntime.jsx.call(void 0, _material.Popover,{elevation:0,open:r,onClose:n,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{"& .MuiPopover-paper":{width:`${i}px`,border:a=>`1px solid ${a.palette.border}`,borderRadius:"4px",pt:2,pl:1,pr:1,pb:1}},children:_jsxruntime.jsx.call(void 0, _material.Box,{mt:1,mb:1,children:_jsxruntime.jsx.call(void 0, _material.Stack,{spacing:1,children:t})})})}function Ns({children:e}){let t=_react.useRef.call(void 0, null),{setContainer:r}=ke();return _react.useEffect.call(void 0, ()=>{let o=()=>{t.current&&r(t.current)};return o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[]),_jsxruntime.jsxs.call(void 0, _material.Stack,{ref:t,direction:"row",alignContent:"center",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.95rem"}}),_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center",children:e})]})}function zs(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{border:r=>`1px solid ${r.palette.border}`,borderRadius:"90px",flexGrow:1,pl:1,pr:1},children:t})}function Vs(e){let i=e,{onChange:t}=i,r=w(i,["onChange"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let l=a.target.value;o(l)}return _jsxruntime.jsx.call(void 0, _material.InputBase,c({onChange:n},r))}function Ws(){let{applyFilterValues:e}=ke();return _jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{e()},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.855rem"}})," ",_jsxruntime.jsx.call(void 0, "span",{children:"Pesquisar"})]})})}function Gs(){let{deleteAllFilterValues:e}=ke();return _jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{e&&e()},children:"Resetar"})}function Hs({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{pt:2,direction:"row",spacing:1,justifyContent:"flex-end",children:e})}function Ys({children:e}){let{appliedValues:t}=Or(),{applyFilterValues:r,deleteFilterValue:o}=ke(),{isOpen:n,open:i,close:a,anchorEl:l,data:s}=_hooks.usePopover.call(void 0, ),p=oi.default.Children.map(e,u=>!oi.default.isValidElement(u)||!(t&&u.props.name in t)?null:oi.default.cloneElement(u,{onDelete:u.props.disabledDelete?void 0:m=>{o&&o(u.props.name||""),a()},onClick:m=>{i(m,{target:m.currentTarget,element:u.props.children,name:u.props.name,disabledDelete:u.props.disabledDelete||!1})}}));return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:1,children:[p,_jsxruntime.jsxs.call(void 0, _material.Popover,{open:!!n||!1,onClose:()=>a(),anchorEl:l,elevation:0,sx:{"& .MuiPopover-paper":{minWidth:"300px",border:u=>`1px solid ${u.palette.border}`,borderRadius:"4px",pt:2,pl:1,pr:1,pb:2}},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[s==null?void 0:s.element,_jsxruntime.jsxs.call(void 0, _material.Stack,{pt:2,direction:"row",spacing:.5,justifyContent:"flex-end",children:[!(s!=null&&s.disabledDelete)&&_jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{o&&o((s==null?void 0:s.name)||""),a()},children:"Apagar"}),_jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{a(),r()},children:"Aplicar"})]})]})]})}function Ks(e){let n=e,{children:t,disabledDelete:r=!1}=n,o=w(n,["children","disabledDelete"]);return _jsxruntime.jsx.call(void 0, _material.Chip,c({},o))}var h3={Root:zs,SearchTextField:Vs,Container:Ns,AdvancedContainer:$s,AdvancedActionsContainer:Hs,AdvancedButton:_s,Provider:Iu,ApplyButton:Ws,ResetButton:Gs,Chips:Ys,Chip:Ks};var g3=h3;var _xdatagrid = require('@mui/x-data-grid');function Zs(r){var o=r,{onClick:e}=o,t=w(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{}),label:"Transport",color:"primary",onClick:()=>e&&e("transport")},t))}var Bu=_react.createContext.call(void 0, {});function Xs({children:e}){let[t,r]=_react.useState.call(void 0, []),[o,n]=_react.useState.call(void 0, !1),[i,a]=_react.useState.call(void 0, !1),l=_xdatagrid.useGridApiRef.call(void 0, );function s(){r([]),n(!0)}return _jsxruntime.jsx.call(void 0, Bu.Provider,{value:{apiRef:l,rowsSelectedId:t,clearCallback:o,breakpoint:i,setClearCallback:n,setBreakpoint:a,setRowsSelectedId:r,clearRowsSelectedId:s},children:e})}function ze(){return _react.useContext.call(void 0, Bu)}function Js(e){let{countTitle:t,gender:r}=e,{rowsSelectedId:o}=ze(),n=o==null?void 0:o.length,i=_react.useMemo.call(void 0, ()=>{if(!t)return"";let a=r==="feminino"?"selecionada":"selecionado",l=r==="feminino"?"selecionadas":"selecionados",s=r==="feminino"?"Nenhuma":"Nenhum";return n===1?`${t} ${a}`:n&&n>1?`${t.split(" ").map(p=>`${p}s`).join(" ")} ${l}`:`${s} ${t} ${a}`},[n]);return _jsxruntime.jsx.call(void 0, _material.Stack,{children:_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:[n&&n>0?n:""," ",i]})})}function el(r){var o=r,{onClick:e}=o,t=w(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{}),label:"Delete",color:"primary",onClick:()=>{e&&e("delete")}},t))}function _r(e){let l=e,{isLoading:t,startIcon:r,children:o,title:n}=l,i=w(l,["isLoading","startIcon","children","title"]),{breakpoint:a}=ze();return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:a?_jsxruntime.jsx.call(void 0, _material.Tooltip,{title:o,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({},i),{color:"primary",disabled:t?!0:i.disabled,children:[r,t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"25%",bottom:"25%",left:"25%",right:"25%",transform:"translate(-50%, -50%)"}})]}))}):_jsxruntime.jsx.call(void 0, _material.Button,d(c({startIcon:r,disabled:t?!0:i.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"}},i),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{transition:"opacity 0.2s ease, width 0.2s ease",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"22%",left:"44%",transform:"translate(-50%, -50%)"}}),o]})}))})}var L3=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function tl(){let{apiRef:e}=ze(),t=r=>{e!=null&&e.current&&e.current.exportDataAsCsv(r)};return _jsxruntime.jsx.call(void 0, _r,{startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.FileDownload,{}),onClick:()=>t({getRowsToExport:L3}),children:"Exportar CSV"})}function rl(r){var o=r,{onClick:e}=o,t=w(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{}),label:"Edit",color:"primary",onClick:()=>e&&e("edit")},t))}function ol(e){let{children:t,onClick:r}=e;return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_react.Children.map(t,o=>{if(_react.isValidElement.call(void 0, o))return _react.cloneElement.call(void 0, o,{onClick:r})})})}function nl(e){let n=e,{event:t,onClick:r}=n,o=w(n,["event","onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({color:"primary",onClick:()=>{r&&r(t)}},o))}function il(e){let{onChangePageSize:t,onChangePage:r,pagination:o,rowsPerPageOptions:n=[15,50,100,200]}=e,{page:i,pageSize:a=15,totalRecords:l}=o||{},s=_react.useMemo.call(void 0, ()=>o!=null&&o.lastPage?o.lastPage:(l||0)<a?1:Math.max(Math.ceil((l||0)/a)),[l,a]),p=_react.useMemo.call(void 0, ()=>{if((l||0)<a)return`Exibindo ${_hooks.pluralizar.call(void 0, l||0,"registro","registros",!0)}`;let f=a;if(i===s){let m=(l||0)%a;f=m===0?a:m}return`Exibindo ${_hooks.pluralizar.call(void 0, f||0,"registro","registros",!0)} de ${l}`},[o,s]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{width:"100%",direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:p}),!0&&_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"78px",fontSize:"8pt"},size:"small",value:a||0,select:!0,onChange:f=>{t&&t(parseInt(f.target.value))},children:n.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f,children:f},f))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:s||0,showFirstButton:!0,showLastButton:!0,onChange:(f,m)=>{r&&r(m)},page:i||0,color:"primary"})]})]})}function al({children:e,breakpoints:t}){let{setBreakpoint:r}=ze(),o=_material.useTheme.call(void 0, ),n=_material.useMediaQuery.call(void 0, o.breakpoints.down(t||"md"));return _react.useEffect.call(void 0, ()=>{r(n)},[n]),_jsxruntime.jsx.call(void 0, _material.Stack,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:1,marginLeft:"auto",flexGrow:1,children:e})}function sl({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{component:_material.Paper,elevation:0,gap:1.5,flexDirection:"row",justifyContent:"space-between",alignItems:"center",p:1,borderRadius:"8px 8px 0 0",sx:{width:"100%"},children:e})}function ll(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1.5},e))}function cl(e){return _jsxruntime.jsx.call(void 0, _material.TableFooter,d(c({},e),{sx:{height:"54px",paddingX:"12px",gap:"12px",display:"flex",alignItems:"center",backgroundColor:"white",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",borderTop:"1px solid #edf2f9"}}))}var _locales = require('@mui/x-data-grid/locales');var Hu="./empty-data-NII6PKG2.svg";function ul(){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:Hu,alt:"Imagem de notifica\xE7\xE3o",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Nenhum registro encontrado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",whiteSpace:"normal",children:"Tente outra pesquisa ou adicione um novo registro."})]})]})}var Yu="./error-GAPOPG36.svg";function dl({errorMessage:e}){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:Yu,alt:"Imagem de erro",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{gap:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Ops! Algo deu errado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",children:e})]})]})}var y6=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function ml(e){let D=e,{error:t,isLoading:r,isFetching:o,data:n,columns:i,controlledRowsSelectedId:a,onClearRowsSelectedId:l,onRowSelectionChange:s,onCellKeyDown:p,onRowDoubleClick:u,stackProps:f}=D,m=w(D,["error","isLoading","isFetching","data","columns","controlledRowsSelectedId","onClearRowsSelectedId","onRowSelectionChange","onCellKeyDown","onRowDoubleClick","stackProps"]),{rowsSelectedId:h,setRowsSelectedId:x,clearCallback:g,setClearCallback:k,apiRef:v}=ze(),P=_react.useMemo.call(void 0, ()=>F=>F.map(T=>T.headerName==="A\xE7\xF5es"?d(c({},T),{minWidth:T.minWidth||80,maxWidth:T.maxWidth||T.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}):d(c({},T),{flex:T.flex||1,minWidth:T.minWidth||100,headerClassName:T!=null&&T.enableStickyColumns?"sticky-header":"",cellClassName:T!=null&&T.enableStickyColumns?"sticky-cell":""})),[i]);_react.useEffect.call(void 0, ()=>{a&&x(a)},[a]),_react.useEffect.call(void 0, ()=>{g&&(l&&l([]),k(!1))},[g]);function C(F,T,te){switch(T.ctrlKey&&T.code==="KeyE"?"ctrl+e":T.code){case"Enter":T.preventDefault(),p&&p("edit",F.id);break;case"F3":T.preventDefault(),p&&p("edit",F.id);break;case"Delete":T.preventDefault(),p&&p("delete",F.id);break;case"ctrl+e":T.preventDefault(),(R=>{v!=null&&v.current&&v.current.exportDataAsCsv(R)})({getRowsToExport:y6});break;default:break}}function S(F,T,te){u&&u("edit",F.id)}return _jsxruntime.jsxs.call(void 0, _material.Stack,d(c({height:"100%",minHeight:"500px",position:"relative"},f),{children:[!r&&o&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{sx:{position:"absolute",top:0,right:0,left:0,zIndex:999,height:"3px"}}),_jsxruntime.jsx.call(void 0, _xdatagrid.DataGrid,c({apiRef:v,rows:n,columns:P(i),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:S,onCellKeyDown:C,disableRowSelectionOnClick:!0,rowSelectionModel:h,onRowSelectionModelChange:(F,T)=>{s&&s(F,T),!a&&x(F)},slots:{booleanCellFalseIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"error",sx:{fontSize:"10pt"}}),booleanCellTrueIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"success",sx:{fontSize:"10pt"}}),noRowsOverlay:()=>!r&&t?_jsxruntime.jsx.call(void 0, dl,{errorMessage:t}):_jsxruntime.jsx.call(void 0, ul,{})},slotProps:{loadingOverlay:{variant:"skeleton",noRowsVariant:"skeleton"}},disableColumnFilter:!0,localeText:_locales.ptBR.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))]}))}function hl({children:e,titleDivider:t=!1}){let r=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",fontSize:"14px",whiteSpace:"nowrap",sx:{borderRight:t?`solid 1px ${r.palette.grey[300]}`:"none",paddingRight:1.5},children:e})}function gl(o){var n=o,{children:e,height:t}=n,r=w(n,["children","height"]);let i=_react.useRef.call(void 0, null),[a,l]=_react.useState.call(void 0, 500);return _react.useEffect.call(void 0, ()=>{let s=()=>{let p=i.current;if(!p)return;let u=p.getBoundingClientRect().top;l(window.innerHeight-u)};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[]),_jsxruntime.jsx.call(void 0, _material.Stack,d(c({ref:i,sx:c({backgroundColor:"#f4f6fa",border:"1px solid #edf2f9",borderRadius:2,height:t||`calc(${a}px - 16px)`},r.sx)},r),{children:_jsxruntime.jsx.call(void 0, Xs,{children:e})}))}var T6={CellActionTransport:Zs,SelectionCounter:Js,CellActionDelete:el,ExportCsvButton:tl,CellActionEdit:rl,CellActions:ol,CellAction:nl,Pagination:il,Actions:al,Toolbar:sl,Content:ll,Button:_r,Footer:cl,Table:ml,Title:hl,Root:gl},I6= exports.DataTableV2 =T6;exports.AlterarSenha = Vt; exports.Avatar = Jp; exports.Breadcrumbs = vu; exports.Button = N; exports.ButtonContainer = Se; exports.Checkbox = Cl; exports.ColorsGrid = kl; exports.Content = Xp; exports.ContentTitle = $4; exports.CurrencyCellStyle = nb; exports.CurrencyTextField = _f; exports.DataTable = wd; exports.DataTableOptions = Fn; exports.DataTableV2 = I6; exports.DeleteContainer = An; exports.Dialog = je; exports.DialogV2 = j; exports.DrawerMenu = Qp; exports.Editable = Fo; exports.Filter = g3; exports.FilterContainer = Ln; exports.FilterControl = jr; exports.Flag = Gl; exports.FormContainer = zn; exports.Header = t4; exports.Icon = xe; exports.LabelValue = Hc; exports.Menu = M4; exports.MioAuth = Up; exports.OptionStyles = ob; exports.PageTitle = Qc; exports.PasswordTextField = mt; exports.Profile = lu; exports.SearchTextField = Dt; exports.Surface = wt; exports.Tooltip = kt; exports.Transporter = Mi; exports.renderMenuItems = A4; exports.theme = H; exports.useFilter = Or; exports.useFilterApi = ke;
10
+ `+(l!==a?`result of cast: ${l}`:""))}return i}_cast(t,r){let o=t===void 0?t:this.transforms.reduce((n,i)=>i.call(this,n,t,this),t);return o===void 0&&(o=this.getDefault(r)),o}_validate(t,r={},o,n){let{path:i,originalValue:a=t,strict:l=this.spec.strict}=r,s=t;l||(s=this._cast(s,Object.assign({assert:!1},r)));let p=[];for(let u of Object.values(this.internalTests))u&&p.push(u);this.runTests({path:i,value:s,originalValue:a,options:r,tests:p},o,u=>{if(u.length)return n(u,s);this.runTests({path:i,value:s,originalValue:a,options:r,tests:this.tests},o,n)})}runTests(t,r,o){let n=!1,{tests:i,value:a,originalValue:l,path:s,options:p}=t,u=g=>{n||(n=!0,r(g,a))},f=g=>{n||(n=!0,o(g,a))},m=i.length,h=[];if(!m)return f([]);let x={value:a,originalValue:l,path:s,options:p,schema:this};for(let g=0;g<i.length;g++){let k=i[g];k(x,u,function(P){P&&(Array.isArray(P)?h.push(...P):h.push(P)),--m<=0&&f(h)})}}asNestedTest({key:t,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let l=t!=null?t:r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");let s=typeof l=="number",p=o[l],u=Object.assign({},a,{strict:!0,parent:o,value:p,originalValue:i[l],key:void 0,[s?"index":"key"]:l,path:s||l.includes(".")?`${n||""}[${s?l:`"${l}"`}]`:(n?`${n}.`:"")+t});return(f,m,h)=>this.resolve(u)._validate(p,u,m,h)}validate(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,l)=>n._validate(t,r,(s,p)=>{ue.isError(s)&&(s.value=p),l(s)},(s,p)=>{s.length?l(new ue(s,p,void 0,void 0,i)):a(p)}))}validateSync(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(t,Object.assign({},r,{sync:!0}),(l,s)=>{throw ue.isError(l)&&(l.value=s),l},(l,s)=>{if(l.length)throw new ue(l,t,void 0,void 0,a);i=s}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,o=>{if(ue.isError(o))return!1;throw o})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(o){if(ue.isError(o))return!1;throw o}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Bt(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=Ot({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=Ot({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=Ne.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ne.notNull){return this.nullability(!1,t)}required(t=Ne.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=Ne.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=Ot(r),i=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(a=>!(a.OPTIONS.name===r.name&&(i||a.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=Cp(t).map(i=>new Ye(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new _t(n,r):_t.fromOptions(n,r)),o}typeError(t){let r=this.clone();return r.internalTests.typeError=Ot({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=Ne.oneOf){let o=this.clone();return t.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=Ot({message:r,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),o}notOneOf(t,r=Ne.notOneOf){let o=this.clone();return t.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=Ot({message:r,name:"notOneOf",test(n){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!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:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,p,u)=>u.findIndex(f=>f.name===s.name)===p)}}};ae.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])ae.prototype[`${e}At`]=function(t,r,o={}){let{parent:n,parentPath:i,schema:a}=ph(this,t,r,o.context);return a[e](n&&n[i],Object.assign({},o,{parent:n,path:t}))};for(let e of["equals","is"])ae.prototype[e]=ae.prototype.oneOf;for(let e of["not","nope"])ae.prototype[e]=ae.prototype.notOneOf;var uh=()=>!0;function fh(e){return new No(e)}var No=class extends ae{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:uh},t))}};fh.prototype=No.prototype;function dh(){return new zo}var zo=class extends ae{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Vi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Fe(r)||r===!0}})}isFalse(t=Vi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Fe(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)}};dh.prototype=zo.prototype;var mh=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function hh(e){let t=ji(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 ji(e){var t,r;let o=mh.exec(e);return o?{year:Ue(o[1]),month:Ue(o[2],1)-1,day:Ue(o[3],1),hour:Ue(o[4]),minute:Ue(o[5]),second:Ue(o[6]),millisecond:o[7]?Ue(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:Ue(o[10]),minuteOffset:Ue(o[11])}:null}function Ue(e,t=0){return Number(e)||t}var gh=/^[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])?)*$/,yh=/^((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,xh=/^(?:[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,vh="^\\d{4}-\\d{2}-\\d{2}",bh="\\d{2}:\\d{2}:\\d{2}",Ch="(([+-]\\d{2}(:?\\d{2})?)|Z)",wh=new RegExp(`${vh}T${bh}(\\.\\d+)?${Ch}$`),kh=e=>Fe(e)||e===e.trim(),Sh={}.toString();function fe(){return new Vo}var Vo=class extends ae{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;let n=t!=null&&t.toString?t.toString():t;return n===Sh?t:n})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||Ne.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=ge.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=ge.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=ge.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,i;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:i}=r:n=r),this.test({name:i||"matches",message:n||ge.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&o||a.search(t)!==-1})}email(t=ge.email){return this.matches(gh,{name:"email",message:t,excludeEmptyString:!0})}url(t=ge.url){return this.matches(yh,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ge.uuid){return this.matches(xh,{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(wh,{name:"datetime",message:r||ge.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||ge.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:i=>{if(!i||o)return!0;let a=ji(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||ge.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;let a=ji(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ge.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:kh})}lowercase(t=ge.lowercase){return this.transform(r=>Fe(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Fe(r)||r===r.toLowerCase()})}uppercase(t=ge.uppercase){return this.transform(r=>Fe(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Fe(r)||r===r.toUpperCase()})}};fe.prototype=Vo.prototype;var Ph=e=>e!=+e;function Th(){return new jo}var jo=class extends ae{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Ph(t)}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce)return t;let n=t;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return o.isType(n)||n===null?n:parseFloat(n)})})}min(t,r=nt.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=nt.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=nt.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=nt.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=nt.positive){return this.moreThan(0,t)}negative(t=nt.negative){return this.lessThan(0,t)}integer(t=nt.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>Fe(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=>Fe(n)?n:Math[t](n))}};Th.prototype=jo.prototype;var Tp=new Date(""),Ih=e=>Object.prototype.toString.call(e)==="[object Date]";function Ip(){return new dt}var dt=class extends ae{constructor(){super({type:"date",check(t){return Ih(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=hh(t),isNaN(t)?dt.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=zi.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=zi.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)}})}};dt.INVALID_DATE=Tp;Ip.prototype=dt.prototype;Ip.INVALID_DATE=Tp;function Eh(e,t=[]){let r=[],o=new Set,n=new Set(t.map(([a,l])=>`${a}-${l}`));function i(a,l){let s=(0,Ae.split)(a)[0];o.add(s),n.has(`${l}-${s}`)||r.push([l,s])}for(let a of Object.keys(e)){let l=e[a];o.add(a),Ye.isRef(l)&&l.isSibling?i(l.path,a):Uo(l)&&"deps"in l&&l.deps.forEach(s=>i(s,a))}return bp.default.array(Array.from(o),r).reverse()}function yp(e,t){let r=1/0;return e.some((o,n)=>{var i;if((i=t.path)!=null&&i.includes(o))return r=n,!0}),r}function Ep(e){return(t,r)=>yp(e,t)-yp(e,r)}var Ap=(e,t,r)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch(n){}return r.isType(o)?o:e};function Lo(e){if("fields"in e){let t={};for(let[r,o]of Object.entries(e.fields))t[r]=Lo(o);return e.setFields(t)}if(e.type==="array"){let t=e.optional();return t.innerType&&(t.innerType=Lo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Lo)}):"optional"in e?e.optional():e}var Ah=(e,t)=>{let r=[...(0,Ae.normalizePath)(t)];if(r.length===1)return r[0]in e;let o=r.pop(),n=(0,Ae.getter)((0,Ae.join)(r),!0)(e);return!!(n&&o in n)},xp=e=>Object.prototype.toString.call(e)==="[object Object]";function vp(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(o=>r.indexOf(o)===-1)}var Mh=Ep([]);function we(e){return new Wo(e)}var Wo=class extends ae{constructor(t){super({type:"object",check(r){return xp(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Mh,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 i=this.fields,a=(o=r.stripUnknown)!=null?o:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),s={},p=Object.assign({},r,{parent:s,__validating:r.__validating||!1}),u=!1;for(let f of l){let m=i[f],h=f in n;if(m){let x,g=n[f];p.path=(r.path?`${r.path}.`:"")+f,m=m.resolve({value:g,context:r.context,parent:s});let k=m instanceof ae?m.spec:void 0,v=k==null?void 0:k.strict;if(k!=null&&k.strip){u=u||f in n;continue}x=!r.__validating||!v?m.cast(n[f],p):n[f],x!==void 0&&(s[f]=x)}else h&&!a&&(s[f]=n[f]);(h!==f in s||s[f]!==n[f])&&(u=!0)}return u?s:n}_validate(t,r={},o,n){let{from:i=[],originalValue:a=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(t,r,o,(s,p)=>{if(!l||!xp(p)){n(s,p);return}a=a||p;let u=[];for(let f of this._nodes){let m=this.fields[f];!m||Ye.isRef(m)||u.push(m.asNestedTest({options:r,key:f,parent:p,parentPath:r.path,originalParent:a}))}this.runTests({tests:u,value:p,originalValue:a,options:r},o,f=>{n(f.sort(this._sortErrors).concat(s),p)})})}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,i]of Object.entries(this.fields)){let a=o[n];o[n]=a===void 0?i:a}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 i=this.fields[o],a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),r[o]=i&&"getDefault"in i?i.getDefault(a):void 0}),r}setFields(t,r){let o=this.clone();return o.fields=t,o._nodes=Eh(t,r),o._sortErrors=Ep(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 Lo(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,Ae.getter)(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return Ah(i,t)&&(a=Object.assign({},i),o||delete a[t],a[r]=n(i)),a})}json(){return this.transform(Ap)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Bo.exact,test(r){if(r==null)return!0;let o=vp(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Bo.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 i=vp(this.schema,n);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,r=Bo.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(ur.camelCase)}snakeCase(){return this.transformKeys(ur.snakeCase)}constantCase(){return this.transformKeys(t=>(0,ur.snakeCase)(t).toUpperCase())}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(let[i,a]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[i]})),o.fields[i]=a.describe(l)}return o}};we.prototype=Wo.prototype;function Fh(e){return new Go(e)}var Go=class extends ae{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,i=o.map((a,l)=>{let s=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return s!==a&&(n=!0),s});return n?i:o}_validate(t,r={},o,n){var i;let a=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,o,(s,p)=>{var u;if(!l||!a||!this._typeCheck(p)){n(s,p);return}let f=new Array(p.length);for(let h=0;h<p.length;h++){var m;f[h]=a.asNestedTest({options:r,index:h,parent:p,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:p,tests:f,originalValue:(u=r.originalValue)!=null?u:t,options:r},o,h=>n(h.concat(s),p))})}clone(t){let r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(Ap)}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(!Uo(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=_o.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||_o.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||_o.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,i)=>!t(o,n,i):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 i=t;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),o.innerType=r.innerType.describe(i)}return o}};Fh.prototype=Go.prototype;function Rh(e){return new Ho(e)}var Ho=class extends ae{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(Pp.notType)})}_cast(t,r){let{types:o}=this.spec,n=super._cast(t,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((l,s)=>{let p=l.cast(n[s],Object.assign({},r,{path:`${r.path||""}[${s}]`}));return p!==n[s]&&(i=!0),p});return i?a:n}_validate(t,r={},o,n){let i=this.spec.types;super._validate(t,r,o,(a,l)=>{var s;if(!this._typeCheck(l)){n(a,l);return}let p=[];for(let[f,m]of i.entries()){var u;p[f]=m.asNestedTest({options:r,index:f,parent:l,parentPath:r.path,originalParent:(u=r.originalValue)!=null?u:t})}this.runTests({value:l,tests:p,originalValue:(s=r.originalValue)!=null?s:t,options:r},o,f=>n(f.concat(a),l))})}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=r.spec.types.map((n,i)=>{var a;let l=t;return(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.describe(l)}),o}};Rh.prototype=Ho.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function mt(e){let{name:t,label:r,value:o,onChange:n,onKeyDown:i}=e,[a,l]=_react.useState.call(void 0, !1);function s(){l(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:t,label:r,value:o||"",onChange:n,onKeyDown:i,type:a?"text":"password",InputProps:{endAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"end",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{tabIndex:-1,onClick:s,edge:"end",children:a?_jsxruntime.jsx.call(void 0, _iconsmaterial.VisibilityOff,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Visibility,{})})})}})}var Wh=_react.forwardRef.call(void 0, function(t,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},t))});function dr(n){var i=n,{children:e,height:t,fullWidth:r=!0}=i,o=w(i,["children","height","fullWidth"]);return _jsxruntime.jsx.call(void 0, _material.Dialog,d(c({disableRestoreFocus:!0,fullWidth:r,TransitionComponent:Wh,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:t,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:e})}))}var _core = require('@toolpad/core');function Gi({children:e}){return _jsxruntime.jsx.call(void 0, _core.DialogsProvider,{children:e})}function Hi(e){let a=e,{dialogComponent:t,payload:r,label:o}=a,n=w(a,["dialogComponent","payload","label"]),i=_core.useDialogs.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{i.open(t,r)}},n),{children:o||" Adicionar"}))}function mr(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({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))}function hr(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h2",variant:"button",sx:{fontSize:"14px",color:t.palette.grey[500],whiteSpace:"nowrap"}},e))}function gr({onClose:e}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>e(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function yr(r){var o=r,{children:e}=o,t=w(o,["children"]);return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"main",margin:"44px 0 55.75px",overflow:"auto",children:_jsxruntime.jsx.call(void 0, _material.Stack,d(c({padding:"16px"},t),{children:e}))})}function xr(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({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))}function vr(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},e))}function Ui(r){var o=r,{children:e}=o,t=w(o,["children"]);return _jsxruntime.jsx.call(void 0, N,d(c({variant:"outlined",color:"error"},t),{children:"Cancelar"}))}function qi(o){var n=o,{children:e,label:t}=n,r=w(n,["children","label"]);return _jsxruntime.jsx.call(void 0, N,d(c({variant:"contained"},r),{children:t||"Salvar"}))}function Ki({open:e,onClose:t,payload:r}){let{useRemover:o,identificador:n}=r,{mutateAsync:i,isLoading:a}=o();function l(){return $(this,null,function*(){try{yield i(n),t()}catch(s){}})}return _jsxruntime.jsxs.call(void 0, dr,{open:e,onClose:t,children:[_jsxruntime.jsxs.call(void 0, mr,{children:[_jsxruntime.jsx.call(void 0, hr,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, gr,{onClose:t})]}),_jsxruntime.jsx.call(void 0, yr,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, xr,{children:_jsxruntime.jsxs.call(void 0, vr,{children:[_jsxruntime.jsx.call(void 0, N,{onClick:()=>t(),sx:{minWidth:"100px"},children:"Manter registro"}),_jsxruntime.jsx.call(void 0, N,{color:"error",variant:"contained",isLoading:a,onClick:l,sx:{minWidth:"100px"},children:"Remover"})]})})]})}var ug={Root:dr,Provider:Gi,AdicionarButton:Hi,Header:mr,Title:hr,ActionClose:gr,Content:yr,Footer:xr,Actions:vr,ActionCancelar:Ui,ActionSalvar:qi,ConfirmDelete:Ki},j= exports.DialogV2 =ug;function gt(e){let{isValid:t,message:r}=e,o=_material.useTheme.call(void 0, );return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:t?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:t?o.palette.success.main:"inherit",textDecoration:t?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var Lp={senhaAtual:"",senhaNova:""},wg=we().shape({senhaAtual:fe().required("Informe a Senha Atual."),senhaNova:fe().required("Informe a Nova Senha.")});function Vt(e){let{isOpen:t,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:l,email:s}=e,{alterarSenha:p,isSubmitting:u}=_hooks.useCredentials.call(void 0, r),{setValidationErrors:f,validationProps:m}=_hooks.useValidations.call(void 0, ),{data:h,handleChange:x,setData:g,changeValue:k}=_hooks.useForm.call(void 0, Lp),[v,P]=_react.useState.call(void 0, !1),[C,S]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{l&&k("senhaAtual",l)},[l]),_react.useEffect.call(void 0, ()=>{h.senhaNova&&P(_isStrongPassword2.default.call(void 0, h.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[h.senhaNova]);function D(){return $(this,null,function*(){f(null),S(null),wg.validate(h,{abortEarly:!1}).then(()=>$(this,null,function*(){var y;let{senhaAtual:R,senhaNova:B}=h;try{(yield p(R,B,s))&&(n&&n(),g(Lp))}catch(b){if(i&&i(b),_axios.isAxiosError.call(void 0, b)){S((y=b.response)==null?void 0:y.data.message);return}S("Ocorreu um erro ao tentar alterar a senha")}})).catch(R=>{f(R)})})}function F(){return(h==null?void 0:h.senhaNova.length)>=8}function T(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/[a-z]/g);return Array.isArray(R)&&R.length>0}return!1}function te(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/[A-Z]/g);return Array.isArray(R)&&R.length>0}return!1}function W(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/\d/g);return Array.isArray(R)&&R.length>0}return!1}function re(){if(h!=null&&h.senhaNova){let R=h==null?void 0:h.senhaNova.match(/\W/g);return Array.isArray(R)&&R.length>0}return!1}return _jsxruntime.jsxs.call(void 0, j.Root,{open:t,onClose:R=>o(),maxWidth:"md",children:[_jsxruntime.jsxs.call(void 0, j.Header,{children:[_jsxruntime.jsx.call(void 0, j.Title,{children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, j.ActionClose,{onClose:o})]}),_jsxruntime.jsx.call(void 0, j.Content,{children:_jsxruntime.jsxs.call(void 0, _material.Grid2,{container:!0,spacing:2,children:[a&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsxs.call(void 0, _material.Alert,{severity:"info",children:["Voc\xEA est\xE1 acessando o sistema com uma senha tempor\xE1ria.",_jsxruntime.jsx.call(void 0, "br",{}),"Cadastre uma senha segura para deixar sua conta mais protegida."]})}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, mt,c({name:"senhaAtual",label:"Senha Atual",value:(h==null?void 0:h.senhaAtual)||"",onChange:x},m("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, mt,c({name:"senhaNova",label:"Nova Senha",value:(h==null?void 0:h.senhaNova)||"",onChange:x},m("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{size:12,children:[_jsxruntime.jsx.call(void 0, gt,{isValid:F(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, gt,{isValid:T(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, gt,{isValid:te(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, gt,{isValid:W(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, gt,{isValid:re(),message:"A nova senha deve ter ao menos um caracter especial"})]}),C&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:C})})]})}),_jsxruntime.jsx.call(void 0, j.Footer,{children:_jsxruntime.jsxs.call(void 0, j.Actions,{children:[_jsxruntime.jsx.call(void 0, j.ActionCancelar,{onClick:()=>o()}),_jsxruntime.jsx.call(void 0, j.ActionSalvar,{label:"Alterar Senha",onClick:D,isLoading:u,disabled:!v})]})})]})}var Mg=we().shape({email:fe().required("Informe o e-mail"),password:fe().required("Informe a senha")});function Zi(e){let{onLoginSuccess:t,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=e,[i,a]=_react.useState.call(void 0, ""),[l,s]=_react.useState.call(void 0, ""),[p,u]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[h,x]=_react.useState.call(void 0, !1),[g,k]=_react.useState.call(void 0, null),{login:v}=_hooks.useCredentials.call(void 0, n),{validationProps:P,setValidationErrors:C}=_hooks.useValidations.call(void 0, );function S(){return $(this,null,function*(){C(null),k(null),Mg.validate({email:i,password:l},{abortEarly:!1}).then(()=>$(this,null,function*(){var D,F;u(!0);try{let T=yield v(i,l);T&&t(T)}catch(T){if(_axios.isAxiosError.call(void 0, T)){if(((D=T.response)==null?void 0:D.data.code)==="E_FIRST_ACCESS"){m(!0);return}k((F=T.response)==null?void 0:F.data.message)}r(T)}})).catch(D=>{C(D)}).finally(()=>{u(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:S,children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",autoFocus:!0,value:i||"",onChange:D=>a(D.target.value)},P("email"))),_jsxruntime.jsx.call(void 0, mt,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:l||"",onChange:D=>s(D.target.value),onKeyDown:D=>D.key==="Enter"&&S()},P("password"))),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:S,isLoading:p,sx:{mt:1},children:"Entrar"})]}),_jsxruntime.jsx.call(void 0, N,{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"}),g&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:g}),h&&_jsxruntime.jsxs.call(void 0, _material.Alert,{severity:"success",children:["Senha cadastrada com sucesso",_jsxruntime.jsx.call(void 0, "br",{}),"Tudo pronto para voc\xEA fazer o login"]}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"center",alignItems:"center",mt:2,mb:2,children:[_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{flexGrow:1,mr:1}}),_jsxruntime.jsx.call(void 0, _material.Typography,{children:"Ou fa\xE7a login com"}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{flexGrow:1,ml:1}})]}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,children:[_jsxruntime.jsx.call(void 0, N,{onClick:()=>o("otp-email"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Mail,{}),children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>o("otp-whatsapp"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.WhatsApp,{}),children:"Entrar com senha tempor\xE1ria"})]}),_jsxruntime.jsx.call(void 0, Vt,{senhaAtual:l,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>$(this,null,function*(){return m(!1)}),onSuccess:()=>{m(!1),x(!0),s("")},credentialsConfig:n})]})}var Bg=we().shape({email:fe().required("Informe o e-mail")});function Qi(e){let{onLoginClick:t,credentialsConfig:r}=e,[o,n]=_react.useState.call(void 0, ""),[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),[p,u]=_react.useState.call(void 0, null),{recuperarSenha:f}=_hooks.useCredentials.call(void 0, r),{validationProps:m,setValidationErrors:h}=_hooks.useValidations.call(void 0, );function x(){return $(this,null,function*(){h(null),Bg.validate({email:o},{abortEarly:!1}).then(()=>$(this,null,function*(){var g;try{a(!0),yield f(o),s(!0)}catch(k){u((g=k.response)==null?void 0:g.data.message)}finally{a(!1)}})).catch(g=>{h(g)})})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",placeholder:"Informe o e-mail utilizado para acessar o sistema",autoFocus:!0,value:o||"",onChange:g=>n(g.target.value)},m("email"))),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:x,isLoading:i,children:"Recuperar minha senha"}),_jsxruntime.jsx.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, N,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Voltar para o Login"})}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"success",action:_jsxruntime.jsx.call(void 0, N,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),p&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:p})]})}function Ji(e){var u;let{loginData:t,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=e,[i,a]=_react.useState.call(void 0, ""),{selecionarLicenca:l,isSubmitting:s}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{if(Array.isArray(t==null?void 0:t.empresas)){let f=t==null?void 0:t.empresas[0];a(f==null?void 0:f.uuid)}},[t]);function p(){return $(this,null,function*(){try{let f=yield l(t==null?void 0:t.token,i);f?n(f):o("Nenhuma token definida")}catch(f){o(f)}})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",sx:{minWidth:"290px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{label:"Licen\xE7as",margin:"normal",select:!0,autoFocus:!0,value:i,onChange:f=>{a(f.target.value)},children:(u=t==null?void 0:t.empresas)==null?void 0:u.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f.uuid,children:f.nome},f.uuid))}),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:p,isLoading:s,sx:{mt:1},children:"Confirmar"})]})}var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);var Vp=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 Cr(e){let p=e,{value:t,onChange:r}=p,o=w(p,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=t!==void 0,l=_react.useMemo.call(void 0, ()=>a?Vp(t||""):n,[t,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:l,onChange:u=>{let f=Vp(u.target.value);if(a||i(f),r){let m=d(c({},u),{target:d(c({},u.target),{value:f})});r(m)}},inputProps:{maxLength:15}},o))}function wr({length:e=6,value:t,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,l)=>{var m;let s="ABCDEF0123456789",p=l.toUpperCase().split("").find(h=>s.includes(h))||"",u=t.split("");u[a]=p;let f=u.join("");r(f),p&&a<e-1&&((m=o.current[a+1])==null||m.focus())},i=(a,l)=>{var s;l.key==="Backspace"&&!t[a]&&a>0&&((s=o.current[a-1])==null||s.focus())};return _jsxruntime.jsx.call(void 0, _material.Box,{display:"flex",gap:1,children:Array.from({length:e}).map((a,l)=>_jsxruntime.jsx.call(void 0, _material.TextField,{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=>i(l,s)},l))})}function ta(e){let{open:t,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=e,[a,l]=_react.useState.call(void 0, ""),[s,p]=_react.useState.call(void 0, !1),[u,f]=_react.useState.call(void 0, !1),{validarOtpVerificationCode:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{p(!1)},3e3)},[s]);function h(){return $(this,null,function*(){try{f(!0);let x=yield m({channel:o.channel,target:o.target,code:a});x&&n(x),r()}catch(x){p(x.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:t,onClose:x=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, j.Header,{children:[_jsxruntime.jsx.call(void 0, j.Title,{children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, j.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, j.Content,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,justifyContent:"center",alignContent:"center",alignItems:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle1",sx:{fontWeight:"bolder",fontSize:"11pt"},children:"\u{1F510} Digite a senha tempor\xE1ria para acessar sua conta"}),_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body1",sx:{fontSize:"10pt"},children:["Enviamos uma senha tempor\xE1ria para ",_jsxruntime.jsx.call(void 0, "b",{children:o.target}),". ",_jsxruntime.jsx.call(void 0, "br",{}),"Digite o c\xF3digo abaixo para acessar sua conta."]}),_jsxruntime.jsx.call(void 0, wr,{value:a,onChange:x=>{l(x)}}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, j.Footer,{children:_jsxruntime.jsxs.call(void 0, j.Actions,{children:[_jsxruntime.jsx.call(void 0, j.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, j.ActionSalvar,{label:"Entrar",onClick:h,isLoading:u,disabled:a.length!=6})]})})]})}var l2=we().shape({contato:fe().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 Zo(e){let{tipo:t,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=e,[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),{gerarOtpVerificationCode:p}=_hooks.useCredentials.call(void 0, r),{handleChange:u,changeValue:f,data:m,validate:h,validationErrors:x}=_hooks.useForm.call(void 0, {contato:""},l2),[g,k]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:P=>$(this,null,function*(){P.preventDefault(),h(C=>$(this,null,function*(){try{s(!1),a(!0);let S=yield p({channel:t==="otp-email"?"email":"whatsapp",target:C.contato});k(!0)}catch(S){s(S.response.data.message)}finally{a(!1)}}),{context:{tipo:t}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{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"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:m.contato||"",onChange:u,fullWidth:!0},x("contato"))),t==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Cr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:m.contato||"",onChange:P=>{f("contato",P.target.value.replace(/[^\d+]/g,""))},fullWidth:!0},x("contato"))),_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, N,{isLoading:i,type:"submit",variant:"contained",color:"primary",children:"Enviar c\xF3digo"}),_jsxruntime.jsxs.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:[_jsxruntime.jsx.call(void 0, N,{onClick:n,variant:"text",sx:{fontWeight:"400",":hover":{color:P=>P.palette.primary.dark}},children:"Voltar para o Login"}),_jsxruntime.jsx.call(void 0, "a",{href:"https://datacsistemashelp.zendesk.com/hc/pt-br/articles/36489079108756-Login-OTP-via-WhatsApp",target:"_blank",rel:"noopener noreferrer",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{children:_jsxruntime.jsx.call(void 0, _iconsmaterial.HelpOutline,{color:"primary"})})})]})]}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:l})]})}),_jsxruntime.jsx.call(void 0, ta,{onLoginSuccess:o,open:g,onClose:P=>$(this,null,function*(){k(!1)}),payload:{target:m.contato,channel:t==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var g2={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 oa(e){let{credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=e,[a,l]=_react.useState.call(void 0, ),{selecionarLicenca:s,isAuthenticated:p}=_hooks.useCredentials.call(void 0, t),[u,f]=_react.useState.call(void 0, "login"),m=_material.useTheme.call(void 0, ),h=_material.useMediaQuery.call(void 0, m.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{p&&n&&n()},[p]);function x(C){return $(this,null,function*(){try{if(Array.isArray(C==null?void 0:C.empresas)){if((C==null?void 0:C.empresas.length)===1){let S=yield s(C==null?void 0:C.token,C.empresas[0].uuid);S&&r(S);return}f("licensa"),l(C);return}r(C)}catch(S){o(S)}})}function g(C){return $(this,null,function*(){o(C)})}function k(C){f(C)}function v(){f("login")}let P=g2[u];return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"section",width:h?"46%":"100%",minWidth:"420px",maxWidth:h?"614px":"initial",justifyContent:"center",alignItems:"center",padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",maxWidth:"28rem",margin:"auto 0",children:_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, Di,{label:i,subTitle:P}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[u==="login"&&_jsxruntime.jsx.call(void 0, Zi,{credentialsConfig:t,onLoginSuccess:x,onLoginFailed:g,onOptionsClick:k}),u==="licensa"&&_jsxruntime.jsx.call(void 0, Ji,{loginData:a,credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o}),u==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, Qi,{onLoginClick:v,credentialsConfig:t}),u==="otp-email"&&_jsxruntime.jsx.call(void 0, Zo,{onLoginClick:v,onLoginSuccess:x,tipo:"otp-email",credentialsConfig:t}),u==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Zo,{onLoginClick:v,onLoginSuccess:x,tipo:"otp-whatsapp",credentialsConfig:t})]})]})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",marginBottom:-3,children:[_jsxruntime.jsx.call(void 0, "img",{width:"60",src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/logomarca.png"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",component:"span",fontSize:"0.7rem",sx:{color:C=>C.palette.grey[500]},children:"Data C Sistemas"})]})]})}function ia(){let e=_material.useTheme.call(void 0, ),t=_material.useMediaQuery.call(void 0, e.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{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:_jsxruntime.jsxs.call(void 0, _material.Stack,{padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"bold",color:"white",fontFamily:"Montserrat",letterSpacing:0,children:"Inova\xE7\xE3o e tecnologia"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",color:"white",fontSize:"2.5rem",lineHeight:"3rem",letterSpacing:0,fontWeight:"bold",fontFamily:"Montserrat",children:"para empresas de resultado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{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 25 anos de exist\xEAncia e muitas hist\xF3rias de sucesso."}),_jsxruntime.jsx.call(void 0, _material.Link,{href:"https://site.datac.com.br/services/",target:"_blank",children:_jsxruntime.jsxs.call(void 0, N,{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",_jsxruntime.jsx.call(void 0, _iconsmaterial.ArrowRight,{fontSize:"medium",sx:{color:r=>r.palette.success.light}})]})})]})})}function Yp(e){let{banner:t}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[t?_jsxruntime.jsx.call(void 0, Ri,{children:t}):_jsxruntime.jsx.call(void 0, ia,{}),_jsxruntime.jsx.call(void 0, oa,c({},e))]})}var P2=_styles.styled.call(void 0, _material.MenuItem,{})(({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"}})),T2=e=>_jsxruntime.jsx.call(void 0, P2,c({},e)),Jo=T2;function sa(e){let{menuItem:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, !1);if(!t.visible)return null;let a=!!(t!=null&&t.items&&(t==null?void 0:t.items.length)>0);function l(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, Jo,{onClick:()=>{if(t!=null&&t.link){o(t.link);return}l()},selected:r===t.link,children:[!!t.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:t.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:t.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(t==null?void 0:t.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, xt,{activeMenu:r,sx:{pl:s=>s.spacing(1.5)},menus:(t==null?void 0:t.items)||[],onMenuClick:o})})]})}function xt(e){let i=e,{menus:t,activeMenu:r,onMenuClick:o}=i,n=w(i,["menus","activeMenu","onMenuClick"]);return _jsxruntime.jsx.call(void 0, _material.List,d(c({component:"nav",disablePadding:!0},n),{children:t.map(a=>_jsxruntime.jsx.call(void 0, sa,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function la(e){let{menus:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, null),a=(s,p,u)=>{i({element:s.currentTarget,id:p,items:u})},l=()=>{i(null)};return _jsxruntime.jsx.call(void 0, _material.List,{component:"nav",disablePadding:!0,children:t.map(s=>s.visible?_jsxruntime.jsxs.call(void 0, Jo,{onMouseEnter:p=>{s!=null&&s.link||a(p,s.id,s.items)},onMouseLeave:()=>{s!=null&&s.link||l()},onClick:()=>{s!=null&&s.link&&o(s.link)},selected:r===s.link,children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:_jsxruntime.jsx.call(void 0, _material.Icon,{children:s.icon})}),(n==null?void 0:n.id)===s.id&&_jsxruntime.jsx.call(void 0, _material.Popper,{sx:{zIndex:999999},anchorEl:n==null?void 0:n.element,open:!!(n!=null&&n.element),placement:"right-start",children:_jsxruntime.jsx.call(void 0, xt,{activeMenu:r,onMenuClick:o,menus:(s==null?void 0:s.items)||[],sx:{minWidth:"240px",backgroundColor:H.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)})}var Qp=(e,t)=>({width:e,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}),Xp=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)`}}),H2=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"&&e!=="width"})(({theme:e,open:t,width:r})=>c(c({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&&d(c({},Qp(r,e)),{"& .MuiDrawer-paper":Qp(r,e)})),!t&&d(c({},Xp(e)),{"& .MuiDrawer-paper":Xp(e)})));function Jp(e){let s=e,{open:t,items:r,width:o,activeMenu:n,onMenuClick:i,toggleMenu:a}=s,l=w(s,["open","items","width","activeMenu","onMenuClick","toggleMenu"]);return _jsxruntime.jsxs.call(void 0, H2,d(c({width:o,open:t,onClose:()=>a(!1)},l),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),t&&_jsxruntime.jsx.call(void 0, xt,{onMenuClick:i,activeMenu:n,menus:r}),!t&&_jsxruntime.jsx.call(void 0, la,{onMenuClick:i,activeMenu:n,menus:r})]}))}function eu(e){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},e))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function tu(e){let{user:t}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:t==null?void 0:t.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},e))}function en(e){let i=e,{children:t,value:r,index:o}=i,n=w(i,["children","value","index"]);return r!==o?null:_jsxruntime.jsx.call(void 0, _material.Box,d(c({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}))}var _reacteasycrop = require('react-easy-crop'); var _reacteasycrop2 = _interopRequireDefault(_reacteasycrop);var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);var _Button = require('@mui/material/Button'); var _Button2 = _interopRequireDefault(_Button);var _Dialog = require('@mui/material/Dialog'); var _Dialog2 = _interopRequireDefault(_Dialog);function pa(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 i=n.getContext("2d");i&&(i.drawImage(o,t.x,t.y,t.width,t.height,0,0,t.width,t.height),r(n.toDataURL("image/jpeg")))}})}var iy=({onSave:e,src:t})=>{let[r,o]=_react.useState.call(void 0, null),[n,i]=_react.useState.call(void 0, null),[a,l]=_react.useState.call(void 0, {x:0,y:0}),[s,p]=_react.useState.call(void 0, 1),[u,f]=_react.useState.call(void 0, null),[m,h]=_react.useState.call(void 0, !1),x=_react.useCallback.call(void 0, (v,P)=>{f(P)},[]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,alignItems:"center",children:[n?_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:n,alt:"Preview",sx:{width:64,height:64,margin:"auto",mb:2}}):_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:t,sx:{width:64,height:64,margin:"auto",mb:2}}),_jsxruntime.jsxs.call(void 0, "label",{children:[_jsxruntime.jsx.call(void 0, "input",{type:"file",accept:"image/*",onChange:v=>{var S;let P=(S=v.target.files)==null?void 0:S[0];if(!P)return;let C=new FileReader;C.onload=()=>{o(C.result),h(!0)},C.readAsDataURL(P)},style:{display:"none"}}),_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",component:"span",children:"Alterar foto"})]}),_jsxruntime.jsxs.call(void 0, _Dialog2.default,{open:m,onClose:()=>h(!1),maxWidth:"sm",fullWidth:!0,children:[_jsxruntime.jsx.call(void 0, "div",{style:{position:"relative",height:400,background:"#333"},children:r&&_jsxruntime.jsx.call(void 0, _reacteasycrop2.default,{image:r,crop:a,zoom:s,aspect:1,cropShape:"round",showGrid:!1,onCropChange:l,onZoomChange:p,onCropComplete:x})}),_jsxruntime.jsxs.call(void 0, "div",{style:{padding:20},children:[_jsxruntime.jsx.call(void 0, _Slider2.default,{value:s,min:1,max:3,step:.1,onChange:(v,P)=>p(P)}),_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>$(void 0,null,function*(){if(!r||!u)return;let v=yield pa(r,u);i(v),h(!1),e&&e(v)}),children:"Salvar"})})]})]})]})},nu=iy;var py=we().shape({name:fe().required("Informe o nome")});function ma(e){let{usuario:t,credentialsConfig:r,onUploadComplete:o}=e,{data:n,setData:i,handleChange:a,validate:l,validationErrors:s}=_hooks.useForm.call(void 0, t,py),[p,u]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[h,x]=_react.useState.call(void 0, !1),{uploadAvatar:g,atualizarUsuario:k}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(t)},[t]),_react.useEffect.call(void 0, ()=>{h&&setTimeout(()=>{x(!1)},3e3)},[h]),_react.useEffect.call(void 0, ()=>{p&&setTimeout(()=>{u(!1)},3e3)},[p]);function v(){l(P=>$(this,null,function*(){try{m(!0),yield k(P),x(!0)}catch(C){u("Ocorreu um erro ao alterar os dados da conta")}finally{m(!1)}}))}return _jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Avatar"}),_jsxruntime.jsx.call(void 0, nu,{src:n==null?void 0:n.avatarUrl,onSave:P=>{try{g(P),o&&(x(!0),o(!0))}catch(C){u("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,C)}}}),_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Informa\xE7\xF5es da Conta"}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{container:!0,spacing:1.5,children:[_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{disabled:!0,fullWidth:!0,label:"E-mail",value:(n==null?void 0:n.email)||""})}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"name",fullWidth:!0,label:"Nome",value:(n==null?void 0:n.name)||"",onChange:a},s("name")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{name:"surname",fullWidth:!0,label:"Sobrenome",value:(n==null?void 0:n.surname)||"",onChange:a})})]}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, N,{isLoading:f,onClick:()=>v(),variant:"contained",children:"Salvar"})})}),h&&_jsxruntime.jsx.call(void 0, _material.Alert,{children:"Dados da conta alterados com sucesso!"}),p&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:p})]})}function ga(e){var x,g,k;let{open:t,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=e,[a,l]=_react.useState.call(void 0, ""),[s,p]=_react.useState.call(void 0, !1),[u,f]=_react.useState.call(void 0, !1),{validarCodigoWhatsapp:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{p(!1)},3e3)},[s]);function h(){return $(this,null,function*(){try{f(!0);let v=yield m(a);n(v.data)}catch(v){p(v.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:t,onClose:v=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, j.Header,{children:[_jsxruntime.jsx.call(void 0, j.Title,{children:"Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp"}),_jsxruntime.jsx.call(void 0, j.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, j.Content,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,justifyContent:"center",alignContent:"center",alignItems:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle1",sx:{fontWeight:"bolder",fontSize:"11pt"},children:"\u{1F510} Verifique seu n\xFAmero"}),_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body1",sx:{fontSize:"10pt"},children:["Enviamos um c\xF3digo via WhatsApp para +55"," ",_jsxruntime.jsx.call(void 0, "b",{children:`(${(x=o==null?void 0:o.whatsappNumber)==null?void 0:x.slice(0,2)}) ${(g=o==null?void 0:o.whatsappNumber)==null?void 0:g.slice(2,7)}-${(k=o==null?void 0:o.whatsappNumber)==null?void 0:k.slice(7)}`}),". ",_jsxruntime.jsx.call(void 0, "br",{}),"Digite o c\xF3digo abaixo para confirmar que este n\xFAmero \xE9 seu."]}),_jsxruntime.jsx.call(void 0, wr,{value:a,onChange:v=>{l(v)}}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, j.Footer,{children:_jsxruntime.jsxs.call(void 0, j.Actions,{children:[_jsxruntime.jsx.call(void 0, j.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, j.ActionSalvar,{label:"Verificar",onClick:h,isLoading:u,disabled:a.length!=6})]})})]})}var GI=we().shape({whatsappNumber:fe().required("Informe o n\xFAmero do whastapp").length(15)});function ba(e){let{usuario:t,credentialsConfig:r,onWhastappSaved:o}=e,[n,i]=_react.useState.call(void 0, !1),[a,l]=_react.useState.call(void 0, !1),{data:s,setData:p,changeValue:u,validate:f,validationErrors:m}=_hooks.useForm.call(void 0, t),[h,x]=_react.useState.call(void 0, !1),[g,k]=_react.useState.call(void 0, !1),{atualizarUsuario:v,gerarWhatsappVerificationCode:P}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{p(t)},[t]);function C(){f(D=>$(this,null,function*(){try{l(!0);let F=yield v(D);o&&o(F.data)}catch(F){}finally{l(!1)}}))}function S(){return $(this,null,function*(){try{x(!0);let D=yield P();k(!0)}catch(D){}finally{x(!1)}})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Senha"}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>{i(!0)},sx:{width:"200px"},fullWidth:!1,variant:"contained",children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, Vt,{isOpen:n,onClose:()=>$(this,null,function*(){return i(!1)}),credentialsConfig:r}),_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Login com Whastapp"}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,children:[_jsxruntime.jsx.call(void 0, Cr,{disabled:!!(s!=null&&s.whatsappVerifiedAt),fullWidth:!1,name:"whatsappNumber",label:"Whastapp",value:s.whatsappNumber||"",onChange:D=>{u("whatsappNumber",D.target.value)}}),s.whatsappVerifiedAt&&_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Verified,{color:"success"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",children:"N\xFAmero Verificado"})]}),s.whatsappNumber&&s.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, N,{isLoading:a,onClick:C,children:"Salvar Whatsapp"})]}),t.whatsappNumber&&t.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"warning",action:_jsxruntime.jsx.call(void 0, N,{isLoading:h,onClick:S,children:"Enviar n\xFAmero de verifica\xE7\xE3o"}),children:"O seu n\xFAmero de whatsapp ainda n\xE3o est\xE1 validado"}),_jsxruntime.jsx.call(void 0, ga,{open:g,onClose:D=>$(this,null,function*(){k(!1)}),payload:t,credentialsConfig:r,onCodigoVerificado:D=>{p(D),k(!1)}})]})}function pu(e){let[t,r]=_react.useState.call(void 0, 0),{user:o,setUser:n,credentialsConfig:i}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,direction:"row",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"200px"},children:_jsxruntime.jsxs.call(void 0, _material.Tabs,{orientation:"vertical",value:t,onChange:(a,l)=>{r(l)},sx:{"& .MuiButtonBase-root":{alignItems:"flex-start"}},children:[_jsxruntime.jsx.call(void 0, _material.Tab,{label:"Minha Conta",value:0}),_jsxruntime.jsx.call(void 0, _material.Tab,{label:"Login e Seguran\xE7a",value:1})]})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexGrow:1},children:[_jsxruntime.jsx.call(void 0, en,{value:t,index:0,children:_jsxruntime.jsx.call(void 0, ma,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, en,{value:t,index:1,children:_jsxruntime.jsx.call(void 0, ba,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}function ka(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},e))}function Sa({children:e}){return _jsxruntime.jsx.call(void 0, ni.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:t=>t.zIndex.drawer+1,borderBottom:t=>`1px solid ${t.palette.grey[300]}`},children:_jsxruntime.jsx.call(void 0, _material.Toolbar,{children:_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",children:e})})})})}function Pa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M21 5v14"})]})}))}function Ia(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"}),_jsxruntime.jsx.call(void 0, "path",{d:"m4.9 4.9 14.2 14.2"})]})}))}function Ea(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 12h4"})]})}))}function Ma(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function Ra(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "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"})})}))}function Da(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"9",cy:"7",r:"4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}))}function Ba(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17-5-5 5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m18 17-5-5 5-5"})]})}))}function La(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"3"})]})}))}function $a(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})}))}function Na(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 9H8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 13H8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 17H8"})]})}))}function Ar(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function Va(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21H7"}),_jsxruntime.jsx.call(void 0, "path",{d:"m5 11 9 9"})]})}))}var Jy=e=>({transition:e.transitions.create(["transform"],{duration:500})}),ex=_styles.styled.call(void 0, Ar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>c(c(c({},Jy(e)),t&&{transform:"rotate(-180deg)"}),!t&&{transform:"rotate(0)"}));function ja(e){let{open:t}=e;return _jsxruntime.jsx.call(void 0, ex,{fontSize:"small",open:t})}function Wa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 6h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 12h10"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 18h4"})]})}))}function Ga(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 20a6 6 0 0 0-12 0"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"4"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"})]})}))}function Ha(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 3 1 11h-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 4h8"})]})}))}function Ua(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 17h.01"})]})}))}function qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3v5h5"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v5l4 2"})]})}))}function Ya(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 7v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 7v9"})]})}))}function Ka(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),_jsxruntime.jsx.call(void 0, "polyline",{points:"16 17 21 12 16 7"}),_jsxruntime.jsx.call(void 0, "line",{x1:"21",x2:"9",y1:"12",y2:"12"})]})}))}function Qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"3"})]})}))}function Xa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 5.764v15"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9 3.236v15"})]})}))}function Ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"12",y2:"12"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"6",y2:"6"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})}))}function es(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 3 1 11h-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 4h8"})]})}))}function rs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m6 17 5-5-5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m13 17 5-5-5-5"})]})}))}function ns(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}))}function as(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"11",cy:"11",r:"8"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 21-4.3-4.3"})]})}))}function ss(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2 7h20"}),_jsxruntime.jsx.call(void 0, "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"})]})}))}function ls(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 2h1a4 4 0 0 1 4 4v1"})]})}))}function cs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"9",cy:"7",r:"4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}))}function us(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"m10 15 5-3-5-3z"})]})}))}function fs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M12 17V3"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 11 6 6 6-6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M19 21H5"})]})}))}function ds(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"22",y2:"22"}),_jsxruntime.jsx.call(void 0, "line",{x1:"6",x2:"6",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"10",x2:"10",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"14",x2:"14",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"18",x2:"18",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "polygon",{points:"12 2 20 7 4 7"})]})}))}function ms(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "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"})]})}))}function hs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "circle",{cx:"16",cy:"16",r:"6"}),_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14v2l1 1"})]})}))}function gs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 6h6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M18 3v6"})]})}))}function ys(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"9",y2:"9"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"15",y2:"15"}),_jsxruntime.jsx.call(void 0, "line",{x1:"9",x2:"9",y1:"9",y2:"21"}),_jsxruntime.jsx.call(void 0, "line",{x1:"15",x2:"15",y1:"9",y2:"21"})]})}))}function vs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m15 18-6-6 6-6"})})}))}function Cs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}))}function ws(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "path",{d:"M8 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 2v4"}),_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 10h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 18h.01"})]})}))}function ks(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "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:[_jsxruntime.jsx.call(void 0, "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"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})}))}var r4={Circle:Ra,Dashboard:$a,Expandable:ja,Down:Ar,Negociacao:es,Cadastro:Ea,Clientes:Da,Filter:Wa,Search:as,ChevronDown:Ma,Kanban:Ya,Erease:Va,BarCode:Pa,TextCursor:ls,OpenPanel:rs,ClosePanel:Ba,Menu:Ja,Configs:La,Users:cs,Password:ns,Logout:Ka,History:qa,Help:Ua,Video:us,Docs:Na,Block:Ia,Maps:Xa,MapPin:Qa,HandShake:Ha,Store:ss,Download:fs,ContaBancaria:ds,GrupoLancamento:ms,HistoricoPadrao:hs,Imovel:gs,Lancamento:ys,ChevronLeft:vs,ChevronRight:Cs,Calendar:ws,Save:ks,Profile:Ga},xe= exports.Icon =r4;function Ss(e){let t=w(e,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,d(c({},t),{children:_jsxruntime.jsx.call(void 0, xe.Menu,{})}))}var n4={Root:Sa,Content:ka,ToggleMenu:Ss},i4= exports.Header =n4;var h4=_material.styled.call(void 0, _material.ListItemButton,{})(({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 Ps({label:e,icon:t,visible:r=!0,children:o,selected:n=!1,onClick:i,link:a}){if(!r)return null;let[l,s]=_react.useState.call(void 0, !1),p=!!o;function u(){if(p){s(m=>!m);return}i&&a&&i(a)}function f(m){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):m||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, h4,{selected:n,disableGutters:!0,onClick:m=>{m.stopPropagation(),u()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:f(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e}),p&&_jsxruntime.jsx.call(void 0, xe.Expandable,{open:l})]})}),p&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:l,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, _material.List,{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})})]})}var T4=_material.styled.call(void 0, _material.ListItemButton,{})(({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 du(e,t){return ni.default.Children.map(e,r=>{var n;if(!ni.default.isValidElement(r))return r;let o=(n=r.props)!=null&&n.children?du(r.props.children,t):null;return ni.default.cloneElement(r,{open:t,children:o})})}function Is(e){let{icon:t,label:r,link:o,id:n,selected:i=!1,children:a,onClick:l}=e,[s,p]=_react.useState.call(void 0, null);function u(){l&&o&&l(o)}function f(g,k){p({element:g.currentTarget,id:k})}function m(){p(null)}let h=du(a,!0);function x(g){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):g||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, T4,{selected:i,onMouseEnter:g=>{o||f(g,n)},onMouseLeave:()=>{o||m()},disableGutters:!0,onClick:g=>{g.stopPropagation(),u()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:x(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:_lodash2.default.truncate(r,{length:12})}),(s==null?void 0:s.id)===n&&_jsxruntime.jsx.call(void 0, _material.Popper,{sx:{zIndex:999999},anchorEl:s==null?void 0:s.element,open:!!(s!=null&&s.element),placement:"right-start",children:_jsxruntime.jsx.call(void 0, wt,{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:g=>{var k;return(k=g.mixins.menu)==null?void 0:k.width}},children:h})})]})})}function Es(e){let n=e,{open:t,isFirstLevel:r=!1}=n,o=w(n,["open","isFirstLevel"]);return t?_jsxruntime.jsx.call(void 0, Ps,c({},o)):_jsxruntime.jsx.call(void 0, Is,c({},o))}var hu=e=>{var t,r;return{width:((r=(t=e==null?void 0:e.mixins)==null?void 0:t.menu)==null?void 0:r.width)||64,background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}},gu=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)`}}),M4=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{var r,o;return c(c({width:((o=(r=e==null?void 0:e.mixins)==null?void 0:r.menu)==null?void 0:o.width)||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},t&&d(c({},hu(e)),{"& .MuiDrawer-paper":hu(e)})),!t&&d(c({},gu(e)),{"& .MuiDrawer-paper":gu(e)}))}),F4=_styles.styled.call(void 0, "div")(({theme:e})=>e.mixins.toolbar);function vu(e,t,r,o){return ni.default.Children.map(e,n=>{var f,m;if(!ni.default.isValidElement(n))return n;let i=((f=n.props.link)==null?void 0:f.split("/").filter(Boolean))||[],a=n.props.link||"",p="/"+((t==null?void 0:t.split("/").filter(Boolean))||[]).slice(0,i.length).join("/"),u=(m=n.props)!=null&&m.children?vu(n.props.children,t,r,o):null;return ni.default.cloneElement(n,{open:r,selected:p===a,onClick:h=>{o&&o(h)},children:u})})}function Ms(e){let{open:t,toggleMenu:r,children:o,onClickItem:n}=e,a=new URL(window.location.href).pathname,l=vu(o,a,t,n);return _jsxruntime.jsxs.call(void 0, M4,{variant:"permanent",open:t,onClose:r,children:[_jsxruntime.jsx.call(void 0, F4,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:l})]})}function D4(e){return e.map(t=>t.visible?_jsxruntime.jsx.call(void 0, bu.Item,{link:t.link,id:t.id,label:t.label,icon:t.icon,children:t.items&&D4(t.items)},t.id):null)}var bu={Root:Ms,Item:Es},O4= exports.Menu =bu;function Cu(e){let{links:t}=e;function r(o,n){location.pathname}return _jsxruntime.jsx.call(void 0, _material.Breadcrumbs,{sx:{height:"30px",display:"flex",textWrap:"nowrap"},children:t.map((o,n)=>t.length===1||t.length===n+1?_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{fontSize:"10pt",fontWeight:"bolder"},variant:"subtitle1",color:"black",children:o.label},o.link):_jsxruntime.jsx.call(void 0, _material.Button,{variant:"text",children:o.label},o.link))})}function Rs(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Stack,{pl:1,pr:1,pt:.5,pb:.5,direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",spacing:1,children:t})}var V4={Root:Rs},j4= exports.ContentTitle =V4;var W4=process.env.NODE_ENV==="production",Ds="Invariant failed";function Os(e,t){if(!e){if(W4)throw new Error(Ds);var r=typeof t=="function"?t():t,o=r?"".concat(Ds,": ").concat(r):Ds;throw new Error(o)}}var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);var vn=new Uint8Array(256),xn=vn.length;function Bs(){return xn>vn.length-16&&(_crypto2.default.randomFillSync(vn),xn=0),vn.slice(xn,xn+=16)}var se=[];for(let e=0;e<256;++e)se.push((e+256).toString(16).slice(1));function wu(e,t=0){return se[e[t+0]]+se[e[t+1]]+se[e[t+2]]+se[e[t+3]]+"-"+se[e[t+4]]+se[e[t+5]]+"-"+se[e[t+6]]+se[e[t+7]]+"-"+se[e[t+8]]+se[e[t+9]]+"-"+se[e[t+10]]+se[e[t+11]]+se[e[t+12]]+se[e[t+13]]+se[e[t+14]]+se[e[t+15]]}var _s={randomUUID:_crypto2.default.randomUUID};function U4(e,t,r){if(_s.randomUUID&&!t&&!e)return _s.randomUUID();e=e||{};let o=e.random||(e.rng||Bs)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){r=r||0;for(let n=0;n<16;++n)t[r+n]=o[n];return t}return wu(o)}var Ls=U4;function K4(e,t){var r,o;switch(t.type){case"loadFiltersFromStorage":return d(c({},e),{filterValues:(r=t==null?void 0:t.storageValues)==null?void 0:r.filterValues,appliedValues:(o=t==null?void 0:t.storageValues)==null?void 0:o.appliedValues});case"updateFilterValues":return d(c({},e),{filterValues:t.filterValues});case"updateFilterValue":return d(c({},e),{filterValues:d(c({},e.filterValues),{[t.payload.name]:t.payload.value})});case"updateAppliedValues":let n=e.filterValues,i=[];if(n&&Object.entries(n).length>0){let[a]=Object.keys(n);i=[{[a]:n[a]}]}return t!=null&&t.storagePath&&localStorage.setItem(t.storagePath,JSON.stringify({appliedValues:n,filterValuesAsArray:i,filterValues:e.filterValues})),d(c({},e),{appliedValues:n,filterValuesAsArray:i,isOpen:!1,searchId:Ls()});case"updateIsOpen":return d(c({},e),{isOpen:t.isOpen,target:t.target});case"updateContainer":return d(c({},e),{container:t.container});case"toggleIsOpen":return d(c({},e),{isOpen:!e.isOpen});case"deleteAppliedValue":return delete e.appliedValues[t.filterName],c({},e);case"deleteAllAppliedValues":return e.appliedValues={},e.filterValues=t.filterValues,t.storagePath&&localStorage.removeItem(t.storagePath),c({},e)}}var Iu=ni.default.createContext({}),Eu=ni.default.createContext({});function Au(e){let{children:t,filterValues:r={},storagePath:o}=e,[n,i]=_react.useReducer.call(void 0, K4,{filterValues:{}});_react.useEffect.call(void 0, ()=>{i({type:"updateFilterValues",filterValues:r}),i({type:"updateAppliedValues",storagePath:o})},[r]),_react.useEffect.call(void 0, ()=>{if(o){let l=localStorage.getItem(o);if(l&&l!=="undefined"){let s=JSON.parse(l);i({type:"loadFiltersFromStorage",storageValues:s})}}},[]);let a=_react.useMemo.call(void 0, ()=>{function l(v){i({type:"updateIsOpen",isOpen:!0,target:(v==null?void 0:v.target)||void 0})}function s(){i({type:"updateIsOpen",isOpen:!1,target:void 0})}function p(){i({type:"toggleIsOpen"})}function u(v){let P=v.target.type,C=v.target.name,S;switch(P){case"text":S=v.target.value;break;case"checkbox":S=v.target.checked;break;default:S=v.target.value}i({type:"updateFilterValue",payload:{name:C,value:S}})}function f(v,P){i({type:"updateFilterValue",payload:{name:v,value:P}})}function m(v){i({type:"updateFilterValues",filterValues:v})}function h(){i({type:"updateAppliedValues",storagePath:o})}function x(v){i({type:"deleteAppliedValue",filterName:v})}function g(){i({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),i({type:"updateAppliedValues",storagePath:o})}function k(v){i({type:"updateContainer",container:v})}return{setContainer:k,openFilter:l,closeFilter:s,onChangeFilterValue:u,changeFilterValue:f,changeFilterValues:m,applyFilterValues:h,deleteFilterValue:x,deleteAllFilterValues:g,toggleFilter:p}},[r]);return _jsxruntime.jsx.call(void 0, Eu.Provider,{value:a,children:_jsxruntime.jsx.call(void 0, Iu.Provider,{value:n,children:t})})}function Or(){let e=_react.useContext.call(void 0, Iu);return Os(e,"cannot find FilterDataContext provider"),e}function ke(){let e=_react.useContext.call(void 0, Eu);return Os(e,"cannot find FilterApiContextContext provider"),e}function $s(){let{openFilter:e}=ke();return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:t=>e(t),children:_jsxruntime.jsx.call(void 0, xe.Filter,{})})}function zs(e){let{children:t}=e,{isOpen:r,container:o}=Or(),{closeFilter:n}=ke(),i=(o==null?void 0:o.getBoundingClientRect().width)||300;return _jsxruntime.jsx.call(void 0, _material.Popover,{elevation:0,open:r,onClose:n,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{"& .MuiPopover-paper":{width:`${i}px`,border:a=>`1px solid ${a.palette.border}`,borderRadius:"4px",pt:2,pl:1,pr:1,pb:1}},children:_jsxruntime.jsx.call(void 0, _material.Box,{mt:1,mb:1,children:_jsxruntime.jsx.call(void 0, _material.Stack,{spacing:1,children:t})})})}function Vs({children:e}){let t=_react.useRef.call(void 0, null),{setContainer:r}=ke();return _react.useEffect.call(void 0, ()=>{let o=()=>{t.current&&r(t.current)};return o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[]),_jsxruntime.jsxs.call(void 0, _material.Stack,{ref:t,direction:"row",alignContent:"center",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.95rem"}}),_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center",children:e})]})}function js(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{border:r=>`1px solid ${r.palette.border}`,borderRadius:"90px",flexGrow:1,pl:1,pr:1},children:t})}function Ws(e){let i=e,{onChange:t}=i,r=w(i,["onChange"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let l=a.target.value;o(l)}return _jsxruntime.jsx.call(void 0, _material.InputBase,c({onChange:n},r))}function Hs(){let{applyFilterValues:e}=ke();return _jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{e()},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.855rem"}})," ",_jsxruntime.jsx.call(void 0, "span",{children:"Pesquisar"})]})})}function Us(){let{deleteAllFilterValues:e}=ke();return _jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{e&&e()},children:"Resetar"})}function qs({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{pt:2,direction:"row",spacing:1,justifyContent:"flex-end",children:e})}function Zs({children:e}){let{appliedValues:t}=Or(),{applyFilterValues:r,deleteFilterValue:o}=ke(),{isOpen:n,open:i,close:a,anchorEl:l,data:s}=_hooks.usePopover.call(void 0, ),p=ni.default.Children.map(e,u=>!ni.default.isValidElement(u)||!(t&&u.props.name in t)?null:ni.default.cloneElement(u,{onDelete:u.props.disabledDelete?void 0:m=>{o&&o(u.props.name||""),a()},onClick:m=>{i(m,{target:m.currentTarget,element:u.props.children,name:u.props.name,disabledDelete:u.props.disabledDelete||!1})}}));return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:1,children:[p,_jsxruntime.jsxs.call(void 0, _material.Popover,{open:!!n||!1,onClose:()=>a(),anchorEl:l,elevation:0,sx:{"& .MuiPopover-paper":{minWidth:"300px",border:u=>`1px solid ${u.palette.border}`,borderRadius:"4px",pt:2,pl:1,pr:1,pb:2}},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[s==null?void 0:s.element,_jsxruntime.jsxs.call(void 0, _material.Stack,{pt:2,direction:"row",spacing:.5,justifyContent:"flex-end",children:[!(s!=null&&s.disabledDelete)&&_jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{o&&o((s==null?void 0:s.name)||""),a()},children:"Apagar"}),_jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{a(),r()},children:"Aplicar"})]})]})]})}function Qs(e){let n=e,{children:t,disabledDelete:r=!1}=n,o=w(n,["children","disabledDelete"]);return _jsxruntime.jsx.call(void 0, _material.Chip,c({},o))}var v3={Root:js,SearchTextField:Ws,Container:Vs,AdvancedContainer:zs,AdvancedActionsContainer:qs,AdvancedButton:$s,Provider:Au,ApplyButton:Hs,ResetButton:Us,Chips:Zs,Chip:Qs};var b3=v3;var _xdatagrid = require('@mui/x-data-grid');function Xs(r){var o=r,{onClick:e}=o,t=w(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{}),label:"Transport",color:"primary",onClick:()=>e&&e("transport")},t))}var Lu=_react.createContext.call(void 0, {});function el({children:e}){let[t,r]=_react.useState.call(void 0, []),[o,n]=_react.useState.call(void 0, !1),[i,a]=_react.useState.call(void 0, !1),l=_xdatagrid.useGridApiRef.call(void 0, );function s(){r([]),n(!0)}return _jsxruntime.jsx.call(void 0, Lu.Provider,{value:{apiRef:l,rowsSelectedId:t,clearCallback:o,breakpoint:i,setClearCallback:n,setBreakpoint:a,setRowsSelectedId:r,clearRowsSelectedId:s},children:e})}function ze(){return _react.useContext.call(void 0, Lu)}function tl(e){let{countTitle:t,gender:r}=e,{rowsSelectedId:o}=ze(),n=o==null?void 0:o.length,i=_react.useMemo.call(void 0, ()=>{if(!t)return"";let a=r==="feminino"?"selecionada":"selecionado",l=r==="feminino"?"selecionadas":"selecionados",s=r==="feminino"?"Nenhuma":"Nenhum";return n===1?`${t} ${a}`:n&&n>1?`${t.split(" ").map(p=>`${p}s`).join(" ")} ${l}`:`${s} ${t} ${a}`},[n]);return _jsxruntime.jsx.call(void 0, _material.Stack,{children:_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:[n&&n>0?n:""," ",i]})})}function rl(r){var o=r,{onClick:e}=o,t=w(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{}),label:"Delete",color:"primary",onClick:()=>{e&&e("delete")}},t))}function _r(e){let l=e,{isLoading:t,startIcon:r,children:o,title:n}=l,i=w(l,["isLoading","startIcon","children","title"]),{breakpoint:a}=ze();return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:a?_jsxruntime.jsx.call(void 0, _material.Tooltip,{title:o,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({},i),{color:"primary",disabled:t?!0:i.disabled,children:[r,t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"25%",bottom:"25%",left:"25%",right:"25%",transform:"translate(-50%, -50%)"}})]}))}):_jsxruntime.jsx.call(void 0, _material.Button,d(c({startIcon:r,disabled:t?!0:i.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"}},i),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{transition:"opacity 0.2s ease, width 0.2s ease",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"22%",left:"44%",transform:"translate(-50%, -50%)"}}),o]})}))})}var V3=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function ol(){let{apiRef:e}=ze(),t=r=>{e!=null&&e.current&&e.current.exportDataAsCsv(r)};return _jsxruntime.jsx.call(void 0, _r,{startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.FileDownload,{}),onClick:()=>t({getRowsToExport:V3}),children:"Exportar CSV"})}function nl(r){var o=r,{onClick:e}=o,t=w(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{}),label:"Edit",color:"primary",onClick:()=>e&&e("edit")},t))}function il(e){let{children:t,onClick:r}=e;return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_react.Children.map(t,o=>{if(_react.isValidElement.call(void 0, o))return _react.cloneElement.call(void 0, o,{onClick:r})})})}function al(e){let n=e,{event:t,onClick:r}=n,o=w(n,["event","onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({color:"primary",onClick:()=>{r&&r(t)}},o))}function sl(e){let{onChangePageSize:t,onChangePage:r,pagination:o,rowsPerPageOptions:n=[15,50,100,200]}=e,{page:i,pageSize:a=15,totalRecords:l}=o||{},s=_react.useMemo.call(void 0, ()=>o!=null&&o.lastPage?o.lastPage:(l||0)<a?1:Math.max(Math.ceil((l||0)/a)),[l,a]),p=_react.useMemo.call(void 0, ()=>{if((l||0)<a)return`Exibindo ${_hooks.pluralizar.call(void 0, l||0,"registro","registros",!0)}`;let f=a;if(i===s){let m=(l||0)%a;f=m===0?a:m}return`Exibindo ${_hooks.pluralizar.call(void 0, f||0,"registro","registros",!0)} de ${l}`},[o,s]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{width:"100%",direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:p}),!0&&_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"78px",fontSize:"8pt"},size:"small",value:a||0,select:!0,onChange:f=>{t&&t(parseInt(f.target.value))},children:n.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f,children:f},f))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:s||0,showFirstButton:!0,showLastButton:!0,onChange:(f,m)=>{r&&r(m)},page:i||0,color:"primary"})]})]})}function ll({children:e,breakpoints:t}){let{setBreakpoint:r}=ze(),o=_material.useTheme.call(void 0, ),n=_material.useMediaQuery.call(void 0, o.breakpoints.down(t||"md"));return _react.useEffect.call(void 0, ()=>{r(n)},[n]),_jsxruntime.jsx.call(void 0, _material.Stack,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:1,marginLeft:"auto",flexGrow:1,children:e})}function cl({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{component:_material.Paper,elevation:0,gap:1.5,flexDirection:"row",justifyContent:"space-between",alignItems:"center",p:1,borderRadius:"8px 8px 0 0",sx:{width:"100%"},children:e})}function pl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1.5},e))}function ul(e){return _jsxruntime.jsx.call(void 0, _material.TableFooter,d(c({},e),{sx:{height:"54px",paddingX:"12px",gap:"12px",display:"flex",alignItems:"center",backgroundColor:"white",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",borderTop:"1px solid #edf2f9"}}))}var _locales = require('@mui/x-data-grid/locales');var qu="./empty-data-NII6PKG2.svg";function dl(){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:qu,alt:"Imagem de notifica\xE7\xE3o",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Nenhum registro encontrado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",whiteSpace:"normal",children:"Tente outra pesquisa ou adicione um novo registro."})]})]})}var Zu="./error-GAPOPG36.svg";function hl({errorMessage:e}){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:Zu,alt:"Imagem de erro",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{gap:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Ops! Algo deu errado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",children:e})]})]})}var C6=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function gl(e){let D=e,{error:t,isLoading:r,isFetching:o,data:n,columns:i,controlledRowsSelectedId:a,onClearRowsSelectedId:l,onRowSelectionChange:s,onCellKeyDown:p,onRowDoubleClick:u,stackProps:f}=D,m=w(D,["error","isLoading","isFetching","data","columns","controlledRowsSelectedId","onClearRowsSelectedId","onRowSelectionChange","onCellKeyDown","onRowDoubleClick","stackProps"]),{rowsSelectedId:h,setRowsSelectedId:x,clearCallback:g,setClearCallback:k,apiRef:v}=ze(),P=_react.useMemo.call(void 0, ()=>F=>F.map(T=>T.headerName==="A\xE7\xF5es"?d(c({},T),{minWidth:T.minWidth||80,maxWidth:T.maxWidth||T.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}):d(c({},T),{flex:T.flex||1,minWidth:T.minWidth||100,headerClassName:T!=null&&T.enableStickyColumns?"sticky-header":"",cellClassName:T!=null&&T.enableStickyColumns?"sticky-cell":""})),[i]);_react.useEffect.call(void 0, ()=>{a&&x(a)},[a]),_react.useEffect.call(void 0, ()=>{g&&(l&&l([]),k(!1))},[g]);function C(F,T,te){switch(T.ctrlKey&&T.code==="KeyE"?"ctrl+e":T.code){case"Enter":T.preventDefault(),p&&p("edit",F.id);break;case"F3":T.preventDefault(),p&&p("edit",F.id);break;case"Delete":T.preventDefault(),p&&p("delete",F.id);break;case"ctrl+e":T.preventDefault(),(R=>{v!=null&&v.current&&v.current.exportDataAsCsv(R)})({getRowsToExport:C6});break;default:break}}function S(F,T,te){u&&u("edit",F.id)}return _jsxruntime.jsxs.call(void 0, _material.Stack,d(c({height:"100%",minHeight:"500px",position:"relative"},f),{children:[!r&&o&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{sx:{position:"absolute",top:0,right:0,left:0,zIndex:999,height:"3px"}}),_jsxruntime.jsx.call(void 0, _xdatagrid.DataGrid,c({apiRef:v,rows:n,columns:P(i),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:S,onCellKeyDown:C,disableRowSelectionOnClick:!0,rowSelectionModel:h,onRowSelectionModelChange:(F,T)=>{s&&s(F,T),!a&&x(F)},slots:{booleanCellFalseIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"error",sx:{fontSize:"10pt"}}),booleanCellTrueIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"success",sx:{fontSize:"10pt"}}),noRowsOverlay:()=>!r&&t?_jsxruntime.jsx.call(void 0, hl,{errorMessage:t}):_jsxruntime.jsx.call(void 0, dl,{})},slotProps:{loadingOverlay:{variant:"skeleton",noRowsVariant:"skeleton"}},disableColumnFilter:!0,localeText:_locales.ptBR.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))]}))}function yl({children:e,titleDivider:t=!1}){let r=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",fontSize:"14px",whiteSpace:"nowrap",sx:{borderRight:t?`solid 1px ${r.palette.grey[300]}`:"none",paddingRight:1.5},children:e})}function xl(o){var n=o,{children:e,height:t}=n,r=w(n,["children","height"]);let i=_react.useRef.call(void 0, null),[a,l]=_react.useState.call(void 0, 500);return _react.useEffect.call(void 0, ()=>{let s=()=>{let p=i.current;if(!p)return;let u=p.getBoundingClientRect().top;l(window.innerHeight-u)};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[]),_jsxruntime.jsx.call(void 0, _material.Stack,d(c({ref:i,sx:c({backgroundColor:"#f4f6fa",border:"1px solid #edf2f9",borderRadius:2,height:t||`calc(${a}px - 16px)`},r.sx)},r),{children:_jsxruntime.jsx.call(void 0, el,{children:e})}))}var M6={CellActionTransport:Xs,SelectionCounter:tl,CellActionDelete:rl,ExportCsvButton:ol,CellActionEdit:nl,CellActions:il,CellAction:al,Pagination:sl,Actions:ll,Toolbar:cl,Content:pl,Button:_r,Footer:ul,Table:gl,Title:yl,Root:xl},F6= exports.DataTableV2 =M6;exports.AlterarSenha = Vt; exports.Avatar = tu; exports.Breadcrumbs = Cu; exports.Button = N; exports.ButtonContainer = Se; exports.Checkbox = kl; exports.ColorsGrid = Pl; exports.Content = eu; exports.ContentTitle = j4; exports.CurrencyCellStyle = lb; exports.CurrencyTextField = $f; exports.DataTable = Sd; exports.DataTableOptions = Rn; exports.DataTableV2 = F6; exports.DeleteContainer = Mn; exports.Dialog = je; exports.DialogV2 = j; exports.DrawerMenu = Jp; exports.Editable = Fo; exports.Filter = b3; exports.FilterContainer = $n; exports.FilterControl = jr; exports.Flag = Ul; exports.FormContainer = Vn; exports.Header = i4; exports.Icon = xe; exports.LabelValue = qc; exports.Menu = O4; exports.MioAuth = Yp; exports.OptionStyles = sb; exports.PageTitle = Jc; exports.PasswordTextField = mt; exports.Profile = pu; exports.SearchTextField = Dt; exports.Surface = wt; exports.Tooltip = kt; exports.Transporter = Fi; exports.renderMenuItems = D4; exports.theme = H; exports.useFilter = Or; exports.useFilterApi = ke;
11
11
  /*! Bundled license information:
12
12
 
13
13
  react-is/cjs/react-is.production.min.js: