Spamworldpro Mini Shell
Spamworldpro


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/node_modules/.cache/nuxt/dist/server/pages/wi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/vreg/node_modules/.cache/nuxt/dist/server/pages/wi/step-2.js.map
{"version":3,"file":"pages/wi/step-2.js","sources":["webpack:///./pages/wi/step-2.vue?b8c7","webpack:///./components/States/WI/OfflineVehicleForm.vue?e18e","webpack:///./components/States/WI/OfflineVehicleForm.vue","webpack:///./components/States/WI/OfflineVehicleForm.vue?9859","webpack:///./components/States/WI/OfflineVehicleForm.vue?c277","webpack:///./pages/wi/step-2.vue","webpack:///./pages/wi/step-2.vue?0678","webpack:///./pages/wi/step-2.vue?7115","webpack:///./components/Forms/InputField.vue?b99a","webpack:///./components/Forms/InputField.vue","webpack:///./components/Forms/InputField.vue?b7d9","webpack:///./components/Forms/InputField.vue?be57","webpack:///./components/Forms/InputField.vue?bf7d","webpack:///./components/Forms/FormErrorMsg.vue?9f25","webpack:///./mixins/forms.js","webpack:///./components/Forms/FormErrorMsg.vue?497a","webpack:///./components/Forms/FormErrorMsg.vue","webpack:///./components/Forms/FormErrorMsg.vue?5544","webpack:///./components/Forms/FormErrorMsg.vue?6e2b","webpack:///./components/Forms/InputField.vue?db84","webpack:///./components/Forms/InputField.vue?fbac","webpack:///./components/Forms/FormErrorMsg.vue?6c28","webpack:///./components/Forms/FormErrorMsg.vue?d1be"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._ssrNode(\"<h1 data-v-754458b9>Registered vehicle owner</h1> <p class=\\\"description\\\" data-v-754458b9>Enter the registered owner's vehicle information</p> \"),_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('form',{ref:\"screenShotSection\",attrs:{\"action\":\"\"}},[_vm._l((_vm.offlineFormPlates),function(offlinePlate,index){return _c('offline-vehicle-form',{key:(index + \"_offline_vehicle_form\"),attrs:{\"plate\":offlinePlate,\"index\":index,\"wrapper-class\":{ 'another-vehicle-wrapper':index >0 }}})}),_vm._v(\" \"),_c('div',[_c('h5',{staticStyle:{\"margin-bottom\":\"5px\"}},[_vm._v(\" Having difficulty locating your Vehicle License Plate? \")]),_vm._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        \"),_c('div',{staticClass:\"text-center\",staticStyle:{\"border-style\":\"dashed\",\"border-width\":\"3px\"}},[_c('img',{staticClass:\"img-fluid mt-3\",attrs:{\"src\":\"/images/wi/vin-wi.png\",\"alt\":\"Wi license plate\"}})])]),_vm._v(\" \"),_c('h3',[_vm._v(\"\\n        Terms of Purchase\\n        \"),_c('br'),_vm._v(\" \"),_c('small',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isIPVisible),expression:\"isIPVisible\"}],staticClass:\"text-danger\"},[_vm._v(\"IP \"+_vm._s(_vm.ip_address)+\"\\n          \"+_vm._s(_vm.$moment().format('MM/DD/YYYY h:mm:ss a')))])]),_vm._v(\" \"),_c('p',{staticClass:\"terms-desc\"},[_vm._v(\"This information will assist law enforcement in ensuring they use appropriate\\n        communication.\")]),_vm._v(\" \"),_c('input-field',{attrs:{\"form\":_vm.form,\"field\":\"agree\",\"rules\":\"required\"}},[_c('label',{staticClass:\"checkbox-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.agree),expression:\"form.agree\"}],staticClass:\"c-input\",attrs:{\"type\":\"checkbox\",\"name\":\"agree\"},domProps:{\"checked\":Array.isArray(_vm.form.agree)?_vm._i(_vm.form.agree,null)>-1:(_vm.form.agree)},on:{\"change\":function($event){var $$a=_vm.form.agree,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.form, \"agree\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.form, \"agree\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.form, \"agree\", $$c)}}}}),_vm._v(\" \"),_c('div',{staticClass:\"checkbox-inner\"},[_c('div',{staticClass:\"outer\"},[_c('div',{staticClass:\"inner\"},[_c('svg',{attrs:{\"width\":\"12\",\"height\":\"8\",\"viewBox\":\"0 0 13 9\",\"fill\":\"none\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('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\"}})])])]),_vm._v(\" \"),_c('p',[_vm._v(\"By checking this box and electronically signing your name below:\")])])])]),_vm._v(\" \"),_c('div',{staticClass:\"terms-content-wrapper\"},[_c('p',[_c('span',[_vm._v(\"1.\")]),_vm._v(\"You acknowledge that you have read and agree to our \"),_c('a',{attrs:{\"href\":\"#\"}},[_vm._v(\"Terms & Conditions\")]),_vm._v(\", \"),_c('a',{attrs:{\"href\":\"#\"}},[_vm._v(\"Refund Policy\")]),_vm._v(\" and \"),_c('a',{attrs:{\"href\":\"#\"}},[_vm._v(\"Privacy Policy\")])]),_vm._v(\" \"),_c('p',[_c('span',[_vm._v(\"2.\")]),_vm._v(\"You affirm that you are the record holder for this vehicle and that all information you have\\n          provided is true and accurate.\")]),_vm._v(\" \"),_c('p',[_c('span',[_vm._v(\"3.\")]),_vm._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. \")]),_vm._v(\" \"),_c('p',[_c('span',[_vm._v(\"4.\")]),_vm._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. \")]),_vm._v(\" \"),_c('p',[_c('span',[_vm._v(\"5.\")]),_vm._v(\"You also authorize this website to retain your information for future renewals.\")])]),_vm._v(\" \"),_c('h5',[_vm._v(\"Electronic Signature\")]),_vm._v(\" \"),_c('input-field',{attrs:{\"form\":_vm.form,\"field\":\"electronic_signature\",\"rules\":\"required\"}},[_c('div',{staticClass:\"demo-e-signature-outer\"},[_c('VueSignaturePad',{ref:\"signaturePad\",attrs:{\"name\":\"electronic_signature\",\"id\":\"electronic_signature\",\"width\":\"100%\",\"height\":\"150px\",\"options\":{ onBegin : _vm.onBeginSignature, onEnd : _vm.onEndSignature }}}),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.electronic_signature),expression:\"form.electronic_signature\"}],attrs:{\"type\":\"hidden\",\"name\":\"electronic_signature\"},domProps:{\"value\":(_vm.form.electronic_signature)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, \"electronic_signature\", $event.target.value)}}})],1)]),_vm._v(\" \"),_c('button',{staticClass:\"btn-clear-signature\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.clearElectronicSignature.apply(null, arguments)}}},[_vm._v(\"\\n        Clear signature\\n      \")]),_vm._v(\" \"),_c('div',{staticClass:\"form-button-wrapper\"},[_c('nuxt-link',{staticClass:\"btn-return\",attrs:{\"to\":\"/wi/step-2\"}},[_c('svg',{attrs:{\"width\":\"6\",\"height\":\"10\",\"viewBox\":\"0 0 6 10\",\"fill\":\"none\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"d\":\"M5 9L1 5L5 1\",\"stroke\":\"#182D40\",\"stroke-width\":\"1.2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}})]),_vm._v(\"\\n          Return to information\\n        \")]),_vm._v(\" \"),_c('button',{staticClass:\"btn btn-form-green\",attrs:{\"type\":\"submit\",\"disabled\":!_vm.form.isReady},on:{\"click\":function($event){$event.preventDefault();return _vm.frontendFormSubmitHandler.apply(null, arguments)}}},[_vm._v(\"\\n          Continue\\n          \"),_c('svg',{attrs:{\"width\":\"7\",\"height\":\"13\",\"viewBox\":\"0 0 7 13\",\"fill\":\"none\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"d\":\"M1 1.5L6 6.5L1 11.5\",\"stroke\":\"white\",\"stroke-width\":\"1.2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}})])])],1),_vm._v(\" \"),_c('FormErrorMsg',{attrs:{\"msg\":_vm.formErrorMsg}})],2)]}}])})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.wrapperClass},[_vm._ssrNode(\"<div class=\\\"row\\\" data-v-13976e55>\",\"</div>\",[_vm._ssrNode(\"<div class=\\\"col-md-12\\\" data-v-13976e55>\",\"</div>\",[_c('input-field',{attrs:{\"rules\":\"required\",\"form\":_vm.form,\"field\":\"license_plate\",\"vName\":(\"license_plate_\" + _vm.index),\"placeholder\":\"License plate\"}})],1)]),_vm._ssrNode(\" \"),_vm._ssrNode(\"<div class=\\\"row\\\" data-v-13976e55>\",\"</div>\",[_vm._ssrNode(\"<div class=\\\"col-md-6\\\" data-v-13976e55>\",\"</div>\",[_c('input-field',{attrs:{\"rules\":\"required|length:5\",\"form\":_vm.form,\"field\":\"zip_code\",\"vName\":(\"zip_code_\" + _vm.index),\"placeholder\":\"Zip code\"}})],1)])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\nimport InputField from \"@/components/Forms/InputField\";\n\nexport default {\n  name: \"OfflineVehicleForm\",\n  components: {InputField},\n  props: {\n    wrapperClass: {\n      required: false\n    },\n    plate: {\n      required: false\n    },\n    index: {\n      required: true\n    }\n  },\n  data() {\n    let zipCode = this.$store.state.zip_code;\n\n    return {\n      form: this.$form({\n        state_code: 'WI',\n        zip_code: zipCode || '',\n        license_plate: this.plate.license_plate || '',\n        index: this.index,\n        prices: this.plate.prices || [],\n        expires_on: this.plate.expires_on || '',\n        license_plate_label: this.plate.license_plate || '',\n      })\n    }\n  },\n  methods: {\n\n    storePlate() {\n      this.$store.commit('SET_OFFLINE_FORM_PLATE', {...this.form.data()});\n      this.$store.commit('SET_ZIP_CODE', this.form.zip_code);\n    }\n  },\n  computed: {\n    offlineFormPlates() {\n      return this.$store.getters.getOfflineFormPlates\n    }\n  },\n  watch: {\n    'form.zip_code'(value) {\n      if (value) {\n        this.form.zip_code = value.substr(0, 5).replace(/[\\D]/g, '');\n      }\n    },\n    'form.license_plate'(value) {\n      this.form.license_plate = value.replace(/[^a-zA-Z0-9]/g, '').toUpperCase();\n    }\n  },\n  beforeMount() {\n    this.$eventBus.$on(`submitOfflineStep_${this.index}`, this.storePlate);\n  },\n  beforeDestroy() {\n    this.$eventBus.$off(`submitOfflineStep_${this.index}`);\n  }\n}\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfflineVehicleForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfflineVehicleForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OfflineVehicleForm.vue?vue&type=template&id=13976e55&scoped=true&\"\nimport script from \"./OfflineVehicleForm.vue?vue&type=script&lang=js&\"\nexport * from \"./OfflineVehicleForm.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n  \n  \n}\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  injectStyles,\n  \"13976e55\",\n  \"688abb66\"\n  \n)\n\nexport default component.exports","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport forms from '@/mixins/forms'\nimport OfflineVehicleForm from \"@/components/States/WI/OfflineVehicleForm\";\n\nexport default {\n  name: \"step-2\",\n  components: {OfflineVehicleForm},\n  middleware({store: {state}, redirect, route: {path}}) {\n    if (Object.keys(state.step1Form).length === 0) {\n      return redirect('/wi/step-1');\n    }\n  },\n  mixins: [forms],\n  data() {\n    let state = this.$store.state,\n      step1Form = this.$copyObject(state.step1Form),\n      step2Form = this.$copyObject(state.step2Form),\n      ipAddress = state.ipAddress;\n\n    return {\n      ip_address: ipAddress,\n      ipVisible: false,\n      form: this.$form({\n        state_code: 'WI',\n        order_id: this.$store.state.orderId,\n        zip_code: this.$store.state.zipCode || '',\n        signature_sc: '',\n        electronic_signature: step2Form.electronic_signature || '',\n        agree: step2Form.agree,\n        ...step1Form\n      }, {\n        resetOnSuccess: false\n      })\n\n    }\n  },\n  mounted() {\n    let step2Form = this.$store.state.step2Form;\n\n    if (step2Form.electronic_signature) {\n      this.$refs.signaturePad.fromDataURL(step2Form.electronic_signature);\n    }\n  },\n  methods: {\n\n    setSelectedAddress(selectedAddress) {\n      this.form.mailing_address = this.$copyObject(selectedAddress);\n    },\n    async submit() {\n      try {\n        this.form.isReady = false;\n\n        this.saveElectronicSignature();\n        await this.screenshot();\n\n        this.goNext();\n      } catch (e) {\n        this.form.isReady = true;\n      }\n\n    },\n    goNext() {\n\n      for (let index in this.offlineFormPlates) {\n        this.$eventBus.$emit(`submitOfflineStep_${index}`);\n      }\n\n      this.form.zip_code = this.$store.state.zip_code;\n      this.$store.commit('SET_STEP2_FORM', this.form.data());\n\n      this.form.post(`orders/store`)\n        .then(response => {\n          let payload = {\n            order_type: this.$store.state.formFlow === 'online' ? 'online' : (this.$store.state.emptyEstimates ? 'unverified' : 'verified'),\n            storedPlates: this.offlineFormPlates,\n            step1_data: this.form.data(),\n            create_order_items: true\n          }\n          this.$store.commit('SET_ORDER_ID', response.data.id);\n          this.storeSavedSession('step-2', '/wi/verify', payload);\n        });\n    },\n    addMoreVehicle() {\n      this.$store.commit('SET_OFFLINE_FORM_PLATE', {\n        index: this.offlineFormPlates.length,\n        'license_plate': '',\n        'license_make': '',\n        'license_plate_label': '',\n        offline_processing: true,\n        'prices': [{\n          price: ''\n        }],\n      });\n    },\n\n  },\n  computed: {\n    isIPVisible() {\n      return this.ipVisible;\n    },\n    offlineFormPlates() {\n      return this.$store.getters.getOfflineFormPlates;\n    }\n  },\n  watch: {\n    'form.agree'() {\n      if (!this.form.agree) {\n        this.form.agree = null;\n      }\n    }\n  },\n  beforeMount() {\n    if (!this.offlineFormPlates || this.offlineFormPlates.length < 1) {\n      this.addMoreVehicle();\n    }\n  }\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./step-2.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./step-2.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./step-2.vue?vue&type=template&id=754458b9&scoped=true&\"\nimport script from \"./step-2.vue?vue&type=script&lang=js&\"\nexport * from \"./step-2.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n  \n  \n}\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  injectStyles,\n  \"754458b9\",\n  \"2fdba68c\"\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ValidationProvider',{attrs:{\"rules\":_vm.rules,\"name\":_vm.vName || _vm.field},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"form-group with-animation\",class:_vm.formGroupClasses},[_vm._t(\"default\",function(){return [_c('p',{staticClass:\"placeholder-text\",class:{'required':_vm.isRequired}},[_vm._v(_vm._s(_vm.placeholder))]),_vm._v(\" \"),((_vm.type)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form[_vm.field]),expression:\"form[field]\"}],staticClass:\"form-control\",class:{'with-border':_vm.addWithBorderClass},attrs:{\"disabled\":_vm.$attrs['disabled'],\"name\":_vm.vName || _vm.field,\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.form[_vm.field])?_vm._i(_vm.form[_vm.field],null)>-1:(_vm.form[_vm.field])},on:{\"change\":function($event){var $$a=_vm.form[_vm.field],$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.form, _vm.field, $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.form, _vm.field, $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.form, _vm.field, $$c)}}}}):((_vm.type)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form[_vm.field]),expression:\"form[field]\"}],staticClass:\"form-control\",class:{'with-border':_vm.addWithBorderClass},attrs:{\"disabled\":_vm.$attrs['disabled'],\"name\":_vm.vName || _vm.field,\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.form[_vm.field],null)},on:{\"change\":function($event){return _vm.$set(_vm.form, _vm.field, null)}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form[_vm.field]),expression:\"form[field]\"}],staticClass:\"form-control\",class:{'with-border':_vm.addWithBorderClass},attrs:{\"disabled\":_vm.$attrs['disabled'],\"name\":_vm.vName || _vm.field,\"type\":_vm.type},domProps:{\"value\":(_vm.form[_vm.field])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.form, _vm.field, $event.target.value)}}})]}),_vm._v(\" \"),_vm._l((_vm.$getFormInputErrors(errors,_vm.field,_vm.form)),function(err){return (!_vm.errorMsgsOutOfWrapper)?_c('span',{staticClass:\"validation-err-msg\",domProps:{\"innerHTML\":_vm._s(err)}}):_vm._e()})],2),_vm._v(\" \"),_vm._l((_vm.$getFormInputErrors(errors,_vm.field,_vm.form)),function(err){return (_vm.errorMsgsOutOfWrapper)?_c('span',{staticClass:\"validation-err-msg\",domProps:{\"innerHTML\":_vm._s(err)}}):_vm._e()})]}}],null,true)})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n  name: \"input-field\",\n  props: {\n    vName: {\n      required: false,\n    },\n    type: {\n      required: false,\n      default: 'text'\n    },\n    rules: {\n      required: false,\n      type: String,\n      default: ''\n    },\n    formGroupClass: {\n      require: false,\n      default: ''\n    },\n    form: {\n      required: true\n    },\n    field: {\n      required: true,\n      type: String\n    },\n    placeholder: {\n      required: false,\n      default: ''\n    },\n    errorMsgsOutOfWrapper: {\n      required: false,\n      default: false\n    }\n  },\n  data() {\n    return {\n      addWithBorderClass: false,\n      formGroupClasses: []\n    }\n  },\n  mounted() {\n\n    this.formGroupClass.split(' ').forEach(c => {\n      if (c.trim()) {\n        this.formGroupClasses.push({[c]: true});\n      }\n    });\n\n    this.focusOnInputIfValue();\n\n  },\n  methods: {\n    focusOnInputIfValue() {\n\n      if (!this.fieldValue) {\n        return;\n      }\n\n      let hasFocusedClass = this.formGroupClasses.find(c => {\n        if (c['focused']) {\n          return c;\n        }\n      });\n\n      if (hasFocusedClass) {\n        return;\n      }\n\n      this.formGroupClasses.push({\n        'focused': true\n      });\n    },\n\n  },\n  computed: {\n    isRequired() {\n      return this.rules.indexOf('required') >= 0;\n    },\n    fieldValue() {\n      return this.field.split('.').reduce((o, f) => o[f], this.form);\n    }\n  },\n  watch: {\n    fieldValue() {\n      this.focusOnInputIfValue();\n    }\n  }\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputField.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputField.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InputField.vue?vue&type=template&id=7fbd73e8&scoped=true&\"\nimport script from \"./InputField.vue?vue&type=script&lang=js&\"\nexport * from \"./InputField.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n  \n  var style0 = require(\"./InputField.vue?vue&type=style&index=0&id=7fbd73e8&scoped=true&lang=css&\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  injectStyles,\n  \"7fbd73e8\",\n  \"4951dfc0\"\n  \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--3-oneOf-1-2!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputField.vue?vue&type=style&index=0&id=7fbd73e8&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add CSS to SSR context\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesServer.js\").default\nmodule.exports.__inject__ = function (context) {\n  add(\"f5598fc8\", content, true, context)\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--3-oneOf-1-2!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormErrorMsg.vue?vue&type=style&index=0&id=4c656529&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add CSS to SSR context\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesServer.js\").default\nmodule.exports.__inject__ = function (context) {\n  add(\"3e06b350\", content, true, context)\n};","import InputField from \"@/components/Forms/InputField\";\nimport FormErrorMsg from \"@/components/Forms/FormErrorMsg\";\nimport {toPng} from 'html-to-image';\n\nexport default {\n  components: {\n    InputField, FormErrorMsg\n  },\n  data() {\n    return {\n      formErrorMsg: ''\n    }\n  },\n  methods: {\n    frontendFormSubmitHandler() {\n\n      if (!this.$refs.form) {\n        return this.submit();\n      }\n\n      this.$refs.form.validate().then(success => {\n        //submit the form if not errors occurs\n        if (success) {\n          return this.submit();\n        }\n\n        let firstErrorFieldName = this.getFirstFieldErrorName();\n\n        //focus on the input if found!\n        if (firstErrorFieldName) {\n          this.focusOnElement(firstErrorFieldName);\n        }\n\n      });\n\n    },\n    getFirstFieldErrorName() {\n      let errorsKeys = Object.keys(this.$refs.form.errors),\n        firstErrorFieldName;\n\n      while (errorsKeys.length) {\n        firstErrorFieldName = errorsKeys.shift();\n\n        if (this.$refs.form.errors[firstErrorFieldName].length) {\n          return firstErrorFieldName;\n        }\n      }\n    },\n    focusOnElement(fieldName) {\n      let [el] = document.getElementsByName(fieldName);\n\n      //try with id\n      if (!el) {\n        el = document.getElementById(fieldName);\n      }\n\n      el.scrollIntoView({behavior: 'smooth'});\n      el.focus();\n    },\n    catchError(err) {\n      if (err.response) {\n        this.form.onFail(err.response.data.data);\n        this.formErrorMsg = err.response.data.message;\n      } else {\n        this.formErrorMsg = err.message;\n      }\n    },\n    storeSavedSession(step, redirectTo, payload) {\n      let storedOrderId = this.$store.state.orderId;\n\n      if (storedOrderId) {\n\n        this.$axios.post(`orders/${storedOrderId}/${step}/store-saved-session`, {\n          payload: payload\n        });\n\n      }\n\n      if (redirectTo) {\n        this.$router.push({path: redirectTo});\n      }\n\n    },\n    saveElectronicSignature() {\n      const {isEmpty, data} = this.$refs.signaturePad.saveSignature();\n\n      if (isEmpty) {\n        this.form.electronic_signature = '';\n      } else {\n        this.form.electronic_signature = data;\n      }\n    },\n    clearElectronicSignature() {\n      this.$refs.signaturePad.clearSignature();\n      this.saveElectronicSignature();\n    },\n    async htmlToPNG() {\n      const el = this.$refs.screenShotSection;\n      this.form.signature_sc = await toPng(el);\n    },\n    async screenshot() {\n      await this.htmlToPNG();\n      this.ipVisible = false;\n    },\n    onBeginSignature() {\n    },\n    onEndSignature() {\n      this.saveElectronicSignature();\n    },\n  }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.errorMsg)?_c('p',{staticClass:\"form-error-msg\",domProps:{\"innerHTML\":_vm._s(_vm.errorMsg)}},[]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n\nexport default {\n  name: \"FormErrorMsg\",\n  props: {\n    msg: {\n      type: String\n    }\n  },\n  data() {\n    return {\n      errorMsg: ''\n    }\n  },\n  mounted() {\n    this.setFormErrorMsg(this.msg);\n  },\n  methods: {\n    setFormErrorMsg(msg) {\n      this.errorMsg = msg;\n    }\n  },\n  beforeMount() {\n    this.$eventBus.$on('setFormErrorMsg', this.setFormErrorMsg)\n  },\n  watch: {\n    msg() {\n      this.setFormErrorMsg(this.msg);\n    }\n  }\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormErrorMsg.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormErrorMsg.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormErrorMsg.vue?vue&type=template&id=4c656529&scoped=true&\"\nimport script from \"./FormErrorMsg.vue?vue&type=script&lang=js&\"\nexport * from \"./FormErrorMsg.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n  \n  var style0 = require(\"./FormErrorMsg.vue?vue&type=style&index=0&id=4c656529&scoped=true&lang=css&\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  injectStyles,\n  \"4c656529\",\n  \"1910dda6\"\n  \n)\n\nexport default component.exports","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--3-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--3-oneOf-1-2!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputField.vue?vue&type=style&index=0&id=7fbd73e8&scoped=true&lang=css&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".form-control[data-v-7fbd73e8]:disabled{background-color:unset!important}\", \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___;\n","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--3-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--3-oneOf-1-2!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormErrorMsg.vue?vue&type=style&index=0&id=4c656529&scoped=true&lang=css&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".form-error-msg[data-v-4c656529]{text-align:right;margin-top:10px;color:red;font-weight:700}\", \"\"]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___;\n"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;;AC1BA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;ACjHA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AC5BA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AAAA;AAAA;AAAA;AAAA;AAsBA;AAOA;AAuBA;;;;;;;;;;ACpDA;AACA;AACA;;;;;ACFA;AACA;AACA;AACA;AAEA;;ACLA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvBA;AAAA;AAAA;AAAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACNA;AAAA;AAAA;AAAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}

Spamworldpro Mini