@data-c/ui 0.1.35 → 0.1.37

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 Wu=Object.create;var Jo=Object.defineProperty,Uu=Object.defineProperties,Hu=Object.getOwnPropertyDescriptor,qu=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertyNames,Cr=Object.getOwnPropertySymbols,Yu=Object.getPrototypeOf,en=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable;var qa=(t,e,r)=>e in t?Jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))en.call(e,r)&&qa(t,r,e[r]);if(Cr)for(var r of Cr(e))Ga.call(e,r)&&qa(t,r,e[r]);return t},g=(t,e)=>Uu(t,qu(e));var A=(t,e)=>{var r={};for(var o in t)en.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Cr)for(var o of Cr(t))e.indexOf(o)<0&&Ga.call(t,o)&&(r[o]=t[o]);return r};var le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ku=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Gu(e))!en.call(t,n)&&n!==r&&Jo(t,n,{get:()=>e[n],enumerable:!(o=Hu(e,n))||o.enumerable});return t};var Ge=(t,e,r)=>(r=t!=null?Wu(Yu(t)):{},Ku(e||!t||!t.__esModule?Jo(r,"default",{value:t,enumerable:!0}):r,t));var L=(t,e,r)=>new Promise((o,n)=>{var i=s=>{try{l(r.next(s))}catch(u){n(u)}},a=s=>{try{l(r.throw(s))}catch(u){n(u)}},l=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,a);l((r=r.apply(t,e)).next())});var Is=le(H=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,vn=ne?Symbol.for("react.element"):60103,bn=ne?Symbol.for("react.portal"):60106,Ar=ne?Symbol.for("react.fragment"):60107,Ir=ne?Symbol.for("react.strict_mode"):60108,Fr=ne?Symbol.for("react.profiler"):60114,Or=ne?Symbol.for("react.provider"):60109,Mr=ne?Symbol.for("react.context"):60110,Cn=ne?Symbol.for("react.async_mode"):60111,Dr=ne?Symbol.for("react.concurrent_mode"):60111,_r=ne?Symbol.for("react.forward_ref"):60112,Br=ne?Symbol.for("react.suspense"):60113,Xp=ne?Symbol.for("react.suspense_list"):60120,Rr=ne?Symbol.for("react.memo"):60115,$r=ne?Symbol.for("react.lazy"):60116,Jp=ne?Symbol.for("react.block"):60121,ef=ne?Symbol.for("react.fundamental"):60117,tf=ne?Symbol.for("react.responder"):60118,rf=ne?Symbol.for("react.scope"):60119;function ye(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case vn:switch(t=t.type,t){case Cn:case Dr:case Ar:case Fr:case Ir:case Br:return t;default:switch(t=t&&t.$$typeof,t){case Mr:case _r:case $r:case Rr:case Or:return t;default:return e}}case bn:return e}}}function As(t){return ye(t)===Dr}H.AsyncMode=Cn;H.ConcurrentMode=Dr;H.ContextConsumer=Mr;H.ContextProvider=Or;H.Element=vn;H.ForwardRef=_r;H.Fragment=Ar;H.Lazy=$r;H.Memo=Rr;H.Portal=bn;H.Profiler=Fr;H.StrictMode=Ir;H.Suspense=Br;H.isAsyncMode=function(t){return As(t)||ye(t)===Cn};H.isConcurrentMode=As;H.isContextConsumer=function(t){return ye(t)===Mr};H.isContextProvider=function(t){return ye(t)===Or};H.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===vn};H.isForwardRef=function(t){return ye(t)===_r};H.isFragment=function(t){return ye(t)===Ar};H.isLazy=function(t){return ye(t)===$r};H.isMemo=function(t){return ye(t)===Rr};H.isPortal=function(t){return ye(t)===bn};H.isProfiler=function(t){return ye(t)===Fr};H.isStrictMode=function(t){return ye(t)===Ir};H.isSuspense=function(t){return ye(t)===Br};H.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ar||t===Dr||t===Fr||t===Ir||t===Br||t===Xp||typeof t=="object"&&t!==null&&(t.$$typeof===$r||t.$$typeof===Rr||t.$$typeof===Or||t.$$typeof===Mr||t.$$typeof===_r||t.$$typeof===ef||t.$$typeof===tf||t.$$typeof===rf||t.$$typeof===Jp)};H.typeOf=ye});var Fs=le(q=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,n=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function b(E){return typeof E=="string"||typeof E=="function"||E===o||E===u||E===i||E===n||E===f||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===x||E.$$typeof===d||E.$$typeof===a||E.$$typeof===l||E.$$typeof===p||E.$$typeof===w||E.$$typeof===C||E.$$typeof===S||E.$$typeof===h)}function T(E){if(typeof E=="object"&&E!==null){var Xo=E.$$typeof;switch(Xo){case e:var br=E.type;switch(br){case s:case u:case o:case i:case n:case f:return br;default:var Ha=br&&br.$$typeof;switch(Ha){case l:case p:case x:case d:case a:return Ha;default:return Xo}}case r:return Xo}}}var O=s,R=u,D=l,te=a,G=e,oe=p,F=o,_=x,y=d,v=r,P=i,k=n,I=f,B=!1;function M(E){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(E)||T(E)===s}function $(E){return T(E)===u}function z(E){return T(E)===l}function W(E){return T(E)===a}function V(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function de(E){return T(E)===p}function se(E){return T(E)===o}function qe(E){return T(E)===x}function Lu(E){return T(E)===d}function Nu(E){return T(E)===r}function zu(E){return T(E)===i}function Vu(E){return T(E)===n}function ju(E){return T(E)===f}q.AsyncMode=O,q.ConcurrentMode=R,q.ContextConsumer=D,q.ContextProvider=te,q.Element=G,q.ForwardRef=oe,q.Fragment=F,q.Lazy=_,q.Memo=y,q.Portal=v,q.Profiler=P,q.StrictMode=k,q.Suspense=I,q.isAsyncMode=M,q.isConcurrentMode=$,q.isContextConsumer=z,q.isContextProvider=W,q.isElement=V,q.isForwardRef=de,q.isFragment=se,q.isLazy=qe,q.isMemo=Lu,q.isPortal=Nu,q.isProfiler=zu,q.isStrictMode=Vu,q.isSuspense=ju,q.isValidElementType=b,q.typeOf=T}()});var Sn=le((aC,wn)=>{"use strict";process.env.NODE_ENV==="production"?wn.exports=Is():wn.exports=Fs()});var Ds=le((sC,Ms)=>{"use strict";var Os=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable;function af(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function sf(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[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}}Ms.exports=sf()?Object.assign:function(t,e){for(var r,o=af(t),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)of.call(r,a)&&(o[a]=r[a]);if(Os){n=Os(r);for(var l=0;l<n.length;l++)nf.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o}});var Lr=le((lC,_s)=>{"use strict";var lf="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";_s.exports=lf});var Tn=le((uC,Bs)=>{Bs.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var zs=le((cC,Ns)=>{"use strict";var Pn=function(){};process.env.NODE_ENV!=="production"&&(Rs=Lr(),Nr={},$s=Tn(),Pn=function(t){var e="Warning: "+t;typeof console!="undefined"&&console.error(e);try{throw new Error(e)}catch(r){}});var Rs,Nr,$s;function Ls(t,e,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in t)if($s(t,i)){var a;try{if(typeof t[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 t[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=t[i](e,i,o,r,null,Rs)}catch(u){a=u}if(a&&!(a instanceof Error)&&Pn((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 Nr)){Nr[a.message]=!0;var s=n?n():"";Pn("Failed "+r+" type: "+a.message+(s!=null?s:""))}}}}Ls.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Nr={})};Ns.exports=Ls});var Ws=le((pC,js)=>{"use strict";var uf=Sn(),cf=Ds(),yt=Lr(),kn=Tn(),Vs=zs(),xt=function(){};process.env.NODE_ENV!=="production"&&(xt=function(t){var e="Warning: "+t;typeof console!="undefined"&&console.error(e);try{throw new Error(e)}catch(r){}});function zr(){return null}js.exports=function(t,e){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(y){var v=y&&(r&&y[r]||y[o]);if(typeof v=="function")return v}var i="<<anonymous>>",a={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:f(),arrayOf:m,element:d(),elementType:x(),instanceOf:h,node:b(),objectOf:C,oneOf:w,oneOfType:S,shape:O,exact:R};function l(y,v){return y===v?y!==0||1/y===1/v:y!==y&&v!==v}function s(y,v){this.message=y,this.data=v&&typeof v=="object"?v:{},this.stack=""}s.prototype=Error.prototype;function u(y){if(process.env.NODE_ENV!=="production")var v={},P=0;function k(B,M,$,z,W,V,de){if(z=z||i,V=V||$,de!==yt){if(e){var se=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 se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var qe=z+":"+$;!v[qe]&&P<3&&(xt("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."),v[qe]=!0,P++)}}return M[$]==null?B?M[$]===null?new s("The "+W+" `"+V+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new s("The "+W+" `"+V+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:y(M,$,z,W,V)}var I=k.bind(null,!1);return I.isRequired=k.bind(null,!0),I}function p(y){function v(P,k,I,B,M,$){var z=P[k],W=G(z);if(W!==y){var V=oe(z);return new s("Invalid "+B+" `"+M+"` of type "+("`"+V+"` supplied to `"+I+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return u(v)}function f(){return u(zr)}function m(y){function v(P,k,I,B,M){if(typeof y!="function")return new s("Property `"+M+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var $=P[k];if(!Array.isArray($)){var z=G($);return new s("Invalid "+B+" `"+M+"` of type "+("`"+z+"` supplied to `"+I+"`, expected an array."))}for(var W=0;W<$.length;W++){var V=y($,W,I,B,M+"["+W+"]",yt);if(V instanceof Error)return V}return null}return u(v)}function d(){function y(v,P,k,I,B){var M=v[P];if(!t(M)){var $=G(M);return new s("Invalid "+I+" `"+B+"` of type "+("`"+$+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return u(y)}function x(){function y(v,P,k,I,B){var M=v[P];if(!uf.isValidElementType(M)){var $=G(M);return new s("Invalid "+I+" `"+B+"` of type "+("`"+$+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return u(y)}function h(y){function v(P,k,I,B,M){if(!(P[k]instanceof y)){var $=y.name||i,z=_(P[k]);return new s("Invalid "+B+" `"+M+"` of type "+("`"+z+"` supplied to `"+I+"`, expected ")+("instance of `"+$+"`."))}return null}return u(v)}function w(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?xt("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])."):xt("Invalid argument supplied to oneOf, expected an array.")),zr;function v(P,k,I,B,M){for(var $=P[k],z=0;z<y.length;z++)if(l($,y[z]))return null;var W=JSON.stringify(y,function(de,se){var qe=oe(se);return qe==="symbol"?String(se):se});return new s("Invalid "+B+" `"+M+"` of value `"+String($)+"` "+("supplied to `"+I+"`, expected one of "+W+"."))}return u(v)}function C(y){function v(P,k,I,B,M){if(typeof y!="function")return new s("Property `"+M+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var $=P[k],z=G($);if(z!=="object")return new s("Invalid "+B+" `"+M+"` of type "+("`"+z+"` supplied to `"+I+"`, expected an object."));for(var W in $)if(kn($,W)){var V=y($,W,I,B,M+"."+W,yt);if(V instanceof Error)return V}return null}return u(v)}function S(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&xt("Invalid argument supplied to oneOfType, expected an instance of array."),zr;for(var v=0;v<y.length;v++){var P=y[v];if(typeof P!="function")return xt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(P)+" at index "+v+"."),zr}function k(I,B,M,$,z){for(var W=[],V=0;V<y.length;V++){var de=y[V],se=de(I,B,M,$,z,yt);if(se==null)return null;se.data&&kn(se.data,"expectedType")&&W.push(se.data.expectedType)}var qe=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new s("Invalid "+$+" `"+z+"` supplied to "+("`"+M+"`"+qe+"."))}return u(k)}function b(){function y(v,P,k,I,B){return D(v[P])?null:new s("Invalid "+I+" `"+B+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return u(y)}function T(y,v,P,k,I){return new s((y||"React class")+": "+v+" type `"+P+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function O(y){function v(P,k,I,B,M){var $=P[k],z=G($);if(z!=="object")return new s("Invalid "+B+" `"+M+"` of type `"+z+"` "+("supplied to `"+I+"`, expected `object`."));for(var W in y){var V=y[W];if(typeof V!="function")return T(I,B,M,W,oe(V));var de=V($,W,I,B,M+"."+W,yt);if(de)return de}return null}return u(v)}function R(y){function v(P,k,I,B,M){var $=P[k],z=G($);if(z!=="object")return new s("Invalid "+B+" `"+M+"` of type `"+z+"` "+("supplied to `"+I+"`, expected `object`."));var W=cf({},P[k],y);for(var V in W){var de=y[V];if(kn(y,V)&&typeof de!="function")return T(I,B,M,V,oe(de));if(!de)return new s("Invalid "+B+" `"+M+"` key `"+V+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(P[k],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(y),null," "));var se=de($,V,I,B,M+"."+V,yt);if(se)return se}return null}return u(v)}function D(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(D);if(y===null||t(y))return!0;var v=n(y);if(v){var P=v.call(y),k;if(v!==y.entries){for(;!(k=P.next()).done;)if(!D(k.value))return!1}else for(;!(k=P.next()).done;){var I=k.value;if(I&&!D(I[1]))return!1}}else return!1;return!0;default:return!1}}function te(y,v){return y==="symbol"?!0:v?v["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&v instanceof Symbol:!1}function G(y){var v=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":te(v,y)?"symbol":v}function oe(y){if(typeof y=="undefined"||y===null)return""+y;var v=G(y);if(v==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return v}function F(y){var v=oe(y);switch(v){case"array":case"object":return"an "+v;case"boolean":case"date":case"regexp":return"a "+v;default:return v}}function _(y){return!y.constructor||!y.constructor.name?i:y.constructor.name}return a.checkPropTypes=Vs,a.resetWarningCache=Vs.resetWarningCache,a.PropTypes=a,a}});var Gs=le((fC,qs)=>{"use strict";var pf=Lr();function Us(){}function Hs(){}Hs.resetWarningCache=Us;qs.exports=function(){function t(o,n,i,a,l,s){if(s!==pf){var u=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 u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Hs,resetWarningCache:Us};return r.PropTypes=r,r}});var Vr=le((dC,En)=>{process.env.NODE_ENV!=="production"?(Ys=Sn(),Ks=!0,En.exports=Ws()(Ys.isElement,Ks)):En.exports=Gs()();var Ys,Ks});var Js=le(Y=>{"use strict";var Fn=Symbol.for("react.transitional.element"),On=Symbol.for("react.portal"),jr=Symbol.for("react.fragment"),Wr=Symbol.for("react.strict_mode"),Ur=Symbol.for("react.profiler");Symbol.for("react.provider");var Hr=Symbol.for("react.consumer"),qr=Symbol.for("react.context"),Gr=Symbol.for("react.forward_ref"),Yr=Symbol.for("react.suspense"),Kr=Symbol.for("react.suspense_list"),Zr=Symbol.for("react.memo"),Qr=Symbol.for("react.lazy"),df=Symbol.for("react.view_transition"),mf=Symbol.for("react.client.reference");function we(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Fn:switch(t=t.type,t){case jr:case Ur:case Wr:case Yr:case Kr:case df:return t;default:switch(t=t&&t.$$typeof,t){case qr:case Gr:case Qr:case Zr:return t;case Hr:return t;default:return e}}case On:return e}}}Y.ContextConsumer=Hr;Y.ContextProvider=qr;Y.Element=Fn;Y.ForwardRef=Gr;Y.Fragment=jr;Y.Lazy=Qr;Y.Memo=Zr;Y.Portal=On;Y.Profiler=Ur;Y.StrictMode=Wr;Y.Suspense=Yr;Y.SuspenseList=Kr;Y.isContextConsumer=function(t){return we(t)===Hr};Y.isContextProvider=function(t){return we(t)===qr};Y.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Fn};Y.isForwardRef=function(t){return we(t)===Gr};Y.isFragment=function(t){return we(t)===jr};Y.isLazy=function(t){return we(t)===Qr};Y.isMemo=function(t){return we(t)===Zr};Y.isPortal=function(t){return we(t)===On};Y.isProfiler=function(t){return we(t)===Ur};Y.isStrictMode=function(t){return we(t)===Wr};Y.isSuspense=function(t){return we(t)===Yr};Y.isSuspenseList=function(t){return we(t)===Kr};Y.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===jr||t===Ur||t===Wr||t===Yr||t===Kr||typeof t=="object"&&t!==null&&(t.$$typeof===Qr||t.$$typeof===Zr||t.$$typeof===qr||t.$$typeof===Hr||t.$$typeof===Gr||t.$$typeof===mf||t.getModuleId!==void 0)};Y.typeOf=we});var el=le(K=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(h){if(typeof h=="object"&&h!==null){var w=h.$$typeof;switch(w){case e:switch(h=h.type,h){case o:case i:case n:case u:case p:case d:return h;default:switch(h=h&&h.$$typeof,h){case l:case s:case m:case f:return h;case a:return h;default:return w}}case r:return w}}}var e=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"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");K.ContextConsumer=a,K.ContextProvider=l,K.Element=e,K.ForwardRef=s,K.Fragment=o,K.Lazy=m,K.Memo=f,K.Portal=r,K.Profiler=i,K.StrictMode=n,K.Suspense=u,K.SuspenseList=p,K.isContextConsumer=function(h){return t(h)===a},K.isContextProvider=function(h){return t(h)===l},K.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},K.isForwardRef=function(h){return t(h)===s},K.isFragment=function(h){return t(h)===o},K.isLazy=function(h){return t(h)===m},K.isMemo=function(h){return t(h)===f},K.isPortal=function(h){return t(h)===r},K.isProfiler=function(h){return t(h)===i},K.isStrictMode=function(h){return t(h)===n},K.isSuspense=function(h){return t(h)===u},K.isSuspenseList=function(h){return t(h)===p},K.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===o||h===i||h===n||h===u||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===m||h.$$typeof===f||h.$$typeof===l||h.$$typeof===a||h.$$typeof===s||h.$$typeof===x||h.getModuleId!==void 0)},K.typeOf=t}()});var Dn=le((wC,Mn)=>{"use strict";process.env.NODE_ENV==="production"?Mn.exports=Js():Mn.exports=el()});var Rl=le((cP,Bl)=>{"use strict";function at(t){this._maxSize=t,this.clear()}at.prototype.clear=function(){this._size=0,this._values=Object.create(null)};at.prototype.get=function(t){return this._values[t]};at.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var wm=/[^.^\]^[]+|(?=\[\]|\.\.)/g,_l=/^\d+$/,Sm=/^\d/,Tm=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Pm=/^\s*(['"]?)(.*?)(\1)\s*$/,fi=512,Ol=new at(fi),Ml=new at(fi),Dl=new at(fi);Bl.exports={Cache:at,split:pi,normalizePath:ci,setter:function(t){var e=ci(t);return Ml.get(t)||Ml.set(t,function(o,n){for(var i=0,a=e.length,l=o;i<a-1;){var s=e[i];if(s==="__proto__"||s==="constructor"||s==="prototype")return o;l=l[e[i++]]}l[e[i]]=n})},getter:function(t,e){var r=ci(t);return Dl.get(t)||Dl.set(t,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!e)n=n[r[i++]];else return;return n})},join:function(t){return t.reduce(function(e,r){return e+(di(r)||_l.test(r)?"["+r+"]":(e?".":"")+r)},"")},forEach:function(t,e,r){km(Array.isArray(t)?t:pi(t),e,r)}};function ci(t){return Ol.get(t)||Ol.set(t,pi(t).map(function(e){return e.replace(Pm,"$2")}))}function pi(t){return t.match(wm)||[""]}function km(t,e,r){var o=t.length,n,i,a,l;for(i=0;i<o;i++)n=t[i],n&&(Im(n)&&(n='"'+n+'"'),l=di(n),a=!l&&/^\d+$/.test(n),e.call(r,n,l,a,i,t))}function di(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function Em(t){return t.match(Sm)&&!t.match(_l)}function Am(t){return Tm.test(t)}function Im(t){return!di(t)&&(Em(t)||Am(t))}});var Nl=le((pP,Ll)=>{var Fm=/[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,go=t=>t.match(Fm)||[],yo=t=>t[0].toUpperCase()+t.slice(1),mi=(t,e)=>go(t).join(e).toLowerCase(),$l=t=>go(t).reduce((e,r)=>`${e}${e?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),Om=t=>yo($l(t)),Mm=t=>mi(t,"_"),Dm=t=>mi(t,"-"),_m=t=>yo(mi(t," ")),Bm=t=>go(t).map(yo).join(" ");Ll.exports={words:go,upperFirst:yo,camelCase:$l,pascalCase:Om,snakeCase:Mm,kebabCase:Dm,sentenceCase:_m,titleCase:Bm}});var Vl=le((fP,hi)=>{hi.exports=function(t){return zl(Rm(t),t)};hi.exports.array=zl;function zl(t,e){var r=t.length,o=new Array(r),n={},i=r,a=$m(e),l=Lm(t);for(e.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)n[i]||s(t[i],i,new Set);return o;function s(u,p,f){if(f.has(u)){var m;try{m=", node was:"+JSON.stringify(u)}catch(h){m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!n[p]){n[p]=!0;var d=a.get(u)||new Set;if(d=Array.from(d),p=d.length){f.add(u);do{var x=d[--p];s(x,l.get(x),f)}while(p);f.delete(u)}o[--r]=u}}}function Rm(t){for(var e=new Set,r=0,o=t.length;r<o;r++){var n=t[r];e.add(n[0]),e.add(n[1])}return Array.from(e)}function $m(t){for(var e=new Map,r=0,o=t.length;r<o;r++){var n=t[r];e.has(n[0])||e.set(n[0],new Set),e.has(n[1])||e.set(n[1],new Set),e.get(n[0]).add(n[1])}return e}function Lm(t){for(var e=new Map,r=0,o=t.length;r<o;r++)e.set(t[r],r);return e}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var Xu=t=>{let n=t,{isLoading:e,children:r}=n,o=A(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,g(c({},o),{disabled:e?!0:o.disabled,children:e?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},N= exports.Button =Xu;function Ce(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},t))}function Ka(t){let o=t,{label:e}=o,r=A(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:e,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}var _polished = require('polished');var _styles = require('@mui/material/styles');var dt="#4BA9C1",ac="#2C96B3",sc=32,lc={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:dt,dark:ac},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:dt,borderRadius:"0px"},"& .MuiSvgIcon-root":{color:dt},"& .MuiTypography-root":{color:dt}},":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:`${sc}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:dt},"& .MuiTypography-root":{color:dt}},":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:{}}}}},uc=_styles.createTheme.call(void 0, lc),cc=_styles.responsiveFontSizes.call(void 0, uc),U= exports.theme =cc;var fc={"primary-light":U.palette.primary.light,primary:U.palette.primary.main,"primary-dark":U.palette.primary.dark,"text-secondary":U.palette.text.secondary,"text-primary":U.palette.text.primary,"background-paper":U.palette.background.paper,background:U.palette.background.default,"error-light":U.palette.error.light,error:U.palette.error.main,"erro-drark":U.palette.error.dark,"warning-light":U.palette.warning.light,warning:U.palette.warning.main,"warning-dark":U.palette.warning.dark,"success-light":U.palette.success.light,success:U.palette.success.main,"success-dark":U.palette.success.dark,"grey-100":U.palette.grey[100],"grey-200":U.palette.grey[200],"grey-300":U.palette.grey[300],"grey-400":U.palette.grey[400],"grey-500":U.palette.grey[500],"grey-600":U.palette.grey[600],"grey-700":U.palette.grey[700],"grey-800":U.palette.grey[800]};function Qa(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(fc).map(([t,e])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:e,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:U.typography.fontFamily,color:_polished.getContrast.call(void 0, e,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:t}),_jsxruntime.jsx.call(void 0, "span",{children:e})]})},t))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var _n = _interopRequireWildcard(_react); var ll = _interopRequireWildcard(_react); var St = _interopRequireWildcard(_react);function Ja(t){if(!t)return 0;let e=String(t);return e=e.replace(/\./g,"").replace(/,/g,"."),parseFloat(e)}var rn=null,es=_react.forwardRef.call(void 0, (t,e)=>{let l=t,{value:r,onChange:o}=l,n=A(l,["value","onChange"]);rn=null;let i=_react.useCallback.call(void 0, s=>{let u=s.target.value||"0.00";_hooks.isValidNumber.call(void 0, u)&&(rn==="Backspace"?u=(Ja(u)/10).toFixed(2):u=(Ja(u)*10).toFixed(2),o&&(s.target.value=u,o(s,u)))},[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=>{rn=s.key},onSelect:s=>{a(s)},onChange:i,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:e,sx:{"& .MuiInputBase-input":{textAlign:"right"}}},n))});es.defaultProps={value:0};var vc=es;var _iconsmaterial = require('@mui/icons-material');var ts={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 Ye(t){let{cancelLabel:e,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=t;return _jsxruntime.jsxs.call(void 0, Ce,{children:[n&&_jsxruntime.jsx.call(void 0, N,{onClick:()=>{n()},color:ts[o||"content"].cancel,children:e}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>{i&&i()},color:ts[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var Cc={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};Ye.defaultProps=Cc;function $e(t){let{title:e,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:l}=t,s=_material.useTheme.call(void 0, ),u=o==="none"?null:o||_jsxruntime.jsx.call(void 0, Ye,c({onCancel:()=>{n&&n({},"backdropClick")},onConfirm:()=>{i&&i()},type:a},l)),p=_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,g(c({},t),{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:[p&&_jsxruntime.jsx.call(void 0, _material.Icon,{sx:{mr:1},fontSize:"medium",children:p}),e]})}),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:u})]}))}$e.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function nn(t){let{formValues:e,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=t;return _jsxruntime.jsx.call(void 0, Ye,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(e),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function an(t){let{isOpenConfirm:e}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:l}=t;return _jsxruntime.jsx.call(void 0, $e,{type:o,open:e,title:n,actions:a||_jsxruntime.jsx.call(void 0, nn,{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 Lc={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=Lc;var _muidatatables = require('mui-datatables'); var _muidatatables2 = _interopRequireDefault(_muidatatables);var qc=t=>{let{count:e,rowsPerPage:r,page:o,changePage:n,changeRowsPerPage:i,rowsPerPageOptions:a}=t,l=_react.useMemo.call(void 0, ()=>Math.max(0,Math.ceil(e/r)),[e,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,u)=>{n(u)},page:o,color:"primary"})]})})})},as=qc;function Sr(t){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},t))}var ss=_muidatatables2.default,rp={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"}},op=t=>({filterType:"textField",selectableRows:"none",elevation:0,responsive:"standard",print:!1,download:!1,filter:!1,search:!1,sort:!1,viewColumns:!1,textLabels:rp,serverSide:!0,rowsPerPageOptions:[15,50,100],rowsPerPage:15,fixedHeader:!0,fixedSelectColumn:!1,tableBodyMaxHeight:t}),np=t=>{let T=t,{surface:e,error:r,tableTitle:o,isLoading:n,isFetching:i,data:a,columns:l,options:s,pagination:u,changePage:p,changePageSize:f,changeSort:m}=T,d=A(T,["surface","error","tableTitle","isLoading","isFetching","data","columns","options","pagination","changePage","changePageSize","changeSort"]),x=_material.useTheme.call(void 0, ),w=_material.useMediaQuery.call(void 0, x.breakpoints.up("xl"))?75:70,C=u?`${w}vh`:`calc(${w}vh + 65px)`,S=op(C),b=s||{};return b&&(p&&(b.onChangePage=p),f&&(b.onChangeRowsPerPage=f),m&&(b.onColumnSortChange=m),b.customFooter=(O,R,D,te,G,oe)=>!u||n?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{}):_jsxruntime.jsx.call(void 0, as,{count:u.totalRecords,page:u.page,rowsPerPage:u.pageSize,rowsPerPageOptions:(b==null?void 0:b.rowsPerPageOptions)||(S==null?void 0:S.rowsPerPageOptions),changeRowsPerPage:b==null?void 0:b.onChangeRowsPerPage,changePage:b==null?void 0:b.onChangePage,textLabels:oe})),_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})}),e&&_jsxruntime.jsx.call(void 0, Sr,{children:_jsxruntime.jsx.call(void 0, ss,c({title:o,data:a,columns:l,options:c(c({},S),b)},d))}),!e&&_jsxruntime.jsx.call(void 0, ss,c({title:o,data:a,columns:l,options:c(c({},S),b)},d))]})},ip= exports.DataTable =np;var dp=_styles.styled.call(void 0, r=>{var o=r,{className:t}=o,e=A(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,g(c({},e),{classes:{popper:t}}))})(({theme:t})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:t.typography.pxToRem(12),border:"1px solid #dadde9"}})),mp={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},hp=t=>{let{title:e,type:r}=t;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:mp[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:e})]})},cs=t=>{let i=t,{type:e,children:r,title:o}=i,n=A(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, dp,g(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, hp,{title:o||"",type:e}),enterDelay:300},n),{children:r}))};cs.defaultProps={type:"info"};var mt=cs;var Jv=()=>({style:{width:"80px",textAlign:"center"}}),eb= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function ln(t){let{onClick:e,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:l,disabled:s,disabledUpdateButton:u,disabledDeleteButton:p,disabledTransporterButton:f}=t;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:m,icon:d,iconButtonProps:x,tooltip:h,visible:w,disabled:C,badge:S})=>w===null||!!w&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:S,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,g(c({onClick:b=>e(m,r,b),size:"small",disabled:C},x),{children:[h&&_jsxruntime.jsx.call(void 0, mt,{type:h.type,title:h.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:d})}),!h&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:d})]}),m)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:m=>e("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, mt,{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=>e("edit",r,m),disabled:s||u,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, mt,{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=>e("delete",r,m),color:"primary",disabled:s||p,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, mt,{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"})})]})]})}ln.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function kr(t){let{renderLabel:e,disableds:r}=t,{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 p=!1,f=Object.keys(a||{});for(let m=0;m<f.length;m++){let d=a[f[m]];if(Array.isArray(d)&&d.length>0){p=!0;break}else if(!Array.isArray(d)&&d){p=!0;break}}return p}return!1},[a]),s=_react.useCallback.call(void 0, u=>e?e(i[u].label,a[u]):`${i[u].label} - ${a&&a[u]}`,[e,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(u=>{let p=Array.isArray(r)&&r.includes(u),f;if(p||(f=()=>{o&&o(u)}),Array.isArray(a[u])&&a[u].length>0)return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(u),onDelete:f,variant:"outlined"},u);if(!Array.isArray(a[u])&&a[u])return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(u),onDelete:f,variant:"outlined"},u)})}),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 Er(t){let a=t,{drawerTitle:e,actions:r,onClose:o,children:n}=a,i=A(a,["drawerTitle","actions","onClose","children"]);return _jsxruntime.jsx.call(void 0, _material.Drawer,g(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:e}),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})]})}))}Er.defaultProps={anchor:"right"};var _p=()=>{let{applyFilterValues:t,closeFilter:e,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){e()}function n(){t(),e()}function i(){r&&(r(),e())}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"]})]})},Bp=t=>{let{title:e,children:r,onApplyFilters:o,drawerProps:n}=t,{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, Er,g(c({},n),{drawerTitle:e,open:i,children:r,onClose:()=>l(),actions:_jsxruntime.jsx.call(void 0, _p,{})}))};function mn(t){let{triggerButtonLabel:e,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:l,disableds:s,disableFilterControl:u,drawerProps:p}=t,{openFilter:f}=_providers.useFilterApi.call(void 0, ),m=o==="none"?null:o||_jsxruntime.jsx.call(void 0, _material.Button,g(c({variant:"contained",onClick:()=>{f()}},r),{children:e||"Adicionar"}));return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[u&&m,!u&&_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, kr,{renderLabel:l,disableds:s}),m]}),_jsxruntime.jsx.call(void 0, Bp,g(c({},p),{onApplyFilters:a,title:n||"",children:i}))]})}mn.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function xs(t){let{isFlagged:e,type:r}=t;return e?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function hn(t){let{formValues:e,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=t;return _jsxruntime.jsx.call(void 0, Ye,{confirmLabel:a||"Salvar",onConfirm:()=>n(e),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function yn(t){let{view:e,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:l,triggerButtonProps:s,confirmButtonLabel:u}=t,{isOpen:p}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:m}=_providers.useFormApi.call(void 0, ),d=o||_jsxruntime.jsx.call(void 0, hn,{hideCancelButton:e==="plain",confirmButtonLabel:u,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,g(c({variant:"contained",onClick:()=>{m()}},s),{children:l||"Adicionar"}));return e==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[x,_jsxruntime.jsx.call(void 0, $e,g(c({},a),{onClose:()=>{f()},open:!!p,children:r,actions:d}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,d]})}var Hp={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};yn.defaultProps=Hp;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function gt(t,...e){let r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${t}; visit ${r} for the full message.`}function bs(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Cs={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 ws(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Gp=!1,Yp=/[A-Z]|^ms/g,Kp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ks=function(e){return e.charCodeAt(1)===45},Ss=function(e){return e!=null&&typeof e!="boolean"},xn=ws(function(t){return ks(t)?t:t.replace(Yp,"-$&").toLowerCase()}),Ts=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Kp,function(o,n,i){return Me={name:n,styles:i,next:Me},n})}return Cs[e]!==1&&!ks(e)&&typeof r=="number"&&r!==0?r+"px":r},Zp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Wt(t,e,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 Me={name:n.name,styles:n.styles,next:Me},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Me={name:a.name,styles:a.styles,next:Me},a=a.next;var l=i.styles+";";return l}return Qp(t,e,r)}case"function":{if(t!==void 0){var s=Me,u=r(t);return Me=s,Wt(t,e,u)}break}}var p=r;if(e==null)return p;var f=e[p];return f!==void 0?f:p}function Qp(t,e,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Wt(t,e,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;e!=null&&e[l]!==void 0?o+=i+"{"+e[l]+"}":Ss(l)&&(o+=xn(i)+":"+Ts(i,l)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&Gp)throw new Error(Zp);if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var s=0;s<a.length;s++)Ss(a[s])&&(o+=xn(i)+":"+Ts(i,a[s])+";");else{var u=Wt(t,e,a);switch(i){case"animation":case"animationName":{o+=xn(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}}return o}var Ps=/label:\s*([^\s;{]+)\s*(;|$)/g,Me;function Es(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,n="";Me=void 0;var i=t[0];if(i==null||i.raw===void 0)o=!1,n+=Wt(r,e,i);else{var a=i;n+=a[0]}for(var l=1;l<t.length;l++)if(n+=Wt(r,e,t[l]),o){var s=i;n+=s[l]}Ps.lastIndex=0;for(var u="",p;(p=Ps.exec(n))!==null;)u+="-"+p[1];var f=bs(n)+u;return{name:f,styles:n,next:Me}}var _react2 = require('@emotion/react');function An(t,e){let r=_styled2.default.call(void 0, t,e);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof t=="string"?`"${t}"`:"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 Qs(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}var Zs=[];function In(t){return Zs[0]=t,Es(Zs)}var Bn=Ge(Dn());function De(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function tl(t){if(_n.isValidElement(t)||(0,Bn.isValidElementType)(t)||!De(t))return t;let e={};return Object.keys(t).forEach(r=>{e[r]=tl(t[r])}),e}function Se(t,e,r={clone:!0}){let o=r.clone?c({},t):t;return De(t)&&De(e)&&Object.keys(e).forEach(n=>{_n.isValidElement(e[n])||(0,Bn.isValidElementType)(e[n])?o[n]=e[n]:De(e[n])&&Object.prototype.hasOwnProperty.call(t,n)&&De(t[n])?o[n]=Se(t[n],e[n],r):r.clone?o[n]=De(e[n])?tl(e[n]):e[n]:o[n]=e[n]}),o}var hf=t=>{let e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,o)=>r.val-o.val),e.reduce((r,o)=>g(c({},r),{[o.key]:o.val}),{})};function Rn(t){let m=t,{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=m,n=A(m,["values","unit","step"]),i=hf(e),a=Object.keys(i);function l(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r})`}function s(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-o/100}${r})`}function u(d,x){let h=a.indexOf(x);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r}) and (max-width:${(h!==-1&&typeof e[a[h]]=="number"?e[a[h]]:x)-o/100}${r})`}function p(d){return a.indexOf(d)+1<a.length?u(d,a[a.indexOf(d)+1]):l(d)}function f(d){let x=a.indexOf(d);return x===0?l(a[1]):x===a.length-1?s(a[x]):u(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return c({keys:a,values:i,up:l,down:s,between:u,only:p,not:f,unit:r},n)}function $n(t,e){if(!t.containerQueries)return e;let r=Object.keys(e).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=e[n];return delete o[n],o[n]=i,o},c({},e)):e}function Ln(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function Nn(t,e){let r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
4
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:gt(18,`(${e})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return t.containerQueries(n).up(i)}function Xr(t){let e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>e(t.breakpoints.up(...l),a),i.down=(...l)=>e(t.breakpoints.down(...l),a),i.between=(...l)=>e(t.breakpoints.between(...l),a),i.only=(...l)=>e(t.breakpoints.only(...l),a),i.not=(...l)=>{let s=e(t.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),g(c({},t),{containerQueries:n})}var gf={borderRadius:4},rl=gf;var vt=Ge(Vr()),yf=process.env.NODE_ENV!=="production"?vt.default.oneOfType([vt.default.number,vt.default.string,vt.default.object,vt.default.array]):{},xe=yf;function xf(t,e){return e?Se(t,e,{clone:!1}):t}var Le=xf;var Ut={xs:0,sm:600,md:900,lg:1200,xl:1536},ol={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Ut[t]}px)`},vf={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Ut[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function ie(t,e,r){let o=t.theme||{};if(Array.isArray(e)){let i=o.breakpoints||ol;return e.reduce((a,l,s)=>(a[i.up(i.keys[s])]=r(e[s]),a),{})}if(typeof e=="object"){let i=o.breakpoints||ol;return Object.keys(e).reduce((a,l)=>{if(Ln(i.keys,l)){let s=Nn(o.containerQueries?o:vf,l);s&&(a[s]=r(e[l],l))}else if(Object.keys(i.values||Ut).includes(l)){let s=i.up(l);a[s]=r(e[l],l)}else{let s=l;a[s]=e[s]}return a},{})}return r(e)}function zn(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((o,n)=>{let i=t.up(n);return o[i]={},o},{}))||{}}function Vn(t,e){return t.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},e)}function nl(t,...e){let r=zn(t),o=[r,...e].reduce((n,i)=>Se(n,i),{});return Vn(Object.keys(r),o)}function bf(t,e){if(typeof t!="object")return{};let r={},o=Object.keys(e);return Array.isArray(t)?o.forEach((n,i)=>{i<t.length&&(r[n]=!0)}):o.forEach(n=>{t[n]!=null&&(r[n]=!0)}),r}function Jr({values:t,breakpoints:e,base:r}){let o=r||bf(t,e),n=Object.keys(o);if(n.length===0)return t;let i;return n.reduce((a,l,s)=>(Array.isArray(t)?(a[l]=t[s]!=null?t[s]:t[i],i=s):typeof t=="object"?(a[l]=t[l]!=null?t[l]:t[i],i=l):a[l]=t,a),{})}function Qe(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":gt(7));return t.charAt(0).toUpperCase()+t.slice(1)}function bt(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){let o=`vars.${e}`.split(".").reduce((n,i)=>n&&n[i]?n[i]:null,t);if(o!=null)return o}return e.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,t)}function Ht(t,e,r,o=r){let n;return typeof t=="function"?n=t(r):Array.isArray(t)?n=t[r]||o:n=bt(t,r)||o,e&&(n=e(n,o,t)),n}function Cf(t){let{prop:e,cssProperty:r=t.prop,themeKey:o,transform:n}=t,i=a=>{if(a[e]==null)return null;let l=a[e],s=a.theme,u=bt(s,o)||{};return ie(a,l,f=>{let m=Ht(u,n,f);return f===m&&typeof f=="string"&&(m=Ht(u,n,`${e}${f==="default"?"":Qe(f)}`,f)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:xe}:{},i.filterProps=[e],i}var Z=Cf;function eo(t){let e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}var wf={m:"margin",p:"padding"},Sf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},il={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tf=eo(t=>{if(t.length>2)if(il[t])t=il[t];else return[t];let[e,r]=t.split(""),o=wf[e],n=Sf[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),to=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ro=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],jn=[...to,...ro];function ot(t,e,r,o){var i;let n=(i=bt(t,e,!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 ic=Object.create;var rn=Object.defineProperty,ac=Object.defineProperties,sc=Object.getOwnPropertyDescriptor,lc=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertyNames,Pr=Object.getOwnPropertySymbols,cc=Object.getPrototypeOf,on=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable;var es=(t,e,r)=>e in t?rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))on.call(e,r)&&es(t,r,e[r]);if(Pr)for(var r of Pr(e))ts.call(e,r)&&es(t,r,e[r]);return t},g=(t,e)=>ac(t,lc(e));var k=(t,e)=>{var r={};for(var o in t)on.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Pr)for(var o of Pr(t))e.indexOf(o)<0&&ts.call(t,o)&&(r[o]=t[o]);return r};var le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var pc=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uc(e))!on.call(t,n)&&n!==r&&rn(t,n,{get:()=>e[n],enumerable:!(o=sc(e,n))||o.enumerable});return t};var qe=(t,e,r)=>(r=t!=null?ic(cc(t)):{},pc(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t));var $=(t,e,r)=>new Promise((o,n)=>{var i=s=>{try{l(r.next(s))}catch(u){n(u)}},a=s=>{try{l(r.throw(s))}catch(u){n(u)}},l=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,a);l((r=r.apply(t,e)).next())});var Ls=le(H=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,wn=ne?Symbol.for("react.element"):60103,Sn=ne?Symbol.for("react.portal"):60106,Fr=ne?Symbol.for("react.fragment"):60107,Or=ne?Symbol.for("react.strict_mode"):60108,Dr=ne?Symbol.for("react.profiler"):60114,Rr=ne?Symbol.for("react.provider"):60109,_r=ne?Symbol.for("react.context"):60110,Tn=ne?Symbol.for("react.async_mode"):60111,Br=ne?Symbol.for("react.concurrent_mode"):60111,Lr=ne?Symbol.for("react.forward_ref"):60112,$r=ne?Symbol.for("react.suspense"):60113,hf=ne?Symbol.for("react.suspense_list"):60120,Nr=ne?Symbol.for("react.memo"):60115,zr=ne?Symbol.for("react.lazy"):60116,gf=ne?Symbol.for("react.block"):60121,yf=ne?Symbol.for("react.fundamental"):60117,xf=ne?Symbol.for("react.responder"):60118,bf=ne?Symbol.for("react.scope"):60119;function ye(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case wn:switch(t=t.type,t){case Tn:case Br:case Fr:case Dr:case Or:case $r:return t;default:switch(t=t&&t.$$typeof,t){case _r:case Lr:case zr:case Nr:case Rr:return t;default:return e}}case Sn:return e}}}function Bs(t){return ye(t)===Br}H.AsyncMode=Tn;H.ConcurrentMode=Br;H.ContextConsumer=_r;H.ContextProvider=Rr;H.Element=wn;H.ForwardRef=Lr;H.Fragment=Fr;H.Lazy=zr;H.Memo=Nr;H.Portal=Sn;H.Profiler=Dr;H.StrictMode=Or;H.Suspense=$r;H.isAsyncMode=function(t){return Bs(t)||ye(t)===Tn};H.isConcurrentMode=Bs;H.isContextConsumer=function(t){return ye(t)===_r};H.isContextProvider=function(t){return ye(t)===Rr};H.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===wn};H.isForwardRef=function(t){return ye(t)===Lr};H.isFragment=function(t){return ye(t)===Fr};H.isLazy=function(t){return ye(t)===zr};H.isMemo=function(t){return ye(t)===Nr};H.isPortal=function(t){return ye(t)===Sn};H.isProfiler=function(t){return ye(t)===Dr};H.isStrictMode=function(t){return ye(t)===Or};H.isSuspense=function(t){return ye(t)===$r};H.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Fr||t===Br||t===Dr||t===Or||t===$r||t===hf||typeof t=="object"&&t!==null&&(t.$$typeof===zr||t.$$typeof===Nr||t.$$typeof===Rr||t.$$typeof===_r||t.$$typeof===Lr||t.$$typeof===yf||t.$$typeof===xf||t.$$typeof===bf||t.$$typeof===gf)};H.typeOf=ye});var $s=le(G=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,n=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function v(I){return typeof I=="string"||typeof I=="function"||I===o||I===u||I===i||I===n||I===f||I===m||typeof I=="object"&&I!==null&&(I.$$typeof===x||I.$$typeof===d||I.$$typeof===a||I.$$typeof===l||I.$$typeof===p||I.$$typeof===w||I.$$typeof===C||I.$$typeof===S||I.$$typeof===h)}function T(I){if(typeof I=="object"&&I!==null){var tn=I.$$typeof;switch(tn){case e:var Tr=I.type;switch(Tr){case s:case u:case o:case i:case n:case f:return Tr;default:var Ja=Tr&&Tr.$$typeof;switch(Ja){case l:case p:case x:case d:case a:return Ja;default:return tn}}case r:return tn}}}var F=s,B=u,D=l,te=a,q=e,oe=p,M=o,R=x,y=d,b=r,P=i,E=n,A=f,_=!1;function O(I){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(I)||T(I)===s}function L(I){return T(I)===u}function z(I){return T(I)===l}function W(I){return T(I)===a}function V(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function de(I){return T(I)===p}function se(I){return T(I)===o}function Ge(I){return T(I)===x}function ec(I){return T(I)===d}function tc(I){return T(I)===r}function rc(I){return T(I)===i}function oc(I){return T(I)===n}function nc(I){return T(I)===f}G.AsyncMode=F,G.ConcurrentMode=B,G.ContextConsumer=D,G.ContextProvider=te,G.Element=q,G.ForwardRef=oe,G.Fragment=M,G.Lazy=R,G.Memo=y,G.Portal=b,G.Profiler=P,G.StrictMode=E,G.Suspense=A,G.isAsyncMode=O,G.isConcurrentMode=L,G.isContextConsumer=z,G.isContextProvider=W,G.isElement=V,G.isForwardRef=de,G.isFragment=se,G.isLazy=Ge,G.isMemo=ec,G.isPortal=tc,G.isProfiler=rc,G.isStrictMode=oc,G.isSuspense=nc,G.isValidElementType=v,G.typeOf=T}()});var kn=le((QC,Pn)=>{"use strict";process.env.NODE_ENV==="production"?Pn.exports=Ls():Pn.exports=$s()});var Vs=le((XC,zs)=>{"use strict";var Ns=Object.getOwnPropertySymbols,vf=Object.prototype.hasOwnProperty,Cf=Object.prototype.propertyIsEnumerable;function wf(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Sf(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[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}}zs.exports=Sf()?Object.assign:function(t,e){for(var r,o=wf(t),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)vf.call(r,a)&&(o[a]=r[a]);if(Ns){n=Ns(r);for(var l=0;l<n.length;l++)Cf.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o}});var Vr=le((JC,js)=>{"use strict";var Tf="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";js.exports=Tf});var En=le((ew,Ws)=>{Ws.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Ys=le((tw,qs)=>{"use strict";var In=function(){};process.env.NODE_ENV!=="production"&&(Us=Vr(),jr={},Hs=En(),In=function(t){var e="Warning: "+t;typeof console!="undefined"&&console.error(e);try{throw new Error(e)}catch(r){}});var Us,jr,Hs;function Gs(t,e,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in t)if(Hs(t,i)){var a;try{if(typeof t[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 t[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=t[i](e,i,o,r,null,Us)}catch(u){a=u}if(a&&!(a instanceof Error)&&In((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 jr)){jr[a.message]=!0;var s=n?n():"";In("Failed "+r+" type: "+a.message+(s!=null?s:""))}}}}Gs.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(jr={})};qs.exports=Gs});var Qs=le((rw,Zs)=>{"use strict";var Pf=kn(),kf=Vs(),Ct=Vr(),An=En(),Ks=Ys(),wt=function(){};process.env.NODE_ENV!=="production"&&(wt=function(t){var e="Warning: "+t;typeof console!="undefined"&&console.error(e);try{throw new Error(e)}catch(r){}});function Wr(){return null}Zs.exports=function(t,e){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:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:f(),arrayOf:m,element:d(),elementType:x(),instanceOf:h,node:v(),objectOf:C,oneOf:w,oneOfType:S,shape:F,exact:B};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 u(y){if(process.env.NODE_ENV!=="production")var b={},P=0;function E(_,O,L,z,W,V,de){if(z=z||i,V=V||L,de!==Ct){if(e){var se=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 se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Ge=z+":"+L;!b[Ge]&&P<3&&(wt("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[Ge]=!0,P++)}}return O[L]==null?_?O[L]===null?new s("The "+W+" `"+V+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new s("The "+W+" `"+V+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:y(O,L,z,W,V)}var A=E.bind(null,!1);return A.isRequired=E.bind(null,!0),A}function p(y){function b(P,E,A,_,O,L){var z=P[E],W=q(z);if(W!==y){var V=oe(z);return new s("Invalid "+_+" `"+O+"` of type "+("`"+V+"` supplied to `"+A+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return u(b)}function f(){return u(Wr)}function m(y){function b(P,E,A,_,O){if(typeof y!="function")return new s("Property `"+O+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var L=P[E];if(!Array.isArray(L)){var z=q(L);return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+A+"`, expected an array."))}for(var W=0;W<L.length;W++){var V=y(L,W,A,_,O+"["+W+"]",Ct);if(V instanceof Error)return V}return null}return u(b)}function d(){function y(b,P,E,A,_){var O=b[P];if(!t(O)){var L=q(O);return new s("Invalid "+A+" `"+_+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement."))}return null}return u(y)}function x(){function y(b,P,E,A,_){var O=b[P];if(!Pf.isValidElementType(O)){var L=q(O);return new s("Invalid "+A+" `"+_+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement type."))}return null}return u(y)}function h(y){function b(P,E,A,_,O){if(!(P[E]instanceof y)){var L=y.name||i,z=R(P[E]);return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+A+"`, expected ")+("instance of `"+L+"`."))}return null}return u(b)}function w(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?wt("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])."):wt("Invalid argument supplied to oneOf, expected an array.")),Wr;function b(P,E,A,_,O){for(var L=P[E],z=0;z<y.length;z++)if(l(L,y[z]))return null;var W=JSON.stringify(y,function(de,se){var Ge=oe(se);return Ge==="symbol"?String(se):se});return new s("Invalid "+_+" `"+O+"` of value `"+String(L)+"` "+("supplied to `"+A+"`, expected one of "+W+"."))}return u(b)}function C(y){function b(P,E,A,_,O){if(typeof y!="function")return new s("Property `"+O+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var L=P[E],z=q(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type "+("`"+z+"` supplied to `"+A+"`, expected an object."));for(var W in L)if(An(L,W)){var V=y(L,W,A,_,O+"."+W,Ct);if(V instanceof Error)return V}return null}return u(b)}function S(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&wt("Invalid argument supplied to oneOfType, expected an instance of array."),Wr;for(var b=0;b<y.length;b++){var P=y[b];if(typeof P!="function")return wt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(P)+" at index "+b+"."),Wr}function E(A,_,O,L,z){for(var W=[],V=0;V<y.length;V++){var de=y[V],se=de(A,_,O,L,z,Ct);if(se==null)return null;se.data&&An(se.data,"expectedType")&&W.push(se.data.expectedType)}var Ge=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new s("Invalid "+L+" `"+z+"` supplied to "+("`"+O+"`"+Ge+"."))}return u(E)}function v(){function y(b,P,E,A,_){return D(b[P])?null:new s("Invalid "+A+" `"+_+"` supplied to "+("`"+E+"`, expected a ReactNode."))}return u(y)}function T(y,b,P,E,A){return new s((y||"React class")+": "+b+" type `"+P+"."+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function F(y){function b(P,E,A,_,O){var L=P[E],z=q(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type `"+z+"` "+("supplied to `"+A+"`, expected `object`."));for(var W in y){var V=y[W];if(typeof V!="function")return T(A,_,O,W,oe(V));var de=V(L,W,A,_,O+"."+W,Ct);if(de)return de}return null}return u(b)}function B(y){function b(P,E,A,_,O){var L=P[E],z=q(L);if(z!=="object")return new s("Invalid "+_+" `"+O+"` of type `"+z+"` "+("supplied to `"+A+"`, expected `object`."));var W=kf({},P[E],y);for(var V in W){var de=y[V];if(An(y,V)&&typeof de!="function")return T(A,_,O,V,oe(de));if(!de)return new s("Invalid "+_+" `"+O+"` key `"+V+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(P[E],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var se=de(L,V,A,_,O+"."+V,Ct);if(se)return se}return null}return u(b)}function D(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(D);if(y===null||t(y))return!0;var b=n(y);if(b){var P=b.call(y),E;if(b!==y.entries){for(;!(E=P.next()).done;)if(!D(E.value))return!1}else for(;!(E=P.next()).done;){var A=E.value;if(A&&!D(A[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 q(y){var b=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":te(b,y)?"symbol":b}function oe(y){if(typeof y=="undefined"||y===null)return""+y;var b=q(y);if(b==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return b}function M(y){var b=oe(y);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function R(y){return!y.constructor||!y.constructor.name?i:y.constructor.name}return a.checkPropTypes=Ks,a.resetWarningCache=Ks.resetWarningCache,a.PropTypes=a,a}});var tl=le((ow,el)=>{"use strict";var Ef=Vr();function Xs(){}function Js(){}Js.resetWarningCache=Xs;el.exports=function(){function t(o,n,i,a,l,s){if(s!==Ef){var u=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 u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Js,resetWarningCache:Xs};return r.PropTypes=r,r}});var Ur=le((nw,Mn)=>{process.env.NODE_ENV!=="production"?(rl=kn(),ol=!0,Mn.exports=Qs()(rl.isElement,ol)):Mn.exports=tl()();var rl,ol});var sl=le(Y=>{"use strict";var Dn=Symbol.for("react.transitional.element"),Rn=Symbol.for("react.portal"),Hr=Symbol.for("react.fragment"),Gr=Symbol.for("react.strict_mode"),qr=Symbol.for("react.profiler");Symbol.for("react.provider");var Yr=Symbol.for("react.consumer"),Kr=Symbol.for("react.context"),Zr=Symbol.for("react.forward_ref"),Qr=Symbol.for("react.suspense"),Xr=Symbol.for("react.suspense_list"),Jr=Symbol.for("react.memo"),eo=Symbol.for("react.lazy"),Af=Symbol.for("react.view_transition"),Mf=Symbol.for("react.client.reference");function we(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Dn:switch(t=t.type,t){case Hr:case qr:case Gr:case Qr:case Xr:case Af:return t;default:switch(t=t&&t.$$typeof,t){case Kr:case Zr:case eo:case Jr:return t;case Yr:return t;default:return e}}case Rn:return e}}}Y.ContextConsumer=Yr;Y.ContextProvider=Kr;Y.Element=Dn;Y.ForwardRef=Zr;Y.Fragment=Hr;Y.Lazy=eo;Y.Memo=Jr;Y.Portal=Rn;Y.Profiler=qr;Y.StrictMode=Gr;Y.Suspense=Qr;Y.SuspenseList=Xr;Y.isContextConsumer=function(t){return we(t)===Yr};Y.isContextProvider=function(t){return we(t)===Kr};Y.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Dn};Y.isForwardRef=function(t){return we(t)===Zr};Y.isFragment=function(t){return we(t)===Hr};Y.isLazy=function(t){return we(t)===eo};Y.isMemo=function(t){return we(t)===Jr};Y.isPortal=function(t){return we(t)===Rn};Y.isProfiler=function(t){return we(t)===qr};Y.isStrictMode=function(t){return we(t)===Gr};Y.isSuspense=function(t){return we(t)===Qr};Y.isSuspenseList=function(t){return we(t)===Xr};Y.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Hr||t===qr||t===Gr||t===Qr||t===Xr||typeof t=="object"&&t!==null&&(t.$$typeof===eo||t.$$typeof===Jr||t.$$typeof===Kr||t.$$typeof===Yr||t.$$typeof===Zr||t.$$typeof===Mf||t.getModuleId!==void 0)};Y.typeOf=we});var ll=le(K=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(h){if(typeof h=="object"&&h!==null){var w=h.$$typeof;switch(w){case e:switch(h=h.type,h){case o:case i:case n:case u:case p:case d:return h;default:switch(h=h&&h.$$typeof,h){case l:case s:case m:case f:return h;case a:return h;default:return w}}case r:return w}}}var e=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"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");K.ContextConsumer=a,K.ContextProvider=l,K.Element=e,K.ForwardRef=s,K.Fragment=o,K.Lazy=m,K.Memo=f,K.Portal=r,K.Profiler=i,K.StrictMode=n,K.Suspense=u,K.SuspenseList=p,K.isContextConsumer=function(h){return t(h)===a},K.isContextProvider=function(h){return t(h)===l},K.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},K.isForwardRef=function(h){return t(h)===s},K.isFragment=function(h){return t(h)===o},K.isLazy=function(h){return t(h)===m},K.isMemo=function(h){return t(h)===f},K.isPortal=function(h){return t(h)===r},K.isProfiler=function(h){return t(h)===i},K.isStrictMode=function(h){return t(h)===n},K.isSuspense=function(h){return t(h)===u},K.isSuspenseList=function(h){return t(h)===p},K.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===o||h===i||h===n||h===u||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===m||h.$$typeof===f||h.$$typeof===l||h.$$typeof===a||h.$$typeof===s||h.$$typeof===x||h.getModuleId!==void 0)},K.typeOf=t}()});var Bn=le((dw,_n)=>{"use strict";process.env.NODE_ENV==="production"?_n.exports=sl():_n.exports=ll()});var Ul=le((tP,Wl)=>{"use strict";function lt(t){this._maxSize=t,this.clear()}lt.prototype.clear=function(){this._size=0,this._values=Object.create(null)};lt.prototype.get=function(t){return this._values[t]};lt.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var $m=/[^.^\]^[]+|(?=\[\]|\.\.)/g,jl=/^\d+$/,Nm=/^\d/,zm=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Vm=/^\s*(['"]?)(.*?)(\1)\s*$/,hi=512,Nl=new lt(hi),zl=new lt(hi),Vl=new lt(hi);Wl.exports={Cache:lt,split:mi,normalizePath:di,setter:function(t){var e=di(t);return zl.get(t)||zl.set(t,function(o,n){for(var i=0,a=e.length,l=o;i<a-1;){var s=e[i];if(s==="__proto__"||s==="constructor"||s==="prototype")return o;l=l[e[i++]]}l[e[i]]=n})},getter:function(t,e){var r=di(t);return Vl.get(t)||Vl.set(t,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!e)n=n[r[i++]];else return;return n})},join:function(t){return t.reduce(function(e,r){return e+(gi(r)||jl.test(r)?"["+r+"]":(e?".":"")+r)},"")},forEach:function(t,e,r){jm(Array.isArray(t)?t:mi(t),e,r)}};function di(t){return Nl.get(t)||Nl.set(t,mi(t).map(function(e){return e.replace(Vm,"$2")}))}function mi(t){return t.match($m)||[""]}function jm(t,e,r){var o=t.length,n,i,a,l;for(i=0;i<o;i++)n=t[i],n&&(Hm(n)&&(n='"'+n+'"'),l=gi(n),a=!l&&/^\d+$/.test(n),e.call(r,n,l,a,i,t))}function gi(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function Wm(t){return t.match(Nm)&&!t.match(jl)}function Um(t){return zm.test(t)}function Hm(t){return!gi(t)&&(Wm(t)||Um(t))}});var ql=le((rP,Gl)=>{var Gm=/[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,bo=t=>t.match(Gm)||[],vo=t=>t[0].toUpperCase()+t.slice(1),yi=(t,e)=>bo(t).join(e).toLowerCase(),Hl=t=>bo(t).reduce((e,r)=>`${e}${e?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),qm=t=>vo(Hl(t)),Ym=t=>yi(t,"_"),Km=t=>yi(t,"-"),Zm=t=>vo(yi(t," ")),Qm=t=>bo(t).map(vo).join(" ");Gl.exports={words:bo,upperFirst:vo,camelCase:Hl,pascalCase:qm,snakeCase:Ym,kebabCase:Km,sentenceCase:Zm,titleCase:Qm}});var Kl=le((oP,xi)=>{xi.exports=function(t){return Yl(Xm(t),t)};xi.exports.array=Yl;function Yl(t,e){var r=t.length,o=new Array(r),n={},i=r,a=Jm(e),l=eh(t);for(e.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)n[i]||s(t[i],i,new Set);return o;function s(u,p,f){if(f.has(u)){var m;try{m=", node was:"+JSON.stringify(u)}catch(h){m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!n[p]){n[p]=!0;var d=a.get(u)||new Set;if(d=Array.from(d),p=d.length){f.add(u);do{var x=d[--p];s(x,l.get(x),f)}while(p);f.delete(u)}o[--r]=u}}}function Xm(t){for(var e=new Set,r=0,o=t.length;r<o;r++){var n=t[r];e.add(n[0]),e.add(n[1])}return Array.from(e)}function Jm(t){for(var e=new Map,r=0,o=t.length;r<o;r++){var n=t[r];e.has(n[0])||e.set(n[0],new Set),e.has(n[1])||e.set(n[1],new Set),e.get(n[0]).add(n[1])}return e}function eh(t){for(var e=new Map,r=0,o=t.length;r<o;r++)e.set(t[r],r);return e}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var mc=t=>{let n=t,{isLoading:e,children:r}=n,o=k(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,g(c({},o),{disabled:e?!0:o.disabled,children:e?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},N= exports.Button =mc;function Ce(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},t))}function os(t){let o=t,{label:e}=o,r=k(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:e,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}var _polished = require('polished');var _styles = require('@mui/material/styles');var gt="#4BA9C1",wc="#2C96B3",Sc=32,Tc={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:gt,dark:wc},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:gt,borderRadius:"0px"},"& .MuiSvgIcon-root":{color:gt},"& .MuiTypography-root":{color:gt}},":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:`${Sc}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:gt},"& .MuiTypography-root":{color:gt}},":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:{}}}}},Pc=_styles.createTheme.call(void 0, Tc),kc=_styles.responsiveFontSizes.call(void 0, Pc),U= exports.theme =kc;var Ic={"primary-light":U.palette.primary.light,primary:U.palette.primary.main,"primary-dark":U.palette.primary.dark,"text-secondary":U.palette.text.secondary,"text-primary":U.palette.text.primary,"background-paper":U.palette.background.paper,background:U.palette.background.default,"error-light":U.palette.error.light,error:U.palette.error.main,"erro-drark":U.palette.error.dark,"warning-light":U.palette.warning.light,warning:U.palette.warning.main,"warning-dark":U.palette.warning.dark,"success-light":U.palette.success.light,success:U.palette.success.main,"success-dark":U.palette.success.dark,"grey-100":U.palette.grey[100],"grey-200":U.palette.grey[200],"grey-300":U.palette.grey[300],"grey-400":U.palette.grey[400],"grey-500":U.palette.grey[500],"grey-600":U.palette.grey[600],"grey-700":U.palette.grey[700],"grey-800":U.palette.grey[800]};function is(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(Ic).map(([t,e])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:e,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:U.typography.fontFamily,color:_polished.getContrast.call(void 0, e,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:t}),_jsxruntime.jsx.call(void 0, "span",{children:e})]})},t))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var Ln = _interopRequireWildcard(_react); var gl = _interopRequireWildcard(_react); var Et = _interopRequireWildcard(_react);function ss(t){if(!t)return 0;let e=String(t);return e=e.replace(/\./g,"").replace(/,/g,"."),parseFloat(e)}var an=null,ls=_react.forwardRef.call(void 0, (t,e)=>{let l=t,{value:r,onChange:o}=l,n=k(l,["value","onChange"]);an=null;let i=_react.useCallback.call(void 0, s=>{let u=s.target.value||"0.00";_hooks.isValidNumber.call(void 0, u)&&(an==="Backspace"?u=(ss(u)/10).toFixed(2):u=(ss(u)*10).toFixed(2),o&&(s.target.value=u,o(s,u)))},[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=>{an=s.key},onSelect:s=>{a(s)},onChange:i,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:e,sx:{"& .MuiInputBase-input":{textAlign:"right"}}},n))});ls.defaultProps={value:0};var _c=ls;var _iconsmaterial = require('@mui/icons-material');var us={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 Ye(t){let{cancelLabel:e,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=t;return _jsxruntime.jsxs.call(void 0, Ce,{children:[n&&_jsxruntime.jsx.call(void 0, N,{onClick:()=>{n()},color:us[o||"content"].cancel,children:e}),_jsxruntime.jsx.call(void 0, N,{onClick:()=>{i&&i()},color:us[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var Lc={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};Ye.defaultProps=Lc;function Le(t){let{title:e,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:l}=t,s=_material.useTheme.call(void 0, ),u=o==="none"?null:o||_jsxruntime.jsx.call(void 0, Ye,c({onCancel:()=>{n&&n({},"backdropClick")},onConfirm:()=>{i&&i()},type:a},l)),p=_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,g(c({},t),{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:[p&&_jsxruntime.jsx.call(void 0, _material.Icon,{sx:{mr:1},fontSize:"medium",children:p}),e]})}),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:u})]}))}Le.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function ln(t){let{formValues:e,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=t;return _jsxruntime.jsx.call(void 0, Ye,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(e),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function un(t){let{isOpenConfirm:e}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:l}=t;return _jsxruntime.jsx.call(void 0, Le,{type:o,open:e,title:n,actions:a||_jsxruntime.jsx.call(void 0, ln,{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 ep={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};un.defaultProps=ep;var _muidatatables = require('mui-datatables'); var _muidatatables2 = _interopRequireDefault(_muidatatables);var lp=t=>{let{count:e,rowsPerPage:r,page:o,changePage:n,changeRowsPerPage:i,rowsPerPageOptions:a}=t,l=_react.useMemo.call(void 0, ()=>Math.max(0,Math.ceil(e/r)),[e,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,u)=>{n(u)},page:o,color:"primary"})]})})})},ms=lp;function yt(t){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},t))}var hs=_muidatatables2.default,xp={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"}},bp=t=>({filterType:"textField",selectableRows:"none",elevation:0,responsive:"standard",print:!1,download:!1,filter:!1,search:!1,sort:!1,viewColumns:!1,textLabels:xp,serverSide:!0,rowsPerPageOptions:[15,50,100],rowsPerPage:15,fixedHeader:!0,fixedSelectColumn:!1,tableBodyMaxHeight:t}),vp=t=>{let T=t,{surface:e,error:r,tableTitle:o,isLoading:n,isFetching:i,data:a,columns:l,options:s,pagination:u,changePage:p,changePageSize:f,changeSort:m}=T,d=k(T,["surface","error","tableTitle","isLoading","isFetching","data","columns","options","pagination","changePage","changePageSize","changeSort"]),x=_material.useTheme.call(void 0, ),w=_material.useMediaQuery.call(void 0, x.breakpoints.up("xl"))?75:70,C=u?`${w}vh`:`calc(${w}vh + 65px)`,S=bp(C),v=s||{};return v&&(p&&(v.onChangePage=p),f&&(v.onChangeRowsPerPage=f),m&&(v.onColumnSortChange=m),v.customFooter=(F,B,D,te,q,oe)=>!u||n?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{}):_jsxruntime.jsx.call(void 0, ms,{count:u.totalRecords,page:u.page,rowsPerPage:u.pageSize,rowsPerPageOptions:(v==null?void 0:v.rowsPerPageOptions)||(S==null?void 0:S.rowsPerPageOptions),changeRowsPerPage:v==null?void 0:v.onChangeRowsPerPage,changePage:v==null?void 0:v.onChangePage,textLabels:oe})),_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})}),e&&_jsxruntime.jsx.call(void 0, yt,{children:_jsxruntime.jsx.call(void 0, hs,c({title:o,data:a,columns:l,options:c(c({},S),v)},d))}),!e&&_jsxruntime.jsx.call(void 0, hs,c({title:o,data:a,columns:l,options:c(c({},S),v)},d))]})},Cp= exports.DataTable =vp;var Ap=_styles.styled.call(void 0, r=>{var o=r,{className:t}=o,e=k(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,g(c({},e),{classes:{popper:t}}))})(({theme:t})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:t.typography.pxToRem(12),border:"1px solid #dadde9"}})),Mp={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},Fp=t=>{let{title:e,type:r}=t;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:Mp[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:e})]})},xs=t=>{let i=t,{type:e,children:r,title:o}=i,n=k(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, Ap,g(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, Fp,{title:o||"",type:e}),enterDelay:300},n),{children:r}))};xs.defaultProps={type:"info"};var xt=xs;var Uv=()=>({style:{width:"80px",textAlign:"center"}}),Hv= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function pn(t){let{onClick:e,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:l,disabled:s,disabledUpdateButton:u,disabledDeleteButton:p,disabledTransporterButton:f}=t;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:m,icon:d,iconButtonProps:x,tooltip:h,visible:w,disabled:C,badge:S})=>w===null||!!w&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:S,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,g(c({onClick:v=>e(m,r,v),size:"small",disabled:C},x),{children:[h&&_jsxruntime.jsx.call(void 0, xt,{type:h.type,title:h.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:d})}),!h&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:d})]}),m)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:m=>e("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, xt,{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=>e("edit",r,m),disabled:s||u,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, xt,{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=>e("delete",r,m),color:"primary",disabled:s||p,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, xt,{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"})})]})]})}pn.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function Ar(t){let{renderLabel:e,disableds:r}=t,{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 p=!1,f=Object.keys(a||{});for(let m=0;m<f.length;m++){let d=a[f[m]];if(Array.isArray(d)&&d.length>0){p=!0;break}else if(!Array.isArray(d)&&d){p=!0;break}}return p}return!1},[a]),s=_react.useCallback.call(void 0, u=>e?e(i[u].label,a[u]):`${i[u].label} - ${a&&a[u]}`,[e,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(u=>{let p=Array.isArray(r)&&r.includes(u),f;if(p||(f=()=>{o&&o(u)}),Array.isArray(a[u])&&a[u].length>0)return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(u),onDelete:f,variant:"outlined"},u);if(!Array.isArray(a[u])&&a[u])return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:s(u),onDelete:f,variant:"outlined"},u)})}),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 Mr(t){let a=t,{drawerTitle:e,actions:r,onClose:o,children:n}=a,i=k(a,["drawerTitle","actions","onClose","children"]);return _jsxruntime.jsx.call(void 0, _material.Drawer,g(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:e}),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})]})}))}Mr.defaultProps={anchor:"right"};var Zp=()=>{let{applyFilterValues:t,closeFilter:e,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){e()}function n(){t(),e()}function i(){r&&(r(),e())}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"]})]})},Qp=t=>{let{title:e,children:r,onApplyFilters:o,drawerProps:n}=t,{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, Mr,g(c({},n),{drawerTitle:e,open:i,children:r,onClose:()=>l(),actions:_jsxruntime.jsx.call(void 0, Zp,{})}))};function yn(t){let{triggerButtonLabel:e,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:l,disableds:s,disableFilterControl:u,drawerProps:p}=t,{openFilter:f}=_providers.useFilterApi.call(void 0, ),m=o==="none"?null:o||_jsxruntime.jsx.call(void 0, _material.Button,g(c({variant:"contained",onClick:()=>{f()}},r),{children:e||"Adicionar"}));return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[u&&m,!u&&_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, Ar,{renderLabel:l,disableds:s}),m]}),_jsxruntime.jsx.call(void 0, Qp,g(c({},p),{onApplyFilters:a,title:n||"",children:i}))]})}yn.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function ks(t){let{isFlagged:e,type:r}=t;return e?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function xn(t){let{formValues:e,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=t;return _jsxruntime.jsx.call(void 0, Ye,{confirmLabel:a||"Salvar",onConfirm:()=>n(e),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function vn(t){let{view:e,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:l,triggerButtonProps:s,confirmButtonLabel:u}=t,{isOpen:p}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:m}=_providers.useFormApi.call(void 0, ),d=o||_jsxruntime.jsx.call(void 0, xn,{hideCancelButton:e==="plain",confirmButtonLabel:u,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,g(c({variant:"contained",onClick:()=>{m()}},s),{children:l||"Adicionar"}));return e==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[x,_jsxruntime.jsx.call(void 0, Le,g(c({},a),{onClose:()=>{f()},open:!!p,children:r,actions:d}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,d]})}var lf={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};vn.defaultProps=lf;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function vt(t,...e){let r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${t}; visit ${r} for the full message.`}function Is(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var As={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 Ms(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var cf=!1,pf=/[A-Z]|^ms/g,ff=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rs=function(e){return e.charCodeAt(1)===45},Fs=function(e){return e!=null&&typeof e!="boolean"},Cn=Ms(function(t){return Rs(t)?t:t.replace(pf,"-$&").toLowerCase()}),Os=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(ff,function(o,n,i){return Oe={name:n,styles:i,next:Oe},n})}return As[e]!==1&&!Rs(e)&&typeof r=="number"&&r!==0?r+"px":r},df="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qt(t,e,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 Oe={name:n.name,styles:n.styles,next:Oe},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Oe={name:a.name,styles:a.styles,next:Oe},a=a.next;var l=i.styles+";";return l}return mf(t,e,r)}case"function":{if(t!==void 0){var s=Oe,u=r(t);return Oe=s,qt(t,e,u)}break}}var p=r;if(e==null)return p;var f=e[p];return f!==void 0?f:p}function mf(t,e,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=qt(t,e,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;e!=null&&e[l]!==void 0?o+=i+"{"+e[l]+"}":Fs(l)&&(o+=Cn(i)+":"+Os(i,l)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&cf)throw new Error(df);if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var s=0;s<a.length;s++)Fs(a[s])&&(o+=Cn(i)+":"+Os(i,a[s])+";");else{var u=qt(t,e,a);switch(i){case"animation":case"animationName":{o+=Cn(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}}return o}var Ds=/label:\s*([^\s;{]+)\s*(;|$)/g,Oe;function _s(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,n="";Oe=void 0;var i=t[0];if(i==null||i.raw===void 0)o=!1,n+=qt(r,e,i);else{var a=i;n+=a[0]}for(var l=1;l<t.length;l++)if(n+=qt(r,e,t[l]),o){var s=i;n+=s[l]}Ds.lastIndex=0;for(var u="",p;(p=Ds.exec(n))!==null;)u+="-"+p[1];var f=Is(n)+u;return{name:f,styles:n,next:Oe}}var _react2 = require('@emotion/react');function Fn(t,e){let r=_styled2.default.call(void 0, t,e);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof t=="string"?`"${t}"`:"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 il(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}var nl=[];function On(t){return nl[0]=t,_s(nl)}var $n=qe(Bn());function De(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ul(t){if(Ln.isValidElement(t)||(0,$n.isValidElementType)(t)||!De(t))return t;let e={};return Object.keys(t).forEach(r=>{e[r]=ul(t[r])}),e}function Se(t,e,r={clone:!0}){let o=r.clone?c({},t):t;return De(t)&&De(e)&&Object.keys(e).forEach(n=>{Ln.isValidElement(e[n])||(0,$n.isValidElementType)(e[n])?o[n]=e[n]:De(e[n])&&Object.prototype.hasOwnProperty.call(t,n)&&De(t[n])?o[n]=Se(t[n],e[n],r):r.clone?o[n]=De(e[n])?ul(e[n]):e[n]:o[n]=e[n]}),o}var Ff=t=>{let e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,o)=>r.val-o.val),e.reduce((r,o)=>g(c({},r),{[o.key]:o.val}),{})};function Nn(t){let m=t,{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=m,n=k(m,["values","unit","step"]),i=Ff(e),a=Object.keys(i);function l(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r})`}function s(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-o/100}${r})`}function u(d,x){let h=a.indexOf(x);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${r}) and (max-width:${(h!==-1&&typeof e[a[h]]=="number"?e[a[h]]:x)-o/100}${r})`}function p(d){return a.indexOf(d)+1<a.length?u(d,a[a.indexOf(d)+1]):l(d)}function f(d){let x=a.indexOf(d);return x===0?l(a[1]):x===a.length-1?s(a[x]):u(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return c({keys:a,values:i,up:l,down:s,between:u,only:p,not:f,unit:r},n)}function zn(t,e){if(!t.containerQueries)return e;let r=Object.keys(e).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=e[n];return delete o[n],o[n]=i,o},c({},e)):e}function Vn(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function jn(t,e){let r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
4
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:vt(18,`(${e})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return t.containerQueries(n).up(i)}function to(t){let e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>e(t.breakpoints.up(...l),a),i.down=(...l)=>e(t.breakpoints.down(...l),a),i.between=(...l)=>e(t.breakpoints.between(...l),a),i.only=(...l)=>e(t.breakpoints.only(...l),a),i.not=(...l)=>{let s=e(t.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),g(c({},t),{containerQueries:n})}var Of={borderRadius:4},cl=Of;var St=qe(Ur()),Df=process.env.NODE_ENV!=="production"?St.default.oneOfType([St.default.number,St.default.string,St.default.object,St.default.array]):{},xe=Df;function Rf(t,e){return e?Se(t,e,{clone:!1}):t}var $e=Rf;var Yt={xs:0,sm:600,md:900,lg:1200,xl:1536},pl={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Yt[t]}px)`},_f={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Yt[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function ie(t,e,r){let o=t.theme||{};if(Array.isArray(e)){let i=o.breakpoints||pl;return e.reduce((a,l,s)=>(a[i.up(i.keys[s])]=r(e[s]),a),{})}if(typeof e=="object"){let i=o.breakpoints||pl;return Object.keys(e).reduce((a,l)=>{if(Vn(i.keys,l)){let s=jn(o.containerQueries?o:_f,l);s&&(a[s]=r(e[l],l))}else if(Object.keys(i.values||Yt).includes(l)){let s=i.up(l);a[s]=r(e[l],l)}else{let s=l;a[s]=e[s]}return a},{})}return r(e)}function Wn(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((o,n)=>{let i=t.up(n);return o[i]={},o},{}))||{}}function Un(t,e){return t.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},e)}function fl(t,...e){let r=Wn(t),o=[r,...e].reduce((n,i)=>Se(n,i),{});return Un(Object.keys(r),o)}function Bf(t,e){if(typeof t!="object")return{};let r={},o=Object.keys(e);return Array.isArray(t)?o.forEach((n,i)=>{i<t.length&&(r[n]=!0)}):o.forEach(n=>{t[n]!=null&&(r[n]=!0)}),r}function ro({values:t,breakpoints:e,base:r}){let o=r||Bf(t,e),n=Object.keys(o);if(n.length===0)return t;let i;return n.reduce((a,l,s)=>(Array.isArray(t)?(a[l]=t[s]!=null?t[s]:t[i],i=s):typeof t=="object"?(a[l]=t[l]!=null?t[l]:t[i],i=l):a[l]=t,a),{})}function Qe(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":vt(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Tt(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){let o=`vars.${e}`.split(".").reduce((n,i)=>n&&n[i]?n[i]:null,t);if(o!=null)return o}return e.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,t)}function Kt(t,e,r,o=r){let n;return typeof t=="function"?n=t(r):Array.isArray(t)?n=t[r]||o:n=Tt(t,r)||o,e&&(n=e(n,o,t)),n}function Lf(t){let{prop:e,cssProperty:r=t.prop,themeKey:o,transform:n}=t,i=a=>{if(a[e]==null)return null;let l=a[e],s=a.theme,u=Tt(s,o)||{};return ie(a,l,f=>{let m=Kt(u,n,f);return f===m&&typeof f=="string"&&(m=Kt(u,n,`${e}${f==="default"?"":Qe(f)}`,f)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:xe}:{},i.filterProps=[e],i}var Z=Lf;function oo(t){let e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}var $f={m:"margin",p:"padding"},Nf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zf=oo(t=>{if(t.length>2)if(dl[t])t=dl[t];else return[t];let[e,r]=t.split(""),o=$f[e],n=Nf[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),no=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],io=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Hn=[...no,...io];function it(t,e,r,o){var i;let n=(i=Tt(t,e,!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.${e}\` 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.${e}\` 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.${e}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
7
- `)),()=>{})}function qt(t){return ot(t,"spacing",8,"spacing")}function _e(t,e){return typeof e=="string"||e==null?e:t(e)}function Pf(t,e){return r=>t.reduce((o,n)=>(o[n]=_e(e,r),o),{})}function kf(t,e,r,o){if(!e.includes(r))return null;let n=Tf(r),i=Pf(n,o),a=t[r];return ie(t,a,i)}function Wn(t,e){let r=qt(t.theme);return Object.keys(t).map(o=>kf(t,e,o,r)).reduce(Le,{})}function J(t){return Wn(t,to)}J.propTypes=process.env.NODE_ENV!=="production"?to.reduce((t,e)=>(t[e]=xe,t),{}):{};J.filterProps=to;function ee(t){return Wn(t,ro)}ee.propTypes=process.env.NODE_ENV!=="production"?ro.reduce((t,e)=>(t[e]=xe,t),{}):{};ee.filterProps=ro;function al(t){return Wn(t,jn)}al.propTypes=process.env.NODE_ENV!=="production"?jn.reduce((t,e)=>(t[e]=xe,t),{}):{};al.filterProps=jn;function Un(t=8,e=qt({spacing:t})){if(t.mui)return t;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=e(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Ef(...t){let e=t.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>e[i]?Le(n,e[i](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?t.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=t.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ne=Ef;function ve(t){return typeof t!="number"?t:`${t}px solid`}function Te(t,e){return Z({prop:t,themeKey:"borders",transform:e})}var Af=Te("border",ve),If=Te("borderTop",ve),Ff=Te("borderRight",ve),Of=Te("borderBottom",ve),Mf=Te("borderLeft",ve),Df=Te("borderColor"),_f=Te("borderTopColor"),Bf=Te("borderRightColor"),Rf=Te("borderBottomColor"),$f=Te("borderLeftColor"),Lf=Te("outline",ve),Nf=Te("outlineColor"),Gt=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){let e=ot(t.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:_e(e,o)});return ie(t,t.borderRadius,r)}return null};Gt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:xe}:{};Gt.filterProps=["borderRadius"];var Pw=Ne(Af,If,Ff,Of,Mf,Df,_f,Bf,Rf,$f,Gt,Lf,Nf);var Yt=t=>{if(t.gap!==void 0&&t.gap!==null){let e=ot(t.theme,"spacing",8,"gap"),r=o=>({gap:_e(e,o)});return ie(t,t.gap,r)}return null};Yt.propTypes=process.env.NODE_ENV!=="production"?{gap:xe}:{};Yt.filterProps=["gap"];var Kt=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){let e=ot(t.theme,"spacing",8,"columnGap"),r=o=>({columnGap:_e(e,o)});return ie(t,t.columnGap,r)}return null};Kt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:xe}:{};Kt.filterProps=["columnGap"];var Zt=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){let e=ot(t.theme,"spacing",8,"rowGap"),r=o=>({rowGap:_e(e,o)});return ie(t,t.rowGap,r)}return null};Zt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:xe}:{};Zt.filterProps=["rowGap"];var zf=Z({prop:"gridColumn"}),Vf=Z({prop:"gridRow"}),jf=Z({prop:"gridAutoFlow"}),Wf=Z({prop:"gridAutoColumns"}),Uf=Z({prop:"gridAutoRows"}),Hf=Z({prop:"gridTemplateColumns"}),qf=Z({prop:"gridTemplateRows"}),Gf=Z({prop:"gridTemplateAreas"}),Yf=Z({prop:"gridArea"}),Mw=Ne(Yt,Kt,Zt,zf,Vf,jf,Wf,Uf,Hf,qf,Gf,Yf);function nt(t,e){return e==="grey"?e:t}var Kf=Z({prop:"color",themeKey:"palette",transform:nt}),Zf=Z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nt}),Qf=Z({prop:"backgroundColor",themeKey:"palette",transform:nt}),Rw=Ne(Kf,Zf,Qf);function me(t){return t<=1&&t!==0?`${t*100}%`:t}var Xf=Z({prop:"width",transform:me}),oo=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){let e=r=>{var n,i,a,l,s;let o=((a=(i=(n=t.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||Ut[r];return o?((s=(l=t.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:me(r)}};return ie(t,t.maxWidth,e)}return null};oo.filterProps=["maxWidth"];var Jf=Z({prop:"minWidth",transform:me}),ed=Z({prop:"height",transform:me}),td=Z({prop:"maxHeight",transform:me}),rd=Z({prop:"minHeight",transform:me}),Vw=Z({prop:"size",cssProperty:"width",transform:me}),jw=Z({prop:"size",cssProperty:"height",transform:me}),od=Z({prop:"boxSizing"}),Ww=Ne(Xf,oo,Jf,ed,td,rd,od);var nd={border:{themeKey:"borders",transform:ve},borderTop:{themeKey:"borders",transform:ve},borderRight:{themeKey:"borders",transform:ve},borderBottom:{themeKey:"borders",transform:ve},borderLeft:{themeKey:"borders",transform:ve},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ve},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gt},color:{themeKey:"palette",transform:nt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nt},backgroundColor:{themeKey:"palette",transform:nt},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:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yt},rowGap:{style:Zt},columnGap:{style:Kt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:me},maxWidth:{style:oo},minWidth:{transform:me},height:{transform:me},maxHeight:{transform:me},minHeight:{transform:me},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"}},Ct=nd;function id(...t){let e=t.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(e);return t.every(o=>r.size===Object.keys(o).length)}function ad(t,e){return typeof t=="function"?t(e):t}function sd(){function t(r,o,n,i){let a={[r]:o,theme:n},l=i[r];if(!l)return{[r]:o};let{cssProperty:s=r,themeKey:u,transform:p,style:f}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[r]:o};let m=bt(n,u)||{};return f?f(a):ie(a,o,x=>{let h=Ht(m,p,x);return x===h&&typeof x=="string"&&(h=Ht(m,p,`${r}${x==="default"?"":Qe(x)}`,x)),s===!1?h:{[s]:h}})}function e(r){var l;let{sx:o,theme:n={}}=r||{};if(!o)return null;let i=(l=n.unstable_sxConfig)!=null?l:Ct;function a(s){let u=s;if(typeof s=="function")u=s(n);else if(typeof s!="object")return s;if(!u)return null;let p=zn(n.breakpoints),f=Object.keys(p),m=p;return Object.keys(u).forEach(d=>{let x=ad(u[d],n);if(x!=null)if(typeof x=="object")if(i[d])m=Le(m,t(d,x,n,i));else{let h=ie({theme:n},x,w=>({[d]:w}));id(h,x)?m[d]=e({sx:x,theme:n}):m=Le(m,h)}else m=Le(m,t(d,x,n,i))}),$n(n,Vn(f,m))}return Array.isArray(o)?o.map(a):a(o)}return e}var sl=sd();sl.filterProps=["sx"];var wt=sl;function Hn(t,e){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[t])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function ld(t={},...e){let p=t,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=p,a=A(p,["breakpoints","palette","spacing","shape"]),l=Rn(r),s=Un(n),u=Se({breakpoints:l,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:s,shape:c(c({},rl),i)},a);return u=Xr(u),u.applyStyles=Hn,u=e.reduce((f,m)=>Se(f,m),u),u.unstable_sxConfig=c(c({},Ct),a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(m){return wt({sx:m,theme:this})},u}var it=ld;function ud(t){return Object.keys(t).length===0}function cd(t=null){let e=ll.useContext(_react2.ThemeContext);return!e||ud(e)?t:e}var qn=cd;var pd=it();function fd(t=pd){return qn(t)}var Gn=fd;var dd=t=>{var o,n;let e={systemProps:{},otherProps:{}},r=(n=(o=t==null?void 0:t.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Ct;return Object.keys(t).forEach(i=>{r[i]?e.systemProps[i]=t[i]:e.otherProps[i]=t[i]}),e};function no(t){let a=t,{sx:e}=a,r=A(a,["sx"]),{systemProps:o,otherProps:n}=dd(r),i;return Array.isArray(e)?i=[o,...e]:typeof e=="function"?i=(...l)=>{let s=e(...l);return De(s)?c(c({},o),s):o}:i=c(c({},o),e),g(c({},n),{sx:i})}var ul=t=>t,md=()=>{let t=ul;return{configure(e){t=e},generate(e){return t(e)},reset(){t=ul}}},hd=md(),Yn=hd;function cl(t){var e,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(r=cl(t[e]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function gd(){for(var t,e,r=0,o="",n=arguments.length;r<n;r++)(t=arguments[r])&&(e=cl(t))&&(o&&(o+=" "),o+=e);return o}var pl=gd;var yd={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 io(t,e,r="Mui"){let o=yd[e];return o?`${r}-${o}`:`${Yn.generate(t)}-${e}`}var ao=Ge(Dn());function dl(t,e=""){return t.displayName||t.name||e}function fl(t,e,r){let o=dl(e);return t.displayName||(o!==""?`${r}(${o})`:r)}function so(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return dl(t,"Component");if(typeof t=="object")switch(t.$$typeof){case ao.ForwardRef:return fl(t,t.render,"ForwardRef");case ao.Memo:return fl(t,t.type,"memo");default:return}}}function Kn(t){let n=t,{variants:e}=n,r=A(n,["variants"]),o={variants:e,style:In(r),isProcessed:!0};return o.style===r||e&&e.forEach(i=>{typeof i.style!="function"&&(i.style=In(i.style))}),o}var xd=it();function Zn(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function vd(t){return t?(e,r)=>r[t]:null}function bd(t,e,r){t.theme=Sd(t.theme)?r:t.theme[e]||t.theme}function lo(t,e){let r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>lo(t,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=A(o,["variants"])}return ml(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function ml(t,e,r=[]){var n;let o;e:for(let i=0;i<e.length;i+=1){let a=e[i];if(typeof a.props=="function"){if(o!=null||(o=g(c(c({},t),t.ownerState),{ownerState:t.ownerState})),!a.props(o))continue}else for(let l in a.props)if(t[l]!==a.props[l]&&((n=t.ownerState)==null?void 0:n[l])!==a.props[l])continue e;typeof a.style=="function"?(o!=null||(o=g(c(c({},t),t.ownerState),{ownerState:t.ownerState})),r.push(a.style(o))):r.push(a.style)}return r}function uo(t={}){let{themeId:e,defaultTheme:r=xd,rootShouldForwardProp:o=Zn,slotShouldForwardProp:n=Zn}=t;function i(l){bd(l,e,r)}return(l,s={})=>{Qs(l,R=>R.filter(D=>D!==wt));let O=s,{name:u,slot:p,skipVariantsResolver:f,skipSx:m,overridesResolver:d=vd(hl(p))}=O,x=A(O,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),h=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,w=m||!1,C=Zn;p==="Root"||p==="root"?C=o:p?C=n:Td(l)&&(C=void 0);let S=An(l,c({shouldForwardProp:C,label:wd(u,p)},x)),b=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(te){return lo(te,R)};if(De(R)){let D=Kn(R);return D.variants?function(G){return lo(G,D)}:D.style}return R},T=(...R)=>{let D=[],te=R.map(b),G=[];if(D.push(i),u&&d&&G.push(function(y){var I,B;let P=(B=(I=y.theme.components)==null?void 0:I[u])==null?void 0:B.styleOverrides;if(!P)return null;let k={};for(let M in P)k[M]=lo(y,P[M]);return d(y,k)}),u&&!h&&G.push(function(y){var k,I;let v=y.theme,P=(I=(k=v==null?void 0:v.components)==null?void 0:k[u])==null?void 0:I.variants;return P?ml(y,P):null}),w||G.push(wt),Array.isArray(te[0])){let _=te.shift(),y=new Array(D.length).fill(""),v=new Array(G.length).fill(""),P;P=[...y,..._,...v],P.raw=[...y,..._.raw,...v],D.unshift(P)}let oe=[...D,...te,...G],F=S(...oe);return l.muiName&&(F.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=Cd(u,p,l)),F};return S.withConfig&&(T.withConfig=S.withConfig),T}}function Cd(t,e,r){return t?`${t}${Qe(e||"")}`:`Styled(${so(r)})`}function wd(t,e){let r;return process.env.NODE_ENV!=="production"&&t&&(r=`${t}-${hl(e||"Root")}`),r}function Sd(t){for(let e in t)return!1;return!0}function Td(t){return typeof t=="string"&&t.charCodeAt(0)>96}function hl(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}var Pd=uo(),Qn=Pd;function Qt(t,e){let r=c({},e);for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let n=o;if(n==="components"||n==="slots")r[n]=c(c({},t[n]),r[n]);else if(n==="componentsProps"||n==="slotProps"){let i=t[n],a=e[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]=Qt(i[s],a[s])}}}else r[n]===void 0&&(r[n]=t[n])}return r}function Xn(t){let{theme:e,name:r,props:o}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?o:Qt(e.components[r].defaultProps,o)}function co({props:t,name:e,defaultTheme:r,themeId:o}){let n=Gn(r);return o&&(n=n[o]||n),Xn({theme:n,name:e,props:t})}function po(t,e,r=void 0){let o={};for(let n in t){let i=t[n],a="",l=!0;for(let s=0;s<i.length;s+=1){let u=i[s];u&&(a+=(l===!0?"":" ")+e(u),l=!1,r&&r[u]&&(a+=" "+r[u]))}o[n]=a}return o}var Q=Ge(Vr());var X=Ge(Vr());var Ed=it(),Ad=Qn("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Id(t){return co({props:t,name:"MuiStack",defaultTheme:Ed})}function Fd(t,e){let r=St.Children.toArray(t).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(St.cloneElement(e,{key:`separator-${i}`})),o),[])}var Od=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Md=({ownerState:t,theme:e})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:e},Jr({values:t.direction,breakpoints:e.breakpoints.values}),o=>({flexDirection:o})));if(t.spacing){let o=qt(e),n=Object.keys(e.breakpoints.values).reduce((s,u)=>((typeof t.spacing=="object"&&t.spacing[u]!=null||typeof t.direction=="object"&&t.direction[u]!=null)&&(s[u]=!0),s),{}),i=Jr({values:t.direction,base:n}),a=Jr({values:t.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((s,u,p)=>{if(!i[s]){let m=u>0?i[p[u-1]]:"column";i[s]=m}}),r=Se(r,ie({theme:e},a,(s,u)=>t.useFlexGap?{gap:_e(o,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Od(u?i[u]:t.direction)}`]:_e(o,s)}}))}return r=nl(e.breakpoints,r),r};function Jn(t={}){let{createStyledComponent:e=Ad,useThemeProps:r=Id,componentName:o="MuiStack"}=t,n=()=>po({root:["root"]},s=>io(o,s),{}),i=e(Md),a=St.forwardRef(function(s,u){let p=r(s),R=no(p),{component:m="div",direction:d="column",spacing:x=0,divider:h,children:w,className:C,useFlexGap:S=!1}=R,b=A(R,["component","direction","spacing","divider","children","className","useFlexGap"]),T={direction:d,spacing:x,useFlexGap:S},O=n();return _jsxruntime.jsx.call(void 0, i,g(c({as:m,ownerState:T,ref:u,className:pl(O.root,C)},b),{children:h?Fd(w,h):w}))});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 gl=Jn();process.env.NODE_ENV!=="production"&&(gl.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 fo=gl;var Rd=_styled2.default.call(void 0, (0, _material.Typography))(({theme:t})=>({fontWeight:"bold"}));function vl(t){let{label:e,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=t;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, fo,{children:_jsxruntime.jsx.call(void 0, Rd,g(c({},o),{children:e}))}),_jsxruntime.jsx.call(void 0, fo,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function ho(t){let{typographyProps:e,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:l,isEditing:s,isLoading:u,error:p}=t,R=l||{},{InputProps:f,value:m,onKeyDown:d,onChange:x}=R,h=A(R,["InputProps","value","onKeyDown","onChange"]),[w,C]=_react.useState.call(void 0, !1),[S,b]=_react.useState.call(void 0, !1),[T,O]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{O(n)},[n]),_react.useEffect.call(void 0, ()=>{C(!!s)},[s]),_react.useEffect.call(void 0, ()=>{p&&b(!0)},[p]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!w&&!u&&!S&&_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, _material.Typography,g(c({onClick:()=>{C(!0)}},e),{children:T})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{C(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(w||u||S)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>C(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:u,autoFocus:!0,value:T,error:S,onKeyDown:D=>{D.key==="Enter"&&(r(T),C(!1)),D.key==="Escape"&&(O(n),C(!1),b(!1),o&&o(n,T))},onChange:D=>{let te=D.target.value;O(te)},InputProps:{endAdornment:_jsxruntime.jsxs.call(void 0, _material.InputAdornment,{position:"end",children:[u&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{size:18}),a&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{n!=T&&r(T),C(!1)},edge:"end",children:n!=T?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},h))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function Tt(t){let i=t,{onSearch:e}=i,r=A(i,["onSearch"]),o=_lodash2.default.debounce(a=>e(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 Pl(t){let{title:e,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:l,toolbarProps:s}=t,[u,p]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{m(e)},[e]);let d=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&l){let C=localStorage.getItem(l);d.current&&(d.current.value=C),a(C||"")}},[l]);let x=_material.useMediaQuery.call(void 0, C=>C.breakpoints.down("sm"));function h(C){l&&localStorage.setItem(l,C),a&&a(C)}let w={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return _jsxruntime.jsx.call(void 0, _material.Toolbar,g(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, ho,{typographyProps:w,value:f,onChange:C=>{i&&i(C)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,g(c({},w),{children:e}))]}),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, Tt,{inputRef:d,autoFocus:!0,onSearch:h}),r]})]})}))}function si(t){let F=t,{value:e,label:r,options:o,isLoading:n,form:i,table:a,tableProps:l,onChange:s,onSearch:u,renderValue:p,dialogProps:f,disabled:m,filterOptions:d,optionKeyName:x}=F,h=A(F,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:w,openDialog:C,closeDialog:S}=_hooks.useDialog.call(void 0, ),[b,T]=_react.useState.call(void 0, null),O=i||_n.default.Fragment,R=_lodash2.default.debounce(_=>u(_),500),D=_react.useCallback.call(void 0, (_,y)=>L(this,null,function*(){R(y)}),[R]),te=_react.useCallback.call(void 0, (_,y,v)=>{if(x&&(y!=null&&y[x].includes("Adicionar op\xE7\xE3o:"))){let P=y[x].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),k=g(c({},y),{[x]:P});s&&s(k);return}s&&s(y)},[s]);function G(_,y=!1,v=!1){var P;if(_){let k=_n.default.Children.toArray((P=_.props)==null?void 0:P.children),I=k.length===1?0:1;return k.splice(I,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>C(),disabled:v,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.SearchOutlined,{fontSize:"small"})})),y&&k.unshift(_jsxruntime.jsx.call(void 0, _material.IconButton,{disabled:!0,children:_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"primary",size:18})})),_n.default.cloneElement(_,{},k)}return _}function oe(_,y){if(!x)return _;let P=_material.createFilterOptions.call(void 0, )(_,y),{inputValue:k}=y,I=_.some(B=>k===B[x]);return k!==""&&!I&&P.push({[x]:`Adicionar op\xE7\xE3o: "${k}"`}),P}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:e,onInputChange:D,options:o,getOptionLabel:p,filterOptions:oe,renderInput:_=>_jsxruntime.jsx.call(void 0, _material.TextField,c(g(c({label:r,onDoubleClick:()=>{m||C()}},_),{InputProps:g(c({},_.InputProps),{endAdornment:G(_.InputProps.endAdornment,n,m)}),disabled:m}),h)),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, $e,g(c({open:w,onClose:()=>S(),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, Tt,{placeholder:"Pesquisar",onSearch:_=>T(_)}),i&&_jsxruntime.jsx.call(void 0, O,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:b,enableTransporter:!0,onTransport:_=>{S(),s&&s(_)}},l))]})}))})]})}var mm={dialogProps:{maxWidth:"md",fullWidth:!0}};si.defaultProps=mm;function li(t){let{children:e}=t,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:e})}function ui(t){let{label:e,subTitle:r="Acesse sua conta"}=t;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:e}),_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 ke=Ge(Rl()),Xt=Ge(Nl()),ql=Ge(Vl()),Nm=Object.prototype.toString,zm=Error.prototype.toString,Vm=RegExp.prototype.toString,jm=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",Wm=/^Symbol\((.*)\)(.*)$/;function Um(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function jl(t,e=!1){if(t==null||t===!0||t===!1)return""+t;let r=typeof t;if(r==="number")return Um(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return jm.call(t).replace(Wm,"Symbol($1)");let o=Nm.call(t).slice(8,-1);return o==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):o==="Error"||t instanceof Error?"["+zm.call(t)+"]":o==="RegExp"?Vm.call(t):null}function je(t,e){let r=jl(t,e);return r!==null?r:JSON.stringify(t,function(o,n){let i=jl(this[o],e);return i!==null?i:n},2)}function Gl(t){return t==null?[]:[].concat(t)}var Yl,Kl,Zl,Hm=/\$\{\s*(\w+)\s*\}/g;Yl=Symbol.toStringTag;var wo=class{constructor(e,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[Yl]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],Gl(e).forEach(i=>{if(ce.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]}};Kl=Symbol.hasInstance;Zl=Symbol.toStringTag;var ce=class extends Error{static formatError(e,r){let o=r.label||r.path||"this";return r=Object.assign({},r,{path:o,originalPath:r.path}),typeof e=="string"?e.replace(Hm,(n,i)=>je(r[i])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,o,n,i){let a=new wo(e,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[Zl]="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,ce)}static[Kl](e){return wo[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},Be={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:t,type:e,value:r,originalValue:o})=>{let n=o!=null&&o!==r?` (cast from the value \`${je(o,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${je(r,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${je(r,!0)}\``+n}},he={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"},Je={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"},gi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},yi={isValue:"${path} field must be ${value}"},vo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},bo={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"},Ql={notType:t=>{let{path:e,value:r,spec:o}=t,n=o.types.length;if(Array.isArray(r)){if(r.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${je(r,!0)}\``;if(r.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${je(r,!0)}\``}return ce.formatError(Be.notType,t)}},dP=Object.assign(Object.create(null),{mixed:Be,string:he,number:Je,date:gi,object:vo,array:bo,boolean:yi,tuple:Ql}),Fo=t=>t&&t.__isYupSchema__,Et=class{static fromOptions(e,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 Et(e,(l,s)=>{var u;let p=a(...l)?n:i;return(u=p==null?void 0:p(s))!=null?u:s})}constructor(e,r){this.fn=void 0,this.refs=e,this.refs=e,this.fn=r}resolve(e,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,e,r);if(n===void 0||n===e)return e;if(!Fo(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},xo={context:"$",value:"."};var We=class{constructor(e,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 e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===xo.context,this.isValue=this.key[0]===xo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?xo.context:this.isValue?xo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,ke.getter)(this.path,!0),this.map=r.map}getValue(e,r,o){let n=this.isContext?o:this.isValue?e:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,r){return this.getValue(e,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(e){return e&&e.__isYupRef}};We.prototype.__isYupRef=!0;var Ae=t=>t==null;function Pt(t){function e({value:r,path:o="",options:n,originalValue:i,schema:a},l,s){let{name:u,test:p,params:f,message:m,skipAbsent:d}=t,{parent:x,context:h,abortEarly:w=a.spec.abortEarly,disableStackTrace:C=a.spec.disableStackTrace}=n;function S(F){return We.isRef(F)?F.getValue(r,x,h):F}function b(F={}){let _=Object.assign({value:r,originalValue:i,label:a.spec.label,path:F.path||o,spec:a.spec,disableStackTrace:F.disableStackTrace||C},f,F.params);for(let v of Object.keys(_))_[v]=S(_[v]);let y=new ce(ce.formatError(F.message||m,_),r,_.path,F.type||u,_.disableStackTrace);return y.params=_,y}let T=w?l:s,O={path:o,parent:x,type:u,from:n.from,createError:b,resolve:S,options:n,originalValue:i,schema:a},R=F=>{ce.isError(F)?T(F):F?s(null):T(b())},D=F=>{ce.isError(F)?T(F):l(F)};if(d&&Ae(r))return R(!0);let G;try{var oe;if(G=p.call(O,r,O),typeof((oe=G)==null?void 0:oe.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(G).then(R,D)}}catch(F){D(F);return}R(G)}return e.OPTIONS=t,e}function qm(t,e,r,o=r){let n,i,a;return e?((0,ke.forEach)(e,(l,s,u)=>{let p=s?l.slice(1,l.length-1):l;t=t.resolve({context:o,parent:n,value:r});let f=t.type==="tuple",m=u?parseInt(p,10):0;if(t.innerType||f){if(f&&!u)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: ${e}. because there is no value at that index. `);n=r,r=r&&r[m],t=f?t.spec.types[m]:t.innerType}if(!u){if(!t.fields||!t.fields[p])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);n=r,r=r&&r[p],t=t.fields[p]}i=p,a=s?"["+l+"]":"."+l}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}var At=class extends Set{describe(){let e=[];for(let r of this.values())e.push(We.isRef(r)?r.describe():r);return e}resolveAll(e){let r=[];for(let o of this.values())r.push(e(o));return r}clone(){return new At(this.values())}merge(e,r){let o=this.clone();return e.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function kt(t,e=new Map){if(Fo(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let o=0;o<t.length;o++)r[o]=kt(t[o],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(let[o,n]of t.entries())r.set(o,kt(n,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(let o of t)r.add(kt(o,e))}else if(t instanceof Object){r={},e.set(t,r);for(let[o,n]of Object.entries(t))r[o]=kt(n,e)}else throw Error(`Unable to clone ${t}`);return r}var ae=class{constructor(e){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 At,this._blacklist=new At,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Be.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),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=kt(Object.assign({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let o=e(this);return this._mutate=r,o}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,o=e.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(e._whitelist,e._blacklist),o._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),o.tests=r.tests,o.exclusiveTests=r.exclusiveTests,o.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),o.transforms=[...r.transforms,...o.transforms],o}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let o=r.conditions;r=r.clone(),r.conditions=[],r=o.reduce((n,i)=>i.resolve(n,e),r),r=r.resolve(e)}return r}resolveOptions(e){var r,o,n,i;return Object.assign({},e,{from:e.from||[],strict:(r=e.strict)!=null?r:this.spec.strict,abortEarly:(o=e.abortEarly)!=null?o:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,r={}){let o=this.resolve(Object.assign({value:e},r)),n=r.assert==="ignore-optionality",i=o._cast(e,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Ae(i))return i;let a=je(e),l=je(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 Zt(t){return it(t,"spacing",8,"spacing")}function Re(t,e){return typeof e=="string"||e==null?e:t(e)}function Vf(t,e){return r=>t.reduce((o,n)=>(o[n]=Re(e,r),o),{})}function jf(t,e,r,o){if(!e.includes(r))return null;let n=zf(r),i=Vf(n,o),a=t[r];return ie(t,a,i)}function Gn(t,e){let r=Zt(t.theme);return Object.keys(t).map(o=>jf(t,e,o,r)).reduce($e,{})}function J(t){return Gn(t,no)}J.propTypes=process.env.NODE_ENV!=="production"?no.reduce((t,e)=>(t[e]=xe,t),{}):{};J.filterProps=no;function ee(t){return Gn(t,io)}ee.propTypes=process.env.NODE_ENV!=="production"?io.reduce((t,e)=>(t[e]=xe,t),{}):{};ee.filterProps=io;function ml(t){return Gn(t,Hn)}ml.propTypes=process.env.NODE_ENV!=="production"?Hn.reduce((t,e)=>(t[e]=xe,t),{}):{};ml.filterProps=Hn;function qn(t=8,e=Zt({spacing:t})){if(t.mui)return t;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=e(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Wf(...t){let e=t.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>e[i]?$e(n,e[i](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?t.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=t.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ne=Wf;function be(t){return typeof t!="number"?t:`${t}px solid`}function Te(t,e){return Z({prop:t,themeKey:"borders",transform:e})}var Uf=Te("border",be),Hf=Te("borderTop",be),Gf=Te("borderRight",be),qf=Te("borderBottom",be),Yf=Te("borderLeft",be),Kf=Te("borderColor"),Zf=Te("borderTopColor"),Qf=Te("borderRightColor"),Xf=Te("borderBottomColor"),Jf=Te("borderLeftColor"),ed=Te("outline",be),td=Te("outlineColor"),Qt=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){let e=it(t.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Re(e,o)});return ie(t,t.borderRadius,r)}return null};Qt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:xe}:{};Qt.filterProps=["borderRadius"];var gS=Ne(Uf,Hf,Gf,qf,Yf,Kf,Zf,Qf,Xf,Jf,Qt,ed,td);var Xt=t=>{if(t.gap!==void 0&&t.gap!==null){let e=it(t.theme,"spacing",8,"gap"),r=o=>({gap:Re(e,o)});return ie(t,t.gap,r)}return null};Xt.propTypes=process.env.NODE_ENV!=="production"?{gap:xe}:{};Xt.filterProps=["gap"];var Jt=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){let e=it(t.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Re(e,o)});return ie(t,t.columnGap,r)}return null};Jt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:xe}:{};Jt.filterProps=["columnGap"];var er=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){let e=it(t.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Re(e,o)});return ie(t,t.rowGap,r)}return null};er.propTypes=process.env.NODE_ENV!=="production"?{rowGap:xe}:{};er.filterProps=["rowGap"];var rd=Z({prop:"gridColumn"}),od=Z({prop:"gridRow"}),nd=Z({prop:"gridAutoFlow"}),id=Z({prop:"gridAutoColumns"}),ad=Z({prop:"gridAutoRows"}),sd=Z({prop:"gridTemplateColumns"}),ld=Z({prop:"gridTemplateRows"}),ud=Z({prop:"gridTemplateAreas"}),cd=Z({prop:"gridArea"}),SS=Ne(Xt,Jt,er,rd,od,nd,id,ad,sd,ld,ud,cd);function at(t,e){return e==="grey"?e:t}var pd=Z({prop:"color",themeKey:"palette",transform:at}),fd=Z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:at}),dd=Z({prop:"backgroundColor",themeKey:"palette",transform:at}),ES=Ne(pd,fd,dd);function me(t){return t<=1&&t!==0?`${t*100}%`:t}var md=Z({prop:"width",transform:me}),ao=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){let e=r=>{var n,i,a,l,s;let o=((a=(i=(n=t.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||Yt[r];return o?((s=(l=t.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:me(r)}};return ie(t,t.maxWidth,e)}return null};ao.filterProps=["maxWidth"];var hd=Z({prop:"minWidth",transform:me}),gd=Z({prop:"height",transform:me}),yd=Z({prop:"maxHeight",transform:me}),xd=Z({prop:"minHeight",transform:me}),OS=Z({prop:"size",cssProperty:"width",transform:me}),DS=Z({prop:"size",cssProperty:"height",transform:me}),bd=Z({prop:"boxSizing"}),RS=Ne(md,ao,hd,gd,yd,xd,bd);var vd={border:{themeKey:"borders",transform:be},borderTop:{themeKey:"borders",transform:be},borderRight:{themeKey:"borders",transform:be},borderBottom:{themeKey:"borders",transform:be},borderLeft:{themeKey:"borders",transform:be},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:be},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qt},color:{themeKey:"palette",transform:at},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:at},backgroundColor:{themeKey:"palette",transform:at},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:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xt},rowGap:{style:er},columnGap:{style:Jt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:me},maxWidth:{style:ao},minWidth:{transform:me},height:{transform:me},maxHeight:{transform:me},minHeight:{transform:me},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"}},Pt=vd;function Cd(...t){let e=t.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(e);return t.every(o=>r.size===Object.keys(o).length)}function wd(t,e){return typeof t=="function"?t(e):t}function Sd(){function t(r,o,n,i){let a={[r]:o,theme:n},l=i[r];if(!l)return{[r]:o};let{cssProperty:s=r,themeKey:u,transform:p,style:f}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[r]:o};let m=Tt(n,u)||{};return f?f(a):ie(a,o,x=>{let h=Kt(m,p,x);return x===h&&typeof x=="string"&&(h=Kt(m,p,`${r}${x==="default"?"":Qe(x)}`,x)),s===!1?h:{[s]:h}})}function e(r){var l;let{sx:o,theme:n={}}=r||{};if(!o)return null;let i=(l=n.unstable_sxConfig)!=null?l:Pt;function a(s){let u=s;if(typeof s=="function")u=s(n);else if(typeof s!="object")return s;if(!u)return null;let p=Wn(n.breakpoints),f=Object.keys(p),m=p;return Object.keys(u).forEach(d=>{let x=wd(u[d],n);if(x!=null)if(typeof x=="object")if(i[d])m=$e(m,t(d,x,n,i));else{let h=ie({theme:n},x,w=>({[d]:w}));Cd(h,x)?m[d]=e({sx:x,theme:n}):m=$e(m,h)}else m=$e(m,t(d,x,n,i))}),zn(n,Un(f,m))}return Array.isArray(o)?o.map(a):a(o)}return e}var hl=Sd();hl.filterProps=["sx"];var kt=hl;function Yn(t,e){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[t])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function Td(t={},...e){let p=t,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=p,a=k(p,["breakpoints","palette","spacing","shape"]),l=Nn(r),s=qn(n),u=Se({breakpoints:l,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:s,shape:c(c({},cl),i)},a);return u=to(u),u.applyStyles=Yn,u=e.reduce((f,m)=>Se(f,m),u),u.unstable_sxConfig=c(c({},Pt),a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(m){return kt({sx:m,theme:this})},u}var st=Td;function Pd(t){return Object.keys(t).length===0}function kd(t=null){let e=gl.useContext(_react2.ThemeContext);return!e||Pd(e)?t:e}var Kn=kd;var Ed=st();function Id(t=Ed){return Kn(t)}var Zn=Id;var Ad=t=>{var o,n;let e={systemProps:{},otherProps:{}},r=(n=(o=t==null?void 0:t.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Pt;return Object.keys(t).forEach(i=>{r[i]?e.systemProps[i]=t[i]:e.otherProps[i]=t[i]}),e};function so(t){let a=t,{sx:e}=a,r=k(a,["sx"]),{systemProps:o,otherProps:n}=Ad(r),i;return Array.isArray(e)?i=[o,...e]:typeof e=="function"?i=(...l)=>{let s=e(...l);return De(s)?c(c({},o),s):o}:i=c(c({},o),e),g(c({},n),{sx:i})}var yl=t=>t,Md=()=>{let t=yl;return{configure(e){t=e},generate(e){return t(e)},reset(){t=yl}}},Fd=Md(),Qn=Fd;function xl(t){var e,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(r=xl(t[e]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function Od(){for(var t,e,r=0,o="",n=arguments.length;r<n;r++)(t=arguments[r])&&(e=xl(t))&&(o&&(o+=" "),o+=e);return o}var bl=Od;var Dd={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 lo(t,e,r="Mui"){let o=Dd[e];return o?`${r}-${o}`:`${Qn.generate(t)}-${e}`}var uo=qe(Bn());function Cl(t,e=""){return t.displayName||t.name||e}function vl(t,e,r){let o=Cl(e);return t.displayName||(o!==""?`${r}(${o})`:r)}function co(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return Cl(t,"Component");if(typeof t=="object")switch(t.$$typeof){case uo.ForwardRef:return vl(t,t.render,"ForwardRef");case uo.Memo:return vl(t,t.type,"memo");default:return}}}function Xn(t){let n=t,{variants:e}=n,r=k(n,["variants"]),o={variants:e,style:On(r),isProcessed:!0};return o.style===r||e&&e.forEach(i=>{typeof i.style!="function"&&(i.style=On(i.style))}),o}var Rd=st();function Jn(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function _d(t){return t?(e,r)=>r[t]:null}function Bd(t,e,r){t.theme=Nd(t.theme)?r:t.theme[e]||t.theme}function po(t,e){let r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(n=>po(t,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=k(o,["variants"])}return wl(t,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function wl(t,e,r=[]){var n;let o;e:for(let i=0;i<e.length;i+=1){let a=e[i];if(typeof a.props=="function"){if(o!=null||(o=g(c(c({},t),t.ownerState),{ownerState:t.ownerState})),!a.props(o))continue}else for(let l in a.props)if(t[l]!==a.props[l]&&((n=t.ownerState)==null?void 0:n[l])!==a.props[l])continue e;typeof a.style=="function"?(o!=null||(o=g(c(c({},t),t.ownerState),{ownerState:t.ownerState})),r.push(a.style(o))):r.push(a.style)}return r}function fo(t={}){let{themeId:e,defaultTheme:r=Rd,rootShouldForwardProp:o=Jn,slotShouldForwardProp:n=Jn}=t;function i(l){Bd(l,e,r)}return(l,s={})=>{il(l,B=>B.filter(D=>D!==kt));let F=s,{name:u,slot:p,skipVariantsResolver:f,skipSx:m,overridesResolver:d=_d(Sl(p))}=F,x=k(F,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),h=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,w=m||!1,C=Jn;p==="Root"||p==="root"?C=o:p?C=n:zd(l)&&(C=void 0);let S=Fn(l,c({shouldForwardProp:C,label:$d(u,p)},x)),v=B=>{if(typeof B=="function"&&B.__emotion_real!==B)return function(te){return po(te,B)};if(De(B)){let D=Xn(B);return D.variants?function(q){return po(q,D)}:D.style}return B},T=(...B)=>{let D=[],te=B.map(v),q=[];if(D.push(i),u&&d&&q.push(function(y){var A,_;let P=(_=(A=y.theme.components)==null?void 0:A[u])==null?void 0:_.styleOverrides;if(!P)return null;let E={};for(let O in P)E[O]=po(y,P[O]);return d(y,E)}),u&&!h&&q.push(function(y){var E,A;let b=y.theme,P=(A=(E=b==null?void 0:b.components)==null?void 0:E[u])==null?void 0:A.variants;return P?wl(y,P):null}),w||q.push(kt),Array.isArray(te[0])){let R=te.shift(),y=new Array(D.length).fill(""),b=new Array(q.length).fill(""),P;P=[...y,...R,...b],P.raw=[...y,...R.raw,...b],D.unshift(P)}let oe=[...D,...te,...q],M=S(...oe);return l.muiName&&(M.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=Ld(u,p,l)),M};return S.withConfig&&(T.withConfig=S.withConfig),T}}function Ld(t,e,r){return t?`${t}${Qe(e||"")}`:`Styled(${co(r)})`}function $d(t,e){let r;return process.env.NODE_ENV!=="production"&&t&&(r=`${t}-${Sl(e||"Root")}`),r}function Nd(t){for(let e in t)return!1;return!0}function zd(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Sl(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}var Vd=fo(),ei=Vd;function tr(t,e){let r=c({},e);for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let n=o;if(n==="components"||n==="slots")r[n]=c(c({},t[n]),r[n]);else if(n==="componentsProps"||n==="slotProps"){let i=t[n],a=e[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]=tr(i[s],a[s])}}}else r[n]===void 0&&(r[n]=t[n])}return r}function ti(t){let{theme:e,name:r,props:o}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?o:tr(e.components[r].defaultProps,o)}function mo({props:t,name:e,defaultTheme:r,themeId:o}){let n=Zn(r);return o&&(n=n[o]||n),ti({theme:n,name:e,props:t})}function ho(t,e,r=void 0){let o={};for(let n in t){let i=t[n],a="",l=!0;for(let s=0;s<i.length;s+=1){let u=i[s];u&&(a+=(l===!0?"":" ")+e(u),l=!1,r&&r[u]&&(a+=" "+r[u]))}o[n]=a}return o}var Q=qe(Ur());var X=qe(Ur());var Wd=st(),Ud=ei("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Hd(t){return mo({props:t,name:"MuiStack",defaultTheme:Wd})}function Gd(t,e){let r=Et.Children.toArray(t).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(Et.cloneElement(e,{key:`separator-${i}`})),o),[])}var qd=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Yd=({ownerState:t,theme:e})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:e},ro({values:t.direction,breakpoints:e.breakpoints.values}),o=>({flexDirection:o})));if(t.spacing){let o=Zt(e),n=Object.keys(e.breakpoints.values).reduce((s,u)=>((typeof t.spacing=="object"&&t.spacing[u]!=null||typeof t.direction=="object"&&t.direction[u]!=null)&&(s[u]=!0),s),{}),i=ro({values:t.direction,base:n}),a=ro({values:t.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((s,u,p)=>{if(!i[s]){let m=u>0?i[p[u-1]]:"column";i[s]=m}}),r=Se(r,ie({theme:e},a,(s,u)=>t.useFlexGap?{gap:Re(o,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${qd(u?i[u]:t.direction)}`]:Re(o,s)}}))}return r=fl(e.breakpoints,r),r};function ri(t={}){let{createStyledComponent:e=Ud,useThemeProps:r=Hd,componentName:o="MuiStack"}=t,n=()=>ho({root:["root"]},s=>lo(o,s),{}),i=e(Yd),a=Et.forwardRef(function(s,u){let p=r(s),B=so(p),{component:m="div",direction:d="column",spacing:x=0,divider:h,children:w,className:C,useFlexGap:S=!1}=B,v=k(B,["component","direction","spacing","divider","children","className","useFlexGap"]),T={direction:d,spacing:x,useFlexGap:S},F=n();return _jsxruntime.jsx.call(void 0, i,g(c({as:m,ownerState:T,ref:u,className:bl(F.root,C)},v),{children:h?Gd(w,h):w}))});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 Tl=ri();process.env.NODE_ENV!=="production"&&(Tl.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 go=Tl;var Xd=_styled2.default.call(void 0, (0, _material.Typography))(({theme:t})=>({fontWeight:"bold"}));function El(t){let{label:e,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=t;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, go,{children:_jsxruntime.jsx.call(void 0, Xd,g(c({},o),{children:e}))}),_jsxruntime.jsx.call(void 0, go,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function xo(t){let{typographyProps:e,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:l,isEditing:s,isLoading:u,error:p}=t,B=l||{},{InputProps:f,value:m,onKeyDown:d,onChange:x}=B,h=k(B,["InputProps","value","onKeyDown","onChange"]),[w,C]=_react.useState.call(void 0, !1),[S,v]=_react.useState.call(void 0, !1),[T,F]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{F(n)},[n]),_react.useEffect.call(void 0, ()=>{C(!!s)},[s]),_react.useEffect.call(void 0, ()=>{p&&v(!0)},[p]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!w&&!u&&!S&&_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, _material.Typography,g(c({onClick:()=>{C(!0)}},e),{children:T})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{C(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(w||u||S)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>C(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:u,autoFocus:!0,value:T,error:S,onKeyDown:D=>{D.key==="Enter"&&(r(T),C(!1)),D.key==="Escape"&&(F(n),C(!1),v(!1),o&&o(n,T))},onChange:D=>{let te=D.target.value;F(te)},InputProps:{endAdornment:_jsxruntime.jsxs.call(void 0, _material.InputAdornment,{position:"end",children:[u&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{size:18}),a&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{n!=T&&r(T),C(!1)},edge:"end",children:n!=T?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},h))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function It(t){let i=t,{onSearch:e}=i,r=k(i,["onSearch"]),o=_lodash2.default.debounce(a=>e(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 Dl(t){let{title:e,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:l,toolbarProps:s}=t,[u,p]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{m(e)},[e]);let d=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&l){let C=localStorage.getItem(l);d.current&&(d.current.value=C),a(C||"")}},[l]);let x=_material.useMediaQuery.call(void 0, C=>C.breakpoints.down("sm"));function h(C){l&&localStorage.setItem(l,C),a&&a(C)}let w={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return _jsxruntime.jsx.call(void 0, _material.Toolbar,g(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, xo,{typographyProps:w,value:f,onChange:C=>{i&&i(C)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,g(c({},w),{children:e}))]}),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, It,{inputRef:d,autoFocus:!0,onSearch:h}),r]})]})}))}function ci(t){let M=t,{value:e,label:r,options:o,isLoading:n,form:i,table:a,tableProps:l,onChange:s,onSearch:u,renderValue:p,dialogProps:f,disabled:m,filterOptions:d,optionKeyName:x}=M,h=k(M,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:w,openDialog:C,closeDialog:S}=_hooks.useDialog.call(void 0, ),[v,T]=_react.useState.call(void 0, null),F=i||Ln.default.Fragment,B=_lodash2.default.debounce(R=>u(R),500),D=_react.useCallback.call(void 0, (R,y)=>$(this,null,function*(){B(y)}),[B]),te=_react.useCallback.call(void 0, (R,y,b)=>{if(x&&(y!=null&&y[x].includes("Adicionar op\xE7\xE3o:"))){let P=y[x].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),E=g(c({},y),{[x]:P});s&&s(E);return}s&&s(y)},[s]);function q(R,y=!1,b=!1){var P;if(R){let E=Ln.default.Children.toArray((P=R.props)==null?void 0:P.children),A=E.length===1?0:1;return E.splice(A,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>C(),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})})),Ln.default.cloneElement(R,{},E)}return R}function oe(R,y){if(!x)return R;let P=_material.createFilterOptions.call(void 0, )(R,y),{inputValue:E}=y,A=R.some(_=>E===_[x]);return E!==""&&!A&&P.push({[x]:`Adicionar op\xE7\xE3o: "${E}"`}),P}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:e,onInputChange:D,options:o,getOptionLabel:p,filterOptions:oe,renderInput:R=>_jsxruntime.jsx.call(void 0, _material.TextField,c(g(c({label:r,onDoubleClick:()=>{m||C()}},R),{InputProps:g(c({},R.InputProps),{endAdornment:q(R.InputProps.endAdornment,n,m)}),disabled:m}),h)),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, Le,g(c({open:w,onClose:()=>S(),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, It,{placeholder:"Pesquisar",onSearch:R=>T(R)}),i&&_jsxruntime.jsx.call(void 0, F,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:v,enableTransporter:!0,onTransport:R=>{S(),s&&s(R)}},l))]})}))})]})}var Mm={dialogProps:{maxWidth:"md",fullWidth:!0}};ci.defaultProps=Mm;function pi(t){let{children:e}=t,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:e})}function fi(t){let{label:e,subTitle:r="Acesse sua conta"}=t;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:e}),_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 ke=qe(Ul()),rr=qe(ql()),eu=qe(Kl()),th=Object.prototype.toString,rh=Error.prototype.toString,oh=RegExp.prototype.toString,nh=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",ih=/^Symbol\((.*)\)(.*)$/;function ah(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function Zl(t,e=!1){if(t==null||t===!0||t===!1)return""+t;let r=typeof t;if(r==="number")return ah(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return nh.call(t).replace(ih,"Symbol($1)");let o=th.call(t).slice(8,-1);return o==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):o==="Error"||t instanceof Error?"["+rh.call(t)+"]":o==="RegExp"?oh.call(t):null}function je(t,e){let r=Zl(t,e);return r!==null?r:JSON.stringify(t,function(o,n){let i=Zl(this[o],e);return i!==null?i:n},2)}function tu(t){return t==null?[]:[].concat(t)}var ru,ou,nu,sh=/\$\{\s*(\w+)\s*\}/g;ru=Symbol.toStringTag;var Po=class{constructor(e,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[ru]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],tu(e).forEach(i=>{if(ce.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]}};ou=Symbol.hasInstance;nu=Symbol.toStringTag;var ce=class extends Error{static formatError(e,r){let o=r.label||r.path||"this";return r=Object.assign({},r,{path:o,originalPath:r.path}),typeof e=="string"?e.replace(sh,(n,i)=>je(r[i])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,o,n,i){let a=new Po(e,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[nu]="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,ce)}static[ou](e){return Po[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},_e={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:t,type:e,value:r,originalValue:o})=>{let n=o!=null&&o!==r?` (cast from the value \`${je(o,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${je(r,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${je(r,!0)}\``+n}},he={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"},Je={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"},bi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},vi={isValue:"${path} field must be ${value}"},wo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},So={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"},iu={notType:t=>{let{path:e,value:r,spec:o}=t,n=o.types.length;if(Array.isArray(r)){if(r.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${je(r,!0)}\``;if(r.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${je(r,!0)}\``}return ce.formatError(_e.notType,t)}},nP=Object.assign(Object.create(null),{mixed:_e,string:he,number:Je,date:bi,object:wo,array:So,boolean:vi,tuple:iu}),Do=t=>t&&t.__isYupSchema__,Ft=class{static fromOptions(e,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 Ft(e,(l,s)=>{var u;let p=a(...l)?n:i;return(u=p==null?void 0:p(s))!=null?u:s})}constructor(e,r){this.fn=void 0,this.refs=e,this.refs=e,this.fn=r}resolve(e,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,e,r);if(n===void 0||n===e)return e;if(!Do(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},Co={context:"$",value:"."};var We=class{constructor(e,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 e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Co.context,this.isValue=this.key[0]===Co.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Co.context:this.isValue?Co.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,ke.getter)(this.path,!0),this.map=r.map}getValue(e,r,o){let n=this.isContext?o:this.isValue?e:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,r){return this.getValue(e,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(e){return e&&e.__isYupRef}};We.prototype.__isYupRef=!0;var Ie=t=>t==null;function At(t){function e({value:r,path:o="",options:n,originalValue:i,schema:a},l,s){let{name:u,test:p,params:f,message:m,skipAbsent:d}=t,{parent:x,context:h,abortEarly:w=a.spec.abortEarly,disableStackTrace:C=a.spec.disableStackTrace}=n;function S(M){return We.isRef(M)?M.getValue(r,x,h):M}function v(M={}){let R=Object.assign({value:r,originalValue:i,label:a.spec.label,path:M.path||o,spec:a.spec,disableStackTrace:M.disableStackTrace||C},f,M.params);for(let b of Object.keys(R))R[b]=S(R[b]);let y=new ce(ce.formatError(M.message||m,R),r,R.path,M.type||u,R.disableStackTrace);return y.params=R,y}let T=w?l:s,F={path:o,parent:x,type:u,from:n.from,createError:v,resolve:S,options:n,originalValue:i,schema:a},B=M=>{ce.isError(M)?T(M):M?s(null):T(v())},D=M=>{ce.isError(M)?T(M):l(M)};if(d&&Ie(r))return B(!0);let q;try{var oe;if(q=p.call(F,r,F),typeof((oe=q)==null?void 0:oe.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${F.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(q).then(B,D)}}catch(M){D(M);return}B(q)}return e.OPTIONS=t,e}function lh(t,e,r,o=r){let n,i,a;return e?((0,ke.forEach)(e,(l,s,u)=>{let p=s?l.slice(1,l.length-1):l;t=t.resolve({context:o,parent:n,value:r});let f=t.type==="tuple",m=u?parseInt(p,10):0;if(t.innerType||f){if(f&&!u)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: ${e}. because there is no value at that index. `);n=r,r=r&&r[m],t=f?t.spec.types[m]:t.innerType}if(!u){if(!t.fields||!t.fields[p])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);n=r,r=r&&r[p],t=t.fields[p]}i=p,a=s?"["+l+"]":"."+l}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}var Ot=class extends Set{describe(){let e=[];for(let r of this.values())e.push(We.isRef(r)?r.describe():r);return e}resolveAll(e){let r=[];for(let o of this.values())r.push(e(o));return r}clone(){return new Ot(this.values())}merge(e,r){let o=this.clone();return e.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function Mt(t,e=new Map){if(Do(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let o=0;o<t.length;o++)r[o]=Mt(t[o],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(let[o,n]of t.entries())r.set(o,Mt(n,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(let o of t)r.add(Mt(o,e))}else if(t instanceof Object){r={},e.set(t,r);for(let[o,n]of Object.entries(t))r[o]=Mt(n,e)}else throw Error(`Unable to clone ${t}`);return r}var ae=class{constructor(e){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 Ot,this._blacklist=new Ot,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_e.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),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=Mt(Object.assign({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let o=e(this);return this._mutate=r,o}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,o=e.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(e._whitelist,e._blacklist),o._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),o.tests=r.tests,o.exclusiveTests=r.exclusiveTests,o.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),o.transforms=[...r.transforms,...o.transforms],o}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let o=r.conditions;r=r.clone(),r.conditions=[],r=o.reduce((n,i)=>i.resolve(n,e),r),r=r.resolve(e)}return r}resolveOptions(e){var r,o,n,i;return Object.assign({},e,{from:e.from||[],strict:(r=e.strict)!=null?r:this.spec.strict,abortEarly:(o=e.abortEarly)!=null?o:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,r={}){let o=this.resolve(Object.assign({value:e},r)),n=r.assert==="ignore-optionality",i=o._cast(e,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Ie(i))return i;let a=je(e),l=je(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(e,r){let o=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return o===void 0&&(o=this.getDefault(r)),o}_validate(e,r={},o,n){let{path:i,originalValue:a=e,strict:l=this.spec.strict}=r,s=e;l||(s=this._cast(s,Object.assign({assert:!1},r)));let u=[];for(let p of Object.values(this.internalTests))p&&u.push(p);this.runTests({path:i,value:s,originalValue:a,options:r,tests:u},o,p=>{if(p.length)return n(p,s);this.runTests({path:i,value:s,originalValue:a,options:r,tests:this.tests},o,n)})}runTests(e,r,o){let n=!1,{tests:i,value:a,originalValue:l,path:s,options:u}=e,p=h=>{n||(n=!0,r(h,a))},f=h=>{n||(n=!0,o(h,a))},m=i.length,d=[];if(!m)return f([]);let x={value:a,originalValue:l,path:s,options:u,schema:this};for(let h=0;h<i.length;h++){let w=i[h];w(x,p,function(S){S&&(Array.isArray(S)?d.push(...S):d.push(S)),--m<=0&&f(d)})}}asNestedTest({key:e,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let l=e!=null?e:r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");let s=typeof l=="number",u=o[l],p=Object.assign({},a,{strict:!0,parent:o,value:u,originalValue:i[l],key:void 0,[s?"index":"key"]:l,path:s||l.includes(".")?`${n||""}[${s?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(f,m,d)=>this.resolve(p)._validate(u,p,m,d)}validate(e,r){var o;let n=this.resolve(Object.assign({},r,{value:e})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,l)=>n._validate(e,r,(s,u)=>{ce.isError(s)&&(s.value=u),l(s)},(s,u)=>{s.length?l(new ce(s,u,void 0,void 0,i)):a(u)}))}validateSync(e,r){var o;let n=this.resolve(Object.assign({},r,{value:e})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(e,Object.assign({},r,{sync:!0}),(l,s)=>{throw ce.isError(l)&&(l.value=s),l},(l,s)=>{if(l.length)throw new ce(l,e,void 0,void 0,a);i=s}),i}isValid(e,r){return this.validate(e,r).then(()=>!0,o=>{if(ce.isError(o))return!1;throw o})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(o){if(ce.isError(o))return!1;throw o}}_getDefault(e){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,e):kt(r)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,r){let o=this.clone({nullable:e});return o.internalTests.nullable=Pt({message:r,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),o}optionality(e,r){let o=this.clone({optional:e});return o.internalTests.optionality=Pt({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(e=Be.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Be.notNull){return this.nullability(!1,e)}required(e=Be.required){return this.clone().withMutation(r=>r.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=Be.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=Pt(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(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let o=this.clone(),n=Gl(e).map(i=>new We(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new Et(n,r):Et.fromOptions(n,r)),o}typeError(e){let r=this.clone();return r.internalTests.typeError=Pt({message:e,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(e,r=Be.oneOf){let o=this.clone();return e.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=Pt({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(e,r=Be.notOneOf){let o=this.clone();return e.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=Pt({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(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(e){let r=(e?this.resolve(e):this).clone(),{label:o,meta:n,optional:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(e),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,u,p)=>p.findIndex(f=>f.name===s.name)===u)}}};ae.prototype.__isYupSchema__=!0;for(let t of["validate","validateSync"])ae.prototype[`${t}At`]=function(e,r,o={}){let{parent:n,parentPath:i,schema:a}=qm(this,e,r,o.context);return a[t](n&&n[i],Object.assign({},o,{parent:n,path:e}))};for(let t of["equals","is"])ae.prototype[t]=ae.prototype.oneOf;for(let t of["not","nope"])ae.prototype[t]=ae.prototype.notOneOf;var Gm=()=>!0;function Ym(t){return new So(t)}var So=class extends ae{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Gm},e))}};Ym.prototype=So.prototype;function Km(){return new To}var To=class extends ae{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(o.spec.coerce&&!o.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=yi.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Ae(r)||r===!0}})}isFalse(e=yi.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Ae(r)||r===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};Km.prototype=To.prototype;var Zm=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Qm(t){let e=xi(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let r=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(r=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(r=0-r)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+r,e.second,e.millisecond)}function xi(t){var e,r;let o=Zm.exec(t);return o?{year:Ve(o[1]),month:Ve(o[2],1)-1,day:Ve(o[3],1),hour:Ve(o[4]),minute:Ve(o[5]),second:Ve(o[6]),millisecond:o[7]?Ve(o[7].substring(0,3)):0,precision:(e=(r=o[7])==null?void 0:r.length)!=null?e:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:Ve(o[10]),minuteOffset:Ve(o[11])}:null}function Ve(t,e=0){return Number(t)||e}var Xm=/^[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])?)*$/,Jm=/^((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,eh=/^(?:[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,th="^\\d{4}-\\d{2}-\\d{2}",rh="\\d{2}:\\d{2}:\\d{2}",oh="(([+-]\\d{2}(:?\\d{2})?)|Z)",nh=new RegExp(`${th}T${rh}(\\.\\d+)?${oh}$`),ih=t=>Ae(t)||t===t.trim(),ah={}.toString();function pe(){return new Po}var Po=class extends ae{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(!o.spec.coerce||o.isType(e)||Array.isArray(e))return e;let n=e!=null&&e.toString?e.toString():e;return n===ah?e:n})})}required(e){return super.required(e).withMutation(r=>r.test({message:e||Be.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e))}length(e,r=he.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(o){return o.length===this.resolve(e)}})}min(e,r=he.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o.length>=this.resolve(e)}})}max(e,r=he.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},skipAbsent:!0,test(o){return o.length<=this.resolve(e)}})}matches(e,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||he.matches,params:{regex:e},skipAbsent:!0,test:a=>a===""&&o||a.search(e)!==-1})}email(e=he.email){return this.matches(Xm,{name:"email",message:e,excludeEmptyString:!0})}url(e=he.url){return this.matches(Jm,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=he.uuid){return this.matches(eh,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let r="",o,n;return e&&(typeof e=="object"?{message:r="",allowOffset:o=!1,precision:n=void 0}=e:r=e),this.matches(nh,{name:"datetime",message:r||he.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||he.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:i=>{if(!i||o)return!0;let a=xi(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||he.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;let a=xi(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=he.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:ih})}lowercase(e=he.lowercase){return this.transform(r=>Ae(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Ae(r)||r===r.toLowerCase()})}uppercase(e=he.uppercase){return this.transform(r=>Ae(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Ae(r)||r===r.toUpperCase()})}};pe.prototype=Po.prototype;var sh=t=>t!=+t;function lh(){return new ko}var ko=class extends ae{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!sh(e)}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(!o.spec.coerce)return e;let n=e;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(e,r=Je.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o>=this.resolve(e)}})}max(e,r=Je.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o<=this.resolve(e)}})}lessThan(e,r=Je.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(o){return o<this.resolve(e)}})}moreThan(e,r=Je.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(o){return o>this.resolve(e)}})}positive(e=Je.positive){return this.moreThan(0,e)}negative(e=Je.negative){return this.lessThan(0,e)}integer(e=Je.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(e=>Ae(e)?e:e|0)}round(e){var r;let o=["ceil","floor","round","trunc"];if(e=((r=e)==null?void 0:r.toLowerCase())||"round",e==="trunc")return this.truncate();if(o.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(n=>Ae(n)?n:Math[e](n))}};lh.prototype=ko.prototype;var Xl=new Date(""),uh=t=>Object.prototype.toString.call(t)==="[object Date]";function Jl(){return new st}var st=class extends ae{constructor(){super({type:"date",check(e){return uh(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,r,o)=>!o.spec.coerce||o.isType(e)||e===null?e:(e=Qm(e),isNaN(e)?st.INVALID_DATE:new Date(e)))})}prepareParam(e,r){let o;if(We.isRef(e))o=e;else{let n=this.cast(e);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(e,r=gi.min){let o=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(e,r=gi.max){let o=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};st.INVALID_DATE=Xl;Jl.prototype=st.prototype;Jl.INVALID_DATE=Xl;function ch(t,e=[]){let r=[],o=new Set,n=new Set(e.map(([a,l])=>`${a}-${l}`));function i(a,l){let s=(0,ke.split)(a)[0];o.add(s),n.has(`${l}-${s}`)||r.push([l,s])}for(let a of Object.keys(t)){let l=t[a];o.add(a),We.isRef(l)&&l.isSibling?i(l.path,a):Fo(l)&&"deps"in l&&l.deps.forEach(s=>i(s,a))}return ql.default.array(Array.from(o),r).reverse()}function Wl(t,e){let r=1/0;return t.some((o,n)=>{var i;if((i=e.path)!=null&&i.includes(o))return r=n,!0}),r}function eu(t){return(e,r)=>Wl(t,e)-Wl(t,r)}var tu=(t,e,r)=>{if(typeof t!="string")return t;let o=t;try{o=JSON.parse(t)}catch(n){}return r.isType(o)?o:t};function Co(t){if("fields"in t){let e={};for(let[r,o]of Object.entries(t.fields))e[r]=Co(o);return t.setFields(e)}if(t.type==="array"){let e=t.optional();return e.innerType&&(e.innerType=Co(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(Co)}):"optional"in t?t.optional():t}var ph=(t,e)=>{let r=[...(0,ke.normalizePath)(e)];if(r.length===1)return r[0]in t;let o=r.pop(),n=(0,ke.getter)((0,ke.join)(r),!0)(t);return!!(n&&o in n)},Ul=t=>Object.prototype.toString.call(t)==="[object Object]";function Hl(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(o=>r.indexOf(o)===-1)}var fh=eu([]);function be(t){return new Eo(t)}var Eo=class extends ae{constructor(e){super({type:"object",check(r){return Ul(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=fh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,r={}){var o;let n=super._cast(e,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={},u=Object.assign({},r,{parent:s,__validating:r.__validating||!1}),p=!1;for(let f of l){let m=i[f],d=f in n;if(m){let x,h=n[f];u.path=(r.path?`${r.path}.`:"")+f,m=m.resolve({value:h,context:r.context,parent:s});let w=m instanceof ae?m.spec:void 0,C=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||f in n;continue}x=!r.__validating||!C?m.cast(n[f],u):n[f],x!==void 0&&(s[f]=x)}else d&&!a&&(s[f]=n[f]);(d!==f in s||s[f]!==n[f])&&(p=!0)}return p?s:n}_validate(e,r={},o,n){let{from:i=[],originalValue:a=e,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(e,r,o,(s,u)=>{if(!l||!Ul(u)){n(s,u);return}a=a||u;let p=[];for(let f of this._nodes){let m=this.fields[f];!m||We.isRef(m)||p.push(m.asNestedTest({options:r,key:f,parent:u,parentPath:r.path,originalParent:a}))}this.runTests({tests:p,value:u,originalValue:a,options:r},o,f=>{n(f.sort(this._sortErrors).concat(s),u)})})}clone(e){let r=super.clone(e);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(e){let r=super.concat(e),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,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let r={};return this._nodes.forEach(o=>{var n;let i=this.fields[o],a=e;(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(e,r){let o=this.clone();return o.fields=e,o._nodes=ch(e,r),o._sortErrors=eu(Object.keys(e)),r&&(o._excludedEdges=r),o}shape(e,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,e),n)})}partial(){let e={};for(let[r,o]of Object.entries(this.fields))e[r]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(e)}deepPartial(){return Co(this)}pick(e){let r={};for(let o of e)this.fields[o]&&(r[o]=this.fields[o]);return this.setFields(r,this._excludedEdges.filter(([o,n])=>e.includes(o)&&e.includes(n)))}omit(e){let r=[];for(let o of Object.keys(this.fields))e.includes(o)||r.push(o);return this.pick(r)}from(e,r,o){let n=(0,ke.getter)(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return ph(i,e)&&(a=Object.assign({},i),o||delete a[e],a[r]=n(i)),a})}json(){return this.transform(tu)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||vo.exact,test(r){if(r==null)return!0;let o=Hl(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,r=vo.noUnknown){typeof e!="boolean"&&(r=e,e=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;let i=Hl(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=e,o}unknown(e=!0,r=vo.noUnknown){return this.noUnknown(!e,r)}transformKeys(e){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[e(n)]=r[n];return o})}camelCase(){return this.transformKeys(Xt.camelCase)}snakeCase(){return this.transformKeys(Xt.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Xt.snakeCase)(e).toUpperCase())}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);o.fields={};for(let[i,a]of Object.entries(r.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),o.fields[i]=a.describe(l)}return o}};be.prototype=Eo.prototype;function dh(t){return new Ao(t)}var Ao=class extends ae{constructor(e){super({type:"array",spec:{types:e},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=e}_cast(e,r){let o=super._cast(e,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(e,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(e,r,o,(s,u)=>{var p;if(!l||!a||!this._typeCheck(u)){n(s,u);return}let f=new Array(u.length);for(let d=0;d<u.length;d++){var m;f[d]=a.asNestedTest({options:r,index:d,parent:u,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:e})}this.runTests({value:u,tests:f,originalValue:(p=r.originalValue)!=null?p:e,options:r},o,d=>n(d.concat(s),u))})}clone(e){let r=super.clone(e);return r.innerType=this.innerType,r}json(){return this.transform(tu)}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!Fo(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+je(e));return r.innerType=e,r.spec=Object.assign({},r.spec,{types:e}),r}length(e,r=bo.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(o){return o.length===this.resolve(e)}})}min(e,r){return r=r||bo.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o.length>=this.resolve(e)}})}max(e,r){return r=r||bo.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(o,n,i)=>!e(o,n,i):o=>!!o;return this.transform(o=>o!=null?o.filter(r):o)}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);if(r.innerType){var n;let i=e;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),o.innerType=r.innerType.describe(i)}return o}};dh.prototype=Ao.prototype;function mh(t){return new Io(t)}var Io=class extends ae{constructor(e){super({type:"tuple",spec:{types:e},check(r){let o=this.spec.types;return Array.isArray(r)&&r.length===o.length}}),this.withMutation(()=>{this.typeError(Ql.notType)})}_cast(e,r){let{types:o}=this.spec,n=super._cast(e,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((l,s)=>{let u=l.cast(n[s],Object.assign({},r,{path:`${r.path||""}[${s}]`}));return u!==n[s]&&(i=!0),u});return i?a:n}_validate(e,r={},o,n){let i=this.spec.types;super._validate(e,r,o,(a,l)=>{var s;if(!this._typeCheck(l)){n(a,l);return}let u=[];for(let[f,m]of i.entries()){var p;u[f]=m.asNestedTest({options:r,index:f,parent:l,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:e})}this.runTests({value:l,tests:u,originalValue:(s=r.originalValue)!=null?s:e,options:r},o,f=>n(f.concat(a),l))})}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);return o.innerType=r.spec.types.map((n,i)=>{var a;let l=e;return(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.describe(l)}),o}};mh.prototype=Io.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function lt(t){let{name:e,label:r,value:o,onChange:n,onKeyDown:i}=t,[a,l]=_react.useState.call(void 0, !1);function s(){l(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:e,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 Ph=_react.forwardRef.call(void 0, function(e,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},e))});function er(n){var i=n,{children:t,height:e,fullWidth:r=!0}=i,o=A(i,["children","height","fullWidth"]);return _jsxruntime.jsx.call(void 0, _material.Dialog,g(c({disableRestoreFocus:!0,fullWidth:r,TransitionComponent:Ph,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:e,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:t})}))}var _useDialogs = require('@toolpad/core/useDialogs');function bi({children:t}){return _jsxruntime.jsx.call(void 0, _useDialogs.DialogsProvider,{children:t})}function Ci(t){let a=t,{dialogComponent:e,payload:r,label:o}=a,n=A(a,["dialogComponent","payload","label"]),i=_useDialogs.useDialogs.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Button,g(c({variant:"contained",onClick:()=>{i.open(e,r)}},n),{children:o||" Adicionar"}))}function tr(t){let e=_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 ${e.palette.grey[300]}`},t))}function rr(t){let e=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h2",variant:"button",sx:{fontSize:"14px",color:e.palette.grey[500],whiteSpace:"nowrap"}},t))}function or({onClose:t}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>t(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function nr(r){var o=r,{children:t}=o,e=A(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,g(c({padding:"16px"},e),{children:t}))})}function ir(t){let e=_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 ${e.palette.grey[300]}`,height:"48px",sx:{backgroundColor:e.palette.background.paper}},t))}function ar(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},t))}function wi(r){var o=r,{children:t}=o,e=A(o,["children"]);return _jsxruntime.jsx.call(void 0, N,g(c({variant:"outlined",color:"error"},e),{children:"Cancelar"}))}function Si(o){var n=o,{children:t,label:e}=n,r=A(n,["children","label"]);return _jsxruntime.jsx.call(void 0, N,g(c({variant:"contained"},r),{children:e||"Salvar"}))}function Pi({open:t,onClose:e,payload:r}){let{useRemover:o,identificador:n}=r,{mutateAsync:i,isLoading:a}=o();function l(){return L(this,null,function*(){try{yield i(n),e()}catch(s){}})}return _jsxruntime.jsxs.call(void 0, er,{open:t,onClose:e,children:[_jsxruntime.jsxs.call(void 0, tr,{children:[_jsxruntime.jsx.call(void 0, rr,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, or,{onClose:e})]}),_jsxruntime.jsx.call(void 0, nr,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, ir,{children:_jsxruntime.jsxs.call(void 0, ar,{children:[_jsxruntime.jsx.call(void 0, N,{onClick:()=>e(),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 Gh={Root:er,Provider:bi,AdicionarButton:Ci,Header:tr,Title:rr,ActionClose:or,Content:nr,Footer:ir,Actions:ar,ActionCancelar:wi,ActionSalvar:Si,ConfirmDelete:Pi},j= exports.DialogV2 =Gh;function ct(t){let{isValid:e,message:r}=t,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:e?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:e?o.palette.success.main:"inherit",textDecoration:e?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var uu={senhaAtual:"",senhaNova:""},ng=be().shape({senhaAtual:pe().required("Informe a Senha Atual."),senhaNova:pe().required("Informe a Nova Senha.")});function Mt(t){let{isOpen:e,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:l,email:s}=t,{alterarSenha:u,isSubmitting:p}=_hooks.useCredentials.call(void 0, r),{setValidationErrors:f,validationProps:m}=_hooks.useValidations.call(void 0, ),{data:d,handleChange:x,setData:h,changeValue:w}=_hooks.useForm.call(void 0, uu),[C,S]=_react.useState.call(void 0, !1),[b,T]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{l&&w("senhaAtual",l)},[l]),_react.useEffect.call(void 0, ()=>{d.senhaNova&&S(_isStrongPassword2.default.call(void 0, d.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[d.senhaNova]);function O(){return L(this,null,function*(){f(null),T(null),ng.validate(d,{abortEarly:!1}).then(()=>L(this,null,function*(){var y;let{senhaAtual:F,senhaNova:_}=d;try{(yield u(F,_,s))&&(n&&n(),h(uu))}catch(v){if(i&&i(v),_axios.isAxiosError.call(void 0, v)){T((y=v.response)==null?void 0:y.data.message);return}T("Ocorreu um erro ao tentar alterar a senha")}})).catch(F=>{f(F)})})}function R(){return(d==null?void 0:d.senhaNova.length)>=8}function D(){if(d!=null&&d.senhaNova){let F=d==null?void 0:d.senhaNova.match(/[a-z]/g);return Array.isArray(F)&&F.length>0}return!1}function te(){if(d!=null&&d.senhaNova){let F=d==null?void 0:d.senhaNova.match(/[A-Z]/g);return Array.isArray(F)&&F.length>0}return!1}function G(){if(d!=null&&d.senhaNova){let F=d==null?void 0:d.senhaNova.match(/\d/g);return Array.isArray(F)&&F.length>0}return!1}function oe(){if(d!=null&&d.senhaNova){let F=d==null?void 0:d.senhaNova.match(/\W/g);return Array.isArray(F)&&F.length>0}return!1}return _jsxruntime.jsxs.call(void 0, j.Root,{open:e,onClose:F=>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, lt,c({name:"senhaAtual",label:"Senha Atual",value:(d==null?void 0:d.senhaAtual)||"",onChange:x},m("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, lt,c({name:"senhaNova",label:"Nova Senha",value:(d==null?void 0:d.senhaNova)||"",onChange:x},m("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{size:12,children:[_jsxruntime.jsx.call(void 0, ct,{isValid:R(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, ct,{isValid:D(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, ct,{isValid:te(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, ct,{isValid:G(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, ct,{isValid:oe(),message:"A nova senha deve ter ao menos um caracter especial"})]}),b&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:b})})]})}),_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:O,isLoading:p,disabled:!C})]})})]})}var fg=be().shape({email:pe().required("Informe o e-mail"),password:pe().required("Informe a senha")});function ki(t){let{onLoginSuccess:e,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=t,[i,a]=_react.useState.call(void 0, ""),[l,s]=_react.useState.call(void 0, ""),[u,p]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[d,x]=_react.useState.call(void 0, !1),[h,w]=_react.useState.call(void 0, null),{login:C}=_hooks.useCredentials.call(void 0, n),{validationProps:S,setValidationErrors:b}=_hooks.useValidations.call(void 0, );function T(){return L(this,null,function*(){b(null),w(null),fg.validate({email:i,password:l},{abortEarly:!1}).then(()=>L(this,null,function*(){var O,R;p(!0);try{let D=yield C(i,l);D&&e(D)}catch(D){if(_axios.isAxiosError.call(void 0, D)){if(((O=D.response)==null?void 0:O.data.code)==="E_FIRST_ACCESS"){m(!0);return}w((R=D.response)==null?void 0:R.data.message)}r(D)}})).catch(O=>{b(O)}).finally(()=>{p(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:T,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:O=>a(O.target.value)},S("email"))),_jsxruntime.jsx.call(void 0, lt,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:l||"",onChange:O=>s(O.target.value),onKeyDown:O=>O.key==="Enter"&&T()},S("password"))),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:T,isLoading:u,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"}),h&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:h}),d&&_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, Mt,{senhaAtual:l,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>L(this,null,function*(){return m(!1)}),onSuccess:()=>{m(!1),x(!0),s("")},credentialsConfig:n})]})}var yg=be().shape({email:pe().required("Informe o e-mail")});function Ei(t){let{onLoginClick:e,credentialsConfig:r}=t,[o,n]=_react.useState.call(void 0, ""),[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),[u,p]=_react.useState.call(void 0, null),{recuperarSenha:f}=_hooks.useCredentials.call(void 0, r),{validationProps:m,setValidationErrors:d}=_hooks.useValidations.call(void 0, );function x(){return L(this,null,function*(){d(null),yg.validate({email:o},{abortEarly:!1}).then(()=>L(this,null,function*(){var h;try{a(!0),yield f(o),s(!0)}catch(w){p((h=w.response)==null?void 0:h.data.message)}finally{a(!1)}})).catch(h=>{d(h)})})}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:h=>n(h.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, Ce,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, N,{onClick:e,variant:"text",sx:{fontWeight:"400",":hover":{color:h=>h.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:e,variant:"text",sx:{fontWeight:"400",":hover":{color:h=>h.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function Ii(t){var p;let{loginData:e,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=t,[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(e==null?void 0:e.empresas)){let f=e==null?void 0:e.empresas[0];a(f==null?void 0:f.uuid)}},[e]);function u(){return L(this,null,function*(){try{let f=yield l(e==null?void 0:e.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:(p=e==null?void 0:e.empresas)==null?void 0:p.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:u,isLoading:s,sx:{mt:1},children:"Confirmar"})]})}var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);var du=t=>{let e=t.replace(/\D/g,"");return e.length<=2?`(${e}`:e.length<=7?`(${e.slice(0,2)}) ${e.slice(2)}`:e.length<=11?`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7)}`:`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7,11)}`};function lr(t){let u=t,{value:e,onChange:r}=u,o=A(u,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=e!==void 0,l=_react.useMemo.call(void 0, ()=>a?du(e||""):n,[e,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:l,onChange:p=>{let f=du(p.target.value);if(a||i(f),r){let m=g(c({},p),{target:g(c({},p.target),{value:f})});r(m)}},inputProps:{maxLength:15}},o))}function ur({length:t=6,value:e,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,l)=>{var m;let s="ABCDEF0123456789",u=l.toUpperCase().split("").find(d=>s.includes(d))||"",p=e.split("");p[a]=u;let f=p.join("");r(f),u&&a<t-1&&((m=o.current[a+1])==null||m.focus())},i=(a,l)=>{var s;l.key==="Backspace"&&!e[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:t}).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:e[l]||"",onChange:s=>n(l,s.target.value),onKeyDown:s=>i(l,s)},l))})}function Oi(t){let{open:e,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=t,[a,l]=_react.useState.call(void 0, ""),[s,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarOtpVerificationCode:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{u(!1)},3e3)},[s]);function d(){return L(this,null,function*(){try{f(!0);let x=yield m({channel:o.channel,target:o.target,code:a});x&&n(x),r()}catch(x){u(x.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:e,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, ur,{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:d,isLoading:p,disabled:a.length!=6})]})})]})}var Ug=be().shape({contato:pe().when("$tipo",([t],e)=>t==="otp-email"?e.email("E-mail inv\xE1lido").required("Informe o e-mail"):e.matches(/^\+?[1-9]\d{7,14}$/,"N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp"))});function _o(t){let{tipo:e,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=t,[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),{gerarOtpVerificationCode:u}=_hooks.useCredentials.call(void 0, r),{handleChange:p,changeValue:f,data:m,validate:d,validationErrors:x}=_hooks.useForm.call(void 0, {contato:""},Ug),[h,w]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:S=>L(this,null,function*(){S.preventDefault(),d(b=>L(this,null,function*(){try{s(!1),a(!0);let T=yield u({channel:e==="otp-email"?"email":"whatsapp",target:b.contato});w(!0)}catch(T){s(T.response.data.message)}finally{a(!1)}}),{context:{tipo:e}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",children:e==="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"}),e==="otp-email"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:m.contato||"",onChange:p,fullWidth:!0},x("contato"))),e==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, lr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:m.contato||"",onChange:S=>{f("contato",S.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, Ce,{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:S=>S.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, Oi,{onLoginSuccess:o,open:h,onClose:S=>L(this,null,function*(){w(!1)}),payload:{target:m.contato,channel:e==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var Xg={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 Di(t){let{credentialsConfig:e,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=t,[a,l]=_react.useState.call(void 0, ),{selecionarLicenca:s,isAuthenticated:u}=_hooks.useCredentials.call(void 0, e),[p,f]=_react.useState.call(void 0, "login"),m=_material.useTheme.call(void 0, ),d=_material.useMediaQuery.call(void 0, m.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{u&&n&&n()},[u]);function x(b){return L(this,null,function*(){try{if(Array.isArray(b==null?void 0:b.empresas)){if((b==null?void 0:b.empresas.length)===1){let T=yield s(b==null?void 0:b.token,b.empresas[0].uuid);T&&r(T);return}f("licensa"),l(b);return}r(b)}catch(T){o(T)}})}function h(b){return L(this,null,function*(){o(b)})}function w(b){f(b)}function C(){f("login")}let S=Xg[p];return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"section",width:d?"46%":"100%",minWidth:"420px",maxWidth:d?"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, ui,{label:i,subTitle:S}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[p==="login"&&_jsxruntime.jsx.call(void 0, ki,{credentialsConfig:e,onLoginSuccess:x,onLoginFailed:h,onOptionsClick:w}),p==="licensa"&&_jsxruntime.jsx.call(void 0, Ii,{loginData:a,credentialsConfig:e,onLoginSuccess:r,onLoginFailed:o}),p==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, Ei,{onLoginClick:C,credentialsConfig:e}),p==="otp-email"&&_jsxruntime.jsx.call(void 0, _o,{onLoginClick:C,onLoginSuccess:x,tipo:"otp-email",credentialsConfig:e}),p==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, _o,{onLoginClick:C,onLoginSuccess:x,tipo:"otp-whatsapp",credentialsConfig:e})]})]})}),_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:b=>b.palette.grey[500]},children:"Data C Sistemas"})]})]})}function Bi(){let t=_material.useTheme.call(void 0, ),e=_material.useMediaQuery.call(void 0, t.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:e?"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 bu(t){let{banner:e}=t;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[e?_jsxruntime.jsx.call(void 0, li,{children:e}):_jsxruntime.jsx.call(void 0, Bi,{}),_jsxruntime.jsx.call(void 0, Di,c({},t))]})}var sy=_styles.styled.call(void 0, _material.MenuItem,{})(({theme:t})=>({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:t.palette.primary.main},"& .MuiSvgIcon-root":{color:t.palette.primary.main},"& .MuiIcon-root":{color:t.palette.primary.main}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{letterSpacing:"0.5px",color:t.palette.text.secondary,fontSize:t.typography.body1},"& .MuiSvgIcon-root":{fontSize:"24px"}})),ly=t=>_jsxruntime.jsx.call(void 0, sy,c({},t)),$o=ly;function $i(t){let{menuItem:e,activeMenu:r,onMenuClick:o}=t,[n,i]=_react.useState.call(void 0, !1);if(!e.visible)return null;let a=!!(e!=null&&e.items&&(e==null?void 0:e.items.length)>0);function l(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, $o,{onClick:()=>{if(e!=null&&e.link){o(e.link);return}l()},selected:r===e.link,children:[!!e.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:e.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(e==null?void 0:e.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, ft,{activeMenu:r,sx:{pl:s=>s.spacing(1.5)},menus:(e==null?void 0:e.items)||[],onMenuClick:o})})]})}function ft(t){let i=t,{menus:e,activeMenu:r,onMenuClick:o}=i,n=A(i,["menus","activeMenu","onMenuClick"]);return _jsxruntime.jsx.call(void 0, _material.List,g(c({component:"nav",disablePadding:!0},n),{children:e.map(a=>_jsxruntime.jsx.call(void 0, $i,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function Li(t){let{menus:e,activeMenu:r,onMenuClick:o}=t,[n,i]=_react.useState.call(void 0, null),a=(s,u,p)=>{i({element:s.currentTarget,id:u,items:p})},l=()=>{i(null)};return _jsxruntime.jsx.call(void 0, _material.List,{component:"nav",disablePadding:!0,children:e.map(s=>s.visible?_jsxruntime.jsxs.call(void 0, $o,{onMouseEnter:u=>{s!=null&&s.link||a(u,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, ft,{activeMenu:r,onMenuClick:o,menus:(s==null?void 0:s.items)||[],sx:{minWidth:"240px",backgroundColor:U.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 Su=(t,e)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Tu=t=>({transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${t.spacing(8)} + 1px)`,[t.breakpoints.up("sm")]:{width:`calc(${t.spacing(8)} + 1px)`}}),Ey=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:t=>t!=="open"&&t!=="width"})(({theme:t,open:e,width:r})=>c(c({width:r,bgcolor:t.palette.background.paper,boxShadow:"2px 3px 20px -16px rgb(32 32 36 / 30%)",borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},e&&g(c({},Su(r,t)),{"& .MuiDrawer-paper":Su(r,t)})),!e&&g(c({},Tu(t)),{"& .MuiDrawer-paper":Tu(t)})));function Pu(t){let s=t,{open:e,items:r,width:o,activeMenu:n,onMenuClick:i,toggleMenu:a}=s,l=A(s,["open","items","width","activeMenu","onMenuClick","toggleMenu"]);return _jsxruntime.jsxs.call(void 0, Ey,g(c({width:o,open:e,onClose:()=>a(!1)},l),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),e&&_jsxruntime.jsx.call(void 0, ft,{onMenuClick:i,activeMenu:n,menus:r}),!e&&_jsxruntime.jsx.call(void 0, Li,{onMenuClick:i,activeMenu:n,menus:r})]}))}function ku(t){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},t))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function Eu(t){let{user:e}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:e==null?void 0:e.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},t))}function Lo(t){let i=t,{children:e,value:r,index:o}=i,n=A(i,["children","value","index"]);return r!==o?null:_jsxruntime.jsx.call(void 0, _material.Box,g(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&&e}))}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 zi(t,e){return new Promise(r=>{let o=new Image;o.src=t,o.onload=()=>{let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let i=n.getContext("2d");i&&(i.drawImage(o,e.x,e.y,e.width,e.height,0,0,e.width,e.height),r(n.toDataURL("image/jpeg")))}})}var Vy=({onSave:t,src:e})=>{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,u]=_react.useState.call(void 0, 1),[p,f]=_react.useState.call(void 0, null),[m,d]=_react.useState.call(void 0, !1),x=_react.useCallback.call(void 0, (C,S)=>{f(S)},[]);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:e,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:C=>{var T;let S=(T=C.target.files)==null?void 0:T[0];if(!S)return;let b=new FileReader;b.onload=()=>{o(b.result),d(!0)},b.readAsDataURL(S)},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:()=>d(!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:u,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:(C,S)=>u(S)}),_jsxruntime.jsx.call(void 0, Ce,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>L(void 0,null,function*(){if(!r||!p)return;let C=yield zi(r,p);i(C),d(!1),t&&t(C)}),children:"Salvar"})})]})]})]})},Fu=Vy;var qy=be().shape({name:pe().required("Informe o nome")});function Ui(t){let{usuario:e,credentialsConfig:r,onUploadComplete:o}=t,{data:n,setData:i,handleChange:a,validate:l,validationErrors:s}=_hooks.useForm.call(void 0, e,qy),[u,p]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[d,x]=_react.useState.call(void 0, !1),{uploadAvatar:h,atualizarUsuario:w}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(e)},[e]),_react.useEffect.call(void 0, ()=>{d&&setTimeout(()=>{x(!1)},3e3)},[d]),_react.useEffect.call(void 0, ()=>{u&&setTimeout(()=>{p(!1)},3e3)},[u]);function C(){l(S=>L(this,null,function*(){try{m(!0),yield w(S),x(!0)}catch(b){p("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, Fu,{src:n==null?void 0:n.avatarUrl,onSave:S=>{try{h(S),o&&(x(!0),o(!0))}catch(b){p("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,b)}}}),_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, Ce,{children:_jsxruntime.jsx.call(void 0, N,{isLoading:f,onClick:()=>C(),variant:"contained",children:"Salvar"})})}),d&&_jsxruntime.jsx.call(void 0, _material.Alert,{children:"Dados da conta alterados com sucesso!"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function qi(t){var x,h,w;let{open:e,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=t,[a,l]=_react.useState.call(void 0, ""),[s,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarCodigoWhatsapp:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{u(!1)},3e3)},[s]);function d(){return L(this,null,function*(){try{f(!0);let C=yield m(a);n(C.data)}catch(C){u(C.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:e,onClose:C=>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)}) ${(h=o==null?void 0:o.whatsappNumber)==null?void 0:h.slice(2,7)}-${(w=o==null?void 0:o.whatsappNumber)==null?void 0:w.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, ur,{value:a,onChange:C=>{l(C)}}),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:d,isLoading:p,disabled:a.length!=6})]})})]})}var $I=be().shape({whatsappNumber:pe().required("Informe o n\xFAmero do whastapp").length(15)});function Zi(t){let{usuario:e,credentialsConfig:r,onWhastappSaved:o}=t,[n,i]=_react.useState.call(void 0, !1),[a,l]=_react.useState.call(void 0, !1),{data:s,setData:u,changeValue:p,validate:f,validationErrors:m}=_hooks.useForm.call(void 0, e),[d,x]=_react.useState.call(void 0, !1),[h,w]=_react.useState.call(void 0, !1),{atualizarUsuario:C,gerarWhatsappVerificationCode:S}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{u(e)},[e]);function b(){f(O=>L(this,null,function*(){try{l(!0);let R=yield C(O);o&&o(R.data)}catch(R){}finally{l(!1)}}))}function T(){return L(this,null,function*(){try{x(!0);let O=yield S();w(!0)}catch(O){}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, Mt,{isOpen:n,onClose:()=>L(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, lr,{disabled:!!(s!=null&&s.whatsappVerifiedAt),fullWidth:!1,name:"whatsappNumber",label:"Whastapp",value:s.whatsappNumber||"",onChange:O=>{p("whatsappNumber",O.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:b,children:"Salvar Whatsapp"})]}),e.whatsappNumber&&e.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:d,onClick:T,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, qi,{open:h,onClose:O=>L(this,null,function*(){w(!1)}),payload:e,credentialsConfig:r,onCodigoVerificado:O=>{u(O),w(!1)}})]})}function Ru(t){let[e,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:e,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, Lo,{value:e,index:0,children:_jsxruntime.jsx.call(void 0, Ui,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, Lo,{value:e,index:1,children:_jsxruntime.jsx.call(void 0, Zi,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}function Ji(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},t))}function ea({children:t}){return _jsxruntime.jsx.call(void 0, _n.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:e=>e.zIndex.drawer+1,borderBottom:e=>`1px solid ${e.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:t})})})})}function ta(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 oa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ia(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 aa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 sa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 gr(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ua(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Px=t=>({transition:t.transitions.create(["transform"],{duration:500})}),kx=_styles.styled.call(void 0, gr,{shouldForwardProp:t=>t!=="open"})(({theme:t,open:e})=>c(c(c({},Px(t)),e&&{transform:"rotate(-180deg)"}),!e&&{transform:"rotate(0)"}));function ca(t){let{open:e}=t;return _jsxruntime.jsx.call(void 0, kx,{fontSize:"small",open:e})}function pa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 fa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 da(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ha(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ga(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ya(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 va(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ca(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 wa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ta(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Pa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ea(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Aa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ia(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Fa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Oa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Da(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ba(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ra(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 La(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Na(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M6 18h12"}),_jsxruntime.jsx.call(void 0, "path",{d:"M6 14h12"}),_jsxruntime.jsx.call(void 0, "rect",{width:"12",height:"12",x:"6",y:"10"})]})}))}function Va(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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:"M22 2 2 22"})]})}))}function ja(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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"})]})}))}var b0={Circle:ia,Dashboard:sa,Expandable:ca,Down:gr,Negociacao:da,Cadastro:ta,Clientes:aa,Filter:pa,Search:ha,ChevronDown:oa,Kanban:fa,Erease:ua,BarCode:ga,TextCursor:ya,OpenPanel:va,ClosePanel:Ca,Menu:wa,Configs:Ta,Users:Pa,Password:Ea,Logout:Aa,History:Ia,Help:Fa,Video:Da,Docs:Oa,Block:Ba,Maps:Ra,MapPin:La,Estoque:Na,Blocked:Va,Profile:ja},Wa= exports.Icon =b0;function Ua(t){let e=A(t,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,g(c({},e),{children:_jsxruntime.jsx.call(void 0, Wa.Menu,{})}))}var w0={Root:ea,Content:Ji,ToggleMenu:Ua},S0= exports.Header =w0;exports.AlterarSenha = Mt; exports.Avatar = Eu; exports.Button = N; exports.ButtonContainer = Ce; exports.Checkbox = Ka; exports.ColorsGrid = Qa; exports.Content = ku; exports.CurrencyCellStyle = eb; exports.CurrencyTextField = vc; exports.DataTable = ip; exports.DataTableOptions = ln; exports.DeleteContainer = an; exports.Dialog = $e; exports.DialogV2 = j; exports.DrawerMenu = Pu; exports.Editable = ho; exports.FilterContainer = mn; exports.FilterControl = kr; exports.Flag = xs; exports.FormContainer = yn; exports.Header = S0; exports.Icon = Wa; exports.LabelValue = vl; exports.MioAuth = bu; exports.OptionStyles = Jv; exports.PageTitle = Pl; exports.PasswordTextField = lt; exports.Profile = Ru; exports.SearchTextField = Tt; exports.Surface = Sr; exports.Tooltip = mt; exports.Transporter = si; exports.theme = U;
10
+ `+(l!==a?`result of cast: ${l}`:""))}return i}_cast(e,r){let o=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return o===void 0&&(o=this.getDefault(r)),o}_validate(e,r={},o,n){let{path:i,originalValue:a=e,strict:l=this.spec.strict}=r,s=e;l||(s=this._cast(s,Object.assign({assert:!1},r)));let u=[];for(let p of Object.values(this.internalTests))p&&u.push(p);this.runTests({path:i,value:s,originalValue:a,options:r,tests:u},o,p=>{if(p.length)return n(p,s);this.runTests({path:i,value:s,originalValue:a,options:r,tests:this.tests},o,n)})}runTests(e,r,o){let n=!1,{tests:i,value:a,originalValue:l,path:s,options:u}=e,p=h=>{n||(n=!0,r(h,a))},f=h=>{n||(n=!0,o(h,a))},m=i.length,d=[];if(!m)return f([]);let x={value:a,originalValue:l,path:s,options:u,schema:this};for(let h=0;h<i.length;h++){let w=i[h];w(x,p,function(S){S&&(Array.isArray(S)?d.push(...S):d.push(S)),--m<=0&&f(d)})}}asNestedTest({key:e,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let l=e!=null?e:r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");let s=typeof l=="number",u=o[l],p=Object.assign({},a,{strict:!0,parent:o,value:u,originalValue:i[l],key:void 0,[s?"index":"key"]:l,path:s||l.includes(".")?`${n||""}[${s?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(f,m,d)=>this.resolve(p)._validate(u,p,m,d)}validate(e,r){var o;let n=this.resolve(Object.assign({},r,{value:e})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,l)=>n._validate(e,r,(s,u)=>{ce.isError(s)&&(s.value=u),l(s)},(s,u)=>{s.length?l(new ce(s,u,void 0,void 0,i)):a(u)}))}validateSync(e,r){var o;let n=this.resolve(Object.assign({},r,{value:e})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(e,Object.assign({},r,{sync:!0}),(l,s)=>{throw ce.isError(l)&&(l.value=s),l},(l,s)=>{if(l.length)throw new ce(l,e,void 0,void 0,a);i=s}),i}isValid(e,r){return this.validate(e,r).then(()=>!0,o=>{if(ce.isError(o))return!1;throw o})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(o){if(ce.isError(o))return!1;throw o}}_getDefault(e){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,e):Mt(r)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,r){let o=this.clone({nullable:e});return o.internalTests.nullable=At({message:r,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),o}optionality(e,r){let o=this.clone({optional:e});return o.internalTests.optionality=At({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(e=_e.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=_e.notNull){return this.nullability(!1,e)}required(e=_e.required){return this.clone().withMutation(r=>r.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=_e.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=At(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(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let o=this.clone(),n=tu(e).map(i=>new We(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new Ft(n,r):Ft.fromOptions(n,r)),o}typeError(e){let r=this.clone();return r.internalTests.typeError=At({message:e,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(e,r=_e.oneOf){let o=this.clone();return e.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=At({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(e,r=_e.notOneOf){let o=this.clone();return e.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=At({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(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(e){let r=(e?this.resolve(e):this).clone(),{label:o,meta:n,optional:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(e),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,u,p)=>p.findIndex(f=>f.name===s.name)===u)}}};ae.prototype.__isYupSchema__=!0;for(let t of["validate","validateSync"])ae.prototype[`${t}At`]=function(e,r,o={}){let{parent:n,parentPath:i,schema:a}=lh(this,e,r,o.context);return a[t](n&&n[i],Object.assign({},o,{parent:n,path:e}))};for(let t of["equals","is"])ae.prototype[t]=ae.prototype.oneOf;for(let t of["not","nope"])ae.prototype[t]=ae.prototype.notOneOf;var uh=()=>!0;function ch(t){return new ko(t)}var ko=class extends ae{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:uh},e))}};ch.prototype=ko.prototype;function ph(){return new Eo}var Eo=class extends ae{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(o.spec.coerce&&!o.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=vi.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Ie(r)||r===!0}})}isFalse(e=vi.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Ie(r)||r===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};ph.prototype=Eo.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(t){let e=Ci(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let r=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(r=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(r=0-r)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+r,e.second,e.millisecond)}function Ci(t){var e,r;let o=fh.exec(t);return o?{year:Ve(o[1]),month:Ve(o[2],1)-1,day:Ve(o[3],1),hour:Ve(o[4]),minute:Ve(o[5]),second:Ve(o[6]),millisecond:o[7]?Ve(o[7].substring(0,3)):0,precision:(e=(r=o[7])==null?void 0:r.length)!=null?e:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:Ve(o[10]),minuteOffset:Ve(o[11])}:null}function Ve(t,e=0){return Number(t)||e}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}",bh="(([+-]\\d{2}(:?\\d{2})?)|Z)",vh=new RegExp(`${yh}T${xh}(\\.\\d+)?${bh}$`),Ch=t=>Ie(t)||t===t.trim(),wh={}.toString();function pe(){return new Io}var Io=class extends ae{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(!o.spec.coerce||o.isType(e)||Array.isArray(e))return e;let n=e!=null&&e.toString?e.toString():e;return n===wh?e:n})})}required(e){return super.required(e).withMutation(r=>r.test({message:e||_e.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e))}length(e,r=he.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(o){return o.length===this.resolve(e)}})}min(e,r=he.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o.length>=this.resolve(e)}})}max(e,r=he.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},skipAbsent:!0,test(o){return o.length<=this.resolve(e)}})}matches(e,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||he.matches,params:{regex:e},skipAbsent:!0,test:a=>a===""&&o||a.search(e)!==-1})}email(e=he.email){return this.matches(mh,{name:"email",message:e,excludeEmptyString:!0})}url(e=he.url){return this.matches(hh,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=he.uuid){return this.matches(gh,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let r="",o,n;return e&&(typeof e=="object"?{message:r="",allowOffset:o=!1,precision:n=void 0}=e:r=e),this.matches(vh,{name:"datetime",message:r||he.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||he.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:i=>{if(!i||o)return!0;let a=Ci(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||he.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;let a=Ci(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=he.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:Ch})}lowercase(e=he.lowercase){return this.transform(r=>Ie(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Ie(r)||r===r.toLowerCase()})}uppercase(e=he.uppercase){return this.transform(r=>Ie(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Ie(r)||r===r.toUpperCase()})}};pe.prototype=Io.prototype;var Sh=t=>t!=+t;function Th(){return new Ao}var Ao=class extends ae{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!Sh(e)}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(!o.spec.coerce)return e;let n=e;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(e,r=Je.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o>=this.resolve(e)}})}max(e,r=Je.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o<=this.resolve(e)}})}lessThan(e,r=Je.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(o){return o<this.resolve(e)}})}moreThan(e,r=Je.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(o){return o>this.resolve(e)}})}positive(e=Je.positive){return this.moreThan(0,e)}negative(e=Je.negative){return this.lessThan(0,e)}integer(e=Je.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(e=>Ie(e)?e:e|0)}round(e){var r;let o=["ceil","floor","round","trunc"];if(e=((r=e)==null?void 0:r.toLowerCase())||"round",e==="trunc")return this.truncate();if(o.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(n=>Ie(n)?n:Math[e](n))}};Th.prototype=Ao.prototype;var au=new Date(""),Ph=t=>Object.prototype.toString.call(t)==="[object Date]";function su(){return new ut}var ut=class extends ae{constructor(){super({type:"date",check(e){return Ph(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,r,o)=>!o.spec.coerce||o.isType(e)||e===null?e:(e=dh(e),isNaN(e)?ut.INVALID_DATE:new Date(e)))})}prepareParam(e,r){let o;if(We.isRef(e))o=e;else{let n=this.cast(e);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(e,r=bi.min){let o=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(e,r=bi.max){let o=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};ut.INVALID_DATE=au;su.prototype=ut.prototype;su.INVALID_DATE=au;function kh(t,e=[]){let r=[],o=new Set,n=new Set(e.map(([a,l])=>`${a}-${l}`));function i(a,l){let s=(0,ke.split)(a)[0];o.add(s),n.has(`${l}-${s}`)||r.push([l,s])}for(let a of Object.keys(t)){let l=t[a];o.add(a),We.isRef(l)&&l.isSibling?i(l.path,a):Do(l)&&"deps"in l&&l.deps.forEach(s=>i(s,a))}return eu.default.array(Array.from(o),r).reverse()}function Ql(t,e){let r=1/0;return t.some((o,n)=>{var i;if((i=e.path)!=null&&i.includes(o))return r=n,!0}),r}function lu(t){return(e,r)=>Ql(t,e)-Ql(t,r)}var uu=(t,e,r)=>{if(typeof t!="string")return t;let o=t;try{o=JSON.parse(t)}catch(n){}return r.isType(o)?o:t};function To(t){if("fields"in t){let e={};for(let[r,o]of Object.entries(t.fields))e[r]=To(o);return t.setFields(e)}if(t.type==="array"){let e=t.optional();return e.innerType&&(e.innerType=To(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(To)}):"optional"in t?t.optional():t}var Eh=(t,e)=>{let r=[...(0,ke.normalizePath)(e)];if(r.length===1)return r[0]in t;let o=r.pop(),n=(0,ke.getter)((0,ke.join)(r),!0)(t);return!!(n&&o in n)},Xl=t=>Object.prototype.toString.call(t)==="[object Object]";function Jl(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(o=>r.indexOf(o)===-1)}var Ih=lu([]);function ve(t){return new Mo(t)}var Mo=class extends ae{constructor(e){super({type:"object",check(r){return Xl(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Ih,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,r={}){var o;let n=super._cast(e,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={},u=Object.assign({},r,{parent:s,__validating:r.__validating||!1}),p=!1;for(let f of l){let m=i[f],d=f in n;if(m){let x,h=n[f];u.path=(r.path?`${r.path}.`:"")+f,m=m.resolve({value:h,context:r.context,parent:s});let w=m instanceof ae?m.spec:void 0,C=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||f in n;continue}x=!r.__validating||!C?m.cast(n[f],u):n[f],x!==void 0&&(s[f]=x)}else d&&!a&&(s[f]=n[f]);(d!==f in s||s[f]!==n[f])&&(p=!0)}return p?s:n}_validate(e,r={},o,n){let{from:i=[],originalValue:a=e,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(e,r,o,(s,u)=>{if(!l||!Xl(u)){n(s,u);return}a=a||u;let p=[];for(let f of this._nodes){let m=this.fields[f];!m||We.isRef(m)||p.push(m.asNestedTest({options:r,key:f,parent:u,parentPath:r.path,originalParent:a}))}this.runTests({tests:p,value:u,originalValue:a,options:r},o,f=>{n(f.sort(this._sortErrors).concat(s),u)})})}clone(e){let r=super.clone(e);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(e){let r=super.concat(e),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,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let r={};return this._nodes.forEach(o=>{var n;let i=this.fields[o],a=e;(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(e,r){let o=this.clone();return o.fields=e,o._nodes=kh(e,r),o._sortErrors=lu(Object.keys(e)),r&&(o._excludedEdges=r),o}shape(e,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,e),n)})}partial(){let e={};for(let[r,o]of Object.entries(this.fields))e[r]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(e)}deepPartial(){return To(this)}pick(e){let r={};for(let o of e)this.fields[o]&&(r[o]=this.fields[o]);return this.setFields(r,this._excludedEdges.filter(([o,n])=>e.includes(o)&&e.includes(n)))}omit(e){let r=[];for(let o of Object.keys(this.fields))e.includes(o)||r.push(o);return this.pick(r)}from(e,r,o){let n=(0,ke.getter)(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return Eh(i,e)&&(a=Object.assign({},i),o||delete a[e],a[r]=n(i)),a})}json(){return this.transform(uu)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||wo.exact,test(r){if(r==null)return!0;let o=Jl(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,r=wo.noUnknown){typeof e!="boolean"&&(r=e,e=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;let i=Jl(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=e,o}unknown(e=!0,r=wo.noUnknown){return this.noUnknown(!e,r)}transformKeys(e){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[e(n)]=r[n];return o})}camelCase(){return this.transformKeys(rr.camelCase)}snakeCase(){return this.transformKeys(rr.snakeCase)}constantCase(){return this.transformKeys(e=>(0,rr.snakeCase)(e).toUpperCase())}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);o.fields={};for(let[i,a]of Object.entries(r.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),o.fields[i]=a.describe(l)}return o}};ve.prototype=Mo.prototype;function Ah(t){return new Fo(t)}var Fo=class extends ae{constructor(e){super({type:"array",spec:{types:e},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=e}_cast(e,r){let o=super._cast(e,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(e,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(e,r,o,(s,u)=>{var p;if(!l||!a||!this._typeCheck(u)){n(s,u);return}let f=new Array(u.length);for(let d=0;d<u.length;d++){var m;f[d]=a.asNestedTest({options:r,index:d,parent:u,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:e})}this.runTests({value:u,tests:f,originalValue:(p=r.originalValue)!=null?p:e,options:r},o,d=>n(d.concat(s),u))})}clone(e){let r=super.clone(e);return r.innerType=this.innerType,r}json(){return this.transform(uu)}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!Do(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+je(e));return r.innerType=e,r.spec=Object.assign({},r.spec,{types:e}),r}length(e,r=So.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(o){return o.length===this.resolve(e)}})}min(e,r){return r=r||So.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o.length>=this.resolve(e)}})}max(e,r){return r=r||So.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(o,n,i)=>!e(o,n,i):o=>!!o;return this.transform(o=>o!=null?o.filter(r):o)}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);if(r.innerType){var n;let i=e;(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=Fo.prototype;function Mh(t){return new Oo(t)}var Oo=class extends ae{constructor(e){super({type:"tuple",spec:{types:e},check(r){let o=this.spec.types;return Array.isArray(r)&&r.length===o.length}}),this.withMutation(()=>{this.typeError(iu.notType)})}_cast(e,r){let{types:o}=this.spec,n=super._cast(e,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((l,s)=>{let u=l.cast(n[s],Object.assign({},r,{path:`${r.path||""}[${s}]`}));return u!==n[s]&&(i=!0),u});return i?a:n}_validate(e,r={},o,n){let i=this.spec.types;super._validate(e,r,o,(a,l)=>{var s;if(!this._typeCheck(l)){n(a,l);return}let u=[];for(let[f,m]of i.entries()){var p;u[f]=m.asNestedTest({options:r,index:f,parent:l,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:e})}this.runTests({value:l,tests:u,originalValue:(s=r.originalValue)!=null?s:e,options:r},o,f=>n(f.concat(a),l))})}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);return o.innerType=r.spec.types.map((n,i)=>{var a;let l=e;return(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.describe(l)}),o}};Mh.prototype=Oo.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function ct(t){let{name:e,label:r,value:o,onChange:n,onKeyDown:i}=t,[a,l]=_react.useState.call(void 0, !1);function s(){l(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:e,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(e,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},e))});function nr(n){var i=n,{children:t,height:e,fullWidth:r=!0}=i,o=k(i,["children","height","fullWidth"]);return _jsxruntime.jsx.call(void 0, _material.Dialog,g(c({disableRestoreFocus:!0,fullWidth:r,TransitionComponent:Vh,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:e,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:t})}))}var _useDialogs = require('@toolpad/core/useDialogs');function Si({children:t}){return _jsxruntime.jsx.call(void 0, _useDialogs.DialogsProvider,{children:t})}function Ti(t){let a=t,{dialogComponent:e,payload:r,label:o}=a,n=k(a,["dialogComponent","payload","label"]),i=_useDialogs.useDialogs.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Button,g(c({variant:"contained",onClick:()=>{i.open(e,r)}},n),{children:o||" Adicionar"}))}function ir(t){let e=_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 ${e.palette.grey[300]}`},t))}function ar(t){let e=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h2",variant:"button",sx:{fontSize:"14px",color:e.palette.grey[500],whiteSpace:"nowrap"}},t))}function sr({onClose:t}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>t(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function lr(r){var o=r,{children:t}=o,e=k(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,g(c({padding:"16px"},e),{children:t}))})}function ur(t){let e=_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 ${e.palette.grey[300]}`,height:"48px",sx:{backgroundColor:e.palette.background.paper}},t))}function cr(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},t))}function Pi(r){var o=r,{children:t}=o,e=k(o,["children"]);return _jsxruntime.jsx.call(void 0, N,g(c({variant:"outlined",color:"error"},e),{children:"Cancelar"}))}function ki(o){var n=o,{children:t,label:e}=n,r=k(n,["children","label"]);return _jsxruntime.jsx.call(void 0, N,g(c({variant:"contained"},r),{children:e||"Salvar"}))}function Ii({open:t,onClose:e,payload:r}){let{useRemover:o,identificador:n}=r,{mutateAsync:i,isLoading:a}=o();function l(){return $(this,null,function*(){try{yield i(n),e()}catch(s){}})}return _jsxruntime.jsxs.call(void 0, nr,{open:t,onClose:e,children:[_jsxruntime.jsxs.call(void 0, ir,{children:[_jsxruntime.jsx.call(void 0, ar,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, sr,{onClose:e})]}),_jsxruntime.jsx.call(void 0, lr,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, ur,{children:_jsxruntime.jsxs.call(void 0, cr,{children:[_jsxruntime.jsx.call(void 0, N,{onClick:()=>e(),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:nr,Provider:Si,AdicionarButton:Ti,Header:ir,Title:ar,ActionClose:sr,Content:lr,Footer:ur,Actions:cr,ActionCancelar:Pi,ActionSalvar:ki,ConfirmDelete:Ii},j= exports.DialogV2 =ug;function ft(t){let{isValid:e,message:r}=t,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:e?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:e?o.palette.success.main:"inherit",textDecoration:e?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var yu={senhaAtual:"",senhaNova:""},vg=ve().shape({senhaAtual:pe().required("Informe a Senha Atual."),senhaNova:pe().required("Informe a Nova Senha.")});function Bt(t){let{isOpen:e,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:l,email:s}=t,{alterarSenha:u,isSubmitting:p}=_hooks.useCredentials.call(void 0, r),{setValidationErrors:f,validationProps:m}=_hooks.useValidations.call(void 0, ),{data:d,handleChange:x,setData:h,changeValue:w}=_hooks.useForm.call(void 0, yu),[C,S]=_react.useState.call(void 0, !1),[v,T]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{l&&w("senhaAtual",l)},[l]),_react.useEffect.call(void 0, ()=>{d.senhaNova&&S(_isStrongPassword2.default.call(void 0, d.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[d.senhaNova]);function F(){return $(this,null,function*(){f(null),T(null),vg.validate(d,{abortEarly:!1}).then(()=>$(this,null,function*(){var y;let{senhaAtual:M,senhaNova:R}=d;try{(yield u(M,R,s))&&(n&&n(),h(yu))}catch(b){if(i&&i(b),_axios.isAxiosError.call(void 0, b)){T((y=b.response)==null?void 0:y.data.message);return}T("Ocorreu um erro ao tentar alterar a senha")}})).catch(M=>{f(M)})})}function B(){return(d==null?void 0:d.senhaNova.length)>=8}function D(){if(d!=null&&d.senhaNova){let M=d==null?void 0:d.senhaNova.match(/[a-z]/g);return Array.isArray(M)&&M.length>0}return!1}function te(){if(d!=null&&d.senhaNova){let M=d==null?void 0:d.senhaNova.match(/[A-Z]/g);return Array.isArray(M)&&M.length>0}return!1}function q(){if(d!=null&&d.senhaNova){let M=d==null?void 0:d.senhaNova.match(/\d/g);return Array.isArray(M)&&M.length>0}return!1}function oe(){if(d!=null&&d.senhaNova){let M=d==null?void 0:d.senhaNova.match(/\W/g);return Array.isArray(M)&&M.length>0}return!1}return _jsxruntime.jsxs.call(void 0, j.Root,{open:e,onClose:M=>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, ct,c({name:"senhaAtual",label:"Senha Atual",value:(d==null?void 0:d.senhaAtual)||"",onChange:x},m("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, ct,c({name:"senhaNova",label:"Nova Senha",value:(d==null?void 0:d.senhaNova)||"",onChange:x},m("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{size:12,children:[_jsxruntime.jsx.call(void 0, ft,{isValid:B(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, ft,{isValid:D(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, ft,{isValid:te(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, ft,{isValid:q(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, ft,{isValid:oe(),message:"A nova senha deve ter ao menos um caracter especial"})]}),v&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:v})})]})}),_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:F,isLoading:p,disabled:!C})]})})]})}var Ig=ve().shape({email:pe().required("Informe o e-mail"),password:pe().required("Informe a senha")});function Ai(t){let{onLoginSuccess:e,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=t,[i,a]=_react.useState.call(void 0, ""),[l,s]=_react.useState.call(void 0, ""),[u,p]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[d,x]=_react.useState.call(void 0, !1),[h,w]=_react.useState.call(void 0, null),{login:C}=_hooks.useCredentials.call(void 0, n),{validationProps:S,setValidationErrors:v}=_hooks.useValidations.call(void 0, );function T(){return $(this,null,function*(){v(null),w(null),Ig.validate({email:i,password:l},{abortEarly:!1}).then(()=>$(this,null,function*(){var F,B;p(!0);try{let D=yield C(i,l);D&&e(D)}catch(D){if(_axios.isAxiosError.call(void 0, D)){if(((F=D.response)==null?void 0:F.data.code)==="E_FIRST_ACCESS"){m(!0);return}w((B=D.response)==null?void 0:B.data.message)}r(D)}})).catch(F=>{v(F)}).finally(()=>{p(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:T,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:F=>a(F.target.value)},S("email"))),_jsxruntime.jsx.call(void 0, ct,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:l||"",onChange:F=>s(F.target.value),onKeyDown:F=>F.key==="Enter"&&T()},S("password"))),_jsxruntime.jsx.call(void 0, N,{fullWidth:!0,variant:"contained",onClick:T,isLoading:u,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"}),h&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:h}),d&&_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, Bt,{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=ve().shape({email:pe().required("Informe o e-mail")});function Mi(t){let{onLoginClick:e,credentialsConfig:r}=t,[o,n]=_react.useState.call(void 0, ""),[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),[u,p]=_react.useState.call(void 0, null),{recuperarSenha:f}=_hooks.useCredentials.call(void 0, r),{validationProps:m,setValidationErrors:d}=_hooks.useValidations.call(void 0, );function x(){return $(this,null,function*(){d(null),Dg.validate({email:o},{abortEarly:!1}).then(()=>$(this,null,function*(){var h;try{a(!0),yield f(o),s(!0)}catch(w){p((h=w.response)==null?void 0:h.data.message)}finally{a(!1)}})).catch(h=>{d(h)})})}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:h=>n(h.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, Ce,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, N,{onClick:e,variant:"text",sx:{fontWeight:"400",":hover":{color:h=>h.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:e,variant:"text",sx:{fontWeight:"400",":hover":{color:h=>h.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function Oi(t){var p;let{loginData:e,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=t,[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(e==null?void 0:e.empresas)){let f=e==null?void 0:e.empresas[0];a(f==null?void 0:f.uuid)}},[e]);function u(){return $(this,null,function*(){try{let f=yield l(e==null?void 0:e.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:(p=e==null?void 0:e.empresas)==null?void 0:p.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:u,isLoading:s,sx:{mt:1},children:"Confirmar"})]})}var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);var Cu=t=>{let e=t.replace(/\D/g,"");return e.length<=2?`(${e}`:e.length<=7?`(${e.slice(0,2)}) ${e.slice(2)}`:e.length<=11?`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7)}`:`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7,11)}`};function fr(t){let u=t,{value:e,onChange:r}=u,o=k(u,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=e!==void 0,l=_react.useMemo.call(void 0, ()=>a?Cu(e||""):n,[e,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:l,onChange:p=>{let f=Cu(p.target.value);if(a||i(f),r){let m=g(c({},p),{target:g(c({},p.target),{value:f})});r(m)}},inputProps:{maxLength:15}},o))}function dr({length:t=6,value:e,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,l)=>{var m;let s="ABCDEF0123456789",u=l.toUpperCase().split("").find(d=>s.includes(d))||"",p=e.split("");p[a]=u;let f=p.join("");r(f),u&&a<t-1&&((m=o.current[a+1])==null||m.focus())},i=(a,l)=>{var s;l.key==="Backspace"&&!e[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:t}).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:e[l]||"",onChange:s=>n(l,s.target.value),onKeyDown:s=>i(l,s)},l))})}function Ri(t){let{open:e,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=t,[a,l]=_react.useState.call(void 0, ""),[s,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarOtpVerificationCode:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{u(!1)},3e3)},[s]);function d(){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){u(x.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:e,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, dr,{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:d,isLoading:p,disabled:a.length!=6})]})})]})}var ay=ve().shape({contato:pe().when("$tipo",([t],e)=>t==="otp-email"?e.email("E-mail inv\xE1lido").required("Informe o e-mail"):e.matches(/^\+?[1-9]\d{7,14}$/,"N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp"))});function Lo(t){let{tipo:e,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=t,[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),{gerarOtpVerificationCode:u}=_hooks.useCredentials.call(void 0, r),{handleChange:p,changeValue:f,data:m,validate:d,validationErrors:x}=_hooks.useForm.call(void 0, {contato:""},ay),[h,w]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:S=>$(this,null,function*(){S.preventDefault(),d(v=>$(this,null,function*(){try{s(!1),a(!0);let T=yield u({channel:e==="otp-email"?"email":"whatsapp",target:v.contato});w(!0)}catch(T){s(T.response.data.message)}finally{a(!1)}}),{context:{tipo:e}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",children:e==="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"}),e==="otp-email"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:m.contato||"",onChange:p,fullWidth:!0},x("contato"))),e==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, fr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:m.contato||"",onChange:S=>{f("contato",S.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, Ce,{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:S=>S.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, Ri,{onLoginSuccess:o,open:h,onClose:S=>$(this,null,function*(){w(!1)}),payload:{target:m.contato,channel:e==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var my={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 Bi(t){let{credentialsConfig:e,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=t,[a,l]=_react.useState.call(void 0, ),{selecionarLicenca:s,isAuthenticated:u}=_hooks.useCredentials.call(void 0, e),[p,f]=_react.useState.call(void 0, "login"),m=_material.useTheme.call(void 0, ),d=_material.useMediaQuery.call(void 0, m.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{u&&n&&n()},[u]);function x(v){return $(this,null,function*(){try{if(Array.isArray(v==null?void 0:v.empresas)){if((v==null?void 0:v.empresas.length)===1){let T=yield s(v==null?void 0:v.token,v.empresas[0].uuid);T&&r(T);return}f("licensa"),l(v);return}r(v)}catch(T){o(T)}})}function h(v){return $(this,null,function*(){o(v)})}function w(v){f(v)}function C(){f("login")}let S=my[p];return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"section",width:d?"46%":"100%",minWidth:"420px",maxWidth:d?"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, fi,{label:i,subTitle:S}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[p==="login"&&_jsxruntime.jsx.call(void 0, Ai,{credentialsConfig:e,onLoginSuccess:x,onLoginFailed:h,onOptionsClick:w}),p==="licensa"&&_jsxruntime.jsx.call(void 0, Oi,{loginData:a,credentialsConfig:e,onLoginSuccess:r,onLoginFailed:o}),p==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, Mi,{onLoginClick:C,credentialsConfig:e}),p==="otp-email"&&_jsxruntime.jsx.call(void 0, Lo,{onLoginClick:C,onLoginSuccess:x,tipo:"otp-email",credentialsConfig:e}),p==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Lo,{onLoginClick:C,onLoginSuccess:x,tipo:"otp-whatsapp",credentialsConfig:e})]})]})}),_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:v=>v.palette.grey[500]},children:"Data C Sistemas"})]})]})}function $i(){let t=_material.useTheme.call(void 0, ),e=_material.useMediaQuery.call(void 0, t.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:e?"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 Iu(t){let{banner:e}=t;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[e?_jsxruntime.jsx.call(void 0, pi,{children:e}):_jsxruntime.jsx.call(void 0, $i,{}),_jsxruntime.jsx.call(void 0, Bi,c({},t))]})}var Sy=_styles.styled.call(void 0, _material.MenuItem,{})(({theme:t})=>({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:t.palette.primary.main},"& .MuiSvgIcon-root":{color:t.palette.primary.main},"& .MuiIcon-root":{color:t.palette.primary.main}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{letterSpacing:"0.5px",color:t.palette.text.secondary,fontSize:t.typography.body1},"& .MuiSvgIcon-root":{fontSize:"24px"}})),Ty=t=>_jsxruntime.jsx.call(void 0, Sy,c({},t)),zo=Ty;function zi(t){let{menuItem:e,activeMenu:r,onMenuClick:o}=t,[n,i]=_react.useState.call(void 0, !1);if(!e.visible)return null;let a=!!(e!=null&&e.items&&(e==null?void 0:e.items.length)>0);function l(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, zo,{onClick:()=>{if(e!=null&&e.link){o(e.link);return}l()},selected:r===e.link,children:[!!e.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:e.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(e==null?void 0:e.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, mt,{activeMenu:r,sx:{pl:s=>s.spacing(1.5)},menus:(e==null?void 0:e.items)||[],onMenuClick:o})})]})}function mt(t){let i=t,{menus:e,activeMenu:r,onMenuClick:o}=i,n=k(i,["menus","activeMenu","onMenuClick"]);return _jsxruntime.jsx.call(void 0, _material.List,g(c({component:"nav",disablePadding:!0},n),{children:e.map(a=>_jsxruntime.jsx.call(void 0, zi,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function Vi(t){let{menus:e,activeMenu:r,onMenuClick:o}=t,[n,i]=_react.useState.call(void 0, null),a=(s,u,p)=>{i({element:s.currentTarget,id:u,items:p})},l=()=>{i(null)};return _jsxruntime.jsx.call(void 0, _material.List,{component:"nav",disablePadding:!0,children:e.map(s=>s.visible?_jsxruntime.jsxs.call(void 0, zo,{onMouseEnter:u=>{s!=null&&s.link||a(u,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, mt,{activeMenu:r,onMenuClick:o,menus:(s==null?void 0:s.items)||[],sx:{minWidth:"240px",backgroundColor:U.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 Fu=(t,e)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Ou=t=>({transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${t.spacing(8)} + 1px)`,[t.breakpoints.up("sm")]:{width:`calc(${t.spacing(8)} + 1px)`}}),Wy=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:t=>t!=="open"&&t!=="width"})(({theme:t,open:e,width:r})=>c(c({width:r,bgcolor:t.palette.background.paper,boxShadow:"2px 3px 20px -16px rgb(32 32 36 / 30%)",borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},e&&g(c({},Fu(r,t)),{"& .MuiDrawer-paper":Fu(r,t)})),!e&&g(c({},Ou(t)),{"& .MuiDrawer-paper":Ou(t)})));function Du(t){let s=t,{open:e,items:r,width:o,activeMenu:n,onMenuClick:i,toggleMenu:a}=s,l=k(s,["open","items","width","activeMenu","onMenuClick","toggleMenu"]);return _jsxruntime.jsxs.call(void 0, Wy,g(c({width:o,open:e,onClose:()=>a(!1)},l),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),e&&_jsxruntime.jsx.call(void 0, mt,{onMenuClick:i,activeMenu:n,menus:r}),!e&&_jsxruntime.jsx.call(void 0, Vi,{onMenuClick:i,activeMenu:n,menus:r})]}))}function Ru(t){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},t))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function _u(t){let{user:e}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:e==null?void 0:e.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},t))}function Vo(t){let i=t,{children:e,value:r,index:o}=i,n=k(i,["children","value","index"]);return r!==o?null:_jsxruntime.jsx.call(void 0, _material.Box,g(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&&e}))}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 Wi(t,e){return new Promise(r=>{let o=new Image;o.src=t,o.onload=()=>{let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let i=n.getContext("2d");i&&(i.drawImage(o,e.x,e.y,e.width,e.height,0,0,e.width,e.height),r(n.toDataURL("image/jpeg")))}})}var ox=({onSave:t,src:e})=>{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,u]=_react.useState.call(void 0, 1),[p,f]=_react.useState.call(void 0, null),[m,d]=_react.useState.call(void 0, !1),x=_react.useCallback.call(void 0, (C,S)=>{f(S)},[]);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:e,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:C=>{var T;let S=(T=C.target.files)==null?void 0:T[0];if(!S)return;let v=new FileReader;v.onload=()=>{o(v.result),d(!0)},v.readAsDataURL(S)},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:()=>d(!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:u,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:(C,S)=>u(S)}),_jsxruntime.jsx.call(void 0, Ce,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>$(void 0,null,function*(){if(!r||!p)return;let C=yield Wi(r,p);i(C),d(!1),t&&t(C)}),children:"Salvar"})})]})]})]})},$u=ox;var lx=ve().shape({name:pe().required("Informe o nome")});function qi(t){let{usuario:e,credentialsConfig:r,onUploadComplete:o}=t,{data:n,setData:i,handleChange:a,validate:l,validationErrors:s}=_hooks.useForm.call(void 0, e,lx),[u,p]=_react.useState.call(void 0, !1),[f,m]=_react.useState.call(void 0, !1),[d,x]=_react.useState.call(void 0, !1),{uploadAvatar:h,atualizarUsuario:w}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(e)},[e]),_react.useEffect.call(void 0, ()=>{d&&setTimeout(()=>{x(!1)},3e3)},[d]),_react.useEffect.call(void 0, ()=>{u&&setTimeout(()=>{p(!1)},3e3)},[u]);function C(){l(S=>$(this,null,function*(){try{m(!0),yield w(S),x(!0)}catch(v){p("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, $u,{src:n==null?void 0:n.avatarUrl,onSave:S=>{try{h(S),o&&(x(!0),o(!0))}catch(v){p("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,v)}}}),_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, Ce,{children:_jsxruntime.jsx.call(void 0, N,{isLoading:f,onClick:()=>C(),variant:"contained",children:"Salvar"})})}),d&&_jsxruntime.jsx.call(void 0, _material.Alert,{children:"Dados da conta alterados com sucesso!"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function Ki(t){var x,h,w;let{open:e,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=t,[a,l]=_react.useState.call(void 0, ""),[s,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarCodigoWhatsapp:m}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{u(!1)},3e3)},[s]);function d(){return $(this,null,function*(){try{f(!0);let C=yield m(a);n(C.data)}catch(C){u(C.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, j.Root,{open:e,onClose:C=>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)}) ${(h=o==null?void 0:o.whatsappNumber)==null?void 0:h.slice(2,7)}-${(w=o==null?void 0:o.whatsappNumber)==null?void 0:w.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, dr,{value:a,onChange:C=>{l(C)}}),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:d,isLoading:p,disabled:a.length!=6})]})})]})}var IM=ve().shape({whatsappNumber:pe().required("Informe o n\xFAmero do whastapp").length(15)});function Ji(t){let{usuario:e,credentialsConfig:r,onWhastappSaved:o}=t,[n,i]=_react.useState.call(void 0, !1),[a,l]=_react.useState.call(void 0, !1),{data:s,setData:u,changeValue:p,validate:f,validationErrors:m}=_hooks.useForm.call(void 0, e),[d,x]=_react.useState.call(void 0, !1),[h,w]=_react.useState.call(void 0, !1),{atualizarUsuario:C,gerarWhatsappVerificationCode:S}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{u(e)},[e]);function v(){f(F=>$(this,null,function*(){try{l(!0);let B=yield C(F);o&&o(B.data)}catch(B){}finally{l(!1)}}))}function T(){return $(this,null,function*(){try{x(!0);let F=yield S();w(!0)}catch(F){}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, Bt,{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, fr,{disabled:!!(s!=null&&s.whatsappVerifiedAt),fullWidth:!1,name:"whatsappNumber",label:"Whastapp",value:s.whatsappNumber||"",onChange:F=>{p("whatsappNumber",F.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:v,children:"Salvar Whatsapp"})]}),e.whatsappNumber&&e.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:d,onClick:T,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, Ki,{open:h,onClose:F=>$(this,null,function*(){w(!1)}),payload:e,credentialsConfig:r,onCodigoVerificado:F=>{u(F),w(!1)}})]})}function Uu(t){let[e,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:e,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, Vo,{value:e,index:0,children:_jsxruntime.jsx.call(void 0, qi,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, Vo,{value:e,index:1,children:_jsxruntime.jsx.call(void 0, Ji,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}function ra(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},t))}function oa({children:t}){return _jsxruntime.jsx.call(void 0, Ln.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:e=>e.zIndex.drawer+1,borderBottom:e=>`1px solid ${e.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:t})})})})}function na(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 la(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ua(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ca(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 vr(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Vx=t=>({transition:t.transitions.create(["transform"],{duration:500})}),jx=_styles.styled.call(void 0, vr,{shouldForwardProp:t=>t!=="open"})(({theme:t,open:e})=>c(c(c({},Vx(t)),e&&{transform:"rotate(-180deg)"}),!e&&{transform:"rotate(0)"}));function da(t){let{open:e}=t;return _jsxruntime.jsx.call(void 0, jx,{fontSize:"small",open:e})}function ma(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ha(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ga(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 xa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ba(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 va(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 wa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ta(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Pa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ea(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ia(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ma(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Fa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Oa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Da(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ra(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Ba(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 $a(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Na(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 Va(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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 ja(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M6 18h12"}),_jsxruntime.jsx.call(void 0, "path",{d:"M6 14h12"}),_jsxruntime.jsx.call(void 0, "rect",{width:"12",height:"12",x:"6",y:"10"})]})}))}function Ua(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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:"M22 2 2 22"})]})}))}function Ha(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,g(c({},t),{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"})]})}))}var B0={Circle:la,Dashboard:ca,Expandable:da,Down:vr,Negociacao:ga,Cadastro:na,Clientes:ua,Filter:ma,Search:xa,ChevronDown:aa,Kanban:ha,Erease:fa,BarCode:ba,TextCursor:va,OpenPanel:wa,ClosePanel:Ta,Menu:Pa,Configs:Ea,Users:Ia,Password:Ma,Logout:Fa,History:Oa,Help:Da,Video:Ba,Docs:Ra,Block:$a,Maps:Na,MapPin:Va,Estoque:ja,Blocked:Ua,Profile:Ha},tt= exports.Icon =B0;function Ga(t){let e=k(t,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,g(c({},e),{children:_jsxruntime.jsx.call(void 0, tt.Menu,{})}))}var $0={Root:oa,Content:ra,ToggleMenu:Ga},N0= exports.Header =$0;var K0=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:t})=>({height:"32px",cursor:"pointer",gap:t.spacing(2),transition:"0.2s ease-in-out",padding:`${t.spacing(.25)} ${t.spacing(2)} ${t.spacing(.25)} ${t.spacing(2)}`,"&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{fontSize:"0.805rem",color:t.palette.text.primary},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function qa({label:t,icon:e,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),u=!!o;function p(){if(u){s(m=>!m);return}i&&a&&i(a)}function f(m){return typeof e=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:e}):m||_jsxruntime.jsx.call(void 0, tt.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, K0,{selected:n,disableGutters:!0,onClick:m=>{m.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:f(e)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:t}),u&&_jsxruntime.jsx.call(void 0, tt.Expandable,{open:l})]})}),u&&_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 ab=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:t})=>({cursor:"pointer",padding:`${t.spacing(1)} ${t.spacing(0)} ${t.spacing(.25)} ${t.spacing(0)}`,minHeight:"32px",flexDirection:"column",justifyContent:"center",alignItem:"center",alignContent:"center","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiTypography-root":{fontSize:"0.805rem",color:t.palette.text.primary},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function qu(t,e){return Ln.default.Children.map(t,r=>{var n;if(!Ln.default.isValidElement(r))return r;let o=(n=r.props)!=null&&n.children?qu(r.props.children,e):null;return Ln.default.cloneElement(r,{open:e,children:o})})}function Ka(t){let{icon:e,label:r,link:o,id:n,selected:i=!1,children:a,onClick:l}=t,[s,u]=_react.useState.call(void 0, null);function p(){l&&o&&l(o)}function f(h,w){u({element:h.currentTarget,id:w})}function m(){u(null)}let d=qu(a,!0);function x(h){return typeof e=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:e}):h||_jsxruntime.jsx.call(void 0, tt.Circle,{})}return _jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, ab,{selected:i,onMouseEnter:h=>{o||f(h,n)},onMouseLeave:()=>{o||m()},disableGutters:!0,onClick:h=>{h.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:x(e)}),_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, yt,{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:h=>{var w;return(w=h.mixins.menu)==null?void 0:w.width}},children:d})})]})})}function Za(t){let n=t,{open:e,isFirstLevel:r=!1}=n,o=k(n,["open","isFirstLevel"]);return e?_jsxruntime.jsx.call(void 0, qa,c({},o)):_jsxruntime.jsx.call(void 0, Ka,c({},o))}var Ku=t=>{var e,r;return{width:((r=(e=t==null?void 0:t.mixins)==null?void 0:e.menu)==null?void 0:r.width)||64,background:"#FFFFFF",transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}},Zu=t=>({background:"#FFFFFF",transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),overflowX:"hidden",width:0,[t.breakpoints.up("sm")]:{width:`calc(${t.spacing(12)} + 1px)`}}),cb=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:t=>t!=="open"})(({theme:t,open:e})=>{var r,o;return c(c({width:((o=(r=t==null?void 0:t.mixins)==null?void 0:r.menu)==null?void 0:o.width)||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},e&&g(c({},Ku(t)),{"& .MuiDrawer-paper":Ku(t)})),!e&&g(c({},Zu(t)),{"& .MuiDrawer-paper":Zu(t)}))}),pb=_styles.styled.call(void 0, "div")(({theme:t})=>t.mixins.toolbar);function Ju(t,e,r,o){return Ln.default.Children.map(t,n=>{var s,u;if(!Ln.default.isValidElement(n))return n;let a=(((s=n.props.link)==null?void 0:s.split("/"))||[])[1],l=(u=n.props)!=null&&u.children?Ju(n.props.children,e,r,o):null;return Ln.default.cloneElement(n,{open:r,selected:e===a,onClick:p=>{o&&o(p)},children:l})})}function Xa(t){let{open:e,toggleMenu:r,children:o,onClickItem:n}=t,s=new URL(window.location.href).pathname.split("/")[1],u=Ju(o,s,e,n);return _jsxruntime.jsxs.call(void 0, cb,{variant:"permanent",open:e,onClose:r,children:[_jsxruntime.jsx.call(void 0, pb,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:u})]})}var db={Root:Xa,Item:Za},mb= exports.Menu =db;exports.AlterarSenha = Bt; exports.Avatar = _u; exports.Button = N; exports.ButtonContainer = Ce; exports.Checkbox = os; exports.ColorsGrid = is; exports.Content = Ru; exports.CurrencyCellStyle = Hv; exports.CurrencyTextField = _c; exports.DataTable = Cp; exports.DataTableOptions = pn; exports.DeleteContainer = un; exports.Dialog = Le; exports.DialogV2 = j; exports.DrawerMenu = Du; exports.Editable = xo; exports.FilterContainer = yn; exports.FilterControl = Ar; exports.Flag = ks; exports.FormContainer = vn; exports.Header = N0; exports.Icon = tt; exports.LabelValue = El; exports.Menu = mb; exports.MioAuth = Iu; exports.OptionStyles = Uv; exports.PageTitle = Dl; exports.PasswordTextField = ct; exports.Profile = Uu; exports.SearchTextField = It; exports.Surface = yt; exports.Tooltip = xt; exports.Transporter = ci; exports.theme = U;
11
11
  /*! Bundled license information:
12
12
 
13
13
  react-is/cjs/react-is.production.min.js: