PageSourceSearch

https://static.scale.com/dashboard.scale.com/rrvqttTwFdiikV-VvVU_R…/qm/queue/[project]-116be34aff9dde4a.js

js scale.com collected 2026-09-24 08:46:36 UTC 40,286 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43465],{951893:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/corp/qm/queue/[project]",function(){return n(729451)}])},274816:function(e,i,n){"use strict";n.d(i,{Z:function(){return CorpButtons}});var t=n(667488),s=n(367915),r=n.n(s);n(885115);var a=n(871146),l=n(245987),o=n(663752),c=n(485070),d=n(356198);function CorpButton(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"jsx-2f6f166540f7fff7 corp-button",children:(0,t.jsx)(l.u,{title:e.buttonProps.tooltip,children:(0,t.jsx)("div",{className:"jsx-2f6f166540f7fff7",children:(0,t.jsx)(c.I,{soundUrl:e.buttonProps.alertSound,probability:d.t,children:(0,t.jsx)(a.zx,{type:"danger",requireConfirmation:!0,textTransform:"none",disabled:e.buttonProps.disabled,onClick:async()=>{try{let i=await (0,o.ZP)(null,"corp-api/lookup/".concat(e.objectId,"/runCommand/").concat(e.buttonProps.commandName),{method:"POST",body:e.buttonProps.args});e.buttonProps.alertResult&&alert(i),e.refresh()}catch(e){(0,o.vj)(e,{handleHttp:!0})}},children:e.buttonProps.text})})})})}),(0,t.jsx)(r(),{id:"2f6f166540f7fff7",children:".corp-button.jsx-2f6f166540f7fff7{margin:16px 0}"})]})}function CorpButtons(e){var i;let n=null!==(i=e.orientation)&&void 0!==i?i:"column";return(0,t.jsxs)("div",{className:"jsx-320e5782ce5b6d8a corp-buttons corp-buttons--"+n,children:[e.buttons.map((i,n)=>(0,t.jsx)(CorpButton,{buttonProps:i,refresh:e.refresh,objectId:e.objectId},n)),(0,t.jsx)(r(),{id:"320e5782ce5b6d8a",children:".corp-buttons--row.jsx-320e5782ce5b6d8a{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.corp-buttons--row.jsx-320e5782ce5b6d8a .corp-button.jsx-320e5782ce5b6d8a{margin-right:10px}"})]})}},56035:function(e,i,n){"use strict";var t=n(667488),s=n(885115),r=n(747910),a=n.n(r),l=n(245987),o=n(462206),c=n(139673),d=n(663752),u=n(381768),p=n(424565),h=n(827051);let x=(0,o.ZL)({container:{display:"flex",flexDirection:"column",marginTop:16,marginBottom:16,width:680,"& > *":{marginTop:8}},filtersContainer:{display:"flex",flexDirection:"column","& > *":{marginBottom:16}},spinnerContainer:{display:"flex",flexDirection:"row",justifyContent:"center",width:"100%"},spinner:{width:24,height:24},lookupButton:{width:240,marginRight:16},responseContainer:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:16,"& > *":{marginRight:16},background:"#00a2ff17",borderRadius:8,padding:16}}),FilterIcon=()=>(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M20.6995 2.3999H3.30144C2.50201 2.3999 2.09862 3.36988 2.66506 3.93631L9.60038 10.8727V18.5999C9.60038 18.8936 9.74367 19.1688 9.98427 19.3372L12.9843 21.4365C13.5761 21.8508 14.4004 21.4309 14.4004 20.6992V10.8727L21.3359 3.93631C21.9012 3.371 21.5005 2.3999 20.6995 2.3999Z",fill:"black"})});i.Z=e=>{let{projectId:i,justify:n="start"}=e,r=x(),{isRemoAdmin:o}=(0,p.bE)(),[j,m]=s.useState(!1),[v,g]=s.useState(null),[f,b]=s.useState([]),[k,y]=s.useState([]),[w,S]=s.useState([]),[Z,N]=s.useState(void 0),[C,P]=s.useState(!1),[T,_]=s.useState(!1),[L,I]=s.useState(!1),[E,O]=s.useState(null),[B,z]=s.useState(u.V.MostRecent),lookupFilterOptions=()=>{_(!0),(0,d.ZP)(null,"corp-api/lookup/".concat(i,"/advanced-lookup-options"),{method:"GET"}).then(e=>{_(!1),g(e),S(Object.keys(e.subprojectMap))}).catch(d.vj)},getSelectMultiHandler=function(e){return i=>{e(i.target.value)}};return(0,t.jsxs)("div",{className:r.container,style:{alignItems:n,width:o?"inherit":680},children:[!j&&(0,t.jsx)(l.zx,{startIcon:(0,t.jsx)(FilterIcon,{}),type:"tertiary",onClick:()=>{lookupFilterOptions(),m(!0)},children:"Filter for More Subtasks..."}),j&&T&&(0,t.jsx)("div",{className:r.spinnerContainer,children:(0,t.jsx)(c.Z,{size:24})}),j&&!T&&v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:r.filtersContainer,children:[(0,t.jsx)(l.Ph,{value:B,onChange:e=>z(e.target.value),label:"Ordering",children:a().entries(u.V).map(e=>{let[i,n]=e;return(0,t.jsx)(l.Wx,{value:n,children:i},n)})}),(0,t.jsxs)(l.Ph,{multiple:!0,value:f,onChange:getSelectMultiHandler(b),label:"Status(es)",children:[(0,t.jsx)(l.Wx,{disabled:!0,value:"",children:"Status(es)"}),v.statuses.map(e=>(0,t.jsx)(l.Wx,{value:e,children:e},e))]}),(0,t.jsxs)(l.Ph,{multiple:!0,value:k,onChange:getSelectMultiHandler(y),label:"Review Level(s)",children:[(0,t.jsx)(l.Wx,{disabled:!0,value:"",children:"Review Level(s)"}),v.reviewLevels.map(e=>(0,t.jsx)(l.Wx,{value:e,children:e},e))]}),(0,t.jsxs)(l.Ph,{multiple:!0,value:w,onChange:getSelectMultiHandler(S),label:"Project(s)",children:[(0,t.jsx)(l.Wx,{disabled:!0,value:"",children:"Project(s)"}),Object.keys(v.subprojectMap).map(e=>(0,t.jsx)(l.Wx,{value:e,children:e},e))]}),(0,t.jsx)(l.XZ,{label:"Only Claimed",checked:C,onChange:()=>P(!C)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(l.zx,{onClick:()=>
1{if(!v)return;_(!0);let e=Object.fromEntries(Object.entries(v.subprojectMap).filter(e=>{let[i]=e;return w.includes(i)}));(0,d.ZP)(null,"corp-api/lookup/".concat(i,"/advanced-lookup"),{method:"POST",body:{reviewLevels:k,statuses:f,subprojectMap:e,claimed:C,limit:Z,ordering:B}}).then(e=>{_(!1),O(e.subtasks),I(!1)}).catch(d.vj)},disabled:0===w.length,className:r.lookupButton,children:"Search"}),(0,t.jsx)(l.oi,{type:"number",placeholder:"Limit (default 500)",value:Z,onChange:e=>N(+e.target.value)})]})]}),!T&&E&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:r.responseContainer,children:[(0,t.jsxs)("div",{children:["Found ",E.length," Subtasks."]}),(0,t.jsx)(l.zx,{onClick:()=>{if(!E)return;let e=E.map(e=>e._id).join("\n"),i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),I(!0)},disabled:L,children:L?"✅ Copied":"Copy Ids"}),(0,t.jsx)(l.zx,{href:"/corp/v2/speed_audit?project=".concat(i,"&ids=").concat(E.map(e=>e._id).join(",")),target:"_blank",rel:"noreferrer noopener",children:"Audit"})]}),(0,t.jsx)(h.Z,{data:E,columns:[{accessor:"_id",Header:"Subtask",width:200},{accessor:"task",Header:"Task",width:200},{accessor:"project",Header:"Project",width:200},{accessor:"status",Header:"Status"},{accessor:"created_at",Header:"Created At",width:200},{accessor:"assignedSession",Header:"Assigned Session",width:300}]})]})]})}},448361:function(e,i,n){"use strict";var t=n(667488);n(885115);var s=n(462206),r=n(663752),a=n(860497),l=n(725951),o=n(865891),c=n(56035),d=n(424565),u=n(661869),p=n.n(u);let h=(0,s.ZL)(e=>({grid:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gridGap:16,marginTop:16,marginBottom:16},remoAdminGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:16,marginTop:16},group:{background:e.colors.gray01,borderRadius:8,padding:"16px 24px"},groupHeader:{marginBottom:8},noResults:{height:100,display:"flex",justifyContent:"center",alignItems:"center"}}));i.Z=e=>{let{projectId:i,usesPipelineV3:n}=e,s=h(),{isRemoAdmin:u}=(0,d.bE)(),x=(0,o.Z)(async()=>{let e=await (0,r.ZP)(null,"corp-api/lookup/".concat(i,"/recentCompletedSubtasks"),{method:"GET"});return{title:"Recently Completed Subtasks",res:e}},[i]),j=(0,o.Z)(async()=>{let e=await (0,r.ZP)(null,"corp-api/lookup/".concat(i,"/recentCompletedTasks"),{method:"GET"});return{title:"Recently Completed Tasks",res:e}},[i]),m=(0,o.Z)(async()=>{let e=await (0,r.ZP)(null,"corp-api/lookup/".concat(i,"/recentPendingSubtasks"),{method:"GET"});return{title:"Recently Pending Subtasks",res:e}},[i]),v=(0,o.Z)(async()=>{let e=await (0,r.ZP)(null,"corp-api/lookup/".concat(i,"/recentPendingTasks"),{method:"GET"});return{title:"Recently Pending Tasks",res:e}},[i]),g=(0,o.Z)(async()=>{let e=await (0,r.ZP)(null,"corp-api/lookup/".concat(i,"/recentSubmittedTrainingAttempts"),{method:"GET"});return{title:"Recently Submitted Training Attempts",res:e}},[i]),renderSectionData=e=>{var i;return e.loading?null:(null===(i=e.value)||void 0===i?void 0:i.res.length)?e.value.res.map(e=>(0,t.jsx)("div",{children:(0,t.jsx)(l.Z,{objectId:e._id})},e._id)):(0,t.jsx)("div",{className:s.noResults,children:"No Results Found"})};return(0,t.jsxs)("div",{children:[(0,t.jsx)(a.H2,{children:"Quickgrab"}),(0,t.jsx)("div",{className:p()({[s.grid]:!u,[s.remoAdminGrid]:u}),children:(n?[j,v,g]:[x,j,m,v,g]).map((e,i)=>{var n;return!e.error&&(0,t.jsxs)("div",{className:s.group,children:[(0,t.jsx)("div",{className:s.groupHeader,children:(0,t.jsx)(a.H3,{children:null===(n=e.value)||void 0===n?void 0:n.title})}),renderSectionData(e)]},i)})}),!n&&(0,t.jsxs)("div",{className:s.group,children:[(0,t.jsx)("div",{className:s.groupHeader,children:(0,t.jsx)(a.H3,{children:"Custom Filter"})}),(0,t.jsx)(c.Z,{projectId:i})]})]})}},659929:function(e,i,n){"use strict";var t=n(667488),s=n(747910),r=n.n(s),a=n(885115),l=n(281219),o=n(330890),c=n(211844),d=n(417223),u=n(149565),p=n(54490),h=n(481166),x=n(428575),j=n(289763),m=n(110665),v=n(762929),g=n(243553),f=n(424565),b=n(848501),k=n(182959),y=n(481269),w=n(90272),S=n(8265),Z=n(302405);let N={L4:"Consensus layer",L8:"Cheating holding layer",L11:"Linter escalations layer",L12:"Delivery holding layer",Attempt:"The first layer (start from scratch)"},structureData=(e,i)=>{let n=r().cloneDeep(e);for(let e=0;e<i.length;e++){let t=i[e].reviewLevel,s={_id:{reviewLevel:t},count:0,unclaimed_count:0};e>=n.length?n.push(s):t!==n[e]._id.reviewLevel&&n.splice(e,0,s)}return n};i.Z=e=>{var i,n,s,C,P,T;let{projectId:_,className:L}=e,{isRemoAdmin:I}=(0,f.bE)(),E="".concat((0,b.CJ)(I),"/").concat(_),[O,B]=(0,a.useState)(void 0),[z,D]=(0,a.useState)(void 0),[H,A]=(0,a.useState)(void 0),{data:R,isLoading:G}=(0,y.GFN)({projectId:_,filters:{batchId:null==O?void 0:O.value,specializations:z,workerSkillSpecializations:H}}),getTotalPipeline=(e,i)=>{var n;return 0+r().sum(e.map(e=>e.count))+(null!==(n=null==i?void 0:i.paused)&&void 0!==n?n:0)},{unreservedSortedData:F,mergedByReviewLevel:V}=(0,a.useMemo)(()=>
1{if(!R)return{unreservedSortedData:[],mergedByReviewLevel:[]};{let e=r().sortBy(R.pending,e=>w.ReviewLevelOrder.indexOf(e._id.reviewLevel)),i=[];for(let n of e){let e=!1;for(let t of i)t.reviewLevel===n._id.reviewLevel&&(t.count=t.count+n.count,e=!0);e||i.push({reviewLevel:n._id.reviewLevel,count:n.count})}let n=structureData(e,i);return{unreservedSortedData:n,mergedByReviewLevel:i}}},[R]),q=R?V.map(e=>r().find(R.tasks,i=>i._id===e.reviewLevel)).filter(e=>!!e):[],M=null!==(n=null===(i=r().find(null==R?void 0:R.tasks,e=>"error"===e._id))||void 0===i?void 0:i.count)&&void 0!==n?n:0,W=null!==(s=null==R?void 0:R.transitioningTasks)&&void 0!==s?s:0,U=null!==(C=null==R?void 0:R.expiredTasks)&&void 0!==C?C:0,Q=(null!==(P=null==R?void 0:R.cheating)&&void 0!==P?P:0)>0;return G?(0,t.jsxs)("div",{className:(0,l.m)("scaleui scale-theme scale-tailwind flex flex-row gap-4 justify-center align-middle items-center",L),children:["Loading node summary... ",(0,t.jsx)(x.$,{className:"",size:"sm",variant:"primary"})]}):(0,t.jsxs)("div",{className:(0,l.m)("scaleui scale-theme scale-tailwind py-2",L),children:[(0,t.jsx)(j.ZT.Subtitle2,{children:"Human Node Snapshot"}),(0,t.jsx)(o.Z,{children:(0,t.jsxs)(c.Z,{children:[(0,t.jsx)(p.Z,{children:(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(u.Z,{children:"Category"}),V.map((e,i)=>(0,t.jsx)(u.Z,{children:N[(0,g.mE7)(e.reviewLevel)]?(0,t.jsxs)("div",{className:"flex items-",children:[(0,t.jsx)("span",{children:(0,g.mE7)(e.reviewLevel)}),(0,t.jsx)(m.u,{text:N[(0,g.mE7)(e.reviewLevel)],side:"top",target:(0,t.jsx)("span",{children:(0,t.jsx)(v.s,{icon:"info-circle",variant:"black"})})})]}):(0,g.mE7)(e.reviewLevel)},i)),Q&&(0,t.jsx)(u.Z,{children:"Cheating"}),(0,t.jsx)(u.Z,{children:"paused"}),(0,t.jsx)(u.Z,{children:"Task Transitioning"}),(0,t.jsx)(u.Z,{children:"Task Errored"}),(0,t.jsx)(u.Z,{children:"Task Expired"}),(0,t.jsx)(u.Z,{children:"Total"})]})}),(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(u.Z,{children:"unclaimed pipelinev3 human nodes"}),F.map((e,i)=>{var n,s,r;return(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:(0,Z.P)(E,{reviewLevel:e._id.reviewLevel.toString(),claimed:"false",batchId:null!==(n=null==O?void 0:O.value)&&void 0!==n?n:"",specializations:null!==(s=null==z?void 0:z.join(","))&&void 0!==s?s:"",workerSkillSpecializations:null!==(r=null==H?void 0:H.join(","))&&void 0!==r?r:""}),children:e.unclaimed_count})},i)}),Q&&(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"})]}),(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(u.Z,{children:"claimed pipelinev3 human nodes"}),F.map((e,i)=>{var n,s,r;return(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:(0,Z.P)(E,{reviewLevel:e._id.reviewLevel.toString(),claimed:"true",batchId:null!==(n=null==O?void 0:O.value)&&void 0!==n?n:"",specializations:null!==(s=null==z?void 0:z.join(","))&&void 0!==s?s:"",workerSkillSpecializations:null!==(r=null==H?void 0:H.join(","))&&void 0!==r?r:""}),children:e.count-e.unclaimed_count})},i)}),Q&&(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"})]}),(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(u.Z,{children:"total pipelinev3 human nodes"}),V.map((e,i)=>(0,t.jsx)(u.Z,{children:e.count},i)),(null!==(T=null==R?void 0:R.cheating)&&void 0!==T?T:0)>0&&(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:(0,Z.P)(E,{nodeName:w.CommonPipelineNodeName.SuspectedCheatingNode,nodeType:"workflow"}),children:null==R?void 0:R.cheating})}),(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:(0,Z.P)(E,{status:w.PipelineV3HumanNodeStatus.Paused}),children:(null==R?void 0:R.paused)===1e5?"At Least 100000":null==R?void 0:R.paused})}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:(null==R?void 0:R.paused)===1e5?"At least ".concat(getTotalPipeline(V,R)):getTotalPipeline(V,R)})]}),(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(u.Z,{children:"progress by task"}),q.map((e,i)=>{var n,s,r,a;return(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:(0,Z.P)(E,{reviewLevel:null!==(n=null==e?void 0:e._id.toString())&&void 0!==n?n:"",batchId:null!==(s=null==O?void 0:O.value)&&void 0!==s?s:"",specializations:null!==(r=null==z?void 0:z.join(","))&&void 0!==r?r:"",workerSkillSpecializations:null!==(a=null==H?void 0:H.join(","))&&void 0!==a?a:""}),children:null==e?void 0:e.count})},i)}),(0,t.jsx)(u.Z,{children:"--"}),(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:"".concat(E,"/").concat(_,"?taskTransitioning=true"),children:W})}),(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:"".concat(E,"/").concat(_,"?taskError=true"),children:M})}),(0,t.jsx)(u.Z,{children:(0,t.jsx)(k.r,{to:"".concat(E,"/").concat(_,"?taskExpired=true"),children:U})}),(0,t.jsx)(u.Z,{children:"--"})]})]})]})}),(0,t.jsx)(S.Z,{selectedBatch:O,setSelectedBatch:B,specializations:z,setSpecializations:D,workerSkillSpecializations:H,setWorker
1SkillSpecializations:A,projectId:_})]})}},90193:function(e,i,n){"use strict";var t=n(667488),s=n(885115),r=n(663752);i.Z=e=>{let{projectId:i}=e,[n,a]=(0,s.useState)(),fetchData=async()=>{try{let e=await (0,r.ZP)(null,"corp-api/lookup/".concat(i,"/weeklyProgress"),{method:"GET"});a(e)}catch(e){(0,r.vj)(e)}};return((0,s.useEffect)(()=>{fetchData()},[]),n)?(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{children:[n.subtaskCount," subtasks and ",n.taskCount," tasks so far this week!"]}),"Last week at this time, we'd completed ",n.lastWeekSubtaskCount," subtasks and"," ",n.lastWeekTaskCount," tasks."]}):(0,t.jsx)("div",{children:" Loading... "})}},321585:function(e,i,n){"use strict";n.d(i,{A:function(){return SearchWorkerSkillsMenu}});var t=n(667488),s=n(496392),r=n(885115),a=n(281219),l=n(289763),o=n(384719),c=n(622179),d=n(589382),u=n(800068),p=n(428310),h=n(747910),x=n.n(h);let SearchWorkerSkillsMenu=e=>{let{allWorkerSkills:i,selectedWorkerSkill:n,onSelectWorkerSkill:h,className:j,disabled:m=!1,placeholder:v}=e,[g,f]=(0,r.useState)(""),[b,k]=(0,r.useState)([]),[y,w]=(0,r.useState)([]),[S,Z]=(0,r.useState)([]),N=(0,r.useEffect)(()=>{w(i.map(function mapSkillToTreeNode(e){var i;return{name:e.displayName||e.name,description:e.internalDescription||e.externalDescription,id:e.id,children:(null===(i=e.childSkills)||void 0===i?void 0:i.map(mapSkillToTreeNode))||[]}}))},[i]);function setSelectedOption(e){h&&h(e)}(0,r.useEffect)(()=>{""===g&&Z(y),Z(y.map(e=>(function filterTree(e){let i=JSON.stringify(e).toLowerCase().includes(g.toLowerCase()),n=!1,t=[];for(let s of e.children){let[e,r]=filterTree(s);e&&r&&(t.push(r),i=!0,n=!0)}return n&&k(i=>x().uniq([...i,e.id])),[i,i?{...e,children:t.slice(0,100)}:null]})(e)[1]).filter(e=>null!==e))},[g,N,y]);let C=(0,r.useCallback)((e,i)=>{k(i)},[]),P=(0,r.forwardRef)(function(e,i){let{classes:n,className:r,label:a,nodeId:d,icon:u,expansionIcon:h,displayIcon:x,option:j,setSelectedOption:m}=e,{disabled:v,expanded:g,selected:f,focused:b,handleExpansion:k,handleSelection:y,preventSelection:w}=(0,c.I)(d);return(0,t.jsxs)("div",{className:(0,p.Z)(r,n.root,{[n.expanded]:g,[n.selected]:f,[n.focused]:b,[n.disabled]:v}),onMouseDown:e=>{e.preventDefault(),w(e)},ref:i,children:[(0,t.jsx)("div",{onClick:e=>{e.preventDefault(),k(e)},className:n.iconContainer,children:u||h||x}),(0,t.jsx)("div",{onClick:e=>{m(j),y(e)},className:n.label,children:(0,t.jsx)(s.h.Option,{value:j,className:"relative cursor-default select-none py-1 px-3 text-neutral-800 flex gap-3 items-center",children:e=>{let{selected:i}=e;return(0,t.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.ZT.Subtitle3,{children:a}),j.description&&(0,t.jsx)(o.J,{icon:["fas","info"],rounded:!0,size:"sm",tooltip:j.description,variant:"neutral"}),i&&(0,t.jsx)(o.J,{icon:"check"})]})})}},j.id)})]})}),TreeOptions=e=>{let{opts:i,level:n=0,setSelectedOption:s}=e;return 0===i.length?null:(0,t.jsx)(t.Fragment,{children:i.map((e,i)=>(0,t.jsx)(d.k,{collapseIcon:e.children.length&&(0,t.jsx)(o.J,{icon:"caret-down",size:"lg"}),expandIcon:e.children.length&&(0,t.jsx)(o.J,{icon:"caret-right",size:"lg"}),nodeId:e.id,label:"".concat(e.name).concat(e.children.length>0?" (".concat(e.children.length,")"):""),ContentComponent:P,ContentProps:{option:e,setSelectedOption:s},classes:{iconContainer:"w-16 pl-".concat(4*n)},children:(0,t.jsx)(TreeOptions,{opts:e.children,level:n+1,setSelectedOption:s})},i))})};return(0,t.jsx)("div",{className:(0,a.m)("scaleui scale-theme scale-tailwind relative [&_.MuiTooltip-popper]:!z-[9999]",m&&"opacity-50 pointer-events-none",j),children:(0,t.jsx)(s.h,{by:"name",value:n,onChange:e=>{f(""),setSelectedOption(e)},disabled:m,children:e=>{var i;let{open:r}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h.Button,{as:"div",className:(0,a.m)("relative w-full py-2 pl-3 pr-10 text-left border rounded-lg shadow-sm cursor-default focus:outline-none focus:ring-1 sm:text-sm bg-neutral-0 focus:ring-primary-500 border-neutral-300",m&&"bg-neutral-100 cursor-not-allowed"),children:(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(s.h.Input,{placeholder:null!=v?v:"Search...",className:"relative w-full p-0 shadow-none sm:text-sm cursor-default border-none focus:ring-0 text-neutral-700",onChange:e=>f(e.target.value),value:r?g:null!==(i=null==n?void 0:n.name)&&void 0!==i?i:"",displayValue:()=>r?g:(null==n?void 0:n.name)||"",autoFocus:!0,disabled:m})})}),r&&!m&&(0,t.jsx)(s.h.Options,{static:!0,className:"absolute z-20 w-auto min-w-full max-w-sm py-1 mt-1 overflow-auto text-base rounded-lg shadow-lg bg-neutral-0 max-h-60 ring-1 ring-neutral-900 ring-opacity-5 focus:outline-none sm:text-sm dark:[color-scheme:dark]",children:(0,t.jsx)(u.L,{expanded:b,onNodeToggle:C,children:(0,t.jsx)(TreeOptions,{opts:S,setSelectedOption:setSelectedOption})})})]})}})})}},285708:function(e,i,n){"use strict";var t=n(667488),s=n(885115),r=n(720),a=n(866506),l=n(728219),o=n(238169),c=n(955292),d=n(78631),u=n(610375),p=n(424347);i.Z=e=>((0,s.useEffect)(()=>{(0,p.Qg)("/corp/qm")},[]),(0,s.useEffect)(()=>{(0,p.Zz)()||(0,p.ZP)({version:"rrvqttTwFdiikV-VvVU_R"}),(0,p.w_)(e.user)},[e.user]),(0,t.jsx)(o.Z,{children:(0,t.jsxs)(d.aH,{client:u.X,children:[(0,t.jsx)(c.Z,{title:"Delivery Portal"}),(0,t.jsx)(l.VK,{forceRefresh:!0,basename:"corp",children:(0,t.jsx)(a.Z,{children:(0,t.jsx)(r.Z,{user:e.user,children:e.children})})})]})}))},729451:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return et}});var t=n(667488),s=n(885115),r=n(285708),a=n(462206),l=n(762754),o=n(431548),c=n(503352),d=n(865891),u=n(663752),p=n(747910),h=n.n(p),x=n(860497),j=n(857286);let PipelineInfoSection=e=>{let{pipeline:i}=e,n=m(),{name:s,version:r,params:a,subprojectMap:l}=i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.H3,{children:"Pipeline (using V".concat(r,")")}),(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Name:"})," ",s]}),a&&(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Params:"}),Object.keys(a).map(e=>(0,t.jsxs)("div",{children:[e,": ",JSON.stringify(a[e])]},e))]}),Object.keys(l).length>0&&(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Subprojects:"}),Object.keys(l).map(e=>(0,t.jsx)("div",{children:(0,t.jsx)(j.Z,{href:"/lookup/".concat(l[e]),children:e})},e))]})]})},BenchmarksInfoSection=e=>{let{benchmarks:i}=e,n=m(),{numEnabledBenchmarks:s,benchmarkRates:r}=i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.H3,{children:"Benchmarks"}),(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Num Enabled Benchmarks:"})," ",s]}),(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"BM Serving Rates:"}),h().sortBy(Object.keys(r)).map(e=>(0,t.jsxs)("div",{children:["-1"===e?"attempt":"L".concat(e),": ",String(r[e])]},e))]})]})},PrelabelingInfoSection=e=>{let{prelabeling:i}=e,n=m(),{prelabelingSampleRate:s,prelabelingModels:r}=i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.H3,{children:"Prelabeling"}),(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Prelabeling Sample Rate:"})," ",s]}),(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Prelabeling Models:"}),r.map(e=>(0,t.jsx)("div",{children:e},e))]})]})},LintersInfoSection=e=>{let{linters:i,prefix:n}=e,s=m(),{namesByType:r}=i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.H3,{children:[n," Linters"]}),(0,t.jsx)("div",{className:s.item,children:Object.keys(r).map(e=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:s.label,children:[e,":"]}
1),r[e].slice(0,5).map(e=>(0,t.jsx)("div",{children:e},e)),r[e].length>5?(0,t.jsx)("div",{children:"..."}):void 0]},e))})]})},CorruptionsInfoSection=e=>{let{corruptions:i}=e,n=m(),{enabledCorruptions:s}=i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.H3,{children:"Corruptions"}),(0,t.jsxs)("div",{className:n.item,children:[(0,t.jsx)("span",{className:n.label,children:"Enabled Corruptions:"}),s.map(e=>(0,t.jsx)("div",{children:e},e))]})]})},m=(0,a.ZL)({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",overflow:"auto"},section:{minWidth:200,marginBottom:10,"&:not(:last-child)":{marginRight:10}},item:{marginBottom:10},label:{fontWeight:500}});var overview_FeaturesSection=e=>{let{features:i}=e,n=m(),{pipeline:s,benchmarks:r,prelabeling:a,lidarLinters:l,responseLinters:o,corruptions:c}=i;return(0,t.jsxs)("div",{className:n.container,children:[(0,t.jsx)("div",{className:n.section,children:(0,t.jsx)(PipelineInfoSection,{pipeline:s})}),r.enabled&&(0,t.jsx)("div",{className:n.section,children:(0,t.jsx)(BenchmarksInfoSection,{benchmarks:r})}),a.enabled&&(0,t.jsx)("div",{className:n.section,children:(0,t.jsx)(PrelabelingInfoSection,{prelabeling:a})}),l.enabled&&(0,t.jsx)("div",{className:n.section,children:(0,t.jsx)(LintersInfoSection,{linters:l,prefix:"Lidar"})}),o.enabled&&(0,t.jsx)("div",{className:n.section,children:(0,t.jsx)(LintersInfoSection,{linters:o,prefix:"Response"})}),c.enabled&&(0,t.jsx)("div",{className:n.section,children:(0,t.jsx)(CorruptionsInfoSection,{corruptions:c})})]})},v=n(661869),g=n.n(v),f=n(245987),b=n(115242),k=n(218980),y=n(467977),w=n(901036),S=n(101862),Z=n(374075),N=n(144176),C=n(88014),P=n(424565);let T=(0,a.ZL)({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",overflow:"auto",alignItems:"center"},section:{minWidth:200,marginBottom:10,"&:not(:last-child)":{marginRight:10},padding:"10px",alignItems:"center"},sectionBorder:{boxSizing:"border-box",border:"1px solid #CECECE"},link:{border:"1px solid rgba(0, 118, 255, 0.5)",background:"rgba(0, 118, 255, 0.1)",borderRadius:"8px",margin:"2px",paddingTop:"2px",paddingRight:"6px",paddingBottom:"2px",paddingLeft:"6px"}});var overview_ProjectGroupsSection=e=>{let{projectId:i}=e,n=T(),{isRemoAdmin:r}=(0,P.bE)(),{data:a,error:l,loading:c,refetch:d}=(0,C.p)({loading:!0,projectId:i});(0,s.useEffect)(()=>{l&&(0,u.vj)(l,{handleHttp:!0})},[l]);let[p,m]=(0,s.useState)(!1),v=(0,s.useMemo)(()=>{let e={active:[],inactive:[]};return null==a||a.filter(e=>e.projectIds.includes(i)).forEach(i=>{i.status!==y.CV.Experimental?e.active.push(i):e.inactive.push(i)}),e},[a,i]);return(0,t.jsxs)("div",{className:n.container,children:[v.active.length>0&&v.active.map(e=>(0,t.jsxs)("div",{children:[!r&&(0,t.jsxs)("div",{className:n.container,children:[(0,t.jsx)("p",{style:{fontSize:"16px",fontWeight:"bold"},children:e.name}),(0,t.jsx)(j.Z,{target:"_blank",href:"/project_group/".concat(e.id),children:(0,t.jsx)(S.ZP,{title:"Open Project SLA Group",arrow:!0,children:(0,t.jsx)(Z.Z,{edge:"end","aria-label":"Open Project SLA Group",children:(0,t.jsx)(w.Z,{})})})})]}),(0,t.jsxs)("div",{className:n.container,children:[e.status&&(0,t.jsxs)("div",{className:g()(n.section,n.sectionBorder),children:[(0,t.jsx)(x.H3,{children:h().get(y.rW,"".concat(Object.keys(y.CV).find(i=>h().get(y.CV,i)===e.status)),h().startCase(e.status))}),(0,t.jsx)("p",{children:"Status"})]}),e.businessUnit&&(0,t.jsxs)("div",{className:g()(n.section,n.sectionBorder),children:[(0,t.jsx)(x.H3,{children:h().get(y.Zn,e.businessUnit,h().startCase(e.businessUnit))}),(0,t.jsx)("p",{children:"Business Unit"})]}),e.businessUnitProduct&&(0,t.jsxs)("div",{className:g()(n.section,n.sectionBorder),children:[(0,t.jsx)(x.H3,{children:h().get(y.f$,e.businessUnitProduct,h().startCase(e.businessUnitProduct))}),(0,t.jsx)("p",{children:"Business Unit Product"})]}),e.slaCadence&&(0,t.jsxs)("div",{className:g()(n.section,n.sectionBorder),children:[(0,t.jsx)(x.H3,{children:h().startCase(e.slaCadence)}),(0,t.jsx)("p",{children:"SLA Cadence"})]}),e.fulfillmentMechanism&&(0,t.jsxs)("div",{className:g()(n.section,n.sectionBorder),children:[(0,t.jsx)(x.H3,{children:h().startCase(e.fulfillmentMechanism)}),(0,t.jsx)("p",{children:"Fulfillment Mechanism"})]})]}),!r&&e.projectIds.filter(e=>e!==i).length>0&&(0,t.jsxs)("div",{className:n.container,children:[(0,t.jsx)("h4",{children:"Sibling projects:\xa0"}),e.projectIds.filter(e=>e!==i).map(e=>(0,t.jsx)(k.Z,{type:b.$.Project,id:e},e))]})]},e.id)),v.inactive.length>0&&(0,t.jsxs)("div",{className:n.container,children:[(0,t.jsx)("h4",{children:"Other Experimental Project SLA Groups:\xa0"}),v.inactive.map(e=>(0,t.jsx)(k.Z,{type:b.$.ProjectSLAGroup,id:e.id},e.id))]}),!c&&!l&&v.inactive.length+v.active.length===0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"This project is not part of a project SLA group (yet). Project SLA Groups are how Scale tracks the status of projects."}),(0,t.jsx)("p",{children:"If this is part of a production project, or will be, you should go create a Project Group for it and any related queues."}),(0,t.jsx)(f.zx,{onClick:()=>m(!0),children:"Create Project SLA Group"})]}),c&&!l&&(0,t.jsx)(o.Z,{}),p&&(0,t.jsx)(N.Z,{initialValues:{projectIds:[i]},onSave:async()=>{m(!1),d()},onClose:()=>m(!1)})]})},_=n(699890),L=n(482770),I=n(751788),E=n(955292),O=n(726007),B=n(659929),z=n(182959),D=n(90193),H=n(448361),A=n(982964),R=n(243553),G=n(274816),F=n(34591),V=n(871146),q=n(342924),hooks_useProjectDatasetInfo=e=>{let i=(null==e?void 0:e._id)?null==e?void 0:e._id.toString():"",{loading:n,value:t}=(0,d.Z)(async()=>await (0,u.ZP)(null,"corp-api/nucleus/project/".concat(i,"/project_datasets_info/"),{method:"GET"}),[e]),r=(0,s.useMemo)(()=>n?[]:t&&(null==t?void 0:t.datasets)?t.datasets:void 0,[n,t]);return{loading:n,datasets:r}},M=n(508191);let sendSurgeEmails=(e,i)=>{(0,u.ZP)(null,"corp-api/change_tasker_reactivation_config",{method:"POST",body:{idsToProcess:[e],turnOn:i}}).catch(u.vj)},W=(0,f.ZL)(e=>({spaceTop:{marginTop:e.spacing(1.5)},datasetsLoading:{width:"fit-content",margin:e.spacing(2)},linkedDatasets:{display:"flex",flexDirection:"column",gap:e.spacing(.5),marginLeft:e.spacing(1),width:"fit-content"},linkedDatasetItem:{display:"flex",justifyContent:"space-between",gap:e.spacing(2)}}));var ProjectQuickActions_ProjectQuickActions=e=>{let{object:i,userEmail:n,usesPipelineV3:s,refresh:r}=e,a=W(),l=i._id,o=[{commandName:"toggleProjectVisibility",text:"Toggle Project Visibility For Customers ".concat(i.invisibleToCustomer?"On":"Off")}
1,{commandName:"bumpProjectActivity",text:"Bump Project Activity",tooltip:'Use this only if Corp Explain shows this project in "excluded inactive projects"'}];s||o.push(...[{commandName:"sendCorpToCustomer",text:"Send Needs Corp To Customer"},{commandName:"quarantineSubtasks",args:{quarantinedPending:!0,userEmail:n},text:"Quarantine unassigned subtasks"},{commandName:"quarantineSubtasks",args:{quarantinedPending:!1,userEmail:n},text:"Unquarantine subtasks"}]);let c=R.q5_.includes(i.taskType),{loading:d,datasets:u}=hooks_useProjectDatasetInfo(i);return(0,t.jsxs)("div",{className:"shortcuts",children:[(0,t.jsx)("div",{children:(0,t.jsx)("a",{href:"/tasks?project=".concat(i._id,"&spoof=").concat(i.taskCustomer._id),children:"Browse Tasks"})}),(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)("a",{href:"/data-engine?project=".concat(i._id,"&spoof=").concat(i.taskCustomer._id),children:"Browse Tasks - Data Engine"})}),c?(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)(j.Z,{href:"/projects/bulk_create_benchmarks?project=".concat(i._id),children:"Bulk Create Benchmarks"})}):null,c?(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)(j.Z,{href:"/benchmarks/recommend?project=".concat(i._id),children:"Recommend Benchmarks"})}):null,c?(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)(j.Z,{href:"/projects/bulk_tag_benchmarks?project=".concat(i._id),children:"Bulk Tag Benchmarks Instruction Items"})}):null,"categorization"===i.taskType?(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)(j.Z,{href:"/projects/categorization_hints?project=".concat(i._id),children:"Categorization Hints"})}):null,"categorization"===i.taskType?(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)(j.Z,{href:"/projects/categorization_thresholds?project=".concat(i._id),children:"Edit Choice-Level Disabling Thresholds"})}):null,c?(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)(j.Z,{href:"/projects/benchmarks?project=".concat(i._id),children:"Balanced Benchmarks"})}):null,(0,t.jsx)(G.Z,{objectId:l,buttons:o,refresh:r,orientation:"row"}),(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(V.zx,{onClick:()=>sendSurgeEmails(i._id.toString(),!0),style:{marginTop:6},children:"Turn surge emails ON"}),(0,t.jsx)(V.zx,{onClick:()=>sendSurgeEmails(i._id.toString(),!1),style:{marginTop:6},children:"Turn surge emails OFF"})]}),(0,F.MI)(i.taskType)&&(0,t.jsx)("div",{style:{marginTop:15},children:(0,t.jsx)(j.Z,{href:"/document/quality_batches/project/".concat(i._id),children:"View Quality Audits"})}),(0,q.sW)(i)&&!i.archived&&(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)("a",{href:"/rapid?project=".concat(l,"&spoof=").concat(i.taskCustomer._id),target:"_blank",rel:"noopener noreferrer",children:"View Project in Rapid"})}),(0,q.bd)(i)&&!i.archived&&(0,t.jsx)("div",{className:a.spaceTop,children:(0,t.jsx)("a",{href:"/studio?project=".concat(l,"&spoof=").concat(i.taskCustomer._id),target:"_blank",rel:"noopener noreferrer",children:"View Project in Studio"})}),(0,t.jsxs)("div",{className:a.spaceTop,children:[(0,t.jsx)("h4",{children:"Linked Datasets Lookup:"}),d&&(0,t.jsx)("div",{className:a.datasetsLoading,children:(0,t.jsx)(M.Z,{size:"sm"})}),u&&u.length>0&&(0,t.jsx)("div",{className:a.linkedDatasets,children:u.map((e,i)=>(0,t.jsxs)("div",{className:a.linkedDatasetItem,children:[(0,t.jsx)("strong",{children:e.datasetName})," (",e.userEmail,")",(0,t.jsx)("a",{href:"/corp/lookup/".concat(e.datasetId),target:"_blank",rel:"noopener noreferrer",children:e.datasetId},i)]},i))})]})]})},U=n(541053);let usePayGuardrail=e=>{let i=(0,U.useQuery)(["usePayGuardrail",e],async()=>{try{let i=await (0,u.ZP)(null,"internal/pay/guardrail",{query:{projectId:e}});return i}catch(e){(0,u.cF)(e)}},{cacheTime:3e5});return i};var Q=n(777628),PayGuardRail_PayGuardrailBanner=e=>{let{projectId:i}=e,{data:n,isLoading:s,isSuccess:r}=usePayGuardrail(i);return s||!r||(null==n?void 0:n.payConfigSetupDone)?null:(0,t.jsx)("div",{style:{margin:"10px 0"},children:(0,t.jsx)(f.bZ,{severity:"warning",children:(0,t.jsx)("div",{children:(0,t.jsxs)("span",{children:["It looks like"," ",(0,t.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/corp/qm/queue/".concat(i,"/config#properties.payoutConfigs"),children:"the pay configuration"})," ","for this project is not set up yet. Please fill out"," ",(0,t.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:Q.u,children:"this form"})," ","and our pay team will set it up. For questions, post in"," ",(0,t.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:Q.m,children:"#ops-pay"}),"."]})})})})},J=n(970057),X=n(645181),$=(0,s.memo)(function(e){let{onClose:i,onAccept:n}=e;return(0,t.jsx)(J.u,{open:!0,onClose:i,title:"Try Teddy!",className:"scaleui scale-tailwind",innerClassName:"!overflow-visible",actions:(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-end",children:[(0,t.jsx)(X.zx,{size:"lg",variant:"secondary",onClick:i,children:"Cancel"}),(0,t.jsx)(X.zx,{size:"lg",variant:"primary",onClick:n,children:"Set up a Taxonomy"})]}),children:(0,t.jsx)("div",{className:"flex flex-col gap-4 items-stretch max-w-lg",children:(0,t.jsxs)("div",{className:"leading-6",children:["We've built one place to manage Taxonomy and Instruction versions on new projects like this one, called ",(0,t.jsx)("span",{className:"font-semibold",children:"Teddy"}),". It's an improved NGI:",(0,t.jsxs)("ul",{className:"pl-2 py-2 list-disc list-inside",children:[(0,t.jsx)("li",{children:"Easily backfill Tasks and 
1Subtasks"}),(0,t.jsx)("li",{children:"New Tasks will automatically use the latest Taxonomy"}),(0,t.jsx)("li",{children:"A nice editor prevents you from writing invalid taxonomies"})]}),(0,t.jsxs)("div",{children:["See the"," ",(0,t.jsx)("a",{className:"text-info-700 font-semibold",href:"https://scale.atlassian.net/wiki/spaces/OP/pages/626131048",target:"_blank",rel:"noreferrer noopener",children:"User Guide"})," ","or contact us on ",(0,t.jsx)("span",{className:"font-semibold",children:"#avcv-taxonomy-service"})," if you have any questions!"]})]})})})}),K=n(780125),Y=n(96383),ee=n(321024);let ei=(0,a.ZL)({container:{overflow:"auto",width:"100%"},section:{marginTop:"20px",marginBottom:"30px"},pageWrapper:{display:"flex","flex-direction":"row",width:"100%",height:"100%"},button:{marginBottom:20},callout:{padding:24,borderRadius:8,background:"var(--color-RemoGray01)"}});var qm_QMOverviewPage=e=>{let i,{project:n,user:r,refresh:a}=e,p=ei(),h=(0,K.useRouter)(),j=_.NZ.Overview,[m,v]=s.useState(void 0),[g,f]=s.useState(void 0),[b,k]=(0,c.Z)("AVTaxonomyService.seenTeddyNewProjectDialog",!1),{value:y}=(0,d.Z)(async()=>(0,Y.Fh)(n.id),[]),w=(0,s.useMemo)(()=>{let e=Math.floor((new Date().getTime()-new Date(n.createdAt).getTime())/864e5);return e<14&&ee.On.includes(n.taskType)&&!b&&!1===y},[n,b,y]),{loading:S,error:Z}=(0,d.Z)(async()=>{let[e]=await Promise.all([(0,u.ZP)(null,"corp-api/qm/features/".concat(n.id),{method:"GET"}).catch(e=>e.logError&&e.logError("qm portal overview page"))]);v(e)},[n.id]),{pipelineVersion:N}=h.query,{value:C,loading:P,error:T}=(0,d.Z)(async()=>{let e=await (0,u.ZP)(null,"corp-api/lookup/".concat(n.id),{method:"GET"});return e},[]),R="V3"===N||"V2"!==N&&(null==C?void 0:C.usesPipelineV3),G=R?"V2":"V3";return i=R?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B.Z,{projectId:n.id}),(0,t.jsx)(z.Z,{projectId:n.id})]}):C?(0,t.jsx)(O.Z,{projectId:n.id}):null,(0,t.jsxs)("div",{className:p.pageWrapper,children:[(0,t.jsx)(E.Z,{title:"".concat(n.name," Dashboard")}),(0,t.jsx)("div",{children:(0,t.jsx)(L.Z,{project:n,activeSection:j,setActionItem:f})}),(0,t.jsxs)(I.Z,{actionItem:g,setActionItem:f,user:r,project:n,sectionTitle:j,children:[(0,t.jsx)(PayGuardRail_PayGuardrailBanner,{projectId:n.id}),(0,t.jsxs)("div",{className:p.container,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(x.H2,{children:"Pipeline Snapshot"}),(null==C?void 0:C.usesPipelineV3)&&(0,t.jsxs)("a",{onClick:()=>{h.push({pathname:h.pathname,query:{...h.query,pipelineVersion:G}})},children:[" (Show ","".concat(G),")"]}),i,(0,t.jsx)(D.Z,{projectId:n.id})]}),(0,t.jsxs)("div",{className:p.section,children:[(0,t.jsx)(x.H2,{children:"Project SLA Group"}),(0,t.jsx)(overview_ProjectGroupsSection,{projectId:n.id})]}),(0,t.jsxs)("div",{className:p.section,children:[(0,t.jsx)(x.H2,{children:"Project Features"}),Z&&(0,t.jsx)(l.Z,{error:Z}),S&&(0,t.jsx)(o.Z,{}),!(S||Z)&&(0,t.jsx)(overview_FeaturesSection,{features:m})]}),(0,t.jsx)("div",{className:p.section,children:(0,t.jsx)(H.Z,{projectId:n.id,usesPipelineV3:R})}),(0,t.jsxs)("div",{className:p.section,children:[(0,t.jsx)(x.H2,{children:"Quick Actions"}),C&&(0,t.jsx)(ProjectQuickActions_ProjectQuickActions,{refresh:a,userEmail:r.email,object:C,usesPipelineV3:!!R}),T&&(0,t.jsx)(l.Z,{error:T}),P&&(0,t.jsx)(o.Z,{})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(x.H2,{children:"Original JSON"}),(0,t.jsx)(A.X,{src:C,name:!1,theme:"monokai",iconStyle:"triangle",collapsed:1,collapseStringsAfterLength:120,groupArraysAfterLength:!1,enableClipboard:!0,displayObjectSize:!1,displayDataTypes:!1})]})]}),w&&(0,t.jsx)($,{onClose:()=>k(!0),onAccept:()=>{k(!0),h.push("/corp/qm/queue/".concat(n.id,"/avTaxonomyService"))}})]})]})},en=n(528499);let OverviewNextJsPage=e=>{let[i,n]=(0,s.useState)(0),{project:a,error:c,loading:d}=(0,en.Z)(e.projectId,i);return(0,t.jsxs)(r.Z,{user:e.user,children:[a&&(0,t.jsx)(qm_QMOverviewPage,{user:e.user,project:a,refresh:()=>n(e=>e+1)}),c&&(0,t.jsx)(l.Z,{error:c}),d&&(0,t.jsx)(o.Z,{})]})};OverviewNextJsPage.getInitialProps=e=>{var i;return{projectId:null===(i=e.query)||void 0===i?void 0:i.project,user:e.user}};var et=OverviewNextJsPage},381768:function(e,i,n){"use strict";var t,s,r,a;n.d(i,{V:function(){return s},o:function(){return t}}),(r=t||(t={})).Invalid="invalid",r.Duplicate="duplicate",r.Conflict="conflict",r.Valid="valid",r.Created="created",(a=s||(s={})).MostRecent="most_recent",a.RandomSample="random_sample"}},function(e){e.O(0,[23890,44147,45439,73795,50954,79290,61730,67945,14012,14004,57495,88637,61181,94323,39626,86815,5628,70134,99218,28041,75095,605,54464,21637,67138,70057,99822,17696,72861,51274,84059,8238,18431,27287,16305,23795,46432,52931,61645,51933,10352,45560,35685,12642,82370,47493,87024,48827,64369,88811,93877,58571,39989,73048,75392,51584,13284,9883,76475,1718,32797,75899,85808,54289,46273,99257,40105,21621,23299,15510,68849,46673,24463,89343,13612,68563,92229,91251,81203,1660,64108,26887,74592,12100,23532,40907,57753,49430,94209,98413,57853,22636,60225,82770,17729,13314,34478,83701,69214,37627,11330,27982,92476,18980,19948,4790,6109,5428,16269,80030,84659,47639,1662,37693,54165,83421,49774,92888,40179],function(){return e(e.s=951893)}),_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.