import{j as t}from"./jsx-runtime-agliiQSw.js";import{r as f}from"./index-BtyHvDgk.js";import{d as u,c as p}from"./chunk-UIGDSWPH-1hkfewjj.js";import{T as b,a as g,b as h}from"./tooltip-Dei6jwuV.js";import{u as x}from"./root-loader-CIAkTEfn.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:"8bd8bc3153d70a1c10ccde8d38796bd67282553d"}}catch{}})();const l="/mark-onboarding-complete";function y(e){const o=x(),s=u(),n=p(),i=s.some(d=>{const m=d.formData?.get("featureId");return d.formAction===l&&m===e}),r=o.preferences?.onboardingComplete?.includes(e)??!1,a=!ENV.EPICSHOP_DEPLOYED&&!r&&!i,c=f.useCallback(()=>{a&&n.submit({featureId:e},{method:"POST",action:l})},[a,e,n]);return[a,c]}function j({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-400 font-bold text-yellow-950 shadow-lg dark:bg-yellow-500`;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{j as O,y as u};
//# sourceMappingURL=onboarding-indicator-CKfAJ7mz.js.map
