import{dt as c,dx as p,bx as d,dj as u,dk as g,b3 as x,dl as f,dm as j,j as o,aX as C}from"./react-vendor-xYZnmIII.js";import{T as h}from"./tabs-eeNoRD9t.js";import{y as I,z as b,D as T}from"./ui-components-CQM92IK3.js";import{D as N}from"./layout-DC6VQ8xV.js";import{n as i}from"./index.browser-OxPLOBIU.js";import S from"./exam-update-header-DTNhtrTJ.js";import v from"./attempts-QXW1YBZQ.js";import y from"./basic-CvaWZBL3.js";import E from"./info-MELh8nWh.js";import k from"./media-Dihz6cbm.js";import D from"./pricing-eoyyukrw.js";import z from"./questions-BqHMxSvH.js";import B from"./resources-BIPSbKR1.js";import F from"./seo-CX2fO1C1.js";import L from"./settings-DJjk0UjN.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-5ivIjthu.js";import"./language-C7bQIqs2.js";import"./notification-C3MPMjX2.js";import"./app-logo-BQGZ7CFC.js";import"./route-D0xh7FtZ.js";import"./use-lang-Dg6I_Fym.js";import"./input-error-_LAmvivg.js";import"./loading-button-D7aXR3K4.js";import"./richtor-BECSBxkh.js";import"./table-filter-BQQ7Rmfc.js";import"./debounce-CWHP_ANh.js";import"./table-page-size-CzF8rJAG.js";import"./table-footer-Dfs_f5Wf.js";import"./table-header-CjMHr8CW.js";import"./exam-attempt-review-BwYzw4tD.js";import"./question-status-icon-UMdgxa4M.js";import"./question-type-badge-BwDT6jbG.js";import"./exam-attempt-table-columns-B01116ca.js";import"./combobox-BOClc6J1.js";import"./inertia-FIn3q7f1.js";import"./faq-form-Dw-acbDl.js";import"./outcome-form-BWVr0q8B.js";import"./requirement-form-DnMyFTJ1.js";import"./course-durations-B0f021Xm.js";import"./data-sort-modal-CwRlZIXA.js";import"./delete-modal-h3jQBOO6.js";import"./question-dialog-BWx7J4E6.js";import"./fill-blank-form-DKKh0fyU.js";import"./listening-form-CjTO91Kt.js";import"./chunked-uploader-input-dQEAsxxf.js";import"./matching-form-CujJApPF.js";import"./multiple-choice-form-BYTKU5WP.js";import"./ordering-form-CTVcXGOS.js";import"./short-answer-form-DMhBCeD8.js";import"./resource-form-D8VXwbvl.js";import"./file-metadata-CAFSN-Sn.js";const R=m=>{const{tab:r,exam:n}=m,s=[{id:i(),name:"Questions",slug:"questions",Icon:c,Component:z},{id:i(),name:"Resources",slug:"resources",Icon:p,Component:B},{id:i(),name:"Attempts",slug:"attempts",Icon:p,Component:v},{id:i(),name:"Basic",slug:"basic",Icon:d,Component:y},{id:i(),name:"Pricing",slug:"pricing",Icon:u,Component:D},{id:i(),name:"Settings",slug:"settings",Icon:g,Component:L},{id:i(),name:"Info",slug:"info",Icon:x,Component:E},{id:i(),name:"Media",slug:"media",Icon:f,Component:k},{id:i(),name:"SEO",slug:"seo",Icon:j,Component:F}];return o.jsxs("section",{className:"space-y-8",children:[o.jsx(S,{}),o.jsxs(h,{value:r!=null?r:s[0].slug,className:"grid grid-rows-1 gap-5 md:grid-cols-4",children:[o.jsx("div",{className:"col-span-full md:col-span-1",children:o.jsx(I,{className:"horizontal-tabs-list space-y-1",children:s.map(({id:a,name:e,slug:t,Icon:l})=>o.jsxs(b,{value:t,className:"horizontal-tabs-trigger",onClick:()=>C.get(route("exams.edit",{exam:n.id,tab:t})),children:[o.jsx(l,{className:"h-4 w-4"}),o.jsx("span",{children:e})]},a))})}),o.jsx("div",{className:"col-span-full md:col-span-3",children:s.map(({id:a,slug:e,Component:t})=>o.jsx(T,{value:e,className:"m-0",children:o.jsx(t,{})},a))})]})]})};R.layout=m=>o.jsx(N,{children:m});export{R as default};
