PageSourceSearch

https://app.ecoreservice.com/_next/static/chunks/pages/auth/otp-resetPin-f58b1afa502d500e.js

js ecoreservice.com collected 2026-10-03 21:01:38 UTC 13,222 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1969],{90278:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/otp-resetPin",function(){return s(47229)}])},84464:function(e,t,s){"use strict";s.d(t,{Z:function(){return AuthFooter}});var i=s(85893),n=s(92655),o=s(96402),r=s(94519),l=s(2734),a=s(61730),d=s(80822),c=s(65582),u=s(23795),m=s(15861),p=s(67294);let x={modalTitle:"License Agreement",background:"",icons:"fi fi-sr-license",iconColor:"#FFC98B"};function AuthFooter(){let[e,t]=(0,p.useState)(!1),s=(0,l.Z)();return(0,a.Z)(s.breakpoints.down("sm")),(0,i.jsxs)(d.Z,{sx:{zIndex:99,position:"relative"},children:[(0,i.jsx)(d.Z,{sx:{bottom:0,p:{xs:"8px 16px",sm:"2px 30px",md:"2px 60px"}},children:(0,i.jsx)(c.Z,{maxWidth:"xl",children:(0,i.jsxs)(d.Z,{children:[(0,i.jsxs)(d.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:{xs:1,sm:2},alignItems:{xs:"flex-start",sm:"center"}},children:[(0,i.jsx)(u.Z,{color:"#F79421",href:"https://ecoreservice.com/privacy-and-policy/",fontWeight:500,target:"_blank",sx:{fontSize:{xs:12,sm:14}},children:"Privacy Policy"}),(0,i.jsx)(u.Z,{color:"#F79421",href:"https://ecoreservice.com/terms-conditions/",fontWeight:500,target:"_blank",sx:{fontSize:{xs:12,sm:14}},children:"Terms of Use"}),(0,i.jsx)(u.Z,{color:"#F79421",href:"#",fontWeight:500,onClick:()=>{t(!0)},sx:{fontSize:{xs:12,sm:14}},children:"Licensing Agreement"})]}),(0,i.jsx)(d.Z,{sx:{ml:0,mt:{xs:1,sm:0}},children:(0,i.jsx)(o.Z,{})})]})})}),(0,i.jsx)(n.Z,{props:{isModalOpen:e,setIsModalOpen:t,ModalProps:x},children:(0,i.jsx)(d.Z,{children:(0,i.jsx)(m.Z,{component:"div",dangerouslySetInnerHTML:{__html:r.w}})})})]})}},34062:function(e,t,s){"use strict";s.d(t,{Z:function(){return GetStarted}});var i=s(85893),n=s(2734),o=s(61730),r=s(86886),l=s(15861),a=s(80822),d=s(69417);let c={landing:{text1:"A PLACE WHERE",text2:"GOOD DATA",text3:"LIVES.",text4:"At eCore, we specialize in delivering carefully curated leads that empower your go-to-market teams. \n    Our approach is tailored to ensure effective prospecting and accelerated growth for your business. \n    Experience the power of targeted, high-quality leads that open doors to new opportunities"}};function GetStarted(e){let{getStarted:t,handleGetStarted:s}=e,u=(0,n.Z)(),m=(0,o.Z)("(max-width:1600px)"),p=(0,o.Z)(u.breakpoints.down("sm")),x=(0,o.Z)(u.breakpoints.down("md"));return(0,i.jsxs)(r.ZP,{item:!0,sx:{textAlign:"start",p:{xs:2,sm:3}},children:[(0,i.jsxs)(l.Z,{sx:{color:"dark"===u.palette.mode?"#FFFFFF":"#2C2C2C",fontSize:{xs:28,sm:40,md:50,lg:65,xl:80},fontWeight:700,lineHeight:{xs:1.1,sm:.9}},noWrap:!p,children:[c.landing.text1," "]}),(0,i.jsxs)(l.Z,{sx:{color:"#F79421",fontSize:{xs:28,sm:40,md:50,lg:65,xl:80},fontWeight:{xs:700,sm:600,md:500,lg:700},lineHeight:{xs:1.3,sm:1.7}},noWrap:!p,children:[c.landing.text2," ",(0,i.jsxs)("span",{style:{color:"dark"===u.palette.mode?"#FFFFFF":"#2C2C2C",marginLeft:1.5},children:[" ",c.landing.text3]})]}),(0,i.jsx)(l.Z,{sx:{color:"dark"===u.palette.mode?"#FFFFFF":"#2C2C2C",fontSize:{xs:14,sm:16,md:18,lg:20},lineHeight:1.6,maxWidth:p?"100%":x?400:m?550:750,mt:{xs:2,sm:0}},children:c.landing.text4}),(0,i.jsx)(a.Z,{sx:{mt:{xs:4,sm:6,md:10}},children:t?"":(0,i.jsx)(d.Z,{variant:"contained",sx:{borderRadius:.5,height:{xs:42,sm:46,md:50},width:{xs:"100%",sm:250,md:300},fontSize:{xs:14,sm:15,md:16}},onClick:s,children:"Get Started"})})]})}},96402:function(e,t,s){"use strict";s.d(t,{Z:function(){return SocialMediaLinks}});var i=s(85893),n=s(61730),o=s(2734),r=s(80822),l=s(25675),a=s.n(l),d=s(41664),c=s.n(d);function SocialMediaLinks(){return(0,n.Z)("(max-width:1366px)"),(0,n.Z)("(max-width:1441px)"),(0,o.Z)(),(0,i.jsx)(r.Z,{sx:{zIndex:10,display:"flex",justifyContent:"center",bottom:0,alignItems:"end",pb:2},children:(0,i.jsx)(c(),{href:"https://www.linkedin.com/company/ecoreservices",target:"_blank",children:(0,i.jsx)(r.Z,{sx:{m:1,cursor:"pointer"},children:(0,i.jsx)(a(),{src:"/static/linkedIn.svg",width:20,height:20,alt:"In"})})})})}},47229:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return otp_resetPin}});var i=s(85893),n=s(2734),o=s(61730),r=s(80822),l=s(86886),a=s(66242),d=s(67294),c=s(94141),u=s(51354),m=s(34062),p=s(37744),x=s(11163),h=s(22619),g=s(41248),f=s(94937),v=s(61435),j=s(32439),Z=s(19933),C=s(55278),F=s(73349),w=s(64348),y=s(15861),k=s(57709),_=s(69417),b=s(98456),S=s(47041),L=s(82175);function TokenForm(e){let t,s,{props:o}=e,l=(0,x.useRouter)(),a=(0,g.I0)(),[u,m]=(0,d.useState)(Array(6).fill("")),p=(0,d.useRef)(Array(6).fill(null)),A=(0,n.Z)(),[I,z]=(0,d.useState)(""),{setIsSubscriptionUpdated:E,setIsLoading:P,isLoading:R}=(0,d.useContext)(h.k),{showToast:O}
1=(0,c.pm)(),[W]=(0,F.useLazySubscriptionPlansQuery)(),[D]=(0,F.useCreateSubscriptionMutation)(),[T]=(0,F.useActivateFreeProfessionalTrialMutation)(),q=(0,S.getCookie)("temp_signup_email"),M=(0,S.getCookie)("sign_up_completion");q&&(t=JSON.parse(q)),M&&(s=JSON.parse(M));let N=(0,S.getCookie)("temp_pass_reset");(0,d.useEffect)(()=>{let e=l.query.redirectTo||"",t=decodeURIComponent(e),s=(0,w.CH)(t);if(!(0,w.v8)(s)){console.warn("Invalid redirectTo parameter detected:",s),z("/saas/overview");return}z(s)},[l.query.redirectTo,z]);let U="",G=localStorage.getItem("free_trial");G&&(U=G);let handleConfirm=async e=>{P(!0),a((0,C.o6)(!0));let i={data:"",error:""};try{let SignUpVerification=async()=>{var e,i,n,o;try{P(!0);let i=(null==t?void 0:t.email)||(null==s?void 0:s.email),n=(null==t?void 0:t.password)||(null==s?void 0:s.password),{userType:o,user:r,error:d,token:c,data:u}=await (0,j.yH)({email:i,password:n}),m=await W().unwrap(),p={userType:o,user:r,userId:u.user.id};if(a((0,f.Gd)(p)),r){let t=u.user.id;if((0,S.setCookie)("_create_",t),c&&v.WS.includes(o)){let s=await (0,j.et)(c,t),i="appexchange"===o?"saas":o;if(s){let t=null==m?void 0:null===(e=m.results)||void 0===e?void 0:e.filter(e=>"community"===e.name.toLowerCase()&&"monthly"===e.period.toLowerCase())[0];await D({sub_id:null==t?void 0:t.id}).unwrap(),U&&(await T().unwrap(),localStorage.removeItem("free_trial")),a((0,Z.sq)(500)),E(e=>!e),I&&void 0!==I||""!==I?l.push("/".concat(i,"/").concat(I)):l.push({pathname:"/".concat(i,"/overview")}),a((0,f.Iw)(s))}}}else P(!1);P(!1)}catch(e){O({type:"error",message:(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.message)||(null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(n=o.data)||void 0===n?void 0:n.message)}),P(!1)}};if((null==t?void 0:t.email)&&(null==t?void 0:t.email)!==void 0||(null==s?void 0:s.email)){let e=(null==t?void 0:t.email)||(null==s?void 0:s.email),n={token:u.join(""),email:e},{data:o,error:r}=await (0,j.Lc)(n);o.success?SignUpVerification():r.success||(O({type:"error",message:r.message}),P(!1)),i.data=o,i.error=r}else if(N){let e={token:u.join(""),email:N},{data:t,error:s}=await (0,j.zv)(e);t&&!0===t.is_success?((0,S.setCookie)("token",u.join("")),l.push("/auth/new-password-request"),i.data=t,i.error=s):P(!1)}i.data.success&&O({type:"success",message:i.data.message})}catch(e){O({type:"error",message:i.data.message}),P(!1)}},handleRessetCancel=()=>{l.push({pathname:"/auth/v2/signin",query:{isLoginRedir:!0}}),(0,S.deleteCookie)("temp_signup_email"),(0,S.deleteCookie)("temp_pass_reset"),(0,S.deleteCookie)("sign_up_completion")},handleResendCode=async()=>{P(!0);try{let e;let i=(null==t?void 0:t.email)||N||(null==s?void 0:s.email);if((null==t?void 0:t.email)&&(null==t?void 0:t.email)!==void 0||s){let{data:t}=await (0,j.Ju)({email:i});e=t}else if(N){let{data:t}=await (0,j.Af)({email:i});e=t}(null==e?void 0:e.success)?O({type:"success",message:e.message}):O({type:"error",message:e.message?e.message:"An error occured"}),P(!1)}catch(t){var e,i;O({type:"error",message:null==t?void 0:null===(i=t.response)||void 0===i?void 0:null===(e=i.data)||void 0===e?void 0:e.message}),P(!1)}},handleChange=(e,t)=>
1{let{value:s,key:i}=e.target,n=s.replace(/\D/g,""),o=[...u];o[t]=n,m(o),n.length>0&&p.current[t+1]&&p.current[t+1].focus()},handleKeyDown=(e,t)=>{let{value:s,key:i}=e.target;if("Backspace"===e.key&&""===s&&t>0){let e=[...u];if(e[t]="",m(e),p.current[t-1]){let e=p.current[t-1];e.focus()}}},handlePaste=(e,t)=>{e.preventDefault();let s=e.clipboardData||window.Clipboard,i=s.getData("Text"),n=i.replace(/\D/g,"");if(""!==n){let e=n.trim().split(""),s=[...u];e.forEach((e,i)=>{void 0!==s[t+i]&&(s[t+i]=e)}),m(s);let i=t+e.length;i<s.length&&p.current[i]&&p.current[i].focus()}},H=u.filter(e=>""!==e);(0,d.useEffect)(()=>{N||(null==t?void 0:t.email)||s||l.push({pathname:"/auth/v2/signin",query:{isLoginRedir:!0}})},[null==t?void 0:t.email,l,s,N]);let handleLogin=()=>{l.push("/auth/v2/signin"),(0,S.deleteCookie)("temp_signup_email"),(0,S.deleteCookie)("temp_pass_reset"),(0,S.deleteCookie)("sign_up_completion")};return(0,d.useEffect)(()=>{let handleBeforeUnload=()=>{(0,S.deleteCookie)("temp_signup_email"),(0,S.deleteCookie)("temp_pass_reset"),(0,S.deleteCookie)("sign_up_completion")};return window.addEventListener("beforeunload",handleBeforeUnload),()=>{window.removeEventListener("beforeunload",handleBeforeUnload)}},[]),(0,i.jsxs)(r.Z,{sx:{p:4},children:[(0,i.jsx)(y.Z,{fontSize:22,fontWeight:600,sx:{color:"dark"===A.palette.mode?"#FFFFFF":"#2C2C2C",textAlign:"start"},children:"Token Input"}),(0,i.jsx)(L.J9,{initialValues:{email:"",password:""},onSubmit:(e,t)=>{let{setSubmitting:s}=t;handleConfirm(e)},children:e=>(0,i.jsxs)(r.Z,{sx:{mt:4},children:[(0,i.jsxs)(r.Z,{sx:{mb:0},display:"flex",flexDirection:"column",children:[(0,i.jsx)(r.Z,{display:"flex",sx:{pl:2}}),(0,i.jsx)(r.Z,{component:"form",noValidate:!0,autoComplete:"on",display:"flex",justifyContent:"center",children:(0,i.jsx)(r.Z,{sx:{display:"flex",gap:1},children:u.map((e,t)=>(0,i.jsx)(k.Z,{value:e,onChange:e=>handleChange(e,t),onKeyDown:e=>handleKeyDown(e,t),onPaste:e=>handlePaste(e,t),inputProps:{maxLength:1},sx:{width:55,height:80,fontSize:48,".MuiOutlinedInput-notchedOutline":{border:1,borderColor:"dark"===A.palette.mode?"rgba(255, 255, 255, 0.1)":"#E7E7E7"},"&:hover  .MuiOutlinedInput-notchedOutline":{border:2,borderColor:"#F79421"}},inputRef:e=>p.current[t]=e},t))})})]}),(0,i.jsx)(r.Z,{sx:{mb:2,mt:4},children:(0,i.jsxs)(_.Z,{variant:"contained",onClick:e.submitForm,disabled:H.length<6||R,type:"submit",sx:{borderRadius:1,height:50,color:"#FFFFFF",width:"100%"},children:["Confirm",R&&(0,i.jsx)(b.Z,{size:24})]})}),(0,i.jsx)(r.Z,{sx:{mb:3,mt:1,display:"flex",justifyContent:"center"},children:(0,i.jsx)(y.Z,{onClick:()=>handleRessetCancel(),sx:{color:"#F79421",cursor:"pointer",width:50},fontSize:16,fontWeight:500,children:"Cancel"})}),(0,i.jsx)(r.Z,{sx:{mt:3,mb:1},children:(0,i.jsxs)(y.Z,{color:"#7F7D7A",fontSize:14,fontWeight:400,children:["Didn’t receive it?"," ",(0,i.jsx)("span",{style:{color:"#F79421",cursor:"pointer"},onClick:handleResendCode,children:"Resend a new code"})]})}),(0,i.jsx)(r.Z,{sx:{mt:4,mb:4},children:(0,i.jsxs)(y.Z,{fontSize:16,fontWeight:400,children:["Already have an account?"," ",(0,i.jsx)("span",{style:{color:"#F79421",cursor:"pointer"},onClick:()=>handleLogin(),children:"Login here"})]})})]})})]})}var A=s(84464);function LoginLayout(){let e=(0,x.useRouter)(),t=(0,g.I0)(),{isLoginRedir:s}=e.query,[v,j]=(0,d.useState)(""),{isLoading:Z,setIsLoading:C}=(0,d.useContext)(h.k),F=(0,g.v9)(e=>e.authenticatedUser.isGetStarted)||!1,[w,y]=(0,d.useState)({status:!1,severity:"error"}),k=(0,n.Z)();(0,d.useEffect)(()=>{if(!w.status||!v)return;let e=w.severity||"error";"success"===e?c.Am.success(v):"warning"===e?c.Am.warning(v):"info"===e?c.Am.info(v):c.Am.error(v),y({status:!1,severity:e})},[w.status,w.severity,v]);let _=(0,o.Z)("(max-width:1500px)");return(0,i.jsxs)(r.Z,{sx:{position:"relative",background:"dark"===k.palette.mode?"#121212":"#FFFFFF"},children:[(0,i.jsx)(p.Z,{}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)(r.Z,{sx:{p:15.4,pt:1,mt:2,zIndex:10,position:"relative",pb:20},children:(0,i.jsx)(u.Z,{})}),(0,i.jsx)(r.Z,{sx:{p:15.4,pt:0,pb:5,zIndex:10,position:"relative"},gap:5,children:(0,i.jsxs)(l.ZP,{container:!0,spacing:5,children:[(0,i.jsx)(l.ZP,{item:!0,xs:12,md:6,lg:_?7:8,xl:8,children:(0,i.jsx)(m.Z,{handleGetStarted:()=>{t((0,f.R3)(!0)),e.push({pathname:"/auth/v2/signin",query:{isLoginRedir:!0}})},getStarted:F})}),(0,i.jsx)(l.ZP,{item:!0,sx:{mt:7},xs:12,md:6,lg:_?5:4,xl:4,children:F?(0,i.jsx)(a.Z,{sx:{background:"dark"===k.palette.mode?"#272727":"#FFFFFF",position:"relative",zIndex:10,p:3,pb:1,mt:-12,width:"100%"},children:(0,i.jsx)(TokenForm,{props:{setOpenError:y,setErrorMessage:j,setIsLoading:C,isLoading:Z}})}):(0,i.jsx)(i.Fragment,{})})]})}),(0,i.jsx)(A.Z,{})]})]})}var otp_resetPin=function(){let e;let t=(0,n.Z)(),s=(0,x.useRouter)(),o=(0,S.getCookie)("temp_signup_email"),l=(0,S.getCookie)("sign_up_completion");o&&(e=JSON.parse(o)),l&&(e=JSON.parse(l));let a=(0,S.getCookie)("temp_pass_reset");return(0,d.useEffect)(()=>
1{let t=e&&Object.values(e).some(e=>""!==e),i=a&&Object.values(a).some(e=>""!==e);t||i||s.push("/auth/v2/signin")},[e,a,s]),(0,i.jsx)(r.Z,{sx:{textAlign:"center",p:0,background:"dark"===t.palette.mode?"#121212":"#FFFFFF",height:"100vh"},children:(0,i.jsx)(LoginLayout,{})})}}},function(e){e.O(0,[6886,1664,4347,8543,4778,6820,4442,8508,9774,2888,179],function(){return e(e.s=90278)}),_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.