1"use strict";(self.webpackChunkdzweb=self.webpackChunkdzweb||[]).push([[1437],{52931:(ne,F,g)=>{g.d(F,{f:()=>_});var v=g(17009),A=g(94650);let _=(()=>{class l{constructor(R,u){this.snackBarRef=R,this.data=u,this.message="",this.message=u}}return l.\u0275fac=function(R){return new(R||l)(A.Y36(v.OX),A.Y36(v.qD))},l.\u0275cmp=A.Xpm({type:l,selectors:[["app-success-error-snack-bar"]],decls:4,vars:1,consts:[[1,"snack-bar-text"],["id","appsuccess-snackbar-close","mat-raised-button","",1,"snack-bar-button",3,"click"]],template:function(R,u){1&R&&(A.TgZ(0,"p",0),A._uU(1),A.qZA(),A.TgZ(2,"button",1),A.NdJ("click",function(){return u.snackBarRef.dismiss()}),A._uU(3,"close"),A.qZA()),2&R&&(A.xp6(1),A.hij(" ",u.message,"\n"))},encapsulation:2}),l})()},62403:(ne,F,g)=>{g.d(F,{R:()=>v});const v={ERRMSG_PUBLISH_FC_VIEW_PROPERTY_UPDATE:{errorMessage:"We could not save the changes, please try again after sometime. (34118)"},ERRMSG_EMBEDDED_FC_VIEW_PROPERTY_UPDATE:{errorMessage:"We could not save the changes, please try again after sometime. (32074)"},ERRMSG_RETRIEVE_FC_VERSION_LIST:{errorMessage:"There was a problem in getting this flowchart's details. (86646)"},ERRMSG_WHOLE_FC_VIEW_ERROR:{errorMessage:"There was a problem in opening the whole flowchart view. (18523)"},ERRMSG_CREATE_BOOKMARK_ALIAS_FAILED:{errorMessage:"There was a problem in saving bookmark alias. Please try after sometime. (76067)"},ERRMSG_SEND_BOX_FEEDBACK_ERROR:{errorMessage:"We are unable to send the feedback to author at this time. Please try after some time. (81455)"},ERRMSG_RETRIEVE_FC_LIST_FOR_GOAL_ERROR:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (90037)"},ERRMSG_FLOWCHART_FAVORITE_SAVE:{errorMessage:"We are unable to save your selected flowchart in favorite list at this time. Please try after sometime. (53335)"},ERRMSG_FLOWCHART_FAVORITE_REMOVE:{errorMessage:"We are unable to remove selected flowchart from favorite list at this time. Please try after sometime. (83793)"},ERRMSG_FLOWCHART_RENDER_ERROR:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (96431)"},ERRMSG_FLOWCHART_AUTHORIZE_ERROR:{errorMessage:"You are not authorized to access this flowchart anymore. (99729)"},ERRMSG_FLOWCHART_EDIT_MODE_TURNOFF:{errorMessage:"We are unable to turn off edit mode for this flowchart. Please try after sometime. (30951)"},ERRMSG_FLOWCHART_PUBLIC_STATUS:{errorMessage:"We are unable to change this flowchart public status at this time. Please try after sometime. (12024)"},ERRMSG_FLOWCHART_EMBED_STATUS:{errorMessage:"We are unable to change this flowchart status for embedding at this time. Please try after sometime. (23078)"},ERRMSG_FLOWCHART_PUBLISH_TOGGLE:{errorMessage:"We are unable to change this flowchart publish status at this time. Please try after sometime. (26137)"},ERRMSG_PUBLISH_FC_VIEWER_TRANSCRIPT_TOGGLE:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (75279)"},ERRMSG_PUBLISH_FC_LAYOUT:{errorMessage:"We are unable to change published flowchart layout. Please try after sometime. (56531)"},ERRMSG_EMBED_FC_LAYOUT:{errorMessage:"We are unable to change embedded flowchart layout. Please try after sometime. (17003)"},ERRMSG_FLOWCHART_PROPERTY_ENDFLOW_UPDATE:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (49526)"},ERRMSG_PUBLISHED_FLOWCHART_REDIRECT_URL_UPDATE:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (40547)"},ERRMSG_CREATE_FLOWCHART_WITH_NEW_GOAL:{errorMessage:"We are unable to create a new goal and flowchart as per your selection at this time. Please try after sometime. (42196)"},ERRMSG_CREATE_FLOWCHART_ERROR:{errorMessage:"We are unable to create a new flowchart as per your selection. Please try after sometime. (20380)"},ERRMSG_RENDER_NEW_CREATED_FLOWCHART_ERROR:{errorMessage:"We have created flowchart for you, but unable to render the flowchart at this time. Please try after sometime. (54844)"},ERRMSG_EXPORT_FLOWCHART_ACTIVITY_DATE_RANGE_ERROR:{errorMessage:"There has not been any activity for selected flowchart during this time period. Please change the time period or select different flowchart. (56504)"},ERRMSG_EXPORT_FLOWCHART_ACTIVITY_ERROR:{errorMessage:"We are unable to process your request at this time. Please try after sometime.
1(80534)"},ERRMSG_ORG_USER_MILESTONE_CHART_DATA_FOR_DASHBOARD:{errorMessage:"We are unable to get your organization's users milestone data at this time. Please try after sometime. (74902)"},ERRMSG_ORG_USER_ACTIVITY_CHART_DATA_FOR_DASHBOARD:{errorMessage:"We are unable to get your organization's activity data at this time. Please try after sometime. (66996)"},ERRMSG_ORG_USER_ACTIVITY_TABLE_DATA_FOR_DASHBOARD:{errorMessage:"We are unable to get your organization's activity data at this time. Please try after sometime. (66673)"},ERRMSG_ORG_USER_MILESTONE_TABLE_DATA_FOR_DASHBOARD:{errorMessage:"We are unable to get your organization's users milestone data at this time. Please try after sometime. (98039)"},ERRMSG_ADD_EDIT_BOX:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (55729)"},ERRMSG_ADD_FILE_ON_BOX:{errorMessage:"We are unable to upload the requested file on the box at this time. Please try after sometime. (24655)"},ERRMSG_ADD_REFERENCE_LINK_ON_BOX:{errorMessage:"We are unable to attach reference link on the box at this time. Please try after sometime. (18742)"},ERRMSG_CHOICE_BOX_SORT_ORDER_FAILED:{errorMessage:"We are unable to update the choice box sort order at this time. Please try after sometime. (91310)"},ERRMSG_DELETE_CHOICE_BOX_FAILED:{errorMessage:"We are unable to delete selected choice at this time. Please try after sometime. (47658)"},ERRMSG_ACCEPT_ORG_INVITATION_FAILED:{errorMessage:"We are unable to process your request at this time. Please try after sometime. (43007)"},ERRMSG_ACCEPT_ORG_INVITE_VALIDATION_FAILED:{errorMessage:"This link is not valid anymore, please contact the admin of your DeciZone organization. (42428)"},ERRMSG_DECLINE_ORG_INVITE_BY_USER_FAILED:{errorMessage:"We are unable to process your request at this time. Please try again. (49435)"},ERRMSG_CHOICE_BOX_IMAGE_UPLOAD_FAILED:{errorMessage:"We are unable to upload image on choice box at this time. Please try after sometime. (46542)"},ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED:{errorMessage:"We are unable to change the selected brand update for your organization. Please try after sometime. (60465)"},ERRMSG_ORG_DISPLAYNAME_UPDATE_FAILED:{errorMessage:"We are unable to update your organization display name as per your request. Please try after sometime. (49938)"},ERRMSG_ORG_CUSTOM_KEYNAME_UPDATE_FAILED:{errorMessage:"We are unable to update your organization custom key name as per your request. Please try after sometime. (93818)"},ERRMSG_ORG_CUSTOM_KEYVALUE_UPDATE_FAILED:{errorMessage:"We are unable to update your organization custom key value as per your request. Please try after sometime. (57585)"},ERRMSG_ORG_WEBSITE_URL_UPDATE_FAILED:{errorMessage:"We are unable to update your organization website url as per your request. Please try after sometime. (57398)"},ERRMSG_ORG_SCREEN_TIMEOUT_UPDATE_FAILED:{errorMessage:"We are unable to update session timeout as per your request at this time. Please try after sometime. (12311)"},ERRMSG_FLOWCHART_DELETE_SETTING_TABLE_FAILED:{errorMessage:"We are unable to delete your selected flowchart at this time. Please try after sometime. (26375)"},ERRMSG_INSERT_BOX_FAILED:{errorMessage:"We are unable to insert the box as per your selection at this time. (21575)"},ERRMSG_AUTHORIZATION_ERROR:{errorMessage:"You are not authorized to perform this action. (16341)"},ERRMSG_DELETE_BOX_FAILED:{errorMessage:"Unexpected error occured while deleting selected box. Please try after sometime. (28957)"},ERRMSG_DELETE_BOX_ATTACHMENT_ICON_FAILED:{errorMessage:"We are unable to delete selected icon at this time. Please try after sometime. (92208)"},ERRMSG_DELETE_BOX_ATTACHMENT_FAILED:{errorMessage:"We are unable to delete the attachment to this box at this time. Please try after sometime. (80579)"},ERRMSG_ADD_MCB_BOX_FAILED:{errorMessage:"Unexpected error occured while adding multiple choice box. You can try after sometime. (31972)"},ERRMSG_ADD_BOOKMARK_LINK_FAILED:{errorMessage:"We are unable to create bookmark link at this time. Please try after sometime.
1(90427)"},ERRMSG_DELETE_BOOKMARK_LINK_FAILED:{errorMessage:"Unexpected error occured while deleting bookmark link. Please try after sometime. (58368)"},ERRMSG_ADD_CLONE_BOX_FAILED:{errorMessage:"We are not able to add clone box based on your selected box alias at this time. Please try after sometime. (76370)"},ERRMSG_CLIENT_SIDE_GENERIC_ERROR:{errorMessage:"We are sorry, there was a problem with the last couple of interactions. If you are JUST starting to see this message recently, you can try to 'press the SHIFT key + Refresh' the page OR Sign-Out of your account, open a new browser tab and Sign back into your DeciZone account to continue. If you see this problem again/repeatedly, try to note down the sequence/pattern of actions right before you get this problem and share it with the DeciZone support team so we can fix it quickly for you."},ERRMSG_APPEND_FLOWCHART_ERROR:{errorMessage:"We are sorry, there was a problem while appending the selected flowchart to current box. Please try after some time. (76480)"},ERRMSG_ORG_CREDITS_USAGE_DETAILS_FAILED:{errorMessage:"We are unable to retrieve your organization's credits usage details at this time. Please try again after sometime. (54951)"},ERRMSG_DELETE_FLOWCHART_FROM_CACHE_FAILED:{errorMessage:"We are unable to refresh flowchart from cache. Please try again at a later time. (33246)"},ERRMSG_SUBSCRIBE_CREDIT_CARD_VALIDATION_FAILED:{errorMessage:"We are unable to process your credit-card. Please try again or contact [email protected]. (79933)"},ERRMSG_ORG_DEFAULT_LANDING_PAGE_UPDATE_FAILED:{errorMessage:"We are unable to update your organization preference for default landing page after login (73244)"},ERRMSG_DELETE_THIRD_PARTY_API_FAILED:{errorMessage:"We are unable to remove selected API details at this time. Please try again. (73245)"}}},61437:(ne,F,g)=>{g.r(F),g.d(F,{ProfileModule:()=>fa});var v=g(36895),A=g(19132),_=g(69814),l=g(24006),Q=g(10920),R=g(15861),u=g(65938),J=g(48242),te=g(29521),ae=g(94327),x=g(22858),p=g(17489),w=g(31934),Y=g(69327),e=g(94650),E=g(17009),S=g(93531),N=g(99863),q=g(65244),M=g(21952),y=g(59549),Z=g(4859),I=g(97392),pe=g(87314),oe=g(10266);const Te=["fileInput"];function xe(o,a){1&o&&e._UZ(0,"img",18)}function Ae(o,a){if(1&o&&e._UZ(0,"img",19),2&o){const t=e.oxw();e.s9C("src",t.avatarImageUrl,e.LSH)}}function Ue(o,a){if(1&o&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.successMsg," ")}}function Ze(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function Pe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.toggleContainWithinAspectRatio())}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_center_focus"),e.qZA()()}2&o&&e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Oe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.toggleContainWithinAspectRatio())}),e.TgZ(1,"mat-icon"),e._uU(2,"settings_overscan"),e.qZA()()}2&o&&e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function we(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",21)(1,"button",22),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.rotateRight())}),e.TgZ(2,"mat-icon"),e._uU(3,"rotate_90_degrees_cw"),e.qZA()(),e.TgZ(4,"button",23),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.rotateLeft())}),e.TgZ(5,"mat-icon"),e._uU(6,"rotate_90_degrees_ccw"),e.qZA()(),e.TgZ(7,"button",24),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.flipHorizontal())}),e.TgZ(8,"mat-icon"),e._uU(9,"switch_right"),e.qZA()(),e.TgZ(10,"button",25),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.flipVertical())}),e.TgZ(11,"mat-icon"),e._uU(12,"unfold_more"),e.qZA()(),e.YNc(13,Pe,3,2,"button",26),e.YNc(14,Oe,3,2,"button",27),e.TgZ(15,"button",28),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.resetImage())}),e.TgZ(16,"mat-icon"),e._uU(17,"refresh"),e.qZA()(),e.TgZ(18,"button",29),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.zoomOut())}),e.TgZ(19,"mat-icon"),e._uU(20,"zoom_out"),e.qZA()(),e.TgZ(21,"button",30),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.zoomIn())}),e.TgZ(22,"mat-icon"),e._uU(23,"zoom_in"),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("ngIf",!t.containWithinAspectRatio),e.xp6(1),e.Q6J("ngIf",t.containWithinAspectRatio),e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Me(o,a){1&o&&(e.TgZ(0,"p"),e._uU(1,"Rotate Image"),e.qZA())}function Ie(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-slider",33),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.rotation=r)})("change",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.updateRotation())}),e._uU(1,"Rotate Image"),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",t.thumbLabel)("ngModel",t.rotation)}}function De(o,a){if(1&o&&(e.TgZ(0,"div")(1,"p"),e._uU(2,"Preview:"),e.qZA(),e._UZ(3,"img",34),e.qZA()),2&o){const t=e.oxw();e.xp6(3),e.Udp("border",t.croppedImage?"1px solid black":"none"),e.Q6J("src",t.croppedImage,e.LSH)}}function Se(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.deleteAvatar())}),e._uU(1," Delete Current Image "),e.qZA()}}let Ee=(()=>{class o{constructor(t,i,r,n,s,c,d,m){this.ngZone=t,this.dialogRef=i,this.router=r,this._snackBar=n,this._utilService=s,this._userService=c,this._userMilestoneService=d,this.userProfile={},this.successMsg="",this.genericErrMsg="",this.genericErr=!1,this.imageChangedEvent="",this.croppedImage="",this.showCropper=!1,this.canvasRotation=0,this.rotation=0,this.scale=1,this.containWithinAspectRatio=!1,this.transform={},this.thumbLabel=!0,this.value=0,this.sessionStorage=m,this._utilService.updatePrefAvatarDisplaynameMilestoneAchieved.subscribe(h=>{h&&this._snackBar.open(x.Sqt,"Dismiss",{duration:2500})})}ngOnInit(){this.userProfile=this.sessionStorage.getObject("userProfile"),this.avatarImageUrl=this.userProfile.avatar}fileChangeEvent(t){this.imageChangedEvent=t}imageCropped(t){this.croppedImage=t.base64,console.log(t,(0,w.Ll)(t.base64))}imageLoaded(){this.showCropper=!0,console.log("Image loaded")}cropperReady(t){console.log("Cropper ready",t)}rotateLeft(){this.canvasRotation--,this._flipAfterRotate(),this.updateRotation()}rotateRight(){this.canvasRotation++,this._flipAfterRotate(),this.updateRotation()}_flipAfterRotate(){this.transform={...this.transform,flipH:this.transform.flipV,flipV:this.transform.flipH}}flipHorizontal(){this.transform={...this.transform,flipH:!this.transform.flipH}}flipVertical(){this.transform={...this.transform,flipV:!this.transform.flipV}}resetImage(){this.scale=1,this.rotation=0,this.canvasRotation=0,this.transform={}}zoomOut(){this.scale-=.1,this.transform={...this.transform,scale:this.scale}}zoomIn(){this.scale+=.1,this.transform={...this.transform,scale:this.scale}}toggleContainWithinAspectRatio(){this.containWithinAspectRatio=!this.containWithinAspectRatio}updateRotation(){this.transform={...this.transform,rotate:this.rotation}}loadImageFailed(){console.log("Load failed"),this.genericErr=!0,this.genericErrMsg="Loading Image Failed"}validateSelectedImage(t){if(this.genericErr=!1,this.genericErrMsg="",this.successMsg="",t.target.files&&t.target.files.length>0){if(!p.includes(["image/png","image/jpeg","image/jpg"],t.target.files[0].type))return this.genericErrMsg="Not valid image type. Only png/jpeg/jpg files are allowed.",void(this.genericErr=!0)}else this.genericErr=!0,this.genericErrMsg="You haven't selected any file."}dataURItoBlob(t){const i=atob(t.split(",")[1]),r=[];for(let n=0;n<i.length;n++)r.push(i.charCodeAt(n));return new Blob([new Uint8Array(r)],{type:"image/png"})}uploadCroppedAvatar(){var t=this;return(0,R.Z)(function*(){let i=t.fileInput.nativeElement;if(console.log("file input",i),console.log("cropped image",t.croppedImage),t.croppedImage){t.avatarImageUrl="";let r=i.files.item(0).name.replace(/\s/g,"");r=r.replace(/[\])}[{(]/g,"");let n=r.substring(0,r.indexOf("."))+".png";console.log("png file name",n);const s=t.dataURItoBlob(t.croppedImage);console.log("file blob",s);let c=new File([s],n,{type:"image/png"});const d={maxSizeMB:.05,maxWidthOrHeight:100,useWebWorker:!1};let m=c;try{const T=yield(0,Y.Z)(c,d);console.log("compressedFile instanceof Blob",T instanceof Blob),console.log(`compressedFile size ${T.size/1024/1024} MB`),m=T}catch(T){console.log(T)}let h="",f=new FileReader;
1f.readAsDataURL(m),f.onload=()=>{h=f.result.toString().split(",")[1],t._userService.uploadUserAvatar({avatarName:n,avatarData:h}).subscribe(P=>{t._userService.getUserProfileData().subscribe(ge=>{t.userProfile=ge.responseBody,t.sessionStorage.setObject("userProfile",t.userProfile),t.avatarImageUrl=t.userProfile.avatar;let ue=t.sessionStorage.getObject("userMilestones");p.find(ue,function(ee){return"UPLOADED_USER_AVATAR"===ee.milestoneName||"SET_DISPLAYNAME"===ee.milestoneName||"SAVED_LANDING_PAGE_PREFERENCE"===ee.milestoneName})||t._utilService.setUpdatePrefAvatarDisplaynameMilestoneAchieved(),t._userMilestoneService.saveOrUpdateUserMilestone("UPLOADED_USER_AVATAR",null)}),t.successMsg="Successfully uploaded avatar";let B={event:"upload_useravatar","dlv-user_state_id":"loggedin","dlv-user_id":t._utilService.getLoggedInUserId(),"dlv-org_member":t._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":t._utilService.getLoggedInUserRole(),"dlv-org_id":t._utilService.getLoggedInUserOrgId()};window.dataLayer.push(B)},P=>{t.genericErr=!0,t.genericErrMsg="There was a technical glich while uploading avatar, please try again."})}}})()}uploadAvatar(){let t=this.fileInput.nativeElement;console.log("file input",t);let r="";if(t.files.length>0){this.avatarImageUrl="";let n=new FileReader,s=t.files.item(0).name.replace(/\s/g,"");s=s.replace(/[\])}[{(]/g,""),n.readAsDataURL(t.files.item(0)),n.onload=()=>{r=n.result.toString().split(",")[1],this._userService.uploadUserAvatar({avatarName:s,avatarData:r}).subscribe(h=>{this._userService.getUserProfileData().subscribe(T=>{this.userProfile=T.responseBody,this.sessionStorage.setObject("userProfile",this.userProfile),this.avatarImageUrl=this.userProfile.avatar;let U=this.sessionStorage.getObject("userMilestones");p.find(U,function(P){return"UPLOADED_USER_AVATAR"===P.milestoneName||"SET_DISPLAYNAME"===P.milestoneName||"SAVED_LANDING_PAGE_PREFERENCE"===P.milestoneName})||this._utilService.setUpdatePrefAvatarDisplaynameMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("UPLOADED_USER_AVATAR",null)}),this.successMsg="Successfully uploaded avatar";let f={event:"upload_useravatar","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(f)},h=>{this.genericErr=!0,this.genericErrMsg="There was a technical glich while uploading avatar, please try again."})}}else this.genericErr=!0,this.genericErrMsg="You have not selected any file, please select one."}deleteAvatar(){this._userService.deleteUserAvatar({avatarName:"",avatarData:""}).subscribe(r=>{this._userService.getUserProfileData().subscribe(s=>{this.userProfile=s.responseBody,this.sessionStorage.setObject("userProfile",this.userProfile),this.avatarImageUrl=this.userProfile.avatar}),this.successMsg="Successfully removed avatar";let n={event:"remove_useravatar","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(n)},r=>{this.genericErr=!0,this.genericErrMsg="There was a technical glich while removing avatar, please try again."})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(A.F0),e.Y36(E.ux),e.Y36(S.f),e.Y36(N.K),e.Y36(q.d),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(1&t&&e.Gf(Te,5),2&t){let r;e.iGM(r=e.CRH())&&(i.fileInput=r.first)}},decls:30,vars:23,consts:[[1,"avatar-dialogue-container"],["id","editavtar-close","mat-button","",1,"close-cross",3,"click"],["mat-dialog-title",""],[1,"user-image"],["src","./assets/images/icon_person_outline_white_48px.svg","alt","Account holder's image",4,"ngIf"],["alt","Account holder's image",3,"src",4,"ngIf"],["class","success-msg",4,"ngIf"],[4,"ngIf"],[1,"file-upload-section"],["for","image"],["type","file","accept","image/png, image/jpeg, image/jpg","id","image",1,"file-selector",3,"change"],["fileInput",""],["class","cropper-tools-container",4,"ngIf"],["class","cropper-rotation-sli
1der","matTooltip","Rotate image.","tickInterval","30","min","0","max","359","aria-label","degrees",3,"matTooltipShowDelay","matTooltipHideDelay","thumbLabel","ngModel","ngModelChange","change",4,"ngIf"],["format","png",1,"image-cropper-container",3,"imageChangedEvent","maintainAspectRatio","containWithinAspectRatio","aspectRatio","resizeToWidth","cropperMinWidth","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","imageCropped","imageLoaded","cropperReady","loadImageFailed"],[1,"buttons-container"],["id","editavtar-uploadnewimg","mat-raised-button","",3,"disabled","click"],["id","editavtar-delimg","mat-raised-button","",3,"click",4,"ngIf"],["src","./assets/images/icon_person_outline_white_48px.svg","alt","Account holder's image"],["alt","Account holder's image",3,"src"],[1,"success-msg"],[1,"cropper-tools-container"],["matTooltip","Rotate 90 deg. Right","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Rotate 90 deg. Left","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Flip Horizontal","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Flip Vertical","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Contain Within Aspect Ratio","class","croppertool-button","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["matTooltip","Fill Aspect Ratio","class","croppertool-button","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["matTooltip","Re
1set Image","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Zoom Out","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Zoom In","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Contain Within Aspect Ratio","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Fill Aspect Ratio","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Rotate image.","tickInterval","30","min","0","max","359","aria-label","degrees",1,"cropper-rotation-slider",3,"matTooltipShowDelay","matTooltipHideDelay","thumbLabel","ngModel","ngModelChange","change"],[1,"custom-cropped-image",3,"src"],["id","editavtar-delimg","mat-raised-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return i.close()}),e.TgZ(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"h1",2),e._uU(5,"Edit Avatar Image"),e.qZA(),e.TgZ(6,"div",3),e.YNc(7,xe,1,0,"img",4),e.YNc(8,Ae,1,1,"img",5),e.qZA(),e.YNc(9,Ue,2,1,"div",6),e.YNc(10,Ze,2,1,"mat-error",7),e.TgZ(11,"div",8)(12,"label",9),e._uU(13,"Upload & Adjust Avatar image:"),e.qZA(),e._UZ(14,"br"),e.TgZ(15,"input",10,11),e.NdJ("change",function(n){return i.validateSelectedImage(n),i.fileChangeEvent(n)}),e.qZA(),e.YNc(17,we,24,16,"div",12),e.YNc(18,Me,2,0,"p",7),e.YNc(19,Ie,2,4,"mat-slider",13),e._UZ(20,"br")(21,"br"),e.TgZ(22,"image-cropper",14),e.NdJ("imageCropped",function(n){return i.imageCropped(n)})("imageLoaded",function(){return i.imageLoaded()})("cropperReady",function(n){return i.cropperReady(n)})("loadImageFailed",function(){return i.loadImageFailed()}),e.qZA(),e.YNc(23,De,4,3,"div",7),e.qZA(),e.TgZ(24,"div",15)(25,"button",16),e.NdJ("click",function(){return i.uploadCroppedAvatar()}),e._uU(26," Update New Image "),e.qZA(),e.YNc(27,Se,2,0,"button",17),e.qZA(),e._UZ(28,"br"),e.qZA(),e._UZ(29,"br")),2&t&&(e.xp6(7),e.Q6J("ngIf",!i.avatarImageUrl),e.xp6(1),e.Q6J("ngIf",i.avatarImageUrl),e.xp6(1),e.Q6J("ngIf",i.successMsg),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(7),e.Q6J("ngIf",i.showCropper),e.xp6(1),e.Q6J("ngIf",i.showCropper),e.xp6(1),e.Q6J("ngIf",i.showCropper),e.xp6(3),e.Udp("display",i.showCropper?null:"none"),e.Q6J("imageChangedEvent",i.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",i.containWithinAspectRatio)("aspectRatio",1)("resizeToWidth",150)("cropperMinWidth",100)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",i.canvasRotation)("transform",i.transform)("alignImage","left"),e.xp6(1),e.Q6J("ngIf",i.showCropper),e.xp6(2),e.Q6J("disabled",!i.showCropper),e.xp6(2),e.Q6J("ngIf",i.avatarImageUrl))},dependencies:[v.O5,y.TO,Z.lW,u.uh,I.Hw,pe.pH,oe.gM,l.JJ,l.On,w.ap],styles:["#uploadedImage[_ngcontent-%COMP%]{background-position:center center;background-repeat:no-repeat;width:200px;right:0;margin:auto;height:200px;background-size:contain}.file-upload-section[_ngcontent-%COMP%]{border:1px solid gray;overflow:auto;padding:20px 0}.file-upload-section[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around;align-items:center;margin:0 auto;overflow:auto}.avatar-dialogue-container[_ngcontent-%COMP%]{height:calc(100% - 20px);display:flex;justify-content:space-between;flex-direction:column;width:100%}.user-image[_ngcontent-%COMP%]{width:100px;height:100px;box-sizing:border-box;margin:10px auto;display:flex;justify-content:space-around;text-align:center;flex-direction:column;position:relative}.user-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;box-sizing:border-box;background-color:#d3d3d3}.image-cropper-container[_ngcontent-%COMP%]{width:200px!important;overflow:hidden!important}.custom-cropped-image[_ngcontent-%COMP%]{width:100px!important;height:100px;border-radius:50%}.buttons-container[_ngcontent-%COMP%], .cropper-tools-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-around!important;align-items:center!important;padding:10px!important;margin:20px 0!important}.croppertool-button[_ngcontent-%COMP%]{background:transparent;margin:3px}
1.cropper-rotation-slider[_ngcontent-%COMP%]{margin:8px;width:200px}"]}),o})();var L=g(93990),k=g(284),Ne=g(56709),H=g(51572);function Re(o,a){if(1&o&&(e.TgZ(0,"p"),e._uU(1," The charge for the additional users for REMAINDER of the CURRENT billing period will be prorated. Prorated Amount will be "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e._uU(4),e.qZA()),2&o){const t=e.oxw(2);e.xp6(3),e.Oqu(t.proratedAmount),e.xp6(1),e.AsE(" for period ( ",t.prorationStartDate," to ",t.prorationEndDate," ) will be charged soon. ")}}function ke(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",2)(1,"h3"),e._uU(2,"Successfully updated current subscription with total of "),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5," users "),e.qZA(),e.YNc(6,Re,5,3,"p",3),e.TgZ(7,"p"),e._uU(8),e.TgZ(9,"strong"),e._uU(10),e.qZA()(),e._UZ(11,"br")(12,"br")(13,"br")(14,"br"),e.TgZ(15,"button",4),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.close())}),e._uU(16,"Done"),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(4),e.Oqu(t.totalUserCountForSubscription),e.xp6(2),e.Q6J("ngIf",t.showProration),e.xp6(2),e.AsE("Total Subscription Amount for NEXT billing invoice period ( ",t.nextInvoiceStartDate," to ",t.nextInvoiceEndDate," ) will be "),e.xp6(2),e.hij(" ",t.totalAmountWithoutProrate," ")}}function qe(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function Le(o,a){if(1&o&&(e.TgZ(0,"div",18),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.successMsg," ")}}function Fe(o,a){1&o&&e._UZ(0,"mat-spinner",20)}function Je(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.previewSubscriptionUpdate())}),e.YNc(1,Fe,1,0,"mat-spinner",17),e._uU(2,"Calculate fees "),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.previewLoading)}}function Ye(o,a){if(1&o&&(e.TgZ(0,"p"),e._uU(1," The charge for the additional users for REMAINDER of the CURRENT billing period will be prorated. Prorated Amount will be "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e._uU(4),e.qZA()),2&o){const t=e.oxw(3);e.xp6(3),e.Oqu(t.proratedAmount),e.xp6(1),e.AsE(" for period ( ",t.prorationStartDate," to ",t.prorationEndDate," ) will be charged soon. ")}}function Be(o,a){if(1&o&&(e.TgZ(0,"div")(1,"p"),e._uU(2,"Total Users for your Account after this purchase = "),e.TgZ(3,"strong"),e._uU(4),e.qZA()(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.YNc(7,Ye,5,3,"p",3),e.TgZ(8,"p"),e._uU(9),e.TgZ(10,"strong"),e._uU(11),e.qZA()()()),2&o){const t=e.oxw(2);e.xp6(4),e.Oqu(t.totalUserCountForSubscription),e.xp6(2),e.hij("Next Payment Date: ",t.nextPaymentAttemptDate,""),e.xp6(1),e.Q6J("ngIf",t.showProration),e.xp6(2),e.AsE("Total Subscription Amount for NEXT billing invoice period ( ",t.nextInvoiceStartDate," to ",t.nextInvoiceEndDate," ) will be "),e.xp6(2),e.hij(" ",t.totalAmountWithoutProrate," ")}}function Ge(o,a){1&o&&e._UZ(0,"mat-spinner",20)}function Qe(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",5)(1,"h3",6),e._uU(2),e.qZA(),e.TgZ(3,"form",7),e.YNc(4,qe,2,1,"mat-error",3),e.YNc(5,Le,2,1,"div",8),e.TgZ(6,"p"),e._uU(7),e.qZA(),e.TgZ(8,"mat-form-field",9)(9,"input",10),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.quantity=r)})("focusout",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.showPurchaseUser=!1)}),e.qZA()(),e.YNc(10,Je,3,1,"button",11),e.YNc(11,Be,12,6,"div",3),e.TgZ(12,"mat-checkbox",12),e.NdJ("change",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.agreeCheck=!r.agreeCheck)}),e._uU(13,"I understand and AGREE with these charges "),e.qZA(),e.TgZ(14,"p",13),e._uU(15,"We will send you an email confirmation of this purchase once the transaction is processed. Thank you."),e.qZA(),e.TgZ(16,"mat-dialog-actions",14)(17,"button",15),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.close())}),e._uU(18,"Cancel"),e.qZA(),e.TgZ(19,"button",16),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.buyUsers())}),e.YNc(20,Ge,1,0,"mat-spinner",17),e._uU(21,"Purchase Users "),e.qZA()()()()}if(2&o){const t=e.oxw();e.xp6(2),e.hij("Buy Users for ",t.orgName,""),e.xp6(2),e.Q6J("ngIf",t.genericErr),e.xp6(1),e.Q6J("ngIf",t.isSuccess),e.xp6(2),e.hij(" Additional users can be added to your subscription account at ",t.formattedPerUserPrice," /User/Month."),e.xp6(2),e.Q6J("ngModel",t.quantity),e.xp6(1),e.Q6J("ngIf",!t.showPurchaseUser),e.xp6(1),e.Q6J("ngIf",t.showPurchaseUser),e.xp6(8),e.Q6J("disabled",!t.agreeCheck),e.xp6(1),e.Q6J("ngIf",t.loading)}}let He=(()=>{class o{constructor(t,i,r,n,s){this.ngZone=t,this.dialogRef=i,this.data=r,this._userService=n,this.genericErrMsg="",this.genericErr=!1,this.isSuccess=!1,this.successMsg="",this.agreeCheck=!1,this.orgName="",this.userAccess="",this.loading=!1,this.showProration=!1,this.showPurchaseUser=!1,this.previewLoading=!1,this.paymentConfirmationNumber="",this.sessionStorage=s,this.orgName=r.orgName,this.userAccess=r.userAccess,this.orgId=r.orgId,this.currentPurchasedUserCount=r.currentPurchasedUserCount,this.perUserPrice=r.perUserPrice,this.formattedPerUserPrice=L(r.perUserPrice).format("$0.00")}calcualteCharge(){this.purchasedUserPrice=this.perUserPrice*this.quantity,this.finalPurchasePrice=L(this.purchasedUserPrice).format("$0.00"),this.showPurchaseUser=!0}previewSubscriptionUpdate(){this.previewLoading=!0,this._userService.previewSubscriptionUpdate({orgName:this.orgName,orgId:this.orgId,userAccess:this.userAccess,purchaseUserCount:this.currentPurchasedUserCount+this.quantity}).subscribe(r=>{this.orgSubscriptionUpdateResponse=r.responseBody,this.proratedAmount=L(this.orgSubscriptionUpdateResponse.proratedAmount).format("$0.00"),this.proratedAmountWithoutFormat=this.orgSubscriptionUpdateResponse.proratedAmount,0!=this.orgSubscriptionUpdateResponse.proratedAmount&&(this.showProration=!0),this.nextPaymentAttemptDate=this.orgSubscriptionUpdateResponse.nextPaymentAttemptDay,this.totalAmountWithoutProrate=L(this.orgSubscriptionUpdateResponse.totalAmountWithoutProrate).format("$0.00"),this.totalAmountWithoutProrateNoFormat=this.totalUserCountForSubscription=this.orgSubscriptionUpdateResponse.totalOrgUserCount,this.prorationStartDate=this.orgSubscriptionUpdateResponse.prorationStartDate,this.prorationEndDate=this.orgSubscriptionUpdateResponse.prorationEndDate,this.nextInvoiceStartDate=this.orgSubscriptionUpdateResponse.nextInvoiceStartDate,this.nextInvoiceEndDate=this.orgSubscriptionUpdateResponse.nextInvoiceEndDate,this.prorationDate=this.orgSubscriptionUpdateResponse.prorationDate,this.showPurchaseUser=!0,this.previewLoading=!1},r=>{this.previewLoading=!1,this.showPurchaseUser=!1})}buyUsers(){this.loading=!0;var t=this.currentPurchasedUserCount+this.quantity;this.totalUserCountForSubscription=t,this.prorationDate||(this.prorationDate=(new Date).getTime()/1e3),this._userService.purchaseUsersForOrgSubscription({orgName:this.orgName,orgId:this.orgId,userAccess:this.userAccess,totalUserCount:t,currentUserCount:this.currentPurchasedUserCount,purchaseUserCount:this.quantity,prorationDate:this.prorationDate,proratedAmount:this.proratedAmountWithoutFormat,prorationStartDate:this.prorationStartDate,prorationEndDate:this.prorationEndDate}).subscribe(r=>{var n;this.orgSubscriptionUpdateResponse=r.responseBody,this.proratedAmount=L(this.orgSubscriptionUpdateResponse.proratedAmount).format("$0.00"),0!=this.orgSubscriptionUpdateResponse.proratedAmount&&(this.showProration=!0),this.prorationStartDate=this.orgSubscriptionUpdateResponse.prorationStartDate,this.prorationEndDate=this.orgSubscriptionUpdateResponse.prorationEndDate,this.totalAmountWithoutProrate=L(this.orgSubscriptionUpdateResponse.totalAmountWithoutProrate).format("$0.00"),this.nextInvoiceStartDate=this.orgSubscriptionUpdateResponse.nextInvoiceStartDate,this.nextInvoiceEndDate=this.orgSubscriptionUpdateResponse.nextInvoiceEndDate,this.isSuccess=!0,n=this.sessionStorage.getObject("userProfile");var s=this.orgName,c=p.filter(n.userOrg,function(d){return d.orgName===s});c.length>0&&(c[0].purchasedUserCount=t),this.sessionStorage.setObject("userProfile",n),this._userService.setTotalPurchasedUserCount(t),this.loading=!1},r=>{this.loading=!1,this.genericErr=!0,this.genericErrMsg="Unexpected error occurred while purchasing more users for an organization. Please try again after some time."})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI),e.Y36(N.K),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:2,vars:2,consts:[["class","dialogue-container buy-user-confirmation buy-user-dialog",4,"ngIf"],["class","dialogue-container buy-user-dialog",4,"ngIf"],[1,"dialogue-container","buy-user-confirmation","buy-user-dialog"],[4,"ngIf"],["id","buyorgusr-done","mat-raised-button","","color","accent",3,"click"],[1,"dialogue-container","buy-user-dialog"],["mat-dialog-title",""],["name","form","novalidate",""],["class","success-msg",4,"ngIf"],[1,"dialogue-input-fields"],["matInput","","id","num-Add-user-input","placeholder","Enter Number of additional users. i.e. 10","type","number","name","quantity","value","1","required","",3,"ngModel","ngModelChange","focusout"],["id","buyorgusr-calculatefees","class","user-calculate","type","button","mat-stroked-button","",3,"click",4,"ngIf"],[1,"buy-user-agree-checkbox",3,"change"],[1,"gray-text"],[1,"dialogue-buttons"],["
1id","buyorgusr-cancl","type","button","mat-button","",3,"click"],["id","buyorgusr-purchaseusers","type","button","mat-raised-button","","cdkFocusInitial","","color","accent",3,"disabled","click"],["class","app-spinner",4,"ngIf"],[1,"success-msg"],["id","buyorgusr-calculatefees","type","button","mat-stroked-button","",1,"user-calculate",3,"click"],[1,"app-spinner"]],template:function(t,i){1&t&&(e.YNc(0,ke,17,5,"div",0),e.YNc(1,Qe,22,9,"div",1)),2&t&&(e.Q6J("ngIf",i.isSuccess),e.xp6(1),e.Q6J("ngIf",!i.isSuccess))},dependencies:[v.O5,y.TO,y.KE,k.Nt,Z.lW,Ne.oG,u.uh,u.H8,H.Ou,l._Y,l.Fj,l.wV,l.JJ,l.JL,l.Q7,l.On,l.F],styles:[".user-calculate[_ngcontent-%COMP%]{margin-bottom:10px}.buy-user-confirmation[_ngcontent-%COMP%]{position:relative}.buy-user-confirmation[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 auto;bottom:10px;right:30px;position:absolute}"]}),o})();var ze=g(59906),ie=g(71948);function We(o,a){if(1&o&&(e.TgZ(0,"div",2)(1,"h3"),e._uU(2,"Successfully purchased "),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5," credits for activity record. "),e.qZA(),e.TgZ(6,"p"),e._uU(7," Your account has been charged for amount "),e.TgZ(8,"strong"),e._uU(9),e.qZA()(),e.TgZ(10,"p"),e._uU(11),e.qZA()()),2&o){const t=e.oxw();e.xp6(4),e.Oqu(t.purchaseTotalCredits),e.xp6(5),e.Oqu(t.finalPurchasePrice),e.xp6(2),e.hij("Your confirmation number: ",t.paymentConfirmationNumber,"")}}function Ke(o,a){if(1&o&&(e.TgZ(0,"mat-radio-button",21),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.viewValue," ")}}function je(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(t.discountTerm)}}function Ve(o,a){1&o&&e._UZ(0,"mat-spinner",22)}function $e(o,a){1&o&&(e.TgZ(0,"p"),e._uU(1,"Your discount code is successfully applied."),e.qZA())}function Xe(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(t.discountCodeMsg)}}function et(o,a){if(1&o&&(e.TgZ(0,"div")(1,"p"),e._uU(2,"Total credit being purchased: "),e.TgZ(3,"strong"),e._uU(4),e.qZA()(),e.TgZ(5,"p"),e._uU(6,"Final Purchase price: "),e.TgZ(7,"strong"),e._uU(8),e.qZA()()()),2&o){const t=e.oxw(2);e.xp6(4),e.Oqu(t.purchaseTotalCredits),e.xp6(4),e.Oqu(t.finalPurchasePrice)}}function tt(o,a){1&o&&e._UZ(0,"mat-spinner",22)}function ot(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function it(o,a){if(1&o&&(e.TgZ(0,"div",23),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.successMsg," ")}}const me=function(){return{standalone:!0}};function rt(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",3)(1,"h1",4),e._uU(2),e.qZA(),e.TgZ(3,"form",5)(4,"p",6),e._uU(5,"AR credits can be pre-purchased in multiples of either 200 OR 2000. i.e. If you want to buy 1000, just select 200 Credit option and enter quantity of 5. If you want to by 6000, select 2000 credit option and enter quantity of 3. "),e.qZA(),e.TgZ(6,"mat-radio-group",7),e.NdJ("change",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.calcualteCharge())})("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.arCreditPurchaseSelectedOption=r)}),e.YNc(7,Ke,2,2,"mat-radio-button",8),e.qZA(),e.TgZ(8,"mat-form-field",9)(9,"input",10),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.quantity=r)})("focusout",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.calcualteCharge())}),e.qZA(),e.TgZ(10,"mat-hint"),e._uU(11,"To buy 1000 cr, pick 200 cr above & enter 5."),e.qZA()(),e.TgZ(12,"mat-label",11)(13,"strong"),e._uU(14,"Discount Code"),e.qZA()(),e.TgZ(15,"mat-form-field",12)(16,"input",13),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.discountCode=r)}),e.qZA(),e.YNc(17,je,2,1,"mat-error",14),e.qZA(),e.TgZ(18,"button",15),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.applyDiscountCodeOnCreditPurchase())}),e.YNc(19,Ve,1,0,"mat-spinner",16),e._uU(20,"Apply Code "),e.qZA(),e.YNc(21,$e,2,0,"p",14),e.YNc(22,Xe,2,1,"mat-error",14),e.YNc(23,et,9,2,"div",14),e.TgZ(24,"mat-dialog-actions",17)(25,"button",18),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.close())}),e._uU(26,"Cancel"),e.qZA(),e.TgZ(27,"button",19),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.buyActivityRecordCredits())}),e.YNc(28,tt,1,0,"mat-spinner",16),e._uU(29,"Purchase Credits "),e.qZA()(),e._UZ(30,"br"),e.YNc(31,ot,2,1,"mat-error",14),e.YNc(32,it,2,1,"div",20),e._UZ(33,"br")(34,"br"),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(2),e.hij("Buy Activity Record Credits for ",t.orgName,""),e.xp6(4),e.Q6J("ngModel",t.arCreditPurchaseSelectedOption)("ngModelOptions",e.DdM(16,me)),e.xp6(1),e.Q6J("ngForOf",t.arCreditsPurchaseOptions),e.xp6(2),e.Q6J("ngModel",t.quantity),e.xp6(7),e.Q6J("ngModelOptions",e.DdM(17,me))("ngModel",t.discountCode),e.xp6(1),e.Q6J("ngIf",!t.discountCodeError),e.xp6(2),e.Q6J("ngIf",t.validateDiscountLoading),e.xp6(2),e.Q6J("ngIf",t.discountCodeSuccessMsg),e.xp6(1),e.Q6J("ngIf",t.discountCodeError),e.xp6(1),e.Q6J("ngIf",t.showPurchaseCreditCount),e.xp6(4),e.Q6J("disabled",t.buyCredits),e.xp6(1),e.Q6J("ngIf",t.buyCredits),e.xp6(3),e.Q6J("ngIf",t.genericErr),e.xp6(1),e.Q6J("ngIf",t.isSuccess)}}let nt=(()=>{class o{constructor(t,i,r,n,s,c,d){this.ngZone=t,this.dialogRef=i,this.data=r,this._userService=n,this._userMilestoneService=s,this._subscriptionService=c,this.genericErrMsg="",this.genericErr=!1,this.isSuccess=!1,this.successMsg="",this.orgName="",this.userAccess="",this.arCreditPurchaseSelectedOption="10Cent",this.arCreditsPurchaseOptions=[{value:"10Cent",viewValue:"$0.10 per credit x 200",selected:"true"},{value:"7Cent",viewValue:"$0.07 per credit x 2000",selected:"false"}
1],this.defaultCreditCount=200,this.purchaseTotalCredits=0,this.showPurchaseCreditCount=!1,this.discountCode="",this.discountCodeSuccessMsg=!1,this.discountCodeError=!1,this.discountCodeMsg="",this.discountTerm="",this.validateDiscountLoading=!1,this.paymentConfirmationNumber="",this.buyCredits=!1,this.sessionStorage=d,this.orgName=r.orgName,this.userAccess=r.userAccess,this.orgId=r.orgId,this.accumulatedArCredits=r.accumulatedArCredits}buyActivityRecordCredits(){this.buyCredits=!0,this._userService.purchaseActivityRecordCreditsForOrg({orgName:this.orgName,orgId:this.orgId,userAccess:this.userAccess,purchaseCredits:this.purchaseTotalCredits,finalPurchasePrice:this.finalPriceNoFormat,discountCode:this.discountCode,discountAmount:this.discountAmount}).subscribe(i=>{var r;this.isSuccess=!0,this._userMilestoneService.saveOrUpdateUserMilestone("PURCHASED_ACTIVITY_RECORD_CREDITS",null),this.paymentConfirmationNumber=i.responseBody.paymentConfirmationNumber,r=this.sessionStorage.getObject("userProfile");var n=this.orgName,s=p.filter(r.userOrg,function(c){return c.orgName===n});s.length>0&&(s[0].accumulatedArCredits=i.responseBody.accumulatedArCredits),this.sessionStorage.setObject("userProfile",r),this._userService.setTotalArCredits(i.responseBody.accumulatedArCredits),this.buyCredits=!1},i=>{this.buyCredits=!1,this.genericErr=!0,this.genericErrMsg="Unexpected error occurred while purchasing activity record credits. Please try again after some time."})}calcualteCharge(){var t=.1;"7Cent"===this.arCreditPurchaseSelectedOption?(t=.07,this.defaultCreditCount=2e3):this.defaultCreditCount=200,this.purchaseTotalCredits=this.defaultCreditCount*this.quantity,this.purchaseCreditPrice=t*this.defaultCreditCount*this.quantity,this.finalPurchasePrice=L(this.purchaseCreditPrice).format("$0.00"),this.finalPriceNoFormat=this.purchaseCreditPrice,this.showPurchaseCreditCount=!0}applyDiscountCodeOnCreditPurchase(){this.discountCodeSuccessMsg=!1,this.validateDiscountLoading=!0,this.showPurchaseCreditCount=!0,this._subscriptionService.validateDiscountCode(this.discountCode).subscribe(t=>{this.discountBean=t.responseBody,this.discountBean.isValid?(this._calculateDiscount(),this.discountCodeSuccessMsg=!0):(this.discountCodeError=!0,this.discountCodeMsg="Invalid discount code."),this.validateDiscountLoading=!1},t=>{this.discountCodeError=!0,this.discountCodeMsg=t&&t.error?t.error.statusMessage:"",this.validateDiscountLoading=!1})}_calculateDiscount(){this.discountCodeError=!1,this.discountBean.amountOff?(this.discountAmount=this.discountBean.amountOff/100,this.finalPurchasePrice=L(this.purchaseCreditPrice-this.discountAmount).format("$0.00"),this.finalPriceNoFormat=this.purchaseCreditPrice-this.discountAmount,this.discountTerm=null!=this.discountBean.durationInMonths?"$"+this.discountAmount+" for "+this.discountBean.durationInMonths+" months":"$"+this.discountAmount+" off one time only"):this.discountBean.percentOff&&(this.discountAmount=this.purchaseCreditPrice*(this.discountBean.percentOff/100),this.finalPurchasePrice=L(this.purchaseCreditPrice-this.discountAmount).format("$0.00"),this.finalPriceNoFormat=this.purchaseCreditPrice-this.discountAmount,this.discountTerm=null!=this.discountBean.durationInMonths?"%"+this.discountBean.percentOff+" for "+this.discountBean.durationInMonths+" months":"%"+this.discountBean.percentOff+" off one time only"),this.formattedDiscountAmount=L(this.discountAmount).format("$0.0")}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI),e.Y36(N.K),e.Y36(q.d),e.Y36(ze.F),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:2,vars:2,consts:[["class","dialogue-container",4,"ngIf"],["class","dialogue-container buy-credits-modal",4,"ngIf"],[1,"dialogue-container"],[1,"dialogue-container","buy-credits-modal"],["mat-dialog-title","",1,"buy-credits-h1"],["name","form","novalidate",""],[1,"small-grey-text","zero-vertical-margins"],["name","arCreditPurchaseSelectedOption",1,"common-radio-group",3,"ngModel","ngModelOptions","change","ngModelChange"],["class","common-radio-button",3,"value",4,"ngFor","ngForOf"],[1,"dialogue-input-fields"],["matInput","","placeholder","Enter quantity","type","number","name","quantity","value","1","required","",3,"ngModel","ngModelChange","focusout"],[1,"block-item"],[1,"acct-fields-pair","discount-code"],["matInput","","placeholder","XXXXXXXXXX","type","text","name","discount",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["id","buyactyrecord-applycode","mat-button","",1,"acct-fields-pair",3,"click"],["class","app-spinner",4,"ngIf"],[1,"dialogue-buttons"],["
1id","buyactyrecord-cancl","type","button","mat-button","",3,"click"],["id","buyactyrecord-purchasecredits","type","button","mat-raised-button","","cdkFocusInitial","","color","accent",3,"disabled","click"],["class","success-msg",4,"ngIf"],[1,"common-radio-button",3,"value"],[1,"app-spinner"],[1,"success-msg"]],template:function(t,i){1&t&&(e.YNc(0,We,12,3,"div",0),e.YNc(1,rt,35,18,"div",1)),2&t&&(e.Q6J("ngIf",i.isSuccess),e.xp6(1),e.Q6J("ngIf",!i.isSuccess))},dependencies:[v.sg,v.O5,y.TO,y.KE,y.bx,y.hX,k.Nt,Z.lW,u.uh,u.H8,H.Ou,ie.VQ,ie.U0,l._Y,l.Fj,l.wV,l.JJ,l.JL,l.Q7,l.On,l.F],encapsulation:2}),o})();var C=g(30671),W=g(64918),at=g(24631),he=g(55829),K=g(3238),se=g(98739),j=g(84385),V=g(96308);const st=["csvImportInput"];function lt(o,a){if(1&o&&(e.TgZ(0,"div")(1,"p")(2,"span",8),e._uU(3),e.qZA(),e.TgZ(4,"span",8),e._uU(5),e.qZA(),e.TgZ(6,"span",8),e._uU(7),e.qZA(),e.TgZ(8,"span",8),e._uU(9),e.qZA()()()),2&o){const t=a.$implicit;e.xp6(3),e.Oqu(t.emailId),e.xp6(2),e.Oqu(t.firstName),e.xp6(2),e.Oqu(t.lastName),e.xp6(2),e.Oqu(t.roleName)}}function ct(o,a){if(1&o&&(e.TgZ(0,"div",6)(1,"p",7),e._uU(2),e.qZA(),e.TgZ(3,"p")(4,"span",8)(5,"strong"),e._uU(6,"EMAIL"),e.qZA()(),e.TgZ(7,"span",8)(8,"strong"),e._uU(9,"FIRST"),e.qZA()(),e.TgZ(10,"span",8)(11,"strong"),e._uU(12,"LAST"),e.qZA()(),e.TgZ(13,"span",8)(14,"strong"),e._uU(15,"ROLE"),e.qZA()()(),e.YNc(16,lt,10,4,"div",9),e.qZA()),2&o){const t=e.oxw();e.xp6(2),e.Oqu(t.addUserMsg),e.xp6(14),e.Q6J("ngForOf",t.addUserSuccessList)}}function dt(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.csvFileLoadErrorMsg," ")}}function gt(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h4"),e._uU(2,"Adding New Users"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"You can add new user to your organization in following two ways."),e.qZA(),e.TgZ(5,"div",11)(6,"p",12),e._uU(7," 1. "),e.TgZ(8,"strong"),e._uU(9,"Add Single User"),e.qZA(),e._uU(10,": If a user already has the DeciZone Free account, you can use their account email address here to add one user at a time to your organization. You can also ask any new user to go ahead and open a free account with DeciZone using your company/approved email address if they don't already have an account. "),e.qZA(),e.TgZ(11,"button",13),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.addUser())}),e._uU(12," Add New User "),e.qZA()(),e.TgZ(13,"div",14)(14,"p",12),e._uU(15," 2. "),e.TgZ(16,"strong"),e._uU(17,"Add Multiple Users"),e.qZA(),e._uU(18,": You can add multiple users automatically to your organization by importing a table of users. Download this "),e.TgZ(19,"a",15),e._uU(20,"DeciZone-Org-Users-Import-Template.csv"),e.qZA(),e._uU(21," template, add all your users to the table and upload/import that table right here. Please make sure that inside the template file the column headings are saved as 'emailAddress', 'firstName', 'lastName' and 'role'. For the 'role' column for each user, you can use only the values 'ORG_VIEWER', 'ORG_CREATOR', 'ORG_AUTHOR' or 'ORG_EDITOR'. Please note that any other value in this column will be ignored and the user will be created with an 'ORG_VIEWER' role instead - you can later change its role manually to some other role. Once you upload this file, you will be able to preview all users one more time before you confirm creating all users in your organization. After you confirm creating those users, DeciZone will send each user an email with a unique link that they will need to click to accept your invitation to join your DeciZone organization. "),e.qZA(),e._UZ(22,"br"),e.YNc(23,dt,2,1,"mat-error",5),e.TgZ(24,"input",16,17),e.NdJ("change",function(r){e.CHM(t);const n=e.oxw();return r.stopPropagation(),e.KtG(n.loadOrgUserCsvFile(r))}),e.qZA(),e._UZ(26,"br"),e.TgZ(27,"p",12)(28,"strong"),e._uU(29,"NOTE"),e.qZA(),e._uU(30,": Please remind the new user(s) to look for a notification email from DeciZone in their email Inbox/Junk/Spam folders. This email will have a invitation link that will expire in 7 days. "),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(23),e.Q6J("ngIf",t.csvFileLoadErrorMsg)}}function ut(o,a){if(1&o&&(e.TgZ(0,"mat-error",18),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.userLimitError," ")}}function _t(o,a){1&o&&(e.TgZ(0,"th",38),e._uU(1," EmailAddress "),e.qZA())}function pt(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Email Address is required. (Max 50 characters) "),e.qZA())}function mt(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Email Address cannot be greater than 50 characters. "),e.qZA())}function ht(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Email format is invali
1d. "),e.qZA())}function ft(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,pt,2,0,"mat-error",5),e.YNc(2,mt,2,0,"mat-error",5),e.YNc(3,ht,2,0,"mat-error",5),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.controls.emailAddress.errors.required),e.xp6(1),e.Q6J("ngIf",t.controls.emailAddress.errors.maxlength),e.xp6(1),e.Q6J("ngIf",t.controls.emailAddress.errors.pattern)}}function Ct(o,a){1&o&&(e.TgZ(0,"div"),e._uU(1," User is already part of your organization. We will ignore this row. "),e.qZA())}function vt(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.controls.validationMessage.value,' Click "Delete" icon if you do not want to add this user, otherwise we will add user to your organization. ')}}function yt(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"td",39)(1,"mat-form-field",40)(2,"input",41),e.NdJ("change",function(){const n=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.validateEmailAddress(n.controls.emailAddress))}),e.qZA()(),e.YNc(3,ft,4,3,"div",5),e.YNc(4,Ct,2,0,"div",5),e.YNc(5,vt,2,1,"mat-error",5),e.qZA()}if(2&o){const t=a.$implicit,i=e.oxw(2);e.xp6(2),e.Q6J("formControl",t.controls.emailAddress),e.xp6(1),e.Q6J("ngIf",t.controls.emailAddress.errors&&(i.submitted||t.controls.emailAddress.dirty||t.controls.emailAddress.touched)),e.xp6(1),e.Q6J("ngIf",t.controls.orgUser.value&&!1===t.controls.validStatus.value),e.xp6(1),e.Q6J("ngIf",!1===t.controls.orgUser.value&&!1===t.controls.validStatus.value)}}function bt(o,a){1&o&&(e.TgZ(0,"th",38),e._uU(1," First Name "),e.qZA())}function Tt(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," First Name is required. "),e.qZA())}function xt(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," First Name cannot be greater than 20 characters. "),e.qZA())}function At(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," First Name can contain only alphabets or hyphen '-', but no numbers and whitespace. (Max 20 characters) "),e.qZA())}function Ut(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Tt,2,0,"mat-error",5),e.YNc(2,xt,2,0,"mat-error",5),e.YNc(3,At,2,0,"mat-error",5),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.controls.firstName.errors.required),e.xp6(1),e.Q6J("ngIf",t.controls.firstName.errors.maxlength),e.xp6(1),e.Q6J("ngIf",t.controls.firstName.errors.pattern)}}function Zt(o,a){if(1&o&&(e.TgZ(0,"td",39)(1,"mat-form-field",40),e._UZ(2,"input",42),e.qZA(),e.YNc(3,Ut,4,3,"div",5),e.qZA()),2&o){const t=a.$implicit,i=e.oxw(2);e.xp6(2),e.Q6J("formControl",t.controls.firstName),e.xp6(1),e.Q6J("ngIf",t.controls.firstName.errors&&(i.submitted||t.controls.firstName.dirty||t.controls.firstName.touched||"INVALID"===t.controls.firstName.status))}}function Pt(o,a){1&o&&(e.TgZ(0,"th",38),e._uU(1,"Last Name"),e.qZA())}function Ot(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Last Name is required. "),e.qZA())}function wt(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Last Name cannot be greater than 20 characters. "),e.qZA())}function Mt(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Last Name can contain only alphabets or hyphen '-', but no numbers and whitespace. (Max 20 characters) "),e.qZA())}function It(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Ot,2,0,"mat-error",5),e.YNc(2,wt,2,0,"mat-error",5),e.YNc(3,Mt,2,0,"mat-error",5),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.controls.lastName.errors.required),e.xp6(1),e.Q6J("ngIf",t.controls.lastName.errors.maxlength),e.xp6(1),e.Q6J("ngIf",t.controls.lastName.errors.pattern)}}function Dt(o,a){if(1&o&&(e.TgZ(0,"td",39)(1,"mat-form-field",40),e._UZ(2,"input",43),e.qZA(),e.YNc(3,It,4,3,"div",5),e.qZA()),2&o){const t=a.$implicit,i=e.oxw(2);e.xp6(2),e.Q6J("formControl",t.controls.lastName),e.xp6(1),e.Q6J("ngIf",t.controls.lastName.errors&&(i.submitted||t.controls.lastName.dirty||t.controls.lastName.touched||"INVALID"===t.controls.lastName.status))}}function St(o,a){1&o&&(e.TgZ(0,"th",38),e._uU(1,"Role"),e.qZA())}function Et(o,a){if(1&o&&(e.TgZ(0,"mat-option",47),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.viewValue," ")}}function Nt(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"td",44)(1,"mat-form-field",40)(2,"mat-select",45),e.NdJ("valueChange",function(r){e.CHM(t);const n=e.oxw(2);return e.KtG(n.defaultUserRole=r)}),e.YNc(3,Et,2,2,"mat-option",46),e.qZA()()()}if(2&o){const t=a.$implicit,i=e.oxw(2);e.Q6J("formGroup",t),e.xp6(2),e.Q6J("formControl",t.controls.role)("value",i.defaultUserRole),e.xp6(1),e.Q6J("ngForOf",i.userOrgRoles)}}function Rt(o,a){1&o&&(e.TgZ(0,"th",38),e._uU(1,"Actions"),e.qZA())}function kt(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"td",39)(1,"button",48),e.NdJ("click",function(r){const s=e.CHM(t).$implicit,c=e.oxw(2);return r.stopPropagation(),e.KtG(c.deleteSelectedRow(s))}),e.TgZ(2,"mat-icon"),e._uU(3,"delete_forever"),e.qZA()()()}2&o&&(e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function qt(o,a){1&o&&e._UZ(0,"tr",49)}const Lt=function(o){return{"highlight-info-row":o}};function Ft(o,a){if(1&o&&e._UZ(0,"tr",50),2&o){const t=a.$implicit;e.ekj("highlight-warn-row",!1===t.controls.orgUser.value&&!1===t.controls.validStatus.value),e.Q6J("ngClass",e.VKq(3,Lt,t.controls.orgUser.value&&!1===t.controls.validStatus.value))}}const Jt=function(){return[5,10,25,100]};function Yt(o,a){1&o&&(e.TgZ(0,"mat-paginator",51),e.NdJ("click",function(i){return i.stopPropagation()}),e.qZA()),2&o&&e.Q6J("pageIndex",0)("pageSize",100)("pageSizeOptions",e.DdM(3,Jt))}function Bt(o,a){1&o&&e._UZ(0,"mat-spinner",52)}function Gt(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"form",19)(2,"div",20)(3,"table",21,22),e.ynx(5,23),e.YNc(6,_t,2,0,"th",24),e.YNc(7,yt,6,4,"td",25),e.BQk(),e.ynx(8,26),e.YNc(9,bt,2,0,"th",24),e.YNc(10,Zt,4,2,"td",25),e.BQk(),e.ynx(11,27),e.YNc(12,Pt,2,0,"th",24),e.YNc(13,Dt,4,2,"td",25),e.BQk(),e.ynx(14,28),e.YNc(15,St,2,0,"th",24),e.YNc(16,Nt,4,4,"td",29),e.BQk(),e.ynx(17,30),e.YNc(18,Rt,2,0,"th",24),e.YNc(19,kt,4,2,"td",25),e.BQk(),e.YNc(20,qt,1,0,"tr",31),e.YNc(21,Ft,1,5,"tr",32),e.qZA()(),e.YNc(22,Yt,1,4,"mat-paginator",33),e.TgZ(23,"p"),e._uU(24," Enter Invitation message to include in your email to each user (max 255 chars) "),e.qZA(),e.TgZ(25,"mat-form-field",34)(26,"textarea",35),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.orgUserInviteMessage=r)}),e._uU(27," "),e.qZA()(),e.TgZ(28,"button",36),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onSubmit())}),e.YNc(29,Bt,1,0,"mat-spinner",37),e._uU(30,"Invite These Users To Join "),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(3),e.Q6J("dataSource",t.orgUsersFormList.controls),e.xp6(17),e.Q6J("matHeaderRowDef",t.orgUsersDisplayColumns)("matHeaderRowDefSticky",!0),e.xp6(1),e.Q6J("matRowDefColumns",t.orgUsersDisplayColumns),e.xp6(1),e.Q6J("ngIf",t.orgUsersFormList&&t.orgUsersFormList.length>0),e.xp6(4),e.Q6J("ngModel",t.orgUserInviteMessage),e.xp6(2),e.Q6J("disabled",t.submitted),e.xp6(1),e.Q6J("ngIf",t.submitted)}}let Qt=(()=>{class o{constructor(t,i,r,n,s,c,d,m,h,f,T,U){this.ngZone=t,this.dialogRef=i,this.router=r,this.cdr=n,this._userMilestoneService=s,this._utilService=c,this.ngxCsvParser=d,this._snackBar=m,this._orgService=h,this._formBuilder=f,this.data=U,this.orgUsersDisplayColumns=["emailAddress","firstName","lastName","role","action"],this.submitted=!1,this.defaultUserRole="ORG_VIEWER",this.userOrgRoles=[{value:"ORG_VIEWER",viewValue:"ORG_VIEWER",selected:"true"},{value:"ORG_AUTHOR",viewValue:"ORG_AUTHOR",selected:"false"},{value:"ORG_EDITOR",viewValue:"ORG_EDITOR",selected:"false"},{value:"ORG_CREATOR",viewValue:"ORG_CREATOR",selected:"false"},{value:"ORG_SUB_ADMIN",viewValue:"ORG_SUB_ADMIN",selected:"false"}],this.csvFileLoadErrorMsg="",this.userLimitError="",this.addUserSuccess=!1,this.addUserMsg="",this.addUserFormError=!1,this.sessionStorage=T,this.orgId=U.orgId,this.orgName=U.orgName,this.userAccess=U.userAccess,this.purchasedUserCount=U.purchasedUserCount,this.currentOrgUserCount=U.currentOrgUserCount,this._utilService.addOrgUserMilestoneAchieved.subscribe(b=>{b&&this._snackBar.open(x.LRm,"Dismiss",{duration:2500})})}ngOnInit(){this.orgUsersFormList=new l.vC([].map(t=>this.createFormGroup(t)))}createFormGroup(t){return new l.nJ({emailAddress:new l.p4((t=t||{emailAddress:"",firstName:"",lastName:"",role:"",displayName:"",orgUser:!1,validStatus:!1,validationMessage:""}).emailAddress,l.kI.compose([l.kI.required,l.kI.maxLength(50),l.kI.pattern("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+[.]+[a-zA-Z0-9-.]+(\\s)*")])),firstName:new l.p4(t.firstName,l.kI.compose([l.kI.required,l.kI.maxLength(20),l.kI.pattern("^[a-zA-Z-]{1,20}$")])),lastName:new l.p4(t.lastName,l.kI.compose([l.kI.required,l.kI.maxLength(20),l.kI.pattern("^[a-zA-Z-]{1,20}$")])),role:new l.p4(t.role?t.role:"ORG_VIEWER"),displayName:new l.p4(t.displayName),orgUser:new l.p4(t.orgUser),validStatus:new l.p4(t.validStatus),validationMessage:new l.p4(t.validationMessage)})}loadOrgUserCsvFile(t){t.stopPropagation(),this.csvFileLoadErrorMsg="";let i=this.csvImportInput.nativeElement;i.files.length>0?this.ngxCsvParser.parse(i.files.item(0),{header:!0,delimiter:","}).pipe().subscribe(n=>{console.log("Result",n);let s=this._generateDisplayName(n);if(console.log("Result",s),this.orgUsersFormList.length+this.currentOrgUserCount+n.length>=this.purchasedUserCount)this.userLimitError="You can add "+(this.purchasedUserCount-this.currentOrgUserCount)+" more users to your organization. Please contact DeciZone Support to be able to add more users.";else{let m=[];p.forEach(n,function(f){m.push(f.emailAddress)});var c=this.sessionStorage.getObject("cattree");this._orgService.validateOrgEmails({emailAddress:m,orgId:this.orgId,userAccess:c[this.orgName].orgUserAccess}).subscribe(f=>{console.log("Validation response",f);let T=s;p.forEach(T,function(b){let P=p.find(f.responseBody.orgUserRegistrationList,function(B){return B.emailId===b.emailAddress});P&&(b.validationMessage=P.validationMessage,b.orgUser=P.orgUser,b.validStatus=P.userRegValidStatus,(p.isEmpty(b.role)||"ORG_SUB_ADMIN"===b.role)&&(b.role="ORG_VIEWER"))}),T.sort(function(b,P){return b.validStatus-P.validStatus}),console.log("updated org users lis",T);let U=this;this.orgUsersFormList&&this.orgUsersFormList.length>
10?(p.forEach(T,function(b){U.orgUsersFormList.push(U.createFormGroup(b))}),this.importUserTable.renderRows()):this.orgUsersFormList=new l.vC(T.map(b=>this.createFormGroup(b))),i.value=""},f=>{this.csvFileLoadErrorMsg="We are not able to validate the list of users in the uploaded file. Please try again later."})}},n=>{console.log("Error",n),this.csvFileLoadErrorMsg=n.message}):this.csvFileLoadErrorMsg="You have not selected any csv file to import users for your organization."}_generateDisplayName(t){let i=[];return i=t,p.forEach(i,function(r){var n=r.emailAddress,s=n.substr(0,n.indexOf("@")),c=Math.floor(1e3+9e3*Math.random());r.displayName=s+c}),console.log("Records with displayName",i),i}deleteSelectedRow(t){this.userLimitError="",console.log("selected user to delete from list",t);let i=this.orgUsersFormList,r=p.findIndex(i.controls,function(n){return n.value.emailAddress===t.value.emailAddress});console.log("removed user",r),i.removeAt(r),this.orgUsersFormList=i,this.importUserTable.renderRows(),console.log("final list",this.orgUsersFormList)}keepUserToAddList(t){this.userLimitError="";let r=p.find(this.orgUsersFormList.controls,function(n){return n.value.emailAddress===t.value.emailAddress});console.log("update user",r),r.controls.orgUser.value=!1,r.controls.validationMessage.value=!1,r.controls.validStatus.value=!0,console.log("final list",this.orgUsersFormList)}validateEmailAddress(t){let i=[];i.push(t.value),console.log("new email value",t.value),this._orgService.validateOrgEmails({emailAddress:i,orgId:this.orgId,userAccess:this.userAccess}).subscribe(n=>{let c=p.find(this.orgUsersFormList.controls,function(h){return h.value.emailAddress===t.value});if(console.log("matching control",c),c&&(c.controls.validationMessage.value=n.responseBody.orgUserRegistrationList[0].validationMessage,c.controls.orgUser.value=n.responseBody.orgUserRegistrationList[0].orgUser,c.controls.validStatus.value=n.responseBody.orgUserRegistrationList[0].userRegValidStatus,!0===c.controls.validStatus.value)){var d=t.value.substr(0,t.value.indexOf("@")),m=Math.floor(1e3+9e3*Math.random());c.controls.displayName.value=d+m,c.value.displayName=d+m}console.log("updated form control list",this.orgUsersFormList),this.importUserTable.renderRows()},n=>{})}addUser(){this.orgUsersFormList.length+this.currentOrgUserCount>=this.purchasedUserCount?this.userLimitError="Please contact DeciZone Support team to add more users to your organization.":(this.orgUsersFormList.controls.unshift(this.createFormGroup({})),this.importUserTable&&this.importUserTable.renderRows(),console.log("new list after adding new row",this.orgUsersFormList))}onSubmit(){this.addUserSuccessList=[],this.addUserMsg="",this.addUserSuccess=!1,this.userLimitError="",this.submitted=!0,this.addUserFormError=!1,console.log("on submit cvsOrgUserlist",this.orgUsersFormList);let t=this.orgUsersFormList,i=p.findIndex(t.controls,function(c){return!0===c.value.orgUser});console.log("removed user",i),-1!==i&&t.removeAt(i),this.orgUsersFormList=t,console.log(this.orgUsersFormList,this.orgUsersFormList.valid);let r=[],n=this.orgId,s=this;p.forEach(this.orgUsersFormList.controls,function(c){if(!c.valid)return s.addUserFormError=!0,s.submitted=!1,!1;{let d={};d.emailId=c.value.emailAddress,d.roleName=c.value.role,d.displayName=c.value.displayName,d.firstName=c.value.firstName,d.lastName=c.value.lastName,d.orgId=n,d.levelValue=n,d.userPrivate="N",r.push(d)}}),s.addUserFormError||this._orgService.bulkCreateOrgUserByImport({orgUserRegistrationList:r,adminMessageForOrgUserInvite:this.orgUserInviteMessage,orgId:n,userAccess:this.userAccess}).subscribe(d=>{console.log("Bulk import org user email address",d);let m=this.sessionStorage.getObject("userMilestones");-1===p.findIndex(m,{milestoneName:"ADDED_ORG_USER",isCompleted:!0})&&this._utilService.setAddOrgUserMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("ADDED_ORG_USER",null),this.addUserSuccessList=d.responseBody.orgRegistrationResponseList,this.addUserSuccess=!0,this.addUserMsg="DONE! We have sent individual invitations to each user below from your list to join your DeciZone organization and they will be added to your Table of Users with the status INVITED. We have also emailed you a detailed summary of everyone invited. YOU MIGHT WANT TO REMIND ALL THESE USERS TO PROMPTLY CLICK ON THE INVITATION LINK IN THEIR EMAIL. ASK THEM TO CHECK THEIR INBOX/JUNK/SPAM FOLDERs for an email from [email protected]. PLease note that their invitation link
1will expire in 7 days. You can send another/new invitation LINK to any member in your Table of Users using the REINVITE USER option. Once the User has accepted the invitation, they will be shown with the status ACTIVE in your Table of Users.";let f={event:"invite_send","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":n,"dlv-custom_count":this.addUserSuccessList.length};window.dataLayer.push(f),this.submitted=!1},d=>{this.submitted=!1,this.addUserMsg="We are unable to process your request at this time. Please try again after sometime or contact DeciZone Support team.",console.log("Error in bulk import users to organization",d)})}close(){this.ngZone.run(()=>{this.dialogRef.close(!0)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(A.F0),e.Y36(e.sBO),e.Y36(q.d),e.Y36(S.f),e.Y36(at.IG),e.Y36(E.ux),e.Y36(W.Q),e.Y36(l.QS),e.Y36(M.qo),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],viewQuery:function(t,i){if(1&t&&(e.Gf(C.BZ,5),e.Gf(st,5)),2&t){let r;e.iGM(r=e.CRH())&&(i.importUserTable=r.first),e.iGM(r=e.CRH())&&(i.csvImportInput=r.first)}},decls:8,vars:4,consts:[[1,"import-user-dialog-container"],["id","addimportorgusr-close","mat-button","",1,"close-button-right",3,"click"],["class","add-user-success-list",4,"ngIf"],["class","add-more-users",4,"ngIf"],["class","user-limit-error",4,"ngIf"],[4,"ngIf"],[1,"add-user-success-list"],[1,"centerize"],[1,"add-user-success-padding"],[4,"ngFor","ngForOf"],[1,"add-more-users"],[1,"add-single-user"],[1,"small-grey-text"],["id","addimportorgusr-addusr","mat-raised-button","","color","accent",1,"button-center",3,"click"],[1,"import-multiple-users"],["id","importusers-dztemplate","href","https://dz-front-end-hosted-on-s3.s3-us-west-1.amazonaws.com/assets/documents/DeciZone-Org-Users-Import-Template.csv"],["type","file","name","File Upload","id","csvFileUpload","accept",".csv",3,"change"],["csvImportInput",""],[1,"user-limit-error"],[1,"user-invite-form"],[1,"manage-users","dztable-container","mat-elevation-z8"],["mat-table","","matSort","",1,"dztable-table",3,"dataSource"],["importUserTable",""],["matColumnDef","emailAddress"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","firstName"],["matColumnDef","lastName"],["matColumnDef","role"],["mat-cell","",3,"formGroup",4,"matCellDef"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"highlight-warn-row","ngClass",4,"matRowDef","matRowDefColumns"],[3,"pageIndex","pageSize","pageSizeOptions","click",4,"ngIf"],[1,"form-full-width"],["matInput","","matTextareaAutosize","","placeholder","Invitation Message to all Users","matAutosizeMinRows","1","matAutosizeMaxRows","1","maxlength","255","name","orgUserInviteMessage",3,"ngModel","ngModelChange"],["id","addimportorgusr-inviteusers","mat-raised-button","","color","accent","type","submit",1,"import-user-buttons",3,"disabled","click"],["class","app-spinner",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["floatLabel","never"],["matInput","","placeholder","emailAddress","type","email","name","emailAddress","maxlength","50","required","","value","element.emailAddress",3,"formControl","change"],["matInput","","placeholder","firstName","value","element.firstName","name","firstName","maxlength","20","required","",3,"formControl"],["matInput","","placeholder","lastName","value","element.lastName","name","lastName","maxlength","20","required","",3,"formControl"],["mat-cell","",3,"formGroup"],["placeholder","Select from available Roles",3,"formControl","value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["id","addimportorgusr-delrow","matTooltip","Delete Row","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["mat-header-row",""],["mat-row","",3,"ngClass"],[3,"pageIndex","pageSize","pageSizeOptions","click"],[1,"app-spinner"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return i.close()}),e.TgZ(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.YNc(4,ct,17,2,"div",2),e.YNc(5,gt,31,1,"div",3),e.YNc(6,ut,2,1,"mat-error",4),e.YNc(7,Gt,31,8,"div",5),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",i.addUserSuccess),e.xp6(1),e.Q6J("ngIf",!i.addUserSuccess),e.xp6(1),e.Q6J("ngIf",i.userLimitError),e.xp6(1),e.Q6J("ngIf",!i.addUserSuccess&&i.orgUsersFormList&&i.orgUsersFormList.length>0))},dependencies:[v.mk,v.sg,v.O5,he.oO,y.TO,y.KE,k.Nt,K.ey,Z.lW,I.Hw,se.NW,H.Ou,j.gD,V.YE,V.nU,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,oe.gM,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.nD,l.On,l.F,l.oH,l.sg],styles:[".import-user-dialog-container[_ngcontent-%COMP%]{position:relative;height:100%}.close-button-right[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.manage-users[_ngcontent-%COMP%]{text-align:start;min-height:200px;position:relative}.manage-users[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed;overflow-x:auto}.manage-users[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-users[_ngcontent-%COMP%] .mat-column-emailAddress[_ngcontent-%COMP%]{width:200
1px}.manage-users[_ngcontent-%COMP%] .mat-column-firstName[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-lastName[_ngcontent-%COMP%]{width:100px;text-align:center}.manage-users[_ngcontent-%COMP%] .mat-column-role[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-action[_ngcontent-%COMP%]{width:50px;text-align:center}.import-user-dialog-container[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:94%}.import-user-buttons[_ngcontent-%COMP%]{display:inline-block;margin:20px}.user-limit-error[_ngcontent-%COMP%]{margin:15px}.highlight-warn-row[_ngcontent-%COMP%]{background-color:#fcd1e2!important}.highlight-info-row[_ngcontent-%COMP%]{background-color:#98f0f7!important}.add-user-success-padding[_ngcontent-%COMP%]{padding-left:30px}.add-user-success-list[_ngcontent-%COMP%]{width:90%;max-width:800px;margin:0 auto;overflow:auto}.user-invite-form[_ngcontent-%COMP%]{border:1px solid lightgray;border-radius:10px;padding:5px}"]}),o})();var z=g(43949);function Ht(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function zt(o,a){if(1&o&&(e.TgZ(0,"div",12),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.successMsg," ")}}function Wt(o,a){if(1&o&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.roleName," ")}}const Kt=function(){return{standalone:!0}};let jt=(()=>{class o{constructor(t,i,r,n,s,c,d,m){this.ngZone=t,this.dialogRef=i,this.data=r,this._userMilestoneService=n,this._utilService=s,this._snackBar=d,this._userService=m,this.genericErrMsg="",this.genericErr=!1,this.isSuccess=!1,this.successMsg="",this.roles=[],this.orgName="",this.userAccess="",this.sessionStorage=c,this.roles=r.roles,this.orgName=r.orgName,this.userAccess=r.userAccess,this.orgId=r.orgId,this._utilService.addOrgUserMilestoneAchieved.subscribe(h=>{h&&this._snackBar.open(x.LRm,"Dismiss",{duration:2500})})}ngOnInit(){this.buildForm()}buildForm(){this.addOrgUserForm=new l.nJ({email:new l.p4("",[l.kI.required,z.dN.email])})}addUserToOrg(t){var i=this.addOrgUserForm.get("email").value;this._userService.addPublicUserToOrg({orgId:this.orgId,orgName:this.orgName,userAccess:this.userAccess,orgUserRegistrationList:[{emailId:i,roleId:t.roleId,orgId:this.orgId,levelValue:this.orgId,userPrivate:"N"}]}).subscribe(n=>{let s=this.sessionStorage.getObject("userMilestones");-1===p.findIndex(s,{milestoneName:"ADDED_ORG_USER",isCompleted:!0})&&this._utilService.setAddOrgUserMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("ADDED_ORG_USER",null),"REGISTERED"===n.responseBody.orgRegistrationResponseList[0].registrationStatus?(this.isSuccess=!0,this.dialogRef.close(!0)):(this.genericErr=!0,this.genericErrMsg=n.responseBody.orgRegistrationResponseList[0].message)},n=>{this.genericErr=!0,this.genericErrMsg="Unexpected error occurred while adding user to your organization. Please try again after some time."})}close(){this.ngZone.run(()=>{this.dialogRef.close(!1)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI),e.Y36(q.d),e.Y36(S.f),e.Y36(M.qo),e.Y36(E.ux),e.Y36(N.K))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:16,vars:8,consts:[[1,"dialogue-container"],["mat-dialog-title",""],["name","form","novalidate","",3,"formGroup","ngSubmit"],[4,"ngIf"],["class","success-msg",4,"ngIf"],[1,"dialogue-input-fields"],["matInput","","placeholder","Enter user's email address","formControlName","email","name","email","required",""],["placeholder","Select from available Roles","name","selectedRole",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"dialogue-buttons"],["id","addorgusr-cancl","type","button","mat-button","",3,"click"],["id","addorgusr-addusr","type","submit","mat-raised-button","","cdkFocusInitial",""],[1,"success-msg"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.qZA(),e.TgZ(3,"form",2),e.NdJ("ngSubmit",function(){return i.addUserToOrg(i.selectedRole)}),e.YNc(4,Ht,2,1,"mat-error",3),e.YNc(5,zt,2,1,"div",4),e.TgZ(6,"mat-form-field",5),e._UZ(7,"input",6),e.qZA(),e.TgZ(8,"mat-form-field",5)(9,"mat-select",7),e.NdJ("ngModelChange",function(n){return i.selectedRole=n}),e.YNc(10,Wt,2,2,"mat-option",8),e.qZA()(),e.TgZ(11,"mat-dialog-actions",9)(12,"button",10),e.NdJ("click",function(){return i.close()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",11),e._uU(15,"Add User"),e.qZA()()()()),2&t&&(e.xp6(2),e.hij("Add New User to Organization ",i.orgName,""),e.xp6(1),e.Q6J("formGroup",i.addOrgUserForm),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(1),e.Q6J("ngIf",i.isSuccess),e.xp6(4),e.Q6J("ngModel",i.selectedRole)("ngModelOptions",e.DdM(7,Kt)),e.xp6(1),e.Q6J("ngForOf",i.roles))},dependencies:[v.sg,v.O5,y.TO,y.KE,k.Nt,K.ey,Z.lW,u.uh,u.H8,j.gD,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.On,l.sg,l.u],encapsulation:2}),o})(),Vt=(()=>{class o{constructor(t,i,r){this.ngZone=t,this.dialogRef=i,this.data=r,this.title=r.title,this.message=r.message,this.genericErrMsg=new e.vpe}onClickClose(){this.ngZone.run(()=>{this.dialogRef.close()})}confirmYes(){this.ngZone.run(()=>{this.dialogRef.close(this.data.answer)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:12,vars:2,consts:[["mat-button","",1,"close-cross",3,"click"],["mat-dialog-actions","",1,"dialogue-buttons"],["mat-button","",3,"click"],["mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.onClickClose()}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()(),e.TgZ(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"div",1)(8,"button",2),e.NdJ("click",function(){return i.onClickClose()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",3),e.NdJ("click",function(){return i.confirmYes()}),e._uU(11,"Confirm"),e.qZA()()),2&t&&(e.xp6(4),e.Oqu(i.title),e.xp6(2),e.Oqu(i.message))},dependencies:[Z.lW,u.H8,I.Hw],encapsulation:2}),o})();function $t(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg,"\n")}}function Xt(o,a){if(1&o&&(e.TgZ(0,"mat-option",8),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.viewValue," ")}}const eo=function(){return{standalone:!0}};let to=(()=>{class o{constructor(t,i,r,n,s,c,d){this.ngZone=t,this.dialogRef=i,this.router=r,this._userService=n,this._utilService=s,this.data=d,this.genericErrMsg="",this.genericErr=!1,this.userOrgRoles=[{value:"ORG_VIEWER",viewValue:"ORG_VIEWER",selected:"true"},{value:"ORG_AUTHOR",viewValue:"ORG_AUTHOR",selected:"false"},{value:"ORG_EDITOR",viewValue:"ORG_EDITOR",selected:"false"},{value:"ORG_CREATOR",viewValue:"ORG_CREATOR",selected:"false"},{value:"ORG_SUB_ADMIN",viewValue:"ORG_SUB_ADMIN",selected:"false"}],this.currentUserRole="",this.copyCurrentRole="",this.sessionStorage=c,this.selectedOrg=d.org,this.userForEdit=d.userForEdit,this.currentUserRole=this.userForEdit.userOrgRoleBeanList[0].roleName,this.copyCurrentRole=this.currentUserRole}ngOnInit(){}updateUserOrgRole(t){if(this.genericErr=!1,console.log("selected new role for user -",t),p.isEqual(t,this.copyCurrentRole))this.dialogRef.close();else{var r=this.sessionStorage.getObject("cattree")[this.selectedOrg.orgName].orgUserAccess;console.log("Calling api to update user's role"),this._userService.updateUserOrgRole({userEmailAddress:this.userForEdit.userEmail,currentRoleName:this.copyCurrentRole,roleName:t,roleLevelValue:this.selectedOrg.orgId,orgId:this.selectedOrg.orgId,userAccess:r}).subscribe(s=>{let c={event:"edit_org_user","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-option_id_seleted":this.userForEdit.userId};window.dataLayer.push(c),this.dialogRef.close(!0)},s=>{this.genericErr=!0,this.genericErrMsg="We are not able to update the selected role for this user. Please try again later or contact DeciZone Support team."})}}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(A.F0),e.Y36(N.K),e.Y36(S.f),e.Y36(M.qo),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:18,vars:7,consts:[["id","editorgusr-close","mat-button","",1,"close-button-right",3,"click"],[4,"ngIf"],[1,"dialogue-input-fields"],["placeholder","Select from available Roles","name","currentUserRole",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"dialogue-buttons"],["
1id","editorgusr-cancl","type","button","mat-button","",3,"click"],["id","editorgusr-update","type","submit","mat-raised-button","","cdkFocusInitial","",3,"disabled","click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.close()}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()(),e.TgZ(3,"h3"),e._uU(4,"Change User Role"),e.qZA(),e.TgZ(5,"p")(6,"strong"),e._uU(7,"User"),e.qZA(),e._uU(8),e.qZA(),e.YNc(9,$t,2,1,"mat-error",1),e.TgZ(10,"mat-form-field",2)(11,"mat-select",3),e.NdJ("ngModelChange",function(n){return i.currentUserRole=n}),e.YNc(12,Xt,2,2,"mat-option",4),e.qZA()(),e.TgZ(13,"mat-dialog-actions",5)(14,"button",6),e.NdJ("click",function(){return i.close()}),e._uU(15,"Cancel"),e.qZA(),e.TgZ(16,"button",7),e.NdJ("click",function(){return i.updateUserOrgRole(i.currentUserRole)}),e._uU(17,"Update"),e.qZA()()),2&t&&(e.xp6(8),e.hij(": ",i.userForEdit.userEmail,""),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(2),e.Q6J("ngModel",i.currentUserRole)("ngModelOptions",e.DdM(6,eo)),e.xp6(1),e.Q6J("ngForOf",i.userOrgRoles),e.xp6(4),e.Q6J("disabled",i.copyCurrentRole===i.currentUserRole))},dependencies:[v.sg,v.O5,y.TO,y.KE,K.ey,Z.lW,u.H8,I.Hw,j.gD,l.JJ,l.On],styles:[".close-button-right[_ngcontent-%COMP%]{position:absolute;top:0;right:0}"]}),o})(),oo=(()=>{class o{constructor(t,i,r){this.ngZone=t,this.dialogRef=i,this.data=r,this.title=r.title,this.message=r.message,this.genericErrMsg=new e.vpe}onClickClose(){this.ngZone.run(()=>{this.dialogRef.close()})}deleteYes(){this.ngZone.run(()=>{this.dialogRef.close(this.data.answer)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:12,vars:2,consts:[["mat-button","",1,"close-cross",3,"click"],["mat-dialog-actions","",1,"dialogue-buttons"],["mat-button","",3,"click"],["mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.onClickClose()}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()(),e.TgZ(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"div",1)(8,"button",2),e.NdJ("click",function(){return i.onClickClose()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",3),e.NdJ("click",function(){return i.deleteYes()}),e._uU(11,"Confirm"),e.qZA()()),2&t&&(e.xp6(4),e.Oqu(i.title),e.xp6(2),e.Oqu(i.message))},dependencies:[Z.lW,u.H8,I.Hw],encapsulation:2}),o})(),io=(()=>{class o{constructor(t,i,r){this.ngZone=t,this.dialogRef=i,this.data=r,this.title=r.title,this.message=r.message,this.genericErrMsg=new e.vpe}onClickClose(){this.ngZone.run(()=>{this.dialogRef.close()})}deactivateYes(){this.ngZone.run(()=>{this.dialogRef.close(this.data.answer)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:12,vars:2,consts:[["mat-button","",1,"close-cross",3,"click"],["mat-dialog-actions","",1,"common-modal-buttons"],["mat-button","",3,"click"],["mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.onClickClose()}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()(),e.TgZ(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"div",1)(8,"button",2),e.NdJ("click",function(){return i.onClickClose()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",3),e.NdJ("click",function(){return i.deactivateYes()}),e._uU(11,"Confirm"),e.qZA()()),2&t&&(e.xp6(4),e.Oqu(i.title),e.xp6(2),e.Oqu(i.message))},dependencies:[Z.lW,u.H8,I.Hw],encapsulation:2}),o})(),ro=(()=>{class o{constructor(t,i,r){this.ngZone=t,this.dialogRef=i,this.data=r,this.title=r.title,this.message=r.message,this.genericErrMsg=new e.vpe}onClickClose(){this.ngZone.run(()=>{this.dialogRef.close()})}deleteYes(){this.ngZone.run(()=>{this.dialogRef.close(this.data.answer)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:12,vars:2,consts:[["mat-button","",1,"close-cross",3,"click"],["mat-dialog-actions","",1,"common-modal-buttons"],["mat-button","",3,"click"],["mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.onClickClose()}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()(),e.TgZ(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"div",1)(8,"button",2),e.NdJ("click",function(){return i.onClickClose()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",3),e.NdJ("click",function(){return i.deleteYes()}),e._uU(11,"Confirm"),e.qZA()()),2&t&&(e.xp6(4),e.Oqu(i.title),e.xp6(2),e.Oqu(i.message))},dependencies:[Z.lW,u.H8,I.Hw],encapsulation:2}),o})();var no=g(28578);function ao(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function so(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Display Name is required. "),e.qZA())}function lo(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Display Name cannot be greater than 30 characters. "),e.qZA())}function co(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Display Name can contain only alphabets, numbers or hyphen '-', but no whitespace. (Max 30 characters). "),e.qZA())}function go(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Display Name is already taken. Please select different display name. "),e.qZA())}function uo(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,so,2,0,"mat-error",4),e.YNc(2,lo,2,0,"mat-error",4),e.YNc(3,co,2,0,"mat-error",4),e.YNc(4,go,2,0,"mat-error",4),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.displayNameForm.controls.displayName.errors.required),e.xp6(1),e.Q6J("ngIf",t.displayNameForm.controls.displayName.errors.maxlength),e.xp6(1),e.Q6J("ngIf",t.displayNameForm.controls.displayName.errors.pattern),e.xp6(1),e.Q6J("ngIf",t.displayNameForm.controls.displayName.errors.usernameTaken)}}let _o=(()=>{class o{constructor(t,i,r,n,s,c,d,m){this.ngZone=t,this.dialogRef=i,this.router=r,this._snackBar=n,this._utilService=s,this._userService=c,this._userMilestoneService=d,this.genericErrMsg="",this.genericErr=!1,this.displayName="",this.sessionStorage=m,this._utilService.updatePrefAvatarDisplaynameMilestoneAchieved.subscribe(h=>{h&&this._snackBar.open(x.Sqt,"Dismiss",{duration:2500})})}ngOnInit(){this.buildForm(),this.displayNameForm.controls.displayName.setValue(this.displayName)}buildForm(){this.displayNameForm=new l.nJ({displayName:new l.p4("",[l.kI.required,l.kI.maxLength(30),l.kI.pattern("^[a-zA-Z0-9-]{1,30}$")],[(0,no.U)(this._userService)])})}changeDisplayname(){var t=this.displayNameForm.get("displayName").value;this.displayNameForm.valid&&this._userService.changeDisplayname(t).subscribe(i=>{console.log(i);let r=this.sessionStorage.getObject("userMilestones");p.find(r,function(s){return"UPLOADED_USER_AVATAR"===s.milestoneName||"SET_DISPLAYNAME"===s.milestoneName||"SAVED_LANDING_PAGE_PREFERENCE"===s.milestoneName})||this._utilService.setUpdatePrefAvatarDisplaynameMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("SET_DISPLAYNAME",null),this.dialogRef.close(!0)},i=>{this.genericErr=!0,this.genericErrMsg=i&&i.error?i.error.statusMessage:""})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(A.F0),e.Y36(E.ux),e.Y36(S.f),e.Y36(N.K),e.Y36(q.d),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:17,vars:4,consts:[["mat-dialog-title",""],["id","displynam-close","mat-button","",3,"click"],["mat-dialog-content",""],["name","form","novalidate","",3,"formGroup","ngSubmit"],[4,"ngIf"],["matInput","","name","displayName","formControlName","displayName","required",""],["id","displynam-cancl","type","button","mat-button","",3,"click"],["id","displynam-done","type","submit","color","primary","mat-raised-button","","cdkFocusInitial","",3,"disabled"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Change Displayname "),e.TgZ(2,"button",1),e.NdJ("click",function(){return i.close()}),e.TgZ(3,"mat-icon"),e._uU(4,"close"),e.qZA()()(),e.TgZ(5,"div",2),e._uU(6,"Displayname"),e.qZA(),e.TgZ(7,"form",3),e.NdJ("ngSubmit",function(){return i.changeDisplayname()}),e.YNc(8,ao,2,1,"mat-error",4),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",5),e.qZA(),e.YNc(11,uo,5,4,"div",4),e.TgZ(12,"mat-dialog-actions")(13,"button",6),e.NdJ("click",function(){return i.close()}),e._uU(14,"Cancel"),e.qZA(),e.TgZ(15,"button",7),e._uU(16," DONE "),e.qZA()()()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.displayNameForm),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(3),e.Q6J("ngIf",i.displayNameForm.controls.displayName.errors&&(i.displayNameForm.controls.displayName.dirty||i.displayNameForm.controls.displayName.touched)),e.xp6(4),e.Q6J("disabled",i.displayNameForm.invali
1d))},dependencies:[v.O5,y.TO,y.KE,k.Nt,Z.lW,u.uh,u.xY,u.H8,I.Hw,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u],styles:[".profile-page[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;position:relative;width:90%;height:90%;max-width:900px;margin:0 auto 30px;overflow-y:auto}.profile-item[_ngcontent-%COMP%]{margin:10px 10px 60px}.profile-item[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{width:100%}.profile-item[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{margin:16px}.profile-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:34px;margin:10px}.account-details[_ngcontent-%COMP%]{width:90%;margin:0 auto}.account-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px}.item-name[_ngcontent-%COMP%]{color:#a9a9a9;width:100%;display:inline-block;text-align:left}.item-value[_ngcontent-%COMP%]{color:var(--primarytextcolor);text-align:center;width:100%}.item-checkbox[_ngcontent-%COMP%]{display:block;margin:10px auto;width:90%}.items-divider[_ngcontent-%COMP%]{width:80%;margin:20px 10%;position:relative}.close-cross[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:0;width:40px;min-width:40px}.button-center[_ngcontent-%COMP%]{margin:10px auto;display:block}.button-right[_ngcontent-%COMP%]{float:right}.manage-org[_ngcontent-%COMP%], .orgUserTable[_ngcontent-%COMP%]{width:100%}.orgUserTable[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--secondarytextcolor)}.users-table[_ngcontent-%COMP%]{width:99%;margin:0 auto}.my-account-propertynames[_ngcontent-%COMP%]{font-weight:700}.org-role-padding[_ngcontent-%COMP%]{padding-bottom:15px}.org-name[_ngcontent-%COMP%], .orgname-title[_ngcontent-%COMP%]{color:var(--primarytextcolor)}.centerize-vertical-stack[_ngcontent-%COMP%]{min-width:150px;max-width:500px;width:100%;margin:10px auto;padding:0 20px;display:flex;align-content:center;justify-content:space-around;flex-direction:column;box-sizing:border-box}.eachorgproperty[_ngcontent-%COMP%]{display:flex;justify-content:center;-webkit-box-align:center;flex-direction:column;align-items:center;border-bottom:1px solid lightgray;margin-bottom:20px}.orgLogoUrl-div[_ngcontent-%COMP%]{width:100%}#uploadedImage[_ngcontent-%COMP%]{background-position:center center;background-size:contain;background-repeat:no-repeat;width:150px;height:50px;margin:20px auto;border:1px dotted gray}.icon-adjust-five-top[_ngcontent-%COMP%]{position:absolute;top:5px}.instructions-para[_ngcontent-%COMP%]{margin:15px}.file-selector[_ngcontent-%COMP%]{margin:20px}.profile-page[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{margin-left:2px;margin-right:2px}.orgCredits[_ngcontent-%COMP%] .creditDivs[_ngcontent-%COMP%], .orgCredits[_ngcontent-%COMP%] .creditButtons[_ngcontent-%COMP%]{margin:20px}.userButton[_ngcontent-%COMP%]{margin-right:20px}#creditcard-section[_ngcontent-%COMP%], #addCreditCard[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.user-table-error[_ngcontent-%COMP%]{margin-bottom:10px}.user-image[_ngcontent-%COMP%]{width:100px;height:100px;box-sizing:border-box;margin:10px auto;display:flex;justify-content:space-around;text-align:center;flex-direction:column;position:relative}.user-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;box-sizing:border-box;z-index:-2;background-color:#d3d3d3}.userimageedit[_ngcontent-%COMP%]{color:#d3d3d3;position:absolute;bottom:0;right:-17px;cursor:pointer}.profile-integration[_ngcontent-%COMP%]{text-align:center}.profile-integration[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.profile-integration[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.profile-integration[_ngcontent-%COMP%] .mat-column-integrationName[_ngcontent-%COMP%]{width:130px;text-align:start}.profile-integration[_ngcontent-%COMP%] .mat-column-orgIntegrationId[_ngcontent-%COMP%]{width:150px;background-color:#fffbeb}.profile-integration[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%]{text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditName[_ngcontent-%COMP%]{width:130px;text-align:start}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditCount[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditUsageCount[_ngcontent-%COMP%]{width:100px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-expiryDate[_ngcontent-%COMP%]{width:120px;text-align:center;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%]{text-align:center}.manage-third-party-api[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-third-party-api[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiName[_ng
1content-%COMP%]{width:100px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiEndpoint[_ngcontent-%COMP%]{width:200px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiKey[_ngcontent-%COMP%]{width:70px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-isEnabled[_ngcontent-%COMP%]{width:70px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:100px;text-align:center}.credits-first-footer-row[_ngcontent-%COMP%]{font-weight:700}.manage-users[_ngcontent-%COMP%]{text-align:start;height:250px}.manage-users[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-users[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-users[_ngcontent-%COMP%] .mat-column-firstName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-lastName[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-roleName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;background-color:#fffbeb}.end-status[_ngcontent-%COMP%]{text-align:start;height:250px}.end-status[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.end-status[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.end-status[_ngcontent-%COMP%] .mat-column-displayName[_ngcontent-%COMP%]{width:130px;text-align:center}.end-status[_ngcontent-%COMP%] .mat-column-endStatus[_ngcontent-%COMP%]{width:130px;text-align:center;background-color:#fffbeb}.end-status[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.add-more-users[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;flex-direction:column;border-top:1px solid lightgray}.add-single-user[_ngcontent-%COMP%], .import-multiple-users[_ngcontent-%COMP%]{padding:0 20px}#csvFileUpload[_ngcontent-%COMP%]{margin:20px auto;display:block}.org-user-table-success[_ngcontent-%COMP%]{margin:10px;color:green;font-weight:500}.creditspanelcontainer[_ngcontent-%COMP%]{padding:10px}.image-cropper-container[_ngcontent-%COMP%]{width:300px!important;overflow:hidden!important}.custom-cropped-image[_ngcontent-%COMP%]{width:150px!important;height:50px}.buttons-container[_ngcontent-%COMP%], .cropper-tools-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-around!important;align-items:center!important;padding:10px!important;margin:20px 0!important}.croppertool-button[_ngcontent-%COMP%]{background:transparent;margin:3px}.cropper-rotation-slider[_ngcontent-%COMP%]{margin:8px;width:200px}.instruction-panels[_ngcontent-%COMP%]{width:90%;margin:10px auto}.integration-instructions[_ngcontent-%COMP%]{overflow-y:auto}.integrations-section[_ngcontent-%COMP%]{width:100%}.integration-details[_ngcontent-%COMP%], .integration-instructions[_ngcontent-%COMP%]{height:400px;overflow:auto}.each-integration[_ngcontent-%COMP%] .mat-tab-label-content[_ngcontent-%COMP%]{color:#673ab7}.integration-details-toggle[_ngcontent-%COMP%]{margin:10px 20px}.integration-details-inputfield[_ngcontent-%COMP%]{margin:0 20px}"]}),o})();var po=g(67618);function mo(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function ho(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Password is required. "),e.qZA())}function fo(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,ho,2,0,"mat-error",4),e._UZ(2,"br"),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.passwordForm.controls.oldpassword.errors.required)}}function Co(o,a){1&o&&(e.TgZ(0,"mat-error",12),e._uU(1," New Password is required. "),e.qZA())}function vo(o,a){1&o&&(e.TgZ(0,"mat-error",12),e._uU(1," New Password must be between 8 and 16 characters. "),e.qZA())}function yo(o,a){1&o&&(e.TgZ(0,"mat-error",12),e._uU(1," New Password must contain one lowercase letter, uppercase letter, and one non-alpha character (a number or a symbol). "),e.qZA())}function bo(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Co,2,0,"mat-error",11),e.YNc(2,vo,2,0,"mat-error",11),e.YNc(3,yo,2,0,"mat-error",11),e._UZ(4,"br"),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.passwordForm.controls.newpassword.errors.required),e.xp6(1),e.Q6J("ngIf",t.passwordForm.controls.newpassword.errors.minlength),e.xp6(1),e.Q6J("ngIf",t.passwordForm.controls.newpassword.errors.pattern)}}function To(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Confirm Password is required. "),e.qZA())}function xo(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Password must match. "),e.qZA())}function Ao(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,To,2,0,"mat-error",4),e.YNc(2,xo,2,0,"mat-error",4),e._UZ(3,"br"),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.passwordForm.controls.confirmpassword.errors.required),e.xp6(1),e.Q6J("ngIf",t.passwordForm.controls.confirmpassword.invalid||t.passwordForm.controls.confirmpassword.touched)}}let Uo=(()=>{class o{constructor(t,i,r,n){this.ngZone=t,this.dialogRef=i,this._userService=r,this.genericErrMsg="",this.genericErr=!1,this.sessionStorage=n}ngOnInit(){this.buildForm()}buildForm(){this.passwordForm=new l.nJ({oldpassword:new l.p4("",[l.kI.required]),newpassword:new l.p4("",l.kI.compose([l.kI.required,l.kI.minLength(8),l.kI.maxLength(16),l.kI.pattern("^(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{8,16}$")])),confirmpassword:new l.p4("",[l.kI.required])})}changePassword(){var t=this.passwordForm.get("oldpassword").value,i=this.passwordForm.get("newpassword").value;this._userService.changePassword(t,i).subscribe(r=>{this.dialogRef.close(!0)},r=>{this.genericErr=!0,this.genericErrMsg=r&&r.error?r.error.statusMessage:""})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(N.K),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:25,vars:6,consts:[[1,"passwordchangedialog"],["id","passwd-close","mat-button","",3,"click"],["mat-dialog-title",""],["name","form","novalidate","",3,"formGroup","ngSubmit"],[4,"ngIf"],["matInput","","placeholder","Enter old password","type","password","name","oldpassword","formControlName","oldpassword","required",""],["matInput","","placeholder","Enter new Password","type","password","name","newpassword","validateEqual","confirmpassword","reverse","true","formControlName","newpassword","required",""],["matInput","","placeholder","Confirm new password","type","password","name","confirmpassword","validateEqual","newpassword","reverse","false","formControlName","confirmpassword","required",""],[1,"passwordchangebuttons"],["
1id","passwd-cancl","type","button","mat-button","",3,"click"],["id","passwd-done","type","submit","color","primary","mat-raised-button","","cdkFocusInitial","",3,"disabled"],["style","width:100%;",4,"ngIf"],[2,"width","100%"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return i.close()}),e.TgZ(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"h1",2),e._uU(5,"Change Password"),e.qZA(),e.TgZ(6,"form",3),e.NdJ("ngSubmit",function(){return i.changePassword()}),e.YNc(7,mo,2,1,"mat-error",4),e.TgZ(8,"div")(9,"mat-form-field"),e._UZ(10,"input",5),e.qZA(),e.YNc(11,fo,3,1,"div",4),e.qZA(),e.TgZ(12,"div")(13,"mat-form-field"),e._UZ(14,"input",6),e.qZA(),e.YNc(15,bo,5,3,"div",4),e.qZA(),e.TgZ(16,"div")(17,"mat-form-field"),e._UZ(18,"input",7),e.qZA(),e.YNc(19,Ao,4,2,"div",4),e.qZA(),e.TgZ(20,"mat-dialog-actions",8)(21,"button",9),e.NdJ("click",function(){return i.close()}),e._uU(22,"Cancel"),e.qZA(),e.TgZ(23,"button",10),e._uU(24," DONE "),e.qZA()()()()),2&t&&(e.xp6(6),e.Q6J("formGroup",i.passwordForm),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(4),e.Q6J("ngIf",i.passwordForm.controls.oldpassword.errors&&(i.passwordForm.controls.oldpassword.dirty||i.passwordForm.controls.oldpassword.touched)),e.xp6(4),e.Q6J("ngIf",i.passwordForm.controls.newpassword.errors&&(i.passwordForm.controls.newpassword.dirty||i.passwordForm.controls.newpassword.touched)),e.xp6(4),e.Q6J("ngIf",i.passwordForm.controls.confirmpassword.errors&&(i.passwordForm.controls.confirmpassword.dirty||i.passwordForm.controls.confirmpassword.touched)),e.xp6(4),e.Q6J("disabled",i.passwordForm.invalid))},dependencies:[v.O5,y.TO,y.KE,k.Nt,Z.lW,u.uh,u.H8,I.Hw,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u,po.z],encapsulation:2}),o})();function Zo(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function Po(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.currentPrefValue)}}function Oo(o,a){if(1&o&&(e.TgZ(0,"mat-option",10),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.preferenceDisplayCaption," ")}}function wo(o,a){if(1&o&&(e.TgZ(0,"mat-option",10),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.flowchartName," ")}}function Mo(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-form-field",3)(1,"mat-select",11),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw();return e.KtG(n.favfc=r)}),e.YNc(2,wo,2,2,"mat-option",5),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.favfc),e.xp6(1),e.Q6J("ngForOf",t.userFavFcList)}}let Io=(()=>{class o{constructor(t,i,r,n,s,c,d,m){this.ngZone=t,this.dialogRef=i,this._userService=r,this._userMilestoneService=n,this._snackBar=s,this._utilService=c,this.data=d,this.genericErrMsg="",this.genericErr=!1,this.showFavoriteList=!1,this.currentPrefOption="",this.currentPrefValue="",this.sessionStorage=m,this.preferenceList=d.prefOptions,this.currentPrefOption=d.currentPrefOption,this.currentPrefValue=d.currentPrefValue;let h=p.find(d.prefOptions,function(f){return p.isEqual(d.currentPrefOption,f.preferenceDisplayCaption)});h&&(this.landingPagePref=h),this._utilService.updatePrefAvatarDisplaynameMilestoneAchieved.subscribe(f=>{f&&this._snackBar.open(x.Sqt,"Dismiss",{duration:2500})})}ngOnInit(){}onChange(t){"My Favorite Flowchart"===t.value.preferenceDisplayCaption?(this.userFavFcList=this.sessionStorage.getObject("userfavoritefc"),this.showFavoriteList=!0):this.showFavoriteList=!1}updateLandingPagePreference(t,i){if(console.log(t),console.log(i),t){let r="";i&&(r=i.flowchartId),this._userService.saveUserPreferenceByPreferenceName({preferenceDetailId:t.preferenceDetailId,preferenceName:"LANDING_PAGE",preferenceValue:r}).subscribe(s=>{let c=this.sessionStorage.getObject("userMilestones");p.find(c,function(h){return"UPLOADED_USER_AVATAR"===h.milestoneName||"SET_DISPLAYNAME"===h.milestoneName||"SAVED_LANDING_PAGE_PREFERENCE"===h.milestoneName})||this._utilService.setUpdatePrefAvatarDisplaynameMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("SAVED_LANDING_PAGE_PREFERENCE",null);let m={event:"edit_pageafterlogin","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId(),"dlv-option_id_selected":t.preferenceDetailId};window.dataLayer.push(m),this.dialogRef.close(!0)},s=>{this.genericErr=!0,this.genericErrMsg="We were unable to process your request at this time. Please try again."})}}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(N.K),e.Y36(q.d),e.Y36(E.ux),e.Y36(S.f),e.Y36(u.WI),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:16,vars:6,consts:[[1,"dialogue-container"],["mat-dialog-title",""],[4,"ngIf"],[1,"dialogue-input-fields"],["placeholder","Select from preferences","name","landingPagePref",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","dialogue-input-fields",4,"ngIf"],[1,"dialogue-buttons"],["
1id","landpref-cancl","type","button","mat-button","",3,"click"],["id","landpref-save","type","button","mat-raised-button","","cdkFocusInitial","",3,"click"],[3,"value"],["placeholder","Select one of your favorite flowchart","name","favoritefc",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2,"Change Landing Page Preference"),e.qZA(),e.YNc(3,Zo,2,1,"mat-error",2),e.TgZ(4,"mat-dialog-content"),e._uU(5),e.YNc(6,Po,2,1,"span",2),e.qZA(),e.TgZ(7,"mat-form-field",3)(8,"mat-select",4),e.NdJ("ngModelChange",function(n){return i.landingPagePref=n})("selectionChange",function(n){return i.onChange(n)}),e.YNc(9,Oo,2,2,"mat-option",5),e.qZA()(),e.YNc(10,Mo,3,2,"mat-form-field",6),e.TgZ(11,"mat-dialog-actions",7)(12,"button",8),e.NdJ("click",function(){return i.close()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",9),e.NdJ("click",function(){return i.updateLandingPagePreference(i.landingPagePref,i.favfc)}),e._uU(15,"SAVE"),e.qZA()()()),2&t&&(e.xp6(3),e.Q6J("ngIf",i.genericErr),e.xp6(2),e.hij(" Current Landing Page: ",i.currentPrefOption," "),e.xp6(1),e.Q6J("ngIf",i.currentPrefValue),e.xp6(2),e.Q6J("ngModel",i.landingPagePref),e.xp6(1),e.Q6J("ngForOf",i.preferenceList),e.xp6(1),e.Q6J("ngIf",i.showFavoriteList))},dependencies:[v.sg,v.O5,y.TO,y.KE,K.ey,Z.lW,u.uh,u.xY,u.H8,j.gD,l.JJ,l.On],styles:[".profile-page[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;position:relative;width:90%;height:90%;max-width:900px;margin:0 auto 30px;overflow-y:auto}.profile-item[_ngcontent-%COMP%]{margin:10px 10px 60px}.profile-item[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{width:100%}.profile-item[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{margin:16px}.profile-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:34px;margin:10px}.account-details[_ngcontent-%COMP%]{width:90%;margin:0 auto}.account-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px}.item-name[_ngcontent-%COMP%]{color:#a9a9a9;width:100%;display:inline-block;text-align:left}.item-value[_ngcontent-%COMP%]{color:var(--primarytextcolor);text-align:center;width:100%}.item-checkbox[_ngcontent-%COMP%]{display:block;margin:10px auto;width:90%}.items-divider[_ngcontent-%COMP%]{width:80%;margin:20px 10%;position:relative}.close-cross[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:0;width:40px;min-width:40px}.button-center[_ngcontent-%COMP%]{margin:10px auto;display:block}.button-right[_ngcontent-%COMP%]{float:right}.manage-org[_ngcontent-%COMP%], .orgUserTable[_ngcontent-%COMP%]{width:100%}.orgUserTable[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--secondarytextcolor)}.users-table[_ngcontent-%COMP%]{width:99%;margin:0 auto}.my-account-propertynames[_ngcontent-%COMP%]{font-weight:700}.org-role-padding[_ngcontent-%COMP%]{padding-bottom:15px}.org-name[_ngcontent-%COMP%], .orgname-title[_ngcontent-%COMP%]{color:var(--primarytextcolor)}.centerize-vertical-stack[_ngcontent-%COMP%]{min-width:150px;max-width:500px;width:100%;margin:10px auto;padding:0 20px;display:flex;align-content:center;justify-content:space-around;flex-direction:column;box-sizing:border-box}.eachorgproperty[_ngcontent-%COMP%]{display:flex;justify-content:center;-webkit-box-align:center;flex-direction:column;align-items:center;border-bottom:1px solid lightgray;margin-bottom:20px}.orgLogoUrl-div[_ngcontent-%COMP%]{width:100%}#uploadedImage[_ngcontent-%COMP%]{background-position:center center;background-size:contain;background-repeat:no-repeat;width:150px;height:50px;margin:20px auto;border:1px dotted gray}.icon-adjust-five-top[_ngcontent-%COMP%]{position:absolute;top:5px}.instructions-para[_ngcontent-%COMP%]{margin:15px}.file-selector[_ngcontent-%COMP%]{margin:20px}.profile-page[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{margin-left:2px;margin-right:2px}.orgCredits[_ngcontent-%COMP%] .creditDivs[_ngcontent-%COMP%], .orgCredits[_ngcontent-%COMP%] .creditButtons[_ngcontent-%COMP%]{margin:20px}.userButton[_ngcontent-%COMP%]{margin-right:20px}#creditcard-section[_ngcontent-%COMP%], #addCreditCard[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.user-table-error[_ngcontent-%COMP%]{margin-bottom:10px}.user-image[_ngcontent-%COMP%]{width:100px;height:100px;box-sizing:border-box;margin:10px auto;display:flex;justify-content:space-around;text-align:center;flex-direction:column;position:relative}.user-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;box-sizing:border-box;z-index:-2;background-color:#d3d3d3}.userimageedit[_ngcontent-%COMP%]{color:#d3d3d3;position:absolute;bottom:0;right:-17px;cursor:pointer}.profile-integration[_ngcontent-%COMP%]{text-align:center}.profile-integration[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.profile-integration[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.profile-integration[_ngcontent-%COMP%] .mat-column-integrationName[_ng
1content-%COMP%]{width:130px;text-align:start}.profile-integration[_ngcontent-%COMP%] .mat-column-orgIntegrationId[_ngcontent-%COMP%]{width:150px;background-color:#fffbeb}.profile-integration[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%]{text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditName[_ngcontent-%COMP%]{width:130px;text-align:start}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditCount[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditUsageCount[_ngcontent-%COMP%]{width:100px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-expiryDate[_ngcontent-%COMP%]{width:120px;text-align:center;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%]{text-align:center}.manage-third-party-api[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-third-party-api[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiName[_ngcontent-%COMP%]{width:100px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiEndpoint[_ngcontent-%COMP%]{width:200px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiKey[_ngcontent-%COMP%]{width:70px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-isEnabled[_ngcontent-%COMP%]{width:70px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:100px;text-align:center}.credits-first-footer-row[_ngcontent-%COMP%]{font-weight:700}.manage-users[_ngcontent-%COMP%]{text-align:start;height:250px}.manage-users[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-users[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-users[_ngcontent-%COMP%] .mat-column-firstName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-lastName[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-roleName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;background-color:#fffbeb}.end-status[_ngcontent-%COMP%]{text-align:start;height:250px}.end-status[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.end-status[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.end-status[_ngcontent-%COMP%] .mat-column-displayName[_ngcontent-%COMP%]{width:130px;text-align:center}.end-status[_ngcontent-%COMP%] .mat-column-endStatus[_ngcontent-%COMP%]{width:130px;text-align:center;background-color:#fffbeb}.end-status[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.add-more-users[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;flex-direction:column;border-top:1px solid lightgray}.add-single-user[_ngcontent-%COMP%], .import-multiple-users[_ngcontent-%COMP%]{padding:0 20px}#csvFileUpload[_ngcontent-%COMP%]{margin:20px auto;display:block}.org-user-table-success[_ngcontent-%COMP%]{margin:10px;color:green;font-weight:500}.creditspanelcontainer[_ngcontent-%COMP%]{padding:10px}.image-cropper-container[_ngcontent-%COMP%]{width:300px!important;overflow:hidden!important}.custom-cropped-image[_ngcontent-%COMP%]{width:150px!important;height:50px}.buttons-container[_ngcontent-%COMP%], .cropper-tools-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-around!important;align-items:center!important;padding:10px!important;margin:20px 0!important}.croppertool-button[_ngcontent-%COMP%]{background:transparent;margin:3px}
1.cropper-rotation-slider[_ngcontent-%COMP%]{margin:8px;width:200px}.instruction-panels[_ngcontent-%COMP%]{width:90%;margin:10px auto}.integration-instructions[_ngcontent-%COMP%]{overflow-y:auto}.integrations-section[_ngcontent-%COMP%]{width:100%}.integration-details[_ngcontent-%COMP%], .integration-instructions[_ngcontent-%COMP%]{height:400px;overflow:auto}.each-integration[_ngcontent-%COMP%] .mat-tab-label-content[_ngcontent-%COMP%]{color:#673ab7}.integration-details-toggle[_ngcontent-%COMP%]{margin:10px 20px}.integration-details-inputfield[_ngcontent-%COMP%]{margin:0 20px}"]}),o})();function Do(o,a){1&o&&e._UZ(0,"mat-spinner",11)}let So=(()=>{class o{constructor(t,i,r,n,s,c,d){this.ngZone=t,this.dialogRef=i,this.router=r,this._userService=n,this._userMilestoneService=s,this.data=c,this.genericErrMsg="",this.genericErr=!1,this.loading=!1,this.sessionStorage=d,this.oneLayerPrefId=c.oneLayerPrefId,this.threeLayerFcPrefId=c.threeLayerFcPrefId,this.cardLayoutPrefId=c.cardLayoutPrefId,this.userPrefFcLayout=this.sessionStorage.getObject("userFcLayoutPref"),this.newfclayoutpref=this.userPrefFcLayout?this.userPrefFcLayout.preferenceDetailId.toString():this.threeLayerFcPrefId.toString()}updateFCLayoutPref(t){this.loading=!0,console.log("Flowchart layout pref selected value -",t),this._userService.saveUserPreferenceByPreferenceName({preferenceName:"FLOWCHART_LAYOUT",preferenceDetailId:t}).subscribe(r=>{this._userMilestoneService.saveOrUpdateUserMilestone("CHANGED_FLOWCHART_LAYOUT",null),this.dialogRef.close(!0),this.loading=!1},r=>{this.genericErr=!0,this.genericErrMsg="We were unable to process your request at this time. Please try again.",this.loading=!1})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(A.F0),e.Y36(N.K),e.Y36(q.d),e.Y36(u.WI),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:28,vars:5,consts:[[1,"layout-dialogue-container"],["mat-dialog-title",""],["name","newfclayoutpref",1,"layout-radio-group",3,"ngModel","ngModelChange"],[3,"value"],["src","../../../../../assets/images/3-Layer-FLOWCHART-Layout-SVG-50px.png","alt","Image for three layers layout view."],[1,"layout-name"],["src","../../../../../assets/images/CARD-Layout-SVG-50px.png","alt","Image for card layout view."],[1,"common-modal-buttons"],["id","chgfclyt-close","mat-raised-button","","color","accent","all-buttons","",3,"click"],["id","chgfclyt-save","mat-raised-button","","color","accent",3,"disabled","click"],["class","app-spinner",4,"ngIf"],[1,"app-spinner"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2,"Flowchart Layout Preference"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"Select the flowchart layout you would like for viewing all flowcharts. "),e.qZA(),e.TgZ(5,"mat-radio-group",2),e.NdJ("ngModelChange",function(n){return i.newfclayoutpref=n}),e.TgZ(6,"mat-radio-button",3),e._uU(7,"\xa0 "),e._UZ(8,"img",4),e._uU(9," \xa0 \xa0 "),e.TgZ(10,"span",5),e._uU(11,"FLOWCHART_LAYOUT"),e.qZA()(),e.TgZ(12,"mat-radio-button",3),e._uU(13," \xa0 "),e._UZ(14,"img",6),e._uU(15," \xa0 \xa0 "),e.TgZ(16,"span",5),e._uU(17,"CARD_LAYOUT"),e.qZA()()(),e.TgZ(18,"div",7)(19,"button",8),e.NdJ("click",function(){return i.close()}),e._uU(20," Cancel "),e.TgZ(21,"mat-icon"),e._uU(22,"clear"),e.qZA()(),e.TgZ(23,"button",9),e.NdJ("click",function(){return i.updateFCLayoutPref(i.newfclayoutpref)}),e.YNc(24,Do,1,0,"mat-spinner",10),e._uU(25," Change "),e.TgZ(26,"mat-icon"),e._uU(27,"save"),e.qZA()()()()),2&t&&(e.xp6(5),e.Q6J("ngModel",i.newfclayoutpref),e.xp6(1),e.s9C("value",i.threeLayerFcPrefId),e.xp6(6),e.s9C("value",i.cardLayoutPrefId),e.xp6(11),e.Q6J("disabled",i.loading),e.xp6(1),e.Q6J("ngIf",i.loading))},dependencies:[v.O5,Z.lW,u.uh,I.Hw,H.Ou,ie.VQ,ie.U0,l.JJ,l.On],styles:[".layout-radio-group[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px;height:50px}.layout-radio-group[_ngcontent-%COMP%] .mat-radio-button[_ngcontent-%COMP%]{display:block;margin-bottom:30px}.layout-radio-group[_ngcontent-%COMP%] .mat-radio-label-content[_ngcontent-%COMP%]{text-align:center}
1.layout-radio-group[_ngcontent-%COMP%] .layout-name[_ngcontent-%COMP%]{position:absolute;top:16px}"]}),o})(),Eo=(()=>{class o{constructor(t,i,r){this.ngZone=t,this.dialogRef=i,this.data=r,this.title=r.title,this.message=r.message}onClickClose(){this.ngZone.run(()=>{this.dialogRef.close()})}deleteYes(){this.ngZone.run(()=>{this.dialogRef.close(this.data.answer)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:12,vars:2,consts:[["mat-button","",1,"close-cross",3,"click"],["mat-dialog-actions","",1,"common-modal-buttons"],["mat-button","",3,"click"],["mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.onClickClose()}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()(),e.TgZ(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"div",1)(8,"button",2),e.NdJ("click",function(){return i.onClickClose()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",3),e.NdJ("click",function(){return i.deleteYes()}),e._uU(11,"Confirm"),e.qZA()()),2&t&&(e.xp6(4),e.Oqu(i.title),e.xp6(2),e.Oqu(i.message))},dependencies:[Z.lW,u.H8,I.Hw],encapsulation:2}),o})();var D=g(62403),fe=g(52679);function No(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}let Ro=(()=>{class o{constructor(t,i,r,n,s,c,d){this.ngZone=t,this.dialogRef=i,this.router=r,this._utilService=n,this._integrationService=s,this.data=c,this.genericErrMsg="",this.genericErr=!1,this.sessionStorage=d,this.integrationId=c.selectedIntegration.orgIntegrationId,this.integrationObj=c.selectedIntegration}editOrgClientIntegration(){var t=this.sessionStorage.getObject("cattree");this._integrationService.updateClientIntegrationDetail({newClientIntegrationId:this.integrationId,currentClientIntegrationId:this.integrationObj.orgIntegrationId,clientIntegrationName:this.integrationObj.integrationName,orgId:this.integrationObj.orgId,orgName:this.integrationObj.orgName,userAccess:t[this.integrationObj.orgName].orgUserAccess}).subscribe(n=>{console.log(n);let s={event:"edit_org_integrnapp","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.integrationObj.orgId,"dlv-option_id_selected":this.integrationObj.integrationName};window.dataLayer.push(s),this.dialogRef.close(!0)},n=>{this.genericErr=!0,this.genericErrMsg=n&&n.error?n.error.statusMessage:""})}close(){this.ngZone.run(()=>{this.dialogRef.close(!1)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(A.F0),e.Y36(S.f),e.Y36(fe.V),e.Y36(u.WI),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:16,vars:2,consts:[["mat-dialog-title",""],["id","editorgintegrn-close","mat-button","",3,"click"],["mat-dialog-content",""],["name","form","novalidate","",3,"ngSubmit"],[4,"ngIf"],["matInput","","name","integrationId","required","",3,"ngModel","ngModelChange"],["id","editorgintegrn-cancl","type","button","mat-button","",3,"click"],["id","editorgintegrn-update","type","submit","color","primary","mat-raised-button","","cdkFocusInitial",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Edit Client Integration "),e.TgZ(2,"button",1),e.NdJ("click",function(){return i.close()}),e.TgZ(3,"mat-icon"),e._uU(4,"close"),e.qZA()()(),e.TgZ(5,"div",2),e._uU(6,"Current Integration Organization ID"),e.qZA(),e.TgZ(7,"form",3),e.NdJ("ngSubmit",function(){return i.editOrgClientIntegration()}),e.YNc(8,No,2,1,"mat-error",4),e.TgZ(9,"mat-form-field")(10,"input",5),e.NdJ("ngModelChange",function(n){return i.integrationId=n}),e.qZA()(),e.TgZ(11,"mat-dialog-actions")(12,"button",6),e.NdJ("click",function(){return i.close()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",7),e._uU(15," Update "),e.qZA()()()),2&t&&(e.xp6(8),e.Q6J("ngIf",i.genericErr),e.xp6(2),e.Q6J("ngModel",i.integrationId))},dependencies:[v.O5,y.TO,y.KE,k.Nt,Z.lW,u.uh,u.xY,u.H8,I.Hw,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.On,l.F],styles:[".profile-page[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;position:relative;width:90%;height:90%;max-width:900px;margin:0 auto 30px;overflow-y:auto}.profile-item[_ngcontent-%COMP%]{margin:10px 10px 60px}.profile-item[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{width:100%}.profile-item[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{margin:16px}.profile-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:34px;margin:10px}.account-details[_ngcontent-%COMP%]{width:90%;margin:0 auto}.account-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px}
1.item-name[_ngcontent-%COMP%]{color:#a9a9a9;width:100%;display:inline-block;text-align:left}.item-value[_ngcontent-%COMP%]{color:var(--primarytextcolor);text-align:center;width:100%}.item-checkbox[_ngcontent-%COMP%]{display:block;margin:10px auto;width:90%}.items-divider[_ngcontent-%COMP%]{width:80%;margin:20px 10%;position:relative}.close-cross[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:0;width:40px;min-width:40px}.button-center[_ngcontent-%COMP%]{margin:10px auto;display:block}.button-right[_ngcontent-%COMP%]{float:right}.manage-org[_ngcontent-%COMP%], .orgUserTable[_ngcontent-%COMP%]{width:100%}.orgUserTable[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--secondarytextcolor)}.users-table[_ngcontent-%COMP%]{width:99%;margin:0 auto}.my-account-propertynames[_ngcontent-%COMP%]{font-weight:700}.org-role-padding[_ngcontent-%COMP%]{padding-bottom:15px}.org-name[_ngcontent-%COMP%], .orgname-title[_ngcontent-%COMP%]{color:var(--primarytextcolor)}.centerize-vertical-stack[_ngcontent-%COMP%]{min-width:150px;max-width:500px;width:100%;margin:10px auto;padding:0 20px;display:flex;align-content:center;justify-content:space-around;flex-direction:column;box-sizing:border-box}.eachorgproperty[_ngcontent-%COMP%]{display:flex;justify-content:center;-webkit-box-align:center;flex-direction:column;align-items:center;border-bottom:1px solid lightgray;margin-bottom:20px}.orgLogoUrl-div[_ngcontent-%COMP%]{width:100%}#uploadedImage[_ngcontent-%COMP%]{background-position:center center;background-size:contain;background-repeat:no-repeat;width:150px;height:50px;margin:20px auto;border:1px dotted gray}.icon-adjust-five-top[_ngcontent-%COMP%]{position:absolute;top:5px}.instructions-para[_ngcontent-%COMP%]{margin:15px}.file-selector[_ngcontent-%COMP%]{margin:20px}.profile-page[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{margin-left:2px;margin-right:2px}.orgCredits[_ngcontent-%COMP%] .creditDivs[_ngcontent-%COMP%], .orgCredits[_ngcontent-%COMP%] .creditButtons[_ngcontent-%COMP%]{margin:20px}.userButton[_ngcontent-%COMP%]{margin-right:20px}#creditcard-section[_ngcontent-%COMP%], #addCreditCard[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.user-table-error[_ngcontent-%COMP%]{margin-bottom:10px}.user-image[_ngcontent-%COMP%]{width:100px;height:100px;box-sizing:border-box;margin:10px auto;display:flex;justify-content:space-around;text-align:center;flex-direction:column;position:relative}.user-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;box-sizing:border-box;z-index:-2;background-color:#d3d3d3}.userimageedit[_ngcontent-%COMP%]{color:#d3d3d3;position:absolute;bottom:0;right:-17px;cursor:pointer}.profile-integration[_ngcontent-%COMP%]{text-align:center}.profile-integration[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.profile-integration[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.profile-integration[_ngcontent-%COMP%] .mat-column-integrationName[_ngcontent-%COMP%]{width:130px;text-align:start}.profile-integration[_ngcontent-%COMP%] .mat-column-orgIntegrationId[_ngcontent-%COMP%]{width:150px;background-color:#fffbeb}.profile-integration[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%]{text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditName[_ngcontent-%COMP%]{width:130px;text-align:start}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditCount[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditUsageCount[_ngcontent-%COMP%]{width:100px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-expiryDate[_ngcontent-%COMP%]{width:120px;text-align:center;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%]{text-align:center}.manage-third-party-api[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-third-party-api[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiName[_ng
1content-%COMP%]{width:100px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiEndpoint[_ngcontent-%COMP%]{width:200px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiKey[_ngcontent-%COMP%]{width:70px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-isEnabled[_ngcontent-%COMP%]{width:70px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:100px;text-align:center}.credits-first-footer-row[_ngcontent-%COMP%]{font-weight:700}.manage-users[_ngcontent-%COMP%]{text-align:start;height:250px}.manage-users[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-users[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-users[_ngcontent-%COMP%] .mat-column-firstName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-lastName[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-roleName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;background-color:#fffbeb}.end-status[_ngcontent-%COMP%]{text-align:start;height:250px}.end-status[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.end-status[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.end-status[_ngcontent-%COMP%] .mat-column-displayName[_ngcontent-%COMP%]{width:130px;text-align:center}.end-status[_ngcontent-%COMP%] .mat-column-endStatus[_ngcontent-%COMP%]{width:130px;text-align:center;background-color:#fffbeb}.end-status[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.add-more-users[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;flex-direction:column;border-top:1px solid lightgray}.add-single-user[_ngcontent-%COMP%], .import-multiple-users[_ngcontent-%COMP%]{padding:0 20px}#csvFileUpload[_ngcontent-%COMP%]{margin:20px auto;display:block}.org-user-table-success[_ngcontent-%COMP%]{margin:10px;color:green;font-weight:500}.creditspanelcontainer[_ngcontent-%COMP%]{padding:10px}.image-cropper-container[_ngcontent-%COMP%]{width:300px!important;overflow:hidden!important}.custom-cropped-image[_ngcontent-%COMP%]{width:150px!important;height:50px}.buttons-container[_ngcontent-%COMP%], .cropper-tools-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-around!important;align-items:center!important;padding:10px!important;margin:20px 0!important}.croppertool-button[_ngcontent-%COMP%]{background:transparent;margin:3px}.cropper-rotation-slider[_ngcontent-%COMP%]{margin:8px;width:200px}.instruction-panels[_ngcontent-%COMP%]{width:90%;margin:10px auto}.integration-instructions[_ngcontent-%COMP%]{overflow-y:auto}.integrations-section[_ngcontent-%COMP%]{width:100%}.integration-details[_ngcontent-%COMP%], .integration-instructions[_ngcontent-%COMP%]{height:400px;overflow:auto}.each-integration[_ngcontent-%COMP%] .mat-tab-label-content[_ngcontent-%COMP%]{color:#673ab7}.integration-details-toggle[_ngcontent-%COMP%]{margin:10px 20px}.integration-details-inputfield[_ngcontent-%COMP%]{margin:0 20px}"]}),o})();function ko(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg,"\n")}}let qo=(()=>{class o{constructor(t,i,r,n){this.ngZone=t,this.dialogRef=i,this._orgService=r,this.data=n,this.genericErrMsg="",this.genericErr=!1,this.orgName="",this.endStatus="",this.orgName=n.orgName}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}addEndStatus(t){return this.sub=this._orgService.saveCustomEndStatus({customEndStatus:t,orgName:this.data.orgName}).subscribe(r=>{this.dialogRef.close(r.responseBody)},r=>{this.genericErr=!0,console.log(r),this.genericErrMsg=r&&r.error?r.error.statusMessage:""}),this.dialogRef.afterClosed()}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(W.Q),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:10,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"full-width"],["matInput","","placeholder","i.e. Completed","name","endStatus","required","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"common-modal-buttons"],["
1id","addendstdil-cancl","type","button","mat-button","",3,"click"],["id","addendstdil-save","type","button","cdkFocusInitial","","mat-raised-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Add Custom End Status"),e.qZA(),e.YNc(2,ko,2,1,"mat-error",1),e.TgZ(3,"mat-form-field",2)(4,"input",3),e.NdJ("ngModelChange",function(n){return i.endStatus=n}),e.qZA()(),e.TgZ(5,"div",4)(6,"button",5),e.NdJ("click",function(){return i.close()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.addEndStatus(i.endStatus)}),e._uU(9,"SAVE"),e.qZA()()),2&t&&(e.xp6(2),e.Q6J("ngIf",i.genericErr),e.xp6(2),e.Q6J("ngModel",i.endStatus))},dependencies:[v.O5,y.TO,y.KE,k.Nt,Z.lW,u.uh,u.H8,l.Fj,l.JJ,l.Q7,l.On],encapsulation:2}),o})();var O=g(52931),Lo=g(56871),Fo=g(79814),Jo=g(82345),Yo=g(37436),Bo=g(58704),le=g(95698),ce=g(54004);function Go(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Custom CSS cannot be validated. "),e.qZA())}function Qo(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Go,2,0,"mat-error",9),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.customCssForm.controls.customCss.errors.pattern)}}function Ho(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function zo(o,a){if(1&o&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.successMsg," ")}}let Wo=(()=>{class o{constructor(t,i,r,n,s,c){this.ngZone=t,this.dialogRef=i,this._orgService=n,this._utilService=s,this.data=c,this.customCss="",this.orgName="",this.genericErr=!1,this.genericErrMsg="",this.successMsg="",this.loading=!1,this.sessionStorage=r,this.orgId=c.orgId,this.orgName=c.orgName,this.customCss=c.customCss}ngOnInit(){this.customCssForm=new l.nJ({customCss:new l.p4("",[l.kI.pattern("^[^<]*$")])}),this.customCssForm.controls.customCss.setValue(this.customCss)}addUpdateOrgCustomCss(){this.loading=!0,this.successMsg="",this.genericErr=!1;let t={orgId:this.orgId,propertyName:"ORG_CUSTOM_CSS",customCss:this.customCssForm.get("customCss").value};this._orgService.saveOrganizationProperties(t).subscribe(i=>{this.successMsg="Successfully updated your organization custom css.",this.customCss=i.responseBody.customCss;let r={event:"edit_custom_css","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(r),this.loading=!1,this.dialogRef.close({data:this.customCssForm.get("customCss").value})},i=>{this.genericErr=!0,this.genericErrMsg="We are unable to save Custom CSS at this time. Please try again later.",this.loading=!1})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(M.qo),e.Y36(W.Q),e.Y36(S.f),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:24,vars:9,consts:[[1,"dialogue-container"],[1,"custom-css-dialog"],["mat-button","",1,"close-cross",3,"click"],["matTooltip","Custom CSS that will override DeciZone's style",3,"matTooltipShowDelay","matTooltipHideDelay"],[1,"custom-css-dialog-header"],["name","form","novalidate","",3,"formGroup"],[1,"form-full-width"],["id","customcssformtextarea","matInput","","mdTextareaAutosize","","placeholder","Enter Custom CSS here","maxlength","2048","name","customCss","formControlName","customCss",1,"textarea-formnotes",3,"value"],["align","start"],[4,"ngIf"],["class","success-msg",4,"ngIf"],["mat-dialog-actions","",1,"common-modal-buttons"],["id","customcssdlg-close","type","button","mat-button","",3,"click"],["id","customcssdlg-save","type","button","cdkFocusInitial","","mat-raised-button","",3,"disabled","click"],[1,"success-msg"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){return i.close()}),e.TgZ(3,"mat-icon"),e._uU(4,"close"),e.qZA()(),e.TgZ(5,"p",3)(6,"strong",4)(7,"mat-icon"),e._uU(8,"question_answer"),e.qZA(),e._uU(9),e.qZA()(),e.TgZ(10,"form",5)(11,"mat-form-field",6)(12,"textarea",7),e._uU(13," "),e.qZA(),e.TgZ(14,"mat-hint",8),e._uU(15,"Only CSS without any html elements. "),e.qZA()(),e.YNc(16,Qo,2,1,"div",9),e.YNc(17,Ho,2,1,"mat-error",9),e.YNc(18,zo,2,1,"div",10),e.TgZ(19,"div",11)(20,"button",12),e.NdJ("click",function(){return i.close()}),e._uU(21," Cancel "),e.qZA(),e.TgZ(22,"button",13),e.NdJ("click",function(){return i.addUpdateOrgCustomCss()}),e._uU(23," Save CSS "),e.qZA()()()()()),2&t&&(e.xp6(5),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(4),e.hij(" Custom CSS for your Organization: ",i.orgName," "),e.xp6(1),e.Q6J("formGroup",i.customCssForm),e.xp6(2),e.Q6J("value",i.customCss),e.xp6(4),e.Q6J("ngIf",i.customCssForm.controls.customCss.errors&&(i.customCssForm.controls.customCss.dirty||i.customCssForm.controls.customCss.touched)),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(1),e.Q6J("ngIf",i.successMsg),e.xp6(4),e.Q6J("disabled",i.loading||i.customCssForm.invali
1d))},dependencies:[v.O5,l._Y,l.Fj,l.JJ,l.JL,l.nD,l.sg,l.u,y.TO,y.KE,y.bx,k.Nt,Z.lW,u.H8,I.Hw,oe.gM],styles:[".custom-css-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;overflow:auto;height:100%}.custom-css-dialog-header[_ngcontent-%COMP%]{color:var(--primarycolor)}.common-modal-buttons[_ngcontent-%COMP%]{margin-bottom:0!important}.textarea-formnotes[_ngcontent-%COMP%]{flex-grow:5}#customcssformtextarea[_ngcontent-%COMP%]{height:120px}"]}),o})(),Ko=(()=>{class o{constructor(t){this.dialog=t}open(t){this.dialogRef=this.dialog.open(Wo,{width:"350px",data:{orgId:t.orgId,orgName:t.orgName,customCss:t.customCss,userAccess:t.userAccess}})}confirmed(){return this.dialogRef.afterClosed().pipe((0,le.q)(1),(0,ce.U)(t=>t))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(u.uw))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var Ce=g(90455);function jo(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function Vo(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Use only these [a-z, A-Z, 0-9, _?'.,-] and Max 50 characters. "),e.qZA())}function $o(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Vo,2,0,"mat-error",7),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.apiCredForm.controls.apiName.errors.pattern)}}function Xo(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," Valid URL must start with https:// "),e.qZA())}function ei(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Xo,2,0,"mat-error",7),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.apiCredForm.controls.apiEndpoint.errors.pattern)}}function ti(o,a){1&o&&(e.TgZ(0,"div")(1,"mat-error"),e._uU(2," API Key is required "),e.qZA()())}function oi(o,a){1&o&&e._UZ(0,"mat-spinner",22)}const ii=function(){return{standalone:!0}};let ri=(()=>{class o{constructor(t,i,r,n){this.ngZone=t,this.dialogRef=i,this.data=r,this._orgService=n,this.genericErrMsg="",this.genericErr=!1,this.loading=!1,this.isEnabled=!0,this.color="accent"}ngOnInit(){this.apiCredForm=new l.nJ({apiName:new l.p4("",[l.kI.required,l.kI.pattern("^[a-zA-Z0-9\\- ]+([a-zA-Z0-9\\- ])*$")]),apiEndpoint:new l.p4("",[l.kI.required,z.dN.url]),apiKey:new l.p4("",[l.kI.required,l.kI.maxLength(256)])}),this.data.selectedApi&&(this.apiCredForm.controls.apiName.setValue(this.data.selectedApi.apiName),this.apiCredForm.controls.apiEndpoint.setValue(this.data.selectedApi.apiEndpoint),this.apiCredForm.controls.apiKey.setValue(this.data.selectedApi.apiKey),this.selectedApiId=this.data.selectedApi.id,this.isEnabled="Y"===this.data.selectedApi.isEnabled)}saveApiCredentialsDetails(){this._orgService.saveOrgThirdPartyApiCredDetails({orgId:this.data.orgId,userAccess:this.data.userAccess,thirdPartyApiCredentialId:this.selectedApiId,apiName:this.apiCredForm.controls.apiName.value,apiEndpoint:this.apiCredForm.controls.apiEndpoint.value,apiKey:this.apiCredForm.controls.apiKey.value,isEnabled:this.isEnabled?"Y":"N"}).subscribe(i=>{console.log("api endpoint got saved"),this.dialogRef.close(i.responseBody)},i=>{console.log("error in saving api endpoint")})}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI),e.Y36(W.Q))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:42,vars:15,consts:[[1,"dz-dialog-subcontainer","add-api-cred"],["id","apicreddilg-close","mat-button","",1,"close-cross","dz-dialog-close",3,"click"],[1,"dz-dialog-top"],["mat-dialog-title","",1,"editformtitle"],[1,"dz-dialog-scrolling-body"],[1,"small-text"],[1,"the-form",3,"formGroup"],[4,"ngIf"],[1,"form-full-width"],["type","text","matInput","","placeholder","Enter API Name","maxlength","50","formControlName","apiName","name","apiName","required",""],["apiName",""],["align","start"],["align","end"],["matInput","","placeholder","Enter API Endpoint","maxlength","512","name","apiEndpoint","formControlName","apiEndpoint","required",""],["apiEndpoint",""],["matInput","","placeholder","Enter API Key","maxlength","256","name","apiKey","formControlName","apiKey","required",""],["apiKey",""],["id","enableToggle","aria-label","Toggle this button to enable or disable this API.",3,"ngModelOptions","ngModel","checked","color","ngModelChange"],["mat-dialog-actions","",1,"dz-dialog-bottom","dialogue-buttons"],["
1id","apicreddilg-cancl","type","button","mat-button","",3,"click"],["id","apicreddilg-save","type","button","mat-raised-button","","cdkFocusInitial","",3,"disabled","click"],["class","app-spinner",4,"ngIf"],[1,"app-spinner"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return i.close()}),e.TgZ(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"div",2)(5,"p",3),e._uU(6,"Add API"),e.qZA()(),e.TgZ(7,"div",4)(8,"p",5),e._uU(9,"Add details for 3rd party API endpoints here."),e.qZA(),e.TgZ(10,"form",6),e.YNc(11,jo,2,1,"mat-error",7),e.TgZ(12,"mat-form-field",8),e._UZ(13,"input",9,10),e.TgZ(15,"mat-hint",11)(16,"strong"),e._uU(17,"Use only these [a-z, A-Z, 0-9, _?'.,-] and Max 50 characters!"),e.qZA()(),e.TgZ(18,"mat-hint",12),e._uU(19),e.qZA()(),e.YNc(20,$o,2,1,"div",7),e.TgZ(21,"mat-form-field",8),e._UZ(22,"textarea",13,14),e.TgZ(24,"mat-hint",12),e._uU(25),e.qZA()(),e.YNc(26,ei,2,1,"div",7),e.TgZ(27,"mat-form-field",8),e._UZ(28,"textarea",15,16),e.TgZ(30,"mat-hint",12),e._uU(31),e.qZA()(),e.YNc(32,ti,3,0,"div",7),e.TgZ(33,"div")(34,"mat-slide-toggle",17),e.NdJ("ngModelChange",function(n){return i.isEnabled=n}),e._uU(35," Enable API "),e.qZA()()()(),e.TgZ(36,"div",18)(37,"button",19),e.NdJ("click",function(){return i.close()}),e._uU(38," Cancel "),e.qZA(),e.TgZ(39,"button",20),e.NdJ("click",function(){return i.saveApiCredentialsDetails()}),e.YNc(40,oi,1,0,"mat-spinner",21),e._uU(41," SAVE "),e.qZA()()()),2&t){const r=e.MAs(14),n=e.MAs(23),s=e.MAs(29);e.xp6(10),e.Q6J("formGroup",i.apiCredForm),e.xp6(1),e.Q6J("ngIf",i.genericErr),e.xp6(8),e.hij("",(null==r.value?null:r.value.length)||0," / 50"),e.xp6(1),e.Q6J("ngIf",i.apiCredForm.controls.apiName.errors&&(i.apiCredForm.controls.apiName.dirty||i.apiCredForm.controls.apiName.touched)),e.xp6(5),e.hij("",(null==n.value?null:n.value.length)||0," / 512"),e.xp6(1),e.Q6J("ngIf",i.apiCredForm.controls.apiEndpoint.errors&&(i.apiCredForm.controls.apiEndpoint.dirty||i.apiCredForm.controls.apiEndpoint.touched)),e.xp6(5),e.hij("",(null==s.value?null:s.value.length)||0," / 256"),e.xp6(1),e.Q6J("ngIf",i.apiCredForm.controls.apiKey.errors&&(i.apiCredForm.controls.apiKey.dirty||i.apiCredForm.controls.apiKey.touched)),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,ii))("ngModel",i.isEnabled)("checked",i.isEnabled)("color",i.color),e.xp6(5),e.Q6J("disabled",i.apiCredForm.invalid),e.xp6(1),e.Q6J("ngIf",i.loading)}},dependencies:[v.O5,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.nD,l.On,l.sg,l.u,y.TO,y.KE,y.bx,k.Nt,Z.lW,u.uh,u.H8,I.Hw,H.Ou,Ce.Rr]}),o})(),ni=(()=>{class o{constructor(t){this.dialog=t}open(t){this.dialogRef=this.dialog.open(ri,{height:"600px",width:"500px",data:{userAccess:t.userAccess,orgId:t.orgId,selectedApi:t.selectedApi}})}confirmed(){return this.dialogRef.afterClosed().pipe((0,le.q)(1),(0,ce.U)(t=>t))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(u.uw))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ai=(()=>{class o{constructor(t,i,r){this.ngZone=t,this.dialogRef=i,this.data=r,this.title=r.title,this.message=r.message}onClickClose(){this.ngZone.run(()=>{this.dialogRef.close()})}confirmYes(){this.ngZone.run(()=>{this.dialogRef.close(this.data.answer)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.R0b),e.Y36(u.so),e.Y36(u.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ng-component"]],decls:9,vars:2,consts:[["mat-dialog-actions","",1,"common-modal-buttons"],["type","button","mat-button","",3,"click"],["type","button","mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h3"),e._uU(1),e.qZA(),e.TgZ(2,"p"),e._uU(3),e.qZA(),e.TgZ(4,"div",0)(5,"button",1),e.NdJ("click",function(){return i.onClickClose()}),e._uU(6,"Cancel"),e.qZA(),e.TgZ(7,"button",2),e.NdJ("click",function(){return i.confirmYes()}),e._uU(8,"Confirm"),e.qZA()()),2&t&&(e.xp6(1),e.Oqu(i.title),e.xp6(2),e.Oqu(i.message))},dependencies:[Z.lW,u.H8],encapsulation:2}),o})(),si=(()=>{class o{constructor(t){this.dialog=t}open(t){this.dialogRef=this.dialog.open(ai,{width:"300px",data:{title:t.title,message:t.message,answer:t.answer}}
1)}confirmed(){return this.dialogRef.afterClosed().pipe((0,le.q)(1),(0,ce.U)(t=>t))}}return o.\u0275fac=function(t){return new(t||o)(e.LFG(u.uw))},o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var $=g(73546),re=g(77331),X=g(37084),de=g(96338),li=g(44850),ci=g(73162),ve=g(3848),di=g(83683);function gi(o,a){if(1&o&&(e.TgZ(0,"p")(1,"strong"),e._uU(2,"To complete this, "),e.qZA(),e._uU(3),e.qZA()),2&o){const t=e.oxw();e.xp6(3),e.hij(" ",t.selectedSkillObj.howTo,"")}}function ui(o,a){if(1&o&&(e.TgZ(0,"p")(1,"strong")(2,"mat-icon"),e._uU(3,"ondemand_video"),e.qZA(),e._uU(4," Watch "),e.qZA(),e._UZ(5,"span",3),e.qZA()),2&o){const t=e.oxw();e.xp6(5),e.Q6J("innerHTML",t.selectedSkillObj.step,e.oJD)}}const _i=["fileInput"];function pi(o,a){1&o&&e._UZ(0,"img",50)}function mi(o,a){if(1&o&&e._UZ(0,"img",51),2&o){const t=e.oxw();e.s9C("src",t.userProfile.avatar,e.LSH)}}function hi(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1," - "),e._UZ(2,"br"),e._uU(3),e.qZA()),2&o){const t=e.oxw();e.xp6(3),e.hij(" [\xa0 ",t.landingPagePrefValue," \xa0]")}}const fi=function(o,a,t){return{"skill-completed":o,"skill-not-completed":a,"org-user-skill":t}};function Ci(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-list-item",52)(1,"mat-icon",53),e._uU(2,"done"),e.qZA(),e.TgZ(3,"p",54),e.NdJ("click",function(){const n=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.openBottomSheet(n))}),e._uU(4),e.qZA()()}if(2&o){const t=a.$implicit;e.Q6J("ngClass",e.kEZ(2,fi,t.isCompleted,!t.isCompleted,"ORG"===t.type)),e.xp6(4),e.Oqu(t.name)}}const ye=function(o,a,t){return{"skill-completed":o,"skill-not-completed":a,"admin-skill":t}};function vi(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-list-item",52)(1,"mat-icon",53),e._uU(2,"done"),e.qZA(),e.TgZ(3,"p",54),e.NdJ("click",function(){const n=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.openBottomSheet(n))}),e._uU(4),e.qZA()()}if(2&o){const t=a.$implicit;e.Q6J("ngClass",e.kEZ(2,ye,t.isCompleted,!t.isCompleted,"ORGADMIN"===t.type)),e.xp6(4),e.Oqu(t.name)}}function yi(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-list-item",52)(1,"mat-icon",53),e._uU(2,"done"),e.qZA(),e.TgZ(3,"p",54),e.NdJ("click",function(){const n=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.openBottomSheet(n))}),e._uU(4),e.qZA()()}if(2&o){const t=a.$implicit;e.Q6J("ngClass",e.kEZ(2,ye,t.isCompleted,!t.isCompleted,"ORGADMIN"===t.type)),e.xp6(4),e.Oqu(t.name)}}function bi(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function Ti(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function xi(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Ai(o,a){1&o&&(e.TgZ(0,"p")(1,"strong"),e._uU(2,"NOTE:"),e.qZA(),e._uU(3,"You are an administrator of an organization, please contact DeciZone Support to deactivate your account. "),e.qZA())}function Ui(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Zi(o,a){1&o&&(e.TgZ(0,"p")(1,"strong"),e._uU(2,"NOTE:"),e.qZA(),e._uU(3,"You are an administrator of an organization, please contact DeciZone Support to delete your account. "),e.qZA())}function Pi(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(t.orgRoleErrorMsg)}}function Oi(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.AsE(" ",t.levelIdName," : ",t.roleName," ")}}function wi(o,a){1&o&&(e.TgZ(0,"span"),e._uU(1,", "),e.qZA())}function Mi(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,wi,2,0,"span",15),e.qZA()),2&o){const t=a.$implicit,i=a.index,r=e.oxw(5);e.xp6(1),e.AsE(" ",t.displayName," (",t.emailAddress,")"),e.xp6(1),e.Q6J("ngIf",i+1<r.orgSuperAdmin.length)}}function Ii(o,a){if(1&o&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Administrator:"),e.qZA(),e.YNc(3,Mi,3,3,"span",57),e.qZA()),2&o){const t=e.oxw(4);e.xp6(3),e.Q6J("ngForOf",t.orgSuperAdmin)}}function Di(o,a){1&o&&(e.TgZ(0,"span"),e._uU(1,", "),e.qZA())}function Si(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,Di,2,0,"span",15),e.qZA()),2&o){const t=a.$implicit,i=a.index,r=e.oxw(5);e.xp6(1),e.AsE(" ",t.displayName," (",t.emailAddress,")"),e.xp6(1),e.Q6J("ngIf",i+1<r.orgSubAdmin.length)}}function Ei(o,a){if(1&o&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Sub Admin:"),e.qZA(),e.YNc(3,Si,3,3,"span",57),e.qZA()),2&o){const t=e.oxw(4);e.xp6(3),e.Q6J("ngForOf",t.orgSubAdmin)}}function Ni(o,a){1&o&&(e.TgZ(0,"span"),e._uU(1,", "),e.qZA())}function Ri(o,a){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,Ni,2,0,"span",15),e.qZA()),2&o){const t=a.$implicit,i=a.index,r=e.oxw(5);e.xp6(1),e.AsE(" ",t.displayName," (",t.emailAddress,")"),e.xp6(1),e.Q6J("ngIf",i+1<r.orgEditor.length)}}function ki(o,a){if(1&o&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Editor:"),e.qZA(),e.YNc(3,Ri,3,3,"span",57),e.qZA()),2&o){const t=e.oxw(4);e.xp6(3),e.Q6J("ngForOf",t.orgEditor)}}function qi(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Ii,4,1,"div",15),e.YNc(2,Ei,4,1,"div",15),e.YNc(3,ki,4,1,"div",15),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.orgSuperAdmin.length>0),e.xp6(1),e.Q6J("ngIf",t.orgSubAdmin.length>0),e.xp6(1),e.Q6J("ngIf",t.orgEditor.length>0)}}function Li(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-form-field",153)(1,"mat-label"),e._uU(2,"Filter"),e.qZA(),e.TgZ(3,"input",154),e.NdJ("keyup",function(r){e.CHM(t);const n=e.oxw(4);return r.stopPropagation(),e.KtG(n.applyOrgUserFilter(r))}),e.qZA()()}}function Fi(o,a){if(1&o&&(e.TgZ(0,"div",155),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgUserTableMsg," ")}}function Ji(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," First "),e.qZA())}function Yi(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.firstName," ")}}function Bi(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," Last "),e.qZA())}function Gi(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.lastName," ")}}function Qi(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," Role "),e.qZA())}function Hi(o,a){if(1&o&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.roleName," ")}}function zi(o,a){if(1&o&&(e.TgZ(0,"td",170),e.YNc(1,Hi,2,1,"div",57),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.Q6J("ngForOf",t.userOrgRoleBeanList)}}function Wi(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," Status "),e.qZA())}function Ki(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ","ORG_INVITED"===t.status?"INVITED":t.status," ")}}function ji(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1,"Actions"),e.qZA())}function Vi(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function $i(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Xi(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",175),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(3).$implicit,c=e.oxw(2);return r.stopPropagation(),e.KtG(c.reinviteUser(n,s))}),e.YNc(1,$i,1,0,"mat-spinner",40),e.TgZ(2,"mat-icon"),e._uU(3,"forward_to_inbox"),e.qZA()()}if(2&o){const t=e.oxw().$implicit,i=e.oxw(5);e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(1),e.Q6J("ngIf",i.reinviting&&i.selecteUserId===t.userId)}}function er(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"td",170)(1,"button",172),e.NdJ("click",function(r){const s=e.CHM(t).$implicit,c=e.oxw(3).$implicit,d=e.oxw(2);return r.stopPropagation(),e.KtG(d.editUserRole(s,c))}),e.TgZ(2,"mat-icon"),e._uU(3,"mode_edit"),e.qZA()(),e.TgZ(4,"button",173),e.NdJ("click",function(r){const s=e.CHM(t).$implicit,c=e.oxw(3).$implicit,d=e.oxw(2);return r.stopPropagation(),e.KtG(d.removeUser(s,c))}),e.YNc(5,Vi,1,0,"mat-spinner",40),e.TgZ(6,"mat-icon"),e._uU(7,"delete_forever"),e.qZA()(),e.YNc(8,Xi,4,3,"button",174),e.qZA()}if(2&o){const t=a.$implicit,i=e.oxw(5);e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("disabled",i.checkIfOrgSuperAdmin(t)),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("disabled",i.checkIfOrgSuperAdmin(t)),e.xp6(1),e.Q6J("ngIf",i.removeUserLoading&&i.selecteUserId===t.userId),e.xp6(3),e.Q6J("ngIf","ORG_INVITED"===t.status||"DECLINED"===t.status)}}function tr(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," Email "),e.qZA())}function or(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.userEmail," ")}}function ir(o,a){1&o&&e._UZ(0,"tr",176)}function rr(o,a){1&o&&e._UZ(0,"tr",177)}function nr(o,a){if(1&o&&(e.TgZ(0,"div",156),e.NdJ("click",function(i){return i.stopPropagation()}),e.TgZ(1,"table",157),e.ynx(2,158),e.YNc(3,Ji,2,0,"th",159),e.YNc(4,Yi,2,1,"td",160),e.BQk(),e.ynx(5,161),e.YNc(6,Bi,2,0,"th",159),e.YNc(7,Gi,2,1,"td",160),e.BQk(),e.ynx(8,162),e.YNc(9,Qi,2,0,"th",159),e.YNc(10,zi,2,1,"td",160),e.BQk(),e.ynx(11,163),e.YNc(12,Wi,2,0,"th",159),e.YNc(13,Ki,2,1,"td",160),e.BQk(),e.ynx(14,164),e.YNc(15,ji,2,0,"th",165),e.YNc(16,er,9,8,"td",160),e.BQk(),e.ynx(17,166),e.YNc(18,tr,2,0,"th",159),e.YNc(19,or,2,1,"td",160),e.BQk(),e.YNc(20,ir,1,0,"tr",167),e.YNc(21,rr,1,0,"tr",168),e.qZA()()),2&o){const t=e.oxw(4);e.xp6(1),e.Q6J("dataSource",t.orgUserListDataSource),e.xp6(19),e.Q6J("matHeaderRowDef",t.orgUserDisplayColumns)("matHeaderRowDefSticky",!0),e.xp6(1),e.Q6J("matRowDefColumns",t.orgUserDisplayColumns)}}const ar=function(){return[5,10,25,100]};function sr(o,a){1&o&&(e.TgZ(0,"mat-paginator",178),e.NdJ("click",function(i){return i.stopPropagation()}),e.qZA()),2&o&&e.Q6J("pageIndex",0)("pageSize",100)("pageSizeOptions",e.DdM(3,ar))}function lr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function cr(o,a){if(1&o&&(e.TgZ(0,"mat-error",179),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.genericErrMsg," ")}}function dr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.ordDisplayNameSuccessMsg," ")}}function gr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgCustomKeyNameSuccessMsg," ")}}function ur(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgCustomKeyValueSuccessMsg," ")}}function _r(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgWebsiteUrlSuccessMsg," ")}}function pr(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1," URL must starts with https:// "),e.qZA())}function mr(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,pr,2,0,"mat-error",15),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.orgWebsiteUrlForm.controls.orgWebsiteUrl.errors.pattern)}}function hr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgScreenTimeoutSuccessMsg," ")}}function fr(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1,"Minimum session timeout should be 3 minutes."),e.qZA())}function Cr(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1,"Maximum session timeout should be 180 minutes."),e.qZA())}function vr(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,fr,2,0,"mat-error",15),e.YNc(2,Cr,2,0,"mat-error",15),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.orgScreenTimeoutForm.controls.screenTimeout.errors.min),e.xp6(1),e.Q6J("ngIf",t.orgScreenTimeoutForm.controls.screenTimeout.errors.max)}}function yr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgDefaultLandingPageSuccessMsg," ")}}function br(o,a){if(1&o&&(e.TgZ(0,"mat-option",181),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Tr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgUserActivityRecordingSuccessMsg," ")}}function xr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgDefaultActivityRecordingPersistDaysSuccessMsg," ")}}function Ar(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1,"Minimum days to persist user activity should be 90."),e.qZA())}function Ur(o,a){1&o&&(e.TgZ(0,"mat-error"),e._uU(1,"Maximum days to persist user activity should be 120."),e.qZA())}function Zr(o,a){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Ar,2,0,"mat-error",15),e.YNc(2,Ur,2,0,"mat-error",15),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.errors.min),e.xp6(1),e.Q6J("ngIf",t.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.errors.max)}}function Pr(o,a){if(1&o&&(e.TgZ(0,"div",182),e._UZ(1,"div",183),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.Udp("background-image","url("+t.orgLogoUrl+")")}}function Or(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e._UZ(2,"br"),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.uploadErrMsg," ")}}function wr(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",194),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(5);return e.KtG(r.toggleContainWithinAspectRatio())}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_center_focus"),e.qZA()()}2&o&&e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Mr(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"button",195),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(5);return e.KtG(r.toggleContainWithinAspectRatio())}),e.TgZ(1,"mat-icon"),e._uU(2,"settings_overscan"),e.qZA()()}2&o&&e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ir(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",184)(1,"button",185),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.rotateRight())}),e.TgZ(2,"mat-icon"),e._uU(3,"rotate_90_degrees_cw"),e.qZA()(),e.TgZ(4,"button",186),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.rotateLeft())}),e.TgZ(5,"mat-icon"),e._uU(6,"rotate_90_degrees_ccw"),e.qZA()(),e.TgZ(7,"button",187),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.flipHorizontal())}),e.TgZ(8,"mat-icon"),e._uU(9,"switch_right"),e.qZA()(),e.TgZ(10,"button",188),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.flipVertical())}),e.TgZ(11,"mat-icon"),e._uU(12,"unfold_more"),e.qZA()(),e.YNc(13,wr,3,2,"button",189),e.YNc(14,Mr,3,2,"button",190),e.TgZ(15,"button",191),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.resetImage())}),e.TgZ(16,"mat-icon"),e._uU(17,"refresh"),e.qZA()(),e.TgZ(18,"button",192),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.zoomOut())}),e.TgZ(19,"mat-icon"),e._uU(20,"zoom_out"),e.qZA()(),e.TgZ(21,"button",193),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.zoomIn())}),e.TgZ(22,"mat-icon"),e._uU(23,"zoom_in"),e.qZA()()()}if(2&o){const t=e.oxw(4);e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("ngIf",!t.containWithinAspectRatio),e.xp6(1),e.Q6J("ngIf",t.containWithinAspectRatio),e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Dr(o,a){1&o&&(e.TgZ(0,"p"),e._uU(1,"Rotate Image"),e.qZA())}function Sr(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-slider",196),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(4);return e.KtG(n.rotation=r)})("change",function(){e.CHM(t);const r=e.oxw(4);return e.KtG(r.updateRotation())}),e._uU(1,"Rotate Image"),e.qZA()}if(2&o){const t=e.oxw(4);e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",t.thumbLabel)("ngModel",t.rotation)}}function Er(o,a){if(1&o&&(e.TgZ(0,"div")(1,"p"),e._uU(2,"Preview:"),e.qZA(),e._UZ(3,"img",197),e.qZA()),2&o){const t=e.oxw(4);e.xp6(3),e.Udp("border",t.croppedImage?"1px solid black":"none"),e.Q6J("src",t.croppedImage,e.LSH)}}function Nr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Rr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function kr(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",74)(1,"h3",75),e._uU(2,"Delete Current Logo"),e.qZA(),e.TgZ(3,"p",47),e._uU(4," If you have a custom Logo image uploaded, you can delete it here. When removed, the default DeciZone logo will be displayed unless you upload another custom logo. "),e.qZA(),e.TgZ(5,"button",198),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw(2).$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.deleteLogo(n))}),e.YNc(6,Rr,1,0,"mat-spinner",40),e._uU(7," Delete Existing Logo "),e.TgZ(8,"mat-icon"),e._uU(9,"delete_forever"),e.qZA()(),e._UZ(10,"br"),e.qZA()}if(2&o){const t=e.oxw(4);e.xp6(5
1),e.Q6J("disabled",t.logoDelete),e.xp6(1),e.Q6J("ngIf",t.logoDelete)}}function qr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Lr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Fr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Jr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Yr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Br(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Gr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Qr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Hr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function zr(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.orgAiPropertySuccessMsg," ")}}function Wr(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Kr(o,a){if(1&o&&(e.TgZ(0,"p",205),e._uU(1),e.qZA()),2&o){const t=e.oxw(5);e.xp6(1),e.hij(" AR credits used so far : ",t.activityRecordUsage," Credits ")}}function jr(o,a){if(1&o&&(e.TgZ(0,"p",205),e._uU(1," AR credits available : "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e._uU(4," Credits "),e.qZA()),2&o){const t=e.oxw(5);e.xp6(3),e.Oqu(t.activityRecordCreditRemaining)}}function Vr(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"mat-expansion-panel",199)(2,"mat-expansion-panel-header")(3,"mat-panel-title",200),e._uU(4,"Credits & Usage"),e.qZA()(),e.TgZ(5,"p",47),e._uU(6," The usage counts below are aggregated for your organization. "),e.qZA(),e._UZ(7,"br"),e.TgZ(8,"div",201)(9,"h3"),e._uU(10,"Activity Record (AR) Credits"),e.qZA(),e.TgZ(11,"p"),e._uU(12),e.qZA(),e.TgZ(13,"strong")(14,"a",202),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2).$implicit,n=e.oxw(2);return e.KtG(n.calculateOrgActivityRecordUsage(r))}),e.YNc(15,Wr,1,0,"mat-spinner",40),e._uU(16,"Show my usage "),e.qZA()(),e.YNc(17,Kr,2,1,"p",203),e.YNc(18,jr,5,1,"p",203),e.TgZ(19,"p",142),e._uU(20," Activity Record Credits do not expire, are non-transferable and are non-refundable. "),e.qZA(),e.TgZ(21,"button",204),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2).$implicit,n=e.oxw(2);return e.KtG(n.buyActivityRecordCredits(r))}),e._uU(22," Buy More Credits "),e.qZA(),e._UZ(23,"br"),e.qZA()(),e._UZ(24,"br"),e.qZA()}if(2&o){const t=e.oxw(4);e.xp6(12),e.hij("AR Credits accumulated : ",t.accumulatedArCredits,""),e.xp6(3),e.Q6J("ngIf",t.calculateUsage),e.xp6(2),e.Q6J("ngIf",t.showArCreditData),e.xp6(1),e.Q6J("ngIf",t.showArCreditData)}}function $r(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1,"Credit Type"),e.qZA())}function Xr(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.creditName," ")}}function en(o,a){1&o&&(e.TgZ(0,"td"),e._uU(1,"Total TDC Used"),e.qZA())}function tn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1," Available At Beginning "),e.qZA())}function on(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.creditCount," ")}}function rn(o,a){1&o&&e._UZ(0,"td",222)}function nn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1,"Used So Far"),e.qZA())}function an(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.creditUsageCount," ")}}function sn(o,a){if(1&o&&(e.TgZ(0,"td",222),e._uU(1),e.qZA()),2&o){const t=e.oxw(6);e.xp6(1),e.hij(" ",t.orgTotalTDCUsedCount," ")}}function ln(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1," Expiry Date (UTC/GMT) "),e.qZA())}function cn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.ALo(2,"date"),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,t.expiryDate,"MMM d, y")," ")}}function dn(o,a){1&o&&e._UZ(0,"td",222)}function gn(o,a){1&o&&e._UZ(0,"tr",176)}function un(o,a){1&o&&e._UZ(0,"tr",177)}function _n(o,a){1&o&&e._UZ(0,"tr",223)}function pn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1,"Credit Type"),e.qZA())}function mn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.creditName," ")}}function hn(o,a){1&o&&(e.TgZ(0,"td",222),e._uU(1," Total VAC Used "),e.qZA())}function fn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1," Available At Beginning "),e.qZA())}function Cn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.creditCount," ")}}function vn(o,a){1&o&&e._UZ(0,"td",222)}function yn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1,"Used So Far"),e.qZA())}function bn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.creditUsageCount," ")}}function Tn(o,a){if(1&o&&(e.TgZ(0,"td",222),e._uU(1),e.qZA()),2&o){const t=e.oxw(6);e.xp6(1),e.hij(" ",t.orgTotalVACUsedCount," ")}}function xn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1," Expiry Date (UTC/GMT) "),e.qZA())}function An(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.ALo(2,"date"),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,t.expiryDate,"MMM d, y")," ")}}function Un(o,a){1&o&&e._UZ(0,"td",222)}function Zn(o,a){1&o&&e._UZ(0,"tr",176)}function Pn(o,a){1&o&&e._UZ(0,"tr",177)}function On(o,a){1&o&&e._UZ(0,"tr",223)}function wn(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",209)(1,"p")(2,"span",210),e._uU(3," Subscription Plan:"),e.qZA(),e._uU(4),e.qZA(),e.TgZ(5,"p")(6,"span",210),e._uU(7," Subscription Status:"),e.qZA(),e._uU(8),e.ALo(9,"titlecase"),e.qZA(),e.TgZ(10,"p")(11,"span",210),e._uU(12," Current Billing Perio
1d:"),e.qZA(),e._uU(13),e.ALo(14,"date"),e.ALo(15,"date"),e.qZA(),e.TgZ(16,"p",47),e._uU(17," The usage counts below are aggregated for your organization for the current billing period. Here is a "),e.TgZ(18,"a",211),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(5);return e.KtG(r.showCreditsExplanation())}),e._uU(19,"quick explanation on all the types of credits."),e.qZA()(),e.TgZ(20,"h3"),e._uU(21,"TDC (Team Day Credits)"),e.qZA(),e.TgZ(22,"div",212)(23,"table",213),e.ynx(24,214),e.YNc(25,$r,2,0,"th",165),e.YNc(26,Xr,2,1,"td",160),e.YNc(27,en,2,0,"td",215),e.BQk(),e.ynx(28,216),e.YNc(29,tn,2,0,"th",165),e.YNc(30,on,2,1,"td",160),e.YNc(31,rn,1,0,"td",217),e.BQk(),e.ynx(32,218),e.YNc(33,nn,2,0,"th",165),e.YNc(34,an,2,1,"td",160),e.YNc(35,sn,2,1,"td",217),e.BQk(),e.ynx(36,219),e.YNc(37,ln,2,0,"th",165),e.YNc(38,cn,3,4,"td",160),e.YNc(39,dn,1,0,"td",217),e.BQk(),e.YNc(40,gn,1,0,"tr",220),e.YNc(41,un,1,0,"tr",168),e.YNc(42,_n,1,0,"tr",221),e.qZA()(),e._UZ(43,"br"),e.TgZ(44,"h3"),e._uU(45,"VAC (Visitor Activity Credits)"),e.qZA(),e.TgZ(46,"div",212)(47,"table",213),e.ynx(48,214),e.YNc(49,pn,2,0,"th",165),e.YNc(50,mn,2,1,"td",160),e.YNc(51,hn,2,0,"td",217),e.BQk(),e.ynx(52,216),e.YNc(53,fn,2,0,"th",165),e.YNc(54,Cn,2,1,"td",160),e.YNc(55,vn,1,0,"td",217),e.BQk(),e.ynx(56,218),e.YNc(57,yn,2,0,"th",165),e.YNc(58,bn,2,1,"td",160),e.YNc(59,Tn,2,1,"td",217),e.BQk(),e.ynx(60,219),e.YNc(61,xn,2,0,"th",165),e.YNc(62,An,3,4,"td",160),e.YNc(63,Un,1,0,"td",217),e.BQk(),e.YNc(64,Zn,1,0,"tr",220),e.YNc(65,Pn,1,0,"tr",168),e.YNc(66,On,1,0,"tr",221),e.qZA()(),e._UZ(67,"br"),e.qZA()}if(2&o){const t=e.oxw(5);e.xp6(4),e.hij(" \xa0 \xa0 ",t.selectedOrgSubscriptionPlan," "),e.xp6(4),e.hij(" \xa0 \xa0 ",e.lcZ(9,12,t.selectedOrgSubscriptionStatus)," "),e.xp6(5),e.AsE(" \xa0 \xa0 ",e.xi3(14,14,t.selectedOrgSubscriptionStart,"MMM d, y")," - ",e.xi3(15,17,t.selectedOrgSubscriptionEnd,"MMM d, y")," "),e.xp6(10),e.Q6J("dataSource",t.orgTdcCreditsUsageDataSource),e.xp6(17),e.Q6J("matHeaderRowDef",t.orgTdcCreditsUsageDisplayColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.orgTdcCreditsUsageDisplayColumns),e.xp6(1),e.Q6J("matFooterRowDef",t.orgTdcCreditsUsageDisplayColumns),e.xp6(5),e.Q6J("dataSource",t.orgVacCreditsUsageDataSource),e.xp6(17),e.Q6J("matHeaderRowDef",t.orgVacCreditsUsageDisplayColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.orgVacCreditsUsageDisplayColumns),e.xp6(1),e.Q6J("matFooterRowDef",t.orgVacCreditsUsageDisplayColumns)}}function Mn(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"mat-expansion-panel",206),e.NdJ("opened",function(){e.CHM(t);const r=e.oxw(2).$implicit,n=e.oxw(2);return e.KtG(n.getOrgCreditsDetails(r))}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title",207),e._uU(4,"Credits & Usage"),e.qZA()(),e.YNc(5,wn,68,20,"div",208),e.qZA(),e._UZ(6,"br"),e.qZA()}if(2&o){const t=e.oxw(4);e.xp6(5),e.Q6J("ngIf",!t.orgCreditsLoading)}}function In(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Dn(o,a){1&o&&(e.TgZ(0,"mat-icon",226),e._uU(1,"cancel"),e.qZA())}function Sn(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-chip",224),e.NdJ("removed",function(){const n=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.removeCustomTags("Salesforce",n))}),e._uU(1),e.YNc(2,Dn,2,0,"mat-icon",225),e.qZA()}if(2&o){const t=a.$implicit,i=e.oxw(4);e.Q6J("selectable",i.selectable)("removable",i.removable),e.xp6(1),e.hij(" ",t," "),e.xp6(1),e.Q6J("ngIf",i.removable)}}function En(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function Nn(o,a){1&o&&(e.TgZ(0,"mat-icon",226),e._uU(1,"cancel"),e.qZA())}function Rn(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-chip",227),e.NdJ("removed",function(){const n=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.removeCustomTags("Zendesk",n))}),e._uU(1),e.YNc(2,Nn,2,0,"mat-icon",225),e.qZA()}if(2&o){const t=a.$implicit,i=e.oxw(4);e.Q6J("removable",i.removable),e.xp6(1),e.hij(" ",t," "),e.xp6(1),e.Q6J("ngIf",i.removable)}}function kn(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function qn(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," API Name "),e.qZA())}function Ln(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.apiName," ")}}function Fn(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," API Endpoint "),e.qZA())}function Jn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.apiEndpoint," ")}}function Yn(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," API Key "),e.qZA())}function Bn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.apiKey," ")}}function Gn(o,a){1&o&&(e.TgZ(0,"th",169),e._uU(1," Enabled? "),e.qZA())}function Qn(o,a){if(1&o&&(e.TgZ(0,"td",170),e._uU(1),e.qZA()),2&o){const t=a.$implicit;e.xp6(1),e.hij(" ",t.isEnabled," ")}}function Hn(o,a){1&o&&(e.TgZ(0,"th",171),e._uU(1,"Actions"),e.qZA())}function zn(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"td",170)(1,"button",233),e.NdJ("click",function(r){const s=e.CHM(t).$implicit,c=e.oxw(3).$implicit,d=e.oxw(2);
1return r.stopPropagation(),e.KtG(d.editThirdPartyApiCredDetails(s,c))}),e.TgZ(2,"mat-icon"),e._uU(3,"mode_edit"),e.qZA()(),e.TgZ(4,"button",234),e.NdJ("click",function(r){const s=e.CHM(t).$implicit,c=e.oxw(3).$implicit,d=e.oxw(2);return r.stopPropagation(),e.KtG(d.removeThirdPartyApiCredDetails(s,c))}),e.TgZ(5,"mat-icon"),e._uU(6,"delete_forever"),e.qZA()()()}if(2&o){const t=a.$implicit,i=e.oxw(5);e.xp6(1),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("disabled",i.checkIfOrgSuperAdmin(t)),e.xp6(3),e.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("disabled",i.checkIfOrgSuperAdmin(t))}}function Wn(o,a){1&o&&e._UZ(0,"tr",176)}function Kn(o,a){1&o&&e._UZ(0,"tr",177)}function jn(o,a){if(1&o&&(e.TgZ(0,"div",228)(1,"table",157),e.ynx(2,229),e.YNc(3,qn,2,0,"th",159),e.YNc(4,Ln,2,1,"td",160),e.BQk(),e.ynx(5,230),e.YNc(6,Fn,2,0,"th",159),e.YNc(7,Jn,2,1,"td",160),e.BQk(),e.ynx(8,231),e.YNc(9,Yn,2,0,"th",159),e.YNc(10,Bn,2,1,"td",160),e.BQk(),e.ynx(11,232),e.YNc(12,Gn,2,0,"th",159),e.YNc(13,Qn,2,1,"td",160),e.BQk(),e.ynx(14,164),e.YNc(15,Hn,2,0,"th",165),e.YNc(16,zn,7,6,"td",160),e.BQk(),e.YNc(17,Wn,1,0,"tr",167),e.YNc(18,Kn,1,0,"tr",168),e.qZA()()),2&o){const t=e.oxw(4);e.xp6(1),e.Q6J("dataSource",t.orgThirdPartyApiCredDataSource),e.xp6(16),e.Q6J("matHeaderRowDef",t.orgThirdPartyApiCredDisplayColumns)("matHeaderRowDefSticky",!0),e.xp6(1),e.Q6J("matRowDefColumns",t.orgThirdPartyApiCredDisplayColumns)}}function Vn(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function $n(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"mat-accordion",54),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.loadOrgUsers(n.orgName))}),e.TgZ(2,"mat-expansion-panel",61)(3,"mat-expansion-panel-header")(4,"mat-panel-title",62),e._uU(5,"Manage Org. Users "),e.qZA()(),e.TgZ(6,"div",54),e.NdJ("click",function(r){return r.stopPropagation()}),e.YNc(7,Li,4,0,"mat-form-field",63),e.qZA(),e.YNc(8,Fi,2,1,"div",64),e.YNc(9,nr,22,4,"div",65),e.YNc(10,sr,1,4,"mat-paginator",66),e.TgZ(11,"mat-action-row")(12,"button",67),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.addUserToOrganization(n))}),e._uU(13," Add User "),e.YNc(14,lr,1,0,"mat-spinner",40),e.qZA()(),e.TgZ(15,"div",68)(16,"p",47),e._uU(17," Total Users Currently: "),e.TgZ(18,"strong"),e._uU(19),e.qZA(),e._uU(20," users "),e.qZA(),e.TgZ(21,"button",69),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.exportOrgUsers(n))}),e._uU(22," Export Org Users (.xlxs) "),e.qZA()(),e._UZ(23,"br"),e.YNc(24,cr,2,1,"mat-error",70),e.qZA(),e._UZ(25,"br"),e.TgZ(26,"mat-expansion-panel",71),e.NdJ("opened",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);return n.loadLandingPagePreferences(),e.KtG(n.getOrgProperties(r))}),e.TgZ(27,"mat-expansion-panel-header")(28,"mat-panel-title",72),e._uU(29,"Organization Properties"),e.qZA()(),e.TgZ(30,"div",73)(31,"div",74)(32,"h3",75),e._uU(33,"Organization Brand Name"),e.qZA(),e.TgZ(34,"p"),e._uU(35," This is how your Organization's Brand Name will be displayed in selected prominent places like the Category-Tree and the flowchart page Breadcrumb line. It is optional and a no value means your default Org-Name '"),e.TgZ(36,"strong"),e._uU(37),e.qZA(),e._uU(38,"' will be used everywhere. "),e.qZA(),e.YNc(39,dr,2,1,"div",76),e._UZ(40,"br"),e.TgZ(41,"mat-form-field",77)(42,"input",78),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.orgDisplayName=r)}),e.qZA(),e.TgZ(43,"mat-hint",79)(44,"strong"),e._uU(45,"Keep it short!"),e.qZA()(),e.TgZ(46,"mat-hint",80),e._uU(47),e.qZA()(),e._UZ(48,"br"),e.TgZ(49,"button",81),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editOrgDisplayName(n))}),e._uU(50," Update Organization Display Name"),e.TgZ(51,"mat-icon"),e._uU(52,"save"),e.qZA()(),e._UZ(53,"br"),e.qZA(),e.TgZ(54,"div",74)(55,"h3",75),e._uU(56," Organization Custom Key Name "),e.qZA(),e.TgZ(57,"p"),e._uU(58," This is how your Organization's KeyName will be used to prepare JSON payload to post to your system or any third party integration. If you do not provide custom override, then default will be 'orgName' "),e.qZA(),e.YNc(59,gr,2,1,"div",76),e._UZ(60,"br"),e.TgZ(61,"mat-form-field",77)(62,"input",82),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.orgCustomKeyName=r)}),e.qZA(),e.TgZ(63,"mat-hint",79)(64,"strong"),e._uU(65,"Keep it short!"),e.qZA()(),e.TgZ(66,"mat-hint",80),e._uU(67),e.qZA()(),e._UZ(68,"br"),e.TgZ(69,"button",81),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editOrgCustomKeyName(n))}),e._uU(70," Update Organization Custom Key Name"),e.TgZ(71,"mat-icon"),e._uU(72,"save"),e.qZA()(),e._UZ(73,"br"),e.qZA(),e.TgZ(74,"div",74)(75,"h3",75),e._uU(76," Organization Custom Key Value "),e.qZA(),e.TgZ(77,"p"),e._uU(78," This value will be used as org's key name's value. It is optional and default value will be organization name '"),e.TgZ(79,"strong"),e._uU(80),e.qZA(),e._uU(81,"' will be used everywhere as a value for Organization Key. "),e.qZA(),e.YNc(82,ur,2,1,"div",76),e._UZ(83,"br"),e.TgZ(84,"mat-form-field",77)(85,"input",83),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.orgCustomKeyValue=r)}),e.qZA(),e.TgZ(86,"mat-hint",79)(87,"strong"),e._uU(88,"Keep it short!"),e.qZA()(),e.TgZ(89,"mat-hint",80),e._uU(90),e.qZA()(),e._UZ(91,"br"),e.TgZ(92,"button",81),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editOrgCustomKeyValue(n))}),e._uU(93," Update Organization Custom Key Value"),e.TgZ(94,"mat-icon"),e._uU(95,"save"),e.qZA()(),e._UZ(96,"br"),e.qZA(),e.TgZ(97,"div",74)(98,"h3",75),e._uU(99," Your Organization Website URL "),e.qZA(),e.TgZ(100,"p"),e._uU(101," This url will be used as your default website to take your audience. For example, in the published flowchart view when someone clicks on your logo, we will open this website url. It can be also be used as default redirect url when someone finishes one of your published flowcharts. It is usually a specific page on your company website. i.e. https://www.Company.com/support. "),e.qZA(),e.YNc(102,_r,2,1,"div",76),e._UZ(103,"br"),e.TgZ(104,"div",84)(105,"mat-form-field",77),e._UZ(106,"input",85,86),e.TgZ(108,"mat-hint",79)(109,"strong"),e._uU(110,"URL starting with https://"),e.qZA()(),e.TgZ(111,"mat-hint",80),e._uU(112),e.qZA()(),e._UZ(113,"br"),e.YNc(114,mr,2,1,"div",15),e.TgZ(115,"button",87),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editOrgWebsiteUrl(n))}),e._uU(116," Save Organization Website URL"),e.TgZ(117,"mat-icon"),e._uU(118,"save"),e.qZA()()(),e._UZ(119,"br"),e.qZA(),e.TgZ(120,"div",74)(121,"h3",75),e._uU(122," Organization Session Timeout "),e.qZA(),e.TgZ(123,"p"),e._uU(124," When the user is logged into their DeciZone account and there is no interaction for the duration of the session timeout specified below, in most cases the use will be automatically logged out. Default is 20 min, Minimum is 3 min and maximum is 180 min. From a security point of view, the shorter this time is the better it is. "),e.qZA(),e.YNc(125,hr,2,1,"div",76),e._UZ(126,"br"),e.TgZ(127,"div",84)(128,"mat-form-field",77),e._UZ(129,"input",88),e.qZA(),e.YNc(130,vr,3,2,"div",15),e._UZ(131,"br"),e.TgZ(132,"button",89),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editOrgScreenTimeout(n))}),e._uU(133," Update Organization Session Timeout"),e.TgZ(134,"mat-icon"),e._uU(135,"save"),e.qZA()()(),e._UZ(136,"br"),e.qZA(),e.TgZ(137,"div",74)(138,"h3",75),e._uU(139,"Org User's Page-After-Login"),e.qZA(),e.TgZ(140,"p"),e._uU(141," When your Org's user logs into their account, they will be shown the 'My Home' page b
1y default. As a Admin you can customize the default Page-After-Login here. 'None' allows your users to customize their own Page-After-Login "),e.qZA(),e.YNc(142,yr,2,1,"div",76),e._UZ(143,"br"),e.TgZ(144,"mat-form-field",77)(145,"mat-select",90),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.selectedLandingPagePref=r)})("selectionChange",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.toggleOverrideUserLandingPagePref())}),e.YNc(146,br,2,2,"mat-option",91),e.qZA()(),e.TgZ(147,"p"),e._uU(148," Each Org user can choose to see an alternative Page-After-Login, if they customize preferences in their individual accounts. You can turn the toggle button ON to override all user's account preferences with your selection above. "),e.qZA(),e.TgZ(149,"div")(150,"mat-slide-toggle",92),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.overrideUserLandingPagePreferenceFlag=r)})("change",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.changeUserLandingPagePrefOverrideFlag(r))}),e._uU(151," Override Page-After-Login for All Org users "),e.qZA(),e._UZ(152,"br"),e.qZA(),e.TgZ(153,"button",93),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editOrgDefaultLandingPageAfterLogin(n))}),e._uU(154," Save Page-After-Login settings "),e.TgZ(155,"mat-icon"),e._uU(156,"save"),e.qZA()(),e._UZ(157,"br"),e.qZA(),e.TgZ(158,"div",74)(159,"h3",75),e._uU(160,"User Activity Recording"),e.qZA(),e.TgZ(161,"p"),e._uU(162," DeciZone counts the number of times your flowcharts are being used by your users. Every time a user interacts with your flowchart, DeciZone assigns it a unique transaction ID and records details of that transaction in a transcript. The transaction details consists of two sections: "),e.qZA(),e.TgZ(163,"ol")(164,"li"),e._uU(165," Metadata - This section includes basic analytics/reporting/billing related information, start/stop times, user information, flowchart information, etc. These details are ALWAYS recorded for ALL transactions. "),e.qZA(),e.TgZ(166,"li"),e._uU(167," User Activity - This is a list of all the steps your user took inside your flowchart along with their choices/responses, along with timestamps. Recording User Activity is OPTIONAL and is turned ON by default, so if you do NOT want to re
1cord user activity, turn this feature OFF below. "),e.qZA()(),e.TgZ(168,"p"),e._uU(169," This User Activity recording SWITCH feature allows the Admin of the organization to turn OFF User Activity recording for ALL flowcharts in the organization. "),e.qZA(),e.YNc(170,Tr,2,1,"div",76),e._UZ(171,"br"),e.TgZ(172,"div")(173,"mat-slide-toggle",94),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.userActivityRecordingFlag=r)})("change",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.editOrgUserActivityRecordingFlag(r,n))}),e._uU(174," Record User Activity Details & Include In Transaction Transcript "),e.qZA(),e._UZ(175,"br"),e.qZA(),e._UZ(176,"br"),e.TgZ(177,"p"),e._uU(178,"PLEASE NOTE:"),e.qZA(),e.TgZ(179,"ul")(180,"li"),e._uU(181," This feature is available only to Admin of your organization. "),e.qZA(),e.TgZ(182,"li"),e._uU(183,"By default this feature is turned ON."),e.qZA(),e.TgZ(184,"li"),e._uU(185," The Metadata section with basic transaction details will still be recorded even when the User Activity Recording feature is turned OFF. "),e.qZA(),e.TgZ(186,"li"),e._uU(187," This means your analytics Dashboard or billing is not affected by this switch. "),e.qZA(),e.TgZ(188,"li"),e._uU(189," When you export the transaction details in an excel report (Content Settings Page), the User Activity details may not be included if this switch is turned off. "),e.qZA(),e.TgZ(190,"li"),e._uU(191," The value for 'User Activity Persistance Duration' (another feature explained below) will be ignored when this Switch is turned OFF by the Admin. "),e.qZA(),e.TgZ(192,"li"),e._uU(193," The 'Resume Transaction' feature will not be available when the User Activity Recording feature is turned OFF. "),e.qZA()(),e._UZ(194,"br"),e.qZA(),e.TgZ(195,"div",74)(196,"h3",75),e._uU(197," Default User Activity Persistance Duration "),e.qZA(),e.TgZ(198,"p"),e._uU(199," This is the default number of days that DeciZone will persist the User Activity details for transactions in ALL the flowcharts of your Organization. It is only considered when the Admin has turned ON the 'User Activity Recording' feature above for your organization. After this duration, the User Activity section of your transactions may be permenantly deleted from your Organization. "),e.qZA(),e.YNc(200,xr,2,1,"div",76),e._UZ(201,"br"),e.TgZ(202,"div",84)(203,"mat-form-field",77),e._UZ(204,"input",95),e.qZA(),e.YNc(205,Zr,3,2,"div",15),e._UZ(206,"br"),e.TgZ(207,"button",89),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.editDefaultUserActivityRecordingPersistDays(n))}),e._uU(208," Update User Activity Persistance Duration"),e.TgZ(209,"mat-icon"),e._uU(210,"save"),e.qZA()()(),e._UZ(211,"br"),e.TgZ(212,"p"),e._uU(213,"PLEASE NOTE:"),e.qZA(),e.TgZ(214,"ul")(215,"li"),e._uU(216," This is a Organization wide setting and is available only to the Admin of the organization. "),e.qZA(),e.TgZ(217,"li"),e._uU(218," The default value for new Organizations will be 90 days but can be customized by the Admin of the Organization from a minimum of 0 days and upto a maximum of 120 days. "),e.qZA(),e.TgZ(219,"li"),e._uU(220," You might consider to regularly export the Transaction details Excel report using the Export feature in the Flowchart table on the Content Settings Page. "),e.qZA(),e.TgZ(221,"li"),e._uU(222," For any NEW flowchart that is created by anyone in the organization, this how many days the User Activity details will be persisted for all the transactions of that specific flowchart - by default. "),e.qZA(),e.TgZ(223,"li"),e._uU(224," The Author/Editor/Creator of that specific flowchart can then customize the number of days for that flowchart individually if they like. So it is possible to have different persistance durations for transactions that belong to different flowchart in the same organization. We recommend using the default values. "),e.qZA()()(),e.TgZ(225,"div",74)(226,"h3",75),e._uU(227,"Branding"),e.qZA(),e.TgZ(228,"p",47),e._uU(229," You can upload your own Brand logo as well as customize the colors for the user interface in a way that works for your organization. It will appear in the header in place of the default DeciZone logo whenever you are logged in as an organization user. "),e.qZA(),e.TgZ(230,"p"),e._uU(231," You can upload ONLY PNG format image below, and it will be resized to a 150px Wide X 50px High PNG format file. So you may want to make sure your image looks good as a 150px X 50px resolution before uploading. "),e.qZA(),e.YNc(232,Pr,2,2,"div",96),e.YNc(233,Or,3,1,"mat-error",15),e.TgZ(234,"label",97),e._uU(235,"Upload Logo Image"),e.qZA(),e.TgZ(236,"input",98,99),e.NdJ("change",function(r){e.CHM(t);const n=e.oxw(3);return r.stopPropagation(),n.validateSelectedImage(r),e.KtG(n.fileChangeEvent(r))}),e.qZA(),e.YNc(238,Ir,24,16,"div",100),e.YNc(239,Dr,2,0,"p",15),e.YNc(240,Sr,2,4,"mat-slider",101),e._UZ(241,"br")(242,"br"),e.TgZ(243,"image-cropper",102),e.NdJ("imageCropped",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.imageCropped(r))})("imageLoaded",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.imageLoaded())})("cropperReady",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.cropperReady(r))})("loadImageFailed",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.loadImageFailed())}),e.qZA(),e.YNc(244,Er,4,3,"div",15),e.TgZ(245,"button",103),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.uploadLogo(n))}),e.YNc(246,Nr,1,0,"mat-spinner",40),e._uU(247," Upload New Logo "),e.TgZ(248,"mat-icon"),e._uU(249,"file_upload"),e.qZA()(),e._UZ(250,"br"),e.qZA(),e.YNc(251,kr,11,2,"div",104),e.TgZ(252,"div",74)(253,"h3",75),e._uU(254,"Primary Branding Color"),e.qZA(),e.TgZ(255,"p",47),e._uU(256," This color is used for primary elements like header, raised-buttons, etc. The default value for Primary color is #673ab7 or RGB (103, 58, 183). Click the color picker and select your color. "),e.qZA(),e.TgZ(257,"p",47),e._uU(258," We recommend setting Primary colors as darker shades relative to Secondary colors. You will see these custom branded colors after you log into your account and when you access any of your organization's published flowcharts. "),e.qZA(),e.TgZ(259,"input",105),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.primaryColor=r)}),e.qZA(),e._UZ(260,"br")(261,"br"),e.TgZ(262,"button",106),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeBrandPrimaryColor(n))}),e.YNc(263,qr,1,0,"mat-spinner",40),e._uU(264," Change Primary Color "),e.TgZ(265,"mat-icon"),e._uU(266,"color_lens"),e.qZA()(),e._UZ(267,"br"),e.qZA(),e.TgZ(268,"div",74)(269,"h3",75),e._uU(270,"Secondary Branding Color"),e.qZA(),e.TgZ(271,"p",47),e._uU(272," This color is used for Secondary elements like Sub-headings, buttons, etc. The default value is #ffd
1740 or RGB (255, 215, 64). Click the color picker and select your color. "),e.qZA(),e.TgZ(273,"input",107),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.secondaryColor=r)}),e.qZA(),e._UZ(274,"br")(275,"br"),e.TgZ(276,"button",108),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeBrandSecondaryColor(n))}),e.YNc(277,Lr,1,0,"mat-spinner",40),e._uU(278," Change Secondary Color "),e.TgZ(279,"mat-icon"),e._uU(280,"color_lens"),e.qZA()(),e._UZ(281,"br"),e.qZA(),e.TgZ(282,"div",74)(283,"h3",75),e._uU(284,"Primary Text Color"),e.qZA(),e.TgZ(285,"p",47),e._uU(286," This color is used for emphasizing text elements like Titles & headings. The default value for Primary color is #673ab7 or RGB (103, 58, 183) same as the Primary Color. Click the color picker and select your color. "),e.qZA(),e.TgZ(287,"p",47),e._uU(288," We recommend darker shades for Primary Text Color compared to Secondary Text Color. "),e.qZA(),e.TgZ(289,"input",109),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.primaryTextColor=r)}),e.qZA(),e._UZ(290,"br")(291,"br"),e.TgZ(292,"button",110),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeTextPrimaryColor(n))}),e.YNc(293,Fr,1,0,"mat-spinner",40),e._uU(294," Change Primary Text Color "),e.TgZ(295,"mat-icon"),e._uU(296,"color_lens"),e.qZA()(),e._UZ(297,"br"),e.qZA(),e.TgZ(298,"div",74)(299,"h3",75),e._uU(300,"Secondary Text Color"),e.qZA(),e.TgZ(301,"p",47),e._uU(302," This color is used for secondary text elements. The default value is #ffd740 or RGB (255, 215, 64), same as the Secondary Branding Color. Click the color picker and select your color. "),e.qZA(),e.TgZ(303,"input",111),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.secondaryTextColor=r)}),e.qZA(),e._UZ(304,"br")(305,"br"),e.TgZ(306,"button",112),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeTextSecondaryColor(n))}),e.YNc(307,Jr,1,0,"mat-spinner",40),e._uU(308," Change Secondary Text Color "),e.TgZ(309,"mat-icon"),e._uU(310,"color_lens"),e.qZA()(),e._UZ(311,"br"),e.qZA(),e.TgZ(312,"div",74)(313,"h3",75),e._uU(314,"Header Text Color"),e.qZA(),e.TgZ(315,"p",47),e._uU(316," This color is used for menu/text elements in the header. The default value is #ffffff or RGB (255, 255, 255). Click the color picker to customize. "),e.qZA(),e.TgZ(317,"input",113),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.headerTextColor=r)}),e.qZA(),e._UZ(318,"br")(319,"br"),e.TgZ(320,"button",114),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeThirdHeaderTextColor(n))}),e.YNc(321,Yr,1,0,"mat-spinner",40),e._uU(322," Change Header Text Color "),e.TgZ(323,"mat-icon"),e._uU(324,"color_lens"),e.qZA()(),e._UZ(325,"br"),e.qZA(),e.TgZ(326,"div",74)(327,"h3",75),e._uU(328,"Background Color"),e.qZA(),e.TgZ(329,"p",47),e._uU(330," This color is used for background for most screens. The default value is #ffffff or RGB (255, 255, 255). Click the color picker to customize. "),e.qZA(),e.TgZ(331,"input",115),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.backgroundColor=r)}),e.qZA(),e._UZ(332,"br"),e.TgZ(333,"button",116),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeBackgroundColor(n))}),e.YNc(334,Br,1,0,"mat-spinner",40),e._uU(335," Change Background Color "),e.TgZ(336,"mat-icon"),e._uU(337,"color_lens"),e.qZA()(),e._UZ(338,"br"),e.qZA(),e.TgZ(339,"div",74)(340,"h3",75),e._uU(341,"Flash Card Color"),e.qZA(),e.TgZ(342,"p",47),e._uU(343," This color is used for flash card. The default value is #ffffff or RGB (255, 255, 255). Click the color picker to customize. "),e.qZA(),e.TgZ(344,"input",117),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.flashCardColor=r)}),e.qZA(),e._UZ(345,"br"),e.TgZ(346,"button",118),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.changeFlashCardColor(n))}),e.YNc(347,Gr,1,0,"mat-spinner",40),e._uU(348," Change Flash Card Color "),e.TgZ(349,"mat-icon"),e._uU(350,"color_lens"),e.qZA()(),e._UZ(351,"br"),e.qZA(),e.TgZ(352,"div",74)(353,"h3",75),e._uU(354," Reset All Branding to Default Colors "),e.qZA(),e.TgZ(355,"button",119),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.resetBrandColors(n))}),e.YNc(356,Qr,1,0,"mat-spinner",40),e._uU(357," Reset All Properties to Default Values "),e.TgZ(358,"mat-icon"),e._uU(359,"color_lens"),e.qZA()(),e._UZ(360,"br"),e.qZA(),e.TgZ(361,"div",74)(362,"h3",75),e._uU(363,"Enter Custom CSS"),e.qZA(),e.TgZ(364,"button",120),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.openCustomCss(n))}),e.YNc(365,Hr,1,0,"mat-spinner",40),e._uU(366," Click to Enter Custom CSS "),e.TgZ(367,"mat-icon"),e._uU(368,"color_lens"),e.qZA()(),e._UZ(369,"br"),e.qZA(),e.TgZ(370,"div",74)(371,"h3",75),e._uU(372," Org User's Artificial Intelligence Settings "),e.qZA(),e.YNc(373,zr,2,1,"div",76),e._UZ(374,"br"),e.TgZ(375,"p",47),e._uU(376," Allow your team to use AI Suggestions for creating flowcharts using natural language prompts. "),e.qZA(),e.TgZ(377,"mat-slide-toggle",94),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.orgAiCreationEnabled=r)})("change",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.editOrgAiCreationFlag(r,n))}),e._uU(378," Enable AI Suggestions "),e.qZA(),e._UZ(379,"br"),e.TgZ(380,"p",47),e._uU(381," Total AI Prompts/Suggestions available for your Org.: "),e.TgZ(382,"strong"),e._uU(383),e.qZA()(),e.TgZ(384,"p",47),e._uU(385," AI Prompts/Suggestions already used by your team: "),e.TgZ(386,"strong"),e._uU(387),e.qZA()(),e.TgZ(388,"p",47),e._uU(389," Number of AI Prompts/Suggestions allowed per Goal: "),e.TgZ(390,"strong"),e._uU(391),e.qZA()(),e.TgZ(392,"p",47),e._uU(393," To make changes, please 'Send Message' to DeciZone Support team using the chat bubble. "),e.qZA()(),e.TgZ(394,"p",75)(395,"strong"),e._uU(396,"NOTE: You might have to logout and log back in to see your changes."),e.qZA()()()(),e._UZ(397,"br"),e.YNc(398,Vr,25,4,"div",15),e.YNc(399,Mn,7,1,"div",15),e.TgZ(400,"mat-expansion-panel",121),e.NdJ("opened",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);
1return e.KtG(n.getOrgIntegrationDetails(r))}),e.TgZ(401,"mat-expansion-panel-header")(402,"mat-panel-title",122),e._uU(403,"Integration Setup"),e.qZA()(),e.TgZ(404,"mat-tab-group",123)(405,"mat-tab",124)(406,"mat-tab-group",125)(407,"mat-tab",126)(408,"div",127)(409,"h2"),e._uU(410,"Salesforce Integration details"),e.qZA(),e.TgZ(411,"div")(412,"p",75),e._uU(413),e.qZA(),e.TgZ(414,"mat-form-field",128)(415,"mat-label"),e._uU(416,"Salesforce Org ID"),e.qZA(),e.TgZ(417,"input",129),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.sfIntegrationOrgId=r)}),e.qZA()(),e.TgZ(418,"button",130),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);return e.KtG(n.addUpdateSfIntegrationOrgId(r))}),e.YNc(419,In,1,0,"mat-spinner",40),e._uU(420,"Save ORG ID "),e.qZA()(),e.TgZ(421,"mat-slide-toggle",131),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.sfEnableIntegration=r)})("change",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.toggleEnableIntegration("Salesforce",r,n))}),e._uU(422,"Enable/Disable this Integration (currently : "),e.TgZ(423,"strong"),e._uU(424),e.qZA(),e._uU(425," ) "),e.qZA(),e.TgZ(426,"mat-slide-toggle",132),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.sfSendCustonJson=r)})("change",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.toggleSendCustomJson("Salesforce",r,n))}),e._uU(427,"Send Custom JSON in API request (currently : "),e.TgZ(428,"strong"),e._uU(429),e.qZA(),e._uU(430," ) "),e.qZA(),e.TgZ(431,"p",75)(432,"strong"),e._uU(433,"Transaction Complete Custom TAGs"),e.qZA(),e._uU(434," : List all the TAGs you would like to send in the final API request to Salesforce when the DeciZone transaction is completed. "),e._UZ(435,"br"),e._uU(436),e.qZA(),e.TgZ(437,"div")(438,"mat-form-field",133)(439,"mat-chip-list",null,134),e.YNc(441,Sn,3,4,"mat-chip",135),e.TgZ(442,"input",136),e.NdJ("matChipInputTokenEnd",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.addCustomTags("Salesforce",r))}),e.qZA()()(),e.TgZ(443,"button",137),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);return e.KtG(n.updateClientIntegrationCustomTags("Salesforce",r))}),e.YNc(444,En,1,0,"mat-spinner",40),e._uU(445,"Save TAGS "),e.qZA()()()(),e.TgZ(446,"mat-tab",138)(447,"div",139)(448,"h2"),e._uU(449,"Salesforce Integration Setup Guide"),e.qZA(),e.TgZ(450,"p"),e._uU(451," Please follow these steps to get your Salesforce Account integrated with DeciZone. "),e.qZA(),e.TgZ(452,"ol")(453,"li")(454,"h4"),e._uU(455,"Create your DeciZone Flowcharts"),e.qZA(),e.TgZ(456,"p"),e._uU(457," This document is meant to guide you how to setup Salesforce integration. In a completely new DeciZone account you may not have any decision trees or flowcharts created when you are trying to configure the Salesforce integration. We recommend that you create at least one flowchart, make a Master version for that flowchart, go to the \u2018Settings\u2019 page, and in the table with your flowcharts, add that flowchart to be presented on the \u2018Org Home Page\u2019 (explained in the Step-8 below). The \u2018Org Home Page\u2019 is what will be displayed in your Salesforce integration app panel. So unless you add any flowcharts to this page, your Salesforce integration app panel may not show any flowcharts. You can see our training videos on creating flowcharts at "),e.TgZ(458,"a",140),e._uU(459," DeciZone.com/training"),e.qZA(),e._uU(460,". "),e.qZA()(),e.TgZ(461,"li")(462,"h4"),e._uU(463,"Get Salesforce Org ID"),e.qZA(),e.TgZ(464,"p"),e._uU(465," Your Salesforce Admin (other users may not have the right privileges) needs to log into their Salesforce account and go to Settings > Users > All Users table. In that table find your (SalesforceOrganizationID+3LetterSuffix) in one of the auto generated 'usernames'. i.e. If one of the usernames is '[email protected]' (OR, '[email protected]' OR '[email protected]' ), then the '6zd1h0linls9376mau' is the full SalesforceID+3LetteRSuffix we need. The last three letters 'mau' in this case are appended by Salesforce to your Salesforce Organization ID that you normally find in your 'Company Information' page. Please also NOTE that this Salesforce Org ID is CASE-SENSITIVE so add it exactly as it is. Once you have your (SalesforceOrganizationID+3LetterSuffix) i.e. '6zd1h0linls9376mau', you will need to add it to your DeciZone.com Administrator account. Go to 'My Account' > My Organization > Integrations > Select Salesforce in the drop down list and enter the '6zd1h0linls9376mau' and 'Save' it. Please make sure you have only one Salesforce ID in your DeciZone account Integration section (delete any other ones you may have added previously, if any) "),e.qZA()(),e.TgZ(466,"li")(467,"h4"),e._uU(468," Install DeciZone Integration App from AppExchange "),e.qZA(),e.TgZ(469,"p"),e._uU(470," To integrate your Salesforce Account with DeciZone account, you will need to purchase the DeciZone integration App from AppExchange (https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FvKpHUAV) and install this app in your Salesforce Account. "),e.qZA()(),e.TgZ(471,"li")(472,"h4"),e._uU(473,"ADD DeciZone Component"),e.qZA(),e.TgZ(474,"p"),e._uU(475," Once you have installed that App in your Salesforce Account, you will need to add the DeciZone Component to your Case/ticket page. You can change the size of the DeciZone Connected App panel by opening a specific 'Case' page >> Click on the gear icon on top right >> click on 'Edit Page' >> on the left of the screen, in the Component panel, find 'Visualforce' >> Drag Visualforce on to your page and position it as needed >> click on the component you just added and you will see its properties on a panel on the right side of the screen >> IMP: IN this panel, there should be a dropdown list showing you all the VisualForce Components/Apps you have access to. Find the 'DeciZone_vp\" option in this list and select this. There, you can also change the height of the DeciZone component to 700 pixels or adju
1st as needed >> then 'Save' the page. Once this component is configured on your case page, you will see your DeciZone Account's 'Org-Home-Page' in the new panel every time you open a Case page. So this will take care of showing the DeciZone panel on your page. "),e.qZA()(),e.TgZ(476,"li")(477,"h4"),e._uU(478,"Salesforce Admin Tasks"),e.qZA(),e.TgZ(479,"p"),e._uU(480," As the admin of your Salesforce Account, you will need to add the 'Profiles' of your users to the DeciZone Connected App. By default, DeciZone Connected App is installed with the OAuth Policy ( Permitted Users : 'Admin approved users are preauthorized'). To add profile to DeciZone Connected App, click on the gear icon on the top right of the screen >> click on Setup >> On the left side panel, click on 'Apps' >> Click on 'Apps Manager' >> Find DeciZone app in your list of apps, and click on the small Drop-Down-Arrow on far right to select the option 'Manage' >> In the App Manager, go to the 'Profiles' sections and click on 'Manage Profiles'. This is where you select the right profiles of your users who will get access to the DeciZone Connected App. At this point your Salesforce account users will be able to use the DeciZone connected App inside Salesforce. But they will not be able to access your DeciZone flowcharts unless you have added each user to your DeciZone Organization. You can confirm it also by going inside each Profile-Setup and then go to the 'Connected Apps' section and make sure that 'DeciZone' has a 'Check' enabled for each of your profiles. "),e.qZA()(),e.TgZ(481,"li")(482,"h4"),e._uU(483,"Add All Users to your DeciZone Account"),e.qZA(),e.TgZ(484,"p"),e._uU(485," The Admin of your DeciZone.com organization account will need to INVITE all the users (along with a specific Role from a list of User Roles which give them different set of privileges) of your Salesforce account using the Add/Import Org Users feature (you can add a few users manually, or you can import a spreadsheet with a list of users along with their Role). Each user that is invited must accept the invitation they receive in their email and complete their registration for their access to your DeciZone account. This is a very quick process and should not take more than a few minutes. IMPORTANT: Please make sure for each of your Salesforce user, their DeciZone account is opened with the SAME email address they use to login to their Salesforce account for your organization. It is recommended that you only allow email addresses that you approve and/or that you have full administrative control over (i.e. preferably email address with your company domain instead of a personal gmail, yahoo or hotmail, unless you approve of it). Once this is completed, the next time the user logs into their DeciZone account, they will see your DeciZone Organization in the Category tree indicating that they have access to your DeciZone Organization. Also when the same user logs into their Salesforce account, and after your Salesforce Administrator has followed previous steps, your user should be able to see a panel with your DeciZone Org Home page. "),e.qZA()(),e.TgZ(486,"li")(487,"h4"),e._uU(488,"Add Flowcharts to your Org Home Page"),e.qZA(),e.TgZ(489,"p"),e._uU(490," After the integration steps above are completed, when a user opens a case in Salesforce, the DeciZone Connected App on that case page will automatically load your Org-Home-Page from your DeciZone account and they will be able to click on any flowcharts you have added to that page in y
1our DeciZone account. For instructions on adding flowcharts to your Org-Home-Page, go to 'Content Settings' in your DeciZone account, and open the table of flowcharts under your Organization. For each flowchart you want to add to the Org Home Page, check on the checkbox in the column 'Org Home' in that table. "),e.qZA()(),e.TgZ(491,"li")(492,"h4"),e._uU(493,"\u2018Allow Access\u2019 Dialog Pop-Up Window"),e.qZA(),e.TgZ(494,"p"),e._uU(495," When you log in to your salesforce account, and go to the page where DeciZone integration app is installed, Salesforce will try to open a separate Pop-Up window (which takes care of the oAuth access automatically). Some browsers will not allow such Pop-Ups by default and block it and eventually your DeciZone app will not work. To fix this, \u2018Refresh\u2019 that page in your browser. When the page loads again, it will try to load the DeciZone App and when it gets to opening that Pop-Up window, you will get a notification in the address bar at the top-right corner of the browser window. It may look like a blocked Pop-Up icon. Click on that icon, and select the options that adds the rule to \u2018always allow\u2019 that Pop-Up window from DeciZone App. After that, \u2018Refresh\u2019 your page again. If you have completed all the steps corrected so far, your DeciZone app will show your DeciZone Organization Home Page. (If you see the Org Home page, but don't see any Flowcharts listed on your Org Home Page, you may have to go in your DeciZone Account, Content Settings, and check the box for each flowchart that you want to be able to see on the Org Home page. ) "),e.qZA()(),e.TgZ(496,"li")(497,"h4"),e._uU(498," Enable Browser Setting for \u2018Allow Third Party Cookies\u2019 "),e.qZA(),e.TgZ(499,"p"),e._uU(500," Your browser needs to allow Third Party Cookies for the \u2018DeciZone_vp\u2019 app to fetch your flowcharts from your DeciZone account. Most browsers will show you a warning message and/or an icon in the address bar indicating that they have \u2018Blocked Third Party Cookies\u2019 - in the same message they give you an option to Enable the Third party cookies. Make sure you have Enabled this setting. "),e.qZA()(),e.TgZ(501,"li")(502,"h4"),e._uU(503,"Log Out & Log Back In"),e.qZA(),e.TgZ(504,"p"),e._uU(505," Log Out & Log Back In from both Salesforce and DeciZone: Once you have completed the above steps, log out of both Salesforce and DeciZone accounts, close both browser tabs and then open another new browser tab/window and log into both accounts again. Since you followed all the steps correctly, at this time normally you should see your \u2018Org Home Page with yellow flowchart buttons\u2019 in your \u2018Salesforce > Case xx123xxx\u2019 Page. "),e.qZA()(),e.TgZ(506,"li")(507,"h4"),e._uU(508,"Checks"),e.qZA(),e.TgZ(509,"p"),e._uU(510," If for some reason, you are still not able to see your Org Home page, Try one or all of the following: "),e.qZA(),e.TgZ(511,"ol")(512,"li"),e._uU(513," Try logging out of Salesforce/DeciZone on the current browser. Open a Incognito/Private window for the browser, login to Salesforce and try to open your Salesforce Case page. "),e.qZA(),e.TgZ(514,"li"),e._uU(515," Make sure your browser is updated to its latest version. "),e.qZA(),e.TgZ(516,"li"),e._uU(517," Try a different browser from the current one, i.e. Chrome, Edge, Firefox, etc. "),e.qZA(),e.TgZ(518,"li"),e._uU(519," Try removing all the browser cookies from your browser settings, restart the browser and login to Salesforce and open the Case page. "),e.qZA(),e.TgZ(520,"li"),e._uU(521," Try logging into your Salesforce account from another computer hopefully not connected to the same corporate network (sometimes corporate network security policies block certain legitimate external applications on purpose). "),e.qZA(),e.TgZ(522,"li"),e._uU(523," Shutdown your computer and start it again. Then try logging into your Salesforce account and open the Case page. "),e.qZA()()(),e.TgZ(524,"p")(525,"strong"),e._uU(526," We hope this was helpful. If you have any questions, please feel free to get in touch with the DeciZone Support Team at [email protected]. "),e.qZA()()()()()()(),e.TgZ(527,"mat-tab",141)(528,"mat-tab-group",125)(529,"mat-tab",126)(530,"div",127)(531,"h2"),e._uU(532,"Zendesk Integration details"),e.qZA(),e.TgZ(533,"p",75),e._uU(534," DeciZone organization ID for "),e.TgZ(535,"strong",142),e._uU(536),e.qZA(),e._uU(537,": \xa0\xa0\xa0\xa0 "),e.TgZ(538,"strong"),e._uU(539),e.qZA()(),e.TgZ(540,"mat-slide-toggle",143),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.zdEnableIntegration=r)})("change",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.toggleEnableIntegration("Zendesk",r,n))}),e._uU(541,"Enable/Disable this Integration (currently : "),e.TgZ(542,"strong"),e._uU(543),e.qZA(),e._uU(544," ) "),e.qZA(),e.TgZ(545,"mat-slide-toggle",144),e.NdJ("ngModelChange",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.zdSendCustomJson=r)})("change",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.toggleSendCustomJson("Zendesk",r,n))}),e._uU(546,"Send Custom JSON in API request (currently : "),e.TgZ(547,"strong"),e._uU(548),e.qZA(),e._uU(549," ) "),e.qZA(),e.TgZ(550,"p",75)(551,"strong"),e._uU(552,"Transaction Complete Custom TAGs"),e.qZA(),e._uU(553,": List all the TAGs you would like to send in the final API request to Zendesk when the DeciZone transaction is completed. "),e._UZ(554,"br"),e._uU(555),e.qZA(),e.TgZ(556,"div")(557,"mat-form-field",133)(558,"mat-chip-list",null,145),e.YNc(560,Rn,3,3,"mat-chip",146),e.TgZ(561,"input",136),e.NdJ("matChipInputTokenEnd",function(r){e.CHM(t);const n=e.oxw(3);return e.KtG(n.addCustomTags("Zendesk",r))}),e.qZA()()(),e.TgZ(562,"button",147),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);return e.KtG(n.updateClientIntegrationCustomTags("Zendesk",r))}),e.YNc(563,kn,1,0,"mat-spinner",40),e._uU(564,"Save TAGS "),e.qZA()()()(),e.TgZ(565,"mat-tab",138)(566,"div",148)(567,"h2"),e._uU(568,"Zendesk Integration Setup Guide"),e.qZA(),e.TgZ(569,"p"),e._uU(570," Please follow these steps to get your Zendesk Account integrated
1with DeciZone. "),e.qZA(),e.TgZ(571,"ol")(572,"li")(573,"h4"),e._uU(574,"Get Your DeciZone Integration ID"),e.qZA(),e.TgZ(575,"p"),e._uU(576," First get your DeciZone Integration ID from your DeciZone Account > My Account > Manage Organizations > Integration Setup > Zendesk > Details ... section. "),e.qZA()(),e.TgZ(577,"li")(578,"h4"),e._uU(579,"Install DeciZone App in your Zendesk"),e.qZA(),e.TgZ(580,"p"),e._uU(581," Then your Zendesk Admin needs to login in to your Zendesk account, and Install the DeciZone App from Zendesk Marketplace. "),e.qZA()(),e.TgZ(582,"li")(583,"h4"),e._uU(584,"Configure Zendesk"),e.qZA(),e.TgZ(585,"p"),e._uU(586," Then your Zendesk Admin needs to go to your Zendesk account settings... Left Menu Panel > Apps > Manage >> DeciZone App Icon >> 'Click on the Gear Icon for a drop down menu on top of the DeciZone Icon' >> 'Change Settings' > INSTALLATION section >> For 'decizoneOrgId' field, paste the DeciZone Integration ID you copied from your DeciZone account. "),e.qZA()(),e.TgZ(587,"li")(588,"h4"),e._uU(589,"Log out & Log Back in"),e.qZA(),e.TgZ(590,"p"),e._uU(591," Log out completely (all browsers, tabs) from both DeciZone and Zendesk accounts. Then Log back into your Zendesk Account. "),e.qZA()(),e.TgZ(592,"li")(593,"h4"),e._uU(594,"DeciZone Panel"),e.qZA(),e.TgZ(595,"p"),e._uU(596," Open any Ticket page in Zendesk, and you will be able to see DeciZone app in a panel on the right side. "),e.qZA()(),e.TgZ(597,"li")(598,"h4"),e._uU(599,"Add Flowcharts To Your Org Home Page"),e.qZA(),e.TgZ(600,"p"),e._uU(601," You may not see any flowcharts on your Org Home page inside the DeciZone App panel. In this case, log into your DeciZone account, create flowcharts, and then on the Settings page, add them to the 'Org Home' page. "),e.qZA()(),e.TgZ(602,"li")(603,"h4"),e._uU(604,"Checks"),e.qZA(),e.TgZ(605,"p"),e._uU(606," If for some reason, you are still not able to see your Org Home page, Try one or all of the following: "),e.qZA(),e.TgZ(607,"ul")(608,"li"),e._uU(609," Try logging out of Zendesk/DeciZone on the current browser. Open a Incognito/Private window for the browser, login to Zendesk and try to open your Zendesk Ticket page. "),e.qZA(),e.TgZ(610,"li"),e._uU(611," Make sure your browser is updated to its latest version. "),e.qZA(),e.TgZ(612,"li"),e._uU(613," Try a different browser from the current one, i.e. Chrome, Edge, Firefox, etc. "),e.qZA(),e.TgZ(614,"li"),e._uU(615," Try removing all the browser cookies from your browser settings, restart the browser and login to Zendesk and open the Ticket page. "),e.qZA(),e.TgZ(616,"li"),e._uU(617," Try logging into your Zendesk account from another computer hopefully not connected to the same corporate network (sometimes corporate network security policies block certain legitimate external applications on purpose). Shutdown your computer and start it again. Then try logging into your Zendesk account and open the Ticket page. "),e.qZA(),e.TgZ(618,"li"),e._uU(619," IMP: If your teams use more than one Zendesk accounts, you will need to install DeciZone using the above steps on all of those Zendesk accounts. "),e.qZA()()()(),e.TgZ(620,"p")(621,"strong"),e._uU(622," We hope this was helpful. If you have any questions, please feel free to get in touch with the DeciZone Support Team at [email protected]. "),e.qZA()()()()()()()(),e._UZ(623,"br"),e.TgZ(624,"mat-expansion-panel",149),e.NdJ("opened",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);return e.KtG(n.getThirdyPartyApiDetails(r))}),e.TgZ(625,"mat-expansion-panel-header")(626,"mat-panel-title",150),e._uU(627,"Third Party API Details"),e.qZA()(),e.YNc(628,jn,19,4,"div",151),e.TgZ(629,"mat-action-row")(630,"button",152),e.NdJ("click",function(r){e.CHM(t);const n=e.oxw().$implicit,s=e.oxw(2);return r.stopPropagation(),e.KtG(s.addApiCredToOrganization(n))}),e._uU(631," Add API Credentials "),e.YNc(632,Vn,1,0,"mat-spinner",40),e.qZA()()()()()}if(2&o){const t=e.MAs(107),i=e.MAs(440),r=e.MAs(559),n=e.oxw().$implicit,s=e.oxw(2);e.xp6(7),e.Q6J("ngIf",s.orgUserList&&s.orgUserList.length>0),e.xp6(1),e.Q6J("ngIf",s.orgUserTableMsg),e.xp6(1),e.Q6J("ngIf",s.orgUserList&&s.orgUserList.length>0),e.xp6(1),e.Q6J("ngIf",s.orgUserList&&s.orgUserList.length>0),e.xp6(4),e.Q6J("ngIf",s.loading),e.xp6(5),e.Oqu(s.orgUserList.length),e.xp6(
15),e.Q6J("ngIf",s.genericErr),e.xp6(13),e.Oqu(n.orgName),e.xp6(2),e.Q6J("ngIf",s.ordDisplayNameSuccessMsg),e.xp6(3),e.Q6J("ngModel",s.orgDisplayName),e.xp6(5),e.hij("",(null==s.orgDisplayName?null:s.orgDisplayName.length)||0," / 30"),e.xp6(12),e.Q6J("ngIf",s.orgCustomKeyNameSuccessMsg),e.xp6(3),e.Q6J("ngModel",s.orgCustomKeyName),e.xp6(5),e.hij("",(null==s.orgCustomKeyName?null:s.orgCustomKeyName.length)||0," / 30"),e.xp6(13),e.Oqu(n.orgName),e.xp6(2),e.Q6J("ngIf",s.orgCustomKeyValueSuccessMsg),e.xp6(3),e.Q6J("ngModel",s.orgCustomKeyValue),e.xp6(5),e.hij("",(null==s.orgCustomKeyValue?null:s.orgCustomKeyValue.length)||0," / 100"),e.xp6(12),e.Q6J("ngIf",s.orgWebsiteUrlSuccessMsg),e.xp6(2),e.Q6J("formGroup",s.orgWebsiteUrlForm),e.xp6(2),e.Q6J("value",t),e.xp6(6),e.hij("",(null==t.value?null:t.value.length)||0," / 255"),e.xp6(2),e.Q6J("ngIf",s.orgWebsiteUrlForm.controls.orgWebsiteUrl.errors&&(s.orgWebsiteUrlForm.controls.orgWebsiteUrl.dirty||s.orgWebsiteUrlForm.controls.orgWebsiteUrl.touched)),e.xp6(1),e.Q6J("disabled",s.orgWebsiteUrlForm.controls.orgWebsiteUrl.invalid),e.xp6(10),e.Q6J("ngIf",s.orgScreenTimeoutSuccessMsg),e.xp6(2),e.Q6J("formGroup",s.orgScreenTimeoutForm),e.xp6(2),e.Q6J("value",s.screenTimeout),e.xp6(1),e.Q6J("ngIf",s.orgScreenTimeoutForm.controls.screenTimeout.errors&&(s.orgScreenTimeoutForm.controls.screenTimeout.dirty||s.orgScreenTimeoutForm.controls.screenTimeout.touched)),e.xp6(2),e.Q6J("disabled",s.orgScreenTimeoutForm.controls.screenTimeout.errors),e.xp6(10),e.Q6J("ngIf",s.orgDefaultLandingPageSuccessMsg),e.xp6(3),e.Q6J("ngModel",s.selectedLandingPagePref),e.xp6(1),e.Q6J("ngForOf",s.landingPagePrefList),e.xp6(4),e.Q6J("color",s.color)("ngModel",s.overrideUserLandingPagePreferenceFlag)("disabled","None"===s.selectedLandingPagePref),e.xp6(20),e.Q6J("ngIf",s.orgUserActivityRecordingSuccessMsg),e.xp6(3),e.Q6J("color",s.color)("ngModel",s.userActivityRecordingFlag),e.xp6(27),e.Q6J("ngIf",s.orgDefaultActivityRecordingPersistDaysSuccessMsg),e.xp6(2),e.Q6J("formGroup",s.orgDefaultUserActivityPersistDaysForm),e.xp6(2),e.Q6J("value",s.defaultUserActivityPersistDays),e.xp6(1),e.Q6J("ngIf",s.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.errors&&(s.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.dirty||s.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.touched)),e.xp6(2),e.Q6J("disabled",s.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.errors),e.xp6(25),e.Q6J("ngIf",s.orgLogoUrl),e.xp6(1),e.Q6J("ngIf",s.uploadErr),e.xp6(5),e.Q6J("ngIf",s.showCropper),e.xp6(1),e.Q6J("ngIf",s.showCropper),e.xp6(1),e.Q6J("ngIf",s.showCropper),e.xp6(3),e.Udp("display",s.showCropper?null:"none"),e.Q6J("imageChangedEvent",s.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",s.containWithinAspectRatio)("aspectRatio",3)("resizeToWidth",600)("resizeToHeight",200)("cropperMinWidth",150)("cropperMinHeight",50)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",s.canvasRotation)("transform",s.transform)("alignImage","left"),e.xp6(1),e.Q6J("ngIf",s.showCropper),e.xp6(1),e.Q6J("disabled",s.logoUpload||s.uploadErr),e.xp6(1),e.Q6J("ngIf",s.logoUpload),e.xp6(5),e.Q6J("ngIf",s.orgLogoUrl),e.xp6(8),e.Q6J("ngModel",s.primaryColor),e.xp6(3),e.Q6J("disabled",s.changePrimaryColor),e.xp6(1),e.Q6J("ngIf",s.changePrimaryColor),e.xp6(10),e.Q6J("ngModel",s.secondaryColor),e.xp6(3),e.Q6J("disabled",s.changeSecondColor),e.xp6(1),e.Q6J("ngIf",s.changeSecondColor),e.xp6(12),e.Q6J("ngModel",s.primaryTextColor),e.xp6(3),e.Q6J("disabled",s.changePrimaryTextColor),e.xp6(1),e.Q6J("ngIf",s.changePrimaryTextColor),e.xp6(10),e.Q6J("ngModel",s.secondaryTextColor),e.xp6(3),e.Q6J("disabled",s.changeSecondTextColor),e.xp6(1),e.Q6J("ngIf",s.changeSecondTextColor),e.xp6(10),e.Q6J("ngModel",s.headerTextColor),e.xp6(3),e.Q6J("disabled",s.changeThirdTextColor),e.xp6(1),e.Q6J("ngIf",s.changeThirdTextColor),e.xp6(10),e.Q6J("ngModel",s.backgroundColor),e.xp6(2),e.Q6J("disabled",s.backgroundColorChange),e.xp6(1),e.Q6J("ngIf",s.backgroundColorChange),e.xp6(10),e.Q6J("ngModel",s.flashCardColor),e.xp6(2),e.Q6J("disabled",s.flashCardColorChange),e.xp6(1),e.Q6J("ngIf",s.flashCardColorChange),e.xp6(8),e.Q6J("disabled",s.resetColors),e.xp6(1),e.Q6J("ngIf",s.resetColors),e.xp6(9),e.Q6J("ngIf",s.customCssChange),e.xp6(8),e.Q6J("ngIf",s.orgAiPropertySuccessMsg),e.xp6(4),e.Q6J("color",s.color)("ngModel",s.orgAiCreationEnabled),e.xp6(6),e.Oqu(s.orgAiCreationLimit),e.xp6(4),e.Oqu(s.orgAiUsageCount),e.xp6(4),e.Oqu(s.orgAiCreationLimitPerGoal),e.xp6(7),e.Q6J("ngIf",s.showCreditUsagePanel),e.xp6(1),e.Q6J("ngIf",!s.showCreditUsagePanel),e.xp6(14),e.hij(" Enter your Salesforce Org ID (currently : ",s.saleforceIntegrationDetail
1s.orgIntegrationId," ) "),e.xp6(4),e.Q6J("ngModel",s.sfIntegrationOrgId),e.xp6(2),e.Q6J("ngIf",s.sfIntegrationIdSaving),e.xp6(2),e.Q6J("ngModel",s.sfEnableIntegration)("color",s.accent),e.xp6(3),e.Oqu(s.saleforceIntegrationDetails.enableIntegration),e.xp6(2),e.Q6J("ngModel",s.sfSendCustonJson)("color",s.accent),e.xp6(3),e.Oqu(s.saleforceIntegrationDetails.sendCustomJson),e.xp6(7),e.hij("(Currently : ",s.saleforceIntegrationDetails.orgTxnCompleteCustomTags," ) "),e.xp6(5),e.Q6J("ngForOf",s.sfCustomTags),e.xp6(1),e.Q6J("matChipInputFor",i)("matChipInputSeparatorKeyCodes",s.separatorKeysCodes)("matChipInputAddOnBlur",s.addOnBlur),e.xp6(2),e.Q6J("ngIf",s.sfCustomTagsSaving),e.xp6(92),e.Oqu(n.orgName),e.xp6(3),e.Oqu(s.orgIdentifier),e.xp6(1),e.Q6J("ngModel",s.zdEnableIntegration)("color",s.accent),e.xp6(3),e.Oqu(s.zendeskIntegrationDetails.enableIntegration),e.xp6(2),e.Q6J("ngModel",s.zdSendCustomJson)("color",s.accent),e.xp6(3),e.Oqu(s.zendeskIntegrationDetails.sendCustomJson),e.xp6(7),e.hij("(Currently : ",s.zendeskIntegrationDetails.orgTxnCompleteCustomTags," ) "),e.xp6(5),e.Q6J("ngForOf",s.zdCustomTags),e.xp6(1),e.Q6J("matChipInputFor",r)("matChipInputSeparatorKeyCodes",s.separatorKeysCodes)("matChipInputAddOnBlur",s.addOnBlur),e.xp6(2),e.Q6J("ngIf",s.zdCustomTagsSaving),e.xp6(65),e.Q6J("ngIf",s.thirdPartyApiCredDetails&&s.thirdPartyApiCredDetails.length>0),e.xp6(4),e.Q6J("ngIf",s.loading)}}function Xn(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",58),e.NdJ("opened",function(){const n=e.CHM(t).index,s=e.oxw(2);return e.KtG(s.step=n)})("click",function(){const n=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.openOrgPanel(n))}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title",59),e._uU(4),e.qZA()(),e.TgZ(5,"div",60),e._uU(6," My Role in "),e.YNc(7,Oi,2,2,"span",57),e.qZA(),e.YNc(8,qi,4,3,"div",15),e.YNc(9,$n,633,130,"div",15),e.qZA(),e._UZ(10,"br"),e.qZA()}if(2&o){const t=a.$implicit,i=a.index,r=e.oxw(2);e.xp6(1),e.Q6J("expanded",r.step===i),e.xp6(3),e.hij("",t.orgName," "),e.xp6(3),e.Q6J("ngForOf",t.userOrgRoleBeanList),e.xp6(1),e.Q6J("ngIf",!r.isOrgSuperAdmin),e.xp6(1),e.Q6J("ngIf",r.isOrgSuperAdmin)}}function ea(o,a){if(1&o&&(e.TgZ(0,"div",56),e.YNc(1,Pi,2,1,"mat-error",15),e.YNc(2,Xn,11,5,"mat-accordion",57),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.orgRoleError),e.xp6(1),e.Q6J("ngForOf",t.nonPublicOrgList)}}function ta(o,a){1&o&&(e.TgZ(0,"div",36),e._uU(1," You are not part of any organization. "),e.qZA())}function oa(o,a){1&o&&(e.TgZ(0,"div",36)(1,"p"),e._uU(2," Currently you have a Free DeciZone Personal account. Please start a paid subscription account for access to advanced features as well as your private Organization. "),e.qZA()())}function ia(o,a){if(1&o&&(e.TgZ(0,"p")(1,"span",210),e._uU(2," User Count:"),e.qZA(),e._uU(3),e.qZA()),2&o){const t=e.oxw().$implicit;e.xp6(3),e.hij(" \xa0 \xa0 ",t.userCount," ")}}function ra(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.loadingCCFailed," ")}}function na(o,a){if(1&o&&(e.TgZ(0,"div",180),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.updateCardSuccessMsg," ")}}function aa(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"div",247)(1,"p")(2,"span",210),e._uU(3," Credit Card on account:"),e.qZA(),e._uU(4," \xa0 \xa0 "),e.TgZ(5,"strong"),e._uU(6),e.qZA(),e._uU(7," \xa0ending in "),e.TgZ(8,"strong"),e._uU(9),e.qZA()(),e.TgZ(10,"p")(11,"span",210),e._uU(12," Name on Card:"),e.qZA(),e._uU(13),e.qZA(),e.TgZ(14,"div")(15,"button",248),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,n=e.oxw(2);return e.KtG(n.loadUpdateCardForm(r.orgName))}),e._uU(16," Change Payment Card "),e.qZA()()()}if(2&o){const t=a.$implicit,i=e.oxw(3);e.xp6(6),e.Oqu(t.ccType),e.xp6(3),e.hij("x",t.ccLastDigit,""),e.xp6(4),e.hij(" \xa0 \xa0 ",t.name," "),e.xp6(2),e.Q6J("disabled",i.showUpdateCardForm)}}function sa(o,a){if(1&o&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.updateCardErrorMsg," ")}}function la(o,a){1&o&&e._UZ(0,"mat-spinner",55)}function ca(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"mat-expansion-panel",237),e.NdJ("opened",function(){const n=e.CHM(t).$implicit,s=e.oxw(2);
1return e.KtG(s.getOrgSubscriptionCreditCardDetails(n))}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",238),e._uU(3),e.qZA()(),e.TgZ(4,"div")(5,"p")(6,"span",210),e._uU(7," Subscription Plan:"),e.qZA(),e._uU(8),e.qZA(),e.TgZ(9,"p")(10,"span",210),e._uU(11," Account Number:"),e.qZA(),e._uU(12),e.qZA(),e.YNc(13,ia,4,1,"p",15),e.TgZ(14,"p")(15,"span",210),e._uU(16," Subscription Status:"),e.qZA(),e._uU(17),e.ALo(18,"titlecase"),e.qZA(),e.TgZ(19,"p")(20,"span",210),e._uU(21," Subscription Start Date:"),e.qZA(),e._uU(22),e.ALo(23,"date"),e.qZA(),e.TgZ(24,"p")(25,"span",210),e._uU(26," Subscription End Date:"),e.qZA(),e._uU(27),e.ALo(28,"date"),e.qZA()(),e._UZ(29,"br")(30,"mat-divider")(31,"br"),e.YNc(32,ra,2,1,"mat-error",15),e.TgZ(33,"div",239),e.YNc(34,na,2,1,"div",76),e.YNc(35,aa,17,4,"div",240),e._UZ(36,"br"),e.TgZ(37,"p"),e._uU(38," You will automatically receive an email with the link to download the invoice/receipt when the subscription payment is successfully processed. Please check your SPAM/JUNK folder if you do not see this email in your email INBOX. "),e.qZA(),e._UZ(39,"br"),e.TgZ(40,"div",239),e.YNc(41,sa,2,1,"mat-error",15),e.TgZ(42,"form",241),e.NdJ("ngSubmit",function(){const n=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.updateCard(n))}),e.TgZ(43,"div",242),e._UZ(44,"br"),e.TgZ(45,"div")(46,"p"),e._uU(47,"Name on Card:"),e.qZA(),e.TgZ(48,"mat-form-field"),e._UZ(49,"input",243),e.qZA()(),e.TgZ(50,"div",244),e._UZ(51,"div",245),e.qZA()(),e._UZ(52,"br"),e.TgZ(53,"button",246),e.YNc(54,la,1,0,"mat-spinner",40),e._uU(55,"Update Card "),e.qZA()(),e._UZ(56,"br"),e.qZA()()()}if(2&o){const t=a.$implicit,i=e.oxw(2);e.xp6(3),e.Oqu(t.orgName),e.xp6(5),e.hij(" \xa0 \xa0 ",t.subscriptionPlan," "),e.xp6(4),e.hij(" \xa0 \xa0 ",t.accountNumber," "),e.xp6(1),e.Q6J("ngIf",t.userCount),e.xp6(4),e.hij(" \xa0 \xa0 ",e.lcZ(18,16,t.subscriptionStatus)," "),e.xp6(5),e.hij(" \xa0 \xa0 ",e.xi3(23,18,t.subscriptionStart,"MMM d, y")," "),e.xp6(5),e.hij(" \xa0 \xa0 ",e.xi3(28,21,t.subscriptionEnd,"MMM d, y")," "),e.xp6(5),e.Q6J("ngIf",i.loadingCCF
1ailed),e.xp6(1),e.MGl("id","creditcard-section-",t.orgName,""),e.xp6(1),e.Q6J("ngIf",i.updateCardSuccessMsg),e.xp6(1),e.Q6J("ngForOf",i.orgSubscriptionCCList),e.xp6(5),e.MGl("id","addCreditCard-",t.orgName,""),e.xp6(1),e.Q6J("ngIf",i.updateCardError),e.xp6(1),e.Q6J("formGroup",i.updateCardForm),e.xp6(9),e.MGl("id","card-element-",t.orgName,""),e.xp6(3),e.Q6J("ngIf",i.updateCardInProcess)}}function da(o,a){if(1&o&&(e.TgZ(0,"div",235)(1,"mat-accordion"),e.YNc(2,ca,57,24,"mat-expansion-panel",236),e._UZ(3,"br"),e.qZA()()),2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.userOrgSubscriptions)}}const ga=function(o,a){return{"org-user":o,"org-admin":a}};let ua=(()=>{class o{constructor(t,i,r){this._bottomSheetRef=t,this.data=i,this.selectedSkillObj=i.selectedSkillObj,this.sessionStorage=r}openLink(t){this._bottomSheetRef.dismiss(),t.preventDefault()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(J.oL),e.Y36(J.OG),e.Y36(M.qo))},o.\u0275cmp=e.Xpm({type:o,selectors:[["skill-milestone-bottom-sheet"]],decls:16,vars:6,consts:[[1,"milestone-bottom-sheet"],["alt","User Milestone related picture.",1,"milestone-image",3,"src"],[4,"ngIf"],[3,"innerHTML"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"p")(2,"strong"),e._uU(3,"Milestone: "),e.qZA(),e._uU(4),e.qZA(),e._UZ(5,"img",1),e.TgZ(6,"p")(7,"strong"),e._uU(8,"Description: "),e.qZA(),e._uU(9),e.qZA(),e.YNc(10,gi,4,1,"p",2),e.YNc(11,ui,6,1,"p",2),e.TgZ(12,"p")(13,"strong"),e._uU(14,"Your status: "),e.qZA(),e._uU(15),e.qZA()()),2&t&&(e.xp6(4),e.hij("",i.selectedSkillObj.name," "),e.xp6(1),e.s9C("src",i.selectedSkillObj.imagePath,e.LSH),e.xp6(4),e.hij(" ",i.selectedSkillObj.desc,""),e.xp6(1),e.Q6J("ngIf",i.selectedSkillObj.howTo&&i.selectedSkillObj.howTo.length>0),e.xp6(1),e.Q6J("ngIf",i.selectedSkillObj.step&&i.selectedSkillObj.step.length>0),e.xp6(4),e.Oqu(i.selectedSkillObj.status))},dependencies:[v.O5,I.Hw],encapsulation:2}),o})(),_a=(()=>{class o{constructor(t,i){this._bottomSheetRef=t,this.data=i}openLink(t){this._bottomSheetRef.dismiss(),t.preventDefault()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(J.oL),e.Y36(J.OG))},o.\u0275cmp=e.Xpm({type:o,selectors:[["credits-explanation-bottom-sheet"]],decls:56,vars:0,consts:[["id","credits-explained"],[1,"credit-desc"],[1,"pm-section-title"],[1,"terminology-list"],[1,"terminology-item"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"h3"),e._uU(2," What are TDC & VAC credits and how do they work? "),e.qZA(),e.TgZ(3,"p",1),e._uU(4,"Each Subscription Plan starts with a specific number of the following two types of credits at the beginning of each billing period."),e.qZA(),e.TgZ(5,"p",1)(6,"strong"),e._uU(7,"1 TDC = 1 Day of UNLIMITED use for one Internal Team/Agent."),e.qZA(),e._uU(8," One Team Day Credit "),e.TgZ(9,"strong"),e._uU(10,"(TDC)"),e.qZA(),e._uU(11," allows a member of your team or agent to log in and use your DeciZone account unlimited number of times for a period of 24 hours after their first login."),e.qZA(),e.TgZ(12,"p",1)(13,"strong"),e._uU(14,"1 VAC = 1 External Visitor/Customer interaction with your Published decision tree."),e.qZA(),e._uU(15," One Visitor Activity Credit "),e.TgZ(16,"strong"),e._uU(17,"(VAC)"),e.qZA(),e._uU(18," is counted when one external visitor (i.e. your customer or public visitor who does not need to log in to your DeciZone account) opens your Published decision tree and takes at least one step forward in the tree (just opening your Published decision tree doesn't count) "),e.qZA(),e._UZ(19,"br"),e.TgZ(20,"p",2)(21,"strong"),e._uU(22,"VAC and TDC Credits are further grouped based on their validity periods as explained below:"),e.qZA()(),e.TgZ(23,"ul",3)(24,"li",4)(25,"strong"),e._uU(26,"Base-TDC/VAC:"),e.qZA(),e._uU(27," This is the number of TDC/VAC credits already included in the price of your subscription plan. "),e.TgZ(28,"strong"),e._uU(29,"The Base-TDC/VAC credits expire"),e.qZA(),e._uU(30," at the end of the billing period in which they were added to your account. If you selected the right subscription plan, you may not need any additional credits."),e.qZA(),e.TgZ(31,"li",4)(32,"strong"),e._uU(33,"Recurring-TDC/VAC:"),e.qZA(),e._uU(34," These are OPTIONAL additional credits that you may automatically purchase each billing period on top of the Base-TDC/VAC credits. Recurring credits "),e.TgZ(35,"strong"),e._uU(36,"expire"),e.qZA(),e._uU(37," at the end of the billing period but costs less than the Prepaid credits explained below. "),e.qZA(),e.TgZ(38,"li",4)(39,"strong"),e._uU(40,"Prepaid-TDC/VAC:"),e.qZA(),e._uU(41," These are OPTIONAL additional credits that you may purchase one-time as a reserve on top of the Base-TDC/VAC credits. Prepaid credits "),e.TgZ(42,"strong"),e._uU(43,"do not expire"),e.qZA(),e._uU(44," as long as your account is in active state. "),e.qZA(),e.TgZ(45,"li",4)(46,"strong"),e._uU(47,"OnDemand-TDC/VAC:"),e.qZA(),e._uU(48," Inside your account, you also have an OPTION to automatically buy a block of OnDemand TDC/VAC credits when no other TDC/VAC credits are available. These
1credits "),e.TgZ(49,"strong"),e._uU(50,"do not expire"),e.qZA(),e._uU(51," as long as your account is in active state. OnDemand credits are priced at $1/credit for both TDC/VAC and lets your account operate without any interruptions. "),e.qZA()(),e.TgZ(52,"p",1)(53,"strong"),e._uU(54," IMPORTANT: We take this approach with credits to save you money. Counting credits this way makes sure you are NOT limited by the number of members you add to your DeciZone organization account and that the credits are only counted when any of your members use your organization account."),e.qZA()(),e._UZ(55,"br"),e.qZA())},encapsulation:2}),o})(),pa=(()=>{class o{constructor(t,i,r,n,s,c,d,m,h,f,T,U,b,P,B,ge,ue,be,ee,Ca){this._userService=t,this._utilService=i,this._integrationService=r,this._stripeService=n,this._formBuilder=s,this._orgService=c,this._loginService=d,this._userMilestoneService=m,this._userWelcomeDialogService=h,this._customCssDialogService=f,this._addThirdPartyApiCredDialogService=T,this._removeThirdPartyApiCredDialogService=U,this._excelService=b,this.seoService=B,this._bottomSheet=ge,this.cdr=ue,this.router=be,this._snackBar=ee,this.dialog=Ca,this.userProfile={},this.config=new u.vA,this.landingPageUserPreference="",this.landingPagePrefValue="",this.newsletterSubscription=!1,this.flowchartLayoutPreference="FLOWCHART_LAYOUT",this.showUserOrg=!1,this.orgRoleError=!1,this.orgRoleErrorMsg="",this.showFlowchartEndStatusPanel=!1,this.isOrgSuperAdmin=!1,this.orgSuperAdmin=[],this.orgSubAdmin=[],this.orgEditor=[],this.orgDisplayName="",this.ordDisplayNameSuccessMsg="",this.orgWebsiteUrl="",this.orgWebsiteUrlSuccessMsg="",this.orgCustomKeyName="",this.orgCustomKeyNameSuccessMsg="",this.orgCustomKeyValue="",this.orgCustomKeyValueSuccessMsg="",this.orgScreenTimeout=20,this.orgScreenTimeoutSuccessMsg="",this.orgDefaultActivityRecordingPersistDaysSuccessMsg="",this.orgUserActivityRecordingSuccessMsg="",this.landingPagePrefList=[],this.orgDefaultLandingPageAfterLogin="",this.orgDefaultLandingPageSuccessMsg="",this.overrideUserLandingPagePreferenceFlag=!1,this.definedEndStatusDetails=[],this.definedEndStatusDataSource=new C.by([]),this.definedEndStatusDisplayColumns=["displayName","endStatus","actions"],this.userOrgSubscriptions=[],this.orgSubscriptionCCList=[],this.orgCCList={},this.orgUserList=[],this.orgUserListDataSource=new C.by([]),this.loadUserError=!1,this.loadUserErrorMsg="",this.orgUserDisplayColumns=["firstName","lastName","roleName","status","actions","userEmail"],this.reinviting=!1,this.orgUserTableMsg="",this.integrationOrgId="",this.clientIntegrationName="Salesforce",this.sfEnableIntegration=!1,this.sfSendCustonJson=!1,this.sfCustomTags=[],this.zdEnableIntegration=!1,this.zdSendCustomJson=!1,this.zdCustomTags=[],this.sfIntegrationOrgId="",this.sfCustomTagsSaving=!1,this.zdCustomTagsSaving=!1,this.sfIntegrationIdSaving=!1,this.selectable=!0,this.removable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[te.K5,te.OC],this.saleforceIntegrationDetails={enableIntegration:"N",sendCustomJson:"N",orgTxnCompleteCustomTags:"",orgIntegrationId:""},this.zendeskIntegrationDetails={enableIntegration:"N",sendCustomJson:"N",orgTxnCompleteCustomTags:"",orgIntegrationId:""},this.orgIdentifier="",this.uploadErr=!1,this.logoUpload=!1,this.logoDelete=!1,this.loading=!1,this.removeUserLoading=!1,this.deactivateUserLoading=!1,this.deleteUserLoading=!1,this.canDeActivateUser=!0,this.canDeleteUserAccount=!0,this.changePrimaryColor=!1,this.changeSecondColor=!1,this.changePrimaryTextColor=!1,this.changeSecondTextColor=!1,this.changeThirdTextColor=!1,this.backgroundColorChange=!1,this.flashCardColorChange=!1,this.customCssChange=!1,this.resetColors=!1,this.resetTxtColors=!1,this.defaultPrimaryColor="#673ab7",this.defaultSecondaryColor="#ffd740",this.primaryColor="#673ab7",this.secondaryColor="#ffd740",this.primaryTextColor="#673ab7",this.secondaryTextColor="#ffd740",this.headerTextColor="#ffffff",this.backgroundColor="#ffffff",this.flashCardColor="#ffffff",this.customCss="",this.orgAiPropertySuccessMsg="",this.orgAiCreationEnabled=!1,this.userActivityRecordingFlag=!0,this.color="accent",this.defaultUserActivityRecordingPersistDays=90,this.showArCreditData=!1,this.calculateUsage=!1,this.genericErr=!1,this.successMsg="",this.imageChangedEvent="",this.croppedImage="",this.showCropper=!1,this.canvasRotation=0,this.rotation=0,this.scale=1,this.containWithinAspectRatio=!1,this.transform={}
1,this.thumbLabel=!0,this.value=0,this.loadingCCFailed="",this.loadingCCDetails=!1,this.cardOptions={style:{base:{iconColor:"#666EE8",color:"#31325F",fontWeight:"300",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSize:"18px","::placeholder":{color:"#CFD7E0"}}}},this.elementsOptions={locale:"en"},this.currentCardMounted="",this.showUpdateCardForm=!1,this.updateCardInProcess=!1,this.updateCardError=!1,this.updateCardErrorMsg="",this.updateCardSuccessMsg="",this.userBasicSkills=[],this.userBasicSkillProgress=0,this.userIntermediateSkills=[],this.userIntermediateSkillProgress=0,this.userAdvancedSkills=[],this.userAdvancedSkillProgress=0,this.userOverallMilestoneProgress=0,this.showCreditUsagePanel=!1,this.selectedOrgSubscriptionPlan="",this.selectedOrgSubscriptionStatus="",this.orgCreditsLoading=!1,this.orgTdcCreditsUsageDataSource=new C.by([]),this.orgTdcCreditsUsageDisplayColumns=["creditName","creditCount","creditUsageCount","expiryDate"],this.orgVacCreditsUsageDataSource=new C.by([]),this.orgVacCreditsUsageDisplayColumns=["creditName","creditCount","creditUsageCount","expiryDate"],this.orgTotalTDCUsedCount=0,this.orgTotalVACUsedCount=0,this.orgThirdPartyApiCredDataSource=new C.by([]),this.orgThirdPartyApiCredDisplayColumns=["apiName","apiEndpoint","apiKey","isEnabled","actions"],this.thirdPartyApiCredDetails=[];var _e=document.getElementById("footer");_e&&_e.style&&(_e.style.display="block"),this.seoService.createLinkForCanonicalURL(),this.seoService.generateTags({title:"Profile Page - DeciZone",metaTitle:"Profile Page - DeciZone",metaDescription:"Your profile page.",metaImageUrl:"https://decizone.com/assets/images/DZ-LOGO-1200x628px-Fb-Li-Opt.png",robots:"noindex,nofollow",slug:window.location.href}),this.sessionStorage=P,t.userProfile.subscribe(G=>{this.userProfile.userOrg?(G.userOrg=this.userProfile.userOrg,this.userProfile=G):this.userProfile=G,this._applyUserPreferences(this.userProfile)}),t.totalCredits.subscribe(G=>{this.accumulatedArCredits=G}),t.totalPurchasedUserCount.subscribe(G=>{this.purchasedUserCount=G})}ngOnInit(){var t=document.getElementById("footer");t&&t.style&&(t.style.display="block"),this._utilService.setShowSearchButton(!1),this.updateCardForm=this._formBuilder.group({name:["",[l.kI.required]]}),this.orgWebsiteUrlForm=new l.nJ({orgWebsiteUrl:new l.p4("",[l.kI.pattern("https://.*")])}),this.orgScreenTimeoutForm=new l.nJ({screenTimeout:new l.p4("",[z.dN.max(180),z.dN.min(3)])}),this.orgScreenTimeoutForm.controls.screenTimeout.setValue(20),this.orgDefaultUserActivityPersistDaysForm=new l.nJ({defaultUserActivityPersistDays:new l.p4("",[z.dN.max(120),z.dN.min(3)])}),this.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.setValue(this.defaultUserActivityRecordingPersistDays),this.userProfile=this.sessionStorage.getObject("userProfile"),this._applyUserPreferences(this.userProfile),this._checkUserNonPublicOrg(this.userProfile),this._getUserOrgSubscriptionDetails(),this._utilService.setFlowchartFlowProperty(!1),this.sessionStorage.getItem("showWelcomeModal")&&setTimeout(()=>{this._userWelcomeDialogService.open(),this._userWelcomeDialogService.confirmed().subscribe(r=>{this.sessionStorage.removeItem("showWelcomeModal")})})}ngAfterViewInit(){this.orgUserList.length>0&&(this.orgUserListDataSource.paginator=this.paginator,this.orgUserListDataSource.sort=this.sort)}applyOrgUserFilter(t){this.orgUserListDataSource.filter=t.target.value.trim().toLowerCase(),this.orgUserListDataSource.paginator&&this.orgUserListDataSource.paginator.firstPage()}openBottomSheet(t){let r=p.find(x.P7F,function(s){return s.name===t.name});r.status=t.isCompleted?"Completed":"Not Completed",this._bottomSheet.open(ua,{data:{selectedSkillObj:r}}).afterDismissed().subscribe(()=>{console.log("Bottom sheet has been dismissed.")})}_applyUserPreferences(t){var i;if(null!==(i=t.userPreferences)&&i.length>0){var r=p.find(i,function(d){return"LANDING_PAGE"===d.preferenceName});if(r&&"My Favorite Flowchart"===r.preferenceDisplayCaption){var n=p.split(r.preferenceValue,"/");this.landingPageUserPreference="My Favorite Flowchart",this.landingPagePrefValue=n[3]}else r&&r.preferenceDisplayCaption?(this.landingPageUserPreference=r.preferenceDisplayCaption,this.landingPagePrefValue=""):this.landingPageUserPreference="My Home Page";var c,s=p.find(i,function(d){return"NEWSLETTER_SUBSCRIPTION"===d.preferenceName});s&&(this.newsletterSubscription=!!p.isEqual(s.preferenceValue,"true")),(c=this.sessionStorage.getObject("userFcLayoutPref"))&&(this.flowchartLayoutPreference=c.preferenceDisplayCaption)}else this.landingPageUserPreference="My Home Page[Default]"}_checkUserNonPublicOrg(t){var r=p.filter(t.userOrg,function(n){return"PUBLIC"!==n.orgName&&"ACTIVE"===n.userOrgStatus});if(this.showUserOrg=r.length>=1,this.showUserOrg){let n=this;this._userService.getUserOrgRole().subscribe(s=>{this.nonPublicOrgList=s.responseBody.userOrgBeanList,p.forEach(this.nonPublicOrgList,function(c){p.forEach(c.userOrgRoleBeanList,function(d){if("ORG_SUPER_ADMIN"===d.roleName||"ORG_SUB_ADMIN"===d.roleName)return n.canDeActivateUser=!1,n.canDeleteUserAccount=!1,!1})})},s=>{this.orgRoleError=!0,this.orgRoleErrorMsg="We are unable to get your organization information at this time. Please try again after some time."})}}
1_getUserOrgSubscriptionDetails(){let t=[];this._userService.getOrgSubscriptionDetails().subscribe(i=>{p.forEach(i.responseBody.orgSubscriptionBeanList,function(r){var n={};n.orgName=r.orgName,n.orgId=r.orgId,n.subscriptionPlan=r.subscriptionPlan,n.accountNumber=r.accountNumber,n.userCount=r.totalUsers,n.subscriptionStatus=r.subscriptionStatus,n.stripeCustomerId=r.stripeCustomerId,"active"===r.subscriptionStatus.toLowerCase()?(n.subscriptionEnd=r.subscriptionEnd,n.subscriptionStart=r.subscriptionStart):(n.subscriptionEnd=r.trialSubscriptionEnd,n.subscriptionStart=r.trialSubscriptionStart),t.push(n)}),this.userOrgSubscriptions=t})}getUserMilestoneProgress(t,i){this.userBasicSkills=this._userMilestoneService.getUserBasicMilestone(t),this.userBasicSkillProgress=this._userMilestoneService.getUserBasicMilestoneProgressPercent(),this.userIntermediateSkills=this._userMilestoneService.getUserIntermediateMilestone(i),this.userIntermediateSkillProgress=this._userMilestoneService.getUserIntermediateMilestoneProgressPercent(),this.userAdvancedSkills=this._userMilestoneService.getUserAdvancedMilestone(i),this.userAdvancedSkillProgress=this._userMilestoneService.getUserAdvancedMilestoneProgressPercent(),this.userOverallMilestoneProgress=this._userMilestoneService.getOverallMilestoneProgress(t,i)}editAvatar(){let t=this.dialog.open(Ee,{height:"600px",width:"600px",data:{}});t.afterClosed().subscribe(i=>{t=null})}getOrgSubscriptionCreditCardDetails(t){this.loadingCCDetails=!0,this.loadingCCFailed="",this.showUpdateCardForm=!1,document.getElementById("addCreditCard-"+t.orgName)&&(document.getElementById("addCreditCard-"+t.orgName).style.display="none"),this.orgSubscriptionOrgId=t.orgId,this.orgSubscriptionCCList=this.orgCCList[t.orgName];let i="creditcard-section-"+t.orgName;this.orgSubscriptionCCList&&0!==this.orgSubscriptionCCList.length?this.orgSubscriptionCCList&&this.orgSubscriptionCCList.length>0&&(document.getElementById(i)&&(document.getElementById(i).style.display="block"),document.getElementById("addCreditCard-"+t.orgName).style.display="none"):this._orgService.getStripeCCInfoForOrgSubscription(t.stripeCustomerId).subscribe(r=>{this.orgCCList[t.orgName]=r.responseBody.orgSubscriptionCClist,this.orgSubscriptionCCList=this.orgCCList[t.orgName],document.getElementById(i)&&(document.getElementById(i).style.display="block"),this.loadingCCDetails=!1},r=>{this.loadingCCFailed="Unexpected error occurred while processing your request, please try again after sometime.",this.loadingCCDetails=!1})}loadUpdateCardForm(t){this.showUpdateCardForm=!0,document.getElementById("addCreditCard-"+t)&&(document.getElementById("addCreditCard-"+t).style.display="block"),this._stripeService.elements(this.elementsOptions).subscribe(i=>{this.elements=i,(!this.elements||!this.card)&&(this.card=this.elements.create("card",this.cardOptions),this.card.mount("#card-element-"+t))})}updateCard(t){var i=this.updateCardForm.get("name").value;this.updateCardInProcess=!0,this.updateCardSuccessMsg="",this.updateCardError=!1,this._stripeService.createToken(this.card,{name:i}).subscribe(r=>{r.token?(console.log(r.token),this._orgService.updateStripeCCForOrgSubscription({stripeCustomerId:t.stripeCustomerId,ccTokenId:r.token.id}).subscribe(s=>{console.log(s),this.showUpdateCardForm=!1,this.updateCardInProcess=!1,this.orgSubscriptionCCList=s.responseBody.orgSubscriptionCClist,this.orgCCList[t.orgName]=s.responseBody.orgSubscriptionCClist,this.updateCardSuccessMsg="Successfully updated your card",document.getElementById("addCreditCard-"+t.orgName)&&(document.getElementById("addCreditCard-"+t.orgName).style.display="none",this.card.clear(),this.updateCardForm.controls.name.setValue(""));let c={event:"edit_subscr_updatecrcard","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.orgSubscriptionOrgId};window.dataLayer.push(c)},s=>{this.updateCardInProcess=!1,this.updateCardError=!0,this.updateCardErrorMsg="Unexpected error occurred while processing your request for updating card. Please try again after some time or contact DeciZone support team."})):r.error&&(console.log(r.error.message),this.updateCardInProcess=!1)})}openOrgPanel(t){var i=!1;this.orgUserList=[],this.showCreditUsagePanel=!1,p.forEach(t.userOrgRoleBeanList,function(s){"ORG_SUPER_ADMIN"!==s.roleName&&"ORG_SUB_ADMIN"!==s.roleName||(i=!0)}),this.isOrgSuperAdmin=i;var n=p.filter(this.userProfile.userOrg,function(s){return s.orgName===t.orgName});n[0].subscriptionPlan&&"OLD"===n[0].subscriptionPlan&&(this.showCreditUsagePanel=!0),this.accumulatedArCredits=n[0].accumulatedArCredits,this.purchasedUserCount=n[0].purchasedUserCount,this.perUserPrice=n[0].perUserPrice,this.isOrgSuperAdmin||(this.orgSuperAdmin=p.filter(n[0].orgSuperUserRoleDetails,function(s){return"ORG_SUPER_ADMIN"===s.roleName}),this.orgSubAdmin=p.filter(n[0].orgSuperUserRoleDetails,function(s){return"ORG_SUB_ADMIN"===s.roleName}),this.orgEditor=p.filter(n[0].orgSuperUserRoleDetails,function(s){return"ORG_EDITOR"===s.roleName}))}exportOrgUsers(t){let i=t.orgName;this._excelService.exportAsExcelForOrgUsers(this.orgUserList,i+"_OrgUsers",i)}showCreditsExplanation(){this._bottomSheet.open(_a,{}).afterDismissed().subscribe(()=>{console.log("Bottom sheet has been dismissed.")}
1)}getOrgCreditsDetails(t){this.orgCreditsLoading=!0,console.log("Getting org's credits details",t);let r=p.filter(this.userOrgSubscriptions,function(c){return p.isEqual(c.orgName,t.orgName)});r[0]&&(this.selectedOrgSubscriptionPlan=r[0].subscriptionPlan,this.selectedOrgSubscriptionStatus=r[0].subscriptionStatus,this.selectedOrgSubscriptionStart=r[0].subscriptionStart,this.selectedOrgSubscriptionEnd=r[0].subscriptionEnd);var n=this.sessionStorage.getObject("cattree");this._orgService.getOrgCreditsUsage(t.orgId,n[t.orgName].orgUserAccess).subscribe(c=>{console.log("org credits usage response",c);let d=c.responseBody.orgTdcCredits,m=c.responseBody.orgVacCredits;d=p.sortBy(d,[function(h){return h.sortOrder}]),m=p.sortBy(m,[function(h){return h.sortOrder}]),this.orgTdcCreditsUsageDataSource=new C.by(d),this.orgVacCreditsUsageDataSource=new C.by(m),this.orgTotalTDCUsedCount=c.responseBody.tdcUsedCount,this.orgTotalVACUsedCount=c.responseBody.vacUsedCount,this.orgCreditsLoading=!1},c=>{this.orgCreditsLoading=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_CREDITS_USAGE_DETAILS_FAILED.errorMessage,...x.wml})})}addEndStatus(t){let i=this.dialog.open(qo,{width:"300px",data:{orgName:t}});i.afterClosed().subscribe(r=>{i=null,r&&(this.definedEndStatusDetails=r,this.definedEndStatusDataSource=new C.by(this.definedEndStatusDetails),this.cdr.detectChanges())})}loadFlowchartEndStatus(t){0===this.definedEndStatusDetails.length&&this._orgService.getOrgFlowchartEndStatus(t).subscribe(i=>{this.definedEndStatusDetails=i.responseBody,this.definedEndStatusDataSource=new C.by(this.definedEndStatusDetails),this.cdr.detectChanges(),this.loading=!1},i=>{this.loading=!1})}loadOrgUsers(t){var i=this.sessionStorage.getObject("cattree");i&&this._userService.loadOrgUsers(t,i[t].orgUserAccess).subscribe(n=>{this.orgUserList=n.responseBody.userOrgBeanList,this.orgUserListDataSource=new C.by(this.orgUserList),this.cdr.detectChanges(),this.orgUserListDataSource.paginator=this.paginator,this.orgUserListDataSource.sort=this.sort,this.loading=!1},n=>{this.loadUserError=!0,this.loadUserErrorMsg="We are unable to load this organization's users at this time. Please try again after some time.",this.loading=!1})}buyUsers(t){var i=this.sessionStorage.getObject("cattree");let n=this.dialog.open(He,{height:"500px",width:"500px",data:{orgName:t.orgName,orgId:t.orgId,userAccess:i[t.orgName].orgUserAccess,currentPurchasedUserCount:this.purchasedUserCount,perUserPrice:this.perUserPrice}});n.afterClosed().subscribe(s=>{n=null})}buyActivityRecordCredits(t){var i=this.sessionStorage.getObject("cattree");let n=this.dialog.open(nt,{height:"500px",width:"500px",data:{orgName:t.orgName,orgId:t.orgId,userAccess:i[t.orgName].orgUserAccess,accumulatedArCredits:this.accumulatedArCredits}});n.afterClosed().subscribe(s=>{n=null})}addUserToOrganization(t){if(this.orgUserList.length>=this.purchasedUserCount)this.genericErr=!0,this.genericErrMsg="Please contact DeciZone Support team to add more users to your organization.";else{this.genericErr=!1;var i=this.sessionStorage.getObject("cattree");let n=this.dialog.open(Qt,{height:"100%",width:"100%",data:{orgId:t.orgId,orgName:t.orgName,userAccess:i[t.orgName].orgUserAccess,currentOrgUserCount:this.orgUserList.length,purchasedUserCount:this.purchasedUserCount}});n.afterClosed().subscribe(s=>{n=null,s&&this.loadOrgUsers(t.orgName)})}}checkIfOrgSuperAdmin(t){let i=[];return p.forEach(t.userOrgRoleBeanList,function(r){i.push(r.roleName)}),!!(i&&i.indexOf("ORG_SUPER_ADMIN")>-1)}addUser(t){this.orgUserList.length>=this.purchasedUserCount?(this.genericErr=!0,this.genericErrMsg="You have reached the max limit for adding users to your organization. If you would like to add more users to your organization, please consider buying more users to your account."):(this.genericErr=!1,this.loading=!0,this._userService.getOrganizationRoles().subscribe(i=>{var n=this.sessionStorage.getObject("cattree")[t.orgName].orgUserAccess;let s=[];s=i.responseBody.roles;var c=p.filter(s,function(m){return"ORG"===m.accessLevel});let d=this.dialog.open(jt,{width:"300px",data:{roles:c,orgName:t.orgName,orgId:t.orgId,userAccess:n}});d.afterClosed().subscribe(m=>{d=null,m&&this.loadOrgUsers(t.orgName),this.loading=!1})},i=>{}))}reinviteUser(t,i){this.reinviting=!0,this.genericErrMsg="",this.genericErr=!1,this.orgUserTableMsg="";let n=this.dialog.open(Vt,{width:"300px",data:{title:"Confirm you want to reinvite the selected user to your organization.",message:"Are you sure you want to reinvite the user "+t.userEmail+" to your organization?",answer:"yes"}});n.afterClosed().subscribe(s=>{if(n=null,"yes"===s){var c=this.sessionStorage.getObject("cattree");this._orgService.sendInviteUserToOrgLink({orgName:i.orgName,userAccess:c[i.org
1Name].orgUserAccess,emailAddress:t.userEmail}).subscribe(h=>{console.log("response of resend invite link",h),this.reinviting=!1,t.status="ORG_INVITED",this.orgUserTableMsg="Successfully Invited user: "+t.userEmail},h=>{this.reinviting=!1,this.genericErr=!0,this.genericErrMsg="Inviting user to your organization process failed. Please try again later."})}})}editUserRole(t,i){let r=this.dialog.open(to,{width:"300px",data:{userForEdit:t,org:i}});r.afterClosed().subscribe(n=>{r=null,n&&this.loadOrgUsers(i.orgName)})}removeUser(t,i){this.genericErrMsg="",this.genericErr=!1;var r=!0;if(p.forEach(t.userOrgRoleBeanList,function(s){if("ORG_SUPER_ADMIN"===s.roleName)return r=!1,!1}),r){this.genericErr=!1,this.selecteUserId=t.userId;let s=this.dialog.open(oo,{width:"300px",data:{title:"Confirm you want to delete the selected user from your organization.",message:"Are you sure you want to remove the user "+t.userEmail+" from your organization?",answer:"yes"}});const c=s.componentInstance.genericErrMsg.subscribe(d=>{this.genericErrMsg=d,this.genericErr=!0});s.afterClosed().subscribe(d=>{if(c.unsubscribe(),s=null,"yes"===d){this.removeUserLoading=!0;var m=this.sessionStorage.getObject("cattree");this._userService.removePublicUserFromOrg(t.userId,i.orgId,m[i.orgName].orgUserAccess).subscribe(f=>{var T=[];p.forEach(this.orgUserList,function(b){b.userId!==t.userId&&T.push(b)}),this.orgUserList=T,this.orgUserListDataSource=new C.by(this.orgUserList),this.cdr.detectChanges();let U={event:"edit_org_user","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-option_id_seleted":t.userId};window.dataLayer.push(U),this.orgUserListDataSource.paginator=this.paginator,this.orgUserListDataSource.sort=this.sort,this.removeUserLoading=!1},f=>{f&&f.error&&"412"===f.error.statusCode?(this.genericErr=!0,this.genericErrMsg=f&&f.error?f.error.statusMessage:""):(this.removeUserLoading=!1,this.genericErr=!0,this.genericErrMsg="We are not able to remove user at this time. Please try again.")})}})}else this.genericErr=!0,this.genericErrMsg="Org-admin cannot be removed from the Organization. Please contact DeciZone Support."}downloadUserInfo(){let t={};t.firstName=this.userProfile.firstName,t.lastName=this.userProfile.lastName,t.emailAddress=this.userProfile.emailAddress,t.displayName=this.userProfile.displayName;let i=[];p.forEach(this.userProfile.userOrg,function(s){let c={};c.orgName=s.orgName,c.roles=s.roleDetails,i.push(c)}),t.organizations=i;let r={event:"click_downloadinfo","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole()};window.dataLayer.push(r);let n=new File([JSON.stringify(t)],"userInfo.json",{type:"text/json;charset=utf-8"});(0,ae.saveAs)(n,"")}confirmDeactivateUserAccount(){this.genericErr=!1;let i={event:"click_deactivateact","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole()};window.dataLayer.push(i);let r=this.dialog.open(io,{width:"300px",data:{title:"Confirm Deactivation!",message:" If you deactivate your account, we will not send you flowchart related emails but you may receive occasional necessary email communication from DeciZone. If you confirm, you will be logged out from DeciZone immediately and your account will be deactivated. Are you sure you want to deactivate your DeciZone account? ",answer:"yes"}});const n=r.componentInstance.genericErrMsg.subscribe(s=>{this.genericErrMsg=s,this.genericErr=!0});r.afterClosed().subscribe(s=>{if(n.unsubscribe(),r=null,"yes"===s){this.deactivateUserLoading=!0;let c=[];p.forEach(this.nonPublicOrgList,function(d){c.push(d.orgId)}),this._userService.deactivateUserAccount(c).subscribe(d=>{this._loginService.logout(!1).subscribe(m=>{this._loginService.clearUserSession(),this.orgLogoUrl=null,this.deactivateUserLoading=!1,this.router.navigateByUrl("")},m=>{this._loginService.clearUserSession(),this.sessionStorage.clear(),this.router.navigateByUrl("/login")}),this.deactivateUserLoading=!1},d=>{this.genericErr=!0,this.genericErrMsg="We are not able deactivate your account at this time. Please try again or c
1ontact DeciZone Support team.",this.deactivateUserLoading=!1})}})}confirmDeleteAccount(){this.genericErr=!1;let i={event:"click_deleteact","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole()};window.dataLayer.push(i);let r=this.dialog.open(ro,{width:"300px",data:{title:"Delete Your DeciZone Account Confirmation",message:"If you delete your account, all private flowcharts owned by you will be deleted but flowcharts you made Public will not be deleted. If you are part of any organization and if you have created any flowcharts in that organization those flowcharts are owned by that organization and will remain accessible by others in that organization. \nPlease confirm you want to Delete your DeciZone account permanently.",answer:"yes"}});const n=r.componentInstance.genericErrMsg.subscribe(s=>{this.genericErrMsg=s,this.genericErr=!0});r.afterClosed().subscribe(s=>{n.unsubscribe(),r=null,"yes"===s&&(this.deleteUserLoading=!0,this._userService.deleteUser().subscribe(c=>{this._loginService.clearUserSession(),this.orgLogoUrl=null,this.deleteUserLoading=!1,this.router.navigateByUrl("")},c=>{this.genericErr=!0,this.genericErrMsg="We are not able delete your account at this time. Please try again or contact DeciZone Support team.",this.deleteUserLoading=!1}))})}editDisplayName(){let t=this.dialog.open(_o,this.config);t.componentInstance.displayName=this.userProfile.displayName,t.afterClosed().subscribe(i=>{if(t=null,this.sessionStorage.setObject("userProfile",this.userProfile),i){this._snackBar.openFromComponent(O.f,{data:"Successfully updated displayName",...x.jjv});let r={event:"edit_displayname","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole()};window.dataLayer.push(r)}})}changePassword(){let t=this.dialog.open(Uo,this.config);t.afterClosed().subscribe(i=>{if(t=null,i){this._snackBar.openFromComponent(O.f,{data:"Successfully updated password",...x.jjv});let r={event:"edit_password","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole()};window.dataLayer.push(r)}})}saveNewsletterPreference(t){this.newsletterSubscription=!this.newsletterSubscription,this._userService.saveUserPreferenceByPreferenceName({preferenceName:"NEWSLETTER_SUBSCRIPTION",preferenceValue:this.newsletterSubscription}).subscribe(r=>{this._userService.getUserProfileData().subscribe(n=>{var s;this.userProfile=n.responseBody,s=this.sessionStorage.getObject("userProfile"),this.userProfile.userOrg=s.userOrg,this.sessionStorage.setObject("userProfile",this.userProfile)})},r=>{})}changeLandingPagePreference(){this._userService.getPreferenceOptionsByPreferenceName("LANDING_PAGE").subscribe(t=>{let i=[],r=[];r=this.sessionStorage.getObject("orgNameList");let n=!(1!==r.length||!p.includes(r,"PUBLIC"));p.forEach(t.responseBody.preferences,function(c,d){("Organization Home Page"===d||"KnowledgeBase Page"===d)&&n||i.push(c)});let s=this.dialog.open(Io,{width:"300px",data:{prefOptions:i,currentPrefOption:this.landingPageUserPreference,currentPrefValue:this.landingPagePrefValue}});s.afterClosed().subscribe(c=>{c&&this._userService.getUserProfileData().subscribe(d=>{var m;this.userProfile=d.responseBody,m=this.sessionStorage.getObject("userProfile"),this.userProfile.userOrg=m.userOrg,this.sessionStorage.setObject("userProfile",this.userProfile),this._snackBar.openFromComponent(O.f,{data:"Successfully updated preference for Landing page after login",...x.jjv})}),s=null})},t=>{})}changeFlowchartLayoutPreference(){let t,i,r,n={};n=this.sessionStorage.getObject("fclayoutprefmap"),p.forEach(n,function(h,f){"ONE_LAYER_LAYOUT"===f?t=h.preferenceDetailId:"FLOWCHART_LAYOUT"===f?i=h.preferenceDetailId:"CARD_LAYOUT"===f&&(r=h.preferenceDetailId)});let m=this.dialog.open(So,{width:"500px",data:{oneLayerPrefId:t,threeLayerFcPrefId:i,cardLayoutPrefId:r}});m.afterClosed().subscribe(h=>{h&&this._userService.getUserProfileData().subscribe(f=>{var T;if(this.userProfile=f.responseBody,T=this.sessionStorage.getObject("userProfile"),this.userProfile.userOrg=T.userOrg,this.sessionStorage.setObject("userProfile",this.userProfile),this._snackBar.openFromComponent(O.f,{data:"Successfully updated flowchart layout preference",...x.jjv}),null!==this.userProfile.userPreferences&&this.userProfile.userPreferences.length>0){var U=p.find(this.userProfile.userPreferences,function(P){return"FLOWCHART_LAYOUT"===P.preferenceName});
1U&&(this.sessionStorage.setObject("userFcLayoutPref",U),this.flowchartLayoutPreference=U.preferenceDisplayCaption)}let b={event:"edit_fclayout_pref","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId(),"dlv-fc_layout_id":this._utilService.getLoggedInUserFlowchartLayoutPreference()};window.dataLayer.push(b)}),m=null})}loadLandingPagePreferences(){let t=this;this._userService.getPreferenceOptionsByPreferenceName("LANDING_PAGE").subscribe(i=>{this.landingPagePrefList.push("None"),p.forEach(i.responseBody.preferences,function(r,n){"My Favorite Flowchart"!==n&&"DeciZone Featured Flowchart"!==n&&"My Account"!==n&&"My Home Page"!==n&&"Content Settings"!==n&&t.landingPagePrefList.push(r.preferenceDisplayCaption)})},i=>{})}getOrgProperties(t){let i=this;this.orgDefaultLandingPageSuccessMsg="",this._orgService.getOrganizationProperties(t.orgId).subscribe(r=>{if(console.log(r),this.orgLogoUrl=r.responseBody.logoUrl,this.orgDisplayName=r.responseBody.orgDisplayName,this.orgWebsiteUrlForm.controls.orgWebsiteUrl.setValue(r.responseBody.orgWebsiteUrl),this.orgCustomKeyName=r.responseBody.orgCustomKeyName,this.orgCustomKeyValue=r.responseBody.orgCustomKeyValue,this.orgScreenTimeoutForm.controls.screenTimeout.setValue(null!=r.responseBody.screenTimeout?r.responseBody.screenTimeout/60:20),this.userActivityRecordingFlag=!(!r.responseBody.userActivityRecording||"Y"!==r.responseBody.userActivityRecording),this.orgDefaultLandingPageAfterLogin=r.responseBody.defaultLandingPageAfterLogin,r.responseBody.defaultLandingPageAfterLogin){let s=p.find(i.landingPagePrefList,function(c){return p.isEqual(r.responseBody.defaultLandingPageAfterLogin,c)});s&&(this.selectedLandingPagePref=s)}else this.selectedLandingPagePref=i.landingPagePrefList[0];this.overrideUserLandingPagePreferenceFlag=!(!r.responseBody.overrideUserLandingPagePreference||"Y"!==r.responseBody.overrideUserLandingPagePreference),this.defaultUserActivityRecordingPersistDays=r.responseBody.defaultUserActivityPersistanceDays,this.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.setValue(r.responseBody.defaultUserActivityPersistanceDays),r.responseBody.brandPrimaryColor&&(this.primaryColor=r.responseBody.brandPrimaryColor),r.responseBody.brandSecondaryColor&&(this.secondaryColor=r.responseBody.brandSecondaryColor),r.responseBody.textPrimaryColor&&(this.primaryTextColor=r.responseBody.textPrimaryColor),r.responseBody.textSecondaryColor&&(this.secondaryTextColor=r.responseBody.textSecondaryColor),r.responseBody.headerTextColor&&(this.headerTextColor=r.responseBody.headerTextColor),r.responseBody.backgroundColor&&(this.backgroundColor=r.responseBody.backgroundColor),r.responseBody.flashCardColor&&(this.flashCardColor=r.responseBody.flashCardColor),r.responseBody.customCss&&(this.customCss=r.responseBody.customCss),r.responseBody.aiCreationEnabled&&"Y"===r.responseBody.aiCreationEnabled&&(this.orgAiCreationEnabled=!0),this.orgAiCreationLimit=r.responseBody.aiCreationLimit,this.orgAiCreationLimitPerGoal=r.responseBody.aiCreationLimitPerGoal,this.orgAiUsageCount=r.responseBody.aiUsageCount},r=>{console.log("Error in getting organization properties.")})}calculateOrgActivityRecordUsage(t){this.calculateUsage=!0;var i=this.sessionStorage.getObject("cattree");this._orgService.getOrgActivityRecordUsage(t.orgName,i[t.orgName].orgUserAccess).subscribe(n=>{this._userMilestoneService.saveOrUpdateUserMilestone("CHECKED_ACTIVITY_RECORD_CREDITS",null),this.showArCreditData=!0,this.calculateUsage=!1,this.activityRecordUsage=n.responseBody,this.activityRecordCreditRemaining=this.accumulatedArCredits-this.activityRecordUsage},n=>{this.calculateUsage=!1,console.log("Error in getting org activity record usage data")})}editOrgDisplayName(t){console.log("selected org display name-",this.orgDisplayName),this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this._orgService.saveOrganizationProperties({orgId:t.orgId,propertyName:"ORG_DISPLAYNAME",orgDisplayName:this.orgDisplayName}).subscribe(r=>{this.ordDisplayNameSuccessMsg="Successfully updated your organization displayname. Please logout and log back in to see these changes in your account.",this.orgDisplayName=r.responseBody.orgDisplayName;let n={event:"edit_org_displayname","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(n)},r=>{this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_DISPLAYNAME_UPDATE_FAILED.errorMessage,...x.wml})})}editOrgCustomKeyName(t){console.log("selected org custom keyname-",this.orgCustomKeyName),this.orgCustomKeyNameSuccessMsg="",this.uploadErr=!1,this._orgService.saveOrganizationProperties({orgId:t.orgId,propertyName:"ORG_CUSTOM_KEYNAME",orgCustomKeyName:this.orgCustomKeyName}).subscribe(r=>{this.orgCustomKeyNameSuccessMsg="Successfully updated your organization custom key name. Please logout and log back in to see these changes in your account.",this.orgCustomKeyName=r.responseBody.orgCustomKeyName;let n={event:"edit_org_custom_keyname","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(n)},r=>{this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_CUSTOM_KEYNAME_UPDATE_FAILED.errorMessage,...x.wml})})}editOrgCustomKeyValue(t){console.log("selected org custom keyvalue-",this.orgCustomKeyValue),this.orgCustomKeyValueSuccessMsg="",this.uploadErr=!1,this._orgService.saveOrganizationProperties({orgId:t.orgId,propertyName:"ORG_CUSTOM_KEYVALUE",orgCustomKeyValue:this.orgCustomKeyValue}).subscribe(r=>{this.orgCustomKeyNameSuccessMsg="Successfully updated your organization custom key value. Please logout and log back in to see these changes in your account.",this.orgCustomKeyValue=r.responseBody.orgCustomKeyValue;let n={event:"edit_org_custom_keyvalue","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(n)},r=>{this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_CUSTOM_KEYVALUE_UPDATE_FAILED.errorMessage,...x.wml})})}editOrgWebsiteUrl(t){console.log("selected org website url-",this.orgWebsiteUrl),this.orgWebsiteUrlSuccessMsg="",this.uploadErr=!1;let i={orgId:t.orgId,propertyName:"ORG_WEBSITE_URL",orgWebsiteUrl:this.orgWebsiteUrlForm.get("orgWebsiteUrl").value};this._orgService.saveOrganizationProperties(i).subscribe(r=>{this.orgWebsiteUrlSuccessMsg="Successfully updated your organization website url. Please logout and log back in to see these changes in your account.",this.orgWebsiteUrl=r.responseBody.orgWebsiteUrl;let n={event:"edit_org_website_url","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(n)},r=>{this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_WEBSITE_URL_UPDATE_FAILED.errorMessage,...x.wml})})}editOrgScreenTimeout(t){this.orgScreenTimeoutSuccessMsg="",this.uploadErr=!1;let i={orgId:t.orgId,propertyName:"ORG_SCREENTIMEOUT",screenTimeout:this.orgScreenTimeoutForm.get("screenTimeout").value};this._orgService.saveOrganizationProperties(i).subscribe(r=>{this.orgScreenTimeoutSuccessMsg="Successfully updated your organization session timeout. Please logout and log back in to see these changes in your account.",this.orgScreenTimeoutForm.controls.screenTimeout.setValue(r.responseBody.screenTimeout/60);let n={event:"edit_org_sessiontimeout","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId()};window.dataLayer.push(n)},r=>{this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_SCREEN_TIMEOUT_UPDATE_FAILED.errorMessage,...x.wml})})}toggleOverrideUserLandingPagePref(){"None"===this.selectedLandingPagePref&&(this.overrideUserLandingPagePreferenceFlag=!1)}changeUserLandingPagePrefOverrideFlag(t){this.overrideUserLandingPagePreferenceFlag=!!t.source._checked}editOrgDefaultLandingPageAfterLogin(t){this.orgDefaultLandingPageSuccessMsg="","None"===this.selectedLandingPagePref&&(this.overrideUserLandingPagePreferenceFlag=!1),this._orgService.saveOrganizationProperties({orgId:t.orgId,propertyName:"ORG_LANDINGPAGE_AFTER_LOGIN",defaultLandingPagePreference:this.selectedLandingPagePref?this.selectedLandingPagePref:"None",overrideUserLandingPagePreference:this.overrideUserLandingPagePreferenceFlag?"Y":"N"}).subscribe(r=>{this.orgDefaultLandingPageSuccessMsg="Successfully updated Organization default landing page for all users in your org. Please logout and log back in to see these changes in your account.",this.orgDefaultLandingPageAfterLogin=r.responseBody.defaultLandingPageAfterLogin},r=>{this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORG_DEFAULT_LANDING_PAGE_UPDATE_FAILED.errorMessage,...x.wml})})}editOrgAiCreationFlag(t,i){this.orgAiPropertySuccessMsg="",this.orgAiCreationEnabled=!!t.source._checked,this._orgService.saveOrganizationProperties({orgId:i.orgId,propertyName:"ORG_AI_CREATION_ENABLE",aiCreationEnabled:this.orgAiCreationEnabled?"Y":"N"}).subscribe(n=>{this.orgAiPropertySuccessMsg="Successfully updated your organization AI Creation Flag. Please logout and log back in to see these changes in your account."},n=>{})}editOrgUserActivityRecordingFlag(t,i){this.orgUserActivityRecordingSuccessMsg="",this.uploadErr=!1,this.userActivityRecordingFlag=!!t.source._checked,this._orgService.saveOrganizationProperties({orgId:i.orgId,propertyName:"ORG_USER_ACTIVITY_RECORDING",userActivityRecording:this.userActivityRecordingFlag?"Y":"N"}).subscribe(n=>{this.orgUserActivityRecordingSuccessMsg="Successfully updated your organization User Activity Recording Flag. Please logout and log back in to see these changes in your account."},n=>{})}editDefaultUserActivityRecordingPersistDays(t){console.log("selected org default user activity recording persist days-",this.orgDefaultUserActivityPersistDaysForm.get("defaultUserActivityPersistDays").value),this.orgDefaultActivityRecordingPersistDaysSuccessMsg="",this.uploadErr=!1;let i={orgId:t.orgId,propertyName:"ORG_DEFAULT_USER_ACTIVITY_PERSIST_DAYS",defaultUserActivityPersistanceDays:this.orgDefaultUserActivityPersistDaysForm.get("defaultUserActivityPersistDays").value};this._orgService.saveOrganizationProperties(i).subscribe(r=>{this.orgDefaultActivityRecordingPersistDaysSuccessMsg="Successfully updated your organization default persist days for user activity recordings. Please logout and log back in to see these changes in your account.",this.orgDefaultUserActivityPersistDaysForm.controls.defaultUserActivityPersistDays.setValue(r.responseBody.defaultUserActivityPersistanceDays)},r=>{})}fileChangeEvent(t){this.imageChangedEvent=t}imageCropped(t){this.croppedImage=t.base64,console.log(t,(0,w.Ll)(t.base64))}imageLoaded(){this.showCropper=!0,console.log("Image loaded")}cropperReady(t){console.log("Cropper ready",t)}rotateLeft(){this.canvasRotation--,this._flipAfterRotate(),this.updateRotation()}rotateRight(){this.canvasRotation++,this._flipAfterRotate(),this.updateRotation()}_flipAfterRotate(){this.transform={...this.transform,flipH:this.transform.flipV,flipV:this.transform.flipH}}flipHorizontal(){this.transform={...this.transform,flipH:!this.transform.flipH}}flipVertical(){this.transform={...this.transform,flipV:!this.transform.flipV}}resetImage(){this.scale=1,this.rotation=0,this.canvasRotation=0,this.transform={}}zoomOut(){this.scale-=.1,this.transform={...this.transform,scale:this.scale}}zoomIn(){this.scale+=.1,this.transform={...this.transform,scale:this.scale}}toggleContainWithinAspectRatio(){this.containWithinAspectRatio=!this.containWithinAspectRatio}updateRotation(){this.transform={...this.transform,rotate:this.rotation}}loadImageFailed(){console.log("Load failed"),this.genericErr=!0,this.genericErrMsg="Loading Image Failed"}dataURItoBlob(t){const i=atob(t.split(",")[1]),r=[];for(let n=0;n<i.length;n++)r.push(i.charCodeAt(n));return new Blob([new Uint8Array(r)],{type:"image/png"})}validateSelectedImage(t){if(this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,t.target.files&&t.target.files.length>0){if(!p.includes(["image/png"],t.target.files[0].type))return this.uploadErrMsg="Not valid image type. Only png file is allowed.",void(this.uploadErr=!0)}else this.uploadErr=!0,this.uploadErrMsg="You haven't selected any file."}uploadLogo(t){var i=this;return(0,R.Z)(function*(){i.ordDisplayNameSuccessMsg="",i.uploadErr=!1;let r=i.fileInput.nativeElement;if(r.files.length>0){i.logoUpload=!0;let s=r.files.item(0).name.replace(/\s/g,"");
1s=s.replace(/[\])}[{(]/g,"");let c=s.substring(0,s.indexOf("."))+".png";console.log("png file name",c);const d=i.dataURItoBlob(i.croppedImage);console.log("file blob",d);let m=new File([d],c,{type:"image/png"});const h={maxSizeMB:1,maxWidthOrHeight:600,useWebWorker:!1};let f=m;try{const b=yield(0,Y.Z)(m,h);console.log("compressedFile instanceof Blob",b instanceof Blob),console.log(`compressedFile size ${b.size/1024/1024} MB`),f=b}catch(b){console.log(b)}let T="",U=new FileReader;U.readAsDataURL(f),U.onload=()=>{T=U.result.toString().split(",")[1],i._orgService.saveOrganizationProperties({orgId:t.orgId,logoName:c,logoImageData:T}).subscribe(P=>{i.orgLogoUrl=P.responseBody.logoUrl,i.sessionStorage.setObject("orgLogoUrl",i.orgLogoUrl),i._loginService.showOrgLogo(!0);let B={event:"upload_logo_image","dlv-user_state_id":"loggedin","dlv-user_id":i._utilService.getLoggedInUserId(),"dlv-org_member":i._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":i._utilService.getLoggedInUserRole(),"dlv-org_id":i._utilService.getLoggedInUserOrgId()};window.dataLayer.push(B),i.logoUpload=!1},P=>{i.uploadErr=!0,i.uploadErrMsg=P&&P.error?P.error.statusMessage:"",i.logoUpload=!1})}}else i.logoUpload=!1,i.uploadErr=!0,i.uploadErrMsg="Image is not selected for logo."})()}deleteLogo(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.logoDelete=!0,this._orgService.deleteOrganizationProperties({orgId:t.orgId,propertyName:"BRAND_LOGO",logoName:"",logoImageData:""}).subscribe(r=>{this.orgLogoUrl=r.responseBody.logoUrl,this.sessionStorage.removeItem("orgLogoUrl"),this._loginService.showOrgLogo(!1),this.logoDelete=!1},r=>{this.uploadErr=!0,this.uploadErrMsg=r&&r.error?r.error.statusMessage:"",this.logoDelete=!1})}changeBrandPrimaryColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.changePrimaryColor=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,brandPrimaryColor:this.primaryColor}).subscribe(r=>{this.primaryColor=r.responseBody.brandPrimaryColor,document.documentElement.style.setProperty("--primarycolor",this.primaryColor),this.changePrimaryColor=!1;let n={event:"edit_org_pricolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.changePrimaryColor=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}changeBrandSecondaryColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.changeSecondColor=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,brandSecondaryColor:this.secondaryColor}).subscribe(r=>{this.secondaryColor=r.responseBody.brandSecondaryColor,document.documentElement.style.setProperty("--secondarycolor",this.secondaryColor),this.changeSecondColor=!1;let n={event:"edit_org_seccolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.changeSecondColor=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}changeTextPrimaryColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.changePrimaryTextColor=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,textPrimaryColor:this.primaryTextColor}).subscribe(r=>{this.primaryTextColor=r.responseBody.textPrimaryColor,document.documentElement.style.setProperty("--primarytextcolor",this.primaryTextColor),this.changePrimaryTextColor=!1,this._snackBar.open("Done. You will see the changes next time you login.","",{duration:5e3});let n={event:"edit_org_pritxtcolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.changePrimaryTextColor=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}changeTextSecondaryColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.changeSecondTextColor=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,textSecondaryColor:this.secondaryTextColor}).subscribe(r=>{this.secondaryTextColor=r.responseBody.textSecondaryColor,document.documentElement.style.setProperty("--secondarytextcolor",this.secondaryTextColor),this.changeSecondTextColor=!1,this._snackBar.open("Done. You will see the changes next time you login.","",{duration:5e3});let n={event:"edit_org_sectxtcolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.changeSecondTextColor=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}changeThirdHeaderTextColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.changeThirdTextColor=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,headerTextColor:this.headerTextColor}).subscribe(r=>{this.headerTextColor=r.responseBody.headerTextColor,document.documentElement.style.setProperty("--thirdtextcolor",this.headerTextColor),this.changeThirdTextColor=!1,this._snackBar.open("Done. You will see the changes next time you login.","",{duration:5e3});let n={event:"edit_org_headtxtcolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.changeThirdTextColor=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}
1changeBackgroundColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.backgroundColorChange=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,backgroundColor:this.backgroundColor}).subscribe(r=>{this.backgroundColor=r.responseBody.backgroundColor,document.documentElement.style.setProperty("--backgroundcolor",this.backgroundColor),this.backgroundColorChange=!1,this._snackBar.open("Done. You will see the changes next time you login.","",{duration:5e3});let n={event:"edit_org_bkgrndcolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.backgroundColorChange=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}changeFlashCardColor(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.flashCardColorChange=!0,this._orgService.saveOrganizationProperties({orgId:t.orgId,flashCardColor:this.flashCardColor}).subscribe(r=>{this.flashCardColor=r.responseBody.flashCardColor,document.documentElement.style.setProperty("--flashcardcolor",this.flashCardColor),this.flashCardColorChange=!1,this._snackBar.open("Done. You will see the changes next time you login.","",{duration:5e3});let n={event:"edit_org_bkgrndcolor","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.backgroundColorChange=!1,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}resetBrandColors(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.resetColors=!0,this._orgService.deleteOrganizationProperties({orgId:t.orgId,propertyName:"BRAND_COLORS"}).subscribe(r=>{this.primaryColor=this.defaultPrimaryColor,this.secondaryColor=this.defaultSecondaryColor,document.documentElement.style.setProperty("--primarycolor",this.defaultPrimaryColor),document.documentElement.style.setProperty("--secondarycolor",this.defaultSecondaryColor),this.primaryTextColor=this.defaultPrimaryColor,this.secondaryTextColor=this.defaultSecondaryColor,document.documentElement.style.setProperty("--primarytextcolor",this.defaultPrimaryColor),document.documentElement.style.setProperty("--secondarytextcolor",this.defaultSecondaryColor),this.headerTextColor="#ffffff",this.backgroundColor="#ffffff",document.documentElement.style.setProperty("--thirdtextcolor",this.headerTextColor),document.documentElement.style.setProperty("--backgroundcolor",this.backgroundColor),this.flashCardColor="#ffffff",document.documentElement.style.setProperty("--flashcardcolor",this.flashCardColor),this.resetColors=!1;let n={event:"edit_org_resetalldefaults","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId};window.dataLayer.push(n)},r=>{this.resetColors=!0,this._snackBar.openFromComponent(O.f,{data:D.R.ERRMSG_ORGANIZATION_BRAND_PROPERTY_UPDATE_FAILED.errorMessage,...x.wml})})}getOrgIntegrationDetails(t){this.successMsg="",this.genericErr=!1;let r,n=this;this._integrationService.getClientIntegrationDetailsByOrg(t.orgId).subscribe(c=>{r=c.responseBody.orgIntegrations,p.forEach(r,function(d,m){console.log(m),"Salesforce"===m?(n.saleforceIntegrationDetails=d,n.sfIntegrationOrgId=n.saleforceIntegrationDetails.orgIntegrationId,n.sfEnableIntegration=!(null!=n.saleforceIntegrationDetails.enableIntegration&&"N"===n.saleforceIntegrationDetails.enableIntegration),n.sfSendCustonJson=!(null!=n.saleforceIntegrationDetails.sendCustomJson&&"N"===n.saleforceIntegrationDetails.sendCustomJson),n.saleforceIntegrationDetails.orgTxnCompleteCustomTags&&n.saleforceIntegrationDetails.orgTxnCompleteCustomTags.length>
11&&(n.sfCustomTags=p.split(n.saleforceIntegrationDetails.orgTxnCompleteCustomTags,","))):"Zendesk"===m&&(n.zendeskIntegrationDetails=d,n.zdEnableIntegration=!(null!=n.zendeskIntegrationDetails.enableIntegration&&"N"===n.zendeskIntegrationDetails.enableIntegration),n.zdSendCustomJson=!(null!=n.zendeskIntegrationDetails.sendCustomJson&&"N"===n.zendeskIntegrationDetails.sendCustomJson),n.zdCustomTags=p.split(n.zendeskIntegrationDetails.orgTxnCompleteCustomTags,","))})},c=>{console.log("Error in getting available integrations details for selected organization.")});var s=p.filter(this.userProfile.userOrg,function(c){return c.orgName===t.orgName});this.orgIdentifier=s[0].orgIdentifier}getThirdyPartyApiDetails(t){this._orgService.getOrgThirdPartyApiCredDetails(t.orgId).subscribe(i=>{this.thirdPartyApiCredDetails=i.responseBody,this.thirdPartyApiCredDetails&&(this.orgThirdPartyApiCredDataSource=new C.by(this.thirdPartyApiCredDetails),this.cdr.detectChanges())},i=>{console.log("error in get api credentials details")})}addApiCredToOrganization(t){var i=this.sessionStorage.getObject("cattree");this._addThirdPartyApiCredDialogService.open({userAccess:i[t.orgName].orgUserAccess,orgId:t.orgId}),this._addThirdPartyApiCredDialogService.confirmed().subscribe(s=>{s&&(this.thirdPartyApiCredDetails=s,this.orgThirdPartyApiCredDataSource=new C.by(this.thirdPartyApiCredDetails),this.cdr.detectChanges())})}editThirdPartyApiCredDetails(t,i){var r=this.sessionStorage.getObject("cattree");this._addThirdPartyApiCredDialogService.open({userAccess:r[i.orgName].orgUserAccess,orgId:i.orgId,selectedApi:t}),this._addThirdPartyApiCredDialogService.confirmed().subscribe(c=>{c&&(this.thirdPartyApiCredDetails=c,this.orgThirdPartyApiCredDataSource=new C.by(this.thirdPartyApiCredDetails),this.cdr.detectChanges())})}removeThirdPartyApiCredDetails(t,i){this.genericErrMsg="",this.genericErr=!1,this._removeThirdPartyApiCredDialogService.open({title:"Confirm Removal of 3rd Party API",message:"Are you sure, you want to delete this API",answer:"yes"}),this._removeThirdPartyApiCredDialogService.confirmed().subscribe(s=>{if("yes"===s){var c=this.sessionStorage.getObject("cattree");this._orgService.deleteOrgThirdPartyApiCredDetails({userAccess:c[i.orgName].orgUserAccess,orgId:i.orgId,thirdPartyApiCredentialId:t.id}).subscribe(h=>{var f=[];p.forEach(this.thirdPartyApiCredDetails,function(T){T.id!==t.id&&f.push(T)}),this.thirdPartyApiCredDetails=f,this.orgThirdPartyApiCredDataSource=new C.by(this.thirdPartyApiCredDetails),this.cdr.detectChanges()},h=>{this.genericErr=!0,this.genericErrMsg=D.R.ERRMSG_DELETE_THIRD_PARTY_API_FAILED.errorMessage})}})}getOrgLabActionDetails(t){}toggleEnableIntegration(t,i,r){var n=this.sessionStorage.getObject("cattree");let c={enableIntegration:i.checked?"Y":"N",currentClientIntegrationId:"",clientIntegrationName:t,orgId:r.orgId,orgName:r.orgName,userAccess:n[r.orgName].orgUserAccess};"Salesforce"===t?c.currentClientIntegrationId=this.saleforceIntegrationDetails.orgIntegrationId:"Zendesk"===t&&(c.currentClientIntegrationId=null),this._integrationService.updateClientIntegrationDetail(c).subscribe(d=>{this.getOrgIntegrationDetails(r)},d=>{d&&d.error&&"412"===d.error.statusCode&&(this.genericErr=!0,this.genericErrMsg=d&&d.error?d.error.statusMessage:"")})}toggleSendCustomJson(t,i,r){var n=this.sessionStorage.getObject("cattree");let c={enableSendCustomJson:i.checked?"Y":"N",currentClientIntegrationId:"",clientIntegrationName:t,orgId:r.orgId,orgName:r.orgName,userAccess:n[r.orgName].orgUserAccess};"Salesforce"===t?c.currentClientIntegrationId=this.saleforceIntegrationDetails.orgIntegrationId:"Zendesk"===t&&(c.currentClientIntegrationId=null),this._integrationService.updateClientIntegrationDetail(c).subscribe(d=>{this.getOrgIntegrationDetails(r)},d=>{d&&d.error&&"412"===d.error.statusCode&&(this.genericErr=!0,this.genericErrMsg=d&&d.error?d.error.statusMessage:"")})}addUpdateSfIntegrationOrgId(t){var r=this.sessionStorage.getObject("cattree")[t.orgName].orgUserAccess;this.sfIntegrationIdSaving=!0,this._integrationService.updateClientIntegrationDetail({newClientIntegrationId:this.sfIntegrationOrgId,currentClientIntegrationId:this.saleforceIntegrationDetail
1s.orgIntegrationId,clientIntegrationName:"Salesforce",orgId:t.orgId,orgName:t.orgName,userAccess:r}).subscribe(s=>{console.log(s),this.getOrgIntegrationDetails(t),this.sfIntegrationIdSaving=!1},s=>{this.genericErr=!0,this.genericErrMsg=s&&s.error?s.error.statusMessage:"",this.sfIntegrationIdSaving=!1})}addCustomTags(t,i){const r=i.input,n=i.value;(n||"").trim()&&("Salesforce"===t?this.sfCustomTags.push(n.trim()):"Zendesk"===t&&this.zdCustomTags.push(n.trim())),r&&(r.value="")}removeCustomTags(t,i){if("Salesforce"===t){const r=this.sfCustomTags.indexOf(i);r>=0&&this.sfCustomTags.splice(r,1)}else if("Zendesk"===t){const r=this.zdCustomTags.indexOf(i);r>=0&&this.zdCustomTags.splice(r,1)}}updateClientIntegrationCustomTags(t,i){var r=this.sessionStorage.getObject("cattree");let s={currentClientIntegrationId:"",clientIntegrationName:t,orgTxnCompleteCustomTags:"",orgId:i.orgId,orgName:i.orgName,userAccess:r[i.orgName].orgUserAccess};"Salesforce"===t?(s.currentClientIntegrationId=this.saleforceIntegrationDetails.orgIntegrationId,s.orgTxnCompleteCustomTags=p.toString(this.sfCustomTags),this.sfCustomTagsSaving=!0):"Zendesk"===t&&(s.currentClientIntegrationId=this.saleforceIntegrationDetails.orgIntegrationId,s.orgTxnCompleteCustomTags=p.toString(this.zdCustomTags),this.zdCustomTagsSaving=!0),this._integrationService.updateClientIntegrationDetail(s).subscribe(c=>{this.getOrgIntegrationDetails(i),this.sfCustomTagsSaving=!1,this.zdCustomTagsSaving=!1},c=>{c&&c.error&&"412"===c.error.statusCode&&(this.genericErr=!0,this.genericErrMsg=c&&c.error?c.error.statusMessage:"",this.sfCustomTagsSaving=!1,this.zdCustomTagsSaving=!1)})}addIntegrationOrgId(t){this.genericErr=!1,this.successMsg="",console.log(t);var i=this.sessionStorage.getObject("cattree");this._integrationService.addClientIntegrationDetail({newClientIntegrationId:this.integrationOrgId,clientIntegrationName:this.clientIntegrationName,orgId:t.orgId,orgName:t.orgName,userAccess:i[t.orgName].orgUserAccess}).subscribe(s=>{console.log("Successfully added new client integration detail."),this.getOrgIntegrationDetails(t),this.integrationOrgId="",this.clientIntegrationName="",this.successMsg="New Client Integration for your organization has been added successfully.";let c={event:"add_org_integrnapp","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId,"dlv-option_id_selected":this.clientIntegrationName};window.dataLayer.push(c)},s=>{s&&s.error&&"412"===s.error.statusCode&&(this.genericErr=!0,this.genericErrMsg=s&&s.error?s.error.statusMessage:""),console.log("error in saving new client integration detail.")})}editSelectedIntegration(t,i){let r=this.dialog.open(Ro,{width:"400px",data:{selectedIntegration:t}});r.afterClosed().subscribe(n=>{r=null,n&&this.getOrgIntegrationDetails(i)})}deleteSelectedIntegration(t,i){this.genericErr=!1;let n=this.dialog.open(Eo,{width:"300px",data:{title:"Delete Integration setup confirmation",message:"Once you delete the integration set up, you will not be able to connect to DeciZone from that integration. Please confirm that you want to remove the setup.",answer:"yes"}});n.afterClosed().subscribe(s=>{if(n=null,"yes"===s){var c=this.sessionStorage.getObject("cattree");this._integrationService.deleteClientIntegratoinDetail({currentClientIntegrationId:t.orgIntegrationId,clientIntegrationName:t.integrationName,orgId:t.orgId,orgName:t.orgName,userAccess:c[t.orgName].orgUserAccess}).subscribe(h=>{let f={event:"remove_org_integrnapp","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":t.orgId,"dlv-option_id_selected":t.clientIntegrationName};window.dataLayer.push(f),this.getOrgIntegrationDetails(i)},h=>{this.genericErr=!0,this.genericErrMsg=h&&h.error?h.error.statusMessage:""})}})}startNewSubscription(){let t={event:"click_startnewsubscr","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole()};window.dataLayer.push(t),this.router.navigateByUrl("/subscription")}
1expandCollapasePanel(t){t.toggle()}openCustomCss(t){this.ordDisplayNameSuccessMsg="",this.uploadErr=!1,this.customCssChange=!0,this._customCssDialogService.open({customCss:this.customCss,orgName:t.orgName,userAccess:t.userAccess,orgId:t.orgId}),this._customCssDialogService.confirmed().subscribe(r=>{r&&(console.log("updated custom css",r.data),this.customCss=r.data),this.customCssChange=!1})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(N.K),e.Y36(S.f),e.Y36(fe.V),e.Y36(Yo.tJ),e.Y36(l.QS),e.Y36(W.Q),e.Y36(Lo.r),e.Y36(q.d),e.Y36(Bo.u),e.Y36(Ko),e.Y36(ni),e.Y36(si),e.Y36(Fo.x),e.Y36(M.qo),e.Y36(Jo.v),e.Y36(J.ch),e.Y36(e.sBO),e.Y36(A.F0),e.Y36(E.ux),e.Y36(u.uw))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-profile"]],viewQuery:function(t,i){if(1&t&&(e.Gf(se.NW,5),e.Gf(V.YE,5),e.Gf(_i,5)),2&t){let r;e.iGM(r=e.CRH())&&(i.paginator=r.first),e.iGM(r=e.CRH())&&(i.sort=r.first),e.iGM(r=e.CRH())&&(i.fileInput=r.first)}},decls:212,vars:33,consts:[[1,"profile-page"],[1,"user-image",3,"next"],["src","./assets/images/icon_person_outline_white_48px.svg","alt","Account holder's image",4,"ngIf"],["alt","Account holder's image",3,"src",4,"ngIf"],["id","profile-avatar","href","javascript:void(0);","aria-label","Modify Your account display image",1,"userimageedit",3,"click"],["id","myaccountsection","aria-label","My Account Section"],[1,"",3,"expanded"],["prefPanel",""],["id","myact-preferences",1,"org-name"],[1,"usageActivityTable"],[1,"items-divider"],[1,"account-details"],["tabindex","0"],["tabindex","0",1,"centerize"],["id","profile-chgdisplynam","mat-button","","color","accent","aria-label","Change your account display name",1,"button-center",3,"click"],[4,"ngIf"],["id","profile-chglandpg","mat-button","","color","accent","aria-label","Change Landing Page after you login",1,"button-center",3,"click"],["id","profile-chglytpref","mat-button","","color","accent","aria-label","change your flowchart layout preference. Card layout is better for accessibility.",1,"button-center",3,"click"],[1,"centerize"],["id","profile-chgpwd","mat-button","","color","accent","aria-label","change your password",1,"button-center",3,"click"],[1,"skills-panel",3,"ngClass","click"],["userMilestone",""],["id","myact-skillsprog",1,"org-name"],["mode","determinate",1,"overall-progress-bar",3,"value"],[1,"skills-card-container"],[1,"skills-milestones-card","mat-elevation-z6"],["mode","determinate",1,"level-progress-bar",3,"value"],[1,"skills-level-list"],[3,"ngClass",4,"ngFor","ngForOf"],[1,""],["id","myact-privacyconsents",1,"org-name"],[1,"centered-p"],["rel","nofollow","id","profile-tos","routerLink","/terms-of-service"],["id","profile-pp","target","_blank","rel","nofollow noopener","routerLink","/privacy-policy"],[1,"item-checkbox",3,"checked","change"],["id","myact-state",1,"org-name"],[1,"profile-item"],[1,"item-name"],["id","profile-downldyrinfo","mat-raised-button","","color","accent",1,"button-center",3,"click"],["id","profile-deactivateact","mat-raised-button","","color","accent",1,"button-center",3,"disabled","click"],["class","app-spinner",4,"ngIf"],["id","profile-deleteact","mat-raised-button","","color","accent",1,"button-center",3,"disabled","click"],["aria-label","Manage my organization Section"],["class","my-orgs",4,"ngIf"],["class","profile-item",4,"ngIf"],["id","subscription-place","aria-label","Subscription and billing Section"],["class","mySubscriptions",4,"ngIf"],[1,"instructions-para","gray-text"],["id","profile-price","target","_blank","rel","noopener nofollow","href","/price"],["id","profile-newsubscrpn","mat-raised-button","","color","accent",1,"button-center",3,"click"],["src","./assets/images/icon_person_outline_white_48px.svg","alt","Account holder's image"],["alt","Account holder's image",3,"src"],[3,"ngClass"],["mat-list-icon",""],[3,"click"],[1,"app-spinner"],[1,"my-orgs"],[4,"ngFor","ngForOf"],[3,"expanded","opened","click"],["id","myorg-name",1,"org-name"],[1,"my-account-propertynames","org-role-padding"],[1,"orgUserTable"],["id","myorg-orgusers"],["class","dztable-table-filter",4,"ngIf"],["class","org-user-table-success",4,"ngIf"],["class","manage-users dztable-container mat-elevation-z8",3,"click",4,"ngIf"],[3,"pageIndex","pageSize","pageSizeOptions","click",4,"ngIf"],["id","profile-addusrtoorg","mat-raised-button","","color","accent",1,"button-center",3,"click"],[1,"buy-users"],["id","profile-exportorgusers","mat-button","",1,"",3,"click"],["class","user-table-error",4,"ngIf"],[1,"orgUserTable",3,"opened"],["id","myorg-orgproperties"],[1,"centerize-vertical-stack"],[1,"eachorgproperty"],[1,"instructions-para"],["class","success-msg",4,"ngIf"],[1,"common-form-input1"],["matInput","","maxlength","30","placeholder","Organization Dis
1play Name","name","orgDisplayName",3,"ngModel","ngModelChange"],["align","start"],["align","end"],["id","profile-updtorgdispnam","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"click"],["matInput","","maxlength","30","placeholder","Organization Custom Key Name","name","orgCustomKeyName",3,"ngModel","ngModelChange"],["matInput","","maxlength","30","placeholder","Organization Custom Key Value","name","orgCustomKeyValue",3,"ngModel","ngModelChange"],[3,"formGroup"],["matInput","","maxlength","255","placeholder","Organization Website URL","name","orgWebsiteUrl","formControlName","orgWebsiteUrl",3,"value"],["orgWebsiteUrl",""],["id","profile-orgwebsiteurl","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["matInput","","type","number","min","3","max","180","formControlName","screenTimeout","placeholder","Organization Session Timeout in minutes","name","screenTimeout",3,"value"],["id","profile-orgsessnto","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["placeholder","Select Default Page-After-Login","name","selectedLandingPagePref",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-margin",3,"color","ngModel","disabled","ngModelChange","change"],["id","profile-orgsessnto","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"click"],[1,"example-margin",3,"color","ngModel","ngModelChange","change"],["matInput","","type","number","min","90","max","120","step","1","formControlName","defaultUserActivityPersistDays","name","defaultUserActivityPersistDays","placeholder","Number of Days, (Min 90, Max 120 & no decimals)",3,"value"],["class","orgLogoUrl-div",4,"ngIf"],["for","image",1,"my-account-propertynames","gray-text"],["type","file","accept","image/png","id","image",1,"file-selector",3,"change"],["fileInput",""],["class","cropper-tools-container",4,"ngIf"],["class","cropper-rotation-slider","matTooltip","Rotate image.","tickInterval","30","min","0","max","359","aria-label","degrees",3,"matTooltipShowDelay","matTooltipHideDelay","thumbLabel","ngModel","ngModelChange","change",4,"ngIf"],["format","png",1,"image-cropper-container",3,"imageChangedEvent","maintainAspectRatio","containWithinAspectRatio","aspectRatio","resizeToWidth","resizeToHeight","cropperMinWidth","cropperMinHeight","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["id","profile-orglogouplod","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["class","eachorgproperty",4,"ngIf"],["type","color","name","primarycolor","value","#673ab7",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-primycolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["type","color","name","secondaryColor","value","#ffd740",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-secondycolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["type","color","name","primaryTextColor","value","#673ab7",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-primytxtcolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["type","color","name","secondaryTextColor","value","#ffd740",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-secondytxtcolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["type","color","name","headerTextColor","value","#ffffff",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-headtxtcolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["type","color","name","backgroundColor","value","#ffffff",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-backgdcolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["type","color","name","flashCardColor","value","#ffffff",1,"button-center",3,"ngModel","ngModelChange"],["id","profile-flashcardcolr","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],["id","profile-resetdefaults","mat-raised-button","","all-buttons","",1,"button-center",3,"disabled","click"],["id","profile-resetdefaults","mat-raised-button","","all-buttons","",1,"button-center",3,"click"],[1,"integrations-section",3,"opened"],["id","myorg-integration"],["mat-stretch-tabs","false","mat-align-tabs","start",1,"integration-tab-group"],["label","Salesforce"],["mat-align-tabs","center","color","accent",1,"each-integration"],["label","Details",1,"integration-detail
1s-tab"],[1,"integration-details"],["appearance","fill",1,"integration-details-inputfield"],["matInput","","placeholder","00D6h000123GExOFNY",3,"ngModel","ngModelChange"],["id","sfOrgID-save","type","button","color","accent","mat-raised-button","",3,"click"],["ngDefaultControl","","aria-label","Toggle to enable/disable Salesforce Integration",1,"integration-details-toggle",3,"ngModel","color","ngModelChange","change"],["ngDefaultControl","","aria-label","Toggle to enable/disable flag to send customJSON to Salesforce ",1,"integration-details-toggle",3,"ngModel","color","ngModelChange","change"],["hintLabel","Comma-Separated TAGs, Keywords & Phrases",1,"form-full-width"],["sfchipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","Add custom tags (comma seperated)",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["id","sfcustomtag-save","type","button","color","accent","mat-raised-button","",3,"click"],["label","Setup Guide",1,"integration-guide-tab"],[1,"integration-instructions","instructions-salesforce"],["href","DeciZone.com/training","target","_blank"],["label","Zendesk"],[1,"gray-text"],["ngDefaultControl","","aria-label","Toggle to enable/disable Zendesk Integration",1,"integration-details-toggle",3,"ngModel","color","ngModelChange","change"],["ngDefaultControl","","aria-label","Toggle to enable/disable flag to send customJSON to Zendesk ",1,"integration-details-toggle",3,"ngModel","color","ngModelChange","change"],["zdchipList",""],[3,"removable","removed",4,"ngFor","ngForOf"],["id","zdcustomtag-save","type","button","color","accent","mat-raised-button","",3,"click"],[1,"integration-instructions","instructions-zendesk"],[1,"third-party-api-section",3,"opened"],["id","myorg-third-party-api"],["class","manage-third-party-api dztable-container mat-elevation-z8",4,"ngIf"],["id","profile-addapicred","mat-raised-button","","color","accent",1,"button-center",3,"click"],[1,"dztable-table-filter"],["matInput","","placeholder","i.e. Jane",3,"keyup"],[1,"org-user-table-success"],[1,"manage-users","dztable-container","mat-elevation-z8",3,"click"],["mat-table","","matSort","",1,"dztable-table",3,"dataSource"],["matColumnDef","firstName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastName"],["matColumnDef","roleName"],["matColumnDef","status"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","userEmail"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["id","profile-edituserrole","matTooltip","Edit User Role","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","disabled","click"],["id","profile-deluser","matTooltip","Remove this user from your organization permanently.","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","disabled","click"],["id","profile-reinviteuser","matTooltip","Reinvite user","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["id","profile-reinviteuser","matTooltip","Reinvite user","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["mat-header-row",""],["mat-row",""],[3,"pageIndex","pageSize","pageSizeOptions","click"],[1,"user-table-error"],[1,"success-msg"],[3,"value"],[1,"orgLogoUrl-div"],["id","uploadedImage"],[1,"cropper-tools-container"],["matTooltip","Rotate 90 deg. Right","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Rotate 90 deg. Left","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Flip Horizontal","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Flip Vertical","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Contain Within Aspect Ratio","class","croppertool-button","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["matTooltip","Fill Aspect Ratio","class","croppertool-button","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["matTooltip","Re
1set Image","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Zoom Out","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Zoom In","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Contain Within Aspect Ratio","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Fill Aspect Ratio","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Rotate image.","tickInterval","30","min","0","max","359","aria-label","degrees",1,"cropper-rotation-slider",3,"matTooltipShowDelay","matTooltipHideDelay","thumbLabel","ngModel","ngModelChange","change"],[1,"custom-cropped-image",3,"src"],["id","profile-dellogo","mat-raised-button","","color","accent","all-buttons","",1,"button-center",3,"disabled","click"],[1,"orgUserTable","orgCredits"],["id","myorg-orgcredits"],[1,"creditDivs"],["id","profile-showmyusage","mat-raised-button","",3,"click"],["class","showCredits",4,"ngIf"],["id","profile-buycredits","mat-raised-button","","color","accent",1,"creditButtons",3,"click"],[1,"showCredits"],[1,"orgUserTable","orgCredits",3,"opened"],["id","myorg-orgcreditsusage"],["class","creditspanelcontainer",4,"ngIf"],[1,"creditspanelcontainer"],[1,"my-account-propertynames"],["id","profile-creditsexplain","href","javascript:void(0);",3,"click"],[1,"tdc-vac-credits-usage","dztable-container","mat-elevation-z8"],["mat-table","",1,"dztable-table",3,"dataSource"],["matColumnDef","creditName"],[4,"matFooterCellDef"],["matColumnDef","creditCount"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","creditUsageCount"],["matColumnDef","expiryDate"],["mat-header-row","",4,"matHeaderRowDef"],["mat-footer-row","","class","credits-first-footer-row",4,"matFooterRowDef"],["mat-footer-cell",""],["mat-footer-row","",1,"credits-first-footer-row"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"removable","removed"],[1,"manage-third-party-api","dztable-container","mat-elevation-z8"],["matColumnDef","apiName"],["matColumnDef","apiEndpoint"],["matColumnDef","apiKey"],["matColumnDef","isEnabled"],["id","profile-editapicred","matTooltip","Edit API Credentials","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","disabled","click"],["id","profile-delapicred","matTooltip","Remove API Credentials","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","disabled","click"],[1,"mySubscriptions"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["id","myorg-subscription",1,"orgname-title"],[3,"id"],["class","creditcard-item",4,"ngFor","ngForOf"],[3,"formGroup","ngSubmit"],[1,"creditcardcontainer"],["matInput","","type","text","formControlName","name","placeholder","Jane Doe","required",""],[1,"creditcardinfo"],[1,"field",3,"id"],["id","profile-updatpymtcrd","mat-raised-button","","color","accent","type","submit",1,"update-card"],[1,"creditcard-item"],["id","profile-chgpaymtcard","mat-raised-button","",3,"disabled","click"]],template:function(t,i){if(1&t){const r=e.EpF();e.TgZ(0,"div",0)(1,"div",1),e.NdJ("next",function(){e.CHM(r);const s=e.MAs(12);return e.KtG(i.expandCollapasePanel(s))}),e.YNc(2,pi,1,0,"img",2),e.YNc(3,mi,1,1,"img",3),e.TgZ(4,"a",4),e.NdJ("click",function(){return i.editAvatar()}),e.TgZ(5,"mat-icon"),e._uU(6,"edit"),e.qZA()()(),e.TgZ(7,"mat-toolbar",5),e._uU(8,"My Account"),e.qZA(),e._UZ(9,"br"),e.TgZ(10,"mat-accordion")(11,"mat-expansion-panel",6,7)(13,"mat-expansion-panel-header")(14,"mat-panel-title",8),e._uU(15,"Preferences"),e.qZA()(),e.TgZ(16,"div")(17,"div",9)(18,"p"),e._uU(19,"Here are your Account Details:"),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"div",11)(22,"p",12)(23,"strong"),e._uU(24,"Account Email: "),e.qZA()(),e.TgZ(25,"p",13),e._uU(26),e.qZA()(),e._UZ(27,"mat-divider",10),e.TgZ(28,"div",11)(29,"p")(30,"strong",12),e._uU(31,"DisplayName: "),e.qZA()(),e.TgZ(32,"p",13),e._uU(33),e.qZA(),e.TgZ(34,"button",14),e.NdJ("click",function(){return i.editDisplayName()}),e._uU(35," Change "),e.qZA()(),e._UZ(36,"mat-divider",10),e.TgZ(37,"div",11)(38,"p",12)(39,"strong"),e._uU(40,"Landing page After Login:"),e.qZA()(),e.TgZ(41,"p",13),e._uU(42),e.YNc(43,hi,4,1,"span",15),e.qZA(),e._UZ(44,"br"),e.TgZ(45,"button",16),e.NdJ("click",function(){return i.changeLandingPagePreference()}),e._uU(46," Change "),e.qZA()(),e._UZ(47,"mat-divider",10),e.TgZ(48,"div",11)(49,"p",12)(50,"strong"),e._uU(51,"Flowchart layout preference:"),e.qZA()(),e.TgZ(52,"p",13),e._uU(53),e.qZA(),e._UZ(54,"br"),e.TgZ(55,"button",17),e.NdJ("click",function(){return i.changeFlowchartLayoutPreference()}),e._uU(56," Change "),e.qZA()(),e._UZ(57,"mat-divider",10),e.TgZ(58,"div",11)(59,"p",12)(60,"strong"),e._uU(61,"Your Password:"),e.qZA()(),e.TgZ(62,"p",18),e._uU(63,"**********"),e.qZA(),e.TgZ(64,"button",19),e.NdJ("click",function(){return i.changePassword()}),e._uU(65," Change Password "),e.qZA()(),e._UZ(66,"mat-divider",10),e.qZA()()(),e._UZ(67,"br"),e.TgZ(68,"mat-expansion-panel",20,21),e.NdJ("click",function(){return i.getUserMilestoneProgress(i.showUserOrg,!i.canDeleteUserAccount)}),e.TgZ(70,"mat-expansion-panel-header")(71,"mat-panel-title",22),e._uU(72,"My Skills, Milestones & Progress"),e.qZA()(),e.TgZ(73,"p"),e._uU(74,"Overall Progress:"),e.qZA(),e._UZ(75,"mat-progress-bar",23)(76,"br"),e.TgZ(77,"div",24)(78,"mat-card",25)(79,"mat-card-header")(80,"mat-card-title"),e._uU(81,"Basics"),e.qZA(),e.TgZ(82,"mat-card-subtitle"),e._UZ(83,"mat-progress-bar",26),e.qZA()(),e.TgZ(84,"mat-card-content")(85,"mat-list",27),e.YNc(86,Ci,5,6,"mat-list-item",28),e.qZA()()(),e.TgZ(87,"mat-card",25)(88,"mat-card-header")(89,"mat-card-title"),e._uU(90,"Intermediate"),e.qZA(),e.TgZ(91,"mat-card-subtitle"),e._UZ(92,"mat-progress-bar",26),e.qZA()(),e.TgZ(93,"mat-card-content")(94,"mat-list",27),e.YNc(95,vi,5,6,"mat-list-item",28),e.qZA()()(),e.TgZ(96,"mat-card",25)(97,"mat-card-header")(98,"mat-card-title"),e._uU(99,"Advanced"),e.qZA(),e.TgZ(100,"mat-card-subtitle"),e._UZ(101,"mat-progress-bar",26),e.qZA()(),e.TgZ(102,"mat-card-content")(103,"mat-list",27),e.YNc(104,yi,5,6,"mat-list-item",28),e.qZA()()()()(),e._UZ(105,"br"),e.TgZ(106,"mat-expansion-panel",29)(107,"mat-expansion-panel-header")(108,"mat-panel-title",3
10),e._uU(109,"Privacy & Consents"),e.qZA()(),e.TgZ(110,"p",31),e._uU(111," Below is a list of all your consents as per DeciZone's "),e.TgZ(112,"a",32),e._uU(113,"Terms of Service"),e.qZA(),e._uU(114," and "),e.TgZ(115,"a",33),e._uU(116,"Privacy Policy"),e.qZA(),e._uU(117,". "),e.qZA(),e.YNc(118,bi,2,1,"mat-error",15),e._UZ(119,"mat-divider",10),e.TgZ(120,"div",11)(121,"p")(122,"strong"),e._uU(123,"Newsletter Subscription:"),e.qZA(),e._uU(124," In our marketing emails, we often send out resourceful articles, bonus AR Credit coupons, discount codes, partner deals, updates for new features in DeciZone, announcements and interesting flowcharts shared by our users. We will not spam you and you can always opt out of receiving these emails. Lets do it! "),e.qZA(),e.TgZ(125,"mat-slide-toggle",34),e.NdJ("change",function(s){return i.saveNewsletterPreference(s)}),e._uU(126,"I agree to receive emails from DeciZone. "),e.qZA()(),e._UZ(127,"mat-divider",10),e.qZA(),e._UZ(128,"br"),e.TgZ(129,"mat-expansion-panel",29)(130,"mat-expansion-panel-header")(131,"mat-panel-title",35),e._uU(132,"Account State"),e.qZA()(),e.YNc(133,Ti,2,1,"mat-error",15),e.TgZ(134,"div",11)(135,"p")(136,"strong"),e._uU(137,"NOTE:"),e.qZA(),e._uU(138," You should already have a backed up copy of your flowcharts. To backup your flowcharts use the 'Whole Flowchart View' to print that flowchart. "),e.qZA(),e._UZ(139,"br"),e.TgZ(140,"div",36)(141,"p",37)(142,"strong"),e._uU(143,"Download Your Profile Information:"),e.qZA()(),e.TgZ(144,"p"),e._uU(145," This will gather your profile information we have and download a JSON object file. "),e.qZA(),e.TgZ(146,"button",38),e.NdJ("click",function(){return i.downloadUserInfo()}),e._uU(147," Download Your Information "),e.qZA()(),e._UZ(148,"br"),e.TgZ(149,"div",36)(150,"p",37)(151,"strong"),e._uU(152,"Deactivate Your Account:"),e.qZA()(),e.TgZ(153,"p"),e._uU(154," You can deactivate your account right now as long as you are not an administrator of any organization account. If you are an administrator of any organization, please contact DeciZone support for deactivating your account. "),e.qZA(),e.TgZ(155,"p"),e._uU(156),e.qZA(),e.TgZ(157,"p"),e._uU(158," How do I Reactivate my account? When you want to Reactivate your account, just try to log in to your account with your login and password and follow the instructions. "),e.qZA(),e.TgZ(159,"button",39),e.NdJ("click",function(){return i.confirmDeactivateUserAccount()}),e.YNc(160,xi,1,0,"mat-spinner",40),e._uU(161," Deactivate Your Account "),e.qZA(),e.YNc(162,Ai,4,0,"p",15),e.qZA(),e.TgZ(163,"div",36)(164,"p",37)(165,"strong"),e._uU(166,"Delete Your Account:"),e.qZA()(),e.TgZ(167,"p"),e._uU(168," When you delete your account, we delete your information from our systems. All private flowcharts owned by you will be deleted but flowcharts you made Public will not be deleted. This step cannot be reversed and all deleted information is lost permanently so please take backup on your end if you need to, before deleting your account. You might instead want to consider just Deactivating your account if you are not sure about deleting your account and content permanently. "),e.qZA(),e.TgZ(169,"button",41),e.NdJ("click",function(){return i.confirmDeleteAccount()}),e.YNc(170,Ui,1,0,"mat-spinner",40),e._uU(171," Delete Your Account "),e.qZA(),e.YNc(172,Zi,4,0,"p",15),e.qZA(),e._UZ(173,"br"),e.qZA()()(),e._UZ(174,"br")(175,"br"),e.TgZ(176,"mat-toolbar",42),e._uU(177,"Manage My Organizations"),e.qZA(),e._UZ(178,"br"),e.YNc(179,ea,3,2,"div",43),e.YNc(180,ta,2,0,"div",44),e._UZ(181,"br")(182,"br"),e.TgZ(183,"mat-toolbar",45),e._uU(184,"Subscription & Billing"),e.qZA(),e.YNc(185,oa,3,0,"div",44),e._UZ(186,"br"),e.YNc(187,da,4,1,"div",46),e._UZ(188,"br"),e.TgZ(189,"p",47),e._uU(190," When you start a new subscription, a new Organization entity is created in DeciZone with your email-user as its Administrator and made available in the Manage My Organization section above. As an Admin, you can manage users, content and are responsible of payments. Each Organization is completely isolated from any other Organization even if it belongs to your same account - meaning that users in one organization will NOT be able to access any content from any other organization unless that user is also an allowed user of that organization. "),e.qZA(),e.TgZ(191,"p",47)(192,"strong"),e._uU(193," 30-DAYS FREE TRIAL"),e.qZA(),e._uU(194,": Your new Business subscription will "),e.TgZ(195,"strong"),e._uU(196," automatically start with a 30-Day Free trial"),e.qZA(),e._uU(197,", which means that you will need a credit card to start your paid account subscription but your "),e.TgZ(198,"strong"),e._uU(199," credit card will not be charged "),e.qZA(),e._uU(200," for the account subscription fee for the first 30 days. This will allow you to evaluate our service and check out advanced features including integrations with other platforms. You can find more details on the different paid account types on our "),e.TgZ(201,"a",48),e._uU(202,"Pricing page"),e.qZA(),e._uU(203,". In the Pricing page, you can also learn about our TDC/VAC Credits, how to customize them and their pricing. If you have still any questions, please contact DeciZone support team. We are committed to making you successful with DeciZone. Enable Confident Decisions. "),e.qZA(),e.TgZ(204,"p",47),e._uU(205," (Your
1credit card information is not stored on DeciZone's servers.) "),e.qZA(),e._UZ(206,"br"),e.TgZ(207,"button",49),e.NdJ("click",function(){return i.startNewSubscription()}),e._uU(208," Start New Subscription "),e.qZA(),e._UZ(209,"br")(210,"br")(211,"br"),e.qZA()}2&t&&(e.xp6(2),e.Q6J("ngIf",!i.userProfile.avatar),e.xp6(1),e.Q6J("ngIf",i.userProfile.avatar),e.xp6(8),e.Q6J("expanded",!1),e.xp6(15),e.Oqu(i.userProfile.emailAddress),e.xp6(7),e.Oqu(i.userProfile.displayName),e.xp6(9),e.hij(" ",i.landingPageUserPreference," "),e.xp6(1),e.Q6J("ngIf",i.landingPagePrefValue),e.xp6(10),e.hij(" ",i.flowchartLayoutPreference," "),e.xp6(15),e.Q6J("ngClass",e.WLB(30,ga,i.showUserOrg,!i.canDeleteUserAccount)),e.xp6(7),e.s9C("value",i.userOverallMilestoneProgress),e.xp6(8),e.s9C("value",i.userBasicSkillProgress),e.xp6(3),e.Q6J("ngForOf",i.userBasicSkills),e.xp6(6),e.s9C("value",i.userIntermediateSkillProgress),e.xp6(3),e.Q6J("ngForOf",i.userIntermediateSkills),e.xp6(6),e.s9C("value",i.userAdvancedSkillProgress),e.xp6(3),e.Q6J("ngForOf",i.userAdvancedSkills),e.xp6(14),e.Q6J("ngIf",i.genericErr),e.xp6(7),e.Q6J("checked",i.newsletterSubscription),e.xp6(8),e.Q6J("ngIf",i.genericErr),e.xp6(23),e.hij(" What happens when your account is Deactivated? It means that you will not receive any flowchart related emails (i.e. flowchart activity log emails) for any flowcharts you may have created. If the flowchart belongs to an Organization, we will forward the flowchart activity log email to the administrator of that Organization account instead. You may still receive occasional account related important emails from us but the idea is to not bother you with unnecessary messages. Your account will exist but in a restricted state. Also your account login and password will remain same and we will not let anyone else use your displayname(",i.userProfile.displayName,"). "),e.xp6(3),e.Q6J("disabled",!i.canDeActivateUser),e.xp6(1),e.Q6J("ngIf",i.deactivateUserLoading),e.xp6(2),e.Q6J("ngIf",!i.canDeActivateUser),e.xp6(7),e.Q6J("disabled",!i.canDeleteUserAccount),e.xp6(1),e.Q6J("ngIf",i.deleteUserLoading),e.xp6(2),e.Q6J("ngIf",!i.canDeleteUserAccount),e.xp6(7),e.Q6J("ngIf",i.showUserOrg),e.xp6(1),e.Q6J("ngIf",!i.showUserOrg),e.xp6(5),e.Q6J("ngIf",i.userOrgSubscriptions&&0===i.userOrgSubscriptions.length),e.xp6(2),e.Q6J("ngIf",i.userOrgSubscriptions&&i.userOrgSubscriptions.length>0))},dependencies:[v.mk,v.sg,v.O5,he.oO,y.TO,y.KE,y.bx,y.hX,k.Nt,K.ey,Z.lW,Z.zs,$.a8,$.dk,$.dn,$.n5,$.$j,re.qn,re.HS,re.oH,re.qH,X.pp,X.ib,X.VG,X.yz,X.yK,I.Hw,de.i$,de.Tg,de.Nh,li.d,se.NW,ci.pW,H.Ou,j.gD,pe.pH,Ce.Rr,V.YE,V.nU,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.mD,C.Ke,C.ge,C.ev,C.yh,C.XQ,C.Gk,C.Q2,ve.SP,ve.uX,di.Ye,oe.gM,l._Y,l.Fj,l.wV,l.JJ,l.JL,l.Q7,l.nD,l.qQ,l.Fd,l.On,l.sg,l.u,w.ap,A.yS,v.rS,v.uU],styles:[".profile-page[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;position:relative;width:90%;height:90%;max-width:900px;margin:0 auto 30px;overflow-y:auto}.profile-item[_ngcontent-%COMP%]{margin:10px 10px 60px}.profile-item[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{width:100%}.profile-item[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{margin:16px}.profile-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:34px;margin:10px}.account-details[_ngcontent-%COMP%]{width:90%;margin:0 auto}.account-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px}.item-name[_ngcontent-%COMP%]{color:#a9a9a9;width:100%;display:inline-block;text-align:left}.item-value[_ngcontent-%COMP%]{color:var(--primarytextcolor);text-align:center;width:100%}.item-checkbox[_ngcontent-%COMP%]{display:block;margin:10px auto;width:90%}.items-divider[_ngcontent-%COMP%]{width:80%;margin:20px 10%;position:relative}.close-cross[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:0;width:40px;min-width:40px}.button-center[_ngcontent-%COMP%]{margin:10px auto;display:block}.button-right[_ngcontent-%COMP%]{float:right}.manage-org[_ngcontent-%COMP%], .orgUserTable[_ngcontent-%COMP%]{width:100%}.orgUserTable[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--secondarytextcolor)}.users-table[_ngcontent-%COMP%]{width:99%;margin:0 auto}.my-account-propertynames[_ngcontent-%COMP%]{font-weight:700}.org-role-padding[_ngcontent-%COMP%]{padding-bottom:15px}
1.org-name[_ngcontent-%COMP%], .orgname-title[_ngcontent-%COMP%]{color:var(--primarytextcolor)}.centerize-vertical-stack[_ngcontent-%COMP%]{min-width:150px;max-width:500px;width:100%;margin:10px auto;padding:0 20px;display:flex;align-content:center;justify-content:space-around;flex-direction:column;box-sizing:border-box}.eachorgproperty[_ngcontent-%COMP%]{display:flex;justify-content:center;-webkit-box-align:center;flex-direction:column;align-items:center;border-bottom:1px solid lightgray;margin-bottom:20px}.orgLogoUrl-div[_ngcontent-%COMP%]{width:100%}#uploadedImage[_ngcontent-%COMP%]{background-position:center center;background-size:contain;background-repeat:no-repeat;width:150px;height:50px;margin:20px auto;border:1px dotted gray}.icon-adjust-five-top[_ngcontent-%COMP%]{position:absolute;top:5px}.instructions-para[_ngcontent-%COMP%]{margin:15px}.file-selector[_ngcontent-%COMP%]{margin:20px}.profile-page[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{margin-left:2px;margin-right:2px}.orgCredits[_ngcontent-%COMP%] .creditDivs[_ngcontent-%COMP%], .orgCredits[_ngcontent-%COMP%] .creditButtons[_ngcontent-%COMP%]{margin:20px}.userButton[_ngcontent-%COMP%]{margin-right:20px}#creditcard-section[_ngcontent-%COMP%], #addCreditCard[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:none}.user-table-error[_ngcontent-%COMP%]{margin-bottom:10px}.user-image[_ngcontent-%COMP%]{width:100px;height:100px;box-sizing:border-box;margin:10px auto;display:flex;justify-content:space-around;text-align:center;flex-direction:column;position:relative}.user-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;box-sizing:border-box;z-index:-2;background-color:#d3d3d3}.userimageedit[_ngcontent-%COMP%]{color:#d3d3d3;position:absolute;bottom:0;right:-17px;cursor:pointer}.profile-integration[_ngcontent-%COMP%]{text-align:center}.profile-integration[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.profile-integration[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.profile-integration[_ngcontent-%COMP%] .mat-column-integrationName[_ngcontent-%COMP%]{width:130px;text-align:start}.profile-integration[_ngcontent-%COMP%] .mat-column-orgIntegrationId[_ngcontent-%COMP%]{width:150px;background-color:#fffbeb}.profile-integration[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%]{text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditName[_ngcontent-%COMP%]{width:130px;text-align:start}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditCount[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-creditUsageCount[_ngcontent-%COMP%]{width:100px;text-align:center}.tdc-vac-credits-usage[_ngcontent-%COMP%] .mat-column-expiryDate[_ngcontent-%COMP%]{width:120px;text-align:center;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%]{text-align:center}.manage-third-party-api[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-third-party-api[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiName[_ngcontent-%COMP%]{width:100px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiEndpoint[_ngcontent-%COMP%]{width:200px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-apiKey[_ngcontent-%COMP%]{width:70px;text-align:start}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-isEnabled[_ngcontent-%COMP%]{width:70px;background-color:#fffbeb}.manage-third-party-api[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:100px;text-align:center}.credits-first-footer-row[_ngcontent-%COMP%]{font-weight:700}.manage-users[_ngcontent-%COMP%]{text-align:start;height:250px}.manage-users[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.manage-users[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-users[_ngcontent-%COMP%] .mat-column-firstName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-lastName[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-roleName[_ngcontent-%COMP%]{width:120px}.manage-users[_ngcontent-%COMP%] .mat-column-status[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-users[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;background-color:#fffbeb}.end-status[_ngcontent-%COMP%]{text-align:start;height:250px}.end-status[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.end-status[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}
1.end-status[_ngcontent-%COMP%] .mat-column-displayName[_ngcontent-%COMP%]{width:130px;text-align:center}.end-status[_ngcontent-%COMP%] .mat-column-endStatus[_ngcontent-%COMP%]{width:130px;text-align:center;background-color:#fffbeb}.end-status[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:120px;text-align:center}.add-more-users[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:center;flex-direction:column;border-top:1px solid lightgray}.add-single-user[_ngcontent-%COMP%], .import-multiple-users[_ngcontent-%COMP%]{padding:0 20px}#csvFileUpload[_ngcontent-%COMP%]{margin:20px auto;display:block}.org-user-table-success[_ngcontent-%COMP%]{margin:10px;color:green;font-weight:500}.creditspanelcontainer[_ngcontent-%COMP%]{padding:10px}.image-cropper-container[_ngcontent-%COMP%]{width:300px!important;overflow:hidden!important}.custom-cropped-image[_ngcontent-%COMP%]{width:150px!important;height:50px}.buttons-container[_ngcontent-%COMP%], .cropper-tools-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-around!important;align-items:center!important;padding:10px!important;margin:20px 0!important}.croppertool-button[_ngcontent-%COMP%]{background:transparent;margin:3px}.cropper-rotation-slider[_ngcontent-%COMP%]{margin:8px;width:200px}.instruction-panels[_ngcontent-%COMP%]{width:90%;margin:10px auto}.integration-instructions[_ngcontent-%COMP%]{overflow-y:auto}.integrations-section[_ngcontent-%COMP%]{width:100%}.integration-details[_ngcontent-%COMP%], .integration-instructions[_ngcontent-%COMP%]{height:400px;overflow:auto}.each-integration[_ngcontent-%COMP%] .mat-tab-label-content[_ngcontent-%COMP%]{color:#673ab7}.integration-details-toggle[_ngcontent-%COMP%]{margin:10px 20px}.integration-details-inputfield[_ngcontent-%COMP%]{margin:0 20px}"]}),o})();var ma=g(70319),ha=g(66484);let fa=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[v.ez,_.o9,Q.K,l.u5,l.UX,ha.y,w.QG,ma.Mc.forChild(),A.Bz.forChild([{path:"",component:pa}])]}),o})()},58704:(ne,F,g)=>{g.d(F,{u:()=>p});var v=g(95698),A=g(54004),_=g(94650),l=g(65938),Q=g(93531),R=g(65244),u=g(19132),J=g(21952),te=g(4859),ae=g(97392);let x=(()=>{class w{constructor(e,E,S,N,q,M){this.ngZone=e,this.dialogRef=E,this._utilService=S,this._userMilestoneService=N,this.router=q,this.displayName="",this.firstName="",this.sessionStorage=M}ngOnInit(){let e={};e=this.sessionStorage.getObject("userProfile"),this.displayName=e.displayName,this.firstName=e.firstName}openQuickTour(){this.close(),this.sessionStorage.removeItem("showWelcomeModal"),this._utilService.startQuickTour()}goToCreateFCGuide(){if(this._utilService.getUserLoggedInStatus()){this._userMilestoneService.saveOrUpdateUserMilestone("VISITED_CREATE_FLOWCHART_GUIDE",null);let e={event:"tutorial_begin","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this._utilService.getLoggedInUserOrgId(),"dlv-component_id":"welcomedilog-createfc-guide"};window.dataLayer.push(e)}}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return w.\u0275fac=function(e){return new(e||w)(_.Y36(_.R0b),_.Y36(l.s
1o),_.Y36(Q.f),_.Y36(R.d),_.Y36(u.F0),_.Y36(J.qo))},w.\u0275cmp=_.Xpm({type:w,selectors:[["ng-component"]],decls:40,vars:1,consts:[[1,"dialogue-container","welcome-dialog"],["id","welcomedilog-close","mat-button","",1,"close-cross",3,"click"],[1,"welcome-dialog-h2"],[1,""],[1,"video-parent"],[1,"videoWrapper"],["id","yt-usrwelcomdlg","width","300","height","300","loading","lazy","src","https://www.youtube-nocookie.com/embed/DwyazTIZcQk?origin=https%3A%2F%2Fdecizone.com","title","DeciZone Training 1 - Platform Review","frameborder","0","allow","\n accelerometer;\n autoplay;\n clipboard-write;\n encrypted-media;\n gyroscope;\n picture-in-picture;\n web-share;\n ","referrerpolicy","strict-origin-when-cross-origin","allowfullscreen",""],["mat-dialog-actions","",1,"dialogue-buttons"],["id","welcomedilog-dztour","type","button","mat-raised-button","","color","accent",3,"click"],["id","usrwelcom-createfcguide","rel","noopener nofollow","target","_blank","rel","noopener","href","/create-flowchart-guide",1,""],["id","welcomedilog-createfcguide","mat-raised-button","","color","accent","routerLinkActive","active",3,"click"],["id","welcomedilog-botmclose","type","button","mat-raised-button","","cdkFocusInitial","",3,"click"]],template:function(e,E){1&e&&(_.TgZ(0,"div",0)(1,"button",1),_.NdJ("click",function(){return E.close()}),_.TgZ(2,"mat-icon"),_._uU(3,"close"),_.qZA()(),_.TgZ(4,"h2",2)(5,"mat-icon"),_._uU(6,"local_florist"),_.qZA(),_._uU(7),_.qZA(),_.TgZ(8,"p",3),_._uU(9,"Lets get you up to speed in 3 simple steps."),_.qZA(),_.TgZ(10,"p",3)(11,"mat-icon"),_._uU(12,"looks_one"),_.qZA(),_._uU(13," Please start with the DeciZone Platform Review video below. "),_.qZA(),_.TgZ(14,"div",4)(15,"div",5),_._UZ(16,"iframe",6),_.qZA()(),_.TgZ(17,"p",3)(18,"mat-icon"),_._uU(19,"looks_two"),_.qZA(),_._uU(20," Lets take a quick tour."),_.qZA(),_.TgZ(21,"div",7)(22,"button",8),_.NdJ("click",function(){return E.openQuickTour()}),_.TgZ(23,"mat-icon"),_._uU(24,"swap_calls"),_.qZA(),_._uU(25," DeciZone Tour "),_.qZA()(),_.TgZ(26,"p",3)(27,"mat-icon"),_._uU(28,"looks_3"),_.qZA(),_._uU(29," Lets create your first DeciZone flowchart. The Step-by-step Create flowchart guide below opens in a new browser tab so you can follow each step along at your own pace. "),_.qZA(),_.TgZ(30,"a",9)(31,"button",10),_.NdJ("click",function(){return E.goToCreateFCGuide()}),_.TgZ(32,"mat-icon"),_._uU(33,"map"),_.qZA(),_._uU(34," Step-by-step Create Flowchart Guide "),_.TgZ(35,"mat-icon"),_._uU(36,"open_in_new"),_.qZA()()(),_.TgZ(37,"div",7)(38,"button",11),_.NdJ("click",function(){return E.close()}),_._uU(39," Close "),_.qZA()()()),2&e&&(_.xp6(7),_.hij(" Welcome ",E.displayName," "))},dependencies:[te.lW,l.H8,ae.Hw],encapsulation:2}),w})(),p=(()=>{class w{constructor(e){this.dialog=e}open(){this.dialogRef=this.dialog.open(x,{width:"500px",disableClose:!0,autoFocus:!1,data:{}})}confirmed(){return this.dialogRef.afterClosed().pipe((0,v.q)(1),(0,A.U)(e
1=>e))}}return w.\u0275fac=function(e){return new(e||w)(_.LFG(l.uw))},w.\u0275prov=_.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()}}]);
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.