PageSourceSearch

https://static.scale.com/dashboard.scale.com/rrvqttTwFdiikV-VvVU_R…/qualityMetrics-f562294a91d4f780.js

js scale.com collected 2026-09-24 08:47:55 UTC 34,483 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14705],{734031:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/corp/qm/queue/[project]/tasks/[taskId]/qualityMetrics",function(){return n(122223)}])},762754:function(e,t,n){"use strict";n.d(t,{Z:function(){return QM_QMErrorPage}});var r,a,i=n(667488);n(885115);var o=n(695477),s=n.n(o),l=n(462206),c=n(74750),d=n(482770);let u=(0,l.ZL)({pageWrapper:{display:"flex","flex-direction":"row",width:"100%",height:"100%"},sidebar:{marginTop:24,minWidth:300,float:"left"},section:{marginTop:"50px",marginBottom:"30px",flexGrow:2}});var QM_QMSelectProjectPage=()=>{let e=u();return(0,i.jsxs)("div",{className:e.pageWrapper,children:[(0,i.jsx)("div",{className:e.sidebar,children:(0,i.jsx)(d.Z,{})}),(0,i.jsxs)("div",{className:e.section,children:[(0,i.jsx)(c.Z,{title:"Select a project"}),(0,i.jsx)("p",{children:"Please select a project from the left sidebar."})]})]})};let m=(0,l.ZL)({container:{marginTop:40,margin:"0 auto",textAlign:"center"},selectProject:{marginTop:20,textAlign:"left"}});function getErrorMessage(e){var t;return s()(null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.error)?e.response.error:e instanceof Error?e.message:"unknown error"}(r=a||(a={}))[r.InvalidProjectId=0]="InvalidProjectId",r[r.Unknown=1]="Unknown";var QM_QMErrorPage=e=>{let{error:t,title:n,className:r}=e,a=m();return 0===function(e){let t=getErrorMessage(e).split('"');return t&&7===t.length&&"_id"===t[3]?0:1}(t)?(0,i.jsx)(QM_QMSelectProjectPage,{}):(0,i.jsxs)("div",{className:[r,a.container].join(" "),children:[(0,i.jsx)("h1",{children:n||"Sorry there was a problem."}),(0,i.jsx)("div",{children:getErrorMessage(t)})]})}},74750:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(667488),a=n(367915),i=n.n(a),o=n(885115),s=n(245987);let SectionTitle=class SectionTitle extends o.Component{render(){return(0,r.jsxs)("div",{className:"jsx-3d598c44eb364d94 header",children:[(0,r.jsx)("div",{className:"jsx-3d598c44eb364d94 title",children:(0,r.jsxs)(s.H2,{children:[this.props.icon," ",this.props.title]})}),(0,r.jsx)("div",{className:"jsx-3d598c44eb364d94",children:this.props.children}
1),(0,r.jsx)(i(),{id:"3d598c44eb364d94",children:".header.jsx-3d598c44eb364d94{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-bottom:24px;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-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}"})]})}};var l=SectionTitle},285708:function(e,t,n){"use strict";var r=n(667488),a=n(885115),i=n(720),o=n(866506),s=n(728219),l=n(238169),c=n(955292),d=n(78631),u=n(610375),m=n(424347);t.Z=e=>((0,a.useEffect)(()=>{(0,m.Qg)("/corp/qm")},[]),(0,a.useEffect)(()=>{(0,m.Zz)()||(0,m.ZP)({version:"rrvqttTwFdiikV-VvVU_R"}),(0,m.w_)(e.user)},[e.user]),(0,r.jsx)(l.Z,{children:(0,r.jsxs)(d.aH,{client:u.X,children:[(0,r.jsx)(c.Z,{title:"Delivery Portal"}),(0,r.jsx)(s.VK,{forceRefresh:!0,basename:"corp",children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(i.Z,{user:e.user,children:e.children})})})]})}))},610182:function(e,t,n){"use strict";n.d(t,{D:function(){return AuditSourceFilter}});var r=n(667488),a=n(885115),i=n(45618),o=n(851180),s=n(283379),l=n(581176),c=n(500627),d=n(139119);let AuditSourceFilter=e=>{let{hideQaaas:t,value:n,disabled:u=!1,onChange:m}=e,[x,h]=(0,a.useState)(!1),[f,{set:p,toggle:g}]=(0,s.v)(n);(0,a.useEffect)(()=>{p(n)},[p,n]);let b=(0,a.useCallback)(()=>{m(f),h(!1)},[m,f]),y=(0,a.useCallback)(()=>{p([])},[p]),v=(0,a.useCallback)(()=>{p(n),h(!1)},[p,n]),j=(0,a.useCallback)(()=>h(!0),[]),w=(0,l.Z)(v,x),k=(0,a.useMemo)(()=>{let e=f.length?d.IM[f[0]]:"Audit Source";return(0,r.jsx)(c.Z,{label:e,numResults:f.length})},[f]),D=(0,a.useMemo)(()=>"Audit Source: ".concat(f.length?f.map(e=>d.IM[e]).join(", "):"None"),[f]);return t?null:(0,r.jsx)(i.Z,{ref:w,isOpen:x,label:k,disabled:u,active:f.length>0,tooltip:D,onOpen:j,onSave:b,onClear:y,onCancel:v,children:(0,r.jsx)("div",{children:(t?[d.fW.CustomerAudit]:d._i).map(e=>(0,r.jsx)(o.Z,{label:d.IM[e],onChange:()=>g(e),checked:f.includes(e)},e))})})}},851180:function(e,t,n){"use strict";var r=n(667488),a=n(367915),i=n.n(a);n(885115);var o=n(773361);t.Z=e=>{let{checked:t,onChange:n,label:a,info:s}=e;return(0,r.jsxs)("div",{onClick:n,className:"jsx-22cbe6471f247054 checkbox",children:[(0,r.jsx)(o.Z,{checked:t,style:{margin:"3px 12px 0 0"},readOnly:!0}),(0,r.jsx)("div",{className:"jsx-22cbe6471f247054 label",children:a}),s&&(0,r.jsx)("div",{className:"jsx-22cbe6471f247054 info",children:s}),(0,r.jsx)(i(),{id:"22cbe6471f247054",children:".checkbox.jsx-22cbe6471f247054{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;margin:0 0 12px;cursor:pointer}.checkbox.jsx-22cbe6471f247054 .label.jsx-22cbe6471f247054{color:#000;line-height:20px;white-space:nowrap;overflow:hidden;font-size:14px;max-width:200px;-o-text-overflow:ellipsis;text-overflow:ellipsis}.checkbox.jsx-22cbe6471f247054 .info.jsx-22cbe6471f247054{font-size:11px;color:#808080;margin-left:8px;line-height:22px}"})]})}},45618:function(e,t,n){"use strict";var r=n(667488),a=n(367915),i=n.n(a),o=n(885115),s=n(661869),l=n.n(s),c=n(924966),d=n(245987);t.Z=o.forwardRef((e,t)=>{let{isOpen:n,label:a,tooltip:o,active:s=!1,disabled:u=!1,ddStyle:m={},btnStyle:x={},children:h,onSave:f,onOpen:p,onClear:g,onCancel:b}=e,y=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:m,className:"jsx-11c0165055b76723 dropdown",children:[(0,r.jsx)("div",{className:"jsx-11c0165055b76723 content",children:h}),(0,r.jsxs)("div",{style:x,className:"jsx-11c0165055b76723 buttons",children:[f&&(0,r.jsx)(d.Av,{type:"primary",onClick:f,children:"Save"}),g&&(0,r.jsx)(d.Av,{onClick:g,children:"Clear"}),b&&(0,r.jsx)(d.Av,{onClick:b,children:"Cancel"})]})]}),(0,r.jsx)(i(),{id:"11c0165055b76723",children:".dropdown.jsx-11c0165055b76723{left:0;z-index:9;top:38px;padding:12px;position:absolute;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;background:#f8f8f8;-webkit-box-shadow:0px 0px 16px rgba(0,0,0,.1),0px 2px 4px rgba(0,0,0,.1);-moz-box-shadow:0px 0px 16px rgba(0,0,0,.1),0px 2px 4px rgba(0,0,0,.1);box-shadow:0px 0px 16px rgba(0,0,0,.1),0px 2px 4px rgba(0,0,0,.1)}.buttons.jsx-11c0165055b76723{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding-top:12px;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-top:1px solid#e6e6e6}.content.jsx-11c0165055b76723{max-height:400px;overflow:auto}"})]});return(0,r.jsxs)("div",{ref:t,className:"jsx-bd332316085eb527 filter",children:[(0,r.jsx)(d.u,{title:o,placement:"top",arrow:!0,children:(0,r.jsxs)("div",{style:{color:s||n?"#3890f9":"#000000"},onClick:p,className:"jsx-bd332316085eb527 "+(l()("select",{disabled:u})||""),children:[(0,r.jsx)("div",{className:"jsx-bd332316085eb527 label",children:a}),(0,r.jsx)("div",{style:{color:n?"#3890f9":"#000000"},className:"jsx-bd332316085eb527 caret",children:(0,r.jsx)(c.GN,{icon:"caret-down",style:{fontSize:16}})})]})}),!u&&n?y:null,(0,r.jsx)(i(),{id:"bd332316085eb527",children:".filter.jsx-bd332316085eb527{curs
1or:pointer;padding:6px 16px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;position:relative;margin-right:16px;background:#f8f8f8;min-width:0}.select.jsx-bd332316085eb527{font-size:14px;line-height:20px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.select.disabled.jsx-bd332316085eb527{color:#808080!important}.select.jsx-bd332316085eb527 .label.jsx-bd332316085eb527{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;min-width:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.caret.jsx-bd332316085eb527{margin-left:10px;min-width:10px}"})]})})},500627:function(e,t,n){"use strict";var r=n(667488),a=n(367915),i=n.n(a);n(885115),t.Z=e=>{let{label:t,numResults:n,maxWidth:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{style:{maxWidth:a},className:"jsx-d8dc38c746209262 label",children:t}),n&&n>1?(0,r.jsxs)("span",{className:"jsx-d8dc38c746209262 counter",children:["+",n]}):null,(0,r.jsx)(i(),{id:"d8dc38c746209262",children:".label.jsx-d8dc38c746209262{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.counter.jsx-d8dc38c746209262{margin-left:5px}"})]})}},352730:function(e,t,n){"use strict";n.d(t,{x:function(){return ProTaskMetricsOverview}});var r=n(667488),a=n(885115),i=n(434230),o=n(245987),s=n(287009),l=n(747910),c=n.n(l),d=n(541053),u=n(217729),m=n(662275);let useAnnotationQuality=e=>{let{queryParams:t,...n}=(0,m.t)(e),r=(0,d.useQuery)(["project-annotation-quality",t],()=>u.Z.stats.getLabelQuality(t),{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,refetchIntervalInBackground:!1});return{data:r.data||[],isLoading:r.isLoading,...n}};var x=n(472807),h=n(61316),f=n(603107),p=n(661869),g=n.n(p);let b=Object.freeze(["#C88BC4","#6B80D2","#86BFF2"]),y=Object.freeze(["#FFC107","#03A9F4","#6B7280","#E53935","#F7883C","#479E6A","#5141FF","#00BFA5","#DD45D3","#D1AAD7"]),v=a.memo(function(e){var t;let{data:n,isLoading:i}=useAnnotationQuality(e),o=n.dataGroupedByWeek||[],{title:s,yAxisLabel:l,infoTooltip:d}="missing"===(t=e.errorTypeDetails)?{title:"Detection Recall Errors by Class",yAxisLabel:"Error Count",infoTooltip:"Total Detection Recall errors found by Taxonomy Class of the annotation. Detection Recall errors occur when an annotation that should be present was missed."}:"extraneous"===t?{title:"Detection Precision Errors by Class",yAxisLabel:"Error Count",infoTooltip:"Total Detection Precision errors found by Taxonomy Class of the annotation. Detection Precision errors occur when an annotation that should not be there was mistakenly included."}:"geometry"===t?{title:"Annotation Precision - Geometry Errors ",yAxisLabel:"Error Count",infoTooltip:"Geometry errors found by Taxonomy Class of the annotation. A Geometry error occurs when the geometry of an annotation is incorrect."}:"label"===t?{title:"Annotation Precision - Label Errors",yAxisLabel:"Error Count",infoTooltip:"Label errors found by Taxonomy Class of the annotation. A Label error occurs when an annotation is labeled with the incorrect Taxonomy Class."}:"attribute"===t?{title:"Annotation Precision - Attribute Errors",yAxisLabel:"Error Count",infoTooltip:"Attribute errors found by Taxonomy Class of the annotation. An Attribute error occurs when one or more attribute(s) that should be linked to an annotation are incorrect."}:{title:"",yAxisLabel:"",infoTooltip:""},[u,m]=(0,a.useState)([]),p=j(),checkboxOnChange=e=>{let t=e.target.name;m(e=>c().cloneDeep(e).map(e=>(e.name===t&&(e.checked=!e.checked),e)))},[v,w]=(0,a.useState)({id:f.Z(),checked:!0,name:"Select All",label:"Select All",onChange:()=>{w(e=>(e.checked=!e.checked,m(t=>c().cloneDeep(t).map(t=>(t.checked=e.checked,t))),e))}}),k=(0,a.useCallback)(()=>{let e={},t=n.uniqueLabels;return t.forEach((n,r)=>{e[n]=t.length<=3?b[r]:y[r%y.length]}),e},[n]);(0,a.useEffect)(()=>{if(i)return;let e=k();m(n.uniqueLabels.map(t=>({id:f.Z(),label:t,name:t,checked:!0,onChange:checkboxOnChange,color:e[t]})))},[i,n,k]);let D=(0,a.useCallback)(()=>{let e=n.uniqueLabels;return c().fromPairs(c().map(e,(t,n)=>[t,e.length<=3?b[n]:y[n%y.length]]))},[n]);return(0,r.jsxs)("div",{className:p.layout,children:[(0,r.jsx)("div",{className:p.metricCard,children:(0,r.jsx)(x.i,{label:s,description:"",isLoading:i,type:"bar",chartProps:{stacked:!0,data:(()=>{let e=c().cloneDeep(o),t=e.map(e=>(e.data=e.data.filter((e,t)=>
1!u[t]||u[t].checked),e));return c().map(t,e=>({...c().reduce(e.data,(e,t)=>({...e,[t.label]:t.count}),{}),name:e.formatted_completed_week}))})(),xAxisLabel:"Week of Task Completion",yAxisLabel:l,colors:D()},legend:[],infoTooltip:d})}),!i&&(0,r.jsx)("div",{className:g()("scaleui scale-theme",p.filterGroup),children:(0,r.jsx)(h.e,{checkboxOptions:u,masterCheckboxOptions:v,title:"TAXONOMY CLASSES"})})]})}),j=(0,i.ZL)(()=>({layout:{display:"flex",flexDirection:"row"},metricCard:{flex:1},filterGroup:{maxWidth:"225px"}}));var w=n(380327),k=n(526687),D=n(722817);let C=a.memo(function(e){let{title:t,isLoading:n,graphCoords:a,selectedBatches:o,startDate:l,setStartDate:c,endDate:d,setEndDate:u}=e,m=M();return(0,r.jsxs)("div",{className:m.taskThroughputCard,children:[(0,r.jsxs)("div",{className:m.header,children:[(0,r.jsx)(s.ZT,{variant:"h4",children:"".concat(t," ").concat(o.length>0?" by Batch":"")}),c&&u&&(0,r.jsx)("div",{className:m.dateFilter,children:(0,r.jsx)(D.Z,{startDate:l,endDate:d,setStartDate:c,setEndDate:u})})]}),n?(0,r.jsx)("div",{className:m.loaderWrapper,children:(0,r.jsx)(s.D8,{})}):(0,r.jsx)("div",{className:m.content,children:(0,r.jsx)("div",{className:m.graph,children:(0,r.jsx)(k.X,{data:[{name:"",type:"bar",x:a.x,y:a.y,hovertemplate:"%{x} - %{y:.2f}%",marker:{color:i.ZP.palette.primary.main}}],layout:{barmode:"stack",showlegend:!1,height:210,plot_bgcolor:i.ZP.colors.gray01,paper_bgcolor:i.ZP.colors.gray01,margin:{l:0,r:0,t:0},uirevision:"true",yaxis:{showgrid:!1},xaxis:{showgrid:!1}},config:{displayModeBar:!1,responsive:!0},useResizeHandler:!0,style:{width:"100%",height:"100%"}})})})]})}),M=(0,i.ZL)(e=>({taskThroughputCard:{padding:e.spacing(1)},header:{marginBottom:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between"},dateFilter:{color:e.palette.primary.main,display:"flex",alignItems:"center"},loaderWrapper:{margin:e.spacing(10),display:"flex",alignItems:"center",justifyContent:"center"},content:{display:"flex",flexDirection:"column"},subheader:{display:"flex",gap:e.spacing(3)},itemLabel:{display:"flex",alignItems:"center"},infoIcon:{marginLeft:e.spacing(1),color:e.colors.gray50},itemValue:{marginLeft:e.spacing(.5)},graph:{backgroundColor:e.colors.gray01,borderRadius:e.borderRadius,padding:e.spacing(1),marginTop:e.spacing(2)},graphDates:{display:"flex",justifyContent:"space-between"}})),useAttributeQuality=e=>{let{queryParams:t,...n}=(0,m.t)(e),r=(0,d.useQuery)(["project-attribute-quality",t],()=>u.Z.stats.getAttributesQuality(t),{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,refetchIntervalInBackground:!1});return{data:r.data||[],isLoading:r.isLoading,...n}},S=a.memo(function(e){let{data:t,isLoading:n,startDate:i,endDate:o,setStartDate:s,setEndDate:l}=useAttributeQuality(e),c=(0,a.useMemo)(()=>{let{x:e,y:n}=(0,w.r7)(t,"error_type_details","error_rate",!1);return{x:e,y:n.map(e=>100*e)}},[t]);return(0,r.jsx)(C,{title:"Error Rate by Attribute",selectedBatches:e.selectedBatches,isLoading:n,graphCoords:c,startDate:i,endDate:o,setStartDate:s,setEndDate:l})}),useErrorTypeQuality=e=>{let{queryParams:t,...n}=(0,m.t)(e),r=(0,d.useQuery)(["project-error-type-quality",t],()=>u.Z.stats.getErrorTypeQuality(t),{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,refetchIntervalInBackground:!1});return{data:r.data||[],isLoading:r.isLoading,...n}},T=a.memo(function(e){let{data:t,isLoading:n,startDate:i,endDate:o,setStartDate:s,setEndDate:l}=useErrorTypeQuality(e),c=(0,a.useMemo)(()=>{let{x:e,y:n}=(0,w.r7)(t,"error_type_details","error_rate",!1);return{x:e,y:n.map(e=>100*e)}},[t]);return(0,r.jsx)(C,{title:"Error Rate by Category",selectedBatches:e.selectedBatches,isLoading:n,graphCoords:c,startDate:i,endDate:o,setStartDate:s,setEndDate:l})});var N=n(207060),Z=n(500733),A=n(610182),L=n(971454),E=n(139119);let ProTaskMetricsOverview=e=>{let{taskId:t}=e,n=_(),[i,l]=(0,a.useState)(E._i),{data:c,isLoading:d,startDate:u,setStartDate:m,endDate:x,setEndDate:h}=(0,N.J)({auditSources:i,projectId:void 0,taskId:t,selectedBatches:[]}),f=(0,a.useMemo)(()=>100*c.map(e=>e.detection_precision).reduce((e,t)=>
1e+t,0)/c.length,[c]),p=(0,a.useMemo)(()=>100*c.map(e=>e.detection_recall).reduce((e,t)=>e+t,0)/c.length,[c]),g=(0,a.useMemo)(()=>100*c.map(e=>e.annotation_precision).reduce((e,t)=>e+t,0)/c.length,[c]);return(0,r.jsx)("div",{className:n.container,children:(0,r.jsxs)(L.Z,{spacing:2,children:[(0,r.jsxs)("div",{className:n.header,children:[(0,r.jsxs)(o.H2,{children:["Task ",t," Quality Metrics"]}),(0,r.jsxs)("div",{className:n.filters,children:[(0,r.jsx)(A.D,{value:i,onChange:l}),(0,r.jsx)(D.Z,{startDate:u,endDate:x,setStartDate:m,setEndDate:h})]})]}),d?(0,r.jsx)("div",{className:n.loaderWrapper,children:(0,r.jsx)(s.D8,{})}):(0,r.jsxs)("div",{className:n.row,children:[(0,r.jsx)(s.Zb,{className:n.card,style:{maxWidth:"33%"},children:(0,r.jsxs)("div",{className:n.subheader,children:[(0,r.jsxs)("div",{className:n.itemLabel,children:[(0,r.jsx)(Z.Z,{}),(0,r.jsx)(s.ZT,{children:"Average Detection Recall"})]}),(0,r.jsxs)(s.ZT,{variant:"h4",className:n.itemValue,children:[p.toFixed(0),"%"]})]})}),(0,r.jsx)(s.Zb,{className:n.card,style:{maxWidth:"33%"},children:(0,r.jsxs)("div",{className:n.subheader,children:[(0,r.jsxs)("div",{className:n.itemLabel,children:[(0,r.jsx)(Z.Z,{}),(0,r.jsx)(s.ZT,{children:"Average Detection Precision"})]}),(0,r.jsxs)(s.ZT,{variant:"h4",className:n.itemValue,children:[f.toFixed(0),"%"]})]})}),(0,r.jsx)(s.Zb,{className:n.card,style:{maxWidth:"33%"},children:(0,r.jsxs)("div",{className:n.subheader,children:[(0,r.jsxs)("div",{className:n.itemLabel,children:[(0,r.jsx)(Z.Z,{}),(0,r.jsx)(s.ZT,{children:"Average Annotation Precision"})]}),(0,r.jsxs)(s.ZT,{variant:"h4",className:n.itemValue,children:[g.toFixed(0),"%"]})]})})]}),(0,r.jsxs)("div",{className:n.row,children:[(0,r.jsx)(s.Zb,{className:n.card,style:{maxWidth:"50%"},children:(0,r.jsx)(v,{taskId:t,selectedBatches:[],auditSources:i})}),(0,r.jsx)(s.Zb,{className:n.card,style:{maxWidth:"50%"},children:(0,r.jsx)(T,{taskId:t,selectedBatches:[],auditSources:i})}),(0,r.jsx)(s.Zb,{className:n.card,style:{maxWidth:"50%"},children:(0,r.jsx)(S,{taskId:t,selectedBatches:[],auditSources:i})})]})]})})},_=(0,i.ZL)(e=>({container:{width:"100%",maxWidth:"1440px",margin:"0 auto",padding:e.spacing(3),boxSizing:"border-box",flexWrap:"wrap",gap:e.spacing(2)},section:{display:"flex",flexDirection:"column",gap:"".concat(e.spacing(2),"px"),flex:"1 1 420px","& > *":{overflow:"hidden"},marginTop:e.spacing(2)},row:{display:"flex",flexDirection:"row",gap:"".concat(e.spacing(2),"px"),padding:"2px"},card:{padding:e.spacing(2),flex:1,minWidth:e.spacing(52),maxHeight:e.spacing(52),overflow:"auto"},loaderWrapper:{margin:e.spacing(18),display:"flex",alignItems:"center",justifyContent:"center"},subheader:{display:"flex",gap:e.spacing(3)},header:{marginBottom:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between"},filters:{color:e.palette.primary.main,display:"flex",alignItems:"center"},filterLabel:{fontWeight:"bold",color:"grey",fontSize:".6rem",margin:0,textAlign:"center"},itemLabel:{display:"flex",alignItems:"center"},itemValue:{marginLeft:e.spacing(.5)}}))},863908:function(e,t,n){"use strict";var r=n(667488),a=n(885115),i=n(528041),o=n(108222),s=n.n(o),l=n(924966),c=n(434230),d=n(287009);let u=(0,c.ZL)(e=>{var t,n,r;return{label:{margin:e.spacing(0,1)},icon:{marginLeft:e.spacing(.5),display:"inline-block !important"},content:{display:"flex",flexDirection:"column",margin:"-7px 0"},rapidButtonRoot:{...(null===(t=e.rapidButton)||void 0===t?void 0:t.root)||{},padding:"0 !important",minWidth:"fit-content !important"},rapidButtonLabel:null===(n=e.rapidButton)||void 0===n?void 0:n.label,rapidButtonContained:null===(r=e.rapidButton)||void 0===r?void 0:r.contained}});t.Z=e=>{let{label:t,date:n,format:o="YYYY-MM-DD",onChangeDate:c,maxDate:m}=e,x=u(),[h,f]=(0,a.useState)(),p=(0,a.useCallback)(e=>{f(e.currentTarget)},[]),g=(0,a.useCallback)(()=>{f(void 0)},[]),b=(0,a.useCallback)(()=>{c(void 0),g()},[c,g]),y=(0,a.useCallback)(e=>{c(e),g()},[g,c]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.zx,{onClick:p,classes:{root:x.rapidButtonRoot,label:x.rapidButtonLabel,contained:x.rapidButtonContained}
1,color:"primary",children:n?s()(n).format(o):(0,r.jsxs)("div",{className:x.label,children:[t," ",(0,r.jsx)(l.GN,{icon:"chevron-down",className:x.icon})]})}),(0,r.jsx)(d.v2,{id:"simple-menu",anchorEl:h,keepMounted:!0,open:!!h,onClose:g,getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,r.jsxs)("div",{className:x.content,children:[(0,r.jsx)(i.Z,{inline:!0,selected:n,onChange:y,maxDate:m}),(0,r.jsx)(d.zx,{onClick:b,color:"primary",classes:{root:x.rapidButtonRoot,label:x.rapidButtonLabel,contained:x.rapidButtonContained},children:"Clear selection"})]})})]})}},722817:function(e,t,n){"use strict";var r=n(667488);n(885115);var a=n(108222),i=n.n(a),o=n(924966),s=n(434230),l=n(287009),c=n(863908),d=n(484589);let u=(0,s.ZL)(e=>({dateFilter:{color:e.palette.primary.main,flexDirection:"row",display:"flex",gap:e.spacing(.5),alignItems:"center"},tooltip:{cursor:"pointer"}}));t.Z=e=>{let{startDate:t,endDate:n,setStartDate:a,setEndDate:s,maxNumDays:m,format:x}=e,h=u(),f=null!=m?m:60,handleStartDate=e=>{e&&n&&e>n||(n&&e&&i().duration(n.diff(e)).asDays()>f&&s(i()(e).add(f,"days").startOf("day")),a(e))},handleEndDate=e=>{e&&t&&e<t||(t&&e&&i().duration(e.diff(t)).asDays()>f&&a(i()(e).subtract(f,"days").startOf("day")),s(e))};return(0,r.jsxs)("div",{className:h.dateFilter,children:[(0,r.jsx)(o.GN,{icon:"calendar"}),(0,r.jsx)(c.Z,{label:"Select",date:t,onChangeDate:e=>handleStartDate(e),format:x||"MMM D"}),(0,r.jsx)(l.ZT,{color:"primary",children:"-"}),(0,r.jsx)(c.Z,{label:"Select",date:n,onChangeDate:e=>handleEndDate(e),format:x||"MMM D",maxDate:i()(t).add(f,"days").startOf("day")}),(0,r.jsx)(d.Z,{title:"Maximum end date must be within ".concat(f," days of selected start date"),className:h.tooltip,children:(0,r.jsx)("div",{children:(0,r.jsx)(o.GN,{icon:"info-circle"})})})]})}},207060:function(e,t,n){"use strict";n.d(t,{J:function(){return usePrecisionRecallQuality}});var r=n(541053),a=n(217729),i=n(662275);let usePrecisionRecallQuality=e=>{let{queryParams:t,...n}=(0,i.t)(e),o=(0,r.useQuery)(["project-precision-recall-quality",t],()=>a.Z.stats.getPrecisionRecallQuality(t),{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,refetchIntervalInBackground:!1});return{data:o.data||[],isLoading:o.isLoading,...n}}},662275:function(e,t,n){"use strict";n.d(t,{t:function(){return useQualityParams}});var r=n(885115),a=n(404407),i=n(108222),o=n.n(i),s=n(712864);let useQualityParams=e=>{let{projectId:t,taskId:n,selectedBatches:i,auditSources:l,selectedDateFrom:c,selectedDateTo:d,errorTypeDetails:u}=e,m=(0,r.useContext)(a.l),[x,h]=(0,r.useState)(()=>o()().subtract(s.$R.L30,"days").startOf("day")),[f,p]=(0,r.useState)(()=>o()()),g=null!=c?c:m.active?m.startDate:x,b=null!=d?d:m.active?m.endDate:f,y=r.useMemo(()=>({projectId:t,taskId:n,batchIds:i,auditSources:l,startTime:(g||o()()).format("YYYY-MM-DD"),endTime:(b||o()()).format("YYYY-MM-DD"),errorTypeDetails:u}),[n,i,l,b,t,g,c,d,u]);return{queryParams:y,startDate:g,endDate:b,setStartDate:c?void 0:m.active?m.setStartDate:h,setEndDate:d?void 0:m.active?m.setEndDate:p}}},380327:function(e,t,n){"use strict";n.d(t,{G4:function(){return populateHistogram},N$:function(){return populateWeek},PG:function(){return populateDay},an:function(){return getCoordsSmoothenedWithFullDate},fp:function(){return getMetricStalenessMinutes},ol:function(){return formatMetricData},pN:function(){return humanizeTime},r7:function(){return getCoords},tC:function(){return getHistogramCoords},vf:function(){return formatStalenessMinutes}});var r=n(108222),a=n.n(r),i=n(747910),o=n.n(i),s=n(43267);let humanizeTime=(e,t)=>{let n=a().duration(e,t),r=n.seconds(),i=Math.floor(n.minutes()),o=Math.floor(n.asHours()),s=[];return o&&s.push("".concat(o," hour").concat(o>1?"s":"")),i&&s.push("".concat(i," minute").concat(i>1?"s":"")),r&&!o&&s.push("".concat(r," second").concat(r>1?"s":"")),s.join(", ")},populateHistogram=(e,t,n,r)=>{if(!e.length)return[];let a=o().keyBy(e,"_id");return o().range(t,n+r,r).map(e=>({...a[e.toFixed(1).toString()],_id:e.toFixed(1)===n.toFixed(1)?e.toFixed(1).toString():"".concat(e.toFixed(1),"-").concat((e+r).toFixed(1))}))},populateDay=(e,t,n)=>{if(!e.length)return[];t=t||a()(e[0]._id),n=n||a()(e[e.length-1]._id);let r=o().keyBy(e,"_id"),i=(0,s.fZ)(t,n,"days").map(e=>e.format("MM-DD-YYYY"));return i.map(e=>({...r[e],_id:e}))},populateWeek=(e,t,n)=>{if(!e.length)return[];t=((null==t?void 0:t.clone())||a()(e[0]._id)).weekday(1),n=((null==n?void 0:n.clone())||a()(e[e.length-1]._id)).weekday(1);let r=o().keyBy(e,"_id"),i=(0,s.fZ)(t,n,"weeks").map(e=>e.format("MM-DD-YYYY"));return i.map(e=>({...r[e],_id:e}))},getHistogramCoords=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"count",r=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return e.reduce((e,a)=>{let i=a[t],s=a[n];return r||!o().isNil(s)?{x:[...e.x,i],y:[...e.y,s||0]}:{x:[...e.x],y:[...e.y]}},{x:[],y:[]})},getCoords=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"count",r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];return e.reduce((e,s)=>{let l=r?a()(s[t]).format("MMMM D"):s[t],c=s[n];return i||!o().isNil(c)?{x:[...e.x,l],y:[...e.y,c||0]}:{x:[...e.x],y:[...e.y]}},{x:[],y:[]})},getCoordsSmoothenedWithFullDate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"count",r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=[],o=[];for(let s of e){let e=r?a()(s[t]).format("MM-DD-YYYY"):s[t],l=s[n];l&&(i.push(new Date(e)),o.push(l))}return{x:i,y:o}},getMetricStalenessMinutes=e=>{var t,n;return Math.round((null!==(n=null===(t=e.data[0])||void 0===t?void 0:t.sourceLatencySeconds)&&void 0!==n?n:0)/60)},formatMetricData=(e,t)=>{var n,r;return Object.fromEntries((null!==(r=null==e?void 0:null===(n=e[t])||void 0===n?void 0:n.data)&&void 0!==r?r:[]).map(e=>[o().get(e,["partitionKeys","permission_level"]),e.value.toFixed(2)]))},formatStalenessMinutes=e=>
1o().isNil(e)?"":e<60?"".concat(e," min stale"):e<1440?"".concat(Math.floor(e/60)," hr stale"):e<10080?"".concat(Math.floor(e/1440)," days stale"):"".concat(Math.floor(e/10080)," wks stale")},500733:function(e,t,n){"use strict";var r=n(667488);n(885115);var a=n(428310),i=n(434230);let o=(0,i.ZL)(e=>({icon:{borderRadius:2},small:{height:e.spacing(1.25),width:e.spacing(1.25),margin:e.spacing(.5)},big:{height:e.spacing(2),width:e.spacing(2),margin:e.spacing(1)},primary:{backgroundColor:e.palette.primary.main},secondary:{backgroundColor:"#F8BB06"},tertiary:{backgroundColor:"#00BFA5"},customColor:{backgroundColor:e=>{let{customColor:t}=e;return t}}}));t.Z=e=>{let{color:t="primary",size:n="small",className:i,customColor:s=""}=e,l=o({customColor:s});return(0,r.jsx)("div",{className:(0,a.Z)(i,l.icon,l[n],l[t],s&&l.customColor)})}},404407:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(885115);let a=r.createContext({active:!1,startDate:void 0,endDate:void 0,setStartDate:()=>{},setEndDate:()=>{}})},122223:function(e,t,n){"use strict";n.r(t);var r=n(667488);n(885115);var a=n(285708),i=n(431548),o=n(762754),s=n(528499),l=n(955292),c=n(482770),d=n(352730);let QualityNextJSPage=e=>{let{projectId:t,taskId:n,user:u}=e,{project:m,loading:x,error:h}=(0,s.Z)(t);return(0,r.jsxs)(a.Z,{user:u,children:[m&&(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)(l.Z,{title:"".concat(n," Quality Metrics")}),(0,r.jsx)(c.Z,{project:m}),(0,r.jsx)("div",{style:{flex:1},children:(0,r.jsx)(d.x,{taskId:n})})]}),h&&(0,r.jsx)(o.Z,{error:h}),x&&(0,r.jsx)(i.Z,{})]})};QualityNextJSPage.getInitialProps=e=>{var t,n;return{projectId:null===(t=e.query)||void 0===t?void 0:t.project,taskId:null===(n=e.query)||void 0===n?void 0:n.taskId,user:e.user}},t.default=QualityNextJSPage},283379:function(e,t,n){"use strict";n.d(t,{v:function(){return useToggableList}});var r=n(885115),a=n(747910),i=n.n(a),o=n(258145);function useToggableList(e){let[t,n]=(0,o.Z)(e),a=(0,r.useCallback)(e=>{n.set(i().xor(t,[e]))},[t,n]);return[t,{...n,toggle:a}]}},581176:function(e,t,n){"use strict";var r=n(885115);t.Z=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let listenMousedownOutside=t=>{let r=n.current,hasActionOnClick=e=>!!e.href||e.parentNode&&hasActionOnClick(e.parentNode);r&&(!r.contains(t.target)||hasActionOnClick(t.target))&&e()};return t?document.addEventListener("mousedown",listenMousedownOutside):document.removeEventListener("mousedown",listenMousedownOutside),()=>document.removeEventListener("mousedown",listenMousedownOutside)},[e,t]),n}},526687:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(878135),a=n(967336),i=n.n(a);let o=i()(async()=>{let e=await n.e(1340).then(n.t.bind(n,376239,23));return(0,r.Z)(e)},{loadableGenerated:{webpack:()=>[376239]},ssr:!1})},139119:function(e,t,n){"use strict";var r,a;n.d(t,{IM:function(){return i},_i:function(){return o},fW:function(){return r}}),(a=r||(r={})).CustomerAudit="customer_audit",a.QAAASAudit="qaaas_audit";let i=Object.freeze({[r.CustomerAudit]:"Customer Audit",[r.QAAASAudit]:"Scale Audit"}),o=Object.values(r)},43267:function(e,t,n){"use strict";n.d(t,{Al:function(){return transformDateTimeToPST},JB:function(){return formatMinutes},K0:function(){return formatLocalDateTime},Kq:function(){return formatDateTimeFromISOToLocal},PK:function(){return formatDurationShort},Pl:function(){return formatTimeInWords},Pv:function(){return dateRangeToPST},Vh:function(){return transformDateToPST},Ws:function(){return transformDateTimeFormatPST},bS:function(){return formatTimeHMS},fZ:function(){return dateRange},mr:function(){return formatTime},r6:function(){return c},t6:function(){return a},vk:function(){return validContractDateBounds},yV:function(){return s}});var r,a,i=n(108222);n(687627);var o=n(874358);(r=a||(a={})).full="Full",r.condensed="Condensed",r.condensedTime="Condensed Time";let s=864e5,l="America/Los_Angeles";function transformDateToPST(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="string"==typeof e?new Date(e):e;return o.ou.fromObject({year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?23:0,minute:t?59:0,second:t?59:0,millisecond:t?999:0},{zone:l}).toJSDate()}function transformDateTimeToPST(e){let t="string"==typeof e?new Date(e):e;return o.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:l}).toJSDate()}function transformDateTimeFormatPST(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=i.utc(e).tz(l),o="";switch(t){case a.full:o=r.format("MMM D YYYY, h:mm A");break;case a.condensedTime:o=r.format("h:mm A");break;case a.condensed:default:o=r.format("M/D/YY, h:mm A")}return n?o:"".concat(o," (PST)")}
1function dateRangeToPST(e){return[transformDateToPST(new Date(e[0])),transformDateToPST(new Date(e[1]),!0)]}function dateRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",r=[],a=e.clone();for(;0>=a.diff(t);)r.push(a.clone()),a.add(1,n);return r}function formatDateTimeFromISOToLocal(e,t){return o.ou.fromISO(e instanceof Date?e.toISOString():e,{zone:"local"}).toFormat(t)}function formatLocalDateTime(e){return new Date(e).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"})}function formatTime(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{alwaysShowDays:n=!1,alwaysShowHours:r=!1,alwaysShowMinutes:a=!0,alwaysShowSeconds:i=!1,neverShowSeconds:s=!1}=t,l=o.nL.fromObject({seconds:Math.max(0,e)}).shiftTo("days","hours","minutes","seconds"),c=[];return(l.days>0||n)&&c.push("d'd'"),(l.hours>0||r||l.days>0)&&c.push("h'h'"),(l.minutes>0||a)&&c.push("m'm'"),(l.seconds>0||i)&&!s&&c.push("s's'"),c.length>0?l.toFormat(c.join(" ")):"0m"}function formatTimeHMS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{includeSeconds:n=!0}=t;if(null==e)return n?"--:--:--":"--:--";let r=o.nL.fromObject({seconds:Math.max(0,e)}).normalize();return r.toFormat(n?"hh:mm:ss":"hh:mm")}function formatDurationShort(e){let t=Math.max(0,e),n=Math.floor(t/3600),r=Math.floor(t%3600/60);return n>0?"".concat(n,"h ").concat(r,"m"):"".concat(r,"m ").concat(t%60,"s")}let c={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 n=Math.max(0,Math.floor(t)),r=Math.floor(n/60),a=n%60,i=[];return r>0&&i.push("".concat(r," ").concat(1===r?"hour":"hours")),(a>0||0===r)&&i.push("".concat(a," ").concat(1===a?"minute":"minutes")),i.join(" ")}function formatMinutes(e){if(!e||e<=0)return"--";let t=Math.round(e),n=Math.floor(t/60),r=t%60,a=[];return n>0&&a.push("".concat(n,"h")),(r>0||0===n)&&a.push("".concat(r,"m")),a.join(" ")}function validContractDateBounds(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=i.utc(e).tz(l).startOf("day");return{min:t.clone().subtract(6,"weeks").toDate(),max:t.clone().endOf("day").toDate()}}}},function(e){e.O(0,[23890,44147,45439,50954,99218,28041,75095,605,54464,21637,67138,70057,17696,72861,51274,84059,8238,18431,23795,46432,52931,12642,98703,99257,65160,13447,12100,23532,40907,57753,49430,94209,98413,57853,22636,60225,82770,17729,49774,92888,40179],function(){return e(e.s=734031)}),_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.