(()=>{const{Motion:{animate:t},GHOSTKIT:{events:e}}=window;e.on(document,"click",".ghostkit-alert-hide-button",(o=>{o.preventDefault();const n=o.delegateTarget.parentNode;e.trigger(n,"close.alert.gkt"),t(n,{opacity:0},{duration:.5}).then((()=>{n.style.height=`${n.offsetHeight}px`,n.style.paddingTop="0px",n.style.paddingBottom="0px",t(n,{height:0,marginTop:0,marginBottom:0},{duration:.5}).then((()=>{e.trigger(n,"closed.alert.gkt")}))}))}))})();