import{j as s}from"./jsx-runtime-C4_65a1U.js";import{r as u}from"./index-B9zr-vzA.js";import{g as m,f as b}from"./chunk-JZWAC4HX-5kJHQiQ9.js";import{T as p,j as g,k as h}from"./tooltip-mkBMB3mq.js";import{u as x}from"./root-loader-Cnwtpb_k.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:"8a6db0ac5fe78363b0c97fe458a96ce773bf357c"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5667f67e-39d6-44a8-9a1c-7f7636b7e8c7",e._sentryDebugIdIdentifier="sentry-dbid-5667f67e-39d6-44a8-9a1c-7f7636b7e8c7")}catch{}})();const d="/mark-onboarding-complete";function O(e){const t=x(),o=m(),n=b(),i=o.some(c=>{const f=c.formData?.get("featureId");return c.formAction===d&&f===e}),r=t.preferences?.onboardingComplete?.includes(e)??!1,a=!ENV.EPICSHOP_DEPLOYED&&!r&&!i,l=u.useCallback(()=>{a&&n.submit({featureId:e},{method:"POST",action:d})},[a,e,n]);return[a,l]}function T({children:e="!",tooltip:t,className:o="",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 t?s.jsxs(p,{children:[s.jsx(g,{asChild:!0,children:s.jsx("span",{className:`absolute -top-1 -right-1 z-10 cursor-pointer ${r} ${o}`,tabIndex:0,children:e})}),s.jsx(h,{side:"bottom",sideOffset:8,collisionPadding:16,avoidCollisions:!0,children:t})]}):s.jsx("span",{className:`absolute -top-1 -right-1 z-10 ${r} ${o}`,children:e})}export{T as O,O as u};
//# sourceMappingURL=onboarding-indicator-M7ZykuXy.js.map
