1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9344],{36407:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return s(83430)}])},87149:function(e,t,s){"use strict";s.d(t,{I:function(){return l}});var a=s(85893),r=s(67294),i=s(68425);let l=r.forwardRef((e,t)=>{let{className:s,type:r,...l}=e;return(0,a.jsx)("input",{type:r,className:(0,i.Z)("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",s),ref:t,...l})});l.displayName="Input"},83430:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return C}});var a=s(85893),r=s(46284),i=s(89520),l=s(87149),o=s(46020),n=s(76838),c=s(7452),d=s(68425),u=s(45168),m=s(21066),h=s(46945),p=s(85368),x=s(25675),f=s.n(x),g=s(41664),b=s.n(g),w=s(11163),y=s(67294),v=s(86501),N=s(62331),j=s(82215);function k(e){let{className:t,...s}=e,r=(0,n.TL)();(0,w.useRouter)();let[x,g]=(0,y.useState)(""),[k,C]=(0,y.useState)(""),[Z,E]=(0,y.useState)(!1),[z,D]=(0,y.useState)(!1),[_,L]=(0,y.useState)(!1),[S,I]=(0,y.useState)(!1),{isUserLoggedIn:O}=(0,n.CG)(e=>e.auth),{isSignupInProgress:P}=(0,n.CG)(e=>e.basicUI),{redirectLoggedInUser:G}=(0,j.Z)({signupType:j.F.NORMAL_SIGNUP});(0,y.useEffect)(()=>{(async()=>{O&&!P&&(console.log("Homepage guard triggered - redirecting logged-in user"),await G())})()},[O,P]),(0,y.useEffect)(()=>{let e=()=>{L(!1),D(!1)};return window.addEventListener("brandedEmailError",e),()=>{window.removeEventListener("brandedEmailError",e)}},[]);let M=async()=>
1{try{L(!0),await (0,c.Cb)()}catch(t){var e;console.error("Google login error:",t),(null==t?void 0:null===(e=t.message)||void 0===e?void 0:e.includes("work email"))&&v.ZP.error(t.message)}finally{L(!1)}},T=async e=>{if(e.preventDefault(),!x||!k||""===x||""===k){v.ZP.error("Please enter your email and password");return}D(!0);try{await r((0,o.tv)(x,k,D))}catch(e){console.log("Login failed:",e,"error status",e.code)}};return(0,a.jsxs)("div",{className:(0,d.Z)("flex flex-col w-full max-w-[508px] mt-[150px] px-2.5 mx-auto",t),...s,children:[(0,a.jsx)(b(),{href:"/",className:"mb-6",children:(0,a.jsx)(N.Z,{width:28,height:28,className:"!text-2xl !gap-2.5"})}),(0,a.jsx)("h2",{className:"text-2xl font-medium",children:"Welcome back to Octo"}),(0,a.jsx)("p",{className:"text-sm font-medium",children:"Scale your marketing with winning insights you never had before."}),(0,a.jsxs)(i.z,{onClick:M,disabled:_||z,className:"!h-[38px] mt-4 !rounded-6 w-full !text-sm !font-semibold !border-none !bg-[#19263E] !text-white hover:scale-[1.02] transition-transform",children:[(0,a.jsx)(f(),{src:"/assets/images/socials/google-icon.svg",alt:"Google Icon",width:20,height:20}),"Continue with Google",_&&(0,a.jsx)(u.Z,{className:"h-5 w-5 animate-spin text-white"})]}),(0,a.jsxs)(i.z,{variant:"outline",onClick:()=>I(!0),className:"!h-[38px] mt-4 !rounded-6 w-full !text-sm !font-semibold !text-zappit-black hover:scale-[1.02] transition-transform !border-[#DCDCDC]",children:[(0,a.jsx)(m.Z,{className:"h-5 w-5 -ml-5 mr-1"}),"Log in with email"]}),S&&(0,a.jsx)("form",{onSubmit:T,className:"mt-6",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)("div",{className:"grid gap-2",children:(0,a.jsx)(l.I,{id:"email",type:"email",placeholder:"Email",required:!0,className:"!border-[#DCDCDC] focus:!border-busyocto-deep placeholder:text-zappit-black/50 placeholder:!font-medium !text-zappit-black bg-white !h-[38px] !rounded-8 !pl-5",value:x,onChange:e=>g(e.target.value)})}),(0,a.jsx)("div",{className:"grid gap-2",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(l.I,{id:"password",type:Z?"text":"password",placeholder:"Password",required:!0,className:"!border-[#DCDCDC] focus:!border-busyocto-deep placeholder:text-zappit-black/50 placeholder:font-medium !text-zappit-black bg-white !h-[38px] !rounded-8 !pl-5",value:k,onChange:e=>C(e.target.value)}),(0,a.jsx)("button",{type:"button",className:"absolute right-5 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",onClick:()=>E(!Z),children:Z?(0,a.jsx)(h.Z,{className:"h-5 w-5"}):(0,a.jsx)(p.Z,{className:"h-5 w-5"})})]}),(0,a.jsx)(b(),{href:"/auth/forgot-password",className:"text-xs font-medium text-[#4C4D57]/80 hover:underline ml-auto",children:"Forgot password?"})]})}),(0,a.jsxs)(i.z,{type:"submit",variant:"outline",className:"bg-zappit-yellow hover:!bg-zappit-yellow/80 w-full !h-[38px] !text-zappit-black disabled:text-zappit-black !text-sm !font-semibold !border-none disabled:!bg-opacity-60",disabled:z||_,children:[z?"Logging in...":"Log in to Octo",z&&(0,a.jsx)(u.Z,{className:(0,d.Z)("h-5 w-5 animate-spin","text-zappit-black")})]})]})}),(0,a.jsxs)("div",{className:"text-[#676C79] text-xs text-center font-medium mt-10",children:["Don't have an account?"," ",(0,a.jsx)(b(),{href:"/auth/signup",className:"text-[#4C4D57] font-semibold underline cursor-pointer",children:"Sign up here"})]})]})}function C(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{title:"Login | busyocto",description:"Login to your Zappit account to access your dashboard."}),(0,a.jsxs)("div",{className:"h-screen w-screen p-1.5 grid lg:grid-cols-2 bg-white",children:[(0,a.jsx)(k,{}),(0,a.jsx)("div",{className:"bg-[#17171B] rounded-6 w-full h-full relative overflow-hidden hidden lg:flex",children:(0,a.jsx)(f(),{src:"/assets/images/octo-art.png",alt:"Octo Art",fill:!0,className:"object-cover"})})]})]})}},46945:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(51473).Z)("EyeOff",[["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"}]])},85368:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(51473).Z)("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"}]])},21066:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(51473).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=36407)}),_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.