import { quote as l } from "@universityofmaryland/web-elements-library/composite";
import { createStyledSlotOrClone as i } from "@universityofmaryland/web-utilities-library/elements";
import { isPreferredReducedMotion as g } from "@universityofmaryland/web-utilities-library/accessibility";
import { getLinkFromSlot as R } from "@universityofmaryland/web-utilities-library/dom";
import { Register as S, Lifecycle as q, Attributes as o, Slots as s } from "@universityofmaryland/web-model-library";
const y = "umd-element-quote", A = {
  quote: {
    required: !0
  }
}, b = ({
  element: t
}) => {
  const e = s.actions.default({ element: t });
  return R(e);
}, h = (t) => {
  const e = o.isVisual.sizeLarge({ element: t }), p = o.isDisplay.featured({ element: t }), r = o.isTheme.dark({ element: t }), a = o.isTheme.maryland({ element: t }), n = o.isVisual.transparent({ element: t }), c = b({ element: t }), u = i({
    element: t,
    slotRef: s.name.QUOTE
  }), m = i({
    element: t,
    slotRef: s.name.assets.image
  }), d = i({
    element: t,
    slotRef: s.name.ATTRIBUTION
  }), f = i({
    element: t,
    slotRef: s.name.ATTRIBUTION_SUB_TEXT
  }), T = o.includesFeature.animation({ element: t }) && !g();
  return p ? l.featured({
    isSizeLarge: e,
    isThemeDark: r,
    isThemeMaryland: a,
    isTransparent: n,
    includesAnimation: T,
    action: c,
    quote: u,
    image: m,
    attribution: d,
    attributionSubText: f
  }) : l.inline({
    isSizeLarge: e,
    isThemeDark: r,
    isThemeMaryland: a,
    isTransparent: n,
    includesAnimation: T,
    action: c,
    quote: u,
    image: m,
    attribution: d,
    attributionSubText: f
  });
}, k = S.webComponent({
  tagName: y,
  slots: A,
  createComponent: h,
  afterConnect: q.hooks.loadAnimation
});
var B = k;
export {
  B as d
};
//# sourceMappingURL=display-BURSSsTh.js.map
