import{Hy as e,In as t,ap as n,ii as r,oi as i}from"./index-DDwwBb9e.js";var a=e();function o(e,o){return function(s){let{bypassOnboardingRedirect:c=!1}=o??{},l=o=>{let{organization:l,isLoading:u}=n(c?{redirectToOnboarding:!1,redirectToProjectOnboarding:!1}:void 0),d=l?.id??``,{enabled:f,isLoading:p}=r(e,{organizationId:d,enabled:!!d});return u||d&&p?(0,a.jsx)(t,{}):f?(0,a.jsx)(s,{...o}):(0,a.jsx)(i,{})};return l.displayName=`withFeatureFlagGuard(${s.displayName??s.name??`Component`})`,l}}export{o as t};
//# sourceMappingURL=WithFeatureFlagGuard-DJITjVRM.js.map