import { d as createAstro, c as createComponent, e as defineStyleVars, m as maybeRenderHead, b as addAttribute, u as unescapeHTML, f as renderSlot, a as renderTemplate, r as renderComponent, F as Fragment } from './astro/server_5mFihzcn.mjs';
/* empty css                         */

const $$Astro = createAstro("https://new.sambekiel.com");
const $$Card = createComponent(($$result, $$props, $$slots) => {
  const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
  Astro2.self = $$Card;
  const { href, title, body, lines, trim, image, className, openInNew } = Astro2.props;
  let content = "";
  trim?.forEach((t) => content = body?.replaceAll(t, "") ?? "");
  const $$definedVars = defineStyleVars([{ lines }]);
  return renderTemplate`${maybeRenderHead()}<div${addAttribute([
    "link-card grid gap-5 w-full h-fit p-5 md:px-8 relative hover:shadow-md hover:scale-105 ",
    className
  ], "class:list")}${addAttribute(title, "title")} data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> ${image && renderTemplate`<div class="max-h-[12rem] md:max-h-[20rem] flex h-fit min-w-[5rem] max-w-[10rem]" data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> <img class="rounded-2xl transition-all duration-500 border border-blue-900/5 w-full h-auto"${addAttribute(image, "src")}${addAttribute(title, "alt")} loading="lazy" data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> </div>`} <div class="grid gap-2 h-full grid-rows-[auto_1fr]" data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> <strong class="title text-balance" data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> ${title} </strong> <div class="balance text-pretty" data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> <div data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}>${unescapeHTML(trim ? content : body)}</div> ${renderSlot($$result, $$slots["default"])} </div> </div> ${href && renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "data-astro-cid-dohjnao5": true, "style": $$definedVars }, { "default": ($$result2) => renderTemplate` <span class="text-right self-end" data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}> &rarr;</span> <a${addAttribute(href, "href")} class="absolute inset-0"${addAttribute(openInNew ? "_blank" : "_self", "target")} data-astro-cid-dohjnao5${addAttribute($$definedVars, "style")}></a> ` })}`} </div> `;
}, "C:/projects/sambekiel_front/src/components/Card.astro", void 0);

export { $$Card as $ };
