"use strict";(globalThis.webpackChunkacadlix=globalThis.webpackChunkacadlix||[]).push([["admin_quiz_front_dashboard_quiz_result_section_question_status_section"],{"./src/front/dashboard/quiz/normalMode/normal-quiz-section/QuestionStatusSection.js":(a,s,e)=>{e.r(s),e.d(s,{default:()=>c});var t=e("./node_modules/@mui/material/esm/Box/Box.js"),l=e("./node_modules/@mui/material/esm/Chip/Chip.js"),i=(e("react"),e("@wordpress/i18n")),o=e("react/jsx-runtime");const c=a=>{const s=(()=>{const s=a?.watch(`questions.${a?.index}.result.solved_count`),e=a?.watch(`questions.${a?.index}.result.correct_count`),t=a?.watch(`questions.${a?.index}.result.is_evaluated`),l=a?.watch(`questions.${a?.index}.answer_type`);return s?"assessment"===l?t?{label:(0,i.__)("Evaluated","acadlix"),color:"info",className:"acadlix-normal-quiz-question-status-evaluated"}:{label:(0,i.__)("Pending","acadlix"),color:"warning",className:"acadlix-normal-quiz-question-status-pending"}:e?{label:(0,i.__)("Correct","acadlix"),color:"success",className:"acadlix-normal-quiz-question-status-correct"}:{label:(0,i.__)("Incorrect","acadlix"),color:"error",className:"acadlix-normal-quiz-question-status-incorrect"}:{label:(0,i.__)("Skipped","acadlix"),color:"default",className:"acadlix-normal-quiz-question-status-skipped"}})();return(0,o.jsx)(t.A,{sx:{display:a?.watch("view_answer")||a?.watch(`questions.${a?.index}.check`)?"":"none"},className:"acadlix-normal-quiz-question-status-section",children:(0,o.jsx)(l.A,{label:s.label,color:s.color,className:s.className})})}}}]);