![]() 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([[24],{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),f=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(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},526:function(e,t,r){var content=r(539);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(82).default)("6d708003",content,!0,{sourceMap:!1})},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},538:function(e,t,r){"use strict";r(526)},539:function(e,t,r){var n=r(81)(!1);n.push([e.i,".form-plate-wrapper[data-v-54052148]{margin-bottom:10px!important;cursor:pointer;border-radius:2px}.plate-selected[data-v-54052148]{background-color:rgba(47,171,255,.1);border:1px solid #2fabff;transition:all .2s ease-in}@media only screen and (max-width:767px){.plate-selected[data-v-54052148]{border:unset}}.checkbox-input-wrapper .checkbox-inner[data-v-54052148]{background-color:unset!important}",""]),e.exports=n},545:function(e,t,r){"use strict";r(35),r(70),r(83),r(167);var n={props:["plate"],name:"PlateBox",data:function(){return{hover:!1}},methods:{selectUnselectPlate:function(){this.plateSelected?this.unselectPlate():this.selectPlate()},selectPlate:function(){this.$store.commit("SET_OFFLINE_FORM_PLATE",this.plate)},unselectPlate:function(){this.$store.commit("REMOVE_OFFLINE_FORM_PLATE",this.plate)}},computed:{vehicleInfoHeaderComponent:function(){var e=this;return function(){return r(533)("./".concat(e.currentStateCode.toUpperCase(),"/VehicleInfoHeader"))}},plateSelected:function(){var e=this;return!!this.offlineFormPlates.find((function(t){return t.license_plate===e.plate.license_plate}))}}},o=(r(538),r(53)),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-plate-wrapper",class:{"plate-hover":e.hover,"plate-selected":e.plateSelected},on:{click:function(t){return t.preventDefault(),e.selectUnselectPlate.apply(null,arguments)},mouseleave:function(t){e.hover=!1},mouseenter:function(t){e.hover=!0}}},[r("div",{staticClass:"form-plate-header"},[e.$store.state.emptyEstimates?e._e():r(e.vehicleInfoHeaderComponent,{tag:"component",attrs:{plate:e.plate}}),e._v(" "),r("div",{staticClass:"form-group "},[r("label",{staticClass:"checkbox-input-wrapper"},[r("input",{staticClass:"c-input",attrs:{type:"checkbox"},domProps:{checked:e.plateSelected}}),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",{staticClass:"font-weight-bold",staticStyle:{"font-size":"14px"}},[e._v("Renew this vehicle")])])])])],1)])}),[],!1,null,"54052148",null);t.a=component.exports},564:function(e,t,r){"use strict";var n=r(545),o={name:"SelectOfflinePlatesPage",middleware:function(e){var t=e.store.state,r=e.redirect;e.route.path;if(0===t.apiPlates.length||1==t.emptyEstimates)return r("/".concat(t.currentStateCode,"/step-1"))},mixins:[r(511).a],components:{PlateBox:n.a},data:function(){return{hoverIndex:null,submitBtnPopoverMsg:"You can't continue, at least one plate should be selected! "}},methods:{goToOfflineStep:function(){this.storeSavedSession("select-offline-plates","/".concat(this.currentStateCode,"/step-4"),this.offlineFormPlates)}},computed:{apiPlates:function(){return this.$store.getters.getAPIPlates},offlineFormPlates:function(){return this.$store.getters.getOfflineFormPlates}}},l=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("Select offline plates")]),e._v(" "),r("p",{staticClass:"description"},[e._v("Select plates")]),e._v(" "),e._l(e.apiPlates,(function(e,t){return r("plate-box",{key:e.license_plate+"_"+t,attrs:{plate:e}})})),e._v(" "),e.offlineFormPlates.length?e._e():r("span",{staticClass:"text-danger",staticStyle:{float:"right","font-weight":"bold"},domProps:{innerHTML:e._s(e.submitBtnPopoverMsg)}}),e._v(" "),r("div",{staticClass:"form-button-wrapper",staticStyle:{clear:"right","margin-top":"40px"}},[r("nuxt-link",{staticClass:"btn-return",attrs:{to:"/"+e.currentStateCode+"/step-3"}},[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 State selection\n ")]),e._v(" "),r("button",{staticClass:"btn btn-form-green",attrs:{type:"submit",disabled:!e.offlineFormPlates.length},on:{click:function(t){return t.preventDefault(),e.goToOfflineStep.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,"520441b6",null);t.a=component.exports},639:function(e,t,r){"use strict";r.r(t);var n={name:"select-offline-plates",components:{SelectOfflinePlatesPage:r(564).a}},o=r(53),component=Object(o.a)(n,(function(){var e=this.$createElement;return(this._self._c||e)("select-offline-plates-page")}),[],!1,null,"e025e504",null);t.default=component.exports}}]);