import { __exports as r } from "./index-useFontFormatOptions2.js";
import { __require as F } from "./index-LexicalSelection.js";
import { __require as O } from "./index-Lexical.js";
import d from "react";
var n;
function q() {
  if (n) return r;
  n = 1, Object.defineProperty(r, "__esModule", { value: !0 }), r.useFontFormatOptions = void 0;
  const p = F(), o = O(), s = d, c = [
    ["Arial", "Arial"],
    ["Courier New", "Courier New"],
    ["Georgia", "Georgia"],
    ["Times New Roman", "Times New Roman"],
    ["Trebuchet MS", "Trebuchet MS"],
    ["Verdana", "Verdana"]
  ], u = [
    ["10px", "10px"],
    ["11px", "11px"],
    ["12px", "12px"],
    ["13px", "13px"],
    ["14px", "14px"],
    ["15px", "15px"],
    ["16px", "16px"],
    ["17px", "17px"],
    ["18px", "18px"],
    ["19px", "19px"],
    ["20px", "20px"]
  ], x = (l) => {
    const { editor: a, value: m, style: i } = l, _ = (0, s.useCallback)((e) => {
      a.update(() => {
        const t = (0, o.$getSelection)();
        ((0, o.$isRangeSelection)(t) || (0, o.DEPRECATED_$isGridSelection)(t)) && (0, p.$patchStyleText)(t, {
          [i]: e
        });
      });
    }, [a, i]);
    return (i === "font-family" ? c : u).map(([e, t]) => ({
      title: t,
      value: e,
      active: m === e,
      dispatch: () => _(e)
    }));
  };
  return r.useFontFormatOptions = x, r;
}
export {
  q as __require
};
