(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{457:function(o,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return k}));var n=t(3),c=t.n(n),l=t(4),s=t.n(l),a=t(5),i=t.n(a),r=t(2),p=t.n(r),u=t(6),T=t.n(u);t(458);function _callSuper(o,e,t){return e=p()(e),i()(o,function _isNativeReflectConstruct(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(o){}return function _isNativeReflectConstruct(){return!!o}()}()?Reflect.construct(e,t||[],p()(o).constructor):e.apply(o,t))}var k=function(o){function BackToTop(){var o,e;(c()(this,BackToTop),(o=_callSuper(this,BackToTop)).snapElement=void 0,o.showAfter=void 0,o._elements.backToTop=document.querySelector(o._selectors.backToTop),o._elements.backToTop)&&(o._elements.backToTopAction=document.querySelector(o._selectors.backToTopAction),o._elements.backToTopRing=document.querySelector(o._selectors.backToTopRing),o.snapElement=null===(e=o._elements.backToTopAction)||void 0===e?void 0:e.dataset.snap,o._elements.snapElement=document.querySelector(".".concat(o.snapElement)),o.initialize());return o}return T()(BackToTop,o),s()(BackToTop,[{key:"selectors",get:function get(){return{backToTop:".back-to-top",backToTopAction:".back-to-top__action",backToTopRing:".back-to-top__action__ring"}}},{key:"classList",get:function get(){return{VISIBLE:"back-to-top--visible",SNAPPED:"back-to-top--snapped"}}},{key:"elements",get:function get(){return{snapElement:null,backToTop:null,backToTopAction:null,backToTopRing:null}}},{key:"initialize",value:function initialize(){var o;this._elements.snapElement&&(this._elements.snapElement.style.position="relative"),this.showAfter=Number(null===(o=this._elements.backToTop)||void 0===o?void 0:o.dataset.showAfter),this.addEventListeners()}},{key:"addEventListeners",value:function addEventListeners(){var o=this;this._elements.backToTopAction.addEventListener("click",(function(o){o.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})})),$(window).on("scroll",(function(e){var t=e.currentTarget;$(t).scrollTop()>o.showAfter?o._elements.backToTop.classList.add(o._classList.VISIBLE):$(t).scrollTop()<=o.showAfter&&o._elements.backToTop.classList.remove(o._classList.VISIBLE),o.snapElement&&(o.isSnapElScrolledBy()?o._elements.backToTop.classList.add(o._classList.SNAPPED):o._elements.backToTop.classList.remove(o._classList.SNAPPED)),o._elements.backToTopRing.setAttribute("stroke-dasharray","".concat(o.getScrollPercent(),", 100"))}))}},{key:"isSnapElScrolledBy",value:function isSnapElScrolledBy(){var o,e=$(".".concat(this.snapElement)),t=$(window).scrollTop()+$(window).height();return(null==e||null===(o=e.offset())||void 0===o?void 0:o.top)+e.height()<=t}},{key:"getScrollPercent",value:function getScrollPercent(){var o=document.documentElement,e=document.body,t="scrollTop",n="scrollHeight";return(o[t]||e[t])/((o[n]||e[n])-o.clientHeight)*100}}])}(t(8).a)},458:function(o,e){var t,n,c;t=$(window),n=$("body"),c={element:".back-to-top",footerBackToTop:"footer .back-to-top",init:function init(){c.controller()},controller:function controller(){n.on("click",c.element,(function(o){o.preventDefault(),$("html, body").animate({scrollTop:0},600),$(document.body).find(":focusable:not(.sr-only-focusable)").first().focus()})),t.on("scroll",(function(){$(c.footerBackToTop).length&&($(this).scrollTop()>$("header").height()?$(c.footerBackToTop).addClass("back-to-top__is-visible"):$(c.footerBackToTop).removeClass("back-to-top__is-visible back-to-top__fade-out"),$(this).scrollTop()>400&&$(c.footerBackToTop).addClass("back-to-top__fade-out"),c.check.isfooterVisible()?$(c.footerBackToTop).addClass("back-to-top__static"):$(c.footerBackToTop).removeClass("back-to-top__static"))}))},check:{isfooterVisible:function isfooterVisible(){var o=$(window).scrollTop()+$(window).height();return $("footer").offset().top<=o}}},UX.backToTop=c}}]); //# sourceMappingURL=BackToTop-c272638f961dcdef6ade.js.map