PageSourceSearch

https://www.privco.com/_next/static/chunks/8811-83fcd86545621050.js

js privco.com collected 2026-10-01 08:41:30 UTC 40,896 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8811],{10674:(e,s,t)=>{t.r(s),t.d(s,{default:()=>i});var a=t(95155),r=t(12115),n=t(76604),l=t(15098);let i=e=>{let{children:s,delay:t=0}=e,i=(0,r.useRef)(null),o=(0,n.W)(i,{once:!0,margin:"0px 0px -130px 0px"});return(0,a.jsx)(l.P.div,{ref:i,initial:{opacity:0,y:5},animate:{opacity:+!!o,y:5*!o},transition:{opacity:{duration:.3,delay:t},y:{duration:.2,delay:t}},children:s})}},30285:(e,s,t)=>{t.d(s,{$:()=>c});var a=t(95155),r=t(12115),n=t(99708),l=t(74466),i=t(59434);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-green-500 text-white shadow hover:bg-green-600",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-blue-600 text-white shadow-sm hover:bg-blue-700",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-6 py-6",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:t,variant:r,size:l,asChild:c=!1,...d}=e,u=c?n.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(o({variant:r,size:l,className:t})),ref:s,...d})});c.displayName="Button"},46998:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(57383),r=t(49641).Buffer;let n=()=>{let e=a.A.get("payload");if(!e)throw Error("Payload has no cookie");return JSON.parse(r.from(e,"base64").toString())}},54165:(e,s,t)=>{t.d(s,{Cf:()=>u,L3:()=>p,c7:()=>m,lG:()=>o});var a=t(95155),r=t(12115),n=t(45821),l=t(54416),i=t(59434);let o=n.bL;n.l9;let c=n.ZL;n.bm;let d=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hJ,{ref:s,className:(0,i.cn)("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r})});d.displayName=n.hJ.displayName;let u=r.forwardRef((e,s)=>{let{className:t,children:r,...o}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(d,{}),(0,a.jsxs)(n.UC,{ref:s,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[r,(0,a.jsxs)(n.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-white",id:"modal-close"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=n.UC.displayName;let m=e=>{let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...t})};m.displayName="DialogHeader";let p=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.hE,{ref:s,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",t),...r})});p.displayName=n.hE.displayName,r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.VY,{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",t),...r})}).displayName=n.VY.displayName},56314:(e,s,t)=>{t.d(s,{L:()=>er});var a=t(95155),r=t(54165),n=t(59434),l=t(12115
1),i=t(91744),o=t(60515),c=t(76573),d=t(6874),u=t.n(d),m=t(35695),p=t(62461),x=t(32919),h=t(28883),f=t(13052),g=t(62177),b=t(56671),v=t(37129),y=t(30285),j=t(62523),w=t(85057);let N=(0,t(74466).F)("",{variants:{weight:{extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semiBold:"font-semibold",bold:"font-bold",black:"font-black",extraBold:"font-extrabold"},size:{"2xs":"text-[10px] sm:text-xs",xs:"text-xs sm:text-sm",sm:"text-sm sm:text-base",md:"text-base sm:text-lg",lg:"text-lg sm:text-xl",xl:"text-xl sm:text-2xl","2xl":"text-2xl sm:text-3xl","3xl":"text-3xl sm:text-4xl","4xl":"text-4xl sm:text-5xl","5xl":"text-5xl sm:text-6xl"}}});function k(e){let{children:s,italic:t,center:r,underline:i,render:o,variant:c,monospace:d,sans:u,as:m="span",className:p,...x}=e,[h,f]=(0,l.useMemo)(()=>{let e=null!=c?c:Object.keys(x).find(e=>{let[,s]=e;return!!s});return e?e.split("-"):["medium","md"]},[x,c]);return(null!=o?o:e=>e)((0,a.jsx)(m,{className:(0,n.cn)(N({weight:h,size:f}),{italic:t,underline:i,"text-center":r,"font-mono":d,'font-[ui-sans-serif,_system-ui,_sans-serif,_"Apple_Color_Emoji",_"Segoe_UI_Emoji",_"Segoe_UI_Symbol",_"Noto_Color_Emoji"]':u||!d},p),children:s}))}let S=e=>{let{resend:s,backToSignIn:t}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-5 justify-center text-center p-10",children:[(0,a.jsx)("div",{className:"self-center p-4 rounded-full bg-green-100",children:(0,a.jsx)(h.A,{className:"text-green-600",size:30})}),(0,a.jsx)("h3",{className:"text-2xl text-black",children:"Check your email"}),(0,a.jsx)("p",{className:"text-gray-700 text-sm",children:"We've sent a password reset link to your email address. Please check your inbox and follow the instructions to reset your password."}),(0,a.jsxs)("p",{className:"text-gray-600 text-sm",children:["Didn't receive the email? Check your spam folder or",(0,a.jsx)(y.$,{variant:"link",onClick:()=>s(!1),className:"px-1",children:"try again"})]}),(0,a.jsx)(y.$,{onClick:t,className:"py-6",children:"Back to Sign In"})]})},P=e=>{var s,t;let{onBack:r}=e,[n,i]=(0,l.useState)(""),[d,N]=(0,l.useState)(!1),P=v.Ik().shape({username:v.Yj().email("Please enter a valid email").required("Email is required")}),C=(0,o.A)(),A=(0,m.useRouter)(),{handleSubmit:E,register:L,formState:{isSubmitting:_,errors:R}}=(0,g.mN)({resolver:(0,p.t)(P)}),I=async e=>{i("");try{await (0,c.bE)("/system/user/password-reset",e),N(!0)}catch(e){var s;b.oR.error((null==e||null==(s=e.info)?void 0:s.message)||"There was an error")}};return(0,l.useEffect)(()=>{C.isLoggedIn&&A.push("/account")},[C,A]),(0,a.jsx)("div",{className:"bg-background overflow-hidden rounded-lg",children:d?(0,a.jsx)(S,{resend:N,backToSignIn:r}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-gradient-to-br from-slate-800 to-slate-900 text-white p-6 rounded-t-lg",children:[(0,a.jsxs)(k,{"light-xl":!0,as:"p",className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(x.A,{size:32})," Reset Password"]}),(0,a.jsx)(k,{"light-xs":!0,as:"p",className:"text-white/80",children:"Enter your email and we'll send you a link to reset your password."})]}),(0,a.jsxs)("form",{onSubmit:E(I),className:"p-8 flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(w.J,{htmlFor:"username",className:"text-sm font-medium text-black",children:"Work Email"}),(0,a.jsxs)("div",{className:"flex items-center border border-input rounded-md px-3 ",children:[(0,a.jsx)(h.A,{className:"text-gray-400"}),(0,a.jsx)(j.p,{type:"text",...L("username"),className:"h-12 border-none focus-visible:ring-0 focus-visible:ring-offset-0 text-black",placeholder:"[email protected]"})]}),(null==R||null==(s=R.username)?void 0:s.message)&&(0,a.jsx)("p",{className:"text-red-500 text-xs mt-1",children:null==R||null==(t=R.username)?void 0:t.message})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-2",children:[(0,a.jsxs)(y.$,{disabled:_,type:"submit","data-cy":"submit-forgot-password-form",className:"w-full h-12 flex items-center justify-center gap-2",children:[_?"Sending...":"Send Reset Link"," ",(0,a.jsx)(f.A,{size:20})]}),(0,a.jsxs)("p",{className:"text-center text-sm text-gray-500",children:["Remember your password?"," ",(0,a.jsx)(y.$,{variant:"link",onClick:r,className:"text-blue-600 cursor-pointer hover:underline px-0",children:"Sign In"})]})]}),n&&(0,a.jsxs)("div",{className:"mt-4 p-4 bg-red-50 border border-red-100 rounded-lg",children:[(0,a.jsx)("p",{className:"text-red-600 text-sm font-medium mb-1",children:"Oops! Looks like there was a problem"}),(0,a.jsxs)("p",{className:"text-red-500 text-xs",children:["If you are having trouble, please email"," ",(0,a.jsx)(u(),{href:"mailto:[email protected]",className:"font-semibold underline",children:"[email protected]"})]})]})]})]})})};
1var C=t(91151);function A(e){let{plan:s,onSuccess:t}=e;return(0,a.jsxs)("div",{className:"p-8 text-center bg-white",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center h-16 w-16 bg-green-100 rounded-full mb-4",children:(0,a.jsx)("svg",{className:"h-8 w-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,a.jsx)(r.L3,{className:"text-2xl text-gray-900 mb-2",children:"free"===s?"Account Created Successfully":"Payment Successful"}),(0,a.jsxs)("p",{className:"text-gray-600 mb-6",children:["Welcome to PrivCo ",C.N[s].name,"."]}),(0,a.jsx)("button",{className:"w-full bg-blue-600 hover:bg-blue-700 text-white py-3 rounded-lg transition-colors",onClick:t,children:"Close"})]})}var E=t(99708);let L=g.Op,_=l.createContext(null),R=l.createContext(null),I=e=>{let{...s}=e;return(0,a.jsx)(R.Provider,{value:{name:s.name},children:(0,a.jsx)(g.xI,{...s})})},T=()=>{let e=l.useContext(R),s=l.useContext(_),{getFieldState:t,formState:a}=(0,g.xW)();if(!e)throw Error("useFormField should be used within <FormField>");if(!s)throw Error("useFormField should be used within <FormItem>");let r=t(e.name,a),{id:n}=s;return{id:n,name:e.name,formItemId:"".concat(n,"-form-item"),formDescriptionId:"".concat(n,"-form-item-description"),formMessageId:"".concat(n,"-form-item-message"),...r}},F=l.forwardRef((e,s)=>{let{className:t,...r}=e,i=l.useId();return(0,a.jsx)(_.Provider,{value:{id:i},children:(0,a.jsx)("div",{ref:s,className:(0,n.cn)("space-y-2",t),...r})})});F.displayName="FormItem";let O=l.forwardRef((e,s)=>{let{className:t,...r}=e,{error:l,formItemId:i}=T();return(0,a.jsx)(w.J,{ref:s,className:(0,n.cn)(l&&"text-destructive",t),htmlFor:i,...r})});O.displayName="FormLabel";let U=l.forwardRef((e,s)=>{let{...t}=e,{error:r,formItemId:n,formDescriptionId:l,formMessageId:i}=T();return(0,a.jsx)(E.DX,{ref:s,id:n,"aria-describedby":r?"".concat(l," ").concat(i):"".concat(l),"aria-invalid":!!r,...t})});U.displayName="FormControl";let M=l.forwardRef((e,s)=>{let{className:t,...r}=e,{formDescriptionId:l}=T();return(0,a.jsx)("p",{ref:s,id:l,className:(0,n.cn)("text-sm text-muted-foreground",t),...r})});M.displayName="FormDescription";let z=l.forwardRef((e,s)=>{var t;let{className:r,children:l,...i}=e,{error:o,formMessageId:c}=T(),d=o?String(null!=(t=null==o?void 0:o.message)?t:""):l;return d?(0,a.jsx)("p",{ref:s,id:c,className:(0,n.cn)("text-sm font-medium text-destructive",r),...i,children:d}):null});z.displayName="FormMessage";let B=e=>{let{control:s,label:t,name:r,labelProps:n,formDescription:l,...i}=e;return(0,a.jsx)(I,{control:s,name:r,render:e=>{var s;let{field:r}=e;return(0,a.jsxs)(F,{children:[t&&(0,a.jsx)(O,{...n,children:t}),(0,a.jsx)(U,{children:(0,a.jsx)(j.p,{...i,...r,value:String(null!=(s=r.value)?s:"")})}),l&&(0,a.jsx)(M,{children:l}),(0,a.jsx)(z,{})]})}})};var D=t(51154),q=t(66766);let G=()=>{let{logUserInWithDirectAccess:e}=(0,o.A)(),[s,t]=(0,l.useState)(!1),r=async()=>{t(!0);let s=await e();if(t(!1),s)if(/(\/company\/)|(\/watchlists)/.test(window.location.pathname))window.location.reload();else{var a;a="https://system.privco.com",window.location.href=void 0!==a?a:"/"}};return(0,a.jsxs)(y.$,{className:"w-full bg-blue-500 hover:bg-blue-600",onClick:r,disabled:s,size:"lg",children:[(0,a.jsx)("span",{children:"Direct Access"}),s&&(0,a.jsx)(D.A,{className:"h-5 w-5 mb-[2px] animate-spin"})]})},Y=e=>{let{onSuccess:s,onRegister:t,onForgotPassword:i,allowDirectAccess:c,allowSubsidiaryUsers:d}=e,[u,m]=(0,l.useState)(!1),x=v.Ik().shape({email:v.Yj().email("Please enter a valid email").required("Email is required"),password:v.Yj().required("Password is required").min(6,"Too Short!")}),h=(0,g.mN)({resolver:(0,p.t)(x)}),{logUserIn:j}=(0,o.A)(),w=async e=>{m(!0);try{await j(e)&&s()}catch(e){b.oR.error("An unexpected error occurred. Please try again.")}finally{m(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-gradient-to-br from-slate-800 to-slate-900 px-8 py-6 flex gap-3",children:[(0,a.jsx)(q.default,{src:"/icons/favicon-194x194.png",alt:"PrivCo Logo",height:"40",width:"40",className:"h-10 w-10"}),(0,a.jsx)(r.L3,{children:(0,a.jsx)(k,{"normal-2xl":!0,as:"p",children:"Sign In"})})]}),(0,a.jsx)("div",{className:"space-y-4 bg-background text-foreground p-6",children:(0,a.jsxs)(L,{...h,children:[(0,a.jsxs)("form",{className:"space-y-4",onSubmit:h.handleSubmit(w),children:[(!c||d)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(B,{control:h.control,name:"email",label:"Email Address",placeholder:"Enter Your Email Address",className:"h-12",autoComplete:"email"}),(0,a.jsx)(B,{control:h.control,name:"password",label:"Password",placeholder:"Password",type:"password",className:"h-12",autoComplete:"current-password"}),(0,a.jsx)(y.$,{variant:"link",className:"self-end p-0",onClick:i,type:"button",children:"Forgot password?"}),(0,a.jsxs)(y.$,{className:"!mt-4 w-full gap-1",size:"lg",disabled:u,children:[(0,a.jsx)("span",{children:"Sign In"}),u?(0,a.jsx)(D.A,{className:"h-5 w-5 mb-[2px] animate-spin"}):(0,a.jsx)(f.A,{className:"h-5 w-5 mb-[2px]"})]})]}),c&&(0,a.jsx)(G,{})]}
1),!(c&&!d)&&(0,a.jsxs)(k,{as:"p","light-sm":!0,center:!0,children:["Don't have an account?"," ",d?(0,a.jsx)("a",{className:(0,n.cn)("text-blue-600 hover:underline",{"pointer-events-none":u}),href:"/academic-signup",children:"Create Individual Academic Account"}):(0,a.jsx)("button",{className:"text-blue-600 hover:underline",onClick:t,type:"button",disabled:u,children:"Create free account"})]})]})})]})};var V=t(30242);let $=e=>{let{onSuccess:s,onSignIn:t,plan:n,onStep:i}=e,[d,u]=(0,l.useState)(!1),{executeRecaptcha:m}=(0,V._Y)(),x=v.Ik().shape({email:v.Yj().email("Please enter a valid email").required("Email is required"),password:v.Yj().required("Password is required").min(8,"Too Short!").matches(/[A-Z]/,"Password must contain at least one uppercase letter").matches(/[a-z]/,"Password must contain at least one lowercase letter").matches(/[0-9]/,"Password must contain at least one number").matches(/[^A-Za-z0-9]/,"Password must contain at least one special character")}),{logUserIn:h}=(0,o.A)(),j=(0,g.mN)({resolver:(0,p.t)(x)}),w=async e=>{u(!0);try{if(!m){b.oR.error("Security verification not ready. Please try again."),u(!1);return}let t=await m("submit"),a=await (0,c.bE)("/api/recaptcha",{token:t});if(!(null==a?void 0:a.success)){b.oR.error("Security verification failed. Please try again."),u(!1);return}if(await (0,c.bE)("/system/ai/free-signup",{firstName:"User",lastName:(Math.floor(9e5*Math.random())+99999).toString(),username:e.email,password:e.password,signupReason:"free sign up"}),b.oR.success("Account created successfully"),!await h(e))return;s()}catch(e){var t;(null==e||null==(t=e.info)?void 0:t.message)?"SERVER_MAINTENANCE"===e.info.message?b.oR.error("Our servers are currently undergoing maintenance, please try again later"):b.oR.error(e.info.message):b.oR.error("An error occurred")}finally{u(!1)}};return(0,a.jsxs)(a.Fragment,{children:["free"===n?(0,a.jsxs)("div",{className:"bg-gradient-to-br from-slate-800 to-slate-900 px-8 py-6 flex gap-3",children:[(0,a.jsx)(q.default,{src:"/icons/favicon-194x194.png",alt:"PrivCo Logo",height:"40",width:"40",className:"h-10 w-10"}),(0,a.jsxs)(r.L3,{children:[(0,a.jsx)(k,{"normal-2xl":!0,as:"p",children:"Create Your Account"}),(0,a.jsx)(k,{"normal-sm":!0,as:"p",children:"Join thousands of professionals using PrivCo"})]})]}):(0,a.jsxs)("div",{className:"bg-background p-8",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-8",children:[(0,a.jsx)(q.default,{src:"/favicon.ico",alt:"Privco Logo",width:30,height:30}),(0,a.jsx)("p",{className:"text-black text-lg",children:"PrivCo"})]}),(0,a.jsx)(r.L3,{asChild:!0,className:"text-2xl",children:(0,a.jsxs)("h2",{className:"text-gray-900 mb-3 font-normal",children:["Unlock ",C.N[n].name," Access"]})}),(0,a.jsx)("p",{className:"text-gray-600 text-sm",children:"Perfect for specific company reports"})]}),(0,a.jsxs)("div",{className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-8 text-center relative",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-full",children:[(0,a.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),(0,a.jsxs)("span",{className:"text-sm",children:[C.N[n].name," Plan"]})]}),(0,a.jsxs)("div",{className:"flex items-baseline justify-center gap-2 mb-2",children:[(0,a.jsxs)("span",{className:"text-5xl text-gray-900",children:["$",C.N[n].price]}),(0,a.jsx)("span",{className:"text-gray-600",children:"/month"})]})]})]}),(0,a.jsx)("div",{className:"space-y-4 bg-background text-foreground p-6",children:(0,a.jsxs)(L,{...j,children:[(0,a.jsxs)("form",{className:"space-y-4",onSubmit:j.handleSubmit(w),children:[(0,a.jsx)(B,{control:j.control,name:"email",label:"Email Address",placeholder:"Enter Your Email Address",className:"h-12",autoComplete:"email"}),(0,a.jsx)(B,{control:j.control,name:"password",label:"Password",placeholder:"Password",type:"password",className:"h-12",autoComplete:"new-password"}),(0,a.jsx)("div",{className:"text-xs opacity-70",children:"Password requirements:"}),(0,a.jsxs)("dl",{className:"text-xs opacity-70 ml-4",children:[(0,a.jsx)("li",{children:"At least 8 characters"}),(0,a.jsx)("li",{children:"One uppercase letter"}),(0,a.jsx)("li",{children:"One lowercase letter"}),(0,a.jsx)("li",{children:"One number"}),(0,a.jsx)("li",{children:"One special character"})]}),(0,a.jsxs)(y.$,{className:"!mt-6 w-full gap-1",size:"lg",disabled:d,children:[(0,a.jsx)("span",{children:"Create Account"}),d?(0,a.jsx)(D.A,{className:"h-5 w-5 mb-[2px] animate-spin"}):(0,a.jsx)(f.A,{className:"h-5 w-5 mb-[2px]"})]})]}),(0,a.jsxs)(k,{as:"p","light-xs":!0,center:!0,className:"!mt-6",children:["By continuing, you agree to the latest"," ",(0,a.jsx)("a",{href:"https://www.privco.com/terms-of-use",className:"text-blue-600 hover:underline",target:"_blank",rel:"noreferrer",children:"Terms of Use"})," ","and"," ",(0,a.jsx)("a",{href:"https://www.privco.com/privacy-policy",className:"text-blue-600 hover:underline",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]}),(0,a.jsxs)(k,{as:"p","light-sm":!0,center:!0,children:["Already have an account?"," ",(0,a.jsx)("button",{className:"text-blue-600 hover:underline",onClick:t,type:"button",disabled:d,children:"Sign in"})]})]})})]})};var J=t(53926),W=t(7368);function H(e){let{setIsCardValid:s}=e,[t,r]=(0,l.useState)(!1),[i,o]=(0,l.useState)("This field is required"),[c,d]=(0,l.useState)(!1),[u,m]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{c&&!i?s(!0):s(!1)},[i,c]),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:(0,n.cn)("text-gray-700 mb-1 text-[15px] cursor-default",{hidden:!t}),htmlFor:"card-element",children:"Card Details"}),(0,a.jsx)(J.hA,{className:(0,n.cn)("w-full px-4 py-2.5 border border-gray-300 rounded-lg [&:is(.StripeElement--focus)]:outline-none [&:is(.StripeElement--focus)]:ring-2 [&:is(.StripeElement--focus)]:ring-blue-500 focus:border-transparent transition-all h-11 cursor-text",{hidden:!t,"ring-2 ring-[#df1b41] border-transparent":i&&c&&!u}),id:"card-element",onReady:()=>r(!0),onChange:e=>{let{error:s,complete:t}=e;s?o(s.message):t?o(""):o("This field is required"),d(!0)},onFocus:()=>m(!0),onBlur:()=>
1m(!1),options:{style:{base:{fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif",fontSize:"16px"}},hidePostalCode:!0}}),c&&!u&&(0,a.jsx)("p",{className:"text-[#df1b41] text-[15px] mt-1",children:i})]}),(0,a.jsx)(J.H1,{options:{mode:"billing",display:{name:"split"}}})]})}let Z=Math.floor(20);function K(e){let{onCancel:s,isCardValid:t,plan:r,onSuccess:i}=e,[d,m]=(0,l.useState)(!1),[p,x]=(0,l.useState)(!1),h=(0,J.t2)(),f=(0,J.HH)(),{refetchUser:g}=(0,o.A)(),v=async e=>{let{clientSecret:s}=await (0,c.bE)("/system/ai/setup-intent",{description:"Upgrade to ".concat(r," plan")});if(s){let{setupIntent:t,error:a}=await h.confirmCardSetup(s,{payment_method:e});if(null==a?void 0:a.message)throw Error(a.message);if((null==t?void 0:t.status)!=="succeeded")throw Error("Payment failed")}},y=async e=>{let{clientSecret:s}=await (0,c.bE)("/system/ai/stripe-subscription",{priceId:C.N[r].id,paymentMethod:e});if(s){let{paymentIntent:t,error:a}=await h.confirmCardPayment(s,{save_payment_method:!0,payment_method:e});if(null==a?void 0:a.message)throw Error(a.message);if((null==t?void 0:t.status)!=="succeeded")throw Error("Payment failed")}},j=async()=>{if(f&&h){x(!0);try{let{error:e}=await f.submit();if(e)return;let{error:s,paymentMethod:t}=await h.createPaymentMethod({type:"card",card:f.getElement(J.hA)});if(s)return void b.oR.error(s.message,{duration:1e4});await v(t.id),await y(t.id);let a=Z;do{a-=1;let e=await g().catch(()=>null);if(e&&"free"!==e.userAccessGroup&&"ai-free"!==e.userAccessGroup){i();break}0===a&&(b.oR.info("Payment might take time to reflect. Please contact support if any issue arises with your account.",{duration:2e3}),setTimeout(()=>{i()},1e3)),await (0,c.cb)(1500)}while(a)}catch(s){var e;(null==s?void 0:s.message)?b.oR.error(s.message,{duration:1e4}):(null==s||null==(e=s.info)?void 0:e.message)?b.oR.error(s.info.message,{duration:1e4}):b.oR.error("There was an issue processing your credit card",{duration:1e4})}finally{x(!1)}}};return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 pt-2",children:[(0,a.jsx)("input",{type:"checkbox",id:"terms",className:"h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-2 focus:ring-blue-500",required:!0,onChange:e=>{m(e.target.checked)},checked:d}),(0,a.jsxs)("label",{htmlFor:"terms",className:"text-sm text-gray-700",children:["I agree to the"," ",(0,a.jsx)(u(),{href:"/terms-of-use",className:"text-blue-600 hover:text-blue-700 hover:underline",target:"_blank",children:"Terms of Use"})," ","and"," ",(0,a.jsx)(u(),{href:"/privacy-policy",className:"text-blue-600 hover:text-blue-700 hover:underline",target:"_blank",children:"Privacy Policy"})]})]}),(0,a.jsxs)("button",{onClick:j,className:(0,n.cn)("w-full bg-blue-600 hover:bg-blue-700 text-white py-3.5 rounded-lg transition-colors flex justify-center items-center gap-4",{"pointer-events-none opacity-50":!t||!d||p}),type:"button",disabled:!t||!d||p,children:["Complete Payment ",p&&(0,a.jsx)(D.A,{className:"animate-spin"})]}),(0,a.jsx)("p",{className:"text-sm text-center text-gray-600",children:(0,a.jsx)("button",{onClick:s,className:"text-gray-600 hover:text-gray-900 hover:underline",type:"button",children:"Cancel"})})]})}let X=(0,W.c)("pk_live_KqOuiZTCYY7AxrcMe8GJYlhP00mSOpa6Eg");function Q(e){let{onCancel:s,plan:t,onSuccess:r}=e,[n,i]=(0,l.useState)(!1);return(0,a.jsx)(J.S8,{stripe:X,options:{appearance:{variables:{borderRadius:"8px",colorPrimary:"#3b82f6"},rules:{".Input:focus":{border:"1px solid #0000",boxShadow:"0 0 0 0px #fff, 0 0 0 2px #3b82f6"}}}},children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(H,{setIsCardValid:i}),(0,a.jsx)(K,{onCancel:s,onSuccess:r,isCardValid:n,plan:t})]})})}let ee=e=>{var s,t,r,o,d,m,p,x,h;let{onSuccess:f}=e,[g,v]=(0,l.useState)(!1),{data:y}=(0,i.Ay)("/system/user/manage-subscription",c.GO),j=async()=>{v(!0);try{await (0,c.yJ)("/system/ai/upgrade-basic-to-pro"),f()}catch(e){v(!1),b.oR.error("Something went wrong. If this keeps happening, please email [email protected] and we will respond as quickly as possible.")}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-gray-50 rounded-lg p-4 text-foreground mb-6",children:[(0,a.jsx)("p",{className:"text-foreground mb-2",children:"Payment Method"}),(null==y?void 0:y.card)===null?(0,a.jsx)("p",{className:"text-muted-foreground",children:"No payment method on file"}):(0,a.jsxs)("div",{className:"flex gap-4 items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,a.jsx)("div",{className:"bg-blue-600 px-4 py-2 rounded text-white font-bold uppercase tracking-wider text-xs",children:null==y||null==(s=y.card)?void 0:s.brand}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{children:[null==y||null==(o=y.card)||null==(r=o.brand)||null==(t=r.charAt(0))?void 0:t.toUpperCase(),null==y||null==(m
1=y.card)||null==(d=m.brand)?void 0:d.slice(1)," ending in"," ",(0,a.jsx)("span",{className:"font-semibold",children:null==y||null==(p=y.card)?void 0:p.last4})]}),(0,a.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Expires ",null==y||null==(x=y.card)?void 0:x.exp_month,"/",null==y||null==(h=y.card)?void 0:h.exp_year]})]})]}),(0,a.jsx)(u(),{href:"/account?tab=billing",children:(0,a.jsx)("button",{type:"button",className:"border border-orange-600 px-4 py-1 rounded text-orange-600 text-xs",children:"Update"})})]})]}),(0,a.jsxs)("button",{onClick:j,className:(0,n.cn)("w-full bg-blue-600 hover:bg-blue-700 text-white py-3.5 rounded-lg transition-colors flex justify-center items-center gap-4",{"pointer-events-none opacity-50":g}),type:"button",disabled:g,children:["Confirm Payment ",g&&(0,a.jsx)(D.A,{className:"animate-spin"})]})]})},es=e=>{let{className:s,plan:t,onCancel:l,onSuccess:i}=e,{access:c,isLoggedIn:d}=(0,o.A)(),u=d&&(null==c?void 0:c.group)==="ai-basic"&&"pro"===t;return(0,a.jsxs)("div",{className:(0,n.cn)("p-8 bg-background rounded-xl shadow-2xl w-full max-h-[90vh] overflow-y-auto scrollbar-thin !pr-8",s),children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-6",children:[(0,a.jsx)("img",{src:"/icons/favicon-194x194.png",alt:"PrivCo",className:"h-8 w-8"}),(0,a.jsx)("span",{className:"text-xl tracking-tight text-gray-900",children:"PrivCo"})]}),(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center h-12 w-12 bg-blue-100 rounded-full mb-4",children:(0,a.jsx)("svg",{className:"h-6 w-6 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})})}),(0,a.jsx)(r.L3,{className:"text-2xl text-gray-900 mb-2 font-normal",children:"Payment Details"}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Enter your details to complete your subscription to unlock company data"})]}),(0,a.jsxs)("div",{className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-full mb-3",children:[(0,a.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),(0,a.jsxs)("span",{className:"text-sm",children:[C.N[t].name," Plan"]})]}),(0,a.jsxs)("div",{className:"flex items-baseline justify-center gap-2 mb-2",children:[(0,a.jsxs)("span",{className:"text-4xl text-gray-900",children:["$",C.N[t].price]}),(0,a.jsx)("span",{className:"text-gray-600",children:"/month"})]}),(0,a.jsx)("p",{className:"text-sm text-green-600 font-medium",children:"Cancel Anytime!"})]}),u?(0,a.jsx)(ee,{onSuccess:i}):(0,a.jsx)(Q,{onCancel:l,onSuccess:i,plan:t})]})},et=e=>{var s,t;let{plan:r,setOnStep:n}=e,{isLoggedIn:l}=(0,o.A)();return(0,a.jsxs)("div",{className:"bg-background p-8",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-full mb-4",children:[(0,a.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),(0,a.jsxs)("span",{className:"text-sm",children:[r[0].toUpperCase(),r.slice(1)," Plan"]})]}),(0,a.jsxs)("h2",{className:"text-3xl text-gray-900 mb-3",children:["Unlock"," ",{free:"Free",pro:"Premium"}[r]," ","Access"]}),(0,a.jsx)("p",{className:"text-gray-600",children:"Get full access to financial data, valuations, and exclusive insights"})]}),(0,a.jsxs)("div",{className:"bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-8 mb-8 text-center",children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-center gap-2 mb-2",children:[(0,a.jsx)("span",{className:"text-5xl text-gray-900",children:{free:"$".concat(C.N.free.price),pro:"$".concat(C.N.pro.price)}[r]}),(0,a.jsx)("span",{className:"text-gray-600",children:"/month"})]}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"free"===r&&"Free forever"})]}),(0,a.jsx)("div",{className:"space-y-4 mb-8",children:null==(t=C.N[r])||null==(s=t.perks)?void 0:s.map(e=>{let[s,t]=e;return(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"h-6 w-6 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,a.jsx)("svg",{className:"h-4 w-4 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-gray-900 mb-1",children:s}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:t})]})]},s)})}),(0,a.jsx)("div",{className:"space-y-3",children:(0,a.jsx)("button",{onClick:()=>n(l?"payment":"emailPassword"),className:"w-full bg-blue-600 hover:bg-blue-700 text-white py-3.5 rounded-lg transition-colors",type:"button",children:l?"Next":"Join Now"})}),"free"===r?(0,a.jsx)("p",{className:"text-xs text-center text-gray-500 mt-6",children:"No credit card required • Cancel anytime"}):(0,a.jsx)("p",{className:"text-xs text-center text-gray-500 mt-6",children:"Full refund within 7 days • Secure payment • Cancel anytime"})]})};var ea=t(49509);"production"===ea.env.APP_ENV||ea.env.APP_ENV;let er=e=>{var s;let{inline:t,onSignIn:d,plan:p,children:x,isOnSignIn:h,defaultStep:f,isDirectAccessRegister:g,...b}=e,[v,y]=(0,l.useState)(!1),[j,w]=(0,l.useState)(null!=f?f:p?"plan":"emailPassword"),[N,k]=(0,l.useState)(h),[S,C]=(0,l.useState)(p),E=(0,m.useSearchParams)(),L=(0,m.useRouter)(),_=(0,m.usePathname)();(0,l.useEffect)(()=>{"paymentSuccess"!==j&&"payment"!==j&&C(p)},[p,j]);let R=()=>
1{if(/(\/company\/)|(\/watchlists)/.test(window.location.pathname))window.location.reload();else{var e;e="https://system.privco.com",window.location.href=void 0!==e?e:"/"}},I=(0,l.useRef)(E);I.current=E;let T=(0,l.useRef)(""),F=(0,l.useCallback)(e=>{let s=new URLSearchParams(I.current.toString());e?(p&&s.set("signup_plan",p),N?s.set("signin","true"):s.delete("signin"),s.set("signup_step",j)):(s.delete("signup_step"),s.delete("signup_plan"),s.delete("signin"));let t=s.toString(),a=new URLSearchParams(I.current.toString()).toString();t!==T.current&&t!==a&&(T.current=t,L.replace(t?"".concat(_,"?").concat(t):_,{scroll:!1}))},[_,L,p,N,j]);(0,l.useEffect)(()=>{void 0!==h&&h!==N&&k(h)},[h,N]);let O=(0,l.useRef)(f);(0,l.useEffect)(()=>{f&&f!==O.current&&(O.current=f,w(f))},[f]),(0,l.useEffect)(()=>{var e;(null!=(e=b.open)?e:v)?F(!0):T.current=""},[b.open,v,j,p,N,F]);let{accessChecks:U}=(0,o.A)(),{data:M,isValidating:z}=(0,i.Ay)("".concat("https://production-backend.privco.com".replace(/\/$/,""),"/auth/master-access"),function(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,c.GO)(s[0],s[1],!1)}),B=g&&(null==M?void 0:M.allowSubsidiaryUsers);return x?B?(0,a.jsx)(u(),{className:(0,n.cn)("h-full w-full",{"pointer-events-none":z}),href:"/academic-signup",children:x}):(0,a.jsx)("div",{role:"button",tabIndex:0,className:"contents",onClick:e=>{var s;e.preventDefault(),null==(s=b.onOpenChange)||s.call(b,!0),T.current="",F(!0)},children:x}):(0,a.jsx)(i.BE,{value:{fetcher:c.GO},children:(0,a.jsx)(r.lG,{...b,onOpenChange:e=>{var s;"paymentSuccess"!==j&&(y(e),null==(s=b.onOpenChange)||s.call(b,e),e||(w(null!=f?f:p?"plan":"emailPassword"),F(!1)))},open:null!=(s=b.open)?s:v,children:(0,a.jsx)(V.G3,{reCaptchaKey:"6Lduln4sAAAAACTlVYNGi3Imdt8TeH26mWaik3_v",children:(0,a.jsxs)(r.Cf,{className:(0,n.cn)("p-0 border-0 overflow-hidden bg-transparent text-white gap-0 max-h-[90vh] overflow-y-auto max-w-lg [&>button_svg]:size-5",{"[&>button_svg]:text-foreground":"emailPassword"!==j,"[&>button_svg]:hidden":"paymentSuccess"===j}),children:[(0,a.jsx)(r.L3,{}),"plan"===j?(0,a.jsx)(et,{plan:null!=p?p:"free",setOnStep:w}):"emailPassword"===j?N?(0,a.jsx)(Y,{onSuccess:R,onRegister:()=>k(!1),onForgotPassword:()=>w("forgotPassword"),...null!=U?U:{}}):(0,a.jsx)($,{onSignIn:()=>k(!0),onSuccess:()=>{p&&"free"!==p?w("payment"):w("paymentSuccess")},plan:null!=p?p:"free",onStep:w}):"payment"===j?(0,a.jsx)(es,{onCancel:()=>{y(!1),w(p&&"free"!==p?"plan":"emailPassword")},onSuccess:()=>w("paymentSuccess"),plan:null!=p?p:"pro"}):"paymentSuccess"===j?(0,a.jsx)(A,{plan:null!=S?S:"free",onSuccess:R}):"forgotPassword"===j?(0,a.jsx)(P,{onBack:()=>w("emailPassword")}):null]})})})})}},59434:(e,s,t)=>{t.d(s,{cn:()=>n});var a=t(52596),r=t(39688);function n(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,r.QP)((0,a.$)(s))}},60515:(e,s,t)=>{t.d(s,{A:()=>o});var a=t(56671);let r={NOT_ACTIVE:"Your account is inactive, please contact [email protected] for details.",TURNED_OFF:"Access from your IP address has been blocked. Please contact [email protected] for details.",GRADUATED:"This account has expired. Please contact your librarian for further details.",PENDING:"This account has not been confirmed yet. Please check your email to confirm your account. If this error persists, contact [email protected]",MASTER_INACTIVE:"This account's subscription is inactive. Please contact [email protected].",BASIC_GROUP_404:"This account's subscription is inactive. Please contact [email protected].",INACTIVE_SUB:"The account's subscription is inactive. Please contact [email protected].",STRIPE_CUSTOMER_404:"The account's subscription is inactive. Please contact [email protected].",MASTER_SUB_404:"This account does not appear to be attached to an institution. Please contact [email protected].",SUB_TYPE_PLACEHOLDER_404:"This account has a legacy subscription. Please contact [email protected].",MASTER_END_CONFLICT:"This account has a conflict. Please contact [email protected].",INVALID_LOGIN:"There was a problem signing you in. Please contact [email protected]."};var n=t(76573),l=t(46998),i=t(80796);let o=()=>{let{user:e,updateUser:s}=(0,i.A)(),t=async e=>
1{var t,i,o,c,d;try{let a=await (0,n.bE)("/api/login",{...e,host:null!=(o=null==(i=window)||null==(t=i.location)?void 0:t.hostname)?o:""});return s({isLoggedIn:!0,loading:!1,details:{id:a.id,username:a.username,intercom:a.intercom,directAccess:(0,l.A)().data.directAccess},access:{group:a.userAccessGroup,sessionObjective:a.userHasSessionObjective,permissions:a.userPermissions}}),!0}catch(s){let e=null==(c=s.info)?void 0:c.message;return a.oR.error(null!=(d=r[e])?d:"There was an issue processing your request, please try again."),!1}},o=async()=>{try{let e=await (0,n.GO)("/system/auth/direct-access-login",{credentials:"include"});return s({isLoggedIn:!0,access:{group:e.userAccessGroup,sessionObjective:e.userHasSessionObjective,permissions:e.userPermissions}}),!0}catch(e){return a.oR.error("Something went wrong. If this keeps happening, please email [email protected] and we will respond as quickly as possible."),!1}},c=async()=>(0,n.GO)("/system/user/details",{},!0).then(e=>(s({details:e}),e));return{...e,logUserIn:t,logUserInWithDirectAccess:o,refetchUser:c}}},62523:(e,s,t)=>{t.d(s,{p:()=>l});var a=t(95155),r=t(12115),n=t(59434);let l=r.forwardRef((e,s)=>{let{className:t,type:r,...l}=e;return(0,a.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:s,...l})});l.displayName="Input"},76573:(e,s,t)=>{t.d(s,{GO:()=>d,bE:()=>u,cb:()=>p,yJ:()=>m});var a=t(57383),r=t(80796),n=t(49509);let l=()=>"production"===n.env.APP_ENV&&"www.privco.com"===window.location.hostname,i=()=>l()?"https://".concat("www.privco.com"):"",o=async e=>{var s;let t=null==(s=e.headers.get("Content-Type"))?void 0:s.toLowerCase();return t&&/application\/[a-z+]*json/.test(t)?e.json():t&&/text\/plain*/.test(t)?e.text():e};class c extends Error{constructor(e,s={}){super(e),this.name="FetcherError",this.info=s}}let d=async function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=await fetch(t?"".concat(i()).concat(e):e,s),{clearUser:l}=r.g.getState();if(!n.ok){let e=new c("An error occurred while fetching the data.");try{var d;e.info=await n.json();let s=null==(d=e.info)?void 0:d.message;s=null==s?void 0:s.toLocaleLowerCase(),("user missing"===s||"expired token"===s)&&(l(),a.A.remove("payload"),localStorage.removeItem("userPermissions"))}catch(s){e.info={}}throw e.status=n.status,e}return await o(n)},u=async function(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await d(e,{...t,method:"POST",headers:{"Content-Type":"application/json",...null==t?void 0:t.headers},...s&&{body:JSON.stringify(s)}})},m=async function(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await d(e,{...t,method:"PUT",headers:{"Content-Type":"application/json",...null==t?void 0:t.headers},...s&&{body:JSON.stringify(s)}})},p=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return new Promise(s=>{setTimeout(()=>{s(!0)},e)})}},80796:(e,s,t)=>{t.d(s,{A:()=>i,g:()=>l});var a=t(12421),r=t(12771);let n={loading:!0,isLoggedIn:!1,details:{},access:void 0,accessChecks:void 0,accessChecksLoading:!0,signOut:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";localStorage.removeItem("userPermissions");let s="/api/logout?".concat(new URLSearchParams({location:e}).toString());document.location.href=s}},l=(0,a.y)(e=>({user:n,updateUser:s=>{e(e=>({user:{...e.user,...s}}))},clearUser:()=>{e(()=>({user:{...n,loading:!1}}))}})),i=function(e,s){return(0,r.n)(l,e,s)}},85057:(e,s,t)=>{t.d(s,{J:()=>c});var a=t(95155),r=t(12115),n=t(72797),l=t(74466),i=t(59434);let o=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.b,{ref:s,className:(0,i.cn)(o(),t),...r})});c.displayName=n.b.displayName},91151:(e,s,t)=>{t.d(s,{N:()=>a});let a={free:{name:"Free",price:0,perks:[["AI Search","Stay updated on companies you're tracking with limited alerts"]],id:""},pro:{name:"List Builder",price:199,perks:[["PrivCo AI Search","Search our database of over 2 million company profiles"],["Unlimited Company Profiles","Access detailed company profiles without limits"],["Key executives contact data","Access key executives contact information"],["PrivCo AI List Builder","Create and manage unlimited watchlists with real-time alerts"],["Export up to 1,000 Companies","Download company data with all available data points"],["Dedicated Account Support",""],["Access to Data Team for custom requests",""]],id:"price_1TVwPRAPjUstmj4iDCZoRXWu"}}}}]);

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.