module.exports=function(e){var o={};function n(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,o){if(1&o&&(e=n(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)n.d(t,r,function(o){return e[o]}.bind(null,r));return t},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},n.p="",n(n.s=6)}([function(e,o){e.exports=flarum.core.compat.extend},function(e,o){e.exports=flarum.core.compat["tags/components/TagsPage"]},function(e,o){e.exports=flarum.core.compat.app},function(e,o){e.exports=flarum.core.compat["components/SessionDropdown"]},function(e,o){e.exports=flarum.core.compat["components/Button"]},function(e,o){e.exports=flarum.core.compat["components/Page"]},function(e,o,n){"use strict";n.r(o);var t=n(0),r=n(2),s=n.n(r),a=n(3),f=n.n(a),i=n(4),u=n.n(i),c=n(5),d=n.n(c),p=n(1),l=n.n(p);s.a.initializers.add("fof-nightmode",(function(e){Object(t.extend)(d.a.prototype,"init",(function(){e.session.user&&e.session.user.preferences().fofNightMode?$("body").addClass("dark"):$("body").removeClass("dark")})),l.a&&Object(t.extend)(l.a.prototype,"config",(function(){e.session.user&&e.session.user.preferences().fofNightMode?$("body").addClass("dark"):$("body").removeClass("dark")})),Object(t.extend)(f.a.prototype,"items",(function(o){var n=1!=e.session.user.preferences().fofNightMode;o.add(e.session.user&&e.session.user.preferences().fofNightMode?"nightmode":"daymode",u.a.component({icon:1==n?"far fa-moon":"far fa-sun",href:"javascript:;",children:1==n?e.translator.trans("fof-nightmode.forum.night"):e.translator.trans("fof-nightmode.forum.day"),onclick:function(){e.session.user.savePreferences({fofNightMode:n}),$("body").toggleClass("dark")}}),-1)}))}))}]);
//# sourceMappingURL=forum.js.map