{"version":3,"sources":["webpack:///./src/components/conversationVm.vue?e1c7","webpack:///./src/components/conversationVm.vue?11c4","webpack:///./src/components/conversationVm.vue?5d39","webpack:///./src/components/conversationVm.vue","webpack:///./src/assets/img/chevronLeft.svg","webpack:///./src/assets/img/chat/chat_off.svg","webpack:///./src/assets/img/search.svg","webpack:///./src/assets/img/chat/chat_on.svg","webpack:///./src/assets/img/usersGroup_2_off.png","webpack:///./src/assets/img/usersGroup_2.svg","webpack:///./src/views/chat/views/socialSearch.vue?28b0","webpack:///./src/assets/img/received.svg","webpack:///./src/views/chat/views/socialSearch.vue?b427","webpack:///./src/views/chat/views/socialSearch.vue?2137","webpack:///./src/views/chat/views/socialSearch.vue","webpack:///./src/assets/img/sended.svg"],"names":["_withId","_hoisted_1","class","_hoisted_2","_hoisted_3","key","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","src","_hoisted_9","render","_ctx","_cache","$props","$setup","$data","$options","_directive_userimage","onClick","args","openProfile","$store","state","newChatMessages","indexOf","item","identifier","getUserImage","userIdentifier","name","lastMessage","innerHTML","text","$filters","chatDate","date","type","fromUser","user","this","doProfileNavigation","$router","push","default","__exports__","module","exports","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_component_localized_text","_component_router_link","_component_conversation_vm","_component_mini_spinner","_directive_localizedPlaceholder","$event","back","onInput","debouncia","ref","value","replace","to","localizedKey","_","$route","params","tab","chats","i","openChat","loading","users","length","allChats","search","debouncer","$refs","searchInput","focus","next","prev","doSearch","trim","filter","x","toLowerCase","slice","then","finally","getAllAsNameIdentifier","StorageServices","setSocialSearch","setSocialSearchResult","conversations","setSelectedUser","store","target","clearTimeout","setTimeout","components","ConversationVm","from","vm","getSocialSearch","results","getSocialSearchResult","getChatListVmList"],"mappings":"kHAAA,W,4FCIA,MAAMA,EAAuB,eAAa,mBAE1C,eAAa,mBACb,MAAMC,EAAa,CAAEC,MAAO,mCACtBC,EAAa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tB,GACvBA,EAAMuB,IACF,GAAgB,SAAbD,EAAK7E,MAAoB6E,EAAK7E,KAI1B,CACH8E,EAAG5B,OAASgB,EAAA,KAAgBa,kBAC5B,IAAIC,EAAUd,EAAA,KAAgBe,wBAC9BH,EAAG/B,MAAQiC,EAAQjC,MACnB+B,EAAGnC,MAAQqC,EAAQX,mBAPnBS,EAAG5B,OAAS,GACZ4B,EAAG7B,SAAWiB,EAAA,KAAgBgB,oBAC9BJ,EAAGnC,MAAQuB,EAAA,KAAgBgB,0BAUtB,W,iCCrBrB,MAAMnE,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlC,GAAQ,CAAC,YAAY,qBAE1E,gB,4CCTfmC,EAAOC,QAAU,IAA0B","file":"js/chunk-4c529e31853b8b61b0b4.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./conversationVm.vue?vue&type=style&index=0&id=4e683bf5&scoped=true&lang=css\"","import { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, resolveDirective as _resolveDirective, createVNode as _createVNode, withDirectives as _withDirectives, toDisplayString as _toDisplayString, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/sended.svg'\nimport _imports_1 from '@/assets/img/received.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-4e683bf5\")\n\n_pushScopeId(\"data-v-4e683bf5\")\nconst _hoisted_1 = { class: \"chatRow justify-content-between\" }\nconst _hoisted_2 = { class: \"d-flex align-items-center\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"pallinoNotifiche\"\n}\nconst _hoisted_4 = { class: \"data\" }\nconst _hoisted_5 = { class: \"fs_16 greyBlue d-block ln_12\" }\nconst _hoisted_6 = {\n key: 1,\n class: \"fs_10 grey d-block ln_12\"\n}\nconst _hoisted_7 = {\n key: 0,\n class: \"requestType\"\n}\nconst _hoisted_8 = {\n key: 0,\n src: _imports_0\n}\nconst _hoisted_9 = {\n key: 1,\n src: _imports_1\n}\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _directive_userimage = _resolveDirective(\"userimage\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _withDirectives(_createVNode(\"div\", {\n class: \"userImage position-relative\",\n onClick: _cache[1] || (_cache[1] = _withModifiers(\n//@ts-ignore\n(...args) => (_ctx.openProfile && _ctx.openProfile(...args)), [\"stop\",\"prevent\"]))\n }, [\n (_ctx.$store.state.newChatMessages && _ctx.$store.state.newChatMessages.indexOf(_ctx.item.identifier) != -1)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3))\n : _createCommentVNode(\"\", true)\n ], 512), [\n [_directive_userimage, _ctx.$store.state.getUserImage(_ctx.item.userIdentifier)]\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.item.name), 1),\n (_ctx.item.lastMessage)\n ? (_openBlock(), _createBlock(\"span\", {\n key: 0,\n class: \"fs_12 greyBlue d-block ln_12 message\",\n innerHTML: _ctx.item.lastMessage.text\n }, null, 8, [\"innerHTML\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.item.lastMessage)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_6, _toDisplayString(_ctx.$filters.chatDate(_ctx.item.lastMessage.date)), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n (_ctx.item.type == 'FriendRequest')\n ? (_openBlock(), _createBlock(\"div\", _hoisted_7, [\n ((_ctx.item as any).fromUser == _ctx.$store.state.user.identifier)\n ? (_openBlock(), _createBlock(\"img\", _hoisted_8))\n : (_openBlock(), _createBlock(\"img\", _hoisted_9))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport * as OM from '@/model';\r\n\r\n@Options({})\r\nexport default class ConversationVm extends Vue {\r\n\r\n @Prop() item: OM.ChatListVm | OM.FriendRequestRoomVm;\r\n\r\n @Prop({\r\n default: false\r\n }) doProfileNavigation: boolean;\r\n\r\n created() {\r\n }\r\n\r\n openProfile() {\r\n if(this.doProfileNavigation) {\r\n this.$router.push('/profile/' + this.item.identifier);\r\n }\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./conversationVm.vue?vue&type=template&id=4e683bf5&scoped=true&ts=true\"\nimport script from \"./conversationVm.vue?vue&type=script&lang=ts\"\nexport * from \"./conversationVm.vue?vue&type=script&lang=ts\"\n\nimport \"./conversationVm.vue?vue&type=style&index=0&id=4e683bf5&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e683bf5\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/chevronLeft.86209808.svg\";","module.exports = __webpack_public_path__ + \"img/chat_off.778f23cd.svg\";","module.exports = __webpack_public_path__ + \"img/search.dd70734b.svg\";","module.exports = __webpack_public_path__ + \"img/chat_on.df78abfc.svg\";","module.exports = __webpack_public_path__ + \"img/usersGroup_2_off.9d38f810.png\";","module.exports = __webpack_public_path__ + \"img/usersGroup_2.f500a83e.svg\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./socialSearch.vue?vue&type=style&index=0&id=10164db5&scoped=true&lang=css\"","module.exports = __webpack_public_path__ + \"img/received.1e5691ba.svg\";","import { createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/chevronLeft.svg'\nimport _imports_1 from '@/assets/img/search.svg'\nimport _imports_2 from '@/assets/img/chat/chat_on.svg'\nimport _imports_3 from '@/assets/img/chat/chat_off.svg'\nimport _imports_4 from '@/assets/img/usersGroup_2.svg'\nimport _imports_5 from '@/assets/img/usersGroup_2_off.png'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-10164db5\")\n\n_pushScopeId(\"data-v-10164db5\")\nconst _hoisted_1 = { class: \"hasHeader\" }\nconst _hoisted_2 = { class: \"header withShadow d-flex aling-items-center justify-content-between\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = { class: \"searchContainer\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_1 }, null, -1)\nconst _hoisted_6 = { class: \"tabContainer\" }\nconst _hoisted_7 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_2,\n class: \"onImage\"\n}, null, -1)\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_3,\n class: \"offImage\"\n}, null, -1)\nconst _hoisted_9 = /*#__PURE__*/_createVNode(\"div\", { class: \"activeBar\" }, null, -1)\nconst _hoisted_10 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_4,\n class: \"onImage\"\n}, null, -1)\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_5,\n class: \"offImage\"\n}, null, -1)\nconst _hoisted_12 = /*#__PURE__*/_createVNode(\"div\", { class: \"activeBar\" }, null, -1)\nconst _hoisted_13 = {\n key: 1,\n class: \"fs-14 text-center mt-3\"\n}\nconst _hoisted_14 = { class: \"socialImage\" }\nconst _hoisted_15 = { class: \"socialDetails\" }\nconst _hoisted_16 = { class: \"socialName\" }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any) => {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_conversation_vm = _resolveComponent(\"conversation-vm\")!\n const _component_mini_spinner = _resolveComponent(\"mini-spinner\")!\n const _directive_localizedPlaceholder = _resolveDirective(\"localizedPlaceholder\")!\n const _directive_userimage = _resolveDirective(\"userimage\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: \"ms-1 me-3 d-flex align-items-center\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$router.back()))\n }, [\n _hoisted_3\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _withDirectives(_createVNode(\"input\", {\n type: \"text\",\n onInput: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.debouncia && _ctx.debouncia(...args))),\n class: \"searchInput ms-2\",\n ref: \"searchInput\"\n }, null, 544), [\n [_directive_localizedPlaceholder, { key: 'app_chatSearchText', value: 'Chat, utenti...' }]\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(_component_router_link, {\n class: \"tab\",\n replace: true,\n to: \"/chats/social/search/Chat\"\n }, {\n default: _withId(() => [\n _hoisted_7,\n _hoisted_8,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_chats\",\n text: \"Chats\",\n class: \"tabLabel\"\n }),\n _hoisted_9\n ]),\n _: 1\n }),\n _createVNode(_component_router_link, {\n class: \"tab\",\n replace: true,\n to: \"/chats/social/search/Utenti\"\n }, {\n default: _withId(() => [\n _hoisted_10,\n _hoisted_11,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_utenti\",\n text: \"Utenti\",\n class: \"tabLabel\"\n }),\n _hoisted_12\n ]),\n _: 1\n })\n ]),\n (_ctx.$route.params.tab == 'Chat')\n ? (_openBlock(true), _createBlock(_Fragment, { key: 0 }, _renderList(_ctx.chats, (item, i) => {\n return (_openBlock(), _createBlock(_component_conversation_vm, {\n item: item,\n key: i,\n onClick: ($event: any) => (_ctx.openChat(item))\n }, null, 8, [\"item\", \"onClick\"]))\n }), 128))\n : (_ctx.$route.params.tab == 'Utenti')\n ? (_openBlock(), _createBlock(_Fragment, { key: 1 }, [\n (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_mini_spinner, { key: 0 }))\n : (_ctx.users.length == 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_13, [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_nessunutentetrovato',\n text: 'Nessun utente trovato'\n })\n ]))\n : (_ctx.users.length > 0)\n ? (_openBlock(true), _createBlock(_Fragment, { key: 2 }, _renderList(_ctx.users, (item, i) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"socialRow\",\n key: i,\n onClick: ($event: any) => (_ctx.openProfile(item))\n }, [\n _withDirectives(_createVNode(\"div\", _hoisted_14, null, 512), [\n [_directive_userimage, _ctx.$store.state.getUserImage(item.identifier)]\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"div\", _hoisted_16, _toDisplayString(item.name), 1)\n ])\n ], 8, [\"onClick\"]))\n }), 128))\n : _createCommentVNode(\"\", true)\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Watch } from 'vue-property-decorator';\r\nimport { StorageServices } from '@/services/StorageServices';\r\nimport { UserClient } from '@/services/Services';\r\nimport ConversationVm from '@/components/conversationVm.vue';\r\nimport store from '@/store';\r\nimport * as OM from '@/model';\r\n\r\n@Options({\r\n components: {\r\n ConversationVm\r\n },\r\n beforeRouteEnter(to, from, next) {\r\n next((vm: any) => {\r\n if(from.name == 'chats' || !from.name){\r\n vm.search = '';\r\n vm.allChats = StorageServices.getChatListVmList();\r\n vm.chats = StorageServices.getChatListVmList();\r\n } else {\r\n vm.search = StorageServices.getSocialSearch();\r\n let results = StorageServices.getSocialSearchResult();\r\n vm.users = results.users;\r\n vm.chats = results.conversations;\r\n }\r\n })\r\n }\r\n})\r\nexport default class SocialSearch extends Vue {\r\n\r\n chats: OM.ChatListVm[] = [];\r\n users: OM.NameIdentifier[] = [];\r\n allChats: OM.ChatListVm[] = [];\r\n loading: boolean = true;\r\n search: string = \"\";\r\n\r\n mounted(){\r\n (this.$refs.searchInput).focus();\r\n this.loading = false;\r\n }\r\n\r\n @Watch('$route.params.tab')\r\n onRouteParamsChange(next, prev){\r\n this.doSearch();\r\n }\r\n\r\n doSearch(){\r\n if(this.$route.params.tab == 'Chat'){\r\n if(!this.search.trim()){\r\n this.chats = this.allChats.slice();\r\n } else {\r\n this.chats = this.allChats.filter(x => x.name.toLowerCase().trim().indexOf(this.search.toLowerCase()) > -1);\r\n }\r\n } else {\r\n this.loading = true;\r\n if(!this.search.trim()){\r\n UserClient.getAllAsNameIdentifier()\r\n .then(x => {\r\n this.users = x;\r\n }).finally(() => this.loading = false)\r\n } else {\r\n UserClient.search(this.search)\r\n .then(x => {\r\n this.users = x;\r\n }).finally(() => this.loading = false)\r\n }\r\n }\r\n\r\n }\r\n\r\n openChat(item: OM.ChatRoomVm){\r\n StorageServices.setSocialSearch(this.search);\r\n StorageServices.setSocialSearchResult({\r\n conversations: this.chats,\r\n users: this.users\r\n });\r\n StorageServices.setSelectedUser(item);\r\n this.$router.push('/chats/' + item.identifier);\r\n }\r\n\r\n openProfile(item: OM.NameIdentifier){\r\n if(item.name == \"Utente cancellato\")\r\n return;\r\n if(store.state.user.identifier == item.identifier)\r\n return;\r\n \r\n StorageServices.setSocialSearch(this.search);\r\n StorageServices.setSocialSearchResult({\r\n conversations: this.chats,\r\n users: this.users\r\n });\r\n this.$router.push('/profile/' + item.identifier);\r\n }\r\n\r\n debouncer: any = null;\r\n debouncia($event: any){\r\n this.search = $event.target.value;\r\n clearTimeout(this.debouncer);\r\n this.debouncer = setTimeout(() => {\r\n this.doSearch();\r\n }, 300);\r\n }\r\n}\r\n\r\n","import { render } from \"./socialSearch.vue?vue&type=template&id=10164db5&scoped=true&ts=true\"\nimport script from \"./socialSearch.vue?vue&type=script&lang=ts\"\nexport * from \"./socialSearch.vue?vue&type=script&lang=ts\"\n\nimport \"./socialSearch.vue?vue&type=style&index=0&id=10164db5&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-10164db5\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/sended.5c3e175c.svg\";"],"sourceRoot":""}