import { pathway as r } from "@universityofmaryland/web-elements-library/composite";
import { toElementVisual as e } from "@universityofmaryland/web-utilities-library/adapters";
import { Register as y, Lifecycle as D, Attributes as i, Slots as t } from "@universityofmaryland/web-model-library";
import { e as S } from "./_event-Duz7QGRD.js";
import { createStyledSlotOrClone as g } from "@universityofmaryland/web-utilities-library/elements";
const b = "umd-element-pathway", x = (a) => {
  const u = a.getAttribute("image-scaled"), n = i.isLayout.imageScaled({ element: a });
  let o = !0;
  n !== null && (o = n), u && (o = u === "true");
  const d = i.isLayout.imagePositionLeft({
    element: a
  }), f = i.isTheme.dark({ element: a }), l = i.isTheme.light({ element: a }), h = i.isTheme.maryland({ element: a }), p = i.isDisplay.hero({ element: a }), v = i.isDisplay.overlay({ element: a }), w = i.isDisplay.sticky({ element: a }), c = i.includesFeature.animation({ element: a }), s = S(a, {
    isLargeSize: !0,
    isDateSignDark: !1
  });
  return p ? r.hero({
    actions: t.actions.default({ element: a }),
    eyebrow: t.eyebrow.default({ element: a }),
    headline: t.headline.default({ element: a }),
    image: t.assets.image({ element: a }),
    includesAnimation: c,
    isImagePositionLeft: d,
    text: t.text.default({ element: a }),
    video: t.assets.video({ element: a })
  }) : v ? r.overlay({
    actions: t.actions.default({ element: a }),
    dateSign: e(s?.dateSign),
    eventDetails: e(s?.eventMeta),
    eyebrow: t.eyebrow.default({ element: a }),
    headline: t.headline.default({ element: a }),
    image: t.assets.image({ element: a }),
    includesAnimation: c,
    isImagePositionLeft: d,
    isImageScaled: o,
    isThemeDark: f,
    isThemeLight: l,
    isThemeMaryland: h,
    stats: t.text.stats({ element: a }),
    text: t.text.default({ element: a }),
    video: t.assets.video({ element: a })
  }) : w ? r.sticky({
    actions: t.actions.default({ element: a }),
    dateSign: e(s?.dateSign),
    eventDetails: e(s?.eventMeta),
    eyebrow: t.eyebrow.default({ element: a }),
    headline: t.headline.default({ element: a }),
    image: t.assets.image({ element: a }),
    isImagePositionLeft: d,
    isImageScaled: o,
    isThemeDark: i.isTheme.dark({ element: a }),
    stats: t.text.stats({ element: a }),
    text: t.text.default({ element: a }),
    video: t.assets.video({ element: a })
  }) : r.standard({
    actions: t.actions.default({ element: a }),
    dateSign: e(s?.dateSign),
    eventDetails: e(s?.eventMeta),
    eyebrow: t.eyebrow.default({ element: a }),
    headline: t.headline.default({ element: a }),
    image: t.assets.image({ element: a }),
    includesAnimation: c,
    isImagePositionLeft: d,
    isImageScaled: o,
    isThemeDark: f,
    isThemeMaryland: h,
    stats: t.text.stats({ element: a }),
    text: t.text.default({ element: a }),
    video: t.assets.video({ element: a })
  });
};
var A = y.webComponent({
  tagName: b,
  createComponent: x,
  afterConnect: D.hooks.loadAnimation
});
const T = "umd-element-pathway-highlight", k = (a) => r.highlight({
  actions: t.actions.default({ element: a }),
  eyebrow: t.eyebrow.default({ element: a }),
  headline: t.headline.default({ element: a }),
  text: t.text.default({ element: a }),
  quote: g({
    element: a,
    slotRef: t.name.HIGHLIGHT
  }),
  attribution: g({
    element: a,
    slotRef: t.name.HIGHLIGHT_ATTRIBUTION
  }),
  isThemeDark: i.isTheme.dark({ element: a })
});
var N = y.webComponent({
  tagName: T,
  createComponent: k
});
export {
  N as h,
  A as i
};
//# sourceMappingURL=highlight-BAbE0FOj.js.map
