pleroma/priv/static/adminfe/static/js/chunk-8fbb.c847ce9d.js

2 lines
11 KiB
JavaScript
Raw Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8fbb"],{"0tb0":function(t,e,s){"use strict";var n=s("n2GA");s.n(n).a},"9/5/":function(t,e,s){(function(e){var s="Expected a function",n=NaN,r="[object Symbol]",a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,j="object"==typeof self&&self&&self.Object===Object&&self,d=u||j||Function("return this")(),g=Object.prototype.toString,p=Math.max,m=Math.min,h=function(){return d.Date.now()};function f(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&g.call(t)==r}(t))return n;if(f(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=f(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var s=i.test(t);return s||c.test(t)?l(t.slice(2),s?2:8):o.test(t)?n:+t}t.exports=function(t,e,n){var r,a,o,i,c,l,u=0,j=!1,d=!1,g=!0;if("function"!=typeof t)throw new TypeError(s);function b(e){var s=r,n=a;return r=a=void 0,u=e,i=t.apply(n,s)}function y(t){var s=t-l;return void 0===l||s>=e||s<0||d&&t-u>=o}function k(){var t=h();if(y(t))return x(t);c=setTimeout(k,function(t){var s=e-(t-l);return d?m(s,o-(t-u)):s}(t))}function x(t){return c=void 0,g&&r?b(t):(r=a=void 0,i)}function z(){var t=h(),s=y(t);if(r=arguments,a=this,l=t,s){if(void 0===c)return function(t){return u=t,c=setTimeout(k,e),j?b(t):i}(l);if(d)return c=setTimeout(k,e),b(l)}return void 0===c&&(c=setTimeout(k,e)),i}return e=v(e)||0,f(n)&&(j=!!n.leading,o=(d="maxWait"in n)?p(v(n.maxWait)||0,e):o,g="trailing"in n?!!n.trailing:g),z.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=l=a=c=void 0},z.flush=function(){return void 0===c?i:x(h())},z}}).call(this,s("yLpj"))},CmY0:function(t,e,s){"use strict";s.r(e);var n=s("wd/R"),r=s.n(n),a=s("LvDl"),o=s.n(a),i=s("9/5/"),c=s.n(i),l=s("rIUS"),u={name:"LogEntryMessage",props:{actor:{type:Object,required:!0},message:{type:String,required:!0},subject:{type:[Object,Array],required:!1,default:function(){return{}}}},computed:{logEntryMessage:function(){return this.actor.nickname?this.message.split(this.actor.nickname)[1]:this.message},logEntryMessageWithoutId:function(){return this.logEntryMessage.split("#".concat(this.subject.id))}},methods:{propertyExists:function(t,e){return t[e]}}},j=(s("0tb0"),s("KHd+")),d=Object(j.a)(u,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",[t.propertyExists(t.actor,"id")?s("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:t.actor.id}}}},[t.propertyExists(t.actor,"nickname")?s("span",{staticStyle:{"font-weight":"600"}},[t._v("\n @"+t._s(t.actor.nickname)+"\n ")]):t._e()]):t._e(),t._v(" "),"report"===t.subject.type&&t.propertyExists(t.subject,"id")?s("span",[t._v("\n "+t._s(t.logEntryMessageWithoutId[0])+"\n "),s("router-link",{staticClass:"router-link",attrs:{to:{name:"ReportsShow",params:{id:t.subject.id}}}},[s("span",{staticStyle:{"font-weight":"600"}},[t._v("#"+t._s(t.subject.id))])]),t._v("\n "+t._s(t.logEntryMessageWithoutId[1])+"\n ")],1):s("span",[t._v(t._s(t.logEntryMessage))])],1)},[],!1,null,null,null);d.options.__file="LogEntryMessage.vue";var g=d.exports,p={components:{RebootButton:l.a,LogEntryMessage:g},data:function(){return{dateRange:"",search:"",user:"",currentPage:1}},computed:{isMobile:function(){return"mobile"===this.$store.state.app.device},loading:function(){return this.$store.state.moderationLog.logLoading&&this.$store.state.moderationLog.adminsLoading},log:function(){return this.$store.state.moderationLog.fetchedLog},total:function(){return this.$store.state.moderationLog.logItemsCount},users:function(){return[{label:"Admins",options:this.$store.state.moderationLog.admins.users},{label:"Moderators",options:this.$store.state.moderationLog.moderators.users}]}},created:function(){var t=this;this.handleDebounceSearchInput=c()(function(e){t.fetchLogWithFilters()},500)},mounted:function(){this.$store.dispatch("GetNodeInfo"),this.$store.dispat
//# sourceMappingURL=chunk-8fbb.c847ce9d.js.map