text: module.exports=function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(n){return t[n]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=10)}([function(t,n){t.exports=flarum.core.compat["admin/app"]},,,,,function(t,n){t.exports=flarum.core.compat["common/helpers/icon"]},,,function(t,n){t.exports=flarum.core.compat["common/components/Button"]},function(t,n){t.exports=flarum.core.compat["admin/components/ExtensionPage"]},function(t,n,e){"use strict";e.r(n);var o=e(0),r=e.n(o);function a(t,n){return(a=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}var i=e(8),u=e.n(i),s=e(9),l=e.n(s),f=e(5),c=e.n(f),p=function(t){var n,e;function o(){return t.apply(this,arguments)||this}e=t,(n=o).prototype=Object.create(e.prototype),n.prototype.constructor=n,a(n,e);var i=o.prototype;return i.oninit=function(n){t.prototype.oninit.call(this,n),this.showing=[]},i.content=function(){var t=this;return[m("div",{className:"container"},m("div",{className:"AuthSettingsPage"},m("div",{className:"Form"},this.buildSettingComponent({type:"boolean",setting:"fof-oauth.only_icons",label:r.a.translator.trans("fof-oauth.admin.settings.only_icons_label")}),m("hr",null),r.a.data["fof-oauth"].map((function(n){var e=n.name,o=!!Number(t.setting("fof-oauth."+e)()),a=!!t.showing[e],i=r.a.forum.attribute("baseUrl")+"/auth/"+e;return m("div",{className:"Provider "+(o?"enabled":"disabled")+" "+(a&&"showing")},m("div",{className:"Provider--info"},t.buildSettingComponent({type:"boolean",setting:"fof-oauth."+e,label:m("div",null,c()(n.icon),m("span",null,r.a.translator.trans("fof-oauth.lib.providers."+e)))}),m(u.a,{className:"Button Button--rounded "+(t.showing[e]&&"active"),onclick:function(){return t.showing[e]=!a}},c()("fas fa-cog"))),m("div",{className:"Provider--settings"},m("div",null,m("p",null,r.a.translator.trans("fof-oauth.admin.settings.providers."+e+".description",{link:m("a",{href:n.link,target:"_blank"},n.link)})),m("p",null,r.a.translator.trans("fof-oauth.admin.settings.providers.callback_url_text",{url:m("a",{href:i,target:"_blank"},i)})),Object.keys(n.fields).map((function(o){var i;return t.buildSettingComponent({type:"string",setting:"fof-oauth."+e+"."+o,label:r.a.translator.trans("fof-oauth.admin.settings.providers."+e+"."+o+"_label"),required:(i={},i[a&&n.fields[o].includes("required")?"required":null]=!0,i)})})))))})),this.submitButton())))]},o}(l.a);r.a.initializers.add("fof/oauth",(function(){r.a.extensionData.for("fof-oauth").registerPage(p)}))}]);
  //# sourceMappingURL=admin.js.map