@data-c/ui 0.1.72 → 0.1.73
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.d.ts +4 -2
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
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 Yf=Object.create;var _n=Object.defineProperty,Kf=Object.defineProperties,Zf=Object.getOwnPropertyDescriptor,Qf=Object.getOwnPropertyDescriptors,Xf=Object.getOwnPropertyNames,Qr=Object.getOwnPropertySymbols,Jf=Object.getPrototypeOf,$n=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable;var Gl=(e,t,r)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&Gl(e,r,t[r]);if(Qr)for(var r of Qr(t))Hl.call(t,r)&&Gl(e,r,t[r]);return e},d=(e,t)=>Kf(e,Qf(t));var C=(e,t)=>{var r={};for(var o in e)$n.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Qr)for(var o of Qr(e))t.indexOf(o)<0&&Hl.call(e,o)&&(r[o]=e[o]);return r};var ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ed=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xf(t))!$n.call(e,n)&&n!==r&&_n(e,n,{get:()=>t[n],enumerable:!(o=Zf(t,n))||o.enumerable});return e};var et=(e,t,r)=>(r=e!=null?Yf(Jf(e)):{},ed(t||!e||!e.__esModule?_n(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r)=>new Promise((o,n)=>{var i=l=>{try{s(r.next(l))}catch(u){n(u)}},a=l=>{try{s(r.throw(l))}catch(u){n(u)}},s=l=>l.done?o(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});var kc=ce(j=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,ri=ne?Symbol.for("react.element"):60103,oi=ne?Symbol.for("react.portal"):60106,oo=ne?Symbol.for("react.fragment"):60107,no=ne?Symbol.for("react.strict_mode"):60108,io=ne?Symbol.for("react.profiler"):60114,ao=ne?Symbol.for("react.provider"):60109,so=ne?Symbol.for("react.context"):60110,ni=ne?Symbol.for("react.async_mode"):60111,lo=ne?Symbol.for("react.concurrent_mode"):60111,co=ne?Symbol.for("react.forward_ref"):60112,uo=ne?Symbol.for("react.suspense"):60113,og=ne?Symbol.for("react.suspense_list"):60120,po=ne?Symbol.for("react.memo"):60115,fo=ne?Symbol.for("react.lazy"):60116,ng=ne?Symbol.for("react.block"):60121,ig=ne?Symbol.for("react.fundamental"):60117,ag=ne?Symbol.for("react.responder"):60118,sg=ne?Symbol.for("react.scope"):60119;function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ri:switch(e=e.type,e){case ni:case lo:case oo:case io:case no:case uo:return e;default:switch(e=e&&e.$$typeof,e){case so:case co:case fo:case po:case ao:return e;default:return t}}case oi:return t}}}function Tc(e){return ve(e)===lo}j.AsyncMode=ni;j.ConcurrentMode=lo;j.ContextConsumer=so;j.ContextProvider=ao;j.Element=ri;j.ForwardRef=co;j.Fragment=oo;j.Lazy=fo;j.Memo=po;j.Portal=oi;j.Profiler=io;j.StrictMode=no;j.Suspense=uo;j.isAsyncMode=function(e){return Tc(e)||ve(e)===ni};j.isConcurrentMode=Tc;j.isContextConsumer=function(e){return ve(e)===so};j.isContextProvider=function(e){return ve(e)===ao};j.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ri};j.isForwardRef=function(e){return ve(e)===co};j.isFragment=function(e){return ve(e)===oo};j.isLazy=function(e){return ve(e)===fo};j.isMemo=function(e){return ve(e)===po};j.isPortal=function(e){return ve(e)===oi};j.isProfiler=function(e){return ve(e)===io};j.isStrictMode=function(e){return ve(e)===no};j.isSuspense=function(e){return ve(e)===uo};j.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oo||e===lo||e===io||e===no||e===uo||e===og||typeof e=="object"&&e!==null&&(e.$$typeof===fo||e.$$typeof===po||e.$$typeof===ao||e.$$typeof===so||e.$$typeof===co||e.$$typeof===ig||e.$$typeof===ag||e.$$typeof===sg||e.$$typeof===ng)};j.typeOf=ve});var Ic=ce(q=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function w(E){return typeof E=="string"||typeof E=="function"||E===o||E===u||E===i||E===n||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===m||E.$$typeof===a||E.$$typeof===s||E.$$typeof===p||E.$$typeof===S||E.$$typeof===v||E.$$typeof===P||E.$$typeof===g)}function k(E){if(typeof E=="object"&&E!==null){var Ln=E.$$typeof;switch(Ln){case t:var Zr=E.type;switch(Zr){case l:case u:case o:case i:case n:case f:return Zr;default:var Wl=Zr&&Zr.$$typeof;switch(Wl){case s:case p:case y:case m:case a:return Wl;default:return Ln}}case r:return Ln}}}var R=l,_=u,T=s,Y=a,G=t,K=p,F=o,N=y,x=m,b=r,A=i,I=n,M=f,D=!1;function O(E){return D||(D=!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.")),B(E)||k(E)===l}function B(E){return k(E)===u}function V(E){return k(E)===s}function H(E){return k(E)===a}function z(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function me(E){return k(E)===p}function le(E){return k(E)===o}function Je(E){return k(E)===y}function Gf(E){return k(E)===m}function Hf(E){return k(E)===r}function Uf(E){return k(E)===i}function jf(E){return k(E)===n}function qf(E){return k(E)===f}q.AsyncMode=R,q.ConcurrentMode=_,q.ContextConsumer=T,q.ContextProvider=Y,q.Element=G,q.ForwardRef=K,q.Fragment=F,q.Lazy=N,q.Memo=x,q.Portal=b,q.Profiler=A,q.StrictMode=I,q.Suspense=M,q.isAsyncMode=O,q.isConcurrentMode=B,q.isContextConsumer=V,q.isContextProvider=H,q.isElement=z,q.isForwardRef=me,q.isFragment=le,q.isLazy=Je,q.isMemo=Gf,q.isPortal=Hf,q.isProfiler=Uf,q.isStrictMode=jf,q.isSuspense=qf,q.isValidElementType=w,q.typeOf=k}()});var ai=ce((rk,ii)=>{"use strict";process.env.NODE_ENV==="production"?ii.exports=kc():ii.exports=Ic()});var Mc=ce((ok,Ac)=>{"use strict";var Ec=Object.getOwnPropertySymbols,lg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable;function ug(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function pg(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}Ac.exports=pg()?Object.assign:function(e,t){for(var r,o=ug(e),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)lg.call(r,a)&&(o[a]=r[a]);if(Ec){n=Ec(r);for(var s=0;s<n.length;s++)cg.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o}});var mo=ce((nk,Fc)=>{"use strict";var fg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Fc.exports=fg});var si=ce((ik,Rc)=>{Rc.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var _c=ce((ak,Lc)=>{"use strict";var li=function(){};process.env.NODE_ENV!=="production"&&(Dc=mo(),go={},Oc=si(),li=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});var Dc,go,Oc;function Bc(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in e)if(Oc(e,i)){var a;try{if(typeof e[i]!="function"){var s=Error((o||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,o,r,null,Dc)}catch(u){a=u}if(a&&!(a instanceof Error)&&li((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 go)){go[a.message]=!0;var l=n?n():"";li("Failed "+r+" type: "+a.message+(l!=null?l:""))}}}}Bc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(go={})};Lc.exports=Bc});var Vc=ce((sk,Nc)=>{"use strict";var dg=ai(),mg=Mc(),Vt=mo(),ci=si(),$c=_c(),zt=function(){};process.env.NODE_ENV!=="production"&&(zt=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function ho(){return null}Nc.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(x){var b=x&&(r&&x[r]||x[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:h,element:m(),elementType:y(),instanceOf:g,node:w(),objectOf:v,oneOf:S,oneOfType:P,shape:R,exact:_};function s(x,b){return x===b?x!==0||1/x===1/b:x!==x&&b!==b}function l(x,b){this.message=x,this.data=b&&typeof b=="object"?b:{},this.stack=""}l.prototype=Error.prototype;function u(x){if(process.env.NODE_ENV!=="production")var b={},A=0;function I(D,O,B,V,H,z,me){if(V=V||i,z=z||B,me!==Vt){if(t){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Je=V+":"+B;!b[Je]&&A<3&&(zt("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),b[Je]=!0,A++)}}return O[B]==null?D?O[B]===null?new l("The "+H+" `"+z+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new l("The "+H+" `"+z+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:x(O,B,V,H,z)}var M=I.bind(null,!1);return M.isRequired=I.bind(null,!0),M}function p(x){function b(A,I,M,D,O,B){var V=A[I],H=G(V);if(H!==x){var z=K(V);return new l("Invalid "+D+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return u(b)}function f(){return u(ho)}function h(x){function b(A,I,M,D,O){if(typeof x!="function")return new l("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var B=A[I];if(!Array.isArray(B)){var V=G(B);return new l("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected an array."))}for(var H=0;H<B.length;H++){var z=x(B,H,M,D,O+"["+H+"]",Vt);if(z instanceof Error)return z}return null}return u(b)}function m(){function x(b,A,I,M,D){var O=b[A];if(!e(O)){var B=G(O);return new l("Invalid "+M+" `"+D+"` of type "+("`"+B+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return u(x)}function y(){function x(b,A,I,M,D){var O=b[A];if(!dg.isValidElementType(O)){var B=G(O);return new l("Invalid "+M+" `"+D+"` of type "+("`"+B+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return u(x)}function g(x){function b(A,I,M,D,O){if(!(A[I]instanceof x)){var B=x.name||i,V=N(A[I]);return new l("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected ")+("instance of `"+B+"`."))}return null}return u(b)}function S(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?zt("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])."):zt("Invalid argument supplied to oneOf, expected an array.")),ho;function b(A,I,M,D,O){for(var B=A[I],V=0;V<x.length;V++)if(s(B,x[V]))return null;var H=JSON.stringify(x,function(me,le){var Je=K(le);return Je==="symbol"?String(le):le});return new l("Invalid "+D+" `"+O+"` of value `"+String(B)+"` "+("supplied to `"+M+"`, expected one of "+H+"."))}return u(b)}function v(x){function b(A,I,M,D,O){if(typeof x!="function")return new l("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var B=A[I],V=G(B);if(V!=="object")return new l("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected an object."));for(var H in B)if(ci(B,H)){var z=x(B,H,M,D,O+"."+H,Vt);if(z instanceof Error)return z}return null}return u(b)}function P(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&zt("Invalid argument supplied to oneOfType, expected an instance of array."),ho;for(var b=0;b<x.length;b++){var A=x[b];if(typeof A!="function")return zt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(A)+" at index "+b+"."),ho}function I(M,D,O,B,V){for(var H=[],z=0;z<x.length;z++){var me=x[z],le=me(M,D,O,B,V,Vt);if(le==null)return null;le.data&&ci(le.data,"expectedType")&&H.push(le.data.expectedType)}var Je=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new l("Invalid "+B+" `"+V+"` supplied to "+("`"+O+"`"+Je+"."))}return u(I)}function w(){function x(b,A,I,M,D){return T(b[A])?null:new l("Invalid "+M+" `"+D+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return u(x)}function k(x,b,A,I,M){return new l((x||"React class")+": "+b+" type `"+A+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function R(x){function b(A,I,M,D,O){var B=A[I],V=G(B);if(V!=="object")return new l("Invalid "+D+" `"+O+"` of type `"+V+"` "+("supplied to `"+M+"`, expected `object`."));for(var H in x){var z=x[H];if(typeof z!="function")return k(M,D,O,H,K(z));var me=z(B,H,M,D,O+"."+H,Vt);if(me)return me}return null}return u(b)}function _(x){function b(A,I,M,D,O){var B=A[I],V=G(B);if(V!=="object")return new l("Invalid "+D+" `"+O+"` of type `"+V+"` "+("supplied to `"+M+"`, expected `object`."));var H=mg({},A[I],x);for(var z in H){var me=x[z];if(ci(x,z)&&typeof me!="function")return k(M,D,O,z,K(me));if(!me)return new l("Invalid "+D+" `"+O+"` key `"+z+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(A[I],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var le=me(B,z,M,D,O+"."+z,Vt);if(le)return le}return null}return u(b)}function T(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(T);if(x===null||e(x))return!0;var b=n(x);if(b){var A=b.call(x),I;if(b!==x.entries){for(;!(I=A.next()).done;)if(!T(I.value))return!1}else for(;!(I=A.next()).done;){var M=I.value;if(M&&!T(M[1]))return!1}}else return!1;return!0;default:return!1}}function Y(x,b){return x==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function G(x){var b=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":Y(b,x)?"symbol":b}function K(x){if(typeof x=="undefined"||x===null)return""+x;var b=G(x);if(b==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return b}function F(x){var b=K(x);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function N(x){return!x.constructor||!x.constructor.name?i:x.constructor.name}return a.checkPropTypes=$c,a.resetWarningCache=$c.resetWarningCache,a.PropTypes=a,a}});var Hc=ce((lk,Gc)=>{"use strict";var gg=mo();function zc(){}function Wc(){}Wc.resetWarningCache=zc;Gc.exports=function(){function e(o,n,i,a,s,l){if(l!==gg){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}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Wc,resetWarningCache:zc};return r.PropTypes=r,r}});var yo=ce((ck,ui)=>{process.env.NODE_ENV!=="production"?(Uc=ai(),jc=!0,ui.exports=Vc()(Uc.isElement,jc)):ui.exports=Hc()();var Uc,jc});var Zc=ce(Z=>{"use strict";var fi=Symbol.for("react.transitional.element"),di=Symbol.for("react.portal"),xo=Symbol.for("react.fragment"),vo=Symbol.for("react.strict_mode"),bo=Symbol.for("react.profiler");Symbol.for("react.provider");var Co=Symbol.for("react.consumer"),wo=Symbol.for("react.context"),So=Symbol.for("react.forward_ref"),Po=Symbol.for("react.suspense"),To=Symbol.for("react.suspense_list"),ko=Symbol.for("react.memo"),Io=Symbol.for("react.lazy"),yg=Symbol.for("react.view_transition"),xg=Symbol.for("react.client.reference");function Te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fi:switch(e=e.type,e){case xo:case bo:case vo:case Po:case To:case yg:return e;default:switch(e=e&&e.$$typeof,e){case wo:case So:case Io:case ko:return e;case Co:return e;default:return t}}case di:return t}}}Z.ContextConsumer=Co;Z.ContextProvider=wo;Z.Element=fi;Z.ForwardRef=So;Z.Fragment=xo;Z.Lazy=Io;Z.Memo=ko;Z.Portal=di;Z.Profiler=bo;Z.StrictMode=vo;Z.Suspense=Po;Z.SuspenseList=To;Z.isContextConsumer=function(e){return Te(e)===Co};Z.isContextProvider=function(e){return Te(e)===wo};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi};Z.isForwardRef=function(e){return Te(e)===So};Z.isFragment=function(e){return Te(e)===xo};Z.isLazy=function(e){return Te(e)===Io};Z.isMemo=function(e){return Te(e)===ko};Z.isPortal=function(e){return Te(e)===di};Z.isProfiler=function(e){return Te(e)===bo};Z.isStrictMode=function(e){return Te(e)===vo};Z.isSuspense=function(e){return Te(e)===Po};Z.isSuspenseList=function(e){return Te(e)===To};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xo||e===bo||e===vo||e===Po||e===To||typeof e=="object"&&e!==null&&(e.$$typeof===Io||e.$$typeof===ko||e.$$typeof===wo||e.$$typeof===Co||e.$$typeof===So||e.$$typeof===xg||e.getModuleId!==void 0)};Z.typeOf=Te});var Qc=ce(Q=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case t:switch(g=g.type,g){case o:case i:case n:case u:case p:case m:return g;default:switch(g=g&&g.$$typeof,g){case s:case l:case h:case f:return g;case a:return g;default:return S}}case r:return S}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Q.ContextConsumer=a,Q.ContextProvider=s,Q.Element=t,Q.ForwardRef=l,Q.Fragment=o,Q.Lazy=h,Q.Memo=f,Q.Portal=r,Q.Profiler=i,Q.StrictMode=n,Q.Suspense=u,Q.SuspenseList=p,Q.isContextConsumer=function(g){return e(g)===a},Q.isContextProvider=function(g){return e(g)===s},Q.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Q.isForwardRef=function(g){return e(g)===l},Q.isFragment=function(g){return e(g)===o},Q.isLazy=function(g){return e(g)===h},Q.isMemo=function(g){return e(g)===f},Q.isPortal=function(g){return e(g)===r},Q.isProfiler=function(g){return e(g)===i},Q.isStrictMode=function(g){return e(g)===n},Q.isSuspense=function(g){return e(g)===u},Q.isSuspenseList=function(g){return e(g)===p},Q.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===n||g===u||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===s||g.$$typeof===a||g.$$typeof===l||g.$$typeof===y||g.getModuleId!==void 0)},Q.typeOf=e}()});var gi=ce((xk,mi)=>{"use strict";process.env.NODE_ENV==="production"?mi.exports=Zc():mi.exports=Qc()});var Du=ce((aF,Ru)=>{"use strict";function xt(e){this._maxSize=e,this.clear()}xt.prototype.clear=function(){this._size=0,this._values=Object.create(null)};xt.prototype.get=function(e){return this._values[e]};xt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var ky=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Fu=/^\d+$/,Iy=/^\d/,Ey=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Ay=/^\s*(['"]?)(.*?)(\1)\s*$/,ji=512,Eu=new xt(ji),Au=new xt(ji),Mu=new xt(ji);Ru.exports={Cache:xt,split:Ui,normalizePath:Hi,setter:function(e){var t=Hi(e);return Au.get(e)||Au.set(e,function(o,n){for(var i=0,a=t.length,s=o;i<a-1;){var l=t[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return o;s=s[t[i++]]}s[t[i]]=n})},getter:function(e,t){var r=Hi(e);return Mu.get(e)||Mu.set(e,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!t)n=n[r[i++]];else return;return n})},join:function(e){return e.reduce(function(t,r){return t+(qi(r)||Fu.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){My(Array.isArray(e)?e:Ui(e),t,r)}};function Hi(e){return Eu.get(e)||Eu.set(e,Ui(e).map(function(t){return t.replace(Ay,"$2")}))}function Ui(e){return e.match(ky)||[""]}function My(e,t,r){var o=e.length,n,i,a,s;for(i=0;i<o;i++)n=e[i],n&&(Dy(n)&&(n='"'+n+'"'),s=qi(n),a=!s&&/^\d+$/.test(n),t.call(r,n,s,a,i,e))}function qi(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Fy(e){return e.match(Iy)&&!e.match(Fu)}function Ry(e){return Ey.test(e)}function Dy(e){return!qi(e)&&(Fy(e)||Ry(e))}});var Lu=ce((sF,Bu)=>{var Oy=/[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,qo=e=>e.match(Oy)||[],Yo=e=>e[0].toUpperCase()+e.slice(1),Yi=(e,t)=>qo(e).join(t).toLowerCase(),Ou=e=>qo(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),By=e=>Yo(Ou(e)),Ly=e=>Yi(e,"_"),_y=e=>Yi(e,"-"),$y=e=>Yo(Yi(e," ")),Ny=e=>qo(e).map(Yo).join(" ");Bu.exports={words:qo,upperFirst:Yo,camelCase:Ou,pascalCase:By,snakeCase:Ly,kebabCase:_y,sentenceCase:$y,titleCase:Ny}});var $u=ce((lF,Ki)=>{Ki.exports=function(e){return _u(Vy(e),e)};Ki.exports.array=_u;function _u(e,t){var r=e.length,o=new Array(r),n={},i=r,a=zy(t),s=Wy(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)n[i]||l(e[i],i,new Set);return o;function l(u,p,f){if(f.has(u)){var h;try{h=", node was:"+JSON.stringify(u)}catch(g){h=""}throw new Error("Cyclic dependency"+h)}if(!s.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 m=a.get(u)||new Set;if(m=Array.from(m),p=m.length){f.add(u);do{var y=m[--p];l(y,s.get(y),f)}while(p);f.delete(u)}o[--r]=u}}}function Vy(e){for(var t=new Set,r=0,o=e.length;r<o;r++){var n=e[r];t.add(n[0]),t.add(n[1])}return Array.from(t)}function zy(e){for(var t=new Map,r=0,o=e.length;r<o;r++){var n=e[r];t.has(n[0])||t.set(n[0],new Set),t.has(n[1])||t.set(n[1],new Set),t.get(n[0]).add(n[1])}return t}function Wy(e){for(var t=new Map,r=0,o=e.length;r<o;r++)t.set(e[r],r);return t}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var od=e=>{let n=e,{isLoading:t,children:r}=n,o=C(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,d(c({},o),{disabled:t?!0:o.disabled,children:t?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},L= exports.Button =od;function Se(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},e))}function jl(e){let o=e,{label:t}=o,r=C(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:t,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}var _polished = require('polished');var _styles = require('@mui/material/styles');var pt="#4BA9C1",fd="#2C96B3",ue={32:"2rem",28:"1.75rem",24:"1.5",20:"1.25rem",16:"1rem",14:"0.875rem",12:"0.75rem",10:"0.625rem"},Pe={800:"#202024",700:"#262626",600:"#333333",500:"#808080",400:"#BBBBBA",300:"#E0E0E0",200:"#F2F2F2",100:"#FAFAFA"},dd={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:pt,dark:fd},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:Pe[800],700:Pe[700],600:Pe[600],500:Pe[500],400:Pe[400],300:Pe[300],200:Pe[200],100:Pe[100]}},typography:{fontFamily:["Roboto","Lato","sans-serif","Poppins","Montserrat"].join(","),h1:{fontSize:ue[32],fontWeight:400,color:"#262626"},h2:{fontSize:ue[28],fontWeight:400,color:"#262626"},h3:{fontSize:ue[24],fontWeight:400,color:"#262626"},h4:{fontSize:ue[20],fontWeight:400,color:"#262626"},h5:{fontSize:ue[16],fontWeight:400,color:"#262626"},h6:{fontSize:ue[14],fontWeight:500,color:"#262626"},subtitle1:{fontSize:ue[14],fontWeight:400,color:"#262626"},subtitle2:{fontSize:ue[12],fontWeight:500,color:Pe[500]},body1:{fontSize:ue[14],fontWeight:400,color:"#262626"},body2:{fontSize:ue[12],fontWeight:400,color:"#808080"},caption:{fontSize:ue[12],fontWeight:400,color:"#808080"},overline:{fontSize:ue[10],fontWeight:400,textTransform:"uppercase",color:"#808080"}},components:{MuiTabs:{styleOverrides:{root:{minHeight:"30px"}}},MuiTab:{styleOverrides:{root:{minHeight:"30px",height:"30px",textTransform:"none",fontWeight:"400",fontSize:ue[12],"& .MuiTab-iconWrapper":{fontSize:ue[16]}}}},MuiList:{styleOverrides:{root:{paddingTop:0}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_styles.alpha.call(void 0, pt,.1),boxShadow:`inset 0 0 0 0.5px ${pt}`,borderRadius:"4px","& .MuiTypography-root":{color:pt,fontWeight:500},"& .MuiListItemIcon-root svg":{strokeWidth:2,color:pt}},":hover":{background:"rgba(89, 195, 224, 15%)",borderRadius:"4px"}}}},MuiToolbar:{defaultProps:{sx:{minHeight:"46px"}},styleOverrides:{root:{background:"#FFFFFF"}}},MuiChip:{defaultProps:{size:"small"}},MuiContainer:{defaultProps:{maxWidth:!1,disableGutters:!0},styleOverrides:{root:{display:"flex",flexDirection:"column",flexGrow:1}}},MuiButton:{defaultProps:{size:"small",variant:"outlined"},styleOverrides:{root:{fontSize:"0.755rem",textTransform:"none",fontWeight:"bold",minWidth:"78px"},contained:{color:"rgba(255,255,255,0.85)",boxShadow:"none"},outlined:{background:"white",":disabled":{background:"none",boxShadow:"none",borderColor:"#E0E0E0"}}}},MuiCheckbox:{defaultProps:{size:"small"}},MuiFormControl:{defaultProps:{size:"small"},styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{fontSize:ue[12],height:"auto",minHeight:"28px","&.MuiInputBase-sizeSmall":{"& .MuiOutlinedInput-input":{padding:"3.5px 14px"}},"&.MuiInputBase-multiline.MuiInputBase-sizeSmall":{height:"auto",padding:0,"& .MuiOutlinedInput-input":{padding:"8.5px 14px"}}}}},MuiTextField:{defaultProps:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0}},styleOverrides:{root:{"& label":{color:Pe[500],fontSize:"13px"},"& .MuiInputBase-root":{backgroundColor:"#fff"},"& .MuiInputBase-input[readonly]":{backgroundColor:Pe[200],color:Pe[700]}}}},MuiAutocomplete:{defaultProps:{size:"small"},styleOverrides:{inputRoot:{fontSize:"14px","& .MuiOutlinedInput-input":{padding:"3.5px 14px"}},root:{"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall":{padding:"0 12px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input":{padding:0}}}},MuiInputLabel:{styleOverrides:{root:{fontSize:ue[14]}}},MuiSvgIcon:{defaultProps:{fontSize:"small",color:"inherit"}},MuiIconButton:{defaultProps:{size:"small"},styleOverrides:{root:{}}},MuiPopover:{styleOverrides:{paper:{borderRadius:"12px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{"& .MuiIcon-root":{color:pt},"& .MuiTypography-root":{color:pt}},":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:{}}}}},md=_styles.createTheme.call(void 0, dd),gd=_styles.responsiveFontSizes.call(void 0, md),U= exports.theme =gd;var yd={"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 Yl(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(yd).map(([e,t])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:t,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:U.typography.fontFamily,color:_polished.getContrast.call(void 0, t,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:e}),_jsxruntime.jsx.call(void 0, "span",{children:t})]})},e))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var hi = _interopRequireWildcard(_react); var iu = _interopRequireWildcard(_react); var jt = _interopRequireWildcard(_react);function Zl(e){if(!e)return 0;let t=String(e);return t=t.replace(/\./g,"").replace(/,/g,"."),parseFloat(t)}var Vn=null,Ql=_react.forwardRef.call(void 0, (e,t)=>{let l=e,{value:r,onChange:o,sx:n}=l,i=C(l,["value","onChange","sx"]);Vn=null;let a=_react.useCallback.call(void 0, u=>{let p=u.target.value||"0.00";_hooks.isValidNumber.call(void 0, p)&&(Vn==="Backspace"?p=(Zl(p)/10).toFixed(2):p=(Zl(p)*10).toFixed(2),o&&(u.target.value=p,o(u,p)))},[o]),s=_react.useCallback.call(void 0, u=>{u.target.selectionStart===u.target.selectionEnd&&(u.target.selectionStart=u.target.value.length,u.target.selectionEnd=u.target.value.length)},[]);return _jsxruntime.jsx.call(void 0, _material.TextField,c({onKeyDown:u=>{Vn=u.key},onSelect:u=>{s(u)},onChange:a,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:t,sx:c({"& .MuiInputBase-input":{textAlign:"right"}},n)},i))});Ql.defaultProps={value:0};var Pd=Ql;var _iconsmaterial = require('@mui/icons-material');var Xl={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 tt(e){let{cancelLabel:t,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=e;return _jsxruntime.jsxs.call(void 0, Se,{children:[n&&_jsxruntime.jsx.call(void 0, L,{onClick:()=>{n()},color:Xl[o||"content"].cancel,children:t}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>{i&&i()},color:Xl[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var kd={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};tt.defaultProps=kd;function He(e){let{title:t,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:s}=e,l=_material.useTheme.call(void 0, ),u=o==="none"?null:o||_jsxruntime.jsx.call(void 0, tt,c({onCancel:()=>{n&&n({},"backdropClick")},onConfirm:()=>{i&&i()},type:a},s)),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,d(c({},e),{children:[_jsxruntime.jsx.call(void 0, _material.DialogTitle,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{color:h=>{if(a!=="content")return h.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}),t]})}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>n({},"escapeKeyDown"),sx:{mr:-1,color:l.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:h=>h.palette.grey[500],fontFamily:h=>h.typography.fontFamily},children:r})}),_jsxruntime.jsx.call(void 0, _material.DialogActions,{sx:{padding:2},children:u})]}))}He.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function Wn(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=e;return _jsxruntime.jsx.call(void 0, tt,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function Gn(e){let{isOpenConfirm:t}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:s}=e;return _jsxruntime.jsx.call(void 0, He,{type:o,open:t,title:n,actions:a||_jsxruntime.jsx.call(void 0, Wn,{type:o,onDelete:s||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onDelete")})}),onClose:()=>{r()},maxWidth:"xs",children:i})}var Gd={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};Gn.defaultProps=Gd;var _muidatatables = require('mui-datatables'); var _muidatatables2 = _interopRequireDefault(_muidatatables);var Qd=e=>{let{count:t,rowsPerPage:r,page:o,changePage:n,changeRowsPerPage:i,rowsPerPageOptions:a}=e,s=_react.useMemo.call(void 0, ()=>Math.max(0,Math.ceil(t/r)),[t,r]);return _jsxruntime.jsx.call(void 0, _material.TableFooter,{children:_jsxruntime.jsx.call(void 0, _material.TableRow,{children:_jsxruntime.jsxs.call(void 0, _material.TableCell,{colSpan:1e3,sx:{display:"flex",justifyContent:"flex-end",padding:"12px 12px 12px 12px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"128px",fontSize:"8pt"},label:"Tamanho da p\xE1gina",size:"small",value:r,select:!0,onChange:l=>{i(l.target.value)},children:a.map(l=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:l,children:l},l))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:s,showFirstButton:!0,showLastButton:!0,onChange:(l,u)=>{n(u)},page:o,color:"primary"})]})})})},oc=Qd;function Lt(e){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},e))}var nc=_muidatatables2.default,sm={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"}},lm=e=>({filterType:"textField",selectableRows:"none",elevation:0,responsive:"standard",print:!1,download:!1,filter:!1,search:!1,sort:!1,viewColumns:!1,textLabels:sm,serverSide:!0,rowsPerPageOptions:[15,50,100],rowsPerPage:15,fixedHeader:!0,fixedSelectColumn:!1,tableBodyMaxHeight:e}),cm=e=>{let k=e,{surface:t,error:r,tableTitle:o,isLoading:n,isFetching:i,data:a,columns:s,options:l,pagination:u,changePage:p,changePageSize:f,changeSort:h}=k,m=C(k,["surface","error","tableTitle","isLoading","isFetching","data","columns","options","pagination","changePage","changePageSize","changeSort"]),y=_material.useTheme.call(void 0, ),S=_material.useMediaQuery.call(void 0, y.breakpoints.up("xl"))?75:70,v=u?`${S}vh`:`calc(${S}vh + 65px)`,P=lm(v),w=l||{};return w&&(p&&(w.onChangePage=p),f&&(w.onChangeRowsPerPage=f),h&&(w.onColumnSortChange=h),w.customFooter=(R,_,T,Y,G,K)=>!u||n?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{}):_jsxruntime.jsx.call(void 0, oc,{count:u.totalRecords,page:u.page,rowsPerPage:u.pageSize,rowsPerPageOptions:(w==null?void 0:w.rowsPerPageOptions)||(P==null?void 0:P.rowsPerPageOptions),changeRowsPerPage:w==null?void 0:w.onChangeRowsPerPage,changePage:w==null?void 0:w.onChangePage,textLabels:K})),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[i&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{}),r&&_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},spacing:2,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:r})}),t&&_jsxruntime.jsx.call(void 0, Lt,{children:_jsxruntime.jsx.call(void 0, nc,c({title:o,data:a,columns:s,options:c(c({},P),w)},m))}),!t&&_jsxruntime.jsx.call(void 0, nc,c({title:o,data:a,columns:s,options:c(c({},P),w)},m))]})},um= exports.DataTable =cm;var xm=_styles.styled.call(void 0, r=>{var o=r,{className:e}=o,t=C(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,d(c({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:e.typography.pxToRem(12),border:"1px solid #dadde9"}})),vm={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},bm=e=>{let{title:t,type:r}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{mt:.5},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, _material.Icon,{color:r,fontSize:"small",children:r})," ",_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",sx:{ml:.5},children:vm[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:t})]})},sc=e=>{let i=e,{type:t,children:r,title:o}=i,n=C(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, xm,d(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, bm,{title:o||"",type:t}),enterDelay:300},n),{children:r}))};sc.defaultProps={type:"info"};var _t=sc;var KP=()=>({style:{width:"80px",textAlign:"center"}}),ZP= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function Un(e){let{onClick:t,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:s,disabled:l,disabledUpdateButton:u,disabledDeleteButton:p,disabledTransporterButton:f}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:h,icon:m,iconButtonProps:y,tooltip:g,visible:S,disabled:v,badge:P})=>S===null||!!S&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:P,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({onClick:w=>t(h,r,w),size:"small",disabled:v},y),{children:[g&&_jsxruntime.jsx.call(void 0, _t,{type:g.type,title:g.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:m})}),!g&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:m})]}),h)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:h=>t("transport",r,h),color:"primary",disabled:l||f,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, _t,{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:h=>t("edit",r,h),disabled:l||u,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, _t,{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:h=>t("delete",r,h),color:"primary",disabled:l||p,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, _t,{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"})})]})]})}Un.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function to(e){let{renderLabel:t,disableds:r}=e,{deleteFilterValue:o,deleteAllFilterValues:n}=_providers.useFilterApi.call(void 0, ),{filterValues:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),s=_react.useMemo.call(void 0, ()=>{if(Object.keys(a||{}).length>0){let p=!1,f=Object.keys(a||{});for(let h=0;h<f.length;h++){let m=a[f[h]];if(Array.isArray(m)&&m.length>0){p=!0;break}else if(!Array.isArray(m)&&m){p=!0;break}}return p}return!1},[a]),l=_react.useCallback.call(void 0, u=>t?t(i[u].label,a[u]):`${i[u].label} - ${a&&a[u]}`,[t,i,a]);return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end",gap:1},children:s&&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:l(u),onDelete:f,variant:"outlined"},u);if(!Array.isArray(a[u])&&a[u])return _jsxruntime.jsx.call(void 0, _material.Chip,{size:"small",label:l(u),onDelete:f,variant:"outlined"},u)})}),s&&_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 ro(e){let a=e,{drawerTitle:t,actions:r,onClose:o,children:n}=a,i=C(a,["drawerTitle","actions","onClose","children"]);return _jsxruntime.jsx.call(void 0, _material.Drawer,d(c({PaperProps:{style:{borderRadius:"12px 0 0 12px"}},onClose:o},i),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{width:"360px",height:"100%",justifyContent:"space-between",backgroundColor:s=>s.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:s=>`solid 1px ${s.palette.grey[300]}`},children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",variant:"h5",sx:{pl:s=>s.spacing(2)},children:t}),o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{color:"error"})})]}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{padding:s=>s.spacing(2)},children:n})]}),r&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{pt:s=>s.spacing(1),pb:s=>s.spacing(1),pl:s=>s.spacing(2),pr:s=>s.spacing(2),borderTop:s=>`solid 1px ${s.palette.grey[300]}`},children:r})]})}))}ro.defaultProps={anchor:"right"};var Nm=()=>{let{applyFilterValues:e,closeFilter:t,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){t()}function n(){e(),t()}function i(){r&&(r(),t())}return _jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexDirection:"row",justifyContent:"flex-end","& > button:first-child":{mr:1}},children:[_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,onClick:i,color:"error",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{})," Redefinir Padr\xE3o"]}),_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,variant:"contained",onClick:n,children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})," Aplicar"]})]})},Vm=e=>{let{title:t,children:r,onApplyFilters:o,drawerProps:n}=e,{isOpen:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),{closeFilter:s}=_providers.useFilterApi.call(void 0, );return _react.useEffect.call(void 0, ()=>{o&&o(a)},[a]),_jsxruntime.jsx.call(void 0, ro,d(c({},n),{drawerTitle:t,open:i,children:r,onClose:()=>s(),actions:_jsxruntime.jsx.call(void 0, Nm,{})}))};function Qn(e){let{triggerButtonLabel:t,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:s,disableds:l,disableFilterControl:u,drawerProps:p}=e,{openFilter:f}=_providers.useFilterApi.call(void 0, ),h=o==="none"?null:o||_jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{f()}},r),{children:t||"Adicionar"}));return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[u&&h,!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, to,{renderLabel:s,disableds:l}),h]}),_jsxruntime.jsx.call(void 0, Vm,d(c({},p),{onApplyFilters:a,title:n||"",children:i}))]})}Qn.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function gc(e){let{isFlagged:t,type:r}=e;return t?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function Xn(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=e;return _jsxruntime.jsx.call(void 0, tt,{confirmLabel:a||"Salvar",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function ei(e){let{view:t,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:s,triggerButtonProps:l,confirmButtonLabel:u}=e,{isOpen:p}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:h}=_providers.useFormApi.call(void 0, ),m=o||_jsxruntime.jsx.call(void 0, Xn,{hideCancelButton:t==="plain",confirmButtonLabel:u,onSubmitForm:n||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onSubmitForm")})}),y=i==="none"?null:i||_jsxruntime.jsx.call(void 0, L,d(c({variant:"contained",onClick:()=>{h()}},l),{children:s||"Adicionar"}));return t==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[y,_jsxruntime.jsx.call(void 0, He,d(c({},a),{onClose:()=>{f()},open:!!p,children:r,actions:m}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,m]})}var Zm={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};ei.defaultProps=Zm;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function Nt(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}function yc(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xc={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 vc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Xm=!1,Jm=/[A-Z]|^ms/g,eg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sc=function(t){return t.charCodeAt(1)===45},bc=function(t){return t!=null&&typeof t!="boolean"},ti=vc(function(e){return Sc(e)?e:e.replace(Jm,"-$&").toLowerCase()}),Cc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(eg,function(o,n,i){return $e={name:n,styles:i,next:$e},n})}return xc[t]!==1&&!Sc(t)&&typeof r=="number"&&r!==0?r+"px":r},tg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function vr(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return $e={name:n.name,styles:n.styles,next:$e},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)$e={name:a.name,styles:a.styles,next:$e},a=a.next;var s=i.styles+";";return s}return rg(e,t,r)}case"function":{if(e!==void 0){var l=$e,u=r(e);return $e=l,vr(e,t,u)}break}}var p=r;if(t==null)return p;var f=t[p];return f!==void 0?f:p}function rg(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=vr(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?o+=i+"{"+t[s]+"}":bc(s)&&(o+=ti(i)+":"+Cc(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&Xm)throw new Error(tg);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)bc(a[l])&&(o+=ti(i)+":"+Cc(i,a[l])+";");else{var u=vr(e,t,a);switch(i){case"animation":case"animationName":{o+=ti(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}}return o}var wc=/label:\s*([^\s;{]+)\s*(;|$)/g,$e;function Pc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";$e=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,n+=vr(r,t,i);else{var a=i;n+=a[0]}for(var s=1;s<e.length;s++)if(n+=vr(r,t,e[s]),o){var l=i;n+=l[s]}wc.lastIndex=0;for(var u="",p;(p=wc.exec(n))!==null;)u+="-"+p[1];var f=yc(n)+u;return{name:f,styles:n,next:$e}}var _react2 = require('@emotion/react');function pi(e,t){let r=_styled2.default.call(void 0, e,t);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
3
|
-
`)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...o)}:r}function Yc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var qc=[];function Ue(e){return qc[0]=e,Pc(qc)}var yi=et(gi());function Ne(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xc(e){if(hi.isValidElement(e)||(0,yi.isValidElementType)(e)||!Ne(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Xc(e[r])}),t}function ke(e,t,r={clone:!0}){let o=r.clone?c({},e):e;return Ne(e)&&Ne(t)&&Object.keys(t).forEach(n=>{hi.isValidElement(t[n])||(0,yi.isValidElementType)(t[n])?o[n]=t[n]:Ne(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Ne(e[n])?o[n]=ke(e[n],t[n],r):r.clone?o[n]=Ne(t[n])?Xc(t[n]):t[n]:o[n]=t[n]}),o}var vg=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>d(c({},r),{[o.key]:o.val}),{})};function xi(e){let h=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=h,n=C(h,["values","unit","step"]),i=vg(t),a=Object.keys(i);function
|
|
4
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Nt(18,`(${t})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(n).up(i)}function Ao(e){let t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...
|
|
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 Yf=Object.create;var _n=Object.defineProperty,Kf=Object.defineProperties,Zf=Object.getOwnPropertyDescriptor,Qf=Object.getOwnPropertyDescriptors,Xf=Object.getOwnPropertyNames,Qr=Object.getOwnPropertySymbols,Jf=Object.getPrototypeOf,$n=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable;var Gl=(e,t,r)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&Gl(e,r,t[r]);if(Qr)for(var r of Qr(t))Hl.call(t,r)&&Gl(e,r,t[r]);return e},d=(e,t)=>Kf(e,Qf(t));var C=(e,t)=>{var r={};for(var o in e)$n.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Qr)for(var o of Qr(e))t.indexOf(o)<0&&Hl.call(e,o)&&(r[o]=e[o]);return r};var ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ed=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xf(t))!$n.call(e,n)&&n!==r&&_n(e,n,{get:()=>t[n],enumerable:!(o=Zf(t,n))||o.enumerable});return e};var et=(e,t,r)=>(r=e!=null?Yf(Jf(e)):{},ed(t||!e||!e.__esModule?_n(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r)=>new Promise((o,n)=>{var i=s=>{try{l(r.next(s))}catch(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(e,t)).next())});var kc=ce(j=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,ri=ne?Symbol.for("react.element"):60103,oi=ne?Symbol.for("react.portal"):60106,oo=ne?Symbol.for("react.fragment"):60107,no=ne?Symbol.for("react.strict_mode"):60108,io=ne?Symbol.for("react.profiler"):60114,ao=ne?Symbol.for("react.provider"):60109,so=ne?Symbol.for("react.context"):60110,ni=ne?Symbol.for("react.async_mode"):60111,lo=ne?Symbol.for("react.concurrent_mode"):60111,co=ne?Symbol.for("react.forward_ref"):60112,uo=ne?Symbol.for("react.suspense"):60113,og=ne?Symbol.for("react.suspense_list"):60120,po=ne?Symbol.for("react.memo"):60115,fo=ne?Symbol.for("react.lazy"):60116,ng=ne?Symbol.for("react.block"):60121,ig=ne?Symbol.for("react.fundamental"):60117,ag=ne?Symbol.for("react.responder"):60118,sg=ne?Symbol.for("react.scope"):60119;function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ri:switch(e=e.type,e){case ni:case lo:case oo:case io:case no:case uo:return e;default:switch(e=e&&e.$$typeof,e){case so:case co:case fo:case po:case ao:return e;default:return t}}case oi:return t}}}function Tc(e){return ve(e)===lo}j.AsyncMode=ni;j.ConcurrentMode=lo;j.ContextConsumer=so;j.ContextProvider=ao;j.Element=ri;j.ForwardRef=co;j.Fragment=oo;j.Lazy=fo;j.Memo=po;j.Portal=oi;j.Profiler=io;j.StrictMode=no;j.Suspense=uo;j.isAsyncMode=function(e){return Tc(e)||ve(e)===ni};j.isConcurrentMode=Tc;j.isContextConsumer=function(e){return ve(e)===so};j.isContextProvider=function(e){return ve(e)===ao};j.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ri};j.isForwardRef=function(e){return ve(e)===co};j.isFragment=function(e){return ve(e)===oo};j.isLazy=function(e){return ve(e)===fo};j.isMemo=function(e){return ve(e)===po};j.isPortal=function(e){return ve(e)===oi};j.isProfiler=function(e){return ve(e)===io};j.isStrictMode=function(e){return ve(e)===no};j.isSuspense=function(e){return ve(e)===uo};j.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oo||e===lo||e===io||e===no||e===uo||e===og||typeof e=="object"&&e!==null&&(e.$$typeof===fo||e.$$typeof===po||e.$$typeof===ao||e.$$typeof===so||e.$$typeof===co||e.$$typeof===ig||e.$$typeof===ag||e.$$typeof===sg||e.$$typeof===ng)};j.typeOf=ve});var Ic=ce(q=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(E){return typeof E=="string"||typeof E=="function"||E===o||E===u||E===i||E===n||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===m||E.$$typeof===a||E.$$typeof===l||E.$$typeof===p||E.$$typeof===P||E.$$typeof===w||E.$$typeof===b||E.$$typeof===g)}function k(E){if(typeof E=="object"&&E!==null){var Ln=E.$$typeof;switch(Ln){case t:var Zr=E.type;switch(Zr){case s:case u:case o:case i:case n:case f:return Zr;default:var Wl=Zr&&Zr.$$typeof;switch(Wl){case l:case p:case y:case m:case a:return Wl;default:return Ln}}case r:return Ln}}}var F=s,_=u,T=l,Y=a,G=t,K=p,R=o,N=y,x=m,v=r,A=i,I=n,M=f,D=!1;function O(E){return D||(D=!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.")),B(E)||k(E)===s}function B(E){return k(E)===u}function V(E){return k(E)===l}function H(E){return k(E)===a}function z(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function me(E){return k(E)===p}function le(E){return k(E)===o}function Je(E){return k(E)===y}function Gf(E){return k(E)===m}function Hf(E){return k(E)===r}function Uf(E){return k(E)===i}function jf(E){return k(E)===n}function qf(E){return k(E)===f}q.AsyncMode=F,q.ConcurrentMode=_,q.ContextConsumer=T,q.ContextProvider=Y,q.Element=G,q.ForwardRef=K,q.Fragment=R,q.Lazy=N,q.Memo=x,q.Portal=v,q.Profiler=A,q.StrictMode=I,q.Suspense=M,q.isAsyncMode=O,q.isConcurrentMode=B,q.isContextConsumer=V,q.isContextProvider=H,q.isElement=z,q.isForwardRef=me,q.isFragment=le,q.isLazy=Je,q.isMemo=Gf,q.isPortal=Hf,q.isProfiler=Uf,q.isStrictMode=jf,q.isSuspense=qf,q.isValidElementType=S,q.typeOf=k}()});var ai=ce((rk,ii)=>{"use strict";process.env.NODE_ENV==="production"?ii.exports=kc():ii.exports=Ic()});var Mc=ce((ok,Ac)=>{"use strict";var Ec=Object.getOwnPropertySymbols,lg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable;function ug(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function pg(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}Ac.exports=pg()?Object.assign:function(e,t){for(var r,o=ug(e),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)lg.call(r,a)&&(o[a]=r[a]);if(Ec){n=Ec(r);for(var l=0;l<n.length;l++)cg.call(r,n[l])&&(o[n[l]]=r[n[l]])}}return o}});var mo=ce((nk,Fc)=>{"use strict";var fg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Fc.exports=fg});var si=ce((ik,Rc)=>{Rc.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var _c=ce((ak,Lc)=>{"use strict";var li=function(){};process.env.NODE_ENV!=="production"&&(Dc=mo(),go={},Oc=si(),li=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});var Dc,go,Oc;function Bc(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in e)if(Oc(e,i)){var a;try{if(typeof e[i]!="function"){var l=Error((o||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=e[i](t,i,o,r,null,Dc)}catch(u){a=u}if(a&&!(a instanceof Error)&&li((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 go)){go[a.message]=!0;var s=n?n():"";li("Failed "+r+" type: "+a.message+(s!=null?s:""))}}}}Bc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(go={})};Lc.exports=Bc});var Vc=ce((sk,Nc)=>{"use strict";var dg=ai(),mg=Mc(),Vt=mo(),ci=si(),$c=_c(),zt=function(){};process.env.NODE_ENV!=="production"&&(zt=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function ho(){return null}Nc.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(x){var v=x&&(r&&x[r]||x[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:h,element:m(),elementType:y(),instanceOf:g,node:S(),objectOf:w,oneOf:P,oneOfType:b,shape:F,exact:_};function l(x,v){return x===v?x!==0||1/x===1/v:x!==x&&v!==v}function s(x,v){this.message=x,this.data=v&&typeof v=="object"?v:{},this.stack=""}s.prototype=Error.prototype;function u(x){if(process.env.NODE_ENV!=="production")var v={},A=0;function I(D,O,B,V,H,z,me){if(V=V||i,z=z||B,me!==Vt){if(t){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Je=V+":"+B;!v[Je]&&A<3&&(zt("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+V+"`. 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[Je]=!0,A++)}}return O[B]==null?D?O[B]===null?new s("The "+H+" `"+z+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new s("The "+H+" `"+z+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:x(O,B,V,H,z)}var M=I.bind(null,!1);return M.isRequired=I.bind(null,!0),M}function p(x){function v(A,I,M,D,O,B){var V=A[I],H=G(V);if(H!==x){var z=K(V);return new s("Invalid "+D+" `"+O+"` of type "+("`"+z+"` supplied to `"+M+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return u(v)}function f(){return u(ho)}function h(x){function v(A,I,M,D,O){if(typeof x!="function")return new s("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var B=A[I];if(!Array.isArray(B)){var V=G(B);return new s("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected an array."))}for(var H=0;H<B.length;H++){var z=x(B,H,M,D,O+"["+H+"]",Vt);if(z instanceof Error)return z}return null}return u(v)}function m(){function x(v,A,I,M,D){var O=v[A];if(!e(O)){var B=G(O);return new s("Invalid "+M+" `"+D+"` of type "+("`"+B+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return u(x)}function y(){function x(v,A,I,M,D){var O=v[A];if(!dg.isValidElementType(O)){var B=G(O);return new s("Invalid "+M+" `"+D+"` of type "+("`"+B+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return u(x)}function g(x){function v(A,I,M,D,O){if(!(A[I]instanceof x)){var B=x.name||i,V=N(A[I]);return new s("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected ")+("instance of `"+B+"`."))}return null}return u(v)}function P(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?zt("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])."):zt("Invalid argument supplied to oneOf, expected an array.")),ho;function v(A,I,M,D,O){for(var B=A[I],V=0;V<x.length;V++)if(l(B,x[V]))return null;var H=JSON.stringify(x,function(me,le){var Je=K(le);return Je==="symbol"?String(le):le});return new s("Invalid "+D+" `"+O+"` of value `"+String(B)+"` "+("supplied to `"+M+"`, expected one of "+H+"."))}return u(v)}function w(x){function v(A,I,M,D,O){if(typeof x!="function")return new s("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var B=A[I],V=G(B);if(V!=="object")return new s("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected an object."));for(var H in B)if(ci(B,H)){var z=x(B,H,M,D,O+"."+H,Vt);if(z instanceof Error)return z}return null}return u(v)}function b(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&zt("Invalid argument supplied to oneOfType, expected an instance of array."),ho;for(var v=0;v<x.length;v++){var A=x[v];if(typeof A!="function")return zt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+R(A)+" at index "+v+"."),ho}function I(M,D,O,B,V){for(var H=[],z=0;z<x.length;z++){var me=x[z],le=me(M,D,O,B,V,Vt);if(le==null)return null;le.data&&ci(le.data,"expectedType")&&H.push(le.data.expectedType)}var Je=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new s("Invalid "+B+" `"+V+"` supplied to "+("`"+O+"`"+Je+"."))}return u(I)}function S(){function x(v,A,I,M,D){return T(v[A])?null:new s("Invalid "+M+" `"+D+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return u(x)}function k(x,v,A,I,M){return new s((x||"React class")+": "+v+" type `"+A+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function F(x){function v(A,I,M,D,O){var B=A[I],V=G(B);if(V!=="object")return new s("Invalid "+D+" `"+O+"` of type `"+V+"` "+("supplied to `"+M+"`, expected `object`."));for(var H in x){var z=x[H];if(typeof z!="function")return k(M,D,O,H,K(z));var me=z(B,H,M,D,O+"."+H,Vt);if(me)return me}return null}return u(v)}function _(x){function v(A,I,M,D,O){var B=A[I],V=G(B);if(V!=="object")return new s("Invalid "+D+" `"+O+"` of type `"+V+"` "+("supplied to `"+M+"`, expected `object`."));var H=mg({},A[I],x);for(var z in H){var me=x[z];if(ci(x,z)&&typeof me!="function")return k(M,D,O,z,K(me));if(!me)return new s("Invalid "+D+" `"+O+"` key `"+z+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(A[I],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var le=me(B,z,M,D,O+"."+z,Vt);if(le)return le}return null}return u(v)}function T(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(T);if(x===null||e(x))return!0;var v=n(x);if(v){var A=v.call(x),I;if(v!==x.entries){for(;!(I=A.next()).done;)if(!T(I.value))return!1}else for(;!(I=A.next()).done;){var M=I.value;if(M&&!T(M[1]))return!1}}else return!1;return!0;default:return!1}}function Y(x,v){return x==="symbol"?!0:v?v["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&v instanceof Symbol:!1}function G(x){var v=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":Y(v,x)?"symbol":v}function K(x){if(typeof x=="undefined"||x===null)return""+x;var v=G(x);if(v==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return v}function R(x){var v=K(x);switch(v){case"array":case"object":return"an "+v;case"boolean":case"date":case"regexp":return"a "+v;default:return v}}function N(x){return!x.constructor||!x.constructor.name?i:x.constructor.name}return a.checkPropTypes=$c,a.resetWarningCache=$c.resetWarningCache,a.PropTypes=a,a}});var Hc=ce((lk,Gc)=>{"use strict";var gg=mo();function zc(){}function Wc(){}Wc.resetWarningCache=zc;Gc.exports=function(){function e(o,n,i,a,l,s){if(s!==gg){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}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Wc,resetWarningCache:zc};return r.PropTypes=r,r}});var yo=ce((ck,ui)=>{process.env.NODE_ENV!=="production"?(Uc=ai(),jc=!0,ui.exports=Vc()(Uc.isElement,jc)):ui.exports=Hc()();var Uc,jc});var Zc=ce(Z=>{"use strict";var fi=Symbol.for("react.transitional.element"),di=Symbol.for("react.portal"),xo=Symbol.for("react.fragment"),vo=Symbol.for("react.strict_mode"),bo=Symbol.for("react.profiler");Symbol.for("react.provider");var Co=Symbol.for("react.consumer"),wo=Symbol.for("react.context"),So=Symbol.for("react.forward_ref"),Po=Symbol.for("react.suspense"),To=Symbol.for("react.suspense_list"),ko=Symbol.for("react.memo"),Io=Symbol.for("react.lazy"),yg=Symbol.for("react.view_transition"),xg=Symbol.for("react.client.reference");function Te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fi:switch(e=e.type,e){case xo:case bo:case vo:case Po:case To:case yg:return e;default:switch(e=e&&e.$$typeof,e){case wo:case So:case Io:case ko:return e;case Co:return e;default:return t}}case di:return t}}}Z.ContextConsumer=Co;Z.ContextProvider=wo;Z.Element=fi;Z.ForwardRef=So;Z.Fragment=xo;Z.Lazy=Io;Z.Memo=ko;Z.Portal=di;Z.Profiler=bo;Z.StrictMode=vo;Z.Suspense=Po;Z.SuspenseList=To;Z.isContextConsumer=function(e){return Te(e)===Co};Z.isContextProvider=function(e){return Te(e)===wo};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fi};Z.isForwardRef=function(e){return Te(e)===So};Z.isFragment=function(e){return Te(e)===xo};Z.isLazy=function(e){return Te(e)===Io};Z.isMemo=function(e){return Te(e)===ko};Z.isPortal=function(e){return Te(e)===di};Z.isProfiler=function(e){return Te(e)===bo};Z.isStrictMode=function(e){return Te(e)===vo};Z.isSuspense=function(e){return Te(e)===Po};Z.isSuspenseList=function(e){return Te(e)===To};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xo||e===bo||e===vo||e===Po||e===To||typeof e=="object"&&e!==null&&(e.$$typeof===Io||e.$$typeof===ko||e.$$typeof===wo||e.$$typeof===Co||e.$$typeof===So||e.$$typeof===xg||e.getModuleId!==void 0)};Z.typeOf=Te});var Qc=ce(Q=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var P=g.$$typeof;switch(P){case t:switch(g=g.type,g){case o:case i:case n:case u:case p:case m:return g;default:switch(g=g&&g.$$typeof,g){case l:case s:case h:case f:return g;case a:return g;default:return P}}case r:return P}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Q.ContextConsumer=a,Q.ContextProvider=l,Q.Element=t,Q.ForwardRef=s,Q.Fragment=o,Q.Lazy=h,Q.Memo=f,Q.Portal=r,Q.Profiler=i,Q.StrictMode=n,Q.Suspense=u,Q.SuspenseList=p,Q.isContextConsumer=function(g){return e(g)===a},Q.isContextProvider=function(g){return e(g)===l},Q.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Q.isForwardRef=function(g){return e(g)===s},Q.isFragment=function(g){return e(g)===o},Q.isLazy=function(g){return e(g)===h},Q.isMemo=function(g){return e(g)===f},Q.isPortal=function(g){return e(g)===r},Q.isProfiler=function(g){return e(g)===i},Q.isStrictMode=function(g){return e(g)===n},Q.isSuspense=function(g){return e(g)===u},Q.isSuspenseList=function(g){return e(g)===p},Q.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===n||g===u||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===s||g.$$typeof===y||g.getModuleId!==void 0)},Q.typeOf=e}()});var gi=ce((xk,mi)=>{"use strict";process.env.NODE_ENV==="production"?mi.exports=Zc():mi.exports=Qc()});var Du=ce((aF,Ru)=>{"use strict";function xt(e){this._maxSize=e,this.clear()}xt.prototype.clear=function(){this._size=0,this._values=Object.create(null)};xt.prototype.get=function(e){return this._values[e]};xt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var ky=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Fu=/^\d+$/,Iy=/^\d/,Ey=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Ay=/^\s*(['"]?)(.*?)(\1)\s*$/,ji=512,Eu=new xt(ji),Au=new xt(ji),Mu=new xt(ji);Ru.exports={Cache:xt,split:Ui,normalizePath:Hi,setter:function(e){var t=Hi(e);return Au.get(e)||Au.set(e,function(o,n){for(var i=0,a=t.length,l=o;i<a-1;){var s=t[i];if(s==="__proto__"||s==="constructor"||s==="prototype")return o;l=l[t[i++]]}l[t[i]]=n})},getter:function(e,t){var r=Hi(e);return Mu.get(e)||Mu.set(e,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!t)n=n[r[i++]];else return;return n})},join:function(e){return e.reduce(function(t,r){return t+(qi(r)||Fu.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){My(Array.isArray(e)?e:Ui(e),t,r)}};function Hi(e){return Eu.get(e)||Eu.set(e,Ui(e).map(function(t){return t.replace(Ay,"$2")}))}function Ui(e){return e.match(ky)||[""]}function My(e,t,r){var o=e.length,n,i,a,l;for(i=0;i<o;i++)n=e[i],n&&(Dy(n)&&(n='"'+n+'"'),l=qi(n),a=!l&&/^\d+$/.test(n),t.call(r,n,l,a,i,e))}function qi(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Fy(e){return e.match(Iy)&&!e.match(Fu)}function Ry(e){return Ey.test(e)}function Dy(e){return!qi(e)&&(Fy(e)||Ry(e))}});var Lu=ce((sF,Bu)=>{var Oy=/[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,qo=e=>e.match(Oy)||[],Yo=e=>e[0].toUpperCase()+e.slice(1),Yi=(e,t)=>qo(e).join(t).toLowerCase(),Ou=e=>qo(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),By=e=>Yo(Ou(e)),Ly=e=>Yi(e,"_"),_y=e=>Yi(e,"-"),$y=e=>Yo(Yi(e," ")),Ny=e=>qo(e).map(Yo).join(" ");Bu.exports={words:qo,upperFirst:Yo,camelCase:Ou,pascalCase:By,snakeCase:Ly,kebabCase:_y,sentenceCase:$y,titleCase:Ny}});var $u=ce((lF,Ki)=>{Ki.exports=function(e){return _u(Vy(e),e)};Ki.exports.array=_u;function _u(e,t){var r=e.length,o=new Array(r),n={},i=r,a=zy(t),l=Wy(e);for(t.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(e[i],i,new Set);return o;function s(u,p,f){if(f.has(u)){var h;try{h=", node was:"+JSON.stringify(u)}catch(g){h=""}throw new Error("Cyclic dependency"+h)}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 m=a.get(u)||new Set;if(m=Array.from(m),p=m.length){f.add(u);do{var y=m[--p];s(y,l.get(y),f)}while(p);f.delete(u)}o[--r]=u}}}function Vy(e){for(var t=new Set,r=0,o=e.length;r<o;r++){var n=e[r];t.add(n[0]),t.add(n[1])}return Array.from(t)}function zy(e){for(var t=new Map,r=0,o=e.length;r<o;r++){var n=e[r];t.has(n[0])||t.set(n[0],new Set),t.has(n[1])||t.set(n[1],new Set),t.get(n[0]).add(n[1])}return t}function Wy(e){for(var t=new Map,r=0,o=e.length;r<o;r++)t.set(e[r],r);return t}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var od=e=>{let n=e,{isLoading:t,children:r}=n,o=C(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,d(c({},o),{disabled:t?!0:o.disabled,children:t?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},L= exports.Button =od;function Se(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},e))}function jl(e){let o=e,{label:t}=o,r=C(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:t,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}var _polished = require('polished');var _styles = require('@mui/material/styles');var pt="#4BA9C1",fd="#2C96B3",ue={32:"2rem",28:"1.75rem",24:"1.5",20:"1.25rem",16:"1rem",14:"0.875rem",12:"0.75rem",10:"0.625rem"},Pe={800:"#202024",700:"#262626",600:"#333333",500:"#808080",400:"#BBBBBA",300:"#E0E0E0",200:"#F2F2F2",100:"#FAFAFA"},dd={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:pt,dark:fd},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:Pe[800],700:Pe[700],600:Pe[600],500:Pe[500],400:Pe[400],300:Pe[300],200:Pe[200],100:Pe[100]}},typography:{fontFamily:["Roboto","Lato","sans-serif","Poppins","Montserrat"].join(","),h1:{fontSize:ue[32],fontWeight:400,color:"#262626"},h2:{fontSize:ue[28],fontWeight:400,color:"#262626"},h3:{fontSize:ue[24],fontWeight:400,color:"#262626"},h4:{fontSize:ue[20],fontWeight:400,color:"#262626"},h5:{fontSize:ue[16],fontWeight:400,color:"#262626"},h6:{fontSize:ue[14],fontWeight:500,color:"#262626"},subtitle1:{fontSize:ue[14],fontWeight:400,color:"#262626"},subtitle2:{fontSize:ue[12],fontWeight:500,color:Pe[500]},body1:{fontSize:ue[14],fontWeight:400,color:"#262626"},body2:{fontSize:ue[12],fontWeight:400,color:"#808080"},caption:{fontSize:ue[12],fontWeight:400,color:"#808080"},overline:{fontSize:ue[10],fontWeight:400,textTransform:"uppercase",color:"#808080"}},components:{MuiTabs:{styleOverrides:{root:{minHeight:"30px"}}},MuiTab:{styleOverrides:{root:{minHeight:"30px",height:"30px",textTransform:"none",fontWeight:"400",fontSize:ue[12],"& .MuiTab-iconWrapper":{fontSize:ue[16]}}}},MuiList:{styleOverrides:{root:{paddingTop:0}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_styles.alpha.call(void 0, pt,.1),boxShadow:`inset 0 0 0 0.5px ${pt}`,borderRadius:"4px","& .MuiTypography-root":{color:pt,fontWeight:500},"& .MuiListItemIcon-root svg":{strokeWidth:2,color:pt}},":hover":{background:"rgba(89, 195, 224, 15%)",borderRadius:"4px"}}}},MuiToolbar:{defaultProps:{sx:{minHeight:"46px"}},styleOverrides:{root:{background:"#FFFFFF"}}},MuiChip:{defaultProps:{size:"small"}},MuiContainer:{defaultProps:{maxWidth:!1,disableGutters:!0},styleOverrides:{root:{display:"flex",flexDirection:"column",flexGrow:1}}},MuiButton:{defaultProps:{size:"small",variant:"outlined"},styleOverrides:{root:{fontSize:"0.755rem",textTransform:"none",fontWeight:"bold",minWidth:"78px"},contained:{color:"rgba(255,255,255,0.85)",boxShadow:"none"},outlined:{background:"white",":disabled":{background:"none",boxShadow:"none",borderColor:"#E0E0E0"}}}},MuiCheckbox:{defaultProps:{size:"small"}},MuiFormControl:{defaultProps:{size:"small"},styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{fontSize:ue[12],height:"auto",minHeight:"28px","&.MuiInputBase-sizeSmall":{"& .MuiOutlinedInput-input":{padding:"3.5px 14px"}},"&.MuiInputBase-multiline.MuiInputBase-sizeSmall":{height:"auto",padding:0,"& .MuiOutlinedInput-input":{padding:"8.5px 14px"}}}}},MuiTextField:{defaultProps:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0}},styleOverrides:{root:{"& label":{color:Pe[500],fontSize:"13px"},"& .MuiInputBase-root":{backgroundColor:"#fff"},"& .MuiInputBase-input[readonly]":{backgroundColor:Pe[200],color:Pe[700]}}}},MuiAutocomplete:{defaultProps:{size:"small"},styleOverrides:{inputRoot:{fontSize:"14px","& .MuiOutlinedInput-input":{padding:"3.5px 14px"}},root:{"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall":{padding:"0 12px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input":{padding:0}}}},MuiInputLabel:{styleOverrides:{root:{fontSize:ue[14]}}},MuiSvgIcon:{defaultProps:{fontSize:"small",color:"inherit"}},MuiIconButton:{defaultProps:{size:"small"},styleOverrides:{root:{}}},MuiPopover:{styleOverrides:{paper:{borderRadius:"12px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{"& .MuiIcon-root":{color:pt},"& .MuiTypography-root":{color:pt}},":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:{}}}}},md=_styles.createTheme.call(void 0, dd),gd=_styles.responsiveFontSizes.call(void 0, md),U= exports.theme =gd;var yd={"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 Yl(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(yd).map(([e,t])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:t,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:U.typography.fontFamily,color:_polished.getContrast.call(void 0, t,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:e}),_jsxruntime.jsx.call(void 0, "span",{children:t})]})},e))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var hi = _interopRequireWildcard(_react); var iu = _interopRequireWildcard(_react); var jt = _interopRequireWildcard(_react);function Zl(e){if(!e)return 0;let t=String(e);return t=t.replace(/\./g,"").replace(/,/g,"."),parseFloat(t)}var Vn=null,Ql=_react.forwardRef.call(void 0, (e,t)=>{let s=e,{value:r,onChange:o,sx:n}=s,i=C(s,["value","onChange","sx"]);Vn=null;let a=_react.useCallback.call(void 0, u=>{let p=u.target.value||"0.00";_hooks.isValidNumber.call(void 0, p)&&(Vn==="Backspace"?p=(Zl(p)/10).toFixed(2):p=(Zl(p)*10).toFixed(2),o&&(u.target.value=p,o(u,p)))},[o]),l=_react.useCallback.call(void 0, u=>{u.target.selectionStart===u.target.selectionEnd&&(u.target.selectionStart=u.target.value.length,u.target.selectionEnd=u.target.value.length)},[]);return _jsxruntime.jsx.call(void 0, _material.TextField,c({onKeyDown:u=>{Vn=u.key},onSelect:u=>{l(u)},onChange:a,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:t,sx:c({"& .MuiInputBase-input":{textAlign:"right"}},n)},i))});Ql.defaultProps={value:0};var Pd=Ql;var _iconsmaterial = require('@mui/icons-material');var Xl={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 tt(e){let{cancelLabel:t,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=e;return _jsxruntime.jsxs.call(void 0, Se,{children:[n&&_jsxruntime.jsx.call(void 0, L,{onClick:()=>{n()},color:Xl[o||"content"].cancel,children:t}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>{i&&i()},color:Xl[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var kd={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};tt.defaultProps=kd;function He(e){let{title:t,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:l}=e,s=_material.useTheme.call(void 0, ),u=o==="none"?null:o||_jsxruntime.jsx.call(void 0, tt,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,d(c({},e),{children:[_jsxruntime.jsx.call(void 0, _material.DialogTitle,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{color:h=>{if(a!=="content")return h.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}),t]})}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>n({},"escapeKeyDown"),sx:{mr:-1,color:s.palette.text.primary},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{color:"inherit"})})]})}),_jsxruntime.jsx.call(void 0, _material.DialogContent,{children:_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1,color:h=>h.palette.grey[500],fontFamily:h=>h.typography.fontFamily},children:r})}),_jsxruntime.jsx.call(void 0, _material.DialogActions,{sx:{padding:2},children:u})]}))}He.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function Wn(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=e;return _jsxruntime.jsx.call(void 0, tt,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function Gn(e){let{isOpenConfirm:t}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:l}=e;return _jsxruntime.jsx.call(void 0, He,{type:o,open:t,title:n,actions:a||_jsxruntime.jsx.call(void 0, Wn,{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 Gd={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};Gn.defaultProps=Gd;var _muidatatables = require('mui-datatables'); var _muidatatables2 = _interopRequireDefault(_muidatatables);var Qd=e=>{let{count:t,rowsPerPage:r,page:o,changePage:n,changeRowsPerPage:i,rowsPerPageOptions:a}=e,l=_react.useMemo.call(void 0, ()=>Math.max(0,Math.ceil(t/r)),[t,r]);return _jsxruntime.jsx.call(void 0, _material.TableFooter,{children:_jsxruntime.jsx.call(void 0, _material.TableRow,{children:_jsxruntime.jsxs.call(void 0, _material.TableCell,{colSpan:1e3,sx:{display:"flex",justifyContent:"flex-end",padding:"12px 12px 12px 12px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"128px",fontSize:"8pt"},label:"Tamanho da p\xE1gina",size:"small",value:r,select:!0,onChange:s=>{i(s.target.value)},children:a.map(s=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:s,children:s},s))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:l,showFirstButton:!0,showLastButton:!0,onChange:(s,u)=>{n(u)},page:o,color:"primary"})]})})})},oc=Qd;function Lt(e){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},e))}var nc=_muidatatables2.default,sm={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"}},lm=e=>({filterType:"textField",selectableRows:"none",elevation:0,responsive:"standard",print:!1,download:!1,filter:!1,search:!1,sort:!1,viewColumns:!1,textLabels:sm,serverSide:!0,rowsPerPageOptions:[15,50,100],rowsPerPage:15,fixedHeader:!0,fixedSelectColumn:!1,tableBodyMaxHeight:e}),cm=e=>{let k=e,{surface:t,error:r,tableTitle:o,isLoading:n,isFetching:i,data:a,columns:l,options:s,pagination:u,changePage:p,changePageSize:f,changeSort:h}=k,m=C(k,["surface","error","tableTitle","isLoading","isFetching","data","columns","options","pagination","changePage","changePageSize","changeSort"]),y=_material.useTheme.call(void 0, ),P=_material.useMediaQuery.call(void 0, y.breakpoints.up("xl"))?75:70,w=u?`${P}vh`:`calc(${P}vh + 65px)`,b=lm(w),S=s||{};return S&&(p&&(S.onChangePage=p),f&&(S.onChangeRowsPerPage=f),h&&(S.onColumnSortChange=h),S.customFooter=(F,_,T,Y,G,K)=>!u||n?_jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{}):_jsxruntime.jsx.call(void 0, oc,{count:u.totalRecords,page:u.page,rowsPerPage:u.pageSize,rowsPerPageOptions:(S==null?void 0:S.rowsPerPageOptions)||(b==null?void 0:b.rowsPerPageOptions),changeRowsPerPage:S==null?void 0:S.onChangeRowsPerPage,changePage:S==null?void 0:S.onChangePage,textLabels:K})),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[i&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{}),r&&_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},spacing:2,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:r})}),t&&_jsxruntime.jsx.call(void 0, Lt,{children:_jsxruntime.jsx.call(void 0, nc,c({title:o,data:a,columns:l,options:c(c({},b),S)},m))}),!t&&_jsxruntime.jsx.call(void 0, nc,c({title:o,data:a,columns:l,options:c(c({},b),S)},m))]})},um= exports.DataTable =cm;var xm=_styles.styled.call(void 0, r=>{var o=r,{className:e}=o,t=C(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,d(c({},t),{classes:{popper:e}}))})(({theme:e})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:e.typography.pxToRem(12),border:"1px solid #dadde9"}})),vm={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},bm=e=>{let{title:t,type:r}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{mt:.5},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, _material.Icon,{color:r,fontSize:"small",children:r})," ",_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",sx:{ml:.5},children:vm[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:t})]})},sc=e=>{let i=e,{type:t,children:r,title:o}=i,n=C(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, xm,d(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, bm,{title:o||"",type:t}),enterDelay:300},n),{children:r}))};sc.defaultProps={type:"info"};var _t=sc;var KP=()=>({style:{width:"80px",textAlign:"center"}}),ZP= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function Un(e){let{onClick:t,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:l,disabled:s,disabledUpdateButton:u,disabledDeleteButton:p,disabledTransporterButton:f}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:h,icon:m,iconButtonProps:y,tooltip:g,visible:P,disabled:w,badge:b})=>P===null||!!P&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:b,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({onClick:S=>t(h,r,S),size:"small",disabled:w},y),{children:[g&&_jsxruntime.jsx.call(void 0, _t,{type:g.type,title:g.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:m})}),!g&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:m})]}),h)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:h=>t("transport",r,h),color:"primary",disabled:s||f,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, _t,{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:h=>t("edit",r,h),disabled:s||u,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, _t,{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:h=>t("delete",r,h),color:"primary",disabled:s||p,children:[l&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!l&&_jsxruntime.jsx.call(void 0, _t,{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"})})]})]})}Un.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function to(e){let{renderLabel:t,disableds:r}=e,{deleteFilterValue:o,deleteAllFilterValues:n}=_providers.useFilterApi.call(void 0, ),{filterValues:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),l=_react.useMemo.call(void 0, ()=>{if(Object.keys(a||{}).length>0){let p=!1,f=Object.keys(a||{});for(let h=0;h<f.length;h++){let m=a[f[h]];if(Array.isArray(m)&&m.length>0){p=!0;break}else if(!Array.isArray(m)&&m){p=!0;break}}return p}return!1},[a]),s=_react.useCallback.call(void 0, u=>t?t(i[u].label,a[u]):`${i[u].label} - ${a&&a[u]}`,[t,i,a]);return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end",gap:1},children:l&&Object.keys(a||{}).map(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 ro(e){let a=e,{drawerTitle:t,actions:r,onClose:o,children:n}=a,i=C(a,["drawerTitle","actions","onClose","children"]);return _jsxruntime.jsx.call(void 0, _material.Drawer,d(c({PaperProps:{style:{borderRadius:"12px 0 0 12px"}},onClose:o},i),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{width:"360px",height:"100%",justifyContent:"space-between",backgroundColor:l=>l.palette.background.paper},children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",alignContent:"center",height:"48px",borderBottom:l=>`solid 1px ${l.palette.grey[300]}`},children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",variant:"h5",sx:{pl:l=>l.spacing(2)},children:t}),o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{color:"error"})})]}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{padding:l=>l.spacing(2)},children:n})]}),r&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{pt:l=>l.spacing(1),pb:l=>l.spacing(1),pl:l=>l.spacing(2),pr:l=>l.spacing(2),borderTop:l=>`solid 1px ${l.palette.grey[300]}`},children:r})]})}))}ro.defaultProps={anchor:"right"};var Nm=()=>{let{applyFilterValues:e,closeFilter:t,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){t()}function n(){e(),t()}function i(){r&&(r(),t())}return _jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexDirection:"row",justifyContent:"flex-end","& > button:first-child":{mr:1}},children:[_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,onClick:i,color:"error",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{})," Redefinir Padr\xE3o"]}),_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,variant:"contained",onClick:n,children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})," Aplicar"]})]})},Vm=e=>{let{title:t,children:r,onApplyFilters:o,drawerProps:n}=e,{isOpen:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),{closeFilter:l}=_providers.useFilterApi.call(void 0, );return _react.useEffect.call(void 0, ()=>{o&&o(a)},[a]),_jsxruntime.jsx.call(void 0, ro,d(c({},n),{drawerTitle:t,open:i,children:r,onClose:()=>l(),actions:_jsxruntime.jsx.call(void 0, Nm,{})}))};function Qn(e){let{triggerButtonLabel:t,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:l,disableds:s,disableFilterControl:u,drawerProps:p}=e,{openFilter:f}=_providers.useFilterApi.call(void 0, ),h=o==="none"?null:o||_jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{f()}},r),{children:t||"Adicionar"}));return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[u&&h,!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, to,{renderLabel:l,disableds:s}),h]}),_jsxruntime.jsx.call(void 0, Vm,d(c({},p),{onApplyFilters:a,title:n||"",children:i}))]})}Qn.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function gc(e){let{isFlagged:t,type:r}=e;return t?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function Xn(e){let{formValues:t,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=e;return _jsxruntime.jsx.call(void 0, tt,{confirmLabel:a||"Salvar",onConfirm:()=>n(t),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function ei(e){let{view:t,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:l,triggerButtonProps:s,confirmButtonLabel:u}=e,{isOpen:p}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:h}=_providers.useFormApi.call(void 0, ),m=o||_jsxruntime.jsx.call(void 0, Xn,{hideCancelButton:t==="plain",confirmButtonLabel:u,onSubmitForm:n||(()=>{throw new Error("Nenhuma a\xE7\xE3o foi definida para ser executada em onSubmitForm")})}),y=i==="none"?null:i||_jsxruntime.jsx.call(void 0, L,d(c({variant:"contained",onClick:()=>{h()}},s),{children:l||"Adicionar"}));return t==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[y,_jsxruntime.jsx.call(void 0, He,d(c({},a),{onClose:()=>{f()},open:!!p,children:r,actions:m}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,m]})}var Zm={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};ei.defaultProps=Zm;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function Nt(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}function yc(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xc={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 vc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Xm=!1,Jm=/[A-Z]|^ms/g,eg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sc=function(t){return t.charCodeAt(1)===45},bc=function(t){return t!=null&&typeof t!="boolean"},ti=vc(function(e){return Sc(e)?e:e.replace(Jm,"-$&").toLowerCase()}),Cc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(eg,function(o,n,i){return $e={name:n,styles:i,next:$e},n})}return xc[t]!==1&&!Sc(t)&&typeof r=="number"&&r!==0?r+"px":r},tg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function vr(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return $e={name:n.name,styles:n.styles,next:$e},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)$e={name:a.name,styles:a.styles,next:$e},a=a.next;var l=i.styles+";";return l}return rg(e,t,r)}case"function":{if(e!==void 0){var s=$e,u=r(e);return $e=s,vr(e,t,u)}break}}var p=r;if(t==null)return p;var f=t[p];return f!==void 0?f:p}function rg(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=vr(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":bc(l)&&(o+=ti(i)+":"+Cc(i,l)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&Xm)throw new Error(tg);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)bc(a[s])&&(o+=ti(i)+":"+Cc(i,a[s])+";");else{var u=vr(e,t,a);switch(i){case"animation":case"animationName":{o+=ti(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}}return o}var wc=/label:\s*([^\s;{]+)\s*(;|$)/g,$e;function Pc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";$e=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,n+=vr(r,t,i);else{var a=i;n+=a[0]}for(var l=1;l<e.length;l++)if(n+=vr(r,t,e[l]),o){var s=i;n+=s[l]}wc.lastIndex=0;for(var u="",p;(p=wc.exec(n))!==null;)u+="-"+p[1];var f=yc(n)+u;return{name:f,styles:n,next:$e}}var _react2 = require('@emotion/react');function pi(e,t){let r=_styled2.default.call(void 0, e,t);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
3
|
+
`)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...o)}:r}function Yc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var qc=[];function Ue(e){return qc[0]=e,Pc(qc)}var yi=et(gi());function Ne(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xc(e){if(hi.isValidElement(e)||(0,yi.isValidElementType)(e)||!Ne(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Xc(e[r])}),t}function ke(e,t,r={clone:!0}){let o=r.clone?c({},e):e;return Ne(e)&&Ne(t)&&Object.keys(t).forEach(n=>{hi.isValidElement(t[n])||(0,yi.isValidElementType)(t[n])?o[n]=t[n]:Ne(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Ne(e[n])?o[n]=ke(e[n],t[n],r):r.clone?o[n]=Ne(t[n])?Xc(t[n]):t[n]:o[n]=t[n]}),o}var vg=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>d(c({},r),{[o.key]:o.val}),{})};function xi(e){let h=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=h,n=C(h,["values","unit","step"]),i=vg(t),a=Object.keys(i);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function s(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-o/100}${r})`}function u(m,y){let g=a.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-o/100}${r})`}function p(m){return a.indexOf(m)+1<a.length?u(m,a[a.indexOf(m)+1]):l(m)}function f(m){let y=a.indexOf(m);return y===0?l(a[1]):y===a.length-1?s(a[y]):u(m,a[a.indexOf(m)+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 Eo(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,n)=>{var a,l;let i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=n.match(i))==null?void 0:l[1])||0)});return r.length?r.reduce((o,n)=>{let i=t[n];return delete o[n],o[n]=i,o},c({},t)):t}function vi(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function bi(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
4
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Nt(18,`(${t})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(n).up(i)}function Ao(e){let t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{let s=t(e.breakpoints.not(...l),a);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}let o={},n=i=>(r(o,i),o);return r(n),d(c({},e),{containerQueries:n})}var bg={borderRadius:4},Jc=bg;var Wt=et(yo()),Cg=process.env.NODE_ENV!=="production"?Wt.default.oneOfType([Wt.default.number,Wt.default.string,Wt.default.object,Wt.default.array]):{},be=Cg;function wg(e,t){return t?ke(e,t,{clone:!1}):e}var je=wg;var br={xs:0,sm:600,md:900,lg:1200,xl:1536},eu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${br[e]}px)`},Sg={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:br[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ie(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let i=o.breakpoints||eu;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){let i=o.breakpoints||eu;return Object.keys(t).reduce((a,l)=>{if(vi(i.keys,l)){let s=bi(o.containerQueries?o:Sg,l);s&&(a[s]=r(t[l],l))}else if(Object.keys(i.values||br).includes(l)){let s=i.up(l);a[s]=r(t[l],l)}else{let s=l;a[s]=t[s]}return a},{})}return r(t)}function Ci(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,n)=>{let i=e.up(n);return o[i]={},o},{}))||{}}function Mo(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function tu(e,...t){let r=Ci(e),o=[r,...t].reduce((n,i)=>ke(n,i),{});return Mo(Object.keys(r),o)}function Pg(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,i)=>{i<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function Fo({values:e,breakpoints:t,base:r}){let o=r||Pg(e,t),n=Object.keys(o);if(n.length===0)return e;let i;return n.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function nt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Nt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gt(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,i)=>n&&n[i]?n[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function Cr(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=Gt(e,r)||o,t&&(n=t(n,o,e)),n}function Tg(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,i=a=>{if(a[t]==null)return null;let l=a[t],s=a.theme,u=Gt(s,o)||{};return ie(a,l,f=>{let h=Cr(u,n,f);return f===h&&typeof f=="string"&&(h=Cr(u,n,`${t}${f==="default"?"":nt(f)}`,f)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:be}:{},i.filterProps=[t],i}var X=Tg;function Ro(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var kg={m:"margin",p:"padding"},Ig={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ru={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Eg=Ro(e=>{if(e.length>2)if(ru[e])e=ru[e];else return[e];let[t,r]=e.split(""),o=kg[t],n=Ig[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),Do=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wi=[...Do,...Oo];function mt(e,t,r,o){var i;let n=(i=Gt(e,t,!0))!=null?i:r;return typeof n=="number"||typeof n=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof n=="string"?`calc(${a} * ${n})`:n*a):Array.isArray(n)?a=>{if(typeof a=="string")return a;let l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>n.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${l} > ${n.length-1}, you need to add the missing values.`].join(`
|
|
5
5
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
6
|
-
`)));let
|
|
7
|
-
`)),()=>{})}function wr(e){return mt(e,"spacing",8,"spacing")}function Ve(e,t){return typeof t=="string"||t==null?t:e(t)}function Ag(e,t){return r=>e.reduce((o,n)=>(o[n]=Ve(t,r),o),{})}function Mg(e,t,r,o){if(!t.includes(r))return null;let n=Eg(r),i=Ag(n,o),a=e[r];return ie(e,a,i)}function Si(e,t){let r=wr(e.theme);return Object.keys(e).map(o=>Mg(e,t,o,r)).reduce(je,{})}function te(e){return Si(e,Do)}te.propTypes=process.env.NODE_ENV!=="production"?Do.reduce((e,t)=>(e[t]=be,e),{}):{};te.filterProps=Do;function re(e){return Si(e,Oo)}re.propTypes=process.env.NODE_ENV!=="production"?Oo.reduce((e,t)=>(e[t]=be,e),{}):{};re.filterProps=Oo;function ou(e){return Si(e,wi)}ou.propTypes=process.env.NODE_ENV!=="production"?wi.reduce((e,t)=>(e[t]=be,e),{}):{};ou.filterProps=wi;function Pi(e=8,t=wr({spacing:e})){if(e.mui)return e;let r=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{let a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Fg(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>t[i]?je(n,t[i](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var qe=Fg;function Ce(e){return typeof e!="number"?e:`${e}px solid`}function Ie(e,t){return X({prop:e,themeKey:"borders",transform:t})}var Rg=Ie("border",Ce),Dg=Ie("borderTop",Ce),Og=Ie("borderRight",Ce),Bg=Ie("borderBottom",Ce),Lg=Ie("borderLeft",Ce),_g=Ie("borderColor"),$g=Ie("borderTopColor"),Ng=Ie("borderRightColor"),Vg=Ie("borderBottomColor"),zg=Ie("borderLeftColor"),Wg=Ie("outline",Ce),Gg=Ie("outlineColor"),Sr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=mt(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Ve(t,o)});return ie(e,e.borderRadius,r)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:be}:{};Sr.filterProps=["borderRadius"];var CI=qe(Rg,Dg,Og,Bg,Lg,_g,$g,Ng,Vg,zg,Sr,Wg,Gg);var Pr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=mt(e.theme,"spacing",8,"gap"),r=o=>({gap:Ve(t,o)});return ie(e,e.gap,r)}return null};Pr.propTypes=process.env.NODE_ENV!=="production"?{gap:be}:{};Pr.filterProps=["gap"];var Tr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=mt(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Ve(t,o)});return ie(e,e.columnGap,r)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:be}:{};Tr.filterProps=["columnGap"];var kr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=mt(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Ve(t,o)});return ie(e,e.rowGap,r)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:be}:{};kr.filterProps=["rowGap"];var Hg=X({prop:"gridColumn"}),Ug=X({prop:"gridRow"}),jg=X({prop:"gridAutoFlow"}),qg=X({prop:"gridAutoColumns"}),Yg=X({prop:"gridAutoRows"}),Kg=X({prop:"gridTemplateColumns"}),Zg=X({prop:"gridTemplateRows"}),Qg=X({prop:"gridTemplateAreas"}),Xg=X({prop:"gridArea"}),EI=qe(Pr,Tr,kr,Hg,Ug,jg,qg,Yg,Kg,Zg,Qg,Xg);function gt(e,t){return t==="grey"?t:e}var Jg=X({prop:"color",themeKey:"palette",transform:gt}),eh=X({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gt}),th=X({prop:"backgroundColor",themeKey:"palette",transform:gt}),RI=qe(Jg,eh,th);function ge(e){return e<=1&&e!==0?`${e*100}%`:e}var rh=X({prop:"width",transform:ge}),Bo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var n,i,a,s,l;let o=((a=(i=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||br[r];return o?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ge(r)}};return ie(e,e.maxWidth,t)}return null};Bo.filterProps=["maxWidth"];var oh=X({prop:"minWidth",transform:ge}),nh=X({prop:"height",transform:ge}),ih=X({prop:"maxHeight",transform:ge}),ah=X({prop:"minHeight",transform:ge}),_I=X({prop:"size",cssProperty:"width",transform:ge}),$I=X({prop:"size",cssProperty:"height",transform:ge}),sh=X({prop:"boxSizing"}),NI=qe(rh,Bo,oh,nh,ih,ah,sh);var lh={border:{themeKey:"borders",transform:Ce},borderTop:{themeKey:"borders",transform:Ce},borderRight:{themeKey:"borders",transform:Ce},borderBottom:{themeKey:"borders",transform:Ce},borderLeft:{themeKey:"borders",transform:Ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ce},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sr},color:{themeKey:"palette",transform:gt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gt},backgroundColor:{themeKey:"palette",transform:gt},p:{style:re},pt:{style:re},pr:{style:re},pb:{style:re},pl:{style:re},px:{style:re},py:{style:re},padding:{style:re},paddingTop:{style:re},paddingRight:{style:re},paddingBottom:{style:re},paddingLeft:{style:re},paddingX:{style:re},paddingY:{style:re},paddingInline:{style:re},paddingInlineStart:{style:re},paddingInlineEnd:{style:re},paddingBlock:{style:re},paddingBlockStart:{style:re},paddingBlockEnd:{style:re},m:{style:te},mt:{style:te},mr:{style:te},mb:{style:te},ml:{style:te},mx:{style:te},my:{style:te},margin:{style:te},marginTop:{style:te},marginRight:{style:te},marginBottom:{style:te},marginLeft:{style:te},marginX:{style:te},marginY:{style:te},marginInline:{style:te},marginInlineStart:{style:te},marginInlineEnd:{style:te},marginBlock:{style:te},marginBlockStart:{style:te},marginBlockEnd:{style:te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Pr},rowGap:{style:kr},columnGap:{style:Tr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ge},maxWidth:{style:Bo},minWidth:{transform:ge},height:{transform:ge},maxHeight:{transform:ge},minHeight:{transform:ge},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"}},Ht=lh;function ch(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function uh(e,t){return typeof e=="function"?e(t):e}function ph(){function e(r,o,n,i){let a={[r]:o,theme:n},s=i[r];if(!s)return{[r]:o};let{cssProperty:l=r,themeKey:u,transform:p,style:f}=s;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[r]:o};let h=Gt(n,u)||{};return f?f(a):ie(a,o,y=>{let g=Cr(h,p,y);return y===g&&typeof y=="string"&&(g=Cr(h,p,`${r}${y==="default"?"":nt(y)}`,y)),l===!1?g:{[l]:g}})}function t(r){var l;let{sx:o,theme:n={},nested:i}=r||{};if(!o)return null;let a=(l=n.unstable_sxConfig)!=null?l:Ht;function s(u){let p=u;if(typeof u=="function")p=u(n);else if(typeof u!="object")return u;if(!p)return null;let f=Ci(n.breakpoints),h=Object.keys(f),m=f;return Object.keys(p).forEach(y=>{let g=uh(p[y],n);if(g!=null)if(typeof g=="object")if(a[y])m=je(m,e(y,g,n,a));else{let S=ie({theme:n},g,v=>({[y]:v}));ch(S,g)?m[y]=t({sx:g,theme:n,nested:!0}):m=je(m,S)}else m=je(m,e(y,g,n,a))}),!i&&n.modularCssLayers?{"@layer sx":Eo(n,Mo(h,m))}:Eo(n,Mo(h,m))}return Array.isArray(o)?o.map(s):s(o)}return t}var nu=ph();nu.filterProps=["sx"];var Ut=nu;function Ti(e,t){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function fh(e={},...t){let p=e,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=p,a=C(p,["breakpoints","palette","spacing","shape"]),s=xi(r),l=Pi(n),u=ke({breakpoints:s,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:l,shape:c(c({},Jc),i)},a);return u=Ao(u),u.applyStyles=Ti,u=t.reduce((f,h)=>ke(f,h),u),u.unstable_sxConfig=c(c({},Ht),a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Ut({sx:h,theme:this})},u}var ht=fh;function dh(e){return Object.keys(e).length===0}function mh(e=null){let t=iu.useContext(_react2.ThemeContext);return!t||dh(t)?e:t}var ki=mh;var gh=ht();function hh(e=gh){return ki(e)}var Ii=hh;var yh=e=>{var o,n;let t={systemProps:{},otherProps:{}},r=(n=(o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Ht;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Lo(e){let a=e,{sx:t}=a,r=C(a,["sx"]),{systemProps:o,otherProps:n}=yh(r),i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...s)=>{let l=t(...s);return Ne(l)?c(c({},o),l):o}:i=c(c({},o),t),d(c({},n),{sx:i})}var au=e=>e,xh=()=>{let e=au;return{configure(t){e=t},generate(t){return e(t)},reset(){e=au}}},vh=xh(),Ei=vh;function su(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=su(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function bh(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=su(e))&&(o&&(o+=" "),o+=t);return o}var lu=bh;var Ch={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _o(e,t,r="Mui"){let o=Ch[t];return o?`${r}-${o}`:`${Ei.generate(e)}-${t}`}var $o=et(gi());function uu(e,t=""){return e.displayName||e.name||t}function cu(e,t,r){let o=uu(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function No(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $o.ForwardRef:return cu(e,e.render,"ForwardRef");case $o.Memo:return cu(e,e.type,"memo");default:return}}}function Ai(e){let n=e,{variants:t}=n,r=C(n,["variants"]),o={variants:t,style:Ue(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Ue(i.style))}),o}var wh=ht();function Mi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Sh(e){return e?(t,r)=>r[e]:null}function Ph(e,t,r){e.theme=Ih(e.theme)?r:e.theme[t]||e.theme}function Vo(e,t,r){let o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(i=>Vo(e,i,r));if(Array.isArray(o==null?void 0:o.variants)){let i;if(o.isProcessed)i=r?yt(o.style,r):o.style;else{let n=o,{variants:a}=n,s=C(n,["variants"]);i=r?yt(Ue(s),r):s}return pu(e,o.variants,[i],r)}return o!=null&&o.isProcessed?r?yt(Ue(o.style),r):o.style:r?yt(Ue(o),r):o}function pu(e,t,r=[],o=void 0){var i;let n;e:for(let a=0;a<t.length;a+=1){let s=t[a];if(typeof s.props=="function"){if(n!=null||(n=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),!s.props(n))continue}else for(let l in s.props)if(e[l]!==s.props[l]&&((i=e.ownerState)==null?void 0:i[l])!==s.props[l])continue e;typeof s.style=="function"?(n!=null||(n=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o?yt(Ue(s.style(n)),o):s.style(n))):r.push(o?yt(Ue(s.style),o):s.style)}return r}function zo(e={}){let{themeId:t,defaultTheme:r=wh,rootShouldForwardProp:o=Mi,slotShouldForwardProp:n=Mi}=e;function i(s){Ph(s,t,r)}return(s,l={})=>{Yc(s,T=>T.filter(Y=>Y!==Ut));let _=l,{name:u,slot:p,skipVariantsResolver:f,skipSx:h,overridesResolver:m=Sh(fu(p))}=_,y=C(_,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=u&&u.startsWith("Mui")||p?"components":"custom",S=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,v=h||!1,P=Mi;p==="Root"||p==="root"?P=o:p?P=n:Eh(s)&&(P=void 0);let w=pi(s,c({shouldForwardProp:P,label:kh(u,p)},y)),k=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(G){return Vo(G,T,G.theme.modularCssLayers?g:void 0)};if(Ne(T)){let Y=Ai(T);return function(K){return Y.variants?Vo(K,Y,K.theme.modularCssLayers?g:void 0):K.theme.modularCssLayers?yt(Y.style,g):Y.style}}return T},R=(...T)=>{let Y=[],G=T.map(k),K=[];if(Y.push(i),u&&m&&K.push(function(b){var D,O;let I=(O=(D=b.theme.components)==null?void 0:D[u])==null?void 0:O.styleOverrides;if(!I)return null;let M={};for(let B in I)M[B]=Vo(b,I[B],b.theme.modularCssLayers?"theme":void 0);return m(b,M)}),u&&!S&&K.push(function(b){var M,D;let A=b.theme,I=(D=(M=A==null?void 0:A.components)==null?void 0:M[u])==null?void 0:D.variants;return I?pu(b,I,[],b.theme.modularCssLayers?"theme":void 0):null}),v||K.push(Ut),Array.isArray(G[0])){let x=G.shift(),b=new Array(Y.length).fill(""),A=new Array(K.length).fill(""),I;I=[...b,...x,...A],I.raw=[...b,...x.raw,...A],Y.unshift(I)}let F=[...Y,...G,...K],N=w(...F);return s.muiName&&(N.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=Th(u,p,s)),N};return w.withConfig&&(R.withConfig=w.withConfig),R}}function Th(e,t,r){return e?`${e}${nt(t||"")}`:`Styled(${No(r)})`}function kh(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${fu(t||"Root")}`),r}function Ih(e){for(let t in e)return!1;return!0}function Eh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Ah=zo(),Fi=Ah;function Ir(e,t){let r=c({},t);for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let n=o;if(n==="components"||n==="slots")r[n]=c(c({},e[n]),r[n]);else if(n==="componentsProps"||n==="slotProps"){let i=e[n],a=t[n];if(!a)r[n]=i||{};else if(!i)r[n]=a;else{r[n]=c({},a);for(let s in i)if(Object.prototype.hasOwnProperty.call(i,s)){let l=s;r[n][l]=Ir(i[l],a[l])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function Ri(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Ir(t.components[r].defaultProps,o)}function Wo({props:e,name:t,defaultTheme:r,themeId:o}){let n=Ii(r);return o&&(n=n[o]||n),Ri({theme:n,name:t,props:e})}function Go(e,t,r=void 0){let o={};for(let n in e){let i=e[n],a="",s=!0;for(let l=0;l<i.length;l+=1){let u=i[l];u&&(a+=(s===!0?"":" ")+t(u),s=!1,r&&r[u]&&(a+=" "+r[u]))}o[n]=a}return o}var J=et(yo());var ee=et(yo());var Fh=ht(),Rh=Fi("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Dh(e){return Wo({props:e,name:"MuiStack",defaultTheme:Fh})}function Oh(e,t){let r=jt.Children.toArray(e).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(jt.cloneElement(t,{key:`separator-${i}`})),o),[])}var Bh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Lh=({ownerState:e,theme:t})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:t},Fo({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){let o=wr(t),n=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=Fo({values:e.direction,base:n}),a=Fo({values:e.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((l,u,p)=>{if(!i[l]){let h=u>0?i[p[u-1]]:"column";i[l]=h}}),r=ke(r,ie({theme:t},a,(l,u)=>e.useFlexGap?{gap:Ve(o,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Bh(u?i[u]:e.direction)}`]:Ve(o,l)}}))}return r=tu(t.breakpoints,r),r};function Di(e={}){let{createStyledComponent:t=Rh,useThemeProps:r=Dh,componentName:o="MuiStack"}=e,n=()=>Go({root:["root"]},l=>_o(o,l),{}),i=t(Lh),a=jt.forwardRef(function(l,u){let p=r(l),_=Lo(p),{component:h="div",direction:m="column",spacing:y=0,divider:g,children:S,className:v,useFlexGap:P=!1}=_,w=C(_,["component","direction","spacing","divider","children","className","useFlexGap"]),k={direction:m,spacing:y,useFlexGap:P},R=n();return _jsxruntime.jsx.call(void 0, i,d(c({as:h,ownerState:k,ref:u,className:lu(R.root,v)},w),{children:g?Oh(S,g):S}))});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:ee.default.node,direction:ee.default.oneOfType([ee.default.oneOf(["column-reverse","column","row-reverse","row"]),ee.default.arrayOf(ee.default.oneOf(["column-reverse","column","row-reverse","row"])),ee.default.object]),divider:ee.default.node,spacing:ee.default.oneOfType([ee.default.arrayOf(ee.default.oneOfType([ee.default.number,ee.default.string])),ee.default.number,ee.default.object,ee.default.string]),sx:ee.default.oneOfType([ee.default.arrayOf(ee.default.oneOfType([ee.default.func,ee.default.object,ee.default.bool])),ee.default.func,ee.default.object])}),a}var du=Di();process.env.NODE_ENV!=="production"&&(du.propTypes={children:J.default.node,component:J.default.elementType,direction:J.default.oneOfType([J.default.oneOf(["column-reverse","column","row-reverse","row"]),J.default.arrayOf(J.default.oneOf(["column-reverse","column","row-reverse","row"])),J.default.object]),divider:J.default.node,spacing:J.default.oneOfType([J.default.arrayOf(J.default.oneOfType([J.default.number,J.default.string])),J.default.number,J.default.object,J.default.string]),sx:J.default.oneOfType([J.default.arrayOf(J.default.oneOfType([J.default.func,J.default.object,J.default.bool])),J.default.func,J.default.object]),useFlexGap:J.default.bool});var Ho=du;var Vh=_styled2.default.call(void 0, (0, _material.Typography))(({theme:e})=>({fontWeight:"bold"}));function hu(e){let{label:t,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",gap:4},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsx.call(void 0, Ho,{children:_jsxruntime.jsx.call(void 0, Vh,d(c({},o),{children:t}))}),_jsxruntime.jsx.call(void 0, Ho,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function jo(e){let{typographyProps:t,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:s,isEditing:l,isLoading:u,error:p}=e,_=s||{},{InputProps:f,value:h,onKeyDown:m,onChange:y}=_,g=C(_,["InputProps","value","onKeyDown","onChange"]),[S,v]=_react.useState.call(void 0, !1),[P,w]=_react.useState.call(void 0, !1),[k,R]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{R(n)},[n]),_react.useEffect.call(void 0, ()=>{v(!!l)},[l]),_react.useEffect.call(void 0, ()=>{p&&w(!0)},[p]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!S&&!u&&!P&&_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, _material.Typography,d(c({onClick:()=>{v(!0)}},t),{children:k})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{v(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(S||u||P)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>v(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:u,autoFocus:!0,value:k,error:P,onKeyDown:T=>{T.key==="Enter"&&(r(k),v(!1)),T.key==="Escape"&&(R(n),v(!1),w(!1),o&&o(n,k))},onChange:T=>{let Y=T.target.value;R(Y)},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!=k&&r(k),v(!1)},edge:"end",children:n!=k?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},g))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function it(e){let i=e,{onSearch:t}=i,r=C(i,["onSearch"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let s=a.target.value;o(s)}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 wu(e){let{title:t,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:s,toolbarProps:l}=e,[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{h(t)},[t]);let m=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&s){let v=localStorage.getItem(s);m.current&&(m.current.value=v),a(v||"")}},[s]);let y=_material.useMediaQuery.call(void 0, v=>v.breakpoints.down("sm"));function g(v){s&&localStorage.setItem(s,v),a&&a(v)}let S={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return _jsxruntime.jsx.call(void 0, _material.Toolbar,d(c({},l),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:y||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, jo,{typographyProps:S,value:f,onChange:v=>{i&&i(v)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,d(c({},S),{children:t}))]}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{marginLeft:"auto"},onClick:n,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{fontSize:"medium"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,direction:"row",children:[a&&_jsxruntime.jsx.call(void 0, it,{inputRef:m,autoFocus:!0,onSearch:g}),r]})]})}))}function zi(e){let F=e,{value:t,label:r,options:o,isLoading:n,form:i,table:a,tableProps:s,onChange:l,onSearch:u,renderValue:p,dialogProps:f,disabled:h,filterOptions:m,optionKeyName:y}=F,g=C(F,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:S,openDialog:v,closeDialog:P}=_hooks.useDialog.call(void 0, ),[w,k]=_react.useState.call(void 0, null),R=i||hi.default.Fragment,_=_lodash2.default.debounce(N=>u(N),500),T=_react.useCallback.call(void 0, (N,x)=>$(this,null,function*(){_(x)}),[_]),Y=_react.useCallback.call(void 0, (N,x,b)=>{if(y&&(x!=null&&x[y].includes("Adicionar op\xE7\xE3o:"))){let A=x[y].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),I=d(c({},x),{[y]:A});l&&l(I);return}l&&l(x)},[l]);function G(N,x=!1,b=!1){var A;if(N){let I=hi.default.Children.toArray((A=N.props)==null?void 0:A.children),M=I.length===1?0:1;return I.splice(M,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>v(),disabled:b,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.SearchOutlined,{fontSize:"small"})})),x&&I.unshift(_jsxruntime.jsx.call(void 0, _material.IconButton,{disabled:!0,children:_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"primary",size:18})})),hi.default.cloneElement(N,{},I)}return N}function K(N,x){if(!y)return N;let A=_material.createFilterOptions.call(void 0, )(N,x),{inputValue:I}=x,M=N.some(D=>I===D[y]);return I!==""&&!M&&A.push({[y]:`Adicionar op\xE7\xE3o: "${I}"`}),A}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Autocomplete,{disabled:h,loadingText:"Carregando...",loading:n,onChange:Y,value:t,onInputChange:T,options:o,getOptionLabel:p,filterOptions:K,renderInput:N=>_jsxruntime.jsx.call(void 0, _material.TextField,c(d(c({label:r,onDoubleClick:()=>{h||v()}},N),{InputProps:d(c({},N.InputProps),{endAdornment:G(N.InputProps.endAdornment,n,h)}),disabled:h}),g)),clearIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.BackspaceOutlined,{}),componentsProps:{clearIndicator:{sx:{visibility:"visible"}}},noOptionsText:"Nenhum registro"}),_jsxruntime.jsx.call(void 0, _providers.FormProvider,{children:_jsxruntime.jsx.call(void 0, He,d(c({open:S,onClose:()=>P(),actions:"none"},f),{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,children:[_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, it,{placeholder:"Pesquisar",onSearch:N=>k(N)}),i&&_jsxruntime.jsx.call(void 0, R,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:w,enableTransporter:!0,onTransport:N=>{P(),l&&l(N)}},s))]})}))})]})}var xy={dialogProps:{maxWidth:"md",fullWidth:!0}};zi.defaultProps=xy;function Wi(e){let{children:t}=e,r=_material.useTheme.call(void 0, ),o=_material.useMediaQuery.call(void 0, r.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:o?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{},children:t})}function Gi(e){let{label:t,subTitle:r="Acesse sua conta"}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"header",textAlign:"center",marginBottom:"3rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",fontSize:"2rem",fontWeight:"bold",variant:"body1",fontFamily:"Montserrat",sx:{color:o=>o.palette.primary.dark},children:t}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h3",fontSize:"1.25rem",fontFamily:"Montserrat",color:"primary",variant:"body1",children:r})]})}var _axios = require('axios');var Ae=et(Du()),Er=et(Lu()),Gu=et($u());var Gy=Object.prototype.toString,Hy=Error.prototype.toString,Uy=RegExp.prototype.toString,jy=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",qy=/^Symbol\((.*)\)(.*)$/;function Yy(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Nu(e,t=!1){if(e==null||e===!0||e===!1)return""+e;let r=typeof e;if(r==="number")return Yy(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return jy.call(e).replace(qy,"Symbol($1)");let o=Gy.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+Hy.call(e)+"]":o==="RegExp"?Uy.call(e):null}function Ze(e,t){let r=Nu(e,t);return r!==null?r:JSON.stringify(e,function(o,n){let i=Nu(this[o],t);return i!==null?i:n},2)}function Hu(e){return e==null?[]:[].concat(e)}var Uu,ju,qu,Ky=/\$\{\s*(\w+)\s*\}/g;Uu=Symbol.toStringTag;var Jo=class{constructor(t,r,o,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Uu]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],Hu(t).forEach(i=>{if(ae.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]}};ju=Symbol.hasInstance;qu=Symbol.toStringTag;var ae=class extends Error{static formatError(t,r){let o=r.label||r.path||"this";return r=Object.assign({},r,{path:o,originalPath:r.path}),typeof t=="string"?t.replace(Ky,(n,i)=>Ze(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,o,n,i){let a=new Jo(t,r,o,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[qu]="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,ae)}static[ju](t){return Jo[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},ze={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:o})=>{let n=o!=null&&o!==r?` (cast from the value \`${Ze(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ze(r,!0)}\``+n:`${e} must match the configured type. The validated value was: \`${Ze(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"},st={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Zi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Qi={isValue:"${path} field must be ${value}"},Zo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Qo={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"},Yu={notType:e=>{let{path:t,value:r,spec:o}=e,n=o.types.length;if(Array.isArray(r)){if(r.length<n)return`${t} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${Ze(r,!0)}\``;if(r.length>n)return`${t} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${Ze(r,!0)}\``}return ae.formatError(ze.notType,e)}},cF=Object.assign(Object.create(null),{mixed:ze,string:he,number:st,date:Zi,object:Zo,array:Qo,boolean:Qi,tuple:Yu}),ln=e=>e&&e.__isYupSchema__,Kt=class{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:n,otherwise:i}=r,a=typeof o=="function"?o:(...s)=>s.every(l=>l===o);return new Kt(t,(s,l)=>{var u;let p=a(...s)?n:i;return(u=p==null?void 0:p(l))!=null?u:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let o=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),n=this.fn(o,t,r);if(n===void 0||n===t)return t;if(!ln(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},Ko={context:"$",value:"."};var Qe=class{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ko.context,this.isValue=this.key[0]===Ko.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Ko.context:this.isValue?Ko.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,Ae.getter)(this.path,!0),this.map=r.map}getValue(t,r,o){let n=this.isContext?o:this.isValue?t:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}};Qe.prototype.__isYupRef=!0;var Re=e=>e==null;function qt(e){function t({value:r,path:o="",options:n,originalValue:i,schema:a},s,l){let{name:u,test:p,params:f,message:h,skipAbsent:m}=e,{parent:y,context:g,abortEarly:S=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=n,P={value:r,parent:y,context:g};function w(F={}){let N=Ku(Object.assign({value:r,originalValue:i,label:a.spec.label,path:F.path||o,spec:a.spec,disableStackTrace:F.disableStackTrace||v},f,F.params),P),x=new ae(ae.formatError(F.message||h,N),r,N.path,F.type||u,N.disableStackTrace);return x.params=N,x}let k=S?s:l,R={path:o,parent:y,type:u,from:n.from,createError:w,resolve(F){return Zu(F,P)},options:n,originalValue:i,schema:a},_=F=>{ae.isError(F)?k(F):F?l(null):k(w())},T=F=>{ae.isError(F)?k(F):s(F)};if(m&&Re(r))return _(!0);let G;try{var K;if(G=p.call(R,r,R),typeof((K=G)==null?void 0:K.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${R.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(G).then(_,T)}}catch(F){T(F);return}_(G)}return t.OPTIONS=e,t}function Ku(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=Zu(e[r],t);return e}function Zu(e,t){return Qe.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Zy(e,t,r,o=r){let n,i,a;return t?((0,Ae.forEach)(t,(s,l,u)=>{let p=l?s.slice(1,s.length-1):s;e=e.resolve({context:o,parent:n,value:r});let f=e.type==="tuple",h=u?parseInt(p,10):0;if(e.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&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);n=r,r=r&&r[h],e=f?e.spec.types[h]:e.innerType}if(!u){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);n=r,r=r&&r[p],e=e.fields[p]}i=p,a=l?"["+s+"]":"."+s}),{schema:e,parent:n,parentPath:i}):{parent:n,parentPath:t,schema:e}}var Zt=class extends Set{describe(){let t=[];for(let r of this.values())t.push(Qe.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(let o of this.values())r.push(t(o));return r}clone(){return new Zt(this.values())}merge(t,r){let o=this.clone();return t.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function Yt(e,t=new Map){if(ln(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let o=0;o<e.length;o++)r[o]=Yt(e[o],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(let[o,n]of e.entries())r.set(o,Yt(n,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let o of e)r.add(Yt(o,t))}else if(e instanceof Object){r={},t.set(e,r);for(let[o,n]of Object.entries(e))r[o]=Yt(n,t)}else throw Error(`Unable to clone ${e}`);return r}function Qy(e){if(!(e!=null&&e.length))return;let t=[],r="",o=!1,n=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a==="["&&!n){r&&(t.push(...r.split(".").filter(Boolean)),r=""),o=!0;continue}if(a==="]"&&!n){r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),o=!1;continue}if(a==='"'){n=!n;continue}if(a==="."&&!o&&!n){r&&(t.push(r),r="");continue}r+=a}return r&&t.push(...r.split(".").filter(Boolean)),t}function Xy(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(o=>({message:o,path:Qy(r)}))}function Qu(e,t){var r;if(!((r=e.inner)!=null&&r.length)&&e.errors.length)return Xy(e,t);let o=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(n=>Qu(n,o))}var se=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Zt,this._blacklist=new Zt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ze.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;let r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Yt(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=r,o}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,o=t.clone(),n=Object.assign({},r.spec,o.spec);return o.spec=n,o.internalTests=Object.assign({},r.internalTests,o.internalTests),o._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),o.tests=r.tests,o.exclusiveTests=r.exclusiveTests,o.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),o.transforms=[...r.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let o=r.conditions;r=r.clone(),r.conditions=[],r=o.reduce((n,i)=>i.resolve(n,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,o,n,i;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(n=t.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let o=this.resolve(Object.assign({value:t},r)),n=r.assert==="ignore-optionality",i=o._cast(t,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Re(i))return i;let a=Ze(t),s=Ze(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
|
|
6
|
+
`)));let s=n[l];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
7
|
+
`)),()=>{})}function wr(e){return mt(e,"spacing",8,"spacing")}function Ve(e,t){return typeof t=="string"||t==null?t:e(t)}function Ag(e,t){return r=>e.reduce((o,n)=>(o[n]=Ve(t,r),o),{})}function Mg(e,t,r,o){if(!t.includes(r))return null;let n=Eg(r),i=Ag(n,o),a=e[r];return ie(e,a,i)}function Si(e,t){let r=wr(e.theme);return Object.keys(e).map(o=>Mg(e,t,o,r)).reduce(je,{})}function te(e){return Si(e,Do)}te.propTypes=process.env.NODE_ENV!=="production"?Do.reduce((e,t)=>(e[t]=be,e),{}):{};te.filterProps=Do;function re(e){return Si(e,Oo)}re.propTypes=process.env.NODE_ENV!=="production"?Oo.reduce((e,t)=>(e[t]=be,e),{}):{};re.filterProps=Oo;function ou(e){return Si(e,wi)}ou.propTypes=process.env.NODE_ENV!=="production"?wi.reduce((e,t)=>(e[t]=be,e),{}):{};ou.filterProps=wi;function Pi(e=8,t=wr({spacing:e})){if(e.mui)return e;let r=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{let a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Fg(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>t[i]?je(n,t[i](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var qe=Fg;function Ce(e){return typeof e!="number"?e:`${e}px solid`}function Ie(e,t){return X({prop:e,themeKey:"borders",transform:t})}var Rg=Ie("border",Ce),Dg=Ie("borderTop",Ce),Og=Ie("borderRight",Ce),Bg=Ie("borderBottom",Ce),Lg=Ie("borderLeft",Ce),_g=Ie("borderColor"),$g=Ie("borderTopColor"),Ng=Ie("borderRightColor"),Vg=Ie("borderBottomColor"),zg=Ie("borderLeftColor"),Wg=Ie("outline",Ce),Gg=Ie("outlineColor"),Sr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=mt(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Ve(t,o)});return ie(e,e.borderRadius,r)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:be}:{};Sr.filterProps=["borderRadius"];var CI=qe(Rg,Dg,Og,Bg,Lg,_g,$g,Ng,Vg,zg,Sr,Wg,Gg);var Pr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=mt(e.theme,"spacing",8,"gap"),r=o=>({gap:Ve(t,o)});return ie(e,e.gap,r)}return null};Pr.propTypes=process.env.NODE_ENV!=="production"?{gap:be}:{};Pr.filterProps=["gap"];var Tr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=mt(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Ve(t,o)});return ie(e,e.columnGap,r)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:be}:{};Tr.filterProps=["columnGap"];var kr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=mt(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Ve(t,o)});return ie(e,e.rowGap,r)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:be}:{};kr.filterProps=["rowGap"];var Hg=X({prop:"gridColumn"}),Ug=X({prop:"gridRow"}),jg=X({prop:"gridAutoFlow"}),qg=X({prop:"gridAutoColumns"}),Yg=X({prop:"gridAutoRows"}),Kg=X({prop:"gridTemplateColumns"}),Zg=X({prop:"gridTemplateRows"}),Qg=X({prop:"gridTemplateAreas"}),Xg=X({prop:"gridArea"}),EI=qe(Pr,Tr,kr,Hg,Ug,jg,qg,Yg,Kg,Zg,Qg,Xg);function gt(e,t){return t==="grey"?t:e}var Jg=X({prop:"color",themeKey:"palette",transform:gt}),eh=X({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gt}),th=X({prop:"backgroundColor",themeKey:"palette",transform:gt}),RI=qe(Jg,eh,th);function ge(e){return e<=1&&e!==0?`${e*100}%`:e}var rh=X({prop:"width",transform:ge}),Bo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var n,i,a,l,s;let o=((a=(i=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||br[r];return o?((s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ge(r)}};return ie(e,e.maxWidth,t)}return null};Bo.filterProps=["maxWidth"];var oh=X({prop:"minWidth",transform:ge}),nh=X({prop:"height",transform:ge}),ih=X({prop:"maxHeight",transform:ge}),ah=X({prop:"minHeight",transform:ge}),_I=X({prop:"size",cssProperty:"width",transform:ge}),$I=X({prop:"size",cssProperty:"height",transform:ge}),sh=X({prop:"boxSizing"}),NI=qe(rh,Bo,oh,nh,ih,ah,sh);var lh={border:{themeKey:"borders",transform:Ce},borderTop:{themeKey:"borders",transform:Ce},borderRight:{themeKey:"borders",transform:Ce},borderBottom:{themeKey:"borders",transform:Ce},borderLeft:{themeKey:"borders",transform:Ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ce},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sr},color:{themeKey:"palette",transform:gt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gt},backgroundColor:{themeKey:"palette",transform:gt},p:{style:re},pt:{style:re},pr:{style:re},pb:{style:re},pl:{style:re},px:{style:re},py:{style:re},padding:{style:re},paddingTop:{style:re},paddingRight:{style:re},paddingBottom:{style:re},paddingLeft:{style:re},paddingX:{style:re},paddingY:{style:re},paddingInline:{style:re},paddingInlineStart:{style:re},paddingInlineEnd:{style:re},paddingBlock:{style:re},paddingBlockStart:{style:re},paddingBlockEnd:{style:re},m:{style:te},mt:{style:te},mr:{style:te},mb:{style:te},ml:{style:te},mx:{style:te},my:{style:te},margin:{style:te},marginTop:{style:te},marginRight:{style:te},marginBottom:{style:te},marginLeft:{style:te},marginX:{style:te},marginY:{style:te},marginInline:{style:te},marginInlineStart:{style:te},marginInlineEnd:{style:te},marginBlock:{style:te},marginBlockStart:{style:te},marginBlockEnd:{style:te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Pr},rowGap:{style:kr},columnGap:{style:Tr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ge},maxWidth:{style:Bo},minWidth:{transform:ge},height:{transform:ge},maxHeight:{transform:ge},minHeight:{transform:ge},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"}},Ht=lh;function ch(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function uh(e,t){return typeof e=="function"?e(t):e}function ph(){function e(r,o,n,i){let a={[r]:o,theme:n},l=i[r];if(!l)return{[r]:o};let{cssProperty:s=r,themeKey:u,transform:p,style:f}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[r]:o};let h=Gt(n,u)||{};return f?f(a):ie(a,o,y=>{let g=Cr(h,p,y);return y===g&&typeof y=="string"&&(g=Cr(h,p,`${r}${y==="default"?"":nt(y)}`,y)),s===!1?g:{[s]:g}})}function t(r){var s;let{sx:o,theme:n={},nested:i}=r||{};if(!o)return null;let a=(s=n.unstable_sxConfig)!=null?s:Ht;function l(u){let p=u;if(typeof u=="function")p=u(n);else if(typeof u!="object")return u;if(!p)return null;let f=Ci(n.breakpoints),h=Object.keys(f),m=f;return Object.keys(p).forEach(y=>{let g=uh(p[y],n);if(g!=null)if(typeof g=="object")if(a[y])m=je(m,e(y,g,n,a));else{let P=ie({theme:n},g,w=>({[y]:w}));ch(P,g)?m[y]=t({sx:g,theme:n,nested:!0}):m=je(m,P)}else m=je(m,e(y,g,n,a))}),!i&&n.modularCssLayers?{"@layer sx":Eo(n,Mo(h,m))}:Eo(n,Mo(h,m))}return Array.isArray(o)?o.map(l):l(o)}return t}var nu=ph();nu.filterProps=["sx"];var Ut=nu;function Ti(e,t){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function fh(e={},...t){let p=e,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=p,a=C(p,["breakpoints","palette","spacing","shape"]),l=xi(r),s=Pi(n),u=ke({breakpoints:l,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:s,shape:c(c({},Jc),i)},a);return u=Ao(u),u.applyStyles=Ti,u=t.reduce((f,h)=>ke(f,h),u),u.unstable_sxConfig=c(c({},Ht),a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Ut({sx:h,theme:this})},u}var ht=fh;function dh(e){return Object.keys(e).length===0}function mh(e=null){let t=iu.useContext(_react2.ThemeContext);return!t||dh(t)?e:t}var ki=mh;var gh=ht();function hh(e=gh){return ki(e)}var Ii=hh;var yh=e=>{var o,n;let t={systemProps:{},otherProps:{}},r=(n=(o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Ht;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Lo(e){let a=e,{sx:t}=a,r=C(a,["sx"]),{systemProps:o,otherProps:n}=yh(r),i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...l)=>{let s=t(...l);return Ne(s)?c(c({},o),s):o}:i=c(c({},o),t),d(c({},n),{sx:i})}var au=e=>e,xh=()=>{let e=au;return{configure(t){e=t},generate(t){return e(t)},reset(){e=au}}},vh=xh(),Ei=vh;function su(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=su(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function bh(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=su(e))&&(o&&(o+=" "),o+=t);return o}var lu=bh;var Ch={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _o(e,t,r="Mui"){let o=Ch[t];return o?`${r}-${o}`:`${Ei.generate(e)}-${t}`}var $o=et(gi());function uu(e,t=""){return e.displayName||e.name||t}function cu(e,t,r){let o=uu(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function No(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $o.ForwardRef:return cu(e,e.render,"ForwardRef");case $o.Memo:return cu(e,e.type,"memo");default:return}}}function Ai(e){let n=e,{variants:t}=n,r=C(n,["variants"]),o={variants:t,style:Ue(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Ue(i.style))}),o}var wh=ht();function Mi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Sh(e){return e?(t,r)=>r[e]:null}function Ph(e,t,r){e.theme=Ih(e.theme)?r:e.theme[t]||e.theme}function Vo(e,t,r){let o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(i=>Vo(e,i,r));if(Array.isArray(o==null?void 0:o.variants)){let i;if(o.isProcessed)i=r?yt(o.style,r):o.style;else{let n=o,{variants:a}=n,l=C(n,["variants"]);i=r?yt(Ue(l),r):l}return pu(e,o.variants,[i],r)}return o!=null&&o.isProcessed?r?yt(Ue(o.style),r):o.style:r?yt(Ue(o),r):o}function pu(e,t,r=[],o=void 0){var i;let n;e:for(let a=0;a<t.length;a+=1){let l=t[a];if(typeof l.props=="function"){if(n!=null||(n=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),!l.props(n))continue}else for(let s in l.props)if(e[s]!==l.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==l.props[s])continue e;typeof l.style=="function"?(n!=null||(n=d(c(c({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o?yt(Ue(l.style(n)),o):l.style(n))):r.push(o?yt(Ue(l.style),o):l.style)}return r}function zo(e={}){let{themeId:t,defaultTheme:r=wh,rootShouldForwardProp:o=Mi,slotShouldForwardProp:n=Mi}=e;function i(l){Ph(l,t,r)}return(l,s={})=>{Yc(l,T=>T.filter(Y=>Y!==Ut));let _=s,{name:u,slot:p,skipVariantsResolver:f,skipSx:h,overridesResolver:m=Sh(fu(p))}=_,y=C(_,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=u&&u.startsWith("Mui")||p?"components":"custom",P=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,w=h||!1,b=Mi;p==="Root"||p==="root"?b=o:p?b=n:Eh(l)&&(b=void 0);let S=pi(l,c({shouldForwardProp:b,label:kh(u,p)},y)),k=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(G){return Vo(G,T,G.theme.modularCssLayers?g:void 0)};if(Ne(T)){let Y=Ai(T);return function(K){return Y.variants?Vo(K,Y,K.theme.modularCssLayers?g:void 0):K.theme.modularCssLayers?yt(Y.style,g):Y.style}}return T},F=(...T)=>{let Y=[],G=T.map(k),K=[];if(Y.push(i),u&&m&&K.push(function(v){var D,O;let I=(O=(D=v.theme.components)==null?void 0:D[u])==null?void 0:O.styleOverrides;if(!I)return null;let M={};for(let B in I)M[B]=Vo(v,I[B],v.theme.modularCssLayers?"theme":void 0);return m(v,M)}),u&&!P&&K.push(function(v){var M,D;let A=v.theme,I=(D=(M=A==null?void 0:A.components)==null?void 0:M[u])==null?void 0:D.variants;return I?pu(v,I,[],v.theme.modularCssLayers?"theme":void 0):null}),w||K.push(Ut),Array.isArray(G[0])){let x=G.shift(),v=new Array(Y.length).fill(""),A=new Array(K.length).fill(""),I;I=[...v,...x,...A],I.raw=[...v,...x.raw,...A],Y.unshift(I)}let R=[...Y,...G,...K],N=S(...R);return l.muiName&&(N.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=Th(u,p,l)),N};return S.withConfig&&(F.withConfig=S.withConfig),F}}function Th(e,t,r){return e?`${e}${nt(t||"")}`:`Styled(${No(r)})`}function kh(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${fu(t||"Root")}`),r}function Ih(e){for(let t in e)return!1;return!0}function Eh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Ah=zo(),Fi=Ah;function Ir(e,t){let r=c({},t);for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let n=o;if(n==="components"||n==="slots")r[n]=c(c({},e[n]),r[n]);else if(n==="componentsProps"||n==="slotProps"){let i=e[n],a=t[n];if(!a)r[n]=i||{};else if(!i)r[n]=a;else{r[n]=c({},a);for(let l in i)if(Object.prototype.hasOwnProperty.call(i,l)){let s=l;r[n][s]=Ir(i[s],a[s])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function Ri(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Ir(t.components[r].defaultProps,o)}function Wo({props:e,name:t,defaultTheme:r,themeId:o}){let n=Ii(r);return o&&(n=n[o]||n),Ri({theme:n,name:t,props:e})}function Go(e,t,r=void 0){let o={};for(let n in e){let i=e[n],a="",l=!0;for(let s=0;s<i.length;s+=1){let u=i[s];u&&(a+=(l===!0?"":" ")+t(u),l=!1,r&&r[u]&&(a+=" "+r[u]))}o[n]=a}return o}var J=et(yo());var ee=et(yo());var Fh=ht(),Rh=Fi("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Dh(e){return Wo({props:e,name:"MuiStack",defaultTheme:Fh})}function Oh(e,t){let r=jt.Children.toArray(e).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(jt.cloneElement(t,{key:`separator-${i}`})),o),[])}var Bh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Lh=({ownerState:e,theme:t})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:t},Fo({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){let o=wr(t),n=Object.keys(t.breakpoints.values).reduce((s,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(s[u]=!0),s),{}),i=Fo({values:e.direction,base:n}),a=Fo({values:e.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((s,u,p)=>{if(!i[s]){let h=u>0?i[p[u-1]]:"column";i[s]=h}}),r=ke(r,ie({theme:t},a,(s,u)=>e.useFlexGap?{gap:Ve(o,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Bh(u?i[u]:e.direction)}`]:Ve(o,s)}}))}return r=tu(t.breakpoints,r),r};function Di(e={}){let{createStyledComponent:t=Rh,useThemeProps:r=Dh,componentName:o="MuiStack"}=e,n=()=>Go({root:["root"]},s=>_o(o,s),{}),i=t(Lh),a=jt.forwardRef(function(s,u){let p=r(s),_=Lo(p),{component:h="div",direction:m="column",spacing:y=0,divider:g,children:P,className:w,useFlexGap:b=!1}=_,S=C(_,["component","direction","spacing","divider","children","className","useFlexGap"]),k={direction:m,spacing:y,useFlexGap:b},F=n();return _jsxruntime.jsx.call(void 0, i,d(c({as:h,ownerState:k,ref:u,className:lu(F.root,w)},S),{children:g?Oh(P,g):P}))});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:ee.default.node,direction:ee.default.oneOfType([ee.default.oneOf(["column-reverse","column","row-reverse","row"]),ee.default.arrayOf(ee.default.oneOf(["column-reverse","column","row-reverse","row"])),ee.default.object]),divider:ee.default.node,spacing:ee.default.oneOfType([ee.default.arrayOf(ee.default.oneOfType([ee.default.number,ee.default.string])),ee.default.number,ee.default.object,ee.default.string]),sx:ee.default.oneOfType([ee.default.arrayOf(ee.default.oneOfType([ee.default.func,ee.default.object,ee.default.bool])),ee.default.func,ee.default.object])}),a}var du=Di();process.env.NODE_ENV!=="production"&&(du.propTypes={children:J.default.node,component:J.default.elementType,direction:J.default.oneOfType([J.default.oneOf(["column-reverse","column","row-reverse","row"]),J.default.arrayOf(J.default.oneOf(["column-reverse","column","row-reverse","row"])),J.default.object]),divider:J.default.node,spacing:J.default.oneOfType([J.default.arrayOf(J.default.oneOfType([J.default.number,J.default.string])),J.default.number,J.default.object,J.default.string]),sx:J.default.oneOfType([J.default.arrayOf(J.default.oneOfType([J.default.func,J.default.object,J.default.bool])),J.default.func,J.default.object]),useFlexGap:J.default.bool});var Ho=du;var Vh=_styled2.default.call(void 0, (0, _material.Typography))(({theme:e})=>({fontWeight:"bold"}));function hu(e){let{label:t,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=e;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",gap:4},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsx.call(void 0, Ho,{children:_jsxruntime.jsx.call(void 0, Vh,d(c({},o),{children:t}))}),_jsxruntime.jsx.call(void 0, Ho,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function jo(e){let{typographyProps:t,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:l,isEditing:s,isLoading:u,error:p}=e,_=l||{},{InputProps:f,value:h,onKeyDown:m,onChange:y}=_,g=C(_,["InputProps","value","onKeyDown","onChange"]),[P,w]=_react.useState.call(void 0, !1),[b,S]=_react.useState.call(void 0, !1),[k,F]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{F(n)},[n]),_react.useEffect.call(void 0, ()=>{w(!!s)},[s]),_react.useEffect.call(void 0, ()=>{p&&S(!0)},[p]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!P&&!u&&!b&&_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{cursor:"pointer"},direction:"row",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, _material.Typography,d(c({onClick:()=>{w(!0)}},t),{children:k})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{w(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(P||u||b)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>w(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:u,autoFocus:!0,value:k,error:b,onKeyDown:T=>{T.key==="Enter"&&(r(k),w(!1)),T.key==="Escape"&&(F(n),w(!1),S(!1),o&&o(n,k))},onChange:T=>{let Y=T.target.value;F(Y)},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!=k&&r(k),w(!1)},edge:"end",children:n!=k?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},g))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function it(e){let i=e,{onSearch:t}=i,r=C(i,["onSearch"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let l=a.target.value;o(l)}return _jsxruntime.jsx.call(void 0, _material.TextField,c({onChange:n,autoFocus:!0,InputProps:{startAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"start",children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})})}},r))}function wu(e){let{title:t,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:l,toolbarProps:s}=e,[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{h(t)},[t]);let m=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&l){let w=localStorage.getItem(l);m.current&&(m.current.value=w),a(w||"")}},[l]);let y=_material.useMediaQuery.call(void 0, w=>w.breakpoints.down("sm"));function g(w){l&&localStorage.setItem(l,w),a&&a(w)}let P={component:"h1",variant:"h4",sx:{fontWeight:"500"}};return _jsxruntime.jsx.call(void 0, _material.Toolbar,d(c({},s),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:y||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, jo,{typographyProps:P,value:f,onChange:w=>{i&&i(w)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,d(c({},P),{children:t}))]}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{marginLeft:"auto"},onClick:n,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{fontSize:"medium"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,direction:"row",children:[a&&_jsxruntime.jsx.call(void 0, it,{inputRef:m,autoFocus:!0,onSearch:g}),r]})]})}))}function zi(e){let R=e,{value:t,label:r,options:o,isLoading:n,form:i,table:a,tableProps:l,onChange:s,onSearch:u,renderValue:p,dialogProps:f,disabled:h,filterOptions:m,optionKeyName:y}=R,g=C(R,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:P,openDialog:w,closeDialog:b}=_hooks.useDialog.call(void 0, ),[S,k]=_react.useState.call(void 0, null),F=i||hi.default.Fragment,_=_lodash2.default.debounce(N=>u(N),500),T=_react.useCallback.call(void 0, (N,x)=>$(this,null,function*(){_(x)}),[_]),Y=_react.useCallback.call(void 0, (N,x,v)=>{if(y&&(x!=null&&x[y].includes("Adicionar op\xE7\xE3o:"))){let A=x[y].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),I=d(c({},x),{[y]:A});s&&s(I);return}s&&s(x)},[s]);function G(N,x=!1,v=!1){var A;if(N){let I=hi.default.Children.toArray((A=N.props)==null?void 0:A.children),M=I.length===1?0:1;return I.splice(M,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>w(),disabled:v,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.SearchOutlined,{fontSize:"small"})})),x&&I.unshift(_jsxruntime.jsx.call(void 0, _material.IconButton,{disabled:!0,children:_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"primary",size:18})})),hi.default.cloneElement(N,{},I)}return N}function K(N,x){if(!y)return N;let A=_material.createFilterOptions.call(void 0, )(N,x),{inputValue:I}=x,M=N.some(D=>I===D[y]);return I!==""&&!M&&A.push({[y]:`Adicionar op\xE7\xE3o: "${I}"`}),A}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Autocomplete,{disabled:h,loadingText:"Carregando...",loading:n,onChange:Y,value:t,onInputChange:T,options:o,getOptionLabel:p,filterOptions:K,renderInput:N=>_jsxruntime.jsx.call(void 0, _material.TextField,c(d(c({label:r,onDoubleClick:()=>{h||w()}},N),{InputProps:d(c({},N.InputProps),{endAdornment:G(N.InputProps.endAdornment,n,h)}),disabled:h}),g)),clearIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.BackspaceOutlined,{}),componentsProps:{clearIndicator:{sx:{visibility:"visible"}}},noOptionsText:"Nenhum registro"}),_jsxruntime.jsx.call(void 0, _providers.FormProvider,{children:_jsxruntime.jsx.call(void 0, He,d(c({open:P,onClose:()=>b(),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:N=>k(N)}),i&&_jsxruntime.jsx.call(void 0, F,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:S,enableTransporter:!0,onTransport:N=>{b(),s&&s(N)}},l))]})}))})]})}var xy={dialogProps:{maxWidth:"md",fullWidth:!0}};zi.defaultProps=xy;function Wi(e){let{children:t}=e,r=_material.useTheme.call(void 0, ),o=_material.useMediaQuery.call(void 0, r.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:o?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{},children:t})}function Gi(e){let{label:t,subTitle:r="Acesse sua conta"}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"header",textAlign:"center",marginBottom:"3rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",fontSize:"2rem",fontWeight:"bold",variant:"body1",fontFamily:"Montserrat",sx:{color:o=>o.palette.primary.dark},children:t}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h3",fontSize:"1.25rem",fontFamily:"Montserrat",color:"primary",variant:"body1",children:r})]})}var _axios = require('axios');var Ae=et(Du()),Er=et(Lu()),Gu=et($u());var Gy=Object.prototype.toString,Hy=Error.prototype.toString,Uy=RegExp.prototype.toString,jy=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",qy=/^Symbol\((.*)\)(.*)$/;function Yy(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Nu(e,t=!1){if(e==null||e===!0||e===!1)return""+e;let r=typeof e;if(r==="number")return Yy(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return jy.call(e).replace(qy,"Symbol($1)");let o=Gy.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+Hy.call(e)+"]":o==="RegExp"?Uy.call(e):null}function Ze(e,t){let r=Nu(e,t);return r!==null?r:JSON.stringify(e,function(o,n){let i=Nu(this[o],t);return i!==null?i:n},2)}function Hu(e){return e==null?[]:[].concat(e)}var Uu,ju,qu,Ky=/\$\{\s*(\w+)\s*\}/g;Uu=Symbol.toStringTag;var Jo=class{constructor(t,r,o,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Uu]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],Hu(t).forEach(i=>{if(ae.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]}};ju=Symbol.hasInstance;qu=Symbol.toStringTag;var ae=class extends Error{static formatError(t,r){let o=r.label||r.path||"this";return r=Object.assign({},r,{path:o,originalPath:r.path}),typeof t=="string"?t.replace(Ky,(n,i)=>Ze(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,o,n,i){let a=new Jo(t,r,o,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[qu]="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,ae)}static[ju](t){return Jo[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}},ze={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:o})=>{let n=o!=null&&o!==r?` (cast from the value \`${Ze(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ze(r,!0)}\``+n:`${e} must match the configured type. The validated value was: \`${Ze(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"},st={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Zi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Qi={isValue:"${path} field must be ${value}"},Zo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Qo={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"},Yu={notType:e=>{let{path:t,value:r,spec:o}=e,n=o.types.length;if(Array.isArray(r)){if(r.length<n)return`${t} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${Ze(r,!0)}\``;if(r.length>n)return`${t} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${Ze(r,!0)}\``}return ae.formatError(ze.notType,e)}},cF=Object.assign(Object.create(null),{mixed:ze,string:he,number:st,date:Zi,object:Zo,array:Qo,boolean:Qi,tuple:Yu}),ln=e=>e&&e.__isYupSchema__,Kt=class{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:n,otherwise:i}=r,a=typeof o=="function"?o:(...l)=>l.every(s=>s===o);return new Kt(t,(l,s)=>{var u;let p=a(...l)?n:i;return(u=p==null?void 0:p(s))!=null?u:s})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let o=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),n=this.fn(o,t,r);if(n===void 0||n===t)return t;if(!ln(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},Ko={context:"$",value:"."};var Qe=class{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ko.context,this.isValue=this.key[0]===Ko.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Ko.context:this.isValue?Ko.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,Ae.getter)(this.path,!0),this.map=r.map}getValue(t,r,o){let n=this.isContext?o:this.isValue?t:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}};Qe.prototype.__isYupRef=!0;var Re=e=>e==null;function qt(e){function t({value:r,path:o="",options:n,originalValue:i,schema:a},l,s){let{name:u,test:p,params:f,message:h,skipAbsent:m}=e,{parent:y,context:g,abortEarly:P=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=n,b={value:r,parent:y,context:g};function S(R={}){let N=Ku(Object.assign({value:r,originalValue:i,label:a.spec.label,path:R.path||o,spec:a.spec,disableStackTrace:R.disableStackTrace||w},f,R.params),b),x=new ae(ae.formatError(R.message||h,N),r,N.path,R.type||u,N.disableStackTrace);return x.params=N,x}let k=P?l:s,F={path:o,parent:y,type:u,from:n.from,createError:S,resolve(R){return Zu(R,b)},options:n,originalValue:i,schema:a},_=R=>{ae.isError(R)?k(R):R?s(null):k(S())},T=R=>{ae.isError(R)?k(R):l(R)};if(m&&Re(r))return _(!0);let G;try{var K;if(G=p.call(F,r,F),typeof((K=G)==null?void 0:K.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(G).then(_,T)}}catch(R){T(R);return}_(G)}return t.OPTIONS=e,t}function Ku(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=Zu(e[r],t);return e}function Zu(e,t){return Qe.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Zy(e,t,r,o=r){let n,i,a;return t?((0,Ae.forEach)(t,(l,s,u)=>{let p=s?l.slice(1,l.length-1):l;e=e.resolve({context:o,parent:n,value:r});let f=e.type==="tuple",h=u?parseInt(p,10):0;if(e.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&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);n=r,r=r&&r[h],e=f?e.spec.types[h]:e.innerType}if(!u){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);n=r,r=r&&r[p],e=e.fields[p]}i=p,a=s?"["+l+"]":"."+l}),{schema:e,parent:n,parentPath:i}):{parent:n,parentPath:t,schema:e}}var Zt=class extends Set{describe(){let t=[];for(let r of this.values())t.push(Qe.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(let o of this.values())r.push(t(o));return r}clone(){return new Zt(this.values())}merge(t,r){let o=this.clone();return t.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function Yt(e,t=new Map){if(ln(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let o=0;o<e.length;o++)r[o]=Yt(e[o],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(let[o,n]of e.entries())r.set(o,Yt(n,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let o of e)r.add(Yt(o,t))}else if(e instanceof Object){r={},t.set(e,r);for(let[o,n]of Object.entries(e))r[o]=Yt(n,t)}else throw Error(`Unable to clone ${e}`);return r}function Qy(e){if(!(e!=null&&e.length))return;let t=[],r="",o=!1,n=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a==="["&&!n){r&&(t.push(...r.split(".").filter(Boolean)),r=""),o=!0;continue}if(a==="]"&&!n){r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),o=!1;continue}if(a==='"'){n=!n;continue}if(a==="."&&!o&&!n){r&&(t.push(r),r="");continue}r+=a}return r&&t.push(...r.split(".").filter(Boolean)),t}function Xy(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(o=>({message:o,path:Qy(r)}))}function Qu(e,t){var r;if(!((r=e.inner)!=null&&r.length)&&e.errors.length)return Xy(e,t);let o=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(n=>Qu(n,o))}var se=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Zt,this._blacklist=new Zt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ze.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;let r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Yt(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=r,o}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,o=t.clone(),n=Object.assign({},r.spec,o.spec);return o.spec=n,o.internalTests=Object.assign({},r.internalTests,o.internalTests),o._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),o.tests=r.tests,o.exclusiveTests=r.exclusiveTests,o.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),o.transforms=[...r.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let o=r.conditions;r=r.clone(),r.conditions=[],r=o.reduce((n,i)=>i.resolve(n,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,o,n,i;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(n=t.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let o=this.resolve(Object.assign({value:t},r)),n=r.assert==="ignore-optionality",i=o._cast(t,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Re(i))return i;let a=Ze(t),l=Ze(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
|
-
`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,r){let o=t===void 0?t:this.transforms.reduce((n,i)=>i.call(this,n,t,this),t);return o===void 0&&(o=this.getDefault(r)),o}_validate(t,r={},o,n){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let p of Object.values(this.internalTests))p&&u.push(p);this.runTests({path:i,value:l,originalValue:a,options:r,tests:u},o,p=>{if(p.length)return n(p,l);this.runTests({path:i,value:l,originalValue:a,options:r,tests:this.tests},o,n)})}runTests(t,r,o){let n=!1,{tests:i,value:a,originalValue:s,path:l,options:u}=t,p=g=>{n||(n=!0,r(g,a))},f=g=>{n||(n=!0,o(g,a))},h=i.length,m=[];if(!h)return f([]);let y={value:a,originalValue:s,path:l,options:u,schema:this};for(let g=0;g<i.length;g++){let S=i[g];S(y,p,function(P){P&&(Array.isArray(P)?m.push(...P):m.push(P)),--h<=0&&f(m)})}}asNestedTest({key:t,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let s=t!=null?t:r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");let l=typeof s=="number",u=o[s],p=Object.assign({},a,{strict:!0,parent:o,value:u,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${n||""}[${l?s:`"${s}"`}]`:(n?`${n}.`:"")+t});return(f,h,m)=>this.resolve(p)._validate(u,p,h,m)}validate(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,s)=>n._validate(t,r,(l,u)=>{ae.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new ae(l,u,void 0,void 0,i)):a(u)}))}validateSync(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw ae.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new ae(s,t,void 0,void 0,a);i=l}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,o=>{if(ae.isError(o))return!1;throw o})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(o){if(ae.isError(o))return!1;throw o}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Yt(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){let o=this.clone({nullable:t});return o.internalTests.nullable=qt({message:r,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),o}optionality(t,r){let o=this.clone({optional:t});return o.internalTests.optionality=qt({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=ze.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ze.notNull){return this.nullability(!1,t)}required(t=ze.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=ze.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=qt(r),i=r.exclusive||r.name&&o.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(o.exclusiveTests[r.name]=!!r.exclusive),o.tests=o.tests.filter(a=>!(a.OPTIONS.name===r.name&&(i||a.OPTIONS.test===n.OPTIONS.test))),o.tests.push(n),o}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let o=this.clone(),n=Hu(t).map(i=>new Qe(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new Kt(n,r):Kt.fromOptions(n,r)),o}typeError(t){let r=this.clone();return r.internalTests.typeError=qt({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=ze.oneOf){let o=this.clone();return t.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=qt({message:r,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),o}notOneOf(t,r=ze.notOneOf){let o=this.clone();return t.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=qt({message:r,name:"notOneOf",test(n){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),o}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){let r=(t?this.resolve(t):this).clone(),{label:o,meta:n,optional:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.filter((l,u,p)=>p.findIndex(f=>f.OPTIONS.name===l.OPTIONS.name)===u).map(l=>{let u=l.OPTIONS.params&&t?Ku(Object.assign({},l.OPTIONS.params),t):l.OPTIONS.params;return{name:l.OPTIONS.name,params:u}})}}get"~standard"(){let t=this;return{version:1,vendor:"yup",validate(n){return $(this,null,function*(){try{return{value:yield t.validate(n,{abortEarly:!1})}}catch(i){if(i instanceof ae)return{issues:Qu(i)};throw i}})}}}};se.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])se.prototype[`${e}At`]=function(t,r,o={}){let{parent:n,parentPath:i,schema:a}=Zy(this,t,r,o.context);return a[e](n&&n[i],Object.assign({},o,{parent:n,path:t}))};for(let e of["equals","is"])se.prototype[e]=se.prototype.oneOf;for(let e of["not","nope"])se.prototype[e]=se.prototype.notOneOf;var Jy=()=>!0;function ex(e){return new en(e)}var en=class extends se{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Jy},t))}};ex.prototype=en.prototype;function tx(){return new tn}var tn=class extends se{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Qi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Re(r)||r===!0}})}isFalse(t=Qi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Re(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}};tx.prototype=tn.prototype;var rx=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ox(e){let t=Xi(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function Xi(e){var t,r;let o=rx.exec(e);return o?{year:Ke(o[1]),month:Ke(o[2],1)-1,day:Ke(o[3],1),hour:Ke(o[4]),minute:Ke(o[5]),second:Ke(o[6]),millisecond:o[7]?Ke(o[7].substring(0,3)):0,precision:(t=(r=o[7])==null?void 0:r.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:Ke(o[10]),minuteOffset:Ke(o[11])}:null}function Ke(e,t=0){return Number(e)||t}var nx=/^[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])?)*$/,ix=/^((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,ax=/^(?:[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,sx="^\\d{4}-\\d{2}-\\d{2}",lx="\\d{2}:\\d{2}:\\d{2}",cx="(([+-]\\d{2}(:?\\d{2})?)|Z)",ux=new RegExp(`${sx}T${lx}(\\.\\d+)?${cx}$`),px=e=>Re(e)||e===e.trim(),fx={}.toString();function fe(){return new rn}var rn=class extends se{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;let n=t!=null&&t.toString?t.toString():t;return n===fx?t:n})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||ze.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=he.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r=he.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r=he.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,r){let o=!1,n,i;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:i}=r:n=r),this.test({name:i||"matches",message:n||he.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&o||a.search(t)!==-1})}email(t=he.email){return this.matches(nx,{name:"email",message:t,excludeEmptyString:!0})}url(t=he.url){return this.matches(ix,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=he.uuid){return this.matches(ax,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",o,n;return t&&(typeof t=="object"?{message:r="",allowOffset:o=!1,precision:n=void 0}=t:r=t),this.matches(ux,{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(t=>t===null?"":t)}trim(t=he.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:px})}lowercase(t=he.lowercase){return this.transform(r=>Re(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Re(r)||r===r.toLowerCase()})}uppercase(t=he.uppercase){return this.transform(r=>Re(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Re(r)||r===r.toUpperCase()})}};fe.prototype=rn.prototype;var dx=e=>e!=+e;function mx(){return new on}var on=class extends se{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!dx(t)}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce)return t;let n=t;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return o.isType(n)||n===null?n:parseFloat(n)})})}min(t,r=st.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,r=st.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,r=st.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,r=st.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=st.positive){return this.moreThan(0,t)}negative(t=st.negative){return this.lessThan(0,t)}integer(t=st.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>Re(t)?t:t|0)}round(t){var r;let o=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(n=>Re(n)?n:Math[t](n))}};mx.prototype=on.prototype;var Xu=new Date(""),gx=e=>Object.prototype.toString.call(e)==="[object Date]";function Ju(){return new vt}var vt=class extends se{constructor(){super({type:"date",check(t){return gx(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=ox(t),isNaN(t)?vt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let o;if(Qe.isRef(t))o=t;else{let n=this.cast(t);if(!this._typeCheck(n))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);o=n}return o}min(t,r=Zi.min){let o=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(t,r=Zi.max){let o=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};vt.INVALID_DATE=Xu;Ju.prototype=vt.prototype;Ju.INVALID_DATE=Xu;function hx(e,t=[]){let r=[],o=new Set,n=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=(0,Ae.split)(a)[0];o.add(l),n.has(`${s}-${l}`)||r.push([s,l])}for(let a of Object.keys(e)){let s=e[a];o.add(a),Qe.isRef(s)&&s.isSibling?i(s.path,a):ln(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return Gu.default.array(Array.from(o),r).reverse()}function Vu(e,t){let r=1/0;return e.some((o,n)=>{var i;if((i=t.path)!=null&&i.includes(o))return r=n,!0}),r}function ep(e){return(t,r)=>Vu(e,t)-Vu(e,r)}var tp=(e,t,r)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch(n){}return r.isType(o)?o:e};function Xo(e){if("fields"in e){let t={};for(let[r,o]of Object.entries(e.fields))t[r]=Xo(o);return e.setFields(t)}if(e.type==="array"){let t=e.optional();return t.innerType&&(t.innerType=Xo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Xo)}):"optional"in e?e.optional():e}var yx=(e,t)=>{let r=[...(0,Ae.normalizePath)(t)];if(r.length===1)return r[0]in e;let o=r.pop(),n=(0,Ae.getter)((0,Ae.join)(r),!0)(e);return!!(n&&o in n)},zu=e=>Object.prototype.toString.call(e)==="[object Object]";function Wu(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(o=>r.indexOf(o)===-1)}var xx=ep([]);function we(e){return new nn(e)}var nn=class extends se{constructor(t){super({type:"object",check(r){return zu(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=xx,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var o;let n=super._cast(t,r);if(n===void 0)return this.getDefault(r);if(!this._typeCheck(n))return n;let i=this.fields,a=(o=r.stripUnknown)!=null?o:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),p=!1;for(let f of s){let h=i[f],m=f in n;if(h){let y,g=n[f];u.path=(r.path?`${r.path}.`:"")+f,h=h.resolve({value:g,context:r.context,parent:l});let S=h instanceof se?h.spec:void 0,v=S==null?void 0:S.strict;if(S!=null&&S.strip){p=p||f in n;continue}y=!r.__validating||!v?h.cast(n[f],u):n[f],y!==void 0&&(l[f]=y)}else m&&!a&&(l[f]=n[f]);(m!==f in l||l[f]!==n[f])&&(p=!0)}return p?l:n}_validate(t,r={},o,n){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(t,r,o,(l,u)=>{if(!s||!zu(u)){n(l,u);return}a=a||u;let p=[];for(let f of this._nodes){let h=this.fields[f];!h||Qe.isRef(h)||p.push(h.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(l),u)})})}clone(t){let r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),o=r.fields;for(let[n,i]of Object.entries(this.fields)){let a=o[n];o[n]=a===void 0?i:a}return r.withMutation(n=>n.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(o=>{var n;let i=this.fields[o],a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),r[o]=i&&"getDefault"in i?i.getDefault(a):void 0}),r}setFields(t,r){let o=this.clone();return o.fields=t,o._nodes=hx(t,r),o._sortErrors=ep(Object.keys(t)),r&&(o._excludedEdges=r),o}shape(t,r=[]){return this.clone().withMutation(o=>{let n=o._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),n=[...o._excludedEdges,...r]),o.setFields(Object.assign(o.fields,t),n)})}partial(){let t={};for(let[r,o]of Object.entries(this.fields))t[r]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Xo(this)}pick(t){let r={};for(let o of t)this.fields[o]&&(r[o]=this.fields[o]);return this.setFields(r,this._excludedEdges.filter(([o,n])=>t.includes(o)&&t.includes(n)))}omit(t){let r=[];for(let o of Object.keys(this.fields))t.includes(o)||r.push(o);return this.pick(r)}from(t,r,o){let n=(0,Ae.getter)(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return yx(i,t)&&(a=Object.assign({},i),o||delete a[t],a[r]=n(i)),a})}json(){return this.transform(tp)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Zo.exact,test(r){if(r==null)return!0;let o=Wu(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Zo.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;let i=Wu(this.schema,n);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,r=Zo.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[t(n)]=r[n];return o})}camelCase(){return this.transformKeys(Er.camelCase)}snakeCase(){return this.transformKeys(Er.snakeCase)}constantCase(){return this.transformKeys(t=>(0,Er.snakeCase)(t).toUpperCase())}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(let[i,a]of Object.entries(r.fields)){var n;let s=t;(n=s)!=null&&n.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),o.fields[i]=a.describe(s)}return o}};we.prototype=nn.prototype;function vx(e){return new an(e)}var an=class extends se{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){let o=super._cast(t,r);if(!this._typeCheck(o)||!this.innerType)return o;let n=!1,i=o.map((a,s)=>{let l=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==a&&(n=!0),l});return n?i:o}_validate(t,r={},o,n){var i;let a=this.innerType,s=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,o,(l,u)=>{var p;if(!s||!a||!this._typeCheck(u)){n(l,u);return}let f=new Array(u.length);for(let m=0;m<u.length;m++){var h;f[m]=a.asNestedTest({options:r,index:m,parent:u,parentPath:r.path,originalParent:(h=r.originalValue)!=null?h:t})}this.runTests({value:u,tests:f,originalValue:(p=r.originalValue)!=null?p:t,options:r},o,m=>n(m.concat(l),u))})}clone(t){let r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(tp)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!ln(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ze(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Qo.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r){return r=r||Qo.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r){return r=r||Qo.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(o,n,i)=>!t(o,n,i):o=>!!o;return this.transform(o=>o!=null?o.filter(r):o)}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);if(r.innerType){var n;let i=t;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),o.innerType=r.innerType.describe(i)}return o}};vx.prototype=an.prototype;function bx(e){return new sn(e)}var sn=class extends se{constructor(t){super({type:"tuple",spec:{types:t},check(r){let o=this.spec.types;return Array.isArray(r)&&r.length===o.length}}),this.withMutation(()=>{this.typeError(Yu.notType)})}_cast(t,r){let{types:o}=this.spec,n=super._cast(t,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((s,l)=>{let u=s.cast(n[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==n[l]&&(i=!0),u});return i?a:n}_validate(t,r={},o,n){let i=this.spec.types;super._validate(t,r,o,(a,s)=>{var l;if(!this._typeCheck(s)){n(a,s);return}let u=[];for(let[f,h]of i.entries()){var p;u[f]=h.asNestedTest({options:r,index:f,parent:s,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:s,tests:u,originalValue:(l=r.originalValue)!=null?l:t,options:r},o,f=>n(f.concat(a),s))})}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=r.spec.types.map((n,i)=>{var a;let s=t;return(a=s)!=null&&a.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),n.describe(s)}),o}};bx.prototype=sn.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function bt(e){let{name:t,label:r,value:o,onChange:n,onKeyDown:i}=e,[a,s]=_react.useState.call(void 0, !1);function l(){s(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:t,label:r,value:o||"",onChange:n,onKeyDown:i,type:a?"text":"password",InputProps:{endAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"end",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{tabIndex:-1,onClick:l,edge:"end",children:a?_jsxruntime.jsx.call(void 0, _iconsmaterial.VisibilityOff,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Visibility,{})})})}})}var _core = require('@toolpad/core');function Ji(r){var o=r,{children:e}=o,t=C(o,["children"]);return _jsxruntime.jsx.call(void 0, L,d(c({variant:"outlined",color:"error"},t),{children:"Cancelar"}))}function Ct({onClose:e}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>e(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function wt(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},e))}function ea(o){var n=o,{children:e,label:t}=n,r=C(n,["children","label"]);return _jsxruntime.jsx.call(void 0, L,d(c({variant:"contained"},r),{children:t||"Salvar"}))}function ta(e){let a=e,{dialogComponent:t,payload:r,label:o}=a,n=C(a,["dialogComponent","payload","label"]),i=_core.useDialogs.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{i.open(t,r)}},n),{children:o||" Adicionar"}))}function St(r){var o=r,{children:e}=o,t=C(o,["children"]);return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"main",margin:"44px 0 55.75px",overflow:"auto",children:_jsxruntime.jsx.call(void 0, _material.Stack,d(c({padding:"16px"},t),{children:e}))})}function Pt(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({component:"footer",position:"absolute",direction:"row",alignItems:"center",bottom:0,left:0,right:0,padding:"8px 16px",borderTop:`solid 1px ${t.palette.grey[300]}`,height:"48px",sx:{backgroundColor:t.palette.background.paper}},e))}function Tt(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({component:"header",height:"44px",position:"absolute",direction:"row",top:0,left:0,right:0,display:"flex",alignItems:"center",padding:"16px",borderBottom:`solid 1px ${t.palette.grey[300]}`},e))}var jx=_react.forwardRef.call(void 0, function(t,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},t))});function kt(n){var i=n,{children:e,height:t,fullWidth:r=!0}=i,o=C(i,["children","height","fullWidth"]);return _jsxruntime.jsx.call(void 0, _material.Dialog,d(c({disableRestoreFocus:!0,fullWidth:r,TransitionComponent:jx,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:t,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:e})}))}function It(e){return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h6",variant:"h6",sx:{whiteSpace:"nowrap"}},e))}function na(e){let{open:t,onClose:r,title:o,message:n,confirmButtonLabel:i="Confirmar",cancelButtonLabel:a="Cancelar"}=e;return _jsxruntime.jsxs.call(void 0, kt,{open:t,onClose:r,children:[_jsxruntime.jsxs.call(void 0, Tt,{children:[_jsxruntime.jsx.call(void 0, It,{children:o||"Precisamos da sua confirma\xE7\xE3o"}),_jsxruntime.jsx.call(void 0, Ct,{onClose:r})]}),_jsxruntime.jsx.call(void 0, St,{children:_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",children:n||"Voc\xEA tem certeza que deseja continuar?"})}),_jsxruntime.jsx.call(void 0, Pt,{children:_jsxruntime.jsxs.call(void 0, wt,{children:[_jsxruntime.jsx.call(void 0, L,{onClick:()=>r(!1),sx:{minWidth:"100px"},children:a}),_jsxruntime.jsx.call(void 0, L,{color:"error",variant:"contained",onClick:()=>r(!0),sx:{minWidth:"100px"},children:i})]})})]})}function aa({open:e,onClose:t,payload:r}){let{useRemover:o,configs:n}=r,{mutateAsync:i,isLoading:a}=o();function s(){return $(this,null,function*(){try{yield i(n),t()}catch(l){}})}return _jsxruntime.jsxs.call(void 0, kt,{open:e,onClose:t,children:[_jsxruntime.jsxs.call(void 0, Tt,{children:[_jsxruntime.jsx.call(void 0, It,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, Ct,{onClose:t})]}),_jsxruntime.jsx.call(void 0, St,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, Pt,{children:_jsxruntime.jsxs.call(void 0, wt,{children:[_jsxruntime.jsx.call(void 0, L,{onClick:()=>t(),sx:{minWidth:"100px"},children:"Manter registro"}),_jsxruntime.jsx.call(void 0, L,{color:"error",variant:"contained",isLoading:a,onClick:s,sx:{minWidth:"100px"},children:"Remover"})]})})]})}function sa({children:e}){return _jsxruntime.jsx.call(void 0, _core.DialogsProvider,{children:e})}var Jx={Root:kt,Provider:sa,AdicionarButton:ta,Header:Tt,Title:It,ActionClose:Ct,Content:St,Footer:Pt,Actions:wt,ActionCancelar:Ji,ActionSalvar:ea,ConfirmDelete:aa,Confirm:na},W= exports.DialogV2 =Jx;function Mt(e){let{isValid:t,message:r}=e,o=_material.useTheme.call(void 0, );return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:t?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:t?o.palette.success.main:"inherit",textDecoration:t?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var cp={senhaAtual:"",senhaNova:""},u0=we().shape({senhaAtual:fe().required("Informe a Senha Atual."),senhaNova:fe().required("Informe a Nova Senha.")});function er(e){let{isOpen:t,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:s,email:l}=e,{alterarSenha:u,isSubmitting:p}=_hooks.useCredentials.call(void 0, r),{setValidationErrors:f,validationProps:h}=_hooks.useValidations.call(void 0, ),{data:m,handleChange:y,setData:g,changeValue:S}=_hooks.useForm.call(void 0, cp),[v,P]=_react.useState.call(void 0, !1),[w,k]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{s&&S("senhaAtual",s)},[s]),_react.useEffect.call(void 0, ()=>{m.senhaNova&&P(_isStrongPassword2.default.call(void 0, m.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[m.senhaNova]);function R(){return $(this,null,function*(){f(null),k(null),u0.validate(m,{abortEarly:!1}).then(()=>$(this,null,function*(){var x;let{senhaAtual:F,senhaNova:N}=m;try{(yield u(F,N,l))&&(n&&n(),g(cp))}catch(b){if(i&&i(b),_axios.isAxiosError.call(void 0, b)){k((x=b.response)==null?void 0:x.data.message);return}k("Ocorreu um erro ao tentar alterar a senha")}})).catch(F=>{f(F)})})}function _(){return(m==null?void 0:m.senhaNova.length)>=8}function T(){if(m!=null&&m.senhaNova){let F=m==null?void 0:m.senhaNova.match(/[a-z]/g);return Array.isArray(F)&&F.length>0}return!1}function Y(){if(m!=null&&m.senhaNova){let F=m==null?void 0:m.senhaNova.match(/[A-Z]/g);return Array.isArray(F)&&F.length>0}return!1}function G(){if(m!=null&&m.senhaNova){let F=m==null?void 0:m.senhaNova.match(/\d/g);return Array.isArray(F)&&F.length>0}return!1}function K(){if(m!=null&&m.senhaNova){let F=m==null?void 0:m.senhaNova.match(/\W/g);return Array.isArray(F)&&F.length>0}return!1}return _jsxruntime.jsxs.call(void 0, W.Root,{open:t,onClose:F=>o(),maxWidth:"md",children:[_jsxruntime.jsxs.call(void 0, W.Header,{children:[_jsxruntime.jsx.call(void 0, W.Title,{children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, W.ActionClose,{onClose:o})]}),_jsxruntime.jsx.call(void 0, W.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, bt,c({name:"senhaAtual",label:"Senha Atual",value:(m==null?void 0:m.senhaAtual)||"",onChange:y},h("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, bt,c({name:"senhaNova",label:"Nova Senha",value:(m==null?void 0:m.senhaNova)||"",onChange:y},h("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{size:12,children:[_jsxruntime.jsx.call(void 0, Mt,{isValid:_(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:T(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:Y(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:G(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:K(),message:"A nova senha deve ter ao menos um caracter especial"})]}),w&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:w})})]})}),_jsxruntime.jsx.call(void 0, W.Footer,{children:_jsxruntime.jsxs.call(void 0, W.Actions,{children:[_jsxruntime.jsx.call(void 0, W.ActionCancelar,{onClick:()=>o()}),_jsxruntime.jsx.call(void 0, W.ActionSalvar,{label:"Alterar Senha",onClick:R,isLoading:p,disabled:!v})]})})]})}var x0=we().shape({email:fe().required("Informe o e-mail"),password:fe().required("Informe a senha")});function la(e){let{onLoginSuccess:t,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=e,[i,a]=_react.useState.call(void 0, ""),[s,l]=_react.useState.call(void 0, ""),[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, !1),[m,y]=_react.useState.call(void 0, !1),[g,S]=_react.useState.call(void 0, null),{login:v}=_hooks.useCredentials.call(void 0, n),{validationProps:P,setValidationErrors:w}=_hooks.useValidations.call(void 0, );function k(){return $(this,null,function*(){w(null),S(null),x0.validate({email:i,password:s},{abortEarly:!1}).then(()=>$(this,null,function*(){var R,_;p(!0);try{let T=yield v(i,s);T&&t(T)}catch(T){if(_axios.isAxiosError.call(void 0, T)){if(((R=T.response)==null?void 0:R.data.code)==="E_FIRST_ACCESS"){h(!0);return}S((_=T.response)==null?void 0:_.data.message)}r(T)}})).catch(R=>{w(R)}).finally(()=>{p(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:k,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:R=>a(R.target.value)},P("email"))),_jsxruntime.jsx.call(void 0, bt,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:s||"",onChange:R=>l(R.target.value),onKeyDown:R=>R.key==="Enter"&&k()},P("password"))),_jsxruntime.jsx.call(void 0, L,{fullWidth:!0,variant:"contained",onClick:k,isLoading:u,sx:{mt:1},children:"Entrar"})]}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>o("esqueci-senha"),variant:"text",disableRipple:!0,disableTouchRipple:!0,sx:{justifyContent:"flex-start",alignContent:"center",alignItems:"center",textAlign:"left",width:"120px",marginTop:.5,fontWeight:"400",":hover":{}},children:"Esqueci a senha"}),g&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:g}),m&&_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, L,{onClick:()=>o("otp-email"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Mail,{}),children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>o("otp-whatsapp"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.WhatsApp,{}),children:"Entrar com senha tempor\xE1ria"})]}),_jsxruntime.jsx.call(void 0, er,{senhaAtual:s,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>$(this,null,function*(){return h(!1)}),onSuccess:()=>{h(!1),y(!0),l("")},credentialsConfig:n})]})}var S0=we().shape({email:fe().required("Informe o e-mail")});function ca(e){let{onLoginClick:t,credentialsConfig:r}=e,[o,n]=_react.useState.call(void 0, ""),[i,a]=_react.useState.call(void 0, !1),[s,l]=_react.useState.call(void 0, !1),[u,p]=_react.useState.call(void 0, null),{recuperarSenha:f}=_hooks.useCredentials.call(void 0, r),{validationProps:h,setValidationErrors:m}=_hooks.useValidations.call(void 0, );function y(){return $(this,null,function*(){m(null),S0.validate({email:o},{abortEarly:!1}).then(()=>$(this,null,function*(){var g;try{a(!0),yield f(o),l(!0)}catch(S){p((g=S.response)==null?void 0:g.data.message)}finally{a(!1)}})).catch(g=>{m(g)})})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",placeholder:"Informe o e-mail utilizado para acessar o sistema",autoFocus:!0,value:o||"",onChange:g=>n(g.target.value)},h("email"))),_jsxruntime.jsx.call(void 0, L,{fullWidth:!0,variant:"contained",onClick:y,isLoading:i,children:"Recuperar minha senha"}),_jsxruntime.jsx.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, L,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Voltar para o Login"})}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"success",action:_jsxruntime.jsx.call(void 0, L,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function pa(e){var p;let{loginData:t,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=e,[i,a]=_react.useState.call(void 0, ""),{selecionarLicenca:s,isSubmitting:l}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{if(Array.isArray(t==null?void 0:t.empresas)){let f=t==null?void 0:t.empresas[0];a(f==null?void 0:f.uuid)}},[t]);function u(){return $(this,null,function*(){try{let f=yield s(t==null?void 0:t.token,i);f?n(f):o("Nenhuma token definida")}catch(f){o(f)}})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",sx:{minWidth:"290px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{label:"Licen\xE7as",margin:"normal",select:!0,autoFocus:!0,value:i,onChange:f=>{a(f.target.value)},children:(p=t==null?void 0:t.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, L,{fullWidth:!0,variant:"contained",onClick:u,isLoading:l,sx:{mt:1},children:"Confirmar"})]})}var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);var dp=e=>{let t=e.replace(/\D/g,"");return t.length<=2?`(${t}`:t.length<=7?`(${t.slice(0,2)}) ${t.slice(2)}`:t.length<=11?`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7,11)}`};function Fr(e){let u=e,{value:t,onChange:r}=u,o=C(u,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=t!==void 0,s=_react.useMemo.call(void 0, ()=>a?dp(t||""):n,[t,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:s,onChange:p=>{let f=dp(p.target.value);if(a||i(f),r){let h=d(c({},p),{target:d(c({},p.target),{value:f})});r(h)}},inputProps:{maxLength:15}},o))}function Rr({length:e=6,value:t,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,s)=>{var h;let l="ABCDEF0123456789",u=s.toUpperCase().split("").find(m=>l.includes(m))||"",p=t.split("");p[a]=u;let f=p.join("");r(f),u&&a<e-1&&((h=o.current[a+1])==null||h.focus())},i=(a,s)=>{var l;s.key==="Backspace"&&!t[a]&&a>0&&((l=o.current[a-1])==null||l.focus())};return _jsxruntime.jsx.call(void 0, _material.Box,{display:"flex",gap:1,children:Array.from({length:e}).map((a,s)=>_jsxruntime.jsx.call(void 0, _material.TextField,{autoFocus:s===0,inputRef:l=>o.current[s]=l,slotProps:{htmlInput:{maxLength:1,style:{textAlign:"center",fontSize:"24px",width:"24px",height:"36px"}}},value:t[s]||"",onChange:l=>n(s,l.target.value),onKeyDown:l=>i(s,l)},s))})}function da(e){let{open:t,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=e,[a,s]=_react.useState.call(void 0, ""),[l,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarOtpVerificationCode:h}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{l&&setTimeout(()=>{u(!1)},3e3)},[l]);function m(){return $(this,null,function*(){try{f(!0);let y=yield h({channel:o.channel,target:o.target,code:a});y&&n(y),r()}catch(y){u(y.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, W.Root,{open:t,onClose:y=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, W.Header,{children:[_jsxruntime.jsx.call(void 0, W.Title,{children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, W.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, W.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, Rr,{value:a,onChange:y=>{s(y)}}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:l})]})}),_jsxruntime.jsx.call(void 0, W.Footer,{children:_jsxruntime.jsxs.call(void 0, W.Actions,{children:[_jsxruntime.jsx.call(void 0, W.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, W.ActionSalvar,{label:"Entrar",onClick:m,isLoading:p,disabled:a.length!=6})]})})]})}var Z0=we().shape({contato:fe().when("$tipo",([e],t)=>e==="otp-email"?t.email("E-mail inv\xE1lido").required("Informe o e-mail"):t.matches(/^\+?[1-9]\d{7,14}$/,"N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp"))});function fn(e){let{tipo:t,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=e,[i,a]=_react.useState.call(void 0, !1),[s,l]=_react.useState.call(void 0, !1),{gerarOtpVerificationCode:u}=_hooks.useCredentials.call(void 0, r),{handleChange:p,changeValue:f,data:h,validate:m,validationErrors:y}=_hooks.useForm.call(void 0, {contato:""},Z0),[g,S]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:P=>$(this,null,function*(){P.preventDefault(),m(w=>$(this,null,function*(){try{l(!1),a(!0);let k=yield u({channel:t==="otp-email"?"email":"whatsapp",target:w.contato});S(!0)}catch(k){l(k.response.data.message)}finally{a(!1)}}),{context:{tipo:t}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",children:t==="otp-email"?" Informe seu e-mail para receber um c\xF3digo de acesso":"Informe seu n\xFAmero de WhatsApp para receber um c\xF3digo de acesso"}),t==="otp-email"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:h.contato||"",onChange:p,fullWidth:!0},y("contato"))),t==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Fr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:h.contato||"",onChange:P=>{f("contato",P.target.value.replace(/[^\d+]/g,""))},fullWidth:!0},y("contato"))),_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, L,{isLoading:i,type:"submit",variant:"contained",color:"primary",children:"Enviar c\xF3digo"}),_jsxruntime.jsxs.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:[_jsxruntime.jsx.call(void 0, L,{onClick:n,variant:"text",sx:{fontWeight:"400",":hover":{color:P=>P.palette.primary.dark}},children:"Voltar para o Login"}),_jsxruntime.jsx.call(void 0, "a",{href:"https://datacsistemashelp.zendesk.com/hc/pt-br/articles/36489079108756-Login-OTP-via-WhatsApp",target:"_blank",rel:"noopener noreferrer",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{children:_jsxruntime.jsx.call(void 0, _iconsmaterial.HelpOutline,{color:"primary"})})})]})]}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, da,{onLoginSuccess:o,open:g,onClose:P=>$(this,null,function*(){S(!1)}),payload:{target:h.contato,channel:t==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var nv={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 ga(e){let{credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=e,[a,s]=_react.useState.call(void 0, ),{selecionarLicenca:l,isAuthenticated:u}=_hooks.useCredentials.call(void 0, t),[p,f]=_react.useState.call(void 0, "login"),h=_material.useTheme.call(void 0, ),m=_material.useMediaQuery.call(void 0, h.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{u&&n&&n()},[u]);function y(w){return $(this,null,function*(){try{if(Array.isArray(w==null?void 0:w.empresas)){if((w==null?void 0:w.empresas.length)===1){let k=yield l(w==null?void 0:w.token,w.empresas[0].uuid);k&&r(k);return}f("licensa"),s(w);return}r(w)}catch(k){o(k)}})}function g(w){return $(this,null,function*(){o(w)})}function S(w){f(w)}function v(){f("login")}let P=nv[p];return _jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, Gi,{label:i,subTitle:P}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[p==="login"&&_jsxruntime.jsx.call(void 0, la,{credentialsConfig:t,onLoginSuccess:y,onLoginFailed:g,onOptionsClick:S}),p==="licensa"&&_jsxruntime.jsx.call(void 0, pa,{loginData:a,credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o}),p==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, ca,{onLoginClick:v,credentialsConfig:t}),p==="otp-email"&&_jsxruntime.jsx.call(void 0, fn,{onLoginClick:v,onLoginSuccess:y,tipo:"otp-email",credentialsConfig:t}),p==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, fn,{onLoginClick:v,onLoginSuccess:y,tipo:"otp-whatsapp",credentialsConfig:t})]})]})}function ya(){let e=_material.useTheme.call(void 0, ),t=_material.useMediaQuery.call(void 0, e.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:t?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{backgroundImage:"url(https://datac-site-assets.s3.sa-east-1.amazonaws.com/background_login.png)",backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat"},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"bold",color:"white",fontFamily:"Montserrat",letterSpacing:0,children:"Inova\xE7\xE3o e tecnologia"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",color:"white",fontSize:"2.5rem",lineHeight:"3rem",letterSpacing:0,fontWeight:"bold",fontFamily:"Montserrat",children:"para empresas de resultado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"span",fontSize:"1.25rem",lineHeight:"1.25rem",fontWeight:"300",letterSpacing:0,marginTop:"1.5rem",marginBottom:"3rem",fontFamily:"Montserrat",sx:{color:"rgb(68, 167, 255)"},children:"Mais de 30 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, L,{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 fv({children:e}){let t=_material.useTheme.call(void 0, ),r=_material.useMediaQuery.call(void 0, t.breakpoints.up("md"));return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"section",width:r?"46%":"100%",minWidth:"420px",maxWidth:r?"614px":"initial",justifyContent:"center",alignItems:"center",padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",maxWidth:"28rem",margin:"auto 0",children: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:o=>o.palette.grey[500]},children:"Data C Sistemas"})]})]})}function Cp(e){let{banner:t,loginSection:r}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[t?_jsxruntime.jsx.call(void 0, Wi,{children:t}):_jsxruntime.jsx.call(void 0, ya,{}),_jsxruntime.jsx.call(void 0, fv,{children:r||_jsxruntime.jsx.call(void 0, ga,c({},e))})]})}function va(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},e))}function ba({children:e}){return _jsxruntime.jsx.call(void 0, hi.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:t=>t.zIndex.drawer+1,borderBottom:t=>`1px solid ${t.palette.grey[300]}`},children:_jsxruntime.jsx.call(void 0, _material.Toolbar,{children:_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",children:e})})})})}function Ca(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M21 5v14"})]})}))}function Sa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"}),_jsxruntime.jsx.call(void 0, "path",{d:"m4.9 4.9 14.2 14.2"})]})}))}function Pa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Or(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function Ia(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9"})})}))}function Ea(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17-5-5 5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m18 17-5-5 5-5"})]})}))}function Ra(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"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 Da(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Oa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 _r(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function La(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 zv=e=>({transition:e.transitions.create(["transform"],{duration:500})}),Wv=_styles.styled.call(void 0, _r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>c(c(c({},zv(e)),t&&{transform:"rotate(-180deg)"}),!t&&{transform:"rotate(0)"}));function _a(e){let{open:t}=e;return _jsxruntime.jsx.call(void 0, Wv,{fontSize:"small",open:t})}function $a(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 6h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 12h10"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 18h4"})]})}))}function Na(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 20a6 6 0 0 0-12 0"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"4"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"})]})}))}function Va(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 za(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M7.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 Wa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 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 Ga(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Ha(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"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 qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Ya(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Ka(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m6 17 5-5-5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m13 17 5-5-5-5"})]})}))}function Ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 ts(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"11",cy:"11",r:"8"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 21-4.3-4.3"})]})}))}function rs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2 7h20"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7"})]})}))}function os(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 2h1a4 4 0 0 1 4 4v1"})]})}))}function ns(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 as(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 ss(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M12 17V3"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 11 6 6 6-6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M19 21H5"})]})}))}function ls(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"22",y2:"22"}),_jsxruntime.jsx.call(void 0, "line",{x1:"6",x2:"6",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"10",x2:"10",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"14",x2:"14",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"18",x2:"18",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "polygon",{points:"12 2 20 7 4 7"})]})}))}function cs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"})]})}))}function us(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"16",cy:"16",r:"6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14v2l1 1"})]})}))}function ps(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M13.22 2.416a2 2 0 0 0-2.511.057l-7 5.999A2 2 0 0 0 3 10v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7.354"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 6h6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M18 3v6"})]})}))}function fs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"9",y2:"9"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"15",y2:"15"}),_jsxruntime.jsx.call(void 0, "line",{x1:"9",x2:"9",y1:"9",y2:"21"}),_jsxruntime.jsx.call(void 0, "line",{x1:"15",x2:"15",y1:"9",y2:"21"})]})}))}function ms(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m15 18-6-6 6-6"})})}))}function hs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}))}function ys(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M8 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 2v4"}),_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 10h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 18h.01"})]})}))}function xs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})}))}var Hb={Circle:Ia,Dashboard:Da,Expandable:_a,Down:_r,Negociacao:Ka,Cadastro:Pa,Clientes:Ea,Filter:$a,Search:ts,ChevronDown:Or,Kanban:Ga,Erease:La,BarCode:Ca,TextCursor:os,OpenPanel:Qa,ClosePanel:Ma,Menu:Ya,Configs:Ra,Users:ns,Password:Ja,Logout:Ha,History:Wa,Help:za,Video:as,Docs:Oa,Block:Sa,Maps:qa,MapPin:ja,HandShake:Va,Store:rs,Download:ss,ContaBancaria:ls,GrupoLancamento:cs,HistoricoPadrao:us,Imovel:ps,Lancamento:fs,ChevronLeft:ms,ChevronRight:hs,Calendar:ys,Save:xs,Profile:Na},xe= exports.Icon =Hb;function vs(e){let t=C(e,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,d(c({},t),{children:_jsxruntime.jsx.call(void 0, xe.Menu,{})}))}var jb={Root:ba,Content:va,ToggleMenu:vs},qb= exports.Header =jb;var oC=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:e})=>({height:"32px",cursor:"pointer",gap:e.spacing(2),transition:"0.2s ease-in-out",padding:`${e.spacing(.25)} ${e.spacing(2)} ${e.spacing(.25)} ${e.spacing(2)}`,"&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{fontSize:"0.805rem",color:e.palette.text.primary},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function bs({label:e,icon:t,visible:r=!0,children:o,selected:n=!1,onClick:i,link:a}){if(!r)return null;let[s,l]=_react.useState.call(void 0, !1),u=!!o;function p(){if(u){l(h=>!h);return}i&&a&&i(a)}function f(h){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):h||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, oC,{selected:n,disableGutters:!0,onClick:h=>{h.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:f(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e}),u&&_jsxruntime.jsx.call(void 0, xe.Expandable,{open:s})]})}),u&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:s,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 mC=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:e})=>({cursor:"pointer",padding:`${e.spacing(1)} ${e.spacing(0)} ${e.spacing(.25)} ${e.spacing(0)}`,minHeight:"32px",flexDirection:"column",justifyContent:"center",alignItem:"center",alignContent:"center","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiTypography-root":{fontSize:"0.805rem",color:e.palette.text.primary},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function Pp(e,t){return hi.default.Children.map(e,r=>{var n;if(!hi.default.isValidElement(r))return r;let o=(n=r.props)!=null&&n.children?Pp(r.props.children,t):null;return hi.default.cloneElement(r,{open:t,children:o})})}function ws(e){let{icon:t,label:r,link:o,id:n,selected:i=!1,children:a,onClick:s}=e,[l,u]=_react.useState.call(void 0, null);function p(){s&&o&&s(o)}function f(g,S){u({element:g.currentTarget,id:S})}function h(){u(null)}let m=Pp(a,!0);function y(g){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):g||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, mC,{selected:i,onMouseEnter:g=>{o||f(g,n)},onMouseLeave:()=>{o||h()},disableGutters:!0,onClick:g=>{g.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:y(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:_lodash2.default.truncate(r,{length:12})}),(l==null?void 0:l.id)===n&&_jsxruntime.jsx.call(void 0, _material.Popper,{sx:{zIndex:999999},anchorEl:l==null?void 0:l.element,open:!!(l!=null&&l.element),placement:"right-start",children:_jsxruntime.jsx.call(void 0, Lt,{elevation:1,sx:{position:"relative","&::before":{content:'""',position:"absolute",left:-8,width:"1.2rem",height:"1.2rem",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1waW4tc2FmZXR5LW9wZW4iPjxwYXRoIGQ9Ik0yMC44IDMuMmMtMS42LTEuNi00LjEtMS42LTUuNyAwTDEyLjMgNlMxNSA5IDE4IDZjLTMgMyAwIDUuNyAwIDUuN2wyLjgtMi44YzEuNi0xLjYgMS42LTQuMiAwLTUuNyIvPjxwYXRoIGQ9Im03LjEgMjEuMSAxMC4zLTEwLjIiLz48Y2lyY2xlIGN4PSI1IiBjeT0iMTkiIHI9IjMiLz48cGF0aCBkPSJNOSAycy00LjEgOS41LTYuNzU1IDE1LjgiLz48L3N2Zz4=")',backgroundSize:"contain",backgroundRepeat:"no-repeat",transition:"transform 0.2s ease-in-out"},p:1,width:g=>{var S;return(S=g.mixins.menu)==null?void 0:S.width}},children:m})})]})})}function Ss(e){let n=e,{open:t,isFirstLevel:r=!1}=n,o=C(n,["open","isFirstLevel"]);return t?_jsxruntime.jsx.call(void 0, bs,c({},o)):_jsxruntime.jsx.call(void 0, ws,c({},o))}function bC(e,t){if(!e)throw new Error(t)}var kp=_react.createContext.call(void 0, null);function Ip(e){let{children:t,storageKey:r="mio:menu"}=e,[o,n]=_react.useState.call(void 0, ()=>{let a=window.localStorage.getItem(r)||"true";return a?JSON.parse(a):!0});function i(){n(a=>!a)}return _react.useEffect.call(void 0, ()=>{window.localStorage.setItem(r,JSON.stringify(o))},[o,r]),_jsxruntime.jsx.call(void 0, kp.Provider,{value:{isOpen:o,toggleMenu:i},children:t})}function CC(){let e=_react.useContext.call(void 0, kp);return bC(e,"cannot find MenuContext provider"),e}var Ep=e=>{var t,r;return{width:((r=(t=e==null?void 0:e.mixins)==null?void 0:t.menu)==null?void 0:r.width)||64,background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}},Ap=e=>({background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:0,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(12)} + 1px)`}}),TC=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{var r,o;return c(c({width:((o=(r=e==null?void 0:e.mixins)==null?void 0:r.menu)==null?void 0:o.width)||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},t&&d(c({},Ep(e)),{"& .MuiDrawer-paper":Ep(e)})),!t&&d(c({},Ap(e)),{"& .MuiDrawer-paper":Ap(e)}))}),kC=_styles.styled.call(void 0, "div")(({theme:e})=>e.mixins.toolbar);function Rp(e,t,r,o){return hi.default.Children.map(e,n=>{var f,h;if(!hi.default.isValidElement(n))return n;let i=((f=n.props.link)==null?void 0:f.split("/").filter(Boolean))||[],a=n.props.link||"",u="/"+((t==null?void 0:t.split("/").filter(Boolean))||[]).slice(0,i.length).join("/"),p=(h=n.props)!=null&&h.children?Rp(n.props.children,t,r,o):null;return hi.default.cloneElement(n,{open:r,selected:u===a,onClick:m=>{o&&o(m)},children:p})})}function Ts(e){let{open:t,toggleMenu:r,children:o,onClickItem:n}=e,a=new URL(window.location.href).pathname,s=Rp(o,a,t,n);return _jsxruntime.jsxs.call(void 0, TC,{variant:"permanent",open:t,onClose:r,children:[_jsxruntime.jsx.call(void 0, kC,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:s})]})}function EC(e){return e.map(t=>t.visible?_jsxruntime.jsx.call(void 0, Dp.Item,{link:t.link,id:t.id,label:t.label,icon:t.icon,children:t.items&&EC(t.items)},t.id):null)}var Dp={Root:Ts,Item:Ss,Provider:Ip};var AC=Dp;function Op(e){let{links:t}=e;function r(o,n){location.pathname}return _jsxruntime.jsx.call(void 0, _material.Breadcrumbs,{sx:{height:"30px",display:"flex",textWrap:"nowrap"},children:t.map((o,n)=>t.length===1||t.length===n+1?_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{fontSize:"10pt",fontWeight:"bolder"},variant:"subtitle1",color:"black",children:o.label},o.link):_jsxruntime.jsx.call(void 0, _material.Button,{variant:"text",children:o.label},o.link))})}function Is(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Stack,{pl:1,pr:1,pt:.5,pb:.5,direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",spacing:1,children:t})}var LC={Root:Is},_C= exports.ContentTitle =LC;function Es({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{pt:1,pl:1,pr:1,pb:1,direction:"row",spacing:1,justifyContent:"flex-end",sx:{backgroundColor:t=>t.palette.background.paper,borderTop:t=>`1px solid ${t.palette.border}`},children:e})}var VC=process.env.NODE_ENV==="production",As="Invariant failed";function Ms(e,t){if(!e){if(VC)throw new Error(As);var r=typeof t=="function"?t():t,o=r?"".concat(As,": ").concat(r):As;throw new Error(o)}}var _uuid = require('uuid');function HC(e,t){var r,o;switch(t.type){case"loadFiltersFromStorage":return d(c({},e),{filterValues:(r=t==null?void 0:t.storageValues)==null?void 0:r.filterValues,appliedValues:(o=t==null?void 0:t.storageValues)==null?void 0:o.appliedValues});case"updateFilterValues":return d(c({},e),{filterValues:t.filterValues});case"updateFilterValue":return d(c({},e),{filterValues:d(c({},e.filterValues),{[t.payload.name]:t.payload.value})});case"updateAppliedValues":let n=e.filterValues,i=[];if(n&&Object.entries(n).length>0){let[a]=Object.keys(n);i=[{[a]:n[a]}]}return t!=null&&t.storagePath&&localStorage.setItem(t.storagePath,JSON.stringify({appliedValues:n,filterValuesAsArray:i,filterValues:e.filterValues})),d(c({},e),{appliedValues:n,filterValuesAsArray:i,isOpen:!1,searchId:_uuid.v4.call(void 0, )});case"updateIsOpen":return d(c({},e),{isOpen:t.isOpen,target:t.target});case"updateContainer":return d(c({},e),{container:t.container});case"toggleIsOpen":return d(c({},e),{isOpen:!e.isOpen});case"deleteAppliedValue":return delete e.appliedValues[t.filterName],c({},e);case"deleteAllAppliedValues":return e.appliedValues={},e.filterValues=t.filterValues,t.storagePath&&localStorage.removeItem(t.storagePath),c({},e)}}var Np=hi.default.createContext({}),Vp= exports.FilterApiContext =hi.default.createContext({});function zp(e){let{children:t,filterValues:r={},storagePath:o}=e,[n,i]=_react.useReducer.call(void 0, HC,{filterValues:{}});_react.useEffect.call(void 0, ()=>{i({type:"updateFilterValues",filterValues:r}),i({type:"updateAppliedValues",storagePath:o})},[r]),_react.useEffect.call(void 0, ()=>{if(o){let s=localStorage.getItem(o);if(s&&s!=="undefined"){let l=JSON.parse(s);i({type:"loadFiltersFromStorage",storageValues:l})}}},[]);let a=_react.useMemo.call(void 0, ()=>{function s(v){i({type:"updateIsOpen",isOpen:!0,target:(v==null?void 0:v.target)||void 0})}function l(){i({type:"updateIsOpen",isOpen:!1,target:void 0})}function u(){i({type:"toggleIsOpen"})}function p(v){let P=v.target.type,w=v.target.name,k;switch(P){case"text":k=v.target.value;break;case"checkbox":k=v.target.checked;break;default:k=v.target.value}i({type:"updateFilterValue",payload:{name:w,value:k}})}function f(v,P){i({type:"updateFilterValue",payload:{name:v,value:P}})}function h(v){i({type:"updateFilterValues",filterValues:v})}function m(){i({type:"updateAppliedValues",storagePath:o})}function y(v){i({type:"deleteAppliedValue",filterName:v})}function g(){i({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),i({type:"updateAppliedValues",storagePath:o})}function S(v){i({type:"updateContainer",container:v})}return{setContainer:S,openFilter:s,closeFilter:l,onChangeFilterValue:p,changeFilterValue:f,changeFilterValues:h,applyFilterValues:m,deleteFilterValue:y,deleteAllFilterValues:g,toggleFilter:u}},[r]);return _jsxruntime.jsx.call(void 0, Vp.Provider,{value:a,children:_jsxruntime.jsx.call(void 0, Np.Provider,{value:n,children:t})})}function ur(){let e=_react.useContext.call(void 0, Np);return Ms(e,"cannot find FilterDataContext provider"),e}function Me(){let e=_react.useContext.call(void 0, Vp);return Ms(e,"cannot find FilterApiContextContext provider"),e}function Fs(){let{openFilter:e}=Me();return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:t=>{e(t)},children:_jsxruntime.jsx.call(void 0, xe.Filter,{})})}function Rs(e){let{children:t}=e,{isOpen:r,container:o}=ur(),{closeFilter:n}=Me();return _jsxruntime.jsx.call(void 0, _material.Popover,{elevation:0,open:r,onClose:n,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{"& .MuiPopover-paper":{width:"360px",border:a=>`1px solid ${a.palette.border}`,borderRadius:"8px",mt:.5,pt:2}},children:t})}function Ds({children:e}){return _jsxruntime.jsx.call(void 0, _material.Box,{mt:1,ml:1,mr:1,mb:2,children:e})}function Bs(){let{applyFilterValues:e}=Me();return _jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{e()},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.855rem"}})," ",_jsxruntime.jsx.call(void 0, "span",{children:"Pesquisar"})]})})}function Ls(e){let n=e,{children:t,disabledDelete:r=!1}=n,o=C(n,["children","disabledDelete"]);return _jsxruntime.jsx.call(void 0, _material.Chip,c({},o))}function Ns({children:e}){let{appliedValues:t}=ur(),{applyFilterValues:r,deleteFilterValue:o}=Me(),{isOpen:n,open:i,close:a,anchorEl:s,data:l}=_hooks.usePopover.call(void 0, ),u=hi.default.Children.map(e,p=>!hi.default.isValidElement(p)||!(t&&p.props.name in t)?null:hi.default.cloneElement(p,{onDelete:p.props.disabledDelete?void 0:h=>{o&&o(p.props.name||""),a()},onClick:h=>{i(h,{target:h.currentTarget,name:p.props.name,disabledDelete:p.props.disabledDelete||!1})}}));return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,flex:1,justifyContent:"flex-end",children:[u,_jsxruntime.jsxs.call(void 0, _material.Popover,{open:!!n||!1,onClose:()=>a(),anchorEl:s,elevation:0,sx:{"& .MuiPopover-paper":{minWidth:"300px",border:p=>`1px solid ${p.palette.border}`,borderRadius:"8px",mt:1}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{pt:2,pl:1,pr:1,pb:2,children:hi.default.Children.map(e,p=>hi.default.isValidElement(p)&&p.props.name===(l==null?void 0:l.name)?p.props.children:null)}),_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{backgroundColor:p=>p.palette.background.paper,borderTop:p=>`1px solid ${p.palette.border}`},p:1,direction:"row",justifyContent:"flex-end",spacing:1,children:[!(l!=null&&l.disabledDelete)&&_jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{o&&o((l==null?void 0:l.name)||""),a()},children:"Apagar"}),_jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{a(),r()},children:"Aplicar"})]})]})]})}function Vs({children:e}){let t=_react.useRef.call(void 0, null),{setContainer:r}=Me(),{container:o}=ur();return _react.useEffect.call(void 0, ()=>{let n=()=>{t.current&&r(t.current)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[o]),_jsxruntime.jsxs.call(void 0, _material.Stack,{ref:t,direction:"row",alignContent:"center",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.95rem"}}),_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center",children:e})]})}function zs(){let{deleteAllFilterValues:e}=Me();return _jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{e&&e()},children:"Resetar"})}function Ws(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{border:r=>`1px solid ${r.palette.border}`,borderRadius:"90px",flexGrow:1,pl:1,pr:1},children:t})}function Gs(e){let i=e,{onChange:t}=i,r=C(i,["onChange"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let s=a.target.value;o(s)}return _jsxruntime.jsx.call(void 0, _material.InputBase,c({onChange:n},r))}var m1={Root:Ws,SearchTextField:Gs,Container:Vs,AdvancedContainer:Rs,AdvancedContent:Ds,AdvancedActionsContainer:Es,AdvancedButton:Fs,Provider:zp,ApplyButton:Bs,ResetButton:zs,Chips:Ns,Chip:Ls},g1= exports.Filter =m1;var _xdatagrid = require('@mui/x-data-grid');function Hs(r){var o=r,{onClick:e}=o,t=C(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{}),label:"Transport",color:"primary",onClick:()=>e&&e("transport")},t))}var Yp=_react.createContext.call(void 0, {});function js({children:e}){let[t,r]=_react.useState.call(void 0, []),[o,n]=_react.useState.call(void 0, !1),[i,a]=_react.useState.call(void 0, !1),s=_xdatagrid.useGridApiRef.call(void 0, );function l(){r([]),n(!0)}return _jsxruntime.jsx.call(void 0, Yp.Provider,{value:{apiRef:s,rowsSelectedId:t,clearCallback:o,breakpoint:i,setClearCallback:n,setBreakpoint:a,setRowsSelectedId:r,clearRowsSelectedId:l},children:e})}function We(){return _react.useContext.call(void 0, Yp)}function qs(e){let{countTitle:t,gender:r}=e,{rowsSelectedId:o}=We(),n=o==null?void 0:o.length,i=_react.useMemo.call(void 0, ()=>{if(!t)return"";let a=r==="feminino"?"selecionada":"selecionado",s=r==="feminino"?"selecionadas":"selecionados",l=r==="feminino"?"Nenhuma":"Nenhum";return n===1?`${t} ${a}`:n&&n>1?`${t.split(" ").map(u=>`${u}s`).join(" ")} ${s}`:`${l} ${t} ${a}`},[n]);return _jsxruntime.jsx.call(void 0, _material.Stack,{children:_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:[n&&n>0?n:""," ",i]})})}function Ys(r){var o=r,{onClick:e}=o,t=C(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{}),label:"Delete",color:"primary",onClick:()=>{e&&e("delete")}},t))}function Hr(e){let s=e,{isLoading:t,startIcon:r,children:o,title:n}=s,i=C(s,["isLoading","startIcon","children","title"]),{breakpoint:a}=We();return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:a?_jsxruntime.jsx.call(void 0, _material.Tooltip,{title:o,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({},i),{color:"primary",disabled:t?!0:i.disabled,children:[r,t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"25%",bottom:"25%",left:"25%",right:"25%",transform:"translate(-50%, -50%)"}})]}))}):_jsxruntime.jsx.call(void 0, _material.Button,d(c({startIcon:r,disabled:t?!0:i.disabled,sx:{position:"relative",height:"26px",minWidth:"70px",padding:"7px 8px 8px",border:"1px solid rgba(223, 226, 231, 0.8)",borderRadius:"6px",display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:1,transition:"width 0.2s ease"}},i),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{transition:"opacity 0.2s ease, width 0.2s ease",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"22%",left:"44%",transform:"translate(-50%, -50%)"}}),o]})}))})}var L1=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function Ks(){let{apiRef:e}=We(),t=r=>{e!=null&&e.current&&e.current.exportDataAsCsv(r)};return _jsxruntime.jsx.call(void 0, Hr,{startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.FileDownload,{}),onClick:()=>t({getRowsToExport:L1}),children:"Exportar CSV"})}function Zs(r){var o=r,{onClick:e}=o,t=C(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{}),label:"Edit",color:"primary",onClick:()=>e&&e("edit")},t))}function Qs(e){let{children:t,onClick:r}=e;return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_react.Children.map(t,o=>{if(_react.isValidElement.call(void 0, o))return _react.cloneElement.call(void 0, o,{onClick:r})})})}function Xs(e){let n=e,{event:t,onClick:r}=n,o=C(n,["event","onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({color:"primary",onClick:()=>{r&&r(t)}},o))}function Js(e){let{onChangePageSize:t,onChangePage:r,pagination:o,rowsPerPageOptions:n=[15,50,100,200]}=e,{page:i,pageSize:a=15,totalRecords:s}=o||{},l=_react.useMemo.call(void 0, ()=>o!=null&&o.lastPage?o.lastPage:(s||0)<a?1:Math.max(Math.ceil((s||0)/a)),[s,a]),u=_react.useMemo.call(void 0, ()=>{if((s||0)<a)return`Exibindo ${_hooks.pluralizar.call(void 0, s||0,"registro","registros",!0)}`;let f=a;if(i===l){let h=(s||0)%a;f=h===0?a:h}return`Exibindo ${_hooks.pluralizar.call(void 0, f||0,"registro","registros",!0)} de ${s}`},[o,l]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{width:"100%",direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:u}),!0&&_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"78px",fontSize:"8pt"},size:"small",value:a||0,select:!0,onChange:f=>{t&&t(parseInt(f.target.value))},children:n.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f,children:f},f))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:l||0,showFirstButton:!0,showLastButton:!0,onChange:(f,h)=>{r&&r(h)},page:i||0,color:"primary"})]})]})}function el({children:e,breakpoints:t}){let{setBreakpoint:r}=We(),o=_material.useTheme.call(void 0, ),n=_material.useMediaQuery.call(void 0, o.breakpoints.down(t||"md"));return _react.useEffect.call(void 0, ()=>{r(n)},[n]),_jsxruntime.jsx.call(void 0, _material.Stack,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:1,marginLeft:"auto",flexGrow:1,children:e})}function tl({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{component:_material.Paper,elevation:0,gap:1.5,flexDirection:"row",justifyContent:"space-between",alignItems:"center",p:1,borderRadius:"8px 8px 0 0",sx:{width:"100%"},children:e})}function rl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1.5},e))}function ol(e){return _jsxruntime.jsx.call(void 0, _material.TableFooter,d(c({},e),{sx:{height:"54px",paddingX:"12px",gap:"12px",display:"flex",alignItems:"center",backgroundColor:"white",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",borderTop:"1px solid #edf2f9"}}))}var _locales = require('@mui/x-data-grid/locales');function il(){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/empty-data.svg",alt:"Imagem de notifica\xE7\xE3o",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Nenhum registro encontrado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",whiteSpace:"normal",children:"Tente outra pesquisa ou adicione um novo registro."})]})]})}function sl({errorMessage:e}){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/error.svg",alt:"Imagem de erro",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{gap:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Ops! Algo deu errado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",children:e})]})]})}var mw=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function ll(e){let R=e,{error:t,isLoading:r,isFetching:o,data:n,columns:i,controlledRowsSelectedId:a,onClearRowsSelectedId:s,onRowSelectionChange:l,onCellKeyDown:u,onRowDoubleClick:p,stackProps:f}=R,h=C(R,["error","isLoading","isFetching","data","columns","controlledRowsSelectedId","onClearRowsSelectedId","onRowSelectionChange","onCellKeyDown","onRowDoubleClick","stackProps"]),{rowsSelectedId:m,setRowsSelectedId:y,clearCallback:g,setClearCallback:S,apiRef:v}=We(),P=_react.useMemo.call(void 0, ()=>_=>_.map(T=>T.headerName==="A\xE7\xF5es"?d(c({},T),{minWidth:T.minWidth||80,maxWidth:T.maxWidth||T.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}):d(c({},T),{flex:T.flex||1,minWidth:T.minWidth||100,headerClassName:T!=null&&T.enableStickyColumns?"sticky-header":"",cellClassName:T!=null&&T.enableStickyColumns?"sticky-cell":""})),[i]);_react.useEffect.call(void 0, ()=>{a&&y(a)},[a]),_react.useEffect.call(void 0, ()=>{g&&(s&&s([]),S(!1))},[g]);function w(_,T,Y){switch(T.ctrlKey&&T.code==="KeyE"?"ctrl+e":T.code){case"Enter":T.preventDefault(),u&&u("edit",_.id);break;case"F3":T.preventDefault(),u&&u("edit",_.id);break;case"Delete":T.preventDefault(),u&&u("delete",_.id);break;case"ctrl+e":T.preventDefault(),(F=>{v!=null&&v.current&&v.current.exportDataAsCsv(F)})({getRowsToExport:mw});break;default:break}}function k(_,T,Y){p&&p("edit",_.id)}return _jsxruntime.jsxs.call(void 0, _material.Stack,d(c({height:"100%",minHeight:"500px",position:"relative"},f),{children:[!r&&o&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{sx:{position:"absolute",top:0,right:0,left:0,zIndex:999,height:"3px"}}),_jsxruntime.jsx.call(void 0, _xdatagrid.DataGrid,c({apiRef:v,rows:n,columns:P(i),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:k,onCellKeyDown:w,disableRowSelectionOnClick:!0,rowSelectionModel:m,onRowSelectionModelChange:(_,T)=>{l&&l(_,T),!a&&y(_)},slots:{booleanCellFalseIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"error",sx:{fontSize:"10pt"}}),booleanCellTrueIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"success",sx:{fontSize:"10pt"}}),noRowsOverlay:()=>!r&&t?_jsxruntime.jsx.call(void 0, sl,{errorMessage:t}):_jsxruntime.jsx.call(void 0, il,{})},slotProps:{loadingOverlay:{variant:"skeleton",noRowsVariant:"skeleton"}},disableColumnFilter:!0,localeText:_locales.ptBR.components.MuiDataGrid.defaultProps.localeText,sx:{border:"none",borderRadius:0,"--DataGrid-rowBorderColor":"#edf2f9","--DataGrid-containerBackground":"#f4f6fa",".MuiDataGrid-overlayWrapperInner":{display:"flex",alignItems:"center",justifyContent:"center"},".MuiDataGrid-row":{backgroundColor:"white","&:nth-of-type(even)":{backgroundColor:"#f9fafd"},":hover":{backgroundColor:"#e9e9e9"},"&.Mui-selected":{backgroundColor:"rgb(238, 249, 252)","&:hover":{backgroundColor:"rgb(222, 243, 249)"}}},".MuiDataGrid-cell":{fontSize:"12px",color:"#0b0e14"},".MuiDataGrid-columnHeaders":{border:"solid 1px #edf2f9"},".MuiDataGrid-columnHeaderTitle":{fontSize:"12px",color:"#0b0e14",fontWeight:"600"},"& .sticky-cell":{position:"sticky",right:0,background:"inherit",zIndex:1},"& .sticky-header":{position:"sticky",right:0,background:"inherit",zIndex:2}}},h))]}))}function cl({children:e,titleDivider:t=!1,sx:r}){let o=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",whiteSpace:"nowrap",sx:c({borderRight:t?`solid 1px ${o.palette.grey[300]}`:"none",paddingRight:1.5},r),children:e})}function ul(o){var n=o,{children:e,height:t}=n,r=C(n,["children","height"]);let i=_react.useRef.call(void 0, null),[a,s]=_react.useState.call(void 0, 500);return _react.useEffect.call(void 0, ()=>{let l=()=>{let u=i.current;if(!u)return;let p=u.getBoundingClientRect().top;s(window.innerHeight-p)};return l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]),_jsxruntime.jsx.call(void 0, _material.Stack,d(c({ref:i,sx:c({backgroundColor:"#f4f6fa",border:"1px solid #edf2f9",borderRadius:2,height:t||`calc(${a}px - 16px)`},r.sx)},r),{children:_jsxruntime.jsx.call(void 0, js,{children:e})}))}var Sw={CellActionTransport:Hs,SelectionCounter:qs,CellActionDelete:Ys,ExportCsvButton:Ks,CellActionEdit:Zs,CellActions:Qs,CellAction:Xs,Pagination:Js,Actions:el,Toolbar:tl,Content:rl,Button:Hr,Footer:ol,Table:ll,Title:cl,Root:ul},Pw= exports.DataTableV2 =Sw;function pl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({gap:.5,overflow:"hidden"},e))}function fl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({sx:[{overflowY:"auto",overflowX:"hidden"},...Array.isArray(e.sx)?e.sx:e.sx?[e.sx]:[]]},e))}function dl(e){return _jsxruntime.jsx.call(void 0, _material.MenuItem,c({},e))}var Fw={Root:pl,Content:fl,Item:dl},Ur= exports.List =Fw;var mf=_react.createContext.call(void 0, void 0),gf=({children:e})=>{let[t,r]=_react.useState.call(void 0, !1),[o,n]=_react.useState.call(void 0, null),i=_react.useCallback.call(void 0, s=>{n(s),r(!0)},[]),a=_react.useCallback.call(void 0, ()=>{r(!1),n(null)},[]);return _jsxruntime.jsx.call(void 0, mf.Provider,{value:{isOpen:t,open:i,close:a,anchorEl:o,setAnchorEl:n},children:e})},fr=()=>{let e=_react.useContext.call(void 0, mf);if(!e)throw new Error("usePopover must be used within a PopoverProvider");return e};function ml(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, gf,{children:t})}var _reactslot = require('@radix-ui/react-slot');function gl(e){let i=e,{asChild:t=!1}=i,r=C(i,["asChild"]),o=t?_reactslot.Slot:_material.Button,{open:n}=fr();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n(a.currentTarget)}},r))}function hl(e){let i=e,{asChild:t=!1}=i,r=C(i,["asChild"]),o=t?_reactslot.Slot:_material.Button,{close:n}=fr();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n()}},r))}function yl(e){let{isOpen:t,close:r,anchorEl:o}=fr();return _jsxruntime.jsx.call(void 0, _material.Popover,d(c({open:t,anchorEl:o,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},slotProps:{paper:{sx:{borderRadius:"12px"}}},transformOrigin:{vertical:"top",horizontal:"center"}},e),{children:e.children}))}var Hw={Root:ml,Trigger:gl,Content:yl,Close:hl},dr= exports.Popover =Hw;var vf="mio-componente:button-group:value";function xl(e){let{children:t,value:r,onChange:o,isLoading:n,disableMemory:i}=e,[a,s]=_react.useState.call(void 0, !1),[l,u]=_react.useState.call(void 0, ()=>{if(!i)return window.localStorage.getItem(vf)||r||0;if(r)return r}),p=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{u(r===void 0?0:r)},[r]),_react.useEffect.call(void 0, ()=>{window.localStorage.setItem(vf,l||0),u(l)},[l]);let f=[],h=_react.Children.map(t,(m,y)=>{var S,v;f.push({label:m.props.children,value:((S=m.props)==null?void 0:S.value)||y});let g=hi.default.cloneElement(m,{isLoading:n,sx:{maxWidth:"300px",width:"120px"},value:((v=m.props)==null?void 0:v.value)||y});return!l&&y===0||l&&Number(g.props.value)===Number(l)?g:null});return _jsxruntime.jsxs.call(void 0, hi.default.Fragment,{children:[_jsxruntime.jsxs.call(void 0, _material.ButtonGroup,{variant:"contained",size:"small",ref:p,children:[h,_jsxruntime.jsx.call(void 0, _material.Button,{disabled:n,"data-allow-click":"true",onClick:()=>{s(m=>!m)},sx:{width:"30px"},children:_jsxruntime.jsx.call(void 0, Or,{sx:{fontSize:"13pt"}})})]}),_jsxruntime.jsx.call(void 0, _material.Popper,{open:a,transition:!0,anchorEl:p.current,sx:{zIndex:999999},placement:"bottom-end",children:({TransitionProps:m})=>_jsxruntime.jsx.call(void 0, _material.Grow,d(c({},m),{children:_jsxruntime.jsx.call(void 0, _material.Paper,{sx:{minWidth:"120px"},children:_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>s(!1),children:_jsxruntime.jsx.call(void 0, _material.MenuList,{autoFocusItem:!0,disablePadding:!0,children:f.map(y=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{onClick:()=>{o?o(y.value):u(y.value),s(!1)},children:y.label},y.value))})})})}))})]})}function vl(e){return _jsxruntime.jsx.call(void 0, L,c({},e))}var rS={Root:xl,Button:vl},oS= exports.ButtonGroup =rS;function bl(e){let i=e,{children:t,sx:r}=i,o=C(i,["children","sx"]),n=hi.default.Children.toArray(t).some(a=>{var s;return hi.default.isValidElement(a)&&((s=a.type)==null?void 0:s.name)==="CardHeader"});return _jsxruntime.jsx.call(void 0, _material.Box,d(c({sx:c({position:"relative",border:a=>`1px solid ${a.palette.divider} `,boxShadow:a=>`1px 2px 4px ${a.palette.divider}`,borderRadius:2,pt:n?2.5:1,pl:1,pr:1,pb:1},r)},o),{children:t}))}function Sl(e){let{children:t}=e,r=hi.default.Children.toArray(t).map(o=>hi.default.isValidElement(o)&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:n=>n.palette.background.default,borderRadius:"12px",paddingX:1},children:o}));return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",alignItems:"center",position:"absolute",left:0,right:0,top:"-18px"},children:_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"space-between",height:"32px",ml:2,mr:2},children:r})})}function Pl(e){let{title:t}=e;return _jsxruntime.jsx.call(void 0, _material.Typography,{component:"h6",variant:"h6",children:t})}function Tl(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, "div",{children:t})}var cS={Root:bl,Content:Tl,Header:Sl,Title:Pl},uS= exports.Card =cS;var _lucidereact = require('lucide-react'); var pS = _interopRequireWildcard(_lucidereact);var fS=i=>{var a=i,{name:e,size:t=16,strokeWidth:r=1.5,color:o="currentColor"}=a,n=C(a,["name","size","strokeWidth","color"]);let s=pS[e];return _jsxruntime.jsx.call(void 0, s,c({size:t,strokeWidth:r,color:o},n))},dS= exports.LucidIcon =fS;function kf(e){let{licencas:t,licencaSelecionada:r,onAlterarLicenca:o}=e,[n,i]=_react.useState.call(void 0, "");if(t.length===0)return _jsxruntime.jsxs.call(void 0, _material.Stack,{overflow:"hidden",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{overflow:"hidden",textOverflow:"ellipsis",variant:"body1",children:r.nome}),_jsxruntime.jsx.call(void 0, _material.Typography,{overflow:"hidden",textOverflow:"ellipsis",variant:"body2",children:_hooks.formatDocumento.call(void 0, r.documento)})]});function a(l){i(l)}let s=n.length>0?t.filter(l=>["nome"].some(u=>_hooks.normalizeText.call(void 0, String(l[u])).includes(_hooks.normalizeText.call(void 0, n)))):t;return _jsxruntime.jsxs.call(void 0, dr.Root,{children:[_jsxruntime.jsx.call(void 0, dr.Trigger,{asChild:!0,children:_jsxruntime.jsxs.call(void 0, _material.Button,{sx:{color:l=>l.palette.grey[900]},variant:"text",children:[r.nome,_jsxruntime.jsx.call(void 0, _iconsmaterial.ArrowDropDown,{})]})}),_jsxruntime.jsx.call(void 0, dr.Content,{sx:{"& .MuiPopover-paper":{minWidth:"300px",borderRadius:"12px",p:.5}},children:_jsxruntime.jsxs.call(void 0, Ur.Root,{sx:{m:.5,minWidth:"300px",maxHeight:"300px",overflow:"auto"},children:[_jsxruntime.jsx.call(void 0, it,{autoFocus:!0,onSearch:a}),_jsxruntime.jsx.call(void 0, Ur.Content,{children:s.map(l=>_jsxruntime.jsx.call(void 0, dr.Close,{asChild:!0,children:_jsxruntime.jsx.call(void 0, Ur.Item,{selected:r.uuid===l.uuid,onClick:()=>o(l),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",textOverflow:"ellipsis",children:l.nome}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",textOverflow:"ellipsis",children:_hooks.formatDocumento.call(void 0, l.documento)})]})})},l.uuid))})]})})]})}var bS=_styles.styled.call(void 0, _material.MenuItem,{})(({theme:e})=>({borderRadius:"6px",width:"90%",gap:"16px",margin:"0 auto",padding:"8px 16px",transition:"0.1s ease-in-out","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main},"& .MuiSvgIcon-root":{color:e.palette.primary.main},"& .MuiIcon-root":{color:e.palette.primary.main}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{letterSpacing:"0.5px",color:e.palette.text.secondary,fontSize:e.typography.body1},"& .MuiSvgIcon-root":{fontSize:"24px"}})),CS=e=>_jsxruntime.jsx.call(void 0, bS,c({},e)),Rn=CS;function kl(e){let{menuItem:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, !1);if(!t.visible)return null;let a=!!(t!=null&&t.items&&(t==null?void 0:t.items.length)>0);function s(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, Rn,{onClick:()=>{if(t!=null&&t.link){o(t.link);return}s()},selected:r===t.link,children:[!!t.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:t.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:t.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(t==null?void 0:t.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, Bt,{activeMenu:r,sx:{pl:l=>l.spacing(1.5)},menus:(t==null?void 0:t.items)||[],onMenuClick:o})})]})}function Bt(e){let i=e,{menus:t,activeMenu:r,onMenuClick:o}=i,n=C(i,["menus","activeMenu","onMenuClick"]);return _jsxruntime.jsx.call(void 0, _material.List,d(c({component:"nav",disablePadding:!0},n),{children:t.map(a=>_jsxruntime.jsx.call(void 0, kl,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function Il(e){let{menus:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, null),a=(l,u,p)=>{i({element:l.currentTarget,id:u,items:p})},s=()=>{i(null)};return _jsxruntime.jsx.call(void 0, _material.List,{component:"nav",disablePadding:!0,children:t.map(l=>l.visible?_jsxruntime.jsxs.call(void 0, Rn,{onMouseEnter:u=>{l!=null&&l.link||a(u,l.id,l.items)},onMouseLeave:()=>{l!=null&&l.link||s()},onClick:()=>{l!=null&&l.link&&o(l.link)},selected:r===l.link,children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:_jsxruntime.jsx.call(void 0, _material.Icon,{children:l.icon})}),(n==null?void 0:n.id)===l.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, Bt,{activeMenu:r,onMenuClick:o,menus:(l==null?void 0:l.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-${l.id}`):null)})}var Af=(e,t)=>({width:e,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}),Mf=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(8)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),VS=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"&&e!=="width"})(({theme:e,open:t,width:r})=>c(c({width:r,bgcolor:e.palette.background.paper,boxShadow:"2px 3px 20px -16px rgb(32 32 36 / 30%)",borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},t&&d(c({},Af(r,e)),{"& .MuiDrawer-paper":Af(r,e)})),!t&&d(c({},Mf(e)),{"& .MuiDrawer-paper":Mf(e)})));function Ff(e){let l=e,{open:t,items:r,width:o,activeMenu:n,onMenuClick:i,toggleMenu:a}=l,s=C(l,["open","items","width","activeMenu","onMenuClick","toggleMenu"]);return _jsxruntime.jsxs.call(void 0, VS,d(c({width:o,open:t,onClose:()=>a(!1)},s),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),t&&_jsxruntime.jsx.call(void 0, Bt,{onMenuClick:i,activeMenu:n,menus:r}),!t&&_jsxruntime.jsx.call(void 0, Il,{onMenuClick:i,activeMenu:n,menus:r})]}))}function Rf(e){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},e))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function Df(e){let{user:t}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:t==null?void 0:t.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},e))}function Dn(e){let i=e,{children:t,value:r,index:o}=i,n=C(i,["children","value","index"]);return r!==o?null:_jsxruntime.jsx.call(void 0, _material.Box,d(c({role:"tabpanel",hidden:r!==o,id:`scrollable-auto-tabpanel-${o}`,"aria-labelledby":`scrollable-auto-tab-${o}`,sx:{display:"flex",flexDirection:"column",flexGrow:1}},n),{children:r===o&&t}))}var _reacteasycrop = require('react-easy-crop'); var _reacteasycrop2 = _interopRequireDefault(_reacteasycrop);var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);var _Button = require('@mui/material/Button'); var _Button2 = _interopRequireDefault(_Button);var _Dialog = require('@mui/material/Dialog'); var _Dialog2 = _interopRequireDefault(_Dialog);function Al(e,t){return new Promise(r=>{let o=new Image;o.src=e,o.onload=()=>{let n=document.createElement("canvas");n.width=t.width,n.height=t.height;let i=n.getContext("2d");i&&(i.drawImage(o,t.x,t.y,t.width,t.height,0,0,t.width,t.height),r(n.toDataURL("image/jpeg")))}})}var e2=({onSave:e,src:t})=>{let[r,o]=_react.useState.call(void 0, null),[n,i]=_react.useState.call(void 0, null),[a,s]=_react.useState.call(void 0, {x:0,y:0}),[l,u]=_react.useState.call(void 0, 1),[p,f]=_react.useState.call(void 0, null),[h,m]=_react.useState.call(void 0, !1),y=_react.useCallback.call(void 0, (v,P)=>{f(P)},[]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,alignItems:"center",children:[n?_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:n,alt:"Preview",sx:{width:64,height:64,margin:"auto",mb:2}}):_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:t,sx:{width:64,height:64,margin:"auto",mb:2}}),_jsxruntime.jsxs.call(void 0, "label",{children:[_jsxruntime.jsx.call(void 0, "input",{type:"file",accept:"image/*",onChange:v=>{var k;let P=(k=v.target.files)==null?void 0:k[0];if(!P)return;let w=new FileReader;w.onload=()=>{o(w.result),m(!0)},w.readAsDataURL(P)},style:{display:"none"}}),_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",component:"span",children:"Alterar foto"})]}),_jsxruntime.jsxs.call(void 0, _Dialog2.default,{open:h,onClose:()=>m(!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:l,aspect:1,cropShape:"round",showGrid:!1,onCropChange:s,onZoomChange:u,onCropComplete:y})}),_jsxruntime.jsxs.call(void 0, "div",{style:{padding:20},children:[_jsxruntime.jsx.call(void 0, _Slider2.default,{value:l,min:1,max:3,step:.1,onChange:(v,P)=>u(P)}),_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>$(void 0,null,function*(){if(!r||!p)return;let v=yield Al(r,p);i(v),m(!1),e&&e(v)}),children:"Salvar"})})]})]})]})},Lf=e2;var i2=we().shape({name:fe().required("Informe o nome")});function Dl(e){let{usuario:t,credentialsConfig:r,onUploadComplete:o}=e,{data:n,setData:i,handleChange:a,validate:s,validationErrors:l}=_hooks.useForm.call(void 0, t,i2),[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, !1),[m,y]=_react.useState.call(void 0, !1),{uploadAvatar:g,atualizarUsuario:S}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(t)},[t]),_react.useEffect.call(void 0, ()=>{m&&setTimeout(()=>{y(!1)},3e3)},[m]),_react.useEffect.call(void 0, ()=>{u&&setTimeout(()=>{p(!1)},3e3)},[u]);function v(){s(P=>$(this,null,function*(){try{h(!0),yield S(P),y(!0)}catch(w){p("Ocorreu um erro ao alterar os dados da conta")}finally{h(!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, Lf,{src:n==null?void 0:n.avatarUrl,onSave:P=>{try{g(P),o&&(y(!0),o(!0))}catch(w){p("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,w)}}}),_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},l("name")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{name:"surname",fullWidth:!0,label:"Sobrenome",value:(n==null?void 0:n.surname)||"",onChange:a})})]}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, L,{isLoading:f,onClick:()=>v(),variant:"contained",children:"Salvar"})})}),m&&_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 Bl(e){var y,g,S;let{open:t,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=e,[a,s]=_react.useState.call(void 0, ""),[l,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarCodigoWhatsapp:h}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{l&&setTimeout(()=>{u(!1)},3e3)},[l]);function m(){return $(this,null,function*(){try{f(!0);let v=yield h(a);n(v.data)}catch(v){u(v.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, W.Root,{open:t,onClose:v=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, W.Header,{children:[_jsxruntime.jsx.call(void 0, W.Title,{children:"Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp"}),_jsxruntime.jsx.call(void 0, W.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, W.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:`(${(y=o==null?void 0:o.whatsappNumber)==null?void 0:y.slice(0,2)}) ${(g=o==null?void 0:o.whatsappNumber)==null?void 0:g.slice(2,7)}-${(S=o==null?void 0:o.whatsappNumber)==null?void 0:S.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, Rr,{value:a,onChange:v=>{s(v)}}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:l})]})}),_jsxruntime.jsx.call(void 0, W.Footer,{children:_jsxruntime.jsxs.call(void 0, W.Actions,{children:[_jsxruntime.jsx.call(void 0, W.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, W.ActionSalvar,{label:"Verificar",onClick:m,isLoading:p,disabled:a.length!=6})]})})]})}var j9=we().shape({whatsappNumber:fe().required("Informe o n\xFAmero do whastapp").length(15)});function Nl(e){let{usuario:t,credentialsConfig:r,onWhastappSaved:o}=e,[n,i]=_react.useState.call(void 0, !1),[a,s]=_react.useState.call(void 0, !1),{data:l,setData:u,changeValue:p,validate:f,validationErrors:h}=_hooks.useForm.call(void 0, t),[m,y]=_react.useState.call(void 0, !1),[g,S]=_react.useState.call(void 0, !1),{atualizarUsuario:v,gerarWhatsappVerificationCode:P}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{u(t)},[t]);function w(){f(R=>$(this,null,function*(){try{s(!0);let _=yield v(R);o&&o(_.data)}catch(_){}finally{s(!1)}}))}function k(){return $(this,null,function*(){try{y(!0);let R=yield P();S(!0)}catch(R){}finally{y(!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, L,{onClick:()=>{i(!0)},sx:{width:"200px"},fullWidth:!1,variant:"contained",children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, er,{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:!!(l!=null&&l.whatsappVerifiedAt),fullWidth:!1,name:"whatsappNumber",label:"Whastapp",value:l.whatsappNumber||"",onChange:R=>{p("whatsappNumber",R.target.value)}}),l.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"})]}),l.whatsappNumber&&l.whatsappNumber.replace(/\D/g,"").length===11&&!l.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, L,{isLoading:a,onClick:w,children:"Salvar Whatsapp"})]}),t.whatsappNumber&&t.whatsappNumber.replace(/\D/g,"").length===11&&!l.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"warning",action:_jsxruntime.jsx.call(void 0, L,{isLoading:m,onClick:k,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, Bl,{open:g,onClose:R=>$(this,null,function*(){S(!1)}),payload:t,credentialsConfig:r,onCodigoVerificado:R=>{u(R),S(!1)}})]})}function Wf(e){let[t,r]=_react.useState.call(void 0, 0),{user:o,setUser:n,credentialsConfig:i}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,direction:"row",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"200px"},children:_jsxruntime.jsxs.call(void 0, _material.Tabs,{orientation:"vertical",value:t,onChange:(a,s)=>{r(s)},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, Dn,{value:t,index:0,children:_jsxruntime.jsx.call(void 0, Dl,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, Dn,{value:t,index:1,children:_jsxruntime.jsx.call(void 0, Nl,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}exports.AlterarLicenca = kf; exports.AlterarSenha = er; exports.Avatar = Df; exports.Breadcrumbs = Op; exports.Button = L; exports.ButtonContainer = Se; exports.ButtonGroup = oS; exports.Card = uS; exports.Checkbox = jl; exports.ColorsGrid = Yl; exports.Content = Rf; exports.ContentTitle = _C; exports.CurrencyCellStyle = ZP; exports.CurrencyTextField = Pd; exports.DataTable = um; exports.DataTableOptions = Un; exports.DataTableV2 = Pw; exports.DeleteContainer = Gn; exports.Dialog = He; exports.DialogV2 = W; exports.DrawerMenu = Ff; exports.Editable = jo; exports.Filter = g1; exports.FilterApiContext = Vp; exports.FilterContainer = Qn; exports.FilterControl = to; exports.FilterDataContext = Np; exports.FilterProvider = zp; exports.Flag = gc; exports.FormContainer = ei; exports.Header = qb; exports.Icon = xe; exports.LabelValue = hu; exports.List = Ur; exports.LucidIcon = dS; exports.Menu = AC; exports.MioAuth = Cp; exports.OptionStyles = KP; exports.PageTitle = wu; exports.PasswordTextField = bt; exports.Popover = dr; exports.Profile = Wf; exports.SearchTextField = it; exports.Surface = Lt; exports.Tooltip = _t; exports.Transporter = zi; exports.renderMenuItems = EC; exports.theme = U; exports.useDialogs = _core.useDialogs; exports.useFilter = ur; exports.useFilterApi = Me; exports.useMenu = CC;
|
|
10
|
+
`+(l!==a?`result of cast: ${l}`:""))}return i}_cast(t,r){let o=t===void 0?t:this.transforms.reduce((n,i)=>i.call(this,n,t,this),t);return o===void 0&&(o=this.getDefault(r)),o}_validate(t,r={},o,n){let{path:i,originalValue:a=t,strict:l=this.spec.strict}=r,s=t;l||(s=this._cast(s,Object.assign({assert:!1},r)));let 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(t,r,o){let n=!1,{tests:i,value:a,originalValue:l,path:s,options:u}=t,p=g=>{n||(n=!0,r(g,a))},f=g=>{n||(n=!0,o(g,a))},h=i.length,m=[];if(!h)return f([]);let y={value:a,originalValue:l,path:s,options:u,schema:this};for(let g=0;g<i.length;g++){let P=i[g];P(y,p,function(b){b&&(Array.isArray(b)?m.push(...b):m.push(b)),--h<=0&&f(m)})}}asNestedTest({key:t,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let l=t!=null?t:r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");let s=typeof l=="number",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}.`:"")+t});return(f,h,m)=>this.resolve(p)._validate(u,p,h,m)}validate(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,l)=>n._validate(t,r,(s,u)=>{ae.isError(s)&&(s.value=u),l(s)},(s,u)=>{s.length?l(new ae(s,u,void 0,void 0,i)):a(u)}))}validateSync(t,r){var o;let n=this.resolve(Object.assign({},r,{value:t})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(t,Object.assign({},r,{sync:!0}),(l,s)=>{throw ae.isError(l)&&(l.value=s),l},(l,s)=>{if(l.length)throw new ae(l,t,void 0,void 0,a);i=s}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,o=>{if(ae.isError(o))return!1;throw o})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(o){if(ae.isError(o))return!1;throw o}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Yt(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){let o=this.clone({nullable:t});return o.internalTests.nullable=qt({message:r,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),o}optionality(t,r){let o=this.clone({optional:t});return o.internalTests.optionality=qt({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=ze.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ze.notNull){return this.nullability(!1,t)}required(t=ze.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=ze.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=qt(r),i=r.exclusive||r.name&&o.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(o.exclusiveTests[r.name]=!!r.exclusive),o.tests=o.tests.filter(a=>!(a.OPTIONS.name===r.name&&(i||a.OPTIONS.test===n.OPTIONS.test))),o.tests.push(n),o}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let o=this.clone(),n=Hu(t).map(i=>new Qe(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new Kt(n,r):Kt.fromOptions(n,r)),o}typeError(t){let r=this.clone();return r.internalTests.typeError=qt({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=ze.oneOf){let o=this.clone();return t.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=qt({message:r,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),o}notOneOf(t,r=ze.notOneOf){let o=this.clone();return t.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=qt({message:r,name:"notOneOf",test(n){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),o}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){let r=(t?this.resolve(t):this).clone(),{label:o,meta:n,optional:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.filter((s,u,p)=>p.findIndex(f=>f.OPTIONS.name===s.OPTIONS.name)===u).map(s=>{let u=s.OPTIONS.params&&t?Ku(Object.assign({},s.OPTIONS.params),t):s.OPTIONS.params;return{name:s.OPTIONS.name,params:u}})}}get"~standard"(){let t=this;return{version:1,vendor:"yup",validate(n){return $(this,null,function*(){try{return{value:yield t.validate(n,{abortEarly:!1})}}catch(i){if(i instanceof ae)return{issues:Qu(i)};throw i}})}}}};se.prototype.__isYupSchema__=!0;for(let e of["validate","validateSync"])se.prototype[`${e}At`]=function(t,r,o={}){let{parent:n,parentPath:i,schema:a}=Zy(this,t,r,o.context);return a[e](n&&n[i],Object.assign({},o,{parent:n,path:t}))};for(let e of["equals","is"])se.prototype[e]=se.prototype.oneOf;for(let e of["not","nope"])se.prototype[e]=se.prototype.notOneOf;var Jy=()=>!0;function ex(e){return new en(e)}var en=class extends se{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Jy},t))}};ex.prototype=en.prototype;function tx(){return new tn}var tn=class extends se{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Qi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Re(r)||r===!0}})}isFalse(t=Qi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Re(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}};tx.prototype=tn.prototype;var rx=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ox(e){let t=Xi(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function Xi(e){var t,r;let o=rx.exec(e);return o?{year:Ke(o[1]),month:Ke(o[2],1)-1,day:Ke(o[3],1),hour:Ke(o[4]),minute:Ke(o[5]),second:Ke(o[6]),millisecond:o[7]?Ke(o[7].substring(0,3)):0,precision:(t=(r=o[7])==null?void 0:r.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:Ke(o[10]),minuteOffset:Ke(o[11])}:null}function Ke(e,t=0){return Number(e)||t}var nx=/^[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])?)*$/,ix=/^((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,ax=/^(?:[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,sx="^\\d{4}-\\d{2}-\\d{2}",lx="\\d{2}:\\d{2}:\\d{2}",cx="(([+-]\\d{2}(:?\\d{2})?)|Z)",ux=new RegExp(`${sx}T${lx}(\\.\\d+)?${cx}$`),px=e=>Re(e)||e===e.trim(),fx={}.toString();function fe(){return new rn}var rn=class extends se{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;let n=t!=null&&t.toString?t.toString():t;return n===fx?t:n})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||ze.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=he.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r=he.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r=he.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,r){let o=!1,n,i;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:i}=r:n=r),this.test({name:i||"matches",message:n||he.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&o||a.search(t)!==-1})}email(t=he.email){return this.matches(nx,{name:"email",message:t,excludeEmptyString:!0})}url(t=he.url){return this.matches(ix,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=he.uuid){return this.matches(ax,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",o,n;return t&&(typeof t=="object"?{message:r="",allowOffset:o=!1,precision:n=void 0}=t:r=t),this.matches(ux,{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(t=>t===null?"":t)}trim(t=he.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:px})}lowercase(t=he.lowercase){return this.transform(r=>Re(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Re(r)||r===r.toLowerCase()})}uppercase(t=he.uppercase){return this.transform(r=>Re(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Re(r)||r===r.toUpperCase()})}};fe.prototype=rn.prototype;var dx=e=>e!=+e;function mx(){return new on}var on=class extends se{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!dx(t)}}),this.withMutation(()=>{this.transform((t,r,o)=>{if(!o.spec.coerce)return t;let n=t;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return o.isType(n)||n===null?n:parseFloat(n)})})}min(t,r=st.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,r=st.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,r=st.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,r=st.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=st.positive){return this.moreThan(0,t)}negative(t=st.negative){return this.lessThan(0,t)}integer(t=st.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>Re(t)?t:t|0)}round(t){var r;let o=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(n=>Re(n)?n:Math[t](n))}};mx.prototype=on.prototype;var Xu=new Date(""),gx=e=>Object.prototype.toString.call(e)==="[object Date]";function Ju(){return new vt}var vt=class extends se{constructor(){super({type:"date",check(t){return gx(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=ox(t),isNaN(t)?vt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let o;if(Qe.isRef(t))o=t;else{let n=this.cast(t);if(!this._typeCheck(n))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);o=n}return o}min(t,r=Zi.min){let o=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(t,r=Zi.max){let o=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};vt.INVALID_DATE=Xu;Ju.prototype=vt.prototype;Ju.INVALID_DATE=Xu;function hx(e,t=[]){let r=[],o=new Set,n=new Set(t.map(([a,l])=>`${a}-${l}`));function i(a,l){let s=(0,Ae.split)(a)[0];o.add(s),n.has(`${l}-${s}`)||r.push([l,s])}for(let a of Object.keys(e)){let l=e[a];o.add(a),Qe.isRef(l)&&l.isSibling?i(l.path,a):ln(l)&&"deps"in l&&l.deps.forEach(s=>i(s,a))}return Gu.default.array(Array.from(o),r).reverse()}function Vu(e,t){let r=1/0;return e.some((o,n)=>{var i;if((i=t.path)!=null&&i.includes(o))return r=n,!0}),r}function ep(e){return(t,r)=>Vu(e,t)-Vu(e,r)}var tp=(e,t,r)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch(n){}return r.isType(o)?o:e};function Xo(e){if("fields"in e){let t={};for(let[r,o]of Object.entries(e.fields))t[r]=Xo(o);return e.setFields(t)}if(e.type==="array"){let t=e.optional();return t.innerType&&(t.innerType=Xo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Xo)}):"optional"in e?e.optional():e}var yx=(e,t)=>{let r=[...(0,Ae.normalizePath)(t)];if(r.length===1)return r[0]in e;let o=r.pop(),n=(0,Ae.getter)((0,Ae.join)(r),!0)(e);return!!(n&&o in n)},zu=e=>Object.prototype.toString.call(e)==="[object Object]";function Wu(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(o=>r.indexOf(o)===-1)}var xx=ep([]);function we(e){return new nn(e)}var nn=class extends se{constructor(t){super({type:"object",check(r){return zu(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=xx,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var o;let n=super._cast(t,r);if(n===void 0)return this.getDefault(r);if(!this._typeCheck(n))return n;let i=this.fields,a=(o=r.stripUnknown)!=null?o:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(f=>!this._nodes.includes(f))),s={},u=Object.assign({},r,{parent:s,__validating:r.__validating||!1}),p=!1;for(let f of l){let h=i[f],m=f in n;if(h){let y,g=n[f];u.path=(r.path?`${r.path}.`:"")+f,h=h.resolve({value:g,context:r.context,parent:s});let P=h instanceof se?h.spec:void 0,w=P==null?void 0:P.strict;if(P!=null&&P.strip){p=p||f in n;continue}y=!r.__validating||!w?h.cast(n[f],u):n[f],y!==void 0&&(s[f]=y)}else m&&!a&&(s[f]=n[f]);(m!==f in s||s[f]!==n[f])&&(p=!0)}return p?s:n}_validate(t,r={},o,n){let{from:i=[],originalValue:a=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(t,r,o,(s,u)=>{if(!l||!zu(u)){n(s,u);return}a=a||u;let p=[];for(let f of this._nodes){let h=this.fields[f];!h||Qe.isRef(h)||p.push(h.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(t){let r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),o=r.fields;for(let[n,i]of Object.entries(this.fields)){let a=o[n];o[n]=a===void 0?i:a}return r.withMutation(n=>n.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(o=>{var n;let i=this.fields[o],a=t;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),r[o]=i&&"getDefault"in i?i.getDefault(a):void 0}),r}setFields(t,r){let o=this.clone();return o.fields=t,o._nodes=hx(t,r),o._sortErrors=ep(Object.keys(t)),r&&(o._excludedEdges=r),o}shape(t,r=[]){return this.clone().withMutation(o=>{let n=o._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),n=[...o._excludedEdges,...r]),o.setFields(Object.assign(o.fields,t),n)})}partial(){let t={};for(let[r,o]of Object.entries(this.fields))t[r]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Xo(this)}pick(t){let r={};for(let o of t)this.fields[o]&&(r[o]=this.fields[o]);return this.setFields(r,this._excludedEdges.filter(([o,n])=>t.includes(o)&&t.includes(n)))}omit(t){let r=[];for(let o of Object.keys(this.fields))t.includes(o)||r.push(o);return this.pick(r)}from(t,r,o){let n=(0,Ae.getter)(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return yx(i,t)&&(a=Object.assign({},i),o||delete a[t],a[r]=n(i)),a})}json(){return this.transform(tp)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Zo.exact,test(r){if(r==null)return!0;let o=Wu(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Zo.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;let i=Wu(this.schema,n);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,r=Zo.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[t(n)]=r[n];return o})}camelCase(){return this.transformKeys(Er.camelCase)}snakeCase(){return this.transformKeys(Er.snakeCase)}constantCase(){return this.transformKeys(t=>(0,Er.snakeCase)(t).toUpperCase())}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(let[i,a]of Object.entries(r.fields)){var n;let l=t;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),o.fields[i]=a.describe(l)}return o}};we.prototype=nn.prototype;function vx(e){return new an(e)}var an=class extends se{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){let o=super._cast(t,r);if(!this._typeCheck(o)||!this.innerType)return o;let n=!1,i=o.map((a,l)=>{let s=this.innerType.cast(a,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return s!==a&&(n=!0),s});return n?i:o}_validate(t,r={},o,n){var i;let a=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,o,(s,u)=>{var p;if(!l||!a||!this._typeCheck(u)){n(s,u);return}let f=new Array(u.length);for(let m=0;m<u.length;m++){var h;f[m]=a.asNestedTest({options:r,index:m,parent:u,parentPath:r.path,originalParent:(h=r.originalValue)!=null?h:t})}this.runTests({value:u,tests:f,originalValue:(p=r.originalValue)!=null?p:t,options:r},o,m=>n(m.concat(s),u))})}clone(t){let r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(tp)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!ln(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ze(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Qo.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r){return r=r||Qo.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r){return r=r||Qo.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(o,n,i)=>!t(o,n,i):o=>!!o;return this.transform(o=>o!=null?o.filter(r):o)}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);if(r.innerType){var n;let i=t;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),o.innerType=r.innerType.describe(i)}return o}};vx.prototype=an.prototype;function bx(e){return new sn(e)}var sn=class extends se{constructor(t){super({type:"tuple",spec:{types:t},check(r){let o=this.spec.types;return Array.isArray(r)&&r.length===o.length}}),this.withMutation(()=>{this.typeError(Yu.notType)})}_cast(t,r){let{types:o}=this.spec,n=super._cast(t,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((l,s)=>{let u=l.cast(n[s],Object.assign({},r,{path:`${r.path||""}[${s}]`}));return u!==n[s]&&(i=!0),u});return i?a:n}_validate(t,r={},o,n){let i=this.spec.types;super._validate(t,r,o,(a,l)=>{var s;if(!this._typeCheck(l)){n(a,l);return}let u=[];for(let[f,h]of i.entries()){var p;u[f]=h.asNestedTest({options:r,index:f,parent:l,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:l,tests:u,originalValue:(s=r.originalValue)!=null?s:t,options:r},o,f=>n(f.concat(a),l))})}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=r.spec.types.map((n,i)=>{var a;let l=t;return(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.describe(l)}),o}};bx.prototype=sn.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function bt(e){let{name:t,label:r,value:o,onChange:n,onKeyDown:i}=e,[a,l]=_react.useState.call(void 0, !1);function s(){l(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:t,label:r,value:o||"",onChange:n,onKeyDown:i,type:a?"text":"password",InputProps:{endAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"end",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{tabIndex:-1,onClick:s,edge:"end",children:a?_jsxruntime.jsx.call(void 0, _iconsmaterial.VisibilityOff,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Visibility,{})})})}})}var _core = require('@toolpad/core');function Ji(r){var o=r,{children:e}=o,t=C(o,["children"]);return _jsxruntime.jsx.call(void 0, L,d(c({variant:"outlined",color:"error"},t),{children:"Cancelar"}))}function Ct({onClose:e}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>e(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function wt(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},e))}function ea(o){var n=o,{children:e,label:t}=n,r=C(n,["children","label"]);return _jsxruntime.jsx.call(void 0, L,d(c({variant:"contained"},r),{children:t||"Salvar"}))}function ta(e){let a=e,{dialogComponent:t,payload:r,label:o}=a,n=C(a,["dialogComponent","payload","label"]),i=_core.useDialogs.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Button,d(c({variant:"contained",onClick:()=>{i.open(t,r)}},n),{children:o||" Adicionar"}))}function St(r){var o=r,{children:e}=o,t=C(o,["children"]);return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"main",margin:"44px 0 55.75px",overflow:"auto",children:_jsxruntime.jsx.call(void 0, _material.Stack,d(c({padding:"16px"},t),{children:e}))})}function Pt(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({component:"footer",position:"absolute",direction:"row",alignItems:"center",bottom:0,left:0,right:0,padding:"8px 16px",borderTop:`solid 1px ${t.palette.grey[300]}`,height:"48px",sx:{backgroundColor:t.palette.background.paper}},e))}function Tt(e){let t=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({component:"header",height:"44px",position:"absolute",direction:"row",top:0,left:0,right:0,display:"flex",alignItems:"center",padding:"16px",borderBottom:`solid 1px ${t.palette.grey[300]}`},e))}var jx=_react.forwardRef.call(void 0, function(t,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},t))});function kt(n){var i=n,{children:e,height:t,fullWidth:r=!0}=i,o=C(i,["children","height","fullWidth"]);return _jsxruntime.jsx.call(void 0, _material.Dialog,d(c({disableRestoreFocus:!0,fullWidth:r,TransitionComponent:jx,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:t,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:e})}))}function It(e){return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h6",variant:"h6",sx:{whiteSpace:"nowrap"}},e))}function na(e){let{open:t,onClose:r,title:o,message:n,confirmButtonLabel:i="Confirmar",cancelButtonLabel:a="Cancelar"}=e;return _jsxruntime.jsxs.call(void 0, kt,{open:t,onClose:r,children:[_jsxruntime.jsxs.call(void 0, Tt,{children:[_jsxruntime.jsx.call(void 0, It,{children:o||"Precisamos da sua confirma\xE7\xE3o"}),_jsxruntime.jsx.call(void 0, Ct,{onClose:r})]}),_jsxruntime.jsx.call(void 0, St,{children:_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",children:n||"Voc\xEA tem certeza que deseja continuar?"})}),_jsxruntime.jsx.call(void 0, Pt,{children:_jsxruntime.jsxs.call(void 0, wt,{children:[_jsxruntime.jsx.call(void 0, L,{onClick:()=>r(!1),sx:{minWidth:"100px"},children:a}),_jsxruntime.jsx.call(void 0, L,{color:"error",variant:"contained",onClick:()=>r(!0),sx:{minWidth:"100px"},children:i})]})})]})}function aa({open:e,onClose:t,payload:r}){let{useRemover:o,configs:n}=r,{mutateAsync:i,isLoading:a}=o();function l(){return $(this,null,function*(){try{yield i(n),t()}catch(s){}})}return _jsxruntime.jsxs.call(void 0, kt,{open:e,onClose:t,children:[_jsxruntime.jsxs.call(void 0, Tt,{children:[_jsxruntime.jsx.call(void 0, It,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, Ct,{onClose:t})]}),_jsxruntime.jsx.call(void 0, St,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, Pt,{children:_jsxruntime.jsxs.call(void 0, wt,{children:[_jsxruntime.jsx.call(void 0, L,{onClick:()=>t(),sx:{minWidth:"100px"},children:"Manter registro"}),_jsxruntime.jsx.call(void 0, L,{color:"error",variant:"contained",isLoading:a,onClick:l,sx:{minWidth:"100px"},children:"Remover"})]})})]})}function sa({children:e}){return _jsxruntime.jsx.call(void 0, _core.DialogsProvider,{children:e})}var Jx={Root:kt,Provider:sa,AdicionarButton:ta,Header:Tt,Title:It,ActionClose:Ct,Content:St,Footer:Pt,Actions:wt,ActionCancelar:Ji,ActionSalvar:ea,ConfirmDelete:aa,Confirm:na},W= exports.DialogV2 =Jx;function Mt(e){let{isValid:t,message:r}=e,o=_material.useTheme.call(void 0, );return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:t?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:t?o.palette.success.main:"inherit",textDecoration:t?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var cp={senhaAtual:"",senhaNova:""},u0=we().shape({senhaAtual:fe().required("Informe a Senha Atual."),senhaNova:fe().required("Informe a Nova Senha.")});function er(e){let{isOpen:t,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:l,email:s}=e,{alterarSenha:u,isSubmitting:p}=_hooks.useCredentials.call(void 0, r),{setValidationErrors:f,validationProps:h}=_hooks.useValidations.call(void 0, ),{data:m,handleChange:y,setData:g,changeValue:P}=_hooks.useForm.call(void 0, cp),[w,b]=_react.useState.call(void 0, !1),[S,k]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{l&&P("senhaAtual",l)},[l]),_react.useEffect.call(void 0, ()=>{m.senhaNova&&b(_isStrongPassword2.default.call(void 0, m.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[m.senhaNova]);function F(){return $(this,null,function*(){f(null),k(null),u0.validate(m,{abortEarly:!1}).then(()=>$(this,null,function*(){var x;let{senhaAtual:R,senhaNova:N}=m;try{(yield u(R,N,s))&&(n&&n(),g(cp))}catch(v){if(i&&i(v),_axios.isAxiosError.call(void 0, v)){k((x=v.response)==null?void 0:x.data.message);return}k("Ocorreu um erro ao tentar alterar a senha")}})).catch(R=>{f(R)})})}function _(){return(m==null?void 0:m.senhaNova.length)>=8}function T(){if(m!=null&&m.senhaNova){let R=m==null?void 0:m.senhaNova.match(/[a-z]/g);return Array.isArray(R)&&R.length>0}return!1}function Y(){if(m!=null&&m.senhaNova){let R=m==null?void 0:m.senhaNova.match(/[A-Z]/g);return Array.isArray(R)&&R.length>0}return!1}function G(){if(m!=null&&m.senhaNova){let R=m==null?void 0:m.senhaNova.match(/\d/g);return Array.isArray(R)&&R.length>0}return!1}function K(){if(m!=null&&m.senhaNova){let R=m==null?void 0:m.senhaNova.match(/\W/g);return Array.isArray(R)&&R.length>0}return!1}return _jsxruntime.jsxs.call(void 0, W.Root,{open:t,onClose:R=>o(),maxWidth:"md",children:[_jsxruntime.jsxs.call(void 0, W.Header,{children:[_jsxruntime.jsx.call(void 0, W.Title,{children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, W.ActionClose,{onClose:o})]}),_jsxruntime.jsx.call(void 0, W.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, bt,c({name:"senhaAtual",label:"Senha Atual",value:(m==null?void 0:m.senhaAtual)||"",onChange:y},h("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, bt,c({name:"senhaNova",label:"Nova Senha",value:(m==null?void 0:m.senhaNova)||"",onChange:y},h("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{size:12,children:[_jsxruntime.jsx.call(void 0, Mt,{isValid:_(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:T(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:Y(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:G(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, Mt,{isValid:K(),message:"A nova senha deve ter ao menos um caracter especial"})]}),S&&_jsxruntime.jsx.call(void 0, _material.Grid2,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:S})})]})}),_jsxruntime.jsx.call(void 0, W.Footer,{children:_jsxruntime.jsxs.call(void 0, W.Actions,{children:[_jsxruntime.jsx.call(void 0, W.ActionCancelar,{onClick:()=>o()}),_jsxruntime.jsx.call(void 0, W.ActionSalvar,{label:"Alterar Senha",onClick:F,isLoading:p,disabled:!w})]})})]})}var x0=we().shape({email:fe().required("Informe o e-mail"),password:fe().required("Informe a senha")});function la(e){let{onLoginSuccess:t,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=e,[i,a]=_react.useState.call(void 0, ""),[l,s]=_react.useState.call(void 0, ""),[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, !1),[m,y]=_react.useState.call(void 0, !1),[g,P]=_react.useState.call(void 0, null),{login:w}=_hooks.useCredentials.call(void 0, n),{validationProps:b,setValidationErrors:S}=_hooks.useValidations.call(void 0, );function k(){return $(this,null,function*(){S(null),P(null),x0.validate({email:i,password:l},{abortEarly:!1}).then(()=>$(this,null,function*(){var F,_;p(!0);try{let T=yield w(i,l);T&&t(T)}catch(T){if(_axios.isAxiosError.call(void 0, T)){if(((F=T.response)==null?void 0:F.data.code)==="E_FIRST_ACCESS"){h(!0);return}P((_=T.response)==null?void 0:_.data.message)}r(T)}})).catch(F=>{S(F)}).finally(()=>{p(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:k,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)},b("email"))),_jsxruntime.jsx.call(void 0, bt,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:l||"",onChange:F=>s(F.target.value),onKeyDown:F=>F.key==="Enter"&&k()},b("password"))),_jsxruntime.jsx.call(void 0, L,{fullWidth:!0,variant:"contained",onClick:k,isLoading:u,sx:{mt:1},children:"Entrar"})]}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>o("esqueci-senha"),variant:"text",disableRipple:!0,disableTouchRipple:!0,sx:{justifyContent:"flex-start",alignContent:"center",alignItems:"center",textAlign:"left",width:"120px",marginTop:.5,fontWeight:"400",":hover":{}},children:"Esqueci a senha"}),g&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:g}),m&&_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, L,{onClick:()=>o("otp-email"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Mail,{}),children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>o("otp-whatsapp"),startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.WhatsApp,{}),children:"Entrar com senha tempor\xE1ria"})]}),_jsxruntime.jsx.call(void 0, er,{senhaAtual:l,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>$(this,null,function*(){return h(!1)}),onSuccess:()=>{h(!1),y(!0),s("")},credentialsConfig:n})]})}var S0=we().shape({email:fe().required("Informe o e-mail")});function ca(e){let{onLoginClick:t,credentialsConfig:r}=e,[o,n]=_react.useState.call(void 0, ""),[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),[u,p]=_react.useState.call(void 0, null),{recuperarSenha:f}=_hooks.useCredentials.call(void 0, r),{validationProps:h,setValidationErrors:m}=_hooks.useValidations.call(void 0, );function y(){return $(this,null,function*(){m(null),S0.validate({email:o},{abortEarly:!1}).then(()=>$(this,null,function*(){var g;try{a(!0),yield f(o),s(!0)}catch(P){p((g=P.response)==null?void 0:g.data.message)}finally{a(!1)}})).catch(g=>{m(g)})})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",placeholder:"Informe o e-mail utilizado para acessar o sistema",autoFocus:!0,value:o||"",onChange:g=>n(g.target.value)},h("email"))),_jsxruntime.jsx.call(void 0, L,{fullWidth:!0,variant:"contained",onClick:y,isLoading:i,children:"Recuperar minha senha"}),_jsxruntime.jsx.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, L,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Voltar para o Login"})}),l&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"success",action:_jsxruntime.jsx.call(void 0, L,{onClick:t,variant:"text",sx:{fontWeight:"400",":hover":{color:g=>g.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function pa(e){var p;let{loginData:t,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=e,[i,a]=_react.useState.call(void 0, ""),{selecionarLicenca:l,isSubmitting:s}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{if(Array.isArray(t==null?void 0:t.empresas)){let f=t==null?void 0:t.empresas[0];a(f==null?void 0:f.uuid)}},[t]);function u(){return $(this,null,function*(){try{let f=yield l(t==null?void 0:t.token,i);f?n(f):o("Nenhuma token definida")}catch(f){o(f)}})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",sx:{minWidth:"290px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{label:"Licen\xE7as",margin:"normal",select:!0,autoFocus:!0,value:i,onChange:f=>{a(f.target.value)},children:(p=t==null?void 0:t.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, L,{fullWidth:!0,variant:"contained",onClick:u,isLoading:s,sx:{mt:1},children:"Confirmar"})]})}var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);var dp=e=>{let t=e.replace(/\D/g,"");return t.length<=2?`(${t}`:t.length<=7?`(${t.slice(0,2)}) ${t.slice(2)}`:t.length<=11?`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7,11)}`};function Fr(e){let u=e,{value:t,onChange:r}=u,o=C(u,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=t!==void 0,l=_react.useMemo.call(void 0, ()=>a?dp(t||""):n,[t,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:l,onChange:p=>{let f=dp(p.target.value);if(a||i(f),r){let h=d(c({},p),{target:d(c({},p.target),{value:f})});r(h)}},inputProps:{maxLength:15}},o))}function Rr({length:e=6,value:t,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,l)=>{var h;let s="ABCDEF0123456789",u=l.toUpperCase().split("").find(m=>s.includes(m))||"",p=t.split("");p[a]=u;let f=p.join("");r(f),u&&a<e-1&&((h=o.current[a+1])==null||h.focus())},i=(a,l)=>{var s;l.key==="Backspace"&&!t[a]&&a>0&&((s=o.current[a-1])==null||s.focus())};return _jsxruntime.jsx.call(void 0, _material.Box,{display:"flex",gap:1,children:Array.from({length:e}).map((a,l)=>_jsxruntime.jsx.call(void 0, _material.TextField,{autoFocus:l===0,inputRef:s=>o.current[l]=s,slotProps:{htmlInput:{maxLength:1,style:{textAlign:"center",fontSize:"24px",width:"24px",height:"36px"}}},value:t[l]||"",onChange:s=>n(l,s.target.value),onKeyDown:s=>i(l,s)},l))})}function da(e){let{open:t,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=e,[a,l]=_react.useState.call(void 0, ""),[s,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarOtpVerificationCode:h}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{u(!1)},3e3)},[s]);function m(){return $(this,null,function*(){try{f(!0);let y=yield h({channel:o.channel,target:o.target,code:a});y&&n(y),r()}catch(y){u(y.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, W.Root,{open:t,onClose:y=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, W.Header,{children:[_jsxruntime.jsx.call(void 0, W.Title,{children:"Entrar com senha tempor\xE1ria"}),_jsxruntime.jsx.call(void 0, W.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, W.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, Rr,{value:a,onChange:y=>{l(y)}}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, W.Footer,{children:_jsxruntime.jsxs.call(void 0, W.Actions,{children:[_jsxruntime.jsx.call(void 0, W.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, W.ActionSalvar,{label:"Entrar",onClick:m,isLoading:p,disabled:a.length!=6})]})})]})}var Z0=we().shape({contato:fe().when("$tipo",([e],t)=>e==="otp-email"?t.email("E-mail inv\xE1lido").required("Informe o e-mail"):t.matches(/^\+?[1-9]\d{7,14}$/,"N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp"))});function fn(e){let{tipo:t,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=e,[i,a]=_react.useState.call(void 0, !1),[l,s]=_react.useState.call(void 0, !1),{gerarOtpVerificationCode:u}=_hooks.useCredentials.call(void 0, r),{handleChange:p,changeValue:f,data:h,validate:m,validationErrors:y}=_hooks.useForm.call(void 0, {contato:""},Z0),[g,P]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:b=>$(this,null,function*(){b.preventDefault(),m(S=>$(this,null,function*(){try{s(!1),a(!0);let k=yield u({channel:t==="otp-email"?"email":"whatsapp",target:S.contato});P(!0)}catch(k){s(k.response.data.message)}finally{a(!1)}}),{context:{tipo:t}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",children:t==="otp-email"?" Informe seu e-mail para receber um c\xF3digo de acesso":"Informe seu n\xFAmero de WhatsApp para receber um c\xF3digo de acesso"}),t==="otp-email"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:h.contato||"",onChange:p,fullWidth:!0},y("contato"))),t==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Fr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:h.contato||"",onChange:b=>{f("contato",b.target.value.replace(/[^\d+]/g,""))},fullWidth:!0},y("contato"))),_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, L,{isLoading:i,type:"submit",variant:"contained",color:"primary",children:"Enviar c\xF3digo"}),_jsxruntime.jsxs.call(void 0, Se,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:[_jsxruntime.jsx.call(void 0, L,{onClick:n,variant:"text",sx:{fontWeight:"400",":hover":{color:b=>b.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, da,{onLoginSuccess:o,open:g,onClose:b=>$(this,null,function*(){P(!1)}),payload:{target:h.contato,channel:t==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var nv={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 ga(e){let{credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=e,[a,l]=_react.useState.call(void 0, ),{selecionarLicenca:s,isAuthenticated:u}=_hooks.useCredentials.call(void 0, t),[p,f]=_react.useState.call(void 0, "login"),h=_material.useTheme.call(void 0, ),m=_material.useMediaQuery.call(void 0, h.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{u&&n&&n()},[u]);function y(S){return $(this,null,function*(){try{if(Array.isArray(S==null?void 0:S.empresas)){if((S==null?void 0:S.empresas.length)===1){let k=yield s(S==null?void 0:S.token,S.empresas[0].uuid);k&&r(k);return}f("licensa"),l(S);return}r(S)}catch(k){o(k)}})}function g(S){return $(this,null,function*(){o(S)})}function P(S){f(S)}function w(){f("login")}let b=nv[p];return _jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, Gi,{label:i,subTitle:b}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[p==="login"&&_jsxruntime.jsx.call(void 0, la,{credentialsConfig:t,onLoginSuccess:y,onLoginFailed:g,onOptionsClick:P}),p==="licensa"&&_jsxruntime.jsx.call(void 0, pa,{loginData:a,credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o}),p==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, ca,{onLoginClick:w,credentialsConfig:t}),p==="otp-email"&&_jsxruntime.jsx.call(void 0, fn,{onLoginClick:w,onLoginSuccess:y,tipo:"otp-email",credentialsConfig:t}),p==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, fn,{onLoginClick:w,onLoginSuccess:y,tipo:"otp-whatsapp",credentialsConfig:t})]})]})}function ya(){let e=_material.useTheme.call(void 0, ),t=_material.useMediaQuery.call(void 0, e.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:t?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{backgroundImage:"url(https://datac-site-assets.s3.sa-east-1.amazonaws.com/background_login.png)",backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat"},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"bold",color:"white",fontFamily:"Montserrat",letterSpacing:0,children:"Inova\xE7\xE3o e tecnologia"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",color:"white",fontSize:"2.5rem",lineHeight:"3rem",letterSpacing:0,fontWeight:"bold",fontFamily:"Montserrat",children:"para empresas de resultado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"span",fontSize:"1.25rem",lineHeight:"1.25rem",fontWeight:"300",letterSpacing:0,marginTop:"1.5rem",marginBottom:"3rem",fontFamily:"Montserrat",sx:{color:"rgb(68, 167, 255)"},children:"Mais de 30 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, L,{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 fv({children:e}){let t=_material.useTheme.call(void 0, ),r=_material.useMediaQuery.call(void 0, t.breakpoints.up("md"));return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"section",width:r?"46%":"100%",minWidth:"420px",maxWidth:r?"614px":"initial",justifyContent:"center",alignItems:"center",padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",maxWidth:"28rem",margin:"auto 0",children: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:o=>o.palette.grey[500]},children:"Data C Sistemas"})]})]})}function Cp(e){let{banner:t,loginSection:r}=e;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[t?_jsxruntime.jsx.call(void 0, Wi,{children:t}):_jsxruntime.jsx.call(void 0, ya,{}),_jsxruntime.jsx.call(void 0, fv,{children:r||_jsxruntime.jsx.call(void 0, ga,c({},e))})]})}function va(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},e))}function ba({children:e}){return _jsxruntime.jsx.call(void 0, hi.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:t=>t.zIndex.drawer+1,borderBottom:t=>`1px solid ${t.palette.grey[300]}`},children:_jsxruntime.jsx.call(void 0, _material.Toolbar,{children:_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",children:e})})})})}function Ca(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M21 5v14"})]})}))}function Sa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"}),_jsxruntime.jsx.call(void 0, "path",{d:"m4.9 4.9 14.2 14.2"})]})}))}function Pa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Or(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function Ia(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9"})})}))}function Ea(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17-5-5 5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m18 17-5-5 5-5"})]})}))}function Ra(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"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 Da(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Oa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 _r(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function La(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 zv=e=>({transition:e.transitions.create(["transform"],{duration:500})}),Wv=_styles.styled.call(void 0, _r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>c(c(c({},zv(e)),t&&{transform:"rotate(-180deg)"}),!t&&{transform:"rotate(0)"}));function _a(e){let{open:t}=e;return _jsxruntime.jsx.call(void 0, Wv,{fontSize:"small",open:t})}function $a(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 6h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 12h10"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 18h4"})]})}))}function Na(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 20a6 6 0 0 0-12 0"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"4"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"})]})}))}function Va(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 za(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M7.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 Wa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 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 Ga(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Ha(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"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 qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Ya(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Ka(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m6 17 5-5-5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m13 17 5-5-5-5"})]})}))}function Ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 ts(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"11",cy:"11",r:"8"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 21-4.3-4.3"})]})}))}function rs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2 7h20"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7"})]})}))}function os(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 2h1a4 4 0 0 1 4 4v1"})]})}))}function ns(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 as(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 ss(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M12 17V3"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 11 6 6 6-6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M19 21H5"})]})}))}function ls(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"22",y2:"22"}),_jsxruntime.jsx.call(void 0, "line",{x1:"6",x2:"6",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"10",x2:"10",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"14",x2:"14",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "line",{x1:"18",x2:"18",y1:"18",y2:"11"}),_jsxruntime.jsx.call(void 0, "polygon",{points:"12 2 20 7 4 7"})]})}))}function cs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"})]})}))}function us(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"16",cy:"16",r:"6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14v2l1 1"})]})}))}function ps(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M13.22 2.416a2 2 0 0 0-2.511.057l-7 5.999A2 2 0 0 0 3 10v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7.354"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 6h6"}),_jsxruntime.jsx.call(void 0, "path",{d:"M18 3v6"})]})}))}function fs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"9",y2:"9"}),_jsxruntime.jsx.call(void 0, "line",{x1:"3",x2:"21",y1:"15",y2:"15"}),_jsxruntime.jsx.call(void 0, "line",{x1:"9",x2:"9",y1:"9",y2:"21"}),_jsxruntime.jsx.call(void 0, "line",{x1:"15",x2:"15",y1:"9",y2:"21"})]})}))}function ms(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m15 18-6-6 6-6"})})}))}function hs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}))}function ys(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M8 2v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 2v4"}),_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 10h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 14h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 18h.01"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 18h.01"})]})}))}function xs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})}))}var Hb={Circle:Ia,Dashboard:Da,Expandable:_a,Down:_r,Negociacao:Ka,Cadastro:Pa,Clientes:Ea,Filter:$a,Search:ts,ChevronDown:Or,Kanban:Ga,Erease:La,BarCode:Ca,TextCursor:os,OpenPanel:Qa,ClosePanel:Ma,Menu:Ya,Configs:Ra,Users:ns,Password:Ja,Logout:Ha,History:Wa,Help:za,Video:as,Docs:Oa,Block:Sa,Maps:qa,MapPin:ja,HandShake:Va,Store:rs,Download:ss,ContaBancaria:ls,GrupoLancamento:cs,HistoricoPadrao:us,Imovel:ps,Lancamento:fs,ChevronLeft:ms,ChevronRight:hs,Calendar:ys,Save:xs,Profile:Na},xe= exports.Icon =Hb;function vs(e){let t=C(e,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,d(c({},t),{children:_jsxruntime.jsx.call(void 0, xe.Menu,{})}))}var jb={Root:ba,Content:va,ToggleMenu:vs},qb= exports.Header =jb;var oC=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:e})=>({height:"32px",cursor:"pointer",gap:e.spacing(2),transition:"0.2s ease-in-out",padding:`${e.spacing(.25)} ${e.spacing(2)} ${e.spacing(.25)} ${e.spacing(2)}`,"&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{fontSize:"0.805rem",color:e.palette.text.primary},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function bs({label:e,icon:t,visible:r=!0,children:o,selected:n=!1,onClick:i,link:a}){if(!r)return null;let[l,s]=_react.useState.call(void 0, !1),u=!!o;function p(){if(u){s(h=>!h);return}i&&a&&i(a)}function f(h){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):h||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, oC,{selected:n,disableGutters:!0,onClick:h=>{h.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:f(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e}),u&&_jsxruntime.jsx.call(void 0, xe.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 mC=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:e})=>({cursor:"pointer",padding:`${e.spacing(1)} ${e.spacing(0)} ${e.spacing(.25)} ${e.spacing(0)}`,minHeight:"32px",flexDirection:"column",justifyContent:"center",alignItem:"center",alignContent:"center","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:e.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiTypography-root":{fontSize:"0.805rem",color:e.palette.text.primary},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function Pp(e,t){return hi.default.Children.map(e,r=>{var n;if(!hi.default.isValidElement(r))return r;let o=(n=r.props)!=null&&n.children?Pp(r.props.children,t):null;return hi.default.cloneElement(r,{open:t,children:o})})}function ws(e){let{icon:t,label:r,link:o,id:n,selected:i=!1,children:a,onClick:l}=e,[s,u]=_react.useState.call(void 0, null);function p(){l&&o&&l(o)}function f(g,P){u({element:g.currentTarget,id:P})}function h(){u(null)}let m=Pp(a,!0);function y(g){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):g||_jsxruntime.jsx.call(void 0, xe.Circle,{})}return _jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, mC,{selected:i,onMouseEnter:g=>{o||f(g,n)},onMouseLeave:()=>{o||h()},disableGutters:!0,onClick:g=>{g.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:y(t)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:_lodash2.default.truncate(r,{length:12})}),(s==null?void 0:s.id)===n&&_jsxruntime.jsx.call(void 0, _material.Popper,{sx:{zIndex:999999},anchorEl:s==null?void 0:s.element,open:!!(s!=null&&s.element),placement:"right-start",children:_jsxruntime.jsx.call(void 0, Lt,{elevation:1,sx:{position:"relative","&::before":{content:'""',position:"absolute",left:-8,width:"1.2rem",height:"1.2rem",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1waW4tc2FmZXR5LW9wZW4iPjxwYXRoIGQ9Ik0yMC44IDMuMmMtMS42LTEuNi00LjEtMS42LTUuNyAwTDEyLjMgNlMxNSA5IDE4IDZjLTMgMyAwIDUuNyAwIDUuN2wyLjgtMi44YzEuNi0xLjYgMS42LTQuMiAwLTUuNyIvPjxwYXRoIGQ9Im03LjEgMjEuMSAxMC4zLTEwLjIiLz48Y2lyY2xlIGN4PSI1IiBjeT0iMTkiIHI9IjMiLz48cGF0aCBkPSJNOSAycy00LjEgOS41LTYuNzU1IDE1LjgiLz48L3N2Zz4=")',backgroundSize:"contain",backgroundRepeat:"no-repeat",transition:"transform 0.2s ease-in-out"},p:1,width:g=>{var P;return(P=g.mixins.menu)==null?void 0:P.width}},children:m})})]})})}function Ss(e){let n=e,{open:t,isFirstLevel:r=!1}=n,o=C(n,["open","isFirstLevel"]);return t?_jsxruntime.jsx.call(void 0, bs,c({},o)):_jsxruntime.jsx.call(void 0, ws,c({},o))}function bC(e,t){if(!e)throw new Error(t)}var kp=_react.createContext.call(void 0, null);function Ip(e){let{children:t,storageKey:r="mio:menu"}=e,[o,n]=_react.useState.call(void 0, ()=>{let a=window.localStorage.getItem(r)||"true";return a?JSON.parse(a):!0});function i(){n(a=>!a)}return _react.useEffect.call(void 0, ()=>{window.localStorage.setItem(r,JSON.stringify(o))},[o,r]),_jsxruntime.jsx.call(void 0, kp.Provider,{value:{isOpen:o,toggleMenu:i},children:t})}function CC(){let e=_react.useContext.call(void 0, kp);return bC(e,"cannot find MenuContext provider"),e}var Ep=e=>{var t,r;return{width:((r=(t=e==null?void 0:e.mixins)==null?void 0:t.menu)==null?void 0:r.width)||64,background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}},Ap=e=>({background:"#FFFFFF",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:0,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(12)} + 1px)`}}),TC=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{var r,o;return c(c({width:((o=(r=e==null?void 0:e.mixins)==null?void 0:r.menu)==null?void 0:o.width)||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},t&&d(c({},Ep(e)),{"& .MuiDrawer-paper":Ep(e)})),!t&&d(c({},Ap(e)),{"& .MuiDrawer-paper":Ap(e)}))}),kC=_styles.styled.call(void 0, "div")(({theme:e})=>e.mixins.toolbar);function Rp(e,t,r,o){return hi.default.Children.map(e,n=>{var f,h;if(!hi.default.isValidElement(n))return n;let i=((f=n.props.link)==null?void 0:f.split("/").filter(Boolean))||[],a=n.props.link||"",u="/"+((t==null?void 0:t.split("/").filter(Boolean))||[]).slice(0,i.length).join("/"),p=(h=n.props)!=null&&h.children?Rp(n.props.children,t,r,o):null;return hi.default.cloneElement(n,{open:r,selected:u===a,onClick:m=>{o&&o(m)},children:p})})}function Ts(e){let{open:t,toggleMenu:r,children:o,onClickItem:n}=e,a=new URL(window.location.href).pathname,l=Rp(o,a,t,n);return _jsxruntime.jsxs.call(void 0, TC,{variant:"permanent",open:t,onClose:r,children:[_jsxruntime.jsx.call(void 0, kC,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:l})]})}function EC(e){return e.map(t=>t.visible?_jsxruntime.jsx.call(void 0, Dp.Item,{link:t.link,id:t.id,label:t.label,icon:t.icon,children:t.items&&EC(t.items)},t.id):null)}var Dp={Root:Ts,Item:Ss,Provider:Ip};var AC=Dp;function Op(e){let{links:t}=e;function r(o,n){location.pathname}return _jsxruntime.jsx.call(void 0, _material.Breadcrumbs,{sx:{height:"30px",display:"flex",textWrap:"nowrap"},children:t.map((o,n)=>t.length===1||t.length===n+1?_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{fontSize:"10pt",fontWeight:"bolder"},variant:"subtitle1",color:"black",children:o.label},o.link):_jsxruntime.jsx.call(void 0, _material.Button,{variant:"text",children:o.label},o.link))})}function Is(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Stack,{pl:1,pr:1,pt:.5,pb:.5,direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",spacing:1,children:t})}var LC={Root:Is},_C= exports.ContentTitle =LC;function Es({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{pt:1,pl:1,pr:1,pb:1,direction:"row",spacing:1,justifyContent:"flex-end",sx:{backgroundColor:t=>t.palette.background.paper,borderTop:t=>`1px solid ${t.palette.border}`},children:e})}var VC=process.env.NODE_ENV==="production",As="Invariant failed";function Ms(e,t){if(!e){if(VC)throw new Error(As);var r=typeof t=="function"?t():t,o=r?"".concat(As,": ").concat(r):As;throw new Error(o)}}var _uuid = require('uuid');function HC(e,t){var r,o;switch(t.type){case"loadFiltersFromStorage":return d(c({},e),{filterValues:(r=t==null?void 0:t.storageValues)==null?void 0:r.filterValues,appliedValues:(o=t==null?void 0:t.storageValues)==null?void 0:o.appliedValues});case"updateFilterValues":return d(c({},e),{filterValues:t.filterValues});case"updateFilterValue":return d(c({},e),{filterValues:d(c({},e.filterValues),{[t.payload.name]:t.payload.value})});case"updateAppliedValues":let n=e.filterValues,i=[];if(n&&Object.entries(n).length>0){let[a]=Object.keys(n);i=[{[a]:n[a]}]}return t!=null&&t.storagePath&&localStorage.setItem(t.storagePath,JSON.stringify({appliedValues:n,filterValuesAsArray:i,filterValues:e.filterValues})),d(c({},e),{appliedValues:n,filterValuesAsArray:i,isOpen:!1,searchId:_uuid.v4.call(void 0, )});case"updateIsOpen":return d(c({},e),{isOpen:t.isOpen,target:t.target});case"updateContainer":return d(c({},e),{container:t.container});case"toggleIsOpen":return d(c({},e),{isOpen:!e.isOpen});case"deleteAppliedValue":return delete e.appliedValues[t.filterName],c({},e);case"deleteAllAppliedValues":return e.appliedValues={},e.filterValues=t.filterValues,t.storagePath&&localStorage.removeItem(t.storagePath),c({},e)}}var Np=hi.default.createContext({}),Vp= exports.FilterApiContext =hi.default.createContext({});function zp(e){let{children:t,filterValues:r={},storagePath:o,onFilterApplied:n}=e,[i,a]=_react.useReducer.call(void 0, HC,{filterValues:{}});_react.useEffect.call(void 0, ()=>{a({type:"updateFilterValues",filterValues:r}),a({type:"updateAppliedValues",storagePath:o})},[r]),_react.useEffect.call(void 0, ()=>{if(o){let s=localStorage.getItem(o);if(s&&s!=="undefined"){let u=JSON.parse(s);a({type:"loadFiltersFromStorage",storageValues:u})}}},[]);let l=_react.useMemo.call(void 0, ()=>{function s(b){a({type:"updateIsOpen",isOpen:!0,target:(b==null?void 0:b.target)||void 0})}function u(){a({type:"updateIsOpen",isOpen:!1,target:void 0})}function p(){a({type:"toggleIsOpen"})}function f(b){let S=b.target.type,k=b.target.name,F;switch(S){case"text":F=b.target.value;break;case"checkbox":F=b.target.checked;break;default:F=b.target.value}a({type:"updateFilterValue",payload:{name:k,value:F}})}function h(b,S){a({type:"updateFilterValue",payload:{name:b,value:S}})}function m(b){a({type:"updateFilterValues",filterValues:b})}function y(){a({type:"updateAppliedValues",storagePath:o,onFilterApplied:n})}function g(b){a({type:"deleteAppliedValue",filterName:b})}function P(){a({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),a({type:"updateAppliedValues",storagePath:o,onFilterApplied:n})}function w(b){a({type:"updateContainer",container:b})}return{setContainer:w,openFilter:s,closeFilter:u,onChangeFilterValue:f,changeFilterValue:h,changeFilterValues:m,applyFilterValues:y,deleteFilterValue:g,deleteAllFilterValues:P,toggleFilter:p}},[r]);return _jsxruntime.jsx.call(void 0, Vp.Provider,{value:l,children:_jsxruntime.jsx.call(void 0, Np.Provider,{value:i,children:t})})}function ur(){let e=_react.useContext.call(void 0, Np);return Ms(e,"cannot find FilterDataContext provider"),e}function Me(){let e=_react.useContext.call(void 0, Vp);return Ms(e,"cannot find FilterApiContextContext provider"),e}function Fs(){let{openFilter:e}=Me();return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:t=>{e(t)},children:_jsxruntime.jsx.call(void 0, xe.Filter,{})})}function Rs(e){let{children:t}=e,{isOpen:r,container:o}=ur(),{closeFilter:n}=Me();return _jsxruntime.jsx.call(void 0, _material.Popover,{elevation:0,open:r,onClose:n,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{"& .MuiPopover-paper":{width:"360px",border:a=>`1px solid ${a.palette.border}`,borderRadius:"8px",mt:.5,pt:2}},children:t})}function Ds({children:e}){return _jsxruntime.jsx.call(void 0, _material.Box,{mt:1,ml:1,mr:1,mb:2,children:e})}function Bs(){let{applyFilterValues:e}=Me();return _jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{e()},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.855rem"}})," ",_jsxruntime.jsx.call(void 0, "span",{children:"Pesquisar"})]})})}function Ls(e){let n=e,{children:t,disabledDelete:r=!1}=n,o=C(n,["children","disabledDelete"]);return _jsxruntime.jsx.call(void 0, _material.Chip,c({},o))}function Ns({children:e}){let{appliedValues:t}=ur(),{applyFilterValues:r,deleteFilterValue:o}=Me(),{isOpen:n,open:i,close:a,anchorEl:l,data:s}=_hooks.usePopover.call(void 0, ),u=hi.default.Children.map(e,p=>!hi.default.isValidElement(p)||!(t&&p.props.name in t)?null:hi.default.cloneElement(p,{onDelete:p.props.disabledDelete?void 0:h=>{o&&o(p.props.name||""),a()},onClick:h=>{i(h,{target:h.currentTarget,name:p.props.name,disabledDelete:p.props.disabledDelete||!1})}}));return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,flex:1,justifyContent:"flex-end",children:[u,_jsxruntime.jsxs.call(void 0, _material.Popover,{open:!!n||!1,onClose:()=>a(),anchorEl:l,elevation:0,sx:{"& .MuiPopover-paper":{minWidth:"300px",border:p=>`1px solid ${p.palette.border}`,borderRadius:"8px",mt:1}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{pt:2,pl:1,pr:1,pb:2,children:hi.default.Children.map(e,p=>hi.default.isValidElement(p)&&p.props.name===(s==null?void 0:s.name)?p.props.children:null)}),_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{backgroundColor:p=>p.palette.background.paper,borderTop:p=>`1px solid ${p.palette.border}`},p:1,direction:"row",justifyContent:"flex-end",spacing:1,children:[!(s!=null&&s.disabledDelete)&&_jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{o&&o((s==null?void 0:s.name)||""),a()},children:"Apagar"}),_jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{a(),r()},children:"Aplicar"})]})]})]})}function Vs({children:e}){let t=_react.useRef.call(void 0, null),{setContainer:r}=Me(),{container:o}=ur();return _react.useEffect.call(void 0, ()=>{let n=()=>{t.current&&r(t.current)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[o]),_jsxruntime.jsxs.call(void 0, _material.Stack,{ref:t,direction:"row",alignContent:"center",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, xe.Search,{sx:{fontSize:"0.95rem"}}),_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center",children:e})]})}function zs(){let{deleteAllFilterValues:e}=Me();return _jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{e&&e()},children:"Resetar"})}function Ws(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{border:r=>`1px solid ${r.palette.border}`,borderRadius:"90px",flexGrow:1,pl:1,pr:1},children:t})}function Gs(e){let i=e,{onChange:t}=i,r=C(i,["onChange"]),o=_lodash2.default.debounce(a=>t(a),500);function n(a){let l=a.target.value;o(l)}return _jsxruntime.jsx.call(void 0, _material.InputBase,c({onChange:n},r))}var m1={Root:Ws,SearchTextField:Gs,Container:Vs,AdvancedContainer:Rs,AdvancedContent:Ds,AdvancedActionsContainer:Es,AdvancedButton:Fs,Provider:zp,ApplyButton:Bs,ResetButton:zs,Chips:Ns,Chip:Ls},g1= exports.Filter =m1;var _xdatagrid = require('@mui/x-data-grid');function Hs(r){var o=r,{onClick:e}=o,t=C(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{}),label:"Transport",color:"primary",onClick:()=>e&&e("transport")},t))}var Yp=_react.createContext.call(void 0, {});function js({children:e}){let[t,r]=_react.useState.call(void 0, []),[o,n]=_react.useState.call(void 0, !1),[i,a]=_react.useState.call(void 0, !1),l=_xdatagrid.useGridApiRef.call(void 0, );function s(){r([]),n(!0)}return _jsxruntime.jsx.call(void 0, Yp.Provider,{value:{apiRef:l,rowsSelectedId:t,clearCallback:o,breakpoint:i,setClearCallback:n,setBreakpoint:a,setRowsSelectedId:r,clearRowsSelectedId:s},children:e})}function We(){return _react.useContext.call(void 0, Yp)}function qs(e){let{countTitle:t,gender:r}=e,{rowsSelectedId:o}=We(),n=o==null?void 0:o.length,i=_react.useMemo.call(void 0, ()=>{if(!t)return"";let a=r==="feminino"?"selecionada":"selecionado",l=r==="feminino"?"selecionadas":"selecionados",s=r==="feminino"?"Nenhuma":"Nenhum";return n===1?`${t} ${a}`:n&&n>1?`${t.split(" ").map(u=>`${u}s`).join(" ")} ${l}`:`${s} ${t} ${a}`},[n]);return _jsxruntime.jsx.call(void 0, _material.Stack,{children:_jsxruntime.jsxs.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:[n&&n>0?n:""," ",i]})})}function Ys(r){var o=r,{onClick:e}=o,t=C(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{}),label:"Delete",color:"primary",onClick:()=>{e&&e("delete")}},t))}function Hr(e){let l=e,{isLoading:t,startIcon:r,children:o,title:n}=l,i=C(l,["isLoading","startIcon","children","title"]),{breakpoint:a}=We();return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:a?_jsxruntime.jsx.call(void 0, _material.Tooltip,{title:o,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({},i),{color:"primary",disabled:t?!0:i.disabled,children:[r,t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"25%",bottom:"25%",left:"25%",right:"25%",transform:"translate(-50%, -50%)"}})]}))}):_jsxruntime.jsx.call(void 0, _material.Button,d(c({startIcon:r,disabled:t?!0:i.disabled,sx:{position:"relative",height:"26px",minWidth:"70px",padding:"7px 8px 8px",border:"1px solid rgba(223, 226, 231, 0.8)",borderRadius:"6px",display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:1,transition:"width 0.2s ease"}},i),{children:_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{transition:"opacity 0.2s ease, width 0.2s ease",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[t&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"22%",left:"44%",transform:"translate(-50%, -50%)"}}),o]})}))})}var L1=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function Ks(){let{apiRef:e}=We(),t=r=>{e!=null&&e.current&&e.current.exportDataAsCsv(r)};return _jsxruntime.jsx.call(void 0, Hr,{startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.FileDownload,{}),onClick:()=>t({getRowsToExport:L1}),children:"Exportar CSV"})}function Zs(r){var o=r,{onClick:e}=o,t=C(o,["onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({icon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{}),label:"Edit",color:"primary",onClick:()=>e&&e("edit")},t))}function Qs(e){let{children:t,onClick:r}=e;return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_react.Children.map(t,o=>{if(_react.isValidElement.call(void 0, o))return _react.cloneElement.call(void 0, o,{onClick:r})})})}function Xs(e){let n=e,{event:t,onClick:r}=n,o=C(n,["event","onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,c({color:"primary",onClick:()=>{r&&r(t)}},o))}function Js(e){let{onChangePageSize:t,onChangePage:r,pagination:o,rowsPerPageOptions:n=[15,50,100,200]}=e,{page:i,pageSize:a=15,totalRecords:l}=o||{},s=_react.useMemo.call(void 0, ()=>o!=null&&o.lastPage?o.lastPage:(l||0)<a?1:Math.max(Math.ceil((l||0)/a)),[l,a]),u=_react.useMemo.call(void 0, ()=>{if((l||0)<a)return`Exibindo ${_hooks.pluralizar.call(void 0, l||0,"registro","registros",!0)}`;let f=a;if(i===s){let h=(l||0)%a;f=h===0?a:h}return`Exibindo ${_hooks.pluralizar.call(void 0, f||0,"registro","registros",!0)} de ${l}`},[o,s]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{width:"100%",direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",fontSize:"13px",fontWeight:"500",whiteSpace:"nowrap",children:u}),!0&&_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",gap:2,marginLeft:"auto",children:[_jsxruntime.jsx.call(void 0, _material.TextField,{sx:{width:"78px",fontSize:"8pt"},size:"small",value:a||0,select:!0,onChange:f=>{t&&t(parseInt(f.target.value))},children:n.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f,children:f},f))}),_jsxruntime.jsx.call(void 0, _material.Pagination,{variant:"outlined",shape:"rounded",count:s||0,showFirstButton:!0,showLastButton:!0,onChange:(f,h)=>{r&&r(h)},page:i||0,color:"primary"})]})]})}function el({children:e,breakpoints:t}){let{setBreakpoint:r}=We(),o=_material.useTheme.call(void 0, ),n=_material.useMediaQuery.call(void 0, o.breakpoints.down(t||"md"));return _react.useEffect.call(void 0, ()=>{r(n)},[n]),_jsxruntime.jsx.call(void 0, _material.Stack,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:1,marginLeft:"auto",flexGrow:1,children:e})}function tl({children:e}){return _jsxruntime.jsx.call(void 0, _material.Stack,{component:_material.Paper,elevation:0,gap:1.5,flexDirection:"row",justifyContent:"space-between",alignItems:"center",p:1,borderRadius:"8px 8px 0 0",sx:{width:"100%"},children:e})}function rl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1.5},e))}function ol(e){return _jsxruntime.jsx.call(void 0, _material.TableFooter,d(c({},e),{sx:{height:"54px",paddingX:"12px",gap:"12px",display:"flex",alignItems:"center",backgroundColor:"white",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",borderTop:"1px solid #edf2f9"}}))}var _locales = require('@mui/x-data-grid/locales');function il(){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/empty-data.svg",alt:"Imagem de notifica\xE7\xE3o",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Nenhum registro encontrado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",whiteSpace:"normal",children:"Tente outra pesquisa ou adicione um novo registro."})]})]})}function sl({errorMessage:e}){return _jsxruntime.jsxs.call(void 0, _material.Stack,{alignItems:"center",justifyContent:"center",gap:2,padding:2,maxWidth:"400px",minWidth:"200px",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{width:"250px",height:"250px",alignItems:"center",justifyContent:"center",borderRadius:"50%",sx:{background:"linear-gradient(to top, #ffffff, #fdfcfd, #fafafa, #f8f7f8, #f5f5f6);"},children:_jsxruntime.jsx.call(void 0, "img",{src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/error.svg",alt:"Imagem de erro",width:"148px",height:"148px"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{gap:1,textAlign:"center",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h4",component:"h2",fontWeight:"600",children:"Ops! Algo deu errado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",children:e})]})]})}var mw=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function ll(e){let F=e,{error:t,isLoading:r,isFetching:o,data:n,columns:i,controlledRowsSelectedId:a,onClearRowsSelectedId:l,onRowSelectionChange:s,onCellKeyDown:u,onRowDoubleClick:p,stackProps:f}=F,h=C(F,["error","isLoading","isFetching","data","columns","controlledRowsSelectedId","onClearRowsSelectedId","onRowSelectionChange","onCellKeyDown","onRowDoubleClick","stackProps"]),{rowsSelectedId:m,setRowsSelectedId:y,clearCallback:g,setClearCallback:P,apiRef:w}=We(),b=_react.useMemo.call(void 0, ()=>_=>_.map(T=>T.headerName==="A\xE7\xF5es"?d(c({},T),{minWidth:T.minWidth||80,maxWidth:T.maxWidth||T.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}):d(c({},T),{flex:T.flex||1,minWidth:T.minWidth||100,headerClassName:T!=null&&T.enableStickyColumns?"sticky-header":"",cellClassName:T!=null&&T.enableStickyColumns?"sticky-cell":""})),[i]);_react.useEffect.call(void 0, ()=>{a&&y(a)},[a]),_react.useEffect.call(void 0, ()=>{g&&(l&&l([]),P(!1))},[g]);function S(_,T,Y){switch(T.ctrlKey&&T.code==="KeyE"?"ctrl+e":T.code){case"Enter":T.preventDefault(),u&&u("edit",_.id);break;case"F3":T.preventDefault(),u&&u("edit",_.id);break;case"Delete":T.preventDefault(),u&&u("delete",_.id);break;case"ctrl+e":T.preventDefault(),(R=>{w!=null&&w.current&&w.current.exportDataAsCsv(R)})({getRowsToExport:mw});break;default:break}}function k(_,T,Y){p&&p("edit",_.id)}return _jsxruntime.jsxs.call(void 0, _material.Stack,d(c({height:"100%",minHeight:"500px",position:"relative"},f),{children:[!r&&o&&_jsxruntime.jsx.call(void 0, _material.LinearProgress,{sx:{position:"absolute",top:0,right:0,left:0,zIndex:999,height:"3px"}}),_jsxruntime.jsx.call(void 0, _xdatagrid.DataGrid,c({apiRef:w,rows:n,columns:b(i),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:k,onCellKeyDown:S,disableRowSelectionOnClick:!0,rowSelectionModel:m,onRowSelectionModelChange:(_,T)=>{s&&s(_,T),!a&&y(_)},slots:{booleanCellFalseIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"error",sx:{fontSize:"10pt"}}),booleanCellTrueIcon:()=>_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:"success",sx:{fontSize:"10pt"}}),noRowsOverlay:()=>!r&&t?_jsxruntime.jsx.call(void 0, sl,{errorMessage:t}):_jsxruntime.jsx.call(void 0, il,{})},slotProps:{loadingOverlay:{variant:"skeleton",noRowsVariant:"skeleton"}},disableColumnFilter:!0,localeText:_locales.ptBR.components.MuiDataGrid.defaultProps.localeText,sx:{border:"none",borderRadius:0,"--DataGrid-rowBorderColor":"#edf2f9","--DataGrid-containerBackground":"#f4f6fa",".MuiDataGrid-overlayWrapperInner":{display:"flex",alignItems:"center",justifyContent:"center"},".MuiDataGrid-row":{backgroundColor:"white","&:nth-of-type(even)":{backgroundColor:"#f9fafd"},":hover":{backgroundColor:"#e9e9e9"},"&.Mui-selected":{backgroundColor:"rgb(238, 249, 252)","&:hover":{backgroundColor:"rgb(222, 243, 249)"}}},".MuiDataGrid-cell":{fontSize:"12px",color:"#0b0e14"},".MuiDataGrid-columnHeaders":{border:"solid 1px #edf2f9"},".MuiDataGrid-columnHeaderTitle":{fontSize:"12px",color:"#0b0e14",fontWeight:"600"},"& .sticky-cell":{position:"sticky",right:0,background:"inherit",zIndex:1},"& .sticky-header":{position:"sticky",right:0,background:"inherit",zIndex:2}}},h))]}))}function cl({children:e,titleDivider:t=!1,sx:r}){let o=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",whiteSpace:"nowrap",sx:c({borderRight:t?`solid 1px ${o.palette.grey[300]}`:"none",paddingRight:1.5},r),children:e})}function ul(o){var n=o,{children:e,height:t}=n,r=C(n,["children","height"]);let i=_react.useRef.call(void 0, null),[a,l]=_react.useState.call(void 0, 500);return _react.useEffect.call(void 0, ()=>{let s=()=>{let u=i.current;if(!u)return;let p=u.getBoundingClientRect().top;l(window.innerHeight-p)};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[]),_jsxruntime.jsx.call(void 0, _material.Stack,d(c({ref:i,sx:c({backgroundColor:"#f4f6fa",border:"1px solid #edf2f9",borderRadius:2,height:t||`calc(${a}px - 16px)`},r.sx)},r),{children:_jsxruntime.jsx.call(void 0, js,{children:e})}))}var Sw={CellActionTransport:Hs,SelectionCounter:qs,CellActionDelete:Ys,ExportCsvButton:Ks,CellActionEdit:Zs,CellActions:Qs,CellAction:Xs,Pagination:Js,Actions:el,Toolbar:tl,Content:rl,Button:Hr,Footer:ol,Table:ll,Title:cl,Root:ul},Pw= exports.DataTableV2 =Sw;function pl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({gap:.5,overflow:"hidden"},e))}function fl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({sx:[{overflowY:"auto",overflowX:"hidden"},...Array.isArray(e.sx)?e.sx:e.sx?[e.sx]:[]]},e))}function dl(e){return _jsxruntime.jsx.call(void 0, _material.MenuItem,c({},e))}var Fw={Root:pl,Content:fl,Item:dl},Ur= exports.List =Fw;var mf=_react.createContext.call(void 0, void 0),gf=({children:e})=>{let[t,r]=_react.useState.call(void 0, !1),[o,n]=_react.useState.call(void 0, null),i=_react.useCallback.call(void 0, l=>{n(l),r(!0)},[]),a=_react.useCallback.call(void 0, ()=>{r(!1),n(null)},[]);return _jsxruntime.jsx.call(void 0, mf.Provider,{value:{isOpen:t,open:i,close:a,anchorEl:o,setAnchorEl:n},children:e})},fr=()=>{let e=_react.useContext.call(void 0, mf);if(!e)throw new Error("usePopover must be used within a PopoverProvider");return e};function ml(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, gf,{children:t})}var _reactslot = require('@radix-ui/react-slot');function gl(e){let i=e,{asChild:t=!1}=i,r=C(i,["asChild"]),o=t?_reactslot.Slot:_material.Button,{open:n}=fr();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n(a.currentTarget)}},r))}function hl(e){let i=e,{asChild:t=!1}=i,r=C(i,["asChild"]),o=t?_reactslot.Slot:_material.Button,{close:n}=fr();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n()}},r))}function yl(e){let{isOpen:t,close:r,anchorEl:o}=fr();return _jsxruntime.jsx.call(void 0, _material.Popover,d(c({open:t,anchorEl:o,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},slotProps:{paper:{sx:{borderRadius:"12px"}}},transformOrigin:{vertical:"top",horizontal:"center"}},e),{children:e.children}))}var Hw={Root:ml,Trigger:gl,Content:yl,Close:hl},dr= exports.Popover =Hw;var vf="mio-componente:button-group:value";function xl(e){let{children:t,value:r,onChange:o,isLoading:n,disableMemory:i}=e,[a,l]=_react.useState.call(void 0, !1),[s,u]=_react.useState.call(void 0, ()=>{if(!i)return window.localStorage.getItem(vf)||r||0;if(r)return r}),p=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{u(r===void 0?0:r)},[r]),_react.useEffect.call(void 0, ()=>{window.localStorage.setItem(vf,s||0),u(s)},[s]);let f=[],h=_react.Children.map(t,(m,y)=>{var P,w;f.push({label:m.props.children,value:((P=m.props)==null?void 0:P.value)||y});let g=hi.default.cloneElement(m,{isLoading:n,sx:{maxWidth:"300px",width:"120px"},value:((w=m.props)==null?void 0:w.value)||y});return!s&&y===0||s&&Number(g.props.value)===Number(s)?g:null});return _jsxruntime.jsxs.call(void 0, hi.default.Fragment,{children:[_jsxruntime.jsxs.call(void 0, _material.ButtonGroup,{variant:"contained",size:"small",ref:p,children:[h,_jsxruntime.jsx.call(void 0, _material.Button,{disabled:n,"data-allow-click":"true",onClick:()=>{l(m=>!m)},sx:{width:"30px"},children:_jsxruntime.jsx.call(void 0, Or,{sx:{fontSize:"13pt"}})})]}),_jsxruntime.jsx.call(void 0, _material.Popper,{open:a,transition:!0,anchorEl:p.current,sx:{zIndex:999999},placement:"bottom-end",children:({TransitionProps:m})=>_jsxruntime.jsx.call(void 0, _material.Grow,d(c({},m),{children:_jsxruntime.jsx.call(void 0, _material.Paper,{sx:{minWidth:"120px"},children:_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>l(!1),children:_jsxruntime.jsx.call(void 0, _material.MenuList,{autoFocusItem:!0,disablePadding:!0,children:f.map(y=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{onClick:()=>{o?o(y.value):u(y.value),l(!1)},children:y.label},y.value))})})})}))})]})}function vl(e){return _jsxruntime.jsx.call(void 0, L,c({},e))}var rS={Root:xl,Button:vl},oS= exports.ButtonGroup =rS;function bl(e){let i=e,{children:t,sx:r}=i,o=C(i,["children","sx"]),n=hi.default.Children.toArray(t).some(a=>{var l;return hi.default.isValidElement(a)&&((l=a.type)==null?void 0:l.name)==="CardHeader"});return _jsxruntime.jsx.call(void 0, _material.Box,d(c({sx:c({position:"relative",border:a=>`1px solid ${a.palette.divider} `,boxShadow:a=>`1px 2px 4px ${a.palette.divider}`,borderRadius:2,pt:n?2.5:1,pl:1,pr:1,pb:1},r)},o),{children:t}))}function Sl(e){let{children:t}=e,r=hi.default.Children.toArray(t).map(o=>hi.default.isValidElement(o)&&_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:n=>n.palette.background.default,borderRadius:"12px",paddingX:1},children:o}));return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",alignItems:"center",position:"absolute",left:0,right:0,top:"-18px"},children:_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"space-between",height:"32px",ml:2,mr:2},children:r})})}function Pl(e){let{title:t}=e;return _jsxruntime.jsx.call(void 0, _material.Typography,{component:"h6",variant:"h6",children:t})}function Tl(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, "div",{children:t})}var cS={Root:bl,Content:Tl,Header:Sl,Title:Pl},uS= exports.Card =cS;var _lucidereact = require('lucide-react'); var pS = _interopRequireWildcard(_lucidereact);var fS=i=>{var a=i,{name:e,size:t=16,strokeWidth:r=1.5,color:o="currentColor"}=a,n=C(a,["name","size","strokeWidth","color"]);let l=pS[e];return _jsxruntime.jsx.call(void 0, l,c({size:t,strokeWidth:r,color:o},n))},dS= exports.LucidIcon =fS;function kf(e){let{licencas:t,licencaSelecionada:r,onAlterarLicenca:o}=e,[n,i]=_react.useState.call(void 0, "");if(t.length===0)return _jsxruntime.jsxs.call(void 0, _material.Stack,{overflow:"hidden",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{overflow:"hidden",textOverflow:"ellipsis",variant:"body1",children:r.nome}),_jsxruntime.jsx.call(void 0, _material.Typography,{overflow:"hidden",textOverflow:"ellipsis",variant:"body2",children:_hooks.formatDocumento.call(void 0, r.documento)})]});function a(s){i(s)}let l=n.length>0?t.filter(s=>["nome"].some(u=>_hooks.normalizeText.call(void 0, String(s[u])).includes(_hooks.normalizeText.call(void 0, n)))):t;return _jsxruntime.jsxs.call(void 0, dr.Root,{children:[_jsxruntime.jsx.call(void 0, dr.Trigger,{asChild:!0,children:_jsxruntime.jsxs.call(void 0, _material.Button,{sx:{color:s=>s.palette.grey[900]},variant:"text",children:[r.nome,_jsxruntime.jsx.call(void 0, _iconsmaterial.ArrowDropDown,{})]})}),_jsxruntime.jsx.call(void 0, dr.Content,{sx:{"& .MuiPopover-paper":{minWidth:"300px",borderRadius:"12px",p:.5}},children:_jsxruntime.jsxs.call(void 0, Ur.Root,{sx:{m:.5,minWidth:"300px",maxHeight:"300px",overflow:"auto"},children:[_jsxruntime.jsx.call(void 0, it,{autoFocus:!0,onSearch:a}),_jsxruntime.jsx.call(void 0, Ur.Content,{children:l.map(s=>_jsxruntime.jsx.call(void 0, dr.Close,{asChild:!0,children:_jsxruntime.jsx.call(void 0, Ur.Item,{selected:r.uuid===s.uuid,onClick:()=>o(s),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",textOverflow:"ellipsis",children:s.nome}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",textOverflow:"ellipsis",children:_hooks.formatDocumento.call(void 0, s.documento)})]})})},s.uuid))})]})})]})}var bS=_styles.styled.call(void 0, _material.MenuItem,{})(({theme:e})=>({borderRadius:"6px",width:"90%",gap:"16px",margin:"0 auto",padding:"8px 16px",transition:"0.1s ease-in-out","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:e.palette.primary.main},"& .MuiSvgIcon-root":{color:e.palette.primary.main},"& .MuiIcon-root":{color:e.palette.primary.main}},"& .MuiIcon-root":{color:e.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{letterSpacing:"0.5px",color:e.palette.text.secondary,fontSize:e.typography.body1},"& .MuiSvgIcon-root":{fontSize:"24px"}})),CS=e=>_jsxruntime.jsx.call(void 0, bS,c({},e)),Rn=CS;function kl(e){let{menuItem:t,activeMenu:r,onMenuClick:o}=e,[n,i]=_react.useState.call(void 0, !1);if(!t.visible)return null;let a=!!(t!=null&&t.items&&(t==null?void 0:t.items.length)>0);function l(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, Rn,{onClick:()=>{if(t!=null&&t.link){o(t.link);return}l()},selected:r===t.link,children:[!!t.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:t.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:t.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(t==null?void 0:t.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, Bt,{activeMenu:r,sx:{pl:s=>s.spacing(1.5)},menus:(t==null?void 0:t.items)||[],onMenuClick:o})})]})}function Bt(e){let i=e,{menus:t,activeMenu:r,onMenuClick:o}=i,n=C(i,["menus","activeMenu","onMenuClick"]);return _jsxruntime.jsx.call(void 0, _material.List,d(c({component:"nav",disablePadding:!0},n),{children:t.map(a=>_jsxruntime.jsx.call(void 0, kl,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function Il(e){let{menus:t,activeMenu:r,onMenuClick:o}=e,[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:t.map(s=>s.visible?_jsxruntime.jsxs.call(void 0, Rn,{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, Bt,{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 Af=(e,t)=>({width:e,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}),Mf=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(8)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),VS=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:e=>e!=="open"&&e!=="width"})(({theme:e,open:t,width:r})=>c(c({width:r,bgcolor:e.palette.background.paper,boxShadow:"2px 3px 20px -16px rgb(32 32 36 / 30%)",borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},t&&d(c({},Af(r,e)),{"& .MuiDrawer-paper":Af(r,e)})),!t&&d(c({},Mf(e)),{"& .MuiDrawer-paper":Mf(e)})));function Ff(e){let s=e,{open:t,items:r,width:o,activeMenu:n,onMenuClick:i,toggleMenu:a}=s,l=C(s,["open","items","width","activeMenu","onMenuClick","toggleMenu"]);return _jsxruntime.jsxs.call(void 0, VS,d(c({width:o,open:t,onClose:()=>a(!1)},l),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),t&&_jsxruntime.jsx.call(void 0, Bt,{onMenuClick:i,activeMenu:n,menus:r}),!t&&_jsxruntime.jsx.call(void 0, Il,{onMenuClick:i,activeMenu:n,menus:r})]}))}function Rf(e){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},e))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function Df(e){let{user:t}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:t==null?void 0:t.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},e))}function Dn(e){let i=e,{children:t,value:r,index:o}=i,n=C(i,["children","value","index"]);return r!==o?null:_jsxruntime.jsx.call(void 0, _material.Box,d(c({role:"tabpanel",hidden:r!==o,id:`scrollable-auto-tabpanel-${o}`,"aria-labelledby":`scrollable-auto-tab-${o}`,sx:{display:"flex",flexDirection:"column",flexGrow:1}},n),{children:r===o&&t}))}var _reacteasycrop = require('react-easy-crop'); var _reacteasycrop2 = _interopRequireDefault(_reacteasycrop);var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);var _Button = require('@mui/material/Button'); var _Button2 = _interopRequireDefault(_Button);var _Dialog = require('@mui/material/Dialog'); var _Dialog2 = _interopRequireDefault(_Dialog);function Al(e,t){return new Promise(r=>{let o=new Image;o.src=e,o.onload=()=>{let n=document.createElement("canvas");n.width=t.width,n.height=t.height;let i=n.getContext("2d");i&&(i.drawImage(o,t.x,t.y,t.width,t.height,0,0,t.width,t.height),r(n.toDataURL("image/jpeg")))}})}var e2=({onSave:e,src:t})=>{let[r,o]=_react.useState.call(void 0, null),[n,i]=_react.useState.call(void 0, null),[a,l]=_react.useState.call(void 0, {x:0,y:0}),[s,u]=_react.useState.call(void 0, 1),[p,f]=_react.useState.call(void 0, null),[h,m]=_react.useState.call(void 0, !1),y=_react.useCallback.call(void 0, (w,b)=>{f(b)},[]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,alignItems:"center",children:[n?_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:n,alt:"Preview",sx:{width:64,height:64,margin:"auto",mb:2}}):_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:t,sx:{width:64,height:64,margin:"auto",mb:2}}),_jsxruntime.jsxs.call(void 0, "label",{children:[_jsxruntime.jsx.call(void 0, "input",{type:"file",accept:"image/*",onChange:w=>{var k;let b=(k=w.target.files)==null?void 0:k[0];if(!b)return;let S=new FileReader;S.onload=()=>{o(S.result),m(!0)},S.readAsDataURL(b)},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:h,onClose:()=>m(!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:y})}),_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:(w,b)=>u(b)}),_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>$(void 0,null,function*(){if(!r||!p)return;let w=yield Al(r,p);i(w),m(!1),e&&e(w)}),children:"Salvar"})})]})]})]})},Lf=e2;var i2=we().shape({name:fe().required("Informe o nome")});function Dl(e){let{usuario:t,credentialsConfig:r,onUploadComplete:o}=e,{data:n,setData:i,handleChange:a,validate:l,validationErrors:s}=_hooks.useForm.call(void 0, t,i2),[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, !1),[m,y]=_react.useState.call(void 0, !1),{uploadAvatar:g,atualizarUsuario:P}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(t)},[t]),_react.useEffect.call(void 0, ()=>{m&&setTimeout(()=>{y(!1)},3e3)},[m]),_react.useEffect.call(void 0, ()=>{u&&setTimeout(()=>{p(!1)},3e3)},[u]);function w(){l(b=>$(this,null,function*(){try{h(!0),yield P(b),y(!0)}catch(S){p("Ocorreu um erro ao alterar os dados da conta")}finally{h(!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, Lf,{src:n==null?void 0:n.avatarUrl,onSave:b=>{try{g(b),o&&(y(!0),o(!0))}catch(S){p("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,S)}}}),_jsxruntime.jsx.call(void 0, _material.Divider,{}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"h6",children:"Informa\xE7\xF5es da Conta"}),_jsxruntime.jsxs.call(void 0, _material.Grid2,{container:!0,spacing:1.5,children:[_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{disabled:!0,fullWidth:!0,label:"E-mail",value:(n==null?void 0:n.email)||""})}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"name",fullWidth:!0,label:"Nome",value:(n==null?void 0:n.name)||"",onChange:a},s("name")))}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, _material.TextField,{name:"surname",fullWidth:!0,label:"Sobrenome",value:(n==null?void 0:n.surname)||"",onChange:a})})]}),_jsxruntime.jsx.call(void 0, _material.Grid2,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, Se,{children:_jsxruntime.jsx.call(void 0, L,{isLoading:f,onClick:()=>w(),variant:"contained",children:"Salvar"})})}),m&&_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 Bl(e){var y,g,P;let{open:t,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=e,[a,l]=_react.useState.call(void 0, ""),[s,u]=_react.useState.call(void 0, !1),[p,f]=_react.useState.call(void 0, !1),{validarCodigoWhatsapp:h}=_hooks.useCredentials.call(void 0, i);_react.useEffect.call(void 0, ()=>{s&&setTimeout(()=>{u(!1)},3e3)},[s]);function m(){return $(this,null,function*(){try{f(!0);let w=yield h(a);n(w.data)}catch(w){u(w.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, W.Root,{open:t,onClose:w=>r(),maxWidth:"xs",children:[_jsxruntime.jsxs.call(void 0, W.Header,{children:[_jsxruntime.jsx.call(void 0, W.Title,{children:"Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp"}),_jsxruntime.jsx.call(void 0, W.ActionClose,{onClose:r})]}),_jsxruntime.jsx.call(void 0, W.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:`(${(y=o==null?void 0:o.whatsappNumber)==null?void 0:y.slice(0,2)}) ${(g=o==null?void 0:o.whatsappNumber)==null?void 0:g.slice(2,7)}-${(P=o==null?void 0:o.whatsappNumber)==null?void 0:P.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, Rr,{value:a,onChange:w=>{l(w)}}),s&&_jsxruntime.jsx.call(void 0, _material.Alert,{sx:{flexGrow:1},severity:"error",children:s})]})}),_jsxruntime.jsx.call(void 0, W.Footer,{children:_jsxruntime.jsxs.call(void 0, W.Actions,{children:[_jsxruntime.jsx.call(void 0, W.ActionCancelar,{onClick:()=>r()}),_jsxruntime.jsx.call(void 0, W.ActionSalvar,{label:"Verificar",onClick:m,isLoading:p,disabled:a.length!=6})]})})]})}var j9=we().shape({whatsappNumber:fe().required("Informe o n\xFAmero do whastapp").length(15)});function Nl(e){let{usuario:t,credentialsConfig:r,onWhastappSaved:o}=e,[n,i]=_react.useState.call(void 0, !1),[a,l]=_react.useState.call(void 0, !1),{data:s,setData:u,changeValue:p,validate:f,validationErrors:h}=_hooks.useForm.call(void 0, t),[m,y]=_react.useState.call(void 0, !1),[g,P]=_react.useState.call(void 0, !1),{atualizarUsuario:w,gerarWhatsappVerificationCode:b}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{u(t)},[t]);function S(){f(F=>$(this,null,function*(){try{l(!0);let _=yield w(F);o&&o(_.data)}catch(_){}finally{l(!1)}}))}function k(){return $(this,null,function*(){try{y(!0);let F=yield b();P(!0)}catch(F){}finally{y(!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, L,{onClick:()=>{i(!0)},sx:{width:"200px"},fullWidth:!1,variant:"contained",children:"Alterar Senha"}),_jsxruntime.jsx.call(void 0, er,{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, L,{isLoading:a,onClick:S,children:"Salvar Whatsapp"})]}),t.whatsappNumber&&t.whatsappNumber.replace(/\D/g,"").length===11&&!s.whatsappVerifiedAt&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"warning",action:_jsxruntime.jsx.call(void 0, L,{isLoading:m,onClick:k,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, Bl,{open:g,onClose:F=>$(this,null,function*(){P(!1)}),payload:t,credentialsConfig:r,onCodigoVerificado:F=>{u(F),P(!1)}})]})}function Wf(e){let[t,r]=_react.useState.call(void 0, 0),{user:o,setUser:n,credentialsConfig:i}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,direction:"row",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"200px"},children:_jsxruntime.jsxs.call(void 0, _material.Tabs,{orientation:"vertical",value:t,onChange:(a,l)=>{r(l)},sx:{"& .MuiButtonBase-root":{alignItems:"flex-start"}},children:[_jsxruntime.jsx.call(void 0, _material.Tab,{label:"Minha Conta",value:0}),_jsxruntime.jsx.call(void 0, _material.Tab,{label:"Login e Seguran\xE7a",value:1})]})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexGrow:1},children:[_jsxruntime.jsx.call(void 0, Dn,{value:t,index:0,children:_jsxruntime.jsx.call(void 0, Dl,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, Dn,{value:t,index:1,children:_jsxruntime.jsx.call(void 0, Nl,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}exports.AlterarLicenca = kf; exports.AlterarSenha = er; exports.Avatar = Df; exports.Breadcrumbs = Op; exports.Button = L; exports.ButtonContainer = Se; exports.ButtonGroup = oS; exports.Card = uS; exports.Checkbox = jl; exports.ColorsGrid = Yl; exports.Content = Rf; exports.ContentTitle = _C; exports.CurrencyCellStyle = ZP; exports.CurrencyTextField = Pd; exports.DataTable = um; exports.DataTableOptions = Un; exports.DataTableV2 = Pw; exports.DeleteContainer = Gn; exports.Dialog = He; exports.DialogV2 = W; exports.DrawerMenu = Ff; exports.Editable = jo; exports.Filter = g1; exports.FilterApiContext = Vp; exports.FilterContainer = Qn; exports.FilterControl = to; exports.FilterDataContext = Np; exports.FilterProvider = zp; exports.Flag = gc; exports.FormContainer = ei; exports.Header = qb; exports.Icon = xe; exports.LabelValue = hu; exports.List = Ur; exports.LucidIcon = dS; exports.Menu = AC; exports.MioAuth = Cp; exports.OptionStyles = KP; exports.PageTitle = wu; exports.PasswordTextField = bt; exports.Popover = dr; exports.Profile = Wf; exports.SearchTextField = it; exports.Surface = Lt; exports.Tooltip = _t; exports.Transporter = zi; exports.renderMenuItems = EC; exports.theme = U; exports.useDialogs = _core.useDialogs; exports.useFilter = ur; exports.useFilterApi = Me; exports.useMenu = CC;
|
|
11
11
|
/*! Bundled license information:
|
|
12
12
|
|
|
13
13
|
react-is/cjs/react-is.production.min.js:
|