import { animations as o } from "@universityofmaryland/web-elements-library/atomic";
import { Register as m, Lifecycle as s, Attributes as c } from "@universityofmaryland/web-model-library";
const r = "umd-element-brand-card-stack", l = (n) => {
  const t = Array.from(
    n.querySelectorAll('[slot="cards"] > *')
  ), a = t.find(
    (e) => e.getAttribute("data-featured") === "true"
  );
  if (t.length < 5)
    return console.log(`${r}: The minimum number of for the card stack is 5.`), { element: document.createElement("div"), styles: "" };
  if (t.length > 9)
    return console.log(`${r}: The maximum number of for the card stack is 10.`), { element: document.createElement("div"), styles: "" };
  if (!a)
    return console.log(
      `${r}: A featured element is required. Please add the attribute data-featured to one of the elements`
    ), { element: document.createElement("div"), styles: "" };
  const i = t.filter((e) => e.getAttribute("data-featured") !== "true").map((e) => e.tagName === "IMG" ? e : e.querySelector("img")).filter((e) => e !== null);
  return o.brand.cardStack({
    featured: a,
    images: i,
    isExpandFeature: c.includesFeature.imageExpand({
      element: n
    })
  });
}, d = m.webComponent({
  tagName: r,
  createComponent: l,
  afterConnect: s.hooks.loadAnimation
});
var C = d;
const u = "umd-element-brand-logo-animation", f = () => o.brand.chevronScroll(), g = m.webComponent({
  tagName: u,
  createComponent: f
});
var v = g;
export {
  v as c,
  C as s
};
//# sourceMappingURL=chevron-scroll-sN9hWLoU.js.map
