Merge branch 'update/oban' into 'develop'
[akkoma] / priv / static / adminfe / static / js / chunk-1e1e.37f6f555.js
1 (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1e1e"],{"7W2i":function(t,e,n){var r=n("SksO");t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},"9/5/":function(t,e,n){(function(e){var n="Expected a function",r=NaN,s="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,f=l||p||Function("return this")(),j=Object.prototype.toString,d=Math.max,h=Math.min,m=function(){return f.Date.now()};function g(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)&&j.call(t)==s}(t))return r;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):i.test(t)?r:+t}t.exports=function(t,e,r){var s,o,i,a,u,c,l=0,p=!1,f=!1,j=!0;if("function"!=typeof t)throw new TypeError(n);function b(e){var n=s,r=o;return s=o=void 0,l=e,a=t.apply(r,n)}function y(t){var n=t-c;return void 0===c||n>=e||n<0||f&&t-l>=i}function k(){var t=m();if(y(t))return x(t);u=setTimeout(k,function(t){var n=e-(t-c);return f?h(n,i-(t-l)):n}(t))}function x(t){return u=void 0,j&&s?b(t):(s=o=void 0,a)}function O(){var t=m(),n=y(t);if(s=arguments,o=this,c=t,n){if(void 0===u)return function(t){return l=t,u=setTimeout(k,e),p?b(t):a}(c);if(f)return u=setTimeout(k,e),b(c)}return void 0===u&&(u=setTimeout(k,e)),a}return e=v(e)||0,g(r)&&(p=!!r.leading,i=(f="maxWait"in r)?d(v(r.maxWait)||0,e):i,j="trailing"in r?!!r.trailing:j),O.cancel=function(){void 0!==u&&clearTimeout(u),l=0,s=c=o=u=void 0},O.flush=function(){return void 0===u?a:x(m())},O}}).call(this,n("yLpj"))},CmY0:function(t,e,n){"use strict";n.r(e);var r=n("cDf5"),s=n.n(r),o=n("7W2i"),i=n.n(o),a=(n("a1gu"),n("Nsbk"),n("oShl")),u=n.n(a),c=n("RIqP"),l=n.n(c),p=n("wd/R"),f=n.n(p),j=n("LvDl"),d=n.n(j),h=n("9/5/"),m=n.n(h),g=n("rIUS"),v={name:"UserLink",props:{id:{type:String,required:!0}}},b=n("KHd+"),y=Object(b.a)(v,function(){var t=this.$createElement,e=this._self._c||t;return e("router-link",{staticClass:"router-link",attrs:{to:{name:"ReportsShow",params:{id:this.id}}}},[e("span",{staticStyle:{"font-weight":"600"}},[this._v("#"+this._s(this.id))])])},[],!1,null,null,null);y.options.__file="ReportLink.vue";var k=y.exports,x={name:"UserLink",props:{actor:{type:String,required:!0}}},O=Object(b.a)(x,function(){var t=this.$createElement,e=this._self._c||t;return e("router-link",{staticClass:"router-link",attrs:{to:{name:"UsersShow",params:{id:this.actor}}}},[e("span",{staticStyle:{"font-weight":"600"}},[this._v("@"+this._s(this.actor))])])},[],!1,null,null,null);O.options.__file="UserLink.vue";var w=O.exports,z=n("Kw5r");function S(t,e){S=function(t,e){return new a(t,void 0,e)};var n=u()(RegExp),r=RegExp.prototype,o=new WeakMap;function a(t,e,r){var s=n.call(this,t,e);return o.set(s,r||o.get(t)),s}function c(t,e){var n=o.get(e);return Object.keys(n).reduce(function(e,r){return e[r]=t[n[r]],e},Object.create(null))}return i()(a,n),a.prototype.exec=function(t){var e=r.exec.call(this,t);return e&&(e.groups=c(e,this)),e},a.prototype[Symbol.replace]=function(t,e){if("string"==typeof e){var n=o.get(this);return r[Symbol.replace].call(this,t,e.replace(/\$<([^>]+)>/g,function(t,e){return"$"+n[e]}))}if("function"==typeof e){var i=this;return r[Symbol.replace].call(this,t,function(){var t=[];return t.push.apply(t,arguments),"object"!==s()(t[t.length-1])&&t.push(c(t,i)),e.apply(this,t)})}return r[Symbol.replace].call(this,t,e)},S.apply(this,arguments)}z.default.component("user-link",w),z.default.component("report-link",k);var _={components:{RebootButton:g.a},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=m()(function(e){t.fetchLogWithFilters()},500)},mounted:function(){this.$store.dispatch("GetNodeInfo"),this.$store.dispatch("NeedReboot"),this.$store.dispatch("FetchModerationLog"),this.$store.dispatch("FetchAdmins")},methods:{fetchLogWithFilters:function(){var t=d.a.omitBy({start_date:this.dateRange?this.dateRange[0].toISOString():null,end_date:this.dateRange?this.dateRange[1].toISOString():null,user_id:this.user,search:this.search,page:this.currentPage},function(t){return""===t||null===t});this.$store.dispatch("FetchModerationLog",t)},normalizeTimestamp:function(t){return f()(1e3*t).format("YYYY-MM-DD HH:mm")},processedMessage:function(t){var e=l()(t.message.matchAll(S(/@(([\x2D0-9A-Z_a-z]+))/g,{nickname:1}))).map(function(t){return t.groups.nickname}).reduce(function(t,e){return t.replace("@".concat(e),'<user-link actor="'.concat(e,'"/>'))},t.message);return this.propertyExists(t.data,"subject")&&"report"===t.data.subject.type?{template:"<div>"+l()(e.matchAll(S(/#(([0-9A-Z_a-z]+))/g,{reportId:1}))).map(function(t){return t.groups.reportId}).reduce(function(t,e){return t.replace("#".concat(e),'<report-link id="'.concat(e,'"/>'))},e)+"</div>"}:{template:"<div>"+e+"</div>"}},propertyExists:function(t,e){return t[e]}}},R=(n("u9ua"),Object(b.a)(_,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?t._e():n("div",{staticClass:"moderation-log-container"},[n("div",{staticClass:"moderation-log-header-container"},[n("h1",[t._v(t._s(t.$t("moderationLog.moderationLog")))]),t._v(" "),n("reboot-button")],1),t._v(" "),n("div",{staticClass:"moderation-log-nav-container"},[n("el-select",{staticClass:"moderation-log-user-select",attrs:{clearable:"",placeholder:"Filter by admin/moderator"},on:{change:t.fetchLogWithFilters},model:{value:t.user,callback:function(e){t.user=e},expression:"user"}},t._l(t.users,function(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,function(t){return n("el-option",{key:t.id,attrs:{label:t.nickname,value:t.id}})}),1)}),1),t._v(" "),n("el-input",{staticClass:"moderation-log-search",attrs:{placeholder:"Search logs",clearable:""},on:{input:t.handleDebounceSearchInput},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),n("el-date-picker",{staticClass:"moderation-log-date-panel",attrs:{"default-time":["00:00:00","23:59:59"],type:"daterange","start-placeholder":"Start date","end-placeholder":"End date","unlink-panels":""},on:{change:t.fetchLogWithFilters},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}),t._v(" "),n("el-timeline",t._l(t.log,function(e,r){return n("el-timeline-item",{key:r,attrs:{timestamp:t.normalizeTimestamp(e.time)}},[n(t.processedMessage(e),{tag:"component"})],1)}),1),t._v(" "),n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{"current-page":t.currentPage,"hide-on-single-page":!0,"page-size":50,total:t.total,small:t.isMobile,layout:"prev, pager, next"},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"current-change":t.fetchLogWithFilters}})],1)],1)},[],!1,null,"ab8fe5e2",null));R.options.__file="index.vue";e.default=R.exports},Nsbk:function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},PJYZ:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},RnhZ:function(t,e,n){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-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-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 s(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}s.keys=function(){return Object.keys(r)},s.resolve=o,t.exports=s,s.id="RnhZ"},SksO:function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},a1gu:function(t,e,n){var r=n("cDf5"),s=n("PJYZ");t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?s(t):e}},b48C:function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}},oShl:function(t,e,n){var r=n("Nsbk"),s=n("SksO"),o=n("xfeJ"),i=n("sXyB");function a(e){var n="function"==typeof Map?new Map:void 0;return t.exports=a=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return i(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s(e,t)},a(e)}t.exports=a},s6JU:function(t,e,n){},sXyB:function(t,e,n){var r=n("SksO"),s=n("b48C");function o(e,n,i){return s()?t.exports=o=Reflect.construct:t.exports=o=function(t,e,n){var s=[null];s.push.apply(s,e);var o=new(Function.bind.apply(t,s));return n&&r(o,n.prototype),o},o.apply(null,arguments)}t.exports=o},u9ua:function(t,e,n){"use strict";var r=n("s6JU");n.n(r).a},xfeJ:function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}}}]);
2 //# sourceMappingURL=chunk-1e1e.37f6f555.js.map