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Z,UAAW,WAAmB,UAATgC,EAAmB,gBAAkB,IAC1DK,QAAS,kBAAMvC,EAAEmC,MAAMK,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,wBAEX,EACDC,KAAM,eACP3E,IAAAA,WAAe2C,MAAM,yCACxBI,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,YAATgC,EAAqB,gBAAkB,IAC5DK,QAAS,kBAAMvC,EAAEmC,MAAMK,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,sBACJP,KAAM,YAEb,EACDQ,KAAM,wBACP3E,IAAAA,WAAe2C,MAAM,2CACxBI,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,WAATgC,EAAoB,gBAAkB,IAC3DK,QAAS,kBAAMvC,EAAEmC,MAAMK,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,sBACJP,KAAM,WAEb,EACDQ,KAAM,oBACP3E,IAAAA,WAAe2C,MAAM,0CAEhC,EAACzB,EAGDqD,YAAA,SAAYJ,GACR,MAAY,WAARA,EACOlC,EAAC6B,EAAW,MACJ,UAARK,EACAlC,EAAC8B,EAAU,MAEf9B,EAACnB,EAAS,KACrB,EAACkD,CAAA,CA9D4B,CAASY,KCJ1C5E,IAAAA,aAAiBC,IAAI,8BAA8B,WACjDD,IAAAA,cAAiB,IACV,uBACJ6E,aAAab,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/external root \"flarum.core.compat['common/components/FieldSet']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['admin/utils/saveSettings']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/utils/Stream']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Select']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Switch']\"","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'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/FieldSet'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/utils/saveSettings'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/Stream'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Select'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Switch'];","import app from 'flarum/admin/app';\r\nimport Page from 'flarum/common/components/Page';\r\nimport FieldSet from 'flarum/common/components/FieldSet';\r\nimport Button from 'flarum/common/components/Button';\r\nimport saveSettings from 'flarum/admin/utils/saveSettings';\r\nimport Stream from 'flarum/common/utils/Stream';\r\nimport Select from 'flarum/common/components/Select';\r\nimport Switch from 'flarum/common/components/Switch';\r\n\r\nexport default class IndexPage extends Page {\r\n oninit(vnode) {\r\n super.oninit(vnode);\r\n\r\n this.saving = false;\r\n\r\n this.fields = [\r\n 'foskym-oauth-center.access_lifetime',\r\n 'foskym-oauth-center.allow_implicit',\r\n 'foskym-oauth-center.enforce_state',\r\n 'foskym-oauth-center.require_exact_redirect_uri'\r\n ];\r\n this.values = {};\r\n\r\n const settings = app.data.settings;\r\n this.fields.forEach(key => this.values[key] = Stream(settings[key] || \"\"));\r\n\r\n for (let i = 1; i < this.fields.length; i++) {\r\n this.values[this.fields[i]] = settings[this.fields[i]] === '1';\r\n }\r\n }\r\n\r\n view() {\r\n return (\r\n