import { j as c } from "../../../../../../../_virtual/jsx-runtime.js";
import { useSectionByBrickId as s, useParentBrick as m } from "../../../../../../../use-page-data.js";
import f from "./enum.js";
function x(n) {
  const { brickId: i, onChange: l, schema: u } = n, a = s(i), r = m(i) ?? a;
  if (!r)
    return null;
  const o = document.getElementById(r.id);
  if (!o)
    return null;
  const t = getComputedStyle(o).flexDirection, e = {
    ...u,
    title: t === "column" ? "Horizontal position" : "Vertical position",
    description: t === "column" ? "Horizontal position of the brick within its parent box or section." : "Vertical position of the brick within its parent box or section.",
    "ui:display": "icon-group",
    enumNames: t === "column" ? ["Auto", "Left", "Center", "Right", "Stretch"] : ["Auto", "Top", "Center", "Bottom", "Stretch"],
    "ui:icons": t === "column" ? [
      null,
      "fluent:align-start-horizontal-20-regular",
      "fluent:center-horizontal-20-regular",
      "fluent:align-end-horizontal-20-regular",
      "fluent:auto-fit-width-20-regular"
    ] : [
      null,
      "fluent:align-start-vertical-20-regular",
      "fluent:center-vertical-20-regular",
      "fluent:align-end-vertical-20-regular",
      "fluent:auto-fit-height-20-regular"
    ]
  };
  return /* @__PURE__ */ c.jsx(
    f,
    {
      ...n,
      schema: e,
      title: e.title,
      description: e.description,
      onChange: l
    }
  );
}
export {
  x as default
};
//# sourceMappingURL=align-self.js.map
