{"version":3,"sources":["webpack:///./src/components/Profiles/ModalEditAddress.vue?9d67","webpack:///./src/components/Profiles/ModalEditAddress.vue","webpack:///src/components/Profiles/ModalEditAddress.vue","webpack:///./src/components/Profiles/ModalEditAddress.vue?be68","webpack:///./src/components/Profiles/ModalEditAddress.vue?b9d8"],"names":["render","_vm","this","_c","_self","attrs","$t","isSaving","isSavingSuccess","isSavingError","onClickCancel","updateAddress","showModal","on","scopedSlots","_u","key","fn","staticClass","_v","_s","directives","name","rawName","value","mAddress","Company","expression","class","$v","$error","domProps","$event","$touch","target","composing","$set","_e","Address","PostalCode","City","Country","SendTo","Email","_l","emailErrors","error","index","PhoneNumber","proxy","staticRenderFns","components","Modal","props","type","Boolean","default","Function","required","address","Object","data","computed","errors","$dirty","email","push","validations","created","cleanSource","methods","_this","_asyncToGenerator","_regenerator","m","_callee","w","_context","n","$invalid","a","keys","forEach","$options","filters","stripHtml","profileProvider","updateProfileBillingAddress","then","response","$emit","finally","component"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACE,MAAM,CAAC,WAAaJ,EAAIK,GAAG,uDAAuD,SAAWL,EAAIM,SAAS,gBAAkBN,EAAIO,gBAAgB,cAAgBP,EAAIQ,cAAc,kBAAoBR,EAAIQ,eAAiBR,EAAIO,gBAAgB,cAAgBP,EAAIS,cAAc,YAAcT,EAAIU,cAAc,UAAYV,EAAIW,WAAWC,GAAG,CAAC,WAAaZ,EAAIS,eAAeI,YAAYb,EAAIc,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,WAAW,MAAO,CAACd,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACe,YAAY,2BAA2B,CAACf,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,KAAK,CAACE,MAAM,CAAC,MAAQ,UAAU,CAACJ,EAAIkB,GAAGlB,EAAImB,GAAGnB,EAAIK,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AUAI,YAAA,WACA,OACA1C,SAAA,CACAC,QAAA,CAAAgC,wBACApB,QAAA,CAAAoB,wBACAnB,WAAA,CAAAmB,wBACAlB,KAAA,CAAAkB,wBACAjB,QAAA,CAAAiB,wBACAhB,OAAA,CAAAgB,wBACAf,MAAA,CACAe,uBACAO,qBAMAG,QAAA,WACA,KAAA3C,SAAA4C,yBAAA,KAAAV,UAGAW,QAAA,CACA3D,cAAA,eAAA4D,EAAA,YAAAC,eAAAC,iBAAAC,GAAA,SAAAC,IAAA,OAAAF,iBAAAG,GAAA,SAAAC,GAAA,eAAAA,EAAAC,GAAA,cAAAD,EAAAC,EAAA,EAEAP,EAAA1C,GAAAI,SAAA,WAGAsC,EAAAhE,WAAAgE,EAAA1C,GAAAkD,SAAA,CAAAF,EAAAC,EAAA,eAAAD,EAAAG,EAAA,UAEAT,EAAAhE,UAAA,EAEAqD,OAAAqB,KAAAV,EAAA9C,UAAAyD,SAAA,SAAAlE,GACAuD,EAAA9C,SAAAT,GAAAuD,EAAAY,SAAAC,QAAAC,UAAAd,EAAA9C,SAAAT,OAGAsE,OAAAhB,QAAAiB,4BAAAhB,EAAA9C,UACA+D,MAAA,SAAAC,GACAlB,EAAAmB,MAAA,iBAAAD,GACAlB,EAAA7D,mBAEAiF,SAAA,WACApB,EAAAhE,UAAA,KACA,cAAAsE,EAAAG,EAAA,MAAAL,MApBAH,MC5RwW,I,wBCQpWoB,EAAY,eACd,EACA5F,EACAkD,GACA,EACA,KACA,WACA,MAIa,aAAA0C,E","file":"js/chunk-2c439b30.js?id=f09dae9571846b6d5132","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalEditAddress.vue?vue&type=style&index=0&id=6f4fdc93&prod&scoped=true&lang=sass\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('Modal',{attrs:{\"modalTitle\":_vm.$t('Components.Profile.ProfileDetail.header_EditProfile'),\"isSaving\":_vm.isSaving,\"isSavingSuccess\":_vm.isSavingSuccess,\"isSavingError\":_vm.isSavingError,\"hideFooterButtons\":_vm.isSavingError || _vm.isSavingSuccess,\"onClickCancel\":_vm.onClickCancel,\"onClickSave\":_vm.updateAddress,\"showModal\":_vm.showModal},on:{\"closeModal\":_vm.onClickCancel},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',[_c('table',{staticClass:\"table is-fullwidth mb-4\"},[_c('tbody',[_c('tr',[_c('td',{attrs:{\"width\":\"200px\"}},[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_Company'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.Company),expression:\"mAddress.Company\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.Company.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_Company')},domProps:{\"value\":(_vm.mAddress.Company)},on:{\"blur\":function($event){return _vm.$v.mAddress.Company.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"Company\", $event.target.value)}}})]),(_vm.$v.mAddress.Company.$error)?_c('p',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.$t('Form.InputErrors.Required'))+\" \")]):_vm._e()])])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_Address'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.Address),expression:\"mAddress.Address\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.Address.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_Address')},domProps:{\"value\":(_vm.mAddress.Address)},on:{\"blur\":function($event){return _vm.$v.mAddress.Address.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"Address\", $event.target.value)}}})]),(_vm.$v.mAddress.Address.$error)?_c('p',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.$t('Form.InputErrors.Required'))+\" \")]):_vm._e()])])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_Postalcode'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.PostalCode),expression:\"mAddress.PostalCode\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.PostalCode.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_Postalcode')},domProps:{\"value\":(_vm.mAddress.PostalCode)},on:{\"blur\":function($event){return _vm.$v.mAddress.PostalCode.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"PostalCode\", $event.target.value)}}})]),(_vm.$v.mAddress.PostalCode.$error)?_c('p',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.$t('Form.InputErrors.Required'))+\" \")]):_vm._e()])])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_City'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.City),expression:\"mAddress.City\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.City.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_City')},domProps:{\"value\":(_vm.mAddress.City)},on:{\"blur\":function($event){return _vm.$v.mAddress.City.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"City\", $event.target.value)}}})]),(_vm.$v.mAddress.City.$error)?_c('p',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.$t('Form.InputErrors.Required'))+\" \")]):_vm._e()])])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_Country'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.Country),expression:\"mAddress.Country\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.Country.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_Country')},domProps:{\"value\":(_vm.mAddress.Country)},on:{\"blur\":function($event){return _vm.$v.mAddress.Country.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"Country\", $event.target.value)}}})]),(_vm.$v.mAddress.Country.$error)?_c('p',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.$t('Form.InputErrors.Required'))+\" \")]):_vm._e()])])])])]),_c('table',{staticClass:\"table is-fullwidth\"},[_c('tbody',[_c('tr',[_c('td',{attrs:{\"width\":\"200px\"}},[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_SendTo'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.SendTo),expression:\"mAddress.SendTo\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.SendTo.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_SendTo')},domProps:{\"value\":(_vm.mAddress.SendTo)},on:{\"blur\":function($event){return _vm.$v.mAddress.SendTo.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"SendTo\", $event.target.value)}}})]),(_vm.$v.mAddress.SendTo.$error)?_c('p',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.$t('Form.InputErrors.Required'))+\" \")]):_vm._e()])])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_Email'))+\" \"),_c('span',{staticClass:\"is-required has-text-danger has-text-weight-bold\"},[_vm._v(\"*\")])]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.Email),expression:\"mAddress.Email\"}],staticClass:\"input\",class:{ 'is-danger': _vm.$v.mAddress.Email.$error },attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_Email')},domProps:{\"value\":(_vm.mAddress.Email)},on:{\"blur\":function($event){return _vm.$v.mAddress.Email.$touch()},\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"Email\", $event.target.value)}}})]),_vm._l((_vm.emailErrors),function(error,index){return _c('p',{key:'email_' + index,staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(error)+\" \")])})],2)])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Profile.BillingAddress.label_Phone')))]),_c('td',[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mAddress.PhoneNumber),expression:\"mAddress.PhoneNumber\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"disabled\":_vm.isSaving,\"placeholder\":_vm.$t('Components.Profile.BillingAddress.label_Phone')},domProps:{\"value\":(_vm.mAddress.PhoneNumber)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.mAddress, \"PhoneNumber\", $event.target.value)}}})])])])])])])])]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <Modal\n    :modalTitle=\"$t('Components.Profile.ProfileDetail.header_EditProfile')\"\n    :isSaving=\"isSaving\"\n    :isSavingSuccess=\"isSavingSuccess\"\n    :isSavingError=\"isSavingError\"\n    :hideFooterButtons=\"isSavingError || isSavingSuccess\"\n    :onClickCancel=\"onClickCancel\"\n    :onClickSave=\"updateAddress\"\n    :showModal=\"showModal\"\n    @closeModal=\"onClickCancel\"\n  >\n    <template v-slot:content>\n      <div>\n        <table class=\"table is-fullwidth mb-4\">\n          <tbody>\n            <tr>\n              <td width=\"200px\">{{ $t('Components.Profile.BillingAddress.label_Company') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.Company\"\n                      @blur=\"$v.mAddress.Company.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.Company.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_Company')\"\n                    />\n                  </div>\n                  <p\n                    v-if=\"$v.mAddress.Company.$error\"\n                    class=\"help is-danger\"\n                  >\n                    {{ $t('Form.InputErrors.Required') }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t('Components.Profile.BillingAddress.label_Address') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.Address\"\n                      @blur=\"$v.mAddress.Address.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.Address.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_Address')\"\n                    />\n                  </div>\n                  <p\n                    v-if=\"$v.mAddress.Address.$error\"\n                    class=\"help is-danger\"\n                  >\n                    {{ $t('Form.InputErrors.Required') }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t('Components.Profile.BillingAddress.label_Postalcode') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.PostalCode\"\n                      @blur=\"$v.mAddress.PostalCode.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.PostalCode.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_Postalcode')\"\n                    />\n                  </div>\n                  <p\n                    v-if=\"$v.mAddress.PostalCode.$error\"\n                    class=\"help is-danger\"\n                  >\n                    {{ $t('Form.InputErrors.Required') }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t('Components.Profile.BillingAddress.label_City') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.City\"\n                      @blur=\"$v.mAddress.City.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.City.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_City')\"\n                    />\n                  </div>\n                  <p\n                    v-if=\"$v.mAddress.City.$error\"\n                    class=\"help is-danger\"\n                  >\n                    {{ $t('Form.InputErrors.Required') }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t('Components.Profile.BillingAddress.label_Country') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.Country\"\n                      @blur=\"$v.mAddress.Country.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.Country.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_Country')\"\n                    />\n                  </div>\n                  <p\n                    v-if=\"$v.mAddress.Country.$error\"\n                    class=\"help is-danger\"\n                  >\n                    {{ $t('Form.InputErrors.Required') }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n          </tbody>\n        </table>\n\n        <table class=\"table is-fullwidth\">\n          <tbody>\n            <tr>\n              <td width=\"200px\">{{ $t('Components.Profile.BillingAddress.label_SendTo') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.SendTo\"\n                      @blur=\"$v.mAddress.SendTo.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.SendTo.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_SendTo')\"\n                    />\n                  </div>\n                  <p\n                    v-if=\"$v.mAddress.SendTo.$error\"\n                    class=\"help is-danger\"\n                  >\n                    {{ $t('Form.InputErrors.Required') }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t('Components.Profile.BillingAddress.label_Email') }} <span class=\"is-required has-text-danger has-text-weight-bold\">*</span></td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.Email\"\n                      @blur=\"$v.mAddress.Email.$touch()\"\n                      :disabled=\"isSaving\"\n                      :class=\"{ 'is-danger': $v.mAddress.Email.$error }\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_Email')\"\n                    />\n                  </div>\n                  <p\n                    v-for=\"(error, index) of emailErrors\"\n                    :key=\"'email_' + index\"\n                    class=\"help is-danger\"\n                  >\n                    {{ error }}\n                  </p>\n                </div>\n              </td>\n            </tr>\n            <tr>\n              <td>{{ $t('Components.Profile.BillingAddress.label_Phone') }}</td>\n              <td>\n                <div class=\"field\">\n                  <div class=\"control\">\n                    <input\n                      type=\"text\"\n                      v-model=\"mAddress.PhoneNumber\"\n                      :disabled=\"isSaving\"\n                      class=\"input\"\n                      :placeholder=\"$t('Components.Profile.BillingAddress.label_Phone')\"\n                    />\n                  </div>\n                </div>\n              </td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </template>\n  </Modal>\n</template>\n\n<script>\nimport { cleanSource } from '@/utils/objectHelper'\nimport profileProvider from '@/providers/profile'\nimport { email, required } from 'vuelidate/lib/validators';\n\nexport default {\n  components: {\n    Modal: () => import('@/components/UI/Components/Modal'),\n  },\n\n  props: {\n    showModal: {\n      type: Boolean,\n      default: false,\n    },\n\n    onClickCancel: {\n      type: Function,\n      required: true,\n    },\n\n    address: {\n      type: Object,\n      default: () => ({}),\n    }\n  },\n\n  data() {\n    return {\n      isSaving: false,\n      isSavingSuccess: false,\n      isSavingError: false,\n      mAddress: null\n    }\n  },\n\n  computed: {\n    emailErrors() {\n      const errors = []\n      if (!this.$v.mAddress.Email.$dirty) return errors\n      if (!this.$v.mAddress.Email.required) {\n        errors.push(this.$t('Form.InputErrors.Required'))\n      } else if (!this.$v.mAddress.Email.email) {\n        errors.push(this.$t('Form.InputErrors.InvalidEmail'))\n      }\n      return errors\n    },\n  },\n\n  validations() {\n    return {\n      mAddress: {\n        Company: { required },\n        Address: { required },\n        PostalCode: { required },\n        City: { required },\n        Country: { required },\n        SendTo: { required },\n        Email: {\n          required,\n          email\n        },\n      }\n    }\n  },\n\n  created() {\n    this.mAddress = cleanSource(this.address)\n  },\n\n  methods: {\n    async updateAddress() {\n      // Validate form\n      await this.$v.$touch()\n\n      // Stop proceeding when a save is already triggered or form data is invalid\n      if (this.isSaving || this.$v.$invalid) { return }\n\n      this.isSaving = true;\n\n      Object.keys(this.mAddress).forEach(key => {\n        this.mAddress[key] = this.$options.filters.stripHtml(this.mAddress[key]);\n      })\n\n      profileProvider.methods.updateProfileBillingAddress(this.mAddress)\n        .then((response) => {\n          this.$emit('addressUpdated', response);\n          this.onClickCancel();\n        })\n        .finally(() => {\n          this.isSaving = false;\n        });\n    }\n  },\n}\n</script>\n\n<style scoped lang=\"sass\">\n.table\n  tbody\n    tr\n      td:nth-child(1)\n        padding-top: 11px\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalEditAddress.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalEditAddress.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ModalEditAddress.vue?vue&type=template&id=6f4fdc93&scoped=true\"\nimport script from \"./ModalEditAddress.vue?vue&type=script&lang=js\"\nexport * from \"./ModalEditAddress.vue?vue&type=script&lang=js\"\nimport style0 from \"./ModalEditAddress.vue?vue&type=style&index=0&id=6f4fdc93&prod&scoped=true&lang=sass\"\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  null,\n  \"6f4fdc93\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}