(function(e){function b(a){if(f[a])return f[a].exports;var d=f[a]={i:a,l:!1,exports:{}};e[a].call(d.exports,d,d.exports,b);d.l=!0;return d.exports}var f={};b.m=e;b.c=f;b.d=function(a,d,g){b.o(a,d)||Object.defineProperty(a,d,{configurable:!1,enumerable:!0,get:g})};b.n=function(a){var d=a&&a.__esModule?function(){return a["default"]}:function(){return a};b.d(d,"a",d);return d};b.o=function(a,d){return Object.prototype.hasOwnProperty.call(a,d)};b.p="";return b(b.s=15)})({15:function(e,b,f){Object.defineProperty(b,
"__esModule",{value:!0});(new (f(16).a)({settings:window.themehouse.settings.fab})).register()},16:function(e,b,f){var a=function(){function d(d,c){for(var a=0;a<c.length;a++){var b=c[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(d,b.key,b)}}return function(b,c,a){c&&d(b.prototype,c);a&&d(b,a);return b}}();e=function(){function b(a){var c=this,d=a.settings;d=void 0===d?{}:d;var e=a.init;e=void 0===e?!1:e;a=a.commonVersion;a=void 0===a?"20180112":
a;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.setState=function(a){if(a!==c.active){c.active=a;for(var b=0,d=c.eles.length;b<d;b++){var e=c.eles[b];a?e.classList.add(c.settings.active):e.classList.remove(c.settings.active)}}};this.init=function(){c.initGet();c.initSet()};this.initGet=function(){c.settings.enabled&&(c.eles=window.document.querySelectorAll(c.settings.selector));var a=window.document.querySelectorAll(c.settings.quickReplySelector);if(a&&a.length)for(var b=
0,d=a.length;b<d;b++)a[b].addEventListener("click",function(a){var b=window.XF.findRelativeIf(".js-quickReply .js-editor",window.jQuery(a.target));b&&(window.XF.focusEditor(b),a.preventDefault())});if(c.settings.enableQuickPost&&(a=window.document.querySelectorAll(c.settings.quickPostSelector))&&a.length)for(b=0,d=a.length;b<d;b++)a[b].addEventListener("click",function(a){var b=window.document.querySelector(c.settings.quickPostTargetSelector);b&&(a.preventDefault(),b.focus())})};this.initSet=function(){c.settings.enabled&&
(c.running=!0)};this.scroll=function(){c.scrollGet();c.scrollSet()};this.scrollGet=function(){};this.scrollSet=function(){c.settings.enabled&&(window.themehouse.data.scrollY>c.lastScrollTop?c.setState(!1):window.themehouse.data.scrollY<c.lastScrollTop&&c.setState(!0),c.lastScrollTop=window.themehouse.data.scrollY)};this.running=!1;this.settings=Object.assign({selector:".uix_fabBar",active:"uix_fabBar--active",quickReplySelector:".uix_quickReply--button",quickPostSelector:".uix_quickPost--button",
quickPostTargetSelector:".js-titleInput",enabled:!1,enableQuickPost:!1},d);this.commonVersion=a;this.common=window.themehouse.common[a];this.eles=[];this.active=!0;this.lastScrollTop=0;e&&this.init()}a(b,[{key:"register",value:function(){this.settings.enabled&&(this.common.register({phase:"afterGet",addon:"TH_UIX_Fab",func:this.initGet,order:10}),this.common.register({phase:"afterSet",addon:"TH_UIX_Fab",func:this.initSet,order:10}),this.common.register({phase:"scrollGet",addon:"TH_UIX_Fab",func:this.scrollGet,
order:10}),this.common.register({phase:"scrollSet",addon:"TH_UIX_Fab",func:this.scrollSet,order:10}))}}]);return b}();"undefined"===typeof window.themehouse&&(window.themehouse={});window.themehouse.fab={fab:e};b.a=e}});