(()=>{vare={n:o=>{vart=o&&o.__esModule?()=>o.default:()=>o;returne.d(t,{a:t}),t},d:(o,t)=>{for(varrint)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};(()=>{"use strict";e.r(o);constt=flarum.core.compat["common/app"];e.n(t)().initializers.add("foskym/flarum-oauth-center",(function(){console.log("[foskym/flarum-oauth-center] Hello, forum and admin!")}));constr=flarum.core.compat["forum/app"];varn=e.n(r);consta=flarum.core.compat["common/extend"],u=flarum.core.compat["forum/components/UserPage"];vars=e.n(u);constc=flarum.core.compat["common/components/LinkButton"];vari=e.n(c);functionp(e,o){returnp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){returne.__proto__=o,e},p(e,o)}varf=function(e){varo,t;functionr(){returne.apply(this,arguments)||this}t=e,(o=r).prototype=Object.create(t.prototype),o.prototype.constructor=o,p(o,t);varn=r.prototype;returnn.oninit=function(o){e.prototype.oninit.call(this,o),this.loadUser(m.route.param("username"))},n.content=function(){returnm("div",{className:"AuthorizePage"})},r}(s());n().initializers.add("foskym/flarum-oauth-center",(function(){n().routes["user.authorize"]={path:"/u/:username/authorize",component:f},(0,a.extend)(s().prototype,"navItems",(function(e){n().session.user&&n().session.user.id()===this.user.id()&&e.add("authorize",i().component({href:n().route("user.authorize",{username:this.user.username()}),icon:"fas fa-user-friends"},[n().translator.trans("foskym-oauth-center.forum.page.label.authorize")]),-110)}))}))})(),module.exports=o})();