import{w as a}from"./element-focus-BKUtVrWY-WEZqUgal.js";const n=3;async function r(t,e){try{t.hasAttribute("data-themed")||await a(t),await e()}catch{throw new Error("The interactive element inside the KoliBri web component could not be clicked. Try calling the click method on the web component after a short delay again.")}}function c(t){if(!t)return!1;const e=t.getBoundingClientRect();return e.width>0&&e.height>0}async function s(t){let e=0;do t&&t.click(),await new Promise(i=>requestAnimationFrame(i)),e++;while(!c(t)&&e<n)}export{r as d,s};
//# sourceMappingURL=element-click-BTxuJDNT-CEvF8T4Q.js.map
