PageSourceSearch

https://meet.awvent.com/323.48b71c4cc2d1e6bc.js

js awvent.com collected 2026-10-02 00:28:13 UTC 32,651 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfuse=self.webpackChunkfuse||[]).push([[323],{3831:(_,m,c)=>{function s(){const a=/^[0-9]*$/i;return p=>a.test(p.value)?null:{numberValidator:{valid:!1}}}c.d(m,{$:()=>s})},6323:(_,m,c)=>{c.d(m,{o:()=>zt});var s=c(5861),t=c(4650),a=c(4006),p=c(8288),d=c(3098),I=c(7579),Z=c(2722),T=c(9808),f=c(5148),h=c(4970),k=c(3831),g=c(2964),J=c(7268);class Q{}var q=c(7991);class B{}var U=c(3804),w=c(1785),A=c(2222),L=c(1352),F=c(2510),Y=c(7009),D=c(5347),$=c(9395),E=c(7938),M=c(9865),P=c(2229),C=c(6895),z=c(7392),v=c(9549),S=c(266),V=c(4859),G=c(4144),y=c(4385),O=c(3238),R=c(455),K=c(5412);const H=["avatarFileInput"];function j(o,i){if(1&o&&t._UZ(0,"img",29),2&o){const e=t.oxw(2);t.Q6J("src",null==e.contact$?null:e.contact$.avatar,t.LSH)}}function W(o,i){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.AsE(" ",null==e.contact$||null==e.contact$.firstName?null:e.contact$.firstName.charAt(0)," ",null==e.contact$||null==e.contact$.lastName?null:e.contact$.lastName.charAt(0)," ")}}function X(o,i){if(1&o&&(t.TgZ(0,"div",30),t.YNc(1,W,2,2,"span",31),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null==e.contact$?null:e.contact$.firstName)}}function tt(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",18)(1,"div",19),t._UZ(2,"div",20),t.TgZ(3,"div",21)(4,"div")(5,"input",22,23),t.NdJ("change",function(){t.CHM(e);const n=t.MAs(6),l=t.oxw();return t.KtG(l.uploadAvatar(n.files))}),t.qZA(),t.TgZ(7,"label",24),t._UZ(8,"mat-icon",25),t.qZA()(),t.TgZ(9,"div")(10,"button",26),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeAvatar())}),t._UZ(11,"mat-icon",25),t.qZA()()(),t.YNc(12,j,1,1,"img",27),t.YNc(13,X,2,1,"div",28),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("multiple",!1)("accept","image/jpeg, image/png"),t.xp6(3),t.Q6J("svgIcon","heroicons_outline:camera"),t.xp6(3),t.Q6J("svgIcon","heroicons_outline:trash"),t.xp6(1),t.Q6J("ngIf",null==e.contact$?null:e.contact$.avatarUri),t.xp6(1),t.Q6J("ngIf",!(null!=e.contact$&&e.contact$.avatarUri))}}function et(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field is required. "),t.qZA())}function ot(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at most 50 characters. "),t.qZA())}function rt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid first name format. "),t.qZA())}function nt(o,i){if(1&o&&(t.TgZ(0,"mat-error",32),t.YNc(1,et,2,0,"mat-error",31),t.YNc(2,ot,2,0,"mat-error",31),t.YNc(3,rt,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("firstName").errors?null:e.contactForm.get("firstName").errors.required),t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("firstName").errors?null:e.contactForm.get("firstName").errors.maxlength),t.xp6(1),t.Q6J("ngIf",!(null!=e.contactForm.get("firstName").errors&&e.contactForm.get("firstName").errors.required||null!=e.contactForm.get("firstName").errors&&e.contactForm.get("firstName").errors.minlength||null!=e.contactForm.get("firstName").errors&&e.contactForm.get("firstName").errors.maxlength))}}function at(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field is required. "),t.qZA())}function it(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at most 50 characters. "),t.qZA())}function ct(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid last name format. "),t.qZA())}function lt(o,i){if(1&o&&(t.TgZ(0,"mat-error",33),t.YNc(1,at,2,0,"mat-error",31),t.YNc(2,it,2,0,"mat-error",31),t.YNc(3,ct,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("lastName").errors?null:e.contactForm.get("lastName").errors.required),t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("lastName").errors?null:e.contactForm.get("lastName").errors.maxlength),t.xp6(1),t.Q6J("ngIf",!(null!=e.contactForm.get("lastName").errors&&e.contactForm.get("lastName").errors.required||null!=e.contactForm.get("lastName").errors&&e.contactForm.get("lastName").errors.minlength||null!=e.contactForm.get("lastName").errors&&e.contactForm.get("lastName").errors.maxlength))}}function st(o,i){1&o&&(t.TgZ(0,"mat-label"),t._uU(1,"Email"),t.qZA())}function mt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field is required. "),t.qZA())}function ut(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at least 1 character. "),t.qZA())}function gt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at most 250 characters. "),t.qZA())}function dt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid email format. "),t.qZA())}function pt(o,i){if(1&o&&(t.TgZ(0,"mat-error",33),t.YNc(1,mt,2,0,"mat-error",31),t.YNc(2,ut,2,0,"mat-error",31),t.YNc(3,gt,2,0,"mat-error",31),t.YNc(4,dt,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",null==e.get("value").errors?null:e.get("value").errors.required),t.xp6(1),t.Q6J("ngIf",null==e.get("value").errors?null:e.get("value").errors.minlength),t.xp6(1),t.Q6J("ngIf",null==e.get("value").errors?null:e.get("value").errors.maxlength),t.xp6(1),t.Q6J("ngIf",!(null!=e.get("value").errors&&e.get("value").errors.required)&&!(null!=e.get("value").errors&&e.get("value").errors.minlength)&&!(null!=e.get("value").errors&&e.get("value").errors.maxlength)&&(null==e.get("value").errors?null:e.get("value").errors.emailValidator))}}const N=function(o){return{"mt-6":o}};function _t(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",37)(2,"button",38),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,l=t.oxw();return t.KtG(l.removeEmailField(n))}),t._UZ(3,"mat-icon",39),t.qZA()(),t.BQk()}if(2&o){const e=t.oxw().first;t.xp6(1),t.Q6J("ngClass",t.VKq(2,N,e)),t.xp6(2),t.Q6J("svgIcon","heroicons_solid:trash")}}const b=function(o){return{"mb-4":o}};function ft(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"div",34)(2,"div",35)(3,"mat-form-field",6),t.YNc(4,st,2,0,"mat-label",31),t._UZ(5,"mat-icon",7)(6,"input",36),t.qZA(),t.YNc(7,pt,5,4,"mat-error",11),t.qZA(),t.YNc(8,_t,4,4,"ng-container",31),t.qZA(),t.BQk()),2&o){const e=i.$implicit,r=i.first,n=i.last,l=t.oxw();
1t.xp6(2),t.Q6J("ngClass",t.VKq(8,b,!l.displayInDialog)),t.xp6(2),t.Q6J("ngIf",r),t.xp6(1),t.Q6J("svgIcon","mat_outline:email"),t.xp6(1),t.Q6J("formControl",e.get("value"))("placeholder","Email address")("spellcheck",!1),t.xp6(1),t.Q6J("ngIf",e.get("value").invalid&&(e.get("value").dirty||e.get("value").touched)),t.xp6(1),t.Q6J("ngIf",!(r&&n)&&l.allowMultipleEntries)}}function ht(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addEmailField())}),t._UZ(1,"mat-icon",39),t.TgZ(2,"span",41),t._uU(3,"Add an email address"),t.qZA()()}2&o&&(t.xp6(1),t.Q6J("svgIcon","heroicons_solid:plus-circle"))}function vt(o,i){1&o&&(t.TgZ(0,"mat-label"),t._uU(1,"Phone"),t.qZA())}function xt(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"mat-option",47)(2,"span",44),t._UZ(3,"span",48),t.TgZ(4,"span",49),t._uU(5),t.qZA(),t.TgZ(6,"span",50),t._uU(7),t.qZA()()(),t.BQk()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("value",e.iso),t.xp6(2),t.Udp("background","url('/assets/images/apps/contacts/flags.png') no-repeat 0 0")("background-size","24px 3876px")("background-position",e.flagImagePos),t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.code)}}function Ct(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid phone number format. "),t.qZA())}function bt(o,i){if(1&o&&(t.TgZ(0,"mat-error",33),t.YNc(1,Ct,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=e.get("value").errors&&e.get("value").errors.required)&&!(null!=e.get("value").errors&&e.get("value").errors.minlength)&&!(null!=e.get("value").errors&&e.get("value").errors.maxlength)&&(null==e.get("value").errors?null:e.get("value").errors.phoneValidator))}}function At(o,i){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",37)(2,"button",38),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,l=t.oxw();return t.KtG(l.removePhoneNumberField(n))}),t._UZ(3,"mat-icon",39),t.qZA()(),t.BQk()}if(2&o){const e=t.oxw().first;t.xp6(1),t.Q6J("ngClass",t.VKq(2,N,e)),t.xp6(2),t.Q6J("svgIcon","heroicons_solid:trash")}}function Ft(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"div",34)(2,"div",35)(3,"mat-form-field",6),t.YNc(4,vt,2,0,"mat-label",31),t._UZ(5,"input",42),t.TgZ(6,"mat-select",43)(7,"mat-select-trigger")(8,"span",44),t._UZ(9,"span",45),t.TgZ(10,"span",46),t._uU(11),t.qZA()()(),t.YNc(12,xt,8,9,"ng-container",13),t.qZA()(),t.YNc(13,bt,2,1,"mat-error",11),t.qZA(),t.YNc(14,At,4,4,"ng-container",31),t.qZA(),t.BQk()),2&o){const e=i.$implicit,r=i.first,n=i.last,l=t.oxw();let u,x;t.xp6(2),t.Q6J("ngClass",t.VKq(16,b,!l.displayInDialog)),t.xp6(2),t.Q6J("ngIf",r),t.xp6(1),t.Q6J("formControl",e.get("value"))("placeholder","1234567890"),t.xp6(1),t.Q6J("formControl",e.get("country")),t.xp6(3),t.Udp("background","url('/assets/images/apps/contacts/flags.png') no-repeat 0 0")("background-size","24px 3876px")("background-position",null==(u=l.getCountryByIso(e.get("country").value))?null:u.flagImagePos),t.xp6(2),t.Oqu(null==(x=l.getCountryByIso(e.get("country").value))?null:x.code),t.xp6(1),t.Q6J("ngForOf",l.countries)("ngForTrackBy",l.trackByFn),t.xp6(1),t.Q6J("ngIf",e.get("value").invalid&&(e.get("value").dirty||e.get("value").touched)),t.xp6(1),t.Q6J("ngIf",!(r&&n)&&l.allowMultipleEntries)}}function yt(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addPhoneNumberField())}),t._UZ(1,"mat-icon",39),t.TgZ(2,"span",41),t._uU(3,"Add a phone number"),t.qZA()()}2&o&&(t.xp6(1),t.Q6J("svgIcon","heroicons_solid:plus-circle"))}function Nt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field is required. "),t.qZA())}function It(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at most 100 characters. "),t.qZA())}function Zt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid organization format. "),t.qZA())}function Tt(o,i){if(1&o&&(t.TgZ(0,"mat-error",33),t.YNc(1,Nt,2,0,"mat-error",31),t.YNc(2,It,2,0,"mat-error",31),t.YNc(3,Zt,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("organization").errors?null:e.contactForm.get("organization").errors.required),t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("organization").errors?null:e.contactForm.get("organization").errors.maxlength),t.xp6(1),t.Q6J("ngIf",!(null!=e.contactForm.get("organization").errors&&e.contactForm.get("organization").errors.required||null!=e.contactForm.get("organization").errors&&e.contactForm.get("organization").errors.minlength||null!=e.contactForm.get("organization").errors&&e.contactForm.get("organization").errors.maxlength))}}function kt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field is required. "),t.qZA())}function Jt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at most 50 characters. "),t.qZA())}function Qt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid designation format. "),t.qZA())}function qt(o,i){if(1&o&&(t.TgZ(0,"mat-error",33),t.YNc(1,kt,2,0,"mat-error",31),t.YNc(2,Jt,2,0,"mat-error",31),t.YNc(3,Qt,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("designation").errors?null:e.contactForm.get("designation").errors.required),t.xp6(1),t.Q6J("ngIf",null==e.contactForm.get("designation").errors?null:e.contactForm.get("designation").errors.maxlength),t.xp6(1),t.Q6J("ngIf",!(null!=e.contactForm.get("designation").errors&&e.contactForm.get("designation").errors.required||null!=e.contactForm.get("designation").errors&&e.contactForm.get("designation").errors.minlength||null!=e.contactForm.get("designation").errors&&e.contactForm.get("designation").errors.maxlength))}}function Bt(o,i){1&o&&(t.TgZ(0,"mat-label"),t._uU(1,"Country"),t.qZA())}function Ut(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"mat-option",47)(2,"span",44),t._UZ(3,"span",48),t.TgZ(4,"span",49),t._uU(5),t.qZA()()(),t.BQk()),2&o){const e=i.$implicit;t.xp6(1),t.Q6J("value",e.iso),t.xp6(2),t.Udp("background","url('/assets/images/apps/contacts/flags.png') no-repeat 0 0")("background-size","24px 3876px")("background-position",e.flagImagePos),t.xp6(2),t.Oqu(e.name)}}function wt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field is required. "),t.qZA())}function Lt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," This field must have at most 250 characters. "),t.qZA())}function Yt(o,i){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Invalid country format. "),t.qZA())}function Dt(o,i){if(1&o&&(t.TgZ(0,"mat-error",61),t.YNc(1,wt,2,0,"mat-error",31),t.YNc(2,Lt,2,0,"mat-error",31),t.YNc(3,Yt,2,0,"mat-error",31),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",null==e.get("country").errors?null:e.get("country").errors.required),t.xp6(1),t.Q6J("ngIf",null==e.get("country").errors?null:e.get("country").errors.maxlength),t.xp6(1),t.Q6J("ngIf",!(null!=e.get("country").errors&&e.get("country").errors.required)&&!(null!=e.get("country").errors&&e.get("country").errors.minlength)&&!(null!=e.get("country").errors&&e.get("country").errors.maxlength)&&(null==e.get("country").errors?null:e.get("country").errors.nameValidator))}}const $t=function(o){return{"mb-2":o}};function Et(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"div",51)(2,"div",52)(3,"div",5)(4,"mat-form-field",53)(5,"mat-label"),t._uU(6,"Designation/Job Title"),t.qZA(),t._UZ(7,"mat-icon",7)(8,"input",15),t.qZA(),t.YNc(9,qt,4,3,"mat-error",11),t.qZA(),t.TgZ(10,"div",5)(11,"mat-form-field",54),t.YNc(12,Bt,2,0,"mat-label",31),t._UZ(13,"mat-icon",55),t.TgZ(14,"mat-select",56)(15,"mat-select-trigger")(16,"span",44),t._UZ(17,"span",45),t.TgZ(18,"span",46),t._uU(19),t.qZA()()(),t.YNc(20,Ut,6,8,"ng-container",13),t.qZA()(),t.YNc(21,Dt,4,3,"mat-error",57),t.qZA()(),t.TgZ(22,"div",58)(23,"div",59),t._uU(24," Is this contact a Lead? "),t.qZA(),t._UZ(25,"mat-slide-toggle",60),t.qZA()(),t.BQk()),2&o){const e=i.$implicit,r=i.first,n=t.oxw();let l,u;t.xp6(2),t.Q6J("ngClass",t.VKq(21,b,!n.displayInDialog)),t.xp6(5),t.Q6J("svgIcon","heroicons_solid:office-building"),t.xp6(1),t.Q6J("formControlName","designation")("placeholder","Designation/Job Title"),t.xp6(1),t.Q6J("ngIf",n.contactForm.get("designation").invalid&&(n.contactForm.get("designation").dirty||n.contactForm.get("designation").touched)),t.xp6(3),t.Q6J("ngIf",r),t.xp6(1),t.Q6J("svgIcon","heroicons_solid:location-marker"),t.xp6(1),t.Q6J("formControl",e.get("country")),t.xp6(3),t.Udp("background","url('/assets/images/apps/contacts/flags.png') no-repeat 0 0")("background-size","24px 3876px")("background-position",null==(l=n.getCountryByIso(e.get("
1country").value))?null:l.flagImagePos),t.xp6(2),t.Oqu(null==(u=n.getCountryByIso(e.get("country").value))?null:u.name),t.xp6(1),t.Q6J("ngForOf",n.countries)("ngForTrackBy",n.trackByFn),t.xp6(1),t.Q6J("ngIf",e.get("country").invalid&&(e.get("country").dirty||e.get("country").touched)),t.xp6(1),t.Q6J("ngClass",t.VKq(23,$t,!n.displayInDialog)),t.xp6(3),t.Q6J("formControlName","isLead")("color","accent")}}function Mt(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",62)(1,"button",63),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.toggleEditMode(!1))}),t._uU(2," Cancel "),t.qZA(),t.TgZ(3,"button",64),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.updateContact())}),t._uU(4," Save "),t.qZA()()}if(2&o){const e=t.oxw();t.xp6(1),t.Q6J("matTooltip","Cancel"),t.xp6(2),t.Q6J("color","primary")("disabled",e.contactForm.invalid)("matTooltip","Save")}}function Pt(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"mat-dialog-actions",65)(1,"button",63),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.toggleEditMode(!1))}),t._uU(2," Cancel "),t.qZA(),t.TgZ(3,"button",64),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.updateContact())}),t._uU(4," Save "),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("matTooltip","Cancel"),t.xp6(2),t.Q6J("color","primary")("disabled",e.contactForm.invalid)("matTooltip","Save")}}let zt=(()=>{class o{constructor(e,r,n,l,u,x,St,Vt,Gt,Ot){this._router=e,this._changeDetectorRef=r,this._formBuilder=n,this._snackBar=l,this._contactService=u,this._contactsService=x,this._authService=St,this.route=Vt,this._mobileNumberDisplayPipe=Gt,this._businessAccountService=Ot,this.editModeToggle=new t.vpe,this._unsubscribeAll=new I.x,this._contactsService.getCountries().subscribe()}ngOnInit(){this._contactsService.countries$.pipe((0,Z.R)(this._unsubscribeAll)).subscribe(e=>{this.countries=e}),this.initializeContactForm(),"newContact"===this.routeParam?(this.contact$={},this.contactForm.reset(),this.contactForm.get("isLead").setValue(!1),this.contactForm.get("gender").setValue(A.Y.Male),this.prepareContactFormsForAdd()):(this.contactForm.patchValue(this.contact$),this.prepareContactFormsForEdit())}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete(),this.contact$={}}toggleEditMode(e){this.editModeToggle.emit(e)}trackByFn(e,r){return r.id||e}getCountryByIso(e){return this.countries?.find(r=>r.iso===e)}getCountryByName(e){return this.countries?.find(r=>r.name===e)}initializeContactForm(){try{this.contactForm=this._formBuilder.group({id:[""],type:[""],salutation:[""],firstName:["",[a.kI.required,a.kI.minLength(1),a.kI.maxLength(50),(0,h.q)()]],lastName:["",[a.kI.required,a.kI.minLength(1),a.kI.maxLength(50),(0,h.q)()]],organization:["",[a.kI.required,a.kI.minLength(1),a.kI.maxLength(100)]],designation:["",[a.kI.minLength(1),a.kI.maxLength(50)]],department:["",[a.kI.minLength(1),a.kI.maxLength(50)]],gender:[A.Y.Male,a.kI.required],isLead:[!1],avatarUri:[null],emails:this._formBuilder.array([]),phoneNumbers:this._formBuilder.array([]),mobileNumbers:this._formBuilder.array([]),birthDate:[null],addresses:this._formBuilder.array([]),note:[null],websites:this._formBuilder.array([])})}catch(e){console.error("Exception in initializeContactForm()"),console.error(e)}}prepareContactFormsForAdd(){try{this.contactForm.get("emails").clear(),this.contactForm.get("phoneNumbers").clear(),this.contactForm.get("mobileNumbers").clear(),this.contactForm.get("addresses").clear(),this.contactForm.get("websites").clear(),this.contactForm.get("emails").push(this._formBuilder.group({value:["",[a.kI.required,a.kI.minLength(1),a.kI.maxLength(250),(0,f.L)()]],label:["Email"]})),this.contactForm.get("websites").push(this._formBuilder.group({value:[""],label:["Web Site"]})),this.contactForm.get("addresses").push(this._formBuilder.group({street:["",[a.kI.minLength(1),a.kI.maxLength(250)]],city:["",[a.kI.minLength(1),a.kI.maxLength(250)]],pincode:["",[a.kI.minLength(1),a.kI.maxLength(6)]],landmark:["",[a.kI.minLength(1),a.kI.maxLength(250)]],country:["",[a.kI.required,(0,h.q)()]]})),this.contactForm.get("phoneNumbers").push(this._formBuilder.group({value:["",[a.kI.minLength(1),(0,g.t)()]],label:["Phone"],country:["us"]})),this.contactForm.get("mobileNumbers").push(this._formBuilder.group({value:["",[a.kI.minLength(1),(0,g.t)()]],label:["Mobile"],country:["us"]})),console.log(this.contactForm)}catch{}}prepareContactFormsForEdit(){this.contactForm.get("emails").clear(),this.contactForm.get("phoneNumbers").clear(),this.contactForm.get("mobileNumbers").clear(),this.contactForm.get("addresses").clear(),this.contactForm.get("websites").clear(),this.contact$.emails&&this.contact$.emails.length>0?this.contact$.emails.forEach(e=>{this.contactForm.get("emails").push(this._formBuilder.group({value:[e.value,[a.kI.required,a.kI.minLength(1),a.kI.maxLength(250),(0,f.L)()]],label:[e.label]}))}):this.contactForm.get("emails").push(this._formBuilder.group({value:["",[a.kI.required,a.kI.minLength(1),a.kI.maxLength(250),(0,f.L)()]],label:["Email"]})),this.contact$.websites&&this.contact$.websites.length>0?this.contact$.websites.forEach(e=>{this.contactForm.get("websites").push(this._formBuilder.group({value:[e.value],label:[e.label]}))}):this.contactForm.get("websites").push(this._formBuilder.group({value:[""],label:["Web Site"]})),this.contact$.addresses&&this.contact$.addresses.length>
10?this.contact$.addresses.forEach(e=>{this.contactForm.get("addresses").push(this._formBuilder.group({street:[e.street],area:[e.area],city:[e.city],landmark:[e.landmark],country:[this.getCountryByName(e.country).iso,[a.kI.required]]}))}):this.contactForm.get("addresses").push(this._formBuilder.group({street:["",[a.kI.minLength(1),a.kI.maxLength(250)]],city:["",[a.kI.minLength(1),a.kI.maxLength(250)]],pincode:["",[a.kI.minLength(1),a.kI.maxLength(6),(0,k.$)()]],landmark:["",[a.kI.minLength(1),a.kI.maxLength(250)]],country:["",[a.kI.required,(0,h.q)()]]})),this.contact$.phoneNumbers&&this.contact$.phoneNumbers.length>0?this.contact$.phoneNumbers.forEach(e=>{this.contactForm.get("phoneNumbers").push(this._formBuilder.group({value:[this._mobileNumberDisplayPipe.transform(e.value,this.getCountryByIso(e.country).code),[a.kI.minLength(1),(0,g.t)()]],label:[e.label],country:[e.country]}))}):this.contactForm.get("phoneNumbers").push(this._formBuilder.group({value:["",[a.kI.minLength(1),(0,g.t)()]],label:["Phone"],country:["us"]})),this.contact$.mobileNumbers&&this.contact$.mobileNumbers.length>0?this.contact$.mobileNumbers.forEach(e=>{this.contactForm.get("mobileNumbers").push(this._formBuilder.group({value:[this._mobileNumberDisplayPipe.transform(e.value,this.getCountryByIso(e.country).code),[a.kI.minLength(1),a.kI.maxLength(10),(0,g.t)()]],label:[e.label],country:[e.country]}))}):this.contactForm.get("mobileNumbers").push(this._formBuilder.group({value:["",[a.kI.minLength(1),(0,g.t)()]],label:["Mobile"],country:["us"]}))}uploadAvatar(e){e.length&&["image/jpeg","image/png"].includes(e[0].type)}removeAvatar(){this.contactForm.get("avatar").setValue(null),this._avatarFileInput.nativeElement.value=null}addEmailField(){const e=this._formBuilder.group({value:["",[a.kI.required,a.kI.minLength(1),a.kI.maxLength(250),(0,f.L)()]],label:["Email"]});this.contactForm.get("emails").push(e),this._changeDetectorRef.markForCheck()}removeEmailField(e){this.contactForm.get("emails").removeAt(e),this._changeDetectorRef.markForCheck()}addPhoneNumberField(){const e=this._formBuilder.group({value:["",[a.kI.minLength(1),(0,g.t)()]],label:["Phone"],country:["us"]});this.contactForm.get("phoneNumbers").push(e),this._changeDetectorRef.markForCheck()}updateContact(){var e=this;if(this.contactForm.invalid)return;const r=this.contactForm.getRawValue();if(r.emails=r.emails.filter(n=>n.value),r.phoneNumbers=r.phoneNumbers.filter(n=>n.value),r.mobileNumbers=r.mobileNumbers.filter(n=>n.value),r.addresses=r.addresses.filter(n=>n.country),r.addresses.forEach(n=>{n.country=this.getCountryByIso(n.country).name}),r.websites=r.websites.filter(n=>n.value),r.salutation=L.N.NA,r.bloodGroup=U.G.NA,r.type=void 0!==this.contactForm.get("type").value&&null!==this.contactForm.get("type").value&&""!==this.contactForm.get("type").value?this.contactForm.get("type").value:w.u.NA,r.isLead=this.contactForm.get("isLead").value,"newContact"===this.routeParam){const n=new q.M;n.contactDetails=r,n.contactDetails.id=d.i.create().toString(),this._contactService.contactPost(this._authService.selectedTenant.id,n,d.i.create().toString()).subscribe(function(){var l=(0,s.Z)(function*(u){r.isLead&&(yield e.createBusinessAccount(r)),e.toggleEditMode(!1),e.navigateAfterSave&&e._router.navigate(["../"],{relativeTo:e.route})});return function(u){return l.apply(this,arguments)}}())}else{const n=new B;n.contactDetails=r,this._contactService.contactPut(this._authService.selectedTenant.id,n).subscribe(l=>{this.toggleEditMode(!1),this.navigateAfterSave&&this._router.navigate(["../"],{relativeTo:this.route})})}}createBusinessAccount(e){var r=this;return(0,s.Z)(function*(){try{const n=new J.c;n.businessAccountDetails=new Q,n.businessAccountDetails.tenantId=r._authService.selectedTenant.id,n.businessAccountDetails.code=e.organization,n.businessAccountDetails.name=e.organization,n.businessAccountDetails.contacts=[e],(yield(0,T.n)(r._businessAccountService.businessAccountPost(r._authService.selectedTenant.id,n,d.i.create().toString()))).isSuccess?r._snackBar.open("Account created successfully","Close",{duration:3e3}):r._snackBar.open("Account creation failed. Please contact system admin!","Close",{duration:3e3})}catch(n){console.error("Exception in createBusinessAccount()"),console.error(n)}})()}addWebsiteField(){const e=this._formBuilder.group({value:[""],label:["Web Site"]});this.contactForm.get("websites").push(e),this._changeDetectorRef.markForCheck()}removeWebsitesField(e){this.contactForm.get("websites").removeAt(e),this._changeDetectorRef.markForCheck()}addMobileNumberField(){const e=this._formBuilder.group({value:["",[a.kI.minLength(1),(0,g.t)()]],label:["Mobile"],country:["us"]});this.contactForm.get("mobileNumbers").push(e),this._changeDetectorRef.markForCheck()}removePhoneNumberField(e){this.contactForm.get("phoneNumbers").removeAt(e),this._changeDetectorRef.markForCheck()}addAddressesField(){const e=this._formBuilder.group({street:[""],city:[""],pincode:[""],landmark:[""],country:["",[a.kI.required]]});this.contactForm.get("addresses").push(e),this._changeDetectorRef.markForCheck()}removeMobileNumberField(e){this.contactForm.get("mobileNumbers").removeAt(e),this._changeDetectorRef.markForCheck()}removeAddressesField(e){this.contactForm.get("addresses").removeAt(e),this._changeDetectorRef.markForCheck()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(F.F0),t.Y36(t.sBO),t.Y36(a.QS),t.Y36(Y.ux),t.Y36(D.y),t.Y36($.P),t.Y36(E.e),t.Y36(F.gz),t.Y36(M.Z),t.Y36(P.z))}
1,o.\u0275cmp=t.Xpm({type:o,selectors:[["contact-add"]],viewQuery:function(e,r){if(1&e&&t.Gf(H,5),2&e){let n;t.iGM(n=t.CRH())&&(r._avatarFileInput=n.first)}},inputs:{contactForm:"contactForm",routeParam:"routeParam",contact$:"contact$",displayAvatar:"displayAvatar",allowMultipleEntries:"allowMultipleEntries",navigateAfterSave:"navigateAfterSave",displayInDialog:"displayInDialog"},outputs:{editModeToggle:"editModeToggle"},decls:39,vars:33,consts:[[1,"relative","flex","flex-col","flex-auto","items-center",3,"ngClass"],[1,"w-full","max-w-3xl"],[3,"formGroup"],["class","flex flex-auto items-end -mt-16",4,"ngIf"],[1,"flex",3,"ngClass"],[1,"w-full"],[1,"fuse-mat-no-subscript","w-full"],["matPrefix","",1,"hidden","sm:flex","icon-size-5",3,"svgIcon"],["matInput","",3,"formControlName","placeholder","spellcheck"],["class","ml-4 absolute",4,"ngIf"],[3,"ngClass"],["class","absolute",4,"ngIf"],[1,"space-y-4"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","group inline-flex items-center mt-2 -ml-4 py-2 px-4 rounded cursor-pointer",3,"click",4,"ngIf"],["matInput","",3,"formControlName","placeholder"],["class","flex items-center mt-10 -mx-6 sm:-mx-12 py-4 pr-4 pl-1 sm:pr-12 sm:pl-7 border-t bg-gray-50 dark:bg-transparent",4,"ngIf"],["align","end","class","-mb-3",4,"ngIf"],[1,"flex","flex-auto","items-end","-mt-16"],[1,"relative","flex","items-center","justify-center","w-28","h-28","rounded-full","overflow-hidden","ring-4","ring-bg-card"],[1,"absolute","inset-0","bg-black","bg-opacity-50","z-10"],[1,"absolute","inset-0","flex","items-center","justify-center","z-20"],["id","avatar-file-input","type","file",1,"absolute","h-0","w-0","opacity-0","invisible","pointer-events-none",3,"multiple","accept","change"],["avatarFileInput",""],["for","avatar-file-input","matRipple","",1,"flex","items-center","justify-center","w-10","h-10","rounded-full","cursor-pointer","hover:bg-hover"],[1,"text-white",3,"svgIcon"],["mat-icon-button","",3,"click"],["class","object-cover w-full h-full",3,"src",4,"ngIf"],["class","flex items-center justify-center w-full h-full rounded overflow-hidden uppercase text-6xl font-bold leading-none bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-200",4,"ngIf"],[1,"object-cover","w-full","h-full",3,"src"],[1,"flex","items-center","justify-center","w-full","h-full","rounded","overflow-hidden","uppercase","text-6xl","font-bold","leading-none","bg-gray-200","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[4,"ngIf"],[1,"ml-4","absolute"],[1,"absolute"],[1,"flex"],[1,"flex-col","w-full",3,"ngClass"],["matInput","",3,"formControl","placeholder","spellcheck"],[1,"flex","items-center","w-10","pl-2",3,"ngClass"],["mat-icon-button","","matTooltip","Remove",1,"w-8","h-8","min-h-8",3,"click"],[1,"icon-size-5",3,"svgIcon"],[1,"group","inline-flex","items-center","mt-2","-ml-4","py-2","px-4","rounded","cursor-pointer",3,"click"],[1,"ml-2","font-medium","text-secondary","group-hover:underline"],["matInput","",3,"formControl","placeholder"],["matPrefix","",1,"mr-1.5",3,"formControl"],[1,"flex","items-center"],[1,"hidden","sm:flex","w-6","h-4","mr-1","overflow-hidden"],[1,"sm:mx-0.5","font-medium","text-default"],[3,"value"],[1,"w-6","h-4","overflow-hidden"],[1,"ml-2"],[1,"ml-2","font-medium"],[1,"flex-wrap"],[1,"flex","mt-3",3,"ngClass"],[1,"fuse-mat-no-subscript","flex-auto","w-full","max-w-24","sm:max-w-64"],[1,"fuse-mat-no-subscript","flex-auto","w-full","max-w-24","sm:max-w-64","sm:ml-2"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],[3,"formControl"],["class","absolute sm:ml-2",4,"ngIf"],[1,"flex","mt-4","items-center",3,"ngClass"],[1,"mr-2","text-base","font-medium"],[3,"formControlName","color"],[1,"absolute","sm:ml-2"],[1,"flex","items-center","mt-10","-mx-6","sm:-mx-12","py-4","pr-4","pl-1","sm:pr-12","sm:pl-7","border-t","bg-gray-50","dark:bg-transparent"],["mat-button","",1,"ml-auto",3,"matTooltip","click"],["mat-flat-button","",1,"ml-2",3,"color","disabled","matTooltip","click"],["align","end",1,"-mb-3"]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"form",2),t.YNc(3,tt,14,6,"div",3),t.TgZ(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),t._uU(8,"First Name"),t.qZA(),t._UZ(9,"mat-icon",7)(10,"input",8),t.qZA(),t.YNc(11,nt,4,3,"mat-error",9),t.qZA()(),t.TgZ(12,"div",10)(13,"mat-form-field",6)(14,"mat-label"),t._uU(15,"Last Name"),t.qZA(),t._UZ(16,"mat-icon",7)(17,"input",8),t.qZA(),t.YNc(18,lt,4,3,"mat-error",11),t.qZA(),t.TgZ(19,"div",10)(20,"div",12),t.YNc(21,ft,9,10,"ng-container",13),t.qZA(),t.YNc(22,ht,4,1,"div",14),t.qZA(),t.TgZ(23,"div",10)(24,"div",12),t.YNc(25,Ft,15,18,"ng-container",13),t.qZA(),t.YNc(26,yt,4,1,"div",14),t.qZA(),t.TgZ(27,"div",10)(28,"mat-form-field",6)(29,"mat-label"),t._uU(30,"Organization"),t.qZA(),t._UZ(31,"mat-icon",7)(32,"input",15),t.qZA(),t.YNc(33,Tt,4,3,"mat-error",11),t.qZA(),t.TgZ(34,"div",10)(35,"div",12),t.YNc(36,Et,26,25,"ng-container",13),t.qZA()(),t.YNc(37,Mt,5,4,"div",16),t.YNc(38,Pt,5,4,"mat-dialog-actions",17),t.qZA()()()),2&e&&(t.Q6J("ngClass",r.dis
1playInDialog?"px-4":"px-6 sm:px-12"),t.xp6(2),t.Q6J("formGroup",r.contactForm),t.xp6(1),t.Q6J("ngIf",r.displayAvatar),t.xp6(1),t.Q6J("ngClass",r.displayInDialog?"mt-4":"mt-8"),t.xp6(5),t.Q6J("svgIcon","heroicons_solid:user-circle"),t.xp6(1),t.Q6J("formControlName","firstName")("placeholder","First Name")("spellcheck",!1),t.xp6(1),t.Q6J("ngIf",r.contactForm.get("firstName").invalid&&(r.contactForm.get("firstName").dirty||r.contactForm.get("firstName").touched)),t.xp6(1),t.Q6J("ngClass",r.displayInDialog?"mt-4":"mt-8"),t.xp6(4),t.Q6J("svgIcon","heroicons_solid:user-circle"),t.xp6(1),t.Q6J("formControlName","lastName")("placeholder","lastName")("spellcheck",!1),t.xp6(1),t.Q6J("ngIf",r.contactForm.get("lastName").invalid&&(r.contactForm.get("lastName").dirty||r.contactForm.get("lastName").touched)),t.xp6(1),t.Q6J("ngClass",r.displayInDialog?"mt-4":"mt-8"),t.xp6(2),t.Q6J("ngForOf",r.contactForm.get("emails").controls)("ngForTrackBy",r.trackByFn),t.xp6(1),t.Q6J("ngIf",r.allowMultipleEntries),t.xp6(1),t.Q6J("ngClass",r.displayInDialog?"mt-4":"mt-8"),t.xp6(2),t.Q6J("ngForOf",r.contactForm.get("phoneNumbers").controls)("ngForTrackBy",r.trackByFn),t.xp6(1),t.Q6J("ngIf",r.allowMultipleEntries),t.xp6(1),t.Q6J("ngClass",r.displayInDialog?"mt-4":"mt-8"),t.xp6(4),t.Q6J("svgIcon","heroicons_solid:briefcase"),t.xp6(1),t.Q6J("formControlName","organization")("placeholder","Organization"),t.xp6(1),t.Q6J("ngIf",r.contactForm.get("organization").invalid&&(r.contactForm.get("organization").dirty||r.contactForm.get("organization").touched)),t.xp6(1),t.Q6J("ngClass",r.displayInDialog?"mt-4":"mt-8"),t.xp6(2),t.Q6J("ngForOf",r.contactForm.get("addresses").controls)("ngForTrackBy",r.trackByFn),t.xp6(1),t.Q6J("ngIf",!r.displayInDialog),t.xp6(1),t.Q6J("ngIf",r.displayInDialog))},dependencies:[C.mk,C.sg,C.O5,a._Y,a.Fj,a.JJ,a.JL,a.oH,a.sg,a.u,z.Hw,v.TO,v.KE,v.hX,v.qo,S.gM,V.lW,G.Nt,y.gD,y.$L,O.ey,R.Rr,K.H8],encapsulation:2,data:{animation:p.L}}),o})()},7268:(_,m,c)=>{c.d(m,{c:()=>s});class s{}},7991:(_,m,c)=>{c.d(m,{M:()=>s});class s{}},3804:(_,m,c)=>{c.d(m,{G:()=>s});const s={NA:"NA",A_Positive:"A_Positive",A_Negative:"A_Negative",B_Positive:"B_Positive",B_Negative:"B_Negative",AB_Positive:"AB_Positive",AB_Negative:"AB_Negative",O_Positive:"O_Positive",O_Negative:"O_Negative"}}}]);

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.