1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3216],{48396:(f,c,e)=>{e.d(c,{S:()=>o});var l=e(91368),u=e(83068),s=e(89192),r=e(32116);let o=(()=>{class t{static \u0275fac=function(g){return new(g||t)};static \u0275mod=r.a4G({type:t});static \u0275inj=r.s3X({imports:[u.wZ,l.MD,s.qQ]})}return t})()},33216:(f,c,e)=>{e.r(c),e.d(c,{JoinTeamPageModule:()=>A});var l=e(91368),u=e(44716),s=e(83068),r=e(89192),o=e(73448),t=e(32116),v=e(87264),m=e(2132),g=e(77816),I=e(62319),h=e(36032);function y(i,p){1&i&&(t.I0R(0,"div",3),t.wR5(1,"ion-spinner",4),t.I0R(2,"h6"),t.OEk(3,"loading.."),t.C$Y()())}function P(i,p){1&i&&(t.I0R(0,"span"),t.OEk(1,"Join"),t.C$Y())}function E(i,p){1&i&&t.wR5(0,"ion-spinner",12)}function O(i,p){if(1&i){const n=t.KQA();t.I0R(0,"section",5)(1,"div",6)(2,"div",7)(3,"p",8),t.OEk(4),t.C$Y(),t.I0R(5,"button",9),t.qCj("click",function(){t.usT(n);const d=t.GaO();return t.CGJ(d.onSubmit())}),t.yuY(6,P,2,0,"span",10)(7,E,1,0,"ion-spinner",11),t.C$Y()()()()}if(2&i){const n=t.GaO();t.yG2(4),t.oRS(" You have been invited by ",n.invite.referringName," to join their Tax Pro team. "),t.yG2(2),t.E7m("ngIf",!n.submittingSpinner),t.yG2(),t.E7m("ngIf",n.submittingSpinner)}}const T=[{path:":id",component:(()=>{class i{route;firebaseApi;util;userProvider;isLoading=!1;inviteId="";submittingSpinner=!1;invite;constructor(n,a,d,G){this.route=n,this.firebaseApi=a,this.util=d,this.userProvider=G}ngOnInit(){var n=this;return(0,o.c)(function*(){n.isLoading=!0,n.inviteId=n.route.snapshot?.params?.id,n.invite=yield n.firebaseApi.findOneById("invites",n.inviteId),n.invite&&!n.invite.expired?n.isLoading=!1:n.util.createErrorAlert(null,"This invite does not exist or is expired, please ask the team admin to invite you again",()=>n.util.navigateRoot("/dashboard"))})()}onSubmit(){var n=this;return(0,o.c)(function*(){try{n.submittingSpinner=!0;const a=yield n.firebaseApi.findOneById("teams",n.invite.teamId);a.members.push(n.userProvider.loggedInUser.id),yield n.firebaseApi.updateOne("teams",n.invite.teamId,{members:a.members}),yield n.firebaseApi.updateOne("invites",n.invite.id,{expired:!0}),yield n.firebaseApi.updateOne("users",n.userProvider.loggedInUser.id,{teamId:n.invite.teamId}),n.util.createErrorAlert(null,"You have joined the tax pro team!",(0,o.c)(function*(){yield n.util.navigateRoot("/dashboard"),location.reload()}))}catch(a){n.util.createErrorAlert(null,"Could not join team "+a)}finally{n.submittingSpinner=!1}})()}static \u0275fac=function(a){return new(a||i)(t.GI1(r.gV),t.GI1(v.H),t.GI1(m.e),t.GI1(g.e))};static \u0275cmp=t.In1({type:i,selectors:[["app-join-team"]],decls:5,vars:4,consts:[[3,"contentWidth","hero"],["id","spinner",4,"ngIf"],["id","content",4,"ngIf"],["id","spinner"],["name","circles","color","primary"],["id","content"],[1,"step-container"],[1,"right","nopadding"],[1,"step-info"],["type","button",1,"custom-btn",3,"click"],[4,"ngIf"],["color","light","name","circles",4,"ngIf"],["color","light","name","circles"]],template:function(a,d){1&a&&(t.wR5(0,"app-header"),t.I0R(1,"ion-content")(2,"app-split-page",0),t.yuY(3,y,4,0,"div",1)(4,O,8,3,"section",2),t.C$Y()()),2&a&&(t.yG2(2),t.E7m("contentWidth",25)("hero","assets/2fahero.svg"),t.yG2(),t.E7m("ngIf",d.isLoading),t.yG2(),t.E7m("ngIf",!d.isLoading))},dependencies:[l.u_,s._i,s.YA,I.g,h.k],styles:[".disclaimer[_ngcontent-%COMP%]{text-align:center;font-size:.9rem;color:gray}#spinner[_ngcontent-%COMP%]{text-align:center}#spinner[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:gray;text-align:center;font-size:.8rem;margin:0}"]})}return i})()}];let M=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=t.a4G({type:i});static \u0275inj=t.s3X({imports:[r.qQ.forChild(T),r.qQ]})}return i})();var C=e(59952),R=e(48396);let A=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=t.a4G({type:i});static \u0275inj=t.s3X({imports:[l.MD,u.y,s.wZ,M,C.S,R.S]})}return i})()},59952:(f,c,e)=>{e.d(c,{S:()=>r});var l=e(91368),u=e(83068),s=e(32116);let r=(()=>{class o{static \u0275fac=function(m){return new(m||o)};static \u0275mod=s.a4G({type:o});static \u0275inj=s.s3X({imports:[l.MD,u.wZ]})}return o}
1)()}}]);
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.