1import{r as s,j as i,B as t,bs as e}from"./index-DgSFfepF.js";import{C as o}from"./CourseAccordion-BdgGhQvz.js";import{C as r}from"./CourseDialog-B4Fg4WHG.js";import{u as a}from"./useAdminCourses-DLfYJTiw.js";import"./badge-CwmQuoU-.js";import"./AdminBadge-Dc6XacyD.js";import"./alert-dialog-nDPgWdUf.js";import"./AsyncAlertAction-Dx4IWfYS.js";import"./types-C4n_h4-s.js";import"./dialog-C5Xy-QTM.js";import"./input-S9Ov6r2n.js";import"./textarea-Dve_txhG.js";import"./label-BkIkjyb9.js";import"./form-Dl-NhChv.js";import"./switch-CasfO6or.js";import"./index-CuzUyE2o.js";import"./select-NcL_uuac.js";import"./index-jVOyRz7F.js";import"./useSubtemas-B7jlGc_I.js";import"./AsyncActionButton-BpVqUUq3.js";import"./radio-group-iCppm58U.js";import"./index-Bjiq0J-a.js";import"./progress-C7KmQ9DD.js";import"./checkbox-C8kYPRup.js";import"./useAdminModules-B2arW50Z.js";import"./tabs-D7ezk2-B.js";import"./ThumbnailUpload-0OonNAp1.js";import"./index-CyFFLCha.js";function n(){const[n,m]=s.useState(!1),{createCourse:d}=a();return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"admin-h1",children:"Trilhas"}),i.jsx("p",{className:"admin-subtitle",children:"Cursos com inÃcio, meio e fim para habilidades especÃficas"})]}),i.jsxs(t,{onClick:()=>m(!0),size:"lg",className:"shadow-md",children:[i.jsx(e,{className:"h-5 w-5 mr-2"}),"Nova Trilha"]})]}),i.jsx(o,{contentType:"trilha"}),i.jsx(r,{open:n,onClose:()=>m(!1),onSubmit:s=>{const{send_notification:i,notification_schedule:t,notification_scheduled_at:e,...o}=s,r=i&&"scheduled"===t&&e?new Date(e).toISOString():void 0;d.mutate({courseData:{...o,content_type:"trilha"},sendNotification:i||!1,scheduledAt:r}),m(!1)},loading:d.isPending,defaultContentType:"trilha"})]})}export{n as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.