import {AfterViewInit, Component, Input, OnDestroy, OnInit, ViewChild} from "@angular/core";
import {User} from "../login/utils/helper.class";
import {ActivatedRoute, Router} from "@angular/router";
import {UserManagementService} from "../services/user-management.service";
import {UserRegistryService} from "../services/user-registry.service";
import {LoginErrorCodes} from "../login/utils/guardHelper.class";
import {Subscriber, Subscription} from "rxjs";
import {UntypedFormBuilder, UntypedFormControl, Validators} from "@angular/forms";
import {AlertModal} from "../utils/modal/alert";
import {properties} from "../../../environments/environment";
import {EmailService} from "../utils/email/email.service";
import {Composer} from "../utils/email/composer";
@Component({
selector: 'role-verification',
template: `
You have been invited to join {{name}} {{(service === 'monitor' ? 'Monitor' : 'Research Community')}} Dashboard
as a manager.
Fill in the verification code, sent to
your
email, to accept the invitation request.
{{error}}
You have been invited to join {{name}} Monitor Dashboard as a member.
Fill in the verification code, sent
to
your
email, to accept the invitation request.
{{error}}
Welcome! You are now a member of the OpenAIRE Monitor Dashboard for the {{name}}!
From now on, you will have access to our restricted content.
We are unable to process the request because the link is invalid, or it has expired.