1"use strict";(self.webpackChunkpontomaisv2=self.webpackChunkpontomaisv2||[]).push([[5540],{82493:(Y,O,s)=>{s.d(O,{r:()=>r,s:()=>B});var C=s(60177),t=s(54438),M=s(89417),y=s(67376),m=s(74232);const R=f=>({"d-none":f});function F(f,p){if(1&f){const a=t.RV6();t.j41(0,"div",6),t.bIt("click",function(){const h=t.eBV(a).$implicit,D=t.XpG();return t.Njj(D.selectOption(h))}),t.EFF(1),t.k0s()}if(2&f){const a=p.$implicit;t.R7$(),t.SpI("",a.name,"\n ")}}let B=(()=>{class f{constructor(a){this._Apiaccess=a,this.resultAutocomplete=[],this.query=[],this.employee=new t.bkB,this.loadResults=y.debounce(this.loadResults,800)}ngOnChanges(a){const _=a.label;a.label&&(this.label=y.get(_,"currentValue")?_.currentValue:"",""!=this.label&&""!=_.previousValue&&(this.search="",this.employee.emit(""))),a.defaultValue&&this.selectOption(a.defaultValue.currentValue)}cleanLoadResult(){let a=this;setTimeout(()=>{this.resultAutocomplete=[],y.get(this.selectedResult,"name",void 0)||(this.search="",a.employee.emit(""))},200)}loadResults(a){if(this.selectedResult={},y.get(this.query,"query")&&""!=a){let _=(y.get(this.query,"query")||"").replace(y.get(this.query,"searchField"),a);this._Apiaccess.Get(_).subscribe(h=>{this.resultAutocomplete=h[y.get(this.query,"resultsField")||""]})}else this.cleanLoadResult()}selectOption(a){this.selectedResult=a,this.employee.emit(this.selectedResult),this.cleanLoadResult(),this.search=a?a.name:""}ngAfterViewInit(){let a=this;setTimeout(()=>{a.selectedResult=a.defaultValue,a.search=y.get(a.defaultValue,"name"),a.defaultValue=""},1e3)}static{this.\u0275fac=function(_){return new(_||f)(t.rXU(m.o))}}static{this.\u0275cmp=t.VBU({type:f,selectors:[["pm-autocomplete"]],inputs:{query:"query",defaultValue:"defaultValue",label:"label",placeholder:"placeholder"},outputs:{employee:"employee"},features:[t.OA$],decls:15,vars:7,consts:[[1,"filterByInput"],["for",""],[1,"filterByInputField","position-relative"],["type","motive_list",3,"blur","ngModelChange","ngModel","placeholder"],[1,"results","pm-drawer-shadow",3,"ngClass"],["class","result",3,"click",4,"ngFor","ngForOf"],[1,"result",3,"click"]],template:function(_,h){1&_&&(t.j41(0,"div",0),t.EFF(1,"\n "),t.j41(2,"label",1),t.EFF(3),t.k0s(),t.EFF(4,"\n "),t.j41(5,"div",2),t.EFF(6,"\n "),t.j41(7,"input",3),t.bIt("blur",function(){return h.cleanLoadResult()}),t.mxI("ngModelChange",function(I){return t.DH7(h.search,I)||(h.search=I),I}),t.bIt("ngModelChange",function(){return h.loadResults(h.search)}),t.k0s(),t.EFF(8,"\n "),t.j41(9,"div",4),t.EFF(10,"\n "),t.DNE(11,F,2,1,"div",5),t.EFF(12,"\n "),t.k0s(),t.EFF(13,"\n "),t.k0s(),t.EFF(14,"\n\n"),t.k0s()),2&_&&(t.R7$(3),t.JRh(h.label),t.R7$(4),t.R50("ngModel",h.search),t.Y8G("placeholder",h.placeholder),t.R7$(2),t.Y8G("ngClass",t.eq3(5,R,h.resultAutocomplete.length<1)),t.R7$(2),t.Y8G("ngForOf",h.resultAutocomplete))},dependencies:[C.YU,C.Sq,M.me,M.BC,M.vS],styles:[".filterByInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-radius:2px!important;padding:5px 5px 5px 10px;font-weight:400;border:1px solid #a7b6be!important;min-height:40px;width:100%}.filterByInput[_ngcontent-%COMP%] .results[_ngcontent-%COMP%]{background:#fff;border:1px solid #dbd9d2;position:absolute;z-index:10;width:100%}.filterByInput[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]{padding:3px 10px 0;font-size:16px;color:#123442;cursor:pointer}.filterByInput[_ngcontent-%COMP%] .results[_ngcontent-%COMP%] .result[_ngcontent-%COMP%]:hover{background-color:#365866;color:#efeeea}"]})}}return f})(),r=(()=>{class f{static{this.\u0275fac=function(_){return new(_||f)}}static{this.\u0275mod=t.$C({type:f})}static{this.\u0275inj=t.G2t({imports:[C.MD,M.YN]})}}return f})()},98163:(Y,O,s)=>{s.d(O,{H:()=>F,m:()=>B});var C=s(43606),M=s(67376),T=s(60177),m=s(54438);const R=r=>({height:r});let F=(()=>{class r{get data(){return this._data}set data(p){this._data=p}constructor(){this.viewInit=!1,this.idChart="chart_"+Math.random(),this.typeChart="line",this.options={},this.height=300}ngOnChanges(p){const a=p.data,_=p.labels,h=p.height;this._data=a?a.currentValue:0,this._labels=_?_.currentValue:0,this._height=h?h.currentValue:this.height,this.population=this._data,this.labels=this._labels,this.height=this._height,this.viewInit&&this.loadChart()}ngOnInit(){this.population=this._data}ngAfterViewInit(){this.loadChart()}loadChart(){this.canvas=document.getElementById(this.idChart),this.ctx=this.canvas.getContext("2d"),this.ctx.height=this.height,this.initChart(),this.viewInit=!0}initChart(){let p=[],a={label:[],data:[]};this.population.forEach(_=>{p.push(M.merge({},a,_))}),this.renderChart(p)}renderChart(p){this.chart&&(this.chart.destroy(),this.chart=null);let _=M.merge({},{responsive:!0,maintainAspectRatio:!1,legend:{labels:{fontSize:14,fontFamily:"Open Sans"}},scales:{xAxes:[{ticks:{fontColor:"rgb(115, 138, 150)",fontSize:12,fontFamily:"Open Sans"},gridLines:{color:"rgba(115, 138, 150, 0.2)",display:!1}}],yAxes:[{ticks:{fontColor:"rgb(115, 138, 150)",fontSize:12,fontFamily:"Open Sans",display:!1},gridLines:{color:"rgba(115, 138, 150,0.2)"}}]}},this.options);
1this.chart=new C.Chart(this.ctx,{type:this.typeChart,data:{labels:this.labels,datasets:p},options:_})}static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275cmp=m.VBU({type:r,selectors:[["pm-charts"]],inputs:{data:"data",typeChart:"typeChart",labels:"labels",options:"options",height:"height"},features:[m.OA$],decls:10,vars:4,consts:[[1,"container","p-0"],[1,"row","m-0"],[1,"col-md-18","p-0",3,"ngStyle"],[3,"id"]],template:function(a,_){1&a&&(m.j41(0,"div",0),m.EFF(1,"\n "),m.j41(2,"div",1),m.EFF(3,"\n "),m.j41(4,"div",2),m.EFF(5,"\n "),m.nrm(6,"canvas",3),m.EFF(7,"\n "),m.k0s(),m.EFF(8,"\n "),m.k0s(),m.EFF(9,"\n"),m.k0s()),2&a&&(m.R7$(4),m.Y8G("ngStyle",m.eq3(2,R,_.height+"px")),m.R7$(2),m.Y8G("id",_.idChart))},dependencies:[T.B3],styles:["canvas[_ngcontent-%COMP%]{width:100%!important;height:100%!important}"]})}}return r})(),B=(()=>{class r{static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275mod=m.$C({type:r})}static{this.\u0275inj=m.G2t({imports:[T.MD]})}}return r})()},35540:(Y,O,s)=>{s.r(O),s.d(O,{IndexesComponent:()=>gt});var C=s(60177),t=s(54438),M=s(68185),y=s(57271),T=s(42522),m=s(23677),R=s(56108),F=s(81370),B=s(10113),r=s(67376),p=s(97586),_=s(74232),h=s(83987),D=s(45283),I=s(82493),G=s(27188),j=s(98163),V=s(45794),k=s(20103);const N=n=>({spacing:n}),X=n=>({"remove-paddings":n}),z=n=>({loading:n}),w=n=>({"min-height":n}),H=n=>({"d-none":n}),J=n=>[n],Q=(n,g,e)=>({"status-chart":!0,"pm-icon-Union-26":n,"pm-icon-Vector-2-1":g,"pm-icon-Vector-2":e}),Z=n=>({"background-color":n});function q(n,g){if(1&n){const e=t.RV6();t.j41(0,"div",19)(1,"pm-autocomplete",20),t.bIt("employee",function(l){const d=t.eBV(e).$implicit,c=t.XpG(3);return t.Njj(c.filter[d.id].value=null==l?null:l.id)}),t.k0s()()}if(2&n){const e=g.$implicit,o=t.XpG(3);t.Y8G("ngClass",t.eq3(5,H,e.id!==o.filterBy)),t.R7$(),t.Y8G("placeholder",e.name)("label",e.name)("query",e)("defaultValue",null)}}function tt(n,g){if(1&n&&(t.j41(0,"div",16),t.nrm(1,"pm-form",17),t.DNE(2,q,2,7,"div",18),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("form",e.form),t.R7$(),t.Y8G("ngForOf",e.filtersAutoComplete)}}function et(n,g){if(1&n&&(t.j41(0,"div",25)(1,"h3",26),t.EFF(2),t.k0s(),t.j41(3,"small"),t.EFF(4),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(),t.Y8G("ngClass",t.eq3(3,J,null==e.totals?null:e.totals.totalClass)),t.R7$(),t.SpI(" ",null==e.totals?null:e.totals.total," "),t.R7$(2),t.JRh((null==e.totals?null:e.totals.totalLabel)||"Total")}}function nt(n,g){if(1&n&&(t.j41(0,"div",27)(1,"div",28),t.nrm(2,"i",29),t.k0s(),t.j41(3,"div",30),t.EFF(4),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(2),t.Y8G("ngClass",t.sMw(2,Q,!(null!=e.totals&&e.totals.percentage),(null==e.totals?null:e.totals.percentage)>0,(null==e.totals?null:e.totals.percentage)<0)),t.R7$(2),t.SpI(" ",null==e.totals?null:e.totals.percentage,"% ")}}function at(n,g){if(1&n&&(t.j41(0,"div",31)(1,"div",32),t.EFF(2),t.k0s(),t.j41(3,"div",32),t.EFF(4),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(2),t.SpI(" M\xe1x: ",null==e.totals?null:e.totals.max,"h "),t.R7$(2),t.SpI(" M\xedn: ",null==e.totals?null:e.totals.min,"h ")}}function st(n,g){if(1&n&&(t.j41(0,"div",21),t.DNE(1,et,5,5,"div",22)(2,nt,5,6,"div",23)(3,at,5,2,"div",24),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==e.totals?null:e.totals.total),t.R7$(),t.Y8G("ngIf",void 0!==(null==e.totals?null:e.totals.percentage)),t.R7$(),t.Y8G("ngIf",(null==e.totals?null:e.totals.min)||(null==e.totals?null:e.totals.max))}}function lt(n,g){if(1&n&&(t.j41(0,"li",36),t.nrm(1,"span",37),t.j41(2,"span",38),t.EFF(3),t.k0s()()),2&n){const e=g.$implicit;t.R7$(),t.Y8G("ngStyle",t.eq3(2,Z,null==e?null:e.color)),t.R7$(2),t.SpI(" ",null==e?null:e.name," ")}}function it(n,g){if(1&n&&(t.j41(0,"div",33)(1,"ul",34),t.DNE(2,lt,4,4,"li",35),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",e.legend)}}function ot(n,g){if(1&n&&t.nrm(0,"pm-charts",39),2&n){const e=t.XpG(2);t.Y8G("options",e.optionsChart)("data",e.chartData.data)("labels",e.chartData.labels)("height",e.height)}}function rt(n,g){1&n&&t.nrm(0,"access-denied")}function dt(n,g){if(1&n){const e=t.RV6();t.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",3)(4,"div",6),t.DNE(5,tt,3,2,"div",7),t.j41(6,"div",8)(7,"pm-button",9),t.bIt("onClick",function(){t.eBV(e);const l=t.XpG();return t.Njj(l.form.submit())}),t.k0s()()(),t.DNE(8,st,4,3,"div",10),t.j41(9,"div",11),t.DNE(10,it,3,1,"div",12),t.j41(11,"div",13),t.DNE(12,ot,1,4,"pm-charts",14),t.k0s()(),t.DNE(13,rt,1,0,"access-denied",15),t.k0s()()()()}if(2&n){const e=t.XpG();t.Y8G("ngClass",t.eq3(10,N,!e.hasTitle)),t.R7$(2),t.Y8G("ngClass",t.eq3(12,X,!e.hasTitle)),t.R7$(),t.Y8G("ngClass",t.eq3(14,z,e.loading)),t.R7$(2),t.Y8G("ngIf",e.filtersAutoComplete.length>0),t.R7$(2),t.Y8G("disabled",e.loading),t.R7$(),t.Y8G("ngIf",e.totals&&!e.permissionDenied),t.R7$(2),t.Y8G("ngIf",e.legend&&e.chartData&&!e.permissionDenied),t.R7$(),t.Y8G("ngStyle",t.eq3(16,w,e.height)),t.R7$(),t.Y8G("ngIf",e.chartData&&!e.permissionDenied),t.R7$(),t.Y8G("ngIf",e.permissionDenied)}}function ct(n,g){}function mt(n,g){1&n&&t.DNE(0,ct,0,0,"ng-template")}function _t(n,g){if(1&n&&(t.j41(0,"pm-card",40),t.DNE(1,mt,1,0,null,41),t.k0s()),2&n){t.XpG();const e=t.sdS(1);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function pt(n,g){}function ut(n,g){1&n&&t.DNE(0,pt,0,0,"ng-template")}function ht(n,g){if(1&n&&t.DNE(0,ut,1,0,null,41),2&n){t.XpG();const e=t.sdS(1);t.Y8G("ngTemplateOutlet",e)}}let gt=(()=>{class n{#t;constructor(e,o,l,d){this.apiService=e,this.formService=o,this.toastrService=l,this.permissionService=d,this.#t=(0,t.WQX)(M.nX),this.hasTitle=!0,this._=r,this.loading=!1,this.legend=null,this.height=500,this.permissionDenied=!1,this.legends={time_balance:[{color:"rgba(0, 177, 29, 0.5)",name:"Saldo positivo"},{color:"rgba(202, 51, 37,0.5)",name:"Saldo negativo"},{color:"rgba(15,95,132,0.5)",name:"Saldo nulo"}],pontuality:null,missing_day:null},this.type=[{id:"pontuality",name:"Atrasos",legend:null,permission:"Dashboard.PunctualityIndicator"},{id:"time_balance",name:"Banco de horas",permission:"Dashboard.TimeBalanceTotalsIndicator"},{id:"missing_day",name:"Faltas",legend:null,permission:"Dashboard.MissingDaysIndicator"}
1],this.group=[{id:"cost_center",name:"Centro de custo"},{id:"employee",name:"Colaborador"},{id:"department",name:"Departamento"},{id:"team",name:"Equipe"},{id:"business_unit",name:"Unidade de neg\xf3cio"}],this.sort=[{id:"asc",name:"Crescente"},{id:"desc",name:"Decrescente"}],this.filterBy=null,this.filterDate={startDate:"",endDate:""},this.totals=null,this.filter={employee_id:{id:"employee_id",name:"Colaborador",type:"autocomplete",searchField:"${search}",query:"employees?attributes=id,+name&name=${search}&sort_direction=asc&sort_property=first_name",resultsField:"employees",values:null,value:null},department_id:{id:"department_id",name:"Departamento",type:"autocomplete",searchField:"${search}",query:"departments?attributes=id,+name&name=${search}&sort_direction=asc&sort_property=first_name",resultsField:"departments",values:null,value:null},team_id:{id:"team_id",name:"Equipe",type:"autocomplete",searchField:"${search}",query:"teams?attributes=id,+name&name=${search}&sort_direction=asc&sort_property=first_name",resultsField:"teams",values:null,value:null},business_unit_id:{id:"business_unit_id",name:"Unidade de neg\xf3cio",type:"select",searchField:"",query:"business_units?attributes=id,+name&sort_direction=asc&sort_property=name",resultsField:"business_units",values:null,value:null}},this.filtersAutoComplete=[],this.optionsChart={legend:{display:!0,position:"top"},animation:{duration:0,onComplete:function(){var c=this.chart,u=c.ctx;this.data.datasets.forEach(function(i,v){c.controller.getDatasetMeta(v).data.forEach(function(E,x){let ft=Object.keys(i._meta)[0],L=i._meta[ft].controller.chart.chartArea;var U=i.data[x],$=String(U).replace(".",":"),A=u.measureText($).width+10;let S=(W=E._model.x,K=A,U>=0?W+K<L.right?"left":"right":W-K>L.left?"right":"left");var W,K,yt="left"==S?E._model.x+5+10:E._model.x-5-10,vt="left"==S?E._model.x+10:E._model.x-A-10;let Et="object"==typeof i.backgroundColor?i.backgroundColor[x]:i.backgroundColor;u.textBaseline="middle",u.fillStyle=Et.replace("0.5","1"),u.fillRect(vt,E._model.y-8,A,16),u.fillStyle="#ffff",u.textAlign=S,u.fillText($,yt,E._model.y+1)})})}},events:{onHover:()=>{}},hover:{enabled:!1,mode:"nearest",intersect:!0},tooltips:{enabled:!1},scales:{yAxes:[{ticks:{display:!0}}],xAxes:[]}},this.toastMessages=m.w}timeBalance(e){let o=l=>{if(!l)return 0;let d=l.split(":");return d[0]+"."+d[1]};this.apiService.Get("my_team/time_balance",e).subscribe(l=>{let d=[],c=[],u=[];l.time_balance=l.time_balance.map(x=>{let b;return b=o(x.time_balance),x.time_balance_minutes=Number(b),x});let i=this.form.getSchema("sort").value;r.orderBy(l.time_balance,"time_balance_minutes",i).forEach(x=>{let b=x.time_balance_minutes;d.push(b),u.push(x.name),c.push(b>0?"rgba(0, 177, 29,0.5)":b<0?"rgba(202, 51, 37,0.5)":"rgba(15,95,132,0.5)")});let P={labels:u,data:[{label:"Banco de horas",backgroundColor:c,barLength:1,data:d}]},E=o(l.totals.total);this.totals={max:l.totals.max,min:l.totals.min,total:l.totals.total,totalClass:"pm-text-medium-blue",totalLabel:"Total de horas"},this.totals.totalClass=E>0?"pm-text-medium-blue":"pm-text-medium-red",this.initChart(P)},l=>this.errorGet(l))}punctuality(e){this.apiService.Get("my_team/punctuality",e).subscribe(o=>{let l=this.form.getSchema("sort").value,d=r.orderBy(o.punctuality.items,"late_days",l),c={labels:d.map(u=>u.name),data:[{label:"Atrasos",borderColor:"#F7A23E",backgroundColor:"rgba(247, 162, 62, 0.5)",barLength:1,data:d.map(u=>u.late_days)}]};this.totals={total:o.punctuality.total_late_days,totalClass:"pm-text-medium-orange",percentage:o.punctuality.total_percent,totalLabel:"Total de dias com atraso"},this.initChart(c)},o=>this.errorGet(o))}errorGet(e){this.toastrService.error(this.toastMessages.graphic_generate_error,this.toastMessages.main_error_message),this.initChart(null),console.error(e)}loadFilters(){r.map(this.filter,(e,o)=>{null!==e.id&&("select"==e.type?this.apiService.Get(e.query).subscribe(l=>{let d=this.form.getSchema(e.id);r.set(this.filter,e.id+".values",r.get(l,e.resultsField)),d.options=r.concat(d.options,r.get(this.filter,e.id+".values")),d.disabled=!1}):this.filtersAutoComplete.push(e))})}missingDays(e){this.apiService.Get("my_team/missing_days",e).subscribe(o=>{let l=this.form.getSchema("sort").value,d=r.orderBy(o.missing_days.items,"missing_days",l),c={labels:d.map(u=>u.name),data:[{label:"Faltas",borderColor:"#CA3325",backgroundColor:"rgba(202, 51, 37, 0.5)",barLength:1,data:d.map(u=>u.missing_days)}]};this.totals={total:o.missing_days.total_missing_days,totalClass:"pm-text-medium-red",totalLabel:"Total de faltas"},this.initChart(c)},o=>this.errorGet(o))}initChart(e){let o=0;if(e){let l=e.data[0].data.length>0?e.data[0].data:[0],d=P=>P.reduce((E,x)=>parseInt(E)+parseInt(x))/P.length,c=parseInt("1".padEnd(String(Math.abs(Math.round(d(l)))).length-1,"0")),u=Math.round(Math.abs(Math.max.apply(null,l)/c))*c,i=Math.round(Math.min.apply(null,l)/c)*c;this.optionsChart.scales.xAxes=[],o=25*l.length+100,0==c&&(c=1),this.optionsChart.scales.xAxes=[{ticks:{stepSize:c,max:u+6*c,min:i>=0?0:i-6*c}}];let v=this.form.getSchema("type").value;this.legend=this.legends[v],this.optionsChart.legend.display=null==this.legend}setTimeout(l=>{this.height=o,this.chartData=e,this.loading=!1},10)}getDataChart(e=null){this.loading=!0;let l,o={group:e.group,start_date:this.filterDate.startDate,end_date:this.filterDate.endDate,rh:1};
1this.filterBy&&this.filter[this.filterBy].value&&(o[this.filterBy]=this.filter[this.filterBy].value);for(let d=0;d<this.type.length;d++){let c=this.type[d];c.id==e.type&&(l=c.permission)}this.permissionService.hasPermission(l)?(this.permissionDenied=!1,"pontuality"==e.type?this.punctuality(o):"time_balance"==e.type?this.timeBalance(o):"missing_day"==e.type&&this.missingDays(o)):this.permissionDenied=!0}checkSelectedType(){"time_balance"===this.form.getSchema("type").value?(this.form.getSchema("date_range").css_class="d-none",this.form.getSchema("date").css_class=""):(this.form.getSchema("date_range").css_class="",this.form.getSchema("date").css_class="d-none")}ngOnInit(){const e=this.#t.snapshot.data.hasTitle;"boolean"==typeof e&&(this.hasTitle=e);let o=i=>{this.filterBy=i,r.forEach(this.filter,v=>{"select"==v.type&&(this.form.getSchema(v.id).css_class="d-none")}),"select"==this.filter[i].type&&(this.form.getSchema(i).css_class="")},l=i=>{this.filter[this.filterBy].value=i},d=[{name:"type",type:"select",label:"Tipo",searchable:!1,validation:{required:!0},grid:{xl:3,md:6,xs:18},option_value:"id",option_label:"name",options:this.type,value:this.type[1].id,events:{onChange:()=>{this.checkSelectedType()}}},{name:"date_range",type:"date-range",label:"Selecionar per\xedodo",validation:{max:360,required:!0},ranges:{last_30_days:!0,last_60_days:!0,last_90_days:!0,personalize:!0},personalize_link:!0,grid:{xl:6,md:12,xs:18},value:[p().subtract(30,"days").format("YYYY-MM-DD"),p().subtract(1,"days").format("YYYY-MM-DD")],events:{onChange:i=>{this.filterDate={startDate:p(i[0]).format("YYYY-MM-DD"),endDate:p(i[1]).format("YYYY-MM-DD")}}}},{name:"date",type:"date",label:"Selecionar data",validation:{max:360,required:!0},personalize_link:!0,grid:{xl:6,md:12,xs:18},value:p().subtract(1,"days").format("YYYY-MM-DD"),events:{onChange:i=>{this.filterDate={startDate:p(i).format("YYYY-MM-DD"),endDate:p(i).format("YYYY-MM-DD")}}}},{name:"sort",type:"select",label:"Ordena\xe7\xe3o",searchable:!1,grid:{xl:3,md:6,xs:9},option_value:"id",option_label:"name",validation:{required:!0},options:this.sort,value:this.sort[0].id},{name:"group",type:"select",label:"Agrupar por",searchable:!1,validation:{required:!0},grid:{xl:3,md:6,xs:9},option_value:"id",option_label:"name",options:this.group,value:this.group[1].id,events:{}},{name:"filter_by",type:"select",label:"Filtrar por",placeholder:"Filtrar por",searchable:!1,grid:{xl:3,md:6,xs:18},option_value:"id",option_label:"name",options:r.map(this.filter,i=>({name:i.name,id:i.id})),value:this.filterBy,events:{onChange:i=>{o(i)}}}],c=r.map(this.filter,i=>"select"==i.type?{name:i.id,type:"select",label:i.name,placeholder:i.name,grid:{md:18,sm:18,xs:18},option_value:"id",option_label:"name",disabled:!0,css_class:"d-none",options:[],events:{onChange:v=>{l(v)}}}:null),u=r.concat(d,r.filter(c,i=>null!==i));this.form=this.formService.create(u,(i,v)=>{!0===i.valid?this.getDataChart(i.data):this.toastrService.error(this.toastMessages.main_error_message_red_flag,this.toastMessages.main_error_message),v()}),this.loadFilters(),this.checkSelectedType()}ngAfterViewInit(){this.form&&this.form.submit()}static{this.\u0275fac=function(o){return new(o||n)(t.rXU(_.o),t.rXU(R.r),t.rXU(V.tw),t.rXU(h.n))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["indexes"]],inputs:{hasTitle:"hasTitle"},standalone:!0,features:[t.aNF],decls:5,vars:2,consts:[["tplIndexe
1s",""],["elseBlock",""],["titleCard","\xcdndices gerais",4,"ngIf","ngIfElse"],[1,"container",3,"ngClass"],[1,"row"],[1,"col-md-18",3,"ngClass"],[1,"row","pb-4"],["class","col-md-17",4,"ngIf"],[1,"col-md-1","actions"],["name","pm-transparent","icon","pm-icon-search","title","Visualizar",3,"onClick","disabled"],["class","pm-light-gray3 p-3 row justify-content-center",4,"ngIf"],[1,"row","pt-2"],["class","col-md-18 d-flex justify-content-center mb-2",4,"ngIf"],[1,"col-md-18",3,"ngStyle"],["typeChart","horizontalBar",3,"options","data","labels","height",4,"ngIf"],[4,"ngIf"],[1,"col-md-17"],[3,"form"],["class","container_filter_text autocomplete filterByInput",3,"ngClass",4,"ngFor","ngForOf"],[1,"container_filter_text","autocomplete","filterByInput",3,"ngClass"],[3,"employee","placeholder","label","query","defaultValue"],[1,"pm-light-gray3","p-3","row","justify-content-center"],["class","col d-flex justify-content-center flex-column align-items-center border-right",4,"ngIf"],["class","col border-right",4,"ngIf"],["class","col",4,"ngIf"],[1,"col","d-flex","justify-content-center","flex-column","align-items-center","border-right"],[1,"pm-text-medium-green","d-flex","justify-content-center","mb-0",3,"ngClass"],[1,"col","border-right"],[1,"d-flex","justify-content-center"],[1,"pm-text-dark-gray",3,"ngClass"],[1,"row","d-flex","justify-content-center"],[1,"col"],[1,"row","justify-content-center"],[1,"col-md-18","d-flex","justify-content-center","mb-2"],[1,"legend"],["class","d-flex align-items-center",4,"ngFor","ngForOf"],[1,"d-flex","align-items-center"],[1,"legend-color",3,"ngStyle"],[1,"legend-text"],["typeChart","horizontalBar",3,"options","data","labels","height"],["titleCard","\xcdndices gerais"],[4,"ngTemplateOutlet"]],template:function(o,l){if(1&o&&t.DNE(0,dt,14,18,"ng-template",null,0,t.C5r)(2,_t,2,1,"pm-card",2)(3,ht,1,1,"ng-template",null,1,t.C5r),2&o){const d=t.sdS(4);t.R7$(2),t.Y8G("ngIf",l.hasTitle)("ngIfElse",d)}},dependencies:[C.MD,C.YU,C.Sq,C.bT,C.T3,C.B3,F.N,B.m,j.m,j.H,I.r,I.s,D.o,D.P,T.A,k.J,y.S,y.t,G.G,G.Z],styles:["*[_ngcontent-%COMP%]{font-size:12px}.loading[_ngcontent-%COMP%]{opacity:.5}.spacing[_ngcontent-%COMP%]{margin:14px 0 30px!important}.remove-paddings[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] pm-button button{padding-right:0!important}[_nghost-%COMP%] .form-control{margin-bottom:0}[_nghost-%COMP%] .pm-input-form:first-child{padding-left:0!important}.container_filter_text[_ngcontent-%COMP%]{margin-bottom:5px}.legend[_ngcontent-%COMP%]{list-style:none;padding:0;margin:15px 0 0;font-size:14px;width:100%;display:flex;justify-content:center}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;color:#365866}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .legend-color[_ngcontent-%COMP%]{min-width:28px;height:14px;margin-right:5px}.legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .legend-text[_ngcontent-%COMP%]{margin-right:15px}.report[_ngcontent-%COMP%]{width:auto!important}.actions[_ngcontent-%COMP%]{margin-top:26px;padding-right:0!important}"]})}}return n})()}}]);
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.