1import{u as e,r,j as t,N as s,O as a}from"./react-vendor-DPZzhrz4.js";import{u as o,d as l}from"./index-BDftTafH.js";import{l as n,C as i,D as d,k as u}from"./firebase-vendor-fMuS9vAs.js";const c=()=>{const c=e(),{userProfile:m,currentUser:p}=o(),[x,f]=r.useState(!1),[h,g]=r.useState(!0),v=(null==m?void 0:m.uid)||(null==m?void 0:m.id)||(null==p?void 0:p.uid);r.useEffect(()=>{j()},[v]);const j=()=>{return e=null,r=null,t=function*(){if(v)try{const e=n(l,"testResults"),r=i(e,d("userId","==",v),d("testId","==","smtq")),t=yield u(r);console.log("𧪠[TestBanner] Test check for user:",v,"- Found:",t.size,"results"),f(!t.empty)}catch(e){console.error("Error checking test status:",e)}finally{g(!1)}else g(!1)},new Promise((s,a)=>{var o=e=>{try{n(t.next(e))}catch(r){a(r)}},l=e=>{try{n(t.throw(e))}catch(r){a(r)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,l);n((t=t.apply(e,r)).next())});var e,r,t};return h||x?null:t.jsx("div",{className:"bg-gradient-to-r from-purple-50 to-indigo-50 dark:from-purple-900/20 dark:to-indigo-900/20 border-2 border-purple-200 dark:border-purple-800 rounded-xl p-4",children:t.jsxs("button",{onClick:()=>c("/test-forza-mentale"),className:"w-full flex items-center justify-between group",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-indigo-500 flex items-center justify-center shrink-0",children:t.jsx(s,{className:"h-5 w-5 text-white"})}),t.jsxs("div",{className:"text-left",children:[t.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:"Test Forza Mentale"}),t.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Scopri i tuoi punti di forza in 3 min"})]})]}),t.jsx(a,{className:"h-5 w-5 text-gray-400 group-hover:text-purple-600 dark:group-hover:text-purple-400 transition-colors shrink-0"})]})})};export{c as T};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.