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CAeF,EDAfF,GCAKC,EDALF,GCCvBlB,UAAYN,OAAO8B,OAAOH,EAAWrB,WAC9CoB,EAASpB,UAAUyB,YAAcL,EACjCL,EAAeK,EAAUC,GDHO,IAAAK,EAAAR,EAAAlB,UAU/B,OAV+B0B,EAChCC,OAAA,SAAOC,GACLT,EAAAnB,UAAM2B,OAAMzB,KAAC,KAAA0B,GACbC,KAAKC,SAASC,EAAEC,MAAMC,MAAM,YAC9B,EAACP,EACDQ,QAAA,WACE,OACEH,EAAA,OAAKI,UAAU,iBAGnB,EAACjB,CAAA,CAV+B,CAASkB,KEI3C3B,IAAAA,aAAiBC,IAAI,8BAA8B,WACjDD,IAAAA,OAAW,kBAAoB,CAC7B4B,KAAM,yBACNC,UAAWpB,IAEbqB,EAAAA,EAAAA,QAAOH,IAAAA,UAAoB,YAAY,SAAUI,GAC3C/B,IAAAA,QAAYgC,MAAQhC,IAAAA,QAAYgC,KAAKC,OAASb,KAAKY,KAAKC,MAC1DF,EAAM9B,IACJ,YACAiC,IAAAA,UACE,CACEC,KAAMnC,IAAAA,MAAU,iBAAkB,CAAEoC,SAAUhB,KAAKY,KAAKI,aACxDC,KAAM,uBAER,CACErC,IAAAA,WAAesC,MAAM,qDAIxB,IAGP,GACF,G","sources":["webpack://@foskym/flarum-oauth-center/webpack/bootstrap","webpack://@foskym/flarum-oauth-center/webpack/runtime/compat get default export","webpack://@foskym/flarum-oauth-center/webpack/runtime/define property getters","webpack://@foskym/flarum-oauth-center/webpack/runtime/hasOwnProperty shorthand","webpack://@foskym/flarum-oauth-center/webpack/runtime/make namespace object","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/app']\"","webpack://@foskym/flarum-oauth-center/./src/common/index.ts","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['forum/app']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/extend']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['forum/components/UserPage']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@foskym/flarum-oauth-center/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@foskym/flarum-oauth-center/./src/forum/components/user/AuthorizePage.js","webpack://@foskym/flarum-oauth-center/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@foskym/flarum-oauth-center/./src/forum/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/app'];","import app from 'flarum/common/app';\n\napp.initializers.add('foskym/flarum-oauth-center', () => {\n console.log('[foskym/flarum-oauth-center] Hello, forum and admin!');\n});\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/UserPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import UserPage from 'flarum/forum/components/UserPage';\nexport default class AuthorizePage extends UserPage {\n oninit(vnode) {\n super.oninit(vnode);\n this.loadUser(m.route.param('username'));\n }\n content() {\n return (\n <div className=\"AuthorizePage\">\n </div>\n );\n }\n}\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","import app from 'flarum/forum/app';\nimport {extend} from 'flarum/common/extend';\nimport UserPage from 'flarum/forum/components/UserPage';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport AuthorizePage from \"./components/user/AuthorizePage\";\napp.initializers.add('foskym/flarum-oauth-center', () => {\n app.routes['user.authorize'] = {\n path: '/u/:username/authorize',\n component: AuthorizePage\n };\n extend(UserPage.prototype, 'navItems', function (items) {\n if (app.session.user && app.session.user.id() === this.user.id()) {\n items.add(\n 'authorize',\n LinkButton.component(\n {\n href: app.route('user.authorize', { username: this.user.username() }),\n icon: 'fas fa-user-friends',\n },\n [\n app.translator.trans('foskym-oauth-center.forum.page.label.authorize'),\n // this.user.moderatorNoteCount() > 0 ? <span className=\"Button-badge\">{this.user.moderatorNoteCount()}</span> : '',\n ]\n ),\n -110\n );\n }\n });\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","app","add","console","log","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","AuthorizePage","_UserPage","subClass","superClass","apply","arguments","create","constructor","_proto","oninit","vnode","this","loadUser","m","route","param","content","className","UserPage","path","component","extend","items","user","id","LinkButton","href","username","icon","trans"],"sourceRoot":""} |