PageSourceSearch

https://falpha.ai/static/js/6124.776b10de.chunk.js

js falpha.ai collected 2026-10-05 11:59:46 UTC 15,732 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbam_mern_app_client=self.webpackChunkbam_mern_app_client||[]).push([[6124],{6251:()=>{},56124:(e,t,r)=>{r.r(t),r.d(t,{EnterEmailModal:()=>k,default:()=>w});var i=r(89379),n=(r(6251),r(9950)),s=r(64933),a=r(28429),o=r(29925),c=r(2235),l=r(82053),d=r(10226),u=r(93230),h=r(59254),p=r(11966),m=r(84142),x=(r(9873),r(26629),r(1108)),f=r(44414);const g=e=>{let{check:t,text:r}=e;return(0,f.jsx)("div",{style:b.container,children:(0,f.jsx)("span",{children:r})})},b={container:{border:"none",borderRadius:"15px",padding:"20px",fontSize:"14px",maxWidth:"600px",height:"fit-content",margin:"20px auto",backgroundColor:"#f9f9f9",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center"},checkmark:{color:"green",fontSize:"18px",marginRight:"10px"}};async function y(e,t){try{const r=await e.json();return"string"===typeof r&&r.trim()?r:r.response||r.error||r.message||t}catch(r){try{return await e.text()||t}catch(i){return t}}}const v=(0,h.Ay)((e=>(0,f.jsx)(p.A,(0,i.A)({},e))))({"& .MuiTabs-indicator":{backgroundColor:"transparent"}}),j=(0,h.Ay)((e=>(0,f.jsx)(m.A,(0,i.A)({},e))))((e=>{let{theme:t}=e;return{textTransform:"none",width:"150px",fontSize:t.typography.pxToRem(15),marginRight:t.spacing(1),borderRadius:"25px",color:"#000","&.Mui-selected":{color:"#fff",backgroundColor:"var(--orange)"},"&.Mui-selected":{color:"#fff",backgroundColor:"var(--orange)"}}}));(0,h.Ay)(c.A)((e=>{let{theme:t}=e;return(0,i.A)({height:800,minWidth:500,padding:30,width:"35%",textAlign:"center",borderRadius:20,display:"flex",flexDirection:"column",justifyContent:"space-between"},t)}));function k(e){let{onClose:t}=e;const[r,i]=(0,n.useState)(""),[s,a]=(0,n.useState)(""),[o,c]=(0,n.useState)(""),[l,d]=(0,n.useState)(""),[u,h]=(0,n.useState)(""),[p,m]=(0,n.use
1State)(""),x=async()=>{if(!r)return void h("Email required to submit");if(!s)return void h("First Name required to submit");if(!o)return void h("Last Name required to submit");if(!l)return void h("Phone Number required to submit");if(!p)return void h("Role required to submit");if(!r||String(r).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/))if(!l||String(l).match(/^\d{10,11}$/)){window.dataLayer.push({event:"resource_center_email_access"});try{let e=await fetch("/api/public/request-pricing",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,first:s,last:o,number:l,role:p,url:window.location.href})});200===e.status?(i(""),a(""),c(""),d(""),m(""),h("We will contact you soon! Thank you.")):403===e.status||"403"===e.status?h("Error: please try again or contact us directly"):h(e,e.status)}catch(e){h("Error: ".concat(e.message)),console.error("Error during fetch:",e)}}else h("Valid phone number required to submit");else h("Valid email required to submit")};return(0,f.jsxs)("div",{className:"home-chat-modal",children:[(0,f.jsx)("h3",{children:"Enter Email to Receive fAlpha Pricing"}),(0,f.jsxs)("form",{className:"pricing-form",onSubmit:async e=>{e.preventDefault(),x()},children:[(0,f.jsx)("input",{type:"text",value:r,id:"email",onChange:e=>i(e.target.value),placeholder:"Business Email"}),(0,f.jsx)("input",{type:"text",value:s,id:"first",onChange:e=>a(e.target.value),placeholder:"First Name"}),(0,f.jsx)("input",{type:"text",value:o,id:"last",onChange:e=>c(e.target.value),placeholder:"Last Name"}),(0,f.jsx)("input",{type:"text",value:l,id:"number",onChange:e=>d(e.target.value),placeholder:"Phone Number"}),(0,f.jsxs)("select",{value:p,id:"role",className:"pricing-form",onChange:e=>m(e.target.value),children:[(0,f.jsx)("option",{value:"",disabled:!0,children:"Role"}),(0,f.jsx)("option",{value:"Corporate",children:"Corporate"}),(0,f.jsx)("option",{value:"Buy Side",children:"Buy Side"}),(0,f.jsx)("option",{value:"Sell Side",children:"Sell Side"}),(0,f.jsx)("option",{value:"Consultant",children:"Consultant"}),(0,f.jsx)("option",{value:"Other",children:"Other"})]}),(0,f.jsx)("button",{type:"submit",children:"Submit"}),(0,f.jsx)("div",{className:"message",children:u?(0,f.jsx)("p",{children:u}):null})]})]})}const S=e=>{let{subscription:t,stripeCustomer:r,handleOpenModal:i}=e;const[a,c]=(0,n.useState)(""),[u,h]=n.useState(""),[p,m]=n.useState(""),[x,b]=n.useState(!1),[S,w]=n.useState(!1),[C,A]=n.useState(1);var N="";window.location.hostname.includes("researchdemo")&&(N="researchdemo.");"https://".concat(N,"falpha.ai/api");window.location.hostname.includes("localhost");const _=async(e,t)=>{var r="monthly";1==t&&(r="yearly"),window.dataLayer.push({event:"subscribe_plan-".concat(e,"-").concat(r)});try{const t=await fetch("/api/account/subscription",{method:"POST",body:JSON.stringify({type:e,variant:r}),headers:{"Content-Type":"application/json"}});if(t.ok){const e=await t.json();return e.redirect_url?void(window.location.href=e.redirect_url):void alert("Stripe checkout did not return a redirect URL.")}const i=await y(t,"Stripe checkout failed for ".concat(e," (").concat(r,")."));alert(i),console.error("[Stripe Checkout] Request failed:",{type:e,duration:r,status:t.status,errorMessage:i})}catch(i){alert("Stripe checkout request failed: ".concat(i.message)),console.error("[Stripe Checkout] Network failure:",i)}},R=async(e,t)=>{var r="monthly";1==t&&(r="yearly"),window.dataLayer.push({event:"subscribe_plan-".concat(e,"-").concat(r)});try{const t=await fetch("/api/account/invoice",{method:"POST",body:JSON.stringify({type:e,variant:r}),headers:{"Content-Type":"application/json"}});if(t.ok){const e=await t.json();return e.hosted_invoice_url?void(window.location.href=e.hosted_invoice_url):void alert("Stripe invoice did not return a hosted invoice URL.")}const i=await y(t,"Stripe invoice flow failed for ".concat(e," (").concat(r,")."));alert(i),console.error("[Stripe Invoice] Request failed:",{type:e,duration:r,status:t.status,errorMessage:i})}catch(i){alert("Stripe invoice request failed: ".concat(i.message)),console.error("[Stripe Invoice] Network failure:",i)}},P=(n.useRef(null),[{check:!0,text:""},{check:!0,text:"Companies in S&P 500, S&P 400, Russell 2000 + other companies from 5600+"},{check:!0,text:"ETFs (1000+)"},{check:!0,text:"Equity and Credit Indicators"},{check:!0,text:"Access to fAlpha\u2019s API"},{check:!0,text:"Intelligent Reports: Customizable, Automatically generated analysis reports (not forwardable)"},{check:!0,text:"Similar Companies"},{check:!0,text:"Relative Value"},{check:!0,text:"Natural Hedges"},{check:!0,text:"Analysis of External Analysts (3000+)"},{check:!0,text:"Smart Button"},{check:!0,text:"Alerts"},{check:!0,text:"Risk Metrics (VaR, ES, PTT)"}]),I=[{check:!0,text:""},{check:!0,text:"Companies in S&P 500, S&P 400, Russell 2000 + other companies from 5600+"},{check:!0,text:"ETFs (1000+)"},{check:!0,text:"Equity and Credit Indicators"},{check:!0,text:"Access to fAlpha\u2019s API"},{check:!0,text:"Intelligent Reports: Customizable, Automatically generated analysis reports (not forwardable)"},{check:!0,text:"Similar Companies"},{check:!0,text:"Relative Value"},{check:!0,text:"Natural Hedges"},{check:!0,text:"Analysis of External Analysts (3000+)"},{check:!0,text:"Smart Button"},{check:!0,text:"Alerts"},{check:!0,text:"Risk Metrics (VaR, ES, PTT)"},{check:!0,text:"Full Historical Data"},{check:!0,text:"Data Platform for Custom Models"},{check:!0,text:"Build & Distribute Your Expertise Record"},{check:!0,text:"Ability to Forward Intelligent Reports"},{check:!0,text:"APIs to Upload and Download data"},{check:!0,text:"Extra Public Companies (up to 8000)"},{check:!0,text:"Individualized Data Science Support"},{check:!0,text:"IT Support Crafted to your Needs"}];return(0,f.jsxs)("div",{className:"pricing-container",children:[(0,f.jsxs)(v,{value:C,onChange:(e,t)=>
1{A(t)},centered:!0,children:[(0,f.jsx)(j,{label:"Monthly"}),(0,f.jsx)(j,{label:"Yearly"})]}),(0,f.jsxs)("div",{className:"pricing-table",children:[(0,f.jsxs)("table",{children:[(0,f.jsx)("thead",{children:(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{className:"feature-column",style:{fontWeight:"normal",border:"none"},children:(0,f.jsx)(l.A,{variant:"h5",component:"div"})}),(0,f.jsxs)("th",{className:"plan-column",style:{fontWeight:"normal",border:"none"},children:[(0,f.jsx)(l.A,{variant:"h5",component:"div",children:"Enterprise Plan"}),(0,f.jsx)(l.A,{variant:"h8",component:"div",children:"Twenty Seats"}),(0,f.jsx)(g,{text:"Position your firm at the forefront of financial research with fAlpha\u2019s Enterprise Plan. This plan offers extensive capabilities to gain deeper insights while minimizing research time, enabling your team to add and make informed decisions faster."})]}),(0,f.jsxs)("th",{className:"plan-column",style:{fontWeight:"normal",border:"none"},children:[(0,f.jsx)(l.A,{variant:"h5",component:"div",children:"Professional Plan"}),(0,f.jsx)(l.A,{variant:"h8",component:"div",children:"One Seat"}),(0,f.jsx)(g,{text:"The most effective pre-trade validation insights available. It gives you deeper insights and at the same time decreases your time spent researching."})]})]})}),(0,f.jsxs)("tbody",{children:[I.map(((e,t)=>(0,f.jsxs)("tr",{children:[(0,f.jsx)("td",{children:e.text}),(0,f.jsx)("td",{children:e.check?(0,f.jsx)("span",{className:"check-mark",children:(0,f.jsx)(s.CkS,{})}):""}),(0,f.jsx)("td",{children:P[t]&&P[t].check?(0,f.jsx)("span",{className:"check-mark",children:(0,f.jsx)(s.CkS,{})}):""})]},t))),P.slice(I.length).map(((e,t)=>(0,f.jsxs)("tr",{children:[(0,f.jsx)("td",{children:e.text}),(0,f.jsx)("td",{children:e.check?(0,f.jsx)("span",{className:"check-mark",children:(0,f.jsx)(s.CkS,{})}):""}),(0,f.jsx)("td",{})]},t+I.length))),(0,f.jsxs)("tr",{children:[(0,f.jsx)("td",{style:{border:"none"}}),(0,f.jsxs)("td",{style:{border:"none"},children:["subscribed"===t.response&&"pulse_free"!==t.subscription&&(0,f.jsx)(l.A,{variant:"h6",style:{marginTop:"1rem",marginBottom:"1rem"},children:"Starting at $48,000 / year"}),1===C&&"no stripe customerId"===r.response&&(0,f.jsx)("div",{className:"pricing-form",children:(0,f.jsx)(d.A,{fullWidth:!0,variant:"contained",color:"primary",size:"large",onClick:()=>_("subscribe_premium_enterprise",C),children:"Subscribe"})}),1===C&&"no stripe customerId"===r.response&&(0,f.jsx)("div",{className:"pricing-form",children:(0,f.jsx)(d.A,{fullWidth:!0,variant:"contained",color:"primary",size:"large",onClick:()=>R("subscribe_premium_enterprise",C),children:"Subscribe: Invoice"})})]}),(0,f.jsxs)("td",{style:{border:"none"},children:["subscribed"===t.response&&"pulse_free"!==t.subscription&&(0,f.jsx)(l.A,{variant:"h6",style:{marginTop:"1rem",marginBottom:"1rem"},children:"$4,800 / year"}),"no stripe customerId"===r.response&&(0,f.jsx)("div",{className:"pricing-form",children:(0,f.jsx)(d.A,{fullWidth:!0,variant:"contained",color:"primary",size:"large",onClick:()=>_("subscribe_premium",C),children:"Subscribe"})}),!1,"has stripe customerId"===r.response&&(0,f.jsx)("div",{className:"pricing-form",children:(0,f.jsx)(d.A,{fullWidth:!0,variant:"contained",color:"primary",size:"large",onClick:async e=>{window.dataLayer.push({event:"manage_subscription"});try{const e=await fetch("/api/account/subscription",{method:"POST",body:JSON.stringify({type:"portal"}),headers:{"Content-Type":"application/json"}});if(e.ok){const t=await e.json();return t.redirect_url?void(window.location.href=t.redirect_url):void alert("Stripe billing portal did not return a redirect URL.")}const t=await y(e,"Failed to open the Stripe billing portal.");alert(t),console.error("[Stripe Portal] Request failed:",{status:e.status,errorMessage:t})}catch(t){alert("Stripe billing portal request failed: ".concat(t.message)),console.error("[Stripe Portal] Network failure:",t)}},children:"Manage Subscription"})}),"email not verified"!==t.response&&"subscribed"!==t.response&&"no subscription"!==t.response&&(0,f.jsx)("div",{className:"pricing-form",children:(0,f.jsx)(d.A,{fullWidth:!0,variant:"contained",color:"primary",size:"large",onClick:async()=>{window.location.assign("/start")},children:"Free Trial"})})]})]})]})]}),(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"200px",padding:"20px",justifyContent:"center"},children:[(0,f.jsxs)("div",{className:"home-chat-modal",children:[(0,f.jsx)("h3",{children:"Contact Support"}),(0,f.jsx)("br",{}),"Let us know your question, and we will get back to you.",(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),(0,f.jsx)(o.A,{label:"Message",multiline:!0,rows:4,placeholder:"Let us know your problem",value:a,onChange:e=>{c(e.target.value)}}),(0,f.jsx)("div",{className:"pricing-form",children:(0,f.jsx)(d.A,{fullWidth:!0,color:"primary",variant:"contained",size:"large",onClick:()=>{window.dataLayer.push({event:"support_submitted"}),fetch("/api/account/support",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:a})}).then((()=>{c(""),alert("submit success!")})).catch((()=>{alert("Submit failed. Please try again or email us")}))},children:"Submit"})})]}),!("subscribed"===t.response&&"pulse_free"!==t.subscription)&&(0,f.jsx)(k,{})]})]})]})};function w(){const e=(0,a.Zp)(),t=new URLSearchParams(window.location.search).get("checkout"),r="success"===t?"Returned from Stripe Checkout. If your subscription does not update within a few seconds, check webhook delivery and the configured webhook signing secret.":"cancelled"===t?"Stripe Checkout was cancelled. No subscription changes were made.":"",[i,s]=(0,n.use
1State)(!1),[o,c]=(0,n.useState)({response:"not_subscribed",subscription:null,valid_till:null}),[h,p]=(0,n.useState)({response:"no stripe customerId"});window.document.title="fAlpha.ai | Subscription";return(0,n.useEffect)((()=>{fetch("/api/account/subscription",{}).then((e=>e.ok?e.json():403===e.status||401===e.status?e.json().catch((()=>({response:"not logged in",subscription:null,valid_till:null}))):{response:"not_subscribed",subscription:null,valid_till:null})).then((e=>{c(e)})).catch((()=>{c({response:"not_subscribed",subscription:null,valid_till:null})})),fetch("/api/account/subscription/stripe",{}).then((e=>e.ok?e.json():(403===e.status||e.status,{response:"no stripe customerId"}))).then((e=>{p(e)})).catch((()=>{p({response:"no stripe customerId"})}))}),[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(x.g0,{forceRedirectIfNoAccount:!1,forceRedirectIfSubscriptionNotActive:!1}),(0,f.jsx)(x.ev,{title:"Account Subscription"}),r&&(0,f.jsx)("div",{style:{margin:"16px auto",maxWidth:"900px",padding:"12px 16px",borderRadius:"8px",backgroundColor:"success"===t?"#e8f5e9":"#fff3e0",color:"#1f2937",border:"1px solid ".concat("success"===t?"#81c784":"#ffb74d")},children:r}),(0,f.jsx)("h2",{children:"Leverage cutting-edge AI risk management engine for trading, crafted by seasoned risk managers for elite traders. "}),(0,f.jsx)("h2",{children:"Gain the advanced signals you need to mitigate risks, identify opportunities, and excel in this data-driven industry."}),(0,f.jsx)(S,{subscription:o,stripeCustomer:h,handleOpenModal:e=>{e.preventDefault(),s(!0)}}),(0,f.jsxs)("div",{style:{textAlign:"center",margin:"20px 0",padding:"20px"},children:[(0,f.jsx)(l.A,{variant:"h6",style:{marginBottom:"10px"},children:"Don't have a subscription yet?"}),(0,f.jsx)(l.A,{variant:"body1",style:{marginBottom:"20px",color:"#666"},children:"Explore our platform or contact us for a demo"}),(0,f.jsxs)(u.A,{direction:"row",spacing:2,justifyContent:"center",children:[(0,f.jsx)(d.A,{variant:"outlined",onClick:()=>e("/"),style:{minWidth:"150px"},children:"Continue to Home"}),(0,f.jsx)(d.A,{variant:"contained",color:"primary",onClick:()=>e("/contact"),style:{minWidth:"150px"},children:"Request Demo"})]})]}),(0,f.jsx)(x.r8,{})]})}}}]);

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.