1import{c as ge}from"./chunk-ZUJKHSSQ.js";import"./chunk-G6AJAHLN.js";import"./chunk-6Y5W33MO.js";import"./chunk-YQAXVBHR.js";import"./chunk-WYBDS4UK.js";import{D as Oe,E as Se,F as Ee,M as Ie,da as Ne,k as Me}from"./chunk-3YWAM4HK.js";import"./chunk-XA5IESIA.js";import{q as U}from"./chunk-QZHW5BOK.js";import"./chunk-ZUE3IRRM.js";import"./chunk-E4COIOVI.js";import"./chunk-WZVNHV4F.js";import{Cc as pe,Fc as g,Hb as le,L as Ce,Qc as f,_b as ue,b as O,c as _e,e as me,k as re,ld as de,r as ce,wd as Te}from"./chunk-GXHPG2SU.js";import{Aa as R,Ab as u,Ba as h,Bd as ne,Cd as se,Dc as y,Eb as L,Ed as ae,Jb as r,Ob as V,Qb as c,Ua as B,Xa as a,Ya as d,Zc as ee,ac as v,bc as T,cc as W,dc as E,ec as Y,hc as H,ib as C,ic as J,jc as q,ka as F,kd as te,la as G,lb as j,mb as M,na as X,qc as K,rc as Q,sa as N,sc as Z,ta as z,tb as l,v as D,vd as ie,yb as n,zb as o,zc as P,zd as oe}from"./chunk-4EL7MW65.js";import"./chunk-WWX6BADO.js";var A=(()=>{class t{constructor(e){this.$http=e}getAllCommunications(){return this.$http.get(O.customerCommunication,"/v1/CustomerCommunications")}getCommunication(e){return this.$http.get(O.customerCommunication,`/v1/CustomerCommunications/${e}`)}postAcknowledment(e){return this.$http.post(O.customerCommunication,`/v1/CustomerCommunications/${e}`)}getIsReadOnly(){return this.$http.get(O.customerCommunication,"/v1/CustomerCommunications/GetIsReadOnly")}static{this.\u0275fac=function(i){return new(i||t)(X(Te))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Le=()=>[25,50,75,100],ve=(t,_)=>({notice:t,"notice-bold":_}),Pe=t=>["./",t];function ye(t,_){t&1&&(n(0,"div")(1,"label"),r(2,1),o()())}function xe(t,_){t&1&&(n(0,"div")(1,"label"),r(2,2),o()())}function be(t,_){if(t&1&&(n(0,"div",25)(1,"span",26)(2,"span"),r(3,3),o(),T(4),n(5,"span"),r(6,4),o(),T(7),o()()),t&2){c(2);let e=v(11),i=c();a(4),Y(" ",e.first+1,"-",e.first+e.rows>(i.news==null?null:i.news.length)?i.news==null?null:i.news.length:e.first+e.rows," "),a(3),E(" ",e.totalRecords," ")}}function $e(t,_){t&1&&C(0,be,8,3,"ng-template",21)}function we(t,_){t&1&&(n(0,"tr"),u(1,"th",27),n(2,"th",28)(3,"span"),r(4,5),o(),u(5,"p-sortIcon",29),o(),n(6,"th",30)(7,"span"),r(8,6),o(),u(9,"p-sortIcon",31),o(),n(10,"th",32)(11,"span"),r(12,7),o(),u(13,"p-sortIcon",33),o()())}function ke(t,_){t&1&&(n(0,"div"),u(1,"img",36),o())}function De(t,_){if(t&1&&(n(0,"tr")(1,"td",34),C(2,ke,2,0,"div"),o(),n(3,"td")(4,"a",35),T(5),o()(),n(6,"td"),T(7),P(8,"biDate"),o(),n(9,"td"),T(10),P(11,"biDate"),o()()),t&2){let e=_.$implicit;a(2),l(e.importance===1?2:-1),a(2),M("ngClass",Z(16,ve,e.localAckDate,!e.localAckDate))("routerLink",Q(19,Pe,e.communicationToken)),a(),E(" ",e.title," "),a(2),E(" ",y(8,6,e.noticeDate,!0,!1,!1)," "),a(3),E(" ",y(11,11,e.localAckDate,!0,!0,!1)," ")}}function Fe(t,_){if(t&1&&(n(0,"tr")(1,"td"),r(2,8),o()()),t&2){let e=_.$implicit;a(),j("colspan",e==null?null:e.length)}}function Ge(t,_){if(t&1&&(n(0,"div")(1,"div",11)(2,"div",12)(3,"div",13),u(4,"h2",14),o()()(),n(5,"div",15)(6,"div",16)(7,"div",17)(8,"div",18)(9,"div",19)(10,"p-table",20,0),C(12,$e,1,0,null,21)(13,we,14,0,"ng-template",22)(14,De,12,21,"ng-template",23)(15,Fe,3,1,"ng-template",24),o()()()()()()()),t&2){let e=v(11),i=c();a(10),M("value",i.news)("paginator",!0)("rows",25)("loading",i.loading)("rowsPerPageOptions",K(8,Le))("paginatorPosition","bottom")("resizableColumns",!0),a(2),l(e?12:-1)}}var S=function(t){return t[t.NoMessages=1]="NoMessages",t[t.SuppressedByAgency=2]="SuppressedByAgency",t[t.ShowAll=3]="ShowAll",t}(S||{}),Ue=(()=>{class t{constructor(e){this.$customerCommunicationService=e,this.loading=!0,this.suppressByAgency=S.SuppressedByAgency,this.noMessages=S.NoMessages,this.showAll=S.ShowAll,this.subscriptions=new Array}ngOnInit(){this.getCommunications()}ngOnDestroy(){this.subscriptions&&this.subscriptions.forEach(e=>e.unsubscribe())}handleSuppression(e){e!==this.isSuppressed&&(this.isSuppressed=e,this.setLoading(!0),this.isSuppressed?this.displayOption=S.SuppressedByAgency:this.news.length===0?this.displayOption=S.NoMessages:this.displayOption=S.ShowAll,this.setLoading(!1))}getCommunications(){if(this.setLoading(!0),this.$customerCommunicationService){let e=this.$customerCommunicationService.getAllCommunications(),i=this.$customerCommunicationService.getIsReadOnly();this.subscriptions.push(D([e,i]).subscribe(s=>{this.news=s[0];let m=s[1];this.handleSuppression(m)}))}}setLoading(e){this.loading=e}static{this.\u0275fac=function(i){return new(i||t)(d(A))}}static{this.\u0275cmp=N({type:t,selectors:[["app-customer-communication-list"]],decls:6,vars:2,consts:()=>{let e;e=$localize`Customer Communication`;let i;i=$localize`:@@CustomerCommunications_Suppressed:This feature has been disabled.`;let s;s=$localize`:@@CustomerCommunications_NoMessages:You have no messages to display.`;let m;m=$localize`:@@Results:Results: `;let I;I=$localize`:of:of`;let b;b=$localize`Notice`;let $;$=$localize`Notice Date`;let w;w=$localize`Date Read`;let k;
1return k=$localize`:No records found|No records found@@When records 2 are empty No records found: No records found `,[["dt",""],i,s,m,I,b,$,w,k,["name",e,"icon","fas fa-envelope green"],[3,"isLoading"],[2,"margin","15px 15px 15px"],[1,"row"],[1,"col-md-12"],[1,"headerTitle"],[1,"card"],[1,"p-3"],[1,"mt-3"],[1,"row","row-top-buffer"],[1,"col"],["sortMode","multiple","responsiveLayout","scroll",3,"value","paginator","rows","loading","rowsPerPageOptions","paginatorPosition","resizableColumns"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[2,"text-align","right"],[1,"recordsCount"],["id","importanceHeader",1,"status"],["id","noticeHeader","pSortableColumn","title",1,"notice"],["field","title"],["id","noticDateHeader","pSortableColumn","noticeDate",1,"date"],["field","noticeDate"],["id","acceptDateHeader","pSortableColumn","localAckDate",1,"date"],["field","localAckDate"],[1,"data"],[3,"ngClass","routerLink"],["alt","important","src","./assets/images/Exclamation Point.svg","height","16px","width","16px"]]},template:function(i,s){if(i&1&&(n(0,"bi-page",9)(1,"bi-loading-container",10)(2,"bi-card"),C(3,ye,3,0,"div")(4,xe,3,0,"div")(5,Ge,16,9,"div"),o()()()),i&2){let m;a(),M("isLoading",s.loading),a(2),l((m=s.displayOption)===s.suppressByAgency?3:m===s.noMessages?4:m===s.showAll?5:-1)}},dependencies:[ee,Oe,le,Se,Ee,se,pe,f,g,U],styles:[".status[_ngcontent-%COMP%]{width:7em;text-align:center}.data[_ngcontent-%COMP%]{text-align:center} app-customer-communication-list .p-datatable-tbody>tr>td{white-space:normal!important}"]})}}return t})();function Xe(t,_){if(t&1&&(n(0,"div")(1,"label",6),T(2),o()()),t&2){let e=c();a(2),W(e.comm.title)}}function ze(t,_){if(t&1){let e=L();n(0,"input",11),q("ngModelChange",function(s){R(e);let m=c(2);return J(m.saveAcknowledgement,s)||(m.saveAcknowledgement=s),h(s)}),o()}if(t&2){let e=c(2);H("ngModel",e.saveAcknowledgement),M("disabled",e.readOnly)}}function Be(t,_){t&1&&(n(0,"label",8),r(1,1),o())}function je(t,_){if(t&1){let e=L();n(0,"div",3),C(1,ze,1,2,"input",7)(2,Be,2,0,"label",8),n(3,"span",9)(4,"bi-action-back",10),V("execute",function(){R(e);let s=c();return h(s.backClick())}),o()()()}if(t&2){let e=c();a(),l(!e.comm.localAckDate&&e.comm.importance===1?1:-1),a(),l(!e.comm.localAckDate&&e.comm.importance===1?2:-1)}}function Ve(t,_){if(t&1&&u(0,"iframe",5,0),t&2){let e=c();M("src",e.safeUrl,B)}}var Ae=(()=>{class t{constructor(e,i,s,m,I){this.domSanitizer=e,this.router=i,this.activatedRoute=s,this.$customerCommunicationService=m,this.$urlGeneratorService=I,this.subscriptions=new Array,this.saveAcknowledgement=!1,this.loading=!0,this.readOnly=!1,this.activatedRoute&&this.activatedRoute.snapshot&&(this.communicationToken=this.activatedRoute.snapshot.params.communicationToken)}ngOnInit(){this.srcSet=!1,this.communicationToken&&this.getCommunication()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}getCommunication(){this.subscriptions.push(this.$customerCommunicationService.getCommunication(this.communicationToken).subscribe(e=>{this.comm=e;let i=this.comm.filePath.replace("../","/"),s=this.$urlGeneratorService.generate(O.legacyTAUi,i);this.safeUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(s),this.srcSet=!0,this.comm.localAckDate&&(this.saveAcknowledgement=!0)})),this.setLoading(!1)}backClick(){!this.comm.localAckDate&&(this.saveAcknowledgement||this.comm.importance===0)?this.subscriptions.push(this.$customerCommunicationService.postAcknowledment(this.communicationToken).subscribe(()=>{setTimeout(()=>{this.router.navigateByUrl("/customer/customercommunication")},0)})):this.router.navigateByUrl("/customer/customercommunication")}setLoading(e){this.loading=e}static{this.\u0275fac=function(i){return new(i||t)(d(ie),d(ne),d(oe),d(A),d(_e))}}static{this.\u0275cmp=N({type:t,selectors:[["app-customer-communication-display"]],decls:10,vars:3,consts:()=>{let e;return e=$localize`:Customer Communication Acknowledgement:I have read this page`,[["iframe",""],e,["width","100%","height","100%"],[1,"customer-communication-options"],[1,"d-flex","flex-column","flex-grow-1"],["title","pdf","id","pdfFrame","name","pdfFrame",1,"d-flex","flex-column","flex-grow-1","w-100",3,"src"],[1,"customer-communication-title","w-100"],["type","checkbox",3,"ngModel","disabled"],[1,"customer-communication-check-label"],[1,"customer-communication-back-action"],[3,"execute"],["type","checkbox",3,"ngModelChange","ngModel","disabled"]]},template:function(i,s){i&1&&(n(0,"bi-page")(1,"bi-card"),C(2,Xe,3,1,"div"),n(3,"div")(4,"table",2)(5,"tr")(6,"td"),C(7,je,5,2,"div",3),o()()()(),n(8,"div",4),C(9,Ve,2,1,"iframe",5),o()()()),i&2&&(a(2),l(s.comm?2:-1),a(5),l(s.comm?7:-1),a(2),l(s.srcSet?9:-1))},dependencies:[me,re,ce,Me,ue,f,g],styles:[".customer-communication-options[_ngcontent-%COMP%]{float:right}.customer-communication-check-label[_ngcontent-%COMP%]{color:#036;font-size:12px;margin-right:5px;margin-left:5px}.customer-communication-title[_ngcontent-%COMP%]{font-size:1.5rem;color:#0a009b;background-color:#b5dffc;text-align:center;margin:auto;align-items:center}.customer-communication-back-action[_ngcontent-%COMP%]{margin-right:-8px}"]})}}return t})();var Tt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=z({type:t})}static{this.\u0275inj=G({providers:[U],imports:[te,Ie,Ce,ge,Ne,ae.forChild([{path:"",component:Ue,pathMatch:"full"},{path:":communicationToken",component:Ae}]),de]})}}return t})();export{Tt as CustomerCommunicationModule};
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.