PageSourceSearch

https://mobicity-dashboard.herokuapp.com/js/6716.b92196fa.bundle.js

js mobicity-dashboard.herokuapp.com collected 2026-10-03 14:52:08 UTC 47,166 bytes, 2 lines download raw bytes

1/*! For license information please see 6716.b92196fa.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunkmobicity_web=self.webpackChunkmobicity_web||[]).push([[6716],{82972(e,t,n){n.d(t,{A:()=>y});var r=n(96540),a=n(42438),i=n(95947),o=n(23411),s=n(6285),l=n(72627),c=n(13213);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function g(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function m(e,t,n){return t=d(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(u=[{key:"render",value:function(){return r.createElement(a.A,{backgroundImg:c,active:!0},r.createElement(o.A,{width:"691px",height:"478px",objectFit:"contain",borderRadius:"4px",bgColor:"#ffffff",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",top:"50%",left:"50%",transform:"translate(-50%, -50%)",position:"absolute",paddingRight:"21px",paddingLeft:"21px",align:"center"},r.createElement(s.A,{alt:"mobicity",bgImage:l,bgColor:"none",borderRadius:"0px",marginRight:"0px",width:"175px",height:"40px",position:"absolute",top:"22px",display:"flex",zIndex:"100"}),r.createElement(o.A,{width:"690px",height:"84px",position:"absolute",top:"0",zIndex:"99"},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"690",height:"84"},r.createElement("path",{fill:"#34373D",fillRule:"evenodd",d:"M686 75H353.385l.313.312-8.386 8.386-8.385-8.386.313-.312H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h682a4 4 0 0 1 4 4v67a4 4 0 0 1-4 4z"}))),r.createElement(i.A,{fontSize:"120px",color:"#e37676"},"404"),r.createElement(i.A,{fontSize:"30px"},"PÁGINA NÃO ENCONTRADA")))}}])&&p(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Component);const y=b},86844(e,t,n){var r,a,i;n.d(t,{A:()=>o});const o=n(22633).Ay.div(r||(a=["\n  border-radius: 1px;\n  object-fit: contain;\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"],i||(i=a.slice(0)),r=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}}))),function(e){var t=e.marginLeft;return t?"margin-left:"+t+"px;":""},function(e){var t=e.width;return t?"width:"+t+";":"width: 260px;"},function(e){var t=e.height;return t?"height:"+t+";":" height: 1px;"},function(e){var t=e.bgColor;return t?"background-color:"+t+";":"background-color: #e5e5e5;"},function(e){var t=e.marginTop;return t?"margin-top:"+t+";":""},function(e){var t=e.marginBottom;return t?"margin-bottom:"+t+";":""},function(e){var t=e.marginRight;return t?"margin-right:"+t+";":""},function(e){var t=e.flexFlow;return t?"flex-flow:"+t+";":""},function(e){var t=e.position;return t?"position:"+t+";":""},function(e){var t=e.overflow;return t?"overflow:"+t+";":""},function(e){var t=e.float;return t?"float:"+t+";":""})},59102(e,t,n){var r,a,i;n.d(t,{A:()=>
2o});const o=n(22633).Ay.div(r||(a=["\n  ","\n  ","\n  float: left;\n  ","\n  border-radius: 100%;\n  cursor: pointer;\n  ","\n  ","\n"],i||(i=a.slice(0)),r=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}}))),function(e){var t=e.width;return t?"width:"+t+";":"width: 7px;"},function(e){var t=e.height;return t?"height:"+t+";":"height: 7px;"},function(e){var t=e.marginRight;return t?"margin-right:"+t+";":"margin-right: 9.1px;"},function(e){var t=e.marginTop;return t?"margin-top:"+t+";":""},function(e){var t=e.bgColor;return t?"background-color:"+t+";":"background-color: #d8d8d8;"})},77948(e,t,n){var r;n.d(t,{A:()=>a});const a=n(22633).Ay.div(r||(i=["\n  width: 130px;\n  height: 14px;\n  mix-blend-mode: undefined;\n  font-family: Open Sans, arial, sans-serif;\n  font-size: 11px;\n  font-weight: bold;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  text-align: left;\n  color: #84848c;\n  display: flex;\n  flex-direction: row;\n  white-space: nowrap;\n  text-transform: uppercase;\n"],o||(o=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));var i,o},9407(e,t,n){n.d(t,{A:()=>r});const r=function(e,t){var n=e.userAccess,r=e.permittedRead,a=e.permittedWrite;return 30==n||-1!=(a||[]).findIndex(function(e){return e==t})?"write":-1!=(r||[]).findIndex(function(e){return e==t})?"read":void 0}},36716(e,t,n){n.r(t),n.d(t,{default:()=>ue});var r=n(96540),a=n(44653),i=n(50300),o=n(69107),s=n(77984),l=n(91706),c=n(23495),u=n(78687),p=n(84124),g=n(10936),m=n(27426),f=n(95947),d=n(59102),h=n(86844),b=n(77948),y=n(82972),v=n(45504),x=n(7301),O=n(7269),w=n(23411);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function S(e,t,n){return t=A(t),function(e,t){if(t&&("object"==E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,U()?Reflect.construct(t,n||[],A(e).constructor):t.apply(e,n))}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function k(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}var P=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return k(e=S(this,t,[].concat(r)),"handleOpenUser",function(){e.props.permittedProfile&&e.props.history.push("/profile?user=".concat(e.props.topUsers._id))}),k(e,"handleOpenOwner",function(){e.props.permittedProfile&&e.props.history.push("/profile?user=".concat(e.props.topUsersByRide._id))}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(t,e),n=t,(a=[{key:"render",value:function(){var e=this;return r.createElement("div",null,this.props.topUsersByRide&&r.createElement("div",{style:{marginLeft:"10px",marginRight:"10px",marginTop:"15p
2x",marginBottom:"28px",height:"20px",width:"100%"}},r.createElement("div",null,r.createElement(w.A,{width:"22px",height:"16px",fontFamily:"Open Sans, arial, sans-serif",fontSize:"10px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#616670",bgColor:"#f1f1f1",float:"left",borderRadius:"3px"},this.props.counter,"°"),r.createElement(f.A,{float:"left",color:this.props.permittedProfile?"#36b8e8":"",cursor:this.props.permittedProfile?"pointer":"default",fontWeight:"normal",textDecoration:this.props.permittedProfile?"underline":"",marginLeft:14,onClick:function(){return e.handleOpenOwner(e.props.index)}},this.props.topUsersByRide?this.props.topUsersByRide.name:void 0),r.createElement(w.A,{width:"46px",height:"19px",marginRight:"20px",borderRadius:"3px",float:"right",fontFamily:"Open Sans, arial, sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#ffffff",bgColor:"#65cfd2"},this.props.topUsersByRide?this.props.topUsersByRide.totalRides:void 0))),this.props.topUsers&&r.createElement("div",{style:{marginLeft:"10px",marginRight:"10px",marginTop:"15px",marginBottom:"28px",height:"20px",width:"100%"}},r.createElement("div",null,r.createElement(w.A,{width:"22px",height:"16px",fontFamily:"Open Sans, arial, sans-serif",fontSize:"10px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#616670",bgColor:"#f1f1f1",float:"left",borderRadius:"3px"},this.props.counter,"°"),r.createElement(f.A,{float:"left",color:this.props.permittedProfile?"#36b8e8":"",cursor:this.props.permittedProfile?"pointer":"default",fontWeight:"normal",textDecoration:this.props.permittedProfile?"underline":"",marginLeft:14,onClick:function(){return e.handleOpenUser(e.props.index)}},this.props.topUsers?this.props.topUsers.name:void 0),r.createElement(w.A,{width:"46px",height:"19px",marginRight:"20px",borderRadius:"3px",float:"right",fontFamily:"Open Sans, arial, sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#ffffff",bgColor:"#65cfd2"},this.props.topUsers?this.props.topUsers.count:void 0))),this.props.originRank&&r.createElement("div",{style:{marginLeft:"10px",marginRight:"10px",marginTop:"15px",marginBottom:"28px",height:"20px",width:"100%"}},r.createElement("div",null,r.createElement(w.A,{width:"22px",height:"16px",fontFamily:"Open Sans, arial, sans-serif",fontSize:"10px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#616670",bgColor:"#f1f1f1",float:"left",borderRadius:"3px"},this.props.counter,"°"),r.createElement(f.A,{width:"280px",float:"left",fontWeight:"normal",marginLeft:14,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},this.props.originRank?this.props.originRank.origin:void 0),r.createElement(w.A,{width:"46px",height:"19px",marginRight:"20px",borderRadius:"3px",float:"right",fontFamily:"Open Sans, arial, sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#ffffff",bgColor:"#b86ed6"},this.props.originRank?this.props.originRank.count:void 0))),this.props.destinationRank&&r.createElement("div",{style:{marginLeft:"10px",marginRight:"10px",marginTop:"15px",marginBottom:"28px",height:"20px",width:"100%"}},r.createElement("div",null,r.createElement(w.A,{width:"22px",height:"16px",fontFamily:"Open Sans, arial, sans-serif",fontSize:"10px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#616670",bgColor:"#f1f1f1",float:"left",borderRadius:"3px"},this.props.counter,"°"),r.createElement(f.A,{width:"280px",float:"left",fontWeight:"normal",marginLeft:14,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},this.props.destinationRank?this.props.destinationRank.destination:void 0),r.createElement(w.A,{width:"46px",height:"19px",marginRight:"20px",borderRadius:"3px",float:"right",fontFamily:"Open Sans, arial, sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal",fontStretch:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"center",color:"#ffffff",bgColor:"#75c181"},this.props.destinationRank?this.props.destinationRank.count:void 0))),this.props.usersByGroup&&r.createElement("div",{style:{height:"93px",width:"100%",marginBottom:"26px",marginLeft:"10px",marginRight:"10px"}},r.createElement(w.A,k(k(k(k(k(k(k(k(k(k({width:"intrinsic"},"width","fit-content"),"paddingLeft","13px"),"paddingRight","13px"),"paddingTop","3px"),"marginTop","26px"),"height","23px"),"borderRadius","33.5px"),"fontWeight","bold"),"color","#84848C"),"bgColor","#f1f1f1"),this.props.usersByGroup.name),r.createElement(f.A,{width:"100%",float:"left",fontWeight:"normal",fontSize:"18px",marginTop:10,color:"#fec261"},this.props.inTheApp?this.props.inTheApp:"Sem"," Usuários"),r.createElement(f.A,{width:"280px",float:"left",fontSize:"11px",color:"#b0b2b4"},this.props.usersTotal?this.props.usersTotal:"SEM"," USUÁRIOS CADASTRADOS"),r.createElement(f.A,{float:"right",fontWeight:"normal",fontSize:"18px",marginTop:-10,marginRight:10,color:"#fec261"},this.props.percentage?this.props.percentage.toFixed(0):0,"%"),r.createElement("div",{style:{marginRight:"10px"}},r.createElement(g.N1,{percent:this.props.percentage?this.props.percentage:0,trailWidth:"3",trailColor:"#f1f1f1",strokeWidth:"3",strokeColor:"#fec261"}))))}}])&&R(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(r.Component);const N=P;var T=n(28191),V=n(95093),B=n.n(V),j=n(23537),_=n(54472),M=n.n(_),L=n(44303),I=n(53110),G=n(56347),z=n(83766),W=n(9407),H=n(80335),Y=n(42097),F=n(70240),K=n(77331);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Q(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return q(c,"_invoke",function(n,r,a){var i,s,l,c=0,u=a||[],p=!1,g={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return i=t,s=0,l=e,g.n=n,o}};function m(n,r){for(s=n,l=r,t=0;!p&&c&&!a&&t<u.length;t++){var a,i=u[t],m=g.p,f=i[2];n>3?(a=f===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=m&&((a=n<2&&m<i[1])?(s=0,g.v=r,g.n=i[1]):m<f&&(a=n<3||i[0]>r||r>f)&&(i[4]=n,i[5]=r,g.n=f,s=0))}if(a||n>1)return o;throw p=!0,r}return function(a,u,f){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&m(u,f),s=u,l=f;(t=s<2?e:l)||!p;){i||(s?s<3?(s>1&&(g.n=-1),m(s,l)):g.n=l:g.v=l);try{if(c=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(p=g.n<0)?l:n.call(r,g))!==o)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:p}}}(n,a,i),!0),c}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(q(t={},r,function(){return this}),t),p=c.prototype=s.prototype=Object.create(u);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,q(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,q(p,"constructor",c),q(c,"constructor",l),l.displayName="GeneratorFunction",q(c,a,"GeneratorFunction"),q(p),q(p,a,"Generator"),q(p,r,function(){return this}),q(p,"toString",function(){return"[object Generator]"}),(Q=function(){return{w:i,m:g}})()}function q(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}q=function(e,t,n,r){function i(t,n){q(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},q(e,t,n,r)}function Z(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function $(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Z(i,r,a,o,s,"next",e)}function s(e){Z(i,r,a,o,s,"throw",e)}o(void 0)})}}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ie(r.key),r)}}function ee(e,t,n){return t=ne(t),function(e,t){if(t&&("object"==J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,te()?Reflect.construct(t,n||[],ne(e).constructor):t.apply(e,n))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(te=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function ae(e,t,n){return(t=ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e){var t=function(e){if("object"!=J(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}var oe=B()().startOf("month").format(),se=B()().endOf("month").format(),le=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return ae(e=ee(this,t,[].concat(r)),"state",{timeline:[],startDate:"&begDate=".concat(oe),endDate:"&endDate=".concat(se),startDateLabel:oe,endDateLabel:se,startDateMonth:oe,endDateMonth:se,startMonth:{value:0,label:B()().format("MMMM/YYYY").charAt(0).toUpperCase()+B()().format("MMMM/YYYY").slice(1)},topUsers:[],topUsersByRide:[],usersByGroup:[],destinationRank:[],originRank:[],pageNumberUsers:1,pageNumberOwners:1,pageNumberOrigin:1,pageNumberDestination:1,minValueUsers:0,maxValueUsers:4,minValueOrigin:0,maxValueOrigin:4,minValueDestination:0,maxValueDestination:4,minValueTotalUsers:0,maxValueTotalUsers:3,minValueOwners:0,maxValueOwners:4,selectedGroupPage:0,source:I.qm.source()}),ae(e,"sleep",function(e){return new Promise(function(t){return setTimeout(t,e)})}),ae(e,"setStateAsync",function(t){return new Promise(function(n){return e.setState(t,n)})}),ae(e,"getTopUsers",$(Q().m(function t(){var n,r,a,i,o;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.props.selectedCompany,a=null!==(n=null==r?void 0:r._id)&&void 0!==n?n:r,t.n=1,e.setStateAsync({loadingTopUsers:!0});case 1:return t.p=1,t.n=2,(0,L.l5C)(a,e.state.startDate,e.state.source.token);case 2:i=t.v,t.n=5;break;case 3:if(t.p=3,!(o=t.v).__CANCEL__){t.n=4;break}return t.a(2);case 4:return t.a(2,e.setState({errorMessage:{subtitle:(((o.response||{}).data||{}).data||{}).description},loadingTopUsers:!1}));case 5:return t.n=6,e.setStateAsync({topUsers:i.data.topUsers,loadingTopUsers:!1});case 6:return t.a(2)}},t,null,[[1,3]])}
2))),ae(e,"getUsersByGroups",$(Q().m(function t(){var n,r,a,i,o,s,l,c,u,p,g,m,f;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.props.selectedCompany,a=null!==(n=null==r?void 0:r._id)&&void 0!==n?n:r,t.n=1,e.setStateAsync({loadingUsersByGroups:!0});case 1:return i=e.state.selectedGroupPage,t.p=2,t.n=3,(0,L.mzL)(a,e.state.source.token,4*i,4);case 3:o=t.v,t.n=6;break;case 4:if(t.p=4,!(f=t.v).__CANCEL__){t.n=5;break}return t.a(2);case 5:return t.a(2,e.setState({errorMessage:{subtitle:(((f.response||{}).data||{}).data||{}).description},loadingUsersByGroups:!1}));case 6:for(s=o.totalCompanyUsers,l=o.totalInTheApp,c=o.usersByGroup,u=o.percentage,p=o.totalGroupsPage,g=[],m=0;m<p;m++)g.push(m);return t.n=7,e.setStateAsync({usersByGroup:c,totalCompanyUsers:s,totalInTheApp:l,loadingUsersByGroups:!1,totalGroupsPage:p,totalOvalItems:g,percentage:u});case 7:return t.a(2)}},t,null,[[2,4]])}))),ae(e,"getTimeline",$(Q().m(function t(){var n,r,a,i,o,s,l,c;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.props.selectedCompany,a=null!==(n=null==r?void 0:r._id)&&void 0!==n?n:r,t.n=1,e.setStateAsync({loadingTimeline:!0});case 1:return t.p=1,t.n=2,(0,L.RoG)(a,e.state.startDate,e.state.endDate,e.state.source.token);case 2:i=t.v,t.n=5;break;case 3:if(t.p=3,!(c=t.v).__CANCEL__){t.n=4;break}return t.a(2);case 4:return t.a(2,e.setState({errorMessage:{subtitle:(((c.response||{}).data||{}).data||{}).description},loadingTimeline:!1}));case 5:if(!i.data.reportIsBeingProcessed){t.n=9;break}return t.n=6,e.sleep(2e3);case 6:return t.p=6,t.n=7,e.getTimeline();case 7:return t.a(2,t.v);case 8:t.p=8,t.v;case 9:for(o=[],s=0;s<i.data.timeline.length;s++)l=B()(i.data.timeline[s].date).format("MM/DD/YY"),o.push({date:l,total:i.data.timeline[s].total});return t.n=10,e.setStateAsync({timeline:o,loadingTimeline:!1,updatingTimelineReport:!1});case 10:return t.a(2)}},t,null,[[6,8],[1,3]])}))),ae(e,"getTopUsersByRide",$(Q().m(function t(){var n,r,a,i,o,s;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.props.selectedCompany,a=null!==(n=null==r?void 0:r._id)&&void 0!==n?n:r,t.n=1,e.setStateAsync({loadingUsersByRide:!0});case 1:return t.p=1,t.n=2,(0,L.$VT)(a,e.state.startDate,e.state.source.token);case 2:i=t.v,t.n=5;break;case 3:if(t.p=3,!(s=t.v).__CANCEL__){t.n=4;break}return t.a(2);case 4:return t.a(2,e.setState({errorMessage:{subtitle:(((s.response||{}).data||{}).data||{}).description},loadingUsersByRide:!1}));case 5:return o=i.data.topUsersByRide.sort(function(e,t){return e.totalRides<t.totalRides}),t.n=6,e.setStateAsync({topUsersByRide:o,loadingUsersByRide:!1});case 6:return t.a(2)}},t,null,[[1,3]])}))),ae(e,"getOriginRank",$(Q().m(function t(){var n,r,a,i,o;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.props.selectedCompany,a=null!==(n=null==r?void 0:r._id)&&void 0!==n?n:r,t.n=1,e.setStateAsync({loadingOriginRank:!0});case 1:return t.p=1,t.n=2,(0,L.HeF)(a,e.state.startDate,e.state.source.token);case 2:i=t.v,t.n=5;break;case 3:if(t.p=3,!(o=t.v).__CANCEL__){t.n=4;break}return t.a(2);case 4:return t.a(2,e.setState({errorMessage:{subtitle:(((o.response||{}).data||{}).data||{}).description},loadingOriginRank:!1}));case 5:return t.n=6,e.setStateAsync({originRank:i.data.originRank,loadingOriginRank:!1});case 6:return t.a(2)}},t,null,[[1,3]])}))),ae(e,"getDestinationRank",$(Q().m(function t(){var n,r,a,i,o;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.props.selectedCompany,a=null!==(n=null==r?void 0:r._id)&&void 0!==n?n:r,t.n=1,e.setStateAsync({loadingDestinationRank:!0});case 1:return t.p=1,t.n=2,(0,L.pD0)(a,e.state.startDate,e.state.source.token);case 2:i=t.v,t.n=5;break;case 3:if(t.p=3,!(o=t.v).__CANCEL__){t.n=4;break}return t.a(2);case 4:return t.a(2,e.setState({errorMessage:{subtitle:(((o.response||{}).data||{}).data||{}).description},loadingDestinationRank:!1}));case 5:return t.n=6,e.setStateAsync({destinationRank:i.data.destinationRank,loadingDestinationRank:!1});case 6:return t.a(2)}},t,null,[[1,3]])}))),ae(e,"componentDidMount",$(Q().m(function t(){var n,r,a,i,o,s,l;return Q().w(function(t){for(;;)switch(t.n){case 0:return document.body.style.overflowY="scroll",n=e.props,r=n.accessRead,a=n.accessWrite,i=n.user,n.selectedCompany,o={userAccess:i.access,permittedRead:r,permittedWrite:a},s=(0,W.A)(o,"usage"),l=null!=s,t.n=1,e.setStateAsync({permittedPage:l});case 1:l&&e.setData();case 2:return t.a(2)}},t)}))),ae(e,"setData",function(){document.body.style.overflowY="scroll";var t=e.props.selectedCompany,n=!1,r=!1,a=(M().determine().name(),e.state);a.totals,a.dayResult;for(var i=new Date(t.createdAt),o=B()(),s=[],l=B()(i);o>=l;)s.push(o.format("MMMM/YYYY").charAt(0).toUpperCase()+o.format("MMMM/YYYY").slice(1)),o.subtract(1,"month");var c=[];
2if((e.state.monthObj=[]||0)&&Object.keys(s).forEach(function(e){c.push({value:e,label:s[e]})}),e.props.accessWrite&&e.props.accessWrite.length>0)for(var u=0;u<e.props.accessWrite.length;u++)"usage"==e.props.accessWrite[u]&&(n=!0);if(e.props.accessRead&&e.props.accessRead.length>0)for(u=0;u<e.props.accessRead.length;u++)"profile"==e.props.accessRead[u]&&(r=!0),"usage"==e.props.accessRead[u]&&(n=!0);e.setState({permittedWrite:n,permittedProfile:r,monthObj:c,loading:!0}),e.getTopUsers(),e.getTimeline(),e.getTopUsersByRide(),e.getOriginRank(),e.getDestinationRank(),e.getUsersByGroups()}),ae(e,"handleSortDateStart",function(t){"Invalid Date"!=t&&e.setState({startDate:"&begDate=".concat(t),startDateLabel:t,loadingGraph:!0},function(){e.getTimeline(),e.setState({loadingGraph:!1})})}),ae(e,"handleSortDateEnd",function(t){"Invalid Date"!=t&&e.setState({endDate:"&endDate=".concat(t),endDateLabel:t},function(){e.getTimeline(),e.setState({loadingGraph:!1})})}),ae(e,"handleChangePageUp",function(t){var n={};"Owners"==t&&((e.state.pageNumberOwners<3||n.pageNumberOwners<3)&&(n.pageNumberOwners=e.state.pageNumberOwners+1),1==n.pageNumberOwners?(n.minValueOwners=0,n.maxValueOwners=4):2==n.pageNumberOwners?(n.minValueOwners=5,n.maxValueOwners=9):3==n.pageNumberOwners&&(n.minValueOwners=10,n.maxValueOwners=14)),"Users"==t&&((e.state.pageNumberUsers<3||n.pageNumberUsers<3)&&(n.pageNumberUsers=e.state.pageNumberUsers+1),1==n.pageNumberUsers?(n.minValueUsers=0,n.maxValueUsers=4):2==n.pageNumberUsers?(n.minValueUsers=5,n.maxValueUsers=9):3==n.pageNumberUsers&&(n.minValueUsers=10,n.maxValueUsers=14)),"Origin"==t&&((e.state.pageNumberOrigin<3||n.pageNumberOrigin<3)&&(n.pageNumberOrigin=e.state.pageNumberOrigin+1),1==n.pageNumberOrigin?(n.minValueOrigin=0,n.maxValueOrigin=4):2==n.pageNumberOrigin?(n.minValueOrigin=5,n.maxValueOrigin=9):3==n.pageNumberOrigin&&(n.minValueOrigin=10,n.maxValueOrigin=14)),"Destination"==t&&((e.state.pageNumberDestination<3||n.pageNumberDestination<3)&&(n.pageNumberDestination=e.state.pageNumberDestination+1),1==n.pageNumberDestination?(n.minValueDestination=0,n.maxValueDestination=4):2==n.pageNumberDestination?(n.minValueDestination=5,n.maxValueDestination=9):3==n.pageNumberDestination&&(n.minValueDestination=10,n.maxValueDestination=14)),"TotalUsers"==t&&e.state.selectedGroupPage<e.state.totalGroupsPage&&e.changePage(e.state.selectedGroupPage+1),e.setState(n)}),ae(e,"handleChangePageDown",function(t){var n={};"Owners"==t&&((e.state.pageNumberOwners>1||n.pageNumberOwners>1)&&(n.pageNumberOwners=e.state.pageNumberOwners-1),1==n.pageNumberOwners?(n.minValueOwners=0,n.maxValueOwners=4):2==n.pageNumberOwners?(n.minValueOwners=5,n.maxValueOwners=9):3==n.pageNumberOwners&&(n.minValueOwners=10,n.maxValueOwners=14)),"Users"==t&&((e.state.pageNumberUsers>1||n.pageNumberUsers>1)&&(n.pageNumberUsers=e.state.pageNumberUsers-1),1==n.pageNumberUsers?(n.minValueUsers=0,n.maxValueUsers=4):2==n.pageNumberUsers?(n.minValueUsers=5,n.maxValueUsers=9):3==n.pageNumberUsers&&(n.minValueUsers=10,n.maxValueUsers=14)),"Origin"==t&&((e.state.pageNumberOrigin>1||n.pageNumberOrigin>1)&&(n.pageNumberOrigin=e.state.pageNumberOrigin-1),1==n.pageNumberOrigin?(n.minValueOrigin=0,n.maxValueOrigin=4):2==n.pageNumberOrigin?(n.minValueOrigin=5,n.maxValueOrigin=9):3==n.pageNumberOrigin&&(n.minValueOrigin=10,n.maxValueOrigin=14)),"Destination"==t&&((e.state.pageNumberDestination>1||n.pageNumberDestination>1)&&(n.pageNumberDestination=e.state.pageNumberDestination-1),1==n.pageNumberDestination?(n.minValueDestination=0,n.maxValueDestination=4):2==n.pageNumberDestination?(n.minValueDestination=4,n.maxValueDestination=8):3==n.pageNumberDestination&&(n.minValueDestination=9,n.maxValueDestination=13)),"TotalUsers"==t&&e.state.selectedGroupPage>0&&e.changePage(e.state.selectedGroupPage-1),e.setState(n)}),ae(e,"changePage",function(){var t=$(Q().m(function t(n){return Q().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.setStateAsync({selectedGroupPage:n});case 1:e.getUsersByGroups();case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),ae(e,"changePageOne",function(t){var n={};"Owners"==t&&(n.pageNumberOwners=1,n.minValueOwners=0,n.maxValueOwners=4),"Users"==t&&(n.pageNumberUsers=1,n.minValueUsers=0,n.maxValueUsers=4),"Origin"==t&&(n.pageNumberOrigin=1,n.minValueOrigin=0,n.maxValueOrigin=4),"Destination"==t&&(n.pageNumberDestination=1,n.minValueDestination=0,n.maxValueDestination=4),e.setState(n)}),ae(e,"changePageTwo",function(t){var n={};"Owners"==t&&(n.pageNumberOwners=2,n.minValueOwners=5,n.maxValueOwners=9),"Users"==t&&(n.pageNumberUsers=2,n.minValueUsers=5,n.maxValueUsers=9),"Origin"==t&&(n.pageNumberOrigin=2,n.minValueOrigin=5,n.maxValueOrigin=9),"Destination"==t&&(n.pageNumberDestination=2,n.minValueDestination=5,n.maxValueDestination=9),e.setState(n)}),ae(e,"changePageThree",function(t){var n={};"Owners"==t&&(n.pageNumberOwners=3,n.minValueOwners=10,n.maxValueOwners=14),"Users"==t&&(n.pageNumberUsers=3,n.minValueUsers=10,n.maxValueUsers=14),"Origin"==t&&(n.pageNumberOrigin=3,n.minValueOrigin=10,n.maxValueOrigin=14),"Destination"==t&&(n.pageNumberDestination=3,n.minValueDestination=10,n.maxValueDestination=14),e.setState(n)}),ae(e,"handleStartDate",function(t){for(var n=t.label.split("/").map(function(e){return{value:e}}),r=0;r<H.USR.length;r++)if(H.USR[r].name==n[0].value)var a="&begDate=".concat(B()(H.USR[r].code+"/01/"+n[1].value).format()),i=B()(H.USR[r].code+"/01/"+n[1].value).format(),o="&endDate=".concat(B()(H.USR[r].code+"/01/"+n[1].value).endOf("month").format()),s=B()(H.USR[r].code+"/01/"+n[1].value).endOf("month").format(),l={value:r,label:t.label};e.setState({startDate:a,startMonth:l,startDateLabel:i,startDateMonth:i,endDate:o,endDateLabel:s,endDateMonth:s},function(){e.setData()})}),ae(e,"handleUpdateMonthReport",$(Q().m(function t(){var n,r,a,i,o,s,l;return Q().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=e.state,a=r.startDateLabel,i=r.source,o=e.props.selectedCompany,s=null!==(n=null==o?void 0:o._id)&&void 0!==n?n:o,t.n=1,e.setStateAsync({updatingTimelineReport:!0});case 1:return l="startDate=".concat(a,"&company=").concat(s),t.p=2,t.n=3,(0,L.zZO)(l,i.token);case 3:t.n=5;break;case 4:t.p=4,t.v,e.setState({updatingTimelineReport:!1});case 5:e.getTimeline();case 6:return t.a(2)}},t,null,[[2,4]])}))),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(t,e),n=t,(w=[{key:"componentDidUpdate",value:function(e){var t=e.selectedCompany,n=e.refreshCounter,r=e.accessWrite,a=this.props,i=a.selectedCompany,o=a.refreshCounter,s=a.accessWrite,l=(t||{})._id||t,c=(i||{})._id||i,u=t.createdAt,p=null==i?void 0:i.createdAt;n==o&&l==c&&u==p&&JSON.stringify(r)==JSON.stringify(s)||this.setData()}},{key:"componentWillUnmount",value:function(){this.state.source.cancel()}},{key:"render",value:function(){var e,t=this,n=this.props,w=n.selectedCompany,E=n.user;return null==w||w._id,this.state.permittedPage?(document.title="Relatório de Usabilidade",r.createElement("div",null,r.createElement(z.mc,null,r.createElement(z.iK.Container,null,r.createElement(z.I3,{display:"flex",flexDirection:"column"},r.createElement(z.iK.Title,null,"Relatório de Usabilidade"),30==(null==E?void 0:E.access)&&r.createElement(b.A,null,"VOCÊ ESTÁ ACESSANDO COMO ",null!==(e=null==w?void 0:w.name)&&void 0!==e?e:"Carregando...")),r.createElement("div",{style:{display:"flex",flexDirection:"row",marginRight:"15px"}},30==(null==E?void 0:E.access)&&r.createElement(Y.A,{onClick:this.handleUpdateMonthReport,title:"Atualizar relatório",loading:this.state.updatingTimelineReport}),r.createElement("div",{style:{flexDirection:"row",marginRight:"15px",width:"200px",float:"right"}},r.createElement(O.Ay,{options:this.state.monthObj,value:this.state.startMonth,onChange:this.handleStartDate,placeholder:"Selecione",styles:H._Ij})))),r.createElement(z.eB,{width:"43%",height:"380px",float:"left",title:"Usuários que mais criaram viagens",paddingLeft:!1,borderBottom:"none",headerMarginBottom:"0px",headerPaddingBottom:"0px"},this.state.loadingUsersByRide?r.createElement(v.A,{height:"360px"}):this.state.topUsersByRide.length>0?r.createElement("div",null,r.createElement(h.A,{marginRight:this.state.topUsersByRide&&this.state.topUsersByRide.length>5?"99px":"0px"}),this.state.topUsersByRide&&this.state.topUsersByRide.length>5&&r.createElement("div",null,r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(-180deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",marginTop:-29,onClick:function(){return t.handleChangePageDown("Owners")}}),r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(0deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",transform:"rotate(-180deg)",marginTop:-29,marginRight:-1,onClick:function(){return t.handleChangePageUp("Owners")}})),r.createElement("div",{style:{marginTop:"18px",marginBottom:"20px"}},r.createElement(f.A,{color:"#b0b2b4",marginLeft:10,fontSize:"10px"},"NOME"),r.createElement(f.A,{color:"#b0b2b4",float:"right",marginRight:10,fontSize:"10px"},"ACESSOS")),this.state.topUsersByRide&&this.state.topUsersByRide.map(function(e,t){if(t>=this.state.minValueOwners&&t<=this.state.maxValueOwners)return r.createElement(N,{key:t,index:t,history:this.props.history,topUsersByRide:e,counter:t+1,permittedProfile:this.state.permittedProfile})}.bind(this)),r.createElement("div",{style:{width:"49px",marginLeft:"46%",height:"7px",marginTop:"-15px",marginBottom:"20px"}},this.state.topUsersByRide.length>5&&r.createElement(d.A,{bgColor:1==this.state.pageNumberOwners?"#36b8e8":"",onClick:function(){return t.changePageOne("Owners")}}),this.state.topUsersByRide.length>5&&r.createElement(d.A,{bgColor:2==this.state.pageNumberOwners?"#36b8e8":"",onClick:function(){return t.changePageTwo("Owners")}}),this.state.topUsersByRide.length>10&&r.createElement(d.A,{bgColor:3==this.state.pageNumberOwners?"#36b8e8":"",onClick:function(){return t.changePageThree("Owners")}}))):r.createElement(x.A,{title:"Nenhum usuário foi encontrado",subtitle:"Confira se algum usuário criou viagens na data especificada"})),r.createElement(z.eB,{width:"53%",float:"right",title:"Adesão de Usuários",height:"380px",paddingLeft:!1,borderBottom:"none",headerMarginBottom:"0px",headerPaddingBottom:"0px"},this.state.loadingTimeline?r.createElement(v.A,{height:"456px"}):this.state.timeline.find(function(e){return e.total>0})?r.createElement("div",null,r.createElement("hr",{style:{borderTop:"1px solid #eee",marginRight:"350px"}}),r.createElement(z.dP,{float:"right",marginTop:"-40px",resizePopper:!0,handleChangeStartDate:this.handleSortDateStart,handleChangeEndDate:this.handleSortDateEnd,startDate:B()(this.state.startDateLabel),endDate:B()(this.state.endDateLabel),minDate:B()(this.state.startDateMonth),maxDate:B()(this.state.endDateMonth),minDateEnd:B()(this.state.startDateMonth),maxDateEnd:B()(this.state.endDateMonth)}),r.createElement(a.u,{width:"100%",height:300},r.createElement(i.Q,{data:this.state.timeline,margin:{top:40,right:30,left:-10,bottom:10}},r.createElement("defs",null,r.createElement("linearGradient",{id:"colorPv",x1:"0",y1:"0",x2:"0",y2:"1"}
2,r.createElement("stop",{offset:"5%",stopColor:"#00bec2",stopOpacity:.5}),r.createElement("stop",{offset:"100%",stopColor:"#00bec2",stopOpacity:.1}))),r.createElement(o.d,{strokeDasharray:"5 5",YAxis:"none",vertical:!1}),r.createElement(s.W,{dataKey:"date",tickMargin:5,tick:{stroke:"#b0b2b4",strokeWidth:1},stroke:"#E1E3E4",tickFormatter:function(e){return B()(e).format("DD")}},r.createElement(l.J,{value:"Dias",offset:-10,position:"insideBottom",stroke:"#b0b2b4"})),r.createElement(c.h,{dataKey:"total",tickMargin:5,stroke:"#E1E3E4",tick:{stroke:"#b0b2b4",strokeWidth:1}},r.createElement(l.J,{value:"Quantidade Usuários",dx:-15,angle:-90,position:"center",stroke:"#b0b2b4"})),r.createElement(u.m,null),r.createElement(p.G,{type:"monotone",dataKey:"total",fillOpacity:1,stroke:"#00bec2",fill:"url(#colorPv)",dot:{stroke:"#00bec2",strokeWidth:3}})))):r.createElement(x.A,{title:"Nenhum usuário foi encontrado",subtitle:"Confira se algum usuário foi adicionada durante o período especificado"})),r.createElement(z.eB,{width:"43%",float:"left",title:"Usuários que mais acessaram",height:"340px",marginTop:"2px",paddingLeft:!1,borderBottom:"none",headerMarginBottom:"0px",headerPaddingBottom:"0px",marginBottom:"30px"},this.state.loadingTopUsers?r.createElement(v.A,{height:"360px"}):this.state.topUsers.length>0?r.createElement("div",null,r.createElement(h.A,{marginRight:this.state.topUsers&&this.state.topUsers.length>5?"99px":"0px"}),this.state.topUsers&&this.state.topUsers.length>5&&r.createElement("div",null,r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(-180deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",marginTop:-29,onClick:function(){return t.handleChangePageDown("Users")}}),r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(0deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",transform:"rotate(-180deg)",marginTop:-29,marginRight:-1,onClick:function(){return t.handleChangePageUp("Users")}})),r.createElement("div",{style:{marginTop:"18px",marginBottom:"20px"}},r.createElement(f.A,{color:"#b0b2b4",marginLeft:10,fontSize:"10px"},"NOME"),r.createElement(f.A,{color:"#b0b2b4",float:"right",marginRight:10,fontSize:"10px"},"ACESSOS")),this.state.topUsers&&this.state.topUsers.map(function(e,t){if(t>=this.state.minValueUsers&&t<=this.state.maxValueUsers)return r.createElement(N,{key:t,topUsers:e,index:t,history:this.props.history,counter:t+1,permittedProfile:this.state.permittedProfile})}.bind(this)),r.createElement("div",{style:{width:"49px",marginLeft:"46%",height:"7px",marginTop:"-15px",marginBottom:"20px"}},this.state.topUsers.length>5&&r.createElement(d.A,{bgColor:1==this.state.pageNumberUsers?"#36b8e8":"",onClick:function(){return t.changePageOne("Users")}}),this.state.topUsers.length>5&&r.createElement(d.A,{bgColor:2==this.state.pageNumberUsers?"#36b8e8":"",onClick:function(){return t.changePageTwo("Users")}}),this.state.topUsers.length>10&&r.createElement(d.A,{bgColor:3==this.state.pageNumberUsers?"#36b8e8":"",onClick:function(){return t.changePageThree("Users")}}))):r.createElement(x.A,{title:"Nenhum usuário foi encontrado",subtitle:"Confira se algum usuário teve algum acesso durante a data especificada"})),r.createElement(z.eB,{width:"53%",float:"right",title:"Usuários ativos por unidade",height:"700px",paddingLeft:!1,borderBottom:"none",headerMarginBottom:"0px",headerPaddingBottom:"0px"},this.state.loadingUsersByGroups?r.createElement(v.A,{height:"567px"}):this.state.usersByGroup.length>0?r.createElement("div",null,r.createElement(h.A,{marginRight:this.state.totalGroupsPage>5?"99px":"0px"}),this.state.totalGroupsPage>1&&r.createElement("div",null,r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(-180deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",marginTop:-29,onClick:function(){return t.handleChangePageDown("TotalUsers")}}),r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(0deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",transform:"rotate(-180deg)",marginTop:-29,marginRight:-1,onClick:function(){return t.handleChangePageUp("TotalUsers")}})),r.createElement(f.A,{width:"280px",float:"left",fontWeight:"normal",fontSize:"18px",marginTop:"15",marginLeft:"10",marginBottom:8,color:"#65cfd2"},this.state.totalInTheApp," Usuários"),r.createElement(f.A,{width:"280px",float:"left",fontSize:"11px",color:"#b0b2b4",marginLeft:"-279",marginTop:"38"},this.state.totalCompanyUsers," USUÁRIOS CADASTRADOS"),r.createElement(f.A,{float:"right",fontWeight:"normal",fontSize:"18px",marginTop:25,color:"#65cfd2"},this.state.percentage?this.state.percentage.toFixed(0):void 0,"%"),r.createElement("div",{style:{marginLeft:"10px"}},r.createElement(g.N1,{percent:this.state.percentage,trailWidth:"3",trailColor:"#f1f1f1",strokeWidth:"3",strokeColor:"#65cfd2"})),(this.state.usersByGroup||[]).map(function(e,t){return r.createElement(N,{key:t,usersByGroup:e,usersTotal:e.totalUsers?e.totalUsers:void 0,inTheApp:e.totalInApp?e.totalInApp:void 0,percentage:e.percentage?e.percentage:void 0,counter:t+1})}),r.createElement("div",{style:{width:"100%",height:"7px",marginTop:"-15px",marginBottom:"20px",display:"flex",justifyContent:"center"}},this.state.totalGroupsPage>1&&(this.state.totalOvalItems||[]).map(function(e,n){return r.createElement(d.A,{key:e,bgColor:t.state.selectedGroupPage==e?"#36b8e8":"",onClick:function(){return t.changePage(n)}})}))):r.createElement(x.A,{title:"Nenhum usuário foi encontrado",subtitle:"Confira se algum usuário criou viagens na data especificada"})),r.createElement(z.eB,{width:"43%",float:"left",title:"Origens mais solicitadas",height:"330px",paddingLeft:!1,borderBottom:"none",headerMarginBottom:"0px",headerPaddingBottom:"0px"},this.state.loadingOriginRank?r.createElement(v.A,{height:"360px"}):this.state.originRank.length>0?r.createElement("div",null,r.createElement(h.A,{marginRight:this.state.originRank&&this.state.originRank.length>5?"99px":"0px"}),this.state.originRank&&this.state.originRank.length>5&&r.createElement("div",null,r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(-180deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",marginTop:-29,onClick:function(){return t.handleChangePageDown("Origin")}}),r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(0deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",transform:"rotate(-180deg)",marginTop:-29,marginRight:-1,onClick:function(){return t.handleChangePageUp("Origin")}})),r.createElement("div",{style:{marginTop:"18px"}},r.createElement(f.A,{color:"#b0b2b4",marginLeft:10,fontSize:"10px"},"ENDEREÇOS"),r.createElement(f.A,{color:"#b0b2b4",float:"right",marginRight:10,fontSize:"10px"},"QUANTIDADE")),this.state.originRank&&this.state.originRank.map(function(e,t){if(t>=this.state.minValueOrigin&&t<=this.state.maxValueOrigin)return r.createElement(N,{key:t,originRank:e,counter:t+1})}.bind(this)),r.createElement("div",{style:{width:"49px",marginLeft:"46%",height:"7px",marginTop:"-15px",marginBottom:"20px"}},this.state.originRank.length>5&&r.createElement(d.A,{bgColor:1==this.state.pageNumberOrigin?"#36b8e8":"",onClick:function(){return t.changePageOne("Origin")}}),this.state.originRank.length>5&&r.createElement(d.A,{bgColor:2==this.state.pageNumberOrigin?"#36b8e8":"",onClick:function(){return t.changePageTwo("Origin")}}),this.state.originRank.length>10&&r.createElement(d.A,{bgColor:3==this.state.pageNumberOrigin?"#36b8e8":"",onClick:function(){return t.changePageThree("Origin")}}))):r.createElement(x.A,{title:"Nenhum dado de origem foi encontrado",subtitle:"Confira se alguma viagem foi criada durante a data especificada"})),r.createElement("div",{style:{width:"53%",height:"215px",float:"right"}}),r.createElement(z.eB,{width:"43%",float:"left",title:"Destinos mais solicitados",height:"340px",paddingLeft:!1,borderBottom:"none",headerMarginBottom:"0px",headerPaddingBottom:"0px"},this.state.loadingDestinationRank?r.createElement(v.A,{height:"360px"}):this.state.destinationRank.length>0?r.createElement("div",null,r.createElement(h.A,{marginRight:this.state.destinationRank&&this.state.destinationRank.length>5?"99px":"0px"}),this.state.destinationRank&&this.state.destinationRank.length>5&&r.createElement("div",null,r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(-180deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",marginTop:-29,onClick:function(){return t.handleChangePageDown("Destination")}}),r.createElement(m.A,{bgImage:F,bgImageHover:K,transformHover:"rotate(0deg)",width:25,height:24,bgColor:"#f1f1f1",float:"right",transform:"rotate(-180deg)",marginTop:-29,marginRight:-1,onClick:function(){return t.handleChangePageUp("Destination")}})),r.createElement("div",{style:{marginTop:"18px"}},r.createElement(f.A,{color:"#b0b2b4",marginLeft:10,fontSize:"10px"},"ENDEREÇOS"),r.createElement(f.A,{color:"#b0b2b4",float:"right",marginRight:10,fontSize:"10px"},"QUANTIDADE")),this.state.destinationRank&&this.state.destinationRank.map(function(e,t){if(t>=this.state.minValueDestination&&t<=this.state.maxValueDestination)return r.createElement(N,{key:t,destinationRank:e,counter:t+1})}.bind(this)),r.createElement("div",{style:{width:"49px",marginLeft:"46%",height:"7px",marginTop:"-15px",marginBottom:"20px"}},this.state.destinationRank&&this.state.destinationRank.length>5&&r.createElement(d.A,{bgColor:1==this.state.pageNumberDestination?"#36b8e8":"",onClick:function(){return t.changePageOne("Destination")}}),this.state.destinationRank&&this.state.destinationRank.length>5&&r.createElement(d.A,{bgColor:2==this.state.pageNumberDestination?"#36b8e8":"",onClick:function(){return t.changePageTwo("Destination")}}),this.state.destinationRank&&this.state.destinationRank.length>10&&r.createElement(d.A,{bgColor:3==this.state.pageNumberDestination?"#36b8e8":"",onClick:function(){return t.changePageThree("Destination")}}))):r.createElement(x.A,{title:"Nenhum usuário foi encontrado",subtitle:"Confira se algum usuário criou viagens na data especificada"}))),this.state.errorMessage&&r.createElement(T.A,{subtitle:this.state.errorMessage.subtitle,onClose:function(){t.setState({errorMessage:void 0})},active:!0,indexZ:400}))):r.createElement(y.A,null)}}])&&X(n.prototype,w),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,w}(r.Component),ce=(0,j.A)(le);const ue=(0,G.withRouter)(ce)},13213(e,t,n){e.exports=n.p+"5987d10a1ca74debc3b5.jpg"},72627(e,t,n){e.exports=n.p+"e520e494d148a83487b4.png"}
2,70240(e,t,n){e.exports=n.p+"e571eefa5017d75dce49.svg"},77331(e,t,n){e.exports=n.p+"a12eb2dfffcef86a53b4.svg"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.