@zydon/common 1.0.59 → 1.0.61

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.
@@ -1,4 +1,4 @@
1
- import { f as D, n as L, r as En, c as jn, i as K, a as jt, s as Xs, b as It, d as xt, e as In, g as Ot, h as it, p as ot, j as On, k as Zs, w as Nt, l as z, m as B, t as Vt, o as Js, q as rt, u as St, v as Qs, x as ti, y as ei, z as ni, A as Nn, B as ne, C as Un, D as Gn, E as yt, P as si, F as ii, L as oi, S as ri, G as Kt, H as zt, I as ke, J as se, K as ai, M as $n, N as li, O as ci, Q as Kn, R as zn, T as ui, U as hi, V as fi, W as di, X as pi, Y as mi, Z as gi, _ as yi, $ as vi, a0 as xi } from "./index-b806dd1c.js";
1
+ import { f as D, n as L, r as En, c as jn, i as K, a as jt, s as Xs, b as It, d as xt, e as In, g as Ot, h as it, p as ot, j as On, k as Zs, w as Nt, l as z, m as B, t as Vt, o as Js, q as rt, u as St, v as Qs, x as ti, y as ei, z as ni, A as Nn, B as ne, C as Un, D as Gn, E as yt, P as si, F as ii, L as oi, S as ri, G as Kt, H as zt, I as ke, J as se, K as ai, M as $n, N as li, O as ci, Q as Kn, R as zn, T as ui, U as hi, V as fi, W as di, X as pi, Y as mi, Z as gi, _ as yi, $ as vi, a0 as xi } from "./index-ae59fba5.js";
2
2
  import Hn, { useContext as ie, useId as Pi, useEffect as Ti } from "react";
3
3
  import "@mui/material";
4
4
  import "@emotion/react";
@@ -5606,7 +5606,7 @@ const gD = (t, e, n) => {
5606
5606
  ...r,
5607
5607
  children: n
5608
5608
  }
