text: module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{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,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"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&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}([function(t,e,r){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.d(e,"a",function(){return n})},function(t,e){t.exports=flarum.core.compat.Component},function(t,e){t.exports=flarum.core.compat.extend},function(t,e){t.exports=flarum.core.compat["components/SignUpModal"]},,,,function(t,e,r){"use strict";r.r(e);var n=r(2),a=r(3),c=r.n(a),o=r(0),i=r(1),p=function(t){function e(){return t.apply(this,arguments)||this}Object(o.a)(e,t);var r=e.prototype;return r.init=function(){this.data={sitekey:app.data["fof-recaptcha.credentials.site"],type:app.data["fof-recaptcha.type"],theme:app.forum.attribute("darkMode")?"dark":"light"}},r.view=function(){return m("div",{className:"Form-group"},m("div",{className:"g-recaptcha",config:this.configRecaptcha.bind(this)}))},r.configRecaptcha=function(t,e){e||(this.widgetId=grecaptcha.render(t,{sitekey:this.data.sitekey,theme:this.data.theme,type:this.data.type,callback:this.props.callback,size:this.props.size,"expired-callback":this.props.expiredCallback}))},r.getResponse=function(){return grecaptcha.getResponse(this.widgetId)},r.execute=function(){return grecaptcha.execute(this.widgetId)},r.reset=function(){return grecaptcha.reset(this.widgetId)},e}(r.n(i).a);app.initializers.add("fof/recaptcha",function(){var t,e=app.data["fof-recaptcha.type"];Object(n.extend)(c.a.prototype,"submitData",function(t){t["g-recaptcha-response"]=this.recaptcha&&this.recaptcha.getResponse()}),Object(n.extend)(c.a.prototype,"fields",function(r){var n="invisible"===e?{type:e,size:"invisible",callback:function(){return t()}}:{};r.add("recaptcha",this.recaptcha=new p(n),-5)}),Object(n.extend)(c.a.prototype,"onerror",function(){this.recaptcha&&this.recaptcha.reset()}),"invisible"===e&&Object(n.override)(c.a.prototype,"onsubmit",function(e,r){r.preventDefault(),t=function(){return e(r)},this.recaptcha&&this.recaptcha.execute()})})}]);
  //# sourceMappingURL=forum.js.map