PageSourceSearch

https://sotreqlink.sotreq.com.br/514.57bf38e613c3a6c6.js

js sotreq.com.br collected 2026-10-07 21:20:19 UTC 43,291 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkCustomerPanel=self.webpackChunkCustomerPanel||[]).push([[514],{6706:(k,C,g)=>{g.d(C,{W:()=>c,q:()=>d});var d=function(s){return s[s.Groups=1]="Groups",s[s.ManageProfiles=2]="ManageProfiles",s[s.ManageUsers=3]="ManageUsers",s[s.Billets=6]="Billets",s[s.Invoices=7]="Invoices",s[s.TrackingServices=8]="TrackingServices",s[s.Equipment=9]="Equipment",s[s.Leads=12]="Leads",s[s.Parts=13]="Parts",s[s.UserConfig=16]="UserConfig",s[s.TrackingParts=19]="TrackingParts",s[s.Services=20]="Services",s[s.Reports=21]="Reports",s[s.Financial=997]="Financial",s[s.Budgets=998]="Budgets",s[s.Tracking=999]="Tracking",s[s.Messaging=1e3]="Messaging",s}(d||{});const c={[d.Groups]:"Grupos",[d.ManageProfiles]:"Gerenciar Perfis",[d.ManageUsers]:"Gerenciar Usu\xe1rios",[d.Billets]:"Boletos",[d.Invoices]:"Notas Fiscais",[d.Equipment]:"Equipamentos",[d.Leads]:"Recomenda\xe7\xf5es",[d.Parts]:"Parts",[d.UserConfig]:"Configura\xe7\xe3o de Usuarios",[d.TrackingParts]:"Tracking de Pe\xe7as",[d.Services]:"Servi\xe7os",[d.Tracking]:"Pedidos",[d.Reports]:"Relat\xf3rios",[d.Messaging]:"Mensageria",[d.Financial]:"Financeiro",[d.Budgets]:"Or\xe7amentos"}},1113:(k,C,g)=>{g.d(C,{G:()=>d});var d=function(c){return c[c.GerenciamentoDePerfisDeAcesso=1]="GerenciamentoDePerfisDeAcesso",c[c.GerenciamentoDeFuncion\u00e1rios=2]="GerenciamentoDeFuncion\xe1rios",c[c.GerenciamentoDeEmpresas=3]="GerenciamentoDeEmpresas",c[c.GerenciamentoDeMarketing=4]="GerenciamentoDeMarketing",c[c.Estat\u00edsticasDeUso=5]="Estat\xedsticasDeUso",c[c.Gerenciamentopainel=6]="Gerenciamentopainel",c[c.GerenciamentoFiliaisSotreq=7]="GerenciamentoFiliaisSotreq",c[c.SolicitacaoAcesso=8]="SolicitacaoAcesso",c[c.SolicitacaoAtendimento=9]="SolicitacaoAtendimento",c[c.SolicitacaoContrato=10]="SolicitacaoContrato",c[c.SolicitacaoPeca=11]="SolicitacaoPeca",c[c.PesquisaSatisfacao=12]="PesquisaSatisfacao",c[c.FAQ=13]="FAQ",c[c.FAQView=14]="FAQView",c[c.Chamado=15]="Chamado",c[c.GrupoAtivos=18]="GrupoAtivos",c[c.AssociacaoClienteUN=19]="AssociacaoClienteUN",c}(d||{})},8514:(k,C,g)=>{g.r(C),g.d(C,{MainLayoutModule:()=>ie});var d=g(177),c=g(9565),s=g(3147),P=g(8542),e=g(4438);let x=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=e.$C({type:i});static \u0275inj=e.G2t({imports:[d.MD,s.iI,P.S]})}return i})(),v=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cpn-page-not-found"]],decls:9,vars:0,consts:[[1,"main-container"],[1,"section"],[1,"section-title","mt-5"],[1,"section-content","mt-5"],["routerLink","/home"]],template:function(t,o){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"h1",2),e.EFF(3,"N\xe3o encontramos essa p\xe1gina!"),e.k0s(),e.j41(4,"h4",3),e.EFF(5," Parece que voc\xea se deparou com um link quebrado ou a p\xe1gina que procurava mudou de endere\xe7o. Que tal voltar para a "),e.j41(6,"a",4),e.EFF(7,"P\xe1gina Inicial"),e.k0s(),e.EFF(8,"? "),e.k0s()()())},dependencies:[s.Wk],styles:[".main-container[_ngcontent-%COMP%]{height:calc(100vh - 44px);display:flex;align-items:center;justify-content:center}.main-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]{background-color:#f1f1f1;border:none;max-width:812px;height:412px;display:flex;flex-direction:column;align-items:center;padding:2rem}.main-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{color:#5c6970;font-weight:700}.main-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .section-content[_ngcontent-%COMP%]{color:#5c6970;font-weight:400;text-align:center}"]})}return i})();var p=g(3665),m=g(1125);function M(i,h){if(1&i&&(e.j41(0,"div"),e.EFF(1," Que tal voltar para o "),e.j41(2,"a",6),e.EFF(3,"Portal do Cliente Cl\xe1ssico"),e.k0s(),e.EFF(4,"? "),e.k0s()),2&i){const n=e.XpG();e.R7$(2),e.Y8G("href",n.getOldPanelUrl(),e.B4B)}}function f(i,h){1&i&&(e.EFF(0," Que tal voltar para a "),e.j41(1,"a",7),e.EFF(2,"P\xe1gina Inicial"),e.k0s(),e.EFF(3,"? "))}let l=(()=>{class i{userService;navigationService;user;isSotreqUser=!1;constructor(n,t){this.userService=n,this.navigationService=t}ngOnInit(){this.userService.getUserInfo().subscribe({next:n=>{this.user=n,this.user&&(this.isSotreqUser=this.user.userType==p.x.SotreqEmployee)}})}getOldPanelUrl(){return this.navigationService.oldCustomerPanelUrl}static \u0275fac=function(t){return new(t||i)(e.rXU(m.D),e.rXU(c.o))};static \u0275cmp=e.VBU({type:i,selectors:[["cpn-unauthorized-page"]],decls:9,vars:2,consts:[["linkHomeTemplate",""],[1,"main-container"],[1,"section"],[1,"section-title","mt-5"],[1,"section-content","mt-5"],[4,"ngIf","ngIfElse"],["target","_blank","rel","noopener",3,"href"],["routerLink","/home"]],template:function(t,o){if(1&t&&(e.j41(0,"div",1)(1,"div",2)(2,"h1",3),e.
1EFF(3,"Algo deu errado."),e.k0s(),e.j41(4,"h4",4),e.EFF(5," Parece que voc\xea tentou acessar uma funcionalidade que n\xe3o est\xe1 dispon\xedvel no momento ou que exige permiss\xf5es adicionais. "),e.DNE(6,M,5,1,"div",5)(7,f,4,0,"ng-template",null,0,e.C5r),e.k0s()()()),2&t){const u=e.sdS(8);e.R7$(6),e.Y8G("ngIf",o.isSotreqUser)("ngIfElse",u)}},dependencies:[d.bT,s.Wk],styles:[".main-container[_ngcontent-%COMP%]{height:calc(100vh - 44px);display:flex;align-items:center;justify-content:center}.main-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]{background-color:#f1f1f1;border:none;max-width:812px;height:412px;display:flex;flex-direction:column;align-items:center;padding:2rem}.main-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{color:#5c6970;font-weight:700}.main-container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .section-content[_ngcontent-%COMP%]{color:#5c6970;font-weight:400;text-align:center}"]})}return i})();var r=g(3353),a=g(6706),_=g(1113),b=g(5964),I=g(152),T=g(4412);let F=(()=>{class i{expanded=!1;expandedChange;localStorageKey="is-sidebar-expanded";constructor(){this.expanded=JSON.parse(localStorage.getItem(this.localStorageKey)),this.expandedChange=new T.t(this.expanded)}toggleExpansion(){this.expanded=!this.expanded,localStorage.setItem(this.localStorageKey,JSON.stringify(this.expanded)),this.expandedChange.next(this.expanded)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),j=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cpn-chats"]],decls:3,vars:0,consts:[["href","https://api.whatsapp.com/send?phone=551130031920&text=Ol%C3%A1.%20Gostaria%20de%20falar%20sobre%20o%20Sotreqlink","target","_blank","rel","noopener",1,"whatsapp-open"],["xmlns","http://www.w3.org/2000/svg","width","30","height","30","viewBox","0 0 24 24"],["d","M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z","fill","#FFFFFF"]],template:function(t,o){1&t&&(e.j41(0,"a",0),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2),e.k0s()())},encapsulation:2})}return i})();const U=i=>({height:i}),y=i=>[i];function w(i,h){if(1&i&&(e.j41(0,"a",8),e.nrm(1,"img",9),e.j41(2,"span",10),e.EFF(3),e.k0s()()),2&i){const n=e.XpG().$implicit,t=e.XpG();e.AVh("selected",t.router.url.startsWith("/"+n.routerLink)),e.Y8G("routerLink",e.eq3(5,y,"/"+n.routerLink)),e.R7$(),e.Y8G("src",t.mountPathIcon(n.icon),e.B4B),e.R7$(2),e.JRh(n.label)}}function G(i,h){if(1&i&&(e.j41(0,"a",20),e.EFF(1),e.k0s()),2&i){const n=e.XpG().$implicit;e.Y8G("routerLink",e.eq3(2,y,"/"+n.routerLink)),e.R7$(),e.SpI(" ",n.label," ")}}function L(i,h){if(1&i&&(e.j41(0,"li",18),e.DNE(1,G,2,4,"a",19),e.k0s()),2&i){const n=h.$implicit,t=e.XpG(4);e.AVh("selected",t.router.url.startsWith("/"+n.routerLink)),e.R7$(),e.Y8G("ngIf",n.visible)}}function R(i,h){if(1&i&&(e.j41(0,"ul",16),e.DNE(1,L,2,3,"li",17),e.k0s()),2&i){const n=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",n.items)}}function B(i,h){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",11)(2,"a",12),e.bIt("click",function(){e.eBV(n);const o=e.XpG().$implicit,u=e.XpG();return e.Njj(u.toggleSubmenu(o))}),e.nrm(3,"img",13),e.j41(4,"span",10),e.EFF(5),e.k0s(),e.nrm(6,"img",14),e.k0s(),e.DNE(7,R,2,1,"ul",15),e.k0s(),e.bVm()}if(2&i){const n=e.XpG().$implicit,t=e.XpG();e.R7$(2),e.AVh("selected",t.router.url.startsWith("/"+n.routerLink)),e.R7$(),e.Y8G("src",t.mountPathIcon(n.icon),e.B4B),e.R7$(2),e.JRh(n.label),e.R7$(),e.Y8G("src",t.isSubmenuVisible(n)?"/assets/images/general/icon-expand-less.svg":"/assets/images/general/icon-expand-more.svg",e.B4B),e.R7$(),e.Y8G("ngIf",t.isSubmenuVisible(n))}}function N(i,h){if(1&i&&(e.j41(0,"li",5),e.DNE(1,w,4,7,"a",6)(2,B,8,6,"ng-container",7),e.k0s()),2&i){const n=h.$implicit,t=e.XpG();e.Y8G("pTooltip",t.expanded?"":n.label),e.R7$(),e.Y8G("ngIf",(!n.items||0===n.items.length)&&n.visible),e.R7$(),e.Y8G("ngIf",n.items&&n.items.length>0&&n.visible)}}let D=(()=>
1{class i{sidebarSevice;router;height="100%";menuItems=[];expanded=!1;constructor(n,t){this.sidebarSevice=n,this.router=t,this.sidebarSevice.expandedChange.subscribe(o=>{this.toggleSidebarMenu(o)})}toggleSidebarMenu(n){this.expanded=n,n||this.menuItems.forEach(t=>{t.items&&(t.expanded=!1,t.items.forEach(o=>{o.expanded=!1}))})}toggleSubmenu(n){this.expanded?n.expanded=!n.expanded:(this.expanded=!0,n.expanded=!1)}mountPathIcon(n){return`assets/images/sidebar-menu/icons/icon-${n}.svg`}isSubmenuVisible(n){return n.expanded??!1}static \u0275fac=function(t){return new(t||i)(e.rXU(F),e.rXU(s.Ix))};static \u0275cmp=e.VBU({type:i,selectors:[["cpn-menu-sidebar"]],inputs:{height:"height",menuItems:"menuItems"},decls:6,vars:6,consts:[[1,"sidebar-menu",3,"ngStyle"],[1,"sidebar-body"],[1,"sidebar-navigation"],[1,"menu-links"],["class","nav-link","tooltipPosition","right",3,"pTooltip",4,"ngFor","ngForOf"],["tooltipPosition","right",1,"nav-link",3,"pTooltip"],["href","#",3,"routerLink","selected",4,"ngIf"],[4,"ngIf"],["href","#",3,"routerLink"],["alt","\xcdcones de sele\xe7\xe3o do menu lateral",1,"icon",3,"src"],[1,"nav-text"],[1,"submenu-container"],["href","javascript:void(0);",3,"click"],["alt","\xcdcones de sele\xe7\xe3o do sub-menu lateral",1,"icon",3,"src"],["alt","\xcdcones de expandir e retrair menu",3,"src"],["class","submenu-links",4,"ngIf"],[1,"submenu-links"],["class","submenu-item",3,"selected",4,"ngFor","ngForOf"],[1,"submenu-item"],[3,"routerLink",4,"ngIf"],[3,"routerLink"]],template:function(t,o){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ul",3),e.DNE(4,N,3,3,"li",4),e.k0s(),e.nrm(5,"cpn-chats"),e.k0s()()()),2&t&&(e.AVh("expanded",o.expanded),e.Y8G("ngStyle",e.eq3(4,U,o.height)),e.R7$(4),e.Y8G("ngForOf",o.menuItems))},dependencies:[d.Sq,d.bT,d.B3,s.Wk,P.m,j],styles:[".sidebar-menu[_ngcontent-%COMP%]{width:44px;background-color:#fff;position:relative;border-right:1px solid #DFDFE0;transition:all .5s ease;z-index:999;overflow:hidden}.sidebar-menu.expanded[_ngcontent-%COMP%]{width:190px}.sidebar-menu.expanded[_ngcontent-%COMP%]   .sidebar-head[_ngcontent-%COMP%]   .btn-toggle[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(180deg)}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-head[_ngcontent-%COMP%]{position:relative;height:65px}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]{height:calc(100% - 50px);list-style:none;display:flex;flex-direction:column;justify-content:space-between;padding-top:10px}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:center}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:.5rem 0;height:100%;display:flex;align-items:center;text-decoration:none;transition:all .3s ease;border-left:4px solid transparent;color:#5c6970}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{border-left:4px solid transparent;border-color:#fdba12!important}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%], .sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   .nav-text[_ngcontent-%COMP%]{filter:brightness(0%) saturate(100%)}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.selected[_ngcontent-%COMP%]{border-left:4px solid transparent;border-color:#fdba12!important}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.selected[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.selected[_ngcontent-%COMP%]   .nav-text[_ngcontent-%COMP%]{filter:brightness(0%) saturate(100%)}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{height:24px;width:24px;margin-left:6px;margin-right:10px}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .nav-text[_ngcontent-%COMP%]{font-size:.9rem;transition:all .3s ease;white-space:nowrap}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]{align-items:center}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]{margin:0;padding-left:20px}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]   .submenu-item[_ngcontent-%COMP%]{padding-left:25px;font-size:.9rem}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]   .submenu-item[_ngcontent-%COMP%]:hover{background-color:#f1f1f1}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]   .submenu-item[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]{color:#5c6970;filter:brightness(0%) saturate(100%)}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]   .submenu-item.selected[_ngcontent-%COMP%]{background-color:#f1f1f1}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]   .submenu-item.selected[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5c6970;filter:brightness(0%) saturate(100%)}.sidebar-menu[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]   .submenu-container[_ngcontent-%COMP%]   .submenu-links[_ngcontent-%COMP%]   .submenu-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border-left:0px;color:#5c6970}"]}
1)}return i})();var V=g(1131);const E=["logoutIcon"],$=()=>["home"],H=i=>({"right.px":i});function X(i,h){if(1&i&&(e.j41(0,"div",16)(1,"a",17),e.nrm(2,"img",18),e.EFF(3," Portal do Cliente Cl\xe1ssico "),e.k0s()()),2&i){const n=e.XpG();e.R7$(),e.Y8G("href",n.getOldPanelUrl(),e.B4B)}}function Y(i,h){1&i&&(e.j41(0,"div",19),e.EFF(1," Modo Observador "),e.k0s())}function q(i,h){if(1&i){const n=e.RV6();e.j41(0,"div",29),e.bIt("click",function(){const o=e.eBV(n).$implicit,u=e.XpG(3);return e.Njj(u.switchCompany(o))}),e.j41(1,"div",30)(2,"span",31),e.EFF(3),e.k0s(),e.j41(4,"span",32),e.EFF(5),e.k0s()()()}if(2&i){const n=h.$implicit,t=e.XpG(3);e.AVh("selected",n.idLoginInfo===(null==t.user?null:t.user.idLoginInfo)),e.R7$(3),e.JRh(n.companyName),e.R7$(2),e.Lme("",n.cnpjNumber," (",n.sapCode,")")}}function z(i,h){if(1&i&&(e.j41(0,"div",26),e.DNE(1,q,6,5,"div",27),e.nrm(2,"div",28),e.k0s()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.companies)}}function W(i,h){if(1&i){const n=e.RV6();e.j41(0,"div",23),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.requestCompanyAccess())}),e.nrm(1,"img",33),e.j41(2,"a"),e.EFF(3,"Adicionar Nova Empresa"),e.k0s()()}}function Q(i,h){if(1&i){const n=e.RV6();e.j41(0,"div",23),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.goToUserConfig())}),e.nrm(1,"img",34,2),e.j41(3,"a"),e.EFF(4,"Configura\xe7\xf5es"),e.k0s()()}}function J(i,h){if(1&i){const n=e.RV6();e.j41(0,"div",20),e.DNE(1,z,3,1,"div",21)(2,W,4,0,"div",22)(3,Q,5,0,"div",22),e.j41(4,"div",23),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.logout())}),e.nrm(5,"img",24,1),e.j41(7,"a",25),e.EFF(8,"Sair"),e.k0s()()()}if(2&i){const n=e.XpG();e.Y8G("ngStyle",e.eq3(4,H,n.getLogoutPosition())),e.R7$(),e.Y8G("ngIf",n.companies.length>0),e.R7$(),e.Y8G("ngIf",n.isShowConfig&&n.isUserCustomerType()),e.R7$(),e.Y8G("ngIf",n.isShowConfig)}}let K=(()=>{class i{sidebarService;userService;navigationService;authService;router;logoutIcon;CUSTOMER_NAME_MAX_LENGTH=24;user;customerName="";customerStyleClass="";isObserverMode=!1;isLogoutExpanded=!1;isSidebarExpanded=!1;isShowConfig=!0;companies=[];constructor(n,t,o,u,O){this.sidebarService=n,this.userService=t,this.navigationService=o,this.authService=u,this.router=O}ngOnInit(){this.updateUserInfo(),this.router.events.pipe((0,b.p)(n=>n instanceof s.wF)).subscribe(()=>{this.updateUserInfo()}),this.userService.userChanges().subscribe(()=>{this.updateUserInfo()})}handleClickOutside(n){const t=document.querySelector(".logout-container");this.isLogoutExpanded&&!t.contains(n.target)&&(this.isLogoutExpanded=!1)}updateUserInfo(){this.userService.getUserInfo().subscribe({next:n=>{this.user=n,this.user&&(this.setUserStyle(n),this.loadUserCompanies(n)),this.isShowConfig=!this.userService.showAccessTerm()}})}loadUserCompanies(n){const t=n.loginEmail;t&&this.userService.getCompaniesByEmail(t,!1).subscribe({next:o=>{const u=(o||[]).sort((O,S)=>O.companyName.localeCompare(S.companyName));this.companies=n.userType!==p.x.SotreqEmployee?u:[]},error:o=>{console.error("Error loading companies",o),this.companies=[]}})}switchCompany(n){this.user.idLoginInfo=n.idLoginInfo,this.userService.switchCompany(n.idLoginInfo).subscribe({next:t=>{if(t){this.user=t,this.setUserStyle(t),this.isLogoutExpanded=!1,this.userService.clearClassicSessionId().subscribe({error:u=>{console.warn("Erro ao limpar SesseioId",u)}}),this.userService.getLegacyCookieData(!1).subscribe({next:u=>{if(!u||this.user?.userType===p.x.SotreqEmployee||"SotreqEmployee"===u.tipoLoginInfo||!((u.empresaId??0)>0||(u.sapCodeList?.length??0)>0))return;const S=u.empresaId===n.companyId,se=!n.sapCode||(u.sapCodeList??[]).includes(n.sapCode);(!S||!se)&&console.warn("Legacy cookie diferente apos a troca",{selectedCompany:{companyId:n.companyId,sapCode:n.sapCode},legacyCookie:u})},error:u=>{console.warn("Error validating legacy cookie data",u)}});const o=this.userService.showAccessTerm()?"/accessTerm":"/home";this.router.navigateByUrl(o)}},error:t=>{console.error("Error switching company",t)}})}setUserStyle(n){switch(this.isObserverMode=n.isObserverMode,n.userType){case p.x.Customer:this.customerName=this.user?.customer?.name??"",this.customerStyleClass=this.isObserverMode?"sotreq-user-style":"customer-user-style";break;case p.x.CustomerEmployee:this.customerName=this.user?.customerEmployee?.name??this.user?.userName??"",this.customerStyleClass="customer-user-style";break;case p.x.SotreqEmployee:this.customerStyleClass="sotreq-user-style",this.customerName="Sotreq S/A"}}toggleSidebar(){this.isSidebarExpanded=!this.isSidebarExpanded,this.sidebarService.toggleExpansion()}checkOverflowCustomerName(){return this.customerName.length>this.CUSTOMER_NAME_MAX_LENGTH}getOldPanelUrl(){return this.navigationService.oldCustomerPanelUrl}toggleLogout(){this.isLogoutExpanded=!this.isLogoutExpanded}logout(){this.authService.logout()}
1goToUserConfig(){this.router.navigate(["./manage/user-config",this.user.id])}isUserCustomerType(){return this.user?.userType===p.x.Customer||this.user?.userType===p.x.CustomerEmployee}requestCompanyAccess(){this.router.navigate(["/access-request/validate-customer"],{queryParams:{source:"request-company-access"}})}getLogoutPosition(){if(this.logoutIcon){const n=this.logoutIcon.nativeElement.getBoundingClientRect();return window.innerWidth-n.right}return 0}static \u0275fac=function(t){return new(t||i)(e.rXU(F),e.rXU(m.D),e.rXU(c.o),e.rXU(V.h),e.rXU(s.Ix))};static \u0275cmp=e.VBU({type:i,selectors:[["cpn-app-header"]],viewQuery:function(t,o){if(1&t&&e.GBs(E,5),2&t){let u;e.mGM(u=e.lsd())&&(o.logoutIcon=u.first)}},hostBindings:function(t,o){1&t&&e.bIt("click",function(O){return o.handleClickOutside(O)},!1,e.EBC)},decls:17,vars:13,consts:[["logoutIcon",""],["exitIcon",""],["configIcon",""],[1,"header-container-left"],[1,"sidebar-expand-head","btn-toggle",3,"click"],[1,"pi","pi-bars","bars"],[1,"pi","pi-chevron-right","chevron-icon"],["src","/assets/images/logo-sotreqlink.svg","alt","sotreq-logo",1,"header-logo-sotreq-link",3,"routerLink"],[1,"header-container-right"],["class","link-old-panel-container",4,"ngIf"],["class","observer-mode-container",4,"ngIf"],[3,"ngClass"],[1,"logout-container",3,"click"],["tooltipStyleClass","small",3,"ngClass","pTooltip","positionLeft"],["alt","\xedcone de expandir / recolher o menu",1,"icon",3,"src"],["class","logout-option",3,"ngStyle",4,"ngIf"],[1,"link-old-panel-container"],["target","_blank","rel","noopener",3,"href"],["src","/assets/images/general/icon-link.svg","alt","imagem do \xedcone de link"],[1,"observer-mode-container"],[1,"logout-option",3,"ngStyle"],["class","companies-list",4,"ngIf"],["class","config-icons-container",3,"click",4,"ngIf"],[1,"config-icons-container",3,"click"],["src","/assets/images/general/icon-exit.svg","alt","\xedcone de logout",1,"icon","exit-icon"],[1,"logout-text"],[1,"companies-list"],["class","company-item",3,"selected","click",4,"ngFor","ngForOf"],[1,"divider"],[1,"company-item",3,"click"],[1,"company-info"],[1,"company-name"],[1,"company-codes"],["src","/assets/images/general/icon-add.svg","alt","\xedcone de adicionar",1,"icon","add-icon"],["src","/assets/images/general/icon-settings.svg","alt","\xedcone de Configura\xe7\xf5es",1,"icon","config-icon"]],template:function(t,o){if(1&t){const u=e.RV6();e.j41(0,"header")(1,"div",3)(2,"div",4),e.bIt("click",function(){return e.eBV(u),e.Njj(o.toggleSidebar())}),e.nrm(3,"i",5)(4,"i",6),e.k0s(),e.j41(5,"div"),e.nrm(6,"img",7),e.k0s()(),e.j41(7,"div",8),e.DNE(8,X,4,1,"div",9)(9,Y,2,0,"div",10),e.j41(10,"div",11)(11,"div",12),e.bIt("click",function(){return e.eBV(u),e.Njj(o.toggleLogout())}),e.j41(12,"div",13),e.EFF(13),e.k0s(),e.nrm(14,"img",14,0),e.k0s(),e.DNE(16,J,9,6,"div",15),e.k0s()()()}2&t&&(e.R7$(2),e.AVh("expanded",o.isSidebarExpanded),e.R7$(4),e.Y8G("routerLink",e.lJ4(12,$)),e.R7$(2),e.Y8G("ngIf",o.isShowConfig),e.R7$(),e.Y8G("ngIf",o.isObserverMode),e.R7$(),e.Y8G("ngClass",o.isObserverMode?"sotreq-user-style customer-container":"customer-user-style customer-container"),e.R7$(2),e.Y8G("ngClass",o.checkOverflowCustomerName()?"customer-name-overflow":"")("pTooltip",o.checkOverflowCustomerName()?o.customerName:"")("positionLeft",-20),e.R7$(),e.SpI(" ",o.customerName," "),e.R7$(),e.Y8G("src",o.isLogoutExpanded?"/assets/images/general/icon-expand-less.svg":"/assets/images/general/icon-expand-more.svg",e.B4B),e.R7$(2),e.Y8G("ngIf",o.isLogoutExpanded))},dependencies:[d.YU,d.Sq,d.bT,d.B3,s.Wk,P.m],styles:[".btn-toggle[_ngcontent-%COMP%]{border-radius:20%;cursor:pointer;color:#fff;padding-left:10px;display:flex;align-items:center}.expanded[_ngcontent-%COMP%]{flex-direction:row-reverse}.bars[_ngcontent-%COMP%]{font-size:20px}.chevron-icon[_ngcontent-%COMP%]{font-size:11px}.sidebar-expand-head.expanded[_ngcontent-%COMP%]   .chevron-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}header[_ngcontent-%COMP%]{width:100%;height:44px;display:flex;align-items:center;background-color:#000;justify-content:space-between}header[_ngcontent-%COMP%]   .header-container-left[_ngcontent-%COMP%]{display:flex}header[_ngcontent-%COMP%]   .header-container-left[_ngcontent-%COMP%]   .header-logo-sotreq-link[_ngcontent-%COMP%]{width:142px;margin-left:8px;
1cursor:pointer}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]{display:flex;height:100%}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .customer-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:310px;justify-content:center;color:#000}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .customer-container[_ngcontent-%COMP%]   .customer-name-overflow[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:220px}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .customer-user-style[_ngcontent-%COMP%]{background-color:#fff}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .sotreq-user-style[_ngcontent-%COMP%]{background-color:#fdba12}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .observer-mode-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:160px;justify-content:center;color:#fff}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .link-old-panel-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:250px;justify-content:center}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .link-old-panel-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;color:#fff!important;text-decoration:underline}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .logout-container[_ngcontent-%COMP%]{position:relative;display:flex;cursor:pointer}header[_ngcontent-%COMP%]   .header-container-right[_ngcontent-%COMP%]   .logout-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{cursor:pointer}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]{display:flex;position:absolute;align-items:flex-start;justify-content:center;top:44px;right:0;width:310px;min-height:80px;background-color:#fff;border:none;text-decoration:none;box-shadow:0 4px 8px #0003;z-index:1100;flex-direction:column;padding:25px 10px}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 4px;cursor:pointer;border-radius:4px}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item.selected[_ngcontent-%COMP%]{background-color:#dfdfe0;font-weight:500}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item.selected[_ngcontent-%COMP%]:hover{background-color:#dfdfe0}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   .company-name[_ngcontent-%COMP%]{font-weight:600}header[_ngcontent-%COMP%]   .logout-option[_ngcontent-%COMP%]   .companies-list[_ngcontent-%COMP%]   .company-item[_ngcontent-%COMP%]   .company-info[_ngcontent-%COMP%]   .company-codes[_ngcontent-%COMP%]{font-size:.85em;color:#0009}header[_ngcontent-%COMP%]   .p-tooltip.small[_ngcontent-%COMP%]   .p-tooltip-text[_ngcontent-%COMP%]{width:auto!important}header[_ngcontent-%COMP%]   .config-icons-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 0 8px 4px;cursor:pointer}header[_ngcontent-%COMP%]   .config-icon[_ngcontent-%COMP%]{padding-right:5px;width:23px}header[_ngcontent-%COMP%]   .exit-icon[_ngcontent-%COMP%]{padding-right:3px;padding-left:2px;width:20px}header[_ngcontent-%COMP%]   .logout-text[_ngcontent-%COMP%]{padding-left:3px}"]})}return i})();var Z=g(3957);function A(i,h){if(1&i){const n=e.RV6();
1e.j41(0,"footer")(1,"div",1)(2,"div",2)(3,"h5"),e.EFF(4,"Links \xdateis:"),e.k0s(),e.j41(5,"div",3)(6,"div")(7,"a",4),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.navigationService.openLink(o.linksEmum.SiteSotreq))}),e.EFF(8,"Site Sotreq"),e.k0s(),e.j41(9,"a",4),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.navigationService.openLink(o.linksEmum.Sis20))}),e.EFF(10,"SIS 2.0"),e.k0s(),e.j41(11,"a",4),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.navigationService.openLink(o.linksEmum.PecasOnline))}),e.EFF(12,"Pe\xe7as Online"),e.k0s()(),e.j41(13,"div")(14,"a",4),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.navigationService.openLink(o.linksEmum.VisionLink))}),e.EFF(15,"VisionLink"),e.k0s(),e.j41(16,"a",4),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.navigationService.openLink(o.linksEmum.ShopCat))}),e.EFF(17,"Shop Cat"),e.k0s(),e.j41(18,"a",4),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.navigationService.openLink(o.linksEmum.Sistema3s))}),e.EFF(19,"3S"),e.k0s()()()(),e.j41(20,"div",5)(21,"h5"),e.EFF(22,"Atendimento Sotreq:"),e.k0s(),e.j41(23,"div",6)(24,"div"),e.nrm(25,"img",7),e.k0s(),e.j41(26,"div")(27,"span",8),e.EFF(28,"Telefones"),e.k0s(),e.j41(29,"p",9)(30,"span",10),e.EFF(31,"3003 1920"),e.k0s(),e.EFF(32," capitais e regi\xf5es metropolitanas ou "),e.nrm(33,"br"),e.j41(34,"span",10),e.EFF(35,"0800 940 1920"),e.k0s(),e.EFF(36," demais localidades "),e.k0s()()(),e.j41(37,"div",11)(38,"div"),e.nrm(39,"img",12),e.k0s(),e.j41(40,"div")(41,"span",8),e.EFF(42,"Whatsapp"),e.k0s(),e.j41(43,"p",9),e.EFF(44,"(11) 3003 1920"),e.k0s()()()(),e.j41(45,"div",13)(46,"h5"),e.EFF(47,"Filiais Sotreq:"),e.k0s(),e.j41(48,"div",14)(49,"div")(50,"div")(51,"span",8),e.EFF(52,"SOTREQ - MACA\xc9"),e.k0s()(),e.j41(53,"p",9),e.EFF(54," Av. Mota Coqueiro, 187 "),e.nrm(55,"br"),e.EFF(56," Loteamento Cabi\xfanas - Maca\xe9 "),e.k0s()(),e.j41(57,"div")(58,"div")(59,"span",8),e.EFF(60,"SOMOV - RIO DE JANEIRO"),e.k0s()(),e.j41(61,"p",9),e.EFF(62," Av. Brasil, 7.200 Bonsucesso "),e.nrm(63,"br"),e.EFF(64," Rio de Janeiro - 21030-001 "),e.k0s()(),e.j41(65,"div")(66,"div")(67,"span",8),e.EFF(68,"SOTREQ - RIO DE JANEIRO - MATRIZ"),e.k0s()(),e.j41(69,"p",9),e.EFF(70," Av. Brasil, 7.200 Bonsucesso "),e.nrm(71,"br"),e.EFF(72," Rio de Janeiro - 21030-001 "),e.k0s()()()()()()}}let ee=(()=>{class i{navigationService;visible=!1;linksEmum=Z.N;constructor(n){this.navigationService=n}static \u0275fac=function(t){return new(t||i)(e.rXU(c.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-footer"]],inputs:{visible:"visible"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"footer-container"],[1,"footer-section","section1"],[1,"section1-links"],[3,"click"],[1,"footer-section","section2"],[1,"section2-contacts"],["src","assets\\images\\general\\telefone.png","alt","imagem de um telefone"],[1,"bold"],[1,"section-item-content"],[1,"bold-number"],[1,"flex","gap-2","mt-3"],["src","assets\\images\\general\\whatsapp_home.png","alt","imagem da logo do whatsapp"],[1,"footer-section","section3"],[1,"section3-address"]],template:function(t,o){1&t&&e.DNE(0,A,73,0,"footer",0),2&t&&e.Y8G("ngIf",o.visible)},dependencies:[d.bT],styles:["footer[_ngcontent-%COMP%]{width:100%;padding:10px 20px 40px 50px;margin-bottom:20px;background-color:#fff;transition:all .5s ease;border-top:1px solid #DFDFE0}.footer-container[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:10px}.footer-section[_ngcontent-%COMP%]{padding:10px}.section1[_ngcontent-%COMP%]   .section1-links[_ngcontent-%COMP%]{display:flex;margin-top:15px}.section1[_ngcontent-%COMP%]   .section1-links[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:inline-block;max-width:max-content;width:100%}.section1[_ngcontent-%COMP%]   .section1-links[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child{margin-right:40px}.section1[_ngcontent-%COMP%]   .section1-links[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;padding-bottom:14px}.section1[_ngcontent-%COMP%]   .section1-links[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:last-child{padding-bottom:0}.section2[_ngcontent-%COMP%]   .section2-contacts[_ngcontent-%COMP%]{display:flex;gap:4px;margin-top:15px}.section3[_ngcontent-%COMP%]   .section3-address[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:15px;margin-top:15px}.section-item-content[_ngcontent-%COMP%]{color:#404040;font-size:14px;margin-top:4px}a[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#0078d6;font-weight:700}.bold[_ngcontent-%COMP%]{font-weight:700;color:#022a63}.bold-number[_ngcontent-%COMP%]{font-weight:700;color:#404040}.otherPage[_ngcontent-%COMP%]{margin-top:12px}.otherPage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:13px;color:#404040;font-weight:600}@media screen and (max-width: 900px){.footer-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.footer-section[_ngcontent-%COMP%]{flex:1}}"]})}return i})();const ne=[{path:"",component:(()=>{class i{router;userService;menuItems;menuHeight;activePath;footerIsVisible=!1;DEBOUNCE_TIME=300;constructor(n,t){this.router=n,this.userService=t}ngOnInit(){this.refreshMenuBasedOnUser(),this.setHomePageStyle(),this.listenToUserChanges()}listenToUserChanges(){this.userService.userChanges().subscribe(()=>{this.refreshMenuBasedOnUser()})}refreshMenuBasedOnUser(){this.userService.getUserInfoWith403Redirect().subscribe(()=>{this.loadSidebarMenu()})}setHomePageStyle(){this.activePath=this.router.url,this.updateLayout(),this.router.events.pipe((0,b.p)(n=>n instanceof s.wF),(0,I.B)(this.DEBOUNCE_TIME)).subscribe(n=>{n instanceof s.wF&&this.setHomePageStyle()})}updateLayout(){const n=["/management/home","/home"];let t=!1;for(let o=0;o<=n.length;o++)t=n[o]==this.activePath||t;t?(this.menuHeight="100vh",setTimeout(()=>{this.footerIsVisible=!0},500)):(this.menuHeight="100%",this.footerIsVisible=!1)}hasSotreqMarketingPermission(){return this.userService.getUser()?.userType===p.x.SotreqEmployee&&this.userService.checkUserPermission(r.T.Read,_.G.GerenciamentoDeMarketing)}shouldHideNonHomeItemsByMarketingPermission(){return this.hasSotreqMarketingPermission()}isSotreqWithoutMarketingPermission(){return this.userService.getUser()?.userType===p.x.SotreqEmployee&&!this.hasSotreqMarketingPermission()}
1loadSidebarMenu(){if(this.router.url.includes("/management/"))this.menuItems=[{label:"P\xe1gina Inicial",icon:"home",routerLink:"management/home"},{label:"Clientes",icon:"customers",routerLink:"management/customers"},{label:"Configura\xe7\xf5es",icon:"settings",routerLink:"settings",expanded:!1,visible:!0,items:[{label:"Grupos",routerLink:"settings/groups",expanded:!1,visible:!0}]}];else{const n=this.shouldHideNonHomeItemsByMarketingPermission(),t=this.isSotreqWithoutMarketingPermission();this.menuItems=[{label:"Termo de Acesso",icon:"chevron-right",routerLink:"accessTerm",visible:this.userService.showAccessTerm()},{label:"P\xe1gina Inicial",icon:"home",routerLink:"home",visible:!this.userService.showAccessTerm()},{label:"Equipamentos",icon:"equipment",routerLink:"equipments",visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.Equipment))},{label:"Or\xe7amentos",icon:"budgets",routerLink:"budgets",expanded:!1,visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.Parts)||this.userService.checkUserPermission(r.T.Read,a.q.Services)),items:[{label:"Pe\xe7as",routerLink:"budgets/parts",expanded:!1,visible:!0},{label:"Servi\xe7os",routerLink:"budgets/services",expanded:!1,visible:!0}]},{label:"Recomenda\xe7\xf5es",icon:"lead",routerLink:"leads",visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.Leads))},{label:"Financeiro",icon:"financial",routerLink:"financial",expanded:!1,visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.Billets)||this.userService.checkUserPermission(r.T.Read,a.q.Invoices)),items:[{label:"Notas Fiscais",routerLink:"financial/invoices",expanded:!1,visible:!0},{label:"Boletos",routerLink:"financial/billets",expanded:!1,visible:!0}]},{label:"Pedidos",icon:"tracking",routerLink:"tracking",expanded:!1,visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.TrackingParts)||this.userService.checkUserPermission(r.T.Read,a.q.TrackingServices)),items:[{label:"Pe\xe7as",routerLink:"tracking/parts",expanded:!1,visible:!0},{label:"Servi\xe7os",routerLink:"tracking/services",expanded:!1,visible:!0}]},{label:"Relat\xf3rios",icon:"report",routerLink:"reports",visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.Reports))},{label:"Gerenciamento",icon:"management",routerLink:"manage",expanded:!1,visible:!n&&(t||this.userService.checkUserPermission(r.T.Read,a.q.ManageProfiles)||this.userService.checkUserPermission(r.T.Read,a.q.ManageUsers)||this.userService.checkUserPermission(r.T.Read,a.q.Groups))||this.userService.checkUserPermission(r.T.Read,a.q.Messaging),items:[{label:"Perfis",routerLink:"manage/profiles",expanded:!1,visible:t||this.userService.checkUserPermission(r.T.Read,a.q.ManageProfiles)},{label:"Usu\xe1rios",routerLink:"manage/users",expanded:!1,visible:t||this.userService.checkUserPermission(r.T.Read,a.q.ManageUsers)},{label:"Grupos",routerLink:"manage/groups",expanded:!1,visible:t||this.userService.checkUserPermission(r.T.Read,a.q.Groups)},{label:"Mensageria",routerLink:"manage/messaging",expanded:!1,visible:t||this.userService.checkUserPermission(r.T.Read,a.q.Messaging)}]},{label:"Marketing",icon:"management",routerLink:"marketing",expanded:!1,visible:this.userService.getUser()?.userType===p.x.SotreqEmployee&&this.userService.checkUserPermission(r.T.Read,_.G.GerenciamentoDeMarketing),items:[{label:"Relat\xf3rios",routerLink:"marketing/reports",expanded:!1,visible:this.userService.getUser()?.userType===p.x.SotreqEmployee&&this.userService.checkUserPermission(r.T.Read,_.G.GerenciamentoDeMarketing)}]}]}}static \u0275fac=function(t){return new(t||i)(e.rXU(s.Ix),e.rXU(m.D))};static \u0275cmp=e.VBU({type:i,selectors:[["cpn-main-layout"]],decls:6,vars:4,consts:[[1,"app-header"],[1,"app-sidebar"],[3,"height","menuItems"],[1,"app-main",3,"ngClass"],[1,"app-footer",3,"visible"]],template:function(t,o){1&t&&(e.nrm(0,"cpn-app-header",0),e.j41(1,"aside",1),e.nrm(2,"cpn-menu-sidebar",2),e.k0s(),e.j41(3,"main",3),e.nrm(4,"router-outlet"),e.k0s(),e.nrm(5,"app-footer",4)),2&t&&(e.R7$(2),e.Y8G("height",o.menuHeight)("menuItems",o.menuItems),e.R7$(),e.Y8G("ngClass",o.footerIsVisible?"":"overflow-auto"),e.R7$(2),e.Y8G("visible",o.footerIsVisible))},dependencies:[d.YU,s.n3,D,K,ee],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"head head" "navi main" "foot foot";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr;max-height:100vh;overflow:auto}.app-header[_ngcontent-%COMP%]{grid-area:head}.app-sidebar[_ngcontent-%COMP%]{grid-area:navi}.app-main[_ngcontent-%COMP%]{grid-area:main;padding:0;transition:all .5s ease;min-height:0}.app-footer[_ngcontent-%COMP%]{grid-area:foot}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}  .p-tooltip{pointer-events:none}  .p-tooltip .p-tooltip-text{padding:.5rem;width:auto!important}']})}return i})(),children:[{path:"",loadChildren:()=>g.e(223).then(g.bind(g,3223)).then(i=>i.CompanyModule)},{path:"unauthorized",component:l},{path:"**",component:v}]}];let te=(()=>
vendor: 2,739 bytes, line 1
1{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=e.$C({type:i});static \u0275inj=e.G2t({imports:[s.iI.forChild(ne),s.iI]})}return i})(),ie=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=e.$C({type:i});static \u0275inj=e.G2t({providers:[c.o],imports:[d.MD,te,x,P.S]})}return i})()},152:(k,C,g)=>{g.d(C,{B:()=>P});var d=g(8839),c=g(9974),s=g(4360);function P(e,x=d.E){return(0,c.N)((v,p)=>{let m=null,M=null,f=null;const l=()=>{if(m){m.unsubscribe(),m=null;const a=M;M=null,p.next(a)}};function r(){const a=f+e,_=x.now();if(_<a)return m=this.schedule(void 0,a-_),void p.add(m);l()}v.subscribe((0,s._)(p,a=>{M=a,f=x.now(),m||(m=x.schedule(r,e),p.add(m))},()=>{l(),p.complete()},void 0,()=>{M=m=null}))})}},8839:(k,C,g)=>{g.d(C,{b:()=>M,E:()=>m});var d=g(8359);class c extends d.yU{constructor(l,r){super()}schedule(l,r=0){return this}}const s={setInterval(f,l,...r){const{delegate:a}=s;return a?.setInterval?a.setInterval(f,l,...r):setInterval(f,l,...r)},clearInterval(f){const{delegate:l}=s;return(l?.clearInterval||clearInterval)(f)},delegate:void 0};var P=g(7908),x=g(6129);class v{constructor(l,r=v.now){this.schedulerActionCtor=l,this.now=r}schedule(l,r=0,a){return new this.schedulerActionCtor(this,l).schedule(a,r)}}v.now=x.U.now;const m=new class p extends v{constructor(l,r=v.now){super(l,r),this.actions=[],this._active=!1}flush(l){const{actions:r}=this;if(this._active)return void r.push(l);let a;this._active=!0;do{if(a=l.execute(l.state,l.delay))break}while(l=r.shift());if(this._active=!1,a){for(;l=r.shift();)l.unsubscribe();throw a}}}(class e extends c{constructor(l,r){super(l,r),this.scheduler=l,this.work=r,this.pending=!1}schedule(l,r=0){var a;if(this.closed)return this;this.state=l;const _=this.id,b=this.scheduler;return null!=_&&(this.id=this.recycleAsyncId(b,_,r)),this.pending=!0,this.delay=r,this.id=null!==(a=this.id)&&void 0!==a?a:this.requestAsyncId(b,this.id,r),this}requestAsyncId(l,r,a=0){return s.setInterval(l.flush.bind(l,this),a)}recycleAsyncId(l,r,a=0){if(null!=a&&this.delay===a&&!1===this.pending)return r;null!=r&&s.clearInterval(r)}execute(l,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const a=this._execute(l,r);if(a)return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(l,r){let _,a=!1;try{this.work(l)}catch(b){a=!0,_=b||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),_}unsubscribe(){if(!this.closed){const{id:l,scheduler:r}=this,{actions:a}=r;this.work=this.state=this.scheduler=null,this.pending=!1,(0,P.o)(a,this),null!=l&&(this.id=this.recycleAsyncId(r,l,null)),this.delay=null,super.unsubscribe()}}}),M=m}}]);

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.