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UAAW,cACZF,EAAA,OAAKE,UAAW,aACXb,KAAK4E,YAAYH,KAI1B9D,EAAA,OAAKE,UAAU,uCACVb,KAAK6E,YAAYJ,IAIlC,EAEA5E,EACA+E,YAAA,SAAYH,GACR,MAAO,CACHhD,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,UAAT4D,EAAmB,gBAAkB,IAC1DjB,QAAS,kBAAM7C,EAAE+D,MAAMI,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,wBAEX,EACDxB,KAAM,eACPlD,IAAAA,WAAegB,MAAM,yCACxBI,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,YAAT4D,EAAqB,gBAAkB,IAC5DjB,QAAS,kBAAM7C,EAAE+D,MAAMI,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,sBACJN,KAAM,YAEb,EACDlB,KAAM,wBACPlD,IAAAA,WAAegB,MAAM,2CACxBI,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,WAAT4D,EAAoB,gBAAkB,IAC3DjB,QAAS,kBAAM7C,EAAE+D,MAAMI,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,sBACJN,KAAM,WAEb,EACDlB,KAAM,oBACPlD,IAAAA,WAAegB,MAAM,0CAEhC,EAACxB,EAGDgF,YAAA,SAAYJ,GACR,MAAY,WAARA,EACO9D,EAAC6B,EAAW,MACJ,UAARiC,EACA9D,EAAC0D,EAAU,MAEf1D,EAAChB,EAAS,KACrB,EAAC2E,CAAA,CA9D4B,CAASU,KCJ1C3E,IAAAA,aAAiBX,IAAI,8BAA8B,WACjDW,IAAAA,cAAiB,IACV,uBACJ4E,aAAaX,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/extenders']\"","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['common/Model']\"","webpack://@foskym/flarum-oauth-center/./src/common/models/Client.js","webpack://@foskym/flarum-oauth-center/./src/common/extend.js","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['admin/app']\"","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/external root \"flarum.core.compat['admin/components/AdminPage']\"","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/extenders'];","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['common/Model'];","import Model from 'flarum/common/Model';\n\nexport default class Client extends Model {\n client_id = Model.attribute('client_id');\n client_secret = Model.attribute('client_secret');\n redirect_uri = Model.attribute('redirect_uri');\n grant_types = Model.attribute('grant_types');\n scope = Model.attribute('scope');\n user_id = Model.attribute('user_id');\n client_name = Model.attribute('client_name');\n client_icon = Model.attribute('client_icon');\n client_desc = Model.attribute('client_desc');\n client_home = Model.attribute('client_home');\n}\n","import Extend from 'flarum/common/extenders';\nimport Client from \"./models/Client\";\n\nexport default [\n new Extend.Store()\n .add('oauth-clients', Client),\n];\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/app'];","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';\nimport Page from 'flarum/common/components/Page';\nimport FieldSet from 'flarum/common/components/FieldSet';\nimport Button from 'flarum/common/components/Button';\nimport saveSettings from 'flarum/admin/utils/saveSettings';\nimport Stream from 'flarum/common/utils/Stream';\nimport Select from 'flarum/common/components/Select';\nimport Switch from 'flarum/common/components/Switch';\n\nexport default class IndexPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n\n this.saving = false;\n\n this.fields = [\n 'foskym-oauth-center.access_lifetime',\n 'foskym-oauth-center.allow_implicit',\n 'foskym-oauth-center.enforce_state',\n 'foskym-oauth-center.require_exact_redirect_uri'\n ];\n this.values = {};\n\n const settings = app.data.settings;\n this.fields.forEach(key => this.values[key] = Stream(settings[key] || \"\"));\n\n for (let i = 1; i < this.fields.length; i++) {\n this.values[this.fields[i]] = settings[this.fields[i]] === '1';\n }\n }\n\n view() {\n return (\n