1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31713,81464],{605710:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/expert/outlieradmin/tools/project_squads/[[...id]]",function(){return a(123822)}])},459239:function(e,t,a){"use strict";a.d(t,{A:function(){return DatePicker_NewDatePicker},Z:function(){return _}});var r=a(667488),i=a(367915),o=a.n(i),n=a(108222),s=a.n(n),c=a(885115),l=a(528041);let DatePicker=class DatePicker extends c.Component{render(){let{minDate:e,selected:t,...a}=this.props;return(0,r.jsxs)("div",{className:"jsx-ee5b7706c80f6dab custom-datepicker",children:[(0,r.jsx)(l.Z,{minDate:e?s().utc(e):e,selected:t?s().utc(t):t,...a}),(0,r.jsx)(o(),{id:"ee5b7706c80f6dab",children:'.react-datepicker__tether-element-attached-top .react-datepicker__triangle,.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle,.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow{margin-left:-8px;position:absolute}.react-datepicker__tether-element-attached-top .react-datepicker__triangle,.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle,.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__tether-element-attached-top .react-datepicker__triangle::before,.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before,.react-datepicker__year-read-view--down-arrow::before,.react-datepicker__month-read-view--down-arrow::before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px}.react-datepicker__tether-element-attached-top .react-datepicker__triangle::before,.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before,.react-datepicker__year-read-view--down-arrow::before,.react-datepicker__month-read-view--down-arrow::before{content:"";z-index:-1;border-width:8px;left:-8px;border-bottom-color:#aeaeae}.react-datepicker__tether-element-attached-top .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker__tether-element-attached-top .react-datepicker__triangle,.react-datepicker__tether-element-attached-top .react-datepicker__triangle::before{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker__tether-element-attached-top .react-datepicker__triangle::before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle,.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow{bottom:0;margin-bottom:-8px}.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle,.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before,.react-datepicker__year-read-view--down-arrow::before,.react-datepicker__month-read-view--down-arrow::before{border-bottom:none;border-top-color:#fff}.react-datepicker__tether-element-attached-bottom .react-datepicker__triangle::before,.react-datepicker__year-read-view--down-arrow::before,.react-datepicker__month-read-view--down-arrow::before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:.8rem;background-color:#fff;color:var(--color-form-input);border:1px solid#aeaeae;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker__tether-element-attached-bottom.react-datepicker__tether-element{margin-top:-20px}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid#aeaeae;-webkit-border-top-left-radius:.3rem;-moz-border-radius-topleft:.3rem;border-top-left-radius:.3rem;-webkit-border-top-right-radius:.3rem;-moz-border-radius-topright:.3rem;border-top-right-radius:.3rem;padding-top:8px;position:relative}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll{display:inline-block;margin:0 2px}.react-datepicker__current-month{margin-top:0;color:#000;font-weight:bold;font-size:.944rem}.react-datepicker__navigation{line-height:1.7rem;text-align:center;cursor:pointer;position:absolute;top:10px;width:0;border:.45rem solid transparent;z-index:1}.react-datepicker__navigation--previous{left:10px;border-right-color:#ccc}.react-datepicker__navigation--previous:hover{border-right-color:#b3b2b2}.react-datepicker__navigation--next{right:10px;border-left-color:#ccc}.react-datepicker__navigation--next:hover{border-left-color:#b3b2b2}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px;border-top-color:#ccc}.react-datepicker__navigation--years-previous:hover{border-top-color:#b3b2b2}.react-datepicker__navigation--years-upcoming{top:-4px;border-bottom-color:#ccc}.react-datepicker__navigation--years-upcoming:hover{border-bottom-color:#b3b2b2}.react-datepicker__month-container{display:inline;float:left}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day-name,.react-datepicker__day{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day{cursor:pointer}.react-datepicker__day:hover{-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today{font-weight:bold}.react-datepicker__day--highlighted{-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover{background-color:#32be3f}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range{-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected{-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__day--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range){background-color:rgba(33,107,165,.5)}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover{background-color:transparent}.react-datepicker__input-container{position:relative;display:inline-block}.react-datepicker__year-read-view,.react-datepicker__month-read-view{border:1px solid transparent;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b2b2}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow{border-top-color:#ccc;float:right;margin-left:20px;top:8px;position:relative;border-width:.45rem}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;text-align:center;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem;border:1px solid#aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type{-webkit-border-top-left-radius:.3rem;-moz-border-radius-topleft:.3rem;border-top-left-radius:.3rem;-webkit-border-top-right-radius:.3rem;-moz-border-radius-topright:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-border-bottom-left-radius:.3rem;-moz-border-radius-bottomleft:.3rem;border-bottom-left-radius:.3rem;-webkit-border-bottom-right-radius:.3rem;-moz-border-radius-bottomright:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b2b2}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b2b2}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected{position:absolute;
1left:15px}.react-datepicker__close-icon{background-color:transparent;border:0;cursor:pointer;display:inline-block;height:0;outline:0;padding:0;vertical-align:middle}.react-datepicker__close-icon::after{background-color:#216ba5;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;bottom:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#fff;content:"\\\\00d7";cursor:pointer;font-size:12px;height:16px;width:16px;line-height:1;margin:-8px auto 0;padding:2px;position:absolute;right:7px;text-align:center;top:50%}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid#aeaeae;cursor:pointer;text-align:center;font-weight:bold;padding:5px 0;clear:left}.react-datepicker__tether-element{z-index:2147483647}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:rgba(0,0,0,.8);left:0;top:0;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day{width:3rem;line-height:3rem}@media(max-width:400px),(max-height:550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month{font-size:1.44rem}.react-datepicker__portal .react-datepicker__navigation{border:.81rem solid transparent}.react-datepicker__portal .react-datepicker__navigation--previous{border-right-color:#ccc}.react-datepicker__portal .react-datepicker__navigation--previous:hover{border-right-color:#b3b2b2}.react-datepicker__portal .react-datepicker__navigation--next{border-left-color:#ccc}.react-datepicker__portal .react-datepicker__navigation--next:hover{border-left-color:#b3b2b2}.custom-datepicker .react-datepicker__input-container{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;width:100%;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.03),0 1px 0 rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.03),0 1px 0 rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 1px 0 rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.1);overflow:hidden}.custom-datepicker .react-datepicker__input-container input{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:7px 10px 7px 10px;font-size:14px;font-family:var(--font-family);border:none}.react-datepicker-popper{z-index:10}'})]})}};var d=a(661869),u=a.n(d),p=a(848143),m=a.n(p),h=a(523755),f=a(374075),g=a(701200),b=a(501469);let y=(0,h.ZL)(e=>({root:{fontFamily:e.typography.fontFamily},calendar:{fontFamily:e.typography.fontFamily,boxShadow:e.boxShadowLarge,"& .react-datepicker__header":{backgroundColor:"transparent",paddingTop:0},"& .react-datepicker__day--in-range":{backgroundColor:"#4C98D3"}},headerContainer:{display:"flex",alignItems:"center",fontSize:14,fontWeight:500,justifyContent:"space-between",width:"calc(100% - 16px)",padding:e.spacing(1)},day:{borderRadius:"50%","&:hover":{borderRadius:"50%"}},inputErrorMessage:{padding:"0 6px",fontSize:"12px",color:"var(--color-RemoRed)"}}));var DatePicker_NewDatePicker=function(e){let{errors:t,className:a,calendarClassName:i,dayClassName:o,...n}=e,c=y();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m(),{dayClassName:e=>o?u()(c.day,o(e)):c.day,renderCustomHeader:function(e){let{date:t,decreaseMonth:a,increaseMonth:i,prevMonthButtonDisabled:o,nextMonthButtonDisabled:n}=e;return(0,r.jsxs)("div",{className:c.headerContainer,children:[(0,r.jsx)(f.Z,{onClick:a,disabled:o,size:"small",children:(0,r.jsx)(g.Z,{})}),(0,r.jsx)("div",{children:s()(t).format("MMMM YYYY")}),(0,r.jsx)(f.Z,{onClick:i,disabled:n,size:"small",children:(0,r.jsx)(b.Z,{})})]})},className:u()(c.root,a),calendarClassName:u()(c.calendar,i),...n}),t&&t.length>0&&t.map(e=>e.verifier&&(0,r.jsx)("div",{className:c.inputErrorMessage,children:e.message}))]})},_=DatePicker},70333:function(e,t,a){"use strict";a.d(t,{Z:function(){return design_system_Pagination}});var r=a(667488),i=a(885115),o=a(526172),design_system_Pagination=e=>{let{page:t,count:a,className:n,size:s="small",onChange:c}=e,l=(0,i.useCallback)((e,t)=>null==c?void 0:c(t),[c]);return(0,r.jsx)(o.Z,{size:s,page:t,count:a,shape:"rounded",className:n,onChange:l})}},186383:function(e,t,a){"use strict";a.d(t,{J7:function(){return useTimer},uI:function(){return useTimerData}});var r=a(667488),i=a(885115),o=a(828966),n=a(663752),s=a(243553),c=a(470111),l=a(168531),d=a(424565),u=a(973647),p=a(975343),m=a(747910),h=a.n(m);let f=i.createContext({}),useTimer=()=>{let e=(0,i.useContext)(f),[t,a,r]=(0,u.Z)("timer",buildDefaultTimerData());return e.getTimerData?e:{getTimerData:t,setTimerData:a,subscribeTimerData:r}},buildDefaultTimerData=()=>
1({startTime:Date.now(),lastTime:Date.now(),totalTime:0,serverTimeSpent:0}),useTimerData=()=>{let{getTimerData:e,setTimerData:t,subscribeTimerData:a}=useTimer(),r=(0,o.useSyncExternalStore)(a,e);return[r,t]};t.ZP=e=>(0,c.YI)((0,c.MD)(e)((0,c.$s)("withV2Timer")(t=>{var a,o;let c;let[m,g,b]=(0,u.Z)("timer",buildDefaultTimerData());if(t.timerDisabled)return(0,r.jsx)(f.Provider,{value:{getTimerData:m,setTimerData:g,subscribeTimerData:b},children:(0,r.jsx)(e,{ref:t.forwardedRef,...t})});let y=(0,p.ZP)("enable-timer-for-training-attempt",{},!1),_=1e3*(0,s.gLY)(t.type,t.usePageTracker,!h().isNil(t.courseId)),k=t.usePageTracker,v=y&&t.trainingAttemptId,x=t.loggedUserId&&!t.debugMode&&!t.isCorpMode&&(!t.isTestQuestion||t.isScaleStudio)&&!t.isCustomerReviewMode,T=!!t.courseId&&!(null===(a=t.training)||void 0===a?void 0:a.isLoading),w=v||x||k||T,S=new URLSearchParams(window.location.search),C=null!==(o=S.get("qaOperationId"))&&void 0!==o?o:void 0,P=(0,i.useRef)(new Date),j=(0,i.useCallback)(()=>{P.current=new Date},[]),N=h().isNil(t.courseId)?_:12e4,active=()=>!!P.current&&Date.now()-P.current.getTime()<N,A=(0,l.tQ)(),I=(0,i.useCallback)(async()=>{let e,a;let r=m(),i=new Date(r.startTime).getDay()!==new Date().getDay();if(g({startTime:i?Date.now():r.startTime,lastTime:Date.now(),totalTime:r.totalTime+Date.now()-r.lastTime,serverTimeSpent:r.serverTimeSpent}),!w||(k?(e=A,a="page"):T?(e=t.courseId,a="course"):(e=v?t.trainingAttemptId:t._id,a="tick"),t.isScaleStudio&&t.isTestQuestion&&(e=t.trainingAttemptId),!e))return;let o="internal/timer/".concat(a,"/").concat(e),s={active:active()};k&&(s.pageType=t.pageType);try{let e=await (0,n.ZP)(null,o,{method:"PUT",body:s,query:{project:d.in.projectId,auditBatchId:d.in.auditBatchId,pageUrl:window.location.pathname,qaOperationId:C}});if("tick"===a){let{timeSpent:t,paused:a}=e;g({...r,serverTimeSpent:Number(t),paused:!!a})}}catch(e){}if(t.childIds)for(let e of t.childIds)e&&(0,n.ZP)(null,"internal/timer/".concat(a,"/").concat(e),{method:"PUT",body:s,query:{project:d.in.projectId,auditBatchId:d.in.auditBatchId,pageUrl:window.location.pathname,qaOperationId:C}})},[w,t._id,t.pageType,A,C,m,g]),E=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];clearTimeout(c),c=setTimeout(()=>I.apply(this,t),_)},[I,_]);return(0,i.useEffect)(()=>{if(!w)return;let handleBeforeUnload=()=>(E(),null);window.addEventListener("mousemove",j),window.addEventListener("keydown",j),window.addEventListener("beforeunload",handleBeforeUnload),I();let e=window.setInterval(I,_);return()=>{window.removeEventListener("mousemove",j),window.removeEventListener("keydown",j),window.removeEventListener("beforeunload",handleBeforeUnload),E(),clearInterval(e)}},[I,E,j,w,_]),(0,r.jsx)(f.Provider,{value:{getTimerData:m,setTimerData:g,subscribeTimerData:b},children:(0,r.jsx)(e,{ref:t.forwardedRef,...t})})})))},665445:function(e,t,a){"use strict";a.d(t,{Ce:function(){return p},TY:function(){return c},Uu:function(){return s},_X:function(){return i},d4:function(){return u},v9:function(){return n},vc:function(){return d},wj:function(){return l}});var r,i,o=a(90272);let n="Trust & Safety Qualification List",s=5,c={[o.QualificationType.AccessLink]:"Access Link",[o.QualificationType.AccountVerification]:"Account Verification",[o.QualificationType.Acknowledgement]:"Acknowledgement",[o.QualificationType.Codeforces]:"Codeforces",[o.QualificationType.CompleteProfile]:"Complete Profile",[o.QualificationType.ContributorAgreement]:"Contributor Agreement",[o.QualificationType.Course]:"Course",[o.QualificationType.AgenticInterview]:"AI Interview",[o.QualificationType.Training]:"Completed Onboarding",[o.QualificationType.HackerRank]:"HackerRank",[o.QualificationType.InstructionItem]:"Instruction Item",[o.QualificationType.JoinSlack]:"Join Slack",[o.QualificationType.JoinCommunity]:"Join Community",[o.QualificationType.SecureTraining]:"Secure Training",[o.QualificationType.WFESignin]:"WFE Signin",[o.QualificationType.WFEStartTasking]:"WFE Start Tasking",[o.QualificationType.WorkerProperty]:"Worker Property",[o.QualificationType.WorkerSkill]:"Worker Skill",[o.QualificationType.WorkerExperience]:"Worker Experience",[o.QualificationType.Webinar]:"Webinar",[o.QualificationType.OnboardingSuccessRate]:"Onboarding Success Rate",[o.QualificationType.Tenure]:"Tenure",[o.QualificationType.ContributorQualityScore]:"Contributor Quality Score",[o.QualificationType.IdvCheck]:"IDV Check",[o.QualificationType.CountryPermitted]:"Country Permitted",[o.QualificationType.GoldCheck]:"Gold Check",[o.QualificationType.NonMarketplaceStatus]:"Non-Marketplace Status",[o.QualificationType.Experiment]:"Experiment",[o.QualificationType.FraudBucket]:"Fraud Bucket",[o.QualificationType.FraudCheckpoint]:"Fraud Checkpoint",[o.QualificationType.Tag]:"Tag",[o.QualificationType.InviteBatch]:"Invite Batch",[o.QualificationType.LinkedInReachable]:"LinkedIn Reachable",[o.QualificationType.LinkedInConnections]:"LinkedIn Connections",[o.QualificationType.Cohort]:"Cohort"};(r=i||(i={})).Assigned="Assigned",r.Available="Available",r.Eligible="Eligible";let l={Assigned:"This project",Available:"Total available",Eligible:"Total eligible"},d={Assigned:"qualified on this project",Available:"available for this project",Eligible:"eligible for this project"},u={Assigned:["This is a subset of Total Available. All filters for Total Available are applied here, plus the following filters:","Only contributors who are assigned to this project are included","For Marketplace contributors: Project must be either their chosen assignment or first direct assignment","For worker team contributors: Project must be one of their primary team assignments"],Available:["This is a subset of Total Eligible. All filters for Total Eligible are applied here, plus the following filters:","Only contributors who have been online in the last 2 weeks are included","Disabled contributors are excluded","Contributors in the Marketplace who have a first direct assignment to another project are excluded"],Eligible:['Shows count of contributors qualified to work on this project. "Qualified" means qualifying for at least one qualification list in the set.',"Contributors in fraud or banned worker teams are excluded","Only contributors who have been online in the last 4 weeks are included"]},p={Assigned:"Count of contributors who are qualified and assigned to this project",Available:"Count of contributors who are qualified and available to work on this project",Eligible:"Count of contributors who are qualified to work on this project"}},387477:function(e,t,a){"use strict";a.d(t,{Z:function(){return useDataQueryParams}});var r=a(885115),i=a(480333),o=a(430633);function useDataQueryParams(){let e=(0,i.Z)(),{value:t,setDataQuery:a}=e,n=(0,r.useMemo)(()=>{try{var e;return JSON.parse(null!==(e=o.parse("dataQuery="+t.dataQuery).data
1Query)&&void 0!==e?e:"[]")}catch(e){return[]}},[t.dataQuery]),s=(0,r.useMemo)(()=>n&&n.length,[n]);return{dataQueryParams:n,setDataQueryParams:a,hasDataQueryParams:s}}},460538:function(e,t,a){"use strict";a.d(t,{MC:function(){return useOnboardingV3Tour},hx:function(){return i},mh:function(){return useProjectAttachmentHipaaCoverage}});var r,i,o=a(747910),n=a.n(o),s=a(885115),c=a(968053),l=a(663752);function useProjectAttachmentHipaaCoverage(e){let[t,a]=(0,s.useState)(!0),[r,i]=(0,s.useState)(!1);(0,s.useEffect)(()=>{!async function(){let{isAttachmentCoveredByHipaa:t}=await c.Z.selfserve.fetchProjectAttachmentHipaaCoverage({project:e});i(t),a(!1)}()},[e]);let refresh=async()=>{let{isAttachmentCoveredByHipaa:t}=await c.Z.selfserve.fetchProjectAttachmentHipaaCoverage({project:e});i(t)};return{isLoading:t,isProjectAttachmentCoveredByHipaa:r,refresh}}function useOnboardingV3Tour(e,t){let[a,r]=(0,s.useState)(null),[i,o]=(0,s.useState)(0),[d,u]=(0,s.useState)([]),[p,m]=(0,s.useState)(null),h=e?["create_a_new_project","select_template","add_data","use_case_template","template_label","preview_task","taxonomy_next","instructions","preview_instructions","instructions_next","batch_next","launch_batch"]:["create_a_new_project","select_template","sample_dataset","data_imported","use_case","pipeline","use_case_next","label","preview_task","taxonomy_next","instructions","preview_instructions","instructions_next","batch_next","launch_batch"],closeTourStep=e=>{d.includes(e)||("taxonomy_next"===e?u([...d,e,"preview_task","label"]):"instructions_next"===e?u([...d,e,"preview_instructions","instructions"]):u([...d,e]))},resetTour=()=>{u([]),o(0)},handleExitTour=async()=>{u(h),r(!1),o(0);try{(async()=>{await c.Z.selfserve.exitOnboardingTour({})})()}catch(e){u(h),r(!1),o(0)}},handleEnterTour=async()=>{try{(async()=>{await c.Z.selfserve.enterOnboardingTour({})})(),resetTour(),r(!0)}catch(e){resetTour(),r(!0)}};(0,s.useEffect)(()=>{let getShouldEnterTour=async()=>{if(n().isNil(a)){let e=await c.Z.selfserve.checkShouldEnterOnboardingTour({});r(e.shouldEnter),e.shouldEnter?resetTour():u(h)}};getShouldEnterTour().catch(e=>(0,l.vj)(e,{handleHttp:!0}))},[a,h,e]);let f={create_a_new_project:{name:"create_a_new_project",text:"Hello! Start by finding a template that matches your use cases or create a custom project.",placement:"right-end"},sample_dataset:{name:"sample_dataset",text:"Donât have your data handy? Use a sample dataset instead! You can also add your own data later.",placement:"right"},data_imported:{name:"data_imported",text:"Success! Your data has been imported. Click next to continue.",placement:"bottom"},use_case:{name:"use_case",text:"Pick the use case that best fits your labeling needs. To see examples, click âLearn More.â",placement:"right"},pipeline:{name:"pipeline",text:"A pipeline outlines the sequence in which labelers complete your task. Select one. ",placement:"right"},use_case_next:{name:"use_case_next",text:"Click next to continue!",placement:"bottom"},label:{name:"label",text:"Weâve added some example labels to help you get started. Click into a label to edit its details",placement:"left",hasNext:!0},preview_task:{name:"preview_task",text:"Check how your task will appear to labelers.",placement:"right",hasNext:!0},taxonomy_next:{name:"taxonomy_next",text:"Click next when you have added all your labels!",placement:"bottom"},instructions:{name:"instructions",text:"Write your instructions. Weâve created sections to help you get started! Click into a section to edit its details.",placement:"left",hasNext:!0},preview_instructions:{name:"preview_instructions",text:"Check how your instructions will look to labelers.",placement:"right",hasNext:!0},instructions_next:{name:"instructions_next",text:"Click next when your instructions are ready!",placement:"bottom"},batch_next:{name:"batch_next",text:"Click next to select your data for your first batch!",placement:"left"},launch_batch:{name:"launch_batch",text:"Click here to launch your batch!",placement:"left"},select_template:{name:"select_template",text:"Select this template if it matches your use case!",placement:"bottom"},add_data:{name:"add_data",text:"Click here to add your own data! You can also upload more later. Or, click next to continue.",placement:"bottom"},use_case_template:{name:"use_case_template",text:"Your use case and pipeline are selected based on the template that you have chosen. Click next to continue!",placement:"bottom"},template_label:{name:"template_label",text:"This template comes with some labels to help you get started. Click into a label to edit its details",placement:"left",hasNext:!0}};return t&&a?{tourRef:p,setTourRef:m,currentTourStep:n().get(f,h[i],null),handleNextTourStep:()=>{i+1>=h.length?o(-1):(o(i+1),closeTourStep(h[i]))},syncTourStep:e=>{if(h.includes(e)&&""!==e){if(d.includes(e)&&n().get(f,[e,"hasNext"],null)){for(let t=h.indexOf(e);t<h.length;t++)if(!d.includes(h[t])){o(t);break}}else"taxonomy_next"===e?d.includes("label")?d.includes("preview_task")?o(h.indexOf(e)):o(h.indexOf("preview_task")):o(h.indexOf("label")):"instructions_next"===e?d.includes("instructions")?d.includes("preview_instructions")?o(h.indexOf(e)):o(h.indexOf("preview_instructions")):o(h.indexOf("instructions")):o(h.indexOf(e))}else o(-1),m(null)},closeTourStep,closedTourSteps:d,resetTour,handleEnterTour,handleExitTour,closeUpToCurrentView:e=>{if(h.includes(e)){let t=[];
1for(let a of h){if(a===e)break;d.includes(a)||t.push(a)}u([...d,...t])}}}:{tourRef:null,setTourRef:()=>{},currentTourStep:"",handleNextTourStep:()=>{},syncTourStep:()=>{},closeTourStep:()=>{},closedTourSteps:[],resetTour:()=>{},handleEnterTour,handleExitTour:()=>{},closeUpToCurrentView:()=>{}}}(r=i||(i={})).Clear="",r.CreateANewProject="create_a_new_project",r.SelectTemplate="select_template",r.SampleDataset="sample_dataset",r.AddData="add_data",r.DataImported="data_imported",r.UseCase="use_case",r.UseCaseTemplate="use_case_template",r.Pipeline="pipeline",r.UseCaseNext="use_case_next",r.Label="label",r.TemplateLabel="template_label",r.PreviewTask="preview_task",r.TaxonomyNext="taxonomy_next",r.Instructions="instructions",r.PreviewInstructions="preview_instructions",r.InstructionsNext="instructions_next",r.BatchNext="batch_next",r.LaunchBatch="launch_batch"},476285:function(e,t,a){"use strict";var r=a(667488);a(885115);var i=a(661869),o=a.n(i),n=a(924966),s=a(462206);let c=(0,s.ZL)({container:{display:"flex",flexDirection:"column",justifyContent:"center",flexFlow:"column nowrap",flexWrap:"nowrap"},exampleTypeSelector:{display:"flex",justifyContent:"center",marginBottom:"12px"},exampleType:{margin:"8px",padding:"2px 8px 2px 8px",border:"1px solid #E6E6E6",borderRadius:"8px"},exampleTypeClickable:{cursor:"pointer"}});t.Z=e=>{let{exampleType:t,disabled:a,setExampleType:i,readOnly:s}=e,l=c();return(0,r.jsx)("div",{className:l.container,children:(0,r.jsxs)("div",{className:l.exampleTypeSelector,children:[(!s||"good"===t)&&(0,r.jsxs)("div",{className:o()(l.exampleType,{[l.exampleTypeClickable]:!a}),onClick:()=>!a&&i("good"),style:"good"===t?{border:"1px solid green"}:{},children:[(0,r.jsx)(n.GN,{icon:"check-circle",color:"green",style:{fontSize:"11px",lineHeight:"16px",marginRight:8,opacity:.5}}),"Well labeled example"]}),(!s||"bad"===t)&&(0,r.jsxs)("div",{className:o()(l.exampleType,{[l.exampleTypeClickable]:!a}),onClick:()=>!a&&i("bad"),style:"bad"===t?{border:"1px solid red"}:{},children:[(0,r.jsx)(n.GN,{icon:"times-circle",color:"red",style:{fontSize:"11px",lineHeight:"16px",marginRight:8,opacity:.3}}),"Poorly labeled example"]})]})})}},998932:function(e,t,a){"use strict";a.d(t,{Q:function(){return C}});var r=a(667488),i=a(367915),o=a.n(i),n=a(885115),s=a(508191),c=a(523755),l=a(924966),d=a(462206),u=a(309038),p=a(634384),m=a(476285),h=a(153108),f=a(371975),g=a(163048),b=a(968053),y=a(53545),_=a(90272),k=a(36856),v=a(535246),x=a(410089),T=a(764457),w=a(747910),S=a.n(w);let C="What does this example illustrate? Click here to add a description.",P=(0,d.ZL)({container:{display:"flex",flexDirection:"column",justifyContent:"center",flexFlow:"column nowrap",flexWrap:"nowrap"},dialog:{width:"100%",overflow:"hidden",margin:"2% auto 20px"},dialogRoot:{zIndex:"110 !important"},exampleTypeSelector:{display:"flex",justifyContent:"center",marginBottom:"12px"},exampleType:{margin:"8px",padding:"2px 8px 2px 8px",border:"1px solid #E6E6E6",borderRadius:"8px",cursor:"pointer"},selectorControls:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:"24px"},createButton:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-end"}});t.Z=e=>{let{modalOpen:t,lastSelection:a,project:i,uploadedAssets:d,taxonomy:w,location:j,caption:N,setModalOpen:A,handleSave:I,trayExamples:E,setTrayExamples:R}=e,O=P(),[D,z]=(0,n.useState)(0),[M]=(0,n.useState)({}),[L,q]=(0,n.useState)("good"),[Q,F]=(0,n.useState)(!1),[B,Z]=(0,n.useState)(N),[U,W]=(0,n.useState)(void 0),[V,H]=(0,n.useState)(""),[Y,G]=(0,n.useState)(E||j.examples||[]),[J,K]=(0,n.useState)(!1),[X,$]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(-1),[ea,er]=(0,n.useState)(!1),{fetchUnprocessedAttachments:ei}=(0,T.Z)(),{taskType:eo}=(0,v.kc)(),en=(0,h.ui)(),fetchAsset=async e=>(M[e]||(M[e]=(await b.Z.selfserve.fetchAssetS3URL({assetId:e})).signedURL),M[e]),hasAnnotations=async()=>{if(!es.current)return!1;{let e=await es.current.getReviewChanges();return eo===_.TaskType.Categorization?e.taxonomies&&e.taxonomies.length>0:e.annotations&&e.annotations.length>0}},fetchAssetToTemplateAttachment=async(e,t)=>{let{attachment:a}=await b.Z.selfserve.fetchAssetToTemplateAttachment({assetId:e,project:t.id});return a};(0,n.useEffect)(()=>{t&&z(0)},[t]),(0,n.useEffect)(()=>{let e=!1;return async function(){if(d&&d.length>0){W(void 0);let a=await (0,y.kh)(null!=eo?eo:i.type,d[D],w,!0,fetchAsset,i.useTextCollectionTemplate?fetchAssetToTemplateAttachment:void 0,i);if(a.attachments&&S().every(a.attachments,e=>"unprocessed"===e.type)){var t;a.attachments=await ei(null!==(t=a.attachments)&&void 0!==t?t:[])}e||W({...f.QS,type:null!=eo?eo:i.type,params:a,assignment:{projectId:i.id,params:a,type:null!=eo?eo:i.type,featureFlags:{showSidebar:(null!=eo?eo:i.type)===_.TaskType.NamedEntityRecognition||void 0}},timerDisabled:!0,shouldWarnOnExit:!1,readOnly:!1,editable:!0,canEdit:!0,isCustomer:!0,showHeader:!1,isTaxonomyDisplay:!0,show
1Footer:!1})}d&&d[D+1]&&(null!=eo?eo:i.type)===_.TaskType.DocumentTranscription&&b.Z.selfserve.fetchAssetPages({assetId:d[D+1]._id})}(),function(){e=!0}},[i,d,w,D]);let es=(0,n.useRef)(),onContinue=async()=>{if(F(!0),es.current&&i){let e=await es.current.getReviewChanges(),t=d[D]._id,a={project:i.id,type:null!=eo?eo:i.type,uploadedAsset:t,taxonomy:w,response:e};try{let{taskId:e,msg:t}=await b.Z.selfserve.setInstructionsExample(a);if(!t){let t={taskId:e,isGoodExample:"good"===L};t.caption=B,g.YR.setNodes(en,{examples:[...Y,t]},{at:j.path}),G([...Y,t]),handleCreated(),R&&R([...Y,t])}H("")}catch(e){H("verify that the response is valid")}F(!1)}},handleCreated=()=>{K(!0),er(!0),setTimeout(()=>K(!1),2e3)},handleMove=e=>{et(e),$(!0)};return(0,r.jsxs)(r.Fragment,{children:[X&&(0,r.jsx)(k.Z,{isOpen:X,message:"do you want to change images without saving the example?",onSubmit:()=>{z(ee),et(-1),er(!1),$(!1)},onRequestClose:()=>$(!1)}),(0,r.jsxs)(c.Vq,{classes:{root:O.dialogRoot,paper:O.dialog},maxWidth:"lg",open:t,onClose:e=>{((null==e?void 0:e.type)!=="keydown"||(null==e?void 0:e.keyCode)!==27)&&(!Q&&a&&a.anchor&&g.YR.select(en,a),I&&I(),A(!1))},children:[(0,r.jsx)(c.$N,{children:(0,r.jsx)("div",{style:{textAlign:"center",fontWeight:500,fontSize:"16px",lineHeight:"20px"},children:"Create both well labeled and poorly labeled examples"})}),(0,r.jsxs)(c.cZ,{children:[(!d||0===d.length)&&(0,r.jsx)("h6",{className:"jsx-8b0aa6d31560dfb1",children:"No assets to display..."}),d&&d.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Z,{exampleType:L,setExampleType:q,disabled:Q,readOnly:!1}),V.length>0&&(0,r.jsx)(c.bZ,{severity:"error",style:{marginTop:"2px",marginBottom:"12px"},children:V}),J&&(0,r.jsx)(c.bZ,{severity:"success",style:{marginTop:"2px",marginBottom:"12px"},children:"example created!"}),U?(0,r.jsx)(x.Z,{children:(0,r.jsx)(n.Suspense,{fallback:(0,r.jsx)(s.Z,{style:{paddingBottom:"16px"}}),children:(0,r.jsx)("div",{className:"jsx-8b0aa6d31560dfb1 component",children:(0,r.jsx)(p.M5,{children:(0,r.jsx)(u.Z,{taskType:U.type,taskProps:U,taskRef:es,isTaxonomyDisplay:(null!=eo?eo:i.type)!=="categorization"})})})})}):(0,r.jsx)(s.Z,{style:{paddingBottom:"16px"}}),(0,r.jsx)("input",{value:B,placeholder:C,style:{opacity:.75,marginTop:12,textAlign:"center",border:0,fontSize:"14px",width:"100%"},onFocus:e=>e.target.placeholder="",onBlur:e=>e.target.placeholder=C,onChange:e=>{e.preventDefault(),Z(e.target.value)},className:"jsx-8b0aa6d31560dfb1"}),(0,r.jsxs)("div",{className:"jsx-8b0aa6d31560dfb1 "+(O.selectorControls||""),children:[(0,r.jsx)(c.u,{arrow:!0,placement:"top",title:"jump to first asset",children:(0,r.jsx)("div",{className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)("a",{onClick:async()=>{Q||(!ea&&await hasAnnotations()?handleMove(0):(z(0),er(!1)))},className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)(l.GN,{icon:"angle-double-left",color:"black",style:{width:16,height:16,marginLeft:8,marginTop:4}})})})}),(0,r.jsx)(c.u,{arrow:!0,placement:"top",title:"view previous asset",children:(0,r.jsx)("div",{className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)("a",{style:{marginLeft:"8px"},onClick:async()=>{let e=(D-1+d.length)%d.length;Q||(!ea&&await hasAnnotations()?handleMove(e):(z(e),er(!1)))},className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)(l.GN,{icon:"angle-left",color:"black",style:{width:16,height:16,marginLeft:8,marginTop:4}})})})}),(0,r.jsxs)("p",{style:{margin:"0px 10px 0px 10px"},className:"jsx-8b0aa6d31560dfb1",children:[D+1," of ",d.length]}),(0,r.jsx)(c.u,{arrow:!0,placement:"top",title:"view next asset",children:(0,r.jsx)("div",{className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)("a",{style:{marginRight:"8px"},onClick:async()=>{let e=(D+1)%d.length;Q||(!ea&&await hasAnnotations()?handleMove(e):(z(e),er(!1)))},className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)(l.GN,{icon:"angle-right",color:"black",style:{width:16,height:16,marginLeft:8,marginTop:4}})})})}),(0,r.jsx)(c.u,{arrow:!0,placement:"top",title:"jump to last asset",children:(0,r.jsx)("div",{className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)("a",{onClick:async()=>{let e=d.length-1;Q||(!ea&&await hasAnnotations()?handleMove(e):(z(e),er(!1)))},className:"jsx-8b0aa6d31560dfb1",children:(0,r.jsx)(l.GN,{icon:"angle-double-right",color:"black",style:{width:16,height:16,marginLeft:8,marginTop:4}})})})})]})]}),(0,r.jsx)(o(),{id:"8b0aa6d31560dfb1",children:".component{height:540px}.component,.component .task{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:0;min-width:0;width:100%;overflow:auto}.task__splitpane{position:relative;overflow:auto}"}),(0,r.jsx)("div",{className:"jsx-8b0aa6d31560dfb1 "+(O.createButton||""),children:(0,r.jsx)(c.zx,{type:"primary",onClick:onContinue,disabled:Q,children:Q?"Saving":"Save example"})})]})]})]})}},504576:function(e,t,a){"use strict";a.d(t,{Z:function(){return useInstructionTaskData}});var r=a(968053),i=a(541053);let useInstructionTaskData=(e,t,a,o)=>{let n=(0,i.useQuery)(["use-instruction-task-data",e],()=>r.Z.selfserve.fetchInstructionExample({task:e,projectTemplateId:a,notRequiredInstructionExample:o}),t?{cacheTime:3e5}:{cacheTime:0});return n}},36856:function(e,t,a){"use strict";var r=a(667488),i=a(367915),o=a.n(i);a(885115);var n=a(732619),s=a(434230),c=a(272796);t.Z=e=>{let{isOpen:t,canSubmit:a=!0,message:i,onSubmit:l,onRequestClose:d,marginAmount:u}=e;return(0,r.jsxs)(n.u_,{maxWidth:600,isOpen:t,onRequestClose:d,contentLabel:"Confirmation",margin:u,children:[(0,r.jsx)(n.xB,{onRequestClose:d,children:"Confirmation"}),(0,r.jsx)(n.fe,{children:i}),(0,r.jsx)(n.mz,{children:(0,r.jsxs)("div",{className:"jsx-186b16cd0a3c6117 actions",children:[(0,r.jsx)(c.Z,{secondary:!0,onClick:d,children:"Cancel"}),(0,r.jsx)(c.Z,{disabled:!a,onClick:l,style:{color:"white",background:s.ZP.colors.primary1,marginLeft:12},children:"Confirm"})]})}),(0,r.jsx)(o(),{id:"186b16cd0a3c6117",children:".actions.jsx-186b16cd0a3c6117{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;
1-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}"})]})}},53545:function(e,t,a){"use strict";a.d(t,{MT:function(){return getUrlBase},Ok:function(){return uploadedAssetToAttachmentType},av:function(){return getDefaultPipelineForProject},fV:function(){return i},ir:function(){return useRapidHistory},kh:function(){return createParams},of:function(){return getUploadedAssetMetadataObj},zT:function(){return p}}),a(885115);var r,i,o=a(747910),n=a.n(o),s=a(243553),c=a(90272),l=a(324941),d=a(430633),u=a(450610);a(72837),a(968053);let p="MMM DD, YYYY",getUploadedAssetMetadataObj=e=>"string"==typeof e.metadata?JSON.parse(e.metadata):"object"==typeof e.metadata?e.metadata:null,uploadedAssetToAttachmentType=e=>{let t=getUploadedAssetMetadataObj(e);if(null==t?void 0:t.attachment_type)return t.attachment_type;if(e.mimeType.match("image/*"))return s.D6I.Image;if(e.mimeType.match("audio/*"))return s.D6I.Audio;if("text/json"===e.mimeType)return s.D6I.Json;if(e.mimeType.match("text/*")&&void 0===e.text)return s.D6I.DownloadableText;if(e.mimeType.match("text/*"))return s.D6I.Text;if(e.mimeType.match("video/*"))return s.D6I.Video;if("application/pdf"===e.mimeType)return s.D6I.Pdf;else if("unprocessed"===e.mimeType)return"unprocessed";else return null},createParams=async(e,t,a,r,i,o,s,d)=>{var u,p;let m=uploadedAssetToAttachmentType(t),h=t.storageUrl,f=r?null!==(u=t.signedUrl)&&void 0!==u?u:await i(t._id,d):h,g={};if(e===c.TaskType.TextCollection){let e=m===l.EF.Audio?l.EF.TranscriptionAudio:m;if(o)g.attachments=await o(t._id,s);else if("text/json"===t.mimeType){let e=JSON.parse(t.text||"[]");g.attachments=await Promise.all(e.map(async e=>e.assetId?{type:e.type,content:await i(e.assetId,d)}:e)),g.force_stacked=!0}else g.attachments=[{type:e,content:"text"===m||"website"===m?t.text:f}]}else if(e===c.TaskType.NamedEntityRecognition){if(m===l.EF.DownloadableText){let e=await fetch(f);g.text=await e.text()}else g.text=t.text}else e===c.TaskType.VideoPlaybackAnnotation?(g.attachment_type=m,g.attachment=r?f:await i(t._id,d),g.metadata=t.metadata,g.frame_rate=null!==(p=a.frame_rate)&&void 0!==p?p:1):(g.attachment="text"===m||"website"===m?t.text:f,g.attachment_type=m);return n().pickBy({...a,...g})},getDefaultPipelineForProject=(e,t)=>t&&t===s.Iec.TEXT_GEN?c.TaskPipelineName.FreeformTextCollectionTask:e===c.TaskType.Categorization?c.TaskPipelineName.ConsensusTask:c.TaskPipelineName.StandardTask;s.Iec.WITHOUT_TEMPLATE,s.Iec.AV_IMAGE,s.Iec.AC_IMAGE,s.Iec.LOGI_IMAGE,s.Iec.AV_VIDEO,s.Iec.ARVR_VIDEO,s.Iec.RESUME_DOCUMENTS,s.Iec.INVOICE_DOCUMENTS,s.Iec.TEXT_GEN,s.Iec.RELEVANCE,s.Iec.MOS_RANKING,s.Iec.AUDIO_TRANSCRIPTION,s.Iec.GENERAL_CLASS,s.Iec.NER;let getUrlBase=e=>{let[,t]=e.match(/\/([^/]*).*$/);return t};Object.freeze({regular_batch_launched:{progress:100},launch_regular_batch:{progress:90,text:"Launch production batch",to:"/batches"},quality_tasks:{progress:70,text:"Audit & create quality tasks",to:"/batches"},calibration_review:{progress:55,text:"Review feedback from calibration",to:"/batches"},calibration_create:{progress:45,text:"Create calibration batch",to:"/batches"},instruction_write:{progress:30,text:"Write instructions",to:"/definition"},taxonomy_define:{progress:15,text:"Define taxonomy",to:"/definition"},data_upload:{progress:0,text:"Upload data",to:"/definition"}}),Object.freeze({regular_batch_launched:{progress:100},launch_regular_batch:{progress:70,text:"Launch production batch",to:"/batches"},quality_tasks:{progress:50,text:"Audit & create quality tasks",to:"/batches"},calibration_review:{progress:10,text:"Review feedback from calibration",to:"/batches"},calibration_create:{progress:0,text:"Create calibration batch",to:"/batches"}}),(r=i||(i={})).local="Local",r.previous_project="Previous Project",r.s3="Amazon S3",r.gcp="Google Cloud Platform",r.azure="Microsoft Azure",r.url="URL";let useRapidHistory=()=>{let e=(0,u.k6)();function getDashboardPageTypeFromUrlPath(){var t;return(t=e.location.pathname).startsWith("/".concat(c.DashboardPageType.Studio))?c.DashboardPageType.Studio:t.startsWith("/".concat(c.DashboardPageType.Pro))?c.DashboardPageType.Pro:t.startsWith("/".concat(c.DashboardPageType.Rapid))?c.DashboardPageType.Rapid:c.DashboardPageType.Classic}return{redirect:function(t,a){let r;let{project:i,spoof:o}=d.parse(e.location.search),n=d.stringify({project:(null==a?void 0:a.clearProject)?void 0:(null==a?void 0:a.projectId)||i,spoof:o,...null==a?void 0:a.additionalArgs});t.startsWith("/".concat(c.DashboardPageType.Rapid,"/"))?(r=c.DashboardPageType.Rapid,t=t.replace("/".concat(r),"")):t.startsWith("/".concat(c.DashboardPageType.Studio,"/"))?(r=c.DashboardPageType.Studio,t=t.replace("/".concat(r),"")):t.startsWith("/".concat(c.DashboardPageType.Pro,"/"))?(r=c.DashboardPageType.Pro,t=t.replace("/".concat(r),"")):r=getUrlBase(e.location.pathname),e.push({pathname:"/".concat(r).concat(t),search:n})},isRapidUrl:function(){return getDashboardPageTypeFromUrlPath()===c.DashboardPageType.Rapid},isStudioUrl:function(){return window.location.pathname.includes("studio")}
1,canViewOldModelEval:function(){return window.location.pathname.includes("modeleval")&&window.location.search.includes("spoof")&&window.location.search.includes("old")},getDashboardPageTypeFromUrlPath,convertPathBetweenRapidStudio:function(t){e.replace({pathname:t?e.location.pathname.replace("/studio","/rapid"):e.location.pathname.replace("/rapid","/studio"),search:e.location.search})},urlWithQuerystring:function(t,a,r){let{spoof:i,project:o}=d.parse(e.location.search);if(void 0!==a){let r=a?d.stringify({project:a,spoof:i}):d.stringify({spoof:i});return"/".concat(getUrlBase(e.location.pathname),"/").concat(t,"?").concat(r)}if(r){let a=d.stringify({project:o,spoof:i});return"/".concat(getUrlBase(e.location.pathname),"/").concat(t,"?").concat(a)}return"/".concat(getUrlBase(e.location.pathname),"/").concat(t).concat(e.location.search)}}}},535246:function(e,t,a){"use strict";a.d(t,{$O:function(){return p},kZ:function(){return OnboardingProvider},I6:function(){return d},XK:function(){return u},FY:function(){return l},kc:function(){return useOnboarding}});var r,i,o,n,s,c,l,d,u,p,m=a(667488),h=a(885115),f=a(243553),g=a(90272),b=a(712864),y=a(968053),_=a(53545);(r=c||(c={})).EU_DATA="EU_DATA",r.US_DATA="US_DATA",r.SENSITIVE_CONTENT_OBSCENE="SENSITIVE_CONTENT_OBSCENE",r.SENSITIVE_CONTENT_VIOLENT="SENSITIVE_CONTENT_VIOLENT",r.SENSITIVE_CONTENT_DEFAMATORY="SENSITIVE_CONTENT_DEFAMATORY",r.SENSITIVE_CONTENT_WEAPONS="SENSITIVE_CONTENT_WEAPONS",r.SENSITIVE_CONTENT_TERROR="SENSITIVE_CONTENT_TERROR",r.SENSITIVE_CONTENT_PUBLICITY_RIGHTS="SENSITIVE_CONTENT_PUBLICITY_RIGHTS",r.HIPAA_VENDOR="HIPAA_VENDOR",r.HIPAA_ATTACHMENTS="HIPAA_ATTACHMENTS",r.HIPAA_RESPONSES="HIPAA_RESPONSES",r.PII="PII",r.PERSONAL_TRAITS="PERSONAL_TRAITS",r.FINANCIAL_INST="FINANCIAL_INST",r.OWNERSHIP="OWNERSHIP";var k=a(747910),v=a.n(k),x=a(460538),T=a(975343),w=a(72837);(i=l||(l={})).Creation="creation",i.DataUpload="dataupload",i.DataView="dataview",i.ProjectConfig="projectconfig",i.Taxonomy="taxonomy",i.Instruction="instruction",i.Task="task",i.Workforce="workforce",i.DataSelect="dataselect",i.ProjectSettings="projectsettings",i.Payment="payment",i.Complete="complete",(o=d||(d={})).Creation="creation",o.Data="data",o.ProjectConfig="projectconfig",o.Taxonomy="taxonomy",o.Instruction="instruction",o.Task="task",o.Batch="batch",o.Summary="summary",(n=u||(u={})).Incomplete="incomplete",n.Complete="complete",n.Locked="locked",(s=p||(p={})).View="view",s.Taxonomy="editTaxonomy",s.Changes="propagateChanges",s.Instructions="editInstructions";let S=h.createContext({isOnboardingComplete:void 0,setIsOnboardingComplete:()=>{},loading:void 0,setLoading:()=>{},project:void 0,setProject:()=>{},currentView:void 0,setCurrentView:()=>{},currentStep:void 0,setCurrentStep:()=>{},hasAssets:void 0,setHasAssets:()=>{},onboardingSteps:[],setOnboardingSteps:()=>{},firstBatchSelectedMap:void 0,setFirstBatchSelectedMap:()=>{},selectionQueryFilter:void 0,setSelectionQueryFilter:()=>{},firstBatchSelectionMethod:void 0,setFirstBatchSelectionMethod:()=>{},firstBatchNumTasks:void 0,setFirstBatchNumTasks:()=>{},numAssets:void 0,setNumAssets:()=>{},taskCount:void 0,setTaskCount:()=>{},costEstimate:void 0,setCostEstimate:()=>{},taskType:void 0,setTaskType:()=>{},projectUseCase:void 0,setProjectUseCase:()=>{},finalizeOnboarding:()=>{},nextEnabled:void 0,setNextEnabled:()=>{},batchSelected:void 0,setBatchSelected:()=>{},batchName:"first_batch",setBatchName:()=>{},isSelfLabel:!1,projectOptions:void 0,setProjectOptions:()=>{},useOldOnboarding:!1,setUseOldOnboarding:()=>{},sensitiveDataSelections:v().zipObject(Object.values(c),Array(Object.keys(c).length).fill(!1)),setSensitiveDataSelections:()=>{},sensitiveDataQuestionnaireCompleted:!1,setSensitiveDataQuestionnaireCompleted:()=>{},useCaseType:void 0,setUseCaseType:()=>{},templatePipeline:void 0,setTemplatePipeline:()=>{},footerShown:!1,setFooterShown:()=>{},stepNext:void 0,setStepNext:()=>{},disabledNextText:void 0,setDisabledNextText:()=>{},isAttachmentHipaaCovered:!1,hipaaCoverageRefresh:()=>{},populatePriceEstimator:!1,setPopulatePriceEstimator:()=>{},firstTimeTemplate:!1,setFirstTimeTemplate:()=>{},useOnboardingV3:!1,canUsePlugAndPlay:!1,usePlugAndPlayOnboarding:!1,plugAndPlayV2:!1,collapseSidebar:!1,setCollapseSidebar:()=>{},handleExitTour:()=>{},handleEnterTour:()=>{},resetTour:()=>{},popperIsOpen:!1,tourRef:null,setTourRef:()=>{},currentTourStep:null,handleNextTourStep:()=>{},syncTourStep:()=>{},closeTourStep:()=>{},closeUpToCurrentView:()=>{},closedTourSteps:[],onboardingStudioProject:!1,refreshConfigs:()=>{},showStudioLaunchPage:!1,setShowStudioLaunchPage:()=>{},revertNewAuditUI:!1,setRevertNewAuditUI:()=>{},launchError:""}),OnboardingProvider=e=>{let{children:t,...a}=e,[r,i]=(0,h.useState)(),[o,n]=(0,h.useState)(),[s,l]=(0,h.useState)(a.project),[d,u]=(0,h.useState)(),[p,k]=(0,h.useState)(),[C,P]=(0,h.useState)(),[j,N]=(0,h.useState)(a.taskType),[A,I]=(0,h.useState)(),[E,R]=(0,h.useState)(void 0),[O,D]=(0,h.useState)(),[z,M]=(0,h.useState)([{name:"creation",status:"complete"},{name:"data",status:"incomplete"},{name:"task",status:"locked"},{name:"batch",status:"locked"},{name:"summary",status:"locked"}]),[L,q]=(0,h.useState)(),[Q,F]=(0,h.useState)(),[B,Z]=(0,h.useState)(),[U,W]=(0,h.useState)(),[V,H]=(0,h.useState)(),[Y,G]=(0,h.useState)(),[J,K]=(0,h.useState)(),[X,$]=(0,h.useState)(),[ee,et]=(0,h.useState)(),ea=(0,h.useMemo)(()=>X===f.IJ6.SelfLabel,[X]),[er,ei]=(0,h.useState)(),[eo,en]=(0,h.useState)(!1),[es,ec]=(0,h.useState)(v().zipObject(Object.values(c),Array(Object.keys(c).length).fill(!1))),[el,ed]=(0,h.useState)(!1),[eu,ep]=(0,h.useState)(),[em,eh]=(0,h.useState)(!1),[ef,eg]=(0,h.useState)(),[eb,ey]=(0,h.useState)(),{isProjectAttachmentCoveredByHipaa:e_,refresh:ek}=(0,x.mh)(null==s?void 0:s.id),[ev,ex]=(0,h.useState)(!1),[eT,ew]=(0,h.useState)(!1),eS=(0,T.ZP)("rapid-onboarding-v3",{},!1)||!1,{isStudioUrl:eC}=(0,_.ir)(),eP=(0,T.ZP)("rapid-plug-and-play",{},!1)&&!eC()||!1,ej=(0,T.ZP)("rapid-plug-and-play-v2",{},!1)&&!eC()||!1,eN=(0,h.useMemo)(()=>(null==s?void 0:s.rapidPlugAndPlayType)&&[b.E4.Summarization,b.E4.Generation].includes(s.rapidPlugAndPlayType),[s]),[eA,eI]=(0,h.useState)(!1),[eE,eR]=(0,h.useState)(!1),[eO,eD]=(0,h.useState)(!1),[ez,eM]=(0,h.useState)(""),[eL,eq]=(0,h.useState)(0),[eQ,eF]=(0,h.useState)(!1),{tourRef:eB,setTourRef:eZ,currentTourStep:eU,handleNextTourStep:eW,syncTourStep:eV,closeTourStep:eH,closeUpToCurrentView:eY,closedTourSteps:eG,handleExitTour:eJ,handleEnterTour:eK,resetTour:eX}=(0,x.MC)(eT,!s||(null==s?void 0:s.projectType)===g.ProjectType.SelfServe),e$=!v().isNil(eB)&&eU&&eU.name&&!eG.includes(eU.name),e0=(0,h.useCallback)(()=>{let finalize=async()=>{let e;
1eM(""),eE&&e_&&await y.Z.selfserve.updateCustomerAttachmentHipaaCoverage({isAttachmentCoveredByHipaa:e_});let t={enableOcr:j===g.TaskType.DocumentTranscription,isAudioTranscription:!1,containsAdultContent:!1},a=3;for(;a>0;)try{e=await y.Z.selfserve.updateInitialSetup({project:null==s?void 0:s.id,taskType:j,...er,...eE?t:{},useLabelerManagementPlatform:!!eE,skipOverrideValidators:!0});break}catch(e){a--}if(e&&e.success){l(e.project);let t={project:e.project.id,filterByHasTask:!1,selectionQueryFilter:Q};(null==s?void 0:s.rapidPlugAndPlayGeneratePrompts)?t.size=Y:B?(t.choice=B,t.size=U):Object.keys(L).length>0&&(t.uploadedAssetIds=Object.keys(L),t.size=Object.keys(L).length),X===f.IJ6.RegularBatch||X===f.IJ6.SelfLabel?(t.batchName=ee,t.launch=(null==s?void 0:s.rapidPlugAndPlayType)?X!==f.IJ6.SelfLabel:eE,await y.Z.selfserve.createRegularBatch(t,{idempotencyKey:b.o5.regularBatch})):await y.Z.selfserve.createInstructionBatch(t,{idempotencyKey:b.o5.calibrationBatch})}else eM("Project configurations did not get initialized properly. Batch will not be launched. Please try creating another project or contact [email protected] for support.");eE&&eD(!0),i(!0),W(void 0),q(void 0),u("creation"),k("creation"),H(void 0),P(void 0),F(void 0),G(void 0),K(void 0),et(void 0),ew(!1),eJ()};finalize()},[X,ee,L,s,er,Q,B,U,j,eE,e_]);(0,h.useEffect)(()=>{if(H(void 0),P(void 0),null==s?void 0:s.id){let getProjectState=async()=>{let e;i(void 0),n(!0);let t=(0,w.bd)(s);eR(t),ec(v().zipObject(Object.values(c),Array(Object.keys(c).length).fill(!1)));let{regularBatchExists:a,calibrationBatchExists:r,selfLabelBatchExists:o,uploadedAssetsExist:l,taskExists:d,useCase:p,instruction:m,isLlmControlCenterProject:h}=await y.Z.selfserve.fetchState({project:s.id}),f=await y.Z.selfserve.fetchProjectTaxonomy({project:s.id});try{e=eS?await y.Z.selfserve.fetchProjectInstructionsV2({projectId:s.id,project:s.id}):await y.Z.selfserve.fetchProjectInstructions({project:s.id})}catch(t){e=void 0}let g=!!(a||r||o||d||h);t&&(g=!!(g||(null==m?void 0:m.instructionObjectId))),i(g),(0,w.sW)(s)&&eI(!g),I(p),P(l);let b=t?[]:[{name:"summary",status:"locked"}];eN?s.rapidPlugAndPlayGeneratePrompts?(M([{name:"creation",status:"complete"},{name:"taxonomy",status:"incomplete"},{name:"instruction",status:"locked"},{name:"batch",status:"locked"},...b]),u("taxonomy"),k("taxonomy")):(M([{name:"creation",status:"complete"},{name:"data",status:"incomplete"},{name:"taxonomy",status:"locked"},{name:"instruction",status:"locked"},{name:"batch",status:"locked"},...b]),u("dataview"),k("data")):(l?eS?(M([{name:"creation",status:"complete"},{name:"data",status:"complete"},{name:"projectconfig",status:"incomplete"},{name:"taxonomy",status:"locked"},{name:"instruction",status:"locked"},{name:"batch",status:"locked"},...b]),u("projectconfig"),k("projectconfig")):(M([{name:"creation",status:"complete"},{name:"data",status:"complete"},{name:"task",status:"incomplete"},{name:"batch",status:"locked"},...b]),u("task"),k("task")):eS?M([{name:"creation",status:"complete"},{name:"data",status:"incomplete"},{name:"projectconfig",status:"locked"},{name:"taxonomy",status:"locked"},{name:"instruction",status:"locked"},{name:"batch",status:"locked"},...b]):M([{name:"creation",status:"complete"},{name:"data",status:"incomplete"},{name:"task",status:"locked"},{name:"batch",status:"locked"},...b]),eS&&((p||f.taxonomy)&&(M([{name:"creation",status:"complete"},{name:"data",status:"complete"},{name:"projectconfig",status:"complete"},{name:"taxonomy",status:"incomplete"},{name:"instruction",status:"locked"},{name:"batch",status:"locked"},...b]),eT?(u("dataview"),k("data")):(u("taxonomy"),k("taxonomy"))),(null==e?void 0:e.instruction)&&(M([{name:"creation",status:"complete"},{name:"data",status:"complete"},{name:"projectconfig",status:"complete"},{name:"taxonomy",status:"complete"},{name:"instruction",status:"incomplete"},{name:"batch",status:"locked"},...b]),u("instruction"),k("instruction"))))};n(!1),getProjectState()}else void 0!==(null==s?void 0:s.id)&&(i(!1),n(!1))},[null==s?void 0:s.id,eS]);let e1=(0,h.useCallback)(()=>{eq(e=>e+1)},[eq]);return(0,h.useEffect)(()=>
1{if(s){let fetchProjectOptions=async()=>{n(!0);let{pipelineName:e,numReviews:t,consensus:a,requiredLanguage:r,languageExpertise:i,customOcrUrl:o,ocrProvider:c,commonErrors:l,autoRedos:d}=await y.Z.selfserve.fetchConfigValues({project:s.id});ei({isAudioTranscription:!!s.isAudioTranscription,containsAdultContent:!!s.containsAdultContent,pipelineName:e||(0,_.av)(s.type),taskerLanguageRequirement:{language:r||g.Languages.English,level:i||g.FluencyLevel.Basic},numReviews:t,numConsensus:a,...eE?{ocrConfig:{customUrl:o,serviceProvider:c},commonErrors:l,autoRedos:d}:{}}),n(!1)};fetchProjectOptions()}},[s,eL]),(0,h.useEffect)(()=>{en(!!(null==s?void 0:s.useOldOnboarding))},[null==s?void 0:s.useOldOnboarding]),(0,h.useEffect)(()=>{if(s){let fetchHipaaCoverage=async()=>{let{isAttachmentCoveredByHipaa:e}=await y.Z.selfserve.fetchProjectAttachmentHipaaCoverage({project:s.id});ec(t=>({...t,[c.HIPAA_ATTACHMENTS]:e}))};fetchHipaaCoverage()}},[s]),(0,m.jsx)(S.Provider,{value:{isOnboardingComplete:r,setIsOnboardingComplete:i,loading:o,setLoading:n,project:s,setProject:l,currentView:d,setCurrentView:u,currentStep:p,hasAssets:C,setHasAssets:P,setCurrentStep:k,onboardingSteps:z,setOnboardingSteps:M,firstBatchSelectedMap:L,setFirstBatchSelectedMap:q,selectionQueryFilter:Q,setSelectionQueryFilter:F,firstBatchSelectionMethod:B,setFirstBatchSelectionMethod:Z,firstBatchNumTasks:U,setFirstBatchNumTasks:W,numAssets:V,setNumAssets:H,taskCount:Y,setTaskCount:G,costEstimate:J,setCostEstimate:K,taskType:j,setTaskType:N,projectUseCase:A,setProjectUseCase:I,finalizeOnboarding:e0,nextEnabled:O,setNextEnabled:D,batchSelected:X,setBatchSelected:$,batchName:ee,setBatchName:et,isSelfLabel:ea,projectOptions:er,setProjectOptions:ei,useOldOnboarding:eo,setUseOldOnboarding:en,sensitiveDataSelections:es,setSensitiveDataSelections:ec,sensitiveDataQuestionnaireCompleted:el,setSensitiveDataQuestionnaireCompleted:ed,useCaseType:eu,setUseCaseType:ep,footerShown:em,setFooterShown:eh,stepNext:ef,setStepNext:eg,disabledNextText:eb,setDisabledNextText:ey,isAttachmentHipaaCovered:e_,hipaaCoverageRefresh:ek,populatePriceEstimator:ev,setPopulatePriceEstimator:ex,firstTimeTemplate:eT,setFirstTimeTemplate:ew,useOnboardingV3:eS,canUsePlugAndPlay:eP,usePlugAndPlayOnboarding:eN,plugAndPlayV2:ej,collapseSidebar:eA,setCollapseSidebar:eI,templatePipeline:E,setTemplatePipeline:R,handleExitTour:eJ,handleEnterTour:eK,resetTour:eX,popperIsOpen:e$,tourRef:eB,setTourRef:eZ,currentTourStep:eU,handleNextTourStep:eW,syncTourStep:eV,closedTourSteps:eG,closeTourStep:eH,closeUpToCurrentView:eY,onboardingStudioProject:eE,refreshConfigs:e1,showStudioLaunchPage:eO,setShowStudioLaunchPage:eD,revertNewAuditUI:eQ,setRevertNewAuditUI:eF,launchError:ez},children:t})},useOnboarding=()=>(0,h.useContext)(S)},480333:function(e,t,a){"use strict";var r=a(885115),i=a(665069),o=a(275826);let n={encode:o.Y9,decode:o.aG},s=(0,i.Wc)(i.V3,[]),c=(0,i.Wc)(i.Zp,"created");t.Z=()=>{let[e,t]=(0,i.Kx)({type:s,batches:s,tags:s,status:s,dateFilter:c,auditStatus:s,dateTo:(0,i.Wc)(n,void 0),dateFrom:(0,i.Wc)(n,void 0),project:(0,i.Wc)(i.Zp,void 0),markedForHumanReview:(0,i.Wc)(i.dJ,void 0),viewingScenes:(0,i.Wc)(i.dJ,void 0),showUniqueId:(0,i.Wc)(i.dJ,!1),skipped:(0,i.Wc)(i.dJ,void 0),pinned:(0,i.Wc)(i.dJ,void 0),dataQuery:(0,i.Wc)(i.Zp,void 0),search:(0,i.Wc)(i.Zp,void 0),version:(0,i.Wc)(i.Zp,void 0),auditorId:(0,i.Wc)(i.Zp,void 0),chatCompetency:(0,i.Wc)(i.Zp,void 0)}),a=(0,r.useCallback)(()=>{t({type:[],status:[],batches:[],tags:[],auditStatus:[],dateTo:void 0,project:void 0,dateFrom:void 0,dateFilter:void 0,markedForHumanReview:void 0,viewingScenes:void 0,showUniqueId:void 0,skipped:void 0,version:void 0,pinned:void 0,dataQuery:void 0,auditorId:void 0})},[t]),o=(0,r.useCallback)(e=>t({dateFilter:e}),[t]),l=(0,r.useCallback)(e=>t({dateFrom:e}),[t]),d=(0,r.useCallback)(e=>t({project:e}),[t]),u=(0,r.useCallback)(e=>t({dateTo:e}),[t]),p=(0,r.useCallback)(e=>t({type:e}),[t]),m=(0,r.useCallback)(e=>t({status:e}),[t]),h=(0,r.useCallback)(e=>t({auditStatus:e}),[t]),f=(0,r.useCallback)(e=>t({batches:e}),[t]),g=(0,r.useCallback)(e=>t({tags:e}),[t]),b=(0,r.useCallback)(e=>t({showUniqueId:e}),[t]),y=(0,r.useCallback)(e=>t({markedForHumanReview:e}),[t]),_=(0,r.useCallback)(e=>t({viewingScenes:e}),[t]),[k,v]=(0,r.useState)(!1),x=(0,r.useCallback)(e=>t({skipped:e}),[t]),T=(0,r.useCallback)(e=>t({search:e}),[t]),w=(0,r.useCallback)(e=>t({version:e}),[t]),S=(0,r.useCallback)(e=>t({pinned:e}),[t]),C=(0,r.useCallback)(e=>t({dataQuery:e}),[t]),P=(0,r.useCallback)(e=>t({auditorId:e}),[t]),j=(0,r.useCallback)(e=>t({chatCompetency:e}),[t]);return{value:e,clear:a,setProject:d,setDateFilter:o,setDateFrom:l,setDateTo:u,setTaskTypes:p,setStatus:m,setAuditStatus:h,setBatches:f,
1setTags:g,setMarkedForHumanReview:y,setShowUniqueId:b,showSkipped:k,setShowSkipped:v,setViewingScenes:_,setSkipped:x,setSearch:T,setVersion:w,setPinned:S,setDataQuery:C,setAuditorId:P,setChatCompetency:j}}},637861:function(e,t,a){"use strict";a(747910)},275826:function(e,t,a){"use strict";a.d(t,{Y9:function(){return c},aG:function(){return l},h$:function(){return changeTimezone},mX:function(){return fromDateMonthYearToDate},nP:function(){return toDateMonthYear}});var r=a(747910),i=a.n(r),o=a(835532),n=a.n(o),s=a(90272);let changeTimezone=(e,t)=>{let a=e.clone().utc();return t===s.Timezone.Local?a.local():t===s.Timezone.Pacific?a.tz("America/Los_Angeles"):a},fromDateMonthYearToDate=(e,t)=>{let a=[e.year(),e.month(),e.date()];return t===s.Timezone.Local?n()(a):t===s.Timezone.Pacific?n().tz(a,"America/Los_Angeles"):n().tz(a,"UTC")};function toDateMonthYear(e){return e.clone().tz("UTC",!0)}let c=i().memoize(e=>{if(e)return"".concat(n()(e).unix())}),l=i().memoize(e=>{if(e&&!Array.isArray(e))return n().unix(parseInt(e,10)).utc()})},783579:function(e,t,a){"use strict";var r=a(885115);t.Z=function(e){let t=(0,r.useRef)(e);return t.current=e,t}},772102:function(e,t,a){"use strict";var r=a(663752);let i=[],o=[],n=[],s=[],c=null,flushMetricsToServer=async()=>{if(i.length||o.length||n.length||s.length)try{let e={incrMetricsBin:[...i],gaugeMetricsBin:[...o],histogramMetricsBin:[...n],distributionMetricsBin:[...s]};i.length=0,o.length=0,n.length=0,s.length=0,await (0,r.ZP)(null,"internal/frontendMetrics/flushMetrics",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})}catch(e){}};let ScaleStatsCollector=class ScaleStatsCollector{constructor(e){this.namespace=e,this.incr=(e,t,a)=>{i.push({key:formatKey(this.namespace,e),value:t,tags:a})},this.gauge=(e,t,a)=>{o.push({key:formatKey(this.namespace,e),value:t,tags:a})},this.histogram=(e,t,a)=>{n.push({key:formatKey(this.namespace,e),value:t,tags:a})},this.distribution=(e,t,a)=>{s.push({key:formatKey(this.namespace,e),value:t,tags:a})}}};let formatKey=(e,t)=>e&&e.length>0?e+"."+t:t;t.Z=e=>{if(c||(c=setInterval(()=>flushMetricsToServer(),1e4)),Array.isArray(e)){let t=e.join(".");return new ScaleStatsCollector(t)}return new ScaleStatsCollector(e)}},123822:function(e,t,a){"use strict";a.r(t);var r=a(474932);t.default=r.Z},162533:function(e,t,a){"use strict";a.d(t,{Z:function(){return AdminDashboardPage}});var r=a(885115);let AdminDashboardPage=class AdminDashboardPage extends r.Component{static getPageConfig(){return{user:{kinds:["worker","expert"],required:!0}}}}},474932:function(e,t,a){"use strict";a.d(t,{Z:function(){return k},B:function(){return _}});var r=a(667488),i=a(162533),o=a(488345),n=a(638283),s=a(133434),c=a(806049),l=a(221706),d=a(728219),u=a(450610),p=a(78631),m=a(680982),h=a(780125),f=a(90272);let getInitialProps=async e=>await (0,s.EA)(e,{toolPerms:g,usageTimerPageName:"projectSquads"}),g=[f.RemoAdminTool.ProjectSquads];var b=a(481269),y=a(186383);let ProjectSquadsPage=class ProjectSquadsPage extends i.Z{render(){let{asPath:e}=this.props.router,t=e.indexOf("/reviewer"),a=-1!==t?e.substring(0,t):e;return(0,r.jsx)(m.k,{p:"4",children:(0,r.jsx)(l.g,{title:"Squads",omitTitle:!0,hideNavbar:!0,fullSize:!0,...this.props,children:(0,r.jsx)(p.aH,{client:b.Ehq,children:(0,r.jsx)(d.VK,{basename:a,children:(0,r.jsxs)(u.rs,{children:[(0,r.jsx)(u.AW,{path:"/reviewer",children:(0,r.jsx)(o.Z,{hideBackButton:!0})}),(0,r.jsx)(u.AW,{children:(0,r.jsx)(n.ZP,{})})]})})})})})}};ProjectSquadsPage.getInitialProps=getInitialProps;let _={type:c.r8.Project,description:"Manage Project Squads",onToolSelect:(e,t)=>(0,s.uk)("/remoadmin/tools/project_squads",{project:null==e?void 0:e.selectedProject},t)};var k=(0,h.withRouter)((0,y.ZP)(ProjectSquadsPage))},72837:function(e,t,a){"use strict";a.d(t,{sT:function(){return isProProjectType},Tv:function(){return isRapidOrStudioProject},E1:function(){return isRapidOrStudioProjectType},sW:function(){return isRapidProject},bd:function(){return isStudioProject}});var r=a(90272);function isRapidOrStudioProject(e){return isRapidProject(e)||isStudioProject(e)}function isRapidProject(e){return!!e&&"string"!=typeof e&&e.projectType===r.ProjectType.SelfServe}function isStudioProject(e){return!!e&&"string"!=typeof e&&e.projectType===r.ProjectType.Studio}function isRapidOrStudioProjectType(e){return!!e&&e===r.ProjectType.SelfServe||!!e&&e===r.ProjectType.Studio}function isProProjectType(e){return!e||""===e||e===r.ProjectType.Pro}a(968053),a(387477),a(53545),a(637861),a(747910),a(885115)},764457:function(e,t,a){"use strict";var r=a(885115),i=a(243553),o=a(182229);t.Z=()=>{let[e,t]=(0,r.useState)([]),[a,n]=(0,r.useState)(!1),s=(0,r.useCallback)(async e=>{if(!e.length)return;n(!0);let a=new AbortController,r=setTimeout(()=>a.abort(),5e3),s=await (0,o.V3)({feature:"studio-privacy-mode-assume-image"}),c=await Promise.all(e.map(e=>{let t=fetch(e.content,{method:"HEAD",signal:a.signal}).catch(e=>{});return t}));clearTimeout(r);let getHeaders=e=>{let t={},a=e.keys(),r=a.next();for(;r.value;)t[r.value]=e.get(r.value),r=a.next();return t},l=e.map((e,t)=>{let a=i.sfQ.Unprocessed;if(s)return a=i.sfQ.Image,{...e,type:a};let r=c[t];if(!r)return{...e};let o=getHeaders(r.headers)["content-type"];return o.match("image/*")?a=i.sfQ.Image:o.match("text/*")?a=i.sfQ.Text:o.match("video/*")?a=i.sfQ.Video:"application/pdf"===o?a=i.sfQ.PDF:o.match("audio/*")&&(a=i.sfQ.Audio),{...e,type:a}});return t(l),n(!1),l},[]);return{attachments:e,isLoading:a,fetchUnprocessedAttachments:s}}},841942:function(e,t,a){"use strict";function getFriendlyAnnotationId(e){return void 0===e?"unknown uuid":e.length>20?e.slice(-4):e}a.d(t,{Z:function(){return getFriendlyAnnotationId}})},451010:function(e,t,a){"use strict";a.d(t,{Cz:function(){return compressJson},Wo:function(){return compressJsonStream}});var r=a(32254),i=a(855194);function compressJson(e){let t=r.deflate(JSON.stringify(e)).buffer;return i.encode(t)}let o=!1;async function compressJsonStream(e,t){if("undefined"==typeof CompressionStream)return o||(o=!0,console.warn("compressJsonStream: CompressionStream is unavailable, falling back to compressJson. Large payloads will block the main thread and allocate several times their own size.")),compressJson(e);let a=new Blob([JSON.stringify(e)]).stream().pipeThrough(new CompressionStream("deflate"),t?{signal:t}:{}
1),r=await new Response(a).arrayBuffer();return function(e){let t="";for(let a=0;a<e.length;a+=32766)t+=btoa(String.fromCharCode.apply(null,e.subarray(a,a+32766)));return t}(new Uint8Array(r))}},993069:function(e,t,a){"use strict";a.d(t,{Xk:function(){return depthFirstLabels},j6:function(){return mergeLabelAttributes}});var r=a(747910);function*depthFirstLabels(e){for(let t of e)yield t,t.children&&(yield*depthFirstLabels(t.children))}function mergeLabelAttributes(e){let t=function(e){let t=new Map;for(let i of depthFirstLabels(e)){var a;let e=null!==(a=t.get(i.name))&&void 0!==a?a:[];r.each(i.children,a=>{t.set(a.name,[...e,i])})}return t}(e),a=new Map;for(let i of depthFirstLabels(e)){let e=r.map(t.get(i.name),e=>e.attributes),o=r.compact([...e,i.attributes]);a.set(i.name,r.assign({},...o))}return a}},291127:function(e,t,a){"use strict";var r,i,o,n;a.d(t,{$b:function(){return c},$j:function(){return l},B8:function(){return d},Cs:function(){return u},E2:function(){return qmProjectToProjectJson},Hj:function(){return s},QY:function(){return p},Xn:function(){return r}});let s=5e3,c=100,l=14,qmProjectToProjectJson=e=>{let t={_id:e.id,name:e.name,taskType:e.taskType,taskCustomer:e.taskCustomer.id,paramHistory:[],workerSources:e.workerSources};return t},d=1e3;(o=r||(r={})).Course="Course",o.Instructor="Instructor",o.Practice="Practice",(n=i||(i={})).SceneConfigs="sceneConfigs",n.InlineGrader="inlineGrader";let u=1e5,p="project-specializations"},453242:function(e,t,a){"use strict";var r,i,o,n,s,c,l,d;a.d(t,{Vn:function(){return o},WI:function(){return n},fy:function(){return r}}),(s=r||(r={})).Accept="accept",s.Dismiss="dismiss",(c=i||(i={})).PipelineV3HumanNode="pipelineV3HumanNode",c.TaskAttempt="taskAttempt",c.Task="task",(l=o||(o={})).Inline="inline",l.Step="step",l.TextCollection="textCollection",l.QualityMeasurement="qualityMeasurement",l.RRS="rrs",l.RewardModel="rewardModel",l.AutoReviewer="autoReviewer",l.SpeedAudit="speedAudit",l.TextBasedSpeedAudit="textBasedSpeedAudit",l.ChatBulkAudit="chatBulkAudit",l.AutoQC="autoQC",(d=n||(n={})).Text="text",d.Rating="rating",d.Category="category",d.Boolean="boolean",o.TextCollection,o.QualityMeasurement,o.RRS},744399:function(e,t,a){"use strict";a.d(t,{Ml:function(){return g},QZ:function(){return n},UD:function(){return C},UI:function(){return S},Wg:function(){return b},X7:function(){return A},YL:function(){return c},as:function(){return y},at:function(){return T},lo:function(){return E},pj:function(){return j},rL:function(){return x},sK:function(){return _},sj:function(){return I},xt:function(){return p},y5:function(){return P},zK:function(){return k},zV:function(){return w}});var r,i,o,n,s,c,l=a(324941),d=a(690462),u=a(90272);(r=n||(n={})).OverallTask="Overall Task",r.InstructionFollowing="Instruction Following",r.OverallTaskFeedback="Overall Task Feedback",(i=s||(s={})).Prompt="Prompt",i.ResponseSelection="Response Selection",i.Justification="Justification",i.FinalResponse="Final Response",(o=c||(c={})).Turn="Quality Measurement (Turn)",o.Task="Quality Measurement (Overall Task)";let p="quality_response_selection",m="Turn Quality: ",h="".concat(m).concat(s.FinalResponse),f="".concat(m).concat(s.Prompt);"".concat(m).concat(s.Justification);let g=[{type:l.s2.Number,field_id:"quality_prompt",title:f,rubric:"Rate the quality of the prompt in this turn",min:1,max:5,step:1,prefix:"Poor",mid_label:"Adequate",suffix:"Excellent",use_slider:!0,description:"Rate the quality of the prompt in this turn",required:!0,save_to_task_feedback:!0},{type:l.s2.Category,field_id:p,title:"".concat(m).concat(s.ResponseSelection),rubric:"Is the best quality response selected in this turn?",required:!0,description:"Is the best quality response selected in this turn?",choices:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],max_choices:1,min_choices:1,save_to_task_feedback:!0},{type:l.s2.Number,field_id:"quality_justification",title:"".concat(m).concat(s.Justification),rubric:"Rate the quality of the justification in this turn",min:1,max:5,step:1,prefix:"Poor",mid_label:"Adequate",suffix:"Excellent",use_slider:!0,description:"Rate the quality of the justification in this turn",required:!0,save_to_task_feedback:!0},{type:l.s2.Number,field_id:"quality_response",title:h,rubric:"Rate the quality of the final response
1(written or rewritten) in this turn",min:1,max:5,step:1,prefix:"Poor",mid_label:"Adequate",suffix:"Excellent",use_slider:!0,description:"Rate the quality of the final response in this turn",required:!0,save_to_task_feedback:!0}],b={[c.Turn]:{id:"quality_measurement_turn",type:d.x8.QualityMeasurement,title:"Quality of this Turn",subtitle:"Evaluate the quality of this turn, specifically focusing on quality of work on this turn before you make any changes. We'll use these results to add additional review on the task as needed and surface feedback to earlier contributors when relevant!",params:{visibility_restricted:[0,1,4,10],fields:g,editable_during_consensus:!0,hide_from_customer_view:!0}}},y="quality_task_overall",_="quality_instruction_following",k="feedback_overall",v="Quality: ",x="".concat(v).concat(n.OverallTask),T=["quality_overall_qms"],w=["Overall Quality"],S=[{type:l.s2.Number,field_id:y,title:x,rubric:"Rate the quality of work done on this task holistically",min:1,max:5,step:1,prefix:"Poor",mid_label:"Adequate",suffix:"Excellent",use_slider:!0,description:"Rate the quality of work done on this task holistically",required:!0,save_to_task_feedback:!0},{type:l.s2.Category,field_id:_,title:"".concat(v).concat(n.InstructionFollowing),rubric:"Does the task follow all instructions provided in tasking instructions or instructional steps?",required:!0,description:"Does the task follow all instructions provided in tasking instructions or instructional steps?",choices:[{label:"Yes",value:"yes"},{label:"No",value:"no"}],max_choices:1,min_choices:1,save_to_task_feedback:!0},{type:l.s2.Text,field_id:k,title:"".concat(n.OverallTaskFeedback),required:!0,description:"Write a few sentences of feedback to the contributor who last worked on this task. Try and be as actionable and specific as possible, this feedback will be directly surfaced to the relevant contributors!",save_to_task_feedback:!0}],C="quality_task_overall_cb_quality",P="quality_task_overall_reason",j="quality_task_overall_reason_other",N=[{[y]:["1","2"]}],A=[y,k,C,P,j],I=[{type:l.s2.Category,field_id:C,title:"Contributor Quality",rubric:"Based on the score you've given the task, how would you describe this contributor?",description:"Based on the score you've given the task, how would you describe this contributor?",choices:[{label:"High Potential Contributor - This person can be trained to submit good tasks",value:"high_potential"},{label:"Limited Potential Contributor - I do not think this person can be trained to submit good tasks",value:"limited_potential"},{label:"Egregious Contributor - This person is not trying in good faith to submit good tasks",value:"egregious"}],max_choices:1,min_choices:1,required:!0,conditions:N},{type:l.s2.Category,field_id:P,title:"Failure Reason",rubric:"In your opinion, what best explains the low score on this task?",description:"In your opinion, what best explains the low score on this task?",choices:[{label:"Missing Domain Expertise: The submission shows a lack of the required domain expertise or skills",value:"missing_domain_expertise"},{label:"Minor Tasking Error(s): Contributor does not understand certain elements of the project guidelines",value:"minor_tasking_errors"},{label:"Major Tasking Error(s): Contributor does not understand the majority of the project guidelines",value:"major_tasking_errors"},{label:"Low Effort: The submission appears rushed, incomplete, or careless",value:"low_effort"},{label:"Suspected AI or Copied Content: The submission appears to be AI generated or copied from another source",value:"suspected_ai_or_copied"},{label:"Other (please explain)",value:"other"}],max_choices:1,min_choices:1,required:!0,conditions:N},{type:l.s2.Text,field_id:j,title:"Other Failure Reason Explanation",description:"Please explain why you selected Other for the Failure Reason.",required:!0,min_characters:10,conditions:[{[P]:["other"]}]}],E={[c.Task]:{id:"quality_measurement_task",type:d.x8.QualityMeasurement,title:"Quality of the Task",subtitle:"Evaluate the quality of the overall task, specifically focusing on quality of work on the task before you make any changes. We'll use these results to add additional review on the task as needed and surface feedback to earlier contributors when relevant!",params:{visibility_restricted:[0,1,4,10,12],fields:S,editable_during_consensus:!0,hide_from_customer_view:!0}}};
1u.ChatPipelineRoutingOverrideType.NumericBasedRoutingOverride,u.ChatPipelineRoutingSource.L0,u.ChatPipelineRoutingSource.L1,u.ChatPipelineRoutingSource.L4,u.ChatPipelineRoutingSource.L10,u.ChatPipelineRoutingDestination.Attempt,u.NumericRoutingTypeOverrideType.QualityMeasurement,u.NumericValueComparator.LessThanOrEqual,u.ChatPipelineRoutingOverrideType.NumericBasedRoutingOverride,u.ChatPipelineRoutingSource.L0,u.ChatPipelineRoutingSource.L1,u.ChatPipelineRoutingSource.L4,u.ChatPipelineRoutingSource.L10,u.ChatPipelineRoutingDestination.Attempt,u.NumericRoutingTypeOverrideType.QualityMeasurement,u.NumericValueComparator.LessThanOrEqual,u.ChatPipelineRoutingOverrideType.StringBasedRoutingOverride,u.ChatPipelineRoutingSource.L0,u.ChatPipelineRoutingSource.L1,u.ChatPipelineRoutingSource.L4,u.ChatPipelineRoutingSource.L10,u.ChatPipelineRoutingDestination.Attempt,u.StringRoutingTypeOverrideType.QualityMeasurement,u.StringValueComparator.Equals,u.ChatPipelineRoutingOverrideType.NumericBasedRoutingOverride,u.ChatPipelineRoutingSource.L0,u.ChatPipelineRoutingSource.L1,u.ChatPipelineRoutingSource.L4,u.ChatPipelineRoutingSource.L10,u.ChatPipelineRoutingDestination.Attempt,u.NumericRoutingTypeOverrideType.QualityMeasurement,u.NumericValueComparator.LessThanOrEqual,u.ChatPipelineRoutingOverrideType.NumericBasedRoutingOverride,u.ChatPipelineRoutingSource.L0,u.ChatPipelineRoutingSource.L1,u.ChatPipelineRoutingSource.L4,u.ChatPipelineRoutingSource.L10,u.ChatPipelineRoutingDestination.Attempt,u.NumericRoutingTypeOverrideType.QualityMeasurement,u.NumericValueComparator.LessThanOrEqual,u.ChatPipelineRoutingOverrideType.StringBasedRoutingOverride,u.ChatPipelineRoutingSource.L0,u.ChatPipelineRoutingSource.L1,u.ChatPipelineRoutingSource.L4,u.ChatPipelineRoutingSource.L10,u.ChatPipelineRoutingDestination.Attempt,u.StringRoutingTypeOverrideType.QualityMeasurement,u.StringValueComparator.Equals},64228:function(e,t,a){"use strict";var r,i,o,n,s,c,l,d,u,p,m,h,f,g,b,y,_,k,v,x,T,w,S,C;a.d(t,{At:function(){return p},R2:function(){return s},Vk:function(){return m},_q:function(){return u},eU:function(){return r},jG:function(){return i},mT:function(){return n},rt:function(){return o},wE:function(){return c}}),(f=r||(r={})).SuperAdmin="super_admin",f.GlobalCommunityManager="global_community_manager",f.PodTypeCommunityManager="pod_type_community_manager",f.PodTypeAccess="pod_type_access",(g=i||(i={})).ChangeManager="change_manager",g.AddManager="add_manager",g.RemoveManager="remove_manager",(b=o||(o={})).Squad="squad",b.Community="community",b.TeamLeadCoordinator="team_lead_coordinator",b.CommunitySubSquad="community_sub_squad",(y=n||(n={})).Contributor="contributor",y.TeamLead="team_lead",y.TeamLeadCoordinator="team_lead_coordinator",(_=s||(s={})).Create="create",_.Edit="edit",_.Archive="archive",(k=c||(c={})).ERROR="error",k.WARNING="warning",k.IGNORE="ignore",(v=l||(l={})).AuditPDR="audit_PDR",v.BlockedSquadMembers="blocked_squad_members",v.BlockedSquadReviewer="blocked_squad_reviewer",v.ThrottledSquadMembers="throttled_squad_members",v.InactiveSquadMembers="inactive_squad_members",(x=d||(d={})).Reviewer="squad_reviewer",x.Member="squad_member",(T=u||(u={})).LastTaskedHoursAgo="last_tasked_hours_ago",T.Disabled="disabled",T.SquadMembersRecentlyReviewed="squad_members_recently_reviewed",T.BlockingTag="blocking_tag",T.MissingInclusionTag="missing_inclusion_tag",T.IncorrectTags="incorrect_tags",T.Throttled="throttled",T.MissingQualification="missing_qualification",T.AverageAuditScore="average_audit_score",T.AuditPDR="audit_PDR",T.LastQueueRun="last_queue_run",T.CommunityActivity="community_activity",T.QualityMeasurementStepPDR="QMS_PDR",(w=p||(p={})).Quality="quality",w.Throughput="throughput",w.Engagement="engagement",(S=m||(m={})).None="none",S.Healthy="healthy",S.Warning="warning",S.Critical="critical",(C=h||(h={})).SquadReviewer="squad_reviewer",C.Admin="admin"},327760:function(e,t,a){"use strict";var r,i,o,n,s,c,l;a.d(t,{SU:function(){return o},ci:function(){return i},et:function(){return d}}),(s=r||(r={})).GrammaticalityNormalized="Grammaticality-Normalized",s.PassiveVoiceNormalized="PassiveVoice-Normalized",s.LogicalComplexityNormalized="LogicalComplexity-Normalized",s.WritingLevelNormalized="WritingLevel-Normalized",s.ContradictionsNormalized="Contradictions-Normalized",s.SemanticRepetitionNormalized="SemanticRepetition-Normalized",s.RelevanceNormalized="Relevance-Normalized",s.InformativenessNormalized="Informativeness-Normalized",s.SpamNormalized="Spam-Normalized",s.ToxicityNormalized="Toxicity-Normalized",s.MultilingualToxicityNormalized="MultilingualToxicity-Normalized",(c=i||(i={})).GrammaticalityNormalized="Grammaticality-Normalized",c.PassiveVoiceNormalized="PassiveVoice-Normalized",c.LogicalComplexityNormalized="LogicalComplexity-Normalized",c.WritingLevelNormalized="WritingLevel-Normalized",c.ContradictionsNormalized="Contradictions-Normalized",c.SemanticRepetitionNormalized="SemanticRepetition-Normalized",c.SpamNormalized="Spam-Normalized",c.ToxicityNormalized="Toxicity-Normalized",c.MultilingualToxicityNormalized="MultilingualToxicity-Normalized",(o||(o={})).RelevanceNormalized="Relevance-Normalized",(l=n||(n={})).Egregious="Egregious",l.Suspect="Suspect",l.Acceptable="Acceptable";let d={[r.GrammaticalityNormalized]:{promptThresholds:{egregiousThreshold:.05,suspectThreshold:.15},completionThresholds:{egregiousThreshold:.05,suspectThreshold:.15}},[r.SpamNormalized]:{promptThresholds:{egregiousThreshold:.4,suspectThreshold:.5},completionThresholds:{egregiousThreshold:.4,suspectThreshold:.5}},[r.ToxicityNormalized]:{promptThresholds:{egregiousThreshold:.9,suspectThreshold:.95},completionThresholds:{egregiousThreshold:.9,suspectThreshold:.95}},[r.MultilingualToxicityNormalized]:{promptThresholds:{egregiousThreshold:.1,suspectThreshold:.2},completionThresholds:{egregiousThreshold:.1,suspectThreshold:.2}},[r.PassiveVoiceNormalized]:{},[r.LogicalComplexityNormalized]:{},[r.WritingLevelNormalized]:{},[r.ContradictionsNormalized]:{},[r.SemanticRepetitionNormalized]:{},[r.RelevanceNormalized]:{},[r.InformativenessNormalized]:{}}},43267:function(e,t,a){"use strict";a.d(t,{Al:function(){return transformDateTimeToPST},JB:function(){return formatMinutes},Kq:function(){return formatDateTimeFromISOToLocal},PK:function(){return formatDurationShort},Pl:function(){return formatTimeInWords},Pv:function(){return dateRangeToPST},Ws:function(){return transformDateTimeFormatPST},bS:function(){return formatTimeHMS},mr:function(){return formatTime},r6:function(){return l},t6:function(){return i},yV:function(){return s}});var r,i,o=a(108222);a(687627);var n=a(874358);(r=i||(i={})).full="Full",r.condensed="Condensed",r.condensedTime="Condensed Time";let s=864e5,c="America/Los_Angeles";function transformDateToPST(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a="string"==typeof e?new Date(e):e;return n.ou.fromObject({year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:t?23:0,minute:t?59:0,second:t?59:0,millisecond:t?999:0},{zone:c}).toJSDate()}function transformDateTimeToPST(e){let t="string"==typeof e?new Date(e):e;return n.ou.fromObject({year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()},{zone:c}).toJSDate()}function transformDateTimeFormatPST(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=o.utc(e).tz(c),n="";switch(t){case i.full:n=r.format("MMM D YYYY, h:mm A");break;case i.condensedTime:n=r.format("h:mm A");break;case i.condensed:default:n=r.format("M/D/YY, h:mm A")}return a?n:"".concat(n," (PST)")}
1function dateRangeToPST(e){return[transformDateToPST(new Date(e[0])),transformDateToPST(new Date(e[1]),!0)]}function formatDateTimeFromISOToLocal(e,t){return n.ou.fromISO(e instanceof Date?e.toISOString():e,{zone:"local"}).toFormat(t)}function formatTime(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{alwaysShowDays:a=!1,alwaysShowHours:r=!1,alwaysShowMinutes:i=!0,alwaysShowSeconds:o=!1,neverShowSeconds:s=!1}=t,c=n.nL.fromObject({seconds:Math.max(0,e)}).shiftTo("days","hours","minutes","seconds"),l=[];return(c.days>0||a)&&l.push("d'd'"),(c.hours>0||r||c.days>0)&&l.push("h'h'"),(c.minutes>0||i)&&l.push("m'm'"),(c.seconds>0||o)&&!s&&l.push("s's'"),l.length>0?c.toFormat(l.join(" ")):"0m"}function formatTimeHMS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{includeSeconds:a=!0}=t;if(null==e)return a?"--:--:--":"--:--";let r=n.nL.fromObject({seconds:Math.max(0,e)}).normalize();return r.toFormat(a?"hh:mm:ss":"hh:mm")}function formatDurationShort(e){let t=Math.max(0,e),a=Math.floor(t/3600),r=Math.floor(t%3600/60);return a>0?"".concat(a,"h ").concat(r,"m"):"".concat(r,"m ").concat(t%60,"s")}let l={TIME_SPENT:{alwaysShowMinutes:!0,alwaysShowSeconds:!0},TIME_SPENT_NO_SECONDS:{alwaysShowMinutes:!0,alwaysShowSeconds:!1,neverShowSeconds:!0},MAX_PAYABLE_TIME:{alwaysShowMinutes:!0,alwaysShowSeconds:!1},REMAINING_TIME:{alwaysShowHours:!0,alwaysShowMinutes:!0,alwaysShowSeconds:!0},REMAINING_TIME_NO_SECONDS:{alwaysShowHours:!0,alwaysShowMinutes:!0,alwaysShowSeconds:!1,neverShowSeconds:!0}};function formatTimeInWords(e){let t;if(null==e)return"--";if("minutes"in e){if(null===e.minutes||void 0===e.minutes)return"--";t=e.minutes}else{if(!("seconds"in e)||null===e.seconds||void 0===e.seconds)return"--";t=e.seconds/60}let a=Math.max(0,Math.floor(t)),r=Math.floor(a/60),i=a%60,o=[];return r>0&&o.push("".concat(r," ").concat(1===r?"hour":"hours")),(i>0||0===r)&&o.push("".concat(i," ").concat(1===i?"minute":"minutes")),o.join(" ")}function formatMinutes(e){if(!e||e<=0)return"--";let t=Math.round(e),a=Math.floor(t/60),r=t%60,i=[];return a>0&&i.push("".concat(a,"h")),(r>0||0===a)&&i.push("".concat(r,"m")),i.join(" ")}}},function(e){e.O(0,[50954,73795,50515,44147,45439,79290,61730,14012,14004,57495,88637,67945,94323,39626,61181,86815,70134,5628,92001,10486,10492,63886,36891,85202,90314,92943,85333,16748,97254,62863,82443,98010,55,43579,47732,30729,42610,64369,90376,17319,69007,77355,77598,99822,81823,1556,58753,99218,40104,71064,12807,16305,35685,46680,21573,11778,52182,3588,61389,28041,5174,94570,40418,47940,75095,1678,65308,50873,57119,80015,83553,95758,74358,20129,99388,13896,13612,36777,40105,27727,4671,44176,54333,6055,33560,74250,85002,76748,72256,86718,6867,94977,14998,95926,37062,64733,5612,72369,82266,80732,53584,66621,82771,61705,88695,21706,5078,21298,51329,68053,41477,69214,66734,94033,76329,25252,80491,68108,37776,53167,46791,98385,9016,33933,12214,69299,4801,94195,29304,41060,88345,49774,92888,40179],function(){return e(e.s=605710)}),_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.