PageSourceSearch

https://www.divyabhaskar.co.in/account/_next/static/chunks/pages/login-fd21f0c88e5b1c52.js

js divyabhaskar.co.in collected 2026-09-24 09:21:26 UTC 10,756 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[295],{210:(e,t,o)=>{"use strict";o.d(t,{KY:()=>s});var n=o(1977),r=o(898);async function s(e){return await n.a.post(r.B.api.sendOtp,{cookies:"",body:{at:e.at,phoneNumber:e.phoneNumber,countryCode:e.countryCode,deviceId:e.deviceId,recaptchaToken:e.recaptchaToken},additionalHeaders:{"Content-Type":"application/json"},override:{origin:window.location.origin}})}o(2922)},479:e=>{e.exports={container:"Login_component_container__fCniX",logo:"Login_component_logo__oduTx",loginInfoGraphic:"Login_component_loginInfoGraphic__47BSr",flexCenter:"Login_component_flexCenter__lJ6Hz",errorMessage:"Login_component_errorMessage__DhE0V",personalInfoText:"Login_component_personalInfoText__j5jLT",linkStyling:"Login_component_linkStyling__tRmzw",disabledClick:"Login_component_disabledClick__cJymP",message:"Login_component_message__kzZyd",heading:"Login_component_heading__RRMdJ",subtext:"Login_component_subtext__ySPxE",subtextAction:"Login_component_subtextAction__4G0qI",numberInput:"Login_component_numberInput__17WA0",countryCodeBox:"Login_component_countryCodeBox__3aH2P",countryCodePrefix:"Login_component_countryCodePrefix__2hWWU",arrowIcon:"Login_component_arrowIcon__qKTjh",phoneInput:"Login_component_phoneInput__MKx9z",error:"Login_component_error__p38_O",resendOtp:"Login_component_resendOtp__pl7eq",errorOtp:"Login_component_errorOtp____I8K",overLayBox:"Login_component_overLayBox__EYMsn",continueButton:"Login_component_continueButton__rnwPU"}},3665:(e,t,o)=>{"use strict";o.d(t,{p:()=>c});var n=o(6514),r=o(4925),s=o(1941),a=o.n(s),i=o(6225);let c=({title:e,description:t,keywords:o,imageUrl:s,next:c,prev:l,canonicalPathnameOverride:_})=>{let d=(0,i.useRouter)().asPath,u=`https://${r.c.canonicalDomain}${_||d}`;return(0,n.jsxs)(a(),{children:[(0,n.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,n.jsx)("link",{rel:"preconnect",href:"https://www.google-analytics.com"}),(0,n.jsx)("link",{rel:"preconnect",href:"https://www.googletagmanager.com"}),(0,n.jsx)("title",{children:e}),t&&(0,n.jsx)("meta",{name:"description",content:t}),o&&(0,n.jsx)("meta",{name:"keywords",content:o}),(0,n.jsx)("meta",{property:"og:title",content:e}),t&&(0,n.jsx)("meta",{property:"og:description",content:t}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:u}),s&&(0,n.jsx)("meta",{property:"og:image",content:s}),(0,n.jsx)("meta",{property:"og:image:width",content:"auto"}),(0,n.jsx)("meta",{property:"og:image:height",content:"auto"}),(0,n.jsx)("meta",{property:"og:site_name",content:r.c.friendlyWebsiteName}),(0,n.jsx)("link",{rel:"canonical",href:u}),(0,n.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:r.c.basePath.concat("/favicon.ico")})]})}},6982:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>S});var n=o(6514),r=o(5834),s=o(8259),a=o.n(s),i=o(8341),c=o.n(i),l=o(479),_=o.n(l),d=o(6517),u=o(7199),p=o(8956),g=o(9486),m=o.n(g),h=o(8813),x=o(3334);let y=({onCountrySelect:e,shouldShowCountryDropdown:t,selectedCountry:o,countryList:s,imgBaseUrl:a})=>{let i,l=(0,p.Pj)(),[_,g]=(0,r.useState)(""),y=(i=_||"",s?.filter(e=>e.name.toLowerCase().startsWith(i.toLowerCase())||e.code.startsWith(i))||[]);return(0,n.jsx)("div",{className:m().container,children:(0,n.jsxs)("div",{className:m().countryBox,children:[(0,n.jsxs)("div",{className:m().searchBox,children:[(0,n.jsx)("div",{className:m().searchIcon,children:(0,n.jsx)(c(),{src:h.A,height:24,width:24,alt:"search"})}),(0,n.jsx)("input",{className:m().searchInput,type:"text",placeholder:u.A.APANA_DESH_KHOJE,onChange:e=>{g(e.target.value)}})]}),(0,n.jsx)("ul",{children:y&&y?.map(r=>{let s=Object.values(r).indexOf(o.name)>=0;return(0,n.jsxs)("li",{onClick:()=>{e(r),l.dispatch(x.Ay.actions.setInternationalCountryCode({code:r.code,img_suffix:r.img_suffix})),t(!1)},children:[(0,n.jsx)("span",{className:m().flag,children:(0,n.jsx)("img",{src:`${a}${r.img_suffix}.png`,height:14,width:20,alt:"Flag"})}),(0,n.jsx)("strong",{className:m().name,children:`${r.name} ${r.code}`}),s&&(0,n.jsx)(d.BX,{className:m().okIcon})]},r.name)})})]})})};var f=o(2467),C=o(6246),j=o(4925);let A={src:"/account/_next/static/media/privacy-icon.5ea532b4.svg",height:24,width:24,blurWidth:0,blurHeight:0};var L=o(4022);let w=({phoneNumber:e,onEnterPress:t,setVerificationNumber:o,error:s})=>{let a=(0,p.Pj)(),[i,l]=(0,r.useState)(j.c.baseCountryCodeList),[g,m]=(0,r.useState)(j.c.baseCountryCodeList.code_list[0]),[h,w]=(0,r.useState)(!1),b=(0,C.mE)(e=>e.common.userCountry);return(0,r.useEffect)(()=>{!async function(){try{let e=await f.A.getCountryCodeList();l(e);let t=e.code_list.find(e=>e.img_suffix.toUpperCase()===b);t&&m(t)}catch(e){(0,L.h)(e,{tags:{flow:"login_country_codes"}})}}()},[b]),(0,r.useEffect)(()=>{a.dispatch(x.Ay.actions.setInternationalCountryCode({code:g.code,img_suffix:g.img_suffix}))},[g,a]),(0,n.jsxs)("div",{className:_().container,children:[(0,n.jsx)(d.s$,{className:_().logo}),(0,n.jsx)("div",{className:_().loginInfoGraphic,children:(0,n.jsx)("img",{width:"324px",height:"180px",src:`https://images.bhaskarassets.com/thumb/324x0/web2images/web-frontend/epaper/logininfo-${j.c.cid}.png`})}),(0,n.jsxs)("div",{className:`${s?_().error:""} ${_().numberInput}`,children:[(0,n.jsxs)("div",{className:_().countryCodeBox,onClick:()=>w(!0),children:[(0,n.jsx)("img",{src:`${i.icon_base_url}${g.img_suffix}.png`,height:14,width:20,alt:"Flag"}),(0,n.jsx)("div",{className:`${_().countryCodePrefix} ${_().flexCenter}`,children:g.code}),(0,n.jsx)(d.Ve,{className:_().arrowIcon})]}),h&&(0,n.jsx)(y,{imgBaseUrl:i.icon_base_url,countryList:i.code_list,selectedCountry:g,shouldShowCountryDropdown:w,onCountrySelect:m}
1),(0,n.jsx)("input",{autoFocus:!0,type:"tel",className:_().phoneInput,maxLength:"+91"===g.code?10:14,placeholder:u.A.MOBILE_NUMBER_DALE,onChange:e=>{(""===e.target.value||/^[0-9\b]+$/.test(e.target.value))&&o(e.target.value)},value:e,onKeyDown:e=>{"Enter"===e.key&&t()}})]}),s&&(0,n.jsx)("div",{className:`${_().errorMessage} ${_().flexCenter}`,children:(0,n.jsx)("span",{children:s?.message&&s.message.includes("Invalid number")?u.A.MOBILE_NUMBER_AAMANYA_HAI:s?.message})}),(0,n.jsxs)("div",{className:_().personalInfoText,children:[(0,n.jsx)("span",{children:(0,n.jsx)(c(),{src:A,alt:"Privacy",height:24,width:24,layout:"fixed"})}),(0,n.jsxs)("p",{children:[(0,n.jsxs)("strong",{children:[u.A.AAP_KI_PERSONAL_JANKARI_SURAKHIT_HAI," "]}),u.A.AAP_KA_NUMBER_KEWAL_ACCOUNT_VEIFICATION_KE_LIYE]})]}),h&&(0,n.jsx)("div",{className:_().overLayBox,onClick:()=>w(!1)})]})};var b=o(2179),I=o(6225),v=o(7796),N=o(1977),k=o(898),E=o(5807),P=o(3665),B=o(8955),O=o(210);let S=()=>{let e=(0,I.useRouter)(),t=(0,p.Pj)(),[o,s]=(0,r.useState)(""),[i,c]=(0,r.useState)(),[l,_]=(0,r.useState)(!1),[d,g]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),y=(0,r.useRef)(null),f=(0,C.mE)(e=>e.common.internationalCountryCode),A=(f?.code==="+91"?10==o.length:o.length>=6)&&!l&&d&&m,S=async()=>{let n;if(A){_(!0);try{let r=await N.a.post("/api/1.0/user/register",{cookies:""}),s=await r.json();if(t.dispatch(x.Ay.actions.setTemporaryCredentials({dbskrat:s.at,dbskrrt:s.rt,dbskruid:s.uid})),!localStorage.getItem("deviceid")){let e=`${o}-${(0,v.lk)()}`;localStorage.setItem("deviceid",e)}let a=await (0,O.KY)({at:s.at,phoneNumber:o,countryCode:f?.code||"",deviceId:localStorage.getItem("deviceid")||"",recaptchaToken:d,isResentOtp:!1});if(n=a.status,console.info("[OTP_LOGIN] send-otp response",{status:a.status,ok:a.ok}),a.ok){E.E.tagLoginSubmitted({fullPathname:e.asPath});let t={phoneNumber:o,...e.query};await e.push({pathname:k.B.verifyPage.url,query:t},{pathname:k.B.verifyPage.url,search:k.B.util.getMergedQueryParams(k.B.verifyPage.url,e.asPath)},{shallow:!0})}else if(400===a.status||429===a.status)throw await a.json();else throw{unexpectedError:!0}}catch(t){let e=400===n||429===n;(0,L.h)(t instanceof Error?t:Error(t?.message||"OTP login request failed"),{level:e?"info":"error",tags:{flow:"otp_login"},extra:{responseStatus:n,countryCode:f?.code,phoneNumberLast4:o.slice(-4),unexpectedError:!!t?.unexpectedError}}),console.error("[OTP_LOGIN] request failed",{message:t?.message,unexpectedError:!!t?.unexpectedError}),y.current?.reset(),g(null),t.unexpectedError?c(Error(u.A.KUCH_GADBAD_HOGAI_HAI)):c(Error(t.message)),(0,v.rr)(),_(!1)}}},$=`${u.A.MOBILE_SE_LOGIN_KARE} | ${j.c.friendlyWebsiteName}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:a().loginContainer,children:[(0,n.jsx)(P.p,{title:$,canonicalPathnameOverride:e.pathname}),(0,n.jsxs)("div",{className:a().items,children:[(0,n.jsx)(w,{setVerificationNumber:e=>{s(e),c(void 0)},onEnterPress:S,phoneNumber:o,error:i}),(0,n.jsxs)("div",{className:a().termsCheckbox,children:[(0,n.jsx)("input",{type:"checkbox",id:"terms-checkbox",checked:m,onChange:e=>h(e.target.checked)}),(0,n.jsxs)("label",{htmlFor:"terms-checkbox",children:["I agree to the"," ",(0,n.jsx)("a",{href:k.B.legal.termsAndConditions,target:"_blank",rel:"noopener noreferrer",children:"Terms & Conditions"})," ","and"," ",(0,n.jsx)("a",{href:k.B.legal.privacyPolicy,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})]}),(0,n.jsx)(B.A,{ref:y,sitekey:"6LfXPFQlAAAAALoE7MuCiGzNoK4OHYlZRMtn8HCA",onChange:e=>g(e),onErrored:()=>(0,L.h)(Error("Login reCAPTCHA widget failed"),{tags:{flow:"otp_login_recaptcha"},extra:{countryCode:f?.code,phoneNumberLast4:o.slice(-4)}}),style:{margin:"15px auto 0px auto",minHeight:"78px"}}),(0,n.jsx)("button",{title:u.A.JARI_RAKHEN,className:`${a().continueButton} ${A?a().active:""}`,disabled:!A,onClick:S,children:u.A.JARI_RAKHEN}),!1]})]}),(0,n.jsx)(b.A,{})]})}},7175:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return o(6982)}])},8259:e=>{e.exports={loginContainer:"LoginPage_loginContainer__hf0jV",items:"LoginPage_items__PrHgL",redirectSubtext:"LoginPage_redirectSubtext__mGtak",link:"LoginPage_link__Cz4Le",termsCheckbox:"LoginPage_termsCheckbox__NILEh",continueButton:"LoginPage_continueButton__i2uD6",active:"LoginPage_active__sfDe4"}},8813:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});let n={src:"/account/_next/static/media/search-icon.5a641fef.svg",height:24,width:24,blurWidth:0,blurHeight:0}},9486:e=>{e.exports={container:"CountryCodeDropdown_component_container__Y0RqC",countryBox:"CountryCodeDropdown_component_countryBox__Bf9eY",searchBox:"CountryCodeDropdown_component_searchBox__WzUj3",searchInput:"CountryCodeDropdown_component_searchInput__tlZ22",searchIcon:"CountryCodeDropdown_component_searchIcon__XfFLx",flag:"CountryCodeDropdown_component_flag__505Wo",name:"CountryCodeDropdown_component_name__0aIlB",okIcon:"CountryCodeDropdown_component_okIcon__YKO8s"}}},e=>{e.O(0,[338,636,593,792],()=>e(e.s=7175)),_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.