import { n as f, C as v } from "./lib-cortex-element.CVMmyPMC.js";
import { c } from "./component.styles.CRO4Odto.js";
import { c as d } from "./custom-element.L4WJXn1j.js";
import { i as x, x as i } from "./lit-element.jLBm65_O.js";
var t = /* @__PURE__ */ ((e) => (e.Body1 = "body1", e.Body2 = "body2", e.Body3 = "body3", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Small = "small", e))(t || {});
const m = x`:host{--color:inherit;--font-family:var(--cx-font-sans);--font-style:normal;line-height:var(--cx-line-height-large);display:block}:host::part(base){-webkit-font-smoothing:antialiased}.heading,.body,.small{color:var(--color);font-weight:var(--cx-font-weight);font-family:var(--font-family);font-style:var(--font-style);letter-spacing:var(--letter-spacing,var(--cx-letter-spacing-normal));margin-block:0}.heading-1{font-size:var(--font-size,var(--cx-font-size-3x-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-2{font-size:var(--font-size,var(--cx-font-size-2x-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-3{font-size:var(--font-size,var(--cx-font-size-x-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-2x-large))}.heading-4{font-size:var(--font-size,var(--cx-font-size-large));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-x-large))}.heading-5{font-size:var(--font-size,var(--cx-font-size-medium));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-large))}.heading-6{font-size:var(--font-size,var(--cx-font-size-small));font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-medium))}.body-1{font-size:var(--font-size,var(--cx-font-size-medium-large));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-x-large))}.body-2{font-size:var(--font-size,var(--cx-font-size-medium));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-large))}.body-3{font-size:var(--font-size,var(--cx-font-size-small));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-medium))}.small{font-size:var(--font-size,var(--cx-font-size-x-small));font-weight:var(--font-weight,var(--cx-font-weight-regular));line-height:var(--line-height,var(--cx-line-height-small))}`;
var b = Object.defineProperty, w = Object.getOwnPropertyDescriptor, g = (e, n, o, r) => {
  for (var a = r > 1 ? void 0 : r ? w(n, o) : n, l = e.length - 1, h; l >= 0; l--)
    (h = e[l]) && (a = (r ? h(n, o, a) : h(a)) || a);
  return r && a && b(n, o, a), a;
};
let s = class extends v {
  constructor() {
    super(...arguments), this.variant = t.Body1;
  }
  render() {
    switch (this.variant) {
      case t.Body1:
        return i`<p part="base" class="body body-1"><slot></slot></p>`;
      case t.Body2:
        return i`<p part="base" class="body body-2"><slot></slot></p>`;
      case t.Body3:
        return i`<p part="base" class="body body-3"><slot></slot></p>`;
      case t.Small:
        return i`<small part="base" class="small"><slot></slot></small>`;
      case t.H1:
        return i`<h1 part="base" class="heading heading-1"><slot></slot></h1>`;
      case t.H2:
        return i`<h2 part="base" class="heading heading-2"><slot></slot></h2>`;
      case t.H3:
        return i`<h3 part="base" class="heading heading-3"><slot></slot></h3>`;
      case t.H4:
        return i`<h4 part="base" class="heading heading-4"><slot></slot></h4>`;
      case t.H5:
        return i`<h5 part="base" class="heading heading-5"><slot></slot></h5>`;
      case t.H6:
        return i`<h6 part="base" class="heading heading-6"><slot></slot></h6>`;
    }
    return i`<p part="base" class="body body-2"><slot></slot></p>`;
  }
};
s.styles = [c, m];
g([
  f({ type: String })
], s.prototype, "variant", 2);
s = g([
  d("cx-typography")
], s);
export {
  s as C,
  t as T
};
