/*! ratio-ui · design system for knowledge sharing · https://github.com/losol/ratio-ui · (c) 2026 Losol AS · MPL-2.0 */
import { cn } from "../../utils/cn.js";
import { Container } from "../../layout/Container/Container.js";
import "../../layout/Container/index.js";
import { ObfuscatedEmail } from "../ObfuscatedEmail/ObfuscatedEmail.js";
import "../ObfuscatedEmail/index.js";
import "react";
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/core/Footer/Footer.tsx
/**
* Thin `<footer>` shell with the standard background, padding, and
* `Container` wrapper. Compose your own layout inside — see
* `Footer.Classic` for the legacy fixed layout (siteTitle + publisher
* block on the left, children on the right). Subcomponents
* (`Footer.Brand`, `Footer.Content`, …) are planned for a future minor
* release; for now use plain markup.
*/
var FooterRoot = (({ children, className, dark }) => /* @__PURE__ */ jsx("footer", {
	className: cn("p-3 pt-10", dark ? "bg-primary-900 surface-dark dark:border-t dark:border-primary-700" : "bg-overlay-press", className),
	children: /* @__PURE__ */ jsx(Container, { children })
}));
/**
* Pre-2.0 Footer layout — siteTitle and an optional publisher block on
* the left, children stacked next to it via `md:flex md:justify-between`.
*
* Renders the `Footer` shell underneath so wrapper styles (background,
* padding, surface tone, Container) live in exactly one place.
*
* Kept as a backward-compat wrapper for the four `apps/web` layouts and
* `apps/historia` that already shipped with this exact shape. New code
* should use the `<Footer>` shell directly and lay out its own content.
*/
var FooterClassic = ({ siteTitle, publisher, children, className, dark }) => /* @__PURE__ */ jsx(FooterRoot, {
	className,
	dark,
	children: /* @__PURE__ */ jsxs("div", {
		className: "md:flex md:justify-between",
		children: [siteTitle && /* @__PURE__ */ jsxs("div", {
			className: "mb-6 md:mb-0",
			children: [/* @__PURE__ */ jsx("span", {
				className: "self-center text-xl font-semibold whitespace-nowrap",
				children: siteTitle
			}), publisher && /* @__PURE__ */ jsxs("div", {
				className: "mt-2 font-light leading-tight",
				children: [
					/* @__PURE__ */ jsx("p", { children: publisher.name }),
					/* @__PURE__ */ jsx("p", { children: publisher.address }),
					/* @__PURE__ */ jsx("p", { children: publisher.phone }),
					publisher.email && /* @__PURE__ */ jsx(ObfuscatedEmail, {
						email: publisher.email,
						className: "block"
					}),
					publisher.organizationNumber && /* @__PURE__ */ jsxs("p", { children: ["Org.nr. ", publisher.organizationNumber] })
				]
			})]
		}), children && /* @__PURE__ */ jsx("div", { children })]
	})
});
FooterRoot.Classic = FooterClassic;
var Footer = FooterRoot;
//#endregion
export { Footer };

//# sourceMappingURL=Footer.js.map