"use client";
import { jsx as e, jsxs as r, Fragment as a } from "react/jsx-runtime";
import { InputControl as o } from "../../../components/controls/input.control.js";
import { LinkControl as n } from "../../../components/controls/link.control.js";
import { MediaControl as m } from "../../../components/controls/media.control.js";
import { TextareaControl as c } from "../../../components/controls/textarea.control.js";
import { Accordion as l } from "../../../components/shared/accordion.js";
import { useSettings as d } from "../../../hooks/use-settings.js";
import { SettingsType as t } from "../../../types/index.js";
const B = () => {
  const [i] = d("button.text.{{LOCALE}}", t.BLOCK);
  return /* @__PURE__ */ e(l, { defaultValue: "General", type: "single", collapsible: !0, children: /* @__PURE__ */ r(l.Item, { value: "General", children: [
    /* @__PURE__ */ e(l.Trigger, { className: "p-4", children: "General" }),
    /* @__PURE__ */ r(l.Content, { className: "px-4", children: [
      /* @__PURE__ */ e(
        m,
        {
          label: "Image",
          fieldName: "image.media",
          type: t.BLOCK,
          className: "mt-0"
        }
      ),
      /* @__PURE__ */ e(
        o,
        {
          label: "Subtitle",
          fieldName: "subTitle.text",
          type: t.BLOCK,
          placeholder: "Enter subtitle",
          direction: "col",
          isLocalized: !0
        }
      ),
      /* @__PURE__ */ e(
        o,
        {
          label: "Title",
          fieldName: "title.text",
          type: t.BLOCK,
          placeholder: "Enter title",
          direction: "col",
          isLocalized: !0
        }
      ),
      /* @__PURE__ */ e(
        c,
        {
          label: "Description",
          fieldName: "description.text",
          type: t.BLOCK,
          isLocalized: !0
        }
      ),
      (i == null ? void 0 : i.trim()) !== "" && /* @__PURE__ */ r(a, { children: [
        /* @__PURE__ */ e(
          o,
          {
            label: "Button Text",
            fieldName: "button.text",
            type: t.BLOCK,
            isLocalized: !0
          }
        ),
        /* @__PURE__ */ e(n, { label: "Link", fieldName: "button.link", type: t.BLOCK })
      ] })
    ] })
  ] }) });
};
export {
  B as default
};
//# sourceMappingURL=banner-content.control.js.map
