{"version":3,"sources":["webpack:///./src/assets/img/close.svg","webpack:///./src/assets/img/chevronLeft.svg","webpack:///./src/views/people/views/allPeoplePage.vue?1ff5","webpack:///./src/components/customConfirm.vue?1de7","webpack:///./src/assets/img/exclamation_point.png","webpack:///./src/components/customConfirm.vue?3213","webpack:///./src/components/customConfirm.vue?ae52","webpack:///./src/components/customConfirm.vue","webpack:///./src/views/people/views/allPeoplePage.vue?b6bf","webpack:///./src/views/people/views/allPeoplePage.vue?2d26","webpack:///./src/views/people/views/allPeoplePage.vue"],"names":["module","exports","_withId","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","src","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","render","_ctx","_cache","$props","$setup","$data","$options","_component_localized_text","onClick","title","text","type","$event","returnValue","localizedKey","confirmButton","returned","value","this","callback","default","__exports__","key","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_directive_userimage","$router","back","successMessage","people","item","ii","openPerson","$store","state","getUserImage","identifier","name","showOptionsModal","selectedPerson","goToPersonProfile","deleteUser","store","allPeoplePage","model","filter","x","user","canDelete","isAdminOrModerator","personIdentifier","push","$emit","$route","params","notCommunity","userIdentifier","found","community","admins","find","moderators","LocalizationServices","getLocalizedValue","$opModal","show","vm","itemIdentifier","blockUser","then","index","likes","indexOf","splice","message","closeLast","catch","err"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,0B,4CCA3CD,EAAOC,QAAU,IAA0B,gC,6DCA3C,W,oCCAA,W,uBCAAD,EAAOC,QAAU,IAA0B,sC,yECG3C,MAAMC,EAAuB,eAAa,mBAE1C,eAAa,mBACb,MAAMC,EAAa,CAAEC,MAAO,4BACtBC,EAAa,CAAED,MAAO,iBACtBE,EAAa,CAAEF,MAAO,mCACtBG,EAA0B,eAAa,MAAO,CAAEC,IAAK,KAAc,MAAO,GAC1EC,EAAa,CAAEL,MAAO,aACtBM,EAAa,CAAEN,MAAO,YACtBO,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,EAAQ5B,EAAA,KAAMR,MAAMwB,UAAUa,MAAMC,QAAQ1C,GAChDY,EAAA,KAAMR,MAAMwB,UAAUa,MAAME,OAAOH,EAAO,GAE1C,IAAII,EAAUZ,EAAA,KAAqBC,kBAAkB,gCAAiC,iCACtFlD,KAAKe,eAAiB8C,EAGtB7D,KAAKyB,kBAAmB,EACxBzB,KAAKmD,SAASW,cACfC,MAAMC,IAELhE,KAAKmD,SAASW,mBAlBlB9D,KAAKmD,SAASW,iBAnEb,EAAc,gBADlC,eAAQ,KACY,W,iCCFrB,MAAM3D,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASrB,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-ffc2fc25adc025a9a95f.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/close.32f94dc6.svg\";","module.exports = __webpack_public_path__ + \"img/chevronLeft.86209808.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!./allPeoplePage.vue?vue&type=style&index=0&id=009e98e6&scoped=true&lang=css\"","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!./customConfirm.vue?vue&type=style&index=0&id=22c8479e&scoped=true&lang=css\"","module.exports = __webpack_public_path__ + \"img/exclamation_point.c8a81d47.png\";","import { createVNode as _createVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/exclamation_point.png'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-22c8479e\")\n\n_pushScopeId(\"data-v-22c8479e\")\nconst _hoisted_1 = { class: \"__modalsContainer __show\" }\nconst _hoisted_2 = { class: \"_clickBlocker\" }\nconst _hoisted_3 = { class: \"genericModalContent text-center\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_5 = { class: \"title-div\" }\nconst _hoisted_6 = { class: \"text-div\" }\nconst _hoisted_7 = { class: \"d-flex justify-content-around mt-4\" }\nconst _hoisted_8 = { class: \"fs_14 white\" }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_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\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", {\n class: \"confirm-div\",\n onClick: _cache[3] || (_cache[3] = _withModifiers(() => {}, [\"prevent\",\"stop\"]))\n }, [\n _hoisted_4,\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.title), 1)\n ]),\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.text), 1)\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"button\", {\n type: \"button\",\n class: \"genericButton bgWhite w-50\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.returnValue(false)))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_no\",\n text: \"No\",\n class: \"fs_14 spaceCadet\"\n })\n ]),\n _createVNode(\"button\", {\n type: \"button\",\n class: \"genericButton w-50\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.returnValue(true)))\n }, [\n _createVNode(\"span\", _hoisted_8, _toDisplayString(_ctx.confirmButton), 1)\n ])\n ])\n ])\n ])\n ])\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\n\r\n@Options({})\r\nexport default class CustomConfirm extends Vue {\r\n\r\n @Prop({\r\n default: \"\"\r\n }) title: string;\r\n\r\n @Prop({\r\n default: \"\"\r\n }) text: string;\r\n \r\n @Prop({\r\n default: \"Si\"\r\n }) confirmButton: string;\r\n\r\n @Prop() callback: (value: boolean) => void;\r\n\r\n returned: boolean = false;\r\n\r\n returnValue(value: boolean){\r\n this.callback(value);\r\n this.returned = true;\r\n }\r\n\r\n}\r\n","import { render } from \"./customConfirm.vue?vue&type=template&id=22c8479e&scoped=true&ts=true\"\nimport script from \"./customConfirm.vue?vue&type=script&lang=ts\"\nexport * from \"./customConfirm.vue?vue&type=script&lang=ts\"\n\nimport \"./customConfirm.vue?vue&type=style&index=0&id=22c8479e&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-22c8479e\"]])\n\nexport default __exports__","import { createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, withModifiers as _withModifiers, 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/close.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-009e98e6\")\n\n_pushScopeId(\"data-v-009e98e6\")\nconst _hoisted_1 = { class: \"genericPadding hasHeader\" }\nconst _hoisted_2 = { class: \"header withShadow d-flex aling-items-center justify-content-between py-4\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = { class: \"fs_12 greyBlue\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"div\", { class: \"sideContainer\" }, null, -1)\nconst _hoisted_6 = {\n key: 0,\n class: \"successMessage\"\n}\nconst _hoisted_7 = { class: \"twoBlocksContainer justify-content-around\" }\nconst _hoisted_8 = { class: \"profileImage\" }\nconst _hoisted_9 = { class: \"fs_13 greyBlue d-block mt-2\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"__modalsContainer __show\"\n}\nconst _hoisted_11 = { class: \"__modalBg\" }\nconst _hoisted_12 = { class: \"d-flex align-items-center justify-content-between\" }\nconst _hoisted_13 = { class: \"title\" }\nconst _hoisted_14 = { class: \"fs-14 greyBlue\" }\nconst _hoisted_15 = { class: \"mt-5\" }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _directive_userimage = _resolveDirective(\"userimage\")!\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: \"sideContainer\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$router.back()))\n }, [\n _hoisted_3\n ]),\n _createVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.title), 1),\n _hoisted_5\n ]),\n (_ctx.successMessage)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_6, _toDisplayString(_ctx.successMessage), 1))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.people, (item, ii) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"text-center w-50 mb-4\",\n key: ii,\n onClick: ($event: any) => (_ctx.openPerson(item))\n }, [\n _withDirectives(_createVNode(\"div\", _hoisted_8, null, 512), [\n [_directive_userimage, _ctx.$store.state.getUserImage(item.identifier)]\n ]),\n _createVNode(\"span\", _hoisted_9, _toDisplayString(item.name), 1)\n ], 8, [\"onClick\"]))\n }), 128))\n ])\n ]),\n (_ctx.showOptionsModal)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_10, [\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(\"div\", {\n class: \"bottomModalContainer\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.showOptionsModal = false))\n }, [\n _createVNode(\"div\", {\n class: \"bottomModal\",\n onClick: _cache[5] || (_cache[5] = _withModifiers(() => {}, [\"prevent\",\"stop\"]))\n }, [\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"div\", _hoisted_13, [\n _createVNode(\"span\", _hoisted_14, _toDisplayString(_ctx.selectedPerson.name), 1)\n ]),\n _createVNode(\"img\", {\n src: _imports_1,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showOptionsModal = false))\n })\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"div\", {\n class: \"genericButton bgGreyBlue\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.goToPersonProfile(_ctx.selectedPerson.identifier)))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_vaiAlProfilo\",\n text: \"Vai al profilo\",\n class: \"fs_13 white text-uppercase\"\n })\n ]),\n _createVNode(\"div\", {\n class: \"genericButton bgWhite squareGenericButton mt-2\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.deleteUser(_ctx.selectedPerson)))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_bloccaUtente\",\n text: \"Blocca Utente\",\n class: \"fs_13 spaceCadet text-uppercase\"\n })\n ])\n ])\n ])\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { CommunityClient } from '@/services/Services';\r\nimport CustomConfirm from '@/components/customConfirm.vue';\r\nimport store from '@/store';\r\nimport * as OM from '@/model';\r\nimport { LocalizationServices } from '@/services/LocalizationServices';\r\n\r\n@Options({})\r\nexport default class AllPeopleModal extends Vue {\r\n\r\n title: string = \"\";\r\n people: OM.NameIdentifier[] = [];\r\n\r\n selectedPerson: OM.NameIdentifier = new OM.NameIdentifier;\r\n showOptionsModal: boolean = false;\r\n successMessage: string = \"\";\r\n\r\n created() {\r\n this.title = store.state.allPeoplePage.title;\r\n this.people = store.state.allPeoplePage.model;\r\n this.people = this.people.filter(x => x.name != \"Utente eliminato\");\r\n }\r\n\r\n openPerson(item: OM.NameIdentifier) {\r\n if(item.identifier == store.state.user.identifier)\r\n return;\r\n\r\n this.selectedPerson = item;\r\n var canDelete = this.isAdminOrModerator(item.identifier);\r\n if(canDelete)\r\n this.showOptionsModal = true;\r\n else\r\n this.goToPersonProfile(item.identifier);\r\n }\r\n\r\n goToPersonProfile(personIdentifier: string) {\r\n this.$router.push('/profile/' + personIdentifier);\r\n this.$emit('close');\r\n }\r\n\r\n isAdminOrModerator(identifier: string) {\r\n if(identifier == store.state.user.identifier)\r\n return false;\r\n\r\n if(this.$route.params.notCommunity)\r\n return false;\r\n\r\n var userIdentifier = store.state.user.identifier;\r\n\r\n var found = store.state.community.admins.find( x => {\r\n return x.identifier == userIdentifier;\r\n })\r\n\r\n if(found)\r\n return true;\r\n\r\n found = store.state.community.moderators.find( x => {\r\n return x.identifier == userIdentifier;\r\n })\r\n\r\n if(found)\r\n return true;\r\n\r\n return false; \r\n }\r\n\r\n deleteUser(item: OM.NameIdentifier) {\r\n var title = LocalizationServices.getLocalizedValue(\"app_attenzione\", \"Attenzione!\");\r\n var text = LocalizationServices.getLocalizedValue(\"app_vuoidavverobloccarequestoutente\", \"Vuoi davvero bloccare questo utente?\");\r\n\r\n this.$opModal.show(CustomConfirm, {\r\n title: title,\r\n text: text,\r\n callback: (value: boolean) => {\r\n if(!value)\r\n this.$opModal.closeLast();\r\n else {\r\n var vm = new OM.DeleteUserVM();\r\n vm.userIdentifier = item.identifier;\r\n vm.itemIdentifier = store.state.community.identifier;\r\n CommunityClient.blockUser(vm)\r\n .then( x => {\r\n var index = store.state.community.likes.indexOf(item);\r\n store.state.community.likes.splice(index, 1);\r\n\r\n var message = LocalizationServices.getLocalizedValue(\"app_utentebloccatoconsuccesso\", \"Utente bloccato con successo!\");\r\n this.successMessage = message;\r\n // window.toastr.success(message);\r\n\r\n this.showOptionsModal = false;\r\n this.$opModal.closeLast();\r\n }).catch(err => {\r\n // window.toastr.console.error(err);\r\n this.$opModal.closeLast();\r\n })\r\n }\r\n }\r\n\r\n })\r\n }\r\n \r\n}\r\n\r\n","import { render } from \"./allPeoplePage.vue?vue&type=template&id=009e98e6&scoped=true&ts=true\"\nimport script from \"./allPeoplePage.vue?vue&type=script&lang=ts\"\nexport * from \"./allPeoplePage.vue?vue&type=script&lang=ts\"\n\nimport \"./allPeoplePage.vue?vue&type=style&index=0&id=009e98e6&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-009e98e6\"]])\n\nexport default __exports__"],"sourceRoot":""}