{"version":3,"sources":["webpack:///src/components/Mails/MailFailures.vue","webpack:///./src/components/Mails/MailFailures.vue","webpack:///./src/components/Mails/MailFailures.vue?a2f3","webpack:///./src/components/Mails/MailFailures.vue?c93d","webpack:///./src/components/Mails/MailFailures.vue?2262"],"names":["components","props","type","String","default","data","isLoading","locationId","Number","$route","params","failures","mounted","created","getMailFailures","computed","methods","_this","mailProvider","then","response","status","finally","watch","render","_vm","_c","_self","staticClass","_m","_l","failure","index","key","_v","_s","$t","Type","ItemId","To","Status","CreatedOn","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA;AAEe;EACfA,UAAA,GACA;EAEAC,KAAA;IACAC,IAAA;MACAA,IAAA,EAAAC,MAAA;MACAC,OAAA;IACA;EACA;EAEAC,IAAA,WAAAA,KAAA;IACA;MACAC,SAAA;MACAC,UAAA,EAAAC,MAAA,MAAAC,MAAA,CAAAC,MAAA,CAAAH,UAAA;MACAI,QAAA;IACA;EACA;EAEAC,OAAA,WAAAA,QAAA,GACA;EAEAC,OAAA,WAAAA,QAAA;IACA,KAAAC,eAAA;EACA;EAEAC,QAAA,GACA;EAEAC,OAAA;IACAF,eAAA,WAAAA,gBAAA;MAAA,IAAAG,KAAA;MACA,SAAAX,SAAA;QACA;MACA;MAEAY,+DAAA,CAAAF,OAAA,CACAF,eAAA,MAAAP,UAAA,OAAAL,IAAA,EACAiB,IAAA,WAAAC,QAAA;QACA,IAAAA,QAAA,CAAAC,MAAA;UACAJ,KAAA,CAAAN,QAAA,GAAAS,QAAA,CAAAf,IAAA;UACAY,KAAA,CAAAN,QAAA,GAAAS,QAAA,CAAAf,IAAA;QACA;MACA,GACAiB,OAAA;QACAL,KAAA,CAAAX,SAAA;MACA;IACA;EACA;EAEAiB,KAAA,GACA;AACA,CAAC,E;;;;;;;;;;;;;AC/ED;AAAA;AAAA,IAAIC,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAG;EAC7B,IAAIC,GAAG,GAAG,IAAI;IACZC,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,CACpB,YAAY;EACV,IAAIjB,GAAG,GAAG,IAAI;IACZC,EAAE,GAAGD,GAAG,CAACE,KAAK,CAACD,EAAE;EACnB,OAAOA,EAAE,CAAC,OAAO,EAAE,CACjBA,EAAE,CAAC,IAAI,EAAE,CACPA,EAAE,CAAC,IAAI,EAAE,CAACD,GAAG,CAACS,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAC1BR,EAAE,CAAC,IAAI,EAAE,CAACD,GAAG,CAACS,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAC1BR,EAAE,CAAC,IAAI,EAAE,CAACD,GAAG,CAACS,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,EACnCR,EAAE,CAAC,IAAI,EAAE,CAACD,GAAG,CAACS,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAC5BR,EAAE,CAAC,IAAI,EAAE,CAACD,GAAG,CAACS,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CACjC,CAAC,CACH,CAAC;AACJ,CAAC,CACF;AACDV,MAAM,CAACmB,aAAa,GAAG,IAAI;;;;;;;;;;;;;;ACvC3B;AAAA;AAAA;AAAA;AAAsG;AACvC;AACL;;;AAG1D;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,yFAAM;AACR,EAAE,0GAAM;AACR,EAAE,mHAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAAoS,CAAgB,8UAAG,EAAC,C;;;;;;;;;;;;;ACAxT;AAAA;AAAA;AAAA;AAAA","file":"js/368.js?id=20823a681b78a223eace","sourcesContent":["<template>\n  <div>\n   <table class=\"table is-fullwidth\">\n    <thead>\n      <tr>\n        <th>Type</th>\n        <th>Item</th>\n        <th>Email address</th>\n        <th>Status</th>\n        <th>Created on</th>\n      </tr>\n    </thead>\n    <tbody>\n      <tr v-for=\"(failure,index) in failures\" :key=\"'flr-' + index\">\n        <td>{{ $t('Entity.entity_' + failure.Type) }}</td>\n        <td>{{ failure.ItemId }}</td>\n        <td>{{ failure.To }}</td>\n        <td>{{ $t('MailStatus.status_' + failure.Status) }}</td>\n        <td>{{ failure.CreatedOn }}</td>\n      </tr>\n    </tbody>\n   </table>\n  </div>\n</template>\n\n<script>\nimport mailProvider from '@/providers/mail'\n\nexport default {\n  components: {\n  },\n\n  props: {\n    type: {\n      type: String,\n      default: 'None',\n    },\n  },\n\n  data () {\n    return {\n      isLoading: false,\n      locationId: Number(this.$route.params.locationId) || 0,\n      failures: []\n    }\n  },\n\n  mounted () {\n  },\n\n  created () {\n    this.getMailFailures();\n  },\n\n  computed: {\n  },\n\n  methods: {\n    getMailFailures() {\n      if (this.isLoading) {\n        return;\n      }\n\n      mailProvider.methods\n        .getMailFailures(this.locationId, this.type)\n        .then((response) => {\n          if (response.status === 200) {\n            this.failures = response.data;\n            this.failures = response.data;\n          }\n        })\n        .finally(() => {\n          this.isLoading = false;\n        })\n    },\n  },\n\n  watch: {\n  }\n}\n</script>\n\n<style scoped lang=\"scss\">\n</style>\n\n","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"div\", [\n    _c(\"table\", { staticClass: \"table is-fullwidth\" }, [\n      _vm._m(0),\n      _c(\n        \"tbody\",\n        _vm._l(_vm.failures, function (failure, index) {\n          return _c(\"tr\", { key: \"flr-\" + index }, [\n            _c(\"td\", [_vm._v(_vm._s(_vm.$t(\"Entity.entity_\" + failure.Type)))]),\n            _c(\"td\", [_vm._v(_vm._s(failure.ItemId))]),\n            _c(\"td\", [_vm._v(_vm._s(failure.To))]),\n            _c(\"td\", [\n              _vm._v(_vm._s(_vm.$t(\"MailStatus.status_\" + failure.Status))),\n            ]),\n            _c(\"td\", [_vm._v(_vm._s(failure.CreatedOn))]),\n          ])\n        }),\n        0\n      ),\n    ]),\n  ])\n}\nvar staticRenderFns = [\n  function () {\n    var _vm = this,\n      _c = _vm._self._c\n    return _c(\"thead\", [\n      _c(\"tr\", [\n        _c(\"th\", [_vm._v(\"Type\")]),\n        _c(\"th\", [_vm._v(\"Item\")]),\n        _c(\"th\", [_vm._v(\"Email address\")]),\n        _c(\"th\", [_vm._v(\"Status\")]),\n        _c(\"th\", [_vm._v(\"Created on\")]),\n      ]),\n    ])\n  },\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./MailFailures.vue?vue&type=template&id=61168563&scoped=true\"\nimport script from \"./MailFailures.vue?vue&type=script&lang=js\"\nexport * from \"./MailFailures.vue?vue&type=script&lang=js\"\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  \"61168563\",\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('61168563')) {\n      api.createRecord('61168563', component.options)\n    } else {\n      api.reload('61168563', component.options)\n    }\n    module.hot.accept(\"./MailFailures.vue?vue&type=template&id=61168563&scoped=true\", function () {\n      api.rerender('61168563', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Mails/MailFailures.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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!./MailFailures.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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!./MailFailures.vue?vue&type=script&lang=js\"","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"381a4baa-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MailFailures.vue?vue&type=template&id=61168563&scoped=true\""],"sourceRoot":""}