{"version":3,"sources":["webpack:///./src/pages/Message/Channel/Channel.vue?86c2","webpack:///./src/pages/Message/Channel/channel.js","webpack:///./src/pages/Message/Channel/channel.js?ab55","webpack:///./src/pages/Message/Channel/Channel.vue","webpack:///./src/constants/discussion.js","webpack:///./src/pages/Message/Channel/Channel.vue?1f87"],"names":["render","_vm","this","_h","$createElement","_c","_self","conversations","length","_l","item","i","isTeamChannel","isShowAdvTeamChannel","isShowClientChannel","_g","key","attrs","isChannelActive","unreadConversation","name","$listeners","_e","staticRenderFns","ChannelItem","props","components","computed","channelPhoto","selectedRoom","photo","conditionHelper","methods","data","detail","id","channel","type","ROOM_TYPE","TEAM","component","SUPPORT_CLIENT","AGENCY","MEMBER_STATUS","ACTIVE","BLOCKED","DELETED","MEMBER_TYPE","ADV","ADV_REFERER","CLIENT","CLIENT_REFERER","AGENCY_REFERER","AGENCY_LEAD","FIREBASE_ROOT_REF","CHAT_MSG_STATUS","DELETE_FOR_ME","DELETE_FOR_ALL","EDITED"],"mappings":"0IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAIM,cAAcC,OAAS,EAAGH,EAAG,MAAMJ,EAAIQ,GAAIR,EAAiB,eAAE,SAASS,EAAKC,GAAG,OAAQV,EAAIW,cAAcF,GAAQT,EAAIY,qBAAuBZ,EAAIa,qBAAqBT,EAAG,cAAcJ,EAAIc,GAAG,CAACC,IAAIL,EAAEM,MAAM,CAAC,SAAWhB,EAAIiB,gBAAgBR,GAAM,gBAAkBA,EAAKS,mBAAmB,KAAOlB,EAAImB,KAAK,KAAOV,IAAOT,EAAIoB,aAAapB,EAAIqB,QAAO,GAAGrB,EAAIqB,MAC5bC,EAAkB,G,wBCEhBC,EAAc,kBAAM,iDAEX,GACXC,MAAO,CAAC,gBAAiB,eAAgB,QACzCC,WAAY,CACRF,eAEJG,SAAU,CACNC,aADM,WAEF,OAAK1B,KAAK2B,aACH3B,KAAK2B,aAAaC,MADM,IAGnChB,oBALM,WAMF,OAAOiB,eAAgB,yBAE3BlB,qBARM,WASF,OAAOkB,eAAgB,oBAG/BC,QAAS,CACLd,gBADK,SACWe,GACZ,QAAK/B,KAAK2B,cACH3B,KAAK2B,aAAaK,OAAOC,KAAOF,EAAKE,IAEhDvB,cALK,SAKSwB,GAEV,OAAOA,EAAQC,MAAQC,OAAUC,QC7B2P,I,wBCQpSC,EAAY,eACd,EACAxC,EACAuB,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E,6CCnBf,0KAAO,IAAMF,EAAY,CACrBG,eAAgB,EAChBC,OAAQ,EACRH,KAAM,GAEGI,EAAgB,CACzBC,OAAQ,EACRC,QAAS,EACTC,QAAS,GAEAC,EAAc,CACvBC,IAAK,EACLC,YAAa,EACbC,OAAQ,EACRC,eAAgB,EAChBT,OAAQ,EACRU,eAAgB,EAChBC,YAAa,GAGJC,EAAkB,QAElBC,EAAkB,CAC3BC,cAAe,gBACfC,eAAgB,iBAChBC,OAAQ,W,kCCzBZ,yBAAmlB,EAAG,G","file":"js/chunk-3cb625e6.3ef3010c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.conversations.length > 0)?_c('div',_vm._l((_vm.conversations),function(item,i){return (_vm.isTeamChannel(item) ? _vm.isShowAdvTeamChannel : _vm.isShowClientChannel)?_c('ChannelItem',_vm._g({key:i,attrs:{\"isActive\":_vm.isChannelActive(item),\"isUnreadMessage\":item.unreadConversation,\"name\":_vm.name,\"info\":item}},_vm.$listeners)):_vm._e()}),1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { ROOM_TYPE } from \"../../../constants/discussion\";\nimport conditionHelper from \"../../../helpers/condition\";\n\nconst ChannelItem = () => import(\"../ChannelItem/ChannelItem.vue\");\n\nexport default {\n props: ['conversations', 'selectedRoom', 'name'],\n components: {\n ChannelItem,\n },\n computed: {\n channelPhoto() {\n if (!this.selectedRoom) return '';\n return this.selectedRoom.photo;\n },\n isShowClientChannel() {\n return conditionHelper('rcfchatadvteamclient')\n },\n isShowAdvTeamChannel() {\n return conditionHelper('rcfchatadvteam')\n }\n },\n methods: {\n isChannelActive(data) {\n if (!this.selectedRoom) return false;\n return this.selectedRoom.detail.id === data.id;\n },\n isTeamChannel(channel) {\n\n return channel.type == ROOM_TYPE.TEAM;\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!./channel.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!./channel.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Channel.vue?vue&type=template&id=b9b5f436&\"\nimport script from \"./channel.js?vue&type=script&lang=js&\"\nexport * from \"./channel.js?vue&type=script&lang=js&\"\nimport style0 from \"./Channel.vue?vue&type=style&index=0&lang=scss&\"\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","export const ROOM_TYPE = {\n SUPPORT_CLIENT: 3,\n AGENCY: 2,\n TEAM: 1\n};\nexport const MEMBER_STATUS = {\n ACTIVE: 1,\n BLOCKED: 2,\n DELETED: 3\n}\nexport const MEMBER_TYPE = {\n ADV: 1,\n ADV_REFERER: 2,\n CLIENT: 3,\n CLIENT_REFERER: 4,\n AGENCY: 5,\n AGENCY_REFERER: 6,\n AGENCY_LEAD: 7\n};\n\nexport const FIREBASE_ROOT_REF='Chats'\n\nexport const CHAT_MSG_STATUS = {\n DELETE_FOR_ME: 'delete-for-me',\n DELETE_FOR_ALL: 'delete-for-all',\n EDITED: 'edited',\n}","import mod from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/dist/cjs.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Channel.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/dist/cjs.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Channel.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}