"use strict";(globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).push([[863],{21180(e,t,o){o.d(t,{A:()=>a});var r=o(94284),n=o(85848),s=o(95231),l=o(10790);const a=e=>{const{itemData:t,series:o}=e,s=o.data[t.dataIndex];return(0,l.jsxs)(r.A,{sx:{p:2,pb:1},children:[(0,l.jsx)(i,{variant:"body2",color:"text.tertiary",itemColor:s.color,children:s.label}),(0,l.jsx)(n.A,{variant:"h6",children:`${s.value}%`})]})},i=(0,s.I)(n.A,{shouldForwardProp:e=>"itemColor"!==e})`
	position: relative;
	padding-left: 18px;
	&:before {
		content: '';
		position: absolute;
		left: 0;
		top: calc(50% - 5px);
		display: inline-block;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background-color: ${e=>e.itemColor};
	}
`},49574(e,t,o){o.d(t,{default:()=>b});var r=o(50753),n=o(78048),s=o(17925),l=o(78398),a=o(5556),i=o.n(a),c=o(59921),u=o(27723),d=o(21180),p=o(10790);const h=({issueByCategory:e,loading:t,noResultsState:o})=>{const a=(()=>{const n=Object.entries(e||{}).map(([e,t])=>({key:e,title:c.mW[e]||e,count:t||0})).sort((e,t)=>t.count-e.count),s=n.reduce((e,t)=>e+t.count,0),l=n.slice(0,6),a=n.slice(6).reduce((e,t)=>e+t.count,0),i=[...l];return(a>0||n.length>6)&&i.push({key:"other",title:(0,u.__)("Other","pojo-accessibility"),count:a}),t||0===s||o?[{label:"Loading...",value:100,color:r.wc}]:i.map((e,t)=>{const o=s>0?parseFloat((e.count/s*100).toFixed(2)):0,n=[r.bd,r.mw,r.fv,r.d1,r.kd,r.OP,r.te][t]||r.te;return{label:`${e.title}: ${o}%`,value:o,color:n,categoryTitle:e.title,categoryCount:e.count}})})();return(0,p.jsx)(n.A,{sx:{width:200,height:200,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,p.jsx)(s.r,{series:[{data:a,innerRadius:66,outerRadius:80,paddingAngle:0,cornerRadius:0,startAngle:0,endAngle:360,cx:100,cy:100}],slots:{itemContent:d.A},width:200,height:200,slotProps:{legend:{hidden:!0}},sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",[`& .${l.hM.root}`]:{display:"none"}}})})};h.propTypes={issueByCategory:i().shape({altText:i().number,dynamicContent:i().number,formsInputsError:i().number,keyboardAssistiveTech:i().number,pageStructureNav:i().number,tables:i().number,colorContrast:i().number,other:i().number}),loading:i().bool.isRequired};const b=h},69786(e,t,o){o.d(t,{default:()=>h});var r=o(77484),n=o(78048),s=o(85848),l=o(17925),a=o(78398),i=o(5556),c=o.n(i),u=o(21180),d=o(10790);const p=({loading:e,value:t,firstSectorPercentage:o,secondSectorPercentage:i,thirdSectorPercentage:c,noResultsState:p})=>{const h=0===o&&0===i&&0===c;let b=[{label:"A",value:o,color:r.ColorGreen900},{label:"AA",value:i,color:r.ColorGreen500},{label:"AAA",value:c,color:r.ColorGreen200}];return(e||p||h)&&(b=[{label:"No Issues",value:100,color:"#f3f3f4"}]),(0,d.jsxs)(n.A,{sx:{width:120,height:120,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[(0,d.jsx)(l.r,{series:[{data:b,innerRadius:40,outerRadius:52,cx:60,cy:60}],slots:{itemContent:u.A},width:120,height:120,slotProps:{legend:{hidden:!0}},sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",[`& .${a.hM.root}`]:{display:"none"}}}),(0,d.jsx)(n.A,{sx:{position:"absolute",top:"55%",left:"53%",transform:"translate(-50%, -50%)",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,d.jsx)(s.A,{variant:"h4",as:"span",children:t})})]})};p.propTypes={value:c().oneOfType([c().string,c().node]).isRequired,firstSectorPercentage:c().number.isRequired,secondSectorPercentage:c().number,thirdSectorPercentage:c().number,noResultsState:c().bool};const h=p}}]);