1 {"version":3,"sources":["webpack:///./src/views/statuses/index.vue?ffa7","webpack:///./src/views/statuses/index.vue?1423","webpack:///src/views/statuses/index.vue","webpack:///./src/views/statuses/index.vue","webpack:///./src/components/Status/index.vue?aecc","webpack:///./src/views/statuses/index.vue?f25c","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/components/Status/index.vue?ba4a","webpack:///./src/components/Status/index.vue?6071","webpack:///src/components/Status/index.vue","webpack:///./src/components/Status/index.vue"],"names":["views_statusesvue_type_script_lang_js_","name","components","MultipleUsersMenu","RebootButton","Status","data","selectedUsers","computed","allLoaded","this","$store","state","status","statusesByInstance","buttonLoading","currentInstance","selectedInstance","user","authHost","instances","concat","toConsumableArray_default","peers","fetchedPeers","isDesktop","app","device","isMobile","isTablet","loadingPeers","loading","page","pageSize","get","set","instance","dispatch","showLocal","value","showPrivate","statuses","fetchedStatuses","statusVisibility","mounted","destroyed","clearSelection","methods","handleFilterChange","handleLoadMore","handleStatusSelection","undefined","find","selectedUser","id","normalizedCount","count","numeral_default","format","component","Object","componentNormalizer","_vm","_h","$createElement","_c","_self","_e","staticClass","_v","_s","$t","attrs","plain","direct","private","public","unlisted","placeholder","no-data-text","filterable","clearable","on","change","model","callback","$$v","expression","_l","index","key","label","selected-users","apply-action","length","account","show-checkbox","fetch-statuses-by-instance","status-selection","icon","circle","click","options","__file","__webpack_exports__","_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_11_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_11_2_node_modules_sass_loader_lib_loader_js_ref_11_3_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_rel_stylesheet_2Fscss_lang_scss___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","n","map","./af","./af.js","./ar","./ar-dz","./ar-dz.js","./ar-kw","./ar-kw.js","./ar-ly","./ar-ly.js","./ar-ma","./ar-ma.js","./ar-sa","./ar-sa.js","./ar-tn","./ar-tn.js","./ar.js","./az","./az.js","./be","./be.js","./bg","./bg.js","./bm","./bm.js","./bn","./bn-bd","./bn-bd.js","./bn.js","./bo","./bo.js","./br","./br.js","./bs","./bs.js","./ca","./ca.js","./cs","./cs.js","./cv","./cv.js","./cy","./cy.js","./da","./da.js","./de","./de-at","./de-at.js","./de-ch","./de-ch.js","./de.js","./dv","./dv.js","./el","./el.js","./en-au","./en-au.js","./en-ca","./en-ca.js","./en-gb","./en-gb.js","./en-ie","./en-ie.js","./en-il","./en-il.js","./en-in","./en-in.js","./en-nz","./en-nz.js","./en-sg","./en-sg.js","./eo","./eo.js","./es","./es-do","./es-do.js","./es-mx","./es-mx.js","./es-us","./es-us.js","./es.js","./et","./et.js","./eu","./eu.js","./fa","./fa.js","./fi","./fi.js","./fil","./fil.js","./fo","./fo.js","./fr","./fr-ca","./fr-ca.js","./fr-ch","./fr-ch.js","./fr.js","./fy","./fy.js","./ga","./ga.js","./gd","./gd.js","./gl","./gl.js","./gom-deva","./gom-deva.js","./gom-latn","./gom-latn.js","./gu","./gu.js","./he","./he.js","./hi","./hi.js","./hr","./hr.js","./hu","./hu.js","./hy-am","./hy-am.js","./id","./id.js","./is","./is.js","./it","./it-ch","./it-ch.js","./it.js","./ja","./ja.js","./jv","./jv.js","./ka","./ka.js","./kk","./kk.js","./km","./km.js","./kn","./kn.js","./ko","./ko.js","./ku","./ku.js","./ky","./ky.js","./lb","./lb.js","./lo","./lo.js","./lt","./lt.js","./lv","./lv.js","./me","./me.js","./mi","./mi.js","./mk","./mk.js","./ml","./ml.js","./mn","./mn.js","./mr","./mr.js","./ms","./ms-my","./ms-my.js","./ms.js","./mt","./mt.js","./my","./my.js","./nb","./nb.js","./ne","./ne.js","./nl","./nl-be","./nl-be.js","./nl.js","./nn","./nn.js","./oc-lnc","./oc-lnc.js","./pa-in","./pa-in.js","./pl","./pl.js","./pt","./pt-br","./pt-br.js","./pt.js","./ro","./ro.js","./ru","./ru.js","./sd","./sd.js","./se","./se.js","./si","./si.js","./sk","./sk.js","./sl","./sl.js","./sq","./sq.js","./sr","./sr-cyrl","./sr-cyrl.js","./sr.js","./ss","./ss.js","./sv","./sv.js","./sw","./sw.js","./ta","./ta.js","./te","./te.js","./tet","./tet.js","./tg","./tg.js","./th","./th.js","./tk","./tk.js","./tl-ph","./tl-ph.js","./tlh","./tlh.js","./tr","./tr.js","./tzl","./tzl.js","./tzm","./tzm-latn","./tzm-latn.js","./tzm.js","./ug-cn","./ug-cn.js","./uk","./uk.js","./ur","./ur.js","./uz","./uz-latn","./uz-latn.js","./uz.js","./vi","./vi.js","./x-pseudo","./x-pseudo.js","./yo","./yo.js","./zh-cn","./zh-cn.js","./zh-hk","./zh-hk.js","./zh-mo","./zh-mo.js","./zh-tw","./zh-tw.js","webpackContext","req","webpackContextResolve","o","e","Error","code","keys","resolve","module","exports","components_Statusvue_type_script_lang_js_","props","type","required","default","fetchStatusesByInstance","showCheckbox","userId","godmode","showHiddenStatus","capitalizeFirstLetter","str","charAt","toUpperCase","slice","isPrivileged","accepted_privileges","accepted_roles","user_privileges","getters","privileges","user_roles","roles","some","privilege","indexOf","role","changeStatus","statusId","isSensitive","visibility","reportCurrentPage","deleteStatus","_this","$confirm","confirmButtonText","cancelButtonText","then","$message","message","catch","$emit","handleRouteChange","$router","push","params","optionPercent","poll","pollOption","allVotes","reduce","acc","option","votes_count","toFixed","parseTimestamp","timestamp","moment_default","propertyExists","property","_secondProperty","deleted","slot","domProps","innerHTML","content","created_at","href","url","target","$event","stopPropagation","nativeOn","to","src","avatar","nickname","size","trigger","sensitive","spoiler_text","title","percentage","attachment","preview_url"],"mappings":"6GAAA,kFCA0MA,GC0E1MC,gBACAC,YACAC,sBACAC,iBACAC,YAEAC,KAPA,WAQA,OACAC,mBAGAC,UACAC,UADA,WAEA,OAAAC,KAAAC,OAAAC,MAAAC,OAAAC,mBAAAL,WAEAM,cAJA,WAKA,OAAAL,KAAAC,OAAAC,MAAAC,OAAAC,mBA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A,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,UAAA,OACAC,aAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,aAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,aAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,aAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,WAAA,OACAC,cAAA,OACAC,UAAA,OACAC,aAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,aAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,UAAA,OACAC,OAAA,OACAC,YAAA,OACAC,eAAA,OAC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GAAA,KAAAP,EAAA0B,GAAA1B,EAAAjD,OAAA,2BAAA4c,EAAAhY,GAA6F,OAAAxB,EAAA,OAAiByB,IAAAD,EAAArB,YAAA,UAA8BH,EAAA,OAAYO,OAAOwY,IAAAS,EAAAC,oBAAkC,GAAA5Z,EAAAO,GAAA,KAAAJ,EAAA,OAAqCG,YAAA,kBAA4BH,EAAA,QAAaG,YAAA,sBAAgCN,EAAAO,GAAAP,EAAAQ,GAAAR,EAAA+X,eAAA/X,EAAAjD,OAAA2b,gBAAA1Y,EAAAO,GAAA,KAAAP,EAAAjD,OAAA,IAAAoD,EAAA,KAAmGG,YAAA,UAAAI,OAA6BiY,KAAA3Y,EAAAjD,OAAA6b,IAAAC,OAAA,UAAwCzX,IAAKmB,MAAA,SAAAuW,GAAyBA,EAAAC,sBAA4B/Y,EAAAO,GAAA,aAAAP,EAAAQ,GAAAR,EAAAS,GAAA,gDAAAN,EAAA,KAA4FG,YAAA,wBAAgCN,EAAAK,gBGY/9L,EACA,KACA,KACA,MAIAR,EAAA2C,QAAAC,OAAA,YACeC,EAAA,EAAA7C","file":"static/js/chunk-5669.88725eaa.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.loadingPeers)?_c('div',{staticClass:\"statuses-container\"},[_c('div',{staticClass:\"statuses-header\"},[_c('h1',[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.statuses'))+\"\\n \")]),_vm._v(\" \"),_c('reboot-button')],1),_vm._v(\" \"),_c('div',{staticClass:\"statuses-header-container\"},[_c('el-button-group',[_c('el-button',{staticClass:\"direct-button\",attrs:{\"plain\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.direct'))+\": \"+_vm._s(_vm.normalizedCount(_vm.statusVisibility.direct))+\"\\n \")]),_vm._v(\" \"),_c('el-button',{staticClass:\"private-button\",attrs:{\"plain\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.private'))+\": \"+_vm._s(_vm.normalizedCount(_vm.statusVisibility.private))+\"\\n \")]),_vm._v(\" \"),_c('el-button',{staticClass:\"public-button\",attrs:{\"plain\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.public'))+\": \"+_vm._s(_vm.normalizedCount(_vm.statusVisibility.public))+\"\\n \")]),_vm._v(\" \"),_c('el-button',{staticClass:\"unlisted-button\",attrs:{\"plain\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.unlisted'))+\": \"+_vm._s(_vm.normalizedCount(_vm.statusVisibility.unlisted))+\"\\n \")])],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"filter-container\"},[_c('el-select',{staticClass:\"select-instance\",attrs:{\"placeholder\":_vm.$t('statuses.instanceFilter'),\"no-data-text\":_vm.$t('statuses.noInstances'),\"filterable\":\"\",\"clearable\":\"\"},on:{\"change\":_vm.handleFilterChange},model:{value:(_vm.selectedInstance),callback:function ($$v) {_vm.selectedInstance=$$v},expression:\"selectedInstance\"}},_vm._l((_vm.instances),function(instance,index){return _c('el-option',{key:index,attrs:{\"label\":instance,\"value\":instance}})}),1),_vm._v(\" \"),_c('multiple-users-menu',{attrs:{\"selected-users\":_vm.selectedUsers},on:{\"apply-action\":_vm.clearSelection}})],1),_vm._v(\" \"),(_vm.currentInstance)?_c('div',{staticClass:\"checkbox-container\"},[_c('el-checkbox',{staticClass:\"show-private-statuses\",model:{value:(_vm.showLocal),callback:function ($$v) {_vm.showLocal=$$v},expression:\"showLocal\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.onlyLocalStatuses'))+\"\\n \")]),_vm._v(\" \"),_c('el-checkbox',{staticClass:\"show-private-statuses\",model:{value:(_vm.showPrivate),callback:function ($$v) {_vm.showPrivate=$$v},expression:\"showPrivate\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.showPrivateStatuses'))+\"\\n \")])],1):_vm._e(),_vm._v(\" \"),(_vm.statuses.length === 0)?_c('p',{staticClass:\"no-statuses\"},[_vm._v(_vm._s(_vm.$t('userProfile.noStatuses')))]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.statuses),function(status){return _c('div',{key:status.id,staticClass:\"status-container\"},[_c('status',{attrs:{\"status\":status,\"account\":status.account,\"show-checkbox\":_vm.isDesktop,\"fetch-statuses-by-instance\":true},on:{\"status-selection\":_vm.handleStatusSelection}})],1)}),_vm._v(\" \"),(_vm.statuses.length > 0)?_c('div',{staticClass:\"statuses-pagination\"},[(!_vm.allLoaded)?_c('el-button',{attrs:{\"loading\":_vm.buttonLoading},on:{\"click\":_vm.handleLoadMore}},[_vm._v(_vm._s(_vm.$t('statuses.loadMore')))]):_c('el-button',{attrs:{\"icon\":\"el-icon-check\",\"circle\":\"\"}})],1):_vm._e()],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js?cacheDirectory!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js?cacheDirectory!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","<template>\n <div v-if=\"!loadingPeers\" class=\"statuses-container\">\n <div class=\"statuses-header\">\n <h1>\n {{ $t('statuses.statuses') }}\n </h1>\n <reboot-button/>\n </div>\n <div class=\"statuses-header-container\">\n <el-button-group>\n <el-button plain class=\"direct-button\">\n {{ $t('statuses.direct') }}: {{ normalizedCount(statusVisibility.direct) }}\n </el-button>\n <el-button plain class=\"private-button\">\n {{ $t('statuses.private') }}: {{ normalizedCount(statusVisibility.private) }}\n </el-button>\n <el-button plain class=\"public-button\">\n {{ $t('statuses.public') }}: {{ normalizedCount(statusVisibility.public) }}\n </el-button>\n <el-button plain class=\"unlisted-button\">\n {{ $t('statuses.unlisted') }}: {{ normalizedCount(statusVisibility.unlisted) }}\n </el-button>\n </el-button-group>\n </div>\n <div class=\"filter-container\">\n <el-select\n v-model=\"selectedInstance\"\n :placeholder=\"$t('statuses.instanceFilter')\"\n :no-data-text=\"$t('statuses.noInstances')\"\n filterable\n clearable\n class=\"select-instance\"\n @change=\"handleFilterChange\">\n <el-option\n v-for=\"(instance,index) in instances\"\n :key=\"index\"\n :label=\"instance\"\n :value=\"instance\"/>\n </el-select>\n <multiple-users-menu\n :selected-users=\"selectedUsers\"\n @apply-action=\"clearSelection\"/>\n </div>\n <div v-if=\"currentInstance\" class=\"checkbox-container\">\n <el-checkbox v-model=\"showLocal\" class=\"show-private-statuses\">\n {{ $t('statuses.onlyLocalStatuses') }}\n </el-checkbox>\n <el-checkbox v-model=\"showPrivate\" class=\"show-private-statuses\">\n {{ $t('statuses.showPrivateStatuses') }}\n </el-checkbox>\n </div>\n <p v-if=\"statuses.length === 0\" class=\"no-statuses\">{{ $t('userProfile.noStatuses') }}</p>\n <div v-for=\"status in statuses\" :key=\"status.id\" class=\"status-container\">\n <status\n :status=\"status\"\n :account=\"status.account\"\n :show-checkbox=\"isDesktop\"\n :fetch-statuses-by-instance=\"true\"\n @status-selection=\"handleStatusSelection\" />\n </div>\n <div v-if=\"statuses.length > 0\" class=\"statuses-pagination\">\n <el-button v-if=\"!allLoaded\" :loading=\"buttonLoading\" @click=\"handleLoadMore\">{{ $t('statuses.loadMore') }}</el-button>\n <el-button v-else icon=\"el-icon-check\" circle/>\n </div>\n </div>\n</template>\n\n<script>\nimport MultipleUsersMenu from '@/views/users/components/MultipleUsersMenu'\nimport Status from '@/components/Status'\nimport RebootButton from '@/components/RebootButton'\nimport numeral from 'numeral'\n\nexport default {\n name: 'Statuses',\n components: {\n MultipleUsersMenu,\n RebootButton,\n Status\n },\n data() {\n return {\n selectedUsers: []\n }\n },\n computed: {\n allLoaded() {\n return this.$store.state.status.statusesByInstance.allLoaded\n },\n buttonLoading() {\n return this.$store.state.status.statusesByInstance.buttonLoading\n },\n currentInstance() {\n return this.selectedInstance === this.$store.state.user.authHost\n },\n instances() {\n return [this.$store.state.user.authHost, ...this.$store.state.peers.fetchedPeers]\n },\n isDesktop() {\n return this.$store.state.app.device === 'desktop'\n },\n isMobile() {\n return this.$store.state.app.device === 'mobile'\n },\n isTablet() {\n return this.$store.state.app.device === 'tablet'\n },\n loadingPeers() {\n return this.$store.state.peers.loading\n },\n page() {\n return this.$store.state.status.statusesByInstance.page\n },\n pageSize() {\n return this.$store.state.status.statusesByInstance.pageSize\n },\n selectedInstance: {\n get() {\n return this.$store.state.status.statusesByInstance.selectedInstance\n },\n set(instance) {\n this.$store.dispatch('HandleFilterChange', instance)\n }\n },\n showLocal: {\n get() {\n return this.$store.state.status.statusesByInstance.showLocal\n },\n set(value) {\n this.$store.dispatch('HandleLocalCheckboxChange', value)\n }\n },\n showPrivate: {\n get() {\n return this.$store.state.status.statusesByInstance.showPrivate\n },\n set(value) {\n this.$store.dispatch('HandleGodmodeCheckboxChange', value)\n }\n },\n statuses() {\n return this.$store.state.status.fetchedStatuses\n },\n statusVisibility() {\n return this.$store.state.status.statusVisibility\n }\n },\n mounted() {\n this.$store.dispatch('GetNodeInfo')\n this.$store.dispatch('NeedReboot')\n this.$store.dispatch('FetchPeers')\n this.$store.dispatch('FetchStatusesCount')\n },\n destroyed() {\n this.clearSelection()\n this.$store.dispatch('ClearState')\n },\n methods: {\n clearSelection() {\n this.selectedUsers = []\n },\n handleFilterChange() {\n this.$store.dispatch('HandlePageChange', 1)\n this.$store.dispatch('FetchStatusesByInstance')\n },\n handleLoadMore() {\n this.$store.dispatch('HandlePageChange', this.page + 1)\n\n this.$store.dispatch('FetchStatusesPageByInstance')\n },\n handleStatusSelection(user) {\n if (this.selectedUsers.find(selectedUser => user.id === selectedUser.id) !== undefined) {\n return\n }\n this.selectedUsers = [...this.selectedUsers, user]\n },\n normalizedCount(count) {\n return numeral(count).format('0a')\n }\n }\n}\n</script>\n\n<style rel='stylesheet/scss' lang='scss'>\n.statuses-container {\n padding: 0 15px;\n h1 {\n margin: 10px 0 15px 0;\n }\n .status-container {\n margin: 0 0 10px;\n }\n}\n.statuses-header-container {\n .el-button.is-plain:focus, .el-button.is-plain:hover {\n border-color: #DCDFE6;\n color: #606266;\n cursor: default\n }\n}\n.checkbox-container {\n margin-bottom: 15px;\n}\n.filter-container {\n display: flex;\n height: 36px;\n justify-content: space-between;\n align-items: center;\n margin: 22px 0 15px 0;\n}\n.reboot-button {\n padding: 10px;\n margin: 0;\n width: 145px;\n}\n.select-instance {\n width: 396px;\n}\n.statuses-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.statuses-header-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.statuses-pagination {\n padding: 15px 0;\n text-align: center;\n}\n\n@media only screen and (max-width:480px) {\n .checkbox-container {\n margin-bottom: 10px;\n }\n .filter-container {\n display: flex;\n height: 36px;\n flex-direction: column;\n margin: 10px 0;\n }\n .select-field {\n width: 100%;\n margin-bottom: 5px;\n }\n .select-instance {\n width: 100%;\n }\n .statuses-header-container {\n flex-direction: column;\n align-items: flex-start;\n .el-button-group {\n width: 100%;\n }\n .el-button {\n padding: 10px 6.5px;\n width: 50%;\n }\n .el-button-group>.el-button:first-child {\n border-bottom-left-radius: 0;\n }\n .el-button-group>.el-button:not(:first-child):not(:last-child).private-button {\n border-top-right-radius: 4px;\n }\n .el-button-group>.el-button:not(:first-child):not(:last-child).public-button {\n border-bottom-left-radius: 4px;\n border-top: white;\n }\n .el-button-group>.el-button:last-child {\n border-top-right-radius: 0;\n border-top: white;\n }\n .reboot-button {\n margin: 10px 0 0 0;\n }\n }\n}\n</style>\n","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4ee51084&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&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\ncomponent.options.__file = \"index.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/index.js??ref--11-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--11-2!../../../node_modules/sass-loader/lib/loader.js??ref--11-3!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/index.js??ref--11-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--11-2!../../../node_modules/sass-loader/lib/loader.js??ref--11-3!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/index.js??ref--11-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--11-2!../../../node_modules/sass-loader/lib/loader.js??ref--11-3!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/index.js??ref--11-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--11-2!../../../node_modules/sass-loader/lib/loader.js??ref--11-3!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&lang=scss&\"","var map = {\n\t\"./af\": \"K/tc\",\n\t\"./af.js\": \"K/tc\",\n\t\"./ar\": \"jnO4\",\n\t\"./ar-dz\": \"o1bE\",\n\t\"./ar-dz.js\": \"o1bE\",\n\t\"./ar-kw\": \"Qj4J\",\n\t\"./ar-kw.js\": \"Qj4J\",\n\t\"./ar-ly\": \"HP3h\",\n\t\"./ar-ly.js\": \"HP3h\",\n\t\"./ar-ma\": \"CoRJ\",\n\t\"./ar-ma.js\": \"CoRJ\",\n\t\"./ar-sa\": \"gjCT\",\n\t\"./ar-sa.js\": \"gjCT\",\n\t\"./ar-tn\": \"bYM6\",\n\t\"./ar-tn.js\": \"bYM6\",\n\t\"./ar.js\": \"jnO4\",\n\t\"./az\": \"SFxW\",\n\t\"./az.js\": \"SFxW\",\n\t\"./be\": \"H8ED\",\n\t\"./be.js\": \"H8ED\",\n\t\"./bg\": \"hKrs\",\n\t\"./bg.js\": \"hKrs\",\n\t\"./bm\": \"p/rL\",\n\t\"./bm.js\": \"p/rL\",\n\t\"./bn\": \"kEOa\",\n\t\"./bn-bd\": \"loYQ\",\n\t\"./bn-bd.js\": \"loYQ\",\n\t\"./bn.js\": \"kEOa\",\n\t\"./bo\": \"0mo+\",\n\t\"./bo.js\": \"0mo+\",\n\t\"./br\": \"aIdf\",\n\t\"./br.js\": \"aIdf\",\n\t\"./bs\": \"JVSJ\",\n\t\"./bs.js\": \"JVSJ\",\n\t\"./ca\": \"1xZ4\",\n\t\"./ca.js\": \"1xZ4\",\n\t\"./cs\": \"PA2r\",\n\t\"./cs.js\": \"PA2r\",\n\t\"./cv\": \"A+xa\",\n\t\"./cv.js\": \"A+xa\",\n\t\"./cy\": \"l5ep\",\n\t\"./cy.js\": \"l5ep\",\n\t\"./da\": \"DxQv\",\n\t\"./da.js\": \"DxQv\",\n\t\"./de\": \"tGlX\",\n\t\"./de-at\": \"s+uk\",\n\t\"./de-at.js\": \"s+uk\",\n\t\"./de-ch\": \"u3GI\",\n\t\"./de-ch.js\": \"u3GI\",\n\t\"./de.js\": \"tGlX\",\n\t\"./dv\": \"WYrj\",\n\t\"./dv.js\": \"WYrj\",\n\t\"./el\": \"jUeY\",\n\t\"./el.js\": \"jUeY\",\n\t\"./en-au\": \"Dmvi\",\n\t\"./en-au.js\": \"Dmvi\",\n\t\"./en-ca\": \"OIYi\",\n\t\"./en-ca.js\": \"OIYi\",\n\t\"./en-gb\": \"Oaa7\",\n\t\"./en-gb.js\": \"Oaa7\",\n\t\"./en-ie\": \"4dOw\",\n\t\"./en-ie.js\": \"4dOw\",\n\t\"./en-il\": \"czMo\",\n\t\"./en-il.js\": \"czMo\",\n\t\"./en-in\": \"7C5Q\",\n\t\"./en-in.js\": \"7C5Q\",\n\t\"./en-nz\": \"b1Dy\",\n\t\"./en-nz.js\": \"b1Dy\",\n\t\"./en-sg\": \"t+mt\",\n\t\"./en-sg.js\": \"t+mt\",\n\t\"./eo\": \"Zduo\",\n\t\"./eo.js\": \"Zduo\",\n\t\"./es\": \"iYuL\",\n\t\"./es-do\": \"CjzT\",\n\t\"./es-do.js\": \"CjzT\",\n\t\"./es-mx\": \"tbfe\",\n\t\"./es-mx.js\": \"tbfe\",\n\t\"./es-us\": \"Vclq\",\n\t\"./es-us.js\": \"Vclq\",\n\t\"./es.js\": \"iYuL\",\n\t\"./et\": \"7BjC\",\n\t\"./et.js\": \"7BjC\",\n\t\"./eu\": \"D/JM\",\n\t\"./eu.js\": \"D/JM\",\n\t\"./fa\": \"jfSC\",\n\t\"./fa.js\": \"jfSC\",\n\t\"./fi\": \"gekB\",\n\t\"./fi.js\": \"gekB\",\n\t\"./fil\": \"1ppg\",\n\t\"./fil.js\": \"1ppg\",\n\t\"./fo\": \"ByF4\",\n\t\"./fo.js\": \"ByF4\",\n\t\"./fr\": \"nyYc\",\n\t\"./fr-ca\": \"2fjn\",\n\t\"./fr-ca.js\": \"2fjn\",\n\t\"./fr-ch\": \"Dkky\",\n\t\"./fr-ch.js\": \"Dkky\",\n\t\"./fr.js\": \"nyYc\",\n\t\"./fy\": \"cRix\",\n\t\"./fy.js\": \"cRix\",\n\t\"./ga\": \"USCx\",\n\t\"./ga.js\": \"USCx\",\n\t\"./gd\": \"9rRi\",\n\t\"./gd.js\": \"9rRi\",\n\t\"./gl\": \"iEDd\",\n\t\"./gl.js\": \"iEDd\",\n\t\"./gom-deva\": \"qvJo\",\n\t\"./gom-deva.js\": \"qvJo\",\n\t\"./gom-latn\": \"DKr+\",\n\t\"./gom-latn.js\": \"DKr+\",\n\t\"./gu\": \"4MV3\",\n\t\"./gu.js\": \"4MV3\",\n\t\"./he\": \"x6pH\",\n\t\"./he.js\": \"x6pH\",\n\t\"./hi\": \"3E1r\",\n\t\"./hi.js\": \"3E1r\",\n\t\"./hr\": \"S6ln\",\n\t\"./hr.js\": \"S6ln\",\n\t\"./hu\": \"WxRl\",\n\t\"./hu.js\": \"WxRl\",\n\t\"./hy-am\": \"1rYy\",\n\t\"./hy-am.js\": \"1rYy\",\n\t\"./id\": \"UDhR\",\n\t\"./id.js\": \"UDhR\",\n\t\"./is\": \"BVg3\",\n\t\"./is.js\": \"BVg3\",\n\t\"./it\": \"bpih\",\n\t\"./it-ch\": \"bxKX\",\n\t\"./it-ch.js\": \"bxKX\",\n\t\"./it.js\": \"bpih\",\n\t\"./ja\": \"B55N\",\n\t\"./ja.js\": \"B55N\",\n\t\"./jv\": \"tUCv\",\n\t\"./jv.js\": \"tUCv\",\n\t\"./ka\": \"IBtZ\",\n\t\"./ka.js\": \"IBtZ\",\n\t\"./kk\": \"bXm7\",\n\t\"./kk.js\": \"bXm7\",\n\t\"./km\": \"6B0Y\",\n\t\"./km.js\": \"6B0Y\",\n\t\"./kn\": \"PpIw\",\n\t\"./kn.js\": \"PpIw\",\n\t\"./ko\": \"Ivi+\",\n\t\"./ko.js\": \"Ivi+\",\n\t\"./ku\": \"JCF/\",\n\t\"./ku.js\": \"JCF/\",\n\t\"./ky\": \"lgnt\",\n\t\"./ky.js\": \"lgnt\",\n\t\"./lb\": \"RAwQ\",\n\t\"./lb.js\": \"RAwQ\",\n\t\"./lo\": \"sp3z\",\n\t\"./lo.js\": \"sp3z\",\n\t\"./lt\": \"JvlW\",\n\t\"./lt.js\": \"JvlW\",\n\t\"./lv\": \"uXwI\",\n\t\"./lv.js\": \"uXwI\",\n\t\"./me\": \"KTz0\",\n\t\"./me.js\": \"KTz0\",\n\t\"./mi\": \"aIsn\",\n\t\"./mi.js\": \"aIsn\",\n\t\"./mk\": \"aQkU\",\n\t\"./mk.js\": \"aQkU\",\n\t\"./ml\": \"AvvY\",\n\t\"./ml.js\": \"AvvY\",\n\t\"./mn\": \"lYtQ\",\n\t\"./mn.js\": \"lYtQ\",\n\t\"./mr\": \"Ob0Z\",\n\t\"./mr.js\": \"Ob0Z\",\n\t\"./ms\": \"6+QB\",\n\t\"./ms-my\": \"ZAMP\",\n\t\"./ms-my.js\": \"ZAMP\",\n\t\"./ms.js\": \"6+QB\",\n\t\"./mt\": \"G0Uy\",\n\t\"./mt.js\": \"G0Uy\",\n\t\"./my\": \"honF\",\n\t\"./my.js\": \"honF\",\n\t\"./nb\": \"bOMt\",\n\t\"./nb.js\": \"bOMt\",\n\t\"./ne\": \"OjkT\",\n\t\"./ne.js\": \"OjkT\",\n\t\"./nl\": \"+s0g\",\n\t\"./nl-be\": \"2ykv\",\n\t\"./nl-be.js\": \"2ykv\",\n\t\"./nl.js\": \"+s0g\",\n\t\"./nn\": \"uEye\",\n\t\"./nn.js\": \"uEye\",\n\t\"./oc-lnc\": \"Fnuy\",\n\t\"./oc-lnc.js\": \"Fnuy\",\n\t\"./pa-in\": \"8/+R\",\n\t\"./pa-in.js\": \"8/+R\",\n\t\"./pl\": \"jVdC\",\n\t\"./pl.js\": \"jVdC\",\n\t\"./pt\": \"8mBD\",\n\t\"./pt-br\": \"0tRk\",\n\t\"./pt-br.js\": \"0tRk\",\n\t\"./pt.js\": \"8mBD\",\n\t\"./ro\": \"lyxo\",\n\t\"./ro.js\": \"lyxo\",\n\t\"./ru\": \"lXzo\",\n\t\"./ru.js\": \"lXzo\",\n\t\"./sd\": \"Z4QM\",\n\t\"./sd.js\": \"Z4QM\",\n\t\"./se\": \"//9w\",\n\t\"./se.js\": \"//9w\",\n\t\"./si\": \"7aV9\",\n\t\"./si.js\": \"7aV9\",\n\t\"./sk\": \"e+ae\",\n\t\"./sk.js\": \"e+ae\",\n\t\"./sl\": \"gVVK\",\n\t\"./sl.js\": \"gVVK\",\n\t\"./sq\": \"yPMs\",\n\t\"./sq.js\": \"yPMs\",\n\t\"./sr\": \"zx6S\",\n\t\"./sr-cyrl\": \"E+lV\",\n\t\"./sr-cyrl.js\": \"E+lV\",\n\t\"./sr.js\": \"zx6S\",\n\t\"./ss\": \"Ur1D\",\n\t\"./ss.js\": \"Ur1D\",\n\t\"./sv\": \"X709\",\n\t\"./sv.js\": \"X709\",\n\t\"./sw\": \"dNwA\",\n\t\"./sw.js\": \"dNwA\",\n\t\"./ta\": \"PeUW\",\n\t\"./ta.js\": \"PeUW\",\n\t\"./te\": \"XLvN\",\n\t\"./te.js\": \"XLvN\",\n\t\"./tet\": \"V2x9\",\n\t\"./tet.js\": \"V2x9\",\n\t\"./tg\": \"Oxv6\",\n\t\"./tg.js\": \"Oxv6\",\n\t\"./th\": \"EOgW\",\n\t\"./th.js\": \"EOgW\",\n\t\"./tk\": \"Wv91\",\n\t\"./tk.js\": \"Wv91\",\n\t\"./tl-ph\": \"Dzi0\",\n\t\"./tl-ph.js\": \"Dzi0\",\n\t\"./tlh\": \"z3Vd\",\n\t\"./tlh.js\": \"z3Vd\",\n\t\"./tr\": \"DoHr\",\n\t\"./tr.js\": \"DoHr\",\n\t\"./tzl\": \"z1FC\",\n\t\"./tzl.js\": \"z1FC\",\n\t\"./tzm\": \"wQk9\",\n\t\"./tzm-latn\": \"tT3J\",\n\t\"./tzm-latn.js\": \"tT3J\",\n\t\"./tzm.js\": \"wQk9\",\n\t\"./ug-cn\": \"YRex\",\n\t\"./ug-cn.js\": \"YRex\",\n\t\"./uk\": \"raLr\",\n\t\"./uk.js\": \"raLr\",\n\t\"./ur\": \"UpQW\",\n\t\"./ur.js\": \"UpQW\",\n\t\"./uz\": \"Loxo\",\n\t\"./uz-latn\": \"AQ68\",\n\t\"./uz-latn.js\": \"AQ68\",\n\t\"./uz.js\": \"Loxo\",\n\t\"./vi\": \"KSF8\",\n\t\"./vi.js\": \"KSF8\",\n\t\"./x-pseudo\": \"/X5v\",\n\t\"./x-pseudo.js\": \"/X5v\",\n\t\"./yo\": \"fzPg\",\n\t\"./yo.js\": \"fzPg\",\n\t\"./zh-cn\": \"XDpg\",\n\t\"./zh-cn.js\": \"XDpg\",\n\t\"./zh-hk\": \"SatO\",\n\t\"./zh-hk.js\": \"SatO\",\n\t\"./zh-mo\": \"OmwH\",\n\t\"./zh-mo.js\": \"OmwH\",\n\t\"./zh-tw\": \"kOpN\",\n\t\"./zh-tw.js\": \"kOpN\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"RnhZ\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.status.deleted)?_c('el-card',{staticClass:\"status-card\",nativeOn:{\"click\":function($event){return _vm.handleRouteChange()}}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('div',{staticClass:\"status-header\"},[_c('div',{staticClass:\"status-account-container\"},[_c('div',{staticClass:\"status-account\"},[(_vm.showCheckbox)?_c('el-checkbox',{staticClass:\"status-checkbox\",on:{\"change\":function($event){return _vm.handleStatusSelection(_vm.account)}}}):_vm._e(),_vm._v(\" \"),(_vm.propertyExists(_vm.account, 'id'))?_c('router-link',{staticClass:\"router-link\",attrs:{\"to\":{ name: 'UsersShow', params: { id: _vm.account.id }}},nativeOn:{\"click\":function($event){$event.stopPropagation();}}},[_c('div',{staticClass:\"status-card-header\"},[(_vm.propertyExists(_vm.account, 'avatar'))?_c('img',{staticClass:\"status-avatar-img\",attrs:{\"src\":_vm.account.avatar}}):_vm._e(),_vm._v(\" \"),(_vm.propertyExists(_vm.account, 'nickname'))?_c('span',{staticClass:\"status-account-name\"},[_vm._v(_vm._s(_vm.account.nickname))]):_c('span',[(_vm.propertyExists(_vm.account, 'nickname'))?_c('span',{staticClass:\"status-account-name\"},[_vm._v(\"\\n \"+_vm._s(_vm.account.nickname)+\"\\n \")]):_c('span',{staticClass:\"status-account-name deactivated\"},[_vm._v(\"(\"+_vm._s(_vm.$t('users.invalidNickname'))+\")\")])])])]):_vm._e()],1)]),_vm._v(\" \"),(_vm.isPrivileged(['messages_delete'], []))?_c('div',{staticClass:\"status-actions\"},[_c('div',{staticClass:\"status-tags\"},[(_vm.status.sensitive)?_c('el-tag',{attrs:{\"type\":\"warning\",\"size\":\"large\"}},[_vm._v(_vm._s(_vm.$t('reports.sensitive')))]):_vm._e(),_vm._v(\" \"),_c('el-tag',{attrs:{\"size\":\"large\"}},[_vm._v(_vm._s(_vm.capitalizeFirstLetter(_vm.status.visibility)))])],1),_vm._v(\" \"),_c('el-dropdown',{attrs:{\"trigger\":\"click\"},nativeOn:{\"click\":function($event){$event.stopPropagation();}}},[_c('el-button',{staticClass:\"status-actions-button\",attrs:{\"plain\":\"\",\"size\":\"small\",\"icon\":\"el-icon-edit\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.changeScope'))),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})]),_vm._v(\" \"),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[(!_vm.status.sensitive)?_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.changeStatus(_vm.status.id, true, _vm.status.visibility)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.addSensitive'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.status.sensitive)?_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.changeStatus(_vm.status.id, false, _vm.status.visibility)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.removeSensitive'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.status.visibility !== 'public')?_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.changeStatus(_vm.status.id, _vm.status.sensitive, 'public')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.public'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.status.visibility !== 'private')?_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.changeStatus(_vm.status.id, _vm.status.sensitive, 'private')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.private'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.status.visibility !== 'unlisted')?_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.changeStatus(_vm.status.id, _vm.status.sensitive, 'unlisted')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.unlisted'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.deleteStatus(_vm.status.id)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('reports.deleteStatus'))+\"\\n \")])],1)],1)],1):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"status-body\"},[(_vm.status.spoiler_text)?_c('div',[_c('strong',[_vm._v(_vm._s(_vm.status.spoiler_text))]),_vm._v(\" \"),(!_vm.showHiddenStatus)?_c('el-button',{staticClass:\"show-more-button\",attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.showHiddenStatus = true}}},[_vm._v(\"Show more\")]):_vm._e(),_vm._v(\" \"),(_vm.showHiddenStatus)?_c('el-button',{staticClass:\"show-more-button\",attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.showHiddenStatus = false}}},[_vm._v(\"Show less\")]):_vm._e(),_vm._v(\" \"),(_vm.showHiddenStatus)?_c('div',[_c('span',{staticClass:\"status-content\",domProps:{\"innerHTML\":_vm._s(_vm.status.content)}}),_vm._v(\" \"),(_vm.status.poll)?_c('div',{staticClass:\"poll\"},[_c('ul',_vm._l((_vm.status.poll.options),function(option,index){return _c('li',{key:index},[_vm._v(\"\\n \"+_vm._s(option.title)+\"\\n \"),_c('el-progress',{attrs:{\"percentage\":_vm.optionPercent(_vm.status.poll, option)}})],1)}),0)]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.status.media_attachments),function(attachment,index){return _c('div',{key:index,staticClass:\"image\"},[_c('img',{attrs:{\"src\":attachment.preview_url}})])})],2):_vm._e()],1):_vm._e(),_vm._v(\" \"),(!_vm.status.spoiler_text)?_c('div',[_c('span',{staticClass:\"status-content\",domProps:{\"innerHTML\":_vm._s(_vm.status.content)}}),_vm._v(\" \"),(_vm.status.poll)?_c('div',{staticClass:\"poll\"},[_c('ul',_vm._l((_vm.status.poll.options),function(option,index){return _c('li',{key:index},[_vm._v(\"\\n \"+_vm._s(option.title)+\"\\n \"),_c('el-progress',{attrs:{\"percentage\":_vm.optionPercent(_vm.status.poll, option)}})],1)}),0)]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.status.media_attachments),function(attachment,index){return _c('div',{key:index,staticClass:\"image\"},[_c('img',{attrs:{\"src\":attachment.preview_url}})])})],2):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"status-footer\"},[_c('span',{staticClass:\"status-created-at\"},[_vm._v(_vm._s(_vm.parseTimestamp(_vm.status.created_at)))]),_vm._v(\" \"),(_vm.status.url)?_c('a',{staticClass:\"account\",attrs:{\"href\":_vm.status.url,\"target\":\"_blank\"},on:{\"click\":function($event){$event.stopPropagation();}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('statuses.openStatusInInstance'))+\"\\n \"),_c('i',{staticClass:\"el-icon-top-right\"})]):_vm._e()])])]):_c('el-card',{staticClass:\"status-card\"},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('div',{staticClass:\"status-header\"},[_c('div',{staticClass:\"status-account-container\"},[_c('div',{staticClass:\"status-account\"},[_c('h4',{staticClass:\"status-deleted\"},[_vm._v(_vm._s(_vm.$t('reports.statusDeleted')))])])])])]),_vm._v(\" \"),_c('div',{staticClass:\"status-body\"},[(_vm.status.content)?_c('span',{staticClass:\"status-content\",domProps:{\"innerHTML\":_vm._s(_vm.status.content)}}):_c('span',{staticClass:\"status-without-content\"},[_vm._v(\"no content\")])]),_vm._v(\" \"),_c('div',{staticClass:\"status-footer\"},[(_vm.status.created_at)?_c('span',{staticClass:\"status-created-at\"},[_vm._v(_vm._s(_vm.parseTimestamp(_vm.status.created_at)))]):_vm._e(),_vm._v(\" \"),(_vm.status.url)?_c('a',{staticClass:\"account\",attrs:{\"href\":_vm.status.url,\"target\":\"_blank\"},on:{\"click\":function($event){$event.stopPropagation();}}},[_vm._v(\"\\n Open status in instance\\n \"),_c('i',{staticClass:\"el-icon-top-right\"})]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js?cacheDirectory!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js?cacheDirectory!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","<template>\n <el-card v-if=\"!status.deleted\" class=\"status-card\" @click.native=\"handleRouteChange()\">\n <div slot=\"header\">\n <div class=\"status-header\">\n <div class=\"status-account-container\">\n <div class=\"status-account\">\n <el-checkbox v-if=\"showCheckbox\" class=\"status-checkbox\" @change=\"handleStatusSelection(account)\"/>\n <router-link\n v-if=\"propertyExists(account, 'id')\"\n :to=\"{ name: 'UsersShow', params: { id: account.id }}\"\n class=\"router-link\"\n @click.native.stop>\n <div class=\"status-card-header\">\n <img v-if=\"propertyExists(account, 'avatar')\" :src=\"account.avatar\" class=\"status-avatar-img\">\n <span v-if=\"propertyExists(account, 'nickname')\" class=\"status-account-name\">{{ account.nickname }}</span>\n <span v-else>\n <span v-if=\"propertyExists(account, 'nickname')\" class=\"status-account-name\">\n {{ account.nickname }}\n </span>\n <span v-else class=\"status-account-name deactivated\">({{ $t('users.invalidNickname') }})</span>\n </span>\n </div>\n </router-link>\n </div>\n </div>\n <div v-if=\"isPrivileged(['messages_delete'], [])\" class=\"status-actions\">\n <div class=\"status-tags\">\n <el-tag v-if=\"status.sensitive\" type=\"warning\" size=\"large\">{{ $t('reports.sensitive') }}</el-tag>\n <el-tag size=\"large\">{{ capitalizeFirstLetter(status.visibility) }}</el-tag>\n </div>\n <el-dropdown trigger=\"click\" @click.native.stop>\n <el-button plain size=\"small\" icon=\"el-icon-edit\" class=\"status-actions-button\">\n {{ $t('reports.changeScope') }}<i class=\"el-icon-arrow-down el-icon--right\"/>\n </el-button>\n <el-dropdown-menu slot=\"dropdown\">\n <el-dropdown-item\n v-if=\"!status.sensitive\"\n @click.native=\"changeStatus(status.id, true, status.visibility)\">\n {{ $t('reports.addSensitive') }}\n </el-dropdown-item>\n <el-dropdown-item\n v-if=\"status.sensitive\"\n @click.native=\"changeStatus(status.id, false, status.visibility)\">\n {{ $t('reports.removeSensitive') }}\n </el-dropdown-item>\n <el-dropdown-item\n v-if=\"status.visibility !== 'public'\"\n @click.native=\"changeStatus(status.id, status.sensitive, 'public')\">\n {{ $t('reports.public') }}\n </el-dropdown-item>\n <el-dropdown-item\n v-if=\"status.visibility !== 'private'\"\n @click.native=\"changeStatus(status.id, status.sensitive, 'private')\">\n {{ $t('reports.private') }}\n </el-dropdown-item>\n <el-dropdown-item\n v-if=\"status.visibility !== 'unlisted'\"\n @click.native=\"changeStatus(status.id, status.sensitive, 'unlisted')\">\n {{ $t('reports.unlisted') }}\n </el-dropdown-item>\n <el-dropdown-item\n @click.native=\"deleteStatus(status.id)\">\n {{ $t('reports.deleteStatus') }}\n </el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n </div>\n </div>\n </div>\n <div class=\"status-body\">\n <div v-if=\"status.spoiler_text\">\n <strong>{{ status.spoiler_text }}</strong>\n <el-button v-if=\"!showHiddenStatus\" size=\"mini\" class=\"show-more-button\" @click=\"showHiddenStatus = true\">Show more</el-button>\n <el-button v-if=\"showHiddenStatus\" size=\"mini\" class=\"show-more-button\" @click=\"showHiddenStatus = false\">Show less</el-button>\n <div v-if=\"showHiddenStatus\">\n <span class=\"status-content\" v-html=\"status.content\"/>\n <div v-if=\"status.poll\" class=\"poll\">\n <ul>\n <li v-for=\"(option, index) in status.poll.options\" :key=\"index\">\n {{ option.title }}\n <el-progress :percentage=\"optionPercent(status.poll, option)\" />\n </li>\n </ul>\n </div>\n <div v-for=\"(attachment, index) in status.media_attachments\" :key=\"index\" class=\"image\">\n <img :src=\"attachment.preview_url\">\n </div>\n </div>\n </div>\n <div v-if=\"!status.spoiler_text\">\n <span class=\"status-content\" v-html=\"status.content\"/>\n <div v-if=\"status.poll\" class=\"poll\">\n <ul>\n <li v-for=\"(option, index) in status.poll.options\" :key=\"index\">\n {{ option.title }}\n <el-progress :percentage=\"optionPercent(status.poll, option)\" />\n </li>\n </ul>\n </div>\n <div v-for=\"(attachment, index) in status.media_attachments\" :key=\"index\" class=\"image\">\n <img :src=\"attachment.preview_url\">\n </div>\n </div>\n <div class=\"status-footer\">\n <span class=\"status-created-at\">{{ parseTimestamp(status.created_at) }}</span>\n <a v-if=\"status.url\" :href=\"status.url\" target=\"_blank\" class=\"account\" @click.stop>\n {{ $t('statuses.openStatusInInstance') }}\n <i class=\"el-icon-top-right\"/>\n </a>\n </div>\n </div>\n </el-card>\n <el-card v-else class=\"status-card\">\n <div slot=\"header\">\n <div class=\"status-header\">\n <div class=\"status-account-container\">\n <div class=\"status-account\">\n <h4 class=\"status-deleted\">{{ $t('reports.statusDeleted') }}</h4>\n </div>\n </div>\n </div>\n </div>\n <div class=\"status-body\">\n <span v-if=\"status.content\" class=\"status-content\" v-html=\"status.content\"/>\n <span v-else class=\"status-without-content\">no content</span>\n </div>\n <div class=\"status-footer\">\n <span v-if=\"status.created_at\" class=\"status-created-at\">{{ parseTimestamp(status.created_at) }}</span>\n <a v-if=\"status.url\" :href=\"status.url\" target=\"_blank\" class=\"account\" @click.stop>\n Open status in instance\n <i class=\"el-icon-top-right\"/>\n </a>\n </div>\n </el-card>\n</template>\n\n<script>\nimport moment from 'moment'\n\nexport default {\n name: 'Status',\n props: {\n account: {\n type: Object,\n required: false,\n default: () => { return {} }\n },\n fetchStatusesByInstance: {\n type: Boolean,\n required: false,\n default: false\n },\n showCheckbox: {\n type: Boolean,\n required: true,\n default: false\n },\n status: {\n type: Object,\n required: true\n },\n page: {\n type: Number,\n required: false,\n default: 0\n },\n userId: {\n type: String,\n required: false,\n default: ''\n },\n godmode: {\n type: Boolean,\n required: false,\n default: false\n }\n },\n data() {\n return {\n showHiddenStatus: false\n }\n },\n methods: {\n capitalizeFirstLetter(str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n },\n isPrivileged(accepted_privileges, accepted_roles) {\n const user_privileges = this.$store.getters.privileges\n const user_roles = this.$store.getters.roles\n return accepted_privileges.some(privilege => user_privileges.indexOf(privilege) >= 0) || accepted_roles.some(role => user_roles.indexOf(role) >= 0)\n },\n changeStatus(statusId, isSensitive, visibility) {\n this.$store.dispatch('ChangeStatusScope', {\n statusId,\n isSensitive,\n visibility,\n reportCurrentPage: this.page,\n userId: this.userId,\n godmode: this.godmode,\n fetchStatusesByInstance: this.fetchStatusesByInstance\n })\n },\n deleteStatus(statusId) {\n this.$confirm('Are you sure you want to delete this status?', 'Warning', {\n confirmButtonText: 'OK',\n cancelButtonText: 'Cancel',\n type: 'warning'\n }).then(() => {\n this.$store.dispatch('DeleteStatus', {\n statusId,\n reportCurrentPage: this.page,\n userId: this.userId,\n godmode: this.godmode,\n fetchStatusesByInstance: this.fetchStatusesByInstance\n })\n this.$message({\n type: 'success',\n message: 'Delete completed'\n })\n }).catch(() => {\n this.$message({\n type: 'info',\n message: 'Delete canceled'\n })\n })\n },\n handleStatusSelection(account) {\n this.$emit('status-selection', account)\n },\n handleRouteChange() {\n this.$router.push({ name: 'StatusShow', params: { id: this.status.id }})\n },\n optionPercent(poll, pollOption) {\n const allVotes = poll.options.reduce((acc, option) => (acc + option.votes_count), 0)\n if (allVotes === 0) {\n return 0\n }\n return +(pollOption.votes_count / allVotes * 100).toFixed(1)\n },\n parseTimestamp(timestamp) {\n return moment(timestamp).format('YYYY-MM-DD HH:mm')\n },\n propertyExists(account, property, _secondProperty) {\n if (_secondProperty) {\n return account[property] && account[_secondProperty]\n }\n return account[property]\n }\n }\n}\n</script>\n\n<style rel='stylesheet/scss' lang='scss'>\n.status-card {\n margin-bottom: 10px;\n cursor: pointer;\n .account {\n line-height: 26px;\n font-size: 13px;\n color: #606266;\n }\n .account:hover {\n text-decoration: underline;\n }\n .deactivated {\n color: gray;\n line-height: 28px;\n vertical-align: middle;\n }\n .image {\n width: 20%;\n img {\n width: 100%;\n }\n }\n .router-link {\n text-decoration: none;\n }\n .show-more-button {\n margin-left: 5px;\n }\n .status-account {\n display: flex;\n align-items: center;\n }\n .status-avatar-img {\n display: inline-block;\n width: 15px;\n height: 15px;\n margin-right: 5px;\n }\n .status-account-name {\n display: inline-block;\n margin: 0;\n font-size: 15px;\n font-weight: 500;\n }\n .status-body {\n display: flex;\n flex-direction: column;\n }\n .status-card-header {\n display: flex;\n align-items: center;\n }\n .status-checkbox {\n margin-right: 7px;\n }\n .status-content {\n font-size: 15px;\n line-height: 26px;\n }\n .status-created-at {\n font-size: 13px;\n color: #606266;\n }\n .status-deleted {\n font-style: italic;\n margin-top: 3px;\n }\n .status-footer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .status-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .status-tags {\n display: inline;\n }\n .status-without-content {\n font-style: italic;\n }\n}\n\n@media only screen and (max-width:480px) {\n .el-message {\n min-width: 80%;\n }\n .el-message-box {\n width: 80%;\n }\n .status-card {\n .el-card__header {\n padding: 10px 17px;\n }\n .el-tag {\n margin: 3px 0;\n }\n .status-account-container {\n margin-bottom: 5px;\n }\n .status-actions-button {\n margin: 3px 0 3px;\n }\n .status-actions {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n }\n .status-footer {\n flex-direction: column;\n align-items: flex-start;\n margin-top: 10px;\n }\n .status-header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n }\n}\n</style>\n","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b8b8bece&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&rel=stylesheet%2Fscss&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\ncomponent.options.__file = \"index.vue\"\nexport default component.exports"],"sourceRoot":""}