1import{Mb as S,Nb as P}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{c as L}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A,t as m}from"./chunk-PO2RDVKE.js";import{Ac as C,Bc as M,Pb as l,Rb as d,Tb as _,Ub as w,Vb as T,Wb as g,Xb as s,Yb as n,Za as y,Zb as u,da as b,db as p,lc as h,pb as f,ub as x,vb as v,zc as r}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var k=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=v({type:o}),o.\u0275inj=b({providers:[m],imports:[A,P,A]});let i=o;return i})();function R(i,o){i&1&&(s(0,"p"),r(1," If you need to take action and you're not sure what to do, refer to the communications we've sent about the application or renewal, or contact us on "),s(2,"a",5),r(3,"[email protected]"),n(),r(4," or "),s(5,"a",6),r(6,"+44 (0)20 3735 2468"),n(),r(7,". "),n())}function Y(i,o){i&1&&(s(0,"div",3)(1,"div",7)(2,"p")(3,"strong"),r(4," You have no pending applications. If you were expecting to see an application here, contact us on "),s(5,"a",5),r(6,"[email protected]"),n(),r(7," or "),s(8,"a",6),r(9,"+44 (0)20 3735 2468"),n(),r(10,". "),n()()()())}function q(i,o){i&1&&u(0,"i",10)}function E(i,o){if(i&1&&u(0,"p",11),i&2){let c=h().$implicit;g("innerHtml",c.currentStep,y)}}function F(i,o){if(i&1&&(s(0,"div",7)(1,"div",8)(2,"h3")(3,"strong"),r(4),n()(),s(5,"p",9)(6,"strong"),r(7,"Status:\xA0"),n(),r(8),l(9,q,1,0,"i",10),n(),l(10,E,1,1,"p",11),n()()),i&2){let c=o.$implicit;p(4),C(c.title),p(4),M(" ",c.status," "),p(),d(c.requiresUserAction?9:-1),p(),d(c.currentStep?10:-1)}}function I(i,o){if(i&1&&(s(0,"div",3),w(1,F,11,4,"div",7,_),n()),i&2){let c=h();p(),T(c.applications)}}var j=(()=>{let o=class o{constructor(e,a){this.route=e,this.datePipe=a,this.pageData={awaitinglevel4:{order:1,approved:"You've completed your Level 4 qualification.",awaitingvalidation:"You haven't completed your Level 4 qualification."},fitandproper:{order:2,approved:"Your fit and proper suitability assessment has been successful.",awaitingvalidation:"Your fit and proper suitability assessment is awaiting review. Once submitted, these reviews can take up to 12 weeks."},selfemployedunderreview:{order:3,approved:"We've reviewed the details of your existing licence and/or self-employment status and confirmed that they meet our requirements. You don't need to hold an AAT licence.",awaitingvalidation:"The details of your existing licence and/or self-employment status are awaiting review. Once submitted, these reviews can take up to 10 days."},servicesoutsidescheme:{order:4,approved:"We've reviewed the details of your existing licence and/or self-employment status and confirmed that they meet our requirements. You don't need to hold an AAT licence.",awaitingvalidation:"The details of your existing licence and/or self-employment status are awaiting review. Once submitted, these reviews can take up to 10 days."},selfemployedlicencerequired:{order:5,approved:"Your licence application has been successful.",awaitingvalidation:`You need an AAT licence. If you haven't yet applied for it, <a href="/membership/licensed-membership-be-your-own-boss/apply">start your application</a>. If you've submitted it already, note our review can take up to 10 days.`},reinstatementcpdpathway:{order:6,approved:"You've completed the MAAT CPD pathway.",awaitingvalidation:'You need to complete the MAAT CPD pathway. You can complete this in the <a href="/learning-portal">AAT Lifelong Learning Portal</a>.'},reinstatementcpdupload:{order:7,approved:"Your CPD records meet our requirements.",awaitingvalidation:"Your CPD records need review. Once they're submitted, our review can take up to 10 days. If we need more information from you, we'll email you. Please check your emails in case we've requested further information."}},this.anyRequiresUserAction=!1,this.standardHeroData={title:"Your membership applications progress",align:"left"},this.applicationData=e.snapshot.data.membershipApplications}ngOnInit(){this.applications=this.getApplicationsToDisplay()}getApplicationsToDisplay(){let e=[];for(let a of this.applicationData){let t=a.applicationProgressDetail==="With Customer";e.push({title:this._getTitle(a.applicationRouteName),status:this._getStatusCopy(a,t),requiresUserAction:t,currentStep:this._getApplicationCurrentStepCopy(a,t)}),t&&(this.anyRequiresUserAction=!0)}return e}_getTitle(e){switch(e){case"MAAT PP":case"MAAT PP - AATQB/Student AATQB/LB":return"Your full membership (MAAT) application";case"AATQB PP":case"AATQB PP FMAAT":case"AATQB PP MAAT":case"AATQB PP Student":return"Your bookkeeping membership (AATQB) application";case"FMAAT Membership":return"Your fellow membership (FMAAT) application";case"Licence Renewal - MAAT":case"Licence Renewal - AATQB":case"Licence Renewal - FMAAT":case"Licence Renewal - LA to LB - MAAT":case"Licence Renewal - LB to
1LA - MAAT":case"Licence Renewal - LA to LB - FMAAT":case"Licence Renewal - LB to LA - FMAAT":case"Licence Renewal - Licence not required - MAAT":case"Licence Renewal - Licence not required - AATQB":case"Licence Renewal - Licence not required - FMAAT":return"Licence renewal";case"FMAAT Membership Renewal":case"MAAT Membership Renewal":case"AATQB Membership Renewal":case"Affiliate Membership Renewal":return"Membership renewal";case"Licensed Bookkeeper - MAAT":case"Licensed Bookkeeper - AATQB":case"Licensed Bookkeeper - FMAAT":case"Licensed Accountant - MAAT":case"Licensed Accountant - FMAAT":return"Licence application";default:return e}}_getStatusCopy(e,a){let t=e.applicationRouteName.includes("Renewal")?"renewal":"application";return a?`Your ${t} submitted on ${this.datePipe.transform(e.applicationDate,"dd MMM yyyy")} is in progress. An action is required by you.`:`Your ${t} submitted on ${this.datePipe.transform(e.applicationDate,"dd MMM yyyy")} is currently being reviewed.`}_getSanitizedName(e,a=!0){if(!e)return e;let t=e.toLowerCase().replace("license","licence").replace("completion","").trim();return a&&(t=t.replace(/[^a-z0-9]/g,"")),t}_getCurrentStepCopy(e){let a=this._getSanitizedName(e.name),t=this._getSanitizedName(e.status);return!this.pageData[a]||!this.pageData[a][t]?"":this.pageData[a][t]}_getApplicationCurrentStepCopy(e,a){let t=e.application.prerequisiteItems?e.application.prerequisiteItems.find(D=>this._getSanitizedName(D.name,!1)===this._getSanitizedName(e.applicationProgress,!1)):{name:e.applicationProgress,status:"awaitingvalidation"};return t?this._getCurrentStepCopy(t):""}};o.\u0275fac=function(a){return new(a||o)(f(L),f(m))},o.\u0275cmp=x({type:o,selectors:[["app-application-progress"]],decls:14,vars:4,consts:[[1,"application-progress"],[3,"content"],[1,"container-fluid"],[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"],["href","mailto:[email protected]"],["href","tel:+442037352468"],[1,"col-xs-12"],[1,"application-progress__application-box"],[1,"application-progress__application-box--subtext"],[1,"icon","icon-warning"],[1,"small-text",3,"innerHtml"]],template:function(a,t){a&1&&(s(0,"div",0),u(1,"fab-standard-hero",1),s(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",3)(6,"div")(7,"p"),r(8," This page shows any pending applications you've submitted for AAT membership or Licence application, and their status. "),n(),s(9,"p"),r(10," Where a status shows you need to take action, please do so as soon as possible to avoid delays. If it's listed here, your application can't be approved until it's resolved. "),n(),l(11,R,8,0,"p"),n()(),l(12,Y,11,0,"div",3),l(13,I,3,0,"div",3),n()()()()),a&2&&(p(),g("content",t.standardHeroData),p(10),d(t.anyRequiresUserAction?11:-1),p(),d(!t.applications||t.applications.length===0?12:-1),p(),d(t.applications&&t.applications.length>0?13:-1))},dependencies:[k,S],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.application-progress .icon{font-size:20px}.application-progress .icon.icon-success{color:#00ab4e}.application-progress .standard-hero{background-color:#e6e6e6}.application-progress fab-accordion{display:block;background-color:#fff;margin-bottom:30px}.application-progress__application-box{padding:1em;background-color:#fff;border:1px solid #c3c3c3;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;margin-bottom:30px}.application-progress__accordion-header h3,.application-progress__application-box h3{max-width:calc(100% - 30px)}.application-progress__accordion-header--subtext,.application-progress__application-box--subtext{display:flex;align-items:center}.application-progress__accordion-header--subtext strong,.application-progress__application-box--subtext strong{align-self:baseline}.application-progress__accordion-header--subtext i.icon-warning,.application-progress__application-box--subtext i.icon-warning{margin-left:10px;color:#e22b25}.application-progress__accordion-header p:last-of-type,.application-progress__application-box p:last-of-type{margin-bottom:0}.application-progress__accordion-body{background-color:#fff;margin:-1em;padding:1em}.application-progress__box{box-sizing:border-box;border:1px solid #dce6f0;background-color:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;padding:10px;display:flex;align-items:center;margin-bottom:15px;width:100%}.application-progress__box-content{flex-grow:1}.application-progress__box-content p{margin:0}.application-progress__box-content p.small-text{font-size:12px}.application-progress__box--icon{margin-left:10px}.main-panel{background-color:#f9f9f9;max-height:initial;height:initial} 2`],encapsulation:2});let i=o;return i})();export{j as ApplicationProgressComponent};
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.