framework/extensions/flags/js/dist/forum.js

2 lines
12 KiB
JavaScript
Raw Normal View History

module.exports=function(t){var a={};function o(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=a,o.d=function(t,a,e){o.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,a){if(1&a&&(t=o(t)),8&a)return t;if(4&a&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var n in t)o.d(e,n,function(a){return t[a]}.bind(null,n));return e},o.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(a,"a",a),a},o.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},o.p="",o(o.s=23)}([function(t,a){t.exports=flarum.core.compat["forum/app"]},function(t,a){t.exports=flarum.core.compat["common/Model"]},function(t,a){t.exports=flarum.core.compat["common/utils/withAttr"]},function(t,a){t.exports=flarum.core.compat["common/extend"]},function(t,a){t.exports=flarum.core.compat["common/components/Button"]},,function(t,a){t.exports=flarum.core.compat["forum/components/Post"]},function(t,a){t.exports=flarum.core.compat["forum/utils/PostControls"]},function(t,a){t.exports=flarum.core.compat["common/utils/ItemList"]},function(t,a){t.exports=flarum.core.compat["common/utils/Stream"]},function(t,a){t.exports=flarum.core.compat["components/Page"]},function(t,a){t.exports=flarum.core.compat["common/Component"]},function(t,a){t.exports=flarum.core.compat["common/components/Link"]},function(t,a){t.exports=flarum.core.compat["common/components/LoadingIndicator"]},function(t,a){t.exports=flarum.core.compat["common/helpers/avatar"]},function(t,a){t.exports=flarum.core.compat["common/helpers/username"]},function(t,a){t.exports=flarum.core.compat["common/helpers/icon"]},function(t,a){t.exports=flarum.core.compat["common/helpers/humanTime"]},function(t,a){t.exports=flarum.core.compat["common/components/Modal"]},function(t,a){t.exports=flarum.core.compat["forum/components/HeaderSecondary"]},function(t,a){t.exports=flarum.core.compat["components/NotificationsDropdown"]},function(t,a){t.exports=flarum.core.compat["common/utils/humanTime"]},function(t,a){t.exports=flarum.core},function(t,a,o){"use strict";o.r(a);var e=o(0),n=o.n(e),s=o(1),r=o.n(s);function l(t,a){return(l=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t})(t,a)}function i(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,l(t,a)}var c=function(t){function a(){return t.apply(this,arguments)||this}return i(a,t),a}(r.a);Object.assign(c.prototype,{type:r.a.attribute("type"),reason:r.a.attribute("reason"),reasonDetail:r.a.attribute("reasonDetail"),createdAt:r.a.attribute("createdAt",r.a.transformDate),post:r.a.hasOne("post"),user:r.a.hasOne("user")});var u=c,f=o(10),p=o.n(f),d=o(11),g=o.n(d),h=o(12),b=o.n(h),v=o(13),_=o.n(v),y=o(14),x=o.n(y),N=o(15),F=o.n(N),k=o(16),w=o.n(k),C=o(17),D=o.n(C),P=function(t){function a(){return t.apply(this,arguments)||this}i(a,t);var o=a.prototype;return o.oninit=function(a){t.prototype.oninit.call(this,a),this.state=this.attrs.state},o.view=function(){var t=this.state.cache||[];return m("div",{className:"NotificationList FlagList"},m("div",{className:"NotificationList-header"},m("h4",{className:"App-titleControl App-titleControl--text"},n.a.translator.trans("flarum-flags.forum.flagged_posts.title"))),m("div",{className:"NotificationList-content"},m("ul",{className:"NotificationGroup-content"},t.length?t.map((function(t){var a=t.post();return m("li",null,m(b.a,{href:n.a.route.post(a),className:"Notification Flag",onclick:function(t){n.a.flags.index=a,t.redraw=!1}},x()(a.user()),w()("fas fa-flag",{className:"Notification-icon"}),m("span",{className:"Notification-content"},n.a.translator.trans("flarum-flags.forum.flagged_posts.item_text",{username:F()(a.user()),em:m("em",null),discussion:a.dis
//# sourceMappingURL=forum.js.map