PageSourceSearch

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

js aat.org.uk collected 2026-10-03 21:38:57 UTC 13,980 bytes, 2 lines download raw bytes

1import{a as me}from"./chunk-GTQJDIJT.js";import{a as de,m as ue}from"./chunk-QJJDLPQ3.js";import{a as F}from"./chunk-AKWG4KM7.js";import"./chunk-SEDYUPGI.js";import"./chunk-JEL6HJ7P.js";import{Ic as re,Jc as se,Mb as ae,Nb as oe,Qb as ne,Rc as ce,Sc as g,Tc as y,Ua as K,Wc as v,Ya as X,_ as $,_c as le,gb as ee,ib as te,ma as Q,q as Z,ub as ie}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{a as N,b as U,c as Y,d as T,e as I,k as j}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{j as J}from"./chunk-PO2RDVKE.js";import{Bc as D,E as b,J as z,Oc as W,Pb as _,Rb as k,W as q,Wb as w,Xb as m,Yb as l,Zb as h,bb as V,ca as G,da as A,db as c,ga as x,jc as E,lc as R,n as u,pb as C,s as B,ub as L,vb as P,y as S,zc as p}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var s=(function(e){return e[e.AuthorizationCheckFailed=1001]="AuthorizationCheckFailed",e[e.NoConnectedCentres=1002]="NoConnectedCentres",e[e.CentreLookupFailed=1003]="CentreLookupFailed",e[e.QualificationLookupFailed=1004]="QualificationLookupFailed",e[e.NoEligibleQualifications=1005]="NoEligibleQualifications",e[e.SelectedCentreHasNoEligibleQualifications=1006]="SelectedCentreHasNoEligibleQualifications",e[e.SelectedCentreRoleNotAllowed=1007]="SelectedCentreRoleNotAllowed",e})(s||{});var be=e=>({hidden:e});function Ce(e,t){e&1&&h(0,"fab-loader")}function _e(e,t){e&1&&h(0,"router-outlet")}function ke(e,t){e&1&&h(0,"fab-loader")}function xe(e,t){if(e&1&&(m(0,"div",10)(1,"code"),p(2),l(),h(3,"br"),m(4,"code"),p(5),l()()),e&2){let M=R(2);c(2),D("Error code: ",M.accessErrorCode),c(3),D("Timestamp: ",M.accessErrorTimestamp)}}function Me(e,t){if(e&1&&(m(0,"div")(1,"h3"),p(2,"Sorry, access to this service is restricted"),l(),m(3,"p"),p(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. "),l(),m(5,"p"),p(6," Try selecting a different centre from the drop-down (if applicable), or if you think you should have access, please "),m(7,"a",9),p(8,"contact us"),l(),p(9,". "),l(),_(10,xe,6,2,"div",10),l()),e&2){let M=R();c(10),k(M.accessErrorCode?10:-1)}}var fe=(()=>{let t=class t{onResize(i){window.innerWidth<600?this.myQualificationsLayoutService.setDevice("mobile"):this.myQualificationsLayoutService.setDevice("desktop")}constructor(i,a,o,d,n){this.route=i,this.router=a,this.myQualificationsLayoutService=o,this.centreService=d,this.programmeComponentService=n,this.soaQuals=[],this.roles=[],this.standardHeroData={title:"Qualification approvals",expanded:!1,toplineLink:null,authorline:null,sponsorshipDetails:null,isContentDetail:!1,isContentArticle:!1,align:"left"},this.tabsBlock={title:"",imagePosition:"right",hideContent:!0,tabData:[{name:"Unset",path:"results"}]},this.tabIndex=0,this.isAdmin=!1,this.hasAccess=null,this.accessErrorCode=null,this.accessErrorTimestamp=null,this.isLoadingCentrePicker=!0,this.isLoadingContent=!0,this.userLoaded=!1,this.hero={title:"Manage contacts",content:"Search by a member ID, contact ID or Email to find a contact",expanded:!1},this.router.events.subscribe(f=>{if(this.tabsBlock.tabData=this.getRoutes().map(r=>({name:r.data.tabTitle,path:r.path})),f instanceof N||f instanceof U&&f.routerEvent instanceof N){let r=this.route.snapshot.firstChild.data;this.tabIndex=this.tabsBlock.tabData.findIndex(ye=>ye.path===this.route.snapshot.firstChild.url[0].path),this.standardHeroData.title=r.title,this.standardHeroData.content=r.content,this.allowedRoles=r.centrePickerRoles,this.centre&&(this.isLoadingContent=!1,this.checkAccess())}})}getRoutes(){return this.route.routeConfig.children.filter(i=>!!i.data&&!!i.data.title&&!!i.data.tabTitle)}ngOnInit(){window.innerWidth<600?this.myQualificationsLayoutService.setDevice("mobile"):this.myQualificationsLayoutService.setDevice("desktop"),this.myQualificationsLayoutService.isAdmin()&&(this.isAdmin=!0)}changeActiveTab(i){this.isLoadingContent=!0,this.router.navigate([`${i}`],{relativeTo:this.route})}changeCentre(i){this.isLoadingCentrePicker=!1,this.accessErrorCode=null,this.accessErrorTimestamp=null,i&&i.organisationId&&S([this.centreService.getCentre(i.organisationId),this.programmeComponentService.getProgrammesByOrganizationId(i.organisationId,"none").pipe(b(()=>(this.accessErrorCode=s.QualificationLookupFailed,this.accessErrorTimestamp=new Date().toISOString(),u([]))))]).subscribe(([a,o])=>{this.centre=a;let d=["Approved","Conditionally Approved"];this.roles=i.role?i.role.split(", "):[],this.soaQuals=o.filter(n=>n.statementOfAchievement&&!["2013","2013 (New Zealand)","2012","2010"].includes(n.qual
1ificationStandardName)&&this.centre.approvals.some(f=>f.qualificationId===n.programmeComponentId&&d.includes(f.status))),this.isLoadingContent=!1,this.checkAccess()})}checkAccess(){let i=this.soaQuals?.length>0,a=this.myQualificationsLayoutService.isAdmin()||this.roles.some(o=>this.allowedRoles.includes(o));this.accessErrorCode!==s.QualificationLookupFailed&&(this.accessErrorCode=i?a?null:s.SelectedCentreRoleNotAllowed:s.SelectedCentreHasNoEligibleQualifications),this.hasAccess=this.accessErrorCode===null,this.accessErrorTimestamp=this.hasAccess?null:this.accessErrorTimestamp??new Date().toISOString(),this.myQualificationsLayoutService.setCentre(this.centre,this.roles,this.soaQuals)}};t.\u0275fac=function(a){return new(a||t)(C(Y),C(I),C(me),C(F),C(Q))},t.\u0275cmp=L({type:t,selectors:[["app-my-qualifications-layout"]],hostBindings:function(a,o){a&1&&E("resize",function(n){return o.onResize(n)},V)},standalone:!1,decls:13,vars:10,consts:[[1,"my-qualifications-layout"],[3,"content"],[1,"my-qualifications-layout__centre-picker",3,"ngClass"],["userGroup","trainingprovider",3,"change"],[1,"container-fluid"],[1,"row"],[1,"col-lg-6","col-lg-offset-3","col-md-8","col-md-offset-2","col-xs-12"],[1,"my-qualifications-layout__container"],[3,"changeActiveTab","content","index"],["href","/about/help-and-support/answers-for-training-providers"],[1,"access-reference"]],template:function(a,o){a&1&&(m(0,"div",0)(1,"fab-standard-hero",1),_(2,Ce,1,0,"fab-loader"),m(3,"div",2)(4,"fab-centre-picker",3),E("change",function(n){return o.changeCentre(n)}),l()()(),m(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"fab-tabs-block",8),E("changeActiveTab",function(n){return o.changeActiveTab(n)}),l(),_(10,_e,1,0,"router-outlet"),_(11,ke,1,0,"fab-loader"),_(12,Me,11,1,"div"),l()()()()()),a&2&&(c(),w("content",o.standardHeroData),c(),k(o.isLoadingCentrePicker?2:-1),c(),w("ngClass",W(8,be,o.isLoadingCentrePicker)),c(6),w("content",o.tabsBlock)("index",o.tabIndex),c(),k(o.centre&&!o.isLoadingContent&&o.hasAccess?10:-1),c(),k(o.isLoadingContent?11:-1),c(),k(o.hasAccess===!1?12:-1))},dependencies:[T,J,ie,ee,ae,re],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.my-qualifications-layout__centre-picker .centre-picker{margin-top:30px;border:1px solid rgb(34.425,34.425,34.425);background-color:inherit}.my-qualifications-layout__centre-picker .admin-select input{background-color:inherit;border:none}.my-qualifications-layout__centre-picker .admin-select li:first-child,.my-qualifications-layout__centre-picker .admin-select ul:hover li:hover{background-color:#f9f9f9}.my-qualifications-layout__centre-picker.hidden{display:none!important}.my-qualifications-layout .standard-hero{background-color:#e6e6e6}.my-qualifications-layout .tabs-block__tabs{border-top:0;border-bottom:0;font-size:.8em;font-weight:600;color:#00ab4e;margin:-10px 0 20px}.my-qualifications-layout .tabs-block__tabs--tab{padding:10px;margin-right:30px}.my-qualifications-layout .tabs-block__tabs .tab-selected{color:#0a5c50;border-bottom:4px solid #0a5c50}.my-qualifications-layout__container{background-color:#fff;border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:2px;margin:10px;padding:0 10px 10px}@media (min-width: 992px){.my-qualifications-layout__container{margin:20px}}@media (min-width: 1200px){.my-qualifications-layout__container{margin:10px}}.my-qualifications-layout__container .standard-hero{margin:0 -25px}@media (min-width: 992px){.my-qualifications-layout .tabs-block__tabs{margin:-10px -10px 20px}.my-qualifications-layout__container{padding:0 25px 25px}}.my-qualifications-layout fab-loader .loading{min-height:auto}.my-qualifications-layout .access-reference{text-align:center}.my-qualifications-layout .access-reference code{color:inherit;font-family:monospace;font-weight:400}.container-fluid{padding-left:0;padding-right:0}ngb-datepicker .btn-link{color:#00ab4e}ngb-datepicker .ngb-dp-weekday{color:#00ab4e;font-style:inherit}ngb-datepicker .bg-primary{background-color:#00ab4e!important}ngb-datepicker button{outline:none}.main-panel{background-color:#f9f9f9;max-height:initial;height:initial}
2`],encapsulation:2});let e=t;return e})();var H=(()=>{let t=class t{constructor(i,a,o,d){this.router=i,this.authService=a,this.centrePickerService=o,this.programmeComponentService=d}canActivate(){return this.authService.isAllowed(["admin","staff"],"cognito:groups").pipe(z(1),q(i=>i?u(!0):this.centrePickerService.getCentreList().pipe(q(a=>{let o=Array.isArray(a)?a:a?.data??[];if(o.length===0)return u(this.denyAccess(s.NoConnectedCentres));let d=o.map(n=>this.programmeComponentService.getProgrammesByOrganizationId(n.organisationId,"none").pipe(b(()=>u(null))));return S(d).pipe(B(n=>n.flatMap(r=>r??[]).some(r=>r.statementOfAchievement)?!0:this.denyAccess(n.some(r=>r===null)?s.QualificationLookupFailed:s.NoEligibleQualifications)))}),b(()=>u(this.denyAccess(s.CentreLookupFailed))))),b(()=>u(this.denyAccess(s.AuthorizationCheckFailed))))}denyAccess(i){return this.router.navigate(["/error/403"],{queryParams:{code:i}}),!1}};t.\u0275fac=function(a){return new(a||t)(x(I),x(Z),x($),x(Q))},t.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Se=[{path:"",canActivate:[ce],children:[{path:"admin",loadChildren:()=>import("./chunk-V6U7F73A.js").then(e=>e.AdminModule)},{path:"qualification-approvals",data:{featureFlag:"QualificationApprovals",title:"Administer Training Providers and Assessment Venues",description:"Perform administration tasks on Training Providers and Assessment Venues",groups:["admin","staff","trainingprovider","trainingprovider-epa"],roles:["tp_main_contact"]},canActivate:[g,y,v],loadChildren:()=>import("./chunk-D3OEK4NM.js").then(e=>e.TpApprovalsModule)},{path:"qualifications",component:fe,canActivate:[H],children:[{path:"",redirectTo:"results",pathMatch:"full"},{path:"results",data:{featureFlag:"CAR",title:"Centre assessment results",content:"",tabTitle:"Results",groups:["admin","staff","trainingprovider","trainingprovider-epa"],roles:["tp_main_contact","tutor","exams_officer","epa_centre_contact","assessor","internal_verifier"],centrePickerRoles:["TP Main Contact","Tutor","Exams Officer","EPA centre c
2ontact","Assessor","Internal Verifier"]},canActivate:[g,y,v],loadChildren:()=>import("./chunk-25CX256L.js").then(e=>e.CarModule)},{path:"statements",data:{featureFlag:"CSOA",title:"Centre statements of achievement",content:"",tabTitle:"Statements of Achievement",groups:["admin","staff","trainingprovider","trainingprovider-epa"],roles:["tp_main_contact","tutor","exams_officer","epa_centre_contact"],centrePickerRoles:["TP Main Contact","Tutor","Exams Officer","EPA centre contact"]},canActivate:[g,y,v],loadChildren:()=>import("./chunk-HMGPRU4J.js").then(e=>e.CsoaModule)}]},{path:"view-and-remove",canActivate:[g,y,v],data:{featureFlag:"ViewAndRemove",groups:["admin","staff","trainingprovider","trainingprovider-epa"],roles:["tp_main_contact","tutor","exams_officer","epa_centre_contact"]},loadChildren:()=>import("./chunk-FTXTYKBF.js").then(e=>e.ViewAndRemoveModule)},{path:"payment-code",data:{featureFlag:"PaymentCodes",paymentCodeType:le.TrainingProvider,title:"Payment codes",groups:["admin","staff","trainingprovider","trainingprovider-epa"],roles:["tp_main_contact","tutor","exams_officer"]},canActivate:[H,g,y,v],loadChildren:()=>import("./chunk-KKEES23H.js").then(e=>e.PaymentCodesModule)},{path:"manage-staff-access",data:{featureFlag:"ManageStaffAccess",groups:["admin","staff","trainingprovider"],roles:["tp_main_contact","main_contact_eav","tp_admin","assessment_venue_admin"]},canActivate:[g,y,v],loadChildren:()=>import("./chunk-ED5LMXIG.js").then(e=>e.ManageTpStaffAccessRoutingModule)},{path:"incident-reporting",loadChildren:()=>import("./chunk-BCHT3R2T.js")},{path:"",loadChildren:()=>import("./chunk-5LJBVLKC.js").then(e=>e.CentreEditorModule)}]}],he=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=P({type:t}),t.\u0275inj=A({providers:[F,de],imports:[j.forChild(Se),j]});let e=t;return e})();var ge=(()=>{let t=class t{constructor(){this.title="Centre console"}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=L({type:t,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(a,o){a&1&&h(0,"router-outlet")},dependencies:[T],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}[_nghost-%COMP%]   .ag-popup-editor[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{background:#fff;border:0px solid black;color:#333;border-radius:0}[_nghost-%COMP%]   .ag-popup-editor[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{background:#00ab4e;border:0px solid black;color:#fff}[_nghost-%COMP%]   .ag-popup-editor[_ngcontent-%COMP%]   .btn.disabled[_ngcontent-%COMP%]{background:#efefef;border:0px solid black;color:#777}[_nghost-%COMP%]   .ag-popup-editor[_ngcontent-%COMP%]   .btn.pull-right[_ngcontent-%COMP%]{float:right}"]});let e=t;return e})();var Xe=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=P({type:t,bootstrap:[ge]}),t.\u0275inj=A({imports:[he,ue,ne,K,oe,X,te,se]});let e=t;return e})();export{Xe as ISAConsoleAppModule};

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.