import{a as h}from"./chunk-UQNNXZN7.js";import"./chunk-2ZNS6QTD.js";import"./chunk-PQGNYTS4.js";import"./chunk-P3WQM3KW.js";import{a as b}from"./chunk-FSCI3FDB.js";import"./chunk-WFZJP5WR.js";import"./chunk-F6KLNSUK.js";import"./chunk-VSFNMVXJ.js";import"./chunk-WQ6DP4JQ.js";import{Db as p,Ob as u,sb as f}from"./chunk-YSQLW2JA.js";import"./chunk-NVJ2ZZFT.js";import{bb as m,dd as d,hd as l,ya as c}from"./chunk-SKPDQO4E.js";var x=`<div class="row justify-content-center">
    <div class="col-xl-8 col-lg-12 col-md-12">
        <div class="row">
            <div class="col-12 py-3">
                <!-- <armon-notification-send *ngIf="permissionSend"></armon-notification-send> -->
                <nz-tabset [nzAnimated]="false">
                    <nz-tab [nzTitle]="titleTemplateRead">
                        <ng-template #titleTemplateRead><span class="unread-count"
                                *ngIf="unreadCount && unreadCount>0">{{unreadCount}}</span>{{'NOTIFICATIONS.UNREAD_NOTIFICATIONS' | translate}}
                        </ng-template>
                        <armon-notification-list [isUnreadList]="true"></armon-notification-list>
                    </nz-tab>
                    <nz-tab [nzTitle]="titleTemplateUnread">
                        <ng-template #titleTemplateUnread>{{'NOTIFICATIONS.READ_NOTIFICATIONS' | translate}}
                        </ng-template>
                        <armon-notification-list [isUnreadList]="false"></armon-notification-list>
                    </nz-tab>
                </nz-tabset>
            </div>
        </div>
    </div>
</div>`;var v=`.justify-content-center{-webkit-box-pack:center;-moz-box-pack:center;-webkit-flex-pack:center;-ms-flex-pack:center;-moz-justify-content:center;-webkit-justify-content:center;justify-content:center}.justify-content-flex-end{-webkit-box-pack:end;-moz-box-pack:end;-webkit-flex-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;-webkit-justify-content:flex-end;justify-content:flex-end}.card-footer{padding:.28rem .7rem}.alert{font-size:.756rem}@media screen and (min-width: 992px){.modal-xxl{max-width:1640px}}@media screen and (min-width: 1200px){.modal-xxxl{max-width:1860px}}.modal-fs{max-width:none;position:absolute;margin:auto;inset:16px;height:100vh;display:flex}.btn-link{text-decoration:none}.btn-link:hover{text-decoration:underline}.invalid-feedback{margin-top:0!important;font-size:.672rem!important}:host .unread-count{-webkit-border-radius:.375rem;-moz-border-radius:.375rem;border-radius:.375rem;padding:0 6px;margin-right:6px;color:#fff;background-color:#62a325}
`;var g=function(o,t,i,n){var r=arguments.length,e=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,t,i,n);else for(var s=o.length-1;s>=0;s--)(a=o[s])&&(e=(r<3?a(e):r>3?a(t,i,e):a(t,i))||e);return r>3&&e&&Object.defineProperty(t,i,e),e},S=class{systemService;notificationService;authService;unreadCount=0;subscriptionNotificationCountUpdated;permissionSend=!1;constructor(t,i,n){this.systemService=t,this.notificationService=i,this.authService=n}ngOnInit(){this.initializeSubscriptions(),this.getUnreadCount()}ngOnDestroy(){this.subscriptionNotificationCountUpdated.unsubscribe()}initializeSubscriptions(){this.permissionSend=this.authService.checkPermission(l.SYSTEM.getRead()),this.subscriptionNotificationCountUpdated=this.systemService.onNotificationCountUpdated.subscribe(t=>{this.unreadCount=t})}getUnreadCount(){this.notificationService.getUnreadNotificationCount().subscribe(t=>{this.unreadCount=t})}static ctorParameters=()=>[{type:f},{type:b},{type:u}]};S=g([c({selector:"armon-account-notification",template:x,standalone:!0,imports:[p,m,h,d],styles:[v]})],S);export{S as AccountNotificationComponent};
