PageSourceSearch

https://fauxlens.com/assets/EnterpriseApply-sLuLajr8.js

js fauxlens.com collected 2026-09-24 14:13:51 UTC 9,762 bytes, 15 lines download raw bytes

1import{j as e,m as E}from"./vendor-ui-BUarQsp8.js";import{u as S,z as F,a2 as A,X as C,v as M,e as P,H as I}from"./main-De1oBHKL.js";import{u as T,i as L,r as c,L as v}from"./vendor-react-D3jbwAWe.js";import{u as R}from"./useEnterpriseStore-DtHfZVbk.js";import{e as U}from"./enterpriseApi-C_WcoMj1.js";import{L as O,ao as W,M as q}from"./vendor-icons-DVHa2fiX.js";import"./modulepreload-polyfill-BYZmxRV2.js";import"./vendor-canvas-52AMp930.js";import"./vendor-firebase-COCIGm7r.js";import"./authFetch-D_VtYVRr.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"7d04d4b79c142a391f19439d97572a4c6cde6663"},a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=(function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var l in i)i.hasOwnProperty(l)&&(t[l]=i[l])}return t})({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:fauxlens-web":!0})}catch{}})();const V=["newsroom","trust_safety","insurance","marketplace","research","other"],$=["under_2k","2k_10k","10k_25k","over_25k"],z=["sandbox","starter","pro","scale"],B=/@(mailinator|guerrillamail|tempmail|10minutemail|trashmail|throwaway|yopmail|fakeinbox|maildrop|sharklasers|getairmail|dispostable|mintemail|mytrashmail|spambox|tempinbox|tempr|33mail|spamgourmet|burnermail|moakt|harakirimail|emailondeck|mail7)\./i,H=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function D(a){const t={};a.company_name.trim().length<2&&(t.company_name="Company name is required.");const i=a.contact_email.trim();return H.test(i)?B.test(i)&&(t.contact_email="Please use a real work email - disposable addresses are not accepted."):t.contact_email="Enter a valid email address.",V.includes(a.use_case)||(t.use_case="Pick the closest match."),$.includes(a.expected_volume)||(t.expected_volume="Pick an expected volume."),z.includes(a.tier)||(t.tier="Choose a tier (or Sandbox to start)."),a.notes&&a.notes.length>500&&(t.notes="Please keep notes under 500 characters."),t}const Y=[{value:"newsroom",label:"Newsroom / publisher"},{value:"trust_safety",label:"Trust & safety / moderation"},{value:"insurance",label:"Insurance / claims"},{value:"marketplace",label:"Marketplace / dating / social"},{value:"research",label:"Academic / research"},{value:"other",label:"Something else"}],G=[{value:"under_2k",label:"Under 2,000 scans / month"},{value:"2k_10k",label:"2,000 - 10,000 / month"},{value:"10k_25k",label:"10,000 - 25,000 / month"},{value:"over_25k",label:"Over 25,000 / month"}],K=()=>{const a=T(),[t]=L(),r=S(s=>s.currentUser),{application:i,partner:l,setMe:j}=R(),w=c.useMemo(()=>"sandbox",[t]),[n,x]=c.useState({company_name:"",contact_email:"",use_case:"",expected_volume:"",tier:w,notes:""});c.useEffect(()=>{const s=F("enterprise_apply");s?.draft&&x(m=>({...m,...s.draft}))},[]);const[d,b]=c.useState({}),[f,g]=c.useState(!1),[y,h]=c.useState(null);c.useEffect(()=>{r?.email&&!n.contact_email&&x(s=>({...s,contact_email:r.email??""}))},[r,n.contact_email]),c.useEffect(()=>{l&&a("/enterprise/dashboard",{replace:!0})},[l,a]);const p=(s,m)=>{x(o=>({...o,[s]:m})),b(o=>({...o,[s]:void 0}))},k=async s=>{s.preventDefault(),h(null);const m=D(n);if(Object.keys(m).length>0){b(m);return}g(!0);try{if(!r){await C(M.ENTERPRISE,{action:{kind:"enterprise_apply",draft:{...n}}});return}const o=await U.apply({company_name:n.company_name.trim(),contact_email:n.contact_email.trim(),use_case:n.use_case,expected_volume:n.expected_volume,tier:n.tier,notes:n.notes.trim()||void 0});j(null,o),P("enterprise_apply_submitted",{tier:o.tier,application_status:o.status,was_idempotent:o.status!=="pending",use_case:n.use_case,expected_volume:n.expected_volume}),a("/enterprise/dashboard",{replace:!0});return}catch(o){const N=o.code;h(N==="auth/popup-closed-by-user"?"Sign-in was cancelled. Click submit again to retry.":o.body??o.message??"submit_failed")}finally{g(!1)}};return i?.status==="pending"?(a("/enterprise/dashboard",{replace:!0}),e.jsx(Q,{email:i.contact_email,company:i.company_name})):e.jsxs("div",{className:"max-w-2xl mx-auto px-5 sm:px-8 py-12 sm:py-16",children:[e.jsxs("header",{className:"mb-10",children:[e.jsx("p",{className:"text-[#00E5FF] text-xs font-mono tracking-widest uppercase mb-3",children:"Application"}),e.jsx("h1",{className:"text-3xl sm:text-4xl font-bold tracking-tight",children:"Tell us what you’re building."}),e.jsxs("p",{className:"mt-3 text-white/55 leading-relaxed",children:["We review sandbox applications within 24 hours."," ","Paid tiers are provisioned automatically on first payment."]})]}),e.jsxs("form",{onSubmit:k,className:"rounded-xl border border-white/10 bg-[#0a0a0a] p-6 sm:p-8 space-y-6",children:[e.jsx(u,{label:"Company name",error:d.company_name,children:e.jsx("input",{value:n.company_name,onChange:s=>p("company_name",s.target.value),placeholder:"Acme Newsroom Inc.",autoComplete:"organization",className:"input"})}),e.jsx(u,{label:"Work email",hint:"We’ll send your dashboard sign-in link here.",error:d.contact_email,children:e.jsx("input",{type:"email",value:n.contact_email,onChange:s=>p("contact_email",s.target.value),placeholder:"[email protected]",autoComplete:"email",inputMode:"email",className:"input"})}),e.jsx(u,{label:"What will you use the API for?",error:d.use_case,children:e.jsx(_,{value:n.use_case,onChange:s=>p("use_case",s),options:Y,placeholder:"Pick the closest match"})}),e.jsx(u,{label:"Expected monthly volume",error:d.expected_volume,children:e.jsx(_,{value:n.expected_volume,onChange:s=>p("expected_volume",s),options:G,placeholder:"How many scans per month?"})}),e.jsxs("div",{className:"rounded-md border border-[#00E5FF]/25 bg-[#00E5FF]/[0.04] p-4 text-sm",children:[e.jsx("p",{className:"font-semibold mb-1",children:"You’re applying for a Sandbox."}),e.jsx("p",{className:"text-white/60 text-xs leading-relaxed",children:e.jsxs(e.Fragment,{children:["Looking to start with a paid plan instead?"," ",e.jsx(v,{to:"/enterprise#pricing",className:"text-[#00E5FF] underline",children:"Choose a tier on the pricing page"})," ","- paid checkout is self-serve and provisioned instantly. No form required."]})})]}),e.jsx(u,{label:"Anything we should know? (optional)",error:d.notes,children:e.jsx("textarea",{rows:3,value:n.notes,onChange:s=>p("notes",s.target.value),placeholder:"Use case detail, peak QPS, integration timeline…",className:"input min-h-[80px]"})}),y&&e.jsx("div",{className:"text-sm text-red-400/80 font-mono p-3 rounded border border-red-400/20 bg-red-400/5",children:y}),e.jsx("button",{type:"submit",disabled:f,className:"w-full inline-flex items-center justify-center gap-2 px-6 py-3 rounded-md font-semibold text-black bg-[#00E5FF] hover:bg-white transition-colors disabled:opacity-50 disabled:cursor-wait",children:f?e.jsx(O,{className:"w-4 h-4 animate-spin"}):r?"Submit application":e.jsxs(e.Fragment,{children:[e.jsx(A,{}),"Sign in & submit"]})}),e.jsxs("p",{className:"text-[11px] text-white/40 text-center leading-relaxed",children:["By submitting, you agree to our ",e.jsx("a",{href:"/terms",className:"underline hover:text-white",children:"terms"})," and"," ",e.jsx("a",{href:"/privacy",className:"underline hover:text-white",children:"privacy policy"}),"."]})]}),e.jsx("style",{children:`
2        .input {
3          background: rgba(255,255,255,0.02);
4          border: 1px solid rgba(255,255,255,0.1);
5          color: white;
6          width: 100%;
7          padding: 0.625rem 0.875rem;
8          border-radius: 0.5rem;
9          font-size: 0.875rem;
10          outline: none;
11          transition: border-color 150ms;
12        }
13        .input::placeholder { color: rgba(255,255,255,0.3); }
14        .input:focus { border-color: rgba(0,229,255,0.5); }
15      `})]})},u=({label:a,hint:t,error:r,children:i})=>e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"block text-sm font-medium text-white/80 mb-1.5",children:a}),t&&e.jsx("span",{className:"block text-xs text-white/40 mb-1.5",children:t}),i,r&&e.jsx("span",{className:"block mt-1.5 text-xs text-red-400/80 font-mono",children:r})]}),_=({value:a,onChange:t,options:r,placeholder:i})=>e.jsxs("select",{value:a,onChange:l=>t(l.target.value),className:"input appearance-none",children:[e.jsx("option",{value:"",disabled:!0,className:"bg-[#0a0a0a]",children:i}),r.map(l=>e.jsx("option",{value:l.value,className:"bg-[#0a0a0a]",children:l.label},l.value))]}),Q=({email:a,company:t})=>e.jsxs(E.div,{initial:{opacity:0,y:12}
15,animate:{opacity:1,y:0},className:"max-w-xl mx-auto px-5 sm:px-8 py-20 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full bg-[#00E5FF]/10 mb-6",children:e.jsx(W,{className:"w-7 h-7 text-[#00E5FF]"})}),e.jsx("h1",{className:"text-3xl font-bold tracking-tight mb-3",children:"Application received."}),e.jsxs("p",{className:"text-white/60 leading-relaxed",children:["Thanks",t?`, ${t}`:""," - our team reviews sandbox applications within",e.jsx("span",{className:"text-white",children:" 24 hours"}),". We’ll send your sign-in link to:"]}),e.jsxs("p",{className:"mt-4 inline-flex items-center gap-2 px-4 py-2 rounded-md border border-white/10 bg-white/[0.02] font-mono text-sm",children:[e.jsx(q,{className:"w-4 h-4 text-[#00E5FF]"}),a]}),e.jsxs("p",{className:"mt-8 text-xs text-white/40",children:["In the meantime, you can browse ",e.jsx(v,{to:"/enterprise",className:"text-[#00E5FF] hover:underline",children:"the marketing page"})," for any final questions."]})]}),le=()=>e.jsxs(e.Fragment,{children:[e.jsxs(I,{children:[e.jsx("title",{children:"Apply - Enterprise API - FauxLens"}),e.jsx("meta",{name:"robots",content:"noindex"})]}),e.jsx(K,{})]});export{le as EnterpriseApply};

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.