import{j as s}from"./jsx-runtime-hUI6LOBV.js";import{r as u}from"./index-CFdT0RIo.js";import{g as m,f as b}from"./chunk-EVOBXE3Y-Bmgys8-c.js";import{T as p,j as g,k as h}from"./tooltip-CoTdGGXz.js";import{u as x}from"./root-loader-ByAKsmmv.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:"66e9b849450b819e11683314a547a341cb57f7d0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2645930c-3bf9-498f-95d0-a971629fe80d",e._sentryDebugIdIdentifier="sentry-dbid-2645930c-3bf9-498f-95d0-a971629fe80d")}catch{}})();const c="/mark-onboarding-complete";function O(e){const t=x(),o=m(),n=b(),i=o.some(d=>{const f=d.formData?.get("featureId");return d.formAction===c&&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:c})},[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-CS7d1RLw.js.map
