framework/extensions/approval/js/dist/admin.js
2018-09-21 01:00:24 +00:00

2 lines
2.2 KiB
JavaScript

module.exports=function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}({0:function(t,e){t.exports=flarum.core.compat.extend},1:function(t,e){t.exports=flarum.core.compat.app},12:function(t,e,r){"use strict";r.r(e);var o=r(0),n=r(1),a=r.n(n),s=r(5),i=r.n(s);a.a.initializers.add("flarum-approval",function(){Object(o.extend)(a.a,"getRequiredPermissions",function(t,e){"discussion.startWithoutApproval"===e&&t.push("startDiscussion"),"discussion.replyWithoutApproval"===e&&t.push("discussion.reply")}),Object(o.extend)(i.a.prototype,"startItems",function(t){t.add("startDiscussionsWithoutApproval",{icon:"fas fa-check",label:a.a.translator.trans("flarum-approval.admin.permissions.start_discussions_without_approval_label"),permission:"discussion.startWithoutApproval"},95)}),Object(o.extend)(i.a.prototype,"replyItems",function(t){t.add("replyWithoutApproval",{icon:"fas fa-check",label:a.a.translator.trans("flarum-approval.admin.permissions.reply_without_approval_label"),permission:"discussion.replyWithoutApproval"},95)}),Object(o.extend)(i.a.prototype,"moderateItems",function(t){t.add("approvePosts",{icon:"fas fa-check",label:a.a.translator.trans("flarum-approval.admin.permissions.approve_posts_label"),permission:"discussion.approvePosts"},65)})})},5:function(t,e){t.exports=flarum.core.compat["components/PermissionGrid"]}});
//# sourceMappingURL=admin.js.map