framework/extensions/akismet/js/dist/forum.js
flarum-bot bc036af8b6 Bundled output for commit e5ba4f4320
Includes transpiled JS/TS.

[skip ci]
2022-01-04 23:33:11 +00:00

2 lines
1.8 KiB
JavaScript
Generated

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=5)}([,function(t,e){t.exports=flarum.core.compat["forum/app"]},function(t,e){t.exports=flarum.core.compat["common/extend"]},function(t,e){t.exports=flarum.core.compat["forum/utils/PostControls"]},function(t,e){t.exports=flarum.core.compat["forum/components/CommentPost"]},function(t,e,r){"use strict";r.r(e);var o=r(2),n=r(1),u=r.n(n),a=r(3),f=r.n(a),i=r(4),c=r.n(i);u.a.initializers.add("flarum-akismet",(function(){Object(o.extend)(f.a,"destructiveControls",(function(t,e){if(t.has("approve")){var r=e.flags();r&&r.some((function(t){return"akismet"===t.type()}))&&(t.get("approve").children=u.a.translator.trans("flarum-akismet.forum.post.not_spam_button"))}})),Object(o.override)(c.a.prototype,"flagReason",(function(t,e){return"akismet"===e.type()?u.a.translator.trans("flarum-akismet.forum.post.akismet_flagged_text"):t(e)}))}))}]);
//# sourceMappingURL=forum.js.map