move to 2.5.5
[anni] / priv / static / adminfe1 / static / js / chunk-2cfa.608c3714.js
1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2cfa"],{BIUI:function(s,t,e){},RnhZ:function(s,t,e){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(s){var t=r(s);return e(t)}function r(s){if(!e.o(a,s)){var t=new Error("Cannot find module '"+s+"'");throw t.code="MODULE_NOT_FOUND",t}return a[s]}n.keys=function(){return Object.keys(a)},n.resolve=r,s.exports=n,n.id="RnhZ"},hnhE:function(s,t,e){"use strict";var a=e("BIUI");e.n(a).a},kpw7:function(s,t,e){"use strict";var a=e("oXTF");e.n(a).a},oXTF:function(s,t,e){},pGDl:function(s,t,e){"use strict";e.r(t);var a=e("wd/R"),n=e.n(a),r={name:"ChatMessage",props:{message:{type:Object,required:!0},author:{type:Object,required:!0},page:{type:Number,required:!1,default:0}},data:function(){return{}},methods:{propertyExists:function(s,t){return s[t]},parseTimestamp:function(s){return n()(s).format("YYYY-MM-DD HH:mm")},deleteMessage:function(){var s=this;this.$confirm("Are you sure you want to delete this message?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(function(){s.$store.dispatch("DeleteMessage",{chat_id:s.message.chat_id,message_id:s.message.id}),s.$message({type:"success",message:"Delete completed"})}).catch(function(){s.$message({type:"info",message:"Delete canceled"})})},handleRouteChange:function(){this.$router.push({name:"UsersShow",params:{id:this.author.id}})}}},i=(e("kpw7"),e("KHd+")),o=Object(i.a)(r,function(){var s=this,t=s.$createElement,e=s._self._c||t;return s.message.deleted?s._e():e("el-card",{staticClass:"message-card"},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"message-header"},[e("div",{staticClass:"message-meta"},[s.propertyExists(s.author,"id")?e("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:s.author.id}}},nativeOn:{click:function(s){s.stopPropagation()}}},[e("div",{staticClass:"message-author"},[s.propertyExists(s.author,"avatar")?e("img",{staticClass:"message-author-avatar-img",attrs:{src:s.author.avatar}}):s._e(),s._v(" "),s.propertyExists(s.author,"username")?e("span",{staticClass:"message-author-name"},[s._v(s._s(s.author.username))]):e("span",[s.propertyExists(s.author,"username")?e("span",{staticClass:"message-author-name"},[s._v("\n                "+s._s(s.author.username)+"\n              ")]):e("span",{staticClass:"message-author-name deactivated"},[s._v("("+s._s(s.$t("users.invalidNickname"))+")")])])])]):s._e(),s._v(" "),e("span",{staticClass:"message-timestamp"},[s._v(s._s(s.parseTimestamp(s.message.created_at)))])],1),s._v(" "),e("div",{staticClass:"message-actions"},[e("el-dropdown",{attrs:{trigger:"click"},nativeOn:{click:function(s){s.stopPropagation()}}},[e("el-button",{staticClass:"status-actions-button",attrs:{plain:"",size:"small",icon:"el-icon-edit"}},[s._v("\n            "+s._s(s.$t("reports.messageModeration"))),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),s._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(t){return s.deleteMessage()}}},[s._v("\n              "+s._s(s.$t("reports.deleteMessage"))+"\n            ")]),s._v(" "),e("el-dropdown-item",{nativeOn:{click:function(t){return s.handleRouteChange()}}},[s._v("\n              "+s._s(s.$t("users.moderateUser"))+"\n            ")])],1)],1)],1)])]),s._v(" "),e("div",{staticClass:"message-body"},[e("span",{staticClass:"message-content",domProps:{innerHTML:s._s(s.message.content)}}),s._v(" "),s.message.attachment?e("div",{staticClass:"image"},[e("img",{attrs:{src:s.message.attachment.preview_url}})]):s._e()])])},[],!1,null,null,null);o.options.__file="index.vue";var c=o.exports,l={name:"ChatShow",components:{RebootButton:e("rIUS").a,ChatMessage:c},computed:{isDesktop:function(){return"desktop"===this.$store.state.app.device},isMobile:function(){return"mobile"===this.$store.state.app.device},isTablet:function(){return"tablet"===this.$store.state.app.device},allLoaded:function(){return this.$store.state.chat.allLoaded},buttonLoading:function(){return this.$store.state.chat.buttonLoading},loading:function(){return this.$store.state.chat.loading},chat:function(){return this.$store.state.chat.fetchedChat},chatMessages:function(){return this.$store.state.chat.fetchedChatMessages}},beforeMount:function(){this.$store.dispatch("HandlePageChange",null),this.$store.dispatch("NeedReboot"),this.$store.dispatch("GetNodeInfo"),this.$store.dispatch("FetchChat",this.$route.params.id),this.$store.dispatch("FetchChatMessages",this.$route.params.id)},methods:{propertyExists:function(s,t){return s[t]},getAuthor:function(s){var t=this.chat.sender,e=this.chat.receiver;return s===t.id?t:e},handleLoadMore:function(){var s=this.chatMessages.pop().id;this.$store.dispatch("HandlePageChange",s),this.$store.dispatch("FetchChatMessages",this.$route.params.id)}}},h=(e("hnhE"),Object(i.a)(l,function(){var s=this,t=s.$createElement,e=s._self._c||t;return s.loading?s._e():e("div",{staticClass:"chat-show-container"},[e("header",{staticClass:"chat-page-header"},[e("h1",[s._v("\n      "+s._s(s.$t("chats.chatHistory"))+":\n    ")]),s._v(" "),e("div",{staticClass:"chat-card-participants"},[e("div",{staticClass:"chat-particiants-sender"},[e("div",{staticClass:"avatar-name-container"},[s.propertyExists(s.chat.sender,"avatar")?e("el-avatar",{attrs:{src:s.chat.sender.avatar,size:"large"}}):s._e(),s._v(" "),s.propertyExists(s.chat.sender,"display_name")?e("h1",{staticClass:"particiant-display-name"},[s._v(s._s(s.chat.sender.display_name))]):e("h1",{staticClass:"particiant-display-name invalid"},[s._v("("+s._s(s.$t("users.invalidNickname"))+")")]),s._v(" "),s.propertyExists(s.chat.sender,"url")?e("a",{attrs:{href:s.chat.sender.url,target:"_blank"}},[e("i",{staticClass:"el-icon-top-right",attrs:{title:s.$t("userProfile.openAccountInInstance")}})]):s._e()],1)]),s._v(" "),e("div",{staticClass:"chat-particiants-receiver"},[e("div",{staticClass:"avatar-name-container"},[s.propertyExists(s.chat.receiver,"avatar")?e("el-avatar",{attrs:{src:s.chat.receiver.avatar,size:"large"}}):s._e(),s._v(" "),s.propertyExists(s.chat.receiver,"display_name")?e("h1",{staticClass:"particiant-display-name"},[s._v(s._s(s.chat.receiver.display_name))]):e("h1",{staticClass:"particiant-display-name invalid"},[s._v("("+s._s(s.$t("users.invalidNickname"))+")")]),s._v(" "),s.propertyExists(s.chat.receiver,"url")?e("a",{attrs:{href:s.chat.receiver.url,target:"_blank"}},[e("i",{staticClass:"el-icon-top-right",attrs:{title:s.$t("userProfile.openAccountInInstance")}})]):s._e()],1)])])]),s._v(" "),s.isMobile?e("div",{staticClass:"chat-page-header-container"},[e("header",{staticClass:"chat-page-header"},[e("div",{staticClass:"avatar-name-container"}),s._v(" "),e("reboot-button")],1)]):s._e(),s._v(" "),e("div",{staticClass:"chat-messages-container"},[s.loading?s._e():e("el-timeline",{staticClass:"messages"},[s._l(s.chatMessages,function(t){return e("el-timeline-item",{key:t.id},[e("chat-message",{attrs:{message:t,author:s.getAuthor(t.account_id)}})],1)}),s._v(" "),0===s.chatMessages.length?e("p",{staticClass:"no-messages"},[s._v(s._s(s.$t("userProfile.noMessages")))]):s._e(),s._v(" "),20===s.chatMessages.length?e("div",{staticClass:"statuses-pagination"},[s.allLoaded?e("el-button",{attrs:{icon:"el-icon-check",circle:""}}):e("el-button",{attrs:{loading:s.buttonLoading},on:{click:s.handleLoadMore}},[s._v(s._s(s.$t("statuses.loadMore")))])],1):s._e()],2)],1)])},[],!1,null,null,null));h.options.__file="show.vue";t.default=h.exports},rIUS:function(s,t,e){"use strict";var a=e("yXPU"),n=e.n(a),r=e("o0o1"),i=e.n(r),o=e("mSNy"),c={name:"RebootButton",computed:{needReboot:function(){return this.$store.state.app.needReboot}},methods:{restartApp:function(){var s=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.$store.dispatch("RestartApplication");case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:s.$message({type:"success",message:o.a.t("settings.restartSuccess")});case 9:case"end":return t.stop()}},t,null,[[0,5]])}))()}}},l=e("KHd+"),h=Object(l.a)(c,function(){var s=this.$createElement,t=this._self._c||s;return this.needReboot?t("el-tooltip",{attrs:{content:this.$t("settings.restartApp"),placement:"bottom-end"}},[t("el-button",{staticClass:"reboot-button",attrs:{type:"warning"},on:{click:this.restartApp}},[t("span",[t("i",{staticClass:"el-icon-refresh"}),this._v("\n      "+this._s(this.$t("settings.instanceReboot"))+"\n    ")])])],1):this._e()},[],!1,null,null,null);h.options.__file="index.vue";t.a=h.exports}}]);
2 //# sourceMappingURL=chunk-2cfa.608c3714.js.map