PageSourceSearch

https://compare.vaninsurance.co.uk/chunk-34XURW7E.js

js vaninsurance.co.uk collected 2026-10-08 19:26:35 UTC 212,726 bytes, 44 lines download raw bytes

1import{a as Ae,b as we,h as Ie}from"./chunk-PPQRW4MW.js";import{c as ke}from"./chunk-WRLGQWIA.js";import{a as de}from"./chunk-5AWOEKOO.js";import{$ as x,$a as te,$b as xe,A as p,Ab as se,B as m,Ba as k,Ca as I,Cb as L,Da as V,Db as ce,Ea as $,G as R,Ga as Q,Kb as ue,L as W,M as o,Mb as pe,Nb as me,Oa as G,P as A,Pb as N,Q as q,R as z,Sa as Z,Ta as X,U as h,Ua as ee,Ub as ve,V as f,X as u,Xb as he,Zb as _e,_ as S,_b as fe,aa as C,ac as be,ba as K,bc as ge,cc as Te,da as r,dc as De,e as Be,ea as n,fa as g,gc as Ce,hc as ye,ic as Se,ja as T,ka as v,la as c,ma as y,na as J,pb as ie,qa as F,qb as ne,ra as P,rb as oe,sa as j,ta as O,tb as re,ua as a,va as D,w as H,wa as b,wb as le,xa as E,ya as M,zb as ae}from"./chunk-XJSIXJ3W.js";var U=Be(Ae());var Me=["allForms"],Ye=["modalForm"],Ne=l=>({"hide-option":l});function Je(l,d){if(l&1&&(r(0,"span",55),a(1),n()),l&2){let e=c().$implicit;o(),b(" ",e.occupation.fullTime.jobTitle.description," ")}}function Fe(l,d){if(l&1&&(r(0,"span",55),a(1),n()),l&2){let e=c().$implicit,i=c(2);o(),b(" ",i.studentDetailsOptions.text[e.occupation.fullTime.studentStatus]," ")}}function Pe(l,d){if(l&1){let e=T();r(0,"div",43)(1,"div",44)(2,"div",45)(3,"div",46)(4,"div",47)(5,"span",48),a(6),n(),h(7,Je,2,1,"span",49)(8,Fe,2,1,"span",49),n(),r(9,"div",50)(10,"span",51),v("click",function(){let t=p(e).index,s=c(2);return m(s.editDriver(t))}),a(11,"edit"),n()()(),r(12,"p",52)(13,"span",53),a(14),n(),r(15,"span",54),a(16),n()()()()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);o(2),J("id","driver-",i,""),o(4),M(" ",t.titleOptions.text[e.personalInfo.title]," ",e.personalInfo.firstName," ",e.personalInfo.lastName," "),o(),u("ngIf",e.occupation.fullTime.jobTitle!=null&&e.occupation.fullTime.jobNature!=null),o(),u("ngIf",e.occupation.fullTime.studentStatus!=null),o(6),E(" ",t.licenseTypeOptions.text[e.drivingDetails.licenceType]," licence held for ",e.drivingDetails.yearsLicenceHeld==20?"20+":e.drivingDetails.yearsLicenceHeld," years. "),o(2),E(" ",e.claims.length>0?e.claims.length:"No"," Claims & ",e.convictions.length>0?e.convictions.length:"No"," Convictions. ")}}function je(l,d){if(l&1&&(r(0,"div")(1,"h2",39)(2,"span",40),a(3,"1"),n(),a(4," Your details "),n(),r(5,"div",41)(6,"div"),h(7,Pe,17,11,"div",42),n()()()),l&2){let e=c();o(7),u("ngForOf",e.getPersonalDriver())}}function Le(l,d){if(l&1&&(r(0,"span",55),a(1),n()),l&2){let e=c().$implicit;o(),b(" ",e.occupation.fullTime.jobTitle.description," ")}}function Ue(l,d){if(l&1&&(r(0,"span",55),a(1),n()),l&2){let e=c().$implicit,i=c(2);o(),b(" ",i.studentDetailsOptions.text[e.occupation.fullTime.studentStatus]," ")}}function He(l,d){if(l&1){let e=T();r(0,"div",43)(1,"div",44)(2,"div",45)(3,"div",46)(4,"div",58)(5,"span",48),a(6),n(),h(7,Le,2,1,"span",49)(8,Ue,2,1,"span",49),n(),r(9,"div",59)(10,"span",51),v("click",function(){let t=p(e).index,s=c(2);return m(s.editDriver(t+1))}),a(11,"edit"),n(),r(12,"span",60),v("click",function(){let t=p(e).index,s=c(2);return m(s.deleteDriver(t+1))}),n()()(),r(13,"p",61)(14,"span",53),a(15),n(),r(16,"span",54),a(17),n()()()()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);o(2),J("id","driver-",i,""),o(4),E(" ",e.personalInfo.firstName," ",e.personalInfo.lastName," "),o(),u("ngIf",e.occupation.fullTime.jobTitle!=null&&e.occupation.fullTime.jobNature!=null),o(),u("ngIf",e.occupation.fullTime.studentStatus!=null),o(7),E(" ",t.licenseTypeOptions.text[e.drivingDetails.licenceType]," licence held for ",e.drivingDetails.yearsLicenceHeld==20?"20+":e.drivingDetails.yearsLicenceHeld," years. "),o(2),E(" ",e.claims.length>0?e.claims.length:"No"," Claims & ",e.convictions.length>0?e.convictions.length:"No"," Convictions ")}}function Re(l,d){if(l&1&&(r(0,"div",56)(1,"h2",57)(2,"span",40),a(3,"2"),n(),a(4," Additional driver(s) "),n(),r(5,"div",41)(6,"div"),h(7,He,18,10,"div",42),n()()()),l&2){let e=c();o(7),u("ngForOf",e.getAdditionalDriver())}}function We(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateAddAnotherDriver()," ")}}function qe(l,d){if(l&1){let e=T();r(0,"div",62)(1,"div",63)(2,"label"),a(3,"Would you like to add another additional driver?"),n(),r(4,"div",64)(5,"div",65),g(6,"input",66),r(7,"label",67),v("click",function(){p(e);let t=c();return m(t.setAddAnotherDriver(!0))}),a(8,"Yes"),n()(),r(9,"div",65),g(10,"input",68),r(11,"label",69),v("click",function(){p(e);let t=c();return m(t.setAddAnotherDriver(!1))}),a(12,"No"),n()()(),h(13,We,2,1,"div",70),n()()}if(l&2){let e=c();o(7),S(e.validateAddAnotherDriver()!=null&&e.driverYesNoTouched?"box-error":""),o(3),u("checked",e.currentDriver.driverYesNoButton==!1),o(),S(e.validateAddAnotherDriver()!=null&&e.driverYesNoTouched?"box-error":""),o(2),u("ngIf",e.validateAddAnotherDriver()!=null&&e.driverYesNoTouched)}}function ze(l,d){if(l&1&&(r(0,"div")(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please accurately enter your personal details, as they would appear on your drivers licence, passport or birth certificate. "),n()()),l&2){let e=c(2);x("tooltip-description mobdesk ",e.showHelpText.personal?"animation":""," fade-up-animation")}}function Ke(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return m(_.maritalStatusSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);S(i==t.currentDriver.personalInfo.maritalStatus?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.maritalStatus),o(2),D(e)}}function $e(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateMaritalStatus()," ")}}function Qe(l,d){if(l&1){let e=T();r(0,"li",159)(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return m(_.titleSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);S(i==t.currentDriver.personalInfo.title?"selected":""),u("ngClass",Q(8,Ne,t.hideGenderNeutralTitles(i))),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.title),o(2),D(e)}}function Ge(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateTitle()," ")}}function Ze(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateFirstName()," ")}}function Xe(l,d){if(l&1&&(r(0,"div"),h(1,Ze,2,1,"div",70),n()),l&2){let e=c(2);o(),u("ngIf",e.validateFirstName()!=null&&!e.myNameFocusVar)}}function et(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateLastName()," ")}}function tt(l,d){if(l&1&&(r(0,"div"),h(1,et,2,1,"div",70),n()),l&2){let e=c(2);o(),u("ngIf",e.validateLastName()!=null&&!e.mySurnameFocusVar)}}function it(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.relationSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.currentDriver.personalInfo.relationToProposer?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.relationToProposer),o(2),D(e)}}function nt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateRelation()," ")}}function ot(l,d){l&1&&(r(0,"div",164)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6,"What is your relationship to the primary driver on this policy?"),n()())}function rt(l,d){if(l&1){let e=T();r(0,"div",160)(1,"div",161)(2,"label"),a(3,"Relationship to proposer "),r(4,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("proposer"))}),n()(),r(5,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.relationBox?t.relationBox=!t.relationBox:t.relationBox)}),r(6,"button",162),v("click",function(t){p(e);let s=c(2);return m(s.relationClicked(t))}),r(7,"span",80),a(8),n(),a(9,"\xA0 "),r(10,"span",81),g(11,"span",82),n()(),r(12,"div",83)(13,"ul",84),h(14,it,5,7,"li",85),n()()(),h(15,nt,2,1,"div",70)(16,ot,7,0,"div",163),n()()}if(l&2){let e=c(2);o(5),x("btn-group bootstrap-select  ",e.relationBox?"open":"",""),o(),C("",e.relationTouched&&!e.relationBox&&e.validateRelation()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.personalInfo.relationToProposer==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.relationOptions.text==null?null:e.relationOptions.text.length)<=0),f("aria-expanded",e.relationBox),o(2),b("",e.currentDriver.personalInfo.relationToProposer!=null?e.relationOptions.text[e.currentDriver.personalInfo.relationToProposer]:"Please Select"," "),o(4),x("dropdown-menu  ",e.relationBox?"open":"",""),o(),f("aria-expanded",e.relationBox),o(),u("ngForOf",e.relationOptions.text),o(),u("ngIf",e.relationTouched&&!e.relationBox&&e.validateRelation()!=null),o(),u("ngIf",e.showHelpText.proposer)}}function lt(l,d){l&1&&(r(0,"div",165)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6,"What is your relationship to the primary driver on this policy?"),n()())}function at(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return _.dobDaySelected(t,s),m(_.validateDateOfBirth(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);x("col-xs-2 ",i==t.currentDriver.personalInfo.birthDate.day?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.birthDate.day),o(2),D(e)}}function st(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return _.dobMonthSelected(t,s),m(_.validateDateOfBirth(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);x("col-xs-6 ",i==t.currentDriver.personalInfo.birthDate.month?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.birthDate.month),o(2),D(t.getFullMonthName(e))}}function ct(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return _.dobYearSelected(t,s),m(_.validateDateOfBirth(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);x("col-xs-3 ",i==t.currentDriver.personalInfo.birthDate.year?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.birthDate.year),o(2),D(e)}}function dt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateDateOfBirth()," ")}}function ut(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateUkCitizen()," ")}}function pt(l,d){l&1&&(r(0,"div",166)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," If you were born and have lived all of your life in the UK then please select \u2018Yes\u2019, otherwise select \u2018No\u2019 and choose the number of full years since you entered the UK. Armed Forces personnel who have been stationed abroad should enter select the number of full years since they last returned to the UK. "),n()())}function mt(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.yearsUkCitizenSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-4 ",i==t.currentDriver.personalInfo.yearsUkResident?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.personalInfo.yearsUkResident),o(2),D(e)}}function vt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateYearsUkCitizen()," ")}}function ht(l,d){if(l&1){let e=T();r(0,"div",167)(1,"div",168)(2,"label"),a(3,"How many years have you been resident in the UK?"),n(),r(4,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.yearsUkResidentBox?t.yearsUkResidentBox=!t.yearsUkResidentBox:t.yearsUkResidentBox)}),r(5,"button",169),v("click",function(t){p(e);let s=c(2);return m(s.yearsUkCitizenClicked(t))}),r(6,"span",80),a(7),n(),a(8,"\xA0 "),r(9,"span",81),g(10,"span",82),n()(),r(11,"div",83)(12,"ul",170),h(13,mt,5,7,"li",85),n()()(),h(14,vt,2,1,"div",70),n()()}if(l&2){let e=c(2);o(4),x("btn-group bootstrap-select  ",e.yearsUkResidentBox?"open":"",""),o(),C("",e.yearsUkResidentTouched&&!e.yearsUkResidentBox&&e.validateYearsUkCitizen()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.personalInfo.yearsUkResident==null?"bs-placeholder":"","  btn-default"),f("aria-expanded",e.yearsUkResidentBox),o(2),b("",e.currentDriver.personalInfo.yearsUkResident!=null?e.yearsUkResidentOptions.text[e.currentDriver.personalInfo.yearsUkResident]:"Please Select"," "),o(4),x("dropdown-menu  ",e.yearsUkResidentBox?"open":"",""),o(),f("aria-expanded",e.yearsUkResidentBox),o(),u("ngForOf",e.yearsUkResidentOptions.text),o(),u("ngIf",e.yearsUkResidentTouched&&!e.yearsUkResidentBox&&e.validateYearsUkCitizen()!=null)}}function _t(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return m(_.jobFullTimeSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);S(i==t.currentDriver.occupation.fullTime.jobStatus?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.occupation.fullTime.jobStatus),o(2),D(e)}}function ft(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateFullTimeJob()," ")}}function xt(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.studentDetailsSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.currentDriver.occupation.fullTime.studentStatus?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.occupation.fullTime.studentStatus),o(2),D(e)}}function bt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateStudentDetails()," ")}}function gt(l,d){if(l&1){let e=T();r(0,"div",171)(1,"label"),a(2,"Full time student status "),n(),r(3,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.studentDetailsBox?t.studentDetailsBox=!t.studentDetailsBox:t.studentDetailsBox)}),r(4,"button",172),v("click",function(t){p(e);let s=c(2);return m(s.studentDetailsClicked(t))}),r(5,"span",80),a(6),n(),a(7,"\xA0 "),r(8,"span",81),g(9,"span",82),n()(),r(10,"div",83)(11,"ul",84),h(12,xt,5,7,"li",85),n()()(),h(13,bt,2,1,"div",70),n()}if(l&2){let e=c(2);
1o(3),x("btn-group bootstrap-select  ",e.studentDetailsBox?"open":"",""),o(),C("",e.studentDetailsTouched&&!e.studentDetailsBox&&e.validateStudentDetails()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.occupation.fullTime.studentStatus==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.studentDetailsOptions==null?null:e.studentDetailsOptions.length)<=0),f("aria-expanded",e.studentDetailsBox),o(2),b("",e.currentDriver.occupation.fullTime.studentStatus==null?"Please Select":e.studentDetailsOptions.text[e.currentDriver.occupation.fullTime.studentStatus]," "),o(4),x("dropdown-menu  ",e.studentDetailsBox?"open":"",""),o(),f("aria-expanded",e.studentDetailsBox),o(),u("ngForOf",e.studentDetailsOptions.text),o(),u("ngIf",e.studentDetailsTouched&&!e.studentDetailsBox&&e.validateStudentDetails()!=null)}}function Tt(l,d){l&1&&(r(0,"div",173)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Any work that you undertake for more than 16 hours per week and are paid for is classed as full time. If you work 16 hours or less per week then this is classed as part time. You only need to declare voluntary work if you receive payment other than expenses. "),n()())}function Dt(l,d){if(l&1){let e=T();r(0,"li")(1,"a",182),v("click",function(){let t=p(e).$implicit,s=c(4);return m(s.selectFullTimeJobTitle(t))}),a(2),n()()}if(l&2){let e=d.$implicit;o(2),D(e.description)}}function Ct(l,d){if(l&1&&(r(0,"div",179)(1,"ul",180),h(2,Dt,3,1,"li",181),n()()),l&2){let e=c(3);o(2),u("ngForOf",e.fullTimeJobTitleOptions)}}function yt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateFullTimeJobTitle()," ")}}function St(l,d){if(l&1&&(r(0,"div"),h(1,yt,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validateFullTimeJobTitle()!=null)}}function wt(l,d){if(l&1&&(r(0,"div",183)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6),g(7,"br"),a(8),g(9,"br"),a(10," If you are having difficulty in finding your occupation please call us on "),r(11,"span",184),a(12),n(),a(13,". "),n()()),l&2){let e=c(3);o(6),b("By inputting the first three letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job title a list of alternatives will be displayed. "),o(2),E(" The more letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job you input then the fewer the options you will be given. To choose ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job simply click to highlight it in the list of alternatives generated by your search. "),o(4),D(e.siteConfig.html)}}function kt(l,d){if(l&1){let e=T();r(0,"div",174)(1,"label"),a(2),r(3,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("fullTimeJobTitle"))}),n()(),r(4,"div",175)(5,"input",176,4),v("keypress",function(t){p(e);let s=c(2);return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s._fullTimeJobTitle,t)||(s._fullTimeJobTitle=t),m(t)}),v("clickOutside",function(){p(e);let t=c(2);return m(t.clickOutsideFullTimeJobTitle())})("focus",function(){p(e);let t=c(2);return t.focussed.fullTimeJobTitle=!0,m(t.autocompleteFullTimeJobTitle())})("ngModelChange",function(){p(e);let t=c(2);return m(t.autocompleteFullTimeJobTitle())}),n(),h(7,Ct,3,1,"div",177),n(),h(8,St,2,1,"div",32)(9,wt,14,4,"div",178),n()}if(l&2){let e=O(6),i=c(2);y("id",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"addiDriverFullTimeJobTitle":"fullTimeJobTitle"),o(2),b("What do ",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"they":"you"," do for a living? "),o(3),C("no-border form-control white-bg loader-arrow ",i.fullTimeJobTitleLoading?"loader":""," ",(e.dirty||e.touched)&&(i.valfullliving()||e.pristine&&e.touched)&&i.validateFullTimeJobTitle()!=null?"box-error":"",""),k("ngModel",i._fullTimeJobTitle),o(2),u("ngIf",i.fullTimeJobTitleOptions.length>0&&i.focussed.fullTimeJobTitle),o(),u("ngIf",e.dirty||e.touched),o(),u("ngIf",i.showHelpText.fullTimeJobTitle)}}function It(l,d){if(l&1){let e=T();r(0,"li")(1,"a",182),v("click",function(){let t=p(e).$implicit,s=c(4);return m(s.selectFullTimeJobNature(t,!1))}),a(2),n()()}if(l&2){let e=d.$implicit;o(2),D(e.description)}}function Vt(l,d){if(l&1&&(r(0,"div",179)(1,"ul",180),h(2,It,3,1,"li",181),n()()),l&2){let e=c(3);o(2),u("ngForOf",e.fullTimeJobNatureOptions)}}function Ot(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateFullTimeJobNature()," ")}}function Bt(l,d){if(l&1&&(r(0,"div"),h(1,Ot,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validateFullTimeJobNature()!=null)}}function At(l,d){if(l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," By inputting the first three letters of the nature of business a list of alternatives will be displayed. "),g(7,"br"),a(8,' The more letters you input then the fewer the options you will be given. You should enter the type of business rather than the name of the company, i.e. input "insurance broker". To choose the nature of business simply click to highlight it in the list of alternatives generated by your search. '),g(9,"br"),a(10," If you are having difficulty please call us on "),r(11,"span",184),a(12),n(),a(13,". "),n()()),l&2){let e=c(3);o(12),D(e.siteConfig.html)}}function Et(l,d){if(l&1){let e=T();r(0,"div",174)(1,"label"),a(2),r(3,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("workin"))}),n()(),r(4,"div",175)(5,"input",185,5),v("keypress",function(t){p(e);let s=c(2);return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s._fullTimeJobNature,t)||(s._fullTimeJobNature=t),m(t)}
1),v("clickOutside",function(){p(e);let t=c(2);return m(t.clickOutsideFullTimeJobNature())})("ngModelChange",function(){p(e);let t=c(2);return m(t.autocompleteFullTimeJobNature())})("focus",function(){p(e);let t=c(2);return t.focussed.fullTimeJobNature=!0,m(t.autocompleteFullTimeJobNature())}),n(),h(7,Vt,3,1,"div",177),n(),h(8,Bt,2,1,"div",32)(9,At,14,1,"div",144),n()}if(l&2){let e=O(6),i=c(2);y("id",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"addiDriverFullTimeJoNature":"fullTimeJoNature"),o(2),b("What type of industry do ",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"they":"you"," work in? "),o(3),C("no-border form-control white-bg loader-arrow ",i.fullTimeJobNatureLoading?"loader":""," ",(e.dirty||e.touched)&&(i.valFullJobNature()||e.pristine&&e.touched)&&i.validateFullTimeJobNature()!=null?"box-error":"",""),k("ngModel",i._fullTimeJobNature),o(2),u("ngIf",i.fullTimeJobNatureOptions.length>0&&i.focussed.fullTimeJobNature),o(),u("ngIf",e.dirty||e.touched),o(),u("ngIf",i.showHelpText.workin)}}function Mt(l,d){if(l&1&&(r(0,"div",187)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6),g(7,"br"),a(8),g(9,"br"),a(10," If you are having difficulty in finding your occupation please call us on "),r(11,"span",184),a(12),n(),a(13,". "),n()()),l&2){let e=c(2);o(6),b("By inputting the first three letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job title a list of alternatives will be displayed. "),o(2),E(" The more letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job you input then the fewer the options you will be given. To choose ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job simply click to highlight it in the list of alternatives generated by your search. "),o(4),D(e.siteConfig.html)}}function Yt(l,d){if(l&1&&(r(0,"div",187)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," By inputting the first three letters of the nature of business a list of alternatives will be displayed. "),g(7,"br"),a(8,' The more letters you input then the fewer the options you will be given. You should enter the type of business rather than the name of the company, i.e. input "insurance broker". To choose the nature of business simply click to highlight it in the list of alternatives generated by your search. '),g(9,"br"),a(10," If you are having difficulty please call us on "),r(11,"span",184),a(12),n(),a(13,". "),n()()),l&2){let e=c(2);o(12),D(e.siteConfig.html)}}function Nt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validatePartTimeJob()," ")}}function Jt(l,d){if(l&1&&(r(0,"div",187)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6),n()()),l&2){let e=c(2);o(6),b(" If ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"they":"you"," have a part time job please select \u2018Yes\u2019, if not select \u2018No\u2019. ")}}function Ft(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.jobPartTimeSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.currentDriver.occupation.partTime.jobStatus?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.occupation.partTime.jobStatus),o(2),D(e)}}function Pt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validatePartTimeJobStatus()," ")}}function jt(l,d){if(l&1){let e=T();r(0,"div",188)(1,"label"),a(2,"Part time job status "),r(3,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("partTimeJobStatus"))}),n()(),r(4,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.jobPartTimeBox?t.jobPartTimeBox=!t.jobPartTimeBox:t.jobPartTimeBox)}),r(5,"button",189),v("click",function(t){p(e);let s=c(2);return m(s.jobPartTimeClicked(t))}),r(6,"span",80),a(7),n(),a(8,"\xA0 "),r(9,"span",81),g(10,"span",82),n()(),r(11,"div",83)(12,"ul",84),h(13,Ft,5,7,"li",85),n()()(),h(14,Pt,2,1,"div",70),n()}if(l&2){let e=c(2);o(4),x("btn-group bootstrap-select  ",e.jobPartTimeBox?"open":"",""),o(),C("",e.jobPartTimeTouched&&!e.jobPartTimeBox&&e.validatePartTimeJobStatus()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.occupation.partTime.jobStatus==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.jobPartTimeOptions==null?null:e.jobPartTimeOptions.length)<=0),f("aria-expanded",e.jobPartTimeBox),o(2),b("",e.currentDriver.occupation.partTime.jobStatus!=null?e.jobPartTimeOptions.text[e.currentDriver.occupation.partTime.jobStatus]:"Please Select"," "),o(4),x("dropdown-menu  ",e.jobPartTimeBox?"open":"",""),o(),f("aria-expanded",e.jobPartTimeBox),o(),u("ngForOf",e.jobPartTimeOptions.text),o(),u("ngIf",e.jobPartTimeTouched&&!e.jobPartTimeBox&&e.validatePartTimeJobStatus()!=null)}}function Lt(l,d){l&1&&(r(0,"div",173)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6,"If you work 16 hours or less per week then this is classed as part time. Any work that you undertake for more than 16 hours per week and are paid for is classed as full time. You only need to declare voluntary work if you receive payment other than expenses. "),n()())}function Ut(l,d){if(l&1){let e=T();r(0,"li")(1,"a",182),v("click",function(){let t=p(e).$implicit,s=c(4);return m(s.selectPartTimeJobTitle(t))}),a(2),n()()}if(l&2){let e=d.$implicit;o(2),D(e.description)}}function Ht(l,d){if(l&1&&(r(0,"div",179)(1,"ul",180),h(2,Ut,3,1,"li",181),n()()),l&2){let e=c(3);o(2),u("ngForOf",e.partTimeJobTitleOptions)}}function Rt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validatePartTimeJobTitle()," ")}}function Wt(l,d){if(l&1&&(r(0,"div"),h(1,Rt,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validatePartTimeJobTitle()!=null)}}function qt(l,d){if(l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6),r(7,"span",184),a(8),n(),a(9,". "),n()()),l&2){let e=c(3);o(6),M(" By inputting the first few letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job title a list of alternatives will be displayed. The more letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job you input then the fewer the options you will be given. To choose ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job simply click to highlight it in the list of alternatives generated by your search. If you are having difficulty in finding your occupation please call us on "),o(2),D(e.siteConfig.html)}}function zt(l,d){if(l&1){let e=T();r(0,"div",174)(1,"label"),a(2),r(3,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("partTime"))}),n()(),r(4,"div",175)(5,"input",190,6),v("keypress",function(t){p(e);let s=c(2);return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s._partTimeJobTitle,t)||(s._partTimeJobTitle=t),m(t)}
1),v("clickOutside",function(){p(e);let t=c(2);return m(t.clickOutsidePartTimeJobTitle())})("ngModelChange",function(){p(e);let t=c(2);return m(t.autocompletePartTimeJobTitle())})("focus",function(){p(e);let t=c(2);return t.autocompletePartTimeJobTitle(),m(t.focussed.partTimeJobTitle=!0)}),n(),h(7,Ht,3,1,"div",177),n(),h(8,Wt,2,1,"div",32)(9,qt,10,4,"div",144),n()}if(l&2){let e=O(6),i=c(2);y("id",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"addiDriverPartTimeJobTitle":"partTimeJobTitle"),o(2),b("What part time job do ",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"they":"you"," have? "),o(3),C("no-border form-control white-bg loader-arrow ",i.partTimeJobTitleLoading?"loader":""," ",(e.dirty||e.touched)&&(i.valPartLiving()||e.pristine&&e.touched)&&i.validatePartTimeJobTitle()!=null?"box-error":"",""),k("ngModel",i._partTimeJobTitle),o(2),u("ngIf",i.partTimeJobTitleOptions.length>0&&i.focussed.partTimeJobTitle),o(),u("ngIf",e.dirty||e.touched),o(),u("ngIf",i.showHelpText.partTime)}}function Kt(l,d){if(l&1){let e=T();r(0,"li")(1,"a",182),v("click",function(){let t=p(e).$implicit,s=c(4);return m(s.selectPartTimeJobNature(t))}),a(2),n()()}if(l&2){let e=d.$implicit;o(2),D(e.description)}}function $t(l,d){if(l&1&&(r(0,"div",179)(1,"ul",180),h(2,Kt,3,1,"li",181),n()()),l&2){let e=c(3);o(2),u("ngForOf",e.partTimeJobNatureOptions)}}function Qt(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validatePartTimeJobNature()," ")}}function Gt(l,d){if(l&1&&(r(0,"div"),h(1,Qt,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validatePartTimeJobNature()!=null)}}function Zt(l,d){if(l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6,' By inputting the first few letters of the nature of business a list of alternatives will be displayed. The more letters you input then the fewer the options you will be given. You should enter the type of business rather than the name of the company, e.g. input "insurance broker". To choose the nature of business simply click to highlight it in the list of alternatives generated by your search. If you are having difficulty please call us on '),r(7,"span",184),a(8),n(),a(9,". "),n()()),l&2){let e=c(3);o(8),D(e.siteConfig.html)}}function Xt(l,d){if(l&1){let e=T();r(0,"div",174)(1,"label"),a(2),r(3,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("partTimeJobTitle"))}),n()(),r(4,"div",175)(5,"input",191,7),v("keypress",function(t){p(e);let s=c(2);return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s._partTimeJobNature,t)||(s._partTimeJobNature=t),m(t)}),v("clickOutside",function(){p(e);let t=c(2);return m(t.clickOutsidePartTimeJobNature())})("ngModelChange",function(){p(e);let t=c(2);return m(t.autocompletePartTimeJobNature())})("focus",function(){p(e);let t=c(2);return t.focussed.partTimeJobNature=!0,m(t.autocompletePartTimeJobNature())}),n(),h(7,$t,3,1,"div",177),n(),h(8,Gt,2,1,"div",32)(9,Zt,10,1,"div",144),n()}if(l&2){let e=O(6),i=c(2);y("id",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"addiDriverPartTimeJobNature":"partTimeJobNature"),o(2),b("What type of industry do ",i.currentDriver.isAdditionalDriver&&i.allDrivers.length>0?"they":"you"," work in? "),o(3),C("no-border form-control white-bg loader-arrow ",i.partTimeJobNatureLoading?"loader":""," ",(e.dirty||e.touched)&&(i.valPartNature()||e.pristine&&e.touched)&&i.validatePartTimeJobNature()!=null?"box-error":""," "),k("ngModel",i._partTimeJobNature),o(2),u("ngIf",i.partTimeJobNatureOptions.length>0&&i.focussed.partTimeJobNature),o(),u("ngIf",e.dirty||e.touched),o(),u("ngIf",i.showHelpText.partTimeJobTitle)}}function ei(l,d){if(l&1&&(r(0,"div",187)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6),r(7,"span",184),a(8),n(),a(9,". "),n()()),l&2){let e=c(2);o(6),M(" By inputting the first few letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job title a list of alternatives will be displayed. The more letters of ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job you input then the fewer the options you will be given. To choose ",e.currentDriver.isAdditionalDriver&&e.allDrivers.length>0?"their":"your"," job simply click to highlight it in the list of alternatives generated by your search. If you are having difficulty in finding your occupation please call us on "),o(2),D(e.siteConfig.html)}}function ti(l,d){if(l&1&&(r(0,"div",187)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6,' By inputting the first few letters of the nature of business a list of alternatives will be displayed. The more letters you input then the fewer the options you will be given. You should enter the type of business rather than the name of the company, e.g. input "insurance broker". To choose the nature of business simply click to highlight it in the list of alternatives generated by your search. If you are having difficulty please call us on '),r(7,"span",184),a(8),n(),a(9,". "),n()()),l&2){let e=c(2);o(8),D(e.siteConfig.html)}}function ii(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateTradeMember()," ")}}function ni(l,d){if(l&1){let e=T();r(0,"div",192)(1,"label"),a(2,"Are you a member of a trade body or "),g(3,"br"),a(4,"organisation? "),r(5,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("tradebody"))}),n()(),r(6,"div",64)(7,"div",65)(8,"input",193),v("click",function(){p(e);let t=c(2);return m(t.setTradeMember(!0))}),n(),r(9,"label",194),a(10,"Yes"),n()(),r(11,"div",65)(12,"input",195),v("click",function(){p(e);let t=c(2);return m(t.setTradeMember(!1))}),n(),r(13,"label",196),a(14,"No"),n()()(),h(15,ii,2,1,"div",70),n()}if(l&2){let e=c(2);o(8),u("disabled",e.currentDriver.occupation.isTradeMember==!0)("checked",e.currentDriver.occupation.isTradeMember==!0),o(),S(e.validateTradeMember()!=null&&e.isTradeMemberTouched?"box-error":""),o(3),u("disabled",e.currentDriver.occupation.isTradeMember==!1)("checked",e.currentDriver.occupation.isTradeMember==!1),o(),S(e.validateTradeMember()!=null&&e.isTradeMemberTouched?"box-error":""),o(2),u("ngIf",e.validateTradeMember()!=null&&e.isTradeMemberTouched)}}function oi(l,d){l&1&&(r(0,"div",197)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," If you are a member of a trade body or organisation, please select \u2018Yes\u2019 "),n()())}function ri(l,d){if(l&1&&(r(0,"span",207),a(1),n()),l&2){let e=c().$implicit;o(),b(" \xA3 ",e.costAmount," ")}}function li(l,d){if(l&1){let e=T();
1r(0,"li")(1,"div",199)(2,"table",200)(3,"thead")(4,"tr")(5,"th",201),a(6),n()()(),r(7,"tbody")(8,"tr",202)(9,"td"),a(10),n(),r(11,"td"),h(12,ri,2,1,"span",203),r(13,"span",157),a(14),n()(),r(15,"td",204)(16,"span",205),v("click",function(){let t=p(e),s=t.$implicit,_=t.index,w=c(3);return w.editClaim(s,_),m(w.closeclaim=!1)}),a(17,"Edit"),n(),r(18,"img",206),v("click",function(){let t=p(e).index,s=c(3);return s.deleteClaim(t),m(s.showHelpText.claimIncidents=!1)}),n()()()()()()()}if(l&2){let e=d.$implicit,i=c(3);o(6),D(e.type),o(4),M(" ",i.claimsDayOptions[e.claimDate.day],"/",i.claimsMonthOptions[e.claimDate.month]+1,"/",i.claimsYearOptions[e.claimDate.year]," "),o(2),u("ngIf",e.costAmount!=null),o(2),D(e.claimDescription.description)}}function ai(l,d){if(l&1&&(r(0,"ul",198),h(1,li,19,6,"li",181),n()),l&2){let e=c(2);o(),u("ngForOf",e.currentDriver.claims)}}function si(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateClaimsClicked()," ")}}function ci(l,d){l&1&&(r(0,"div",214)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please enter details of any incidents, accidents, claims or losses regardless of blame you may have had on any vehicle. Even if the incident was non-fault, bonus protected or no claim made, please enter the details. "),n()())}function di(l,d){l&1&&(r(0,"div",215)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please enter details of any incidents, accidents, claims or losses regardless of blame you may have had on any vehicle. Even if the incident was non-fault, bonus protected or no claim made, please enter the details. "),n()())}function ui(l,d){if(l&1){let e=T();r(0,"div")(1,"div",208)(2,"div",63)(3,"div")(4,"label"),a(5,"Any claims or incidents in the last five "),r(6,"span",184),a(7," years? "),r(8,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("claimIncidents"))}),n()()()()(),r(9,"div",63)(10,"div",64)(11,"div",65)(12,"input",209),v("click",function(t){p(e);let s=c(2);return s.setClaims(!0),s.showModal(t,!0),s.claimspop=!0,m(s.closeclaim=!1)}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.currentDriver.personalInfo.didCalim,t)||(s.currentDriver.personalInfo.didCalim=t),m(t)}),n(),r(13,"label",210),a(14,"Yes"),n()(),r(15,"div",65)(16,"input",211),v("click",function(){p(e);let t=c(2);return m(t.setClaims(!1))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.currentDriver.personalInfo.didCalim,t)||(s.currentDriver.personalInfo.didCalim=t),m(t)}),n(),r(17,"label",212),a(18,"No"),n()()(),h(19,si,2,1,"div",70),n()(),h(20,ci,7,0,"div",146)(21,di,7,0,"div",213),n()}if(l&2){let e=c(2);o(12),u("value",!0),k("ngModel",e.currentDriver.personalInfo.didCalim),o(),S(e.validateClaimsClicked()!=null&&e.isclaimsTouched?"box-error":""),o(3),u("value",!1),k("ngModel",e.currentDriver.personalInfo.didCalim),o(),S(e.validateClaimsClicked()!=null&&e.isclaimsTouched?"box-error":""),o(2),u("ngIf",e.validateClaimsClicked()!=null&&e.isclaimsTouched),o(),u("ngIf",e.showHelpText.claimIncidents),o(),u("ngIf",e.showHelpText.claimIncidents)}}function pi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateClaimsClicked()," ")}}function mi(l,d){if(l&1){let e=T();r(0,"div",208)(1,"div",63)(2,"div")(3,"label"),a(4,"Do you want to add another claim?"),n()()(),r(5,"div",63)(6,"div",64)(7,"div",65)(8,"input",216),v("click",function(t){p(e);let s=c(2);return s.setClaims(!0),s.showModal(t,!0),s.claimspop=!0,m(s.closeclaim=!1)}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.addanotherclaim,t)||(s.addanotherclaim=t),m(t)}),n(),r(9,"label",217),a(10,"Yes"),n()(),r(11,"div",65)(12,"input",218),v("click",function(){p(e);let t=c(2);return m(t.setClaims(!1))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.addanotherclaim,t)||(s.addanotherclaim=t),m(t)}),n(),r(13,"label",219),a(14,"No"),n()()(),h(15,pi,2,1,"div",70),n()()}if(l&2){let e=c(2);o(8),u("value",!0),k("ngModel",e.addanotherclaim),o(),S(e.validateClaimsClicked()!=null&&e.isclaimsTouched?"box-error":""),o(3),u("value",!1),k("ngModel",e.addanotherclaim),o(),S(e.validateClaimsClicked()!=null&&e.isclaimsTouched?"box-error":""),o(2),u("ngIf",e.validateClaimsClicked()!=null&&e.isclaimsTouched)}}function vi(l,d){if(l&1){let e=T();r(0,"td",204)(1,"span",205),v("click",function(){p(e);
1let t=c(),s=t.$implicit,_=t.index,w=c(3);return w.editConviction(s,_),m(w.closeclaim=!0)}),a(2,"Edit"),n(),r(3,"img",206),v("click",function(){p(e);let t=c().index,s=c(3);return s.deleteConviction(t),m(s.showHelpText.convictionsToggle=!1)}),n()()}}function hi(l,d){if(l&1&&(r(0,"li")(1,"div",220)(2,"table",200)(3,"thead")(4,"tr")(5,"th",201),a(6),n()()(),r(7,"tbody")(8,"tr",202)(9,"td"),a(10),n(),r(11,"td")(12,"span",157),a(13),n(),a(14," Fine "),n(),h(15,vi,4,0,"td",221),n()()()()()),l&2){let e=d.$implicit,i=c(3);o(6),D(e.type.description),o(4),M(" ",i.convictionsDayOptions[e.convictionDate.day],"/",i.convictionsMonthOptions[e.convictionDate.month]+1,"/",i.convictionsYearOptions[e.convictionDate.year]," "),o(3),b(" \xA3 ",e.fine,""),o(2),u("ngIf",!i.isConvictionEditing)}}function _i(l,d){if(l&1&&(r(0,"ul",198),h(1,hi,16,6,"li",181),n()),l&2){let e=c(2);o(),u("ngForOf",e.currentDriver.convictions)}}function fi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateConvictionsClicked()," ")}}function xi(l,d){l&1&&(r(0,"div",228)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please enter any motoring convictions or endorsements you have on your licence that have either occurred or you were convicted of within the last 5 years. Speed awareness courses, parking fines and other non endorsed fines do not need to be declared. "),n()())}function bi(l,d){l&1&&(r(0,"div",214)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please enter any motoring convictions or endorsements you have on your licence that have either occurred or you were convicted of within the last 5 years. Speed awareness courses, parking fines and other non endorsed fines do not need to be declared. "),n()())}function gi(l,d){if(l&1){let e=T();r(0,"div")(1,"div",222)(2,"div",63)(3,"div")(4,"label"),a(5,"Any motoring convictions in the last five "),g(6,"br"),a(7,"years? "),r(8,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("convictionsToggle"))}),n()()()(),r(9,"div",63)(10,"div",64)(11,"div",65)(12,"input",223),v("click",function(t){p(e);let s=c(2);return s.setConvictions(!0),s.showModal(t,!0),s.convictionspop=!0,s.closeclaim=!0,m(s._convictionsType=null)}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.currentDriver.personalInfo.didConviction,t)||(s.currentDriver.personalInfo.didConviction=t),m(t)}),n(),r(13,"label",224),a(14,"Yes"),n()(),r(15,"div",65)(16,"input",225),v("click",function(){p(e);let t=c(2);return m(t.setConvictions(!1))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.currentDriver.personalInfo.didConviction,t)||(s.currentDriver.personalInfo.didConviction=t),m(t)}),n(),r(17,"label",226),a(18,"No"),n()()(),h(19,fi,2,1,"div",70),n()(),h(20,xi,7,0,"div",227)(21,bi,7,0,"div",146),n()}if(l&2){let e=c(2);o(12),u("value",!0),k("ngModel",e.currentDriver.personalInfo.didConviction),o(),S(e.validateConvictionsClicked()!=null&&e.isConvictionTouched?"box-error":""),o(3),u("value",!1),k("ngModel",e.currentDriver.personalInfo.didConviction),o(),S(e.validateConvictionsClicked()!=null&&e.isConvictionTouched?"box-error":""),o(2),u("ngIf",e.validateConvictionsClicked()!=null&&e.isConvictionTouched),o(),u("ngIf",e.showHelpText.convictionsToggle),o(),u("ngIf",e.showHelpText.convictionsToggle)}}function Ti(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateConvictionsClicked()," ")}}function Di(l,d){if(l&1){let e=T();r(0,"div",222)(1,"div",63)(2,"div")(3,"label"),a(4,"Do you want to add another conviction?"),n()()(),r(5,"div",63)(6,"div",64)(7,"div",65)(8,"input",229),v("click",function(t){p(e);let s=c(2);return s.setConvictions(!0),s.showModal(t,!0),s.convictionspop=!0,s.closeclaim=!0,m(s._convictionsType=null)}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.addanotherconviction,t)||(s.addanotherconviction=t),m(t)}),n(),r(9,"label",230),a(10,"Yes"),n()(),r(11,"div",65)(12,"input",231),v("click",function(){p(e);let t=c(2);return m(t.setConvictions(!1))}),V("ngModelChange",function(t){p(e);let s=c(2);
1return I(s.addanotherconviction,t)||(s.addanotherconviction=t),m(t)}),n(),r(13,"label",232),a(14,"No"),n()()(),h(15,Ti,2,1,"div",70),n()()}if(l&2){let e=c(2);o(8),u("value",!0),k("ngModel",e.addanotherconviction),o(4),u("value",!1),k("ngModel",e.addanotherconviction),o(3),u("ngIf",e.validateConvictionsClicked()!=null&&e.isConvictionTouched)}}function Ci(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).$implicit,_=c(2);return m(_.licenseYearsSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);x("col-xs-2 ",i==t.currentDriver.drivingDetails.yearsLicenceHeld?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.drivingDetails.yearsLicenceHeld),o(2),D(e==20?"20+":e)}}function yi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateLicenseYears()," ")}}function Si(l,d){l&1&&(r(0,"div",233)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please enter the number of years you have held your drivers licence. "),n()())}function wi(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return m(_.licenseTypeSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);S(i==t.currentDriver.drivingDetails.licenceType?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.drivingDetails.licenceType),o(2),D(e)}}function ki(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateLicenseType()," ")}}function Ii(l,d){l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," IAM is an advanced driving test taken through the Institute of Advanced Motorists. International licences are only valid in the UK for up to 12 months. Please check that the dates of your licence and your residency are both within the last twelve months, as your licence date will not be valid if they are not, and we will be unable to insure you. "),n()())}function Vi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateDrivingTestTaken()," ")}}function Oi(l,d){if(l&1&&(r(0,"div"),h(1,Vi,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validateDrivingTestTaken()!=null)}}function Bi(l,d){if(l&1){let e=T();r(0,"div",234)(1,"label"),a(2,"Practical driving tests taken"),n(),r(3,"input",235,8),v("keypress",function(t){p(e);let s=c(2);return s.checkNumber(t),m(s.preventEnterKey(t))})("blur",function(){p(e);let t=c(2);return m(t.validateDrivingTestTaken(!0))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.currentDriver.drivingDetails.driverTestTaken,t)||(s.currentDriver.drivingDetails.driverTestTaken=t),m(t)}),v("ngModelChange",function(){p(e);let t=c(2);return m(t.validateDrivingTestTaken())}),n(),h(5,Oi,2,1,"div",32),n()}if(l&2){let e=O(4),i=c(2);o(3),x("form-control ",(e.dirty||e.touched)&&i.validateDrivingTestTaken()!=null?"box-error":"",""),k("ngModel",i.currentDriver.drivingDetails.driverTestTaken),o(2),u("ngIf",e.dirty||e.touched)}}function Ai(l,d){l&1&&(r(0,"div",214)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," IAM is an advanced driving test taken through the Institute of Advanced Motorists. International licences are only valid in the UK for up to 12 months. Please check that the dates of your licence and your residency are both within the last twelve months, as your licence date will not be valid if they are not, and we will be unable to insure you. "),n()())}function Ei(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.claimBonusSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-4 ",i==t.currentDriver.drivingDetails.claimBonus?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.drivingDetails.claimBonus),o(2),D(e)}}function Mi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateClaimBonus()," ")}}function Yi(l,d){if(l&1&&(r(0,"div",241)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4,"No claims bonus for this vehicle "),n(),r(5,"p",155),a(6," Your NCB must have been earned in the UK under your name and on a private vehicle insurance policy within the last 2 years. If your NCB has been earned outside of the UK we may still be able to accept it. Please call us on "),r(7,"span",184),a(8),n(),a(9,". Your no claims bonus entitlement can be found on your renewal notice if you have one. No claims bonus can only be used on one policy at a time "),n()()),l&2){let e=c(3);o(8),D(e.siteConfig.html)}}function Ni(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateProtectClaimBonus()," ")}}function Ji(l,d){l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Should you be unfortunate enough to make a claim, protecting your bonus will mean that your No Claims Bonus will not be reduced. This may however increase the price of your policy by a small amount. "),n()())}function Fi(l,d){if(l&1){let e=T();r(0,"div",242)(1,"label"),a(2,"Protect your no claims bonus "),r(3,"a",104),v("click",function(){p(e);let t=c(3);return m(t.helpTextHideShow("ClaimBonus"))}),n()(),r(4,"div",64)(5,"div",65)(6,"input",243),v("click",function(){p(e);let t=c(3);return m(t.setProtectClaimBonus(!0))}),n(),r(7,"label",244),a(8,"Yes"),n()(),r(9,"div",65)(10,"input",245),v("click",function(){p(e);let t=c(3);return m(t.setProtectClaimBonus(!1))}),n(),r(11,"label",246),a(12,"No"),n()()(),h(13,Ni,2,1,"div",70)(14,Ji,7,0,"div",144),n()}if(l&2){let e=c(3);o(6),u("disabled",e.currentDriver.drivingDetails.protectClaimBonus==!0)("checked",e.currentDriver.drivingDetails.protectClaimBonus==!0),o(),x("",e.validateProtectClaimBonus()!=null&&e.protectClaimBonusTouched?"box-error":""," "),o(3),u("disabled",e.currentDriver.drivingDetails.protectClaimBonus==!1)("checked",e.currentDriver.drivingDetails.protectClaimBonus==!1),o(),x("",e.validateProtectClaimBonus()!=null&&e.protectClaimBonusTouched?"box-error":""," "),o(2),u("ngIf",e.validateProtectClaimBonus()!=null&&e.protectClaimBonusTouched),o(),u("ngIf",e.showHelpText.ClaimBonus)}}function Pi(l,d){if(l&1){let e=T();r(0,"div")(1,"div",236)(2,"label"),a(3,"No claims bonus for this vehicle"),n(),r(4,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.claimBonusBox?t.claimBonusBox=!t.claimBonusBox:t.claimBonusBox)}),r(5,"button",237),v("click",function(t){p(e);let s=c(2);return s.claimBonusClicked(t),m(s.helpTextHideShow("noClaimBonus"))})("clickOutside",function(){p(e);let t=c(2);return m(t.showHelpText.noClaimBonus=!1)}),r(6,"span",80),a(7),n(),a(8,"\xA0 "),r(9,"span",81),g(10,"span",82),n()(),r(11,"div",83)(12,"ul",238),h(13,Ei,5,7,"li",85),n()()(),h(14,Mi,2,1,"div",70)(15,Yi,10,1,"div",239),n(),h(16,Fi,15,12,"div",240),n()}if(l&2){let e=c(2);x("form-group-multi ",e.claimBonusOptions.value[e.currentDriver.drivingDetails.claimBonus]>3&&e.validateClaimBonus()==null?"":"custom-form-group-multi",""),o(),x("form-group fade-up-animation fg-half fg-left  ",e.claimBonusOptions.value[e.currentDriver.drivingDetails.claimBonus]>3&&e.validateClaimBonus()==null?"right-padding-0":"",""),o(3),x(" btn-group bootstrap-select  ",e.claimBonusBox?"open":"",""),o(),C("",e.claimBonusTouched&&!e.claimBonusBox&&e.validateClaimBonus()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.drivingDetails.claimBonus==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.claimBonusOptions.text==null?null:e.claimBonusOptions.text.length)<=0),f("aria-expanded",e.claimBonusBox),o(2),b("",e.currentDriver.drivingDetails.claimBonus!=null?e.claimBonusOptions.text[e.currentDriver.drivingDetails.claimBonus]:"Please Select"," "),o(4),x("dropdown-menu  ",e.claimBonusBox?"open":"",""),o(),f("aria-expanded",e.claimBonusBox),o(),u("ngForOf",e.claimBonusOptions.text),o(),u("ngIf",e.claimBonusTouched&&!e.claimBonusBox&&e.validateClaimBonus()!=null),o(),u("ngIf",e.autoHelpText.claimBonus&&e.validateClaimBonus()!=null),o(),u("ngIf",e.checkProtectClaimBonus())}}function ji(l,d){l&1&&(r(0,"div",214)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Should you be unfortunate enough to make a claim, protecting your bonus will mean that your No Claims Bonus will not be reduced. This may however increase the price of your policy by a small amount. "),n()())}function Li(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(2);return m(_.otherVehiclesSelected(t,s,!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(2);S(i==t.currentDriver.drivingDetails.accessToOtherVehicles?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.drivingDetails.accessToOtherVehicles),o(2),D(e)}}function Ui(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(2);o(),b(" ",e.validateOtherVehicles()," ")}}function Hi(l,d){l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," If you regularly drive another vehicle, please choose an option from the list. If you have access to multiple other vehicles please choose the first option that applies to you. Note: We can only take NCB/MNCB into account from a car or van. "),n()())}function Ri(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.otherVehiclesClaimBonusSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-4 ",i==t.currentDriver.drivingDetails.otherVehilcleClaimBonus?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.drivingDetails.otherVehilcleClaimBonus),o(2),D(e)}}function Wi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateOtherVehiclesClaimBonus()," ")}}function qi(l,d){l&1&&(r(0,"div",186)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please confirm how many years No Claims Bonus you have on your OTHER vehicle, some insurers may also take this into account either by applying a discount or using a mirrored no claims bonus scheme. For a no claims bonus to be valid it must have been earned in the UK on a policy in your own name, and not as a named driver or on a company policy. "),n()())}function zi(l,d){if(l&1){let e=T();r(0,"div",247)(1,"label"),a(2,"No claims bonus for other vehicle "),r(3,"a",104),v("click",function(){p(e);let t=c(2);return m(t.helpTextHideShow("noBonus"))}),n()(),r(4,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.otherVehiclesClaimBonusBox?t.otherVehiclesClaimBonusBox=!t.otherVehiclesClaimBonusBox:t.otherVehiclesClaimBonusBox)}),r(5,"button",148),v("click",function(t){p(e);let s=c(2);return m(s.otherVehiclesClaimBonusClicked(t))}),r(6,"span",80),a(7),n(),a(8,"\xA0 "),r(9,"span",81),g(10,"span",82),n()(),r(11,"div",83)(12,"ul",170),h(13,Ri,5,7,"li",85),n()()(),h(14,Wi,2,1,"div",70)(15,qi,7,0,"div",144),n()}if(l&2){let e=c(2);o(4),x("btn-group bootstrap-select  ",e.otherVehiclesClaimBonusBox?"open":"",""),o(),C("",e.otherVehiclesClaimBonusTouched&&!e.otherVehiclesClaimBonusBox&&e.validateOtherVehiclesClaimBonus()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.drivingDetails.otherVehilcleClaimBonus==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.otherVehiclesClaimBonusOptions.text==null?null:e.otherVehiclesClaimBonusOptions.text.length)<=0),f("aria-expanded",e.otherVehiclesClaimBonusBox),o(2),b("",e.currentDriver.drivingDetails.otherVehilcleClaimBonus!=null?e.otherVehiclesClaimBonusOptions.text[e.currentDriver.drivingDetails.otherVehilcleClaimBonus]:"Please Select"," "),o(4),x("dropdown-menu  ",e.otherVehiclesClaimBonusBox?"open":"",""),o(),f("aria-expanded",e.otherVehiclesClaimBonusBox),o(),u("ngForOf",e.otherVehiclesClaimBonusOptions.text),o(),u("ngIf",e.otherVehiclesClaimBonusTouched&&!e.otherVehiclesClaimBonusBox&&e.validateOtherVehiclesClaimBonus()!=null),o(),u("ngIf",e.showHelpText.noBonus)}}function Ki(l,d){l&1&&(r(0,"div",214)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," If you regularly drive another vehicle, please choose an option from the list. If you have access to multple other vehicles please choose the first option that apples to you. Note: We can only take NCB/MNCB into account from a car or van. "),n()())}function $i(l,d){l&1&&(r(0,"div",214)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Please confirm how many years No Claims Bonus you have on your OTHER vehicle, some insurers may also take this into account either by applying a discount or using a mirrored no claims bonus scheme. For a no claims bonus to be valid it must have been earned in the UK on a policy in your own name, and not as a named driver or on a company policy. "),n()())}function Qi(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(4);return m(_.totalVehiclesSelected(t,s,!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(4);S(i==t.currentDriver.drivingDetails.totalVehicles?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.currentDriver.drivingDetails.totalVehicles),o(2),D(e)}}function Gi(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateTotalVehicles()," ")}}function Zi(l,d){if(l&1){let e=T();r(0,"div",249)(1,"label"),a(2,"Total number of vehicles in household "),r(3,"a",104),v("click",function(){p(e);let t=c(3);return m(t.helpTextHideShow("totalNumberVechiles"))}),n()(),r(4,"div",78),v("clickOutside",function(){p(e);let t=c(3);return m(t.totalVehilcesBox?t.totalVehilcesBox=!t.totalVehilcesBox:t.totalVehilcesBox)}),r(5,"button",250),v("click",function(t){p(e);let s=c(3);return m(s.totalVehiclesClicked(t))}),r(6,"span",80),a(7),n(),a(8,"\xA0 "),r(9,"span",81),g(10,"span",82),n()(),r(11,"div",83)(12,"ul",84),h(13,Qi,5,7,"li",85),n()()(),h(14,Gi,2,1,"div",70),n()}if(l&2){let e=c(3);o(4),x("btn-group bootstrap-select  ",e.totalVehilcesBox?"open":"",""),o(),C("",e.totalVehiclesTouched&&!e.totalVehilcesBox&&e.validateTotalVehicles()!=null?"box-error":""," btn dropdown-toggle ",e.currentDriver.drivingDetails.totalVehicles==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.totalVehilcesOptions.text==null?null:e.totalVehilcesOptions.text.length)<=0),f("aria-expanded",e.totalVehilcesBox),o(2),b("",e.currentDriver.drivingDetails.totalVehicles!=null?e.totalVehilcesOptions.text[e.currentDriver.drivingDetails.totalVehicles]:"Please Select"," "),o(4),x("dropdown-menu  ",e.totalVehilcesBox?"open":"",""),o(),f("aria-expanded",e.totalVehilcesBox),o(),u("ngForOf",e.totalVehilcesOptions.text),o(),u("ngIf",e.totalVehiclesTouched&&!e.totalVehilcesBox&&e.validateTotalVehicles()!=null)}}function Xi(l,d){if(l&1&&(r(0,"div")(1,"div",120),h(2,Zi,15,16,"div",248),n()()),l&2){let e=c(2);o(2),u("ngIf",!e.currentDriver.isAdditionalDriver)}}function en(l,d){l&1&&(r(0,"div",233)(1,"p",153)(2,"span",154),a(3,"info"),n(),a(4," Help Info "),n(),r(5,"p",155),a(6," Select the number of cars or vans which belong to you and your spouse or co-habiting partner. Do not include vehicles which belong to other family members, friends or lodgers. Also, please do not include motorbikes or other vehicles. "),n()())}function tn(l,d){if(l&1){let e=T();r(0,"div",251)(1,"div",252)(2,"div",253)(3,"button",254),v("click",function(){p(e);let t=c(2);return m(t.cancelDriver())}),a(4,"Cancel"),n(),r(5,"button",255),v("click",function(){p(e);let t=c(2),s=O(19);return m(t.isDriverEditing?t.updateDriver(s,t.currentDriver.index):t.addAdditionalDriver(s))}),a(6),n()()()()}if(l&2){let e=c(2);
1o(3),x("btn btn-grey btn-lg btn-prev ",e.checkDriverAddOrUpdateButtonValid()?"box-error":"",""),o(2),x("btn btn-success btn-lg btn-next ",e.checkDriverAddOrUpdateButtonValid()?"box-error":"",""),o(),D(e.isDriverEditing?"Update":"Add Driver")}}function nn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateAddAnotherDriver()," ")}}function on(l,d){if(l&1){let e=T();r(0,"div",252)(1,"h2",57)(2,"span"),a(3,"6"),n(),a(4," Additional Drivers "),n(),r(5,"div",41)(6,"div",256)(7,"div",257)(8,"div")(9,"label"),a(10,"Would you like to insure anyone else to "),g(11,"br"),a(12,"drive the van?"),n()()(),r(13,"div",258)(14,"div")(15,"div",259)(16,"div",64)(17,"div",65),g(18,"input",66),r(19,"label",67),v("click",function(){p(e);let t=c(2);return m(t.setAddAnotherDriveForm(!0))}),a(20,"Yes"),n()(),r(21,"div",65),g(22,"input",68),r(23,"label",69),v("click",function(){p(e);let t=c(2);return m(t.setAddAnotherDriveForm(!1))}),a(24,"No"),n()()(),h(25,nn,2,1,"div",70),n()()()()()()}if(l&2){let e=c(2);o(19),S(e.validateAddAnotherDriver()!=null&&e.driverYesNoTouched?"box-error":""),o(3),u("checked",e.currentDriver.driverYesNoButton==!1),o(),S(e.validateAddAnotherDriver()!=null&&e.driverYesNoTouched?"box-error":""),o(2),u("ngIf",e.validateAddAnotherDriver()!=null&&e.driverYesNoTouched)}}function rn(l,d){if(l&1){let e=T();r(0,"div")(1,"div",72)(2,"h2",73)(3,"span"),a(4,"1"),n(),a(5),r(6,"a",74),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("personal"))}),n()(),h(7,ze,7,3,"div",75),r(8,"div",76)(9,"div",77)(10,"label"),a(11,"Marital status"),n(),r(12,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.maritalStatusBox?t.maritalStatusBox=!t.maritalStatusBox:t.maritalStatusBox)}),r(13,"button",79),v("click",function(t){p(e);let s=c();return m(s.maritalStatusClicked(t))}),r(14,"span",80),a(15),n(),a(16,"\xA0 "),r(17,"span",81),g(18,"span",82),n()(),r(19,"div",83)(20,"ul",84),h(21,Ke,5,7,"li",85),n()()(),h(22,$e,2,1,"div",70),n(),r(23,"div",86)(24,"label"),a(25,"Title"),n(),r(26,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.titleBox?t.titleBox=!t.titleBox:t.titleBox)}),r(27,"button",87),v("click",function(t){p(e);let s=c();return m(s.titleClicked(t))}),r(28,"span",80),a(29),n(),a(30,"\xA0 "),r(31,"span",81),g(32,"span",82),n()(),r(33,"div",83)(34,"ul",84),h(35,Qe,5,10,"li",88),n()()(),h(36,Ge,2,1,"div",70),n()(),r(37,"div",76)(38,"div",89)(39,"div")(40,"label"),a(41,"First names"),n(),r(42,"input",90,2),v("keypress",function(t){p(e);let s=c();return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c();return I(s.currentDriver.personalInfo.firstName,t)||(s.currentDriver.personalInfo.firstName=t),m(t)}),v("blur",function(){p(e);let t=c();return m(t.validateFirstName(!0)&&(t.myNameFocusVar=!1))})("focus",function(){p(e);let t=c();return m(t.myNameFocusVar=!0)}),n()(),h(44,Xe,2,1,"div",32),n(),r(45,"div",91)(46,"div")(47,"label"),a(48,"Surname"),n(),r(49,"input",92,3),v("keypress",function(t){p(e);let s=c();return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c();return I(s.currentDriver.personalInfo.lastName,t)||(s.currentDriver.personalInfo.lastName=t),m(t)}),v("blur",function(){p(e);let t=c();return m(t.validateLastName(!0)&&(t.mySurnameFocusVar=!1))})("focus",function(){p(e);let t=c();return m(t.mySurnameFocusVar=!0)}),n()(),h(51,tt,2,1,"div",32),n()(),h(52,rt,17,17,"div",93)(53,lt,7,0,"div",94),r(54,"div",95)(55,"div",96)(56,"div",97)(57,"label"),a(58,"Date of birth"),n(),r(59,"div",98)(60,"div")(61,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.dobDayBox?t.dobDayBox=!t.dobDayBox:t.dobDayBox)}),r(62,"button",99),v("click",function(t){p(e);let s=c();return m(s.dobDayClicked(t))}),r(63,"span",80),a(64),n(),a(65,"\xA0 "),r(66,"span",81),g(67,"span",82),n()(),r(68,"div",83)(69,"ul",100),h(70,at,5,7,"li",85),n()()()(),r(71,"div")(72,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.dobMonthBox?t.dobMonthBox=!t.dobMonthBox:t.dobMonthBox)}),r(73,"button",101),v("click",function(t){p(e);let s=c();return m(s.dobMonthClicked(t))}),r(74,"span",80),a(75),n(),a(76,"\xA0 "),r(77,"span",81),g(78,"span",82),n()(),r(79,"div",83)(80,"ul",100),h(81,st,5,7,"li",85),n()()()(),r(82,"div")(83,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.dobYearBox?t.dobYearBox=!t.dobYearBox:t.dobYearBox)}),r(84,"button",102),v("click",function(t){p(e);let s=c();return m(s.dobYearClicked(t))}),r(85,"span",80),a(86),n(),a(87,"\xA0 "),r(88,"span",81),g(89,"span",82),n()(),r(90,"div",83)(91,"ul",100),h(92,ct,5,7,"li",85),n()()()()(),h(93,dt,2,1,"div",70),n(),r(94,"div",103)(95,"label"),a(96,"Have you been a UK resident since birth? "),r(97,"a",104),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("ukResidentSince"))}),n()(),r(98,"div",64)(99,"div",65)(100,"input",105),v("click",function(){p(e);let t=c();return m(t.setUkCitizen(!0))}),n(),r(101,"label",106),a(102,"Yes"),n()(),r(103,"div",65)(104,"input",107),v("click",function(){p(e);let t=c();return m(t.setUkCitizen(!1))}),n(),r(105,"label",108),a(106,"No"),n()()(),h(107,ut,2,1,"div",70),n()(),h(108,pt,7,0,"div",109),n(),h(109,ht,15,15,"div",110),n(),r(110,"div",31)(111,"h2",111)(112,"span"),a(113,"2"),n(),a(114," Occupation "),n(),r(115,"div")(116,"div",112)(117,"label"),a(118,"Full time job status "),r(119,"a",104),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("fullTimeJobStatus"))}),n()(),r(120,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.jobFullTimeBox?t.jobFullTimeBox=!t.jobFullTimeBox:t.jobFullTimeBox)}),r(121,"button",113),v("click",function(t){p(e);let s=c();return m(s.jobFullTimeClicked(t))}),r(122,"span",80),a(123),n(),a(124,"\xA0 "),r(125,"span",81),g(126,"span",82),n()(),r(127,"div",83)(128,"ul",84),h(129,_t,5,7,"li",85),n()()(),h(130,ft,2,1,"div",70),n(),h(131,gt,14,16,"div",114),n(),r(132,"div",76),h(133,Tt,7,0,"div",115),n(),r(134,"div",76),h(135,kt,10,10,"div",116)(136,Et,10,10,"div",116),n(),r(137,"div",117),h(138,Mt,14,4,"div",118),n(),r(139,"div",117),h(140,Yt,14,1,"div",118),n(),r(141,"div",119)(142,"div",120)(143,"div",63)(144,"label"),a(145),r(146,"a",104),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("secondjob"))}),n()(),r(147,"div",64)(148,"div",65)(149,"input",121),v("click",function(){p(e);let t=c();return m(t.setPartTimeJob(!0))}),n(),r(150,"label",122),a(151,"Yes"),n()(),r(152,"div",65)(153,"input",123),v("click",function(){p(e);let t=c();return m(t.setPartTimeJob(!1))}),n(),r(154,"label",124),a(155,"No"),n()()(),h(156,Nt,2,1,"div",70),n()()(),r(157,"div",76),h(158,Jt,7,1,"div",125),n(),r(159,"div",41)(160,"div",120),h(161,jt,15,16,"div",126),n(),h(162,Lt,7,0,"div",127),n(),r(163,"div",76),h(164,zt,10,10,"div",128)(165,Xt,10,10,"div",116),n(),r(166,"div",117),h(167,ei,10,4,"div",118),n(),r(168,"div",117),h(169,ti,10,1,"div",118),n(),r(170,"div",41),h(171,ni,16,11,"div",129),n(),r(172,"div",76),h(173,oi,7,0,"div",130),n()(),r(174,"div",131)(175,"h2",132)(176,"span"),a(177,"3"),n(),a(178," Claims "),n(),r(179,"div",41)(180,"div"),h(181,ai,2,1,"ul",133)(182,ui,22,13,"div",32)(183,mi,16,11,"div",134),n()()(),r(184,"div",31)(185,"h2",57)(186,"span"),a(187,"4"),n(),a(188," Convictions "),n(),r(189,"div",41),g(190,"div",135),h(191,_i,2,1,"ul",133)(192,gi,22,13,"div",32)(193,Di,16,5,"div",136),n()(),r(194,"div",137)(195,"h2",111)(196,"span"),a(197,"5"),n(),a(198," Driving Details "),n(),r(199,"div",41)(200,"div",120)(201,"div",138)(202,"label"),a(203,"Years licence held "),r(204,"a",104),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("held"))}),n()(),r(205,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.licenseYearsBox?t.licenseYearsBox=!t.licenseYearsBox:t.licenseYearsBox)}),r(206,"button",139),v("click",function(t){p(e);let s=c();return m(s.licenseYearsClicked(t))}),r(207,"span",80),a(208),n(),a(209,"\xA0 "),r(210,"span",81),g(211,"span",82),n()(),r(212,"div",83)(213,"ul",140),h(214,Ci,5,7,"li",85),n()()(),h(215,yi,2,1,"div",70),n()(),h(216,Si,7,0,"div",141),r(217,"div")(218,"div",142)(219,"label"),a(220,"Licence type "),r(221,"a",104),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("licenceType"))}),n()(),r(222,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.licenseTypeBox?t.licenseTypeBox=!t.licenseTypeBox:t.licenseTypeBox)}),r(223,"button",143),v("click",function(t){p(e);let s=c();return m(s.licenseTypeClicked(t))}),r(224,"span",80),a(225),n(),a(226,"\xA0 "),r(227,"span",81),g(228,"span",82),n()(),r(229,"div",83)(230,"ul",84),h(231,wi,5,7,"li",85),n()()(),h(232,ki,2,1,"div",70)(233,Ii,7,0,"div",144),n(),h(234,Bi,6,5,"div",145),n(),h(235,Ai,7,0,"div",146)(236,Pi,17,24,"div",75)(237,ji,7,0,"div",146),r(238,"div")(239,"div",147)(240,"label"),a(241,"Access to other vehicles "),r(242,"a",104),v("click",function(){p(e);let t=c();return m(t.helpTextHideShow("accessOtherVechiles"))}),n()(),r(243,"div",78),v("clickOutside",function(){p(e);let t=c();return m(t.otherVehiclesBox?t.otherVehiclesBox=!t.otherVehiclesBox:t.otherVehiclesBox
1)}),r(244,"button",148),v("click",function(t){p(e);let s=c();return m(s.otherVehiclesClicked(t))}),r(245,"span",80),a(246),n(),a(247,"\xA0 "),r(248,"span",81),g(249,"span",82),n()(),r(250,"div",83)(251,"ul",84),h(252,Li,5,7,"li",85),n()()(),h(253,Ui,2,1,"div",70)(254,Hi,7,0,"div",144),n(),h(255,zi,16,17,"div",149),n(),h(256,Ki,7,0,"div",146)(257,$i,7,0,"div",146)(258,Xi,3,1,"div",32)(259,en,7,0,"div",141),n()(),h(260,tn,7,7,"div",150),r(261,"div",151),h(262,on,26,8,"div",152),n()()}if(l&2){let e=O(43),i=O(50),t=c();o(5),b(" ",t.currentDriver.isAdditionalDriver&&t.allDrivers.length>0?"Additional driver":"Personal Information"," "),o(2),u("ngIf",t.showHelpText.personal),o(5),x("btn-group bootstrap-select  ",t.maritalStatusBox?"open":"",""),o(),C("",t.maritalStatusTouched&&!t.maritalStatusBox&&t.validateMaritalStatus()!=null?"box-error":""," btn dropdown-toggle ",t.currentDriver.personalInfo.maritalStatus==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.maritalStatusOptions.text==null?null:t.maritalStatusOptions.text.length)<=0),f("aria-expanded",t.maritalStatusBox),o(2),b("",t.currentDriver.personalInfo.maritalStatus!=null?t.maritalStatusOptions.text[t.currentDriver.personalInfo.maritalStatus]:"Please Select"," "),o(4),x("dropdown-menu  ",t.maritalStatusBox?"open":"",""),o(),f("aria-expanded",t.maritalStatusBox),o(),u("ngForOf",t.maritalStatusOptions.text),o(),u("ngIf",t.maritalStatusTouched&&!t.maritalStatusBox&&t.validateMaritalStatus()!=null),o(4),x("btn-group bootstrap-select  ",t.titleBox?"open":"",""),o(),C("",t.titleValidationTouched&&!t.titleBox&&t.validateTitle()!=null?"box-error":""," btn dropdown-toggle ",t.currentDriver.personalInfo.title==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.titleOptions.text==null?null:t.titleOptions.text.length)<=0),f("aria-expanded",t.titleBox),o(2),b("",t.currentDriver.personalInfo.title!=null?t.titleOptions.text[t.currentDriver.personalInfo.title]:"Please Select"," "),o(4),x("dropdown-menu  ",t.titleBox?"open":"",""),o(),f("aria-expanded",t.titleBox),o(),u("ngForOf",t.titleOptions.text),o(),u("ngIf",t.titleValidationTouched&&!t.titleBox&&t.validateTitle()!=null),o(6),x("name-field form-control ",(e.dirty||e.touched)&&!t.myNameFocusVar&&t.validateFirstName()!=null?"box-error":"",""),k("ngModel",t.currentDriver.personalInfo.firstName),o(2),u("ngIf",e.dirty||e.touched),o(5),x("name-field form-control ",t.validateLastName()!=null&&(i.dirty||i.touched)&&!t.mySurnameFocusVar?"box-error":"",""),k("ngModel",t.currentDriver.personalInfo.lastName),o(2),u("ngIf",i.dirty||i.touched),o(),u("ngIf",t.currentDriver.isAdditionalDriver),o(),u("ngIf",t.showHelpText.proposer),o(8),x("day_btn btn-group bootstrap-select ",t.dobDayBox?"open":"",""),o(),C("bradius-left btn dropdown-toggle ",t.currentDriver.personalInfo.birthDate.day==null?"bs-placeholder":""," ",t.validateDateOfBirth()!=null&&t.dobYearTouched&&t.dobMonthTouched&&t.dobDayTouched&&!t.dobYearBox&&!t.dobMonthBox&&!t.dobDayBox?"box-error-left":"","  btn-default"),u("disabled",(t.dobDayOptions==null?null:t.dobDayOptions.length)<=0),f("aria-expanded",t.dobDayBox),o(2),b("",t.currentDriver.personalInfo.birthDate.day!=null?t.dobDayOptions[t.currentDriver.personalInfo.birthDate.day]:"Day"," "),o(4),x("dropdown-menu  ",t.dobDayBox?"open":"",""),o(),f("aria-expanded",t.dobDayBox),o(),u("ngForOf",t.dobDayOptions),o(2),x("month_btn month-box btn-group bootstrap-select ",t.dobMonthBox?"open":"",""),o(),C("btn dropdown-toggle ",t.currentDriver.personalInfo.birthDate.month==null?"bs-placeholder":""," ",t.validateDateOfBirth()!=null&&t.dobYearTouched&&t.dobMonthTouched&&t.dobDayTouched&&!t.dobYearBox&&!t.dobMonthBox&&!t.dobDayBox?"box-error-center":"","  btn-default"),u("disabled",(t.dobMonthOptions==null?null:t.dobMonthOptions.length)<=0),f("aria-expanded",t.dobMonthBox),o(2),b("",t.currentDriver.personalInfo.birthDate.month!=null?t.getFullMonthName(t.dobMonthOptions[t.currentDriver.personalInfo.birthDate.month]):"Month"," "),o(4),x("dropdown-menu  ",t.dobMonthBox?"open":"",""),o(),f("aria-expanded",t.dobMonthBox),o(),u("ngForOf",t.dobMonthOptions),o(2),x("year_btn remove-border-right btn-group bootstrap-select ",t.dobYearBox?"open":"",""),o(),C("bradius-right btn dropdown-toggle ",t.currentDriver.personalInfo.birthDate.year==null?"bs-placeholder":"","  ",t.validateDateOfBirth()!=null&&t.dobYearTouched&&t.dobMonthTouched&&t.dobDayTouched&&!t.dobYearBox&&!t.dobMonthBox&&!t.dobDayBox?"box-error-right":""," btn-default"),u("disabled",(t.dobYearOptions==null?null:t.dobYearOptions.length)<=0),f("aria-expanded",t.dobYearBox),o(2),b("",t.currentDriver.personalInfo.birthDate.year!=null?t.dobYearOptions[t.currentDriver.personalInfo.birthDate.year]:"Year"," "),o(4),x("dropdown-menu  ",t.dobYearBox?"open":"",""),o(),f("aria-expanded",t.dobYearBox),o(),u("ngForOf",t.dobYearOptions),o(),u("ngIf",t.validateDateOfBirth()!=null&&t.dobYearTouched&&t.dobMonthTouched&&t.dobDayTouched&&!t.dobYearBox&&!t.dobMonthBox&&!t.dobDayBox),o(7),u("disabled",t.currentDriver.personalInfo.isUkCitizen==!0)("checked",t.currentDriver.personalInfo.isUkCitizen==!0),o(),S(t.validateUkCitizen()!=null&&t.ukCitizenTouched?"box-error":""),o(3),u("disabled",t.currentDriver.personalInfo.isUkCitizen==!1)("checked",t.currentDriver.personalInfo.isUkCitizen==!1),o(),S(t.validateUkCitizen()!=null&&t.ukCitizenTouched?"box-error":""),o(2),u("ngIf",t.validateUkCitizen()!=null&&t.ukCitizenTouched),o(),u("ngIf",t.showHelpText.ukResidentSince),o(),u("ngIf",t.currentDriver.personalInfo.isUkCitizen==!1),o(6),x("",t.checkFullTimeStudent()?"custom-form-group-multi":""," form-group-multi vc-get-quote-form-item-inner"),o(),x("form-group fade-up-animation fg-half  ",t.showStudentDetails?"right-padding-0":""," "),o(4),x("btn-group bootstrap-select ",t.jobFullTimeBox?"open":"",""),o(),C("",t.jobFullTimeTouched&&!t.jobFullTimeBox&&t.validateFullTimeJob()!=null?"box-error":""," btn dropdown-toggle ",t.currentDriver.occupation.fullTime.jobStatus==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.jobFullTimeOptions==null?null:t.jobFullTimeOptions.length)<=0),f("aria-expanded",t.jobFullTimeBox),o(2),b("",t.currentDriver.occupation.fullTime.jobStatus==null?"Please Select":t.jobFullTimeOptions.text[t.currentDriver.occupation.fullTime.jobStatus]," "),o(4),x("dropdown-menu  ",t.jobFullTimeBox?"open":"",""),o(),f("aria-expanded",t.jobFullTimeBox),o(),u("ngForOf",t.j
1obFullTimeOptions.text),o(),u("ngIf",t.jobFullTimeTouched&&!t.jobFullTimeBox&&t.validateFullTimeJob()!=null),o(),u("ngIf",t.checkFullTimeStudent()),o(2),u("ngIf",t.showHelpText.fullTimeJobStatus),o(2),u("ngIf",t.checkFullTimeJobRequireDetails()&&t.currentDriver.occupation.fullTime.jobStatus!=null),o(),u("ngIf",t.checkFullTimeJobRequireDetails()&&t.currentDriver.occupation.fullTime.jobStatus!=null),o(2),u("ngIf",t.showHelpText.fullTimeJobTitle),o(2),u("ngIf",t.showHelpText.workin),o(5),b("Do ",t.currentDriver.isAdditionalDriver&&t.allDrivers.length>0?"they":"you"," have a part time job? "),o(4),u("disabled",t.currentDriver.occupation.isPartTimeJob==!0)("checked",t.currentDriver.occupation.isPartTimeJob==!0),o(),S(t.validatePartTimeJob()!=null&&t.isPartTimeCheckBoxTouched?"box-error":""),o(3),u("disabled",t.currentDriver.occupation.isPartTimeJob==!1)("checked",t.currentDriver.occupation.isPartTimeJob==!1),o(),S(t.validatePartTimeJob()!=null&&t.isPartTimeCheckBoxTouched?"box-error":""),o(2),u("ngIf",t.validatePartTimeJob()!=null&&t.isPartTimeCheckBoxTouched),o(2),u("ngIf",t.showHelpText.secondjob),o(3),u("ngIf",t.currentDriver.occupation.isPartTimeJob),o(),u("ngIf",t.showHelpText.partTimeJobStatus),o(2),u("ngIf",t.checkNotPartTimeStudent()&&t.currentDriver.occupation.isPartTimeJob),o(),u("ngIf",t.checkNotPartTimeStudent()&&t.currentDriver.occupation.isPartTimeJob),o(2),u("ngIf",t.showHelpText.partTime),o(2),u("ngIf",t.showHelpText.partTimeJobTitle),o(2),u("ngIf",!t.currentDriver.isAdditionalDriver),o(2),u("ngIf",t.showHelpText.tradebody),o(8),u("ngIf",t.currentDriver.claims.length>0&&!t.isClaimEditing),o(),u("ngIf",t.currentDriver.claims.length==0),o(),u("ngIf",t.currentDriver.claims.length<5&&t.currentDriver.claims.length!=0),o(8),u("ngIf",t.currentDriver.convictions.length>0&&!t.isConvictionEditing),o(),u("ngIf",t.currentDriver.convictions.length==0),o(),u("ngIf",t.currentDriver.convictions.length<5&&t.currentDriver.convictions.length!=0),o(12),x(" btn-group bootstrap-select  ",t.licenseYearsBox?"open":"",""),o(),C("",t.licenseYearTouched&&!t.licenseYearsBox&&t.validateLicenseYears()!=null?"box-error":""," btn dropdown-toggle ",t.currentDriver.drivingDetails.yearsLicenceHeld==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.licenseYearsOptions==null?null:t.licenseYearsOptions.length)<=0),f("aria-expanded",t.licenseYearsBox),o(2),b("",t.currentDriver.drivingDetails.yearsLicenceHeld!=null?t.currentDriver.drivingDetails.yearsLicenceHeld==20?"20+":t.currentDriver.drivingDetails.yearsLicenceHeld:"Please Select"," "),o(4),x("dropdown-menu  ",t.licenseYearsBox?"open":"",""),o(),f("aria-expanded",t.licenseYearsBox),o(),u("ngForOf",t.licenseYearsOptions),o(),u("ngIf",t.licenseYearTouched&&!t.licenseYearsBox&&t.validateLicenseYears()!=null),o(),u("ngIf",t.showHelpText.held),o(),x("form-group-multi ",t.licenseTypeOptions.value[t.currentDriver.drivingDetails.licenceType]=="P"&&!t.currentDriver.isAdditionalDriver?"":"custom-form-group-multi"," "),o(),x("form-group fade-up-animation fg-half fg-left  ",t.licenseTypeOptions.value[t.currentDriver.drivingDetails.licenceType]=="P"&&!t.currentDriver.isAdditionalDriver?"right-padding-0":""," "),o(4),x("btn-group bootstrap-select  ",t.licenseTypeBox?"open":"",""),o(),C("",t.licenseTypeTouched&&!t.licenseTypeBox&&t.validateLicenseType()!=null?"box-error":""," btn dropdown-toggle ",t.currentDriver.drivingDetails.licenceType==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.licenseTypeOptions.text==null?null:t.licenseTypeOptions.text.length)<=0),f("aria-expanded",t.licenseTypeBox),o(2),b("",t.currentDriver.drivingDetails.licenceType!=null?t.licenseTypeOptions.text[t.currentDriver.drivingDetails.licenceType]:"Please Select"," "),o(4),x("dropdown-menu  ",t.licenseTypeBox?"open":"",""),o(),f("aria-expanded",t.licenseTypeBox),o(),u("ngForOf",t.licenseTypeOptions.text),o(),u("ngIf",t.licenseTypeTouched&&!t.licenseTypeBox&&t.validateLicenseType()!=null),o(),u("ngIf",t.showHelpText.licenceType),o(),u("ngIf",t.checkDrivingTestTaken()),o(),u("ngIf",t.showHelpText.licenceType),o(),u("ngIf",!t.currentDriver.isAdditionalDriver),o(),u("ngIf",t.showHelpText.ClaimBonus),o(),x("form-group-multi ",t.checkShowClaimBonusForOtherVehicle()&&!t.currentDriver.isAdditionalDriver?"":"custom-form-group-multi",""),o(),x("form-group fade-up-animation fg-half fg-left  ",t.checkShowClaimBonusForOtherVehicle()&&!t.currentDriver.isAdditionalDriver?"right-padding-0":"",""),o(4),x("btn-group bootstrap-select  ",t.otherVehiclesBox?"open":"",""),o(),C("",t.otherVehiclesTouched&&!t.otherVehiclesBox&&t.validateOtherVehicles()!=null?"box-error":""," btn dropdown-toggle ",t.currentDriver.drivingDetails.accessToOtherVehicles==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.otherVehiclesOptions.text==null?null:t.otherVehiclesOptions.text.length)<=0),f("aria-expanded",t.otherVehiclesBox
1),o(2),b("",t.currentDriver.drivingDetails.accessToOtherVehicles!=null?t.otherVehiclesOptions.text[t.currentDriver.drivingDetails.accessToOtherVehicles]:"Please Select"," "),o(4),x("dropdown-menu  ",t.otherVehiclesBox?"open":"",""),o(),f("aria-expanded",t.otherVehiclesBox),o(),u("ngForOf",t.otherVehiclesOptions.text),o(),u("ngIf",t.otherVehiclesTouched&&!t.otherVehiclesBox&&t.validateOtherVehicles()!=null),o(),u("ngIf",t.showHelpText.accessOtherVechiles),o(),u("ngIf",t.checkShowClaimBonusForOtherVehicle()&&!t.currentDriver.isAdditionalDriver),o(),u("ngIf",t.showHelpText.accessOtherVechiles),o(),u("ngIf",t.showHelpText.noBonus),o(),u("ngIf",!t.currentDriver.isAdditionalDriver),o(),u("ngIf",t.showHelpText.totalNumberVechiles),o(),u("ngIf",t.currentDriver.isAdditionalDriver&&t.allDrivers.length<5||t.isDriverEditing),o(2),u("ngIf",!t.currentDriver.isAdditionalDriver&&!t.isDriverEditing)}}function ln(l,d){if(l&1){let e=T();r(0,"div",260)(1,"button",261),v("click",function(){p(e);let t=c(),s=O(19);return m(t.navigateToNextStep(s))}),a(2," Next Step"),n(),r(3,"button",262),a(4,"Back"),n(),r(5,"button",263),v("click",function(){p(e);let t=c(),s=O(19);return m(t.navigateToNextStep(s))}),a(6,"Next Step"),n()()}}function an(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return _.claimsDaySelected(t,s),m(_.validateClaimDate(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-2 ",i==t.claimDetails.claimDate.day?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.claimDetails.claimDate.day),o(2),D(e)}}function sn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return _.claimsMonthSelected(t,s),m(_.validateClaimDate(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-6 ",i==t.claimDetails.claimDate.month?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.claimDetails.claimDate.month),o(2),D(t.getFullMonthName(e))}}function cn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return _.claimsYearSelected(t,s),m(_.validateClaimDate(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-3 ",i==t.claimDetails.claimDate.year?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.claimDetails.claimDate.year),o(2),D(e)}}function dn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateClaimDate()," ")}}function un(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).$implicit,_=c(3);return m(_.claimsTypeSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.claimDetails.type?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.claimDetails.type),o(2),D(e)}}function pn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateClaimsType()," ")}}function mn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(4);return m(_.claimsDescriptionSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(4);S(i==t.claimDetails.description?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.claimDetails.description),o(2),D(e.description)}}function vn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateClaimsDescription()," ")}}function hn(l,d){if(l&1){let e=T();r(0,"div",302)(1,"label"),a(2,"Description"),n(),r(3,"div",303)(4,"div",78),v("clickOutside",function(){p(e);let t=c(3);return m(t.claimsDescriptionBox?t.claimsDescriptionBox=!t.claimsDescriptionBox:t.claimsDescriptionBox)}),r(5,"button",304),v("click",function(t){p(e);let s=c(3);return m(s.claimsDescriptionClicked(t))}),r(6,"span",80),a(7),n(),a(8,"\xA0 "),r(9,"span",81),g(10,"span",82),n()(),r(11,"div",83)(12,"ul",84),h(13,mn,5,7,"li",85),n()()()(),h(14,vn,2,1,"div",70),n()}if(l&2){let e=c(3);o(4),x("btn-group bootstrap-select  ",e.claimsDescriptionBox?"open":"",""),o(),K("white-bg loader-arrow ",e.getClaimsLoading?"loader":""," ",e.claimsDescriptionTouched&&!e.claimsDescriptionBox&&e.validateClaimsDescription()!=null?"box-error":""," btn dropdown-toggle ",e.claimDetails.description==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.claimsDescriptionOptions==null?null:e.claimsDescriptionOptions.length)<=0),f("aria-expanded",e.claimsDescriptionBox),o(2),b("",e.claimDetails.description!=null?e.claimsDescriptionOptions[e.claimDetails.description]==null?null:e.claimsDescriptionOptions[e.claimDetails.description].description:"Please Select"," "),o(4),x("dropdown-menu  ",e.claimsDescriptionBox?"open":"",""),o(),f("aria-expanded",e.claimsDescriptionBox),o(),u("ngForOf",e.claimsDescriptionOptions),o(),u("ngIf",e.claimsDescriptionTouched&&!e.claimsDescriptionBox&&e.validateClaimsDescription()!=null)}}function _n(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.costIncurredSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.claimDetails.costIncurred?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.claimDetails.costIncurred),o(2),D(e)}}function fn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateCostIncurred()," ")}}function xn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(5);o(),b(" ",e.validateCostAmount()," ")}}function bn(l,d){if(l&1&&(r(0,"div"),h(1,xn,2,1,"div",70),n()),l&2){let e=c(4);o(),u("ngIf",e.validateCostAmount()!=null)}}function gn(l,d){if(l&1){let e=T();r(0,"div",305)(1,"label"),a(2,"Cost amount"),n(),r(3,"div",306)(4,"input",307,9),v("keypress",function(t){p(e);let s=c(3);return s.checkNumber(t),m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(3);return I(s.claimDetails.costAmount,t)||(s.claimDetails.costAmount=t),m(t)}
1),v("blur",function(){p(e);let t=c(3);return m(t.validateCostAmount(!0))}),n()(),h(6,bn,2,1,"div",32),n()}if(l&2){let e=O(5),i=c(3);o(4),x("form-control ",(e.dirty||e.touched)&&i.validateCostAmount()!=null?"box-error":""," "),k("ngModel",i.claimDetails.costAmount),o(2),u("ngIf",e.dirty||e.touched)}}function Tn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateFaultClaim()," ")}}function Dn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validatePersonalInjury()," ")}}function Cn(l,d){if(l&1){let e=T();r(0,"div",308)(1,"label"),a(2,"Any personal injury?"),n(),r(3,"div",64)(4,"div",290),v("click",function(){p(e);let t=c(3);return m(t.setPersonalInjury(!0))}),g(5,"input",309),r(6,"label",310),a(7,"Yes"),n()(),r(8,"div",290),v("click",function(){p(e);let t=c(3);return m(t.setPersonalInjury(!1))}),g(9,"input",311),r(10,"label",312),a(11,"No"),n()()(),h(12,Dn,2,1,"div",70),n()}if(l&2){let e=c(3);o(5),u("disabled",e.claimDetails.personalInjury==!0)("checked",e.claimDetails.personalInjury==!0),o(),x("",e.validatePersonalInjury()!=null&&e.personalInjuryTouched?"box-error":""," "),o(3),u("disabled",e.claimDetails.personalInjury==!1)("checked",e.claimDetails.personalInjury==!1),o(),x("",e.validatePersonalInjury()!=null&&e.personalInjuryTouched?"box-error":""," "),o(2),u("ngIf",e.validatePersonalInjury()!=null&&e.personalInjuryTouched)}}function yn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateOccuredUnder()," ")}}function Sn(l,d){if(l&1){let e=T();r(0,"button",313),v("click",function(){p(e);let t=c(3),s=O(19);return m(t.isClaimEditing?t.updateClaim(s,t.claimDetails.index):t.addClaim(s))}),a(1),n()}if(l&2){let e=c(3);x("save-entry common-save ",e.checkClaimAddOrUpdateButtonValid()?"box-error":"",""),o(),b(" ",e.isClaimEditing?"Update":"Add Claim"," ")}}function wn(l,d){if(l&1){let e=T();r(0,"div",273)(1,"div",274)(2,"div",275)(3,"h3",276),a(4,"Claims"),n()(),r(5,"div")(6,"div",277)(7,"div",278)(8,"div",279)(9,"div",280)(10,"label"),a(11,"Date"),n(),r(12,"div",98)(13,"div")(14,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.claimsDayBox?t.claimsDayBox=!t.claimsDayBox:t.claimsDayBox)}),r(15,"button",99),v("click",function(t){p(e);let s=c(2);return m(s.claimsDayClicked(t))}),r(16,"span",80),a(17),n(),a(18,"\xA0 "),r(19,"span",81),g(20,"span",82),n()(),r(21,"div",83)(22,"ul",100),h(23,an,5,7,"li",85),n()()()(),r(24,"div")(25,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.claimsMonthBox?t.claimsMonthBox=!t.claimsMonthBox:t.claimsMonthBox)}),r(26,"button",101),v("click",function(t){p(e);let s=c(2);return m(s.claimsMonthClicked(t))}),r(27,"span",80),a(28),n(),a(29,"\xA0 "),r(30,"span",81),g(31,"span",82),n()(),r(32,"div",83)(33,"ul",100),h(34,sn,5,7,"li",85),n()()()(),r(35,"div")(36,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.claimsYearBox?t.claimsYearBox=!t.claimsYearBox:t.claimsYearBox)}),r(37,"button",102),v("click",function(t){p(e);let s=c(2);return m(s.claimsYearClicked(t))}),r(38,"span",80),a(39),n(),a(40,"\xA0 "),r(41,"span",81),g(42,"span",82),n()(),r(43,"div",83)(44,"ul",100),h(45,cn,5,7,"li",85),n()()()()(),h(46,dn,2,1,"div",70),n(),r(47,"div",281)(48,"label"),a(49,"Type "),n(),r(50,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.claimsTypeBox?t.claimsTypeBox=!t.claimsTypeBox:t.claimsTypeBox)}),r(51,"button",282),v("click",function(t){p(e);let s=c(2);return m(s.claimsTypeClicked(t))}),r(52,"span",80),a(53),n(),a(54,"\xA0 "),r(55,"span",81),g(56,"span",82),n()(),r(57,"div",83)(58,"ul",84),h(59,un,5,7,"li",85),n()()(),h(60,pn,2,1,"div",70),n()()(),r(61,"div",278),h(62,hn,15,17,"div",283),g(63,"div",284),n(),r(64,"div",278)(65,"div")(66,"div",285)(67,"label"),a(68,"Costs incurred by your insurer"),n(),r(69,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.costIncurredBox?t.costIncurredBox=!t.costIncurredBox:t.costIncurredBox)}),r(70,"button",286),v("click",function(t){p(e);let s=c(2);return m(s.costIncurredClicked(t))}),r(71,"span",80),a(72),n(),a(73,"\xA0 "),r(74,"span",81),g(75,"span",82),n()(),r(76,"div",83)(77,"ul",84),h(78,_n,5,7,"li",85),n()()(),h(79,fn,2,1,"div",70),n(),h(80,gn,7,5,"div",287),n()(),r(81,"div",288)(82,"div",289)(83,"label"),a(84,"Was this classed as a fault claim?"),n(),r(85,"div",64)(86,"div",290),v("click",function(){p(e);let t=c(2);return m(t.setFaultClaim(!0))}),g(87,"input",291),r(88,"label",292),a(89,"Yes"),n()(),r(90,"div",290),v("click",function(){p(e);let t=c(2);return m(t.setFaultClaim(!1))}),g(91,"input",293),r(92,"label",294),a(93,"No"),n()()(),h(94,Tn,2,1,"div",70),n(),h(95,Cn,13,11,"div",295),n(),r(96,"div",288)(97,"div",296
1)(98,"label"),a(99,"Occurred under this policy?"),n(),r(100,"div",64)(101,"div",290),v("click",function(){p(e);let t=c(2);return m(t.setOccuredUnder(!0))}),g(102,"input",297),r(103,"label",298),a(104,"Yes"),n()(),r(105,"div",290),v("click",function(){p(e);let t=c(2);return m(t.setOccuredUnder(!1))}),g(106,"input",299),r(107,"label",300),a(108,"No"),n()()(),h(109,yn,2,1,"div",70),n()(),h(110,Sn,2,4,"button",301),n()()()()}if(l&2){let e=c(2);o(14),x("day_btn btn-group bootstrap-select ",e.claimsDayBox?"open":"",""),o(),C("bradius-left btn dropdown-toggle ",e.claimDetails.claimDate.day==null?"bs-placeholder":""," ",e.validateClaimDate()!=null&&e.claimsDayTouched&&e.claimsMonthTouched&&e.claimsYearTouched&&!e.claimsYearBox&&!e.claimsMonthBox&&!e.claimsDayBox?"box-error-left":""," btn-default"),u("disabled",(e.claimsDayOptions==null?null:e.claimsDayOptions.length)<=0),f("aria-expanded",e.claimsDayBox),o(2),b("",e.claimDetails.claimDate.day!=null?e.claimsDayOptions[e.claimDetails.claimDate.day]:"Day"," "),o(4),x("dropdown-menu  ",e.claimsDayBox?"open":"",""),o(),f("aria-expanded",e.claimsDayBox),o(),u("ngForOf",e.claimsDayOptions),o(2),x("month_btn month-box btn-group bootstrap-select ",e.claimsMonthBox?"open":"",""),o(),C("btn dropdown-toggle ",e.claimDetails.claimDate.month==null?"bs-placeholder":""," ",e.validateClaimDate()!=null&&e.claimsDayTouched&&e.claimsMonthTouched&&e.claimsYearTouched&&!e.claimsYearBox&&!e.claimsMonthBox&&!e.claimsDayBox?"box-error-center":""," btn-default"),u("disabled",(e.claimsMonthOptions==null?null:e.claimsMonthOptions.length)<=0),f("aria-expanded",e.claimsMonthBox),o(2),b("",e.claimDetails.claimDate.month!=null?e.getFullMonthName(e.claimsMonthOptions[e.claimDetails.claimDate.month]):"Month"," "),o(4),x("dropdown-menu  ",e.claimsMonthBox?"open":"",""),o(),f("aria-expanded",e.claimsMonthBox),o(),u("ngForOf",e.claimsMonthOptions),o(2),x("year_btn btn-group bootstrap-select ",e.claimsYearBox?"open":"",""),o(),C("bradius-right btn dropdown-toggle ",e.claimDetails.claimDate.year==null?"bs-placeholder":""," ",e.validateClaimDate()!=null&&e.claimsDayTouched&&e.claimsMonthTouched&&e.claimsYearTouched&&!e.claimsYearBox&&!e.claimsMonthBox&&!e.claimsDayBox?"box-error-right":""," btn-default"),u("disabled",(e.claimsYearOptions==null?null:e.claimsYearOptions.length)<=0),f("aria-expanded",e.claimsYearBox),o(2),b("",e.claimDetails.claimDate.year!=null?e.claimsYearOptions[e.claimDetails.claimDate.year]:"Year"," "),o(4),x("dropdown-menu  ",e.claimsYearBox?"open":"",""),o(),f("aria-expanded",e.claimsYearBox),o(),u("ngForOf",e.claimsYearOptions),o(),u("ngIf",e.validateClaimDate()!=null&&e.claimsDayTouched&&e.claimsMonthTouched&&e.claimsYearTouched&&!e.claimsYearBox&&!e.claimsMonthBox&&!e.claimsDayBox),o(4),x("btn-group bootstrap-select  ",e.claimsTypeBox?"open":"",""),o(),C("",e.claimsTypeTouched&&!e.claimsTypeBox&&e.validateClaimsType()!=null?"box-error":""," btn dropdown-toggle ",e.claimDetails.type==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.claimsTypeOptions==null?null:e.claimsTypeOptions.length)<=0),f("aria-expanded",e.claimsTypeBox),o(2),b("",e.claimDetails.type!=null?e.claimDetails.type:"Please Select"," "),o(4),x("dropdown-menu  ",e.claimsTypeBox?"open":"",""),o(),f("aria-expanded",e.claimsTypeBox),o(),u("ngForOf",e.claimsTypeOptions),o(),u("ngIf",e.claimsTypeTouched&&!e.claimsTypeBox&&e.validateClaimsType()!=null),o(2),u("ngIf",e.claimDetails.type!=null),o(3),x("form-group-multi ",e.claimDetails.costIncurred==0?"":"custom-form-group-multi",""),o(),x("form-group fg-half ",e.claimDetails.costIncurred==0?"right-padding-0":"",""),o(3),x("btn-group bootstrap-select  ",e.costIncurredBox?"open":"",""),o(),C("",e.costIncurredTouched&&!e.costIncurredBox&&e.validateCostIncurred()!=null?"box-error":""," btn dropdown-toggle ",e.claimDetails.costIncurred==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.costIncurredOptions==null?null:e.costIncurredOptions.length)<=0),f("aria-expanded",e.costIncurredBox),o(2),b("",e.claimDetails.costIncurred!=null?e.costIncurredOptions[e.claimDetails.costIncurred]:"Please Select"," "),o(4),x("dropdown-menu  ",e.costIncurredBox?"open":"",""),o(),f("aria-expanded",e.costIncurredBox),o(),u("ngForOf",e.costIncurredOptions),o(),u("ngIf",e.costIncurredTouched&&!e.costIncurredBox&&e.validateCostIncurred()!=null),o(),u("ngIf",e.claimDetails.costIncurred==0),o(7),u("disabled",e.claimDetails.faultClaim==!0)("checked",e.claimDetails.faultClaim==!0),o(),x("",e.validateFaultClaim()!=null&&e.faultClaimTouched?"box-error":""," "),o(3),u("disabled",e.claimDetails.faultClaim==!1)("checked",e.claimDetails.faultClaim==!1),o(),x("",e.validateFaultClaim()!=null&&e.faultClaimTouched?"box-error":""," "),o(2),u("ngIf",e.validateFaultClaim()!=null&&e.faultClaimTouched),o(),u("ngIf",e.showPersonalInjury),o(7),u("disabled",e.claimDetails.occuredUnder==!0)("checked",e.claimDetails.occuredUnder==!0),o(),x("",e.validateOccuredUnder()!=null&&e.occuredUnderTouched?"box-error":""," "),o(3),u("disabled",e.claimDetails.occuredUnder==!1)("checked",e.claimDetails.occuredUnder==!1),o(),x("",e.validateOccuredUnder()!=null&&e.occuredUnderTouched?"box-error":""," "),o(2),u("ngIf",e.validateOccuredUnder()!=null&&e.occuredUnderTouched),o(),u("ngIf",e.currentDriver.claims.length<=5)}}function kn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",182),v("click",function(){let t=p(e).$implicit,s=c(4);return m(s.selectConvictionType(t))}),a(2),n()()}if(l&2){let e=d.$implicit;o(2),D(e.description)}}function In(l,d){if(l&1&&(r(0,"div",179)(1,"ul",180),h(2,kn,3,1,"li",181),n()()),l&2){let e=c(3);o(2),u("ngForOf",e.convictionsTypeOptions)}}function Vn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateConvictionType()," ")}}function On(l,d){if(l&1&&(r(0,"div"),h(1,Vn,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validateConvictionType()!=null)}}function Bn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return _.convictionsDaySelected(t,s),m(_.validateConvictionDate(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);
1x("col-xs-2 ",i==t.convictionDetails.convictionDate.day?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.convictionDetails.convictionDate.day),o(2),D(e)}}function An(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return _.convictionsMonthSelected(t,s),m(_.validateConvictionDate(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-6 ",i==t.convictionDetails.convictionDate.month?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.convictionDetails.convictionDate.month),o(2),D(t.getFullMonthName(e))}}function En(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return _.convictionsYearSelected(t,s),m(_.validateConvictionDate(!0))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);x("col-xs-3 ",i==t.convictionDetails.convictionDate.year?"selected":"",""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.convictionDetails.convictionDate.year),o(2),D(e)}}function Mn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateConvictionDate()," ")}}function Yn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.pointsSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.convictionDetails.points?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.convictionDetails.points),o(2),D(e)}}function Nn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validatePoints()," ")}}function Jn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateFine()," ")}}function Fn(l,d){if(l&1&&(r(0,"div"),h(1,Jn,2,1,"div",70),n()),l&2){let e=c(3);o(),u("ngIf",e.validateFine()!=null)}}function Pn(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(3);return m(_.banLengthSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(3);S(i==t.convictionDetails.banLength?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.convictionDetails.banLength),o(2),D(e)}}function jn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(3);o(),b(" ",e.validateBanLength()," ")}}function Ln(l,d){if(l&1){let e=T();r(0,"li")(1,"a",156),v("click",function(t){let s=p(e).index,_=c(4);return m(_.readingTypeSelected(t,s))}),r(2,"span",157),a(3),n(),g(4,"span",158),n()()}if(l&2){let e=d.$implicit,i=d.index,t=c(4);S(i==t.convictionDetails.readingType?"selected":""),f("data-original-index",i),o(),y("tabindex",i),f("aria-selected",i==t.convictionDetails.readingType),o(2),D(e)}}function Un(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(4);o(),b(" ",e.validateReadingType()," ")}}function Hn(l,d){if(l&1){let e=T();r(0,"div",329)(1,"label"),a(2,"Reading type"),n(),r(3,"div",78),v("clickOutside",function(){p(e);let t=c(3);return m(t.readingTypeBox?t.readingTypeBox=!t.readingTypeBox:t.readingTypeBox)}),r(4,"button",330),v("click",function(t){p(e);let s=c(3);return m(s.readingTypeClicked(t))}),r(5,"span",80),a(6),n(),a(7,"\xA0 "),r(8,"span",81),g(9,"span",82),n()(),r(10,"div",83)(11,"ul",84),h(12,Ln,5,7,"li",85),n()()(),h(13,Un,2,1,"div",70),n()}if(l&2){let e=c(3);o(3),x("btn-group bootstrap-select  ",e.readingTypeBox?"open":"",""),o(),C("",e.readingTypeTouched&&!e.readingTypeBox&&e.validateReadingType()!=null?"box-error":""," btn dropdown-toggle ",e.convictionDetails.readingType==null?"bs-placeholder":"","  btn-default"),u("disabled",(e.readingTypeOptions.text==null?null:e.readingTypeOptions.text.length)<=0),f("aria-expanded",e.readingTypeBox),o(2),b("",e.convictionDetails.readingType!=null?e.readingTypeOptions.text[e.convictionDetails.readingType]:"Please Select"," "),o(4),x("dropdown-menu  ",e.readingTypeBox?"open":"",""),o(),f("aria-expanded",e.readingTypeBox),o(),u("ngForOf",e.readingTypeOptions.text),o(),u("ngIf",e.readingTypeTouched&&!e.readingTypeBox&&e.validateReadingType()!=null)}}function Rn(l,d){if(l&1&&(r(0,"div",71),a(1),n()),l&2){let e=c(5);o(),b(" ",e.validateReadingLevel()," ")}}function Wn(l,d){if(l&1&&(r(0,"div"),h(1,Rn,2,1,"div",70),n()),l&2){let e=c(4);o(),u("ngIf",e.validateReadingLevel()!=null)}}function qn(l,d){if(l&1){let e=T();r(0,"div",331)(1,"label"),a(2,"Reading level (in mg/ml)"),n(),r(3,"input",332,12),v("keypress",function(t){p(e);let s=c(3);return s.checkNumber(t),m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(3);
1return I(s.convictionDetails.readingLevel,t)||(s.convictionDetails.readingLevel=t),m(t)}),v("blur",function(){p(e);let t=c(3);return m(t.validateReadingLevel(!0))}),n(),h(5,Wn,2,1,"div",32),n()}if(l&2){let e=O(4),i=c(3);o(3),x("form-control ",(e.dirty||e.touched)&&i.validateReadingLevel()!=null?"box-error":""," "),k("ngModel",i.convictionDetails.readingLevel),o(2),u("ngIf",e.dirty||e.touched)}}function zn(l,d){if(l&1){let e=T();r(0,"button",313),v("click",function(){p(e);let t=c(3),s=O(19);return m(t.isConvictionEditing?t.updateConviction(s,t.convictionDetails.index):t.addConviction(s))}),a(1),n()}if(l&2){let e=c(3);x("save-entry common-save ",e.checkConvictionAddOrUpdateButtonValid()?"box-error":"",""),o(),b(" ",e.isConvictionEditing?"Update":"Add Conviction"," ")}}function Kn(l,d){if(l&1){let e=T();r(0,"button",333),v("click",function(){p(e);let t=c(3);return m(t.addAnotherConviction())}),a(1," Add Another Conviction "),n()}}function $n(l,d){if(l&1){let e=T();r(0,"div",314)(1,"div",274)(2,"div",275)(3,"h3",111),a(4,"Convictions"),n()(),r(5,"div")(6,"div")(7,"div",277)(8,"div",288)(9,"div",315)(10,"label"),a(11,"Type"),n(),r(12,"div",175)(13,"input",316,10),v("keypress",function(t){p(e);let s=c(2);return m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s._convictionsType,t)||(s._convictionsType=t),m(t)}),v("clickOutside",function(){p(e);let t=c(2);return m(t.clickOutsideConvictionType())})("ngModelChange",function(){p(e);let t=c(2);return m(t.autocompleteConvictionType())})("focus",function(){p(e);let t=c(2);return t.focussed.convictionType=!0,m(t.autocompleteConvictionType())}),n(),h(15,In,3,1,"div",177),n(),h(16,On,2,1,"div",32),n(),r(17,"div",317)(18,"div",280)(19,"label"),a(20,"Date"),n(),r(21,"div",98)(22,"div")(23,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.convictionsDayBox?t.convictionsDayBox=!t.convictionsDayBox:t.convictionsDayBox)}),r(24,"button",99),v("click",function(t){p(e);let s=c(2);return m(s.convictionsDayClicked(t))}),r(25,"span",80),a(26),n(),a(27,"\xA0 "),r(28,"span",81),g(29,"span",82),n()(),r(30,"div",83)(31,"ul",100),h(32,Bn,5,7,"li",85),n()()()(),r(33,"div")(34,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.convictionsMonthBox?t.convictionsMonthBox=!t.convictionsMonthBox:t.convictionsMonthBox)}),r(35,"button",101),v("click",function(t){p(e);let s=c(2);return m(s.convictionsMonthClicked(t))}),r(36,"span",80),a(37),n(),a(38,"\xA0 "),r(39,"span",81),g(40,"span",82),n()(),r(41,"div",83)(42,"ul",100),h(43,An,5,7,"li",85),n()()()(),r(44,"div")(45,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.convictionsYearBox?t.convictionsYearBox=!t.convictionsYearBox:t.convictionsYearBox)}),r(46,"button",102),v("click",function(t){p(e);let s=c(2);return m(s.convictionsYearClicked(t))}),r(47,"span",80),a(48),n(),a(49,"\xA0 "),r(50,"span",81),g(51,"span",82),n()(),r(52,"div",83)(53,"ul",100),h(54,En,5,7,"li",85),n()()()()(),h(55,Mn,2,1,"div",70),n()()(),r(56,"div",288)(57,"div",318)(58,"label"),a(59,"Points"),n(),r(60,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.pointsBox?t.pointsBox=!t.pointsBox:t.pointsBox)}),r(61,"button",319),v("click",function(t){p(e);let s=c(2);return m(s.pointsClicked(t))}),r(62,"span",80),a(63),n(),a(64,"\xA0 "),r(65,"span",81),g(66,"span",82),n()(),r(67,"div",83)(68,"ul",84),h(69,Yn,5,7,"li",85),n()()(),h(70,Nn,2,1,"div",70),n(),r(71,"div",320)(72,"label"),a(73,"Fine"),n(),r(74,"div",306)(75,"input",321,11),v("blur",function(){p(e);let t=c(2);return m(t.validateFine(!0))})("keypress",function(t){p(e);let s=c(2);return s.checkNumber(t),m(s.preventEnterKey(t))}),V("ngModelChange",function(t){p(e);let s=c(2);return I(s.convictionDetails.fine,t)||(s.convictionDetails.fine=t),m(t)}),n()(),h(77,Fn,2,1,"div",32),n()(),r(78,"div")(79,"div",322)(80,"label"),a(81,"Ban length"),n(),r(82,"div",78),v("clickOutside",function(){p(e);let t=c(2);return m(t.banLengthBox?t.banLengthBox=!t.banLengthBox:t.banLengthBox)}),r(83,"button",323),v("click",function(t){p(e);let s=c(2);return m(s.banLengthClicked(t))}),r(84,"span",80),a(85),n(),a(86,"\xA0 "),r(87,"span",81),g(88,"span",82),n()(),r(89,"div",83)(90,"ul",84),h(91,Pn,5,7,"li",85),n()()(),h(92,jn,2,1,"div",70),n(),h(93,Hn,14,16,"div",324),n(),r(94,"div",325),h(95,qn,6,5,"div",326),n(),h(96,zn,2,4,"button",301),n()(),r(97,"div",327),h(98,Kn,2,0,"button",328),n()()()()}if(l&2){let e=O(14),i=O(76),t=c(2);o(13),C("no-border form-control white-bg loader-arrow ",t.convictionsTypeLoading?"loader":""," ",(e.dirty||e.touched)&&t.validateConvictionType()!=null?"box-error":""," "),k("ngModel",t._convictionsType),o(2),u("ngIf",t.convictionsTypeOptions.length>
10&&t.focussed.convictionType),o(),u("ngIf",e.dirty||e.touched),o(7),x("day_btn btn-group bootstrap-select ",t.convictionsDayBox?"open":"",""),o(),C("bradius-left btn dropdown-toggle ",t.convictionDetails.convictionDate.day==null?"bs-placeholder":""," ",t.validateConvictionDate()!=null&&t.convictionsDayTouched&&t.convictionsMonthTouched&&t.convictionsYearTouched&&!t.convictionsYearBox&&!t.convictionsMonthBox&&!t.convictionsDayBox?"box-error-left":""," btn-default"),u("disabled",(t.convictionsDayOptions==null?null:t.convictionsDayOptions.length)<=0),f("aria-expanded",t.convictionsDayBox),o(2),b("",t.convictionDetails.convictionDate.day!=null?t.convictionsDayOptions[t.convictionDetails.convictionDate.day]:"Day"," "),o(4),x("dropdown-menu  ",t.convictionsDayBox?"open":"",""),o(),f("aria-expanded",t.convictionsDayBox),o(),u("ngForOf",t.convictionsDayOptions),o(2),x("month_btn month-box btn-group bootstrap-select ",t.convictionsMonthBox?"open":"",""),o(),C("btn dropdown-toggle ",t.convictionDetails.convictionDate.month==null?"bs-placeholder":""," ",t.validateConvictionDate()!=null&&t.convictionsDayTouched&&t.convictionsMonthTouched&&t.convictionsYearTouched&&!t.convictionsYearBox&&!t.convictionsMonthBox&&!t.convictionsDayBox?"box-error-center":""," btn-default"),u("disabled",(t.convictionsMonthOptions==null?null:t.convictionsMonthOptions.length)<=0),f("aria-expanded",t.convictionsMonthBox),o(2),b("",t.convictionDetails.convictionDate.month!=null?t.getFullMonthName(t.convictionsMonthOptions[t.convictionDetails.convictionDate.month]):"Month"," "),o(4),x("dropdown-menu  ",t.convictionsMonthBox?"open":"",""),o(),f("aria-expanded",t.convictionsMonthBox),o(),u("ngForOf",t.convictionsMonthOptions),o(2),x("year_btn btn-group bootstrap-select ",t.convictionsYearBox?"open":"",""),o(),C("bradius-right btn dropdown-toggle ",t.convictionDetails.convictionDate.year==null?"bs-placeholder":""," ",t.validateConvictionDate()!=null&&t.convictionsDayTouched&&t.convictionsMonthTouched&&t.convictionsYearTouched&&!t.convictionsYearBox&&!t.convictionsMonthBox&&!t.convictionsDayBox?"box-error-right":""," btn-default"),u("disabled",(t.convictionsYearOptions==null?null:t.convictionsYearOptions.length)<=0),f("aria-expanded",t.convictionsYearBox),o(2),b("",t.convictionDetails.convictionDate.year!=null?t.convictionsYearOptions[t.convictionDetails.convictionDate.year]:"Year"," "),o(4),x("dropdown-menu  ",t.convictionsYearBox?"open":"",""),o(),f("aria-expanded",t.convictionsYearBox),o(),u("ngForOf",t.convictionsYearOptions),o(),u("ngIf",t.validateConvictionDate()!=null&&t.convictionsDayTouched&&t.convictionsMonthTouched&&t.convictionsYearTouched&&!t.convictionsYearBox&&!t.convictionsMonthBox&&!t.convictionsDayBox),o(5),x("btn-group bootstrap-select  ",t.pointsBox?"open":"",""),o(),C("",t.pointsTouched&&!t.pointsBox&&t.validatePoints()!=null?"box-error":""," btn dropdown-toggle ",t.convictionDetails.points==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.pointsOptions.text==null?null:t.pointsOptions.text.length)<=0),f("aria-expanded",t.pointsBox),o(2),b("",t.convictionDetails.points!=null?t.pointsOptions.text[t.convictionDetails.points]:"Please Select"," "),o(4),x("dropdown-menu  ",t.pointsBox?"open":"",""),o(),f("aria-expanded",t.pointsBox),o(),u("ngForOf",t.pointsOptions.text),o(),u("ngIf",t.pointsTouched&&!t.pointsBox&&t.validatePoints()!=null),o(5),x("form-control ",(i.dirty||i.touched)&&t.validateFine()!=null?"box-error":"",""),k("ngModel",t.convictionDetails.fine),o(2),u("ngIf",i.dirty||i.touched),o(),x("",t.checkReadingBoxes()?"":"custom-form-group-multi"," form-group-multi"),o(),x("form-group fg-half ",t.checkReadingBoxes()?"right-padding-0":"",""),o(3),x("btn-group bootstrap-select  ",t.banLengthBox?"open":"",""),o(),C("",t.banLengthTouched&&!t.banLengthBox&&t.validateBanLength()!=null?"box-error":""," btn dropdown-toggle ",t.convictionDetails.banLength==null?"bs-placeholder":"","  btn-default"),u("disabled",(t.banLengthOptions.text==null?null:t.banLengthOptions.text.length)<=0),f("aria-expanded",t.banLengthBox),o(2),b("",t.convictionDetail
1s.banLength!=null?t.banLengthOptions.text[t.convictionDetails.banLength]:"Please Select"," "),o(4),x("dropdown-menu  ",t.banLengthBox?"open":"",""),o(),f("aria-expanded",t.banLengthBox),o(),u("ngForOf",t.banLengthOptions.text),o(),u("ngIf",t.banLengthTouched&&!t.banLengthBox&&t.validateBanLength()!=null),o(),u("ngIf",t.checkReadingBoxes()),o(2),u("ngIf",t.checkReadingBoxes()),o(),u("ngIf",t.currentDriver.convictions.length<=5),o(2),u("ngIf",t.currentDriver.convictions.length>0&&t.currentDriver.convictions.length<5&&t.currentDriver.personalInfo.didConviction&&!t.showConvictionForm)}}function Qn(l,d){if(l&1){let e=T();r(0,"div",264)(1,"div",265),v("click",function(t){p(e);let s=c();return m(s.clickOutsideModal(t))}),r(2,"div",266)(3,"div",267)(4,"button",268),v("click",function(t){p(e);let s=c();return s.setClaimsclosed(s.closeclaim),s.showModal(t,!1),s.convictionspop=!1,s.claimspop=!1,s.isClaimEditing=!1,m(s.isConvictionEditing=!1)}),r(5,"span",269),a(6,"\xD7"),n()(),r(7,"div",270),h(8,wn,111,110,"div",271),n(),h(9,$n,99,100,"div",272),n()()()()}if(l&2){let e=c();o(8),u("ngIf",e.claimspop==!0),o(),u("ngIf",e.convictionspop==!0)}}var Ve=(()=>{class l{constructor(e,i,t,s,_,w,Y,B){this.document=e,this.trackProgress=t,this.router=s,this._scrollToService=_,this.quoteMessages=w,this.serviceCalls=Y,this.localStorageService=B,this.CONSTANT=new ke().constant,this.percentage=40,this.allDrivers=[],this.popup=!1,this.itemSelected=null,this.claimspop=!1,this.closeclaim=null,this.convictionspop=!1,this.claimDetails={claimDate:{day:null,month:null,year:null},type:null,claimDescription:null,description:null,costIncurred:null,costAmount:null,faultClaim:null,personalInjury:null,occuredUnder:null},this._claimDetails=JSON.parse(JSON.stringify(this.claimDetails)),this.convictionDetails={type:null,readingType:null,readingLevel:null,points:null,fine:null,banLength:null,convictionDate:{day:null,month:null,year:null}},this._convictionDetails=JSON.parse(JSON.stringify(this.convictionDetails)),this.showDriverForm=!0,this.isDriverEditing=!1,this.currentDriver={personalInfo:{title:null,relationToProposer:null,maritalStatus:null,firstName:null,lastName:null,birthDate:{day:null,month:null,year:null},isUkCitizen:null,yearsUkResident:null,didCalim:null,didConviction:null},occupation:{fullTime:{jobStatus:null,jobTitle:null,jobNature:null,studentStatus:null},partTime:{jobStatus:null,jobTitle:null,jobNature:null},isTradeMember:null,isPartTimeJob:null},claims:[],convictions:[],drivingDetails:{claimBonus:null,otherVehilcleClaimBonus:null,protectClaimBonus:null,driverTestTaken:null,totalVehicles:null,accessToOtherVehicles:null,licenceType:null,yearsLicenceHeld:null},isAdditionalDriver:!1,driverYesNoButton:null,index:null},this._driver=JSON.parse(JSON.stringify(this.currentDriver)),this.driverAddButtonTouched=!1,this.driverYesNoTouched=!1,this.titleOptions=this.CONSTANT.title,this.titleBox=!1,this.titleValidationTouched=!1,this.maritalStatusOptions=this.CONSTANT.maritalStatus,this.maritalStatusBox=!1,this.maritalStatusTouched=!1,this.relationOptions=this.CONSTANT.relationToProposer,this.relationBox=!1,this.relationTouched=!1,this.dobDatesData=se(),this.dobDayOptions=this.dobDatesData.dates,this.dobDayBox=!1,this.dobDayTouched=!1,this.dobMonthOptions=this.dobDatesData.months,this.dobMonthBox=!1,this.dobMonthTouched=!1,this.dobYearOptions=this.dobDatesData.years,this.dobYearBox=!1,this.dobYearTouched=!1,this.ukCitizenTouched=!1,this.yearsUkResidentBox=!1,this.yearsUkResidentOptions=this.CONSTANT.yearsUkResident,this.yearsUkResidentTouched=!1,this.jobFullTimeOptions=this.CONSTANT.jobFullTime,this.jobFullTimeBox=!1,this.jobFullTimeTouched=!1,this.studentDetailsOptions=this.CONSTANT.studentType,this.studentDetailsBox=!1,this.studentDetailsTouched=!1,this.isPartTimeCheckBoxTouched=!1,this.jobPartTimeOptions=this.CONSTANT.jobPartTime,this.jobPartTimeBox=!1,this.jobPartTimeTouched=!1,this.isTradeMemberTouched=!1,this._fullTimeJobTitle=null,this.fullTimeJobTitleOptions=[],this.fullTimeJobTitleLoading=!1,this._fullTimeJobNature=null,this.fullTimeJobNatureOptions=[],this.fullTimeJobNatureLoading=!1,this._partTimeJobTitle=null,this.partTimeJobTitleOptions=[],this.partTimeJobTitleLoading=!1,this._partTimeJobNature=null,this.partTimeJobNatureOptions=[],this.partTimeJobNatureLoading=!1,this.datesData=ae(),this.showClaimForm=!1,this.isClaimEditing=!1,this.isclaimsTouched=!1,this.claimsDayOptions=this.datesData.dates,this.claimsDayBox=!1,this.claimsDayTouched=!1,this.claimsMonthOptions=this.datesData.months,this.claimsMonthBox=!1,this.claimsMonthTouched=!1,this.claimsYearOptions=this.datesData.years,this.claimsYearBox=!1,this.claimsYearTouched=!1,this.claimsTypeOptions=this.CONSTANT.claimType,this.claimsTypeBox=!1,this.claimsTypeTouched=!1,this.claimsDescriptionOptions=[],this.claimsDescriptionBox=!1,this.claimsDescriptionTouched=!1,this.costIncurredOptions=this.CONSTANT.costIncurred,this.costIncurredBox=!1,this.costIncurredTouched=!1,this.occuredUnderTouched=!1,this.getClaimsLoading=!1,this.faultClaimTouched=!1,this.showPersonalInjury=!1,this.personalInjuryTouched=!1,this.claimsAddButtonTouched=!1,this.showConvictionForm=!1,this.isConvictionEditing=!1,this.isConvictionTouched=!1,this._convictionsType=null,this.convictionsTypeOptions=[],this.convictionsTypeLoading=!1,this.convictionsDayOptions=this.datesData.dates,this.convictionsDayBox=!1,this.convictionsDayTouched=!1,this.convictionsMonthOptions=this.datesData.months,this.convictionsMonthBox=!1,this.convictionsMonthTouched=!1,this.convictionsYearOptions=this.datesData.years,this.convictionsYearBox=!1,this.convictionsYearTouched=!1,this.pointsTouched=!1,this.pointsBox=!1,this.pointsOptions=this.CONSTANT.points,this.banLengthTouched=!1,this.banLengthBox=!1,this.banLengthOptions=this.CONSTANT.banLength,this.readingTypeTouched=!1,this.readingTypeBox=!1,this.readingTypeOptions=this.CONSTANT.readingType,this.convictionAddButtonTouched=!1,this.licenseYearTouched=!1,this.licenseYearsOptions=this.CONSTANT.yearsLicense,this.licenseYearsBox=!1,this.licenseTypeTouched=!1,this.licenseTypeOptions=this.CONSTANT.licenseType,this.licenseTypeBox=!1,this.claimBonusTouched=!1,this.claimBonusOptions=this.CONSTANT.claimBonus,this.claimBonusBox=!1,this.protectClaimBonusTouched=!1,this.otherVehiclesTouched=!1,this.otherVehiclesOptions=this.CONSTANT.otherVehicles,this.otherVehiclesBox=!1,this.otherVehiclesClaimBonusTouched=!1,this.otherVehiclesClaimBonusOptions=this.CONSTANT.claimBonus,this.otherVehiclesClaimBonusBox=!1,this.totalVehiclesTouched=!1,this.totalVehilcesOptions=JSON.parse(JSON.stringify(this.CONSTANT.totalVehicles)),this.totalVehilcesBox=!1,this.showDriverInfo=[!1,!1,
1!1,!1],this.showHelpText={personal:!1,ukResidentSince:!1,fullTimeJobStatus:!1,fullTimeJobTitle:!1,partTimeJobStatus:!1,partTimeJobTitle:!1,secondjob:!1,tradebody:!1,claimIncidents:!1,convictionsToggle:!1,noClaimBonus:!1,totalNumberVechiles:!1,accessOtherVechiles:!1,licenceType:!1,held:!1,ClaimBonus:!1,proposer:!1,workin:!1,partTime:!1,noBonus:!1},this.autoHelpText={claimBonus:!1},this.focussed={firstName:!1,lastName:!1,fullTimeJobNature:!1,fullTimeJobTitle:!1,partTimeJobNature:!1,partTimeJobTitle:!1,convictionType:!1},this.referrerCode="",this.getFullMonthName=function(Oe){return le(Oe)},this.siteConfig={telephone:null},this.addanotherclaim=null,this.addanotherconviction=null,this.currentScrollID="",this.currentclaimScrollID="",this.currentconvictionScrollID="",this.elementRef=i,this.checkFirstPageComplete()}showModal(e,i=null){e.preventDefault(),this.popup=i,this.itemSelected=i,i?(0,U.default)("body").addClass("modal-open"):(0,U.default)("body").removeClass("modal-open")}clickOutsideModal(e){e.preventDefault();try{var i=e.target||e.srcElement||e.currentTarget,t=i.attributes.id,s=t.nodeValue;s=="modal1"&&(this.showModal(e,!1),this.claimspop==!0&&(this.currentDriver.personalInfo.didCalim=null,this.isclaimsTouched=!1,this.resetClaim(),this.scrollNext()),this.convictionspop==!0&&(this.isConvictionTouched=!1,this.currentDriver.personalInfo.didConviction=null,this.resetConviction(),this.scrollNext()),this.claimspop=!1,this.convictionspop=!1,this.isConvictionEditing=!1,this.isClaimEditing=!1)}catch{}}showDriverInfoDropDown(e){if(this.showDriverInfo[e])return this.showDriverInfo=[!1,!1,!1,!1];this.showDriverInfo=[!1,!1,!1,!1],this.showDriverInfo[e]=!0}doesInclude(e,i){var t=e.indexOf(i);return t>=0}scrollNext(e=null){this.counter(e==null),e!=null&&this.scrollTo(e),this.savePage2()}getPersonalDriver(){return this.allDrivers.length>0?[this.allDrivers[0]]:[]}getAdditionalDriver(){return this.allDrivers.length>1?[...this.allDrivers].splice(1):[]}checkDriverFromShowing(){return this.showDriverForm}detectIE(){var e=window.navigator.userAgent,i=e.indexOf("MSIE ");if(i>0)return!0;var t=e.indexOf("Trident/");if(t>0){var s=e.indexOf("rv:");return!0}return!1}scrollTo(e){if(!this.detectIE()){let i=re(e);setTimeout(()=>{this._scrollToService.scrollTo(i)},2)}this.counter(),this.savePage2()}scrollToTop(){if(!this.detectIE()){let e={target:"pagestart",duration:1,offset:-100};this._scrollToService.scrollTo(e)}}clearMessage(e){this.counter()}preventEnterKey(e){if(e.which==13||e.keyCode==13||e.which==9||e.keyCode==9)return e.preventDefault(),!1}checkNumber(e){let i=/[0-9\+\-\ ]/,t=String.fromCharCode(e.charCode);e.keyCode!=8&&!i.test(t)&&e.preventDefault()}saveState(){this.savePage2(),this.validateAllFields(null).length==0&&this.saveFormForSending()}saveFormForSending(){let e=this.allDrivers[0],i=this.getAdditionalDriver();var t={title:this.titleOptions.value[e.personalInfo.title],maritalStatus:this.maritalStatusOptions.value[e.personalInfo.maritalStatus],forename:e.personalInfo.firstName.trim(),surname:e.personalInfo.lastName.trim(),dateOfBirth:this.dobYearOptions[e.personalInfo.birthDate.year]+"-"+("0"+(this.dobMonthOptions[e.personalInfo.birthDate.month]+1)).slice(-2)+"-"+("0"+this.dobDayOptions[e.personalInfo.birthDate.day]).slice(-2),ukResidentSinceBirth:!!e.personalInfo.isUkCitizen,ukResidentYears:e.personalInfo.isUkCitizen?null:this.yearsUkResidentOptions.value[e.personalInfo.yearsUkResident],fullTimeOccupation:{status:this.jobFullTimeOptions.value[e.occupation.fullTime.jobStatus],studentStatus:e.occupation.fullTime.studentStatus==null?null:this.studentDetailsOptions.value[e.occupation.fullTime.studentStatus],occupation:e.occupation.fullTime.jobTitle==null?null:e.occupation.fullTime.jobTitle.code,occupationDescription:e.occupation.fullTime.jobTitle==null?null:e.occupation.fullTime.jobTitle.description,employersBusiness:e.occupation.fullTime.jobNature==null?null:e.occupation.fullTime.jobNature.code,employersBusinessDescription:e.occupation.fullTime.jobNature==null?null:e.occupation.fullTime.jobNature.description},partTimeOccupation:{status:e.occupation.partTime.jobStatus==null?this.jobPartTimeOptions.value[0]:this.jobPartTimeOptions.value[e.occupation.partTime.jobStatus],studentStatus:null,occupation:e.occupation.partTime.jobTitle==null?null:e.occupation.partTime.jobTitle.code,occupationDescription:e.occupation.fullTime.jobTitle==null?null:e.occupation.fullTime.jobTitle.description,employersBusiness:e.occupation.partTime.jobNature==null?null:e.occupation.partTime.jobNature.code,employersBusinessDescription:e.occupation.fullTime.jobNature==null?null:e.occupation.fullTime.jobNature.description},accessToOtherVehicles:this.otherVehiclesOptions.value[e.drivingDetails.accessToOtherVehicles],licenceType:this.licenseTypeOptions.value[e.drivingDetails.licenceType],iamMember:e.drivingDetails.licenceType==1||e.drivingDetails.licenceType==3,secondJob:e.occupation.isPartTimeJob==!0,memberOfTradeBody:e.occupation.isTradeMember==!0,hasOwnBusiness:this.doesInclude(["SelfEmployed","Director","Proprietor"],this.jobFullTimeOptions.value[e.occupation.fullTime.jobStatus]),yearsLicenceHeld:e.drivingDetails.yearsLicenceHeld,numberOfTests:e.drivingDetails.driverTestTaken,noClaimsBonus:this.claimBonusOptions.value[e.drivingDetails.claimBonus],protectNoClaimsBonus:e.drivingDetails.protectClaimBonus==!0,mirrorBonus:e.drivingDetails.otherVehilcleClaimBonus==null?null:this.otherVehiclesClaimBonusOptions.value[e.drivingDetails.otherVehilcleClaimBonus],numberOfVehiclesInHousehold:this.totalVehilcesOptions.value[e.drivingDetails.totalVehicles],claims:this.getClaimForFormForSending(e.claims),anyClaims:e.claims.length>0,convictions:this.getConvictionForFormForSending(e.convictions),anyConvictions:e.convictions.length>0,additionalDrivers:this.getDriversForFormForSending(i)};this.localStorageService.set(btoa("_pg2FFFFFFDDDDD"),L(t))}getClaimForFormForSending(e){var i=[];for(let t of e)i.push({category:t.type,claimCode:t.claimDescription.id,description:t?.claimDescription?.description,costsIncurred:this.costIncurredOptions[t.costIncurred],costAmount:t.costAmount,date:this.claimsYearOptions[t.claimDate.year]+"-"+("0"+(this.claimsMonthOptions[t.claimDate.month]+1)).slice(-2)+"-"+("0"+this.claimsDayOptions[t.claimDate.day]).slice(-2),fault:t.faultClaim==!0,personalInjury:t.personalInjury==!0,thisPolicy:t.occuredUnder==!0});return i}getConvictionForFormForSending(e){var i=[];for(let t of e)i.push({type:t.type.code,description:t.type.description,date:this.convictionsYearOptions[t.convictionDate.year]+"-"+("0"+(this.convictionsMonthOptions[t.convictionDate.month]+1)).slice(-2)+"-"+("0"+this.convictionsDayOptions[t.convictionDate.day]).slice(-2),points:this.pointsOptions.value[t.points],fine:t.fine,banLength:this.banLengthOptions.value[t.banLength],readingType:this.readingTypeOptions.value[t.readingType],readingLevel:t.readingLevel});return i}getDriversForFormForSending(e){var i=[];for(let t of e)i.push({title:this.titleOptions.value[t.personalInfo.title],maritalStatus:this.maritalStatusOptions.value[t.personalInfo.maritalStatus],forename:t.personalInfo.firstName.trim(),surname:t.personalInfo.lastName.trim(),relationshipToProposer:this.relationOptions.value[t.personalInfo.relationToProposer],dateOfBirth:this.dobYearOptions[t.personalInfo.birthDate.year]+"-"+("0"+(this.dobMonthOptions[t.personalInfo.birthDate.month]+1)).slice(-2)+"-"+("0"+this.dobDayOptions[t.personalInfo.birthDate.day]).slice(-2),ukResidentSinceBirth:!!t.personalInfo.isUkCitizen,ukResidentYears:t.personalInfo.isUkCitizen?null:this.yearsUkResidentOptions.value[t.personalInfo.yearsUkResident],fullTimeOccupation:{status:this.jobFullTimeOptions.value[t.occupation.fullTime.jobStatus],studentStatus:t.occupation.fullTime.studentStatus==null?null:this.studentDetailsOptions.value[t.occupation.fullTime.studentStatus],occupation:t.occupation.fullTime.jobTitle==null?null:t.occupation.fullTime.jobTitle.code,employersBusiness:t.occupation.fullTime.jobNature==null?null:t.occupation.fullTime.jobNature.code},partTimeOccupation:{status:t.occupation.partTime.jobStatus==null?this.jobPartTimeOptions.value[0]:this.jobPartTimeOptions.value[t.occupation.partTime.jobStatus],studentStatus:null,occupation:t.occupation.partTime.jobTitle==null?null:t.occupation.partTime.jobTitle.code,employersBusiness:t.occupation.partTime.jobNature==null?null:t.occupation.partTime.jobNature.code},accessToOtherVehicles:this.otherVehiclesOptions.value[t.drivingDetails.accessToOtherVehicles],licenceType:this.licenseTypeOptions.value[t.drivingDetails.licenceType],iamMember:t.drivingDetails.licenceType==1||t.drivingDetails.licenceType==3,yearsLicenceHeld:t.drivingDetails.yearsLicenceHeld,numberOfTests:t.drivingDetails.driverTestTaken,claims:this.getClaimForFormForSending(t.claims),anyClaims:t.claims.length>0,convictions:this.getConvictionForFormForSending(t.convictions),anyConvictions:t.convictions.length>0});return i}ngOnInit(){this.localStorageService.get(btoa("_pg2DATA"))&&this.restorePage2(),this.counter(),this.scrollTo("pagestart"),window.DATA_CONFIG&&(this.siteConfig=window.DATA_CONFIG.telephone),this.referrerCode=sessionStorage.getItem("__referrerCode")||""}ngAfterViewInit(){this.scrollToTop()}checkFirstPageComplete(){this.localStorageService.get(btoa("_pg1FFFFFFDDDDD"))||this.router.navigate(["van-insurance/about-your-van"])}helpTextHideShow(e){this.showHelpText[e]=this.showHelpText[e]==!1}savePage2(){let e={showDriverForm:this.showDriverForm,allDrivers:this.allDrivers,currentDriver:this.currentDriver,isDriverEditing:this.isDriverEditing,showClaimForm:this.showClaimForm,claimsDetails:this.claimDetails,isClaimEditing:this.isClaimEditing,showConvictionForm:this.showConvictionForm,convictionDetail
1s:this.convictionDetails,isConvictionEditing:this.isConvictionEditing,claimsDescriptionOptions:this.claimsDescriptionOptions};this.localStorageService.set(btoa("_pg2DATA"),L(e))}restorePage2(){try{let e=ce(this.localStorageService.get(btoa("_pg2DATA")));this.showDriverForm=e.showDriverForm,this.allDrivers=e.allDrivers,e.currentDriver&&(this.currentDriver=e.currentDriver),this.isDriverEditing=e.isDriverEditing,this.showClaimForm=e.showClaimForm,e.claimsDetails&&(this.claimDetails=e.claimsDetails),this.isClaimEditing=e.isClaimEditing,this.showConvictionForm=e.showConvictionForm,e.convictionDetails&&(this.convictionDetails=e.convictionDetails),this.isConvictionEditing=e.isConvictionEditing,e.claimsDescriptionOptions&&(this.claimsDescriptionOptions=e.claimsDescriptionOptions),this.checkTextDropDownRestore(),this.checkTotalVehicleOptions()}catch{this.localStorageService.clear("all")}}checkTotalVehicleOptions(){(this.otherVehiclesOptions.value[this.allDrivers[0].drivingDetails.accessToOtherVehicles]=="OUV"||this.otherVehiclesOptions.value[this.allDrivers[0].drivingDetails.accessToOtherVehicles]=="OOC"||this.otherVehiclesOptions.value[this.allDrivers[0].drivingDetails.accessToOtherVehicles]=="OUM")&&this.totalVehilcesOptions.value[0]==1&&(this.totalVehilcesOptions.text.shift(),this.totalVehilcesOptions.value.shift())}checkTextDropDownRestore(){this.currentDriver.occupation.fullTime.jobTitle&&this._fullTimeJobTitle!=this.currentDriver.occupation.fullTime.jobTitle.description&&(this._fullTimeJobTitle=this.currentDriver.occupation.fullTime.jobTitle.description),this.currentDriver.occupation.fullTime.jobNature&&this._fullTimeJobNature!=this.currentDriver.occupation.fullTime.jobNature.description&&(this._fullTimeJobNature=this.currentDriver.occupation.fullTime.jobNature.description),this.currentDriver.occupation.partTime.jobTitle&&this._partTimeJobTitle!=this.currentDriver.occupation.partTime.jobTitle.description&&(this._partTimeJobTitle=this.currentDriver.occupation.partTime.jobTitle.description),this.currentDriver.occupation.partTime.jobNature&&this._partTimeJobNature!=this.currentDriver.occupation.partTime.jobNature.description&&(this._partTimeJobNature=this.currentDriver.occupation.partTime.jobNature.description),this.convictionDetails.type&&this.showConvictionForm&&this._convictionsType!=this.convictionDetails.type.description&&(this._convictionsType=this.convictionDetails.type.description)}setAddAnotherDriver(e){this.driverYesNoTouched=!0,e?(this.addAnotherDriver(),this.currentDriver.driverYesNoButton=null,this.driverYesNoTouched=!1):(this.currentDriver.driverYesNoButton=e,this.scrollNext("nextButton")),this.scrollNext()}setAddAnotherDriveForm(e){this.driverYesNoTouched=!0,this.currentDriver.driverYesNoButton=e,e?(this.addAdditionalDriver(this.page2Form),this.driverYesNoTouched=!1):this.scrollNext("nextButton"),this.scrollNext()}validateAddAnotherDriver(){var e=null;function i(t){e=(e||"")+(e!=""?`
2`:"")+t}return this.currentDriver.driverYesNoButton==null&&i("Please select an option"),e??null}titleClicked(e){e&&e.preventDefault(),this.titleBox=!this.titleBox,this.titleValidationTouched=!0}titleSelected(e,i){e&&e.preventDefault(),this.titleValidationTouched=!0,this.titleBox=!1,this.currentDriver.personalInfo.title=i,this.scrollNext()}validateTitle(){var e=null;function i(t){e=(e||"")+(e!=""?`
3`:"")+t}return this.currentDriver.personalInfo.title==null&&i("Please select title"),e??null}maritalStatusClicked(e){e&&e.preventDefault(),this.maritalStatusBox=!this.maritalStatusBox,this.maritalStatusTouched=!0}maritalStatusSelected(e,i){e&&e.preventDefault(),this.maritalStatusTouched=!0,this.maritalStatusBox=!1,this.currentDriver.personalInfo.maritalStatus=i,this.scrollNext()}validateMaritalStatus(){var e=null;function i(t){e=(e||"")+(e!=""?`
4`:"")+t}return this.currentDriver.personalInfo.maritalStatus==null&&i("Please select marital status"),e??null}validateFirstName(e=!1){var i=null;function t(_){i=(i||"")+(i!=""?`
5`:"")+_}let s=/^[^-\s][a-zA-Z_'\s-]*$/;if(this.currentDriver.personalInfo.firstName!=null&&this.currentDriver.personalInfo.firstName!=""){let _=this.currentDriver.personalInfo.firstName.trim();(_.length<1||_.length>30)&&t("First name must be between 1 and 30 characters"),s.test(this.currentDriver.personalInfo.firstName)||t("Please enter valid first name"),isNaN(parseInt(this.currentDriver.personalInfo.firstName.substring(0,1)))||i==null&&t("Please enter valid first name")}else t("Please enter first name");return e&&this.scrollNext(),i??null}validateLastName(e=!1){var i=null;function t(_){i=(i||"")+(i!=""?`
6`:"")+_}let s=/^[^-\s][a-zA-Z_'\s-]*$/;if(this.currentDriver.personalInfo.lastName!=null&&this.currentDriver.personalInfo.lastName!=""){let _=this.currentDriver.personalInfo.lastName.trim();(_.length<1||_.length>20)&&t("Surname must be between 1 and 20 characters"),s.test(this.currentDriver.personalInfo.lastName)||t("Please enter valid surname"),isNaN(parseInt(this.currentDriver.personalInfo.lastName.substring(0,1)))||i==null&&t("Please enter valid surname")}else t("Please enter surname");return e&&this.scrollNext(),i??null}relationClicked(e){e&&e.preventDefault(),this.relationBox=!this.relationBox,this.relationTouched=!0}relationSelected(e,i){e&&e.preventDefault(),this.relationTouched=!0,this.relationBox=!1,this.currentDriver.personalInfo.relationToProposer=i,this.scrollNext()}validateRelation(){var e=null;function i(_){e=(e||"")+(e!=""?`
7`:"")+_}this.currentDriver.personalInfo.relationToProposer==null&&i("Please select relation to proposer");var t=this.allDrivers.length>1?[...this.allDrivers].splice(1):[];if(this.currentDriver.personalInfo.relationToProposer==0){var s=t.filter(_=>{if(_.personalInfo.relationToProposer==0)return _});(s.length>0&&this.currentDriver.index!=null&&this.currentDriver.personalInfo.relationToProposer!=this.allDrivers[this.currentDriver.index].personalInfo.relationToProposer||s.length>0&&this.currentDriver.index==null)&&i("You cannot add more than one spouse.")}return e??null}dobDayClicked(e){e&&e.preventDefault(),this.dobDayBox=!this.dobDayBox,this.dobDayTouched=!0,this.currentDriver.personalInfo.birthDate.month!=null&&this.currentDriver.personalInfo.birthDate.year!=null&&(this.dobMonthTouched=!0,this.dobYearTouched=!0)}dobDaySelected(e,i){e&&e.preventDefault(),this.dobDayTouched=!0,this.dobDayBox=!1,this.currentDriver.personalInfo.birthDate.day=i}dobMonthClicked(e){e&&e.preventDefault(),this.dobMonthBox=!this.dobMonthBox,this.dobMonthTouched=!0,this.currentDriver.personalInfo.birthDate.day!=null&&this.currentDriver.personalInfo.birthDate.year!=null&&(this.dobDayTouched=!0,this.dobYearTouched=!0)}dobMonthSelected(e,i){e&&e.preventDefault(),this.dobMonthTouched=!0,this.dobMonthBox=!1,this.currentDriver.personalInfo.birthDate.month=i}dobYearClicked(e){e&&e.preventDefault(),this.dobYearBox=!this.dobYearBox,this.dobYearTouched=!0,this.currentDriver.personalInfo.birthDate.month!=null&&this.currentDriver.personalInfo.birthDate.month!=null&&(this.dobMonthTouched=!0,this.dobDayTouched=!0)}dobYearSelected(e,i){e&&e.preventDefault(),this.dobYearTouched=!0,this.dobYearBox=!1,this.currentDriver.personalInfo.birthDate.year=i}checkDateOfBirth(e,i,t){let s,_;if(_=new Date,s=new Date(t,i,e),s.getDate()==e&&s.getMonth()==i&&s.getFullYear()==t){if(s>_)return"Date of birth should not be a future date";if(s.getFullYear()>_.getFullYear()-17)return"Date of birth should be within last 17 years";if(s.getFullYear()==_.getFullYear()-17){if(s.getMonth()>_.getMonth())return"Date of birth should be within last 17 years";if(s.getMonth()==_.getMonth()&&s.getDate()>_.getDate())return"Date of birth should be within last 17 years"}}else return"Please enter a valid date"}validateDateOfBirth(e=!1){var i=null;function t(s){i=(i||"")+(i!=""?`
8`:"")+s}if(this.currentDriver.personalInfo.birthDate.year==null||this.currentDriver.personalInfo.birthDate.month==null||this.currentDriver.personalInfo.birthDate.day==null)t("Please select the date");else if(this.currentDriver.personalInfo.birthDate.day!=null&&this.currentDriver.personalInfo.birthDate.month!=null&&this.currentDriver.personalInfo.birthDate.year!=null){let s=this.checkDateOfBirth(this.dobDayOptions[this.currentDriver.personalInfo.birthDate.day],this.dobMonthOptions[this.currentDriver.personalInfo.birthDate.month],this.dobYearOptions[this.currentDriver.personalInfo.birthDate.year]);s!=null&&t(s)}return e&&i==null&&this.currentDriver.personalInfo.birthDate.day!=null&&this.currentDriver.personalInfo.birthDate.month!=null&&this.currentDriver.personalInfo.birthDate.year!=null&&this.scrollNext(),i??null}setUkCitizen(e){this.ukCitizenTouched=!0,this.currentDriver.personalInfo.isUkCitizen=e,this.currentDriver.personalInfo.isUkCitizen&&(this.currentDriver.personalInfo.yearsUkResident=null,this.yearsUkResidentTouched=!1),this.scrollNext()}validateUkCitizen(){var e=null;function i(t){e=(e||"")+(e!=""?`
9`:"")+t}return this.currentDriver.personalInfo.isUkCitizen==null&&i("Please select an option"),e??null}yearsUkCitizenClicked(e){e&&e.preventDefault(),this.yearsUkResidentBox=!this.yearsUkResidentBox,this.yearsUkResidentTouched=!0}yearsUkCitizenSelected(e,i){e&&e.preventDefault(),this.yearsUkResidentTouched=!0,this.yearsUkResidentBox=!1,this.currentDriver.personalInfo.yearsUkResident=i,this.validateYearsUkCitizen()==null&&this.scrollNext()}checkYearsUkResident(e){let i=new Date,t=new Date(this.dobYearOptions[this.currentDriver.personalInfo.birthDate.year],this.dobMonthOptions[this.currentDriver.personalInfo.birthDate.month]+1,this.dobDayOptions[this.currentDriver.personalInfo.birthDate.day]);if(this.currentDriver.personalInfo.birthDate.day==null||this.currentDriver.personalInfo.birthDate.month==null||this.currentDriver.personalInfo.birthDate.year==null||this.validateDateOfBirth()!=null)return"Please select valid birth date first";if(i.getFullYear()-t.getFullYear()<e)return"The driver is not old enough to be a UK resident for these many years"}validateYearsUkCitizen(){var e=null;function i(t){e=(e||"")+(e!=""?`
10`:"")+t}if(this.currentDriver.personalInfo.yearsUkResident==null)i("Please select number of years");else{let t=this.checkYearsUkResident(this.currentDriver.personalInfo.yearsUkResident);(t!=null||t!=null)&&i(t)}return e??null}validatePersonalInfo(e){var i=[];return(this.validateMaritalStatus()!=null||e)&&i.push("maritalStatus"),(this.validateTitle()!=null||e)&&i.push("Title"),(this.validateFirstName()!=null||e)&&i.push("firstName"),(this.validateLastName()!=null||e)&&i.push("lastName"),this.currentDriver.isAdditionalDriver&&this.validateRelation()!=null&&i.push("relation"),(this.validateDateOfBirth()!=null||e)&&i.push("dateOfBirth"),(this.validateUkCitizen()!=null||e)&&i.push("ukresident"),this.currentDriver.personalInfo.isUkCitizen==!1&&(this.validateYearsUkCitizen()!=null||e)&&i.push("ukCitizenSince"),i}jobFullTimeClicked(e){e&&e.preventDefault(),this.jobFullTimeBox=!this.jobFullTimeBox,this.jobFullTimeTouched=!0}checkFullTimeStudent(){return this.currentDriver.occupation.fullTime.jobStatus!=null?this.jobFullTimeOptions.value[this.currentDriver.occupation.fullTime.jobStatus]==="FullTimeStudent":!1}checkFullTimeJobRequireDetails(){var e=["Employed","SelfEmployed","Government","Director","Proprietor"];return this.doesInclude(e,this.jobFullTimeOptions.value[this.currentDriver.occupation.fullTime.jobStatus])}jobFullTimeSelected(e,i){e&&e.preventDefault(),this.jobFullTimeTouched=!0,this.jobFullTimeBox=!1,this.currentDriver.occupation.fullTime.jobStatus=i,this._fullTimeJobTitle=null,this.currentDriver.occupation.fullTime.jobTitle=null,this.page2Form&&this.page2Form.controls.fullTimeJobTitle&&this.page2Form.controls.fullTimeJobTitle.reset(),this._fullTimeJobNature=null,this.currentDriver.occupation.fullTime.jobNature=null,this.page2Form&&this.page2Form.controls.fullTimeJobNature&&this.page2Form.controls.fullTimeJobNature.reset(),this.scrollNext()}validateFullTimeJob(){var e=null;function i(t){e=(e||"")+(e!=""?`
11`:"")+t}return this.currentDriver.occupation.fullTime.jobStatus==null&&i("Please select an appropriate option"),e??null}autocompleteFullTimeJobTitle(){this._fullTimeJobTitle==null||this._fullTimeJobTitle==""||this._fullTimeJobTitle!=null&&(this.currentDriver.occupation.fullTime.jobTitle==null||this._fullTimeJobTitle!=this.currentDriver.occupation.fullTime.jobTitle.description||this.fullTimeJobTitleOptions.length==0)&&(this._fullTimeJobTitle.length>2?this.getFullTimeJobTitle(this._fullTimeJobTitle):this.fullTimeJobTitleOptions=[])}getFullTimeJobTitle(e){this.fullTimeJobTitleLoading=!0,this.serviceCalls.getOccupations(e).then(i=>{this.fullTimeJobTitleLoading=!1,this.fullTimeJobTitleOptions=i}).catch(i=>{this.fullTimeJobTitleLoading=!1,this.fullTimeJobTitleOptions=[]})}selectFullTimeJobTitle(e){this.focussed.fullTimeJobTitle&&(this.focussed.fullTimeJobTitle=!1),this._fullTimeJobTitle=e.description,this.currentDriver.occupation.fullTime.jobTitle=e,this.scrollNext()}clickOutsideFullTimeJobTitle(){this.focussed.fullTimeJobTitle&&(this.focussed.fullTimeJobTitle=!1),this.currentDriver.occupation.fullTime.jobTitle&&this._fullTimeJobTitle!=this.currentDriver.occupation.fullTime.jobTitle.description&&(this._fullTimeJobTitle=this.currentDriver.occupation.fullTime.jobTitle.description)}validateFullTimeJobTitle(){var e=null;function i(t){e=(e||"")+(e!=""?`
12`:"")+t}return this.currentDriver.occupation.fullTime.jobTitle==null&&!this.focussed.fullTimeJobTitle&&i("Please select job title"),this.fullTimeJobTitleOptions.length==0&&this.focussed.fullTimeJobTitle&&!this.fullTimeJobTitleLoading&&this._fullTimeJobTitle!=null&&this._fullTimeJobTitle.length>2&&i("No results found"),this._fullTimeJobTitle!=null&&this._fullTimeJobTitle.length<=2&&this.focussed.fullTimeJobTitle&&!this.fullTimeJobTitleLoading&&i("Type three letters to 
12search"),e??null}valfullliving(){let e=!1;return this._fullTimeJobTitle!=null&&(this._fullTimeJobTitle.length!=null&&!this.focussed.fullTimeJobTitle||this._fullTimeJobTitle.length>2&&this.focussed.fullTimeJobTitle)&&(e=!0),e}autocompleteFullTimeJobNature(){this._fullTimeJobNature==null||this._fullTimeJobNature==""||(this.currentDriver.occupation.fullTime.jobNature==null||this._fullTimeJobNature!=this.currentDriver.occupation.fullTime.jobNature.description||this.fullTimeJobNatureOptions.length==0)&&(this._fullTimeJobNature.length>2?this.getFullTimeJobNature(this._fullTimeJobNature):this.fullTimeJobNatureOptions=[])}getFullTimeJobNature(e){this.fullTimeJobNatureLoading=!0,this.serviceCalls.getBusinesses(e).then(i=>{this.fullTimeJobNatureLoading=!1,this.fullTimeJobNatureOptions=i}).catch(i=>{this.fullTimeJobNatureLoading=!1,this.fullTimeJobNatureOptions=[]})}selectFullTimeJobNature(e,i){this.focussed.fullTimeJobNature&&(this.focussed.fullTimeJobNature=!1),this._fullTimeJobNature=e.description,this.currentDriver.occupation.fullTime.jobNature=e,this.scrollNext()}clickOutsideFullTimeJobNature(){this.focussed.fullTimeJobNature&&(this.focussed.fullTimeJobNature=!1),this.currentDriver.occupation.fullTime.jobNature&&this._fullTimeJobNature!=this.currentDriver.occupation.fullTime.jobNature.description&&(this._fullTimeJobNature=this.currentDriver.occupation.fullTime.jobNature.description)}validateFullTimeJobNature(){var e=null;function i(t){e=(e||"")+(e!=""?`
13`:"")+t}return this.currentDriver.occupation.fullTime.jobNature==null&&!this.focussed.fullTimeJobNature&&i("Please select job title"),this.fullTimeJobNatureOptions.length==0&&this.focussed.fullTimeJobNature&&!this.fullTimeJobNatureLoading&&this._fullTimeJobNature!=null&&this._fullTimeJobNature.length>2&&i("No results found"),this._fullTimeJobNature!=null&&this._fullTimeJobNature.length<=2&&this.focussed.fullTimeJobNature&&!this.fullTimeJobNatureLoading&&i("Type three letters to search"),e??null}valFullJobNature(){let e=!1;return this._fullTimeJobNature!=null&&(this._fullTimeJobNature.length!=null&&!this.focussed.fullTimeJobNature||this._fullTimeJobNature.length>2&&this.focussed.fullTimeJobNature)&&(e=!0),e}studentDetailsClicked(e){e&&e.preventDefault(),this.studentDetailsBox=!this.studentDetailsBox,this.studentDetailsTouched=!0}studentDetailsSelected(e,i){e&&e.preventDefault(),this.studentDetailsTouched=!0,this.studentDetailsBox=!1,this.currentDriver.occupation.fullTime.studentStatus=i,this.scrollNext()}validateStudentDetails(){var e=null;function i(t){e=(e||"")+(e!=""?`
14`:"")+t}return this.currentDriver.occupation.fullTime.studentStatus==null&&i("Please select student status"),e??null}setPartTimeJob(e){this.isPartTimeCheckBoxTouched=!0,this.currentDriver.occupation.isPartTimeJob=e,e==!1&&(this.currentDriver.occupation.partTime.jobStatus=null,this.currentDriver.occupation.partTime.jobNature=null,this.currentDriver.occupation.partTime.jobTitle=null,this.showHelpText.partTime=!1,this.showHelpText.partTimeJobTitle=!1),this.jobPartTimeTouched=!1,this.scrollNext()}validatePartTimeJob(){var e=null;function i(t){e=(e||"")+(e!=""?`
15`:"")+t}return this.currentDriver.occupation.isPartTimeJob==null&&i("Please select an option"),e??null}validatePartTimeJobStatus(){var e=null;function i(t){e=(e||"")+(e!=""?`
16`:"")+t}return this.currentDriver.occupation.partTime.jobStatus==null&&i("Please select an appropriate option"),e??null}checkNotPartTimeStudent(){return this.currentDriver.occupation.partTime.jobStatus!=null?this.jobPartTimeOptions.value[this.currentDriver.occupation.partTime.jobStatus]!="PartTimeStudent"&&this.jobPartTimeOptions.value[this.currentDriver.occupation.partTime.jobStatus]!="None":!1}jobPartTimeClicked(e){e&&e.preventDefault(),this.jobPartTimeBox=!this.jobPartTimeBox,this.jobPartTimeTouched=!0}jobPartTimeSelected(e,i){e&&e.preventDefault(),e&&e.preventDefault(),this.jobPartTimeTouched=!0,this.jobPartTimeBox=!1,this.currentDriver.occupation.partTime.jobStatus=i,this._partTimeJobTitle=null,this.currentDriver.occupation.partTime.jobTitle=null,this.page2Form&&this.page2Form.controls.partTimeJobTitle&&this.page2Form.controls.partTimeJobTitle.reset(),this._partTimeJobNature=null,this.currentDriver.occupation.partTime.jobNature=null,this.page2Form&&this.page2Form.controls.partTimeJobNature&&this.page2Form.controls.partTimeJobNature.reset(),this.scrollNext()}autocompletePartTimeJobTitle(){this._partTimeJobTitle==null||this._partTimeJobTitle==""||this._partTimeJobTitle!=null&&(this.currentDriver.occupation.partTime.jobTitle==null||this._partTimeJobTitle!=this.currentDriver.occupation.partTime.jobTitle.description||this.partTimeJobTitleOptions.length==0)&&(this._partTimeJobTitle.length>2?this.getPartTimeJobTitle(this._partTimeJobTitle):this.partTimeJobTitleOptions=[])}getPartTimeJobTitle(e){this.partTimeJobTitleLoading=!0,this.serviceCalls.getOccupations(e).then(i=>{this.partTimeJobTitleLoading=!1,this.partTimeJobTitleOptions=i}).catch(i=>{this.partTimeJobTitleLoading=!1,this.partTimeJobTitleOptions=[]})}selectPartTimeJobTitle(e){this.focussed.partTimeJobTitle&&(this.focussed.partTimeJobTitle=!1),this._partTimeJobTitle=e.description,this.currentDriver.occupation.partTime.jobTitle=e,this.scrollNext()}clickOutsidePartTimeJobTitle(){this.focussed.partTimeJobTitle&&(this.focussed.partTimeJobTitle=!1),this.currentDriver.occupation.partTime.jobTitle&&this._partTimeJobTitle!=this.currentDriver.occupation.partTime.jobTitle.description&&(this._partTimeJobTitle=this.currentDriver.occupation.partTime.jobTitle.description)}validatePartTimeJobTitle(){var e=null;function i(t){e=(e||"")+(e!=""?`
17`:"")+t}return this.currentDriver.occupation.partTime.jobTitle==null&&!this.focussed.partTimeJobTitle&&i("Please select part time job title"),this.partTimeJobTitleOptions.length==0&&this.focussed.partTimeJobTitle&&!this.partTimeJobTitleLoading&&this._partTimeJobTitle!=null&&this._partTimeJobTitle.length>2&&i("No results found"),this._partTimeJobTitle!=null&&this._partTimeJobTitle.length<=2&&this.focussed.partTimeJobTitle&&!this.partTimeJobTitleLoading&&i("Type three letters to 
17search"),e??null}valPartLiving(){let e=!1;return this._partTimeJobTitle!=null&&(this._partTimeJobTitle.length!=null&&!this.focussed.partTimeJobTitle||this._partTimeJobTitle.length>2&&this.focussed.partTimeJobTitle)&&(e=!0),e}autocompletePartTimeJobNature(){this._partTimeJobNature==null||this._partTimeJobNature==""||this._partTimeJobNature!=null&&(this.currentDriver.occupation.partTime.jobNature==null||this._partTimeJobNature!=this.currentDriver.occupation.partTime.jobNature.description||this.partTimeJobNatureOptions.length==0)&&(this._partTimeJobNature.length>2?this.getPartTimeJobNature(this._partTimeJobNature):this.partTimeJobNatureOptions=[])}getPartTimeJobNature(e){this.partTimeJobNatureLoading=!0,this.serviceCalls.getBusinesses(e).then(i=>{this.partTimeJobNatureLoading=!1,this.partTimeJobNatureOptions=i}).catch(i=>{this.partTimeJobNatureLoading=!1,this.partTimeJobNatureOptions=[]})}selectPartTimeJobNature(e){this.focussed.partTimeJobNature&&(this.focussed.partTimeJobNature=!1),this._partTimeJobNature=e.description,this.currentDriver.occupation.partTime.jobNature=e,this.scrollNext()}clickOutsidePartTimeJobNature(){this.focussed.partTimeJobNature&&(this.focussed.partTimeJobNature=!1),this.currentDriver.occupation.partTime.jobNature&&this._partTimeJobNature!=this.currentDriver.occupation.partTime.jobNature.description&&(this._partTimeJobNature=this.currentDriver.occupation.partTime.jobNature.description)}validatePartTimeJobNature(){var e=null;function i(t){e=(e||"")+(e!=""?`
18`:"")+t}return this.currentDriver.occupation.partTime.jobNature==null&&!this.focussed.partTimeJobNature&&i("Please select part time job title"),this.partTimeJobNatureOptions.length==0&&this.focussed.partTimeJobNature&&!this.partTimeJobNatureLoading&&this._partTimeJobNature!=null&&this._partTimeJobNature.length>2&&i("No results found"),this._partTimeJobNature!=null&&this._partTimeJobNature.length<=2&&this.focussed.partTimeJobNature&&!this.partTimeJobNatureLoading&&i("Type three letters to search"),e??null}valPartNature(){let e=!1;return this._partTimeJobNature!=null&&(this._partTimeJobNature.length!=null&&!this.focussed.partTimeJobNature||this._partTimeJobNature.length>2&&this.focussed.partTimeJobNature)&&(e=!0),e}setTradeMember(e){this.isTradeMemberTouched=!0,this.currentDriver.occupation.isTradeMember=e,this.scrollNext()}validateTradeMember(){var e=null;function i(t){e=(e||"")+(e!=""?`
19`:"")+t}return this.currentDriver.occupation.isTradeMember==null&&i("Please select an option"),e??null}validateOccupation(e){var i=[];return(this.validateFullTimeJob()!=null||e)&&i.push("fullTimeJobStatus"),this.checkFullTimeStudent()?(this.validateStudentDetails()!=null||e)&&i.push("studentStatus"):this.checkFullTimeJobRequireDetails()&&((this.validateFullTimeJobTitle()!=null||e)&&(this.currentDriver.isAdditionalDriver?i.push("addiDriverFullTimeJobTitle"):i.push("fullTimeJobTitle")),(this.validateFullTimeJobNature()!=null||e)&&(this.currentDriver.isAdditionalDriver?i.push("addiDriverFullTimeJoNature"):i.push("fullTimeJoNature"))),this.validatePartTimeJob()!=null&&i.push("parttimejob"),this.currentDriver.occupation.isPartTimeJob&&((this.validatePartTimeJobStatus()!=null||e)&&i.push("partTimeJobStatus"),this.checkNotPartTimeStudent()&&this.currentDriver.occupation.isPartTimeJob&&((this.validatePartTimeJobTitle()!=null||e)&&(this.currentDriver.isAdditionalDriver?i.push("addiDriverPartTimeJobTitle"):i.push("partTimeJobTitle")),(this.validatePartTimeJobNature()!=null||e)&&(this.currentDriver.isAdditionalDriver?i.push("addiDriverPartTimeJobNature"):i.push("partTimeJobNature")))),(this.validateTradeMember()!=null||e)&&!this.currentDriver.isAdditionalDriver&&i.push("tradebody"),i}setClaims(e){this.isclaimsTouched=!0,this.resetClaim(),this.showPersonalInjury=!1,this.currentDriver.personalInfo.didCalim=e,this.addanotherclaim=e,e||this.currentDriver.claims.length==0&&(this.currentDriver.claims=[]),this.currentDriver.claims.length>0&&(this.currentDriver.personalInfo.didCalim=!1),this.currentDriver.claims.length<5&&(this.showClaimForm=!0),this.isClaimEditing=!1,this.resetClaim(),this.scrollNext()}nowsetclaim(){this.isclaimsTouched=!1,this.currentDriver.personalInfo.didCalim=!1,this.addanotherclaim=null,this.resetClaim(),this.scrollNext()}nowsetconviction(){this.isConvictionTouched=!1,this.currentDriver.personalInfo.didConviction=!1,this.addanotherconviction=null,this.resetConviction(),this.scrollNext()}setClaimsclosed(e){e==!1?this.nowsetclaim():this.nowsetconviction(),this.closeclaim=null}validateClaimsClicked(){var e=null;function i(t){e=(e||"")+(e!=""?`
20`:"")+t}return this.currentDriver.personalInfo.didCalim==null&&i("Please select an option"),e??null}claimsDayClicked(e){e&&e.preventDefault(),this.claimsDayBox=!this.claimsDayBox,this.claimsDayTouched=!0,this.claimDetails.claimDate.month!=null&&this.claimDetails.claimDate.year!=null&&(this.claimsMonthTouched=!0,this.claimsYearTouched=!0)}claimsDaySelected(e,i){e&&e.preventDefault(),this.claimsDayTouched=!0,this.claimsDayBox=!1,this.claimDetails.claimDate.day=i}claimsMonthClicked(e){e&&e.preventDefault(),this.claimsMonthBox=!this.claimsMonthBox,this.claimsMonthTouched=!0,this.claimDetails.claimDate.day!=null&&this.claimDetails.claimDate.year!=null&&(this.claimsDayTouched=!0,this.claimsYearTouched=!0)}claimsMonthSelected(e,i){e&&e.preventDefault(),this.claimsMonthTouched=!0,this.claimsMonthBox=!1,this.claimDetails.claimDate.month=i}claimsYearClicked(e){e&&e.preventDefault(),this.claimsYearBox=!this.claimsYearBox,this.claimsYearTouched=!0,this.claimDetails.claimDate.day!=null&&this.claimDetails.claimDate.month!=null&&(this.claimsDayTouched=!0,this.claimsMonthTouched=!0)}claimsYearSelected(e,i){e&&e.preventDefault(),this.claimsYearTouched=!0,this.claimsYearBox=!1,this.claimDetails.claimDate.year=i}checkClaimConvictionDates(e,i,t,s){let _,w;if(w=new Date,_=new Date(t,i,e),_.getDate()==e&&_.getMonth()==i&&_.getFullYear()==t){if(_>w)return s+" date should not be a future date";if(_.getFullYear()<w.getFullYear()-5)return s+" date should be within last 5 years";if(_.getFullYear()==w.getFullYear()-5){if(_.getMonth()<w.getMonth())return s+" date should be within last 5 years";if(_.getMonth()==w.getMonth()&&_.getDate()<w.getDate())return s+" date should be within last 5 years"}}else return"Please enter a valid date"}validateClaimDate(e=!1){var i=null;function t(s){i=(i||"")+(i!=""?`
21`:"")+s}if(this.claimDetails.claimDate.year==null||this.claimDetails.claimDate.month==null||this.claimDetails.claimDate.day==null)t("Please select the date");else if(this.claimDetails.claimDate.day!=null&&this.claimDetails.claimDate.month!=null&&this.claimDetails.claimDate.year!=null){let s=this.checkClaimConvictionDates(this.claimsDayOptions[this.claimDetails.claimDate.day],this.claimsMonthOptions[this.claimDetails.claimDate.month],this.claimsYearOptions[this.claimDetails.claimDate.year],"Claim");s!=null&&t(s)}return e&&i==null&&this.scrollclaimNext(),i??null}claimsTypeClicked(e){e&&e.preventDefault(),this.claimsTypeBox=!this.claimsTypeBox,this.claimsTypeTouched=!0}claimsTypeSelected(e,i){e&&e.preventDefault(),this.claimsTypeTouched=!0,this.claimsTypeBox=!1,this.claimDetails.type=i,this.getClaims(this.claimDetails.type,null,!1),this.claimDetails.claimDescription=null,this.claimDetails.description=null,this.claimDetails.personalInjury=null,this.personalInjuryTouched=!1,this.claimsDescriptionTouched=!1,this.scrollclaimNext()}getClaims(e,i,t){this.getClaimsLoading=!0,this.claimsDescriptionOptions=[],this.serviceCalls.getClaims(e).then(s=>{this.getClaimsLoading=!1,this.claimsDescriptionOptions=s,t&&(this.claimsTypeTouched=!0,this.claimDetails.description=this.claimsDescriptionOptions.findIndex(_=>_.id===i.id),this.claimDetails.claimDescription.personalInjury===!0?this.showPersonalInjury=!0:this.showPersonalInjury=!1)}).catch(s=>{this.getClaimsLoading=!1})}validateClaimsType(){var e=null;function i(t){e=(e||"")+(e!=""?`
22`:"")+t}return this.claimDetails.type==null&&i("Please select claim type"),e??null}claimsDescriptionClicked(e){e&&e.preventDefault(),this.claimsDescriptionBox=!this.claimsDescriptionBox,this.claimsDescriptionTouched=!0}claimsDescriptionSelected(e,i){e&&e.preventDefault(),this.claimsDescriptionTouched=!0,this.claimsDescriptionBox=!1,this.claimDetails.description=i,this.claimDetails.claimDescription=this.claimsDescriptionOptions[this.claimDetails.description],this.showPersonalInjury=this.claimsDescriptionOptions[i].personalInjury==!0,this.scrollclaimNext()}validateClaimsDescription(){var e=null;function i(t){e=(e||"")+(e!=""?`
23`:"")+t}return this.claimDetails.description==null&&i("Please describe your last claim"),e??null}costIncurredClicked(e){e&&e.preventDefault(),this.costIncurredBox=!this.costIncurredBox,this.costIncurredTouched=!0}costIncurredSelected(e,i){e&&e.preventDefault(),this.costIncurredTouched=!0,this.costIncurredBox=!1,this.claimDetails.costIncurred=i,this.costIncurredOptions[this.claimDetails.costIncurred]!="Known"&&(this.claimDetails.costAmount=null),this.scrollclaimNext()}validateCostIncurred(){var e=null;function i(t){e=(e||"")+(e!=""?`
24`:"")+t}return this.claimDetails.costIncurred==null&&i("Please select an amount"),e??null}validateCostAmount(e=!1){var i=null;function t(_){i=(i||"")+(i!=""?`
25`:"")+_}let s=/^[0-9]{1,25}$/;return this.claimDetails.costAmount!==null&&this.claimDetails.costAmount!=""?(s.test(this.claimDetails.costAmount)||t("Cost amount can contain numbers only"),this.claimDetails.costAmount>99999&&i==null&&t("Maximum cost amount can be 99999")):t("Please enter an amount"),e&&this.scrollclaimNext(),i??null}setFaultClaim(e){this.faultClaimTouched=!0,this.claimDetails.faultClaim=e,this.scrollclaimNext()}validateFaultClaim(){var e=null;function i(t){e=(e||"")+(e!=""?`
26`:"")+t}return this.claimDetails.faultClaim==null&&i("Please select an option"),e??null}setPersonalInjury(e){this.personalInjuryTouched=!0,this.claimDetails.personalInjury=e,this.scrollclaimNext()}validatePersonalInjury(){var e=null;function i(t){e=(e||"")+(e!=""?`
27`:"")+t}return this.claimDetails.personalInjury==null&&i("Please select an option"),e??null}setOccuredUnder(e){this.occuredUnderTouched=!0,this.claimDetails.occuredUnder=e,this.scrollclaimNext()}validateOccuredUnder(){var e=null;function i(t){e=(e||"")+(e!=""?`
28`:"")+t}return this.claimDetails.occuredUnder==null&&i("Please select an option"),e??null}setClaimFieldsTouched(e,i=!0,t=this.page2CustomModalForm){e.forEach(s=>{switch(s){case"claimDate":this.claimsMonthTouched=i,this.claimsYearTouched=i,this.claimsDayTouched=i;break;case"claimType":this.claimsTypeTouched=i;break;case"claimDescription":this.claimsDescriptionTouched=i;break;case"costIncurred":this.costIncurredTouched=i;break;case"costAmount":t.controls.costAmount!=null&&(i?t.controls.costAmount.markAsDirty():t.controls.costAmount.reset());break;case"faultClaim":this.faultClaimTouched=i;break;case"personalInjury":this.personalInjuryTouched=i;break;case"occurredUnder":this.occuredUnderTouched=i;break;default:break}})}validateClaim(e,i=!1){var t=[];
28return(this.validateClaimDate()!=null||i)&&t.push("claimDate"),(this.validateClaimsType()!=null||i)&&t.push("claimType"),(this.validateClaimsDescription()!=null||i)&&t.push("claimDescription"),(this.validateCostIncurred()!=null||i)&&t.push("costIncurred"),(this.claimDetails.costIncurred==0&&this.validateCostAmount()!=null||i)&&t.push("costAmount"),(this.validateFaultClaim()!=null||i)&&t.push("faultClaim"),(this.validatePersonalInjury()!=null&&this.showPersonalInjury||i)&&t.push("personalInjury"),(this.validateOccuredUnder()!=null||i)&&t.push("occurredUnder"),e!=null&&this.setClaimFieldsTouched(t,e),t}checkClaimAddOrUpdateButtonValid(){return this.validateClaim(null).length==0&&this.showClaimForm&&this.claimsAddButtonTouched}addClaim(e){this.validateClaim(e).length==0&&(this.currentDriver.claims=[...this.currentDriver.claims,this.claimDetails],this.addanotherclaim=null,this.isclaimsTouched=!1,this.showClaimForm=!1,this.claimspop=!1,this.showModal(event,!1),this.resetClaim(),this.scrollNext("claimlist"))}addAnotherClaim(){this.showClaimForm=!0,this.scrollNext()}updateClaim(e,i){this.validateClaim(e).length==0&&(this.currentDriver.claims[i]=this.claimDetails,this.isClaimEditing=!1,this.showClaimForm=!1,this.claimspop=!1,this.showModal(event,!1),this.resetClaim(),this.scrollNext("claimlist"))}resetClaim(){this.claimsAddButtonTouched=!1,this.claimDetails=JSON.parse(JSON.stringify(this._claimDetails)),this.setClaimFieldsTouched(this.validateClaim(null),!1)}cancelClaim(e=!0){this.isClaimEditing&&(this.isClaimEditing=!1),this.showClaimForm=!1,this.resetClaim(),e&&this.scrollNext()}editClaim(e,i){this.isClaimEditing=!0,this.claimspop=!0,this.showModal(event,!0),this.currentDriver.claims[i]=e;var t=JSON.parse(JSON.stringify(this.currentDriver.claims[i]));t.index=i,this.getClaims(t.type,t.claimDescription,!0),this.claimDetails=t,this.showClaimForm||(this.showClaimForm=!0)}deleteClaim(e){this.currentDriver.claims.splice(e,1),this.cancelClaim(!1),this.currentDriver.claims.length==0&&(this.showClaimForm=!0,this.resetClaim(),this.currentDriver.personalInfo.didCalim=null)}setConvictions(e){this.isConvictionTouched=!0,this.currentDriver.personalInfo.didConviction=e,this.addanotherconviction=e,e||this.currentDriver.convictions.length==0&&(this.currentDriver.convictions=[]),this.currentDriver.convictions.length<5&&(this.showConvictionForm=!0),this.isConvictionEditing=!1,this.resetConviction(),this.scrollNext()}validateConvictionsClicked(){var e=null;function i(t){e=(e||"")+(e!=""?`
29`:"")+t}return this.currentDriver.personalInfo.didConviction==null&&i("Please select an option"),e??null}autocompleteConvictionType(){this._convictionsType==null||this._convictionsType==""?this.getConvictionType("a"):this._convictionsType!=null&&(this.convictionDetails.type==null||this._convictionsType!=this.convictionDetails.type||this.partTimeJobNatureOptions.length==0)&&this.getConvictionType(this._convictionsType)}getConvictionType(e){this.convictionsTypeLoading=!0,this.serviceCalls.getConviction(e).then(i=>{this.convictionsTypeLoading=!1,this.convictionsTypeOptions=i}).catch(i=>{this.convictionsTypeLoading=!1,this.convictionsTypeOptions=[]})}selectConvictionType(e){this.focussed.convictionType&&(this.focussed.convictionType=!1),this._convictionsType=e.description,this.convictionDetails.type=e;let i=e.code;this.checkReadingBoxes()||(this.convictionDetails.readingLevel=null,this.convictionDetails.readingType=null),this.scrollConvictionNext()}checkReadingBoxes(){if(this.convictionDetails.type){let e=this.convictionDetails.type.code;return e.substring(0,2)=="CD"&&(e.substring(2,3)=="4"||e.substring(2,3)=="6")&&e.substring(3,4)=="0"||e.substring(0,2)=="DR"&&(e.substring(2,3)=="1"||e.substring(2,3)=="2"||e.substring(2,3)=="4"||e.substring(2,3)=="5")&&e.substring(3,4)=="0"}return!1}clickOutsideConvictionType(){this.focussed.convictionType&&(this.focussed.convictionType=!1),this.convictionDetails.type&&this._convictionsType!=this.convictionDetails.type.description&&(this._convictionsType=this.convictionDetails.type.description)}validateConvictionType(){var e=null;function i(t){e=(e||"")+(e!=""?`
30`:"")+t}
30return this.convictionDetails.type==null&&!this.focussed.convictionType&&i("Please select conviction type"),this.convictionsTypeOptions.length==0&&this.focussed.convictionType&&!this.convictionsTypeLoading&&i("No results found"),e??null}convictionsDayClicked(e){e&&e.preventDefault(),this.convictionsDayBox=!this.convictionsDayBox,this.convictionsDayTouched=!0,this.convictionDetails.convictionDate.month!=null&&this.convictionDetails.convictionDate.year!=null&&(this.convictionsMonthTouched=!0,this.convictionsYearTouched=!0)}convictionsDaySelected(e,i){e&&e.preventDefault(),this.convictionsDayTouched=!0,this.convictionsDayBox=!1,this.convictionDetails.convictionDate.day=i}convictionsMonthClicked(e){e&&e.preventDefault(),this.convictionsMonthBox=!this.convictionsMonthBox,this.convictionsMonthTouched=!0,this.convictionDetails.convictionDate.day!=null&&this.convictionDetails.convictionDate.year!=null&&(this.convictionsDayTouched=!0,this.convictionsYearTouched=!0)}convictionsMonthSelected(e,i){e&&e.preventDefault(),this.convictionsMonthTouched=!0,this.convictionsMonthBox=!1,this.convictionDetails.convictionDate.month=i}convictionsYearClicked(e){e&&e.preventDefault(),this.convictionsYearBox=!this.convictionsYearBox,this.convictionsYearTouched=!0,this.convictionDetails.convictionDate.year!=null&&this.convictionDetails.convictionDate!=null&&(this.convictionsDayTouched=!0,this.convictionsMonthTouched=!0)}convictionsYearSelected(e,i){e&&e.preventDefault(),this.convictionsYearTouched=!0,this.convictionsYearBox=!1,this.convictionDetails.convictionDate.year=i}validateConvictionDate(e=!1){var i=null;function t(s){i=(i||"")+(i!=""?`
31`:"")+s}if(this.convictionDetails.convictionDate.year==null||this.convictionDetails.convictionDate.month==null||this.convictionDetails.convictionDate.day==null)t("Please select the date");else if(this.convictionDetails.convictionDate.day!=null&&this.convictionDetails.convictionDate.month!=null&&this.convictionDetails.convictionDate.year!=null){let s=this.checkClaimConvictionDates(this.convictionsDayOptions[this.convictionDetails.convictionDate.day],this.convictionsMonthOptions[this.convictionDetails.convictionDate.month],this.convictionsYearOptions[this.convictionDetails.convictionDate.year],"Conviction");s!=null&&t(s)}return e&&i==null&&this.scrollConvictionNext(),i??null}pointsClicked(e){e&&e.preventDefault(),this.pointsBox=!this.pointsBox,this.pointsTouched=!0}pointsSelected(e,i){e&&e.preventDefault(),this.pointsTouched=!0,this.pointsBox=!1,this.convictionDetails.points=i,this.scrollConvictionNext()}validatePoints(){var e=null;function i(t){e=(e||"")+(e!=""?`
32`:"")+t}return this.convictionDetails.points==null&&i("Please select points"),e??null}validateFine(e=!1){var i=null;function t(_){i=(i||"")+(i!=""?`
33`:"")+_}let s=/^[0-9]{1,25}$/;return this.convictionDetails.fine!==null&&this.convictionDetails.fine!==""?(s.test(this.convictionDetails.fine)||t("Fine can contain numbers only"),this.convictionDetails.fine>99999&&i==null&&t("Maximum fine can be 99999")):t("Please enter the fine amount"),e&&this.scrollConvictionNext(),i??null}banLengthClicked(e){e&&e.preventDefault(),this.banLengthBox=!this.banLengthBox,this.banLengthTouched=!0}banLengthSelected(e,i){e&&e.preventDefault(),this.banLengthTouched=!0,this.banLengthBox=!1,this.convictionDetails.banLength=i,this.scrollConvictionNext()}validateBanLength(){var e=null;function i(t){e=(e||"")+(e!=""?`
34`:"")+t}return this.convictionDetails.banLength==null&&i("Please select ban length"),e??null}readingTypeClicked(e){e&&e.preventDefault(),this.readingTypeBox=!this.readingTypeBox,this.readingTypeTouched=!0}readingTypeSelected(e,i){e&&e.preventDefault(),this.readingTypeTouched=!0,this.readingTypeBox=!1,this.convictionDetails.readingType=i,this.scrollConvictionNext()}validateReadingType(){var e=null;function i(t){e=(e||"")+(e!=""?`
35`:"")+t}return this.convictionDetails.readingType==null&&i("Please select reading type"),e??null}validateReadingLevel(e=!1){var i=null;function t(_){i=(i||"")+(i!=""?`
36`:"")+_}let s=/^[0-9]{1,25}$/;return this.convictionDetails.readingLevel!==null&&this.convictionDetail
36s.readingLevel!==""?(s.test(this.convictionDetails.readingLevel)||t("Reading level can contain numbers only"),this.convictionDetails.readingLevel>999&&i==null&&t("Maximum reading level can be 999")):t("Please enter reading level"),e&&this.scrollConvictionNext(),i??null}setConvictionTouched(e,i=!0,t=this.page2CustomModalForm){e.forEach(s=>{switch(s){case"convictionType":t.controls.convictionType!=null&&(i?t.controls.convictionType.markAsDirty():t.controls.convictionType.reset());break;case"convictionDate":this.convictionsDayTouched=i,this.convictionsMonthTouched=i,this.convictionsYearTouched=i;break;case"points":this.pointsTouched=i;break;case"fine":t.controls.fine!=null&&(i?t.controls.fine.markAsDirty():t.controls.fine.reset());break;case"banLength":this.banLengthTouched=i;break;case"readingType":this.readingTypeTouched=i;break;case"readingLevel":t.controls.readingLevel!=null&&(i?t.controls.readingLevel.markAsDirty():t.controls.readingLevel.reset());break;default:break}})}validateConviction(e,i=!1){var t=[];return(this.validateConvictionType()!=null||i)&&t.push("convictionType"),(this.validateConvictionDate()!=null||i)&&t.push("convictionDate"),(this.validatePoints()!=null||i)&&t.push("points"),(this.validateFine()!=null||i)&&t.push("fine"),(this.validateBanLength()!=null||i)&&t.push("banLength"),this.checkReadingBoxes()&&((this.validateReadingType()!=null||i)&&t.push("readingType"),(this.validateReadingLevel()!=null||i)&&t.push("readingLevel")),e!=null&&this.setConvictionTouched(t),t}checkConvictionAddOrUpdateButtonValid(){return this.validateConviction(null).length==0&&this.showConvictionForm&&this.convictionAddButtonTouched}addConviction(e){this.validateConviction(e).length==0&&(this.currentDriver.convictions=[...this.currentDriver.convictions,this.convictionDetails],this.isConvictionTouched=!1,this.addanotherconviction=null,this.showConvictionForm=!1,this.resetConviction(),this.convictionspop=!1,this.showModal(event,!1),this.scrollNext("convictionlist"))}addAnotherConviction(){this.showConvictionForm=!0,this.scrollNext()}resetConviction(){this.convictionAddButtonTouched=!1,this.convictionDetails=JSON.parse(JSON.stringify(this._convictionDetails)),this.setConvictionTouched(this.validateConviction(null),!1)}cancelConviction(e=!0){this.isConvictionEditing&&(this.isConvictionEditing=!1),this.showConvictionForm=!1,this.resetConviction(),e&&this.scrollNext()}updateConviction(e,i){this.validateConviction(e).length==0&&(this.currentDriver.convictions[i]=this.convictionDetails,this.isConvictionEditing=!1,this.showConvictionForm=!1,this.convictionspop=!1,this.showModal(event,!1),this.resetConviction(),this.scrollNext("convictionlist"))}editConviction(e,i){this.isConvictionEditing=!0,this.convictionspop=!0,this.showModal(event,!0);var t=JSON.parse(JSON.stringify(this.currentDriver.convictions[i]));t.index=i,this.convictionDetails=t,this.showConvictionForm||(this.showConvictionForm=!0)}deleteConviction(e){this.currentDriver.convictions.splice(e,1),this.cancelConviction(!1),this.currentDriver.convictions.length==0&&(this.showConvictionForm=!0,this.resetConviction(),this.currentDriver.personalInfo.didConviction=null)}licenseYearsClicked(e){e&&e.preventDefault(),this.licenseYearsBox=!this.licenseYearsBox,this.licenseYearTouched=!0}licenseYearsSelected(e,i){e&&e.preventDefault(),this.licenseYearTouched=!0,this.licenseYearsBox=!1,this.currentDriver.drivingDetails.yearsLicenceHeld=i,this.scrollNext()}validateLicenseYears(){var e=null;function i(t){e=(e||"")+(e!=""?`
37`:"")+t}if(this.currentDriver.drivingDetails.yearsLicenceHeld==null&&this.licenseYearsBox==!1&&i("Please select years licence held"),this.currentDriver.drivingDetails.yearsLicenceHeld!=null){let t=this.checkLicenseYears(this.currentDriver.drivingDetails.yearsLicenceHeld);t!=null&&i(t)}return e??null}checkLicenseYears(e){let i,t;if(i=new Date,t=new Date(this.dobYearOptions[this.currentDriver.personalInfo.birthDate.year],this.dobMonthOptions[this.currentDriver.personalInfo.birthDate.month]+1,this.dobDayOptions[this.currentDriver.personalInfo.birthDate.day]),this.currentDriver.personalInfo.birthDate.day==null||this.currentDriver.personalInfo.birthDate.month==null||this.currentDriver.personalInfo.birthDate.year==null||this.validateDateOfBirth()!=null)return"Please select birth date";if(i.getFullYear()-t.getFullYear()-17<e)return"The driver is not old enough to hold a licence for these many years"}licenseTypeClicked(e){e&&e.preventDefault(),this.licenseTypeBox=!this.licenseTypeBox,this.licenseTypeTouched=!0}licenseTypeSelected(e,i){e&&e.preventDefault(),this.licenseTypeTouched=!0,this.licenseTypeBox=!1,this.currentDriver.drivingDetails.licenceType=i,this.scrollNext()}validateLicenseType(){var e=null;function i(w){e=(e||"")+(e!=""?`
38`:"")+w}this.currentDriver.drivingDetails.licenceType==null&&i("Please select licence type"),this.licenseTypeOptions.value[this.currentDriver.drivingDetails.licenceType]=="I"&&this.currentDriver.personalInfo.isUkCitizen==!0&&i("License type should not be International if UK citizen since birth"),this.licenseTypeOptions.value[this.currentDriver.drivingDetails.licenceType]=="E"&&this.currentDriver.personalInfo.isUkCitizen==!0&&i("License type should not be EU if UK citizen since birth");let t=new Date,s=new Date(this.dobYearOptions[this.currentDriver.personalInfo.birthDate.year],this.dobMonthOptions[this.currentDriver.personalInfo.birthDate.month]+1,this.dobDayOptions[this.currentDriver.personalInfo.birthDate.day]),_=t.getFullYear()-s.getFullYear();return this.licenseTypeOptions.value[this.currentDriver.drivingDetails.licenceType]!="P"&&_-this.currentDriver.drivingDetails.yearsLicenceHeld<17&&i("Proposer can not have been under 17 years old when they received a non-provisional licence"),e??null}checkDrivingTestTaken(){return this.licenseTypeOptions.value[this.currentDriver.drivingDetails.licenceType]!="P"&&(this.currentDriver.drivingDetails.driverTestTaken=null),this.licenseTypeOptions.value[this.currentDriver.drivingDetails.licenceType]=="P"}validateDrivingTestTaken(e=!1){var i=null;function t(_){i=(i||"")+(i!=""?`
39`:"")+_}let s=/^[0-9]{1,25}$/;return this.currentDriver.drivingDetails.driverTestTaken!==null&&this.currentDriver.drivingDetails.driverTestTaken!==""?(s.test(this.currentDriver.drivingDetails.driverTestTaken)||t("No. of tests taken can contain numbers only"),this.currentDriver.drivingDetails.driverTestTaken>5&&i==null&&t("Maximum tests taken should not be more than 5"),this.currentDriver.drivingDetails.driverTestTaken<=0&&i==null&&t("Minimum tests taken should be atleast 1")):t("Please enter the no. of tests taken"),e&&this.scrollNext(),i??null}claimBonusClicked(e){e&&e.preventDefault(),this.claimBonusBox=!this.claimBonusBox,this.claimBonusTouched=!0}claimBonusSelected(e,i){e&&e.preventDefault(),this.claimBonusTouched=!0,this.claimBonusBox=!1,this.currentDriver.drivingDetails.claimBonus=i,this.scrollNext(),this.checkProtectClaimBonus()==!1&&(this.currentDriver.drivingDetails.protectClaimBonus=null,this.protectClaimBonusTouched=!1)}validateClaimBonus(){var e=null;function i(t){e=(e||"")+(e!=""?`
40`:"")+t}return this.currentDriver.drivingDetails.claimBonus==null?i("Please select claim bonus"):this.currentDriver.drivingDetails.claimBonus!=null&&(this.currentDriver.drivingDetails.yearsLicenceHeld==null?i("Please select the number of years licence held"):this.currentDriver.drivingDetails.yearsLicenceHeld<this.claimBonusOptions.value[this.currentDriver.drivingDetails.claimBonus]&&i("Claim bonus should not be greater than years licence held")),e??null}setProtectClaimBonus(e){this.protectClaimBonusTouched=!0,this.currentDriver.drivingDetails.protectClaimBonus=e,this.scrollNext()}checkProtectClaimBonus(){return this.claimBonusOptions.value[this.currentDriver.drivingDetails.claimBonus]>3&&this.validateClaimBonus()==null}validateProtectClaimBonus(){var e=null;function i(t){e=(e||"")+(e!=""?`
41`:"")+t}return this.currentDriver.drivingDetails.protectClaimBonus==null&&i("Please select an option"),e??null}otherVehiclesClicked(e){e&&e.preventDefault(),this.otherVehiclesBox=!this.otherVehiclesBox,this.otherVehiclesTouched=!0}otherVehiclesSelected(e,i,t){e&&e.preventDefault(),this.otherVehiclesTouched=!0,this.otherVehiclesBox=!1,this.currentDriver.drivingDetails.accessToOtherVehicles=i,this.currentDriver.isAdditionalDriver||(this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OUV"||this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OOC"||this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OUM"?this.totalVehilcesOptions.value[0]==1&&(this.totalVehilcesOptions.text.shift(),this.totalVehilcesOptions.value.shift(),this.currentDriver.drivingDetails.totalVehicles!=0&&this.currentDriver.drivingDetails.totalVehicles!=null&&(this.currentDriver.drivingDetails.totalVehicles-=1)):this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]!="OUV"&&this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]!="OOC"&&this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]!="OUM"&&(this.totalVehilcesOptions.value[0]>1&&this.currentDriver.drivingDetails.totalVehicles!=null&&(this.currentDriver.drivingDetails.totalVehicles+=1),this.totalVehilcesOptions=JSON.parse(JSON.stringify(this.CONSTANT)).totalVehicles)),this.checkShowClaimBonusForOtherVehicle()||(this.otherVehiclesClaimBonusTouched=!1,this.currentDriver.drivingDetails.otherVehilcleClaimBonus=null),t&&this.scrollNext()}validateOtherVehicles(){var e=null;function i(t){e=(e||"")+(e!=""?`
42`:"")+t}return this.currentDriver.drivingDetails.accessToOtherVehicles==null&&i("Please select access to other vehicles"),e??null}checkShowClaimBonusForOtherVehicle(){return this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OUV"||this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OOC"||this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OUM"}otherVehiclesClaimBonusClicked(e){e&&e.preventDefault(),this.otherVehiclesClaimBonusBox=!this.otherVehiclesClaimBonusBox,this.otherVehiclesClaimBonusTouched=!0}otherVehiclesClaimBonusSelected(e,i){e&&e.preventDefault(),this.otherVehiclesClaimBonusTouched=!0,this.otherVehiclesClaimBonusBox=!1,this.currentDriver.drivingDetails.otherVehilcleClaimBonus=i,this.scrollNext()}validateOtherVehiclesClaimBonus(){var e=null;function i(t){e=(e||"")+(e!=""?`
43`:"")+t}return this.currentDriver.drivingDetails.otherVehilcleClaimBonus==null?i("Please select other vehicle claim bonus"):this.currentDriver.drivingDetails.otherVehilcleClaimBonus!=null&&(this.currentDriver.drivingDetails.yearsLicenceHeld==null?i("Please select the number of years licence held"):this.currentDriver.drivingDetails.yearsLicenceHeld<this.otherVehiclesClaimBonusOptions.value[this.currentDriver.drivingDetails.otherVehilcleClaimBonus]&&i("Other vehicle claim bonus can't be greater then years licence held")),e??null}totalVehiclesClicked(e){e&&e.preventDefault(),this.totalVehilcesBox=!this.totalVehilcesBox,this.totalVehiclesTouched=!0}totalVehiclesSelected(e,i,t){e&&e.preventDefault(),this.totalVehiclesTouched=!0,this.totalVehilcesBox=!1,this.currentDriver.drivingDetails.totalVehicles=i,this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OUV"||this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OOC"||this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]=="OUM"?this.totalVehilcesOptions.value[0]==1&&(this.totalVehilcesOptions.text.shift(),this.totalVehilcesOptions.value.shift(),this.currentDriver.drivingDetails.totalVehicles==1&&(this.currentDriver.drivingDetails.totalVehicles=0)):this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]!="OUV"&&this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]!="OOC"&&this.otherVehiclesOptions.value[this.currentDriver.drivingDetails.accessToOtherVehicles]!="OUM"&&(this.totalVehilcesOptions=JSON.parse(JSON.stringify(this.CONSTANT)).totalVehicles),t&&this.scrollNext("addAdditionalDriversSection")}validateTotalVehicles(){var e=null;function i(t){e=(e||"")+(e!=""?`
44`:"")+t}return this.currentDriver.drivingDetails.totalVehicles==null&&i("Please select total number of vehicles"),e??null}validateDrivingDetails(e){var i=[];return(this.validateLicenseYears()!=null||e)&&i.push("licenseYears"),(this.validateLicenseType()!=null||e)&&i.push("licenseType"),this.licenseTypeOptions.value[this.currentDriver.drivingDetails.licenceType]=="P"&&(this.validateDrivingTestTaken()!=null||e)&&i.push("drivingTest"),(this.validateClaimBonus()!=null||e)&&!this.currentDriver.isAdditionalDriver&&i.push("claimBonus"),this.checkProtectClaimBonus()&&!this.currentDriver.isAdditionalDriver&&(this.validateProtectClaimBonus()!=null||e)&&i.push("protectClaimBonus"),(this.validateOtherVehicles()!=null||e)&&i.push("otherVehicles"),(this.validateOtherVehiclesClaimBonus()!=null||e)&&this.checkShowClaimBonusForOtherVehicle()&&!this.currentDriver.isAdditionalDriver&&i.push("otherVehiclesClaimBonus"),(this.validateTotalVehicles()!=null||e)&&!this.currentDriver.isAdditionalDriver&&i.push("totalVehicles"),i}validateAllFields(e=this.page2Form,i=!1,t=!1){if(!this.showDriverForm&&this.allDrivers.length>0&&!this.isDriverEditing&&e!=null)return this.driverYesNoTouched=!0,this.validateAddAnotherDriver()!=null&&this.driverYesNoTouched&&this.allDrivers.length<5?["driverYesNo"]:[];e!=null&&this.setAllFieldsTouched(e);var s=[];let _=this.validatePersonalInfo(i);_.length>0&&(s=s.concat(_));let w=this.validateOccupation(i);if(w.length>0&&(s=s.concat(w)),this.validateClaimsClicked()!=null&&(s=s.concat(["claims"])),this.currentDriver.personalInfo.didCalim&&this.showClaimForm){let B=this.validateClaim(e,i);B.length>0&&(s=s.concat(B)),B.length==0&&this.showClaimForm&&(s=s.concat(["addOrUpdateClaim"]))}if(this.validateConvictionsClicked()!=null&&(s=s.concat(["convictions"])),this.currentDriver.personalInfo.didConviction&&this.showConvictionForm){let B=this.validateConviction(e,i);B.length>0&&(s=s.concat(B)),B.length==0&&this.showConvictionForm&&(s=s.concat(["addOrUpdateConviction"]))}let Y=this.validateDrivingDetails(i);return Y.length>0&&(s=s.concat(Y)),!this.currentDriver.isAdditionalDriver&&!this.isDriverEditing&&(this.validateAddAnotherDriver()!=null||i)&&(s=s.concat(["addAdditionalDriversSection"])),s}setAllFieldsTouched(e=this.page2Form,i=!0){let t=this.validateAllFields(null,!0);this.setTouched(t,e,i)}setTouched(e,i=this.page2Form,t=!0){e.forEach(s=>{switch(s){case"Title":this.titleValidationTouched=t;break;case"maritalStatus":this.maritalStatusTouched=t;break;case"firstName":this.page2Form.controls.firstName!=null&&(t?this.page2Form.controls.firstName.markAsDirty():this.page2Form.controls.firstName.reset());break;case"lastName":this.page2Form.controls.lastname!=null&&(t?this.page2Form.controls.lastname.markAsDirty():this.page2Form.controls.lastname.reset());break;case"relation":this.relationTouched=t;break;case"dateOfBirth":this.dobDayTouched=t,this.dobMonthTouched=t,this.dobYearTouched=t;break;case"ukresident":this.ukCitizenTouched=t;break;case"ukCitizenSince":this.yearsUkResidentTouched=t;break;case"fullTimeJobStatus":this.jobFullTimeTouched=t;break;case"studentStatus":this.studentDetailsTouched=t;break;case"fullTimeJobTitle":case"addiDriverFullTimeJobTitle":this.page2Form.controls.fullTimeJobTitle!=null&&(t?this.page2Form.controls.fullTimeJobTitle.markAsDirty():this.page2Form.controls.fullTimeJobTitle.reset());break;case"fullTimeJoNature":case"addiDriverFullTimeJoNature":this.page2Form.controls.fullTimeJobNature!=null&&(t?this.page2Form.controls.fullTimeJobNature.markAsDirty():this.page2Form.controls.fullTimeJobNature.reset());break;case"parttimejob":this.isPartTimeCheckBoxTouched=t;break;case"partTimeJobStatus":this.jobPartTimeTouched=t;break;case"partTimeJobTitle":case"addiDriverPartTimeJobTitle":this.page2Form.controls.partTimeJobTitle!=null&&(t?this.page2Form.controls.partTimeJobTitle.markAsDirty():this.page2Form.controls.partTimeJobTitle.reset());break;case"partTimeJobNature":case"addiDriverPartTimeJobNature":this.
44page2Form.controls.partTimeJobNature!=null&&(t?this.page2Form.controls.partTimeJobNature.markAsDirty():this.page2Form.controls.partTimeJobNature.reset());break;case"tradebody":this.isTradeMemberTouched=t;break;case"claims":this.isclaimsTouched=t;break;case"addOrUpdateClaim":this.claimsAddButtonTouched=t;break;case"convictions":this.isConvictionTouched=t;break;case"addOrUpdateConviction":this.convictionAddButtonTouched=t;break;case"licenseYears":this.licenseYearTouched=t;break;case"licenseType":this.licenseTypeTouched=t;break;case"drivingTest":this.page2Form.controls.drivingTest!=null&&(t?this.page2Form.controls.drivingTest.markAsDirty():this.page2Form.controls.drivingTest.reset());break;case"claimBonus":this.claimBonusTouched=t;break;case"protectClaimBonus":this.protectClaimBonusTouched=t;break;case"totalVehicles":this.totalVehiclesTouched=t;break;case"otherVehicles":this.otherVehiclesTouched=t;break;case"otherVehiclesClaimBonus":this.otherVehiclesClaimBonusTouched=t;break;case"addOrUpdateDriver":this.driverAddButtonTouched=t;break;case"addAdditionalDriversSection":this.driverYesNoTouched=t;break;default:break}}),this.setClaimFieldsTouched(e,t,i),this.setConvictionTouched(e,t,i)}addAdditionalDriver(e){let i=this.validateAllFields(e,!1,!0);i.length>0?this.scrollNext(i[0]):i.length==0&&(this.allDrivers.push(this.currentDriver),this.resetDriver(!0),this.currentScrollID="",this.scrollNext("pagestart"),this.currentScrollID="",this.showDriverForm=!1,this.allDrivers.length<2&&setTimeout(()=>{this.showDriverForm=!0,this.currentScrollID="",this.scrollNext("yourDetailsTitle"),this.currentScrollID=""},300))}addAnotherDriver(){this.resetDriver(!0),this.showDriverForm=!0,this.currentScrollID="",this.scrollNext(),this.currentScrollID=""}resetDriver(e=!1){this.currentDriver=JSON.parse(JSON.stringify(this._driver)),e&&(this.currentDriver.isAdditionalDriver=!0),this.currentScrollID="",this.driverAddButtonTouched=!1,this.showClaimForm=!1,this.isClaimEditing=!1,this.showConvictionForm=!1,this.isConvictionEditing=!1,this.setAllFieldsTouched(this.page2Form,!1)}cancelDriver(){this.isDriverEditing&&(this.isDriverEditing=!1),this.showDriverForm=!1,this.resetDriver()}editDriver(e){this.resetDriver(),this.isDriverEditing=!0;var i=JSON.parse(JSON.stringify(this.allDrivers[e]));i.index=e,this.currentDriver=i,e==0&&(this.currentDriver.isAdditionalDriver=!1),this.checkTextDropDownRestore(),this.showDriverForm||(this.showDriverForm=!0)}updateDriver(e,i){this.validateAllFields(e,!1,!0).length==0&&(this.allDrivers[i]=this.currentDriver,this.isDriverEditing=!1,this.showDriverForm=!1,this.resetDriver(),this.scrollNext("scrollTopTitle"))}deleteDriver(e){this.allDrivers.splice(e,1),this.cancelDriver()}checkDriverAddOrUpdateButtonValid(){let e=this.validateAllFields(null);return e.length==1?e[0]==="addOrUpdateDriver"&&this.showDriverForm&&this.driverAddButtonTouched:e.length==0&&this.showDriverForm&&this.driverAddButtonTouched}navigateToNextStep(e){let i=this.validateAllFields(e,!1);i.length>0?this.scrollNext():i.length==0&&(this.allDrivers.length==0?(this.allDrivers.push(this.currentDriver),this.showDriverForm=!1):!this.currentDriver.isAdditionalDriver&&this.showDriverForm&&(this.allDrivers[0]=this.currentDriver,this.showDriverForm=!1),this.savePage2(),this.saveFormForSending(),window.scrollTo(0,0),this.router.navigate(["van-insurance/your-cover"]))}counter(e=!1){let i=this.validateAllFields(null,!1);this.countNow(i),i.length>0?(e&&(this.currentScrollID==i[0]&&this.setTouched([i[0]],this.page2Form),this.scrollNext(i[0])),this.currentScrollID=i[0],this.CONSTANT.messages[i[0]]&&this.quoteMessages.sendMessage(this.CONSTANT.messages[i[0]]),this.autoHelpText[i[0]]!=null&&(this.autoHelpText[i[0]]=!0)):this.quoteMessages.sendMessage(this.CONSTANT.messages.addAdditionalDrivers)}countNow(e){var i=40;this.showDriverForm?i=40/(this.allDrivers.length+1):this.allDrivers.length!=0&&(i=40/this.allDrivers.length),this.percentage=40+i*this.allDrivers.length;let t=this.validateAllFields(null,!0).length,s=this.showDriverForm?e.length:t;return this.percentage=this.percentage+(i-s/t*i),this.percentage=Math.round(this.percentage),this.trackProgress.sendCount(this.percentage),this.percentage}claimcounter(e=!1){let i=this.validateClaim(null,!1);this.countNow(i),i.length>0?(e&&(this.currentclaimScrollID==i[0]&&this.setTouched([i[0]],this.page2Form),this.scrollNext(i[0])),this.currentclaimScrollID=i[0],this.CONSTANT.messages[i[0]]&&this.quoteMessages.sendMessage(this.CONSTANT.messages[i[0]]),this.autoHelpText[i[0]]!=null&&(this.autoHelpText[i[0]]=!0)):this.quoteMessages.sendMessage(this.CONSTANT.messages.addAdditionalDrivers)}scrollclaimNext(e=null){this.claimcounter(e==null),e!=null&&this.scrollTo(e),this.savePage2()}convictioncounter(e=!1){let i=this.validateConviction(null,!1);this.countNow(i),i.length>0?(e&&(this.currentconvictionScrollID==i[0]&&this.setTouched([i[0]],this.page2Form),this.scrollNext(i[0])),this.currentconvictionScrollID=i[0],this.CONSTANT.messages[i[0]]&&this.quoteMessages.sendMessage(this.CONSTANT.messages[i[0]]),this.autoHelpText[i[0]]!=null&&(this.autoHelpText[i[0]]=!0)):this.quoteMessages.sendMessage(this.CONSTANT.messages.addAdditionalDrivers)}scrollConvictionNext(e=null){this.convictioncounter(e==null),e!=null&&this.scrollTo(e),this.savePage2()}hideGenderNeutralTitles(e){let i=this.titleOptions.value[e];return(i=="Mx"||i=="Dr")&&!this.referrerCode}static{this.\u0275fac=function(i){return new(i||l)(A(G),A(R),A(pe),A(ie),A(de),A(me),A(N),A(ue))}}static{this.\u0275cmp=q({type:l,selectors:[["app-about-you"]],viewQuery:function(i,t){if(i&1&&(F(Me,5),F(Ye,5)),i&2){let s;P(s=j())&&(t.page2Form=s.first),P(s=j())&&(t.page2CustomModalForm=s.first)}},hostBindings:function(i,t){i&1&&v("beforeunload",function(){return t.saveState()},!1,W)},standalone:!1,features:[$([N])],decls:31,vars:6,consts:[["allForms","ngForm"],["modalForm","ngForm"],["firstName","ngModel"],["lastname","ngModel"],["fullTimeJobTitle","ngModel"],["fullTimeJobNature","ngModel"],["partTimeJobTitle","ngModel"],["partTimeJobNature","ngModel"],["drivingTest","ngModel"],["costAmount","ngModel"],["convictionsType","ngModel"],["fine","ngModel"],["readingLevel","ngModel"],[1,"reg-no-loader"],[1,"reg-no-checked"],[1,"reg-no-canceled"],[1,"n
44ormal-loader"],[1,"normal-checked"],[1,"normal-cancel"],[1,"loader-normal"],[1,"loader-cancel"],[1,"loader-checked"],[1,"tick-load"],["id","pagestart",1,"vc-get-quote"],[1,"container-fluid"],[1,"vc-get-quote-content"],[1,"vc-get-quote-form","col-md-8"],["id","scrollTopTitle",1,"vc-get-quote-form-inner"],[1,"vc-get-quote-heading"],[1,"heading1","fade-up-animation"],["name","allForms","novalidate","","onsubmit","return false;",1,"form"],[1,"vc-get-quote-form-item"],[4,"ngIf"],["class"," foradditionaldriver",4,"ngIf"],["class","vc-get-quote-form-item-inner add_driver_toggle","id","driverYesNo",4,"ngIf"],["id","nextButton","class","vc-get-quote-form-button about-you-button fade-up-animation","style","margin-bottom: 0",4,"ngIf"],[1,"vc-get-quote-info","col-md-4"],["autocomplete","off","name","modalForm","novalidate","","onsubmit","return false;",1,"form","ng-untouched","ng-pristine","ng-valid"],["class","modal-open cc_modal",4,"ngIf"],["id","yourDetailsTitle",1,"vc-get-quote-form-heading","fade-up-animation"],[1,"check_points","check_point_checked"],[1,"vc-get-quote-form-item-inner"],["class","btn-group bootstrap-select vc-accordion hide-arrow",4,"ngFor","ngForOf"],[1,"btn-group","bootstrap-select","vc-accordion","hide-arrow"],[1,"accordion-btn","fade-up-animation"],[1,"btn-accordion","btn","dropdown-toggle","chevron",3,"id"],[1,"action_title","row"],[1,"col-xs-8","col-md-8"],[1,"name-label"],["class","position",4,"ngIf"],[1,"col-xs-4","col-md-4","accordion-action","text-right"],[1,"edit_driver",3,"click"],[1,"license_address"],[1,"licence_status"],[1,"address_marital"],[1,"position"],[1,"foradditionaldriver"],[1,"vc-get-quote-form-heading","fade-up-animation"],[1,"col-xs-7","col-md-8"],[1,"col-xs-5","col-md-4","accordion-action","text-right"],[1,"delete-add-driver",3,"click"],[1,"license_address","fade-up-animation"],["id","driverYesNo",1,"vc-get-quote-form-item-inner","add_driver_toggle"],[1,"form-group","fade-up-animation"],[1,"options-group","custom-options"],[1,"options"],["name","add_driver_radio","type","radio","id","add_yes"],["for","add_yes",3,"click"],["name","add_driver_radio","type","radio","id","add_no",3,"checked"],["for","add_no",3,"click"],["class","error_msg",4,"ngIf"],[1,"error_msg"],[1,"vc-get-quote-form-item","foradditionaldriver"],["id","formstart",1,"vc-get-quote-form-heading","fade-up-animation"],["data-toggle","tooltip","data-placement","top",1,"form-info","head-top",3,"click"],[3,"class",4,"ngIf"],[1,"form-group-multi","vc-get-quote-form-item-inner"],["id","maritalStatus",1,"form-group","fade-up-animation"],[3,"clickOutside"],["type","button","data-toggle","dropdown","role","button","title","Marital status",3,"click","disabled"],[1,"filter-option","pull-left"],[1,"bs-caret"],[1,"caret"],["role","combobox"],["role","listbox",1,"dropdown-menu","inner"],[3,"class",4,"ngFor","ngForOf"],["id","Title",1,"form-group","fade-up-animation"],["type","button","data-toggle","dropdown","role","button","title","Title",3,"click","disabled"],[3,"ngClass","class",4,"ngFor","ngForOf"],["id","firstName",1,"form-group","fade-up-animation"],["type","text","autocomplete","off","placeholder","First names","name","firstName","required","",3,"keypress","ngModelChange","blur","focus","ngModel"],["id","lastName",1,"form-group","fade-up-animation"],["type","text","autocomplete","off","placeholder","Surname","name","lastname","required","",3,"keypress","ngModelChange","blur","focus","ngModel"],["class","form-group-multi vc-get-quote-form-item-inner custom-form-group-multi",4,"ngIf"],["class","tooltip-description helphiddenmobile abouthelp",4,"ngIf"],[1,"van-purchased-main"],[1,"form-group-multi","vc-get-quote-form-item-inner","van-purchased"],["id","dateOfBirth",1,"form-group","fade-up-animation","select-form-group","datepicker-z-index"],[1,"select-multi","select-cmulti"],["type","button","data-toggle","dropdown","role","button","title","Day",3,"click","disabled"],["role","listbox",1,"dropdown-menu","inner","date-pick","row"],["type","button","data-toggle","dropdown","role","button","title","Month",3,"click","disabled"],["type","button","data-toggle","dropdown","role","button","title","Year",3,"click","disabled"],["id","ukresident",1,"form-group","fade-up-animation"],["data-toggle","tooltip","data-
44placement","top",1,"form-info",3,"click"],["name","uk-resident","type","radio","id","uk-resident-yes",3,"click","disabled","checked"],["for","uk-resident-yes"],["name","uk-resident","type","radio","id","uk-resident-no",3,"click","disabled","checked"],["for","uk-resident-no"],["class","tooltip-description abouthelp ukres",4,"ngIf"],["class","custom-form-group-multi form-group-multi vc-get-quote-form-item-inner","id","ukCitizenSince",4,"ngIf"],[1,"vc-get-quote-form-heading"],["id","fullTimeJobStatus"],["type","button","data-toggle","dropdown","role","button","title","Full time job status",3,"click","disabled"],["class","form-group fade-up-animation fg-half right-padding-0","id","studentStatus",4,"ngIf"],["class","tooltip-description mobdeskboth parttime desk-def",4,"ngIf"],["class","form-group fade-up-animation fg-half right-padding-0",3,"id",4,"ngIf"],[1,"form-group-multi","vc-get-quote-form-item-inner","hidden-xs"],["class","tooltip-description desk-def",4,"ngIf"],["id","parttimejob",1,"vc-get-quote-form-item-inner"],[1,"form-group-multi","custom-form-group-multi"],["name","partTimeJob","type","radio","id","partTimeJob-yes",3,"click","disabled","checked"],["for","partTimeJob-yes"],["name","partTimeJob","type","radio","id","partTimeJob-no",3,"click","disabled","checked"],["for","partTimeJob-no"],["class","tooltip-description  desk-def",4,"ngIf"],["class","form-group fade-up-animation fg-half","id","partTimeJobStatus",4,"ngIf"],["class","tooltip-description mobdeskboth parttime  desk-def",4,"ngIf"],["class","form-group fade-up-animation  fg-half right-padding-0",3,"id",4,"ngIf"],["class","form-group fade-up-animation","id","tradebody",4,"ngIf"],["class","tooltip-description desk-def trade-body",4,"ngIf"],[1,"vc-get-quote-form-item","claims_section"],[1,"vc-get-quote-form-heading","claims_header","fade-up-animation"],["class","claimsConviction",4,"ngIf"],["class","form-group-multi vc-get-quote-form-item-inner","id","claims",4,"ngIf"],["id","convictions",1,"form-group","fade-up-animation"],["class","form-group-multi vc-get-quote-form-item-inner","id","convictions",4,"ngIf"],[1,"vc-get-quote-form-item","padding-remove-parent"],["id","licenseYears",1,"form-group","fade-up-animation","fg-half","fg-left"],["type","button","data-toggle","dropdown","role","button","title","Years licence held",3,"click","disabled"],["role","listbox",1,"six_grid","dropdown-menu","inner","row"],["class","tooltip-description showall",4,"ngIf"],["id","licenseType"],["type","button","data-toggle","dropdown","role","button","title","Licence type",3,"click","disabled"],["class","tooltip-description helphiddendesk",4,"ngIf"],["id","drivingTest","class","form-group fade-up-animation",4,"ngIf"],["class","tooltip-description helphiddenmobile",4,"ngIf"],["id","otherVehicles"],["type","button","data-toggle","dropdown","role","button","title","Other vehicles",3,"click","disabled"],["id","otherVehiclesClaimBonus","class","form-group fade-up-animation fg-half right-padding-0 ",4,"ngIf"],["class","fade-up-animation","style","margin-bottom: -55px;",4,"ngIf"],["id","addAdditionalDriversSection",1,"vc-get-quote-form-item"],["class","",4,"ngIf"],[1,"tooltip-head"],[1,"form-info",2,"margin-left","0"],[1,"toolrip-text"],["data-tokens","null","role","option","aria-disabled","false",1,"",3,"click","tabindex"],[1,"text"],[1,"glyphicon","glyphicon-ok","check-mark"],[3,"ngClass"],[1,"form-group-multi","vc-get-quote-form-item-inner","custom-form-group-multi"],["id","relation",1,"form-group","fade-up-animation","fg-half"],["type","button","data-toggle","dropdown","role","button","title","Relationship to proposer",3,"click","disabled"],["class","tooltip-description helphiddendesk abouthelp",4,"ngIf"],[1,"tooltip-description","helphiddendesk","abouthelp"],[1,"tooltip-description","helphiddenmobile","abouthelp"],[1,"tooltip-description","abouthelp","ukres"],["id","ukCitizenSince",1,"custom-form-group-multi","form-group-multi","vc-get-quote-form-item-inner"],[1,"form-group","fade-up-animation","select-form-group","fg-half","years-in-uk"],["type","button","data-toggle","dropdown","role","button","title","Years UK Resident",3,"click"],["role","listbox",1,"dropdown-menu","inner","three_grid","row"],["
44id","studentStatus",1,"form-group","fade-up-animation","fg-half","right-padding-0"],["type","button","data-toggle","dropdown","role","button","title","Full time student status",3,"click","disabled"],[1,"tooltip-description","mobdeskboth","parttime","desk-def"],[1,"form-group","fade-up-animation","fg-half","right-padding-0",3,"id"],[1,"auto-complete"],["type","text","autocomplete","off","placeholder","Type first three letters...","name","fullTimeJobTitle","required","",3,"keypress","ngModelChange","clickOutside","focus","ngModel"],["class","auto-complete-main",4,"ngIf"],["class","tooltip-description helphiddendes",4,"ngIf"],[1,"auto-complete-main"],[1,"auto-complete-box"],[4,"ngFor","ngForOf"],[3,"click"],[1,"tooltip-description","helphiddendes"],[1,"text-nowrap"],["type","text","autocomplete","off","placeholder","Type first three letters...","name","fullTimeJobNature","required","",3,"keypress","ngModelChange","clickOutside","focus","ngModel"],[1,"tooltip-description","helphiddendesk"],[1,"tooltip-description","desk-def"],["id","partTimeJobStatus",1,"form-group","fade-up-animation","fg-half"],["type","button","data-toggle","dropdown","role","button","title","Part time job status",3,"click","disabled"],["type","text","autocomplete","off","placeholder","Type first three letters...","name","partTimeJobTitle","required","",3,"keypress","ngModelChange","clickOutside","focus","ngModel"],["type","text","autocomplete","off","placeholder","Type first three letters...","name","partTimeJobNature","required","",3,"keypress","ngModelChange","clickOutside","focus","ngModel"],["id","tradebody",1,"form-group","fade-up-animation"],["name","organisation","type","radio","id","organisation-yes",3,"click","disabled","checked"],["for","organisation-yes"],["name","organisation","type","radio","id","organisation-no",3,"click","disabled","checked"],["for","organisation-no"],[1,"tooltip-description","desk-def","trade-body"],[1,"claimsConviction"],["id","claimlist",1,"table-claims","form-group","fade-up-animation"],[1,"table"],["scope","col","colspan","3"],[1,"table-claims__conetnt"],["class","price_claims",4,"ngIf"],[1,"table-action-btn","action-btns-table"],[1,"edit-table-btn",3,"click"],["src","assets/img/delete-btn.png",1,"delete-table-btn",3,"click"],[1,"price_claims"],["id","claims",1,"form-group-multi","vc-get-quote-form-item-inner"],["name","mode","type","radio","id","five-claims-yes","data-toggle","modal",3,"click","ngModelChange","value","ngModel"],["for","five-claims-yes"],["name","mode","type","radio","id","five-claims-no",3,"click","ngModelChange","value","ngModel"],["for","five-claims-no"],["class","tooltip-description helphiddendesk claimstext",4,"ngIf"],[1,"tooltip-description","helphiddenmobile"],[1,"tooltip-description","helphiddendesk","claimstext"],["name","five-claims-add","type","radio","id","five-claims-add-yes","data-toggle","modal",3,"click","ngModelChange","value","ngModel"],["for","five-claims-add-yes"],["name","five-claims-add","type","radio","id","five-claims-add-no",3,"click","ngModelChange","value","ngModel"],["for","five-claims-add-no"],["id","convictionlist",1,"table-claims","form-group","fade-up-animation"],["class","table-action-btn action-btns-table",4,"ngIf"],["id","convictions",1,"form-group-multi","vc-get-quote-form-item-inner"],["name","convictions","type","radio","id","convictions-yes","data-toggle","modal",3,"click","ngModelChange","value","ngModel"],["for","convictions-yes"],["name","convictions","type","radio","id","convictions-no",3,"click","ngModelChange","value","ngModel"],["for","convictions-no"],["class","tooltip-description helphiddendesk convictionstext",4,"ngIf"],[1,"tooltip-description","helphiddendesk","convictionstext"],["name","convictions-add","type","radio","id","convictions-add-yes","data-toggle","modal",3,"click","ngModelChange","value","ngModel"],["for","convictions-add-yes",1,""],["name","convictions-add","type","radio","id","convictions-add-no",3,"click","ngModelChange","value","ngModel"],["for","convictions-add-no",1,""],[1,"tooltip-description","showall"],["id","drivingTest",1,"form-group","fade-up-animation"],["type","number","autocomplete","off","placeholder","Practical driving tests taken","pattern","[0-9]*","name","drivingTest","maxlength","1","required","",3,"keypress","blur","ngModelChange","ngModel"],["id","claimBonus"],["type","button","data-toggle","dropdown","role","button","title","Claim bonus",3,"click","clickOutside","disabled"],["role","listbox",1,"three_grid","dropdown-menu","inner","row"],["class","tooltip-description-green top-no helphiddendesk",4,"ngIf"],["class","form-group fade-up-animation","id","protectClaimBonus",4,"ngIf"],[1,"tooltip-description-green","top-no","helphiddendesk"],["id","protectClaimBonus",1,"form-group","fade-up-animation"],["name","protect-claim-bonus","type","radio","id","protect-claim-bonus-ye
44s",3,"click","disabled","checked"],["for","protect-claim-bonus-yes"],["name","protect-claim-bonus","type","radio","id","protect-claim-bonus-no",3,"click","disabled","checked"],["for","protect-claim-bonus-no"],["id","otherVehiclesClaimBonus",1,"form-group","fade-up-animation","fg-half","right-padding-0"],["id","totalVehicles","class","form-group fade-up-animation fg-half ",4,"ngIf"],["id","totalVehicles",1,"form-group","fade-up-animation","fg-half"],["type","button","data-toggle","dropdown","role","button","title","Total vehicles",3,"click","disabled"],[1,"fade-up-animation",2,"margin-bottom","-55px"],[1,""],["id","addOrUpdateDriver",1,"vc-get-quote-form-button","about-you-button","about-you-button-1","reverse-btn",2,"margin-bottom","0"],["type","button","name","cancel-driver",3,"click"],["type","button","name","add-driver",3,"click"],["id","addAdditionalDriversSection",1,"form-group-multi","vc-get-quote-form-item-inner"],[1,"form-group"],["id","addDriver",1,"form-group","fade-up-animation"],[1,"add_driver_toggle","add_driver_toggle_2"],["id","nextButton",1,"vc-get-quote-form-button","about-you-button","fade-up-animation",2,"margin-bottom","0"],["type","button",1,"flip-mobile","btn","btn-success","btn-lg","btn-next",3,"click"],["type","button","routerLink","/van-insurance/your-van",1,"btn","btn-grey","btn-lg","btn-prev"],["type","button",1,"flip-desktop","btn","btn-success","btn-lg","btn-next",3,"click"],[1,"modal-open","cc_modal"],["id","modal1","tabindex","-1","role","dialog",1,"modal","modal-vc-your-quote",2,"overflow-y","hidden",3,"click"],["role","document",1,"modal-dialog"],[1,"modal-content"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"terms-body"],["class","vc-acceptance-criteria pop pop_modals pop_modals--height","id","acceptance-criteria",4,"ngIf"],["class","vc-acceptance-criteria pop pop_modals convictions__pop","id","acceptance-criteria",4,"ngIf"],["id","acceptance-criteria",1,"vc-acceptance-criteria","pop","pop_modals","pop_modals--height"],[1,"well","well-padding"],[1,"modal-header"],[1,"vc-get-quote-form-heading","claims_header"],[1,"group","fade-up-animation"],[1,"cc_block"],["id","claimDate",1,"form-group-multi"],[1,"form-group","datepicker-z-index"],["id","claimType",1,"form-group"],["type","button","data-toggle","dropdown","role","button","title","Claims type",3,"click","disabled"],["id","claimDescription","class","form-group",4,"ngIf"],[1,"clear-sec"],["id","costIncurred"],["type","button","data-toggle","dropdown","role","button","title","Cost incurred",3,"click","disabled"],["id","costAmount","class","form-group",4,"ngIf"],[1,"form-group-multi"],["id","faultClaim",1,"form-group"],[1,"options",3,"click"],["name","fault-claims","type","radio","id","fault-claims-yes",3,"disabled","checked"],["for","fault-claims-yes"],["name","fault-claims","type","radio","id","fault-claims-no",3,"disabled","checked"],["for","fault-claims-no"],["class","form-group","id","personalInjury",4,"ngIf"],["id","occurredUnder",1,"form-group"],["name","occured-under","type","radio","id","occured-under-yes",3,"disabled","checked"],["for","occured-under-yes"],["name","occured-under","type","radio","id","occured-under-no",3,"disabled","checked"],["for","occured-under-no"],["type","button",3,"class","click",4,"ngIf"],["id","claimDescription",1,"form-group"],[1,"claim_description"],["type","button","data-toggle","dropdown","role","button","title","Claims description",3,"click","disabled"],["id","costAmount",1,"form-group"],[1,"input-money"],["type","number","autocomplete","off","pattern","[0-9]*","placeholder","Cost amount","name","costAmount","maxlength","5","required","",3,"keypress","ngModelChange","blur","ngModel"],["id","personalInjury",1,"form-group"],["name","personal-injury","type","radio","id","personal-injury-yes",3,"disabled","checked"],["for","personal-injury-yes"],["name","personal-injury","type","radio","id","personal-injury-no",3,"disabled","checked"],["for","personal-injury-no"],["type","button",3,"click"],["id","acceptance-criteria",1,"vc-acceptance-criteria","pop","pop_modals","convictions__pop"],["id","convictionType",1,"form-group"],["type","text","autocomplete","off","placeholder","Start t
44yping to search...","name","convictionType","required","",3,"keypress","ngModelChange","clickOutside","focus","ngModel"],["id","convictionDate",1,"form-group-multi"],["id","points",1,"form-group"],["type","button","data-toggle","dropdown","role","button","title","Points",3,"click","disabled"],["id","fine",1,"form-group"],["type","number","autocomplete","off","placeholder","Fine","pattern","[0-9]*","name","fine","maxlength","5","required","",3,"blur","keypress","ngModelChange","ngModel"],["id","banLength"],["type","button","data-toggle","dropdown","role","button","title","Ban length",3,"click","disabled"],["class","form-group","id","readingType",4,"ngIf"],[1,"custom-form-group-multi","form-group-multi"],["class","form-group fg-half","id","readingLevel",4,"ngIf"],["id","addAnotherConviction",1,"form-group","fade-up-animation","custom-button-family"],["type","button","class","save-entry common-save",3,"click",4,"ngIf"],["id","readingType",1,"form-group"],["type","button","data-toggle","dropdown","role","button","title","Reading type",3,"click","disabled"],["id","readingLevel",1,"form-group","fg-half"],["type","number","autocomplete","off","placeholder","Reading level","pattern","[0-9]*","name","readingLevel","maxlength","3","required","",3,"keypress","ngModelChange","blur","ngModel"],["type","button",1,"save-entry","common-save",3,"click"]],template:function(i,t){if(i&1&&(g(0,"span",13)(1,"span",14)(2,"span",15)(3,"span",16)(4,"span",17)(5,"span",18)(6,"span",19)(7,"span",20)(8,"span",21)(9,"span",22),r(10,"section",23)(11,"div",24)(12,"div",25)(13,"div",26)(14,"div",27)(15,"div",28)(16,"h1",29),a(17,"2. About You"),n()(),r(18,"form",30,0)(20,"div",31),h(21,je,8,1,"div",32)(22,Re,8,1,"div",33)(23,qe,14,8,"div",34)(24,rn,263,234,"div",32),n(),h(25,ln,7,0,"div",35),n()()(),r(26,"div",36),g(27,"app-quote-assistant"),n()()()(),r(28,"form",37,1),h(30,Qn,10,2,"div",38),n()),i&2){let s,_;o(21),u("ngIf",((s=t.getPersonalDriver())==null?null:s.length)>0&&!t.isDriverEditing),o(),u("ngIf",((_=t.getAdditionalDriver())==null?null:_.length)>0&&!t.isDriverEditing),o(),u("ngIf",(t.allDrivers==null?null:t.allDrivers.length)>0&&(t.allDrivers==null?null:t.allDrivers.length)<5&&!t.isDriverEditing&&!t.showDriverForm),o(),u("ngIf",t.showDriverForm),o(),u("ngIf",!t.currentDriver.isAdditionalDriver&&!t.isDriverEditing||!t.showDriverForm),o(5),u("ngIf",t.popup)}},dependencies:[Z,X,ee,we,ge,he,Te,De,_e,fe,Ce,ye,Se,be,xe,ve,ne],styles:['.showall[_ngcontent-%COMP%], .mobdesk[_ngcontent-%COMP%], .parttime[_ngcontent-%COMP%]{margin-bottom:40px!important}.van-purchased-main[_ngcontent-%COMP%]{margin-bottom:40px}.ukres[_ngcontent-%COMP%]{margin-top:1em!important}@media (min-width: 768px){.tooltip-description.helphiddendes[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 767px){.ukres[_ngcontent-%COMP%]{margin-top:5px!important}.showall[_ngcontent-%COMP%], .parttime[_ngcontent-%COMP%]{margin-top:-20px!important}.trade-body[_ngcontent-%COMP%], .convictionstext[_ngcontent-%COMP%], .desk-def[_ngcontent-%COMP%]{margin-top:-26px!important}.abouthelp[_ngcontent-%COMP%]{margin-top:5px}.tooltip-description.helphiddendesk.claimstext[_ngcontent-%COMP%]{margin-top:-21px;margin-bottom:40px}.tooltip-description.helphiddendesk.convictionstext[_ngcontent-%COMP%]{margin-top:-21px!important}}@-moz-document url-prefix(){label,.error_msg{font-weight:600;font-size:13px}.auto-complete-box{padding-left:0}}.edit_driver[_ngcontent-%COMP%], .delete_driver[_ngcontent-%COMP%]{line-height:normal;font-size:16px;text-decoration-line:underline;color:#1966ff;text-transform:capitalize}.edit_driver[_ngcontent-%COMP%]{margin-right:0}.delete_driver[_ngcontent-%COMP%]{margin-left:10px;margin-right:0}.position[_ngcontent-%COMP%]{line-height:24px;font-size:16px;font-style:italic;color:#182546;font-weight:400}.address_marital[_ngcontent-%COMP%]{font-size:16px;color:#182546;margin:5px 0 0;font-weight:400;line-height:24px}.delete-add-driver[_ngcontent-%COMP%]{margin-right:0;margin-left:10px;background:url("./media/delete-RMGUWHYS.png") no-repeat center}.licence_status[_ngcontent-%COMP%]{margin-top:5px;line-height:24px;font-size:16px;font-weight:400;color:#182546}.accordion-btn[_ngcontent-%COMP%]{background:#ffffffb3;mix-blend-mode:normal;box-shadow:4px 59px 120px #41608413;border-radius:3px}.foradditionaldriver[_ngcontent-%COMP%]{margin-top:30px}@media (min-width: 992px){.vc-get-quote-form-item[_ngcontent-%COMP%]   .vc-get-quote-form-item-inner[_ngcontent-%COMP%]{max-width:635px;margin:0 auto}}.add_driver_toggle[_ngcontent-%COMP%]{margin-top:20px!important}.add_driver_toggle_2[_ngcontent-%COMP%]{margin-top:0!important}.check_point_checked[_ngcontent-%COMP%]{background-color:#02cd56!important;background-image:url("./media/white_tick-TZD6QQPU.png");background-repeat:no-repeat;background-position:center;color:transparent!important}div#addNewAnotherDriver[_ngcontent-%COMP%]{margin-top:15px}.name-label[_ngcontent-%COMP%]{font-weight:700;font-size:18px}.position[_ngcontent-%COMP%], .address_marital[_ngcontent-%COMP%], .licence_status[_ngcontent-%COMP%]{text-align:left!important;white-space:normal}@media (min-width: 768px){.vc-get-quote-form-item[_ngcontent-%COMP%]   .vc-get-quote-form-heading[_ngcontent-%COMP%]{line-height:44px;margin-bottom:50px;font-size:24px}}@media (min-width: 500px){.license_address[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}}@media (max-width: 500px){.position[_ngcontent-%COMP%]{display:block}.license_address[_ngcontent-%COMP%]{margin-top:8px!important}}@media (max-width: 479px){.about-you-button-1[_ngcontent-%COMP%]   .cancel-save[_ngcontent-%COMP%]{margin-bottom:15px;width:100%}}.about-you-button[_ngcontent-%COMP%]{margin-bottom:41px}.action_title[_ngcontent-%COMP%]   .filter-option[_ngcontent-%COMP%]:first-child{text-align:left}.action_title[_ngcontent-%COMP%]   .filter-option[_ngcontent-%COMP%]:last-child{text-align:right}.about-you-button-1[_ngcontent-%COMP%]   button.btn.btn-grey.btn-lg.btn-prev[_ngcontent-%COMP%]:after{display:none!important}.about-you-button-1[_ngcontent-%COMP%]   .btn-next[_ngcontent-%COMP%]:after{display:none!important}.about-you-button-1[_ngcontent-%COMP%]   button.btn.btn-grey.btn-lg.btn-prev[_ngcontent-%COMP%], .about-you-button-1[_ngcontent-%COMP%]   .btn-next[_ngcontent-%COMP%]{text-align:center}.claimsConviction[_ngcontent-%COMP%]{list-style:none;padding-left:0}.claimsConviction[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:20px}#claims[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:25px 0}#convictions[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:15px 0}.terms-body[_ngcontent-%COMP%]   .pop[_ngcontent-%COMP%]{padding:0}@media (max-width: 479px){.reverse-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}}.convictions__pop[_ngcontent-%COMP%]{max-height:600px;height:600px}.convictions__pop[_ngcontent-%COMP%]   .group[_ngcontent-%COMP%]{max-height:520px}.modal-content--bg-blue[_ngcontent-%COMP%]{background-color:#dbebfe}
44@media (max-width: 475px){.table-claims__conetnt[_ngcontent-%COMP%]{display:block}.table-claims__conetnt[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:block;margin:5px 0}}@media (max-width: 575px){.table-claims__conetnt[_ngcontent-%COMP%]   .delete-table-btn[_ngcontent-%COMP%]{margin-top:0}}.pop_modals--height[_ngcontent-%COMP%]{height:560px}.hide-option[_ngcontent-%COMP%]{display:none}']})}}return l})();var Gn=[{path:"",component:Ve}],go=(()=>{class l{static{this.\u0275fac=function(i){return new(i||l)}}static{this.\u0275mod=z({type:l})}static{this.\u0275inj=H({imports:[te,Ie,oe.forChild(Gn)]})}}return l})();export{go as AboutYouModule};

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.