{"version":3,"sources":["webpack:///./src/views/chat/views/chatRequest.vue?753b","webpack:///./src/views/chat/modals/requestChatSettingsModal.vue?6fcc","webpack:///./src/views/chat/modals/requestChatSettingsModal.vue?36a1","webpack:///./src/views/chat/modals/requestChatSettingsModal.vue","webpack:///./src/views/chat/views/chatRequest.vue?91de","webpack:///./src/views/chat/views/chatRequest.vue"],"names":["_hoisted_1","class","_hoisted_2","key","_hoisted_3","_hoisted_4","style","_hoisted_5","render","_ctx","_cache","$props","$setup","$data","$options","_component_mini_spinner","_component_chat_header","_component_chat_component","_component_localized_text","loading","hasUserInfo","chatVm","hasOptions","onOpenDetail","openDetail","onSettingsModal","settingsModal","userIdentifier","userName","name","toUser","$store","state","user","identifier","type","onClick","args","deny","localizedKey","text","accept","$event","$emit","chatName","src","deleteFriendRequest","this","friendRequestIdentifier","then","x","i","$opModal","modals","length","closeLast","LocalizationServices","getLocalizedValue","show","message","buttonUrl","default","__exports__","chatIdentifier","$route","params","toString","getFriendRequestVm","$router","replace","finally","store","globalSpinner","back","acceptFriendRequest","push","isGroupChat","ChatRoom","components","ChatComponent","ChatHeader"],"mappings":"yIAEA,MAAMA,EAAa,CAAEC,MAAO,sBACtBC,EAAa,CACjBC,IAAK,EACLF,MAAO,QAEHG,EAAa,CAAED,IAAK,GACpBE,EAAa,CACjBF,IAAK,EACLF,MAAO,kBACPK,MAAO,CAAC,OAAS,SAEbC,EAAa,CAAEN,MAAO,yCAEtB,SAAUO,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,MAAMC,EAA0B,eAAkB,gBAC5CC,EAAyB,eAAkB,eAC3CC,EAA4B,eAAkB,kBAC9CC,EAA4B,eAAkB,kBAEpD,OAAQ,iBAAc,eAAa,MAAOlB,EAAY,CACnDS,EAAKU,SACD,iBAAc,eAAa,MAAOjB,EAAY,CAC7C,eAAaa,OAEd,iBAAc,eAAa,MAAOX,EAAY,CAC7C,eAAaY,EAAwB,CACnCI,YAAaX,EAAKY,OACl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C,QAAQ,UAAYtB,KAAKgB,kBAM7CO,UAGL,OACIC,EAAA,KAAMvC,MAAMwC,gBACZ,OAAoB1B,oBAAoBC,KAAKgB,gBAC5Cd,KAAKC,IACFH,KAAKqB,QAAQK,SAEhBH,QAAQ,IAAMC,EAAA,KAAMvC,MAAMwC,iBAG/B,SACID,EAAA,KAAMvC,MAAMwC,gBACZ,OAAoBE,oBAAoB3B,KAAKgB,gBAC5Cd,KAAKC,IACFH,KAAKqB,QAAQC,QAAQ,UAAYnB,KAEpCoB,QAAQ,IAAMC,EAAA,KAAMvC,MAAMwC,iBAG/B,aACIzB,KAAKqB,QAAQO,KAAK,YAAc5B,KAAK1B,OAAOM,gBAGhD,gBACOoB,KAAK1B,OAAOS,QAAUyC,EAAA,KAAMvC,MAAMC,KAAKC,WACtCa,KAAKK,SAASM,KAAK,OAAmB,CAClCd,SAAUG,KAAK1B,OAAOQ,KACtBF,eAAgBoB,KAAK1B,OAAOM,eAC5BiD,YAAa7B,KAAK1B,OAAOc,MAAQ,OAAmB0C,WAGxD9B,KAAKK,SAASM,KAAK,EAA0B,CACzCd,SAAUG,KAAK1B,OAAOQ,KACtBmB,wBAAyBD,KAAK1B,OAAOa,eArDhC,EAAW,gBAN/B,eAAQ,CACL4C,WAAY,CACRC,cAAA,OACAC,WAAA,WAGa,WCZrB,MAAM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASxE,KAErD","file":"js/chunk-271e90bfdf95ed6770ac.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"widePage hasHeader\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"mt-5\"\n}\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = {\n key: 0,\n class: \"writerContainer\",\n style: {\"height\":\"82px\"}\n}\nconst _hoisted_5 = { class: \"d-flex h-100 align-items-center w-100\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_mini_spinner = _resolveComponent(\"mini-spinner\")!\n const _component_chat_header = _resolveComponent(\"chat-header\")!\n const _component_chat_component = _resolveComponent(\"chat-component\")!\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n (_ctx.loading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_2, [\n _createVNode(_component_mini_spinner)\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(_component_chat_header, {\n hasUserInfo: _ctx.chatVm,\n hasOptions: _ctx.chatVm,\n onOpenDetail: _ctx.openDetail,\n onSettingsModal: _ctx.settingsModal,\n userIdentifier: _ctx.chatVm.userIdentifier,\n userName: _ctx.chatVm.name\n }, null, 8, [\"hasUserInfo\", \"hasOptions\", \"onOpenDetail\", \"onSettingsModal\", \"userIdentifier\", \"userName\"]),\n _createVNode(_component_chat_component, {\n \"chat-room\": _ctx.chatVm,\n \"container-adjustment\": 3,\n \"container-adjustment-oko\": 83\n }, null, 8, [\"chat-room\"]),\n (_ctx.chatVm && _ctx.chatVm.toUser == _ctx.$store.state.user.identifier)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"button\", {\n type: \"button\",\n class: \"genericButton bgPurple w-50 me-1\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.deny && _ctx.deny(...args)))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_rifiuta\",\n text: \"Rifiuta\",\n class: \"fs_14 white\"\n })\n ]),\n _createVNode(\"button\", {\n type: \"button\",\n class: \"genericButton bgGradient w-50 ms-1\",\n onClick: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.accept && _ctx.accept(...args)))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_accetta\",\n text: \"Accetta\",\n class: \"fs_14 white\"\n })\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n ]))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/close.svg'\n\n\nconst _hoisted_1 = { class: \"d-flex align-items-center justify-content-between\" }\nconst _hoisted_2 = { class: \"title\" }\nconst _hoisted_3 = { class: \"fs-14 greyBlue\" }\nconst _hoisted_4 = { class: \"mt-5\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n\n return (_openBlock(), _createBlock(\"div\", {\n class: \"bottomModalContainer\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.$emit('close')))\n }, [\n _createVNode(\"div\", {\n class: \"bottomModal\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(() => {}, [\"prevent\",\"stop\"]))\n }, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.chatName), 1)\n ]),\n _createVNode(\"img\", {\n src: _imports_0,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$emit('close')))\n })\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", {\n class: \"genericButton bgGreyBlue\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.deleteFriendRequest()))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_annullaRichiesta\",\n text: \"Annulla richiesta\",\n class: \"fs_13 white\"\n })\n ])\n ])\n ])\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport { FriendRequestClient, ReportClient, UserClient } from '@/services/Services';\r\nimport ReportCustomConfirm from '@/components/reportCustomConfirm.vue';\r\nimport ModalSuccessError from '@/components/modalSuccessError.vue';\r\nimport * as OM from '@/model';\r\nimport * as VM from '@/viewModel';\r\nimport { LocalizationServices } from '@/services/LocalizationServices';\r\n\r\n@Options({})\r\nexport default class RequestChatSettingsModal extends Vue {\r\n\r\n @Prop() friendRequestIdentifier: string;\r\n @Prop() chatName: string;\r\n @Prop({\r\n default: \"/chats\"\r\n }) buttonUrl: string;\r\n\r\n deleteFriendRequest() {\r\n FriendRequestClient.deleteFriendRequest(this.friendRequestIdentifier)\r\n .then(x => {\r\n for(var i = 0; i < this.$opModal.modals().length; i++) {\r\n this.$opModal.closeLast();\r\n }\r\n\r\n var text = LocalizationServices.getLocalizedValue(\"app_richiestaDiAmiciziaRimossaConSuccesso\", \"Richiesta di amicizia rimossa con successo!\");\r\n this.$opModal.show(ModalSuccessError, {\r\n message: text,\r\n buttonUrl: this.buttonUrl\r\n })\r\n })\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./requestChatSettingsModal.vue?vue&type=template&id=2d007422&ts=true\"\nimport script from \"./requestChatSettingsModal.vue?vue&type=script&lang=ts\"\nexport * from \"./requestChatSettingsModal.vue?vue&type=script&lang=ts\"\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]])\n\nexport default __exports__","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { FriendRequestClient } from '@/services/Services';\r\nimport ChatComponent from '@/components/chat/chatComponent.vue';\r\nimport ChatHeader from '../components/chatHeader.vue';\r\nimport store from '@/store';\r\nimport * as OM from '@/model';\r\nimport RequestChatSettingsModal from '../modals/requestChatSettingsModal.vue';\r\nimport * as Const from '@/const';\r\nimport ChatSettingsModal from '../modals/chatSettingsModal.vue';\r\n\r\n@Options({\r\n components: {\r\n ChatComponent,\r\n ChatHeader\r\n }\r\n})\r\nexport default class ChatRequest extends Vue {\r\n\r\n loading: boolean = true;\r\n chatIdentifier: string = \"\";\r\n chatVm: OM.FriendRequestRoomVm = null;\r\n\r\n created() {\r\n this.loading = true;\r\n this.chatIdentifier = this.$route.params.identifier.toString();\r\n FriendRequestClient.getFriendRequestVm(this.chatIdentifier)\r\n .then(x => {\r\n if(!x){\r\n this.$router.replace('/chats/' + this.chatIdentifier)\r\n return;\r\n }\r\n this.chatVm = x;\r\n this.loading = false\r\n })\r\n .finally();\r\n }\r\n\r\n deny() {\r\n store.state.globalSpinner++;\r\n FriendRequestClient.deleteFriendRequest(this.chatIdentifier)\r\n .then(x => {\r\n this.$router.back();\r\n })\r\n .finally(() => store.state.globalSpinner--);\r\n }\r\n\r\n accept() {\r\n store.state.globalSpinner++;\r\n FriendRequestClient.acceptFriendRequest(this.chatIdentifier)\r\n .then(x => {\r\n this.$router.replace('/chats/' + x);\r\n })\r\n .finally(() => store.state.globalSpinner--);\r\n }\r\n\r\n openDetail() {\r\n this.$router.push('/profile/' + this.chatVm.userIdentifier);\r\n }\r\n\r\n settingsModal() {\r\n if(this.chatVm.toUser == store.state.user.identifier){\r\n this.$opModal.show(ChatSettingsModal, {\r\n chatName: this.chatVm.name,\r\n userIdentifier: this.chatVm.userIdentifier,\r\n isGroupChat: this.chatVm.type == Const.ChatRoomType.ChatRoom\r\n })\r\n } else {\r\n this.$opModal.show(RequestChatSettingsModal, {\r\n chatName: this.chatVm.name,\r\n friendRequestIdentifier: this.chatVm.identifier\r\n })\r\n }\r\n }\r\n\r\n}\r\n","import { render } from \"./chatRequest.vue?vue&type=template&id=a8d1b93c&ts=true\"\nimport script from \"./chatRequest.vue?vue&type=script&lang=ts\"\nexport * from \"./chatRequest.vue?vue&type=script&lang=ts\"\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]])\n\nexport default __exports__"],"sourceRoot":""}