1"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[6952,6520],{66952:(L,A,c)=>{c.r(A),c.d(A,{NotificationCenterComponent:()=>tn});var v=c(8239),t=c(64537),l=c(88692),T=c(21671),h=c(15472);function r(e,o){1&e&&(t.TgZ(0,"div",2),t.Hsn(1,1),t.qZA())}const d=[[["","notificationCenterContentLeft",""]],[["","notificationCenterContentRight",""]]],u=["[notificationCenterContentLeft]","[notificationCenterContentRight]"];let O=(()=>{class e{constructor(){this.classNames="d-flex flex-row flex-wrap",this.hasSidebarContent=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-center-content-layout"]],hostVars:2,hostBindings:function(n,i){2&n&&t.Tol(i.classNames)},inputs:{hasSidebarContent:"hasSidebarContent"},standalone:!0,features:[t.jDz],ngContentSelectors:u,decls:3,vars:3,consts:[[1,"notification-center-content-layout-left"],["class","notification-center-content-layout-right",4,"ngIf"],[1,"notification-center-content-layout-right"]],template:function(n,i){1&n&&(t.F$t(d),t.TgZ(0,"div",0),t.Hsn(1),t.qZA(),t.YNc(2,r,2,0,"div",1)),2&n&&(t.ekj("full-width",!i.hasSidebarContent),t.xp6(2),t.Q6J("ngIf",i.hasSidebarContent))},dependencies:[l.ez,l.O5],styles:["[_nghost-%COMP%]{gap:24px}.notification-center-content-layout-left[_ngcontent-%COMP%]{order:2;flex:0 0 100%;max-width:100%}@media (min-width: 992px){.notification-center-content-layout-left[_ngcontent-%COMP%]{order:1;flex:0 0 calc(100% - 384px);max-width:calc(100% - 384px)}}.notification-center-content-layout-left.full-width[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}.notification-center-content-layout-right[_ngcontent-%COMP%]{order:1;flex:0 0 100%;max-width:100%}@media (min-width: 992px){.notification-center-content-layout-right[_ngcontent-%COMP%]{order:2;flex:0 0 360px}}"]}),e})();var N=c(29790);function U(e,o){if(1&e&&(t.TgZ(0,"li")(1,"a",3)(2,"span",4),t._uU(3),t.ALo(4,"async"),t.qZA(),t._uU(5),t.ALo(6,"translate"),t._UZ(7,"span",5),t.qZA()()),2&e){const n=o.$implicit,i=t.oxw();t.xp6(1),t.ekj("active",i.activeCategory===(null==n.queryParams?null:n.queryParams.category)),t.Q6J("routerLink",n.route)("queryParams",n.queryParams),t.xp6(2),t.Oqu(t.lcZ(4,6,n.count)),t.xp6(2),t.hij(" ",t.lcZ(6,8,n.title)," ")}}const R=["*"];let F=(()=>{class e{constructor(){this.isBlpPage=!1,this.isInnerNav=!1,this.menus=[]}get backgroundColor(){return this.isBlpPage?null:"#34364E"}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-center-nav"]],hostVars:4,hostBindings:function(n,i){2&n&&(t.Udp("background-color",i.backgroundColor),t.ekj("inner-nav",i.isInnerNav))},inputs:{isBlpPage:"isBlpPage",isInnerNav:"isInnerNav",menus:"menus",activeCategory:"activeCategory"},standalone:!0,features:[t.jDz],ngContentSelectors:R,decls:4,vars:3,consts:[[1,"d-flex","align-items-center","justify-content-between"],[1,"notification-center-nav"],[4,"ngFor","ngForOf"],["queryParamsHandling","merge",3,"routerLink","queryParams"],[1,"badge"],[1,"border",2,"background-color","red"]],template:function(n,i){1&n&&(t.F$t(),t.TgZ(0,"div",0)(1,"ul",1),t.YNc(2,U,8,10,"li",2),t.qZA(),t.Hsn(3),t.qZA()),2&n&&(t.ekj("container",!i.isInnerNav),t.xp6(2),t.Q6J("ngForOf",i.menus))},dependencies:[l.ez,l.sg,l.Ov,T.m,N.X$,h.Bz,h.yS,N.aw],styles:["[_nghost-%COMP%]{display:block}.notification-center-nav[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;list-style:none;margin:0;padding:0}@media (min-width: 768px){.notification-center-nav[_ngcontent-%COMP%]{flex-wrap:nowrap}}.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:12px;padding:0}@media (min-width: 768px){.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-right:24px}}.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child{margin-left:0}.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;font-size:12px;line-height:16px;padding:16px 0;position:relative;text-decoration:none;white-space:nowrap;color:#fff}
1@media (min-width: 768px){.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-size:14px;line-height:20px}}.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > span.badge[_ngcontent-%COMP%]{background-color:#ff4d4d;border-radius:4px;color:#fff;font-size:12px;font-weight:700;line-height:16px;min-width:20px;margin-right:8px;padding:2px}.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > span.border[_ngcontent-%COMP%]{border:none!important;bottom:0;display:block;height:4px;left:0;position:absolute;transition:width .4s ease;width:0;background-color:#000}.notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover > span.border[_ngcontent-%COMP%], .notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:focus > span.border[_ngcontent-%COMP%], .notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a.active[_ngcontent-%COMP%] > span.border[_ngcontent-%COMP%]{width:100%}.inner-nav[_nghost-%COMP%]{border-radius:4px;margin-bottom:24px;padding:0 12px 0 20px}.inner-nav[_nghost-%COMP%] .notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-right:20px}.inner-nav[_nghost-%COMP%] .notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child{margin-left:0}.inner-nav[_nghost-%COMP%] .notification-center-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-family:inherit;padding:20px 0}"]}),e})();var g=c(20092),E=c(67395),q=c(98022);const Y=["*"];let B=(()=>{class e{constructor(){this.classNames="p-4 rounded mb-4"}ngOnInit(){!this.textColor&&this.backgroundColor&&(this.textColor="white")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-center-widget"]],hostVars:6,hostBindings:function(n,i){2&n&&(t.Tol(i.classNames),t.Udp("background-color",i.backgroundColor)("color",i.textColor))},inputs:{backgroundColor:"backgroundColor",textColor:"textColor"},standalone:!0,features:[t.jDz],ngContentSelectors:Y,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},dependencies:[l.ez],styles:["[_nghost-%COMP%]{display:block}"]}),e})();const M={TRANSACTION:"transaction",VERIFICATION:"verification",TRANSFER:"transfer",BUY_ORDER:"buy_order",SELL_ORDER:"sell_order",ECO:"eco",ECO_CHILD:"eco_child",DIRECT_ECO:"direct_eco",DIRECT_ECO_TRANSFER:"direct_eco_transfer",BUY_BACK:"buy_back",NEW_ISSUANCE:"new_issuance",BURN:"burn",DIRECT_SALE:"direct_sale",MEMBER_TYPE:"member_type",ACCOUNT:"account",BENEFICIARY:"beneficiary",INVESTOR_TEST:"investor_test",REQUEST:"request",EYEVENTURE_USER:"eyeventure_user",EYEVENTURE_LOVE:"eyeventure_love",BULLETIN_BOARD:"bulletin_board",COMMUNITY_POST:"community_post",POLL:"poll",ALERT:"alert",MARKETPLACE:"marketplace",EYECONS:"eyecons",EXPORT:"export",DISTRIBUTION_PAYMENT:"distribution_payment",OTHER:"other"};var Z=c(67278),$=c(93281);function J(e,o){if(1&e&&(t.TgZ(0,"div",7)(1,"label"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"input",24),t.qZA()),2&e){const n=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,4,"UNTIL")),t.xp6(2),t.Q6J("bsConfig",n.datePickerConfig)("minDate",(null==n.form.controls.from?null:n.form.controls.from.value)||void 0)("maxDate",n.maxDate)}}function D(e,o){if(1&e&&(t.TgZ(0,"option",25),t._uU(1),t.ALo(2,"sentenceCase"),t.qZA()),2&e){const n=o.$implicit;t.Q6J("value",n.value),t.xp6(1),t.Oqu(t.lcZ(2,2,n.value))}}let Q=(()=>{class e{constructor(n,i,a,s){this.fb=n,this.router=i,this.route=a,this.utilityService=s,this.isBlpPage=!1,this.closeSearch=new t.vpe,this.maxDate=new Date,this.datePickerConfig={dateInputFormat:"DD-MM-YYYY",showClearButton:!0},this.notificationLabels=Object.entries(M).map(([f,m])=>({key:f,value:m}))}ngOnInit(){this.createForm()}createForm(){const n=this.route.snapshot.queryParams;this.form=this.fb.group({search:this.fb.control(n.search||null),label:this.fb.control(n.label||null),showUnreadOnly:this.fb.nonNullable.control("true"===n.showUnreadOnly)}),this.form.addControl("from",this.fb.control(n.from?this.dateFromString(n.from):null)),this.form.addControl("until",this.fb.control(n.until?this.dateFromString(n.until):null))}dateFromString(n){const i=new Date,[a,s,f]=n.split("-").map(Number);return i.setDate(a),i.setMonth(s),i.setFullYear(f),i}
1onSubmit(){const n={...this.route.snapshot.queryParams},i={};for(const[s,f]of Object.entries(this.form.value))i[s]=f?f instanceof Date?this.utilityService.transformByPipe(f,"date"):f:null;const a={...n,...i,page:1};this.router.navigate(["."],{relativeTo:this.route,queryParams:a})}onReset(){this.form.reset(),this.onSubmit()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.qu),t.Y36(h.F0),t.Y36(h.gz),t.Y36(Z.t))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-center-search"]],hostVars:2,hostBindings:function(n,i){2&n&&t.ekj("notification-center-search--blp",i.isBlpPage)},inputs:{isBlpPage:"isBlpPage"},outputs:{closeSearch:"closeSearch"},standalone:!0,features:[t.jDz],decls:48,vars:36,consts:[[3,"backgroundColor","textColor"],[1,"d-flex","justify-content-between","align-items-center","mb-2","pb-1"],[1,"sub-heading-2","mb-0"],["href","javascript:void(0)",1,"notification-center-close-search","d-flex","d-lg-none","align-items-center","justify-content-center",3,"click"],["width","10","height","10","viewBox","0 0 10 10","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.48761 5.0001L9.85391 1.63379C10.0486 1.4391 10.0486 1.12316 9.85391 0.928157L9.07171 0.145957C8.87702 -0.0487337 8.56108 -0.0487337 8.36608 0.145957L5.00009 3.51257L1.63379 0.146269C1.43909 -0.0484211 1.12315 -0.0484211 0.928149 0.146269L0.146262 0.928157C-0.0484285 1.12285 -0.0484285 1.43879 0.146262 1.63379L3.51256 5.0001L0.146262 8.3664C-0.0484285 8.56109 -0.0484285 8.87703 0.146262 9.07203L0.928462 9.85423C1.12315 10.0489 1.43909 10.0489 1.6341 9.85423L5.00009 6.48762L8.36639 9.85392C8.56108 10.0486 8.87702 10.0486 9.07203 9.85392L9.85423 9.07172C10.0489 8.87703 10.0489 8.56109 9.85423 8.36609L6.48761 5.0001Z"],[3,"formGroup","ngSubmit","reset"],[1,"form-group","mb-3","pb-1"],["type","text","formControlName","search",1,"form-control",3,"placeholder"],[1,"date-range-container"],["type","text","formControlName","from","placeholder","12-12-2022","bsDatepicker","",1,"form-control",3,"bsConfig","maxDate"],["class","form-group mb-3 pb-1",4,"ngIf"],["formControlName","label",1,"form-control"],[3,"ngValue"],[3,"value",4,"ngFor","ngForOf"],[1,"theme-v2-checkbox","mb-0","d-flex"],["type","checkbox","name","showUnreadOnly","formControlName","showUnreadOnly","hidden",""],[2,"font-weight","500"],["type","submit",1,"d-inline-flex","align-items-center","btn","btn-primary"],["viewBox","0 0 14 14","width","14","fill","none"],["href","assets/sprite.svg#icon-search"],["type","reset",1,"d-inline-flex","align-items-center","btn","btn-link","ml-4"],["viewBox","0 0 12 12","width","12","fill","none"],["href","assets/sprite.svg#icon-reload"],["type","text","formControlName","until","placeholder","01-01-2024","bsDatepicker","",1,"form-control",3,"bsConfig","minDate","maxDate"],[3,"value"]],template:function(n,i){1&n&&(t.TgZ(0,"app-notification-center-widget",0)(1,"div",1)(2,"h4",2),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",3),t.NdJ("click",function(){return i.closeSearch.emit()}),t.O4$(),t.TgZ(6,"svg",4),t._UZ(7,"path",5),t.qZA()()(),t.kcU(),t.TgZ(8,"form",6),t.NdJ("ngSubmit",function(){return i.onSubmit()})("reset",function(){return i.onReset()}),t.TgZ(9,"div",7)(10,"label"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t._UZ(13,"input",8),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",9)(16,"div",7)(17,"label"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t._UZ(20,"input",10),t.qZA(),t.YNc(21,J,5,6,"div",11),t.qZA(),t.TgZ(22,"div",7)(23,"label"),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.TgZ(26,"select",12)(27,"option",13),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.YNc(30,D,3,4,"option",14),t.qZA()(),t.TgZ(31,"div",7)(32,"label",15),t._UZ(33,"input",16),t.TgZ(34,"span",17),t._uU(35),t.ALo(36,"translate"),t.qZA()()(),t.TgZ(37,"div")(38,"button",18),t.O4$(),t.TgZ(39,"svg",19),t._UZ(40,"use",20),t.qZA(),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.kcU(),t.TgZ(43,"button",21),t._uU(44),t.ALo(45,"translate"),t.O4$(),t.TgZ(46,"svg",22),t._UZ(47,"use",23),t.qZA()()()()()),2&n&&(t.Q6J("backgroundColor",i.isBlpPage?void 0:"white")("textColor",i.isBlpPage?void 0:"black"),t.xp6(3),t.Oqu(t.lcZ(4,18,"FILTER")),t.xp6(4),t.uIk("fill",i.isBlpPage?null:"#000000"),t.xp6(1),t.Q6J("formGroup",i.form),t.xp6(3),t.Oqu(t.lcZ(12,20,"SEARCH_BY_TEXT")),t.xp6(2),t.Q6J("placeholder",t.lcZ(14,22,"TEXT_TO_SEARCH")),t.xp6(5),t.Oqu(t.lcZ(19,24,"FROM")),t.xp6(2),t.Q6J("bsConfig",i.datePickerConfig)("maxDate",(null==i.form.controls.until?null:i.form.controls.until.value)||void 0),t.xp6(1),t.Q6J("ngIf",i.form.controls.until),t.xp6(3),t.Oqu(t.lcZ(25,26,"LABEL")),t.xp6(3),t.Q6J("ngValue",null),t.xp6(1),t.Oqu(t.lcZ(29,28,"ALL")),t.xp6(2),t.Q6J("ngForOf",i.notificationLabels),t.xp6(5),t.Oqu(t.lcZ(36,30,"SHOW_UNREAD_NOTIFICATIONS_ONLY")),t.xp6(6),t.hij("\xa0 ",t.lcZ(42,32,"SEARCH")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"RESET_FILTERS"),"\xa0\xa0 "))},dependencies:[l.ez,l.sg,l.O5,E.kn,E.Np,E.Y5,q.U,g._Y,g.YN,g.Kr,g.Fj,g.Wl,g.EJ,g.JJ,g.JL,g.UX,g.sg,g.u,N.aw,N.X$,B,T.m,$.U],styles:[".date-range-container[_ngcontent-%COMP%]{display:flex;gap:12px}.date-range-container[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{flex:1 0 0}.notification-center-close-search[_ngcontent-%COMP%]{background-color:#00000040;border-radius:4px;
1height:20px;width:20px}"]}),e})();var S=c(38023),C=c(27969),P=c(42147),z=c(15696),j=c(54121),G=c(65598),H=c(61528),V=c(98168),I=c(13528),X=c(3706),W=c(57445),K=c(80404),x=c(98046);let tt=(()=>{class e extends x.mm{constructor(){super(...arguments),this.document=x.Ps`mutation( 2 $pk: Int! 3 ) { 4 archiveNotification( 5 pk: $pk 6 ) { 7 success 8 errors 9 } 10 }`}}return e.\u0275fac=function(){let o;return function(i){return(o||(o=t.n5z(e)))(i||e)}}(),e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"any"}),e})(),nt=(()=>{class e extends x.mm{constructor(){super(...arguments),this.document=x.Ps`mutation( 11 $pk: Int! 12 ) { 13 restoreNotification( 14 pk: $pk 15 ) { 16 success 17 errors 18 } 19 }`}}return e.\u0275fac=function(){let o;return function(i){return(o||(o=t.n5z(e)))(i||e)}}(),e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var et=c(48292),it=c(40306);let ot=(()=>{class e extends x.mm{constructor(){super(...arguments),this.document=x.Ps` 20 mutation ($pk: Int!) { 21 markNotificationAsRead(pk: $pk) { 22 success 23 errors 24 } 25 } 26 `}}return e.\u0275fac=function(){let o;return function(i){return(o||(o=t.n5z(e)))(i||e)}}(),e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"any"}),e})(),at=(()=>{class e extends x.mm{constructor(){super(...arguments),this.document=x.Ps`mutation( 27 $pk: Int! 28 ) { 29 updateActionPerformedNotification( 30 pk: $pk 31 ) { 32 success 33 errors 34 } 35 }`}}return e.\u0275fac=function(){let o;return function(i){return(o||(o=t.n5z(e)))(i||e)}}(),e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"any"}),e})();var k=c(44957);let rt=(()=>{class e extends x.AE{constructor(){super(...arguments),this.document=x.Ps` 36 query ($filePath: String!) { 37 exportCsvFile ( 38 filePath: $filePath, 39 ) 40 } 41 `}}return e.\u0275fac=function(){let o;return function(i){return(o||(o=t.n5z(e)))(i||e)}}(),e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"any"}),e})();function ct(e,o){if(1&e&&(t.TgZ(0,"div",11),t._UZ(1,"img",12),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("alt",null==n.notification.eyeventure?null:n.notification.eyeventure.
41name),t.uIk("src",null==n.notification.eyeventure?null:n.notification.eyeventure.logo,t.LSH)}}function st(e,o){if(1&e&&(t.TgZ(0,"span",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,n.notificationLabelTranslationKey))}}function lt(e,o){1&e&&(t.O4$(),t._UZ(0,"use",14))}function ft(e,o){1&e&&(t.O4$(),t._UZ(0,"use",15))}function pt(e,o){if(1&e&&t._UZ(0,"p",24),2&e){const n=t.oxw(2);t.Q6J("innerHTML",null==n.notification.alert?null:n.notification.alert.body,t.oJD)}}function ut(e,o){if(1&e&&t._UZ(0,"p",24),2&e){const n=t.oxw(2);t.Q6J("innerHTML",n.notification.description,t.oJD)}}function dt(e,o){1&e&&(t.TgZ(0,"span",25)(1,"span",26),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"BULLETIN_ORDER_NO_LONGER_AVAILABLE")," "))}function gt(e,o){if(1&e&&t._UZ(0,"img",27),2&e){const n=t.oxw(2);t.s9C("src",n.notificationSourceLogo,t.LSH),t.s9C("alt",n.notificationSourceName)}}function mt(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"small",28),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&e){const n=t.oxw(2);t.xp6(2),t.Oqu(n.notificationSourceName)}}function ht(e,o){if(1&e&&(t.TgZ(0,"small",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const n=t.oxw(3);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"EXPIRES_IN")," ",n.exportTimeRemaining," ")}}function _t(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"span",29),t.YNc(2,ht,3,4,"small",30),t.qZA(),t.BQk()),2&e){const n=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!n.isExportExpired&&n.exportTimeRemaining)}}function Ct(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.archiveNotification())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ARCHIVE_ACTION")," "))}const xt=function(e){return{opacity:e}};function bt(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",31),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.performAction())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ct,3,3,"button",32),t.BQk()}if(2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,xt,n.notification.isActionCompleted?".85":"1")),t.xp6(1),t.hij(" ",t.lcZ(3,3,n.notification.isActionCompleted?"ACTION_PERFORMED":"PERFORM_ACTION")," "),t.xp6(2),t.Q6J("ngIf",(null==n.notification?null:n.notification.isActionNeeded)&&!(null!=n.notification&&n.notification.isArchived))}}function vt(e,o){1&e&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DOWNLOAD")," "))}function yt(e,o){1&e&&(t.ynx(0),t._uU(1),t.ALo(2,"translate"),t.BQk()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"EXPORT_EXPIRED")," "))}function Nt(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",36)(2,"button",37),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.downloadFile())}),t.YNc(3,vt,3,3,"ng-container",10),t.YNc(4,yt,3,3,"ng-container",10),t.qZA()(),t.BQk()}if(2&e){const n=t.oxw(3);t.xp6(2),t.ekj("btn-success",!n.isExportExpired)("btn-secondary",n.isExportExpired),t.Q6J("disabled",n.isExportExpired),t.xp6(1),t.Q6J("ngIf",!n.isExportExpired),t.xp6(1),t.Q6J("ngIf",n.isExportExpired)}}function Ot(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"a",38),t.NdJ("click",function(a){t.CHM(n);const s=t.oxw(4);return a.preventDefault(),t.KtG(s.router.navigateByUrl(s.notification.url))}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()}if(2&e){const n=t.oxw(4);t.xp6(1),t.uIk("href",n.notification.url,t.LSH),t.xp6(1),t.Oqu(t.lcZ(3,2,n.urlButtonText))}}function Tt(e,o){if(1&e&&t.YNc(0,Ot,4,4,"ng-container",10),2&e){const n=t.oxw(3);t.Q6J("ngIf",n.notification.url&&n.urlButtonText)}}function Pt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Nt,5,7,"ng-container",34),t.YNc(2,Tt,1,1,"ng-template",null,35,t.W1O),t.BQk()),2&e){const n=t.MAs(3),i=t.oxw(2);t.xp6(1),t.Q6J("ngIf","export"===i.notification.label)("ngIfElse",n)}}function It(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.archiveNotification())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ARCHIVE")," "))}function At(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.restoreNotification())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESTORE")," "))}function Mt(e,o){if(1&e&&(t.O4$(),t.kcU(),t.ynx(0),t.YNc(1,pt,1,1,"p",16),t.YNc(2,ut,1,1,"p",16),t.YNc(3,dt,4,3,"span",17),t.TgZ(4,"div",18)(5,"div",19),t.YNc(6,gt,1,2,"img",20),t.TgZ(7,"div"),t.YNc(8,mt,4,1,"ng-container",10),t.TgZ(9,"small",21),t._uU(10),t.ALo(11,"date"),t.qZA()()(),t.TgZ(12,"div",22),t.YNc(13,_t,3,1,"ng-container",10),t.YNc(14,bt,5,7,"ng-container",10),t.YNc(15,Pt,4,2,"ng-container",10),t.YNc(16,It,3,3,"button",23),t.YNc(17,At,3,3,"button",23),t.qZA()(),t.BQk()),2&e){const n=t.oxw();
41t.xp6(1),t.Q6J("ngIf",null==n.notification?null:n.notification.alert),t.xp6(1),t.Q6J("ngIf",!(null!=n.notification&&n.notification.alert)),t.xp6(1),t.Q6J("ngIf",n.isBulletinOrderUnavailable),t.xp6(3),t.Q6J("ngIf",n.notificationSourceLogo),t.xp6(2),t.Q6J("ngIf",n.notificationSourceName),t.xp6(2),t.Oqu(t.xi3(11,11,n.notification.created,"dd-MM-yyyy | HH:mm")),t.xp6(3),t.Q6J("ngIf","export"===n.notification.label),t.xp6(1),t.Q6J("ngIf",null==n.notification?null:n.notification.isActionNeeded),t.xp6(1),t.Q6J("ngIf",!(null!=n.notification&&n.notification.isActionNeeded)),t.xp6(1),t.Q6J("ngIf",!(null!=n.notification&&n.notification.isActionNeeded||null!=n.notification&&n.notification.isArchived)),t.xp6(1),t.Q6J("ngIf",null==n.notification?null:n.notification.isArchived)}}let wt=(()=>{class e{constructor(n,i,a,s,f,m,y,b,_,p,w){this.ngxLoaderService=n,this.archiveNotificationGraphql=i,this.restoreNotificationGraphql=a,this.toastrService=s,this.translateService=f,this.confirmationService=m,this.markNotificationAsReadGraphql=y,this.updateActionPerformedNotficationGraphql=b,this.router=_,this.notificationCenterService=p,this.downloadCsvFileGraphql=w,this.ngUnsubscribe$=new S.x,this.category=null,this.expanded=!1,this.isBulletinOrderUnavailable=!1,this.isExportExpired=!1,this.removeNotification=new t.vpe}get notificationLabelTranslationKey(){return Z.t.getNotificationLabelTranslationKey(this.notification?.label)}ngOnInit(){this.notification.eyeventure?(this.notificationSourceLogo=this.notification.eyeventure.logo,this.notificationSourceName=this.notification.eyeventure.
41name):this.notification.alert&&(this.notificationSourceLogo="assets/img/eyevestor-45x45.png",this.notificationSourceName="Eyevestor"),this.notification.url&&(this.notification.url.includes("/community/")?this.urlButtonText="GO_TO_COMMUNITY":this.notification.url.includes("storage.googleapis.com")?this.urlButtonText="DOWNLOAD":this.notification.url.includes("/accounts/")?this.urlButtonText="GO_TO_ACCOUNT":this.notification.url.includes("?tab=bulletin_board")||this.notification.url.includes("?tab=marketplace")?this.urlButtonText="GO_TO_BULLETIN_BOARD":"distribution_payment"==this.notification.label&&(this.urlButtonText="PAY")),this.notification.label===M.EXPORT&&this.initializeExportProperties(),this.isBulletinOrderUnavailable=this.computeBulletinOrderAvailability()}archiveNotification(){var n=this;return(0,v.Z)(function*(){n.doesNotificationBelongToUser?(yield n.confirmationService.confirm({key:"DO_YOU_WANT_TO_ARCHIVE_THIS_NOTIFICATION"},""))&&(n.ngxLoaderService.ngxLoading=!0,n.archiveNotificationGraphql.mutate({pk:n.notification.pk}).pipe((0,I.R)(n.ngUnsubscribe$)).subscribe(()=>{n.ngxLoaderService.ngxLoading=!1,setTimeout(()=>{n.notification&&(n.notification.isArchived=!0,n.removeNotification.emit())},800),n.translateService.get("NOTIFICATION_ARCHIVED_SUCCESSFULLY").subscribe(a=>{n.toastrService.success(a)})})):n.showActionPermissionDeniedError()})()}expand(){this.expanded=!0,this.doesNotificationBelongToUser&&(this.notification.isRead||(this.notification.isRead=!0,this.markNotificationAsReadGraphql.mutate({pk:this.notification.pk}).pipe((0,I.R)(this.ngUnsubscribe$)).subscribe(({data:n})=>{if(n.markNotificationAsRead.success)switch(this.category){case"actions":this.notificationCenterService.updateNotificationCountBy("actionsCount",-1);break;case"market":this.notificationCenterService.updateNotificationCountBy("marketCount",-1);break;default:this.notificationCenterService.updateNotificationCountBy("messagesCount",-1)}else this.notification.isRead=!1})))}downloadFile(n){let i,a;if(this.notification.label===M.EXPORT){const s=this.getExtraData();if(!s?.downloadUrl||this.isExportExpired)return;i=s.downloadUrl,a=this.generateExportFileName()}else{if(!n)return;i=n,a="downloaded-file.csv"}this.downloadCsvFileGraphql.watch({filePath:i},{useInitialLoading:!0}).valueChanges.subscribe(({data:s,loading:f})=>{if(this.ngxLoaderService.ngxLoading=f,!f&&s.exportCsvFile){const m=s.exportCsvFile,y=new Blob([m],{type:"text/csv; charset=utf-8-sig"}),b=window.URL.createObjectURL(y),_=document.createElement("a");_.href=b,_.download=this.notification.label===M.EXPORT?a:m.name||a,document.body.appendChild(_),_.click(),document.body.removeChild(_),window.URL.revokeObjectURL(b)}})}initializeExportProperties(){let n=this.getExtraData();if(n&&(this.isExportExpired=n.isExpired||!1,n.expiresAt)){this.exportExpiresAt=new Date(n.expiresAt);const i=new Date;!this.isExportExpired&&this.exportExpiresAt<=i&&(this.isExportExpired=!0),this.isExportExpired||(this.updateExportTimeRemaining(),this.timeRemainingInterval=setInterval(()=>{this.updateExportTimeRemaining(),this.exportExpiresAt&&this.exportExpiresAt<=new Date&&(this.isExportExpired=!0,this.timeRemainingInterval&&(clearInterval(this.timeRemainingInterval),this.timeRemainingInterval=void 0))},6e4))}}updateExportTimeRemaining(){if(!this.exportExpiresAt||this.isExportExpired)return void(this.exportTimeRemaining=void 0);const n=new Date,i=this.exportExpiresAt.getTime()-n.getTime();if(i<=0)return this.isExportExpired=!0,void(this.exportTimeRemaining=void 0);const a=Math.floor(i/36e5),s=Math.floor(i%36e5/6e4);this.exportTimeRemaining=a>0?`${a}h ${s}m`:`${s}m`}getExtraData(){if(!this.notification.extra)return null;if("object"==typeof this.notification.extra)return this.notification.extra;if("string"==typeof this.notification.extra)try{return JSON.parse(this.notification.extra)}catch(n){return console.error("Failed to parse notification.extra JSON:",n),null}return null}generateExportFileName(){const i=this.getExtraData()?.exportType||"export",a=new Date;return`${i}_${a.getFullYear()}${String(a.getMonth()+1).padStart(2,"0")}${String(a.getDate()).padStart(2,"0")}_${String(a.getHours()).padStart(2,"0")}${String(a.getMinutes()).padStart(2,"0")}${String(a.getSeconds()).padStart(2,"0")}.csv`}computeBulletinOrderAvailability(){const n=this.notification?.bulletinBuyOrder?.status||this.notification?.bulletinSellOrder?.status;return!!n&&"OPEN"!==n.toUpperCase()}collapse(n){n.stopPropagation(),this.expanded=!1}showActionPermissionDeniedError(){this.toastrService.error(this.translateService.instant("NOTIFICATION_ACTION_PERFORM_PERMISSION_ERROR"),this.translateService.instant("ATTENTION_PLEASE"))}performAction(){var n=this;return(0,v.Z)(function*(){if(n.doesNotificationBelongToUser)try{n.ngxLoaderService.ngxLoading=!0,yield(0,W.z)(n.updateActionPerformedNotficationGraphql.mutate({pk:n.notification?.pk}))}finally{n.ngxLoaderService.ngxLoading=!1,n.router.navigateByUrl(n.notification?.url||"/")}else n.showActionPermissionDeniedError()})()}restoreNotification(){var n=this;return(0,v.Z)(function*(){n.doesNotificationBelongToUser?(yield n.confirmationService.confirm({key:"DO_YOU_WANT_TO_RESTORE_THIS_NOTIFICATION"},""))&&(n.ngxLoaderService.ngxLoading=!0,n.restoreNotificationGraphql.mutate({pk:n.notification?.pk}).pipe((0,I.R)(n.ngUnsubscribe$)).subscribe(()=>{n.ngxLoaderService.ngxLoading=!1,n.removeNotification.emit(),n.translateService.get("NOTIFICATION_RESTORED_SUCCESSFULLY").subscribe(a=>{n.toastrService.success(a)})})):n.showActionPermissionDeniedError()})()}ngOnDestroy(){this.ngUnsubscribe$.next(),this.ngUnsubscribe$.complete(),this.timeRemainingInterval&&clearInterval(this.timeRemainingInterval)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(K.b),t.Y36(tt),t.Y36(nt),t.Y36(et._W),t.Y36(N.sK),t.Y36(it.Y),t.Y36(ot),t.Y36(at),t.Y36(h.F0),t.Y36(k.v),t.Y36(rt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-center-item"]],inputs:{category:"category",notification:"notification",doesNotificationBelongToUser:"doesNotificationBelongToUser"},outputs:{removeNotification:"removeNotification"},standalone:!0,features:[t.jDz],decls:11,vars:16,consts:[[1,"card","mb-3",3,"click"],[1,"card-body","notification-card"],[1,"d-flex","flex-nowrap","align-items-start","notification-card-header","w-100","cursor-pointer",3,"click"],["class","eyevneture-logo flex align-items-center justify-content-center",4,"ngIf"],[1,"card-title",3,"innerHTML"],["class","notification-label",4,"ngIf"],["type","button",1,"expand-toggle-button"],["viewBox","0 0 16 16","width","16"],["href","assets/sprite.svg#icon-m
41inus-bold",4,"ngIf"],["href","assets/sprite.svg#icon-plus-bold",4,"ngIf"],[4,"ngIf"],[1,"eyevneture-logo","flex","align-items-center","justify-content-center"],[3,"alt"],[1,"notification-label"],["href","assets/sprite.svg#icon-minus-bold"],["href","assets/sprite.svg#icon-plus-bold"],["class","card-text",3,"innerHTML",4,"ngIf"],["class","theme-v3",4,"ngIf"],[1,"d-flex","justify-content-between","mt-3","flex-column","flex-md-row","align-items-start","align-items-md-center"],[1,"d-flex","align-items-center","grow-1","mb-2","mb-md-0"],["class","me-2 mr-2","style","max-width: 45px; max-height: 45px;",3,"src","alt",4,"ngIf"],[1,"text-muted"],[1,"d-flex","align-items-center","gap-3"],["type","button","class","btn btn-danger btn-sm notification-center-blp-action-button",3,"click",4,"ngIf"],[1,"card-text",3,"innerHTML"],[1,"theme-v3"],[1,"badge","badge-md","badge-grey-blue-soft"],[1,"me-2","mr-2",2,"max-width","45px","max-height","45px",3,"src","alt"],[1,"font-weight-bold"],[1,"d-flex","flex-column","align-items-end","mr-2"],["class","text-muted",4,"ngIf"],["type","button",1,"btn","btn-primary","btn-sm","mr-2",3,"ngStyle","click"],["type","button","class","btn btn-secondary btn-sm",3,"click",4,"ngIf"],["type","button",1,"btn","btn-secondary","btn-sm",3,"click"],[4,"ngIf","ngIfElse"],["urlButton",""],[1,"d-flex","flex-column","align-items-end"],["type","button",1,"btn","btn-sm","mr-2",3,"disabled","click"],[1,"btn","btn-primary","btn-sm","mr-2",3,"click"],["type","button",1,"btn","btn-danger","btn-sm","notification-center-blp-action-button",3,"click"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t.NdJ("click",function(){return i.expanded||i.expand()}),t.TgZ(1,"div",1)(2,"div",2),t.NdJ("click",function(s){return i.expanded&&i.collapse(s)}),t.YNc(3,ct,2,2,"div",3),t._UZ(4,"h5",4),t.YNc(5,st,3,3,"span",5),t.TgZ(6,"button",6),t.O4$(),t.TgZ(7,"svg",7),t.YNc(8,lt,1,0,"use",8),t.YNc(9,ft,1,0,"use",9),t.qZA()()(),t.YNc(10,Mt,18,14,"ng-container",10),t.qZA()()),2&n&&(t.ekj("cursor-pointer",!i.expanded),t.xp6(1),t.ekj("expanded",i.expanded)("read",i.notification.isRead),t.xp6(1),t.ekj("mb-0",!i.expanded),t.xp6(1),t.Q6J("ngIf",(null==i.notification||null==i.notification.eyeventure?null:i.notification.eyeventure.logo)&&!i.expanded),t.xp6(1),t.ekj("truncate",!i.expanded),t.Q6J("innerHTML",i.notification.title||i.notification.description,t.oJD),t.xp6(1),t.Q6J("ngIf",null==i.notification?null:i.notification.label),t.xp6(3),t.Q6J("ngIf",i.expanded),t.xp6(1),t.Q6J("ngIf",!i.expanded),t.xp6(1),t.Q6J("ngIf",i.expanded))},dependencies:[l.ez,l.O5,l.PC,l.uU,X.mr,T.m,N.X$,N.aw,h.Bz],styles:[".card[_ngcontent-%COMP%]{border:none}.notification-card-header[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}@media (min-width: 768px){.notification-card-header[_ngcontent-%COMP%]{margin-bottom:20px}}@media (min-width: 768px){.notification-card-header[_ngcontent-%COMP%]{gap:16px}}.notification-card-header[_ngcontent-%COMP%] .eyevneture-logo[_ngcontent-%COMP%]{height:40px;overflow:hidden;width:40px;flex:0 0 40px}.notification-card-header[_ngcontent-%COMP%] .eyevneture-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.notification-card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{flex-grow:1;font-size:15px;line-height:24px;padding:8px 0;margin:0;word-break:break-word}@media (min-width: 768px){.notification-card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{font-size:16px}}@media (min-width: 992px){.notification-card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{font-size:18px}}.notification-card-header[_ngcontent-%COMP%] .card-title.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-card-header[_ngcontent-%COMP%] .notification-label[_ngcontent-%COMP%]{background-color:#e7e0d8;border:1px solid rgb(231,224,216);border-radius:15px;color:var(--secondary-color);font-size:14px;font-weight:500;line-height:24px;margin:5px 0;padding:2px 6px;white-space:nowrap}@media (min-width: 768px){.notification-card-header[_ngcontent-%COMP%] .notification-label[_ngcontent-%COMP%]{font-size:15px;padding:3px 10px}}.notification-card-header[_ngcontent-%COMP%] .notification-availability-label[_ngcontent-%COMP%]{background-color:#fdecec;border:1px solid #f5c2c7;border-radius:15px;color:#b42318;font-size:14px;font-weight:600;line-height:24px;margin:5px 0;padding:2px 10px;white-space:nowrap}
41@media (min-width: 768px){.notification-card-header[_ngcontent-%COMP%] .notification-availability-label[_ngcontent-%COMP%]{font-size:15px;padding:4px 12px}}.notification-card-header[_ngcontent-%COMP%] .expand-toggle-button[_ngcontent-%COMP%]{background-color:transparent;border:none;color:var(--secondary-color);display:flex;cursor:pointer;margin:12px 0;outline:none;padding:0}.notification-card[_ngcontent-%COMP%]{background-color:#fff;border-radius:4px;padding:16px;transition:all .3s ease}@media (min-width: 768px){.notification-card[_ngcontent-%COMP%]{padding:20px}}.notification-card[_ngcontent-%COMP%]:hover, .notification-card.expanded[_ngcontent-%COMP%]{box-shadow:0 .125rem .25rem #00000013}.notification-card.read[_ngcontent-%COMP%]{background-color:#dfdfdf}.notification-card.read[_ngcontent-%COMP%] .notification-card-header[_ngcontent-%COMP%] .notification-label[_ngcontent-%COMP%]{border-color:var(--secondary-color)}.card-text[_ngcontent-%COMP%]{font-size:14px;word-break:break-word}@media (min-width: 768px){.card-text[_ngcontent-%COMP%]{font-size:15px}}@media (min-width: 992px){.card-text[_ngcontent-%COMP%]{font-size:16px}}.text-muted[_ngcontent-%COMP%]{font-weight:500}"]}),e})();var Et=c(84446),Zt=c(36520),St=c(84588),kt=c(84558),Lt=c(14503),Ut=c(23425),Rt=c(19729),Ft=c(37868);function qt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"div",14),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",15),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.reload())}),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,2,"NEW_NOTIFICATION_WARNING")," "),t.xp6(3),t.Oqu(t.lcZ(5,4,"RELOAD")))}function Yt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"app-notification-center-content-layout",16),t.ynx(1,7),t.TgZ(2,"div",17)(3,"div",18)(4,"button",19),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.showSearchOnMobile=!0)}),t.O4$(),t.TgZ(5,"svg",20),t._UZ(6,"path",21),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.BQk(),t.qZA()}2&e&&(t.xp6(7),t.hij("\xa0 ",t.lcZ(8,1,"SEARCH")," "))}const Bt=function(){return{status:"open"}},$t=function(){return{status:"archived"}};function Jt(e,o){if(1&e&&(t.TgZ(0,"div")(1,"a",25),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4," \xa0 \xa0 "),t.TgZ(5,"a",25),t._uU(6),t.ALo(7,"translate"),t.qZA()()),2&e){const n=o.ngIf;t.xp6(1),t.Q6J("queryParams",t.DdM(10,Bt))("ngClass","open"===n?"btn-primary":"btn-secondary-outlined"),t.xp6(1),t.Oqu(t.lcZ(3,6,"OPEN")),t.xp6(3),t.Q6J("queryParams",t.DdM(11,$t))("ngClass","archived"===n?"btn-primary":"btn-secondary-outlined"),t.xp6(1),t.Oqu(t.lcZ(7,8,"ARCHIVED"))}}function Dt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Jt,8,12,"div",23),t.ALo(2,"async"),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,n.status$))}}const Qt=function(e,o){return{count:e,total:o}};function zt(e,o){if(1&e&&(t.TgZ(0,"p",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const n=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,"PAGINATION_HELP_TEXT",t.WLB(4,Qt,n.length,i.total))," ")}}function jt(e,o){if(1&e&&(t.TgZ(0,"div",22),t.YNc(1,Dt,3,3,"ng-container",23),t.ALo(2,"async"),t.YNc(3,zt,3,7,"p",24),t.qZA()),2&e){const n=o.ngIf,i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.hasArchivedNotifications||"archived"===t.lcZ(2,2,i.status$)),t.xp6(2),t.Q6J("ngIf",i.total&&(null==n?null:n.length))}}function Gt(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"app-notification-center-item",29),t.NdJ("removeNotification",function(){const s=t.CHM(n).$implicit,f=t.oxw(2);return t.KtG(f.removeNotification(s))}),t.ALo(2,"async"),t.qZA(),t.BQk()}if(2&e){const n=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("notification",n)("category",t.lcZ(2,3,i.category$))("doesNotificationBelongToUser",!i.routeUserId)}}function Ht(e,o){1&e&&t._UZ(0,"app-mat-spinner")}function Vt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"div",30)(1,"button",31),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);
41return t.KtG(a.loadMoreNotifications())}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}if(2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("disabled",n.isLoadingResults),t.xp6(1),t.Oqu(t.lcZ(3,2,"LOAD_MORE"))}}function Xt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Gt,3,5,"ng-container",27),t.ALo(2,"async"),t.YNc(3,Ht,1,0,"app-mat-spinner",23),t.YNc(4,Vt,4,4,"div",28),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,n.notifications$)),t.xp6(2),t.Q6J("ngIf",n.isLoadingResults),t.xp6(1),t.Q6J("ngIf",n.hasNextPage)}}function Wt(e,o){1&e&&(t.TgZ(0,"div",33),t.O4$(),t.TgZ(1,"svg",34),t._UZ(2,"path",35),t.qZA(),t.kcU(),t.TgZ(3,"h5",36),t._uU(4),t.ALo(5,"translate"),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,1,"NO_NOTIFICATIONS_AVAILABLE")))}function Kt(e,o){if(1&e&&t.YNc(0,Wt,6,3,"div",32),2&e){const n=t.oxw();t.Q6J("ngIf",!n.isLoadingResults)}}let tn=(()=>{class e{constructor(n,i,a,s,f,m,y,b,_){this.route=n,this.notificationsGraphql=i,this.notificationCenterService=a,this.socketWebService=s,this.document=f,this.platformId=m,this.meService=y,this.languageService=b,this.partnerBleService=_,this.ngUnsubscribe$=new S.x,this.isLoadingResults=!1,this.showSearchOnMobile=!1,this.page=1,this.total=0,this.hasNextPage=!1,this.hasArchivedNotifications=!1,this.routeUserId=this.route.snapshot.params.id?Number(this.route.snapshot.params.id):void 0,this.status$=this.route.queryParams.pipe((0,C.U)(({status:p})=>p||"open"),(0,P.x)()),this.category$=this.route.queryParams.pipe((0,C.U)(({category:p})=>p||"messages"),(0,P.x)()),this.search$=this.route.queryParams.pipe((0,C.U)(({search:p})=>p),(0,P.x)()),this.created$=this.route.queryParams.pipe((0,C.U)(({from:p,until:w})=>{if(p&&w)return`${p.split("-").reverse().join("-")},${w.split("-").reverse().join("-")}`}),(0,P.x)()),this.showUnreadOnly$=this.route.queryParams.pipe((0,C.U)(({showUnreadOnly:p})=>"true"===p),(0,P.x)()),this.label$=this.route.queryParams.pipe((0,C.U)(({label:p})=>p||void 0),(0,P.x)()),this.filters$=(0,z.a)([this.status$,this.category$,this.search$,this.created$,this.label$,this.showUnreadOnly$,this.languageService.currentLanguage$,this.partnerBleService.subdomain$]),this.filters={status:"open",category:"messages",search:void 0,created:void 0,label:void 0,showUnreadOnly:!1},this.notifications$=new j.X([]),this.hasNewNotification=!1,this.perPage=10,this.paginationOffset=0,this.isBlpPage=!1,this.notificationCenterBlpStyle=null,this.partnerBleService.partnerBlp$.pipe((0,G.q)(1)).subscribe(p=>{this.isBlpPage=!!p,this.notificationCenterBlpStyle=(0,Zt.sF)(p)})}ngOnInit(){var n=this;return(0,v.Z)(function*(){n.setUserId(),n.setMenus(),n.filters$.pipe((0,H.w)(([i,a,s,f,m,y,,b])=>(n.page=1,n.total=0,n.paginationOffset=0,n.notifications$.next([]),n.isLoadingResults=!0,n.hasNextPage=!1,n.filters.status=i,n.filters.category=a,n.filters.search=s,n.filters.created=f,n.filters.label=m,n.filters.showUnreadOnly=y,n.blpSubdomain=b,n.hasNewNotification=!1,n.getNotifications())),(0,V.b)(({data:i})=>{n.isLoadingResults=!1,n.total=i?.notifications.totalCount||0,n.hasNextPage=i?.notifications.pageInfo.hasNextPage,n.hasArchivedNotifications=(i?.notifications.totalArchivedCount||0)>0}),(0,C.U)(i=>i.data.notifications.edges.map(({node:a})=>a)),(0,I.R)(n.ngUnsubscribe$)).subscribe(i=>{n.notifications$.next(i)}),n.socketWebService.newResponse.pipe((0,I.R)(n.ngUnsubscribe$)).subscribe(i=>{n.notificationCenterService.getNotificationType(i.notification)===n.filters.category&&(n.hasNewNotification=!0)})})()}setUserId(){this.routeUserId?this.userId=this.routeUserId:this.meService.me&&(this.userId=this.meService.me.pk)}setMenus(){let n;n=this.userId===this.meService.me?.pk?this.notificationCenterService.unreadNotificationCounts$:this.notificationCenterService.getUnreadNotificationCountForUser(this.userId),this.menus=[{title:"MESSAGES",count:n.pipe((0,C.U)(({messagesCount:i})=>i)),route:[],queryParams:{category:"messages",status:"open",page:1}},{title:"ACTIONS",count:n.pipe((0,C.U)(({actionsCount:i})=>i)),route:[],queryParams:{category:"actions",status:"open",page:1}},{title:"BULLETIN_BOARD",count:n.pipe((0,C.U)(({marketCount:i})=>i)),route:[],queryParams:{category:"market",status:"open",page:1}}]}reload(){(0,l.NF)(this.platformId)&&this.document.defaultView&&this.document.defaultView.location.reload()}removeNotification(n){this.notifications$.next(this.notifications$.value.filter(i=>i.pk!==n.pk)),this.hasArchivedNotifications=!0,this.paginationOffset--}getNotifications(){const{first:n,last:i}=(0,Et.U)(this.page,this.perPage,this.total);return this.notificationsGraphql.fetch({first:n+this.paginationOffset,last:i,created:this.filters.created,q:this.filters.search,isActionNeeded:"actions"===this.filters.category,isMarketplace:"market"===this.filters.category,isArchived:"archived"===this.filters.status,label:this.filters.label,showUnreadOnly:this.filters.showUnreadOnly,userId:this.userId,blpSubdomain:this.blpSubdomain})}loadMoreNotifications(){this.page++,this.isLoadingResults=!0,this.getNotifications().pipe((0,I.R)(this.ngUnsubscribe$)).subscribe(({data:n})=>{this.total=n.notifications.totalCount||0,this.hasNextPage=n.notifications.pageInfo.hasNextPage,this.notifications$.next([...this.notifications$.value,...n.notifications.edges.map(({node:i}
41)=>i)]),this.isLoadingResults=!1})}ngOnDestroy(){this.ngUnsubscribe$.next(),this.ngUnsubscribe$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(h.gz),t.Y36(St.h),t.Y36(k.v),t.Y36(kt.m),t.Y36(l.K0),t.Y36(t.Lbi),t.Y36(Lt.w),t.Y36(Ut.T),t.Y36(Rt.J))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-center"]],standalone:!0,features:[t.jDz],decls:23,vars:29,consts:[[1,"theme-v2",3,"ngStyle"],["id","topSection",1,"section-gray"],[1,"container","py-3","mt-1","mt-lg-0","py-lg-5","mb-2"],[1,"sub-heading-1","my-2","py-1","notification-center-page-title"],[1,"heading-2","mb-0","mb-lg-3","pb-1","pb-lg-2","notification-center-page-subtitle"],["class","alert alert-warning","role","alert","style","position: sticky; top: 75px; z-index: 99;",4,"ngIf"],["class","d-flex d-lg-none",4,"ngIf"],["notificationCenterContentLeft",""],[1,"mb-0",3,"menus","isInnerNav","isBlpPage","activeCategory"],["class","p-3 d-flex justify-content-between align-items-md-center flex-column flex-md-row",4,"ngIf"],[4,"ngIf","ngIfElse"],["noNotifications",""],["notificationCenterContentRight",""],[1,"d-lg-block",3,"isBlpPage","closeSearch"],["role","alert",1,"alert","alert-warning",2,"position","sticky","top","75px","z-index","99"],["href","javascript:void(0)",3,"click"],[1,"d-flex","d-lg-none"],[1,"row","d-flex","d-xl-none","align-items-end"],[1,"col-12","col-md-7","text-left","text-md-right"],["type","button",1,"btn","btn-primary","d-inline-flex","align-items-center",3,"click"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.8086 12.1051L11.0824 9.37891C10.9594 9.25586 10.7926 9.1875 10.6176 9.1875H10.1719C10.9266 8.22227 11.375 7.0082 11.375 5.6875C11.375 2.5457 8.8293 0 5.6875 0C2.5457 0 0 2.5457 0 5.6875C0 8.8293 2.5457 11.375 5.6875 11.375C7.0082 11.375 8.22227 10.9266 9.1875 10.1719V10.6176C9.1875 10.7926 9.25586 10.9594 9.37891 11.0824L12.1051 13.8086C12.3621 14.0656 12.7777 14.0656 13.032 13.8086L13.8059 13.0348C14.0629 12.7777 14.0629 12.3621 13.8086 12.1051ZM5.6875 9.1875C3.7543 9.1875 2.1875 7.62344 2.1875 5.6875C2.1875 3.7543 3.75156 2.1875 5.6875 2.1875C7.6207 2.1875 9.1875 3.75156 9.1875 5.6875C9.1875 7.6207 7.62344 9.1875 5.6875 9.1875Z","fill","white"],[1,"p-3","d-flex","justify-content-between","align-items-md-center","flex-column","flex-md-row"],[4,"ngIf"],["class","m-0 mt-3 mt-md-0","style","font-weight: 500; font-size: 14px;",4,"ngIf"],["routerLink","./","queryParamsHandling","merge",1,"btn",3,"queryParams","ngClass"],[1,"m-0","mt-3","mt-md-0",2,"font-weight","500","font-size","14px"],[4,"ngFor","ngForOf"],["class","d-flex justify-content-center pt-4",4,"ngIf"],[3,"notification","category","doesNotificationBelongToUser","removeNotification"],[1,"d-flex","justify-content-center","pt-4"],["type","button",1,"btn","btn-secondary",3,"disabled","click"],["class","no-notifications",4,"ngIf"],[1,"no-notifications"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z","fill","#000"],[1,"mt-2"]],template:function(n,i){if(1&n&&(t.TgZ(0,"main",0)(1,"div",1)(2,"div",2)(3,"h3",3),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"h2",4),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,qt,6,6,"div",5),t.YNc(10,Yt,9,3,"app-notification-center-content-layout",6),t.TgZ(11,"app-notification-center-content-layout"),t.ynx(12,7),t._UZ(13,"app-notification-center-nav",8),t.ALo(14,"async"),t.YNc(15,jt,4,4,"div",9),t.ALo(16,"async"),t.YNc(17,Xt,5,5,"ng-container",10),t.ALo(18,"async"),t.YNc(19,Kt,1,1,"ng-template",null,11,t.W1O),t.BQk(),t.ynx(21,12),t.TgZ(22,"app-notification-center-search",13),t.NdJ("closeSearch",function(){return i.showSearchOnMobile=!1}),t.qZA(),t.BQk(),t.qZA()()()()),2&n){const a=t.MAs(20);let s;t.ekj("notification-center--blp",i.isBlpPage),t.Q6J("ngStyle",i.notificationCenterBlpStyle),t.xp6(4),t.Oqu(t.lcZ(5,19,"NOTIFICATION_CENTER.TITLE")),t.xp6(3),t.Oqu(t.lcZ(8,21,"NOTIFICATION_CENTER.SUBTITLE")),t.xp6(2),t.Q6J("ngIf",i.hasNewNotification),t.xp6(1),t.Q6J("ngIf",!i.showSearchOnMobile),t.xp6(3),t.Q6J("menus",i.menus)("isInnerNav",!0)("isBlpPage",i.isBlpPage)("activeCategory",t.lcZ(14,23,i.category$)||"open"),t.xp6(2),t.Q6J("ngIf",t.lcZ(16,25,i.notifications$)),t.xp6(2),t.Q6J("ngIf",null==(s=t.lcZ(18,27,i.notifications$))?null:s.length)("ngIfElse",a),t.xp6(5),t.ekj("d-none",!i.showSearchOnMobile)("d-block",i.showSearchOnMobile),t.Q6J("isBlpPage",i.isBlpPage)}},dependencies:[l.ez,l.mk,l.sg,l.O5,l.PC,l.Ov,T.m,Ft.Q,N.X$,h.Bz,h.yS,O,F,Q,wt],styles:["[_nghost-%COMP%] .app-table th, [_nghost-%COMP%] .app-table td{font-size:16px!important;line-height:20px;padding:20px!important}[_nghost-%COMP%] .loading-shade{bottom:0!important;height:100vh!important;left:0!important;position:fixed!important;width:100vw!important;z-index:99999!important}@media (max-width: 767px){[_nghost-%COMP%] .notification-center-page-title{font-size:18px;line-height:20px}[_nghost-%COMP%] .notification-center-page-subtitle{font-size:32px;line-height:34px}}[_nghost-%COMP%] .btn-sm{padding-left:12px!important;padding-right:12px!important}.notification-center--blp[_ngcontent-%COMP%] .notification-center-page-title[_ngcontent-%COMP%], .notification-center--blp[_ngcontent-%COMP%] .notification-center-page-subtitle[_ngcontent-%COMP%]{color:var(--dashboard-heading-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-primary, .notification-center--blp[_ngcontent-%COMP%] .btn-secondary{background-color:var(--notification-center-button-bg)!important;color:var(--notification-center-button-color)!important;border:1px solid var(--notification-center-button-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-primary:hover, .notification-center--blp[_ngcontent-%COMP%] .btn-primary:focus, .notification-center--blp[_ngcontent-%COMP%] .btn-primary:active, .notification-center--blp[_ngcontent-%COMP%] .btn-secondary:hover, .notification-center--blp[_ngcontent-%COMP%] .btn-secondary:focus, .notification-center--blp[_ngcontent-%COMP%] .btn-secondary:active{background-color:var(--notification-center-button-bg)!important;color:var(--notification-center-button-color)!important;border-color:var(--notification-center-button-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-primary svg path, .notification-center--blp[_ngcontent-%COMP%] .btn-secondary svg path{f
41ill:currentColor!important}.notification-center--blp[_ngcontent-%COMP%] app-notification-center-widget{background-color:var(--notification-center-search-bg)!important;border:1px solid var(--notification-center-search-border-color)!important;color:var(--notification-center-search-text-color)!important}.notification-center--blp[_ngcontent-%COMP%] h4.sub-heading-2, .notification-center--blp[_ngcontent-%COMP%] label{color:var(--notification-center-search-text-color)!important}.notification-center--blp[_ngcontent-%COMP%] .form-control{border-color:var(--notification-center-search-input-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .form-control::-moz-placeholder{color:var(--notification-center-search-input-placeholder-color)!important;opacity:1}.notification-center--blp[_ngcontent-%COMP%] .form-control::placeholder{color:var(--notification-center-search-input-placeholder-color)!important;opacity:1}.notification-center--blp[_ngcontent-%COMP%] .form-control::-webkit-input-placeholder{color:var(--notification-center-search-input-placeholder-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-primary{background-color:var(--notification-center-search-bg)!important;color:var(--notification-center-search-button-color)!important;border:1px solid var(--notification-center-search-button-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-primary:hover, .notification-center--blp[_ngcontent-%COMP%] .btn-primary:focus, .notification-center--blp[_ngcontent-%COMP%] .btn-primary:active{background-color:var(--notification-center-search-bg)!important;color:var(--notification-center-search-button-color)!important;border-color:var(--notification-center-search-button-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-primary svg, .notification-center--blp[_ngcontent-%COMP%] .btn-primary svg use{color:currentColor!important;fill:currentColor!important}.notification-center--blp[_ngcontent-%COMP%] .btn-link{color:var(--notification-center-search-button-color)!important}.notification-center--blp[_ngcontent-%COMP%] .notification-center-close-search svg path{fill:var(--notification-center-search-text-color)!important}.notification-center--blp[_ngcontent-%COMP%] .btn-secondary-outlined{background-color:var(--dashboard-tab-inactive-bg)!important;color:var(--dashboard-tab-inactive-color)!important;border:1px solid var(--dashboard-tab-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .notification-center-blp-action-button{background-color:var(--notification-center-button-bg)!important;color:var(--notification-center-button-color)!important;border:1px solid var(--notification-center-button-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] .notification-center-blp-action-button:hover, .notification-center--blp[_ngcontent-%COMP%] .notification-center-blp-action-button:focus, .notification-center--blp[_ngcontent-%COMP%] .notification-center-blp-action-button:active{background-color:var(--notification-center-button-bg)!important;color:var(--notification-center-button-color)!important;border-color:var(--notification-center-button-border-color)!important}.notification-center--blp[_ngcontent-%COMP%] app-notification-center-nav{background-color:var(--notification-center-nav-bg)!important}.notification-center--blp[_ngcontent-%COMP%] app-notification-center-nav .notification-center-nav>li>a{color:var(--notification-center-nav-color)!important}.notification-center--blp[_ngcontent-%COMP%] app-notification-center-nav .notification-center-nav>li>a>span.badge{background-color:#fff!important;color:var(--notification-center-nav-bg)!important}.notification-center--blp[_ngcontent-%COMP%] app-notification-center-nav .notification-center-nav>li>a>span.border{background-color:var(--notification-center-nav-active-indicator-bg)!important}.no-notifications[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.read-messages-marker[_ngcontent-%COMP%]{flex-wrap:nowrap;gap:16px;text-align:center;margin-bottom:16px}.read-messages-marker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child, .read-messages-marker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{background-color:#34364e;height:2px;flex-grow:1}.read-messages-marker-text[_ngcontent-%COMP%]{color:#34364e;font-size:13px;font-weight:700;line-height:16px}"]}),e})()},36520:(L,A,c)=>{function v(r){if(!r)return null;const d=r.primaryColor,u=r?.textColorTwo||"#FFFFFF";return{"--dashboard-heading-color":d,"--dashboard-tab-active-bg":d,"--dashboard-tab-active-color":u,"--dashboard-tab-inactive-bg":u,"--dashboard-tab-inactive-color":d,"--dashboard-tab-border-color":d,"--dashboard-tab-active-badge-bg":u,"--dashboard-tab-active-badge-color":d,"--dashboard-tab-inactive-badge-bg":d,"--dashboard-tab-inactive-badge-color":u}}function t(r){return r?.primaryColor&&r?.secondaryColor?{"--running-eco-banner-bg":r.primaryColor,"--running-eco-banner-color":r.textColorTwo||"#FFFFFF","--running-eco-banner-dot-color":r.primaryColor}:null}function l(r){const d=v(r);if(!d||!r?.primaryColor)return null;const u=r.textColorTwo||"#FFFFFF",O="#999999";return{...d,"--community-nav-bg":r.primaryColor,"--community-nav-color":u,"--community-nav-active-indicator-bg":u,"--community-button-bg":u,"--community-button-color":r.primaryColor,"--community-button-border-color":O,"--community-search-bg":u,"--community-search-border-color":r.primaryColor,"--community-search-text-color":r.primaryColor,"--community-search-input-border-color":r.primaryColor,"--community-search-input-placeholder-color":r.primaryColor,"--community-search-button-color":r.primaryColor,"--community-search-button-border-color":O}}function T(r){const d=v(r);if(!d||!r?.primaryColor)return null;const u=r.textColorTwo||"#FFFFFF",O="#999999";return{...d,"--notification-center-nav-bg":r.primaryColor,"--notification-center-nav-color":u,"--notification-center-nav-active-indicator-bg":u,"--notification-center-button-bg":u,"--notification-center-button-color":r.primaryColor,"--notification-center-button-border-color":O,"--notification-center-search-bg":u,"--notification-center-search-border-color":r.primaryColor,"--notification-center-search-text-color":r.primaryColor,"--notification-center-search-input-border-color":r.primaryColor,"--notification-center-search-input-placeholder-color":r.primaryColor,"--notification-center-search-button-color":r.primaryColor,"--notification-center-search-button-border-color":O}}function h(r){const d=v(r);if(!d||!r?.primaryColor)return null;const u=r.textColorTwo||"#FFFFFF";return{...d,"--user-profile-heading-color":r.primaryColor,"--user-profile-header-fallback-bg":r.primaryColor,"--user-profile-button-bg":r.primaryColor,"--user-profile-button-color":u,"--u
41ser-profile-social-active-bg":r.primaryColor}}c.d(A,{Gf:()=>t,Nf:()=>h,Ng:()=>v,mQ:()=>l,sF:()=>T})}}]);
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.