PageSourceSearch

https://auth.lusha.com/_next/static/chunks/pages/community-login-3d115e7a575ff446.js

js lusha.com collected 2026-09-24 08:38:43 UTC 6,662 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3679],{25393:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(21498),a=n(8146),o=n(84989),i=n.n(o),s=n(21462),c=n(87499),u=n(57482),l=n(25409),d=n(96480),p=n(58997),m=n(25731),h=n(94953),f=n(58422),g=n(55787),v=n(39989),b=n(44454),A=n(80205),O=n(37467),x=n(11959),I=n(23798);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let S=function(){var e,t=(0,s.useState)(""),n=t[0],o=t[1],S=(0,s.useContext)(c.BR),w=(0,d.Nq)("COMMUNITY_LOGIN_PAGE"),y=(0,u.useRouter)(),R=(0,A.A)().setItem;(0,s.useEffect)(function(){var e=y.query.machineId;R("loginSource",v.A.COMMUNITY),R("machineId",void 0===e?null:e)},[]);var _=(e=(0,a.A)(i().mark(function e(t){var n;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={eventType:b.A.USER_LOGIN,loginSource:v.A.COMMUNITY,email:t.email,machineId:t.machineId},e.next=3,g.oW.sendUserLoginEvent(n,{isAnonymous:!0,user:t});case 3:S.cleanup();case 4:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)});return(0,I.jsx)(l.A,{title:w.PAGE_TITLE,header:w.PRIMARY_TEXT,children:(0,I.jsxs)("span",{children:[n&&(0,I.jsx)(p.A,{variant:"smallR",color:"kindaRed",dataTestId:m.A.ERROR,children:n}),(0,I.jsx)(f.A,{onSuccess:_,onFailure:function(e,t){var n={eventType:b.A.USER_LOGIN,loginSource:v.A.COMMUNITY,email:t.email};if(t.machineId&&(n.machineId=t.machineId),g.oW.sendUserLoginEvent(n,{isAnonymous:!0,user:t,error:e}),403===e.code&&e.data&&w.ERRORS[e.data.name])return void o(w.ERRORS[e.data.name]);if(401!==e.code){O.vF.error("".concat(x.X,": ").concat(e.message),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)),y.push("/oops");return}o(w.ERRORS.INVALID_LOGIN)},performLogin:g.y1.communityLogin}),(0,I.jsx)(h.A,{displayLushaTerms:!1})]})})}},58422:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(8146),a=n(84989),o=n.n(a),i=n(21462),s=n(37467),c=n(11543),u=n(25731),l=n(57840),d=n(57482),p=n(96480),m=n(22351),h=n.n(m),f=n(24750),g=h()(f.A).withConfig({componentId:"sc-1e9snqs-0"})(["> span{margin-bottom:16px;&:last-of-type{margin-bottom:8px;}}& > *:not(:nth-last-child(-n + 2)){margin-bottom:16px;}& > *:nth-child(2){margin-bottom:8px;}*:nth-child(4){margin-bottom:unset;}& Button{background-color:rgb(111,69,255);&:not([disabled]):hover{background-color:rgb(93,59,217)}&:not([disabled]):active{background-color:rgb(76,49,178);}height:24px;padding:8px 12px;}"]),v=n(10342),b=n(95151);let A=function(e){var t={},n=e.email,r=e.password;t.email=v.t.isEmpty(n)?b.A.EMPTY_EMAIL:void 0,t.email||(t.email=v.t.isEmail(n)?void 0:b.A.INVALID_EMAIL),t.password=v.t.isEmpty(r)?b.A.INVALID_PASSWORD:void 0;var a={};return Object.keys(t).forEach(function(e){t[e]&&(a[e]=t[e])}),Object.keys(a).length?a:void 0};var O=n(51943),x=n.n(O),I=n(96058);n(32669);var E=n(27621),S=n(23798),w=h()(I.EY).withConfig({componentId:"sc-ake2ay-0"})(["a,a:hover,a:active,a:visited,a:link{line-height:21px;font-weight:400;color:rgba(0,102,255,1);text-decoration:none;cursor:pointer;margin-top:",";}"],function(e){return e.marginTop?"".concat(e.marginTop,"px"):void 0});let y=function(){var e=(0,c.A)("LOGIN_PAGE");return(0,S.jsx)(E.A,{position:"flex-end",children:(0,S.jsx)(w,{variant:"smallM",color:"royalBlue",children:(0,S.jsx)(x(),{href:"/forgot-password",children:e.FORGOT_PASSWORD})})})};var R=n(29829),_=h()(I.A_).withConfig({componentId:"sc-14sqscp-0"})({height:"36px",padding:"0px 12px",border:"1px solid rgba(23, 23, 23, 0.2)",outline:"none",boxShadow:"none","&:hover":{border:"1px solid rgba(23, 23, 23, 0.5)",boxShadow:"none"},"&:focus-within":{border:"1px solid rgb(111, 69, 255)",boxShadow:"none"},"& span, & span > input":{height:"100%"}});let j=function(e){var t,n,a=e.onSuccess,m=e.onFailure,h=e.performLogin,f=(0,i.useState)(""),v=f[0],b=f[1],O=(0,i.useState)(""),x=O[0],E=O[1],w=(0,i.useState)(!0),j=w[0],T=w[1],N=(0,i.useState)(!1),P=N[0],L=N[1],k=(0,c.A)("LOGIN_PAGE"),D=(0,i.useRef)(),G=(0,d.useRouter)(),M=(0,p.PC)().setItem;(0,i.useEffect)(function(){var e=document.getElementsByName("email")[0];setTimeout(function(){try{e.matches(":-internal-autofill-selected")&&T(!1)}catch(e){}},500)},[]);var C=(t=(0,r.A)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h(t);case 3:if(!(null!=(n=e.sent)&&n.is2FaRequired)){e.next=8;break}return M("regData",{email:t.email}),G.push("/confirm?login=true"),e.abrupt("return");case 8:(0,R.n)(n),a(t),e.next=17;break;case 12:e.prev=12,e.t0=e.catch(0),401!==e.t0.code&&s.vF.error(e.t0.message,{err:e.t0,email:null==t?void 0:t.email}),T(!0),m(e.t0,t);case 17:case"end":return e.stop()}},e,null,[[0,12]])})),function(e){return t.apply(this,arguments)}),F=(n=(0,r.A)(o().mark(function e(t){var n,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),L(!0),e.next=4,new Promise(function(e){setTimeout(e,1e3)});case 4:return e.next=6,D.current();case 6:return n={email:x,password:v,"g-recaptcha-response":e.sent},(r=G.query.machineId)&&(n.machineId=r),e.next=12,C(n);case 12:L(!1);case 13:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)});return(0,S.jsxs)(g,{children:[(0,S.jsx)(_,{placeholder:k.EMAIL,value:x,onChange:function(e){var t,n=null==(t=e.target.value)?void 0:t.trim();T(!!A({email:n,password:v})),E(n)},size:"large",name:"email","aria-label":k.EMAIL,"data-test-id":u.A.WORK_EMAIL,autoFocus:!0,clearable:!1}),(0,S.jsx)(_,{placeholder:k.PASSWORD,type:"password",name:"password",value:v,onCh
1ange:function(e){T(!!A({email:x,password:e.target.value})),b(e.target.value)},size:"large","aria-label":k.PASSWORD,"data-test-id":u.A.PASSWORD,clearable:!1}),(0,S.jsx)(y,{"data-test-id":u.A.FORGOT_PASSWORD_LINK,"aria-label":k.FORGOT_PASSWORD}),(0,S.jsx)(I.$n,{size:"large","data-test-id":u.A.LOGIN_BUTTON,variant:"purple",onClick:F,loading:P,"aria-label":k.GET_STARTED,type:"submit",disabled:!!j,children:k.SIGN_IN},"submit-".concat(P)),(0,S.jsx)(l.A,{getExecuteFunc:function(e){D.current=e}})]})}},92801:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/community-login",function(){return n(25393)}])}},e=>{e.O(0,[4844,8124,8172,636,6593,8792],()=>e(e.s=92801)),_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.