@nice2dev/ui 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/README.md +50 -29
  3. package/css/legacy-bg-text-aliases.css +65 -61
  4. package/dist/NiceCodeEditor-Bc81wiaN.js +1134 -0
  5. package/dist/NiceCodeEditor-D6f8KdHN.js +1134 -0
  6. package/dist/NiceCodeEditor-DE3saxyt.cjs +260 -0
  7. package/dist/NiceCodeEditor-DZM16My5.cjs +260 -0
  8. package/dist/NiceCodeEditor-HqmcJjmZ.js +1179 -0
  9. package/dist/NiceColorPicker-6EqXaDj0.cjs +1 -0
  10. package/dist/NiceColorPicker-BiEWqWnd.js +596 -0
  11. package/dist/NiceColorPicker-Cuc6YXqz.cjs +1 -0
  12. package/dist/NiceColorPicker-DMATcNWG.js +596 -0
  13. package/dist/NiceColorPicker-R3O1nemp.js +596 -0
  14. package/dist/NiceConfirmDialog-B0e10fRL.cjs +1 -0
  15. package/dist/NiceConfirmDialog-BBDgEMHv.js +81 -0
  16. package/dist/NiceConfirmDialog-C7kdr8jJ.js +81 -0
  17. package/dist/NiceConfirmDialog-DMHqPfFM.js +81 -0
  18. package/dist/NiceConfirmDialog-ZJpQLQQS.cjs +1 -0
  19. package/dist/NiceDataGrid-BzUw4dSu.cjs +10 -0
  20. package/dist/NiceDataGrid-CPKcVOVz.js +1743 -0
  21. package/dist/NiceDataGrid-DJr33WMy.cjs +10 -0
  22. package/dist/NiceDataGrid-D_4gZ1Hu.js +1736 -0
  23. package/dist/NiceDataGrid-DlUAaXhD.js +1736 -0
  24. package/dist/NiceDocumentViewer-8ghRVtfO.js +672 -0
  25. package/dist/NiceDocumentViewer-ChWtA_Ry.cjs +180 -0
  26. package/dist/NiceDocumentViewer-DwLUV7Tc.js +672 -0
  27. package/dist/NiceDocumentViewer-goMzF1w3.cjs +180 -0
  28. package/dist/NiceDocumentViewer-gt1mxzP8.js +672 -0
  29. package/dist/NiceForm-CHEAHxDw.js +4805 -0
  30. package/dist/NiceForm-CJUp1CL0.cjs +1 -0
  31. package/dist/NiceForm-Cp_RH3Yj.js +4805 -0
  32. package/dist/NiceForm-a6tGr6ss.js +4819 -0
  33. package/dist/NiceForm-jU89oe2S.cjs +1 -0
  34. package/dist/NiceGantt-BnQwyTfG.cjs +1 -0
  35. package/dist/NiceGantt-D8coFAvK.js +328 -0
  36. package/dist/NiceGantt-DOZfT6r5.js +328 -0
  37. package/dist/NiceGantt-DQzH1V-R.js +328 -0
  38. package/dist/NiceGantt-jQ8ZpXko.cjs +1 -0
  39. package/dist/NiceHtmlEditor-B1nlXJNW.cjs +10 -0
  40. package/dist/NiceHtmlEditor-Bv3VqJPG.js +862 -0
  41. package/dist/NiceHtmlEditor-CKsGj-Ei.cjs +10 -0
  42. package/dist/NiceHtmlEditor-CloMgyzg.js +841 -0
  43. package/dist/NiceHtmlEditor-DUAHmkWI.js +841 -0
  44. package/dist/NiceLoginForm-Ce_QLnLf.js +736 -0
  45. package/dist/NiceLoginForm-DLpNTQlR.cjs +1 -0
  46. package/dist/NiceLoginForm-Dg0286Cc.js +736 -0
  47. package/dist/NiceLoginForm-X05Vadeg.js +708 -0
  48. package/dist/NiceLoginForm-f_dBCnUi.cjs +1 -0
  49. package/dist/NiceMention-BByI4nFG.js +11120 -0
  50. package/dist/NiceMention-BjeLN4Jx.cjs +430 -0
  51. package/dist/NiceMention-C2TPiMph.cjs +430 -0
  52. package/dist/NiceMention-C67vT6m0.js +11145 -0
  53. package/dist/NiceMention-D1cdy63w.cjs +430 -0
  54. package/dist/NiceMention-OaCi-GNO.js +11094 -0
  55. package/dist/NiceMention-QIuggb9Y.js +11122 -0
  56. package/dist/NiceMention.css +1 -1
  57. package/dist/NiceModal-CHaan9al.js +95 -0
  58. package/dist/NiceModal-Czq6OEAT.js +95 -0
  59. package/dist/NiceModal-D-HFwawr.js +95 -0
  60. package/dist/NiceModal-DOy2XTzc.cjs +1 -0
  61. package/dist/NiceModal-DkawKzEE.cjs +1 -0
  62. package/dist/NiceModuleLifecyclePanel-1CsP8Zst.js +6997 -0
  63. package/dist/NiceModuleLifecyclePanel-Bkx4Yg-3.cjs +1 -0
  64. package/dist/NiceModuleLifecyclePanel-C5oYtczk.js +6999 -0
  65. package/dist/NiceModuleLifecyclePanel-DCcy2yYi.cjs +1 -0
  66. package/dist/NiceModuleLifecyclePanel-DqdgW-0s.js +7004 -0
  67. package/dist/NiceModuleLifecyclePanel.css +1 -1
  68. package/dist/NicePagination-7od5KUa3.cjs +1 -0
  69. package/dist/NicePagination-DMrkR8hH.cjs +1 -0
  70. package/dist/NicePagination-DQmZpsSQ.js +179 -0
  71. package/dist/NicePagination-DipQRjPq.js +172 -0
  72. package/dist/NicePagination-KhlVXYaT.js +172 -0
  73. package/dist/NicePivotGrid-B-KthuqL.cjs +152 -0
  74. package/dist/NicePivotGrid-CLCTHkKO.cjs +152 -0
  75. package/dist/NicePivotGrid-DV54FCsH.js +1174 -0
  76. package/dist/NicePivotGrid-DoWLUPUs.js +1167 -0
  77. package/dist/NicePivotGrid-etwpfccz.js +1167 -0
  78. package/dist/NiceSavedQueryPanel-BABkTNc5.js +5129 -0
  79. package/dist/NiceSavedQueryPanel-Cfeig83P.cjs +586 -0
  80. package/dist/NiceSavedQueryPanel-DTWRLseb.cjs +586 -0
  81. package/dist/NiceSavedQueryPanel-Dy154sxE.js +5129 -0
  82. package/dist/NiceSavedQueryPanel-v7AffOOe.js +5129 -0
  83. package/dist/NiceSavedQueryPanel.css +1 -1
  84. package/dist/NiceScheduler-BEgB7ZgF.cjs +5 -0
  85. package/dist/NiceScheduler-C9JprsEI.cjs +5 -0
  86. package/dist/NiceScheduler-DSP-PPh0.js +1645 -0
  87. package/dist/NiceScheduler-DuPnaA3t.js +1652 -0
  88. package/dist/NiceScheduler-Oa89YZx9.js +1645 -0
  89. package/dist/NiceSelect-A336yeLZ.js +433 -0
  90. package/dist/NiceSelect-B5hTbqi2.js +433 -0
  91. package/dist/NiceSelect-BYSgDYzq.cjs +1 -0
  92. package/dist/NiceSelect-Dudf2T5T.js +433 -0
  93. package/dist/NiceSelect-DwBAIrX7.cjs +1 -0
  94. package/dist/NiceWindow-B6zjBTl9.cjs +1 -0
  95. package/dist/NiceWindow-BKQEx7Vf.js +1623 -0
  96. package/dist/NiceWindow-BnTH7Gy0.js +1623 -0
  97. package/dist/NiceWindow-CZN9NVZw.cjs +1 -0
  98. package/dist/NiceWindow-lxtPR7yZ.js +1623 -0
  99. package/dist/NiceWindow.css +1 -1
  100. package/dist/charts-B8_V3_nq.cjs +882 -0
  101. package/dist/charts-BZgyyybE.js +31933 -0
  102. package/dist/charts-FuDk5-r6.js +31958 -0
  103. package/dist/charts-INj3yFo5.js +31946 -0
  104. package/dist/charts-NolNXKUL.cjs +882 -0
  105. package/dist/charts.cjs +1 -1
  106. package/dist/charts.css +1 -1
  107. package/dist/charts.mjs +1 -1
  108. package/dist/core-A_A6c7an.js +795 -0
  109. package/dist/core-B2iH2J_X.js +795 -0
  110. package/dist/core-BmspZEfD.js +795 -0
  111. package/dist/core-DAfLOet6.cjs +1 -0
  112. package/dist/core-ZG3bgnBR.cjs +1 -0
  113. package/dist/data-branching-B3TOqXAO.cjs +1 -0
  114. package/dist/data-branching-BUGiICDZ.js +6275 -0
  115. package/dist/data-branching-DMXmcocj.js +6275 -0
  116. package/dist/data-branching-YE8P9M5P.js +6275 -0
  117. package/dist/data-branching-t6uhAwIm.cjs +1 -0
  118. package/dist/data-branching.cjs +1 -1
  119. package/dist/data-branching.mjs +1 -1
  120. package/dist/data.cjs +1 -1
  121. package/dist/data.d.ts +7 -2
  122. package/dist/data.mjs +3 -3
  123. package/dist/devops-BhV3OmF7.js +8285 -0
  124. package/dist/devops-BqUxnbRi.cjs +17 -0
  125. package/dist/devops-Bx-Qwj9w.cjs +17 -0
  126. package/dist/devops-DYZatW45.js +8251 -0
  127. package/dist/devops-R98k2zpd.js +8251 -0
  128. package/dist/devops.cjs +1 -1
  129. package/dist/devops.d.ts +29 -16
  130. package/dist/devops.mjs +1 -1
  131. package/dist/editors.cjs +1 -1
  132. package/dist/editors.d.ts +59 -28
  133. package/dist/editors.mjs +7 -7
  134. package/dist/feedback.cjs +1 -1
  135. package/dist/feedback.mjs +3 -3
  136. package/dist/index.cjs +445 -445
  137. package/dist/index.css +1 -1
  138. package/dist/index.d.ts +214 -119
  139. package/dist/index.mjs +16635 -16351
  140. package/dist/lazy.cjs +1 -1
  141. package/dist/lazy.d.ts +31 -18
  142. package/dist/lazy.mjs +24 -24
  143. package/dist/navigation.cjs +1 -1
  144. package/dist/navigation.d.ts +17 -14
  145. package/dist/navigation.mjs +130 -130
  146. package/dist/no-code-BPaAS4wW.cjs +332 -0
  147. package/dist/no-code-CBwUVL1i.js +7447 -0
  148. package/dist/no-code-CjktkQ50.js +7447 -0
  149. package/dist/no-code-DW2NrRba.js +7447 -0
  150. package/dist/no-code-DmFxrZ5T.cjs +332 -0
  151. package/dist/no-code.cjs +1 -1
  152. package/dist/no-code.d.ts +2 -2
  153. package/dist/no-code.mjs +1 -1
  154. package/dist/overlays.cjs +1 -1
  155. package/dist/overlays.d.ts +4 -4
  156. package/dist/overlays.mjs +2 -2
  157. package/dist/pickerCommons-C4XWRUvH.cjs +1 -0
  158. package/dist/pickerCommons-C_BpYs_m.cjs +1 -0
  159. package/dist/pickerCommons-DAOXH_u5.js +1122 -0
  160. package/dist/pickerCommons-Dn4wnDco.js +1122 -0
  161. package/dist/pickerCommons-DskswPS5.js +1122 -0
  162. package/dist/pickerCommons.css +1 -1
  163. package/dist/style.css +7 -7
  164. package/package.json +3 -3
