1"use strict";(self.webpackChunkf_cms=self.webpackChunkf_cms||[]).push([[1607],{21607:(ct,C,m)=>{m.r(C),m.d(C,{NotificationsRoutes:()=>rt,notificationsRoutes:()=>k});var p=m(56610),f=m(37222),l=m(35025),N=m(73893),g=m(24937),M=m(22497),t=m(23279),x=m(60564);const u=()=>["fa-solid","fa-bell"],E=()=>["fa-solid","fa-gear"],R=()=>["fa-solid","fa-envelope"],O=()=>["fa-solid","fa-star"],j=()=>["fa-solid","fa-at"],Y=()=>["fa-solid","fa-users"],T=()=>["fa-solid","fa-briefcase"],I=()=>["fa-solid","fa-cog"],$=()=>["fa-solid","fa-check-square"],w=()=>["fa-solid","fa-filter"],_=o=>["notification-item",o],v=o=>["notification-icon",o],h=()=>["icon","icon-calendario"],b=o=>["notification-category",o],y=()=>["icon","icon-alerta"],P=()=>["fa-solid","fa-search"];function G(o,i){if(1&o&&(t.qex(0),t.EFF(1," Notifica\xe7\xf5es n\xe3o lidas "),t.j41(2,"span",11),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.unreadNotifications)}}function S(o,i){if(1&o&&(t.qex(0),t.EFF(1," Notifica\xe7\xf5es importantes "),t.j41(2,"span",12),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.importantNotifications)}}function D(o,i){if(1&o&&(t.qex(0),t.EFF(1," Men\xe7\xf5es "),t.j41(2,"span",11),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.mentionNotifications)}}function V(o,i){if(1&o&&(t.qex(0),t.EFF(1," Notifica\xe7\xf5es sociais "),t.j41(2,"span",11),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.socialNotifications)}}function A(o,i){if(1&o&&(t.qex(0),t.EFF(1," Notifica\xe7\xf5es de trabalho "),t.j41(2,"span",11),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.workNotifications)}}function J(o,i){if(1&o&&(t.qex(0),t.EFF(1," Notifica\xe7\xf5es do sistema "),t.j41(2,"span",11),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.systemNotifications)}}function H(o,i){if(1&o&&(t.qex(0),t.EFF(1," Todas as notifica\xe7\xf5es "),t.j41(2,"span",11),t.EFF(3),t.k0s(),t.bVm()),2&o){const n=t.XpG();t.R7$(3),t.JRh(n.totalNotifications)}}function X(o,i){1&o&&t.nrm(0,"div",48)}function z(o,i){1&o&&(t.j41(0,"div",49),t.nrm(1,"mmp5-mm-icons",50),t.k0s()),2&o&&(t.R
17$(),t.Y8G("icon",t.lJ4(1,y)))}function B(o,i){if(1&o){const n=t.RV6();t.qex(0),t.j41(1,"div",38),t.DNE(2,X,1,0,"div",39)(3,z,2,2,"div",40),t.j41(4,"div",38),t.nrm(5,"mmp5-mm-icons",2),t.k0s(),t.j41(6,"div",41),t.nrm(7,"div",42),t.j41(8,"div",43)(9,"div",44),t.nrm(10,"mmp5-mm-icons",2),t.j41(11,"span"),t.EFF(12),t.k0s()(),t.j41(13,"span",38),t.EFF(14),t.k0s()(),t.j41(15,"div",45)(16,"button",46),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.viewNotification(a))}),t.EFF(17),t.k0s(),t.j41(18,"button",47),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.markAsRead(a))}),t.EFF(19),t.k0s(),t.j41(20,"button",47),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.toggleImportance(a))}),t.EFF(21),t.k0s()()()(),t.bVm()}if(2&o){const n=i.$implicit,e=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(13,_,n.viewed?"":"unread")),t.R7$(),t.Y8G("ngIf",!n.viewed),t.R7$(),t.Y8G("ngIf",n.important),t.R7$(),t.Y8G("ngClass",t.eq3(15,v,e.getIconClass(n.type))),t.R7$(),t.Y8G("icon",e.getMMIconForType(n.type)),t.R7$(2),t.Y8G("innerHTML",n.title,t.npT),t.R7$(3),t.Y8G("icon",t.lJ4(17,h)),t.R7$(2),t.JRh(e.getTimeFromNow(n.sendDate)),t.R7$(),t.Y8G("ngClass",t.eq3(18,b,e.getCategoryClass(n.category))),t.R7$(),t.SpI(" ",e.getCategoryName(n.category)," "),t.R7$(3),t.SpI(" ",e.getActionButtonText(n)," "),t.R7$(2),t.SpI(" ",n.viewed?"Marcar como n\xe3o lida":"Marcar como lida"," "),t.R7$(2),t.SpI(" ",n.important?"Remover import\xe2ncia":"Marcar como importante"," ")}}function L(o,i){if(1&o&&(t.j41(0,"div",35)(1,"div",36),t.EFF(2,"Hoje"),t.k0s(),t.DNE(3,B,22,20,"ng-container",37),t.k0s()),2&o){const n=t.XpG();t.R7$(3),t.Y8G("ngForOf",n.todayNotifications)}}function q(o,i){1&o&&t.nrm(0,"div",48)}function K(o,i){1&o&&(t.j41(0,"div",49),t.nrm(1,"mmp5-mm-icons",50),t.k0s()),2&o&&(t.R
17$(),t.Y8G("icon",t.lJ4(1,y)))}function U(o,i){if(1&o){const n=t.RV6();t.qex(0),t.j41(1,"div",38),t.DNE(2,q,1,0,"div",39)(3,K,2,2,"div",40),t.j41(4,"div",38),t.nrm(5,"mmp5-mm-icons",2),t.k0s(),t.j41(6,"div",41),t.nrm(7,"div",42),t.j41(8,"div",43)(9,"div",44),t.nrm(10,"mmp5-mm-icons",2),t.j41(11,"span"),t.EFF(12),t.k0s()(),t.j41(13,"span",38),t.EFF(14),t.k0s()(),t.j41(15,"div",45)(16,"button",46),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.viewNotification(a))}),t.EFF(17),t.k0s(),t.j41(18,"button",47),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.markAsRead(a))}),t.EFF(19),t.k0s(),t.j41(20,"button",47),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.toggleImportance(a))}),t.EFF(21),t.k0s()()()(),t.bVm()}if(2&o){const n=i.$implicit,e=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(13,_,n.viewed?"":"unread")),t.R7$(),t.Y8G("ngIf",!n.viewed),t.R7$(),t.Y8G("ngIf",n.important),t.R7$(),t.Y8G("ngClass",t.eq3(15,v,e.getIconClass(n.type))),t.R7$(),t.Y8G("icon",e.getMMIconForType(n.type)),t.R7$(2),t.Y8G("innerHTML",n.title,t.npT),t.R7$(3),t.Y8G("icon",t.lJ4(17,h)),t.R7$(2),t.JRh(e.getTimeFromNow(n.sendDate)),t.R7$(),t.Y8G("ngClass",t.eq3(18,b,e.getCategoryClass(n.category))),t.R7$(),t.SpI(" ",e.getCategoryName(n.category)," "),t.R7$(3),t.SpI(" ",e.getActionButtonText(n)," "),t.R7$(2),t.SpI(" ",n.viewed?"Marcar como n\xe3o lida":"Marcar como lida"," "),t.R7$(2),t.SpI(" ",n.important?"Remover import\xe2ncia":"Marcar como importante"," ")}}function W(o,i){if(1&o&&(t.j41(0,"div",35)(1,"div",36),t.EFF(2,"Ontem"),t.k0s(),t.DNE(3,U,22,20,"ng-container",37),t.k0s()),2&o){const n=t.XpG();t.R7$(3),t.Y8G("ngForOf",n.yesterdayNotifications)}}function Z(o,i){1&o&&t.nrm(0,"div",48)}function Q(o,i){1&o&&(t.j41(0,"div",49),t.nrm(1,"mmp5-mm-icons",50),t.k0s()),2&o&&(t.R
17$(),t.Y8G("icon",t.lJ4(1,y)))}function tt(o,i){if(1&o){const n=t.RV6();t.qex(0),t.j41(1,"div",38),t.DNE(2,Z,1,0,"div",39)(3,Q,2,2,"div",40),t.j41(4,"div",38),t.nrm(5,"mmp5-mm-icons",2),t.k0s(),t.j41(6,"div",41),t.nrm(7,"div",42),t.j41(8,"div",43)(9,"div",44),t.nrm(10,"mmp5-mm-icons",2),t.j41(11,"span"),t.EFF(12),t.k0s()(),t.j41(13,"span",38),t.EFF(14),t.k0s()(),t.j41(15,"div",45)(16,"button",46),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.viewNotification(a))}),t.EFF(17),t.k0s(),t.j41(18,"button",47),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.markAsRead(a))}),t.EFF(19),t.k0s(),t.j41(20,"button",47),t.bIt("click",function(){const a=t.eBV(n).$implicit,c=t.XpG(2);return t.Njj(c.toggleImportance(a))}),t.EFF(21),t.k0s()()()(),t.bVm()}if(2&o){const n=i.$implicit,e=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(13,_,n.viewed?"":"unread")),t.R7$(),t.Y8G("ngIf",!n.viewed),t.R7$(),t.Y8G("ngIf",n.important),t.R7$(),t.Y8G("ngClass",t.eq3(15,v,e.getIconClass(n.type))),t.R7$(),t.Y8G("icon",e.getMMIconForType(n.type)),t.R7$(2),t.Y8G("innerHTML",n.title,t.npT),t.R7$(3),t.Y8G("icon",t.lJ4(17,h)),t.R7$(2),t.JRh(e.getTimeFromNow(n.sendDate)),t.R7$(),t.Y8G("ngClass",t.eq3(18,b,e.getCategoryClass(n.category))),t.R7$(),t.SpI(" ",e.getCategoryName(n.category)," "),t.R7$(3),t.SpI(" ",e.getActionButtonText(n)," "),t.R7$(2),t.SpI(" ",n.viewed?"Marcar como n\xe3o lida":"Marcar como lida"," "),t.R7$(2),t.SpI(" ",n.important?"Remover import\xe2ncia":"Marcar como importante"," ")}}function it(o,i){if(1&o&&(t.j41(0,"div",35)(1,"div",36),t.EFF(2,"Anteriores"),t.k0s(),t.DNE(3,tt,22,20,"ng-container",37),t.k0s()),2&o){const n=t.XpG();t.R7$(3),t.Y8G("ngForOf",n.olderNotifications)}}function nt(o,i){if(1&o){const n=t.RV6();t.j41(0,"div",51)(1,"div",52),t.nrm(2,"mmp5-mm-icons",2),t.k0s(),t.j41(3,"div",53),t.EFF(4,"Nenhuma notifica\xe7\xe3o"),t.k0s(),t.j41(5,"div",54),t.EFF(6," Voc\xea n\xe3o tem notifica\xe7\xf5es no momento. As notifica\xe7\xf5es aparecer\xe3o aqui quando houver atualiza\xe7\xf5es, men\xe7\xf5es ou intera\xe7\xf5es. "),t.k0s(),t.j41(7,"button",55),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.loadNotifications())}),t.EFF(8,"Atualizar"),t.k0s()()}2&o&&(t.R7$(2),t.Y8G("icon",t.lJ4(1,u)))}function ot(o,i){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const n=t.XpG(2);t.R7$(),t.SpI(' N\xe3o encontramos notifica\xe7\xf5es que correspondam \xe0 sua busca "',n.searchTerm,'". ')}}function et(o,i){1&o&&(t.qex(0),t.EFF(1," N\xe3o h\xe1 notifica\xe7\xf5es que correspondam ao filtro selecionado. "),t.bVm())}function at(o,i){if(1&o){const n=t.RV6();t.j41(0,"div",51)(1,"div",52),t.nrm(2,"mmp5-mm-icons",2),t.k0s(),t.j41(3,"div",53),t.EFF(4,"Nenhuma notifica\xe7\xe3o encontrada"),t.k0s(),t.j41(5,"div",54),t.DNE(6,ot,2,1,"ng-container",56)(7,et,2,0,"ng-container",56),t.k0s(),t.j41(8,"button",55),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return a.setFilter("all"),t.Njj(a.searchTerm="")}),t.EFF(9,"Limpar filtros"),t.k0s()()}if(2&o){const n=t.XpG();t.R7$(2),t.Y8G("icon",t.lJ4(3,P)),t.R7$(4),t.Y8G("ngIf",n.searchTerm),t.R7$(),t.Y8G("ngIf",!n.searchTerm)}}var r,o,s;(o=r||(r={})).COMMENT="comment",o.LIKE="like",o.MENTION="mention",o.INVITE="invite",o.EVENT="event",o.TASK="task",o.SYSTEM="system",function(o){o.SOCIAL="social",o.WORK="work",o.SYSTEM="system"}(s||(s={}));class d{constructor(i,n,e){this.socialService=i,this.router=n,this.location=e,this.notifications=[],this.todayNotifications=[],this.yesterdayNotifications=[],this.olderNotifications=[],this.totalNotifications=0,this.unreadNotifications=0,this.importantNotifications=0,this.mentionNotifications=0,this.socialNotifications=0,this.workNotifications=0,this.systemNotifications=0,this.searchTerm="",this.activeFilter="all"}ngOnInit(){l.locale("pt-br"),this.activeFilter="all",this.loadNotifications()}loadNotifications(){const i=[{id:1,title:"<b>Marcelo Souza</b> mencionou voce em um comentario no projeto <b>Portal de Clientes</b>",type:r.MENTION,category:s.WORK,sendDate:l().subtract(30,"minutes").format("DD/MM/YYYY HH:mm"),viewed:!1,important:!0,author:{id:1,name:"Marcelo Souza",profileImage:"https://i.pravatar.cc/150?img=3"},actionUrl:"/social/feed/post/123"},{id:2,title:"<b>Ana Silva</b> curtiu sua publicacao sobre <b>Resultados do Trimestre</b>",type:r.LIKE,category:s.SOCIAL,sendDate:l().subtract(2,"hours").format("DD/MM/YYYY HH:mm"),viewed:!1,important:!1,author:{id:2,name:"Ana Silva",profileImage:"https://i.pravatar.cc/150?img=1"},actionUrl:"/social/feed/post/456"},{id:3,title:"<b>Carlos Mendes</b> comentou em sua publicacao <b>Novos Projetos 2025</b>",type:r.COMMENT,category:s.SOCIAL,sendDate:l().subtract(4,"hours").format("DD/MM/YYYY HH:mm"),viewed:!1,important:!1,author:{id:3,name:"Carlos Mendes",profileImage:"https://i.pravatar.cc/150?img=2"},actionUrl:"/social/feed/post/789"},{id:4,title:"<b>Equipe de Marketing</b> convidou voce para o evento <b>Lancamento da Nova Campanha</b>",type:r.EVENT,category:s.WORK,sendDate:l().subtract(1,"day").format("DD/MM/YYYY HH:mm"),viewed:!1,important:!0,actionUrl:"/social/events/123"},{id:5,title:"<b>
1Recursos Humanos</b> publicou um novo documento <b>Politica de Home Office</b>",type:r.SYSTEM,category:s.SYSTEM,sendDate:l().subtract(1,"day").format("DD/MM/YYYY HH:mm"),viewed:!0,important:!1,actionUrl:"/social/documents/123"},{id:6,title:"<b>Fernanda Oliveira</b> mencionou voce em um comentario <b>Reuniao de Planejamento</b>",type:r.MENTION,category:s.WORK,sendDate:l().subtract(2,"days").format("DD/MM/YYYY HH:mm"),viewed:!1,important:!0,author:{id:4,name:"Fernanda Oliveira",profileImage:"https://i.pravatar.cc/150?img=5"},actionUrl:"/social/feed/post/101"},{id:7,title:"<b>Pedro Santos</b> adicionou voce a equipe <b>Inovacao Digital</b>",type:r.INVITE,category:s.WORK,sendDate:l().subtract(3,"days").format("DD/MM/YYYY HH:mm"),viewed:!0,important:!1,author:{id:5,name:"Pedro Santos",profileImage:"https://i.pravatar.cc/150?img=4"},actionUrl:"/social/communities/456"},{id:8,title:"<b>Sistema</b> atualizou seu perfil com novas informacoes",type:r.SYSTEM,category:s.SYSTEM,sendDate:l().subtract(5,"days").format("DD/MM/YYYY HH:mm"),viewed:!0,important:!1,actionUrl:"/social/profile"},{id:9,title:"<b>Juliana Costa</b> atribuiu uma nova tarefa a voce: <b>Revisao de Conteudo</b>",type:r.TASK,category:s.WORK,sendDate:l().subtract(7,"days").format("DD/MM/YYYY HH:mm"),viewed:!0,important:!1,author:{id:6,name:"Juliana Costa",profileImage:"https://i.pravatar.cc/150?img=6"},actionUrl:"/social/tasks/789"},{id:10,title:"<b>Roberto Almeida</b> curtiu seu comentario em <b>Estrategia de Marketing 2025</b>",type:r.LIKE,category:s.SOCIAL,sendDate:l().subtract(10,"days").format("DD/MM/YYYY HH:mm"),viewed:!0,important:!1,author:{id:7,name:"Roberto Almeida",profileImage:"https://i.pravatar.cc/150?img=7"},actionUrl:"/social/feed/post/202"}];this.notifications=i,this.updateNotificationCounts(),this.groupNotificationsByDate()}groupNotificationsByDate(){const i=l().startOf("day"),n=l().subtract(1,"days").startOf("day"),e=this.getFilteredNotifications(),a=this.searchTerm?this.applySearchFilter(e):e;this.todayNotifications=a.filter(c=>l(c.sendDate,"DD/MM/YYYY HH:mm").isSame(i,"day")),this.yesterdayNotifications=a.filter(c=>l(c.sendDate,"DD/MM/YYYY HH:mm").isSame(n,"day")),this.olderNotifications=a.filter(c=>l(c.sendDate,"DD/MM/YYYY HH:mm").isBefore(n,"day"))}getFilteredNotifications(){switch(this.activeFilter){case"unread":return this.notifications.filter(i=>!i.viewed);case"important":return this.notifications.filter(i=>i.important);case"mentions":return this.notifications.filter(i=>i.type===r.MENTION);case"social":return this.notifications.filter(i=>i.category===s.SOCIAL);case"work":return this.notifications.filter(i=>i.category===s.WORK);case"system":return this.notifications.filter(i=>i.category===s.SYSTEM);default:return this.notifications}}applySearchFilter(i){if(!this.searchTerm)return i;const n=this.searchTerm.toLowerCase();return i.filter(e=>{const a=e.title?.toLowerCase()||"",c=e.content?.toLowerCase()||"";return a.includes(n)||c.includes(n)})}setFilter(i){this.activeFilter=i,this.groupNotificationsByDate()}updateNotificationCounts(){this.totalNotifications=this.notifications.length,this.unreadNotifications=this.notifications.filter(i=>!i.viewed).length,this.importantNotifications=this.notifications.filter(i=>i.important).length,this.mentionNotifications=this.notifications.filter(i=>i.type===r.MENTION).length,this.socialNotifications=this.notifications.filter(i=>i.category===s.SOCIAL).length,this.workNotifications=this.notifications.filter(i=>i.category===s.WORK).length,this.systemNotifications=this.notifications.filter(i=>i.category===s.SYSTEM).length}resetCounts(){this.totalNotifications=0,this.unreadNotifications=0,this.importantNotifications=0,this.mentionNotifications=0,this.socialNotifications=0,this.workNotifications=0,this.systemNotifications=0}getIconClass(i){switch(i){case r.COMMENT:return"icon-comment";case r.LIKE:return"icon-like";case r.MENTION:return"icon-mention";case r.INVITE:return"icon-invite";case r.EVENT:return"icon-event";case r.TASK:return"icon-task";default:return""}}getMMIconForType(i){switch(i){case r.COMMENT:return["fa-solid","fa-comment"];case r.LIKE:return["fa-solid","fa-heart"];case r.MENTION:return["fa-solid","fa-at"];case r.INVITE:return["fa-solid","fa-user-plus"];case r.EVENT:return["fa-solid","fa-calendar"];case r.TASK:return["fa-solid","fa-tasks"];default:return["fa-solid","fa-bell"]}}getCategoryClass(i){switch(i){case s.SOCIAL:return"category-social";case s.WORK:return"category-work";case s.SYSTEM:return"category-system";default:return""}}getCategoryName(i){switch(i){case s.SOCIAL:return"Social";case s.WORK:return"Trabalho";case s.SYSTEM:return"Sistema";default:return""}}getTimeFromNow(i){return i?l(i,"DD/MM/YYYY HH:mm").fromNow():""}getActionButtonText(i){if(!i)return"Ver detalhes";switch(i.type){case r.COMMENT:return"Ver comentario";case r.LIKE:return"Ver publicacao";case r.MENTION:return"Ver mencao";case r.INVITE:return"Responder convite";case r.EVENT:return"Ver evento";case r.TASK:return"Ver tarefa";default:return"Ver detalhes"}}viewNotification(i){i&&(i.viewed||this.markAsRead(i),i.actionUrl&&this.router.navigateByUrl(i.actionUrl))}markAsRead(i){i&&(i.viewed=!i.viewed,this.updateNotificationCounts(),"unread"===this.activeFilter&&this.groupNotificationsByDate())}markAllAsRead(){this.notifications.forEach(i=>
1{i.viewed=!0}),this.updateNotificationCounts(),"unread"===this.activeFilter&&this.groupNotificationsByDate()}toggleImportance(i){i&&(i.important=!i.important,this.updateNotificationCounts(),"important"===this.activeFilter&&this.groupNotificationsByDate())}static{this.\u0275fac=function(n){return new(n||d)(t.rXU(N.l),t.rXU(x.Ix),t.rXU(p.aZ))}}static{this.\u0275cmp=t.VBU({type:d,selectors:[["app-notifications"]],standalone:!0,features:[t.aNF],decls:118,vars:59,consts:[[1,"container"],[1,"page-title"],[3,"icon"],[1,"notifications-container"],[1,"notifications-sidebar"],[1,"sidebar-title"],["title","Configura\xe7\xf5es de notifica\xe7\xf5es",1,"settings-btn"],[1,"filter-menu"],[1,"filter-item",3,"click"],[1,"filter-left"],[1,"filter-icon"],[1,"filter-count"],[1,"filter-count","urgent"],[1,"category-section"],[1,"category-title"],[1,"settings-item"],[1,"settings-label"],[1,"toggle-switch"],["type","checkbox","checked",""],[1,"toggle-slider"],["type","checkbox"],[1,"notifications-main"],[1,"notifications-header"],[1,"notifications-title"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"header-actions"],[1,"btn","btn-text",3,"click"],[1,"btn","btn-outline",3,"click"],[1,"notification-search"],["type","text","placeholder","Buscar notifica\xe7\xf5es...",3,"ngModelChange","ngModel"],[1,"notification-list"],["class","notification-group",4,"ngIf"],["class","notification-empty",4,"ngIf"],[1,"notification-group"],[1,"group-header"],[4,"ngFor","ngForOf"],[3,"ngClass"],["class","notification-unread-marker",4,"ngIf"],["class","notification-priority",4,"ngIf"],[1,"notification-content"],[1,"notification-title",3,"innerHTML"],[1,"notification-meta"],[1,"n
1otification-time"],[1,"notification-actions"],[1,"action-btn","action-btn-primary",3,"click"],[1,"action-btn",3,"click"],[1,"notification-unread-marker"],[1,"notification-priority"],["title","Importante",3,"icon"],[1,"notification-empty"],[1,"empty-icon"],[1,"empty-title"],[1,"empty-text"],[1,"btn","btn-primary",3,"click"],[4,"ngIf"]],template:function(n,e){1&n&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"mmp5-mm-icons",2),t.j41(3,"h1"),t.EFF(4,"Notifica\xe7\xf5es"),t.k0s()(),t.j41(5,"div",3)(6,"div",4)(7,"div",5),t.EFF(8," Filtros "),t.j41(9,"span",6),t.nrm(10,"mmp5-mm-icons",2),t.k0s()(),t.j41(11,"div",7)(12,"div",8),t.bIt("click",function(){return e.setFilter("all")}),t.j41(13,"div",9)(14,"span",10),t.nrm(15,"mmp5-mm-icons",2),t.k0s(),t.j41(16,"span"),t.EFF(17,"Todas"),t.k0s()(),t.j41(18,"span",11),t.EFF(19),t.k0s()(),t.j41(20,"div",8),t.bIt("click",function(){return e.setFilter("unread")}),t.j41(21,"div",9)(22,"span",10),t.nrm(23,"mmp5-mm-icons",2),t.k0s(),t.j41(24,"span"),t.EFF(25,"N\xe3o lidas"),t.k0s()(),t.j41(26,"span",11),t.EFF(27),t.k0s()(),t.j41(28,"div",8),t.bIt("click",function(){return e.setFilter("important")}),t.j41(29,"div",9)(30,"span",10),t.nrm(31,"mmp5-mm-icons",2),t.k0s(),t.j41(32,"span"),t.EFF(33,"Importantes"),t.k0s()(),t.j41(34,"span",12),t.EFF(35),t.k0s()(),t.j41(36,"div",8),t.bIt("click",function(){return e.setFilter("mentions")}),t.j41(37,"div",9)(38,"span",10),t.nrm(39,"mmp5-mm-icons",2),t.k0s(),t.j41(40,"span"),t.EFF(41,"Men\xe7\xf5es"),t.k0s()(),t.j41(42,"span",11),t.EFF(43),t.k0s()()(),t.j41(44,"div",13)(45,"div",14),t.EFF(46,"Categorias"),t.k0s(),t.j41(47,"div",8),t.bIt("click",function(){return e.setFilter("social")}),t.j41(48,"div",9)(49,"span",10),t.nrm(50,"mmp5-mm-icons",2),t.k0s(),t.j41(51,"span"),t.EFF(52,"Social"),t.k0s()(),t.j41(53,"span",11),t.EFF(54),t.k0s()(),t.j41(55,"div",8),t.bIt("click",function(){return e.setFilter("work")}),t.j41(56,"div",9)(57,"span",10),t.nrm(58,"mmp5-mm-icons",2),t.k0s(),t.j41(59,"span"),t.EFF(60,"Trabalho"),t.k0s()(),t.j41(61,"span",11),t.EFF(62),t.k0s()(),t.j41(63,"div",8),t.bIt("click",function(){return e.setFilter("system")}),t.j41(64,"div",9)(65,"span",10),t.nrm(66,"mmp5-mm-icons",2),t.k0s(),t.j41(67,"span"),t.EFF(68,"Sistema"),t.k0s()(),t.j41(69,"span",11),t.EFF(70),t.k0s()()(),t.j41(71,"div",13)(72,"div",14),t.EFF(73,"Configura\xe7\xf5es"),t.k0s(),t.j41(74,"div",15)(75,"span",16),t.EFF(76,"Notifica\xe7\xf5es por e-mail"),t.k0s(),t.j41(77,"label",17),t.nrm(78,"input",18)(79,"span",19),t.k0s()(),t.j41(80,"div",15)(81,"span",16),t.EFF(82,"Notifica\xe7\xf5es no navegador"),t.k0s(),t.j41(83,"label",17),t.nrm(84,"input",18)(85,"span",19),t.k0s()(),t.j41(86,"div",15)(87,"span",16),t.EFF(88,"Sons de notifica\xe7\xe3o"),t.k0s(),t.j41(89,"label",17),t.nrm(90,"input",20)(91,"span",19),t.k0s()()()(),t.j41(92,"div",21)(93,"div",22)(94,"div",23),t.qex(95,24),t.DNE(96,G,4,1,"ng-container",25)(97,S,4,1,"ng-container",25)(98,D,4,1,"ng-container",25)(99,V,4,1,"ng-container",25)(100,A,4,1,"ng-container",25)(101,J,4,1,"ng-container",25)(102,H,4,1,"ng-container",26),t.bVm(),t.k0s(),t.j41(103,"div",27)(104,"button",28),t.bIt("click",function(){return e.markAllAsRead()}),t.nrm(105,"mmp5-mm-icons",2),t.EFF(106," Marcar todas como lidas "),t.k0s(),t.j41(107,"button",29),t.bIt("click",function(){return"all"!==e.activeFilter?e.setFilter("all"):null}),t.nrm(108,"mmp5-mm-icons",2),t.EFF(109),t.k0s()()(),t.j41(110,"div",30)(111,"input",31),t.mxI("ngModelChange",function(c){return t.DH7(e.searchTerm,c)||(e.searchTerm=c),c}),t.bIt("ngModelChange",function(){return e.groupNotificationsByDate()}),t.k0s()(),t.j41(112,"div",32),t.DNE(113,L,4,1,"div",33)(114,W,4,1,"div",33)(115,it,4,1,"div",33)(116,nt,9,2,"div",34)(117,at,10,4,"div",34),t.k0s()()()()),2&n&&(t.R7$(2),t.Y8G("icon",t.lJ4(48,u)),t.R7$(8),t.Y8G("icon",t.lJ4(49,E)),t.R7$(2),t.AVh("active","all"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(50,u)),t.R7$(4),t.JRh(e.totalNotifications),t.R7$(),t.AVh("active","unread"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(51,R)),t.R7$(4),t.JRh(e.unreadNotifications),t.R7$(),t.AVh("active","important"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(52,O)),t.R7$(4),t.JRh(e.importantNotifications),t.R7$(),t.AVh("active","mentions"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(53,j)),t.R7$(4),t.JRh(e.mentionNotifications),t.R7$(4),t.AVh("active","social"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(54,Y)),t.R7$(4),t.JRh(e.socialNotifications),t.R7$(),t.AVh("active","work"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(55,T)),t.R7$(4),t.JRh(e.workNotifications),t.R7$(),t.AVh("active","system"===e.activeFilter),t.R7$(3),t.Y8G("icon",t.lJ4(56,I)),t.R7$(4),t.JRh(e.systemNotifications),t.R7$(25),t.Y8G("ngSwitch",e.activeFilter),t.R7$(),t.Y8G("ngSwitchCase","unread"),t.R7$(),t.Y8G("ngSwitchCase","important"),t.R7$(),t.Y8G("ngSwitchCase","mentions"),t.R7$(),t.Y8G("ngSwitchCase","social"),t.R7$(),t.Y8G("ngSwitchCase","work"),t.R7$(),t.Y8G("ngSwitchCase","system"),t.R7$(4),t.Y8G("icon",t.lJ4(57,$)),t.R7$(2),t.AVh("active","all"!==e.activeFilter),t.R7$(),t.Y8G("icon",t.lJ4(58,w)),t.R7$(),t.SpI(" ","all"!==e.activeFilter?"Limpar filtro":"Filtrar"," "),t.R7$(2),t.R50("ngModel",e.searchTerm),t.R7$(2),t.Y8G("ngIf",e.todayNotifications.length>0),t.R7$(),t.Y8G("ngIf",e.yesterdayNotifications.length>0),t.R7$(),t.Y8G("ngIf",e.olderNotifications.length>0),t.R7$(),t.Y8G("ngIf",0===e.notifications.length),t.R7$(),t.Y8G("ngIf",e.notifications.length>0&&0===e.todayNotifications.length&&0===e.yesterdayNotifications.length&&0===e.olderNotifications.length))},dependencies:[p.MD,p.YU,p.Sq,p.bT,p.ux,p.e1,p.fG,f.YN,f.me,f.BC,f.vS,f.X1,g.ys,g.tz,g.S3,M.G],styles:['.container[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0 15px}.page-title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:700;margin-bottom:20px;color:var(--primary);display:flex;align-items:center;gap:10px}.notifications-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:280px 1fr;gap:20px;margin-bottom:30px}.notifications-sidebar[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;box-shadow:0 2px 8px #0000000d;padding:20px;height:-moz-fit-content;height:fit-content;position:sticky;top:80px}.sidebar-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;margin-bottom:20px;color:var(--gray-800);display:flex;justify-content:space-between;align-items:center}.settings-btn[_ngcontent-%COMP%]{color:var(--gray-600);cursor:pointer;font-size:1rem;transition:color .2s}.settings-btn[_ngcontent-%COMP%]:hover{color:var(--primary)}.filter-menu[_ngcontent-%COMP%]{margin-bottom:25px}.filter-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px;cursor:pointer;border-radius:8px;margin-bottom:5px;transition:background-color .2s}.filter-item[_ngcontent-%COMP%]:hover{background-color:var(--gray-100)}.filter-item.active[_ngcontent-%COMP%]{background-color:var(--lighter-primary);color:var(--primary);font-weight:500}.filter-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.filter-icon[_ngcontent-%COMP%]{width:18px;text-align:center}.filter-count[_ngcontent-%COMP%]{display:inline-block;background-color:var(--lighter-primary);color:var(--primary);font-size:.75rem;min-width:20px;height:20px;border-radius:10px;text-align:center;line-height:20px;font-weight:600}.filter-count.urgent[_ngcontent-%COMP%]{background-color:#ffebee;color:var(--danger)}.category-section[_ngcontent-%COMP%]{margin-bottom:25px}.category-title[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:var(--gray-700);margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px}.toggle-switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:38px;height:20px}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.toggle-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:var(--gray-300);transition:.4s;border-radius:34px}.toggle-slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:#fff;transition:.4s;border-radius:50%}input[_ngcontent-%COMP%]:checked + .toggle-slider[_ngcontent-%COMP%]{background-color:var(--primary)}input[_ngcontent-%COMP%]:checked + .toggle-slider[_ngcontent-%COMP%]:before{transform:translate(18px)}.settings-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.settings-label[_ngcontent-%COMP%]{font-size:.9rem;color:var(--gray-700)}.notifications-main[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;box-shadow:0 2px 8px #0000000d;overflow:hidden}.notifications-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--gray-200);background-color:var(--gray-100)}.notifications-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;color:var(--gray-800);display:flex;align-items:center;gap:10px}.notifications-title[_ngcontent-%COMP%] .filter-count[_ngcontent-%COMP%]{font-size:.8rem;height:22px;min-width:22px;line-height:22px}.header-actions[_ngcontent-%COMP%]{display:flex;gap:15px;align-items:center}.btn[_ngcontent-%COMP%]{padding:8px 15px;border-radius:5px;border:none;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:5px;transition:background-color .2s}.btn-text[_ngcontent-%COMP%]{background:none;color:var(--primary);padding:5px 10px}.btn-text[_ngcontent-%COMP%]:hover{background-color:var(--lighter-primary)}.btn-primary[_ngcontent-%COMP%]{background-color:var(--primary);color:#fff}.btn-primary[_ngcontent-%COMP%]:hover{background-color:var(--dark-primary)}.btn-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--gray-300);color:var(--gray-700)}
1.btn-outline[_ngcontent-%COMP%]:hover{background-color:var(--gray-100)}.btn-outline.active[_ngcontent-%COMP%]{background-color:var(--lighter-primary);color:var(--primary);border-color:var(--lighter-primary)}.notification-search[_ngcontent-%COMP%]{display:flex;padding:15px 20px;border-bottom:1px solid var(--gray-200)}.notification-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:10px 15px;border-radius:5px;border:1px solid var(--gray-300);font-size:.9rem}.notification-list[_ngcontent-%COMP%]{max-height:700px;overflow-y:auto}.notification-group[_ngcontent-%COMP%]{padding:15px 0;border-bottom:1px solid var(--gray-200)}.group-header[_ngcontent-%COMP%]{padding:0 20px 10px;font-size:.95rem;font-weight:600;color:var(--gray-600)}.notification-item[_ngcontent-%COMP%]{display:flex;padding:12px 20px;cursor:pointer;transition:background-color .2s;position:relative}.notification-item[_ngcontent-%COMP%]:hover{background-color:var(--gray-100)}.notification-item.unread[_ngcontent-%COMP%], .notification-item.unread[_ngcontent-%COMP%]:hover{background-color:var(--lighter-primary)}.notification-unread-marker[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;width:3px;background-color:var(--primary)}.notification-priority[_ngcontent-%COMP%]{position:absolute;right:20px;top:12px;font-size:.7rem;color:var(--danger)}.notification-icon[_ngcontent-%COMP%]{width:48px;height:48px;border-radius:50%;margin-right:15px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.2rem;flex-shrink:0;background-color:#495057}.icon-comment[_ngcontent-%COMP%]{background-color:var(--info)}.icon-like[_ngcontent-%COMP%]{background-color:var(--danger)}.icon-mention[_ngcontent-%COMP%]{background-color:var(--primary)}.icon-invite[_ngcontent-%COMP%]{background-color:var(--warning)}.icon-event[_ngcontent-%COMP%]{background-color:var(--secondary)}.icon-task[_ngcontent-%COMP%]{background-color:var(--success)}.notification-content[_ngcontent-%COMP%]{flex-grow:1;padding-right:30px}.notification-title[_ngcontent-%COMP%]{margin-bottom:5px;font-size:.95rem;color:var(--gray-800);line-height:1.4}.notification-title[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-weight:600}.notification-meta[_ngcontent-%COMP%]{display:flex;gap:15px;font-size:.8rem;color:var(--gray-600);align-items:center}.notification-time[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.notification-category[_ngcontent-%COMP%]{display:inline-block;padding:2px 8px;border-radius:12px;font-size:.75rem;background-color:var(--gray-200)}.category-social[_ngcontent-%COMP%]{background-color:#e6f2ff;color:var(--info)}.category-work[_ngcontent-%COMP%]{background-color:#e6f7e6;color:var(--success)}.category-system[_ngcontent-%COMP%]{background-color:var(--lighter-primary);color:var(--primary)}.notification-actions[_ngcontent-%COMP%]{margin-top:10px;display:none}.notification-item[_ngcontent-%COMP%]:hover .notification-actions[_ngcontent-%COMP%]{display:flex;gap:10px}.action-btn[_ngcontent-%COMP%]{padding:5px 10px;border-radius:4px;font-size:.8rem;background-color:#fff;border:1px solid var(--gray-300);color:var(--gray-700);cursor:pointer;transition:background-color .2s}.action-btn[_ngcontent-%COMP%]:hover{background-color:var(--gray-100)}.action-btn-primary[_ngcontent-%COMP%]{background-color:var(--light-primary);color:var(--primary);border-color:var(--light-primary)}.action-btn-primary[_ngcontent-%COMP%]:hover{background-color:var(--light-primary)}.notification-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;color:var(--gray-600)}.empty-icon[_ngcontent-%COMP%]{font-size:4rem;color:var(--gray-400);margin-bottom:20px}.empty-title[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:600;margin-bottom:10px;color:var(--gray-700)}.empty-text[_ngcontent-%COMP%]{max-width:400px;margin-bottom:20px}@media (max-width: 900px){.notifications-container[_ngcontent-%COMP%]{grid-template-columns:1fr}.notifications-sidebar[_ngcontent-%COMP%]{display:none}}@media (max-width: 600px){.notifications-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:15px}.header-actions[_ngcontent-%COMP%]{width:100%;justify-content:space-between}.notification-item[_ngcontent-%COMP%]{padding:12px 15px}.notification-icon[_ngcontent-%COMP%]{width:40px;height:40px;margin-right:10px}.notification-priority[_ngcontent-%COMP%]{right:10px}.notification-title[_ngcontent-%COMP%]{font-size:.9rem}.notification-meta[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:5px}}']})}}const k=[{path:"",component:d}],rt=k}}]);
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.