import { h as e } from "./chunk.BlbRoQQ3.js";
import { a4 as t } from "./use-page-data.Cb2SuuwJ.js";
import "./chunk-LSPN22SI.D75E3zS-.js";
import { c as n } from "./twind.BiM9xcCd.js";
import { b as r } from "./jsx-runtime.DF4K5VCp.js";
import "./chroma-js.Dcir27CH.js";
import "./color-system.Dp99zR0T.js";
import "./react.BZZIbN3T.js";
import "./schema-resolver.p7B_pu36.js";
import { b as i } from "./use-brick-style.DDPl-_C1.js";
import "./use-brick-manifest.Iv9SG-7-.js";
import { b as a } from "./BrickRoot.DbISziyH.js";
var o = /* @__PURE__ */ e(r());
function s({ brick: e, editable: r }) {
	let s = e.props, c = i(e), l = Object.values(c), u = r ? (e) => {
		e.preventDefault();
	} : void 0;
	return /* @__PURE__ */ (0, o.jsxs)(a, {
		brick: e,
		editable: r,
		manifest: t,
		"data-no-section-padding": !0,
		as: "footer",
		className: n("grid gap-6 @desktop:grid-flow-col @mobile:grid-cols-2 @desktop:auto-cols-fr ", l),
		children: [s.logo && /* @__PURE__ */ (0, o.jsx)("div", {
			className: n("items-center @desktop:(mr-10 col-span-1) @mobile:(flex col-start-1 col-span-2 justify-center)"),
			"data-brick-group": "brand",
			children: /* @__PURE__ */ (0, o.jsx)("img", {
				src: s.logo.src,
				alt: s.logo.alt ?? "Logo",
				className: "h-full max-h-[80px] w-auto"
			})
		}), s.linksSections?.map((e, t) => /* @__PURE__ */ (0, o.jsxs)("nav", {
			className: n("flex flex-col @mobile:gap-3 @desktop:gap-2"),
			children: [/* @__PURE__ */ (0, o.jsx)("h6", {
				className: n("uppercase font-bold opacity-80"),
				children: e.sectionTitle
			}), e.links?.map((e, t) => /* @__PURE__ */ (0, o.jsx)("a", {
				href: e.url,
				onClick: u,
				className: n("link link-hover max-w-fit"),
				children: e.title
			}, t))]
		}, t))]
	});
}
export { s as default };

//# sourceMappingURL=footer.Cc5GVFZD.js.map