@data-c/ui 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,13 +1,161 @@
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 Hf=Object.create;var Ln=Object.defineProperty,Uf=Object.defineProperties,jf=Object.getOwnPropertyDescriptor,qf=Object.getOwnPropertyDescriptors,Yf=Object.getOwnPropertyNames,Yr=Object.getOwnPropertySymbols,Kf=Object.getPrototypeOf,_n=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable;var Wl=(e,t,r)=>t in e?Ln(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)&&Wl(e,r,t[r]);if(Yr)for(var r of Yr(t))Gl.call(t,r)&&Wl(e,r,t[r]);return e},d=(e,t)=>Uf(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&&Yr)for(var o of Yr(e))t.indexOf(o)<0&&Gl.call(e,o)&&(r[o]=e[o]);return r};var ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zf=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Yf(t))!_n.call(e,n)&&n!==r&&Ln(e,n,{get:()=>t[n],enumerable:!(o=jf(t,n))||o.enumerable});return e};var et=(e,t,r)=>(r=e!=null?Hf(Kf(e)):{},Zf(t||!e||!e.__esModule?Ln(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 wc=ce(U=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,ti=ne?Symbol.for("react.element"):60103,ri=ne?Symbol.for("react.portal"):60106,eo=ne?Symbol.for("react.fragment"):60107,to=ne?Symbol.for("react.strict_mode"):60108,ro=ne?Symbol.for("react.profiler"):60114,oo=ne?Symbol.for("react.provider"):60109,no=ne?Symbol.for("react.context"):60110,oi=ne?Symbol.for("react.async_mode"):60111,io=ne?Symbol.for("react.concurrent_mode"):60111,ao=ne?Symbol.for("react.forward_ref"):60112,so=ne?Symbol.for("react.suspense"):60113,Fm=ne?Symbol.for("react.suspense_list"):60120,lo=ne?Symbol.for("react.memo"):60115,co=ne?Symbol.for("react.lazy"):60116,Rm=ne?Symbol.for("react.block"):60121,Dm=ne?Symbol.for("react.fundamental"):60117,Om=ne?Symbol.for("react.responder"):60118,Bm=ne?Symbol.for("react.scope"):60119;function ve(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ti:switch(e=e.type,e){case oi:case io:case eo:case ro:case to:case so:return e;default:switch(e=e&&e.$$typeof,e){case no:case ao:case co:case lo:case oo:return e;default:return t}}case ri:return t}}}function Cc(e){return ve(e)===io}U.AsyncMode=oi;U.ConcurrentMode=io;U.ContextConsumer=no;U.ContextProvider=oo;U.Element=ti;U.ForwardRef=ao;U.Fragment=eo;U.Lazy=co;U.Memo=lo;U.Portal=ri;U.Profiler=ro;U.StrictMode=to;U.Suspense=so;U.isAsyncMode=function(e){return Cc(e)||ve(e)===oi};U.isConcurrentMode=Cc;U.isContextConsumer=function(e){return ve(e)===no};U.isContextProvider=function(e){return ve(e)===oo};U.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ti};U.isForwardRef=function(e){return ve(e)===ao};U.isFragment=function(e){return ve(e)===eo};U.isLazy=function(e){return ve(e)===co};U.isMemo=function(e){return ve(e)===lo};U.isPortal=function(e){return ve(e)===ri};U.isProfiler=function(e){return ve(e)===ro};U.isStrictMode=function(e){return ve(e)===to};U.isSuspense=function(e){return ve(e)===so};U.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eo||e===io||e===ro||e===to||e===so||e===Fm||typeof e=="object"&&e!==null&&(e.$$typeof===co||e.$$typeof===lo||e.$$typeof===oo||e.$$typeof===no||e.$$typeof===ao||e.$$typeof===Dm||e.$$typeof===Om||e.$$typeof===Bm||e.$$typeof===Rm)};U.typeOf=ve});var Sc=ce(j=>{"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,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function I(E){return typeof E=="string"||typeof E=="function"||E===o||E===u||E===i||E===n||E===f||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===m||E.$$typeof===a||E.$$typeof===s||E.$$typeof===p||E.$$typeof===w||E.$$typeof===v||E.$$typeof===T||E.$$typeof===h)}function P(E){if(typeof E=="object"&&E!==null){var Bn=E.$$typeof;switch(Bn){case t:var qr=E.type;switch(qr){case l:case u:case o:case i:case n:case f:return qr;default:var zl=qr&&qr.$$typeof;switch(zl){case s:case p:case y:case m:case a:return zl;default:return Bn}}case r:return Bn}}}var R=l,_=u,S=s,Z=a,q=t,J=p,F=o,N=y,x=m,b=r,A=i,k=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)||P(E)===l}function B(E){return P(E)===u}function V(E){return P(E)===s}function G(E){return P(E)===a}function z(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function me(E){return P(E)===p}function le(E){return P(E)===o}function Je(E){return P(E)===y}function Nf(E){return P(E)===m}function Vf(E){return P(E)===r}function zf(E){return P(E)===i}function Wf(E){return P(E)===n}function Gf(E){return P(E)===f}j.AsyncMode=R,j.ConcurrentMode=_,j.ContextConsumer=S,j.ContextProvider=Z,j.Element=q,j.ForwardRef=J,j.Fragment=F,j.Lazy=N,j.Memo=x,j.Portal=b,j.Profiler=A,j.StrictMode=k,j.Suspense=M,j.isAsyncMode=O,j.isConcurrentMode=B,j.isContextConsumer=V,j.isContextProvider=G,j.isElement=z,j.isForwardRef=me,j.isFragment=le,j.isLazy=Je,j.isMemo=Nf,j.isPortal=Vf,j.isProfiler=zf,j.isStrictMode=Wf,j.isSuspense=Gf,j.isValidElementType=I,j.typeOf=P}()});var ii=ce((dT,ni)=>{"use strict";process.env.NODE_ENV==="production"?ni.exports=wc():ni.exports=Sc()});var kc=ce((mT,Tc)=>{"use strict";var Pc=Object.getOwnPropertySymbols,Lm=Object.prototype.hasOwnProperty,_m=Object.prototype.propertyIsEnumerable;function $m(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Nm(){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}}Tc.exports=Nm()?Object.assign:function(e,t){for(var r,o=$m(e),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)Lm.call(r,a)&&(o[a]=r[a]);if(Pc){n=Pc(r);for(var s=0;s<n.length;s++)_m.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o}});var uo=ce((hT,Ic)=>{"use strict";var Vm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ic.exports=Vm});var ai=ce((gT,Ec)=>{Ec.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Dc=ce((yT,Rc)=>{"use strict";var si=function(){};process.env.NODE_ENV!=="production"&&(Ac=uo(),po={},Mc=ai(),si=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});var Ac,po,Mc;function Fc(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in e)if(Mc(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,Ac)}catch(u){a=u}if(a&&!(a instanceof Error)&&si((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 po)){po[a.message]=!0;var l=n?n():"";si("Failed "+r+" type: "+a.message+(l!=null?l:""))}}}}Fc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(po={})};Rc.exports=Fc});var Lc=ce((xT,Bc)=>{"use strict";var zm=ii(),Wm=kc(),$t=uo(),li=ai(),Oc=Dc(),Nt=function(){};process.env.NODE_ENV!=="production"&&(Nt=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function fo(){return null}Bc.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:g,element:m(),elementType:y(),instanceOf:h,node:I(),objectOf:v,oneOf:w,oneOfType:T,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 k(D,O,B,V,G,z,me){if(V=V||i,z=z||B,me!==$t){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&&(Nt("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 "+G+" `"+z+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new l("The "+G+" `"+z+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:x(O,B,V,G,z)}var M=k.bind(null,!1);return M.isRequired=k.bind(null,!0),M}function p(x){function b(A,k,M,D,O,B){var V=A[k],G=q(V);if(G!==x){var z=J(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(fo)}function g(x){function b(A,k,M,D,O){if(typeof x!="function")return new l("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var B=A[k];if(!Array.isArray(B)){var V=q(B);return new l("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected an array."))}for(var G=0;G<B.length;G++){var z=x(B,G,M,D,O+"["+G+"]",$t);if(z instanceof Error)return z}return null}return u(b)}function m(){function x(b,A,k,M,D){var O=b[A];if(!e(O)){var B=q(O);return new l("Invalid "+M+" `"+D+"` of type "+("`"+B+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return u(x)}function y(){function x(b,A,k,M,D){var O=b[A];if(!zm.isValidElementType(O)){var B=q(O);return new l("Invalid "+M+" `"+D+"` of type "+("`"+B+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return u(x)}function h(x){function b(A,k,M,D,O){if(!(A[k]instanceof x)){var B=x.name||i,V=N(A[k]);return new l("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected ")+("instance of `"+B+"`."))}return null}return u(b)}function w(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Nt("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])."):Nt("Invalid argument supplied to oneOf, expected an array.")),fo;function b(A,k,M,D,O){for(var B=A[k],V=0;V<x.length;V++)if(s(B,x[V]))return null;var G=JSON.stringify(x,function(me,le){var Je=J(le);return Je==="symbol"?String(le):le});return new l("Invalid "+D+" `"+O+"` of value `"+String(B)+"` "+("supplied to `"+M+"`, expected one of "+G+"."))}return u(b)}function v(x){function b(A,k,M,D,O){if(typeof x!="function")return new l("Property `"+O+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var B=A[k],V=q(B);if(V!=="object")return new l("Invalid "+D+" `"+O+"` of type "+("`"+V+"` supplied to `"+M+"`, expected an object."));for(var G in B)if(li(B,G)){var z=x(B,G,M,D,O+"."+G,$t);if(z instanceof Error)return z}return null}return u(b)}function T(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&Nt("Invalid argument supplied to oneOfType, expected an instance of array."),fo;for(var b=0;b<x.length;b++){var A=x[b];if(typeof A!="function")return Nt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(A)+" at index "+b+"."),fo}function k(M,D,O,B,V){for(var G=[],z=0;z<x.length;z++){var me=x[z],le=me(M,D,O,B,V,$t);if(le==null)return null;le.data&&li(le.data,"expectedType")&&G.push(le.data.expectedType)}var Je=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new l("Invalid "+B+" `"+V+"` supplied to "+("`"+O+"`"+Je+"."))}return u(k)}function I(){function x(b,A,k,M,D){return S(b[A])?null:new l("Invalid "+M+" `"+D+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return u(x)}function P(x,b,A,k,M){return new l((x||"React class")+": "+b+" type `"+A+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function R(x){function b(A,k,M,D,O){var B=A[k],V=q(B);if(V!=="object")return new l("Invalid "+D+" `"+O+"` of type `"+V+"` "+("supplied to `"+M+"`, expected `object`."));for(var G in x){var z=x[G];if(typeof z!="function")return P(M,D,O,G,J(z));var me=z(B,G,M,D,O+"."+G,$t);if(me)return me}return null}return u(b)}function _(x){function b(A,k,M,D,O){var B=A[k],V=q(B);if(V!=="object")return new l("Invalid "+D+" `"+O+"` of type `"+V+"` "+("supplied to `"+M+"`, expected `object`."));var G=Wm({},A[k],x);for(var z in G){var me=x[z];if(li(x,z)&&typeof me!="function")return P(M,D,O,z,J(me));if(!me)return new l("Invalid "+D+" `"+O+"` key `"+z+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(A[k],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(x),null," "));var le=me(B,z,M,D,O+"."+z,$t);if(le)return le}return null}return u(b)}function S(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(S);if(x===null||e(x))return!0;var b=n(x);if(b){var A=b.call(x),k;if(b!==x.entries){for(;!(k=A.next()).done;)if(!S(k.value))return!1}else for(;!(k=A.next()).done;){var M=k.value;if(M&&!S(M[1]))return!1}}else return!1;return!0;default:return!1}}function Z(x,b){return x==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function q(x){var b=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":Z(b,x)?"symbol":b}function J(x){if(typeof x=="undefined"||x===null)return""+x;var b=q(x);if(b==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return b}function F(x){var b=J(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=Oc,a.resetWarningCache=Oc.resetWarningCache,a.PropTypes=a,a}});var Vc=ce((vT,Nc)=>{"use strict";var Gm=uo();function _c(){}function $c(){}$c.resetWarningCache=_c;Nc.exports=function(){function e(o,n,i,a,s,l){if(l!==Gm){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:$c,resetWarningCache:_c};return r.PropTypes=r,r}});var mo=ce((bT,ci)=>{process.env.NODE_ENV!=="production"?(zc=ii(),Wc=!0,ci.exports=Lc()(zc.isElement,Wc)):ci.exports=Vc()();var zc,Wc});var jc=ce(Y=>{"use strict";var pi=Symbol.for("react.transitional.element"),fi=Symbol.for("react.portal"),ho=Symbol.for("react.fragment"),go=Symbol.for("react.strict_mode"),yo=Symbol.for("react.profiler");Symbol.for("react.provider");var xo=Symbol.for("react.consumer"),vo=Symbol.for("react.context"),bo=Symbol.for("react.forward_ref"),Co=Symbol.for("react.suspense"),wo=Symbol.for("react.suspense_list"),So=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),Um=Symbol.for("react.view_transition"),jm=Symbol.for("react.client.reference");function Te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case pi:switch(e=e.type,e){case ho:case yo:case go:case Co:case wo:case Um:return e;default:switch(e=e&&e.$$typeof,e){case vo:case bo:case Po:case So:return e;case xo:return e;default:return t}}case fi:return t}}}Y.ContextConsumer=xo;Y.ContextProvider=vo;Y.Element=pi;Y.ForwardRef=bo;Y.Fragment=ho;Y.Lazy=Po;Y.Memo=So;Y.Portal=fi;Y.Profiler=yo;Y.StrictMode=go;Y.Suspense=Co;Y.SuspenseList=wo;Y.isContextConsumer=function(e){return Te(e)===xo};Y.isContextProvider=function(e){return Te(e)===vo};Y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pi};Y.isForwardRef=function(e){return Te(e)===bo};Y.isFragment=function(e){return Te(e)===ho};Y.isLazy=function(e){return Te(e)===Po};Y.isMemo=function(e){return Te(e)===So};Y.isPortal=function(e){return Te(e)===fi};Y.isProfiler=function(e){return Te(e)===yo};Y.isStrictMode=function(e){return Te(e)===go};Y.isSuspense=function(e){return Te(e)===Co};Y.isSuspenseList=function(e){return Te(e)===wo};Y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ho||e===yo||e===go||e===Co||e===wo||typeof e=="object"&&e!==null&&(e.$$typeof===Po||e.$$typeof===So||e.$$typeof===vo||e.$$typeof===xo||e.$$typeof===bo||e.$$typeof===jm||e.getModuleId!==void 0)};Y.typeOf=Te});var qc=ce(K=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(h){if(typeof h=="object"&&h!==null){var w=h.$$typeof;switch(w){case t:switch(h=h.type,h){case o:case i:case n:case u:case p:case m:return h;default:switch(h=h&&h.$$typeof,h){case s:case l:case g:case f:return h;case a:return h;default:return w}}case r:return w}}}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"),g=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");K.ContextConsumer=a,K.ContextProvider=s,K.Element=t,K.ForwardRef=l,K.Fragment=o,K.Lazy=g,K.Memo=f,K.Portal=r,K.Profiler=i,K.StrictMode=n,K.Suspense=u,K.SuspenseList=p,K.isContextConsumer=function(h){return e(h)===a},K.isContextProvider=function(h){return e(h)===s},K.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},K.isForwardRef=function(h){return e(h)===l},K.isFragment=function(h){return e(h)===o},K.isLazy=function(h){return e(h)===g},K.isMemo=function(h){return e(h)===f},K.isPortal=function(h){return e(h)===r},K.isProfiler=function(h){return e(h)===i},K.isStrictMode=function(h){return e(h)===n},K.isSuspense=function(h){return e(h)===u},K.isSuspenseList=function(h){return e(h)===p},K.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===o||h===i||h===n||h===u||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===g||h.$$typeof===f||h.$$typeof===s||h.$$typeof===a||h.$$typeof===l||h.$$typeof===y||h.getModuleId!==void 0)},K.typeOf=e}()});var mi=ce((AT,di)=>{"use strict";process.env.NODE_ENV==="production"?di.exports=jc():di.exports=qc()});var Eu=ce((xM,Iu)=>{"use strict";function yt(e){this._maxSize=e,this.clear()}yt.prototype.clear=function(){this._size=0,this._values=Object.create(null)};yt.prototype.get=function(e){return this._values[e]};yt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var ey=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ku=/^\d+$/,ty=/^\d/,ry=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,oy=/^\s*(['"]?)(.*?)(\1)\s*$/,Ui=512,Su=new yt(Ui),Pu=new yt(Ui),Tu=new yt(Ui);Iu.exports={Cache:yt,split:Hi,normalizePath:Gi,setter:function(e){var t=Gi(e);return Pu.get(e)||Pu.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=Gi(e);return Tu.get(e)||Tu.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+(ji(r)||ku.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){ny(Array.isArray(e)?e:Hi(e),t,r)}};function Gi(e){return Su.get(e)||Su.set(e,Hi(e).map(function(t){return t.replace(oy,"$2")}))}function Hi(e){return e.match(ey)||[""]}function ny(e,t,r){var o=e.length,n,i,a,s;for(i=0;i<o;i++)n=e[i],n&&(sy(n)&&(n='"'+n+'"'),s=ji(n),a=!s&&/^\d+$/.test(n),t.call(r,n,s,a,i,e))}function ji(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function iy(e){return e.match(ty)&&!e.match(ku)}function ay(e){return ry.test(e)}function sy(e){return!ji(e)&&(iy(e)||ay(e))}});var Fu=ce((vM,Mu)=>{var ly=/[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,Uo=e=>e.match(ly)||[],jo=e=>e[0].toUpperCase()+e.slice(1),qi=(e,t)=>Uo(e).join(t).toLowerCase(),Au=e=>Uo(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),cy=e=>jo(Au(e)),uy=e=>qi(e,"_"),py=e=>qi(e,"-"),fy=e=>jo(qi(e," ")),dy=e=>Uo(e).map(jo).join(" ");Mu.exports={words:Uo,upperFirst:jo,camelCase:Au,pascalCase:cy,snakeCase:uy,kebabCase:py,sentenceCase:fy,titleCase:dy}});var Du=ce((bM,Yi)=>{Yi.exports=function(e){return Ru(my(e),e)};Yi.exports.array=Ru;function Ru(e,t){var r=e.length,o=new Array(r),n={},i=r,a=hy(t),s=gy(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 g;try{g=", node was:"+JSON.stringify(u)}catch(h){g=""}throw new Error("Cyclic dependency"+g)}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 my(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 hy(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 gy(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 Jf=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 =Jf;function Se(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},e))}function Ul(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 ut="#4BA9C1",ld="#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"},cd={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:ut,dark:ld},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, ut,.1),boxShadow:`inset 0 0 0 0.5px ${ut}`,borderRadius:"4px","& .MuiTypography-root":{color:ut,fontWeight:500},"& .MuiListItemIcon-root svg":{strokeWidth:2,color:ut}},":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:ut},"& .MuiTypography-root":{color:ut}},":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:{}}}}},ud=_styles.createTheme.call(void 0, cd),pd=_styles.responsiveFontSizes.call(void 0, ud),H= exports.theme =pd;var dd={"primary-light":H.palette.primary.light,primary:H.palette.primary.main,"primary-dark":H.palette.primary.dark,"text-secondary":H.palette.text.secondary,"text-primary":H.palette.text.primary,"background-paper":H.palette.background.paper,background:H.palette.background.default,"error-light":H.palette.error.light,error:H.palette.error.main,"erro-drark":H.palette.error.dark,"warning-light":H.palette.warning.light,warning:H.palette.warning.main,"warning-dark":H.palette.warning.dark,"success-light":H.palette.success.light,success:H.palette.success.main,"success-dark":H.palette.success.dark,"grey-100":H.palette.grey[100],"grey-200":H.palette.grey[200],"grey-300":H.palette.grey[300],"grey-400":H.palette.grey[400],"grey-500":H.palette.grey[500],"grey-600":H.palette.grey[600],"grey-700":H.palette.grey[700],"grey-800":H.palette.grey[800]};function ql(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(dd).map(([e,t])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:t,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:H.typography.fontFamily,color:_polished.getContrast.call(void 0, t,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:e}),_jsxruntime.jsx.call(void 0, "span",{children:t})]})},e))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var hi = _interopRequireWildcard(_react); var tu = _interopRequireWildcard(_react); var Ht = _interopRequireWildcard(_react);function Kl(e){if(!e)return 0;let t=String(e);return t=t.replace(/\./g,"").replace(/,/g,"."),parseFloat(t)}var Nn=null,Zl=_react.forwardRef.call(void 0, (e,t)=>{let l=e,{value:r,onChange:o,sx:n}=l,i=C(l,["value","onChange","sx"]);Nn=null;let a=_react.useCallback.call(void 0, u=>{let p=u.target.value||"0.00";_hooks.isValidNumber.call(void 0, p)&&(Nn==="Backspace"?p=(Kl(p)/10).toFixed(2):p=(Kl(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=>{Nn=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))});Zl.defaultProps={value:0};var bd=Zl;var _iconsmaterial = require('@mui/icons-material');var Ql={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:Ql[o||"content"].cancel,children:t}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>{i&&i()},color:Ql[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var wd={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};tt.defaultProps=wd;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:g=>{if(a!=="content")return g.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:g=>g.palette.grey[500],fontFamily:g=>g.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 zn(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 Wn(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, zn,{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 Nd={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};Wn.defaultProps=Nd;var jd=_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"}})),qd={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},Yd=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:qd[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:t})]})},oc=e=>{let i=e,{type:t,children:r,title:o}=i,n=C(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, jd,d(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, Yd,{title:o||"",type:t}),enterDelay:300},n),{children:r}))};oc.defaultProps={type:"info"};var Bt=oc;var aP=()=>({style:{width:"80px",textAlign:"center"}}),sP= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function Hn(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:g,icon:m,iconButtonProps:y,tooltip:h,visible:w,disabled:v,badge:T})=>w===null||!!w&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:T,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({onClick:I=>t(g,r,I),size:"small",disabled:v},y),{children:[h&&_jsxruntime.jsx.call(void 0, Bt,{type:h.type,title:h.content,children:_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:m})}),!h&&_jsxruntime.jsx.call(void 0, _material.Icon,{fontSize:"small",children:m})]}),g)})),a&&_jsxruntime.jsxs.call(void 0, _material.IconButton,{size:"small",onClick:g=>t("transport",r,g),color:"primary",disabled:l||f,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.GetApp,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, Bt,{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:g=>t("edit",r,g),disabled:l||u,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, Bt,{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:g=>t("delete",r,g),color:"primary",disabled:l||p,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Delete,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, Bt,{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"})})]})]})}Hn.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function Xr(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 g=0;g<f.length;g++){let m=a[f[g]];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 Jr(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})]})}))}Jr.defaultProps={anchor:"right"};var dm=()=>{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"]})]})},mm=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, Jr,d(c({},n),{drawerTitle:t,open:i,children:r,onClose:()=>s(),actions:_jsxruntime.jsx.call(void 0, dm,{})}))};function Zn(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, ),g=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&&g,!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, Xr,{renderLabel:s,disableds:l}),g]}),_jsxruntime.jsx.call(void 0, mm,d(c({},p),{onApplyFilters:a,title:n||"",children:i}))]})}Zn.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function pc(e){let{isFlagged:t,type:r}=e;return t?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function Qn(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 Jn(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:g}=_providers.useFormApi.call(void 0, ),m=o||_jsxruntime.jsx.call(void 0, Qn,{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:()=>{g()}},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 Pm={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};Jn.defaultProps=Pm;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function _t(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 dc(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 mc={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 hc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var km=!1,Im=/[A-Z]|^ms/g,Em=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vc=function(t){return t.charCodeAt(1)===45},gc=function(t){return t!=null&&typeof t!="boolean"},ei=hc(function(e){return vc(e)?e:e.replace(Im,"-$&").toLowerCase()}),yc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Em,function(o,n,i){return $e={name:n,styles:i,next:$e},n})}return mc[t]!==1&&!vc(t)&&typeof r=="number"&&r!==0?r+"px":r},Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gr(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return $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 Mm(e,t,r)}case"function":{if(e!==void 0){var l=$e,u=r(e);return $e=l,gr(e,t,u)}break}}var p=r;if(t==null)return p;var f=t[p];return f!==void 0?f:p}function Mm(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=gr(e,t,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?o+=i+"{"+t[s]+"}":gc(s)&&(o+=ei(i)+":"+yc(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&km)throw new Error(Am);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)gc(a[l])&&(o+=ei(i)+":"+yc(i,a[l])+";");else{var u=gr(e,t,a);switch(i){case"animation":case"animationName":{o+=ei(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}}return o}var xc=/label:\s*([^\s;{]+)\s*(;|$)/g,$e;function bc(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+=gr(r,t,i);else{var a=i;n+=a[0]}for(var s=1;s<e.length;s++)if(n+=gr(r,t,e[s]),o){var l=i;n+=l[s]}xc.lastIndex=0;for(var u="",p;(p=xc.exec(n))!==null;)u+="-"+p[1];var f=dc(n)+u;return{name:f,styles:n,next:$e}}var _react2 = require('@emotion/react');function ui(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 Hc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Gc=[];function Ue(e){return Gc[0]=e,bc(Gc)}var gi=et(mi(),1);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 Yc(e){if(hi.isValidElement(e)||(0,gi.isValidElementType)(e)||!Ne(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Yc(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,gi.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])?Yc(t[n]):t[n]:o[n]=t[n]}),o}var qm=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>d(c({},r),{[o.key]:o.val}),{})};function yi(e){let g=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=g,n=C(g,["values","unit","step"]),i=qm(t),a=Object.keys(i);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-o/100}${r})`}function u(m,y){let h=a.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:y)-o/100}${r})`}function p(m){return a.indexOf(m)+1<a.length?u(m,a[a.indexOf(m)+1]):s(m)}function f(m){let y=a.indexOf(m);return y===0?s(a[1]):y===a.length-1?l(a[y]):u(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return c({keys:a,values:i,up:s,down:l,between:u,only:p,not:f,unit:r},n)}function To(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,n)=>{var a,s;let i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((s=n.match(i))==null?void 0:s[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 xi(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function vi(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\`.`:_t(18,`(${t})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(n).up(i)}function ko(e){let t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{let l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}let o={},n=i=>(r(o,i),o);return r(n),d(c({},e),{containerQueries:n})}var Ym={borderRadius:4},Kc=Ym;var Vt=et(mo(),1),Km=process.env.NODE_ENV!=="production"?Vt.default.oneOfType([Vt.default.number,Vt.default.string,Vt.default.object,Vt.default.array]):{},be=Km;function Zm(e,t){return t?ke(e,t,{clone:!1}):e}var je=Zm;var yr={xs:0,sm:600,md:900,lg:1200,xl:1536},Zc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yr[e]}px)`},Qm={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:yr[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||Zc;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){let i=o.breakpoints||Zc;return Object.keys(t).reduce((a,s)=>{if(xi(i.keys,s)){let l=vi(o.containerQueries?o:Qm,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(i.values||yr).includes(s)){let l=i.up(s);a[l]=r(t[s],s)}else{let l=s;a[l]=t[l]}return a},{})}return r(t)}function bi(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,n)=>{let i=e.up(n);return o[i]={},o},{}))||{}}function Io(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function Qc(e,...t){let r=bi(e),o=[r,...t].reduce((n,i)=>ke(n,i),{});return Io(Object.keys(r),o)}function Xm(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 Eo({values:e,breakpoints:t,base:r}){let o=r||Xm(e,t),n=Object.keys(o);if(n.length===0)return e;let i;return n.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function ot(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":_t(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zt(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 xr(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=zt(e,r)||o,t&&(n=t(n,o,e)),n}function Jm(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,i=a=>{if(a[t]==null)return null;let s=a[t],l=a.theme,u=zt(l,o)||{};return ie(a,s,f=>{let g=xr(u,n,f);return f===g&&typeof f=="string"&&(g=xr(u,n,`${t}${f==="default"?"":ot(f)}`,f)),r===!1?g:{[r]:g}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:be}:{},i.filterProps=[t],i}var Q=Jm;function Ao(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var eh={m:"margin",p:"padding"},th={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rh=Ao(e=>{if(e.length>2)if(Xc[e])e=Xc[e];else return[e];let[t,r]=e.split(""),o=eh[t],n=th[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),Mo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ci=[...Mo,...Fo];function dt(e,t,r,o){var i;let n=(i=zt(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"?n.startsWith("var(")&&a===0?0:n.startsWith("var(")&&a===1?n:`calc(${a} * ${n})`:n*a):Array.isArray(n)?a=>{if(typeof a=="string")return a;let s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>n.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${s} > ${n.length-1}, you need to add the missing values.`].join(`
5
- `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
6
- `)));let l=n[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
7
- `)),()=>{})}function vr(e){return dt(e,"spacing",8,"spacing")}function Ve(e,t){return typeof t=="string"||t==null?t:e(t)}function oh(e,t){return r=>e.reduce((o,n)=>(o[n]=Ve(t,r),o),{})}function nh(e,t,r,o){if(!t.includes(r))return null;let n=rh(r),i=oh(n,o),a=e[r];return ie(e,a,i)}function wi(e,t){let r=vr(e.theme);return Object.keys(e).map(o=>nh(e,t,o,r)).reduce(je,{})}function te(e){return wi(e,Mo)}te.propTypes=process.env.NODE_ENV!=="production"?Mo.reduce((e,t)=>(e[t]=be,e),{}):{};te.filterProps=Mo;function re(e){return wi(e,Fo)}re.propTypes=process.env.NODE_ENV!=="production"?Fo.reduce((e,t)=>(e[t]=be,e),{}):{};re.filterProps=Fo;function Jc(e){return wi(e,Ci)}Jc.propTypes=process.env.NODE_ENV!=="production"?Ci.reduce((e,t)=>(e[t]=be,e),{}):{};Jc.filterProps=Ci;function Si(e=8,t=vr({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 ih(...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=ih;function Ce(e){return typeof e!="number"?e:`${e}px solid`}function Ie(e,t){return Q({prop:e,themeKey:"borders",transform:t})}var ah=Ie("border",Ce),sh=Ie("borderTop",Ce),lh=Ie("borderRight",Ce),ch=Ie("borderBottom",Ce),uh=Ie("borderLeft",Ce),ph=Ie("borderColor"),fh=Ie("borderTopColor"),dh=Ie("borderRightColor"),mh=Ie("borderBottomColor"),hh=Ie("borderLeftColor"),gh=Ie("outline",Ce),yh=Ie("outlineColor"),br=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=dt(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Ve(t,o)});return ie(e,e.borderRadius,r)}return null};br.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:be}:{};br.filterProps=["borderRadius"];var Rk=qe(ah,sh,lh,ch,uh,ph,fh,dh,mh,hh,br,gh,yh);var Cr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=dt(e.theme,"spacing",8,"gap"),r=o=>({gap:Ve(t,o)});return ie(e,e.gap,r)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{gap:be}:{};Cr.filterProps=["gap"];var wr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=dt(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Ve(t,o)});return ie(e,e.columnGap,r)}return null};wr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:be}:{};wr.filterProps=["columnGap"];var Sr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=dt(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Ve(t,o)});return ie(e,e.rowGap,r)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:be}:{};Sr.filterProps=["rowGap"];var xh=Q({prop:"gridColumn"}),vh=Q({prop:"gridRow"}),bh=Q({prop:"gridAutoFlow"}),Ch=Q({prop:"gridAutoColumns"}),wh=Q({prop:"gridAutoRows"}),Sh=Q({prop:"gridTemplateColumns"}),Ph=Q({prop:"gridTemplateRows"}),Th=Q({prop:"gridTemplateAreas"}),kh=Q({prop:"gridArea"}),Nk=qe(Cr,wr,Sr,xh,vh,bh,Ch,wh,Sh,Ph,Th,kh);function mt(e,t){return t==="grey"?t:e}var Ih=Q({prop:"color",themeKey:"palette",transform:mt}),Eh=Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mt}),Ah=Q({prop:"backgroundColor",themeKey:"palette",transform:mt}),Gk=qe(Ih,Eh,Ah);function he(e){return e<=1&&e!==0?`${e*100}%`:e}var Mh=Q({prop:"width",transform:he}),Ro=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])||yr[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:he(r)}};return ie(e,e.maxWidth,t)}return null};Ro.filterProps=["maxWidth"];var Fh=Q({prop:"minWidth",transform:he}),Rh=Q({prop:"height",transform:he}),Dh=Q({prop:"maxHeight",transform:he}),Oh=Q({prop:"minHeight",transform:he}),Yk=Q({prop:"size",cssProperty:"width",transform:he}),Kk=Q({prop:"size",cssProperty:"height",transform:he}),Bh=Q({prop:"boxSizing"}),Zk=qe(Mh,Ro,Fh,Rh,Dh,Oh,Bh);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:br},color:{themeKey:"palette",transform:mt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mt},backgroundColor:{themeKey:"palette",transform:mt},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:Cr},rowGap:{style:Sr},columnGap:{style:wr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:he},maxWidth:{style:Ro},minWidth:{transform:he},height:{transform:he},maxHeight:{transform:he},minHeight:{transform:he},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Wt=Lh;function _h(...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 $h(e,t){return typeof e=="function"?e(t):e}function Nh(){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 g=zt(n,u)||{};return f?f(a):ie(a,o,y=>{let h=xr(g,p,y);return y===h&&typeof y=="string"&&(h=xr(g,p,`${r}${y==="default"?"":ot(y)}`,y)),l===!1?h:{[l]:h}})}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:Wt;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=bi(n.breakpoints),g=Object.keys(f),m=f;return Object.keys(p).forEach(y=>{let h=$h(p[y],n);if(h!=null)if(typeof h=="object")if(a[y])m=je(m,e(y,h,n,a));else{let w=ie({theme:n},h,v=>({[y]:v}));_h(w,h)?m[y]=t({sx:h,theme:n,nested:!0}):m=je(m,w)}else m=je(m,e(y,h,n,a))}),!i&&n.modularCssLayers?{"@layer sx":To(n,Io(g,m))}:To(n,Io(g,m))}return Array.isArray(o)?o.map(s):s(o)}return t}var eu=Nh();eu.filterProps=["sx"];var Gt=eu;function Pi(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 Vh(e={},...t){let p=e,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=p,a=C(p,["breakpoints","palette","spacing","shape"]),s=yi(r),l=Si(n),u=ke({breakpoints:s,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:l,shape:c(c({},Kc),i)},a);return u=ko(u),u.applyStyles=Pi,u=t.reduce((f,g)=>ke(f,g),u),u.unstable_sxConfig=c(c({},Wt),a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(g){return Gt({sx:g,theme:this})},u}var ht=Vh;function zh(e){return Object.keys(e).length===0}function Wh(e=null){let t=tu.useContext(_react2.ThemeContext);return!t||zh(t)?e:t}var Ti=Wh;var Gh=ht();function Hh(e=Gh){return Ti(e)}var ki=Hh;var Uh=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:Wt;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Do(e){let a=e,{sx:t}=a,r=C(a,["sx"]),{systemProps:o,otherProps:n}=Uh(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 ru=e=>e,jh=()=>{let e=ru;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ru}}},qh=jh(),Ii=qh;function ou(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=ou(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Yh(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ou(e))&&(o&&(o+=" "),o+=t);return o}var Oo=Yh;var Kh={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 Bo(e,t,r="Mui"){let o=Kh[t];return o?`${r}-${o}`:`${Ii.generate(e)}-${t}`}var Lo=et(mi(),1);function iu(e,t=""){return e.displayName||e.name||t}function nu(e,t,r){let o=iu(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function _o(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lo.ForwardRef:return nu(e,e.render,"ForwardRef");case Lo.Memo:return nu(e,e.type,"memo");default:return}}}function Ei(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 Zh=ht();function Ai(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function gt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Qh(e){return e?(t,r)=>r[e]:null}function Xh(e,t,r){e.theme=tg(e.theme)?r:e.theme[t]||e.theme}function $o(e,t,r){let o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(i=>$o(e,i,r));if(Array.isArray(o==null?void 0:o.variants)){let i;if(o.isProcessed)i=r?gt(o.style,r):o.style;else{let n=o,{variants:a}=n,s=C(n,["variants"]);i=r?gt(Ue(s),r):s}return au(e,o.variants,[i],r)}return o!=null&&o.isProcessed?r?gt(Ue(o.style),r):o.style:r?gt(Ue(o),r):o}function au(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?gt(Ue(s.style(n)),o):s.style(n))):r.push(o?gt(Ue(s.style),o):s.style)}return r}function No(e={}){let{themeId:t,defaultTheme:r=Zh,rootShouldForwardProp:o=Ai,slotShouldForwardProp:n=Ai}=e;function i(s){Xh(s,t,r)}return(s,l={})=>{Hc(s,S=>S.filter(Z=>Z!==Gt));let _=l,{name:u,slot:p,skipVariantsResolver:f,skipSx:g,overridesResolver:m=Qh(su(p))}=_,y=C(_,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),h=u&&u.startsWith("Mui")||p?"components":"custom",w=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,v=g||!1,T=Ai;p==="Root"||p==="root"?T=o:p?T=n:rg(s)&&(T=void 0);let I=ui(s,c({shouldForwardProp:T,label:eg(u,p)},y)),P=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(q){return $o(q,S,q.theme.modularCssLayers?h:void 0)};if(Ne(S)){let Z=Ei(S);return function(J){return Z.variants?$o(J,Z,J.theme.modularCssLayers?h:void 0):J.theme.modularCssLayers?gt(Z.style,h):Z.style}}return S},R=(...S)=>{let Z=[],q=S.map(P),J=[];if(Z.push(i),u&&m&&J.push(function(b){var D,O;let k=(O=(D=b.theme.components)==null?void 0:D[u])==null?void 0:O.styleOverrides;if(!k)return null;let M={};for(let B in k)M[B]=$o(b,k[B],b.theme.modularCssLayers?"theme":void 0);return m(b,M)}),u&&!w&&J.push(function(b){var M,D;let A=b.theme,k=(D=(M=A==null?void 0:A.components)==null?void 0:M[u])==null?void 0:D.variants;return k?au(b,k,[],b.theme.modularCssLayers?"theme":void 0):null}),v||J.push(Gt),Array.isArray(q[0])){let x=q.shift(),b=new Array(Z.length).fill(""),A=new Array(J.length).fill(""),k;k=[...b,...x,...A],k.raw=[...b,...x.raw,...A],Z.unshift(k)}let F=[...Z,...q,...J],N=I(...F);return s.muiName&&(N.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=Jh(u,p,s)),N};return I.withConfig&&(R.withConfig=I.withConfig),R}}function Jh(e,t,r){return e?`${e}${ot(t||"")}`:`Styled(${_o(r)})`}function eg(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${su(t||"Root")}`),r}function tg(e){for(let t in e)return!1;return!0}function rg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function su(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var og=No(),Mi=og;function Pr(e,t,r=!1){let o=c({},t);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let i=n;if(i==="components"||i==="slots")o[i]=c(c({},e[i]),o[i]);else if(i==="componentsProps"||i==="slotProps"){let a=e[i],s=t[i];if(!s)o[i]=a||{};else if(!a)o[i]=s;else{o[i]=c({},s);for(let l in a)if(Object.prototype.hasOwnProperty.call(a,l)){let u=l;o[i][u]=Pr(a[u],s[u],r)}}}else i==="className"&&r&&t.className?o.className=Oo(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&r&&t.style?o.style=c(c({},e==null?void 0:e.style),t==null?void 0:t.style):o[i]===void 0&&(o[i]=e[i])}return o}function Fi(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Pr(t.components[r].defaultProps,o)}function Vo({props:e,name:t,defaultTheme:r,themeId:o}){let n=ki(r);return o&&(n=n[o]||n),Fi({theme:n,name:t,props:e})}function zo(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 X=et(mo(),1);var ee=et(mo(),1);var ig=ht(),ag=Mi("div",{name:"MuiStack",slot:"Root"});function sg(e){return Vo({props:e,name:"MuiStack",defaultTheme:ig})}function lg(e,t){let r=Ht.Children.toArray(e).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(Ht.cloneElement(t,{key:`separator-${i}`})),o),[])}var cg=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ug=({ownerState:e,theme:t})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:t},Eo({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){let o=vr(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=Eo({values:e.direction,base:n}),a=Eo({values:e.spacing,base:n});typeof i=="object"&&Object.keys(i).forEach((l,u,p)=>{if(!i[l]){let g=u>0?i[p[u-1]]:"column";i[l]=g}}),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${cg(u?i[u]:e.direction)}`]:Ve(o,l)}}))}return r=Qc(t.breakpoints,r),r};function Ri(e={}){let{createStyledComponent:t=ag,useThemeProps:r=sg,componentName:o="MuiStack"}=e,n=()=>zo({root:["root"]},l=>Bo(o,l),{}),i=t(ug),a=Ht.forwardRef(function(l,u){let p=r(l),_=Do(p),{component:g="div",direction:m="column",spacing:y=0,divider:h,children:w,className:v,useFlexGap:T=!1}=_,I=C(_,["component","direction","spacing","divider","children","className","useFlexGap"]),P={direction:m,spacing:y,useFlexGap:T},R=n();return _jsxruntime.jsx.call(void 0, i,d(c({as:g,ownerState:P,ref:u,className:Oo(R.root,v)},I),{children:h?lg(w,h):w}))});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 lu=Ri();process.env.NODE_ENV!=="production"&&(lu.propTypes={children:X.default.node,component:X.default.elementType,direction:X.default.oneOfType([X.default.oneOf(["column-reverse","column","row-reverse","row"]),X.default.arrayOf(X.default.oneOf(["column-reverse","column","row-reverse","row"])),X.default.object]),divider:X.default.node,spacing:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.number,X.default.string])),X.default.number,X.default.object,X.default.string]),sx:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.func,X.default.object,X.default.bool])),X.default.func,X.default.object]),useFlexGap:X.default.bool});var Wo=lu;var mg=_styled2.default.call(void 0, (0, _material.Typography))(({theme:e})=>({fontWeight:"bold"}));function pu(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, Wo,{children:_jsxruntime.jsx.call(void 0, mg,d(c({},o),{children:t}))}),_jsxruntime.jsx.call(void 0, Wo,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function Ho(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:g,onKeyDown:m,onChange:y}=_,h=C(_,["InputProps","value","onKeyDown","onChange"]),[w,v]=_react.useState.call(void 0, !1),[T,I]=_react.useState.call(void 0, !1),[P,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&&I(!0)},[p]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!w&&!u&&!T&&_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:P})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{v(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(w||u||T)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>v(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:u,autoFocus:!0,value:P,error:T,onKeyDown:S=>{S.key==="Enter"&&(r(P),v(!1)),S.key==="Escape"&&(R(n),v(!1),I(!1),o&&o(n,P))},onChange:S=>{let Z=S.target.value;R(Z)},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!=P&&r(P),v(!1)},edge:"end",children:n!=P?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},h))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function nt(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 yu(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,g]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{g(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 h(v){s&&localStorage.setItem(s,v),a&&a(v)}let w={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, Ho,{typographyProps:w,value:f,onChange:v=>{i&&i(v)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,d(c({},w),{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, nt,{inputRef:m,autoFocus:!0,onSearch:h}),r]})]})}))}function Vi(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:g,filterOptions:m,optionKeyName:y}=F,h=C(F,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:w,openDialog:v,closeDialog:T}=_hooks.useDialog.call(void 0, ),[I,P]=_react.useState.call(void 0, null),R=i||hi.default.Fragment,_=_lodash2.default.debounce(N=>u(N),500),S=_react.useCallback.call(void 0, (N,x)=>$(this,null,function*(){_(x)}),[_]),Z=_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,""),k=d(c({},x),{[y]:A});l&&l(k);return}l&&l(x)},[l]);function q(N,x=!1,b=!1){var A;if(N){let k=hi.default.Children.toArray((A=N.props)==null?void 0:A.children),M=k.length===1?0:1;return k.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&&k.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,{},k)}return N}function J(N,x){if(!y)return N;let A=_material.createFilterOptions.call(void 0, )(N,x),{inputValue:k}=x,M=N.some(D=>k===D[y]);return k!==""&&!M&&A.push({[y]:`Adicionar op\xE7\xE3o: "${k}"`}),A}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Autocomplete,{disabled:g,loadingText:"Carregando...",loading:n,onChange:Z,value:t,onInputChange:S,options:o,getOptionLabel:p,filterOptions:J,renderInput:N=>_jsxruntime.jsx.call(void 0, _material.TextField,c(d(c({label:r,onDoubleClick:()=>{g||v()}},N),{InputProps:d(c({},N.InputProps),{endAdornment:q(N.InputProps.endAdornment,n,g)}),disabled:g}),h)),clearIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.BackspaceOutlined,{}),componentsProps:{clearIndicator:{sx:{visibility:"visible"}}},noOptionsText:"Nenhum registro"}),_jsxruntime.jsx.call(void 0, _providers.FormProvider,{children:_jsxruntime.jsx.call(void 0, He,d(c({open:w,onClose:()=>T(),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, nt,{placeholder:"Pesquisar",onSearch:N=>P(N)}),i&&_jsxruntime.jsx.call(void 0, R,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:I,enableTransporter:!0,onTransport:N=>{T(),l&&l(N)}},s))]})}))})]})}var jg={dialogProps:{maxWidth:"md",fullWidth:!0}};Vi.defaultProps=jg;function zi(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 Wi(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(Eu()),Tr=et(Fu()),$u=et(Du());var yy=Object.prototype.toString,xy=Error.prototype.toString,vy=RegExp.prototype.toString,by=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",Cy=/^Symbol\((.*)\)(.*)$/;function wy(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Ou(e,t=!1){if(e==null||e===!0||e===!1)return""+e;let r=typeof e;if(r==="number")return wy(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return by.call(e).replace(Cy,"Symbol($1)");let o=yy.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+xy.call(e)+"]":o==="RegExp"?vy.call(e):null}function Ze(e,t){let r=Ou(e,t);return r!==null?r:JSON.stringify(e,function(o,n){let i=Ou(this[o],t);return i!==null?i:n},2)}function Nu(e){return e==null?[]:[].concat(e)}var Vu,zu,Wu,Sy=/\$\{\s*(\w+)\s*\}/g;Vu=Symbol.toStringTag;var Qo=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[Vu]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],Nu(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]}};zu=Symbol.hasInstance;Wu=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(Sy,(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 Qo(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[Wu]="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[zu](t){return Qo[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}},ge={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},at={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ki={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Zi={isValue:"${path} field must be ${value}"},Yo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Ko={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"},Gu={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)}},CM=Object.assign(Object.create(null),{mixed:ze,string:ge,number:at,date:Ki,object:Yo,array:Ko,boolean:Zi,tuple:Gu}),an=e=>e&&e.__isYupSchema__,qt=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 qt(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(!an(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},qo={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]===qo.context,this.isValue=this.key[0]===qo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?qo.context:this.isValue?qo.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 Ut(e){function t({value:r,path:o="",options:n,originalValue:i,schema:a},s,l){let{name:u,test:p,params:f,message:g,skipAbsent:m}=e,{parent:y,context:h,abortEarly:w=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=n,T={value:r,parent:y,context:h};function I(F={}){let N=Hu(Object.assign({value:r,originalValue:i,label:a.spec.label,path:F.path||o,spec:a.spec,disableStackTrace:F.disableStackTrace||v},f,F.params),T),x=new ae(ae.formatError(F.message||g,N),r,N.path,F.type||u,N.disableStackTrace);return x.params=N,x}let P=w?s:l,R={path:o,parent:y,type:u,from:n.from,createError:I,resolve(F){return Uu(F,T)},options:n,originalValue:i,schema:a},_=F=>{ae.isError(F)?P(F):F?l(null):P(I())},S=F=>{ae.isError(F)?P(F):s(F)};if(m&&Re(r))return _(!0);let q;try{var J;if(q=p.call(R,r,R),typeof((J=q)==null?void 0:J.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(q).then(_,S)}}catch(F){S(F);return}_(q)}return t.OPTIONS=e,t}function Hu(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=Uu(e[r],t);return e}function Uu(e,t){return Qe.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Py(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",g=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&&g>=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[g],e=f?e.spec.types[g]: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 Yt=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 Yt(this.values())}merge(t,r){let o=this.clone();return t.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function jt(e,t=new Map){if(an(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]=jt(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,jt(n,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let o of e)r.add(jt(o,t))}else if(e instanceof Object){r={},t.set(e,r);for(let[o,n]of Object.entries(e))r[o]=jt(n,t)}else throw Error(`Unable to clone ${e}`);return r}function Ty(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 ky(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(o=>({message:o,path:Ty(r)}))}function ju(e,t){var r;if(!((r=e.inner)!=null&&r.length)&&e.errors.length)return ky(e,t);let o=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(n=>ju(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 Yt,this._blacklist=new Yt,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=jt(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}".
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 wd=Object.create;var Zn=Object.defineProperty,Sd=Object.defineProperties,Pd=Object.getOwnPropertyDescriptor,Td=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertyNames,no=Object.getOwnPropertySymbols,Id=Object.getPrototypeOf,Qn=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable;var lu=(t,e,r)=>e in t?Zn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,c=(t,e)=>{for(var r in e||(e={}))Qn.call(e,r)&&lu(t,r,e[r]);if(no)for(var r of no(e))uu.call(e,r)&&lu(t,r,e[r]);return t},d=(t,e)=>Sd(t,Td(e));var C=(t,e)=>{var r={};for(var o in t)Qn.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&no)for(var o of no(t))e.indexOf(o)<0&&uu.call(t,o)&&(r[o]=t[o]);return r};var ue=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ed=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kd(e))!Qn.call(t,n)&&n!==r&&Zn(t,n,{get:()=>e[n],enumerable:!(o=Pd(e,n))||o.enumerable});return t};var ot=(t,e,r)=>(r=t!=null?wd(Id(t)):{},Ed(e||!t||!t.__esModule?Zn(r,"default",{value:t,enumerable:!0}):r,t));var z=(t,e,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(t,e)).next())});var ec=ue(G=>{"use strict";var ne=typeof Symbol=="function"&&Symbol.for,Ci=ne?Symbol.for("react.element"):60103,wi=ne?Symbol.for("react.portal"):60106,ho=ne?Symbol.for("react.fragment"):60107,go=ne?Symbol.for("react.strict_mode"):60108,yo=ne?Symbol.for("react.profiler"):60114,bo=ne?Symbol.for("react.provider"):60109,xo=ne?Symbol.for("react.context"):60110,Si=ne?Symbol.for("react.async_mode"):60111,vo=ne?Symbol.for("react.concurrent_mode"):60111,Co=ne?Symbol.for("react.forward_ref"):60112,wo=ne?Symbol.for("react.suspense"):60113,jh=ne?Symbol.for("react.suspense_list"):60120,So=ne?Symbol.for("react.memo"):60115,Po=ne?Symbol.for("react.lazy"):60116,Gh=ne?Symbol.for("react.block"):60121,Uh=ne?Symbol.for("react.fundamental"):60117,qh=ne?Symbol.for("react.responder"):60118,Yh=ne?Symbol.for("react.scope"):60119;function we(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Ci:switch(t=t.type,t){case Si:case vo:case ho:case yo:case go:case wo:return t;default:switch(t=t&&t.$$typeof,t){case xo:case Co:case Po:case So:case bo:return t;default:return e}}case wi:return e}}}function Ju(t){return we(t)===vo}G.AsyncMode=Si;G.ConcurrentMode=vo;G.ContextConsumer=xo;G.ContextProvider=bo;G.Element=Ci;G.ForwardRef=Co;G.Fragment=ho;G.Lazy=Po;G.Memo=So;G.Portal=wi;G.Profiler=yo;G.StrictMode=go;G.Suspense=wo;G.isAsyncMode=function(t){return Ju(t)||we(t)===Si};G.isConcurrentMode=Ju;G.isContextConsumer=function(t){return we(t)===xo};G.isContextProvider=function(t){return we(t)===bo};G.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ci};G.isForwardRef=function(t){return we(t)===Co};G.isFragment=function(t){return we(t)===ho};G.isLazy=function(t){return we(t)===Po};G.isMemo=function(t){return we(t)===So};G.isPortal=function(t){return we(t)===wi};G.isProfiler=function(t){return we(t)===yo};G.isStrictMode=function(t){return we(t)===go};G.isSuspense=function(t){return we(t)===wo};G.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===ho||t===vo||t===yo||t===go||t===wo||t===jh||typeof t=="object"&&t!==null&&(t.$$typeof===Po||t.$$typeof===So||t.$$typeof===bo||t.$$typeof===xo||t.$$typeof===Co||t.$$typeof===Uh||t.$$typeof===qh||t.$$typeof===Yh||t.$$typeof===Gh)};G.typeOf=we});var tc=ue(U=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,n=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,x=t?Symbol.for("react.responder"):60118,T=t?Symbol.for("react.scope"):60119;function I(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===w||E.$$typeof===x||E.$$typeof===T||E.$$typeof===g)}function P(E){if(typeof E=="object"&&E!==null){var Kn=E.$$typeof;switch(Kn){case e:var oo=E.type;switch(oo){case l:case u:case o:case i:case n:case f:return oo;default:var su=oo&&oo.$$typeof;switch(su){case s:case p:case y:case m:case a:return su;default:return Kn}}case r:return Kn}}}var R=l,$=u,S=s,Z=a,q=e,J=p,M=o,_=y,b=m,v=r,A=i,k=n,F=f,O=!1;function D(E){return O||(O=!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)||P(E)===l}function B(E){return P(E)===u}function N(E){return P(E)===s}function H(E){return P(E)===a}function V(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function he(E){return P(E)===p}function le(E){return P(E)===o}function rt(E){return P(E)===y}function yd(E){return P(E)===m}function bd(E){return P(E)===r}function xd(E){return P(E)===i}function vd(E){return P(E)===n}function Cd(E){return P(E)===f}U.AsyncMode=R,U.ConcurrentMode=$,U.ContextConsumer=S,U.ContextProvider=Z,U.Element=q,U.ForwardRef=J,U.Fragment=M,U.Lazy=_,U.Memo=b,U.Portal=v,U.Profiler=A,U.StrictMode=k,U.Suspense=F,U.isAsyncMode=D,U.isConcurrentMode=B,U.isContextConsumer=N,U.isContextProvider=H,U.isElement=V,U.isForwardRef=he,U.isFragment=le,U.isLazy=rt,U.isMemo=yd,U.isPortal=bd,U.isProfiler=xd,U.isStrictMode=vd,U.isSuspense=Cd,U.isValidElementType=I,U.typeOf=P}()});var Ti=ue((cI,Pi)=>{"use strict";process.env.NODE_ENV==="production"?Pi.exports=ec():Pi.exports=tc()});var nc=ue((pI,oc)=>{"use strict";var rc=Object.getOwnPropertySymbols,Kh=Object.prototype.hasOwnProperty,Zh=Object.prototype.propertyIsEnumerable;function Qh(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Xh(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}oc.exports=Xh()?Object.assign:function(t,e){for(var r,o=Qh(t),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)Kh.call(r,a)&&(o[a]=r[a]);if(rc){n=rc(r);for(var s=0;s<n.length;s++)Zh.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o}});var To=ue((fI,ic)=>{"use strict";var Jh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ic.exports=Jh});var ki=ue((dI,ac)=>{ac.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var pc=ue((mI,cc)=>{"use strict";var Ii=function(){};process.env.NODE_ENV!=="production"&&(sc=To(),ko={},lc=ki(),Ii=function(t){var e="Warning: "+t;typeof console!="undefined"&&console.error(e);try{throw new Error(e)}catch(r){}});var sc,ko,lc;function uc(t,e,r,o,n){if(process.env.NODE_ENV!=="production"){for(var i in t)if(lc(t,i)){var a;try{if(typeof t[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 t[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=t[i](e,i,o,r,null,sc)}catch(u){a=u}if(a&&!(a instanceof Error)&&Ii((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 ko)){ko[a.message]=!0;var l=n?n():"";Ii("Failed "+r+" type: "+a.message+(l!=null?l:""))}}}}uc.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(ko={})};cc.exports=uc});var mc=ue((hI,dc)=>{"use strict";var eg=Ti(),tg=nc(),qt=To(),Ei=ki(),fc=pc(),Yt=function(){};process.env.NODE_ENV!=="production"&&(Yt=function(t){var e="Warning: "+t;typeof console!="undefined"&&console.error(e);try{throw new Error(e)}catch(r){}});function Io(){return null}dc.exports=function(t,e){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(b){var v=b&&(r&&b[r]||b[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:I(),objectOf:x,oneOf:w,oneOfType:T,shape:R,exact:$};function s(b,v){return b===v?b!==0||1/b===1/v:b!==b&&v!==v}function l(b,v){this.message=b,this.data=v&&typeof v=="object"?v:{},this.stack=""}l.prototype=Error.prototype;function u(b){if(process.env.NODE_ENV!=="production")var v={},A=0;function k(O,D,B,N,H,V,he){if(N=N||i,V=V||B,he!==qt){if(e){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 rt=N+":"+B;!v[rt]&&A<3&&(Yt("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+N+"`. 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[rt]=!0,A++)}}return D[B]==null?O?D[B]===null?new l("The "+H+" `"+V+"` is marked as required "+("in `"+N+"`, but its value is `null`.")):new l("The "+H+" `"+V+"` is marked as required in "+("`"+N+"`, but its value is `undefined`.")):null:b(D,B,N,H,V)}var F=k.bind(null,!1);return F.isRequired=k.bind(null,!0),F}function p(b){function v(A,k,F,O,D,B){var N=A[k],H=q(N);if(H!==b){var V=J(N);return new l("Invalid "+O+" `"+D+"` of type "+("`"+V+"` supplied to `"+F+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return u(v)}function f(){return u(Io)}function h(b){function v(A,k,F,O,D){if(typeof b!="function")return new l("Property `"+D+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var B=A[k];if(!Array.isArray(B)){var N=q(B);return new l("Invalid "+O+" `"+D+"` of type "+("`"+N+"` supplied to `"+F+"`, expected an array."))}for(var H=0;H<B.length;H++){var V=b(B,H,F,O,D+"["+H+"]",qt);if(V instanceof Error)return V}return null}return u(v)}function m(){function b(v,A,k,F,O){var D=v[A];if(!t(D)){var B=q(D);return new l("Invalid "+F+" `"+O+"` of type "+("`"+B+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return u(b)}function y(){function b(v,A,k,F,O){var D=v[A];if(!eg.isValidElementType(D)){var B=q(D);return new l("Invalid "+F+" `"+O+"` of type "+("`"+B+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return u(b)}function g(b){function v(A,k,F,O,D){if(!(A[k]instanceof b)){var B=b.name||i,N=_(A[k]);return new l("Invalid "+O+" `"+D+"` of type "+("`"+N+"` supplied to `"+F+"`, expected ")+("instance of `"+B+"`."))}return null}return u(v)}function w(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Yt("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])."):Yt("Invalid argument supplied to oneOf, expected an array.")),Io;function v(A,k,F,O,D){for(var B=A[k],N=0;N<b.length;N++)if(s(B,b[N]))return null;var H=JSON.stringify(b,function(he,le){var rt=J(le);return rt==="symbol"?String(le):le});return new l("Invalid "+O+" `"+D+"` of value `"+String(B)+"` "+("supplied to `"+F+"`, expected one of "+H+"."))}return u(v)}function x(b){function v(A,k,F,O,D){if(typeof b!="function")return new l("Property `"+D+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var B=A[k],N=q(B);if(N!=="object")return new l("Invalid "+O+" `"+D+"` of type "+("`"+N+"` supplied to `"+F+"`, expected an object."));for(var H in B)if(Ei(B,H)){var V=b(B,H,F,O,D+"."+H,qt);if(V instanceof Error)return V}return null}return u(v)}function T(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&Yt("Invalid argument supplied to oneOfType, expected an instance of array."),Io;for(var v=0;v<b.length;v++){var A=b[v];if(typeof A!="function")return Yt("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(A)+" at index "+v+"."),Io}function k(F,O,D,B,N){for(var H=[],V=0;V<b.length;V++){var he=b[V],le=he(F,O,D,B,N,qt);if(le==null)return null;le.data&&Ei(le.data,"expectedType")&&H.push(le.data.expectedType)}var rt=H.length>0?", expected one of type ["+H.join(", ")+"]":"";return new l("Invalid "+B+" `"+N+"` supplied to "+("`"+D+"`"+rt+"."))}return u(k)}function I(){function b(v,A,k,F,O){return S(v[A])?null:new l("Invalid "+F+" `"+O+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return u(b)}function P(b,v,A,k,F){return new l((b||"React class")+": "+v+" type `"+A+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function R(b){function v(A,k,F,O,D){var B=A[k],N=q(B);if(N!=="object")return new l("Invalid "+O+" `"+D+"` of type `"+N+"` "+("supplied to `"+F+"`, expected `object`."));for(var H in b){var V=b[H];if(typeof V!="function")return P(F,O,D,H,J(V));var he=V(B,H,F,O,D+"."+H,qt);if(he)return he}return null}return u(v)}function $(b){function v(A,k,F,O,D){var B=A[k],N=q(B);if(N!=="object")return new l("Invalid "+O+" `"+D+"` of type `"+N+"` "+("supplied to `"+F+"`, expected `object`."));var H=tg({},A[k],b);for(var V in H){var he=b[V];if(Ei(b,V)&&typeof he!="function")return P(F,O,D,V,J(he));if(!he)return new l("Invalid "+O+" `"+D+"` key `"+V+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(A[k],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var le=he(B,V,F,O,D+"."+V,qt);if(le)return le}return null}return u(v)}function S(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(S);if(b===null||t(b))return!0;var v=n(b);if(v){var A=v.call(b),k;if(v!==b.entries){for(;!(k=A.next()).done;)if(!S(k.value))return!1}else for(;!(k=A.next()).done;){var F=k.value;if(F&&!S(F[1]))return!1}}else return!1;return!0;default:return!1}}function Z(b,v){return b==="symbol"?!0:v?v["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&v instanceof Symbol:!1}function q(b){var v=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":Z(v,b)?"symbol":v}function J(b){if(typeof b=="undefined"||b===null)return""+b;var v=q(b);if(v==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return v}function M(b){var v=J(b);switch(v){case"array":case"object":return"an "+v;case"boolean":case"date":case"regexp":return"a "+v;default:return v}}function _(b){return!b.constructor||!b.constructor.name?i:b.constructor.name}return a.checkPropTypes=fc,a.resetWarningCache=fc.resetWarningCache,a.PropTypes=a,a}});var bc=ue((gI,yc)=>{"use strict";var rg=To();function hc(){}function gc(){}gc.resetWarningCache=hc;yc.exports=function(){function t(o,n,i,a,s,l){if(l!==rg){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:gc,resetWarningCache:hc};return r.PropTypes=r,r}});var Eo=ue((yI,Ai)=>{process.env.NODE_ENV!=="production"?(xc=Ti(),vc=!0,Ai.exports=mc()(xc.isElement,vc)):Ai.exports=bc()();var xc,vc});var Pc=ue(Y=>{"use strict";var Mi=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),Fo=Symbol.for("react.strict_mode"),Mo=Symbol.for("react.profiler");Symbol.for("react.provider");var Ro=Symbol.for("react.consumer"),Oo=Symbol.for("react.context"),Do=Symbol.for("react.forward_ref"),Bo=Symbol.for("react.suspense"),Lo=Symbol.for("react.suspense_list"),$o=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),ng=Symbol.for("react.view_transition"),ig=Symbol.for("react.client.reference");function Ee(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Mi:switch(t=t.type,t){case Ao:case Mo:case Fo:case Bo:case Lo:case ng:return t;default:switch(t=t&&t.$$typeof,t){case Oo:case Do:case zo:case $o:return t;case Ro:return t;default:return e}}case Ri:return e}}}Y.ContextConsumer=Ro;Y.ContextProvider=Oo;Y.Element=Mi;Y.ForwardRef=Do;Y.Fragment=Ao;Y.Lazy=zo;Y.Memo=$o;Y.Portal=Ri;Y.Profiler=Mo;Y.StrictMode=Fo;Y.Suspense=Bo;Y.SuspenseList=Lo;Y.isContextConsumer=function(t){return Ee(t)===Ro};Y.isContextProvider=function(t){return Ee(t)===Oo};Y.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Mi};Y.isForwardRef=function(t){return Ee(t)===Do};Y.isFragment=function(t){return Ee(t)===Ao};Y.isLazy=function(t){return Ee(t)===zo};Y.isMemo=function(t){return Ee(t)===$o};Y.isPortal=function(t){return Ee(t)===Ri};Y.isProfiler=function(t){return Ee(t)===Mo};Y.isStrictMode=function(t){return Ee(t)===Fo};Y.isSuspense=function(t){return Ee(t)===Bo};Y.isSuspenseList=function(t){return Ee(t)===Lo};Y.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ao||t===Mo||t===Fo||t===Bo||t===Lo||typeof t=="object"&&t!==null&&(t.$$typeof===zo||t.$$typeof===$o||t.$$typeof===Oo||t.$$typeof===Ro||t.$$typeof===Do||t.$$typeof===ig||t.getModuleId!==void 0)};Y.typeOf=Ee});var Tc=ue(K=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case e: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 w}}case r:return w}}}var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),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");K.ContextConsumer=a,K.ContextProvider=s,K.Element=e,K.ForwardRef=l,K.Fragment=o,K.Lazy=h,K.Memo=f,K.Portal=r,K.Profiler=i,K.StrictMode=n,K.Suspense=u,K.SuspenseList=p,K.isContextConsumer=function(g){return t(g)===a},K.isContextProvider=function(g){return t(g)===s},K.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},K.isForwardRef=function(g){return t(g)===l},K.isFragment=function(g){return t(g)===o},K.isLazy=function(g){return t(g)===h},K.isMemo=function(g){return t(g)===f},K.isPortal=function(g){return t(g)===r},K.isProfiler=function(g){return t(g)===i},K.isStrictMode=function(g){return t(g)===n},K.isSuspense=function(g){return t(g)===u},K.isSuspenseList=function(g){return t(g)===p},K.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)},K.typeOf=t}()});var Di=ue((kI,Oi)=>{"use strict";process.env.NODE_ENV==="production"?Oi.exports=Pc():Oi.exports=Tc()});var ap=ue((hR,ip)=>{"use strict";function Tt(t){this._maxSize=t,this.clear()}Tt.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Tt.prototype.get=function(t){return this._values[t]};Tt.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var dy=/[^.^\]^[]+|(?=\[\]|\.\.)/g,np=/^\d+$/,my=/^\d/,hy=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,gy=/^\s*(['"]?)(.*?)(\1)\s*$/,pa=512,tp=new Tt(pa),rp=new Tt(pa),op=new Tt(pa);ip.exports={Cache:Tt,split:ca,normalizePath:ua,setter:function(t){var e=ua(t);return rp.get(t)||rp.set(t,function(o,n){for(var i=0,a=e.length,s=o;i<a-1;){var l=e[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return o;s=s[e[i++]]}s[e[i]]=n})},getter:function(t,e){var r=ua(t);return op.get(t)||op.set(t,function(n){for(var i=0,a=r.length;i<a;)if(n!=null||!e)n=n[r[i++]];else return;return n})},join:function(t){return t.reduce(function(e,r){return e+(fa(r)||np.test(r)?"["+r+"]":(e?".":"")+r)},"")},forEach:function(t,e,r){yy(Array.isArray(t)?t:ca(t),e,r)}};function ua(t){return tp.get(t)||tp.set(t,ca(t).map(function(e){return e.replace(gy,"$2")}))}function ca(t){return t.match(dy)||[""]}function yy(t,e,r){var o=t.length,n,i,a,s;for(i=0;i<o;i++)n=t[i],n&&(vy(n)&&(n='"'+n+'"'),s=fa(n),a=!s&&/^\d+$/.test(n),e.call(r,n,s,a,i,t))}function fa(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function by(t){return t.match(my)&&!t.match(np)}function xy(t){return hy.test(t)}function vy(t){return!fa(t)&&(by(t)||xy(t))}});var up=ue((gR,lp)=>{var Cy=/[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,an=t=>t.match(Cy)||[],sn=t=>t[0].toUpperCase()+t.slice(1),da=(t,e)=>an(t).join(e).toLowerCase(),sp=t=>an(t).reduce((e,r)=>`${e}${e?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,""),wy=t=>sn(sp(t)),Sy=t=>da(t,"_"),Py=t=>da(t,"-"),Ty=t=>sn(da(t," ")),ky=t=>an(t).map(sn).join(" ");lp.exports={words:an,upperFirst:sn,camelCase:sp,pascalCase:wy,snakeCase:Sy,kebabCase:Py,sentenceCase:Ty,titleCase:ky}});var pp=ue((yR,ma)=>{ma.exports=function(t){return cp(Iy(t),t)};ma.exports.array=cp;function cp(t,e){var r=t.length,o=new Array(r),n={},i=r,a=Ey(e),s=Ay(t);for(e.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(t[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 Iy(t){for(var e=new Set,r=0,o=t.length;r<o;r++){var n=t[r];e.add(n[0]),e.add(n[1])}return Array.from(e)}function Ey(t){for(var e=new Map,r=0,o=t.length;r<o;r++){var n=t[r];e.has(n[0])||e.set(n[0],new Set),e.has(n[1])||e.set(n[1],new Set),e.get(n[0]).add(n[1])}return e}function Ay(t){for(var e=new Map,r=0,o=t.length;r<o;r++)e.set(t[r],r);return e}});var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');var Md=t=>{let n=t,{isLoading:e,children:r}=n,o=C(n,["isLoading","children"]);return _jsxruntime.jsx.call(void 0, _material.Button,d(c({},o),{disabled:e?!0:o.disabled,children:e?_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:22}):r}))},L= exports.Button =Md;function ke(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1},t))}function pu(t){let o=t,{label:e}=o,r=C(o,["label"]);return _jsxruntime.jsx.call(void 0, _material.FormControl,{component:"fieldset",children:_jsxruntime.jsx.call(void 0, _material.FormControlLabel,{label:e,control:_jsxruntime.jsx.call(void 0, _material.Checkbox,c({},r))})})}function fe(){return fe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},fe.apply(null,arguments)}function fu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nt(t,e){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nt(t,e)}function du(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,nt(t,e)}function io(t){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},io(t)}function mu(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch(e){return typeof t=="function"}}function Jn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jn=function(){return!!t})()}function hu(t,e,r){if(Jn())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var n=new(t.bind.apply(t,o));return r&&nt(n,r.prototype),n}function ao(t){var e=typeof Map=="function"?new Map:void 0;return ao=function(o){if(o===null||!mu(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(o))return e.get(o);e.set(o,n)}function n(){return hu(o,arguments,io(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nt(n,o)},ao(t)}var $d={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
3
+
4
+ `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
5
+
6
+ `,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
7
+
8
+ `,4:`Couldn't generate valid rgb string from %s, it returned %s.
9
+
10
+ `,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
11
+
12
+ `,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
13
+
14
+ `,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
15
+
16
+ `,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
17
+
18
+ `,9:`Please provide a number of steps to the modularScale helper.
19
+
20
+ `,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
21
+
22
+ `,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
23
+
24
+ `,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
25
+
26
+ `,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
27
+
28
+ `,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
29
+
30
+ `,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
31
+
32
+ `,16:`You must provide a template to this method.
33
+
34
+ `,17:`You passed an unsupported selector state to this method.
35
+
36
+ `,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
37
+
38
+ `,19:`fromSize and toSize must be provided as stringified numbers with the same units.
39
+
40
+ `,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
41
+
42
+ `,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
43
+
44
+ `,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
45
+
46
+ `,25:`fontFace expects localFonts to be an array.
47
+
48
+ `,26:`fontFace expects fileFormats to be an array.
49
+
50
+ `,27:`radialGradient requries at least 2 color-stops to properly render.
51
+
52
+ `,28:`Please supply a filename to retinaImage() as the first argument.
53
+
54
+ `,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
55
+
56
+ `,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
57
+
58
+ `,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
59
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
60
+
61
+ `,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
62
+
63
+ `,34:`borderRadius expects a radius value as a string or number as the second argument.
64
+
65
+ `,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
66
+
67
+ `,36:`Property must be a string value.
68
+
69
+ `,37:`Syntax Error at %s.
70
+
71
+ `,38:`Formula contains a function that needs parentheses at %s.
72
+
73
+ `,39:`Formula is missing closing parenthesis at %s.
74
+
75
+ `,40:`Formula has too many closing parentheses at %s.
76
+
77
+ `,41:`All values in a formula must have the same unit or be unitless.
78
+
79
+ `,42:`Please provide a number of steps to the modularScale helper.
80
+
81
+ `,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
82
+
83
+ `,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
84
+
85
+ `,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
86
+
87
+ `,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
88
+
89
+ `,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
90
+
91
+ `,48:`fromSize and toSize must be provided as stringified numbers with the same units.
92
+
93
+ `,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
94
+
95
+ `,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
96
+
97
+ `,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
98
+
99
+ `,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
100
+
101
+ `,53:`fontFace expects localFonts to be an array.
102
+
103
+ `,54:`fontFace expects fileFormats to be an array.
104
+
105
+ `,55:`fontFace expects a name of a font-family.
106
+
107
+ `,56:`linearGradient requries at least 2 color-stops to properly render.
108
+
109
+ `,57:`radialGradient requries at least 2 color-stops to properly render.
110
+
111
+ `,58:`Please supply a filename to retinaImage() as the first argument.
112
+
113
+ `,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
114
+
115
+ `,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
116
+
117
+ `,62:`borderRadius expects a radius value as a string or number as the second argument.
118
+
119
+ `,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
120
+
121
+ `,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
122
+
123
+ `,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
124
+
125
+ `,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
126
+
127
+ `,67:`You must provide a template to this method.
128
+
129
+ `,68:`You passed an unsupported selector state to this method.
130
+
131
+ `,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
132
+
133
+ `,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
134
+
135
+ `,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
136
+
137
+ `,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
138
+
139
+ `,73:`Please provide a valid CSS variable.
140
+
141
+ `,74:`CSS variable not found and no default was provided.
142
+
143
+ `,75:`important requires a valid style object, got a %s instead.
144
+
145
+ `,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
146
+
147
+ `,77:`remToPx expects a value in "rem" but you provided it in "%s".
148
+
149
+ `,78:`base must be set in "px" or "%" but you set it in "%s".
150
+ `};function zd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=e[0],n=[],i;for(i=1;i<e.length;i+=1)n.push(e[i]);return n.forEach(function(a){o=o.replace(/%[a-z]/,a)}),o}var ge=function(t){du(e,t);function e(r){var o;if(process.env.NODE_ENV==="production")o=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this;else{for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];o=t.call(this,zd.apply(void 0,[$d[r]].concat(i)))||this}return fu(o)}return e}(ao(Error));function gu(t,e){return t.substr(-e.length)===e}var _d=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function yu(t){if(typeof t!="string")return t;var e=t.match(_d);return e?parseFloat(t):t}var Nd=function(e){return function(r,o){o===void 0&&(o="16px");var n=r,i=o;if(typeof r=="string"){if(!gu(r,"px"))throw new ge(69,e,r);n=yu(r)}if(typeof o=="string"){if(!gu(o,"px"))throw new ge(70,e,o);i=yu(o)}if(typeof n=="string")throw new ge(71,r,e);if(typeof i=="string")throw new ge(72,o,e);return""+n/i+e}},vu=Nd,qP=vu("em");var YP=vu("rem");function ei(t){return Math.round(t*255)}function Vd(t,e,r){return ei(t)+","+ei(e)+","+ei(r)}function Sr(t,e,r,o){if(o===void 0&&(o=Vd),e===0)return o(r,r,r);var n=(t%360+360)%360/60,i=(1-Math.abs(2*r-1))*e,a=i*(1-Math.abs(n%2-1)),s=0,l=0,u=0;n>=0&&n<1?(s=i,l=a):n>=1&&n<2?(s=a,l=i):n>=2&&n<3?(l=i,u=a):n>=3&&n<4?(l=a,u=i):n>=4&&n<5?(s=a,u=i):n>=5&&n<6&&(s=i,u=a);var p=r-i/2,f=s+p,h=l+p,m=u+p;return o(f,h,m)}var bu={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Wd(t){if(typeof t!="string")return t;var e=t.toLowerCase();return bu[e]?"#"+bu[e]:t}var Hd=/^#[a-fA-F0-9]{6}$/,jd=/^#[a-fA-F0-9]{8}$/,Gd=/^#[a-fA-F0-9]{3}$/,Ud=/^#[a-fA-F0-9]{4}$/,ti=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,qd=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Yd=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Kd=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function yt(t){if(typeof t!="string")throw new ge(3);var e=Wd(t);if(e.match(Hd))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(jd)){var r=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:r}}if(e.match(Gd))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(Ud)){var o=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:o}}var n=ti.exec(e);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var i=qd.exec(e.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=Yd.exec(e);if(a){var s=parseInt(""+a[1],10),l=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,p="rgb("+Sr(s,l,u)+")",f=ti.exec(p);if(!f)throw new ge(4,e,p);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var h=Kd.exec(e.substring(0,50));if(h){var m=parseInt(""+h[1],10),y=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Sr(m,y,g)+")",x=ti.exec(w);if(!x)throw new ge(4,e,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new ge(5)}function Zd(t){var e=t.red/255,r=t.green/255,o=t.blue/255,n=Math.max(e,r,o),i=Math.min(e,r,o),a=(n+i)/2;if(n===i)return t.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:t.alpha}:{hue:0,saturation:0,lightness:a};var s,l=n-i,u=a>.5?l/(2-n-i):l/(n+i);switch(n){case e:s=(r-o)/l+(r<o?6:0);break;case r:s=(o-e)/l+2;break;default:s=(e-r)/l+4;break}return s*=60,t.alpha!==void 0?{hue:s,saturation:u,lightness:a,alpha:t.alpha}:{hue:s,saturation:u,lightness:a}}function it(t){return Zd(yt(t))}var Qd=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},oi=Qd;function gt(t){var e=t.toString(16);return e.length===1?"0"+e:e}function ri(t){return gt(Math.round(t*255))}function Xd(t,e,r){return oi("#"+ri(t)+ri(e)+ri(r))}function so(t,e,r){return Sr(t,e,r,Xd)}function Jd(t,e,r){if(typeof t=="number"&&typeof e=="number"&&typeof r=="number")return so(t,e,r);if(typeof t=="object"&&e===void 0&&r===void 0)return so(t.hue,t.saturation,t.lightness);throw new ge(1)}function em(t,e,r,o){if(typeof t=="number"&&typeof e=="number"&&typeof r=="number"&&typeof o=="number")return o>=1?so(t,e,r):"rgba("+Sr(t,e,r)+","+o+")";if(typeof t=="object"&&e===void 0&&r===void 0&&o===void 0)return t.alpha>=1?so(t.hue,t.saturation,t.lightness):"rgba("+Sr(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new ge(2)}function ni(t,e,r){if(typeof t=="number"&&typeof e=="number"&&typeof r=="number")return oi("#"+gt(t)+gt(e)+gt(r));if(typeof t=="object"&&e===void 0&&r===void 0)return oi("#"+gt(t.red)+gt(t.green)+gt(t.blue));throw new ge(6)}function lo(t,e,r,o){if(typeof t=="string"&&typeof e=="number"){var n=yt(t);return"rgba("+n.red+","+n.green+","+n.blue+","+e+")"}else{if(typeof t=="number"&&typeof e=="number"&&typeof r=="number"&&typeof o=="number")return o>=1?ni(t,e,r):"rgba("+t+","+e+","+r+","+o+")";if(typeof t=="object"&&e===void 0&&r===void 0&&o===void 0)return t.alpha>=1?ni(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"}throw new ge(7)}var tm=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha=="undefined")},rm=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},om=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha=="undefined")},nm=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function at(t){if(typeof t!="object")throw new ge(8);if(rm(t))return lo(t);if(tm(t))return ni(t);if(nm(t))return em(t);if(om(t))return Jd(t);throw new ge(8)}function Cu(t,e,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=e?t.apply(this,n):Cu(t,e,n)}}function Ce(t){return Cu(t,t.length,[])}function im(t,e){if(e==="transparent")return e;var r=it(e);return at(fe({},r,{hue:r.hue+parseFloat(t)}))}var KP=Ce(im);function Ht(t,e,r){return Math.max(t,Math.min(e,r))}function am(t,e){if(e==="transparent")return e;var r=it(e);return at(fe({},r,{lightness:Ht(0,1,r.lightness-parseFloat(t))}))}var ZP=Ce(am);function sm(t,e){if(e==="transparent")return e;var r=it(e);return at(fe({},r,{saturation:Ht(0,1,r.saturation-parseFloat(t))}))}var QP=Ce(sm);function xu(t){if(t==="transparent")return 0;var e=yt(t),r=Object.keys(e).map(function(a){var s=e[a]/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}),o=r[0],n=r[1],i=r[2];return parseFloat((.2126*o+.7152*n+.0722*i).toFixed(3))}function wu(t,e){var r=xu(t),o=xu(e);return parseFloat((r>o?(r+.05)/(o+.05):(o+.05)/(r+.05)).toFixed(2))}function lm(t,e){if(e==="transparent")return e;var r=it(e);return at(fe({},r,{lightness:Ht(0,1,r.lightness+parseFloat(t))}))}var XP=Ce(lm);function um(t,e,r){if(e==="transparent")return r;if(r==="transparent")return e;if(t===0)return r;var o=yt(e),n=fe({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),i=yt(r),a=fe({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),s=n.alpha-a.alpha,l=parseFloat(t)*2-1,u=l*s===-1?l:l+s,p=1+l*s,f=(u/p+1)/2,h=1-f,m={red:Math.floor(n.red*f+a.red*h),green:Math.floor(n.green*f+a.green*h),blue:Math.floor(n.blue*f+a.blue*h),alpha:n.alpha*parseFloat(t)+a.alpha*(1-parseFloat(t))};return lo(m)}var cm=Ce(um),Su=cm;function pm(t,e){if(e==="transparent")return e;var r=yt(e),o=typeof r.alpha=="number"?r.alpha:1,n=fe({},r,{alpha:Ht(0,1,(o*100+parseFloat(t)*100)/100)});return lo(n)}var JP=Ce(pm);function fm(t,e){if(e==="transparent")return e;var r=it(e);return at(fe({},r,{saturation:Ht(0,1,r.saturation+parseFloat(t))}))}var eT=Ce(fm);function dm(t,e){return e==="transparent"?e:at(fe({},it(e),{hue:parseFloat(t)}))}var tT=Ce(dm);function mm(t,e){return e==="transparent"?e:at(fe({},it(e),{lightness:parseFloat(t)}))}var rT=Ce(mm);function hm(t,e){return e==="transparent"?e:at(fe({},it(e),{saturation:parseFloat(t)}))}var oT=Ce(hm);function gm(t,e){return e==="transparent"?e:Su(parseFloat(t),"rgb(0, 0, 0)",e)}var nT=Ce(gm);function ym(t,e){return e==="transparent"?e:Su(parseFloat(t),"rgb(255, 255, 255)",e)}var iT=Ce(ym);function bm(t,e){if(e==="transparent")return e;var r=yt(e),o=typeof r.alpha=="number"?r.alpha:1,n=fe({},r,{alpha:Ht(0,1,+(o*100-parseFloat(t)*100).toFixed(2)/100)});return lo(n)}var aT=Ce(bm);var _styles = require('@mui/material/styles');var bt="#4BA9C1",wm="#2C96B3",ce={32:"2rem",28:"1.75rem",24:"1.5",20:"1.25rem",16:"1rem",14:"0.875rem",12:"0.75rem",10:"0.625rem"},Ie={800:"#202024",700:"#262626",600:"#333333",500:"#808080",400:"#BBBBBA",300:"#E0E0E0",200:"#F2F2F2",100:"#FAFAFA"},Sm={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:bt,dark:wm},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:Ie[800],700:Ie[700],600:Ie[600],500:Ie[500],400:Ie[400],300:Ie[300],200:Ie[200],100:Ie[100]}},typography:{fontFamily:["Roboto","Lato","sans-serif","Poppins","Montserrat"].join(","),h1:{fontSize:ce[32],fontWeight:400,color:"#262626"},h2:{fontSize:ce[28],fontWeight:400,color:"#262626"},h3:{fontSize:ce[24],fontWeight:400,color:"#262626"},h4:{fontSize:ce[20],fontWeight:400,color:"#262626"},h5:{fontSize:ce[16],fontWeight:400,color:"#262626"},h6:{fontSize:ce[14],fontWeight:500,color:"#262626"},subtitle1:{fontSize:ce[14],fontWeight:400,color:"#262626"},subtitle2:{fontSize:ce[12],fontWeight:500,color:Ie[500]},body1:{fontSize:ce[14],fontWeight:400,color:"#262626"},body2:{fontSize:ce[12],fontWeight:400,color:"#808080"},caption:{fontSize:ce[12],fontWeight:400,color:"#808080"},overline:{fontSize:ce[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:ce[12],"& .MuiTab-iconWrapper":{fontSize:ce[16]}}}},MuiList:{styleOverrides:{root:{paddingTop:0}}},MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_styles.alpha.call(void 0, bt,.1),boxShadow:`inset 0 0 0 0.5px ${bt}`,borderRadius:"4px","& .MuiTypography-root":{color:bt,fontWeight:500},"& .MuiListItemIcon-root svg":{strokeWidth:2,color:bt}},":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:ce[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:Ie[500],fontSize:"13px"},"& .MuiInputBase-root":{backgroundColor:"#fff"},"& .MuiInputBase-input[readonly]":{backgroundColor:Ie[200],color:Ie[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:ce[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:bt},"& .MuiTypography-root":{color:bt}},":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:{}}}}},Pm=_styles.createTheme.call(void 0, Sm),Tm=_styles.responsiveFontSizes.call(void 0, Pm),j= exports.theme =Tm;var km={"primary-light":j.palette.primary.light,primary:j.palette.primary.main,"primary-dark":j.palette.primary.dark,"text-secondary":j.palette.text.secondary,"text-primary":j.palette.text.primary,"background-paper":j.palette.background.paper,background:j.palette.background.default,"error-light":j.palette.error.light,error:j.palette.error.main,"erro-drark":j.palette.error.dark,"warning-light":j.palette.warning.light,warning:j.palette.warning.main,"warning-dark":j.palette.warning.dark,"success-light":j.palette.success.light,success:j.palette.success.main,"success-dark":j.palette.success.dark,"grey-100":j.palette.grey[100],"grey-200":j.palette.grey[200],"grey-300":j.palette.grey[300],"grey-400":j.palette.grey[400],"grey-500":j.palette.grey[500],"grey-600":j.palette.grey[600],"grey-700":j.palette.grey[700],"grey-800":j.palette.grey[800]};function Tu(){return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:Object.entries(km).map(([t,e])=>_jsxruntime.jsx.call(void 0, _material.Box,{sx:{backgroundColor:e,padding:"2rem"},children:_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",justifyContent:"space-between",fontFamily:j.typography.fontFamily,color:wu(e,"#FFF")<3.5?"#000":"#FFF"},children:[_jsxruntime.jsx.call(void 0, "strong",{children:t}),_jsxruntime.jsx.call(void 0, "span",{children:e})]})},t))})}var _hooks = require('@data-c/hooks');var _react = require('react'); var Bi = _interopRequireWildcard(_react); var Oc = _interopRequireWildcard(_react); var Jt = _interopRequireWildcard(_react);function Iu(t){if(!t)return 0;let e=String(t);return e=e.replace(/\./g,"").replace(/,/g,"."),parseFloat(e)}var ii=null,Eu=_react.forwardRef.call(void 0, (t,e)=>{let l=t,{value:r,onChange:o,sx:n}=l,i=C(l,["value","onChange","sx"]);ii=null;let a=_react.useCallback.call(void 0, u=>{let p=u.target.value||"0.00";_hooks.isValidNumber.call(void 0, p)&&(ii==="Backspace"?p=(Iu(p)/10).toFixed(2):p=(Iu(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=>{ii=u.key},onSelect:u=>{s(u)},onChange:a,value:_hooks.formatCurrency.call(void 0, String(r),2)||"",inputRef:e,sx:c({"& .MuiInputBase-input":{textAlign:"right"}},n)},i))});Eu.defaultProps={value:0};var Om=Eu;var _iconsmaterial = require('@mui/icons-material');var Au={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 st(t){let{cancelLabel:e,confirmLabel:r,type:o,onCancel:n,onConfirm:i,isLoadingConfirmButton:a}=t;return _jsxruntime.jsxs.call(void 0, ke,{children:[n&&_jsxruntime.jsx.call(void 0, L,{onClick:()=>{n()},color:Au[o||"content"].cancel,children:e}),_jsxruntime.jsx.call(void 0, L,{onClick:()=>{i&&i()},color:Au[o||"content"].confirm,variant:"contained",isLoading:a,children:r})]})}var Bm={cancelLabel:"Cancelar",confirmLabel:"Ok",type:"content",isLoadingConfirmButton:!1};st.defaultProps=Bm;function qe(t){let{title:e,children:r,actions:o,onClose:n,onConfirm:i,type:a,dialogActionsProps:s}=t,l=_material.useTheme.call(void 0, ),u=o==="none"?null:o||_jsxruntime.jsx.call(void 0, st,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({},t),{children:[_jsxruntime.jsx.call(void 0, _material.DialogTitle,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{sx:{color: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}),e]})}),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})]}))}qe.defaultProps={fullWidth:!0,type:"content"};var _providers = require('@data-c/providers');function si(t){let{formValues:e,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeConfirm:o}=_providers.useFormApi.call(void 0, ),{onDelete:n,hideCancelButton:i,type:a}=t;return _jsxruntime.jsx.call(void 0, st,{type:a,confirmLabel:"Excluir",onConfirm:()=>n(e),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function li(t){let{isOpenConfirm:e}=_providers.useFormData.call(void 0, ),{closeConfirm:r}=_providers.useFormApi.call(void 0, ),{type:o,title:n,children:i,actions:a,onDelete:s}=t;return _jsxruntime.jsx.call(void 0, qe,{type:o,open:e,title:n,actions:a||_jsxruntime.jsx.call(void 0, si,{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 Xm={open:!1,title:"Excluir Registro Permanentemente?",children:"Voc\xEA n\xE3o poder\xE1 recuperar este registro ap\xF3s exclu\xED-lo!",type:"error"};li.defaultProps=Xm;var ih=_styles.styled.call(void 0, r=>{var o=r,{className:t}=o,e=C(o,["className"]);return _jsxruntime.jsx.call(void 0, _material.Tooltip,d(c({},e),{classes:{popper:t}}))})(({theme:t})=>({[`& .${_material.tooltipClasses.tooltip}`]:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,minWidth:180,fontSize:t.typography.pxToRem(12),border:"1px solid #dadde9"}})),ah={info:"Informa\xE7\xE3o",warning:"Aten\xE7\xE3o"},sh=t=>{let{title:e,type:r}=t;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{mt:.5},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center"},children:[_jsxruntime.jsx.call(void 0, _material.Icon,{color:r,fontSize:"small",children:r})," ",_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",sx:{ml:.5},children:ah[r]})]}),_jsxruntime.jsx.call(void 0, _material.Divider,{sx:{mt:.5}}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{mt:1},children:e})]})},Bu=t=>{let i=t,{type:e,children:r,title:o}=i,n=C(i,["type","children","title"]);return _jsxruntime.jsx.call(void 0, ih,d(c({arrow:!0,title:_jsxruntime.jsx.call(void 0, sh,{title:o||"",type:e}),enterDelay:300},n),{children:r}))};Bu.defaultProps={type:"info"};var jt=Bu;var ok=()=>({style:{width:"80px",textAlign:"center"}}),nk= exports.CurrencyCellStyle =()=>({style:{width:"128px",textAlign:"right"}});function ci(t){let{onClick:e,value:r,extraOptions:o,displayUpdateButton:n,displayDeleteButton:i,displayTransporterButton:a,disableTooltip:s,disabled:l,disabledUpdateButton:u,disabledDeleteButton:p,disabledTransporterButton:f}=t;return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[o&&o.map(({id:h,icon:m,iconButtonProps:y,tooltip:g,visible:w,disabled:x,badge:T})=>w===null||!!w&&_jsxruntime.jsx.call(void 0, _material.Badge,{color:"primary",badgeContent:T,children:_jsxruntime.jsxs.call(void 0, _material.IconButton,d(c({onClick:I=>e(h,r,I),size:"small",disabled:x},y),{children:[g&&_jsxruntime.jsx.call(void 0, jt,{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=>e("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, jt,{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=>e("edit",r,h),disabled:l||u,children:[s&&_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{fontSize:"small"}),!s&&_jsxruntime.jsx.call(void 0, jt,{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=>e("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, jt,{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"})})]})]})}ci.defaultProps={displayUpdateButton:!0,displayDeleteButton:!0,displayTransporterButton:!1,disableTooltip:!0};function fo(t){let{renderLabel:e,disableds:r}=t,{deleteFilterValue:o,deleteAllFilterValues:n}=_providers.useFilterApi.call(void 0, ),{filterValues:i,appliedValues:a}=_providers.useFilterData.call(void 0, ),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=>e?e(i[u].label,a[u]):`${i[u].label} - ${a&&a[u]}`,[e,i,a]);return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[_jsxruntime.jsx.call(void 0, _material.Box,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end",gap:1},children: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 mo(t){let a=t,{drawerTitle:e,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:e}),o&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:o,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{color:"error"})})]}),_jsxruntime.jsx.call(void 0, _material.Box,{sx:{padding: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})]})}))}mo.defaultProps={anchor:"right"};var kh=()=>{let{applyFilterValues:t,closeFilter:e,deleteAllFilterValues:r}=_providers.useFilterApi.call(void 0, );function o(){e()}function n(){t(),e()}function i(){r&&(r(),e())}return _jsxruntime.jsxs.call(void 0, _material.Stack,{sx:{flexDirection:"row",justifyContent:"flex-end","& > button:first-child":{mr:1}},children:[_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,onClick:i,color:"error",children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.RestartAlt,{})," Redefinir Padr\xE3o"]}),_jsxruntime.jsxs.call(void 0, _material.Button,{fullWidth:!0,variant:"contained",onClick:n,children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})," Aplicar"]})]})},Ih=t=>{let{title:e,children:r,onApplyFilters:o,drawerProps:n}=t,{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, mo,d(c({},n),{drawerTitle:e,open:i,children:r,onClose:()=>s(),actions:_jsxruntime.jsx.call(void 0, kh,{})}))};function gi(t){let{triggerButtonLabel:e,triggerButtonProps:r,triggerButton:o,title:n,children:i,onApplyFilters:a,renderLabel:s,disableds:l,disableFilterControl:u,drawerProps:p}=t,{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:e||"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, fo,{renderLabel:s,disableds:l}),h]}),_jsxruntime.jsx.call(void 0, Ih,d(c({},p),{onApplyFilters:a,title:n||"",children:i}))]})}gi.defaultProps={triggerButtonLabel:"Pesquisar",triggerButtonProps:{variant:"contained",startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.Search,{})},title:"Pesquisar"};function Hu(t){let{isFlagged:e,type:r}=t;return e?_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:r,sx:{fontSize:"10pt"}}):null}function yi(t){let{formValues:e,isSubmitting:r}=_providers.useFormData.call(void 0, ),{closeForm:o}=_providers.useFormApi.call(void 0, ),{onSubmitForm:n,hideCancelButton:i,confirmButtonLabel:a}=t;return _jsxruntime.jsx.call(void 0, st,{confirmLabel:a||"Salvar",onConfirm:()=>n(e),onCancel:i?void 0:()=>o(),isLoadingConfirmButton:r})}function xi(t){let{view:e,children:r,actions:o,onSubmitForm:n,triggerButton:i,dialogProps:a,triggerButtonLabel:s,triggerButtonProps:l,confirmButtonLabel:u}=t,{isOpen:p}=_providers.useFormData.call(void 0, ),{closeForm:f,openForm:h}=_providers.useFormApi.call(void 0, ),m=o||_jsxruntime.jsx.call(void 0, yi,{hideCancelButton:e==="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 e==="dialog"?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[y,_jsxruntime.jsx.call(void 0, qe,d(c({},a),{onClose:()=>{f()},open:!!p,children:r,actions:m}))]}):_jsxruntime.jsxs.call(void 0, _material.Stack,{children:[r,m]})}var $h={view:"dialog",dialogProps:{maxWidth:"md",fullWidth:!0}};xi.defaultProps=$h;var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);function Ut(t,...e){let r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${t}; visit ${r} for the full message.`}function Gu(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Uu={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 qu(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var _h=!1,Nh=/[A-Z]|^ms/g,Vh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qu=function(e){return e.charCodeAt(1)===45},Yu=function(e){return e!=null&&typeof e!="boolean"},vi=qu(function(t){return Qu(t)?t:t.replace(Nh,"-$&").toLowerCase()}),Ku=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Vh,function(o,n,i){return Ve={name:n,styles:i,next:Ve},n})}return Uu[e]!==1&&!Qu(e)&&typeof r=="number"&&r!==0?r+"px":r},Wh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function kr(t,e,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Ve={name:n.name,styles:n.styles,next:Ve},n.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Ve={name:a.name,styles:a.styles,next:Ve},a=a.next;var s=i.styles+";";return s}return Hh(t,e,r)}case"function":{if(t!==void 0){var l=Ve,u=r(t);return Ve=l,kr(t,e,u)}break}}var p=r;if(e==null)return p;var f=e[p];return f!==void 0?f:p}function Hh(t,e,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=kr(t,e,r[n])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?o+=i+"{"+e[s]+"}":Yu(s)&&(o+=vi(i)+":"+Ku(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&_h)throw new Error(Wh);if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var l=0;l<a.length;l++)Yu(a[l])&&(o+=vi(i)+":"+Ku(i,a[l])+";");else{var u=kr(t,e,a);switch(i){case"animation":case"animationName":{o+=vi(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}}return o}var Zu=/label:\s*([^\s;{]+)\s*(;|$)/g,Ve;function Xu(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,n="";Ve=void 0;var i=t[0];if(i==null||i.raw===void 0)o=!1,n+=kr(r,e,i);else{var a=i;n+=a[0]}for(var s=1;s<t.length;s++)if(n+=kr(r,e,t[s]),o){var l=i;n+=l[s]}Zu.lastIndex=0;for(var u="",p;(p=Zu.exec(n))!==null;)u+="-"+p[1];var f=Gu(n)+u;return{name:f,styles:n,next:Ve}}var _react2 = require('@emotion/react');function Fi(t,e){let r=_styled2.default.call(void 0, t,e);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof t=="string"?`"${t}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
151
+ `)):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 wc(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}var Cc=[];function Ye(t){return Cc[0]=t,Xu(Cc)}var Li=ot(Di(),1);function We(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function kc(t){if(Bi.isValidElement(t)||(0,Li.isValidElementType)(t)||!We(t))return t;let e={};return Object.keys(t).forEach(r=>{e[r]=kc(t[r])}),e}function Ae(t,e,r={clone:!0}){let o=r.clone?c({},t):t;return We(t)&&We(e)&&Object.keys(e).forEach(n=>{Bi.isValidElement(e[n])||(0,Li.isValidElementType)(e[n])?o[n]=e[n]:We(e[n])&&Object.prototype.hasOwnProperty.call(t,n)&&We(t[n])?o[n]=Ae(t[n],e[n],r):r.clone?o[n]=We(e[n])?kc(e[n]):e[n]:o[n]=e[n]}),o}var ag=t=>{let e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,o)=>r.val-o.val),e.reduce((r,o)=>d(c({},r),{[o.key]:o.val}),{})};function $i(t){let h=t,{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=h,n=C(h,["values","unit","step"]),i=ag(e),a=Object.keys(i);function s(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function l(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-o/100}${r})`}function u(m,y){let g=a.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(g!==-1&&typeof e[a[g]]=="number"?e[a[g]]:y)-o/100}${r})`}function p(m){return a.indexOf(m)+1<a.length?u(m,a[a.indexOf(m)+1]):s(m)}function f(m){let y=a.indexOf(m);return y===0?s(a[1]):y===a.length-1?l(a[y]):u(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return c({keys:a,values:i,up:s,down:l,between:u,only:p,not:f,unit:r},n)}function _o(t,e){if(!t.containerQueries)return e;let r=Object.keys(e).filter(o=>o.startsWith("@container")).sort((o,n)=>{var a,s;let i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((s=n.match(i))==null?void 0:s[1])||0)});return r.length?r.reduce((o,n)=>{let i=e[n];return delete o[n],o[n]=i,o},c({},e)):e}function zi(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function _i(t,e){let r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
152
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ut(18,`(${e})`));return null}let[,o,n]=r,i=Number.isNaN(+o)?o||0:+o;return t.containerQueries(n).up(i)}function No(t){let e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>e(t.breakpoints.up(...s),a),i.down=(...s)=>e(t.breakpoints.down(...s),a),i.between=(...s)=>e(t.breakpoints.between(...s),a),i.only=(...s)=>e(t.breakpoints.only(...s),a),i.not=(...s)=>{let l=e(t.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}let o={},n=i=>(r(o,i),o);return r(n),d(c({},t),{containerQueries:n})}var sg={borderRadius:4},Ic=sg;var Kt=ot(Eo(),1),lg=process.env.NODE_ENV!=="production"?Kt.default.oneOfType([Kt.default.number,Kt.default.string,Kt.default.object,Kt.default.array]):{},Se=lg;function ug(t,e){return e?Ae(t,e,{clone:!1}):t}var Ke=ug;var Ir={xs:0,sm:600,md:900,lg:1200,xl:1536},Ec={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Ir[t]}px)`},cg={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Ir[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function ie(t,e,r){let o=t.theme||{};if(Array.isArray(e)){let i=o.breakpoints||Ec;return e.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(e[l]),a),{})}if(typeof e=="object"){let i=o.breakpoints||Ec;return Object.keys(e).reduce((a,s)=>{if(zi(i.keys,s)){let l=_i(o.containerQueries?o:cg,s);l&&(a[l]=r(e[s],s))}else if(Object.keys(i.values||Ir).includes(s)){let l=i.up(s);a[l]=r(e[s],s)}else{let l=s;a[l]=e[l]}return a},{})}return r(e)}function Ni(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((o,n)=>{let i=t.up(n);return o[i]={},o},{}))||{}}function Vo(t,e){return t.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},e)}function Ac(t,...e){let r=Ni(t),o=[r,...e].reduce((n,i)=>Ae(n,i),{});return Vo(Object.keys(r),o)}function pg(t,e){if(typeof t!="object")return{};let r={},o=Object.keys(e);return Array.isArray(t)?o.forEach((n,i)=>{i<t.length&&(r[n]=!0)}):o.forEach(n=>{t[n]!=null&&(r[n]=!0)}),r}function Wo({values:t,breakpoints:e,base:r}){let o=r||pg(t,e),n=Object.keys(o);if(n.length===0)return t;let i;return n.reduce((a,s,l)=>(Array.isArray(t)?(a[s]=t[l]!=null?t[l]:t[i],i=l):typeof t=="object"?(a[s]=t[s]!=null?t[s]:t[i],i=s):a[s]=t,a),{})}function ut(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ut(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Zt(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){let o=`vars.${e}`.split(".").reduce((n,i)=>n&&n[i]?n[i]:null,t);if(o!=null)return o}return e.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,t)}function Er(t,e,r,o=r){let n;return typeof t=="function"?n=t(r):Array.isArray(t)?n=t[r]||o:n=Zt(t,r)||o,e&&(n=e(n,o,t)),n}function fg(t){let{prop:e,cssProperty:r=t.prop,themeKey:o,transform:n}=t,i=a=>{if(a[e]==null)return null;let s=a[e],l=a.theme,u=Zt(l,o)||{};return ie(a,s,f=>{let h=Er(u,n,f);return f===h&&typeof f=="string"&&(h=Er(u,n,`${e}${f==="default"?"":ut(f)}`,f)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:Se}:{},i.filterProps=[e],i}var Q=fg;function Ho(t){let e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}var dg={m:"margin",p:"padding"},mg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hg=Ho(t=>{if(t.length>2)if(Fc[t])t=Fc[t];else return[t];let[e,r]=t.split(""),o=dg[e],n=mg[r]||"";return Array.isArray(n)?n.map(i=>o+i):[o+n]}),jo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Go=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vi=[...jo,...Go];function Ct(t,e,r,o){var i;let n=(i=Zt(t,e,!0))!=null?i:r;return typeof n=="number"||typeof n=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof n=="string"?n.startsWith("var(")&&a===0?0:n.startsWith("var(")&&a===1?n:`calc(${a} * ${n})`:n*a):Array.isArray(n)?a=>{if(typeof a=="string")return a;let s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>n.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${s} > ${n.length-1}, you need to add the missing values.`].join(`
153
+ `)):console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join(`
154
+ `)));let l=n[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${e}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
155
+ `)),()=>{})}function Ar(t){return Ct(t,"spacing",8,"spacing")}function He(t,e){return typeof e=="string"||e==null?e:t(e)}function gg(t,e){return r=>t.reduce((o,n)=>(o[n]=He(e,r),o),{})}function yg(t,e,r,o){if(!e.includes(r))return null;let n=hg(r),i=gg(n,o),a=t[r];return ie(t,a,i)}function Wi(t,e){let r=Ar(t.theme);return Object.keys(t).map(o=>yg(t,e,o,r)).reduce(Ke,{})}function te(t){return Wi(t,jo)}te.propTypes=process.env.NODE_ENV!=="production"?jo.reduce((t,e)=>(t[e]=Se,t),{}):{};te.filterProps=jo;function re(t){return Wi(t,Go)}re.propTypes=process.env.NODE_ENV!=="production"?Go.reduce((t,e)=>(t[e]=Se,t),{}):{};re.filterProps=Go;function Mc(t){return Wi(t,Vi)}Mc.propTypes=process.env.NODE_ENV!=="production"?Vi.reduce((t,e)=>(t[e]=Se,t),{}):{};Mc.filterProps=Vi;function Hi(t=8,e=Ar({spacing:t})){if(t.mui)return t;let r=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{let a=e(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function bg(...t){let e=t.reduce((o,n)=>(n.filterProps.forEach(i=>{o[i]=n}),o),{}),r=o=>Object.keys(o).reduce((n,i)=>e[i]?Ke(n,e[i](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?t.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=t.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ze=bg;function Pe(t){return typeof t!="number"?t:`${t}px solid`}function Fe(t,e){return Q({prop:t,themeKey:"borders",transform:e})}var xg=Fe("border",Pe),vg=Fe("borderTop",Pe),Cg=Fe("borderRight",Pe),wg=Fe("borderBottom",Pe),Sg=Fe("borderLeft",Pe),Pg=Fe("borderColor"),Tg=Fe("borderTopColor"),kg=Fe("borderRightColor"),Ig=Fe("borderBottomColor"),Eg=Fe("borderLeftColor"),Ag=Fe("outline",Pe),Fg=Fe("outlineColor"),Fr=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){let e=Ct(t.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:He(e,o)});return ie(t,t.borderRadius,r)}return null};Fr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Se}:{};Fr.filterProps=["borderRadius"];var AE=Ze(xg,vg,Cg,wg,Sg,Pg,Tg,kg,Ig,Eg,Fr,Ag,Fg);var Mr=t=>{if(t.gap!==void 0&&t.gap!==null){let e=Ct(t.theme,"spacing",8,"gap"),r=o=>({gap:He(e,o)});return ie(t,t.gap,r)}return null};Mr.propTypes=process.env.NODE_ENV!=="production"?{gap:Se}:{};Mr.filterProps=["gap"];var Rr=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){let e=Ct(t.theme,"spacing",8,"columnGap"),r=o=>({columnGap:He(e,o)});return ie(t,t.columnGap,r)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Se}:{};Rr.filterProps=["columnGap"];var Or=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){let e=Ct(t.theme,"spacing",8,"rowGap"),r=o=>({rowGap:He(e,o)});return ie(t,t.rowGap,r)}return null};Or.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Se}:{};Or.filterProps=["rowGap"];var Mg=Q({prop:"gridColumn"}),Rg=Q({prop:"gridRow"}),Og=Q({prop:"gridAutoFlow"}),Dg=Q({prop:"gridAutoColumns"}),Bg=Q({prop:"gridAutoRows"}),Lg=Q({prop:"gridTemplateColumns"}),$g=Q({prop:"gridTemplateRows"}),zg=Q({prop:"gridTemplateAreas"}),_g=Q({prop:"gridArea"}),LE=Ze(Mr,Rr,Or,Mg,Rg,Og,Dg,Bg,Lg,$g,zg,_g);function wt(t,e){return e==="grey"?e:t}var Ng=Q({prop:"color",themeKey:"palette",transform:wt}),Vg=Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wt}),Wg=Q({prop:"backgroundColor",themeKey:"palette",transform:wt}),NE=Ze(Ng,Vg,Wg);function ye(t){return t<=1&&t!==0?`${t*100}%`:t}var Hg=Q({prop:"width",transform:ye}),Uo=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){let e=r=>{var n,i,a,s,l;let o=((a=(i=(n=t.theme)==null?void 0:n.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||Ir[r];return o?((l=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ye(r)}};return ie(t,t.maxWidth,e)}return null};Uo.filterProps=["maxWidth"];var jg=Q({prop:"minWidth",transform:ye}),Gg=Q({prop:"height",transform:ye}),Ug=Q({prop:"maxHeight",transform:ye}),qg=Q({prop:"minHeight",transform:ye}),GE=Q({prop:"size",cssProperty:"width",transform:ye}),UE=Q({prop:"size",cssProperty:"height",transform:ye}),Yg=Q({prop:"boxSizing"}),qE=Ze(Hg,Uo,jg,Gg,Ug,qg,Yg);var Kg={border:{themeKey:"borders",transform:Pe},borderTop:{themeKey:"borders",transform:Pe},borderRight:{themeKey:"borders",transform:Pe},borderBottom:{themeKey:"borders",transform:Pe},borderLeft:{themeKey:"borders",transform:Pe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fr},color:{themeKey:"palette",transform:wt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wt},backgroundColor:{themeKey:"palette",transform:wt},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:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Mr},rowGap:{style:Or},columnGap:{style:Rr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ye},maxWidth:{style:Uo},minWidth:{transform:ye},height:{transform:ye},maxHeight:{transform:ye},minHeight:{transform:ye},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"}},Qt=Kg;function Zg(...t){let e=t.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(e);return t.every(o=>r.size===Object.keys(o).length)}function Qg(t,e){return typeof t=="function"?t(e):t}function Xg(){function t(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=Zt(n,u)||{};return f?f(a):ie(a,o,y=>{let g=Er(h,p,y);return y===g&&typeof y=="string"&&(g=Er(h,p,`${r}${y==="default"?"":ut(y)}`,y)),l===!1?g:{[l]:g}})}function e(r){var l;let{sx:o,theme:n={},nested:i}=r||{};if(!o)return null;let a=(l=n.unstable_sxConfig)!=null?l:Qt;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=Ni(n.breakpoints),h=Object.keys(f),m=f;return Object.keys(p).forEach(y=>{let g=Qg(p[y],n);if(g!=null)if(typeof g=="object")if(a[y])m=Ke(m,t(y,g,n,a));else{let w=ie({theme:n},g,x=>({[y]:x}));Zg(w,g)?m[y]=e({sx:g,theme:n,nested:!0}):m=Ke(m,w)}else m=Ke(m,t(y,g,n,a))}),!i&&n.modularCssLayers?{"@layer sx":_o(n,Vo(h,m))}:_o(n,Vo(h,m))}return Array.isArray(o)?o.map(s):s(o)}return e}var Rc=Xg();Rc.filterProps=["sx"];var Xt=Rc;function ji(t,e){var o;let r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[t])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(t);return n==="&"?e:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:e})}return r.palette.mode===t?e:{}}function Jg(t={},...e){let p=t,{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=p,a=C(p,["breakpoints","palette","spacing","shape"]),s=$i(r),l=Hi(n),u=Ae({breakpoints:s,direction:"ltr",components:{},palette:c({mode:"light"},o),spacing:l,shape:c(c({},Ic),i)},a);return u=No(u),u.applyStyles=ji,u=e.reduce((f,h)=>Ae(f,h),u),u.unstable_sxConfig=c(c({},Qt),a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Xt({sx:h,theme:this})},u}var St=Jg;function e0(t){return Object.keys(t).length===0}function t0(t=null){let e=Oc.useContext(_react2.ThemeContext);return!e||e0(e)?t:e}var Gi=t0;var r0=St();function o0(t=r0){return Gi(t)}var Ui=o0;var n0=t=>{var o,n;let e={systemProps:{},otherProps:{}},r=(n=(o=t==null?void 0:t.theme)==null?void 0:o.unstable_sxConfig)!=null?n:Qt;return Object.keys(t).forEach(i=>{r[i]?e.systemProps[i]=t[i]:e.otherProps[i]=t[i]}),e};function qo(t){let a=t,{sx:e}=a,r=C(a,["sx"]),{systemProps:o,otherProps:n}=n0(r),i;return Array.isArray(e)?i=[o,...e]:typeof e=="function"?i=(...s)=>{let l=e(...s);return We(l)?c(c({},o),l):o}:i=c(c({},o),e),d(c({},n),{sx:i})}var Dc=t=>t,i0=()=>{let t=Dc;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Dc}}},a0=i0(),qi=a0;function Bc(t){var e,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(r=Bc(t[e]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function s0(){for(var t,e,r=0,o="",n=arguments.length;r<n;r++)(t=arguments[r])&&(e=Bc(t))&&(o&&(o+=" "),o+=e);return o}var Yo=s0;var l0={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 Ko(t,e,r="Mui"){let o=l0[e];return o?`${r}-${o}`:`${qi.generate(t)}-${e}`}var Zo=ot(Di(),1);function $c(t,e=""){return t.displayName||t.name||e}function Lc(t,e,r){let o=$c(e);return t.displayName||(o!==""?`${r}(${o})`:r)}function Qo(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return $c(t,"Component");if(typeof t=="object")switch(t.$$typeof){case Zo.ForwardRef:return Lc(t,t.render,"ForwardRef");case Zo.Memo:return Lc(t,t.type,"memo");default:return}}}function Yi(t){let n=t,{variants:e}=n,r=C(n,["variants"]),o={variants:e,style:Ye(r),isProcessed:!0};return o.style===r||e&&e.forEach(i=>{typeof i.style!="function"&&(i.style=Ye(i.style))}),o}var u0=St();function Ki(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Pt(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function c0(t){return t?(e,r)=>r[t]:null}function p0(t,e,r){t.theme=m0(t.theme)?r:t.theme[e]||t.theme}function Xo(t,e,r){let o=typeof e=="function"?e(t):e;if(Array.isArray(o))return o.flatMap(i=>Xo(t,i,r));if(Array.isArray(o==null?void 0:o.variants)){let i;if(o.isProcessed)i=r?Pt(o.style,r):o.style;else{let n=o,{variants:a}=n,s=C(n,["variants"]);i=r?Pt(Ye(s),r):s}return zc(t,o.variants,[i],r)}return o!=null&&o.isProcessed?r?Pt(Ye(o.style),r):o.style:r?Pt(Ye(o),r):o}function zc(t,e,r=[],o=void 0){var i;let n;e:for(let a=0;a<e.length;a+=1){let s=e[a];if(typeof s.props=="function"){if(n!=null||(n=d(c(c({},t),t.ownerState),{ownerState:t.ownerState})),!s.props(n))continue}else for(let l in s.props)if(t[l]!==s.props[l]&&((i=t.ownerState)==null?void 0:i[l])!==s.props[l])continue e;typeof s.style=="function"?(n!=null||(n=d(c(c({},t),t.ownerState),{ownerState:t.ownerState})),r.push(o?Pt(Ye(s.style(n)),o):s.style(n))):r.push(o?Pt(Ye(s.style),o):s.style)}return r}function Jo(t={}){let{themeId:e,defaultTheme:r=u0,rootShouldForwardProp:o=Ki,slotShouldForwardProp:n=Ki}=t;function i(s){p0(s,e,r)}return(s,l={})=>{wc(s,S=>S.filter(Z=>Z!==Xt));let $=l,{name:u,slot:p,skipVariantsResolver:f,skipSx:h,overridesResolver:m=c0(_c(p))}=$,y=C($,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=u&&u.startsWith("Mui")||p?"components":"custom",w=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,x=h||!1,T=Ki;p==="Root"||p==="root"?T=o:p?T=n:h0(s)&&(T=void 0);let I=Fi(s,c({shouldForwardProp:T,label:d0(u,p)},y)),P=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(q){return Xo(q,S,q.theme.modularCssLayers?g:void 0)};if(We(S)){let Z=Yi(S);return function(J){return Z.variants?Xo(J,Z,J.theme.modularCssLayers?g:void 0):J.theme.modularCssLayers?Pt(Z.style,g):Z.style}}return S},R=(...S)=>{let Z=[],q=S.map(P),J=[];if(Z.push(i),u&&m&&J.push(function(v){var O,D;let k=(D=(O=v.theme.components)==null?void 0:O[u])==null?void 0:D.styleOverrides;if(!k)return null;let F={};for(let B in k)F[B]=Xo(v,k[B],v.theme.modularCssLayers?"theme":void 0);return m(v,F)}),u&&!w&&J.push(function(v){var F,O;let A=v.theme,k=(O=(F=A==null?void 0:A.components)==null?void 0:F[u])==null?void 0:O.variants;return k?zc(v,k,[],v.theme.modularCssLayers?"theme":void 0):null}),x||J.push(Xt),Array.isArray(q[0])){let b=q.shift(),v=new Array(Z.length).fill(""),A=new Array(J.length).fill(""),k;k=[...v,...b,...A],k.raw=[...v,...b.raw,...A],Z.unshift(k)}let M=[...Z,...q,...J],_=I(...M);return s.muiName&&(_.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=f0(u,p,s)),_};return I.withConfig&&(R.withConfig=I.withConfig),R}}function f0(t,e,r){return t?`${t}${ut(e||"")}`:`Styled(${Qo(r)})`}function d0(t,e){let r;return process.env.NODE_ENV!=="production"&&t&&(r=`${t}-${_c(e||"Root")}`),r}function m0(t){for(let e in t)return!1;return!0}function h0(t){return typeof t=="string"&&t.charCodeAt(0)>96}function _c(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}var g0=Jo(),Zi=g0;function Dr(t,e,r=!1){let o=c({},e);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let i=n;if(i==="components"||i==="slots")o[i]=c(c({},t[i]),o[i]);else if(i==="componentsProps"||i==="slotProps"){let a=t[i],s=e[i];if(!s)o[i]=a||{};else if(!a)o[i]=s;else{o[i]=c({},s);for(let l in a)if(Object.prototype.hasOwnProperty.call(a,l)){let u=l;o[i][u]=Dr(a[u],s[u],r)}}}else i==="className"&&r&&e.className?o.className=Yo(t==null?void 0:t.className,e==null?void 0:e.className):i==="style"&&r&&e.style?o.style=c(c({},t==null?void 0:t.style),e==null?void 0:e.style):o[i]===void 0&&(o[i]=t[i])}return o}function Qi(t){let{theme:e,name:r,props:o}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?o:Dr(e.components[r].defaultProps,o)}function en({props:t,name:e,defaultTheme:r,themeId:o}){let n=Ui(r);return o&&(n=n[o]||n),Qi({theme:n,name:e,props:t})}function tn(t,e,r=void 0){let o={};for(let n in t){let i=t[n],a="",s=!0;for(let l=0;l<i.length;l+=1){let u=i[l];u&&(a+=(s===!0?"":" ")+e(u),s=!1,r&&r[u]&&(a+=" "+r[u]))}o[n]=a}return o}var X=ot(Eo(),1);var ee=ot(Eo(),1);var b0=St(),x0=Zi("div",{name:"MuiStack",slot:"Root"});function v0(t){return en({props:t,name:"MuiStack",defaultTheme:b0})}function C0(t,e){let r=Jt.Children.toArray(t).filter(Boolean);return r.reduce((o,n,i)=>(o.push(n),i<r.length-1&&o.push(Jt.cloneElement(e,{key:`separator-${i}`})),o),[])}var w0=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],S0=({ownerState:t,theme:e})=>{let r=c({display:"flex",flexDirection:"column"},ie({theme:e},Wo({values:t.direction,breakpoints:e.breakpoints.values}),o=>({flexDirection:o})));if(t.spacing){let o=Ar(e),n=Object.keys(e.breakpoints.values).reduce((l,u)=>((typeof t.spacing=="object"&&t.spacing[u]!=null||typeof t.direction=="object"&&t.direction[u]!=null)&&(l[u]=!0),l),{}),i=Wo({values:t.direction,base:n}),a=Wo({values:t.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=Ae(r,ie({theme:e},a,(l,u)=>t.useFlexGap?{gap:He(o,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${w0(u?i[u]:t.direction)}`]:He(o,l)}}))}return r=Ac(e.breakpoints,r),r};function Xi(t={}){let{createStyledComponent:e=x0,useThemeProps:r=v0,componentName:o="MuiStack"}=t,n=()=>tn({root:["root"]},l=>Ko(o,l),{}),i=e(S0),a=Jt.forwardRef(function(l,u){let p=r(l),$=qo(p),{component:h="div",direction:m="column",spacing:y=0,divider:g,children:w,className:x,useFlexGap:T=!1}=$,I=C($,["component","direction","spacing","divider","children","className","useFlexGap"]),P={direction:m,spacing:y,useFlexGap:T},R=n();return _jsxruntime.jsx.call(void 0, i,d(c({as:h,ownerState:P,ref:u,className:Yo(R.root,x)},I),{children:g?C0(w,g):w}))});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 Nc=Xi();process.env.NODE_ENV!=="production"&&(Nc.propTypes={children:X.default.node,component:X.default.elementType,direction:X.default.oneOfType([X.default.oneOf(["column-reverse","column","row-reverse","row"]),X.default.arrayOf(X.default.oneOf(["column-reverse","column","row-reverse","row"])),X.default.object]),divider:X.default.node,spacing:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.number,X.default.string])),X.default.number,X.default.object,X.default.string]),sx:X.default.oneOfType([X.default.arrayOf(X.default.oneOfType([X.default.func,X.default.object,X.default.bool])),X.default.func,X.default.object]),useFlexGap:X.default.bool});var rn=Nc;var I0=_styled2.default.call(void 0, (0, _material.Typography))(({theme:t})=>({fontWeight:"bold"}));function Hc(t){let{label:e,children:r,labelProps:o,contentProps:n,isNumber:i,showDivider:a}=t;return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",gap:4},children:[_jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsx.call(void 0, rn,{children:_jsxruntime.jsx.call(void 0, I0,d(c({},o),{children:e}))}),_jsxruntime.jsx.call(void 0, rn,{direction:i?"row":"column",justifyContent:i?"flex-end":"center",children:r})]}),a&&_jsxruntime.jsx.call(void 0, _material.Divider,{orientation:"vertical",flexItem:!0})]})}function nn(t){let{typographyProps:e,onChange:r,onEscape:o,value:n,displayEditButton:i,displaySaveButton:a,textFieldProps:s,isEditing:l,isLoading:u,error:p}=t,$=s||{},{InputProps:f,value:h,onKeyDown:m,onChange:y}=$,g=C($,["InputProps","value","onKeyDown","onChange"]),[w,x]=_react.useState.call(void 0, !1),[T,I]=_react.useState.call(void 0, !1),[P,R]=_react.useState.call(void 0, );return _react.useEffect.call(void 0, ()=>{R(n)},[n]),_react.useEffect.call(void 0, ()=>{x(!!l)},[l]),_react.useEffect.call(void 0, ()=>{p&&I(!0)},[p]),_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[!w&&!u&&!T&&_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:()=>{x(!0)}},e),{children:P})),i&&_jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>{x(!0)},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Edit,{})})]}),(w||u||T)&&_jsxruntime.jsx.call(void 0, _material.ClickAwayListener,{onClickAway:()=>x(!1),children:_jsxruntime.jsx.call(void 0, _material.TextField,c({disabled:u,autoFocus:!0,value:P,error:T,onKeyDown:S=>{S.key==="Enter"&&(r(P),x(!1)),S.key==="Escape"&&(R(n),x(!1),I(!1),o&&o(n,P))},onChange:S=>{let Z=S.target.value;R(Z)},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!=P&&r(P),x(!1)},edge:"end",children:n!=P?_jsxruntime.jsx.call(void 0, _iconsmaterial.Save,{}):_jsxruntime.jsx.call(void 0, _iconsmaterial.Cancel,{})})]})}},g))})]})}var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);function ct(t){let i=t,{onSearch:e}=i,r=C(i,["onSearch"]),o=_lodash2.default.debounce(a=>e(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 Kc(t){let{title:e,children:r,onBack:o,onClose:n,onUpdate:i,onSearch:a,storagePath:s,toolbarProps:l}=t,[u,p]=_react.useState.call(void 0, !1),[f,h]=_react.useState.call(void 0, "");_react.useEffect.call(void 0, ()=>{h(e)},[e]);let m=_react.useRef.call(void 0, null);_react.useEffect.call(void 0, ()=>{if(a&&s){let x=localStorage.getItem(s);m.current&&(m.current.value=x),a(x||"")}},[s]);let y=_material.useMediaQuery.call(void 0, x=>x.breakpoints.down("sm"));function g(x){s&&localStorage.setItem(s,x),a&&a(x)}let w={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, nn,{typographyProps:w,value:f,onChange:x=>{i&&i(x)}}),!i&&_jsxruntime.jsx.call(void 0, _material.Typography,d(c({},w),{children:e}))]}),n&&_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{marginLeft:"auto"},onClick:n,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{fontSize:"medium"})}),_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:1,direction:"row",children:[a&&_jsxruntime.jsx.call(void 0, ct,{inputRef:m,autoFocus:!0,onSearch:g}),r]})]})}))}function aa(t){let M=t,{value:e,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}=M,g=C(M,["value","label","options","isLoading","form","table","tableProps","onChange","onSearch","renderValue","dialogProps","disabled","filterOptions","optionKeyName"]),{isOpen:w,openDialog:x,closeDialog:T}=_hooks.useDialog.call(void 0, ),[I,P]=_react.useState.call(void 0, null),R=i||Bi.default.Fragment,$=_lodash2.default.debounce(_=>u(_),500),S=_react.useCallback.call(void 0, (_,b)=>z(this,null,function*(){$(b)}),[$]),Z=_react.useCallback.call(void 0, (_,b,v)=>{if(y&&(b!=null&&b[y].includes("Adicionar op\xE7\xE3o:"))){let A=b[y].replace("Adicionar op\xE7\xE3o:","").trim().replace(/["']/g,""),k=d(c({},b),{[y]:A});l&&l(k);return}l&&l(b)},[l]);function q(_,b=!1,v=!1){var A;if(_){let k=Bi.default.Children.toArray((A=_.props)==null?void 0:A.children),F=k.length===1?0:1;return k.splice(F,0,_jsxruntime.jsx.call(void 0, _material.IconButton,{sx:{padding:"2px"},size:"small",color:"default",onClick:()=>x(),disabled:v,children:_jsxruntime.jsx.call(void 0, _iconsmaterial.SearchOutlined,{fontSize:"small"})})),b&&k.unshift(_jsxruntime.jsx.call(void 0, _material.IconButton,{disabled:!0,children:_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"primary",size:18})})),Bi.default.cloneElement(_,{},k)}return _}function J(_,b){if(!y)return _;let A=_material.createFilterOptions.call(void 0, )(_,b),{inputValue:k}=b,F=_.some(O=>k===O[y]);return k!==""&&!F&&A.push({[y]:`Adicionar op\xE7\xE3o: "${k}"`}),A}return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _material.Autocomplete,{disabled:h,loadingText:"Carregando...",loading:n,onChange:Z,value:e,onInputChange:S,options:o,getOptionLabel:p,filterOptions:J,renderInput:_=>_jsxruntime.jsx.call(void 0, _material.TextField,c(d(c({label:r,onDoubleClick:()=>{h||x()}},_),{InputProps:d(c({},_.InputProps),{endAdornment:q(_.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, qe,d(c({open:w,onClose:()=>T(),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, ct,{placeholder:"Pesquisar",onSearch:_=>P(_)}),i&&_jsxruntime.jsx.call(void 0, R,{})]}),_jsxruntime.jsx.call(void 0, a,c({query:I,enableTransporter:!0,onTransport:_=>{T(),l&&l(_)}},s))]})}))})]})}var iy={dialogProps:{maxWidth:"md",fullWidth:!0}};aa.defaultProps=iy;function sa(t){let{children:e}=t,r=_material.useTheme.call(void 0, ),o=_material.useMediaQuery.call(void 0, r.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:o?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{},children:e})}function la(t){let{label:e,subTitle:r="Acesse sua conta"}=t;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"header",textAlign:"center",marginBottom:"3rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",fontSize:"2rem",fontWeight:"bold",variant:"body1",fontFamily:"Montserrat",sx:{color:o=>o.palette.primary.dark},children:e}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h3",fontSize:"1.25rem",fontFamily:"Montserrat",color:"primary",variant:"body1",children:r})]})}var _axios = require('axios');var Re=ot(ap()),Br=ot(up()),gp=ot(pp());var Fy=Object.prototype.toString,My=Error.prototype.toString,Ry=RegExp.prototype.toString,Oy=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",Dy=/^Symbol\((.*)\)(.*)$/;function By(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function fp(t,e=!1){if(t==null||t===!0||t===!1)return""+t;let r=typeof t;if(r==="number")return By(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return Oy.call(t).replace(Dy,"Symbol($1)");let o=Fy.call(t).slice(8,-1);return o==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):o==="Error"||t instanceof Error?"["+My.call(t)+"]":o==="RegExp"?Ry.call(t):null}function Je(t,e){let r=fp(t,e);return r!==null?r:JSON.stringify(t,function(o,n){let i=fp(this[o],e);return i!==null?i:n},2)}function yp(t){return t==null?[]:[].concat(t)}var bp,xp,vp,Ly=/\$\{\s*(\w+)\s*\}/g;bp=Symbol.toStringTag;var fn=class{constructor(e,r,o,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[bp]="Error",this.name="ValidationError",this.value=r,this.path=o,this.type=n,this.errors=[],this.inner=[],yp(e).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]}};xp=Symbol.hasInstance;vp=Symbol.toStringTag;var ae=class extends Error{static formatError(e,r){let o=r.label||r.path||"this";return r=Object.assign({},r,{path:o,originalPath:r.path}),typeof e=="string"?e.replace(Ly,(n,i)=>Je(r[i])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,o,n,i){let a=new fn(e,r,o,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[vp]="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[xp](e){return fn[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},je={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:o})=>{let n=o!=null&&o!==r?` (cast from the value \`${Je(o,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Je(r,!0)}\``+n:`${t} must match the configured type. The validated value was: \`${Je(r,!0)}\``+n}},be={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"},ft={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"},ha={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ga={isValue:"${path} field must be ${value}"},un={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},cn={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"},Cp={notType:t=>{let{path:e,value:r,spec:o}=t,n=o.types.length;if(Array.isArray(r)){if(r.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${r.length} for value: \`${Je(r,!0)}\``;if(r.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${r.length} for value: \`${Je(r,!0)}\``}return ae.formatError(je.notType,t)}},bR=Object.assign(Object.create(null),{mixed:je,string:be,number:ft,date:ha,object:un,array:cn,boolean:ga,tuple:Cp}),vn=t=>t&&t.__isYupSchema__,rr=class{static fromOptions(e,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:n,otherwise:i}=r,a=typeof o=="function"?o:(...s)=>s.every(l=>l===o);return new rr(e,(s,l)=>{var u;let p=a(...s)?n:i;return(u=p==null?void 0:p(l))!=null?u:l})}constructor(e,r){this.fn=void 0,this.refs=e,this.refs=e,this.fn=r}resolve(e,r){let o=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),n=this.fn(o,e,r);if(n===void 0||n===e)return e;if(!vn(n))throw new TypeError("conditions must return a schema object");return n.resolve(r)}},ln={context:"$",value:"."};var et=class{constructor(e,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ln.context,this.isValue=this.key[0]===ln.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?ln.context:this.isValue?ln.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&(0,Re.getter)(this.path,!0),this.map=r.map}getValue(e,r,o){let n=this.isContext?o:this.isValue?e:r;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,r){return this.getValue(e,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};et.prototype.__isYupRef=!0;var Be=t=>t==null;function er(t){function e({value:r,path:o="",options:n,originalValue:i,schema:a},s,l){let{name:u,test:p,params:f,message:h,skipAbsent:m}=t,{parent:y,context:g,abortEarly:w=a.spec.abortEarly,disableStackTrace:x=a.spec.disableStackTrace}=n,T={value:r,parent:y,context:g};function I(M={}){let _=wp(Object.assign({value:r,originalValue:i,label:a.spec.label,path:M.path||o,spec:a.spec,disableStackTrace:M.disableStackTrace||x},f,M.params),T),b=new ae(ae.formatError(M.message||h,_),r,_.path,M.type||u,_.disableStackTrace);return b.params=_,b}let P=w?s:l,R={path:o,parent:y,type:u,from:n.from,createError:I,resolve(M){return Sp(M,T)},options:n,originalValue:i,schema:a},$=M=>{ae.isError(M)?P(M):M?l(null):P(I())},S=M=>{ae.isError(M)?P(M):s(M)};if(m&&Be(r))return $(!0);let q;try{var J;if(q=p.call(R,r,R),typeof((J=q)==null?void 0:J.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(q).then($,S)}}catch(M){S(M);return}$(q)}return e.OPTIONS=t,e}function wp(t,e){if(!t)return t;for(let r of Object.keys(t))t[r]=Sp(t[r],e);return t}function Sp(t,e){return et.isRef(t)?t.getValue(e.value,e.parent,e.context):t}function $y(t,e,r,o=r){let n,i,a;return e?((0,Re.forEach)(e,(s,l,u)=>{let p=l?s.slice(1,s.length-1):s;t=t.resolve({context:o,parent:n,value:r});let f=t.type==="tuple",h=u?parseInt(p,10):0;if(t.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(r&&h>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${e}. because there is no value at that index. `);n=r,r=r&&r[h],t=f?t.spec.types[h]:t.innerType}if(!u){if(!t.fields||!t.fields[p])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);n=r,r=r&&r[p],t=t.fields[p]}i=p,a=l?"["+s+"]":"."+s}),{schema:t,parent:n,parentPath:i}):{parent:n,parentPath:e,schema:t}}var or=class extends Set{describe(){let e=[];for(let r of this.values())e.push(et.isRef(r)?r.describe():r);return e}resolveAll(e){let r=[];for(let o of this.values())r.push(e(o));return r}clone(){return new or(this.values())}merge(e,r){let o=this.clone();return e.forEach(n=>o.add(n)),r.forEach(n=>o.delete(n)),o}};function tr(t,e=new Map){if(vn(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let o=0;o<t.length;o++)r[o]=tr(t[o],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(let[o,n]of t.entries())r.set(o,tr(n,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(let o of t)r.add(tr(o,e))}else if(t instanceof Object){r={},e.set(t,r);for(let[o,n]of Object.entries(t))r[o]=tr(n,e)}else throw Error(`Unable to clone ${t}`);return r}function zy(t){if(!(t!=null&&t.length))return;let e=[],r="",o=!1,n=!1;for(let i=0;i<t.length;i++){let a=t[i];if(a==="["&&!n){r&&(e.push(...r.split(".").filter(Boolean)),r=""),o=!0;continue}if(a==="]"&&!n){r&&(/^\d+$/.test(r)?e.push(r):e.push(r.replace(/^"|"$/g,"")),r=""),o=!1;continue}if(a==='"'){n=!n;continue}if(a==="."&&!o&&!n){r&&(e.push(r),r="");continue}r+=a}return r&&e.push(...r.split(".").filter(Boolean)),e}function _y(t,e){let r=e?`${e}.${t.path}`:t.path;return t.errors.map(o=>({message:o,path:zy(r)}))}function Pp(t,e){var r;if(!((r=t.inner)!=null&&r.length)&&t.errors.length)return _y(t,e);let o=e?`${e}.${t.path}`:t.path;return t.inner.flatMap(n=>Pp(n,o))}var se=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new or,this._blacklist=new or,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(je.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=tr(Object.assign({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let o=e(this);return this._mutate=r,o}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,o=e.clone(),n=Object.assign({},r.spec,o.spec);return o.spec=n,o.internalTests=Object.assign({},r.internalTests,o.internalTests),o._whitelist=r._whitelist.merge(e._whitelist,e._blacklist),o._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),o.tests=r.tests,o.exclusiveTests=r.exclusiveTests,o.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),o.transforms=[...r.transforms,...o.transforms],o}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let o=r.conditions;r=r.clone(),r.conditions=[],r=o.reduce((n,i)=>i.resolve(n,e),r),r=r.resolve(e)}return r}resolveOptions(e){var r,o,n,i;return Object.assign({},e,{from:e.from||[],strict:(r=e.strict)!=null?r:this.spec.strict,abortEarly:(o=e.abortEarly)!=null?o:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,r={}){let o=this.resolve(Object.assign({value:e},r)),n=r.assert==="ignore-optionality",i=o._cast(e,r);if(r.assert!==!1&&!o.isType(i)){if(n&&Be(i))return i;let a=Je(e),s=Je(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
8
156
 
9
157
  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=h=>{n||(n=!0,r(h,a))},f=h=>{n||(n=!0,o(h,a))},g=i.length,m=[];if(!g)return f([]);let y={value:a,originalValue:s,path:l,options:u,schema:this};for(let h=0;h<i.length;h++){let w=i[h];w(y,p,function(T){T&&(Array.isArray(T)?m.push(...T):m.push(T)),--g<=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,g,m)=>this.resolve(p)._validate(u,p,g,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):jt(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=Ut({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=Ut({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=Ut(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=Nu(t).map(i=>new Qe(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new qt(n,r):qt.fromOptions(n,r)),o}typeError(t){let r=this.clone();return r.internalTests.typeError=Ut({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=Ut({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=Ut({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?Hu(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:ju(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}=Py(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 Iy=()=>!0;function Ey(e){return new Xo(e)}var Xo=class extends se{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Iy},t))}};Ey.prototype=Xo.prototype;function Ay(){return new Jo}var Jo=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=Zi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Re(r)||r===!0}})}isFalse(t=Zi.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)}};Ay.prototype=Jo.prototype;var My=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Fy(e){let t=Qi(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function Qi(e){var t,r;let o=My.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 Ry=/^[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])?)*$/,Dy=/^((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,Oy=/^(?:[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,By="^\\d{4}-\\d{2}-\\d{2}",Ly="\\d{2}:\\d{2}:\\d{2}",_y="(([+-]\\d{2}(:?\\d{2})?)|Z)",$y=new RegExp(`${By}T${Ly}(\\.\\d+)?${_y}$`),Ny=e=>Re(e)||e===e.trim(),Vy={}.toString();function fe(){return new en}var en=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===Vy?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=ge.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,r=ge.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,r=ge.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,r){let o=!1,n,i;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:i}=r:n=r),this.test({name:i||"matches",message:n||ge.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&o||a.search(t)!==-1})}email(t=ge.email){return this.matches(Ry,{name:"email",message:t,excludeEmptyString:!0})}url(t=ge.url){return this.matches(Dy,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ge.uuid){return this.matches(Oy,{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($y,{name:"datetime",message:r||ge.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||ge.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:i=>{if(!i||o)return!0;let a=Qi(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||ge.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;let a=Qi(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ge.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:Ny})}lowercase(t=ge.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=ge.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=en.prototype;var zy=e=>e!=+e;function Wy(){return new tn}var tn=class extends se{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!zy(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=at.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=at.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=at.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=at.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=at.positive){return this.moreThan(0,t)}negative(t=at.negative){return this.lessThan(0,t)}integer(t=at.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))}};Wy.prototype=tn.prototype;var qu=new Date(""),Gy=e=>Object.prototype.toString.call(e)==="[object Date]";function Yu(){return new xt}var xt=class extends se{constructor(){super({type:"date",check(t){return Gy(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=Fy(t),isNaN(t)?xt.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=Ki.min){let o=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(t,r=Ki.max){let o=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};xt.INVALID_DATE=qu;Yu.prototype=xt.prototype;Yu.INVALID_DATE=qu;function Hy(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):an(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return $u.default.array(Array.from(o),r).reverse()}function Bu(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 Ku(e){return(t,r)=>Bu(e,t)-Bu(e,r)}var Zu=(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 Zo(e){if("fields"in e){let t={};for(let[r,o]of Object.entries(e.fields))t[r]=Zo(o);return e.setFields(t)}if(e.type==="array"){let t=e.optional();return t.innerType&&(t.innerType=Zo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Zo)}):"optional"in e?e.optional():e}var Uy=(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)},Lu=e=>Object.prototype.toString.call(e)==="[object Object]";function _u(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(o=>r.indexOf(o)===-1)}var jy=Ku([]);function we(e){return new rn(e)}var rn=class extends se{constructor(t){super({type:"object",check(r){return Lu(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=jy,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 g=i[f],m=f in n;if(g){let y,h=n[f];u.path=(r.path?`${r.path}.`:"")+f,g=g.resolve({value:h,context:r.context,parent:l});let w=g instanceof se?g.spec:void 0,v=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||f in n;continue}y=!r.__validating||!v?g.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||!Lu(u)){n(l,u);return}a=a||u;let p=[];for(let f of this._nodes){let g=this.fields[f];!g||Qe.isRef(g)||p.push(g.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=Hy(t,r),o._sortErrors=Ku(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 Zo(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 Uy(i,t)&&(a=Object.assign({},i),o||delete a[t],a[r]=n(i)),a})}json(){return this.transform(Zu)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Yo.exact,test(r){if(r==null)return!0;let o=_u(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Yo.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=_u(this.schema,n);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,r=Yo.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[t(n)]=r[n];return o})}camelCase(){return this.transformKeys(Tr.camelCase)}snakeCase(){return this.transformKeys(Tr.snakeCase)}constantCase(){return this.transformKeys(t=>(0,Tr.snakeCase)(t).toUpperCase())}describe(t){let r=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(let[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=rn.prototype;function qy(e){return new on(e)}var on=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 g;f[m]=a.asNestedTest({options:r,index:m,parent:u,parentPath:r.path,originalParent:(g=r.originalValue)!=null?g: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(Zu)}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(!an(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=Ko.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||Ko.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||Ko.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}};qy.prototype=on.prototype;function Yy(e){return new nn(e)}var nn=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(Gu.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,g]of i.entries()){var p;u[f]=g.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}};Yy.prototype=nn.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function vt(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 Xi(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 bt({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 Ct(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},e))}function Ji(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 ea(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 wt(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 St(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 Pt(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 b0=_react.forwardRef.call(void 0, function(t,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},t))});function Tt(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:b0,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 kt(e){return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h6",variant:"h6",sx:{whiteSpace:"nowrap"}},e))}function oa(e){let{open:t,onClose:r,title:o,message:n,confirmButtonLabel:i="Confirmar",cancelButtonLabel:a="Cancelar",payload:s}=e;return _jsxruntime.jsxs.call(void 0, Tt,{open:t,onClose:()=>r(!1),children:[_jsxruntime.jsxs.call(void 0, Pt,{children:[_jsxruntime.jsx.call(void 0, kt,{children:o||"Precisamos da sua confirma\xE7\xE3o"}),_jsxruntime.jsx.call(void 0, bt,{onClose:()=>r(!1)})]}),_jsxruntime.jsx.call(void 0, wt,{children:_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",children:n||"Voc\xEA tem certeza que deseja continuar?"})}),_jsxruntime.jsx.call(void 0, St,{children:_jsxruntime.jsxs.call(void 0, Ct,{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(s!=null?s:!0),sx:{minWidth:"100px"},children:i})]})})]})}function ia({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, Tt,{open:e,onClose:t,children:[_jsxruntime.jsxs.call(void 0, Pt,{children:[_jsxruntime.jsx.call(void 0, kt,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, bt,{onClose:t})]}),_jsxruntime.jsx.call(void 0, wt,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, St,{children:_jsxruntime.jsxs.call(void 0, Ct,{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 aa({children:e}){return _jsxruntime.jsx.call(void 0, _core.DialogsProvider,{children:e})}var I0={Root:Tt,Provider:aa,AdicionarButton:ea,Header:Pt,Title:kt,ActionClose:bt,Content:wt,Footer:St,Actions:Ct,ActionCancelar:Xi,ActionSalvar:Ji,ConfirmDelete:ia,Confirm:oa},W= exports.DialogV2 =I0;function At(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 np={senhaAtual:"",senhaNova:""},$0=we().shape({senhaAtual:fe().required("Informe a Senha Atual."),senhaNova:fe().required("Informe a Nova Senha.")});function Xt(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:g}=_hooks.useValidations.call(void 0, ),{data:m,handleChange:y,setData:h,changeValue:w}=_hooks.useForm.call(void 0, np),[v,T]=_react.useState.call(void 0, !1),[I,P]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{s&&w("senhaAtual",s)},[s]),_react.useEffect.call(void 0, ()=>{m.senhaNova&&T(_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),P(null),$0.validate(m,{abortEarly:!1}).then(()=>$(this,null,function*(){var x;let{senhaAtual:F,senhaNova:N}=m;try{(yield u(F,N,l))&&(n&&n(),h(np))}catch(b){if(i&&i(b),_axios.isAxiosError.call(void 0, b)){P((x=b.response)==null?void 0:x.data.message);return}P("Ocorreu um erro ao tentar alterar a senha")}})).catch(F=>{f(F)})})}function _(){return(m==null?void 0:m.senhaNova.length)>=8}function S(){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 Z(){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 q(){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 J(){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.Grid,{container:!0,spacing:2,children:[a&&_jsxruntime.jsx.call(void 0, _material.Grid,{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.Grid,{size:12,children:_jsxruntime.jsx.call(void 0, vt,c({name:"senhaAtual",label:"Senha Atual",value:(m==null?void 0:m.senhaAtual)||"",onChange:y},g("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid,{size:12,children:_jsxruntime.jsx.call(void 0, vt,c({name:"senhaNova",label:"Nova Senha",value:(m==null?void 0:m.senhaNova)||"",onChange:y},g("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid,{size:12,children:[_jsxruntime.jsx.call(void 0, At,{isValid:_(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, At,{isValid:S(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, At,{isValid:Z(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, At,{isValid:q(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, At,{isValid:J(),message:"A nova senha deve ter ao menos um caracter especial"})]}),I&&_jsxruntime.jsx.call(void 0, _material.Grid,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:I})})]})}),_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 j0=we().shape({email:fe().required("Informe o e-mail"),password:fe().required("Informe a senha")});function sa(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,g]=_react.useState.call(void 0, !1),[m,y]=_react.useState.call(void 0, !1),[h,w]=_react.useState.call(void 0, null),{login:v}=_hooks.useCredentials.call(void 0, n),{validationProps:T,setValidationErrors:I}=_hooks.useValidations.call(void 0, );function P(){return $(this,null,function*(){I(null),w(null),j0.validate({email:i,password:s},{abortEarly:!1}).then(()=>$(this,null,function*(){var R,_;p(!0);try{let S=yield v(i,s);S&&t(S)}catch(S){if(_axios.isAxiosError.call(void 0, S)){if(((R=S.response)==null?void 0:R.data.code)==="E_FIRST_ACCESS"){g(!0);return}w((_=S.response)==null?void 0:_.data.message)}r(S)}})).catch(R=>{I(R)}).finally(()=>{p(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:P,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)},T("email"))),_jsxruntime.jsx.call(void 0, vt,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:s||"",onChange:R=>l(R.target.value),onKeyDown:R=>R.key==="Enter"&&P()},T("password"))),_jsxruntime.jsx.call(void 0, L,{fullWidth:!0,variant:"contained",onClick:P,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"}),h&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:h}),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, Xt,{senhaAtual:s,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>$(this,null,function*(){return g(!1)}),onSuccess:()=>{g(!1),y(!0),l("")},credentialsConfig:n})]})}var Q0=we().shape({email:fe().required("Informe o e-mail")});function la(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:g,setValidationErrors:m}=_hooks.useValidations.call(void 0, );function y(){return $(this,null,function*(){m(null),Q0.validate({email:o},{abortEarly:!1}).then(()=>$(this,null,function*(){var h;try{a(!0),yield f(o),l(!0)}catch(w){p((h=w.response)==null?void 0:h.data.message)}finally{a(!1)}})).catch(h=>{m(h)})})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",children:[_jsxruntime.jsx.call(void 0, _material.TextField,c({name:"email",label:"E-mail",margin:"normal",placeholder:"Informe o e-mail utilizado para acessar o sistema",autoFocus:!0,value:o||"",onChange:h=>n(h.target.value)},g("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:h=>h.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:h=>h.palette.primary.dark}},children:"Ir para o Login"}),children:"Enviamos para o seu e-mail as instru\xE7\xF5es para recuperar a sua senha"}),u&&_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:u})]})}function ua(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 lp=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 Er(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?lp(t||""):n,[t,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:s,onChange:p=>{let f=lp(p.target.value);if(a||i(f),r){let g=d(c({},p),{target:d(c({},p.target),{value:f})});r(g)}},inputProps:{maxLength:15}},o))}function Ar({length:e=6,value:t,onChange:r}){let o=_react.useRef.call(void 0, []),n=(a,s)=>{var g;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&&((g=o.current[a+1])==null||g.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 fa(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:g}=_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 g({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, Ar,{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 Px=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 un(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:g,validate:m,validationErrors:y}=_hooks.useForm.call(void 0, {contato:""},Px),[h,w]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:T=>$(this,null,function*(){T.preventDefault(),m(I=>$(this,null,function*(){try{l(!1),a(!0);let P=yield u({channel:t==="otp-email"?"email":"whatsapp",target:I.contato});w(!0)}catch(P){l(P.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:g.contato||"",onChange:p,fullWidth:!0},y("contato"))),t==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Er,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:g.contato||"",onChange:T=>{f("contato",T.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:T=>T.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, fa,{onLoginSuccess:o,open:h,onClose:T=>$(this,null,function*(){w(!1)}),payload:{target:g.contato,channel:t==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var Rx={login:"Acesse sua conta",licensa:"Selecione a licen\xE7a","esqueci-senha":"Recupere a sua senha","otp-email":"Entrar com senha tempor\xE1ria (E-mail)","otp-whatsapp":"Entrar com senha tempor\xE1ria (WhatsApp)"};function ma(e){let{credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName: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"),g=_material.useTheme.call(void 0, ),m=_material.useMediaQuery.call(void 0, g.breakpoints.up("md"));_react.useEffect.call(void 0, ()=>{u&&n&&n()},[u]);function y(I){return $(this,null,function*(){try{if(Array.isArray(I==null?void 0:I.empresas)){if((I==null?void 0:I.empresas.length)===1){let P=yield l(I==null?void 0:I.token,I.empresas[0].uuid);P&&r(P);return}f("licensa"),s(I);return}r(I)}catch(P){o(P)}})}function h(I){return $(this,null,function*(){o(I)})}function w(I){f(I)}function v(){f("login")}let T=Rx[p];return _jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, Wi,{label:i,subTitle:T}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[p==="login"&&_jsxruntime.jsx.call(void 0, sa,{credentialsConfig:t,onLoginSuccess:y,onLoginFailed:h,onOptionsClick:w}),p==="licensa"&&_jsxruntime.jsx.call(void 0, ua,{loginData:a,credentialsConfig:t,onLoginSuccess:r,onLoginFailed:o}),p==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, la,{onLoginClick:v,credentialsConfig:t}),p==="otp-email"&&_jsxruntime.jsx.call(void 0, un,{onLoginClick:v,onLoginSuccess:y,tipo:"otp-email",credentialsConfig:t}),p==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, un,{onLoginClick:v,onLoginSuccess:y,tipo:"otp-whatsapp",credentialsConfig:t})]})]})}function ga(){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 Vx({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 gp(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, zi,{children:t}):_jsxruntime.jsx.call(void 0, ga,{}),_jsxruntime.jsx.call(void 0, Vx,{children:r||_jsxruntime.jsx.call(void 0, ma,c({},e))})]})}function xa(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},e))}function va({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 ba(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 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, "circle",{cx:"12",cy:"12",r:"10"}),_jsxruntime.jsx.call(void 0, "path",{d:"m4.9 4.9 14.2 14.2"})]})}))}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, "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 Fr(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 ka(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 Ia(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Aa(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 Fa(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 Ra(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "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 Da(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 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 Ba(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 hv=e=>({transition:e.transitions.create(["transform"],{duration:500})}),gv=_styles.styled.call(void 0, Or,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>c(c(c({},hv(e)),t&&{transform:"rotate(-180deg)"}),!t&&{transform:"rotate(0)"}));function La(e){let{open:t}=e;return _jsxruntime.jsx.call(void 0, gv,{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 $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",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 Na(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Va(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M7.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 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:"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 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, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 7v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 7v9"})]})}))}function Ga(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 Ua(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"white",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"3"})]})}))}function ja(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 5.764v15"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9 3.236v15"})]})}))}function qa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"12",y2:"12"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"6",y2:"6"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})}))}function 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, "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:"m6 17 5-5-5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m13 17 5-5-5-5"})]})}))}function Xa(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 es(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",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 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",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 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:"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 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:"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 is(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M2.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 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:"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 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, "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 ls(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 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, "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 us(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 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, "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 ds(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 gs(e){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},e),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 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:"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 xb={Circle:ka,Dashboard:Ra,Expandable:La,Down:Or,Negociacao:Ya,Cadastro:Sa,Clientes:Ia,Filter:_a,Search:es,ChevronDown:Fr,Kanban:Wa,Erease:Ba,BarCode:ba,TextCursor:rs,OpenPanel:Za,ClosePanel:Aa,Menu:qa,Configs:Fa,Users:os,Password:Xa,Logout:Ga,History:za,Help:Va,Video:is,Docs:Da,Block:wa,Maps:ja,MapPin:Ua,HandShake:Na,Store:ts,Download:as,ContaBancaria:ss,GrupoLancamento:ls,HistoricoPadrao:cs,Imovel:us,Lancamento:ps,ChevronLeft:ds,ChevronRight:hs,Calendar:gs,Save:ys,Profile:$a},xe= exports.Icon =xb;function xs(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 bb={Root:va,Content:xa,ToggleMenu:xs},Cb= exports.Header =bb;var Fb=_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 vs({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(g=>!g);return}i&&a&&i(a)}function f(g){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):g||_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, Fb,{selected:n,disableGutters:!0,onClick:g=>{g.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})})]})}function kn(e){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},e))}var Hb=_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 vp(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?vp(r.props.children,t):null;return hi.default.cloneElement(r,{open:t,children:o})})}function Cs(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(h,w){u({element:h.currentTarget,id:w})}function g(){u(null)}let m=vp(a,!0);function y(h){return typeof t=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:t}):h||_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, Hb,{selected:i,onMouseEnter:h=>{o||f(h,n)},onMouseLeave:()=>{o||g()},disableGutters:!0,onClick:h=>{h.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, kn,{elevation:1,sx:{position:"relative","&::before":{content:'""',position:"absolute",left:-8,width:"1.2rem",height:"1.2rem",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4MDgwODAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1waW4tc2FmZXR5LW9wZW4iPjxwYXRoIGQ9Ik0yMC44IDMuMmMtMS42LTEuNi00LjEtMS42LTUuNyAwTDEyLjMgNlMxNSA5IDE4IDZjLTMgMyAwIDUuNyAwIDUuN2wyLjgtMi44YzEuNi0xLjYgMS42LTQuMiAwLTUuNyIvPjxwYXRoIGQ9Im03LjEgMjEuMSAxMC4zLTEwLjIiLz48Y2lyY2xlIGN4PSI1IiBjeT0iMTkiIHI9IjMiLz48cGF0aCBkPSJNOSAycy00LjEgOS41LTYuNzU1IDE1LjgiLz48L3N2Zz4=")',backgroundSize:"contain",backgroundRepeat:"no-repeat",transition:"transform 0.2s ease-in-out"},p:1,width:h=>{var w;return(w=h.mixins.menu)==null?void 0:w.width}},children:m})})]})})}function ws(e){let n=e,{open:t,isFirstLevel:r=!1}=n,o=C(n,["open","isFirstLevel"]);return t?_jsxruntime.jsx.call(void 0, vs,c({},o)):_jsxruntime.jsx.call(void 0, Cs,c({},o))}function Zb(e,t){if(!e)throw new Error(t)}var Cp=_react.createContext.call(void 0, null);function wp(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, Cp.Provider,{value:{isOpen:o,toggleMenu:i},children:t})}function Qb(){let e=_react.useContext.call(void 0, Cp);return Zb(e,"cannot find MenuContext provider"),e}var Sp=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"}},Pp=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({},Sp(e)),{"& .MuiDrawer-paper":Sp(e)})),!t&&d(c({},Pp(e)),{"& .MuiDrawer-paper":Pp(e)}))}),rC=_styles.styled.call(void 0, "div")(({theme:e})=>e.mixins.toolbar);function Ip(e,t,r,o){return hi.default.Children.map(e,n=>{var f,g;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=(g=n.props)!=null&&g.children?Ip(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 Ps(e){let{open:t,toggleMenu:r,children:o,onClickItem:n}=e,a=new URL(window.location.href).pathname,s=Ip(o,a,t,n);return _jsxruntime.jsxs.call(void 0, tC,{variant:"permanent",open:t,onClose:r,children:[_jsxruntime.jsx.call(void 0, rC,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:s})]})}function nC(e){return e.map(t=>t.visible?_jsxruntime.jsx.call(void 0, Ep.Item,{link:t.link,id:t.id,label:t.label,icon:t.icon,children:t.items&&nC(t.items)},t.id):null)}var Ep={Root:Ps,Item:ws,Provider:wp};var iC=Ep;function Ap(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 ks(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 fC={Root:ks},dC= exports.ContentTitle =fC;function Is({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 gC=process.env.NODE_ENV==="production",Es="Invariant failed";function As(e,t){if(!e){if(gC)throw new Error(Es);var r=typeof t=="function"?t():t,o=r?"".concat(Es,": ").concat(r):Es;throw new Error(o)}}var _uuid = require('uuid');function bC(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 Op=hi.default.createContext({}),Bp= exports.FilterApiContext =hi.default.createContext({});function Lp(e){let{children:t,filterValues:r={},storagePath:o}=e,[n,i]=_react.useReducer.call(void 0, bC,{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 T=v.target.type,I=v.target.name,P;switch(T){case"text":P=v.target.value;break;case"checkbox":P=v.target.checked;break;default:P=v.target.value}i({type:"updateFilterValue",payload:{name:I,value:P}})}function f(v,T){i({type:"updateFilterValue",payload:{name:v,value:T}})}function g(v){i({type:"updateFilterValues",filterValues:v})}function m(){i({type:"updateAppliedValues",storagePath:o})}function y(v){i({type:"deleteAppliedValue",filterName:v})}function h(){i({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),i({type:"updateAppliedValues",storagePath:o})}function w(v){i({type:"updateContainer",container:v})}return{setContainer:w,openFilter:s,closeFilter:l,onChangeFilterValue:p,changeFilterValue:f,changeFilterValues:g,applyFilterValues:m,deleteFilterValue:y,deleteAllFilterValues:h,toggleFilter:u}},[r]);return _jsxruntime.jsx.call(void 0, Bp.Provider,{value:a,children:_jsxruntime.jsx.call(void 0, Op.Provider,{value:n,children:t})})}function lr(){let e=_react.useContext.call(void 0, Op);return As(e,"cannot find FilterDataContext provider"),e}function Me(){let e=_react.useContext.call(void 0, Bp);return As(e,"cannot find FilterApiContextContext provider"),e}function Ms(){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 Fs(e){let{children:t}=e,{isOpen:r,container:o}=lr(),{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 Rs({children:e}){return _jsxruntime.jsx.call(void 0, _material.Box,{mt:1,ml:1,mr:1,mb:2,children:e})}function Os(){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 Bs(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 $s({children:e}){let{appliedValues:t}=lr(),{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:g=>{o&&o(p.props.name||""),a()},onClick:g=>{i(g,{target:g.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 Ns({children:e}){let t=_react.useRef.call(void 0, null),{setContainer:r}=Me(),{container:o}=lr();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 Vs(){let{deleteAllFilterValues:e}=Me();return _jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{e&&e()},children:"Resetar"})}function zs(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, _material.Box,{sx:{border:r=>`1px solid ${r.palette.border}`,borderRadius:"90px",flexGrow:1,pl:1,pr:1},children:t})}function Ws(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 HC={Root:zs,SearchTextField:Ws,Container:Ns,AdvancedContainer:Fs,AdvancedContent:Rs,AdvancedActionsContainer:Is,AdvancedButton:Ms,Provider:Lp,ApplyButton:Os,ResetButton:Vs,Chips:$s,Chip:Bs},UC= exports.Filter =HC;var _xdatagrid = require('@mui/x-data-grid');function Gs(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 Gp=_react.createContext.call(void 0, {});function Us({children:e}){let[t,r]=_react.useState.call(void 0, {type:"include",ids:new Set}),[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({type:"include",ids:new Set}),n(!0)}return _jsxruntime.jsx.call(void 0, Gp.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, Gp)}function js(e){let{countTitle:t,gender:r}=e,{rowsSelectedId:o}=We(),n=(o==null?void 0:o.ids.size)||0,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 qs(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 zr(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 f1=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function Ys(){let{apiRef:e}=We(),t=r=>{e!=null&&e.current&&e.current.exportDataAsCsv(r)};return _jsxruntime.jsx.call(void 0, zr,{startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.FileDownload,{}),onClick:()=>t({getRowsToExport:f1}),children:"Exportar CSV"})}function Ks(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 Zs(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 Qs(e){let n=e,{event:t,onClick:r}=n,o=C(n,["event","onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,{label:"A\xE7\xE3o",onClick:()=>{},icon:_jsxruntime.jsx.call(void 0, "span",{children:"\u{1F527}"})})}function Xs(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 g=(s||0)%a;f=g===0?a:g}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,g)=>{r&&r(g)},page:i||0,color:"primary"})]})]})}function Js({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 el({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 tl(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1.5},e))}function rl(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 nl(){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 al({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 G1=({apiRef:e})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, e);function sl(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,g=C(R,["error","isLoading","isFetching","data","columns","controlledRowsSelectedId","onClearRowsSelectedId","onRowSelectionChange","onCellKeyDown","onRowDoubleClick","stackProps"]),{rowsSelectedId:m,setRowsSelectedId:y,clearCallback:h,setClearCallback:w,apiRef:v}=We(),T=_react.useMemo.call(void 0, ()=>_=>_.map(S=>S.headerName==="A\xE7\xF5es"?d(c({},S),{minWidth:S.minWidth||80,maxWidth:S.maxWidth||S.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}):d(c({},S),{flex:S.flex||1,minWidth:S.minWidth||100,headerClassName:S!=null&&S.enableStickyColumns?"sticky-header":"",cellClassName:S!=null&&S.enableStickyColumns?"sticky-cell":""})),[i]);_react.useEffect.call(void 0, ()=>{a&&y(a)},[a]),_react.useEffect.call(void 0, ()=>{h&&(s&&s({type:"include",ids:new Set}),w(!1))},[h]);function I(_,S,Z){switch(S.ctrlKey&&S.code==="KeyE"?"ctrl+e":S.code){case"Enter":S.preventDefault(),u&&u("edit",_.id);break;case"F3":S.preventDefault(),u&&u("edit",_.id);break;case"Delete":S.preventDefault(),u&&u("delete",_.id);break;case"ctrl+e":S.preventDefault(),(F=>{v!=null&&v.current&&v.current.exportDataAsCsv(F)})({getRowsToExport:G1});break;default:break}}function P(_,S,Z){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:T(i),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:P,onCellKeyDown:I,disableRowSelectionOnClick:!0,rowSelectionModel:m,onRowSelectionModelChange:(_,S)=>{l&&l(_,S),!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, al,{errorMessage:t}):_jsxruntime.jsx.call(void 0, nl,{})},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}}},g))]}))}function ll({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 cl(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, Us,{children:e})}))}var X1={CellActionTransport:Gs,SelectionCounter:js,CellActionDelete:qs,ExportCsvButton:Ys,CellActionEdit:Ks,CellActions:Zs,CellAction:Qs,Pagination:Xs,Actions:Js,Toolbar:el,Content:tl,Button:zr,Footer:rl,Table:sl,Title:ll,Root:cl},J1= exports.DataTableV2 =X1;function ul(e){return _jsxruntime.jsx.call(void 0, _material.Stack,c({gap:.5,overflow:"hidden"},e))}function pl(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 fl(e){return _jsxruntime.jsx.call(void 0, _material.MenuItem,c({},e))}var aw={Root:ul,Content:pl,Item:fl},Wr= exports.List =aw;var uf=_react.createContext.call(void 0, void 0),pf=({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, uf.Provider,{value:{isOpen:t,open:i,close:a,anchorEl:o,setAnchorEl:n},children:e})},ur=()=>{let e=_react.useContext.call(void 0, uf);if(!e)throw new Error("usePopover must be used within a PopoverProvider");return e};function dl(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, pf,{children:t})}var _reactslot = require('@radix-ui/react-slot');function ml(e){let i=e,{asChild:t=!1}=i,r=C(i,["asChild"]),o=t?_reactslot.Slot:_material.Button,{open:n}=ur();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}=ur();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n()}},r))}function gl(e){let{isOpen:t,close:r,anchorEl:o}=ur();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 vw={Root:dl,Trigger:ml,Content:gl,Close:hl},pr= exports.Popover =vw;var hf="mio-componente:button-group:value";function yl(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(hf)||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(hf,l||0),u(l)},[l]);let f=[],g=_react.Children.map(t,(m,y)=>{var w,v;f.push({label:m.props.children,value:((w=m.props)==null?void 0:w.value)||y});let h=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(h.props.value)===Number(l)?h: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:[g,_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, Fr,{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 xl(e){return _jsxruntime.jsx.call(void 0, L,c({},e))}var Fw={Root:yl,Button:xl},Rw= exports.ButtonGroup =Fw;function vl(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 wl(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 Sl(e){let{title:t}=e;return _jsxruntime.jsx.call(void 0, _material.Typography,{component:"h6",variant:"h6",children:t})}function Pl(e){let{children:t}=e;return _jsxruntime.jsx.call(void 0, "div",{children:t})}var $w={Root:vl,Content:Pl,Header:wl,Title:Sl},Nw= exports.Card =$w;var _lucidereact = require('lucide-react'); var Vw = _interopRequireWildcard(_lucidereact);var zw=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=Vw[e];return _jsxruntime.jsx.call(void 0, s,c({size:t,strokeWidth:r,color:o},n))},Ww= exports.LucidIcon =zw;function wf(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, pr.Root,{children:[_jsxruntime.jsx.call(void 0, pr.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, pr.Content,{sx:{"& .MuiPopover-paper":{minWidth:"300px",borderRadius:"12px",p:.5}},children:_jsxruntime.jsxs.call(void 0, Wr.Root,{sx:{m:.5,minWidth:"300px",maxHeight:"300px",overflow:"auto"},children:[_jsxruntime.jsx.call(void 0, nt,{autoFocus:!0,onSearch:a}),_jsxruntime.jsx.call(void 0, Wr.Content,{children:s.map(l=>_jsxruntime.jsx.call(void 0, pr.Close,{asChild:!0,children:_jsxruntime.jsx.call(void 0, Wr.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 Kw=_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"}})),Zw=e=>_jsxruntime.jsx.call(void 0, Kw,c({},e)),Fn=Zw;function Tl(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, Fn,{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, Ot,{activeMenu:r,sx:{pl:l=>l.spacing(1.5)},menus:(t==null?void 0:t.items)||[],onMenuClick:o})})]})}function Ot(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, Tl,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function kl(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, Fn,{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, Ot,{activeMenu:r,onMenuClick:o,menus:(l==null?void 0:l.items)||[],sx:{minWidth:"240px",backgroundColor:H.palette.background.paper,borderRadius:"12px",padding:"16px 4px",boxShadow:"0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%);"}})})]},`minMenu-${l.id}`):null)})}var Tf=(e,t)=>({width:e,transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}),kf=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)`}}),hS=_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({},Tf(r,e)),{"& .MuiDrawer-paper":Tf(r,e)})),!t&&d(c({},kf(e)),{"& .MuiDrawer-paper":kf(e)})));function If(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, hS,d(c({width:o,open:t,onClose:()=>a(!1)},s),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),t&&_jsxruntime.jsx.call(void 0, Ot,{onMenuClick:i,activeMenu:n,menus:r}),!t&&_jsxruntime.jsx.call(void 0, kl,{onMenuClick:i,activeMenu:n,menus:r})]}))}function Ef(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 Af(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 Rn(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 El(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 AS=({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),[g,m]=_react.useState.call(void 0, !1),y=_react.useCallback.call(void 0, (v,T)=>{f(T)},[]);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 P;let T=(P=v.target.files)==null?void 0:P[0];if(!T)return;let I=new FileReader;I.onload=()=>{o(I.result),m(!0)},I.readAsDataURL(T)},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:g,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,T)=>u(T)}),_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 El(r,p);i(v),m(!1),e&&e(v)}),children:"Salvar"})})]})]})]})},Rf=AS;var OS=we().shape({name:fe().required("Informe o nome")});function Rl(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,OS),[u,p]=_react.useState.call(void 0, !1),[f,g]=_react.useState.call(void 0, !1),[m,y]=_react.useState.call(void 0, !1),{uploadAvatar:h,atualizarUsuario:w}=_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(T=>$(this,null,function*(){try{g(!0),yield w(T),y(!0)}catch(I){p("Ocorreu um erro ao alterar os dados da conta")}finally{g(!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, Rf,{src:n==null?void 0:n.avatarUrl,onSave:T=>{try{h(T),o&&(y(!0),o(!0))}catch(I){p("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,I)}}}),_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.Grid,{container:!0,spacing:1.5,children:[_jsxruntime.jsx.call(void 0, _material.Grid,{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.Grid,{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.Grid,{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.Grid,{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 Ol(e){var y,h,w;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:g}=_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 g(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)}) ${(h=o==null?void 0:o.whatsappNumber)==null?void 0:h.slice(2,7)}-${(w=o==null?void 0:o.whatsappNumber)==null?void 0:w.slice(7)}`}),". ",_jsxruntime.jsx.call(void 0, "br",{}),"Digite o c\xF3digo abaixo para confirmar que este n\xFAmero \xE9 seu."]}),_jsxruntime.jsx.call(void 0, Ar,{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 l9=we().shape({whatsappNumber:fe().required("Informe o n\xFAmero do whastapp").length(15)});function $l(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:g}=_hooks.useForm.call(void 0, t),[m,y]=_react.useState.call(void 0, !1),[h,w]=_react.useState.call(void 0, !1),{atualizarUsuario:v,gerarWhatsappVerificationCode:T}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{u(t)},[t]);function I(){f(R=>$(this,null,function*(){try{s(!0);let _=yield v(R);o&&o(_.data)}catch(_){}finally{s(!1)}}))}function P(){return $(this,null,function*(){try{y(!0);let R=yield T();w(!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, Xt,{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, Er,{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:I,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:P,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, Ol,{open:h,onClose:R=>$(this,null,function*(){w(!1)}),payload:t,credentialsConfig:r,onCodigoVerificado:R=>{u(R),w(!1)}})]})}function $f(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, Rn,{value:t,index:0,children:_jsxruntime.jsx.call(void 0, Rl,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, Rn,{value:t,index:1,children:_jsxruntime.jsx.call(void 0, $l,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}exports.AlterarLicenca = wf; exports.AlterarSenha = Xt; exports.Avatar = Af; exports.Breadcrumbs = Ap; exports.Button = L; exports.ButtonContainer = Se; exports.ButtonGroup = Rw; exports.Card = Nw; exports.Checkbox = Ul; exports.ColorsGrid = ql; exports.Content = Ef; exports.ContentTitle = dC; exports.CurrencyCellStyle = sP; exports.CurrencyTextField = bd; exports.DataTableOptions = Hn; exports.DataTableV2 = J1; exports.DeleteContainer = Wn; exports.Dialog = He; exports.DialogV2 = W; exports.DrawerMenu = If; exports.Editable = Ho; exports.Filter = UC; exports.FilterApiContext = Bp; exports.FilterContainer = Zn; exports.FilterControl = Xr; exports.FilterDataContext = Op; exports.FilterProvider = Lp; exports.Flag = pc; exports.FormContainer = Jn; exports.Header = Cb; exports.Icon = xe; exports.LabelValue = pu; exports.List = Wr; exports.LucidIcon = Ww; exports.Menu = iC; exports.MioAuth = gp; exports.OptionStyles = aP; exports.PageTitle = yu; exports.PasswordTextField = vt; exports.Popover = pr; exports.Profile = $f; exports.SearchTextField = nt; exports.Surface = kn; exports.Tooltip = Bt; exports.Transporter = Vi; exports.renderMenuItems = nC; exports.theme = H; exports.useDialogs = _core.useDialogs; exports.useFilter = lr; exports.useFilterApi = Me; exports.useMenu = Qb;
158
+ `+(s!==a?`result of cast: ${s}`:""))}return i}_cast(e,r){let o=e===void 0?e:this.transforms.reduce((n,i)=>i.call(this,n,e,this),e);return o===void 0&&(o=this.getDefault(r)),o}_validate(e,r={},o,n){let{path:i,originalValue:a=e,strict:s=this.spec.strict}=r,l=e;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(e,r,o){let n=!1,{tests:i,value:a,originalValue:s,path:l,options:u}=e,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 w=i[g];w(y,p,function(T){T&&(Array.isArray(T)?m.push(...T):m.push(T)),--h<=0&&f(m)})}}asNestedTest({key:e,index:r,parent:o,parentPath:n,originalParent:i,options:a}){let s=e!=null?e: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}.`:"")+e});return(f,h,m)=>this.resolve(p)._validate(u,p,h,m)}validate(e,r){var o;let n=this.resolve(Object.assign({},r,{value:e})),i=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return new Promise((a,s)=>n._validate(e,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(e,r){var o;let n=this.resolve(Object.assign({},r,{value:e})),i,a=(o=r==null?void 0:r.disableStackTrace)!=null?o:n.spec.disableStackTrace;return n._validate(e,Object.assign({},r,{sync:!0}),(s,l)=>{throw ae.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new ae(s,e,void 0,void 0,a);i=l}),i}isValid(e,r){return this.validate(e,r).then(()=>!0,o=>{if(ae.isError(o))return!1;throw o})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(o){if(ae.isError(o))return!1;throw o}}_getDefault(e){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,e):tr(r)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,r){let o=this.clone({nullable:e});return o.internalTests.nullable=er({message:r,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),o}optionality(e,r){let o=this.clone({optional:e});return o.internalTests.optionality=er({message:r,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(e=je.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=je.notNull){return this.nullability(!1,e)}required(e=je.required){return this.clone().withMutation(r=>r.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=je.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),n=er(r),i=r.exclusive||r.name&&o.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(o.exclusiveTests[r.name]=!!r.exclusive),o.tests=o.tests.filter(a=>!(a.OPTIONS.name===r.name&&(i||a.OPTIONS.test===n.OPTIONS.test))),o.tests.push(n),o}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let o=this.clone(),n=yp(e).map(i=>new et(i));return n.forEach(i=>{i.isSibling&&o.deps.push(i.key)}),o.conditions.push(typeof r=="function"?new rr(n,r):rr.fromOptions(n,r)),o}typeError(e){let r=this.clone();return r.internalTests.typeError=er({message:e,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(e,r=je.oneOf){let o=this.clone();return e.forEach(n=>{o._whitelist.add(n),o._blacklist.delete(n)}),o.internalTests.whiteList=er({message:r,name:"oneOf",skipAbsent:!0,test(n){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(n)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),o}notOneOf(e,r=je.notOneOf){let o=this.clone();return e.forEach(n=>{o._blacklist.add(n),o._whitelist.delete(n)}),o.internalTests.blacklist=er({message:r,name:"notOneOf",test(n){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(n)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),o}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(e){let r=(e?this.resolve(e):this).clone(),{label:o,meta:n,optional:i,nullable:a}=r.spec;return{meta:n,label:o,optional:i,nullable:a,default:r.getDefault(e),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.filter((l,u,p)=>p.findIndex(f=>f.OPTIONS.name===l.OPTIONS.name)===u).map(l=>{let u=l.OPTIONS.params&&e?wp(Object.assign({},l.OPTIONS.params),e):l.OPTIONS.params;return{name:l.OPTIONS.name,params:u}})}}get"~standard"(){let e=this;return{version:1,vendor:"yup",validate(n){return z(this,null,function*(){try{return{value:yield e.validate(n,{abortEarly:!1})}}catch(i){if(i instanceof ae)return{issues:Pp(i)};throw i}})}}}};se.prototype.__isYupSchema__=!0;for(let t of["validate","validateSync"])se.prototype[`${t}At`]=function(e,r,o={}){let{parent:n,parentPath:i,schema:a}=$y(this,e,r,o.context);return a[t](n&&n[i],Object.assign({},o,{parent:n,path:e}))};for(let t of["equals","is"])se.prototype[t]=se.prototype.oneOf;for(let t of["not","nope"])se.prototype[t]=se.prototype.notOneOf;var Ny=()=>!0;function Vy(t){return new dn(t)}var dn=class extends se{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Ny},e))}};Vy.prototype=dn.prototype;function Wy(){return new mn}var mn=class extends se{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(o.spec.coerce&&!o.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=ga.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return Be(r)||r===!0}})}isFalse(e=ga.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return Be(r)||r===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};Wy.prototype=mn.prototype;var Hy=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function jy(t){let e=ya(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let r=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(r=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(r=0-r)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+r,e.second,e.millisecond)}function ya(t){var e,r;let o=Hy.exec(t);return o?{year:Xe(o[1]),month:Xe(o[2],1)-1,day:Xe(o[3],1),hour:Xe(o[4]),minute:Xe(o[5]),second:Xe(o[6]),millisecond:o[7]?Xe(o[7].substring(0,3)):0,precision:(e=(r=o[7])==null?void 0:r.length)!=null?e:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:Xe(o[10]),minuteOffset:Xe(o[11])}:null}function Xe(t,e=0){return Number(t)||e}var Gy=/^[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])?)*$/,Uy=/^((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,qy=/^(?:[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,Yy="^\\d{4}-\\d{2}-\\d{2}",Ky="\\d{2}:\\d{2}:\\d{2}",Zy="(([+-]\\d{2}(:?\\d{2})?)|Z)",Qy=new RegExp(`${Yy}T${Ky}(\\.\\d+)?${Zy}$`),Xy=t=>Be(t)||t===t.trim(),Jy={}.toString();function de(){return new hn}var hn=class extends se{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(!o.spec.coerce||o.isType(e)||Array.isArray(e))return e;let n=e!=null&&e.toString?e.toString():e;return n===Jy?e:n})})}required(e){return super.required(e).withMutation(r=>r.test({message:e||je.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e))}length(e,r=be.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(o){return o.length===this.resolve(e)}})}min(e,r=be.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o.length>=this.resolve(e)}})}max(e,r=be.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},skipAbsent:!0,test(o){return o.length<=this.resolve(e)}})}matches(e,r){let o=!1,n,i;return r&&(typeof r=="object"?{excludeEmptyString:o=!1,message:n,name:i}=r:n=r),this.test({name:i||"matches",message:n||be.matches,params:{regex:e},skipAbsent:!0,test:a=>a===""&&o||a.search(e)!==-1})}email(e=be.email){return this.matches(Gy,{name:"email",message:e,excludeEmptyString:!0})}url(e=be.url){return this.matches(Uy,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=be.uuid){return this.matches(qy,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let r="",o,n;return e&&(typeof e=="object"?{message:r="",allowOffset:o=!1,precision:n=void 0}=e:r=e),this.matches(Qy,{name:"datetime",message:r||be.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||be.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:i=>{if(!i||o)return!0;let a=ya(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:r||be.datetime_precision,params:{precision:n},skipAbsent:!0,test:i=>{if(!i||n==null)return!0;let a=ya(i);return a?a.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=be.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:Xy})}lowercase(e=be.lowercase){return this.transform(r=>Be(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Be(r)||r===r.toLowerCase()})}uppercase(e=be.uppercase){return this.transform(r=>Be(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>Be(r)||r===r.toUpperCase()})}};de.prototype=hn.prototype;var eb=t=>t!=+t;function tb(){return new gn}var gn=class extends se{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!eb(e)}}),this.withMutation(()=>{this.transform((e,r,o)=>{if(!o.spec.coerce)return e;let n=e;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return o.isType(n)||n===null?n:parseFloat(n)})})}min(e,r=ft.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o>=this.resolve(e)}})}max(e,r=ft.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o<=this.resolve(e)}})}lessThan(e,r=ft.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(o){return o<this.resolve(e)}})}moreThan(e,r=ft.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(o){return o>this.resolve(e)}})}positive(e=ft.positive){return this.moreThan(0,e)}negative(e=ft.negative){return this.lessThan(0,e)}integer(e=ft.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(e=>Be(e)?e:e|0)}round(e){var r;let o=["ceil","floor","round","trunc"];if(e=((r=e)==null?void 0:r.toLowerCase())||"round",e==="trunc")return this.truncate();if(o.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(n=>Be(n)?n:Math[e](n))}};tb.prototype=gn.prototype;var Tp=new Date(""),rb=t=>Object.prototype.toString.call(t)==="[object Date]";function kp(){return new kt}var kt=class extends se{constructor(){super({type:"date",check(e){return rb(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,r,o)=>!o.spec.coerce||o.isType(e)||e===null?e:(e=jy(e),isNaN(e)?kt.INVALID_DATE:new Date(e)))})}prepareParam(e,r){let o;if(et.isRef(e))o=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);o=n}return o}min(e,r=ha.min){let o=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(o)}})}max(e,r=ha.max){let o=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(o)}})}};kt.INVALID_DATE=Tp;kp.prototype=kt.prototype;kp.INVALID_DATE=Tp;function ob(t,e=[]){let r=[],o=new Set,n=new Set(e.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=(0,Re.split)(a)[0];o.add(l),n.has(`${s}-${l}`)||r.push([s,l])}for(let a of Object.keys(t)){let s=t[a];o.add(a),et.isRef(s)&&s.isSibling?i(s.path,a):vn(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return gp.default.array(Array.from(o),r).reverse()}function dp(t,e){let r=1/0;return t.some((o,n)=>{var i;if((i=e.path)!=null&&i.includes(o))return r=n,!0}),r}function Ip(t){return(e,r)=>dp(t,e)-dp(t,r)}var Ep=(t,e,r)=>{if(typeof t!="string")return t;let o=t;try{o=JSON.parse(t)}catch(n){}return r.isType(o)?o:t};function pn(t){if("fields"in t){let e={};for(let[r,o]of Object.entries(t.fields))e[r]=pn(o);return t.setFields(e)}if(t.type==="array"){let e=t.optional();return e.innerType&&(e.innerType=pn(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(pn)}):"optional"in t?t.optional():t}var nb=(t,e)=>{let r=[...(0,Re.normalizePath)(e)];if(r.length===1)return r[0]in t;let o=r.pop(),n=(0,Re.getter)((0,Re.join)(r),!0)(t);return!!(n&&o in n)},mp=t=>Object.prototype.toString.call(t)==="[object Object]";function hp(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(o=>r.indexOf(o)===-1)}var ib=Ip([]);function Te(t){return new yn(t)}var yn=class extends se{constructor(e){super({type:"object",check(r){return mp(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=ib,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,r={}){var o;let n=super._cast(e,r);if(n===void 0)return this.getDefault(r);if(!this._typeCheck(n))return n;let i=this.fields,a=(o=r.stripUnknown)!=null?o:this.spec.noUnknown,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 w=h instanceof se?h.spec:void 0,x=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||f in n;continue}y=!r.__validating||!x?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(e,r={},o,n){let{from:i=[],originalValue:a=e,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:a},...i],r.__validating=!0,r.originalValue=a,super._validate(e,r,o,(l,u)=>{if(!s||!mp(u)){n(l,u);return}a=a||u;let p=[];for(let f of this._nodes){let h=this.fields[f];!h||et.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(e){let r=super.clone(e);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(e){let r=super.concat(e),o=r.fields;for(let[n,i]of Object.entries(this.fields)){let a=o[n];o[n]=a===void 0?i:a}return r.withMutation(n=>n.setFields(o,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let r={};return this._nodes.forEach(o=>{var n;let i=this.fields[o],a=e;(n=a)!=null&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),r[o]=i&&"getDefault"in i?i.getDefault(a):void 0}),r}setFields(e,r){let o=this.clone();return o.fields=e,o._nodes=ob(e,r),o._sortErrors=Ip(Object.keys(e)),r&&(o._excludedEdges=r),o}shape(e,r=[]){return this.clone().withMutation(o=>{let n=o._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),n=[...o._excludedEdges,...r]),o.setFields(Object.assign(o.fields,e),n)})}partial(){let e={};for(let[r,o]of Object.entries(this.fields))e[r]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(e)}deepPartial(){return pn(this)}pick(e){let r={};for(let o of e)this.fields[o]&&(r[o]=this.fields[o]);return this.setFields(r,this._excludedEdges.filter(([o,n])=>e.includes(o)&&e.includes(n)))}omit(e){let r=[];for(let o of Object.keys(this.fields))e.includes(o)||r.push(o);return this.pick(r)}from(e,r,o){let n=(0,Re.getter)(e,!0);return this.transform(i=>{if(!i)return i;let a=i;return nb(i,e)&&(a=Object.assign({},i),o||delete a[e],a[r]=n(i)),a})}json(){return this.transform(Ep)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||un.exact,test(r){if(r==null)return!0;let o=hp(this.schema,r);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,r=un.noUnknown){typeof e!="boolean"&&(r=e,e=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:r,test(n){if(n==null)return!0;let i=hp(this.schema,n);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return o.spec.noUnknown=e,o}unknown(e=!0,r=un.noUnknown){return this.noUnknown(!e,r)}transformKeys(e){return this.transform(r=>{if(!r)return r;let o={};for(let n of Object.keys(r))o[e(n)]=r[n];return o})}camelCase(){return this.transformKeys(Br.camelCase)}snakeCase(){return this.transformKeys(Br.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Br.snakeCase)(e).toUpperCase())}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);o.fields={};for(let[i,a]of Object.entries(r.fields)){var n;let s=e;(n=s)!=null&&n.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),o.fields[i]=a.describe(s)}return o}};Te.prototype=yn.prototype;function ab(t){return new bn(t)}var bn=class extends se{constructor(e){super({type:"array",spec:{types:e},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=e}_cast(e,r){let o=super._cast(e,r);if(!this._typeCheck(o)||!this.innerType)return o;let n=!1,i=o.map((a,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(e,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(e,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:e})}this.runTests({value:u,tests:f,originalValue:(p=r.originalValue)!=null?p:e,options:r},o,m=>n(m.concat(l),u))})}clone(e){let r=super.clone(e);return r.innerType=this.innerType,r}json(){return this.transform(Ep)}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!vn(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Je(e));return r.innerType=e,r.spec=Object.assign({},r.spec,{types:e}),r}length(e,r=cn.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(o){return o.length===this.resolve(e)}})}min(e,r){return r=r||cn.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o.length>=this.resolve(e)}})}max(e,r){return r=r||cn.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(o,n,i)=>!e(o,n,i):o=>!!o;return this.transform(o=>o!=null?o.filter(r):o)}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);if(r.innerType){var n;let i=e;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),o.innerType=r.innerType.describe(i)}return o}};ab.prototype=bn.prototype;function sb(t){return new xn(t)}var xn=class extends se{constructor(e){super({type:"tuple",spec:{types:e},check(r){let o=this.spec.types;return Array.isArray(r)&&r.length===o.length}}),this.withMutation(()=>{this.typeError(Cp.notType)})}_cast(e,r){let{types:o}=this.spec,n=super._cast(e,r);if(!this._typeCheck(n))return n;let i=!1,a=o.map((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(e,r={},o,n){let i=this.spec.types;super._validate(e,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:e})}this.runTests({value:s,tests:u,originalValue:(l=r.originalValue)!=null?l:e,options:r},o,f=>n(f.concat(a),s))})}describe(e){let r=(e?this.resolve(e):this).clone(),o=super.describe(e);return o.innerType=r.spec.types.map((n,i)=>{var a;let s=e;return(a=s)!=null&&a.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),n.describe(s)}),o}};sb.prototype=xn.prototype;var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);function It(t){let{name:e,label:r,value:o,onChange:n,onKeyDown:i}=t,[a,s]=_react.useState.call(void 0, !1);function l(){s(!a)}return _jsxruntime.jsx.call(void 0, _material.TextField,{name:e,label:r,value:o||"",onChange:n,onKeyDown:i,type:a?"text":"password",InputProps:{endAdornment:_jsxruntime.jsx.call(void 0, _material.InputAdornment,{position:"end",children:_jsxruntime.jsx.call(void 0, _material.IconButton,{tabIndex:-1,onClick: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 ba(r){var o=r,{children:t}=o,e=C(o,["children"]);return _jsxruntime.jsx.call(void 0, L,d(c({variant:"outlined",color:"error"},e),{children:"Cancelar"}))}function Et({onClose:t}){return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:()=>t(),sx:{position:"absolute",right:"11px"},children:_jsxruntime.jsx.call(void 0, _iconsmaterial.Close,{})})}function At(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1,marginLeft:"auto"},t))}function xa(o){var n=o,{children:t,label:e}=n,r=C(n,["children","label"]);return _jsxruntime.jsx.call(void 0, L,d(c({variant:"contained"},r),{children:e||"Salvar"}))}function va(t){let a=t,{dialogComponent:e,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(e,r)}},n),{children:o||" Adicionar"}))}function Ft(r){var o=r,{children:t}=o,e=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"},e),{children:t}))})}function Mt(t){let e=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({component:"footer",position:"absolute",direction:"row",alignItems:"center",bottom:0,left:0,right:0,padding:"8px 16px",borderTop:`solid 1px ${e.palette.grey[300]}`,height:"48px",sx:{backgroundColor:e.palette.background.paper}},t))}function Rt(t){let e=_material.useTheme.call(void 0, );return _jsxruntime.jsx.call(void 0, _material.Stack,c({component:"header",height:"44px",position:"absolute",direction:"row",top:0,left:0,right:0,display:"flex",alignItems:"center",padding:"16px",borderBottom:`solid 1px ${e.palette.grey[300]}`},t))}var Ob=_react.forwardRef.call(void 0, function(e,r){return _jsxruntime.jsx.call(void 0, _material.Slide,c({direction:"up",ref:r},e))});function Ot(n){var i=n,{children:t,height:e,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:Ob,sx:c({"& .MuiBackdrop-root":{backgroundColor:"#6464648F"}},o==null?void 0:o.sx),PaperProps:{style:{height:e,overflow:"hidden",position:"absolute",top:"51px",margin:0}}},o),{children:_jsxruntime.jsx.call(void 0, _material.Stack,{height:"100%",position:"relative",overflow:"auto",children:t})}))}function Dt(t){return _jsxruntime.jsx.call(void 0, _material.Typography,c({component:"h6",variant:"h6",sx:{whiteSpace:"nowrap"}},t))}function Sa(t){let{open:e,onClose:r,title:o,message:n,confirmButtonLabel:i="Confirmar",cancelButtonLabel:a="Cancelar",payload:s}=t;return _jsxruntime.jsxs.call(void 0, Ot,{open:e,onClose:()=>r(!1),children:[_jsxruntime.jsxs.call(void 0, Rt,{children:[_jsxruntime.jsx.call(void 0, Dt,{children:o||"Precisamos da sua confirma\xE7\xE3o"}),_jsxruntime.jsx.call(void 0, Et,{onClose:()=>r(!1)})]}),_jsxruntime.jsx.call(void 0, Ft,{children:_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",children:n||"Voc\xEA tem certeza que deseja continuar?"})}),_jsxruntime.jsx.call(void 0, Mt,{children:_jsxruntime.jsxs.call(void 0, At,{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(s!=null?s:!0),sx:{minWidth:"100px"},children:i})]})})]})}function Ta({open:t,onClose:e,payload:r}){let{useRemover:o,configs:n}=r,{mutateAsync:i,isLoading:a}=o();function s(){return z(this,null,function*(){try{yield i(n),e()}catch(l){}})}return _jsxruntime.jsxs.call(void 0, Ot,{open:t,onClose:e,children:[_jsxruntime.jsxs.call(void 0, Rt,{children:[_jsxruntime.jsx.call(void 0, Dt,{children:"Tem certeza de que deseja excluir este registro?"}),_jsxruntime.jsx.call(void 0, Et,{onClose:e})]}),_jsxruntime.jsx.call(void 0, Ft,{children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:"O registro ser\xE1 removido permanentemente. Deseja continuar?"})}),_jsxruntime.jsx.call(void 0, Mt,{children:_jsxruntime.jsxs.call(void 0, At,{children:[_jsxruntime.jsx.call(void 0, L,{onClick:()=>e(),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 ka({children:t}){return _jsxruntime.jsx.call(void 0, _core.DialogsProvider,{children:t})}var Nb={Root:Ot,Provider:ka,AdicionarButton:va,Header:Rt,Title:Dt,ActionClose:Et,Content:Ft,Footer:Mt,Actions:At,ActionCancelar:ba,ActionSalvar:xa,ConfirmDelete:Ta,Confirm:Sa},W= exports.DialogV2 =Nb;function $t(t){let{isValid:e,message:r}=t,o=_material.useTheme.call(void 0, );return _jsxruntime.jsxs.call(void 0, _material.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[_jsxruntime.jsx.call(void 0, _iconsmaterial.Circle,{color:e?"success":"inherit",sx:{fontSize:"8pt"}}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body2",sx:{color:e?o.palette.success.main:"inherit",textDecoration:e?"line-through":"none",ml:1,fontSize:"10pt"},children:r})]})}var Lp={senhaAtual:"",senhaNova:""},Qb=Te().shape({senhaAtual:de().required("Informe a Senha Atual."),senhaNova:de().required("Informe a Nova Senha.")});function sr(t){let{isOpen:e,credentialsConfig:r,onClose:o,onSuccess:n,onFailed:i,primeiroAcesso:a,senhaAtual:s,email:l}=t,{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:w}=_hooks.useForm.call(void 0, Lp),[x,T]=_react.useState.call(void 0, !1),[I,P]=_react.useState.call(void 0, null);_react.useEffect.call(void 0, ()=>{s&&w("senhaAtual",s)},[s]),_react.useEffect.call(void 0, ()=>{m.senhaNova&&T(_isStrongPassword2.default.call(void 0, m.senhaNova,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1}))},[m.senhaNova]);function R(){return z(this,null,function*(){f(null),P(null),Qb.validate(m,{abortEarly:!1}).then(()=>z(this,null,function*(){var b;let{senhaAtual:M,senhaNova:_}=m;try{(yield u(M,_,l))&&(n&&n(),g(Lp))}catch(v){if(i&&i(v),_axios.isAxiosError.call(void 0, v)){P((b=v.response)==null?void 0:b.data.message);return}P("Ocorreu um erro ao tentar alterar a senha")}})).catch(M=>{f(M)})})}function $(){return(m==null?void 0:m.senhaNova.length)>=8}function S(){if(m!=null&&m.senhaNova){let M=m==null?void 0:m.senhaNova.match(/[a-z]/g);return Array.isArray(M)&&M.length>0}return!1}function Z(){if(m!=null&&m.senhaNova){let M=m==null?void 0:m.senhaNova.match(/[A-Z]/g);return Array.isArray(M)&&M.length>0}return!1}function q(){if(m!=null&&m.senhaNova){let M=m==null?void 0:m.senhaNova.match(/\d/g);return Array.isArray(M)&&M.length>0}return!1}function J(){if(m!=null&&m.senhaNova){let M=m==null?void 0:m.senhaNova.match(/\W/g);return Array.isArray(M)&&M.length>0}return!1}return _jsxruntime.jsxs.call(void 0, W.Root,{open:e,onClose:M=>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.Grid,{container:!0,spacing:2,children:[a&&_jsxruntime.jsx.call(void 0, _material.Grid,{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.Grid,{size:12,children:_jsxruntime.jsx.call(void 0, It,c({name:"senhaAtual",label:"Senha Atual",value:(m==null?void 0:m.senhaAtual)||"",onChange:y},h("senhaAtual")))}),_jsxruntime.jsx.call(void 0, _material.Grid,{size:12,children:_jsxruntime.jsx.call(void 0, It,c({name:"senhaNova",label:"Nova Senha",value:(m==null?void 0:m.senhaNova)||"",onChange:y},h("senhaNova")))}),_jsxruntime.jsxs.call(void 0, _material.Grid,{size:12,children:[_jsxruntime.jsx.call(void 0, $t,{isValid:$(),message:"O tamanho m\xEDnimo da nova senha \xE9 de 8 caracteres"}),_jsxruntime.jsx.call(void 0, $t,{isValid:S(),message:"A nova senha deve ter ao menos uma letra min\xFAscula"}),_jsxruntime.jsx.call(void 0, $t,{isValid:Z(),message:"A nova senha deve ter ao menos uma letra mai\xFAscula"}),_jsxruntime.jsx.call(void 0, $t,{isValid:q(),message:"A nova senha deve ter ao menos um n\xFAmero"}),_jsxruntime.jsx.call(void 0, $t,{isValid:J(),message:"A nova senha deve ter ao menos um caracter especial"})]}),I&&_jsxruntime.jsx.call(void 0, _material.Grid,{size:12,children:_jsxruntime.jsx.call(void 0, _material.Alert,{severity:"error",children:I})})]})}),_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:!x})]})})]})}var ix=Te().shape({email:de().required("Informe o e-mail"),password:de().required("Informe a senha")});function Ia(t){let{onLoginSuccess:e,onLoginFailed:r,onOptionsClick:o,credentialsConfig:n}=t,[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,w]=_react.useState.call(void 0, null),{login:x}=_hooks.useCredentials.call(void 0, n),{validationProps:T,setValidationErrors:I}=_hooks.useValidations.call(void 0, );function P(){return z(this,null,function*(){I(null),w(null),ix.validate({email:i,password:s},{abortEarly:!1}).then(()=>z(this,null,function*(){var R,$;p(!0);try{let S=yield x(i,s);S&&e(S)}catch(S){if(_axios.isAxiosError.call(void 0, S)){if(((R=S.response)==null?void 0:R.data.code)==="E_FIRST_ACCESS"){h(!0);return}w(($=S.response)==null?void 0:$.data.message)}r(S)}})).catch(R=>{I(R)}).finally(()=>{p(!1)})})}return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"form",onSubmit:P,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)},T("email"))),_jsxruntime.jsx.call(void 0, It,c({name:"password",label:"Senha",size:"medium",placeholder:"Sua senha",value:s||"",onChange:R=>l(R.target.value),onKeyDown:R=>R.key==="Enter"&&P()},T("password"))),_jsxruntime.jsx.call(void 0, L,{fullWidth:!0,variant:"contained",onClick:P,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, sr,{senhaAtual:s,email:i,primeiroAcesso:!0,isOpen:f,onClose:()=>z(this,null,function*(){return h(!1)}),onSuccess:()=>{h(!1),y(!0),l("")},credentialsConfig:n})]})}var cx=Te().shape({email:de().required("Informe o e-mail")});function Ea(t){let{onLoginClick:e,credentialsConfig:r}=t,[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 z(this,null,function*(){m(null),cx.validate({email:o},{abortEarly:!1}).then(()=>z(this,null,function*(){var g;try{a(!0),yield f(o),l(!0)}catch(w){p((g=w.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, ke,{sx:{display:"inline-flex",justifyContent:"space-between",width:"100%",marginTop:1},children:_jsxruntime.jsx.call(void 0, L,{onClick:e,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:e,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 Fa(t){var p;let{loginData:e,credentialsConfig:r,onLoginFailed:o,onLoginSuccess:n}=t,[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(e==null?void 0:e.empresas)){let f=e==null?void 0:e.empresas[0];a(f==null?void 0:f.uuid)}},[e]);function u(){return z(this,null,function*(){try{let f=yield s(e==null?void 0:e.token,i);f?n(f):o("Nenhuma token definida")}catch(f){o(f)}})}return _jsxruntime.jsxs.call(void 0, _material.Box,{component:"form",sx:{minWidth:"290px"},children:[_jsxruntime.jsx.call(void 0, _material.TextField,{label:"Licen\xE7as",margin:"normal",select:!0,autoFocus:!0,value:i,onChange:f=>{a(f.target.value)},children:(p=e==null?void 0:e.empresas)==null?void 0:p.map(f=>_jsxruntime.jsx.call(void 0, _material.MenuItem,{value:f.uuid,children:f.nome},f.uuid))}),_jsxruntime.jsx.call(void 0, 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 Np=t=>{let e=t.replace(/\D/g,"");return e.length<=2?`(${e}`:e.length<=7?`(${e.slice(0,2)}) ${e.slice(2)}`:e.length<=11?`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7)}`:`(${e.slice(0,2)}) ${e.slice(2,7)}-${e.slice(7,11)}`};function zr(t){let u=t,{value:e,onChange:r}=u,o=C(u,["value","onChange"]),[n,i]=_react.useState.call(void 0, ""),a=e!==void 0,s=_react.useMemo.call(void 0, ()=>a?Np(e||""):n,[e,n,a]);return _jsxruntime.jsx.call(void 0, _TextField2.default,c({value:s,onChange:p=>{let f=Np(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 _r({length:t=6,value:e,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=e.split("");p[a]=u;let f=p.join("");r(f),u&&a<t-1&&((h=o.current[a+1])==null||h.focus())},i=(a,s)=>{var l;s.key==="Backspace"&&!e[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:t}).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:e[s]||"",onChange:l=>n(s,l.target.value),onKeyDown:l=>i(s,l)},s))})}function Ra(t){let{open:e,onClose:r,payload:o,onLoginSuccess:n,credentialsConfig:i}=t,[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 z(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:e,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, _r,{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 $x=Te().shape({contato:de().when("$tipo",([t],e)=>t==="otp-email"?e.email("E-mail inv\xE1lido").required("Informe o e-mail"):e.matches(/^\+?[1-9]\d{7,14}$/,"N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp"))});function Pn(t){let{tipo:e,credentialsConfig:r,onLoginSuccess:o,onLoginClick:n}=t,[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:""},$x),[g,w]=_react.useState.call(void 0, !1);return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "form",{onSubmit:T=>z(this,null,function*(){T.preventDefault(),m(I=>z(this,null,function*(){try{l(!1),a(!0);let P=yield u({channel:e==="otp-email"?"email":"whatsapp",target:I.contato});w(!0)}catch(P){l(P.response.data.message)}finally{a(!1)}}),{context:{tipo:e}})}),children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,children:[_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",children:e==="otp-email"?" Informe seu e-mail para receber um c\xF3digo de acesso":"Informe seu n\xFAmero de WhatsApp para receber um c\xF3digo de acesso"}),e==="otp-email"&&_jsxruntime.jsx.call(void 0, _material.TextField,c({autoFocus:!0,name:"contato",label:"E-mail",value:h.contato||"",onChange:p,fullWidth:!0},y("contato"))),e==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, zr,c({autoFocus:!0,name:"contato",label:"Whatsapp",value:h.contato||"",onChange:T=>{f("contato",T.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, ke,{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:T=>T.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, Ra,{onLoginSuccess:o,open:g,onClose:T=>z(this,null,function*(){w(!1)}),payload:{target:h.contato,channel:e==="otp-email"?"email":"whatsapp"},credentialsConfig:r})]})}var Gx={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 Da(t){let{credentialsConfig:e,onLoginSuccess:r,onLoginFailed:o,onAlreadyLogged:n,appName:i}=t,[a,s]=_react.useState.call(void 0, ),{selecionarLicenca:l,isAuthenticated:u}=_hooks.useCredentials.call(void 0, e),[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(I){return z(this,null,function*(){try{if(Array.isArray(I==null?void 0:I.empresas)){if((I==null?void 0:I.empresas.length)===1){let P=yield l(I==null?void 0:I.token,I.empresas[0].uuid);P&&r(P);return}f("licensa"),s(I);return}r(I)}catch(P){o(P)}})}function g(I){return z(this,null,function*(){o(I)})}function w(I){f(I)}function x(){f("login")}let T=Gx[p];return _jsxruntime.jsxs.call(void 0, _material.Stack,{children:[_jsxruntime.jsx.call(void 0, la,{label:i,subTitle:T}),_jsxruntime.jsxs.call(void 0, _material.Box,{sx:{marginTop:2},children:[p==="login"&&_jsxruntime.jsx.call(void 0, Ia,{credentialsConfig:e,onLoginSuccess:y,onLoginFailed:g,onOptionsClick:w}),p==="licensa"&&_jsxruntime.jsx.call(void 0, Fa,{loginData:a,credentialsConfig:e,onLoginSuccess:r,onLoginFailed:o}),p==="esqueci-senha"&&_jsxruntime.jsx.call(void 0, Ea,{onLoginClick:x,credentialsConfig:e}),p==="otp-email"&&_jsxruntime.jsx.call(void 0, Pn,{onLoginClick:x,onLoginSuccess:y,tipo:"otp-email",credentialsConfig:e}),p==="otp-whatsapp"&&_jsxruntime.jsx.call(void 0, Pn,{onLoginClick:x,onLoginSuccess:y,tipo:"otp-whatsapp",credentialsConfig:e})]})]})}function La(){let t=_material.useTheme.call(void 0, ),e=_material.useMediaQuery.call(void 0, t.breakpoints.up("md"));return _jsxruntime.jsx.call(void 0, _material.Stack,{component:"section",display:e?"flex":"none",width:"100%",direction:"row",justifyContent:"center",alignItems:"center",sx:{backgroundImage:"url(https://datac-site-assets.s3.sa-east-1.amazonaws.com/background_login.png)",backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat"},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{padding:"2rem",children:[_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h1",fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"bold",color:"white",fontFamily:"Montserrat",letterSpacing:0,children:"Inova\xE7\xE3o e tecnologia"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"h2",color:"white",fontSize:"2.5rem",lineHeight:"3rem",letterSpacing:0,fontWeight:"bold",fontFamily:"Montserrat",children:"para empresas de resultado"}),_jsxruntime.jsx.call(void 0, _material.Typography,{component:"span",fontSize:"1.25rem",lineHeight:"1.25rem",fontWeight:"300",letterSpacing:0,marginTop:"1.5rem",marginBottom:"3rem",fontFamily:"Montserrat",sx:{color:"rgb(68, 167, 255)"},children:"Mais de 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 Jx({children:t}){let e=_material.useTheme.call(void 0, ),r=_material.useMediaQuery.call(void 0, e.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:t}),_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",alignItems:"center",marginBottom:-3,children:[_jsxruntime.jsx.call(void 0, "img",{width:"60",src:"https://datac-site-assets.s3.sa-east-1.amazonaws.com/logomarca.png"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"body1",component:"span",fontSize:"0.7rem",sx:{color:o=>o.palette.grey[500]},children:"Data C Sistemas"})]})]})}function Yp(t){let{banner:e,loginSection:r}=t;return _jsxruntime.jsxs.call(void 0, _material.Stack,{component:"main",direction:"row",height:"100vh",children:[e?_jsxruntime.jsx.call(void 0, sa,{children:e}):_jsxruntime.jsx.call(void 0, La,{}),_jsxruntime.jsx.call(void 0, Jx,{children:r||_jsxruntime.jsx.call(void 0, Da,c({},t))})]})}function za(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",alignContent:"center",spacing:1,flex:1,flexGrow:1},t))}function _a({children:t}){return _jsxruntime.jsx.call(void 0, Bi.default.Fragment,{children:_jsxruntime.jsx.call(void 0, _material.AppBar,{position:"fixed",elevation:0,sx:{width:"100%",zIndex:e=>e.zIndex.drawer+1,borderBottom:e=>`1px solid ${e.palette.grey[300]}`},children:_jsxruntime.jsx.call(void 0, _material.Toolbar,{children:_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"100%"},direction:"row",alignContent:"center",alignItems:"center",justifyContent:"space-between",children:t})})})})}function Na(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M17 5v14"}),_jsxruntime.jsx.call(void 0, "path",{d:"M21 5v14"})]})}))}function Wa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"}),_jsxruntime.jsx.call(void 0, "path",{d:"m4.9 4.9 14.2 14.2"})]})}))}function Ha(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 12h4"})]})}))}function Vr(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function Ua(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9"})})}))}function qa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"9",cy:"7",r:"4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}))}function Ka(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17-5-5 5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m18 17-5-5 5-5"})]})}))}function Qa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"3"})]})}))}function Xa(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}),_jsxruntime.jsx.call(void 0, "rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"})]})}))}function Ja(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 9H8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 13H8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 17H8"})]})}))}function jr(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m6 9 6 6 6-6"})})}))}function ts(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21H7"}),_jsxruntime.jsx.call(void 0, "path",{d:"m5 11 9 9"})]})}))}var Ev=t=>({transition:t.transitions.create(["transform"],{duration:500})}),Av=_styles.styled.call(void 0, jr,{shouldForwardProp:t=>t!=="open"})(({theme:t,open:e})=>c(c(c({},Ev(t)),e&&{transform:"rotate(-180deg)"}),!e&&{transform:"rotate(0)"}));function rs(t){let{open:e}=t;return _jsxruntime.jsx.call(void 0, Av,{fontSize:"small",open:e})}function os(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 6h18"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 12h10"}),_jsxruntime.jsx.call(void 0, "path",{d:"M10 18h4"})]})}))}function ns(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 20a6 6 0 0 0-12 0"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"4"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"12",r:"10"})]})}))}function is(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 3 1 11h-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 4h8"})]})}))}function as(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 17h.01"})]})}))}function ss(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3v5h5"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v5l4 2"})]})}))}function ls(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M8 7v7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M12 7v4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 7v9"})]})}))}function us(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),_jsxruntime.jsx.call(void 0, "polyline",{points:"16 17 21 12 16 7"}),_jsxruntime.jsx.call(void 0, "line",{x1:"21",x2:"9",y1:"12",y2:"12"})]})}))}function ps(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"white",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"12",cy:"10",r:"3"})]})}))}function fs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M15 5.764v15"}),_jsxruntime.jsx.call(void 0, "path",{d:"M9 3.236v15"})]})}))}function ds(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"12",y2:"12"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"6",y2:"6"}),_jsxruntime.jsx.call(void 0, "line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})}))}function ms(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m11 17 2 2a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 3 1 11h-2"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"}),_jsxruntime.jsx.call(void 0, "path",{d:"M3 4h8"})]})}))}function gs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m6 17 5-5-5-5"}),_jsxruntime.jsx.call(void 0, "path",{d:"m13 17 5-5-5-5"})]})}))}function bs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]})}))}function vs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"11",cy:"11",r:"8"}),_jsxruntime.jsx.call(void 0, "path",{d:"m21 21-4.3-4.3"})]})}))}function Cs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"m2 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 ws(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}),_jsxruntime.jsx.call(void 0, "path",{d:"M7 2h1a4 4 0 0 1 4 4v1"})]})}))}function Ss(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),_jsxruntime.jsx.call(void 0, "circle",{cx:"9",cy:"7",r:"4"}),_jsxruntime.jsx.call(void 0, "path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),_jsxruntime.jsx.call(void 0, "path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}))}function Ts(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"}),_jsxruntime.jsx.call(void 0, "path",{d:"m10 15 5-3-5-3z"})]})}))}function ks(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Is(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "line",{x1:"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 Es(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15.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 As(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "circle",{cx:"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 Fs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 Ms(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",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 Os(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m15 18-6-6 6-6"})})}))}function Bs(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}))}function Ls(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"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 $s(t){return _jsxruntime.jsx.call(void 0, _material.SvgIcon,d(c({},t),{children:_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M15.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 M1={Circle:Ua,Dashboard:Xa,Expandable:rs,Down:jr,Negociacao:ms,Cadastro:Ha,Clientes:qa,Filter:os,Search:vs,ChevronDown:Vr,Kanban:ls,Erease:ts,BarCode:Na,TextCursor:ws,OpenPanel:gs,ClosePanel:Ka,Menu:ds,Configs:Qa,Users:Ss,Password:bs,Logout:us,History:ss,Help:as,Video:Ts,Docs:Ja,Block:Wa,Maps:fs,MapPin:ps,HandShake:is,Store:Cs,Download:ks,ContaBancaria:Is,GrupoLancamento:Es,HistoricoPadrao:As,Imovel:Fs,Lancamento:Ms,ChevronLeft:Os,ChevronRight:Bs,Calendar:Ls,Save:$s,Profile:ns},ve= exports.Icon =M1;function zs(t){let e=C(t,[]);return _jsxruntime.jsx.call(void 0, _material.IconButton,d(c({},e),{children:_jsxruntime.jsx.call(void 0, ve.Menu,{})}))}var O1={Root:_a,Content:za,ToggleMenu:zs},D1= exports.Header =O1;var j1=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:t})=>({height:"32px",cursor:"pointer",gap:t.spacing(2),transition:"0.2s ease-in-out",padding:`${t.spacing(.25)} ${t.spacing(2)} ${t.spacing(.25)} ${t.spacing(2)}`,"&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{fontSize:"0.805rem",color:t.palette.text.primary},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function _s({label:t,icon:e,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 e=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:e}):h||_jsxruntime.jsx.call(void 0, ve.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, j1,{selected:n,disableGutters:!0,onClick:h=>{h.stopPropagation(),p()},children:[_jsxruntime.jsx.call(void 0, _material.ListItemIcon,{children:f(e)}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:t}),u&&_jsxruntime.jsx.call(void 0, ve.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})})]})}function Nn(t){return _jsxruntime.jsx.call(void 0, _material.Paper,c({sx:{p:2},elevation:0},t))}var oC=_material.styled.call(void 0, _material.ListItemButton,{})(({theme:t})=>({cursor:"pointer",padding:`${t.spacing(1)} ${t.spacing(0)} ${t.spacing(.25)} ${t.spacing(0)}`,minHeight:"32px",flexDirection:"column",justifyContent:"center",alignItem:"center",alignContent:"center","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiSvgIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"},"& .MuiIcon-root":{color:t.palette.primary.main,transition:"0.2s ease-in-out"}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiSvgIcon-root":{fontSize:"0.955rem"},"& .MuiTypography-root":{fontSize:"0.805rem",color:t.palette.text.primary},"& .MuiListItemIcon-root":{minWidth:"0px"}}));function Qp(t,e){return Bi.default.Children.map(t,r=>{var n;if(!Bi.default.isValidElement(r))return r;let o=(n=r.props)!=null&&n.children?Qp(r.props.children,e):null;return Bi.default.cloneElement(r,{open:e,children:o})})}function Vs(t){let{icon:e,label:r,link:o,id:n,selected:i=!1,children:a,onClick:s}=t,[l,u]=_react.useState.call(void 0, null);function p(){s&&o&&s(o)}function f(g,w){u({element:g.currentTarget,id:w})}function h(){u(null)}let m=Qp(a,!0);function y(g){return typeof e=="string"?_jsxruntime.jsx.call(void 0, _material.Icon,{children:e}):g||_jsxruntime.jsx.call(void 0, ve.Circle,{})}return _jsxruntime.jsx.call(void 0, _material.ListItem,{disableGutters:!0,disablePadding:!0,children:_jsxruntime.jsxs.call(void 0, oC,{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(e)}),_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, Nn,{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 w;return(w=g.mixins.menu)==null?void 0:w.width}},children:m})})]})})}function Ws(t){let n=t,{open:e,isFirstLevel:r=!1}=n,o=C(n,["open","isFirstLevel"]);return e?_jsxruntime.jsx.call(void 0, _s,c({},o)):_jsxruntime.jsx.call(void 0, Vs,c({},o))}function uC(t,e){if(!t)throw new Error(e)}var Jp=_react.createContext.call(void 0, null);function ef(t){let{children:e,storageKey:r="mio:menu"}=t,[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, Jp.Provider,{value:{isOpen:o,toggleMenu:i},children:e})}function cC(){let t=_react.useContext.call(void 0, Jp);return uC(t,"cannot find MenuContext provider"),t}var tf=t=>{var e,r;return{width:((r=(e=t==null?void 0:t.mixins)==null?void 0:e.menu)==null?void 0:r.width)||64,background:"#FFFFFF",transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen}),overflowX:"hidden"}},rf=t=>({background:"#FFFFFF",transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),overflowX:"hidden",width:0,[t.breakpoints.up("sm")]:{width:`calc(${t.spacing(12)} + 1px)`}}),mC=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:t=>t!=="open"})(({theme:t,open:e})=>{var r,o;return c(c({width:((o=(r=t==null?void 0:t.mixins)==null?void 0:r.menu)==null?void 0:o.width)||64,borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},e&&d(c({},tf(t)),{"& .MuiDrawer-paper":tf(t)})),!e&&d(c({},rf(t)),{"& .MuiDrawer-paper":rf(t)}))}),hC=_styles.styled.call(void 0, "div")(({theme:t})=>t.mixins.toolbar);function af(t,e,r,o){return Bi.default.Children.map(t,n=>{var f,h;if(!Bi.default.isValidElement(n))return n;let i=((f=n.props.link)==null?void 0:f.split("/").filter(Boolean))||[],a=n.props.link||"",u="/"+((e==null?void 0:e.split("/").filter(Boolean))||[]).slice(0,i.length).join("/"),p=(h=n.props)!=null&&h.children?af(n.props.children,e,r,o):null;return Bi.default.cloneElement(n,{open:r,selected:u===a,onClick:m=>{o&&o(m)},children:p})})}function js(t){let{open:e,toggleMenu:r,children:o,onClickItem:n}=t,a=new URL(window.location.href).pathname,s=af(o,a,e,n);return _jsxruntime.jsxs.call(void 0, mC,{variant:"permanent",open:e,onClose:r,children:[_jsxruntime.jsx.call(void 0, hC,{}),_jsxruntime.jsx.call(void 0, _material.List,{children:s})]})}function yC(t){return t.map(e=>e.visible?_jsxruntime.jsx.call(void 0, sf.Item,{link:e.link,id:e.id,label:e.label,icon:e.icon,children:e.items&&yC(e.items)},e.id):null)}var sf={Root:js,Item:Ws,Provider:ef};var bC=sf;function lf(t){let{links:e}=t;function r(o,n){location.pathname}return _jsxruntime.jsx.call(void 0, _material.Breadcrumbs,{sx:{height:"30px",display:"flex",textWrap:"nowrap"},children:e.map((o,n)=>e.length===1||e.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 Us(t){let{children:e}=t;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:e})}var TC={Root:Us},kC= exports.ContentTitle =TC;function qs({children:t}){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:e=>e.palette.background.paper,borderTop:e=>`1px solid ${e.palette.border}`},children:t})}var AC=process.env.NODE_ENV==="production",Ys="Invariant failed";function Ks(t,e){if(!t){if(AC)throw new Error(Ys);var r=typeof e=="function"?e():e,o=r?"".concat(Ys,": ").concat(r):Ys;throw new Error(o)}}var _uuid = require('uuid');function OC(t,e){var r,o;switch(e.type){case"loadFiltersFromStorage":return d(c({},t),{filterValues:(r=e==null?void 0:e.storageValues)==null?void 0:r.filterValues,appliedValues:(o=e==null?void 0:e.storageValues)==null?void 0:o.appliedValues});case"updateFilterValues":return d(c({},t),{filterValues:e.filterValues});case"updateFilterValue":return d(c({},t),{filterValues:d(c({},t.filterValues),{[e.payload.name]:e.payload.value})});case"updateAppliedValues":let n=t.filterValues,i=[];if(n&&Object.entries(n).length>0){let[a]=Object.keys(n);i=[{[a]:n[a]}]}return e!=null&&e.storagePath&&localStorage.setItem(e.storagePath,JSON.stringify({appliedValues:n,filterValuesAsArray:i,filterValues:t.filterValues})),d(c({},t),{appliedValues:n,filterValuesAsArray:i,isOpen:!1,searchId:_uuid.v4.call(void 0, )});case"updateIsOpen":return d(c({},t),{isOpen:e.isOpen,target:e.target});case"updateContainer":return d(c({},t),{container:e.container});case"toggleIsOpen":return d(c({},t),{isOpen:!t.isOpen});case"deleteAppliedValue":return delete t.appliedValues[e.filterName],c({},t);case"deleteAllAppliedValues":return t.appliedValues={},t.filterValues=e.filterValues,e.storagePath&&localStorage.removeItem(e.storagePath),c({},t)}}var df=Bi.default.createContext({}),mf= exports.FilterApiContext =Bi.default.createContext({});function hf(t){let{children:e,filterValues:r={},storagePath:o}=t,[n,i]=_react.useReducer.call(void 0, OC,{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(x){i({type:"updateIsOpen",isOpen:!0,target:(x==null?void 0:x.target)||void 0})}function l(){i({type:"updateIsOpen",isOpen:!1,target:void 0})}function u(){i({type:"toggleIsOpen"})}function p(x){let T=x.target.type,I=x.target.name,P;switch(T){case"text":P=x.target.value;break;case"checkbox":P=x.target.checked;break;default:P=x.target.value}i({type:"updateFilterValue",payload:{name:I,value:P}})}function f(x,T){i({type:"updateFilterValue",payload:{name:x,value:T}})}function h(x){i({type:"updateFilterValues",filterValues:x})}function m(){i({type:"updateAppliedValues",storagePath:o})}function y(x){i({type:"deleteAppliedValue",filterName:x})}function g(){i({type:"deleteAllAppliedValues",filterValues:r,storagePath:o}),i({type:"updateAppliedValues",storagePath:o})}function w(x){i({type:"updateContainer",container:x})}return{setContainer:w,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, mf.Provider,{value:a,children:_jsxruntime.jsx.call(void 0, df.Provider,{value:n,children:e})})}function yr(){let t=_react.useContext.call(void 0, df);return Ks(t,"cannot find FilterDataContext provider"),t}function Oe(){let t=_react.useContext.call(void 0, mf);return Ks(t,"cannot find FilterApiContextContext provider"),t}function Zs(){let{openFilter:t}=Oe();return _jsxruntime.jsx.call(void 0, _material.IconButton,{onClick:e=>{t(e)},children:_jsxruntime.jsx.call(void 0, ve.Filter,{})})}function Qs(t){let{children:e}=t,{isOpen:r,container:o}=yr(),{closeFilter:n}=Oe();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:e})}function Xs({children:t}){return _jsxruntime.jsx.call(void 0, _material.Box,{mt:1,ml:1,mr:1,mb:2,children:t})}function el(){let{applyFilterValues:t}=Oe();return _jsxruntime.jsx.call(void 0, _material.Button,{variant:"contained",onClick:()=>{t()},children:_jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[_jsxruntime.jsx.call(void 0, ve.Search,{sx:{fontSize:"0.855rem"}})," ",_jsxruntime.jsx.call(void 0, "span",{children:"Pesquisar"})]})})}function tl(t){let n=t,{children:e,disabledDelete:r=!1}=n,o=C(n,["children","disabledDelete"]);return _jsxruntime.jsx.call(void 0, _material.Chip,c({},o))}function nl({children:t}){let{appliedValues:e}=yr(),{applyFilterValues:r,deleteFilterValue:o}=Oe(),{isOpen:n,open:i,close:a,anchorEl:s,data:l}=_hooks.usePopover.call(void 0, ),u=Bi.default.Children.map(t,p=>!Bi.default.isValidElement(p)||!(e&&p.props.name in e)?null:Bi.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:Bi.default.Children.map(t,p=>Bi.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 il({children:t}){let e=_react.useRef.call(void 0, null),{setContainer:r}=Oe(),{container:o}=yr();return _react.useEffect.call(void 0, ()=>{let n=()=>{e.current&&r(e.current)};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[o]),_jsxruntime.jsxs.call(void 0, _material.Stack,{ref:e,direction:"row",alignContent:"center",alignItems:"center",spacing:1,children:[_jsxruntime.jsx.call(void 0, ve.Search,{sx:{fontSize:"0.95rem"}}),_jsxruntime.jsx.call(void 0, _material.Stack,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",alignContent:"center",children:t})]})}function al(){let{deleteAllFilterValues:t}=Oe();return _jsxruntime.jsx.call(void 0, _material.Button,{color:"error",onClick:()=>{t&&t()},children:"Resetar"})}function sl(t){let{children:e}=t;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:e})}function ll(t){let i=t,{onChange:e}=i,r=C(i,["onChange"]),o=_lodash2.default.debounce(a=>e(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 ow={Root:sl,SearchTextField:ll,Container:il,AdvancedContainer:Qs,AdvancedContent:Xs,AdvancedActionsContainer:qs,AdvancedButton:Zs,Provider:hf,ApplyButton:el,ResetButton:al,Chips:nl,Chip:tl},nw= exports.Filter =ow;var _xdatagrid = require('@mui/x-data-grid');function ul(r){var o=r,{onClick:t}=o,e=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:()=>t&&t("transport")},e))}var wf=_react.createContext.call(void 0, {});function pl({children:t}){let[e,r]=_react.useState.call(void 0, {type:"include",ids:new Set}),[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({type:"include",ids:new Set}),n(!0)}return _jsxruntime.jsx.call(void 0, wf.Provider,{value:{apiRef:s,rowsSelectedId:e,clearCallback:o,breakpoint:i,setClearCallback:n,setBreakpoint:a,setRowsSelectedId:r,clearRowsSelectedId:l},children:t})}function Ge(){return _react.useContext.call(void 0, wf)}function fl(t){let{countTitle:e,gender:r}=t,{rowsSelectedId:o}=Ge(),n=(o==null?void 0:o.ids.size)||0,i=_react.useMemo.call(void 0, ()=>{if(!e)return"";let a=r==="feminino"?"selecionada":"selecionado",s=r==="feminino"?"selecionadas":"selecionados",l=r==="feminino"?"Nenhuma":"Nenhum";return n===1?`${e} ${a}`:n&&n>1?`${e.split(" ").map(u=>`${u}s`).join(" ")} ${s}`:`${l} ${e} ${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 dl(r){var o=r,{onClick:t}=o,e=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:()=>{t&&t("delete")}},e))}function Qr(t){let s=t,{isLoading:e,startIcon:r,children:o,title:n}=s,i=C(s,["isLoading","startIcon","children","title"]),{breakpoint:a}=Ge();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:e?!0:i.disabled,children:[r,e&&_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:e?!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:[e&&_jsxruntime.jsx.call(void 0, _material.CircularProgress,{color:"secondary",size:14,sx:{position:"absolute",top:"22%",left:"44%",transform:"translate(-50%, -50%)"}}),o]})}))})}var Tw=({apiRef:t})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, t);function ml(){let{apiRef:t}=Ge(),e=r=>{t!=null&&t.current&&t.current.exportDataAsCsv(r)};return _jsxruntime.jsx.call(void 0, Qr,{startIcon:_jsxruntime.jsx.call(void 0, _iconsmaterial.FileDownload,{}),onClick:()=>e({getRowsToExport:Tw}),children:"Exportar CSV"})}function hl(r){var o=r,{onClick:t}=o,e=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:()=>t&&t("edit")},e))}function gl(t){let{children:e,onClick:r}=t;return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_react.Children.map(e,o=>{if(_react.isValidElement.call(void 0, o))return _react.cloneElement.call(void 0, o,{onClick:r})})})}function yl(t){let n=t,{event:e,onClick:r}=n,o=C(n,["event","onClick"]);return _jsxruntime.jsx.call(void 0, _xdatagrid.GridActionsCellItem,{label:"A\xE7\xE3o",onClick:()=>{},icon:_jsxruntime.jsx.call(void 0, "span",{children:"\u{1F527}"})})}function bl(t){let{onChangePageSize:e,onChangePage:r,pagination:o,rowsPerPageOptions:n=[15,50,100,200]}=t,{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=>{e&&e(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 xl({children:t,breakpoints:e}){let{setBreakpoint:r}=Ge(),o=_material.useTheme.call(void 0, ),n=_material.useMediaQuery.call(void 0, o.breakpoints.down(e||"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:t})}function vl({children:t}){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:t})}function Cl(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({direction:"row",alignItems:"center",gap:1.5},t))}function wl(t){return _jsxruntime.jsx.call(void 0, _material.TableFooter,d(c({},t),{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 Pl(){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 kl({errorMessage:t}){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:t})]})]})}var r2=({apiRef:t})=>_xdatagrid.gridFilteredSortedRowIdsSelector.call(void 0, t);function Il(t){let R=t,{error:e,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:w,apiRef:x}=Ge(),T=_react.useMemo.call(void 0, ()=>$=>$.map(S=>S.headerName==="A\xE7\xF5es"?d(c({},S),{minWidth:S.minWidth||80,maxWidth:S.maxWidth||S.width||80,headerClassName:"sticky-header",cellClassName:"sticky-cell"}):d(c({},S),{flex:S.flex||1,minWidth:S.minWidth||100,headerClassName:S!=null&&S.enableStickyColumns?"sticky-header":"",cellClassName:S!=null&&S.enableStickyColumns?"sticky-cell":""})),[i]);_react.useEffect.call(void 0, ()=>{a&&y(a)},[a]),_react.useEffect.call(void 0, ()=>{g&&(s&&s({type:"include",ids:new Set}),w(!1))},[g]);function I($,S,Z){switch(S.ctrlKey&&S.code==="KeyE"?"ctrl+e":S.code){case"Enter":S.preventDefault(),u&&u("edit",$.id);break;case"F3":S.preventDefault(),u&&u("edit",$.id);break;case"Delete":S.preventDefault(),u&&u("delete",$.id);break;case"ctrl+e":S.preventDefault(),(M=>{x!=null&&x.current&&x.current.exportDataAsCsv(M)})({getRowsToExport:r2});break;default:break}}function P($,S,Z){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:x,rows:n,columns:T(i),density:"compact",hideFooterPagination:!0,hideFooter:!0,loading:r,rowHeight:43,columnHeaderHeight:43,disableVirtualization:!0,onRowDoubleClick:P,onCellKeyDown:I,disableRowSelectionOnClick:!0,rowSelectionModel:m,onRowSelectionModelChange:($,S)=>{l&&l($,S),!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&&e?_jsxruntime.jsx.call(void 0, kl,{errorMessage:e}):_jsxruntime.jsx.call(void 0, Pl,{})},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 El({children:t,titleDivider:e=!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:e?`solid 1px ${o.palette.grey[300]}`:"none",paddingRight:1.5},r),children:t})}function Al(o){var n=o,{children:t,height:e}=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:e||`calc(${a}px - 16px)`},r.sx)},r),{children:_jsxruntime.jsx.call(void 0, pl,{children:t})}))}var p2={CellActionTransport:ul,SelectionCounter:fl,CellActionDelete:dl,ExportCsvButton:ml,CellActionEdit:hl,CellActions:gl,CellAction:yl,Pagination:bl,Actions:xl,Toolbar:vl,Content:Cl,Button:Qr,Footer:wl,Table:Il,Title:El,Root:Al},f2= exports.DataTableV2 =p2;function Fl(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({gap:.5,overflow:"hidden"},t))}function Ml(t){return _jsxruntime.jsx.call(void 0, _material.Stack,c({sx:[{overflowY:"auto",overflowX:"hidden"},...Array.isArray(t.sx)?t.sx:t.sx?[t.sx]:[]]},t))}function Rl(t){return _jsxruntime.jsx.call(void 0, _material.MenuItem,c({},t))}var x2={Root:Fl,Content:Ml,Item:Rl},Xr= exports.List =x2;var Wf=_react.createContext.call(void 0, void 0),Hf=({children:t})=>{let[e,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, Wf.Provider,{value:{isOpen:e,open:i,close:a,anchorEl:o,setAnchorEl:n},children:t})},xr=()=>{let t=_react.useContext.call(void 0, Wf);if(!t)throw new Error("usePopover must be used within a PopoverProvider");return t};function Ol(t){let{children:e}=t;return _jsxruntime.jsx.call(void 0, Hf,{children:e})}var _reactslot = require('@radix-ui/react-slot');function Dl(t){let i=t,{asChild:e=!1}=i,r=C(i,["asChild"]),o=e?_reactslot.Slot:_material.Button,{open:n}=xr();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n(a.currentTarget)}},r))}function Bl(t){let i=t,{asChild:e=!1}=i,r=C(i,["asChild"]),o=e?_reactslot.Slot:_material.Button,{close:n}=xr();return _jsxruntime.jsx.call(void 0, o,c({onClick:a=>{n()}},r))}function Ll(t){let{isOpen:e,close:r,anchorEl:o}=xr();return _jsxruntime.jsx.call(void 0, _material.Popover,d(c({open:e,anchorEl:o,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},slotProps:{paper:{sx:{borderRadius:"12px"}}},transformOrigin:{vertical:"top",horizontal:"center"}},t),{children:t.children}))}var R2={Root:Ol,Trigger:Dl,Content:Ll,Close:Bl},vr= exports.Popover =R2;var qf="mio-componente:button-group:value";function $l(t){let{children:e,value:r,onChange:o,isLoading:n,disableMemory:i}=t,[a,s]=_react.useState.call(void 0, !1),[l,u]=_react.useState.call(void 0, ()=>{if(!i)return window.localStorage.getItem(qf)||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(qf,l||0),u(l)},[l]);let f=[],h=_react.Children.map(e,(m,y)=>{var w,x;f.push({label:m.props.children,value:((w=m.props)==null?void 0:w.value)||y});let g=Bi.default.cloneElement(m,{isLoading:n,sx:{maxWidth:"300px",width:"120px"},value:((x=m.props)==null?void 0:x.value)||y});return!l&&y===0||l&&Number(g.props.value)===Number(l)?g:null});return _jsxruntime.jsxs.call(void 0, Bi.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, Vr,{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 zl(t){return _jsxruntime.jsx.call(void 0, L,c({},t))}var j2={Root:$l,Button:zl},G2= exports.ButtonGroup =j2;function _l(t){let i=t,{children:e,sx:r}=i,o=C(i,["children","sx"]),n=Bi.default.Children.toArray(e).some(a=>{var s;return Bi.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:e}))}function Wl(t){let{children:e}=t,r=Bi.default.Children.toArray(e).map(o=>Bi.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 Hl(t){let{title:e}=t;return _jsxruntime.jsx.call(void 0, _material.Typography,{component:"h6",variant:"h6",children:e})}function jl(t){let{children:e}=t;return _jsxruntime.jsx.call(void 0, "div",{children:e})}var Q2={Root:_l,Content:jl,Header:Wl,Title:Hl},X2= exports.Card =Q2;var _lucidereact = require('lucide-react'); var J2 = _interopRequireWildcard(_lucidereact);var eS=i=>{var a=i,{name:t,size:e=16,strokeWidth:r=1.5,color:o="currentColor"}=a,n=C(a,["name","size","strokeWidth","color"]);let s=J2[t];return _jsxruntime.jsx.call(void 0, s,c({size:e,strokeWidth:r,color:o},n))},tS= exports.LucidIcon =eS;function ed(t){let{licencas:e,licencaSelecionada:r,onAlterarLicenca:o}=t,[n,i]=_react.useState.call(void 0, "");if(e.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?e.filter(l=>["nome"].some(u=>_hooks.normalizeText.call(void 0, String(l[u])).includes(_hooks.normalizeText.call(void 0, n)))):e;return _jsxruntime.jsxs.call(void 0, vr.Root,{children:[_jsxruntime.jsx.call(void 0, vr.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, vr.Content,{sx:{"& .MuiPopover-paper":{minWidth:"300px",borderRadius:"12px",p:.5}},children:_jsxruntime.jsxs.call(void 0, Xr.Root,{sx:{m:.5,minWidth:"300px",maxHeight:"300px",overflow:"auto"},children:[_jsxruntime.jsx.call(void 0, ct,{autoFocus:!0,onSearch:a}),_jsxruntime.jsx.call(void 0, Xr.Content,{children:s.map(l=>_jsxruntime.jsx.call(void 0, vr.Close,{asChild:!0,children:_jsxruntime.jsx.call(void 0, Xr.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 lS=_styles.styled.call(void 0, _material.MenuItem,{})(({theme:t})=>({borderRadius:"6px",width:"90%",gap:"16px",margin:"0 auto",padding:"8px 16px",transition:"0.1s ease-in-out","&:hover":{backgroundColor:"rgba(89, 195, 224, 15%);","& .MuiTypography-root":{color:t.palette.primary.main},"& .MuiSvgIcon-root":{color:t.palette.primary.main},"& .MuiIcon-root":{color:t.palette.primary.main}},"& .MuiIcon-root":{color:t.palette.grey[500],fontSize:"20px"},"& .MuiTypography-root":{letterSpacing:"0.5px",color:t.palette.text.secondary,fontSize:t.typography.body1},"& .MuiSvgIcon-root":{fontSize:"24px"}})),uS=t=>_jsxruntime.jsx.call(void 0, lS,c({},t)),Gn=uS;function Gl(t){let{menuItem:e,activeMenu:r,onMenuClick:o}=t,[n,i]=_react.useState.call(void 0, !1);if(!e.visible)return null;let a=!!(e!=null&&e.items&&(e==null?void 0:e.items.length)>0);function s(){i(!n)}return _jsxruntime.jsxs.call(void 0, _material.Box,{children:[_jsxruntime.jsxs.call(void 0, Gn,{onClick:()=>{if(e!=null&&e.link){o(e.link);return}s()},selected:r===e.link,children:[!!e.icon&&_jsxruntime.jsx.call(void 0, _material.Icon,{children:e.icon}),_jsxruntime.jsx.call(void 0, _material.ListItemText,{primary:e.label}),a&&!n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandMore,{}),a&&n&&_jsxruntime.jsx.call(void 0, _iconsmaterial.ExpandLess,{})]}),(e==null?void 0:e.items)&&_jsxruntime.jsx.call(void 0, _material.Collapse,{in:n,timeout:"auto",unmountOnExit:!0,children:_jsxruntime.jsx.call(void 0, Wt,{activeMenu:r,sx:{pl:l=>l.spacing(1.5)},menus:(e==null?void 0:e.items)||[],onMenuClick:o})})]})}function Wt(t){let i=t,{menus:e,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:e.map(a=>_jsxruntime.jsx.call(void 0, Gl,{onMenuClick:o,activeMenu:r,menuItem:a},a.id))}))}function Ul(t){let{menus:e,activeMenu:r,onMenuClick:o}=t,[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:e.map(l=>l.visible?_jsxruntime.jsxs.call(void 0, Gn,{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, Wt,{activeMenu:r,onMenuClick:o,menus:(l==null?void 0:l.items)||[],sx:{minWidth:"240px",backgroundColor:j.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 od=(t,e)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),nd=t=>({transition:t.transitions.create("width",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${t.spacing(8)} + 1px)`,[t.breakpoints.up("sm")]:{width:`calc(${t.spacing(8)} + 1px)`}}),ES=_styles.styled.call(void 0, _material.Drawer,{shouldForwardProp:t=>t!=="open"&&t!=="width"})(({theme:t,open:e,width:r})=>c(c({width:r,bgcolor:t.palette.background.paper,boxShadow:"2px 3px 20px -16px rgb(32 32 36 / 30%)",borderRightStyle:"none",whiteSpace:"nowrap",boxSizing:"border-box"},e&&d(c({},od(r,t)),{"& .MuiDrawer-paper":od(r,t)})),!e&&d(c({},nd(t)),{"& .MuiDrawer-paper":nd(t)})));function id(t){let l=t,{open:e,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, ES,d(c({width:o,open:e,onClose:()=>a(!1)},s),{children:[_jsxruntime.jsx.call(void 0, _material.Toolbar,{}),e&&_jsxruntime.jsx.call(void 0, Wt,{onMenuClick:i,activeMenu:n,menus:r}),!e&&_jsxruntime.jsx.call(void 0, Ul,{onMenuClick:i,activeMenu:n,menus:r})]}))}function ad(t){return _jsxruntime.jsx.call(void 0, _material.Box,c({m:2,sx:{display:"flex",flexDirection:"column",flexGrow:1}},t))}var _Avatar = require('@mui/material/Avatar'); var _Avatar2 = _interopRequireDefault(_Avatar);function sd(t){let{user:e}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _Avatar2.default,c({src:e==null?void 0:e.avatarUrl,sx:{width:64,height:64,margin:"auto",mb:2}},t))}function Un(t){let i=t,{children:e,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&&e}))}var _reacteasycrop = require('react-easy-crop'); var _reacteasycrop2 = _interopRequireDefault(_reacteasycrop);var _Slider = require('@mui/material/Slider'); var _Slider2 = _interopRequireDefault(_Slider);var _Button = require('@mui/material/Button'); var _Button2 = _interopRequireDefault(_Button);var _Dialog = require('@mui/material/Dialog'); var _Dialog2 = _interopRequireDefault(_Dialog);function Yl(t,e){return new Promise(r=>{let o=new Image;o.src=t,o.onload=()=>{let n=document.createElement("canvas");n.width=e.width,n.height=e.height;let i=n.getContext("2d");i&&(i.drawImage(o,e.x,e.y,e.width,e.height,0,0,e.width,e.height),r(n.toDataURL("image/jpeg")))}})}var WS=({onSave:t,src:e})=>{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, (x,T)=>{f(T)},[]);return _jsxruntime.jsxs.call(void 0, _material.Stack,{direction:"row",spacing:2,alignItems:"center",children:[n?_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:n,alt:"Preview",sx:{width:64,height:64,margin:"auto",mb:2}}):_jsxruntime.jsx.call(void 0, _Avatar2.default,{src:e,sx:{width:64,height:64,margin:"auto",mb:2}}),_jsxruntime.jsxs.call(void 0, "label",{children:[_jsxruntime.jsx.call(void 0, "input",{type:"file",accept:"image/*",onChange:x=>{var P;let T=(P=x.target.files)==null?void 0:P[0];if(!T)return;let I=new FileReader;I.onload=()=>{o(I.result),m(!0)},I.readAsDataURL(T)},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:(x,T)=>u(T)}),_jsxruntime.jsx.call(void 0, ke,{children:_jsxruntime.jsx.call(void 0, _Button2.default,{variant:"contained",onClick:()=>z(void 0,null,function*(){if(!r||!p)return;let x=yield Yl(r,p);i(x),m(!1),t&&t(x)}),children:"Salvar"})})]})]})]})},cd=WS;var qS=Te().shape({name:de().required("Informe o nome")});function Xl(t){let{usuario:e,credentialsConfig:r,onUploadComplete:o}=t,{data:n,setData:i,handleChange:a,validate:s,validationErrors:l}=_hooks.useForm.call(void 0, e,qS),[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:w}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{i(e)},[e]),_react.useEffect.call(void 0, ()=>{m&&setTimeout(()=>{y(!1)},3e3)},[m]),_react.useEffect.call(void 0, ()=>{u&&setTimeout(()=>{p(!1)},3e3)},[u]);function x(){s(T=>z(this,null,function*(){try{h(!0),yield w(T),y(!0)}catch(I){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, cd,{src:n==null?void 0:n.avatarUrl,onSave:T=>{try{g(T),o&&(y(!0),o(!0))}catch(I){p("Ocorreu um erro ao atualizar a foto de perfil"),o&&o(!1,I)}}}),_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.Grid,{container:!0,spacing:1.5,children:[_jsxruntime.jsx.call(void 0, _material.Grid,{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.Grid,{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.Grid,{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.Grid,{size:{xl:4,lg:4,md:4,sm:12,xs:12},children:_jsxruntime.jsx.call(void 0, ke,{children:_jsxruntime.jsx.call(void 0, L,{isLoading:f,onClick:()=>x(),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 eu(t){var y,g,w;let{open:e,onClose:r,payload:o,onCodigoVerificado:n,credentialsConfig:i}=t,[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 z(this,null,function*(){try{f(!0);let x=yield h(a);n(x.data)}catch(x){u(x.response.data.message)}finally{f(!1)}})}return _jsxruntime.jsxs.call(void 0, W.Root,{open:e,onClose:x=>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)}-${(w=o==null?void 0:o.whatsappNumber)==null?void 0:w.slice(7)}`}),". ",_jsxruntime.jsx.call(void 0, "br",{}),"Digite o c\xF3digo abaixo para confirmar que este n\xFAmero \xE9 seu."]}),_jsxruntime.jsx.call(void 0, _r,{value:a,onChange:x=>{s(x)}}),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 iH=Te().shape({whatsappNumber:de().required("Informe o n\xFAmero do whastapp").length(15)});function nu(t){let{usuario:e,credentialsConfig:r,onWhastappSaved:o}=t,[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, e),[m,y]=_react.useState.call(void 0, !1),[g,w]=_react.useState.call(void 0, !1),{atualizarUsuario:x,gerarWhatsappVerificationCode:T}=_hooks.useCredentials.call(void 0, r);_react.useEffect.call(void 0, ()=>{u(e)},[e]);function I(){f(R=>z(this,null,function*(){try{s(!0);let $=yield x(R);o&&o($.data)}catch($){}finally{s(!1)}}))}function P(){return z(this,null,function*(){try{y(!0);let R=yield T();w(!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, sr,{isOpen:n,onClose:()=>z(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, zr,{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:I,children:"Salvar Whatsapp"})]}),e.whatsappNumber&&e.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:P,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, eu,{open:g,onClose:R=>z(this,null,function*(){w(!1)}),payload:e,credentialsConfig:r,onCodigoVerificado:R=>{u(R),w(!1)}})]})}function gd(t){let[e,r]=_react.useState.call(void 0, 0),{user:o,setUser:n,credentialsConfig:i}=_providers.useUserContext.call(void 0, );return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsxs.call(void 0, _material.Stack,{spacing:2,direction:"row",children:[_jsxruntime.jsx.call(void 0, _material.Stack,{sx:{width:"200px"},children:_jsxruntime.jsxs.call(void 0, _material.Tabs,{orientation:"vertical",value:e,onChange:(a,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, Un,{value:e,index:0,children:_jsxruntime.jsx.call(void 0, Xl,{credentialsConfig:i,usuario:o||{}})}),_jsxruntime.jsx.call(void 0, Un,{value:e,index:1,children:_jsxruntime.jsx.call(void 0, nu,{onWhastappSaved:a=>{n(a)},credentialsConfig:i,usuario:o||{}})})]})]})})}exports.AlterarLicenca = ed; exports.AlterarSenha = sr; exports.Avatar = sd; exports.Breadcrumbs = lf; exports.Button = L; exports.ButtonContainer = ke; exports.ButtonGroup = G2; exports.Card = X2; exports.Checkbox = pu; exports.ColorsGrid = Tu; exports.Content = ad; exports.ContentTitle = kC; exports.CurrencyCellStyle = nk; exports.CurrencyTextField = Om; exports.DataTableOptions = ci; exports.DataTableV2 = f2; exports.DeleteContainer = li; exports.Dialog = qe; exports.DialogV2 = W; exports.DrawerMenu = id; exports.Editable = nn; exports.Filter = nw; exports.FilterApiContext = mf; exports.FilterContainer = gi; exports.FilterControl = fo; exports.FilterDataContext = df; exports.FilterProvider = hf; exports.Flag = Hu; exports.FormContainer = xi; exports.Header = D1; exports.Icon = ve; exports.LabelValue = Hc; exports.List = Xr; exports.LucidIcon = tS; exports.Menu = bC; exports.MioAuth = Yp; exports.OptionStyles = ok; exports.PageTitle = Kc; exports.PasswordTextField = It; exports.Popover = vr; exports.Profile = gd; exports.SearchTextField = ct; exports.Surface = Nn; exports.Tooltip = jt; exports.Transporter = aa; exports.renderMenuItems = yC; exports.theme = j; exports.useDialogs = _core.useDialogs; exports.useFilter = yr; exports.useFilterApi = Oe; exports.useMenu = cC;
11
159
  /*! Bundled license information:
12
160
 
13
161
  react-is/cjs/react-is.production.min.js: