{"version":3,"sources":["webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack:///src/components/Proposals/ProposalMail.vue","webpack:///./src/components/Proposals/ProposalMail.vue","webpack:///./src/components/Proposals/ProposalMail.vue?423e","webpack:///./src/components/Proposals/ProposalMail.vue?50b7","webpack:///./src/components/Proposals/ProposalMail.vue?ac9c"],"names":["_arrayWithoutHoles","r","Array","isArray","arrayLikeToArray","_iterableToArray","Symbol","iterator","from","_nonIterableSpread","TypeError","_toConsumableArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","components","MailLog","props","mailLogs","default","type","proposal","Object","proposalKey","String","data","isLoading","mMailLogs","mProposal","computed","created","_this","_asyncToGenerator","_regenerator","m","_callee","RESPONSE","_t","w","_context","p","n","proposalProvider","methods","getProposalByKey","v","status","getProposalMailLog","f","a","_this2","_callee2","_context2","mailProvider","Key","then","response","_this2$mMailLogs","push","apply","getReservationMailLog","_this3","_callee3","_context3","ReservationId","_this3$mMailLogs","render","_vm","_c","_self","attrs","name","mode","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAqD;AACrD,SAASA,kBAAkBA,CAACC,CAAC,EAAE;EAC7B,IAAIC,KAAK,CAACC,OAAO,CAACF,CAAC,CAAC,EAAE,OAAOG,4EAAgB,CAACH,CAAC,CAAC;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACHA,SAASI,gBAAgBA,CAACJ,CAAC,EAAE;EAC3B,IAAI,WAAW,IAAI,OAAOK,MAAM,IAAI,IAAI,IAAIL,CAAC,CAACK,MAAM,CAACC,QAAQ,CAAC,IAAI,IAAI,IAAIN,CAAC,CAAC,YAAY,CAAC,EAAE,OAAOC,KAAK,CAACM,IAAI,CAAC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ACL;;;AAG1D;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,yFAAM;AACR,EAAE,8FAAM;AACR,EAAE,uGAAe;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/213.js?id=cc915042ef84cc8065c3","sourcesContent":["import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _arrayWithoutHoles(r) {\n  if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","function _iterableToArray(r) {\n  if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as default };","function _nonIterableSpread() {\n  throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableSpread as default };","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n  return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };","<template>\n    <Transition name=\"fade\" mode=\"out-in\">\n    <ui-loader v-if=\"isLoading\"/>\n    <MailLog v-else :mailLogs=\"mMailLogs\" />\n    </Transition>\n</template>\n\n<script>\nimport { mapState } from 'vuex'\nimport mailProvider from '@/providers/mail'\nimport proposalProvider from '@/providers/proposal.js'\n\n\nexport default {\n  components: {\n    MailLog: () => import('@/components/Mails/MailLog')\n  },\n\n  props: {\n    mailLogs: {\n      default: () => [],\n      type: Array,\n    },\n    proposal: {\n      default: null,\n      type: Object,\n    },\n    proposalKey: {\n      type: String,\n      default: ''\n    }\n  },\n\n  data() {\n    return {\n      isLoading: true,\n      mMailLogs: [],\n      mProposal: this.proposal\n    }\n  },\n\n  computed: {},\n\n  async created() {\n    this.mMailLogs = this.mailLogs\n\n    try {\n      if (!this.mProposal && this.proposalKey) {\n        // Get proposal when proposal variable is null\n        const RESPONSE = await proposalProvider.methods.getProposalByKey(this.proposalKey)\n        if (RESPONSE.status === 200) {\n          this.mProposal = RESPONSE.data\n        }\n      }\n\n      await this.getProposalMailLog()\n    }\n    catch { }\n    finally {\n      this.isLoading = false\n    }\n  },\n\n  methods: {\n    async getProposalMailLog() {\n      await mailProvider.methods\n        .getProposalMailLog(this.mProposal.Key)\n        .then((response) => {\n          if (response.status === 200) {\n            this.mMailLogs.push(...response.data)\n          }\n        })\n    },\n\n    async getReservationMailLog() {\n      await mailProvider.methods\n        .getReservationMailLog(this.mProposal.ReservationId)\n        .then((response) => {\n          if (response.status === 200) {\n            this.mMailLogs.push(...response.data)\n          }\n        })\n    },\n  }\n}\n</script>\n\n<style></style>","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\n    \"Transition\",\n    { attrs: { name: \"fade\", mode: \"out-in\" } },\n    [\n      _vm.isLoading\n        ? _c(\"ui-loader\")\n        : _c(\"MailLog\", { attrs: { mailLogs: _vm.mMailLogs } }),\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ProposalMail.vue?vue&type=template&id=3ba47227\"\nimport script from \"./ProposalMail.vue?vue&type=script&lang=js\"\nexport * from \"./ProposalMail.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  null,\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('3ba47227')) {\n      api.createRecord('3ba47227', component.options)\n    } else {\n      api.reload('3ba47227', component.options)\n    }\n    module.hot.accept(\"./ProposalMail.vue?vue&type=template&id=3ba47227\", function () {\n      api.rerender('3ba47227', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Proposals/ProposalMail.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!./ProposalMail.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!./ProposalMail.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!./ProposalMail.vue?vue&type=template&id=3ba47227\""],"sourceRoot":""}