PageSourceSearch

https://static.remotasks.com/remotasks.com/_S0eR73PmqWnMQNpgqNIP/_next/static/chunks/32563-e790f82ce1260f02.js

js remotasks.com collected 2026-10-03 19:28:28 UTC 16,383 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32563],{840223:function(e,t,r){r.d(t,{a:function(){return SeonAgent}});var n=r(667488),s=r(885115),i=r(493274),a=r.n(i),o=r(541053),u=r(663752),c=r(946011);let seonAgentGetSession=async e=>{if(e===c.Np.V6)return await seon.getSession({dnsResolverDomain:"seondfresolver.com"});throw Error("SeonAgentVersion ".concat(e," is not supported."))},useCreateSeonTransaction=e=>(0,o.useMutation)("useCreateSeonTransaction",async()=>{try{let{shouldEvaluate:t}=await (0,u.ZP)(null,"internal/fraud/should_evaluate?actionType=".concat(encodeURIComponent(e.seonActionType)),{method:"GET"});if(!t)return}catch(e){}let t=await seonAgentGetSession(e.seonAgentVersion);return(0,u.ZP)(null,"internal/fraud/transaction",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionPayload:t,actionType:e.seonActionType,seonAgentVersion:e.seonAgentVersion})})},{onSuccess:()=>{},onError:e=>(0,u.vj)(e,{handleHttp:!0})});var d=r(471454),l=r(910974);let SeonAgent=e=>{let{user:t,seonAgentVersion:r,seonActionType:i}
1=e,[o,u]=(0,s.useState)(!0),[c,p]=(0,s.useState)(!1),{mutate:f}=useCreateSeonTransaction({seonAgentVersion:r,seonActionType:i});return(0,s.useEffect)(()=>{o||c||f()},[f,c,o]),(0,n.jsx)(a(),{url:(0,l.lP)(r),onLoad:()=>{(0,d.Kz)(d.ju.SeonAgentEvent,{userId:t.id,seonAgentVersion:r,seonActionType:i,success:!0}),u(!1)},onError:()=>{(0,d.Kz)(d.ju.SeonAgentEvent,{userId:t.id,seonAgentVersion:r,seonActionType:i,success:!1}),p(!0),u(!1)}})}},967655:function(e,t,r){r.d(t,{Fl:function(){return findCurrentClaim},NG:function(){return fetchCheatingStatusOptions},Wc:function(){return getPublicTrustAndSafetyProfileUrl},_3:function(){return evaluateSardine},i$:function(){return formatTimestamp},jU:function(){return fetchFraudStatusOptions},q6:function(){return areAllTaskersClaimedByUser},tC:function(){return statusToDisplayText},uE:function(){return getFirstInsightTrustAndSafetyProfileUrl}});var n=r(457708),s=r(728030),i=r(747910),a=r.n(i),o=r(613004),u=r(168531),c=r(663752),d=r(48976);let statusToDisplayText=e=>{if(n.MY.SuspectedByRuleEngine===e)return"Suspected by Rule Engine";let t=a().startCase(e.replace("_"," ")),r=t.slice(-1);return r>="0"&&r<="9"?t.slice(0,-2)+t.slice(-1):t},findCurrentClaim=e=>e.claims&&e.claims.slice(-1).length&&new Date<new Date(e.claims.slice(-1)[0].expiresAt)&&new Date>new Date(e.claims.slice(-1)[0].startsAt)?e.claims.slice(-1)[0].claimedBy:"",areAllTaskersClaimedByUser=(e,t)=>a().every(e,e=>findCurrentClaim(e)===t._id),formatTimestamp=e=>{if("N/A"===e)return e;let t=new Date(e).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});return t},fetchStatusOptions=(e,t,r,i,a)=>{let o=e===s.f.Cheating?n.Jr:n.dU,u=e===s.f.Cheating?n.JT:n.VZ,c=e===s.f.Cheating?n.rn:n.Og;if(!t||r)return o;if(i)return u;if(a)return c;throw Error("User does not have permission to update ".concat(e," status"))},fetchFraudStatusOptions=(e,t,r,n)=>fetchStatusOptions(s.f.Fraud,e,t,r,n),fetchCheatingStatusOptions=(e,t,r,n)=>fetchStatusOptions(s.f.Cheating,e,t,r,n),getPublicRedashParams=e=>{let t=e.split("").map(e=>e.charCodeAt(0));return t.map((e,t)=>"p_s".concat(t+1,"=").concat(e)).join("&")},getPublicTrustAndSafetyProfileUrl=e=>{let t=getPublicRedashParams(e);return"".concat("https://redash.scale.com/public/dashboards/DIe4yuxEradt2I7E6GFtFsHWAHFS9IQemMtjAFHL?org_slug=default","&").concat(t)},getFirstInsightTrustAndSafetyProfileUrl=e=>{let t=getPublicRedashParams(e);return"".concat("https://redash.scale.com/public/dashboards/1Y22L2Es003iJ8vISzLH9uFkUIHqksu4LgeIzgaN?org_slug=default","&").concat(t)},evaluateSardine=function(e){var t,r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.mz.ONBOARDING,s=null!==(r=null===(t=sessionStorage)||void 0===t?void 0:t.getItem("sessionId"))&&void 0!==r?r:(0,u.tQ)();(0,d.sr)({customerId:e._id,sessionKey:s});let i={body:JSON.stringify({sessionId:s,sessionType:n}),headers:{"Content-Type":"application/json"},method:"POST"};(0,c.ZP)(null,"internal/fraud/log_session",i)}},457708:function(e,t,r){var n,s,i,a,o,u,c,d,l,p,f,m,h,g,y,S,b;r.d(t,{BC:function(){return s},DN:function(){return u},GU:function(){return R},GV:function(){return I},JT:function(){return E},Jr:function(){return T},MY:function(){return n},Og:function(){return A},VZ:function(){return C},Vl:function(){return i},W7:function(){return stringToArray},Wn:function(){return a},dU:function(){return v},eV:function(){return l},g_:function(){return L},iL:function(){return w},qv:function(){return d},rn:function(){return P},t4:function(){return c}}),(p=n||(n={})).NotSuspected="not_suspected",p.SuspectedByRuleEngine="suspected_fraud",p.MaybeSuspectedByAudit="maybe_suspected_by_audit",p.SuspectedByAudit="suspected_by_audit",p.ConfirmedNotFraud="confirmed_not_fraud",p.ConfirmedFraud="confirmed_fraud",p.MaybeSuspectedByAuditL1="maybe_suspected_by_audit_l1",p.SuspectedByAuditL1="suspected_by_audit_l1",p.ConfirmedNotFraudL1="confirmed_not_fraud_l1",p.MaybeSuspectedByAuditL2="maybe_suspected_by_audit_l2",p.SuspectedByAuditL2="suspected_by_audit_l2",p.ConfirmedNotFraudL2="confirmed_not_fraud_l2",(f=s||(s={}
1)).NotSuspected="not_suspected",f.SuspectedByRuleEngine="suspected_cheating",f.MaybeSuspectedByAudit="maybe_suspected_by_audit",f.SuspectedByAudit="suspected_by_audit",f.ConfirmedNotCheating="confirmed_not_cheating",f.ConfirmedCheating="confirmed_cheating",f.MaybeSuspectedByAuditL1="maybe_suspected_by_audit_l1",f.SuspectedByAuditL1="suspected_by_audit_l1",f.ConfirmedNotCheatingL1="confirmed_not_cheating_l1",f.MaybeSuspectedByAuditL2="maybe_suspected_by_audit_l2",f.SuspectedByAuditL2="suspected_by_audit_l2",f.ConfirmedNotCheatingL2="confirmed_not_cheating_l2";let v=["not_suspected","maybe_suspected_by_audit","suspected_by_audit","confirmed_not_fraud"],T=["not_suspected","maybe_suspected_by_audit","suspected_by_audit","confirmed_not_cheating","confirmed_cheating"],A=["not_suspected","maybe_suspected_by_audit_l1","suspected_by_audit_l1","confirmed_not_fraud_l1"],P=["not_suspected","maybe_suspected_by_audit_l1","suspected_by_audit_l1","confirmed_not_cheating_l1"],C=["not_suspected","maybe_suspected_by_audit_l2","suspected_by_audit_l2","confirmed_not_fraud_l2"],E=["not_suspected","maybe_suspected_by_audit_l2","suspected_by_audit_l2","confirmed_not_cheating_l2"],I=["not_suspected","suspected_fraud","maybe_suspected_by_audit_l1","suspected_by_audit_l1","confirmed_not_fraud_l1","maybe_suspected_by_audit_l2","maybe_suspected_by_audit","not_suspected","suspected_cheating","maybe_suspected_by_audit_l1","suspected_by_audit_l1","confirmed_not_cheating_l1","maybe_suspected_by_audit_l2","maybe_suspected_by_audit"],w=["maybe_suspected_by_audit","suspected_by_audit","suspected_fraud","maybe_suspected_by_audit_l1","suspected_by_audit_l1","maybe_suspected_by_audit_l2","suspected_by_audit_l2","maybe_suspected_by_audit","suspected_by_audit","suspected_cheating","maybe_suspected_by_audit_l1","suspected_by_audit_l1","maybe_suspected_by_audit_l2","suspected_by_audit_l2","confirmed_cheating"],R=["confirmed_not_fraud","confirmed_not_fraud_l1","confirmed_not_fraud_l2","confirmed_not_cheating","confirmed_not_cheating_l1","confirmed_not_cheating_l2"];(i||(i={})).All="all",(m=a||(a={})).Ban="ban",m.Unban="unban",(h=o||(o={})).ASC="asc",h.DESC="desc";let stringToArray=e=>e.split(/[ .:;?!~,`"&|()<>{}[\]\r\n/\\]+/);(g=u||(u={})).Tasker="tasker",g.Email="email",g.WorkerTeam="workerTeam",g.Project="project",(y=c||(c={})).All="all",y.Remotasks="remotasks",y.Outlier="outlier",(S=d||(d={})).Claim="claim",S.Unclaim="unclaim",(b=l||(l={})).Strike1="Strike 1",b.PlatinumStrike1="Platinum Strike 1",b.Strike2="Strike 2",b.PlatinumStrike2="Platinum Strike 2";let L=2e4},832563:function(e,t,r){r.d(t,{Z:function(){return _class}});var n,s,i=r(667488),a=r(844274),o=r(183344),u=r.n(o),c=r(885115),d=r(760905),l=r.n(d),p=r(349409),f=r(780125),m=r.n(f),h=r(642266),g=r(663752),y=r(763089),S=r(217793),b=r(953715),v=r(499016),T=r(557860),A=r(90272),P=r(243553),C=r(584927),E=r(471454);(n=s||(s={})).EmailPassword="EmailPassword",n.GoogleLogin="GoogleLogin",n.FacebookLogin="FacebookLogin";var I=r(954363),w=r(747910),R=r.n(w);function replaceRapidWithPro(e){return R().isString(e)?e.replace("rapid","products"):e}var L=r(967655),D=r(613004),N=r(840223),x=r(946011),O=r(975343);let SeonAgentGate=e=>{let{user:t,actionType:r}=e,{data:n,isLoading:s}=(0,O._z)("seon-call",{userId:t._id},!1);return s||!n?null:(0,i.jsx)(N.a,{user:t,seonAgentVersion:x.Np.V6,seonActionType:r})};var U=r(617283);let _class=class _class extends c.Component{static buildGetInitialProps(e){return(t,r)=>{let{user:n}=r,{error:s,redirect_url:i,clear:a,referCode:o}=t.query;if(i=(0,v.ZJ)(replaceRapidWithPro(i)||e.indexUrl),!(a=!!a)&&n){let r="remotasks.com"===U.env.NEXT_DIR,s=n.accountType===e.accountType?i:r?"/dashboard":T.IS_FEDERAL?"":"/products";return(0,p.ZP)(t,s)}return{...e,error:s,redirectUrl:i,clear:a,referCode:o}}}static getPageConfigForKinds(e){let t="remotasks.com"===U.env.NEXT_DIR;return{user:{kinds:e,authorize:e=>{let{user:r,query:n}=e;return{success:!r||!!n.clear,redirectUrl:(0,v.ZJ)(replaceRapidWithPro(n.redirect_url)||(t?"/dashboard":T.IS_FEDERAL?"":"/products"))}},required:!1},...1===e.length&&"customer"===e[0]?{customerIdentity:{fetch:!0,required:!1,hook:e=>{let{query:t}=e;return{redirectUrl:t.clear?void 0:(0,v.ZJ)("/profiles?redirect_url=".concat(replaceRapidWithPro(t.redirect_url)||"/products"))}}}}:{}}}async componentDidMount(){let{clear:e}=this.props,t=replaceRapidWithPro(this.props.redirectUrl);if((0,v.YP)(t)||m().prefetch((0,p.AH)(t)),e&&(h.Z.flush(),await (0,g.ZP)(null,"internal/logout",{query:{autologout:1}}),a.get("corploginprovider")&&!T.IS_FEDERAL))return(0,p.Tm)("/corp/login?".concat(u().stringify({redirect_url:t,clear:e})))}async loginSuccess(){h.Z.flush();let e=replaceRapidWithPro(this.props.redirectUrl),t=await (0,C.Z)(null);if(t)return window.location.href="/profiles?redirect_url=".concat(encodeURIComponent(e||"/products")),new Promise(_.noop);let r=await (0,b.Z)(null);if(r.accountType===this.props.accountType||"worker"===this.props.accountType&&r.isRemoAdmin)return(0,v.YP)(e)?(0,p.Tm)(e,!0):(0,p.Tm)(e);if(T.IS_FEDERAL&&r.isCorporateUser&&this.props.accountType===A.AccountType.User)return(0,p.Tm)("/corp");h.Z.flush();
1let n="user"===r.accountType?(0,i.jsx)("a",{href:(0,v.LR)("/login"),children:"scale.com"}):(0,i.jsx)("a",{href:(0,v.aQ)("/login"),children:"remotasks.com"});this.setState({flashMessage:(0,i.jsxs)("span",{children:["Please log in at ",n]})}),(0,y.RT)()}getErrorMessage(e,t){switch(e){case 401:if(t.includes(I.ed))return t;return"Invalid credentials";case 403:return(0,i.jsxs)("span",{children:["Your password must be reset for improved security.",(0,i.jsx)("br",{}),"Please ",(0,i.jsx)("a",{href:"/forgot",children:"reset it"}),"."]});case 410:return(0,i.jsxs)("span",{children:["Please use /corp/login to log into corporate accounts.",(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"/corp/login",children:"Corp"})]});default:return t||"Error logging in"}}extractQueryParams(e){let{redirectUrl:t,signupFlow:r}=this.props;return t&&(e+="?redirect_url=".concat(replaceRapidWithPro(t))),r&&(e+=(e.includes("?")?"&":"?")+"signupFlow=".concat(r)),e}async authenticate(e){e.preventDefault(),this.setState({flashMessage:""});let t="/internal/loginNext";"worker"===this.props.accountType&&(t+="/worker"),t=this.extractQueryParams(t);try{var r,n,i,a,o,u;let e=null!==(o=null===(r=this.emailInput.value)||void 0===r?void 0:r.toLowerCase())&&void 0!==o?o:null===(i=this.emailInput.input)||void 0===i?void 0:null===(n=i.value)||void 0===n?void 0:n.toLowerCase(),c=null!==(u=this.passwordInput.value)&&void 0!==u?u:null===(a=this.passwordInput.input)||void 0===a?void 0:a.value,d={userEmail:e,loginMethod:s.EmailPassword};(0,E.Kz)(E.ju.LoginMethodEvent,d),this.props.accountType===A.AccountType.User&&T.IDENTITY_SERVICE_DASHBOARD_PASSWORD_LOGIN_ENABLED&&(t=T.IDENTITY_SERVICE_DASHBOARD_PASSWORD_LOGIN_URL),(0,y.t7)();let f=await l()(t,{method:"POST",body:JSON.stringify({email:e,password:c}),headers:{"Content-Type":"application/json"},credentials:"include"});if(f.ok){try{let e=await l()("/internal/logged_in_user",{credentials:"include"});if(e.ok){let t=await e.json();(0,L._3)(t,D.mz.LOGIN),this.setState({showSeonGate:!0,seonUser:t})}}catch(e){}this.loginSuccess();return}if(400===f.status){let t;try{if(t=await f.text(),"mfa_required"===t){let t=e.includes("+worker")&&"user"===this.props.accountType,r=replaceRapidWithPro(this.props.redirectUrl)||(t?"/corp":"");return(0,p.Tm)("/mfa".concat(r?"?redirect_url="+r:""),T.IS_FEDERAL)}}catch(e){}try{if(t===P.T0Z)return(0,p.Tm)("/migration")}catch(e){}}let m=await (0,S._4)(f,"login",[401,403,422]);try{m=JSON.parse(m).error}catch(e){}this.setState({flashMessage:this.getErrorMessage(f.status,m)}),(0,y.RT)()}catch(e){(0,S.dO)(e,"login"),this.setState({flashMessage:this.getErrorMessage(500)}),(0,y.RT)()}}async signUpWithEmail(e,t){e.preventDefault(),this.setState({flashMessage:""});let r="/internal/login/remotasks/signup";try{var n,i,a,o,u,c,d,f;let e=null!==(c=null===(n=this.emailInput.value)||void 0===n?void 0:n.toLowerCase())&&void 0!==c?c:null===(a=this.emailInput.input)||void 0===a?void 0:null===(i=a.value)||void 0===i?void 0:i.toLowerCase(),m=null!==(d=this.passwordInput.value)&&void 0!==d?d:null===(o=this.passwordInput.input)||void 0===o?void 0:o.value,h=null!==(f=this.nameInput.value)&&void 0!==f?f:null===(u=this.nameInput.input)||void 0===u?void 0:u.value,g={userEmail:e,loginMethod:s.EmailPassword};(0,E.Kz)(E.ju.LoginMethodEvent,g),this.props.accountType===A.AccountType.User&&T.IDENTITY_SERVICE_DASHBOARD_PASSWORD_LOGIN_ENABLED&&(r=T.IDENTITY_SERVICE_DASHBOARD_PASSWORD_LOGIN_URL),(0,y.t7)(),r=(0,v.KV)("",r,t);let S=await l()(r,{method:"POST",body:JSON.stringify({email:e,password:m,displayName:h}),headers:{"Content-Type":"application/json"},credentials:"include"});if(S.ok){(0,p.ZP)(null,"/account-setup/check-email?email="+e);return}{let e;let t=S.status;if(422===t)e="Please use a stronger password";else if(403===t)e="An account already exists for this email";else if(400===t)try{let t=await S.json();if((e=t.error)===P.T0Z)return(0,p.Tm)("/migration")}catch(t){e="An error occurred, please try again later"}this.setState({flashMessage:this.getErrorMessage(t,e)}),(0,y.RT)()}}catch(e){(0,S.dO)(e,"login"),this.setState({flashMessage:this.getErrorMessage(e.status)}),(0,y.RT)()}}render(){return(0,i.jsx)(i.Fragment,{children:this.state.showSeonGate&&this.state.seonUser&&(0,i.jsx)(SeonAgentGate,{user:this.state.seonUser,actionType:x.gP.LOGIN})})}constructor(e){super(e),this.state={flashMessage:this.props.error?this.getErrorMessage(parseInt(this.props.error)):"",showSeonGate:!1,seonUser:null}}}},910974:function(e,t,r){r.d(t,{g$:function(){return filterMatchingCopyPastePairs},lP:function(){return getSeonAgentScriptUrlForVersion}});var n=r(946011),s=r(613004);let getSeonAgentScriptUrlForVersion=e=>{if(e===n.Np.V6)return s.u$;throw Error("Version ".concat(e," not supported."))},normalizeClipboardText=e=>e.replace(/\s+/g," ").trim(),filterMatchingCopyPastePairs=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.map(e=>({event:e,text:normalizeClipboardText(e.text)})),s=t.map(e=>({event:e,text:normalizeClipboardText(e.text)})),textMatches=(e,t)=>{var n,s;return e===t||null!==(s=null===(n=r.isNearDuplicate)||void 0===n?void 0:n.call(r,e,t))&&void 0!==s&&s},{earlyExit:i}=r,a=[],o=0;for(let e of s)if(!n.some(t=>textMatches(t.text,e.text)&&t.event.timestamp<=e.event.timestamp)&&(a.push(e.event),i&&(o+=i.weightOf(e.text))>=i.limit))return{filteredCopy:[],filteredPaste:a};let u=n.filter(e=>!s.some(t=>textMatches(e.text,t.text)&&t.event.timestamp>=e.event.timestamp)).map(e=>e.event);return{filteredCopy:u,filteredPaste:a}}},954363:function(e,t,r){var n,s,i,a;r.d(t,{D4:function(){return n},ed:function(){return o}}),r(90272),(i=n||(n={}))[i.Pending=0]="Pending",i[i.InProgress=1]="InProgress",i[i.Completed=2]="Completed",(a=s||(s={})).Unverified="unverified",a.Pending="pending",a.Verified="verified";let o="Your account was closed due to prolonged inactivity under our Terms of Use."},728030:function(e,t,r){var n,s;r.d(t,{f:function(){return n}}),(s=n||(n={})).Fraud="fraud",s.Cheating="cheating",s.Spam="spam",s.Other="other"}}]);

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.