!function(e){function t(t){for(var n,l,s=t[0],a=t[1],y=t[2],c=0,d=[];c=innerHeight?(e.style.maxHeight="".concat(innerHeight-i,"px"),e.style.overflowY="scroll",u||e.classList.add("not-show-scroll")):(e.style.removeProperty("max-height"),e.style.removeProperty("overflow-y"),e.classList.remove("not-show-scroll")))}))}},{key:"handleShowBoxShadow",value:function(e){e.length<=0||e.forEach((function(e){var t=getComputedStyle(e);if(t.getPropertyValue("--box-shadow")){var o=t.top,n=t.bottom,i=e.getBoundingClientRect().bottom;if(o.includes("px")){var r=Number(o.replace("px",""));r<=scrollY&&0!=scrollY&&(e.style["box-shadow"]="var(--box-shadow)"),(r>scrollY||0==scrollY)&&e.style.removeProperty("box-shadow")}else if(n.includes("px")){var l=Number(n.replace("px",""))+innerHeight;l<=i&&0!=i&&(e.style["box-shadow"]="var(--box-shadow)"),l>i&&0!=i&&e.style.removeProperty("box-shadow")}}}))}},{key:"handleShowLayoutSectionOther",value:function(e){var t=this;e.length<=0||e.forEach((function(e){var o,n=(null===(o=xData[e.id].layoutOther)||void 0===o?void 0:o[BP])||!1,i=document.getElementById(e.getAttribute("layout-id")),r=getComputedStyle(e);if(n&&"sticky"==r.position&&i){var l=e.getBoundingClientRect(),s=l.top,a=l.bottom,y=i.getBoundingClientRect(),u=y.top,c=y.bottom,d=r.top,p=r.bottom;if(d.includes("px")){var v=Number(d.replace("px",""));v>=s&&0!=scrollY&&t.toggleVisibility(e,i,!1),((vc&&0!=c&&t.toggleVisibility(e,i,!0)}}}))}},{key:"toggleVisibility",value:function(e,t,o){o?(e.style.opacity="1",e.style.visibility="visible",e.style.removeProperty("height"),e.style.removeProperty("z-index"),t.style.height="0",t.style.zIndex="-1",t.style.opacity="0",t.style.visibility="hidden"):(e.style.opacity="0",e.style.visibility="hidden",e.style.height="0",e.style.zIndex="-1",t.style.removeProperty("height"),t.style.removeProperty("z-index"),t.style.opacity="1",t.style.visibility="visible")}}])&&i(t.prototype,o),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());window.scroll=r}});