import{j as t}from"./jsx-runtime-CbGirg_M.js";import{r as f}from"./index-BoRhKTB8.js";import{d as u,c as p}from"./chunk-UIGDSWPH-C8mvmDRm.js";import{T as b,a as g,b as h}from"./tooltip-DpaM3OdK.js";import{u as x}from"./root-loader-AwLG1D86.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"28ce3948dcef68c9e8b5be7c5619a3bd17c18150"}}catch{}})();const l="/mark-onboarding-complete";function j(e){const o=x(),s=u(),n=p(),i=s.some(c=>{const m=c.formData?.get("featureId");return c.formAction===l&&m===e}),r=o.preferences?.onboardingComplete?.includes(e)??!1,a=!ENV.EPICSHOP_DEPLOYED&&!r&&!i,d=f.useCallback(()=>{a&&n.submit({featureId:e},{method:"POST",action:l})},[a,e,n]);return[a,d]}function y({children:e="!",tooltip:o,className:s="",size:n="md"}){const r=`flex ${n==="sm"?"h-4 w-4 text-xs":"h-6 w-6 text-sm"} animate-badge-bounce items-center justify-center rounded-full bg-yellow-500 font-bold text-black shadow-lg`;return o?t.jsxs(b,{children:[t.jsx(g,{asChild:!0,children:t.jsx("span",{className:`absolute -top-1 -right-1 z-10 cursor-pointer ${r} ${s}`,tabIndex:0,children:e})}),t.jsx(h,{side:"bottom",sideOffset:8,collisionPadding:16,avoidCollisions:!0,children:o})]}):t.jsx("span",{className:`absolute -top-1 -right-1 z-10 ${r} ${s}`,children:e})}export{y as O,j as u};
//# sourceMappingURL=onboarding-indicator-CeK4IFNg.js.map
