import { tabs as n } from "@universityofmaryland/web-elements-library/composite";
import { createSlot as m } from "@universityofmaryland/web-utilities-library/elements";
import { Attributes as o, Register as c, Lifecycle as d, Slots as r } from "@universityofmaryland/web-model-library";
const l = "umd-element-tabs", u = {
  tabs: {
    required: !0
  }
}, p = o.handler.common.resize(
  (t) => t.events?.resize()
), f = (t) => {
  const s = o.isTheme.dark({ element: t }), a = m(r.name.TABS), e = t.querySelector(`[slot="${r.name.TABS}"]`);
  return (() => {
    if (!e) return;
    const i = n.elements.DomStrcuture.ModifyElement({
      markup: e
    });
    e.innerHTML = "", e.appendChild(i);
  })(), n.standard({
    isThemeDark: s,
    tabsContainer: e?.children[0],
    shadowContent: a,
    topPosition: o.getValue.topPosition({
      element: t
    })
  });
}, b = c.webComponent({
  tagName: l,
  slots: u,
  createComponent: f,
  attributes: [p],
  afterConnect: d.hooks.loadOnConnect
});
var D = b;
export {
  D as d
};
//# sourceMappingURL=display-BCuspULn.js.map
