var l = Object.defineProperty;
var p = (n, t, s) => t in n ? l(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
var f = (n, t, s) => p(n, typeof t != "symbol" ? t + "" : t, s);
import { Position as o } from "../EditorPositioningWrapper/types.es.js";
class a {
  constructor() {
    f(this, "toolbarButtons", {
      [o.BOTTOM]: [],
      [o.FLOATING]: [],
      [o.TOP]: []
    });
  }
  createGroupOfButtons(t) {
    const s = [], u = [], i = [];
    for (const { markupElement: r, button: B, id: T, showIn: O } of t) {
      if (!B)
        continue;
      const h = {
        id: (r == null ? void 0 : r.getId()) || T,
        button: B
      };
      O.includes(o.BOTTOM) && s.push(h), O.includes(o.TOP) && u.push(h), O.includes(o.FLOATING) && i.push(h);
    }
    s.length > 0 && this.toolbarButtons[o.BOTTOM].push(s), u.length > 0 && this.toolbarButtons[o.TOP].push(u), i.length > 0 && this.toolbarButtons[o.FLOATING].push(i);
  }
  at(t) {
    return this.toolbarButtons[t];
  }
}
export {
  a as ToolbarPositionWithButtons
};
//# sourceMappingURL=ToolbarPositionWithButtons.es.js.map
