!function(t){t(".wp-block-senff-sticky-block").each(function(e){var i=t(this).attr("data-topspace"),s=t(this).attr("data-cfa"),a=t(this).attr("data-minwidth"),l=t(this).attr("data-maxwidth"),c=t(this).attr("data-pushup"),n=t(this).attr("data-zindex");t(this).addClass("senff-sticky-block-"+e).addClass("sticky-block-original-"+e).addClass("block-is-not-sticky"),c&&t(c).length<1?(console.warn('STICKY BLOCK DEBUGGER: you selected a Push-up element "'+c+'" but there is no element on the page with that class/ID.'),c=""):c&&t(c).length>1&&(console.warn("STICKY BLOCK DEBUGGER: there are "+t(c).length+' elements on the page with the selector/class/ID you selected for the push-up element ("'+c+'"). You can select only ONE element to push the sticky element up.'),c="");var r,d=(r=t(this),o={},o.display=r.css("display"),o.float=r.css("float"),o.flex=r.css("flex"),o["box-sizing"]=r.css("box-sizing"),o.clear=r.css("clear"),o.overflow=r.css("overflow"),o.transform=r.css("transform"),o),h=t(".sticky-block-original-"+e).attr("style");null==h&&(h=""),function(e){t(".sticky-block-original-"+e).wrap('
').addClass("sticky-block-active-"+e).before('')}(e),checkElement=setInterval(function(){!function(e,i,s,a,l,c,o,n,r){var d=t(".sticky-block-active-"+e),h=t(".sticky-block-original-"+e),g=d.offset();if(orgElementTop=g.top,c){var p=t(c).offset();pushElementTop=p.top}var k=window,m="inner";"innerWidth"in window||(m="client",k=document.documentElement||document.body);viewport=k[m+"Width"],"true"==s&&t("body").hasClass("admin-bar")&&viewport>600?adminBarHeight=t("#wpadminbar").height():adminBarHeight=0;if(t(window).scrollTop()>=orgElementTop-i-adminBarHeight&&viewport>=a&&viewport<=l){coordsOrgElement=d.offset(),leftOrgElement=coordsOrgElement.left,widthPlaceholder=d[0].getBoundingClientRect().width,widthPlaceholder||(widthPlaceholder=d.css("width")),heightPlaceholder=d[0].getBoundingClientRect().height,heightPlaceholder||(heightPlaceholder=d.css("height")),widthSticky=d.css("width"),"0px"==widthSticky&&(widthSticky=h[0].getBoundingClientRect().width),heightSticky=h.height(),paddingOrgElement=[h.css("padding-top"),h.css("padding-right"),h.css("padding-bottom"),h.css("padding-left")],paddingSticky=paddingOrgElement[0]+" "+paddingOrgElement[1]+" "+paddingOrgElement[2]+" "+paddingOrgElement[3],marginOrgElement=[d.css("margin-top"),d.css("margin-right"),d.css("margin-bottom"),d.css("margin-left")],marginPlaceholder=marginOrgElement[0]+" "+marginOrgElement[1]+" "+marginOrgElement[2]+" "+marginOrgElement[3];var y="";for(var w in n)"inline"==n[w]?y+=w+":inline-block; ":y+=w+":"+n[w]+"; ";var b=h.outerHeight();c&&t(window).scrollTop()>pushElementTop-i-b-adminBarHeight?stickyTopMargin=pushElementTop-i-b-t(window).scrollTop():stickyTopMargin=adminBarHeight,stickyTopMargin-=1,y+="width:100%; height:"+heightPlaceholder+"px; margin:"+marginPlaceholder+";",h.removeClass("sticky-block-active-"+e).removeClass("block-is-not-sticky").addClass("element-is-sticky").addClass("block-is-sticky").css("position","fixed").css("left",leftOrgElement+"px").css("top",i+"px").css("width",widthSticky).css("margin-left",0).css("padding",paddingSticky).css("margin-top",stickyTopMargin).css("z-index",o),t(".sticky-block-placeholder-"+e).hasClass("sticky-block-active-"+e)||t(".sticky-block-placeholder-"+e).addClass("sticky-block-active-"+e).attr("style",y)}else h.addClass("sticky-block-active-"+e).removeClass("element-is-sticky").removeClass("block-is-sticky").addClass("block-is-not-sticky").attr("style",r),t(".sticky-block-placeholder-"+e).hasClass("sticky-block-active-"+e)&&t(".sticky-block-placeholder-"+e).removeClass("sticky-block-active-"+e).removeAttr("style").css("width","0").css("height","0").css("margin","0").css("padding","0")}(e,i,s,a,l,c,n,d,h)},10)})}(jQuery);