text: 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=15)}([function(t,e){t.exports=flarum.core.compat["admin/app"]},function(t,e){t.exports=flarum.core.compat["common/utils/Stream"]},function(t,e){t.exports=flarum.core.compat["common/models/Group"]},,function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,"a",(function(){return o}))},,,function(t,e){t.exports=flarum.core.compat["common/components/Switch"]},,,,,,function(t,e){t.exports=flarum.core.compat["admin/components/ExtensionPage"]},,function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),i=n(4),a=n(13),s=n.n(a),u=n(2),c=n.n(u),l=n(7),f=n.n(l),p=n(1),d=n.n(p),g="the-turk-regrole.",b=g+"admin.settings.",y=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.oninit=function(e){t.prototype.oninit.call(this,e),this.roleIds=d()(JSON.parse(o.a.data.settings[g+"roleIds"]||"[]"))()},n.content=function(){var t=this;return[m(".RegRoleSettingsPage",[m(".container",[m(".Form-group",[m("label",o.a.translator.trans(b+"roleIds")),m(".helpText",o.a.translator.trans(b+"roleIdsHelp")),m("div",[o.a.store.all("groups").filter((function(t){return-1===[c.a.GUEST_ID,c.a.MEMBER_ID,c.a.ADMINISTRATOR_ID].indexOf(t.id())})).map((function(e){return m(".Form-group",[m("label",f.a.component({state:t.roleIds.indexOf(e.id())>-1,onchange:function(n){if(n)t.roleIds.push(e.id());else{var r=t.roleIds.indexOf(e.id());r>-1&&t.roleIds.splice(r,1)}}},e.nameSingular()))])}))])]),m(".Form-group",[m("label",o.a.translator.trans(b+"otherOptions")),m(".Form-group",[m("label",f.a.component({state:"1"===this.setting(g+"multipleRoles","0")(),onchange:function(e){t.setting(g+"multipleRoles")(e?"1":"0")}},o.a.translator.trans(b+"multipleRoles")))]),m(".Form-group",[m("label",f.a.component({state:"1"===this.setting(g+"forceUsers","0")(),onchange:function(e){t.setting(g+"forceUsers")(e?"1":"0")}},o.a.translator.trans(b+"forceUsers")))])]),this.submitButton()])])]},n.dirty=function(){var t=this,e={},n=JSON.stringify(this.roleIds);return n!==o.a.data.settings[g+"roleIds"]&&(e[g+"roleIds"]=n),Object.keys(this.settings).forEach((function(n){var r=t.settings[n]();r!==o.a.data.settings[n]&&(e[n]=r)})),e},e}(s.a);o.a.initializers.add("ianm/regrole",(function(t){t.extensionData.for("ianm-regrole").registerPage(y)}))}]);
  //# sourceMappingURL=admin.js.map