1import{a as q}from"./chunk-O2K735F6.js";import{b as U}from"./chunk-SEDYUPGI.js";import{d as O}from"./chunk-ICFYWBBT.js";import"./chunk-RJLHLO5O.js";import{c as u,e as V,f as m,m as x,n as L,o as N}from"./chunk-SGGWWVGS.js";import"./chunk-JEL6HJ7P.js";import{$a as k,Sa as w,Ua as A,_a as R,hc as j,ic as F,q as M,sa as _,wb as P}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import{m as E}from"./chunk-76O7YCWW.js";import{e as B,k as T}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as D,q as I}from"./chunk-PO2RDVKE.js";import{Tc as p,Uc as d,Wb as i,Xb as a,Yb as l,Z as y,Zb as g,db as r,jc as b,pb as c,s as v,ub as S,zc as C}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var se=(()=>{let n=class n{constructor(t,o,e){this.service=t,this.router=o,this.auth=e,this.scheduleAssessmentCtrl=new E,this.tooltip="Select an option above to continue",this.ableToScheduleAssessment=[{label:"Yes",id:"able-to-schedule-assessment",value:!0},{label:"No",id:"not-able-to-schedule-assessment",value:!1}],this.initialData=this.service.incidentData.pipe(v(s=>s.assessmentScheduled),y(s=>{s!==void 0&&(this.nextBtn=s?this.assessmentLocationBtn:this.assessmentDetailsBtn)})),this.nextBtn=u(()=>{},{title:"Continue",isDisabled:!0}),this.assessmentLocationBtn=u(()=>this.router.navigate(x.details),{title:"Continue to assessment details",isDisabled:!1}),this.assessmentDetailsBtn=u(()=>this.router.navigate(L.schedulingIssue),{title:"Continue to scheduling issue",isDisabled:!1}),this.config=N(this.service.pathway,"incident-type"),this.isStudent=!1}ngOnInit(){this.auth.getCurrentUser().subscribe(t=>{this.isStudent=t["cognito:groups"].includes("student")})}onScheduleChange(t){this.service.updateScheduleOption(t.value),t.value===!0&&this.isStudent?this.service.pathway=m.RemoteInvigilation:this.service.pathway=t.value?m.SatAtAssessmentCentre:m.UnableToSchedule}};n.\u0275fac=function(o){return new(o||n)(c(V),c(B),c(M))},n.\u0275cmp=S({type:n,selectors:[["app-incident-type"]],decls:13,vars:18,consts:[[3,"config"],["header","Assessment scheduling",3,"step","stepTitle"],[3,"selectEvent","checkedVal","content"],["id","nav-btns"],["id","incident-reporting-secondary-btn",3,"button"],["id","incident-reporting-primary-btn",3,"button","positionInput","visible","tooltip"]],template:function(o,e){o&1&&(g(0,"fab-progress-indicator",0),a(1,"section")(2,"app-question-section",1)(3,"label"),C(4,"Were you able to schedule the assessment?"),l(),a(5,"fab-radio",2),p(6,"async"),b("selectEvent",function(h){return e.onScheduleChange(h)}),l(),a(7,"fab-radio",2),p(8,"async"),b("selectEvent",function(h){return e.onScheduleChange(h)}),l()()(),a(9,"section",3),g(10,"fab-button",4)(11,"fab-button",5),p(12,"async"),l()),o&2&&(i("config",e.config.progressIndicator),r(2),i("step",e.config.progressIndicator.currentStep)("stepTitle",e.config.title),r(3),i("checkedVal",d(6,12,e.initialData)===!0)("content",e.ableToScheduleAssessment[0]),r(2),i("checkedVal",d(8,14,e.initialData)===!1)("content",e.ableToScheduleAssessment[1]),r(3),i("button",e.service.genericBackButtonConfig),r(),i("button",e.nextBtn)("positionInput","left")("visible",d(12,16,e.initialData)===void 0)("tooltip",e.tooltip))},dependencies:[A,w,U,P,D,O,_,q,T,F,j,k,R,I],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%}} 2`],encapsulation:2});let f=n;return f})();export{se as IncidentTypeComponent};
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.