PageSourceSearch

https://app.oneacc.ai/_next/static/chunks/app/(auth)/signup/page-53b8eb528483a977.js

js oneacc.ai collected 2026-10-05 12:23:14 UTC 14,787 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2129],{85468:function(e,t,s){Promise.resolve().then(s.bind(s,819))},819:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return h}});var r=s(57437),a=s(2265),l=s(99376),i=s(27648),n=s(30401),c=s(46221),o=s(15863),d=s(22252),u=s(74577),m=s(81534),x=s(94508);function h(){let e=(0,l.useRouter)(),{register:t,loginWithGoogle:s,registerWithMicrosoft:h}=(0,u.t)(),[p,g]=(0,a.useState)(""),[j,b]=(0,a.useState)(""),[v,w]=(0,a.useState)(""),[y,N]=(0,a.useState)(""),[k,C]=(0,a.useState)(""),[S,P]=(0,a.useState)(!1),[_,Z]=(0,a.useState)(null),[M,A]=(0,a.useState)(""),[L,z]=(0,a.useState)(!1),[I,F]=(0,a.useState)(!1),[q,E]=(0,a.useState)(null),[B,H]=(0,a.useState)(null);(0,a.useEffect)(()=>{m.iJ.getGoogleClientId().then(e=>E(e.clientId)).catch(()=>console.warn("Could not fetch Google Client ID")),m.iJ.getMicrosoftClientId().then(e=>H(e.clientId)).catch(()=>console.warn("Could not fetch Microsoft Client ID"))},[]);let G=async s=>{if(s.preventDefault(),A(""),!p.trim()||!j.trim()){A("Please enter your first and last name");return}if(!v.trim()){A("Please enter your email address");return}if(y!==k){A("Passwords do not match");return}if(y.length<8){A("Password must be at least 8 characters");return}if(!L){A("Please agree to the terms and conditions");return}P(!0);let r=await t({email:v,firstName:p,lastName:j,password:y});if(r.success){let{emailVerificationRequired:t}=u.t.getState();t?F(!0):e.push("/dashboard")}else A(r.error||"Registration failed. Please try again.");P(!1)},D=async()=>{if(!q){A("Google sign-up is not available at the moment");return}Z("google");let e="".concat(window.location.origin,"/auth/google/callback"),t=new URL("https://accounts.google.com/o/oauth2/v2/auth");t.searchParams.set("client_id",q),t.searchParams.set("redirect_uri",e),t.searchParams.set("response_type","code"),t.searchParams.set("scope","email profile openid"),t.searchParams.set("access_type","offline"),t.searchParams.set("prompt","select_account"),sessionStorage.setItem("oauth_redirect_uri",e),sessionStorage.setItem("oauth_action","register"),window.location.href=t.toString()},O=async()=>{if(!B){A("Microsoft sign-up is not available at the moment");return}Z("microsoft");let e="".concat(window.location.origin,"/auth/microsoft/callback"),t=new URL("https://login.microsoftonline.com/common/oauth2/v2.0/authorize");t.searchParams.set("client_id",B),t.searchParams.set("redirect_uri",e),t.searchParams.set("response_type","code"),t.searchParams.set("scope","openid profile email user.read"),t.searchParams.set("response_mode","query"),t.searchParams.set("prompt","select_account"),sessionStorage.setItem("oauth_redirect_uri",e),sessionStorage.setItem("oauth_action","register"),window.location.href=t.toString()},R=function(e){if(!e)return{level:0,text:"",color:"",textColor:""};let t=0;return(e.length>=8&&t++,e.length>=12&&t++,/[A-Z]/.test(e)&&t++,/[0-9]/.test(e)&&t++,/[^A-Za-z0-9]/.test(e)&&t++,t<=1)?{level:1,text:"Weak password",color:"bg-status-overdueLine",textColor:"text-status-overdueLine"}:t<=2?{level:2,text:"Fair password",color:"bg-status-dueLine",textColor:"text-status-dueLine"}:t<=3?{level:3,text:"Good password",color:"bg-navy-500",textColor:"text-navy-500"}:{level:4,text:"Strong password",color:"bg-status-paidLine",textColor:"text-status-paidLine"}}(y);return I?(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center p-8 bg-page",children:(0,r.jsx)("div",{className:"w-full max-w-md",children:(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl p-8 text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-status-paidFill rounded-full flex items-center justify-center mx-auto mb-6",children:(0,r.jsx)(n.Z,{className:"w-8 h-8 text-status-paidLine"})}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-ink dark:text-white mb-4",children:"Check your email"}),(0,r.jsxs)("p",{className:"text-muted mb-6",children:["We've sent a verification link to ",(0,r.jsx)("strong",{children:v}),". Please click the link to verify your email and activate your account."]}),(0,r.jsxs)("p",{className:"text-sm text-muted",children:["Didn't receive the email? Check your spam folder or"," ",(0,r.jsx)("button",{className:"text-primary-600 hover:underline",children:"resend verification email"})]})]})})}):(0,r.jsxs)("div",{className:"min-h-screen flex",children:[(0,r.jsxs)("div",{className:"hidden lg:flex lg:w-1/2 bg-navy-900 p-12 flex-col justify-between",children:[(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"w-12 h-12 bg-white/20 backdrop-blur rounded-xl flex items-center justify-center",children:(0,r.jsx)(c.Z,{className:"w-6 h-6 text-white"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-white",children:"OneAcc"}),(0,r.jsx)("p",{className:"text-sm text-white/70",children:"AI-Powered Accounting"})]})]})}),(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-4xl font-bold text-white leading-tight",children:["Start your free",(0,r.jsx)("br",{}),"14-day trial"]}),(0,r.jsx)("p",{className:"mt-4 text-lg text-white/80",children:"No credit card required. Get started in minutes and see how AI can transform your accounting."})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(f,{text:"Unlimited invoices and quotes"}),(0,r.jsx)(f,{text:"Bank connections and reconciliation"}),(0,r.jsx)(f,{text:"AI-powered insights and categorization"}),(0,r.jsx)(f,{text:"Multi-user access and permissions"}),(0,r.jsx)(f,{text:"Financial reports and dashboards"})]})]}),(0,r.jsx)("div",{className:"text-sm text-white/50",children:"\xa9 2026 OneAcc. All rights reserved."})]}),(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center p-8 bg-page",children:(0,r.jsxs)("div",{className:"w-full max-w-md",children:[(0,r.jsxs)("div",{className:"lg:hidden flex items-center gap-3 mb-8 justify-center",children:[(0,r.jsx)("div",{className:"w-10 h-10 bg-navy-700 rounded-xl flex items-center justify-center",children:(0,r.jsx)(c.Z,{className:"w-5 h-5 text-white"})}),(0,r.jsx)("h1",{className:"text-xl font-bold text-ink dark:text-white",children:"OneAcc"})]}),(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-xl p-8",children:[(0,r.jsxs)("div",{className:"text-center mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-ink dark:text-white",children:"Create your account"}),(0,r.jsx)("p",{className:"text-muted mt-2",children:"Enter your details to get started"})]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-3 mb-6",children:[(0,r.jsxs)("button",{onClick:D,disabled:null!==_||!q,className:"w-full flex items-center justify-center gap-3 px-4 py-3 border border-rule rounded-xl hover:bg-page transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:["google"===_?(0,r.jsx)(o.Z,{className:"w-5 h-5 animate-spin text-muted"}):(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,r.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),(0,r.jsx)("span",{className:"text-ink font-medium",children:"Sign up with Google"})]}),(0,r.jsxs)("button",{onClick:O,disabled:null!==_||!B,className:"w-full flex items-center justify-center gap-3 px-4 py-3 border border-rule rounded-xl hover:bg-page transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:["microsoft"===_?(0,r.jsx)(o.Z,{className:"w-5 h-5 animate-spin text-muted"}):(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 23 23",children:[(0,r.jsx)("path",{fill:"#f35325",d:"M1 1h10v10H1z"}),(0,r.jsx)("path",{fill:"#81bc06",d:"M12 1h10v10H12z"}),(0,r.jsx)("path",{fill:"#05a6f0",d:"M1 12h10v10H1z"}),(0,r.jsx)("path",{fill:"#ffba08",d:"M12 12h10v10H12z"})]}),(0,r.jsx)("span",{className:"text-ink font-medium",children:"Sign up with Microsoft"})]})]}),(0,r.jsxs)("div",{className:"relative mb-6",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,r.jsx)("div",{className:"w-full border-t border-rule"})}),(0,r.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,r.jsx)("span",{className:"px-4 bg-white text-muted",children:"or sign up with email"})})]})]}),(0,r.jsxs)("form",{onSubmit:G,className:"space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-ink mb-1",children:"First name"}),(0,r.jsx)("input",{type:"text",value:p,onChange:e=>g(e.target.value),placeholder:"John",className:"w-full px-4 py-3 border border-rule rounded-xl bg-white text-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",required:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-ink mb-1",children:"Last name"}),(0,r.jsx)("input",{type:"text",value:j,onChange:e=>b(e.target.value),placeholder:"Doe",className:"w-full px-4 py-3 border border-rule rounded-xl bg-white text-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",required:!0})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-ink mb-1",children:"Email address"}
1),(0,r.jsx)("input",{type:"email",value:v,onChange:e=>w(e.target.value),placeholder:"[email protected]",className:"w-full px-4 py-3 border border-rule rounded-xl bg-white text-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",required:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-ink mb-1",children:"Password"}),(0,r.jsx)("input",{type:"password",value:y,onChange:e=>N(e.target.value),placeholder:"••••••••",className:"w-full px-4 py-3 border border-rule rounded-xl bg-white text-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",required:!0}),y&&(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("div",{className:"flex gap-1",children:[1,2,3,4].map(e=>(0,r.jsx)("div",{className:(0,x.cn)("h-1 flex-1 rounded",e<=R.level?R.color:"bg-rule")},e))}),(0,r.jsx)("p",{className:(0,x.cn)("text-xs mt-1",R.textColor),children:R.text})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-ink mb-1",children:"Confirm password"}),(0,r.jsx)("input",{type:"password",value:k,onChange:e=>C(e.target.value),placeholder:"••••••••",className:"w-full px-4 py-3 border border-rule rounded-xl bg-white text-sm focus:ring-2 focus:ring-primary-500 focus:border-transparent",required:!0})]}),(0,r.jsxs)("div",{className:"flex items-start gap-3 pt-2",children:[(0,r.jsx)("input",{type:"checkbox",id:"terms",checked:L,onChange:e=>z(e.target.checked),className:"mt-1 w-4 h-4 rounded border-rule text-primary-600 focus:ring-primary-500"}),(0,r.jsxs)("label",{htmlFor:"terms",className:"text-sm text-muted",children:["I agree to the"," ",(0,r.jsx)("a",{href:"#",className:"text-primary-600 hover:underline",children:"Terms of Service"})," ","and"," ",(0,r.jsx)("a",{href:"#",className:"text-primary-600 hover:underline",children:"Privacy Policy"})]})]}),M&&(0,r.jsxs)("div",{className:"p-3 bg-status-overdueFill border border-status-overdueFill rounded-lg flex items-start gap-2",children:[(0,r.jsx)(d.Z,{className:"w-5 h-5 text-status-overdueLine flex-shrink-0 mt-0.5"}),(0,r.jsx)("p",{className:"text-sm text-status-overdueLine",children:M})]}),(0,r.jsxs)("button",{type:"submit",disabled:S||null!==_,className:"w-full py-3 bg-primary-600 text-white rounded-xl hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed font-medium flex items-center justify-center gap-2 transition-colors",children:[S&&(0,r.jsx)(o.Z,{className:"w-4 h-4 animate-spin"}),S?"Creating account...":"Create account"]})]}),(0,r.jsxs)("p",{className:"mt-6 text-center text-sm text-muted",children:["Already have an account?"," ",(0,r.jsx)(i.default,{href:"/login",className:"text-primary-600 dark:text-primary-400 font-medium hover:underline",children:"Sign in"})]})]})]})})]})}function f(e){let{text:t}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-3 text-white/90",children:[(0,r.jsx)("div",{className:"w-5 h-5 bg-white/20 rounded-full flex items-center justify-center",children:(0,r.jsx)(n.Z,{className:"w-3 h-3"})}),(0,r.jsx)("span",{children:t})]})}},39763:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(2265),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),i=(e,t)=>{let s=(0,r.forwardRef)((s,i)=>{let{color:n="currentColor",size:c=24,strokeWidth:o=2,absoluteStrokeWidth:d,className:u="",children:m,...x}=s;return(0,r.createElement)("svg",{ref:i,...a,width:c,height:c,stroke:n,strokeWidth:d?24*Number(o)/Number(c):o,className:["lucide","lucide-".concat(l(e)),u].join(" "),...x},[...t.map(e=>{let[t,s]=e;return(0,r.createElement)(t,s)}),...Array.isArray(m)?m:[m]])});return s.displayName="".concat(e),s}},22252:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(39763).Z)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},46221:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(39763).Z)("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},30401:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(39763).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},15863:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(39763).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},99376:function(e,t,s){"use strict";s.r(t);var r=s(35475),a={};for(var l in r)"default"!==l&&(a[l]=(function(e){return r[e]}).bind(0,l));s.d(t,a)}},function(e){e.O(0,[6137,5883,7648,1534,6786,4577,2971,2117,1744],function(){return e(e.s=85468)}),_N_E=e.O()}]);

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.