PageSourceSearch

https://tomglobal.org/841.aa12bb29bcec881b.js

js tomglobal.org collected 2026-10-02 04:14:06 UTC 30,092 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkTOM_Web=self.webpackChunkTOM_Web||[]).push([[841],{28841:(oe,x,p)=>{p.r(x),p.d(x,{ProfileModule:()=>ie});var s=p(69808),f=p(30325),b=p(95601),P=p(47314),C=p(30567),I=p(87058),e=p(5e3),w=p(68365),_=p(52468),h=p(73071),k=p(37556),S=p(65260),U=p(34061),E=p(354),j=p(98868),T=p(30876);let A=(()=>{class i{constructor(t,o){this.userService=t,this.dataService=o,this.uploadingImage=!1,this.FileUpload=new T.G,this.imageUpload=new e.EventEmitter}ngOnInit(){}uploadImage(t){this.uploadingImage=!0,this.FileUpload.UploadFileAsync(t,o=>{o.success?(this.user.data.imageUrl=o.url,this.uploadingImage=!1,this.dataService.updateUser(this.user.data),this.userService.editUserDetails(this.user.data).subscribe(n=>{this.imageUpload.emit()},n=>{console.error(n)})):console.error(o.err)})}onImageChange(t){t.target.files.length>0&&this.uploadImage(t.target.files[0])}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(h.K),e.\u0275\u0275directiveInject(_.D))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-upload-asset"]],inputs:{user:"user"},outputs:{imageUpload:"imageUpload"},decls:5,vars:0,consts:[[1,"add-image-container","pointer"],["type","file","accept","image/*","name","upload","id","upload",2,"display","none",3,"change"],["upload",""],[1,"camera-container",3,"click"],["src","./assets/images/camera.svg",1,"camera-icon"]],template:function(t,o){if(1&t){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"input",1,2),e.\u0275\u0275listener("change",function(a){return o.onImageChange(a)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",3),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(n),e.\u0275\u0275reference(2).click()}),e.\u0275\u0275element(4,"img",4),e.\u0275\u0275elementEnd()()}},styles:[""]}),i})();var M=p(12650),z=p(6321);function V(i,l){1&i&&e.\u0275\u0275element(0,"app-loader")}function B(i,l){if(1&i&&(e.\u0275\u0275element(0,"span"),e.\u0275\u0275pipe(1,"lowercase")),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275classMapInterpolate1("profile-flag round flag-icon + flag-icon-",e.\u0275\u0275pipeBind1(1,3,null==t.user||null==t.user.data||null==t.user.data.basicUserInformation||null==t.user.data.basicUserInformation.countryId?null:t.user.data.basicUserInformation.countryId.alpha2Code)," flag-icon-squared")}}function D(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-upload-asset",35),e.\u0275\u0275listener("imageUpload",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onImageUpload()}),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("user",t.user)}}function O(i,l){1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1," Edit Profile"),e.\u0275\u0275elementEnd())}function F(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"img",36),e.\u0275\u0275template(2,O,2,0,"span",11),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.globals.isDesktop)}}function $(i,l){1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1," View Profile"),e.\u0275\u0275elementEnd())}function N(i,l){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"img",37),e.\u0275\u0275template(2,$,2,0,"span",11),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.globals.isDesktop)}}function L(i,l){1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1," Log Out"),e.\u0275\u0275elementEnd())}function R(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",38),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onLogOutClicked()}),e.\u0275\u0275element(1,"img",39),e.\u0275\u0275template(2,L,2,0,"span",11),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.globals.isDesktop)}}function H(i,l){1&i&&e.\u0275\u0275element(0,"div",40)}function K(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",41)(1,"img",42),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).addProject()}),e.\u0275\u0275elementEnd()()}}const y=function(i){return{"border-bottom":i}};function W(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).togglePublishTab()}),e.\u0275\u0275text(1,"Unpublished"),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(1,y,t.publishTab?null:t.borderBottom))}}function Y(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",45)(1,"app-profile-project-card",46),e.\u0275\u0275listener("selectProjectAction",function(n){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).projectClicked(n)})("publishProjectAction",function(n){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).publishProject(n)})("editProjectAction",function(n){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).editClicked(n)}),e.\u0275\u0275elementEnd()()}if(2&i){const t=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("project",t)}}function G(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275template(1,Y,2,1,"div",44),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.publishProjects)}}function J(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",45)(1,"app-profile-project-card",46),e.\u0275\u0275listener("selectProjectAction",function(n){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).projectClicked(n)})("publishProjectAction",function(n){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).publishProject(n)})("editProjectAction",function(n){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).editClicked(n)}),e.\u0275\u0275elementEnd()()}if(2&i){const t=l.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("project",t)}}function Q(i,l){if(1&i&&(e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275template(1,J,2,1,"div",44),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.unPublishProjects)}}function X(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",47),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(2).navigateToCommunity(r._id)}),e.\u0275\u0275elementStart(1,"div",48),e.\u0275\u0275element(2,"img",49)(3,"span"),e.\u0275\u0275pipe(4,"lowercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",50)(6,"div",51),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",52),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"uppercase"),e.\u0275\u0275pipe(11,"titlecase"),e.\u0275\u0275elementEnd()()()}if(2&i){const t=l.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("src",(null==t?null:t.socialMediaInformation.logoUrl)||"./assets/images/community.svg",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275classMapInterpolate1("community-flag round flag-icon + flag-icon-",e.\u0275\u0275pipeBind1(4,7,t.country.alph
1a2Code)," flag-icon-squared"),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",t.name," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",t.city,", ","usa"===t.country.name?e.\u0275\u0275pipeBind1(10,9,t.country.name):e.\u0275\u0275pipeBind1(11,11,t.country.name)," ")}}function Z(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",47),e.\u0275\u0275listener("click",function(){const r=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(2).navigateToCommunity(r.communityId._id)}),e.\u0275\u0275elementStart(1,"div",48),e.\u0275\u0275element(2,"img",49)(3,"span"),e.\u0275\u0275pipe(4,"lowercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",50)(6,"div",51),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",52),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"uppercase"),e.\u0275\u0275pipe(11,"titlecase"),e.\u0275\u0275elementEnd()()()}if(2&i){const t=l.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("src",(null==t?null:t.communityId.socialMediaInformation.logoUrl)||"./assets/images/community.jpg",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275classMapInterpolate1("community-flag round flag-icon + flag-icon-",e.\u0275\u0275pipeBind1(4,7,null==t.communityId||null==t.communityId.country?null:t.communityId.country.alpha2Code)," flag-icon-squared"),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",null==t||null==t.communityId?null:t.communityId.name," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",t.communityId.city,", ","usa"===t.communityId.country.name?e.\u0275\u0275pipeBind1(10,9,t.communityId.country.name):e.\u0275\u0275pipeBind1(11,11,t.communityId.country.name)," ")}}function q(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"app-edit-profile-form",53),e.\u0275\u0275listener("userDetailsChanged",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).userDetailsChangedHandler()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("user",t.user)}}function ee(i,l){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div",5),e.\u0275\u0275element(3,"img",6),e.\u0275\u0275template(4,B,2,5,"span",7),e.\u0275\u0275template(5,D,1,1,"app-upload-asset",8),e.\u0275\u0275elementStart(6,"div",9)(7,"div",10),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const n=e.\u0275\u0275nextContext();return n.isEditMode=!n.isEditMode,n.analyticsService.sendEvent("Edit Profile button","Edit button")}),e.\u0275\u0275template(8,F,3,1,"ng-container",11),e.\u0275\u0275template(9,N,3,1,"ng-container",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,R,3,1,"div",12),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(11,"div",13)(12,"div",14),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",15)(15,"div",16),e.\u0275\u0275template(16,H,1,0,"div",17),e.\u0275\u0275elementStart(17,"div",13)(18,"div",18)(19,"div",19),e.\u0275\u0275template(20,K,2,0,"div",20),e.\u0275\u0275pipe(21,"async"),e.\u0275\u0275elementStart(22,"div",21)(23,"div",22)(24,"div",23),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().togglePublishTab()}),e.\u0275\u0275text(25,"Published"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(26,W,2,3,"div",24),e.\u0275\u0275pipe(27,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(28,"img",25),e.\u0275\u0275template(29,G,2,1,"div",26),e.\u0275\u0275template(30,Q,2,1,"div",26),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(31,"div",27)(32,"div",28),e.\u0275\u0275text(33,"Bio"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"div",29),e.\u0275\u0275text(35),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"div",30),e.\u0275\u0275text(37,"Address"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"div",31),e.\u0275\u0275text(39),e.\u0275\u0275pipe(40,"uppercase"),e.\u0275\u0275pipe(41,"titlecase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"div",32)(43,"div",33),e.\u0275\u0275text(44,"Leadership Positions"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(45,X,12,13,"div",34),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(46,"div",32)(47,"div",33),e.\u0275\u0275text(48,"Communities"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(49,Z,12,13,"div",34),e.\u0275\u0275elementStart(50,"div",30),e.\u0275\u0275text(51,"Member Type"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(52,"div",31),e.\u0275\u0275text(53),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"div",30),e.\u0275\u0275text(55,"Occupation"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(56,"div",31),e.\u0275\u0275text(57),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(58,"div",30),e.\u0275\u0275text(59,"Skills"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(60,"div",31),e.\u0275\u0275text(61),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(62,q,2,1,"ng-container",11),e.\u0275\u0275elementEnd()()}if(2&i){const t=e.\u0275\u0275nextContext();let o,n;e.\u0275\u0275advance(3),e.\u0275\u0275property("src",(null==t.user||null==t.user.data?null:t.user.data.imageUrl)||"./assets/images/square-default.svg",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isEditMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isEditMode),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.viewModeOnly&&!t.isEditMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isEditMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.viewModeOnly&&!t.isEditMode),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" ",null==t.user||null==t.user.data||null==t.user.data.basicUserInformation?null:t.user.data.basicUserInformation.firstName," ",null==t.user||null==t.user.data||null==t.user.data.basicUserInformation?null:t.user.data.basicUserInformation.lastName," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",t.isEditMode?"hide":""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.globals.isMobile),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",(null==t.user||null==t.user.data?null:t.user.data._id)===(null==(o=e.\u0275\u0275pipeBind1(21,24,t.globalUser$))?null:o._id)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(32,y,t.publishTab?t.borderBottom:null)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==t.user||null==t.user.data?null:t.user.data._id)===(null==(n=e.\u0275\u0275pipeBind1(27,26,t.globalUser$))?null:n._id)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.publishTab),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.publishTab),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",null==t.user||null==t.user.data?null:t.user.data.tellUsAboutYourself," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate2(" ",null==t.user||null==t.user.data||null==t.user.data.basicUserInformation?null:t.user.data.basicUserInformation.city,", ","usa"===(null==t.user||null==t.user.data||null==t.user.data.basicUserInformation||null==t.user.data.basicUserInformation.countryId?null:t.user.data.basicUserInformation.countryId.name)?e.\u0275\u0275pipeBind1(40,28,null==t.user||null==t.user.data||null==t.user.data.basicUserInformation||null==t.user.data.basicUserInformation.countryId?null:t.user.data.basicUserInformation.countryId.name):e.\u0275\u0275pipeBind1(41,30,null==t.user||null==t.user.data||null==t.user.data.basicUserInformation||null==t.user.data.basicUserInformation.countryId?null:t.user.data.basicUserInformation.countryId.name)," "),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",t.leadershipCommunites),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",null==t.user?null:t.user.communities),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",(null==t.user||null==t.user.data?null:t.user.data.otherMemberTypeUserInput)||(null==t.user||null==t.user.data?null:t.user.data.memberTypes)," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",null==t.user||null==t.user.data||null==t.user.data.basicUserInformation?null:t.user.data.basicUserInformation.profession," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",null==t.user||null==t.user.data?null:t.user.data.skills," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.viewModeOnly&&t.isEditMode&&t.user)}}const te=[{path:"",component:(()=>{class i{constructor(t,o,n,r,a,d,c,u,g){var m;this.globals=t,this.dataService=o,this.userService=n,this.router=r,this.authService=a,this.activateRoute=d,this.analyticsService=c,this.documentationService=u,this.projectService=g,this.isEditMode=!1,this.image="./assets/images/temp-profile.jpg",this.publishProjects=[],this.unPublishProjects=[],this.publishTab=!0,this.borderBottom="solid 5px #00a3d3",this.flagIcon="",this.globalUser$=null===(m=this.dataService)||void 0===m?void 0:m.globalUser}ngOnInit(){this.initData(),console.log("in private profile")}initData(){const t=[];this.viewModeOnly=!1,this.userService.getUserData().subscribe(o=>{if(o.data){this.user=o,this.leadershipCommunites=o.leadership_communities,this.setFlagIcon();for(const n of this.user.projects)n.editable=!0;this.initProjectsActiveAndNot();for(const n of this.user.projects)t.push(new Promise(r=>
1this.documentationService.getDocumentationDetails(null,n._id).toPromise().then(a=>{r({data:a,field:n._id})}).catch(a=>{r({data:null,field:n._id})})));(0,C.D)(t).pipe((0,P.d)(null)).subscribe(n=>{Array.isArray(n)&&n.forEach(r=>{var a,d,c,u,g,m;const v=null===(a=this.user)||void 0===a?void 0:a.projects.find(ne=>ne._id===r.field);r.data&&(v.documentationId=null!==(c=null===(d=r.data)||void 0===d?void 0:d._id)&&void 0!==c?c:null,v.eligible=!!(null===(u=null==r?void 0:r.data)||void 0===u?void 0:u.eligibleToBeProduct),v.requestedToBeProduct=null!==(m=null===(g=r.data)||void 0===g?void 0:g.requestedToBeProduct)&&void 0!==m?m:null)})})}},o=>{console.warn(o)})}initProjectsActiveAndNot(){var t;if(this.user)for(const o of null===(t=this.user)||void 0===t?void 0:t.projects)"active"===(null==o?void 0:o.status)?this.publishProjects.push(o):this.unPublishProjects.push(o)}togglePublishTab(){this.publishTab=!this.publishTab}projectClicked(t){if("active"===(null==t?void 0:t.status))this.router.navigateByUrl((0,I._D)(t));else{if(!(null==t?void 0:t.editable))return;this.router.navigateByUrl((null==t?void 0:t.documentationId)?`/documentation?id=${null==t?void 0:t.documentationId}`:`/documentation?projectId=${null==t?void 0:t._id}`)}}editClicked(t){this.router.navigateByUrl((null==t?void 0:t.documentationId)?`/documentation?id=${null==t?void 0:t.documentationId}`:`/documentation?projectId=${null==t?void 0:t._id}`)}publishProject(t){this.projectService.updateProject(Object.assign(Object.assign({},t),{status:"active"})).subscribe(o=>{var n,r;null===(r=null===(n=this.user)||void 0===n?void 0:n.projects)||void 0===r||r.forEach(a=>{(null==a?void 0:a._id)===(null==t?void 0:t._id)&&(a.status="active")}),this.unPublishProjects=this.unPublishProjects.filter(a=>{var d,c;return(null===(d=null==a?void 0:a._id)||void 0===d?void 0:d.toString())!==(null===(c=null==t?void 0:t._id)||void 0===c?void 0:c.toString())}),this.publishProjects.push(t)})}onImageUpload(){this.userService.getUserData().subscribe(t=>{this.user=t})}navigateToCommunity(t){this.router.navigateByUrl(`/community?id=${t}`)}addProject(){this.router.navigateByUrl("/documentation")}onLogOutClicked(){this.dataService.userLogout(),this.router.navigateByUrl("/")}userDetailsChangedHandler(){this.userService.getUserData().subscribe(t=>{this.user=t,this.isEditMode=!1,this.setFlagIcon()})}setFlagIcon(){this.flagIcon="flag-icon-"+this.user.data.basicUserInformation.countryId.alpha2Code.toLowerCase()}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(w.d),e.\u0275\u0275directiveInject(_.D),e.\u0275\u0275directiveInject(h.K),e.\u0275\u0275directiveInject(f.F0),e.\u0275\u0275directiveInject(k.e),e.\u0275\u0275directiveInject(f.gz),e.\u0275\u0275directiveInject(S.y),e.\u0275\u0275directiveInject(U.d),e.\u0275\u0275directiveInject(E.Y))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["app-profile-page"]],decls:4,vars:3,consts:[[3,"ngClass"],["loader",""],["class","profile-page",4,"ngIf","ngIfElse"],[1,"profile-page"],[1,"cover-photo"],[1,"page-limit","height-limit"],[1,"profile-photo","round",3,"src"],[3,"class",4,"ngIf"],[3,"user","imageUpload",4,"ngIf"],[1,"edit-logout-row"],[1,"profile-edit","pointer",3,"click"],[4,"ngIf"],["class","profile-logout pointer",3,"click",4,"ngIf"],[1,"page-limit"],[1,"profile-name","bold"],[1,"mid-section-wrapper"],[1,"page-limit",3,"ngClass"],["class","line",4,"ngIf"],[1,"flex"],[1,"bio-content-container"],["class","add-project",4,"ngIf"],[1,"community-products"],[1,"publish-tab"],[1,"community-products-title",3,"ngStyle","click"],["class","community-products-title",3,"ngStyle","click",4,"ngIf"],["src","assets/images/line.png","alt","line",1,"line-image"],["class","products",4,"ngIf"],[1,"info"],[1,"bio-title","bold"],[1,"bio-text"],[1,"info-title","bold"],[1,"info-text"],[1,"community"],[1,"community-title","bold"],["class","community-row pointer",3,"click",4,"ngFor","ngForOf"],[3,"user","imageUpload"],["src","./assets/images/pencil.svg"],["src","./assets/images/eye.svg",1,"eye-view"],[1,"profile-logout","pointer",3,"click"],["src","./assets/images/logout-icon.svg"],[1,"line"],[1,"add-project"],["src","assets/images/add-project.png","alt","add project",1,"add-project-img",3,"click"],[1,"products"],["class","product",4,"ngFor","ngForOf"],[1,"product"],[3,"project","selectProjectAction","publishProjectAction","editProjectAction"],[1,"community-row","pointer",3,"click"],[1,"community-photo-container"],[1,"community-photo","round",3,"src"],[1,"community-details"],[1,"community-name","bold"],[1,"community-location"],[3,"user","userDetailsChanged"]],template:function(t,o){if(1&t&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,V,1,0,"ng-template",null,1,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(3,ee,63,34,"div",2),e.\u0275\u0275elementEnd()),2&t){const n=e.\u0275\u0275reference(2);e.\u0275\u0275property("ngClass",o.globals.isDesktop?"desktop":"mobile"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",o.user)("ngIfElse",n)}},directives:[s.NgClass,j.R,s.NgIf,A,s.NgStyle,s.NgForOf,M.t,z.N],pipes:[s.LowerCasePipe,s.AsyncPipe,s.UpperCasePipe,s.TitleCasePipe],styles:[".profile-page{width:100%;padding-top:65px;padding-bottom:35px}.profile-page .cover-photo{width:100%;height:113px;position:relative;background:url(/assets/images/profile-background.svg)}.profile-page .profile-photo{position:absolute;border:2px solid white;height:92px;width:92px;left:calc(50% - 46px);bottom:-36px}.profile-page .profile-flag{position:absolute;height:30px;width:30px;left:191px;bottom:-91px;z-index:2;border:2px solid white}.profile-page .camera-icon{position:absolute;height:39px;width:40px;left:225px;top:190px;z-index:2}.profile-page .profile-edit{position:absolute;bottom:15px;
1display:flex;align-items:center}.profile-page .profile-logout{position:absolute;right:5%;bottom:15px;display:flex;align-items:center}.profile-page .profile-name{text-align:center;width:100%;font-size:19px;line-height:2.05;letter-spacing:-.4px;color:#494949;margin-top:40px}.profile-page .profile-email{text-align:center;font-size:16px;width:100%;color:#a0a0a0}.profile-page .line{margin-right:20px;margin-left:20px;width:calc(100% - 40px);height:1px;opacity:.4;border:1px solid rgba(151,151,151,.1);margin-top:20px}.profile-page .info{padding-left:20px;padding-right:20px}.profile-page .info-title{color:#494949;line-height:1.05;font-size:19px;margin-top:32px}.profile-page .info-text{color:#494949;line-height:1.38;font-weight:300;font-size:16px;margin-top:10px}.profile-page .community{margin-top:30px;margin-bottom:35px}.profile-page .community-title{font-size:19px;line-height:1.05;color:#494949;margin-bottom:15px}.profile-page .community-row{margin-bottom:15px;display:flex;justify-content:flex-start;align-items:center;width:100%}.profile-page .community .community-photo-container{width:56px;height:55px;position:relative}.profile-page .community .community-photo-container .community-photo{width:100%;height:100%}.profile-page .community .community-photo-container .community-flag{position:absolute;bottom:-5px;right:0;width:25px;height:25px;border:2px solid white}.profile-page .community .community-details{margin-left:15px}.profile-page .community .community-details .community-name{color:#00a3d3;font-size:19px}.profile-page .community .community-details .community-location{font-size:16px;color:#494949}.profile-page .community .community-details .user-role{color:#f15d31;font-size:14px}.profile-page .bio{margin-top:25px;padding-left:20px;padding-right:20px}.profile-page .bio-title{line-height:1.05;color:#494949;font-size:19px;margin-bottom:10px}.profile-page .bio-text{font-size:16px;line-height:1.38;color:#494949;font-weight:300}.profile-page .community-products{padding-left:20px;padding-top:50px;overflow:auto;position:relative}.profile-page .community-products .line-image{width:100%}.profile-page .community-products-title{line-height:1.05;color:#494949;font-size:19px}.profile-page .community-products .products{margin-top:15px;display:inline-flex}.profile-page .community-products .products .product{margin-right:25px}.mobile .profile-flag{top:112%;left:51%}.mobile .profile-edit{left:5%}.mobile .camera-icon{position:absolute;left:47%;z-index:2;width:22px;height:18px;opacity:1;top:110%}.desktop .profile-page{width:100%;padding-top:80px;padding-bottom:0;display:flex;flex-direction:column;max-width:1440px;margin:auto}.desktop .profile-page .mid-section-wrapper{display:flex;flex-direction:row}.desktop .profile-page .project-type{left:130px!important}.desktop .profile-page .page-limit{width:62%;max-width:1440px}.desktop .profile-page .page-limit .bio-content-container{width:630px}.desktop .profile-page .cover-photo{height:139px;background:#00a3d3}.desktop .profile-page .profile-photo{height:159px;width:159px;left:110px;bottom:-90px}.desktop .profile-page .profile-flag{height:56px;width:56px;left:215px;top:175px}.desktop .profile-page .camera-icon{height:26px;width:35px;left:225px;top:190px}.desktop .profile-page .edit-logout-row{position:absolute;right:20%;bottom:15px;display:flex;align-items:center;justify-content:center}.desktop .profile-page .profile-edit{color:#fff;position:unset;margin-right:40px}.desktop .profile-page .profile-edit img{margin-right:10px}.desktop .profile-page .profile-logout{color:#fff;position:unset}.desktop .profile-page .profile-logout img{margin-right:10px}.desktop .profile-page .profile-name{text-align:left;margin-left:300px;font-size:32px;font-weight:500;line-height:44px;letter-spacing:-.8px;margin-top:15px;width:auto}.desktop .profile-page .profile-email{text-align:left;margin-left:300px;width:auto}.desktop .profile-page .flex{display:flex;flex-direction:column;padding-right:100px;padding-left:100px}.desktop .profile-page .info{width:38%;padding-left:56px;padding-top:95px;padding-bottom:60px;margin-top:-60px;background:#f7f7f7}.desktop .profile-page .info-title{margin-top:32px;font-family:Avenir;font-style:normal;font-weight:600;font-size:21px;line-height:21px;color:#4d4d4d}.desktop .profile-page .info-text{max-width:785px;font-family:Avenir;font-style:normal;font-weight:300;font-size:16px;line-height:22px;margin-top:6px;color:#4d4d4d}.desktop .profile-page .community{margin-top:20px;width:100%;margin-bottom:0}.desktop .profile-page .community-title{font-size:21px;line-height:1.05;font-weight:600;color:#494949;margin-bottom:15px;margin-top:32px}.desktop .profile-page .community-row{margin-bottom:15px;
1display:flex;justify-content:flex-start;align-items:center;width:100%}.desktop .profile-page .community .community-photo-container{width:56px;height:55px;position:relative}.desktop .profile-page .community .community-photo-container .community-photo{width:100%;height:100%}.desktop .profile-page .community .community-photo-container .community-flag{position:absolute;bottom:-5px;right:0;width:25px;height:25px}.desktop .profile-page .community .community-details{margin-left:15px}.desktop .profile-page .community .community-details .community-name{color:#00a3d3;font-weight:600;font-size:21px;line-height:29px}.desktop .profile-page .community .community-details .community-location{font-weight:300;font-size:16px;line-height:22px;color:#4d4d4d}.desktop .profile-page .community .community-details .user-role{color:#f15d31;font-size:14px}.desktop .profile-page .add-project{margin-top:80px;padding-left:20px;padding-right:20px}.desktop .profile-page .add-project .add-project-img{width:230px;height:200px}.desktop .profile-page .bio{margin-top:80px;padding-right:20px}.desktop .profile-page .bio-title{line-height:21px;color:#494949;font-size:21px;font-weight:600;margin-bottom:6px}.desktop .profile-page .bio-text{max-width:623px;font-weight:300;font-size:16px;line-height:22px;color:#4d4d4d}.desktop .profile-page .publish-tab{display:flex;flex-direction:row;justify-content:space-between;width:40%;height:30px;position:relative;cursor:pointer}.desktop .profile-page .community-products{width:630px;overflow:unset}.desktop .profile-page .community-products-title{font-weight:600;font-size:22px;line-height:30px;height:46px;color:#4d4d4d}.desktop .profile-page .community-products .products{overflow:unset;margin-top:19px;display:flex;flex-wrap:wrap}.desktop .profile-page .community-products .products .product{margin-right:11px;margin-bottom:20px}.desktop .height-limit{height:139px;position:relative}.hide{display:none}.eye-view{filter:invert(26%) sepia(79%) saturate(2053%) hue-rotate(585deg) brightness(2519%) contrast(96%)}\n"],encapsulation:2}),i})()}];let ie=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=e.\u0275\u0275defineInjector({imports:[[s.CommonModule,f.Bz.forChild(te),b.m]]}),i})()}}]);

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.