!function(t){"use strict";ElementsKit_Helper.registerWidget("elementskit-back-to-top.default",(function(e){const o=e.find(".ekit-btt__button"),{offset_top:s,show_after:i,show_scroll:n,style:r,foreground:a,background:c}=e.find(".ekit-btt").data("settings");if("progress_indicator"===r){const t="#canvas-"+e.find(".progress_indicator .progress_indicator canvas").data("canvas"),o=e.find(t).get(0);animateCircle({element:o,size:100,percentage:100,onScroll:!0,speed:50,backgroundClr:c,color:a,strokeWidth:10})}o.on("click",(()=>{var t;t=s,window.scrollTo({left:0,top:t,behavior:"smooth"})})),"yes"===n&&t(document).on("scroll",(()=>{(t=>{let e=o.hasClass("ekit-tt-show");t&&!e&&o.addClass("ekit-tt-show"),!t&&e&&o.removeClass("ekit-tt-show")})(Math.ceil(window.pageYOffset)>i+s)}))}))}(jQuery);