import{j as e}from"./react-vendor-xYZnmIII.js";import{Q as a}from"./question-type-badge-BwDT6jbG.js";import{a as o,k as c,g as i,l as n}from"./ui-components-CQM92IK3.js";import d from"./fill-blank-question-baZ6TWY4.js";import p from"./listening-question-QKiiC14w.js";import x from"./matching-question-gqVHPA9S.js";import j from"./mcq-question-B8RmY9P5.js";import u from"./multiple-select-question-xvrwjDlm.js";import f from"./ordering-question-gNfYLgZq.js";import h from"./short-answer-question-CR5pgjs5.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";const L=({question:t,questionNumber:l,answer:r,onAnswerChange:s})=>{const m=()=>{switch(t.question_type){case"multiple_choice":return e.jsx(j,{question:t,answer:r,onAnswerChange:s});case"multiple_select":return e.jsx(u,{question:t,answer:r,onAnswerChange:s});case"matching":return e.jsx(x,{question:t,answer:r,onAnswerChange:s});case"fill_blank":return e.jsx(d,{question:t,answer:r,onAnswerChange:s});case"ordering":return e.jsx(f,{question:t,answer:r,onAnswerChange:s});case"short_answer":return e.jsx(h,{question:t,answer:r,onAnswerChange:s});case"listening":return e.jsx(p,{question:t,answer:r,onAnswerChange:s});default:return e.jsx("div",{className:"rounded-lg bg-yellow-50 p-4 text-center",children:e.jsxs("p",{className:"text-sm text-yellow-800",children:['Question type "',t.question_type,'" is not yet implemented in the interface.']})})}};return e.jsxs(o,{children:[e.jsx(c,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[e.jsxs(i,{variant:"outline",children:["Question ",l]}),e.jsx(a,{type:t.question_type}),e.jsxs(i,{variant:"secondary",children:[t.marks," marks"]})]}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:t.title}),t.description&&e.jsx("div",{className:"prose prose-sm mt-2 max-w-none",dangerouslySetInnerHTML:{__html:t.description}})]})})}),e.jsx(n,{children:m()})]})};export{L as default};
