![]() 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([[3,35],{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},532:function(e,t,r){var map={"./DefaultSidebar":[530,7],"./DefaultSidebar.vue":[530,7],"./OrderSummaryCalculations":[520,6],"./OrderSummaryCalculations.vue":[520,6],"./OrderSummarySidebar":[531,5],"./OrderSummarySidebar.vue":[531,5],"./PromoCode":[519,8],"./PromoCode.vue":[519,8]};function n(e){if(!r.o(map,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=map[e],n=t[0];return r.e(t[1]).then((function(){return r(n)}))}n.keys=function(){return Object.keys(map)},n.id=532,e.exports=n},533:function(e,t,r){var map={"./AZ/VehicleInfoHeader":[550,60],"./FL/VehicleInfoHeader":[551,65],"./PA/VehicleInfoHeader":[552,67],"./WI/VehicleInfoHeader":[553,61]};function n(e){if(!r.o(map,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=map[e],n=t[0];return r.e(t[1]).then((function(){return r(n)}))}n.keys=function(){return Object.keys(map)},n.id=533,e.exports=n},554:function(e,t,r){"use strict";r(16);var n=r(33),o=(r(104),r(43),r(40),r(20),r(73),r(167),r(225),r(35),r(70),r(83),r(125),r(230)),l=r.n(o),c={name:"RenewalDetailsForm",props:{index:{required:!0},plate:{required:!0},showCancelVehicle:{required:!1,default:!0}},data:function(){return{driverLicenceFileName:"Upload copy (optional)",headerOpened:!1,useAsStatePrice:!1,selectedPriceItemLabel:"",selectedItem:this.$copyObject(this.plate),showDriverLicenceFileUpload:!1}},mounted:function(){var e=!0,t=0;this.selectedItem.key&&(t=this.selectedItem.key,e=!1),this.setSelectedPrice(t,e),this.setInitFields()},methods:{uploadFile:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.target.files,r.next=3,t.$refs.provider.validate(n);case 3:o=r.sent,o.valid&&(t.$set(t.selectedItem,"driver_licence",n[0]),t.driverLicenceFileName=t.selectedItem.driver_licence.name);case 6:case"end":return r.stop()}}),r)})))()},setInitFields:function(){this.$set(this.selectedItem,"receive_physical_copy",this.selectedItem.receive_physical_copy||0),this.$set(this.selectedItem,"receive_digital_copy",this.selectedItem.receive_digital_copy||0),this.$set(this.selectedItem,"is_registration_expired_8_months",this.selectedItem.is_registration_expired_8_months||0),this.$set(this.selectedItem,"is_registration_expired",this.selectedItem.is_registration_expired||0),this.$set(this.selectedItem,"expirationOptionsDisabled",this.selectedItem.expirationOptionsDisabled||0),this.$set(this.selectedItem,"special_plate",this.selectedItem.special_plate||0),this.$set(this.selectedItem,"personal_plate",this.selectedItem.personal_plate||0),this.$set(this.selectedItem,"driver_licence",this.selectedItem.driver_licence||null),this.$set(this.selectedItem,"vehicle_continuous_use",this.selectedItem.vehicle_continuous_use||0)},selectHeaderClicked:function(){this.headerOpened=!this.headerOpened},priceItemOptionClicked:function(e){this.setSelectedPrice(e.key),this.headerOpened=!1},getPriceItemDescription:function(e){return"".concat(e.description," ").concat(this.getItemPrice(e))},getItemPrice:function(e){return this.$money(this.$ordersCalculator.getItemPrice(this.currentStateCode,this.selectedItem.vehicle_type,this.selectedItem,e))},setSelectedPrice:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t=r?this.getPlatePrices[e]:this.getPlatePrices.find((function(t){return t.key===e})),this.selectedPriceItemLabel=this.getPriceItemDescription(t),this.selectedItem=l.a.assignIn(this.selectedItem,t),this.handleShowHideDriverLicenceFile(),this.selectedItem.expires_on){var n=this.$moment(),o=this.$moment(this.selectedItem.expires_on),c=n.diff(o,"days");c>0&&(this.selectedItem.expirationOptionsDisabled=!0,this.selectedItem.is_registration_expired=1),(c=n.diff(o,"months"))>8&&(this.selectedItem.is_registration_expired_8_months=1)}},handleShowHideDriverLicenceFile:function(){void 0!==this.selectedItem.renewal_type&&(this.selectedItem.renewal_type.startsWith("duplicate")?this.showDriverLicenceFileUpload=!0:(this.$refs.driverLicenceFile&&(this.$refs.driverLicenceFile.value=null),this.selectedItem.driver_licence=null,this.showDriverLicenceFileUpload=!1,this.driverLicenceFileName="Upload copy (optional)"))},removeSelectedPlate:function(){this.$store.commit("REMOVE_OFFLINE_FORM_PLATE",this.selectedItem)},submit:function(){this.useAsStatePrice?this.selectedItem.state_price=this.selectedItem.price:this.selectedItem.state_price=null,this.selectedItem.break_down_items=this.$ordersCalculator.getOrderItemBreakDownItems(this.selectedItem,this.currentStateCode,this.selectedItem.state_price),this.$store.commit("SET_OFFLINE_FORM_PLATE",this.$copyObject(this.selectedItem))},getWIPlatePrice:function(){var e=this,t=this.$store.getters.getAPIPlates.find((function(t){return t.license_plate.toLowerCase()===e.plate.license_plate.toLowerCase()}));return t&&t.prices&&t.prices.length?t.prices:this.$router.push({path:"/"})}},computed:{vehicleInfoHeaderComponent:function(){var e=this;return function(){return r(533)("./".concat(e.currentStateCode.toUpperCase(),"/VehicleInfoHeader"))}},showAdditionalPlateOptions:function(){return!["wi"].includes(this.currentStateCode)&&("offline"===this.$store.state.formFlow&&this.$store.state.emptyEstimates)},show8MonthExpiration:function(){return this.selectedItem.is_registration_expired&&!(this.selectedItem.expirationOptionsDisabled&&0===this.selectedItem.is_registration_expired_8_months)&&this.orderItemLineItems.registration_expired_8_months_fee},orderItemLineItems:function(){return this.$ordersCalculator.getOrderItemLineItems(this.currentStateCode)},getPlatePrices:function(){if(["wi","az"].includes(this.currentStateCode))return this.getWIPlatePrice();var e=this.$copyObject(this.selectedItem),t=e.vehicle_type_object;return this.$store.state.emptyEstimates?(this.useAsStatePrice=!1,this.$ordersCalculator.getRenewalTypeOptions(this.currentStateCode,t.code,e)):(this.useAsStatePrice=!0,this.selectedItem.prices)}},beforeMount:function(){this.$eventBus.$on("submitPlateRenewalForm_".concat(this.index),this.submit)},beforeDestroy:function(){this.$eventBus.$off("submitPlateRenewalForm_".concat(this.index))}},d=c,m=(r(583),r(53)),component=Object(m.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-plate-wrapper"},[!e.$store.state.emptyEstimates&&e.showCancelVehicle?r("div",{staticClass:"form-plate-header"},[e.$store.state.emptyEstimates?e._e():r(e.vehicleInfoHeaderComponent,{tag:"component",attrs:{plate:e.plate}}),e._v(" "),e.showCancelVehicle?r("a",{staticClass:"btn-cancel-vehicle",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.removeSelectedPlate.apply(null,arguments)}}},[r("span",[e._v("Cancel vehicle")]),e._v(" "),r("svg",{attrs:{width:"9",height:"10",viewBox:"0 0 9 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M7.99903 1.56965L1 8.5M8 8.43035L1.00097 1.5",stroke:"#FF0000","stroke-width":"1.2","stroke-linecap":"round"}})])]):e._e()],1):e._e(),e._v(" "),r("h5",[e._v("Select your renewal type")]),e._v(" "),r("div",{staticClass:"vehicle-type-wrapper mh-50",class:{"opened mh-50":e.headerOpened}},[r("div",{staticClass:"vehicle-type-wrapper-menu"},[r("div",{staticClass:"vehicle-type-header",class:{open:e.headerOpened,selected:!!e.selectedPriceItemLabel},on:{click:function(t){return t.preventDefault(),e.selectHeaderClicked.apply(null,arguments)}}},[r("p",{staticClass:"vehicle-type-title"},[e._v("Select an option")]),e._v(" "),r("h5",{staticClass:"vehicle-type-name",domProps:{innerHTML:e._s(e.selectedPriceItemLabel)}}),e._v(" "),r("svg",{staticClass:"arrow",attrs:{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M6.20003 6.56466C5.80005 7.04961 5.0571 7.04961 4.65712 6.56466L1.21085 2.38628C0.672897 1.73404 1.13684 0.749999 1.98231 0.749999L8.87484 0.75C9.72031 0.75 10.1843 1.73404 9.6463 2.38628L6.20003 6.56466Z",fill:"#182D40"}})])]),e._v(" "),r("div",{staticClass:"vehicle-type-options renewal-radio-options",class:e.headerOpened?"d-block":"d-none"},e._l(e.getPlatePrices,(function(t,n){return r("div",{key:t.key,staticClass:"vehicle-type-row",on:{click:function(r){return r.preventDefault(),e.priceItemOptionClicked(t)}}},[r("h6",[e._v(e._s(e.getPriceItemDescription(t)))])])})),0)])]),e._v(" "),r("div",{staticClass:"vehicle-renewal-option-wrapper"},[e.orderItemLineItems.receive_digital_copy?[r("h5",{staticClass:"with-icon"},[r("span",{staticClass:"text"},[e._v("Would you like to receive a digital copy of your renewal?")]),e._v(" "),e.orderItemLineItems.receive_digital_copy.description?r("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"alert-icon",attrs:{title:e.orderItemLineItems.receive_digital_copy.description}},[r("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M9 16.5C13.1421 16.5 16.5 13.1421 16.5 9C16.5 4.85786 13.1421 1.5 9 1.5C4.85786 1.5 1.5 4.85786 1.5 9C1.5 13.1421 4.85786 16.5 9 16.5Z",fill:"#9CA3B5",stroke:"#9CA3B5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),e._v(" "),r("path",{attrs:{d:"M6.8175 6.74994C6.99383 6.24869 7.34187 5.82602 7.79997 5.55679C8.25807 5.28756 8.79668 5.18914 9.32039 5.27897C9.8441 5.3688 10.3191 5.64108 10.6613 6.04758C11.0035 6.45409 11.1908 6.96858 11.19 7.49994C11.19 8.99994 8.94 9.74994 8.94 9.74994",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),e._v(" "),r("path",{attrs:{d:"M9 12.75H9.00833",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]):e._e()]),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.receive_digital_copy,expression:"selectedItem.receive_digital_copy"}],staticClass:"radio-input",attrs:{type:"radio",name:"digitalCopy_"+e.index},domProps:{value:1,checked:e._q(e.selectedItem.receive_digital_copy,1)},on:{change:function(t){return e.$set(e.selectedItem,"receive_digital_copy",1)}}}),e._v(" "),r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes (add "+e._s(e.$money(e.orderItemLineItems.receive_digital_copy.value))+")")])])])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.receive_digital_copy,expression:"selectedItem.receive_digital_copy"}],staticClass:"radio-input",attrs:{type:"radio",name:"digitalCopy_"+e.index},domProps:{value:0,checked:e._q(e.selectedItem.receive_digital_copy,0)},on:{change:function(t){return e.$set(e.selectedItem,"receive_digital_copy",0)}}}),e._v(" "),e._m(0)])])])]:e._e(),e._v(" "),e.orderItemLineItems.receive_physical_copy?[r("h5",{staticClass:"with-icon"},[r("span",{staticClass:"text"},[e._v("Would you like to receive a digital copy of your renewal?")]),e._v(" "),e.orderItemLineItems.receive_physical_copy.description?r("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"alert-icon",attrs:{title:e.orderItemLineItems.receive_physical_copy.description}},[r("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M9 16.5C13.1421 16.5 16.5 13.1421 16.5 9C16.5 4.85786 13.1421 1.5 9 1.5C4.85786 1.5 1.5 4.85786 1.5 9C1.5 13.1421 4.85786 16.5 9 16.5Z",fill:"#9CA3B5",stroke:"#9CA3B5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),e._v(" "),r("path",{attrs:{d:"M6.8175 6.74994C6.99383 6.24869 7.34187 5.82602 7.79997 5.55679C8.25807 5.28756 8.79668 5.18914 9.32039 5.27897C9.8441 5.3688 10.3191 5.64108 10.6613 6.04758C11.0035 6.45409 11.1908 6.96858 11.19 7.49994C11.19 8.99994 8.94 9.74994 8.94 9.74994",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),e._v(" "),r("path",{attrs:{d:"M9 12.75H9.00833",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]):e._e()]),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.receive_physical_copy,expression:"selectedItem.receive_physical_copy"}],staticClass:"radio-input",attrs:{type:"radio",name:"digitalCopy_"+e.index},domProps:{value:1,checked:e._q(e.selectedItem.receive_physical_copy,1)},on:{change:function(t){return e.$set(e.selectedItem,"receive_physical_copy",1)}}}),e._v(" "),r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes (add "+e._s(e.$money(e.orderItemLineItems.receive_physical_copy.value))+")")])])])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.receive_physical_copy,expression:"selectedItem.receive_physical_copy"}],staticClass:"radio-input",attrs:{type:"radio",name:"digitalCopy_"+e.index},domProps:{value:0,checked:e._q(e.selectedItem.receive_physical_copy,0)},on:{change:function(t){return e.$set(e.selectedItem,"receive_physical_copy",0)}}}),e._v(" "),e._m(1)])])])]:e._e(),e._v(" "),e.showAdditionalPlateOptions?[["az"].includes(e.currentStateCode)?[r("h5",[e._v("Is this vehicle in continuous use?")]),e._v(" "),r("div",{staticClass:"radio-option-row",staticStyle:{"margin-bottom":"13px"}},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.vehicle_continuous_use,expression:"selectedItem.vehicle_continuous_use"}],staticClass:"radio-input",attrs:{type:"radio",name:"vehicle_continuous_use_"+e.index},domProps:{value:1,checked:e._q(e.selectedItem.vehicle_continuous_use,1)},on:{change:function(t){return e.$set(e.selectedItem,"vehicle_continuous_use",1)}}}),e._v(" "),e._m(2)])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.vehicle_continuous_use,expression:"selectedItem.vehicle_continuous_use"}],staticClass:"radio-input",attrs:{type:"radio",name:"vehicle_continuous_use_"+e.index},domProps:{value:0,checked:e._q(e.selectedItem.vehicle_continuous_use,0)},on:{change:function(t){return e.$set(e.selectedItem,"vehicle_continuous_use",0)}}}),e._v(" "),e._m(3)])])]),e._v(" "),e.selectedItem.vehicle_continuous_use?r("div",{staticClass:"mb-2"},[e._v("\n This vehicle has been driven regularly and recently\n ")]):r("div",{staticClass:"mb-2"},[e._v("\n This vehicle has not been driven regularly or recently\n ")])]:e._e(),e._v(" "),e.orderItemLineItems.registration_expired_fee?[r("h5",[e._v("Is your registration expired?")]),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.is_registration_expired,expression:"selectedItem.is_registration_expired"}],staticClass:"radio-input",attrs:{type:"radio",name:"regExp_"+e.index,disabled:this.selectedItem.expirationOptionsDisabled},domProps:{value:1,checked:e._q(e.selectedItem.is_registration_expired,1)},on:{change:function(t){return e.$set(e.selectedItem,"is_registration_expired",1)}}}),e._v(" "),e._m(4)])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.is_registration_expired,expression:"selectedItem.is_registration_expired"}],staticClass:"radio-input",attrs:{type:"radio",name:"regExp_"+e.index,disabled:this.selectedItem.expirationOptionsDisabled},domProps:{value:0,checked:e._q(e.selectedItem.is_registration_expired,0)},on:{change:function(t){return e.$set(e.selectedItem,"is_registration_expired",0)}}}),e._v(" "),e._m(5)])])])]:e._e(),e._v(" "),e.show8MonthExpiration?[e._m(6),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.is_registration_expired_8_months,expression:"selectedItem.is_registration_expired_8_months"}],staticClass:"radio-input",attrs:{type:"radio",name:"regExp8Months_"+e.index,disabled:e.selectedItem.expirationOptionsDisabled},domProps:{value:1,checked:e._q(e.selectedItem.is_registration_expired_8_months,1)},on:{change:function(t){return e.$set(e.selectedItem,"is_registration_expired_8_months",1)}}}),e._v(" "),e._m(7)])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.is_registration_expired_8_months,expression:"selectedItem.is_registration_expired_8_months"}],staticClass:"radio-input",attrs:{type:"radio",name:"regExp8Months_"+e.index,disabled:e.selectedItem.expirationOptionsDisabled},domProps:{value:0,checked:e._q(e.selectedItem.is_registration_expired_8_months,0)},on:{change:function(t){return e.$set(e.selectedItem,"is_registration_expired_8_months",0)}}}),e._v(" "),e._m(8)])])])]:e._e(),e._v(" "),e.orderItemLineItems.special_plate?[r("h5",[e._v("Is this a specialty license plate?")]),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.special_plate,expression:"selectedItem.special_plate"}],staticClass:"radio-input",attrs:{type:"radio",name:"specialPlate_"+e.index},domProps:{value:1,checked:e._q(e.selectedItem.special_plate,1)},on:{change:function(t){return e.$set(e.selectedItem,"special_plate",1)}}}),e._v(" "),e._m(9)])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.special_plate,expression:"selectedItem.special_plate"}],staticClass:"radio-input",attrs:{type:"radio",name:"specialPlate_"+e.index},domProps:{value:0,checked:e._q(e.selectedItem.special_plate,0)},on:{change:function(t){return e.$set(e.selectedItem,"special_plate",0)}}}),e._v(" "),e._m(10)])])])]:e._e(),e._v(" "),e.orderItemLineItems.personal_plate_fee?[r("h5",[e._v("Is this a personalized license plate?")]),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.personal_plate,expression:"selectedItem.personal_plate"}],staticClass:"radio-input",attrs:{type:"radio",name:"personalPlate_"+e.index},domProps:{value:1,checked:e._q(e.selectedItem.personal_plate,1)},on:{change:function(t){return e.$set(e.selectedItem,"personal_plate",1)}}}),e._v(" "),e._m(11)])]),e._v(" "),r("div",{staticClass:"radio-option"},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedItem.personal_plate,expression:"selectedItem.personal_plate"}],staticClass:"radio-input",attrs:{type:"radio",name:"personalPlate_"+e.index},domProps:{value:0,checked:e._q(e.selectedItem.personal_plate,0)},on:{change:function(t){return e.$set(e.selectedItem,"personal_plate",0)}}}),e._v(" "),e._m(12)])])])]:e._e()]:e._e()],2),e._v(" "),r("transition",{attrs:{name:"slide"}},[r("ValidationProvider",{ref:"provider",attrs:{"custom-messages":{mimes:"The copy should be image or pdf"},name:"uploadLicense",rules:"mimes:image/*,application/pdf"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;t.validate;return[e.showDriverLicenceFileUpload?r("div",{staticClass:"driver-license-row"},[r("h5",[e._v("Upload a copy of your Driver License")]),e._v(" "),r("div",{staticClass:"radio-option-row"},[r("div",{staticClass:"radio-option"},[r("label",[r("input",{ref:"driverLicenceFile",staticClass:"radio-input",attrs:{type:"file",name:"uploadLicense",id:"uploadLicense",accept:"image/*,application/pdf"},on:{change:e.uploadFile}}),e._v(" "),r("div",{staticClass:"radio-box"},[r("p",[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M12.5 8.83333V11.2778C12.5 11.6019 12.3712 11.9128 12.142 12.142C11.9128 12.3712 11.6019 12.5 11.2778 12.5H2.72222C2.39807 12.5 2.08719 12.3712 1.85798 12.142C1.62877 11.9128 1.5 11.6019 1.5 11.2778V8.83333M10.0556 4.55556L7 1.5M7 1.5L3.94444 4.55556M7 1.5V8.83333",stroke:"black","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})]),e._v("\n "+e._s(e.driverLicenceFileName)+"\n ")])])]),e._v(" "),r("span",{staticClass:"validation-err-msg"},[e._v(" "+e._s(n[0])+" ")])])])]):e._e()]}}])})],1)],1)}),[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h5",[e._v("Is your registration expired more than "),r("b",[e._v("8")]),e._v(" months?")])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("Yes")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"radio-box"},[r("p",[e._v("No")])])}],!1,null,"a6bef31a",null),h=component.exports,v=r(511),_=(r(582),{name:"RenewalDetailsPage",mixins:[v.a],props:{nextPath:{required:!1},prevPath:{required:!1},showCancelVehicle:{required:!1,default:!0}},components:{RenewalDetailsForm:h},methods:{getRenewalDetailsFormKey:function(e){return"renewal_details_form_".concat(e)},submit:function(){var e=this;this.offlineFormPlates.forEach((function(t,r){e.$eventBus.$emit("submitPlateRenewalForm_".concat(r))}));var path=this.nextPath?this.nextPath:"/".concat(this.currentStateCode,"/step-6");this.storeSavedSession("renewal-details",path,{selected_items:this.offlineFormPlates,prices:this.offlineFormPlates})}}}),f=Object(m.a)(_,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h1",[e._v("Answer a few quick questions")]),e._v(" "),r("p",{staticClass:"description"},[e._v("Required to calculate your Est Reg Tax & County Fee.")]),e._v(" "),r("form",{attrs:{action:""}},[e._l(e.offlineFormPlates,(function(t,n){return r("renewal-details-form",{key:e.getRenewalDetailsFormKey(n),ref:e.getRenewalDetailsFormKey(n),refInFor:!0,attrs:{index:n,"show-cancel-vehicle":e.showCancelVehicle,plate:t}})})),e._v(" "),r("div",{staticClass:"form-button-wrapper"},[r("nuxt-link",{staticClass:"btn-return",attrs:{to:e.prevPath?e.prevPath:"/"+e.currentStateCode+"/step-4"}},[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 vehicle\n ")]),e._v(" "),r("button",{staticClass:"btn btn-form-green",attrs:{type:"submit"},on:{click:function(t){return t.preventDefault(),e.submit.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)],2)])}),[],!1,null,"26a0670f",null);t.a=f.exports},565:function(e,t,r){var content=r(584);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(82).default)("cc15d9de",content,!0,{sourceMap:!1})},582:function(e,t,r){"use strict";r.r(t);r(125),r(126),r(35),r(70),r(83),r(167),r(84);var n={name:"pa",layout:"forms",data:function(){return{steps:[{label:"Owner",classList:"step-1",path:"/pa/step-1"},{label:"Information",classList:"step-2",path:"/pa/step-2"},{label:"Terms & Signature",classList:"step-3",path:"/pa/step-3"},{label:"Vehicle",classList:"step-4",path:["/pa/verify","/pa/select-offline-plates","/pa/step-4"]},{label:"Renewal type",classList:"step-5",path:"/pa/step-5"},{label:"Payment",classList:"step-6",isLastStep:!0,path:"/pa/step-6",sidebar:"OrderSummarySidebar"},{label:"Thanks Page",classList:"",isLastStep:!0,path:"/pa/thanks-page",invisible:!0}]}},methods:{isStepSelected:function(e){return Array.isArray(e.path)?e.path.includes(this.currentStepPath):this.currentStepPath===e.path}},computed:{sidebarComponent:function(){var e;return e=this.currentStep.sidebar?this.currentStep.sidebar:"DefaultSidebar",function(){return r(532)("./"+e)}},currentStepPath:function(){return this.$route.path},currentStep:function(){var e=this;return this.steps.find((function(t){return e.isStepSelected(t)}))||{}}},beforeCreate:function(){this.$store.commit("SET_CURRENT_STATE_CODE","pa"),["/pa","/pa/"].includes(this.$route.path)&&this.$router.push({path:"/pa/step-1"})},watch:{currentStep:function(){var e=this;setTimeout((function(){e.$scrollTo(".form-content-wrapper",1e3)}),100)}}},o=r(53),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",{staticClass:"form-content-wrapper"},[r("div",{staticClass:"steps-content-wrapper"},[r("div",{staticClass:"content-inner"},[r("div",{staticClass:"steps-content",class:e.currentStep.classList||""},[r("div",{staticClass:"form-logo-wrapper"},[r("nuxt-link",{staticClass:"logo",attrs:{to:"/"}},[r("img",{attrs:{src:"/images/fl/logo-generic.svg",alt:"VR"}})]),e._v(" "),e._m(0)],1),e._v(" "),"/pa/thanks-page"!=e.currentStepPath?r("div",{staticClass:"breadcrumb-wrapper"},[e._l(e.steps,(function(t){return t.invisible?e._e():[r("a",{class:{selected:e.isStepSelected(t)},attrs:{href:"#"}},[e._v(e._s(t.label))]),e._v(" "),t.isLastStep?e._e():r("svg",{class:{selected:e.isStepSelected(t)},attrs:{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M1 1L5 5L1 9",stroke:"#868686","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}})])]}))],2):e._e(),e._v(" "),r("NuxtChild")],1)])]),e._v(" "),r(e.sidebarComponent,{tag:"component"})],1)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"right"},[t("img",{staticClass:"animated-rating",attrs:{src:"/images/fl/ratings-reveal-new.gif",alt:"Ratings"}})])}],!1,null,"f5035bde",null);t.default=component.exports},583:function(e,t,r){"use strict";r(565)},584:function(e,t,r){var n=r(81)(!1);n.push([e.i,".vehicle-type-wrapper.opened .vehicle-type-wrapper-menu[data-v-a6bef31a]{height:auto!important}",""]),e.exports=n}}]);