PageSourceSearch

https://www.reasonvoice.ai/_next/static/chunks/app/(auth)/login/pa…?dpl=dpl_8o6VRtDwghvgxLWLMbjnCqKU6AxL

js reasonvoice.ai collected 2026-10-05 16:19:01 UTC 9,882 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{6132:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(71847).A)("circle-alert",[["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"}]])},14423:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>f});var s=a(95155),r=a(12115),i=a(20063),n=a(52619),l=a.n(n),o=a(47886),c=a(65314),u=a(19016),d=a(8125),m=a(6132),h=a(35299),p=a(70532),x=a(57828);function f(){let[e,t]=(0,r.useState)(""),[a,n]=(0,r.useState)(""),[p,x]=(0,r.useState)(!1),[f,b]=(0,r.useState)(""),g=(0,i.useRouter)(),{refreshUser:w}=(0,u.As)(),v=async t=>{t.preventDefault(),x(!0),b("");try{await (0,o.login)({email:e,password:a}),await w(),g.push((0,c.u7)()||(0,c.jP)())}catch(e){if(e?.verificationRequired&&e?.email)return void g.push(`/verify-email?email=${encodeURIComponent(e.email)}&from=login`);b(e instanceof Error?e.message:"Login failed")}finally{x(!1)}};return(0,s.jsxs)("section",{className:"relative w-full",children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-[0.25]",style:{background:"radial-gradient(ellipse 50% 40% at 50% 0%, #FFEFA640 0%, #F0745818 40%, transparent 75%)"}}),(0,s.jsx)("div",{className:"relative mx-auto max-w-md px-6 py-16 md:py-24 w-full",children:(0,s.jsxs)(d.P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.4,ease:"easeOut"},children:[(0,s.jsxs)("div",{className:"mb-8 text-center",children:[(0,s.jsx)("h1",{className:"font-display font-semibold text-4xl md:text-5xl tracking-[-0.02em] text-black leading-[1.05]",children:"Welcome back."}),(0,s.jsx)("p",{className:"mt-3 text-sm text-black/55",children:"Sign in to your ReasonVoice account."})]}),(0,s.jsx)("div",{className:"rounded-2xl border border-black/[0.08] bg-white p-7 shadow-[0_20px_40px_-20px_rgba(10,10,15,0.15)]",children:(0,s.jsxs)("form",{className:"space-y-4",onSubmit:v,children:[(0,s.jsx)(y,{id:"email",label:"Email",type:"email",autoComplete:"email",placeholder:"[email protected]",value:e,onChange:t,disabled:p}),(0,s.jsx)(y,{id:"password",label:"Password",type:"password",revealable:!0,autoComplete:"current-password",placeholder:"••••••••",value:a,onChange:n,disabled:p}),f&&(0,s.jsxs)("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 px-3 py-2.5 text-sm text-red-800",children:[(0,s.jsx)(m.A,{className:"h-4 w-4 mt-0.5 shrink-0"}),(0,s.jsx)("span",{children:f})]}),(0,s.jsxs)("button",{type:"submit",disabled:p||!e||!a,className:"group relative inline-flex w-full items-center justify-center mt-1",children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 rounded-full opacity-50 blur-md transition-opacity duration-300 group-hover:opacity-90",style:{background:"linear-gradient(90deg, #FFEFA6, #F07458, #B0286E)"}}),(0,s.jsx)("span",{className:"relative inline-flex w-full items-center justify-center gap-2 rounded-full bg-[#0A0A0F] px-6 py-3 text-sm font-medium text-white ring-1 ring-white/10 disabled:opacity-60 disabled:cursor-not-allowed",children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.A,{className:"h-4 w-4 animate-spin"}),"Signing in…"]}):"Sign in"})]})]})}),(0,s.jsxs)("p",{className:"mt-6 text-center text-sm text-black/55",children:["New here?"," ",(0,s.jsx)(l(),{href:"/signup",className:"font-medium text-black underline decoration-[#B0286E] underline-offset-4 hover:decoration-2",children:"Create an account"})]})]})})]})}function y({id:e,label:t,type:a,autoComplete:i,placeholder:n,value:l,onChange:o,disabled:c,revealable:u}){let[d,m]=(0,r.useState)(!1);return(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:e,className:"block text-xs font-medium uppercase tracking-[0.08em] text-black/60 mb-1.5",children:t}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{id:e,name:e,type:u&&d?"text":a,autoComplete:i,required:!0,disabled:c,placeholder:n,value:l,onChange:e=>o(e.target.value),className:`w-full rounded-lg border border-black/15 bg-white px-3.5 py-2.5 text-sm text-black placeholder:text-black/55 focus:outline-none focus:ring-2 focus:ring-[#B0286E]/30 focus:border-[#B0286E]/40 transition disabled:opacity-50${u?" pr-10":""}`}),u&&(0,s.jsx)("button",{type:"button",onClick:()=>m(e=>!e),disabled:c,"aria-label":d?"Hide password":"Show password","aria-pressed":d,className:"absolute inset-y-0 right-0 flex items-center px-3 text-black/45 hover:text-black/75 focus:outline-none focus-visible:text-[#B0286E] disabled:opacity-50",children:d?(0,s.jsx)(p.A,{className:"h-4 w-4"}):(0,s.jsx)(x.A,{className:"h-4 w-4"})})]})]})}},19016:(e,t,a)=>{"use strict";a.d(t,{As:()=>u,AuthProvider:()=>c,n5:()=>d});var s=a(95155),r=a(12115),i=a(20063),n=a(47886),l=a(65314);let o=(0,r.createContext)(void 0);function c({children:e}
1){let[t,a]=(0,r.useState)(null),[c,u]=(0,r.useState)(!0),d=(0,i.useRouter)(),m=(0,i.usePathname)(),h=async()=>{try{if((0,n.isAuthenticated)()){let e=await (0,n.getCurrentUser)();a(e)}else a(null)}catch(e){console.error("Failed to refresh user:",e),a(null)}},p=async()=>{try{await (0,n.logout)(),a(null),d.push("/login")}catch(e){console.error("Logout failed:",e),a(null),d.push("/login")}};return(0,r.useEffect)(()=>{(async()=>{u(!0),(0,n.isAuthenticated)()||await (0,n.refreshSession)(),(0,n.isAuthenticated)()?await h():a(null),u(!1)})();let e=(0,n.startSessionKeepAlive)(),t=e=>{"reasonvoice_token"===e.key&&(e.newValue?h():a(null))};return window.addEventListener("storage",t),()=>{e(),window.removeEventListener("storage",t)}},[]),(0,r.useEffect)(()=>{if(!c){if("/sitemap.xml"===m||"/robots.txt"===m||"/llms.txt"===m||"/llms-full.txt"===m||"/manifest.webmanifest"===m||"/favicon.ico"===m||"/opengraph-image"===m||m.startsWith("/.well-known/"))return;let e="/login"===m||"/signup"===m||"/verify-email"===m||"/forgot-password"===m||"/reset-password"===m,a="/"===m||"/voice"===m||"/chat"===m||"/pricing"===m||"/support"===m||"/contact"===m||"/status"===m||"/privacy-policy"===m||"/terms-of-service"===m||"/cookies"===m||"/sms-consent"===m||"/account-deletion"===m||"/health"===m||"/hubspot-dialer"===m||"/salesforce-dialer"===m||"/odoo-dialer"===m||"/zoho-dialer"===m||"/staff-panel"===m||m.startsWith("/docs"),s=!!t;s||e||a?s&&e&&d.push((0,l.u7)()||(0,l.jP)()):d.push((0,l.qA)(m))}},[t,c,m,d]),(0,s.jsx)(o.Provider,{value:{user:t,isLoading:c,isAuthenticated:!!t,logout:p,refreshUser:h},children:e})}function u(){let e=(0,r.useContext)(o);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}function d(){return(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto"}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:"Loading..."})]})})}},20063:(e,t,a)=>{"use strict";var s=a(47260);a.o(s,"useParams")&&a.d(t,{useParams:function(){return s.useParams}}),a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}}),a.o(s,"useSearchParams")&&a.d(t,{useSearchParams:function(){return s.useSearchParams}})},35299:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(71847).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},57828:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(71847).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},65314:(e,t,a)=>{"use strict";function s(){return!function(){let e=window.location.hostname;return"call.reasonvoice.ai"===e||e.startsWith("call.localhost")}()?"/dashboard":"/calls"}function r(){let e=new URLSearchParams(window.location.search).get("next");return!e||!/^\/(?![/\\])/.test(e)||e.includes("\\")?null:e.startsWith("/integrations/odoo/connect")?e:null}function i(e){return e.startsWith("/integrations/odoo/connect")?`/login?next=${encodeURIComponent(e+window.location.search)}`:"/login"}a.d(t,{jP:()=>s,qA:()=>i,u7:()=>r})},70532:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(71847).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},71847:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(12115);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim();var n={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=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:c,...u},d)=>(0,s.createElement)("svg",{ref:d,...n,width:t,height:t,stroke:e,strokeWidth:r?24*Number(a)/Number(t):a,className:i("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let a=(0,s.forwardRef)(({className:a,...n},o)=>(0,s.createElement)(l,{ref:o,iconNode:t,className:i(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...n}));return a.displayName=r(e),a}},85626:(e,t,a)=>{Promise.resolve().then(a.bind(a,14423))}},e=>{e.O(0,[2619,2662,7886,8441,1255,7358],()=>e(e.s=85626)),_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.