5609
- ), hD = () => import("./features-2fe3f393.js").then((t) => t.default), ED = ({ children: t }) => /* @__PURE__ */ R.jsx(tI, { strict: !0, features: hD, children: /* @__PURE__ */ R.jsxs(wn.div, { style: { height: "100%" }, children: [
5609
+ ), hD = () => import("./features-a5d79453.js").then((t) => t.default), ED = ({ children: t }) => /* @__PURE__ */ R.jsx(tI, { strict: !0, features: hD, children: /* @__PURE__ */ R.jsxs(wn.div, { style: { height: "100%" }, children: [
5610
5610
  " ",
5611
5611
  t,
5612
5612
  " "
@@ -87763,7 +87763,7 @@ const Dse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
87763
87763
  width: n,
87764
87764
  height: r,
87765
87765
  aspect: e,
87766
- imgSrc: d
87766
+ imgSrc: d || i
87767
87767
  },
87768
87768
  onFileCropped: f
87769
87769
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a1 as d, ap as v, aq as c, as as u, at as C, a2 as k, a3 as S, a4 as P, a5 as T, a6 as g, a7 as F, au as A, av as M, aw as I, a8 as D, aN as f, a9 as h, aa as B, ax as x, aP as E, ay as N, ab as w, az as y, aQ as R, ac as U, ad as L, ae as G, af as H, ag as q, aA as z, b9 as V, ah as W, ai as j, aS as K, aT as O, aR as Z, ar as J, aG as Q, aH as X, aI as Y, aB as _, aj as $, aC as aa, ak as sa, al as ea, ba as oa, bb as ra, am as ta, aD as ia, aU as na, an as ba, aO as la, ao as pa, aE as ma, bc as da, aJ as va, aK as ca, aL as ua, aM as Ca, aF as ka, bd as Sa, bs as Pa, be as Ta, bp as ga, bq as Fa, br as Aa, bw as Ma, bt as Ia, bu as Da, bg as fa, bh as ha, bi as Ba, bj as xa, bo as Ea, bk as Na, bl as wa, bf as ya, bm as Ra, bn as Ua, bv as La, b6 as Ga, b7 as Ha, b8 as qa, a$ as za, b2 as Va, aW as Wa, aY as ja, b1 as Ka, aV as Oa, b0 as Za, a_ as Ja, aZ as Qa, b4 as Xa, b5 as Ya, b3 as _a, aX as $a } from "./index-b806dd1c.js";
1
+ import { a1 as d, ap as v, aq as c, as as u, at as C, a2 as k, a3 as S, a4 as P, a5 as T, a6 as g, a7 as F, au as A, av as M, aw as I, a8 as D, aN as f, a9 as h, aa as B, ax as x, aP as E, ay as N, ab as w, az as y, aQ as R, ac as U, ad as L, ae as G, af as H, ag as q, aA as z, b9 as V, ah as W, ai as j, aS as K, aT as O, aR as Z, ar as J, aG as Q, aH as X, aI as Y, aB as _, aj as $, aC as aa, ak as sa, al as ea, ba as oa, bb as ra, am as ta, aD as ia, aU as na, an as ba, aO as la, ao as pa, aE as ma, bc as da, aJ as va, aK as ca, aL as ua, aM as Ca, aF as ka, bd as Sa, bs as Pa, be as Ta, bp as ga, bq as Fa, br as Aa, bw as Ma, bt as Ia, bu as Da, bg as fa, bh as ha, bi as Ba, bj as xa, bo as Ea, bk as Na, bl as wa, bf as ya, bm as Ra, bn as Ua, bv as La, b6 as Ga, b7 as Ha, b8 as qa, a$ as za, b2 as Va, aW as Wa, aY as ja, b1 as Ka, aV as Oa, b0 as Za, a_ as Ja, aZ as Qa, b4 as Xa, b5 as Ya, b3 as _a, aX as $a } from "./index-ae59fba5.js";
2
2
  import "react";
3
3
  import "@mui/material";
4
4
  import "@emotion/react";
@@ -297,4 +297,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
297
297
  * author : Adam Draper
298
298
  * license : MIT
299
299
  * http://adamwdraper.github.com/Numeral-js/
300
- */(function(t){(function(e,n){t.exports?t.exports=n():e.numeral=n()})(Jt,function(){var e,n,r="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return e=function(c){var u,d,p,f;if(e.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||n.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(d in i)if(f=typeof i[d].regexps.unformat=="function"?i[d].regexps.unformat():i[d].regexps.unformat,f&&c.match(f)){p=i[d].unformat;break}p=p||e._.stringToNumber,u=p(c)}else u=Number(c)||null;return new l(c,u)},e.version=r,e.isNumeral=function(c){return c instanceof l},e._=n={numberToFormat:function(c,u,d){var p=a[e.options.currentLocale],f=!1,m=!1,_=0,g="",h=1e12,E=1e9,v=1e6,b=1e3,S="",C=!1,y,T,x,A,R,w,D;if(c=c||0,T=Math.abs(c),e._.includes(u,"(")?(f=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(R=e._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&(y=u.match(/a(k|m|b|t)?/),y=y?y[1]:!1,e._.includes(u," a")&&(g=" "),u=u.replace(new RegExp(g+"a[kmbt]?"),""),T>=h&&!y||y==="t"?(g+=p.abbreviations.trillion,c=c/h):T<h&&T>=E&&!y||y==="b"?(g+=p.abbreviations.billion,c=c/E):T<E&&T>=v&&!y||y==="m"?(g+=p.abbreviations.million,c=c/v):(T<v&&T>=b&&!y||y==="k")&&(g+=p.abbreviations.thousand,c=c/b)),e._.includes(u,"[.]")&&(m=!0,u=u.replace("[.]",".")),x=c.toString().split(".")[0],A=u.split(".")[1],w=u.indexOf(","),_=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,A?(e._.includes(A,"[")?(A=A.replace("]",""),A=A.split("["),S=e._.toFixed(c,A[0].length+A[1].length,d,A[1].length)):S=e._.toFixed(c,A.length,d),x=S.split(".")[0],e._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",m&&Number(S.slice(1))===0&&(S="")):x=e._.toFixed(c,0,d),g&&!y&&Number(x)>=1e3&&g!==p.abbreviations.trillion)switch(x=String(Number(x)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion;break}if(e._.includes(x,"-")&&(x=x.slice(1),C=!0),x.length<_)for(var L=_-x.length;L>0;L--)x="0"+x;return w>-1&&(x=x.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),u.indexOf(".")===0&&(x=""),D=x+S+(g||""),f?D=(f&&C?"(":"")+D+(f&&C?")":""):R>=0?D=R===0?(C?"-":"+")+D:D+(C?"-":"+"):C&&(D="-"+D),D},stringToNumber:function(c){var u=a[s.currentLocale],d=c,p={thousand:3,million:6,billion:9,trillion:12},f,m,_;if(s.zeroFormat&&c===s.zeroFormat)m=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{m=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(f in p)if(_=new RegExp("[^a-zA-Z]"+u.abbreviations[f]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),d.match(_)){m*=Math.pow(10,p[f]);break}m*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),m*=Number(c)}return m},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,d){return c.slice(0,d)+u+c.slice(d)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var d=Object(c),p=d.length>>>0,f=0,m;if(arguments.length===3)m=arguments[2];else{for(;f<p&&!(f in d);)f++;if(f>=p)throw new TypeError("Reduce of empty array with no initial value");m=d[f++]}for(;f<p;f++)f in d&&(m=u(m,d[f],f,d));return m},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,d){var p=n.multiplier(d);return u>p?u:p},1)},toFixed:function(c,u,d,p){var f=c.toString().split("."),m=u-(p||0),_,g,h,E;return f.length===2?_=Math.min(Math.max(f[1].length,m),u):_=m,h=Math.pow(10,_),E=(d(c+"e+"+_)/h).toFixed(_),p>u-_&&(g=new RegExp("\\.?0{1,"+(p-(u-_))+"}$"),E=E.replace(g,"")),E}},e.options=s,e.formats=i,e.locales=a,e.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},e.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},e.reset=function(){for(var c in o)s[c]=o[c]},e.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,u,d){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=d,d},e.validate=function(c,u){var d,p,f,m,_,g,h,E;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{h=e.localeData(u)}catch{h=e.localeData(e.locale())}return f=h.currency.symbol,_=h.abbreviations,d=h.delimiters.decimal,h.delimiters.thousands==="."?p="\\.":p=h.delimiters.thousands,E=c.match(/^[^\d]+/),E!==null&&(c=c.substr(1),E[0]!==f)||(E=c.match(/[^\d]+$/),E!==null&&(c=c.slice(0,-1),E[0]!==_.thousand&&E[0]!==_.million&&E[0]!==_.billion&&E[0]!==_.trillion))?!1:(g=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(m=c.split(d),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(g):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(g)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(g)&&!!m[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(c,u){var d=this._value,p=c||s.defaultFormat,f,m,_;if(u=u||Math.round,d===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(d===null&&s.nullFormat!==null)m=s.nullFormat;else{for(f in i)if(p.match(i[f].regexps.format)){_=i[f].format;break}_=_||e._.numberToFormat,m=_(d,p,u)}return m},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,f,m,_){return p+Math.round(u*f)}return this._value=n.reduce([this._value,c],d,0)/u,this},subtract:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,f,m,_){return p-Math.round(u*f)}return this._value=n.reduce([c],d,Math.round(this._value*u))/u,this},multiply:function(c){function u(d,p,f,m){var _=n.correctionFactor(d,p);return Math.round(d*_)*Math.round(p*_)/Math.round(_*_)}return this._value=n.reduce([this._value,c],u,1),this},divide:function(c){function u(d,p,f,m){var _=n.correctionFactor(d,p);return Math.round(d*_)/Math.round(p*_)}return this._value=n.reduce([this._value,c],u),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,d){var p=e._.includes(u," BPS")?" ":"",f;return c=c*1e4,u=u.replace(/\s?BPS/,""),f=e._.numberToFormat(c,u,d),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"BPS"),f=f.join("")):f=f+p+"BPS",f},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},d=c.suffixes.concat(u.suffixes.filter(function(f){return c.suffixes.indexOf(f)<0})),p=d.join("|");p="("+p.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(f,m,_){var g,h=e._.includes(m,"ib")?u:c,E=e._.includes(m," b")||e._.includes(m," ib")?" ":"",v,b,S;for(m=m.replace(/\s?i?b/,""),v=0;v<=h.suffixes.length;v++)if(b=Math.pow(h.base,v),S=Math.pow(h.base,v+1),f===null||f===0||f>=b&&f<S){E+=h.suffixes[v],b>0&&(f=f/b);break}return g=e._.numberToFormat(f,m,_),g+E},unformat:function(f){var m=e._.stringToNumber(f),_,g;if(m){for(_=c.suffixes.length-1;_>=0;_--){if(e._.includes(f,c.suffixes[_])){g=Math.pow(c.base,_);break}if(e._.includes(f,u.suffixes[_])){g=Math.pow(u.base,_);break}}m*=g||1}return m}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,d){var p=e.locales[e.options.currentLocale],f={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,_,g;for(u=u.replace(/\s?\$\s?/,""),m=e._.numberToFormat(c,u,d),c>=0?(f.before=f.before.replace(/[\-\(]/,""),f.after=f.after.replace(/[\-\)]/,"")):c<0&&!e._.includes(f.before,"-")&&!e._.includes(f.before,"(")&&(f.before="-"+f.before),g=0;g<f.before.length;g++)switch(_=f.before[g],_){case"$":m=e._.insert(m,p.currency.symbol,g);break;case" ":m=e._.insert(m," ",g+p.currency.symbol.length-1);break}for(g=f.after.length-1;g>=0;g--)switch(_=f.after[g],_){case"$":m=g===f.after.length-1?m+p.currency.symbol:e._.insert(m,p.currency.symbol,-(f.after.length-(1+g)));break;case" ":m=g===f.after.length-1?m+" ":e._.insert(m," ",-(f.after.length-(1+g)+p.currency.symbol.length-1));break}return m}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,u,d){var p,f=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",m=f.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),p=e._.numberToFormat(Number(m[0]),u,d),p+"e"+m[1]},unformat:function(c){var u=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),d=Number(u[0]),p=Number(u[1]);p=e._.includes(c,"e-")?p*=-1:p;function f(m,_,g,h){var E=e._.correctionFactor(m,_),v=m*E*(_*E)/(E*E);return v}return e._.reduce([d,Math.pow(10,p)],f,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,d){var p=e.locales[e.options.currentLocale],f,m=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),m+=p.ordinal(c),f=e._.numberToFormat(c,u,d),f+m}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,d){var p=e._.includes(u," %")?" ":"",f;return e.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),f=e._.numberToFormat(c,u,d),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"%"),f=f.join("")):f=f+p+"%",f},unformat:function(c){var u=e._.stringToNumber(c);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,d){var p=Math.floor(c/60/60),f=Math.floor((c-p*60*60)/60),m=Math.round(c-p*60*60-f*60);return p+":"+(f<10?"0"+f:f)+":"+(m<10?"0"+m:m)},unformat:function(c){var u=c.split(":"),d=0;return u.length===3?(d=d+Number(u[0])*60*60,d=d+Number(u[1])*60,d=d+Number(u[2])):u.length===2&&(d=d+Number(u[0])*60,d=d+Number(u[1])),Number(d)}})}(),e})})(Rx);var vue=Rx.exports;const Zo=jn(vue);function Sue(t){return Zo(t).format()}function yue(t){const e=t?Zo(t).format("$0,0.00"):"";return Ac(e,".00")}function Tue(t){const e=t?Zo(Number(t)/100).format("0.0%"):"";return Ac(e,".0")}function Cue(t){const e=t?Zo(t).format("0.00a"):"";return Ac(e,".00")}function yh(t){const e=t?Zo(t).format("0.0 b"):"";return Ac(e,".0")}function Ac(t,e=".00"){return t.includes(e)?t.replace(e,""):t}const Oue=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:yue,fData:yh,fNumber:Sue,fPercent:Tue,fShortenNumber:Cue},Symbol.toStringTag,{value:"Module"})),Nx=({fileRejections:t})=>t.length?N.jsx(X.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:e=>Ee(e.palette.error.main,.08),borderColor:e=>Ee(e.palette.error.main,.24)},children:t.map(({file:e,errors:n})=>{const{path:r,size:i}=Sh(e);return N.jsxs(X.Box,{sx:{my:1},children:[N.jsxs(X.Typography,{variant:"subtitle2",noWrap:!0,children:[r," - ",i?yh(i):""]}),n.map(a=>N.jsxs(X.Box,{component:"span",sx:{typography:"caption"},children:["- ",a.message]},a.code))]},r)})}):null,Rue=({thumbnail:t,files:e,onRemove:n,sx:r})=>e!=null&&e.length?N.jsx(iv,{initial:!1,children:e.map(i=>{const{key:a,name:o="",size:s=0}=Sh(i),l=typeof i=="string";return t?N.jsxs(X.Stack,{component:On.div,...La().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:c=>`solid 1px ${c.palette.divider}`,...r},children:[N.jsx(Ox,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),n&&N.jsx(X.IconButton,{size:"small",onClick:()=>n(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:c=>Ee(c.palette.common.white,.72),bgcolor:c=>Ee(c.palette.grey[900],.48),"&:hover":{bgcolor:c=>Ee(c.palette.grey[900],.72)}},children:N.jsx(Lt,{icon:"eva:close-fill",width:16})})]},a):N.jsxs(X.Stack,{component:On.div,...La().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:c=>`solid 1px ${c.palette.divider}`,...r},children:[N.jsx(Ox,{file:i}),N.jsxs(X.Stack,{flexGrow:1,sx:{minWidth:0},children:[N.jsx(X.Typography,{variant:"subtitle2",noWrap:!0,children:l?i:o}),N.jsx(X.Typography,{variant:"caption",sx:{color:"text.secondary"},children:l?"":yh(s)})]}),n&&N.jsx(X.IconButton,{edge:"end",size:"small",onClick:()=>n(i),children:N.jsx(Lt,{icon:"eva:close-fill"})})]},a)})}):null,Nue=({file:t})=>{if(!t)return null;const e=typeof t=="string"?t:t.preview;return N.jsx(X.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:N.jsx(uc,{alt:"file preview",src:e,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},Aue=qt("div")(({theme:t})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:t.spacing(5),borderRadius:t.shape.borderRadius,transition:t.transitions.create("padding"),backgroundColor:t.palette.background.neutral,border:`1px dashed ${Ee(t.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),xue=({header:t,description:e,sx:n,...r})=>N.jsxs(X.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...n},...r,children:[N.jsx(Yne,{sx:{width:220}}),N.jsxs("div",{children:[t||N.jsx(X.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),e||N.jsxs(X.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",N.jsx(X.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),Ax=({disabled:t,multiple:e=!1,error:n,helperText:r,file:i,onDelete:a,files:o,thumbnail:s,onUpload:l,onRemove:c,onRemoveAll:u,sx:d,dropZoneProps:p,placeholderProps:f,placeholderAlt:m,image:_,...g})=>{const{getRootProps:h,getInputProps:E,isDragActive:v,isDragReject:b,fileRejections:S}=Rc({multiple:e,disabled:t,...g}),C=!!i&&!e||_,y=o&&e&&o.length>0,T=b||!!n;return N.jsxs(X.Box,{sx:{width:1,position:"relative",...d},children:[N.jsxs(Aue,{...h(),sx:{...v&&{opacity:.72},...T&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...p},children:[N.jsx("input",{...E()}),m?N.jsx(X.Stack,{sx:{...C&&{opacity:0}},children:m}):N.jsx(xue,{sx:{...C&&{opacity:0}},header:f==null?void 0:f.title,description:f==null?void 0:f.description}),C&&N.jsx(Nue,{file:i||_||""})]}),r&&r,N.jsx(Nx,{fileRejections:S}),C&&a&&N.jsx(X.IconButton,{size:"small",onClick:a,sx:{top:16,right:16,zIndex:9,position:"absolute",color:x=>Ee(x.palette.common.white,.8),bgcolor:x=>Ee(x.palette.grey[900],.72),"&:hover":{bgcolor:x=>Ee(x.palette.grey[900],.48)}},children:N.jsx(Lt,{icon:"eva:close-fill",width:18})}),y&&N.jsxs(N.Fragment,{children:[N.jsx(X.Box,{sx:{my:3},children:N.jsx(Rue,{files:o,thumbnail:s,onRemove:c})}),N.jsxs(X.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[u&&N.jsx(X.Button,{color:"inherit",variant:"outlined",size:"small",onClick:u,children:"Remove all"}),l&&N.jsx(X.Button,{size:"small",variant:"contained",onClick:l,children:"Upload files"})]})]})]})},xx=({onFileCropped:t,aspect:e,size:{width:n,height:r},label:i,image:a="",uploading:o,file:s,...l})=>{const[c,u]=wd(),[d,p]=O.useState(a),f=m=>{m||p(a||""),t(m)};return N.jsxs(N.Fragment,{children:[N.jsxs(X.Stack,{position:"relative",width:1,borderRadius:1,overflow:"hidden",children:[o&&N.jsx(rc,{}),N.jsx(Ax,{...l,file:s,onDrop:m=>{if(m.length>0){u(),t(void 0);const _=new FileReader;_.addEventListener("load",()=>{var h;const g=((h=_.result)==null?void 0:h.toString())||"";p(g)}),_.readAsDataURL(m[0])}},image:a}),(s||a)&&N.jsx(X.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:N.jsx(X.IconButton,{color:"primary",onClick:u,children:N.jsx(Lt,{icon:"ic:round-crop"})})})]}),N.jsx(qA,{open:c,onClose:u,title:i,image:{width:n,height:r,aspect:e,imgSrc:d},onFileCropped:f})]})};function Iue(t,e){const{watch:n,setValue:r}=rt.useFormContext(),[i,a]=O.useState(e),o=n(t)||[];return{uploadFile:async p=>{if(!p){r(t,void 0),a(void 0);return}r(t,p),a(Object.assign(p,{preview:URL.createObjectURL(p)}))},uploadFiles:async p=>{r(t,[...o,...p.map(f=>Object.assign(f,{preview:URL.createObjectURL(f)}))])},handleDeleteFile:()=>{r(t,void 0),a(void 0)},handleRemoveAll:()=>{r(t,void 0)},handleRemove:p=>{const f=o.filter(m=>m!==p);r(t,f)},file:i}}const wue=({name:t,rules:e,helperText:n,aspect:r,label:i,size:a,image:o,onFileCropped:s,...l})=>{const{control:c}=rt.useFormContext(),{uploadFile:u,file:d}=Iue(t);return N.jsx(rt.Controller,{name:t,control:c,rules:e,render:({field:{value:p},fieldState:{error:f}})=>N.jsx(xx,{accept:{"image/*":[]},file:p?d:void 0,onFileCropped:m=>{u(m),s&&s(m)},error:!!f,disableMultiple:!0,helperText:(!!f||n)&&N.jsx(X.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:n}),aspect:r,label:i,size:a,image:o,...l})})},xc=(t,e=!0)=>{const{pathname:n}=Wn.useLocation(),r=t?!!Wn.matchPath({path:t,end:!0},n):!1,i=t?!!Wn.matchPath({path:t,end:!1},n):!1;return{active:e?i:r,isExternalLink:t.includes("http")}},Ic={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},wa={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},Due=qt(X.ListItemButton,{shouldForwardProp:t=>t!=="active"&&t!=="open"})(({active:t,disabled:e,open:n,depth:r,theme:i})=>{const a=i.palette.mode==="light",o=r!==1,s={color:i.palette.primary.main,backgroundColor:Ee(i.palette.primary.main,i.palette.action.selectedOpacity),...!a&&{color:i.palette.primary.light}},l={color:i.palette.text.primary,backgroundColor:"transparent"},c={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":c,...o&&{flexDirection:"row",padding:i.spacing(1)},...t&&{...s,"&:hover":{...s}},...o&&t&&{...l,"&:hover":{...l}},...n&&!t&&c,...e&&{"&.Mui-disabled":{opacity:.64}}}}),Mue=qt(X.ListItemIcon)({marginRight:0,marginBottom:4,width:wa.NAV_ITEM_MINI,height:wa.NAV_ITEM_MINI}),Lue=qt(X.Popover)(({theme:t})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:Number(t.shape.borderRadius)*1.5,...Nc({color:t.palette.background.default})}})),Ix=O.forwardRef(({item:t,depth:e,open:n,active:r,isExternalLink:i,...a},o)=>{const{title:s,path:l,icon:c,children:u,disabled:d,caption:p}=t,f=e!==1,m=N.jsxs(Due,{ref:o,open:n,depth:e,active:r,disabled:d,...a,children:[c&&N.jsx(Mue,{children:c}),N.jsx(X.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...r&&{fontWeight:"fontWeightMedium"},...f&&{fontSize:14,width:"auto",textAlign:"left"}}}}),p&&N.jsx(X.Tooltip,{title:p,arrow:!0,placement:"right",children:N.jsx(Lt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!u&&N.jsx(Lt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?N.jsx(X.Link,{href:l,target:"_blank",rel:"noopener",underline:"none",children:m}):N.jsx(X.Link,{component:Wn.Link,to:l,underline:"none",children:m}))()});Ix.displayName="NavItem";const Pue=({data:t,depth:e})=>N.jsx(N.Fragment,{children:t.map(n=>N.jsx(wx,{data:n,depth:e+1,hasChild:!!n.children},n.title+n.path))}),wx=({data:t,depth:e,hasChild:n})=>{const r=O.useRef(null),{pathname:i}=Wn.useLocation(),{active:a,isExternalLink:o}=xc(t.path),[s,l]=O.useState(!1);O.useEffect(()=>{s&&u()},[i]),O.useEffect(()=>{const d=Array.from(document.querySelectorAll(".MuiAppBar-root")),p=()=>{document.body.style.overflow="",document.body.style.padding="",d.forEach(f=>{f.style.padding=""})};p()},[s]);const c=()=>{l(!0)},u=()=>{l(!1)};return N.jsxs(N.Fragment,{children:[N.jsx(Ix,{ref:r,item:t,depth:e,open:s,active:a,isExternalLink:o,onMouseEnter:c,onMouseLeave:u}),n&&N.jsx(Lue,{open:s,anchorEl:r.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:c,onMouseLeave:u},children:N.jsx(Pue,{data:t.children,depth:e})})]})},kue=({items:t,isLastGroup:e})=>N.jsxs(N.Fragment,{children:[t.map(n=>N.jsx(wx,{data:n,depth:1,hasChild:!!n.children},n.title+n.path)),!e&&N.jsx(X.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),Fue=({data:t,sx:e,...n})=>N.jsx(X.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...e},...n,children:t.map((r,i)=>N.jsx(kue,{items:r.items,isLastGroup:i+1===t.length},r.subheader))}),Bue=O.memo(Fue),Uue=qt(X.ListItemButton,{shouldForwardProp:t=>t!=="active"&&t!=="caption"})(({active:t,disabled:e,depth:n,caption:r,theme:i})=>{const a=i.palette.mode==="light",o=n!==1,s={color:i.palette.primary.main,backgroundColor:Ee(i.palette.primary.main,i.palette.action.selectedOpacity),...!a&&{color:i.palette.primary.light}},l={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Ic.H_DASHBOARD_ITEM,...o&&{height:Ic.H_DASHBOARD_ITEM_SUB,...n>2&&{paddingLeft:i.spacing(n)},...r&&{height:Ic.H_DASHBOARD_ITEM}},...t&&{...s,"&:hover":{...s}},...o&&t&&{...l,"&:hover":{...l}},...e&&{"&.Mui-disabled":{opacity:.64}}}}),Dx=qt(X.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:wa.NAV_ITEM,height:wa.NAV_ITEM}),Gue=qt("span",{shouldForwardProp:t=>t!=="active"})(({active:t,theme:e})=>({width:4,height:4,borderRadius:"50%",backgroundColor:e.palette.text.disabled,transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter}),...t&&{transform:"scale(2)",backgroundColor:e.palette.primary.main}})),$ue=qt(X.ListSubheader)(({theme:t})=>({...t.typography.overline,fontSize:11,paddingTop:t.spacing(3),paddingBottom:t.spacing(1),color:t.palette.text.secondary})),que=({item:t,depth:e,open:n,active:r,isExternalLink:i,...a})=>{const{title:o,path:s,icon:l,info:c,children:u,disabled:d,caption:p}=t,f=e!==1,m=N.jsxs(Uue,{depth:e,active:r,disabled:d,caption:!!p,...a,children:[l&&N.jsx(Dx,{children:l}),f&&N.jsx(Dx,{children:N.jsx(Gue,{active:r&&f})}),N.jsx(X.ListItemText,{primary:o,secondary:p&&N.jsx(X.Tooltip,{title:p,placement:"top-start",children:N.jsx("span",{children:p})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:r?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),c&&N.jsx(X.Box,{component:"span",sx:{lineHeight:0},children:c}),!!u&&N.jsx(Lt,{width:16,icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?N.jsx(X.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):u?m:N.jsx(X.Link,{component:Wn.Link,to:s,underline:"none",children:m}))()},Yue=({data:t,depth:e})=>N.jsx(N.Fragment,{children:t.map(n=>N.jsx(Mx,{data:n,depth:e+1,hasChild:!!n.children},n.title+n.path))}),Mx=({data:t,depth:e,hasChild:n})=>{const{pathname:r}=Wn.useLocation(),{active:i,isExternalLink:a}=xc(t.path),[o,s]=O.useState(i);O.useEffect(()=>{i||c()},[r]);const l=()=>{s(!o)},c=()=>{s(!1)};return N.jsxs(N.Fragment,{children:[N.jsx(que,{item:t,depth:e,open:o,active:i,isExternalLink:a,onClick:l}),n&&N.jsx(X.Collapse,{in:o,unmountOnExit:!0,children:N.jsx(Yue,{data:t.children,depth:e})})]})},Vue=({data:t,sx:e,...n})=>N.jsx(X.Stack,{sx:e,...n,children:t.map(r=>{const i=r.subheader||r.items[0].title;return N.jsxs(X.List,{disablePadding:!0,sx:{px:2},children:[r.subheader&&N.jsx($ue,{disableSticky:!0,children:r.subheader}),r.items.map(a=>N.jsx(Mx,{data:a,depth:1,hasChild:!!a.children},a.title+a.path))]},i)})}),Hue=qt(X.ListItemButton,{shouldForwardProp:t=>t!=="active"&&t!=="open"})(({active:t,disabled:e,open:n,depth:r,theme:i})=>{const a=i.palette.mode==="light",o=r!==1,s={color:i.palette.primary.main,backgroundColor:Ee(i.palette.primary.main,i.palette.action.selectedOpacity),...!a&&{color:i.palette.primary.light}},l={color:i.palette.text.primary,backgroundColor:"transparent"},c={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Ic.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":c,...o&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...t&&{...s,"&:hover":{...s}},...o&&t&&{...l,"&:hover":{...l}},...n&&!t&&c,...e&&{"&.Mui-disabled":{opacity:.64}}}}),zue=qt(X.ListItemIcon)({marginRight:8,flexShrink:0,width:wa.NAV_ITEM_HORIZONTAL,height:wa.NAV_ITEM_HORIZONTAL}),Wue=qt(X.Popover)(({theme:t})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:Number(t.shape.borderRadius)*1.5,...Nc({color:t.palette.background.default})}})),Lx=O.forwardRef(({item:t,depth:e,open:n,active:r,isExternalLink:i,...a},o)=>{const{title:s,path:l,icon:c,info:u,children:d,disabled:p,caption:f}=t,m=e!==1,_=N.jsxs(Hue,{ref:o,open:n,depth:e,active:r,disabled:p,...a,children:[c&&N.jsx(zue,{children:c}),N.jsx(X.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:r?"subtitle2":"body2"}}),u&&N.jsx(X.Box,{component:"span",sx:{ml:1,lineHeight:0},children:u}),f&&N.jsx(X.Tooltip,{title:f,arrow:!0,children:N.jsx(X.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:N.jsx(Lt,{icon:"eva:info-outline",width:16})})}),!!d&&N.jsx(Lt,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?N.jsx(X.Link,{href:l,target:"_blank",rel:"noopener",underline:"none",children:_}):N.jsx(X.Link,{component:Wn.Link,to:l,underline:"none",children:_}))()});Lx.displayName="NavItem";const jue=({data:t,depth:e})=>N.jsx(N.Fragment,{children:t.map(n=>N.jsx(Px,{data:n,depth:e+1,hasChild:!!n.children},n.title+n.path))}),Px=({data:t,depth:e,hasChild:n})=>{const r=O.useRef(null),{pathname:i}=Wn.useLocation(),{active:a,isExternalLink:o}=xc(t.path),[s,l]=O.useState(!1);O.useEffect(()=>{s&&u()},[i]),O.useEffect(()=>{const d=Array.from(document.querySelectorAll(".MuiAppBar-root")),p=()=>{document.body.style.overflow="",document.body.style.padding="",d.forEach(f=>{f.style.padding=""})};p()},[s]);const c=()=>{l(!0)},u=()=>{l(!1)};return N.jsxs(N.Fragment,{children:[N.jsx(Lx,{ref:r,item:t,depth:e,open:s,active:a,isExternalLink:o,onMouseEnter:c,onMouseLeave:u}),n&&N.jsx(Wue,{open:s,anchorEl:r.current,anchorOrigin:e===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:e===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:c,onMouseLeave:u},children:N.jsx(jue,{data:t.children,depth:e})})]})},Kue=({items:t})=>N.jsx(N.Fragment,{children:t.map(e=>N.jsx(Px,{data:e,depth:1,hasChild:!!e.children},e.title+e.path))}),Que=({data:t,sx:e,...n})=>N.jsx(X.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...Tx,...e},...n,children:t.map(r=>N.jsx(Kue,{items:r.items},r.subheader))}),Xue=O.memo(Que),Zue=({file:t})=>{if(!t)return null;const e=typeof t=="string"?t:t.preview;return N.jsx(uc,{alt:"avatar",src:e,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},Jue=qt("div")(({theme:t})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${Ee(t.palette.grey[500],.32)}`})),ede=qt("div")(({theme:t})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:t.palette.text.disabled,backgroundColor:t.palette.background.neutral,transition:t.transitions.create("opacity",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter})})),tde=({error:t,file:e,disabled:n,helperText:r,sx:i,...a})=>{const{getRootProps:o,getInputProps:s,isDragActive:l,isDragReject:c,fileRejections:u}=Rc({multiple:!1,disabled:n,...a}),d=!!e,p=c||!!t;return N.jsxs(N.Fragment,{children:[N.jsxs(Jue,{...o(),sx:{...l&&{opacity:.72},...p&&{borderColor:"error.light",...d&&{bgcolor:"error.lighter"}},...n&&{opacity:.48,pointerEvents:"none"},...d&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[N.jsx("input",{...s()}),d&&N.jsx(Zue,{file:e}),N.jsxs(ede,{className:"placeholder",sx:{"&:hover":{opacity:.72},...d&&{zIndex:9,opacity:0,color:"common.white",bgcolor:f=>Ee(f.palette.grey[900],.64)},...p&&{color:"error.main",bgcolor:"error.lighter"}},children:[N.jsx(Lt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),N.jsx(X.Typography,{variant:"caption",children:e?"Update photo":"Upload photo"})]})]}),r&&r,N.jsx(Nx,{fileRejections:u})]})},nde=qt("div")(({theme:t})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:t.spacing(.5),color:t.palette.text.disabled,borderRadius:t.shape.borderRadius,border:`dashed 1px ${t.palette.divider}`,backgroundColor:Ee(t.palette.grey[500],.08),"&:hover":{opacity:.72}})),rde=({placeholderAlt:t,error:e,disabled:n,sx:r,...i})=>{const{getRootProps:a,getInputProps:o,isDragActive:s,isDragReject:l}=Rc({disabled:n,...i}),c=l||e;return N.jsxs(nde,{...a(),sx:{...s&&{opacity:.72},...c&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...n&&{opacity:.48,pointerEvents:"none"},...r},children:[N.jsx("input",{...o()}),t||N.jsx(Lt,{icon:"eva:cloud-upload-fill",width:28})]})},ide=()=>{const[t,e]=O.useState(!1),[n,r]=O.useState(document.activeElement);return O.useEffect(()=>{const i=o=>r(o.target),a=()=>r(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",a,!0),e(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",a)}},[]),{activeElement:n,listenersReady:t}};function ade(){const[t,e]=O.useState(null);return{copiedText:t,copy:async r=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch{return e(null),!1}}}}const ode=(t,e)=>xse(t,e),sde=t=>{const e=O.useRef();return ode(t,e.current)||(e.current=t),e.current},lde=(t,e)=>{O.useEffect(t,e.map(sde))},cde=()=>{const t=O.useRef(!0);return t.current?(t.current=!1,!0):t.current};function ude(t){const[e,n]=O.useState(t||"");return{currentTab:e,onChangeTab:(r,i)=>{n(i)},setCurrentTab:n}}const dde=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(t,e,n)=>{const r=`data:application/octet-stream;base64,${n}`,i=document.createElement("a"),a=`${t.replace(e,"")}.${e}`;i.href=r,i.download=a,i.click()}},Symbol.toStringTag,{value:"Module"}));function pde(t){return cf({},t)}var kx=1440,fde=2520,Th=43200,_de=86400;function mde(t,e,n){var r,i;be(2,arguments);var a=In(),o=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:a.locale)!==null&&r!==void 0?r:Kl;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=fa(t,e);if(isNaN(s))throw new RangeError("Invalid time value");var l=cf(pde(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:s}),c,u;s>0?(c=ve(e),u=ve(t)):(c=ve(t),u=ve(e));var d=TC(u,c),p=(_a(u)-_a(c))/1e3,f=Math.round((d-p)/60),m;if(f<2)return n!=null&&n.includeSeconds?d<5?o.formatDistance("lessThanXSeconds",5,l):d<10?o.formatDistance("lessThanXSeconds",10,l):d<20?o.formatDistance("lessThanXSeconds",20,l):d<40?o.formatDistance("halfAMinute",0,l):d<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):f===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",f,l);if(f<45)return o.formatDistance("xMinutes",f,l);if(f<90)return o.formatDistance("aboutXHours",1,l);if(f<kx){var _=Math.round(f/60);return o.formatDistance("aboutXHours",_,l)}else{if(f<fde)return o.formatDistance("xDays",1,l);if(f<Th){var g=Math.round(f/kx);return o.formatDistance("xDays",g,l)}else if(f<_de)return m=Math.round(f/Th),o.formatDistance("aboutXMonths",m,l)}if(m=tf(u,c),m<12){var h=Math.round(f/Th);return o.formatDistance("xMonths",h,l)}else{var E=m%12,v=Math.floor(m/12);return E<3?o.formatDistance("aboutXYears",v,l):E<9?o.formatDistance("overXYears",v,l):o.formatDistance("almostXYears",v+1,l)}}function gde(t,e){return be(1,arguments),mde(t,Date.now(),e)}function hde(t){be(1,arguments);var e=ve(t),n=e.getTime();return n}function Ede(t,e){const n=e||"dd/MM/yyyy";return t?sf(new Date(t),n):null}function bde(t,e){const n=e||"dd/MM/yyyy HH:mm:ss";return t?sf(new Date(t),n):null}function vde(t){return t?hde(new Date(t)):null}function Sde(t){return t?gde(new Date(t),{addSuffix:!0}):null}const yde=Object.freeze(Object.defineProperty({__proto__:null,fDate:Ede,fDateTime:bde,fTimestamp:vde,fToNow:Sde},Symbol.toStringTag,{value:"Module"}));function Tde(t){const e=t.match(/\/([^/]+)/);return e?e[0]:t}const Cde=Object.freeze(Object.defineProperty({__proto__:null,getRoot:Tde},Symbol.toStringTag,{value:"Module"}));function Ode(t,e,n="asc"){return t.slice().sort((r,i)=>{const a=r[e],o=i[e];return a<o?n==="asc"?-1:1:a>o?n==="asc"?1:-1:0})}function Rde(t,e,n){const r=[...n],i=r.splice(t,1)[0];return r.splice(e,0,i),r}const Nde=Object.freeze(Object.defineProperty({__proto__:null,sort:Ode,updatePosition:Rde},Symbol.toStringTag,{value:"Module"})),Ade=Object.freeze(Object.defineProperty({__proto__:null,cnpjIsValid:t=>{if(!t||(t=t.replace(/[^\d]+/g,""),t.length!==14)||t==="00000000000000"||t==="11111111111111"||t==="22222222222222"||t==="33333333333333"||t==="44444444444444"||t==="55555555555555"||t==="66666666666666"||t==="77777777777777"||t==="88888888888888"||t==="99999999999999")return!1;let e=t.length-2,n=t.substring(0,e);const r=t.substring(e);let i=0,a=e-7;for(let s=e;s>=1;s--)i+=parseInt(n.charAt(e-s))*a--,a<2&&(a=9);let o=i%11<2?0:11-i%11;if(o!==parseInt(r.charAt(0)))return!1;e+=1,n=t.substring(0,e),i=0,a=e-7;for(let s=e;s>=1;s--)i+=parseInt(n.charAt(e-s))*a--,a<2&&(a=9);return o=i%11<2?0:11-i%11,o===parseInt(r.charAt(1))},cpfIsValid:t=>{if(!t||(t=t==null?void 0:t.replace(/[^\d]+/g,""),t.length!==11||t==="00000000000"||t==="11111111111"||t==="22222222222"||t==="33333333333"||t==="44444444444"||t==="55555555555"||t==="66666666666"||t==="77777777777"||t==="88888888888"||t==="99999999999"))return!1;let e=0;for(let r=0;r<9;r++)e+=parseInt(t.charAt(r))*(10-r);let n=11-e%11;if((n===10||n===11)&&(n=0),n!==parseInt(t.charAt(9)))return!1;e=0;for(let r=0;r<10;r++)e+=parseInt(t.charAt(r))*(11-r);return n=11-e%11,(n===10||n===11)&&(n=0),n===parseInt(t.charAt(10))}},Symbol.toStringTag,{value:"Module"})),xde=t=>function(n){return N.jsx(O.Suspense,{fallback:N.jsx(rc,{}),children:N.jsx(t,{...n})})},Ide=Object.freeze(Object.defineProperty({__proto__:null,default:gL},Symbol.toStringTag,{value:"Module"}));ue.Autocomplete=kd,ue.AutocompleteField=jle,ue.Checkbox=Kle,ue.Codes=Zle,ue.ColorPickerField=Jle,ue.ColorPickerInput=EC,ue.Common=kne,ue.ConfirmDelete=Fne,ue.CustomAvatar=cO,ue.CustomAvatarGroup=uO,ue.DataGrid=Hne,ue.DatePicker=ece,ue.DateRangePicker=tce,ue.DateTimePicker=nce,ue.Delayed=zne,ue.DialogAnimate=hL,ue.Drawer=rre,ue.Editor=CA,ue.EditorField=rce,ue.FabButtonAnimate=av,ue.Field=JA,ue.FixedProgressBar=rc,ue.Form=ice,ue.IconButtonAnimate=ov,ue.Iconify=Lt,ue.Image=uc,ue.ImageCropModal=qA,ue.Label=YA,ue.MaskedInput=fh,ue.MaskedInputField=ace,ue.MaterialDesignContent=LS,ue.MenuPopover=Fle,ue.Modal=$le,ue.MotionContainer=pk,ue.MotionLazyContainer=uS,ue.MotionViewport=dk,ue.MultiCheckbox=Qle,ue.NavSectionHorizontal=Xue,ue.NavSectionMini=Bue,ue.NavSectionVertical=Vue,ue.PasswordField=oce,ue.Portal=qle,ue.RadioGroupField=sce,ue.Scrollbar=TO,ue.SearchInput=Yle,ue.SnackbarContent=dd,ue.SnackbarProvider=FS,ue.Steps=zle,ue.Switch=lce,ue.TRANSITION=Ih,ue.TabPanel=Wle,ue.TextAnimate=EL,ue.ThemeProvider=lO,ue.TimePicker=cce,ue.Transition=Qs,ue.Upload=Ax,ue.UploadAvatar=tde,ue.UploadBox=rde,ue.UploadWithCrop=xx,ue.UploadWithCropField=wue,ue.cssStyles=bue,ue.file=dde,ue.formatNumber=Oue,ue.formatTime=yde,ue.loadable=xde,ue.routes=Cde,ue.sort=Nde,ue.useActiveElement=ide,ue.useActiveLink=xc,ue.useCopyToClipboard=ade,ue.useDeepCompareEffect=lde,ue.useEventListener=ZA,ue.useIsMounting=cde,ue.useResponsive=cS,ue.useSnackbar=Vk,ue.useTabs=ude,ue.useToggle=wd,ue.validators=Ade,ue.varBgColor=nI,ue.varBgKenburns=rI,ue.varBgPan=iI,ue.varBounce=Jx,ue.varContainer=es,ue.varFade=La,ue.varFlip=Qx,ue.varHover=tI,ue.varPath=Wx,ue.varRotate=eI,ue.varScale=Zx,ue.varSlide=Xx,ue.varTranEnter=Ve,ue.varTranExit=je,ue.varTranHover=jx,ue.varZoom=Kx,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
300
+ */(function(t){(function(e,n){t.exports?t.exports=n():e.numeral=n()})(Jt,function(){var e,n,r="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return e=function(c){var u,d,p,f;if(e.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||n.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(d in i)if(f=typeof i[d].regexps.unformat=="function"?i[d].regexps.unformat():i[d].regexps.unformat,f&&c.match(f)){p=i[d].unformat;break}p=p||e._.stringToNumber,u=p(c)}else u=Number(c)||null;return new l(c,u)},e.version=r,e.isNumeral=function(c){return c instanceof l},e._=n={numberToFormat:function(c,u,d){var p=a[e.options.currentLocale],f=!1,m=!1,_=0,g="",h=1e12,E=1e9,v=1e6,b=1e3,S="",C=!1,y,T,x,A,R,w,D;if(c=c||0,T=Math.abs(c),e._.includes(u,"(")?(f=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(R=e._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&(y=u.match(/a(k|m|b|t)?/),y=y?y[1]:!1,e._.includes(u," a")&&(g=" "),u=u.replace(new RegExp(g+"a[kmbt]?"),""),T>=h&&!y||y==="t"?(g+=p.abbreviations.trillion,c=c/h):T<h&&T>=E&&!y||y==="b"?(g+=p.abbreviations.billion,c=c/E):T<E&&T>=v&&!y||y==="m"?(g+=p.abbreviations.million,c=c/v):(T<v&&T>=b&&!y||y==="k")&&(g+=p.abbreviations.thousand,c=c/b)),e._.includes(u,"[.]")&&(m=!0,u=u.replace("[.]",".")),x=c.toString().split(".")[0],A=u.split(".")[1],w=u.indexOf(","),_=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,A?(e._.includes(A,"[")?(A=A.replace("]",""),A=A.split("["),S=e._.toFixed(c,A[0].length+A[1].length,d,A[1].length)):S=e._.toFixed(c,A.length,d),x=S.split(".")[0],e._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",m&&Number(S.slice(1))===0&&(S="")):x=e._.toFixed(c,0,d),g&&!y&&Number(x)>=1e3&&g!==p.abbreviations.trillion)switch(x=String(Number(x)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion;break}if(e._.includes(x,"-")&&(x=x.slice(1),C=!0),x.length<_)for(var L=_-x.length;L>0;L--)x="0"+x;return w>-1&&(x=x.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),u.indexOf(".")===0&&(x=""),D=x+S+(g||""),f?D=(f&&C?"(":"")+D+(f&&C?")":""):R>=0?D=R===0?(C?"-":"+")+D:D+(C?"-":"+"):C&&(D="-"+D),D},stringToNumber:function(c){var u=a[s.currentLocale],d=c,p={thousand:3,million:6,billion:9,trillion:12},f,m,_;if(s.zeroFormat&&c===s.zeroFormat)m=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{m=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(f in p)if(_=new RegExp("[^a-zA-Z]"+u.abbreviations[f]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),d.match(_)){m*=Math.pow(10,p[f]);break}m*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),m*=Number(c)}return m},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,d){return c.slice(0,d)+u+c.slice(d)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var d=Object(c),p=d.length>>>0,f=0,m;if(arguments.length===3)m=arguments[2];else{for(;f<p&&!(f in d);)f++;if(f>=p)throw new TypeError("Reduce of empty array with no initial value");m=d[f++]}for(;f<p;f++)f in d&&(m=u(m,d[f],f,d));return m},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,d){var p=n.multiplier(d);return u>p?u:p},1)},toFixed:function(c,u,d,p){var f=c.toString().split("."),m=u-(p||0),_,g,h,E;return f.length===2?_=Math.min(Math.max(f[1].length,m),u):_=m,h=Math.pow(10,_),E=(d(c+"e+"+_)/h).toFixed(_),p>u-_&&(g=new RegExp("\\.?0{1,"+(p-(u-_))+"}$"),E=E.replace(g,"")),E}},e.options=s,e.formats=i,e.locales=a,e.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},e.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},e.reset=function(){for(var c in o)s[c]=o[c]},e.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,u,d){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=d,d},e.validate=function(c,u){var d,p,f,m,_,g,h,E;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{h=e.localeData(u)}catch{h=e.localeData(e.locale())}return f=h.currency.symbol,_=h.abbreviations,d=h.delimiters.decimal,h.delimiters.thousands==="."?p="\\.":p=h.delimiters.thousands,E=c.match(/^[^\d]+/),E!==null&&(c=c.substr(1),E[0]!==f)||(E=c.match(/[^\d]+$/),E!==null&&(c=c.slice(0,-1),E[0]!==_.thousand&&E[0]!==_.million&&E[0]!==_.billion&&E[0]!==_.trillion))?!1:(g=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(m=c.split(d),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(g):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(g)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(g)&&!!m[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(c,u){var d=this._value,p=c||s.defaultFormat,f,m,_;if(u=u||Math.round,d===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(d===null&&s.nullFormat!==null)m=s.nullFormat;else{for(f in i)if(p.match(i[f].regexps.format)){_=i[f].format;break}_=_||e._.numberToFormat,m=_(d,p,u)}return m},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,f,m,_){return p+Math.round(u*f)}return this._value=n.reduce([this._value,c],d,0)/u,this},subtract:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,f,m,_){return p-Math.round(u*f)}return this._value=n.reduce([c],d,Math.round(this._value*u))/u,this},multiply:function(c){function u(d,p,f,m){var _=n.correctionFactor(d,p);return Math.round(d*_)*Math.round(p*_)/Math.round(_*_)}return this._value=n.reduce([this._value,c],u,1),this},divide:function(c){function u(d,p,f,m){var _=n.correctionFactor(d,p);return Math.round(d*_)/Math.round(p*_)}return this._value=n.reduce([this._value,c],u),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,d){var p=e._.includes(u," BPS")?" ":"",f;return c=c*1e4,u=u.replace(/\s?BPS/,""),f=e._.numberToFormat(c,u,d),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"BPS"),f=f.join("")):f=f+p+"BPS",f},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},d=c.suffixes.concat(u.suffixes.filter(function(f){return c.suffixes.indexOf(f)<0})),p=d.join("|");p="("+p.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(f,m,_){var g,h=e._.includes(m,"ib")?u:c,E=e._.includes(m," b")||e._.includes(m," ib")?" ":"",v,b,S;for(m=m.replace(/\s?i?b/,""),v=0;v<=h.suffixes.length;v++)if(b=Math.pow(h.base,v),S=Math.pow(h.base,v+1),f===null||f===0||f>=b&&f<S){E+=h.suffixes[v],b>0&&(f=f/b);break}return g=e._.numberToFormat(f,m,_),g+E},unformat:function(f){var m=e._.stringToNumber(f),_,g;if(m){for(_=c.suffixes.length-1;_>=0;_--){if(e._.includes(f,c.suffixes[_])){g=Math.pow(c.base,_);break}if(e._.includes(f,u.suffixes[_])){g=Math.pow(u.base,_);break}}m*=g||1}return m}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,d){var p=e.locales[e.options.currentLocale],f={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,_,g;for(u=u.replace(/\s?\$\s?/,""),m=e._.numberToFormat(c,u,d),c>=0?(f.before=f.before.replace(/[\-\(]/,""),f.after=f.after.replace(/[\-\)]/,"")):c<0&&!e._.includes(f.before,"-")&&!e._.includes(f.before,"(")&&(f.before="-"+f.before),g=0;g<f.before.length;g++)switch(_=f.before[g],_){case"$":m=e._.insert(m,p.currency.symbol,g);break;case" ":m=e._.insert(m," ",g+p.currency.symbol.length-1);break}for(g=f.after.length-1;g>=0;g--)switch(_=f.after[g],_){case"$":m=g===f.after.length-1?m+p.currency.symbol:e._.insert(m,p.currency.symbol,-(f.after.length-(1+g)));break;case" ":m=g===f.after.length-1?m+" ":e._.insert(m," ",-(f.after.length-(1+g)+p.currency.symbol.length-1));break}return m}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,u,d){var p,f=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",m=f.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),p=e._.numberToFormat(Number(m[0]),u,d),p+"e"+m[1]},unformat:function(c){var u=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),d=Number(u[0]),p=Number(u[1]);p=e._.includes(c,"e-")?p*=-1:p;function f(m,_,g,h){var E=e._.correctionFactor(m,_),v=m*E*(_*E)/(E*E);return v}return e._.reduce([d,Math.pow(10,p)],f,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,d){var p=e.locales[e.options.currentLocale],f,m=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),m+=p.ordinal(c),f=e._.numberToFormat(c,u,d),f+m}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,d){var p=e._.includes(u," %")?" ":"",f;return e.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),f=e._.numberToFormat(c,u,d),e._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"%"),f=f.join("")):f=f+p+"%",f},unformat:function(c){var u=e._.stringToNumber(c);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,d){var p=Math.floor(c/60/60),f=Math.floor((c-p*60*60)/60),m=Math.round(c-p*60*60-f*60);return p+":"+(f<10?"0"+f:f)+":"+(m<10?"0"+m:m)},unformat:function(c){var u=c.split(":"),d=0;return u.length===3?(d=d+Number(u[0])*60*60,d=d+Number(u[1])*60,d=d+Number(u[2])):u.length===2&&(d=d+Number(u[0])*60,d=d+Number(u[1])),Number(d)}})}(),e})})(Rx);var vue=Rx.exports;const Zo=jn(vue);function Sue(t){return Zo(t).format()}function yue(t){const e=t?Zo(t).format("$0,0.00"):"";return Ac(e,".00")}function Tue(t){const e=t?Zo(Number(t)/100).format("0.0%"):"";return Ac(e,".0")}function Cue(t){const e=t?Zo(t).format("0.00a"):"";return Ac(e,".00")}function yh(t){const e=t?Zo(t).format("0.0 b"):"";return Ac(e,".0")}function Ac(t,e=".00"){return t.includes(e)?t.replace(e,""):t}const Oue=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:yue,fData:yh,fNumber:Sue,fPercent:Tue,fShortenNumber:Cue},Symbol.toStringTag,{value:"Module"})),Nx=({fileRejections:t})=>t.length?N.jsx(X.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:e=>Ee(e.palette.error.main,.08),borderColor:e=>Ee(e.palette.error.main,.24)},children:t.map(({file:e,errors:n})=>{const{path:r,size:i}=Sh(e);return N.jsxs(X.Box,{sx:{my:1},children:[N.jsxs(X.Typography,{variant:"subtitle2",noWrap:!0,children:[r," - ",i?yh(i):""]}),n.map(a=>N.jsxs(X.Box,{component:"span",sx:{typography:"caption"},children:["- ",a.message]},a.code))]},r)})}):null,Rue=({thumbnail:t,files:e,onRemove:n,sx:r})=>e!=null&&e.length?N.jsx(iv,{initial:!1,children:e.map(i=>{const{key:a,name:o="",size:s=0}=Sh(i),l=typeof i=="string";return t?N.jsxs(X.Stack,{component:On.div,...La().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:c=>`solid 1px ${c.palette.divider}`,...r},children:[N.jsx(Ox,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),n&&N.jsx(X.IconButton,{size:"small",onClick:()=>n(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:c=>Ee(c.palette.common.white,.72),bgcolor:c=>Ee(c.palette.grey[900],.48),"&:hover":{bgcolor:c=>Ee(c.palette.grey[900],.72)}},children:N.jsx(Lt,{icon:"eva:close-fill",width:16})})]},a):N.jsxs(X.Stack,{component:On.div,...La().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:c=>`solid 1px ${c.palette.divider}`,...r},children:[N.jsx(Ox,{file:i}),N.jsxs(X.Stack,{flexGrow:1,sx:{minWidth:0},children:[N.jsx(X.Typography,{variant:"subtitle2",noWrap:!0,children:l?i:o}),N.jsx(X.Typography,{variant:"caption",sx:{color:"text.secondary"},children:l?"":yh(s)})]}),n&&N.jsx(X.IconButton,{edge:"end",size:"small",onClick:()=>n(i),children:N.jsx(Lt,{icon:"eva:close-fill"})})]},a)})}):null,Nue=({file:t})=>{if(!t)return null;const e=typeof t=="string"?t:t.preview;return N.jsx(X.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:N.jsx(uc,{alt:"file preview",src:e,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},Aue=qt("div")(({theme:t})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:t.spacing(5),borderRadius:t.shape.borderRadius,transition:t.transitions.create("padding"),backgroundColor:t.palette.background.neutral,border:`1px dashed ${Ee(t.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),xue=({header:t,description:e,sx:n,...r})=>N.jsxs(X.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...n},...r,children:[N.jsx(Yne,{sx:{width:220}}),N.jsxs("div",{children:[t||N.jsx(X.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),e||N.jsxs(X.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",N.jsx(X.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),Ax=({disabled:t,multiple:e=!1,error:n,helperText:r,file:i,onDelete:a,files:o,thumbnail:s,onUpload:l,onRemove:c,onRemoveAll:u,sx:d,dropZoneProps:p,placeholderProps:f,placeholderAlt:m,image:_,...g})=>{const{getRootProps:h,getInputProps:E,isDragActive:v,isDragReject:b,fileRejections:S}=Rc({multiple:e,disabled:t,...g}),C=!!i&&!e||_,y=o&&e&&o.length>0,T=b||!!n;return N.jsxs(X.Box,{sx:{width:1,position:"relative",...d},children:[N.jsxs(Aue,{...h(),sx:{...v&&{opacity:.72},...T&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...p},children:[N.jsx("input",{...E()}),m?N.jsx(X.Stack,{sx:{...C&&{opacity:0}},children:m}):N.jsx(xue,{sx:{...C&&{opacity:0}},header:f==null?void 0:f.title,description:f==null?void 0:f.description}),C&&N.jsx(Nue,{file:i||_||""})]}),r&&r,N.jsx(Nx,{fileRejections:S}),C&&a&&N.jsx(X.IconButton,{size:"small",onClick:a,sx:{top:16,right:16,zIndex:9,position:"absolute",color:x=>Ee(x.palette.common.white,.8),bgcolor:x=>Ee(x.palette.grey[900],.72),"&:hover":{bgcolor:x=>Ee(x.palette.grey[900],.48)}},children:N.jsx(Lt,{icon:"eva:close-fill",width:18})}),y&&N.jsxs(N.Fragment,{children:[N.jsx(X.Box,{sx:{my:3},children:N.jsx(Rue,{files:o,thumbnail:s,onRemove:c})}),N.jsxs(X.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[u&&N.jsx(X.Button,{color:"inherit",variant:"outlined",size:"small",onClick:u,children:"Remove all"}),l&&N.jsx(X.Button,{size:"small",variant:"contained",onClick:l,children:"Upload files"})]})]})]})},xx=({onFileCropped:t,aspect:e,size:{width:n,height:r},label:i,image:a="",uploading:o,file:s,...l})=>{const[c,u]=wd(),[d,p]=O.useState(a),f=m=>{m||p(a||""),t(m)};return N.jsxs(N.Fragment,{children:[N.jsxs(X.Stack,{position:"relative",width:1,borderRadius:1,overflow:"hidden",children:[o&&N.jsx(rc,{}),N.jsx(Ax,{...l,file:s,onDrop:m=>{if(m.length>0){u(),t(void 0);const _=new FileReader;_.addEventListener("load",()=>{var h;const g=((h=_.result)==null?void 0:h.toString())||"";p(g)}),_.readAsDataURL(m[0])}},image:a}),(s||a)&&N.jsx(X.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:N.jsx(X.IconButton,{color:"primary",onClick:u,children:N.jsx(Lt,{icon:"ic:round-crop"})})})]}),N.jsx(qA,{open:c,onClose:u,title:i,image:{width:n,height:r,aspect:e,imgSrc:d||a},onFileCropped:f})]})};function Iue(t,e){const{watch:n,setValue:r}=rt.useFormContext(),[i,a]=O.useState(e),o=n(t)||[];return{uploadFile:async p=>{if(!p){r(t,void 0),a(void 0);return}r(t,p),a(Object.assign(p,{preview:URL.createObjectURL(p)}))},uploadFiles:async p=>{r(t,[...o,...p.map(f=>Object.assign(f,{preview:URL.createObjectURL(f)}))])},handleDeleteFile:()=>{r(t,void 0),a(void 0)},handleRemoveAll:()=>{r(t,void 0)},handleRemove:p=>{const f=o.filter(m=>m!==p);r(t,f)},file:i}}const wue=({name:t,rules:e,helperText:n,aspect:r,label:i,size:a,image:o,onFileCropped:s,...l})=>{const{control:c}=rt.useFormContext(),{uploadFile:u,file:d}=Iue(t);return N.jsx(rt.Controller,{name:t,control:c,rules:e,render:({field:{value:p},fieldState:{error:f}})=>N.jsx(xx,{accept:{"image/*":[]},file:p?d:void 0,onFileCropped:m=>{u(m),s&&s(m)},error:!!f,disableMultiple:!0,helperText:(!!f||n)&&N.jsx(X.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:n}),aspect:r,label:i,size:a,image:o,...l})})},xc=(t,e=!0)=>{const{pathname:n}=Wn.useLocation(),r=t?!!Wn.matchPath({path:t,end:!0},n):!1,i=t?!!Wn.matchPath({path:t,end:!1},n):!1;return{active:e?i:r,isExternalLink:t.includes("http")}},Ic={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},wa={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},Due=qt(X.ListItemButton,{shouldForwardProp:t=>t!=="active"&&t!=="open"})(({active:t,disabled:e,open:n,depth:r,theme:i})=>{const a=i.palette.mode==="light",o=r!==1,s={color:i.palette.primary.main,backgroundColor:Ee(i.palette.primary.main,i.palette.action.selectedOpacity),...!a&&{color:i.palette.primary.light}},l={color:i.palette.text.primary,backgroundColor:"transparent"},c={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":c,...o&&{flexDirection:"row",padding:i.spacing(1)},...t&&{...s,"&:hover":{...s}},...o&&t&&{...l,"&:hover":{...l}},...n&&!t&&c,...e&&{"&.Mui-disabled":{opacity:.64}}}}),Mue=qt(X.ListItemIcon)({marginRight:0,marginBottom:4,width:wa.NAV_ITEM_MINI,height:wa.NAV_ITEM_MINI}),Lue=qt(X.Popover)(({theme:t})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:Number(t.shape.borderRadius)*1.5,...Nc({color:t.palette.background.default})}})),Ix=O.forwardRef(({item:t,depth:e,open:n,active:r,isExternalLink:i,...a},o)=>{const{title:s,path:l,icon:c,children:u,disabled:d,caption:p}=t,f=e!==1,m=N.jsxs(Due,{ref:o,open:n,depth:e,active:r,disabled:d,...a,children:[c&&N.jsx(Mue,{children:c}),N.jsx(X.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...r&&{fontWeight:"fontWeightMedium"},...f&&{fontSize:14,width:"auto",textAlign:"left"}}}}),p&&N.jsx(X.Tooltip,{title:p,arrow:!0,placement:"right",children:N.jsx(Lt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!u&&N.jsx(Lt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?N.jsx(X.Link,{href:l,target:"_blank",rel:"noopener",underline:"none",children:m}):N.jsx(X.Link,{component:Wn.Link,to:l,underline:"none",children:m}))()});Ix.displayName="NavItem";const Pue=({data:t,depth:e})=>N.jsx(N.Fragment,{children:t.map(n=>N.jsx(wx,{data:n,depth:e+1,hasChild:!!n.children},n.title+n.path))}),wx=({data:t,depth:e,hasChild:n})=>{const r=O.useRef(null),{pathname:i}=Wn.useLocation(),{active:a,isExternalLink:o}=xc(t.path),[s,l]=O.useState(!1);O.useEffect(()=>{s&&u()},[i]),O.useEffect(()=>{const d=Array.from(document.querySelectorAll(".MuiAppBar-root")),p=()=>{document.body.style.overflow="",document.body.style.padding="",d.forEach(f=>{f.style.padding=""})};p()},[s]);const c=()=>{l(!0)},u=()=>{l(!1)};return N.jsxs(N.Fragment,{children:[N.jsx(Ix,{ref:r,item:t,depth:e,open:s,active:a,isExternalLink:o,onMouseEnter:c,onMouseLeave:u}),n&&N.jsx(Lue,{open:s,anchorEl:r.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:c,onMouseLeave:u},children:N.jsx(Pue,{data:t.children,depth:e})})]})},kue=({items:t,isLastGroup:e})=>N.jsxs(N.Fragment,{children:[t.map(n=>N.jsx(wx,{data:n,depth:1,hasChild:!!n.children},n.title+n.path)),!e&&N.jsx(X.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),Fue=({data:t,sx:e,...n})=>N.jsx(X.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...e},...n,children:t.map((r,i)=>N.jsx(kue,{items:r.items,isLastGroup:i+1===t.length},r.subheader))}),Bue=O.memo(Fue),Uue=qt(X.ListItemButton,{shouldForwardProp:t=>t!=="active"&&t!=="caption"})(({active:t,disabled:e,depth:n,caption:r,theme:i})=>{const a=i.palette.mode==="light",o=n!==1,s={color:i.palette.primary.main,backgroundColor:Ee(i.palette.primary.main,i.palette.action.selectedOpacity),...!a&&{color:i.palette.primary.light}},l={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Ic.H_DASHBOARD_ITEM,...o&&{height:Ic.H_DASHBOARD_ITEM_SUB,...n>2&&{paddingLeft:i.spacing(n)},...r&&{height:Ic.H_DASHBOARD_ITEM}},...t&&{...s,"&:hover":{...s}},...o&&t&&{...l,"&:hover":{...l}},...e&&{"&.Mui-disabled":{opacity:.64}}}}),Dx=qt(X.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:wa.NAV_ITEM,height:wa.NAV_ITEM}),Gue=qt("span",{shouldForwardProp:t=>t!=="active"})(({active:t,theme:e})=>({width:4,height:4,borderRadius:"50%",backgroundColor:e.palette.text.disabled,transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter}),...t&&{transform:"scale(2)",backgroundColor:e.palette.primary.main}})),$ue=qt(X.ListSubheader)(({theme:t})=>({...t.typography.overline,fontSize:11,paddingTop:t.spacing(3),paddingBottom:t.spacing(1),color:t.palette.text.secondary})),que=({item:t,depth:e,open:n,active:r,isExternalLink:i,...a})=>{const{title:o,path:s,icon:l,info:c,children:u,disabled:d,caption:p}=t,f=e!==1,m=N.jsxs(Uue,{depth:e,active:r,disabled:d,caption:!!p,...a,children:[l&&N.jsx(Dx,{children:l}),f&&N.jsx(Dx,{children:N.jsx(Gue,{active:r&&f})}),N.jsx(X.ListItemText,{primary:o,secondary:p&&N.jsx(X.Tooltip,{title:p,placement:"top-start",children:N.jsx("span",{children:p})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:r?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),c&&N.jsx(X.Box,{component:"span",sx:{lineHeight:0},children:c}),!!u&&N.jsx(Lt,{width:16,icon:n?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?N.jsx(X.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):u?m:N.jsx(X.Link,{component:Wn.Link,to:s,underline:"none",children:m}))()},Yue=({data:t,depth:e})=>N.jsx(N.Fragment,{children:t.map(n=>N.jsx(Mx,{data:n,depth:e+1,hasChild:!!n.children},n.title+n.path))}),Mx=({data:t,depth:e,hasChild:n})=>{const{pathname:r}=Wn.useLocation(),{active:i,isExternalLink:a}=xc(t.path),[o,s]=O.useState(i);O.useEffect(()=>{i||c()},[r]);const l=()=>{s(!o)},c=()=>{s(!1)};return N.jsxs(N.Fragment,{children:[N.jsx(que,{item:t,depth:e,open:o,active:i,isExternalLink:a,onClick:l}),n&&N.jsx(X.Collapse,{in:o,unmountOnExit:!0,children:N.jsx(Yue,{data:t.children,depth:e})})]})},Vue=({data:t,sx:e,...n})=>N.jsx(X.Stack,{sx:e,...n,children:t.map(r=>{const i=r.subheader||r.items[0].title;return N.jsxs(X.List,{disablePadding:!0,sx:{px:2},children:[r.subheader&&N.jsx($ue,{disableSticky:!0,children:r.subheader}),r.items.map(a=>N.jsx(Mx,{data:a,depth:1,hasChild:!!a.children},a.title+a.path))]},i)})}),Hue=qt(X.ListItemButton,{shouldForwardProp:t=>t!=="active"&&t!=="open"})(({active:t,disabled:e,open:n,depth:r,theme:i})=>{const a=i.palette.mode==="light",o=r!==1,s={color:i.palette.primary.main,backgroundColor:Ee(i.palette.primary.main,i.palette.action.selectedOpacity),...!a&&{color:i.palette.primary.light}},l={color:i.palette.text.primary,backgroundColor:"transparent"},c={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Ic.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":c,...o&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...t&&{...s,"&:hover":{...s}},...o&&t&&{...l,"&:hover":{...l}},...n&&!t&&c,...e&&{"&.Mui-disabled":{opacity:.64}}}}),zue=qt(X.ListItemIcon)({marginRight:8,flexShrink:0,width:wa.NAV_ITEM_HORIZONTAL,height:wa.NAV_ITEM_HORIZONTAL}),Wue=qt(X.Popover)(({theme:t})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:t.spacing(1),marginTop:t.spacing(.5),boxShadow:t.customShadows.dropdown,borderRadius:Number(t.shape.borderRadius)*1.5,...Nc({color:t.palette.background.default})}})),Lx=O.forwardRef(({item:t,depth:e,open:n,active:r,isExternalLink:i,...a},o)=>{const{title:s,path:l,icon:c,info:u,children:d,disabled:p,caption:f}=t,m=e!==1,_=N.jsxs(Hue,{ref:o,open:n,depth:e,active:r,disabled:p,...a,children:[c&&N.jsx(zue,{children:c}),N.jsx(X.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:r?"subtitle2":"body2"}}),u&&N.jsx(X.Box,{component:"span",sx:{ml:1,lineHeight:0},children:u}),f&&N.jsx(X.Tooltip,{title:f,arrow:!0,children:N.jsx(X.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:N.jsx(Lt,{icon:"eva:info-outline",width:16})})}),!!d&&N.jsx(Lt,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?N.jsx(X.Link,{href:l,target:"_blank",rel:"noopener",underline:"none",children:_}):N.jsx(X.Link,{component:Wn.Link,to:l,underline:"none",children:_}))()});Lx.displayName="NavItem";const jue=({data:t,depth:e})=>N.jsx(N.Fragment,{children:t.map(n=>N.jsx(Px,{data:n,depth:e+1,hasChild:!!n.children},n.title+n.path))}),Px=({data:t,depth:e,hasChild:n})=>{const r=O.useRef(null),{pathname:i}=Wn.useLocation(),{active:a,isExternalLink:o}=xc(t.path),[s,l]=O.useState(!1);O.useEffect(()=>{s&&u()},[i]),O.useEffect(()=>{const d=Array.from(document.querySelectorAll(".MuiAppBar-root")),p=()=>{document.body.style.overflow="",document.body.style.padding="",d.forEach(f=>{f.style.padding=""})};p()},[s]);const c=()=>{l(!0)},u=()=>{l(!1)};return N.jsxs(N.Fragment,{children:[N.jsx(Lx,{ref:r,item:t,depth:e,open:s,active:a,isExternalLink:o,onMouseEnter:c,onMouseLeave:u}),n&&N.jsx(Wue,{open:s,anchorEl:r.current,anchorOrigin:e===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:e===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:c,onMouseLeave:u},children:N.jsx(jue,{data:t.children,depth:e})})]})},Kue=({items:t})=>N.jsx(N.Fragment,{children:t.map(e=>N.jsx(Px,{data:e,depth:1,hasChild:!!e.children},e.title+e.path))}),Que=({data:t,sx:e,...n})=>N.jsx(X.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...Tx,...e},...n,children:t.map(r=>N.jsx(Kue,{items:r.items},r.subheader))}),Xue=O.memo(Que),Zue=({file:t})=>{if(!t)return null;const e=typeof t=="string"?t:t.preview;return N.jsx(uc,{alt:"avatar",src:e,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},Jue=qt("div")(({theme:t})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${Ee(t.palette.grey[500],.32)}`})),ede=qt("div")(({theme:t})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:t.palette.text.disabled,backgroundColor:t.palette.background.neutral,transition:t.transitions.create("opacity",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter})})),tde=({error:t,file:e,disabled:n,helperText:r,sx:i,...a})=>{const{getRootProps:o,getInputProps:s,isDragActive:l,isDragReject:c,fileRejections:u}=Rc({multiple:!1,disabled:n,...a}),d=!!e,p=c||!!t;return N.jsxs(N.Fragment,{children:[N.jsxs(Jue,{...o(),sx:{...l&&{opacity:.72},...p&&{borderColor:"error.light",...d&&{bgcolor:"error.lighter"}},...n&&{opacity:.48,pointerEvents:"none"},...d&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[N.jsx("input",{...s()}),d&&N.jsx(Zue,{file:e}),N.jsxs(ede,{className:"placeholder",sx:{"&:hover":{opacity:.72},...d&&{zIndex:9,opacity:0,color:"common.white",bgcolor:f=>Ee(f.palette.grey[900],.64)},...p&&{color:"error.main",bgcolor:"error.lighter"}},children:[N.jsx(Lt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),N.jsx(X.Typography,{variant:"caption",children:e?"Update photo":"Upload photo"})]})]}),r&&r,N.jsx(Nx,{fileRejections:u})]})},nde=qt("div")(({theme:t})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:t.spacing(.5),color:t.palette.text.disabled,borderRadius:t.shape.borderRadius,border:`dashed 1px ${t.palette.divider}`,backgroundColor:Ee(t.palette.grey[500],.08),"&:hover":{opacity:.72}})),rde=({placeholderAlt:t,error:e,disabled:n,sx:r,...i})=>{const{getRootProps:a,getInputProps:o,isDragActive:s,isDragReject:l}=Rc({disabled:n,...i}),c=l||e;return N.jsxs(nde,{...a(),sx:{...s&&{opacity:.72},...c&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...n&&{opacity:.48,pointerEvents:"none"},...r},children:[N.jsx("input",{...o()}),t||N.jsx(Lt,{icon:"eva:cloud-upload-fill",width:28})]})},ide=()=>{const[t,e]=O.useState(!1),[n,r]=O.useState(document.activeElement);return O.useEffect(()=>{const i=o=>r(o.target),a=()=>r(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",a,!0),e(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",a)}},[]),{activeElement:n,listenersReady:t}};function ade(){const[t,e]=O.useState(null);return{copiedText:t,copy:async r=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch{return e(null),!1}}}}const ode=(t,e)=>xse(t,e),sde=t=>{const e=O.useRef();return ode(t,e.current)||(e.current=t),e.current},lde=(t,e)=>{O.useEffect(t,e.map(sde))},cde=()=>{const t=O.useRef(!0);return t.current?(t.current=!1,!0):t.current};function ude(t){const[e,n]=O.useState(t||"");return{currentTab:e,onChangeTab:(r,i)=>{n(i)},setCurrentTab:n}}const dde=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(t,e,n)=>{const r=`data:application/octet-stream;base64,${n}`,i=document.createElement("a"),a=`${t.replace(e,"")}.${e}`;i.href=r,i.download=a,i.click()}},Symbol.toStringTag,{value:"Module"}));function pde(t){return cf({},t)}var kx=1440,fde=2520,Th=43200,_de=86400;function mde(t,e,n){var r,i;be(2,arguments);var a=In(),o=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:a.locale)!==null&&r!==void 0?r:Kl;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=fa(t,e);if(isNaN(s))throw new RangeError("Invalid time value");var l=cf(pde(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:s}),c,u;s>0?(c=ve(e),u=ve(t)):(c=ve(t),u=ve(e));var d=TC(u,c),p=(_a(u)-_a(c))/1e3,f=Math.round((d-p)/60),m;if(f<2)return n!=null&&n.includeSeconds?d<5?o.formatDistance("lessThanXSeconds",5,l):d<10?o.formatDistance("lessThanXSeconds",10,l):d<20?o.formatDistance("lessThanXSeconds",20,l):d<40?o.formatDistance("halfAMinute",0,l):d<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):f===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",f,l);if(f<45)return o.formatDistance("xMinutes",f,l);if(f<90)return o.formatDistance("aboutXHours",1,l);if(f<kx){var _=Math.round(f/60);return o.formatDistance("aboutXHours",_,l)}else{if(f<fde)return o.formatDistance("xDays",1,l);if(f<Th){var g=Math.round(f/kx);return o.formatDistance("xDays",g,l)}else if(f<_de)return m=Math.round(f/Th),o.formatDistance("aboutXMonths",m,l)}if(m=tf(u,c),m<12){var h=Math.round(f/Th);return o.formatDistance("xMonths",h,l)}else{var E=m%12,v=Math.floor(m/12);return E<3?o.formatDistance("aboutXYears",v,l):E<9?o.formatDistance("overXYears",v,l):o.formatDistance("almostXYears",v+1,l)}}function gde(t,e){return be(1,arguments),mde(t,Date.now(),e)}function hde(t){be(1,arguments);var e=ve(t),n=e.getTime();return n}function Ede(t,e){const n=e||"dd/MM/yyyy";return t?sf(new Date(t),n):null}function bde(t,e){const n=e||"dd/MM/yyyy HH:mm:ss";return t?sf(new Date(t),n):null}function vde(t){return t?hde(new Date(t)):null}function Sde(t){return t?gde(new Date(t),{addSuffix:!0}):null}const yde=Object.freeze(Object.defineProperty({__proto__:null,fDate:Ede,fDateTime:bde,fTimestamp:vde,fToNow:Sde},Symbol.toStringTag,{value:"Module"}));function Tde(t){const e=t.match(/\/([^/]+)/);return e?e[0]:t}const Cde=Object.freeze(Object.defineProperty({__proto__:null,getRoot:Tde},Symbol.toStringTag,{value:"Module"}));function Ode(t,e,n="asc"){return t.slice().sort((r,i)=>{const a=r[e],o=i[e];return a<o?n==="asc"?-1:1:a>o?n==="asc"?1:-1:0})}function Rde(t,e,n){const r=[...n],i=r.splice(t,1)[0];return r.splice(e,0,i),r}const Nde=Object.freeze(Object.defineProperty({__proto__:null,sort:Ode,updatePosition:Rde},Symbol.toStringTag,{value:"Module"})),Ade=Object.freeze(Object.defineProperty({__proto__:null,cnpjIsValid:t=>{if(!t||(t=t.replace(/[^\d]+/g,""),t.length!==14)||t==="00000000000000"||t==="11111111111111"||t==="22222222222222"||t==="33333333333333"||t==="44444444444444"||t==="55555555555555"||t==="66666666666666"||t==="77777777777777"||t==="88888888888888"||t==="99999999999999")return!1;let e=t.length-2,n=t.substring(0,e);const r=t.substring(e);let i=0,a=e-7;for(let s=e;s>=1;s--)i+=parseInt(n.charAt(e-s))*a--,a<2&&(a=9);let o=i%11<2?0:11-i%11;if(o!==parseInt(r.charAt(0)))return!1;e+=1,n=t.substring(0,e),i=0,a=e-7;for(let s=e;s>=1;s--)i+=parseInt(n.charAt(e-s))*a--,a<2&&(a=9);return o=i%11<2?0:11-i%11,o===parseInt(r.charAt(1))},cpfIsValid:t=>{if(!t||(t=t==null?void 0:t.replace(/[^\d]+/g,""),t.length!==11||t==="00000000000"||t==="11111111111"||t==="22222222222"||t==="33333333333"||t==="44444444444"||t==="55555555555"||t==="66666666666"||t==="77777777777"||t==="88888888888"||t==="99999999999"))return!1;let e=0;for(let r=0;r<9;r++)e+=parseInt(t.charAt(r))*(10-r);let n=11-e%11;if((n===10||n===11)&&(n=0),n!==parseInt(t.charAt(9)))return!1;e=0;for(let r=0;r<10;r++)e+=parseInt(t.charAt(r))*(11-r);return n=11-e%11,(n===10||n===11)&&(n=0),n===parseInt(t.charAt(10))}},Symbol.toStringTag,{value:"Module"})),xde=t=>function(n){return N.jsx(O.Suspense,{fallback:N.jsx(rc,{}),children:N.jsx(t,{...n})})},Ide=Object.freeze(Object.defineProperty({__proto__:null,default:gL},Symbol.toStringTag,{value:"Module"}));ue.Autocomplete=kd,ue.AutocompleteField=jle,ue.Checkbox=Kle,ue.Codes=Zle,ue.ColorPickerField=Jle,ue.ColorPickerInput=EC,ue.Common=kne,ue.ConfirmDelete=Fne,ue.CustomAvatar=cO,ue.CustomAvatarGroup=uO,ue.DataGrid=Hne,ue.DatePicker=ece,ue.DateRangePicker=tce,ue.DateTimePicker=nce,ue.Delayed=zne,ue.DialogAnimate=hL,ue.Drawer=rre,ue.Editor=CA,ue.EditorField=rce,ue.FabButtonAnimate=av,ue.Field=JA,ue.FixedProgressBar=rc,ue.Form=ice,ue.IconButtonAnimate=ov,ue.Iconify=Lt,ue.Image=uc,ue.ImageCropModal=qA,ue.Label=YA,ue.MaskedInput=fh,ue.MaskedInputField=ace,ue.MaterialDesignContent=LS,ue.MenuPopover=Fle,ue.Modal=$le,ue.MotionContainer=pk,ue.MotionLazyContainer=uS,ue.MotionViewport=dk,ue.MultiCheckbox=Qle,ue.NavSectionHorizontal=Xue,ue.NavSectionMini=Bue,ue.NavSectionVertical=Vue,ue.PasswordField=oce,ue.Portal=qle,ue.RadioGroupField=sce,ue.Scrollbar=TO,ue.SearchInput=Yle,ue.SnackbarContent=dd,ue.SnackbarProvider=FS,ue.Steps=zle,ue.Switch=lce,ue.TRANSITION=Ih,ue.TabPanel=Wle,ue.TextAnimate=EL,ue.ThemeProvider=lO,ue.TimePicker=cce,ue.Transition=Qs,ue.Upload=Ax,ue.UploadAvatar=tde,ue.UploadBox=rde,ue.UploadWithCrop=xx,ue.UploadWithCropField=wue,ue.cssStyles=bue,ue.file=dde,ue.formatNumber=Oue,ue.formatTime=yde,ue.loadable=xde,ue.routes=Cde,ue.sort=Nde,ue.useActiveElement=ide,ue.useActiveLink=xc,ue.useCopyToClipboard=ade,ue.useDeepCompareEffect=lde,ue.useEventListener=ZA,ue.useIsMounting=cde,ue.useResponsive=cS,ue.useSnackbar=Vk,ue.useTabs=ude,ue.useToggle=wd,ue.validators=Ade,ue.varBgColor=nI,ue.varBgKenburns=rI,ue.varBgPan=iI,ue.varBounce=Jx,ue.varContainer=es,ue.varFade=La,ue.varFlip=Qx,ue.varHover=tI,ue.varPath=Wx,ue.varRotate=eI,ue.varScale=Zx,ue.varSlide=Xx,ue.varTranEnter=Ve,ue.varTranExit=je,ue.varTranHover=jx,ue.varZoom=Kx,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
3
  "private": false,
4
- "version": "1.0.59",
4
+ "version": "1.0.61",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",