PageSourceSearch

https://mobicity-dashboard.herokuapp.com/js/583.f1a963bd.bundle.js

js mobicity-dashboard.herokuapp.com collected 2026-10-03 14:50:22 UTC 28,954 bytes, 2 lines download raw bytes

1/*! For license information please see 583.f1a963bd.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunkmobicity_web=self.webpackChunkmobicity_web||[]).push([[583],{82972(t,e,r){r.d(e,{A:()=>g});var n=r(96540),o=r(42438),a=r(95947),c=r(23411),i=r(6285),s=r(72627),u=r(13213);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function d(t,e,r){return e=h(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(m=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var b=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),r=e,(l=[{key:"render",value:function(){return n.createElement(o.A,{backgroundImg:u,active:!0},n.createElement(c.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"},n.createElement(i.A,{alt:"mobicity",bgImage:s,bgColor:"none",borderRadius:"0px",marginRight:"0px",width:"175px",height:"40px",position:"absolute",top:"22px",display:"flex",zIndex:"100"}),n.createElement(c.A,{width:"690px",height:"84px",position:"absolute",top:"0",zIndex:"99"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"690",height:"84"},n.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"}))),n.createElement(a.A,{fontSize:"120px",color:"#e37676"},"404"),n.createElement(a.A,{fontSize:"30px"},"PÁGINA NÃO ENCONTRADA")))}}])&&p(r.prototype,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,l}(n.Component);const g=b},83320(t,e,r){var n,o,a;r.d(e,{A:()=>c}),r(96540);const c=r(22633).Ay.button(n||(o=["\n  font-family: Open Sans, arial, sans-serif;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: normal;\n  letter-spacing: -0.3px;\n  cursor: pointer;\n  border-radius: 5px 5px 0px 0px;\n  font-weight: bold;\n  font-size: 13px;\n\n  ","\n"],a||(a=o.slice(0)),n=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))),function(t){var e=t.selectedTab,r=t.tabId;return"\n    padding: ".concat(e==r?"12px":"16px"," 30px ").concat(e==r?"14px":"18px"," 30px;\n    ").concat(e==r?"":"border: solid 1px #EBEBEB;","\n    ").concat(e==r?"border-bottom: solid 5px #fff;":"","\n    ").concat(e==r?"border-right: solid 1px #EBEBEB;":"","\n    ").concat(e==r?"border-left: solid 1px #EBEBEB;":"","\n    ").concat(e==r?"border-top: solid 5px #00bbbe;":"","\n    color: ").concat(e==r?"#00bbbe;":"#989fa9;","\n    background-color: ").concat(e==r?"#fff;":"#f3f3f3;","\n  ")})},77948(t,e,r){var n;r.d(e,{A:()=>
2o});const o=r(22633).Ay.div(n||(a=["\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"],c||(c=a.slice(0)),n=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(c)}}))));var a,c},51975(t,e,r){r.d(e,{A:()=>b});var n=r(96540),o=r(23411),a=r(48747),c=r(53461),i=r(79532);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function l(t,e,r){return e=f(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function m(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}var y=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return m(t=l(this,e,[].concat(n)),"handleClick",function(){t.props.personSelected||t.props.onClick()}),m(t,"handleOpenDeleteUser",function(e){t.props.onOpenDeleteUser(e)}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,(s=[{key:"render",value:function(){var t,e,r=this;return n.createElement(o.A,{float:"left",position:"relative",display:this.props.display,justifyContent:this.props.justifyContent},this.props.personSelected&&this.props.personPicture&&n.createElement(a.A,{width:"".concat(169,"px"),textTransform:"capitalize",whiteSpace:"nowrap",fontWeight:"normal",justWrapper:!0,title:null!==(t=this.props.personPicture.name)&&void 0!==t?t:[],content:null!==(e=this.props.personPicture.description)&&void 0!==e?e:[],contentWhiteSpace:"pre"},n.createElement(o.A,null,n.createElement(o.A,{borderRadius:"100%",float:"left",width:this.props.width?this.props.width:"39px",height:this.props.height?this.props.height:"39px",marginRight:"6px",marginTop:this.props.marginTop?this.props.marginTop:"",cursor:this.props.personPicture||this.props.personSelected?"default":"pointer",bgRepeat:"no-repeat",bgSize:this.props.imageSize?this.props.imageSize:"cover",bgImage:this.props.personSelected&&this.props.personPicture&&this.props.personPicture.picture?"url(".concat(this.props.personPicture.picture,")"):"url(".concat(c,")"),onClick:this.handleClick,position:this.props.position}),!this.props.withoutRemove&&n.createElement(o.A,{borderRadius:"100%",cursor:"pointer",marginLeft:"-19px",float:"left",width:"13px",height:"13px",bgImage:"url(".concat(i,")"),onClick:function(){r.handleOpenDeleteUser(r.props.personPicture.i
2d||r.props.personPicture._id)}}))))}}])&&u(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(n.Component);const b=y},9407(t,e,r){r.d(e,{A:()=>n});const n=function(t,e){var r=t.userAccess,n=t.permittedRead,o=t.permittedWrite;return 30==r||-1!=(o||[]).findIndex(function(t){return t==e})?"write":-1!=(n||[]).findIndex(function(t){return t==e})?"read":void 0}},52964(t,e,r){r.r(e),r.d(e,{default:()=>G});var n=r(96540),o=r(83766),a=r(95947),c=r(23411),i=r(77948),s=r(82972),u=r(23537),l=r(54625),p=r(56347),f=r(9407),d=r(34970),m=(r(38891),r(83320)),h=r(51975),y=r(95093),b=r.n(y),g=r(54472),v=r.n(g),w=r(28191),x=r(44303),E=r(53110),O=r(96966),S=r(38229);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach(function(e){N(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function C(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var s=n&&n.prototype instanceof i?n:i,u=Object.create(s.prototype);return j(u,"_invoke",function(r,n,o){var a,i,s,u=0,l=o||[],p=!1,f={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,i=0,s=t,f.n=r,c}};function d(r,n){for(i=r,s=n,e=0;!p&&u&&!o&&e<l.length;e++){var o,a=l[e],d=f.p,m=a[2];r>3?(o=m===n)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(i=0,f.v=n,f.n=a[1]):d<m&&(o=r<3||a[0]>n||n>m)&&(a[4]=r,a[5]=n,f.n=m,i=0))}if(o||r>1)return c;throw p=!0,n}return function(o,l,m){if(u>1)throw TypeError("Generator is already running");for(p&&1===l&&d(l,m),i=l,s=m;(e=i<2?t:s)||!p;){a||(i?i<3?(i>1&&(f.n=-1),d(i,s)):f.n=s:f.v=s);try{if(u=2,a){if(i||(o="next"),e=a[o]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,i<2&&(i=0)}else 1===i&&(e=a.return)&&e.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((e=(p=f.n<0)?s:r.call(n,f))!==c)break}catch(e){a=t,i=1,s=e}finally{u=1}}return{value:e,done:p}}}(r,o,a),!0),u}var c={};function i(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(j(e={},n,function(){return this}),e),p=u.prototype=i.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,j(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return s.prototype=u,j(p,"constructor",u),j(u,"constructor",s),s.displayName="GeneratorFunction",j(u,o,"GeneratorFunction"),j(p),j(p,o,"Generator"),j(p,n,function(){return this}),j(p,"toString",function(){return"[object Generator]"}),(C=function(){return{w:a,m:f}})()}function j(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}j=function(t,e,r,n){function a(e,r){j(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},j(t,e,r,n)}function T(t,e,r,n,o,a,c){try{var i=t[a](c),s=i.value}catch(t){return void r(t)}i.done?e(s):Promise.resolve(s).then(n,o)}function R(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function c(t){T(a,n,o,c,i,"next",t)}function i(t){T(a,n,o,c,i,"throw",t)}c(void 0)})}}function k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,L(n.key),n)}}function _(t,e,r){return e=I(e),function(t,e){if(e&&("object"==P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,B()?Reflect.construct(e,r||[],I(t).constructor):e.apply(t,r))}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!t})()}
2function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}function N(t,e,r){return(e=L(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}var M=v().determine().name();(new Date).setHours(23,59,59,999);var W=new Date;W.setDate(W.getDate()-7),W.setHours(0,0,0,0);var F=new Date;F.setDate(F.getDate()+7),F.setHours(23,59,59,999);var H=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return N(t=_(this,e,[].concat(n)),"setStateAsync",function(e){return new Promise(function(r){return t.setState(e,r)})}),N(t,"sleep",function(){var t=R(C().m(function t(e){return C().w(function(t){for(;;)if(0===t.n)return t.a(2,new Promise(function(t){return setTimeout(t,e)}))},t)}));return function(e){return t.apply(this,arguments)}}()),N(t,"state",{categories:[{name:"Limpeza",value:0,active:!0},{name:"Manutenção",value:1,active:!0},{name:"Pane elétrica",value:2,active:!0},{name:"Pane mecânica",value:3,active:!0},{name:"Pneus",value:4,active:!0},{name:"Acidentes",value:5,active:!0},{name:"Combustível",value:6,active:!0}],sortDate:'&createdAt={ "$lte":"'.concat(F,'", "$gte":"').concat(W,'"}'),sortDateStart:W,sortDateEnd:F,selectedPage:0,totalOccurrences:0,sortCategory:"",selectedTab:"latestTab",occurrenceReports:[],occurrenceReportsCount:0,occurrences:[],errorMessage:void 0,loading:!0,source:E.qm.source(),sortQuery:{createdAt:1},reportsPage:0}),N(t,"handleSortDateStart",function(){var e=R(C().m(function e(r){var n,o;return C().w(function(e){for(;;)switch(e.n){case 0:if("Invalid Date"!=r){e.n=1;break}return e.a(2);case 1:return n=t.state.sortDateEnd,o="&time={%%start%%end}",b()(r).format()<b()(n).subtract(1,"month").format()&&(n=b()(r).add(1,"month").format()),o=(o=o.replace("%%start",'"$gte":"'.concat(r,'"'))).replace("%%end",',"$lte":"'.concat(n,'"')),e.n=2,t.setStateAsync({sortDateStart:r,sortDateEnd:n,sortDate:o});case 2:t.getCompanyOccurrences();case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),N(t,"handleSortDateEnd",function(){var e=R(C().m(function e(r){var n,o;return C().w(function(e){for(;;)switch(e.n){case 0:if("Invalid Date"!=r){e.n=1;break}return e.a(2);case 1:n=t.state.sortDateStart,o="&time={%%start%%end}",b()(r).format()>b()(n).add(1,"month").format()&&(n=b()(r).subtract(1,"month").format()),o=(o=o.replace("%%start",'"$gte":"'.concat(n,'"'))).replace("%%end",'"$lte":"'.concat(r,'"')),t.setStateAsync({sortDateEnd:r,sortDateStart:n,sortDate:o}),t.getCompanyOccurrences();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),N(t,"goToNextListPage",function(){var e=R(C().m(function e(r){return C().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.setStateAsync({selectedPage:r});case 1:t.getCompanyOccurrences();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),N(t,"sortListBy",function(){var e=R(C().m(function e(r){var n,o;return C().w(function(e){for(;;)switch(e.n){case 0:return n=r.direction,o=r.field,e.n=1,t.setStateAsync({sortQuery:N({},o,n)});case 1:t.getCompanyOccurrences();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),N(t,"handleSortCategories",function(){var e=R(C().m(function e(r){var n,o,a,c;return C().w(function(e){for(;;)switch(e.n){case 0:return n=t.state,o=n.sortCategory,a=n.categories,c=r.filter(function(t){return t.active}).map(function(t){return String(t.status)}),[0,r.length].includes(c.length)?(a=a.map(function(t){return A(A({},t),{},{active:!0})}),o=""):o="&status=".concat(c.join(",")),e.n=1,t.setStateAsync({sortCategory:o,categories:a});case 1:t.getCompanyOccurrences();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),N(t,"getCompanyOccurrences",R(C().m(function e(){var r,n,o,a,c,i,s,u,l,p,f,d,m,h;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.props.selectedCompany,o=null!==(r=null==n?void 0:n._id)&&void 0!==r?r:n,a=t.state,c=a.sortDateStart,i=a.sortDateEnd,s=a.sortQuery,u=a.source,l=a.selectedPage,f=l*(p=20),e.n=1,t.setStateAsync({loading:!0});case 1:return d="companyId=".concat(o,"&startDate=").concat(b()(c).format(),"&endDate=").concat(b()(i).format(),"&skip=").concat(f,"&limit=").concat(p,"&sort=").concat(JSON.stringify(s)),e.p=2,e.n=3,(0,x.XZe)(d,u.token);case 3:m=e.v,e.n=6;break;case 4:if(e.p=4,!(h=e.v).__CANCEL__){e.n=5;break}return e.a(2);case 5:return e.a(2,t.setState({errorMessage:{subtitle:(((h.response||{}).data||{}).data||{}).description},loading:!1}));case 6:t.setState({occurrences:m.occurrences,totalOccurrences:m.totalOccurrences,loading:!1});case 7:return e.a(2)}},e,null,[[2,4]])}))),N(t,"focusOnSpecificMonth",function(){var e=R(C().m(function e(r,n,o){return C().w(function(e){for(;;)switch(e.n){case 0:if("clickable"==r.target.id){e.n=1;break}return e.a(2);case 1:return e.n=2,t.setStateAsync({sortDateStart:b()().month(o-1).year(n).startOf("month").toDate(),sortDateEnd:b()().month(o-1).year(n).endOf("month").toDate(),selectedTab:"latestTab",loading:!0});case 2:t.getCompanyOccurrences();case 3:return e.a(2)}},e)}));return function(t,r,n){return e.apply(this,arguments)}}()),N(t,"handleExportNewReport",function(e,r,n){var o=t.state.occurrenceReports,a=o.findIndex(function(t){return e.month==t.month&&e.year==t.year});-1!=a&&(o[a].status=0),t.setState({occurrenceReports:o},function(){t.getEC2Reports(r,n)})}),N(t,"getEC2Reports",function(){var e=R(C().m(function e(r,n){var o,a,c,i,s,u;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return a=t.state.source,c=t.props.selectedCompany,i=null!==(o=null==c?void 0:c._id)&&void 0!==o?o:c,s="company=".concat(i,"&timezone=").concat(M,"&startDate=").concat(r).concat(n),e.p=1,e.n=2,(0,x.TKI)("occurrences",s,a.token);case 2:e.v,e.n=5;break;case 3:if(e.p=3,!(u=e.v).__CANCEL__){e.n=4;break}return e.a(2);case 4:return e.a(2,t.setState({errorMessage:{subtitle:(((u.response||{}).data||{}).data||{}).description},loading:!1}));case 5:t.getReports(),t.setReport();case 6:return e.a(2)}},e,null,[[1,3]])}
2));return function(t,r){return e.apply(this,arguments)}}()),N(t,"getReports",R(C().m(function e(){var r,n,o,a,c,i,s,u,l,p;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.props.selectedCompany,o=null!==(r=null==n?void 0:n._id)&&void 0!==r?r:n,a=t.state,c=a.source,i=a.reportsPage,s=3*i,u="company=".concat(o,"&timezone=").concat(M,"&skip=").concat(s,"&limit=").concat(3),e.p=1,e.n=2,(0,x.hQh)(u,c.token);case 2:l=e.v,e.n=5;break;case 3:if(e.p=3,!(p=e.v).__CANCEL__){e.n=4;break}return e.a(2);case 4:return e.a(2,t.setState({errorMessage:{subtitle:(((p.response||{}).data||{}).data||{}).description},loading:!1}));case 5:t.setState({occurrenceReports:l.reportInfo,occurrenceReportsCount:l.count,loading:!1});case 6:return e.a(2)}},e,null,[[1,3]])}))),N(t,"setReport",R(C().m(function e(){var r,n,o;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=t.state.occurrenceReports,n=!1,e.n=1,t.sleep(2e4);case 1:for(o=0;o<r.length;o++)0!==r[o].status&&1!==r[o].status||(n=!0);if(!n){e.n=8;break}return e.p=2,e.n=3,t.getReports();case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.p=5,e.n=6,t.setReport();case 6:return e.a(2,e.v);case 7:e.p=7,e.v;case 8:return e.a(2)}},e,null,[[5,7],[2,4]])}))),N(t,"handleChangeTab",function(){var e=R(C().m(function e(r){return C().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.setStateAsync({selectedTab:r,loading:!0});case 1:"latestTab"==r&&t.getCompanyOccurrences(),"monthlyTab"==r&&t.getReports();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),N(t,"goToNextReportPage",function(){var e=R(C().m(function e(r){return C().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.setStateAsync({reportsPage:r});case 1:t.getReports();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z(t,e)}(e,t),r=e,u=[{key:"componentDidMount",value:(p=R(C().m(function t(){var e,r,n,o,a,c,i;return C().w(function(t){for(;;)switch(t.n){case 0:return e=this.props,r=e.accessRead,n=e.accessWrite,e.history,o=e.user,a={userAccess:o.access,permittedRead:r,permittedWrite:n},c=(0,f.A)(a,"vehicles"),i=null!=c,document.body.style.overflowY="scroll",t.n=1,this.setStateAsync({permittedPage:i});case 1:this.getCompanyOccurrences();case 2:return t.a(2)}},t,this)})),function(){return p.apply(this,arguments)})},{key:"componentDidUpdate",value:function(t){var e=t.selectedCompany,r=t.accessWrite,n=this.props,o=n.selectedCompany,a=n.accessWrite;if(((e||{})._id||e)!=((o||{})._id||o)||JSON.stringify(r)!=JSON.stringify(a)){var c=this.state.selectedTab;"latestTab"==c&&this.getCompanyOccurrences(),"monthlyTab"==c&&this.getReports()}}},{key:"componentWillUnmount",value:function(){this.state.source.cancel()}},{key:"render",value:function(){var t,e=this,r=this.props,u=r.selectedCompany,p=r.user,f=r.crumbs,y=(null==u||u._id,this.state),g=y.sortQuery,v=y.occurrences,E=y.permittedPage,P=y.selectedTab,D=y.occurrenceReports;return E?(document.title="Relatório de Ocorrências",n.createElement("div",null,n.createElement(o.mc,null,n.createElement(o.iK.Container,null,n.createElement(c.A,{display:"flex",flexDirection:"column"},n.createElement(o.rX,{crumbs:f}),30==p.access&&n.createElement(i.A,null,"VOCÊ ESTÁ ACESSANDO COMO ",null!==(t=null==u?void 0:u.name)&&void 0!==t?t:"Carregando..."))),n.createElement(m.A,{selectedTab:P,tabId:"latestTab",onClick:function(){return e.handleChangeTab("latestTab")}},"Últimas"),n.createElement(m.A,{selectedTab:P,tabId:"monthlyTab",onClick:function(){return e.handleChangeTab("monthlyTab")}},"Por mês"),this.state.loading&&n.createElement(o.Rh,{height:"300px",bgColor:"#FFF"}),!this.state.loading&&"latestTab"==P&&n.createElement(o.XI,{handleChangeStartDate:function(t){e.handleSortDateStart(t)},handleChangeEndDate:function(t){e.handleSortDateEnd(t)},endDate:this.state.sortDateEnd?b()(this.state.sortDateEnd):void 0,startDate:this.state.sortDateStart?b()(this.state.sortDateStart):void 0,minDateEnd:this.state.sortDateStart?b()(this.state.sortDateStart):void 0,maxDateEnd:this.state.sortDateEnd?b()(this.state.sortDateEnd).add(1,"month"):void 0,maxDate:this.state.sortDateEnd?b()(this.state.sortDateEnd):void 0,minDate:this.state.sortDateStart?b()(this.state.sortDateStart).subtract(2,"month"):void 0,page:this.state.selectedPage,totalPage:this.state.totalOccurrences/20,totalItem:this.state.totalOccurrences,minValue:20,totalTravels:!0,handleNextPage:function(t){return e.goToNextListPage(t.selected)},outerPadding:!0,customRadius:"0 0 4px 4px",noborder:!0,marginTop:"-2px",borderTop:"solid 0.5px #EBEBEB",borderRadius:"0px 0px 4px 4px",hideFilterBySubordinatesButton:!0,tHead:n.createElement(o.lq,null,n.createElement(S.A,{title:"Data",onDown:function(){e.sortListBy({direction:1,field:"createdAt"})},onUp:function(){e.sortListBy({direction:-1,field:"createdAt"})},sortedUp:-1==g.createdAt,sortedDown:1==g.createdAt,type:"sort"}),n.createElement(S.A,{title:"Placa",type:"none"}),n.createElement(S.A,{title:"Código",type:"none"}),n.createElement(S.A,{title:"Passageiros",type:"none"})),tBody:null==v?void 0:v.map(function(t,e){return n.createElement(o.Tr,{key:e,style:{cursor:"pointer"}}
2,n.createElement(o.Td,null,n.createElement(l.Link,{style:{color:"#616670",textDecoration:"none"},to:"/tickets/details/".concat(t._id)},n.createElement(c.A,{display:"flex",flexDirection:"row",alignItems:"center",height:"40px",marginRight:"20px"},n.createElement("b",null,b()(t.createdAt).format("DD/MM/YY")),n.createElement("p",{style:{marginLeft:"3px"}},b()(t.createdAt).format("HH:mm"))))),n.createElement(o.Td,{bold:!0},n.createElement(l.Link,{style:{color:"#616670",textDecoration:"none"},to:"/tickets/details/".concat(t._id)},n.createElement(c.A,{display:"flex",flexDirection:"row",alignItems:"center",height:"40px"},t.licencePlate))),n.createElement(o.Td,null,n.createElement(l.Link,{style:{color:"#616670",textDecoration:"none"},to:"/tickets/details/".concat(t._id)},n.createElement(c.A,{display:"flex",flexDirection:"row",alignItems:"center",height:"40px"},t.vehicleCode))),n.createElement(o.Td,null,n.createElement(l.Link,{style:{color:"#616670",textDecoration:"none"},to:"/tickets/details/".concat(t._id)},n.createElement(c.A,{display:"flex",flexDirection:"row",alignItems:"center",height:"40px",marginLeft:"20px"},n.createElement(h.A,{key:e,withoutRemove:!0,personPicture:t.user,index:e,personSelected:!0})))))})}),!this.state.loading&&"monthlyTab"==P&&n.createElement("div",null,n.createElement(c.A,{border:"solid 1px #EBEBEB",width:"100%",height:"auto",float:"left",marginTop:"-2px",marginBottom:"20px",bgColor:"#fff",paddingTop:"30px",paddingBottom:"10px",paddingLeft:"16px",paddingRight:"16px"},n.createElement(c.A,{width:"100%",height:"auto",marginBottom:"20px"},null==D?void 0:D.map(function(t,r){return n.createElement(c.A,{id:"clickable",key:r,width:"100%",height:"76px",float:"left",borderTop:"solid 1px #EBEBEB",bgColorHover:"#f6f5f5",onClick:function(r){e.focusOnSpecificMonth(r,t.year,t.month)}},n.createElement(c.A,{width:"20%",height:"auto",float:"left",marginLeft:"29px",marginTop:"13px"},n.createElement(a.A,{id:"clickable",width:"100%",height:"29px",float:"left",fontSize:"23px",color:"#75c181"},b()().month(t.month-1).format("MMM").toUpperCase()),n.createElement(a.A,{id:"clickable",width:"100%",float:"left",fontSize:"11px",color:"#b0b2b4"},t.year)),n.createElement(c.A,{width:"70%",height:"auto",float:"left",marginTop:"13px"},n.createElement(a.A,{id:"clickable",width:"60%",height:"30px",float:"left",fontSize:"23px",fontWeight:"normal",color:"#616670"},Number(t.totalOccurrences).toLocaleString("pt-BR")),n.createElement(a.A,{id:"clickable",width:"100%",float:"left",fontSize:"11px",color:"#b0b2b4"},"OCORRÊNCIAS")),n.createElement(c.A,{id:"clickable",width:"7%",height:"auto",float:"left",marginTop:"25px"},n.createElement(O.A,{report:t||{code:"occurrenceReport",status:-1},handleExportReport:function(){e.handleExportNewReport(t,b()().month(t.month-1).year(t.year).startOf("month").format(),"&recalculate=1")},handleDownloadReport:x.F5B,user:e.props.user})))}))),this.state.occurrenceReportsCount>0&&n.createElement(d.A,{page:this.state.reportsPage,totalPage:this.state.occurrenceReportsCount/3,handleNextPage:function(t){e.goToNextReportPage(t.selected)},totalItem:this.state.occurrenceReportsCount,disableInitialCallback:!0}))),this.state.errorMessage&&n.createElement(w.A,{subtitle:this.state.errorMessage.subtitle,onClose:function(){e.setState({errorMessage:void 0})},active:!0,indexZ:400}))):n.createElement(s.A,null)}}],u&&k(r.prototype,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,u,p}(n.Component),U=(0,u.A)(H);const G=(0,p.withRouter)(U)},13213(t,e,r){t.exports=r.p+"5987d10a1ca74debc3b5.jpg"},72627(t,e,r){t.exports=r.p+"e520e494d148a83487b4.png"},79532(t,e,r){t.exports=r.p+"fdd0de03059deffee596.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.