import{o as r}from"./rolldown-runtime-iuO8RvI4.js";import{ig as o}from"./shared-0-C4kdVF7Y.js";import{Mi as e}from"./vendor-frame-CwiylG4Y.js";var n=r(e());function i(r){const e=(0,n.useRef)(!1),i=(0,n.useRef)(performance.now()),{variant:s,settled:t,configBlocking:a,onboardingLoadFailed:c}=r,f=!0===r.suppressDuration;(0,n.useEffect)(()=>{if(e.current)return;const r=f?void 0:performance.now()-i.current;a?(e.current=!0,o("failure",s,"config_blocking",void 0,r)):c?(e.current=!0,o("failure",s,"onboarding_load",void 0,r)):t&&(e.current=!0,o("success",s,void 0,void 0,r))},[s,t,a,c,f])}export{i as t};