1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{c as t,f as n,ht as r,o as i,t as a}from"./jsx-runtime-CPAfoLot.js";import{at as o,x as s}from"./use-i18n-r88EPylT.js";import{t as c}from"./ArrowRight.es-BacWlmUb.js";import{t as l}from"./BookOpen.es-wRuDV0Sp.js";import{t as u}from"./content-language-Crt6wRmb.js";import{t as d}from"./course-cover-Bs_a3YU1.js";import{i as f}from"./layout-Fo7yR68J.js";var p=e(r(),1),m=e(a(),1);function h({courses:e,locale:r}){let a=(0,p.useId)();return(0,m.jsx)(`section`,{"aria-labelledby":a,dir:n[r].dir,lang:n[r].tag,className:`${f} py-10 sm:py-16`,children:(0,m.jsxs)(`div`,{className:`rounded-[2rem] border border-primary/25 bg-brand-soft/40 p-5 sm:p-8`,children:[(0,m.jsxs)(`div`,{className:`flex flex-col items-start justify-between gap-6 lg:flex-row lg:items-end`,children:[(0,m.jsxs)(`div`,{className:`max-w-xl`,children:[(0,m.jsxs)(`p`,{className:`flex items-center gap-2 text-xs font-bold uppercase tracking-[.14em] text-brand-strong`,children:[(0,m.jsx)(l,{size:16,"aria-hidden":`true`}),t(r,`common.resourceCourseRecommendations.aILessonRecommendedCourses`)]}),(0,m.jsx)(`h2`,{id:a,className:`mt-3 product-section-title`,children:t(r,`common.resourceCourseRecommendations.yourNextStepPutAIToWork`)}),(0,m.jsx)(`p`,{className:`mt-3 text-sm leading-7 text-muted-foreground sm:text-base`,children:t(r,`common.resourceCourseRecommendations.goFromUnderstandingAIToGettingThings`)})]}),(0,m.jsxs)(o,{to:i(`/courses`,r),className:s({variant:`raised`,size:`lg`,className:`h-auto min-h-11 max-w-full whitespace-normal py-2 text-center`}),children:[t(r,`common.resourceCourseRecommendations.exploreAllCourses`),(0,m.jsx)(c,{"aria-hidden":`true`,className:`rtl-mirror`})]})]}),e.length>0&&(0,m.jsx)(`div`,{className:`mt-8 grid gap-4 md:grid-cols-3 sm:gap-5`,children:e.map(e=>(0,m.jsxs)(o,{to:i(`/courses/${e.slug}`,r),prefetch:`intent`,className:`product-card product-card-link group flex flex-col overflow-hidden`,children:[(0,m.jsx)(d,{course:e,fit:`contain`,className:`aspect-[16/9] w-full py-5`,sizes:`(min-width: 768px) 330px, calc(100vw - 5rem)`}),(0,m.jsxs)(`div`,{className:`flex flex-1 flex-col p-5`,children:[(0,m.jsx)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:t(r,`common.interactiveLessonCount`,{count:e.lessonCount})}),(0,m.jsx)(`h3`,{dir:`auto`,className:`mt-2 product-card-title`,children:e.title}),(0,m.jsx)(u,{locale:r,availableLocales:e.availableLocales}),(0,m.jsx)(`p`,{className:`mb-5 mt-3 line-clamp-3 text-sm leading-6 text-muted-foreground`,children:e.description}),(0,m.jsxs)(`span`,{className:`mt-auto flex items-center justify-between border-t pt-4 text-sm font-bold text-brand-strong`,children:[t(r,`common.resourceCourseRecommendations.exploreThisCourse`),(0,m.jsx)(c,{"aria-hidden":`true`,className:`rtl-mirror transition motion-safe:group-hover:translate-x-1`})]})]})]},e.id))})]})})}export{h as t};
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.