eva
[akkoma] / priv / static / adminfe / static / js / chunk-598f.dd8089ce.js
1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-598f"],{"9rrl":function(t,e,s){"use strict";var r=s("nBu6");s.n(r).a},Hup8:function(t,e,s){"use strict";var r=s("tOKT");s.n(r).a},RnhZ:function(t,e,s){var r={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-SG":"zavE","./en-SG.js":"zavE","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function a(t){var e=n(t);return s(e)}function n(t){if(!s.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}a.keys=function(){return Object.keys(r)},a.resolve=n,t.exports=a,a.id="RnhZ"},WKah:function(t,e,s){},YqVV:function(t,e,s){"use strict";var r=s("hmQy");s.n(r).a},cEOe:function(t,e,s){"use strict";s.r(e);var r=s("wd/R"),a=s.n(r),n={name:"Statuses",props:{report:{type:Object,required:!0}},methods:{capitalizeFirstLetter:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},changeStatus:function(t,e,s,r){this.$store.dispatch("ChangeStatusScope",{statusId:t,isSensitive:e,visibility:s,reportId:r})},deleteStatus:function(t,e){var s=this;this.$confirm("Are you sure you want to delete this status?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){s.$store.dispatch("DeleteStatus",{statusId:t,reportId:e}),s.$message({type:"success",message:"Delete completed"})}).catch(function(){s.$message({type:"info",message:"Delete canceled"})})},getStatusesTitle:function(t){return"Reported statuses: ".concat(t.length," item(s)")},parseTimestamp:function(t){return a()(t).format("YYYY-MM-DD HH:mm")}}},i=(s("j5HQ"),s("KHd+")),o=Object(i.a)(n,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-collapse-item",{attrs:{title:t.getStatusesTitle(t.report.statuses)}},t._l(t.report.statuses,function(e){return s("el-card",{key:e.id,staticClass:"status-card"},[s("div",{attrs:{slot:"header"},slot:"header"},[s("div",{staticClass:"status-header"},[s("div",{staticClass:"status-account-container"},[s("div",{staticClass:"status-account"},[s("img",{staticClass:"status-avatar-img",attrs:{src:e.account.avatar}}),t._v(" "),s("h3",{staticClass:"status-account-name"},[t._v(t._s(e.account.display_name))])]),t._v(" "),s("a",{staticClass:"account",attrs:{href:e.account.url,target:"_blank"}},[t._v("\n @"+t._s(e.account.acct)+"\n ")])]),t._v(" "),s("div",{staticClass:"status-actions"},[e.sensitive?s("el-tag",{attrs:{type:"warning",size:"large"}},[t._v(t._s(t.$t("reports.sensitive")))]):t._e(),t._v(" "),s("el-tag",{attrs:{size:"large"}},[t._v(t._s(t.capitalizeFirstLetter(e.visibility)))]),t._v(" "),s("el-dropdown",{attrs:{trigger:"click"}},[s("el-button",{staticClass:"status-actions-button",attrs:{plain:"",size:"small",icon:"el-icon-edit"}},[t._v("\n "+t._s(t.$t("reports.changeScope"))),s("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.sensitive?t._e():s("el-dropdown-item",{nativeOn:{click:function(s){return t.changeStatus(e.id,!0,e.visibility,t.report.id)}}},[t._v("\n "+t._s(t.$t("reports.addSensitive"))+"\n ")]),t._v(" "),e.sensitive?s("el-dropdown-item",{nativeOn:{click:function(s){return t.changeStatus(e.id,!1,e.visibility,t.report.id)}}},[t._v("\n "+t._s(t.$t("reports.removeSensitive"))+"\n ")]):t._e(),t._v(" "),"public"!==e.visibility?s("el-dropdown-item",{nativeOn:{click:function(s){return t.changeStatus(e.id,e.sensitive,"public",t.report.id)}}},[t._v("\n "+t._s(t.$t("reports.public"))+"\n ")]):t._e(),t._v(" "),"private"!==e.visibility?s("el-dropdown-item",{nativeOn:{click:function(s){return t.changeStatus(e.id,e.sensitive,"private",t.report.id)}}},[t._v("\n "+t._s(t.$t("reports.private"))+"\n ")]):t._e(),t._v(" "),"unlisted"!==e.visibility?s("el-dropdown-item",{nativeOn:{click:function(s){return t.changeStatus(e.id,e.sensitive,"unlisted",t.report.id)}}},[t._v("\n "+t._s(t.$t("reports.unlisted"))+"\n ")]):t._e(),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(s){return t.deleteStatus(e.id,t.report.id)}}},[t._v("\n "+t._s(t.$t("reports.deleteStatus"))+"\n ")])],1)],1)],1)])]),t._v(" "),s("div",{staticClass:"status-body"},[s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(e.content)}}),t._v(" "),s("a",{staticClass:"account",attrs:{href:e.url,target:"_blank"}},[t._v("\n "+t._s(t.parseTimestamp(e.created_at))+"\n ")])])])}),1)},[],!1,null,null,null);o.options.__file="Statuses.vue";var c={name:"TimelineItem",components:{Statuses:o.exports},props:{report:{type:Object,required:!0}},methods:{changeReportState:function(t,e){this.$store.dispatch("ChangeReportState",{reportState:t,reportId:e})},capitalizeFirstLetter:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},getStateType:function(t){switch(t){case"closed":return"info";case"resolved":return"success";default:return"primary"}},parseTimestamp:function(t){return a()(t).format("L HH:mm")},showDeactivatedButton:function(t){return this.$store.state.user.id!==t},handleDeactivation:function(t){var e=t.nickname;this.$store.dispatch("ToggleUserActivation",e)},handleDeletion:function(t){this.$store.dispatch("DeleteUser",t)},toggleTag:function(t,e){t.tags.includes(e)?this.$store.dispatch("RemoveTag",{users:[t],tag:e}):this.$store.dispatch("AddTag",{users:[t],tag:e})}}},l=(s("YqVV"),Object(i.a)(c,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-timeline-item",{staticClass:"timeline-item-container",attrs:{timestamp:t.parseTimestamp(t.report.created_at),placement:"top"}},[s("el-card",[s("div",{staticClass:"header-container"},[s("div",[s("h3",{staticClass:"report-title"},[t._v("Report on "+t._s(t.report.account.display_name))]),t._v(" "),s("h5",{staticClass:"id"},[t._v("ID: "+t._s(t.report.id))])]),t._v(" "),s("div",[s("el-tag",{attrs:{type:t.getStateType(t.report.state),size:"large"}},[t._v(t._s(t.capitalizeFirstLetter(t.report.state)))]),t._v(" "),s("el-dropdown",{attrs:{trigger:"click"}},[s("el-button",{attrs:{plain:"",size:"small",icon:"el-icon-edit"}},[t._v(t._s(t.$t("reports.changeState"))),s("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["resolved"!==t.report.state?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeReportState("resolved",t.report.id)}}},[t._v(t._s(t.$t("reports.resolve")))]):t._e(),t._v(" "),"open"!==t.report.state?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeReportState("open",t.report.id)}}},[t._v(t._s(t.$t("reports.reopen")))]):t._e(),t._v(" "),"closed"!==t.report.state?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeReportState("closed",t.report.id)}}},[t._v(t._s(t.$t("reports.close")))]):t._e()],1)],1),t._v(" "),s("el-dropdown",{attrs:{trigger:"click"}},[s("el-button",{attrs:{plain:"",size:"small",icon:"el-icon-files"}},[t._v(t._s(t.$t("reports.moderateUser"))),s("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.showDeactivatedButton(t.report.account)?s("el-dropdown-item",{nativeOn:{click:function(e){return t.handleDeactivation(t.report.account)}}},[t._v("\n "+t._s(t.report.account.deactivated?t.$t("users.activateAccount"):t.$t("users.deactivateAccount"))+"\n ")]):t._e(),t._v(" "),t.showDeactivatedButton(t.report.account.id)?s("el-dropdown-item",{nativeOn:{click:function(e){return t.handleDeletion(t.report.account.id)}}},[t._v("\n "+t._s(t.$t("users.deleteAccount"))+"\n ")]):t._e(),t._v(" "),s("el-dropdown-item",{class:{"active-tag":t.report.account.tags.includes("force_nsfw")},attrs:{divided:!0},nativeOn:{click:function(e){return t.toggleTag(t.report.account,"force_nsfw")}}},[t._v("\n "+t._s(t.$t("users.forceNsfw"))+"\n "),t.report.account.tags.includes("force_nsfw")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),s("el-dropdown-item",{class:{"active-tag":t.report.account.tags.includes("strip_media")},nativeOn:{click:function(e){return t.toggleTag(t.report.account,"strip_media")}}},[t._v("\n "+t._s(t.$t("users.stripMedia"))+"\n "),t.report.account.tags.includes("strip_media")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),s("el-dropdown-item",{class:{"active-tag":t.report.account.tags.includes("force_unlisted")},nativeOn:{click:function(e){return t.toggleTag(t.report.account,"force_unlisted")}}},[t._v("\n "+t._s(t.$t("users.forceUnlisted"))+"\n "),t.report.account.tags.includes("force_unlisted")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),s("el-dropdown-item",{class:{"active-tag":t.report.account.tags.includes("sandbox")},nativeOn:{click:function(e){return t.toggleTag(t.report.account,"sandbox")}}},[t._v("\n "+t._s(t.$t("users.sandbox"))+"\n "),t.report.account.tags.includes("sandbox")?s("i",{staticClass:"el-icon-check"}):t._e()]),t._v(" "),t.report.account.local?s("el-dropdown-item",{class:{"active-tag":t.report.account.tags.includes("disable_remote_subscription")},nativeOn:{click:function(e){return t.toggleTag(t.report.account,"disable_remote_subscription")}}},[t._v("\n "+t._s(t.$t("users.disableRemoteSubscription"))+"\n "),t.report.account.tags.includes("disable_remote_subscription")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.report.account.local?s("el-dropdown-item",{class:{"active-tag":t.report.account.tags.includes("disable_any_subscription")},nativeOn:{click:function(e){return t.toggleTag(t.report.account,"disable_any_subscription")}}},[t._v("\n "+t._s(t.$t("users.disableAnySubscription"))+"\n "),t.report.account.tags.includes("disable_any_subscription")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e()],1)],1)],1)]),t._v(" "),s("div",[s("div",{staticClass:"line"}),t._v(" "),s("span",{staticClass:"report-row-key"},[t._v("Account:")]),t._v(" "),s("img",{staticClass:"avatar-img",attrs:{src:t.report.account.avatar,alt:"avatar"}}),t._v(" "),s("a",{staticClass:"account",attrs:{href:t.report.account.url,target:"_blank"}},[s("span",{staticClass:"report-row-value"},[t._v(t._s(t.report.account.acct))])])]),t._v(" "),t.report.content.length>0?s("div",[s("div",{staticClass:"line"}),t._v(" "),s("span",{staticClass:"report-row-key"},[t._v("Content:\n "),s("span",{staticClass:"report-row-value"},[t._v(t._s(t.report.content))])])]):t._e(),t._v(" "),s("div",[s("div",{staticClass:"line"}),t._v(" "),s("span",{staticClass:"report-row-key"},[t._v("Actor:")]),t._v(" "),s("img",{staticClass:"avatar-img",attrs:{src:t.report.actor.avatar,alt:"avatar"}}),t._v(" "),s("a",{staticClass:"account",attrs:{href:t.report.actor.url,target:"_blank"}},[s("span",{staticClass:"report-row-value"},[t._v(t._s(t.report.actor.acct))])])]),t._v(" "),t.report.statuses.length>0?s("div",{staticClass:"statuses"},[s("el-collapse",[s("statuses",{attrs:{report:t.report}})],1)],1):t._e()])],1)},[],!1,null,null,null));l.options.__file="TimelineItem.vue";var u=l.exports,d=s("mSNy"),p={data:function(){return{filter:"open",options:[{value:"open",label:d.a.t("reportsFilter.open")},{value:"closed",label:d.a.t("reportsFilter.closed")},{value:"resolved",label:d.a.t("reportsFilter.resolved")}]}},created:function(){this.$store.dispatch("SetFilter",this.$data.filter)},methods:{toggleFilters:function(){this.$store.dispatch("SetFilter",this.$data.filter),this.$store.dispatch("ClearFetchedReports"),this.$store.dispatch("FetchReports")}}},v=(s("9rrl"),Object(i.a)(p,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-select",{staticClass:"select-field",attrs:{placeholder:t.$t("reportsFilter.inputPlaceholder"),clearable:"","value-key":"value"},on:{change:t.toggleFilters},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}},t._l(t.options,function(e){return s("el-option",{key:e.value,attrs:{label:e.label,value:e.value}},[t._v(t._s(e.label))])}),1)},[],!1,null,"07695bc4",null));v.options.__file="ReportsFilter.vue";var _={components:{TimelineItem:u,ReportsFilter:v.exports},computed:{loading:function(){return this.$store.state.users.loading},reports:function(){return this.$store.state.reports.fetchedReports}},mounted:function(){this.$store.dispatch("FetchReports")},created:function(){window.addEventListener("scroll",this.handleScroll)},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll:function(t){document.documentElement.scrollHeight-document.documentElement.scrollTop===document.documentElement.clientHeight&&this.$store.dispatch("FetchReports")}}},j=(s("Hup8"),Object(i.a)(_,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"reports-container"},[s("h1",[t._v(t._s(t.$t("reports.reports")))]),t._v(" "),s("div",{staticClass:"filter-container"},[s("reports-filter")],1),t._v(" "),s("div",{staticClass:"block"},[s("el-timeline",{staticClass:"timeline"},t._l(t.reports,function(e){return s("timeline-item",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:e.id,attrs:{report:e}})}),1),t._v(" "),0===t.reports.length?s("div",{staticClass:"no-reports-message"},[s("p",[t._v("There are no reports to display")])]):t._e()],1)])},[],!1,null,"e32c7dc6",null));j.options.__file="index.vue";e.default=j.exports},hmQy:function(t,e,s){},j5HQ:function(t,e,s){"use strict";var r=s("WKah");s.n(r).a},nBu6:function(t,e,s){},tOKT:function(t,e,s){}}]);
2 //# sourceMappingURL=chunk-598f.dd8089ce.js.map