PageSourceSearch

https://www.aat.org.uk/csr/chunk-ED5LMXIG.js

js aat.org.uk collected 2026-10-03 21:40:41 UTC 107,980 bytes, 5 lines download raw bytes

1import{a as W}from"./chunk-JEL6HJ7P.js";import{$a as Pt,Da as At,Dc as he,Ea as kt,F as ft,Hb as Wt,Hc as _e,I as pt,Ib as Ut,Ic as $t,Jc as jt,K as ut,L as te,Pa as Oe,Q as ht,Qa as F,S as _t,Sa as Tt,T as gt,Ta as Rt,U as Pe,Ua as B,V as Ct,Va as Mt,W as vt,Wa as Et,Xa as G,Ya as H,_a as It,aa as bt,d as we,gb as ne,ia as xt,ib as ie,ka as St,kb as Ot,lb as Dt,ob as Vt,pb as Nt,q as ct,sa as $,t as dt,tb as Ft,u as mt,ub as Bt,vb as qt,wa as yt,wb as Lt,ya as wt}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import{H as Ee,K as lt,L as Ie,e as Q,h as ue,i as Ae,j as ke,m as E,o as at,p as Te,s as Re,t as Me,u as rt,w as st}from"./chunk-76O7YCWW.js";import{c as it,e as N,f as ye,g as ot,k as le}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import{a as tt,c as nt}from"./chunk-LU7SZU5X.js";import{A as et,j as Ke,t as Fe}from"./chunk-PO2RDVKE.js";import{$b as Ge,Ac as ee,Bc as V,E as U,Ec as S,Fc as y,Gc as w,J as T,Lc as Ye,Nc as ze,Oc as Je,Pb as _,Rb as g,Sb as O,Tb as je,Tc as Se,Ub as R,Uc as Ne,Vb as M,Vc as Xe,Wb as m,Xb as o,Yb as a,Z as ve,Za as Z,Zb as C,_b as Qe,ac as He,bd as pe,ca as j,da as Le,db as c,ec as v,fc as be,ga as We,ha as p,ib as L,id as Ze,jc as b,lc as d,oa as u,pa as h,pc as ae,qc as re,rc as se,s as qe,ub as A,uc as K,vb as Ue,wc as xe,xa as D,xb as $e,zc as l}from"./chunk-3URBZWPM.js";import{a as me,b as fe}from"./chunk-ODN5LVDJ.js";var Y=(function(n){return n.Active="Active",n.Pending="Pending",n.MaxAdmins="MaxAdmins",n.MainContact="MainContact",n})(Y||{});var k=(()=>{let s=class s{constructor(){this.isStaff=D(!1),this.selectedCentre=D(null),this.centreRoles=D(null),this.centreQuals=D(null),this.rolesFilter=D(null),this.nameFilter=D(null),this.results=D([]),this.selectedResults=D([]),this.manageStaffResultsLoading=D(!1),this.manageStaffResults=D(null),this.confirmationPageData=D(null),this.loadingResults=D(!1),this.apiError=D(null),this.convertConnectionsToConnectionsResult=e=>e.map(t=>fe(me({},t),{selected:!1,roles:t.roles.map(r=>fe(me({},r),{selected:!0}))})),this.checkIfRoleIsDisabled=e=>e.disabled&&(e.status===Y.Pending||e.status===Y.Active||e.status===Y.MainContact)||e.disabled&&!e.selected&&e.status===Y.MaxAdmins}setCentre(e){this.selectedCentre.set(e),this.rolesFilter.set(null),this.nameFilter.set(null),this.results.set(null),this.loadingResults.set(!1)}setRolesFilter(e){this.rolesFilter.set(e)}setNameFilter(e){this.nameFilter.set(e?.length?e:null)}setResults(e){this.results.set(this.convertConnectionsToConnectionsResult(e))}setSelectedResults(e){this.selectedResults.set(e)}setLoadingResults(e){this.loadingResults.set(e)}setConfirmationPageData(e){this.confirmationPageData.set(e)}setManageStaffResultsLoading(e){this.manageStaffResultsLoading.set(e)}setManageStaffResults(e){e.organisationContacts?.forEach(t=>{t.roles.forEach(r=>{r.selected=!0;let f=e.roles.find(x=>x.roleName===r.roleName);f.status=r?.status,f&&(f.selected=!0,f.additionalQuestions="None",f.disabled=r.disabled)})}),e.roles.forEach(t=>t.quals=structuredClone(this.centreQuals())),this.manageStaffResults.set(e)}setCentreRoles(e){this.centreRoles.set(e)}setAATStaffCheck(e){this.isStaff.set(e.some(t=>["admin","staff"].includes(t)))}setCentreQuals(e){let t=e.map(r=>({qualificationName:r.qualificationName,selected:!1,units:r.units.map(f=>({name:f,selected:!1}))}));this.centreQuals.set(t)}setAPIError(e){let t={type:"error",message:e,isOpened:!0,fullWidth:!0};this.apiError.set(t)}resetAPIError(){this.apiError.set(null)}};s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=j({token:s,factory:s.\u0275fac,providedIn:"root"});let n=s;return n})();var P=(()=>{let s=class s{constructor(){this.gtmService=p(Pe),this.contentType="manage staff access"}onViewContent(e){this.gtmService.push({event:"select_content",content_name:e,contentType:this.contentType})}onSearch(e,t){this.gtmService.push({event:"manage_staff_access_search",search_filters:this.generateSearchFilterString(e,t),contentType:this.contentType})}onSearchError(e,t,r){this.gtmService.push({event:"search_error",search_type:"manage staff access",
1search_filters:this.generateSearchFilterString(e,t),error_message:r,contentType:this.contentType})}onSearchAutocompleteError(){this.gtmService.push({event:"search_error",error_message:"There are no results for the staff name or AAT ID number you are searching for. Please check for any errors and/or that the name or ID is linked to the centre.",search_type:"manage staff access",contentType:this.contentType})}onStaffRemove(e){this.gtmService.push({event:"remove_staff",content_name:e,contentType:this.contentType})}onStaffAdd(e){this.gtmService.push({event:"add_staff",content_name:e,contentType:this.contentType})}onRolesAdd(e){this.gtmService.push({event:"add_roles",content_name:e,contentType:this.contentType})}onRolesRemove(e){this.gtmService.push({event:"remove_roles",content_name:e,contentType:this.contentType})}generateSearchFilterString(e,t){let r="";return e&&(r+="staff name or aat ID number"),t&&(e&&(r+=", "),r+="role"),r===""&&(r="(none)"),r}};s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=j({token:s,factory:s.\u0275fac,providedIn:"root"});let n=s;return n})();var q=(()=>{let s=class s{constructor(){this.http=p(nt),this.stateService=p(k),this.contactService=p(bt),this.router=p(N),this.msaAnalytics=p(P)}nameFilter(e){return this.http.get(`${W.API_URL}/connection/search-contacts/${this.stateService.selectedCentre().organisationId}/?query=${e}`).pipe(U(t=>t))}search(){this.stateService.apiError.set(null);let e={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"ListContacts"};return this.stateService.rolesFilter()?.length>0&&(e.roles=this.stateService.rolesFilter().map(t=>t.label)),this.stateService.nameFilter()&&(e.contactIds=this.stateService.nameFilter().map(t=>t.data.contactId)),this.http.post(`${W.API_URL}/centre-contact-application/manage-staff-roles/${this.stateService.selectedCentre().organisationId}`,e).pipe(U(t=>{throw this.stateService.setAPIError("Unable to find staff members."),this.msaAnalytics.onSearchError(!!this.stateService.nameFilter(),this.stateService.rolesFilter()?.length>0,"Unable to find staff members"),t}))}loadCentreRoles(){this.stateService.apiError.set(null),this.http.get(`${W.API_URL}/centre-contact-application/organisation-roles/${this.stateService.selectedCentre().organisationId}`).subscribe({next:e=>this.stateService.setCentreRoles(e),error:e=>{this.stateService.setAPIError("We were unable to load centre roles. Please try again later.")}})}loadCentreQuals(){this.stateService.apiError.set(null),this.http.get(`${W.API_URL}/centre-contact-application/organisation-qualifications/${this.stateService.selectedCentre().organisationId}`).pipe(T(1)).subscribe({next:e=>this.stateService.setCentreQuals(e),error:e=>{this.stateService.setAPIError("We were unable to load centre qualifications. Please try again later.")}})}loadResultsIntoState(){this.stateService.apiError.set(null),this.resultsCall$&&this.resultsCall$.unsubscribe(),this.stateService.setLoadingResults(!0),this.resultsCall$=this.search().pipe(T(1)).subscribe({next:e=>{this.stateService.setResults(e),this.stateService.setLoadingResults(!1)},error:e=>(this.stateService.setLoadingResults(!1),this.stateService.setAPIError("We were unable to load results. Please try again later."),e)})}loadManageStaffRoles(e){this.stateService.apiError.set(null),this.stateService.setManageStaffResultsLoading(!0);let t;e?(t={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"UpdateRoles"},Array.isArray(e)?t.contactIds=e.map(r=>r.contactId):t.contactIds=[e.contactId]):t={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"NewStaff"},this.http.post(`${W.API_URL}/centre-contact-application/manage-staff-roles/${this.stateService.selectedCentre().organisationId}`,t).pipe(T(1)).subscribe({next:r=>{let f=r;f.roles=f.roles.map(x=>fe(me({},x),{selected:!1})),this.stateService.setManageStaffResults(f),this.stateService.setManageStaffResultsLoading(!1)},error:r=>{this.stateService.setManageStaffResultsLoading(!1),this.stateService.setAPIError("An error has occurred")}})}
1removeStaff(){return this.stateService.apiError.set(null),this.http.post(`${W.API_URL}/centre-contact-application/remove-staff/${this.stateService.selectedCentre().organisationId}`,{organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),contactIds:this.stateService.selectedResults().map(e=>e.contactId)}).pipe(ve(()=>{this.msaAnalytics.onStaffRemove("remove staff")}),U(e=>{throw this.stateService.setAPIError(e.error),e}))}removeStaffRoles(){return this.stateService.apiError.set(null),this.http.post(`${W.API_URL}/centre-contact-application/remove-staff-roles/${this.stateService.selectedCentre().organisationId}`,{organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),ids:this.stateService.manageStaffResults().organisationContacts.map(e=>{let t=e.roles.filter(r=>!r.selected).map(r=>r.connectionId);return{contactId:e.contactId,connections:t,removedAllRoles:e.roles.length===t.length}}).filter(e=>e.connections.length>0)}).pipe(ve(()=>{this.msaAnalytics.onRolesRemove("remove roles")}),U(e=>{throw this.stateService.setAPIError("Unable to remove staff roles, please try again or contact AAT if the issue persists."),e}))}validateCreateStaff(e){this.stateService.apiError.set(null);let t={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"NewStaff",newStaff:{title:e.controls.title.value.label,firstName:e.controls.firstName.value,lastName:e.controls.lastName.value,emailAddress:e.controls.email.value,currentStudent:e.controls.currentStudent.value,country:e.controls.country.value.id,memberId:e.controls.existingAATId.value,workedAtAnother:e.controls.workingTP.value,nameTpAv:e.controls.tpName.value},connectionsToAdd:null};return this.http.post(`${W.API_URL}/centre-contact-application/validate/${this.stateService.selectedCentre().organisationId}`,t).pipe(U(r=>{throw r.error.emailAddress?this.stateService.setAPIError(r.error.emailAddress):this.stateService.setAPIError("Sorry, there's been a technical error. Please try again later."),r}))}validateCreateStaffRoles(e){this.stateService.apiError.set(null);let t={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"UpdateRoles",connectionsToAdd:[],connectionsToRemove:null};return Object.keys(e.controls).filter(r=>e.controls[r].controls.selected?.value).forEach(r=>{t.connectionsToAdd.push(this.createConnection(e,r))}),this.http.post(`${W.API_URL}/centre-contact-application/validate/${this.stateService.selectedCentre().organisationId}`,t).pipe(U(r=>{throw this.stateService.setAPIError("Unable to add the selected roles. Please try again later."),r}))}downloadCSV(){this.stateService.apiError.set(null);let e={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"ListContacts"};return this.stateService.rolesFilter()?.length>0&&(e.roles=this.stateService.rolesFilter().map(t=>t.label)),this.stateService.nameFilter()&&(e.contactIds=this.stateService.nameFilter().map(t=>t.data.contactId)),this.http.post(`${W.API_URL}/document-generation/csv/manage-staff-roles`,e,{headers:new tt({"Content-Type":"text/csv",Accept:"text/csv"}),observe:"response",responseType:"blob"}).pipe(U(t=>{throw this.stateService.setAPIError("Unable to remove staff roles. Please try again later."),t}))}createStaff(e,t){this.stateService.apiError.set(null);let r={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"NewStaff",newStaff:{title:e.controls.title.value.label,firstName:e.controls.firstName.value,lastName:e.controls.lastName.value,emailAddress:e.controls.email.value,currentStudent:e.controls.currentStudent.value,country:e.controls.country.value.id,memberId:e.controls.existingAATId.value,workedAtAnother:e.controls.workingTP.value,nameTpAv:e.controls.tpName.value},connectionsToAdd:[]};return Object.keys(t.controls).filter(f=>t.controls[f].controls.selected?.value).forEach(f=>{r.connectionsToAdd.push(this.createConnection(t,f))}),this.http.post(`${W.API_URL}/centre-contact-application/manage-application/${this.stateService.selectedCentre().organisationId}`,r).pipe(ve(()=>{this.msaAnalytics.onStaffAdd("add new centre staff")}),U(f=>{throw this.stateService.setAPIError("Unable to create staff member. Please try again later."),f}))}
1updateRoles(e,t,r){this.stateService.apiError.set(null);let f={organisationId:this.stateService.selectedCentre().organisationId,organisationContactId:this.contactService.contactId(),applicationType:"UpdateRoles",contactId:this.stateService.manageStaffResults().organisationContacts[0].contactId,connectionsToRemove:null,connectionsToAdd:null},x=r.map(z=>this.stateService.manageStaffResults().organisationContacts[0].roles.find(nn=>nn.roleName===z)),Ve=t.map(z=>this.createConnection(e,z));t.length>0&&(f.connectionsToAdd=Ve);let oe={contactId:this.stateService.manageStaffResults().organisationContacts[0].contactId,connections:x.map(z=>z.connectionId),removedAllRoles:Ve.length===0&&x.length===this.stateService.manageStaffResults().organisationContacts[0].roles.length};return oe.connections.length>0&&(f.connectionsToRemove=[oe]),this.http.post(`${W.API_URL}/centre-contact-application/manage-application/${this.stateService.selectedCentre().organisationId}`,f).pipe(ve(()=>{oe?.removedAllRoles?this.msaAnalytics.onStaffRemove("manage roles"):f.connectionsToRemove&&this.msaAnalytics.onRolesRemove("manage roles"),f.connectionsToAdd&&this.msaAnalytics.onRolesAdd("manage roles")}),U(z=>{throw this.stateService.setAPIError("Unable to update roles. Please try again later."),z}))}createConnection(e,t){let r=this.stateService.manageStaffResults().roles.find(x=>x.roleName===t).roleId,f={connectionName:t,connectionId:r};return e.controls[t].controls.attachmentIds?.value&&(f.attachments=e.controls[t].controls.attachmentIds.value?.map(x=>x.attachment.attachmentId)),(e.value[t].qualification||e.value[t].awardingBody)&&(f.centreRoleQuestions=[{centreRoleQuestionId:we(),questionTitle:"Question 1",questionAnswer:e.value[t].awardingBody||""}]),e.value[t].qualification&&(f.centreRoleQuestions[0].questionAnswer=JSON.stringify(this.transformQualification(e.value[t].qualification))),f}transformQualification(e){return e.filter(t=>t.selected).map(t=>fe(me({},t),{units:t.units.filter(r=>r.selected)}))}};s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=j({token:s,factory:s.\u0275fac,providedIn:"root"});let n=s;return n})();var Qt=(()=>{let s=class s{constructor(e){this.helper=e,this.service=p(q),this.stateService=p(k),this.msaAnalyticsService=p(P),this.isLoading=!1}search(e){return this.service.nameFilter(e).pipe(qe(t=>t.map((r,f)=>({id:f,label:`${r.givenName} ${r.familyName}`,data:r}))),U(t=>(this.msaAnalyticsService.onSearchAutocompleteError(),this.helper.handleError(t))))}};s.\u0275fac=function(t){return new(t||s)(We(St))},s.\u0275prov=j({token:s,factory:s.\u0275fac,providedIn:"root"});let n=s;return n})();function on(n,s){if(n&1&&(o(0,"span",4),l(1),a()),n&2){let i=s.$implicit;c(),ee(i.roleName)}}var Gt=(()=>{let s=class s{constructor(){this.selectedChange=new L,this.addOrRemoveRolesChange=new L,this.addOrRemoveRolesButton={text:"Add or remove roles",action:{type:"callback",callback:()=>{this.addOrRemoveRolesChange.emit(this.content)}},type:"secondary",aria:"Add or remove roles"}}ngOnInit(){this.cardCheckBox={id:"manage-tp-staff-access-checkbox"+this.content.contactId,label:""}}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-checkbox-card"]],inputs:{content:"content"},outputs:{selectedChange:"selectedChange",addOrRemoveRolesChange:"addOrRemoveRolesChange"},decls:13,vars:5,consts:[[1,"checkbox-card"],[1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content"],[1,"checkbox-card__details"],[1,"checkbox-card__roles"],[1,"checkbox-card__roles__value"],[1,"checkbox-card__remove",3,"button"]],template:function(t,r){t&1&&(o(0,"div",0)(1,"fab-input-checkbox",1),w("isCheckedChange",function(x){return y(r.content.selected,x)||(r.content.selected=x),x}),b("isCheckedChange",function(x){return r.selectedChange.emit(x)}),a(),o(2,"h4",2)(3,"strong"),l(4),a()(),o(5,"h4",2)(6,"strong"),l(7),a()(),o(8,"div",3),R(9,on,2,1,"span",4,O),a(),o(11,"fab-button",5),l(12,"Add or remove roles"),a()()),t&2&&(c(),S("isChecked",r.content.selected),m("content",r.cardCheckBox),c(3),ee(r.content.name),c(3),V("AAT number: ",r.content.membershipNumber),c(2),M(r.content.roles),c(2),m("button",r.addOrRemoveRolesButton))},dependencies:[B,F,$],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.checkbox-card[_ngcontent-%COMP%]{border:2px solid #dce6f0;padding:5px 15px 15px;display:grid;min-height:120px;grid-template-columns:15% 35% 50%;grid-template-rows:35% 65%;grid-template-areas:"a b c" "e f g"}@media (min-width: 768px){.checkbox-card[_ngcontent-%COMP%]{grid-template-columns:5% 35% 35% 25%;grid-template-areas:"a b c d" "e f g h"}.checkbox-card__checkbox[_ngcontent-%COMP%]{grid-row:a e}}.checkbox-card__details[_ngcontent-%COMP%]{margin-top:5px}.checkbox-card__roles[_ngcontent-%COMP%]{display:flex;align-items:flex-end;flex-direction:column;justify-content:flex-end;grid-column:b}@media (min-width: 768px){.checkbox-card__roles[_ngcontent-%COMP%]{margin-top:25px}}.checkbox-card__roles__value[_ngcontent-%COMP%]{display:block;align-self:baseline}.checkbox-card__remove[_ngcontent-%COMP%]{grid-column:c;align-self:flex-end}@media (min-width: 768px){.checkbox-card__remove[_ngcontent-%COMP%]{grid-column:d}}']});let n=s;return n})();var an=n=>({"checkbox-card__checkbox--highlight":n});function rn(n,s){}function sn(n,s){n&1&&(o(0,"p"),l(1," This role has been added and is pending confirmation as approval is required from the Centre Compliance team "),a())}function ln(n,s){n&1&&(o(0,"p"),l(1,"You have reached the maximum limit of four admin roles for your centre"),a())}function cn(n,s){n&1&&(o(0,"p"),l(1," To add or amend this main contact role, you\u2019ll need to contact the Centre Compliance team by emailing "),o(2,"a",8),l(3,"[email protected]"),a()())}function dn(n,s){if(n&1&&_(0,rn,0,0)(1,sn,2,0,"p")(2,ln,2,0,"p")(3,cn,4,0,"p"),n&2){let i=s,e=d(5);g(i===e.RoleStatus.Active?0:i===e.RoleStatus.Pending?1:i===e.RoleStatus.MaxAdmins?2:i===e.RoleStatus.MainContact?3:-1)}}function mn(n,s){if(n&1){let i=v();o(0,"div",4)(1,"fab-input-checkbox",5),b("isCheckedChange",function(t){u(i);let r=d(2).$implicit,f=d(2);return h(f.setValidators(r,t))}),a(),o(2,"span",6),C(3,"fab-aat-icon",7),a()(),_(4,dn,4,1)}if(n&2){let i,e=d(2).$implicit,t=d(2);c(),m("isChecked",t.form.controls[e].controls.disabled.value)("content",t.checkBoxDisabled(e+"--selected",e)),c(),m("tooltip",t.returnTooltipCopy(e)),c(),m("content",t.icon),c(),g((i=t.returnRoleStatus(e))?4:-1,i)}}function fn(n,s){n&1&&(o(0,"p",10),l(1,"This role has been unselected. Please reselect if this is an error."),a())}function pn(n,s){if(n&1){let i=v();o(0,"div",4)(1,"fab-input-checkbox",9),w("isCheckedChange",function(t){u(i);let r=d(2).$implicit,f=d(2);return y(f.form.controls[r].controls.selected.value,t)||(f.form.controls[r].controls.selected.value=t),h(t)}),b("isCheckedChange",function(t){u(i);let r=d(2).$implicit,f=d(2);return h(f.setValidators(r,t))}),a(),o(2,"span",6),C(3,"fab-aat-icon",7),a()(),_(4,fn,2,0,"p",10)}if(n&2){let i=d(2).$implicit,e=d(2);c(),S("isChecked",e.form.controls[i].controls.selected.value),m("content",e.checkBox(i+"--selected",i))("ngClass",Je(6,an,e.isRoleRemoved(i))),c(),m("tooltip",e.returnTooltipCopy(i)),c(),m("content",e.icon),c(),g(e.isRoleRemoved(i)?4:-1)}}function un(n,s){if(n&1){let i=v();o(0,"div",13)(1,"fab-input-checkbox",14),w("isCheckedChange",function(t){let r=u(i).$implicit;return y(r.selected,t)||(r.selected=t),h(t)}),b("isCheckedChange",function(t){u(i);let r=d().$implicit,f=d(3).$implicit,x=d(2);return t===!0&&(r.selected=!0),h(x.form.controls[f].controls.qualification.updateV
1alueAndValidity())}),a()()}if(n&2){let i=s.$implicit,e=d().$implicit,t=d(3).$implicit,r=d(2);c(),S("isChecked",i.selected),m("content",r.checkBox(t+"-"+e.qualificationName+"-"+i.name+"--selected",i.name))}}function hn(n,s){if(n&1){let i=v();o(0,"div",12)(1,"fab-input-checkbox",5),w("isCheckedChange",function(t){let r=u(i).$implicit;return y(r.selected,t)||(r.selected=t),h(t)}),b("isCheckedChange",function(t){let r=u(i).$implicit,f=d(3).$implicit,x=d(2);return x.selectChildren(t,r),h(x.form.controls[f].controls.qualification.updateValueAndValidity())}),a()(),R(2,un,2,2,"div",13,O)}if(n&2){let i=s.$implicit,e=d(3).$implicit,t=d(2);c(),S("isChecked",i.selected),m("content",t.checkBox(e+"-"+i.qualificationName+"--selected",i.qualificationName)),c(),M(i.units)}}function _n(n,s){if(n&1){let i=v();o(0,"div",3)(1,"p"),l(2," Please select the qualification(s) and unit(s)/assessment(s) for the staff you're requesting approval for. At least one qualification and unit/assessment need to be selected to continue with your request. "),a(),R(3,hn,4,2,null,null,O),o(5,"p"),l(6," Please upload evidence of the qualification(s) and unit(s)/assessment(s) for the staff, such as copies of CV, Assessor/Internal Verifier certificates or professional certificates i.e accounting qualifications. "),a(),o(7,"fab-file-picker",11),b("uploadedFiles",function(t){u(i);let r=d(2).$implicit,f=d(2);return h(f.captureUploadedFiles(r,t))}),a()()}if(n&2){let i=d().$implicit,e=d().$implicit,t=d(2);c(3),M(t.form.controls[e].controls.qualification.value),c(4),m("files",t.form.controls[e].controls.attachmentIds.value)("content",t.evidenceUploadInterface(e+"-"+i+"-upload"))("uploadToSharePoint",!0)("maxFiles",5)("errorMessage","Failed to upload file")}}function gn(n,s){if(n&1){let i=v();o(0,"div",3)(1,"p"),l(2," The staff member is registered with an awarding body to achieve the relevant Assessor/Internal verifier award. "),a(),C(3,"fab-input-text-2",15),o(4,"p"),l(5," Please upload evidence showing they're registered on the assessor and/or internal verifier qualification \u2013 for example a letter or email confirming that they are registered onto the programme. We also require a copy of professional certificates that demonstrate their occupational competence. "),a(),o(6,"fab-file-picker",11),b("uploadedFiles",function(t){u(i);let r=d(2).$implicit,f=d(2);return h(f.captureUploadedFiles(r,t))}),a()()}if(n&2){let i=d().$implicit,e=d().$implicit,t=d(2);c(3),m("content",t.inputTextInterface(e+"-"+i))("formControl",t.form.controls[e].controls.awardingBody),c(3),m("files",t.form.controls[e].controls.attachmentIds.value)("content",t.evidenceUploadInterface(e+"-"+i+"-upload"))("uploadToSharePoint",!0)("maxFiles",5)("errorMessage","Failed to upload file")}}function Cn(n,s){if(n&1){let i=v();o(0,"div",3)(1,"p"),l(2," It is the responsibility of the training provider to update the AAT Centre Compliance team with any changes to their team of assessors and internal verifiers within four weeks of appointment and/or end date, and immediately concerning changes to qualification status or suitability. Training providers must ensure all assessors and internal verifiers are qualified and competent to perform their role. Details of full AAT requirements for assessors and internal verifiers are outlined in the AAT Code of practice. "),a(),o(3,"p"),l(4," I confirm that the information in this request is accurate and complete to the best of my knowledge and belief. I agree that if at any time I become aware that any information in this request is incorrect or if it changes in any way, I will notify AAT immediately. "),a(),o(5,"div",4)(6,"fab-checkbox-confirm",16),b("isCheckedChange",function(){u(i);let t=d(2).$implicit,r=d(2);return h(r.form.controls[t].controls.agreedDeclaration.updateValueAndValidity())}),a()()()}if(n&2){let i=d(2).$implicit,e=d(2);c(6),m("preChecked",e.form.controls[i].controls.agreedDeclaration.value)("content",e.checkBoxBoldedLabel(i+"quals declaration","I agree"))}}function vn(n,s){if(n&1){let i=v();o(0,"div",3)(1,"p"),l(2," It is the responsibility of the training provider to update the AAT Centre Compliance team with any changes to their team of trainee assessors and internal verifiers within four weeks of appointment and/or end date, and immediately concerning changes to qualification status or suitability. Training providers must ensure all trainee assessors and internal verifiers are registered on the assessor and/or internal verifier qual
1ification and competent to perform their role. Details of full AAT requirements for trainee assessors and internal verifiers are outlined in the AAT Code of practice. "),a(),o(3,"p"),l(4," I confirm that the information in this request is accurate and complete to the best of my knowledge and belief. I agree that if at any time I become aware that any information in this request is incorrect or if it changes in any way, I will notify AAT immediately. "),a(),o(5,"div",4)(6,"fab-checkbox-confirm",16),b("isCheckedChange",function(){u(i);let t=d(2).$implicit,r=d(2);return h(r.form.controls[t].controls.agreedDeclaration.updateValueAndValidity())}),a()()()}if(n&2){let i=d(2).$implicit,e=d(2);c(6),m("preChecked",e.form.controls[i].controls.agreedDeclaration.value)("content",e.checkBoxBoldedLabel(i+"awarding body declaration","I agree"))}}function bn(n,s){if(n&1&&(_(0,mn,5,5),_(1,pn,5,8),_(2,_n,8,5,"div",3),_(3,gn,7,7,"div",3),_(4,Cn,7,2,"div",3),_(5,vn,7,2,"div",3)),n&2){let i=s.$implicit,e=d().$implicit,t=d(2);g(i==="disabled"?0:-1),c(),g(i==="selected"?1:-1),c(),g(i==="qualification"&&t.form.controls[e].controls.selected.value===!0?2:-1),c(),g(i==="awardingBody"&&t.form.controls[e].controls.selected.value===!0?3:-1),c(),g(i==="qualification"&&t.form.controls[e].controls.selected.value===!0?4:-1),c(),g(i==="awardingBody"&&t.form.controls[e].controls.selected.value===!0?5:-1)}}function xn(n,s){if(n&1&&(o(0,"div",1),R(1,bn,6,6,null,null,O),a()),n&2){let i=s.$implicit,e=d(2);m("formGroupName",i),c(),M(e.formKeys(e.form.controls[i]))}}function Sn(n,s){n&1&&(o(0,"p",2),l(1," To continue, please ensure you\u2019ve filled in the required fields, uploaded the necessary document(s) and agreed to the declaration, if your selected role(s) require this. "),a())}function yn(n,s){if(n&1&&(o(0,"form",0),R(1,xn,3,1,"div",1,O),_(3,Sn,2,0,"p",2),a()),n&2){let i=d();m("formGroup",i.form),c(),M(i.formKeys(i.form)),c(2),g(i.form.valid?-1:3)}}var De=(()=>{let s=class s{constructor(){this.stateService=p(k),this.formBuilder=p(Ee),this.RoleStatus=Y,this.initialRoles=[],this.evidenceUploadInterface=e=>({id:e,formControlName:"attachmentIds",source:"centreContact",extraPayload:{applicationType:"CENTRECONTACT",centreContactApplicationId:we(),organisationId:this.stateService.selectedCentre().organisationId},allowedExtensions:"jpg, jpeg, gif, png, rtf, txt, tex, doc, docx, xls, xlsx, pdf, ppt, pptx, odt, ods, odp, wpd, wps, pages"}),this.inputTextInterface=e=>({id:"input"+e,label:"Please enter the name of the awarding body.",required:!1,codeType:"Alpha"}),this.checkBox=(e,t)=>({id:"manage-tp-staff-access-checkbox"+e,label:t}),this.checkBoxDisabled=(e,t)=>({id:"manage-tp-staff-access-checkbox"+e,label:t,disabled:!0}),this.checkBoxBoldedLabel=(e,t)=>
1({id:"manage-tp-staff-access-checkbox"+e,label:`<strong>${t}</strong>`}),this.icon={colour:dt.GREEN,iconName:ut.info},this.iconSize=mt.SMALL,this.formKeys=e=>Object.keys(e.controls),this.isRoleRemoved=e=>!this.form.controls[e].controls.selected.value&&this.initialRoles.includes(e),this.qualsValidator=()=>e=>{if(e.controls.attachmentIds&&(e.controls.attachmentIds.value===void 0||e.controls.attachmentIds.value.length===0))return{attachment:"must provide at least one upload"};if(e.controls.agreedDeclaration&&e.controls.agreedDeclaration.value!=="true")return{agreedDeclaration:"must agree to declaration"};if(e.controls.qualification){let t=!1;return e.controls.qualification.value.forEach(r=>{r.units.forEach(f=>{if(f.selected===!0){t=!0;return}})}),t?null:{qualSelected:"No qual is selected"}}if(e.controls.awardingBody)return e.controls.awardingBody?.value.length>0?null:{awardingBody:"Awarding body cannot be empty"}}}ngOnInit(){this.stateService.manageStaffResults().roles.map(e=>{e.selected&&this.initialRoles.push(e.roleName),this.stateService.checkIfRoleIsDisabled(e)?this.form.addControl(e.roleName,this.formBuilder.group({disabled:new E(e.selected)})):e.additionalQuestions==="None"?this.form.addControl(e.roleName,this.formBuilder.group({selected:new E(e.selected)})):e.additionalQuestions==="Qualification"?this.form.addControl(e.roleName,this.formBuilder.group({selected:new E(e.selected),qualification:new E(this.getQualsForRole()),attachmentIds:new E([]),agreedDeclaration:new E(!1)})):e.additionalQuestions==="AwardingBody"&&this.form.addControl(e.roleName,this.formBuilder.group({selected:new E(e.selected),awardingBody:new E(""),attachmentIds:new E([]),agreedDeclaration:new E(!1)}))})}setValidators(e,t){this.initialRoles.includes(e)&&!t?(this.form.controls[e].setValidators([this.qualsValidator()]),this.form.controls[e].markAsDirty()):this.initialRoles.includes(e)&&t?(this.form.controls[e].setValidators([]),this.form.controls[e].markAsPristine()):t?(this.form.controls[e].setValidators([this.qualsValidator()]),this.form.controls[e].markAsDirty()):(this.form.controls[e].setValidators([]),this.form.controls[e].markAsPristine()),this.form.controls[e].updateValueAndValidity()}getQualsForRole(){return structuredClone(this.stateService.centreQuals())}captureUploadedFiles(e,t){this.form.controls[e].controls.attachmentIds.value=t,this.form.controls[e].updateValueAndValidity()}selectChildren(e,t){t.units.forEach(r=>{r.selected=e})}returnTooltipCopy(e){let t=this.stateService.manageStaffResults().roles.find(f=>f.roleName===e);return`<span><strong>${t.roleName}</strong>: ${t.tooltip}</span>`}returnRoleStatus(e){return this.stateService.manageStaffResults().roles.find(r=>r.roleName===e).status}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-update-roles"]],inputs:{form:"form"},decls:1,vars:1,consts:[[1,"update-roles-form",3,"formGroup"],[1,"update-roles-form__section",3,"formGroupName"],[1,"update-roles-form__error"],[1,"update-roles-form__section--indented"],[1,"row"],[1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content"],[1,"in-line",3,"tooltip"],[3,"content"],["href","mailto:[email protected]"],[1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content","ngClass"],[1,"role__deselected"],[3,"uploadedFiles","files","content","uploadToSharePoint","maxFiles","errorMessage"],[1,"margin-left-4","row"],[1,"margin-left-8","row"],["formControlName","selected",1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content"],["formControlName","awardingBody",1,"new-centre-staff__input",3,"content","formControl"],["formControlName","agreedDeclaration",3,"isCheckedChange","preChecked","content"]],template:function(t,r){t&1&&_(0,yn,4,2,"form",0),t&2&&g(r.form?0:-1)},dependencies:[et,Ke,B,Oe,F,Rt,Ie,Te,ue,Ae,Re,Me,st,rt,Ut,Wt,Pt,It,gt,_t],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.update-roles-form__section[_ngcontent-%COMP%]{margin-bottom:1rem;border-bottom:solid thin #dce6f0}.update-roles-form__section[_ngcontent-%COMP%]:last-of-type{border:none}.update-roles-form__section--indented[_ngcontent-%COMP%]{margin-left:30px}.update-roles-form__error[_ngcontent-%COMP%]{color:#e8416e}.row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;margin:0 0 1.5rem;min-height:25px}@media (min-width: 992px){.row[_ngcontent-%COMP%]{min-height:30px}}.row__label[_ngcontent-%COMP%]{align-self:flex-end}.row[_ngcontent-%COMP%]   .in-line[_ngcontent-%COMP%]{margin:0 0 0 1%;height:20px;width:20px}@media (min-width: 992px){.row[_ngcontent-%COMP%]   .in-line[_ngcontent-%COMP%]{margin:5px 0 0 1%}}.margin-left-4[_ngcontent-%COMP%]{margin-left:4%;display:flex;flex-wrap:nowrap}.margin-left-8[_ngcontent-%COMP%]{margin-left:8%}.checkbox-card__checkbox--highlight[_ngcontent-%COMP%], .role__deselected[_ngcontent-%COMP%]{color:#e8416e}"]});let n=s;return n})();var ge=(()=>{let s=class s{constructor(){this.tableWidth=window.innerWidth/2}setColumns(e,t){let r=t.findIndex(x=>x.field==="roles"),f=structuredClone(t);switch(e){case"role":f[r].headerName="Role removing",f[r].cellRenderer=x=>{let oe=x?.data?.role?.map(z=>z.roleName)?.join("<br />");return oe||(oe="No change"),oe};break;case"contact":f.splice(r,1);break;case"add":case"remove":f[r].headerName=e==="add"?"Role adding":"Role removing",f[r].cellRenderer=x=>x?.data?.roles?.join("<br />")}return f}};s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=j({token:s,factory:s.\u0275fac,providedIn:"root"});let n=s;return n})();function wn(n,s){n&1&&C(0,"fab-loader")}function An(n,s){if(n&1&&(o(0,"h3",2),l(1),a(),o(2,"p"),l(3," Add or remove the roles from your centre staff. By unselecting the tick box, the role will be removed and you'll be notified in red. By selecting a tick box, the role will be added in green. The centre staff will need to have at least one role otherwise they'll be removed from your centre. A maximum of four staff can be allocated to the Admin role. "),a(),C(4,"app-update-roles",3),o(5,"div",4),C(6,"fab-button",5)(7,"fab-button",6),a()),n&2){let i,e=d();c(),V("Roles for ",(i=e.startState())==null||i.organisationContacts[0]==null?null:i.organisationContacts[0].name),c(3),m("form",e.forme),c(2),m("button",e.goBack),c(),m("enabled",e.forme.valid&&!e.forme.pristine)("button",e.nextButton)}}function kn(n,s){if(n&1){let i=v();o(0,"h3",2),l(1,"Review and confirm removal of centre staff"),a(),o(2,"p"),l(3," As you've removed all roles from the centre staff listed below, you\u2019re removing these staff contacts from the centre. If any of the details below are incorrect, please go back and correct them. "),o(4,"strong"),l(5,"To confirm your changes, please ensure you agree with the declarations."),a()(),o(6,"div",10)(7,"p"),l(8,"The following staff will be removed from the centre displayed."),a(),C(9,"fab-table",11),o(10,"div",12)(11,"fab-input-checkbox",8),w("isCheckedChange",function(t){u(i);let r=d(2);return y(r.staffDeclarationAgreed,t)||(r.staffDeclarationAgreed=t),h(t)}),a()()()}if(n&2){let i=d(2);c(9),m("rowData",i.removedStaffData)("gridOptions",i.gridOptionsStaff),c(2),S("isChecked",i.staffDeclarationAgreed),m("content",i.removeStaffCheckboxConfirm)}}function Tn(n,s){if(n&1){let i=v();o(0,"div",10)(1,"p")(2,"strong"),l(3,"Removed roles"),a(),l(4,": The following role(s) will be removed from the centre staff displayed."),a(),C(5,"fab-table",11),o(6,"div",12)(7,"fab-input-checkbox",8),w("isCheckedChange",function(t){u(i);let r=d(3);return y(r.removeDeclarationAgreed,t)||(r.removeDeclarationAgreed=t),h(t)}),a()()()}if(n&2){let i=d(3);c(5),m("rowData",i.removeRowData)("gridOptions",i.gridOptionsRemove),c(2),S("isChecked",i.removeDeclarationAgreed),m("content",i.simpleCheckboxConfirmRemove)}}function Rn(n,s){if(n&1){let i=v();o(0,"div",10)(1,"p")(2,"strong"),l(3,"Added roles"),a(),l(4,": The following role(s) will be added to the centre staff displayed."),a(),C(5,"fab-table",11),o(6,"div",12)(7,"fab-input-checkbox",8),w("isCheckedChange",function(t){u(i);let r=d(3);return y(r.addDeclarationAgreed,t)||(r.addDeclarationAgreed=t),h(t)}),a()()()}if(n&2){let i=d(3);c(5),m("rowData",i.addRowData)("gridOptions",i.gridOptionsAdd),c(2),S("isChecked",i.addDeclarationAgreed),m("content",i.simpleCheckboxConfirmAdd)}}function Mn(n,s){if(n&1&&(o(0,"h3",2),l(1,"Review and confirm role changes"),a(),o(2,"p"),l(3," You are adding or removing the following centre staff's roles displayed. If any of the details below are incorrect, please go back and correct them. "),o(4,"strong"),l(5,"To confirm your changes, please ensure you agree with the declarations."),a()(),_(6,Tn,8,4,"div",10),_(7,Rn,8,4,"div",10)),n&2){let i=d(2);c(6),g(i.removeRowData?6:-1),c(),g(i.addRowData?7:-1)}}function En(n,s){if(n&1){let i=v();_(0,kn,12,4)(1,Mn,8,2),o(2,"h3"),l(3,"Declaration"),a(),o(4,"div",7)(5,"fab-input-checkbox",8),w("isCheckedChange",function(t){u(i);let r=d();return y(r.overallDeclarationAgreed,t)||(r.overallDeclarationAgreed=t),h(t)}),a(),o(6,"p"),l(7," I confirm that the information provided in this submission is to the best of my knowledge correct and that, as an AAT approved organisation, we'll adhere to "),o(8,"a",9),l(9,"AAT's standard terms and conditions"),a(),l(10,", Framework agreement and call off contract. "),a()(),o(11,"div",4),C(12,"fab-button",5)(13,"fab-button",6),a()}if(n&2){let i=d();g(i.removedStaffData?0:1),c(5),S("isChecked",i.overallDeclarationAgreed),m("content",i.overallCheckboxDeclaration),c(7),m("button",i.goBack),c(),m("enabled",i.agreedToAllDeclaration()&&
1!i.stateService.isStaff())("button",i.nextButton)}}var Ce=(function(n){return n[n.initial=0]="initial",n[n.summary=1]="summary",n})(Ce||{}),Yt=(()=>{let s=class s{constructor(){this.forme=new ke({}),this.stateService=p(k),this.apiService=p(q),this.tableService=p(ge),this.router=p(N),this.msaAnalytics=p(P),this.step=Ce.initial,this.UpdateRolesSteps=Ce,this.goBackClicked=new L,this.goBack={text:"Cancel and return to results",type:"secondary",action:{type:"callback",callback:()=>{this.stateService.resetAPIError(),this.goBackClicked.emit()}},aria:"cancel and return to results"},this.nextButton={text:"Continue",type:"primary",action:{type:"callback",callback:()=>{this.step===Ce.initial?(this.setupTableData(),this.step=Ce.summary,this.msaAnalytics.onViewContent("manage roles - review and confirm"),this.removedStaffData?this.nextButton.text="Confirm removal":this.nextButton.text="Confirm role changes"):this.step===Ce.summary&&(this._setSpinner(!0),this.apiService.updateRoles(this.forme,this.addedRows,this.removedRows).pipe(T(1)).subscribe({next:e=>{this._setSpinner(!1),this.stateService.setConfirmationPageData(e),this.msaAnalytics.onViewContent("manage roles - changes have been submitted"),this.router.navigate(["/centre-services/manage-staff-access/confirmation"])},error:()=>{this._setSpinner(!1)}}))}},aria:"Continue"},this._columnDefs=[{field:"name",headerName:"Centre staff name",minWidth:this.tableService.tableWidth/4},{field:"membershipNumber",headerName:"AAT ID number",minWidth:this.tableService.tableWidth/4},{field:"roles",headerName:"",autoHeight:!0,wrapText:!0,minWidth:this.tableService.tableWidth/4},{field:"centreId",headerName:"Centre",minWidth:this.tableService.tableWidth/4}],this._staffColumnDefs=[{field:"name",headerName:"Centre staff name",minWidth:this.tableService.tableWidth/4},{field:"membershipNumber",headerName:"AAT ID number",minWidth:this.tableService.tableWidth/4},{field:"centreId",headerName:"Centre",minWidth:this.tableService.tableWidth/4}],this.gridOptionsAdd={columnDefs:this.tableService.setColumns("add",this._columnDefs),defaultColDef:{resizable:!0}},this.gridOptionsRemove={columnDefs:this.tableService.setColumns("remove",this._columnDefs),defaultColDef:{resizable:!0}},this.gridOptionsStaff={columnDefs:this._staffColumnDefs,defaultColDef:{resizable:!0}},this.startState=pe(()=>structuredClone(this.stateService.manageStaffResults())),this.staffDeclarationAgreed=!1,this.warningNotification={type:"warning",message:"<p><strong>Please review the details below carefully before submitting</strong></p><p>If you make any changes to staff records in error, you'll need to make another submission.</p>",isOpened:!0,fullWidth:!0},this.simpleCheckboxConfirmRemove={id:"declaration-remove-confirm",label:"By ticking this box, you confirm the role(s) will be removed from the centre staff displayed.",checkboxPosition:"left"},this.removeDeclarationAgreed=!1,this.simpleCheckboxConfirmAdd={id:"declaration-add-confirm",label:"By ticking this box, you confirm the role(s) will be added to the centre staff displayed.",checkboxPosition:"left"},this.removeStaffCheckboxConfirm={id:"declaration-add-confirm",label:"By ticking this box, you confirm the centre staff will be removed from the centre displayed.",checkboxPosition:"left"},this.overallCheckboxDeclaration={id:"overall-declaration",label:"",checkboxPosition:"left"},this.addDeclarationAgreed=!1,this.overallDeclarationAgreed=!1}ngOnInit(){this.msaAnalytics.onViewContent("manage roles")}agreedToAllDeclaration(){return this.removedStaffData?this.staffDeclarationAgreed&&this.overallDeclarationAgreed:this.removeRowData&&this.addRowData?this.removeDeclarationAgreed&&this.addDeclarationAgreed&&this.overallDeclarationAgreed:this.removeRowData?this.removeDeclarationAgreed&&this.overallDeclarationAgreed:this.addRowData?this.addDeclarationAgreed&&this.overallDeclarationAgreed:!1}setupTableData(){let e=this.forme.controls;Object.keys(e).filter(t=>e[t].controls.selected?.value===!0).length===0&&(this.removedStaffData=[{name:this.startState().organisationContacts[0].name,membershipNumber:this.startState().organisationContacts[0].membershipNumber,centreId:this.stateService.selectedCentre().name}]),this.addedRows=Object.keys(e).filter(t=>e[t].controls.selected?.value===!0&&!this.startState().organisationContacts[0].roles.find(r=>r.roleName===t)),this.removedRows=Object.keys(e).filter(t=>!!(e[t].controls.selected?.value===!1&&this.startState().organisationContacts[0].roles.find(r=>r.roleName===t))),this.removedRows.length>0&&(this.removeRowData=[{name:this.startState().organisationContacts[0].name,membershipNumber:this.startState().organisationContacts[0].membershipNumber,centreId:this.stateService.selectedCentre().name,roles:this.removedRows}]),this.addedRows.length>0&&(this.addRowData=[{name:this.startState().organisationContacts[0].name,membershipNumber:this.startState().organisationContacts[0].membershipNumber,centreId:this.stateService.selectedCentre().name,roles:this.addedRows}])}_setSpinner(e){this.nextButton.text=e?"Submitting...":"Continue",this.nextButton.glyph=e?{icon:te.LOOP2,glyphAnimation:"spin"}:null}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-manage-tp-staff-access-update-roles"]],outputs:{goBackClicked:"goBackClicked"},decls:5,vars:4,consts:[[1,"update-roles"],[3,"notification","isNotificationOpen"],[1,"update-roles__heading"],[3,"form"],[1,"update-roles__buttons"],[3,"button"],[3,"enabled","button"],[1,"update-roles__overall-declaration"],[3,"isCheckedChange","isChecked","content"],["href","/policies/terms-conditions-aat-systems","target","_blank"],[1,"update-roles__table"],[3,"rowData","gridOptions"],[1,"update-roles__checkbox"]],template:function(t,r){t&1&&(o(0,"div",0),C(1,"fab-notification",1),_(2,wn,1,0,"fab-loader"),_(3,An,8,5)(4,En,14,6),a()),t&2&&(c(),m("notification",r.warningNotification)("isNotificationOpen",r.step===r.UpdateRolesSteps.summary),c(),g(r.stateService.manageStaffResultsLoading()===!0?2:-1),c(),g(r.step===r.UpdateRolesSteps.initial&&r.stateService.manageStaffResultsLoading()===!1?3:r.step===r.UpdateRolesSteps.summary?4:-1))},dependencies:[De,_e,he,B,F,H,G,ie,ne,$],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.update-roles[_ngcontent-%COMP%]{margin:auto;display:flex;flex-direction:column}.update-roles__heading[_ngcontent-%COMP%]{color:#00ab4e}.update-roles__table[_ngcontent-%COMP%]{border:2px solid rgb(238.425,238.425,238.425);padding:20px 10px}.update-roles__table__text[_ngcontent-%COMP%]{margin-bottom:20px;
1display:inline-block}.update-roles__checkbox[_ngcontent-%COMP%]{margin-top:20px;text-align:left}.update-roles__buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:30px;margin-bottom:15px}.update-roles__overall-declaration[_ngcontent-%COMP%]{display:flex;align-items:center}.update-roles__overall-declaration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-left:2px}"]});let n=s;return n})();function In(n,s){n&1&&C(0,"fab-loader")}function Pn(n,s){}function On(n,s){n&1&&(o(0,"p"),l(1," This role has been added and is pending confirmation as approval is required from the Centre Compliance team "),a())}function Dn(n,s){n&1&&(o(0,"p"),l(1,"You have reached the maximum limit of four admin roles for your centre"),a())}function Vn(n,s){n&1&&(o(0,"p"),l(1," To add or amend this main contact role, you\u2019ll need to contact the Centre Compliance team by emailing "),o(2,"a",5),l(3,"[email protected]"),a()())}function Nn(n,s){if(n&1&&_(0,Pn,0,0)(1,On,2,0,"p")(2,Dn,2,0,"p")(3,Vn,4,0,"p"),n&2){let i=d().$implicit,e=d(4);g(i.status===e.RoleStatus.Active?0:i.status===e.RoleStatus.Pending?1:i.status===e.RoleStatus.MaxAdmins?2:i.status===e.RoleStatus.MainContact?3:-1)}}function Fn(n,s){n&1&&(o(0,"span",10),l(1,"This role has been unselected. Please reselect if this is an error."),a())}function Bn(n,s){if(n&1){let i=v();o(0,"div",8)(1,"fab-input-checkbox",9),w("isCheckedChange",function(t){let r=u(i).$implicit;return y(r.selected,t)||(r.selected=t),h(t)}),a()(),_(2,Nn,4,1),_(3,Fn,2,0,"span",10)}if(n&2){let i=s.$implicit,e=d().$implicit,t=d(3);c(),S("isChecked",i.selected),m("content",t.cardCheckBox(e,i)),c(),g(t.stateService.checkIfRoleIsDisabled(i)?2:-1),c(),g(i.selected?-1:3)}}function qn(n,s){if(n&1&&(o(0,"div",6)(1,"div",7)(2,"h3")(3,"strong"),l(4),a()(),o(5,"h3")(6,"strong"),l(7),a()()(),o(8,"h4")(9,"strong"),l(10,"Roles:"),a()(),R(11,Bn,4,4,null,null,O),a()),n&2){let i=s.$implicit;c(4),ee(i.name),c(3),V("AAT ID: ",i.membershipNumber),c(4),M(i.roles)}}function Ln(n,s){if(n&1&&(o(0,"h3"),l(1,"Remove roles from multiple centre staff"),a(),o(2,"p"),l(3," You'll only be able to remove existing roles and are responsible for ensuring that roles are removed on or before the day of termination of an individual's service/contract. By unselecting the tick box, the role will be removed and you'll be notified in red. "),a(),o(4,"p"),l(5," If you remove all roles from a staff contact, this will remove that staff contact from the centre. Please note that staff who have a connection role as either a TP main contact and/or Main contact (AV only) cannot be removed from the centre via this service \u2013 to do this, please contact "),o(6,"a",5),l(7,"[email protected]"),a()(),o(8,"p"),l(9," You won't be able to add roles on this page. If you'd like to add roles to an existing staff contact, you'll need to return to the search results page. "),a(),R(10,qn,13,2,"div",6,O)),n&2){let i,e=d(2);c(10),M((i=e.stateService.manageStaffResults())==null?null:i.organisationContacts)}}function Wn(n,s){if(n&1){let i=v();o(0,"h3",11),l(1,"Review and confirm role changes"),a(),o(2,"p"),l(3," You\u2019re removing the following centre staff\u2019s role displayed. If any of the details below are incorrect, please go back and correct them. "),o(4,"strong"),l(5,"To confirm your changes, please ensure you agree with the declarations."),a()(),o(6,"div",15),C(7,"fab-table",16),o(8,"div",17)(9,"fab-input-checkbox",13),w("isCheckedChange",function(t){u(i);let r=d(3);return y(r.removeRoleDeclaration,t)||(r.removeRoleDeclaration=t),h(t)}),a()()()}if(n&2){let i=d(3);c(7),m("gridOptions",i.gridOptionsRoles)("rowData",i.removeRowData),c(2),S("isChecked",i.removeRoleDeclaration),m("content",i.roleCheckboxConfirm)}}function Un(n,s){if(n&1){let i=v();o(0,"h3",11),l(1,"Review and confirm removal of centre staff"),a(),o(2,"p"),l(3," As you've removed all roles from the centre staff listed below, you\u2019re removing these staff contacts from the centre. If any of the details below are incorrect, please go back and correct them. "),o(4,"strong"),l(5," To confirm your changes, please ensure you agree with the declarations. "),a()(),o(6,"div",15),C(
17,"fab-table",16),o(8,"div",17)(9,"fab-input-checkbox",13),w("isCheckedChange",function(t){u(i);let r=d(3);return y(r.removeStaffDeclaration,t)||(r.removeStaffDeclaration=t),h(t)}),a()()()}if(n&2){let i=d(3);c(7),m("gridOptions",i.gridOptionsContact)("rowData",i.removeContactRowData),c(2),S("isChecked",i.removeStaffDeclaration),m("content",i.simpleCheckboxConfirm)}}function $n(n,s){if(n&1){let i=v();_(0,Wn,10,4),_(1,Un,10,4),o(2,"h3",11),l(3,"Declaration"),a(),o(4,"div",12)(5,"fab-input-checkbox",13),w("isCheckedChange",function(t){u(i);let r=d(2);return y(r.overallDeclaration,t)||(r.overallDeclaration=t),h(t)}),a(),o(6,"p"),l(7," I confirm that the information provided in this submission is to the best of my knowledge correct and that, as an AAT approved organisation, we'll adhere to "),o(8,"a",14),l(9,"AAT's standard terms and conditions"),a(),l(10,", Framework agreement and call off contract. "),a()()}if(n&2){let i=d(2);g(i.removeRowData.length?0:-1),c(),g(i.removeContactRowData.length?1:-1),c(4),S("isChecked",i.overallDeclaration),m("content",i.declarationCheckboxConfirm)}}function jn(n,s){if(n&1&&(o(0,"div",0),C(1,"fab-notification",1),_(2,Ln,12,0),_(3,$n,11,4),o(4,"div",2),C(5,"fab-button",3)(6,"fab-button",4),a()()),n&2){let i=d();c(),m("notification",i.warningNotification)("isNotificationOpen",i.step===i.removeRolesSteps.confirmation),c(),g(i.step===i.removeRolesSteps.initial?2:-1),c(),g(i.step===i.removeRolesSteps.confirmation?3:-1),c(2),m("button",i.goBack),c(),m("button",i.removeRolesButton)("enabled",i.getPrimaryButtonEnabled())}}var X=(function(n){return n[n.initial=0]="initial",n[n.confirmation=1]="confirmation",n})(X||{}),zt=(()=>{let s=class s{constructor(){this.apiService=p(q),this.stateService=p(k),this.tableService=p(ge),this.gtmService=p(Pe),this.msaAnalytics=p(P),this.router=p(N),this.removeRolesSteps=X,this.step=X.initial,this.RoleStatus=Y,this.goBackClicked=new L,this.warningNotification={type:"warning",message:"<p><strong>Please review the details below carefully before submitting</strong></p><p>If you make any changes to staff records in error, you'll need to to make another submission.</p>",isOpened:!0,fullWidth:!0},this.simpleCheckboxConfirm={id:"staff",label:"By ticking this box, you confirm the centre staff will be removed from the centre displayed.",checkboxPosition:"left"},this.roleCheckboxConfirm={id:"role",label:"By ticking this box, you confirm the centre staff roles will be removed from the centre staff displayed.",checkboxPosition:"left"},this.declarationCheckboxConfirm={id:"declaration",label:"",checkboxPosition:"left"},this.goBack={text:"Cancel and return to results",type:"secondary",action:{type:"callback",callback:()=>{this.stateService.resetAPIError(),this.step===X.confirmation?(this.step-=1,this.goBack.text="Go back"):this.goBackClicked.emit()}},aria:"Cancel and return to results"},this.removeRolesButton={text:"Continue",type:"primary",action:{type:"callback",callback:()=>{this.step===X.initial?(this.stateService.setSelectedResults(this.stateService.results().filter(e=>e.selected)),this.calculateTables(),this.step=X.confirmation,window.scroll({top:0,behavior:"smooth"}),this.msaAnalytics.onViewContent("remove roles - review and confirm"),this.removeRolesButton.text="Confirm"):this.step===X.confirmation&&(this._setSpinner(!0),this.apiService.removeStaffRoles().pipe(T(1)).subscribe({next:e=>{this._setSpinner(!1),this.stateService.setConfirmationPageData(e),this.msaAnalytics.onViewContent("remove roles - changes have been submitted"),this.router.navigate(["/centre-services/manage-staff-access/confirmation"])},error:()=>{window.scroll({top:0,behavior:"smooth"}),this._setSpinner(!1)}}))}},aria:"Continue"},this.cardCheckBox=(e,t)=>({id:"manage-tp-staff-access-checkbox-"+e.contactId+"-"+t.roleName,label:t.roleName,disabled:this.stateService.checkIfRoleIsDisabled(t)}),this.initialRoles=structuredClone(this.stateService.selectedResults()),this._columnDefs=[{field:"name",headerName:"Centre staff name",minWidth:this.tableService.tableWidth/4},{field:"membershipNumber",headerName:"AAT ID number",minWidth:this.tableService.tableWidth/4},{field:"roles",headerName:"",autoHeight:!0,wrapText:!0,minWidth:this.tableService.tableWidth/4},{field:"centreId",headerName:"Centre",minWidth:this.tableService.tableWidth/4}],this.gridOptionsRoles={columnDefs:this.tableService.setColumns("role",this._columnDefs),defaultColDef:{resizable:!0}},this.gridOptionsContact={columnDefs:this.tableService.setColumns("contact",this._columnDefs),defaultColDef:{resizable:!0}},this.removeRoleDeclaration=!1,this.removeStaffDeclaration=!1,this.overallDeclaration=!1}ngOnInit(){this.msaAnalytics.onViewContent("remove roles")}calculateTables(){this.removeRowData=this.stateService.manageStaffResults().organisationContacts.filter((e,t)=>
1e.roles.filter(r=>r.selected).length>0).map((e,t)=>({role:[...e.roles.filter(r=>!r.selected)],name:e.name,membershipNumber:e.membershipNumber,centreId:this.stateService.selectedCentre().name})),this.removeContactRowData=this.stateService.manageStaffResults().organisationContacts.filter(e=>e.roles.filter(t=>t.selected).length===0).map(e=>({name:e.name,membershipNumber:e.membershipNumber,centreId:this.stateService.selectedCentre().name}))}_setSpinner(e){this.removeRolesButton.text=e?"Submitting...":"Continue",this.removeRolesButton.glyph=e?{icon:te.LOOP2,glyphAnimation:"spin"}:null}getPrimaryButtonEnabled(){return this.step===X.initial?this.stateService.manageStaffResults().organisationContacts.some(t=>t.roles.some(r=>!r.selected)):!(this.step===X.confirmation&&(this.stateService.isStaff()||this.removeRowData.length>0&&!this.removeRoleDeclaration||this.removeContactRowData.length>0&&!this.removeStaffDeclaration||!this.overallDeclaration))}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-manage-tp-staff-access-remove-roles"]],outputs:{goBackClicked:"goBackClicked"},decls:2,vars:2,consts:[[1,"remove-roles"],[3,"notification","isNotificationOpen"],[1,"remove-roles__buttons"],[3,"button"],[3,"button","enabled"],["href","mailto:[email protected]"],[1,"remove-roles__user"],[1,"remove-roles__user__details"],[1,"remove-roles__role"],[1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content"],[1,"remove-roles__deselected"],[1,"remove-roles__heading"],[1,"remove-roles__overall-declaration"],[3,"isCheckedChange","isChecked","content"],["href","/policies/terms-conditions-aat-systems","target","_blank"],[1,"remove-roles__table"],[3,"gridOptions","rowData"],[1,"remove-roles__table__confirm"]],template:function(t,r){t&1&&(_(0,In,1,0,"fab-loader"),_(1,jn,7,7,"div",0)),t&2&&(g(r.stateService.manageStaffResultsLoading()===!0?0:-1),c(),g(r.stateService.manageStaffResultsLoading()===!1?1:-1))},dependencies:[B,F,_e,he,H,G,ie,ne,$],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.remove-roles[_ngcontent-%COMP%]{width:90%;margin:auto}.remove-roles__heading[_ngcontent-%COMP%]{color:#00ab4e;margin-top:15px;margin-bottom:10px}.remove-roles__role[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:10px;margin-bottom:10px;min-height:25px}@media (min-width: 992px){.remove-roles__role[_ngcontent-%COMP%]{min-height:30px}}.remove-roles__role__label[_ngcontent-%COMP%]{align-self:flex-end}.remove-roles__buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:20px;flex-direction:column;margin:20px 0}@media (min-width: 768px){.remove-roles__buttons[_ngcontent-%COMP%]{flex-direction:row;gap:unset}}.remove-roles__user[_ngcontent-%COMP%]{margin-bottom:15px;border:1px solid #dce6f0;padding:1rem;border-radius:3px}.remove-roles__user__details[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;flex-direction:column}.remove-roles__user__details[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{color:#00ab4e}.remove-roles__deselected[_ngcontent-%COMP%]{color:#e8416e}.remove-roles__table[_ngcontent-%COMP%]{border:2px solid rgb(238.425,238.425,238.425);padding:20px 10px;margin:10px 0 20px}.remove-roles__table__confirm[_ngcontent-%COMP%]{margin:20px;text-align:left}.remove-roles__overall-declaration[_ngcontent-%COMP%]{display:flex;align-items:center}.remove-roles__overall-declaration[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-left:2px}"]});let n=s;return n})();var Jt=(()=>{let s=class s{constructor(){this.stateService=p(k),this.apiService=p(q),this.tableService=p(ge),this.router=p(N),this.msaAnalytics=p(P),this.goBackClicked=new L,this.warningNotification={type:"warning",message:"<p><strong>Please review the details below carefully before submitting</strong></p><p>If you make any changes to staff records in error, you'll need to make another submission.</p>",isOpened:!0,fullWidth:!0},this.simpleCheckboxConfirm={id:"confirm",label:`By ticking this box, you confirm the centre staff ${this.stateService.selectedResults()?.length>
11?"s":""} will be removed from the centre displayed.`,checkboxPosition:"left"},this.goBack={text:"Go back",type:"primary",action:{type:"callback",callback:()=>{this.stateService.resetAPIError(),this.goBackClicked.emit()}},aria:"go back button"},this.removeStaffButton={text:"Confirm removal",type:"primary",action:{type:"callback",callback:()=>{this._setSpinner(!0),this.apiService.removeStaff().pipe(T(1)).subscribe({next:e=>{this._setSpinner(!1),this.stateService.setConfirmationPageData(e),this.msaAnalytics.onViewContent("remove staff - changes have been submitted"),this.router.navigate(["/centre-services/manage-staff-access/confirmation"])},error:e=>{window.scroll({top:0,behavior:"smooth"}),this._setSpinner(!1)}})}},aria:"Confirm removal"},this.columnDefs=[{field:"name",headerName:"Centre staff name",minWidth:this.tableService.tableWidth/3},{field:"membershipNumber",headerName:"AAT ID number",minWidth:this.tableService.tableWidth/3},{field:"centreId",headerName:"Centre",minWidth:this.tableService.tableWidth/3}],this.gridOptions={columnDefs:this.tableService.setColumns("default",this.columnDefs),defaultColDef:{resizable:!0}},this.rowData=pe(()=>this.stateService.selectedResults()?.map(t=>({name:t.name,membershipNumber:t.membershipNumber,centreId:this.stateService.selectedCentre().name}))),this.confirmed=!1}ngOnInit(){this.msaAnalytics.onViewContent("remove staff")}confirmRemoval(e){this.confirmed=e}_setSpinner(e){this.removeStaffButton.text=e?"Submitting...":"Continue",this.removeStaffButton.glyph=e?{icon:te.LOOP2,glyphAnimation:"spin"}:null}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-manage-tp-staff-access-remove-staff"]],outputs:{goBackClicked:"goBackClicked"},decls:17,vars:9,consts:[[1,"remove-staff"],[3,"notification","isNotificationOpen"],[1,"remove-staff__heading"],[1,"remove-staff__table"],[1,"remove-staff__table__text"],[3,"gridOptions","autosizeColumns","rowData"],[1,"remove-staff__checkbox"],[3,"isCheckedChange","content"],[1,"remove-staff__buttons"],[3,"button"],[3,"button","enabled"]],template:function(t,r){t&1&&(o(0,"div",0),C(1,"fab-notification",1),o(2,"h3",2),l(3,"Review and confirm removal of centre staff"),a(),o(4,"span"),l(5,"You're removing the following centre staff(s) records displayed below. If any of the details below are incorrect, please go back and correct them. "),o(6,"strong"),l(7,"To confirm your changes, please ensure you agree with the declarations."),a()(),o(8,"div",3)(9,"span",4),l(10,"The following staff will be removed from the centre displayed"),a(),C(11,"fab-table",5),o(12,"div",6)(13,"fab-input-checkbox",7),b("isCheckedChange",function(x){return r.confirmRemoval(x)}),a()()(),o(14,"div",8),C(15,"fab-button",9)(16,"fab-button",10),a()()),t&2&&(c(),m("notification",r.warningNotification)("isNotificationOpen",!0),c(10),m("gridOptions",r.gridOptions)("autosizeColumns",!0)("rowData",r.rowData()),c(2),m("content",r.simpleCheckboxConfirm),c(2),m("button",r.goBack),c(),m("button",r.removeStaffButton)("enabled",!r.stateService.isStaff()&&r.confirmed))},dependencies:[H,G,_e,he,B,F,$],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.remove-staff[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:35px}.remove-staff__heading[_ngcontent-%COMP%]{color:#00ab4e}.remove-staff__table[_ngcontent-%COMP%]{border:2px solid rgb(238.425,238.425,238.425);padding:20px 10px}.remove-staff__table__text[_ngcontent-%COMP%]{margin-bottom:20px;display:inline-block}.remove-staff__checkbox[_ngcontent-%COMP%]{text-align:left}.remove-staff__buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}"]});let n=s;return n})();var Gn=["roleDropdown"],Hn=["FabAC"],Yn=()=>["/myaat/dashboards"];function zn(n,s){if(n&1){let i=v();o(0,"div",3)(1,"p"),l(2," You must acknowledge and accept that users and their employing organisation are responsible for any data downloaded or copied from the system, including for the security of that data in accordance with "),o(3,"a",5),l(4," AAT's terms and conditions "),a(),l(5," and the contractual agreements between AAT and your employing organisation. "),a(),o(6,"fab-input-checkbox",6),w("isCheckedChange",function(t){u(i);let r=d();return y(r.confirmCsvButtonEnabled,t)||(r.confirmCsvButtonEnabled=t),h(t)}),a(),C(7,"br")(8,"fab-button",7),a()}if(n&2){let i=d();c(6),m("content",i.confirmCsvCheckBox),S("isChecked",i.confirmCsvButtonEnabled),c(2),m("enabled",i.confirmCsvButtonEnabled)("button",i.confirmDownloadCsvButton)}}function Jn(n,s){n&1&&C(0,"fab-loader")}function Xn(n,s){if(n&1){let i=v();
1o(0,"li",18),b("mousedown",function(){let t=u(i).$index;d();let r=K(3);return h(r.selectSuggestion(t))}),C(1,"span",19),a()}if(n&2){let i=s.$implicit,e=s.$index;d();let t=K(3);c(),xe("selected",t.currentIndex==e),m("innerHTML",i.label,Z)}}function Zn(n,s){if(n&1){let i=v();o(0,"div",11)(1,"div")(2,"fab-autocomplete2",12,0),b("multiSelectOutput",function(t){u(i);let r=d(2);return h(r.stateService.setNameFilter(t))}),o(4,"strong",13),l(5,"Suggestions"),a(),o(6,"ul"),R(7,Xn,2,3,"li",14,je),a()(),o(9,"span"),l(10,"You can select multiple staff."),a()(),o(11,"div")(12,"fab-dropdown",15,1),b("outputReturnSelectedOptions",function(t){u(i);let r=d(2);return h(r.updateRoles(t))}),a(),o(14,"span"),l(15,"You can select multiple roles."),a()(),o(16,"div",16),C(17,"fab-button",17)(18,"fab-button",17),a()()}if(n&2){let i=K(3),e=d(2);c(2),m("content",e.autocompleteContent)("service",e.acSearchService)("ngModel",e.currentAutocompleteValue),c(5),M(i.results),c(5),m("content",e.rolesDropdown()),c(5),m("button",e.searchStaffButton),c(),m("button",e.clearFiltersButton)}}function Kn(n,s){if(n&1){let i=v();o(0,"app-checkbox-card",30),b("addOrRemoveRolesChange",function(t){u(i);let r=d(4);return h(r.addOrRemoveRoles(t))})("selectedChange",function(){u(i);let t=d(4);return h(t.setResultState())}),a()}if(n&2){let i=s.$implicit;m("content",i)}}function ei(n,s){if(n&1){let i=v();o(0,"div",20)(1,"h3"),l(2,"Results"),a(),o(3,"div",21)(4,"div",22)(5,"fab-input-checkbox",23),b("isCheckedChange",function(t){u(i);let r=d(3);return h(r.selectAll(t))}),a()(),C(6,"fab-button",17),a(),o(7,"div",24),R(8,Kn,1,1,"app-checkbox-card",25,O),o(10,"a",26),l(11,"Go back to MyAAT dashboard"),a()(),o(12,"div",27)(13,"p",28),l(14,"Please review the two options carefully"),a(),o(15,"div",29),C(16,"fab-button",7)(17,"fab-button",7),a()()()}if(n&2){let i,e,t=d(3);c(5),m("content",t.selectAllCheckBox),c(),m("button",t.downloadCSV),c(2),M(t.stateService.results()),c(2),m("routerLink",ze(7,Yn)),c(6),m("enabled",((i=t.stateService.selectedResults())==null?null:i.length)>0)("button",t.removeSelectedStaffButton),c(),m("enabled",((e=t.stateService.selectedResults())==null?null:e.length)>0)("button",t.removeRolesFromSelectedStaffButton)}}function ti(n,s){n&1&&(o(0,"div",20)(1,"p"),l(2,"Sorry, your search didn't return any results."),a(),o(3,"p")(4,"strong"),l(5,"You could try:"),a()(),o(6,"ul",31)(7,"li"),l(8,"checking your filter input is correct"),a(),o(9,"li"),l(10,"clearing and/or amending your filters"),a(),o(11,"li"),l(12,"a different search term"),a(),o(13,"li"),l(14,"using more general or fewer search terms"),a(),o(15,"li"),l(16,"checking your spelling"),a(),o(17,"li"),l(18,"removing any symbols."),a()()())}function ni(n,s){if(n&1&&_(0,ei,18,8,"div",20)(1,ti,19,0,"div",20),n&2){let i,e=d(2);g(((i=e.stateService.results())==null?null:i.length)>0?0:1)}}function ii(n,s){n&1&&C(0,"fab-loader")}function oi(n,s){if(n&1){let i=v();o(0,"p"),l(1," You can view staff at your centre and carry out searches. You can also make changes to the staff at your centre such as removing centre staff and adding or removing roles from centre staff. "),o(2,"a",8),b("click",function(){u(i);let t=d();return h(t.goToGuidanceTab.emit())}),l(3,"Please see the guidance tab for more information about how to use this service"),a(),l(4,". "),a(),o(5,"p"),l(6," Use of this service is subject to "),o(7,"a",9),l(8,"AAT's terms and conditions"),a(),l(9,", by continuing to use this service you are deemed to have read, understood and agreed to these terms and conditions. "),a(),o(10,"h3",10),l(11,"Your search filters"),a(),o(12,"p"),l(13,"You can use one or both filters."),a(),_(14,Jn,1,0,"fab-loader"),_(15,Zn,19,6,"div",11),_(16,ni,2,1),_(17,ii,1,0,"fab-loader")}if(n&2){let i=d();c(14),g(i.stateService.centreRoles()===null||i.stateService.centreQuals()===null?14:-1),c(),g(i.stateService.selectedCentre()!==void 0&&i.stateService.centreRoles()!==null&&i.stateService.centreQuals()!==null?15:-1),c(),g(i.stateService.loadingResults()!==!0?16:-1),c(),g(i.stateService.loadingResults()&&!(i.stateService.centreRoles()===null||i.stateService.centreQuals()===null)?17:-1)}}function ai(n,s){if(n&1){let i=v();o(0,"app-manage-tp-staff-access-update-roles",32),b("goBackClicked",function(){u(i);let t=d();return t.goToStart.emit(),h(t.state=t.States.overview)}),a()}}function ri(n,s){if(n&1){let i=v();o(0,"app-manage-tp-staff-access-remove-roles",32),b("goBackClicked",function(){u(i);let t=d();return t.goToStart.emit(),h(t.state=t.States.overview)}),a()}}function si(n,s){if(n&1){let i=v();o(0,"app-manage-tp-staff-access-remove-staff",32),b("goBackClicked",function(){u(i);let t=d();return t.goToStart.emit(),h(t.state=t.States.overview)}),a()}}var ce=(function(n){return n[n.overview=0]="overview",n[n.removeStaff=1]="removeStaff",n[n.removeRoles=2]="removeRoles",n[n.manageRoles=3]="manageRoles",n})(ce||{}),Be=(()=>{let s=class s{constructor(){this.stateService=p(k),this.acSearchService=p(Qt),this.apiService=p(q),this.msaAnalytics=p(P),this.datePipe=p(Fe),this.router=p(N),this.state=ce.overview,this.States=ce,this.modalOpen=!1,this.confirmCsvButtonEnabled=!1,this.goToGuidanceTab=new L,this.goToStart=new L,this.goBackClicked=new L,this.autocompleteContent={label:"Filter by staff name or AAT ID number",placeHolder:"Enter first or last name or AAT ID number",termLength:3,multiSelect:!0,hideSearchButton:!0,showError:!0,errorMessage:"There are no results for the staff name or AAT ID number you are searching for. Please check for any errors and/or that the name or ID is linked to the centre."},this.rolesDropdown=pe(()=>({label:"Filter by role",placeholder:"",allSelected:"Select all roles",options:this.stateService.centreRoles().map((e,t)=>({label:e,value:"",selected:!1,id:t})),required:!1,validationDisabled:!0,emboldenLabel:!0})),this.searchStaffButton={text:"Search staff",type:"primary",action:{type:"callback",callback:()=>{this.apiService.loadResultsIntoState(),this.msaAnalytics.onSearch(!!this.stateService.nameFilter(),this.stateService.rolesFilter()?.length>0)}},aria:"Search staff"},this.clearFiltersButton={text:"Clear filters",type:"secondary",action:{type:"callback",callback:()=>{this.clearFilters()}},aria:"clear filters"},this.removeSelectedStaffButton={text:"Remove selected staff from the centre",type:"secondary",action:{type:"callback",callback:()=>{window.scroll({top:0,behavior:"smooth"}),this.state=ce.removeStaff}},aria:"Remove selected staff from the centre"},this.removeRolesFromSelectedStaffButton={text:"Remove roles from selected staff",type:"primary",action:{type:"callback",callback:()=>{this.apiService.loadManageStaffRoles(this.stateService.selectedResults()),window.scroll({top:0,behavior:"smooth"}),this.state=ce.removeRoles}},aria:"Remove roles from selected staff"},this.downloadCSV={text:"Export results (CSV)",type:"primary",action:{type:"callback",callback:()=>{this.modalOpen=!this.modalOpen}},aria:"Export results (CSV)"},this.selectAllCheckBox={id:"select-all",label:"Select all staff below"},this.confirmDownloadCsvButton={text:"Download CSV",action:{type:"callback",callback:()=>{this.modalOpen=!1,this.apiService.downloadCSV().pipe(T(1)).subscribe(e=>{let t=document.createElement("a"),r=window.URL.createObjectURL(e.body);t.href=r,t.download=`Current staff connection list AAT ${this.datePipe.transform(new Date,ft)}.csv`,t.click()})}},type:"primary",aria:"Download CSV"}
1,this.confirmCsvCheckBox={id:"confirm-csv",label:"I acknowledge and accept these terms"}}clearFilters(){this.stateService.setRolesFilter(null),this.stateService.setNameFilter(null),this.currentAutocompleteValue=null,this.fabAC&&this.fabAC.unselectAllValues(),this.roleDropdown&&this.roleDropdown.selectOrUnselectAllValues(!1),this.apiService.loadResultsIntoState()}ngOnInit(){this.clearFilters(),this.apiService.loadResultsIntoState()}updateRoles(e){this.stateService.setRolesFilter(e)}addOrRemoveRoles(e){this.apiService.loadManageStaffRoles(e),this.stateService.manageStaffResultsLoading(),this.state=ce.manageRoles,window.scroll({top:0,behavior:"smooth"})}setResultState(){this.stateService.setSelectedResults(this.stateService.results().filter(e=>e.selected))}selectAll(e){let t=this.stateService.results();t.forEach(r=>{r.selected=e}),this.stateService.setSelectedResults(e?t:[])}reset(){this.state=ce.overview}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-manage-tp-staff-access-overview"]],viewQuery:function(t,r){if(t&1&&(ae(Gn,5),ae(Hn,5)),t&2){let f;re(f=se())&&(r.roleDropdown=f.first),re(f=se())&&(r.fabAC=f.first)}},outputs:{goToGuidanceTab:"goToGuidanceTab",goToStart:"goToStart",goBackClicked:"goBackClicked"},features:[Ye([Fe])],decls:7,vars:3,consts:[["FabAC",""],["roleDropdown",""],[3,"isModalOpened"],[1,"modal__content"],[1,"overview"],["href","/policies/terms-conditions-aat-systems-training-providers","target","_blank"],[3,"isCheckedChange","content","isChecked"],[3,"enabled","button"],[3,"click"],["href","/policies/terms-conditions-aat-systems","target","_blank"],[1,"overview__heading"],[1,"filter"],["placeHolderText","Search by name",3,"multiSelectOutput","content","service","ngModel"],[1,"fab-autocomplete__suggestions--title"],[1,"suggestion__option"],[3,"outputReturnSelectedOptions","content"],[1,"filter__buttons"],[3,"button"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"],[1,"filter__results__container"],[1,"filter__select-staff"],[1,"filter__select-staff__all"],[1,"checkbox-card__checkbox",3,"isCheckedChange","content"],[1,"filter__results"],[3,"content"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"review"],[1,"review__copy"],[1,"review__buttons"],[3,"addOrRemoveRolesChange","selectedChange","content"],[1,"filter__results__list"],[3,"goBackClicked"]],template:function(t,r){t&1&&(o(0,"fab-modal",2),_(1,zn,9,4,"div",3),a(),o(2,"div",4),_(3,oi,18,4)(4,ai,1,0,"app-manage-tp-staff-access-update-roles")(5,ri,1,0,"app-manage-tp-staff-access-remove-roles")(6,si,1,0,"app-manage-tp-staff-access-remove-staff"),a()),t&2&&(m("isModalOpened",r.modalOpen),c(),g(r.modalOpen?1:-1),c(2),g(r.state===r.States.overview?3:r.state===r.States.manageRoles?4:r.state===r.States.removeRoles?5:r.state===r.States.removeStaff?6:-1))},dependencies:[Nt,Vt,lt,ue,at,qt,Ft,B,F,Gt,Yt,zt,Jt,ie,ne,Et,Mt,le,ye,ot,$],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.overview__heading[_ngcontent-%COMP%]{margin-top:2rem}.overview[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]{margin:3% 0 1%;display:flex;flex-direction:column;gap:40px}.overview[_ngcontent-%COMP%]   .filter__results[_ngcontent-%COMP%]{margin-bottom:7%;display:flex;flex-direction:column;gap:20px;justify-content:space-between}.overview[_ngcontent-%COMP%]   .filter__results__button[_ngcontent-%COMP%]{display:block;width:fit-content;margin:auto}.overview[_ngcontent-%COMP%]   .filter__results__container[_ngcontent-%COMP%]{margin-top:2.5rem}.overview[_ngcontent-%COMP%]   .filter__results__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:disc;margin-left:2rem}.overview[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:25px}@media (min-width: 768px){.overview[_ngcontent-%COMP%]   .filter__buttons[_ngcontent-%COMP%]{flex-direction:row;gap:5%}}.overview[_ngcontent-%COMP%]   .filter__select-staff[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:1rem;position:sticky;top:51px;padding:10px 0;background:#fff;z-index:1}@media (min-width: 992px){.overview[_ngcontent-%COMP%]   .filter__select-staff[_ngcontent-%COMP%]{top:74px}}.overview[_ngcontent-%COMP%]   .filter__select-staff__all[_ngcontent-%COMP%]{display:flex;align-items:center}.overview[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]{display:flex;align-items:center;padding:20px 0;flex-direction:column;position:inherit;bottom:0;background:#fff;z-index:10}@media (min-width: 992px){.overview[_ngcontent-%COMP%]   .review[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;gap:40px;position:sticky}}.overview[_ngcontent-%COMP%]   .review__buttons[_ngcontent-%COMP%]{display:flex;max-height:250px;gap:20px}.modal-open[_ngcontent-%COMP%]   .modal[_ngcontent-%COMP%]{display:block}.modal__content[_ngcontent-%COMP%]{padding:20px;overflow:auto;max-height:calc(100vh - 200px)}"]});let n=s;return n})();var Xt=(()=>{let s=class s{transform(e){return e===!0?"Yes":e===!1?"No":""}};s.\u0275fac=function(t){return new(t||s)},s.\u0275pipe=$e({name:"yesNo",type:s,pure:!0});let n=s;return n})();var li=["countryItem"];function ci(n,s){if(n&1){let i=v();
1o(0,"li",14),b("mousedown",function(){let t=u(i).$index;d();let r=K(17);return h(r.selectSuggestion(t))}),C(1,"span",15),Se(2,"textHighlight"),a()}if(n&2){let i=s.$implicit,e=s.$index;d();let t=K(17);c(),xe("selected",t.currentIndex==e),m("innerHTML",Xe(2,3,i.label,t.search.term),Z)}}function di(n,s){if(n&1&&C(0,"fab-input-text-2",11),n&2){let i=d(2);m("content",i.workingTpName)("formControl",i.form.controls.tpName)}}function mi(n,s){if(n&1&&(o(0,"div"),C(1,"fab-input-text-2",11),a()),n&2){let i=d(2);c(),m("content",i.studentEvidence())("formControl",i.form.controls.existingAATId)}}function fi(n,s){if(n&1){let i=v();o(0,"h3"),l(1,"New centre staff details"),a(),o(2,"p"),l(3," Once you've added the new centre staff, they'll receive an email to activate their access - this email is valid for 24 hours. After 24 hours, they'll need to contact "),o(4,"a",1),l(5,"[email protected]"),a(),l(6," to activate. "),a(),o(7,"p"),l(8,"Please enter the details of the new centre staff."),a(),o(9,"form",2)(10,"div",3),C(11,"fab-dropdown-simple",4)(12,"fab-input-text-2",4)(13,"fab-input-text-2",4)(14,"fab-input-text-2",4),o(15,"fab-autocomplete-validation",5,0)(18,"header",6),l(19,"YOUR RESULTS"),a(),o(20,"ul"),R(21,ci,3,6,"li",7,O),a()()(),o(23,"div",8)(24,"label")(25,"strong"),l(26,"Are they an active AAT student?"),a()(),o(27,"p",9),l(28," An active AAT student is an AAT student who is currently registered on AAT Accounting Qualifications that has scheduled or sat an assessment on the Accounting Qualifications within the last six months (180 days or less). "),a(),o(29,"fab-radio",10),b("selectEvent",function(t){u(i);let r=d();return h(r.studentRadioChange(t))}),a(),o(30,"fab-radio",10),b("selectEvent",function(t){u(i);let r=d();return h(r.studentRadioChange(t))}),a()(),o(31,"div",8)(32,"label")(33,"strong"),l(34,"Are they working, or have they worked at another AAT training provider or AAT assessment venue?"),a()(),o(35,"fab-radio",10),b("selectEvent",function(t){u(i);let r=d();return h(r.workingTPChange(t))}),a(),_(36,di,1,2,"fab-input-text-2",11),o(37,"fab-radio",10),b("selectEvent",function(t){u(i);let r=d();return h(r.workingTPChange(t))}),a()(),_(38,mi,2,2,"div"),a(),o(39,"div",12),C(40,"fab-button",13),a()}if(n&2){let i=K(17),e=d();c(9),m("formGroup",e.form),c(2),m("content",e.titleDropdown)("formControl",e.form.controls.title),c(),m("content",e.firstNameInterface)("formControl",e.form.controls.firstName),c(),m("content",e.lastNameInterface)("formControl",e.form.controls.lastName),c(),m("content",e.emailNameInterface)("formControl",e.form.controls.email),c(),m("errorMessage",e.countryErrorMessage)("formControl",e.form.controls.country)("service",e.typeaheadService)("content",e.autocompleteValidationInterface),c(6),M(i.results),c(8),m("content",e.studentCheckBoxTrue)("formControl",e.form.controls.currentStudent)("checkedVal",e.form.controls.currentStudent.value),c(),m("content",e.studentCheckBoxFalse)("formControl",e.form.controls.currentStudent)("checkedVal",e.form.controls.currentStudent.value===!1),c(5),m("content",e.workingTpCheckBoxTrue)("formControl",e.form.controls.workingTP)("checkedVal",e.form.controls.workingTP.value),c(),g(e.form.controls.workingTP.value===!0?36:-1),c(),m("content",e.workingTpCheckBoxFalse)("formControl",e.form.controls.workingTP)("checkedVal",e.form.controls.workingTP.value===!1),c(),g(e.form.controls.workingTP.value===!0||e.form.controls.currentStudent.value===!0?38:-1),c(2),m("button",e.next)("enabled",e.form.valid)}}function pi(n,s){n&1&&C(0,"fab-loader")}function ui(n,s){if(n&1&&(o(0,"h3"),l(1,"Add roles to the new centre staff"),a(),o(2,"p",16),l(3," Please note that you can only request a maximum of four admin roles for your centre. If required, please email "),o(4,"a",17),l(5,"[email protected]"),a(),l(6,". "),a(),C(7,"app-update-roles",18),o(8,"div",19),C(9,"fab-button",20)(10,"fab-button",13),a()),n&2){let i=d(2);c(7),m("form",i.rolesForm),c(2),m("button",i.goBack),c(),m("button",i.next)("enabled",i.rolesForm.valid&&!i.rolesForm.pristine)}}function hi(n,s){if(n&1&&_(0,pi,1,0,"fab-loader")(1,ui,11,4),n&2){let i=d();g(i.stateService.manageStaffResultsLoading()!==!1?0:1)}}function _i(n,s){if(n&1&&(o(0,"li"),l(1),a()),n&2){let i=s.$implicit;c(),ee(i)}}function gi(n,s){if(n&1){let i=v();C(0,"fab-notification",21),o(1,"h4",22)(2,"strong"),l(3,"Review and confirm the new centre staff's details"),a()(),o(4,"p"),l(5," The following centre staff and their roles will be added to the centre displayed. "),o(6,"strong"),l(7,"To confirm this, please ensure you agree with the declarations."),a()(),o(8,"div",23)(9,"table",24)(10,"tr",25)(11,"th",26),l(12,"Centre staff name"),a(),o(13,"th",26),l(14,"Email"),a(),o(15,"th",26),l(16,"Centre"),a()(),o(17,"tr",25)(18,"td",27),l(19),a(),o(20,"td",27),l(21),a(),o(22,"td",27),l(23),a()(),o(24,"tr",25)(25,"th",26),l(26,"Currently an AAT student?"),a(),o(27,"th",26),l(28,"Current AAT ID"),a()(),o(29,"tr",25)(30,"td",27),l(31),Se(32,"yesNo"),a(),o(33,"td",27),l(34),a()(),o(35,"tr",25)(36,"th",26),l(37,"Working/worked at AAT TP or AV?"),a(),o(38,"th",26),l(39,"Name of TP or AV"),a(),o(40,"th",26),l(41,"Current AAT ID"),a()(),o(42,"tr",25)(43,"td",27),l(44),Se(45,"yesNo"),a(),o(4
16,"td",27),l(47),a(),o(48,"td",27),l(49),a()(),o(50,"tr",25)(51,"th",26),l(52,"Centre roles"),a(),o(53,"td",27)(54,"ul"),R(55,_i,2,1,"li",null,O),a()()()()(),o(57,"fab-input-checkbox",28),w("isCheckedChange",function(t){u(i);let r=d();return y(r.tableDeclaration,t)||(r.tableDeclaration=t),h(t)}),a(),o(58,"div",29)(59,"fab-input-checkbox",28),w("isCheckedChange",function(t){u(i);let r=d();return y(r.summaryDeclaration,t)||(r.summaryDeclaration=t),h(t)}),a()(),o(60,"div",19),C(61,"fab-button",20)(62,"fab-button",13),a()}if(n&2){let i=d();m("notification",i.warningSummaryNotification)("isNotificationOpen",!0),c(19),V(" ",i.form.controls.firstName.value+" "+i.form.controls.lastName.value," "),c(2),V(" ",i.form.controls.email.value," "),c(2),ee(i.stateService.selectedCentre().name),c(8),V(" ",Ne(32,17,i.form.controls.currentStudent.value)," "),c(3),V(" ",i.form.controls.existingAATId.value," "),c(10),V(" ",Ne(45,19,i.form.controls.workingTP.value)," "),c(3),V(" ",i.form.controls.tpName.value," "),c(2),V(" ",i.form.controls.existingAATId.value," "),c(6),M(i.getSelectedRoles()),c(2),S("isChecked",i.tableDeclaration),m("content",i.tableDeclarationContent),c(2),S("isChecked",i.summaryDeclaration),m("content",i.overallCheckboxDeclaration),c(2),m("button",i.goBack),c(),m("button",i.next)("enabled",i.summaryDeclaration&&i.tableDeclaration&&!i.stateService.isStaff())}}var de=(function(n){return n[n.initial=0]="initial",n[n.roles=1]="roles",n[n.summary=2]="summary",n[n.confirmation=3]="confirmation",n})(de||{}),Zt=(()=>{let s=class s{constructor(){this.stateService=p(k),this.apiService=p(q),this.formBuilder=p(Ee),this.changeDetector=p(Ze),this.router=p(N),this.typeaheadService=p(xt),this.msaAnalytics=p(P),this.step=de.initial,this.createContactStep=de,this.firstNameInterface={id:"firstName",label:"<strong>First name</strong>",required:!0,codeType:"Alpha",validationBlankMessage:"Enter a first name"},this.lastNameInterface={id:"lastName",label:"<strong>Last name</strong>",required:!0,codeType:"Alpha",validationBlankMessage:"Enter a last name"},this.emailNameInterface={id:"email",label:"<strong>Email address</strong>",required:!0,codeType:"Email",validationMessage:"Enter an email address",validationBlankMessage:"Enter an email address"},this.titleDropdown={required:!0,placeholder:"Please choose",options:ht,group:"titles",label:"<strong>Title</strong>",validationMessage:"Select a title from the list"},this.studentCheckBoxTrue={label:"Yes",id:"student-radio-yes",value:!0},this.studentCheckBoxFalse={label:"No",id:"student-radio-no",value:!1},this.studentEvidence=()=>({id:"evidenceStudent",label:`<b>Please provide their existing AAT member ID number${this.form.controls.currentStudent.value?"":" (optional)"}</b>`,toolTip:"This is their unique reference number e.g. 654321",required:!1,codeType:"Numeric"}),this.workingTpCheckBoxTrue={label:"Yes",id:"working-tp-radio-yes",value:!0},this.workingTpCheckBoxFalse={label:"No",id:"working-tp-radio-no",value:!1},this.workingTpName={id:"workingTpName",label:"<b>Please provide the name of the training provider or assessment venue they are working at, or have previously worked at.</b>",required:!0,codeType:"AlphaNumeric"},this.goBack={text:"Go back",type:"secondary",action:{type:"callback",callback:()=>this._goBack()},aria:"Go back"},this.warningSummaryNotification={type:"warning",message:"<p><strong>Please review the details below carefully before submitting</strong></p><p>If you make any changes to staff records in error, you\u2019ll need to make another submission.</p>",isOpened:!0,fullWidth:!0},this.autocompleteValidationInterface={label:"<strong>Country</strong>",required:!0,placeholder:"",toolTip:"Example: United Kingdom",preselectFromSearchService:!0},this.countryErrorMessage="Start typing your country's name then select from the list displayed",this.next={text:"Continue",type:"primary",action:{type:"callback",callback:()=>{this.step===de.initial?(this._setSpinner(!0),this.apiService.validateCreateStaff(this.form).pipe(T(1)).subscribe({next:e=>{this._setSpinner(!1),this.apiService.loadManageStaffRoles(),this.step=de.roles,this.msaAnalytics.onViewContent("add new centre staff - roles"),window.scroll({top:0,behavior:"smooth"})},error:()=>{this._setSpinner(!1),window.scroll({top:0,behavior:"smooth"})}})):this.step===de.roles?(this._setSpinner(!0),this.apiService.validateCreateStaffRoles(this.rolesForm).pipe(T(1)).subscribe({next:e=>{this._setSpinner(!1),this.step=this.createContactStep.summary,this.msaAnalytics.onViewContent("add new centre staff - review and confirm"),window.scroll({top:0,behavior:"smooth"})},error:e=>{this._setSpinner(!1),window.scroll({top:0,behavior:"smooth"})}})):this.step===de.summary&&(this._setSpinner(!0),this.apiService.createStaff(this.form,this.rolesForm).pipe(T(1)).subscribe({next:e=>{this._setSpinner(!1),this.stateService.setConfirmationPageData(e),this.msaAnalytics.onViewContent("add new centre staff - changes have been submitted"),this.router.navigate(["/centre-services/manage-staff-access/confirmation"])},error:()=>{this._setSpinner(!1)}}))}},aria:"Continue"},this.form=this.formBuilder.group({firstName:this.formBuilder.control("",[Q.required]),lastName:this.formBuilder.control("",[Q.required]),title:this.formBuilder.control(null,[Q.required]),email:this.formBuilder.control("",[Q.required]),country:this.formBuilder.control(null,[Q.required]),currentStudent:new E(null,Q.required),workingTP:new E(null,Q.required),tpName:new E(null),existingAATId:new E(null)}),this.tableDeclaration=!1,this.rolesForm=new ke({}),this.summaryDeclaration=!1,this.overallCheckboxDeclaration={id:"overall-declaration",label:`I confirm that the information provided in this submission is to the best of my knowledge correct and that, as an
2      AAT approved organisation, we'll adhere to
3      <a href="/policies/terms-conditions-aat-systems" target="_blank">AAT's standard terms and conditions</a>,
4      Framework agreement and call off contract.`,checkboxPosition:"left"},this.tableDeclarationContent={id:"table-declaration",label:"By ticking this box, you confirm the centre staff and roles will be added to the centre displayed.",checkboxPosition:"left"}}ngAfterViewInit(){this.step===this.createContactStep.initial&&(this.changeDetector.detectChanges(),this._countryTypeAhead.selectSuggestion(this._getDefaultCountryIndex()))}studentRadioChange(e){e.value===!0?this.form.controls.existingAATId.addValidators(Q.required):(this.form.controls.existingAATId.setValidators([]),this.form.controls.workingTP.value===!1&&this.form.controls.existingAATId.setValue(null)),this.form.controls.existingAATId.updateV
4alueAndValidity(),this.form.updateValueAndValidity()}workingTPChange(e){e.value===!0?this.form.controls.tpName.addValidators([Q.required]):(this.form.controls.tpName.setValidators([]),this.form.controls.tpName.setValue(null),this.form.controls.currentStudent.value===!1&&(this.form.controls.existingAATId.setValue(null),this.form.controls.existingAATId.updateValueAndValidity())),this.form.controls.tpName.updateValueAndValidity(),this.form.updateValueAndValidity()}_goBack(){this.stateService.resetAPIError(),this.step-=1,this.step===this.createContactStep.initial&&(this.changeDetector.detectChanges(),this._countryTypeAhead&&this._countryTypeAhead.selectSuggestion(this._getDefaultCountryIndex()))}_setSpinner(e){this.next.text=e?"Submitting...":"Continue",this.next.glyph=e?{icon:te.LOOP2,glyphAnimation:"spin"}:null}getSelectedRoles(){return Object.keys(this.rolesForm.controls).filter(e=>(this.rolesForm.controls[e].updateValueAndValidity(),this.rolesForm.controls[e].controls.selected?.value))}_getDefaultCountryIndex(){return pt.findIndex(t=>t.id===this.stateService.selectedCentre().postalAddress.addressCountry)}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-manage-tp-staff-access-create-new-contact"]],viewQuery:function(t,r){if(t&1&&ae(li,5),t&2){let f;re(f=se())&&(r._countryTypeAhead=f.first)}},decls:3,vars:3,consts:[["countryItem","","FabAC",""],["href","mailto:[email protected]"],[3,"formGroup"],[1,"new-centre-staff"],[1,"new-centre-staff__input",3,"content","formControl"],[3,"errorMessage","formControl","service","content"],[1,"suggestion__header"],[1,"suggestion__option"],[1,"new-centre-staff__questions"],[1,"new-centre-staff__questions--tooltip"],[3,"selectEvent","content","formControl","checkedVal"],[3,"content","formControl"],[1,"new-centre-staff__buttons","new-centre-staff__buttons--initial"],[3,"button","enabled"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"],[1,"new-centre-staff__guidance"],["href","mailto:[email protected]"],[3,"form"],[1,"new-centre-staff__buttons"],[3,"button"],[3,"notification","isNotificationOpen"],[1,"new-centre-staff__title"],[1,"new-centre-staff__table"],[1,"new-centre-staff__summary"],[1,"new-centre-staff__summary--row"],[1,"new-centre-staff__summary--header"],[1,"new-centre-staff__summary--data"],[3,"isCheckedChange","isChecked","content"],[1,"new-centre-staff__overall-declaration"]],template:function(t,r){t&1&&(_(0,fi,41,29),_(1,hi,2,1),_(2,gi,63,21)),t&2&&(g(r.step===r.createContactStep.initial?0:-1),c(),g(r.step===r.createContactStep.roles?1:-1),c(),g(r.step===r.createContactStep.summary?2:-1))},dependencies:[Ie,Te,ue,Ae,Re,Me,B,Oe,F,Tt,wt,yt,De,H,G,ie,ne,Dt,Ot,kt,$,Xt,At],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.new-centre-staff[_ngcontent-%COMP%]{margin-top:3%;display:flex;flex-direction:column}.new-centre-staff__input[_ngcontent-%COMP%]{margin-bottom:2%}.new-centre-staff__questions[_ngcontent-%COMP%]{margin-top:35px}.new-centre-staff__questions--tooltip[_ngcontent-%COMP%]{font-size:small}.new-centre-staff__summary[_ngcontent-%COMP%]{margin:auto}.new-centre-staff__summary--header[_ngcontent-%COMP%]{text-align:start;padding:10px}.new-centre-staff__summary--data[_ngcontent-%COMP%]{padding:10px}.new-centre-staff__summary[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:disc;margin:.5em 0}.new-centre-staff__summary--row[_ngcontent-%COMP%]{border-bottom:1px solid rgb(229.5,229.5,229.5)}.new-centre-staff__summary--row[_ngcontent-%COMP%]:last-of-type{border:none}.new-centre-staff__summary--row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:15px 15px 25px}.new-centre-staff__table[_ngcontent-%COMP%]{border:2px solid #dce6f0;padding:10px;margin:5% 0}.new-centre-staff__buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:35px;margin-bottom:15px}.new-centre-staff__buttons--initial[_ngcontent-%COMP%]{justify-content:flex-end}.new-centre-staff__title[_ngcontent-%COMP%]{margin-top:2%;color:#00ab4e}.new-centre-staff__guidance[_ngcontent-%COMP%]{display:block;margin:20px 0}.new-centre-staff__overall-declaration[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:10px}"]});let n=s;return n})();var Kt=(()=>{let s=class s{};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-guidance"]],decls:139,vars:6,consts:[[1,"guidance"],["href","/policies/terms-conditions-aat-systems","target","_blank"],[1,"guidance__accordions"],["title","Add a new centre staff to your centre",3,"iconArrowLeft"],["body",""],["href","mailto:[email protected]"],["title","Add or remove roles from an individual centre staff",3,"iconArrowLeft"],["t
4itle","Remove roles from multiple centre staff",3,"iconArrowLeft"],["title","Remove centre staff from your centre",3,"iconArrowLeft"],["title","Role descriptions ",3,"iconArrowLeft"],[1,"guidance__list-item"],[1,"guidance__list-item__sub"],["href","/system/files/assets/AAT-guidance-training-providers-Qualifications-2022.pdf","target","_blank"],["title","Incorrect details of centre staff",3,"iconArrowLeft"],["routerLink","/my-account/edit-details"]],template:function(t,r){t&1&&(o(0,"div",0)(1,"h3"),l(2,"Manage centre staff guidance"),a(),o(3,"p"),l(4," Use this service to view and manage which staff are attached to your centre. Depending on which action you want to take, follow the relevant guidelines below. "),a(),o(5,"p"),l(6," In line with data protection requirements, you'll only see staff registered at the above centre name. Please notify AAT immediately if you identify any inaccuracies in the data. "),a(),o(7,"p"),l(8," Use of this service is subject to "),o(9,"a",1),l(10,"AAT's terms and conditions"),a(),l(11,", by continuing to use this service you are deemed to have read, understood and agreed to these terms and conditions. "),a(),o(12,"div",2)(13,"fab-accordion",3)(14,"div",4)(15,"p"),l(16,'Add a new centre staff by clicking on the "Add a new centre staff" tab.'),a(),o(17,"p"),l(18," Once you've added the new centre staff, they'll receive an email to activate their access - this email is valid for 24 hours. After 24 hours, they'll need to contact "),o(19,"a",5),l(20,"[email protected]"),a(),l(21," to activate. "),a()()(),o(22,"fab-accordion",6)(23,"div",4)(24,"p"),l(25,` To add or remove roles from a centre staff, in the "View and manage existing centre staff" screen, click on the "Add or remove roles" link in the relevant staff's card record. `),a()()(),o(26,"fab-accordion",7)(27,"div",4)(28,"p"),l(29,' To remove roles from multiple centre staff, in the "View and manage existing centre staff" screen, select the staff on the left-hand tick box, or click "Select all", then scroll to the bottom of the page and click on "Remove roles from the selected staff". '),a()()(),o(30,"fab-accordion",8)(31,"div",4)(32,"p"),l(33,` To remove staff from your centre, in the "View and manage existing centre staff" screen, select the staff on the left-hand tick box, or click "Select all", then scroll to the bottom of the page and click on "Remove selected staff from the centre". You can remove up to 50 records at a time in one go, and you'll be able to review and confirm your selections on the next step. `),a()()(),o(34,"fab-accordion",9)(35,"div",4)(36,"p"),l(37," Please note that you will only be able to add the roles that are relevant to your training provider (TP) or assessment venue (AV) access. "),a(),o(38,"ul")(39,"li",10)(40,"strong"),l(41," Assessment venue content role"),a(),l(42,": for contacts at assessment venues who require access to teaching material or practice assessments. It allows these contacts (that do not teach and cannot be set up as another role) to access web content and learning resources via the Lifelong Learning Portal, so that they can prepare learners for assessments. They can\u2019t be set up as another role as they\u2019d have access to sensitive data/services. "),a(),o(43,"li",10)(44,"strong"),l(45,"Assessor & trainee assessor"),a(),l(46,": assessors are responsible for the assessment of candidates work against the prescribed criteria, ensuring that national standards are maintained. Full details of requirements for assessors can be found in the "),o(47,"em"),l(48,"AAT Code of Practice for Training Providers"),a(),l(49,". This role is only required for assessment via Recognition of Prior Learning and not needed for End Point Assessments. "),a(),o(50,"li",10)(51,"strong"),l(52,"AV (assessment venue) admin"),a(),l(53,": a support role, provided to allow other users (when the main contact is not available) to add, remove and manage the list of staff who could/should have a role allocated to them. "),a(),o(54,"li",10)(55,"strong"),l(56,"EPA (End Point Assessment) centre contact"),a(),l(57,": EPA centres must have at least one EPA centre c
4ontact who will be the point of contact for AAT and the EPA team, should any queries arise. They are responsible for overseeing the EPA programme and is accountable for: "),o(58,"ul")(59,"li",11),l(60,"continued approval and monitoring"),a(),o(61,"li",11),l(62,"coordination of the team"),a(),o(63,"li",11),l(64," coordination of the administration and delivery of end point assessments "),a()(),o(65,"p"),l(66," The implementation of EPAs depends on effective communication between EPA Centres and AAT. This role will provide access to SEPA and Atlas Cloud. "),a()(),o(67,"li",10)(68,"strong"),l(69,"Exams officer"),a(),l(70,": exams officers are responsible for scheduling assessments, assessment security, assessment supervision, the assessment environment and the overall conduct of the assessment. This role should also be able to troubleshoot any technical issues, before, during or after any assessments take place. This role will provide access to Atlas Cloud. "),a(),o(71,"li",10)(72,"strong"),l(73,"Independent AV (assessment venue) staff"),a(),l(74,": for staff involved with the running of AAT assessments. "),a(),o(75,"li",10)(76,"strong"),l(77,"Internal verifier & trainee internal verifiers"),a(),l(78,": internal verifiers support assessors to ensure assessment decisions are valid and reliable. Full details of requirements for internal verifiers can be found in the "),o(79,"em"),l(80,"AAT Code of Practice for Training Providers"),a(),l(81,". This role is only required for assessment via Recognition of Prior Learning and not needed for End Point Assessments. "),a(),o(82,"li",10)(83,"strong"),l(84,"ISA contact"),a(),l(85,": allows the user to access and update the training provider and assessment venue details on Find a Training Provider (FATP) and Find an Assessment Venue (FAAV). "),a(),o(86,"li",10)(87,"strong"),l(88,"Main contact (assessment venue)"),a(),l(89,": Assessment venues (AVs) must nominate a main contact who will be the first point of contact for AAT and the external quality assurer, should any queries arise. The main contact is responsible for overseeing AAT assessments and is accountable for: "),o(90,"ul")(91,"li",11),l(92,"continued approval and monitoring"),a(),o(93,"li",11),l(94,"coordination of the team"),a(),o(95,"li",11),l(96," coordination of the administration and running of AAT assessments "),a()(),o(97,"p"),l(98," The implementation and running of AAT assessments depends on effective communication between AVs and AAT. AVs should notify their assigned AAT Centre Compliance team if the main contact subsequently changes. "),a()(),o(99,"li",10)(100,"strong"),l(101,"TP (training provider) admin"),a(),l(102,": a supp
4ort role, provided to allow other users (when the TP main contact is not available) to add, remove and manage the list of staff who could/should have a role allocated to them. "),a(),o(103,"li",10)(104,"strong"),l(105,"TP (training provider) main contact"),a(),l(106,": training providers must nominate a main contact who will be the first point of contact for AAT and the quality assurer, should any queries arise. The main contact is responsible for overseeing the AAT programme and is accountable for: "),o(107,"ul")(108,"li",11),l(109,"continued approval and monitoring"),a(),o(110,"li",11),l(111,"coordination of the team"),a(),o(112,"li",11),l(113," coordination of the administration and delivery of AAT qualifications "),a()(),o(114,"p"),l(115," The implementation and running of AAT assessments depends on effective communication between training providers and AAT. Training providers should notify their assigned AAT Centre Compliance Officer if the TP main contact subsequently changes. "),a(),o(116,"p"),l(117," Full details of requirements for TP main contacts can be found in the "),o(118,"a",12)(119,"em"),l(120," AAT Guidance for Training Providers"),a()(),l(121,". "),a()(),o(122,"li",10)(123,"strong"),l(124,"Training provider content and Learning Portal role"),a(),l(125,": primarily for publishers and TP contacts who write teaching material but cannot be set up as tutors. It allows these contacts (that do not teach and cannot be set up as another role) to access web content and learning resources via the Lifelong Learning Portal, so that they can write their own TP teaching material. They can't be set up as another role as they'd have access to sensitive data/services. "),a(),o(126,"li",10)(127,"strong"),l(128,"Tutor"),a(),l(129,": tutors within the training provider are responsible for the quality of delivery of the programme, including preparing students for assessments and supporting and monitoring student progress. This role will provide access to Atlas Cloud. "),a()()()(),o(130,"fab-accordion",13)(131,"div",4)(132,"p"),l(133," If the details of your centre staff are incorrect, please advise the centre staff to update their contact details in their Edit my details page via this link: "),o(134,"a",14),l(135,"www.aat.org.uk/my-account/edit-details"),a(),l(136,". If their name has changed, they\u2019ll need to contact our Centre Support team by emailing "),o(137,"a",5),l(138,"[email protected]"),a()()()()()()),t&2&&(c(13),m("iconArrowLeft",!1),c(9),m("iconArrowLeft",!1),c(4),m("iconArrowLeft",!1),c(4),m("iconArrowLeft",!1),c(4),m("iconArrowLeft",!1),c(96),m("iconArrowLeft",!1))},dependencies:[vt,Ct,le,ye],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.guidance__list-item[_ngcontent-%COMP%]{list-style:inside!important}.guidance__list-item__sub[_ngcontent-%COMP%]{list-style-type:"- "!important;margin-left:1rem!important}.guidance__accordions[_ngcontent-%COMP%]{padding-bottom:20px;display:flex;flex-direction:column;gap:20px}']});let n=s;return n})();function Ci(n,s){if(n&1&&C(0,"fab-notification",6),n&2){let i=d(3);m("notification",i.stateService.apiError())("isNotificationOpen",!0)}}function vi(n,s){if(n&1){let i=v();o(0,"app-manage-tp-staff-access-overview",7),b("goToGuidanceTab",function(){u(i);let t=d(3);return h(t.setTabIndex(2))})("goToStart",function(){u(i);let t=d(3);return h(t.reset())}),a()}}function bi(n,s){if(n&1){let i=v();o(0,"app-manage-tp-staff-access-create-new-contact",8),b("goToStart",function(){u(i);let t=d(3);return h(t.reset())}),a()}}function xi(n,s){if(n&1){let i=v();o(0,"app-guidance",8),b("goToStart",function(){u(i);let t=d(3);return h(t.reset())}),a()}}function Si(n,s){if(n&1){let i=v();o(0,"fab-tabs-block",5),w("indexChange",function(t){u(i);let r=d(2);return y(r.tabIndex,t)||(r.tabIndex=t),h(t)}),b("changeActiveTab",function(){u(i);let t=d(2);return h(t.setTabIndex())}),a(),_(1,Ci,1,2,"fab-notification",6),_(2,vi,1,0,"app-manage-tp-staff-access-overview")(3,bi,1,0,"app-manage-tp-staff-access-create-new-contact")(4,xi,1,0,"app-guidance")}if(n&2){let i=d(2);m("content",i.tabsBlock),S("index",i.tabIndex),c(),g(i.stateService.apiError()?1:-1),c(),g(i.tabIndex===0?2:i.tabIndex===1?3:i.tabIndex===2?4:-1)}}function yi(n,s){n&1&&(o(0,"div",4)(1,"h3"),l(2,"Sorry, access to this service is restricted"),a(),o(3,"p"),l(4," You don't have the correct permissions to access this service. This may be because you don't have the correct role at your selected centre. "),a(),o(5,"p"),l(6," Try selecting a different centre from the drop-down (if applicable), or if you think you should have access, please "),o(7,"a",9),l(8,"contact us"),a(),l(9,". "),a()())}function wi(n,s){if(n&1&&(o(0,"div",3),_(1,Si,5,4)(2,yi,10,0,"div",4),a()),n&2){let i=d();c(),g(i.hasAccess?1:2)}}var en=(()=>{let s=class s{constructor(){this.stateService=p(k),this.apiService=p(q),this.auth=p(ct),this.activatedRoute=p(it),this.msaAnalytics=p(P),this.tabIndex=0,this.tabsBlock={imagePosition:"left",hideContent:!0,tabData:[{name:"View and manage existing centre staff"},{name:"Add new centre staff"},{name:"Manage centre staff guidance"}]}}ngOnInit(){this.auth.getCurrentUser().pipe(T(1)).subscribe({next:e=>{this.stateService.setAATStaffCheck(e["cognito:groups"])},error:()=>{console.error("no user data")}})}changeCentre(e){if(e.organisationId){let t=()=>{let r=this.stateService.selectedCentre()?.role?.split(",")?.map(f=>f.trim().toLowerCase().replaceAll(" ","_"));this.hasAccess=this.stateService.isStaff()||this.activatedRoute.snapshot.data.roles.some(f=>r.includes(f))};this.stateService.setCentre(e),t(),this.reset(),this.apiService.loadCentreRoles(),this.apiService.loadCentreQuals(),this.apiService.loadResultsIntoState()}}setTabIndexBasedOnRoute(){this.activatedRoute.queryParams.pipe(T(1)).subscribe(e=>{e.tab_index?this.setTabIndex(+e.tab_index):this.setTabIndex(0)})}setTabIndex(e){e&&(this.tabIndex=e),this.tabIndex===0?this.msaAnalytics.onViewContent("view and manage existing centre staff"):this.tabIndex===1?this.msaAnalytics.onViewContent("add new centre staff"):this.msaAnalytics.onViewContent("manage centre staff guidance")}reset(){window.scroll({top:0,behavior:"smooth"}),this.setTabIndexBasedOnRoute(),this._manageStaffComponent&&this._manageStaffComponent.reset()}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-manage-tp-staff-access"]],viewQuery:function(t,r){if(t&1&&ae(Be,5),t&2){let f;re(f=se())&&(r._manageStaffComponent=f.first)}},decls:5,vars:1,consts:[[1,"centre-picker-container"],[1,"centre-picker-container__header"],["userGroup","trainingprovider",1,"centre-picker-container__picker",3,"change"],[1,"manage-staff-container"],[1,"manage-staff-container__restriction"],[3,"indexChange","changeActiveTab","content","index"],[1,"manage-staff-container__api-error",3,"notification","isNotificationOpen"],[3,"goToGuidanceTab","goToStart"],[3,"goToStart"],["href","/about/help-and-support/answers-for-training-providers"]],template:function(t,r){t&1&&(o(0,"div",0)(1,"h1",1),l(2,"Manage staff access"),a(),o(3,"fab-centre-picker",2),b("change",function(x){return r.changeCentre(x)}),a()(),_(4,wi,3,1,"div",3)),t&2&&(c(4),g(r.stateService.selectedCentre()?4:-1))},dependencies:[Be,Zt,Lt,Bt,jt,$t,Kt,H,G],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.manage-staff-container{width:90%;margin:3% auto;border:2px solid #dce6f0;padding:0 3%;box-sizing:border-box}.manage-staff-container__api-error{display:flex;margin-bottom:1.5rem;min-width:100%}@media (min-width: 768px){.manage-staff-container{width:80%}}.manage-staff-container__restriction{padding:1rem;width:90%;margin:auto}.centre-picker-container{background-color:#eee}.centre-picker-container__header{padding:5% 5% 0}@media (min-width: 768px){.centre-picker-container__header{padding:5% 10% 0}}.centre-picker-container__picker{width:90%;margin:auto;display:block;padding:40px 0}@media (min-width: 768px){.centre-picker-container__picker{width:80%;padding:40px}}.centre-picker-container__picker .centre-picker{border:1px solid #000000;background-color:#eee}
5`],encapsulation:2});let n=s;return n})();var tn=(()=>{let s=class s{constructor(){this.stateService=p(k),this.router=p(N)}ngOnInit(){this.stateService.confirmationPageData()===null&&this.router.navigate(["/centre-services/manage-staff-access"])}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=A({type:s,selectors:[["app-confirmation"]],decls:4,vars:3,consts:[[1,"confirmation-container"],[1,"confirmation-container__header",3,"innerHTML"],[1,"confirmation-container__copy",3,"innerHTML"]],template:function(t,r){t&1&&(Qe(0,"div",0),He(1,"h3",1)(2,"div",2)(3,"div",2),Ge()),t&2&&(c(),be("innerHTML",r.stateService.confirmationPageData().headingCopy,Z),c(),be("innerHTML",r.stateService.confirmationPageData().applicationCopy,Z),c(),be("innerHTML",r.stateService.confirmationPageData().emailAddress,Z))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.confirmation-container[_ngcontent-%COMP%]{width:90%;margin:3% auto 400px;border:2px solid #dce6f0;padding:0 3%;box-sizing:border-box}@media (min-width: 768px){.confirmation-container[_ngcontent-%COMP%]{width:80%}}.confirmation-container__header[_ngcontent-%COMP%]{padding:2rem 1rem 1rem}.confirmation-container__copy[_ngcontent-%COMP%]{padding:1rem}
5.confirmation-container[_ngcontent-%COMP%]     li{list-style:inside}.confirmation-container[_ngcontent-%COMP%]     .landing-page__block--action{margin-top:3rem}"]});let n=s;return n})();var Ai=[{path:"",component:en},{path:"confirmation",component:tn}],sr=(()=>{let s=class s{};s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=Ue({type:s}),s.\u0275inj=Le({imports:[le.forChild(Ai),le]});let n=s;return n})();export{sr as ManageTpStaffAccessRoutingModule};

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.