PageSourceSearch

https://algoat.tv/assets/Members-BFyG5lgN.js

js algoat.tv collected 2026-10-05 23:20:33 UTC 26,271 bytes, 17 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MembersDashboard-BwsgaB-G.js","assets/index-CCMymUwH.js","assets/index-keYAJxWQ.css","assets/tiers-ClZbsNDw.js","assets/ThemeContext-C9gekB5m.js","assets/quote-C46QDfIi.js","assets/shield-alert-XJwLNrJV.js","assets/useTrialExpiredConfig-DuFraV3A.js","assets/crown-MIAGkzM_.js","assets/circle-check-Brdt8Rt9.js","assets/pen-line-Demo-GvV.js","assets/loader-circle-fnalvw8c.js","assets/ClickwrapCheckout-BQdhoxZC.js","assets/checkbox-IarlDmv_.js","assets/index-D0ohE07K.js","assets/index-BbEyjY1q.js","assets/WaitlistForm-BokwCMSW.js","assets/label-B1xTgx73.js","assets/joinWaitlist-Dgw1gfNO.js","assets/circle-alert-YCHvgSj4.js","assets/at-sign-DE1yzp70.js","assets/pencil-QGIWlDC3.js","assets/file-text-B-cSQqYJ.js","assets/message-circle-Dq5YjLFt.js","assets/SubscriptionModal-BUoDWUZT.js","assets/CancellationFlow-E7abnXZI.js","assets/ScannerWithTabs-VZDTIVWY.js","assets/StockScreener-CH865LHH.js","assets/ScannerLockedCard-ByG7cP-t.js","assets/download-BTdXHCQu.js","assets/arrow-up-down-PF9iPQHB.js","assets/MarketHeatmapsContent-BxNAIiMm.js","assets/ForumContent-BAE6hrb9.js","assets/alert-dialog-CHxmZBKp.js","assets/select-AGXAo8_v.js","assets/index-BdQq_4o_.js","assets/tooltip-CH0cBgVk.js","assets/chevron-up-CzsX68Sm.js","assets/upload-BNZtHim9.js","assets/list-BzmmSPdq.js","assets/trash-2-CMtl6HsM.js","assets/index-Cq8V09pM.js","assets/PullToRefresh-pKvEQZnX.js","assets/SubmitTestimonialModal-BiBKDurp.js","assets/WelcomeModal-CVX1tTo8.js","assets/confetti.module-Cx83yTHA.js","assets/LegalConsentGate-CTlrhfjI.js","assets/useLegalGateContent-CTJnwPei.js","assets/tabs-D1VIcBjz.js","assets/AccountModal-acWDwK0R.js","assets/user-x-BAcrFmyV.js","assets/SetupGuideModal-D2bToGnK.js","assets/GuidesContent-6Lh7_Q12.js","assets/scroll-area-B_banRdT.js","assets/circle-help-DKSfHQJo.js","assets/printer-JdTDIxGi.js","assets/Journal-Cc-LRn09.js","assets/index-BhADaK4A.js","assets/award-B_j-FAMO.js","assets/PieChart-CjvT_Ctz.js","assets/JournalDisclaimerModal-BbahzkU7.js","assets/SupportChatModal-Cfs3M2CY.js","assets/history-BfQZXx-5.js","assets/MembersFooter-C3kL-kOF.js"])))=>i.map(i=>d[i]);
2import{H as J,r as s,j as e,q as Oe,b as L,L as V,h as E,X as q,Y as me,$ as pe,C as W,l as De,a1 as xe,a2 as he,c as Ie,v as Pe,d as $e,b2 as Re,G as Ve,b3 as ze,b4 as Fe,b5 as Ge,t as Be,g as Ue,b6 as qe,aF as R,as as We,b7 as He,b8 as M,y as Je,z as Qe,_ as i}from"./index-CCMymUwH.js";import{c as ue}from"./confetti.module-Cx83yTHA.js";import{T as Ye,a as Ke,b as T,c as C}from"./tabs-D1VIcBjz.js";import{T as Xe,a as Ze,b as et,c as tt}from"./tooltip-CH0cBgVk.js";import{j as st,c as at}from"./joinWaitlist-Dgw1gfNO.js";import{C as nt}from"./circle-check-Brdt8Rt9.js";import{u as ge,S as _e,T as it,g as rt}from"./ThemeContext-C9gekB5m.js";/**
3 * @license lucide-react v0.475.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const ot=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],lt=J("CircleUser",ot);/**
8 * @license lucide-react v0.475.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */const ct=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],dt=J("Moon",ct);/**
13 * @license lucide-react v0.475.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const ut=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],mt=J("Sun",ut);function pt({user:t,onLogout:u}){const[o,l]=s.useState(!1);return s.useEffect(()=>{const x=`waitlist_user_${t.id}`;if(localStorage.getItem(x)){l(!0);return}st({email:t.email,name:t.full_name,entryPoint:"new_account",userId:t.id}).then(()=>{localStorage.setItem(x,"1"),l(!0)}).catch(()=>l(!1))},[t.id]),e.jsx("main",{className:"min-h-[100dvh] bg-[#070910] flex items-center justify-center px-4",children:e.jsxs("section",{className:"w-full max-w-md rounded-2xl border border-white/10 bg-[#0b0e17] p-6 text-center",children:[e.jsx(Oe,{className:"w-12 h-12 text-amber-400 mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-black text-white mb-2",children:"You're on the waitlist"}),e.jsxs("p",{className:"text-sm text-slate-400 mb-5",children:["New memberships are temporarily paused. We'll email ",e.jsx("span",{className:"text-white",children:t.email})," as soon as we reopen."]}),o&&e.jsxs("p",{className:"inline-flex items-center gap-1.5 text-sm text-emerald-400 mb-5",children:[e.jsx(nt,{className:"w-4 h-4"})," Spot saved"]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(L,{asChild:!0,className:"h-12 bg-[#F5A623] hover:bg-[#FFB733] text-[#0D0D0D] font-bold",children:e.jsx(V,{to:"/",children:"Back to home"})}),e.jsx(L,{variant:"ghost",onClick:u,className:"h-12 text-slate-400 hover:text-white",children:"Log out"})]})]})})}const xt=[{type:"terms_of_service",label:"Terms of Service",page:"TermsOfService"},{type:"privacy_policy",label:"Privacy Policy",page:"PrivacyPolicy"},{type:"risk_disclosure",label:"Risk Disclosure",page:"RiskDisclosure"},{type:"refund_policy",label:"Refund Policy",page:"RefundPolicy"}];function ht(t){const[u,o]=s.useState({}),[l,x]=s.useState(!1),[A,k]=s.useState(!0),[v,c]=s.useState(null),O=s.useCallback(h=>{c(h||{}),x(!1)},[]),w=s.useCallback(async()=>
17{if(!t){k(!1);return}k(!0);try{const h=await E.entities.LegalDocumentVersion.filter({is_current:!0}),d={};h.forEach(_=>{xt.some(D=>D.type===_.document_type)&&(d[_.document_type]=_.version_id)}),o(d);const g={...t.legal_consent_versions||{},...v||{}},y=Object.keys(d).some(_=>g[_]!==d[_]);x(Object.keys(d).length>0&&y)}catch(h){console.error("useLegalConsentStatus: failed to evaluate",h),x(!1)}finally{k(!1)}},[t,v]);return s.useEffect(()=>{w()},[w]),{needsConsent:l,currentVersions:u,loading:A,recheck:w,markSigned:O}}function gt(){const{theme:t,toggleTheme:u}=ge(),o=t==="dark";return e.jsx(Xe,{children:e.jsxs(Ze,{children:[e.jsx(et,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"icon",onClick:u,className:`${o?"text-slate-400 hover:text-amber-400 hover:bg-amber-500/10":"text-gray-600 hover:text-amber-600 hover:bg-amber-50"} h-12 w-12`,children:o?e.jsx(mt,{className:"w-5 h-5"}):e.jsx(dt,{className:"w-5 h-5"})})}),e.jsx(tt,{children:e.jsx("p",{children:o?"Switch to Light Mode":"Switch to Dark Mode"})})]})})}const _t=[{id:"dashboard",label:"Home",icon:q},{id:"ai-quant",label:"AI Quant",icon:me,purple:!0},{id:"journal",label:"Journal",icon:pe},{id:"scanner",label:"Scanner",icon:W},{id:"trading-ideas",label:"Market Watch",icon:De},{id:"screener",label:"Stock Screener",icon:_e},{id:"forum",label:"Forum",icon:xe},{id:"guides",label:"Guides",icon:he},{id:"account",label:"Account",icon:lt}];function bt({activeTab:t,onTabChange:u,isDark:o,guidesEnabled:l=!0,forumVisible:x=!0,isTabVisible:A}){let k=_t.filter(c=>c.id==="account"?!0:A?A(c.id):!(c.id==="guides"&&!l||c.id==="forum"&&!x));const v=s.useRef(null);return s.useEffect(()=>{if(!v.current)return;const c=v.current.querySelector('[data-tab-active="true"]');c&&c.scrollIntoView({inline:"center",block:"nearest",behavior:"smooth"})},[t]),e.jsx("nav",{"data-mobile-interactive":!0,className:"fixed bottom-0 left-0 right-0 z-50 md:hidden border-t",style:{paddingBottom:"env(safe-area-inset-bottom, 0px)",background:o?"rgba(17, 24, 39, 0.97)":"rgba(255, 255, 255, 0.97)",borderColor:o?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",willChange:"transform",touchAction:"manipulation"},children:e.jsx("div",{ref:v,className:"flex items-center h-14 w-full",children:k.map(({id:c,label:O,icon:w,purple:h})=>{const d=t===c,g=h===!0;let y;return g?y=o?"text-purple-400":"text-purple-600":d?y=o?"text-amber-400":"text-amber-600":y=o?"text-slate-500":"text-gray-400",e.jsxs("button",{"data-tab-active":d?"true":"false",onClick:()=>u(c),className:`flex flex-col items-center justify-center gap-0.5 flex-1 min-w-0 h-full transition-colors px-0.5 relative active:opacity-60 ${y}`,style:{minHeight:"48px",WebkitTapHighlightColor:"transparent",touchAction:"manipulation"},children:[d&&!g&&e.jsx("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 w-8 h-0.5 rounded-full ${o?"bg-amber-400":"bg-amber-500"}`}),g&&e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-8 h-0.5 rounded-full bg-purple-500"}),e.jsx(w,{className:`w-5 h-5 ${d||g?"scale-110":""} transition-transform`,strokeWidth:d||g?2.5:2}),e.jsx("span",{className:`text-[10px] font-semibold leading-none ${d||g?"opacity-100":"opacity-70"}`,children:O})]},c)})})})}const H="algoat_oauth_attempt",ft=1800*1e3,be=()=>Date.now(),vt=()=>{try{const t=localStorage.getItem(H);if(!t)return null;const u=JSON.parse(t);return!u||typeof u.ts!="number"?null:be()-u.ts>ft?(localStorage.removeItem(H),null):u}catch{return null}},yt=()=>{try{localStorage.removeItem(H)}catch{}},jt=()=>{try{const t=(window.location.hostname||"").toLowerCase();return/^goat-trading-toolkit-[a-z0-9-]*\.base44\.app$/.test(t)}catch{return!1}},St=()=>{try{return(window.location.hostname||"").toLowerCase()}catch{return""}},kt=()=>{try{return new URLSearchParams(window.location.search).has("access_token")}catch{return!1}},wt=t=>({provider:(t==null?void 0:t.provider)||"google",attempt_device:(t==null?void 0:t.device_type)||"",origin_host:(t==null?void 0:t.origin_host)||"",landing_host:St(),access_token_present:kt(),mirror_redirect_fired:jt(),attempt_age_ms:t!=null&&t.ts?be()-t.ts:null}),Nt=()=>{const t=vt();return t?wt(t):null},Tt=s.lazy(()=>i(()=>import("./MembersDashboard-BwsgaB-G.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),Ct=s.lazy(()=>i(()=>import("./SubscriptionModal-BUoDWUZT.js"),__vite__mapDeps([24,1,2,8,11])));s.lazy(()=>i(()=>import("./CancellationFlow-E7abnXZI.js"),__vite__mapDeps([25,1,2,4,11
17])));const Et=s.lazy(()=>i(()=>import("./ScannerWithTabs-VZDTIVWY.js"),__vite__mapDeps([26,1,2,4,3,24,8,11]))),At=s.lazy(()=>i(()=>import("./StockScreener-CH865LHH.js"),__vite__mapDeps([27,1,2,17,3,4,28,29,8,30]))),Mt=s.lazy(()=>i(()=>import("./MarketHeatmapsContent-BxNAIiMm.js"),__vite__mapDeps([31,1,2,4]))),Lt=s.lazy(()=>i(()=>import("./ForumContent-BAE6hrb9.js"),__vite__mapDeps([32,1,2,4,8,33,34,35,36,15,14,37,38,39,5,21,40,41,42]))),Ot=s.lazy(()=>i(()=>import("./SubmitTestimonialModal-BiBKDurp.js"),__vite__mapDeps([43,1,2,4]))),Dt=s.lazy(()=>i(()=>import("./WelcomeModal-CVX1tTo8.js").then(t=>t.b),__vite__mapDeps([44,1,2,45,13,14,15,17,36,4]))),It=s.lazy(()=>i(()=>import("./LegalConsentGate-CTlrhfjI.js"),__vite__mapDeps([46,1,2,13,14,15,47,45,48,36,18,9,4])));s.lazy(()=>i(()=>import("./ClickwrapCheckout-BQdhoxZC.js"),__vite__mapDeps([12,1,2,13,14,15,16,17,18,9,11,19,20,21,8,22])));const Pt=s.lazy(()=>i(()=>import("./AccountModal-acWDwK0R.js"),__vite__mapDeps([49,1,2,4,25,11,8,36,15,19,9,40,50,34,35,14,37,23]))),$t=s.lazy(()=>i(()=>import("./SetupGuideModal-D2bToGnK.js"),__vite__mapDeps([51,1,2,4,37]))),Rt=s.lazy(()=>i(()=>import("./GuidesContent-6Lh7_Q12.js"),__vite__mapDeps([52,1,2,53,35,54,55,39,4]))),Vt=s.lazy(()=>i(()=>import("./Journal-Cc-LRn09.js"),__vite__mapDeps([56,1,2,36,15,34,35,14,37,10,6,22,4,40,57,11,58,59])).then(t=>({default:t.JournalContent}))),zt=s.lazy(()=>i(()=>import("./JournalDisclaimerModal-BbahzkU7.js"),__vite__mapDeps([60,1,2]))),Ft=s.lazy(()=>i(()=>import("./SupportChatModal-Cfs3M2CY.js"),__vite__mapDeps([61,1,2,24,8,11,36,15,4,62,40,41]))),Gt=s.lazy(()=>i(()=>import("./index-CCMymUwH.js").then(t=>t.cu),__vite__mapDeps([1,2]))),Bt=s.lazy(()=>i(()=>import("./MembersFooter-C3kL-kOF.js"),__vite__mapDeps([63,1,2,4])));function Ut(){const{user:t,loading:u,logout:o,refresh:l}=Ie(!0),{paused:x,pausedSince:A,loading:k}=Pe(),{needsConsent:v,currentVersions:c,loading:O,markSigned:w}=ht(t);$e("Members");const[h,d]=s.useState(!1),[g,y]=s.useState(null),[_,D]=s.useState(!1),[z,Q]=s.useState(!1),[Y,F]=s.useState(!1),[K,X]=s.useState(!1),[G,fe]=s.useState(!0),[B,ve]=s.useState(!0),[Z,ye]=s.useState(null),[Wt,je]=s.useState(!0),[Se,ke]=s.useState(!0),[we,Ne]=s.useState(!1),[Te,ee]=s.useState(!1),[Ht,Jt]=s.useState(!1),[te,U]=s.useState("dashboard"),[Ce,Qt]=s.useState(!1),[Ee,Yt]=s.useState(null),[se,P]=s.useState(!1),[ae,ne]=s.useState(!1),ie=s.useRef(!1),re=!!(t&&t.created_date&&Date.now()-new Date(t.created_date).getTime()<600*1e3);s.useEffect(()=>{if(localStorage.getItem("show_payment_confetti")==="true"){localStorage.removeItem("show_payment_confetti");const a=setTimeout(()=>{const p=Date.now()+3e3,j=["#FFD700","#FFA500","#ffffff","#00E5FF"],S=()=>{ue({particleCount:3,angle:60,spread:55,origin:{x:0},colors:j}),ue({particleCount:3,angle:120,spread:55,origin:{x:1},colors:j}),Date.now()<p&&requestAnimationFrame(S)};S()},400);return()=>clearTimeout(a)}},[]),s.useEffect(()=>{t&&!t.onboarding_completed&&Q(!0)},[t]),s.useEffect(()=>{if(!re||!t)return;const a=t!=null&&t.hashed_password?"email":"google";sessionStorage.getItem("algoat_signup_server_fired")!=="1"&&(sessionStorage.setItem("algoat_signup_server_fired","1"),Re({source:"oauth_signup",tier:"free",value:0,user:t}),Ve(t==null?void 0:t.email),ze(t==null?void 0:t.email),(async()=>{try{const r=await Fe();await E.functions.invoke("trackSignupServer",{method:a,client_id:r,session_id:Ge()})}catch(r){console.error("[Members] trackSignupServer failed:",r)}})())},[re,t]),s.useEffect(()=>{if(t)try{const a=Nt();a&&(yt(),Be("oauth_return_authenticated",{source_page:"members",device_type:Ue(),...a}))}catch{}},[t]),s.useEffect(()=>{t&&ee(!!t.journal_disclaimer_accepted)},[t]),s.useEffect(()=>{(async()=>{try{const r=await E.entities.SiteContent.list(),p=r.find(f=>f.key==="guides_enabled");p&&fe(p.value==="true");const j=r.find(f=>f.key==="forum_visible");j&&ve(j.value!=="false");const S=r.find(f=>f.key==="support_agent_enabled");S&&je(S.value!=="false");const $=r.find(f=>f.key==="scanner_table_visible");$&&ke($.value!=="false");const de=r.find(f=>f.key==="dashboard_tabs_config");de&&ye(JSON.parse(de.value))}catch(r){console.error("Failed to load settings:",r)}finally{Ne(!0)}})()},[]),s.useEffect(()=>{t&&l()},[]),s.useEffect(()=>{(async()=>
17{if(!t||ie.current)return;ie.current=!0;const r=t.subscription_tier||"free";Je("email"),Qe({role:t.role||"user",isTrial:r==="free"&&!!t.trial_start_date}),await E.auth.updateMe({last_login:new Date().toISOString()}),at(E);try{await E.entities.ActivityLog.create({action_type:"user_login",entity_type:"user",entity_id:t.id,user_email:t.email,user_name:t.full_name,description:`${t.full_name||t.email} logged in`,metadata:{tier:r}})}catch(p){console.error("Failed to log activity:",p)}})()},[t]);const Ae=()=>{o(R("Home"))},oe=a=>{M("members_upgrade_click",{event_location:"members_upgrade_entry",button_text:a!=null&&a.name?`Upgrade to ${a.name}`:"Upgrade",user_tier:(t==null?void 0:t.subscription_tier)||"free",target_tier:(a==null?void 0:a.tier)||"goat",billing_cycle:(a==null?void 0:a.billing)||"annual",value:(a==null?void 0:a.price)||0,currency:"USD",payment_type:"tranzila",is_trial_user:!!(t!=null&&t.is_trial_user),source_page:"Members"}),y(a),d(!0)},Me=async a=>{const{base44:r}=await i(async()=>{const{base44:p}=await import("./index-CCMymUwH.js").then(j=>j.cs);return{base44:p}},__vite__mapDeps([1,2]));await r.auth.updateMe({subscription_tier:a.tier,billing_cycle:a.billing_cycle,subscription_status:"active",subscription_start_date:new Date().toISOString().split("T")[0],subscription_renewal_date:a.billing_cycle==="annual"?new Date(Date.now()+365*24*60*60*1e3).toISOString().split("T")[0]:new Date(Date.now()+720*60*60*1e3).toISOString().split("T")[0],indicator_access_granted:a.tier==="goat",telegram_basic_access:["signals","goat"].includes(a.tier),telegram_ai_access:a.tier==="goat",discord_access:!0,priority_support:a.tier==="goat"}),await l()},{theme:Le}=ge(),m=Le==="dark",n=rt(m);if(u||!we)return e.jsx("div",{className:`min-h-screen ${n.pageBg} flex items-center justify-center`,children:e.jsx("div",{className:`animate-spin w-8 h-8 border-2 ${n.spinner} rounded-full`})});if(!k&&x&&qe(t,A))return e.jsx(pt,{user:t,onLogout:o});const I=t==null?void 0:t.subscription_tier,le=t==null?void 0:t.pending_subscription_tier,N=I&&I!=="free"?I:le||I||"free";console.log("Members: User tier detection",{activeTier:I,pendingTier:le,resolvedTier:N,user_email:t==null?void 0:t.email,user_id:t==null?void 0:t.id,subscription_status:t==null?void 0:t.subscription_status,full_user:JSON.stringify(t)});const ce=(t==null?void 0:t.role)==="admin",b=(a,r)=>{if(!Z)return a==="guides"?G:a==="forum"?B:!0;const p=Z.find($=>$.id===a);if(!p)return a!=="screener";if(!(r==="desktop"?p.desktop:p.mobile))return!1;const S=p.tiers||[];return S.includes("admin")&&ce?!0:S.includes(N)};return e.jsxs("div",{className:`min-h-screen ${n.pageBg} transition-colors duration-300`,children:[e.jsx("header",{className:`border-b ${n.border} ${n.headerBg} ${n.shadow} sticky top-0 z-50 transition-colors duration-300`,style:{paddingTop:"env(safe-area-inset-top, 0px)"},children:e.jsxs("div",{className:"max-w-5xl mx-auto px-3 sm:px-6 lg:px-8 py-2 sm:py-3 flex items-center justify-between relative",children:[e.jsx("div",{className:"flex items-center gap-4 flex-shrink-0",children:e.jsx(V,{to:R("Home"),className:"flex items-center",children:e.jsxs("span",{className:"text-xl font-black tracking-tight",children:[e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#FFD700] to-[#FFA500]",children:"Algoat"}),e.jsx("span",{className:"text-[#FFD700]",children:"."}),e.jsx("span",{className:`${m?"text-white":"text-gray-900"} font-extrabold`,children:"TV"})]})})}),e.jsxs("div",{className:"hidden sm:flex flex-col items-center absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none",children:[e.jsxs("h1",{className:`text-sm font-bold ${n.textPrimary} truncate`,children:["Welcome back, ",(t==null?void 0:t.full_name)||"Member"]}),e.jsx("p",{className:`text-xs ${n.textSecondary} truncate`,children:t==null?void 0:t.email})]}),e.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-2",children:[e.jsx(gt,{}),ce&&e.jsx(V,{to:R("Admin"),children:e.jsx(L,{variant:"ghost",size:"icon",className:`${n.buttonGhost} h-11 w-11 sm:h-9 sm:w-9 active:opacity-70`,children:e.jsx(We,{className:"w-5 h-5 sm:w-4 sm:h-4"})})}),e.jsx(V,{to:R("Home"),children:e.jsx(L,{variant:"ghost",size:"icon",className:`${n.buttonGhost} h-11 w-11 sm:h-9 sm:w-9 active:opacity-70`,children:e.jsx(q,{className:"w-5 h-5 sm:w-4 sm:h-4"})})}),e.jsx(L,{variant:"ghost",size:"icon",onClick:Ae,className:`${n.buttonGhost} h-11 w-11 sm:h-9 sm:w-9 active:opacity-70`,children:e.jsx(He,{className:"w-5 h-5 sm:w-4 sm:h-4"})})]})]})}),e.jsx("main",{className:"px-3 sm:px-6 lg:px-8 py-3 sm:py-6 max-w-5xl mx-auto guides-tab-parent",children:e.jsxs(Ye,{defaultValue:"dashboard",className:"w-full",value:te,onValueChange:a=>{M("members_tab_opened",{event_location:"members_desktop_tabs",tab_name:a,button_text:a,user_tier:N,device_type:"desktop"}),U(a)},children:[e.jsx("div",{className:"flex flex-col items-center gap-4 mb-0 md:mb-6",children:e.jsxs(Ke,{className:`${n.tabList} border hidden md:inline-flex gap-1 p-1 h-auto transition-colors duration-300`,children:[b("dashboard","desktop")&&e.jsxs(T,{value:"dashboard",className:`${m?"data-[state=active]:bg-amber-500/20 data-[state=active]:text-amber-400":"data-[state=active]:bg-amber-100 data-[state=active]:text-amber-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(q,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Dashboard"]}),b("ai-quant","desktop")&&e.jsxs("button",{type:"button",onClick:()=>{M("members_tab_opened",{event_location:"members_desktop_tabs",tab_name:"ai-quant",button_text:"AI Quant",user_tier:N,device_type:"desktop"}),P(!0)},className:`inline-flex items-center justify-center whitespace-nowrap rounded-md text-xs sm:text-sm px-2 sm:px-3 py-1.5 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${m?"text-purple-400 hover:bg-purple-500/20":"text-purple-600 hover:bg-purple-50"}`,children:[e.jsx(me,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"AI Quant"]}),b("journal","desktop")&&e.jsxs(T,{value:"journal",className:`${m?"data-[state=active]:bg-green-500/20 data-[state=active]:text-green-400":"data-[state=active]:bg-green-100 data-[state=active]:text-green-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(pe,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Journal"]}),b("scanner","desktop")&&e.jsxs(T,{value:"scanner",className:`${m?"data-[state=active]:bg-amber-500/20 data-[state=active]:text-amber-400":"data-[state=active]:bg-amber-100 data-[state=active]:text-amber-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(W,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Scanner"]}),b("trading-ideas","desktop")&&e.jsxs(T,{value:"trading-ideas",className:`${m?"data-[state=active]:bg-cyan-500/20 data-[state=active]:text-cyan-400":"data-[state=active]:bg-cyan-100 data-[state=active]:text-cyan-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(W,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Market Watch"]}),b("screener","desktop")&&e.jsxs(T,{value:"screener",className:`${m?"data-[state=active]:bg-amber-500/20 data-[state=active]:text-amber-400":"data-[state=active]:bg-amber-100 data-[state=active]:text-amber-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(_e,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Stock Screener"]}),b("forum","desktop")&&e.jsxs(T,{value:"forum",className:`${m?"data-[state=active]:bg-amber-500/20 data-[state=active]:text-amber-400":"data-[state=active]:bg-amber-100 data-[state=active]:text-amber-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(xe,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Forum"]}),b("guides","desktop")&&e.jsxs(T,{value:"guides",className:`${m?"data-[state=active]:bg-green-500/20 data-[state=active]:text-green-400":"data-[state=active]:bg-green-100 data-[state=active]:text-green-700"} text-xs sm:text-sm px-2 sm:px-3 py-1.5`,children:[e.jsx(he,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 mr-1"}),"Guides"]})]})}),e.jsx(C,{value:"dashboard",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(Tt,{user:t,onUpgrade:oe,onRefresh:l,onAccountClick:()=>{M("account_modal_opened",{event_location:"members_dashboard_quick_actions",button_text:"Account",user_tier:N}),F(!0)},onSetupGuideClick:()=>X(!0),isFoundingMemberEligible:!1,foundingMemberCount:null,foundingMemberLimit:null,onTestimonialClick:()=>D(!0),onTabChange:a=>a==="ai-quant"?P(!0):U(a),showMobileWelcome:!0,academyCompleted:Ce,academyProgress:Ee})})}),e.jsx(C,{value:"journal",className:"mt-0 -mx-4 sm:-mx-6 lg:-mx-8",children:Te?e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(Vt,{})}):e.jsx("div",{className:"px-4 sm:px-6 lg:px-8 py-6",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(zt,{onAccept:async()=>{await E.auth.updateMe({journal_disclaimer_accepted:!0,journal_disclaimer_date:new Date().toISOString()}),ee(!0),await l()},isDark:m})})})}),e.jsx(C,{value:"scanner",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(Et,{user:t,scannerTableVisible:Se})})}),e.jsx(C,{value:"trading-ideas",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(Mt,{})})}),e.jsx(C,{value:"screener",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(At,{user:t,onUpgrade:()=>oe({tier:"goat",name:"GOAT"})})})}),B&&e.jsx(C,{value:"forum",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(Lt,{user:t})})}),G&&e.jsx(C,{value:"guides",className:"mt-0 -mx-4 sm:-mx-6 lg:-mx-8",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:`animate-pulse h-64 ${n.loadingBg} rounded-xl`}),children:e.jsx(Rt,{user:t})})})]})}),h&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(Ct,{open:h,onOpenChange:d,selectedPlan:g,onSubscribe:Me})}),_&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(Ot,{open:_,onOpenChange:D,user:t})}),z&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(Dt,{open:z,onOpenChange:Q,user:t,onComplete:l})}),!O&&v&&t&&t.onboarding_completed&&!z&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(It,{user:t,currentVersions:c,isDark:m,onComplete:a=>{w(a),l()}})}),Y&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(Pt,{open:Y,onOpenChange:F,user:t,onRefresh:l,onTestimonialClick:()=>D(!0)})}),K&&e.jsx(s.Suspense,{fallback:null,children:e.jsx($t,{open:K,onOpenChange:X,user:t,onRefresh:l,initialView:"academy"})}),se&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(Ft,{open:se,onOpenChange:P,onOpenContact:()=>ne(!0)})}),ae&&e.jsx(s.Suspense,{fallback:null,children:e.jsx(Gt,{open:ae,onOpenChange:ne})}),e.jsx(bt,{activeTab:te,onTabChange:a=>{M("members_tab_opened",{event_location:"members_mobile_bottom_nav",tab_name:a,button_text:a,user_tier:N,device_type:"mobile"}),a==="account"?(M("account_modal_opened",{event_location:"members_mobile_bottom_nav",button_text:"Account",user_tier:N}),F(!0)):a==="ai-quant"?P(!0):U(a)},isDark:m,guidesEnabled:G,forumVisible:B,isTabVisible:a=>b(a,"mobile")}),e.jsx(s.Suspense,{fallback:null,children:e.jsx(Bt,{})}),e.jsx("div",{className:"h-16 md:hidden"})]})}function qt(){return e.jsx(it,{children:e.jsx(Ut,{})})}const ns=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"}));
17export{xt as G,ns as M};

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.