1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2814],{2814:(A,d,i)=>{i.r(d),i.d(d,{MessagesPage:()=>D});var g=i(5861),m=i(6814),e=i(9127),M=i(1993),_=i(3999),o=i(5139),p=i(9567),l=i(8890),h=i(6288),f=i(8085),P=i(502);const O=(n,r)=>r.id;function v(n,r){1&n&&(e.TgZ(0,"ion-header",4)(1,"ion-toolbar",5)(2,"ion-title"),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&n&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"Messages")))}function x(n,r){1&n&&(e.TgZ(0,"h2"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"Messages")))}function C(n,r){1&n&&(e.TgZ(0,"ion-badge",9),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"New")))}function E(n,r){if(1&n&&(e.TgZ(0,"ion-card-content"),e._UZ(1,"div",11),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("innerHTML",t.body_html,e.oJD)}}function T(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"ion-card")(1,"ion-item",6),e.NdJ("click",function(){const u=e.CHM(t).$implicit,c=e.oxw();return e.KtG(c.toggleMessage(u))}),e._UZ(2,"ion-icon",7),e.TgZ(3,"ion-label",8)(4,"h2"),e._uU(5),e.qZA(),e.TgZ(6,"p"),e._uU(7),e.ALo(8,"date"),e.qZA()(),e.YNc(9,C,3,3,"ion-badge",9),e._UZ(10,"ion-icon",10),e.qZA(),e.YNc(11,E,2,1,"ion-card-content"),e.qZA()}if(2&n){const t=r.$implicit,s=e.oxw();e.ekj("unread",!t.is_read),e.xp6(2),e.Q6J("name",t.is_read?"mail-open-outline":"mail-unread-outline"),e.xp6(3),e.Oqu(t.title),e.xp6(2),e.Oqu(e.xi3(8,8,t.date_created,"mediumDate")),e.xp6(2),e.um2(9,t.is_read?-1:9),e.xp6(1),e.Q6J("name",s.selectedMessageId===t.id?"chevron-up-outline":"chevron-down-outline"),e.xp6(1),e.um2(11,s.selectedMessageId===t.id?11:-1)}}function Z(n,r){1&n&&(e.TgZ(0,"div",12),e._UZ(1,"ion-icon",13),e.TgZ(2,"p"),e._uU(3),e.ALo(4,"translate"),e.qZA()()),2&n&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"No messages yet.")))}let D=(()=>{class n{constructor(){this.messages=[],this.selectedMessageId=null,this.loading=!1,this.isMobile=!1,this.messageService=(0,e.f3M)(h.e),this.translate=(0,e.f3M)(_.sK),this.title=(0,e.f3M)(f.y),this.breakpointService=(0,e.f3M)(P.r),this.destroyRef=(0,e.f3M)(e.ktI),(0,p.d)({"mail-open-outline":l.mailOpenOutline,"mail-unread-outline":l.mailUnreadOutline,"chevron-down-outline":l.chevronDownOutline,"chevron-up-outline":l.chevronUpOutline}),this.breakpointService.isMobile.pipe((0,M.sL)(this.destroyRef)).subscribe(t=>{this.isMobile=t}),this.title.init(this.translate.instant("Messages"),this.translate.instant("Setlistory messages and updates."))}ionViewWillEnter(){this.loadMessages()}loadMessages(t){var s=this;return(0,g.Z)(function*(){s.loading=!0;const a=yield s.messageService.find({order:"date_created DESC"});void 0!==a&&(s.messages=a.data||[],yield s.messageService.refreshUnreadCount()),s.loading=!1,t?.target?.complete()})()}toggleMessage(t){var s=this;return(0,g.Z)(function*(){s.selectedMessageId=s.selectedMessageId===t.id?null:t.id,s.selectedMessageId&&!t.is_read&&(yield s.messageService.markRead(t))})()}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=e.Xpm({type:n,selectors:[["app-messages"]],standalone:!0,features:[e.jDz],decls:9,vars:5,consts:[["class","ion-no-border"],["slot","fixed",3,"ionRefresh"],[1,"messages-container"],["class","empty-state"],[1,"ion-no-border"],[1,"darkToolbar"],["button","","lines","none","detail","false",3,"click"],["slot","start",1,"mailIcon",3,"name"],[1,"ion-text-wrap"],["slot","end","color","primary"],["slot","end",3,"name"],[1,"message-body",3,"innerHTML"],[1,"empty-state"],["name","mail-open-outline"],[3,"unread"]],template:function(s,a){1&s&&(e.YNc(0,v,5,3,"ion-header",0),e.TgZ(1,"ion-content")(2,"ion-refresher",1),e.NdJ("ionRefresh",function(c){return a.loadMessages(c)}),e._UZ(3,"ion-refresher-content"),e.qZA(),e.TgZ(4,"div",2),e.YNc(5,x,3,3,"h2"),e.SjG(6,T,12,11,"ion-card",14,O),e.YNc(8,Z,5,3,"div",3),e.qZA()()),2&s&&(e.um2(0,a.isMobile?0:-1),e.xp6(1),e.ekj("bg-transparent",!a.isMobile),e.xp6(4),e.um2(5,a.isMobile?-1:5),e.xp6(1),e.wJu(a.messages),e.xp6(2),e.um2(8,a.loading||a.messages.length?-1:8))},dependencies:[m.CommonModule,m.DatePipe,o.Pc,o.yp,o.PM,o.FN,o.W2,o.Gu,o.gu,o.Ie,o.Q$,o.nJ,o.Wo,o.wd,o.sr,_.aw,_.X$],styles:[".messages-container[_ngcontent-%COMP%]{margin:24px auto;max-width:800px;padding:0 12px 80px}.messages-container[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0}ion-card[_ngcontent-%COMP%]{border-left:4px solid transparent}ion-card.unread[_ngcontent-%COMP%]{border-left-color:var(--ion-color-primary)}ion-card.unread[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700}ion-card[_ngcontent-%COMP%] ion-icon.mailIcon[_ngcontent-%COMP%]{margin-right:20px}.message-body[_ngcontent-%COMP%]{line-height:1.5}.empty-state[_ngcontent-%COMP%]{color:var(--ion-color-medium);padding:64px 16px;text-align:center}.empty-state[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:48px}"]})}}return n})()}}]);
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.