1"use strict";(self.webpackChunkpower_pitch_frontend=self.webpackChunkpower_pitch_frontend||[]).push([[553],{1553:(Ut,O,n)=>{n.r(O),n.d(O,{TeamListModule:()=>S});var u=n(6895),U=n(655),y=n(9933),I=n(9653),k=n(8676),c=n(4006),K=n(3533),t=n(4650),T=n(8535),P=n(4609),h=n(8299),C=n(2843),b=n(4004),x=n(262),E=n(9891),L=n(529),Q=n(4209);class p{constructor(r,e,o){this.toastService=r,this.http=e,this.globalService=o}getTeam(){const r=h.O.getEndpoint(h.O.ENDPOINT.TEAM)+"list";return this.http.get(r).pipe((0,b.U)(e=>e.data),(0,x.K)(e=>(this.toastService.showToast(this.globalService.getErrorMessage(e,"Error while getting team details!"),"error"),(0,C._)(()=>e))))}addTeamMember(r){const e=h.O.getEndpoint(h.O.ENDPOINT.TEAM);return this.http.post(e,r).pipe((0,b.U)(o=>o.data),(0,x.K)(o=>(this.toastService.showToast(this.globalService.getErrorMessage(o,"Error while adding team member!"),"error"),(0,C._)(()=>o))))}removeMember(r){const e=h.O.getEndpoint(h.O.ENDPOINT.TEAM)+`${r}`;return this.http.delete(e).pipe((0,b.U)(o=>o.data),(0,x.K)(o=>(this.toastService.showToast(this.globalService.getErrorMessage(o,"Error while removing team member!"),"error"),(0,C._)(()=>o))))}static#t=this.\u0275fac=function(e){return new(e||p)(t.LFG(E.j),t.LFG(L.eN),t.LFG(Q.U))};static#e=this.\u0275prov=t.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}function B(s,r){1&s&&(t.TgZ(0,"span",25),t._uU(1," First Name is required "),t.qZA())}function q(s,r){1&s&&(t.TgZ(0,"span",25),t._uU(1," Last Name is required "),t.qZA())}function V(s,r){1&s&&(t.TgZ(0,"span",25),t._uU(1," Email address is required "),t.qZA())}function j(s,r){1&s&&(t.TgZ(0,"span",25),t._uU(1," Email address is not valid "),t.qZA())}const _=function(s,r){return{"is-invalid":s,"is-valid":r}};let F=class M{constructor(r,e,o,a){this.modalService=r,this.authService=e,this.teamService=o,this.store=a,this.COUNTRY_LIST=K.z,this.loader=!1,this.getUserDetailsData$=this.store.pipe((0,I.Ys)(k.Ix)),this.initForm()}initForm(){this.accountInformationForm=new c.cw({firstName:new c.NI("",[c.kI.required]),lastName:new c.NI("",[c.kI.required]),email:new c.NI("",[c.kI.required,c.kI.email])})}handleFormSubmit(){this.loader=!0;const r={...this.accountInformationForm.value};this.teamService.addTeamMember(r).subscribe(e=>{e&&(this.loader=!1,this.modalService.dismissAll(),this.closeModal())},e=>{this.loader=!1})}closeModal(){this.modalService.dismissAll()}ngOnDestroy(){}static#t=this.\u0275fac=function(e){return new(e||M)(t.Y36(T.FF),t.Y36(P.e),t.Y36(p),t.Y36(I.yh))};static#e=this.\u0275cmp=t.Xpm({type:M,selectors:[["app-add-team-member"]],decls:43,vars:21,consts:[[1,"text-center","d-flex","justify-content-between"],[1,"d-flex","justify-content-center","flex-grow-1"],[1,"text-center","mt-8","fw-bolder"],[1,"bi","bi-x","position-absolute","fs-2hx","cursor-pointer",2,"top","5px","right","5px",3,"click"],[1,"modal-body",3,"formGroup"],[1,"d-flex","px-4","mb-3"],[1,"label-prefix-create-account","rounded","me-3"],[1,"label-create-account"],[1,"row","px-4"],[1,"col-6"],[1,"fs-7","form-label"],[1,"text-danger"],["type","text","id","firstname","formControlName","firstName","placeholder","John",1,"form-control",3,"ngClass"],["class","invalid-feedback d-block",4,"ngIf"],["type","text","id","lastname","formControlName","lastName","placeholder","Doe",1,"form-control",3,"ngClass"],[1,"row","px-4","my-5"],[1,"col-12"],["type","email","id","email","formControlName","email","placeholder","[email protected]",1,"form-control",3,"ngClass"],[1,"modal-footer","py-3"],[1,"d-flex","justify-content-center","w-100"],[1,"btn","btn-dark","text-white","btn-sm","text-uppercase","fw-boldest","fs-6","me-5","px-6",3,"click"],[1,"btn","btn-theme","text-white","btn-sm","text-uppercase","fw-boldest","fs-6","px-6","text-nowrap",3,"disabled","click"],[1,"indicator-label"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"invalid-feedback","d-block"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),t._uU(3," Add Team Member "),t.qZA()(),t.TgZ(4,"i",3),t.NdJ("click",function(){return o.closeModal()}),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5),t._UZ(7,"span",6),t.TgZ(8,"h3",7),t._uU(9,"Account Information"),t.qZA()(),t.TgZ(10,"div",8)(11,"div",9)(12,"label",10),t._uU(13,"First Name "),t.TgZ(14,"span",11),t._uU(15,"*"),t.qZA()(),t._UZ(16,"input",12),t.YNc(17,B,2,0,"span",13),t.qZA(),t.TgZ(18,"div",9)(19,"label",10),t._uU(20,"Last Name "),t.TgZ(21,"span",11),t._uU(22,"*"),t.qZA()(),t._UZ(23,"input",14),t.YNc(24,q,2,0,"span",13),t.qZA()(),t.TgZ(25,"div",15)(26,"div",16)(27,"label",10),t._uU(28,"Email Address "),t.TgZ(29,"span",11),t._uU(30,"*"),t.qZA()(),t._UZ(31,"input",17),t.YNc(32,V,2,0,"span",13),t.YNc(33,j,2,0,"span",13),t.qZA()(),t.TgZ(34,"div",18)(35,"div",19)(36,"div",20),t.NdJ("click",function(){return o.closeModal()}),t._uU(37," Cancel "),t.qZA(),t.TgZ(38,"button",21),t.NdJ("click",function(){return o.handleFormSubmit()}),t.TgZ(39,"span",22),t._uU(40),t.qZA(),t.TgZ(41,"span",23),t._UZ(42,"span",24),t.qZA()()()()()),2&e){let a,l,d,f,m,g,v;t.xp6(5),t.Q6J("formGroup",o.accountInformationForm),t.xp6(11),t.Q6J("ngClass",t.WLB(12,_,!o.accountInformationForm.get("firstName").valid&&((null==(a=o.accountInformationForm.get("firstName"))?null:a.touched)||(null==(a=o.accountInformationForm.get("firstName"))?null:a.dirty)),o.accountInformationForm.get("firstName").value&&o.accountInformationForm.get("firstName").valid&&((null==(a=o.accountInformationForm.get("firstName"))?null:a.touched)||(null==(a=o.accountInformationForm.get("firstName"))?null:a.dirty)))),t.xp6(1),t.Q6J("ngIf",(null==(l=o.accountInformationForm.get("firstName"))?null:l.hasError("required"))&&((null==(l=o.accountInformationForm.get("firstName"))?null:l.touched)||(null==(l=o.accountInformationForm.get("firstName"))?null:l.dirty))),t.xp6(6),t.Q6J("ngClass",t.WLB(15,_,!o.accountInformationForm.get("lastName").valid&&((null==(d=o.accountInformationForm.get("lastName"))?null:d.touched)||(null==(d=o.accountInformationForm.get("lastName"))?null:d.dirty)),o.accountInformationForm.get("lastName").value&&o.accountInformationForm.get("lastName").valid&&((null==(d=o.accountInformationForm.get("lastName"))?null:d.touched)||(null==(d=o.accountInformationForm.get("lastName"))?null:d.dirty)))),t.xp6(1),t.Q6J("ngIf",(null==(f=o.accountInformationForm.get("lastName"))?null:f.hasError("required"))&&((null==(f=o.accountInformationForm.get("lastName"))?null:f.touched)||(null==(f=o.accountInformationForm.get("lastName"))?null:f.dirty))),t.xp6(7),t.Q6J("ngClass",t.WLB(18,_,!o.accountInformationForm.get("email").valid&&((null==(m=o.accountInformationForm.get("email"))?null:m.touched)||(null==(m=o.accountInformationForm.get("email"))?null:m.dirty)),o.accountInformationForm.get("email").value&&o.accountInformationForm.get("email").valid&&((null==(m=o.accountInformationForm.get("email"))?null:m.touched)||(null==(m=o.accountInformationForm.get("email"))?null:m.dirty)))),t.xp6(1),t.Q6J("ngIf",(null==(g=o.accountInformationForm.get("email"))?null:g.hasError("required"))&&((null==(g=o.accountInformationForm.get("email"))?null:g.touched)||(null==(g=o.accountInformationForm.get("email"))?null:g.dirty))),t.xp6(1),t.Q6J("ngIf",(null==(v=o.accountInformationForm.get("email"))?null:v.hasError("email"))&&((null==(v=o.accountInformationForm.get("email"))?null:v.touched)||(null==(v=o.accountInformationForm.get("email"))?null:v.dirty))),t.xp6(5),t.Q6J("disabled",!o.accountInformationForm.valid||o.loader),t.xp6(2),t.Oqu("Add"),t.xp6(1),t.ekj("d-inline-block",o.loader)}},dependencies:[u.mk,u.O5,c.Fj,c.JJ,c.JL,c.sg,c.u],styles:[".label-prefix-create-account[_ngcontent-%COMP%]{width:5px;height:22px;background:#ff7e5f}"]})};F=(0,U.gn)([(0,y.c)()],F);var H=n(5226),W=n.n(H),X=n(3073),tt=n(1481),et=n(6290),R=n(6081),rt=n(6204),ot=n(2529);function st(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"img",3),t.NdJ("error",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.fetchAvatarSource())}),t.qZA()}if(2&s){const e=t.oxw();
1t.Q6J("src",e.avatarSrc,t.LSH)("alt",e.avatarSrc)("width",e.size)("height",e.size)("ngStyle",e.avatarStyle)("referrerPolicy",e.referrerpolicy)}}function it(s,r){if(1&s&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&s){const e=t.oxw(2);t.Q6J("ngStyle",e.avatarStyle),t.xp6(1),t.hij(" ",e.avatarText," ")}}function at(s,r){if(1&s&&t.YNc(0,it,2,2,"div",4),2&s){const e=t.oxw();t.Q6J("ngIf",e.avatarText)}}class A{constructor(r){this.sourceId=r}}var i=(()=>{return(s=i||(i={})).FACEBOOK="facebook",s.GOOGLE="google",s.TWITTER="twitter",s.INSTAGRAM="instagram",s.VKONTAKTE="vkontakte",s.SKYPE="skype",s.GRAVATAR="gravatar",s.GITHUB="github",s.CUSTOM="custom",s.INITIALS="initials",s.VALUE="value",i;var s})();class nt{constructor(r){this.sourceId=r,this.sourceType=i.FACEBOOK}getAvatar(r){return`https://graph.facebook.com/${this.sourceId}/picture?width=${r}&height=${r}`}}class lt{constructor(r){this.sourceId=r,this.sourceType=i.TWITTER}getAvatar(r){const e=this.getImageSize(r);return`https://twitter.com/${this.sourceId}/profile_image?size=${e}`}getImageSize(r){return r<=24?"mini":r<=48?"normal":r<=73?"bigger":"original"}}class ct extends A{constructor(r){super(r),this.sourceType=i.GOOGLE}getAvatar(){return`https://picasaweb.google.com/data/entry/api/user/${this.sourceId}?alt=json`}processResponse(r,e){const o=r.entry.gphoto$thumbnail.$t;return o?o.replace("s64","s"+e):null}}class ut extends A{constructor(r){super(r),this.sourceType=i.INSTAGRAM}getAvatar(){return`https://www.instagram.com/${this.sourceId}/?__a=1`}processResponse(r,e){return`${r.graphql.user.profile_pic_url_hd}&s=${e}`}}class dt{constructor(r){this.sourceId=r,this.sourceType=i.CUSTOM}getAvatar(){return this.sourceId}}class mt{constructor(r){this.sourceId=r,this.sourceType=i.INITIALS}getAvatar(r){return this.getInitials(this.sourceId,r)}getInitials(r,e){if(!(r=r.trim()))return"";const o=r.split(" ");return this.constructInitials(e&&e<o.length?o.slice(0,e):o)}constructInitials(r){return r&&r.length?r.filter(e=>e&&e.length>0).map(e=>e[0].toUpperCase()).join(""):""}}class pt{constructor(r){this.value=r,this.sourceType=i.GRAVATAR,this.sourceId=r.match("^[a-f0-9]{32}$")?r:rt.V8.hashStr(r).toString()}getAvatar(r){const e=function ht(){if(typeof window<"u"&&null!==window){if(window.devicePixelRatio>1.25)return!0;const s="(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)";if(window.matchMedia&&window.matchMedia(s).matches)return!0}return!1}()?2*r:r;return`https://secure.gravatar.com/avatar/${this.sourceId}?s=${e}&d=404`}}class ft{constructor(r){this.sourceId=r,this.sourceType=i.SKYPE}getAvatar(){return`https://api.skype.com/users/${this.sourceId}/profile/avatar`}}class gt{constructor(r){this.sourceId=r,this.sourceType=i.VALUE}getAvatar(){return this.sourceId}}class Tt extends A{constructor(r){super(r),this.sourceType=i.VKONTAKTE}getAvatar(r){const e=this.getImageSize(r);return`https://api.vk.com/method/users.get?user_id=${this.sourceId}&v=5.8&fields=${e}`}processResponse(r){const e=Object.keys(r.response[0]).pop();return e&&r.response[0][e]||null}getImageSize(r){return r<=50?"photo_50":r<=100?"photo_100":r<=200?"photo_200":"photo_max"}}class At extends A{constructor(r){super(r),this.sourceType=i.GITHUB}getAvatar(){return`https://api.github.com/users/${this.sourceId}`}processResponse(r,e){return e?`${r.avatar_url}&s=${e}`:r.avatar_url}}const z=new t.OlP("avatar.config");let w=(()=>{class s{constructor(e){this.userConfig=e}getAvatarSources(e){if(this.userConfig&&this.userConfig.sourcePriorityOrder&&this.userConfig.sourcePriorityOrder.length){const a=[...new Set(this.userConfig.sourcePriorityOrder)].filter(l=>e.includes(l));return[...a,...e.filter(l=>!a.includes(l))]}return e}getAvatarColors(e){return this.userConfig&&this.userConfig.colors&&this.userConfig.colors.length&&this.userConfig.colors||e}getDisableSrcCache(e){return null==this.userConfig||null==this.userConfig.disableSrcCache?e:this.userConfig.disableSrcCache}}return s.\u0275fac=function(e){return new(e||s)(t.LFG(z,8))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const D=[i.FACEBOOK,i.GOOGLE,i.TWITTER,i.INSTAGRAM,i.VKONTAKTE,i.SKYPE,i.GRAVATAR,i.GITHUB,i.CUSTOM,i.INITIALS,i.VALUE],J=["#1abc9c","#3498db","#f1c40f","#8e44ad","#e74c3c","#d35400","#2c3e50","#7f8c8d"];let G=(()=>{class s{constructor(e,o){this.http=e,this.avatarConfigService=o,this.avatarSources=D,this.avatarColors=J,this.failedSources=new Map,this.overrideAvatarSources(),this.overrideAvatarColors()}fetchAvatar(e){return this.http.get(e)}getRandomColor(e){if(!e)return"transparent";const o=this.calculateAsciiCode(e);return this.avatarColors[o%this.avatarColors.length]}
1compareSources(e,o){return this.getSourcePriority(e)-this.getSourcePriority(o)}isSource(e){return this.avatarSources.includes(e)}isTextAvatar(e){return[i.INITIALS,i.VALUE].includes(e)}buildSourceKey(e){return e.sourceType+"-"+e.sourceId}sourceHasFailedBefore(e){return this.failedSources.has(this.buildSourceKey(e))}markSourceAsFailed(e){this.failedSources.set(this.buildSourceKey(e),e)}overrideAvatarSources(){this.avatarSources=this.avatarConfigService.getAvatarSources(D)}overrideAvatarColors(){this.avatarColors=this.avatarConfigService.getAvatarColors(J)}calculateAsciiCode(e){return e.split("").map(o=>o.charCodeAt(0)).reduce((o,a)=>o+a)}getSourcePriority(e){return this.avatarSources.indexOf(e)}}return s.\u0275fac=function(e){return new(e||s)(t.LFG(L.eN),t.LFG(w))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class bt{constructor(r){this.sourceId=r,this.sourceType=i.CUSTOM}getAvatar(){const r=Math.random();return`${this.sourceId}${this.sourceId.indexOf("?")>-1?"&":"?"}_=${r}`}}let Y=(()=>{class s{constructor(e){this.sources={};const o=e.getDisableSrcCache(!1);this.sources[i.FACEBOOK]=nt,this.sources[i.TWITTER]=lt,this.sources[i.GOOGLE]=ct,this.sources[i.INSTAGRAM]=ut,this.sources[i.SKYPE]=ft,this.sources[i.GRAVATAR]=pt,this.sources[i.CUSTOM]=o?bt:dt,this.sources[i.INITIALS]=mt,this.sources[i.VALUE]=gt,this.sources[i.VKONTAKTE]=Tt,this.sources[i.GITHUB]=At}newInstance(e,o){return new this.sources[e](o)}}return s.\u0275fac=function(e){return new(e||s)(t.LFG(w))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),St=(()=>{class s{constructor(e,o){this.sourceFactory=e,this.avatarService=o,this.round=!0,this.size=50,this.textSizeRatio=3,this.fgColor="#FFF",this.style={},this.cornerRadius=0,this.initialsSize=0,this.clickOnAvatar=new t.vpe,this.isAlive=!0,this.avatarSrc=null,this.avatarText=null,this.avatarStyle={},this.hostStyle={},this.currentIndex=-1,this.sources=[]}onAvatarClicked(){this.clickOnAvatar.emit(this.sources[this.currentIndex])}ngOnChanges(e){for(const o in e)if(this.avatarService.isSource(o)){const a=i[o.toUpperCase()],l=e[o].currentValue;l&&"string"==typeof l?this.addSource(a,l):this.removeSource(a)}this.initializeAvatar()}fetchAvatarSource(){const e=this.sources[this.currentIndex];e&&this.avatarService.markSourceAsFailed(e);const o=this.findNextSource();!o||(this.avatarService.isTextAvatar(o.sourceType)?(this.buildTextAvatar(o),this.avatarSrc=null):this.buildImageAvatar(o))}findNextSource(){for(;++this.currentIndex<this.sources.length;){const e=this.sources[this.currentIndex];if(e&&!this.avatarService.sourceHasFailedBefore(e))return e}return null}ngOnDestroy(){this.isAlive=!1}initializeAvatar(){this.currentIndex=-1,this.sources.length>0&&(this.sortAvatarSources(),this.fetchAvatarSource(),this.hostStyle={width:this.size+"px",height:this.size+"px"})}sortAvatarSources(){this.sources.sort((e,o)=>this.avatarService.compareSources(e.sourceType,o.sourceType))}buildTextAvatar(e){this.avatarText=e.getAvatar(+this.initialsSize),this.avatarStyle=this.getInitialsStyle(e.sourceId)}buildImageAvatar(e){this.avatarStyle=this.getImageStyle(),e instanceof A?this.fetchAndProcessAsyncAvatar(e):this.avatarSrc=e.getAvatar(+this.size)}getInitialsStyle(e){return{textAlign:"center",borderRadius:this.round?"100%":this.cornerRadius+"px",border:this.borderColor?"1px solid "+this.borderColor:"",textTransform:"uppercase",color:this.fgColor,backgroundColor:this.bgColor?this.bgColor:this.avatarService.getRandomColor(e),font:Math.floor(+this.size/this.textSizeRatio)+"px Helvetica, Arial, sans-serif",lineHeight:this.size+"px",...this.style}}getImageStyle(){return{maxWidth:"100%",borderRadius:this.round?"50%":this.cornerRadius+"px",border:this.borderColor?"1px solid "+this.borderColor:"",width:this.size+"px",height:this.size+"px",...this.style}}fetchAndProcessAsyncAvatar(e){this.avatarService.sourceHasFailedBefore(e)||this.avatarService.fetchAvatar(e.getAvatar(+this.size)).pipe((0,ot.o)(()=>this.isAlive),(0,b.U)(o=>e.processResponse(o,+this.size))).subscribe({next:o=>this.avatarSrc=o,error:()=>{this.fetchAvatarSource()}})}addSource(e,o){const a=this.sources.find(l=>l.sourceType===e);a?a.sourceId=o:this.sources.push(this.sourceFactory.newInstance(e,o))}removeSource(e){this.sources=this.sources.filter(o=>o.sourceType!==e)}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(Y),t.Y36(G))},s.\u0275cmp=t.Xpm({type:s,selectors:[["ngx-avatars"]],inputs:{round:"roun
1d",size:"size",textSizeRatio:"textSizeRatio",bgColor:"bgColor",fgColor:"fgColor",borderColor:"borderColor",style:"style",cornerRadius:"cornerRadius",facebook:["facebookId","facebook"],twitter:["twitterId","twitter"],google:["googleId","google"],instagram:["instagramId","instagram"],vkontakte:["vkontakteId","vkontakte"],skype:["skypeId","skype"],gravatar:["gravatarId","gravatar"],github:["githubId","github"],custom:["src","custom"],initials:["name","initials"],value:"value",referrerpolicy:"referrerpolicy",placeholder:"placeholder",initialsSize:"initialsSize"},outputs:{clickOnAvatar:"clickOnAvatar"},features:[t.TTD],decls:4,vars:3,consts:[[1,"avatar-container",3,"ngStyle","click"],["class","avatar-content","loading","lazy",3,"src","alt","width","height","ngStyle","referrerPolicy","error",4,"ngIf","ngIfElse"],["textAvatar",""],["loading","lazy",1,"avatar-content",3,"src","alt","width","height","ngStyle","referrerPolicy","error"],["class","avatar-content",3,"ngStyle",4,"ngIf"],[1,"avatar-content",3,"ngStyle"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.NdJ("click",function(){return o.onAvatarClicked()}),t.YNc(1,st,1,6,"img",1),t.YNc(2,at,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&e){const a=t.MAs(3);t.Q6J("ngStyle",o.hostStyle),t.xp6(1),t.Q6J("ngIf",o.avatarSrc)("ngIfElse",a)}},dependencies:[u.O5,u.PC],styles:["[_nghost-%COMP%]{border-radius:50%}"]}),s})(),yt=(()=>{class s{static forRoot(e){return{ngModule:s,providers:[{provide:z,useValue:e||{}}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({providers:[Y,G,w],imports:[u.ez]}),s})();function Ct(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.handleAddUser())}),t._uU(4," + Add Team member "),t.qZA()()()()}if(2&s){const e=t.oxw();
1t.xp6(2),t.Q6J("disableTooltip",e.featureCheckService.checkFeature("number_of_users")),t.xp6(1),t.Q6J("disabled",!e.featureCheckService.checkFeature("number_of_users"))}}function xt(s,r){1&s&&(t.TgZ(0,"th",22),t._uU(1," Actions "),t.qZA())}function _t(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"td",29)(1,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,l=t.oxw(2);return t.KtG(l.deleteConfirmation(a.uuid))}),t._uU(2,"Delete"),t.qZA()()}}function Ft(s,r){if(1&s&&(t.TgZ(0,"tr",23)(1,"td",24),t._UZ(2,"ngx-avatars",25),t.ALo(3,"slice"),t.TgZ(4,"div",26)(5,"a",27),t._uU(6),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA()()(),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"titlecase"),t.qZA(),t.YNc(12,_t,3,0,"td",28),t.qZA()),2&s){const e=r.$implicit,o=t.oxw(2);t.xp6(2),t.s9C("name",t.Dn7(3,5,e.firstName,0,1)),t.xp6(4),t.Oqu(e.firstName+" "+e.lastName),t.xp6(2),t.Oqu(e.email),t.xp6(2),t.Oqu(t.lcZ(11,9,e.role)),t.xp6(2),t.Q6J("ngIf","admin"===o.userDetails.role)}}function wt(s,r){if(1&s&&(t.TgZ(0,"div",13)(1,"div",14)(2,"table",15)(3,"thead")(4,"tr",16)(5,"th",17),t._uU(6," USER NAME "),t.qZA(),t.TgZ(7,"th",18),t._uU(8," Role "),t.qZA(),t.YNc(9,xt,2,0,"th",19),t.qZA()(),t.TgZ(10,"tbody",20),t.YNc(11,Ft,13,11,"tr",21),t.qZA()()()()),2&s){const e=t.oxw();
1t.xp6(9),t.Q6J("ngIf","admin"===e.userDetails.role),t.xp6(2),t.Q6J("ngForOf",e.teamMemberList)}}function Nt(s,r){1&s&&(t.TgZ(0,"div",31)(1,"div",32)(2,"h4",33),t._uU(3,"No team users created yet"),t.qZA()()())}let N=class Z{constructor(r,e,o,a,l,d){this.teamService=r,this.toastAlertService=e,this.featureCheckService=o,this.title=a,this.store=l,this.modalService=d}ngOnInit(){this.getUserDetailsData$=this.store.pipe((0,I.Ys)(k.Ix)),this.getUserDetailsData$.pipe((0,y.t)(this)).subscribe(r=>{r&&(this.userDetails=r,console.log("userDetails",this.userDetails))}),this.title.setTitle("Team @SanchiConnect"),this.getTeamMembers()}getTeamMembers(){this.teamService.getTeam().subscribe(r=>{this.teamMemberList=r,console.log("teamMemberList",this.teamMemberList)})}deleteConfirmation(r){W().fire({title:"Delete User",text:"Are you sure want to remove this user?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#ed7c31",cancelButtonColor:"#7D8185",confirmButtonText:"Yes, delete it!"}).then(e=>{e.isConfirmed&&this.teamService.removeMember(r).subscribe(o=>{o&&(this.toastAlertService.showToast(o.message),this.getTeamMembers())})})}handleAddUser(){this.modalService.open(F,{centered:!0,size:"md"}).result.then(e=>{this.getTeamMembers()},e=>{this.getTeamMembers()})}static#t=this.\u0275fac=function(e){return new(e||Z)(t.Y36(p),t.Y36(E.j),t.Y36(X.M),t.Y36(tt.Dx),t.Y36(I.yh),t.Y36(T.FF))};static#e=this.\u0275cmp=t.Xpm({type:Z,selectors:[["app-team-list"]],decls:10,vars:4,consts:[[1,"page-bg","h-100vh"],["fgsColor","#e9843e",3,"hasProgressBar"],[1,"container","mt-8"],["class","row d-flex justify-content-end mb-4",4,"ngIf"],[1,"row"],[1,"card"],[1,"card-body","py-4"],["id","kt_table_users_wrapper","class","dataTables_wrapper dt-bootstrap4 no-footer",4,"ngIf"],["class","alert alert-dismissible bg-light-info d-flex justify-content-center flex-column flex-sm-row w-100 p-5 mt-5",4,"ngIf"],[1,"row","d-flex","justify-content-end","mb-4"],[1,"p-0"],["ngbTooltip","Upgrade your plan to use this feature",1,"p-0","position-relative","float-end",2,"width","fit-content",3,"disableTooltip"],[1,"btn","btn-theme","text-white","fs-6","text-uppercase","fw-boldest","px-6","py-2",2,"width","fit-content",3,"disabled","click"],["id","kt_table_users_wrapper",1,"dataTables_wrapper","dt-bootstrap4","no-footer"],[1,"table-responsive"],["id","kt_table_users",1,"table","align-middle","table-row-dashed","fs-6","gy-5","dataTable","no-footer"],[1,"text-start","text-muted","fw-bolder","fs-7","text-uppercase","gs-0"],["tabindex","0","aria-controls","kt_table_users","rowspan","1","colspan","1","aria-label","User: activate to sort column ascending",1,"min-w-125px","sorting",2,"width","288.513px"],["tabindex","0","aria-controls","kt_table_users","rowspan","1","colspan","1","aria-label","Role: activate to sort column ascending",1,"min-w-125px","sorting",2,"width","160.462px"],["class","text-end min-w-100px sorting_disabled","rowspan","1","colspan","1","aria-label","Actions","style","width: 128.913px",4,"ngIf"],[1,"text-gray-600","fw-bold"],["class","even",4,"ngFor","ngForOf"],["rowspan","1","colspan","1","aria-label","Actions",1,"text-end","min-w-100px","sorting_disabled",2,"width","128.913px"],[1,"even"],[1,"d-flex","align-items-center"],["size","60",1,"me-3",3,"name"],[1,"d-flex","flex-column"],[1,"text-gray-800","text-hover-primary","mb-1"],["class","text-end",4,"ngIf"],[1,"text-end"],["data-kt-users-table-filter","delete_row",1,"menu-link","btn","px-3","cursor-pointer","text-danger",3,"click"],[1,"alert","alert-dismissible","bg-light-info","d-flex","justify-content-center","flex-column","flex-sm-row","w-100","p-5","mt-5"],[1,"d-flex","flex-column","pe-0","pe-sm-10"],[1,"fw-bold"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"app-header")(2,"ngx-ui-loader",1),t.TgZ(3,"div",2),t.YNc(4,Ct,5,2,"div",3),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t.YNc(8,wt,12,2,"div",7),t.YNc(9,Nt,4,0,"div",8),t.qZA()()()()()),2&e&&(t.xp6(2),t.Q6J("hasProgressBar",!1),t.xp6(2),t.Q6J("ngIf","admin"===o.userDetails.role),t.xp6(4),t.Q6J("ngIf",(null==o.teamMemberList?null:o.teamMemberList.length)>0),t.xp6(1),t.Q6J("ngIf",0===(null==o.teamMemberList?null:o.teamMemberList.length)))}
1,dependencies:[u.sg,u.O5,et.G,T._L,R.Eo,St,u.OU,u.rS]})};N=(0,U.gn)([(0,y.c)()],N);var $=n(7655),Mt=n(6806);const Zt=["#F1FAFF"],Ot=[{path:"",component:N}];class S{static#t=this.\u0275fac=function(e){return new(e||S)};static#e=this.\u0275mod=t.oAB({type:S});static#r=this.\u0275inj=t.cJS({imports:[u.ez,$.m8,T.IJ,Mt.Bz.forChild(Ot),R.Js.forRoot($.$z),yt.forRoot({colors:Zt}),T.HK]})}}}]);
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.