1import{a as g}from"./chunk-CWT2KYND.js";import{a as A}from"./chunk-MQTNR3WQ.js";import{m as R,o as F}from"./chunk-C53UORQN.js";import{o as P}from"./chunk-YBSG77R6.js";import{i as D}from"./chunk-DXTONCKZ.js";import{b as I,c as S}from"./chunk-HRCH7YTL.js";import{a as O}from"./chunk-CJEIUXWH.js";import{b as T,c as E}from"./chunk-LS74OHRZ.js";import{j as w,l as x}from"./chunk-NKUORADV.js";import{p as k}from"./chunk-2K5EWLY6.js";import{Ec as d,Fb as h,Ja as b,Kc as C,Lc as M,Mc as _,N as f,Vc as n,kc as y,lc as e,mc as i,nc as p,pb as v,qa as r,r as u,rc as l,sc as c}from"./chunk-QXK5WLZZ.js";var ee=(()=>{class m{dialogRef=r(T);http=r(k);snackbar=r(R);security=r(F);router=r(D);data=r(E);formComponent;saving=b(!1);constructor(){this.security.can(P.UsersInviteEdit)||(this.dialogRef.close(),this.snackbar.open("You are not allowed to invite members"))}cancel(){this.dialogRef.close()}navigateToMembers(){this.dialogRef.close({completed:!0,taskId:this.data.task.id}),this.router.navigate(["/admin/members"])}async send(){if(!this.formComponent.inviteForm.invalid){this.saving.set(!0);try{await u(this.http.post("/api/members",this.formComponent.inviteForm.value)),this.snackbar.open("Invitation sent to "+this.formComponent.inviteForm.controls.email.value),this.dialogRef.close({completed:!0,taskId:this.data.task.id})}catch(s){console.error("Unable to send invitation",s),this.saving.set(!1),(await this.snackbar.open("Unable to send your invitation","TRY AGAIN")).onAction().pipe(f(1)).subscribe(()=>this.send())}}}static \u0275fac=function(t){return new(t||m)};static \u0275cmp=h({type:m,selectors:[["ih-invite-members-dialog"]],viewQuery:function(t,o){if(t&1&&C(g,5),t&2){let a;M(a=_())&&(o.formComponent=a.first)}},decls:21,vars:1,consts:[["ih-header",""],["ih-content",""],[1,"dialog-description"],[1,"breadcrumb-hint"],["svgIcon","information"],["tabindex","0",2,"cursor","pointer",3,"click","keydown.enter"],["id","inviteMemberForm",1,"dialog-form",3,"ngSubmit"],["ih-footer",""],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary","type","submit","form","inviteMemberForm","inProgressText","Sending",3,"ihInProgress"]],template:function(t,o){t&1&&(e(0,"ih-basic-dialog"),l(1,0),n(2,"Invite members"),c(),l(3,1),e(4,"p",2),n(5," Building a thriving community starts with inviting the right people. Invite members who will engage, contribute, and help grow your Hub into a valuable resource for everyone. "),i(),e(6,"div",3),p(7,"mat-icon",4),e(8,"span")(9,"strong"),n(10,"To invite later, go to:"),i(),n(11," Hub administration \u2192 "),e(12,"a",5),d("click",function(){return o.navigateToMembers()})("keydown.enter",function(){return o.navigateToMembers()}),n(13,"Members"),i()()(),e(14,"form",6),d("ngSubmit",function(){return o.send()}),p(15,"ih-invite-member-form"),i(),c(),l(16,7),e(17,"button",8),d("click",function(){return o.cancel()}),n(18,"Cancel"),i(),e(19,"button",9),n(20," Send invitation "),i(),c(),i()),t&2&&(v(19),y("ihInProgress",o.saving()))},dependencies:[x,w,S,I,O,A,g],styles:["[_nghost-%COMP%]{display:block}.dialog-description[_ngcontent-%COMP%]{font-size:.9375rem;line-height:1.5;margin-bottom:1.5rem;color:var(--color-text-primary, var(--app-text-primary))}.breadcrumb-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;padding:1rem;margin-bottom:1.5rem;background:var(--color-background-secondary, var(--app-bg-secondary));border-radius:4px;font-size:.875rem}.breadcrumb-hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;color:var(--color-primary, var(--app-primary));flex-shrink:0}.breadcrumb-hint[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{line-height:1.5}.full-width[_ngcontent-%COMP%]{width:100%}.dialog-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"],changeDetection:0})}return m})();export{ee as a}; 2/**i18n:c9e569e2ecdb3e0de183c72d8315eadfdcb9da9e09d5ac2d9fef9056c1853e21*/
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.