1import{a as A}from"./chunk-P5KKHUGT.js";import{a as E}from"./chunk-QC7U7WMQ.js";import{a as P}from"./chunk-OOL72BVQ.js";import{a as T}from"./chunk-D2XG2G4M.js";import"./chunk-M7LUVHFC.js";import"./chunk-U4SACSCY.js";import"./chunk-IMLQTV43.js";import"./chunk-67EEWBVW.js";import"./chunk-ZJTOJQ7M.js";import"./chunk-CYMFHE3D.js";import{n as U}from"./chunk-JS3DMGHX.js";import"./chunk-ZTT6U2GW.js";import{$a as f,Cb as m,Ib as _,Kb as y,Lb as u,Mb as C,Nb as e,Ob as o,Pb as g,Tb as x,Xb as N,Yb as a,ba as D,ia as r,ja as p,mb as h,rb as l,rc as R,xa as d}from"./chunk-NZKIUOYA.js";import"./chunk-GAL4ENT6.js";var w=()=>[1,2,3],S=(i,n)=>n.id;function I(i,n){i&1&&(e(0,"div",1),g(1,"app-loading",2),o())}function b(i,n){i&1&&(g(0,"br"),u(1,I,2,0,"div",1,y)),i&2&&(f(),C(R(0,w)))}function k(i,n){if(i&1){let t=x();e(0,"app-notification",5),N("notificationRead",function(){r(t);let s=a(3);return p(s.onNotificationRead())}),o()}if(i&2){let t=n.$implicit;m("notification",t)}}function M(i,n){if(i&1&&u(0,k,1,1,"app-notification",4,S),i&2){let t=a(2);C(t.notifications())}}function V(i,n){if(i&1){let t=x();e(0,"app-empty-state",6),N("onActionClick",function(){r(t);let s=a(2);return p(s.onEmptyStateAction())}),o()}i&2&&m("showAction",!1)}function z(i,n){if(i&1&&(e(0,"div",0),l(1,M,2,0)(2,V,1,1,"app-empty-state",3),o()),i&2){let t=a();f(),_(t.notifications().length>0?1:2)}}var v=class i{notificationsService=D(T);isLoading=d(!0);notifications=d([]);ngOnInit(){this.loadUnreadNotifications()}loadUnreadNotifications(){this.notificationsService.fetchUnreadNotifications().subscribe({next:n=>{this.notifications.set(n.data),this.isLoading.set(!1)},error:n=>{this.isLoading.set(!1)}})}onNotificationRead(){this.loadUnreadNotifications()}onEmptyStateAction(){this.loadUnreadNotifications()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["app-un-read-notifications-page"]],decls:2,vars:1,consts:[[1,"notifications-container"],[1,"bg-gray-300","rounded-lg","gap-5","mb-3"],["size","md","variant","skeleton","height","50px"],["title","No tienes notificaciones pendientes","description","Todas tus notificaciones pendientes se mostrar\xE1n aqu\xED. \xA1Mantente al d\xEDa!","icon","\u{1F4EC}","actionText","Actualizar","actionIcon","\u{1F504}","variant","search","size","md",3,"showAction"],[3,"notification"],[3,"notificationRead","notification"],["title","No tienes notificaciones pendientes","description","Todas tus notificaciones pendientes se mostrar\xE1n aqu\xED. \xA1Mantente al d\xEDa!","icon","\u{1F4EC}","actionText","Actualizar","actionIcon","\u{1F504}","variant","search","size","md",3,"onActionClick","showAction"]],template:function(t,c){t&1&&l(0,b,3,1)(1,z,3,1,"div",0),t&2&&_(c.isLoading()?0:1)},dependencies:[U,A,P,E],styles:[".notifications-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}"]})};export{v as default};
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.