import{aT as x,j as s,aX as c,cO as m}from"./react-vendor-xYZnmIII.js";import{a as p,B as d,j as n}from"./ui-components-CQM92IK3.js";import f from"./faq-form-DY5Fob9j.js";import j from"./outcome-form-D5yJUfYI.js";import h from"./requirement-form-CrMZ90mb.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./input-error-_LAmvivg.js";import"./loading-button-D7aXR3K4.js";import"./inertia-FIn3q7f1.js";const B=()=>{const{props:a}=x(),{translate:u}=a,{dashboard:o,button:r}=u,{faqs:l,requirements:i,outcomes:t}=a.course;return s.jsxs(p,{className:"space-y-7 p-4 sm:p-6",children:[s.jsxs("div",{className:"flex flex-col justify-between gap-3 md:flex-row",children:[s.jsx("h6",{className:"w-[200px] font-medium",children:o.course_faqs}),s.jsxs("div",{className:"w-full space-y-6",children:[s.jsxs(d,{variant:"outline",className:"w-full",onClick:()=>c.post(route("faqs.store"),{course_id:a.course.id}),children:[s.jsx(m,{}),r.add]}),l==null?void 0:l.map(e=>s.jsx(f,{faq:e},e.id))]})]}),s.jsx(n,{}),s.jsxs("div",{className:"flex flex-col justify-between gap-3 md:flex-row",children:[s.jsx("h6",{className:"w-[200px] font-medium",children:o.requirements}),s.jsxs("div",{className:"w-full space-y-6",children:[s.jsxs(d,{variant:"outline",className:"w-full",onClick:()=>c.post(route("requirements.store"),{course_id:a.course.id}),children:[s.jsx(m,{}),r.add]}),i==null?void 0:i.map(e=>s.jsx(h,{requirement:e},e.id))]})]}),s.jsx(n,{}),s.jsxs("div",{className:"flex flex-col justify-between gap-3 md:flex-row",children:[s.jsx("h6",{className:"w-[200px] font-medium",children:o.outcomes}),s.jsxs("div",{className:"w-full space-y-6",children:[s.jsxs(d,{variant:"outline",className:"w-full",onClick:()=>c.post(route("outcomes.store"),{course_id:a.course.id}),children:[s.jsx(m,{}),r.add]}),t==null?void 0:t.map(e=>s.jsx(j,{outcome:e},e.id))]})]})]})};export{B as default};
