PageSourceSearch

https://static.ranker.com/_next/static/chunks/5043-3851271239182908.js

js ranker.com collected 2026-10-01 08:35:37 UTC 9,698 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5043,6305],{96305:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>u});var s=t(85893),n=t(67294),r=t(94184),i=t.n(r),l=t(51584),o=t.n(l),c=t(28666),d=t.n(c);let u=(0,n.forwardRef)((e,a)=>{let{className:t="",style:n,id:r,title:l="",name:c="",type:u="text",placeholder:m,defaultValue:h,value:p,disabled:v=!1,min:_,max:g,maxLength:w,onClick:x,onChange:b,onBlur:k,onKeyPress:f,useDefaultStyles:y=!0,onKeyDown:S,inputMode:j="text",readOnly:N=!1}=e,P=i()({[d().main]:y},t),C="checkbox"===u;return(0,s.jsx)("input",{ref:a,id:null==r?void 0:r.toString(),title:l,name:c,type:u,className:P,style:n,placeholder:m,checked:C?!!p:void 0,defaultValue:h,value:C||o()(p)?void 0:p,disabled:v,min:_,max:g,maxLength:w,onClick:x,onChange:b,onBlur:k,onKeyPress:f,"aria-label":m,onKeyDown:S,inputMode:j,readOnly:N})})},42616:(e,a,t)=>{"use strict";t.d(a,{w:()=>n});let s=async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"SHA-256";return Array.from(new Uint8Array(await crypto.subtle.digest(a,new TextEncoder().encode(e))),e=>e.toString(16).padStart(2,"0")).join("")},n=async e=>{try{let a=await s(e);window.liQ=window.liQ||[],window.liQ.push({event:"conversion",name:"email_signup",email:a})}catch(e){console.error("LiveConnect Conversion tag error:",e)}}},85043:(e,a,t)=>{"use strict";t.r(a),t.d(a,{PRIVACY_POLICY_PATH:()=>I,TERMS_AND_CONDITIONS_PATH:()=>R,default:()=>K});var s=t(85893),n=t(67294),r=t(36808),i=t.n(r),l=t(11752),o=t.n(l),c=t(34853),d=t(94184),u=t.n(d),m=t(41609),h=t.n(m),p=t(64647),v=t.n(p),_=t(3262),g=t(6669),w=t(43948),x=t(61993),b=t(37089),k=t(53502),f=t(70819),y=t(69237),S=t(1149),j=t.n(S),N=t(87761),P=t(18179),C=t(9564),T=t(52036),Z=t(9910);let A=RegExp(/[`~!@#\$%\^&\*\(\)\-_=\+\[\{\]\}\\\|;:\'",\<\.\>/\?]/,"g"),E=RegExp("(.+@.+?..{2,})","i"),R="/terms?ref=foot",I="/terms?ref=foot#privacy",U="Trending (RT)",B=(e,a,t)=>e.match(A)?"username has an invalid format":e.length<4?"username must be at least 4 characters":a?a.match(E)?t.length<6?"password must be at least 6 characters":t.length>50?"password must be less than 50 characters":"":"email has an invalid format":"you must provide an email address";var L=t(76652),M=t(31160),O=t(18891),Y=t.n(O),z=t(91387),D=t(42616),F=t(54641);let{publicRuntimeConfig:H}=o()(),W=(0,k.jl)(),q=[{context:g.Zv,mapStateToProps:e=>{let{userInfo:a,userInfoDispatcher:t}=e;return{userInfo:a,userInfoDispatcher:t}}}],K=(0,w.Z)({mapStateToProps:q})(e=>{let{notification:a,setNotification:t,screenId:r,location:l="",navigateScreenFn:o,switchScreenFn:d,className:m,showBackButton:p=!0,setSignSuccess:g,userInfo:w,userInfoDispatcher:S,isActiveScreen:A}=e,[E,O]=(0,n.useState)(""),[q,K]=(0,n.useState)(""),[Q,V]=(0,n.useState)(""),[J,$]=(0,n.useState)(!1),[G,X]=(0,n.useState)(!1),ee=(0,n.useRef)(null),ea=new x.Z,et=new b.Z,es=(e,a)=>{try{(0,M.L)(e,{[U]:1},()=>{var t,s;(0,D.w)(e),(0,_.ZP)("sign_up_newsletter_subscription_success",{url:null===(s=window)||void 0===s?void 0:null===(t=s.location)||void 0===t?void 0:t.href,location:l,medium:a})},t=>(0,_.ZP)("sign_up_newsletter_subscription_error",{email:e,location:l,medium:a,error:t.message},{labelTemplate:"email|platform|error"}))}catch(t){W.log("Subscription to newsletter failed",k.Mk,t),(0,_.ZP)("sign_up_newsletter_subscription_error",{email:e,medium:a,error:t},{labelTemplate:"email|platform|error"})}},en=(0,n.useCallback)(e=>{var a;if(G&&(null==e?void 0:null===(a=e.email)||void 0===a?void 0:a.length)&&es(e.email,e.platform),g)try{g(e)}catch(e){W.log("Error on setSignSuccess",k.Mk,e)}},[G,g]),er=e=>{switch(e.target.getAttribute("data-field")){case"username":O(e.target.value);break;case"email":K(e.target.value);break;case"password":V(e.target.value)}},ei=async()=>{var e,a,s,n,r,o,c,d,u,m,h;try{let o;G&&(0,_.ZP)("sailthru_newsletter_subscription_requested",{email:q,newslettersRequested:U,userAgent:null===(n=window)||void 0===n?void 0:null===(s=n.navigator)||void 0===s?void 0:s.userAgent}),i().get(C.SB)||(o=await (null==ee?void 0:null===(r=ee.current)||void 0===r?void 0:r.executeAsync()));let c=await ea.getProvisionalToken(),d=await ea.registerUser({provisionalToken:c,recaptchaToken:o,username:E,email:q,password:Q,guestUserId:w.guestUserId});S((0,T.lx)(d.id,d)),S((0,T.a$)({hasRegistered:!0})),await et.setSessionToken(d.token),$(!0),en({...d,platform:z.jl}),t(""),(0,_.ZP)("sign_up_modal_submit_success",{location:l,url:null===(a=window)||void 0===a?void 0:null===(e=a.location)||void 0===e?void 0:e.href,medium:z.jl})}catch(a){let e="";(0,F.IZ)(a)?e=(null==a?void 0:null===(m=a.response)||void 0===m?void 0:null===(u=m.data)||void 0===u?void 0:u.message)||"":v()(a)&&(e=a.message),(0,_.ZP)("sign_up_modal_submit_error",{location:l,url:null===(c=window)||void 0===c?void 0:null===(o=c.location)||void 0===o?void 0:o.href,medium:z.jl,error:e}),W.log("Error on traditional user registration",k.Mk,a),t((0,F.IZ)(a)&&(null===(d=a.response)||void 0===d?void 0:d.status)===500?"There was an error. Please try again.":(0,y.bt)(e))}finally{try{null==ee||null===(h=ee.current)||void 0===h||h.reset()}catch(e){}}};(0,n.useEffect)(()=>{J&&(setTimeout(()=>{d&&d(r,"welcome")},10),$(!1))},[r,J,d]),(0,n.useEffect)(()=>
1{if(A){var e,a;(0,_.ZP)("sign_up_modal_viewed",{url:null===(a=window)||void 0===a?void 0:null===(e=a.location)||void 0===e?void 0:e.href,location:l})}},[A,l]);let el=e=>{if(X(e),e){var a,t;(0,_.ZP)("sign_up_newsletter_subscription_checked",{location:l,url:null===(t=window)||void 0===t?void 0:null===(a=t.location)||void 0===a?void 0:a.href})}};return(0,s.jsxs)("form",{className:m,"data-screen-id":r,onSubmit:e=>{var a,s;e.preventDefault(),(0,_.ZP)("sign_up_modal_submit_attempt",{location:l,url:null===(s=window)||void 0===s?void 0:null===(a=s.location)||void 0===a?void 0:a.href,medium:z.jl});let n=B(E,q,Q);if(!h()(n)){t(n);return}ei()},children:[p&&(0,s.jsxs)("button",{type:"button",className:j().back,"data-action-screen-back":"true",onClick:o,children:[(0,s.jsx)(f.default,{iconId:"rsvg__arrows--pointerLeft",className:j().backArrowIcon}),"Back"]}),(0,s.jsxs)("div",{className:j().content,children:[(0,s.jsx)("span",{className:j().title,children:"Join Ranker"}),(0,s.jsxs)("span",{className:j().text,children:["Use one of your existing accounts to sign up.",(0,s.jsx)("br",{}),"Already have an account?"," ",(0,s.jsx)("button",{type:"button",className:u()(j().link,j().bold),"data-target-screen-id":"sign-in",onClick:o,children:"Sign in."})]}),(0,s.jsx)(N.Z,{parentScreenId:r,location:l,setNotificationFn:t,switchScreenFn:d,isSignup:!0,setSignSuccess:en}),(0,s.jsx)("span",{className:j().text,children:"or, create an account from scratch"}),(0,s.jsxs)("div",{className:j().inputsWrapper,children:[(0,s.jsx)("input",{placeholder:"Your Username","aria-label":"your username",onChange:er,className:j().input,name:"username","data-field":"username"}),(0,s.jsx)("input",{placeholder:"Your Email Address","aria-label":"your email address",onChange:er,className:j().input,name:"email","data-field":"email"}),(0,s.jsx)("input",{placeholder:"Your Password","aria-label":"your password",onChange:er,type:"password",className:j().input,name:"password","data-field":"password"})]}),(0,s.jsx)("div",{className:Y().checkBoxWrapper,children:(0,s.jsx)(L.Z,{checkMarkClassName:Y().checkbox,className:Y().checkboxText,small:!0,value:G,onChange:e=>el(e.target.checked),label:"Send me the Ranker-Verse newsletter with trending & most popular stories"})}),(0,s.jsxs)("div",{className:j().bottomElements,children:[a?(0,s.jsx)("span",{className:"".concat(j().resultMessage," ").concat(j().resultMessageAlert),children:a}):null,(0,s.jsx)(Z.ZP,{className:j().actionButton,type:"submit",size:Z.Gt.large,children:"sign up!"}),(0,s.jsxs)("span",{className:"".concat(j().text),children:["By signing up, you agree to Ranker's"," ",(0,s.jsx)("a",{href:(0,P.cy)(R),children:"Terms of Service"})," and"," ",(0,s.jsx)("a",{href:(0,P.cy)(I),children:"Privacy Policy"})]})]}),A?(0,s.jsx)(c.Z,{ref:ee,size:"invisible",sitekey:H.RECAPTCHA_KEY}):null]})]})})},76652:(e,a,t)=>{"use strict";t.d(a,{Z:()=>c});var s=t(85893),n=t(94184),r=t.n(n),i=t(15879),l=t.n(i),o=t(96305);let c=e=>{let{title:a="",label:t="",name:n="",value:i=!1,className:c="",color:d="darkBlue",onChange:u,small:m=!1,disabled:h=!1,checkMarkClassName:p="",id:v}=e;return(0,s.jsxs)("label",{title:a,className:r()(l().container,c,{[l().small]:m}),children:[t,(0,s.jsx)(o.default,{name:n,onChange:u,id:v,type:"checkbox",value:i,disabled:h,readOnly:!u}),(0,s.jsx)("span",{className:r()(l().checkmark,p,{[l()[d]]:d,[l().disabled]:h})})]})}},31160:(e,a,t)=>{"use strict";t.d(a,{L:()=>i});var s=t(9377),n=t(47834);let r=()=>{let e=new URLSearchParams(window.location.search);return{utmSource:e.get("utm_source"),utmMedium:e.get("utm_medium")}},i=function(e,a,t,i){var l;let o,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s._S,d={email:e,source:c,lists:a,onSuccess:()=>{try{t(),(0,n.Ul)()}catch(e){}},onError:i},{utmSource:u,utmMedium:m}=r(),h={};u&&(h.utm_source=u),m&&(h.utm_medium=m),(u||m)&&(d.vars=h),l=e=>{e.integration("userSignUp",d)},(o=window.Sailthru)?l(window.Sailthru):((o=document.createElement("script")).src=n.nJ,o.onload=()=>{(0,n.tf)(),l(window.Sailthru)},document.head.append(o))}},28666:e=>{e.exports={main:"input_main__Lm6dm"}},18891:e=>{e.exports={checkBoxWrapper:"SignUp_checkBoxWrapper__dkco7",checkbox:"SignUp_checkbox__OTsN0",checkboxText:"SignUp_checkboxText__I0zEn"}},15879:e=>{e.exports={container:"checkbox_container___dTqF",small:"checkbox_small__SbxRR",checkmark:"checkbox_checkmark__iTwo8",darkCyanBlue:"checkbox_darkCyanBlue__vLzwy",disabled:"checkbox_disabled__F_5XS"}}}]);
2//# sourceMappingURL=5043-3851271239182908.js.map

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.