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B,YAATH,EAAqB,gBAAkB,IAC5DQ,QAAS,kBAAMhB,EAAES,MAAMQ,IACnBpC,IAAAA,MAAU,YAAa,CACnBqC,GAAI,sBACJV,KAAM,YAEb,EACDW,KAAM,wBACPtC,IAAAA,WAAeuC,MAAM,2CACxBL,IAAAA,UAAiB,CACbJ,UAAW,WAAmB,WAATH,EAAoB,gBAAkB,IAC3DQ,QAAS,kBAAMhB,EAAES,MAAMQ,IACnBpC,IAAAA,MAAU,YAAa,CACnBqC,GAAI,sBACJV,KAAM,WAEb,EACDW,KAAM,oBACPtC,IAAAA,WAAeuC,MAAM,0CAEhC,EAACd,EAGDQ,YAAA,SAAYN,GACR,MAAY,WAARA,EACOR,EAACE,EAAW,MACJ,UAARM,EACAR,EAACG,EAAU,MAEfH,EAACL,EAAS,KACrB,EAACS,CAAA,CA9D4B,CAASiB,KCJ1CxC,IAAAA,aAAiBC,IAAI,8BAA8B,WACjDD,IAAAA,cAAiB,IACV,uBACJyC,aAAalB,EAClB,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['admin/app']\"","webpack://@foskym/flarum-oauth-center/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@foskym/flarum-oauth-center/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['admin/components/ExtensionPage']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Button']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Page']\"","webpack://@foskym/flarum-oauth-center/./src/admin/pages/IndexPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/pages/ClientsPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/pages/ScopesPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/components/SettingsPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/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['admin/app'];","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 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}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/components/ExtensionPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Page'];","import Page from 'flarum/common/components/Page';\r\n\r\nexport default class IndexPage extends Page {\r\n view() {\r\n return (\r\n
\r\n

Index Page

\r\n
\r\n );\r\n }\r\n}\r\n","import Page from 'flarum/common/components/Page';\r\n\r\nexport default class ClientsPage extends Page {\r\n view() {\r\n return (\r\n
\r\n

Clients Page

\r\n
\r\n );\r\n }\r\n}\r\n","import Page from 'flarum/common/components/Page';\r\n\r\nexport default class ScopesPage extends Page {\r\n view() {\r\n return (\r\n
\r\n

Scopes Page

\r\n
\r\n );\r\n }\r\n}\r\n","import app from 'flarum/admin/app';\r\nimport ExtensionPage from 'flarum/admin/components/ExtensionPage';\r\nimport Button from 'flarum/common/components/Button';\r\nimport IndexPage from \"../pages/IndexPage\";\r\nimport ClientsPage from \"../pages/ClientsPage\";\r\nimport ScopesPage from \"../pages/ScopesPage\";\r\nexport default class SettingsPage extends ExtensionPage {\r\n content() {\r\n const page = m.route.param().page || 'index';\r\n\r\n return (\r\n
\r\n
\r\n
\r\n {this.menuButtons(page)}\r\n
\r\n
\r\n\r\n
\r\n {this.pageContent(page)}\r\n
\r\n
\r\n );\r\n }\r\n\r\n // Return button menus\r\n menuButtons(page) {\r\n return [\r\n Button.component({\r\n className: `Button ${page === 'index' ? 'item-selected' : ''}`,\r\n onclick: () => m.route.set(\r\n app.route('extension', {\r\n id: 'foskym-oauth-center'\r\n })\r\n ),\r\n icon: 'fas fa-home',\r\n }, app.translator.trans('foskym-oauth-center.admin.page.index')),\r\n Button.component({\r\n className: `Button ${page === 'clients' ? 'item-selected' : ''}`,\r\n onclick: () => m.route.set(\r\n app.route('extension', {\r\n id: 'foskym-oauth-center',\r\n page: 'clients'\r\n })\r\n ),\r\n icon: 'fas fa-network-wired',\r\n }, app.translator.trans('foskym-oauth-center.admin.page.clients')),\r\n Button.component({\r\n className: `Button ${page === 'scopes' ? 'item-selected' : ''}`,\r\n onclick: () => m.route.set(\r\n app.route('extension', {\r\n id: 'foskym-oauth-center',\r\n page: 'scopes'\r\n })\r\n ),\r\n icon: 'fas fa-user-lock',\r\n }, app.translator.trans('foskym-oauth-center.admin.page.scopes')),\r\n ];\r\n }\r\n\r\n\r\n pageContent(page) {\r\n if (page == 'clients') {\r\n return \r\n } else if (page == 'scopes') {\r\n return \r\n }\r\n return \r\n }\r\n}\r\n","import app from 'flarum/admin/app';\nimport SettingsPage from './components/SettingsPage';\napp.initializers.add('foskym/flarum-oauth-center', () => {\n app.extensionData\n .for('foskym-oauth-center')\n .registerPage(SettingsPage);\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__","_inheritsLoose","subClass","superClass","create","constructor","IndexPage","_Page","apply","arguments","view","m","Page","ClientsPage","ScopesPage","SettingsPage","_ExtensionPage","_proto","content","page","route","param","className","this","menuButtons","pageContent","Button","onclick","set","id","icon","trans","ExtensionPage","registerPage"],"sourceRoot":""}