framework/extensions/flags/js/dist/admin.js

2 lines
2.6 KiB
JavaScript
Raw Normal View History

module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}({0:function(t,e){t.exports=flarum.core.compat.app},1:function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return r})},2:function(t,e){t.exports=flarum.core.compat.extend},20:function(t,e){t.exports=flarum.core.compat["components/SettingsModal"]},22:function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(0),a=n.n(o),s=n(8),i=n.n(s),l=n(1),u=n(20),f=function(t){function e(){return t.apply(this,arguments)||this}Object(l.a)(e,t);var n=e.prototype;return n.className=function(){return"FlagsSettingsModal Modal--small"},n.title=function(){return app.translator.trans("flarum-flags.admin.settings.title")},n.form=function(){return[m("div",{className:"Form-group"},m("label",null,app.translator.trans("flarum-flags.admin.settings.guidelines_url_label")),m("input",{className:"FormControl",bidi:this.setting("flarum-flags.guidelines_url")}))]},e}(n.n(u).a),c={"components/FlagsSettingsModal":f},p=n(6);a.a.initializers.add("flarum-flags",function(){a.a.extensionSettings["flarum-flags"]=function(){return a.a.modal.show(new f)},Object(r.extend)(i.a.prototype,"moderateItems",function(t){t.add("viewFlags",{icon:"fas fa-flag",label:a.a.translator.trans("flarum-flags.admin.permissions.view_flags_label"),permission:"discussion.viewFlags"},65)}),Object(r.extend)(i.a.prototype,"replyItems",function(t){t.add("flagPosts",{icon:"fas fa-flag",label:a.a.translator.trans("flarum-flags.admin.permissions.flag_posts_label"),permission:"discussion.flagPosts"},70)})}),Object.assign(p.compat,c)},6:function(t,e){t.exports=flarum.core},8:function(t,e){t.exports=flarum.core.compat["components/PermissionGrid"]}});
//# sourceMappingURL=admin.js.map