module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},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=18)}([function(t,e){t.exports=flarum.core.compat.Model},function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.d(e,"a",(function(){return n}))},,function(t,e){t.exports=flarum.core.compat["components/LoadingIndicator"]},,function(t,e){t.exports=flarum.core.compat["models/User"]},function(t,e){t.exports=flarum.core.compat["utils/ItemList"]},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return c}));var n=r(0),o=r.n(n),u=r(5),a=r.n(u);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(1),l=function(t){function e(){return t.apply(this,arguments)||this}return Object(i.a)(e,t),e}(o.a);function c(){app.store.models.trust_levels=l,a.a.prototype.trustLevels=o.a.hasMany("trustLevels")}s(l.prototype,{name:o.a.attribute("name"),group:o.a.hasOne("group"),metrics:o.a.attribute("metrics")})},,,function(t,e){t.exports=flarum.core.compat.extend},function(t,e){t.exports=flarum.core.compat["components/EditUserModal"]},,function(t,e,r){var n=r(7).default,o=r(19).default;app.initializers.add("askvortsov/flarum-trust-levels",(function(){n(),o()}))},function(t,e){t.exports=flarum.core.compat["components/GroupBadge"]},,,,function(t,e,r){"use strict";r.r(e);var n=r(13);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o)},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return f}));var n=r(10),o=r(11),u=r.n(o),a=r(14),s=r.n(a),i=r(3),l=r.n(i),c=r(6),p=r.n(c);function f(){Object(n.extend)(u.a.prototype,"oninit",(function(){var t=this;this.loading=!0,app.store.find("trust_levels").then((function(e){e.forEach((function(e){return delete t.groups[e.group().id()]})),t.loading=!1,m.redraw()}))})),Object(n.override)(u.a.prototype,"fields",(function(t){var e=this;if(this.loading){var r=new p.a;return r.add("loading",m(l.a,null)),r}var n=t();return n.add("trustLevels",m("div",{className:"Form-group"},m("label",null,app.translator.trans("askvortsov-trust-levels.forum.edit_user.trust_levels_heading")),app.store.all("trust_levels").map((function(t){return m("label",{className:"checkbox"},m("input",{type:"checkbox",checked:e.attrs.user.trustLevels().includes(t),disabled:!0}),app.translator.trans("askvortsov-trust-levels.forum.edit_user.trust_level_item",{badge:s.a.component({group:t.group(),label:""}),level:t.name(),groupName:t.group().nameSingular()}))})),m("p",null,app.translator.trans("askvortsov-trust-levels.forum.edit_user.trust_levels_not_editable"))),10),n}))}}]);
//# sourceMappingURL=forum.js.map