PageSourceSearch

https://www.botfx.ai/assets/MentorBioCard-CZ7Zz-8h.js

js botfx.ai collected 2026-10-05 13:38:56 UTC 9,588 bytes, 1 lines download raw bytes

1import{u as v,r as o,j as e,C as S,U as i,A as k,s as C,b as h,V as A,c as w,Q as y}from"./index-OkonXWBG.js";function I({variant:a="inline",maxCapacity:s=50}){v();const[x,c]=o.useState(0),[p,u]=o.useState(!0),[b,m]=o.useState(null),f=async()=>{const t=localStorage.getItem("capacity_count"),r=localStorage.getItem("capacity_count_time"),j=Date.now();if(t&&r&&j-parseInt(r)<3e5){c(parseInt(t)),u(!1),m(null);return}try{const{data:d,error:N}=await C.rpc("get_current_capacity");if(N)throw N;c(d||0),m(null),localStorage.setItem("capacity_count",(d||0).toString()),localStorage.setItem("capacity_count_time",j.toString())}catch(d){console.error("Error fetching capacity:",d),m("Unable to load capacity"),c(t?parseInt(t):7)}finally{u(!1)}};o.useEffect(()=>{const t=setTimeout(f,200),r=setInterval(f,6e4);return()=>{clearTimeout(t),clearInterval(r)}},[]);const n=s-x,g=x/s*100,l=g>=90?"red":g>=70?"yellow":"green";if(p&&a!=="badge")return e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(S,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{className:"text-sm",children:"Loading capacity..."})]});if(a==="badge")return e.jsxs("div",{className:`inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold ${l==="red"?"bg-red-500/20 text-red-400 border border-red-500/30":l==="yellow"?"bg-yellow-500/20 text-yellow-400 border border-yellow-500/30":"bg-green-500/20 text-green-400 border border-green-500/30"}`,children:[e.jsx(i,{className:"w-3 h-3"}),p?"...":`${n}/${s} spots left`]});if(a==="banner"){const t=n<=0,r=t?"red":l;return e.jsxs("div",{className:`rounded-lg p-4 border-2 ${r==="red"?"bg-red-500/10 border-red-500/30":"bg-yellow-500/10 border-yellow-500/30"}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(k,{className:`w-6 h-6 ${r==="red"?"text-red-400":"text-yellow-400"}`}),e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-white text-lg",children:"⚠️ CAPACITY ALERT: Juan's 1-on-1 Mentoring Limited to 50 Active Students"}),e.jsx("div",{className:`text-sm ${r==="red"?"text-red-300":"text-yellow-300"}`,children:t?"New subscribers will join a waitlist. Alert access still available, mentoring begins when spot opens.":"Secure your spot before capacity fills. Direct access to Juan for personalized trading guidance."})]})]}),e.jsxs("div",{className:"flex flex-col items-end",children:[e.jsxs("div",{className:`text-3xl font-bold ${r==="red"?"text-red-400":"text-yellow-400"}`,children:[n,"/",s]}),e.jsx("div",{className:"text-xs text-gray-400 uppercase tracking-wider",children:t?"FULLY SUBSCRIBED":"SPOTS AVAILABLE"})]})]}),e.jsx("div",{className:"mt-3 bg-gray-800 rounded-full h-2 overflow-hidden",children:e.jsx("div",{className:`h-full transition-all duration-500 ${r==="red"?"bg-gradient-to-r from-red-600 to-red-400":"bg-gradient-to-r from-yellow-600 to-yellow-400"}`,style:{width:`${g}%`}})})]})}return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 rounded-lg ${l==="red"?"bg-red-500/20 text-red-400":l==="yellow"?"bg-yellow-500/20 text-yellow-400":"bg-green-500/20 text-green-400"}`,children:[e.jsx(i,{className:"w-4 h-4"}),e.jsxs("span",{className:"font-semibold text-sm",children:[x,"/",s," Filled"]})]}),e.jsx("div",{className:"text-sm text-gray-400",children:e.jsxs("span",{className:l==="red"?"text-red-400 font-bold":l==="yellow"?"text-yellow-400 font-semibold":"text-gray-300",children:[n," ",n===1?"spot":"spots"," remaining"]})}),b&&e.jsxs("div",{className:"text-xs text-gray-500",children:["(",b,")"]})]})}function L({mentor:a}){const{t:s}=v();return a==="chris"?e.jsx("div",{className:"bg-gradient-to-br from-blue-900/20 via-gray-900/90 to-gray-900 border-2 border-blue-500/30 rounded-2xl p-6 backdrop-blur-sm",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-32 h-32 md:w-40 md:h-40 rounded-xl overflow-hidden border-4 border-blue-500/30 shadow-xl bg-gray-800",children:e.jsx("img",{src:"/images/chris.jpeg",alt:"Chris - Market Analysis Director",className:"w-full h-full object-cover",loading:"lazy",width:"160",height:"160"})})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"text-2xl font-bold text-white flex items-center gap-2",children:[s("pricing.mentors.chris.name"),e.jsx(h,{className:"w-6 h-6 text-blue-400"})]}),e.jsx("p",{className:"text-blue-400 font-semibold",children:s("pricing.mentors.chris.title")})]}),e.jsxs("div",{className:"space-y-2 text-gray-300",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(A,{className:"w-5 h-5 text-blue-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm",children:s("pricing.mentors.chris.feature1")})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(i,{className:"w-5 h-5 text-blue-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm",children:s("pricing.mentors.chris.feature2")})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(w,{className:"w-5 h-5 text-blue-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm",children:s("pricing.mentors.chris.feature3")})]})]}),e.jsxs("div",{className:"bg-blue-500/10 border border-blue-500/30 rounded-lg p-4",children:[e.jsxs("div",{className:"flex gap-2 mb-2",children:[e.jsx(y,{className:"w-4 h-4 text-blue-400 flex-shrink-0"}),e.jsx("p",{className:"text-sm italic text-blue-200",children:s("pricing.mentors.chris.quote")})]}),e.jsx("p",{className:"text-xs text-blue-400 text-right",children:s("pricing.mentors.chris.quoteMember")})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("span",{className:"px-3 py-1 bg-blue-600/20 text-blue-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.chris.badge1")}),e.jsx("span",{className:"px-3 py-1 bg-blue-600/20 text-blue-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.chris.badge2")}),e.jsx("span",{className:"px-3 py-1 bg-blue-600/20 text-blue-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.chris.badge3")})]})]})]})}):e.jsxs("div",{className:"bg-gradient-to-br from-green-900/20 via-gray-900/90 to-gray-900 border-2 border-green-500/30 rounded-2xl p-6 backdrop-blur-sm",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-32 h-32 md:w-40 md:h-40 rounded-xl overflow-hidden border-4 border-green-500/30 shadow-xl bg-gray-800",children:e.jsx("img",{src:"/images/juan.jpeg",alt:"Juan - 1-on-1 Elite Mentorship Director",className:"w-full h-full object-cover",loading:"lazy",width:"160",height:"160"})})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"text-2xl font-bold text-white flex items-center gap-2",children:[s("pricing.mentors.juan.name"),e.jsx(h,{className:"w-6 h-6 text-green-400"})]}),e.jsx("p",{className:"text-green-400 font-semibold",children:s("pricing.mentors.juan.title")})]}),e.jsxs("div",{className:"space-y-2 text-gray-300",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(h,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm",children:s("pricing.mentors.juan.feature1")})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(i,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm",children:s("pricing.mentors.juan.feature2")})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(w,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm",children:s("pricing.mentors.juan.feature3")})]})]}),e.jsxs("div",{className:"bg-yellow-500/10 border border-yellow-500/30 rounded-lg p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(i,{className:"w-4 h-4 text-yellow-400"}),e.jsx("p",{className:"text-sm font-semibold text-yellow-300",children:s("pricing.mentors.juan.capacityLabel")})]}),e.jsx(I,{variant:"inline"})]}),e.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4",children:[e.jsxs("div",{className:"flex gap-2 mb-2",children:[e.jsx(y,{className:"w-4 h-4 text-green-400 flex-shrink-0"}),e.jsx("p",{className:"text-sm italic text-green-200",children:s("pricing.mentors.juan.quote")})]}),e.jsx("p",{className:"text-xs text-green-400 text-right",children:s("pricing.mentors.juan.quoteMember")})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("span",{className:"px-3 py-1 bg-green-600/20 text-green-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.juan.badge1")}),e.jsx("span",{className:"px-3 py-1 bg-green-600/20 text-green-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.juan.badge2")}),e.jsx("span",{className:"px-3 py-1 bg-green-600/20 text-green-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.juan.badge3")}),e.jsx("span",{className:"px-3 py-1 bg-green-600/20 text-green-300 rounded-full text-xs font-semibold",children:s("pricing.mentors.juan.badge4")})]})]})]}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-700",children:e.jsxs("p",{className:"text-sm text-gray-400 text-center",children:[e.jsx("span",{className:"text-white font-semibold",children:s("pricing.mentors.juan.footer")})," ",s("pricing.mentors.juan.footerSuffix")]})})]})}export{L as default};

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.