urdu-web-editor
Version:
Urdu Rich Text Editor for web based on lexical
830 lines (780 loc) • 152 kB
JavaScript
import "./index.css";
import {jsx as $zIto6$jsx, jsxs as $zIto6$jsxs, Fragment as $zIto6$Fragment} from "react/jsx-runtime";
import {useState as $zIto6$useState, useEffect as $zIto6$useEffect, useCallback as $zIto6$useCallback, useRef as $zIto6$useRef} from "react";
import {LexicalComposer as $zIto6$LexicalComposer} from "@lexical/react/LexicalComposer";
import {PlainTextPlugin as $zIto6$PlainTextPlugin} from "@lexical/react/LexicalPlainTextPlugin";
import {RichTextPlugin as $zIto6$RichTextPlugin} from "@lexical/react/LexicalRichTextPlugin";
import {CheckListPlugin as $zIto6$CheckListPlugin} from "@lexical/react/LexicalCheckListPlugin";
import {ListPlugin as $zIto6$ListPlugin} from "@lexical/react/LexicalListPlugin";
import {HistoryPlugin as $zIto6$HistoryPlugin} from "@lexical/react/LexicalHistoryPlugin";
import $zIto6$lexicalreactLexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary";
import {$convertFromMarkdownString as $zIto6$$convertFromMarkdownString, TRANSFORMERS as $zIto6$TRANSFORMERS, $convertToMarkdownString as $zIto6$$convertToMarkdownString} from "@lexical/markdown";
import {MarkdownShortcutPlugin as $zIto6$MarkdownShortcutPlugin} from "@lexical/react/LexicalMarkdownShortcutPlugin";
import {useLexicalComposerContext as $zIto6$useLexicalComposerContext} from "@lexical/react/LexicalComposerContext";
import $zIto6$lexicalreactuseLexicalEditable from "@lexical/react/useLexicalEditable";
import {$getRoot as $zIto6$$getRoot, $getSelection as $zIto6$$getSelection, $isRangeSelection as $zIto6$$isRangeSelection, $isRootOrShadowRoot as $zIto6$$isRootOrShadowRoot, SELECTION_CHANGE_COMMAND as $zIto6$SELECTION_CHANGE_COMMAND, COMMAND_PRIORITY_CRITICAL as $zIto6$COMMAND_PRIORITY_CRITICAL, CAN_UNDO_COMMAND as $zIto6$CAN_UNDO_COMMAND, CAN_REDO_COMMAND as $zIto6$CAN_REDO_COMMAND, KEY_MODIFIER_COMMAND as $zIto6$KEY_MODIFIER_COMMAND, COMMAND_PRIORITY_NORMAL as $zIto6$COMMAND_PRIORITY_NORMAL, UNDO_COMMAND as $zIto6$UNDO_COMMAND, REDO_COMMAND as $zIto6$REDO_COMMAND, FORMAT_TEXT_COMMAND as $zIto6$FORMAT_TEXT_COMMAND, DEPRECATED_$isGridSelection as $zIto6$DEPRECATED_$isGridSelection, $createParagraphNode as $zIto6$$createParagraphNode, createCommand as $zIto6$createCommand, FORMAT_ELEMENT_COMMAND as $zIto6$FORMAT_ELEMENT_COMMAND, INDENT_CONTENT_COMMAND as $zIto6$INDENT_CONTENT_COMMAND, OUTDENT_CONTENT_COMMAND as $zIto6$OUTDENT_CONTENT_COMMAND, COMMAND_PRIORITY_EDITOR as $zIto6$COMMAND_PRIORITY_EDITOR, $isNodeSelection as $zIto6$$isNodeSelection, $getNodeByKey as $zIto6$$getNodeByKey, CLICK_COMMAND as $zIto6$CLICK_COMMAND, COMMAND_PRIORITY_LOW as $zIto6$COMMAND_PRIORITY_LOW, KEY_DELETE_COMMAND as $zIto6$KEY_DELETE_COMMAND, KEY_BACKSPACE_COMMAND as $zIto6$KEY_BACKSPACE_COMMAND, DecoratorNode as $zIto6$DecoratorNode, $applyNodeReplacement as $zIto6$$applyNodeReplacement, KEY_ESCAPE_COMMAND as $zIto6$KEY_ESCAPE_COMMAND, COMMAND_PRIORITY_HIGH as $zIto6$COMMAND_PRIORITY_HIGH, $isLineBreakNode as $zIto6$$isLineBreakNode, $getNearestNodeFromDOMNode as $zIto6$$getNearestNodeFromDOMNode, DRAGOVER_COMMAND as $zIto6$DRAGOVER_COMMAND, DROP_COMMAND as $zIto6$DROP_COMMAND, $isTextNode as $zIto6$$isTextNode, $isParagraphNode as $zIto6$$isParagraphNode} from "lexical";
import {$isCodeNode as $zIto6$$isCodeNode, CODE_LANGUAGE_MAP as $zIto6$CODE_LANGUAGE_MAP, $createCodeNode as $zIto6$$createCodeNode, $isCodeHighlightNode as $zIto6$$isCodeHighlightNode, CodeNode as $zIto6$CodeNode} from "@lexical/code";
import {$isListNode as $zIto6$$isListNode, ListNode as $zIto6$ListNode, INSERT_UNORDERED_LIST_COMMAND as $zIto6$INSERT_UNORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND as $zIto6$REMOVE_LIST_COMMAND, INSERT_ORDERED_LIST_COMMAND as $zIto6$INSERT_ORDERED_LIST_COMMAND, ListItemNode as $zIto6$ListItemNode} from "@lexical/list";
import {$isLinkNode as $zIto6$$isLinkNode, TOGGLE_LINK_COMMAND as $zIto6$TOGGLE_LINK_COMMAND, $isAutoLinkNode as $zIto6$$isAutoLinkNode, $createLinkNode as $zIto6$$createLinkNode, AutoLinkNode as $zIto6$AutoLinkNode, LinkNode as $zIto6$LinkNode} from "@lexical/link";
import {$patchStyleText as $zIto6$$patchStyleText, $isParentElementRTL as $zIto6$$isParentElementRTL, $getSelectionStyleValueForProperty as $zIto6$$getSelectionStyleValueForProperty, $isAtNodeEnd as $zIto6$$isAtNodeEnd, $setBlocksType as $zIto6$$setBlocksType} from "@lexical/selection";
import {$findMatchingParent as $zIto6$$findMatchingParent, $getNearestNodeOfType as $zIto6$$getNearestNodeOfType, mergeRegister as $zIto6$mergeRegister, $insertNodeToNearestRoot as $zIto6$$insertNodeToNearestRoot} from "@lexical/utils";
import {$isTableNode as $zIto6$$isTableNode} from "@lexical/table";
import {$isHeadingNode as $zIto6$$isHeadingNode, $createHeadingNode as $zIto6$$createHeadingNode, $createQuoteNode as $zIto6$$createQuoteNode, eventFiles as $zIto6$eventFiles, HeadingNode as $zIto6$HeadingNode, QuoteNode as $zIto6$QuoteNode} from "@lexical/rich-text";
import {Tooltip as $zIto6$Tooltip, Button as $zIto6$Button, Divider as $zIto6$Divider, InputNumber as $zIto6$InputNumber, Dropdown as $zIto6$Dropdown, Space as $zIto6$Space, theme as $zIto6$theme, Input as $zIto6$Input, Drawer as $zIto6$Drawer} from "antd";
import {INSERT_HORIZONTAL_RULE_COMMAND as $zIto6$INSERT_HORIZONTAL_RULE_COMMAND} from "@lexical/react/LexicalHorizontalRuleNode";
import {createLinkMatcherWithRegExp as $zIto6$createLinkMatcherWithRegExp, AutoLinkPlugin as $zIto6$AutoLinkPlugin} from "@lexical/react/LexicalAutoLinkPlugin";
import {useLexicalNodeSelection as $zIto6$useLexicalNodeSelection} from "@lexical/react/useLexicalNodeSelection";
import {LinkPlugin as $zIto6$LinkPlugin} from "@lexical/react/LexicalLinkPlugin";
import {createPortal as $zIto6$createPortal} from "react-dom";
import {ContentEditable as $zIto6$ContentEditable} from "@lexical/react/LexicalContentEditable";
import {OnChangePlugin as $zIto6$OnChangePlugin} from "@lexical/react/LexicalOnChangePlugin";
const $2bd19fdd01229c1c$export$37d2f1e98a187e61 = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
const $c68f1d8466f02b7b$var$SUPPORTED_URL_PROTOCOLS = [
"http:",
"https:",
"mailto:",
"sms:",
"tel:"
];
function $c68f1d8466f02b7b$export$300bd6d67c49dbfc(url) {
try {
const parsedUrl = new URL(url);
// eslint-disable-next-line no-script-url
if (!$c68f1d8466f02b7b$var$SUPPORTED_URL_PROTOCOLS.has(parsedUrl.protocol)) return "about:blank";
} catch {
return url;
}
return url;
}
const $c68f1d8466f02b7b$var$urlRegExp = new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);
function $c68f1d8466f02b7b$export$52213319c01858f(url) {
return url === "https://" || $c68f1d8466f02b7b$var$urlRegExp.test(url);
}
function $699cd493193d11f0$export$da5a91481a5e4aa3(selection) {
const anchor = selection.anchor;
const focus = selection.focus;
const anchorNode = selection.anchor.getNode();
const focusNode = selection.focus.getNode();
if (anchorNode === focusNode) return anchorNode;
const isBackward = selection.isBackward();
if (isBackward) return (0, $zIto6$$isAtNodeEnd)(focus) ? anchorNode : focusNode;
else return (0, $zIto6$$isAtNodeEnd)(anchor) ? anchorNode : focusNode;
}
const $72b0296f46cf05a1$var$Icons = {
Undo: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.18,4,8.6,5.44,6.06,8h9.71a6,6,0,0,1,0,12h-2V18h2a4,4,0,0,0,0-8H6.06L8.6,12.51,7.18,13.92,2.23,9Z"
})
}),
Redo: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M16.82,4,15.4,5.44,17.94,8H8.23a6,6,0,0,0,0,12h2V18h-2a4,4,0,0,1,0-8h9.71L15.4,12.51l1.41,1.41L21.77,9Z"
})
}),
Bold: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 384 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z"
})
}),
Italic: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 320 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z"
})
}),
Underline: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 448 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M32 64h32v160c0 88.22 71.78 160 160 160s160-71.78 160-160V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H272a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32v160a80 80 0 0 1-160 0V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm400 384H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"
})
}),
Strikethrough: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 512 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M496 224H293.9l-87.17-26.83A43.55 43.55 0 0 1 219.55 112h66.79A49.89 49.89 0 0 1 331 139.58a16 16 0 0 0 21.46 7.15l42.94-21.47a16 16 0 0 0 7.16-21.46l-.53-1A128 128 0 0 0 287.51 32h-68a123.68 123.68 0 0 0-123 135.64c2 20.89 10.1 39.83 21.78 56.36H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-180.24 96A43 43 0 0 1 336 356.45 43.59 43.59 0 0 1 292.45 400h-66.79A49.89 49.89 0 0 1 181 372.42a16 16 0 0 0-21.46-7.15l-42.94 21.47a16 16 0 0 0-7.16 21.46l.53 1A128 128 0 0 0 224.49 480h68a123.68 123.68 0 0 0 123-135.64 114.25 114.25 0 0 0-5.34-24.36z"
})
}),
SuperScript: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M18.74,3.63l.19,4.07h-.49a4.9,4.9,0,0,0-.38-1.54A2.57,2.57,0,0,0,17,5.07a3.68,3.68,0,0,0-1.73-.35H12.83V18a3.56,3.56,0,0,0,.34,2,1.92,1.92,0,0,0,1.5.54h.6V21H7.92V20.5h.61a1.76,1.76,0,0,0,1.56-.67A3.88,3.88,0,0,0,10.38,18V4.72H8.29a5.82,5.82,0,0,0-1.73.18,2.37,2.37,0,0,0-1.14.93A3.78,3.78,0,0,0,4.86,7.7H4.38l.21-4.07Z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M22.48,1h.33V6.62a1.13,1.13,0,0,0,.06.4.41.41,0,0,0,.17.21.63.63,0,0,0,.28.08h.4V7.6H20.76V7.33l.45,0a.62.62,0,0,0,.29-.1A.38.38,0,0,0,21.65,7a1.4,1.4,0,0,0,0-.37V2.77a4.45,4.45,0,0,0,0-.64c0-.15-.1-.23-.24-.23a.82.82,0,0,0-.28,0l-.3.13-.18-.25Z"
})
]
}),
SubScript: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M18.74,3.63l.19,4.07h-.49a4.92,4.92,0,0,0-.38-1.54A2.58,2.58,0,0,0,17,5.07a3.68,3.68,0,0,0-1.73-.35H12.83V18a3.54,3.54,0,0,0,.35,2,1.92,1.92,0,0,0,1.5.54h.6V21H7.92V20.5h.61a1.76,1.76,0,0,0,1.56-.67A3.88,3.88,0,0,0,10.38,18V4.72H8.29a5.79,5.79,0,0,0-1.73.18,2.37,2.37,0,0,0-1.14.93A3.78,3.78,0,0,0,4.86,7.7H4.38l.21-4.07Z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M22.48,16.68h.33v5.59a1.13,1.13,0,0,0,.06.4.41.41,0,0,0,.17.21.63.63,0,0,0,.28.08h.4v.27H20.76V23l.45,0a.62.62,0,0,0,.29-.1.38.38,0,0,0,.15-.22,1.4,1.4,0,0,0,0-.37V18.42a4.45,4.45,0,0,0,0-.64c0-.15-.1-.23-.24-.23a.82.82,0,0,0-.28,0l-.3.13-.18-.25Z"
})
]
}),
Font: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "m11.307 4-6 16h2.137l1.875-5h6.363l1.875 5h2.137l-6-16h-2.387zm-1.239 9L12.5 6.515 14.932 13h-4.864z"
})
}),
FontSize: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "m22 6-3-4-3 4h2v4h-2l3 4 3-4h-2V6zM9.307 4l-6 16h2.137l1.875-5h6.363l1.875 5h2.137l-6-16H9.307zm-1.239 9L10.5 6.515 12.932 13H8.068z"
})
}),
Paragraph: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5z"
})
}),
TextHeading1: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M8.637 13V3.669H7.379V7.62H2.758V3.67H1.5V13h1.258V8.728h4.62V13h1.259zm5.329 0V3.669h-1.244L10.5 5.316v1.265l2.16-1.565h.062V13h1.244z"
})
}),
TextHeading2: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.638 13V3.669H6.38V7.62H1.759V3.67H.5V13h1.258V8.728h4.62V13h1.259zm3.022-6.733v-.048c0-.889.63-1.668 1.716-1.668.957 0 1.675.608 1.675 1.572 0 .855-.554 1.504-1.067 2.085l-3.513 3.999V13H15.5v-1.094h-4.245v-.075l2.481-2.844c.875-.998 1.586-1.784 1.586-2.953 0-1.463-1.155-2.556-2.919-2.556-1.941 0-2.966 1.326-2.966 2.74v.049h1.223z"
})
}),
TextHeading3: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13h1.259zm3.625-4.272h1.018c1.142 0 1.935.67 1.949 1.674.013 1.005-.78 1.737-2.01 1.73-1.08-.007-1.853-.588-1.935-1.32H9.108c.069 1.327 1.224 2.386 3.083 2.386 1.935 0 3.343-1.155 3.309-2.789-.027-1.51-1.251-2.16-2.037-2.249v-.068c.704-.123 1.764-.91 1.723-2.229-.035-1.353-1.176-2.4-2.954-2.385-1.873.006-2.857 1.162-2.898 2.358h1.196c.062-.69.711-1.299 1.696-1.299.998 0 1.695.622 1.695 1.525.007.922-.718 1.592-1.695 1.592h-.964v1.074z"
})
}),
TextHeading4: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm5.337.2v-2.328H9.108V9.828l3.441-6.35h1.632v6.141H15.5v1.253h-1.319V13.2Zm-2.615-3.581h2.615V6.7L13 4.689l-.872 1.7z"
})
}),
TextHeading5: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm2.755-5.791a3.763 3.763 0 0 1 2.113-.517 2.973 2.973 0 0 1 2.995 3.1 3.45 3.45 0 0 1-.9 2.442 3.111 3.111 0 0 1-2.393.968 3.327 3.327 0 0 1-2.094-.671 2.758 2.758 0 0 1-1.007-2h1.284a1.387 1.387 0 0 0 .511 1.1 2.384 2.384 0 0 0 1.4.421 1.819 1.819 0 0 0 1.479-.638 2.042 2.042 0 0 0 .437-1.514 2.17 2.17 0 0 0-.567-1.584 1.958 1.958 0 0 0-1.468-.58 2.358 2.358 0 0 0-1.79.789H9.108V3.478h5.931v1.134h-4.647Z"
})
}),
TextHeading6: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13Zm5.039-6.13a2.823 2.823 0 0 1 1.419.364 2.69 2.69 0 0 1 1.022 1.05 3.327 3.327 0 0 1 .383 1.642 3.594 3.594 0 0 1-.39 1.7 2.878 2.878 0 0 1-1.1 1.158 3.165 3.165 0 0 1-1.635.416 2.812 2.812 0 0 1-1.734-.545A3.49 3.49 0 0 1 9.51 11.1a6.515 6.515 0 0 1-.4-2.411A7.726 7.726 0 0 1 9.542 6a4.289 4.289 0 0 1 1.233-1.851 2.831 2.831 0 0 1 1.889-.673A2.7 2.7 0 0 1 13.8 3.7a2.463 2.463 0 0 1 .812.586 2.886 2.886 0 0 1 .514.8 2.768 2.768 0 0 1 .223.861H14a1.488 1.488 0 0 0-.453-.923 1.346 1.346 0 0 0-.935-.329 1.509 1.509 0 0 0-1.072.425 2.839 2.839 0 0 0-.71 1.18 6.808 6.808 0 0 0-.323 1.771 2.639 2.639 0 0 1 .918-.889 2.48 2.48 0 0 1 1.251-.312Zm-.285 5.117a1.617 1.617 0 0 0 .91-.256 1.752 1.752 0 0 0 .614-.713 2.336 2.336 0 0 0 .223-1.037 2.211 2.211 0 0 0-.217-1.01 1.6 1.6 0 0 0-.6-.666 1.671 1.671 0 0 0-.892-.236 1.833 1.833 0 0 0-1.164.377 2.4 2.4 0 0 0-.743 1.009 3.749 3.749 0 0 0 .6 1.845 1.5 1.5 0 0 0 1.269.687Z"
})
}),
BulletList: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm-3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"
})
}),
NumberList: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M1.713 11.865v-.474H2c.217 0 .363-.137.363-.317 0-.185-.158-.31-.361-.31-.223 0-.367.152-.373.31h-.59c.016-.467.373-.787.986-.787.588-.002.954.291.957.703a.595.595 0 0 1-.492.594v.033a.615.615 0 0 1 .569.631c.003.533-.502.8-1.051.8-.656 0-1-.37-1.008-.794h.582c.008.178.186.306.422.309.254 0 .424-.145.422-.35-.002-.195-.155-.348-.414-.348h-.3zm-.004-4.699h-.604v-.035c0-.408.295-.844.958-.844.583 0 .96.326.96.756 0 .389-.257.617-.476.848l-.537.572v.03h1.054V9H1.143v-.395l.957-.99c.138-.142.293-.304.293-.508 0-.18-.147-.32-.342-.32a.33.33 0 0 0-.342.338v.041zM2.564 5h-.635V2.924h-.031l-.598.42v-.567l.629-.443h.635V5z"
})
]
}),
CheckList: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.235.235 0 0 1 .02-.022z"
})
]
}),
Quote: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M7.066 4.76A1.665 1.665 0 0 0 4 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112zm4 0A1.665 1.665 0 0 0 8 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112z"
})
]
}),
Code: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M5.854 4.854a.5.5 0 1 0-.708-.708l-3.5 3.5a.5.5 0 0 0 0 .708l3.5 3.5a.5.5 0 0 0 .708-.708L2.707 8l3.147-3.146zm4.292 0a.5.5 0 0 1 .708-.708l3.5 3.5a.5.5 0 0 1 0 .708l-3.5 3.5a.5.5 0 0 1-.708-.708L13.293 8l-3.147-3.146z"
})
}),
AlignLeft: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"
})
}),
AlignRight: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M6 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"
})
}),
AlignMiddle: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M4 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"
})
}),
AlignJustify: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
d: "M2 12.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"
})
}),
IndentIncrease: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M2 3.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm.646 2.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L4.293 8 2.646 6.354a.5.5 0 0 1 0-.708zM7 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm-5 3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"
})
}),
IndentDecrease: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M2 3.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm10.646 2.146a.5.5 0 0 1 .708.708L11.707 8l1.647 1.646a.5.5 0 0 1-.708.708l-2-2a.5.5 0 0 1 0-.708l2-2zM2 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"
})
}),
Link: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M6.354 5.5H4a3 3 0 0 0 0 6h3a3 3 0 0 0 2.83-4H9c-.086 0-.17.01-.25.031A2 2 0 0 1 7 10.5H4a2 2 0 1 1 0-4h1.535c.218-.376.495-.714.82-1z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M9 5.5a3 3 0 0 0-2.83 4h1.098A2 2 0 0 1 9 6.5h3a2 2 0 1 1 0 4h-1.535a4.02 4.02 0 0 1-.82 1H12a3 3 0 1 0 0-6H9z"
})
]
}),
Plus: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"
})
}),
HorizontalRule: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M0 10.5a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5zM12 0H4a2 2 0 0 0-2 2v7h1V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v7h1V2a2 2 0 0 0-2-2zm2 12h-1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H2v2a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2z"
})
}),
Image: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "16",
height: "16",
fill: "currentColor",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M8.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8l-2.083-2.083a.5.5 0 0 0-.76.063L8 11 5.835 9.7a.5.5 0 0 0-.611.076L3 12V2z"
})
]
}),
Down: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
width: "16",
height: "16",
strokeWidth: "0",
viewBox: "0 0 512 512",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: "48",
d: "M112 184l144 144 144-144"
})
}),
Setting: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 512 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: "32",
d: "M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"
})
}),
Save: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
width: "16",
height: "16",
strokeWidth: "0",
viewBox: "0 0 512 512",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"
})
}),
Trash: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 448 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"
})
}),
Edit: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
fill: "none",
d: "M0 0h24v24H0z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
})
]
}),
OK: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
fill: "none",
d: "M0 0h24v24H0z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
})
]
}),
Cancel: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 24 24",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
fill: "none",
d: "M0 0h24v24H0z"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
})
]
}),
Tools: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 16 16",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M14.773 3.485l-.78-.184-2.108 2.096-1.194-1.216 2.056-2.157-.18-.792a4.42 4.42 0 0 0-1.347-.228 3.64 3.64 0 0 0-1.457.28 3.824 3.824 0 0 0-1.186.84 3.736 3.736 0 0 0-.875 1.265 3.938 3.938 0 0 0 0 2.966 335.341 335.341 0 0 0-6.173 6.234c-.21.275-.31.618-.284.963a1.403 1.403 0 0 0 .464.967c.124.135.272.247.437.328.17.075.353.118.538.127.316-.006.619-.126.854-.337 1.548-1.457 4.514-4.45 6.199-6.204.457.194.948.294 1.444.293a3.736 3.736 0 0 0 2.677-1.133 3.885 3.885 0 0 0 1.111-2.73 4.211 4.211 0 0 0-.196-1.378zM2.933 13.928a.31.31 0 0 1-.135.07.437.437 0 0 1-.149 0 .346.346 0 0 1-.144-.057.336.336 0 0 1-.114-.11c-.14-.143-.271-.415-.14-.568 1.37-1.457 4.191-4.305 5.955-6.046.1.132.21.258.328.376.118.123.245.237.38.341-1.706 1.75-4.488 4.564-5.98 5.994zm11.118-9.065c.002.765-.296 1.5-.832 2.048a2.861 2.861 0 0 1-4.007 0 2.992 2.992 0 0 1-.635-3.137A2.748 2.748 0 0 1 10.14 2.18a2.76 2.76 0 0 1 1.072-.214h.254L9.649 3.839v.696l1.895 1.886h.66l1.847-1.816v.258zM3.24 6.688h1.531l.705.717.678-.674-.665-.678V6.01l.057-1.649-.22-.437-2.86-1.882-.591.066-.831.849-.066.599 1.838 2.918.424.215zm-.945-3.632L4.609 4.58 4.57 5.703H3.494L2.002 3.341l.293-.285zm7.105 6.96l.674-.673 3.106 3.185a1.479 1.479 0 0 1 0 2.039 1.404 1.404 0 0 1-1.549.315 1.31 1.31 0 0 1-.437-.315l-3.142-3.203.679-.678 3.132 3.194a.402.402 0 0 0 .153.105.477.477 0 0 0 .359 0 .403.403 0 0 0 .153-.105.436.436 0 0 0 .1-.153.525.525 0 0 0 .036-.184.547.547 0 0 0-.035-.184.436.436 0 0 0-.1-.153L9.4 10.016z"
})
}),
SpellChecker: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "none",
strokeWidth: "2",
viewBox: "0 0 24 24",
strokeLinecap: "round",
strokeLinejoin: "round",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "m6 16 6-12 6 12"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M8 12h8"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M4 21c1.1 0 1.1-1 2.3-1s1.1 1 2.3 1c1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1"
})
]
}),
Punctuation: ()=>/*#__PURE__*/ (0, $zIto6$jsxs)("svg", {
stroke: "currentColor",
fill: "none",
strokeWidth: "2",
viewBox: "0 0 24 24",
strokeLinecap: "round",
strokeLinejoin: "round",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: [
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M5 15v-7.5a3.5 3.5 0 0 1 7 0v7.5"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M5 10h7"
}),
/*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M10 18l3 3l7 -7"
})
]
}),
AutoCorrect: ()=>/*#__PURE__*/ (0, $zIto6$jsx)("svg", {
stroke: "currentColor",
fill: "currentColor",
strokeWidth: "0",
viewBox: "0 0 512 512",
height: "1em",
width: "1em",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/ (0, $zIto6$jsx)("path", {
d: "M319.61 20.654c13.145 33.114 13.144 33.115-5.46 63.5 33.114-13.145 33.116-13.146 63.5 5.457-13.145-33.114-13.146-33.113 5.457-63.498-33.114 13.146-33.113 13.145-63.498-5.459zM113.024 38.021c-11.808 21.04-11.808 21.04-35.724 24.217 21.04 11.809 21.04 11.808 24.217 35.725 11.808-21.04 11.808-21.04 35.724-24.217-21.04-11.808-21.04-11.808-24.217-35.725zm76.55 56.184c-.952 50.588-.95 50.588-41.991 80.18 50.587.95 50.588.95 80.18 41.99.95-50.588.95-50.588 41.99-80.18-50.588-.95-50.588-.95-80.18-41.99zm191.177 55.885c-.046 24.127-.048 24.125-19.377 38.564 24.127.047 24.127.046 38.566 19.375.047-24.126.046-24.125 19.375-38.564-24.126-.047-24.125-.046-38.564-19.375zm-184.086 83.88c-1.191.024-2.36.07-3.492.134-18.591 1.064-41.868 8.416-77.445 22.556L76.012 433.582c78.487-20.734 132.97-21.909 170.99-4.615V247.71c-18.076-8.813-31.79-13.399-46.707-13.737a91.166 91.166 0 0 0-3.629-.002zm122.686 11.42c-2.916-.026-5.81.011-8.514.098-12.81.417-27.638 2.215-45.84 4.522V427.145c43.565-7.825 106.85-4.2 171.244 7.566l-39.78-177.197c-35.904-8.37-56.589-11.91-77.11-12.123zm2.289 16.95c18.889.204 36.852 2.768 53.707 5.02l4.437 16.523c-23.78-3.75-65.966-4.906-92.467-.98l-.636-17.805c11.959-2.154 23.625-2.88 34.959-2.758zm-250.483 4.658l-10.617 46.004h24.094l10.326-46.004H71.158zm345.881 0l39.742 177.031 2.239 9.973 22.591-.152-40.855-186.852h-23.717zm-78.857 57.82c16.993.026 33.67.791 49.146 2.223l3.524 17.174c-32.645-3.08-72.58-2.889-102.995 0l-.709-17.174c16.733-1.533 34.04-2.248 51.034-2.223zm-281.793 6.18l-6.924 30.004h24.394l6.735-30.004H56.389zm274.418 27.244c4.656.021 9.487.085 14.716.203l2.555 17.498c-19.97-.471-47.115.56-59.728 1.05l-.7-17.985c16.803-.493 29.189-.828 43.157-.766zm41.476.447c8.268.042 16.697.334 24.121.069l2.58 17.74c-8.653-.312-24.87-.83-32.064-.502l-2.807-17.234a257.25 257.25 0 0 1 8.17-.073zm-326.97 20.309l-17.985 77.928 25.035-.17 17.455-77.758H45.313zm303.164 11.848c19.608-.01 38.66.774 56.449 2.572l2.996 20.787c-34.305-4.244-85.755-7.697-119.1-3.244l-.14-17.922c20.02-1.379 40.186-2.183 59.795-2.193zm-166.606 44.05c-30.112.09-67.916 6.25-115.408 19.76l-7.22 2.053 187.759-1.27v-6.347c-16.236-9.206-37.42-14.278-65.13-14.196zm134.41 6.174c-19.63.067-37.112 1.439-51.283 4.182v10.064l177.594-1.203c-44.322-8.634-89.137-13.17-126.31-13.043zM26 475v18h460v-18H26z"
})
})
};
var $72b0296f46cf05a1$export$2e2bcd8739ae039 = $72b0296f46cf05a1$var$Icons;
// --------------------------------------------------
const $43fb84f0c6ea951e$var$FONT_FAMILY_OPTIONS = [
{
value: "Arial",
label: "Arial"
},
{
value: "Courier New",
label: "Courier New"
},
{
value: "Georgia",
label: "Georgia"
},
{
value: "Times New Roman",
label: "Times New Roman"
},
{
value: "Trebuchet MS",
label: "Trebuchet MS"
},
{
value: "Verdana",
label: "Verdana"
}
];
const $43fb84f0c6ea951e$export$3847dfea4f8d4dfa = (configuration)=>{
var fonts = configuration?.toolbar?.fonts ?? $43fb84f0c6ea951e$var$FONT_FAMILY_OPTIONS;
var retVal = configuration?.toolbar?.defaultFont ? fonts.find((x)=>x.value === configuration?.toolbar?.defaultFont) || fonts[0] : fonts[0];
return retVal;
};
// --------------------------------------------------
const $43fb84f0c6ea951e$var$FontDropDown = ({ fonts: fonts, value: value, onChange: onChange = ()=>{} })=>{
const configuredFonts = fonts && fonts.length > 0 ? fonts : $43fb84f0c6ea951e$var$FONT_FAMILY_OPTIONS;
const selected = ()=>value && configuredFonts.find((x)=>x.value === value) || configuredFonts[0];
const onFontSelect = (item)=>{
onChange(item.key);
};
const items = configuredFonts.map((i)=>({
key: i.value,
label: i.label
}));
return /*#__PURE__*/ (0, $zIto6$jsx)((0, $zIto6$Dropdown), {
menu: {
items: items,
selectedKeys: [
selected()
],
onClick: onFontSelect
},
onClick: onFontSelect,
children: /*#__PURE__*/ (0, $zIto6$jsx)((0, $zIto6$Button), {
type: "text",
size: "large",
children: /*#__PURE__*/ (0, $zIto6$jsxs)((0, $zIto6$Space), {
children: [
selected().label,
/*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).Down, {})
]
})
})
});
};
var $43fb84f0c6ea951e$export$2e2bcd8739ae039 = $43fb84f0c6ea951e$var$FontDropDown;
const $84ff1d458d4d24bc$export$fba0111d87689e07 = {
h1: "h1",
h2: "h2",
h3: "h3",
h4: "h4",
h5: "h5",
h6: "h6",
paragraph: "Normal",
bullet: "bullet",
number: "number",
quote: "quote",
code: "code"
};
// ----------------------------------------------------------------
function $84ff1d458d4d24bc$var$BlockFormatDropDown({ editor: editor, blockType: blockType, disabled: disabled = false, locale: locale }) {
const formatParagraph = ()=>{
editor.update(()=>{
const selection = (0, $zIto6$$getSelection)();
if ((0, $zIto6$$isRangeSelection)(selection) || (0, $zIto6$DEPRECATED_$isGridSelection)(selection)) (0, $zIto6$$setBlocksType)(selection, ()=>(0, $zIto6$$createParagraphNode)());
});
};
const formatHeading = (headingSize)=>{
if (blockType !== headingSize) editor.update(()=>{
const selection = (0, $zIto6$$getSelection)();
if ((0, $zIto6$$isRangeSelection)(selection) || (0, $zIto6$DEPRECATED_$isGridSelection)(selection)) (0, $zIto6$$setBlocksType)(selection, ()=>(0, $zIto6$$createHeadingNode)(headingSize));
});
};
const formatBulletList = ()=>{
if (blockType !== "bullet") editor.dispatchCommand((0, $zIto6$INSERT_UNORDERED_LIST_COMMAND), undefined);
else editor.dispatchCommand((0, $zIto6$REMOVE_LIST_COMMAND), undefined);
};
const formatNumberedList = ()=>{
if (blockType !== "number") editor.dispatchCommand((0, $zIto6$INSERT_ORDERED_LIST_COMMAND), undefined);
else editor.dispatchCommand((0, $zIto6$REMOVE_LIST_COMMAND), undefined);
};
const formatQuote = ()=>{
if (blockType !== "quote") editor.update(()=>{
const selection = (0, $zIto6$$getSelection)();
if ((0, $zIto6$$isRangeSelection)(selection) || (0, $zIto6$DEPRECATED_$isGridSelection)(selection)) (0, $zIto6$$setBlocksType)(selection, ()=>(0, $zIto6$$createQuoteNode)());
});
};
const formatCode = ()=>{
if (blockType !== "code") editor.update(()=>{
let selection = (0, $zIto6$$getSelection)();
if ((0, $zIto6$$isRangeSelection)(selection) || (0, $zIto6$DEPRECATED_$isGridSelection)(selection)) {
if (selection.isCollapsed()) (0, $zIto6$$setBlocksType)(selection, ()=>(0, $zIto6$$createCodeNode)());
else {
const textContent = selection.getTextContent();
const codeNode = (0, $zIto6$$createCodeNode)();
selection.insertNodes([
codeNode
]);
selection = (0, $zIto6$$getSelection)();
if ((0, $zIto6$$isRangeSelection)(selection)) selection.insertRawText(textContent);
}
}
});
};
const items = [
{
onClick: formatParagraph,
label: locale.resources.normal,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).Paragraph, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.normal
},
{
onClick: ()=>formatHeading("h1"),
label: locale.resources.heading1,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).TextHeading1, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.h1
},
{
onClick: ()=>formatHeading("h2"),
label: locale.resources.heading2,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).TextHeading2, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.h2
},
{
onClick: ()=>formatHeading("h3"),
label: locale.resources.heading3,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).TextHeading3, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.h3
},
{
onClick: ()=>formatHeading("h4"),
label: locale.resources.heading4,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).TextHeading4, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.h4
},
{
onClick: ()=>formatHeading("h5"),
label: locale.resources.heading5,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).TextHeading5, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.h5
},
{
onClick: ()=>formatHeading("h6"),
label: locale.resources.heading6,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).TextHeading6, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.h6
},
{
type: "divider"
},
{
onClick: formatBulletList,
label: locale.resources.bulletList,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).BulletList, {}),
id: $84ff1d458d4d24bc$export$fba0111d87689e07.bullet
},
{
onClick: formatNumberedList,
label: locale.resources.numberList,
icon: /*#__PURE__*/ (0, $zIto6$jsx)((0, $72b0296f46cf05a1$export$2e2bcd8739ae039).NumberList, {}),
id: