![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/dist/_nuxt/ |
(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{510:function(e,t,r){"use strict";var n=r(5),o=(r(16),r(31),r(69),r(103),r(167),{name:"input-field",props:{vName:{required:!1},type:{required:!1,default:"text"},rules:{required:!1,type:String,default:""},formGroupClass:{require:!1,default:""},form:{required:!0},field:{required:!0,type:String},placeholder:{required:!1,default:""},errorMsgsOutOfWrapper:{required:!1,default:!1}},data:function(){return{addWithBorderClass:!1,formGroupClasses:[]}},mounted:function(){var e=this;this.formGroupClass.split(" ").forEach((function(t){t.trim()&&e.formGroupClasses.push(Object(n.a)({},t,!0))})),this.focusOnInputIfValue()},methods:{focusOnInputIfValue:function(){this.fieldValue&&(this.formGroupClasses.find((function(e){if(e.focused)return e}))||this.formGroupClasses.push({focused:!0}))}},computed:{isRequired:function(){return this.rules.indexOf("required")>=0},fieldValue:function(){return this.field.split(".").reduce((function(e,t){return e[t]}),this.form)}},watch:{fieldValue:function(){this.focusOnInputIfValue()}}}),l=(r(515),r(53)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ValidationProvider",{attrs:{rules:e.rules,name:e.vName||e.field},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[r("div",{staticClass:"form-group with-animation",class:e.formGroupClasses},[e._t("default",(function(){return[r("p",{staticClass:"placeholder-text",class:{required:e.isRequired}},[e._v(e._s(e.placeholder))]),e._v(" "),"checkbox"===e.type?r("input",{directives:[{name:"model",rawName:"v-model",value:e.form[e.field],expression:"form[field]"}],staticClass:"form-control",class:{"with-border":e.addWithBorderClass},attrs:{disabled:e.$attrs.disabled,name:e.vName||e.field,type:"checkbox"},domProps:{checked:Array.isArray(e.form[e.field])?e._i(e.form[e.field],null)>-1:e.form[e.field]},on:{change:function(t){var r=e.form[e.field],n=t.target,o=!!n.checked;if(Array.isArray(r)){var l=e._i(r,null);n.checked?l<0&&e.$set(e.form,e.field,r.concat([null])):l>-1&&e.$set(e.form,e.field,r.slice(0,l).concat(r.slice(l+1)))}else e.$set(e.form,e.field,o)}}}):"radio"===e.type?r("input",{directives:[{name:"model",rawName:"v-model",value:e.form[e.field],expression:"form[field]"}],staticClass:"form-control",class:{"with-border":e.addWithBorderClass},attrs:{disabled:e.$attrs.disabled,name:e.vName||e.field,type:"radio"},domProps:{checked:e._q(e.form[e.field],null)},on:{change:function(t){return e.$set(e.form,e.field,null)}}}):r("input",{directives:[{name:"model",rawName:"v-model",value:e.form[e.field],expression:"form[field]"}],staticClass:"form-control",class:{"with-border":e.addWithBorderClass},attrs:{disabled:e.$attrs.disabled,name:e.vName||e.field,type:e.type},domProps:{value:e.form[e.field]},on:{input:function(t){t.target.composing||e.$set(e.form,e.field,t.target.value)}}})]})),e._v(" "),e._l(e.$getFormInputErrors(n,e.field,e.form),(function(t){return e.errorMsgsOutOfWrapper?e._e():r("span",{staticClass:"validation-err-msg",domProps:{innerHTML:e._s(t)}})}))],2),e._v(" "),e._l(e.$getFormInputErrors(n,e.field,e.form),(function(t){return e.errorMsgsOutOfWrapper?r("span",{staticClass:"validation-err-msg",domProps:{innerHTML:e._s(t)}}):e._e()}))]}}],null,!0)})}),[],!1,null,"7fbd73e8",null);t.a=component.exports},511:function(e,t,r){"use strict";var n=r(33),o=r(54),l=(r(104),r(23),r(40),r(510)),c=r(514),d=r(523);t.a={components:{InputField:l.a,FormErrorMsg:c.a},data:function(){return{formErrorMsg:""}},methods:{frontendFormSubmitHandler:function(){var e=this;if(!this.$refs.form)return this.submit();this.$refs.form.validate().then((function(t){if(t)return e.submit();var r=e.getFirstFieldErrorName();r&&e.focusOnElement(r)}))},getFirstFieldErrorName:function(){for(var e,t=Object.keys(this.$refs.form.errors);t.length;)if(e=t.shift(),this.$refs.form.errors[e].length)return e},focusOnElement:function(e){var t=document.getElementsByName(e),r=Object(o.a)(t,1)[0];r||(r=document.getElementById(e)),r.scrollIntoView({behavior:"smooth"}),r.focus()},catchError:function(e){e.response?(this.form.onFail(e.response.data.data),this.formErrorMsg=e.response.data.message):this.formErrorMsg=e.message},storeSavedSession:function(e,t,r){var n=this.$store.state.orderId;n&&this.$axios.post("orders/".concat(n,"/").concat(e,"/store-saved-session"),{payload:r}),t&&this.$router.push({path:t})},saveElectronicSignature:function(){var e=this.$refs.signaturePad.saveSignature(),t=e.isEmpty,data=e.data;this.form.electronic_signature=t?"":data},clearElectronicSignature:function(){this.$refs.signaturePad.clearSignature(),this.saveElectronicSignature()},htmlToPNG:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.$refs.screenShotSection,t.next=3,Object(d.a)(r);case 3:e.form.signature_sc=t.sent;case 4:case"end":return t.stop()}}),t)})))()},screenshot:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.htmlToPNG();case 2:e.ipVisible=!1;case 3:case"end":return t.stop()}}),t)})))()},onBeginSignature:function(){},onEndSignature:function(){this.saveElectronicSignature()}}}},512:function(e,t,r){var content=r(516);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(82).default)("f5598fc8",content,!0,{sourceMap:!1})},513:function(e,t,r){var content=r(518);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(82).default)("3e06b350",content,!0,{sourceMap:!1})},514:function(e,t,r){"use strict";var n={name:"FormErrorMsg",props:{msg:{type:String}},data:function(){return{errorMsg:""}},mounted:function(){this.setFormErrorMsg(this.msg)},methods:{setFormErrorMsg:function(e){this.errorMsg=e}},beforeMount:function(){this.$eventBus.$on("setFormErrorMsg",this.setFormErrorMsg)},watch:{msg:function(){this.setFormErrorMsg(this.msg)}}},o=(r(517),r(53)),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.errorMsg?r("p",{staticClass:"form-error-msg",domProps:{innerHTML:e._s(e.errorMsg)}}):e._e()}),[],!1,null,"4c656529",null);t.a=component.exports},515:function(e,t,r){"use strict";r(512)},516:function(e,t,r){var n=r(81)(!1);n.push([e.i,".form-control[data-v-7fbd73e8]:disabled{background-color:unset!important}",""]),e.exports=n},517:function(e,t,r){"use strict";r(513)},518:function(e,t,r){var n=r(81)(!1);n.push([e.i,".form-error-msg[data-v-4c656529]{text-align:right;margin-top:10px;color:red;font-weight:700}",""]),e.exports=n},578:function(e,t,r){var content=r(612);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(82).default)("488bf3a4",content,!0,{sourceMap:!1})},611:function(e,t,r){"use strict";r(578)},612:function(e,t,r){var n=r(81)(!1);n.push([e.i,".loading{min-height:457px;background:#f0f4f8;padding:40px 0 50px}.loading-box{max-width:580px;margin:0 auto;border-radius:4px;box-shadow:0 5px 15px rgba(0,0,0,.15);padding:25px 40px 32px}.loading-bar,.loading-box{width:100%;background:#fff}.loading-bar{border:1px solid #9ca3b5;border-radius:4px;height:8px;position:relative;margin-bottom:36px}@-webkit-keyframes progress-animation{0%{width:0}20%{width:14%}55%{width:41.2%}to{width:85.4%}}@keyframes progress-animation{0%{width:0}20%{width:14%}55%{width:41.2%}to{width:85.4%}}@-webkit-keyframes complete-progress-animation{0%{width:85.4%}20%{width:95%}55%{width:99%}to{width:100%}}@keyframes complete-progress-animation{0%{width:85.4%}20%{width:95%}55%{width:99%}to{width:100%}}.loading-bar .inner{position:absolute;left:-1px;top:-1px;height:8px;background:#006bcd;border-radius:4px;width:85.4%;-webkit-animation:progress-animation 10s ease-in-out;animation:progress-animation 10s ease-in-out}.loading-bar .inner.completed{width:calc(100% + 2px);-webkit-animation:complete-progress-animation 2s ease-in-out;animation:complete-progress-animation 2s ease-in-out}.loading-step{border:1px solid #9ca3b5;background:#fff;border-radius:4px;margin-bottom:15px;position:relative;padding:13px 45px 14px 18px;transition:all .3s ease-in}.loading-step p{margin:0;color:#1d2e59}.loading-step .error-image{width:16px;height:16px}.loading-step .error-image,.loading-step .loading-image{position:absolute;right:3px;top:50%;transform:translateY(-50%);opacity:1;transition:all .3s ease-in}.loading-step .error-image,.loading-step .loaded-image{position:absolute;right:12px;top:47%;transform:translateY(-50%);opacity:0;transition:all .3s ease-in}.loading-step.done{border:1px solid #4bbf64}.loading-step.done .loading-image,.loading-step.error .loading-image{opacity:0}.loading-step.done .loaded-image,.loading-step.error .error-image{opacity:1}@media only screen and (max-width:767px){.loading-box{padding:25px 20px 32px}}",""]),e.exports=n},664:function(e,t,r){"use strict";r.r(t);r(23),r(84),r(225),r(31),r(42),r(16),r(40),r(69),r(125),r(126);var n={name:"verify",mixins:[r(511).a],middleware:function(e){var t=e.store.state,r=e.redirect;e.route.path;if(0===Object.keys(t.step2Form).length)return r("/wi/step-1")},data:function(){return{loadingBarInnerClass:"",errorMessage:"",steps:{verify_information:{status:"in_progress",waiting_text:"Your information is being verified",done_text:"Your information is verified"},searching_vehicle:{status:"pending",waiting_text:"Searching database for vehicle to renew",done_text:"Vehicle found in database"},finalizing_app:{status:"pending",waiting_text:"Finalizing application",hint_text:"Do not click Back or Refresh.",done_text:"Your application is ready"}},verifyInformation:null,searchingVehicle:null}},mounted:function(){var e=this;this.verifyInformation=setTimeout((function(){e.steps.searching_vehicle.status="in_progress",e.steps.verify_information.status="done"}),5e3),this.searchingVehicle=setTimeout((function(){e.steps.finalizing_app.status="in_progress",e.steps.searching_vehicle.status="done"}),1e4);var t="http://run.onlinetask.co:7000/get-estimates/"+this.$store.state.orderId;"XXXX"!==this.$store.getters.getOfflineFormPlates[0].license_plate?this.$axios.get(t).then((function(t){var data=t.data;if(e.completeSteps(),"success"===data.status)e.steps.finalizing_app.status="done",e.redirectSuccessStatus(data);else{var r=data.error_message;r&&r.startsWith("ERROR:")&&(e.errorMessage=r.replace("ERROR:","")),e.catchError()}})).catch((function(t){e.catchError()})):setTimeout((function(){e.dummyPrices()}),1e3)},methods:{goManual:function(){this.completeSteps(),this.$store.commit("SET_ORIGINAL_ORDER_TYPE","manual"),this.redirectSuccessStatus({status:"success",estimates:[]})},redirectSuccessStatus:function(data){var e=this.getPrices(data);if(this.arePricesEmpty(e))return this.catchError();this.storeSavedSession("verify","/wi/step-3",{form_flow:this.$store.state.formFlow,empty_estimates:this.$store.state.emptyEstimates,original_order_type:this.$store.state.originalOrderType,prices:e})},catchError:function(e){this.completeSteps(),this.steps.finalizing_app.status="error",e||this.errorMessage?this.$bvModal.show("error-message-modal"):this.$bvModal.show("suggestion-modal")},arePricesEmpty:function(e){return Array.isArray(e)&&0===e.length||e.constructor===Object&&0===Object.keys(e).length},dummyPrices:function(){this.redirectSuccessStatus({status:"success",estimates:[{address:"85541",zip_code:"85541",estimates:["1 YEAR RENEWALÂ $208.20 (through 5/15/2022)","2 YEAR RENEWALÂ $362.25 (through 5/15/2023)","5 YEAR RENEWALÂ $691.13 (through 5/15/2026)"],recipient:"Matthew",license_make:"BUIC",vehicle_year:"2014",license_plate:"XXXX",vehicle_model:"Lacrosse",license_expiry:"",offline_processing:!1}]})},getPricePlaceholder:function(){return{index:0,license_plate:"",license_make:"",license_plate_label:"",offline_processing:!0,prices:[{price:""}]}},completeSteps:function(){clearTimeout(this.verifyInformation),clearTimeout(this.searchingVehicle),this.steps.searching_vehicle.status="done",this.steps.verify_information.status="done",this.loadingBarInnerClass="completed"},getPrices:function(data){var e=this,t={};return data.estimates.forEach((function(r){if(r.estimates.length){t[r.license_plate]={license_plate:r.license_plate,license_make:r.license_make?r.license_make.replace(/[()]/g,""):"",license_plate_label:r.license_plate,vehicle_year:r.vehicle_year,dont_include:!1,prices:[]},r.license_expiry&&(t[r.license_plate].license_plate_label="".concat(r.license_plate," - Expires ").concat(r.license_expiry),t[r.license_plate].expires_on=r.license_expiry),t[r.license_plate].offline_processing=!0;var n=0;r.estimates.forEach((function(text){if(e.includeEstimate(text)){var o,l,c=text.split("$")[1].split(" ")[0];e.$money(c);text.toLowerCase().indexOf("1 year")>=0?(o="1-Year Renewal",l="one_year"):text.toLowerCase().indexOf("2 year")>=0?(o="2-Years Renewal",l="two_years"):text.toLowerCase().indexOf("5 year")>=0&&(o="5-Years Renewal",l="five_years"),t[r.license_plate].prices.push({key:r.license_plate+"_"+n,licence_plate:r.license_plate,estimate:text,renewal_type:l,description:o,formatted_price:e.$money(c),price:c}),n++}}))}})),t=this.clearEmptyPrices(t),t=this.orderPricesByExpiresOn(t),this.$store.commit("SET_OFFLINE_API_PLATES",t),t},orderPricesByExpiresOn:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desc";return _.orderBy(e,(function(e){var r=e.expires_on||t.$moment().subtract(100,"y");return t.$moment(r).unix()}),r)},clearEmptyPrices:function(e){for(var t in e)e[t].prices&&e[t].prices.length||delete e[t];return e},shouldConsiderAllAsOffline:function(e){var t=!1;for(var r in e)if(this.isLicenseOffline(e[r])){t=!0;break}return t},isLicenseOffline:function(e){return e.hasOwnProperty("offline_processing")&&("true"==e.offline_processing||1==e.offline_processing||1==e.offline_processing)},includeEstimate:function(e){for(var t=0,r=["Take no action","Take No Action","Get a Duplicate Registration"];t<r.length;t++){var n=r[t];if(e.includes(n))return!1}return!0}}},o=n,l=(r(611),r(53)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v("Verify")]),e._v(" "),r("p",{staticClass:"description"},[e._v("Verifying information ...")]),e._v(" "),r("div",{staticClass:"loading-bar"},[r("div",{staticClass:"inner",class:e.loadingBarInnerClass})]),e._v(" "),e._l(e.steps,(function(t){return["pending"!==t.status?r("div",{staticClass:"loading-step",class:t.status},[r("p",{domProps:{textContent:e._s("done"!==t.status?t.waiting_text:t.done_text)}}),e._v(" "),t.hint_text?r("small",{domProps:{textContent:e._s(t.hint_text)}}):e._e(),e._v(" "),r("img",{staticClass:"loading-image",attrs:{src:"/images/verify/loading-blue.gif",alt:"Loading"}}),e._v(" "),r("img",{staticClass:"loaded-image",attrs:{src:"/images/verify/form-tick.svg",alt:"Loaded"}}),e._v(" "),r("img",{staticClass:"error-image",attrs:{src:"/images/verify/cross.svg",alt:"Loaded"}})]):e._e()]})),e._v(" "),r("b-modal",{attrs:{id:"error-message-modal","hide-footer":"","hide-header":"","body-class":"p-3"}},[r("div",{staticClass:"text-center"},[r("p",{staticClass:"text-danger text-center mt-3"},[e._v("\n "+e._s(e.errorMessage)+"\n ")]),e._v(" "),r("hr"),e._v(" "),r("b-button",{staticClass:"dark-btn pull-right",on:{click:function(t){return e.$bvModal.hide("error-message-modal")}}},[e._v("Close")])],1)]),e._v(" "),r("b-modal",{attrs:{id:"suggestion-modal","hide-footer":"","body-class":"px-5 py-3",title:"Car Registration"}},[r("div",[r("ul",{staticClass:"pl-0 suggestions-list"},[r("li",[e._v("\n Confirm that you are using the exact tag on vehicle's registrations\n\n ")]),r("li",[e._v("\n Double check your plate entry for typos\n ")]),e._v(" "),r("li",[e._v("\n Make sure you are using the Correct ZIPCODE on file with the DMV\n ")])]),e._v(" "),r("p",{staticClass:"text-danger text-center mt-4"},[r("b-button",{staticClass:"btn btn-success",staticStyle:{width:"70%"},on:{click:function(t){return e.$router.push({path:"/wi/step-1"})}}},[e._v("\n Re-enter info\n ")])],1)])])],2)}),[],!1,null,null,null);t.default=component.exports}}]);