"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const designSystem = require("@choiceform/design-system");
const iconsReact = require("@choiceform/icons-react");
const React = require("react");
const index = require("../../../../i18n/index.cjs");
const PlanningMessageTv = designSystem.tcv({
  slots: {
    root: "before:bg-secondary-background relative flex flex-col gap-2 pl-6 before:absolute before:top-8 before:bottom-0 before:left-2 before:w-0.5 before:content-['']",
    icon: "text-icon-secondary absolute top-0.25 left-0 flex size-5 items-center justify-center",
    title: "text-secondary-foreground text-message"
  }
});
const MessagePlanning = React.memo(function MessagePlanning2(props) {
  const { children, className } = props;
  const planningTitle = index.t("response", "planning-title");
  const content = typeof children === "string" ? children : "";
  const tv = PlanningMessageTv();
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: designSystem.tcx(tv.root(), className), children: [
    /* @__PURE__ */ jsxRuntime.jsx("div", { className: tv.icon(), children: /* @__PURE__ */ jsxRuntime.jsx(iconsReact.FieldTypeSingleSelect, {}) }),
    /* @__PURE__ */ jsxRuntime.jsx("p", { className: tv.title(), children: planningTitle }),
    content && /* @__PURE__ */ jsxRuntime.jsx(designSystem.MdRender, { content })
  ] });
});
exports.MessagePlanning = MessagePlanning;
//# sourceMappingURL=message-planning.cjs.map
