PageSourceSearch

https://app.weldex-connect.com/chunk-RYGCLJ3R.js

js weldex-connect.com collected 2026-10-08 06:17:48 UTC 171,436 bytes, 1 lines download raw bytes

1import{a as nn,b as Oe,c as on,d as rn,e as ln,f as cn,g as dn,h as fn}from"./chunk-TD5QDKKN.js";import{a as pn}from"./chunk-APDDQFNG.js";import{a as vt,b as un}from"./chunk-NF3R5F2V.js";import{a as tn}from"./chunk-KPQ5ZXN2.js";import{a as sn}from"./chunk-4SJY3N7N.js";import{a as an}from"./chunk-5IWME5AD.js";import"./chunk-Y77UCFYP.js";import"./chunk-57GBS5HI.js";import{b as en}from"./chunk-E5ADFYIT.js";import{a as _n,b as gn}from"./chunk-KIFHCMSA.js";import{a as mn}from"./chunk-6UW4Z3TD.js";import"./chunk-SEGLTPII.js";import{a as Vi}from"./chunk-T675STIN.js";import{c as Ui,d as Oi}from"./chunk-GDHVY3VS.js";import{a as Fi,b as Qi}from"./chunk-TZN43D5I.js";import{a as Ki}from"./chunk-ZIZX7KCZ.js";import{a as Li}from"./chunk-5KRA7WXP.js";import{a as Ni}from"./chunk-J6LB3ZOD.js";import{a as At}from"./chunk-LLJM64RH.js";import"./chunk-MVDAAPXV.js";import{a as $i}from"./chunk-LMRGKGMQ.js";import"./chunk-J2AKWXGR.js";import{a as Vn,c as ji}from"./chunk-BT2N3DIS.js";import"./chunk-AR5MJSKN.js";import{a as Dt}from"./chunk-3L2CMIP4.js";import{a as Yi}from"./chunk-LH2MG42Y.js";import{a as Xi,b as Ji,c as Ft}from"./chunk-KIDLAF6A.js";import"./chunk-YVLK4QJ2.js";import"./chunk-XCGZMMFM.js";import{a as Zi}from"./chunk-62BZJB3W.js";import{a as Gi}from"./chunk-37P243YK.js";import"./chunk-75LIFXKU.js";import{a as Bi}from"./chunk-42ZYDYZL.js";import{a as Hi}from"./chunk-F3V2KKD6.js";import"./chunk-4XBPAN2Q.js";import{a as Wi}from"./chunk-ZJCY5BTJ.js";import"./chunk-SBNM44QV.js";import"./chunk-6ICW6IAK.js";import{a as qe}from"./chunk-4KJBOXGK.js";import{e as Vt}from"./chunk-PSZOSFLS.js";import{a as Ri}from"./chunk-JSMOPTUI.js";import"./chunk-STQHJZ7S.js";import{a as zi}from"./chunk-WCDV3JX2.js";import"./chunk-QVPV3TKQ.js";import"./chunk-5YXASH7T.js";import"./chunk-L3TMZSYM.js";import"./chunk-Y2UBYVQZ.js";import"./chunk-Q732TLLN.js";import{a as Wt,b as qi}from"./chunk-CNJNXYXE.js";import{a as Ee}from"./chunk-45XALDR3.js";import"./chunk-SDCGI67Y.js";import"./chunk-X33ELAMZ.js";import"./chunk-T7XNH5FJ.js";import"./chunk-VKPBE7Z6.js";import"./chunk-PPS4DMJR.js";import"./chunk-T5QYLUSR.js";import"./chunk-JGRI432F.js";import"./chunk-P4O4Q6MD.js";import"./chunk-EWDLIJHI.js";import{a as Di}from"./chunk-ZJ7TSQSU.js";import"./chunk-GGHD3JOM.js";import"./chunk-CJPZCHNY.js";import"./chunk-2Y6QSPIG.js";import{a as Et,b as Ci,c as vi,d as xi,g as bi}from"./chunk-TIKLHI5M.js";import"./chunk-VTCLWPT5.js";import"./chunk-2M4A4KMW.js";import"./chunk-YI2INMGT.js";import"./chunk-HICD6REZ.js";import"./chunk-OI7YRJTU.js";import{a as Ut}from"./chunk-HFBCSVSR.js";import{a as Ot}from"./chunk-6RAEKGRT.js";import{a as mt}from"./chunk-FNQBA2VN.js";import"./chunk-EA64HZFB.js";import{a as $e}from"./chunk-PI6J3LX4.js";import"./chunk-3KMFN5PD.js";import{a as ue}from"./chunk-Q33RCU6J.js";import"./chunk-MSBGJBCZ.js";import"./chunk-7TTPAPGT.js";import{a as ye}from"./chunk-LWV5AX76.js";import{b as lt}from"./chunk-XEO5FTVA.js";import"./chunk-ZSU77ZIP.js";import{b as fe}from"./chunk-72AOEOHI.js";import"./chunk-ZOQGKVUN.js";import{a as ht,c as Mt,d as ie}from"./chunk-STUGURIZ.js";import"./chunk-NYBKXWUQ.js";import{a as yi,b as Mi,c as Ei,d as Ti,e as ki}from"./chunk-WAZQPHFU.js";import"./chunk-7UKWFC6Z.js";import"./chunk-MXUGXXMQ.js";import"./chunk-BCX5R3UE.js";import"./chunk-FFBFOTJW.js";import{a as Me,d as kt}from"./chunk-HDTFX2YO.js";import{a as we}from"./chunk-KYHL5OOP.js";import{b as qt}from"./chunk-L7RVGY7W.js";import{a as Si}from"./chunk-KHYPRB62.js";import"./chunk-EACRKDW2.js";import"./chunk-5LKPCPQR.js";import"./chunk-M5UNDBHL.js";import"./chunk-6QAD46IL.js";import{a as Ct}from"./chunk-LBTOMDJQ.js";import{a as He}from"./chunk-GDXYVKBC.js";import{a as Ue}from"./chunk-IQCUSQVV.js";import{a as ct,c as dt,d as ze}from"./chunk-VJF5ZTYT.js";import{a as pt}from"./chunk-JONISZS5.js";import{e as Ii}from"./chunk-SVVW2GNO.js";import"./chunk-OGG72DBQ.js";import{a as Ie}from"./chunk-H7IACD5R.js";import"./chunk-6GCXAGYQ.js";import{a as Ai}from"./chunk-2BLZ5HBF.js";import"./chunk-SEP3MGWH.js";import{b as _e}from"./chunk-ZQPBCD3O.js";import{a as ge}from"./chunk-E6PLEMJN.js";import{B as hi,E as nt,F as ot,G as rt,L as Pi,Q as at,R as Tt,U as wi,X as st,b as Ze,d as E,g as Xe,h as Je,o as et,v as tt,w as it}from"./chunk-3I36ELKV.js";import{a as yt}from"./chunk-QEYWGXZI.js";import"./chunk-ARDKMT76.js";import{f as W}from"./chunk-Q36UYFPB.js";import{a as Ye,b as _i,i as K}from"./chunk-QUSGAZI6.js";import"./chunk-3MEAEYDE.js";import"./chunk-Z5N7ABTE.js";import"./chunk-UY4LDNMV.js";import{b as L}from"./chunk-LYIR3EUL.js";import{Ha as le,Ja as te,Ka as gi,a as fi,e as It,r as re,va as pe,wa as me,xa as Q}from"./chunk-TV3SSIWA.js";import{$b as ai,Ba as Jt,Bb as g,Db as s,Ea as ei,Ec as ci,Fa as Y,Gd as B,Ha as ti,Hb as Fe,Hd as ee,Ib as Ne,Id as se,Ja as o,Jb as Le,N as St,Nb as Re,Oc as zt,Pa as p,Pb as A,Pc as Ke,Qb as wt,R as gt,Rb as c,Sb as v,Ta as O,Tb as I,Ub as ae,Uc as z,V as U,W as Zt,Wb as ii,Wc as Be,Xb as ni,Y as ve,Za as H,Zb as oi,_b as ri,a as N,ad as di,ba as Xt,cd as pi,d as Qt,ea as Rt,ec as si,gd as mi,hb as m,hc as J,jb as u,ka as h,l as k,la as C,lb as $,mb as j,mc as b,nb as R,nc as P,ob as _,oc as D,pa as Pt,pb as r,q as _t,qb as a,qc as li,ra as V,rb as x,vb as Z,wb as X,wd as Qe,xd as ui,y as Yt,yb as S,yd as q}from"./chunk-52C3GDED.js";import{a as Se,b as Pe,g as jt}from"./chunk-QBUHZOWM.js";var Fn=["editorMCE"];function Nn(n,d){if(n&1&&(r(0,"div",42),x(1,"img",43),r(2,"span",44),c(3),a(),x(4,"mat-icon",45),a()),n&2){let e=d.$implicit,t=s(2);A("d-none",e.code!=t.selectedUserLangCode),o(),_("width",25)("src",e.flag,Y),o(2),v(e.name)}
1}function Ln(n,d){if(n&1){let e=S();r(0,"a",46),g("click",function(){let i=h(e).$implicit,l=s(2);return C(l.onLangChange(i.code))}),r(1,"div",47),x(2,"img",43),r(3,"span",48),c(4),a()()()}if(n&2){let e=d.$implicit,t=s(2);_("disabled",t.isLangDisabled),o(2),_("width",20)("src",e.flag,Y),o(2),v(e.name)}}function Bn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),v(e.getError("firstName"))}}function Hn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),v(e.getError("lastName"))}}function $n(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("companyName"))}}function jn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),v(e.getError("companyName"))}}function Rn(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("jobTitle"))}}function zn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),v(e.getError("jobTitle"))}}function qn(n,d){if(n&1){let e=S();r(0,"editor",49,1),g("ngModelChange",function(){h(e);let i=s(2);return C(i.onAboutChange())}),a()}if(n&2){let e=s(2);_("init",e.editorOptions)}}function Wn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("about")," ")}}function Gn(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("telephone"))}}function Kn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),v(e.getError("phone"))}}function Qn(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("mobile"))}}function Yn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),v(e.getError("mobile"))}}function Zn(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("address"))}}function Xn(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("address")," ")}}function Jn(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("region"))}}function eo(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("region")," ")}}function to(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("city"))}}function io(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("city")," ")}}function no(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("postalCode"))}}function oo(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("postalCode")," ")}}function ro(n,d){if(n&1&&(r(0,"mat-label"),c(1),a()),n&2){let e=s().$implicit;o(),v(e("country"))}}function ao(n,d){if(n&1&&(r(0,"mat-option",31),c(1),a()),n&2){let e=d.$implicit;_("value",e.countryID),o(),I(" ",e.name," ")}}function so(n,d){if(n&1&&(r(0,"mat-error",32),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("country")," ")}}function lo(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("vkontakteLink")," ")}}function co(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("xingLink")," ")}}function po(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("telegramLink")," ")}}function mo(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("whatsApp")," ")}}function uo(n,d){if(n&1){let e=S();Z(0,3),r(1,"header")(2,"h1",4),c(3),a(),r(4,"button",5),g("click",function(){h(e);let i=s();return C(i.onClose())})("keydown.enter",function(i){return i.preventDefault()})("keydown.shift.enter",function(i){return i.preventDefault()}),x(5,"mat-icon",6),a(),r(6,"a",7),j(7,Nn,5,5,"div",8,$),b(9,"async"),a(),r(10,"mat-menu",9,0),j(12,Ln,5,4,"a",10,$),b(14,"async"),a()(),r(15,"form",11)(16,"main")(17,"div",12)(18,"div",13)(19,"mat-label"),c(20),a(),r(21,"mat-form-field",14),x(22,"input",15),m(23,Bn,2,1,"mat-error"),a()(),r(24,"div",13)(25,"mat-label"),c(26),a(),r(27,"mat-form-field",14),x(28,"input",16),m(29,Hn,2,1,"mat-error"),a()()(),m(30,$n,2,1,"mat-label"),r(31,"mat-form-field",14),x(32,"input",17),m(33,jn,2,1,"mat-error"),a(),m(34,Rn,2,1,"mat-label"),r(35,"mat-form-field",14),x(36,"input",18),m(37,zn,2,1,"mat-error"),a(),r(38,"mat-label"),c(39),a(),m(40,qn,2,1,"editor",19),m(41,Wn,2,1,"mat-error"),r(42,"h1",20),c(43),a(),r(44,"div"),b(45,"async"),r(46,"div",13),m(47,Gn,2,1,"mat-label"),r(48,"mat-form-field",14),x(49,"input",21),m(50,Kn,2,1,"mat-error"),a()(),r(51,"div",13),m(52,Qn,2,1,"mat-label"),r(53,"mat-form-field",22),x(54,"input",23),m(55,Yn,2,1,"mat-error"),a()()(),m(56,Zn,2,1,"mat-label"),r(57,"mat-form-field",14),x(58,"input",24),m(59,Xn,2,1,"mat-error"),a(),m(60,Jn,2,1,"mat-label"),r(61,"mat-form-field",14),x(62,"input",25),m(63,eo,2,1,"mat-error"),a(),m(64,to,2,1,"mat-label"),r(65,"mat-form-field",14),x(66,"input",26),m(67,io,2,1,"mat-error"),a(),m(68,no,2,1,"mat-label"),r(69,"mat-form-field",14),x(70,"input",27),m(71,oo,2,1,"mat-error"),a(),m(72,ro,2,1,"mat-label"),r(73,"mat-form-field",28)(74,"mat-icon",29),c(75,"ke
1yboard_arrow_down"),a(),r(76,"mat-select",30),g("openedChange",function(i){h(e);let l=s();return C(l.onToggleCountry(i))})("keyup",function(i){h(e);let l=s();return C(l.onCountryKeyup(i))}),j(77,ao,2,2,"mat-option",31,$),a(),m(79,so,2,1,"mat-error",32),a(),r(80,"div",33)(81,"mat-checkbox",34),c(82),a()(),r(83,"h1",4),c(84),a(),r(85,"mat-label"),c(86,"VKontakte"),a(),r(87,"mat-form-field",14),x(88,"input",35),m(89,lo,2,1,"mat-error"),a(),r(90,"mat-label"),c(91,"XING"),a(),r(92,"mat-form-field",14),x(93,"input",36),m(94,co,2,1,"mat-error"),a(),r(95,"mat-label"),c(96,"Telegram"),a(),r(97,"mat-form-field",14),x(98,"input",37),m(99,po,2,1,"mat-error"),a(),r(100,"mat-label"),c(101,"WhatsApp"),a(),r(102,"mat-form-field",14),x(103,"input",38),m(104,mo,2,1,"mat-error"),a()(),r(105,"footer",39)(106,"button",40),g("click",function(){h(e);let i=s();return C(i.onClose())}),c(107),a(),r(108,"button",41),g("click",function(){h(e);let i=s();return C(i.onSubmit(i.formEditUserProfile))}),c(109),a()()(),X()}if(n&2){let e=d.$implicit,t=Re(11),i=s();o(3),v(e("personalDetails")),o(3),_("matMenuTriggerFor",t),o(),R(P(9,63,i.languages$)),o(5),R(P(14,65,i.languages$)),o(3),A("invalid-form",!i.formEditUserProfile.valid),_("formGroup",i.formEditUserProfile),o(),A("huawei-browser-max-height",i.isHuawei),o(2),A("mb-3",i.formEditUserProfile.controls.firstName.invalid&&i.formEditUserProfile.controls.firstName.touched),o(2),v(e("firstName")),o(3),u(i.formEditUserProfile.controls.firstName.invalid&&i.formEditUserProfile.controls.firstName.touched?23:-1),o(),A("mb-3",i.formEditUserProfile.controls.lastName.invalid&&i.formEditUserProfile.controls.lastName.touched),o(2),v(e("lastName")),o(3),u(i.formEditUserProfile.controls.lastName.invalid&&i.formEditUserProfile.controls.lastName.touched?29:-1),o(),u(i.formEditUserProfile.controls.companyName.value?30:-1),o(2),_("placeholder",e("companyName")),o(),u(i.formEditUserProfile.controls.companyName.invalid&&i.formEditUserProfile.controls.companyName.touched?33:-1),o(),u(i.formEditUserProfile.controls.jobTitle.value?34:-1),o(2),_("placeholder",e("jobTitle")),o(),u(i.formEditUserProfile.controls.jobTitle.invalid&&i.formEditUserProfile.controls.jobTitle.touched?37:-1),o(2),v(e("aboutMe")),o(),u(i.isBrowser?40:-1),o(),u(i.formEditUserProfile.controls.about.invalid&&i.formEditUserProfile.controls.about.touched?41:-1),o(2),v(e("contactDetails")),o(),wt(si("row phone lang-",P(45,67,i.activeLang$))),A("invalid-phone",i.formEditUserProfile.controls.mobile.invalid&&i.formEditUserProfile.controls.mobile.touched||i.formEditUserProfile.controls.phone.invalid&&i.formEditUserProfile.controls.phone.touched),o(3),u(i.formEditUserProfile.controls.phone.value?47:-1),o(2),_("placeholder",e("telephone")),o(),u(i.formEditUserProfile.controls.phone.invalid&&i.formEditUserProfile.controls.phone.dirty?50:-1),o(2),u(i.formEditUserProfile.controls.mobile.value?52:-1),o(2),_("placeholder",e("mobile")+" "+e("mobilePlaceholder")),o(),u(i.formEditUserProfile.controls.mobile.invalid&&i.formEditUserProfile.controls.mobile.touched?55:-1),o(),u(i.formEditUserProfile.controls.address.value?56:-1),o(2),_("placeholder",e("address")),o(),u(i.formEditUserProfile.controls.address.invalid&&i.formEditUserProfile.controls.address.touched?59:-1),o(),u(i.formEditUserProfile.controls.region.value?60:-1),o(2),_("placeholder",e("region")),o(),u(i.formEditUserProfile.controls.region.invalid&&i.formEditUserProfile.controls.region.touched?63:-1),o(),u(i.formEditUserProfile.controls.city.value?64:-1),o(2),_("placeholder",e("city")),o(),u(i.formEditUserProfile.controls.city.invalid&&i.formEditUserProfile.controls.city.touched?67:-1),o(),u(i.formEditUserProfile.controls.postalCode.value?68:-1),o(2),_("placeholder",e("postalCode")),o(),u(i.formEditUserProfile.controls.postalCode.invalid&&i.formEditUserProfile.controls.postalCode.touched?71:-1),o(),u(i.formEditUserProfile.controls.country.value?72:-1),o(4),_("placeholder",e("select")+" "+e("country")),o(),R(i.filteredCountries),o(2),u(i.formEditUserProfile.controls.country!=null&&i.formEditUserProfile.controls.country.invalid&&(i.formEditUserProfile.controls.country!=null&&i.formEditUserProfile.controls.country.touched)?79:-1),o(3),v(e("shareContactInfo")),o(2),v(e("socialDetails")),o(4),_("placeholder",e("vkEx")),o(),u(i.formEditUserProfile.controls.vkontakteLink.invalid&&i.formEditUserProfile.controls.vkontakteLink.touched?89:-1),o(4),_("placeholder",e("xingEx")),o(),u(i.formEditUserProfile.controls.xingLink.invalid&&i.formEditUserProfile.controls.xingLink.touched?94:-1),o(4),_("placeholder",e("telegramEx")),o(),u(i.formEditUserProfile.controls.telegramLink.invalid&&i.formEditUserProfile.controls.telegramLink.touched?99:-1),o(4),_("placeholder",e("WhatsAppEx")),o(),u(i.formEditUserProfile.controls.whatsApp.invalid&&i.formEditUserProfile.controls.whatsApp.touched?104:-1),o(3),v(e("cancel")),o(2),v(e("save"))}}var vn=(()=>{class n{constructor(e,t,i,l,f,w,y,M,T,G,F){this.translocoService=e,this.formBuilder=t,this.eventSrv=i,this.authSrv=l,this.dialogRef=f,this.document=w,this.data=y,this.dialogNotif=M,this.localeSrv=T,this.utilSrv=G,this.platformId=F,this.tinyApiKey=Wt.TINYMCE_API_KEY,this.isHuawei=!1,this.selectedUserLangCode="",this.isLangDisabled=!1,this.subscription=new N,this.localUserTranslations=[],this.isBrowser=di(this.platformId)}ngOnInit(){this.isHuawei=this.utilSrv.isHuaweiBrowser(),this.activeLang$=this.localeSrv.activeLanguage$,this.eventSrv.getCountries().subscribe({next:e=>{this.countries=e,this.filteredCountries=e},error:e=>{}}),this.createForm(),this.languages$=this.localeSrv.supportedLanguages$,this.selectedUserLangCode=this.localeSrv.activeLanguage,this.data&&(this.user=this.data,this.formEditUserProfile.controls.firstName.setValue(this.user.firstName),this.formEditUserProfile.controls.lastName.setValue(this.user.lastName),this.formEditUserProfile.controls.companyName.setValue(this.user.companyName),this.formEditUserProfile.controls.jobTitle.setValue(this.user.jobTitle),this.user.contactDetails!==void 0&&this.user.contactDetails!==null&&(this.formEditUserProfile.controls.phone.setValue(this.user.contactDetails.officePhone),this.formEditUserProfile.controls.mobile.setValue(this.user.contactDetails.mobilePhone),this.formEditUserProfile.controls.address.setValue(this.user.contactDetails.address),this.formEditUserProfile.controls.city.setValue(this.user.contactDetails.city),this.formEditUserProfile.controls.region.setValue(this.user.contactDetails.region),this.formEditUserProfile.controls.postalCode.setValue(this.user.contactDetails.postalCode),this.user.contactDetails.countryID!=null?this.formEditUserProfile.controls.country.setValue(this.user.contactDetails.countryID):this.formEditUserProfile.controls.country.setValue("0"),this.formEditUserProfile.controls.about.setValue(this.data.about)),this.user.socialDetails!==void 0&&this.user.socialDetails!==null&&(this.formEditUserProfile.controls.telegramLink.setValue(this.user.socialDetails.telegramLink?.replace("@","")),this.formEditUserProfile.controls.xingLink.setValue(this.user.socialDetails.xingLink),this.formEditUserProfile.controls.vkontakteLink.setValue(this.user.socialDetails.vkontakteLink),this.formEditUserProfile.controls.yandexDzenLink.setValue(this.user.socialDetails.yandexDzenLink),this.formEditUserProfile.controls.shareContactInfo.setValue(this.user.shareContactInfo),this.formEditUserProfile.controls.whatsApp.setValue(this.user.socialDetails.whatsApp)),this.user.isGlobalCompany||this.formEditUserProfile.controls.companyName.disable(),this.onLangChange(this.selectedUserLangCode)),this.editorOptions=Wt.tinymceConfig(this.editorMCE,400,"",!1,this.document,null,!1,!1,!1,this.authSrv.token),this.registerUserValueChangesForTranslation("firstName","firstName"),this.registerUserValueChangesForTranslation("lastName","lastName"),this.registerUserValueChangesForTranslation("city","city"),this.registerUserValueChangesForTranslation("region","region"),this.registerUserValueChangesForTranslation("address","address"),this.registerUserValueChangesForTranslation("about","about"),this.registerUserValueChangesForTranslation("c
1ompanyName","companyName"),this.registerUserValueChangesForTranslation("jobTitle","jobTitle")}createForm(){this.formEditUserProfile=this.formBuilder.group({firstName:["",[E.required,E.minLength(1),E.maxLength(50),Ct]],lastName:["",[E.required,E.minLength(1),E.maxLength(50),Ct]],companyName:["",[E.minLength(1),E.maxLength(150)]],jobTitle:["",[E.minLength(1),E.maxLength(150)]],country:[""],phone:["",[E.pattern(He.PHONE),E.maxLength(30)]],mobile:["",[E.pattern(He.PHONE),E.maxLength(30)]],address:["",[E.minLength(3),E.maxLength(150)]],region:["",[E.minLength(1),E.maxLength(100)]],city:["",[E.minLength(1),E.maxLength(100)]],postalCode:["",[E.maxLength(20)]],yandexDzenLink:["",[E.pattern(He.WEBISTE_LINK_W_RU_CHAR),E.maxLength(150)]],telegramLink:["",[E.pattern(He.TELEGRAM),E.minLength(4),E.maxLength(32)]],xingLink:["",[E.pattern(He.WEBISTE_LINK_W_RU_CHAR),E.maxLength(150)]],vkontakteLink:["",[E.pattern(He.WEBISTE_LINK_W_RU_CHAR),E.maxLength(150)]],shareContactInfo:[!0],about:[""],whatsApp:["",[E.pattern(He.NUMBERS_ONLY),E.maxLength(30)]]})}getError(e){switch(e){case"firstName":return this.formEditUserProfile.get("firstName").hasError("required")?this.translocoService.translate("profile.validations.firstNameRequired"):this.formEditUserProfile.get("firstName").hasError("minlength")||this.formEditUserProfile.get("firstName").hasError("maxlength")?this.translocoService.translate("profile.validations.firstNameLength"):this.formEditUserProfile.get("firstName").hasError("whitespace")?this.translocoService.translate("eventRegister.validations.whitespaces"):"";case"lastName":return this.formEditUserProfile.get("lastName").hasError("required")?this.translocoService.translate("profile.validations.lastNameRequired"):this.formEditUserProfile.get("lastName").hasError("minlength")||this.formEditUserProfile.get("lastName").hasError("maxlength")?this.translocoService.translate("profile.validations.lastNameLength"):this.formEditUserProfile.get("lastName").hasError("whitespace")?this.translocoService.translate("eventRegister.validations.whitespaces"):"";case"companyName":return this.formEditUserProfile.get("companyName").hasError("minlength")||this.formEditUserProfile.get("companyName").hasError("maxlength")?this.translocoService.translate("profile.validations.companyLength"):"";case"jobTitle":return this.formEditUserProfile.get("jobTitle").hasError("minlength")||this.formEditUserProfile.get("jobTitle").hasError("maxlength")?this.translocoService.translate("profile.validations.jobTitleLength"):"";case"phone":return this.formEditUserProfile.get("phone").hasError("pattern")?this.translocoService.translate("profile.validations.phoneFormat"):this.formEditUserProfile.get("phone").hasError("maxlength")?this.translocoService.translate("profile.validations.maxDigits"):"";case"mobile":return this.formEditUserProfile.get("mobile").hasError("pattern")?this.translocoService.translate("profile.validations.phoneFormat"):this.formEditUserProfile.get("mobile").hasError("maxlength")?this.translocoService.translate("profile.validations.maxDigits"):"";case"address":return this.formEditUserProfile.get("address").hasError("minlength")||this.formEditUserProfile.get("address").hasError("maxlength")?this.translocoService.translate("profile.validations.addressLength"):"";case"city":return this.formEditUserProfile.get("city").hasError("minlength")||this.formEditUserProfile.get("city").hasError("maxlength")?this.translocoService.translate("profile.validations.cityLength"):"";case"postalCode":return this.formEditUserProfile.get("postalCode").hasError("minlength")||this.formEditUserProfile.get("postalCode").hasError("maxlength")?this.translocoService.translate("profile.validations.maxCharacters"):"";case"telegramLink":return this.formEditUserProfile.get("telegramLink").hasError("pattern")?this.translocoService.translate("profile.validations.telegramFormat"):this.formEditUserProfile.get("telegramLink").hasError("minlength")||this.formEditUserProfile.get("telegramLink").hasError("maxlength")?this.translocoService.translate("profile.validations.telegramLength"):"";case"vkontakteLink":return this.formEditUserProfile.get("vkontakteLink").hasError("pattern")?this.translocoService.translate("profile.validations.correctLink"):this.formEditUserProfile.get("vkontakteLink").hasError("maxlength")?this.translocoService.translate("profile.validations.socialLinkLength",{value:"VKontakte"}):"";case"xingLink":return this.formEditUserProfile.get("xingLink").hasError("pattern")?this.translocoService.translate("profile.validations.correctLink"):this.formEditUserProfile.get("xingLink").hasError("maxlength")?this.translocoService.translate("profile.validations.socialLinkLength",{value:"Xing"}):"";case"yandexDzenLink":return this.formEditUserProfile.get("yandexDzenLink").hasError("pattern")?this.translocoService.translate("profile.validations.correctLink"):this.formEditUserProfile.get("yandexDzenLink").hasError("maxlength")?this.translocoService.translate("profile.validations.socialLinkLength",{value:"yandexDzenLink"}):"";case"about":return this.formEditUserProfile.get("about").hasError("minlength")||this.formEditUserProfile.get("about").hasError("maxlength")?this.translocoService.translate("profile.validations.descriptionLength2000"):"";case"region":return this.formEditUserProfile.get("region").hasError("minlength")||this.formEditUserProfile.get("region").hasError("maxlength")?this.translocoService.translate("profile.validations.regionLength"):"";case"whatsApp":return this.formEditUserProfile.get(e).hasError("pattern")?this.translocoService.translate("profile.validations.phoneFormat"):this.formEditUserProfile.get(e).hasError("maxlength")?this.translocoService.translate("profile.validations.maxDigits"):""}}onAboutChange(){let e=this.editorMCE.editor.getContent({format:"text"}).trim(),t=this.editorMCE.editor.plugins.wordcount.body.getCharacterCount();this.formEditUserProfile.get("about").markAsTouched(),t>2e3?this.formEditUserProfile.get("about").setErrors({maxlength:!0}):this.formEditUserProfile.get("about").setErrors(null)}onCountryKeyup(e){let t=e?.key?.toLowerCase();if(!t){this.filteredCountries=Array.from(this.countries);return}let i=this.countries.filter(l=>l.name.toLowerCase().startsWith(t));i.length===0?this.filteredCountries=Array.from(this.countries):this.filteredCountries=Array.from(i)}onToggleCountry(e){e===!1&&(this.filteredCountries=Array.from(this.countries))}onClose(){this.dialogRef.close()}onSubmit(e){if(e.valid){let t=[],i;i=Pe(Se({},this.user),{firstName:this.formEditUserProfile.controls.firstName.value,lastName:this.formEditUserProfile.controls.lastName.value,companyName:this.formEditUserProfile.controls.companyName.disabled?null:this.formEditUserProfile.controls.companyName.value,jobTitle:this.formEditUserProfile.controls.jobTitle.disabled?null:this.formEditUserProfile.controls.jobTitle.value,about:this.formEditUserProfile.controls.about.value,contactDetails:{officePhone:this.formEditUserProfile.controls.phone.value,mobilePhone:this.formEditUserProfile.controls.mobile.value,address:this.formEditUserProfile.controls.address.value,city:this.formEditUserProfile.controls.city.value,region:this.formEditUserProfile.controls.region.value,postalCode:this.formEditUserProfile.controls.postalCode.value,countryID:this.formEditUserProfile.controls.country.value!==""?parseInt(this.formEditUserProfile.controls.country.value):0},socialDetails:{telegramLink:this.formEditUserProfile.controls.telegramLink.value,vkontakteLink:this.formEditUserProfile.controls.vkontakteLink.value,xingLink:this.formEditUserProfile.controls.xingLink.value,yandexDzenLink:this.formEditUserProfile.controls.yandexDzenLink.value,whatsApp:this.formEditUserProfile.controls.whatsApp.value},shareContactInfo:this.formEditUserProfile.controls.shareContactInfo.value,submittedEnUserTranslation:null,submittedRuUserTranslation:null,submittedUserTranslations:this.localUserTranslations}),t.push({status:!0,user:i}),this.dialogRef.close(t)}
1else e.invalid&&(this.formEditUserProfile.markAllAsTouched(),this.openDialog(this.translocoService.translate("profile.validations.notValidForm")))}openDialog(e){setTimeout(()=>this.dialogNotif.open(pt,{width:"400px",data:e,panelClass:"modalbox-purple"}))}registerUserValueChangesForTranslation(e,t){this.subscription.add(this.formEditUserProfile.get(e).valueChanges.subscribe(i=>{let l=this.localUserTranslations.find(f=>f.langCode==this.selectedUserLangCode);l!=null&&(l[t]=i)}))}onLangChange(e){this.selectedUserLangCode=e;let t=this.localeSrv.languages.find(de=>de.code==re.EN_LANG_CODE),i=this.localeSrv.languages.find(de=>de.code==re.RU_LANG_CODE),l=this.localeSrv.languages.find(de=>de.code==re.CH_LANG_CODE),f=this.localeSrv.languages.find(de=>de.code==re.TR_LANG_CODE),w=this.user.userTranslations,y=this.user.systemUserTranslations,M=this.user.standardFieldTranslations;t!=null&&this.setLocalTranslation(t.languageId,re.EN_LANG_CODE,w,y,M),i!=null&&this.setLocalTranslation(i.languageId,re.RU_LANG_CODE,w,y,M),l!=null&&this.setLocalTranslation(l.languageId,re.CH_LANG_CODE,w,y,M),f!=null&&this.setLocalTranslation(f.languageId,re.TR_LANG_CODE,w,y,M);let T=this.localUserTranslations.find(de=>de.langCode==this.selectedUserLangCode);if(T==null)return;let G=this.formEditUserProfile.get("firstName"),F=this.formEditUserProfile.get("lastName"),ce=this.formEditUserProfile.get("about"),he=this.formEditUserProfile.get("address"),Ce=this.formEditUserProfile.get("city"),xe=this.formEditUserProfile.get("companyName"),Ge=this.formEditUserProfile.get("jobTitle"),be=this.formEditUserProfile.get("region");G.setValue(T.firstName,{emitEvent:!1}),F.setValue(T.lastName,{emitEvent:!1}),ce.setValue(T.about,{emitEvent:!1}),he.setValue(T.address,{emitEvent:!1}),Ce.setValue(T.city,{emitEvent:!1}),be.setValue(T.region,{emitEvent:!1}),this.user.isGlobalCompany&&xe.setValue(T.companyName,{emitEvent:!1}),Ge.setValue(T.jobTitle,{emitEvent:!1})}setLocalTranslation(e,t,i,l,f){let w=this.localUserTranslations.find(oe=>oe.langCode==t);if(w!=null)return w;let y="",M="",T="",G="",F="",ce="",he="",Ce="",xe=i?.find(oe=>oe.langCode==t);xe!=null?(y=xe.firstName,M=xe.lastName,Ce=xe.jobTitle??this.user.jobTitle):(y=this.user.firstName,M=this.user.lastName,Ce=this.user.jobTitle);let Ge=l?.find(oe=>oe.langCode==t);Ge!=null?he=Ge.companyName??this.user.companyName:he=this.user.companyName;let be=f?.filter(oe=>oe.langCode==t);be!=null&&be.length>0?(ce=be.find(oe=>oe.standardFieldID==2)?.answer??this.user.about,T=be.find(oe=>oe.standardFieldID==14)?.answer??this.user.contactDetails?.address,F=be.find(oe=>oe.standardFieldID==15)?.answer??this.user.contactDetails?.city,G=be.find(oe=>oe.standardFieldID==24)?.answer??this.user.contactDetails?.region):(ce=this.user.about,T=this.user.contactDetails?.address,F=this.user.contactDetails?.city,G=this.user.contactDetails?.region);let de={firstName:y,lastName:M,address:T,city:F,region:G,about:ce,companyName:he,jobTitle:Ce,isGlobalCompany:this.user.isGlobalCompany,languageID:e,langCode:t};return this.localUserTranslations.push(de),de}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(nt),p(W),p(K),p(pe),p(Pt),p(me),p(Q),p(re),p(ue),p(Jt))}}static{this.\u0275cmp=O({type:n,selectors:[["app-edit-profile"]],viewQuery:function(t,i){if(t&1&&Fe(Fn,5),t&2){let l;Ne(l=Le())&&(i.editorMCE=l.first)}},decls:1,vars:1,consts:[["langMenu","matMenu"],["editorMCE",""],["class","p-3",4,"transloco","translocoPrefix"],[1,"p-3"],[1,"base-text"],["type","button","mat-icon-button","","tabindex","-1",1,"close",3,"click","keydown.enter","keydown.shift.enter"],["svgIcon","closeW",1,"icon-stroke","close-svg"],["type","button",3,"matMenuTriggerFor"],[1,"mb-3","lang",3,"d-none"],[1,"lang-menu"],["mat-menu-item","","type","button",1,"p-2","badgeImg",3,"disabled"],[1,"form-container",3,"formGroup"],[1,"row"],[1,"col-md-6"],["appearance","outline",1,"w100"],["type","text","matInput","","autocomplete","off","formControlName","firstName","required",""],["type","text","matInput","","autocomplete","off","formControlName","lastName","required",""],["type","text","matInput","","autocomplete","off","formControlName","companyName",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","jobTitle",3,"placeholder"],["formControlName","about",3,"init"],[1,"base-text","mt-2"],["type","text","matInput","","autocomplete","off","formControlName","phone",3,"placeholder"],["appearance","outline","floatLabel","always",1,"w100"],["type","text","matInput","","autocomplete","off","formControlName","mobile",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","address",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","regi
1on",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","city",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","postalCode",3,"placeholder"],["appearance","outline","floatLabel","always",1,"w100","select"],["matSuffix",""],["formControlName","country","disableOptionCentering","",3,"openedChange","keyup","placeholder"],[3,"value"],[1,"error"],[1,"mr-2"],["formControlName","shareContactInfo",1,"chk-share"],["type","text","matInput","","autocomplete","off","formControlName","vkontakteLink",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","xingLink",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","telegramLink",3,"placeholder"],["type","text","matInput","","autocomplete","off","formControlName","whatsApp",3,"placeholder"],[1,"mr-3"],["mat-button","",1,"mr-2","cancel-btn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"mb-3","lang"],[3,"width","src"],[1,"pl-2","flex-1"],["svgIcon","arrowDown",1,"icon-stroke","arrowDown"],["mat-menu-item","","type","button",1,"p-2","badgeImg",3,"click","disabled"],[3,"matTooltip"],[1,"ml-2"],["formControlName","about",3,"ngModelChange","init"]],template:function(t,i){t&1&&H(0,uo,110,69,"ng-container",2),t&2&&_("translocoPrefix","profile.editProfilePopUp")},dependencies:[ee,le,L,ze,dt,ct,_e,ot,et,Ze,Xe,Je,hi,rt,it,tt,at,st,lt,Tt,qi,wi,Ii,Pi,Si,te,z],styles:[".w100[_ngcontent-%COMP%]{width:100%}.form-container[_ngcontent-%COMP%]{overflow:hidden}footer[_ngcontent-%COMP%]{display:flex;padding:.5rem 0;justify-content:flex-start}main[_ngcontent-%COMP%]{padding-bottom:0;overflow:hidden;overflow-y:auto;max-height:calc(100dvh - 240px)}@media screen and (min-width:768px){.phone[_ngcontent-%COMP%]{align-items:flex-end}}  .form-container .mat-mdc-select-arrow{display:none!important}  .form-container .mat-mdc-text-field-wrapper{margin-top:.25em}  .form-container .mdc-text-field--outlined .mat-mdc-form-field-infix{padding:10px 0}  .form-container .select .mdc-text-field--outlined .mat-mdc-form-field-infix{padding:6px 0 10px}  .form-container .mat-mdc-form-field .mat-mdc-form-field-flex{background-color:#e1e3e6;border-radius:15px!important;padding:0 10px;height:38px}  .form-container .mdc-notched-outline__leading,   .form-container .mdc-notched-outline__notch,   .form-container .mdc-notched-outline__trailing{border:0 none!important}  .form-container .mdc-text-field--outlined{padding:0!important}  .lang-ru.invalid-phone .mat-mdc-form-field-subscript-wrapper{height:40px}  .chk-share .mdc-label{margin:0 0 0 -6px!important}.lang[_ngcontent-%COMP%]{box-shadow:0 7px 12px 2px #0000000d,4px -4px 12px 2px #0000000d;width:166px;height:54px;border-radius:16px;display:flex;align-items:center;padding:6px 6px 6px 16px}.flex-1[_ngcontent-%COMP%]{flex:1}@media screen and (max-width:768px){  .invalid-form .mat-mdc-form-field-error-wrapper{position:relative;margin-top:-18px;margin-bottom:10px}}input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}"]})}}return n})();function fo(n,d){if(n&1&&(r(0,"mat-error"),c(1),a()),n&2){let e=s(2);o(),I(" ",e.getError("note")," ")}}function _o(n,d){if(n&1){let e=S();Z(0),r(1,"header")(2,"h1",1),c(3),a(),r(4,"button",2),g("click",function(){h(e);let i=s();return C(i.onClose())}),x(5,"mat-icon",3),a()(),r(6,"form",4),g("ngSubmit",function(){h(e);let i=s();return C(i.onConfirm())}),r(7,"main")(8,"p",5),c(9),r(10,"strong"),c(11),a(),c(12),x(13,"br"),c(14),b(15,"date"),b(16,"date"),b(17,"date"),a(),r(18,"mat-form-field",6)(19,"mat-label"),c(20),a(),x(21,"textarea",7),m(22,fo,2,1,"mat-error"),a()(),r(23,"footer")(24,"button",8),g("click",function(){h(e);let i=s();return C(i.onClose())}),c(25),a(),r(26,"button",9),c(27),a()()(),X()}if(n&2){let e=d.$implicit,t=s();o(3),v(e("requestMeeting")),o(3),_("formGroup",t.noteForm),o(3),I("",e("meetingWith")," "),o(2),v(t.data.user.fullName?t.data.user.fullName:t.data.user),o(),I(" ",e("on")," "),o(2),ni("",D(15,16,t.data.slot.start,"EEEE, MMMM d"),", ",e("at")," ",D(16,19,t.data.slot.start,"H:mm")," - ",D(17,22,t.data.slot.end,"H:mm")," (",t.selectedTimezone,")"),o(4),_("appearance","outline"),o(2),v(e("meetingNotes")),o(),_("placeholder",e("notes")),o(),u(t.noteForm.controls.note.invali
1d&&t.noteForm.controls.note.touched?22:-1),o(3),v(e("cancel")),o(2),v(e("confirm"))}}var xn=(()=>{class n{constructor(e,t,i,l,f){this.fb=e,this.translocoService=t,this.eventSrv=i,this.dialogRef=l,this.data=f,this.selectedTimezone=this.eventSrv.isInLocalTimezone()?this.eventSrv.localTimezone():this.eventSrv.eventDetails.getValue().ianaTimezone}ngOnInit(){this.noteForm=this.fb.group({note:["",[E.required,Ct]]})}getError(e){if(e==="note")return this.noteForm.get("note").hasError("required")?"":this.noteForm.get("note").hasError("whitespace")?this.translocoService.translate("profile.validations.whitespaces"):""}onConfirm(){this.noteForm.valid&&this.dialogRef.close(this.noteForm.value)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(p(nt),p(B),p(W),p(pe),p(me))}}static{this.\u0275cmp=O({type:n,selectors:[["app-arrange-meeting-dialog"]],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[1,"text-center","mb-0","font-normal"],["type","button","mat-icon-button","","tabindex","-1",1,"close",3,"click"],["svgIcon","closeW",1,"icon-stroke","close-svg"],[3,"ngSubmit","formGroup"],[1,"mt-2","mb-4","text-center"],["floatLabel","always",1,"w100","input-textarea",3,"appearance"],["formControlName","note","rows","5","matInput","",3,"placeholder"],["mat-button","","type","button",1,"mr-2","cancel-btn",3,"click"],["mat-raised-button","","type","submit","color","primary","cdkFocusInitial",""]],template:function(t,i){t&1&&H(0,_o,28,25,"ng-container",0),t&2&&_("translocoPrefix","profile.schedule")},dependencies:[ee,le,L,ot,et,Ze,Xe,Je,rt,it,tt,st,at,lt,Tt,te,Be],styles:["footer[_ngcontent-%COMP%]{display:flex;padding:.5rem}"]})}}return n})();var ho=["stepper"],Nt=n=>({value:n});function Co(n,d){if(n&1&&c(0),n&2){let e=s(2).$implicit;v(e("chooseDay"))}}function vo(n,d){if(n&1){let e=S();r(0,"button",20),g("click",function(){h(e);let i=s().$implicit,l=s(3);return C(l.getSlotsForDay(i))}),c(1),b(2,"date"),a()}if(n&2){let e=s().$implicit;o(),I(" ",D(2,1,e.dayStart,"EEEE, MMMM d")," ")}}function xo(n,d){if(n&1&&m(0,vo,3,4,"button",19),n&2){let e=d.$implicit;u(e.isAvailable?0:-1)}}function bo(n,d){if(n&1&&c(0),n&2){let e=s(2).$implicit;v(e("chooseTime"))}}function So(n,d){if(n&1&&(r(0,"span",22),c(1,"info"),a()),n&2){let e=s().$implicit,t=s(2).$implicit;_("matTooltip",e.informalsCount?e.informalsCount>1?t("pendingRequests",J(1,Nt,e.informalsCount)):t("pendingRequest"):e.sessionsCount?e.sessionsCount>1?t("enrolledSessions",J(3,Nt,e.sessionsCount)):t("enrolledSession"):e.sessionsCount&&e.informalsCount?(e.informalsCount>1?t("pendingRequests",J(5,Nt,e.informalsCount)):t("pendingRequest"))+", "+(e.sessionsCount>1?t("enrolledSessions",J(7,Nt,e.sessionsCount)):t("enrolledSession")):"")}}function Po(n,d){if(n&1){let e=S();r(0,"div")(1,"button",21),g("click",function(){let i=h(e).$implicit,l=s(3);return C(l.onSelectMeeting(i))}),r(2,"span"),c(3),b(4,"date"),a(),c(5," - "),r(6,"span"),c(7),b(8,"date"),a(),r(9,"span"),c(10),a(),m(11,So,2,9,"span",22),a()()}if(n&2){let e=d.$implicit;o(3),v(D(4,4,e.start,"H:mm")),o(4),v(D(8,7,e.end,"H:mm")),o(3),I(" \u2022 ",e.duration,"min"),o(),u(e.informalsCount||e.sessionsCount?11:-1)}}function wo(n,d){if(n&1&&c(0),n&2){let e=s(2).$implicit;v(e("sendRequest"))}}function Io(n,d){if(n&1&&(r(0,"p",14),c(1),x(2,"br"),r(3,"strong"),c(4),b(5,"date"),b(6,"date"),b(7,"date"),a()()),n&2){let e=s(2).$implicit,t=s();o(),I("",e("requestMeetingOn")," "),o(3),ii("",D(5,5,t.selectedSlot==null?null:t.selectedSlot.start,"EEEE, MMMM d"),", ",e("at")," ",D(6,8,t.selectedSlot==null?null:t.selectedSlot.start,"H:mm")," - ",D(7,11,t.selectedSlot==null?null:t.selectedSlot.end,"H:mm"))}}function yo(n,d){if(n&1){let e=S();r(0,"mat-horizontal-stepper",5,0)(2,"mat-step"),H(3,Co,1,1,"ng-template",8),r(4,"p",9),c(5),a(),r(6,"div",10),j(7,xo,1,1,null,null,$),b(9,"async"),a()(),r(10,"mat-step"),H(11,bo,1,1,"ng-template",8),r(12,"p",9),c(13),a(),j(14,Po,12,10,"div",null,$),b(16,"async"),r(17,"div",11)(18,"button",12),g("click",function(){h(e);let i=s(2);return C(i.selectedSlot=null)}),c(19),a()()(),r(20,"mat-step")(21,"form",13),H(22,wo,1,1,"ng-template",8),m(23,Io,8,14,"p",14),r(24,"mat-form-field",15)(25,"mat-label"),c(26),a(),x(27,"textarea",16),a(),r(28,"div",11)(29,"button",17),c(30),a(),r(31,"button",18),g("click",function(){h(e);let i=s(2);return C(i.submit())}),c(32),a()()()()()}if(n&2){let e=s().$implicit,t=s();o(5),v(e("selectAvailable")),o(2),R(P(9,10,t.days$)),o(6),v(e("selectDay")),o(),R(P(16,12,t.slots$)),o(5),v(e("back")),o(2),_("formGroup",t.sendRequestForm),o(2),u(t.selectedSlot?23:-1),o(),_("appearance","outline"),o(2),v(e("meetingNotes")),o(),_("placeholder",e("notes")),o(3),v(e("back")),o(2),v(e("sendRequest"))}}function Mo(n,d){if(n&1&&(r(0,"div",6),c(1),a()),n&2){let e=s(2);o(),v(e.message)}}function Eo(n,d){n&1&&x(0,"app-loading-spinner",7)}function To(n,d){if(n&1){let e=S();Z(0),r(1,"header")(2,"h1",2),c(3),a(),r(4,"button",3),g("click",function(){h(e);let i=s();return C(i.onClose())}),x(5,"mat-icon",4),a()(),r(6,"main"),m(7,yo,33,14,"mat-horizontal-stepper",5),b(8,"async"),m(9,Mo,2,1,"div",6),b(10,"async"),m(11,Eo,1,0,"app-loading-spinner",7),a(),X()}if(n&2){let e,t,i=d.$implicit,l=s();o(3),v(l.data.meetingId?i("rescheduleMeeting"):i("requestMeeting")),o(4),u(!l.loading&&((e=P(8,4,l.days$))==null?null:e.length)>0?7:-1),o(2),u(((t=P(10,6,l.days$))==null?null:t.length)==0&&l.message?9:-1),o(2),u(l.loading?11:-1)}}var Gt=(()=>{class n{constructor(e,t,i,l,f,w,y,M,T){this.translocoService=e,this.dialogRef=t,this.dialog=i,this.data=l,this.fb=f,this.MyEventServ=w,this.usrProfileSrv=y,this.notificationSrv=M,this.cookieService=T}
1ngOnInit(){this.sendRequestForm=this.fb.group({note:[""]}),this.loading=!0,this.days$=this.usrProfileSrv.meetingDays$,this.slots$=this.usrProfileSrv.meetingSlots$,this.user$=this.usrProfileSrv.userProfileDetails$,this.usrProfileSrv.getMeetingDays(this.data.event,this.data.username).subscribe(e=>{this.loading=!1,this.message=e.message})}getSlotsForDay(e){this.usrProfileSrv.meetingSlots.next(e.daySlots)}onSelectMeeting(e){if(e.informalsCount||e.sessionsCount){let t=e.informalsCount?`${e.informalsCount>1?this.translocoService.translate("profile.schedule.pendingRequests",{value:e.informalsCount}):this.translocoService.translate("profile.schedule.pendingRequest")}.<br>`:"",i=e.sessionsCount?`${e.sessionsCount>1?this.translocoService.translate("profile.schedule.enrolledSessions",{value:e.sessionsCount}):this.translocoService.translate("profile.schedule.enrolledSession")}<br>`:"";this.dialog.open(mt,{data:{title:this.translocoService.translate("profile.schedule.warning"),subtitle:`${t}${i} ${this.translocoService.translate("profile.schedule.cancelAllRequests")}`},panelClass:["custom-modalbox"]}).afterClosed().pipe(U(f=>(this.loading=!0,f?(this.selectedSlot=e,this.data.meetingId?this.usrProfileSrv.rescheduleMeeting(+this.data.event,this.selectedSlot,this.data.meetingId,this.data.username):k(f)):k(null))),U(f=>{if(f)if(this.data.meetingId)if(f.status){this.notificationSrv.success(this.translocoService.translate("myEvent.requestSent")),this.dialogRef.close(f);let w;return this.data.username?(this.MyEventServ.myMeetingsData.next(null),w=this.MyEventServ.getMyMeetings(this.data.event,this.data.selectedDate)):w=this.usrProfileSrv.getMeetingByUserId(this.data.event),this.loading=!1,w}else return this.notificationSrv.error(f.message),this.loading=!1,k(null);else return this.stepper.next(),this.loading=!1,k(null);else return this.loading=!1,k(null)})).subscribe()}else this.loading=!0,this.selectedSlot=e,this.data.meetingId?this.usrProfileSrv.rescheduleMeeting(+this.data.event,this.selectedSlot,this.data.meetingId,this.data.username).pipe(U(t=>{t.status?(this.notificationSrv.success(this.translocoService.translate("myEvent.requestSent")),this.dialogRef.close(t)):this.notificationSrv.error(t.message);let i;this.data.username?(this.MyEventServ.myMeetingsData.next(null),i=this.MyEventServ.getMyMeetings(this.data.event,this.data.selectedDate)):i=this.usrProfileSrv.getMeetingByUserId(this.data.event);let l=t.status?i:k(null);return this.loading=!1,l})).subscribe():(this.loading=!1,this.stepper.next())}submit(){this.usrProfileSrv.arrangeMeeting(+this.data.event,this.selectedSlot,this.sendRequestForm.value.note,this.data.username).subscribe(e=>{this.notificationSrv.success(this.translocoService.translate("myEvent.requestSent")),this.MyEventServ.getMyMeetings(this.data.event,this.data.selectedDate),this.dialogRef.close(e)},e=>this.notificationSrv.error(this.translocoService.translate("default.somethingWrong")))}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(pe),p(Q),p(me),p(nt),p(Ie),p(ie),p(ye),p(Mt))}}static{this.\u0275cmp=O({type:n,selectors:[["app-schedule-meeting-dialog"]],viewQuery:function(t,i){if(t&1&&Fe(ho,5),t&2){let l;Ne(l=Le())&&(i.stepper=l.first)}},decls:1,vars:1,consts:[["stepper",""],[4,"transloco","translocoPrefix"],[1,"text-center"],["type","button","mat-icon-button","","tabindex","-1",1,"close",3,"click"],["svgIcon","closeW",1,"icon-stroke","close-svg"],["linear","",1,"meetingStepper"],[1,"px-3","pb-3","text-center"],["color","#ccc"],["matStepLabel",""],[1,"descLabel"],[1,"days"],[1,"text-right"],["mat-raised-button","","matStepperPrevious","",3,"click"],[3,"formGroup"],[1,"mb-3","text-center"],["floatLabel","always",1,"w100","input-textarea",3,"appearance"],["formControlName","note","rows","5","matInput","",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],["mat-raised-button","","matStepperNext","",1,"mb-2","w100"],["mat-raised-button","","matStepperNext","",1,"mb-2","w100",3,"click"],["mat-raised-button","","type","button",1,"meetingSlot","w100",3,"click"],[1,"info","material-icons",3,"matTooltip"]],template:function(t,i){t&1&&H(0,To,12,8,"ng-container",1),t&2&&_("translocoPrefix","profile.schedule")},dependencies:[ee,le,L,Ei,Mi,yi,te,Ti,_e,ki,ot,et,Ze,Xe,Je,rt,it,tt,st,at,lt,ge,z,Be],styles:[".meetingStepper .mat-horizontal-stepper-header-container{display:none!important}  .meetingStepper .mat-horizontal-content-container{padding:0 .5rem .5rem}.meetingSlot[_ngcontent-%COMP%]{border-radius:20px;background-color:#02af66;margin-bottom:.5rem;color:#fff;position:relative}.descLabel[_ngcontent-%COMP%]{font-size:16px;color:#505050;text-align:center}.info[_ngcontent-%COMP%]{position:absolute;top:10px;font-size:18px;margin-left:.5rem}"]})}}return n})();var Ve=jt(Vn());var ut=jt(_i());var Kt=n=>({name:n});function Oo(n,d){if(n&1){let e=S();r(0,"div",13)(1,"button",14),g("click",function(){h(e);let i=s(3);
1return C(i.navigateToSession(i.meetingInfo.meetingID))}),r(2,"mat-icon",15),c(3,"login"),a(),r(4,"span",16),c(5),a()()()}if(n&2){let e=s(2).$implicit,t=s();o(),_("disabled",!t.isJoinEnabled(t.meetingInfo)),o(4),v(e("joinMeeting"))}}function Do(n,d){if(n&1){let e=S();r(0,"div",3),c(1),r(2,"strong"),c(3),b(4,"date"),a(),c(5),r(6,"strong"),c(7),b(8,"date"),b(9,"date"),a(),c(10),r(11,"a",4),g("click",function(){h(e);let i=s(2);return C(i.onCancelMeeting(!1))}),c(12),a()(),r(13,"div",5)(14,"button",6),x(15,"mat-icon",7),c(16),a(),r(17,"mat-menu",null,0)(19,"a",8),g("click",function(){h(e);let i=s(2);return C(i.onAddToCalendar(1,i.meetingInfo))}),r(20,"mat-icon",9),c(21,"event"),a(),r(22,"span"),c(23,"Apple Calendar"),a()(),r(24,"a",8),g("click",function(){h(e);let i=s(2);return C(i.onAddToCalendar(2,i.meetingInfo))}),x(25,"mat-icon",10),r(26,"span"),c(27,"Google (online)"),a()(),r(28,"a",8),g("click",function(){h(e);let i=s(2);return C(i.onAddToCalendar(3,i.meetingInfo))}),x(29,"mat-icon",11),r(30,"span"),c(31,"Outlook"),a()(),r(32,"a",8),g("click",function(){h(e);let i=s(2);return C(i.onAddToCalendar(4,i.meetingInfo))}),x(33,"mat-icon",11),r(34,"span"),c(35,"Outlook.com (online)"),a()(),r(36,"a",8),g("click",function(){h(e);let i=s(2);return C(i.onAddToCalendar(5,i.meetingInfo))}),x(37,"mat-icon",12),r(38,"span"),c(39,"Yahoo (online)"),a()()(),m(40,Oo,6,2,"div",13),a()}if(n&2){let e=Re(18),t=s().$implicit,i=s();o(),I(" ",t("scheduledMeeting",J(23,Kt,i.user.firstName))," "),o(2),v(D(4,14,i.meetingInfo.meetingDateStartTime,"MMM d")),o(2),I(" ",t("at")," "),o(2),ae("",D(8,17,i.meetingInfo.meetingDateStartTime,"HH:mm"),"-",D(9,20,i.meetingInfo.meetingDateEndTime,"HH:mm"),"."),o(3),I(" ",t("cancelMeeting")," "),o(),A("disabled",i.isLoading),o(),v(t("click")),o(2),_("matMenuTriggerFor",e),o(2),I(" ",t("toCalendar")),o(),wt("addToCalendar"),o(23),u(i.isJoinVisible(i.meetingInfo)?40:-1)}}function Ao(n,d){if(n&1){let e=S();r(0,"div",2),c(1),r(2,"strong"),c(3),b(4,"date"),a(),c(5),r(6,"strong"),c(7),b(8,"date"),b(9,"date"),a(),c(10),r(11,"a",4),g("click",function(){h(e);let i=s(2);return C(i.onCancelMeeting(!1))}),c(12),a()()}if(n&2){let e=s().$implicit,t=s();o(),I(" ",e("scheduledMeeting",J(16,Kt,t.user.firstName))," "),o(2),v(D(4,7,t.meetingInfo.meetingDateStartTime,"MMM d")),o(2),I(" ",e("at")," "),o(2),ae("",D(8,10,t.meetingInfo.meetingDateStartTime,"HH:mm"),"-",D(9,13,t.meetingInfo.meetingDateEndTime,"HH:mm"),"."),o(3),I(" ",e("cancelRequest")," "),o(2),v(e("click"))}}function Vo(n,d){if(n&1){let e=S();r(0,"div",3),c(1),r(2,"strong"),c(3),b(4,"date"),a(),c(5),r(6,"strong"),c(7),b(8,"date"),b(9,"date"),a(),c(10),r(11,"a",4),g("click",function(){h(e);let i=s(2);return C(i.onCancelMeeting(!1))}),c(12),a(),c(13),r(14,"a",4),g("click",function(){h(e);let i=s(2);return C(i.onCancelMeeting(!0))}),c(15),a(),c(16),a(),r(17,"div",17)(18,"button",18),g("click",function(){h(e);let i=s(2);return C(i.onApproveMeeting())}),c(19),a(),r(20,"button",19),g("click",function(){h(e);let i=s(2);return C(i.onRescheduleMeeting())}),c(21),a()()}if(n&2){let e=s().$implicit,t=s();o(),I(" ",e("sentMeetingRequest",J(25,Kt,t.user.firstName))," "),o(2),v(D(4,16,t.meetingInfo.meetingDateStartTime,"MMM d")),o(2),I(" ",e("at")," "),o(2),ae("",D(8,19,t.meetingInfo.meetingDateStartTime,"HH:mm"),"-",D(9,22,t.meetingInfo.meetingDateEndTime,"HH:mm"),"."),o(3),I(" ",e("canAlso")," "),o(),A("disabled",t.isLoading),o(),v(e("ignoreThis")),o(),I(" ",e("or")," "),o(2),v(e("ignoreAll")),o(),I(" ",e("fromThisPerson")," "),o(2),_("disabled",t.isLoading),o(),v(e("approve")),o(),_("disabled",t.isLoading),o(),v(e("reschedule"))}}function Fo(n,d){if(n&1&&(Z(0),m(1,Do,41,25),m(2,Ao,13,18,"div",2),m(3,Vo,22,27),X()),n&2){let e=s();o(),u(e.meetingInfo.isApproved?1:-1),o(),u(!e.meetingInfo.isApproved&&e.meetingInfo.createdBy===e.loggedUserId?2:-1),o(),u(!e.meetingInfo.isApproved&&e.meetingInfo.createdBy!==e.loggedUserId?3:-1)}}var bn=(()=>{class n{constructor(e,t,i,l,f,w,y,M){this.matchingSrv=e,this.translocoService=t,this.dialog=i,this.breakpointObserver=l,this.notSrv=f,this.utiliSrv=w,this.router=y,this.eventSrv=M,this.cancelMeeting=new V,this.approveMeeting=new V,this.addToCalendar=new V,this.rescheduleMeeting=new V,this.subscriptions=new N}ngOnInit(){this.subscriptions.add(this.breakpointObserver.observe(["(max-width: 1024px)"]).pipe(_t(e=>e.matches),gt()).subscribe(e=>{this.isHandset=e})),this.subscriptions.add(this.breakpointObserver.observe(["(max-width: 768px)"]).pipe(_t(e=>e.matches),gt()).subscribe(e=>{this.isHandsetSmall=e}))}onCancelMeeting(e){this.cancelMeeting.emit({meeting:this.meetingInfo,blockUser:e})}onApproveMeeting(){let e,t;this.matchingSrv.checkMeetingsSessionsInSlot(this.meetingInfo.meetingID,this.user.username).pipe(U(i=>{if(i.informalsCount||i.sessionsCount){let l=i.informalsCount?`${i.informalsCount>1?this.translocoService.translate("profile.schedule.pendingRequests",{value:i.informalsCount}):this.translocoService.translate("profile.schedule.pendingRequest")}.<br>`:"",f=i.sessionsCount?`${i.sessionsCount>1?this.translocoService.translate("profile.schedule.enrolledSessions",{value:i.sessionsCount}):this.translocoService.translate("profile.schedule.enrolledSession")}<br>`:"";e=`${l}${f} ${this.translocoService.translate("profile.schedule.cancelAllRequests")}`}else e=this.translocoService.translate("myEvent.sureApproveMeeting");return t=this.dialog.open(mt,{maxWidth:"90%",maxHeight:"90vh",data:{title:this.translocoService.translate("myEvent.approveMeeting"),subtitle:`<p>${e}</p>`},disableClose:!0,closeOnNavigation:!0,panelClass:["custom-modalbox"]}),t.afterClosed()})).subscribe(i=>i?this.approveMeeting.emit(this.meetingInfo):null)}
1onRescheduleMeeting(){this.rescheduleMeeting.emit(this.meetingInfo)}onAddToCalendar(e,t){this.addToCalendar.emit({cEnum:e,info:t})}isJoinEnabled(e){if(e.isApproved){let t=(0,ut.default)(),i=(0,ut.default)(e.meetingStartUTC+"Z"),l=(0,ut.default)(e.meetingEndUTC+"Z"),f=t.diff(i,"seconds"),w=l.diff(t,"seconds");if(f>=-300&&w>=0)return!0}return!1}isJoinVisible(e){let t=(0,ut.default)(),l=(0,ut.default)(e.meetingEndUTC+"Z").diff(t,"seconds");if(e.isApproved&&l>=0)return!0}navigateToSession(e){this.isHandsetSmall?this.notSrv.openPopup(this.translocoService.translate("default.useDesktop")):this.router.navigate(["event",this.eventSrv.getCurrentEventId(),"session",e])}static{this.\u0275fac=function(t){return new(t||n)(p(Dt),p(B),p(Q),p(It),p(Di),p(ue),p(q),p(W))}}static{this.\u0275cmp=O({type:n,selectors:[["app-meeting-info"]],inputs:{meetingInfo:"meetingInfo",user:"user",loggedUserId:"loggedUserId",isLoading:"isLoading"},outputs:{cancelMeeting:"cancelMeeting",approveMeeting:"approveMeeting",addToCalendar:"addToCalendar",rescheduleMeeting:"rescheduleMeeting"},decls:1,vars:1,consts:[["calendarMenu","matMenu"],[4,"transloco","translocoPrefix"],[1,"meeting-message"],[1,"meeting-message","mb-2"],["type","button",1,"primary-color",3,"click"],[1,"d-flex","justify-content-center","flex-wrap"],["mat-raised-button","","color","accent",1,"w100","white","mb-2","reset-color",3,"matMenuTriggerFor"],["svgIcon","calendar",1,"icn-calendar","white"],["mat-menu-item","",1,"link-decor",3,"click"],[1,"primary-color"],["svgIcon","google_calendar"],["svgIcon","outlook"],["svgIcon","yahoo"],[1,"action-item","w100"],["mat-raised-button","","color","primary",1,"join-btn","w100",3,"click","disabled"],[1,"reset-color"],[1,"ml-1"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","primary",1,"mr-2",3,"click","disabled"],["mat-stroked-button","","color","primary",1,"",3,"click","disabled"]],template:function(t,i){t&1&&H(0,Fo,4,3,"ng-container",1),t&2&&_("translocoPrefix","profile.schedule")},dependencies:[ee,te,ze,L,dt,ct,Be],styles:[".meeting-message[_ngcontent-%COMP%]{font-size:12px}.icn-calendar[_ngcontent-%COMP%]{height:34px;margin-bottom:2px;margin-right:.2rem}"]})}}return n})();var Sn=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.cancelMeeting=new V,this.approveMeeting=new V,this.addToCalendar=new V,this.rescheduleMeeting=new V}ngOnInit(){}onCancelMeeting(e){this.cancelMeeting.emit(e)}onApproveMeeting(e){this.approveMeeting.emit(e)}
1onRescheduleMeeting(e){this.rescheduleMeeting.emit(e)}onAddToCalendar(e){this.addToCalendar.emit(e)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(p(pe),p(me))}}static{this.\u0275cmp=O({type:n,selectors:[["app-meeting-info-dialog"]],outputs:{cancelMeeting:"cancelMeeting",approveMeeting:"approveMeeting",addToCalendar:"addToCalendar",rescheduleMeeting:"rescheduleMeeting"},decls:9,vars:9,consts:[[1,"text-center","mb-0"],["type","button","mat-icon-button","","tabindex","-1",1,"close",3,"click"],["svgIcon","closeW",1,"icon-stroke","close-svg"],[3,"cancelMeeting","approveMeeting","addToCalendar","rescheduleMeeting","isLoading","user","loggedUserId","meetingInfo"]],template:function(t,i){t&1&&(r(0,"header")(1,"h1",0),c(2),b(3,"transloco"),a(),r(4,"button",1),g("click",function(){return i.onClose()}),x(5,"mat-icon",2),a()(),r(6,"main")(7,"app-meeting-info",3),b(8,"async"),g("cancelMeeting",function(f){return i.onCancelMeeting(f)})("approveMeeting",function(f){return i.onApproveMeeting(f)})("addToCalendar",function(f){return i.onAddToCalendar(f)})("rescheduleMeeting",function(f){return i.onRescheduleMeeting(f)}),a()()),t&2&&(o(2),v(P(3,5,"profile.meetingInfo")),o(5),_("isLoading",i.data.isActionClicked)("user",i.data.user)("loggedUserId",i.data.loggedUserId)("meetingInfo",P(8,7,i.data.meetingInfo)))},dependencies:[le,L,bn,z,se],styles:["header[_ngcontent-%COMP%]{position:relative;padding:1rem;border-bottom:1px solid #ccc}.close[_ngcontent-%COMP%]{position:absolute;right:10px;top:10px}main[_ngcontent-%COMP%]{padding:1rem}footer[_ngcontent-%COMP%]{display:flex;padding:.5rem}"]})}}return n})();var ft=jt(_i());function Lo(n,d){if(n&1&&(r(0,"h1",1),c(1),a()),n&2){let e=s().$implicit;o(),v(e("more"))}}function Bo(n,d){if(n&1){let e=S();r(0,"div",5),g("click",function(){h(e);let i=s(2);return C(i.back())}),x(1,"mat-icon",6),r(2,"h1",7),c(3),a()()}if(n&2){let e=s().$implicit;o(3),v(e("following"))}}function Ho(n,d){if(n&1){let e=S();r(0,"div",5),g("click",function(){h(e);let i=s(2);return C(i.back())}),x(1,"mat-icon",6),r(2,"h1",7),c(3),a()()}if(n&2){let e=s().$implicit;o(3),v(e("connections"))}}function $o(n,d){if(n&1&&(r(0,"div",2)(1,"h1",7),c(2),a()()),n&2){let e=s().$implicit;o(2),v(e("followers"))}}function jo(n,d){if(n&1&&(r(0,"div",15),x(1,"img",16),a()),n&2){let e=d.$implicit;o(),_("src",e.userPhoto||"../../assets/images/no-user-photo.png",Y)}}function Ro(n,d){if(n&1){let e=S();r(0,"div",12),g("click",function(){h(e);let i=s(3);return C(i.viewAllFollowing())}),r(1,"p",13),c(2),a(),r(3,"div",14),j(4,jo,2,1,"div",15,$),a()()}if(n&2){let e=s(2).$implicit,t=s();o(2),v(e("following")),o(2),R(t.firstThreeUsersFollowing)}}function zo(n,d){if(n&1&&(r(0,"div",15),x(1,"img",16),a()),n&2){let e=d.$implicit;o(),_("src",e.userPhoto||"../../assets/images/no-user-photo.png",Y)}}function qo(n,d){if(n&1){let e=S();r(0,"div",17),g("click",function(){h(e);let i=s(3);return C(i.viewAllConnections())}),r(1,"p",13),c(2),a(),r(3,"div",14),j(4,zo,2,1,"div",15,$),a()()}if(n&2){let e=s(2).$implicit,t=s();o(2),v(e("connections")),o(2),R(t.firstThreeUsersConnections)}}function Wo(n,d){if(n&1&&(r(0,"div",11)(1,"p",13),c(2),a(),x(3,"p",18),b(4,"sanitize"),a()),n&2){let e=s(2).$implicit,t=s();o(2),v(e("about")),o(),_("innerHTML",D(4,2,t.data.about,"html"),ei)}}function Go(n,d){if(n&1&&(r(0,"div")(1,"div",8),m(2,Ro,6,1,"div",9),m(3,qo,6,1,"div",10),a(),m(4,Wo,5,5,"div",11),a()),n&2){let e=s(2);o(2),u((e.following==null?null:e.following.length)>0?2:-1),o(),u((e.connections==null?null:e.connections.length)>0?3:-1),o(),u(e.data.about?4:-1)}}function Ko(n,d){if(n&1&&(r(0,"span",25),x(1,"mat-icon",26),a()),n&2){let e=s(3).$implicit;_("matTooltip",e("autoTranslate"))}}function Qo(n,d){if(n&1){let e=S();r(0,"div",22),g("click",function(){let i=h(e).$implicit,l=s(3);return C(l.toUser(i))}),x(1,"img",23),r(2,"span",24),c(3),a(),m(4,Ko,2,1,"span",25),a()}if(n&2){let e=d.$implicit;o(),_("src",e.userPhoto||"../../assets/images/no-user-photo.png",Y),o(2),ae("",e.firstName," ",e.lastName),o(),u(e.isAutoTranslate?4:-1)}}function Yo(n,d){if(n&1){let e=S();r(0,"div",21)(1,"a",27),g("click",function(){h(e);let i=s(3);return C(i.loadMore(4))}),c(2),a()()}if(n&2){let e=s(2).$implicit;o(2),v(e("loadMore"))}}function Zo(n,d){if(n&1&&(r(0,"div")(1,"div",19),j(2,Qo,5,4,"div",20,$),b(4,"async"),a(),m(5,Yo,3,1,"div",21),a()),n&2){let e=s(2);o(2),R(P(4,1,e.followingList$)),o(3),u(e.hasMoreFollowing?5:-1)}}function Xo(n,d){if(n&1&&(r(0,"span",25),x(1,"mat-icon",26),a()),n&2){let e=s(3).$implicit;_("matTooltip",e("autoTranslate"))}}function Jo(n,d){if(n&1){let e=S();r(0,"div",22),g("click",function(){let i=h(e).$implicit,l=s(3);return C(l.toUser(i))}),x(1,"img",23),r(2,"span",24),c(3),a(),m(4,Xo,2,1,"span",25),a()}if(n&2){let e=d.$implicit;o(),_("src",e.userPhoto||"../../assets/images/no-user-photo.png",Y),o(2),ae("",e.firstName," ",e.lastName),o(),u(e.isAutoTranslate?4:-1)}}function er(n,d){if(n&1){let e=S();r(0,"div",21)(1,"a",27),g("click",function(){h(e);let i=s(3);return C(i.loadMore(3))}),c(2),a()()}if(n&2){let e=s(2).$implicit;o(2),v(e("loadMore"))}}function tr(n,d){if(n&1&&(r(0,"div")(1,"div",19),j(2,Jo,5,4,"div",20,$),b(4,"async"),a(),m(5,er,3,1,"div",21),a()),n&2){let e=s(2);o(2),R(P(4,1,e.conectionsList$)),o(3),u(e.hasMoreConnections?5:-1)}}function ir(n,d){if(n&1&&(r(0,"span",25),x(1,"mat-icon",26),a()),n&2){let e=s(3).$implicit;_("matTooltip",e("autoTranslate"))}}function nr(n,d){if(n&1){let e=S();r(0,"div",22),g("click",function(){let i=h(e).$implicit,l=s(3);return C(l.toUser(i))}),x(1,"img",23),r(2,"span",24),c(3),a(),m(4,ir,2,1,"span",25),a()}if(n&2){let e=d.$implicit;o(),_("src",e.userPhoto||"../../assets/images/no-user-photo.png",Y),o(2),ae("",e.firstName," ",e.lastName),o(),u(e.isAutoTranslate?4:-1)}}function or(n,d){if(n&1){let e=S();r(0,"div",21)(1,"a",27),g("click",function(){h(e);let i=s(3);return C(i.loadMore(5))}),c(2),a()()}if(n&2){let e=s(2).$implicit;o(2),v(e("loadMore"))}}function rr(n,d){if(n&1&&(r(0,"div")(1,"div",19),j(2,nr,5,4,"div",20,$),b(4,"async"),a(),m(5,or,3,1,"div",21),a()),n&2){let e=s(2);o(2),R(P(4,1,e.followersList$)),o(3),u(e.hasMoreFollowers?5:-1)}}function ar(n,d){if(n&1){let e=S();Z(0),r(1,"header"),m(2,Lo,2,1,"h1",1),m(3,Bo,4,1,"div",2),m(4,Ho,4,1,"div",2),m(5,$o,3,1,"div",2),r(6,"button",3),g("click",function(){h(e);let i=s();return C(i.onClose())}),x(7,"mat-icon",4),a()(),r(8,"main"),m(9,Go,5,3,"div"),m(10,Zo,6,3,"div"),m(11,tr,6,3,"div"),m(12,rr,6,3,"div"),a(),X()}if(n&2){let e=s();o(2),u(!e.viewFollowing&&!e.viewConnections&&!e.viewFollowers?2:-1),o(),u(e.viewFollowing?3:-1),o(),u(e.viewConnections?4:-1),o(),u(e.viewFollowers?5:-1),o(3),A("huawei-browser-max-height",e.isHuawei),o(),u(!e.viewFollowing&&!e.viewConnections&&!e.viewFollowers?9:-1),o(),u(e.viewFollowing?10:-1),o(),u(e.viewConnections?11:-1),o(),u(e.viewFollowers?12:-1)}}var Ht=(()=>{class n{constructor(e,t,i,l,f,w,y){this.dialogRef=e,this.authSrv=t,this.userProfileSrv=i,this.data=l,this.dialog=f,this.contactProfilePanelSrv=w,this.utilSrv=y,this.subscription=new N,this.hasMoreConnections=!0,this.hasMoreFollowing=!0,this.hasMoreFollowers=!0,this.pageNumber=1,this.pageSize=8,this.selectedTag=1,this.hasPeople=!1,this.viewConnections=!1,this.viewFollowing=!1,this.viewFollowers=!1,this.isHuawei=!1}ngOnInit(){this.isHuawei=this.utilSrv.isHuaweiBrowser(),this.eventId=this.data.eventId,this.conectionsList$=this.userProfileSrv.conectionsList$,this.followingList$=this.userProfileSrv.followingList$,this.followersList$=this.userProfileSrv.followersList$,this.viewFollowers=this.data.fromWidget,this.viewFollowers?this.getPeople(5):(this.getPeople(3),this.getPeople(4))}get firstThreeUsersFollowing(){return this.following?.slice(0,3)||[]}get firstThreeUsersConnections(){return this.connections?.slice(0,3)||[]}getPeople(e){this.subscription.add(this.userProfileSrv.getPeople(e,this.pageNumber,this.pageSize,this.eventId).subscribe(t=>{this.loading=!1,t?e===3?(this.pageNumber===1&&(this.connections=t.users),this.hasMoreConnections=t.hasNext):e===4?(this.pageNumber===1&&(this.following=t.users),this.hasMoreFollowing=t.hasNext):e===5&&(this.pageNumber===1&&(this.followers=t.users),this.hasMoreFollowers=t.hasNext):(this.hasMoreConnections=!1,this.hasMoreFollowing=!1,this.hasMoreFollowers=!1)}))}viewAllConnections(){this.viewConnections=!0}viewAllFollowing(){this.viewFollowing=!0}back(){this.viewConnections=!1,this.viewFollowing=!1,this.pageNumber=1}loadMore(e){this.pageNumber++,this.getPeople(e)}toUser(e){this.dialogRef.close(),this.contactProfilePanelSrv.openProfile(e.username)}onClose(){this.dialogRef.close()}
1static{this.\u0275fac=function(t){return new(t||n)(p(pe),p(K),p(ie),p(me),p(Q),p(Ot),p(ue))}}static{this.\u0275cmp=O({type:n,selectors:[["app-about-popup"]],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[1,"mb-0","mr-4","mb-3","text-break"],[1,"d-flex","cursor-pointer","align-items-center"],["type","button","mat-icon-button","","tabindex","-1",1,"close",3,"click"],["svgIcon","closeW",1,"icon-stroke","close-svg"],[1,"d-flex","cursor-pointer","align-items-center",3,"click"],["svgIcon","chevron_left"],[1,"mb-0","mr-4","text-break"],[1,"d-flex","flex-wrap","align-items-center","mb-3"],[1,"mr-5","cursor-pointer"],[1,"cursor-pointer"],[1,"mt-3"],[1,"mr-5","cursor-pointer",3,"click"],[1,"font-bold","mb-1"],[1,"user-photo-group"],[1,"user-photo"],["alt","",3,"src"],[1,"cursor-pointer",3,"click"],[1,"profile-desc",3,"innerHTML"],[1,"d-flex","flex-wrap","users-holder"],[1,"d-flex","flex-direction-column","mb-4","cursor-pointer","users"],[1,"loadMore","primary-color"],[1,"d-flex","flex-direction-column","mb-4","cursor-pointer","users",3,"click"],["alt","",1,"user-image",3,"src"],[1,"user-name"],[1,"autoSticker",3,"matTooltip"],["svgIcon","translate"],[3,"click"]],template:function(t,i){t&1&&H(0,ar,13,10,"ng-container",0),t&2&&_("translocoPrefix","profile")},dependencies:[ee,L,le,_e,z,Ai],styles:["footer[_ngcontent-%COMP%]{display:flex;padding:.5rem;justify-content:flex-start;flex-wrap:wrap}.close[_ngcontent-%COMP%]{position:absolute;right:-75px;top:-45px;opacity:unset!important}.close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#fff;display:inline-flex}main[_ngcontent-%COMP%]{overflow:hidden;overflow-y:auto;max-height:80dvh;margin-top:10px}.user-photo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:45px;height:45px;border-radius:50%;overflow:hidden;margin-left:-15px;background-color:#fff;border:2px solid #fff}.user-photo-group[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-of-type(n){z-index:3}.user-photo-group[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-of-type(2n){z-index:2}.user-photo-group[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-of-type(3n){z-index:1}.user-photo-group[_ngcontent-%COMP%]{display:flex;margin-left:20px}.user-image[_ngcontent-%COMP%]{width:75px;height:75px;border-radius:50%}.user-name[_ngcontent-%COMP%]{width:75px;text-align:center;color:#637c8e}.flex-direction-column[_ngcontent-%COMP%]{flex-direction:column}.loadMore[_ngcontent-%COMP%]{display:flex;justify-content:center;cursor:pointer}.autoSticker[_ngcontent-%COMP%]{background-color:#637c8e;border-radius:50%;color:#fff;position:absolute;right:18px}.autoSticker[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;margin:2px 4px 0;line-height:1}.users[_ngcontent-%COMP%]{position:relative}@media screen and (min-width:481px){.users[_ngcontent-%COMP%]{flex:0 0 25%;max-width:25%}}@media screen and (max-width:480px){.users-holder[_ngcontent-%COMP%]{justify-content:space-between}.users[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}}"]})}}return n})();var lr=n=>({value:n}),cr=n=>({"toCompany accent-color":n}),Pn=n=>({"primary-color":n});function dr(n,d){n&1&&x(0,"div",3)}function pr(n,d){if(n&1&&(r(0,"span",29),c(1),a()),n&2){let e=s(2).$implicit;o(),v(e("change"))}}function mr(n,d){if(n&1){let e=S();r(0,"button",27),g("click",function(){h(e);let i=s(2);return C(i.onClickEditCoverPic())}),r(1,"div",28),m(2,pr,2,1,"span",29),x(3,"mat-icon",30),a()()}if(n&2){let e=s(2);A("showBtn",e.showCoverEditBtn),o(2),u(e.isHandset?-1:2)}}function ur(n,d){if(n&1&&(r(0,"span",9),x(1,"mat-icon",31),r(2,"span",32),c(3),a()()),n&2){let e=s().$implicit,t=s();_("matTooltip",t.hasEditPerm||t.isModerator(t.user.profileId)?e("optionToEdit"):e("autoTranslate")),o(3),v(e("auto"))}}function fr(n,d){n&1&&(r(0,"span",12),c(1,"fiber_manual_record"),a())}function _r(n,d){if(n&1&&(r(0,"span",29),c(1),a()),n&2){let e=s(2).$implicit;o(),v(e("change"))}}function gr(n,d){if(n&1){let e=S();r(0,"button",33),g("click",function(){h(e);let i=s(2);return C(i.onClickEditProfilePic())}),r(1,"div",28),m(2,_r,2,1,"span",29),x(3,"mat-icon",30),a()()}if(n&2){let e=s(2);A("showBtn",e.showEditBtn),o(2),u(e.isHandset?-1:2)}}function hr(n,d){if(n&1&&(r(0,"span",20),c(1),a()),n&2){let e=s().$implicit,t=s();o(),I(" ",e(t.user.lastSeenOnlineMessage,J(1,lr,t.user.timeOfConnectionDiff==null?null:t.user.timeOfConnectionDiff.difference))," ")}}function Cr(n,d){if(n&1&&(r(0,"span",21),x(1,"mat-icon",31),r(2,"span",32),c(3),a()()),n&2){let e=s().$implicit,t=s();_("matTooltip",t.hasEditPerm||t.isModerator(t.user.profileId)?e("optionToEdit"):e("autoTranslate")),o(3),v(e("auto"))}}function vr(n,d){if(n&1&&(r(0,"span"),c(1),a()),n&2){let e=s(2).$implicit;o(),I(" ",e("companyProfile.invite.at")," ")}}function xr(n,d){if(n&1){let e=S();r(0,"span",23),c(1),m(2,vr,2,1,"span"),r(3,"span",34),g("click",function(){h(e);let i=s(2);return C(i.navigateToCompanyProfile(i.user.companyUsername))}),c(4),a()()}if(n&2){let e=s(2);o(),I("",e.userTranslation.jobTitle," "),o(),u(e.userTranslation.jobTitle&&e.user.companyName?2:-1),o(),_("ngClass",J(4,cr,e.user.companyUsername&&e.areCompaniesAndProductsEnabled&&e.eventId)),o(),v(e.user.companyName)}}function br(n,d){if(n&1){let e=S();r(0,"div")(1,"p",35),g("click",function(){h(e);let i=s(2);return C(i.openAbout())}),c(2),a()()}if(n&2){let e=s().$implicit,t=s();o(),_("ngClass",t.isHandsetSmall?"accent-color":"primary-color"),o(),v(e("more"))}}function Sr(n,d){if(n&1){let e=S();r(0,"button",46),g("debounceClick",function(){h(e);let i=s(4);return C(i.onRespondConnect(1))}),c(1),a(),r(2,"button",47),g("click",function(){h(e);let i=s(4);return C(i.onRespondConnect(2))}),c(3),a()}if(n&2){let e=s(3).$implicit;o(),I(" ",e("buttons.accept")," "),o(2),I(" ",e("buttons.decline")," ")}}function Pr(n,d){if(n&1){let e=S();r(0,"button",48),g("click",function(){h(e);let i=s(4);return C(i.onConnect())}),c(1),a()}if(n&2){let e=s(3).$implicit;o(),I(" ",e("buttons.cancelRequest")," ")}}function wr(n,d){if(n&1){let e=S();r(0,"button",49),g("debounceClick",function(){h(e);let i=s(4);return C(i.onConnect())}),c(1),a()}if(n&2){let e=s(3).$implicit;o(),I(" ",e("buttons.connect")," ")}}function Ir(n,d){if(n&1){let e=S();r(0,"button",51),g("click",function(){h(e);let i=s(5);return C(i.onFollow())}),r(1,"mat-icon",52),c(2),a(),c(3),a()}if(n&2){let e=s(4).$implicit,t=s();o(2),I(" ",t.user.isFollowed?"done":"add"," "),o(),I(" ",t.user.isFollowed?e("buttons.followingButton"):e("buttons.followButton")," ")}}function yr(n,d){if(n&1&&m(0,Ir,4,2,"button",50),n&2){let e=s(4);u(!e.user.canMessageMe&&!e.user.deletionRequested?0:-1)}}function Mr(n,d){if(n&1&&m(0,Sr,4,2)(1,Pr,2,1,"button",44)(2,wr,2,1,"button",45)(3,yr,1,1),n&2){let e,t=s(3);u((e=t.user.connectStatus)===t.connectionStatus.RequestedByOther?0:e===t.connectionStatus.RequestedByMe?1:e===t.connectionStatus.NotConnected?2:3)}}function Er(n,d){if(n&1){let e=S();r(0,"button",53),g("click",function(){h(e);let i=s(3);return C(i.onFollow())}),c(1),a()}if(n&2){let e=s(2).$implicit;o(),I(" ",e("buttons.followingButton"))}}function Tr(n,d){if(n&1){let e=S();r(0,"button",54),g("click",function(){h(e);let i=s(3);return C(i.onFollow())}),c(1),a()}if(n&2){let e=s(2).$implicit;o(),I(" ",e("buttons.followButton"))}}function kr(n,d){if(n&1){let e=S();
1r(0,"button",55),g("click",function(){h(e);let i=s(3);return C(i.linkToMessage())}),x(1,"mat-icon",56),a()}}function Ur(n,d){if(n&1){let e=S();r(0,"button",57),g("click",function(){h(e);let i=s(3);return C(i.onConnect())}),r(1,"mat-icon",58),c(2,"person_remove"),a(),c(3),a()}if(n&2){let e=s(2).$implicit;o(3),v(e("buttons.removeConnection"))}}function Or(n,d){if(n&1){let e=S();r(0,"button",60),g("click",function(){h(e);let i=s(4);return C(i.onFollow())}),r(1,"mat-icon",61),c(2),a(),c(3),a()}if(n&2){let e=s(3).$implicit,t=s();_("ngClass",J(4,Pn,t.user.isFollowed)),o(),_("ngClass",J(6,Pn,t.user.isFollowed)),o(),v(t.user.isFollowed?"done":"add"),o(),I(" ",t.user.isFollowed?e("buttons.followingButton"):e("buttons.followButton"))}}function Dr(n,d){if(n&1&&m(0,Or,4,8,"button",59),n&2){let e=s(3);u(!e.user.deletionRequested&&(e.user.canMessageMe||e.connectionStatus.RequestedByMe===e.user.connectStatus||e.connectionStatus.RequestedByOther===e.user.connectStatus||e.connectionStatus.NotConnected===e.user.connectStatus)?0:-1)}}function Ar(n,d){if(n&1){let e=S();r(0,"button",62),g("click",function(){h(e);let i=s(3);return C(i.reportUser())}),x(1,"mat-icon",63),c(2),b(3,"transloco"),a()}n&2&&(o(2),I(" ",P(3,1,"profile.report.report")," "))}function Vr(n,d){if(n&1&&(r(0,"div",24),m(1,Mr,4,1),m(2,Er,2,1,"button",36),m(3,Tr,2,1,"button",37),m(4,kr,2,0,"button",38),r(5,"button",39),x(6,"mat-icon",40),a(),r(7,"mat-menu",41,0),m(9,Ur,4,1,"button",42),m(10,Dr,1,1),m(11,Ar,4,3,"button",43),a()()),n&2){let e=Re(8),t=s(2);o(),u(t.user.deletionRequested?-1:1),o(),u(t.user.isFollowed&&t.user.connectStatus==t.connectStatusEnum.Connected?2:-1),o(),u(!t.user.isFollowed&&t.user.connectStatus==t.connectStatusEnum.Connected&&!t.user.deletionRequested&&t.user.canMessageMe?3:-1),o(),u(t.user.connectStatus===t.connectionStatus.Connected&&t.user.canMessageMe?4:-1),o(),_("matMenuTriggerFor",e),o(4),u(!t.user.deletionRequested&&t.user.connectStatus===t.connectionStatus.Connected?9:-1),o(),u(t.user.connectStatus!=t.connectStatusEnum.Connected?10:-1),o(),u(t.user.isReported?-1:11)}}function Fr(n,d){if(n&1){let e=S();r(0,"button",66),g("click",function(){h(e);let i=s(3);return C(i.onCall(i.user,!1))}),x(1,"mat-icon",67),a(),r(2,"button",66),g("click",function(){h(e);let i=s(3);return C(i.onCall(i.user,!0))}),x(3,"mat-icon",68),a()}}function Nr(n,d){if(n&1){let e=S();r(0,"button",70),g("debounceClick",function(){h(e);let i=s(4);return C(i.onRespondConnect(1))}),c(1),a(),r(2,"button",71),g("debounceClick",function(){h(e);let i=s(4);return C(i.onRespondConnect(2))}),c(3),a()}if(n&2){let e=s(3).$implicit,t=s();_("matTooltip",e("buttons.notes")+t.user.note),o(),I(" ",e("buttons.accept")," "),o(),_("matTooltip",e("buttons.notes")+t.user.note),o(),I(" ",e("buttons.decline")," ")}}function Lr(n,d){if(n&1){let e=S();r(0,"button",72),g("debounceClick",function(){h(e);let i=s(4);return C(i.onConnect())}),r(1,"mat-icon",58),c(2,"person_add"),a(),c(3),a()}if(n&2){let e=s(3).$implicit,t=s();_("disabled",t.disable),o(3),I(" ",e("buttons.connect")," ")}}function Br(n,d){if(n&1&&m(0,Nr,4,4)(1,Lr,4,2,"button",69),n&2){let e,t=s(3);u((e=t.user.connectStatus)===t.connectionStatus.RequestedByOther?0:e===t.connectionStatus.NotConnected?1:-1)}}function Hr(n,d){if(n&1){let e=S();r(0,"button",73),g("click",function(){h(e);let i=s(3);return C(i.onFollow())}),c(1),a()}if(n&2){let e=s(2).$implicit,t=s();o(),v(t.user.isFollowed?e("buttons.followingButton"):e("buttons.followButton"))}}function $r(n,d){if(n&1){let e=S();r(0,"button",74),g("click",function(){h(e);let i=s(3);return C(i.linkToMessage())}),x(1,"mat-icon",56),a()}}function jr(n,d){if(n&1){let e=S();r(0,"button",62),g("click",function(){h(e);let i=s(4);return C(i.reportUser())}),x(1,"mat-icon",77),c(2),b(3,"transloco"),a()}n&2&&(o(2),I(" ",P(3,1,"profile.report.report")," "))}function Rr(n,d){if(n&1){let e=S();r(0,"button",80),g("debounceClick",function(){h(e);let i=s(6);return C(i.onConnect())}),x(1,"mat-icon",81),c(2),a()}if(n&2){let e=s(5).$implicit;o(2),I(" ",e("buttons.cancelRequest")," ")}}function zr(n,d){if(n&1){let e=S();r(0,"button",82),g("click",function(){h(e);let i=s(6);return C(i.onConnect())}),r(1,"mat-icon",83),c(2,"person_remove"),a(),c(3),a()}if(n&2){let e=s(5).$implicit;o(3),I(" ",e("buttons.removeConnection")," ")}}function qr(n,d){if(n&1&&m(0,Rr,3,1,"button",78)(1,zr,4,1,"button",79),n&2){let e,t=s(5);u((e=t.user.connectStatus)===t.connectionStatus.RequestedByMe?0:e===t.connectionStatus.Connected?1:-1)}}function Wr(n,d){if(n&1&&m(0,qr,2,1),n&2){let e=s(4);u(e.user.deletionRequested?-1:0)}}function Gr(n,d){if(n&1&&(r(0,"button",75),x(1,"mat-icon",40),a(),r(2,"mat-menu",76,0),m(4,jr,4,3,"button",43),m(5,Wr,1,1
1),a()),n&2){let e=Re(3),t=s(3);_("matMenuTriggerFor",e),o(4),u(t.user.isReported?-1:4),o(),u(t.user.deletionRequested?-1:5)}}function Kr(n,d){if(n&1&&(r(0,"div",25),m(1,Fr,4,0),m(2,Br,2,1),m(3,Hr,2,1,"button",64),m(4,$r,2,0,"button",65),m(5,Gr,6,3),a()),n&2){let e=s(2);o(),u(e.user.canMessageMe&&e.user.connectStatus===e.connectionStatus.Connected&&e.user.isOnline&&!e.isHandset?1:-1),o(),u(!e.hasEditPerm&&!e.user.deletionRequested?2:-1),o(),u(!e.hasEditPerm&&!e.user.deletionRequested?3:-1),o(),u(e.user.canMessageMe&&e.user.connectStatus===e.connectionStatus.Connected?4:-1),o(),u(!e.hasEditPerm&&(!e.user.isReported||e.user.connectStatus===1||e.user.connectStatus===3)?5:-1)}}function Qr(n,d){if(n&1){let e=S();r(0,"div",26)(1,"button",84),g("click",function(){h(e);let i=s(2);return C(i.onClickEditProfile())}),r(2,"span"),c(3),a()()()}if(n&2){let e=s().$implicit;o(3),v(e("edit"))}}function Yr(n,d){if(n&1){let e=S();Z(0),r(1,"header",2),m(2,dr,1,0,"div",3),r(3,"div",4),g("mouseenter",function(){h(e);let i=s();return C(i.showEdit("cover",!0))})("mouseleave",function(){h(e);let i=s();return C(i.showEdit("cover",!1))}),x(4,"img",5),m(5,mr,4,3,"button",6),a(),r(6,"div",7)(7,"div",8),m(8,ur,4,2,"span",9),r(9,"div",10),g("mouseenter",function(){h(e);let i=s();return C(i.showEdit("logo",!0))})("mouseleave",function(){h(e);let i=s();return C(i.showEdit("logo",!1))}),r(10,"div",11),m(11,fr,2,0,"span",12),x(12,"img",13),a(),m(13,gr,4,3,"button",14),a(),r(14,"div",15)(15,"div",16)(16,"div",17)(17,"div",18)(18,"span",19),c(19),a(),m(20,hr,2,3,"span",20),m(21,Cr,4,2,"span",21),a(),r(22,"div",22),m(23,xr,5,6,"span",23),a(),m(24,br,3,2,"div"),a(),m(25,Vr,12,8,"div",24),a(),m(26,Kr,6,5,"div",25),m(27,Qr,4,1,"div",26),a()()()(),X()}if(n&2){let e=s();o(2),u(e.isHandset?2:-1),o(2),A("default-img",!e.user.coverPhoto),_("src",e.user.coverPhoto||"../../../assets/images/defaultProfileCover.png",Y)("alt",e.userTranslation.firstName+" "+e.userTranslation.lastName+"'s cover photo"),o(),u(e.hasEditPerm||e.isModerator(e.user.profileId)?5:-1),o(2),A("flex-wrap",e.isHandset),o(),u(e.userTranslation.isAutoTranslate&&e.isHandsetSmall?8:-1),o(3),u(e.user.isOnline?11:-1),o(),_("src",e.user.profilePhoto||"../../../assets/images/no-user-photo.png",Y),o(),u(e.hasEditPerm||e.isModerator(e.user.profileId)?13:-1),o(6),v(e.userTranslation.firstName+" "+e.userTranslation.lastName),o(),u(e.user.timeOfConnectionUtc!==null&&e.user.timeOfConnectionDiff!==null&&e.user.timeOfConnectionDiff!==void 0?20:-1),o(),u(e.userTranslation.isAutoTranslate&&!e.isHandsetSmall?21:-1),o(2),u(e.userTranslation.jobTitle||e.user.companyName?23:-1),o(),u(e.user.about||e.user.connections>0||e.user.following>0?24:-1),o(),u(e.isTablet&&!e.hasEditPerm?25:-1),o(),u(e.isTablet?-1:26),o(),u(e.hasEditPerm?27:-1)}}var wn=(()=>{class n{get connectStatusEnum(){return ht}constructor(e,t,i,l,f,w,y,M,T){this.dialog=e,this.translocoService=t,this.router=i,this.myEvSrv=l,this.authSrv=f,this.msgSrv=w,this.breakpointObserver=y,this.scroller=M,this.localeSrv=T,this.disable=!1,this.connectionStatus=ht,this.filteredNavTabs=[],this.sub=new N,this.showMoreAbout=!1,this.editProfile=new V,this.editProfilePic=new V,this.editCoverPic=new V,this.contactInfo=new V,this.connect=new V,this.respondConnect=new V,this.follow=new V,this.messageLink=new V,this.scheduleMeeting=new V,this.bookmark=new V,this.downloadLeads=new V,this.showPackage=new V}ngOnInit(){this.loggedUserId=this.authSrv.getLoggedUserId(),this.categories=this.user.categories,this.badge=Fi.find(e=>e.id===this.user.package?.sticker),this.participantTypeIcon=an.find(e=>e.id===this.user.participantImage),this.navTabs!=null&&(this.filteredNavTabs=this.navTabs.filter(e=>!e.selfViewOnly||this.user&&this.user.profileId===this.authSrv.loggedUser.getValue()?.id)),this.sub.add(this.myEvSrv.eventSettingsModel$.subscribe(e=>{e&&(this.areCompaniesAndProductsEnabled=e.enableCompaniesAndProducts)})),this.sub.add(this.breakpointObserver.observe(["(max-width: 768px)"]).pipe(_t(e=>e.matches),gt()).subscribe(e=>{this.isHandsetSmall=e}))}getTabRouteByName(e){let t=this.filteredNavTabs.find(i=>i.name==e);return t?.route==null?"":t.route}onDomChange(e){e.type!=="attributes"&&e.attributeName!=="class"||this.trigger.forEach(t=>t.closeMenu())}openAnalytics(e){if(e.hasAnalyticsAccess||this.hasEditPerm){let t={data:{eventId:this.eventId,id:e.profileId,title:this.translocoService.translate("profile.personDashboard"),type:$i.PersonProfileGraphs},closeOnNavigation:!0,disableClose:!0,width:"100%",height:"100%",maxHeight:"calc(100vh - 50px)",maxWidth:this.isHandset?"96vw":"calc(100% - 50px)",panelClass:"custom-modalbox"}}}navigateToCompanyProfile(e){this.eventId&&this.areCompaniesAndProductsEnabled===!0&&e&&this.router.navigate([`event/${this.eventId}/company/${e}`])}onDownloadLeads(e){this.hasProductInterest&&this.downloadLeads.emit(e)}openPackage(e){e.hasPackage&&this.showPackage.emit(e)}onClickEditProfile(){this.editProfile.emit(this.user)}openContactInfo(){this.contactInfo.emit(this.user)}onConnect(){this.disable=!0,setTimeout(()=>{this.disable=!1},1e3),this.connect.emit(this.user)}onRespondConnect(e){this.respondConnect.emit({user:this.user,status:e})}onFollow(){this.follow.emit(this.user)}
1onClickEditCoverPic(){this.editCoverPic.emit(this.user)}onClickEditProfilePic(){this.editProfilePic.emit(this.user)}linkToMessage(){this.messageLink.emit(this.user)}onscheduleMeeting(){this.isHandsetSmall?this.dialog.open(sn,{data:{url:this.router.url},closeOnNavigation:!0,disableClose:!0,width:"100%",maxHeight:"calc(100vh - 55px)",maxWidth:"350px",position:{top:"55px"},panelClass:["hint-popUp"]}).afterClosed().subscribe(t=>{}):this.scheduleMeeting.emit(this.user)}showEdit(e,t){switch(e){case"cover":{this.showCoverEditBtn=t;break}case"logo":{this.showEditBtn=t;break}default:break}}onBookmark(){this.bookmark.emit(this.user)}reportUser(){this.dialog.open(Li,{width:"550px",minWidth:"320px",panelClass:["custom-modalbox"],disableClose:!0,data:{userId:this.user.profileId}})}scrolltomessage(){this.scroller.scrollToAnchor("user_message"),document.querySelector(".ql-editor").focus()}linkHandler(e){return e.substring(0,4).toLowerCase()!="http"?`https://${e}`:e}isModerator(e){return e&&this.moderatorCompanyList?this.moderatorCompanyList.findIndex(t=>t.companyId===e)!==-1:!1}onCall(e,t){var i=t,l=[e.profileId,this.loggedUserId];this.msgSrv.createNewMessage("",l).subscribe(f=>{f&&(this.threadInfo=f,this.sub.add(this.msgSrv.call(this.threadInfo.conversation.conversationGroupId,t).subscribe(w=>{w.status&&(this.callInfo=w,this.callDialogRef=this.dialog.open(Vi,{data:{callInfo:null,isCaller:!0,chatId:this.threadInfo.conversation.conversationGroupId,callId:this.callInfo.callId,userName:e.fullName,userPhoto:e.profilePhoto,isGroup:!1},closeOnNavigation:!0,disableClose:!0,width:"100%",maxHeight:"calc(100vh - 55px)",maxWidth:"400px",panelClass:["custom-modalbox"]})),this.sub.add(this.callDialogRef.afterClosed().subscribe(y=>{y||this.msgSrv.setVideoCall({callAnswerd:!0,callID:this.callInfo.callId,chatID:this.threadInfo.conversation.conversationGroupId,isVideoCall:i})}))})))})}startConv(e,t){t&&t.stopPropagation(),this.msgSrv.createNewMessage("",[e.profileId,this.loggedUserId]).subscribe(i=>{i&&this.router.navigate(["/event",this.eventId,"messages","thread",i.conversation.conversationGroupId])})}onClickShowAbout(){this.showMoreAbout||(this.showMoreAbout=!0)}openAbout(){this.dialog.open(Ht,{width:"470px",minWidth:"320px",panelClass:["custom-modalbox"],data:{about:this.user.about,eventId:this.eventId}})}openQrDiqlog(){this.dialog.open(ln,{width:"400px",panelClass:["custom-modalbox"],data:{companyId:this.user.profileId}})}openScaningHistory(e){this.router.navigate(["/event",this.eventId,"company",e.username,"company-scans-history"])}ngOnDestroy(){this.sub.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(p(Q),p(B),p(q),p(Ie),p(K),p(Ut),p(It),p(pi),p(re))}}static{this.\u0275cmp=O({type:n,selectors:[["app-profile-header"]],viewQuery:function(t,i){if(t&1&&Fe(ze,5),t&2){let l;Ne(l=Le())&&(i.trigger=l)}},inputs:{user:"user",hasEditPerm:"hasEditPerm",navTabs:"navTabs",isHandset:"isHandset",isTablet:"isTablet",eventId:"eventId",hasProductInterest:"hasProductInterest",leadsCount:"leadsCount",moderatorCompanyList:"moderatorCompanyList",isOwner:"isOwner",userTranslation:"userTranslation"},outputs:{editProfile:"editProfile",editProfilePic:"editProfilePic",editCoverPic:"editCoverPic",contactInfo:"contactInfo",connect:"connect",respondConnect:"respondConnect",follow:"follow",messageLink:"messageLink",scheduleMeeting:"scheduleMeeting",bookmark:"bookmark",downloadLeads:"downloadLeads",showPackage:"showPackage"},decls:1,vars:1,consts:[["menu","matMenu"],[4,"transloco","translocoPrefix"],[1,"mb-3","profile-header"],[1,"sidebar-background-color","mask-header"],[1,"cover-wrapper",3,"mouseenter","mouseleave"],[3,"src","alt"],["mat-raised-button","",1,"coverEditBtn","btn-absolute",3,"showBtn"],[1,"info"],[1,"d-flex","align-items-start"],[1,"autoSticker","absolute",3,"matTooltip"],[1,"profile-pic-wrapper",3,"mouseenter","mouseleave"],[1,"profile-pic","user"],[1,"material-icons","green-dot"],["alt","",3,"src"],["mat-raised-button","",1,"editProfileBtn","btn-absolute",3,"showBtn"],[1,"d-flex","justify-content-between","flex-wrap","w-100"],[1,"profileMeta"],[1,"user"],[1,"d-flex","profileName-h"],[1,"profileName"],[1,"d-block","mat-caption","lastSeen"],[1,"autoSticker","ml-2",3,"matTooltip"],[1,"mb-1"],[1,"j
1ob"],[1,"pr-sm-0","d-flex","mt-2","action-holder"],[1,"actions","d-flex"],[1,"edit-holder"],["mat-raised-button","",1,"coverEditBtn","btn-absolute",3,"click"],[1,"d-flex","align-items-center","white"],[1,"hide"],["svgIcon","edit",1,"icon-stroke","ml-1","white"],["svgIcon","translate"],[1,"txt"],["mat-raised-button","",1,"editProfileBtn","btn-absolute",3,"click"],[3,"click","ngClass"],[1,"cursor-pointer",3,"click","ngClass"],["mat-stroked-button","","color","accent",1,"mr-2","btn-follow"],["mat-raised-button","","color","primary",1,"mr-2","btn-follow"],["mat-mini-fab","",1,"mini-fab-btn"],["mat-mini-fab","","aria-label","User actions",1,"mini-fab-btn",3,"matMenuTriggerFor"],["svgIcon","dots_horizontal",1,"icon-circle"],[1,"user-menu-actions"],["mat-menu-item",""],["mat-menu-item","",1,"report"],["mat-raised-button","",1,"btn-full-width","mr-2","cancel-btn"],["mat-raised-button","","appDebounceClick","","color","primary",1,"connect","mr-2","btn-full-width"],["mat-raised-button","","color","primary","appDebounceClick","",1,"mr-2","btn-full-width",3,"debounceClick"],["mat-raised-button","",1,"mr-2","btn-full-width","cancel-btn",3,"click"],["mat-raised-button","",1,"btn-full-width","mr-2","cancel-btn",3,"click"],["mat-raised-button","","appDebounceClick","","color","primary",1,"connect","mr-2","btn-full-width",3,"debounceClick"],["mat-stroked-button","","color","accent",1,"mr-2","accent-border-color","follow"],["mat-stroked-button","","color","accent",1,"mr-2","accent-border-color","follow",3,"click"],[1,"fs20","reset-color"],["mat-stroked-button","","color","accent",1,"mr-2","btn-follow",3,"click"],["mat-raised-button","","color","primary",1,"mr-2","btn-follow",3,"click"],["mat-mini-fab","",1,"mini-fab-btn",3,"click"],["svgIcon","chat",1,"icon-fill"],["mat-menu-item","",3,"click"],[1,"reset-color"],["mat-menu-item","",3,"ngClass"],["mat-menu-item","",3,"click","ngClass"],[1,"reset-color",3,"ngClass"],["mat-menu-item","",1,"report",3,"click"],["svgIcon","spam",1,"icon-report-stroke"],["mat-raised-button","","color","primary",1,"primary-border-color","mr-2","follow","mb-3"],["mat-mini-fab",""],["mat-icon-button","","type","button",1,"",3,"click"],["svgIcon","audioCall"],["svgIcon","videoCall"],["mat-raised-button","","color","primary","appDebounceClick","",1,"mr-2","mb-3",3,"disabled"],["mat-raised-button","","color","primary","appDebounceClick","",1,"mr-2","mb-3",3,"debounceClick","matTooltip"],["mat-raised-button","","appDebounceClick","",1,"mr-2","mb-3",3,"debounceClick","matTooltip"],["mat-raised-button","","color","primary","appDebounceClick","",1,"mr-2","mb-3",3,"debounceClick","disabled"],["mat-raised-button","","color","primary",1,"primary-border-color","mr-2","follow","mb-3",3,"click"],["mat-mini-fab","",3,"click"],["mat-mini-fab","","appMatSelectOpen","",3,"matMenuTriggerFor"],[1,"activity-menu"],["svgIcon","spam",1,"mr-2","icon-report-stroke"],["mat-menu-item","","appDebounceClick","",1,"mr-2"],["mat-menu-item","",1,"mr-2"],["mat-menu-item","","appDebounceClick","",1,"mr-2",3,"debounceClick"],["svgIcon","pending_person",1,"mr-2","black"],["mat-menu-item","",1,"mr-2",3,"click"],[1,"mr-2"],["mat-raised-button","",1,"btn-outline-accent","brd-transparent",3,"click"]],template:function(t,i){t&1&&H(0,Yr,28,20,"ng-container",1),t&2&&_("translocoPrefix","profile")},dependencies:[ee,te,L,_e,Ke,Zi,gi,ze,dt,ct,le,Wi,se],styles:["[_nghost-%COMP%]{margin-bottom:1rem}header[_ngcontent-%COMP%]{position:relative;width:100%}.navtab[_ngcontent-%COMP%]{cursor:pointer}.greyed[_ngcontent-%COMP%]{color:#9c9c9c}.cover-wrapper[_ngcontent-%COMP%]{position:relative;height:100%;max-height:297px;border-top-left-radius:24px;border-top-right-radius:24px;background:linear-gradient(0deg,#eeccce,#eeccce),linear-gradient(0deg,#fff,#fff)}.cover-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-height:100%;border-top-left-radius:24px;border-top-right-radius:24px}.default-img[_ngcontent-%COMP%]{background-color:#fff;object-fit:contain}.coverEditBtn[_ngcontent-%COMP%]{right:20px;top:20px;visibility:hidden;opacity:0}.editProfileBtn[_ngcontent-%COMP%]{visibility:hidden;opacity:0;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);transition:.3s ease;max-width:114px}  .actions mat-icon svg{vertical-align:baseline}.coverEditBtn.showBtn[_ngcontent-%COMP%], .editProfileBtn.showBtn[_ngcontent-%COMP%]{visibility:visible;opacity:1}.editProfileBtn[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}  .edit-holder .btn-outline-accent.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,   .editProfileBtn .mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before{opacity:0!important}.info[_ngcontent-%COMP%]{position:relative;background-color:#fff;border-bottom-left-radius:24px;border-bottom-right-radius:24px;display:grid;padding:1rem}.fs20[_ngcontent-%COMP%]{font-size:20px}.badge-icon[_ngcontent-%COMP%]{width:20px;height:20px}  .badge-icon svg{vertical-align:baseline}.disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:all}.package-wrap[_ngcontent-%COMP%]{display:none}.profile-pic-wrapper[_ngcontent-%COMP%]{position:relative;margin-top:-65px}.profile-pic[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;overflow:hidden;border:2px solid #fff;display:flex;align-items:center;justify-content:center;background-color:#fff}.profile-pic[_ngcontent-%COMP%]:not(.user)   img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.profile-pic.user[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#fff}.company-logo[_ngcontent-%COMP%]{border-radius:unset;background-color:#fff;border:transparent}.company-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain}.emptyProfilePic[_ngcontent-%COMP%]{width:100%;height:100%}.profileName[_ngcontent-%COMP%]{word-break:break-word;margin-bottom:.2rem;font-size:22px;font-weight:700;line-height:27px;letter-spacing:0em;width:fit-content;margin-right:8px}.stands[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.stands[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px;font-weight:500;display:inline-block;margin-right:8px;line-height:18px;letter-spacing:0em}.links[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding-left:.5rem}.links[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.links[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.mat-mdc-mini-fab[_ngcontent-%COMP%]{background:#ccc;margin-bottom:.5rem;color:#fff}  .black mat-icon path{fill:#0000008a!important}.follow[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;margin-bottom:2px;margin-left:.4rem}.profileMeta[_ngcontent-%COMP%]{display:flex;margin-left:20px}.profileMeta[_ngcontent-%COMP%]   .job[_ngcontent-%COMP%]{margin-bottom:.2rem}.navigationTabs[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.navigationTabs[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline-block;padding:16px 12px;border-bottom:2px solid transparent}.navigationTabs[_ngcontent-%COMP%]   a.activeTab[_ngcontent-%COMP%]{border-bottom:2px solid}.stickyHeader[_ngcontent-%COMP%]{position:absolute;background-color:#fff;visibility:hidden;opacity:0;border-bottom-right-radius:5px;border-bottom-left-radius:5px;transition:.2s ease;z-index:11;transform:translateZ(0)!important;-webkit-transform:translateZ(0)!important;transform-style:preserve-3d!important;backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important;-webkit-overflow-scrolling:touch}.stickyHeader[_ngcontent-%COMP%]   .profile-pic.small-pic[_ngcontent-%COMP%]{width:50px;height:50px;flex-shrink:0}.stickyHeader[_ngcontent-%COMP%]   .company-logo.small-pic[_ngcontent-%COMP%]{width:55;height:55px;flex-shrink:0}.stickyHeader[_ngcontent-%COMP%]   .profileName[_ngcontent-%COMP%]{font-size:14px}.mat-mdc-menu-item[_ngcontent-%COMP%]   .mat-icon-no-color.white[_ngcontent-%COMP%]{color:#fff}.tags.lh-14[_ngcontent-%COMP%]   .mat-mdc-chip.mat-mdc-standard-chip[_ngcontent-%COMP%]{line-height:14px;height:inherit}.type-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:40px;height:40px}.type-icon[_ngcontent-%COMP%]{margin-left:-.5rem}.actions-tab[_ngcontent-%COMP%]{margin-left:120px;margin-top:10px}.edit-holder[_ngcontent-%COMP%]{display:flex}.mask-header[_ngcontent-%COMP%]{position:absolute;
1left:0;right:0;top:-1px;height:24px}.autoSticker[_ngcontent-%COMP%]{background-color:#637c8e80;border-radius:12px;padding:0 6px;color:#fff;align-self:flex-start;flex:0 0 62px;margin-right:4px}.autoSticker[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.autoSticker[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;margin-right:4px;line-height:1}.autoSticker[_ngcontent-%COMP%]   .txt[_ngcontent-%COMP%]{font-weight:400;font-size:11px;line-height:18px;letter-spacing:0%;text-align:center}.autoSticker.absolute[_ngcontent-%COMP%]{position:absolute;right:12px;top:12px;z-index:1}@media(min-width:1025px){.profile-pic[_ngcontent-%COMP%]{width:150px;height:150px}.profile-pic-wrapper[_ngcontent-%COMP%]{margin-top:-98px}.profileMeta[_ngcontent-%COMP%]{margin-left:10px;flex-grow:1;max-width:58%}.company[_ngcontent-%COMP%]   .com[_ngcontent-%COMP%]{align-items:center}}@media(min-width:768px){.autoSticker[_ngcontent-%COMP%]{margin-top:5px}.info[_ngcontent-%COMP%]{padding:17px 18px}.navigationTabs[_ngcontent-%COMP%], .package-wrap[_ngcontent-%COMP%]{display:block}.package-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50px;margin-bottom:1rem;padding-left:.5rem}.edit-holder[_ngcontent-%COMP%]{margin-left:auto}}.actions-tab[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-bottom:4px}  .tags .mat-chip-list-wrapper{margin:unset!important}.green-dot[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:10px;border-radius:50%;background-color:#fff;color:#00a834;z-index:1;font-size:18px;padding:.2rem;font-weight:700}.onePx[_ngcontent-%COMP%]{margin-top:1px}.toCompany[_ngcontent-%COMP%]{cursor:pointer}.lh-initial[_ngcontent-%COMP%]{line-height:initial}.header.company[_ngcontent-%COMP%]{min-height:250px}.image-holder[_ngcontent-%COMP%]{height:130px;overflow:hidden;margin-left:24px}.image-holder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:28px;max-width:100%;max-height:100%}.flex-1[_ngcontent-%COMP%]{flex:1}.p-24[_ngcontent-%COMP%]{padding:24px}.chips[_ngcontent-%COMP%]{background-color:#f2f2f2;border-radius:25px;font-size:11px;padding:1px 10px;margin-left:10px;max-width:139px}.title[_ngcontent-%COMP%]{font-size:26px;font-weight:500;line-height:26px;letter-spacing:0px}.actions.position-absolute[_ngcontent-%COMP%]{bottom:20px}.mini-fab-btn.mat-mdc-mini-fab[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]   .mat-mdc-mini-fab.mat-accent[_ngcontent-%COMP%]{border-radius:12px;background-color:#e9edef;box-shadow:none;margin:0 4px}.mini-fab-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:initial}.ml-4px[_ngcontent-%COMP%]{margin-left:4px}.actions[_ngcontent-%COMP%]   .mat-mdc-raised-button.mat-primary[_ngcontent-%COMP%]{margin-right:14px}.icon-fill.mat-icon[_ngcontent-%COMP%]{line-height:20px!important}.desc[_ngcontent-%COMP%]{margin-top:20px}  .cat-menu.mat-mdc-menu-panel{min-height:38px;box-shadow:0 1px 4px #00000026;border-radius:20px;padding:0 10px}.links[_ngcontent-%COMP%]   .mat-mdc-mini-fab[_ngcontent-%COMP%]{margin-bottom:.5rem;border-radius:10px}.links[_ngcontent-%COMP%]   .mat-mdc-mini-fab[_ngcontent-%COMP%]{border-radius:12px;background-color:#e9edef;box-shadow:none;margin:0 4px}.btn-absolute[_ngcontent-%COMP%]{position:absolute;background:#2f2f2f99!important;border-radius:10px!important;font-weight:400}.btn-absolute[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:16px;height:16px;line-height:1}.btn-wrap[_ngcontent-%COMP%]{width:100%;max-width:200px;text-align:right}.image-holder[_ngcontent-%COMP%]   .btn-absolute[_ngcontent-%COMP%]{display:none}.image-holder[_ngcontent-%COMP%]:hover   .btn-absolute[_ngcontent-%COMP%]{display:block}.lh-1[_ngcontent-%COMP%]{line-height:1}.pb-40[_ngcontent-%COMP%]{padding-bottom:40px}.title-holder[_ngcontent-%COMP%]{flex-wrap:wrap}  .links .mat-mdc-mini-fab .mat-mdc-button-persistent-ripple.mdc-fab__ripple,   .navigationTabs .mini-fab-btn .mat-mdc-button-persistent-ripple.mdc-fab__ripple{border-radius:12px!important}  .profile-header .mdc-button--outlined.mat-accent{font-weight:500;line-height:16px;text-align:center;letter-spacing:0}@media screen and (min-width:1201px){.title-holder[_ngcontent-%COMP%]{align-items:center}}@media screen and (max-width:1200px){.chips[_ngcontent-%COMP%]:first-of-type{margin-left:0}}@media screen and (max-width:1024px){.title-holder[_ngcontent-%COMP%]{flex-direction:column}.profileMeta[_ngcontent-%COMP%]{width:100%}}.negative-margin[_ngcontent-%COMP%]{margin-top:-20px}.lastSeen[_ngcontent-%COMP%]{background-color:#e7e7e7;border-radius:15px;width:fit-content;padding:2px 8px;font-size:11px;margin:4px 8px 4px 0;align-self:self-start;text-align:center;min-inline-size:fit-content}.btn-qr[_ngcontent-%COMP%]{width:40px;height:40px;margin-right:8px}.btn-qr.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:20px}  .user-menu-actions .mat-mdc-menu-content{padding:0}@media(min-width:769px){.profileName-h[_ngcontent-%COMP%]{align-items:center}}@media(max-width:768px){.cover-wrapper[_ngcontent-%COMP%]{max-height:160px}.hide[_ngcontent-%COMP%]{display:none}.editProfileBtn[_ngcontent-%COMP%], .coverEditBtn[_ngcontent-%COMP%]{visibility:visible;opacity:1;padding:0;min-width:initial;border-radius:50%!important;width:42px}.btn-absolute[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:28px;height:28px;margin:0!important}.profileMeta[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap;margin-left:0}.actions-tab[_ngcontent-%COMP%]{margin-left:0}.actions-tab[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-bottom:8px}.actions[_ngcontent-%COMP%]{width:100%}.info[_ngcontent-%COMP%]{margin-top:-20px;border-top-left-radius:24px;border-top-right-radius:24px;padding:24px}
1.cover-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:130px;object-fit:cover}.profile-pic-wrapper[_ngcontent-%COMP%]{position:relative;margin:-96px auto 6px}.profile-pic[_ngcontent-%COMP%]{width:150px;height:150px}.profileName-h[_ngcontent-%COMP%]{flex-wrap:wrap;margin-bottom:5px;align-items:center}.btn-full-width[_ngcontent-%COMP%], .btn-follow[_ngcontent-%COMP%], .connect[_ngcontent-%COMP%], .edit-holder[_ngcontent-%COMP%], .action-holder[_ngcontent-%COMP%], .edit-holder[_ngcontent-%COMP%]   .btn-outline-accent[_ngcontent-%COMP%]{width:100%}.lastSeen[_ngcontent-%COMP%]{margin:0}}  .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}@media(max-width:440px){.chips[_ngcontent-%COMP%]{margin:0 0 4px!important}.cat-holder[_ngcontent-%COMP%]{margin-top:10px}.action-holder.company[_ngcontent-%COMP%], .stands[_ngcontent-%COMP%]{margin:0}.actions-tab[_ngcontent-%COMP%]{margin-left:0}.com[_ngcontent-%COMP%]   .profileMeta[_ngcontent-%COMP%]{flex-direction:column}}.actions[_ngcontent-%COMP%]{justify-content:flex-end;margin-left:auto}.user[_ngcontent-%COMP%]{justify-content:flex-end}.profileMeta[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{width:100%}.report[_ngcontent-%COMP%]{color:#ff5252!important}.image-fill[_ngcontent-%COMP%]{object-fit:fill!important}"]})}}return n})();function Zr(n,d){n&1&&(r(0,"span",5),b(1,"transloco"),x(2,"mat-icon",6),a()),n&2&&_("matTooltip",P(1,1,"profile.autoTranslate"))}function Xr(n,d){if(n&1){let e=S();r(0,"div",2),g("click",function(){let i=h(e).$implicit,l=s();return C(l.toUser(i))}),x(1,"img",3),r(2,"span",4),c(3),a(),m(4,Zr,3,3,"span",5),a()}if(n&2){let e=d.$implicit,t=s();A("has-more",t.people.length>2),_("matTooltip",e.firstName+" "+e.lastName),o(),_("src",e.userPhoto||"../../assets/images/no-user-photo.png",Y),o(2),ae("",e.firstName," ",e.lastName.slice(0,1),"."),o(),u(e.isAutoTranslate?4:-1)}}var In=(()=>{class n{constructor(e){this.contactProfilePanelSrv=e}ngOnInit(){}toUser(e){e?.username&&this.contactProfilePanelSrv.openProfile(e.username)}static{this.\u0275fac=function(t){return new(t||n)(p(Ot))}}static{this.\u0275cmp=O({type:n,selectors:[["app-people-widget"]],inputs:{peo
1ple:"people",eventId:"eventId"},decls:3,vars:0,consts:[[1,"d-flex","follower-holder"],[1,"d-flex","flex-direction-column","cursor-pointer","follower","position-relative",3,"matTooltip","has-more"],[1,"d-flex","flex-direction-column","cursor-pointer","follower","position-relative",3,"click","matTooltip"],["alt","",1,"user-image",3,"src"],[1,"user-name"],[1,"autoSticker",3,"matTooltip"],["svgIcon","translate"]],template:function(t,i){t&1&&(r(0,"div",0),j(1,Xr,5,7,"div",1,$),a()),t&2&&(o(),R(i.people))},dependencies:[_e,L,se],styles:[".user-image[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:50%}.user-name[_ngcontent-%COMP%]{display:inline-block;text-overflow:ellipsis;text-align:center;overflow:hidden;white-space:nowrap;font-size:12px;max-width:80px}.flex-direction-column[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.follower-holder[_ngcontent-%COMP%]{flex-wrap:wrap}.autoSticker[_ngcontent-%COMP%]{background-color:#637c8e;border-radius:50%;color:#fff;position:absolute;right:0}.autoSticker[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;margin:2px 4px 0;line-height:1}@media screen and (min-width:1300px){.follower[_ngcontent-%COMP%]{max-width:80px;width:100%}}@media screen and (min-width:1025px)and (max-width:1300px){.follower[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}.follower.has-more[_ngcontent-%COMP%]:nth-child(1), .follower.has-more[_ngcontent-%COMP%]:nth-child(2){margin-bottom:8px}}@media screen and (max-width:1024px){.follower[_ngcontent-%COMP%]{max-width:120px;width:100%}.user-name[_ngcontent-%COMP%]{max-width:120px}}@media screen and (max-width:420px){.follower[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}.follower.has-more[_ngcontent-%COMP%]:nth-child(1), .follower.has-more[_ngcontent-%COMP%]:nth-child(2){margin-bottom:8px}}"]})}}return n})();var Jr=["imageInput"],ea=n=>({value:n});function ta(n,d){if(n&1&&(r(0,"h1",2),c(1),a()),n&2){let e=s().$implicit;o(),v(e("editProfileImage"))}}function ia(n,d){if(n&1){let e=S();r(0,"div",7)(1,"button",11),g("click",function(){h(e);let i=s(3);return C(i.cancelImageUpload())}),x(2,"mat-icon",12),a(),r(3,"div",13),x(4,"mat-progress-spinner",14)(5,"mat-progress-spinner",15),r(6,"div",16),c(7),a()(),r(8,"div",17),c(9),a()()}if(n&2){let e=s(2).$implicit,t=s();o(4),_("value",100),o(),_("value",t.uploadProgress),o(2),I(" ",t.uploadProgress,"% "),o(2),v(e("uploading"))}}function na(n,d){if(n&1&&(r(0,"div"),c(1),r(2,"span",24),c(3),a()()),n&2){let e=s(3).$implicit,t=s();o(),I(" ",t.errorMessage," "),o(2),v(e("tryAgain"))}}function oa(n,d){if(n&1&&(r(0,"span",25),c(1),a()),n&2){let e=s(4).$implicit;o(),v(e("dropYourFileHere"))}}function ra(n,d){if(n&1&&(m(0,oa,2,1,"span",25),r(1,"span",26),c(2),a()),n&2){let e=s(3).$implicit,t=s();u(t.isHandset?-1:0),o(2),v(e("clickToUpload"))}}function aa(n,d){if(n&1){let e=S();r(0,"div",18),g("hovered",function(i){h(e);let l=s(3);return C(l.toggleHover(i))})("dropped",function(i){h(e);let l=s(3);return C(l.onDrop(i))}),r(1,"div",19),g("click",function(){h(e);let i=s(3);return C(i.chooseImage())}),r(2,"div",20),x(3,"mat-icon",21),r(4,"div",22),m(5,na,4,2,"div")(6,ra,3,2),a()()(),r(7,"input",23,0),g("change",function(i){h(e);let l=s(3);return C(l.onDrop(i))}),a()()}if(n&2){let e=s(3);A("errorMsg",e.errorMessage),_("ngClass",e.isHovering?"primary-background-rgba-1 primary-border hovering":""),o(3),A("icn-normal-state",!e.isHovering&&!e.errorMessage),_("ngClass",e.errorMessage?"error-icon icn-error-state":"mat-primary"),o(2),u(e.errorMessage?5:6),o(2),_("accept","image/*")("multiple",!1)}}function sa(n,d){if(n&1&&(r(0,"main",5),m(1,ia,10,4,"div",7)(2,aa,9,9,"div",8),r(3,"div",9)(4,"span",10),c(5),a(),r(6,"span",10),c(7),a(),r(8,"span",10),c(9),a(),r(10,"span"),c(11),a()()()),n&2){let e=s().$implicit,t=s();o(),u(t.isUploading?1:2),o(4),v(t.fileExtensionsEnum.PNG),o(2),v(t.fileExtensionsEnum.JPG),o(2),v(t.fileExtensionsEnum.JPEG),o(2),ae("",e("upTo",J(6,ea,t.maxImageSizeMB10))," ",e("mb"))}}function la(n,d){if(n&1){let e=S();r(0,"app-crop-image",27),g("closeCropper",function(i){h(e);let l=s(2);return C(l.onCloseCropper(i))}),a()}if(n&2){let e=s(2);_("isHandset",e.isHandset)("avatarCropper",!0)("imageFile",e.imageFile)}}function ca(n,d){if(n&1){let e=S();Z(0),r(1,"header"),m(2,ta,2,1,"h1",2),r(3,"button",3),g("click",function(){h(e);let i=s();return C(i.onClose())})("keydown.enter",function(i){return i.preventDefault()})("keydown.shift.enter",function(i){return i.preventDefault()}),x(4,"mat-icon",4),a()(),m(5,sa,12,8,"main",5),m(6,la,1,3,"app-crop-image",6),X()}if(n&2){let e=s();o(2),u(e.showImageCropper?-1:2),o(3),u(e.showImageCropper?-1:5),o(),u(e.showImageCropper?6:-1)}}var yn=(()=>{class n{get fileExtensionsEnum(){return Ji}constructor(e,t,i,l,f){this.translocoService=e,this.dialogRef=t,this.data=i,this.uploadService=l,this.authSrv=f,this.isHovering=!1,this.errorMessage=null,this.isHandset=!1,this.cdnPath=fi.cdnPath,this.maxImageSize10=Ee.maxImageSize10,this.maxImageSizeMB10=10,this.subscription=new N,this.showImageCropper=!1,this.isUploading=!1,this.uploadProgress=0,this.uploadedImageUrl=""}ngOnInit(){this.data&&this.data.isHandset!==void 0&&(this.isHandset=this.data.isHandset)}chooseImage(){this.imageInput.nativeElement.click()}toggleHover(e){this.isHovering=e}onDrop(e){let t=[];if(e instanceof Event){let l=e.target;t=l.files?Array.from(l.files):[]}else t=Array.from(e);if(t.length===0||(this.errorMessage="",this.validateImages(t),this.errorMessage))return;this.imageFile=t[0],this.isUploading=!0,this.startFakeProgress();let i="SU/"+this.authSrv.getLoggedUserId()+"/UserPhotos";this.uploadSubscription=this.uploadService.uploadFileAPITrackProgressBar(t[0],i).subscribe({next:l=>{if(l.type===mi.Response){this.stopFakeProgress();let f=l;console.log(f.body),this.uploadedImageUrl=f.body.filePath?this.cdnPath+f.body.filePath:"",this.uploadProgress=100,this.isUploading=!1,this.showImageCropper=!0}},error:()=>{this.stopFakeProgress(),this.isUploading=!1,this.uploadProgress=0}})}startFakeProgress(){clearInterval(this.fakeProgressTimer),this.fakeProgressTimer=setInterval(()=>{this.uploadProgress<90&&(this.uploadProgress<30?this.uploadProgress+=1:this.uploadProgress<60?this.uploadProgress+=.5:this.uploadProgress<80?this.uploadProgress+=.2:this.uploadProgress+=.1,this.uploadProgress=Math.min(Math.round(this.uploadProgress),90))},150)}stopFakeProgress(){clearInterval(this.fakeProgressTimer),this.fakeProgressTimer=null}cancelImageUpload(){this.uploadSubscription&&(this.uploadSubscription.unsubscribe(),this.uploadSubscription=void 0),this.stopFakeProgress(),this.isUploading=!1,this.uploadProgress=0,this.imageFile=null,this.showImageCropper=!1,this.errorMessage="",this.imageInput&&(this.imageInput.nativeElement.value="")}validateImages(e){if(e.length>1){this.errorMessage=this.translocoService.translate("images.singleImageOnly");return}let t=!1,i=!1;for(let w of Array.from(e))Ee.isOfTypeImage(w.type)?w.size>this.maxImageSize10&&(t=!0):i=!0;let l=Array.prototype.some.call(e,w=>Ee.isOfTypeImage(w.type)),f=Array.prototype.some.call(e,w=>w.size<this.maxImageSize10);if(e.length>0&&!l){this.errorMessage=this.translocoService.translate("images.chooseFormats");return}if(e.length>0&&!f){this.errorMessage=this.translocoService.translate("images.maxUploadImg",{value:this.maxImageSizeMB10});return}if(i){this.errorMessage=this.translocoService.translate("images.unsupported");return}else if(t){this.errorMessage=this.translocoService.translate("images.largerFilesMsg");return}}onCloseCropper(e){this.showImageCropper=!1,e&&e=="removeImage"&&(this.uploadedImageUrl&&this.removeFileFromC
1DN(this.uploadedImageUrl),e=null),this.dialogRef.close(e)}removeFileFromCDN(e){this.uploadService.removeFileAPI(e).subscribe({next:t=>{},error:t=>{console.error(t)}})}onClose(){this.cancelImageUpload(),this.dialogRef.close()}ngOnDestroy(){this.cancelImageUpload()}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(pe),p(me),p(zi),p(K))}}static{this.\u0275cmp=O({type:n,selectors:[["app-upload-image"]],viewQuery:function(t,i){if(t&1&&Fe(Jr,5),t&2){let l;Ne(l=Le())&&(i.imageInput=l.first)}},decls:1,vars:1,consts:[["imageInput",""],[4,"transloco","translocoPrefix"],[1,"ellipsis","mr-4","headline"],["type","button","mat-icon-button","","tabindex","-1",1,"close",3,"click","keydown.enter","keydown.shift.enter"],["svgIcon","closeW",1,"icon-stroke","close-svg"],[1,"form-container"],[3,"isHandset","avatarCropper","imageFile"],[1,"dropzone","show-spinner"],["dropzone","",1,"dropzone",3,"ngClass","errorMsg"],[1,"file-extenstions"],[1,"text-uppercase"],["mat-icon-button","","type","button",1,"btn-cancel",3,"click"],["svgIcon","close",1,"icon-stroke"],[1,"spinner-wrapper"],["mode","determinate","diameter","76",1,"spinner-bg",3,"value"],["mode","determinate","diameter","76",3,"value"],[1,"spinner-text"],[1,"upload-txt"],["dropzone","",1,"dropzone",3,"hovered","dropped","ngClass"],[1,"upload-image",3,"click"],["type","button",1,"align-items-center","text-center"],["svgIcon","icn_upload",1,"icon-stroke","upload",3,"ngClass"],[1,"upload-text"],["type","file","hidden","",1,"form-control-file",2,"display","none",3,"change","accept","multiple"],[1,"try-again"],[1,"block"],[1,"block","btn-upload","primary-background-color"],[3,"closeCropper","isHandset","avatarCropper","imageFile"]],template:function(t,i){t&1&&H(0,ca,7,3,"ng-container",1),t&2&&_("translocoPrefix","images")},dependencies:[ee,le,L,Xi,Ke,mn,un],styles:[".dropzone.uploading[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}.spinner-overlay[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:24px 0}.w100[_ngcontent-%COMP%]{width:100%}  .hide-arrow .mat-select-arrow{color:transparent!important}.headline[_ngcontent-%COMP%]{font-weight:600;font-size:22px!important;line-height:28px!important;letter-spacing:0px;border-bottom:solid 1px #F0F1F2;padding-bottom:24px}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px}footer[_ngcontent-%COMP%]{display:flex;padding:.5rem;justify-content:flex-start;flex-wrap:wrap}main[_ngcontent-%COMP%]{max-height:calc(100vh - 280px);overflow:auto}.dropzone[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed rgba(240,241,242,1);border-radius:24px;padding:30px;gap:24px}.show-spinner[_ngcontent-%COMP%]{border:1.22px dashed #DBDBDB;border-radius:14.69px;dashes:7.343283176422119,7.343283176422119;position:relative}.spinner-wrapper[_ngcontent-%COMP%]{position:relative;width:76px;height:76px}.spinner-wrapper[_ngcontent-%COMP%]   mat-progress-spinner[_ngcontent-%COMP%]{position:absolute;inset:0}.btn-cancel[_ngcontent-%COMP%]{position:absolute;right:0;top:0}  .spinner-bg.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:#f4f4f5!important}.spinner-text[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-style:Bold;font-size:14px;line-height:17px;text-transform:capitalize}.dropzone.hovering[_ngcontent-%COMP%]{border-style:solid}.input-invalid[_ngcontent-%COMP%], .dropzone.errorMsg[_ngcontent-%COMP%]{border-color:#f31260;border-style:solid}.try-again[_ngcontent-%COMP%]{color:#f31260}.error-link-msg[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:0%}  .error-icon.icon-stroke svg path{stroke:#f31260!important}  .icn-error-state svg rect{fill:#f312601a}.imageHolder[_ngcontent-%COMP%]{border:4px solid transparent;border-radius:2px;margin:5px;width:100px;height:100px}.imageHolder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.imageHolder[_ngcontent-%COMP%]:nth-of-type(4n){margin-right:0}.upload[_ngcontent-%COMP%]{width:58px;height:58px;font-size:58px}.info-txt[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%]   mat-hint[_ngcontent-%COMP%]{font-size:12px}.file-extenstions[_ngcontent-%COMP%]{display:flex;gap:6px}.file-extenstions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-radius:6px;opacity:1;gap:10px;padding:4px 8px;font-weight:500;font-size:12px;line-height:14px;background:#f0f1f2}.btn-upload[_ngcontent-%COMP%]{border-radius:8px;gap:10px;font-weight:600;padding:4px 8px;font-size:15px;line-height:20px;letter-spacing:0%;color:#fff}.upload-text[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;margin-top:18px;font-size:18px;line-height:20px;letter-spacing:0%}.upload-txt[_ngcontent-%COMP%]{font-weight:600;font-size:18px;line-height:20px;letter-spacing:0%}@media screen and (max-width:768px){.upload-text[_ngcontent-%COMP%]{flex-direction:column}.btn-upload[_ngcontent-%COMP%]{padding:8px 16px}.file-extenstions[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}}"]})}}return n})();function da(n,d){if(n&1){let e=S();r(0,"app-profile-wizard",11),g("actionClicked",function(i){h(e);let l=s();return C(l.onActionClicked(i))}),a()}if(n&2){let e=s();
1_("profile",e.user)("isHandset",e.isHandset)("steps",e.steps)}}function pa(n,d){if(n&1&&x(0,"app-profile-contact-info",8),n&2){let e=s();_("user",e.user)("isCompany",!1)("hasEditPerm",e.user.profileId===e.loggedUserId)("isHandset",e.isHandset)}}function ma(n,d){if(n&1){let e=S();r(0,"button",14),g("click",function(){h(e);let i=s(2);return C(i.openAbout())}),r(1,"span",15)(2,"span",15),c(3),b(4,"transloco"),a()()()}n&2&&(o(3),I(" ",P(4,1,"profile.showMore")))}function ua(n,d){if(n&1&&(r(0,"app-suggested-widget",9),b(1,"transloco"),x(2,"app-people-widget",12),m(3,ma,5,3,"button",13),a()),n&2){let e=s();_("title",P(1,5,"profile.followers"))("twoColumns",!1),o(2),_("people",e.people)("eventId",e.eventId),o(),u(e.totalPeople>4?3:-1)}}function fa(n,d){if(n&1&&(r(0,"app-suggested-widget",9),b(1,"transloco"),x(2,"app-key-metrics",16),a()),n&2){let e=s(2);_("title",P(1,4,"profile.keyMetrics"))("twoColumns",!1),o(2),_("metricsInfo",e.keyMetrics)("keyMetricsType",e.keyMetricsType)}}function _a(n,d){if(n&1&&m(0,fa,3,6,"app-suggested-widget",9),n&2){let e=s();u(e.keyMetrics?0:-1)}}function ga(n,d){if(n&1&&(x(0,"app-message-widget",10,1),b(2,"async")),n&2){let e=s();_("threadInfo",P(2,1,e.msgThread$))}}var Mn=(()=>{class n{onPageHide(){this.document.visibilityState==="visible"&&(this.intervalFunc(),this.arrivedTimestamp=new Date().toISOString()),this.document.visibilityState==="hidden"&&(this.leftTimestamp=new Date().toISOString(),this.metricsSrv.sendBeaconUserProfile(this.arrivedTimestamp,this.leftTimestamp,this.timeSpent,this.eventId),this.interval&&(clearInterval(this.interval),this.timeSpent=0))}constructor(e,t,i,l,f,w,y,M,T,G,F,ce,he,Ce,xe,Ge,be){this.translocoService=e,this.userProfileSrv=t,this.msgSrv=i,this.matchingSrv=l,this.utilSrv=f,this.authSrv=w,this.dialog=y,this.myEventSrv=M,this.route=T,this.evSrv=G,this.router=F,this.document=ce,this.notificationSrv=he,this.metricsSrv=Ce,this.companyProfileSrv=xe,this.cookieService=Ge,this.localeSrv=be,this.connectStatus=ht,this.subscriptions=new N,this.pictureName="",this.picture=null,this.timeSpent=0,this.keyMetricsType=rn.User,this.showContactDetails=!0,this.eventSettingsData=null,this.inAppWebview=!1,this.companyProfileSrv.setProfileHomePage(!0)}ngOnInit(){this.isLoading=!0,this.userProfileTabs=tn,this.loggedUserId=this.authSrv.getLoggedUserId(),this.meetingInfo$=this.userProfileSrv.meetingInfo$,this.meetingDays$=this.userProfileSrv.meetingDays$,this.meetingSlots$=this.userProfileSrv.meetingSlots$,this.msgThread$=this.msgSrv.msgThread$,this.lastStepSubmit$=this.userProfileSrv.lastStepSubmit.asObservable(),this.inAppWebview=!!(window&&window.flutter_inappwebview),this.subscriptions.add(this.userProfileSrv.profileSteps$.pipe(U(e=>(this.steps=e,e?this.myEventSrv.getEventSettings(+this.evSrv.getCurrentEventId()):k(null)))).subscribe(e=>{this.steps&&(this.steps=this.filterProfileSteps(this.steps,e),this.steps.some(t=>!t.value)||this.userProfileSrv.lastStepSubmit.next(!0))})),this.subscriptions.add(this.utilSrv.isHandsetSmall.subscribe(e=>{this.isHandset=e})),this.subscriptions.add(this.utilSrv.isHandset.subscribe(e=>{this.isTablet=e})),this.people$=this.userProfileSrv.followersList$,this.subscriptions.add(this.evSrv.eventId.pipe(ve(e=>this.eventId=+e),U(e=>e?this.evSrv.eventDetails$:k(null)),ve(e=>this.eventDetails=e),U(e=>e?this.userProfileSrv.userProfileDetails$:k(null)),ve(e=>this.user=e),U(e=>e?(this.getUserTranslation(this.user),this.route.queryParamMap):k(null))).subscribe(e=>{e&&this.user.profileId!==this.loggedUserId&&this.onMeetingSuggestionTrigger(e)})),this.subscriptions.add(this.userProfileSrv.userProfileDetails$.pipe(ve(e=>this.user=e),St((e,t)=>e.username===t?.username),U(e=>this.authSrv.getLoggedUserId()!==e.profileId?this.msgSrv.createNewMessage("",[e.profileId]).pipe(ve(t=>t?this.msgSrv.currentMsgThread.next(t.conversation):null)):this.userProfileSrv.getProfileSteps(e.profileId,"").pipe(ve(t=>{t&&this.userProfileSrv.profileSteps.next(t.steps)}))),U(e=>this.eventId&&this.user.profileId!=this.loggedUserId?this.userProfileSrv.getMeetingDays(this.eventId).pipe(U(t=>{if(t){this.timeZoneFromAPI=t.abbreviation;let i=t.days?.find(l=>l.isAvailable);if(this.calendarMessage=i?null:t.message,this.activeMeetingDayIndex=t.days?.findIndex(l=>l.isAvailable),this.isLoading=!1,i)this.userProfileSrv.meetingSlots.next(i.daySlots);else return this.userProfileSrv.meetingSlots.next([]),k(null);return k(t)}else return k(null)})):(this.isLoading=!1,k(null))),U(e=>this.userProfileSrv.getPeople(5,1,4,this.eventId).pipe(ve(t=>{t?(this.people=t.users,this.hasPeople=this.people.length>0,this.totalPeople=t.total):this.hasPeople=!1})))).subscribe()),this.arrivedTimestamp=new Date().toISOString(),this.intervalFunc(),this.isProfileHome=this.companyProfileSrv.getProfileHomePage(),this.showContactDetails=this.user.shareContactInfo&&(this.user.socialDetails.telegramLink!=null||this.user.socialDetails.vkontakteLink!=null||this.user.socialDetails.xingLink!=null||this.user.socialDetails.yandexDzenLink!=null||this.user.contactDetails.officePhone!=""||this.user.contactDetails.mobilePhone!=null||this.user.email!="")&&(this.user.connectStatus===this.connectStatus.Connected||this.user.profileId===this.loggedUserId)}getUserTranslation(e){this.activeLang=this.localeSrv.activeLanguage;let t=e.userTranslations.find(i=>i.langCode===this.activeLang)||{};t&&t.length>0?this.userTranslation={firstName:t.firstName,lastName:t.lastName,jobTitle:t.jobTitle,isAutoTranslate:t.isAutoTranslate,langCode:this.activeLang}:this.userTranslation={firstName:e.firstName,lastName:e.lastName,jobTitle:e.jobTitle,isAutoTranslate:e.isAutoTranslate,langCode:this.activeLang}}onEditProfile(e){let t=this.dialog.open(vn,{data:e,width:"700px",maxWidth:"auto",panelClass:["custom-modalbox"]});this.subscriptions.add(t.afterClosed().pipe(U(i=>i&&i.length>0&&i[0].status?this.userProfileSrv.updateProfile_V2(i[0].user):k(null))).subscribe(i=>{i&&(this.updateSteps(Oe.UserEditProfile,this.userProfileSrv.profileSteps.getValue()),this.notificationSrv.success(i.message))},i=>{i&&i.status!==401&&this.openDialog(Ue.UNEXPECTED_ERR)}))}updateSteps(e,t){t!=null&&(on(t,e)&&(this.openDialog(this.translocoService.translate("profile.congratulations")),setTimeout(()=>this.userProfileSrv.lastStepSubmit.next(!0),3e3)),this.userProfileSrv.profileSteps.next(this.userProfileSrv.profileSteps.getValue().map(i=>(i.value=i.type===e?!0:i.value,i))))}onFollow(e){this.userProfileSrv.follow(!e.isFollowed).subscribe(t=>t.status?"":this.notificationSrv.error(t.message))}onActionClicked(e){switch(e.type){case Oe.UserAddLogo:this.onEditProfilePic(e.profile);return;case Oe.UserAddCover:this.onEditCoverPic(e.profile);return;case Oe.UserEditProfile:this.onEditProfile(e.profile);return;case Oe.UserWritePost:this.onAddPost(e.profile);return}}onAddPost(e){this.router.navigate(["activities"],{relativeTo:this.route.parent})}onConnect(e){e.connectStatus==2||e.connectStatus==5?this.dialog.open(Ni,{width:"550px",minWidth:"320px",panelClass:["custom-modalbox","addPost-modalbox"],closeOnNavigation:!0,disableClose:!0}).afterClosed().subscribe(i=>{i&&i.note&&this.userProfileSrv.connectPerson(i.note,e.connectStatus,"").subscribe(l=>{if(l.status){let f=!(e.connectStatus==3||e.connectStatus==1);this.userProfileSrv.userProfileDetails.next(Pe(Se({},this.userProfileSrv.userProfileDetails.getValue()),{connectStatus:f?this.connectStatus.RequestedByMe:this.connectStatus.NotConnected}))}else this.notificationSrv.error(l.msg)})}):this.userProfileSrv.connectPerson(null,e.connectStatus,"").subscribe(t=>
1{if(t.status){let i=!(e.connectStatus==3||e.connectStatus==1);this.userProfileSrv.userProfileDetails.next(Pe(Se({},this.userProfileSrv.userProfileDetails.getValue()),{connectStatus:i?this.connectStatus.RequestedByMe:this.connectStatus.NotConnected}))}else this.notificationSrv.error(t.msg)})}respondConnect(e){this.userProfileSrv.respondConnect(e.status,e.user.profileId,this.eventId).subscribe(t=>{if(t.status){this.eventId&&this.myEventSrv.contactReqCount.next(this.myEventSrv.contactReqCount.getValue()-1);let i=this.userProfileSrv.userProfileDetails.getValue();this.userProfileSrv.userProfileDetails.next(Pe(Se({},i),{connectStatus:e.status,isFollowed:e.status==1?!0:i.isFollowed}))}else this.notificationSrv.error(t.msg)})}onOpenContactInfo(e){this.dialog.open(nn,{data:e,width:"500px",maxWidth:"auto",panelClass:["custom-modalbox"]})}onRedirectToMessage(e){this.msgSrv.createNewMessage("",[e.profileId]).subscribe(t=>this.router.navigate(["/event",this.authSrv.getDefaultEventId(),"messages","thread",t.conversation.conversationGroupId]))}onScheduleMeetingBtn(e){if(this.userProfileSrv.meetingInfo.getValue()){let t=this.dialog.open(Sn,{data:{user:e,loggedUserId:this.loggedUserId,meetingInfo:this.meetingInfo$},width:"500px",maxWidth:"auto",panelClass:["custom-modalbox"]});t.componentInstance.addToCalendar.subscribe(i=>this.onAddToCalendar(i)),t.componentInstance.cancelMeeting.subscribe(i=>this.onCancelMeeting(i)),t.componentInstance.rescheduleMeeting.subscribe(i=>this.onRescheduleMeeting(i)),t.componentInstance.approveMeeting.subscribe(U(i=>(t.componentInstance.data.isActionClicked=!0,this.matchingSrv.approveMeeting(i.meetingID,this.eventId))),U(i=>i.status?this.userProfileSrv.getMeetingDays(this.eventId):(this.notificationSrv.error(i.message),k(null)))).subscribe(i=>t.componentInstance.data.isActionClicked=!1)}else{let t=this.dialog.open(Gt,{data:{event:this.eventId,meetingId:null},width:"500px",maxWidth:"auto",panelClass:["custom-modalbox"]})}}onRescheduleMeeting(e){this.dialog.open(Gt,{data:{event:this.eventId,meetingId:e.meetingID},width:"500px",maxWidth:"auto",panelClass:["custom-modalbox"]}).afterClosed().subscribe(i=>{i&&i.status&&this.myEventSrv.meetings_count.next(this.myEventSrv.meetings_count.getValue()-1)})}onEditProfilePic(e){let t=this.dialog.open(yn,{width:"700px",maxWidth:"auto",position:{top:"55px"},panelClass:["animate__animated","slideInBottom","crop-profile-dialog"],data:{isHandset:this.isHandset}});this.subscriptions.add(t.afterClosed().pipe(U(i=>{if(i&&i.length>0){let l=i[0];this.pictureName=Ee.truncate(l,36);let f=i[2];this.picture=Ee.blobToFile(f,this.pictureName);let w=new vt(this.picture,1,1),y=vt.mapFormGroupToFormData(w,this.picture);return this.userProfileSrv.updateUserPicture(y,!1)}else return k(null)})).subscribe(i=>{i&&(this.updateSteps(Oe.UserAddLogo,this.userProfileSrv.profileSteps.getValue()),this.notificationSrv.success(i.message))},i=>{i&&i.status!==401&&this.openDialog(Ue.UNEXPECTED_ERR)}))}onEditCoverPic(e){let t=this.dialog.open(Ri,{width:"800px",maxHeight:"90vh",maxWidth:"auto",position:{top:"55px"},panelClass:["animate__animated","slideInBottom","crop-profile-dialog"],data:{data:e,maxSize:Ee.maxCoverPhotoSize,aspectRatio:4}});this.subscriptions.add(t.afterClosed().pipe(U(i=>{if(i&&i.length>0){let l=i[0];this.pictureName=Ee.truncate(l,36);let f=i[2];this.picture=Ee.blobToFile(f,this.pictureName);let w=new vt(this.picture,1,2),y=vt.mapFormGroupToFormData(w,this.picture);return this.userProfileSrv.updateUserPicture(y,!0)}else return k(null)})).subscribe(i=>{i&&(this.updateSteps(Oe.UserAddCover,this.userProfileSrv.profileSteps.getValue()),this.notificationSrv.success(i.message))},i=>{i&&i.status!==401&&this.openDialog(Ue.UNEXPECTED_ERR)}))}onDaySelect(e){this.activeMeetingDay=e,this.userProfileSrv.meetingSlots.next(e.daySlots)}onMeetingSlotSelect(e){this.isLoadingInside=!0,this.dialog.open(xn,{data:{slot:e.slot,user:e.user,abbreviation:this.timeZoneFromAPI},width:"620px",panelClass:"custom-modalbox"}).afterClosed().pipe(U(i=>i?this.userProfileSrv.arrangeMeeting(+this.eventId,e.slot,i.note):k(null)),U(i=>i?(i.status?(this.notificationSrv.success(this.translocoService.translate("profile.schedule.requestSent")),this.isLoadingInside=!1):(this.notificationSrv.error(i.message),this.isLoadingInside=!1),i.status?this.userProfileSrv.getMeetingDays(this.eventId,null,this.activeMeetingDay):k(null)):(this.isLoadingInside=!1,k(null)))).subscribe()}onCancelMeeting(e){let t=e.meeting.isApproved?this.translocoService.translate("myEvent.cancelMeeting"):!e.meeting.isApproved&&e.meeting.createdBy!==this.loggedUserId?this.translocoService.translate("profile.schedule.ignoreRequest"):this.translocoService.translate("myEvent.cancelRequest"),i=e.meeting.isApproved?this.translocoService.translate("myEvent.sureCancelMeeting"):!e.meeting.isApproved&&e.meeting.createdBy===this.loggedUserId?this.translocoService.translate("profile.schedule.areYouSure"):!e.meeting.isApproved&&e.meeting.createdBy!==this.loggedUserId&&e.blockUser?this.translocoService.translate("profile.schedule.ignoreFutureRequests"):!e.meeting.isApproved&&e.meeting.createdBy!==this.loggedUserId&&!e.blockUser?this.translocoService.translate("profile.schedule.removeRequest"):"";this.dialog.open(mt,{data:{title:t,subtitle:i},panelClass:["custom-modalbox"]}).afterClosed().pipe(U(f=>f?this.matchingSrv.cancelMeeting(e.meeting.meetingID,e.blockUser,this.eventId):k(null)),U(f=>f?f.status?(!e.meeting.isApproved&&e.meeting.createdBy!==this.loggedUserId&&this.myEventSrv.meetings_count.next(this.myEventSrv.meetings_count.getValue()-1),this.userProfileSrv.meetingInfo.next(null),this.userProfileSrv.getMeetingDays(this.eventId).pipe(U(w=>{if(w){this.timeZoneFromAPI=w.abbreviation;let y=w.days?.find(M=>M.isAvailable);if(this.activeMeetingDayIndex=w.days?.findIndex(M=>M.isAvailable),y)this.userProfileSrv.meetingSlots.next(y.daySlots);else return this.userProfileSrv.meetingSlots.next([]),k(null);return k(w)}return k(null)}))):k(null):k(null))).subscribe()}onApproveMeeting(e){this.cwActionClicked=!0,this.matchingSrv.approveMeeting(e.meetingID,this.eventId).pipe(U(t=>t.status?(this.myEventSrv.meetings_count.next(this.myEventSrv.meetings_count.getValue()-1),this.userProfileSrv.getMeetingDays(this.eventId)):(this.notificationSrv.error(t.message),k(null)))).subscribe(t=>this.cwActionClicked=!1)}onAddToCalendar(e){let t=new Date(e.info.meetingDateStartTime+"Z"),i=new Date(e.info.meetingDateEndTime+"Z"),l={title:"Meeting with "+e.info.meetingWith,location:e.info.location,description:e.info.notes,start:t,end:i};switch(e.cEnum){case 1:{let w=new Ve.ICalendar(l);if(window.flutter_inappwebview){var f=w.render();let y=Buffer.from(f).toString("base64"),M=`data:text/calendar;name=CalendarExport-${l.title}.ics;base64,${y}`;window.open(M,"_blank")}else w.download();break}case 2:{let w=new Ve.GoogleCalendar(l);window.open(w.render(),"_blank");break}case 3:{let w=new Ve.ICalendar(l);if(window.flutter_inappwebview){var f=w.render();let M=Buffer.from(f).toString("base64"),T=`data:text/calendar;name=CalendarExport-${l.title}.ics;base64,${M}`;window.open(T,"_blank")}else{let y=w.render(),M=ji.fixOutlookIcsContent(y,{uid:null,prodid:null}),T=new Blob([M],{type:"text/calendar;charset=utf-8"}),G=URL.createObjectURL(T),F=this.document.createElement("a");F.href=G,F.download=`${l.title}.ics`,F.style.display="none",this.document.body.appendChild(F),F.click(),this.document.body.removeChild(F),URL.revokeObjectURL(G)}break}case 4:{let w=new Ve.OutlookCalendar(l);window.open(w.render(),"_blank");break}case 5:{let w=new Ve.YahooCalendar(l);window.open(w.render(),"_blank");break}}}onMeetingSuggestionTrigger(e){let t=e.params;if(t.suggestion!="1")return;let i=t.startUtc,l=t.endUtc;if(!i||!l)return;let f=decodeURIComponent(i);if(!(0,ft.default)(f,ft.default.ISO_8601,!1).isValid())return;let y=decodeURIComponent(l);
1if(!(0,ft.default)(y,ft.default.ISO_8601,!1).isValid())return;let T=this.evSrv.isInLocalTimezone()?this.evSrv.localTimezone():this.eventDetails.ianaTimezone,G=this.getTimezoneUtcOffset(T),F=qt.addMinutes(new Date(f),G),ce=qt.addMinutes(new Date(y),G),he=zt(F,"YYYY-MM-ddTHH:mm:ss","en-US"),Ce=zt(ce,"YYYY-MM-ddTHH:mm:ss","en-US"),xe={slot:{start:he,end:Ce},user:this.user};this.onMeetingSlotSelect(xe)}getTimezoneUtcOffset(e){return ft.default.tz(e).utcOffset()}openDialog(e){setTimeout(()=>this.dialog.open(pt,{width:"400px",data:e,panelClass:"modalbox-purple"}))}filterProfileSteps(e,t){if(!e)return[];let i=this.authSrv.getRole()==0,l=Ye.canPostCommentShareOnFeed(t,i);return e.filter(w=>w.type==Oe.UserWritePost?!!l:!0)}openAbout(){this.dialog.open(Ht,{width:"470px",minWidth:"320px",panelClass:["custom-modalbox"],data:{about:this.user.about,eventId:this.eventId,fromWidget:!0}})}ngOnDestroy(){this.userProfileSrv.profileSteps.next(null),this.userProfileSrv.lastStepSubmit.next(!1),this.subscriptions.unsubscribe(),this.leftTimestamp=new Date().toISOString(),this.metricsSrv.sendBeaconUserProfile(this.arrivedTimestamp,this.leftTimestamp,this.timeSpent,this.eventId),this.interval&&(clearInterval(this.interval),this.timeSpent=0),this.companyProfileSrv.setProfileHomePage(!1),this.evSrv.setShowMainBackBtn(!1)}intervalFunc(){this.interval=setInterval(()=>{this.timeSpent++},1e3)}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(ie),p(Ut),p(Dt),p(ue),p(K),p(Q),p(Ie),p(Qe),p(W),p(q),p(Pt),p(ye),p(fe),p(we),p(Mt),p(re))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-profile"]],hostBindings:function(t,i){t&1&&g("visibilitychange",function(){return i.onPageHide()},ti)},decls:16,vars:19,consts:[["logged",""],["user_message",""],[1,"profile-container"],[3,"follow","connect","respondConnect","editProfile","editProfilePic","editCoverPic","contactInfo","messageLink","scheduleMeeting","navTabs","hasEditPerm","isHandset","isTablet","eventId","user","userTranslation"],[1,"d-flex","w100","profile-content"],[1,"mb-2"],[3,"profile","isHandset","steps"],[1,"stickySide"],[3,"user","isCompany","hasEditPerm","isHandset"],[1,"d-block","mb-4",3,"title","twoColumns"],["id","user_message",3,"threadInfo"],[3,"actionClicked","profile","isHandset","steps"],[3,"people","eventId"],["mat-raised-button","",1,"show-more"],["mat-raised-button","",1,"show-more",3,"click"],[1,"ml-1"],[3,"metricsInfo","keyMetricsType"]],template:function(t,i){t&1&&(r(0,"div",2)(1,"app-profile-header",3),b(2,"async"),g("follow",function(f){return i.onFollow(f)})("connect",function(f){return i.onConnect(f)})("respondConnect",function(f){return i.respondConnect(f)})("editProfile",function(f){return i.onEditProfile(f)})("editProfilePic",function(f){return i.onEditProfilePic(f)})("editCoverPic",function(f){return i.onEditCoverPic(f)})("contactInfo",function(f){return i.onOpenContactInfo(f)})("messageLink",function(f){return i.onRedirectToMessage(f)})("scheduleMeeting",function(f){return i.onScheduleMeetingBtn(f)}),a(),r(3,"div",4)(4,"main",5),x(5,"router-outlet"),a(),r(6,"aside"),m(7,da,1,3,"app-profile-wizard",6),b(8,"async"),r(9,"div",7),m(10,pa,1,4,"app-profile-contact-info",8),m(11,ua,4,7,"app-suggested-widget",9),H(12,_a,1,1,"ng-template",null,0,li),m(14,ga,3,3,"app-message-widget",10),b(15,"async"),a()()()()),t&2&&(o(),A("d-none",!P(2,13,i.isProfileHome)),_("navTabs",i.userProfileTabs)("hasEditPerm",i.user.profileId===i.loggedUserId)("isHandset",i.isHandset)("isTablet",i.isTablet)("eventId",i.eventId)("user",i.user)("userTranslation",i.userTranslation),o(6),u(i.user.profileId===i.loggedUserId&&i.steps&&!P(8,15,i.lastStepSubmit$)?7:-1),o(3),u(i.showContactDetails?10:-1),o(),u(i.hasPeople&&!i.isLoading?11:-1),o(3),u(!i.isHandset&&i.user.canMessageMe&&P(15,17,i.msgThread$)?14:-1))},dependencies:[wn,ui,cn,Qi,Yi,In,te,dn,pn,z,se],styles:[".profile-container[_ngcontent-%COMP%]{max-width:1190px;width:100%;margin:0 auto}main[_ngcontent-%COMP%]{width:100%}.stickySide[_ngcontent-%COMP%]{position:sticky!important;position:-webkit-sticky!important;-webkit-position:sticky!important;top:60px}@media(min-width:1301px){aside[_ngcontent-%COMP%]{display:block;width:370px;flex-shrink:0}main[_ngcontent-%COMP%]{max-width:calc(100% - 394px);margin-right:1.5rem}}@media(min-width:1025px)and (max-width:1300px){aside[_ngcontent-%COMP%]{display:block;width:280px;flex-shrink:0}main[_ngcontent-%COMP%]{max-width:calc(100% - 304px);margin-right:1.5rem}}@media screen and (max-width:1024px)and (min-width:768px){.d-flex.w100[_ngcontent-%COMP%]{flex-direction:column}}@media screen and (max-width:768px){.profile-content[_ngcontent-%COMP%]{flex-direction:column}.profile-container[_ngcontent-%COMP%]{padding:0 3px;margin-bottom:24px}}.mat-mdc-card[_ngcontent-%COMP%]{border-radius:24px;padding:24px;box-shadow:none}.show-more[_ngcontent-%COMP%]{width:100%;background-color:#e9edef!important;color:#637c8e!important;margin-top:10px}"]})}}return n})();function va(n,d){n&1&&(r(0,"div",2),x(1,"app-loading-spinner",7),a())}function xa(n,d){if(n&1){let e=S();r(0,"app-add-acitivity",8),b(1,"async"),g("newPost",function(i){h(e);let l=s();return C(l.savePost(i))}),a()}if(n&2){let e=s();_("user",P(1,5,e.user$))("postArticle",e.postArticle)("isFromUserProfile",!0)("canPublishVideo",e.canPublishVideo)("requestFrom",e.requestFrom)}}function ba(n,d){if(n&1){let e=S();r(0,"div",4)(1,"button",9),g("click",function(){h(e);let i=s();return C(i.onClickCreatePost())}),x(2,"mat-icon",10),c(3),b(4,"transloco"),a()()}
1n&2&&(o(3),v(P(4,1,"generalFeed.createPost")))}function Sa(n,d){if(n&1){let e=S();r(0,"app-activities",11),b(1,"async"),b(2,"async"),b(3,"async"),b(4,"async"),b(5,"async"),g("seeAllActivities",function(){h(e);let i=s();return C(i.onSeeAllClick("activities"))})("removeLast",function(){h(e);let i=s();return C(i.onRemoveLast())}),a()}if(n&2){let e,t,i=s();_("eventID",i.eventID)("isOwner",P(1,7,i.user$)&&P(2,9,i.userProfileDetails$)&&((e=P(3,11,i.user$))==null?null:e.id)==((e=P(4,13,i.userProfileDetails$))==null?null:e.profileId)&&!i.loadAfterSave&&i.canMakeFeedActions)("activities",i.activities)("activitiesCount",i.activitiesCount)("profileId",i.profileId)("checkSharedPost",!0)("ownProfileFeed",((t=P(5,15,i.userProfileDetails$))==null?null:t.profileId)===i.loggedUserId)}}function Pa(n,d){if(n&1){let e=S();r(0,"app-sessions",12),b(1,"async"),g("seeAllClick",function(){h(e);let i=s();return C(i.onSeeAllClick("sessions"))})("sessionenrollaction",function(i){h(e);let l=s();return C(l.onSessionEnrollAction(i))})("bookmarkClick",function(i){h(e);let l=s();return C(l.onBookmarkClick(i))}),a()}if(n&2){let e=s();_("isHandset",e.isHandset)("userSessions",e.userSessions)("eventId",e.eventID)("sessions",P(1,7,e.sessions$))("sessionSettings",e.sessionSettings)("sessionCount",e.sessionCount)("actionSessionTab",e.actionSessionTab)}}function wa(n,d){n&1&&x(0,"app-loading-spinner",7)}var En=(()=>{class n{constructor(e,t,i,l,f,w,y,M,T,G,F,ce,he,Ce){this.translocoService=e,this.utilSrv=t,this.userProfileSrv=i,this.router=l,this.companyProfileSrv=f,this.authSrv=w,this.dialog=y,this.agendaSrv=M,this.evSrv=T,this.notificationSrv=G,this.feedSrv=F,this.metricsSrv=ce,this.myEvSrv=he,this.dialogContent=Ce,this.activitiesCount=0,this.subscriptions=new N,this.sessionCount=0,this.selectedTag=1,this.hasPeople=!1,this.userSessions=!0,this.spinnerSettings={diameter:100,strokeWidth:6},this.actionSessionTab="actionSessionTab",this.loadAfterSave=!1,this.canMakeFeedActions=!1,this.canViewPosts=!1,this.canViewAgenda=!1,this.canPublishVideo=!1,this.requestFrom=qe.UserProfile,this.previousActivitiesLength=0}ngOnInit(){this.subscriptions.add(this.utilSrv.isHandsetSmall.subscribe(e=>{this.isHandset=e})),this.sessions$=this.agendaSrv.customSessionsList$,this.loading=!0,this.loggedUserId=this.authSrv.getLoggedUserId(),this.subscriptions.add(this.evSrv.eventId.subscribe(e=>this.eventID=e)),this.canPublishVideo=this.authSrv.getCanPublishVideo(this.eventID),this.subscriptions.add(this.userProfileSrv.userProfileDetails$.pipe(ve(e=>this.about=e.about!=null?e.about:""),St((e,t)=>e.username===t.username),ve(e=>{this.loading=!0,this.userName=e.username,this.profileId=e.profileId,this.hasEditPerm=this.loggedUserId===e.profileId}),U(()=>(this.feedSrv.allActivities.next([]),this.feedSrv.getUserFeed(1,2,this.eventID,this.userProfileSrv.userProfileDetails.getValue().profileId,!1))),U(e=>(this.activitiesCount=e.totalActivities,this.loading=!1,this.userProfileSrv.getSessions(0,3,this.eventID)))).subscribe(e=>{this.sessionCount=e.total,this.loading=!1})),this.subscriptions.add(this.translocoService.selectTranslate("profile.companyProfile.teamMembers").subscribe(e=>{e&&(this.sessionSettings={title:this.translocoService.translate("profile.companyProfile.sessions"),showLabels:!1,showViewMore:!0},this.peopleSettings={title:this.translocoService.translate("profile.community"),showFilters:!1,showViewMore:!0})})),this.subscriptions.add(this.feedSrv.allActivities.asObservable().subscribe(e=>{this.activities=e.filter(i=>i.isScheduled===!1),this.activities=this.activities.slice(0,2),this.pinnedPost=e.filter(i=>!i.shareInfo&&i.isPinned||i.shareInfo&&i.shareInfo?.isPinned);let t=e.length-this.previousActivitiesLength;this.previousActivitiesLength>0&&t!==0&&(this.activitiesCount=Math.max(0,this.activitiesCount+t)),this.previousActivitiesLength=e.length})),this.metricsSrv.clickedUserSection(this.eventID,"home").subscribe(),this.user$=this.authSrv.loggedUser$,this.userProfileDetails$=this.userProfileSrv.userProfileDetails$,this.feedSrv.getArticleObj().subscribe(e=>{e&&e.length>0&&(this.postArticle=e)}),this.subscriptions.add(this.myEvSrv.eventSettingsModel$.subscribe(e=>{let t=this.authSrv.getRole()==0;this.canMakeFeedActions=Ye.canPostCommentShareOnFeed(e,t),this.canViewPosts=e?.enableFeed,this.canViewAgenda=e?.enableAgenda}))}onSeeAllClick(e){e&&(this.eventID?this.router.navigate(["/event",this.eventID,"user",this.userName,e]):this.router.navigate(["/user",this.userName,e]))}onEditAbout(e){let t=this.dialog.open(fn,{data:{about:e,company:!1}
1,width:"700px",maxHeight:"500",maxWidth:"auto",panelClass:["custom-modalbox"]});this.subscriptions.add(t.afterClosed().pipe(U(i=>i?this.userProfileSrv.updateAbout(i.about):k(null))).subscribe(i=>{i&&this.openDialog(i.message)},i=>{i&&i.status!==401&&this.openDialog(Ue.UNEXPECTED_ERR)}))}openDialog(e){setTimeout(()=>this.dialog.open(pt,{width:"400px",data:e,panelClass:"modalbox-purple"}))}onSessionEnrollAction(e){e.isEnrolled?this.subscriptions.add(this.agendaSrv.enrollSession_CustomList(e.session.id).subscribe(t=>{t.status?(this.notificationSrv.success(t.message),t.isFirstEnroll&&callYM("reachGoal","targetsignup")):this.notificationSrv.warn(t.message)})):this.subscriptions.add(this.agendaSrv.leaveSession_CustomList(e.session.id).subscribe(t=>{t.status?this.notificationSrv.success(t.message):this.notificationSrv.warn(t.message)}))}onBookmarkClick(e){e&&this.companyProfileSrv.bookmarkSession(e.id,e.isBookmarked).subscribe(t=>{t.status?(e.isBookmarked=!e.isBookmarked,this.notificationSrv.success(t.message)):this.notificationSrv.warn(t.message)},t=>{t&&t.status!==401&&this.notificationSrv.warn(Ue.UNEXPECTED_ERR)})}onClickCreatePost(){var e=qe.UserProfile;this.router.navigate([`/event/${this.eventID}/create-post`],{queryParams:{uId:this.loggedUserId,pageId:e}})}savePost(e){e&&(this.loadAfterSave=!0,this.subscriptions.add(this.feedSrv.addPost(e.postForm,e.text,e.canPost,e.peopleArr,e.hashtags,e.companiesArr,e.companyId,e.groupIds,e.postTo,e.postAsGroup).subscribe(t=>{this.feedSrv.setArticleObj(null),this.postArticle=[],this.loadAfterSave=!1;let i=t.type==Me.KinescopeVideoProcessing||t.type==Me.KinescopeVerticalVideoProcessing?this.translocoService.translate("generalFeed.uploadVideoInfo"):this.translocoService.translate("generalFeed.createArticle.contentAdded");this.notificationSrv.success(i);let l=e.isOrganizer;if((e.postForm.type==Me.PlainVideo||e.postForm.type==Me.KinescopeVideoProcessing)&&!e.isFromContent&&l&&this.openAddToContentDialog(e),e.companyId&&e.postFrom.username){let f=e.postFrom.username;this.loadAfterSave=!0,this.loading=!0,this.router.navigate([`/event/${this.eventID}/company/${f}/home`])}},t=>{this.loadAfterSave=!1,this.feedSrv.setArticleObj(null),this.postArticle=[],t.error&&this.notificationSrv.error(t.error.message)})))}openAddToContentDialog(e){let t=this.dialogContent.open(Vt,{width:"550px",minWidth:"320px",panelClass:"custom-modalbox",disableClose:!0,data:Pe(Se({},e.postForm),{groupIds:e.groupIds,eventId:this.eventID,skipRedirect:!0})})}onRemoveLast(){this.pinnedPost=this.pinnedPost.pop();let e=this.pinnedPost.shareInfo;this.feedSrv.allActivities.next(this.feedSrv.allActivities.getValue().map(t=>(t.activityId===this.pinnedPost.activityId&&!e?t.isPinned=!1:e&&t.shareInfo?.activityInfoId===this.pinnedPost.shareInfo?.activityInfoId&&(t.shareInfo.isPinned=!1),t)))}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(ue),p(ie),p(q),p(we),p(K),p(Q),p(yt),p(W),p(ye),p(kt),p(fe),p(Ie),p(Q))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-home"]],decls:17,vars:24,consts:[[1,"activity-card","box-shadow"],[1,"add-activity-content"],[1,"text-center"],[3,"user","postArticle","isFromUserProfile","canPublishVideo","requestFrom"],[1,"create-post-h"],[3,"eventID","isOwner","activities","activitiesCount","profileId","checkSharedPost","ownProfileFeed"],[3,"isHandset","userSessions","eventId","sessions","sessionSettings","sessionCount","actionSessionTab"],["color","#ccc"],[3,"newPost","user","postArticle","isFromUserProfile","canPublishVideo","requestFrom"],["mat-button","","type","button",1,"btn-outline-accent","brd-transparent",3,"click"],["svgIcon","edit",1,"mr-2","icon-stroke"],[3,"seeAllActivities","removeLast","eventID","isOwner","activities","activitiesCount","profileId","checkSharedPost","ownProfileFeed"],[3,"seeAllClick","sessionenrollaction","bookmarkClick","isHandset","userSessions","eventId","sessions","sessionSettings","sessionCount","actionSessionTab"]],template:function(t,i){if(t&1&&(r(0,"div",0)(1,"div",1),m(2,va,2,0,"div",2),m(3,xa,2,7,"app-add-acitivity",3),b(4,"async"),b(5,"async"),b(6,"async"),b(7,"async"),a(),m(8,ba,5,3,"div",4),b(9,"async"),b(10,"async"),b(11,"async"),b(12,"async"),a(),m(13,Sa,6,17,"app-activities",5),m(14,Pa,2,9,"app-sessions",6),b(15,"async"),m(16,wa,1,0,"app-loading-spinner",7)),t&2){let l,f;o(2),u(i.loadAfterSave?2:-1),o(),u(!i.isHandset&&P(4,6,i.user$)&&P(5,8,i.userProfileDetails$)&&((l=P(6,10,i.user$))==null?null:l.id)==((l=P(7,12,i.userProfileDetails$))==null?null:l.profileId)&&!i.loadAfterSave&&i.canMakeFeedActions?3:-1),o(5),u(i.isHandset&&P(9,14,i.user$)&&P(10,16,i.userProfileDetails$)&&((f=P(11,18,i.user$))==null?null:f.id)==((f=P(12,20,i.userProfileDetails$))==null?null:f.profileId)&&i.canMakeFeedActions?8:-1),o(5),u(i.activities&&!i.loading&&i.canViewPosts?13:-1),o(),u(i.canViewAgenda&&P(15,22,i.sessions$)&&!i.loading?14:-1),o(2),u(i.loading?16:-1)}},dependencies:[ge,Ft,te,L,Ki,At,z,se],styles:["app-people-list.applist .person{box-shadow:none!important}.create-post-h[_ngcontent-%COMP%]{padding:15px;border-radius:20px;background-color:#fff;margin-bottom:16px;width:100%;text-align:center}.create-post-h[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{width:100%;min-height:42px}"]})}}return n})();function Ia(n,d){n&1&&(r(0,"div",4),x(1,"app-loading-spinner",7),a())}function ya(n,d){if(n&1){let e=S();r(0,"app-add-acitivity",8),b(1,"async"),g("newPost",function(i){h(e);let l=s();return C(l.savePost(i))}),a()}if(n&2){let e=s();_("user",P(1,5,e.user$))("postArticle",e.postArticle)("isFromUserProfile",!0)("canPublishVideo",e.canPublishVideo)("requestFrom",e.requestFrom)}}function Ma(n,d){if(n&1){let e=S();r(0,"div",13),g("click",function(){h(e);let i=s(3);return C(i.selectTab(2))}),r(1,"span"),c(2),b(3,"transloco"),a()()}if(n&2){let e=s(3);_("ngClass",e.selectedTab===2?"selected-tab":""),o(2),v(P(3,2,"notification.scheduled"))}}function Ea(n,d){if(n&1){let e=S();r(0,"div",10)(1,"div",13),g("click",function(){h(e);let i=s(2);return C(i.selectTab(1))}),r(2,"span"),c(3),b(4,"transloco"),a()(),m(5,Ma,4,4,"div",14),a()}if(n&2){let e=s(2);o(),_("ngClass",e.selectedTab===1?"selected-tab":""),o(2),v(P(4,3,"notification.allPost")),o(2),u(e.canMakeFeedActions?5:-1)}}function Ta(n,d){if(n&1&&(x(0,"app-activity-wrapper",15),b(1,"async")),n&2){let e=d.$implicit,t=s(3);_("eventId",t.eventId)("activity",e)("activityTimeTranslation",P(1,4,t.activityTimeTranslation$))("requestFrom",t.requestFrom)}}function ka(n,d){if(n&1&&j(0,Ta,2,6,"app-activity-wrapper",15,$),n&2){let e=s(2);R(e.scheduledPosts)}}function Ua(n,d){if(n&1){let e=S();r(0,"app-activity-wrapper",17),b(1,"async"),b(2,"async"),g("removeLast",function(){h(e);let i=s(3);return C(i.onRemoveLast())}),a()}if(n&2){let e,t=d.$implicit,i=s(3);_("activity",t)("canPost",!1)("eventId",i.eventId)("ownProfileFeed",((e=P(1,6,i.userProfileDetails$))==null?null:e.profileId)===i.loggedUserId)("activityTimeTranslation",P(2,8,i.activityTimeTranslation$))("requestFrom",i.requestFrom)}}function Oa(n,d){if(n&1&&j(0,Ua,3,10,"app-activity-wrapper",16,$),n&2){let e=s(2);R(e.activities)}}function Da(n,d){n&1&&(r(0,"mat-card",11)(1,"h1",18),c(2),b(3,"transloco"),a(),r(4,"div",19),c(5),b(6,"transloco"),a()()),n&2&&(o(2),v(P(3,2,"profile.activities")),o(3),v(P(6,4,"profile.noActivities")))}function Aa(n,d){n&1&&(r(0,"div",12),x(1,"app-loading-spinner",7),a())}function Va(n,d){if(n&1){let e=S();r(0,"div",9),g("scrolled",function(){h(e);let i=s();return C(i.onScroll())}),m(1,Ea,6,5,"div",10),b(2,"async"),m(3,ka,2,0),m(4,Oa,2,0),m(5,Da,7,6,"mat-card",11),b(6,"async"),m(7,Aa,2,0,"div",12),a()}if(n&2){let e,t,i=s();_("infiniteScrollDistance",2)("infiniteScrollThrottle",500),o(),u(((e=P(2,7,i.userProfileDetails$))==null?null:e.profileId)===i.loggedUserId?1:-1),o(2),u(i.selectedTab===2&&i.canMakeFeedActions?3:-1),o(),u(i.selectedTab===1&&i.activities?4:-1),o(),u(!i.loading&&((t=P(6,9,i.activities$))==null?null:t.length)==0?5:-1),o(2),u(i.loading?7:-1)}}var Tn=(()=>{class n{constructor(e,t,i,l,f,w,y,M,T,G,F,ce){this.userProfileSrv=e,this.feedSrv=t,this.metricsSrv=i,this.evSrv=l,this.translocoSrv=f,this.companyProfileSrv=w,this.router=y,this.authSrv=M,this.notifyService=T,this.myEvSrv=G,this.cdr=F,this.dialog=ce,this.loadAfterSave=!1,this.hasMoreScheduled=!1,this.pageNumber=1,this.pageNumberAllPost=1,this.pageNumberScheduled=1,this.pageSize=5,this.subscriptions=new N,this.scheduledPosts=[],this.selectedTab=1,this.canMakeFeedActions=!1,this.isScheduledTabSelected=!1,this.initScheduledPost=!0,this.canPublishVideo=!1,this.destroy$=new Qt,this.requestFrom=qe.UserProfile}ngOnInit(){this.loggedUserId=this.authSrv.getLoggedUserId(),this.companyProfileSrv.setProfileHomePage(!1),this.evSrv.setShowMainBackBtn(!1),this.eventId=this.evSrv.getCurrentEventId(),this.canPublishVideo=this.authSrv.getCanPublishVideo(this.eventId),this.loading=!0,this.feedSrv.allActivities.next([]),this.feedSrv.getUserFeed(this.pageNumberAllPost,this.pageSize,this.eventId,this.userProfileSrv.userProfileDetails.getValue().profileId,!1).subscribe(e=>{this.hasMore=e?this.hasMorePosts(e.totalActivities):!1,this.loading=!1}),this.activities$=this.feedSrv.allActivities.asObservable(),this.subscriptions.add(this.feedSrv.selectedTabFromProfile.asObservable().subscribe(e=>{e&&(this.selectTab(e),this.cdr.detectChanges())})),this.metricsSrv.clickedUserSection(this.eventId,"activities").subscribe(),this.activityTimeTranslation$=this.translocoSrv.selectTranslateOb
1ject("activityTimePipe"),this.user$=this.authSrv.loggedUser$,this.userProfileDetails$=this.userProfileSrv.userProfileDetails$,this.subscriptions.add(this.feedSrv.allActivities.asObservable().subscribe(e=>{e&&(this.activities=e.filter(t=>t.isScheduled===!1),this.allPosts=this.activities,this.pinnedPost=e.filter(t=>!t.shareInfo&&t.isPinned||t.shareInfo&&t.shareInfo?.isPinned))})),this.subscriptions.add(this.feedSrv.scheduledActivities.asObservable().subscribe(e=>{e&&(this.scheduledPosts=e)})),this.feedSrv.getArticleObj().subscribe(e=>{e&&e.length>0&&(this.postArticle=e)}),this.subscriptions.add(this.myEvSrv.eventSettingsModel$.subscribe(e=>{let t=this.authSrv.getRole()==0;this.canMakeFeedActions=Ye.canPostCommentShareOnFeed(e,t)})),this.subscriptions=Yt(5e3).pipe(Zt(this.destroy$)).subscribe(()=>{this.checkScheduledPosts()})}onScroll(){this.shouldNotFetchMore()||(this.loading=!0,this.updatePageNumber(),this.getActivityFeed(this.pageNumber,this.pageSize,this.isScheduledTabSelected))}shouldNotFetchMore(){if(this.selectedTab==2){if(this.scheduledPosts.length==0||!this.hasMoreScheduled)return!0}else if(!this.hasMore)return!0;return!1}updatePageNumber(){this.selectedTab==2?(this.pageNumberScheduled+=1,this.pageNumber=this.pageNumberScheduled,this.isScheduledTabSelected=!0):(this.pageNumberAllPost+=1,this.pageNumber=this.pageNumberAllPost,this.isScheduledTabSelected=!1)}getActivityFeed(e,t,i){this.feedSrv.getUserFeed(e,t,this.eventId,this.userProfileSrv.userProfileDetails.getValue().profileId,i).subscribe(l=>{l&&(this.selectedTab==2?(this.pageNumberScheduled===1?this.feedSrv.scheduledActivities.next(l.activities):this.feedSrv.scheduledActivities.next(this.feedSrv.scheduledActivities.getValue().concat(l.activities)),this.hasMoreScheduled=this.hasMorePosts(l.totalActivities)):(this.pageNumber===1?this.feedSrv.allActivities.next(l.activities):this.feedSrv.allActivities.next(this.feedSrv.allActivities.getValue().concat(l.activities)),this.hasMore=this.hasMorePosts(l.totalActivities))),this.loading=!1})}hasMorePosts(e){return e==0?!1:this.feedSrv.allActivities.getValue().length<e}savePost(e){e&&(this.loadAfterSave=!0,this.subscriptions.add(this.feedSrv.addPost(e.postForm,e.text,e.canPost,e.peopleArr,e.hashtags,e.companiesArr,e.companyId,e.groupIds,e.postTo,e.postAsGroup).subscribe(t=>{this.feedSrv.setArticleObj(null),this.postArticle=[],this.loadAfterSave=!1;let i=t.type==Me.KinescopeVideoProcessing||t.type==Me.KinescopeVerticalVideoProcessing?this.translocoSrv.translate("generalFeed.uploadVideoInfo"):this.translocoSrv.translate("generalFeed.createArticle.contentAdded");this.notifyService.success(i);let l=e.isOrganizer||!e.canPublishVideo;if((e.postForm.type==Me.PlainVideo||e.postForm.type==Me.KinescopeVideoProcessing)&&!e.isFromContent&&l&&this.openAddToContentDialog(e),e.companyId&&e.postFrom.username){this.redirectToCompany=!0;let f=e.postFrom.username;this.router.navigate([`/event/${this.eventId}/company/${f}/home`])}},t=>{this.loadAfterSave=!1,this.feedSrv.setArticleObj(null),this.postArticle=[],t.error&&this.notifyService.error(t.error.message)})))}openAddToContentDialog(e){let t=this.dialog.open(Vt,{width:"550px",minWidth:"320px",panelClass:"custom-modalbox",disableClose:!0,data:Pe(Se({},e.postForm),{groupIds:e.groupIds,eventId:this.eventId,skipRedirect:!0})})}onBackClick(){this.companyProfileSrv.setProfileHomePage(!0),this.router.navigate(["/event",this.eventId,"user",this.userProfileSrv.userProfileDetails.getValue().username])}checkScheduledPosts(){let e;return this.scheduledPosts?.length>0&&this.feedSrv.scheduledActivities.next(this.feedSrv.scheduledActivities.getValue().map(t=>{if(t){let i=t.time.endsWith("Z")?new Date(t.time):new Date(t.time+"Z");return t.isScheduled===!0&&i<new Date&&(t.isScheduled=!1,e=t),t}})),e&&(this.feedSrv.allActivities.next([e,...this.feedSrv.allActivities.getValue()]),this.feedSrv.scheduledActivities.next(this.feedSrv.scheduledActivities.getValue().filter(t=>e.activityId!==t.activityId))),!0}selectTab(e){this.selectedTab!==e&&(this.selectedTab=e,this.requestFrom=this.selectedTab==2?qe.UserProfileScheduled:qe.UserProfile,e==2&&this.initScheduledPost&&(this.loading=!0,this.get
1ScheduledUserFeed()))}getScheduledUserFeed(){this.initScheduledPost=!1,this.getActivityFeed(this.pageNumberScheduled,this.pageSize,!0)}onRemoveLast(){this.pinnedPost=this.pinnedPost.pop();let e=this.pinnedPost.shareInfo;this.feedSrv.allActivities.next(this.feedSrv.allActivities.getValue().map(t=>(t.activityId===this.pinnedPost.activityId&&!e?t.isPinned=!1:e&&t.shareInfo?.activityInfoId===this.pinnedPost.shareInfo?.activityInfoId&&(t.shareInfo.isPinned=!1),t)))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.destroy$.next(),this.destroy$.complete(),this.router.url.includes("event-feed")||this.feedSrv.allActivities.next([]),this.feedSrv.scheduledActivities.next([])}static{this.\u0275fac=function(t){return new(t||n)(p(ie),p(kt),p(fe),p(W),p(B),p(we),p(q),p(K),p(ye),p(Ie),p(ci),p(Q))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-activities"]],decls:13,vars:14,consts:[["mat-button","",1,"accent-color","back-btn",3,"click"],["svgIcon","chevron_left","classd","icon-stroke small-icon"],[1,"activity-card","box-shadow"],[1,"add-activity-content"],[1,"text-center"],[3,"user","postArticle","isFromUserProfile","canPublishVideo","requestFrom"],["infiniteScroll","",1,"mt-2",3,"infiniteScrollDistance","infiniteScrollThrottle"],["color","#ccc"],[3,"newPost","user","postArticle","isFromUserProfile","canPublishVideo","requestFrom"],["infiniteScroll","",1,"mt-2",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle"],[1,"d-flex","tabs-card","mt-2","p-3"],["appearance","outlined",1,"card-no-content"],[1,"mt-4"],[1,"post-tabs",3,"click","ngClass"],[1,"post-tabs",3,"ngClass"],[3,"eventId","activity","activityTimeTranslation","requestFrom"],[1,"usrPrfl",3,"activity","canPost","eventId","ownProfileFeed","activityTimeTranslation","requestFrom"],[1,"usrPrfl",3,"removeLast","activity","canPost","eventId","ownProfileFeed","activityTimeTranslation","requestFrom"],[1,"secondary-text"],[1,"noContent"]],template:function(t,i){if(t&1&&(r(0,"button",0),g("click",function(){return i.onBackClick()}),x(1,"mat-icon",1),c(2),b(3,"transloco"),a(),r(4,"div",2)(5,"div",3),m(6,Ia,2,0,"div",4),m(7,ya,2,7,"app-add-acitivity",5),b(8,"async"),b(9,"async"),b(10,"async"),b(11,"async"),a()(),m(12,Va,8,11,"div",6)),t&2){let l;o(2),v(P(3,4,"profile.return")),o(4),u(i.loadAfterSave?6:-1),o(),u(P(8,6,i.user$)&&P(9,8,i.userProfileDetails$)&&((l=P(10,10,i.user$))==null?null:l.id)==((l=P(11,12,i.userProfileDetails$))==null?null:l.profileId)&&!i.loadAfterSave&&i.canMakeFeedActions?7:-1),o(5),u(i.redirectToCompany?-1:12)}},dependencies:[te,L,ge,Ft,$e,Ke,Gi,Et,z,se],styles:["app-activity-wrapper.usrPrfl:first-of-type .activity-card{margin-top:0}.card-no-content[_ngcontent-%COMP%]{padding:24px;border-bottom-left-radius:24px;border-bottom-right-radius:24px;margin-bottom:24px}.noContent[_ngcontent-%COMP%]{font-size:1rem}.back-btn[_ngcontent-%COMP%]{line-height:initial;padding:5px 0;text-align:left;max-width:120px}.back-btn[_ngcontent-%COMP%]   .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.back-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:12px;width:16px!important;height:16px!important;margin-right:4px}.tabs-card[_ngcontent-%COMP%]{border-radius:24px 24px 0 0;box-shadow:none;background-color:#fff;margin-bottom:-16px}.post-tabs[_ngcontent-%COMP%]{padding:8px 18px;border-radius:12px;cursor:pointer;font-family:Montserrat;font-size:13px;font-weight:500;line-height:16px;text-align:left;color:#637c8e}.post-tabs[_ngcontent-%COMP%]:first-of-type{margin-right:5px}.selected-tab[_ngcontent-%COMP%]{background-color:#e9edef}"]})}}return n})();function Fa(n,d){n&1&&x(0,"app-loading-spinner",2)}var kn=(()=>{class n{constructor(e,t,i,l,f,w,y,M,T){this.translocoService=e,this.utilSrv=t,this.userProfileSrv=i,this.agendaSrv=l,this.metricsSrv=f,this.evSrv=w,this.router=y,this.companyProfileSrv=M,this.notificationSrv=T,this.subscriptions=new N,this.hasMore=!0,this.start=0,this.end=3,this.userSessions=!0,this.actionSessionTab="actionSessionTab"}ngOnInit(){this.subscriptions.add(this.utilSrv.isHandsetSmall.subscribe(e=>{this.isHandset=e})),this.eventId=this.evSrv.getCurrentEventId(),this.subscriptions.add(this.translocoService.selectTranslate("profile.sessions").subscribe(e=>{e&&(this.sessionSettings={title:this.translocoService.translate("profile.sessions"),showLabels:!1,showViewMore:!1})}
1)),this.sessions$=this.agendaSrv.customSessionsList$,this.loadSessions(),this.metricsSrv.clickedUserSection(this.eventId,"sessions").subscribe(),this.user$=this.userProfileSrv.userProfileDetails$,this.user$.subscribe(e=>{this.username=e.username}),this.companyProfileSrv.setProfileHomePage(!1),this.evSrv.setShowMainBackBtn(!1)}loadSessions(){this.loading=!0,this.userProfileSrv.getSessions(this.start,this.end,this.eventId).subscribe(e=>{this.loading=!1,this.start===0&&(this.sessionCount=e.total),this.hasMore=e.sessions.length>0})}onSeeAllClick(e){this.sessionSettings.showViewMore=!1}onScroll(){this.hasMore&&(this.start=this.end,this.end+=3,this.loadSessions())}onSessionEnrollAction(e){e.isEnrolled?this.subscriptions.add(this.agendaSrv.enrollSession_CustomList(e.session.id,!1,e.session.event.eventID).subscribe(t=>{t.status?(this.notificationSrv.success(t.message),t.isFirstEnroll&&callYM("reachGoal","targetsignup")):this.notificationSrv.warn(t.message)})):this.subscriptions.add(this.agendaSrv.leaveSession_CustomList(e.session.id,e.session.event.eventID).subscribe(t=>{t.status?this.notificationSrv.success(t.message):this.notificationSrv.warn(t.message)}))}onBackClick(e){e&&(this.companyProfileSrv.setProfileHomePage(!0),this.router.navigate(["/event",this.eventId,"user",this.username]))}onBookmarkClick(e){e&&this.companyProfileSrv.bookmarkSession(e.id,e.isBookmarked).subscribe(t=>{t.status?(e.isBookmarked=!e.isBookmarked,this.notificationSrv.success(t.message)):this.notificationSrv.warn(t.message)},t=>{t&&t.status!==401&&this.notificationSrv.warn(Ue.UNEXPECTED_ERR)})}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(ue),p(ie),p(yt),p(fe),p(W),p(q),p(we),p(ye))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-sessions"]],decls:4,vars:14,consts:[["infiniteScroll","",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],[3,"sessionenrollaction","seeAllClick","backClick","bookmarkClick","eventId","sessions","sessionSettings","sessionCount","isHandset","userSessions","showBackBtn","actionSessionTab"],["color","#ccc"]],template:function(t,i){t&1&&(r(0,"div",0),g("scrolled",function(){return i.onScroll()}),r(1,"app-sessions",1),b(2,"async"),g("sessionenrollaction",function(f){return i.onSessionEnrollAction(f)})("seeAllClick",function(f){return i.onSeeAllClick(f)})("backClick",function(f){return i.onBackClick(f)})("bookmarkClick",function(f){return i.onBookmarkClick(f)}),a(),m(3,Fa,1,0,"app-loading-spinner",2),a()),t&2&&(_("infiniteScrollDistance",2)("infiniteScrollThrottle",500)("infiniteScrollDisabled",!i.hasMore||i.loading),o(),_("eventId",i.eventId)("sessions",P(2,12,i.sessions$))("sessionSettings",i.sessionSettings)("sessionCount",i.sessionCount)("isHandset",i.isHandset)("userSessions",i.userSessions)("showBackBtn",!0)("actionSessionTab",i.actionSessionTab),o(2),u(i.loading?3:-1))},dependencies:[$e,At,ge,z],encapsulation:2})}}return n})();function Na(n,d){if(n&1&&(r(0,"span"),c(1),b(2,"date"),a()),n&2){let e=s().$implicit,t=s();o(),v(D(2,1,e==null?null:e.generalInfo.dateFrom,t.formatDates(e.generalInfo.dateFrom,e.generalInfo.dateTo)+" - "))}}function La(n,d){if(n&1&&(r(0,"mat-card-subtitle",14),c(1),a()),n&2){let e=s().$implicit;o(),I(" ",e.location," ")}}function Ba(n,d){if(n&1&&(r(0,"mat-card-content",15)(1,"div",13),c(2),a()()),n&2){let e=s().$implicit;o(2),I(" ",e.description," ")}}function Ha(n,d){if(n&1){let e=S();r(0,"div",4)(1,"mat-card",7)(2,"div",8),g("click",function(){let i=h(e).$implicit,l=s();return C(l.onSelect(i.ID))}),x(3,"img",9),a(),r(4,"mat-card-title",10)(5,"a",11),g("click",function(){let i=h(e).$implicit,l=s();return C(l.onSelect(i.ID))}),c(6),a()(),r(7,"mat-card-title",12)(8,"a",13),m(9,Na,3,4,"span"),c(10),b(11,"date"),a()(),m(12,La,2,1,"mat-card-subtitle",14),m(13,Ba,3,1,"mat-card-content",15),a()()}if(n&2){let e=d.$implicit,t=s();o(3),_("src",(e==null?null:e.cover)||"../../assets/images/event-cover.jpg",Y),o(2),_("matTooltipPosition","above")("matTooltip",e==null?null:e.name),o(),v(e==null?null:e.name),o(3),u(t.datesAreOnSameDay(e.generalInfo.dateFrom,e.generalInfo.dateTo)?-1:9),o(),ae(" ",D(11,9,e==null?null:e.generalInfo.dateTo,"d MMM, y")," (",e==null?null:e.generalInfo.abbreviation,")"),o(2),u(e.location?12:-1),o(),u(e.description?13:-1)}}function $a(n,d){n&1&&(r(0,"div",5),c(1),b(2,"transloco"),a()),n&2&&(o(),I(" ",P(2,1,"events.noEvents")," "))}function ja(n,d){n&1&&x(0,"app-loading-spinner",6)}var Un=(()=>{class n{constructor(e,t,i,l){this.userProfileSrv=e,this.router=t,this.metricsSrv=i,this.evSrv=l,this.pageNumber=1,this.pageSize=6}ngOnInit(){this.events$=this.userProfileSrv.events$,this.loading=!0,this.userProfileSrv.getEvents(this.pageNumber,this.pageSize).subscribe(e=>this.loading=!1),this.metricsSrv.clickedUserSection(this.evSrv.getCurrentEventId()?.toString(),"events").subscribe()}onScroll(){this.pageNumber+=1,this.loading=!0,this.userProfileSrv.getEvents(this.pageNumber,this.pageSize).subscribe(e=>this.loading=!1)}onSelect(e){this.router.navigate(["/event",e])}formatDates(e,t){return Hi(e,t)}datesAreOnSameDay(e,t){return Bi(e,t)}static{this.\u0275fac=function(t){return new(t||n)(p(ie),p(q),p(fe),p(W))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-events"]],decls:14,vars:14,consts:[["infiniteScroll","",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],["appearance","outlined"],[1,"secondary-text"],[1,"row"],[1,"col-12","col-md-6","mb-3"],[1,"noContent"],["color","#ccc"],["appearance","outlined",1,"event-card","small","mat-elevation-z4","card-height"],["mat-card-image","",1,"img",3,"click"],["alt","",3,"src"],[1,"eventName","font-bold","mb-1"],[3,"click","matTooltipPosition","matTooltip"],[1,"eventDate"],[1,"mat-caption"],[1,"eventPlace","primary-color"],[1,"description","secondary-text"]],template:function(t,i){if(t&1&&(r(0,"div",0),b(1,"async"),g("scrolled",function(){return i.onScroll()}),r(2,"mat-card",1)(3,"h3",2),c(4),b(5,"transloco"),a(),r(6,"mat-card-content")(7,"div",3),j(8,Ha,14,12,"div",4,$),b(10,"async"),a()(),m(11,$a,3,3,"div",5),b(12,"async"),m(13,j
1a,1,0,"app-loading-spinner",6),a()()),t&2){let l,f,w;_("infiniteScrollDistance",2)("infiniteScrollThrottle",500)("infiniteScrollDisabled",!((l=P(1,6,i.events$))!=null&&l.hasNext)),o(4),v(P(5,8,"profile.attendingEvents")),o(4),R((f=P(10,10,i.events$))==null?null:f.upcomingEvents),o(3),u(((w=P(12,12,i.events$))==null?null:w.upcomingEvents.length)==0&&!i.loading?11:-1),o(2),u(i.loading?13:-1)}},dependencies:[$e,Et,vi,bi,Ci,_e,xi,ge,z,Be,se],styles:[".menu[_ngcontent-%COMP%]{color:#e9e9e9}.event-card[_ngcontent-%COMP%]{background-color:#f4f4f4;height:100%;box-shadow:none}.img[_ngcontent-%COMP%]{height:calc((100vw - 30px) / 2.8);overflow:hidden;cursor:pointer}.img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.br-6[_ngcontent-%COMP%]{border-radius:6px}.eventName[_ngcontent-%COMP%]{text-align:left;cursor:pointer;margin-bottom:.5rem;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.eventDate[_ngcontent-%COMP%]{text-align:left;color:red;margin-bottom:5px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.eventPlace[_ngcontent-%COMP%]{text-align:left;margin-bottom:5px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.description[_ngcontent-%COMP%]{text-align:left;letter-spacing:0px;color:#6f6f6f;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}@media(orientation:landscape){.img[_ngcontent-%COMP%]{height:136px}}@media(min-width:768px){.img[_ngcontent-%COMP%]{height:126px}}@media(min-width:576px)and (orientation:landscape){.img[_ngcontent-%COMP%]{height:calc(((100vw / 2) - 30px) / 2.8)}}@media(min-width:992px){.img[_ngcontent-%COMP%]{height:111px}}@media(min-width:1200px){.img[_ngcontent-%COMP%]{height:136px}}"]})}}return n})();function Ra(n,d){n&1&&x(0,"app-loading-spinner",2)}var On=(()=>{class n{constructor(e,t,i,l,f,w,y,M){this.translocoService=e,this.userProfileSrv=t,this.authSrv=i,this.route=l,this.router=f,this.evSrv=w,this.companyProfileSrv=y,this.metricsSrv=M,this.subscription=new N,this.hasMore=!0,this.pageNumber=1,this.pageSize=10,this.selectedTag=1,this.spinnerSettings={diameter:100,strokeWidth:6},this.hasPeople=!1}ngOnInit(){this.loading=!0,this.user$=this.userProfileSrv.userProfileDetails$,this.user$.subscribe(e=>{this.username=e.username}),this.subscription.add(this.translocoService.selectTranslate("profile.community").subscribe(e=>{e&&(this.peopleSettings={title:this.translocoService.translate("profile.community"),showFilters:!0,showViewMore:!1})})),this.loggedUserId=this.authSrv.getLoggedUserId(),this.people$=this.userProfileSrv.peopleList$,this.subscription.add(this.evSrv.eventId.subscribe(e=>this.eventId=e)),this.subscription.add(this.route.queryParams.pipe(U(e=>(this.selectedTag=e.t?+e.t:1,this.userProfileSrv.getPeople(this.selectedTag,this.pageNumber,this.pageSize,this.eventId)))).subscribe(e=>{this.loading=!1,e?(this.hasMore=e.hasNext,this.hasPeople=!0):(this.hasMore=!1,this.hasPeople=!1)})),this.metricsSrv.clickedUserSection(this.eventId,"community").subscribe()}filterList(e){e&&(this.loading=!0,this.pageNumber=1,this.selectedTag=e,this.router.navigate([],{queryParams:{t:e},relativeTo:this.route,queryParamsHandling:"merge"}))}onScroll(){this.hasMore&&(this.loading=!0,this.pageNumber=this.pageNumber+1,this.userProfileSrv.getPeople(this.selectedTag,this.pageNumber,this.pageSize,this.eventId).subscribe(e=>{e?this.hasMore=e.hasNext:this.hasMore=!1,this.loading=!1}))}onBackClick(e){this.companyProfileSrv.setProfileHomePage(!0),this.router.navigate(["/event",this.eventId,"user",this.username])}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(p(B),p(ie),p(K),p(Qe),p(q),p(W),p(we),p(fe))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-community"]],decls:5,vars:16,consts:[["infiniteScroll","",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],[3,"filter","backClick","eventId","people","peopleSettings","selectedTag","viewSelf","hasPeople","showBackBtn","spinnerSettings"],["color","#ccc"]],template:function(t,i){if(t&1&&(r(0,"div",0),g("scrolled",function(){return i.onScroll()}),r(1,"app-people-list",1),b(2,"async"),b(3,"async"),g("filter",function(f){return i.filterList(f)})("backClick",function(f){return i.onBackClick(f)}),a(),m(4,Ra,1,0,"app-loading-spinner",2),a()),t&2){let l;_("infiniteScrollDistance",2)("infiniteScrollThrottle",500)("infiniteScrollDisabled",!i.hasMore),o(),_("eventId",i.eventId)("people",P(2,12,i.people$))("peopleSettings",i.peopleSettings)("selectedTag",i.selectedTag)("viewSelf",((l=P(3,14,i.user$))==null?null:l.profileId)===i.loggedUserId)("hasPeople",i.hasPeople)("showBackBtn",!0)("spinnerSettings",i.spinnerSettings),o(3),u(i.loading?4:-1)}},dependencies:[$e,en,ge,z],encapsulation:2})}}return n})();function za(n,d){if(n&1){let e=S();Z(0),r(1,"div",1)(2,"h1"),c(3),a(),r(4,"mat-tab-group",2),g("selectedTabChange",function(i){h(e);let l=s();return C(l.onTabChange(i))}),ai("selectedIndexChange",function(i){h(e);let l=s();
1return ri(l.tabIndex,i)||(l.tabIndex=i),C(i)}),r(5,"mat-tab",3),x(6,"app-bookmarked-companies",4),a(),r(7,"mat-tab",3),x(8,"app-bookmarked-products",4),a()()(),X()}if(n&2){let e=d.$implicit,t=s();o(3),v(e("bookmarks")),o(),oi("selectedIndex",t.tabIndex),o(),_("label",e("companies")),o(),_("eventId",t.eventId),o(),_("label",e("products")),o(),_("eventId",t.eventId)}}var Dn=(()=>{class n{constructor(e,t,i){this.router=e,this.route=t,this.eventSrv=i,this.subscriptions=new N,this.tabIndex=0}ngOnInit(){this.eventId=this.eventSrv.getCurrentEventId(),this.subscriptions.add(this.route.queryParams.subscribe(e=>{e.tab==null?(this.tabIndex=0,this.navigateTab(this.tabIndex)):this.tabIndex=e.tab}))}onTabChange(e){let t=e.index.toString();this.navigateTab(t)}navigateTab(e){this.router.navigate([],{relativeTo:this.route,queryParams:{tab:e}})}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(p(q),p(Qe),p(W))}}static{this.\u0275cmp=O({type:n,selectors:[["app-user-bookmarks"]],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[1,"d-flex","wrapper","p-1","p-sm-4"],["primary","",1,"custom-tab-group","accSettingsTabGrp",3,"selectedTabChange","selectedIndexChange","selectedIndex"],[3,"label"],[3,"eventId"]],template:function(t,i){t&1&&H(0,za,9,6,"ng-container",0),t&2&&_("translocoPrefix","myEvent")},dependencies:[ee,Oi,Ui,_n,gn],styles:[".wrapper[_ngcontent-%COMP%]{flex-direction:column;min-height:calc(100vh - 50px);background-color:#fff;flex-grow:1;position:relative;max-width:900px;margin:0 auto}  .accSettingsTabGrp .mat-tab-body-wrapper .mat-tab-body-content{overflow:hidden}  .custom-tab-group .mat-tab-label, .custom-tab-group[_ngcontent-%COMP%]   .mat-tab-label-active[_ngcontent-%COMP%]{margin-right:20px!important}  .custom-tab-group .mat-tab-label-active{opacity:1!important}  .bookmark-session .mat-mdc-card{box-shadow:none!important}.noContent[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1rem;margin-top:20px}"]})}}return n})();var An=(()=>{class n{constructor(e,t){this.authSrv=e,this.router=t}canActivate(e,t){let i=this.authSrv.loggedUser.getValue();if(i==null)return this.router.navigate(["feed"],{replaceUrl:!0}),!1;let l=e.parent.paramMap.get("username");return l==null||l!=i.username?(this.router.navigate(["feed"],{replaceUrl:!0}),!1):!0}static{this.\u0275fac=function(t){return new(t||n)(Rt(K),Rt(q))}}static{this.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var gp=[{path:"",component:Mn,children:[{path:"home",component:En},{path:"activities",component:Tn},{path:"sessions",component:kn},{path:"events",component:Un},{path:"community",component:On},{path:"bookmarks",component:Dn,canActivate:[An]},{path:"",redirectTo:"home",pathMatch:"full"}]}];export{gp as UserRoutes};

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.