"use client";
import { jsx as i, jsxs as s } from "react/jsx-runtime";
import { INSERT_ORDERED_LIST_COMMAND as n } from "../../../../../node_modules/@lexical/list/LexicalList.prod.js";
import { $setBlocksType as c } from "../../../../../node_modules/@lexical/selection/LexicalSelection.prod.js";
import { $getSelection as l, $isRangeSelection as p, $createParagraphNode as f } from "../../../../../node_modules/lexical/Lexical.prod.js";
import { useToolbarContext as d } from "../../../context/toolbar-context.js";
import { blockTypeToBlockName as r } from "./block-format-data.js";
import { SelectItem as u } from "../../../../ui/select.js";
const e = "number";
function E() {
  const { activeEditor: o, blockType: m } = d(), a = () => {
    o.update(() => {
      const t = l();
      p(t) && c(t, () => f());
    });
  };
  return /* @__PURE__ */ i(u, { value: e, onPointerDown: () => {
    m !== "number" ? o.dispatchCommand(n, void 0) : a();
  }, children: /* @__PURE__ */ s("div", { className: "flex items-center gap-1 font-normal", children: [
    r[e].icon,
    r[e].label
  ] }) });
}
export {
  E as FormatNumberedList
};
