1import{a as y,d as G,e as H,f as N,h as q,m as K}from"./chunk-SGGWWVGS.js";import"./chunk-JEL6HJ7P.js";import{Wa as Y,aa as j,cc as $,ib as D,sa as V,wc as F}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{e as P}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as O,p as I,q as M}from"./chunk-PO2RDVKE.js";import{Ab as f,J as v,Pb as p,Qb as E,Rb as m,Tc as B,Uc as A,Wb as r,Xb as o,Yb as i,Yc as R,Zb as _,db as l,dc as h,ec as k,g as C,ha as g,jc as w,lc as d,oa as S,pa as T,ub as L,uc as x,zc as a}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";function U(t,n){if(t&1){let e=k();o(0,"fab-organisation-picker",3),w("orgChange",function(c){S(e);let u=d();return T(u.onOrgChange(c))}),i()}t&2&&r("staffCanChangeType",!1)}function z(t,n){t&1&&h(0)}function J(t,n){if(t&1&&(f(0,z,1,0,"ng-container",5),o(1,"section",6),_(2,"fab-button",7),i()),t&2){let e=d(2),s=x(6);r("ngTemplateOutlet",s),l(2),r("button",e.startBtn)}}function Q(t,n){t&1&&(o(0,"p"),a(1," You don't have any remote invigilation assessments scheduled within the last 45 days, so you can't submit an incident report at this time. "),i(),o(2,"p"),a(3," If you believe this is an error, please contact our Customer Support team on "),o(4,"a",9),a(5,"+44 (0)20 3735 2468"),i(),a(6,"."),_(7,"br"),a(8,"Lines are open 09.00 to 17.00 (UK time), Monday to Friday. "),i())}function W(t,n){t&1&&(o(0,"p"),a(1,"You don't have the required role to access this incident reporting service."),i(),o(2,"p"),a(3,"If you believe this is an error, please contact your centre administrator or our Partner Support team."),i())}function X(t,n){if(t&1&&(o(0,"div",4)(1,"h3"),a(2,"Access not available"),i(),p(3,Q,9,0)(4,W,4,0),_(5,"fab-button",8),i()),t&2){let e=d(2);l(3),m(e.isStudent?3:4),l(2),r("button",e.returnToMyAAT)}}function Z(t,n){t&1&&p(0,J,3,2)(1,X,6,2,"div",4),t&2&&m(n.eligible?0:1)}function tt(t,n){t&1&&h(0)}function et(t,n){if(t&1&&f(0,tt,1,0,"ng-container",5),t&2){d();let e=x(6);r("ngTemplateOutlet",e)}}function it(t,n){if(t&1&&(o(0,"p",12),a(1," You don't need to submit an incident report for submission-related issues. If an assessment fails to submit initially it will auto submit by the end of the day. "),i()),t&2){let e=d(2);r("fabSkeleton",e.isLoading)}}function nt(t,n){if(t&1&&(o(0,"p",12),a(1," You don't need to submit an incident report for submission-related issues. If an assessment fails to submit initially, please follow the Test Recovery process outlined in the troubleshooting guide. AAT monitors these and will contact you if guidance is needed for any unsubmitted assessments. "),i()),t&2){let e=d(2);r("fabSkeleton",e.isLoading)}}function ot(t,n){if(t&1&&(o(0,"ul")(1,"li",12),a(2,"Have your assessment and student information ready"),i(),o(3,"li",12),a(4,"Prepare any documents or screenshots you want to upload."),i()()),t&2){let e=d(2);l(),r("fabSkeleton",e.isLoading),l(2),r("fabSkeleton",e.isLoading)}}function at(t,n){if(t&1&&(o(0,"ul")(1,"li",12),a(2,"Have your assessment and student information ready"),i(),o(3,"li",12),a(4,"Prepare any documents or screenshots you want to upload."),i()()),t&2){let e=d(2);l(),r("fabSkeleton",e.isLoading),l(2),r("fabSkeleton",e.isLoading)}}function rt(t,n){if(t&1&&(o(0,"p",10),a(1,"Complete this form to report an assessment-related incident."),i(),o(2,"section",11)(3,"h3",12),a(4,"Please note"),i(),p(5,it,2,1,"p",12)(6,nt,2,1,"p",12),i(),o(7,"section",13)(8,"h3",12),a(9,"Before you begin:"),i(),p(10,ot,5,2,"ul")(11,at,5,2,"ul"),i()),t&2){let e=d();r("fabSkeleton",e.isLoading),l(3),r("fabSkeleton",e.isLoading),l(2),m(e.isStudent?5:6),l(3),r("fabSkeleton",e.isLoading),l(2),m(e.isStudent?10:11)}}var xt=(()=>{let n=class n{constructor(){this._service=g(H),this._contactService=g(j),this._router=g(P),this._eligibility=new C(null),this.eligibility$=this._eligibility.asObservable(),this.isLoading=!0,this.isStudent=this._contactService.contactGroups()?.includes("student"),this.isTp=this._contactService.contactGroups()?.includes("trainingprovider"),this.startBtn=G(),this.returnToMyAAT={text:"Return to MyAAT",action:{type:"link",link:"/my
1aat/dashboards",useRouterLink:!0},aria:"Return to MyAAT",type:"primary"}}ngOnInit(){this.eligibility$.subscribe(s=>{this.startBtn.disabled=!s}),(this.isStudent||this.isTp)&&(this.isStudent&&this._getEligibility(),this._service.start())}onOrgChange(s){s[0]?.organisationId&&(this._getEligibility(s[0]?.organisationId),this._service.updateOrg(s[0]))}_getEligibility(s){this.isLoading=!0,this._eligibility.next(null),this._service.isEligible(s).pipe(v(1)).subscribe({next:c=>{this._eligibility.next(c),c.eligible?this.isStudent?(this._service.pathway=N.RemoteInvigilation,this.startBtn=y(()=>this._router.navigate(K.details)),this._service.updateScheduleOption(!0)):this.startBtn=y(()=>this._router.navigate(q)):(this.startBtn=y(()=>{}),this.startBtn.disabled=!0),this.isLoading=!1}})}};n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=L({type:n,selectors:[["app-ir-landing"]],decls:7,vars:4,consts:[["primaryPageContent",""],["id","incident-report-landing"],[3,"staffCanChangeType"],[3,"orgChange","staffCanChangeType"],[1,"no-access"],[4,"ngTemplateOutlet"],["id","nav-btns"],["id","incident-reporting-primary-btn",3,"button"],[3,"button"],["href","tel:+442037352468"],[1,"centre-heading",3,"fabSkeleton"],[1,"next-box"],[3,"fabSkeleton"],["id","before-you-begin"]],template:function(c,u){if(c&1&&(o(0,"section",1),p(1,U,1,1,"fab-organisation-picker",2),p(2,Z,2,1),B(3,"async"),E(4,et,1,1,"ng-container"),i(),f(5,rt,12,5,"ng-template",null,0,R)),c&2){let b;l(),m(u.isStudent?-1:1),l(),m((b=A(3,2,u.eligibility$))?2:4,b)}},dependencies:[$,V,O,I,Y,D,F,M],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}#incident-reporting-layout #hero-container{background-color:#dce6f0;height:100px;padding:8px;text-align:center;display:flex;justify-content:center;align-items:center;border-bottom:1px solid #000000}#incident-reporting-layout #nav-btns{display:flex;flex-direction:row;justify-content:center}#incident-reporting-primary-btn{margin-left:auto}#router-content{margin:0 10%}@media (min-width: 768px){#router-content{margin:0 15%}}#incident-report-landing{margin-bottom:15px;margin-top:30px}#incident-report-landing .centre-heading{margin-top:5%;width:fit-content}#incident-report-landing .next-box{border-radius:3px;padding-top:15px;padding-bottom:15px;margin-top:30px}#incident-report-landing #before-you-begin{padding-top:15px;padding-bottom:15px}#incident-report-landing #before-you-begin li{list-style:circle;margin-left:1rem;width:fit-content}.no-access{padding:15px;margin-top:12px} 2`],encapsulation:2});let t=n;return t})();export{xt as LandingComponent};
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.