{"version":3,"sources":["webpack:///./src/components/Account/components/ProfessionalAccount/Index.vue?c8e5","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary/Index.vue?58ce","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary/attrs/data.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary/attrs/methods.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary/attrs/mounted.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary/index.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary","webpack:///./src/components/Account/components/ProfessionalAccount/components/NewJobsSummary/Index.vue","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/Index.vue?c855","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/attrs/beforeDestroy.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/attrs/data.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/attrs/methods.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/attrs/mounted.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/index.js","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary","webpack:///./src/components/Account/components/ProfessionalAccount/components/CalendarSummary/Index.vue","webpack:///./src/components/Account/components/ProfessionalAccount/index.js","webpack:///./src/components/Account/components/ProfessionalAccount","webpack:///./src/components/Account/components/ProfessionalAccount/Index.vue","webpack:///./src/components/Account/components/Notifications/Index.vue?126c","webpack:///./src/components/Account/components/Notifications/attrs/beforeDestroy.js","webpack:///./src/components/Account/components/Notifications/attrs/data.js","webpack:///./src/components/Account/components/Notifications/attrs/methods.js","webpack:///./src/components/Account/components/Notifications/attrs/mounted.js","webpack:///./src/components/Account/components/Notifications/attrs/props.js","webpack:///./src/components/Account/components/Notifications/index.js","webpack:///./src/components/Account/components/Notifications","webpack:///./src/components/Account/components/Notifications/Index.vue","webpack:///./src/components/Account/components/MessagesSummary/Index.vue?aa87","webpack:///./src/components/Account/components/MessagesSummary/attrs/computed.js","webpack:///./src/components/Account/components/MessagesSummary/attrs/data.js","webpack:///./src/components/Account/components/MessagesSummary/attrs/methods.js","webpack:///./src/components/Account/components/MessagesSummary/attrs/mounted.js","webpack:///./src/components/Account/components/MessagesSummary/attrs/props.js","webpack:///./src/components/Account/components/MessagesSummary/index.js","webpack:///./src/components/Account/components/MessagesSummary","webpack:///./src/components/Account/components/MessagesSummary/Index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","jobs","on","$event","preventDefault","openInviteList","staticClass","_v","_e","loadInvites","self","api","getApiClient","$store","get","params","status","Date","then","result","data","catch","error","console","log","$router","push","name","methods","mounted","component","VIcon","$route","openCalendar","stopEventSource","eventSource","loadJobs","hubUrl","headers","link","match","subscribeURL","state","session","user","id","EventSource","withCredentials","onmessage","update","JSON","parse","close","beforeDestroy","components","MessagesSummary","NewJobsSummary","CalendarSummary","Notifications","notifications","length","view","_l","notification","key","_s","title","body","read","stopNotifications","silentLoading","loadNotifications","response","isRead","patch","filter","item","finally","type","String","default","props","messages","messagesIsOpen","message","messageIndex","seeMessage","job","event","_f","createdAt","unreadMessages","checkMessages","silent","openEventSource","commit","route","$root","$emit","jobId","$on","computed","VList","VListItem"],"mappings":"4HAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,iBAAiBA,EAAG,mBAAmBA,EAAG,kBAAkBA,EAAG,kBAAkB,CAACE,MAAM,CAAC,KAAO,kBAAkBF,EAAG,gBAAgB,IAC9OG,EAAkB,G,YCDlB,EAAS,WAAa,IAAIP,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAIQ,KAAO,EA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IuC,EAAQG,IAAI1C,GAChBqC,UAAU,KAItB,MAGRxE,EAAKuF,MAAMC,MAAM,cAAe,CAC5BC,MAAOf,EAAQG,IAAI1C,OCnFhB,aAAW,WACtBnD,KAAKkG,gBAELlG,KAAKuG,MAAMG,IAAI,kBAAkB,WAC7B,EAAKjB,gBAAiB,KAG1BzF,KAAKuG,MAAMG,IAAI,kBAAkB,WAC7B,EAAKjB,gBAAiB,KAG1BzF,KAAKuG,MAAMG,IAAI,gBAAgB,WAC3B,EAAKR,eAAc,GAAM,OCZlB,GACX/B,KAAMkB,QCKK,GACXpD,KAAM,kBACN0E,WACAjF,OACAQ,UACAC,UACAoD,SCZ8S,I,qECO9SnD,EAAY,eACd,EACAtC,EACAQ,GACA,EACA,KACA,KACA,MAIa,OAAA8B,EAAiB,QAOhC,IAAkBA,EAAW,CAACC,QAAA,KAAMuE,QAAA,KAAMC,YAAA","file":"js/ProfessionalAccount.25634598.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Notifications'),_c('CalendarSummary'),_c('NewJobsSummary'),_c('MessagesSummary',{attrs:{\"view\":\"professional\"}}),_c('router-view')],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('div',[(_vm.jobs > 0)?_c('div',{attrs:{\"id\":\"new-jobs-summary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.openInviteList($event)}}},[_c('div',{staticClass:\"box box__secondary box__light box__slimmest box__post\"},[_c('h1',{staticClass:\"condensed white--text\"},[_vm._v(\"Que legal, você tem convite de jobs!\")]),_c('p',{staticClass:\"new-jobs-title\"},[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__new castfy-icon__semi_large\"}),_vm._v(\" Veja os detalhes em JOBS NOVOS para aceitar a contratação ou declinar. \")],1),_c('p',{staticClass:\"left-padded\"},[_vm._v(\" Os convites tem prazo de expiração. \"),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__caret_right\"})],1)])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function() {\n return {\n jobs: 0\n }\n}","import getApiClient from '@/plugins/api-client'\n\nexport default {\n loadInvites() {\n const self = this,\n api = getApiClient(self.$store)\n\n api.get('/jobs', {\n params: {\n status: 0,\n 'event.start[after]': new Date()\n }\n })\n .then(result => {\n self.jobs = result.data['hydra:totalItems']\n })\n .catch(error => {\n console.log(error)\n })\n },\n\n openInviteList() {\n this.jobs--\n\n this.$router.push({\n name: 'ProfessionalAccountInvites'\n })\n }\n}","export default function() {\n this.loadInvites()\n}\n","import data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'NewJobsSummary',\n data,\n methods,\n mounted\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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"; 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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=651a510c&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VIcon})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.jobs > 0 && _vm.$route.name !== 'ProfessionalAccountAgenda')?_c('div',{attrs:{\"id\":\"calendar-summary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.openCalendar($event)}}},[_c('div',{staticClass:\"box box__secondary box__light box__slimmest box__post\"},[_c('h1',{staticClass:\"condensed white--text\"},[_vm._v(\"Voce tem Jobs já contratados!\")]),_c('p',{staticClass:\"new-jobs-title\"},[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__calendar castfy-icon__semi_large defaultGreen--text\"}),_vm._v(\" Acompanhe as datas e mais detalhes na sua agenda \"),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__caret_right defaultGreen--text\"})],1)])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function() {\n this.stopEventSource()\n}\n","export default function() {\n return {\n jobs: 0,\n eventSource: null\n }\n}","import getApiClient from '@/plugins/api-client'\n\nexport default {\n loadJobs() {\n const self = this,\n api = getApiClient(self.$store)\n\n api.get('/jobs', {\n params: {\n status: 1,\n 'event.end[after]': new Date()\n }\n })\n .then(result => {\n self.jobs = result.data['hydra:totalItems']\n\n const hubUrl = result.headers.link.match(/<([^>]+)>;\\s+rel=(?:mercure|\"[^\"]*mercure[^\"]*\")/)[1],\n subscribeURL = `${hubUrl}?topic=jobs_${self.$store.state.session.user.id}`\n\n self.eventSource = new EventSource(subscribeURL, {withCredentials: true});\n\n self.eventSource.onmessage = ({data}) => {\n const update = JSON.parse(data)\n if (update.status === 1) {\n self.jobs++\n } else {\n self.jobs--\n }\n }\n })\n .catch(error => {\n console.log(error)\n })\n },\n\n openCalendar() {\n this.$router.push({\n name: 'ProfessionalAccountAgenda'\n })\n },\n\n stopEventSource() {\n this.eventSource.close()\n }\n}","export default function() {\n this.loadJobs()\n}\n","import beforeDestroy from './attrs/beforeDestroy'\nimport data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'CalendarSummary',\n beforeDestroy,\n data,\n methods,\n mounted\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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"; 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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=1c53417e&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VIcon})\n","import MessagesSummary from '../MessagesSummary/Index'\nimport NewJobsSummary from './components/NewJobsSummary/Index'\nimport CalendarSummary from './components/CalendarSummary/Index'\nimport Notifications from '../Notifications/Index'\n\nexport default {\n name: 'ProfessionalAccount',\n components: {\n MessagesSummary,\n NewJobsSummary,\n CalendarSummary,\n Notifications\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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"; 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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=0570a006&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.notifications.length > 0 && _vm.view === 'professional')?_c('div',{attrs:{\"id\":\"notifications-summary\"}},_vm._l((_vm.notifications),function(notification){return _c('div',{key:notification.id,staticClass:\"box box__secondary box__light box__slimmest box__post\"},[_c('h1',{staticClass:\"condensed white--text\"},[_vm._v(_vm._s(notification.title))]),_c('p',[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__cancel castfy-icon__semi_large\",attrs:{\"color\":\"defaultGreen\"}}),_vm._v(\" \"+_vm._s(notification.body)+\" \")],1),_c('p',{staticClass:\"link\",on:{\"click\":function($event){$event.preventDefault();return _vm.read(notification)}}},[_vm._v(\" OK \"),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__caret_right\"})],1)])}),0):_vm._e(),(_vm.notifications.length > 0 && _vm.view === 'contractor')?_c('div',{attrs:{\"id\":\"notifications-summary\"}},_vm._l((_vm.notifications),function(notification){return _c('div',{key:notification.id,staticClass:\"box box__secondary box__dark box__slimmest box__post\"},[_c('h1',{staticClass:\"condensed white--text\"},[_vm._v(_vm._s(notification.title))]),_c('p',[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__cancel castfy-icon__semi_large\",attrs:{\"color\":\"defaultGreen\"}}),_c('span',[_vm._v(_vm._s(notification.body))])],1),_c('p',{staticClass:\"link\",on:{\"click\":function($event){$event.preventDefault();return _vm.read(notification)}}},[_vm._v(\" OK \"),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__caret_right\",attrs:{\"color\":\"defaultGreen\"}})],1)])}),0):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function() {\n this.stopNotifications()\n}\n","export default function() {\n return {\n notifications: [],\n eventSource: null,\n silentLoading: false\n }\n}","import getApiClient from '@/plugins/api-client'\n\nexport default {\n loadNotifications() {\n const self = this,\n api = getApiClient(self.$store)\n\n api.get('/notifications')\n .then(response => {\n self.notifications = response.data['hydra:member']\n const hubUrl = response.headers.link.match(/<([^>]+)>;\\s+rel=(?:mercure|\"[^\"]*mercure[^\"]*\")/)[1],\n subscribeURL = `${hubUrl}?topic=notifications_${self.$store.state.session.user.id}`\n\n self.eventSource = new EventSource(subscribeURL, {withCredentials: true});\n\n self.eventSource.onmessage = ({data}) => {\n const update = JSON.parse(data);\n\n if (!update.isRead) {\n self.notifications.push(update)\n }\n }\n })\n .catch(error => {\n console.log(error)\n })\n },\n\n read(notification) {\n const self = this,\n api = getApiClient(self.$store)\n\n if (self.silentLoading) {\n return\n }\n\n self.silentLoading = true\n\n api.patch(notification['@id'], {isRead: true}, {headers: {'Content-Type': 'application/merge-patch+json'}})\n .then(() => {\n self.notifications = self.notifications.filter(item => {\n return item !== notification\n })\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n self.silentLoading = false\n })\n },\n\n stopNotifications() {\n this.eventSource.close()\n }\n}","export default function() {\n this.loadNotifications()\n}\n","export default {\n view: {\n type: String,\n default: 'professional'\n }\n}\n","import beforeDestroy from './attrs/beforeDestroy'\nimport data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\nimport props from './attrs/props'\n\nexport default {\n name: 'Notifications',\n beforeDestroy,\n data,\n methods,\n mounted,\n props\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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"; 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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=6652a6fa&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VIcon})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.messages.length && ! _vm.messagesIsOpen && _vm.view === 'professional')?_c('div',{attrs:{\"id\":\"messages-summary\"}},[_c('div',{staticClass:\"box box__secondary box__light box__slimmest box__post\"},[_c('h1',{staticClass:\"condensed white--text\"},[_vm._v(\"Mensagens do Contratante\")]),_c('v-list',{attrs:{\"color\":\"transparent\"}},_vm._l((_vm.messages),function(message,messageIndex){return _c('v-list-item',{key:message.id,on:{\"click\":function($event){$event.preventDefault();return _vm.seeMessage(messageIndex)}}},[_c('p',[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__messages\",attrs:{\"color\":\"defaultGreen\"}}),_c('span',[_vm._v(\"Você tem uma nova mensagem de: \"),_c('b',[_vm._v(_vm._s(message.job.event.name)+\" | \"+_vm._s(_vm._f(\"moment\")(message.createdAt,'DD/MM/YY')))])]),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__caret_right\",attrs:{\"color\":\"defaultGreen\"}})],1)])}),1)],1)]):_vm._e(),(_vm.messages.length && !_vm.messagesIsOpen && _vm.view === 'contractor')?_c('div',{attrs:{\"id\":\"messages-summary\"}},[_c('div',{staticClass:\"box box__secondary box__dark box__slimmest box__post\"},[_c('h1',{staticClass:\"condensed white--text\"},[_vm._v(\"Mensagens dos profissionais\")]),_c('v-list',{attrs:{\"color\":\"transparent\"}},_vm._l((_vm.messages),function(message,messageIndex){return _c('v-list-item',{key:message.id,on:{\"click\":function($event){$event.preventDefault();return _vm.seeMessage(messageIndex)}}},[_c('p',[_c('v-icon',{staticClass:\"castfy-icon castfy-icon__messages\",attrs:{\"color\":\"defaultGreen\"}}),_c('span',[_vm._v(\"Você tem uma nova mensagem de: \"),_c('b',[_vm._v(_vm._s(message.user.name)+\" | \"+_vm._s(_vm._f(\"moment\")(message.createdAt,'DD/MM/YY')))])]),_c('v-icon',{staticClass:\"castfy-icon castfy-icon__caret_right\",attrs:{\"color\":\"defaultGreen\"}})],1)])}),1)],1)]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n messages() {\n return this.$store.state.unreadMessages\n }\n}\n","export default function() {\n return {\n messagesIsOpen: false\n }\n}","import getApiClient from '@/plugins/api-client'\n\nexport default {\n checkMessages(silent = false, openEventSource = true) {\n const self = this,\n api = getApiClient(self.$store)\n\n if (! silent) {\n self.$store.commit('startLoading')\n }\n\n api.get('/messages/summary', {\n params: {\n 'recipient.id': self.$store.state.session.user.id,\n 'job.event.end[after]': new Date(),\n 'read': false\n }\n })\n .then(result => {\n self.$store.commit('setUnreadMessages', result.data['hydra:member'])\n\n if (openEventSource) {\n const hubUrl = result.headers.link.match(/<([^>]+)>;\\s+rel=(?:mercure|\"[^\"]*mercure[^\"]*\")/)[1],\n subscribeURL = `${hubUrl}?topic=messages_${self.$store.state.session.user.id}`\n\n self.eventSource = new EventSource(subscribeURL, {withCredentials: true});\n\n self.eventSource.onmessage = ({data}) => {\n const update = JSON.parse(data)\n\n let unreadMessages = self.$store.state.unreadMessages\n if (!update.read) {\n unreadMessages.push(update)\n } else {\n unreadMessages = unreadMessages.filter(message => {\n return message.id !== update.id\n })\n }\n self.$store.commit('setUnreadMessages', unreadMessages)\n }\n }\n })\n .catch(error => {\n console.log(error)\n })\n .finally(() => {\n if (! silent) {\n self.$store.commit('stopLoading')\n }\n })\n },\n\n seeMessage(messageIndex) {\n const self = this,\n route = self.$route,\n message = self.messages[messageIndex]\n\n switch(self.view) {\n case 'contractor':\n if (route.name !== 'EventDetails') {\n self.$router.push({\n name: 'EventDetails',\n params: {\n id: message.job.event.id,\n messages: message.job.id\n }\n })\n }\n break;\n case 'professional':\n if (route.name !== 'JobDetails') {\n self.$router.push({\n name: 'JobDetails',\n params: {\n id: message.job.id,\n messages: true\n }\n })\n }\n break;\n }\n\n self.$root.$emit('openMessage', {\n jobId: message.job.id\n })\n }\n}","export default function() {\n this.checkMessages()\n\n this.$root.$on('messagesOpened', () => {\n this.messagesIsOpen = true\n })\n\n this.$root.$on('messagesClosed', () => {\n this.messagesIsOpen = false\n })\n\n this.$root.$on('messagesRead', () => {\n this.checkMessages(true, false)\n })\n}\n","export default {\n view: String\n}\n","import computed from './attrs/computed'\nimport data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\nimport props from './attrs/props'\n\nexport default {\n name: 'MessagesSummary',\n computed,\n data,\n methods,\n mounted,\n props\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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"; 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/eslint-loader/index.js??ref--13-0!./index.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=55ecd54a&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\ninstallComponents(component, {VIcon,VList,VListItem})\n"],"sourceRoot":""}