import { __exports as n } from "./index-useElementFormat2.js";
import { __require as o } from "./index-Lexical.js";
var a;
function g() {
  if (a) return n;
  a = 1, Object.defineProperty(n, "__esModule", { value: !0 }), n.useElementFormat = void 0;
  const t = o(), l = {
    center: {
      icon: "center-align",
      iconRTL: "right-align",
      name: "Center Align"
    },
    end: {
      icon: "right-align",
      iconRTL: "left-align",
      name: "End Align"
    },
    justify: {
      icon: "justify-align",
      iconRTL: "justify-align",
      name: "Justify Align"
    },
    left: {
      icon: "left-align",
      iconRTL: "left-align",
      name: "Left Align"
    },
    right: {
      icon: "right-align",
      iconRTL: "left-align",
      name: "Right Align"
    },
    start: {
      icon: "left-align",
      iconRTL: "right-align",
      name: "Start Align"
    }
  }, r = (c) => {
    const { editor: i, value: e } = c;
    return {
      label: l[e || "left"].name,
      leftAlign: {
        active: e === "left",
        title: "Left Align",
        dispatch: () => i.dispatchCommand(t.FORMAT_ELEMENT_COMMAND, "left")
      },
      centerAlign: {
        active: e === "center",
        title: "Center Align",
        dispatch: () => i.dispatchCommand(t.FORMAT_ELEMENT_COMMAND, "center")
      },
      rightAlign: {
        active: e === "right",
        title: "Right Align",
        dispatch: () => i.dispatchCommand(t.FORMAT_ELEMENT_COMMAND, "right")
      },
      justifyAlign: {
        active: e === "justify",
        title: "Justify Align",
        dispatch: () => i.dispatchCommand(t.FORMAT_ELEMENT_COMMAND, "justify")
      },
      startAlign: {
        active: e === "start",
        title: "Start Align",
        dispatch: () => i.dispatchCommand(t.FORMAT_ELEMENT_COMMAND, "start")
      },
      endAlign: {
        active: e === "end",
        title: "End Align",
        dispatch: () => i.dispatchCommand(t.FORMAT_ELEMENT_COMMAND, "end")
      },
      indent: {
        title: "Indent",
        dispatch: () => i.dispatchCommand(t.INDENT_CONTENT_COMMAND, void 0)
      },
      outdent: {
        title: "Outdent",
        dispatch: () => i.dispatchCommand(t.OUTDENT_CONTENT_COMMAND, void 0)
      }
    };
  };
  return n.useElementFormat = r, n;
}
export {
  g as __require
};
