1import{a as y}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-752ATJ3K.js";import{a as de}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-7LCCCH6I.js";import{a as R,b as ue}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-3Y3AF7HK.js";import{a as ae,b as re}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-F7WUWXEQ.js";import{a as L}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-E4O32IR2.js";import{a as Se}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-PUQUU7JY.js";import{a as U}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-BLIUWKZQ.js";import{a as le,b as Ee}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-YLOWR4MM.js";import{a as ce,b as pe,c as me,d as _e,e as Ce,f as fe}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-DHZBVE3T.js";import{a as se,b as ge}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-5LBOHWAU.js";import{b as w,d as he}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-TIDWU6YS.js";import{a as ne}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-GDQANC6E.js";import{a as _,b as N,c as ie,d as oe}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-D2NMZ6OI.js";import{a as je}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-V6H552WA.js";import{b as v}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-AJDOMMIS.js";import{a as K}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-BWA2OE7O.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-WGAXUMHD.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-A5A4ON67.js";import{j as te}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-X5RNINAL.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-GM7QTX3Q.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-3VE4T5X3.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-WB5FSQCV.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-NA7KRUKM.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-W5YER7AF.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-IGZIRJQN.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-JH7E5ALJ.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-VDTBCEHH.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-GUJRV77H.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-OAFWGKHG.js";import{a as J}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-R6ATEHOJ.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-TMQTKFW7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ME6OOKIW.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-TZWBTES7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-LXVF7CF2.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-MXMRLGMX.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-55LBUOLS.js";import{a as ee}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-2IMUUWJB.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-VXK3FO45.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ASPNFSTE.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-OTH5IOCH.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-5FXY6EHC.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-UYV7J5M3.js";import{a as Z}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-FJVWFSSK.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-WSQHVBSB.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-KHZYCMEO.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-LUVC62E7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ZOQH4BRJ.js";import{I as P,K as x,s as A}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-GWKWBQ3P.js";import{b as Q,c as W}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-3KHHOKR7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-NJNVRHKN.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-DKZN7K64.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-BYG2IWSB.js";import{j as $,p as G,t as Y,u as q,w as z}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-DKUNSAXA.js";import{A as E,B as M,C as O,E as h,H as k}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-LBCPBUBK.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-VLHNUVO3.js";import{e as X}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-KFW34AI3.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-G3XYAJPK.js";import{i as He}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-WXUJ2XVZ.js";import"@angular/core";import{CommonModule as dt}from"@angular/common";import{TranslateModule as ut}from"@ngx-translate/core";import{ReactiveFormsModule as gt}from"@angular/forms";import"@angular/core";import{filter as H,switchMap as j,tap as it}from"rxjs";import{of as nt}from"rxjs";import{OcapiCallConfig as f}from"@telenet/ng-lib-ocapi";var p=class{static{this.EMPTY=""}static{this.RESOURCE_SERVICE_PREFIX="/public/api/resource-service"}static{this.CONTEXT_COMPANY_CONTACTS="/freephonebusiness/v1"}static{this.ENDPOINT_CONTACTS="/contacts"}static{this.ENDPOINT_UPLOAD="/contacts/upload"}static{this.ENDPOINT_DOWNLOAD="/contacts/download"}static{this.ENDPOINT_MULTIPLE_DELETE="/contacts/delete"}static{this.ENDPOINT_CONTACTS_SUGGESTIONS="/contacts/suggestions"}static{this.COMPANY_CONTACT_ERROR_CAUSE_KEYS=new Map([["ConstraintViolationException - Name already taken by another phonebook entry","name.already.taken"],["name: Name must be less than 50 characters","name.length"],["phoneNumber: Phone number should only consist of min. 2 and max. 22 digits or -, optionally preceded with +","phone.number.invalid"]])}static{this.COMPANY_CONTACT_UPLOAD_FAILED="upload.error"}};import"@angular/core";import"@angular/core";import*as ve from"@angular/core";var Ne=(()=>{class a{toModel(t){return this.createCompanyContacts(t)}createCompanyContacts(t){return t.map(i=>this.createCompanyContact(i))}createCompanyContact(t){let i={};return i.name=t.name,i.uuid=t.uuid,i.phoneNumber=t.phoneNumber,i}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275prov=ve.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();import*as D from"@angular/core";var be=(()=>{class a{constructor(t){this.companyContactsMapper=t}toModel(t){return this.createPaginatedCompanyContacts(t)}createPaginatedCompanyContacts(t){let i={};return i.content=this.companyContactsMapper.toModel(t.content),i.pageNumber=t.pageNumber,i.pageSize=t.pageSize,i.totalPages=t.totalPages,i.totalElements=t.totalElements,i}static{this.\u0275fac=function(i){return new(i||a)(D.\u0275\u0275inject(Ne))}}static{this.\u0275prov=D.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();import"@angular/core";import{throwError as Te}from"rxjs";import*as C from"@angular/core";import*as Ie from"@telenet/ng-lib-ocapi";var b=(()=>{class a extends ee{constructor(t,i,o,r,c){super(),this.ocapiService=t,this.paginatedCompanyContactsMapper=i,this.deleteContactsMapper=o,this.responseStatusMapper=r,this.messageService=c}getCompanyContacts(t,i,o,r){let c=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_CONTACTS,this.get
1SearchParameters(i,o,r));return this.ocapiService.doGet(new f(t,c,this.paginatedCompanyContactsMapper))}updateCompanyContact(t,i,o){let r=`/${o.uuid}?addressId=${i}`,c=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_CONTACTS,r),u=new f(t,c,this.responseStatusMapper,o);return u.errorHandler=this.companyContactErrorHandler.bind(this),this.ocapiService.doPut(u)}deleteContacts(t,i,o){return o.length>1?this.deleteMultipleContacts(t,i,o):this.deleteContact(t,i,o[0])}deleteMultipleContacts(t,i,o){let r=`?addressId=${i}`,c={contactIds:o},u=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_MULTIPLE_DELETE,r),I=new f(t,u,this.responseStatusMapper,c);return I.errorHandler=this.companyContactErrorHandler.bind(this),this.ocapiService.doPost(I)}deleteContact(t,i,o){let r=`/${o}?addressId=${i}`,c=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_CONTACTS,r),u=new f(t,c,this.deleteContactsMapper);return u.errorHandler=this.companyContactErrorHandler.bind(this),this.ocapiService.doDelete(u)}uploadFile(t,i,o){let r=`?addressId=${i}`,c=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_UPLOAD,r),u=new f(t,c,this.responseStatusMapper,o);return u.withDefaultContentType=!1,u.errorHandler=this.uploadContactErrorHandler.bind(this),this.ocapiService.doPost(u)}downloadFile(t,i){let o=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_DOWNLOAD,`?addressId=${i}`),r=new f(t,o,this.deleteContactsMapper,void 0,void 0,void 0,"text");return this.ocapiService.doGet(r)}createContact(t,i,o){let r=this.getServiceURI(p.RESOURCE_SERVICE_PREFIX,p.CONTEXT_COMPANY_CONTACTS,p.ENDPOINT_CONTACTS,`?addressId=${i}`),c=new f(t,r,this.responseStatusMapper,o);return c.errorHandler=this.companyContactErrorHandler.bind(this),this.ocapiService.doPost(c)}companyContactErrorHandler(t,i){let o=t?.error?.code;if(Object.values(L).includes(o)){let r=p.COMPANY_CONTACT_ERROR_CAUSE_KEYS.get(t?.error?.cause),c=r?o.concat(".",r):o;this.messageService.addMessage(new h(i.messageGroupName,`${i.messageGroupName}.${c}`))}return this.messageService.addMessage(new h(i.messageGroupName,"ocapi.".concat(t.status.toString()))),Te(()=>t)}uploadContactErrorHandler(t,i){let o=t?.error?.code;if(Object.values(L).includes(o)){let r=o.concat(".",p.COMPANY_CONTACT_UPLOAD_FAILED);this.messageService.addMessage(new h(i.messageGroupName,`${i.messageGroupName}.${r}`))}return this.messageService.addMessage(new h(i.messageGroupName,"ocapi.".concat(t.status.toString()))),Te(()=>t)}static{this.\u0275fac=function(i){return new(i||a)(C.\u0275\u0275inject(Ie.OcapiService),C.\u0275\u0275inject(be),C.\u0275\u0275inject(ne),C.\u0275\u0275inject(Z),C.\u0275\u0275inject(E))}}static{this.\u0275prov=C.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var m=(()=>{class a{static{this.SCOPES=["productholding","freephonebusiness"]}static{this.MESSAGE_GROUP="search-contacts"}static{this.DEFAULT_SORT_BY="name"}static{this.EMPTY=""}static{this.DEFAULT_PAGE_NUMBER=0}static{this.NAME_MAX_LENGTH=50}static{this.PHONE_NUMBER_MIN_LENGTH=4}static{this.PHONE_NUMBER_MAX_LENGTH=22}static{this.CSV_FILE_NAME="phonebook.csv"}static{this.CSV_TYPE="text/csv"}static{this.CSV_FILE_EXTENSION="csv"}static{this.PHONE_REGEX="^\\+?[\\s0-9]+$"}}return a})();var S=class{static createPossibleActions(l){switch(l){case 0:return[];case 1:return[{key:_.EDIT,icon:"icon-pencil"},{key:_.DELETE,icon:"icon-trash"}];default:return[{key:_.DELETE_ALL_SELECTED,icon:"icon-trash"}]}}static createPageRequest(l,t,i,o,r){return{pageNumber:l,pageSize:o,filterBy:t,sortBy:r,sortOrder:i}}static createDataTable(l){return{entryKey:"uuid",entryProperties:[m.DEFAULT_SORT_BY,"phoneNumber"],sortByProperties:[m.DEFAULT_SORT_BY],entries:l}}static getStartedActions(){return[N.CREATE,N.UPLOAD]}};import"@angular/material/dialog";var g=(function(a){return a.TABLE_SECTION="table-section",a.CREATE_SECTION="create-section",a.UPDATE_SECTION="update-section",a.UPLOAD_SECTION="upload-section",a})(g||{});import*as e from"@angular/core";import*as De from"@angular/material/dialog";import*as F from"@angular/common";import*as Fe from"@telenet/ng-lib-ocapi";import{EventEmitter as qe}from"@angular/core";import{Validators as T}from"@angular/forms";import{iif as ze,map as Ge}from"rxjs";import{provideNgxMask as Qe}from"ngx-mask";import*as s from"@angular/core";import*as d from"@angular/forms";import*as Me from"@ngx-translate/core";var Oe=(()=>{class a extends G{constructor(t,i,o){super(),this.formBuilder=t,this.companyContactService=i,this.messageService=o,this.actionEmitter=new qe}ngOnInit(){this.messageService.clearMessages(this.messageGroup),this.initializeForm(),this.contactDetails&&this.populateForm(this.contactDetails)}
1save(){if(this.contactForm.invalid){this.triggerFormValidation();return}this.messageService.clearMessages(this.messageGroup);let t=this.getCompanyContactPayload(),i=this.companyContactService.updateCompanyContact(this.messageGroup,this.addressId,t).pipe(Ge(()=>y.EDIT_ACTION_MESSAGE)),o=this.companyContactService.createContact(this.messageGroup,this.addressId,t).pipe(Ge(()=>y.CREATE_ACTION_MESSAGE));this.obs(ze(()=>!!this.contactDetails,i,o)).subscribe(r=>this.actionEmitter.emit(r))}triggerFormValidation(){Object.keys(this.contactForm.controls).forEach(t=>{this.contactForm.controls[t].updateValueAndValidity(),this.contactForm.controls[t].markAsDirty()})}getCompanyContactPayload(){return{uuid:this.contactDetails?.uuid,name:this.contactForm.get("name").value,phoneNumber:this.contactForm.get("phoneNumber").value}}populateForm(t){this.contactForm.get("name").setValue(t.name),this.contactForm.get("phoneNumber").setValue(t.phoneNumber)}initializeForm(){this.contactForm=this.formBuilder.group({name:["",[T.required,T.maxLength(m.NAME_MAX_LENGTH)]],phoneNumber:["",[T.required,T.minLength(m.PHONE_NUMBER_MIN_LENGTH),T.maxLength(m.PHONE_NUMBER_MAX_LENGTH),T.pattern(m.PHONE_REGEX)]]})}static{this.\u0275fac=function(i){return new(i||a)(s.\u0275\u0275directiveInject(d.FormBuilder),s.\u0275\u0275directiveInject(b),s.\u0275\u0275directiveInject(E))}}static{this.\u0275cmp=s.\u0275\u0275defineComponent({type:a,selectors:[["tg-upsert-section"]],inputs:{messageGroup:"messageGroup",addressId:"addressId",contactDetails:"contactDetails"},outputs:{actionEmitter:"actionEmitter"},standalone:!1,features:[s.\u0275\u0275ProvidersFeature([Qe()]),s.\u0275\u0275InheritDefinitionFeature],decls:18,vars:16,consts:[[1,"w-100"],[3,"messageGroupName"],[1,"col-12","mb--l","mt--m","mt--n--md"],[1,"heading--nomargin"],[1,"col-12","text--m"],[1,"row","m--n"],[1,"col-12","col-md-7","p--n"],[1,"row","m--n","p--n",3,"formGroup"],[1,"col-12","p--n"],["appSanitizeInput","","formControlName","name","labelStyle","FormGroup__label",3,"messageGroup","showPlaceHolder","required"],[1,"col-12","mt--s","p--n"],["appSanitizeInput","","formControlName","phoneNumber","labelStyle","FormGroup__label",3,"messageGroup","showPlaceHolder","required"],[1,"col-12","col-md-8","p--n","mt--xxl"],[1,"button","button--primary","button--width-auto",3,"click"]],template:function(i,o){i&1&&(s.\u0275\u0275elementStart(0,"div",0),s.\u0275\u0275element(1,"app-message",1),s.\u0275\u0275elementStart(2,"div",2)(3,"h4",3),s.\u0275\u0275text(4),s.\u0275\u0275pipe(5,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(6,"div",4)(7,"div",5)(8,"div",6)(9,"form",7)(10,"div",8),s.\u0275\u0275element(11,"tg-form-input",9),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(12,"div",10),s.\u0275\u0275element(13,"tg-form-input-with-tooltip",11),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275elementStart(14,"div",12)(15,"button",13),s.\u0275\u0275listener("click",function(){return o.save()}),s.\u0275\u0275text(16),s.\u0275\u0275pipe(17,"translate"),s.\u0275\u0275elementEnd()()()()()),i&2&&(s.\u0275\u0275advance(),s.\u0275\u0275property("messageGroupName",o.messageGroup),s.\u0275\u0275advance(2),s.\u0275\u0275attribute("data-cy",o.messageGroup+".title"),s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(5,12,"ng."+o.messageGroup+".heading.title")),s.\u0275\u0275advance(5),s.\u0275\u0275property("formGroup",o.contactForm),s.\u0275\u0275advance(2),s.\u0275\u0275property("messageGroup",o.messageGroup)("showPlaceHolder",!1)("required",!0),s.\u0275\u0275advance(2),s.\u0275\u0275property("messageGroup",o.messageGroup)("showPlaceHolder",!1)("required",!0),s.\u0275\u0275advance(2),s.\u0275\u0275attribute("data-cy",o.messageGroup+".btn.save-contact"),s.\u0275\u0275advance(),s.\u0275\u0275textInterpolate1("",s.\u0275\u0275pipeBind1(17,14,"ng."+o.messageGroup+".save-contact-button")," "))},dependencies:[d.\u0275NgNoValidate,d.NgControlStatus,d.NgControlStatusGroup,d.RequiredValidator,d.FormGroupDirective,d.FormControlName,le,M,P,x,A,Me.TranslatePipe],encapsulation:2})}}return a})();import{EventEmitter as Ke}from"@angular/core";var Pe=He(je());import"@angular/material/dialog";import{filter as Ae,switchMap as Je,tap as Ze}from"rxjs";import*as n from"@angular/core";import*as xe from"@angular/material/dialog";import*as we from"@angular/common";import*as Ue from"@ngx-translate/core";function et(a,l){if(a&1&&(n.\u0275\u0275elementStart(0,"div",16),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()),a&2){let t=n.\u0275\u0275nextContext();n.\u0275\u0275attribute("data-cy",t.messageGroup+".error.no-file-upload"),n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,2,"ng."+t.messageGroup+".lbl.no-file-uploaded")," ")}}var Re=(()=>{class a{constructor(t,i,o,r){this.companyContactService=t,this.urlService=i,this.dialog=o,this.window=r,this.uploadFileEvent=ne
1w Ke,this.messageGroup=m.MESSAGE_GROUP,this.config={fileExtensions:[m.CSV_FILE_EXTENSION],multiple:!1}}ngOnInit(){this.editExplanationImageUrl=q.getImagePath("FPB","contacts-excel-structure.svg")}upload(t){this.file=t[0],this.noFileUploadedMessage=!1}cancel(){this.uploadFileEvent.emit()}save(){if(this.fileUploadComponent.uploadedFileList.length===0){this.noFileUploadedMessage=!0;return}this.dialog.open(U,{data:{multipleEntries:!1,messageGroup:m.MESSAGE_GROUP,prefix:".upload-contact"}}).afterClosed().pipe(Ae(i=>!!i),Ze(()=>this.noFileUploadedMessage=!this.file),Ae(()=>!!this.file),Je(()=>this.companyContactService.uploadFile(m.MESSAGE_GROUP,this.addressId,de.createFormDate("uploadFile",this.file)))).subscribe(()=>this.uploadFileEvent.emit(y.UPLOAD_ACTION_MESSAGE))}showNoFileUploadErrorMessage(){return!this.fileUploadComponent?.showNotSupportedFileExtensionError&&this.noFileUploadedMessage}download(){this.companyContactService.downloadFile(m.MESSAGE_GROUP,this.addressId).subscribe(t=>this.downloadCsv(t))}downloadCsv(t){let i=new Blob([t],{type:m.CSV_TYPE});Pe.saveAs(i,m.CSV_FILE_NAME)}static{this.\u0275fac=function(i){return new(i||a)(n.\u0275\u0275directiveInject(b),n.\u0275\u0275directiveInject($),n.\u0275\u0275directiveInject(xe.MatDialog),n.\u0275\u0275directiveInject("Window"))}}static{this.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["tg-upload-section"]],viewQuery:function(i,o){if(i&1&&n.\u0275\u0275viewQuery(v,5),i&2){let r;n.\u0275\u0275queryRefresh(r=n.\u0275\u0275loadQuery())&&(o.fileUploadComponent=r.first)}},inputs:{addressId:"addressId"},outputs:{uploadFileEvent:"uploadFileEvent"},standalone:!1,decls:33,vars:47,consts:[[1,"w-100"],[1,"col-12","mt--m","mt--n--md"],[1,"heading--nomargin"],[1,"background-shade_04","p--xxl--md","p--m","text--m"],[1,"mt--m",3,"innerHtml"],[1,"mb--l",3,"innerHtml"],["href","javascript:void(0)",1,"link",3,"click"],[3,"innerHtml"],[1,"mb--m","col-md-6","col-12",3,"inlineSVG"],[1,"hidden-mobile",3,"innerHtml"],[1,"hidden-desktop",3,"innerHtml"],[1,"col-12","col-md-5","mb--m","p--n"],[3,"fileUploaded","config"],["class","formErrorInput text-align--left",4,"ngIf"],["type","button",1,"button","button--secondary","mr--l",3,"click"],["type","button",1,"button","button--primary","mt--l",3,"click"],[1,"formErrorInput","text-align--left"]],template:function(i,o){i&1&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h4",2),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(5,"div",3),n.\u0275\u0275element(6,"div",4),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275element(8,"div",5),n.\u0275\u0275pipe(9,"translate"),n.\u0275\u0275elementStart(10,"a",6),n.\u0275\u0275listener("click",function(){return o.download()}),n.\u0275\u0275text(11),n.\u0275\u0275pipe(12,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(13,"div",4),n.\u0275\u0275pipe(14,"translate"),n.\u0275\u0275element(15,"div",7),n.\u0275\u0275pipe(16,"translate"),n.\u0275\u0275element(17,"div",8)(18,"div",7),n.\u0275\u0275pipe(19,"translate"),n.\u0275\u0275element(20,"div",9),n.\u0275\u0275pipe(21,"translate"),n.\u0275\u0275element(22,"div",10),n.\u0275\u0275pipe(23,"translate"),n.\u0275\u0275elementStart(24,"div",11)(25,"app-file-upload",12),n.\u0275\u0275listener("fileUploaded",function(c){return o.upload(c)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(26,et,3,4,"div",13),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(27,"button",14),n.\u0275\u0275listener("click",function(){return o.cancel()}),n.\u0275\u0275text(28),n.\u0275\u0275pipe(29,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(30,"button",15),n.\u0275\u0275listener("click",function(){return o.save()}),n.\u0275\u0275text(31),n.\u0275\u0275pipe(32,"translate"),n.\u0275\u0275elementEnd()()()),i&2&&(n.\u0275\u0275advance(2),n.\u0275\u0275attribute("data-cy",o.messageGroup+".title.download-upload-contacts"),n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(4,25,"ng."+o.messageGroup+".title.download-upload-contacts")),n.\u0275\u0275advance(3),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(7,27,"ng."+o.messageGroup+".title.download-file"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".title.download-file"),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(9,29,"ng."+o.messageGroup+".text.download-file"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".text.download-file"),n.\u0275\u0275advance(2),n.\u0275\u0275attribute("data-cy",o.messageGroup+".link.download"),n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(12,31,"ng."+o.messageGroup+".btn.download-file")),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(14,33,"ng."+o.messageGroup+".title.add-contacts"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".title.add-contacts"),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(16,35,"ng."+o.messageGroup+".text.add-contacts"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".text.add-contacts"),n.\u0275\u0275advance(2),n.\u0275\u0275property("inlineSVG",o.editExplanationImageUrl),n.\u0275\u0275advance(),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(19,37,"ng."+o.messageGroup+".title.upload-file"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".title.upload-file"),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(21,39,"ng."+o.messageGroup+".txt.upload-file"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".txt.upload-file"),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind1(23,41,"ng."+o.messageGroup+".txt.upload-file-mobile"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275attribute("data-cy",o.messageGroup+".txt.upload-file-mobile"),n.\u0275\u0275advance(3),n.\u0275\u0275property("config",o.config),n.\u0275\u0275advance(),n.\u0275\u0275property("ngIf",o.showNoFileUploadErrorMessage()),n.\u0275\u0275advance(),n.\u0275\u0275attribute("data-cy",o.messageGroup+".btn.c
1ancel-save-file"),n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(29,43,"ng."+o.messageGroup+".btn.cancel-save-file")," "),n.\u0275\u0275advance(2),n.\u0275\u0275attribute("data-cy",o.messageGroup+".btn.save-fil"),n.\u0275\u0275advance(),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(32,45,"ng."+o.messageGroup+".btn.save-file")," "))},dependencies:[we.NgIf,Q,v,Ue.TranslatePipe],encapsulation:2})}}return a})();import*as Be from"@ngx-translate/core";function ot(a,l){if(a&1){let t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",13)(2,"a",14),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);let o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.backToOverview())}),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(a&2){let t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275attribute("data-cy",t.messageGroupName+".link.back-to-overview"),e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,2,"ng."+t.messageGroupName+".lbl.back-to-overview"))}}function at(a,l){if(a&1){let t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"tg-fpb-table",15),e.\u0275\u0275listener("amountOfSelectedEntriesEvent",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(r.changePossibleActions(o))})("sortOrderEvent",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.changeSortingOrder(o,r))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"tg-fpb-pagination",16),e.\u0275\u0275listener("pageChangeEvent",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.navigateToPage(o,r))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"tg-fpb-sticky-action",17),e.\u0275\u0275listener("actionEvent",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.handleStickyAction(o,r))}),e.\u0275\u0275elementEnd()()}if(a&2){let t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(),e.\u0275\u0275property("dataTable",t.dataTable)("messageGroup",t.messageGroupName),e.\u0275\u0275advance(),e.\u0275\u0275property("totalPages",t.pagedContacts.totalPages)("currentPageNumber",t.pagedContacts.pageNumber+1),e.\u0275\u0275advance(),e.\u0275\u0275property("actions",t.actions)("messageGroup",t.messageGroupName)("selectedEntriesCount",t.totalNumberOfSelectedEntries)}}function rt(a,l){if(a&1&&e.\u0275\u0275element(0,"tg-no-records-section",18),a&2){let t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("noSearchResultsUrl",t.noSearchResultsUrl)("noEntriesUrl",t.noContactsUrl)("searchBy",t.searchBy)("messageGroup",t.messageGroupName)}}function st(a,l){if(a&1){let t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"tg-upload-section",19),e.\u0275\u0275listener("uploadFileEvent",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.handleSectionAction(r,o))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(a&2){let t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275advance(),e.\u0275\u0275property("addressId",t)}}function ct(a,l){if(a&1){let t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"tg-upsert-section",20),e.\u0275\u0275listener("actionEmitter",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2).ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.handleSectionAction(r,o))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(a&2){let t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275advance(),e.\u0275\u0275property("addressId",t)}}function pt(a,l){if(a&1){let t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"tg-upsert-section",21),e.\u0275\u0275listener("actionEmitter",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2).ngIf,c=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(c.handleSectionAction(r,o))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(a&2){let t=e.\u0275\u0275nextContext(2).ngIf,i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(),e.\u0275\u0275property("contactDetails",i.tableComponent.getFirstSelectedEntry())("addressId",t)}}function mt(a,l){if(a&1){let t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"app-get-started",4),e.\u0275\u0275listener("actionEmitter",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(r.handleGetStartedAction(o))}),e.\u0275\u0275template(2,ot,5,4,"ng-container",3),e.\u0275\u0275elementStart(3,"div",5)(4,"div",6)(5,"tg-fpb-search",7),e.\u0275\u0275listener("suggestionEvent",function(o){e.\u0275\u0275restoreView(t);let r=e.\u0275\u0275nextContext().ngIf,c=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(c.updateSearchResults(o,r))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",8)(7,"span",9)(8,"a",10),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);let o=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(o.displayUploadSection())}),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"a",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);let o=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(o.displayCreateContact())}),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(14,at,4,7,"div",12)(15,rt,1,4,"ng-template",null,0,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(17,st,2,1,"ng-container",3)(18,ct,2,1,"ng-container",3)(19,pt,2,2,"ng-container",3),e.\u0275\u0275elementEnd()()}if(a&2){let t=e.\u0275\u0275reference(16),i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(),e.\u0275\u0275property("messageGroup",i.messageGroupName)("showGetStartedContent",i.showGetStartedContent)("possibleActions",i.getStartedPossibleActions),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",i.currentContactSection!==i.contactSectionEnum.TABLE_SECTION),e.\u0275\u0275advance(),e.\u0275\u0275property("hidden",i.currentContactSection!==i.contactSectionEnum.TABLE_SECTION),e.\u0275\u0275advance(2),e.\u0275\u0275property("defaultValue",i.searchBy)("messageGroup",i.messageGroupName),e.\u0275\u0275advance(3),e.\u0275\u0275attribute("data-cy",i.messageGroupName+".link.upload-contacts"),e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,16,"ng."+i.messageGroupName+".lbl.upload-contacts")),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("data-cy",i.messageGroupName+".link.create-contact"),e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(13,18,"ng.create-contact.heading.title")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.pagedContacts.content==null?null:i.pagedContacts.content.length)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",i.currentContactSection===i.contactSectionEnum.UPLOAD_SECTION),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",i.currentContactSection===i.contactSectionEnum.CREATE_SECTION),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",i.currentContactSection===i.contactSectionEnum.UPDATE_SECTION)}}function lt(a,l){if(a&1&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,mt,20,20,"div",3),e.\u0275\u0275elementContainerEnd()),a&2){let t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",t.isSubscriptionSmart&&t.pagedContacts)}}var ke=(()=>{class a extends G{constructor(t,i,o,r,c){super(),this.productHoldingService=t,this.companyContactService=i,this.messageService=o,this.productDetailsService=r,this.dialog=c,this.actions=[],this.pageNumber=m.DEFAULT_PAGE_NUMBER,this.messageGroupName=m.MESSAGE_GROUP,this.scopes=m.SCOPES,this.getStartedPossibleActions=S.getStartedActions(),this.contactSectionEnum=g,this.currentContactSection=g.TABLE_SECTION,this.totalNumberOfSelectedEntries=0,this.shouldShowBanner=!0,this.isMigrationInProgress=!1}displayUploadSection(){this.messageService.clearMessages(this.messageGroupName),this.currentContactSection=g.UPLOAD_SECTION}initAfterLoggedIn(){this.messageService.clearMessages(this.messageGroupName),this.obs(this.productDetailsService.getProductDetails().pipe(H(t=>!!t.addressId),it(t=>this.setAddressIdAndSubscription(t)),H(()=>this.isSubscriptionSmart),j(t=>this.getCompanyContacts(t.addressId)))).subscribe({next:t=>{this.populateDataTable(t),this.showGetStartedContent=X(t.content)},error:()=>this.messageService.addMessage(new h(this.messageGroupName,`${this.messageGroupName}.general`))})}changePossibleActions(t){t>0&&this.messageService.clearMessages(this.messageGroupName),this.totalNumberOfSelectedEntries=t,this.actions=S.createPossibleActions(t)}handleStickyAction(t,i){switch(this.messageService.clearMessages(this.messageGroupName),t.key){case _.DELETE:this.deleteContacts(i);break;case _.DELETE_ALL_SELECTED:this.deleteContacts(i);break;case _.EDIT:this.displayEditContact();break;default:console.error(`Action ${t} is not supported.`)}}updateSearchResults(t,i){this.messageService.clearMessages(this.messageGroupName),this.pageNumber=m.DEFAULT_PAGE_NUMBER,this.searchBy=t,this.obs(this.getCompanyContacts(i,m.DEFAULT_PAGE_NUMBER,t,!0)).subscribe(o=>o?.content?.length!==0?this.populateDataTable(o):this.showNoSearchResults(o,t))}navigateToPage(t,i){this.messageService.clearMessages(this.messageGroupName),this.pageNumber=t-1,this.obs(this.getCompanyContacts(i,this.pageNumber,this.searchBy)).subscribe(o=>this.populateDataTable(o))}changeSortingOrder(t,i){this.messageService.clearMessages(this.messageGroupName),this.sortOrder=t.sortOrder,this.sortBy=t.sortBy,this.obs(this.getCompanyContacts(i,this.pageNumber,this.searchBy)).subscribe(o=>this.populateDataTable(o))}backToOverview(){this.currentContactSection=g.TABLE_SECTION}handleGetStartedAction(t){switch(this.showGetStartedContent=!1,t){case N.CREATE:this.displayCreateContact();break;case N.UPLOAD:this.displayUploadSection();break;default:console.error(`Action ${t} is not supported.`)}}displayCreateContact(){this.messageService.clearMessages(this.messageGroupName),this.currentContactSection=g.CREATE_SECTION}handleSectionAction(t,i){if(this.messageService.clearMessages(this.messageGroupName),!i){this.backToOverview();return}this.searchBy="",this.pageNumber=0,this.searchComponent.setEmptySearchValue(),this.getCompanyContacts(t,this.pageNumber,this.searchBy).subscribe(o=>{this.messageService.addMessage(new k(this.messageGroupName,`${this.messageGroupName}.txt.${i}-contact`)),this.populateDataTable(o),this.currentContactSection=g.TABLE_SECTION,this.tableComponent.removeAllSelectedEntries()})}setAddressIdAndSubscription(t){this.addressId$=nt(t.addressId),this.isSubscriptionSmart=t.isSubscriptionSmart,this.isSubscriptionSmart||this.messageService.addMessage(new h(this.messageGroupName,`${this.messageGroupName}.wrong-subscription-type`))}showNoSearchResults(t,i){this.pagedContacts=t,this.searchBy=i}populateDataTable(t){this.pagedContacts=t,this.dataTable=S.createDataTable(t.content)}getCompanyContacts(t,i,o,r=!1){let c=i||m.DEFAULT_PAGE_NUMBER,u=o||m.EMPTY,I=this.sortOrder?this.sortOrder:ie.ASC,Le=this.sortBy?this.sortBy:m.DEFAULT_SORT_BY,Ve=S.createPageRequest(c,u,I,this.pageSize,Le);return this.companyContactService.getCompanyContacts(m.MESSAGE_GROUP,t,Ve,r)}deleteContacts(t){this.messageService.clearMessages(this.messageGroupName);let i=this.tableComponent.getSelectedEntries().map(r=>r.uuid),o=this.dialog.open(U,{data:{multipleEntries:i.length>1,messageGroup:this.messageGroupName,prefix:".delete"}});this.obs(o.afterClosed().pipe(H(r=>!!r),j(()=>this.companyContactService.deleteContacts(this.messageGroupName,t,i)),j(()=>this.getCompanyContacts(t,this.pageNumber,this.searchBy)))).subscribe(r=>{this.messageService.addMessage(new k(this.messageGroupName,`${this.messageGroupName}.txt.delete-contact`)),this.populateDataTable(r),this.tableComponent.removeAllSelectedEntries()})}displayEditContact(){this.currentContactSection=g.UPDATE_SECTION}static{this.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(K),e.\u0275\u0275directiveInject(b),e.\u0275\u0275directiveInject(E),e.\u0275\u0275directiveInject(oe),e.\u0275\u0275directiveInject(De.MatDialog))}}static{this.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["tg-search-contacts"]],viewQuery:function(i,o){if(i&1&&(e.\u0275\u0275viewQuery(w,5),e.\u0275\u0275viewQuery(R,5)),i&2){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.tableComponent=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.searchComponent=r.first)}},inputs:{noSearchResultsUrl:"noSearchResultsUrl",noContactsUrl:"noContactsUrl",pageSize:"pageSize",amountOfSuggestions:"amountOfSuggestions"},standalone:!1,features:[e.\u0275\u0275InheritDefinitionFeature],decls:6,vars:6,consts:[["noRecordsFoundSection",""],[3,"componentCanRender","messageGroupName","scopes"],[3,"messageGroupName"],[4,"ngIf"],[3,"actionEmitter","messageGroup","showGetStartedContent","possibleActions"],[3,"hidden"],[1,"row","m--n","p--n","display--flex","justify-content--between","align-items--center"],[1,"col-12","col-md-5","mb
1--l--md","p--n",3,"suggestionEvent","defaultValue","messageGroup"],[1,"col-12","col-md-5","text-align--right--md","mt--m","mt--n--md","p--n","display--flex","justify-content--end","align-items--center"],[1,"hidden-mobile"],["href","JavaScript:void(0);",1,"link","text--m","mr-20",3,"click"],["href","JavaScript:void(0);",1,"link","text--m",3,"click"],[4,"ngIf","ngIfElse"],[1,"text-align--left--md","py--s","px--n--md"],["href","JavaScript:void(0);",1,"link","link--chevron-left","text--m","mr-20",3,"click"],[3,"amountOfSelectedEntriesEvent","sortOrderEvent","dataTable","messageGroup"],[3,"pageChangeEvent","totalPages","currentPageNumber"],[3,"actionEvent","actions","messageGroup","selectedEntriesCount"],[3,"noSearchResultsUrl","noEntriesUrl","searchBy","messageGroup"],[3,"uploadFileEvent","addressId"],["messageGroup","create-contact",3,"actionEmitter","addressId"],["messageGroup","edit-contact",3,"actionEmitter","contactDetails","addressId"]],template:function(i,o){i&1&&(e.\u0275\u0275elementStart(0,"tg-login",1),e.\u0275\u0275listener("componentCanRender",function(){return o.initAfterLoggedIn()}),e.\u0275\u0275elementStart(1,"app-migration-banner"),e.\u0275\u0275text(2,' [showMigrationBanner]="shouldShowBanner" [migrationInProgress]="isMigrationInProgress" '),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"app-message-flow",2),e.\u0275\u0275template(4,lt,2,1,"ng-container",3),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275elementEnd()),i&2&&(e.\u0275\u0275property("messageGroupName",o.messageGroupName)("scopes",o.scopes),e.\u0275\u0275advance(3),e.\u0275\u0275property("messageGroupName",o.messageGroupName),e.\u0275\u0275advance(),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(5,4,o.addressId$)))},dependencies:[F.NgIf,Fe.LoginComponent,R,se,ce,w,pe,me,ae,O,A,Oe,Re,F.AsyncPipe,Be.TranslatePipe],encapsulation:2})}}return a})();import{provideEnvironmentNgxMask as ht}from"ngx-mask";import*as B from"@angular/core";var Ln=(()=>{class a{static{this.components={"tg-search-contacts":ke}}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275mod=B.\u0275\u0275defineNgModule({type:a})}static{this.\u0275inj=B.\u0275\u0275defineInjector({providers:[ht()],imports:[dt,ut,gt,te,z.forRoot(J.imagePath),ue,ge,Ce,he,_e,W,Y,fe,Se,Ee,v,re,M,O,P,x]})}}return a})();export{Ln as FpbContactNcModule};
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.