PageSourceSearch

https://www.customerlift.ai/_next/static/chunks/pages/auth/login-4b08a3e4d4924090.js

js customerlift.ai collected 2026-10-05 15:31:18 UTC 4,828 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[344],{9698:function(e,t,s){"use strict";var l,n=s(7294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({width:"1em",height:"1em",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{d:"M1 0h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1Zm17 4.238-7.928 7.1L2 4.216V16h16V4.238ZM2.511 2l7.55 6.662L17.502 2H2.512Z",fill:"#000"})))}},4391:function(e,t,s){"use strict";var l,n=s(7294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",r({width:"1em",height:"1em",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=n.createElement("path",{d:"m8.758 8.828 7.85-7.849 1.413 1.414-1.414 1.415 2.474 2.474-1.414 1.415-2.475-2.475-1.414 1.414L15.9 8.757l-1.414 1.415-2.12-2.122-2.193 2.192A5.002 5.002 0 1 1 1 13.25a5 5 0 0 1 7.758-4.422Zm-.637 6.293a3 3 0 1 0-4.24-4.241 3 3 0 0 0 4.241 4.242v-.001Z",fill:"#000"})))}},163:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return s(8733)}])},8733:function(e,t,s){"use strict";s.r(t);var l=s(5893),n=s(7294),r=s(4871),a=s(4761),i=s(9698),o=s(4391),c=s(9669),d=s.n(c),u=s(9580),m=s(1664),g=s.n(m),h=s(4202),p=s(9008),x=s.n(p),v=s(5811);t.default=()=>{let[e,t]=(0,n.useState)(""),[s,c]=(0,n.useState)(""),[m,p]=(0,n.useState)(!1),[f,w]=(0,n.useState)(""),j=async e=>{e.preventDefault(),p(!0),t(""),c(""),w("");let s=!1,l=e.currentTarget.email.value,n=e.currentTarget.password.value;if(l||(t("Please enter your email address"),s=!0),n||(c("Please enter your password"),s=!0),s){p(!1);return}try{await (0,h.z)();let e=await d().post(u.z0+"/api/auth/login",{email:l,password:n},{withCredentials:!0});console.log(e),window.location.assign("/select-audience"),p(!1)}catch(e){if(console.log(e),(0,v.I)(e)){var r,a,i,o,m,g,x,f,j;if(null===(a=e.response)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.errors){console.log(null===(m=e.response)||void 0===m?void 0:m.data);let s=null===(x=e.response)||void 0===x?void 0:null===(g=x.data)||void 0===g?void 0:g.errors;(null==s?void 0:s.email)&&t(null==s?void 0:s.email[0]),(null==s?void 0:s.password)&&c(null==s?void 0:s.password[0])}else(null===(o=e.response)||void 0===o?void 0:null===(i=o.data)||void 0===i?void 0:i.message)?w(null===(j=e.response)||void 0===j?void 0:null===(f=j.data)||void 0===f?void 0:f.message):w(e.message)}p(!1)}};return(0,l.jsxs)("div",{className:"container flex flex-col lg:flex-row justify-center lg:justify-around grow items-center",children:[(0,l.jsx)(x(),{children:(0,l.jsx)("title",{children:"Login | CustomerLift"})}),(0,l.jsx)("div",{className:"mb-14 lg:mt-0 lg:mb-40 flex flex-col items-center lg:block",style:{maxWidth:510},children:(0,l.jsx)("h1",{className:"text-[32px] text-center lg:text-start lg:leading-[110%] lg:text-[88px] font-bold",children:"Log In With Email & Password"})}),(0,l.jsxs)("div",{className:"flex flex-col items-center lg:block w-full max-w-sm lg:w-80 lg:mb-40",children:[(0,l.jsx)("p",{className:"p-large text-center lg:text-start mt-5 lg:mt-8 mb-5 lg:mb-6",children:"Enter your Email and Password below."}),(0,l.jsxs)("form",{className:"w-full",onSubmit:j,children:[(0,l.jsx)(a.Z,{extraClasses:"lg:w-96 mb-6",Svg:i.Z,inputType:"text",label:"EMAIL",placeholder:"[email protected]",inputName:"email",errorMsg:e}),(0,l.jsx)(a.Z,{extraClasses:"lg:w-96 mb-10",Svg:o.Z,inputType:"password",label:"PASSWORD",inputName:"password",errorMsg:s}),(0,l.jsx)("div",{className:"text-center lg:text-start",children:(0,l.jsx)(r.Z,{type:"submit",size:"sm",isLoading:m,children:"Log In"})}),f&&(0,l.jsx)("p",{className:"text-red-500 text-center lg:text-left mt-8",children:f})]}),(0,l.jsxs)("p",{className:"text-sm mt-14 text-center lg:text-start",children:["Registered your account with Shopify?"," ",(0,l.jsx)(g(),{href:"/auth/shopify-login",legacyBehavior:!0,children:(0,l.jsx)("span",{className:"underline cursor-pointer",children:"Login with Shopify"})}),"."]}),(0,l.jsxs)("p",{className:"text-sm mt-6 text-center lg:text-start",children:["Forgot your password?"," ",(0,l.jsx)(g(),{href:"/auth/forgot-password",legacyBehavior:!0,children:(0,l.jsx)("span",{className:"underline cursor-pointer",children:"Reset password"})}),"."]})]})]})}},9008:function(e,t,s){e.exports=s(7828)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=163)}),_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.