PageSourceSearch

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

js aat.org.uk collected 2026-10-03 21:40:31 UTC 45,428 bytes, 10 lines download raw bytes

1import{m as it}from"./chunk-QJJDLPQ3.js";import{a as tt}from"./chunk-AKWG4KM7.js";import"./chunk-SEDYUPGI.js";import{a as ft}from"./chunk-GZ5534H5.js";import{a as X}from"./chunk-JEL6HJ7P.js";import{K as ce,Mb as Ze,Nb as et,Pa as Ge,S as Pe,T as Re,Ua as He,Xa as Ue,Ya as Ke,aa as Qe,c as Fe,gb as We,ib as Je,la as Ye,ma as J,q as Ve,sa as V,t as pe,ub as Xe}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import{J as ze,a as De,e as le,h as Me,i as je,n as Le,p as Ne,s as Oe,t as $e,w as Be}from"./chunk-76O7YCWW.js";import{a as ae,b as Ae,c as z,d as Ie,e as M,k as se}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import{a as K,c as W}from"./chunk-LU7SZU5X.js";import{A as Ee,j as U,t as qe,v as Te,w as ke}from"./chunk-PO2RDVKE.js";import{Ac as B,Bc as S,E as ge,Ic as R,Jc as Se,Lc as we,Mb as ne,Oc as H,Pb as f,Rb as _,Tb as A,Tc as E,Ub as I,Uc as re,Vb as F,Vc as D,W as oe,Wb as h,Xb as s,Yb as a,Za as ve,Zb as b,ba as xe,ca as Q,da as Y,db as l,ec as k,f as fe,g as _e,ga as $,ib as be,jc as y,lc as c,mc as Ce,nc as ye,o as he,oa as w,pa as q,pb as g,s as N,ub as T,vb as G,zc as p}from"./chunk-3URBZWPM.js";import{a as te,b as ie,g as mt}from"./chunk-ODN5LVDJ.js";var L=(()=>{let n=class n{constructor(e,i){this.http=e,this.ssrCookieService=i,this.changeCentre=new _e(null),this.changeCentre$=this.changeCentre.asObservable(),this.questions=null,this.qualSelected=null,this.centre=null,this.inputTypes={Date:"date",Freetext:"text","Multiline Text":"multiLineText","Whole Number":"wholeNumber","Option List":"optionSet"}}setCentre(e,i=null){this.role=i,this.changeCentre.next(e),this.centre=e}createApproval(e){let i=[],o=null;this.questions&&(this.questions.forEach(m=>{e[m.questionTitle]&&i.push({questionId:m.questionId,response:{[this.inputTypes[m.questionType]]:m.questionType=="Date"?this.formatDate(e[m.questionTitle]):e[m.questionTitle]}})}),o={questions:i});let d=this.centre.approvals.sort(function(m,x){return new Date(x.untilDate).getTime()-new Date(m.untilDate).getTime()})[0],u={approval:{approvalCRMId:d.approvalCRMId,statusDate:new Date().toISOString(),fromDate:new Date().toISOString(),untilDate:d.untilDate,organisationId:this.centre.organisationId,qualificationName:this.qualSelected.name,qualificationId:this.qualSelected.programmeComponentId},approvalQuestionResponse:o};return this.http.post(X.API_URL+`/training-provider/${this.centre.organisationId}/approvals`,JSON.stringify(u),this.getRequestOptions()).pipe(N(m=>m),ge(m=>(console.error(m),he(()=>m))))}formatDate(e){let i=e.split("/");return`${i[2]}-${i[1]}-${i[0]}`}getRequestOptions(){return{headers:new K({"Content-Type":"application/json",Authorization:this.ssrCookieService.get("access_token")})}}};n.\u0275fac=function(i){return new(i||n)($(W),$(Fe))},n.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var P=(()=>{let n=class n{constructor(e,i){this.http=e,this.authService=i}getQuestionsByIndex(e,i){return this.http.get(X.API_URL+"/route-question-configuration/by/"+e+"/"+i,{headers:new K({"Content-Type":"application/json"})}).pipe(N(o=>o))}};n.\u0275fac=function(i){return new(i||n)($(W),$(Ve))},n.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var ot=(()=>{let n=class n{constructor(e,i,o,d,u){this.programmeComponentService=e,this.tpApprovalsService=i,this.routeQuestionConfigurationService=o,this.router=d,this.route=u}ngOnInit(){this.tpApprovalsService.qualSelected||this.router.navigate(["../"],{relativeTo:this.route})}ngOnDestroy(){}};n.\u0275fac=function(i){return new(i||n)(g(J),g(L),g(P),g(M),g(z))},n.\u0275cmp=T({type:n,selectors:[["qual-approvals-confirmation"]],standalone:!1,decls:28,vars:0,consts:[[1,"confirmation-page"],[1,"confirmation-page__container"],[1,"row"],[1,"col-lg-6","col-lg-offset-3","col-md-7","col-md-offset-2","col-sm-9","col-sm-offset-1","col-xs-12","col-xs-offset"],[1,"confirmation-page__box"],[1,"confirmation-page__box--heading"],[1,"confirmation-page__box--quals-group"],[1,"confirmation-page__box--qual"],[1,"col-sm-12"],["href","mailto:aatqual
1[email protected]"],["href","/centre-services/qualification-approvals"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3)(5,"div",2)(6,"div",4)(7,"div",5)(8,"h4")(9,"strong"),p(10,"Thank you "),a()()(),s(11,"div",6)(12,"div",7)(13,"div",2)(14,"div",8)(15,"p"),p(16,"Your request for an additional qualification has been submitted and is pending approval."),a(),s(17,"p"),p(18,"You will be contacted via email within five working days."),a(),s(19,"p"),p(20," If you need to make any change to your request or have any queries, please contact "),s(21,"a",9),p(22,"[email protected]"),a()(),s(23,"p"),p(24," You can "),s(25,"a",10),p(26,"submit another approval request here"),a(),p(27,". "),a()()()()()()()()()()()())},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.step-1-page{background-color:#f8f8f8}.step-1-page__legend span{margin-left:10px}.step-1-page__legend .icon-success{color:#008048;font-size:20px}.step-1-page__subheading h4{font-family:acumin-pro-wide,Arial;color:#000;margin:25px 0}.step-1-page__box--element{padding:20px 15px}.step-1-page__box--element li{list-style:initial;margin-left:20px}.step-1-page__box--element li li{margin-top:5px;margin-bottom:5px}.step-1-page__box{width:100%;font-size:16px;background-color:#f9f9f9;border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:5px;margin:0 15px 20px}@media (min-width: 768px){.step-1-page__box{margin:20px 0}}.step-1-page__box--heading{background-color:#fff;padding:15px;border-bottom:solid thin #e6e6e6;border-radius:5px 5px 0 0/5px 5px 0px 0px}.step-1-page__box--heading p{color:#000;margin:0}.step-1-page__box--quals-group{padding:15px}.step-1-page__box--qual{padding:10px;margin-bottom:10px;background:#fff;border-radius:5px;border:solid thin #e6e6e6}.step-1-page__box--qual p{color:#000;margin:0}.step-1-page__box--qual p.small-text{font-size:12px}.step-1-page__box--qual .icon-success{color:#008048;font-size:28px}.step-1-page__box--icon{margin-top:5px}.step-1-page__box.no-padding{padding:0}.step-1-page__box--header{padding:20px 15px 0}.step-1-page__box--address{padding:15px;max-width:600px}.step-1-page__box--notification{padding:5px 15px}.step-1-page__box--buttons{padding:20px 25px;display:flex;justify-content:space-between}
2`],encapsulation:2});let t=n;return t})();var me=mt(ft());function ht(t,n){if(t&1){let r=k();s(0,"div")(1,"div")(2,"label",16),p(3),s(4,"input",21),y("click",function(){let i=w(r).$implicit,o=c(8);return q(o.select3thChildren(i.value.name))}),a(),b(5,"span",18),a()()()}if(t&2){let r=n.$implicit,e=n.$index,i=c(8);l(3),S("",r.value.name," "),l(),h("value",e)("checked",i.lastType==e)}}function gt(t,n){if(t&1&&(s(0,"div",19),I(1,ht,6,3,"div",null,A),E(3,"keyvalue"),a()),t&2){let r=c().$implicit,e=c(6);l(),F(D(3,0,r.value,e.qualSubOrder))}}function xt(t,n){if(t&1){let r=k();s(0,"div")(1,"div")(2,"label",16),p(3),s(4,"input",20),y("click",function(){let i=w(r),o=i.$implicit,d=i.$index,u=c(6);return q(o.value!=null&&o.value.length?u.showHide2ndChildren(d,o.key):u.select3thChildren(o.key,"flag"))}),a(),b(5,"span",18),a(),f(6,gt,4,3,"div",19),a()()}if(t&2){let r=n.$implicit,e=n.$index,i=c(6);l(3),S("",r.key," "),l(),h("value",e)("checked",i.subType==e),l(2),_(r.value!=null&&r.value.length&&i.show2ndSelectorChildren===e?6:-1)}}function vt(t,n){if(t&1&&(s(0,"div",19),I(1,xt,7,4,"div",null,A),E(3,"keyvalue"),E(4,"keyvalue"),a()),t&2){let r=c(2).$implicit,e=c(3);l(),F(r.value!=null&&r.value.length?D(3,0,r.value,e.qualStandardOrder):D(4,3,r.value,e.qualSubOrder))}}function bt(t,n){if(t&1){let r=k();s(0,"div")(1,"label",16),p(2),s(3,"input",17),y("click",function(){w(r);let i=c(),o=i.$implicit,d=i.$index,u=c(3);return q(u.showHideChildren(d,o.key,o.value.name))}),a(),b(4,"span",18),a(),f(5,vt,5,6,"div",19),a()}if(t&2){let r=c(),e=r.$implicit,i=r.$index,o=c(3);l(2),S("",e.key," "),l(),h("value",i),l(2),_(e.value&&o.show1stSelectorChildren===i?5:-1)}}function Ct(t,n){if(t&1&&(s(0,"div"),f(1,bt,6,3,"div"),a()),t&2){let r=n.$implicit;l(),_(r.key!=="undefined"?1:-1)}}function yt(t,n){if(t&1&&(s(0,"div",5)(1,"div",11)(2,"h4"),p(3,"Request an additional qual
2ification"),a()(),s(4,"div",12)(5,"div",13)(6,"div",3)(7,"div",14)(8,"div",15)(9,"h4")(10,"strong"),p(11,"Choose a qualification"),a()(),I(12,Ct,2,1,"div",null,A),E(14,"keyvalue"),a()()()()()()),t&2){let r=c(2);l(12),F(D(14,0,r.strand,r.qualGroupOrder))}}function St(t,n){if(t&1&&(s(0,"div",6)(1,"div",22),b(2,"fab-button",23),a()()),t&2){let r=c(2);l(2),h("enabled",r.endSelection!=null)("button",r.nextButton)}}function wt(t,n){if(t&1&&(s(0,"p",26),p(1),E(2,"date"),a()),t&2){let r=c().$implicit;l(),S(" Date approved: ",D(2,1,r.approvalFromDate,"d MMMM y")," ")}}function qt(t,n){if(t&1&&(s(0,"p",26),p(1),E(2,"date"),a()),t&2){let r=c().$implicit;l(),S("Date requested: ",D(2,1,r.approvalStatusDate,"d MMMM y"))}}function Tt(t,n){if(t&1&&b(0,"fab-aat-icon",10),t&2){let r=c(4);h("content",r.successIcon),ne("aria-description","Approved")}}function kt(t,n){if(t&1&&b(0,"fab-aat-icon",10),t&2){let r=c(4);h("content",r.pendingIcon),ne("aria-description","Pending")}}function Et(t,n){if(t&1&&(s(0,"div",13)(1,"div",24)(2,"div",25)(3,"p")(4,"strong"),p(5),a()(),f(6,wt,3,4,"p",26)(7,qt,3,4,"p",26),a(),s(8,"div",27)(9,"div",28),f(10,Tt,1,2,"fab-aat-icon",10)(11,kt,1,2,"fab-aat-icon",10),a()()()()),t&2){let r=n.$implicit;l(5),B(r.name),l(),_(r.approvalStatus==="Approved"?6:7),l(4),_(r.approvalStatus==="Approved"?10:11)}}function At(t,n){if(t&1&&(s(0,"div",5)(1,"div",11)(2,"h4"),p(3),a()(),s(4,"div",12),I(5,Et,12,3,"div",13,A),a()()),t&2){let r=n.$implicit,e=c(2);l(3),B(r.key),l(2),F(e.sortByStatus(r.value))}}function It(t,n){if(t&1&&(s(0,"div")(1,"div",3)(2,"div",4)(3,"div",3),f(4,yt,15,3,"div",5),E(5,"json"),a()()(),s(6,"div",4),f(7,St,3,2,"div",6),E(8,"json"),a(),s(9,"div",4)(10,"div",3)(11,"div",7)(12,"h4"),p(13),a()()(),s(14,"div",3)(15,"div",8)(16,"div",9),b(17,"fab-aat-icon",10),a(),s(18,"span"),p(19,"Approved"),a()(),s(20,"div",8)(21,"div",9),b(22,"fab-aat-icon",10),a(),s(23,"span"),p(24,"Pending"),a()()(),I(25,At,7,1,"div",5,A),E(27,"keyvalue"),a()()),t&2){let r=c();l(4),_(re(5,5,r.strand)!=="{}"?4:-1),l(3),_(re(8,7,r.strand)!=="{}"?7:-1),l(6),S("",r.centre.name," is approved to provide:"),l(4),h("content",r.successIcon),l(5),h("content",r.pendingIcon),l(3),F(D(27,9,r.qualsApproval,r.qualGroupOrder))}}function Ft(t,n){t&1&&(s(0,"div",2)(1,"div",3)(2,"div",4)(3,"h4")(4,"strong"),p(5,"Sorry, access to this service is restricted."),a()(),s(6,"p"),p(7,"You don't have the correct permissions to access this service. This may be because:"),a(),s(8,"ul",29)(9,"li"),p(10,"You don't have the correct role at your selected centre"),a(),s(11,"li"),p(12,"The centre you have selected doesn't have any eligible qualifications approved"),a()(),p(13," Try selecting a different centre from the drop-down (if applicable), or if you think you should have access, please "),s(14,"a",30),p(15,"contact us"),a(),p(16,". "),a()()())}var rt=(()=>{let n=class n{constructor(e,i,o,d,u,m){this.programmeComponentService=e,this.tpApprovalsService=i,this.routeQuestionConfigurationService=o,this.router=d,this.route=u,this.featureFlagService=m,this.centre=null,this.forbiddenAccess=!1,this.strand=null,this.show1stSelectorChildren=!1,this.show2ndSelectorChildren=!1,this.selectorQuals=null,this.qualsApproval={},this.approvalsIds=[],this.topLevelSelection=null,this.secondLevelSelection="",this.endSelection=null,this.qualSelectorOrder={"Accounting qualifications":1,"Bookkeeping qualifications":2,"Business Skills":3,"Diploma in Accounting and Business":4,Apprenticeships:5},this.standardSelectorOrder={2022:2,2016:3,Access:1},this.nextButton={text:"Next",action:{type:"callback",callback:this.next.bind(this)},type:"primary",aria:"Next"},this.successIcon={colour:pe.GREEN,iconName:ce.tick},this.pendingIcon={colour:pe.BLACK,iconName:ce.clock},this.qualGroupOrder=(x,C)=>{let v=O=>{if(O.key.includes(" - ")){let[dt,ut]=O.key.split(" - ");return this.qualSelectorOrder[dt]*10+this.standardSelectorOrder[ut]}else return this.qualSelectorOrder[O.key]*10};return v(x)-v(C)},this.qualSubOrder=(x,C)=>{let v="name";return(x.value.onlineDisplaySequence||C.value.onlineDisplaySequence)&&(v="onlineDis
2playSequence"),x.value[v]<C.value[v]?-1:C.value[v]<x.value[v]?1:0},this.qualStandardOrder=(x,C)=>this.standardSelectorOrder[x.key]<this.standardSelectorOrder[C.key]?-1:this.standardSelectorOrder[C.key]<this.standardSelectorOrder[x.key]?1:0,this.tpApprovalsService.changeCentre$.subscribe(x=>{this.role=this.tpApprovalsService.role,x&&(this.centre=x,this.changeCentre(x))})}ngOnInit(){this.programmeComponentService.getProgrammesByIndex("componentTypeName","Level").pipe(oe(e=>this.featureFlagService.isFeatureEnabled("L4PAT").pipe(N(i=>i?this.updateAccountingQuals(e):e)))).subscribe(e=>{this.selectorQuals=e,this.strand=this.generateStrand()})}updateAccountingQuals(e){return e?.map(i=>{let o=i.name;return i.qualificationGroupName==="Accounting qualifications"&&i.qualificationStandardName==="2022"?(i.localCode==="L4DPL"&&(o+=" - (closed for student registrations after 31 August 2026)"),ie(te({},i),{onlineDisplayName:o,qualificationStandardName:void 0})):(i.localCode==="L4PAT"&&(o+=" - (open for student registrations from 1 September 2026)"),ie(te({},i),{onlineDisplayName:o}))})}isEpaContact(){return this.role==="EPA centre contact"}changeCentre(e){this.approvalsIds=[],this.featureFlagService.isFeatureEnabled("L4PAT").pipe(oe(i=>this.programmeComponentService.getProgrammesByOrganizationId(e.organisationId,"none").pipe(N(o=>({items:o,isL4PATEnabled:i}))))).subscribe({next:({items:i,isL4PATEnabled:o})=>{i.length>0?(this.qualsApproval=i.reduce((d,u)=>{if(u.qualificationGroupName||u.name){let m=this.centre.approvals.find(C=>C.qualificationId===u.programmeComponentId&&(C.status=="Application Pending"||C.status=="Approved"));if(!m)return d;Object.assign(u,{approvalStatus:m.status},{approvalFromDate:m.fromDate},{approvalStatusDate:m.statusDate}),this.approvalsIds.push(u.programmeComponentId);let x=u.qualificationStandardName&&(!o||u.qualificationGroupName!=="Accounting qualifications")?u.qualificationGroupName+" - "+u.qualificationStandardName:u.qualificationGroupName;return(d[x]=d[x]||[]).push(u),d}else return d},{}),Object.keys(this.qualsApproval).length?(this.forbiddenAccess=!1,this.strand=this.generateStrand()):this.forbiddenAccess=!0):this.forbiddenAccess=!0},error:i=>{this.qualsApproval=null,this.forbiddenAccess=!0}})}generateStrand(){let e=me.default.groupBy(this.selectorQuals,"qualificationGroupName");return Object.keys(e).forEach(i=>{e[i]=e[i].reduce((o,d)=>{if(!this.approvalsIds.includes(d.programmeComponentId)&&(d.qualificationStandardName||d.name)){let m=(x=>{if(!this.centre)return[];let C=this.centre.approvals.filter(v=>v.status==="Approved").map(v=>v.qualificationId);return this.qualsApproval[x]&&[].concat(this.qualsApproval[x]).filter(v=>v&&v.status==="Active"&&C.includes(v.programmeComponentId))})("Apprenticeships");return(i!=="Apprenticeships"||m?.length)&&(d.qualificationStandardName?(o[d.qualificationStandardName]=o[d.qualificationStandardName]||[]).push(d):o[d.onlineDisplayName||d.name]=d),o}else return o},{}),(i==="undefined"||me.default.isEmpty(e[i]))&&delete e[i]}),e}showHideChildren(e,i){this.topLevelSelection=i,this.show1stSelectorChildren=e,this.secondLevelSelection=null,this.show2ndSelectorChildren=!1,this.endSelection=null}showHide2ndChildren(e,i){this.secondLevelSelection=i,this.show2ndSelectorChildren=e,this.endSelection=null}select3thChildren(e,i){i?this.endSelection=this.strand[this.topLevelSelection][e]:this.endSelection=this.strand[this.topLevelSelection][this.secondLevelSelection].find(o=>o.name==e)}next(){this.endSelection&&this.routeQuestionConfigurationService.getQuestionsByIndex("programmeComponentId",this.endSelection.programmeComponentId).subscribe({next:e=>{this.tpApprovalsService.qualSelected=this.endSelection,this.tpApprovalsService.questions=e.Items,this.router.navigate(["application"],{relativeTo:this.route})},error:e=>{e.status&&(this.tpApprovalsService.qualSelected=this.endSelection,this.tpApprovalsService.questions=null,this.router.navigate(["application"],{relativeTo:this.route}))}})}cancel(){this.topLevelSelection=null,this.show1stSelectorChildren=!1,this.secondLevelSelection=null,this.show2ndSelectorChildren=!1}sortByStatus(e){let i=o=>
2o.onlineDisplaySequence-(o.approvalStatus==="Application Pending"?1e3:0);return e.sort((o,d)=>i(o)-i(d))}};n.\u0275fac=function(i){return new(i||n)(g(J),g(L),g(P),g(M),g(z),g(Ye))},n.\u0275cmp=T({type:n,selectors:[["qual-approvals-step-1"]],standalone:!1,decls:4,vars:2,consts:[[1,"step-1-page"],[1,"step-1-page__container"],[1,"step-1-page__no-approvals"],[1,"row"],[1,"col-lg-6","col-lg-offset-3","col-md-7","col-md-offset-2","col-sm-9","col-sm-offset-1","col-xs-12","col-xs-offset"],[1,"step-1-page__box"],[1,"row","justify-content-between"],[1,"col-sm-12","step-1-page__subheading"],[1,"col-xs-4","col-sm-4","step-1-page__legend"],[1,"step-1-page__legend--icon-container"],[3,"content"],[1,"step-1-page__box--heading"],[1,"step-1-page__box--quals-group"],[1,"step-1-page__box--qual"],[1,"col-sm-12"],[1,"choose-type"],[1,"choose-type__container"],["type","radio","name","type",1,"choose-type__radio",3,"click","value"],[1,"choose-type__selected"],[1,"choose-type__confirm"],["type","radio","name","subType",1,"choose-type__radio",3,"click","value","checked"],["type","radio","name","lastType",1,"choose-type__radio",3,"click","value","checked"],[1,"col-4"],[3,"enabled","button"],[1,"row","step-1-page__box--qual__container"],[1,"col-xs-11","col-sm-11"],[1,"small-text"],[1,"col-xs-1","col-sm-1"],[1,"step-1-page__box--icon"],[1,"step-1-page__bullet-list"],["href","/about/help-and-support/answers-for-training-providers"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1),f(2,It,28,12,"div"),f(3,Ft,17,0,"div",2),a()()),i&2&&(l(2),_(o.centre&&!o.forbiddenAccess&&!o.isEpaContact()?2:-1),l(),_(o.centre&&o.forbiddenAccess||o.isEpaContact()?3:-1))},dependencies:[V,Pe,Te,qe,ke],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.step-1-page{background-color:#f8f8f8;margin-top:3vh}.step-1-page__bullet-list{padding-top:0}.step-1-page__bullet-list li{list-style:initial;margin-left:20px}.step-1-page__no-approvals{margin-top:30px}.step-1-page__legend{display:flex;align-items:center}.step-1-page__legend--icon-container{width:25px;height:25px}.step-1-page__legend span{margin-left:10px}.step-1-page__subheading h4{font-family:acumin-pro-wide,Arial;color:#000;margin:25px 0}.step-1-page__box--element{padding:20px 15px}.step-1-page__box--element li{list-style:initial;margin-left:20px}.step-1-page__box--element li li{margin-top:5px;margin-bottom:5px}.step-1-page__box{width:100%;font-size:16px;background-color:#f9f9f9;border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:5px;margin:15px 0}@media (min-width: 768px){.step-1-page__box{margin:20px 0}}.step-1-page__box--heading{background-color:#fff;padding:15px;border-bottom:solid thin #e6e6e6;border-radius:5px 5px 0 0/5px 5px 0px 0px}.step-1-page__box--heading p{color:#000;margin:0}.step-1-page__box--quals-group{padding:15px}.step-1-page__box--qual{padding:10px;margin-bottom:10px;background:#fff;border-radius:5px;border:solid thin #e6e6e6}.step-1-page__box--qual p{color:#000;margin:0}.step-1-page__box--qual p.small-text{font-size:12px}.step-1-page__box--qual__container{align-items:center}.step-1-page__box--icon{width:25px;height:25px}.step-1-page__box.no-padding{padding:0}.step-1-page__box--header{padding:20px 15px 0}.step-1-page__box--address{padding:15px;max-width:600px}.step-1-page__box--notification{padding:5px 15px}.step-1-page__box--buttons{padding:20px 25px;display:flex;justify-content:space-between}.choose-type{font-size:14px}.choose-type__notification{margin-bottom:5%}.choose-type h4{margin-bottom:30px}.choose-type .filter-title{font-size:14px}@media (min-width: 992px){.choose-type .filter-title{font-size:18px}}.choose-type label{font-weight:400}.choose-type__container{display:block;position:relative;padding-left:35px;margin-bottom:13px;cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.choose-type__radio{position:absolute;opacity:0;cursor:pointer}.choose-type__radio:focus+.choose-type__selected:before{-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.choose-type__radio:checked~.choose-type__selected{background-color:#00ab4e;border:2px solid #00ab4e}.choose-type__radio:checked~.choose-type__selected:after,.choose-type__radio:checked~.choose-type__selected:before{display:block}.choose-type__selected{box-sizing:content-box;position:absolute;top:0;left:0;height:20px;width:20px;border:solid #000000 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}@media (min-width: 1200px){.choose-type__selected{top:4px}}.choose-type__selected:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;box-sizing:unset}.choose-type__selected:before{content:"";position:absolute;display:none;top:0;left:0;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;box-sizing:unset}.choose-type__confirm{border-left:4px solid #00ab4e;margin:-8px 0 10px 8px;padding:20px 10px 0 35px}@media (min-width: 1200px){.choose-type__confirm{font-size:14px}}.justify-content-between{justify-content:space-between}
3`],encapsulation:2});let t=n;return t})();var Dt=["*"],Mt=t=>({invalid:t});function jt(t,n){if(t&1&&(s(0,"div",6),p(1),a()),t&2){let r=c();l(),S(" ",r.content.validationMessage," ")}}var at=(()=>
3{let n=class n{constructor(){this.agreeEvent=new be,this.confirmed=!1,this.onChange=e=>{},this.onTouched=()=>{}}ngOnInit(){this.formControl?(this.confirmed=this.formControl.value==="true",this.showContent=this.formControl.value==="true",this.confirmed&&this.writeValue(this.confirmed.toString())):this.isChecked&&(this.confirmed=!0,this.showContent=!0)}select(e){this.confirmed=!this.confirmed,this.writeValue(this.confirmed.toString()),this.agreeEvent.emit(this.confirmed)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.onChange(e)}onConfirmKeyDown(e){e.keyCode==13&&e.target.className==="confirm__wrapper"&&this.select(!0)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=T({type:n,selectors:[["app-confirm"]],inputs:{content:"content",formControl:"formControl",showContent:"showContent",isChecked:"isChecked",showError:"showError",id:"id"},outputs:{agreeEvent:"agreeEvent"},standalone:!1,features:[we([{provide:De,useExisting:xe(()=>n),multi:!0}])],ngContentSelectors:Dt,decls:11,vars:11,consts:[["tabindex","0",1,"confirm__wrapper",3,"keydown","ngClass"],[1,"row"],[1,"col-sm-12","col-xs-12","p-2"],["type","checkbox","value","true",1,"confirm__checkbox",3,"click","name","id","checked"],[3,"for"],[1,"col-sm-11","col-xs-10","p-2"],[1,"errorMessage"]],template:function(i,o){i&1&&(Ce(),s(0,"div",0),y("keydown",function(u){return o.onConfirmKeyDown(u)}),s(1,"div",1)(2,"div",2),ye(3),a()(),s(4,"div",1)(5,"div",2)(6,"input",3),y("click",function(){return o.select(!0)}),a(),s(7,"label",4),p(8),a()()()(),s(9,"div",5),f(10,jt,2,1,"div",6),a()),i&2&&(h("ngClass",H(9,Mt,o.showError||!(o.formControl!=null&&o.formControl.valid)&&(o.formControl==null?null:o.formControl.touched))),l(6),h("name",R(o.content.id))("id",Se("",o.id||o.content.id,"-confirmation"))("checked",o.confirmed),l(),h("for",(o.id||o.content.id)+"-confirmation"),l(),S(" ",o.content.label," "),l(2),_(o.showError||o.content.validationMessage&&!(o.formControl!=null&&o.formControl.valid)&&(o.formControl!=null&&o.formControl.touched)?10:-1))},dependencies:[U],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.confirm__wrapper{background:#f9f9f9;padding:10px;border:2px solid rgb(229.5,229.5,229.5)}.confirm__wrapper label{margin-bottom:0}.confirm__checkbox{position:absolute;opacity:0;z-index:999;zoom:1.75}.confirm__checkbox+label{position:relative;cursor:pointer;padding:0;font-weight:500}.confirm__checkbox+label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid rgb(229.5,229.5,229.5);margin-left:0;margin-top:0}.confirm__checkbox:focus+label:before{box-shadow:0 0 #0000001f}.confirm__checkbox:checked+label:before{background:#00ab4e;border:2px solid #00ab4e;margin-left:0;margin-top:-2px}.confirm__checkbox:disabled+label:before{box-shadow:none;background:#dfdfdf}.confirm__checkbox:checked+label:after{content:"";position:absolute;left:5px;top:9px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;transform:rotate(45deg)}.invalid{border-radius:3px;background-color:#fff;border:solid #e22b25}.invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.errorMessage{color:#e22b25;font-weight:600;font-size:14px}.icon{font-size:20px}.icon-error{color:#e22b25}.form_icon{padding-top:8px;padding-left:5px!important}@media (min-width: 1200px){.form_icon{padding-top:10px}}
4`],encapsulation:2});let t=n;return t})();var Nt=t=>({"max-width-120":t});function Ot(t,n){if(t&1){let r=k();s(0,"div",21)(1,"app-confirm",22),y("agreeEvent",function(i){w(r);let o=c(3).$implicit,d=c(3);return q(d.confirmAnswer(i,o.questionTitle))}),b(2,"p",23),a()()}if(t&2){let r=c(3).$implicit,e=c(3);l(),h("content",e.declarationConfirmation)("id","question-"+r.questionId)("showError",e.questionsAnsweredError&&e.form.value[r.questionTitle]!==null&&!e.form.value[r.questionTitle+"_checkbox"]),l(),h("innerHTML",e.generateSubquestions(r.questionTitle),ve)}}function $t(t,n){if(t&1){let r=k();s(0,"div")(1,"div")(2,"label",18),p(3),s(4,"input",19),y("click",function(){let i=w(r),o=i.$implicit,d=i.$index,u=c(2).$implicit,m=c(3);return q(m.selectOption(d,o,u.questionTitle))}),a(),b(5,"span",20),a(),f(6,Ot,3,4,"div",21),a()()}if(t&2){let r=n.$implicit,e=n.$index,i=c(2).$implicit,o=c(3);l(3),S("",r," "),l(),h("name",R(i.questionId))("value",e),l(2),_(o.form.value[i.questionTitle+"_checkbox"]!=null&&r==="Yes"?6:-1)}}function Bt(t,n){if(t&1&&(s(0,"div",17),p(1),a()),t&2){let r=c(2).$implicit,e=c(3);l(),S(" ",(e.form.controls[r.questionTitle]==null||e.form.controls[r.questionTitle].errors==null?null:e.form.controls[r.questionTitle].errors.message)??"Please select an option"," ")}}function zt(t,n){if(t&1&&(s(0,"li",14)(1,"div",15)(2,"p",16)(3,"strong"),p(4),a()(),I(5,$t,7,5,"div",null,A),f(7,Bt,2,1,"div",17),a()()),t&2){let r=c().$implicit,e=c(3);
4l(4),B(r.questionTitle),l(),F(r.answers),l(2),_(e.questionsAnsweredError&&e.form.controls[r.questionTitle].invalid?7:-1)}}function Vt(t,n){if(t&1&&(s(0,"div",17),p(1),a()),t&2){let r=c(2).$implicit,e=c(3);l(),S(" ",e.validationMessages[e.interfaces[r.questionTitle.toLowerCase()].codeType]||""," ")}}function Pt(t,n){if(t&1&&(s(0,"li",14)(1,"div",24),b(2,"fab-input-text-2",25),f(3,Vt,2,1,"div",17),a()()),t&2){let r=c().$implicit,e=c(3);l(),h("ngClass",H(7,Nt,r.questionType==="Date")),l(),h("formControlName",R(r.questionTitle))("content",e.interfaces[r.questionTitle.toLowerCase()])("formControl",e.form.controls[r.questionTitle])("showError",e.questionsAnsweredError&&e.form.value[r.questionTitle]===""),l(),_(e.questionsAnsweredError&&e.form.value[r.questionTitle]===""?3:-1)}}function Rt(t,n){if(t&1&&(s(0,"div",13),f(1,zt,8,2,"li",14)(2,Pt,4,9,"li",14),a()),t&2){let r=n.$implicit;l(),_(r.questionType==="Option List"?1:2)}}function Qt(t,n){if(t&1&&(s(0,"form",2)(1,"div",3)(2,"div",4)(3,"div",3)(4,"div",5)(5,"div",6)(6,"h4")(7,"strong"),p(8),a()(),s(9,"ul"),I(10,Rt,3,1,"div",13,A),a()()()()()()()),t&2){let r=c(2);h("formGroup",r.form),l(8),B(r.questionTitle),l(2),F(r.questions)}}function Yt(t,n){if(t&1){let r=k();s(0,"div"),f(1,Qt,12,2,"form",2),s(2,"div",3)(3,"div",4)(4,"div",3)(5,"div",5)(6,"div",6)(7,"h4")(8,"strong"),p(9,"Declaration"),a()(),s(10,"p"),p(11," By completing and signing this declaration, I confirm that the information provided in this application is to the best of my knowledge correct. "),a(),s(12,"p"),p(13," As an AAT Approved organisation, we will continue to adhere to the Framework Agreement, and we will: "),a(),s(14,"ul",7)(15,"li"),p(16," comply with requests for access to premises, records, information, students and staff by AAT, External Quality Assurers or the appropriate regulatory authorities "),a(),s(17,"li"),p(18,"assist AAT in carrying out any reasonable monitoring activity"),a(),s(19,"li"),p(20," assist any regulator in any investigations made for the purposes of performing its functions. "),a()(),s(21,"app-confirm",8),y("agreeEvent",function(i){w(r);let o=c();return q(o.confirmCheckbox(i))}),a()()()()()(),s(22,"div",3)(23,"div",4)(24,"div",9)(25,"div",10)(26,"a",11),y("click",function(){w(r);let i=c();return q(i.cancel())}),p(27,"Cancel"),a()(),s(28,"div",10),b(29,"fab-button",12),a()()()()()}if(t&2){let r=c();l(),_(r.form?1:-1),l(20),h("showError",r.agreedTermsError)("content",r.declarationConfirmation),l(8),h("button",r.submitButton)}}function Gt(t,n){if(t&1&&(s(0,"div")(1,"div",3)(2,"div",4)(3,"div",3),b(4,"fab-notification",26),a()()()()),t&2){let r=c();l(4),h("isNotificationOpen",!0)("notification",r.warningNotification)}}var st={"66ba836d-07aa-f011-81df-00155d0a7e45":{value:"Yes",errorMessage:"We can't approve you to deliver this qualification if you don't have the staffing and expertise required. Please apply again when you have enough qualified tutors in place"}},lt=(()=>{let n=class n{constructor(e,i,o,d,u){this.tpApprovalsService=e,this.routeQuestionConfigurationService=i,this.router=o,this.route=d,this.formBuilder=u,this.centre=null,this.questions=null,this.questionsAnsweredError=!1,this.subquestions=null,this.isLoading=!0,this.interfaces={},this.agreedTerms=!1,this.agreedTermsError=!1,this.questionTitle="",this.submitFailure=!1,this.submitButton={text:"Submit request",action:{type:"callback",callback:this.submit.bind(this)},type:"primary",aria:"Submit request"},this.warningNotification={type:"warning",message:'Due to a technical error, your application has not been submitted. Please <a href="/centre-services/qualification-approvals/">try again</a> or <a href="/about/help-and-support/answers-for-training-providers">contact us for support</a>.',glyph:"warning",toggleNotification:!0},this.declarationConfirmation={id:"declaration_confirmation",label:"Yes, I agree to the terms above",required:!1,codeType:"checkbox",validationMessage:"Confirm you agree with this declaration"},this.validationMessages={DateBirthText:"Enter a date",Number:"Enter a number"},this.inputTypes={Date:{codeType:"FutureDateText",toolTip:"Format: 30/03/2022",validationMessage:"Please enter a valid a date in this format DD/MM/YYYY",validationBlankMessage:"Enter a date in this format DD/MM/YYYY"},Freetext:{codeType:"AlphaText"},"Multiline Text":{codeType:"AlphaText"},"Whole Number":{codeType:"Number",validationMessage:"Enter numbers only"},"Option List":{codeType:"type"}},this.tpApprovalsService.changeCentre$.subscribe(m=>{m&&(this.centre=m)})}ngOnInit(){this.tpApprovalsService.qualSelected?(this.questionTitle=this.tpApprovalsService.qualSelected.name,this.tpApprovalsService.questions&&(this.questions=this.tpApprovalsService.questions.sort((e,i)=>
4e.questionSetOrder-i.questionSetOrder),this.questions.forEach(e=>{e.questionType=="Option List"||(this.interfaces[e.questionTitle.toLowerCase()]={id:e.questionTitle.toLowerCase(),label:"<strong>"+e.questionTitle+"</strong>",required:!0,codeType:this.inputTypes[e.questionType].codeType,toolTip:this.inputTypes[e.questionType].toolTip||null,validationMessage:this.inputTypes[e.questionType].validationMessage,validationBlankMessage:this.inputTypes[e.questionType].validationBlankMessage})})),this.form=this.buildForm(this.questions)):this.router.navigate(["../"],{relativeTo:this.route})}cancel(){this.router.navigate(["../"],{relativeTo:this.route})}submit(){if(this.agreedTermsError=!this.agreedTerms,this.questions&&this.questions.length&&(this.questionsAnsweredError=!this.form.valid),this.agreedTermsError||this.questionsAnsweredError)return requestAnimationFrame(()=>{document.querySelectorAll(".errorMessage, .form__field-invalid")[0].scrollIntoView({behavior:"smooth",inline:"start",block:"center"})}),!1;this.tpApprovalsService.createApproval(this.form.value).subscribe(e=>{this.router.navigate(["../confirmation"],{relativeTo:this.route})},e=>{console.log(e),this.submitFailure=!0})}buildForm(e){if(e){let i=Object.keys(e).reduce((o,d)=>{let u=e[d],m=u.questionTitle,x=u.routeQuestionConfigurationId;if(u.questionType=="Option List"){let C=[le.required];if(st[x]){let v=st[x];C.push(O=>O.value&&O.value!==v.value?{message:v.errorMessage}:null)}o[m]=[null,C]}else o[m]=[""];return o},{});return this.formBuilder.group(i)}else return this.formBuilder.group({})}confirmCheckbox(e){this.agreedTermsError=!1,this.agreedTerms=e}generateSubquestions(e){switch(e){case"Are you going to be offering this qualification as part of an apprenticeship?":return"Apprentices will need to be in work, which can be part-time, related to the qualification they are studying.";case"Will you be offering this qualification to 16\u201319 year old students in England?":return`It is a requirement for all 16-19 year old students on a study programme of technical education, to undertake meaningful activity involving employers during their study. Activities which are considered meaningful employer engagement are discussed in more detail in the qualification specification. Training providers will be asked to produce a plan of these engagement activities prior to starting delivery of this qualification. The engagement plan and appropriate evidence of activity for each individual student will be verified as part of our on-going quality assurance activities with training providers.
5        <br /><br />
6        Registered training providers will be subject to an annual process of quality assurance. AAT will be checking employer engagement plans and individual records for all 16-19 students from the second term of the first year of delivery. If through our process the engagement is not sufficient and in line with the qualification specification, then a level 2 sanction will be applied, and an action plan implemented. A level 2 sanction is the suspension of the right to claim certification. If through our verification activity we find that requirements for employer engagement is not being met, then assessment results can be overturned and/or certificates recalled.`;case"Are you going to be offering RPL as a form of assessment for this qualification?":return`To offer RPL, you are confirming that you meet AAT's requirements for Assessors and
7        Internal Verifiers, as per the AAT Code of practice and that you will follow the AAT
8        Exemptions and RPL policy.`;default:return!1}}confirmAnswer(e,i){this.form.controls[`${i}_checkbox`].patchValue(e)}selectOption(e,i,o){this.form.patchValue({[o]:i}),i=="Yes"&&this.generateSubquestions(o)?this.form.addControl(`${o}_checkbox`,new Le(!1,le.requiredTrue)):this.form.removeControl(`${o}_checkbox`)}};n.\u0275fac=function(i){return new(i||n)(g(L),g(P),g(M),g(z),g(ze))},n.\u0275cmp=T({type:n,selectors:[["qual-approvals-step-2"]],standalone:!1,decls:4,vars:2,consts:[[1,"step-2-page"],[1,"step-2-page__container"],[3,"formGroup"],[1,"row"],[1,"col-lg-6","col-lg-offset-3","col-md-7","col-md-offset-2","col-sm-9","col-sm-offset-1","col-xs-12","col-xs-offset"],[1,"step-2-page__box"],[1,"step-2-page__box--
8heading"],[1,"step-2-page__box--bullet-list"],[3,"agreeEvent","showError","content"],[1,"row","justify-content-between"],[1,"col-4"],[3,"click"],[3,"button"],[1,"step-2-page__question"],[1,"text-success"],[1,"choose-type"],[1,"choose-type__question-title"],[1,"errorMessage"],[1,"choose-type__container"],["type","radio",1,"choose-type__radio",3,"click","name","value"],[1,"choose-type__selected"],[1,"choose-type__confirm"],[3,"agreeEvent","content","id","showError"],[3,"innerHTML"],[1,"form__input",3,"ngClass"],[3,"content","formControlName","formControl","showError"],[3,"isNotificationOpen","notification"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1),f(2,Yt,30,4,"div"),f(3,Gt,5,2,"div"),a()()),i&2&&(l(2),_(o.centre&&!o.submitFailure?2:-1),l(),_(o.submitFailure?3:-1))},dependencies:[U,Ge,Ne,Me,je,Oe,$e,Be,V,Ue,at],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.step-2-page__question{margin-bottom:25px}.step-2-page__subheading h4{font-family:acumin-pro-wide,Arial;color:#000;margin:25px 0}.step-2-page__box--element{padding:20px 15px}.step-2-page__box--element li{list-style:initial;margin-left:20px}.step-2-page__box--element li li{margin-top:5px;margin-bottom:5px}.step-2-page__box--bullet-list{padding-top:0}.step-2-page__box--bullet-list li{list-style:initial;margin-left:20px}.step-2-page__box{padding:15px;width:100%;font-size:16px;background-color:#f9f9f9;border-style:solid;border-width:thin;border-color:#e6e6e6;background-color:#fff;margin:0 15px 20px}@media (min-width: 768px){.step-2-page__box{margin:20px 0}}.step-2-page__box--quals-group{padding:15px}.step-2-page__box--qual{padding:10px;margin-bottom:10px;background:#fff;border-radius:5px;border:solid thin #e6e6e6}.step-2-page__box--qual p{color:#000;margin:0}.step-2-page__box--qual p.small-text{font-size:12px}.step-2-page__box--qual .icon-success{color:#008048;font-size:28px}.step-2-page__box--icon{margin-top:5px}.step-2-page__box.no-padding{padding:0}.step-2-page__box--header{padding:20px 15px 0}.step-2-page__box--address{padding:15px;max-width:600px}.step-2-page__box--notification{padding:5px 15px}.step-2-page__box--buttons{padding:20px 25px;display:flex;justify-content:space-between}.justify-content-between{justify-content:space-between}.form__input.max-width-120 .form-fieldcontainer{max-width:140px}@media (min-width: 992px){.form__input.max-width-120 .form-fieldcontainer{max-width:165px}}.choose-type__question-title{font-size:14px}@media (min-width: 992px){.choose-type__question-title{font-size:16px}}.choose-type label{font-weight:400}.choose-type__container{display:block;position:relative;padding-left:35px;margin-bottom:13px;cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.choose-type__radio{position:absolute;opacity:0;cursor:pointer}.choose-type__radio:focus+.choose-type__selected:before{-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.choose-type__radio:checked~.choose-type__selected{background-color:#00ab4e;border:2px solid #00ab4e}.choose-type__radio:checked~.choose-type__selected:after,.choose-type__radio:checked~.choose-type__selected:before{display:block}.choose-type__selected{box-sizing:content-box;position:absolute;top:0;left:0;height:20px;width:20px;border:solid #000000 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}@media (min-width: 1200px){.choose-type__selected{top:4px}}.choose-type__selected:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;box-sizing:unset}.choose-type__selected:before{content:"";position:absolute;display:none;top:0;left:0;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;box-sizing:unset}.choose-type__confirm{border-left:4px solid #00ab4e;margin:-8px 0 10px 8px;padding:20px 10px 0 35px}@media (min-width: 1200px){.choose-type__confirm{font-size:14px}}.notification{margin-top:20px}.notification__message a{color:inherit;text-decoration:underline}
9`],encapsulation:2});let t=n;return t})();function Ht(t,n){t&1&&(s(0,"div",3)(1,"div",4)(2,"div",5)(3,"p"),p(4," View the qualifications your centre is approved to offer below, and request to offer additional qual
9ifications in two simple steps. "),a()()()())}function Ut(t,n){if(t&1){let r=k();s(0,"div",3)(1,"div",4)(2,"div",6)(3,"fab-centre-picker",7),y("change",function(i){w(r);let o=c();return q(o.changeCentre(i))}),a()()()()}}function Kt(t,n){t&1&&b(0,"router-outlet")}function Wt(t,n){t&1&&(s(0,"div",3)(1,"div",4),b(2,"fab-loader"),a()())}function Jt(t,n){t&1&&(s(0,"div",3)(1,"div",4)(2,"div",8)(3,"h4")(4,"strong"),p(5,"Sorry, access to this service is restricted."),a()(),s(6,"p"),p(7,"You don't have the correct permissions to access this service. This may be because:"),a(),s(8,"ul",9)(9,"li"),p(10,"You don't have the correct role at your selected centre"),a()(),p(11," Try selecting a different centre from the drop-down (if applicable), or if you think you should have access, please "),s(12,"a",10),p(13,"contact us"),a(),p(14,". "),a()()())}var pt=(()=>{let n=class n{constructor(e,i,o,d){this.centreService=e,this.tpApprovalsService=i,this.contactService=o,this.router=d,this.changeCentreEvent=new fe,this.qualsApproval=[],this.centre=null,this.strand=null,this.approvalsIds=[],this.selectorQuals=null,this.questions=null,this.isLoading=!0,this.hideElements=!1,this.hasAccess=!1,this.url=[],this.isAdmin=()=>this.contactService.contactGroups().some(u=>this.adminRoles.includes(u)),this.adminRoles=["admin","staff"],this.standardHeroData={title:"Qualification approvals",expanded:!1,toplineLink:null,authorline:null,sponsorshipDetails:null,isContentDetail:!1,isContentArticle:!1,align:"left"},this.deleteConfirmationInterface={id:"confirmation_selection",label:"Yes, I agree to the terms above ",required:!1,codeType:"checkbox"},this.router.events.subscribe(u=>{u instanceof Ae?u.routerEvent instanceof ae&&(this.url=u.routerEvent.url.split("/")):u instanceof ae&&(this.url=u.url.split("/"))})}ngOnInit(){window.onbeforeunload=()=>this.ngOnDestroy()}ngOnDestroy(){}changeCentre(e){if(e&&e.organisationId){this.isLoading=!0;let i=e.role?e.role.split(", "):[];this.hasAccess=i.includes("TP Main Contact")||this.isAdmin(),this.centreService.getCentre(e.organisationId).subscribe(o=>{this.centre=o,this.isLoading=!1,this.tpApprovalsService.setCentre(o,e.role)})}}confirmCheckBox(){}};n.\u0275fac=function(i){return new(i||n)(g(tt),g(L),g(Qe),g(M))},n.\u0275cmp=T({type:n,selectors:[["app-tp-approvals"]],standalone:!1,decls:8,vars:6,consts:[[1,"tp-approvals-page"],[3,"content"],[1,"tp-approvals-page__container"],[1,"row"],[1,"col-lg-6","col-lg-offset-3","col-md-7","col-md-offset-2","col-sm-9","col-sm-offset-1","col-xs-12","col-xs-offset"],[1,"tp-approvals-page__top-text"],[1,"tp-approvals-page__centre-picker"],["userGroup","trainingprovider",3,"change"],[1,"tp-approvals-page__access-denied"],[1,"tp-approvals-page__bullet-list"],["href","/about/help-and-support/answers-for-training-providers"]],template:function(i,o){i&1&&(s(0,"div",0),b(1,"fab-standard-hero",1),s(2,"div",2),f(3,Ht,5,0,"div",3),f(4,Ut,4,0,"div",3),f(5,Kt,1,0,"router-outlet"),f(6,Wt,3,0,"div",3),f(7,Jt,15,0,"div",3),a()()),i&2&&(l(),h("content",o.standardHeroData),l(2),_((o.url==null?null:o.url.length)===3?3:-1),l(),_(o.url!=null&&o.url.length&&o.url[3]!=="confirmation"?4:-1),l(),_(!o.isLoading&&o.hasAccess?5:-1),l(),_(o.isLoading?6:-1),l(),_(!o.isLoading&&!o.hasAccess?7:-1))},dependencies:[Ie,Ze,Xe,We],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tp-approvals-page{background-color:#f8f8f8;min-height:100vh;padding-bottom:5vh}.tp-approvals-page .standard-hero{background-color:#e6e6e6}.tp-approvals-page__notification{margin-bottom:25px}.tp-approvals-page__legend span{margin-left:10px}.tp-approvals-page__legend .icon-success{color:#008048;font-size:20px}.tp-approvals-page__subheading h4{font-family:acumin-pro-wide,Arial;color:#000;margin:25px 0}.tp-approvals-page__container{padding:15px}.tp-approvals-page__bullet-list{padding-top:0}.tp-approvals-page__bullet-list li{list-style:initial;margin-left:20px}.tp-approvals-page__access-denied{margin-top:50px;padding:15px;background-color:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}
10`],encapsulation:2});let t=n;return t})();var Xt=[{path:"",component:pt,children:[{path:"",component:rt},{path:"application",component:lt},{path:"confirmation",component:ot}]}],ct=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=G({type:n}),n.\u0275inj=Y({imports:[se.forChild(Xt),se]});let t=n;return t})();var Yi=(()=>{let n=class n{static forRoot(e){return{ngModule:n,providers:[{provide:"tp-approvals-Config",useValue:e}]}}};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=G({type:n}),n.\u0275inj=Y({imports:[Ee,ct,et,He,it,Ke,Je,Re,V]});let t=n;return t})();export{Yi as TpApprovalsModule};

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.