PageSourceSearch

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

js aat.org.uk collected 2026-10-03 21:39:43 UTC 37,523 bytes, 4 lines download raw bytes

1import{g as Ke}from"./chunk-WASQKH4E.js";import{a as Ue,b as Ge}from"./chunk-2L7BC3FF.js";import{a as We}from"./chunk-52O4K26R.js";import{a as He}from"./chunk-W3NEESNH.js";import{a as K}from"./chunk-JEL6HJ7P.js";import{F as De,L as Re,Ua as Oe,V as Pe,W as qe,Xa as Ne,Ya as Ve,gb as Qe,ib as $e,ja as Me,la as Ye,ma as Le,n as Q,o as ke,q as $,sa as Be,tb as je,vb as ze}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import{ra as Ie,sa as Ae}from"./chunk-WPHW6CRH.js";import{K as Te,h as Ee,o as Fe}from"./chunk-76O7YCWW.js";import{f as be,g as Se,k as we}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import{a as ye,c as ve}from"./chunk-LU7SZU5X.js";import{A as Ce,j as he,q as xe,t as L}from"./chunk-PO2RDVKE.js";import{Ab as ae,Ac as g,Bc as A,Dc as de,E as P,Ec as ce,Fc as pe,Gc as _e,J as te,Lc as me,N as U,Nc as S,Oc as V,Pb as p,Pc as ue,Qb as oe,Rb as _,Tb as q,Tc as F,Ub as M,Uc as ge,Vb as Y,Vc as k,Wb as h,Xb as a,Yb as n,Yc as fe,Zb as v,ca as ie,db as l,ec as I,ga as G,jc as b,lc as d,n as z,o as H,oa as x,pa as C,pb as w,pc as re,qc as le,rc as se,s as Z,ub as ne,y as ee,zc as r}from"./chunk-3URBZWPM.js";import{a as R,b as j}from"./chunk-ODN5LVDJ.js";var Je={type:"ghost",fullWidth:!0,message:`<p><strong>Can't see your result?</strong> Results for wholly computer marked assessments can take up to 24 hours to appear from when your assessment is submitted.</p>
2  <p>For any taken over the weekend, please allow until 17.00 on the next working day for your results to appear.</p>
3  <p><a href="/assessments/students/results" target="_BLANK">View the result release dates for remotely invigilated, externally-marked and synoptic assessments</a> which take longer to be released.</p>`,isOpened:!0,leftAlign:!1},Xe={placeholder:"Select",allSelected:"Select all qualifications",validationDisabled:!0,options:[{label:"Latest",value:"dateNewest"},{label:"Relevance",value:"relevance"},{label:"Oldest First",value:"dateOldest"},{label:"Price Low to High",value:"priceLow"},{label:"Price High to Low",value:"priceHigh"},{label:"Popularity",value:"popularity"}]},Ze={placeholder:"Select",allSelected:"Select all assessments",validationDisabled:!0,options:[{label:"Latest",value:"dateNewest"},{label:"Relevance",value:"relevance"},{label:"Oldest First",value:"dateOldest"},{label:"Price Low to High",value:"priceLow"},{label:"Price High to Low",value:"priceHigh"},{label:"Popularity",value:"popularity"}]},et=["ITBK1","POBC1","PCTN1","BESY1","ITBK2","POBC2","BUAW1","FAPS1","MATS1","TPFB1","FAPS2","TPFB2","AMAC1","DAIF1","INAC1","BNTA1","PNTA1","AUDT1","CSFT1","CRDM1","BKFN1","BUSK1","BTPB1","ITAF1","ADSY2","PDSY2"];var tt=(()=>{let s=class s{constructor(t,o){this.http=t,this.authService=o,this.serviceCommonPath="/unit-result",this.contactId="",this.authService.getCurrentUser().pipe(te(1)).subscribe({next:c=>{this.contactId=c["custom:contact_id"]}})}handleError(t){return H(t.status?`${t.status} - ${t.statusText}`:"Server Error")}getMultipleResults(t){return this.http.post(`${K.API_URL}${this.serviceCommonPath}/filter`,JSON.stringify(t),this.createHeaders()).pipe(Z(o=>o),P(o=>(console.log(o),H(o))))}getFiltersContent(t,o){let c=`${K.API_URL}${this.serviceCommonPath}/filters/?contactId=${t}`,m=[];return o.showOnCar!==void 0&&m.push("showOnCar"),o.statementOfAchievement!==void 0&&m.push("statementOfAchievement"),m.length&&(c+=`&filterFields=${m.join(",")}`),this.http.get(c,this.createHeaders())}createHeaders(){return{headers:new ye({"Content-Type":"application/json"})}}};s.\u0275fac=function(o){return new(o||s)(G(ve),G($))},s.\u0275prov=ie({token:s,factory:s.\u0275fac,providedIn:"root"});let i=s;return i})();var lt=()=>["/my-qualifications/statement-of-achievement"],st=()=>["Not Yet Competent","Not yet achieved","Achieved","Competent"],dt=i=>({mobile:i}),B=()=>["Not Yet Competent","Not yet achieved"],it=()=>["Achieved","Competent"],ct=(i,s)=>({"icon icon-success":i,"icon icon-error":s}),pt=()=>["/my-qualifications/grade-calculator"],nt=i=>({"col-md-6":i});function _t(i,s){i&1&&(a(0,"p"),r(1," For some results, the total awarded marks when converted to a percentage score may be lower than the published percentage score. This is due to the application of special consideration being applied to your overall percentage score only. "),n())}function mt(i,s){i&1&&(a(0,"p"),r(1," For some Qualification 2022 results, the total awarded marks when converted to a percentage score may be lower than the published percentage score. This is due to the application of special consideration being applied to your overall percentage score only. "),n())}function ut(i,s){i&1&&(a(0,"div"),v(1,"fab-loader"),n())}
3function gt(i,s){if(i&1&&(a(0,"div",3)(1,"h4")(2,"strong"),r(3,"You don't have any results yet"),n()(),a(4,"p"),r(5,"There are no results available to display. This may be because:"),n(),a(6,"ul")(7,"li"),r(8," you haven't sat an assessment yet. "),a(9,"a",5),r(10,"Find out how to prepare for your assessment"),n()(),a(11,"li"),r(12," your assessment results aren't ready yet. "),a(13,"a",6),r(14,"Find out when your results will be available"),n()(),a(15,"li"),r(16,"you're not registered on any of our current qualifications."),n()(),v(17,"fab-notification",7),n()),i&2){let e=d();l(17),h("notification",e.noResultsNotification)("isNotificationOpen",e.noResultsNotification.isOpened)}}function ft(i,s){if(i&1){let e=I();a(0,"div",22)(1,"div",23)(2,"p-button",24),b("click",function(o){let c=x(e).clearCallback;return C(c(o))}),n()(),a(3,"div",25)(4,"p-button",26),b("click",function(){x(e);let o=d(3);return C(o.onPresetRangeSelection("days",0))}),n()(),a(5,"div",27)(6,"p-button",28),b("click",function(){x(e);let o=d(3);return C(o.onPresetRangeSelection("days",7))}),n(),a(7,"p-button",29),b("click",function(){x(e);let o=d(3);return C(o.onPresetRangeSelection("days",30))}),n()(),a(8,"div",27)(9,"p-button",30),b("click",function(){x(e);let o=d(3);return C(o.onPresetRangeSelection("thisMonth"))}),n(),a(10,"p-button",31),b("click",function(){x(e);let o=d(3);return C(o.onPresetRangeSelection("lastMonth"))}),n()()()}}function ht(i,s){if(i&1&&(a(0,"div",33)(1,"span"),r(2),n()()),i&2){let e=s.$implicit;l(2),g(e.label)}}function xt(i,s){if(i&1&&(a(0,"div")(1,"p"),r(2,"Qualifications:"),n(),a(3,"div",32),M(4,ht,3,1,"div",33,q),n()()),i&2){let e=d(4);l(4),Y(e.qualsSelectedDisplayed)}}function Ct(i,s){if(i&1&&(a(0,"div",33)(1,"span"),r(2),n()()),i&2){let e=s.$implicit;l(2),g(e.label)}}function yt(i,s){if(i&1&&(a(0,"div")(1,"p"),r(2,"Assessments:"),n(),a(3,"div",34),M(4,Ct,3,1,"div",33,q),n()()),i&2){let e=d(4);l(4),Y(e.assessmentsSelectedDisplayed)}}function vt(i,s){if(i&1&&(a(0,"div")(1,"div")(2,"p"),r(3,"Date:"),n()(),a(4,"span"),r(5),F(6,"date"),F(7,"date"),n()()),i&2){let e=d(4);l(5),de("",e.datesFilteredBy[1]?"from: ":"","",k(6,3,e.datesFilteredBy[0],"dd/MM/yyyy"),"",e.datesFilteredBy[1]?" to: "+k(7,6,e.datesFilteredBy[1],"dd/MM/yyy"):"")}}function bt(i,s){if(i&1&&(a(0,"div",20)(1,"p",11)(2,"strong"),r(3,"Filters applied"),n()(),p(4,xt,6,0,"div"),p(5,yt,6,0,"div"),p(6,vt,8,9,"div"),n()),i&2){let e=d(3);l(4),_(e.qualsSelectedDisplayed&&e.qualsSelectedDisplayed.length>0?4:-1),l(),_(e.assessmentsSelectedDisplayed&&e.assessmentsSelectedDisplayed.length>0?5:-1),l(),_(e.datesFilteredBy!=null&&e.datesFilteredBy[0]?6:-1)}}function St(i,s){if(i&1){let e=I();a(0,"div",21),v(1,"fab-button",35),a(2,"div")(3,"a",36),b("click",function(){x(e);let o=d(3);return C(o.resetFilters())}),r(4,"Clear filters"),v(5,"i",37),n()()()}if(i&2){let e=d(3);l(),h("button",e.applyFiltersButton)}}function wt(i,s){if(i&1){let e=I();a(0,"div",8)(1,"p",11)(2,"strong"),r(3,"Filter results"),n()(),a(4,"div",12)(5,"div",13)(6,"div",14)(7,"label",15),r(8,"Filter by qualifications"),n(),a(9,"fab-dropdown",16),b("outputReturnSelectedOptions",function(o){x(e);let c=d(2);return C(c.getSelectedQualsOptions(o))}),n()()(),a(10,"div",13)(11,"div",14)(12,"label",15),r(13,"Filter by assessments"),n(),a(14,"fab-dropdown",16),b("outputReturnSelectedOptions",function(o){x(e);let c=d(2);return C(c.getSelectedAssessmentsOptions(o))}),n()()(),a(15,"div",17)(16,"p-floatlabel")(17,"p-datepicker",18),_e("ngModelChange",function(o){x(e);let c=d(2);return pe(c.dateSelection,o)||(c.dateSelection=o),C(o)}),ae(18,ft,11,0,"ng-template",null,0,fe),n(),a(20,"label",19),r(21,"Filter by completed date"),n()()()(),a(22,"div",12),p(23,bt,7,3,"div",20),n(),a(24,"div",12),p(25,St,6,1,"div",21),n()()}if(i&2){let e=d(2);l(9),h("content",e.dropdownQuals),l(5),h("content",e.dropdownAssessments),l(3),ce("ngModel",e.dateSelection),h("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("maxDate",e.todayDate),l(6),_(e.filtersApplied&&(e.qualsSelectedDisplayed&&e.qualsSelectedDisplayed.length>
30||e.assessmentsSelectedDisplayed&&e.assessmentsSelectedDisplayed.length>0||e.datesFilteredBy!=null&&e.datesFilteredBy[0])?23:-1),l(2),_(e.filtersApplied||e.qualsSelected&&e.qualsSelected.length>0||e.assessmentsSelected&&e.assessmentsSelected.length>0||e.dateSelection!=null&&e.dateSelection[0]?25:-1)}}function Et(i,s){i&1&&(a(0,"div"),v(1,"fab-loader"),n())}function Ft(i,s){if(i&1&&(a(0,"span",50),r(1),n()),i&2){let e=d(2).$implicit,t=d(3);l(),g(t.programmeComponents[e.qualificationId].qualificationStandardName)}}function Tt(i,s){if(i&1&&(a(0,"p",53),r(1),n()),i&2){let e=d(2).$implicit;l(),A("",e.percentage,"%")}}function It(i,s){i&1&&(a(0,"p",53),r(1,"N/A"),n())}function At(i,s){if(i&1&&(a(0,"div")(1,"p"),r(2,"Grade"),n(),a(3,"p",66),r(4),n()()),i&2){let e=d(2).$implicit;l(4),A(" ",e.grade," ")}}function kt(i,s){if(i&1&&(a(0,"p",61)(1,"strong"),r(2),n()()),i&2){let e=d(2).$implicit;l(2),g(e.methodOfAssessment)}}function Dt(i,s){i&1&&(a(0,"p",61),r(1,"xxxx"),n())}function Rt(i,s){if(i&1&&(a(0,"div",62)(1,"p"),r(2,"Sat at"),n(),a(3,"p")(4,"strong"),r(5),n()()()),i&2){let e=d(2).$implicit,t=d(3);l(5),g(t.trainingProviders[e.satTrainingProviderOrganisationId].name)}}function Pt(i,s){if(i&1&&(a(0,"div")(1,"p"),r(2," This unit contributes towards "),a(3,"strong"),r(4),n(),r(5," of the overall qualification grade. Use the "),a(6,"a",2),r(7,"grade calculator"),n(),r(8," to see how this score affects your overall grade. "),n()()),i&2){let e=d(2).$implicit;l(4),A("",e.weighting,"%"),l(2),h("routerLink",S(2,pt))}}function qt(i,s){i&1&&(a(0,"strong"),r(1,"Marks"),v(2,"br"),r(3,"awarded"),n())}function Mt(i,s){i&1&&(a(0,"strong"),r(1,"Marks"),v(2,"br"),r(3,"available"),n())}function Yt(i,s){if(i&1&&(a(0,"span"),r(1),n()),i&2){let e=d().$implicit;l(),g(e.mark)}}function Lt(i,s){if(i&1&&(a(0,"span"),r(1),n()),i&2){let e=d().$implicit;l(),g(e.availableMark)}}function Bt(i,s){if(i&1&&(a(0,"div",73)(1,"div",71)(2,"span"),r(3),n()(),a(4,"div",72),p(5,Yt,2,1,"span"),n(),a(6,"div",72),p(7,Lt,2,1,"span"),n(),a(8,"div")(9,"span",72),r(10),n()()()),i&2){let e=s.$implicit,t=d(4).$implicit,o=d(3);l(3),g(e.loName),l(2),_(o.allShownQualCodes.includes(t.unitLocalCode)?5:-1),l(2),_(o.allShownQualCodes.includes(t.unitLocalCode)?7:-1),l(3),g(e.rating)}}function Ot(i,s){if(i&1){let e=I();a(0,"div",67)(1,"h4")(2,"strong"),r(3,"Your performance feedback"),n()(),a(4,"p"),r(5," See how you performed on topics for this assessment. If you're looking to improve your performance on these topics visit the "),a(6,"a",68),r(7,"AAT Lifelong Learning Portal"),n(),r(8," to access study support resources. You can schedule a re-sit of this assessment via your assessment venue. "),n()(),a(9,"div",69)(10,"div",70)(11,"span",71)(12,"strong"),r(13,"Task"),n()(),a(14,"span",72),p(15,qt,4,0,"strong"),n(),a(16,"span",72),p(17,Mt,4,0,"strong"),n(),a(18,"span",72)(19,"strong"),r(20,"Feedback"),n()()(),M(21,Bt,11,4,"div",73,q),n(),a(23,"div",74)(24,"p",36),b("click",function(){x(e);let o=d(3).$implicit,c=d(3);return C(c.downloadFeedbackPDF(o.resultId))}),a(25,"strong"),r(26," Download your student feedback as a PDF "),n()()()}if(i&2){let e=d(3).$implicit,t=d(3);l(15),_(t.allShownQualCodes.includes(e.unitLocalCode)?15:-1),l(2),_(t.allShownQualCodes.includes(e.unitLocalCode)?17:-1),l(4),Y(e.resultFeedback)}}function Nt(i,s){if(i&1&&p(0,Ot,27,2),i&2){let e=d(2).$implicit,t=d(3);_(e.resultFeedback&&e.resultFeedback.length>0&&t.isAfterMinimumFeedbackDate(e.dateOfResult)?0:-1)}}function Vt(i,s){i&1&&(a(0,"div",63),r(1," Feedback can be accessed through "),a(2,"a",75),r(3," your Smart End Point Assessment (SEPA) account. "),n()())}
3function Qt(i,s){if(i&1&&(a(0,"div",65)(1,"div",63)(2,"h4")(3,"strong"),r(4,"Need some extra support?"),n()(),a(5,"p"),r(6," You'll find resources within the "),a(7,"a",68),r(8,"AAT Lifelong Learning Portal"),n(),r(9," to support your studies and improve performance on topics you didn't quite meet requirements on. "),n(),a(10,"p"),r(11," Your training provider will be able to answer any questions about your results or the assessment. You can use "),a(12,"a",76),r(13,"AAT's enquiries and appeals procedure"),n(),r(14," to request a review of your results. "),n()()()),i&2){let e=d(2).$implicit,t=d(3);h("ngClass",V(2,nt,S(1,B).includes(e.assessmentResult)&&t.displayResitInfoBlock(e)))}}function $t(i,s){if(i&1&&(a(0,"p")(1,"strong"),r(2),F(3,"date"),n()()),i&2){let e=d(4).$implicit,t=d(3);l(2),g(k(3,1,t.getDate(t.resits[e.qualificationId].scheduledassessmentdate),"EEE dd MMMM yyyy"))}}function jt(i,s){if(i&1&&(a(0,"p"),r(1),n()),i&2){let e=d(4).$implicit,t=d(3);l(),A(" ",t.resits[e.qualificationId].centrename," ")}}function zt(i,s){if(i&1&&(a(0,"div"),p(1,$t,4,4,"p"),v(2,"i",78),p(3,jt,2,1,"p"),n()),i&2){let e=d(3).$implicit,t=d(3);l(),_(t.resits[e.qualificationId].scheduledassessmentdate?1:-1),l(2),_(t.resits[e.qualificationId].centrename?3:-1)}}function Ht(i,s){if(i&1&&(a(0,"p"),r(1," You have "),a(2,"strong"),r(3),n(),r(4),a(5,"strong"),r(6),F(7,"date"),n()()),i&2){let e=d(3).$implicit,t=d(3);l(3),g(t.resits[e.qualificationId].remainingresits),l(),A(" remaining ",t.resits[e.qualificationId].remainingresits===1?"attempt":"attempts"," to resit this assessment before "),l(2),g(k(7,3,t.getDate(t.resits[e.qualificationId].remainingresitsuntil),"dd MMMM yyyy"))}}function Ut(i,s){if(i&1&&(a(0,"div",65)(1,"div",77)(2,"h4")(3,"strong"),r(4,"Resit information "),n()(),p(5,zt,4,2,"div"),p(6,Ht,8,6,"p"),n()()),i&2){let e=d(2).$implicit,t=d(3);h("ngClass",V(4,nt,S(3,B).includes(e.assessmentResult)&&t.displayResitInfoBlock(e))),l(5),_(t.resits[e.qualificationId].scheduledassessmentdate||t.resits[e.qualificationId].centrename?5:-1),l(),_(t.resits[e.qualificationId].remainingresits&&t.resits[e.qualificationId].remainingresitsuntil?6:-1)}}function Gt(i,s){if(i&1){let e=I();a(0,"fab-accordion",46),b("onToggle",function(o){x(e);let c=d().$implicit,m=d(3);return C(m.onResultToggle(o,c))}),a(1,"div",47)(2,"div",48)(3,"p")(4,"strong"),r(5),n()(),a(6,"div",49),p(7,Ft,2,1,"span",50),a(8,"span"),r(9,"Result date "),a(10,"strong"),r(11),F(12,"date"),n()()()(),a(13,"div",51)(14,"div",52)(15,"p"),r(16,"Percentage"),n(),p(17,Tt,2,1,"p",53)(18,It,2,0,"p",53),n(),a(19,"div",54),p(20,At,5,1,"div"),n(),a(21,"div",55)(22,"p"),r(23),n(),v(24,"i",56),n()()(),a(25,"div",57)(26,"div",58)(27,"div",59)(28,"p"),r(29,"Qualification"),n(),a(30,"p")(31,"strong"),r(32),n()()(),a(33,"div",60)(34,"p"),r(35,"Assessment method"),n(),p(36,kt,3,1,"p",61)(37,Dt,2,0,"p",61),n(),p(38,Rt,6,1,"div",62),n(),p(39,Pt,9,3,"div"),p(40,Nt,1,1)(41,Vt,4,0,"div",63),a(42,"div",64),p(43,Qt,15,4,"div",65),p(44,Ut,7,6,"div",65),n()()()}if(i&2){let e=d().$implicit,t=d(3);h("iconArrowLeft",t.iconArrowLeft),l(),h("ngClass",V(19,dt,!t.iconArrowLeft)),l(4),g(e.unitName),l(2),_(t.programmeComponents[e.qualificationId].qualificationStandardName?7:-1),l(4),g(k(12,16,e.dateOfResult,"dd MMMM yyyy")),l(6),_(t.programmeComponents[e.qualificationId].percentageRequired&&e.percentage?17:18),l(3),_(e.grade&&t.programmeComponents[e.qualificationId].levelGraded&&t.programmeComponents[e.qualificationId].levelApprenticeship&&!S(21,B).includes(e.grade)?20:-1),l(3),g(e.assessmentResult),l(),h("ngClass",ue(24,ct,S(22,it).includes(e.assessmentResult),S(23,B).includes(e.assessmentResult))),l(8),g(t.programmeComponents[e.qualificationId].levelName),l(4),_(e.methodOfAssessment?36:37),l(2),_(e.satTrainingProviderOrganisationId&&t.trainingProviders[e.satTrainingProviderOrganisationId]?38:-1),l(),_(S(27,it).includes(e.assessmentResult)&&t.programmeComponents[e.qualificationId].levelGraded&&e.weighting!==void 0&&e.weighting!==null?39:-1),l(),_(t.sepaExcludedCodes.includes(e.unitLocalCode)?41:40),l(3),_(S(28,B).includes(e.assessmentResult)?43:-1),l(),_(t.displayResitInfoBlock(e)?44:-1)}}
3function Kt(i,s){if(i&1&&(a(0,"div",43),p(1,Gt,45,29,"fab-accordion",45),n()),i&2){let e=s.$implicit,t=d(3);l(),_(S(1,st).includes(e.assessmentResult)&&t.programmeComponents[e.qualificationId]?1:-1)}}function Wt(i,s){if(i&1&&(a(0,"div",44),v(1,"fab-button",35),n()),i&2){let e=d(3);l(),h("button",e.loadMoreButton)}}function Jt(i,s){if(i&1&&(a(0,"div",9)(1,"div",38)(2,"h4")(3,"strong"),r(4,"Results"),n()(),a(5,"div",39)(6,"fab-accordion",40)(7,"div",41)(8,"p")(9,"strong"),r(10,"Why is the percentage showing n/a? "),n(),r(11,"If the result sits on a non-graded qualification, the percentage score will show as n/a. If the qualification is graded you'll see a percentage for each assessment. If the assessment has been completed by recognition of prior learning (RPL) or an external exemption, 70% is awarded. If the assessment has been transferred over from a previous standard please refer to the "),a(12,"a",42),r(13,"transitional arrangements document"),n(),r(14,". "),n()()()()(),p(15,Et,2,0,"div"),M(16,Kt,2,2,"div",43,q),p(18,Wt,2,1,"div",44),n()),i&2){let e=d(2);l(6),h("title",e.percentageExplained),l(9),_(e.loadedResults?-1:15),l(),Y(e.resultsToDisplay),l(2),_(e.resultsPagination?18:-1)}}function Xt(i,s){i&1&&(a(0,"div",10)(1,"p"),r(2,"There are no results available. Please try amending or clearing the filters you've applied."),n()())}function Zt(i,s){if(i&1&&(a(0,"div",4),v(1,"fab-notification",7),p(2,wt,26,9,"div",8),p(3,Jt,19,3,"div",9),p(4,Xt,3,0,"div",10),n()),i&2){let e=d();l(),h("notification",e.noResultsNotification)("isNotificationOpen",e.noResultsNotification.isOpened),l(),_(e.filtersLoaded?2:-1),l(),_(e.resultsToDisplay&&e.hasValidResults(e.resultsToDisplay)&&e.programmeComponents?3:-1),l(),_(e.loadedResults&&(!e.resultsToDisplay||!e.hasValidResults(e.resultsToDisplay))?4:-1)}}var wi=(()=>{let s=class s{constructor(t,o,c,m,f,y,D,T){this.unitResultsService=t,this.myQualificationsLayoutService=o,this.trainingProviderService=c,this.authService=m,this.featureFlagService=f,this.programmeComponentService=y,this.documentGenerationService=D,this.datePipe=T,this.contactHasResults=!1,this.results=null,this.resultsToDisplay=null,this.resultsPagination=null,this.qualificationFilters=null,this.percentageExplained="Percentage explained",this.resultsLimit=10,this.sepaExcludedCodes=["AARF1","PPRF1","SIAF1","PRDI1","AATEPA4V12","AATEPA2V14"],this.l4patbEnabled$=this.featureFlagService.isFeatureEnabled("L4PATB"),this.isCollapsed=!1,this.noResultsNotification=Je,this.dropdownQuals=Xe,this.dropdownAssessments=Ze,this.allShownQualCodes=et.concat(Ke),this.loadMoreButton={text:"Load more",action:{type:"callback",callback:this.loadMore.bind(this)},type:"primary",aria:"Load more"},this.applyFiltersButton={text:"Apply filters",action:{type:"callback",callback:this.applyFilters.bind(this)},type:"primary",aria:"Apply filters"},this.iconArrowLeft=!1,this.resits={},this.resitRequestsMade=[],this.loadedResults=!1,this.filtersApplied=!1,this.todayDate=new Date,this.l4patbEnabled$.pipe(U()).subscribe(u=>{u&&(this.sepaExcludedCodes.push("SDIN1"),this.sepaExcludedCodes.push("PAPD1"),this.sepaExcludedCodes.slice(this.sepaExcludedCodes.indexOf("AATEPA2V14"),1),this.sepaExcludedCodes.slice(this.sepaExcludedCodes.indexOf("AATEPA4V12"),1))}),this.authService.getCurrentUser().pipe(U()).subscribe({next:u=>{this.contactId=this.myQualificationsLayoutService.isAdmin()&&this.myQualificationsLayoutService.userSelected?this.myQualificationsLayoutService.userSelected.contactId:u["custom:contact_id"]}}),this.getResultsAndResultsData(),this.prepareFilters(),this.myQualificationsLayoutService.changeDevice$.subscribe(u=>{u==="mobile"?this.iconArrowLeft=!1:this.iconArrowLeft=!0})}ngOnInit(){}hasValidResults(t){return!!t.find(o=>["Not Yet Competent","Not yet achieved","Achieved","Competent"].indexOf(o.assessmentResult)!==-1)}loadMore(){this.getResultsAndResultsData("loadMore")}onPresetRangeSelection(t,o){let c=new Date;switch(t){case"days":c.setDate(this.todayDate.getDate()-(o>0?o-1:o)),c.setUTCHours(0,0,0,0),this._dateChanged([c,this.todayDate]);break;case"thisMonth":let m=new Date(c.getFullYear(),c.getMonth(),1);this._dateChanged([m,this.todayDate]);break;case"lastMonth":let f=new Date(c.getFullYear(),c.getMonth()-1,1),y=new Date(c.getFullYear(),c.getMonth(),0);this._dateChanged([f,y]);break}this._datePicker&&(this._datePicker.overlayVisible=!1)}_dateChanged(t){this.dateSelection=t}getSelectedQualsOptions(t){this.qualsSelected=t,this.assessmentsSelected=null,this.dropdownAssessments.options=this.qual
3ificationFilters.assessments.filter(o=>this.qualsSelected&&this.qualsSelected.length>0?this.isQualChild(o.id):o).map(o=>({label:o.name,value:o.id,assessment:o,selected:!0})),this.dropdownAssessments=Object.assign({},this.dropdownAssessments)}isQualChild(t){return this.qualsSelected.find(o=>o.qualification.children.indexOf(t)!==-1)}getSelectedAssessmentsOptions(t){this.assessmentsSelected=t}applyFilters(){this.filtersApplied=!0,this.qualsSelectedDisplayed=this.qualsSelected,this.assessmentsSelectedDisplayed=this.assessmentsSelected,this.datesFilteredBy=structuredClone(this.dateSelection),this.getResultsAndResultsData()}resetFilters(){this.qualsSelected=null,this.qualsSelectedDisplayed=null,this.assessmentsSelected=null,this.assessmentsSelectedDisplayed=null,this.dropdownQuals.options=this.qualificationFilters.qualifications.map(t=>({label:t.name,value:t.id,qualification:t})),this.dropdownQuals=Object.assign({},this.dropdownQuals),this.dropdownAssessments.options=this.qualificationFilters.assessments.map(t=>({label:t.name,value:t.id,assessment:t})),this.dropdownAssessments=Object.assign({},this.dropdownAssessments),this.dateSelection=null,this.datesFilteredBy=null,this.filtersApplied=!1,this.getResultsAndResultsData()}prepareFilters(){this.unitResultsService.getFiltersContent(this.contactId,{showOnCar:!0,statementOfAchievement:!0}).subscribe({next:t=>{this.qualificationFilters=t,this.dropdownQuals.options=t.qualifications.map(o=>({label:o.name,value:o.id,qualification:o})),this.dropdownAssessments.options=t.assessments.map(o=>({label:o.name,value:o.id,assessment:o})),this.filtersLoaded=!0},error:t=>console.log(t)})}getResitsData(t){!t||this.resitRequestsMade.includes(t)||(this.resitRequestsMade.push(t),this.programmeComponentService.getResits(this.contactId,t).subscribe(o=>{if(o&&o.length>0){let c=o.reduce((m,f)=>j(R({},m),{[f.componentid]:f}),{});this.resits=R(R({},this.resits),c)}},o=>{console.log(o)}))}downloadFeedbackPDF(t){this.documentGenerationService.createFeedbackPDF(this.contactId,t).subscribe(o=>{let c=`Assessment performance feedback ${this.datePipe.transform(new Date,De)}.pdf`,m=window.URL.createObjectURL(o),f=document.createElement("a");f.href=m,f.download=c,f.click()},o=>{console.log(o)})}getBody(){let t={contactId:this.contactId,assessments:this.getAssesmentsIds(),sort:"latest",limit:this.resultsLimit};if(this.dateSelection?.[0]){let o=this.dateSelection[0],c=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0,0)),m=this.dateSelection[1]??this.dateSelection[0],f=new Date(Date.UTC(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999));t.date={from:c.toISOString(),to:f.toISOString()}}return t}getAssesmentsIds(){return this.assessmentsSelected&&this.assessmentsSelected.length>0?this.assessmentsSelected.map(t=>t.value):this.qualsSelected&&this.qualsSelected.length>0?this.qualsSelected.map(t=>t.qualification.children).flat():[]}getResultsAndResultsData(t=null){this.loadedResults=!1,this.loadMoreButton.text="Loading...",this.loadMoreButton.glyph={icon:Re.LOOP2,glyphAnimation:"spin"};let o=this.getBody();t==="loadMore"?o.lastEvaluatedKey=this.resultsPagination:this.resultsToDisplay=null,this.unitResultsService.getMultipleResults(o).subscribe(c=>{this.contactHasResults=!0,this.resultsPagination=c.lastEvaluatedKey,t==="loadMore"?this.results=this.results.concat(c.items):this.results=c.items;let m=[],f=[];Object.values(this.results).forEach(y=>{y.satTrainingProviderOrganisationId&&m.indexOf(y.satTrainingProviderOrganisationId)===-1&&m.push(y.satTrainingProviderOrganisationId),f.indexOf(y.qualificationId)===-1&&f.push(y.qualificationId)}),ee({requestOne:this.trainingProviderService.getTrainingProviderNames(m).pipe(P(()=>z(null))),requestTwo:this.programmeComponentService.getQualsTreeDataBy("level",f).pipe(P(()=>z(null)))}).subscribe(({requestOne:y,requestTwo:D})=>{if(y?this.trainingProviders=y.reduce((T,u)=>j(R({},T),{[u.organisationId]:u}),{}):this.trainingProviders={},D){this.programmeComponents={};for(let T in D){let u=D[T];if(this.programmeComponents[T]=u,u.children)for(let W in u.children){let O=u.children[W];if(this.programmeComponents[W]=O,O.children)for(let J in O.children){let E=O.children[J];if(E.levelName=u.name,E.levelGraded=u.gradedQualification,E.levelApprenticeship=u.apprenticeshipQualification,this.programmeComponents[J]=E,E.children)for(let X in E.children){let N=E.children[X];N.levelName=u.name,N.levelGraded=u.gradedQualification,N.levelApprenticeship=u.apprenticeshipQualification,this.programmeComponents[X]=N}}}}}else this.programmeComponents={};this.loadedResults=!0,this.loadMoreButton.glyph=null,this.loadMoreButton.text="Load more",this.resultsToDisplay=this.results})},c=>{console.log(c),this.loadedResults=!0}).add(()=>{})}isAfterMinimumFeedbackDate(t){let o=new Date(Date.UTC(2017,8,4));return new Date(t)>=o}getDate(t){if(!t)return;if(typeof t!="string")return t;let o=t.split("/");return new Date(+o[2],+o[1]-1,+o[0])}displayResitInfoBlock(t){return this.resits&&this.resits[t.qualificationId]&&this.resits[t.qualificationId].resitruleapply&&(this.resits[t.qualificationId].scheduledassessmentdate||this.resits[t.qualificationId].centrename||this.resits[t.qualificationId].remainingresits&&this.resits[t.qualificationId].remainingresitsuntil)}onResultToggle(t,o){t&&this.getResitsData(this.programmeComponents[o.qualificationId].topLevelComponentId)}};s.\u0275fac=function(o){return new(o||s)(w(tt),w(He),w(Me),w($),w(Ye),w(Le),w(We),w(L))},s.\u0275cmp=ne({type:s,selectors:[["app-yar"]],viewQuery:function(o,c){if(o&1&&re(Q,5),o&2){let m;le(m=se())&&(c._datePicker=m.first)}},features:[me([L])],decls:14,vars:8,consts:[["buttonbar",""],[1,"yar-page"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"yar-page__no-results"],[1,"yar-page__has-results"],["href","/assesment/cba-five-steps/prepare"],["href","/assessments/students/results","target","_BLANK"],[3,"notification","isNotificationOpen"],[1,"yar-page__filters"],[1,"yar-page__results"],[1,"text-center"],[1,"yar-page__filters--heading"],[1,"row"],[1,"col-sm-4","col-xs-12"],[1,"yar-page__filters--filter-box"],[1,"yar-page__filters--date-tag"],[3,"outputReturnSelectedOptions","content"],[1,"mt-5","self-end-safe","w-full","md:w-2/5","lg:w-1/4"],["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"],[1,"yar-page__filters-applied"],[1,"yar-page__filters--apply-reset"],[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,"yar-page__filters-applied--qualifications"],[1,"yar-page__filters-applied--card"],[1,"yar-page__filters-applied--assessments"],[3,"button"],[3,"click"],[1,"icon","icon-cross-small"],[1,"yar-page__results--title"],[1,"yar-page__results--percentage-explained"],[1,"accordion",3,"title"],["body",""],["href","/files/AAT-AQ2016-Q2022-transitional-arrangements.pdf","target","_blank"],[1,"yar-page__accordion"],[1,"yar-page__results--show-more"],[3,"iconArrowLeft"],[3,"onToggle","iconArrowLeft"],["header","",1,"
3yar-page__accordion-header",3,"ngClass"],[1,"yar-page__accordion-header--heading"],[1,"yar-page__accordion-header--heading-group"],[1,"yar-page__accordion-header--tag"],[1,"yar-page__accordion-header--info"],[1,"yar-page__accordion-header--percentage"],[1,"yar-page__accordion-header--percentage-number"],[1,"yar-page__accordion-header--grade"],[1,"yar-page__accordion-header--result"],[3,"ngClass"],["body","",1,"yar-page__accordion-body"],[1,"yar-page__accordion-body--heading"],[1,"yar-page__accordion-body--heading-qual"],[1,"yar-page__accordion-body--heading-method"],[1,""],[1,"yar-page__accordion-body--heading-place"],[1,"yar-page__accordion-body--extra-support"],[1,"row","yar-page__accordion-body--bottom-row"],[1,"col-xs-12",3,"ngClass"],[1,"yar-page__accordion-header--grade-text"],[1,"yar-page__accordion-body--info"],["href","/learning-portal"],[1,"yar-page__accordion-body-table"],[1,"yar-page__accordion-body-table--head"],[1,"task"],[1,"flex-1"],[1,"yar-page__accordion-body-table--row"],[1,"yar-page__accordion-body--pdf"],["href","https://identity-server.smartepa.co.uk/Identity/Account/Login"],["href","/assessments/students/results/enquiries-appeals"],[1,"yar-page__accordion-body--resit-info"],[1,"icon","icon-clock"]],template:function(o,c){o&1&&(a(0,"div",1)(1,"p"),r(2,"On this page you can find the results of all the AAT assessments you've taken."),n(),a(3,"p"),r(4," This page is not a certificate. If you're looking for a printed document to prove the skills and knowledge you've gained for recruiters or your employer, download "),a(5,"a",2),r(6," your Statement of Achievement"),n(),r(7,". "),n(),p(8,_t,2,0,"p"),F(9,"async"),oe(10,mt,2,0,"p"),p(11,ut,2,0,"div"),p(12,gt,18,2,"div",3),p(13,Zt,5,5,"div",4),n()),o&2&&(l(5),h("routerLink",S(7,lt)),l(3),_(ge(9,5,c.l4patbEnabled$)?8:10),l(3),_(!c.loadedResults&&!c.contactHasResults?11:-1),l(),_(c.loadedResults&&!c.contactHasResults?12:-1),l(),_(c.contactHasResults?13:-1))},dependencies:[Ce,he,we,be,Se,ze,je,qe,Pe,Oe,Te,Ee,Fe,Ve,Ne,Be,Ge,Ue,ke,Q,Ae,Ie,$e,Qe,xe,L],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.yar-page .dropdown-multiple__options{bottom:0}.yar-page__no-results{margin-top:10vh;border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:2px;padding:25px;text-align:center}.yar-page__no-results h4{margin-bottom:20px}.yar-page__no-results ul{list-style:disc}.yar-page__no-results li{list-style:disc;text-align:center;list-style-position:inside}.yar-page__filters{margin-top:10vh}.yar-page__filters--heading,.yar-page__filters--filter-tag{margin-bottom:0}.yar-page__filters--filter-box{margin-top:20px;max-width:300px;position:relative}.yar-page__filters--filter-box label{font-size:14px;margin-bottom:.5em;display:inline-block}.yar-page__filters--apply-reset{margin:30px 0;color:#00ab4e;display:flex}.yar-page__filters--apply-reset div{margin-top:10px;margin-left:25px}.yar-page__filters-applied{font-size:14px;margin-top:30px}.yar-page__filters-applied p{margin:0}.yar-page__filters-applied>div{margin:20px 0}.yar-page__filters-applied--card{width:fit-content;padding:5px;background:#e6e6e6;border-radius:2px;margin:10px 10px 10px 0}.yar-page__filters-applied--qualifications,.yar-page__filters-applied--assessments{display:flex;flex-wrap:wrap}.yar-page__results{margin:5vh 0}.yar-page__results--title{display:flex;width:100%;justify-content:space-between}.yar-page__results--title .accordion{margin-bottom:0;border:none;font-size:14px}.yar-page__results--title .accordion h4{color:#00ab4e}.yar-page__results--percentage-explained{margin-top:-12px;max-width:205px}.yar-page__results--percentage-explained h4{font-size:15px}.yar-page__results--percentage-explained .accordion__content{margin-left:calc(-100% + 120px)}.yar-page__results--show-more{text-align:center}.yar-page__accordion{margin:20px 0}.yar-page__accordion-header{display:flex;font-size:14px;margin-left:25px;width:100%;justify-content:space-between}.yar-page__accordion-header p{margin-top:0;margin-bottom:5px}.yar-page__accordion-header.mobile{margin-left:0}.yar-page__accordion-header--info{display:flex;flex:1;flex-direction:column}@media (min-width: 768px){.yar-page__accordion-header--info{flex:3;flex-direction:row}}.yar-page__accordion-header .icon-arrow-up:before,.yar-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}.yar-page__accordion-header--heading{flex:2}
3.yar-page__accordion-header--heading-group{display:flex;flex-wrap:wrap}.yar-page__accordion-header--grade{flex:1;text-align:center}.yar-page__accordion-header--grade-text{font-size:20px;font-weight:600;margin-bottom:0}@media (min-width: 992px){.yar-page__accordion-header--grade-text{font-size:30px}}.yar-page__accordion-header--percentage,.yar-page__accordion-header--result{flex:1;text-align:center}.yar-page__accordion-header--result .icon-success{color:#008048;font-size:20px}@media (min-width: 992px){.yar-page__accordion-header--result .icon-success{font-size:30px}}.yar-page__accordion-header--result .icon-error{color:#31373e;font-size:20px}@media (min-width: 992px){.yar-page__accordion-header--result .icon-error{font-size:30px}}.yar-page__accordion-header--tag{border-radius:2px;background-color:#00ab4e;padding:2.5px 5px;color:#000;font-size:11px;margin-right:5px;display:block;width:fit-content;height:max-content}@media (min-width: 992px){.yar-page__accordion-header--tag{font-size:14px;padding:5px 10px;display:initial;width:fit-content;margin-right:25px}}.yar-page__accordion-header--percentage-number{font-size:20px;font-weight:600;margin-bottom:0}@media (min-width: 992px){.yar-page__accordion-header--percentage-number{font-size:30px}}.yar-page__accordion-body{font-size:14px}@media (min-width: 992px){.yar-page__accordion-body{padding:20px 40px;font-size:16px}}.yar-page__accordion-body--heading{margin:30px 0}@media (min-width: 992px){.yar-page__accordion-body--heading{display:flex;justify-content:space-between}}@media (min-width: 992px){.yar-page__accordion-body--heading-method{margin:0 10px}.yar-page__accordion-body--heading-place{margin:0 0 0 10px}.yar-page__accordion-body--heading-qual{margin:0 10px 0 0}}.yar-page__accordion-body--info{margin:30px 0}.yar-page__accordion-body--bottom-row>div{margin-top:30px}@media (min-width: 992px){.yar-page__accordion-body--bottom-row>div:not(:only-of-type):first-of-type{padding-right:15px}.yar-page__accordion-body--bottom-row>div:not(:only-of-type):last-of-type{padding-left:15px}}.yar-page__accordion-body--resit-info>div{border:1px solid rgb(229.5,229.5,229.5);border-radius:2px;padding:5px;width:auto;max-width:500px;margin:10px 0;position:relative}.yar-page__accordion-body--resit-info>div i{position:absolute;font-size:20px;top:12px;right:11px}.yar-page__accordion-body--resit-info>div p{margin:5px}.yar-page__accordion-body--resit-info>div p:first-of-type{padding-right:25px}.yar-page__accordion-body--pdf{margin:30px 0}.yar-page__accordion-body--pdf p{cursor:pointer;color:#00ab4e}.yar-page__accordion-body--pdf p:hover{text-decoration:underline}.yar-page__accordion-body-table{display:table;border-collapse:collapse;font-size:12px}@media (min-width: 992px){.yar-page__accordion-body-table{font-size:initial}}.yar-page__accordion-body-table--head{display:table-row;border-bottom:1px solid rgb(229.5,229.5,229.5);border-top:1px solid rgb(229.5,229.5,229.5)}@media (min-width: 992px){.yar-page__accordion-body-table--head{padding:15px 15px 30px}}.yar-page__accordion-body-table--head .task{padding-right:5px;text-align:left}.yar-page__accordion-body-table--head span{display:table-cell;padding:2px;vertical-align:middle;text-align:center}@media (min-width: 768px){.yar-page__accordion-body-table--head span{padding:10px}}.yar-page__accordion-body-table--row{display:table-row;border-bottom:1px solid rgb(229.5,229.5,229.5);padding:15px 0}@media (min-width: 768px){.yar-page__accordion-body-table--row{padding:15px}}.yar-page__accordion-body-table--row .task{padding-right:5px;text-align:left}.yar-page__accordion-body-table--row .flex-1{text-align:center}.yar-page__accordion-body-table--row div{display:table-cell;padding:2px;vertical-align:middle;text-align:center}@media (min-width: 768px){.yar-page__accordion-body-table--row div{padding:10px}}.yar-page__accordion-body-table--row span>span{text-align:center}.dropdown-multiple__options{bottom:0!important}.form-group.hidden{width:0;margin:0;border:none;padding:0}
4`],encapsulation:2});let i=s;return i})();export{wi as YarComponent};

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.