total rebase
[anni] / priv / static / adminfe / static / js / chunk-305b.3a7fb27b.js
1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-305b"],{"9Dgh":function(t,e,s){"use strict";var a=s("R1GW");s.n(a).a},"G/Mk":function(t,e,s){"use strict";var a=s("xdcp");s.n(a).a},Kw8l:function(t,e,s){"use strict";var a=s("cRgN");s.n(a).a},R1GW:function(t,e,s){},RnhZ:function(t,e,s){var a={"./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-bd":"loYQ","./bn-bd.js":"loYQ","./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-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-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./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","./fil":"1ppg","./fil.js":"1ppg","./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-deva":"qvJo","./gom-deva.js":"qvJo","./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","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./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","./tk":"Wv91","./tk.js":"Wv91","./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-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function n(t){var e=r(t);return s(e)}function r(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}n.keys=function(){return Object.keys(a)},n.resolve=r,t.exports=n,n.id="RnhZ"},"W2/d":function(t,e,s){},cRgN:function(t,e,s){},dpNl:function(t,e,s){"use strict";var a={name:"ModerateUserDropdown",props:{account:{type:Object,required:!0},reportId:{type:String,required:!0},renderedFrom:{type:String,required:!0}},computed:{isMobile:function(){return"mobile"===this.$store.state.app.device},tagPolicyEnabled:function(){return this.$store.state.users.mrfPolicies.includes("Pleroma.Web.ActivityPub.MRF.TagPolicy")},tags:function(){return this.account.tags||[]}},methods:{enableTagPolicy:function(){var t=this;this.$confirm(this.$t("users.confirmEnablingTagPolicy"),{confirmButtonText:"Yes",cancelButtonText:"Cancel",type:"warning"}).then(function(){t.$message({type:"success",message:t.$t("users.enableTagPolicySuccessMessage")}),t.$store.dispatch("EnableTagPolicy")}).catch(function(){t.$message({type:"info",message:"Canceled"})})},handleDeactivation:function(t){"showPage"===this.renderedFrom?t.is_active?this.$store.dispatch("DeactivateUserFromReportShow",t):this.$store.dispatch("ActivateUserFromReportShow",t):"reportsPage"===this.renderedFrom&&(t.is_active?this.$store.dispatch("DeactivateUserFromReports",{user:t,reportId:this.reportId}):this.$store.dispatch("ActivateUserFromReports",{user:t,reportId:this.reportId}))},handleDeletion:function(t){var e=this;this.$confirm(this.$t("users.deleteUserConfirmation"),{confirmButtonText:"Delete",cancelButtonText:"Cancel",type:"warning"}).then(function(){e.$store.dispatch("DeleteUserFromReports",{user:t,reportId:e.reportId})}).catch(function(){e.$message({type:"info",message:"Delete canceled"})})},showDeactivatedButton:function(t){return this.$store.state.user.id!==t},toggleTag:function(t,e){"showPage"===this.renderedFrom?t.tags.includes(e)?this.$store.dispatch("RemoveTagFromReportsFromReportShow",{user:t,tag:e}):this.$store.dispatch("AddTagFromReportsFromReportShow",{user:t,tag:e}):"reportsPage"===this.renderedFrom&&(t.tags.includes(e)?this.$store.dispatch("RemoveTagFromReports",{user:t,tag:e,reportId:this.reportId}):this.$store.dispatch("AddTagFromReports",{user:t,tag:e,reportId:this.reportId}))}}},n=(s("9Dgh"),s("KHd+")),r=Object(n.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dropdown",{attrs:{"hide-on-click":!1,trigger:"click"}},[s("el-button",{attrs:{disabled:!t.account.id,size:"showPage"!==t.renderedFrom||t.isMobile?"small":"medium",plain:"",icon:"el-icon-files"}},[t._v("\n    "+t._s(t.$t("reports.moderateUser"))+"\n    "),s("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),s("el-dropdown-menu",{staticClass:"moderate-user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t.showDeactivatedButton(t.account)?s("el-dropdown-item",{nativeOn:{click:function(e){return t.handleDeactivation(t.account)}}},[t._v("\n      "+t._s(t.account.is_active?t.$t("users.deactivateAccount"):t.$t("users.activateAccount"))+"\n    ")]):t._e(),t._v(" "),t.showDeactivatedButton(t.account.id)?s("el-dropdown-item",{nativeOn:{click:function(e){return t.handleDeletion(t.account)}}},[t._v("\n      "+t._s(t.$t("users.deleteAccount"))+"\n    ")]):t._e(),t._v(" "),t.tagPolicyEnabled?s("el-dropdown-item",{class:{"active-tag":t.tags.includes("mrf_tag:media-force-nsfw")},attrs:{divided:!0},nativeOn:{click:function(e){return t.toggleTag(t.account,"mrf_tag:media-force-nsfw")}}},[t._v("\n      "+t._s(t.$t("users.forceNsfw"))+"\n      "),t.tags.includes("mrf_tag:media-force-nsfw")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.tagPolicyEnabled?s("el-dropdown-item",{class:{"active-tag":t.tags.includes("mrf_tag:media-strip")},nativeOn:{click:function(e){return t.toggleTag(t.account,"mrf_tag:media-strip")}}},[t._v("\n      "+t._s(t.$t("users.stripMedia"))+"\n      "),t.tags.includes("mrf_tag:media-strip")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.tagPolicyEnabled?s("el-dropdown-item",{class:{"active-tag":t.tags.includes("mrf_tag:force-unlisted")},nativeOn:{click:function(e){return t.toggleTag(t.account,"mrf_tag:force-unlisted")}}},[t._v("\n      "+t._s(t.$t("users.forceUnlisted"))+"\n      "),t.tags.includes("mrf_tag:force-unlisted")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.tagPolicyEnabled?s("el-dropdown-item",{class:{"active-tag":t.tags.includes("mrf_tag:sandbox")},nativeOn:{click:function(e){return t.toggleTag(t.account,"mrf_tag:sandbox")}}},[t._v("\n      "+t._s(t.$t("users.sandbox"))+"\n      "),t.tags.includes("mrf_tag:sandbox")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.tagPolicyEnabled&&t.account.local?s("el-dropdown-item",{class:{"active-tag":t.tags.includes("mrf_tag:disable-remote-subscription")},nativeOn:{click:function(e){return t.toggleTag(t.account,"mrf_tag:disable-remote-subscription")}}},[t._v("\n      "+t._s(t.$t("users.disableRemoteSubscription"))+"\n      "),t.tags.includes("mrf_tag:disable-remote-subscription")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.tagPolicyEnabled&&t.account.local?s("el-dropdown-item",{class:{"active-tag":t.tags.includes("mrf_tag:disable-any-subscription")},nativeOn:{click:function(e){return t.toggleTag(t.account,"mrf_tag:disable-any-subscription")}}},[t._v("\n      "+t._s(t.$t("users.disableAnySubscription"))+"\n      "),t.tags.includes("mrf_tag:disable-any-subscription")?s("i",{staticClass:"el-icon-check"}):t._e()]):t._e(),t._v(" "),t.tagPolicyEnabled?t._e():s("el-dropdown-item",{staticClass:"no-hover",attrs:{divided:""},nativeOn:{click:function(e){return t.enableTagPolicy.apply(null,arguments)}}},[t._v("\n      "+t._s(t.$t("users.enableTagPolicy"))+"\n    ")])],1)],1)},[],!1,null,null,null);r.options.__file="ModerateUserDropdown.vue";e.a=r.exports},oDbL:function(t,e,s){"use strict";var a=s("W2/d");s.n(a).a},ot3S:function(t,e,s){"use strict";var a=s("wd/R"),n=s.n(a),r={name:"Status",props:{account:{type:Object,required:!1,default:function(){return{}}},fetchStatusesByInstance:{type:Boolean,required:!1,default:!1},showCheckbox:{type:Boolean,required:!0,default:!1},status:{type:Object,required:!0},page:{type:Number,required:!1,default:0},userId:{type:String,required:!1,default:""},godmode:{type:Boolean,required:!1,default:!1}},data:function(){return{showHiddenStatus:!1}},methods:{capitalizeFirstLetter:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},isPrivileged:function(t,e){var s=this.$store.getters.privileges,a=this.$store.getters.roles;return t.some(function(t){return s.indexOf(t)>=0})||e.some(function(t){return a.indexOf(t)>=0})},changeStatus:function(t,e,s){this.$store.dispatch("ChangeStatusScope",{statusId:t,isSensitive:e,visibility:s,reportCurrentPage:this.page,userId:this.userId,godmode:this.godmode,fetchStatusesByInstance:this.fetchStatusesByInstance})},deleteStatus:function(t){var e=this;this.$confirm("Are you sure you want to delete this status?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){e.$store.dispatch("DeleteStatus",{statusId:t,reportCurrentPage:e.page,userId:e.userId,godmode:e.godmode,fetchStatusesByInstance:e.fetchStatusesByInstance}),e.$message({type:"success",message:"Delete completed"})}).catch(function(){e.$message({type:"info",message:"Delete canceled"})})},handleStatusSelection:function(t){this.$emit("status-selection",t)},handleRouteChange:function(){this.$router.push({name:"StatusShow",params:{id:this.status.id}})},optionPercent:function(t,e){var s=t.options.reduce(function(t,e){return t+e.votes_count},0);return 0===s?0:+(e.votes_count/s*100).toFixed(1)},parseTimestamp:function(t){return n()(t).format("YYYY-MM-DD HH:mm")},propertyExists:function(t,e,s){return s?t[e]&&t[s]:t[e]}}},i=(s("Kw8l"),s("KHd+")),o=Object(i.a)(r,function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.status.deleted?s("el-card",{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("h4",{staticClass:"status-deleted"},[t._v(t._s(t.$t("reports.statusDeleted")))])])])])]),t._v(" "),s("div",{staticClass:"status-body"},[t.status.content?s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.status.content)}}):s("span",{staticClass:"status-without-content"},[t._v("no content")])]),t._v(" "),s("div",{staticClass:"status-footer"},[t.status.created_at?s("span",{staticClass:"status-created-at"},[t._v(t._s(t.parseTimestamp(t.status.created_at)))]):t._e(),t._v(" "),t.status.url?s("a",{staticClass:"account",attrs:{href:t.status.url,target:"_blank"},on:{click:function(t){t.stopPropagation()}}},[t._v("\n      Open status in instance\n      "),s("i",{staticClass:"el-icon-top-right"})]):t._e()])]):s("el-card",{staticClass:"status-card",nativeOn:{click:function(e){return t.handleRouteChange()}}},[s("div",{attrs:{slot:"header"},slot:"header"},[s("div",{staticClass:"status-header"},[s("div",{staticClass:"status-account-container"},[s("div",{staticClass:"status-account"},[t.showCheckbox?s("el-checkbox",{staticClass:"status-checkbox",on:{change:function(e){return t.handleStatusSelection(t.account)}}}):t._e(),t._v(" "),t.propertyExists(t.account,"id")?s("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:t.account.id}}},nativeOn:{click:function(t){t.stopPropagation()}}},[s("div",{staticClass:"status-card-header"},[t.propertyExists(t.account,"avatar")?s("img",{staticClass:"status-avatar-img",attrs:{src:t.account.avatar}}):t._e(),t._v(" "),t.propertyExists(t.account,"nickname")?s("span",{staticClass:"status-account-name"},[t._v(t._s(t.account.nickname))]):s("span",[t.propertyExists(t.account,"nickname")?s("span",{staticClass:"status-account-name"},[t._v("\n                  "+t._s(t.account.nickname)+"\n                ")]):s("span",{staticClass:"status-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])])])]):t._e()],1)]),t._v(" "),t.isPrivileged(["messages_delete"],[])?s("div",{staticClass:"status-actions"},[s("div",{staticClass:"status-tags"},[t.status.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(t.status.visibility)))])],1),t._v(" "),s("el-dropdown",{attrs:{trigger:"click"},nativeOn:{click:function(t){t.stopPropagation()}}},[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"},[t.status.sensitive?t._e():s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeStatus(t.status.id,!0,t.status.visibility)}}},[t._v("\n              "+t._s(t.$t("reports.addSensitive"))+"\n            ")]),t._v(" "),t.status.sensitive?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeStatus(t.status.id,!1,t.status.visibility)}}},[t._v("\n              "+t._s(t.$t("reports.removeSensitive"))+"\n            ")]):t._e(),t._v(" "),"public"!==t.status.visibility?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeStatus(t.status.id,t.status.sensitive,"public")}}},[t._v("\n              "+t._s(t.$t("reports.public"))+"\n            ")]):t._e(),t._v(" "),"private"!==t.status.visibility?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeStatus(t.status.id,t.status.sensitive,"private")}}},[t._v("\n              "+t._s(t.$t("reports.private"))+"\n            ")]):t._e(),t._v(" "),"unlisted"!==t.status.visibility?s("el-dropdown-item",{nativeOn:{click:function(e){return t.changeStatus(t.status.id,t.status.sensitive,"unlisted")}}},[t._v("\n              "+t._s(t.$t("reports.unlisted"))+"\n            ")]):t._e(),t._v(" "),s("el-dropdown-item",{nativeOn:{click:function(e){return t.deleteStatus(t.status.id)}}},[t._v("\n              "+t._s(t.$t("reports.deleteStatus"))+"\n            ")])],1)],1)],1):t._e()])]),t._v(" "),s("div",{staticClass:"status-body"},[t.status.spoiler_text?s("div",[s("strong",[t._v(t._s(t.status.spoiler_text))]),t._v(" "),t.showHiddenStatus?t._e():s("el-button",{staticClass:"show-more-button",attrs:{size:"mini"},on:{click:function(e){t.showHiddenStatus=!0}}},[t._v("Show more")]),t._v(" "),t.showHiddenStatus?s("el-button",{staticClass:"show-more-button",attrs:{size:"mini"},on:{click:function(e){t.showHiddenStatus=!1}}},[t._v("Show less")]):t._e(),t._v(" "),t.showHiddenStatus?s("div",[s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),t.status.poll?s("div",{staticClass:"poll"},[s("ul",t._l(t.status.poll.options,function(e,a){return s("li",{key:a},[t._v("\n              "+t._s(e.title)+"\n              "),s("el-progress",{attrs:{percentage:t.optionPercent(t.status.poll,e)}})],1)}),0)]):t._e(),t._v(" "),t._l(t.status.media_attachments,function(t,e){return s("div",{key:e,staticClass:"image"},[s("img",{attrs:{src:t.preview_url}})])})],2):t._e()],1):t._e(),t._v(" "),t.status.spoiler_text?t._e():s("div",[s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),t.status.poll?s("div",{staticClass:"poll"},[s("ul",t._l(t.status.poll.options,function(e,a){return s("li",{key:a},[t._v("\n            "+t._s(e.title)+"\n            "),s("el-progress",{attrs:{percentage:t.optionPercent(t.status.poll,e)}})],1)}),0)]):t._e(),t._v(" "),t._l(t.status.media_attachments,function(t,e){return s("div",{key:e,staticClass:"image"},[s("img",{attrs:{src:t.preview_url}})])})],2),t._v(" "),s("div",{staticClass:"status-footer"},[s("span",{staticClass:"status-created-at"},[t._v(t._s(t.parseTimestamp(t.status.created_at)))]),t._v(" "),t.status.url?s("a",{staticClass:"account",attrs:{href:t.status.url,target:"_blank"},on:{click:function(t){t.stopPropagation()}}},[t._v("\n        "+t._s(t.$t("statuses.openStatusInInstance"))+"\n        "),s("i",{staticClass:"el-icon-top-right"})]):t._e()])])])},[],!1,null,null,null);o.options.__file="index.vue";e.a=o.exports},rIUS:function(t,e,s){"use strict";var a=s("yXPU"),n=s.n(a),r=s("o0o1"),i=s.n(r),o=s("mSNy"),c={name:"RebootButton",computed:{needReboot:function(){return this.$store.state.app.needReboot}},methods:{restartApp:function(){var t=this;return n()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("RestartApplication");case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:t.$message({type:"success",message:o.a.t("settings.restartSuccess")});case 9:case"end":return e.stop()}},e,null,[[0,5]])}))()}}},u=s("KHd+"),l=Object(u.a)(c,function(){var t=this.$createElement,e=this._self._c||t;return this.needReboot?e("el-tooltip",{attrs:{content:this.$t("settings.restartApp"),placement:"bottom-end"}},[e("el-button",{staticClass:"reboot-button",attrs:{type:"warning"},on:{click:this.restartApp}},[e("span",[e("i",{staticClass:"el-icon-refresh"}),this._v("\n      "+this._s(this.$t("settings.instanceReboot"))+"\n    ")])])],1):this._e()},[],!1,null,null,null);l.options.__file="index.vue";e.a=l.exports},xdcp:function(t,e,s){},yrTF:function(t,e,s){"use strict";var a=s("wd/R"),n=s.n(a),r={name:"NoteCard",props:{report:{type:Object,required:!0},note:{type:Object,required:!0}},methods:{handleNoteDeletion:function(t,e){var s=this;this.$confirm("Are you sure you want to delete this note?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){s.$store.dispatch("DeleteReportNote",{noteID:t,reportID:e}),s.$message({type:"success",message:"Delete completed"})}).catch(function(){s.$message({type:"info",message:"Delete canceled"})})},parseTimestamp:function(t){return n()(t).format("YYYY-MM-DD HH:mm")},propertyExists:function(t,e){return t[e]}}},i=(s("G/Mk"),s("KHd+")),o=Object(i.a)(r,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-card",{staticClass:"note-card"},[s("div",{attrs:{slot:"header"},slot:"header"},[s("div",{staticClass:"note-header"},[t.propertyExists(t.note.user,"id")?s("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:t.note.user.id}}}},[s("div",{staticClass:"note-actor"},[t.propertyExists(t.note.user,"avatar")?s("img",{staticClass:"note-avatar-img",attrs:{src:t.note.user.avatar,alt:"avatar"}}):t._e(),t._v(" "),t.propertyExists(t.note.user,"nickname")?s("span",{staticClass:"note-actor-name"},[t._v(t._s(t.note.user.nickname))]):s("span",{staticClass:"note-actor-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])])]):t._e(),t._v(" "),s("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.handleNoteDeletion(t.note.id,t.report.id)}}},[t._v("\n        "+t._s(t.$t("reports.deleteNote"))+"\n      ")])],1)]),t._v(" "),s("div",{staticClass:"note-body"},[s("span",{staticClass:"note-content",domProps:{innerHTML:t._s(t.note.content)}}),t._v("\n    "+t._s(t.parseTimestamp(t.note.created_at))+"\n  ")])])},[],!1,null,null,null);o.options.__file="NoteCard.vue";var c={name:"ReportContent",components:{NoteCard:o.exports,Status:s("ot3S").a},props:{report:{type:Object,required:!0}},data:function(){return{notes:{}}},computed:{currentPage:function(){return this.$store.state.reports.currentPage}},methods:{getNotesTitle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Notes: ".concat(t.length," item(s)")},getStatusesTitle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Reported statuses: ".concat(t.length," item(s)")},handleNewNote:function(t){this.$store.dispatch("CreateReportNote",{content:this.notes[t],reportID:t}),this.notes[t]=""},propertyExists:function(t,e,s){return s?t[e]&&t[s]:t[e]},showStatuses:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).length>0}}},u=(s("oDbL"),Object(i.a)(c,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"report-account-container"},[s("span",{staticClass:"report-row-key"},[t._v(t._s(t.$t("reports.account"))+":")]),t._v(" "),s("div",{staticClass:"report-account"},[t.propertyExists(t.report.account,"id")?s("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:t.report.account.id}}}},[t.propertyExists(t.report.account,"avatar")?s("img",{staticClass:"avatar-img",attrs:{src:t.report.account.avatar,alt:"avatar"}}):t._e(),t._v(" "),t.propertyExists(t.report.account,"nickname")?s("span",{staticClass:"report-account-name"},[t._v(t._s(t.report.account.nickname))]):s("span",{staticClass:"report-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])]):s("span",{staticClass:"report-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")]),t._v(" "),t.propertyExists(t.report.account,"url")?s("a",{staticClass:"account",attrs:{href:t.report.account.url,target:"_blank"}},[t._v("\n        "+t._s(t.$t("userProfile.openAccountInInstance"))+"\n        "),s("i",{staticClass:"el-icon-top-right"})]):t._e()],1)]),t._v(" "),t.report.content&&t.report.content.length>0?s("div",[s("el-divider",{staticClass:"divider"}),t._v(" "),s("span",{staticClass:"report-row-key"},[t._v(t._s(t.$t("reports.content"))+":\n      "),s("span",[t._v(t._s(t.report.content))])])],1):t._e(),t._v(" "),s("el-divider",{staticClass:"divider"}),t._v(" "),s("div",{staticClass:"report-account-container",style:t.showStatuses(t.report.statuses)?"":"margin-bottom:15px"},[s("span",{staticClass:"report-row-key"},[t._v(t._s(t.$t("reports.actor"))+":")]),t._v(" "),s("div",{staticClass:"report-account"},[t.propertyExists(t.report.actor,"id")?s("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:t.report.actor.id}}}},[t.propertyExists(t.report.actor,"avatar")?s("img",{staticClass:"avatar-img",attrs:{src:t.report.actor.avatar,alt:"avatar"}}):t._e(),t._v(" "),t.propertyExists(t.report.actor,"nickname")?s("span",{staticClass:"report-account-name"},[t._v(t._s(t.report.actor.nickname))]):s("span",{staticClass:"report-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")])]):s("span",{staticClass:"report-account-name deactivated"},[t._v("("+t._s(t.$t("users.invalidNickname"))+")")]),t._v(" "),t.propertyExists(t.report.actor,"url")?s("a",{staticClass:"account",attrs:{href:t.report.actor.url,target:"_blank"}},[t._v("\n        "+t._s(t.$t("userProfile.openAccountInInstance"))+"\n        "),s("i",{staticClass:"el-icon-top-right"})]):t._e()],1)]),t._v(" "),t.showStatuses(t.report.statuses)?s("div",{staticClass:"reported-statuses"},[s("el-collapse",[s("el-collapse-item",{attrs:{title:t.getStatusesTitle(t.report.statuses)}},t._l(t.report.statuses,function(e){return s("div",{key:e.id},[s("status",{attrs:{status:e,account:e.account.nickname?e.account:t.report.account,"show-checkbox":!1,page:t.currentPage}})],1)}),0)],1)],1):t._e(),t._v(" "),s("div",[s("el-collapse",[s("el-collapse-item",{attrs:{title:t.getNotesTitle(t.report.notes)}},t._l(t.report.notes,function(e,a){return s("note-card",{key:a,attrs:{note:e,report:t.report}})}),1)],1),t._v(" "),s("div",{staticClass:"report-note-form"},[s("el-input",{attrs:{placeholder:t.$t("reports.leaveNote"),type:"textarea",rows:"2"},model:{value:t.notes[t.report.id],callback:function(e){t.$set(t.notes,t.report.id,e)},expression:"notes[report.id]"}}),t._v(" "),s("div",{staticClass:"report-post-note"},[s("el-button",{on:{click:function(e){return t.handleNewNote(t.report.id)}}},[t._v(t._s(t.$t("reports.postNote")))])],1)],1)],1)],1)},[],!1,null,null,null));u.options.__file="ReportContent.vue";e.a=u.exports}}]);
2 //# sourceMappingURL=chunk-305b.3a7fb27b.js.map