1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{36429:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return i(37644)}])},91121:function(e,t,i){"use strict";i.r(t),t.default={src:"/_next/static/media/arrow.8252198e.png",height:512,width:512,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEVMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACalcoGAAAACHRSTlMABqHFtY9aEc2jtUIAAAAJcEhZcwAAD9gAAA/YAaD98CUAAAAsSURBVHicRYtBDgAgDMIKm87/v9gY4+RESgFqihNFgEAZF+RK2x6/9NTyu28RkAB5FdRIvwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},32411:function(e,t,i){"use strict";i.r(t),t.default={src:"/_next/static/media/logo.01e51a11.png",height:102,width:356,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAHlBMVEXiICagNSl/R0rfICh5RD3mHyWCRkusOEUNaTbfISXy7tZiAAAACnRSTlM+glBVQk0zO4KApayktAAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAABpJREFUeJxjYGXhZGBmZWZgYORgZGdiYWIDAAI5AD1i0EHxAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},91806:function(e,t){"use strict";t.Z={src:"/_next/static/media/rk-logo.c2af91ca.svg",height:25,width:24,blurWidth:0,blurHeight:0}},85414:function(e,t,i){"use strict";i.r(t),t.default={src:"/_next/static/media/Patterns.20022499.svg",height:832,width:411,blurWidth:0,blurHeight:0}},37644:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return A},localizationData:function(){return g}});var n=i(85893),o=i(25675),a=i.n(o),l=i(91444),r=i(67294),s=i(54007),d=i(67962),c=i(11163),m=i(67132),u=i(40433);i(91004);var A=!0;let g={en:{phoneNumber:"Phone number",phoneNumberPlaceholder:"Enter your 10 digit mobile number",enterOtp:"Enter OTP",enterMobile:"Enter your 10 digit mobile number",login:"Login",getOtp:"Get OTP",back:"Back",title:"Welcome to Wonder Home Finance",description:"Please login to access your account.",invalidPhoneNumber:"Invalid phone number",invalidOtp:"Invalid OTP. Please enter a 6-digit number.",otpPlaceholder:"Enter received OTP here",promotedBy:"Promoted by"},"hi-IN":{phoneNumber:"मà¥à¤¬à¤¾à¤à¤² नà¤à¤¬à¤°",phoneNumberPlaceholder:"à¤
पना 10 à¤
à¤à¤à¥à¤ à¤à¤¾ मà¥à¤¬à¤¾à¤à¤² नà¤à¤¬à¤° दरà¥à¤ à¤à¤°à¥à¤",enterOtp:"OTP दरà¥à¤ à¤à¤°à¥à¤",enterMobile:"à¤
पना 10 à¤
à¤à¤à¥à¤ à¤à¤¾ मà¥à¤¬à¤¾à¤à¤² नà¤à¤¬à¤° दरà¥à¤ à¤à¤°à¥à¤",login:"लà¥à¤à¤¿à¤¨ à¤à¤°à¥à¤",getOtp:"OTP पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥à¤",back:"वापस",title:"वà¤à¤¡à¤° हà¥à¤® फाà¤à¤¨à¥à¤à¤¸ मà¥à¤ à¤à¤ªà¤à¤¾ सà¥à¤µà¤¾à¤à¤¤ हà¥",description:"à¤à¥à¤ªà¤¯à¤¾ à¤
पनॠà¤à¤¾à¤¤à¥ तठपहà¥à¤à¤à¤¨à¥ à¤à¥ लिठलà¥à¤à¤¿à¤¨ à¤à¤°à¥à¤à¥¤",invalidPhoneNumber:"à¤
मानà¥à¤¯ मà¥à¤¬à¤¾à¤à¤² नà¤à¤¬à¤°",invalidOtp:"à¤
मानà¥à¤¯ OTP। à¤à¥à¤ªà¤¯à¤¾ 6-à¤
à¤à¤à¥à¤ à¤à¤¾ नà¤à¤¬à¤° दरà¥à¤ à¤à¤°à¥à¤à¥¤",otpPlaceholder:"पà¥à¤°à¤¾à¤ªà¥à¤¤ OTP यहाठदरà¥à¤ à¤à¤°à¥à¤",promotedBy:"दà¥à¤µà¤¾à¤°à¤¾ पà¥à¤°à¤à¤¾à¤°à¤¿à¤¤"},"gu-IN":{phoneNumber:"ફà«àª¨ નàªàª¬àª°",phoneNumberPlaceholder:"તમારૠ10 àª
àªàªàª¨à« મ
1à«àª¬àª¾àªàª² નàªàª¬àª° દાàªàª² àªàª°à«",enterOtp:"OTP દાàªàª² àªàª°à«",enterMobile:"તમારૠ10 àª
àªàªàª¨à« મà«àª¬àª¾àªàª² નàªàª¬àª° દાàªàª² àªàª°à«",login:"લà«àªàª¿àª¨ àªàª°à«",getOtp:"OTP મà«àª³àªµà«",back:"પાàªàª³",title:"વનà«àª¡àª° હà«àª® ફાàªàª¨àª¾àª¨à«àª¸àª®àª¾àª àªàªªàª¨à«àª સà«àªµàª¾àªàª¤ àªà«",description:"àªà«àªªàª¾ àªàª°à«àª¨à« તમારા àªàª¾àª¤àª¾àª®àª¾àª પà«àª°àªµà«àª¶ àªàª°àªµàª¾ માàªà« લà«àªàª¿àª¨ àªàª°à«.",invalidPhoneNumber:"àª
માનà«àª¯ ફà«àª¨ નàªàª¬àª°",invalidOtp:"àª
માનà«àª¯ OTP. àªà«àªªàª¾ àªàª°à« 6 àª
àªàªàª¨à« નàªàª¬àª° દાàªàª² àªàª°à«.",otpPlaceholder:"પà«àª°àª¾àªªà«àª¤ OTP àª
હà«àª દાàªàª² àªàª°à«",promotedBy:"દà«àªµàª¾àª°àª¾ પà«àª°àª®à«àª àªàª°àª¾àª¯à«àª²"},"kn-IN":{phoneNumber:"ದà³à²°à²µà²¾à²£à²¿ ಸà²à²à³à²¯à³",phoneNumberPlaceholder:"ನಿಮà³à²® 10 à²
à²à²à²à²³ ಮà³à²¬à³à²²à³ ಸà²à²à³à²¯à³à²¯à²¨à³à²¨à³ ನಮà³à²¦à²¿à²¸à²¿",enterOtp:"OTP ನಮà³à²¦à²¿à²¸à²¿",enterMobile:"ನಿಮà³à²® 10 à²
à²à²à²à²³ ಮà³à²¬à³à²²à³ ಸà²à²à³à²¯à³à²¯à²¨à³à²¨à³ ನಮà³à²¦à²¿à²¸à²¿",login:"ಲಾà²à³ à²à²¨à³ ಮಾಡಿ",getOtp:"OTP ಪಡà³à²¯à²¿à²°à²¿",back:"ಹಿà²à²¦à³",title:"ವà²à²¡à²°à³ ಹà³à²®à³ ಫà³à²¨à²¾à²¨à³à²¸à³ à²à³ ಸà³à²¸à³à²µà²¾à²à²¤",description:"ದಯವಿà²à³à²à³ ನಿಮà³à²® à²à²¾à²¤à³à²à³ ಪà³à²°à²µà³à²¶à²¿à²¸à²²à³ ಲಾà²à³ à²à²¨à³ ಮಾಡಿ.",invalidPhoneNumber:"à²
ಮಾನà³à²¯ ದà³à²°à²µà²¾à²£à²¿ ಸà²à²à³à²¯à³",invalidOtp:"à²
ಮಾನà³à²¯ OTP. ದಯವಿà²à³à²à³ 6-à²
à²à²à²à²³ ಸà²à²à³à²¯à³à²¯à²¨à³à²¨à³ ನಮà³à²¦à²¿à²¸à²¿.",otpPlaceholder:"ಪà³à²°à¤¾à¤ªà¥à¤¤ OTP à²à²²à³à²²à²¿ ನಮà³à²¦à²¿à²¸à²¿",promotedBy:"ಮಾರà³à²à²¦à²°à³à²¶à²"}};t.default=e=>{var t,o,A,h;let{loginPageData:p}=e,b=(0,c.useRouter)(),[v,f]=(0,r.useState)(""),[x,N]=(0,r.useState)(""),[w,P]=(0,r.useState)(null==p?void 0:null===(o=p[0])||void 0===o?void 0:null===(t=o.data)||void 0===t?void 0:t.attributes),[k,O]=(0,r.useState)(null==p?void 0:null===(h=p[1])||void 0===h?void 0:null===(A=h.data)||void 0===A?void 0:A.attributes),[S,T]=(0,r.useState)(!1),[E,_]=(0,r.useState)(!1),[y,I]=(0,r.useState)(!1),[j,R]=(0,r.useState)(""),[B,C]=(0,r.useState)("");(0,r.useEffect)(()=>{var e,t,i,n;P(null==p?void 0:null===(t=p[0])||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.attributes),O(null==p?void 0:null===(n=p[1])||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.attributes)},[p]),(0,r.useEffect)(()=>{let handleResize=()=>{_(window.innerWidth<=1200)};return handleResize(),window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize)}},[]);let _handleInput=(e,t)=>{switch(e){case 1:f(t),R("");break;case 2:N(t),C("")}};return(0,n.jsx)(r.Fragment,{children:(0,n.jsxs)("div",{className:"position-relative",children:[(0,n.jsx)(a(),{draggable:!1,src:i(32411),alt:"Wonder Home Finance",className:" mt-4 margin-85px-left w-140px h-40px e-login-logo cursor-pointer",onClick:()=>{b.push("/")}}),(0,n.jsxs)("div",{className:"e-login-rk-logo position-absolute right-90px z-index-999 top-0 mt-4 d-flex align-items-center",children:[(0,n.jsxs)("span",{className:"e-primary-font-medium e-font-12",children:[g[b.locale].promotedBy," "]}),(0,n.jsx)(a(),{src:i(91806).Z,"data-at2x":"../../assets/images/header/logo.png",className:"default-logo ms-2 align-top",width:40,alt:"Wonder Home Finance",unoptimized:!0})]}),(0,n.jsx)("div",{className:"container mt-5 pt-3 pb-5 ".concat(E?"":"me-5"," e-login-container"),children:(0,n.jsxs)("div",{className:"row pb-5",children:[(0,n.jsxs)("div",{className:"pe-lg-5 col-lg-5 col-md-8",children:[(0,n.jsx)("h1",{className:"e-primary-font-semi-bold e-font-weight-600 e-font-35 e-black line-height-42px mb-4 pb-1",children:w.title}),(0,n.jsx)("p",{className:"e-secondary-font e-font-16 e-font-weight-400 line-height-22px e-black mb-4 pb-3",children:w.description}),!0===S&&(0,n.jsxs)("p",{className:"e-primary-font-medium cursor-pointer e-back-to-login",onClick:()=>T(!1),children:[(0,n.jsx)(a(),{src:i(91121),width:15,className:"me-2"}),g[b.locale].back," "]}),!1===S?(0,n.jsx)(s.t7,{value:v,placeholder:g[b.locale].phoneNumberPlaceholder,label:g[b.locale].phoneNumber,className:"me-lg-5 me-md-5 pe-lg-5 pe-md-5",type:"number",max:10,bg_type:!0,require:!0,error:j,handleChange:e=>_handleInput(1,e)}):(0,n.jsx)(s.t7,{value:x,placeholder:g[b.locale].otpPlaceholder,label:g[b.locale].otpLabel,type:"number",max:6,className:"me-lg-5 me-md-5 pe-lg-5 pe-md-5",bg_type:!0,require:!1,error:B,handleChange:e=>_handleInput(2,e)}),(0,n.jsx)("div",{className:"text-center mt-4 me-lg-5 me-md-5 pe-lg-5 pe-md-5",children:(0,n.jsx)(d.KM,{name:S?k.login:k.get_otp,className:"padding-140px-lr e-login-button ".concat(!0===y&&"e-btn-loader"),onPress:S?function(){if(""===x||6!==x.length||!/^\d+$/.test(x)){C("Invalid OTP. Please enter a 6-digit number.");return}I(!0);let e=JSON.stringify({mobile:v,otp:x});(0,u.Z)("verify-login-otp",e,!1,!0).then(e=>{if(200===e.status_code){var t;
1let i=new Date().toLocaleString("en-US",{timeZone:"Asia/Kolkata"}),n=new Date(i).getTime();sessionStorage.setItem("whfToken",null===(t=e.data)||void 0===t?void 0:t.access_token),sessionStorage.setItem("whfTokenExpiration",n+36e5),function(){let e=sessionStorage.getItem("whfToken"),t=sessionStorage.getItem("whfTokenExpiration");if(e&&t){let e=new Date().getTime();e>=t&&(localStorage.removeItem("whfToken"),localStorage.removeItem("whfTokenExpiration"),window.location.href="/login")}}(),window.location.href="/dashboard"}else l.Am.dismiss(),l.Am.error(e.message,{type:"error",icon:(0,n.jsx)(a(),{draggable:!1,src:i(71295)})});I(!1)})}:function(){if(""===v||10!==v.length){R("Invalid phone number");return}I(!0);let e=JSON.stringify({mobile:v});(0,u.Z)("get-login-otp",e,!1,!0).then(e=>{200===e.status_code?T(!0):(l.Am.dismiss(),l.Am.error(e.message,{type:"error",icon:(0,n.jsx)(a(),{draggable:!1,src:i(71295)})})),I(!1)})}})})]}),(0,n.jsx)("div",{className:"offset-lg-1 col-lg-6 position-relative d-lg-block d-none",children:(0,n.jsx)(a(),{draggable:!1,src:m.Z.getStrapiMedia(null==w?void 0:w.banner),width:611,height:659,alt:"Wonder Home Finance",className:"position-relative z-index-1",unoptimized:!0})})]})}),(0,n.jsx)("div",{className:"e-background-venetian-red position-absolute min-h-100vh h-100 right-0px top-0px e-width-461 d-lg-block d-md-block d-none",children:(0,n.jsx)(a(),{src:i(85414),alt:"Wonder Home Finance",className:"position-absolute right-0px h-100 bottom-0px"})})]})})}}},function(e){e.O(0,[571,4643,4007,9774,2888,179],function(){return e(e.s=36429)}),_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.