import{j as t,I as r,h as s}from"./vendor.e6eaca24.js";const a="_icon_127b4_1",c="_noMarginRight_127b4_4",_="_Pending_127b4_7",d="_ConfigurationError_127b4_10",m="_SystemError_127b4_13",l="_CompilationError_127b4_16",g="_Canceled_127b4_19",u="_FileError_127b4_22",E="_RuntimeError_127b4_25",p="_TimeLimitExceeded_127b4_28",b="_MemoryLimitExceeded_127b4_31",C="_OutputLimitExceeded_127b4_34",x="_PartiallyCorrect_127b4_37",h="_WrongAnswer_127b4_40",y="_Accepted_127b4_43",R="_JudgementFailed_127b4_46",L="_Waiting_127b4_49",P="_Preparing_127b4_52",S="_Compiling_127b4_55",f="_Running_127b4_58",A="_Skipped_127b4_61";var n={icon:a,noMarginRight:c,Pending:_,ConfigurationError:d,SystemError:m,CompilationError:l,Canceled:g,FileError:u,RuntimeError:E,TimeLimitExceeded:p,MemoryLimitExceeded:b,OutputLimitExceeded:C,PartiallyCorrect:x,WrongAnswer:h,Accepted:y,JudgementFailed:R,Waiting:L,Preparing:P,Compiling:S,Running:f,Skipped:A};const i={Pending:"hourglass half",ConfigurationError:"code",SystemError:"server",CompilationError:"code",Canceled:"remove",FileError:"file outline",RuntimeError:"bomb",TimeLimitExceeded:"clock",MemoryLimitExceeded:"microchip",OutputLimitExceeded:"print",PartiallyCorrect:"minus",WrongAnswer:"remove",Accepted:"checkmark",JudgementFailed:"server",Waiting:"hourglass half",Preparing:"spinner",Compiling:"spinner",Running:"spinner",Skipped:"fast forward"},F=e=>t("span",{className:"statuscolor "+n[e.status],children:t(r,{className:"statusicon "+n.icon+(e.noMarginRight?" "+n.noMarginRight:""),loading:i[e.status]==="spinner",name:i[e.status]})}),W=e=>{const o=e.statusText||e.status.replace(/([A-Z])/g," $1").trimStart();return s("span",{className:"statuscolor "+n[e.status],children:[t(r,{className:"statusicon "+n.icon,loading:i[e.status]==="spinner",name:i[e.status]}),t("span",{className:"statustext",children:o})]})};export{F as S,W as a};
