"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var e,l=arguments[o];for(e in l)Object.prototype.hasOwnProperty.call(l,e)&&(t[e]=l[e])}return t}).apply(this,arguments)}function _classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function _createClass(t,o,e){return o&&_defineProperties(t.prototype,o),e&&_defineProperties(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}!function(t){t.jQuery=t.$=jQuery}(window),$(document).ready(function(){var o=function(){function o(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,o),this.options={},this.options=_extends(this.options,t),this.limited_points=this.options.limited_points,this.call_on_scroll=this.options.call_on_scroll,this.call_on_top=this.options.call_on_top,this.call_on_bottom=this.options.call_on_bottom,this.lastScrollPos=0,this.init(),this.events()}return _createClass(o,[{key:"init",value:function(){this.lastScrollPos=$(window).scrollTop()}},{key:"events",value:function(){this.on_scroll()}},{key:"on_scroll",value:function(){var o=this;$(window).scroll(function(){var t=window.pageYOffset||document.documentElement.scrollTop;o.call_on_any_direction(),o.has_limit(t)||(t>o.lastScrollPos?o.call_on_bottom_direction():o.call_on_top_direction()),o.lastScrollPos=t<=0?0:t})}},{key:"has_limit",value:function(e){var l=!1;return!!this.limited_points&&(this.limited_points.forEach(function(t){var o=t[0],t=t[1];l=l||o<e&&e<t}),l)}},{key:"call_on_top_direction",value:function(){this.call_on_top&&this.call_on_top()}},{key:"call_on_bottom_direction",value:function(){this.call_on_bottom&&this.call_on_bottom()}},{key:"call_on_any_direction",value:function(){this.call_on_scroll&&this.call_on_scroll()}}]),o}();function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this.options={selector:void 0},this.options=_extends(this.options,t),this.selector=$(t.selector),this.ANIMATION_DURATION=1e3,this.SHOW_LIMIT_OFFSET_TOP=800,this.events()}_createClass(e,[{key:"events",value:function(){var t=this;t.selector.click(function(){t.scrollTop()}),new o({call_on_top:function(){$(window).scrollTop()<t.SHOW_LIMIT_OFFSET_TOP?t.selector.removeClass("p-scrollTop--active"):t.selector.addClass("p-scrollTop--active")},call_on_bottom:function(){$(document).height()-$(window).height()-$(".js-footer").height()<=$(window).scrollTop()?t.selector.addClass("p-scrollTop--active"):t.selector.removeClass("p-scrollTop--active")},call_on_scroll:function(){$(document).height()-$(window).height()-100<=$(window).scrollTop()?t.selector.addClass("p-scrollTop--last"):t.selector.removeClass("p-scrollTop--last")}})}},{key:"scrollTop",value:function(){$("html, body").animate({scrollTop:0},this.ANIMATION_DURATION)}}],[{key:"instances",value:function(){$(document).find('[data-component="ScrollTop"]').each(function(){new e({selector:$(this).get(0)})})}}]);var t=".js-frequentlyAsked__item",l=".js-frequentlyAsked__content";$(document).on("click",t,function(){$(this).children(l).stop().slideToggle(250),$(this).toggleClass("t-frequentlyAsked__item--active"),$(this).siblings().children(t).removeClass("t-frequentlyAsked__item--active"),$(this).siblings().children(l).stop().slideUp(250)})});