diff --git a/js/dist/forum.js b/js/dist/forum.js
index 04bcc88..aaf3e41 100644
--- a/js/dist/forum.js
+++ b/js/dist/forum.js
@@ -1,2 +1,2 @@
-module.exports=function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=11)}([,function(t,e){t.exports=flarum.core.compat["models/User"]},function(t,e){t.exports=flarum.core.compat.extend},function(t,e){t.exports=flarum.core.compat["utils/computed"]},function(t,e){t.exports=flarum.core.compat["components/UserCard"]},function(t,e){t.exports=flarum.core.compat.Model},function(t,e){t.exports=flarum.core.compat.Component},function(t,e){t.exports=flarum.core.compat["components/LoadingIndicator"]},function(t,e){t.exports=flarum.core.compat["utils/classList"]},function(t,e){t.exports=flarum.core.compat["utils/extractText"]},function(t,e){(function(){var t=[].slice;String.prototype.autoLink=function(){var e,o,r,n,i,a;return i=/(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?|ftp):\/\/[\-A-Z0-9+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi,0<(n=1<=arguments.length?t.call(arguments,0):[]).length?(r=n[0],o=function(){var t;for(e in t=[],r)a=r[e],"callback"!==e&&t.push(" "+e+"='"+a+"'");return t}().join(""),this.replace(i,(function(t,e,n){return""+e+(("function"==typeof r.callback?r.callback(n):void 0)||""+n+"")}))):this.replace(i,"$1$2")}}).call(this)},function(t,e,o){"use strict";o.r(e);var r=o(2),n=(o(10),o(3)),i=o.n(n),a=o(4),u=o.n(a),c=o(1),s=o.n(c),l=o(5),f=o.n(l);var p=o(6),d=o.n(p),b=o(7),h=o.n(b),v=o(8),y=o.n(v),g=o(9),x=o.n(g),_=function(t){var e,o;function r(){return t.apply(this,arguments)||this}o=t,(e=r).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o;var n=r.prototype;return n.oninit=function(e){t.prototype.oninit.call(this,e),this.editing=!1,this.loading=!1},n.view=function(){var t,e=this.attrs.user,o=this.attrs.user.attribute("canEditBio");if(this.editing)t=m("textarea",{className:"FormControl",placeholder:x()(app.translator.trans("fof-user-bio.forum.userbioPlaceholder")),rows:"3",value:e.bio()});else{var r;if(this.loading)r=m("p",{className:"UserBio-placeholder"},h.a.component({size:"tiny"}));else{var n=e.bioHtml();n?r=m.trust(n):o&&(r=m("p",{className:"UserBio-placeholder"},app.translator.trans("fof-user-bio.forum.userbioPlaceholder")))}t=m("div",{className:"UserBio-content",onclick:o?this.edit.bind(this):function(){}},r)}return m("div",{className:"UserBio "+y()({editable:o,editing:this.editing})},t)},n.edit=function(){this.editing=!0,m.redraw();var t=this,e=function(e){e.shiftKey||(e.preventDefault(),t.save($(this).val()))};this.$("textarea").focus().bind("blur",e).bind("keydown","return",e)},n.save=function(t){var e=this,o=this.attrs.user;o.bio()!==t&&(this.loading=!0,o.save({bio:t}).catch((function(){})).then((function(){e.loading=!1,m.redraw()}))),this.editing=!1,m.redraw()},r}(d.a);app.initializers.add("fof-user-bio",(function(){s.a.prototype.bio=f.a.attribute("bio"),s.a.prototype.bioHtml=i()("bio",(function(t){return t?"
"+$("
").text(t).html().replace(/\n/g,"
").autoLink({rel:"nofollow ugc"})+"":""})),Object(r.extend)(u.a.prototype,"infoItems",(function(t){var e=this.attrs.user;e.attribute("canViewBio")&&t.add("bio",_.component({user:e}))}))}))}]);
+module.exports=function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=11)}([,function(t,e){t.exports=flarum.core.compat["models/User"]},function(t,e){t.exports=flarum.core.compat.extend},function(t,e){t.exports=flarum.core.compat["utils/computed"]},function(t,e){t.exports=flarum.core.compat["components/UserCard"]},function(t,e){t.exports=flarum.core.compat.Model},function(t,e){t.exports=flarum.core.compat.Component},function(t,e){t.exports=flarum.core.compat["components/LoadingIndicator"]},function(t,e){t.exports=flarum.core.compat["utils/classList"]},function(t,e){t.exports=flarum.core.compat["utils/extractText"]},function(t,e){(function(){var t=[].slice;String.prototype.autoLink=function(){var e,o,r,n,i,a;return i=/(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?|ftp):\/\/[\-A-Z0-9+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi,0<(n=1<=arguments.length?t.call(arguments,0):[]).length?(r=n[0],o=function(){var t;for(e in t=[],r)a=r[e],"callback"!==e&&t.push(" "+e+"='"+a+"'");return t}().join(""),this.replace(i,(function(t,e,n){return""+e+(("function"==typeof r.callback?r.callback(n):void 0)||""+n+"")}))):this.replace(i,"$1$2")}}).call(this)},function(t,e,o){"use strict";o.r(e);var r=o(2),n=(o(10),o(3)),i=o.n(n),a=o(4),c=o.n(a),u=o(1),s=o.n(u),l=o(5),f=o.n(l);var p=o(6),d=o.n(p),b=o(7),h=o.n(b),v=o(8),y=o.n(v),g=o(9),x=o.n(g),_=function(t){var e,o;function r(){return t.apply(this,arguments)||this}o=t,(e=r).prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o;var n=r.prototype;return n.oninit=function(e){t.prototype.oninit.call(this,e),this.editing=!1,this.loading=!1},n.view=function(){var t,e=this.attrs.user,o=this.attrs.user.attribute("canEditBio");if(this.editing)t=m("textarea",{className:"FormControl",placeholder:x()(app.translator.trans("fof-user-bio.forum.userbioPlaceholder")),rows:"3",value:e.bio()});else{var r;if(this.loading)r=m("p",{className:"UserBio-placeholder"},h.a.component({size:"tiny"}));else{var n=e.bioHtml();n?r=m.trust(n):o&&(r=m("p",{className:"UserBio-placeholder"},app.translator.trans("fof-user-bio.forum.userbioPlaceholder")))}t=m("div",{className:"UserBio-content",onclick:o?this.edit.bind(this):function(){}},r)}return m("div",{className:"UserBio "+y()({editable:o,editing:this.editing})},t)},n.edit=function(){this.editing=!0,m.redraw.sync();var t=this,e=function(e){e.shiftKey||(e.preventDefault(),t.save($(this).val()))};this.$("textarea").focus().bind("blur",e).bind("keydown","return",e),m.redraw()},n.save=function(t){var e=this,o=this.attrs.user;o.bio()!==t&&(this.loading=!0,o.save({bio:t}).catch((function(){})).then((function(){e.loading=!1,m.redraw()}))),this.editing=!1,m.redraw()},r}(d.a);app.initializers.add("fof-user-bio",(function(){s.a.prototype.bio=f.a.attribute("bio"),s.a.prototype.bioHtml=i()("bio",(function(t){return t?""+$("
").text(t).html().replace(/\n/g,"
").autoLink({rel:"nofollow ugc"})+"":""})),Object(r.extend)(c.a.prototype,"infoItems",(function(t){var e=this.attrs.user;e.attribute("canViewBio")&&t.add("bio",_.component({user:e}))}))}))}]);
//# sourceMappingURL=forum.js.map
\ No newline at end of file
diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map
index a45004f..fef3164 100644
--- a/js/dist/forum.js.map
+++ b/js/dist/forum.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://@fof/user-bio/webpack/bootstrap","webpack://@fof/user-bio/external \"flarum.core.compat['models/User']\"","webpack://@fof/user-bio/external \"flarum.core.compat['extend']\"","webpack://@fof/user-bio/external \"flarum.core.compat['utils/computed']\"","webpack://@fof/user-bio/external \"flarum.core.compat['components/UserCard']\"","webpack://@fof/user-bio/external \"flarum.core.compat['Model']\"","webpack://@fof/user-bio/external \"flarum.core.compat['Component']\"","webpack://@fof/user-bio/external \"flarum.core.compat['components/LoadingIndicator']\"","webpack://@fof/user-bio/external \"flarum.core.compat['utils/classList']\"","webpack://@fof/user-bio/external \"flarum.core.compat['utils/extractText']\"","webpack://@fof/user-bio/./node_modules/autolink-js/autolink-min.js","webpack://@fof/user-bio/./src/forum/components/UserBio.js","webpack://@fof/user-bio/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@fof/user-bio/./src/forum/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","h","slice","String","autoLink","b","f","a","e","g","arguments","length","push","join","this","replace","callback","UserBio","subClass","superClass","constructor","__proto__","oninit","vnode","editing","loading","view","content","user","attrs","editable","attribute","className","placeholder","extractText","app","translator","trans","rows","bio","subContent","LoadingIndicator","component","size","bioHtml","trust","onclick","edit","classList","redraw","save","shiftKey","preventDefault","$","val","focus","then","Component","initializers","add","User","Model","computed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MAAMD,KAEpBA,EAAKW,QAAUxD,IACf+B,KAAKW,SAAU,EAEfG,EAAKsB,KAAK,CAAEX,IAAKxD,IAAjB,OACW,eACNyE,MAAK,WACF,EAAK/B,SAAU,EACfvD,EAAE+E,aAIdnC,KAAKU,SAAU,EACftD,EAAE+E,U,GA7G2BQ,KEDrCtB,IAAIuB,aAAaC,IAAI,gBAAgB,WACjCC,IAAKlE,UAAU6C,IAAMsB,IAAM9B,UAAU,OACrC6B,IAAKlE,UAAUkD,QAAUkB,IAAS,OAAO,SAAAvB,GAAG,OACxCA,EACM,MACAc,EAAE,UACGU,KAAKxB,GACLyB,OACAjD,QAAQ,MAAO,QACfX,SAAS,CAAE6D,IAAK,iBACrB,OACA,MAGVC,iBAAOC,IAASzE,UAAW,aAAa,SAAS0E,GAC7C,IAAIxC,EAAOd,KAAKe,MAAMD,KAEjBA,EAAKG,UAAU,eAIpBqC,EAAMT,IACF,MACA1C,EAAQyB,UAAU,CACdd","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 11);\n","module.exports = flarum.core.compat['models/User'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['utils/computed'];","module.exports = flarum.core.compat['components/UserCard'];","module.exports = flarum.core.compat['Model'];","module.exports = flarum.core.compat['Component'];","module.exports = flarum.core.compat['components/LoadingIndicator'];","module.exports = flarum.core.compat['utils/classList'];","module.exports = flarum.core.compat['utils/extractText'];","(function(){var h=[].slice;String.prototype.autoLink=function(){var b,f,d,a,e,g;a=1<=arguments.length?h.call(arguments,0):[];e=/(^|[\\s\\n]|<[A-Za-z]*\\/?>)((?:https?|ftp):\\/\\/[\\-A-Z0-9+\\u0026\\u2019@#\\/%?=()~_|!:,.;]*[\\-A-Z0-9+\\u0026@#\\/%=~()_|])/gi;if(!(0$2\");d=a[0];f=function(){var c;c=[];for(b in d)g=d[b],\"callback\"!==b&&c.push(\" \"+b+\"='\"+g+\"'\");return c}().join(\"\");return this.replace(e,function(c,b,a){c=(\"function\"===typeof d.callback?d.callback(a):\nvoid 0)||\"\"+a+\"\";return\"\"+b+c})}}).call(this);\n","import Component from 'flarum/Component';\nimport LoadingIndicator from 'flarum/components/LoadingIndicator';\nimport classList from 'flarum/utils/classList';\nimport extractText from 'flarum/utils/extractText';\n\n/**\n * The `UserBio` component displays a user's bio, optionally letting the user\n * edit it.\n */\nexport default class UserBio extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n /**\n * Whether or not the bio is currently being edited.\n *\n * @type {Boolean}\n */\n this.editing = false;\n\n /**\n * Whether or not the bio is currently being saved.\n *\n * @type {Boolean}\n */\n this.loading = false;\n }\n\n view() {\n const user = this.attrs.user;\n const editable = this.attrs.user.attribute('canEditBio');\n let content;\n\n if (this.editing) {\n content = (\n \n );\n } else {\n let subContent;\n\n if (this.loading) {\n subContent = {LoadingIndicator.component({ size: 'tiny' })}
;\n } else {\n const bioHtml = user.bioHtml();\n\n if (bioHtml) {\n subContent = m.trust(bioHtml);\n } else if (editable) {\n subContent = {app.translator.trans('fof-user-bio.forum.userbioPlaceholder')}
;\n }\n }\n\n content = (\n undefined}>\n {subContent}\n
\n );\n }\n\n return (\n \n {content}\n
\n );\n }\n\n /**\n * Edit the bio.\n */\n edit() {\n this.editing = true;\n m.redraw();\n\n const bio = this;\n const save = function(e) {\n if (e.shiftKey) return;\n e.preventDefault();\n bio.save($(this).val());\n };\n\n this.$('textarea')\n .focus()\n .bind('blur', save)\n .bind('keydown', 'return', save);\n }\n\n /**\n * Save the bio.\n *\n * @param {String} value\n */\n save(value) {\n const user = this.attrs.user;\n\n if (user.bio() !== value) {\n this.loading = true;\n\n user.save({ bio: value })\n .catch(() => {})\n .then(() => {\n this.loading = false;\n m.redraw();\n });\n }\n\n this.editing = false;\n m.redraw();\n }\n}\n","export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}","import { extend } from 'flarum/extend';\nimport 'autolink-js';\nimport computed from 'flarum/utils/computed';\nimport UserCard from 'flarum/components/UserCard';\nimport User from 'flarum/models/User';\nimport Model from 'flarum/Model';\nimport UserBio from './components/UserBio';\n\napp.initializers.add('fof-user-bio', () => {\n User.prototype.bio = Model.attribute('bio');\n User.prototype.bioHtml = computed('bio', bio =>\n bio\n ? '' +\n $('
')\n .text(bio)\n .html()\n .replace(/\\n/g, '
')\n .autoLink({ rel: 'nofollow ugc' }) +\n ''\n : ''\n );\n\n extend(UserCard.prototype, 'infoItems', function(items) {\n let user = this.attrs.user;\n\n if (!user.attribute('canViewBio')) {\n return;\n }\n\n items.add(\n 'bio',\n UserBio.component({\n user,\n })\n );\n });\n});\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack://@fof/user-bio/webpack/bootstrap","webpack://@fof/user-bio/external \"flarum.core.compat['models/User']\"","webpack://@fof/user-bio/external \"flarum.core.compat['extend']\"","webpack://@fof/user-bio/external \"flarum.core.compat['utils/computed']\"","webpack://@fof/user-bio/external \"flarum.core.compat['components/UserCard']\"","webpack://@fof/user-bio/external \"flarum.core.compat['Model']\"","webpack://@fof/user-bio/external \"flarum.core.compat['Component']\"","webpack://@fof/user-bio/external \"flarum.core.compat['components/LoadingIndicator']\"","webpack://@fof/user-bio/external \"flarum.core.compat['utils/classList']\"","webpack://@fof/user-bio/external \"flarum.core.compat['utils/extractText']\"","webpack://@fof/user-bio/./node_modules/autolink-js/autolink-min.js","webpack://@fof/user-bio/./src/forum/components/UserBio.js","webpack://@fof/user-bio/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@fof/user-bio/./src/forum/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","h","slice","String","autoLink","b","f","a","e","g","arguments","length","push","join","this","replace","callback","UserBio","subClass","superClass","constructor","__proto__","oninit","vnode","editing","loading","view","content","user","attrs","editable","attribute","className","placeholder","extractText","app","translator","trans","rows","bio","subContent","LoadingIndicator","component","size","bioHtml","trust","onclick","edit","classList","redraw","sync","save","shiftKey","preventDefault","$","val","focus","then","Component","initializers","add","User","Model","computed","text","html","rel","extend","UserCard","items"],"mappings":"2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAU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AAa,OAAGR,UAAU,uBAAuBG,IAAIC,WAAWC,MAAM,2CAI9EV,EACI,SAAKK,UAAU,kBAAkBc,QAAShB,EAAWhB,KAAKiC,KAAKzD,KAAKwB,MAAQ,cACvE0B,GAKb,OACI,SACIR,UACI,WACAgB,IAAU,CACNlB,WACAN,QAASV,KAAKU,WAIrBG,I,EAQboB,KAAA,WACIjC,KAAKU,SAAU,EACftD,EAAE+E,OAAOC,OAET,IAAMX,EAAMzB,KACNqC,EAAO,SAAS3C,GACdA,EAAE4C,WACN5C,EAAE6C,iBACFd,EAAIY,KAAKG,EAAExC,MAAMyC,SAGrBzC,KAAKwC,EAAE,YACFE,QACAlE,KAAK,OAAQ6D,GACb7D,KAAK,UAAW,SAAU6D,GAC/BjF,EAAE+E,U,EAQNE,KAAA,SAAKpE,GAAO,WACF6C,EAAOd,KAAKe,MAAMD,KAEpBA,EAAKW,QAAUxD,IACf+B,KAAKW,SAAU,EAEfG,EAAKuB,KAAK,CAAEZ,IAAKxD,IAAjB,OACW,eACN0E,MAAK,WACF,EAAKhC,SAAU,EACfvD,EAAE+E,aAIdnC,KAAKU,SAAU,EACftD,EAAE+E,U,GA9G2BS,KEDrCvB,IAAIwB,aAAaC,IAAI,gBAAgB,WACjCC,IAAKnE,UAAU6C,IAAMuB,IAAM/B,UAAU,OACrC8B,IAAKnE,UAAUkD,QAAUmB,IAAS,OAAO,SAAAxB,GAAG,OACxCA,EACM,MACAe,EAAE,UACGU,KAAKzB,GACL0B,OACAlD,QAAQ,MAAO,QACfX,SAAS,CAAE8D,IAAK,iBACrB,OACA,MAGVC,iBAAOC,IAAS1E,UAAW,aAAa,SAAS2E,GAC7C,IAAIzC,EAAOd,KAAKe,MAAMD,KAEjBA,EAAKG,UAAU,eAIpBsC,EAAMT,IACF,MACA3C,EAAQyB,UAAU,CACdd","file":"forum.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 11);\n","module.exports = flarum.core.compat['models/User'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['utils/computed'];","module.exports = flarum.core.compat['components/UserCard'];","module.exports = flarum.core.compat['Model'];","module.exports = flarum.core.compat['Component'];","module.exports = flarum.core.compat['components/LoadingIndicator'];","module.exports = flarum.core.compat['utils/classList'];","module.exports = flarum.core.compat['utils/extractText'];","(function(){var h=[].slice;String.prototype.autoLink=function(){var b,f,d,a,e,g;a=1<=arguments.length?h.call(arguments,0):[];e=/(^|[\\s\\n]|<[A-Za-z]*\\/?>)((?:https?|ftp):\\/\\/[\\-A-Z0-9+\\u0026\\u2019@#\\/%?=()~_|!:,.;]*[\\-A-Z0-9+\\u0026@#\\/%=~()_|])/gi;if(!(0$2\");d=a[0];f=function(){var c;c=[];for(b in d)g=d[b],\"callback\"!==b&&c.push(\" \"+b+\"='\"+g+\"'\");return c}().join(\"\");return this.replace(e,function(c,b,a){c=(\"function\"===typeof d.callback?d.callback(a):\nvoid 0)||\"\"+a+\"\";return\"\"+b+c})}}).call(this);\n","import Component from 'flarum/Component';\nimport LoadingIndicator from 'flarum/components/LoadingIndicator';\nimport classList from 'flarum/utils/classList';\nimport extractText from 'flarum/utils/extractText';\n\n/**\n * The `UserBio` component displays a user's bio, optionally letting the user\n * edit it.\n */\nexport default class UserBio extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n /**\n * Whether or not the bio is currently being edited.\n *\n * @type {Boolean}\n */\n this.editing = false;\n\n /**\n * Whether or not the bio is currently being saved.\n *\n * @type {Boolean}\n */\n this.loading = false;\n }\n\n view() {\n const user = this.attrs.user;\n const editable = this.attrs.user.attribute('canEditBio');\n let content;\n\n if (this.editing) {\n content = (\n \n );\n } else {\n let subContent;\n\n if (this.loading) {\n subContent = {LoadingIndicator.component({ size: 'tiny' })}
;\n } else {\n const bioHtml = user.bioHtml();\n\n if (bioHtml) {\n subContent = m.trust(bioHtml);\n } else if (editable) {\n subContent = {app.translator.trans('fof-user-bio.forum.userbioPlaceholder')}
;\n }\n }\n\n content = (\n undefined}>\n {subContent}\n
\n );\n }\n\n return (\n \n {content}\n
\n );\n }\n\n /**\n * Edit the bio.\n */\n edit() {\n this.editing = true;\n m.redraw.sync();\n\n const bio = this;\n const save = function(e) {\n if (e.shiftKey) return;\n e.preventDefault();\n bio.save($(this).val());\n };\n\n this.$('textarea')\n .focus()\n .bind('blur', save)\n .bind('keydown', 'return', save);\n m.redraw();\n }\n\n /**\n * Save the bio.\n *\n * @param {String} value\n */\n save(value) {\n const user = this.attrs.user;\n\n if (user.bio() !== value) {\n this.loading = true;\n\n user.save({ bio: value })\n .catch(() => {})\n .then(() => {\n this.loading = false;\n m.redraw();\n });\n }\n\n this.editing = false;\n m.redraw();\n }\n}\n","export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}","import { extend } from 'flarum/extend';\nimport 'autolink-js';\nimport computed from 'flarum/utils/computed';\nimport UserCard from 'flarum/components/UserCard';\nimport User from 'flarum/models/User';\nimport Model from 'flarum/Model';\nimport UserBio from './components/UserBio';\n\napp.initializers.add('fof-user-bio', () => {\n User.prototype.bio = Model.attribute('bio');\n User.prototype.bioHtml = computed('bio', bio =>\n bio\n ? '' +\n $('
')\n .text(bio)\n .html()\n .replace(/\\n/g, '
')\n .autoLink({ rel: 'nofollow ugc' }) +\n ''\n : ''\n );\n\n extend(UserCard.prototype, 'infoItems', function(items) {\n let user = this.attrs.user;\n\n if (!user.attribute('canViewBio')) {\n return;\n }\n\n items.add(\n 'bio',\n UserBio.component({\n user,\n })\n );\n });\n});\n"],"sourceRoot":""}
\ No newline at end of file