{"version":3,"sources":["webpack:///./modules/contact/components/MessageMetaCard.vue?7e55","webpack:///./modules/contact/pages/MessagesOverview.vue?7562","webpack:///./modules/contact/components/MessageReadBlock.vue?0580","webpack:///./modules/contact/components/MessageMetaCard.vue?6369","webpack:///./modules/contact/components/ContactTypeLabel.vue?d52b","webpack:///./modules/contact/components/ContactTypeLabel.vue","webpack:///./modules/contact/components/ContactTypeLabel.vue?4673","webpack:///./modules/contact/components/ContactTypeLabel.vue?b4a1","webpack:///./modules/contact/components/MessageMetaCard.vue?f20d","webpack:///./modules/contact/components/MessageMetaCard.vue?f54f","webpack:///./modules/contact/components/MessageMetaCard.vue?9902","webpack:///./modules/contact/components/MessageReadBlock.vue?d219","webpack:///./modules/contact/components/MessageReadBlock.vue?e9df","webpack:///./modules/contact/components/MessageReadBlock.vue?04ea","webpack:///./modules/contact/pages/MessagesOverview.vue","webpack:///./modules/contact/pages/MessagesOverview.vue?fb27","webpack:///./node_modules/vuetify/lib/components/VDataIterator/VDataIterator.js","webpack:///./modules/contact/pages/MessagesOverview.vue?8f65","webpack:///./modules/contact/models/message.ts","webpack:///./modules/contact/api.ts","webpack:///./modules/contact/components/MessageReadBlock.vue?7012"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","messages","scopedSlots","_u","key","fn","props","item","staticRenderFns","value","staticClass","directives","name","rawName","body","expression","_v","_s","undefined","user","first_name","last_name","organisation_name","_e","type","$t","createdAt","id","representee_id","email_address","on","openCard","color","label","global","toString","relationProfile","required","String","component","VChip","created_at","fromNow","$compenda","getRelation","relation_id","Object","components","ContactTypeLabel","VBtn","VCard","VCardActions","VCardTitle","VDivider","VList","VListTile","VListTileContent","VSpacer","VSubheader","old","a","immediate","MessageMetaCard","VCardText","VFadeTransition","VFlex","VLayout","sort","b","ma","mb","isBefore","isSame","MessageReadBlock","_extends","assign","target","i","arguments","length","source","prototype","hasOwnProperty","call","mixins","inheritAttrs","contentTag","default","contentProps","contentClass","computed","classes","selectAll","themeClasses","created","initPagination","methods","genContent","children","genItems","data","$attrs","$listeners","genEmptyItems","content","style","genFilteredItems","$scopedSlots","items","index","len","filteredItems","createProps","push","genFooter","$slots","footer","hideActions","genActions","genHeader","header","h","VContainer","VDataIterator","Type","prefix","postMessage","message","post","getMessages","get","res","getMessageBody"],"mappings":"yIAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,GAAG,eAAe,KAAK,CAACF,EAAG,kBAAkB,CAACE,MAAM,CAAC,MAAQN,EAAIO,UAAUC,YAAYR,EAAIS,GAAG,CAAC,CAACC,IAAI,OAAOC,GAAG,SAASC,GAAO,MAAO,CAACR,EAAG,qBAAqB,CAACE,MAAM,CAAC,MAAQM,EAAMC,gBAAgB,IACjUC,EAAkB,G,yDCDlB,EAAS,WAAa,IAAId,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAACE,MAAM,CAAC,IAAM,GAAG,KAAO,KAAK,CAACF,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,GAAG,KAAO,GAAG,IAAM,KAAK,CAACF,EAAG,oBAAoB,CAACE,MAAM,CAAC,MAAQN,EAAIe,UAAU,GAAGX,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,GAAG,KAAO,GAAG,IAAM,KAAK,CAACF,EAAG,SAAS,CAACY,YAAY,eAAe,CAACZ,EAAG,oBAAoB,CAACA,EAAG,cAAc,CAACa,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASJ,MAAoB,KAAbf,EAAIoB,KAAaC,WAAW,gBAAgBL,YAAY,YAAYV,MAAM,CAAC,YAAY,uBAAuB,CAACN,EAAIsB,GAAG,eAAetB,EAAIuB,GAAGvB,EAAIoB,MAAM,iBAAiB,IAAI,IAAI,IAA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IrCzG,OAAQ,SAAgBgI,GACpB,OAAOA,EAAE,MAAO,CACZ,MAAS9H,KAAKgG,SACf,CAAChG,KAAK4H,YAAa5H,KAAKsG,aAActG,KAAKuH,gBChFlD,GAAY,eACd,GACAzH,EACAe,GACA,EACA,KACA,KACA,MAIa,gBAAiB,QAMhC,IAAkB,GAAW,CAACkH,cAAA,KAAWC,oB,oCCtBzC,IAAYC,EAAZ,2CAAYA,GACV,qBACA,uCAFF,CAAYA,MAAI,M,2eCGhB,IAAMC,EAAS,cAEFC,EAAc,SAACC,GAC1B,OAAO,iBAAMC,KAAN,UAAcH,EAAd,aAAiCE,IAG7BE,EAAW,6BAAG,4BAAArE,EAAA,uEACP,iBAAMsE,IAAN,UAAwBL,EAAxB,cADO,cACnBM,EADmB,yBAElBA,EAAI/B,MAFc,2CAAH,qDAKXgC,EAAc,6BAAG,WAAOzG,GAAP,eAAAiC,EAAA,uEACV,iBAAMsE,IAAN,UACbL,EADa,qBACMlG,EADN,UADU,cACtBwG,EADsB,yBAIrBA,EAAI/B,KAAKtF,MAJY,2CAAH,uD,gFChB3B","file":"js/chunk-848efe4a.43b2faaa.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/index.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/stylus-loader/index.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageMetaCard.vue?vue&type=style&index=0&id=72e54220&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\",\"grid-list-lg\":\"\"}},[_c('v-data-iterator',{attrs:{\"items\":_vm.messages},scopedSlots:_vm._u([{key:\"item\",fn:function(props){return [_c('message-read-block',{attrs:{\"value\":props.item}})]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md5\":\"\"}},[_c('message-meta-card',{attrs:{\"value\":_vm.value}})],1),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md7\":\"\"}},[_c('v-card',{staticClass:\"full-height\"},[_c('v-fade-transition',[_c('v-card-text',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.body !== ''),expression:\"body !== ''\"}],staticClass:\"text-body\",attrs:{\"data-name\":\"message-read-block\"}},[_vm._v(\"\\n \"+_vm._s(_vm.body)+\"\\n \")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{attrs:{\"data-name\":\"message-meta-card\"}},[_c('v-card-title',{attrs:{\"data-name\":\"message-meta-card-title\"}},[(_vm.value.user !== undefined)?_c('h4',[_vm._v(\"\\n \"+_vm._s(_vm.value.user.first_name)+\" \"+_vm._s(_vm.value.user.last_name)+\" -\\n \"+_vm._s(_vm.value.user.organisation_name)+\"\\n \")]):_vm._e(),_c('v-spacer'),_c('contact-type-label',{attrs:{\"value\":_vm.value.type}})],1),_c('v-divider'),_c('v-list',{attrs:{\"subheader\":\"\",\"dense\":\"\"}},[_c('v-list-tile',[_c('v-list-tile-content',[_vm._v(_vm._s(_vm.$t(\"contact.terms.createdAt\")))]),_c('v-list-tile-content',[_c('div',{staticClass:\"right\"},[_vm._v(_vm._s(_vm.createdAt))])])],1),(_vm.value.user !== undefined)?[_c('v-divider'),_c('v-subheader',[_vm._v(_vm._s(_vm.$t(\"contact.terms.userData\")))]),_c('v-list-tile',[_c('v-list-tile-content',[_vm._v(_vm._s(_vm.$t(\"contact.terms.userID\")))]),_c('v-list-tile-content',[_c('div',{staticClass:\"right\"},[_vm._v(_vm._s(_vm.value.user.id))])])],1),_c('v-list-tile',[_c('v-list-tile-content',[_vm._v(_vm._s(_vm.$t(\"contact.terms.name\")))]),_c('v-list-tile-content',{attrs:{\"data-name\":\"message-meta-card-name\"}},[_c('div',{staticClass:\"right\"},[_vm._v(\"\\n \"+_vm._s(_vm.value.user.first_name + \" \" + _vm.value.user.last_name)+\"\\n \")])])],1),_c('v-list-tile',[_c('v-list-tile-content',[_vm._v(_vm._s(_vm.$t(\"contact.terms.representeeID\")))]),_c('v-list-tile-content',[_c('div',{staticClass:\"right\"},[_vm._v(_vm._s(_vm.value.user.representee_id))])])],1),_c('v-list-tile',[_c('v-list-tile-content',[_vm._v(_vm._s(_vm.$t(\"contact.terms.organisationName\")))]),_c('v-list-tile-content',[_c('div',{staticClass:\"right\"},[_vm._v(_vm._s(_vm.value.user.organisation_name))])])],1),_c('v-list-tile',[_c('v-list-tile-content',[_vm._v(_vm._s(_vm.$t(\"contact.terms.email\")))]),_c('v-list-tile-content',[_c('div',{staticClass:\"right\"},[_vm._v(_vm._s(_vm.value.user.email_address))])])],1)]:_vm._e(),(_vm.value.user !== undefined)?[_c('v-divider'),_c('v-card-actions',[_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.openCard}},[_vm._v(_vm._s(_vm.$t(\"contact.terms.openInCompenda\")))])],1)]:_vm._e()],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-chip',{attrs:{\"color\":_vm.color,\"label\":\"\",\"dark\":\"\",\"data-name\":\"contact-type-label\"}},[_vm._v(_vm._s(_vm.label))])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\nimport { Type } from \"../models/message\";\n\n@Component\nexport default class ContactTypeLabel extends Vue {\n @Prop({ required: true, type: String }) public value!: Type;\n\n get label(): string {\n switch (this.value) {\n case Type.global:\n return this.$t(\"contact.messageTypes.global\").toString();\n case Type.relationProfile:\n return this.$t(\"contact.messageTypes.relationProfile\").toString();\n default:\n return this.value;\n }\n }\n\n get color(): string {\n switch (this.value) {\n case Type.relationProfile:\n return \"primary\";\n default:\n return \"accent\";\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContactTypeLabel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContactTypeLabel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContactTypeLabel.vue?vue&type=template&id=953db2be&\"\nimport script from \"./ContactTypeLabel.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContactTypeLabel.vue?vue&type=script&lang=ts&\"\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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VChip } from 'vuetify/lib/components/VChip';\ninstallComponents(component, {VChip})\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 { Component, Vue, Prop } from \"vue-property-decorator\";\nimport { Message } from \"../models/message\";\nimport ContactTypeLabel from \"./ContactTypeLabel.vue\";\nimport moment from \"moment\";\n\n@Component({\n components: { ContactTypeLabel },\n})\nexport default class MessageMetaCard extends Vue {\n @Prop({ required: true, type: Object }) public value!: Message;\n\n private get createdAt(): string {\n return moment(this.value.created_at).fromNow();\n }\n\n private openCard(): void {\n this.$compenda.getRelation(this.value.relation_id);\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageMetaCard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageMetaCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MessageMetaCard.vue?vue&type=template&id=72e54220&scoped=true&\"\nimport script from \"./MessageMetaCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./MessageMetaCard.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MessageMetaCard.vue?vue&type=style&index=0&id=72e54220&lang=stylus&scoped=true&\"\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 \"72e54220\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListTile } from 'vuetify/lib/components/VList';\nimport { VListTileContent } from 'vuetify/lib/components/VList';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSubheader } from 'vuetify/lib/components/VSubheader';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardTitle,VDivider,VList,VListTile,VListTileContent,VSpacer,VSubheader})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop, Watch } from \"vue-property-decorator\";\nimport { Message } from \"../models/message\";\nimport MessageMetaCard from \"./MessageMetaCard.vue\";\nimport { getMessageBody } from \"../api\";\n@Component({\n components: { MessageMetaCard },\n})\nexport default class MessageReadBlock extends Vue {\n @Prop({ required: true, type: Object }) public value!: Message;\n\n private body = \"\";\n\n @Watch(\"value.id\", { immediate: true })\n private async onValueChange(id: number, old: number) {\n if (id === old || id === 0) return;\n\n this.body = await getMessageBody(id);\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageReadBlock.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageReadBlock.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MessageReadBlock.vue?vue&type=template&id=6fe44942&scoped=true&\"\nimport script from \"./MessageReadBlock.vue?vue&type=script&lang=ts&\"\nexport * from \"./MessageReadBlock.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MessageReadBlock.vue?vue&type=style&index=0&id=6fe44942&lang=stylus&scoped=true&\"\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 \"6fe44942\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VFadeTransition } from 'vuetify/lib/components/transitions';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCard,VCardText,VFadeTransition,VFlex,VLayout})\n","\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { getMessages } from \"../api\";\nimport { Message } from \"../models/message\";\nimport MessageReadBlock from \"../components/MessageReadBlock.vue\";\nimport moment from \"moment\";\n\n@Component({\n components: { MessageReadBlock },\n})\nexport default class MessagesOverview extends Vue {\n private messages: Message[] = [];\n\n private async mounted() {\n this.messages = (await getMessages()).sort(\n (a: Message, b: Message): number => {\n const ma = moment(a.created_at);\n const mb = moment(b.created_at);\n if (ma.isBefore(mb)) return 1;\n if (ma.isSame(mb)) return 0;\n return -1;\n }\n );\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessagesOverview.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--12-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessagesOverview.vue?vue&type=script&lang=ts&\"","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport '../../../src/stylus/components/_data-iterator.styl';\nimport DataIterable from '../../mixins/data-iterable';\n/* @vue/component */\nexport default {\n name: 'v-data-iterator',\n mixins: [DataIterable],\n inheritAttrs: false,\n props: {\n contentTag: {\n type: String,\n default: 'div'\n },\n contentProps: {\n type: Object,\n required: false\n },\n contentClass: {\n type: String,\n required: false\n }\n },\n computed: {\n classes: function classes() {\n return _extends({\n 'v-data-iterator': true,\n 'v-data-iterator--select-all': this.selectAll !== false\n }, this.themeClasses);\n }\n },\n created: function created() {\n this.initPagination();\n },\n\n methods: {\n genContent: function genContent() {\n var children = this.genItems();\n var data = {\n 'class': this.contentClass,\n attrs: this.$attrs,\n on: this.$listeners,\n props: this.contentProps\n };\n return this.$createElement(this.contentTag, data, children);\n },\n genEmptyItems: function genEmptyItems(content) {\n return [this.$createElement('div', {\n 'class': 'text-xs-center',\n style: 'width: 100%'\n }, content)];\n },\n genFilteredItems: function genFilteredItems() {\n if (!this.$scopedSlots.item) {\n return null;\n }\n var items = [];\n for (var index = 0, len = this.filteredItems.length; index < len; ++index) {\n var item = this.filteredItems[index];\n var props = this.createProps(item, index);\n items.push(this.$scopedSlots.item(props));\n }\n return items;\n },\n genFooter: function genFooter() {\n var children = [];\n if (this.$slots.footer) {\n children.push(this.$slots.footer);\n }\n if (!this.hideActions) {\n children.push(this.genActions());\n }\n if (!children.length) return null;\n return this.$createElement('div', children);\n },\n genHeader: function genHeader() {\n var children = [];\n if (this.$slots.header) {\n children.push(this.$slots.header);\n }\n if (!children.length) return null;\n return this.$createElement('div', children);\n }\n },\n render: function render(h) {\n return h('div', {\n 'class': this.classes\n }, [this.genHeader(), this.genContent(), this.genFooter()]);\n }\n};\n//# sourceMappingURL=VDataIterator.js.map","import { render, staticRenderFns } from \"./MessagesOverview.vue?vue&type=template&id=335d1f88&\"\nimport script from \"./MessagesOverview.vue?vue&type=script&lang=ts&\"\nexport * from \"./MessagesOverview.vue?vue&type=script&lang=ts&\"\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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataIterator } from 'vuetify/lib/components/VDataIterator';\ninstallComponents(component, {VContainer,VDataIterator})\n","import { User } from \"shared/store/auth/types\";\n\nexport enum Type {\n global = \"global\",\n relationProfile = \"relationProfile\",\n}\n\nexport interface Message {\n id: number;\n type: Type | \"\";\n relation_id: number;\n created_at: string;\n user?: User;\n}\n","import api from \"shared/api\";\nimport { AxiosPromise } from \"axios\";\nimport { InsertMessage } from \"./models/insert-message\";\nimport { Message } from \"./models/message\";\n\nconst prefix = \"api/contact\";\n\nexport const postMessage = (message: InsertMessage): AxiosPromise => {\n return api().post(`${prefix}/messages`, message);\n};\n\nexport const getMessages = async (): Promise => {\n const res = await api().get(`${prefix}/messages`);\n return res.data;\n};\n\nexport const getMessageBody = async (id: number): Promise => {\n const res = await api().get<{ body: string }>(\n `${prefix}/messages/${id}/body`\n );\n return res.data.body;\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/index.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/stylus-loader/index.js??ref--10-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageReadBlock.vue?vue&type=style&index=0&id=6fe44942&lang=stylus&scoped=true&\""],"sourceRoot":""}