PageSourceSearch

https://app.outlier.ai/_next/static/chunks/42639-7988fdef2ae777f5.js

js outlier.ai collected 2026-09-24 17:38:16 UTC 49,769 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42639],{801830:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(128683),i=n(671577),a=n(465277);let o=e=>{let{icon:t,color:n="neutral",size:o="md",label:l="icon"}=e;return(0,r.jsx)(i.q,{size:"sm"===o?"3":"md"===o?"4":"6",radius:"full",variant:"soft",color:n,fallback:(0,r.jsx)(a.J,{icon:t,label:l,size:"sm"===o?"3":"md"===o?"4":"6"})})}},718916:function(e,t,n){"use strict";n.d(t,{OutlierLink:function(){return p}});var r=n(128683),i=n(377825),a=n(942871),o=n(36286),l=n.n(o),s=n(494813),c=n(461627),u=n(461616),d=n(37028),f=n(553933);let p=e=>{let{href:t,children:n,keepModalsOpen:o=!1,newTab:p=!1,hardNavigate:h=!1,...m}=e,{closeMissionDetails:g}=(0,s.mx)(),{setIsOpen:v}=(0,c.jA)(),{setIsOpen:x}=(0,u.kg)(),y=(0,a.useRef)(!1),b=(0,d.C)(),[j,w]=(0,a.useState)(!1);(0,a.useEffect)(()=>w(!0),[]),(0,a.useEffect)(()=>{y.current&&(g(),v(!1),x(!1),y.current=!1)},[g,v,x]);let k="string"==typeof t?t:t.pathname||"",S=j?(0,f.s1)(k)||(0,f.qv)(k):(0,f.RN)(k),C=e=>{let t=e.metaKey||e.ctrlKey;if(S&&!p&&!t){e.preventDefault(),b.push(k,{keepModalsOpen:o});return}p||t||h||l().start(),o||(y.current=!0)};return S||h?(0,r.jsx)("a",{href:k,onClick:C,...p&&{target:"_blank",rel:"noopener noreferrer"},...m,children:n}):(0,r.jsx)(i.default,{href:t,onClick:C,...m,...p&&{target:"_blank",rel:"noopener noreferrer"},children:n})}},606607:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(128683),i=n(942871),a=n(121264),o=n(317486);let l=i.memo(e=>{let{workerSkills:t,initials:n,size:l="4"}=e,{leftColor:s,rightColor:c}=i.useMemo(()=>(0,a.X)(t),[t]),{resolvedTheme:u}=(0,o.F)(),d={1:{fontSize:"12px",width:"20px",height:"20px"},2:{fontSize:"14px",width:"24px",height:"24px"},3:{fontSize:"16px",width:"32px",height:"32px"},4:{fontSize:"18px",width:"40px",height:"40px"},5:{fontSize:"24px",width:"48px",height:"48px"},6:{fontSize:"28px",width:"64px",height:"64px"},7:{fontSize:"35px",width:"80px",height:"80px"},8:{fontSize:"60px",width:"128px",height:"128px"},9:{fontSize:"80px",width:"160px",height:"160px"}}[l];return(0,r.jsx)("div",{style:{width:d.width,height:d.height,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"dark"===u?"var(--Colors-Neutral-2---subtle-background, #191919)":"white",fontSize:d.fontSize,fontWeight:"600",fontStyle:"italic",fontFamily:"system-ui, -apple-system, sans-serif",position:"relative"},children:(0,r.jsx)("span",{style:{backgroundImage:"linear-gradient(90deg, ".concat(s," 0%, ").concat(s," 20%, ").concat(c," 80%, ").concat(c," 100%)"),backgroundClip:"text",WebkitBackgroundClip:"text",color:"transparent",lineHeight:"1.2",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},children:n})})});l.displayName="OutlierMonogram"},650520:function(e,t,n){"use strict";n.r(t),n.d(t,{ThemedImage:function(){return o}});var r=n(128683),i=n(168601),a=n(317486);n(942871);let o=e=>{var t;let{className:n,invertInDark:o=!0,...l}=e,{resolvedTheme:s}=(0,a.F)(),c=o&&"dark"===s?"brightness(0) invert(1)":void 0,u=c?{...l.style,filter:(null===(t=l.style)||void 0===t?void 0:t.filter)?"".concat(l.style.filter," ").concat(c):c}:l.style;return(0,r.jsx)(i.default,{...l,className:n,style:u})};t.default=o},267744:function(e,t,n){"use strict";n.d(t,{b:function(){return p}});var r=n(128683),i=n(591662),a=n(262610),o=n(974118),l=n(792617),s=n(465277),c=n(573495),u=n(413141),d=n(977324),f=n(150059);function p(e){let{step:t,children:n,side:p="bottom",standaloneMode:h=!1}=e,{currentStep:m,hasSeenModal:g,nextStep:v,finishTour:x,hasSeenProjectQueueTooltip:y,markProjectQueueTooltipSeen:b,isComplete:j,availableSteps:w}=(0,d.F)(),k=(0,f._3)(t),S=w.indexOf(t),C=w.length,N=S>=0?"".concat(S+1," of ").concat(C):k.stepCountDisplay,P=t===f.v9.PROJECT_QUEUE,I=h&&P&&!y&&g&&j,A=m===t&&g&&!j||I,O=t===f.v9.PROFILE_IMAGE;return(0,r.jsx)(i.Tooltip,{open:A,content:(0,r.jsxs)(a.k,{direction:"column",justify:"center",align:"center",p:"4",style:{maxWidth:"279px",alignSelf:"stretch"}
1,children:[(0,r.jsxs)(a.k,{justify:"between",align:"start",gap:"2",style:{width:"100%"},children:[(0,r.jsx)(o.xv,{size:"2",weight:"semibold",style:{flex:1},children:k.title}),(0,r.jsx)(l.h,{size:"2",radius:"full",variant:"ghost",onClick:()=>{I&&P?b():x()},"aria-label":"Close tour",children:(0,r.jsx)(s.J,{icon:u.YIN,size:"2",label:"close",color:"neutral"})})]}),(0,r.jsx)("div",{style:{height:"8px"}}),(0,r.jsx)(a.k,{direction:"column",align:"start",style:{width:"100%"},children:(0,r.jsx)(o.xv,{size:"1",children:k.description})}),(0,r.jsx)("div",{style:{height:"12px"}}),(0,r.jsxs)(a.k,{justify:"between",align:"center",gap:"2",style:{width:"100%"},children:[!I&&(0,r.jsx)(o.xv,{size:"1",children:N}),(0,r.jsx)(c.z,{size:"1",variant:"solid",color:"accent",radius:"small",onClick:()=>{P&&b(),I||O?x():v()},style:{background:"var(--accent-9)",marginLeft:I?"auto":"0"},children:I?"Done":k.nextButtonLabel})]})]}),side:p,children:n})}},42639:function(e,t,n){"use strict";n.d(t,{V:function(){return eb},Z:function(){return ej}});var r=n(128683),i=n(262610),a=n(974118),o=n(792617),l=n(465277),s=n(573495),c=n(159472),u=n(754095),d=n(637029),f=n(886022),p=n(555426),h=n(413141),m=n(207455),g=n(472630),v=n(207286),x=n(489290),y=n(113363),b=n(553933),j=n(725075),w=n(902685);let k=()=>{let e=(0,w.q)(j.Tl.ACCESS_PLAYGROUND);return[{key:y.W_.Dashboard,label:y.W_.Dashboard,href:b.R6.dashboard()},{key:y.W_.Marketplace,label:y.W_.Marketplace,href:b.R6.marketplace()},{key:y.W_.Earnings,label:y.W_.Earnings,href:b.R6.earnings()},{key:y.W_.Missions,label:y.W_.Missions,href:b.R6.missions()},{key:y.W_.QualityInsights,label:y.W_.QualityInsights,href:b.R6.qualityInsights()},...e?[{key:y.W_.Playground,label:y.W_.Playground,href:(0,b.rP)()}]:[]]},S=[{key:y.W_.Referrals,label:y.W_.Referrals,href:b.R6.referrals(),icon:h.NdV,iconBadgeColor:"neutral"},{key:y.W_.Skills,label:y.W_.Skills,href:b.R6.skills(),icon:h.rWn,iconBadgeColor:"mint"},{key:y.W_.Webinars,label:y.W_.Webinars,href:b.R6.webinar(),icon:h.tc$,iconBadgeColor:"amber"},{key:y.W_.Community,label:y.W_.Community,href:b.R6.community(),icon:h.fTd,iconBadgeColor:"info"},{key:y.W_.ProjectHistory,label:y.W_.ProjectHistory,href:b.R6.projectHistory(),icon:h.s2,iconBadgeColor:"neutral"}],C=()=>{let e=(0,w.q)(j.Tl.UNLOCK_PROJECTS),t=(0,w.q)(j.Tl.ACCESS_OUTLIER_COMMUNITY);return S.filter(n=>(n.key!==y.W_.Skills||!!e)&&(n.key!==y.W_.Webinars||!!e)&&(n.key!==y.W_.Community||!!t))};var N=n(718916),P=n(801830),I=n(518616);let A="flex flex-col items-center rounded-md py-2 px-3 hover:bg-neutral-3 transition-colors",O=()=>{let e=C();return(0,r.jsxs)(i.k,{direction:"column",gap:"2",p:"3",width:"224px",className:"text-neutral-12",children:[(0,r.jsx)(a.xv,{size:"2",weight:"semibold",children:"More Features"}),(0,r.jsx)(g.r,{columns:"2",gap:"2",children:e.map((t,n)=>{var i,o;let l=t.href&&(0,b.sD)(t.href),s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.G,{icon:t.icon,color:null!==(i=t.iconBadgeColor)&&void 0!==i?i:"neutral",size:"lg",label:t.label}),(0,r.jsx)(a.xv,{size:"1",weight:"medium",children:t.label})]});return(0,r.jsx)(v.x,{className:n===e.length-1&&e.length%2==1?"col-span-2 flex justify-center items-center":"flex justify-center items-center",children:l?(0,r.jsx)("button",{type:"button",onClick:()=>t.href&&window.location.assign(t.href),className:A,"aria-label":t.label,children:s}):(0,r.jsx)(N.OutlierLink,{href:(0,I.p)(null!==(o=t.href)&&void 0!==o?o:"#"),className:A,"aria-label":t.label,children:s})},t.key)})})]})},E=()=>(0,r.jsx)(v.x,{className:"hidden md:flex",children:(0,r.jsxs)(x.Root,{children:[(0,r.jsx)(x.Trigger,{children:(0,r.jsx)(o.h,{variant:"ghost",color:"neutral","aria-label":"Open feature drawer",className:"focus:outline-none",children:(0,r.jsx)(l.J,{label:"grid",icon:h.Vr3,size:"3"})})}),(0,r.jsx)(x.Content,{className:"rounded-2xl hidden md:flex",children:(0,r.jsx)(O,{})})]})});var M=n(818688),_=n(942871),R=n(434240),T=n(926911),L=n(536973),W=n(338061),z=n.n(W),D=n(287706),F=n(233261),U=n(473185),q=n(72304),B=n(71628);let Q=e=>{switch(e.type){case M.w$v.ProjectInvite:return"Exclusive Project Invitation";case M.w$v.WebinarInvite:return"Webinar Invitation";case M.w$v.WebinarInviteCancellation:return"Webinar Cancelled: ".concat(e.webinarName);
1case M.w$v.OracleContributor:return"Congratulations, You're an Oracle Member";case M.w$v.PaymentSetup:return"Payment Setup Required";case M.w$v.Playground:return"Explore the world's top AI models";case M.w$v.NewPlaygroundModel:return"New AI Model Available on Playground";case M.w$v.VerifyYourAccount:return"Verify Your Account";case M.w$v.BlockedDuplicateAccount:return"Account Access Issue";case M.w$v.AssignedCourse:return"Review important materials";case M.w$v.ProjectBasedMission:return"New Mission for ".concat(e.projectName);case M.w$v.ProjectReferralsEligible:return"Work With Your Friends on ".concat(e.projectName);case M.w$v.ReferralsUserPayoutEligible:return"Invite your friends to Outlier";case M.w$v.ReferralsPlatformEligible:return"Invite friends to Outlier";case M.w$v.GlobalReferToProject:return"Earn higher referral rewards on new projects";case M.w$v.JoinCommunity:return"Join Your Project Community";case M.w$v.VerifyLinkedIn:return"Connect Your LinkedIn Profile";case M.w$v.UploadResume:return"Upload Your Resume";case M.w$v.TasksTemporarilyUnavailable:return"Tasks are currently unavailable";case M.w$v.AddressVerificationDeclined:return"Update required to keep access";default:return"New Announcement"}};var K=n(37028),J=n(639730),$=n(444696),Y=n(403987),V=n(612490);n(10400);let Z=e=>e&&"object"==typeof e?"title"in e&&"string"==typeof e.title?e.title:"type"in e&&"string"==typeof e.type?Q(e):"Notification":"Notification",G=e=>{let{notification:t,onClick:n}=e,o=t.status===M.n4s.Unread;return(0,r.jsx)(v.x,{onClick:n,className:"v2-notification-message border-b cursor-pointer transition-colors",children:(0,r.jsxs)(i.k,{align:"start",p:"4",gap:"3",children:[(0,r.jsx)(v.x,{className:"w-2 h-2 mt-2 rounded-full flex-shrink-0",style:{backgroundColor:o?"var(--colors-tomato-9-light)":"transparent"}}),(0,r.jsxs)(i.k,{direction:"column",flexGrow:"1",children:[(0,r.jsx)(v.x,{style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:(0,r.jsx)(a.xv,{size:"2",color:o?void 0:"neutral",weight:o?"medium":"regular",children:t.title})}),!t.isPriority&&(0,r.jsx)(a.xv,{size:"1",mt:"2",color:"neutral",children:(0,J.Q)(new Date(t.createdAt),{addSuffix:!0})})]})]})})};var H=e=>{let{isV2Enabled:t=!1}=e,n=(0,K.C)(),o=(0,$.xz)(),l=(0,V.useQueryClient)(),{data:c,isLoading:u}=(0,B.v1)({status:[B.fL.Unread,B.fL.Seen],limit:5,enabled:t}),{mutateAsync:d,isPending:f}=(0,B.$w)(),{combinedMessages:p,isLoading:h}=(0,D.Z)(),{markNotificationAsSeen:m}=(0,U.Z)(),{mutateAsync:g}=(0,q.y)({}),v=(0,$.DW)(),{data:x,isLoading:y}=(0,F.aS)({types:[M.K29.OutlierAnnouncement],statuses:[M.n4s.Unread,M.n4s.Seen],refetchInterval:6e4}),{data:j,isPending:w,isLoading:k}=(0,R.h)(),S=null==j?void 0:j.announcements,C=t?u||w:h||y||k,N=(0,_.useMemo)(()=>{if(t)return[];let e=[...p,...(null==x?void 0:x.OutlierV2Announcement)||[]].map((e,t)=>({...e,id:e.id||"notification-".concat(t)})),n=z()(e,"id");return n.sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),n},[p,x,t]),P=(0,_.useMemo)(()=>t&&(null==c?void 0:c.notifications)?c.notifications.map(e=>{var t,n,r;return{id:e.id,title:e.content.title,createdAt:e.createdAt,status:e.status===B.fL.Unread?M.n4s.Unread:M.n4s.Seen,ctaUrl:null===(t=e.content.cta)||void 0===t?void 0:t.url,isV2:!0,missionId:null===(n=e.content.metadata)||void 0===n?void 0:n.missionId,projectId:null===(r=e.content.metadata)||void 0===r?void 0:r.projectId,templateId:e.type}}):[],[t,c]),I=(0,_.useMemo)(()=>{let e=(null!=S?S:[]).map(e=>({id:e.id,title:e.title,createdAt:new Date().toISOString(),status:e.status,href:e.href,isPriority:!0,announcementType:e.type,missionId:e.missionId,projectId:e.projectId,templateId:e.templateId}));if(t)return j?(0,Y.IS)(P,e,e=>e.templateId,e=>e.announcementType,j.isEq):[];let n=N.map(e=>{let t=e.content,n=e.type===M.K29.OutlierAnnouncement&&t&&"object"==typeof t&&"type"in t?t.type:void 0;return{id:e.id,title:Z(t),createdAt:e.createdAt,status:e.status,ctaUrl:t&&"object"==typeof t&&"ctaUrl"in t?t.ctaUrl:void 0,announcementType:n}}).filter(e=>!e.announcementType||e.announcementType!==M.w$v.WebinarInvite),r=new Set(e.map(e=>e.id));return[...e,...n.filter(e=>!r.has(e.id))]},[t,P,N,S,j]),[A,O]=(0,_.useState)(!1),E=e=>new Promise(t=>setTimeout(t,e)),T=async e=>{let t=e.type;t===M.K29.Message||t===M.K29.LegacyAnnouncement?await m(e):await g({notificationId:e.id,status:M.n4s.Seen})},L=async()=>
1{if(t){await d();let e=!1;for(let t of null!=S?S:[])t.status===M.n4s.Unread&&(e=(0,$.BM)(t.id)||e);e&&await l.invalidateQueries({queryKey:["priority-announcements"]});return}O(!0);try{let e=N.filter(e=>e.status===M.n4s.Unread);await Promise.all(e.map(T)),await E(500)}finally{O(!1)}},W=t?f:A,Q=(0,_.useCallback)(async e=>{if(e.isV2){var t;let r=null==c?void 0:null===(t=c.notifications)||void 0===t?void 0:t.find(t=>t.id===e.id);if(r){let e=(0,$.R8)(r);await o(e)||n.push(b.R6.announcements())}return}if(e.announcementType){let t={id:e.id,title:e.title,description:"",status:e.status,type:e.announcementType,href:e.href,missionId:e.missionId,projectId:e.projectId,templateId:e.templateId||"",color:"neutral",avatarColor:"neutral"};await v(t)}},[c,o,n,v]);return(0,r.jsxs)(i.k,{direction:"column",className:"v2-notification-dropdown absolute sm:right-0 max-sm:right-[-48px] mt-2 w-80 shadow-lg rounded-lg border",children:[(0,r.jsxs)(i.k,{justify:"between",align:"center",p:"4",className:"v2-notification-dropdown-header border-b",children:[(0,r.jsx)(a.xv,{size:"3",weight:"semibold",children:"Notifications"}),(0,r.jsx)(s.z,{variant:"soft",size:"2",onClick:e=>{e.stopPropagation(),L()},color:"accent",disabled:W,children:W?"Marking...":"Mark all as read"})]}),C?(0,r.jsx)(i.k,{p:"4",justify:"center",children:(0,r.jsx)(a.xv,{color:"neutral",children:"Loading..."})}):0===I.length?(0,r.jsx)(i.k,{p:"4",justify:"center",children:(0,r.jsx)(a.xv,{color:"neutral",children:"No notifications"})}):(0,r.jsx)(i.k,{direction:"column",className:"max-h-96 overflow-y-auto",children:I.slice(0,5).map(e=>(0,r.jsx)(G,{notification:e,onClick:()=>Q(e)},e.id))}),(0,r.jsx)(i.k,{p:"4",justify:"end",className:"v2-notification-dropdown-footer border-t",children:(0,r.jsx)(s.z,{variant:"soft",size:"2",onClick:()=>{n.push(b.R6.announcements())},color:"accent",children:"View all notifications"})})]})},X=()=>{var e;let{data:t,isLoading:n}=(0,L.p)(),{data:a,isLoading:o}=(0,R.h)(),s=null==a?void 0:a.announcements,[c,u]=(0,_.useState)(!1),d=(0,_.useRef)(null),f=(null!=s?s:[]).some(e=>e.status===M.n4s.Unread),p=(null!==(e=null==t?void 0:t.unreadCount)&&void 0!==e?e:0)>0||f;return(0,T.Z)(d,()=>{c&&u(!1)}),(0,r.jsxs)(v.x,{ref:d,position:"relative",px:"3",className:"z-[10]",children:[(0,r.jsxs)(i.k,{align:"center",className:"cursor-pointer [&_svg]:text-[var(--gray-11)]",onClick:()=>u(!c),children:[(0,r.jsx)(l.J,{icon:m.qmU,size:"3",label:"bell"}),!(n||o)&&p&&(0,r.jsx)(v.x,{id:"notification-dot",className:"absolute -top-[1px] right-[14px] w-2 h-2 rounded-full bg-danger-400"})]}),c&&(0,r.jsx)(H,{isV2Enabled:!0})]})},ee=n(255871),et=n(287878),en=n(555024),er=n(650520),ei=n(317486),ea=n(541525),eo=n(773805),el=n(671577),es=n(606607),ec=n(398001),eu=n(285057),ed=n(420081);let ef=()=>(0,r.jsx)(el.q,{fallback:(0,r.jsx)(l.J,{label:"user",icon:m.ILF}),radius:"full",variant:"soft",color:"neutral",size:"4"});function ep(e){let{user:t}=e,n=(0,ec.m)(),{avatarUrl:i,isLoading:a}=(0,eu.A)(t._id),o=(0,ed.Cx)(t.firstName,t.lastName);return a?(0,r.jsx)(ef,{}):i?(0,r.jsx)(el.q,{src:i,fallback:o,radius:"full",variant:"soft",color:"neutral",size:"4"}):o?(0,r.jsx)(es.P,{workerSkills:n,initials:o,size:"4"}):(0,r.jsx)(ef,{})}function eh(e){let{user:t}=e;return(0,r.jsx)(ep,{user:t})}var em=n(943235),eg=n(150059),ev=n(267744),ex=n(70202);function ey(e,t){if(!t.href||(0,b.sD)(t.href))return!1;let n=e.replace(/\/$/,""),r=t.href.replace(/\/$/,""),i=b.R6.dashboard();return r===i?n===i:n===r||"/"!==r&&n.startsWith("".concat(r,"/"))}let eb=e=>{let{imgSrc:t="/assets/outlier-wordmark.svg",variant:n="default"}=e,g=(0,et.usePathname)(),v=(0,ea.E)(),x=(0,eo.a)(),{resolvedTheme:j}=(0,ei.F)(),[w,S]=(0,_.useState)(!1),P=k(),A=C(),O=(0,K.C)(),M=(0,em.dD)(),{isOnboardingStep:R,isOnboardingDashboard:T}=(0,en.kc)(),L=R||T,W=(0,ex.Q)();(0,_.useEffect)(()=>(w?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[w]);let z=(0,_.useCallback)(e=>{S(!1),e.href&&(/^https?:\/\//.test(e.href)?window.location.assign(e.href):O.push((0,I.p)(e.href)))},[O]),D=P.findIndex(e=>e.key===y.W_.Marketplace);return(0,r.jsxs)(i.k,{align:"center",gap:"5",px:"5",height:"64px",className:"w-full",children:[(0,r.jsxs)(i.k,{align:"center",className:"w-full mx-auto",style:{maxWidth:1280},children:[(0,r.jsx)(i.k,{align:"center",justify:"start",style:{width:"33%"},children:"blocked"===n||L?(0,r.jsx)(er.ThemedImage,{src:t,alt:"Outlier",width:M?55:75,height:M?14.67:20,style:{flexShrink:0},priority:!0,invertInDark:!0}):(0,r.jsx)(N.OutlierLink,{href:(0,I.p)(b.R6.dashboard()),"aria-label":"Go to home",style:{textDecoration:"none"},children:(0,r.jsx)(er.ThemedImage,{src:t,alt:"Outlier",width:M?55:75,height:M?14.67:20,style:{flexShrink:0},priority:!0,invertInDark:!0})})}),"default"===n?(0,r.jsx)(i.k,{flexGrow:"1",align:"center",justify:"center",gap:"5",className:L?"hidden":"px-5 hidden md:flex",children:(L?[]:P).map((e,t)=>{let n=ey(g,e),i="dark"===j,o=i?"#EDEDED":"#1F1F1F",l=i?"#B3B3B3":"#828282",s=e.href&&!(0,b.sD)(e.href)?(0,r.jsx)(N.OutlierLink,{href:(0,I.p)(e.href),"aria-current":n?"page":void 0,style:{color:n?o:l,textDecoration:"none"},className:"py-4",children:(0,r.jsx)(a.xv,{weight:n?"semibold":"regular",size:"2",asChild:!0,children:(0,r.jsx)("span",{className:"whitespace-nowrap",children:e.label})})},e.key):(0,r.jsx)("button",{className:"py-4",onClick:()=>e.href&&window.location.assign(e.href),"aria-current":n?"page":void 0,style:{color:n?o:l},children:(0,r.jsx)(a.xv,{weight:n?"semibold":"regular",size:"2",asChild:!0,children:(0,r.jsx)("span",{className:"whitespace-nowrap",children:e.label})})},e.key);return(0,r.jsxs)("div",{style:{position:"relative"},children:[s,-1!==D&&t===D&&(0,r.jsx)(ev.b,{step:eg.v9.MISSIONS_FEEDBACK,children:(0,r.jsx)("div",{style:{position:"absolute",left:"calc(100% + var(--space-5) / 2)",top:"50%",transform:"translateY(-50%)",width:0,height:0}})})]},e.key)})}):(0,r.jsx)(i.k,{flexGrow:"1"}),(0,r.jsx)(i.k,{gap:"2",align:"center",justify:"end",className:"ml-auto md:ml-0",style:{width:"33%"},children:"default"===n?(0,r.jsxs)(r.Fragment,{children:[!L&&(0,r.jsx)(o.h,{variant:"ghost",color:"neutral",className:"md:hidden",onClick:()=>S(!0),"aria-label":"Open menu",children:(0,r.jsx)(l.J,{icon:h.Vr3,size:"3",label:"grid"})}),!L&&(0,r.jsx)(E,{}),!L&&(0,r.jsx)(X,{}),L&&W.enabled?(0,r.jsxs)(s.z,{size:"2",variant:"outline",color:"neutral",radiu
1s:"full",onClick:W.open,children:[(0,r.jsx)(l.J,{icon:m.FDd,size:"2",label:"help"}),"Help"]}):null,(0,r.jsx)(ee.C,{user:v,shouldShowLimitedUI:L,shouldUseResponsiveNavbar:!1,logoutFn:x,navigationTabs:[],currentPath:g,onClickNavItem:()=>{},customAvatarContent:(0,r.jsx)(eh,{user:v}),onNavigate:e=>O.replace(e),onHelp:W.enabled?W.open:void 0})]}):null})]}),"default"!==n||L?null:(0,r.jsx)(c.SheetRoot,{open:w,onOpenChange:S,children:(0,r.jsxs)(u.SheetContainer,{children:[(0,r.jsx)(d.SheetDragger,{}),(0,r.jsx)(f.SheetContent,{children:(0,r.jsxs)(i.k,{direction:"column",p:"5",children:[(0,r.jsxs)(i.k,{align:"center",justify:"between",pb:"4",children:[(0,r.jsx)(a.X6,{as:"h3",size:"6",weight:"semibold",children:"Outlier"}),(0,r.jsx)(o.h,{radius:"full",variant:"ghost",color:"neutral",onClick:()=>S(!1),children:(0,r.jsx)(l.J,{icon:h.g82,size:"4",label:"xmark"})})]}),(0,r.jsx)(p.Z,{size:"4",className:"w-full"}),(0,r.jsx)(i.k,{direction:"column",children:[...P,...A].map((e,t,n)=>{var o;let s=e.href&&(0,b.sD)(e.href),c=(0,r.jsxs)(i.k,{align:"center",className:"py-4",gap:"1",children:[(0,r.jsx)(a.xv,{size:"2",weight:"semibold",color:"accent",children:e.label}),(0,r.jsx)(l.J,{icon:m._tD,size:"1",color:"accent",label:"chevron-right"})]});return(0,r.jsxs)(i.k,{direction:"column",children:[s?(0,r.jsx)("button",{onClick:t=>{t.preventDefault(),z(e)},style:{textAlign:"left",width:"100%"},"aria-current":ey(g,e)?"page":void 0,children:c}):(0,r.jsx)(N.OutlierLink,{href:(0,I.p)(null!==(o=e.href)&&void 0!==o?o:"#"),onClick:()=>S(!1),style:{textDecoration:"none",width:"100%"},"aria-current":ey(g,e)?"page":void 0,children:c}),t<n.length-1?(0,r.jsx)(p.Z,{size:"4",className:"w-full"}):null]},"mobile-".concat(e.key))})}),(0,r.jsx)(i.k,{height:"50vh"})]})})]})})]})};var ej=eb},702067:function(e,t,n){"use strict";n.d(t,{V2TourProvider:function(){return f},c:function(){return p}});var r=n(128683),i=n(942871),a=n(150059),o=n(777541);let l="v2-intro",s="v2-project-queue-tooltip-seen",c=(0,i.createContext)(null),u={hasSeenModal:!1,currentStep:null,isComplete:!1},d=()=>[...a.kh];function f(e){let{children:t}=e,[n,f]=(0,i.useState)(u),[p,h]=(0,i.useState)(!0),[m,g]=(0,i.useState)(!1),[v,x]=(0,i.useState)(d);(0,i.useEffect)(()=>{let e=o.m.get(l);e&&f(e),!0===o.m.get(s)&&g(!0),h(!1)},[]),(0,i.useEffect)(()=>{p||o.m.set(l,n)},[n,p]);let y=()=>{f(e=>{if(!e.currentStep||e.isComplete)return e;let t=v.indexOf(e.currentStep);if(-1===t||t>=v.length-1)return{...e,currentStep:null,isComplete:!0};let n=v[t+1];return{...e,currentStep:null!=n?n:null}})},b={...n,startTour:()=>{f({hasSeenModal:!0,currentStep:a.v9.MISSIONS_FEEDBACK,isComplete:!1})},nextStep:y,skipToNextAvailableStep:()=>{y()},finishTour:()=>{f(e=>({...e,currentStep:null,isComplete:!0}))},resetTour:()=>{f(u)},isLoading:p,hasSeenProjectQueueTooltip:m,markProjectQueueTooltipSeen:()=>{g(!0),o.m.set(s,!0)},availableSteps:v,setAvailableSteps:x};return(0,r.jsx)(c.Provider,{value:b,children:t})}function p(){return(0,i.useContext)(c)||{...u,startTour:()=>{},nextStep:()=>{},skipToNextAvailableStep:()=>{},finishTour:()=>{},resetTour:()=>{},isLoading:!1,hasSeenProjectQueueTooltip:!1,markProjectQueueTooltipSeen:()=>{},availableSteps:d(),setAvailableSteps:()=>{}}}},285057:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(440772),i=n(827691);function a(e){var t;let{data:n,isLoading:a}=(0,r.useQuery)({queryKey:["avatar-image",e],queryFn:async()=>{if(!e)return{imageUrl:""};
1try{return await (0,i.LJ)("/internal/experts/avatar/".concat(e,"/signed-url"),"GET")}catch(e){return{imageUrl:""}}},enabled:!!e,staleTime:18e5});return{avatarUrl:null!==(t=null==n?void 0:n.imageUrl)&&void 0!==t?t:"",isLoading:a}}},977324:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(702067);let i=()=>(0,r.c)()},70202:function(e,t,n){"use strict";n.d(t,{BugNubProvider:function(){return w},Q:function(){return a.Qm}});var r=n(128683),i=n(824551),a=n(981088),o=n(566163),l=n(842266),s=n(287878),c=n(317486),u=n(942871),d=n(541525),f=n(12037),p=n(827691),h=n(127769),m=n(580541);let g=(0,l.default)(()=>Promise.all([n.e(88235),n.e(61617),n.e(78071),n.e(24005),n.e(65277),n.e(53178),n.e(41560),n.e(94289),n.e(34378),n.e(67363),n.e(10396),n.e(98588),n.e(60586),n.e(93130),n.e(94131)]).then(n.bind(n,594131)).then(e=>({default:e.BugNubPanel})),{loadableGenerated:{webpack:()=>[594131]},ssr:!1}),v={route:e=>(0,p.LJ)("/internal/bug-nub/route","POST",JSON.stringify(e)),helpCenterSearch:e=>(0,p.LJ)("/internal/bug-nub/help-center?q=".concat(encodeURIComponent(e))),submitBugReport:e=>(0,p.LJ)("/internal/bug-nub/bug-report","POST",e),getHistory:()=>(0,p.LJ)("/internal/bug-nub/history")},x=/^[a-f0-9]{24}$/,y=e=>{let[t="",n=""]=e.replace(/^\/([a-z]{2})(?=\/)/,"").split("/").slice(1);switch(t){case"dashboard":return{productArea:o.BugNubProductArea.Home};case"projects":return x.test(n)?{productArea:o.BugNubProductArea.Project,projectId:n}:{};case"marketplace":return{productArea:o.BugNubProductArea.Marketplace};case"earnings":return{productArea:o.BugNubProductArea.Earnings};case"quality-insights":return{productArea:o.BugNubProductArea.Quality};default:return{}}},b=(e,t)=>({surface:t,pagePath:e,sessionId:(0,m.Z)(),...t===o.BugNubSurface.Onboarding?{productArea:o.BugNubProductArea.NewUserOnboarding}:y(e)}),j=e=>{var t;return(null!==(t=null==e?void 0:e.messages)&&void 0!==t?t:[]).filter(e=>e.role===o.BugNubMessageRole.User).map(e=>e.text).join("\n")},w=e=>{let{surface:t,children:n}=e,o=(0,d.E)(),l=(0,a.y7)(null==o?void 0:o._id),p=(0,s.usePathname)(),{resolvedTheme:m}=(0,c.F)(),[x,y]=(0,u.useState)(!1),[w,k]=(0,u.useState)(()=>b(p,t)),{data:S}=(0,i.O)(x),C=(0,u.useCallback)(()=>{(0,h.UA)(),k(b(p,t)),y(!0)},[p,t]),N=(0,u.useCallback)(()=>y(!1),[]),P=(0,u.useCallback)(async e=>{let t=await (0,h.mL)(j(e));return t&&y(!1),t},[]),I=(0,u.useCallback)((e,t)=>{(0,f.L9)("BugNub",{event_type:e,...t})},[]),A=(0,u.useCallback)(e=>window.open("".concat(null!=S?S:"").concat(e),"_blank","noopener,noreferrer"),[S]),O=(0,u.useMemo)(()=>({enabled:l,open:C}),[l,C]);return(0,r.jsxs)(a.VN.Provider,{value:O,children:[n,l&&(0,r.jsx)(g,{context:w,theme:"dark"===m?"dark":"light",open:x,onClose:N,onContactSupport:P,api:v,onEvent:I,onOpenArticle:A})]})}},902685:function(e,t,n){"use strict";n.d(t,{MarketplacePermissionsProvider:function(){return o},MarketplacePermissionsUpdater:function(){return l},q:function(){return s}});var r=n(128683),i=n(942871);let a=(0,i.createContext)({permissions:[],setPermissions:()=>{}});function o(e){let{children:t,permissions:n=[]}=e,[o,l]=(0,i.useState)(n);return(0,r.jsx)(a.Provider,{value:{permissions:o,setPermissions:l},children:t})}function l(e){let{permissions:t}=e,{setPermissions:n}=(0,i.useContext)(a);return(0,i.useEffect)(()=>{n(t)},[t,n]),null}function s(e){let{permissions:t}=(0,i.useContext)(a);return t.includes(e)}},398001:function(e,t,n){"use strict";n.d(t,{WorkerSkillsProvider:function(){return o},WorkerSkillsUpdater:function(){return l},m:function(){return s}});var r=n(128683),i=n(942871);
1let a=(0,i.createContext)({workerSkills:[],setWorkerSkills:()=>{}});function o(e){let{children:t}=e,[n,o]=(0,i.useState)([]),l=(0,i.useMemo)(()=>({workerSkills:n,setWorkerSkills:o}),[n]);return(0,r.jsx)(a.Provider,{value:l,children:t})}function l(e){let{workerSkills:t,children:n}=e,{setWorkerSkills:o}=(0,i.useContext)(a);return(0,i.useEffect)(()=>{t&&t.length>0&&o(t)},[t,o]),(0,r.jsx)(r.Fragment,{children:n})}function s(){let{workerSkills:e}=(0,i.useContext)(a);return e}},420081:function(e,t,n){"use strict";n.d(t,{Cx:function(){return r},DW:function(){return i}});let r=(e,t)=>e||t?((null==e?void 0:e.charAt(0).toUpperCase())||"")+((null==t?void 0:t.charAt(0).toUpperCase())||""):"UU",i=e=>{if(!e||e<=0)return"--";if(e<1){let t=Math.round(60*e);return"".concat(t," minute").concat(1===t?"":"s")}let t=Math.round(e);return"".concat(t," hour").concat(1===t?"":"s")}},943235:function(e,t,n){"use strict";n.d(t,{dD:function(){return s}});var r=n(942871),i=n(689792),a=n.n(i);let o={md:768};function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.md;return window.innerWidth<e}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.md,[t,n]=(0,r.useState)(()=>l(e)),i=(0,r.useMemo)(()=>a()(()=>{n(l(e))},150),[e]);return(0,r.useEffect)(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),i.cancel()}),[e,i]),t}},150059:function(e,t,n){"use strict";var r,i;n.d(t,{_3:function(){return l},kh:function(){return a},v9:function(){return r}}),(i=r||(r={})).MISSIONS_FEEDBACK="0",i.ANNOUNCEMENTS="1",i.PROJECT_QUEUE="2",i.PROFILE_IMAGE="3";let a=["0","1","2","3"],o={0:{title:"Mission and Feedback have moved",description:"You can now find the Mission and Feedback sections within each Project's details page. This change helps you see everything in context, and the Quality page is now available.",side:"bottom",nextButtonLabel:"Next"},1:{title:"All Your Updates in One Place",description:'The new "What\'s New For You" section centralizes important announcements so you never miss an update. Click "View All" to see the rest; notifications are organized by relevance and priority.',side:"right",nextButtonLabel:"Next"},2:{title:"Reserve Projects",description:"Keep your workflow steady by securing multiple projects. Add one from Marketplace so your next project is ready when there are no tasks from the current one.",side:"top",nextButtonLabel:"Next"},3:{title:"Update Your Profile Image",description:"Set your profile image to make your homepage feel more personal. A new profile page is coming soon!",side:"bottom",nextButtonLabel:"Done"}};function l(e){let t=o[e],n=a.indexOf(e),r=a.length;return{...t,stepCountDisplay:"".concat(n+1," of ").concat(r)}}},121264:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(378310);let i={leftColor:"#F7C7C8",rightColor:"#63DDFF"},a=e=>{var t,n;if(!Array.isArray(e))return i;let a=e.map(e=>"".concat(e.skill.displayName," ").concat(e.skill.internalDescription," ").concat(e.skill.externalDescription)).join("\n").toLowerCase().replace(/[^\w\s]/g," ").replace(/\s+/g," ").trim(),o=0,l="";for(let[e,t]of Object.entries(r.Og)){let n=0,r=t.keywords.length;for(let e of t.keywords)n+=a.split(e).length-1;let i=n/r;i>.5&&i>o&&(o=i,l=e)}return l?{leftColor:(null===(t=r.Og[l])||void 0===t?void 0:t.leftColor)||"#F7C7C8",rightColor:(null===(n=r.Og[l])||void 0===n?void 0:n.rightColor)||"#63DDFF"}:i}},113363:function(e,t,n){"use strict";n.d(t,{W_:function(){return a},Wq:function(){return u},lO:function(){return o}});var r,i,a,o,l=n(367359),s=n(518616),c=n(646001);(r=a||(a={})).Dashboard="Home",r.Marketplace="Marketplace",r.Projects="Projects",r.Earnings="Earnings",r.Missions="Missions",r.Feedback="Feedback",r.Skills="Skills",r.Webinars="Webinars",r.QualityInsights="Quality",r.Community="Community",r.Tools="Tools",r.TrainingMaterials="Enablement",r.ResourceLibrary="Resource Library",r.Playground="Playground",r.Referrals="Referrals",r.Miner="Miner",r.ProjectHistory="Project History",(i=o||(o={})).Account="My Account",i.Pay="Pay",i.AccountSecurity="Account Security",i.ExpertMatch="Expert Match",i.EmailPreferences="Email Preferences";let u={Home:(0,s.p)("/dashboard"),Marketplace:(0,s.p)("/marketplace"),Projects:(0,s.p)("/projects"),Earnings:(0,s.p)("".concat(l.Y,"/expert/earnings")),Missions:(0,s.p)("".concat(l.Y,"/expert/missions")),Feedback:(0,s.p)("".concat(l.Y,"/expert/feedback")),Community:(0,s.p)(c.SS[c.BZ.OutlierDiscourse]),Enablement:(0,s.p)("".concat(l.Y,"/expert/enablement")),Tools:(0,s.p)("".concat(l.Y,"/expert/tools")),"Resource Library":(0,s.p)("".concat(l.Y,"/expert/resource_library")),Playground:(0,s.p)("/playground"),Skills:(0,s.p)("/skills"),Quality:(0,s.p)("/quality-insights"),Webinars:(0,s.p)("/webinars"),Referrals:(0,s.p)("/referrals"),Miner:(0,s.p)("/miner"),"Project History":(0,s.p)("/projects/history"),"My Account":(0,s.p)("/profile"),Pay:(0,s.p)("/profile/pay"),"Account Security":(0,s.p)("/profile/account-security"),"Expert Match":(0,s.p)("/profile/expert-match"),"Email Preferences":(0,s.p)("/profile/email-preferences")}},367359:function(e,t,n){"use strict";n.d(t,{V:function(){return i},Y:function(){return r}});let r="https://app.outlier.ai",i="https://datacompute.google.com/w/scale_ai"},773805:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(827691),i=n(689903),a=n(813724),o=n(439971);let l=()=>async()=>{await (0,r.LJ)("/internal/logout"),(0,a.$v)(),(0,a.ed)(),(0,o.i)(),(0,i.dA)("/login")}},12037:function(e,t,n){"use strict";n.d(t,{L9:function(){return m},Qs:function(){return g},S5:function(){return y},XC:function(){return j},YO:function(){return S},Zz:function(){return k},_b:function(){return b},co:function(){return p},ib:function(){return w},lD:function(){return x},yV:function(){return v}});var r=n(566163),i=n(483158),a=n(325341),o=n(331265),l=n(439971),s=n(619802);let c="true"===n(36309).env.IS_STORYBOOK,u=o.Kc||c,d=()=>void 0,f=null,p=new Proxy({},{get(e,t){if(u)return d;f||(f=i.b.load({writeKey:"DqctVBaWsWu1ktHGtyzoVkggj9QmMX9B"},(0,a.n)()));let n=f[t];return"function"==typeof n?n.bind(f):n}}),h=e=>{var t;let n=(0,l.S)(),r=s.Z.getUser(),i=null!==(t=null==r?void 0:r.isCorporateUser)&&void 0!==t&&t;return{...e,session_id:n,is_internal:i}},m=(e,t)=>
1{let n=h(t);if(u){o.Kc&&console.debug("Sending analytics --->",e,n);return}return p.track(e,n)},g=(e,t,n)=>{let r=h(n);if(u){o.Kc&&console.debug("Sending page analytics --->",e,t,r);return}return p.page(e,t,r)},v=(e,t)=>{if(u){o.Kc&&console.debug("Sending analytics identify --->",e,t);return}return p.identify(e,t)},x=e=>{m("Marketplace",e)},y=e=>{m("MultiMango",e)},b=e=>{m(r.SegmentEventType.REFERRAL_INTERACTION,e)},j=e=>{m("DAExperiment",e)},w=e=>{m("ProjectHistoryPage",e)},k=e=>{m("PayAcceptance",e)},S=e=>{m("Webinars",e)}},127769:function(e,t,n){"use strict";n.d(t,{UA:function(){return i},WO:function(){return r},mL:function(){return a}});let r=()=>{let e=window.Forethought;return"function"==typeof e?e:void 0},i=()=>{var e;return null===(e=r())||void 0===e?void 0:e("widget","close")},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;return new Promise(n=>{let i=r();if(!i){n(!1);return}let a=t=>{window.removeEventListener("message",o),clearTimeout(l),t?e&&i("widget","sendMessage",{payload:{message:e}}):(i("widget","close"),i("widget","hide")),n(t)},o=e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.event)==="forethoughtWidgetOpened"&&a(!0)},l=setTimeout(()=>a(!1),t);window.addEventListener("message",o),i("widget","show"),i("widget","open")})}},580541:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let r=e=>{try{let t=e();return"string"==typeof t&&t?t:null}catch(e){return null}},i=()=>{let e=window.FS,t="function"==typeof e?r(()=>e("getSession",{format:"id"})):null;return null!=t?t:r(()=>{var t;return null==e?void 0:null===(t=e.getCurrentSession)||void 0===t?void 0:t.call(e)})}},10400:function(){},255871:function(e,t,n){"use strict";n.d(t,{C:function(){return w}});var r=n(128683),i=n(942871),a=n(678071),o=n(974118),l=n(489290),s=n(262610),c=n(671577),u=n(792617),d=n(465277),f=n(207455),p=n(413141),h=n(596497),m=n(592271),g=n(824551),v=n(612490),x=n(130003),y=n(287706),b=n(818688),j=n(409785);let w=e=>{var t,n,w;let{user:k,shouldShowLimitedUI:S,shouldUseResponsiveNavbar:C,logoutFn:N,navigationTabs:P,currentPath:I,onClickNavItem:A,isFeedbackPage:O=!1,customAvatarContent:E,onNavigate:M,onHelp:_}=e,[R,T]=(0,i.useState)(!1),L=(0,v.useQueryClient)(),W=null!==(t=k.firstName)&&void 0!==t?t:"",z=null!==(n=k.lastName)&&void 0!==n?n:"",D=k.email,F=null!==(w=k.isRemoAdmin)&&void 0!==w&&w,{data:U}=(0,g.O)(!0),q=""===W?(0,r.jsx)(a.GN,{icon:"user"}):(0,r.jsxs)(o.xv,{size:"3",children:[W.charAt(0),z.charAt(0)]}),B=I.includes(j.Rs),{combinedMessages:Q}=(0,y.Z)(),K=Q.some(e=>e.status===b.n4s.Unread);return(0,r.jsxs)(l.Root,{onOpenChange:e=>T(e),modal:!B,children:[(0,r.jsx)(l.Trigger,{className:"cursor-pointer focus:outline-none",children:(0,r.jsxs)(s.k,{children:[E?(0,r.jsx)("div",{className:C||S?"scale-tailwind max-lg:hidden":"",children:E}):(0,r.jsx)(c.q,{className:C||S?"scale-tailwind max-lg:hidden":"",fallback:q,radius:"full",variant:"soft",color:"neutral",size:O?"5":"4"}),(0,r.jsxs)(u.h,{className:C||S?"scale-tailwind lg:hidden m-0":"hidden",variant:"ghost",size:"4",color:"neutral",children:[(0,r.jsx)(a.GN,{icon:p.xiG}),K&&!R&&!S&&(0,r.jsx)("div",{id:"notification-dot",className:"absolute top-6 right-6 w-2 h-2 rounded-full bg-danger-400"})]})]})}),(0,r.jsx)(l.Content,{color:"neutral",variant:"soft",size:"2",children:(0,r.jsxs)(s.k,{width:"240px",direction:"column",children:[W&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.k,{direction:"column",py:"1",px:"2",children:[(0,r.jsxs)(o.xv,{size:"3",children:[" ",W," ",z," "]}),(0,r.jsxs)(o.xv,{size:"1",children:[" ",D," "]})]}),(0,r.jsx)(l.Separator,{})]}),C&&!!P.length&&(0,r.jsxs)("div",{className:"scale-tailwind lg:hidden",children:[P.map((e,t)=>{let n=(0,x.k)(I,e),i="Announcements"===e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Item,{className:"cursor-pointer",onClick:()=>A(e),children:[(0,r.jsx)(o.xv,{weight:n?"bold":"regular",children:e}),K&&i&&(0,r.jsx)("div",{id:"notification-dot",className:"absolute top-3 right-4 w-2 h-2 rounded-full bg-danger-400"})]},"navbar-dropdown-item-".concat(t)),i&&P.length>1&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l.Separator,{})})]})}),(0,r.jsx)(l.Separator,{})]}),!S&&(0,r.jsxs)(l.Item,{className:"cursor-pointer",onClick:()=>{let e=(0,h.p)("".concat(m.Ih,"/profile"));M?M(e):window.location.replace(e)},children:[(0,r.jsx)(o.xv,{children:"Profile"}),(0,r.jsx)(d.J,{className:"ml-auto",label:"user",color:"neutral",icon:f.ILF})]}),!S&&(0,r.jsxs)(l.Item,{className:"cursor-pointer",onClick:()=>{window.open(m.ob,"_blank")},children:[(0,r.jsx)(o.xv,{children:"Community"}),(0,r.jsx)(d.J,{className:"ml-auto",label:"community",color:"neutral",icon:f.qWS})]}),(0,r.jsxs)(l.Item,{className:"cursor-pointer",onClick:()=>{let e=(0,h.p)("".concat(m.Ih,"/projects/history"));M?M(e):window.location.replace(e)},children:[(0,r.jsx)(o.xv,{children:"Project History"}),(0,r.jsx)(d.J,{className:"ml-auto",label:"project-history",color:"neutral",icon:f.qO$})]}),(0,r.jsxs)(l.Item,{className:"cursor-pointer",onClick:()=>
1{if(_){_();return}window.open("".concat(null!=U?U:"","https://tryoutlier.zendesk.com/hc/en-us"),"_blank"),L.invalidateQueries({queryKey:["zendesk-login-and-redirect-prefix"]})},children:[(0,r.jsx)(o.xv,{children:_?"Help":"Help Center"}),(0,r.jsx)(d.J,{className:"ml-auto",label:"help-center",color:"neutral",icon:f.FDd})]}),F&&(0,r.jsx)(l.Item,{className:"cursor-pointer",onClick:()=>window.open((0,h.p)("".concat(m.YK,"/expert/tools")),"_blank"),children:"RemoAdmin Tools"}),(0,r.jsxs)(l.Item,{className:"cursor-pointer",onClick:N,children:[(0,r.jsx)(o.xv,{children:"Logout"}),(0,r.jsx)(d.J,{className:"ml-auto",label:"logout",color:"neutral",icon:f.mXR})]}),(0,r.jsx)(l.Separator,{}),(0,r.jsx)(l.Item,{className:"cursor-pointer",onClick:()=>window.open("https://outlier.ai/legal/privacy-policy","_blank"),children:"Privacy Policy"}),(0,r.jsx)(l.Item,{className:"cursor-pointer",onClick:()=>window.open("https://outlier.ai/legal/terms-of-use","_blank"),children:"Terms of Use"})]})})]})}},130003:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(803019);let i=(e,t)=>{let n=e.indexOf("?spoof="),i=e.lastIndexOf("/"),a="expert"===e.substring(i+1,-1!==n?n:e.length)||e.includes("dashboard");return t===r.W_.Dashboard&&a||e.includes(t.toLowerCase())}},596497:function(e,t,n){"use strict";n.d(t,{N:function(){return r},p:function(){return i}});let r=()=>{var e;return null!==(e=new URLSearchParams(window.location.search).get("spoof"))&&void 0!==e?e:void 0},i=(e,t,n)=>{if(!e)return"";let i=null!=t?t:r(),a=e;if(i){let e="spoof=".concat(i);a.includes("?")?a+="&".concat(e):a+="?".concat(e)}return n&&(a+="#".concat(n)),a}},287706:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(942871),i=n(338061),a=n(440772),o=n(79687);let l=()=>(0,a.useQuery)({queryKey:["legacyAnnouncements"],queryFn:async()=>await (0,o.ZP)("internal/announcements/all"),refetchInterval:6e4});var s=n(233261),c=n(818688);function u(){let{data:e,isLoading:t}=(0,s.aS)({types:[c.K29.Message],statuses:[c.n4s.Unread,c.n4s.Seen],refetchInterval:6e4}),{data:n,isLoading:a}=l();return{combinedMessages:(0,r.useMemo)(()=>{let t=[...(null==e?void 0:e.Message)||[],...((null==n?void 0:n.announcements)||[]).map((e,t)=>({id:e._id||"announcement-".concat(t),type:c.K29.LegacyAnnouncement,templateId:"",userId:"",status:e.status,content:{title:e.name,body:e.body},createdAt:e.createdAt}))].map((e,t)=>Object.assign(Object.assign({},e),{id:e.id||"notification-".concat(t)}));return(t=i(t,"id")).sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),t},[e,n]),isLoading:t||a}}},233261:function(e,t,n){"use strict";n.d(t,{QB:function(){return s},aS:function(){return l}});var r=n(214624),i=n(440772),a=n(818688),o=n(79687);let l=e=>{let{types:t,statuses:n,limit:a,refetchInterval:l}=e;return(0,i.useQuery)({queryKey:["product-comms",null==t?void 0:t.slice().sort(),null==n?void 0:n.slice().sort(),a],queryFn:async()=>{let e=r.stringify({type:t,status:n,limit:a},{arrayFormat:"repeat"});
1return await (0,o.ZP)("/internal/experts/notifications?".concat(e))},refetchInterval:l,refetchOnWindowFocus:!1})},s=function(e,t){var n,r;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[a.n4s.Unread],o=arguments.length>3?arguments[3]:void 0;if(!e||!e[t])return null;let l=null===(r=null===(n=e[t])||void 0===n?void 0:n.filter(e=>!(o&&new Date(e.createdAt)<o)&&i.includes(e.status)))||void 0===r?void 0:r[0];return l&&"content"in l?l:null}},473185:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(612490),i=n(809257),a=n(79687);let o=function(){let{onComplete:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>(0,a.ZP)("/internal/announcements/seen",{method:"POST",body:JSON.stringify({announcement:e})}),onSuccess:()=>{null==e||e(),t.invalidateQueries({queryKey:["legacyAnnouncements"]})}})};var l=n(72304),s=n(566163),c=n(818688),u=()=>{let{mutateAsync:e}=(0,l.y)({}),{mutateAsync:t}=o({}),{mutateAsync:n}=(0,l.y)({shouldInvalidateQueries:!1});return{markNotificationAsSeen:async r=>{r.type===c.K29.Message&&await e({notificationId:r.id,status:c.n4s.Seen}),r.type===c.K29.ScreeningStatusDashboardCallout&&(r.content.screeningOutcome===s.ScreeningOutcome.Failed.valueOf()?await e({notificationId:r.id,status:c.n4s.Seen}):await n({notificationId:r.id,status:c.n4s.Seen})),r.type===c.K29.LegacyAnnouncement&&await t(r.id)}}}},72304:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(612490),i=n(809257),a=n(79687);let o=function(){let{onComplete:e,shouldInvalidateQueries:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,r.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>
1(0,a.ZP)("/internal/experts/notifications/status_changed",{method:"POST",body:JSON.stringify({notificationId:e.notificationId,status:e.status,currentStep:e.currentStep})}),onMutate:async e=>{await n.cancelQueries({queryKey:["product-comms"]});let t=n.getQueriesData({queryKey:["product-comms"]});if(t)return t.forEach(t=>{let[r,i]=t;n.setQueryData(r,t=>{if(!t)return;let n=structuredClone(t);for(let t in n)n[t].forEach(t=>{t.id===e.notificationId&&(t.status=e.status,"content"in t&&"currentStep"in t.content&&(t.content.currentStep=e.currentStep))});let i=null==r?void 0:r[2];if(i&&i.length>0)for(let e in n)n[e]=n[e].filter(e=>i.includes(e.status));return n})}),{previousQueriesData:t}},onError:(e,t,r)=>{null==r||r.previousQueriesData.forEach(e=>{let[t,r]=e;n.setQueriesData({queryKey:t},r)})},onSuccess:()=>{null==e||e(),t&&n.invalidateQueries({queryKey:["product-comms"]})}})}},555024:function(e,t,n){"use strict";n.d(t,{KF:function(){return h},kc:function(){return m}});var r=n(128683),i=n(282342),a=n(5872),o=n(942871),l=n(4411),s=n(596497),c=n(79687),u=n(809257),d=n(803019);let f=e=>/^(\/[a-z]{2})?\/onboarding\/?$/.test(e),p=(0,o.createContext)({qualifications:[],checkpoint:i.L.Started,renderedStep:void 0,nextStep:void 0,isLoading:!1,goToNextStep:()=>{},stepTitle:"Onboarding",setStepTitleOverride:()=>{},currentStepDescriptionOverride:null,setCurrentStepDescriptionOverride:()=>{},currentStepIconOverride:null,setCurrentStepIconOverride:()=>{},isOnboardingStep:!1,isOnboardingDashboard:!1,fetchData:async()=>new Promise(e=>e({qualifications:[]})),goToOnboardingDashboard:()=>{},finishOnboarding:async()=>{},goToPreviousPageRef:{current:()=>{}}}),h=e=>{let{children:t,redirectTo:n,canForceStep:h=!1}=e,[m,g]=(0,o.useState)(!1),[v,x]=(0,o.useState)({qualifications:[]}),y=(0,s.p)(window.location.pathname),b=(0,o.useRef)(()=>A()),j=(0,o.useRef)(0),[w,k]=(0,o.useState)(null),[S,C]=(0,o.useState)(null),[N,P]=(0,o.useState)(null),I=(0,o.useCallback)(e=>{let t=(0,s.p)(e),n=new URLSearchParams(window.location.search).get("force");return n?"".concat(t).concat(t.includes("?")?"&":"?","force=").concat(encodeURIComponent(n)):t},[]),A=(0,o.useCallback)(()=>{n(I(d.Wq[d.W_.Onboarding]))},[n,I]),O=(0,o.useMemo)(()=>{let e=y.split("/");if(!e.length)return;let t=e[e.length-1].split("?")[0];return v.qualifications.find(e=>t.includes(e.id))},[y,null==v?void 0:v.qualifications]),E=(0,o.useCallback)(async e=>{var t;let{forceRedirect:r,noLoading:i,noRedirect:o}=e,s=++j.current;i||g(!0);let c=await (0,l.R)(),u=s!==j.current;if(u&&!r)return c;u||x(c);let p=c.nextStep,m=new URLSearchParams(window.location.search).get("force"),v=window.location.pathname.includes(d.Wq[d.W_.Onboarding]),y=(null===(t=window.location.pathname)||void 0===t?void 0:t.split("/").filter(Boolean).pop())||void 0;if(r)(null==p?void 0:p.id)&&p.id!==a.kd.FraudCheckpoint?n(I("".concat(d.Wq[d.W_.Onboarding],"/").concat(p.id))):A();else if(!o&&y&&!f(window.location.pathname)&&y!==(null==p?void 0:p.id)&&!(h&&m)&&v)return A(),c;return g(!1),c},[n,A,I,h]),M=(0,o.useCallback)(()=>{k(null),E({forceRedirect:!0})},[E]),_=(0,u.useMutation)({mutationFn:()=>
1(0,c.ZP)("internal/experts/profiling/complete",{method:"PUT"})}),R=async()=>{v.qualifications.filter(e=>e.id!==a.kd.FraudCheckpoint).every(e=>e.status===a.my.Qualified)&&await _.mutateAsync()},T=(0,o.useMemo)(()=>{if(w)return w;let e=y.split("/");if(!e.length)return"Onboarding";let t=e[e.length-1].split("?")[0];return(null==O?void 0:O.title)?O.title:t.split("-").map(e=>e[0].toUpperCase()+e.substring(1)).join(" ")},[y,w,null==O?void 0:O.title]),L=(0,o.useMemo)(()=>/^\/([a-z]{2}\/)?onboarding\//.test(y.split("?")[0]),[y]),W=(0,o.useMemo)(()=>/^\/([a-z]{2}\/)?onboarding$/.test(y.split("?")[0]),[y]),z=v.currentState,D=(0,o.useMemo)(()=>{var e;if(!(null==z?void 0:z.result))return i.L.Started;switch(z.result){case i.N.InProgress:return null!==(e=z.state.checkpoint)&&void 0!==e?e:i.L.Started;case i.N.Completed:return i.L.FullDashboardAccess;default:return i.L.Started}},[z]);return(0,o.useEffect)(()=>{E({forceRedirect:!1})},[E]),(0,r.jsx)(p.Provider,{value:{qualifications:v.qualifications,checkpoint:D,renderedStep:O,nextStep:v.nextStep,fetchData:E,isLoading:m,goToNextStep:M,stepTitle:T,setStepTitleOverride:k,currentStepDescriptionOverride:S,setCurrentStepDescriptionOverride:C,currentStepIconOverride:N,setCurrentStepIconOverride:P,isOnboardingStep:L,isOnboardingDashboard:W,goToPreviousPageRef:b,goToOnboardingDashboard:A,finishOnboarding:R},children:t})},m=()=>(0,o.useContext)(p)},4411:function(e,t,n){"use strict";n.d(t,{B:function(){return a},R:function(){return i}});var r=n(79687);let i=async()=>
1{let e=await (0,r.ZP)("/internal/experts/qualification/onboarding/v2");return null!=e?e:{qualifications:[]}},a=e=>e.split(" ").map(e=>e.length?e[0].toUpperCase()+e.substring(1):"").join(" ")},824551:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(440772),i=n(79687);let a=e=>(0,r.useQuery)({queryKey:["zendesk-login-and-redirect-prefix"],queryFn:async()=>(0,i.ZP)("/internal/zendesk/login_and_redirect_prefix_outlier",{method:"GET"}),enabled:e})},803019:function(e,t,n){"use strict";n.d(t,{W_:function(){return i},Wq:function(){return l},e$:function(){return s}});var r,i,a=n(596497),o=n(592271);(r=i||(i={})).Dashboard="Home",r.Projects="Projects",r.Earnings="Earnings",r.Missions="Missions",r.Feedback="Feedback",r.Community="Community",r.TrainingMaterials="Enablement",r.ResourceLibrary="Resource Library",r.Playground="Playground",r.Skills="Skills",r.Announcements="Announcements",r.Onboarding="Onboarding";let l={[i.Dashboard]:"/",[i.Projects]:"/projects",[i.Playground]:"/playground",[i.Earnings]:"/earnings",[i.Missions]:"/missions",[i.Feedback]:"/feedback",[i.Community]:o.ob,[i.TrainingMaterials]:"/enablement",[i.ResourceLibrary]:"/resource-library",[i.Skills]:(0,a.p)("".concat(o.Ih,"/skills")),[i.Announcements]:"/announcements",[i.Onboarding]:"/onboarding"},s={[i.Dashboard]:!1,[i.Projects]:!1,[i.Playground]:!1,[i.Earnings]:!0,[i.Missions]:!0,[i.Feedback]:!0,[i.Community]:!0,[i.TrainingMaterials]:!0,[i.ResourceLibrary]:!0,[i.Skills]:!1,[i.Announcements]:!0,[i.Onboarding]:!1}},981088:function(e,t,n){"use strict";n.d(t,{Qm:function(){return s},VN:function(){return l},y7:function(){return c}});var r=n(942871),i=n(526288),a=n(566163),o=n(381108);let l=(0,r.createContext)({enabled:!1,open:()=>{}}),s=()=>(0,r.useContext)(l),c=e=>{let{value:t}=(0,i.Z)(()=>e?(0,o.V3)({feature:a.BUG_NUB_FEATURE_FLAG,context:{user:{id:e,_id:e}}}):Promise.resolve(!1),[e]);return!0===t}},381108:function(e,t,n){"use strict";n.d(t,{O8:function(){return s},V3:function(){return l}});var r=n(79687);let i=new Map,a=window.localStorage,o=async function(e){var t,n,o;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s="unleash-".concat(e),c=(null===(t=null==l?void 0:l.user)||void 0===t?void 0:t.id)||(null===(n=null==l?void 0:l.user)||void 0===n?void 0:n._id);c&&(s+="-".concat(c));let u=i.get(s);if(u)return u.value;let d=JSON.parse(null!==(o=null==a?void 0:a.getItem(s))&&void 0!==o?o:"null");if(d){if(d.expiry>Date.now())return d.value;null==a||a.removeItem(s)}u={value:await (0,r.ZP)(e,void 0,l),expiry:Date.now()+3e4};try{i.set(s,u),null==a||a.setItem(s,JSON.stringify(u))}catch(e){e instanceof Error&&(console.warn(e),null==a||a.clear(),null==a||a.setItem(s,JSON.stringify(u)))}return u.value};async function l(e){let{feature:t,querystring:n,context:r}=e,i="internal/feature/unleash/".concat(t);return n&&(i+="?".concat(n)),o(i,r)}async function s(e){let{feature:t,querystring:n,context:r}=e,i="internal/feature/unleash_variant/".concat(t);return n&&(i+="?".concat(n)),o(i,r)}}}]);

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.