PageSourceSearch

https://velaflow.com/_next/static/chunks/pages/login-37da88e3f4090cec.js

js velaflow.com collected 2026-09-24 13:02:37 UTC 5,081 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{3645:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(37876);t(14232);var l=t(96145);let a=()=>(0,r.jsx)("div",{className:"w-full md:w-1/2 flex items-center justify-center bg-loginBackground md:min-h-screen",children:(0,r.jsx)("div",{className:"z-10 flex flex-col items-center p-4",children:(0,r.jsx)(l.Zc,{src:"/images/logo.png",alt:"Velaflow Logo",className:"h-[120px] w-[120px] md:h-[215px] md:w-[215px] mb-4"})})})},23764:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>h});var r=t(37876),l=t(14232),a=t(80612),i=t(96145),n=t(3645),d=t(53869),o=t(10553),c=t(89099),m=t(91408);let x=m.Ik().shape({email:m.Yj().email("Enter a valid email").required("Email is required"),password:m.Yj().required("Password is required")}),u=()=>{let e=(0,c.useRouter)(),[s,t]=(0,l.useState)(!1),[a,m]=(0,l.useState)(!1),[u,h]=(0,l.useState)({email:"",password:""}),[p,f]=(0,l.useState)(null),g=e=>{let{target:s}=e,{type:t,checked:r,name:l}=s,a="checkbox"===t?r:s.value;h({...u,[l]:a})},j=async s=>{t(!0),s.preventDefault();try{var r;await x.validate(u,{abortEarly:!1}),f({});let s=await (0,o.signIn)("credentials",{redirect:!1,email:w,password:v});if(null==s||null==(r=s.error)?void 0:r.startsWith("TWO_FACTOR_REQUIRED")){let t=s.error.split(":")[1];sessionStorage.setItem("2fa_user_id",t),e.push("/verifyotp?email=".concat(w));return}(null==s?void 0:s.ok)?e.push("/"):(t(!1),f({loginError:null==s?void 0:s.error}))}catch(s){t(!1);let e={};s.inner?s.inner.forEach(s=>{e[s.path]=s.message}):e[s.path]=s.message,f(e)}},{email:w,password:v}=u,N=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{className:"mt-6 md:mt-12 space-y-4",autoComplete:"off",onSubmit:j,children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.pd,{type:"text",placeholder:"Username or email address",name:"email",value:w,onChange:g,autoComplete:"off",className:"w-full pl-10 h-40 px-4 py-3 text-12 text-black border border-grey rounded outline-none focus:ring-2 focus:primary",prefix:(0,r.jsx)("span",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:(0,r.jsx)(i.In,{id:"username-icn",width:16,height:16,className:"inline-block text-grey"})})}),(null==p?void 0:p.email)&&(0,r.jsx)("p",{className:"text-12 text-red",children:p.email})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.pd,{type:a?"text":"password",placeholder:"Password",autoComplete:"new-password",value:v,name:"password",onChange:g,className:"w-full pl-10 pr-10 h-40 px-4 py-3 text-black text-12 border border-grey rounded outline-none focus:ring-2 focus:border-none focus:primary",suffix:(0,r.jsx)("span",{className:"absolute text-center right-4 top-1/2 -translate-y-1/2 cursor-pointer",children:(0,r.jsx)(i.In,{id:a?"eye-cut-icn":"eye-icn",onClick:()=>{m(!a)},width:a?21:20,height:a?18:16,className:"inline-block text-grey"})}),prefix:(0,r.jsx)("span",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:(0,r.jsx)(i.In,{id:"password-icn",width:16,height:16,className:"inline-block text-grey"})})}),(null==p?void 0:p.password)&&(0,r.jsx)("p",{className:"text-12 text-red",children:p.password}),(null==p?void 0:p.loginError)&&(0,r.jsx)("p",{className:"text-12 text-red",children:p.loginError})]}),(0,r.jsx)("div",{className:"flex justify-center md:justify-end align-top",children:(0,r.jsx)(i.N_,{href:"/forgot-password",className:"text-primary md:ml-[30px] text-sm hover:underline",children:"Forgot password?"})}),(0,r.jsx)(i.$n,{type:"submit",disabled:s,className:"w-full h-40 text-14 bg-primary text-white rounded transition",children:s?(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(i.aH,{})}):"Sign in"})]}),(0,r.jsxs)("div",{className:"mt-4 text-sm md:mt-6 text-center justify-center text-grey",children:["New here?"," ",(0,r.jsx)(i.N_,{href:"/signup",className:"text-primary hover:underline",children:"sign up"})]})]});return(0,r.jsx)(d.A,{leftSide:(0,r.jsx)(n.A,{}),rightSide:N,rightSideHeading:"Sign in"})};function h(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{title:"Login"}),(0,r.jsx)(u,{})]})}},53869:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(37876);t(14232);
1var l=t(96145);let a=e=>{let{leftSide:s,rightSide:t,rightSideHeading:a}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"min-h-screen flex flex-col md:flex-row bg-white overflow-x-hidden",children:[s,(0,r.jsx)("div",{className:"w-full md:w-1/2 mt-10 md:mt-0 flex items-center bg-white min-h-[50vh] md:min-h-screen",children:(0,r.jsxs)("div",{className:"w-full max-w-md px-4 md:px-8 md:ml-10",children:[(0,r.jsx)(l.DZ,{type:"h2",text:a,className:"text-3xl md:text-40 text-black font-normal mb-10 md:mb-20"}),t]})})]})})}},60641:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(23764)}])},80612:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(37876),l=t(77328),a=t.n(l);function i(e){let{title:s}=e;return(0,r.jsx)(a(),{children:(0,r.jsx)("title",{children:s?"".concat(s," | Velaflow"):"Velaflow"})})}}},e=>{e.O(0,[1408,636,6593,8792],()=>e(e.s=60641)),_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.