text: module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([,function(e,t){e.exports=flarum.core.compat["forum/app"]},function(e,t){e.exports=flarum.core.compat["common/extend"]},function(e,t){e.exports=flarum.core.compat["forum/components/SettingsPage"]},function(e,t){e.exports=flarum.core.compat["forum/components/HeaderSecondary"]},function(e,t){e.exports=flarum.core.compat["forum/components/LogInModal"]},function(e,t,n){"use strict";n.r(t);var o=n(2),r=n(1),a=n.n(r),u=n(4),c=n.n(u),i=n(3),l=n.n(i),f=n(5),s=n.n(f);a.a.initializers.add("maicol07-sso",(function(){function e(e){return a.a.forum.attribute("maicol07-sso."+e)}function t(){return{login:{url:e("login_url"),itemName:"logIn",removeItem:"1"===e("remove_login_btn"),text:a.a.translator.trans("core.forum.header.log_in_link")},signup:{url:e("logout_url"),itemName:"signUp",removeItem:"1"===e("remove_signup_btn"),text:a.a.translator.trans("core.forum.header.sign_up_link")}}}Object(o.override)(s.a.prototype,"oncreate",(function(){var e=t();throw window.location.href=e.login.url,new Error("Stop execution")})),Object(o.extend)(c.a.prototype,"items",(function(e){for(var n=t(),o=0,r=Object.entries(n);o<r.length;o++){var a=r[o][1];if(a.url)if(a.removeItem)e.remove(a.itemName);else{if(!e.has(a.itemName))return;e.replace(a.itemName,m("a",{href:a.url,className:"Button Button--link"},a.text))}}})),Object(o.extend)(l.a.prototype,"accountItems",(function(t){e("login_url")&&(t.remove("changeEmail"),t.remove("changePassword"),e("manage_account_url")&&t.add("manageAccount",m("a",{class:"Button",href:e("manage_account_url"),target:"1"===e("manage_account_btn_open_in_new_tab")?"_blank":""},a.a.translator.trans("maicol07-sso.forum.manage_account_btn"))))})),Object(o.extend)(l.a.prototype,"settingsItems",(function(t){e("manage_account_url")||t.has("account")&&0===t.get("account").children.length&&t.remove("account")}))}))}]);
  //# sourceMappingURL=forum.js.map