text: module.exports=function(t){var o={};function r(n){if(o[n])return o[n].exports;var e=o[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=t,r.c=o,r.d=function(t,o,n){r.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,o){if(1&o&&(t=r(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var e in t)r.d(n,e,function(o){return t[o]}.bind(null,e));return n},r.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(o,"a",o),o},r.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},r.p="",r(r.s=9)}([function(t,o){t.exports=flarum.core.compat["forum/app"]},,function(t,o){t.exports=flarum.core.compat["common/extend"]},function(t,o){t.exports=flarum.core.compat["forum/ForumApplication"]},function(t,o){t.exports=flarum.core.compat["common/Model"]},function(t,o){t.exports=flarum.core.compat["common/models/User"]},function(t,o){t.exports=flarum.core.compat["common/components/Alert"]},function(t,o){t.exports=flarum.core.compat["common/components/Button"]},function(t,o){t.exports=flarum.core.compat["common/helpers/icon"]},function(t,o,r){"use strict";r.r(o);var n=r(0),e=r.n(n),a=r(2),u=r(3),c=r.n(u),i=r(4),s=r.n(i),p=r(5),f=r.n(p);function l(){return(l=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function d(t,o){return(d=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t})(t,o)}var y=r(6),b=r.n(y),w=r(7),v=r.n(w),h=r(8),x=r.n(h);function O(){var t=e.a.session.user;if(t&&t.hasPwnedPassword()&&t.isEmailConfirmed()){var o=v.a.component({className:"Button Button--link",onclick:function(){o.props.loading=!0,m.redraw(),e.a.request({method:"POST",url:e.a.forum.attribute("apiUrl")+"/forgot",data:{email:t.email()}}).then((function(){o.props.loading=!1,o.props.children=[x()("fas fa-check")," ",e.a.translator.trans("fof-pwned-passwords.forum.alert.sent_message")],o.props.disabled=!0,m.redraw()})).catch((function(){o.props.loading=!1,m.redraw()}))}},e.a.translator.trans("fof-pwned-passwords.forum.alert.resend_button")),r=function(t){var o,r;function n(){return t.apply(this,arguments)||this}return r=t,(o=n).prototype=Object.create(r.prototype),o.prototype.constructor=o,d(o,r),n.prototype.view=function(o){var r=t.prototype.view.call(this,o);return l({},r,{children:[m("div",{className:"container"},r.children)]})},n}(b.a);m.mount($("<div/>").insertBefore("#content")[0],{view:function(){return m(r,{dismissible:!1,controls:[m("resendButton",null)]},e.a.translator.trans("fof-pwned-passwords.forum.alert.warning"))}})}}e.a.initializers.add("fof/pwned-passwords",(function(){f.a.prototype.hasPwnedPassword=s.a.attribute("hasPwnedPassword"),Object(a.extend)(c.a.prototype,"mount",(function(){O()}))}))}]);
  //# sourceMappingURL=forum.js.map