import { e as createAstro, c as createComponent, r as renderComponent, a as renderTemplate, m as maybeRenderHead, u as unescapeHTML } from './astro/server_BfDhyAjM.mjs'; import 'kleur/colors'; import { $ as $$Grid } from './Grid_BMXKJk6W.mjs'; import { d as getBlogPermalink } from './permalinks_BMxSf01e.mjs'; import { d as findLatestPosts } from './blog_J6XM7OAu.mjs'; import { $ as $$WidgetWrapper } from './WidgetWrapper_C6M78dTL.mjs'; import { b as $$Button } from './PageLayout_CDwIBOQs.mjs'; const $$Astro = createAstro("https://www.radio.org.tr"); const $$BlogLatestPosts = createComponent(async ($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$BlogLatestPosts; const { title = await Astro2.slots.render("title"), linkText = "T\xFCm yaz\u0131lar\u0131 g\xF6r\xFCnt\xFCle", linkUrl = getBlogPermalink(), information = await Astro2.slots.render("information"), count = 4, id, isDark = false, classes = {}, bg = await Astro2.slots.render("bg") } = Astro2.props; const posts = await findLatestPosts({ count }) ; return renderTemplate`${renderTemplate`${renderComponent($$result, "WidgetWrapper", $$WidgetWrapper, { "id": id, "isDark": isDark, "containerClass": classes?.container, "bg": bg }, { "default": async ($$result2) => renderTemplate`${maybeRenderHead()}
${title && renderTemplate`

${unescapeHTML(title)}

${linkText && linkUrl && renderTemplate`${renderComponent($$result2, "Button", $$Button, { "variant": "link", "href": linkUrl }, { "default": async ($$result3) => renderTemplate`${" "}${linkText} ยป ` })}`}
`}${information && renderTemplate`

${unescapeHTML(information)}

`}
${renderComponent($$result2, "Grid", $$Grid, { "posts": posts })}` })}` }`; }, "/Users/bugracanata/Developer/[Telsiz]/ARC-Web-Sitesi/src/components/widgets/BlogLatestPosts.astro", void 0); export { $$BlogLatestPosts as $ };