1import{d as Te}from"./chunk-VAY7CUIB.js";import{a as ge,b as ye}from"./chunk-VT6IGHEO.js";import"./chunk-CPK56KZN.js";import{a as he}from"./chunk-L22N5WJT.js";import"./chunk-MKF6QG6V.js";import{a as fe}from"./chunk-B3XBM5MD.js";import"./chunk-MVFZ4W5S.js";import"./chunk-QPO6AB24.js";import"./chunk-T2LKHT2R.js";import"./chunk-LB7GZ4RS.js";import"./chunk-CW3A6GGH.js";import{a as ce}from"./chunk-LLNUHMNV.js";import"./chunk-QUSGVUOF.js";import{a as pe}from"./chunk-PDZ2GFID.js";import"./chunk-UBZHVILN.js";import"./chunk-WECRXZVT.js";import"./chunk-SXSN5XUL.js";import"./chunk-XGQFJQG5.js";import"./chunk-7MFB5OWF.js";import"./chunk-TH4X4PKG.js";import"./chunk-C6BZFLMK.js";import"./chunk-IDHC3I6D.js";import"./chunk-TVZI3GRT.js";import"./chunk-EMD5D3CD.js";import{f as ue}from"./chunk-P7NG7HPQ.js";import{f as de,j as me}from"./chunk-4VN4MCU7.js";import"./chunk-7GVDXUAU.js";import"./chunk-4J4X5EMA.js";import"./chunk-ECECGNR4.js";import"./chunk-2IWGUN3K.js";import"./chunk-NCZHNS3C.js";import"./chunk-GO7UHMBF.js";import{f as oe}from"./chunk-5DDWRNUO.js";import{oa as G}from"./chunk-6ZVTRFTL.js";import"./chunk-P76QNSQL.js";import{A as ne,d as k,h as te,l as y,n as ie,s as ae}from"./chunk-Z34FZIQM.js";import"./chunk-SM5FSVVY.js";import{a as T}from"./chunk-TDDXVLK3.js";import{Ba as v,cb as e,ob as b,sc as re}from"./chunk-XVA3MWZK.js";import"./chunk-IJOWPJZI.js";import{d as se,e as le}from"./chunk-U32DLQYF.js";import{Bc as u,Fa as H,Kb as M,Lb as w,Mc as r,Nb as $,Nc as l,Ob as q,Pb as J,Qb as c,Rb as o,Sb as s,Tb as S,Xb as Q,Yb as X,_a as j,_b as A,bb as n,cc as D,ec as _,ha as V,ic as K,jc as Z,kc as ee,oa as L,pa as E,qc as B,rb as I,tc as h,uc as U,vc as P,w as z,wa as Y,wb as W}from"./chunk-FCFRADKE.js";import"./chunk-XHGXIXF6.js";function Ne(p,x){if(p&1){let i=A();o(0,"div",2)(1,"app-date-shortcut",3),D("filterChange",function(t){L(i);let d=_().$implicit,m=_();return E(m.onSettingChange(t,d.formControlName))})("dateChange",function(t){L(i);let d=_().$implicit,m=_();return E(m.onSettingChange(t,d.formControlName))}),s()()}if(p&2){let i=_().$implicit,a=_();n(),c("fieldFormControlName",i.formControlName)("form",a.form)("labelName",i.labelName)("initialValue",i.initialValue)("singleDateOnly",i.singleDateOnly)("includeShortcutGroups",i.includeShortcutGroups)("customFilterList",i.customFilterList)("disableSkeletonLoading",a.disableSkeletonLoading)}}function Le(p,x){if(p&1&&(Q(0,1),M(1,Ne,2,8,"div",2),X()),p&2){let i=x.$implicit,a=_();c("matColumnDef",i.formControlName),n(),w(i.controlType===a.CONTROL_TYPE.DATE_SHORTCUT?1:-1)}}var _e=(()=>{class p{constructor(){this.settingGroupName="settingGroup",this.disableSkeletonLoading=!1,this.settingChanged=new Y,this.CONTROL_TYPE=T}onSettingChange(i,a){this.settingChanged.emit({selectedValue:i,formControlName:a})}static{this.\u0275fac=function(a){return new(a||p)}}static{this.\u0275cmp=I({type:p,selectors:[["app-setting-group"]],inputs:{dataSource:"dataSource",form:"form",settingGroupName:"settingGroupName",disableSkeletonLoading:"disableSkeletonLoading"},outputs:{settingChanged:"settingChanged"},decls:3,vars:0,consts:[[1,"mci-ui-settings-table-container"],[3,"matColumnDef"],[1,"row"],[3,"filterChange","dateChange","fieldFormControlName","form","labelName","initialValue","singleDateOnly","includeShortcutGroups","customFilterList","disableSkeletonLoading"]],template:function(a,t){a&1&&(o(0,"div",0),q(1,Le,2,2,"ng-container",1,$),s()),a&2&&(n(),J(t.dataSource))},dependencies:[Te,he],encapsulation:2})}}return p})();function Ee(p,x){if(p&1){let i=A();o(0,"img",6),D("load",function(){L(i);let t=_();return E(t.handleImageLoad())}),s()}if(p&2){let i=_();B("loaded",i.loaded),c("src",i.imageSrc,j)}}function Ie(p,x){if(p&1){let i=A();o(0,"input",7),D("change",function(t){L(i);let d=_();return E(d.onProfileImageChange(t,!1))}),s()}}var Se=(()=>{class p{constructor(){this.uiUtilitiesService=V(ue),this.mciTranslateService=V(se),this.uploadFiles=new Y,this.fileTypes=[],this.dragging=!1,this.loaded=!1,this.imageLoaded=!1,this.userProfileDefaultPic="assets/images/user.svg",this.allowableFileSize="10",this.fileUploadLimitMsg=""}ngOnChanges(i){let a=i?.uploadedFile;a?.firstChange===!1&&(this.imageSrc=a?.currentValue?a?.currentValue:this.userProfileDefaultPic)}ngOnInit(){this.ACTIONS=v,this.actionType===v.EDIT?this.onProfileImageChange(this.uploadedFile,!0):this.imageSrc=this.uploadedFile,this.fileUploadLimitMsg=this.mciTranslateService.getTranslation("M.File_Upload_Hint_Multiple_Formats",{allowableFileSize:this.allowableFileSize,fileTypes:this.fileTypes.join(", ")})}handleDragEnter(){this.dragging=!0}handleDragLeave(){this.dragging=!1}handleDrop(i){i.preventDefault(),this.dragging=!1,this.onProfileImageChange(i,!1)}handleImageLoad(){this.imageLoaded=!0}onProfileImageChange(i,a){if(this.actionType!==v.VIEW)if(a)this.imageSrc=i;else{if(this.file=i.dataTransfer?i.dataTransfer.files[0]:i.target.files[0],this.file.type!=="image/jpg"&&this.file.type!=="image/jpeg"&&this.file.type!=="image/png"){this.uiUtilitiesService.showNotificationMessage(this.mciTranslateService.getTranslation("M.Filetype_Not_Allowed_Message"),"");return}if(this.file.size>10485760){this.uiUtilitiesService.showNotificationMessage(this.mciTranslateService.getTranslation("M.Filesize_Greaterthan_10MB"),"");return}this.uploadFiles.emit([this.file]);let t=new FileReader;this.loaded=!1,t.onload=this._handleReaderLoaded.bind(this),t.readAsD
1ataURL(this.file)}}_handleReaderLoaded(i){let a=i.target;this.imageSrc=a.result,this.loaded=!0}static{this.\u0275fac=function(a){return new(a||p)}}static{this.\u0275cmp=I({type:p,selectors:[["app-upload-image"]],inputs:{files:"files",uploadedFile:"uploadedFile",userInitials:"userInitials",actionType:"actionType",fileTypes:"fileTypes"},outputs:{uploadFiles:"uploadFiles"},features:[H],decls:8,vars:5,consts:[["ondragover","return false;",1,"uploader",3,"dragenter","dragleave","drop"],["alt","Profile Image",3,"loaded","src"],["accept","image/*","name","file","type","file"],[1,"upload-options"],["matPrefix","",1,"info-icon"],[1,"mci-ui-typography-caption-1"],["alt","Profile Image",3,"load","src"],["accept","image/*","name","file","type","file",3,"change"]],template:function(a,t){a&1&&(o(0,"label",0),D("dragenter",function(){return t.handleDragEnter()})("dragleave",function(){return t.handleDragLeave()})("drop",function(m){return t.handleDrop(m)}),M(1,Ee,1,3,"img",1),M(2,Ie,1,0,"input",2),s(),o(3,"div",3)(4,"mat-icon",4),h(5,"info"),s(),o(6,"p",5),h(7),s()()),a&2&&(B("loaded",t.loaded),n(),w(t.imageSrc?1:-1),n(),w(t.actionType!==t.ACTIONS.VIEW?2:-1),n(5),U(t.fileUploadLimitMsg))},dependencies:[re,oe],styles:[".uploader[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.uploader[_ngcontent-%COMP%]{-webkit-align-items:center;align-items:center;background-color:#e4e9f2;cursor:pointer;display:-webkit-flex;display:flex;-webkit-justify-content:center;justify-content:center;outline-offset:5px;position:relative;border-radius:50%;width:120px;height:120px}.uploader[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{pointer-events:none;-webkit-transition:all .1s ease-in;-moz-transition:all .1s ease-in;-ms-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in;color:#eee;color:#0003;font-size:5em}.uploader[_ngcontent-%COMP%]{-webkit-transition:all .1s ease-in;-moz-transition:all .1s ease-in;-ms-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in}.uploader[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{pointer-events:none;left:50%;height:100%;width:100%;position:absolute;top:50%;border-radius:50%;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-ms-transition:all .3s ease-in;-o-transition:all .3s ease-in;transition:all .3s ease-in;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);object-fit:cover}.uploader[_ngcontent-%COMP%] img.loaded[_ngcontent-%COMP%]{opacity:1}.upload-options[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.upload-options[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{color:#6d7783;overflow:unset;height:16px;width:16px;font-size:16px}.upload-options[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6d7783;width:100%;margin-left:7px;margin-bottom:0}"]})}}return p})();var Oe=["UploadImageComp"],ht=(()=>{class p extends ge{constructor(){super(),this.fileService=V(pe),this.SearchCountryField=de,this.orderTypes=[],this.fileType=[".jpg",".jpeg",".png"],this.fileSize=20,this.files=[],this.existingFiles=[],this.daylist=[],this.preferencesData=[],this.tenants=[],this.languages=[],this.locationList=[],this.dateFilterSelections=[],this.defaultDateFilterControls=[{formControlName:"dashboardDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Dashboard"),initialValue:e[e.Past30days],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Today,e.Yesterday,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days]},{formControlName:"overrideActivityDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Overrides_Activity"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.Past30days]},{formControlName:"changeOrderDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Change_Orders"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.Past30days]},{formControlName:"activityDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Activities"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.Past30days]},{formControlName:"notAllocatedDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Not_Allocated"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days,e.PastYear,e.Next30D
1ays,e.Next60Days,e.Next90Days]},{formControlName:"allocatedDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Allocated"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days,e.PastYear,e.Next30Days,e.Next60Days,e.Next90Days]},{formControlName:"unresolvedDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Unresolved"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days,e.PastYear,e.Next30Days,e.Next60Days,e.Next90Days]},{formControlName:"acceptanceDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Acceptance"),initialValue:e[e.Yesterday],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days,e.PastYear,e.Next30Days,e.Next60Days,e.Next90Days]},{formControlName:"notAuthorizedDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Not_Authorized"),initialValue:e[e.Past30days],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days,e.PastYear,e.Next30Days,e.Next60Days,e.Next90Days]},{formControlName:"timesheetsDateFilter",controlType:T.DATE_SHORTCUT,labelName:this.mciTranslateService.getTranslation("L.Timesheets"),initialValue:e[e.Past30days],singleDateOnly:!1,includeShortcutGroups:!1,customFilterList:[e.Yesterday,e.Today,e.Past7Days,e.ThisMonth,e.LastMonth,e.YearToDate,e.Past30days,e.Past60days,e.Past90days,e.Past180days,e.PastYear,e.Next30Days,e.Next60Days,e.Next90Days]}],this.updateProfile=this.updateProfile.bind(this)}ngOnInit(){this.uiUtilitiesService.disabledGlobalLocation(!0),this.skeletonLoadingService.startSkeletonLoading(1.25),this.locationList=this.uiUtilitiesService.getLocationList(),this.actionType=v.EDIT,this.userId=this.commonUtilitiesService.getTokenData().oid,this.initializeForm(),this.getModalValues(),this.updateFooterButtons(),this.standaloneFormService.footerAction$.pipe(this.takeUntilDestroyed(this.destroyRef)).subscribe(i=>{if(i!=null)switch(i){case v.CANCEL:this.onCancel();break;case v.SAVE:this.onSave();break}})}initializeForm(){this.form=this.formBuilder.group({firstname:new y("",[k.pattern(G)]),lastname:new y("",[k.pattern(G)]),phonenumber:new y(""),email:new y("",[k.email]),ordertype:new y(""),personaid:new y(""),patternStartDay:new y(""),tenant:new y(""),language:new y(""),defaultLocation:new y(""),enableTimesheetDateFilterAlert:new y(!1)}),this.defaultDateFilterControls.forEach(i=>{this.form.addControl(i.formControlName,new y(i.initialValue))})}slideToggleChange(){this.form.markAsDirty()}getModalValues(){this.daylist=this.dateTimeService.getLocalizedDaysOfWeekSundayFirst().map(i=>i.localizedDay),z({externalSystemsResponse:this.personalInformationService.getAllExternalSystems(),userResponse:this.personalInformationService.getUser(this.userId),globalResponse:this.personalInformationService.getGlobalUserbyId(this.userId),preferencesResponse:this.personalInformationService.getNotificationSettings(this.userId),tenantsResponse:this.tenantService.getUserTenants()}).subscribe(({externalSystemsResponse:i,userResponse:a,globalResponse:t,preferencesResponse:d,tenantsResponse:m})=>{this.orderTypes=i[0]?.data??[],this.tenants=m[0].data,this.globalUserInfo=t[0].data,this.languages=this.uiUtilitiesService.getLanguages(),this.preferencesData=d,this.setUserInfo(a)})}setUserInfo(i){if(this.user=i[0].data,this.user?.attachmentmetadata){let g=JSON.parse(this.user.attachmentmetadata);for(let C of g){let R={id:C.id,name:C.filename,size:C.sizebytes,type:"image/"+C.type,lastModifiedDate:new Date};this.files.push(R),this.existingFiles.push(R)}this.attachmentId=g[0]?.id,this.attachmentId&&this.commonService.getDownloadedImageFile(this.attachmentId,!1).subscribe(C=>{C[0]?.success&&C[0]?.data&&(this.uploadedFile=C[0].data?.documenturl,this.uiUtilitiesService.setProfileImageValue(this.uploadedFile,this.user.firstname?.substring(0,1)?.toUpperCase()+this.user.lastname?.substring(0,1)?.toUpperCase()))});let F=this.user?.firstname.substr(0,1).toUpperCase()+this.user?.firstname.substr(1),N=this.user?.lastname.substr(0,1).toUpperCase()+this.user?.lastname.substr(1);this.uiUtilitiesService.setUserNameValue(`${F} ${N}`)}else this.uploadedFile="";this.securityprofileid=this.user?.securityprofileid,this.user&&this.form.patchValue({firstname:this.user.firstname,lastname:this.user.lastname,phonenumber:this.user.phonenumber,email:this.user.email,ordertype:this.orderTypes.find(g=>g.id===this.user.ordertype),tenant:this.tenants.find(g=>g.logintenant),personaid:this.user.personaid}),this.userInitials=this.form.controls.firstname.value?.substring(0,1)+this.form.controls.lastname.value?.substring(0,1);let a=this.preferencesData[0]?.data?.system,t=a?.enabletimesheetdatefilteralert??!0;this.form.controls.enableTimesheetDateFilterAlert.setValue(t);let d=a?.startdayofweek??0;this.form.controls.patternStartDay.setValue(this.daylist[d]);let m=this.locationList.find(g=>g.location_id===a.defaultlocationid);this.form.controls.defaultLocation.setValue(m??"");let O=this.languages.find(g=>g.code===(a.emaillanguage??"en-US"));O&&this.languages.length>0&&this.form.controls.language.setValue(O),this.setDateFilters(a)}onCancel(){this.form.dirty&&this.modalService.openDiscardChangesMo
1dal(this.form.valid).afterClosed().subscribe(a=>{switch(a){case v.SAVE_AND_CLOSE:this.onSave();break;case v.DISCARD:this.getModalValues();break}})}onSave(){if(this.mciFormService.validateAllFormFields(this.form),!this.form.invalid)if(this.files?.length>0){let i={locationid:""};this.fileService.uploadFiles(i,this.files,this.existingFiles,this.updateProfile)}else this.updateProfile("")}updateProfile(i){let a=this.createPreferencesPayload(this.form.controls.language?.value),t=this.createUserRequestPayload(this.form.value,i,a);this.personalInformationService.updateUser(t).subscribe(d=>{if(d[0]?.success){let m=this.mciTranslateService.getTranslation("M.Entity_Edited",{entity:this.mciTranslateService.getTranslation("L.Profile")});this.notificationBarService.showNotificationMessage(m,""),this.personalInformationService.cachedPreferences=a,this.personalInformationService.userUpdated$.next(!0),this.form.markAsPristine()}else{let m=this.mciTranslateService.getTranslation("M.Entity_Could_Not_Be_Edited",{entity:this.mciTranslateService.getTranslation("L.Profile")});this.notificationBarService.showNotificationMessage(m,"")}this.resetSaveButtonState()})}createPreferencesPayload(i){let a=this.form.controls.enableTimesheetDateFilterAlert.value,t=this.form.controls.patternStartDay.value,d="0",m=this.form.controls.defaultLocation?.value?.location_id??"";t&&(d=this.daylist.indexOf(t).toString());let O={};this.defaultDateFilterControls.forEach(F=>{let N=this.dateFilterSelections.find(C=>C.formControlName===F.formControlName);O[F.formControlName]={formControlName:F.formControlName,selectedValue:N?.selectedValue?N?.selectedValue:F?.initialValue?F.initialValue:e[e.Yesterday],customDate:N?.customDate??null}});let g={startdayofweek:d,defaultlocationid:m,emaillanguage:i?.code,enabletimesheetdatefilteralert:a,dateFilters:[...Object.values(O)]};if(this.preferencesData[0]?.data&&this.preferencesData[0].data.notifications){let F=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.OVERRIDE_REQUESTS),N=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.OVERRIDE_ACCEPTED),C=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.OVERRIDE_REJECTED),R=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.PRE_APPROVAL_REQUESTS),De=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.PRE_APPROVALS_REJECTED),ve=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.PRE_APPROVALS_APPROVED),be=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.PENDING_AUTH),Fe=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.REVIEWED_AUTH),Pe=this.preferencesData[0].data.notifications?.find(f=>f.activity===b.REJECT_ALLOCATION);return this.personalInformationService.getPreferencesPayload(F,N,C,R,ve,De,be,Fe,Pe,g)}else return{preferences:{system:g}}}createUserRequestPayload(i,a,t){return{id:this.userId,firstname:i.firstname,lastname:i.lastname,email:i.email,organization:this.user.organization,phonenumber:i?.phonenumber?.internationalNumber??"",ordertype:i?.ordertype?.id,updatetenantid:i?.tenant?.id,employeetype:this.user.employeetype,cultureid:this.user.cultureid,islocked:this.globalUserInfo?.islocked??!1,enablemultifactor:this.globalUserInfo?.enablemultifactor??!1,multifactorphonenumber:this.globalUserInfo?.multifactorphonenumber??"",personaid:i?.personaid,lastonline:new Date,isactive:!0,login:this.user.login,attachments:a,securityprofileid:this.securityprofileid,ispersonalinfo:!0,preferences:JSON.stringify(t.preferences)}}onUploadFiles(i){this.files=i,this.files?.length>0&&this.form.markAsDirty()}onSettingChange(i){let a=this.dateFilterSelections.find(t=>t.formControlName===i.formControlName);a?i.selectedValue instanceof Date?a.customDate=i.selectedValue:a.selectedValue=e[i.selectedValue.id]:this.dateFilterSelections.push({formControlName:i.formControlName,selectedValue:e[i.selectedValue.id]})}ngOnDestroy(){this.uiUtilitiesService.disabledGlobalLocation(!1)}setDateFilters(i){this.defaultDateFilterControls.forEach(a=>{if(i.datefilters){let t=i.datefilters.find(d=>d.formcontrolname===a.formControlName);t&&(a.initialValue=t.selectedvalue)}this.form.controls[a.formControlName]?.setValue({id:e[a.initialValue]})})}static{this.\u0275fac=function(a){return new(a||p)}}static{this.\u0275cmp=I({type:p,selectors:[["app-personalinformation"]],viewQuery:function(a,t){if(a&1&&K(Oe,5),a&2){let d;Z(d=ee())&&(t.UploadImageComp=d.first)}},features:[W],decls:92,vars:142,consts:[["UploadImageComp",""],[1,"mci-ui-card-flat","mci-ui-profile-my-settings"],["autocomplete","off","id","personal-information",1,"form",3,"formGroup"],[1,"row"],[1,"col-xxl-4","col-lg-5","col-md-12","mci-ui-profile-page-left"],[1,"mci-ui-profile-page-scrollable"],[3,"uploadFiles","actionType","fileTypes","uploadedFile","userInitials"],[1,"title"],[1,"col"],["fieldFormControlName","firstname",3,"actionType","form","maxlength","patternMessage","typeOfControl","labelName"],["fieldFormControlName","lastname",3,"actionType","form","maxlength","patternMessage","typeOfControl","labelName"],["fieldFormControlName","phonenumber",3,"actionType","form","typeOfControl"],["fieldFormControlName","email",3,"actionType","form","inputType","maxlength","typeOfControl","labelName"],[1,"col-1","col-md-0","vertical-divider"],[1,"col","mci-ui-profile-page-right"],[1,"-3","col-xxl-2","customColumn"],[1,"mci-ui-typography-paragraph-2","label"],["labelName","","fieldFormControlName","enableTimesheetDateFilterAlert",3,"slideToggleChange","actionType","displayViewField","form","typeOfControl","displayToggleSelectionLabel"],[1,"col-3","col-xxl-2","customColumn"],["fieldFormControlName","patternStartDay",3,"actionType","disableAlphabeticalSorting","displayViewField","hasEmptyOption","inputValues","selectDropdownForm","labelName","placeholder"],["fieldFormControlName","ordertype","inputValueLabel","name",3,"actionType","enableDataLoadingOnScrollOrSearch","inputValues","selectDropdownForm","labelName","placeholder"],["fieldFormControlName","defaultLocation","inputValueLabel","location_name","selectId","defaultLocationId",3,"inputValues","selectDropdownForm","labelName","placeholder"],["fieldFormControlName","tenant","inputValueLabel","name",3,"actionType","hasEmptyOption","inputValues","selectDropdownForm","customHintMessage","labelName","placeholder"],[1,"row","mci-ui-profile-after_hint"],["groupName","defaultDateFilter",3,"settingChanged","dataSource","form","disableSkeletonLoading"],[1,"title","sectionHeader"],["fieldFormControlName","language","inputValueLabel","name",3,"actionType","hasEmptyOption","disableAlphabeticalSorting","inputValues","selectDropdownForm","labelName","placeholder"]],template:function(a,t){a&1&&(o(0,"app-standalone-form")(1,"div",1)(2,"form",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"app-upload-image",6,0),D("uploadFiles",function(m){return t.onUploadFiles(m)}),s(),o(8,"h6",7),h(9),r(10,"mciTranslate"),s(),o(11,"div",3)(12,"div",8),S(13,"mci-form-control",9),r(14,"mciTranslate"),r(15,"mciTranslate"),S(16,"mci-form-control",10),r(17,"mciTranslate"),r(18,"m
1ciTranslate"),S(19,"mci-form-control",11)(20,"mci-form-control",12),r(21,"mciTranslate"),s()()()(),S(22,"div",13),o(23,"div",14)(24,"div",5)(25,"h6",7),h(26),r(27,"mciTranslate"),s(),o(28,"div",3)(29,"div",15)(30,"label",16),h(31),r(32,"mciTranslate"),s()(),o(33,"div",8)(34,"mci-form-control",17),D("slideToggleChange",function(){return t.slideToggleChange()}),s()()(),o(35,"div",3)(36,"div",18)(37,"label",16),h(38),r(39,"mciTranslate"),s()(),o(40,"div",8),S(41,"mci-select",19),r(42,"mciTranslate"),r(43,"mciTranslate"),s()(),o(44,"div",3)(45,"div",18)(46,"label",16),h(47),r(48,"mciTranslate"),s()(),o(49,"div",8),S(50,"mci-picker",20),r(51,"mciTranslate"),r(52,"mciTranslate"),s()(),o(53,"div",3)(54,"div",18)(55,"label",16),h(56),r(57,"mciTranslate"),s()(),o(58,"div",8),S(59,"mci-select",21),r(60,"mciTranslate"),r(61,"mciTranslate"),s()(),o(62,"div",3)(63,"div",18)(64,"label",16),h(65),r(66,"mciTranslate"),s()(),o(67,"div",8),S(68,"mci-select",22),r(69,"mciTranslate"),r(70,"mciTranslate"),r(71,"mciTranslate"),s()(),o(72,"div",23)(73,"div",18)(74,"label",16),h(75),r(76,"mciTranslate"),s()(),o(77,"div",8)(78,"div",3)(79,"app-setting-group",24),D("settingChanged",function(m){return t.onSettingChange(m)}),s()()()(),o(80,"h6",25),h(81),r(82,"mciTranslate"),s(),o(83,"div",3)(84,"div",18)(85,"label",16),h(86),r(87,"mciTranslate"),s()(),o(88,"div",8),S(89,"mci-select",26),r(90,"mciTranslate"),r(91,"mciTranslate"),s()()()()()()()()),a&2&&(n(2),c("formGroup",t.form),n(4),c("actionType",t.actionType)("fileTypes",t.fileType)("uploadedFile",t.uploadedFile)("userInitials",t.userInitials),n(3),U(l(10,90,"L.Personal_Information")),n(4),c("labelName",u(l(14,92,"L.First_Name")))("actionType",t.ACTIONS.VIEW)("form",t.form)("maxlength",50)("patternMessage",l(15,94,"M.Must_Be_Alphanumeric"))("typeOfControl",t.CONTROL_TYPE.TEXT_INPUT),n(3),c("labelName",u(l(17,96,"L.Last_Name")))("actionType",t.ACTIONS.VIEW)("form",t.form)("maxlength",50)("patternMessage",l(18,98,"M.Must_Be_Alphanumeric"))("typeOfControl",t.CONTROL_TYPE.TEXT_INPUT),n(3),c("actionType",t.actionType)("form",t.form)("typeOfControl",t.CONTROL_TYPE.TELEPHONE),n(),c("labelName",u(l(21,100,"L.Email_Address")))("actionType",t.actionType)("form",t.form)("inputType",t.htmlInputType.EMAIL)("maxlength",50)("typeOfControl",t.CONTROL_TYPE.TEXT_INPUT),n(6),U(l(27,102,"L.Application_Preferences")),n(5),P(" ",l(32,104,"L.Timesheet_Date_Filter_Alert")," "),n(3),c("actionType",t.actionType)("displayViewField",!1)("form",t.form)("typeOfControl",t.CONTROL_TYPE.SLIDE_TOGGLE)("displayToggleSelectionLabel",!1),n(4),P(" ",l(39,106,"L.Calendar")," "),n(3),c("labelName",u(l(42,108,"L.Start_Week_On")))("placeholder",u(l(43,110,"L.Select_Start_Week_On")))("actionType",t.actionType)("disableAlphabeticalSorting",!0)("displayViewField",!0)("hasEmptyOption",!1)("inputValues",t.daylist)("selectDropdownForm",t.form),n(6),P(" ",l(48,112,"L.Order_Type")," "),n(3),c("labelName",u(l(51,114,"L.Default")))("placeholder",u(l(52,116,"L.Select_Order_Type")))("actionType",t.actionType)("enableDataLoadingOnScrollOrSearch",!1)("inputValues",t.orderTypes)("selectDropdownForm",t.form),n(6),P(" ",l(57,118,"L.Location")," "),n(3),c("labelName",u(l(60,120,"L.Default")))("placeholder",u(l(61,122,"L.Select_Location")))("inputValues",t.locationList)("selectDropdownForm",t.form),n(6),P(" ",l(66,124,"L.Tenant")," "),n(3),c("customHintMessage",u(l(69,126,"M.Tenant_Hint_Message")))("labelName",u(l(70,128,"L.Current_Tenant")))("placeholder",u(l(71,130,"L.Select_Tenant")))("actionType",t.actionType)("hasEmptyOption",!1)("inputValues",t.tenants)("selectDropdownForm",t.form),n(7),P(" ",l(76,132,"L.Default_Date_Filter")," "),n(4),c("dataSource",t.defaultDateFilterControls)("form",t.form)("disableSkeletonLoading",!1),n(2),P(" ",l(82,134,"L.Format_Preferences")," "),n(5),P(" ",l(87,136,"L.Language")," "),n(3),c("labelName",u(l(90,138,"L.Email_Language")))("placeholder",u(l(91,140,"L.Select_Language")))("actionType",t.actionType)("hasEmptyOption",!1)("disableAlphabeticalSorting",!0)("inputValues",t.languages)("selectDropdownForm",t.form))},dependencies:[ye,ne,ie,te,ae,Se,me,fe,_e,ce,le],encapsulation:2})}}return p})();export{ht as PersonalInformationComponent};
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.