import { jsx as e } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import y from "../../../../internal/CopyText/CopyText.js";
import i from "../../../../internal/Typography/Typography.js";
import { TypographyVariant as o, TypographyElement as p } from "../../../../internal/Typography/types.js";
import T from "classnames";
import h from "../../../../../core/Context/preact/useCoreContext.js";
const v = ({
  className: n,
  content: r,
  contentClassName: l,
  copyButtonLabel: c,
  isPrimary: t,
  textToCopy: a,
  label: m,
  labelClassName: d
}) => {
  const { i18n: s } = h();
  return /* @__PURE__ */ e("div", { className: n, children: [
    /* @__PURE__ */ e("dt", { className: d, children: /* @__PURE__ */ e(i, { el: p.SPAN, variant: o.CAPTION, children: s.get(m) }) }),
    /* @__PURE__ */ e("dd", { className: T(l, { "adyen-pe-capital-account-details__detail-content--primary": t }), children: a ? /* @__PURE__ */ e(
      y,
      {
        copyButtonAriaLabelKey: c,
        visibleText: r,
        textToCopy: a,
        showCopyTextTooltip: !1,
        type: "Text"
      }
    ) : /* @__PURE__ */ e(
      i,
      {
        el: p.SPAN,
        variant: t ? o.SUBTITLE : o.BODY,
        stronger: t,
        children: r
      }
    ) })
  ] });
};
export {
  v as AccountDetail
};
