![]() 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([[53],{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()}}}),c=(r(515),r(53)),component=Object(c.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 c=e._i(r,null);n.checked?c<0&&e.$set(e.form,e.field,r.concat([null])):c>-1&&e.$set(e.form,e.field,r.slice(0,c).concat(r.slice(c+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),c=(r(104),r(23),r(40),r(510)),l=r(514),f=r(523);t.a={components:{InputField:c.a,FormErrorMsg:l.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(f.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},626:function(e,t,r){"use strict";r.r(t);r(20),r(15),r(24),r(16),r(25);var n=r(33),o=r(5),c=(r(104),r(23),r(511));r(31),r(42);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}var f={name:"OfflineVehicleForm",components:{InputField:r(510).a},props:{wrapperClass:{required:!1},plate:{required:!1},index:{required:!0}},data:function(){var e=this.$store.state.zip_code;return{form:this.$form({state_code:"WI",zip_code:e||"",license_plate:this.plate.license_plate||"",index:this.index,prices:this.plate.prices||[],expires_on:this.plate.expires_on||"",license_plate_label:this.plate.license_plate||""})}},methods:{storePlate:function(){this.$store.commit("SET_OFFLINE_FORM_PLATE",function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},this.form.data())),this.$store.commit("SET_ZIP_CODE",this.form.zip_code)}},computed:{offlineFormPlates:function(){return this.$store.getters.getOfflineFormPlates}},watch:{"form.zip_code":function(e){e&&(this.form.zip_code=e.substr(0,5).replace(/[\D]/g,""))},"form.license_plate":function(e){this.form.license_plate=e.replace(/[^a-zA-Z0-9]/g,"").toUpperCase()}},beforeMount:function(){this.$eventBus.$on("submitOfflineStep_".concat(this.index),this.storePlate)},beforeDestroy:function(){this.$eventBus.$off("submitOfflineStep_".concat(this.index))}},d=f,m=r(53);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var _={name:"step-2",components:{OfflineVehicleForm:Object(m.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:e.wrapperClass},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-12"},[r("input-field",{attrs:{rules:"required",form:e.form,field:"license_plate",vName:"license_plate_"+e.index,placeholder:"License plate"}})],1)]),e._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[r("input-field",{attrs:{rules:"required|length:5",form:e.form,field:"zip_code",vName:"zip_code_"+e.index,placeholder:"Zip code"}})],1)])])}),[],!1,null,"13976e55",null).exports},middleware:function(e){var t=e.store.state,r=e.redirect;e.route.path;if(0===Object.keys(t.step1Form).length)return r("/wi/step-1")},mixins:[c.a],data:function(){var e=this.$store.state,t=this.$copyObject(e.step1Form),r=this.$copyObject(e.step2Form);return{ip_address:e.ipAddress,ipVisible:!1,form:this.$form(v({state_code:"WI",order_id:this.$store.state.orderId,zip_code:this.$store.state.zipCode||"",signature_sc:"",electronic_signature:r.electronic_signature||"",agree:r.agree},t),{resetOnSuccess:!1})}},mounted:function(){var e=this.$store.state.step2Form;e.electronic_signature&&this.$refs.signaturePad.fromDataURL(e.electronic_signature)},methods:{setSelectedAddress:function(e){this.form.mailing_address=this.$copyObject(e)},submit: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.prev=0,e.form.isReady=!1,e.saveElectronicSignature(),t.next=5,e.screenshot();case 5:e.goNext(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e.form.isReady=!0;case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},goNext:function(){var e=this;for(var t in this.offlineFormPlates)this.$eventBus.$emit("submitOfflineStep_".concat(t));this.form.zip_code=this.$store.state.zip_code,this.$store.commit("SET_STEP2_FORM",this.form.data()),this.form.post("orders/store").then((function(t){var r={order_type:"online"===e.$store.state.formFlow?"online":e.$store.state.emptyEstimates?"unverified":"verified",storedPlates:e.offlineFormPlates,step1_data:e.form.data(),create_order_items:!0};e.$store.commit("SET_ORDER_ID",t.data.id),e.storeSavedSession("step-2","/wi/verify",r)}))},addMoreVehicle:function(){this.$store.commit("SET_OFFLINE_FORM_PLATE",{index:this.offlineFormPlates.length,license_plate:"",license_make:"",license_plate_label:"",offline_processing:!0,prices:[{price:""}]})}},computed:{isIPVisible:function(){return this.ipVisible},offlineFormPlates:function(){return this.$store.getters.getOfflineFormPlates}},watch:{"form.agree":function(){this.form.agree||(this.form.agree=null)}},beforeMount:function(){(!this.offlineFormPlates||this.offlineFormPlates.length<1)&&this.addMoreVehicle()}},w=Object(m.a)(_,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v("Registered vehicle owner")]),e._v(" "),r("p",{staticClass:"description"},[e._v("Enter the registered owner's vehicle information")]),e._v(" "),r("ValidationObserver",{ref:"form",scopedSlots:e._u([{key:"default",fn:function(t){t.invalid;return[r("form",{ref:"screenShotSection",attrs:{action:""}},[e._l(e.offlineFormPlates,(function(e,t){return r("offline-vehicle-form",{key:t+"_offline_vehicle_form",attrs:{plate:e,index:t,"wrapper-class":{"another-vehicle-wrapper":t>0}}})})),e._v(" "),r("div",[r("h5",{staticStyle:{"margin-bottom":"5px"}},[e._v(" Having difficulty locating your Vehicle License Plate? ")]),e._v("\n Your license plate may be found on your vehicle's front or rear bumper, or printed on your registration\n renewal notice. The following image shows the location of the license plate number on your renewal notice:\n\n "),r("div",{staticClass:"text-center",staticStyle:{"border-style":"dashed","border-width":"3px"}},[r("img",{staticClass:"img-fluid mt-3",attrs:{src:"/images/wi/vin-wi.png",alt:"Wi license plate"}})])]),e._v(" "),r("h3",[e._v("\n Terms of Purchase\n "),r("br"),e._v(" "),r("small",{directives:[{name:"show",rawName:"v-show",value:e.isIPVisible,expression:"isIPVisible"}],staticClass:"text-danger"},[e._v("IP "+e._s(e.ip_address)+"\n "+e._s(e.$moment().format("MM/DD/YYYY h:mm:ss a")))])]),e._v(" "),r("p",{staticClass:"terms-desc"},[e._v("This information will assist law enforcement in ensuring they use appropriate\n communication.")]),e._v(" "),r("input-field",{attrs:{form:e.form,field:"agree",rules:"required"}},[r("label",{staticClass:"checkbox-input-wrapper"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.agree,expression:"form.agree"}],staticClass:"c-input",attrs:{type:"checkbox",name:"agree"},domProps:{checked:Array.isArray(e.form.agree)?e._i(e.form.agree,null)>-1:e.form.agree},on:{change:function(t){var r=e.form.agree,n=t.target,o=!!n.checked;if(Array.isArray(r)){var c=e._i(r,null);n.checked?c<0&&e.$set(e.form,"agree",r.concat([null])):c>-1&&e.$set(e.form,"agree",r.slice(0,c).concat(r.slice(c+1)))}else e.$set(e.form,"agree",o)}}}),e._v(" "),r("div",{staticClass:"checkbox-inner"},[r("div",{staticClass:"outer"},[r("div",{staticClass:"inner"},[r("svg",{attrs:{width:"12",height:"8",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M11.2252 1.90835L5.60358 7.53001C5.21306 7.92053 4.57989 7.92053 4.18937 7.53001L1.32944 4.67008",stroke:"white","stroke-width":"2","stroke-linecap":"round"}})])])]),e._v(" "),r("p",[e._v("By checking this box and electronically signing your name below:")])])])]),e._v(" "),r("div",{staticClass:"terms-content-wrapper"},[r("p",[r("span",[e._v("1.")]),e._v("You acknowledge that you have read and agree to our "),r("a",{attrs:{href:"#"}},[e._v("Terms & Conditions")]),e._v(", "),r("a",{attrs:{href:"#"}},[e._v("Refund Policy")]),e._v(" and "),r("a",{attrs:{href:"#"}},[e._v("Privacy Policy")])]),e._v(" "),r("p",[r("span",[e._v("2.")]),e._v("You affirm that you are the record holder for this vehicle and that all information you have\n provided is true and accurate.")]),e._v(" "),r("p",[r("span",[e._v("3.")]),e._v("By checking this box, you also acknowledge that this website is privately owned and\n independently operated, having no affiliation with any state or federal agency. ")]),e._v(" "),r("p",[r("span",[e._v("4.")]),e._v("You hereby appoint this site as your agent and expressly authorize its personnel to access\n and\n contact the FLHSMV online vehicle services portal and process your registration on your behalf for a fee\n that\n includes features and benefits exclusive to this site. ")]),e._v(" "),r("p",[r("span",[e._v("5.")]),e._v("You also authorize this website to retain your information for future renewals.")])]),e._v(" "),r("h5",[e._v("Electronic Signature")]),e._v(" "),r("input-field",{attrs:{form:e.form,field:"electronic_signature",rules:"required"}},[r("div",{staticClass:"demo-e-signature-outer"},[r("VueSignaturePad",{ref:"signaturePad",attrs:{name:"electronic_signature",id:"electronic_signature",width:"100%",height:"150px",options:{onBegin:e.onBeginSignature,onEnd:e.onEndSignature}}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.electronic_signature,expression:"form.electronic_signature"}],attrs:{type:"hidden",name:"electronic_signature"},domProps:{value:e.form.electronic_signature},on:{input:function(t){t.target.composing||e.$set(e.form,"electronic_signature",t.target.value)}}})],1)]),e._v(" "),r("button",{staticClass:"btn-clear-signature",attrs:{type:"button"},on:{click:function(t){return t.preventDefault(),e.clearElectronicSignature.apply(null,arguments)}}},[e._v("\n Clear signature\n ")]),e._v(" "),r("div",{staticClass:"form-button-wrapper"},[r("nuxt-link",{staticClass:"btn-return",attrs:{to:"/wi/step-2"}},[r("svg",{attrs:{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M5 9L1 5L5 1",stroke:"#182D40","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v("\n Return to information\n ")]),e._v(" "),r("button",{staticClass:"btn btn-form-green",attrs:{type:"submit",disabled:!e.form.isReady},on:{click:function(t){return t.preventDefault(),e.frontendFormSubmitHandler.apply(null,arguments)}}},[e._v("\n Continue\n "),r("svg",{attrs:{width:"7",height:"13",viewBox:"0 0 7 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M1 1.5L6 6.5L1 11.5",stroke:"white","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}})])])],1),e._v(" "),r("FormErrorMsg",{attrs:{msg:e.formErrorMsg}})],2)]}}])})],1)}),[],!1,null,"754458b9",null);t.default=w.exports}}]);