@@ -0,0 +1,841 @@
1
+ import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
+ import { D as Ye, c as Ge, e as pe, Q as Ze, Y as et } from "./charts-BZgyyybE.js";
3
+ import { useRef as J, useState as s, useCallback as d } from "react";
4
+ import { N as he, a as v } from "./NiceColorPicker-R3O1nemp.js";
5
+ import { N as tt } from "./NiceSelect-Dudf2T5T.js";
6
+ function be(c) {
7
+ const t = c.trim().toLowerCase();
8
+ return t.startsWith("http://") || t.startsWith("https://") || t.startsWith("/") || t.startsWith("./") || t.startsWith("../") ? !0 : !(t.startsWith("javascript:") || t.startsWith("vbscript:") || t.startsWith("data:text"));
9
+ }
10
+ const nt = [
11
+ {
12
+ target: ".nice-htmleditor",
13
+ titleKey: "tutorial.htmlEditor.intro.title",
14
+ title: "Rich text editor",
15
+ contentKey: "tutorial.htmlEditor.intro.content",
16
+ content: "Format text with the toolbar, insert links, images and tables, and switch to HTML or Markdown source when you need it.",
17
+ placement: "auto"
18
+ }
19
+ ], rt = [
20
+ "bold",
21
+ "italic",
22
+ "underline",
23
+ "strikethrough",
24
+ "h1",
25
+ "h2",
26
+ "h3",
27
+ "ul",
28
+ "ol",
29
+ "blockquote",
30
+ "hr",
31
+ "link",
32
+ "unlink",
33
+ "image",
34
+ "table",
35
+ "code",
36
+ "alignLeft",
37
+ "alignCenter",
38
+ "alignRight",
39
+ "fontSize",
40
+ "fontColor",
41
+ "undo",
42
+ "redo",
43
+ "clear",
44
+ "findReplace",
45
+ "emoji",
46
+ "source",
47
+ "fullscreen",
48
+ "markdown"
49
+ ], l = ({ d: c, viewBox: t = "0 0 24 24" }) => /* @__PURE__ */ n(
50
+ "svg",
51
+ {
52
+ width: "16",
53
+ height: "16",
54
+ viewBox: t,
55
+ fill: "none",
56
+ stroke: "currentColor",
57
+ strokeWidth: "2",
58
+ strokeLinecap: "round",
59
+ strokeLinejoin: "round",
60
+ "aria-hidden": "true",
61
+ children: /* @__PURE__ */ n("path", { d: c })
62
+ }
63
+ ), ot = {
64
+ bold: /* @__PURE__ */ n("strong", { style: { fontFamily: "serif" }, children: "B" }),
65
+ italic: /* @__PURE__ */ n("em", { style: { fontFamily: "serif" }, children: "I" }),
66
+ underline: /* @__PURE__ */ n("span", { style: { textDecoration: "underline" }, children: "U" }),
67
+ strikethrough: /* @__PURE__ */ n("span", { style: { textDecoration: "line-through" }, children: "S" }),
68
+ h1: "H1",
69
+ h2: "H2",
70
+ h3: "H3",
71
+ ul: /* @__PURE__ */ n(l, { d: "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" }),
72
+ ol: /* @__PURE__ */ n(l, { d: "M10 6h11M10 12h11M10 18h11M4 6h1v4M4 10h2M6 18H4c0-1 2-2 2-3s-1-1.5-2-1" }),
73
+ link: /* @__PURE__ */ n(l, { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }),
74
+ unlink: /* @__PURE__ */ n(l, { d: "M18.84 12.25l1.72-1.71a5 5 0 0 0-7.07-7.07L11 5.78M3 3l18 18M9 15l3-3M14 11l3 3M14 21l-1.72-1.72a5 5 0 0 1-7.07-7.07L7 10.49" }),
75
+ undo: /* @__PURE__ */ n(l, { d: "M3 7v6h6M3 13a9 9 0 1 0 3-7.7L3 13" }),
76
+ redo: /* @__PURE__ */ n(l, { d: "M21 7v6h-6M21 13a9 9 0 1 1-3-7.7L21 13" }),
77
+ clear: /* @__PURE__ */ n(l, { d: "M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }),
78
+ table: /* @__PURE__ */ n(l, { d: "M3 3h18v18H3zM3 9h18M3 15h18M9 3v18M15 3v18" }),
79
+ image: /* @__PURE__ */ n(l, { d: "M3 3h18v18H3zM3 16l5-5 4 4 3-3 6 6M9 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0z" }),
80
+ code: /* @__PURE__ */ n(l, { d: "M16 18l6-6-6-6M8 6l-6 6 6 6" }),
81
+ markdown: "MD",
82
+ blockquote: /* @__PURE__ */ n(l, { d: "M3 21c3-3 3-9 0-12M21 21c-3-3-3-9 0-12M9 7h6v6H9zM15 7h6v6h-6z" }),
83
+ hr: /* @__PURE__ */ n(l, { d: "M5 12h14" }),
84
+ subscript: "X₂",
85
+ superscript: "X²",
86
+ indent: /* @__PURE__ */ n(l, { d: "M3 8l4 4-4 4M7 6h14M7 12h14M3 18h18" }),
87
+ outdent: /* @__PURE__ */ n(l, { d: "M7 8l-4 4 4 4M21 6H3M21 12H7M21 18H3" }),
88
+ alignLeft: /* @__PURE__ */ n(l, { d: "M3 6h18M3 12h12M3 18h18" }),
89
+ alignCenter: /* @__PURE__ */ n(l, { d: "M3 6h18M6 12h12M3 18h18" }),
90
+ alignRight: /* @__PURE__ */ n(l, { d: "M3 6h18M9 12h12M3 18h18" }),
91
+ alignJustify: /* @__PURE__ */ n(l, { d: "M3 6h18M3 12h18M3 18h18" }),
92
+ fullscreen: /* @__PURE__ */ n(l, { d: "M3 9V3h6M21 9V3h-6M3 15v6h6M21 15v6h-6" }),
93
+ removeFormat: /* @__PURE__ */ n(l, { d: "M4 7V4h16v3M5 20h6M13 4 8 20" }),
94
+ print: /* @__PURE__ */ n(l, { d: "M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2M6 14h12v8H6z" }),
95
+ source: /* @__PURE__ */ n(l, { d: "M16 18l6-6-6-6M8 6l-6 6 6 6" }),
96
+ emoji: /* @__PURE__ */ n(l, { d: "M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01" }),
97
+ findReplace: /* @__PURE__ */ n(l, { d: "M11 19a8 8 0 1 1 0-16 8 8 0 0 1 0 16zM21 21l-4.35-4.35" }),
98
+ fontSize: /* @__PURE__ */ n(l, { d: "M4 7V4h16v3M9 20h6M12 4v16" }),
99
+ fontColor: /* @__PURE__ */ n(l, { d: "M4 21h16M5 17l7-12 7 12M8 13h8" })
100
+ }, it = [
101
+ { value: "1", label: "8pt" },
102
+ { value: "2", label: "10pt" },
103
+ { value: "3", label: "12pt" },
104
+ { value: "4", label: "14pt" },
105
+ { value: "5", label: "18pt" },
106
+ { value: "6", label: "24pt" },
107
+ { value: "7", label: "36pt" }
108
+ ], at = [
109
+ {
110
+ label: "Faces",
111
+ emojis: ["??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??"]
112
+ },
113
+ { label: "Hands", emojis: ["??", "??", "??", "??", "??", "??", "??", "??", "??", "??"] },
114
+ {
115
+ label: "Symbols",
116
+ emojis: ["??", "?", "??", "?", "?", "?", "??", "??", "??", "??", "??", "??"]
117
+ },
118
+ { label: "Arrows", emojis: ["??", "??", "??", "??", "??", "??", "??", "??", "??", "?"] }
119
+ ];
120
+ function lt(c) {
121
+ let t = c;
122
+ return t = t.replace(/<h1[^>]*>(.*?)<\/h1>/gi, `# $1
123
+ `), t = t.replace(/<h2[^>]*>(.*?)<\/h2>/gi, `## $1
124
+ `), t = t.replace(/<h3[^>]*>(.*?)<\/h3>/gi, `### $1
125
+ `), t = t.replace(/<strong[^>]*>(.*?)<\/strong>/gi, "**$1**"), t = t.replace(/<b[^>]*>(.*?)<\/b>/gi, "**$1**"), t = t.replace(/<em[^>]*>(.*?)<\/em>/gi, "*$1*"), t = t.replace(/<i[^>]*>(.*?)<\/i>/gi, "*$1*"), t = t.replace(/<code[^>]*>(.*?)<\/code>/gi, "`$1`"), t = t.replace(/<pre[^>]*>(.*?)<\/pre>/gis, "```\n$1\n```\n"), t = t.replace(/<br\s*\/?>/gi, `
126
+ `), t = t.replace(/<li[^>]*>(.*?)<\/li>/gi, `- $1
127
+ `), t = t.replace(/<\/?(?:ul|ol|p|div)[^>]*>/gi, `
128
+ `), t = t.replace(/<[^>]+>/g, ""), t = t.replace(/\n{3,}/g, `
129
+
130
+ `), t.trim();
131
+ }
132
+ function st(c) {
133
+ let t = c;
134
+ return t = t.replace(/^### (.+)$/gm, "<h3>$1</h3>"), t = t.replace(/^## (.+)$/gm, "<h2>$1</h2>"), t = t.replace(/^# (.+)$/gm, "<h1>$1</h1>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(/`([^`]+)`/g, "<code>$1</code>"), t = t.replace(/```\n?([\s\S]*?)\n?```/g, "<pre>$1</pre>"), t = t.replace(/^- (.+)$/gm, "<li>$1</li>"), t = t.replace(/(<li>.*<\/li>)/gs, "<ul>$1</ul>"), t = t.replace(/\n/g, "<br>"), t;
135
+ }
136
+ const pt = ({
137
+ value: c,
138
+ onChange: t,
139
+ placeholder: xe,
140
+ height: D = 200,
141
+ toolbar: ge = rt,
142
+ readOnly: h,
143
+ onImageUpload: H,
144
+ mentionTrigger: x,
145
+ mentionSuggestions: Me,
146
+ onMentionSearch: Y,
147
+ onFileDrop: _,
148
+ pasteCleanup: G = !0,
149
+ maxLength: L = 0,
150
+ showWordCount: Z = !1,
151
+ templates: N,
152
+ label: ee,
153
+ error: z,
154
+ helperText: te,
155
+ required: ve,
156
+ disabled: b,
157
+ size: ye = "md",
158
+ id: ne,
159
+ className: ke,
160
+ style: Ce,
161
+ accessMode: we,
162
+ tutorial: He
163
+ }) => {
164
+ const I = Ye(we, ne), _e = I === "hidden";
165
+ I === "disabled" && (b = !0), I === "readOnly" && (h = !0);
166
+ const re = Ge(ne), m = J(null), oe = J(null), Le = J(null), [y, j] = s(!1), [O, ie] = s(""), [k, E] = s(!1), [F, ae] = s(""), [W, $] = s(!1), [Te, Se] = s(""), [K, A] = s(0), [B, ze] = s(!1), [le, $e] = s("var(--nice-text, #000000)"), [se, Re] = s("var(--nice-warning, #ffff00)"), [ce, V] = s(0), [De, Ne] = s(0), [q, Q] = s(!1), [f, Ie] = s(""), [T, je] = s(""), [P, de] = s(!1), [me, ue] = s(!1), p = d(
167
+ (e, r) => {
168
+ if (h || b)
169
+ return;
170
+ const i = m.current;
171
+ if (i) {
172
+ if (e === "markdown") {
173
+ if (!y)
174
+ ie(lt(c)), j(!0), E(!1);
175
+ else {
176
+ const o = st(O);
177
+ t(o), j(!1);
178
+ }
179
+ return;
180
+ }
181
+ if (e === "source") {
182
+ k ? (t(F), E(!1)) : (ae(c), E(!0), j(!1));
183
+ return;
184
+ }
185
+ if (e === "fullscreen") {
186
+ ze((o) => !o);
187
+ return;
188
+ }
189
+ if (e === "emoji") {
190
+ de((o) => !o);
191
+ return;
192
+ }
193
+ if (e === "findReplace") {
194
+ Q((o) => !o);
195
+ return;
196
+ }
197
+ if (e === "image") {
198
+ if (H)
199
+ oe.current?.click();
200
+ else {
201
+ const o = prompt("Image URL:");
202
+ o && be(o) && (i.focus(), document.execCommand("insertImage", !1, o), t(pe(i.innerHTML)));
203
+ }
204
+ return;
205
+ }
206
+ switch (i.focus(), e) {
207
+ case "bold":
208
+ document.execCommand("bold");
209
+ break;
210
+ case "italic":
211
+ document.execCommand("italic");
212
+ break;
213
+ case "underline":
214
+ document.execCommand("underline");
215
+ break;
216
+ case "strikethrough":
217
+ document.execCommand("strikeThrough");
218
+ break;
219
+ case "h1":
220
+ document.execCommand("formatBlock", !1, "h1");
221
+ break;
222
+ case "h2":
223
+ document.execCommand("formatBlock", !1, "h2");
224
+ break;
225
+ case "h3":
226
+ document.execCommand("formatBlock", !1, "h3");
227
+ break;
228
+ case "ul":
229
+ document.execCommand("insertUnorderedList");
230
+ break;
231
+ case "ol":
232
+ document.execCommand("insertOrderedList");
233
+ break;
234
+ case "blockquote":
235
+ document.execCommand("formatBlock", !1, "blockquote");
236
+ break;
237
+ case "hr":
238
+ document.execCommand("insertHorizontalRule");
239
+ break;
240
+ case "subscript":
241
+ document.execCommand("subscript");
242
+ break;
243
+ case "superscript":
244
+ document.execCommand("superscript");
245
+ break;
246
+ case "indent":
247
+ document.execCommand("indent");
248
+ break;
249
+ case "outdent":
250
+ document.execCommand("outdent");
251
+ break;
252
+ case "alignLeft":
253
+ document.execCommand("justifyLeft");
254
+ break;
255
+ case "alignCenter":
256
+ document.execCommand("justifyCenter");
257
+ break;
258
+ case "alignRight":
259
+ document.execCommand("justifyRight");
260
+ break;
261
+ case "alignJustify":
262
+ document.execCommand("justifyFull");
263
+ break;
264
+ case "removeFormat":
265
+ document.execCommand("removeFormat");
266
+ break;
267
+ case "print":
268
+ window.print();
269
+ return;
270
+ case "link": {
271
+ const o = prompt("URL:");
272
+ o && be(o) && document.execCommand("createLink", !1, o);
273
+ break;
274
+ }
275
+ case "unlink":
276
+ document.execCommand("unlink");
277
+ break;
278
+ case "undo":
279
+ document.execCommand("undo");
280
+ break;
281
+ case "redo":
282
+ document.execCommand("redo");
283
+ break;
284
+ case "clear":
285
+ document.execCommand("removeFormat");
286
+ break;
287
+ case "fontSize": {
288
+ r && document.execCommand("fontSize", !1, r);
289
+ break;
290
+ }
291
+ case "fontColor": {
292
+ r && document.execCommand("foreColor", !1, r);
293
+ break;
294
+ }
295
+ case "bgColor": {
296
+ r && document.execCommand("hiliteColor", !1, r);
297
+ break;
298
+ }
299
+ case "table": {
300
+ document.execCommand("insertHTML", !1, '<table class="nice-htmleditor__table"><thead><tr><th>Header 1</th><th>Header 2</th><th>Header 3</th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table><p>&nbsp;</p>');
301
+ break;
302
+ }
303
+ case "code": {
304
+ const a = window.getSelection()?.toString() || "";
305
+ a.includes(`
306
+ `) || a.length > 60 ? document.execCommand(
307
+ "insertHTML",
308
+ !1,
309
+ `<pre class="nice-htmleditor__code-block">${a || "// code"}</pre>`
310
+ ) : document.execCommand("insertHTML", !1, `<code>${a || "code"}</code>`);
311
+ break;
312
+ }
313
+ }
314
+ t(pe(i.innerHTML)), V(i.textContent?.length ?? 0);
315
+ }
316
+ },
317
+ [t, h, b, y, O, c, H, k, F]
318
+ ), Oe = d(
319
+ async (e) => {
320
+ const r = e.target.files?.[0];
321
+ if (!r || !H)
322
+ return;
323
+ const i = await H(r), o = m.current;
324
+ o && i && (o.focus(), document.execCommand("insertImage", !1, i), t(o.innerHTML)), e.target.value = "";
325
+ },
326
+ [H, t]
327
+ ), Ee = d(() => {
328
+ const e = m.current;
329
+ if (!e)
330
+ return;
331
+ const r = e.textContent?.length ?? 0;
332
+ if (L > 0 && r > L && (e.textContent = (e.textContent ?? "").slice(0, L)), V(r), Ne((e.textContent ?? "").trim().split(/\s+/).filter(Boolean).length), t(e.innerHTML), x) {
333
+ const i = window.getSelection();
334
+ if (i && i.rangeCount > 0) {
335
+ const o = i.getRangeAt(0), a = o.startContainer;
336
+ if (a.nodeType === Node.TEXT_NODE) {
337
+ const g = a.textContent || "", w = o.startOffset, R = g.slice(0, w), M = R.lastIndexOf(x);
338
+ if (M >= 0 && (M === 0 || /\s/.test(R[M - 1]))) {
339
+ const S = R.slice(M + x.length);
340
+ if (!/\s/.test(S)) {
341
+ $(!0), Se(S), A(0), Y?.(S);
342
+ return;
343
+ }
344
+ }
345
+ }
346
+ }
347
+ $(!1);
348
+ }
349
+ }, [t, x, Y]), C = Me?.filter((e) => e.label.toLowerCase().includes(Te.toLowerCase())).slice(0, 8) ?? [], U = d(
350
+ (e) => {
351
+ const r = m.current;
352
+ if (!r)
353
+ return;
354
+ const i = window.getSelection();
355
+ if (!i || i.rangeCount === 0)
356
+ return;
357
+ const o = i.getRangeAt(0), a = o.startContainer;
358
+ if (a.nodeType === Node.TEXT_NODE && x) {
359
+ const g = a.textContent || "", w = o.startOffset, M = g.slice(0, w).lastIndexOf(x);
360
+ if (M >= 0) {
361
+ const S = g.slice(0, M), Ue = g.slice(w), Xe = `<span class="nice-htmleditor__mention" data-mention="${e.key}" contenteditable="false">${x}${e.label}</span>&nbsp;`;
362
+ a.textContent = S;
363
+ const X = document.createRange();
364
+ X.setStartAfter(a), X.collapse(!0);
365
+ const Je = X.createContextualFragment(Xe + Ue);
366
+ a.parentNode?.insertBefore(Je, a.nextSibling), i.collapseToEnd(), t(r.innerHTML);
367
+ }
368
+ }
369
+ $(!1);
370
+ },
371
+ [x, t]
372
+ ), Fe = d(
373
+ (e) => {
374
+ if (W && C.length > 0) {
375
+ e.key === "ArrowDown" ? (e.preventDefault(), A((r) => Math.min(r + 1, C.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), A((r) => Math.max(r - 1, 0))) : e.key === "Enter" ? (e.preventDefault(), U(C[K])) : e.key === "Escape" && $(!1);
376
+ return;
377
+ }
378
+ (e.ctrlKey || e.metaKey) && e.key === "b" ? (e.preventDefault(), p("bold")) : (e.ctrlKey || e.metaKey) && e.key === "i" ? (e.preventDefault(), p("italic")) : (e.ctrlKey || e.metaKey) && e.key === "u" ? (e.preventDefault(), p("underline")) : (e.ctrlKey || e.metaKey) && e.key === "f" ? (e.preventDefault(), Q((r) => !r)) : (e.ctrlKey || e.metaKey) && e.key === "z" && !e.shiftKey ? (e.preventDefault(), p("undo")) : (e.ctrlKey || e.metaKey) && (e.key === "y" || e.key === "z" && e.shiftKey) && (e.preventDefault(), p("redo"));
379
+ },
380
+ [W, C, K, U, p]
381
+ ), We = d(
382
+ (e) => {
383
+ if (!G)
384
+ return;
385
+ e.preventDefault();
386
+ const r = e.clipboardData.getData("text/html"), i = e.clipboardData.getData("text/plain");
387
+ if (r) {
388
+ const a = r.replace(/<style[\s\S]*?<\/style>/gi, "").replace(/<script[\s\S]*?<\/script>/gi, "").replace(/class="[^"]*"/gi, "").replace(/style="[^"]*"/gi, "").replace(/<o:[^>]*>[\s\S]*?<\/o:[^>]*>/gi, "").replace(/<!--[\s\S]*?-->/g, "").replace(/<\/?(?:xml|meta|link|font|span)[^>]*>/gi, "");
389
+ document.execCommand("insertHTML", !1, a);
390
+ } else i && document.execCommand("insertText", !1, i);
391
+ const o = m.current;
392
+ o && (t(o.innerHTML), V(o.textContent?.length ?? 0));
393
+ },
394
+ [G, t]
395
+ ), Ke = d(
396
+ async (e) => {
397
+ if (!_)
398
+ return;
399
+ e.preventDefault();
400
+ const r = Array.from(e.dataTransfer.files);
401
+ if (r.length === 0)
402
+ return;
403
+ const i = await _(r), o = m.current;
404
+ if (o) {
405
+ o.focus();
406
+ for (const a of i)
407
+ if (/\.(png|jpe?g|gif|webp|svg|bmp|ico)$/i.test(a) || a.startsWith("data:image/"))
408
+ document.execCommand("insertImage", !1, a);
409
+ else {
410
+ const w = `<a href="${a}">${a.split("/").pop() ?? a}</a>`;
411
+ document.execCommand("insertHTML", !1, w);
412
+ }
413
+ t(o.innerHTML);
414
+ }
415
+ },
416
+ [_, t]
417
+ ), Ae = d(
418
+ (e) => {
419
+ _ && e.preventDefault();
420
+ },
421
+ [_]
422
+ ), fe = d(
423
+ (e) => {
424
+ const r = m.current;
425
+ if (!r || !f)
426
+ return;
427
+ const i = r.textContent ?? "", o = f.toLowerCase(), a = i.toLowerCase();
428
+ (e === 1 ? a.indexOf(o) : a.lastIndexOf(o)) !== -1 && (r.focus(), window.find?.(f));
429
+ },
430
+ [f]
431
+ ), Be = d(() => {
432
+ const e = m.current;
433
+ !e || !f || (e.innerHTML = e.innerHTML.split(f).join(T), t(e.innerHTML));
434
+ }, [f, T, t]), Ve = d(() => {
435
+ if (!f)
436
+ return;
437
+ const e = c.split(f).join(T);
438
+ t(e);
439
+ const r = m.current;
440
+ r && (r.innerHTML = e);
441
+ }, [f, T, c, t]), qe = d(
442
+ (e) => {
443
+ const r = m.current;
444
+ r && (r.focus(), document.execCommand("insertText", !1, e), t(r.innerHTML), de(!1));
445
+ },
446
+ [t]
447
+ ), Qe = d(
448
+ (e) => {
449
+ const r = m.current;
450
+ r && (r.focus(), document.execCommand("insertHTML", !1, e), t(r.innerHTML), ue(!1));
451
+ },
452
+ [t]
453
+ ), Pe = d(
454
+ (e) => {
455
+ const r = b || h;
456
+ return e === "fontSize" ? /* @__PURE__ */ n(
457
+ tt,
458
+ {
459
+ size: "sm",
460
+ value: "",
461
+ onChange: (o) => p("fontSize", String(o)),
462
+ disabled: r,
463
+ placeholder: "Size",
464
+ options: it.map((o) => ({ value: o.value, label: o.label })),
465
+ style: { minWidth: 70, maxWidth: 80 }
466
+ },
467
+ e
468
+ ) : e === "fontColor" ? /* @__PURE__ */ n(
469
+ he,
470
+ {
471
+ value: le,
472
+ onChange: (o) => {
473
+ $e(o), p("fontColor", o);
474
+ },
475
+ disabled: r,
476
+ size: "sm",
477
+ label: "",
478
+ title: "Text color"
479
+ },
480
+ e
481
+ ) : e === "bgColor" ? /* @__PURE__ */ n(
482
+ he,
483
+ {
484
+ value: se,
485
+ onChange: (o) => {
486
+ Re(o), p("bgColor", o);
487
+ },
488
+ disabled: r,
489
+ size: "sm",
490
+ label: "",
491
+ title: "Highlight color"
492
+ },
493
+ e
494
+ ) : /* @__PURE__ */ n(
495
+ v,
496
+ {
497
+ size: "sm",
498
+ variant: e === "markdown" && y || e === "fullscreen" && B || e === "source" && k || e === "findReplace" && q || e === "emoji" && P ? "primary" : "ghost",
499
+ onClick: () => p(e),
500
+ title: e,
501
+ disabled: r,
502
+ children: ot[e] || e
503
+ },
504
+ e
505
+ );
506
+ },
507
+ [
508
+ b,
509
+ h,
510
+ p,
511
+ y,
512
+ B,
513
+ le,
514
+ se,
515
+ k,
516
+ q,
517
+ P
518
+ ]
519
+ );
520
+ return _e ? null : /* @__PURE__ */ u(
521
+ "div",
522
+ {
523
+ className: `nice-field nice-field--${ye} ${z ? "nice-field--error" : ""} ${ke || ""}`,
524
+ style: Ce,
525
+ children: [
526
+ ee && /* @__PURE__ */ u("label", { className: "nice-field__label", htmlFor: re, children: [
527
+ ee,
528
+ ve && /* @__PURE__ */ n("span", { className: "nice-field__required", children: "*" })
529
+ ] }),
530
+ /* @__PURE__ */ u(
531
+ "div",
532
+ {
533
+ ref: Le,
534
+ className: `nice-htmleditor${B ? " nice-htmleditor--fullscreen" : ""}`,
535
+ style: { position: "relative" },
536
+ children: [
537
+ /* @__PURE__ */ n("span", { style: { position: "absolute", top: 6, right: 6, zIndex: 20 }, children: /* @__PURE__ */ n(Ze, { steps: et(He, nt) }) }),
538
+ /* @__PURE__ */ u(
539
+ "div",
540
+ {
541
+ className: "nice-htmleditor__toolbar",
542
+ style: { display: "flex", flexWrap: "wrap", gap: 2, alignItems: "center" },
543
+ children: [
544
+ ge.map(Pe),
545
+ N && N.length > 0 && /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
546
+ /* @__PURE__ */ n(
547
+ v,
548
+ {
549
+ size: "sm",
550
+ variant: me ? "primary" : "ghost",
551
+ onClick: () => ue((e) => !e),
552
+ title: "Insert template",
553
+ children: "??"
554
+ }
555
+ ),
556
+ me && /* @__PURE__ */ n(
557
+ "ul",
558
+ {
559
+ style: {
560
+ position: "absolute",
561
+ top: "100%",
562
+ right: 0,
563
+ zIndex: 200,
564
+ background: "var(--nice-bg-primary, #fff)",
565
+ border: "1px solid var(--nice-border-color, #ddd)",
566
+ borderRadius: 6,
567
+ boxShadow: "0 4px 16px var(--nice-overlay-12, rgba(0, 0, 0, 0.12))",
568
+ listStyle: "none",
569
+ margin: 0,
570
+ padding: 4,
571
+ minWidth: 160,
572
+ maxHeight: 200,
573
+ overflow: "auto"
574
+ },
575
+ children: N.map((e, r) => /* @__PURE__ */ n(
576
+ "li",
577
+ {
578
+ style: { padding: "6px 10px", cursor: "pointer", borderRadius: 4 },
579
+ onMouseDown: (i) => {
580
+ i.preventDefault(), Qe(e.html);
581
+ },
582
+ children: e.label
583
+ },
584
+ r
585
+ ))
586
+ }
587
+ )
588
+ ] })
589
+ ]
590
+ }
591
+ ),
592
+ q && /* @__PURE__ */ u(
593
+ "div",
594
+ {
595
+ className: "nice-htmleditor__find-bar",
596
+ style: {
597
+ display: "flex",
598
+ gap: 4,
599
+ alignItems: "center",
600
+ padding: "4px 8px",
601
+ background: "var(--nice-bg-secondary, #f8f9fa)",
602
+ borderBottom: "1px solid var(--nice-border-color, #ddd)",
603
+ fontSize: "0.875em"
604
+ },
605
+ children: [
606
+ /* @__PURE__ */ n(
607
+ "input",
608
+ {
609
+ type: "text",
610
+ placeholder: "Find...",
611
+ value: f,
612
+ onChange: (e) => Ie(e.target.value),
613
+ style: {
614
+ flex: 1,
615
+ maxWidth: 180,
616
+ padding: "2px 6px",
617
+ border: "1px solid var(--nice-border-color, #ccc)",
618
+ borderRadius: 4,
619
+ background: "var(--nice-bg-primary, #fff)",
620
+ color: "var(--nice-text-primary, #1f2937)"
621
+ }
622
+ }
623
+ ),
624
+ /* @__PURE__ */ n(
625
+ "input",
626
+ {
627
+ type: "text",
628
+ placeholder: "Replace...",
629
+ value: T,
630
+ onChange: (e) => je(e.target.value),
631
+ style: {
632
+ flex: 1,
633
+ maxWidth: 180,
634
+ padding: "2px 6px",
635
+ border: "1px solid var(--nice-border-color, #ccc)",
636
+ borderRadius: 4,
637
+ background: "var(--nice-bg-primary, #fff)",
638
+ color: "var(--nice-text-primary, #1f2937)"
639
+ }
640
+ }
641
+ ),
642
+ /* @__PURE__ */ n(v, { size: "sm", variant: "ghost", onClick: () => fe(1), title: "Find next", children: "?" }),
643
+ /* @__PURE__ */ n(
644
+ v,
645
+ {
646
+ size: "sm",
647
+ variant: "ghost",
648
+ onClick: () => fe(-1),
649
+ title: "Find previous",
650
+ children: "?"
651
+ }
652
+ ),
653
+ /* @__PURE__ */ n(
654
+ v,
655
+ {
656
+ size: "sm",
657
+ variant: "ghost",
658
+ onClick: Be,
659
+ disabled: b || h,
660
+ children: "Replace"
661
+ }
662
+ ),
663
+ /* @__PURE__ */ n(
664
+ v,
665
+ {
666
+ size: "sm",
667
+ variant: "ghost",
668
+ onClick: Ve,
669
+ disabled: b || h,
670
+ children: "All"
671
+ }
672
+ ),
673
+ /* @__PURE__ */ n(v, { size: "sm", variant: "ghost", onClick: () => Q(!1), children: "?" })
674
+ ]
675
+ }
676
+ ),
677
+ P && /* @__PURE__ */ n(
678
+ "div",
679
+ {
680
+ className: "nice-htmleditor__emoji-picker",
681
+ style: {
682
+ padding: 8,
683
+ background: "var(--nice-bg-primary, #fff)",
684
+ borderBottom: "1px solid var(--nice-border-color, #ddd)",
685
+ maxHeight: 180,
686
+ overflowY: "auto"
687
+ },
688
+ children: at.map((e) => /* @__PURE__ */ u("div", { children: [
689
+ /* @__PURE__ */ n(
690
+ "div",
691
+ {
692
+ style: {
693
+ fontSize: "0.7em",
694
+ fontWeight: 600,
695
+ color: "var(--nice-text-muted, #999)",
696
+ padding: "4px 0"
697
+ },
698
+ children: e.label
699
+ }
700
+ ),
701
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexWrap: "wrap", gap: 2 }, children: e.emojis.map((r) => /* @__PURE__ */ n(
702
+ "span",
703
+ {
704
+ style: { cursor: "pointer", fontSize: "1.2em", padding: 2, borderRadius: 4 },
705
+ onClick: () => qe(r),
706
+ title: r,
707
+ children: r
708
+ },
709
+ r
710
+ )) })
711
+ ] }, e.label))
712
+ }
713
+ ),
714
+ /* @__PURE__ */ n(
715
+ "input",
716
+ {
717
+ ref: oe,
718
+ type: "file",
719
+ accept: "image/*",
720
+ style: { display: "none" },
721
+ onChange: Oe
722
+ }
723
+ ),
724
+ k ? /* @__PURE__ */ n(
725
+ "textarea",
726
+ {
727
+ className: "nice-htmleditor__source",
728
+ value: F,
729
+ onChange: (e) => ae(e.target.value),
730
+ style: {
731
+ minHeight: D,
732
+ width: "100%",
733
+ fontFamily: "monospace",
734
+ resize: "vertical",
735
+ whiteSpace: "pre",
736
+ fontSize: "0.85em",
737
+ background: "var(--nice-bg-primary, #fff)",
738
+ color: "var(--nice-text-primary, #1f2937)",
739
+ border: "none",
740
+ padding: 12,
741
+ boxSizing: "border-box",
742
+ outline: "none"
743
+ },
744
+ disabled: b || h
745
+ }
746
+ ) : y ? /* @__PURE__ */ n(
747
+ "textarea",
748
+ {
749
+ className: "nice-htmleditor__markdown",
750
+ value: O,
751
+ onChange: (e) => ie(e.target.value),
752
+ style: {
753
+ minHeight: D,
754
+ width: "100%",
755
+ fontFamily: "monospace",
756
+ resize: "vertical",
757
+ background: "var(--nice-bg-primary, #fff)",
758
+ color: "var(--nice-text-primary, #1f2937)",
759
+ border: "none",
760
+ padding: 12,
761
+ boxSizing: "border-box",
762
+ outline: "none"
763
+ },
764
+ disabled: b || h
765
+ }
766
+ ) : /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
767
+ /* @__PURE__ */ n(
768
+ "div",
769
+ {
770
+ ref: m,
771
+ id: re,
772
+ className: "nice-htmleditor__content",
773
+ contentEditable: !b && !h,
774
+ dangerouslySetInnerHTML: { __html: c },
775
+ onInput: Ee,
776
+ onKeyDown: Fe,
777
+ onPaste: We,
778
+ onDrop: Ke,
779
+ onDragOver: Ae,
780
+ style: { minHeight: D },
781
+ "data-placeholder": xe,
782
+ role: "textbox",
783
+ "aria-multiline": "true",
784
+ suppressContentEditableWarning: !0
785
+ }
786
+ ),
787
+ W && C.length > 0 && /* @__PURE__ */ n("ul", { className: "nice-htmleditor__mention-list", children: C.map((e, r) => /* @__PURE__ */ n(
788
+ "li",
789
+ {
790
+ className: `nice-htmleditor__mention-item ${r === K ? "nice-htmleditor__mention-item--active" : ""}`,
791
+ onMouseDown: (i) => {
792
+ i.preventDefault(), U(e);
793
+ },
794
+ children: e.label
795
+ },
796
+ e.key
797
+ )) })
798
+ ] }),
799
+ /* @__PURE__ */ u(
800
+ "div",
801
+ {
802
+ className: "nice-htmleditor__statusbar",
803
+ style: {
804
+ display: "flex",
805
+ gap: 12,
806
+ padding: "2px 8px",
807
+ fontSize: "0.75em",
808
+ color: "var(--nice-text-muted, #666)",
809
+ borderTop: "1px solid var(--nice-border-color, #eee)"
810
+ },
811
+ children: [
812
+ L > 0 && /* @__PURE__ */ u("span", { children: [
813
+ ce,
814
+ " / ",
815
+ L
816
+ ] }),
817
+ Z && /* @__PURE__ */ u("span", { children: [
818
+ De,
819
+ " words"
820
+ ] }),
821
+ Z && /* @__PURE__ */ u("span", { children: [
822
+ ce,
823
+ " chars"
824
+ ] }),
825
+ k && /* @__PURE__ */ n("span", { style: { fontWeight: 600 }, children: "HTML Source" }),
826
+ y && /* @__PURE__ */ n("span", { style: { fontWeight: 600 }, children: "Markdown" })
827
+ ]
828
+ }
829
+ )
830
+ ]
831
+ }
832
+ ),
833
+ z && /* @__PURE__ */ n("div", { className: "nice-field__error", children: z }),
834
+ te && !z && /* @__PURE__ */ n("div", { className: "nice-field__hint", children: te })
835
+ ]
836
+ }
837
+ );
838
+ };
839
+ export {
840
+ pt as NiceHtmlEditor
841
+ };