PageSourceSearch

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

js aat.org.uk collected 2026-10-03 21:40:34 UTC 30,862 bytes, 2 lines download raw bytes

1import{a as at}from"./chunk-GTQJDIJT.js";import{a as rt}from"./chunk-JRPFWWR4.js";import{a as ot}from"./chunk-AKWG4KM7.js";import{a as et,b as tt}from"./chunk-2L7BC3FF.js";import{a as nt}from"./chunk-55GE6EZC.js";import{a as it}from"./chunk-VB42UNIA.js";import"./chunk-IIDFP7RX.js";import"./chunk-W3NEESNH.js";import{a as N}from"./chunk-JEL6HJ7P.js";import{Da as Qe,Ea as qe,F as Le,L as ee,Qa as je,Ua as Ne,V as Ve,Va as ze,W as Oe,Wa as He,Xa as $e,Ya as Ge,c as De,gb as Ue,hb as We,ib as Ye,jb as Ke,lc as Je,mc as Xe,n as q,nc as Ze,o as Pe,ra as Re,sa as j}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import{ra as Me,sa as Fe}from"./chunk-WPHW6CRH.js";import{K as Ae,h as Ie,o as Be}from"./chunk-76O7YCWW.js";import{e as ke,f as Ee,g as Te,k as Z}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import{a as we,c as Se}from"./chunk-LU7SZU5X.js";import{A as be,j as xe,q as ve,t as L,z as ye}from"./chunk-PO2RDVKE.js";import{A as ie,Ab as se,Ac as T,Bc as P,Cc as me,Dc as ue,E as I,Ec as K,Fc as J,Gc as X,J as G,N as ne,Nc as y,Oc as _e,Pb as u,Pc as he,Rb as _,Tb as A,Tc as w,Ub as M,Uc as fe,Vb as F,Vc as D,W as U,Wb as m,Wc as ge,Xb as a,Yb as o,Yc as Ce,Za as Y,Zb as v,ca as oe,da as O,db as l,ec as S,ga as W,ib as ae,jc as C,lc as d,o as V,oa as h,pa as f,pb as b,pc as le,qc as ce,rc as de,s as E,ub as re,uc as Q,vb as R,wc as pe,zc as c}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var st=(()=>{let s=class s{constructor(n,t){this.http=n,this.ssrCookieService=t}createHeaders(){return{headers:new we({"Content-Type":"application/json",Authorization:this.ssrCookieService.get("access_token")})}}getCsoaData(n){return this.http.post(N.API_URL+"/unit-progress/tp/statement-of-achievementv3",n,this.createHeaders()).pipe(I(t=>(console.log(t),V(t))),E(t=>(t&&t.history&&(t.history.length===0?t.history=null:t.history.sort((r,p)=>new Date(r.dateOfResult).getTime()-new Date(p.dateOfResult).getTime())),t)))}getSoaData(n){return this.http.post(N.API_URL+"/unit-progress/statement-of-achievement",n,this.createHeaders()).pipe(I(t=>(console.log(t),V(t))))}getFilters(n){return this.http.get(N.API_URL+"/unit-progress/filters/"+n,this.createHeaders()).pipe(I(t=>(console.log(t),V(t))))}};s.\u0275fac=function(t){return new(t||s)(W(Se),W(De))},s.\u0275prov=oe({token:s,factory:s.\u0275fac,providedIn:"root"});let i=s;return i})();var H=()=>["/centre-services/qualifications/results"],ut=()=>["/my-qualifications/grade-calculator"],_t=i=>({mobile:i}),ht=()=>["Not yet achieved","Not Yet Competent"],B=()=>["Achieved","Competent"],ft=(i,s)=>({"icon icon-success":i,"icon icon-minus":s});function gt(i,s){if(i&1){let e=S();a(0,"div",5)(1,"p"),c(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 "),a(3,"a",10),c(4," AAT's terms and conditions "),o(),c(5," and the contractual agreements between AAT and your employing organisation. "),o(),a(6,"fab-input-checkbox",11),C("onChange",function(){h(e);let t=d();return f(t.confirmCsvDownloadCheck())}),X("isCheckedChange",function(t){h(e);let r=d();return J(r.confirmCsvButtonEnabled,t)||(r.confirmCsvButtonEnabled=t),f(t)}),o(),v(7,"br")(8,"fab-button",12),o()}if(i&2){let e=d();l(6),m("content",e.confirmCsvCheckBox),K("isChecked",e.confirmCsvButtonEnabled),l(2),m("enabled",e.confirmCsvButtonEnabled)("button",e.confirmDownloadCsvButton)}}function Ct(i,s){if(i&1){let e=S();a(0,"div",8)(1,"fab-qualification-picker",13),C("selected",function(t){h(e);let r=d();return f(r.onQualChange(t.programmeComponentId))}),o(),a(2,"p"),c(3,"Statements will load below when you've selected a qualification."),o()()}if(i&2){let e=d();l(),m("nodes",e.qualPickerContent)}}function xt(i,s){i&1&&(a(0,"div",9)(1,"h4")(2,"strong"),c(3,"No statements available"),o()(),a(4,"p")(5,"a",7),c(6,"You can view all of your students' results on centre assessment results."),o()()()),i&2&&(l(5),m("routerLink",y(1,H)))}function vt(i,s){if(i&1){let e=S();a(0,"li",32),C("mousedown",function(){let t=h(e).$index;d();let r=Q(10);return f(r.selectSuggestion(t))}),v(1,"span",33),w(2,"textHighlight"),v(3,"span",33),w(4,"textHighlight"),o()}if(i&2){let e=s.$implicit,n=s.$index;d();let t=Q(10);pe("selected",t.currentSuggestionIndex==n),l(),m("innerHTML",D(2,4,e.name,t.inputValue),Y),l(2),m("innerHTML",D(4,7,e.memberId,t.inputValue),Y)}}
1function yt(i,s){if(i&1){let e=S();a(0,"div",34)(1,"div",35)(2,"p-button",36),C("click",function(t){let r=h(e).clearCallback;return f(r(t))}),o()(),a(3,"div",37)(4,"p-button",38),C("click",function(){h(e);let t=d(3);return f(t.onPresetRangeSelection("days",0))}),o()(),a(5,"div",39)(6,"p-button",40),C("click",function(){h(e);let t=d(3);return f(t.onPresetRangeSelection("days",7))}),o(),a(7,"p-button",41),C("click",function(){h(e);let t=d(3);return f(t.onPresetRangeSelection("days",30))}),o()(),a(8,"div",39)(9,"p-button",42),C("click",function(){h(e);let t=d(3);return f(t.onPresetRangeSelection("thisMonth"))}),o(),a(10,"p-button",43),C("click",function(){h(e);let t=d(3);return f(t.onPresetRangeSelection("lastMonth"))}),o()()()}}function bt(i,s){if(i&1&&(a(0,"div",45)(1,"span"),c(2),o()()),i&2){let e=s.$implicit;l(2),T(e)}}function wt(i,s){if(i&1&&(a(0,"div")(1,"p"),c(2,"Students:"),o(),a(3,"div",44),M(4,bt,3,1,"div",45,A),o()()),i&2){let e=d(4);l(4),F(e.studentsDisplayed)}}function St(i,s){if(i&1&&(a(0,"div")(1,"div")(2,"p"),c(3,"Date:"),o()(),a(4,"span"),c(5),w(6,"date"),w(7,"date"),o()()),i&2){let e=d(4);l(5),ue("",e.datesFilteredBy[1]?"from: ":"","",D(6,3,e.datesFilteredBy[0],"dd/MM/yyyy"),"",e.datesFilteredBy[1]?" to: "+D(7,6,e.datesFilteredBy[1],"dd/MM/yyy"):"")}}function kt(i,s){if(i&1&&(a(0,"div",30)(1,"p",16)(2,"strong"),c(3,"Filters applied"),o()(),u(4,wt,6,0,"div"),u(5,St,8,9,"div"),o()),i&2){let e=d(3);l(4),_(e.studentsDisplayed&&e.studentsDisplayed.length>0?4:-1),l(),_(e.datesFilteredBy!=null&&e.datesFilteredBy[0]?5:-1)}}function Et(i,s){if(i&1){let e=S();a(0,"div",31),v(1,"fab-button",12),a(2,"div")(3,"a",46),C("click",function(){h(e);let t=d(3);return f(t.resetFilters())}),c(4,"Clear filters"),v(5,"i",47),o()()()}if(i&2){let e=d(3);l(),m("enabled",!0)("button",e.applyFiltersButton)}}function Tt(i,s){if(i&1){let e=S();a(0,"div",14)(1,"h4",16)(2,"strong"),c(3,"Filter statements"),o()(),a(4,"div",17)(5,"div",18)(6,"div",19)(7,"label"),c(8,"Filter by student names/IDs"),o(),a(9,"fab-autocomplete-multiselect",20,0),C("onChange",function(t){h(e);let r=d(2);return f(r.onStudentPickerChange(t))}),a(11,"ul"),M(12,vt,5,10,"li",21,A),w(14,"slice"),o()(),a(15,"div",22),c(16,"You can select multiple students"),o()()(),a(17,"div",23)(18,"div",24)(19,"p-floatlabel",25)(20,"p-datepicker",26,1),C("ngModelChange",function(t){h(e);let r=d(2);return f(r.dateChanged(t))}),se(22,yt,11,0,"ng-template",null,2,Ce),o(),a(24,"label",27),c(25,"Filter by date range"),o()()(),a(26,"div",24)(27,"fab-input-checkbox",28),X("isCheckedChange",function(t){h(e);let r=d(2);return J(r.showOriginalGrade,t)||(r.showOriginalGrade=t),f(t)}),C("onChange",function(){h(e);let t=d(2);return f(t.filtersApplied=!0)}),o()()()(),a(28,"div",29),u(29,kt,6,2,"div",30),o(),a(30,"div",29),u(31,Et,6,2,"div",31),o()()}if(i&2){let e=Q(10),n=d(2);l(9),m("config",n.studentPickerConfig),l(3),F(ge(14,10,e.suggestions,0,10)),l(8),m("ngModel",n.dateSelection)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("maxDate",n.todayDate),l(7),m("content",n.originalGradeCheckboxContent),K("isChecked",n.showOriginalGrade),l(2),_(n.filtersApplied&&(n.studentsDisplayed&&n.studentsDisplayed.length>0||n.datesFilteredBy!=null&&n.datesFilteredBy[0])?29:-1),l(2),_(n.filtersApplied?31:-1)}}function Dt(i,s){i&1&&v(0,"fab-loader")}function It(i,s){i&1&&(a(0,"div",9)(1,"h4")(2,"strong"),c(3,"No statements available"),o()(),a(4,"p"),c(5," This may be because there are no students registered on this qualification or none of the students at your centre have achieved any units within this qualification yet. "),o(),a(6,"p"),c(7,"Try selecting a different qualification, amending or clearing any filters applied."),o(),a(8,"p")(9,"a",7),c(10,"Alternatively, you can view all of your students' results on centre assessment results."),o()()()),i&2&&(l(9),m("routerLink",y(1,H)))}function Bt(i,s){i&1&&(a(0,"div")(1,"p"),c(2," For AAT Level 3 Diploma in Accounting, you\u2019ll see two versions of the Tax unit: Tax Processes for Businesses and Botswana Tax Processes for Businesses . A student will need to have achieved at least one of the versions to be awarded the qualification. "),o(),a(3,"p"),c(4," If a student has taken both versions of the Tax unit (UK and Botswana localised version), the highest percentage score achieved out of the two will contribute to their grade. "),o()())}
1function At(i,s){if(i&1&&(a(0,"div",55)(1,"span"),c(2,"Award date "),a(3,"strong"),c(4),w(5,"date"),o()()()),i&2){let e=d().$implicit,n=d(3);l(4),T(D(5,1,(n.showOriginalGrade&&e.history?e.history[0].dateOfResult:null)||e.achievedDate,"dd MMMM yyyy"))}}function Mt(i,s){if(i&1&&(a(0,"div")(1,"p"),c(2,"Grade"),o(),a(3,"p",62),c(4),o()()),i&2){let e=d().$implicit,n=d(3);l(4),P(" ",(n.showOriginalGrade&&e.history?e.history[0].grade:null)||e.grade," ")}}function Ft(i,s){if(i&1&&(a(0,"div",61),c(1," Completion centre "),a(2,"strong"),c(3),o()()),i&2){let e=d().$implicit;l(3),T(e.registeredTrainingProviderName)}}function Pt(i,s){if(i&1&&(a(0,"div",68)(1,"div"),c(2),o(),a(3,"div"),c(4),o()()),i&2){let e=s.$implicit;l(2),T(e.localCode),l(2),P(" ",e.competencyChar||e.percentage," ")}}function Lt(i,s){if(i&1&&(a(0,"div",63),M(1,Pt,5,2,"div",68,A),o()),i&2){let e=d(2).$implicit,n=d(3);l(),F(n.accordionData[e.contactId][e.programmeComponentId].allUnitResults)}}function Vt(i,s){if(i&1&&(a(0,"div",64),c(1," Original grade: "),a(2,"strong"),c(3),o(),c(4),w(5,"date"),o()),i&2){let e=d(2).$implicit;l(3),T(e.history[0].grade),l(),P(" ",D(5,2,e.history[0].dateOfResult,"dd MMMM yyyy")," ")}}function Ot(i,s){i&1&&(a(0,"div",65),c(1," The End Point Assessment (EPA) achievement will only show once both EPA components have been achieved. "),o())}function Rt(i,s){if(i&1&&(u(0,Lt,3,0,"div",63),u(1,Vt,6,5,"div",64),u(2,Ot,2,0,"div",65),a(3,"div",66),v(4,"fab-button",67),o()),i&2){let e=d().$implicit,n=d(3);_(e.apprenticeshipQualification?-1:0),l(),_(e.history&&y(5,B).includes(e.competencyStatus)?1:-1),l(),_(e.apprenticeshipQualification&&!y(6,B).includes(e.competencyStatus)?2:-1),l(2),m("enabled",!0)("button",n.getViewStatementButton(e.contactId,e.programmeComponentId))}}function Qt(i,s){i&1&&v(0,"fab-loader")}function qt(i,s){if(i&1){let e=S();a(0,"div",50)(1,"fab-accordion",52),C("onToggle",function(t){let r=h(e).$implicit,p=d(3);return f(p.onAccordionClick(t,r))}),a(2,"div",53)(3,"div",54)(4,"div",55)(5,"p")(6,"strong"),c(7),o()(),a(8,"p"),c(9),o()(),u(10,At,6,4,"div",55),o(),a(11,"div",56)(12,"div",57),u(13,Mt,5,1,"div"),o(),a(14,"div",58)(15,"p"),c(16),o(),v(17,"i",59),o()()(),a(18,"div",60),u(19,Ft,4,1,"div",61),u(20,Rt,5,7)(21,Qt,1,0,"fab-loader"),o()()()}if(i&2){let e=s.$implicit,n=d(3);l(),m("iconArrowLeft",n.iconArrowLeft),l(),m("ngClass",_e(11,_t,!n.iconArrowLeft)),l(5),me("",e.givenName," ",e.familyName),l(2),T(e.memberId),l(),_(e.achievedDate?10:-1),l(3),_(n.currentQualDetails.gradedQualification&&e.grade&&!y(13,ht).includes(e.grade)?13:-1),l(3),P(" ",y(14,B).includes(e.competencyStatus)?"Complete":"In Progress"," "),l(),m("ngClass",he(17,ft,y(15,B).includes(e.competencyStatus),!y(16,B).includes(e.competencyStatus))),l(2),_(e.registeredTrainingProviderName&&y(20,B).includes(e.competencyStatus)?19:-1),l(),_(!(n.accordionData==null||n.accordionData[e.contactId]==null)&&n.accordionData[e.contactId][e.programmeComponentId]?20:21)}}function jt(i,s){if(i&1&&(a(0,"div",51),v(1,"fab-button",12),o()),i&2){let e=d(3);l(),m("enabled",!0)("button",e.loadMoreButton)}}function Nt(i,s){if(i&1&&(a(0,"div",15)(1,"div",48)(2,"h4")(3,"strong"),c(4,"Statements"),o()(),v(5,"fab-button",12),o(),u(6,Bt,5,0,"div"),w(7,"async"),v(8,"fab-notification",49),M(9,qt,22,21,"div",50,A),u(11,jt,2,2,"div",51),o()),i&2){let e=d(2);l(5),m("enabled",!0)("button",e.downloadAllButton),l(),_(fe(7,6,e.isFromBotswanaAndAccountLevel3$)?6:-1),l(2),m("notification",e.infoCSVNotification)("isNotificationOpen",e.infoCSVNotification.isOpened),l(),F(e.results.slice(0,e.limit)),l(2),_(e.resultsPagination||e.results.length>e.limit?11:-1)}}function zt(i,s){if(i&1&&(a(0,"div"),u(1,Tt,32,14,"div",14),u(2,Dt,1,0,"fab-loader"),u(3,It,11,2,"div",9),u(4,Nt,12,8,"div",15),o()),i&2){let e=d();l(),_(!e.isLoading&&e.selectedQual&&e.results&&e.results.length>0||e.filtersApplied?1:-1),l(),_(e.isLoading?2:-1),l(),_(!e.isLoading&&(!e.results||e.results.length===0)?3:-1),l(),_(!e.isLoading&&e.results&&e.results.length>0?4:-1)}}var z=25,lt=(()=>{let s=class s{constructor(n,t,r,p,g,x,k,$,dt){this.router=n,this.unitProgressService=t,this.myQualificationsLayoutService=r,this.contactSearchService=p,this.soaService=g,this.documentGenerationService=x,this.datePipe=k,this.centreService=$,this.qual
1ificationTreeService=dt,this.csoaTabEvent=new ae,this.isFromBotswanaAndAccountLevel3$=this.centreService.centre$.pipe(E(pt=>pt.postalAddress.addressCountry==="BWA"&&this.selectedQual==="c2ebc2de-b834-eb11-810c-005056930a83")),this.resultsPagination=null,this.studentsSelected=[],this.approvedQuals=[],this.resultsLimit=25,this.iconArrowLeft=!1,this.accordionData={},this.showGrade=!1,this.modalOpen=!1,this.confirmCsvButtonEnabled=!1,this.limit=z,this.showLoadMore=!0,this.infoCSVNotification={type:"status",fullWidth:!0,message:"<p>This process could take a few minutes. Please wait and don't refresh the page.<p>",isOpened:!1,leftAlign:!1},this.todayDate=new Date,this.dateSelection=[],this.datesFilteredBy=null,this.showOriginalGrade=!1,this.originalGradeCheckboxContent={id:"original-grade-checkbox",label:"Show students' original grades (only applicable to graded qualifications)"},this.applyFiltersButton={text:"Apply filters",action:{type:"callback",callback:this.applyFilters.bind(this)},type:"primary",aria:"Apply filters"},this.downloadAllButton={text:"Download all statements (CSV)",action:{type:"callback",callback:()=>{this.modalOpen=!0}},disabled:!1,type:"primary",aria:"Download all statements (CSV)"},this.confirmDownloadCsvButton={text:"Download CSV",action:{type:"callback",callback:()=>{this.modalOpen=!1,this.confirmCsvButtonEnabled=!1,this.downloadAll()}},type:"primary",aria:"Download CSV"},this.confirmCsvCheckBox={id:"confirm-csv",label:"I acknowledge and accept these terms"},this.viewStatementButton={text:"View statement",disabled:!1,type:"primary",action:{type:"callback",callback:null},aria:"View statement"},this.loadMoreButton={text:"Load more",action:{type:"callback",callback:this.loadMore.bind(this)},type:"primary",aria:"Load more"}}ngOnInit(){this.contactSearchService.serviceRoot="unit-progress",this.changeCentreSubscription=this.myQualificationsLayoutService.changeCentre$.subscribe(n=>{this.organisationId=n.organisationId,this.selectedQual=null,this.buildQualPickerContent(),this.resetFilters(),this.resultsToDisplay=null,this.filtersApplied=!1,this.contactSearchService.organisationId=this.organisationId,this.getResultsAndResultsData()}),this.studentPickerConfig={service:this.contactSearchService,errorMessage:"We can't find any results for this student at your centre. Please double check you've entered the correct name or ID.",showError:!0},this.changeDeviceSubscription=this.myQualificationsLayoutService.changeDevice$.subscribe(n=>{n==="mobile"?this.iconArrowLeft=!1:this.iconArrowLeft=!0})}ngOnDestroy(){this.changeCentreSubscription&&this.changeCentreSubscription.unsubscribe(),this.changeDeviceSubscription&&this.changeDeviceSubscription.unsubscribe(),this.timerSubscription&&this.timerSubscription.unsubscribe()}onPresetRangeSelection(n,t){let r=new Date;switch(n){case"days":r.setDate(this.todayDate.getDate()-(t>0?t-1:t)),r.setUTCHours(0,0,0,0),this.dateChanged([r,this.todayDate]);break;case"thisMonth":let p=new Date(r.getFullYear(),r.getMonth(),1);this.dateChanged([p,this.todayDate]);break;case"lastMonth":let g=new Date(r.getFullYear(),r.getMonth()-1,1),x=new Date(r.getFullYear(),r.getMonth(),0);this.dateChanged([g,x]);break}this._datePicker&&(this._datePicker.overlayVisible=!1)}dateChanged(n){this.dateSelection=n,this.filtersApplied=!0}buildQualPickerContent(){if(this.approvedQuals=this.myQualificationsLayoutService.getApprovedQuals(),!this.approvedQuals?.length){this.qualPickerContent=void 0;return}let n=this.approvedQuals.filter(t=>!!t.qualificationGroupName);this.myQualificationsLayoutService.roles.includes("EPA centre contact")&&!this.myQualificationsLayoutService.roles.some(t=>["TP Main Contact","Tutor","Exams Officer"].includes(t))&&(n=n.filter(t=>t.qualificationGroupName==="Apprenticeships")),this.qualPickerContent=n.length?Ze(n):void 0}onQualChange(n){this.selectedQual=n,this.currentQualDetails=this.approvedQuals.find(t=>t.programmeComponentId===n),this.resetFilters()}onStudentPickerChange(n){this.studentsSelected=n,this.filtersApplied=!0}loadMore(){this.limit=this.limit+z,this.results.length<this.limit+z&&this.resultsPagination&&this.getResultsAndResultsData("loadMore")}resetFilters(){this.showOriginalGrade=!1,this.studentPickerConfig=Object.assign({},this.studentPickerConfig),this.studentsSelected=[],this.studentsDisplayed=null,this.dateSelection=null,this.datesFilteredBy=null,this.filtersApplied=!1,this.getResultsAndResultsData()}applyFilters(){this.studentsDisplayed=this.studentsSelected.map(n=>n.name),this.datesFilteredBy=structuredClone(this.dateSelection),this.filtersApplied=!0,this.getResultsAndResultsData()}getViewStatementButton(n,t){let r=Object.assign({},this.viewStatementButton);return r.action.callback=this.viewStatement.bind(this,n,t),r}
1viewStatement(n,t){let r=this.accordionData[n][t];this.soaService.setActive(r),this.router.navigate([`/my-qualifications/statement-of-achievement/soa-details/${r.programmeComponentId}/${r.contactId}`])}onAccordionClick(n,t){if(!n||this.accordionData[t.contactId]&&this.accordionData[t.contactId][t.programmeComponentId])return;let r={contactId:t.contactId,assessments:[this.selectedQual],limit:1};this.unitProgressService.getSoaData(r).pipe(G(1),U(p=>this.qualificationTreeService.getFlatTree([this.selectedQual]).pipe(E(g=>[p,g])))).subscribe(([p,g])=>{if(p.items){let x=p.items[0];x.optionalUnitResults=x.optionalUnitResults.filter(k=>g[k.programmeComponentId].statementOfAchievement),x.allUnitResults=[...x.unitResults,...x.optionalUnitResults].sort((k,$)=>k.order-$.order),this.accordionData[t.contactId]||(this.accordionData[t.contactId]={}),this.accordionData[t.contactId][t.programmeComponentId]=x}})}getResultsAndResultsData(n=null){if(!this.selectedQual){this.resultsToDisplay=null;return}let t=this.getBody();n==="loadMore"?(t.lastEvaluatedKey=this.resultsPagination,this.loadMoreButton.text="Loading...",this.loadMoreButton.glyph={icon:ee.LOOP2,glyphAnimation:"spin"}):(this.isLoading=!0,this.resultsToDisplay=null,this.limit=z),this.unitProgressService.getCsoaData(t).pipe(ne(),U(r=>this.qualificationTreeService.getFlatTree([this.selectedQual]).pipe(E(p=>[r,p]))),I(r=>{throw console.log(r),n!=="loadMore"&&(this.results=null),this.isLoading=!1,r})).subscribe(([r,p])=>{if(this.resultsPagination=r.lastEvaluatedKey,r.items.forEach(g=>{g.optionalUnitResults=g.optionalUnitResults.filter(x=>p[x.programmeComponentId].statementOfAchievement)}),n==="loadMore"){let g=r.items.filter(x=>!this.results.some(k=>k.contactId===x.contactId));this.results=this.results.concat(g)}else this.results=r.items}).add(()=>{this.isLoading=!1,this.loadMoreButton.glyph=null,this.loadMoreButton.text="Load more"})}getBody(n=null){let t={organisationId:this.organisationId,assessments:[this.selectedQual],contactIds:this.studentsSelected.map(r=>r.contactId),sort:n=="csv"?"alphabetical":"latest",limit:"all"};if(this.dateSelection?.[0]){let r=new Date(this.dateSelection[0]);r.setUTCHours(0,0,0,0);let p=this.dateSelection[1]?new Date(this.dateSelection[1]):new Date(this.dateSelection[0]);p.setUTCHours(23,59,59,999),t.date={from:r.toISOString(),to:p.toISOString()}}return t}downloadAll(){this.downloadAllButton.text="Downloading...",this.downloadAllButton.glyph={icon:ee.LOOP2,glyphAnimation:"spin"},this.infoCSVNotification.isOpened=!0,this.documentGenerationService.createCSV(this.getBody("csv"),"csoa").pipe(G(1)).subscribe(n=>{this.timerSubscription=ie(0,5e3).pipe(E(()=>{this.documentGenerationService.checkS3(n.s3Signature).subscribe(t=>{let r=`Centre statement of achievements ${this.datePipe.transform(new Date,Le)}.csv`,p=window.URL.createObjectURL(t),g=document.createElement("a");g.href=p,g.download=r,g.click(),this.timerSubscription.unsubscribe(),this.downloadAllButton.glyph=null,this.downloadAllButton.text="Download all statements (CSV)",this.infoCSVNotification.isOpened=!1},t=>{console.log("err",t)})})).subscribe()})}closeDialog(){this.modalOpen=!1,this.confirmCsvButtonEnabled=!1}confirmCsvDownloadCheck(){this.confirmCsvButtonEnabled=!0}openCsvDownload(){this.modalOpen=!0}};s.\u0275fac=function(t){return new(t||s)(b(ke),b(st),b(at),b(Re),b(it),b(rt),b(L),b(ot),b(nt))},s.\u0275cmp=re({type:s,selectors:[["app-csoa"]],viewQuery:function(t,r){if(t&1&&le(q,5),t&2){let p;ce(p=de())&&(r._datePicker=p.first)}},inputs:{headers:"headers"},outputs:{csoaTabEvent:"csoaTabEvent"},standalone:!1,decls:29,vars:10,consts:[["studentPicker",""],["datePicker",""],["buttonbar",""],[1,"csoa-page"],[3,"modalClose","isModalOpened"],[1,"modal__content"],[1,"csoa-page__intro-text"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"csoa-page__qual-picker"],[1,"csoa-page__no-results"],["href","/policies/terms-conditions-aat-systems"],[3,"onChange","isCheckedChange","content","isChecked"],["type","button",3,"enabled","button"],[3,"selected","nodes"],[1,"csoa-page__filters"],[1,"csoa-page__results"],[1,"csoa-page__filters--heading"],[1,"flex","flex-wrap","gap-5"],[1,"w-full"],[1,"csoa-page__filters--filter-box","w-100"],[3,"onChange","config"],[1,"suggestions__option",3,"selected"],[1,"csoa-page__filters--filter-box-text"],[1,"w-full","flex","flex-wrap","items-center","justify-between","gap-5","sm:gap-1"],[1,"w-full","sm:w-2/5"],["variant","on"],["placeholder","dd/mm/yyyy","dateFormat","dd/mm/yy","inputId","date_range_selection","data-auto","dateRangeSelection","selectionMode","range","fluid","",1,"mt-1",3,"ngModelChange","ngModel","showIcon","showOnFocus","showButtonBar","maxDate"],["for","date_range_selection"],[3,"isCheckedChange","onChange","content","isChecked"],[1,"row"],[1,"csoa-page__filters-applied"],[1,"csoa-page__filters--apply-reset"],[1,"suggestions__option",3,"mousedown"],[3,"innerHTML"],[1,"flex","flex-col","gap-2","w-full"],[1,"flex","justify-end"],["size","small","label","Clear dates","severity","danger","variant","outlined",1,"w-3/7",3,"click"],[1,"flex","justify-end","w-full"],["size","small","label","Today","data-auto","todayButton",1,"w-3/7",3,"click"],[1,"flex","justify-between","w-full"],["size","small","label","Last 7 days","data-auto","last7daysButton",1,"w-3/7",3,"click"],["size","small","label","Last 30 days","data-auto","last30daysButton",1,"w-3/7",3,"click"],["size","small","label","This month","data-auto","thisMonthButton",1,"w-3/7",3,"click"],["size","small","label","Last month","data-auto","lastMonthButton",1,"w-3/7",3,"click"],[1,"csoa-page__filters-applied--list"],[1,"csoa-page__filters-applied--card"],[3,"click"],[1,"icon","icon-cross-small"],[1,"csoa-page__results--title"],[3,"notification","isNotificationOpen"],[1,"csoa-page__accordion"],[1,"csoa-page__results--show-more"],[3,"onToggle","iconArrowLeft"],["header","",1,"csoa-page__accordion-header",3,"ngClass"],[1,"csoa-page__accordion-header--heading"],[1,"csoa-page__accordion-header--heading-group"],[1,"csoa-page__accordion-header--info"],[1,"csoa-page__accordion-header--grade"],[1,"csoa-page__accordion-header--result"],[3,"ngClass"],["body","",1,"csoa-page__accordion-body"],[1,"csoa-page__accordion-body--centre"],[1,"csoa-page__accordion-header--grade-text"],[1,"csoa-page__accordion-body--table"],[1,"csoa-page__accordion-body--grade-history"],[1,"csoa-page__accordion-body--epa-text"],[1,"csoa-page__accordion-body--button"],["type","button","tabindex","0",3,"enabled","button"],[1,"csoa-page__accordion-body--table-result"]],template:function(t,r){t&1&&(a(0,"div",3)(1,"fab-modal",4),C("modalClose",function(){return r.closeDialog()}),u(2,gt,9,4,"div",5),o(),a(3,"div",6)(4,"p"),c(5,"The statement of achievement shows a record of all competent/achieved results and exemptions."),o(),a(6,"p"),c(7," You can filter your view and export results in CSV format. You can also view an individual student's statement, which contain details about how units were achieved. "),o(),a(8,"p"),c(9," Newly registered students with competent/achieved unit results may not appear until 24 hours after the result has been released. "),o(),a(10,"p"),c(11," To see assessment results for your students, go to "),a(12,"a",7),c(13,"Centre assessment results"),o(),c(14,". "),o(),a(15,"p"),
1c(16," Use the "),a(17,"a",7),c(18,"grade calculator"),o(),c(19," to predict your students' final grades using their achieved scores so far. "),o(),v(20,"br"),a(21,"p"),c(22," In line with GDPR requirements you'll have access to statements for your registered students for up to 13 months after they've lapsed or completed. Where students change training providers, the previous provider will no longer have access to the statement. You'll still be able to view the units they achieved while registered with you via "),a(23,"a",7),c(24,"Centre assessment results"),o(),c(25,". "),o()(),u(26,Ct,4,1,"div",8)(27,xt,7,2,"div",9),u(28,zt,5,4,"div"),o()),t&2&&(l(),m("isModalOpened",r.modalOpen),l(),_(r.modalOpen?2:-1),l(10),m("routerLink",y(7,H)),l(5),m("routerLink",y(8,ut)),l(6),m("routerLink",y(9,H)),l(3),_(r.qualPickerContent?26:27),l(2),_(r.selectedQual?28:-1))},dependencies:[xe,Ve,$e,Je,Ue,je,We,Ee,Te,ze,j,et,q,Ie,Be,Me,ve,ye,L,Qe],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.csoa-page{padding:1rem}.csoa-page__intro-text{margin-top:-1em}.csoa-page__filters{margin-top:5vh}.csoa-page__filters--filter-tag{margin-bottom:0}.csoa-page__filters--filter-box{margin-top:20px}.csoa-page__filters--filter-box label{font-size:14px;margin-bottom:.5em;display:inline-block}.csoa-page__filters--filter-box-text{font-size:11px}@media (min-width: 992px){.csoa-page__filters--filter-box.date-picker{margin-right:1em}.csoa-page__filters--filter-box.checkbox{display:flex;align-items:center;height:100px;margin-bottom:-50px}}.csoa-page__filters--apply-reset{margin:30px 0;color:#00ab4e;display:flex}.csoa-page__filters--apply-reset div{margin-top:10px;margin-left:25px}.csoa-page__filters-applied{font-size:14px;margin-top:30px}.csoa-page__filters-applied p{margin:0}.csoa-page__filters-applied>div{margin:20px 0}.csoa-page__filters-applied--card{width:fit-content;padding:5px;background:#e6e6e6;border-radius:2px;margin:10px 10px 10px 0}.csoa-page__filters-applied--list{display:flex;flex-wrap:wrap}.csoa-page__no-results{margin-top:5vh;border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:2px;padding:25px;text-align:center}.csoa-page__no-results h4{margin-bottom:20px}.csoa-page__results{margin:5vh 0}.csoa-page__results--title{display:flex;width:100%;justify-content:space-between;flex-wrap:wrap}.csoa-page__results--show-more{text-align:center}.csoa-page__accordion{margin:20px 0}.csoa-page__accordion-header{display:flex;font-size:14px;margin-left:25px;width:100%;justify-content:space-between}.csoa-page__accordion-header p{margin-top:0;margin-bottom:5px}.csoa-page__accordion-header.mobile{margin-left:0}.csoa-page__accordion-header--info{display:flex;flex:1;flex-direction:column}@media (min-width: 1200px){.csoa-page__accordion-header--info{flex:2;flex-direction:row}}.csoa-page__accordion-header .icon-arrow-up:before,.csoa-page__accordion-header .icon-arrow-down:before{padding:0 1em 1em;-moz-transition:content .5s ease-in-out;-o-transition:content .5s ease-in-out;-webkit-transition:content .5s ease-in-out;transition:content .5s ease-in-out;color:#00ab4e}.csoa-page__accordion-header--heading{flex:2;display:flex;flex-wrap:wrap}
1.csoa-page__accordion-header--heading-group{display:inline-flex;flex-direction:column;margin-right:auto}.csoa-page__accordion-header--heading-group:first-of-type{padding-right:10px}.csoa-page__accordion-header--grade{flex:1;text-align:center}.csoa-page__accordion-header--grade-text{font-size:20px;font-weight:600;margin-bottom:0}@media (min-width: 992px){.csoa-page__accordion-header--grade-text{font-size:30px}}.csoa-page__accordion-header--result{flex:1;text-align:center}.csoa-page__accordion-header--result .icon-success{color:#008048;font-size:20px}@media (min-width: 992px){.csoa-page__accordion-header--result .icon-success{font-size:30px}}.csoa-page__accordion-header--result .icon-minus{color:#31373e;font-size:20px}@media (min-width: 992px){.csoa-page__accordion-header--result .icon-minus{font-size:30px}}.csoa-page .accordion.open .accordion__content{padding-top:2em}.csoa-page__accordion-body{font-size:14px}.csoa-page__accordion-body--centre{margin-bottom:1em}.csoa-page__accordion-body--table{display:flex;overflow-x:auto;padding-bottom:1em}.csoa-page__accordion-body--table-result{text-align:center;display:flex;flex-direction:column;flex-grow:1}.csoa-page__accordion-body--table-result>div:first-of-type{font-weight:600;border-bottom:2px solid rgb(229.5,229.5,229.5);padding:0 10px 10px;margin-bottom:10px}.csoa-page__accordion-body--epa-text{margin-bottom:2em}.csoa-page__accordion-body--button{text-align:center;margin-top:1em}.csoa-page__qual-picker{margin-top:2rem}.csoa-page__qual-picker fab-qualification-picker .qualification-picker{background-color:transparent;margin:0}.csoa-page__qual-picker fab-qualification-picker .qualification-picker .choose-type{font-size:18px!important;margin-left:0!important}.csoa-page__qual-picker fab-qualification-picker h4{margin-bottom:1rem!important}.csoa-page__qual-picker p{margin-top:.5rem}.csoa-page .modal-open .modal{display:block}.csoa-page .modal__content{padding:20px;overflow:auto;max-height:calc(100vh - 200px)}
2`],encapsulation:2});let i=s;return i})();var Ht=[{path:"",component:lt}],ct=(()=>{let s=class s{};s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=R({type:s}),s.\u0275inj=O({imports:[Z.forChild(Ht),Z]});let i=s;return i})();var Mi=(()=>{let s=class s{};s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=R({type:s}),s.\u0275inj=O({providers:[L],imports:[be,Oe,Ge,Xe,Ye,Ne,qe,Ke,ct,He,j,tt,Pe,Ae,Fe]});let i=s;return i})();export{Mi as CsoaModule};

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.