![]() 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([[38],{524:function(e){e.exports=JSON.parse('[{"value":"AL","label":"ALABAMA"},{"value":"AK","label":"ALASKA"},{"value":"AZ","label":"ARIZONA"},{"value":"AR","label":"ARKANSAS"},{"value":"CA","label":"CALIFORNIA"},{"value":"CO","label":"COLORADO"},{"value":"CT","label":"CONNECTICUT"},{"value":"DE","label":"DELAWARE"},{"value":"FL","label":"FLORIDA"},{"value":"GA","label":"GEORGIA"},{"value":"HI","label":"HAWAII"},{"value":"ID","label":"IDAHO"},{"value":"IL","label":"ILLINOIS"},{"value":"IN","label":"INDIANA"},{"value":"IA","label":"IOWA"},{"value":"KS","label":"KANSAS"},{"value":"KY","label":"KENTUCKY"},{"value":"LA","label":"LOUISIANA"},{"value":"ME","label":"MAINE"},{"value":"MD","label":"MARYLAND"},{"value":"MA","label":"MASSACHUSETTS"},{"value":"MI","label":"MICHIGAN"},{"value":"MN","label":"MINNESOTA"},{"value":"MS","label":"MISSISSIPPI"},{"value":"MO","label":"MISSOURI"},{"value":"MT","label":"MONTANA"},{"value":"NE","label":"NEBRASKA"},{"value":"NV","label":"NEVADA"},{"value":"NH","label":"NEW HAMPSHIRE"},{"value":"NJ","label":"NEW JERSEY"},{"value":"NM","label":"NEW MEXICO"},{"value":"NY","label":"NEW YORK"},{"value":"NC","label":"NORTH CAROLINA"},{"value":"ND","label":"NORTH DAKOTA"},{"value":"OH","label":"OHIO"},{"value":"OK","label":"OKLAHOMA"},{"value":"OR","label":"OREGON"},{"value":"PA","label":"PENNSYLVANIA"},{"value":"RI","label":"RHODE ISLAND"},{"value":"SC","label":"SOUTH CAROLINA"},{"value":"SD","label":"SOUTH DAKOTA"},{"value":"TN","label":"TENNESSEE"},{"value":"TX","label":"TEXAS"},{"value":"UT","label":"UTAH"},{"value":"VT","label":"VERMONT"},{"value":"VA","label":"VIRGINIA"},{"value":"WA","label":"WASHINGTON"},{"value":"DC","label":"WASHINGTON DC"},{"value":"WV","label":"WEST VIRGINIA"},{"value":"WI","label":"WISCONSIN"},{"value":"WY","label":"WYOMING"},{"value":"AE","label":"Armed Forces Europe"}]')},527:function(e,t,r){var content=r(541);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(82).default)("2341ac4f",content,!0,{sourceMap:!1})},528:function(e,t,r){"use strict";var d=r(33),n=(r(104),r(35),r(83),r(103),r(510)),o=r(535),l=r(529),c=r(524),m={name:"Address",components:{VregSelect:l.a,VRegVueSimpleSuggest:o.a,inputField:n.a},props:{addressField:{required:!0},form:{required:!0}},data:function(){return{selectedSearchItem:null,states:c}},mounted:function(){this.watchZipcodeField()},methods:{watchZipcodeField:function(){var e=this;this.$watch("form.".concat(this.addressField,".zip"),(function(t){e.form[e.addressField].zip.length>5&&(e.form[e.addressField].zip=e.form[e.addressField].zip.substr(0,5))}))},suggestionClicked:function(e){var t=this;return Object(d.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e.entries>1)){r.next=2;break}return r.abrupt("return",t.handleSuggestionEntries(e));case 2:t.selectedSearchItem=e,t.form[t.addressField].street=e.text,t.setAddressFields(t.form[t.addressField]);case 5:case"end":return r.stop()}}),r)})))()},handleSuggestionEntries:function(e){var t=this;return Object(d.a)(regeneratorRuntime.mark((function r(){var d,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return d=e.streetLine,(n=new t.$addressLookup(d)).selected=t.buildAddress(e,!0),r.next=4,t.$addressLookupClient.send(n).then((function(e){var r=t.$refs.address;t.$set(r,"suggestions",e.result),r.showList()})).catch(console.log);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},setAddressFields:function(e){e.street=this.selectedSearchItem.streetLine,e.address_2=this.selectedSearchItem.secondary,e.city=this.selectedSearchItem.city,e.state_code=this.selectedSearchItem.state,e.zip=this.selectedSearchItem.zipcode},getSuggestionList:function(e){var t=this;return Object(d.a)(regeneratorRuntime.mark((function r(){var d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(e.trim().length<=3)){r.next=2;break}return r.abrupt("return",[]);case 2:return d=new t.$addressLookup(e),r.next=5,t.$addressLookupClient.send(d).then((function(e){return e.result})).catch(console.log);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))()},buildAddress:function(e,t){var r="",d=e.secondary;return e.secondary&&(e.entries>1&&(d+=t?" (".concat(e.entries,")"):" ( ".concat(e.entries," more entries)")),r=" "),e.streetLine+r+d+" "+e.city+", "+e.state+" "+e.zipcode}}},v=r(53),component=Object(v.a)(m,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("v-reg-vue-simple-suggest",{ref:"address",attrs:{mode:"input","placeholder-text":"Address","display-attribute":"streetLine",filterByQuery:!0,field:e.addressField+".street",rules:"required",list:e.getSuggestionList},on:{"suggestion-click":e.suggestionClicked},scopedSlots:e._u([{key:"suggestion-item",fn:function(t){var d=t.suggestion;t.query;return r("div",{},[r("div",{domProps:{innerHTML:e._s(e.buildAddress(d))}})])}}]),model:{value:e.form[e.addressField].street,callback:function(t){e.$set(e.form[e.addressField],"street",t)},expression:"form[addressField].street"}}),e._v(" "),r("input-field",{attrs:{form:e.form,field:e.addressField+".address_2"}},[r("p",{staticClass:"placeholder-text"},[e._v("Apartment, suite, etc. (optional)")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.form[e.addressField].address_2,expression:"form[addressField].address_2"}],staticClass:"form-control",attrs:{type:"text",name:e.addressField+".address_2"},domProps:{value:e.form[e.addressField].address_2},on:{input:function(t){t.target.composing||e.$set(e.form[e.addressField],"address_2",t.target.value)}}})]),e._v(" "),r("input-field",{attrs:{form:e.form,field:e.addressField+".city",rules:"required"}},[r("p",{staticClass:"placeholder-text required"},[e._v("City")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.form[e.addressField].city,expression:"form[addressField].city"}],staticClass:"form-control",attrs:{type:"text",name:e.addressField+".city"},domProps:{value:e.form[e.addressField].city},on:{input:function(t){t.target.composing||e.$set(e.form[e.addressField],"city",t.target.value)}}})]),e._v(" "),r("div",{staticClass:"v-form-row"},[r("div",{staticClass:"v-form-col"},[e.states?r("vreg-select",{attrs:{required:"",form:e.form,fieldValue:e.form[e.addressField].state_code,options:e.states,"header-text":"State",field:e.addressField+".state_code"},on:{"value-selected":function(t){return e.form[e.addressField].state_code=t}}}):e._e()],1),e._v(" "),r("div",{staticClass:"v-form-col"},[r("input-field",{attrs:{form:e.form,field:e.addressField+".zip",rules:"required|length:5"}},[r("p",{staticClass:"placeholder-text required"},[e._v("Zip code")]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.form[e.addressField].zip,expression:"form[addressField].zip"}],staticClass:"form-control",attrs:{type:"text",name:e.addressField+".zip"},domProps:{value:e.form[e.addressField].zip},on:{input:function(t){t.target.composing||e.$set(e.form[e.addressField],"zip",t.target.value)}}})])],1)])],1)}),[],!1,null,"32eee166",null);t.a=component.exports},540:function(e,t,r){"use strict";r(527)},541:function(e,t,r){var d=r(81)(!1);d.push([e.i,"#address-confirmation-modal .next-step-button{padding:6px;width:150px}#address-confirmation-modal .modal-footer{justify-content:space-between!important}legend{all:unset!important}[dir=ltr] fieldset{margin-left:2px}[dir=ltr] fieldset,[dir=rtl] fieldset{margin-right:2px}[dir=rtl] fieldset{margin-left:2px}fieldset{display:block;padding:12px 32px 16px 18px;border-width:1px;border-style:groove;border-radius:3px;border-color:rgba(108,117,125,.3)!important}",""]),e.exports=d},546:function(e,t,r){"use strict";r(31),r(344),r(103),r(40);var d={name:"AddressConfirmation",props:{originalAddress:{required:!0,type:Object}},data:function(){return{newAddress:{},usedAddress:{},clonedOriginalAddress:{},selectedAddress:"original_address",modalId:"address-confirmation-modal",ready:!1,showAddressConfirmationSuggestions:!1,addressAnalyzeMessage:""}},mounted:function(){this.callAPI()},methods:{close:function(){this.$bvModal.hide(this.modalId),this.ready=!1,this.$emit("close-address-confirmation-modal")},continueClicked:function(){this.$emit("goNext"),this.$bvModal.hide(this.modalId)},callAPI:function(){var e=this;this.newAddress=this.$copyObject(this.originalAddress),this.clonedOriginalAddress=this.$copyObject(this.originalAddress);var t=r(346),d=t.core,n=new(0,t.usStreet.Lookup);n.maxCandidates=10,n.street=this.clonedOriginalAddress.street,n.secondary=this.clonedOriginalAddress.address_2,n.city=this.clonedOriginalAddress.city,n.state=this.clonedOriginalAddress.state_code,n.zipCode=this.clonedOriginalAddress.zip,n.match="invalid";var o=new d.SharedCredentials("13074803248752288","vehiclerenew.com");return new d.ClientBuilder(o).withBaseUrl("https://us-street.api.smartystreets.com/street-address").buildUsStreetApiClient().send(n).then((function(t){var component=t.lookups[0].result[0].components;Array.isArray(component)&&(component=_.first(component)),e.newAddress=e.getNewFormattedAddress(e.$copyObject(component));var r=e.$copyObject(e.newAddress);delete r.plus_4_code;var d=e.$haveSameData(e.clonedOriginalAddress,r);e.analyzeNewAddressResponse(t.lookups[0].result[0].analysis),e.showAddressConfirmationSuggestions=!1===d||!0===d&&e.newAddress.plus_4_code,e.ready=!0,e.$bvModal.show(e.modalId)})).catch(console.log)},analyzeNewAddressResponse:function(e){var t=e.dpvMatchCode,r=e.noStat,d=e.dpvFootnotes;switch(this.addressAnalyzeMessage="",t){case"Y":"N"===r||(this.addressAnalyzeMessage="The Address is not deliverable!");break;case"N":this.addressAnalyzeMessage="Address is not present in the USPS data, Please verify that is correct";break;case"S":this.addressAnalyzeMessage="The main address is present in the USPS data, but the submitted secondary information (apartment, suite, etc.) was not recognized.";break;case"D":this.addressAnalyzeMessage="The main address is present in the USPS data, but it is missing secondary information (apartment, suite, etc.).";break;default:this.addressAnalyzeMessage="The address is not present in the USPS database,Please verify that is correct"}switch(d){case"AAM3":this.addressAnalyzeMessage+="<br> ZIP, state, city, and street name match, but the primary number is invalid.";break;case"AAN1":this.addressAnalyzeMessage+="<br> ZIP, state, city, street name, and primary number match, but there is secondary information such as apartment or suite that would be helpful."}},getFormattedStreet:function(address){var e="";return address.primaryNumber&&(e+=" "+address.primaryNumber),address.streetPredirection&&(e+=" "+address.streetPredirection),address.streetName&&(e+=" "+address.streetName),address.streetSuffix&&(e+=" "+address.streetSuffix),e.trim()},getFormattedAddress2:function(address){var e="";return address.secondaryDesignator&&(e+=" "+address.secondaryDesignator),address.secondaryNumber&&(e+=" "+address.secondaryNumber),e.trim()},getNewFormattedAddress:function(address){return{street:this.getFormattedStreet(address),address_2:this.getFormattedAddress2(address),city:address.cityName||"",state_code:address.state||"",zip:""|address.zipCode,country_code:"US",plus_4_code:address.plus4Code}}},computed:{customerFullName:function(){var e=this.$store.state.step1Form,t=e.first_name,r=e.last_name;return"".concat(t," ").concat(r)}},watch:{selectedAddress:function(e){switch(e){case"new_address":this.usedAddress=this.newAddress;break;case"original_address":this.usedAddress=this.$copyObject(this.clonedOriginalAddress)}this.$emit("setSelectedAddress",this.usedAddress)}}},n=d,o=(r(540),r(53)),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-modal",{attrs:{id:e.modalId,"hide-footer":"","hide-header":"","modal-class":"address-confirm-modal",visible:"","no-close-on-backdrop":""}},[r("h1",[e._v("Address confirmation")]),e._v(" "),e.ready?[r("h4",[e._v("USPS adjusted the address entered")]),e._v(" "),r("p",{staticClass:"desc"},[e._v('Please verify and select the address for this order, then click ”Continue”. If you still need to\n modify the address click "Back"')]),e._v(" "),r("h5",{staticClass:"text-danger text-center",domProps:{innerHTML:e._s(e.addressAnalyzeMessage)}}),e._v(" "),r("h6",[e._v("Address entered")]),e._v(" "),r("label",{staticClass:"step-radio-label"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedAddress,expression:"selectedAddress"}],staticClass:"radio-input",attrs:{type:"radio",name:"addressConfirmation",value:"original_address"},domProps:{checked:e._q(e.selectedAddress,"original_address")},on:{change:function(t){e.selectedAddress="original_address"}}}),e._v(" "),r("div",{staticClass:"step-radio-box"},[r("div",{staticClass:"outer"},[r("div",{staticClass:"inner"})]),e._v(" "),r("p",[r("span",{staticClass:"user-name"},[e._v(e._s(e.customerFullName))]),e._v(" "),r("br"),e._v("\n "+e._s(e.clonedOriginalAddress.street)+"\n "),e.clonedOriginalAddress.address_2?r("br"):e._e(),e._v("\n "+e._s(e.clonedOriginalAddress.address_2)+"\n "),r("br"),e._v("\n "+e._s(e.clonedOriginalAddress.city)+",\n "+e._s(e.clonedOriginalAddress.state_code)+"\n "+e._s(e.clonedOriginalAddress.zip)+"\n ")])])]),e._v(" "),r("h6",[e._v("Suggestion")]),e._v(" "),r("label",{staticClass:"step-radio-label"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedAddress,expression:"selectedAddress"}],staticClass:"radio-input",attrs:{type:"radio",name:"addressConfirmation",value:"new_address"},domProps:{checked:e._q(e.selectedAddress,"new_address")},on:{change:function(t){e.selectedAddress="new_address"}}}),e._v(" "),r("div",{staticClass:"step-radio-box"},[r("div",{staticClass:"outer"},[r("div",{staticClass:"inner"})]),e._v(" "),r("p",[r("span",{staticClass:"user-name"},[e._v(e._s(e.customerFullName))]),e._v(" "),r("br"),e._v("\n "+e._s(e.newAddress.street)+"\n "),e.clonedOriginalAddress.address_2?r("br"):e._e(),e._v("\n "+e._s(e.newAddress.address_2)+"\n "),r("br"),e._v("\n "+e._s(e.newAddress.city)+",\n "+e._s(e.newAddress.state_code)+"\n "+e._s(e.newAddress.zip)+" - "+e._s(e.newAddress.plus_4_code||"")+"\n ")])])])]:[r("h5",{staticClass:"text-center"},[e._v("\n Verifying Address ...\n ")])],e._v(" "),r("div",{staticClass:"form-button-wrapper"},[r("a",{staticClass:"btn-return",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.close.apply(null,arguments)}}},[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 Back\n ")]),e._v(" "),e.ready?r("button",{staticClass:"btn btn-form-green",attrs:{type:"submit"},on:{click:function(t){return t.preventDefault(),e.continueClicked.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"}})])]):e._e()])],2)}),[],!1,null,null,null);t.a=component.exports},649:function(e,t,r){"use strict";r.r(t);r(23);var d=r(511),n=r(528),o={name:"step-2.vue",middleware:function(e){var t=e.store.state,r=e.redirect;e.route.path;if(0===Object.keys(t.step1Form).length)return r("/pa/step-1")},components:{AddressConfirmation:r(546).a,Address:n.a},mixins:[d.a],data:function(){var e=this.$copyObject(this.$store.state.step2Form);return{showAddressConfirmationModal:!1,readyToContinue:!0,form:this.$form({state_code:"PA",residential_address:e.residential_address||{street:"",city:"",address_2:"",country_code:"US",zip:"",state_code:"PA"}})}},methods:{submit:function(){this.showAddressConfirmation()},showAddressConfirmation:function(){this.showAddressConfirmationModal=!0},goNext:function(){this.$store.commit("SET_STEP2_FORM",this.form.data()),this.storeSavedSession("step-2","/pa/step-3",this.form.data())},setSelectedAddress:function(e){this.form.residential_address=this.$copyObject(e)}}},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("Information")]),e._v(" "),r("p",{staticClass:"description"},[e._v("Enter the Address where you would like your Order Shipped.")]),e._v(" "),r("ValidationObserver",{ref:"form",scopedSlots:e._u([{key:"default",fn:function(t){var d=t.invalid;return[r("form",{attrs:{action:""}},[r("Address",{attrs:{form:e.form,"address-field":"residential_address"}}),e._v(" "),r("div",{staticClass:"form-button-wrapper"},[r("nuxt-link",{staticClass:"btn-return",attrs:{to:"/pa/step-1"}},[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 Owner\n ")]),e._v(" "),r("button",{staticClass:"btn btn-form-green",attrs:{type:"submit",disabled:d||!e.readyToContinue},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}})],1)]}}])}),e._v(" "),e.showAddressConfirmationModal?r("address-confirmation",{attrs:{"original-address":e.form.residential_address},on:{goNext:e.goNext,"close-address-confirmation-modal":function(t){e.showAddressConfirmationModal=!1},setSelectedAddress:e.setSelectedAddress}}):e._e()],1)}),[],!1,null,"4af5c4df",null);t.default=component.exports}}]);