(function(e){function t(t){for(var a,o,r=t[0],l=t[1],c=t[2],d=0,m=[];d1){var a=t[1].split(":"),n=a[0],s=a[1],o=n>=12?"PM":"AM";n%=12,n=n||12,i=n+":"+s+" "+o}return i}));var C=i("1816"),y=i.n(C),T={data:function(){return{FirstName:"",LastName:"",Last4Ssn:"",DateOfBirth:"",CardNumber:"",LoggedIn:!1,Email:"",CellPhone:"",ViaOtpScreen:!1}},methods:{Save:function(e,t,i,a,n){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";this.FirstName=e,this.LastName=t,this.Last4Ssn=i,this.DateOfBirth=a,this.CardNumber=n,this.LoggedIn=!0,this.Email=s,this.CellPhone=o},SetViaOtpScreen:function(e){this.ViaOtpScreen=e},Clear:function(){this.FirstName="",this.LastName="",this.Last4Ssn="",this.DateOfBirth="",this.CardNumber="",this.LoggedIn=!1,this.Email="",this.CellPhone=""}}},k={data:function(){return{CurrentState:"",NavigationPath:[]}},created:function(){},methods:{MoveNext:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.NavigationPath.push(this.CurrentState.Name),this.CurrentState=w[e.Name]},MovePrevious:function(){var e=this.NavigationPath.pop();this.CurrentState=w[e]},SetInitialState:function(e){this.NavigationPath=[],this.CurrentState=e},Rewind:function(e){for(var t=this.NavigationPath,i=t.length;i>0;i--){if(t[i-1]===e.Name){this.MovePrevious();break}this.NavigationPath.pop()}this.CurrentState=e}},computed:{States:function(){return w}}},w={Sandbox:{Name:"ViewAppointment",Description:{EN:"View Existing Appointment",ES:"Ver cita existente"},DisplayPageTitle:!1,Progress:80},LanguageSelection:{Name:"SelectLanguage",Description:{EN:"Language Selection",ES:"Selección de idioma"},DisplayPageTitle:!1,Progress:0},OTPVerification:{Name:"OtpVerification",Description:{EN:"One Time Password Verification",ES:"Verificación de contraseña de un solo uso"},DisplayPageTitle:!1,Progress:0},Login:{Name:"Login",Description:{EN:"Login",ES:"Iniciar sesión"},DisplayPageTitle:!1,Progress:0},SelectOption:{Name:"SelectOption",Description:{EN:"Select Option",ES:"Seleccionar opción"},DisplayPageTitle:!0,Progress:10},HomeBoundVisit:{Name:"HomeBoundVisit",Description:{EN:"Home-bound Visit",ES:"Visita a domicilio"},DisplayPageTitle:!0,Progress:95},ViewAppointment:{Name:"ViewAppointment",Description:{EN:"View Existing Appointment",ES:"Ver cita existente"},DisplayPageTitle:!0,Progress:50},SelectService:{Name:"SelectService",Description:{EN:"Select Service",ES:"Seleccionar servicio"},DisplayPageTitle:!0,Progress:25},EligibleResults:{Name:"EligibleResults",Description:{EN:"Eligibility Results",ES:"Resultados de elegibilidad"},DisplayPageTitle:!1,Progress:15},CompleteTransactionOnline:{Name:"CompleteTransactionOnline",Description:{EN:"Select Service",ES:"Seleccionar servicio"},DisplayPageTitle:!0,Progress:80},CustomerDetails:{Name:"CustomerDetails",Description:{EN:"Customer Details",ES:"Detalles del cliente"},DisplayPageTitle:!0,Progress:82},ServiceNotListed:{Name:"ServiceNotListed",Description:{EN:"Service Not Listed",ES:"Servicio no listado"},DisplayPageTitle:!0,Progress:80},RequiredToTakeRoadTest:{Name:"RequiredToTakeRoadTest",Description:{EN:"I Am Required to Take a Road Test",ES:"Estoy obligado a tomar un examen práctico"},DisplayPageTitle:!0,Progress:95},HomeBoundVisitSubmission:{Name:"HomeBoundVisitSubmission",Description:{EN:"Home-bound Visit - Submission",ES:"Visita a domicilio - Presentación"},DisplayPageTitle:!0,Progress:100},SelectLocation:{Name:"SelectLocation",Description:{EN:"Select Location",ES:"Seleccionar ubicación"},DisplayPageTitle:!0,Progress:85},SelectTime:{Name:"SelectTime",Description:{EN:"Select Time",ES:"Seleccionar hora"},DisplayPageTitle:!0,Progress:90},ConfirmAppointment:{Name:"ConfirmAppointment",Description:{EN:"Confirm Appointment",ES:"Confirmar cita"},DisplayPageTitle:!0,Progress:95},AppointmentConfirmation:{Name:"AppointmentConfirmation",Description:{EN:"Appointment Confirmation",ES:"Confirmación de la cita"},DisplayPageTitle:!0,Progress:100},CancelAppointment:{Name:"CancelAppointment",Description:{EN:"Cancel Appointment",ES:"Cancelar cita"},DisplayPageTitle:!0},ConfirmCancelAppointment:{Name:"ConfirmCancelAppointment",Description:{EN:"Cancel Appointment",ES:"Cancelar cita"},DisplayPageTitle:!0},CheckInAppointment:{Name:"CheckInAppointment",Description:{EN:"Appointment Check-In",ES:"Registro de citas"},DisplayPageTitle:!0},SiteUnavailable:{Name:"SiteUnavailable",Description:{EN:"Site Unavailable",ES:"Site Unavailable"},DisplayPageTitle:!1}},D=(i("99af"),i("4160"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0"),i("e587")),A=(i("96cf"),i("89ba")),L=i("6d81"),N=i("fb49"),W=i("bc3a"),E=i.n(W),B={local:"https://localhost:44339/api/",dev:"https://txpublicwebsiteapi-dev.azurewebsites.us/api/",qa:"https://txpublicwebsiteapi-qa.azurewebsites.us/api/",preview:"https://txpublicwebsiteapi-preview.azurewebsites.us/api/",stage:"https://txpublicwebsiteapi-stage.azurewebsites.us/api/",production:"https://apptapi.txdpsscheduler.com/api/"};function I(){var e=y()(window.location),t=B.production;if(e.hostname){var i=e.hostname.toLowerCase();t=i.indexOf("localhost")>-1?B.local:i.indexOf("dev")>-1?B.dev:i.indexOf("qa")>-1?B.qa:i.indexOf("preview")>-1||i.indexOf("uat")>-1?B.preview:i.indexOf("stage")>-1?B.stage:B.production}return t}function R(e,t,i){return O.apply(this,arguments)}function O(){return O=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E()({method:a,url:t,data:i});case 3:return n=e.sent,e.abrupt("return",n);case 7:if(e.prev=7,e.t0=e["catch"](0),!e.t0.response||401!==e.t0.response.status){e.next=13;break}throw"UNAUTHORIZED_REQUEST";case 13:F(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,7]])}))),O.apply(this,arguments)}function M(e,t,i){return V.apply(this,arguments)}function V(){return V=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,E()({method:a,url:t,data:i});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function F(e){console.log(e)}var q=I(),j={post:"post",get:"get",put:"put"},H={GetTestTypes:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=R(q+"TestType",null,j.get),e.abrupt("return",t.data);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),RecaptchaValidate:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"ReCaptchaEnterprise",{Action:t,Token:i},j.post);case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i){return e.apply(this,arguments)}return t}(),ClearIsMFAEnabled:function(){E.a.defaults.headers["IsMFAEnabled"]="N"},SetIsMFAEnabled:function(e){E.a.defaults.headers["IsMFAEnabled"]=e},Authenticate:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s,o,r,l,c,u,d,m,p){var h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,M(q+"v1/account/auth",{RecaptchaToken:{Action:i,Token:a},UserName:t,Email:c,CellPhone:u,UserDetails:{FirstName:n,LastName:s,DateOfBirth:o,CardNumber:r,LastFourDigitsSsn:l},IsEmail:d,IsMobile:m,SelectedLanguage:p},j.post);case 3:return h=e.sent,e.abrupt("return",{success:!0,errorCode:h.data.errorCode,data:h.data.data,status:h.status});case 7:if(e.prev=7,e.t0=e["catch"](0),!e.t0.response){e.next=13;break}return e.abrupt("return",{success:!1,errorCode:e.t0.response.data.errorCode,data:e.t0.response.data.data,status:e.t0.response.status});case 13:return e.abrupt("return",{success:!1,errorCode:"UNKNOWN_ERROR",data:null,status:0});case 14:case"end":return e.stop()}}),e,null,[[0,7]])})));function t(t,i,a,n,s,o,r,l,c,u,d,m,p){return e.apply(this,arguments)}return t}(),VerifyOTP:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,M(q+"v1/account/verify-otp",{Otp:t},j.post);case 3:return i=e.sent,e.abrupt("return",{success:!0,errorCode:i.data.errorCode,data:i.data.data,status:i.status});case 7:if(e.prev=7,e.t0=e["catch"](0),!e.t0.response){e.next=13;break}return e.abrupt("return",{success:!1,errorCode:e.t0.response.data.errorCode,data:e.t0.response.data.data,status:e.t0.response.status});case 13:return e.abrupt("return",{success:!1,errorCode:"UNKNOWN_ERROR",data:null,status:0});case 14:case"end":return e.stop()}}),e,null,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}(),GetEligibleCards:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"Eligibility",{FirstName:t,LastName:i,DateOfBirth:a,LastFourDigitsSsn:n,CardNumber:s},j.post);case 2:return o=e.sent,e.abrupt("return",o.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),GetBookingHistory:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"Booking",{FirstName:t,LastName:i,DateOfBirth:a,LastFourDigitsSsn:n},j.post);case 2:return s=e.sent,e.abrupt("return",s.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n){return e.apply(this,arguments)}return t}(),GetAllTestTypes:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"TestType",null,j.get);case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),GetHomeBoundVisitCategories:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"HomeBoundVisitCategory",null,j.get);case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),ScheduleHomeBoundVisit:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"HomeBoundVisit",{FirstName:t.FirstName,LastName:t.LastName,DateOfBirth:t.DateOfBirth,Email:t.Email,DLNumber:t.DLNumber,CellPhone:t.CellPhone,HomePhone:t.HomePhone,CategoryId:t.CategoryId,Comment:t.Comment},j.post);case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),GetAvailableLocations:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"AvailableLocation",{TypeId:t,ZipCode:i,CityName:a,PreferredDay:n},j.post);case 2:return s=e.sent,e.abrupt("return",s.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n){return e.apply(this,arguments)}return t}(),GetLocationAvailability:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"AvailableLocationDates",{LocationId:t,TypeId:i,SameDay:a,StartDate:n,PreferredDay:s},j.post);case 2:return o=e.sent,e.abrupt("return",o.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),GetCities:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"Cities",null,"get");case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),SaveBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"NewBooking",t,j.post);case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),RescheduleBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"RescheduleBooking",t,j.post);case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),HoldBookingSlot:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"HoldSlot",{SlotId:t,FirstName:i,LastName:a,DateOfBirth:n,Last4Ssn:s},j.post);case 2:return o=e.sent,e.abrupt("return",o.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),ReleaseBookingSlot:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"ReleaseSlot",{SlotId:t,FirstName:i,LastName:a,DateOfBirth:n,Last4Ssn:s},j.post);case 2:return o=e.sent,e.abrupt("return",o.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),CancelBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"CancelBooking",{ConfirmationNumber:t,FirstName:i,LastName:a,DateOfBirth:n,LastFourDigitsSsn:s},j.post);case 2:return o=e.sent,e.abrupt("return",o.data);case 4:case"end":return e.stop()}}),e)})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),GetLocation:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"Location/"+t,null,j.get);case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),GetSiteData:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"SiteData",null,j.get);case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),GetBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"Booking/"+t,null,j.get);case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),CheckInAppointment:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,R(q+"Checkin",t,j.post);case 2:return i=e.sent,e.abrupt("return",i.data);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},K={injectModels:["UserInfo","StateManager","BookingHistory","Eligibility","NewBooking","ServiceTypes","CheckIn"],data:function(){return{ExistingBookings:[],EligibleCards:[],SelectedCard:"",SelectedBooking:"",Busy:!1,SelectedLanguage:"EN",KioskParameters:"",PubliceWebSiteComponent:"",Settings:"",IsCheckInProcess:!1,IsRecaptchaVisible:!1,authData:null}},computed:{IsLoggedIn:function(){return this.UserInfo&&this.UserInfo.LoggedIn},States:function(){return this.StateManager.States},Text:function(){var e="EN";return this.SelectedLanguage&&(e=this.SelectedLanguage),L[e]},Version:function(){return N.VersionNumber},isSameDayAppointment:function(){return!0===this.KioskParameters.isKiosk&&!0===this.KioskParameters.sameDayAppointment},isStandByAppointment:function(){return!0===this.KioskParameters.isKiosk&&!0===this.KioskParameters.standByAppointment},ButtonStyle:function(){return!0!==this.KioskParameters.isKiosk?"button-normal":"button-kiosk"}},created:function(){this.PubliceWebSiteComponent=this.$parent},methods:{ClearAuth:function(){E.a.defaults.headers.common&&(E.a.defaults.headers.common["Authorization"]="")},SetKioskToken:function(e){E.a.defaults.headers.common&&(E.a.defaults.headers.common["Authorization"]=e)},RecaptchaValidate:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Busy=!0,e.next=3,H.RecaptchaValidate(t,i);case 3:return a=e.sent,this.Busy=!1,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),Authenticate:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s,o,r,l,c,u,d,m){var p,h,b,v,S,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return p="".concat(t,"_").concat(i,"_").concat(a),h=!1,b="",e.prev=3,e.t0=Promise,e.next=7,H.Authenticate(p,n,s,t,i,r,o,a,l,c,u,d,m);case 7:return e.t1=e.sent,e.t2=[e.t1],e.next=11,e.t0.all.call(e.t0,e.t2);case 11:v=e.sent,S=Object(D["a"])(v,1),f=S[0],b=f.errorCode,this.authData=f.data,f.success&&this.authData.token&&(E.a.defaults.headers.common["Authorization"]=this.authData.token,h=!0),e.next=23;break;case 19:e.prev=19,e.t3=e["catch"](3),this.Busy=!1,console.log(e.t3);case 23:return e.prev=23,this.Busy=!1,e.finish(23);case 26:return e.abrupt("return",{isAuthenticated:h,errorCode:b,data:this.authData});case 27:case"end":return e.stop()}}),e,this,[[3,19,23,26]])})));function t(t,i,a,n,s,o,r,l,c,u,d,m){return e.apply(this,arguments)}return t}(),Login:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){var o,r,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Busy=!0,this.UserInfo.Save(t,i,n,a,s),e.prev=2,e.next=5,Promise.all([this.Eligibility.GetEligibleCards(t,i,a,n,s),this.BookingHistory.GetBookingHistory(t,i,a,n)]);case 5:return o=e.sent,r=Object(D["a"])(o,2),l=r[0],c=r[1],this.Eligibility.SaveEligibleCards(l),this.BookingHistory.SaveBookings(c),u=this.States.SelectOption,!0===this.isSameDayAppointment||!0===this.isStandByAppointment?(u=this.States.SelectService,l.length>1&&(u=this.States.EligibleResults)):this.Eligibility.Cards&&(this.Eligibility.Cards.length>1||1===this.Eligibility.Cards.length&&!this.Eligibility.Cards[0].CardEligible&&!0===this.Eligibility.Cards[0].CardFound)&&(u=this.States.EligibleResults),e.next=15,this.LoadSiteData();case 15:this.StateManager.MoveNext(u),e.next=23;break;case 18:e.prev=18,e.t0=e["catch"](2),console.log(e.t0),this.Busy=!1,this.ShowError(e.t0);case 23:this.Busy=!1;case 24:case"end":return e.stop()}}),e,this,[[2,18]])})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),PublicSiteLogin:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s,o,r){var l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Busy=!0,this.UserInfo.Save(t,i,n,a,s,o,r),e.prev=2,l=JSON.parse(this.authData.eligibleCards),c=JSON.parse(this.authData.existingBookings),this.Eligibility.SaveEligibleCards(l),this.BookingHistory.SaveBookings(c),u=this.States.SelectOption,!0===this.isSameDayAppointment||!0===this.isStandByAppointment?(u=this.States.SelectService,l.length>1&&(u=this.States.EligibleResults)):this.Eligibility.Cards&&(this.Eligibility.Cards.length>1||1===this.Eligibility.Cards.length&&!this.Eligibility.Cards[0].CardEligible&&!0===this.Eligibility.Cards[0].CardFound)&&(u=this.States.EligibleResults),e.next=11,this.LoadSiteData();case 11:this.StateManager.MoveNext(u),e.next=18;break;case 14:e.prev=14,e.t0=e["catch"](2),console.log(e.t0),this.ShowError(e.t0);case 18:return e.prev=18,this.Busy=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[2,14,18,21]])})));function t(t,i,a,n,s,o,r){return e.apply(this,arguments)}return t}(),VerifyOTP:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Busy=!0,e.prev=1,e.next=4,H.VerifyOTP(t);case 4:return i=e.sent,e.abrupt("return",i);case 8:e.prev=8,e.t0=e["catch"](1),this.ShowError(e.t0);case 11:return e.prev=11,this.Busy=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,this,[[1,8,11,14]])})));function t(t){return e.apply(this,arguments)}return t}(),SelectLanguage:function(e){this.SelectedLanguage=e,this.StateManager.CurrentState==this.States.LanguageSelection&&this.StateManager.MoveNext(this.States.Login)},Logout:function(){this.SelectLanguage("EN"),this.NewBooking.ReleaseSlotForBooking();var e=this.States.LanguageSelection;!0===this.KioskParameters.isKiosk?this.BookingCompleteForKiosk():(this.ClearSession(),this.ClearAuth(),this.StateManager.SetInitialState(e))},SelectCard:function(e){this.Eligibility.SelectCard(e);var t=this.States.SelectOption;!0!==this.isSameDayAppointment&&!0!==this.isStandByAppointment||(t=this.States.SelectService),this.StateManager.MoveNext(t)},SelectService:function(e){this.NewBooking.SelectService(e);var t=this.States.CustomerDetails;901==e.TypeId?(t=this.States.RequiredToTakeRoadTest,this.MoveNext(t)):alert("Service Type: "+e.TypeId+" Service Description: "+e.Name)},ViewAppointment:function(){this.LoadAllServices(),this.StateManager.MoveNext(this.States.ViewAppointment)},NewAppointment:function(){this.LoadAllServices(),this.StateManager.MoveNext(this.States.SelectService)},RescheduleAppointment:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.ShowConfirmation(this.Text.RescheduleAppointment,this.Text.RescheduleAppointment_Confirmation);case 2:i=e.sent,i&&(a=this.CreateAppointmentDetailsFromBooking(t),this.NewBooking.RescheduleAppointment(a));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),MoveNext:function(e){this.StateManager.MoveNext(e)},MovePrevious:function(){this.StateManager.MovePrevious()},SetKioskParameters:function(e,t,i,a){this.KioskParameters={isKiosk:e,locationId:t,sameDayAppointment:i,standByAppointment:a,noSameDaySlotsAvailable:!1,onlineEligible:!1,onlineUrl:""}},LoadAllServices:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.ServiceTypes.ServiceTypes&&0!==this.ServiceTypes.ServiceTypes.length){e.next=7;break}return this.Busy=!0,e.next=4,H.GetAllTestTypes();case 4:t=e.sent,this.ServiceTypes.SaveServiceTypes(t),this.Busy=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),LoadSiteData:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,H.GetSiteData();case 2:t=e.sent,this.ServiceTypes.SaveServiceTypes(t.ServiceTypes),this.Settings=t.SiteConfigSettings,this.NewBooking.SaveCities(t.Cities);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),RewindToSelectOptions:function(){this.StateManager.Rewind(this.States.SelectOption)},FormatPhoneNumber:function(e){var t=e,i=e.length>0?e[e.length-1]:"";if(i.match(/^([0-9])/)){var a=e.replace(/\D/g,"").match(/(\d{0,3})(\d{0,3})(\d{0,4})/);t=a[2]?"("+a[1]+") "+a[2]+(a[3]?"-"+a[3]:""):a[1]}return t},ValidEmail:function(e){var t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)},ValidPhoneNumber:function(e){var t=/^\(?\b[2-9][0-9]{2}\)?[-. ]?[2-9][0-9]{2}[-. ]?[0-9]{4}\b$/;return t.test(e)},CreateAppointmentDetailsFromBooking:function(e){var t=this.ServiceTypes.GetServiceTypeBySubTypeId(e.ServiceTypeId);return{firstName:e.FirstName,lastName:e.LastName,email:e.Email,homePhone:e.HomePhone,cellPhone:e.CellPhone,dateOfBirth:e.DateOfBirth,spanishLanguage:e.SpanishLanguage,selectedService:t,confirmationNumber:e.ConfirmationNumber,bookingId:e.BookingId}},ShowAlert:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.PubliceWebSiteComponent.$refs.alert.open(t,i));case 1:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),ShowConfirmation:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.PubliceWebSiteComponent.$refs.confirm.open(t,i));case 1:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),ShowError:function(e,t){var i=this;this.Busy=!1;var a=e;"UNAUTHORIZED_REQUEST"===e&&(a="Session has expired, please attempt to log-in again.",t=!0),this.ShowAlert("Error",a).then((function(){t&&i.Logout()}))},ClearSession:function(){this.UserInfo.Clear(),this.BookingHistory.Clear(),this.Eligibility.Clear(),this.NewBooking.Clear()},PrintReceiptAndExitToKiosk:function(e){var t=this.GetKioskBookingResultFromBooking(e);this.ClearSession(),this.StateManager.SetInitialState(this.States.Login),this.KioskResetKioskParameters(),this.PubliceWebSiteComponent.$emit("kioskPublicBookingComplete",t)},SetOnlineEligibleForKiosk:function(e){this.KioskParameters.onlineEligible=!0,this.KioskParameters.onlineUrl=e},BookingCompleteForKiosk:function(){var e=this.GetKioskBookingResult();this.ClearSession(),this.StateManager.SetInitialState(this.States.Login),this.KioskResetKioskParameters(),this.PubliceWebSiteComponent.$emit("kioskPublicBookingComplete",e)},GetKioskBookingResult:function(){var e=this.NewBooking.AppointmentDetails,t={BookingCreated:!(!e.ConfirmationNumber||""===e.ConfirmationNumber),SelectedService:this.NewBooking.SelectedService,Booking:"",NoSameDaySlotsAvailable:!1,OnlineEligible:this.KioskParameters.onlineEligible,OnlineUrl:this.KioskParameters.onlineUrl};return t.NoSameDaySlotsAvailable=this.KioskParameters.noSameDaySlotsAvailable||!1,!1===this.isStandByAppointment?t.Booking={BookingId:e.BookingId,FirstName:e.FirstName,LastName:e.LastName,ConfirmationNumber:e.ConfirmationNumber,LocationName:e.SelectedLocation.Name,ServiceName:e.SelectedService.Name,AppointmentDateTime:e.SelectedTimeSlot.StartDateTime,HomePhone:e.HomePhone,CellPhone:e.CellPhone,Email:e.Email,CheckInStatus:e.SelectedTimeSlot?this.GetSameDayCheckInStatus(e.SelectedTimeSlot.StartDateTime):"",IsAdaRequired:e.AdaRequired||!1}:t.Booking={FirstName:this.UserInfo.FirstName,LastName:this.UserInfo.LastName},t},GetSameDayCheckInStatus:function(e){var t="";if(this.isSameDayAppointment){var i=new Date(e),a=new Date(i-6e4*this.Settings.EarlyMinutes);t=a=1&&this.SelectBooking(this.Bookings[0])},SelectBooking:function(e){this.SelectedBooking=e},HasExistingBooking:function(e){var t=!1;if(e)for(var i=0;i=1;return t},AppointmentCancelledRemoveSelectedBooking:function(){var e=[],t=this.SelectedBooking;this.SelectedBooking="",this.Bookings.forEach((function(i){i.ConfirmationNumber!==t.ConfirmationNumber&&e.push(i)})),e.length>0&&(this.SelectedBooking=e[0]),this.Bookings=e},CancelAppointment:function(){this.PublicWebSite.MoveNext(this.PublicWebSite.States.CancelAppointment)},ConfirmCancelation:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.PublicWebSite.ShowConfirmation(this.PublicWebSite.Text.CancelAppointment,this.PublicWebSite.Text.CancelAppointmentConfirmationMessage);case 2:if(t=e.sent,!t){e.next=19;break}return this.PublicWebSite.Busy=!0,e.prev=5,e.next=8,H.CancelBooking(this.SelectedBooking.ConfirmationNumber,this.SelectedBooking.FirstName,this.SelectedBooking.LastName,this.PublicWebSite.UserInfo.DateOfBirth,this.PublicWebSite.UserInfo.Last4Ssn);case 8:i=e.sent,this.SelectedBooking=i,this.PublicWebSite.MoveNext(this.PublicWebSite.States.ConfirmCancelAppointment),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](5),this.PublicWebSite.ShowError(e.t0);case 16:return e.prev=16,this.PublicWebSite.Busy=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[5,13,16,19]])})));function t(){return e.apply(this,arguments)}return t}(),Clear:function(){this.Bookings=[],this.SelectedBooking=""}}},$={injectModels:["PublicWebSite"],data:function(){return{Cards:[],SelectedCard:""}},computed:{NotEligibleLink:function(){return"https://txapps.texas.gov/txapp/txdps/dleligibility/login.do"},RequiredDocumentsLink:function(){return"https://www.dps.texas.gov/internetforms/Forms/DL-15.pdf"}},methods:{GetEligibleCards:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",H.GetEligibleCards(t,i,a,n,s));case 1:case"end":return e.stop()}}),e)})));function t(t,i,a,n,s){return e.apply(this,arguments)}return t}(),SaveEligibleCards:function(e){if(this.Cards=e,!this.Cards)throw this.PublicWebSite.Text.UnableToRetrieveEligibilityError;1===this.Cards.length&&this.SelectCard(this.Cards[0])},SelectCard:function(e){this.SelectedCard=e},Clear:function(){this.Cards=[],this.SelectedCard=""},IsEligibleForServiceType:function(e){var t=null;if(this.Cards&&this.Cards.length>0)for(var i=0;i0)for(var n=0;n0){var a=0,n=1;t.forEach((function(t){a++,n==e.CurrentDatePage&&a<=5&&i.push(t),a>=5&&(a=0,n++)}))}return i},atEndOfList:function(){return this.LocationAvailability.length/(5*this.CurrentDatePage)<=1},atHeadOfList:function(){return 1===this.CurrentDatePage}},methods:{GetAllServices:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.AllServices&&0!==this.AllServices.length){e.next=5;break}return e.next=3,H.GetAllTestTypes();case 3:t=e.sent,this.SaveServiceTypes(t);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),SaveAppointmentDetails:function(e){this.AppointmentDetails.City=this.GetCity(e.city),this.AppointmentDetails.Day=e.day,this.AppointmentDetails.Email=e.email,this.AppointmentDetails.Sms=e.sms,this.AppointmentDetails.Zip=e.zip,this.AppointmentDetails.SpanishLanguage="Y"==e.spanishLanguage||"N"!=e.spanishLanguage&&e.spanishLanguage,this.AppointmentDetails.FirstName=e.firstName,this.AppointmentDetails.LastName=e.lastName,this.AppointmentDetails.DateOfBirth=e.dob,this.AppointmentDetails.DLNumber=e.dlNumber,this.AppointmentDetails.HomePhone=e.homePhone,this.AppointmentDetails.CellPhone=e.cellPhone,this.AppointmentDetails.ServiceTypeDescription=e.selectedService?e.selectedService.Name:"",this.AppointmentDetails.ServiceTypeId=e.selectedService?e.selectedService.TypeId:0,this.AppointmentDetails.SelectedService=e.selectedService,this.AppointmentDetails.Last4Ssn=this.PublicWebSite.UserInfo.Last4Ssn,this.AppointmentDetails.AdaRequired=e.adaRequired,this.AppointmentDetails.CardNumber=this.PublicWebSite.UserInfo.CardNumber},GetAvailableLocations:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PublicWebSite.Busy=!0,s=null,e.prev=2,e.next=5,H.GetAvailableLocations(t,i,a,n);case 5:s=e.sent,e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](2),this.PublicWebSite.Busy=!1,this.PublicWebSite.ShowError(e.t0);case 12:return e.prev=12,this.PublicWebSite.Busy=!1,e.finish(12);case 15:return e.abrupt("return",s);case 16:case"end":return e.stop()}}),e,this,[[2,8,12,15]])})));function t(t,i,a,n){return e.apply(this,arguments)}return t}(),GetLocationAvailability:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PublicWebSite.Busy=!0,e.prev=1,e.next=4,H.GetLocationAvailability(t,i,!1,a,n);case 4:s=e.sent,this.UpdateLocationAvailability(s),e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](1),this.PublicWebSite.Busy=!1,this.PublicWebSite.ShowError(e.t0);case 12:return e.prev=12,this.PublicWebSite.Busy=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[1,8,12,15]])})));function t(t,i,a,n){return e.apply(this,arguments)}return t}(),GetMoreAvailableDates:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.GetLocationAvailability(this.SelectedLocation.Id,this.SelectedService.TypeId,this.NextAvailableGroupDate,this.AppointmentDetails.Day);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),GetAvailability:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t,i,a,n,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PublicWebSite.Busy=!0,t=this.SelectedService.TypeId,i=null,a=this.AppointmentDetails.Zip?this.AppointmentDetails.Zip:this.AppointmentDetails.City.Zip,n=this.AppointmentDetails.City?this.AppointmentDetails.City.Name:"",s=this.AppointmentDetails.Day,e.next=8,this.GetAvailableLocations(t,a,n,s);case 8:return o=e.sent,o&&(i=o.length),i>0&&(this.SaveAvailableLocations(o),this.UpdateLocationAvailability(this.SelectedLocation.Availability)),this.PublicWebSite.Busy=!1,e.abrupt("return",i);case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),RefreshLocationAvailability:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.SelectedLocationDate.AvailabilityDate,this.ClearSelectedLocationDate(),e.next=4,this.GetLocationAvailability(this.SelectedLocation.Id,this.SelectedService.TypeId,null,this.AppointmentDetails.Day);case 4:i=null,null!==this.LocationAvailability&&this.LocationAvailability.length>0&&(i=this.LocationAvailability.find((function(e){return e.AvailabilityDate===t}))),this.SaveSelectedLocationDate(i);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),PerformSameDayBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i,a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PublicWebSite.Busy=!0,e.prev=1,e.next=4,Promise.all([H.GetLocation(t),H.GetLocationAvailability(t,this.AppointmentDetails.SelectedService.TypeId,!0)]);case 4:if(i=e.sent,a=Object(D["a"])(i,2),n=a[0],s=a[1],this.SaveSelectedLocation(n),this.PublicWebSite.Busy=!1,!(s&&s.LocationAvailabilityDates.length>0)){e.next=16;break}this.UpdateLocationAvailability(s),this.SaveSelectedLocationDate(s.LocationAvailabilityDates[0]),this.StateManager.MoveNext(this.StateManager.States.SelectTime),e.next=20;break;case 16:return e.next=18,this.PublicWebSite.ShowAlert("",this.PublicWebSite.Text.NoSameDaySlotsAvailable);case 18:this.PublicWebSite.KioskParameters.noSameDaySlotsAvailable=!0,this.PublicWebSite.BookingCompleteForKiosk();case 20:e.next=27;break;case 22:e.prev=22,e.t0=e["catch"](1),console.log(e.t0),this.PublicWebSite.Busy=!1,this.PublicWebSite.ShowError(e.t0);case 27:case"end":return e.stop()}}),e,this,[[1,22]])})));function t(t){return e.apply(this,arguments)}return t}(),SelectNewLocation:function(e){this.SaveSelectedLocation(e),this.GetLocationAvailability(this.SelectedLocation.Id,this.SelectedService.TypeId,null,this.AppointmentDetails.Day)},SelectLocationAndDate:function(){this.StateManager.MoveNext(this.StateManager.States.SelectTime)},SaveSelectedLocation:function(e){this.ClearSelectedLocationDate(),this.SelectedLocation=e,this.AppointmentDetails.SelectedLocation=e},ClearSelectedLocation:function(){this.SelectedLocation="",this.AppointmentDetails.SelectedLocation=""},SaveSelectedLocationDate:function(e){this.ClearSelectedTimeSlot(),this.SelectedLocationDate=e},ClearSelectedLocationDate:function(){this.ClearSelectedTimeSlot(),this.CurrentDatePage=1,this.LocationAvailability=[],this.SelectedLocationDate=""},SaveSelectedTimeSlot:function(e){this.SelectedTimeSlot=e,this.AppointmentDetails.SelectedTimeSlot=e},ClearSelectedTimeSlot:function(){this.SelectedTimeSlot="",this.AppointmentDetails.SelectedTimeSlot=""},SaveBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t,i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t={CardNumber:this.AppointmentDetails.CardNumber,FirstName:this.AppointmentDetails.FirstName,LastName:this.AppointmentDetails.LastName,DateOfBirth:this.AppointmentDetails.DateOfBirth,Last4Ssn:this.AppointmentDetails.Last4Ssn,Email:this.AppointmentDetails.Email,CellPhone:this.AppointmentDetails.CellPhone,HomePhone:this.AppointmentDetails.HomePhone,ServiceTypeId:this.AppointmentDetails.SelectedService.TypeId,BookingDateTime:this.SelectedTimeSlot.StartDateTime,BookingDuration:this.SelectedTimeSlot.Duration,SlotId:this.SelectedTimeSlot.SlotId,SpanishLanguage:!0===this.AppointmentDetails.SpanishLanguage?"Y":"N",SiteId:this.SelectedLocation.Id,SendSms:void 0!=this.AppointmentDetails.Sms&&null!=this.AppointmentDetails.Sms&&""!=this.AppointmentDetails.Sms&&this.AppointmentDetails.Sms,AdaRequired:this.AppointmentDetails.AdaRequired,ResponseId:this.Eligibility.SelectedCard.ResponseId},this.PublicWebSite.Busy=!0,i=null,a=!0,e.prev=4,!1!==this.IsAppoinmentReschedule){e.next=11;break}return e.next=8,H.SaveBooking(t);case 8:i=e.sent,e.next=14;break;case 11:return e.next=13,H.RescheduleBooking(t);case 13:i=e.sent;case 14:this.PublicWebSite.Busy=!1,i.ErrorMessage&&""!==i.ErrorMessage?(n="MAX_ACTIVE_BOOKINGS"===i.ErrorMessage?this.PublicWebSite.Text.BookingLimitExceeded:i.ErrorMessage,this.PublicWebSite.ShowAlert("",n),a=!1):this.UpdateAppointmentDetailsFromBooking(i.Booking),e.next=22;break;case 18:e.prev=18,e.t0=e["catch"](4),a=!1,this.PublicWebSite.ShowError(e.t0);case 22:return e.abrupt("return",a);case 23:case"end":return e.stop()}}),e,this,[[4,18]])})));function t(){return e.apply(this,arguments)}return t}(),HoldSlotForBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PublicWebSite.Busy=!0,e.prev=1,e.next=4,H.HoldBookingSlot(this.SelectedTimeSlot.SlotId,this.AppointmentDetails.FirstName,this.AppointmentDetails.LastName,this.AppointmentDetails.DateOfBirth,this.AppointmentDetails.Last4Ssn);case 4:return t=e.sent,this.PublicWebSite.Busy=!1,e.abrupt("return",t);case 9:e.prev=9,e.t0=e["catch"](1),console.log(e.t0),this.PublicWebSite.ShowError(e.t0);case 13:return e.prev=13,this.PublicWebSite.Busy=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,9,13,16]])})));function t(){return e.apply(this,arguments)}return t}(),ReleaseSlotForBooking:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.SelectedTimeSlot&&this.SelectedTimeSlot.SlotId>0&&H.ReleaseBookingSlot(this.SelectedTimeSlot.SlotId,this.AppointmentDetails.FirstName,this.AppointmentDetails.LastName,this.AppointmentDetails.DateOfBirth,this.AppointmentDetails.Last4Ssn);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),SelectService:function(e){var t=this.SaveServiceDetermineNextState(e);this.PublicWebSite.KioskParameters.isKiosk?this.KioskSelectServiceProcessNextState(e):this.StateManager.MoveNext(t)},SelectTimeSlotMoveToConfirmation:function(){this.StateManager.MoveNext(this.StateManager.States.ConfirmAppointment)},SelectRoadSkillsService:function(e){e.TypeId=e.SubTypeId,this.SaveSelectedService(e),this.PublicWebSite.isStandByAppointment?this.PublicWebSite.BookingCompleteForKiosk():this.CustomerDetailsScreen()},CustomerDetailsScreen:function(){this.StateManager.MoveNext(this.StateManager.States.CustomerDetails)},OnlineServiceUrl:function(){var e="";return this.SelectedService&&""!=this.SelectedService&&(e=G[this.SelectedService.TypeId]),e},ViewCustomerDetails:function(){this.StateManager.MoveNext(this.StateManager.States.CustomerDetails)},ScheduleRoadTest:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.StateManager.MoveNext(this.StateManager.States.RequiredToTakeRoadTest);case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),ConfirmAppointment:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.SaveBooking();case 2:if(!e.sent){e.next=4;break}this.StateManager.MoveNext(this.StateManager.States.AppointmentConfirmation);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),RescheduleAppointment:function(e){this.SaveAppointmentDetails(e),this.IsAppoinmentReschedule=!0,this.SelectService(e.selectedService)},CheckForExistingBookingOfSameType:function(){this.BookingHistory.HasExistingBooking(this.SelectedService.TypeId)&&(this.IsAppoinmentReschedule=!0)},ServiceNotListed:function(){this.PublicWebSite.isStandByAppointment?this.PublicWebSite.BookingCompleteForKiosk():this.CustomerDetailsScreen()},IsStandByRoadTest:function(e){var t=!1;if(this.PublicWebSite.KioskParameters.standByAppointment){var i=this.PublicWebSite.ServiceTypes.RoadTestServices,a=i.find((function(t){return t.SubTypeId===e}));(a||901===e)&&(t=!0)}return t},ScheduleHomeBoundVisit:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t,i,a,n,s,o,r,l){var c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.PublicWebSite.Busy=!0,c={FirstName:t,LastName:i,DateOfBirth:a,DLNumber:n,Email:s,HomePhone:o,CellPhone:r,Comment:l},e.prev=2,e.next=5,H.ScheduleHomeBoundVisit(c);case 5:this.HomeBoundVisitResult=e.sent,this.StateManager.MoveNext(this.StateManager.States.HomeBoundVisitSubmission),e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](2),console.log(e.t0),this.PublicWebSite.ShowError(e.t0);case 13:return e.prev=13,this.PublicWebSite.Busy=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[2,9,13,16]])})));function t(t,i,a,n,s,o,r,l){return e.apply(this,arguments)}return t}(),Clear:function(){this.SelectedService="",this.AvailableServices=[],this.AvailableBookingSlots=[],this.AllServices=[],this.AppointmentDetails=this.GetDefaultAppointmentDetails(),this.SelectedLocation="",this.SelectedLocationDate="",this.LocationAvailability=[],this.MoreDatesAvailable=!1,this.NextAvailableGroupDate="",this.SelectedTimeSlot="",this.HomeBoundVisitResult="",this.IsAppoinmentReschedule=!1,this.CurrentDatePage=1},ClearLocationAndBookingDates:function(){this.SelectedLocation="",this.SelectedLocationDate="",this.LocationAvailability=[],this.MoreDatesAvailable=!1,this.NextAvailableGroupDate="",this.SelectedTimeSlot="",this.CurrentDatePage=1},SaveCities:function(e){this.Cities=e},GetCity:function(e){return e?e&&e.Name?e:(e=this.Cities.find((function(t){return t.Name.toLowerCase()===e.toLowerCase()})),e||(e={Name:"",Zip:""}),e):""},UpdateDatePage:function(e){this.CurrentDatePage=this.CurrentDatePage+e},MoveDateCarousel:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(1!==t||this.atEndOfList&&!this.MoreDatesAvailable){e.next=10;break}if(i=this.VisibleDates&&this.VisibleDates.length>0?this.VisibleDates[this.VisibleDates.length-1].AvailabilityDate:null,a=this.LastDateAvailable===i,this.UpdateDatePage(1),!(a||this.VisibleDates.length<5)){e.next=8;break}return this.NextAvailableGroupDate=this.NextAvailableGroupDate||i,e.next=8,this.GetMoreAvailableDates();case 8:e.next=11;break;case 10:-1!==t||this.atHeadOfList||this.UpdateDatePage(-1);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),SaveSelectedService:function(e){this.SelectedService=e},SaveServiceDetermineNextState:function(e){this.SaveSelectedService(e);var t=this.StateManager.States.CustomerDetails;return 901===e.TypeId?t=this.StateManager.States.RequiredToTakeRoadTest:91===e.TypeId?t=this.StateManager.States.HomeBoundVisit:710===e.TypeId?t=this.StateManager.States.ServiceNotListed:e.OnlineCapable&&(t=this.StateManager.States.CompleteTransactionOnline),t},GetDefaultAppointmentDetails:function(){return{BookingId:"",FirstName:"",LastName:"",DateOfBirth:"",ConfirmationNumber:"",DLNumber:"",CardNumber:"",HomePhone:"",CellPhone:"",ServiceTypeDescription:"",ServiceTypeId:"",Day:"",Zip:"",City:"",Email:"",Sms:!1,SpanishLanguage:!1,SelectedTimeSlot:"",SelectedLocation:"",SelectedService:"",Last4Ssn:"",Reschedule:!1,AdaRequired:!1}},SaveAvailableLocations:function(e){this.AvailableLocations=e,this.SaveSelectedLocation(e[0])},SaveLocationAvailability:function(e){this.LocationAvailability=e},UpdateAppointmentDetailsFromBooking:function(e){this.AppointmentDetails.BookingId=e.BookingId,this.AppointmentDetails.ConfirmationNumber=e.ConfirmationNumber,this.AppointmentDetails.FirstName=e.FirstName,this.AppointmentDetails.LastName=e.LastName,this.AppointmentDetails.Last4Ssn=e.Last4Ssn,this.AppointmentDetails.DateOfBirth=e.DateOfBirth,this.AppointmentDetails.Email=e.Email,this.AppointmentDetails.HomePhone=e.HomePhone,this.AppointmentDetails.CellPhone=e.CellPhone,this.AppointmentDetails.SpanishLanguge="Y"===e.SpanishLanguge,this.AppointmentDetails.Sms=e.SendSms},SelectServiceForSameDayAppointment:function(e){var t=e?8:7,i=e?"Short Appointment":"Long Appointment",a={TypeId:t,Name:i};this.AppointmentDetails.SelectedService=a,this.SelectedService=a},UpdateLocationAvailability:function(e){var t=this;this.MoreDatesAvailable=e.MoreDatesAvailable,this.NextAvailableGroupDate=e.NextAvailableGroupDate,e.LocationAvailabilityDates.forEach((function(e){var i=t.LocationAvailability.find((function(t){return t.AvailabilityDate===e.AvailabilityDate}));i||t.LocationAvailability.push(e)}))},KioskSelectServiceProcessNextState:function(e){var t=this.SaveServiceDetermineNextState(e);!this.PublicWebSite.isStandByAppointment||t!==this.StateManager.States.CustomerDetails&&t!==this.StateManager.States.ServiceNotListed?t==this.StateManager.States.HomeBoundVisit?this.PublicWebSite.ShowAlert("",this.PublicWebSite.Text.KioskUnableToScheduleHomeBoundVisits):this.StateManager.MoveNext(t):this.PublicWebSite.BookingCompleteForKiosk()}},created:function(){this.AppointmentDetails=this.GetDefaultAppointmentDetails()}}),G={81:"https://txapps.texas.gov/tolapp/txdl/?utm_source=texasgov&utm_medium=drivers_DLR&utm_campaign=drivers_2019",82:"https://txapps.texas.gov/tolapp/txdl/?utm_source=texasgov&utm_medium=drivers_COA&utm_campaign=drivers_2019",86:"https://txapps.texas.gov/tolapp/txdl/?utm_source=texasgov&utm_medium=drivers_COA&utm_campaign=drivers_2019"},Y=(i("e25e"),{data:function(){return{ServiceTypes:[]}},computed:{ServiceCategories:function(){return Z},RoadTestServices:function(){var e=this,t=[];return this.ServiceTypes&&this.ServiceTypes.length>0&&this.ServiceTypes.forEach((function(i){i&&i.CategoryId===e.ServiceCategories.RoadSkills.Id&&t.push(i)})),t}},methods:{GetServiceDuration:function(e){var t=0;return this.ServiceTypes&&this.ServiceTypes.length>0&&this.ServiceTypes.forEach((function(i){i.TypeId==e&&(t=i.Duration)})),t},GetServiceTypeBySubTypeId:function(e){for(var t=null,i=0;iDate.now()?i=this.CheckInWindow.Early:s-1?"Local":e.indexOf("dev")>-1?"Dev":e.indexOf("qa")>-1?"QA":e.indexOf("uat")>-1?"UAT":e.indexOf("preview")>-1?"Preview":null}},methods:{Logout:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.PublicWebSite.ShowConfirmation(this.PublicWebSite.Text.LogoutConfirmation,this.PublicWebSite.Text.LogoutConfirmationMessage);case 2:t=e.sent,t&&(this.$emit("Logout"),this.PublicWebSite.Logout());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),SelectLanguage:function(e){this.PublicWebSite.SelectLanguage(e)},NavigateHome:function(){!0===this.PublicWebSite.IsCheckInProcess&&window.location.replace(window.location.origin)},DetectScroll:function(){var e=this,t=0,i=50;window.addEventListener("scroll",(function(){var a=window.pageYOffset||document.documentElement.scrollTop;a>t?e.hideHeader=!0:at+i&&(t=a<=0?0:a)}),!1)}}},te=ee,ie=(i("b5b7"),i("40dc")),ae=i("5bc1"),ne=i("0e8f"),se=i("a722"),oe=i("8860"),re=i("da13"),le=i("e449"),ce=i("2a7f"),ue=Object(p["a"])(te,J,X,!1,null,"604384f3",null),de=ue.exports;b()(ue,{VAppBar:ie["a"],VAppBarNavIcon:ae["a"],VBtn:v["a"],VCard:S["a"],VFlex:ne["a"],VLayout:se["a"],VList:oe["a"],VListItem:re["a"],VMenu:le["a"],VSpacer:x["a"],VToolbarTitle:ce["a"]});var me=i("9062"),pe=i.n(me),he=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-dialog",{attrs:{persistent:"",width:"80%"},model:{value:this.language,callback:function(t){e.$set(this,"language",t)},expression:"this.language"}},[i("v-card",{staticStyle:{"text-align":"center"}},[i("v-card-title",[i("span",{staticClass:"headline hidden-sm-and-down",staticStyle:{width:"100%"}},[e._v(" "+e._s(e.PublicWebSite.Text.InitialLanguagePrompt_English)+" "),i("br"),i("br"),e._v(" "+e._s(e.PublicWebSite.Text.InitialLanguagePrompt_Spanish)+" ")]),i("span",{staticClass:"headline-sm hidden-md-and-up",staticStyle:{width:"100%"}},[e._v(" "+e._s(e.PublicWebSite.Text.InitialLanguagePrompt_English)+" "),i("br"),i("br"),e._v(" "+e._s(e.PublicWebSite.Text.InitialLanguagePrompt_Spanish)+" ")])]),i("v-container",[i("v-btn",{staticClass:"button white--text",attrs:{"x-large":!0,color:"public-blue"},on:{click:function(t){return e.SetLanguage("EN")}}},[e._v("English")]),i("v-btn",{staticClass:"button white--text",attrs:{"x-large":!0,color:"public-blue"},on:{click:function(t){return e.SetLanguage("ES")}}},[e._v("Español")])],1)],1)],1)},be=[],ve={name:"SelectLanguage",props:{language:{}},methods:{SetLanguage:function(e){this.$emit("SelectLanguage",e),this.PublicWebSite.SelectLanguage(e)}},injectModels:["PublicWebSite"]},Se=ve,fe=(i("3ddc"),i("a523")),ge=Object(p["a"])(Se,he,be,!1,null,"b627a774",null),xe=ge.exports;b()(ge,{VBtn:v["a"],VCard:S["a"],VCardTitle:f["c"],VContainer:fe["a"],VDialog:g["a"]});var Pe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-flex",[e.showOtpStep?[i("OtpVerification",{on:{VerifyOtp:e.onOtpVerified,MovePrevious:e.movePrevious}})]:[e.PublicWebSite.KioskParameters.isKiosk?e._e():i("idle",{attrs:{DialogText:"",ButtonText:"",DisableConfirmation:!0,IdleTimeout:1},on:{OnWarningTimeout:function(t){return e.PublicWebSite.Logout()}}}),e.PublicWebSite.KioskParameters.isKiosk?i("v-btn",{staticClass:"public-blue right white--text float-right btn-exit",on:{click:e.PublicWebSite.Logout}},[e._v(e._s(e.PublicWebSite.Text.Exit))]):e._e(),i("div",{staticClass:"mt-8 form"},[i("v-form",{ref:"form",staticClass:"form",attrs:{autocomplete:"off"},model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[e.PublicWebSite.KioskParameters.isKiosk?e._e():i("information-banner",{attrs:{BannerText:e.PublicWebSite.Text.LogonEICInstructions,UnderlineText:!0},on:{OnClick:function(t){return e.PublicWebSite.OpenUrl(e.eicUrl,!0)}}}),i("v-card",{staticClass:"menucard form mx-auto mt-8",attrs:{shaped:"",outlined:"",width:"900px"}},[i("v-card-title",{staticClass:"title"},[e._v(e._s(e.PublicWebSite.Text.Logon))]),i("v-card-text",{staticClass:"card-header"},[e._v(e._s(e.PublicWebSite.Text.Logon_Header))]),i("v-card-text",[i("v-text-field",{attrs:{inputmode:"numeric",type:"number",label:e.PublicWebSite.Text.Logon_CardPrompt,rules:[e.isValidCardNumber],autocomplete:"ignore"},on:{keypress:function(t){return e.isNumber(t)}},model:{value:e.cardNumber,callback:function(t){e.cardNumber=t},expression:"cardNumber"}}),i("v-text-field",{class:{required:!e.firstName},attrs:{type:"text",label:e.PublicWebSite.Text.FirstName,required:"",rules:[e.isValidFirstName],autocomplete:"ignore"},model:{value:e.firstName,callback:function(t){e.firstName=t},expression:"firstName"}}),i("v-text-field",{class:{required:!e.lastName},attrs:{type:"text",label:e.PublicWebSite.Text.LastName,required:"",rules:[e.isValidLastName],autocomplete:"ignore"},model:{value:e.lastName,callback:function(t){e.lastName=t},expression:"lastName"}}),i("v-text-field",{class:{required:!e.dateOfBirth},attrs:{id:"dob",type:"tel",inputmode:"numeric",maxlength:"10",required:"",rules:[e.isValidDateOfBirth],label:e.PublicWebSite.Text.Logon_DateOfBirth,"append-icon":"event",autocomplete:"ignore"},on:{keypress:function(t){return e.isNumber(t)},keyup:function(t){return e.formatDateOfBirth(t)},focus:function(t){return e.focusDate(t)}},model:{value:e.dateOfBirth,callback:function(t){e.dateOfBirth=t},expression:"dateOfBirth"}}),i("v-text-field",{class:[{required:!e.last4Ssn},e.ssnShow?"":"password-mask"],attrs:{type:"number",id:"last4Ssn",inputmode:"numeric",pattern:"[0-9]*","data-type":"int",label:e.PublicWebSite.Text.Logon_Last4Ssn,"append-icon":e.ssnShow?"visibility_off":"visibility",required:"",maxlength:"4",rules:[e.isValidLast4SSN],autocomplete:"ignore"},on:{"click:append":function(){return e.ssnShow=!e.ssnShow},focus:function(t){return e.PublicWebSite.ScrollToView()},keypress:function(t){return e.isNumber(t)}},model:{value:e.last4Ssn,callback:function(t){e.last4Ssn=t},expression:"last4Ssn"}}),this.PublicWebSite.KioskParameters.isKiosk?e._e():i("v-card-text",{staticClass:"mt-2 font-weight-bold",staticStyle:{padding:"0"}},[e._v(e._s(e.PublicWebSite.Text.Login_ContactInformation))]),this.PublicWebSite.KioskParameters.isKiosk?e._e():i("v-radio-group",{staticClass:"mt-2",attrs:{row:""},on:{change:e.onContactMethodChange},model:{value:e.contactMethod,callback:function(t){e.contactMethod=t},expression:"contactMethod"}},[i("v-radio",{attrs:{label:e.PublicWebSite.Text.Logon_Cell_Phone,value:"phone"}}),i("v-radio",{attrs:{label:e.PublicWebSite.Text.Logon_Email,value:"email"}})],1),"phone"!==e.contactMethod||this.PublicWebSite.KioskParameters.isKiosk?"email"!==e.contactMethod||this.PublicWebSite.KioskParameters.isKiosk?e._e():i("div",[i("v-text-field",{staticClass:"lowercase-input",class:{required:!e.email},attrs:{id:"email",type:"text",label:e.PublicWebSite.Text.Logon_Email,"append-icon":e.emailShow?"visibility_off":"mdi-email-outline",rules:[e.isValidEmail],autocomplete:"ignore","validate-on-blur":""},on:{"click:append":function(t){e.emailShow=!e.emailShow}},nativeOn:{paste:function(e){e.preventDefault()}},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),i("v-text-field",{staticClass:"lowercase-input",class:{required:!e.verifyEmail},attrs:{id:"verifyEmail",label:e.PublicWebSite.Text.Logon_Verify_Email,"append-icon":e.emailShow?"visibility_off":"mdi-email-outline",rules:[e.isValidVerifyEmail],autocomplete:"ignore","validate-on-blur":""},nativeOn:{paste:function(e){e.preventDefault()}},model:{value:e.verifyEmail,callback:function(t){e.verifyEmail=t},expression:"verifyEmail"}})],1):i("div",[i("v-text-field",{class:{required:!e.cellPhone},attrs:{id:"cellPhone",inputmode:"tel",type:"tel",maxlength:"14",placeholder:"(###)###-####",label:e.PublicWebSite.Text.Logon_Cell_Phone,"append-icon":"phone",rules:[e.isValidCellPhone],autocomplete:"ignore","validate-on-blur":""},on:{keypress:function(t){return e.formatPhone(t)}},nativeOn:{paste:function(e){e.preventDefault()}},model:{value:e.cellPhone,callback:function(t){e.cellPhone=t},expression:"cellPhone"}})],1),i("br")],1),i("v-card-actions",{staticClass:"text-center"},[i("v-btn",{staticClass:"button white--text",class:e.PublicWebSite.ButtonStyle,attrs:{color:"public-blue",disabled:!e.isFormValid()},on:{click:e.Login}},[e._v(e._s(e.PublicWebSite.Text.Logon))])],1)],1)],1)],1)],i("v-footer",{staticClass:"footer"},[i("span",{domProps:{innerHTML:e._s(!0!==e.PublicWebSite.KioskParameters.isKiosk?e.PublicWebSite.Text.Logon_CustomerServiceText:e.PublicWebSite.Text.Logon_CustomerServiceText_NoLink)}})])],2)},_e=[],Ce=(i("fb6a"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mx-auto info-banner text-center",on:{click:function(t){return e.clicked()}}},[i("v-alert",{attrs:{color:"light-blue darken-3",type:"info",dark:"",dense:""}},[i("div",{staticClass:"banner",style:e.UnderlineText?"text-decoration: underline !important;":""},[e._v(" "+e._s(e.BannerText)+" ")])])],1)}),ye=[],Te={props:{BannerText:{required:!0},UnderlineText:Boolean},methods:{clicked:function(){this.$emit("OnClick")}}},ke=Te,we=(i("84e9"),i("0798")),De=Object(p["a"])(ke,Ce,ye,!1,null,"34d7373b",null),Ae=De.exports;b()(De,{VAlert:we["a"]});var Le={injectModels:["PublicWebSite"],methods:{isNumber:function(e){e=e||window.event;var t=e.which?e.which:e.keyCode;if(!(t>31&&(t<48||t>57)))return!0;e.preventDefault()},isAlpha:function(e,t){e=e||window.event;var i=e.which?e.which:e.keyCode;if(i>=65&&i<91||i>=97&&i<123||t.find((function(e){return e==i})))return!0;e.preventDefault()}}},Ne=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("v-card",{staticClass:"menucard form mx-auto mt-8",attrs:{shaped:"",outlined:"",width:"900px"}},[i("v-card-title",{staticClass:"title"},[e._v(" "+e._s(e.PublicWebSite.Text.OTP_Verification_Header)+" ")]),i("v-card-text",{staticClass:"card-header"},[e._v(" "+e._s(e.getFormattedOtpInfoText)+" ")]),i("v-card-text",[i("v-text-field",{ref:"otpField",attrs:{label:e.PublicWebSite.Text.OTP_VERIFICATION_LABEL,outlined:"",autofocus:"","validate-on-blur":"",rules:[e.otpRule]},on:{focus:e.onFocus,blur:e.onBlur},nativeOn:{keydown:function(t){return e.onKeydown(t)},paste:function(t){return e.onPaste(t)}},model:{value:e.otp,callback:function(t){e.otp=t},expression:"otp"}}),i("v-btn",{staticClass:"white--text mt-4",attrs:{block:"",large:"",color:"public-blue",disabled:!e.otpIsValid},on:{click:e.verifyOtp}},[e._v(" "+e._s(e.PublicWebSite.Text.OTP_Verification_Button)+" ")])],1)],1),i("v-layout",{attrs:{row:"",wrap:"","justify-left":"","pb-5":""}},[i("v-flex",{staticClass:"sm12"},[i("applus-navigation-footer",{staticClass:"px-2",attrs:{MovePreviousEnabled:!0,ShowNext:!1,MovePreviousText:e.PublicWebSite.Text.Previous,IsKiosk:e.PublicWebSite.KioskParameters.isKiosk},on:{movePrevious:e.MovePrevious}})],1)],1)],1)},We=[],Ee=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"footer"},[i("v-layout",{staticClass:"nav-buttons mx-auto",attrs:{row:"",wrap:"","justify-center":""}},[e.ShowPreviousButton?i("v-flex",{attrs:{sm6:""}},[i("v-btn",{staticClass:"button",class:e.ButtonStyle,attrs:{color:"public-blue",disabled:!e.MovePreviousEnabled},on:{click:e.MovePrevious}},[e.ShowPreviousIcon?i("v-icon",[e._v("arrow_back")]):e._e(),e._v(" "+e._s(e.MovePreviousText)+" ")],1)],1):e._e(),e.ShowNextButton?i("v-flex",{staticClass:"pl-5",attrs:{sm6:""}},[i("v-btn",{staticClass:"button",class:e.ButtonStyle,attrs:{color:"public-blue",disabled:!e.MoveNextEnabled},on:{click:e.MoveNext}},[e._v(" "+e._s(e.MoveNextText)+" "),e.ShowNextIcon?i("v-icon",[e._v("arrow_forward")]):e._e()],1)],1):e._e()],1)],1)},Be=[],Ie={props:{MoveNextEnabled:Boolean,ShowNext:{Type:Boolean,default:null},MovePreviousEnabled:Boolean,ShowPrevious:{Type:Boolean,default:null},MoveNextText:String,MovePreviousText:String,ShowIconMoveNext:{Type:Boolean,default:null},ShowIconMovePrevious:{Type:Boolean,default:null},IsKiosk:Boolean},computed:{ButtonStyle:function(){return!0!==this.IsKiosk?"button-normal":"button-kiosk"}},data:function(){return{ShowPreviousIcon:!0,ShowNextIcon:!0,ShowNextButton:!0,ShowPreviousButton:!0}},created:function(){null!==this.ShowIconMoveNext&&(this.ShowNextIcon=this.ShowIconMoveNext),null!==this.ShowIconMovePrevious&&(this.ShowPreviousIcon=this.ShowIconMovePrevious),null!==this.ShowNext&&(this.ShowNextButton=this.ShowNext),null!==this.ShowPrevious&&(this.ShowPreviousButton=this.ShowPrevious)},methods:{MovePrevious:function(){this.$emit("movePrevious")},MoveNext:function(){this.$emit("moveNext")}}},Re=Ie,Oe=(i("e61a"),i("132d")),Me=Object(p["a"])(Re,Ee,Be,!1,null,"329cfe97",null),Ve=Me.exports;b()(Me,{VBtn:v["a"],VFlex:ne["a"],VIcon:Oe["a"],VLayout:se["a"]});var Fe={name:"OtpVerification",injectModels:["PublicWebSite"],data:function(){return{otp:"",touched:!1}},components:{ApplusNavigationFooter:Ve},computed:{otpIsValid:function(){return/^[0-9]+$/.test(this.otp)},otpRule:function(){var e=this;return function(){return e.touched,!0}},getFormattedOtpInfoText:function(){return this.PublicWebSite.Text.OTP_Verification_Info.replace("{incorrect_otp_attempts}",this.PublicWebSite.authData.mfaMaxOtpRetry)}},methods:{MovePrevious:function(){this.$emit("MovePrevious")},onFocus:function(){this.touched=!1,this.$refs.otpField.resetValidation()},onBlur:function(){this.touched=!0,this.$refs.otpField.validate()},onKeydown:function(e){var t=e.key,i=e.key.length>1||e.ctrlKey||e.metaKey;i||/^[0-9]+$/.test(t)||e.preventDefault()},onPaste:function(e){e.preventDefault();var t=e.clipboardData.getData("text").replace(/[^A-Za-z0-9]/g,""),i=8-this.otp.length;i<=0||(this.otp+=t.slice(0,i))},verifyOtp:function(){this.$emit("VerifyOtp",this.otp)}}},qe=Fe,je=(i("06c3"),i("8654")),He=Object(p["a"])(qe,Ne,We,!1,null,"9f3b7676",null),Ke=He.exports;b()(He,{VBtn:v["a"],VCard:S["a"],VCardText:f["b"],VCardTitle:f["c"],VFlex:ne["a"],VLayout:se["a"],VTextField:je["a"]});var Ue={name:"Login",mixins:[Le],components:{idle:_,InformationBanner:Ae,OtpVerification:Ke},data:function(){return{valid:!1,menu:!1,firstName:"",lastName:"",dateOfBirth:"",pickedDate:"",last4Ssn:"",cardNumber:"",defaultPickerDate:"",last4SsnMask:"",ssnShow:!1,eicUrl:"https://www.dps.texas.gov/DriverLicense/electionID.htm",contactMethod:"phone",email:"",verifyEmail:"",cellPhone:"",emailShow:!1,showOtpStep:!1,_loginPayload:null,_recaptchaToken:null}},computed:{DateFormatted:function(){if(!this.dateOfBirth)return"";var e=this.dateOfBirth.split("-"),t=Object(D["a"])(e,3),i=t[0],a=t[1],n=t[2];return"".concat(a,"/").concat(n,"/").concat(i)},DefaultPickerDate:function(){return this.defaultPickerDate},DatePickerWidth:function(){return!0===this.PublicWebSite.KioskParameters.isKiosk?850:290}},mounted:function(){if(!this.PublicWebSite.KioskParameters.isKiosk){var e=document.createElement("script");e.setAttribute("src","https://www.google.com/recaptcha/enterprise.js?render=6LesF7oaAAAAAEvJD0hjmTUib8Q5PGjTo54U2ieP"),document.head.appendChild(e)}},updated:function(){var e=this;setTimeout((function(){e.PublicWebSite.ShowReCaptcha()}),500)},beforeDestroy:function(){this.PublicWebSite.HideReCaptcha()},methods:{movePrevious:function(){this.showOtpStep=!1},onContactMethodChange:function(){var e=this;"email"===this.contactMethod?this.cellPhone="":(this.email="",this.verifyEmail=""),this.$nextTick((function(){e.$refs.form&&e.$refs.form.resetValidation()}))},onClick:function(){this.PublicWebSite.IsRecaptchaVisible||this.PublicWebSite.ShowReCaptcha()},Login:function(){if(H.ClearIsMFAEnabled(),this.PublicWebSite.KioskParameters.isKiosk)this.PublicWebSite.Login(this.firstName,this.lastName,this.dateOfBirth,this.last4Ssn,this.cardNumber);else{this.PublicWebSite.Busy=!0;var e=this;e._loginPayload={firstName:this.firstName,lastName:this.lastName,dateOfBirth:this.dateOfBirth,last4Ssn:this.last4Ssn,cardNumber:this.cardNumber,email:"email"===this.contactMethod?this.email.toLowerCase():"",cellPhone:"phone"===this.contactMethod?this.cellPhone:"",isEmail:"email"===this.contactMethod||"phone"!==this.contactMethod&&"",isMobile:"phone"===this.contactMethod||"email"!==this.contactMethod&&""},grecaptcha.enterprise.execute("6LesF7oaAAAAAEvJD0hjmTUib8Q5PGjTo54U2ieP",{action:"login"}).then((function(t){e._recaptchaToken=t,e.PublicWebSite.Authenticate(e._loginPayload.firstName,e._loginPayload.lastName,e._loginPayload.last4Ssn,"login",t,e._loginPayload.cardNumber,e._loginPayload.dateOfBirth,e._loginPayload.email,e._loginPayload.cellPhone,e._loginPayload.isEmail,e._loginPayload.isMobile,e.PublicWebSite.SelectedLanguage).then((function(t){var i=t.isAuthenticated,a=t.errorCode,n=t.data;if(i)e.PublicWebSite.authData.isOtpRequired?e.showOtpStep=!0:e.PublicWebSite.PublicSiteLogin(e._loginPayload.firstName,e._loginPayload.lastName,e._loginPayload.dateOfBirth,e._loginPayload.last4Ssn,e._loginPayload.cardNumber,e._loginPayload.email,e._loginPayload.cellPhone);else switch(e.PublicWebSite.Busy=!1,a){case"ValidationFailed":return e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.Auth_Missing_Details,e.PublicWebSite.Text.Auth_Missing_Details_Message);case"DisposableEmail":return e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.Auth_Access_Denied,e.PublicWebSite.Text.DISPOSABLE_EMAIL_Message);case"AccessDenied":var s=e.PublicWebSite.Text.Auth_Access_Denied_Message.replace("{mfa_auto_release_minutes}",n.mfaAutoReleaseMinutes);return e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.Auth_Access_Denied,s);case"OtpSendFailed":return e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.Auth_OTP_Failed,e.PublicWebSite.Text.Auth_OTP_Failed_Message);case"ReCaptchaFailed":return e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.Login_Validation_Failed,e.PublicWebSite.Text.Login_Validation_Failed_Recaptcha);default:return e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.AUTH_UNEXPECTED_ERROR,e.PublicWebSite.Text.AUTH_UNEXPECTED_ERROR_MESSAGE)}})).catch((function(t){console.log(".catch(function(error)",t),e.PublicWebSite.ShowAlert(e.PublicWebSite.Text.Login_Recpatcha_Error,t),e.PublicWebSite.Busy=!1}))}))}},onOtpVerified:function(){var e=Object(A["a"])(regeneratorRuntime.mark((function e(t){var i,a,n,s,o,r,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.PublicWebSite.VerifyOTP(t);case 2:if(i=e.sent,a=i.errorCode,n=i.success,s=i.data,!n){e.next=11;break}return H.SetIsMFAEnabled("Y"),this.PublicWebSite.UserInfo.SetViaOtpScreen(!0),this.showOtpStep=!1,e.abrupt("return",this.PublicWebSite.PublicSiteLogin(this._loginPayload.firstName,this._loginPayload.lastName,this._loginPayload.dateOfBirth,this._loginPayload.last4Ssn,this._loginPayload.cardNumber,this._loginPayload.email,this._loginPayload.cellPhone));case 11:e.t0=a,e.next="OtpOrTokenMissing"===e.t0?14:"OtpExpired"===e.t0?15:"OtpInvalid"===e.t0?16:"OtpResendLimitExceeded"===e.t0?19:21;break;case 14:return e.abrupt("return",this.PublicWebSite.ShowAlert(this.PublicWebSite.Text.OTP_Required,this.PublicWebSite.Text.OTP_Required_Message));case 15:return e.abrupt("return",this.PublicWebSite.ShowAlert(this.PublicWebSite.Text.OTP_Expired,this.PublicWebSite.Text.OTP_Expired_Message));case 16:return o=s.remainingAttempts>1?"OTP_Invalid_Message_Plural":"OTP_Invalid_Message_Singular",r=this.PublicWebSite.Text[o].replace("{no_of_remaining_attempts}",s.remainingAttempts),e.abrupt("return",this.PublicWebSite.ShowAlert(this.PublicWebSite.Text.OTP_Invalid,r));case 19:return this.PublicWebSite.ShowAlert(this.PublicWebSite.Text.Auth_Limit_Exceeded,this.PublicWebSite.Text.Auth_Limit_Exceeded_Message).then((function(){return l.PublicWebSite.Logout()})),e.abrupt("break",22);case 21:return e.abrupt("return",this.PublicWebSite.ShowAlert(this.PublicWebSite.Text.AUTH_UNEXPECTED_ERROR,this.PublicWebSite.Text.OTP_Verification_Unexpected_Error_Message));case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),validate:function(){this.$refs.form.validate()&&(this.snackbar=!0)},getDefaultPickerDate:function(){var e=new Date;return"".concat(e.getFullYear()-16,"-").concat(e.getMonth()+1,"-").concat(e.getDate())},focusDate:function(e){this.PublicWebSite.ScrollToView();var t=e.currentTarget.id;setTimeout((function(){document.getElementById(t).focus()}),500)},isValidCardNumber:function(e){return!e||e.length>=8&&e.length<=11||this.PublicWebSite.Text.Login_Rule_CardNumber},isValidFirstName:function(e){return e?e.length>40?this.PublicWebSite.Text.Login_Rule_FirstName_Length:!!/^([^-\s][a-zA-Z -]{1,40})$/.test(e)||this.PublicWebSite.Text.Login_Rule_InvalidCharacters:this.PublicWebSite.Text.Login_Rule_FirstName_Required},isValidLastName:function(e){return e?e.length>40?this.PublicWebSite.Text.Login_Rule_LastName_Length:!!/^([^-\s][a-zA-Z -]{1,40})$/.test(e)||this.PublicWebSite.Text.Login_Rule_InvalidCharacters:this.PublicWebSite.Text.Login_Rule_LastName_Required},isValidDateOfBirth:function(e){var t=e.split("/");if(!e)return this.PublicWebSite.Text.Login_Rule_DateOfBirth_Required;if(!/^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/(18[9][0-9]|19[0-9][0-9]|2[0-9][0-9][0-9])$/.test(e))return this.PublicWebSite.Text.Login_Rule_DateOfBirth_Invalid;if(3===t.length){var i=new Date(e);if(i>=new Date)return this.PublicWebSite.Text.Login_Rule_DateOfBirth_Invalid}return!0},isValidLast4SSN:function(e){return e?!!/^(?!0{4})[0-9]{4}$/.test(e)||this.PublicWebSite.Text.Login_Rule_Last4Ssn_Valid:this.PublicWebSite.Text.Login_Rule_Last4Ssn_Required},updateSSN:function(e){this.isNumber(e)&&(this.last4Ssn+=1,this.last4SsnMask+="*")},updateDateOfBirth:function(e){var t=e.keyCode,i=this.dateOfBirth;46!==t&&8!==t&&(null!==i.match(/^\d{2}$/)?this.dateOfBirth=i+"/":null!==i.match(/^\d{2}\/\d{2}$/)&&(this.dateOfBirth=i+"/"))},formatDateOfBirth:function(e){var t=this.dateOfBirth;e=e||window.event;var i=e.which?e.which:e.keyCode;if(193!=i&&111!=i)if(8!=i)null!==t.match(/^\d{2}$/)?t+="/":t.match(/^\d{2}\/\d{2}$/)&&(t+="/");else{var a=t;t.match(/^\d{2}\/\d{2}$/)?t=a.substring(0,4):t.match(/^\d{2}$/)&&(t=a.substring(0,1))}else{var n=t,s=t.length;t=n.substring(0,s-1)}this.dateOfBirth=t},isValidEmail:function(e){if("email"!==this.contactMethod)return!0;if(!e)return this.PublicWebSite.Text.Login_Rule_Email_Required;var t=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;return t.test(e)||this.PublicWebSite.Text.Login_Rule_InValid_Email_Format},isValidVerifyEmail:function(e){return"email"!==this.contactMethod||(e?e.toLowerCase()===this.email.toLowerCase()||this.PublicWebSite.Text.Login_Rule_Emails_Not_Matched:this.PublicWebSite.Text.Login_Rule_VerifyEmail_Required)},isValidCellPhone:function(e){if("phone"!==this.contactMethod)return!0;if(!e)return this.PublicWebSite.Text.Login_Rule_CellNumber_Required;var t=/^(\(\d{3}\)\s?|\d{3}-?)\d{3}-?\d{4}$/;return t.test(e)||this.PublicWebSite.Text.Login_Rule_InValid_CellNumber_Format},formatPhone:function(e){var t=this.cellPhone.replace(/\D/g,"").slice(0,10);t.length>6?t=t.replace(/(\d{3})(\d{3})(\d+)/,"($1) $2-$3"):t.length>3&&(t=t.replace(/(\d{3})(\d+)/,"($1) $2")),this.cellPhone=t,e.key&&/\D/.test(e.key)&&e.preventDefault()},isFormValid:function(){return!0===this.isValidFirstName(this.firstName)&&!0===this.isValidLastName(this.lastName)&&!0===this.isValidDateOfBirth(this.dateOfBirth)&&!0===this.isValidLast4SSN(this.last4Ssn)&&!0===this.isValidCardNumber(this.cardNumber)&&(this.PublicWebSite.KioskParameters.isKiosk||!0===this.isValidEmail(this.email)&&!0===this.isValidVerifyEmail(this.verifyEmail)&&!0===this.isValidCellPhone(this.cellPhone))}},injectModels:["PublicWebSite"]},$e=Ue,ze=(i("3a2f7"),i("82e6"),i("553a")),Ge=i("4bd4"),Ye=i("67b6"),Ze=i("43a6"),Qe=Object(p["a"])($e,Pe,_e,!1,null,"0ad209d9",null),Je=Qe.exports;b()(Qe,{VBtn:v["a"],VCard:S["a"],VCardActions:f["a"],VCardText:f["b"],VCardTitle:f["c"],VFlex:ne["a"],VFooter:ze["a"],VForm:Ge["a"],VRadio:Ye["a"],VRadioGroup:Ze["a"],VTextField:je["a"]});var Xe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-container",{staticClass:"pt-5",attrs:{"grid-list-sm":""}},[i("v-card",{staticClass:"menucard mx-auto",attrs:{shaped:"",outlined:"","max-width":"1000px"}},[i("v-card-title",{staticClass:"title"},[e._v(e._s(e.PublicWebSite.Text.AppointmentOptions))]),i("v-row",{directives:[{name:"show",rawName:"v-show",value:!e.PublicWebSite.KioskParameters.isKiosk,expression:"!PublicWebSite.KioskParameters.isKiosk"}],staticClass:"py-2 px-10"},[i("v-flex",[i("div",{staticClass:"font-weight-bold",domProps:{innerHTML:e._s(e.PublicWebSite.Text.ELDT_Message)}})])],1),i("v-row",{staticClass:"px-10 pt-2",attrs:{row:"",wrap:""}},[i("v-flex",[i("v-btn",{staticClass:"white--text button",class:e.PublicWebSite.ButtonStyle,attrs:{color:"public-blue"},on:{click:e.NewAppointment}},[e._v(e._s(e.PublicWebSite.Text.NewAppointment))])],1)],1),i("v-row",{staticClass:"py-2 px-10"},[i("v-flex",[e._v(e._s(e.PublicWebSite.Text.SelectOption_NewAppointmentText))])],1),i("v-row",{staticClass:"px-10 mt-5",attrs:{row:"",wrap:""}},[i("v-flex",[i("v-btn",{staticClass:"white--text button",class:e.PublicWebSite.ButtonStyle,attrs:{color:"public-blue",disabled:!e.HasExistingAppoinments},on:{click:e.ViewExistingAppointment}},[e._v(e._s(e.PublicWebSite.Text.ExistingAppointment))])],1)],1),i("v-row",{staticClass:"py-2 px-10"},[i("v-flex",[i("div",{staticClass:"body-text mt-2",domProps:{innerHTML:e._s(e.PublicWebSite.Text.SelectOption_ExistingAppointmentText)}})])],1),i("br"),i("v-layout",{attrs:{row:"",wrap:"","justify-left":"","pb-5":""}},[i("v-flex",{staticClass:"sm6"},[i("applus-navigation-footer",{staticClass:"px-2",attrs:{MovePreviousEnabled:!0,ShowNext:!1,MovePreviousText:e.PublicWebSite.Text.Previous,IsKiosk:e.PublicWebSite.KioskParameters.isKiosk},on:{movePrevious:e.MovePrevious}})],1)],1)],1)],1)},et=[],tt={name:"SelectOption",computed:{HasExistingAppoinments:function(){return this.PublicWebSite.BookingHistory.Bookings&&this.PublicWebSite.BookingHistory.Bookings.length>0}},methods:{NewAppointment:function(){this.PublicWebSite.NewAppointment()},ViewExistingAppointment:function(){this.PublicWebSite.ViewAppointment()},MovePrevious:function(){this.PublicWebSite.isSameDayAppointment||this.PublicWebSite.isStandByAppointment?this.PublicWebSite.BookingCompleteForKiosk():this.PublicWebSite.MovePrevious()}},components:{ApplusNavigationFooter:Ve},injectModels:["PublicWebSite"]},it=tt,at=(i("b56c"),i("0fd9")),nt=Object(p["a"])(it,Xe,et,!1,null,"327878f4",null),st=nt.exports;b()(nt,{VBtn:v["a"],VCard:S["a"],VCardTitle:f["c"],VContainer:fe["a"],VFlex:ne["a"],VLayout:se["a"],VRow:at["a"]});var ot=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text-center"},[i("span",{staticClass:"heading"},[i("h2",{staticClass:"mt-2",style:!0===e.PublicWebSite.KioskParameters.isKiosk?"margin-bottom:-10px":""},[e._v(e._s(e.PublicWebSite.Text.SelectService_Prompt))]),i("span",[e._v(e._s(e.PublicWebSite.Text.SelectService_ServiceNotAvailable))])]),i("v-content",{staticClass:"px-5 pt-2"},[i("v-layout",{staticClass:"text-center",class:e.PublicWebSite.KioskParameters.isKiosk?"":"mb-2",attrs:{row:"",wrap:"","mx-auto":""}},[e._l(e.byServiceCategory,(function(t,a){return i("v-flex",{key:a,staticClass:"category",attrs:{sm2:"","mx-auto":""}},[i("span",{staticClass:"subtitle-1 font-weight-bold",staticStyle:{"text-decoration":"underline"},style:e.PublicWebSite.KioskParameters.isKiosk&&"ES"===e.PublicWebSite.SelectedLanguage?"font-size:14px !important":""},[e._v(e._s(e.ServiceTypes.GetCategoryDescription(a,e.PublicWebSite.SelectedLanguage)))]),e._l(e.GroupServices(e.byServiceCategory[a]),(function(t){return i("v-layout",{key:t.TypeId,attrs:{row:"",wrap:""}},[i("v-btn",{key:t.TypeId,staticClass:"button",class:e.PublicWebSite.ButtonStyle,attrs:{color:"public-blue",disabled:!1===t.Eligible||!0===e.NewBooking.IsStandByRoadTest(t.TypeId)},domProps:{textContent:e._s(e.ServiceTypes.GetServiceTypeDescription(t.TypeId,e.PublicWebSite.SelectedLanguage))},on:{click:function(i){return e.SelectService(t)}}})],1)}))],2)})),i("v-flex",{staticClass:"text-left mt-2 font-weight-bold",staticStyle:{"font-size":"14px"},attrs:{sm10:"","mx-auto":""}},[e._v(" "+e._s(e.PublicWebSite.Text.LocationAvailabilityMessage)+" ")])],2)],1),i("v-layout",{attrs:{row:"",wrap:"","justify-left":"","px-5":""}},[i("v-flex",{attrs:{sm4:""}},[i("applus-navigation-footer",{attrs:{MovePreviousEnabled:!0,ShowNext:!1,MovePreviousText:e.PublicWebSite.Text.Previous,IsKiosk:e.PublicWebSite.KioskParameters.isKiosk},on:{movePrevious:e.MovePrevious}})],1)],1)],1)},rt=[],lt=(i("4e827"),{name:"SelectService",data:function(){return{testTypes:null}},created:function(){this.PublicWebSite.BookingHistory.HasExistingBooking()&&this.PublicWebSite.ShowAlert(this.PublicWebSite.Text.AppointmentExists,this.PublicWebSite.Text.AppointmentExists_Warning)},methods:{SelectService:function(e){this.NewBooking.SelectService(e)},MovePrevious:function(){this.PublicWebSite.MovePrevious()},GroupServices:function(e){return e.sort((function(e,t){return e.TypeId>t.TypeId?1:-1}))}},computed:{byServiceCategory:function(){if(this.PublicWebSite.Eligibility.SelectedCard.ServicesEligibility){var e=ut(this.PublicWebSite.Eligibility.SelectedCard.ServicesEligibility),t=ct(e,"CategoryId");return t}return null}},components:{ApplusNavigationFooter:Ve},injectModels:["PublicWebSite","NewBooking","ServiceTypes"]});function ct(e,t){var i={};return e.forEach((function(e){i[e[t]]||(i[e[t]]=[]),i[e[t]].push(e)})),i}function ut(e){return e.sort((function(e,t){return e.CategoryId>t.CategoryId?1:-1})),e}var dt=lt,mt=(i("fa5c"),i("a75b")),pt=Object(p["a"])(dt,ot,rt,!1,null,"557171a8",null),ht=pt.exports;b()(pt,{VBtn:v["a"],VContent:mt["a"],VFlex:ne["a"],VLayout:se["a"]});var bt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"appointment"}},[i("v-container",{staticStyle:{"max-width":"1000px"},attrs:{"grid-list-sm":""}},[i("div",{staticClass:"logo-container d-none d-print-block"},[i("img",{attrs:{src:e.texasLogo}}),i("br"),i("br")]),i("select-appointment",{ref:"selectAppt"}),i("v-card",{staticClass:"menucard form mx-auto",attrs:{shaped:"",outlined:"","max-width":"1100px"}},[i("v-card-title",{staticClass:"title"},[e._v(e._s(e.PublicWebSite.Text.ViewAppointment_PanelHeader))]),this.IsEligibleForService?e._e():i("v-card-text",{staticClass:"warning-text"},[e._v(e._s(e.PublicWebSite.Text.ViewAppointment_NotEligibleWarning))]),i("appointment-details",{ref:"AppointmentDetails",attrs:{language:this.PublicWebSite.SelectedLanguage,Appointment:this.BookingHistory.SelectedBooking,SelectedCard:this.PublicWebSite.Eligibility.SelectedCard,printTitle:e.PublicWebSite.Text.ViewAppointment_PrintTitle}})],1),i("v-layout",{staticClass:"pt-5",attrs:{row:"",wrap:""}},[i("v-flex",{attrs:{sm10:""}},[this.IsEligibleForService?i("div",{domProps:{innerHTML:e._s(e.ViewAppointmentInstructions)}}):i("div",{domProps:{innerHTML:e._s(e.PublicWebSite.Text.ViewAppointment_NotEligibleInstructions)}})])],1),i("div",{staticClass:"nav-buttons d-print-none"},[i("v-layout",{attrs:{row:"",wrap:""}},[i("v-flex",{attrs:{sm4:""}},[i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:e.MovePrevious}},[i("v-icon",[e._v("arrow_back")]),e._v(" "+e._s(e.PublicWebSite.Text.Previous)+" ")],1)],1),i("v-flex",{attrs:{sm4:""}},[i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:e.LogOut}},[e._v(e._s(e.PublicWebSite.Text.LogOut))])],1),i("v-flex",{attrs:{sm4:""}},[i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:function(t){return e.CancelAppointment()}}},[e._v(e._s(e.PublicWebSite.Text.CancelAppointment))])],1)],1),this.BookingHistory.SelectedBooking?i("v-layout",{attrs:{row:"",wrap:""}},[i("v-flex",{attrs:{sm4:""}},[this.BookingHistory.Bookings.length>1?i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:function(t){return e.SelectAppointment()}}},[e._v(e._s(e.PublicWebSite.Text.SelectAppointment))]):e._e()],1),i("v-flex",{attrs:{sm4:""}},[i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:function(t){return e.RescheduleAppointment()}}},[e._v(e._s(e.PublicWebSite.Text.RescheduleAppointment))])],1),i("v-flex",{attrs:{sm4:""}},[i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:function(t){return e.print()}}},[i("v-icon",{staticClass:"mr-2"},[e._v("print")]),e._v(" "+e._s(e.PublicWebSite.Text.Print)+" ")],1)],1)],1):e._e(),this.IsEligibleForService||e.PublicWebSite.KioskParameters.isKiosk?e._e():i("v-layout",{attrs:{row:"",wrap:""}},[i("v-flex",{attrs:{sm12:""}},[i("v-btn",{staticClass:"button",attrs:{color:"public-blue"},on:{click:function(t){return e.WhyNotEligible()}}},[e._v(e._s(e.PublicWebSite.Text.ViewAppointment_NotEligible))])],1)],1)],1)],1)],1)},vt=[],St=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"appointment-details"}},[i("div",{staticClass:"text-center mr-5 pr-5 ml-5 d-none d-print-block"},[i("v-layout",{attrs:{row:"",wrap:""}},[i("v-flex",{staticClass:"text-right pl-5",attrs:{sm7:""}},[i("h3",[e._v(e._s(e.printTitle))])]),i("v-flex",{staticClass:"text-right",attrs:{sm5:""}},[i("img",{attrs:{id:"barcode"}})])],1)],1),i("div",{staticClass:"details-table"},[i("v-container",{attrs:{"grid-list-sm":""}},[i("v-row",{attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.FirstName)+":")]),i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.Appointment.FirstName))]),i("v-col",{staticClass:"hidden-sm-and-down",attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.LastName)+":")]),i("v-col",{staticClass:"hidden-sm-and-down",attrs:{sm:"3"}},[e._v(e._s(e.Appointment.LastName))])],1),i("v-row",{staticClass:"hidden-md-and-up d-print-none",attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.LastName)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s(e.Appointment.LastName))])],1),i("v-row",{attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.ServiceType)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s(e.ServiceTypes.GetServiceTypeDescription(e.Appointment.ServiceTypeId,e.PublicWebSite.SelectedLanguage)))])],1),i("v-row",{attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.AppointmentDate)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s(e.Appointment.FormattedBookingDateMonth)+"/"+e._s(e.Appointment.FormattedBookingDateDay)+"/"+e._s(e.Appointment.FormattedBookingDateYear)+" "+e._s(e.Appointment.FormattedBookingTime))])],1),i("v-row",{attrs:{row:"",wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.ConfirmationNumber)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s(e.Appointment.ConfirmationNumber))])],1),i("v-row",{attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.NotificationLanguage)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s("Y"===e.Appointment.SpanishLanguage?e.PublicWebSite.Text.Spanish:e.PublicWebSite.Text.English))])],1),i("v-row",{attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.HomePhone)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(" "+e._s(""===e.Appointment.HomePhone?"N/A":e.Appointment.HomePhone)+" ")])],1),i("v-row",{attrs:{wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.MobilePhone)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(" "+e._s(""===e.Appointment.CellPhone?"N/A":e.Appointment.CellPhone)+" ")])],1),i("v-row",{attrs:{row:"",wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.EmailAddress)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s(""===e.Appointment.Email?"N/A":e.Appointment.Email))])],1),i("v-row",{attrs:{row:"",wrap:""}},[i("v-col",{attrs:{sm:"3"}},[e._v(e._s(e.PublicWebSite.Text.DLLocation)+":")]),i("v-col",{attrs:{md:"auto"}},[e._v(e._s(e.Appointment.SiteName))])],1),i("v-row",{attrs:{row:"",wrap:""}},[i("v-col",{attrs:{sm:"3"}}),i("v-col",{attrs:{md:"auto"}},[i("span",[e._v(" "+e._s(e.Appointment.SiteAddress)+" "),!0!==e.PublicWebSite.KioskParameters.isKiosk?i("span",{staticClass:"d-print-none"},[e._v(" ("),i("a",{attrs:{href:e.Appointment.MapUrl,target:"_blank"}},[e._v(e._s(e.PublicWebSite.Text.Map))]),e._v(") ")]):e._e()])])],1)],1),i("div",{staticClass:"pl-10 pt-3 d-none d-print-block"},[i("div",{domProps:{innerHTML:e._s(e.printOnlyInstructions)}})]),e.DisplayRequiredDocuments?i("div",{staticClass:"pl-5 pt-3 d-print-block",staticStyle:{"font-size":"14px"}},[i("div",{staticClass:"font-weight-medium",staticStyle:{"font-size":"14px"}},[e._v(e._s(e.PublicWebSite.Text.RequiredDocumentsInstruction))]),e.SelectedCard?i("div",{staticClass:"ml-3"},[e.SelectedCard.NeedIdDocument?i("span",{staticStyle:{"font-size":"14px"}},[i("li",[e._v(" "+e._s(e.PublicWebSite.Text.RequiredDocumentsIdRequired)+" - "+e._s(e.PublicWebSite.Text.RequiredDocumentsListOfDocuments)+" "),i("a",{attrs:{target:"_blank",href:e.SelectedCard.NeedIdDocumentUrl}},[e._v(e._s(e.PublicWebSite.Text.RequiredDocumentsHere)+".")])])]):e._e(),e.SelectedCard.NeedLawfulPresenceDocument?i("span",{staticStyle:{"font-size":"14px"}},[i("li",[e._v(" "+e._s(e.PublicWebSite.Text.RequiredDocumentsLawfulPresence)+" - "+e._s(e.PublicWebSite.Text.RequiredDocumentsListOfDocuments)+" "),i("a",{attrs:{target:"_blank",href:e.SelectedCard.NeedLawfulPresenceDocumentUrl}},[e._v(e._s(e.PublicWebSite.Text.RequiredDocumentsHere)+".")])])]):e._e(),e.SelectedCard.NeedSsnDocument?i("span",{staticStyle:{"font-size":"14px"}},[i("li",[e._v(" "+e._s(e.PublicWebSite.Text.RequiredDocumentsSsnRequired)+" - "+e._s(e.PublicWebSite.Text.RequiredDocumentsListOfDocuments)+" "),i("a",{attrs:{target:"_blank",href:e.SelectedCard.NeedSsnDocumentUrl}},[e._v(e._s(e.PublicWebSite.Text.RequiredDocumentsHere)+".")])])]):e._e(),e.SelectedCard.NeedResidency?i("span",{staticStyle:{"font-size":"14px"}},[i("li",[e._v(" "+e._s(e.PublicWebSite.Text.RequiredDocumentsResidency)+" - "+e._s(e.PublicWebSite.Text.RequiredDocumentsListOfDocuments)+" "),i("a",{attrs:{target:"_blank",href:e.SelectedCard.NeedResidencyUrl}},[e._v(e._s(e.PublicWebSite.Text.RequiredDocumentsHere)+".")])])]):e._e()]):e.Appointment.RequiredDocuments?i("div",{staticClass:"ml-3"},e._l(e.RequiredDocuments,(function(t){return i("li",{key:t.DocumentId},[i("span",[e._v(" "+e._s(t.Description)+" - "+e._s(e.PublicWebSite.Text.RequiredDocumentsListOfDocuments)+" "),i("a",{attrs:{target:"_blank",href:t.DocumentUrl}},[e._v(" "+e._s(e.PublicWebSite.Text.RequiredDocumentsHere)+". ")])])])})),0):e._e()]):e._e()],1)])},ft=[],gt=function(e){var t="_blank",i=["fullscreen=no","titlebar=yes","scrollbars=yes"],a=!0,n=["/static/print.css","/static/vuetify.min.css","/static/bootstrap.min.css"],s=document.getElementById(e),o="",r=window.open(o,t,i,a);r.document.open(),r.document.write("\n \n \n ".concat(document.title,'\n