import { slider as d } from "@universityofmaryland/web-elements-library/composite";
import { Attributes as r, Register as a, Lifecycle as l, Slots as o } from "@universityofmaryland/web-model-library";
import { slider as m } from "@universityofmaryland/web-feeds-library/academic";
import { slider as u } from "@universityofmaryland/web-feeds-library/events";
const f = "umd-element-slider-events", p = r.handler.common.resize(
  (e) => e.events?.size()
), T = (e) => {
  const t = document.createElement("div"), s = e.querySelector(
    `[slot=${o.name.EVENT_LIST}]`
  );
  return s ? (t.innerHTML = s.innerHTML, d.events({
    isThemeDark: r.isTheme.dark({ element: e }),
    dataSlider: t,
    headline: o.headline.default({ element: e }),
    actions: o.actions.default({ element: e })
  })) : (console.error(`Slot ${o.name.EVENT_LIST} is required`), { element: t, styles: "" });
}, h = a.webComponent({
  tagName: f,
  createComponent: T,
  attributes: [p],
  afterConnect: l.hooks.loadOnConnect
});
var E = h;
const v = "umd-element-slider-events-feed", g = r.handler.common.resize(
  (e) => e.events?.size()
), k = (e) => {
  const t = r.isTheme.dark({ element: e }), s = r.getValue.feedToken({ element: e }), i = r.getValue.feedFilterIds({ element: e }), c = r.isData.type.academic({
    element: e
  });
  if (!s)
    return console.error("Token is required for this component"), { element: document.createElement("div"), styles: "" };
  const n = {
    token: s,
    categories: i,
    isThemeDark: t,
    headline: o.headline.default({ element: e }),
    actions: o.actions.default({ element: e })
  };
  return c ? m(n) : u(n);
}, b = a.webComponent({
  tagName: v,
  createComponent: k,
  attributes: [g],
  afterConnect: (e, t) => e?.events?.callback?.(t)
});
var L = b;
export {
  E as d,
  L as f
};
//# sourceMappingURL=feed-DbSsTiki.js.map
