1import{a as B,c as H}from"./chunk-O5R5EUQD.js";import{b as A}from"./chunk-QVFXGM2U.js";import{P as D,R as j}from"./chunk-IW5X5NS4.js";import{Ca as T,ka as E}from"./chunk-5H5SGHCH.js";import"./chunk-3XS3ZBPH.js";import"./chunk-GSK5XISC.js";import"./chunk-ZGGTSUVP.js";import{d as L,u as V}from"./chunk-YDKCM3XM.js";import{k as S,l as y}from"./chunk-Z4IUR6GC.js";import"./chunk-AGLEDWR5.js";import"./chunk-E7QCVT25.js";import"./chunk-XD6NS5E4.js";import{B as f,Bc as c,Fa as s,Ga as d,Ha as M,Ia as b,Ja as O,Nb as k,Qc as r,Rc as v,_ as w,ec as h,ed as I,fc as g,kc as P,lc as i,mc as n,nc as m,vc as C,wb as l,xa as _,zc as p}from"./chunk-2GZCTCDN.js";var U=()=>["/"];function F(e,u){if(e&1){let t=C();i(0,"div",10)(1,"div")(2,"p"),r(3," You are invited to the following workspace: "),m(4,"br"),i(5,"strong"),r(6),n()()()(),i(7,"div",11)(8,"button",12),p("click",function(){s(t);let a=c(2);return d(a.clearLocalStorage())}),r(9,"Decline "),n(),i(10,"button",13),p("click",function(){s(t);let a=c(2);return d(a.accept())}),r(11,"Accept invitation "),n()()}if(e&2){let t=c(2);l(6),v(t.invite.hostWorkspaceName)}}function N(e,u){if(e&1){let t=C();i(0,"div",10)(1,"div")(2,"p"),r(3," This invitation is intended for: "),m(4,"br"),i(5,"strong"),r(6),n(),r(7,". Please logout and log back in with the proper credentials to accept the invitation. "),n()()(),i(8,"div",11)(9,"button",12),p("click",function(){s(t);let a=c(2);return d(a.clearLocalStorage())}),r(10,"Not for me "),n(),i(11,"button",13),p("click",function(){s(t);let a=c(2);return d(a.logout())}),r(12,"Logout "),n()()}if(e&2){let t=c(2);l(6),v(t.invite.email)}}function W(e,u){if(e&1&&(i(0,"section",7)(1,"div",9),h(2,F,12,1)(3,N,13,1),n()()),e&2){let t=c();l(2),g(t.wrongUser?3:2)}}var R=A.localStorage.invite,ot=(()=>{class e{constructor(){this.router=_(S),this.store=_(V),this.injector=_(O),this.wrongUser=!1}ngOnInit(){let t=localStorage.getItem(R);this.invite=JSON.parse(t),this.userData=L(this.store.select(T).pipe(w(),f(o=>(o?.email?.toLowerCase()!==this.invite.email.toLowerCase()&&(this.wrongUser=!0),o))),{injector:this.injector})}accept(){if(this.invite.inviteId)this.store.dispatch(H({data:{hostWorkspaceId:this.invite.hostWorkspaceId,inviteId:this.invite.inviteId}}));else{let t={email:this.invite.email,workspaceId:this.invite.workspaceId};this.store.dispatch(B({data:t}))}}clearLocalStorage(){localStorage.removeItem(R),this.router.navigate(["/"])}logout(){this.store.dispatch(E())}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=k({type:e,selectors:[["app-invite"]],decls:15,vars:3,consts:[[1,"container"],[1,"card"],[3,"routerLink"],["width","48","height","48","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 640"],["d","M606.54,0a33.39,33.39,0,0,0-23.67,9.8l-1.59,1.73L320,294,9.43,629.81a33.35,33.35,0,0,0,24,10.19H606.54A33.46,33.46,0,0,0,640,606.54V33.46A33.46,33.46,0,0,0,606.54,0Z","fill","#FBB600"],["d","M320,294,58.72,11.53,57.13,9.8A33.47,33.47,0,0,0,0,33.46V606.54A33.46,33.46,0,0,0,33.46,640H606.54a33.35,33.35,0,0,0,24-10.19Z","fill","#00be68"],["d","M320,294h0L9.43,629.81a33.35,33.35,0,0,0,24,10.19H606.54a33.35,33.35,0,0,0,24-10.19L320,294Z","fill","#0b1829"],[1,"wrapper"],["src","assets/abstract2.jpg","alt","Decorative background","loading","lazy"],[1,"content"],[1,"input"],[1,"cta","flex","flex-row"],["mat-button","","color","accent",1,"secondary",3,"click"],["mat-flat-button","","color","accent",1,"primary",3,"click"]],template:function(o,a){if(o&1&&(i(0,"div",0)(1,"table")(2,"tr")(3,"td")(4,"div",1)(5,"header")(6,"a",2),M(),i(7,"svg",3),m(8,"path",4)(9,"path",5)(10,"path",6),n()(),b(),i(11,"h1"),r(12,"Invitation"),n()(),h(13,W,4,1,"section",7),n()()()()(),m(14,"img",8)),o&2){let x;l(6),P("routerLink",I(2,U)),l(7),g((x=a.userData())?13:-1,x)}},dependencies:[y,j,D],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{width:100%;padding:0 40px}[_nghost-%COMP%], [_nghost-%COMP%] .container[_ngcontent-%COMP%]{display:table;height:100%;width:100%}[_nghost-%COMP%] img[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;max-width:720px;z-index:-1}[_nghost-%COMP%] h1[_ngcontent-%COMP%]{margin:16px 0 8px}[_nghost-%COMP%] table[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] .card[_ngcontent-%COMP%]{background-color:#fff;position:relative;height:540px;width:450px;padding:48px 0 36px;margin:0 auto;border-radius:4px;border:1px solid var(--color-border-light);overflow:hidden;transition:height .1s linear}[_nghost-%COMP%] header[_ngcontent-%COMP%]{padding:0 40px}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:row}[_nghost-%COMP%] .cta[_ngcontent-%COMP%]{margin:60px 0 0}[_nghost-%COMP%] .cta[_ngcontent-%COMP%] button.primary[_ngcontent-%COMP%]{margin-left:auto}"],changeDetection:0})}}return e})();export{ot as default};
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.