import{a as K}from"./chunk-JT6ZQ4T7.js";import"./chunk-N7PBPSN6.js";import"./chunk-3Z7PXZF3.js";import{a as J}from"./chunk-43BLBOSI.js";import"./chunk-IWSLIKCG.js";import"./chunk-2DXJE6G7.js";import{a as H,b as U}from"./chunk-7RP244JU.js";import"./chunk-LHGSJXTX.js";import{ga as b,ia as L,la as Y,ma as $,na as m}from"./chunk-ZKNPBXGB.js";import{c as R,d as q,f as G}from"./chunk-S3ADKFO2.js";import{d as V,n as v}from"./chunk-I5MYHHJE.js";import{$c as j,Fb as r,Fc as f,Gb as n,Gc as y,Hb as a,Hc as P,Ib as c,Ta as M,Tb as A,Wa as o,Wb as E,Xb as _,Z as C,_ as x,aa as S,ca as g,gc as I,hc as O,ic as l,jc as p,kc as N,lb as u,mb as D,pb as w,qb as z,rb as B,vc as k,wa as T,wc as F}from"./chunk-CKLXM6EG.js";import"./chunk-TSRGIXR5.js";var ie=["*"],ne=`
.p-overlaybadge {
    position: relative;
}

.p-overlaybadge .p-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    transform-origin: 100% 0;
    margin: 0;
    outline-width: dt('overlaybadge.outline.width');
    outline-style: solid;
    outline-color: dt('overlaybadge.outline.color');
}
`,ae={root:"p-overlaybadge"},Q=(()=>{class e extends L{name="overlaybadge";style=ne;classes=ae;static \u0275fac=(()=>{let t;return function(s){return(t||(t=T(e)))(s||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),W=new S("OVERLAYBADGE_INSTANCE"),h=(()=>{class e extends ${$pcOverlayBadge=g(W,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(m,{self:!0});styleClass;style;badgeSize;severity;value;badgeDisabled=!1;set size(t){this._size=t,!this.badgeSize&&this.size&&console.log("size property is deprecated and will removed in v18, use badgeSize instead.")}get size(){return this._size}_size;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}_componentStyle=g(Q);constructor(){super()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=u({type:e,selectors:[["p-overlayBadge"],["p-overlay-badge"],["p-overlaybadge"]],inputs:{styleClass:"styleClass",style:"style",badgeSize:"badgeSize",severity:"severity",value:"value",badgeDisabled:[2,"badgeDisabled","badgeDisabled",j],size:"size"},features:[k([Q,{provide:W,useExisting:e},{provide:Y,useExisting:e}]),z([m]),w],ngContentSelectors:ie,decls:3,vars:11,consts:[[3,"pBind"],[3,"pt","styleClass","badgeSize","severity","value","badgeDisabled"]],template:function(i,s){i&1&&(E(),n(0,"div",0),_(1),c(2,"p-badge",1),a()),i&2&&(O(s.cx("root")),r("pBind",s.ptm("root")),o(2),I(s.style),r("pt",s.ptm("pcBadge"))("styleClass",s.styleClass)("badgeSize",s.badgeSize)("severity",s.severity)("value",s.value)("badgeDisabled",s.badgeDisabled))},dependencies:[v,U,H,b,m],encapsulation:2,changeDetection:0})}return e})(),X=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=D({type:e});static \u0275inj=x({imports:[h,b,b]})}return e})();var se=()=>({count:4});function re(e,d){if(e&1&&(n(0,"div",12)(1,"div",13)(2,"div",14)(3,"p",15)(4,"span",16),c(5,"img",17),a(),n(6,"span",18),l(7),a()(),n(8,"p",19),l(9),a()(),n(10,"div")(11,"p",20),l(12),a()()()()),e&2){let t=d.$implicit;o(5),r("src",t.image,M),o(2),p(t.title),o(2),p(t.subtitle),o(3),p(t.createdAt)}}var Z=class e{title="title";Translationprefix="notifications";tabsConfig=[];onTabChange(d){this.activeTab=d,this.activeTabValue=d}activeTab=0;activeTabValue=0;notifications=[{title:"\u0637\u0644\u0628\u0627\u062A \u0634\u0631\u0627\u0621 \u0641\u064A \u0627\u0646\u062A\u0638\u0627\u0631 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629",subtitle:"\u0644\u062F\u064A\u0643 \u0637\u0644\u0628\u0627\u062A \u0634\u0631\u0627\u0621 \u062A\u062D\u062A\u0627\u062C \u0625\u0644\u0649 \u0645\u0631\u0627\u062C\u0639\u062A\u0643 \u0648\u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0639\u0644\u064A\u0647\u0627",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/check-icon.svg"},{title:"\u0645\u0633\u062A\u0648\u0649 \u0645\u062E\u0632\u0648\u0646 \u0645\u0646\u062E\u0641\u0636",subtitle:"\u0645\u0646\u062A\u062C\u0627\u062A \u0648\u0635\u0644\u062A \u0625\u0644\u0649 \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u062F\u0646\u0649 \u0645\u0646 \u0627\u0644\u0645\u062E\u0632\u0648\u0646",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/inventory-icon.svg"},{title:"\u0645\u0634\u0643\u0644\u0629 \u0645\u0639 \u0645\u0648\u0631\u062F",subtitle:"\u0627\u0644\u0645\u0648\u0631\u062F ABC \u0644\u0645 \u064A\u0642\u0645 \u0628\u062A\u0633\u0644\u064A\u0645 \u0627\u0644\u0637\u0644\u0628 \u0641\u064A \u0627\u0644\u0645\u0648\u0639\u062F \u0627\u0644\u0645\u062D\u062F\u062F",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/vendor-icon.svg"},{title:"\u0627\u0636\u0627\u0641\u0629 \u0645\u0648\u0638\u0641",subtitle:"\u062A\u0645 \u0627\u0636\u0627\u0641\u0629 \u0645\u0648\u0638\u0641 \u0644\u0646\u0638\u0627\u0645 \u0627\u0644\u0645\u0634\u062A\u0631\u064A\u0627\u062A",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/employe-icon.svg"},{title:"\u0637\u0644\u0628\u0627\u062A \u0634\u0631\u0627\u0621 \u0641\u064A \u0627\u0646\u062A\u0638\u0627\u0631 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629",subtitle:"\u0644\u062F\u064A\u0643 \u0637\u0644\u0628\u0627\u062A \u0634\u0631\u0627\u0621 \u062A\u062D\u062A\u0627\u062C \u0625\u0644\u0649 \u0645\u0631\u0627\u062C\u0639\u062A\u0643 \u0648\u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0639\u0644\u064A\u0647\u0627",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/check-icon.svg"},{title:"\u0645\u0633\u062A\u0648\u0649 \u0645\u062E\u0632\u0648\u0646 \u0645\u0646\u062E\u0641\u0636",subtitle:"\u0645\u0646\u062A\u062C\u0627\u062A \u0648\u0635\u0644\u062A \u0625\u0644\u0649 \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u062F\u0646\u0649 \u0645\u0646 \u0627\u0644\u0645\u062E\u0632\u0648\u0646",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/inventory-icon.svg"},{title:"\u0645\u0634\u0643\u0644\u0629 \u0645\u0639 \u0645\u0648\u0631\u062F",subtitle:"\u0627\u0644\u0645\u0648\u0631\u062F ABC \u0644\u0645 \u064A\u0642\u0645 \u0628\u062A\u0633\u0644\u064A\u0645 \u0627\u0644\u0637\u0644\u0628 \u0641\u064A \u0627\u0644\u0645\u0648\u0639\u062F \u0627\u0644\u0645\u062D\u062F\u062F",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/vendor-icon.svg"},{title:"\u0627\u0636\u0627\u0641\u0629 \u0645\u0648\u0638\u0641",subtitle:"\u062A\u0645 \u0627\u0636\u0627\u0641\u0629 \u0645\u0648\u0638\u0641 \u0644\u0646\u0638\u0627\u0645 \u0627\u0644\u0645\u0634\u062A\u0631\u064A\u0627\u062A",createdAt:"  \u0662\u200F/\u0661\u0661\u200F/\u0662\u0660\u0662\u0665 \u0663:\u0661\u0665:\u0661\u0669 \u0645",image:"../../../../assets/images/icons/employe-icon.svg"}];ngOnInit(){this.tabsConfig=[{title:"all",value:0,url:"procurement/reason-purchase-request",activeTabValue:0,length:5},{title:"read",value:1,url:"procurement/reason-purchase-request",activeTabValue:1,length:1},{title:"unread",value:2,url:"procurement/return-reason",activeTabValue:2,length:4}]}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-notifications"]],decls:22,vars:20,consts:[[3,"Translationprefix","title","showBreadcrumb"],[1,"mt-4","bg-white","p-4","rounded-3"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"title","d-flex"],["value","4"],[1,"pi","pi-bell",2,"font-size","1.5rem"],[1,"px-2"],[1,"sub-title"],[1,"link"],[3,"tabChanged","tabs","default","Showtranslate","translate","showLength"],[1,"mt-3"],["class","card-custom my-3",4,"ngFor","ngForOf"],[1,"card-custom","my-3"],[1,"d-flex","justify-content-between","align-items-center"],[1,"text"],[1,"title-card","fw-bold","mb-1"],[1,"icon"],["loading","lazy",3,"src"],[1,"mx-2"],[1,"subtitle-card","text-muted","mb-0","mt-2"],[1,"text-muted"]],template:function(t,i){t&1&&(n(0,"section")(1,"div"),c(2,"app-page-title",0),a(),n(3,"div",1)(4,"div",2)(5,"div")(6,"p",3)(7,"p-overlaybadge",4),c(8,"i",5),a(),n(9,"span",6),l(10),f(11,"translate"),a()(),n(12,"span",7),l(13),f(14,"translate"),a()(),n(15,"div",8)(16,"span"),l(17),f(18,"translate"),a()()(),n(19,"app-tabs",9),A("tabChanged",function(ee){return i.onTabChange(ee)}),a(),n(20,"div",10),B(21,re,13,4,"div",11),a()()()),t&2&&(o(2),r("Translationprefix",i.Translationprefix)("title",i.title)("showBreadcrumb",!0),o(8),p(y(11,12,"notifications.title")),o(3),N(" ",P(14,14,"notifications.newCount",F(19,se))," "),o(4),p(y(18,17,"notifications.markAllRead")),o(2),r("tabs",i.tabsConfig)("default",i.activeTabValue)("Showtranslate",!0)("translate",i.Translationprefix)("showLength",!0),o(2),r("ngForOf",i.notifications))},dependencies:[J,v,V,K,G,R,X,h,q],styles:[".link[_ngcontent-%COMP%]{color:#717182;font-size:16px;font-style:normal;font-weight:700;line-height:normal;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:auto;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.title[_ngcontent-%COMP%]{color:#0a0a0a;font-size:25px;font-style:normal;font-weight:700;line-height:normal}.sub-title[_ngcontent-%COMP%]{color:#717182;font-size:16px;font-style:normal;font-weight:400;line-height:normal}[_nghost-%COMP%]     .p-tab-active{background-color:#145055!important;color:#fff!important}.pi-bell[_ngcontent-%COMP%]{color:#145055}.card-custom[_ngcontent-%COMP%]{padding:16px;border-radius:8px;border:1px solid rgba(29,135,2,.16)}.title-card[_ngcontent-%COMP%]{color:#0a0a0a;font-size:20px;font-style:normal;font-weight:700;line-height:normal}.subtitle-card[_ngcontent-%COMP%]{color:#45556c;font-size:20px;font-style:normal;font-weight:400;line-height:normal}[_nghost-%COMP%]     .p-badge{background:#da3030}"]})};export{Z as Notifications};
