"use client";
import { jsxs as y, jsx as n } from "react/jsx-runtime";
const W = ({ settings: l, meta: a }) => {
  var i, d, s, b, u, m, h, v, N, x, f, k, p, w, j;
  const r = (a == null ? void 0 : a.locale) || "en", c = (d = (i = l.title) == null ? void 0 : i.text) == null ? void 0 : d[r], e = (b = (s = l.subTitle) == null ? void 0 : s.text) == null ? void 0 : b[r], t = (m = (u = l.description) == null ? void 0 : u.text) == null ? void 0 : m[r], o = (v = (h = l.button) == null ? void 0 : h.text) == null ? void 0 : v[r];
  return /* @__PURE__ */ y("div", { className: "banner", children: [
    /* @__PURE__ */ y("div", { className: "content", children: [
      (c == null ? void 0 : c.trim()) !== "" && /* @__PURE__ */ n("div", { className: "sub-title ", children: c }),
      (e == null ? void 0 : e.trim()) !== "" && /* @__PURE__ */ n("div", { className: "title", children: e }),
      (t == null ? void 0 : t.trim()) !== "" && /* @__PURE__ */ n("div", { className: "description", children: t }),
      (o == null ? void 0 : o.trim()) !== "" && /* @__PURE__ */ n("div", { className: "button-wrapper", children: (x = (N = l.button) == null ? void 0 : N.link) != null && x.url ? /* @__PURE__ */ n(
        "a",
        {
          href: (f = l.button) == null ? void 0 : f.link.url,
          target: (p = (k = l.button) == null ? void 0 : k.link) != null && p.newWindow ? "_blank" : void 0,
          rel: (j = (w = l.button) == null ? void 0 : w.link) != null && j.nofollow ? "nofollow" : void 0,
          children: /* @__PURE__ */ n("button", { className: "btn", children: o })
        }
      ) : /* @__PURE__ */ n("button", { className: "btn", children: o }) })
    ] }),
    /* @__PURE__ */ n("div", { className: "overlay" })
  ] });
};
export {
  W as default
};
//# sourceMappingURL=banner.block.js.map
