1"use strict";(self.webpackChunkwrr_web=self.webpackChunkwrr_web||[]).push([[8366],{8366:(S,u,o)=>{o.r(u),o.d(u,{FollowSentRequestsModule:()=>J});var i=o(6895),m=o(4746),a=o(4006),p=o(9132),C=o(7579),_=o(1884),w=o(8372),c=o(2722),f=o(5698),t=o(4650),h=o(216),v=o(8867),x=o(9383),M=o(6353),b=o(8423),O=o(7392),y=o(4859),P=o(50),R=o(7296);function T(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return t.KtG(l.clearSearchField())}),t.TgZ(1,"mat-icon"),t._uU(2,"close"),t.qZA()()}}function F(n,s){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"img",17),t.qZA())}function E(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",20)(2,"div",21)(3,"div",22),t.NdJ("click",function(){const d=t.CHM(e).$implicit,g=t.oxw(2);return t.KtG(g.openProfile(d.id))}),t._UZ(4,"img",23),t.qZA(),t.TgZ(5,"div",24)(6,"div",25),t._uU(7),t.qZA(),t.TgZ(8,"div",26),t._uU(9),t.qZA()()(),t.TgZ(10,"button",27),t.NdJ("click",function(){const d=t.CHM(e).$implicit,g=t.oxw(2);return t.KtG(g.deleteFollowSentRequest(d.id))}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&n){const e=s.$implicit;t.xp6(4),t.s9C("src",null===e.image?"../../../assets/images/user-default.png":e.image+".thumb",t.LSH),t.xp6(3),t.hij(" ",e.name," "),t.xp6(2),t.hij(" ",e.locationName," "),t.xp6(2),t.hij(" ",t.lcZ(12,4,"DELETE")," ")}}function Z(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",18),t.NdJ("scrolled",function(){t.CHM(e);const l=t.oxw();return t.KtG(l.doInfinite())}),t.YNc(1,E,13,6,"div",19),t.ALo(2,"async"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("alwaysCallback",!0)("infiniteScrollDisabled",e.infiniteScrollDisabled),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,e.requests))}}function A(n,s){1&n&&(t.TgZ(0,"div",28),t._UZ(1,"ngx-spinner",29),t.qZA()),2&n&&(t.xp6(1),t.Q6J("fullScreen",!1))}function I(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-connection-error",30),t.NdJ("tryAgain",function(){t.CHM(e);const l=t.oxw();return t.KtG(l.fetchData())}),t.qZA()}}const L=[{path:"",component:(()=>{class n{constructor(e,r,l,d,g,N,D,U){this.router=e,this.peopleService=r,this.utils=l,this.translate=d,this.fb=g,this.scroller=N,this.navigationService=D,this.spinner=U,this.destroy$=new C.x,this.isLoadingList=!1,this.error=!1,this.infiniteScrollDisabled=!1,this.showInfinitScrollSpinner=!1,this.limit=30,this.offset=0}ngOnInit(){this.searchBoxPlaceHolder=this.translate.instant("ACTIVITIES.SEARCH"),this.searchForm=this.fb.group({name:[null]}),this.filterByNameCtrl=this.searchForm.get("name"),this.requests=this.peopleService.followSentRequests,this.filterByNameCtrl.valueChanges.pipe((0,_.x)(),(0,w.b)(500),(0,c.R)(this.destroy$)).subscribe(e=>{this.filterByName=e,this.fetchData()}),this.fetchData()}fetchData(){this.spinner.show("loadingSpinner"),this.error&&this.peopleService.getFollowRequestsStats().pipe((0,f.q)(1)).subscribe({next:()=>{},error:()=>{}});let e=this.limit;this.offset>0&&(e+=this.offset),this.error=!1,this.isLoadingList=!0,this.peopleService.getfollowSentRequests(this.filterByName,e,0,!1).pipe((0,f.q)(1)).subscribe({next:()=>{this.spinner.hide("loadingSpinner"),this.isLoadingList=!1,this.scrollToInitialPosition()},error:()=>{this.spinner.hide("loadingSpinner"),this.error=!0,this.isLoadingList=!1}})}doInfinite(){if(this.isLoadingList||this.error||this.showInfinitScrollSpinner)return;this.showInfinitScrollSpinner=!0;let e=this.offset;this.offset=this.offset+this.limit,this.peopleService.getfollowSentRequests(this.filterByName,this.limit,this.offset,!0).pipe((0,f.q)(1)).subscribe({next:r=>{r.length<=0&&(this.offset=this.offset>0?this.offset-this.limit:0,this.infiniteScrollDisabled=!0),this.showInfinitScrollSpinner=!1},error:()=>{this.offset=e,this.showInfinitScrollSpinner=!1}})}openProfile(e){this.router.navigate(["/app/","user",e])}clearSearchField(){this.filterByNameCtrl.setValue("")}deleteFollowSentRequest(e){this.spinner.show("spinner"),this.peopleService.deleteFollowSentRequest(e).subscribe({next:()=>{this.spinner.hide("spinner")},error:r=>{this.spinner.hide("spinner"),this.utils.showErrorMsg(r.error&&r.error.code?r.error.code:"REQUEST_FAILED")}})}scrollToInitialPosition(){const e=this.navigationService.getScrollPosition();0!=e[1]&&setTimeout(()=>{this.scroller.scrollToPosition(e)})}ngOnDestroy(){this.destroy$.next(""),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.F0),t.Y36(h.g),t.Y36(v.T),t.Y36(x.sK),t.Y36(a.QS),t.Y36(i.EM),t.Y36(M.f),t.Y36(b.t2))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-follow-sent-requests"]],decls:16,vars:12,consts:[[1,"searchbar-wrapper"],[1,"searchbar-container"],[3,"formGroup"],[1,"searchbar"],["type","text","aria-label","search","autocomplete","off","autocorrect","off","formControlName","name",3,"placeholder"],["mat-button","","mat-icon-button","",3,"click",4,"ngIf"],[1,"page-wrapper"],[1,"list-container"],["class","no-results",4,"ngIf"],["infinite-scroll","",3,"alwaysCallback","infiniteScrollDisabled","scrolled",4,"ngIf"],[1,"spinner-container"],["bdColor","","size","default","color","#35364a","type","ball-elastic-dots",3,"fullScreen","showSpinner"],["class","loading-container",4,"ngIf"],["class","error-wrapper",3,"tryAgain",4,"ngIf"],["bdColor","rgba(53,54,74, 0.6)","name","spinner","size","default","color","#fff","type","ball-elastic-dots",3,"fullScreen"],["mat-button","","mat-icon-button","",3,"click"],[1,"n
1o-results"],["src","assets/icons/no-results.png"],["infinite-scroll","",3,"alwaysCallback","infiniteScrollDisabled","scrolled"],[4,"ngFor","ngForOf"],[1,"person-container"],[1,"image-details"],[1,"avatar",3,"click"],[1,"avatar-img",3,"src"],[1,"details-container"],[1,"person-name"],[1,"location"],["mat-stroked-button","","color","primary",1,"button-white",3,"click"],[1,"loading-container"],["bdColor","#b6b6b833","name","loadingSpinner","size","default","color","#35364a","type","ball-elastic-dots",3,"fullScreen"],[1,"error-wrapper",3,"tryAgain"]],template:function(e,r){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"form",2)(3,"div",3),t._UZ(4,"input",4),t.YNc(5,T,3,0,"button",5),t.qZA()()()(),t.TgZ(6,"div",6)(7,"div",7),t.YNc(8,F,2,0,"div",8),t.ALo(9,"async"),t.YNc(10,Z,3,5,"div",9),t.TgZ(11,"div",10),t._UZ(12,"ngx-spinner",11),t.qZA()()(),t.YNc(13,A,2,1,"div",12),t.YNc(14,I,1,0,"app-connection-error",13),t._UZ(15,"ngx-spinner",14)),2&e){let l;t.xp6(2),t.Q6J("formGroup",r.searchForm),t.xp6(2),t.Q6J("placeholder",r.searchBoxPlaceHolder),t.xp6(1),t.Q6J("ngIf",r.filterByNameCtrl.value),t.xp6(3),t.Q6J("ngIf",0===(null==(l=t.lcZ(9,10,r.requests))?null:l.length)&&!r.isLoadingList&&!r.error),t.xp6(2),t.Q6J("ngIf",!r.isLoadingList&&!r.error),t.xp6(2),t.Q6J("fullScreen",!1)("showSpinner",r.showInfinitScrollSpinner),t.xp6(1),t.Q6J("ngIf",r.isLoadingList),t.xp6(1),t.Q6J("ngIf",r.error&&!r.isLoadingList),t.xp6(1),t.Q6J("fullScreen",!0)}},dependencies:[i.sg,i.O5,b.Ro,O.Hw,y.lW,P.V,R.Ry,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,i.Ov,x.X$],styles:[".searchbar-wrapper[_ngcontent-%COMP%]{position:fixed;top:82px;left:0;right:0;margin:0 1rem;z-index:1000;background:white}.searchbar-container[_ngcontent-%COMP%]{position:relative;background:white;margin:1rem 0}.searchbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:46px;border-radius:10px;padding:0 0 0 .9rem;background:#efefef}.searchbar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#666;font-size:18px;width:18px}.searchbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:.95rem;color:var(--color-black);font-weight:500;border:none;border-radius:.375rem;background:#efefef;width:100%}.searchbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border:none!important}.searchbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-size:.875rem;color:#999}.list-container[_ngcontent-%COMP%]{padding:11rem 1.25rem 1rem;max-width:400px;margin:0 auto}.person-container[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;margin-bottom:1rem}.image-details[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center;margin-right:.8rem;overflow:hidden;width:100%}.details-container[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;justify-content:flex-start;margin-left:.5rem;overflow:hidden}.person-name[_ngcontent-%COMP%]{font-size:1.25rem;text-transform:uppercase;letter-spacing:-1px;color:var(--color-wrr);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar[_ngcontent-%COMP%]{height:3.5rem;width:3.5rem;border:1px solid #eaeaea;cursor:pointer}.location[_ngcontent-%COMP%]{font-family:Inter,sans-serif;color:var(--color-black);font-size:.7rem}.buttons-container[_ngcontent-%COMP%]{display:flex;gap:.5rem}.button-primary[_ngcontent-%COMP%], .button-white[_ngcontent-%COMP%]{flex:0 0 auto;padding:0rem}.loading-container[_ngcontent-%COMP%]{position:fixed;top:64px;height:100%;width:100%;background-color:#fafafa;z-index:10000;right:0}.error-wrapper[_ngcontent-%COMP%]{position:fixed;top:65px;left:0;right:0;z-index:1000;background-color:#fff}@media (min-width: 743px){.searchbar-wrapper[_ngcontent-%COMP%]{top:180px;left:0;right:0;z-index:100;background-color:#fafafa;margin:0;width:100%}.searchbar-container[_ngcontent-%COMP%]{display:flex;align-items:center;height:100px;background-color:#fafafa;padding:0 2.5rem;max-width:1250px;margin:0 auto;width:100%}.searchbar[_ngcontent-%COMP%]{width:300px;background:#fff;box-shadow:-6px 8px 27px #dfdfdfa8}.searchbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background-color:#fff}.list-container[_ngcontent-%COMP%]{padding:14rem 0 1rem;margin:0}.person-container[_ngcontent-%COMP%]{margin-bottom:1.5rem}
1.avatar[_ngcontent-%COMP%]{height:5rem;width:5rem;border:2px solid white}.button-primary[_ngcontent-%COMP%], .button-white[_ngcontent-%COMP%]{padding:0 15px}.no-results[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:3.5rem;width:3.5rem}.no-results[_ngcontent-%COMP%]{width:300px}.loading-container[_ngcontent-%COMP%]{top:129px}.error-wrapper[_ngcontent-%COMP%]{background-color:#fafafa;top:129px}}"]}),n})()}];let q=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(L),p.Bz]}),n})(),J=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[i.ez,q,m.P,a.UX]}),n})()},50:(S,u,o)=>{o.d(u,{V:()=>w});var i=o(4650),m=o(6895),a=o(7392),p=o(4859),C=o(9383);const _=function(c){return{height:c}};let w=(()=>{class c{constructor(){this.tryAgain=new i.vpe}ngOnInit(){this.height||(this.height="20rem")}onTryAgain(){this.tryAgain.emit(!0)}}return c.\u0275fac=function(t){return new(t||c)},c.\u0275cmp=i.Xpm({type:c,selectors:[["app-connection-error"]],inputs:{height:"height"},outputs:{tryAgain:"tryAgain"},decls:9,vars:9,consts:[[1,"error-container",3,"ngStyle"],["aria-hidden","true",1,"error-icon"],[1,"error-container__text-info"],["mat-flat-button","","color","primary",1,"retry-button",3,"click"]],template:function(t,h){1&t&&(i.TgZ(0,"div",0)(1,"mat-icon",1),i._uU(2,"cloud_off"),i.qZA(),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",3),i.NdJ("click",function(){return h.onTryAgain()}),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&t&&(i.Q6J("ngStyle",i.VKq(7,_,h.height)),i.xp6(4),i.Oqu(i.lcZ(5,3,"GENERIC_ERROR_TITLE")),i.xp6(3),i.hij(" ",i.lcZ(8,5,"GENERIC_ERROR_ACTION")," "))},dependencies:[m.PC,a.Hw,p.lW,C.X$],styles:[".error-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-flow:column;justify-content:center;align-items:center}mat-icon[_ngcontent-%COMP%]{color:var(--color-wrr)}.error-icon[_ngcontent-%COMP%]{transform:scale(1.5);margin-bottom:.5rem}.error-container__text-info[_ngcontent-%COMP%]{font-size:1rem;font-family:Inter,sans-serif;color:var(--color-wrr);margin-bottom:1.5rem}.retry-button[_ngcontent-%COMP%]{padding:0 1.5rem;font-family:Oswald,Inter,sans-serif;font-size:.9rem;font-weight:400;text-transform:uppercase}"]}),c})()}}]);
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.