@ryuzaki13/react-foundation-ui 3.4.3 → 3.5.0

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 (168) hide show
  1. package/dist/badge/index.js +65 -2
  2. package/dist/badge/index.js.map +1 -0
  3. package/dist/barcode-scanner/index.js +18 -18
  4. package/dist/base-table/index.js +2 -2
  5. package/dist/button/index.js +1 -1
  6. package/dist/check-box/index.js +1 -1
  7. package/dist/chunks/{CalendarView-Dm55k0bN.js → CalendarView-CwbPJG2Y.js} +86 -86
  8. package/dist/chunks/{CalendarView-Dm55k0bN.js.map → CalendarView-CwbPJG2Y.js.map} +1 -1
  9. package/dist/chunks/{ImageViewerRuntime-HGBWp9NM.js → ImageViewerRuntime-DZpgxzF1.js} +25 -25
  10. package/dist/chunks/{ImageViewerRuntime-HGBWp9NM.js.map → ImageViewerRuntime-DZpgxzF1.js.map} +1 -1
  11. package/dist/chunks/{TextEditorLexicalClient-C8nSoz85.js → TextEditorLexicalClient-BRp8jHId.js} +354 -354
  12. package/dist/chunks/{TextEditorLexicalClient-C8nSoz85.js.map → TextEditorLexicalClient-BRp8jHId.js.map} +1 -1
  13. package/dist/chunks/{base-table-BWvKfI2W.js → base-table-BHmboNzl.js} +138 -138
  14. package/dist/chunks/{base-table-BWvKfI2W.js.map → base-table-BHmboNzl.js.map} +1 -1
  15. package/dist/chunks/{button-DF21yxVp.js → button-D7GAU2Wa.js} +20 -20
  16. package/dist/chunks/{button-DF21yxVp.js.map → button-D7GAU2Wa.js.map} +1 -1
  17. package/dist/chunks/{check-box-CZyhzmR0.js → check-box-D_Y6iIWv.js} +19 -19
  18. package/dist/chunks/{check-box-CZyhzmR0.js.map → check-box-D_Y6iIWv.js.map} +1 -1
  19. package/dist/chunks/{context-menu-DgvXGCuI.js → context-menu-BQePxRpu.js} +159 -159
  20. package/dist/chunks/{context-menu-DgvXGCuI.js.map → context-menu-BQePxRpu.js.map} +1 -1
  21. package/dist/chunks/{date-input-D7aBsPJc.js → date-input-Crijdmmq.js} +67 -67
  22. package/dist/chunks/{date-input-D7aBsPJc.js.map → date-input-Crijdmmq.js.map} +1 -1
  23. package/dist/chunks/{date-range-preset-select-BLnY47cv.js → date-range-preset-select-CyzGMvVp.js} +6 -6
  24. package/dist/chunks/{date-range-preset-select-BLnY47cv.js.map → date-range-preset-select-CyzGMvVp.js.map} +1 -1
  25. package/dist/chunks/{dialog-1Z1zCNCe.js → dialog-BcQGVNbu.js} +13 -13
  26. package/dist/chunks/{dialog-1Z1zCNCe.js.map → dialog-BcQGVNbu.js.map} +1 -1
  27. package/dist/chunks/{flex-C7njxZ74.js → flex-DtXK7OM4.js} +29 -29
  28. package/dist/chunks/{flex-C7njxZ74.js.map → flex-DtXK7OM4.js.map} +1 -1
  29. package/dist/chunks/{floating-arrow-DPKwJfww.js → floating-arrow-DKUKx2ZQ.js} +7 -7
  30. package/dist/chunks/{floating-arrow-DPKwJfww.js.map → floating-arrow-DKUKx2ZQ.js.map} +1 -1
  31. package/dist/chunks/{input-DSPKgiCK.js → input-CuRK9Vbz.js} +78 -78
  32. package/dist/chunks/{input-DSPKgiCK.js.map → input-CuRK9Vbz.js.map} +1 -1
  33. package/dist/chunks/{input-files-tIS17-zX.js → input-files-B8j6Pb_M.js} +31 -31
  34. package/dist/chunks/{input-files-tIS17-zX.js.map → input-files-B8j6Pb_M.js.map} +1 -1
  35. package/dist/chunks/{misc-DeGboAt-.js → misc-CGQOXXCy.js} +110 -110
  36. package/dist/chunks/{misc-DeGboAt-.js.map → misc-CGQOXXCy.js.map} +1 -1
  37. package/dist/chunks/{modal-dplfAaER.js → modal-febBsMyR.js} +58 -58
  38. package/dist/chunks/{modal-dplfAaER.js.map → modal-febBsMyR.js.map} +1 -1
  39. package/dist/chunks/{picker-lvm82d0A.js → picker-BA6okKnz.js} +91 -91
  40. package/dist/chunks/{picker-lvm82d0A.js.map → picker-BA6okKnz.js.map} +1 -1
  41. package/dist/chunks/popover-yl5DVe06.js +245 -0
  42. package/dist/chunks/{popover-Bne-Ljbs.js.map → popover-yl5DVe06.js.map} +1 -1
  43. package/dist/chunks/radio-group-CW-K1n9c.js +125 -0
  44. package/dist/chunks/{radio-group-sSnlYjAX.js.map → radio-group-CW-K1n9c.js.map} +1 -1
  45. package/dist/chunks/select-DblNSc5H.js +363 -0
  46. package/dist/chunks/{select-aTGupQan.js.map → select-DblNSc5H.js.map} +1 -1
  47. package/dist/chunks/{separator-B72Aq-6a.js → separator-CIqnk2z9.js} +2 -2
  48. package/dist/chunks/{separator-B72Aq-6a.js.map → separator-CIqnk2z9.js.map} +1 -1
  49. package/dist/chunks/{sortable-BKIwlqhI.js → sortable-CQmMHAF8.js} +38 -38
  50. package/dist/chunks/{sortable-BKIwlqhI.js.map → sortable-CQmMHAF8.js.map} +1 -1
  51. package/dist/chunks/{table-DxoSOvQK.js → table-BnvjPaE1.js} +18 -18
  52. package/dist/chunks/{table-DxoSOvQK.js.map → table-BnvjPaE1.js.map} +1 -1
  53. package/dist/chunks/{table-column-interactions-DzEvVuXe.js → table-column-interactions-Do8LFtiv.js} +20 -20
  54. package/dist/chunks/{table-column-interactions-DzEvVuXe.js.map → table-column-interactions-Do8LFtiv.js.map} +1 -1
  55. package/dist/chunks/{types-D9Wj9wrg.js → types-CxXyru6U.js} +21 -21
  56. package/dist/chunks/{types-D9Wj9wrg.js.map → types-CxXyru6U.js.map} +1 -1
  57. package/dist/chunks/{useODataSelectBase-DR4PrY1j.js → useODataSelectBase-DwR4Lfv-.js} +5 -5
  58. package/dist/chunks/{useODataSelectBase-DR4PrY1j.js.map → useODataSelectBase-DwR4Lfv-.js.map} +1 -1
  59. package/dist/chunks/{wheel-picker-FS58cRsQ.js → wheel-picker-DUHGy7wE.js} +23 -23
  60. package/dist/chunks/{wheel-picker-FS58cRsQ.js.map → wheel-picker-DUHGy7wE.js.map} +1 -1
  61. package/dist/context-menu/index.js +1 -1
  62. package/dist/date-input/index.js +2 -2
  63. package/dist/date-range-preset-select/index.js +1 -1
  64. package/dist/date-time-input/index.js +122 -122
  65. package/dist/date-time-input/index.js.map +1 -1
  66. package/dist/detail/index.js +22 -22
  67. package/dist/dialog/index.js +1 -1
  68. package/dist/disclosure/index.js +9 -9
  69. package/dist/drop-zone/index.js +21 -21
  70. package/dist/errors/index.js +50 -50
  71. package/dist/expandable-action-panel/index.js +24 -24
  72. package/dist/flex/index.js +1 -1
  73. package/dist/flex/useFlexClasses.d.ts +1 -1
  74. package/dist/floating-arrow/index.js +1 -1
  75. package/dist/fullscreen-portal/index.js +8 -8
  76. package/dist/image/index.js +119 -119
  77. package/dist/input/index.js +1 -1
  78. package/dist/input-date-time/index.js +55 -55
  79. package/dist/input-file/index.js +16 -16
  80. package/dist/input-files/index.js +1 -1
  81. package/dist/input-image/index.js +17 -17
  82. package/dist/input-search/index.js +30 -2
  83. package/dist/input-search/index.js.map +1 -0
  84. package/dist/layout-picker/index.js +93 -93
  85. package/dist/layout-picker/index.js.map +1 -1
  86. package/dist/list/index.js +39 -39
  87. package/dist/listbox/index.js +33 -33
  88. package/dist/misc/index.js +1 -1
  89. package/dist/modal/index.js +1 -1
  90. package/dist/multi-select/index.js +466 -2
  91. package/dist/multi-select/index.js.map +1 -0
  92. package/dist/notifications/index.js +45 -45
  93. package/dist/option/index.js +30 -30
  94. package/dist/period-select/index.js +7 -7
  95. package/dist/picker/index.js +1 -1
  96. package/dist/popover/index.js +1 -1
  97. package/dist/preset-range-date-input/index.js +10 -10
  98. package/dist/preset-select/index.js +1 -1
  99. package/dist/radio-button/index.js +9 -9
  100. package/dist/radio-group/index.js +1 -1
  101. package/dist/select/index.js +1 -1
  102. package/dist/separator/index.js +1 -1
  103. package/dist/simple-table/index.js +5 -5
  104. package/dist/slider/index.js +82 -82
  105. package/dist/slider/index.js.map +1 -1
  106. package/dist/sortable/index.js +1 -1
  107. package/dist/splitter/index.js +55 -55
  108. package/dist/state-select/index.js +17 -17
  109. package/dist/styles.css +1 -1
  110. package/dist/switch/index.js +18 -18
  111. package/dist/table/index.js +1 -1
  112. package/dist/table-column-interactions/index.js +1 -1
  113. package/dist/table-editor/index.js +99 -99
  114. package/dist/table-sorting/index.js +13 -13
  115. package/dist/tabs/index.js +83 -83
  116. package/dist/tag-input/index.js +58 -58
  117. package/dist/tag-input/index.js.map +1 -1
  118. package/dist/text/index.js +18 -18
  119. package/dist/text-editor/index.js +3 -3
  120. package/dist/textarea/index.js +1 -1
  121. package/dist/three-scene/index.js +7 -7
  122. package/dist/toggle/index.js +20 -20
  123. package/dist/toolbar/index.js +16 -16
  124. package/dist/tree/index.js +24 -24
  125. package/dist/tree-select/index.js +189 -189
  126. package/dist/tree-select/index.js.map +1 -1
  127. package/dist/tree-table/index.js +33 -33
  128. package/dist/tree-table/index.js.map +1 -1
  129. package/dist/wheel-picker/index.js +1 -1
  130. package/package.json +1 -5
  131. package/storybook-static/project.json +1 -1
  132. package/dist/advanced-search/index.d.ts +0 -3
  133. package/dist/advanced-search/index.d.ts.map +0 -1
  134. package/dist/advanced-search/index.js +0 -399
  135. package/dist/advanced-search/index.js.map +0 -1
  136. package/dist/advanced-search/lib/index.d.ts +0 -2
  137. package/dist/advanced-search/lib/index.d.ts.map +0 -1
  138. package/dist/advanced-search/lib/searchParts.d.ts +0 -3
  139. package/dist/advanced-search/lib/searchParts.d.ts.map +0 -1
  140. package/dist/advanced-search/model/index.d.ts +0 -5
  141. package/dist/advanced-search/model/index.d.ts.map +0 -1
  142. package/dist/advanced-search/model/types.d.ts +0 -55
  143. package/dist/advanced-search/model/types.d.ts.map +0 -1
  144. package/dist/advanced-search/model/useAdvancedSearch.d.ts +0 -11
  145. package/dist/advanced-search/model/useAdvancedSearch.d.ts.map +0 -1
  146. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts +0 -6
  147. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts.map +0 -1
  148. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts +0 -13
  149. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts.map +0 -1
  150. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts +0 -23
  151. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts.map +0 -1
  152. package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts +0 -16
  153. package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts.map +0 -1
  154. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts +0 -9
  155. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts.map +0 -1
  156. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts +0 -9
  157. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts.map +0 -1
  158. package/dist/advanced-search/ui/index.d.ts +0 -2
  159. package/dist/advanced-search/ui/index.d.ts.map +0 -1
  160. package/dist/chunks/badge-6mXO9BWP.js +0 -65
  161. package/dist/chunks/badge-6mXO9BWP.js.map +0 -1
  162. package/dist/chunks/input-search-Cat4c7SM.js +0 -30
  163. package/dist/chunks/input-search-Cat4c7SM.js.map +0 -1
  164. package/dist/chunks/multi-select-BZ9N6Dal.js +0 -466
  165. package/dist/chunks/multi-select-BZ9N6Dal.js.map +0 -1
  166. package/dist/chunks/popover-Bne-Ljbs.js +0 -245
  167. package/dist/chunks/radio-group-sSnlYjAX.js +0 -125
  168. package/dist/chunks/select-aTGupQan.js +0 -363
@@ -1,28 +1,28 @@
1
- import { n as e } from "./button-DF21yxVp.js";
1
+ import { n as e } from "./button-D7GAU2Wa.js";
2
2
  import { r as t } from "./grid-dI94AAbi.js";
3
- import { i as n, n as r, r as i } from "./modal-dplfAaER.js";
4
- import { n as a } from "./input-DSPKgiCK.js";
5
- import { t as o } from "./check-box-CZyhzmR0.js";
6
- import { n as s } from "./radio-group-sSnlYjAX.js";
7
- import { a as c, i as l, n as u, r as d, t as f } from "./types-D9Wj9wrg.js";
8
- import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
9
- import { cn as v } from "@ryuzaki13/react-foundation-lib/utils";
10
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
11
- import { AlignCenter as S, AlignJustify as C, AlignLeft as w, AlignRight as T, AtSign as E, BookType as D, BrushCleaning as O, Clock as k, ExternalLink as ee, Languages as te, Link as ne, MessageSquareQuote as re, Phone as ie, PictureInPicture as ae, Redo as oe, Shredder as se, Undo as ce } from "lucide-react";
12
- import { formatPhone as le, parseDate as A } from "@ryuzaki13/react-foundation-lib/formatters";
13
- import { isSafe as j, validateUrl as ue } from "@ryuzaki13/react-foundation-lib/validators";
14
- import { $generateHtmlFromNodes as de, $generateNodesFromDOM as fe } from "@lexical/html";
15
- import { $isListItemNode as pe, $isListNode as me, INSERT_ORDERED_LIST_COMMAND as he, INSERT_UNORDERED_LIST_COMMAND as ge, ListItemNode as _e, ListNode as ve, REMOVE_LIST_COMMAND as ye } from "@lexical/list";
16
- import { LexicalComposer as be } from "@lexical/react/LexicalComposer";
17
- import { ContentEditable as xe } from "@lexical/react/LexicalContentEditable";
18
- import { LexicalErrorBoundary as Se } from "@lexical/react/LexicalErrorBoundary";
19
- import { HistoryPlugin as Ce } from "@lexical/react/LexicalHistoryPlugin";
20
- import { ListPlugin as we } from "@lexical/react/LexicalListPlugin";
21
- import { OnChangePlugin as Te } from "@lexical/react/LexicalOnChangePlugin";
22
- import { RichTextPlugin as Ee } from "@lexical/react/LexicalRichTextPlugin";
23
- import { $createHeadingNode as De, $createQuoteNode as Oe, $isHeadingNode as ke, $isQuoteNode as Ae, HeadingNode as je, QuoteNode as Me } from "@lexical/rich-text";
24
- import { useLexicalComposerContext as Ne } from "@lexical/react/LexicalComposerContext";
25
- import { $applyNodeReplacement as Pe, $createParagraphNode as M, $createTextNode as N, $getNodeByKey as P, $getRoot as F, $getSelection as I, $isElementNode as Fe, $isRangeSelection as L, $isTextNode as Ie, $setSelection as Le, ElementNode as Re, FORMAT_ELEMENT_COMMAND as ze, FORMAT_TEXT_COMMAND as Be, HISTORY_MERGE_TAG as R, HISTORY_PUSH_TAG as z, REDO_COMMAND as Ve, SKIP_DOM_SELECTION_TAG as B, UNDO_COMMAND as He } from "lexical";
3
+ import { i as n, n as r, r as i } from "./modal-febBsMyR.js";
4
+ import { n as a } from "./input-CuRK9Vbz.js";
5
+ import { t as o } from "./check-box-D_Y6iIWv.js";
6
+ import { n as s } from "./radio-group-CW-K1n9c.js";
7
+ import { a as c, i as l, n as u, r as d, t as f } from "./types-CxXyru6U.js";
8
+ import { cn as p } from "@ryuzaki13/react-foundation-lib/utils";
9
+ import { AlignCenter as m, AlignJustify as h, AlignLeft as g, AlignRight as _, AtSign as v, BookType as y, BrushCleaning as b, Clock as x, ExternalLink as S, Languages as C, Link as w, MessageSquareQuote as T, Phone as ee, PictureInPicture as te, Redo as ne, Shredder as re, Undo as ie } from "lucide-react";
10
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
11
+ import { useCallback as k, useEffect as ae, useMemo as A, useRef as j, useState as M } from "react";
12
+ import { formatPhone as oe, parseDate as se } from "@ryuzaki13/react-foundation-lib/formatters";
13
+ import { isSafe as N, validateUrl as ce } from "@ryuzaki13/react-foundation-lib/validators";
14
+ import { $generateHtmlFromNodes as le, $generateNodesFromDOM as ue } from "@lexical/html";
15
+ import { $isListItemNode as de, $isListNode as fe, INSERT_ORDERED_LIST_COMMAND as pe, INSERT_UNORDERED_LIST_COMMAND as me, ListItemNode as he, ListNode as ge, REMOVE_LIST_COMMAND as _e } from "@lexical/list";
16
+ import { LexicalComposer as ve } from "@lexical/react/LexicalComposer";
17
+ import { ContentEditable as ye } from "@lexical/react/LexicalContentEditable";
18
+ import { LexicalErrorBoundary as be } from "@lexical/react/LexicalErrorBoundary";
19
+ import { HistoryPlugin as xe } from "@lexical/react/LexicalHistoryPlugin";
20
+ import { ListPlugin as Se } from "@lexical/react/LexicalListPlugin";
21
+ import { OnChangePlugin as Ce } from "@lexical/react/LexicalOnChangePlugin";
22
+ import { RichTextPlugin as we } from "@lexical/react/LexicalRichTextPlugin";
23
+ import { $createHeadingNode as Te, $createQuoteNode as Ee, $isHeadingNode as De, $isQuoteNode as Oe, HeadingNode as ke, QuoteNode as Ae } from "@lexical/rich-text";
24
+ import { useLexicalComposerContext as je } from "@lexical/react/LexicalComposerContext";
25
+ import { $applyNodeReplacement as Me, $createParagraphNode as P, $createTextNode as F, $getNodeByKey as I, $getRoot as L, $getSelection as R, $isElementNode as Ne, $isRangeSelection as z, $isTextNode as Pe, $setSelection as Fe, ElementNode as Ie, FORMAT_ELEMENT_COMMAND as Le, FORMAT_TEXT_COMMAND as Re, HISTORY_MERGE_TAG as B, HISTORY_PUSH_TAG as ze, REDO_COMMAND as Be, SKIP_DOM_SELECTION_TAG as Ve, UNDO_COMMAND as He } from "lexical";
26
26
  import { $isLinkNode as Ue, LinkNode as We } from "@lexical/link";
27
27
  import { $setBlocksType as V } from "@lexical/selection";
28
28
  import { $findMatchingParent as Ge } from "@lexical/utils";
@@ -33,7 +33,7 @@ var H = {
33
33
  //#endregion
34
34
  //#region src/text-editor/toolbar/ToolbarControl.tsx
35
35
  function U({ isActive: t, disabled: n, style: r, title: i, icon: a, onClick: o }) {
36
- return /* @__PURE__ */ b(e, {
36
+ return /* @__PURE__ */ D(e, {
37
37
  title: i,
38
38
  disabled: n,
39
39
  appearance: "outline",
@@ -48,30 +48,30 @@ function U({ isActive: t, disabled: n, style: r, title: i, icon: a, onClick: o }
48
48
  //#endregion
49
49
  //#region src/text-editor/toolbar/AlignmentControls.tsx
50
50
  function Ke({ onAlignmentChange: e, activeAlignment: t }) {
51
- return /* @__PURE__ */ x("div", {
51
+ return /* @__PURE__ */ O("div", {
52
52
  className: H.groupControls,
53
53
  children: [
54
- /* @__PURE__ */ b(U, {
54
+ /* @__PURE__ */ D(U, {
55
55
  title: "По левому краю",
56
- icon: /* @__PURE__ */ b(w, {}),
56
+ icon: /* @__PURE__ */ D(g, {}),
57
57
  isActive: t === "left",
58
58
  onClick: () => e("left")
59
59
  }),
60
- /* @__PURE__ */ b(U, {
60
+ /* @__PURE__ */ D(U, {
61
61
  title: "По центру",
62
- icon: /* @__PURE__ */ b(S, {}),
62
+ icon: /* @__PURE__ */ D(m, {}),
63
63
  isActive: t === "center",
64
64
  onClick: () => e("center")
65
65
  }),
66
- /* @__PURE__ */ b(U, {
66
+ /* @__PURE__ */ D(U, {
67
67
  title: "По правому краю",
68
- icon: /* @__PURE__ */ b(T, {}),
68
+ icon: /* @__PURE__ */ D(_, {}),
69
69
  isActive: t === "right",
70
70
  onClick: () => e("right")
71
71
  }),
72
- /* @__PURE__ */ b(U, {
72
+ /* @__PURE__ */ D(U, {
73
73
  title: "По ширине",
74
- icon: /* @__PURE__ */ b(C, {}),
74
+ icon: /* @__PURE__ */ D(h, {}),
75
75
  isActive: t === "justify",
76
76
  onClick: () => e("justify")
77
77
  })
@@ -81,15 +81,15 @@ function Ke({ onAlignmentChange: e, activeAlignment: t }) {
81
81
  //#endregion
82
82
  //#region src/text-editor/toolbar/HistoryControls.tsx
83
83
  function qe({ onUndo: e, onRedo: t }) {
84
- return /* @__PURE__ */ x("div", {
84
+ return /* @__PURE__ */ O("div", {
85
85
  className: H.groupControls,
86
- children: [/* @__PURE__ */ b(U, {
86
+ children: [/* @__PURE__ */ D(U, {
87
87
  title: "Отменить последнее действие",
88
- icon: /* @__PURE__ */ b(ce, {}),
88
+ icon: /* @__PURE__ */ D(ie, {}),
89
89
  onClick: e
90
- }), /* @__PURE__ */ b(U, {
90
+ }), /* @__PURE__ */ D(U, {
91
91
  title: "Повторить предыдущее действие",
92
- icon: /* @__PURE__ */ b(oe, {}),
92
+ icon: /* @__PURE__ */ D(ne, {}),
93
93
  onClick: t
94
94
  })]
95
95
  });
@@ -97,30 +97,30 @@ function qe({ onUndo: e, onRedo: t }) {
97
97
  //#endregion
98
98
  //#region src/text-editor/toolbar/LinkButtons.tsx
99
99
  function Je({ disabled: e, onClick: t }) {
100
- return /* @__PURE__ */ x("div", {
100
+ return /* @__PURE__ */ O("div", {
101
101
  className: H.groupControls,
102
102
  children: [
103
- /* @__PURE__ */ b(U, {
103
+ /* @__PURE__ */ D(U, {
104
104
  title: "Добавить ссылку на статью",
105
- icon: /* @__PURE__ */ b(ne, {}),
105
+ icon: /* @__PURE__ */ D(w, {}),
106
106
  onClick: () => t(f.LOCAL_LINK)
107
107
  }),
108
- /* @__PURE__ */ b(U, {
108
+ /* @__PURE__ */ D(U, {
109
109
  title: "Добавить ссылку",
110
110
  disabled: e,
111
- icon: /* @__PURE__ */ b(ee, {}),
111
+ icon: /* @__PURE__ */ D(S, {}),
112
112
  onClick: () => t(f.LINK)
113
113
  }),
114
- /* @__PURE__ */ b(U, {
114
+ /* @__PURE__ */ D(U, {
115
115
  title: "Добавить телефон",
116
116
  disabled: e,
117
- icon: /* @__PURE__ */ b(ie, {}),
117
+ icon: /* @__PURE__ */ D(ee, {}),
118
118
  onClick: () => t(f.PHONE)
119
119
  }),
120
- /* @__PURE__ */ b(U, {
120
+ /* @__PURE__ */ D(U, {
121
121
  title: "Добавить email",
122
122
  disabled: e,
123
- icon: /* @__PURE__ */ b(E, {}),
123
+ icon: /* @__PURE__ */ D(v, {}),
124
124
  onClick: () => t(f.EMAIL)
125
125
  })
126
126
  ]
@@ -129,37 +129,37 @@ function Je({ disabled: e, onClick: t }) {
129
129
  //#endregion
130
130
  //#region src/text-editor/toolbar/TagButtons.tsx
131
131
  function Ye({ onClick: e }) {
132
- return /* @__PURE__ */ x("div", {
132
+ return /* @__PURE__ */ O("div", {
133
133
  className: H.groupControls,
134
134
  children: [
135
- /* @__PURE__ */ b(U, {
135
+ /* @__PURE__ */ D(U, {
136
136
  title: "Вставить Аббревиатуру",
137
- icon: /* @__PURE__ */ b(D, {}),
137
+ icon: /* @__PURE__ */ D(y, {}),
138
138
  onClick: () => e(u.abbr)
139
139
  }),
140
- /* @__PURE__ */ b(U, {
140
+ /* @__PURE__ */ D(U, {
141
141
  title: "Вставить Код языка",
142
- icon: /* @__PURE__ */ b(te, {}),
142
+ icon: /* @__PURE__ */ D(C, {}),
143
143
  onClick: () => e(u.lang)
144
144
  }),
145
- /* @__PURE__ */ b(U, {
145
+ /* @__PURE__ */ D(U, {
146
146
  title: "Вставить Дату/время",
147
- icon: /* @__PURE__ */ b(k, {}),
147
+ icon: /* @__PURE__ */ D(x, {}),
148
148
  onClick: () => e(u.time)
149
149
  }),
150
- /* @__PURE__ */ b(U, {
150
+ /* @__PURE__ */ D(U, {
151
151
  title: "Вставить Ссылку на источник",
152
- icon: /* @__PURE__ */ b(re, {}),
152
+ icon: /* @__PURE__ */ D(T, {}),
153
153
  onClick: () => e(u.cite)
154
154
  }),
155
- /* @__PURE__ */ b(U, {
155
+ /* @__PURE__ */ D(U, {
156
156
  title: "Вставить Удалённый фрагмент",
157
- icon: /* @__PURE__ */ b(se, {}),
157
+ icon: /* @__PURE__ */ D(re, {}),
158
158
  onClick: () => e(u.del)
159
159
  }),
160
- /* @__PURE__ */ b(U, {
160
+ /* @__PURE__ */ D(U, {
161
161
  title: "Вставить Добавленный фрагмент",
162
- icon: /* @__PURE__ */ b(ae, {}),
162
+ icon: /* @__PURE__ */ D(te, {}),
163
163
  onClick: () => e(u.ins)
164
164
  })
165
165
  ]
@@ -172,22 +172,22 @@ function Xe({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineSty
172
172
  history: !0,
173
173
  ...e || {}
174
174
  };
175
- return /* @__PURE__ */ x("div", {
175
+ return /* @__PURE__ */ O("div", {
176
176
  className: H.toolbar,
177
177
  children: [
178
- f.blocks && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
178
+ f.blocks && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("div", {
179
179
  className: H.groupControls,
180
- children: d.map((e) => /* @__PURE__ */ b(U, {
180
+ children: d.map((e) => /* @__PURE__ */ D(U, {
181
181
  isActive: e.style === t.blockType,
182
182
  style: e.style,
183
183
  title: e.label,
184
184
  icon: e.icon,
185
185
  onClick: n
186
186
  }, e.style))
187
- }), /* @__PURE__ */ b("hr", {})] }),
188
- f.inline && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
187
+ }), /* @__PURE__ */ D("hr", {})] }),
188
+ f.inline && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("div", {
189
189
  className: H.groupControls,
190
- children: l.map((e) => /* @__PURE__ */ b(U, {
190
+ children: l.map((e) => /* @__PURE__ */ D(U, {
191
191
  isActive: !!t.activeInlineStyles[e.style],
192
192
  title: e.label,
193
193
  style: e.style,
@@ -195,24 +195,24 @@ function Xe({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineSty
195
195
  disabled: t.isTextUnselected,
196
196
  onClick: r
197
197
  }, e.style))
198
- }), /* @__PURE__ */ b("hr", {})] }),
199
- f.alignment && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ke, {
198
+ }), /* @__PURE__ */ D("hr", {})] }),
199
+ f.alignment && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(Ke, {
200
200
  activeAlignment: t.activeAlignment,
201
201
  onAlignmentChange: i
202
- }), /* @__PURE__ */ b("hr", {})] }),
203
- f.links && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Je, {
202
+ }), /* @__PURE__ */ D("hr", {})] }),
203
+ f.links && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(Je, {
204
204
  disabled: t.isTextUnselected,
205
205
  onClick: a
206
- }), /* @__PURE__ */ b("hr", {})] }),
207
- f.tags && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ye, { onClick: o }), /* @__PURE__ */ b("hr", {})] }),
208
- f.history && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(qe, {
206
+ }), /* @__PURE__ */ D("hr", {})] }),
207
+ f.tags && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(Ye, { onClick: o }), /* @__PURE__ */ D("hr", {})] }),
208
+ f.history && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(qe, {
209
209
  onUndo: s,
210
210
  onRedo: c
211
- }), /* @__PURE__ */ b("hr", {})] }),
212
- /* @__PURE__ */ b(U, {
211
+ }), /* @__PURE__ */ D("hr", {})] }),
212
+ /* @__PURE__ */ D(U, {
213
213
  disabled: t.isTextUnselected,
214
214
  title: "Очистить выбранный тег",
215
- icon: /* @__PURE__ */ b(O, {}),
215
+ icon: /* @__PURE__ */ D(b, {}),
216
216
  onClick: u
217
217
  })
218
218
  ]
@@ -221,12 +221,12 @@ function Xe({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineSty
221
221
  //#endregion
222
222
  //#region src/text-editor/lexical/plugins/InitialHtmlPlugin.tsx
223
223
  function Ze({ initialHTML: e, shouldSkip: t }) {
224
- let [n] = Ne(), r = g(!1);
225
- return m(() => {
224
+ let [n] = je(), r = j(!1);
225
+ return ae(() => {
226
226
  t || !e || r.current || typeof window > "u" || (r.current = !0, n.update(() => {
227
- let t = F(), r = new DOMParser().parseFromString(e, "text/html"), i = fe(n, r);
227
+ let t = L(), r = new DOMParser().parseFromString(e, "text/html"), i = ue(n, r);
228
228
  if (t.clear(), i.length === 0) {
229
- t.append(M());
229
+ t.append(P());
230
230
  return;
231
231
  }
232
232
  t.append(...i);
@@ -278,17 +278,17 @@ var Qe = {
278
278
  default: return null;
279
279
  }
280
280
  }, nt = () => {
281
- let e = I();
282
- if (!L(e)) return "unstyled";
281
+ let e = R();
282
+ if (!z(e)) return "unstyled";
283
283
  let t = e.anchor.getNode().getTopLevelElementOrThrow();
284
- if (pe(t)) {
284
+ if (de(t)) {
285
285
  let e = t.getParent();
286
- if (me(e)) return e.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item";
286
+ if (fe(e)) return e.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item";
287
287
  }
288
- return me(t) ? t.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item" : ke(t) ? $e(t.getTag()) : Ae(t) ? "blockquote" : t.getType() === "paragraph" ? "unstyled" : t.getType();
288
+ return fe(t) ? t.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item" : De(t) ? $e(t.getTag()) : Oe(t) ? "blockquote" : t.getType() === "paragraph" ? "unstyled" : t.getType();
289
289
  }, rt = () => {
290
- let e = I();
291
- if (!L(e)) return null;
290
+ let e = R();
291
+ if (!z(e)) return null;
292
292
  let t = e.anchor.getNode().getTopLevelElementOrThrow().getFormatType();
293
293
  switch (t) {
294
294
  case "left":
@@ -298,8 +298,8 @@ var Qe = {
298
298
  default: return null;
299
299
  }
300
300
  }, it = () => {
301
- let e = I();
302
- return L(e) ? {
301
+ let e = R();
302
+ return z(e) ? {
303
303
  blockType: nt(),
304
304
  isTextUnselected: e.isCollapsed(),
305
305
  activeInlineStyles: {
@@ -316,8 +316,8 @@ var Qe = {
316
316
  //#endregion
317
317
  //#region src/text-editor/lexical/plugins/SelectionStatePlugin.tsx
318
318
  function at({ onEditorReady: e, onStateChange: t }) {
319
- let [n] = Ne();
320
- return m(() => (e(n), n.registerUpdateListener(({ editorState: e }) => {
319
+ let [n] = je();
320
+ return ae(() => (e(n), n.registerUpdateListener(({ editorState: e }) => {
321
321
  e.read(() => {
322
322
  t(it());
323
323
  });
@@ -337,8 +337,8 @@ var ot = (e) => ({
337
337
  //#endregion
338
338
  //#region src/text-editor/lib/selection/findSelectedInlineNode.ts
339
339
  function W(e) {
340
- let t = I();
341
- if (!L(t)) return null;
340
+ let t = R();
341
+ if (!z(t)) return null;
342
342
  let n = Ge(t.anchor.getNode(), e), r = Ge(t.focus.getNode(), e);
343
343
  return n && r && n.is(r) && e(n) ? n : null;
344
344
  }
@@ -346,14 +346,14 @@ function W(e) {
346
346
  //#region src/text-editor/lib/selection/restoreEditorDialogSelection.ts
347
347
  function st(e) {
348
348
  if (e && [e.anchor, e.focus].every((e) => {
349
- let t = P(e.key);
350
- return !t?.isAttached() || e.offset < 0 ? !1 : e.type === "text" ? Ie(t) && e.offset <= t.getTextContentSize() : Fe(t) && e.offset <= t.getChildrenSize();
349
+ let t = I(e.key);
350
+ return !t?.isAttached() || e.offset < 0 ? !1 : e.type === "text" ? Pe(t) && e.offset <= t.getTextContentSize() : Ne(t) && e.offset <= t.getChildrenSize();
351
351
  })) {
352
352
  let t = e.clone();
353
- return Le(t), t;
353
+ return Fe(t), t;
354
354
  }
355
- let t = F();
356
- return t.isEmpty() && t.append(M()), t.selectEnd();
355
+ let t = L();
356
+ return t.isEmpty() && t.append(P()), t.selectEnd();
357
357
  }
358
358
  //#endregion
359
359
  //#region src/text-editor/lib/semantic/getSemanticTagDepth.ts
@@ -471,7 +471,7 @@ var ct = (e) => {
471
471
  let t = this.getWritable();
472
472
  return t.__text = e, this;
473
473
  }
474
- }, K = (e = "", t) => Pe(new G(e, t)), q = (e) => e instanceof G, ut = (e) => {
474
+ }, K = (e = "", t) => Me(new G(e, t)), q = (e) => e instanceof G, ut = (e) => {
475
475
  let t = {};
476
476
  return Array.from(e.attributes).forEach((e) => {
477
477
  e.name !== "class" && (t[e.name] = e.value);
@@ -489,7 +489,7 @@ var ct = (e) => {
489
489
  ].includes(t)) return { node: null };
490
490
  let n = e.textContent;
491
491
  return (n === null || n === "") && e.children.length === 0 ? { node: null } : { node: X(t, ut(e), n) };
492
- }, Y = class e extends Re {
492
+ }, Y = class e extends Ie {
493
493
  __tag;
494
494
  __attributes;
495
495
  __text;
@@ -603,70 +603,70 @@ var ct = (e) => {
603
603
  let t = this.getWritable();
604
604
  return t.__text = e, this;
605
605
  }
606
- }, X = (e, t = {}, n = null) => Pe(new Y(e, t, n)), Z = (e) => e instanceof Y;
606
+ }, X = (e, t = {}, n = null) => Me(new Y(e, t, n)), Z = (e) => e instanceof Y;
607
607
  //#endregion
608
608
  //#region src/text-editor/model/hooks/useTextEditorLexicalActions.ts
609
609
  function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialog: r, onOpenTagDialog: i }) {
610
- let a = g(null), o = g(null), [s, c] = _(""), [l, d] = _({
610
+ let a = j(null), o = j(null), [s, c] = M(""), [l, d] = M({
611
611
  text: "",
612
612
  attributes: {}
613
- }), m = p((n) => {
613
+ }), p = k((n) => {
614
614
  if (e) {
615
615
  if (n === "unordered-list-item") {
616
616
  if (t.blockType === "unordered-list-item") {
617
- e.dispatchCommand(ye, void 0);
617
+ e.dispatchCommand(_e, void 0);
618
618
  return;
619
619
  }
620
- e.dispatchCommand(ge, void 0);
620
+ e.dispatchCommand(me, void 0);
621
621
  return;
622
622
  }
623
623
  if (n === "ordered-list-item") {
624
624
  if (t.blockType === "ordered-list-item") {
625
- e.dispatchCommand(ye, void 0);
625
+ e.dispatchCommand(_e, void 0);
626
626
  return;
627
627
  }
628
- e.dispatchCommand(he, void 0);
628
+ e.dispatchCommand(pe, void 0);
629
629
  return;
630
630
  }
631
631
  e.update(() => {
632
- let e = I();
633
- if (!L(e)) return;
632
+ let e = R();
633
+ if (!z(e)) return;
634
634
  if (n === "unstyled" || n === "paragraph") {
635
- V(e, () => M());
635
+ V(e, () => P());
636
636
  return;
637
637
  }
638
638
  if (n === "blockquote") {
639
- V(e, () => Oe());
639
+ V(e, () => Ee());
640
640
  return;
641
641
  }
642
642
  let t = et(n);
643
- t && V(e, () => De(t));
643
+ t && V(e, () => Te(t));
644
644
  });
645
645
  }
646
- }, [e, t.blockType]), h = p((t) => {
646
+ }, [e, t.blockType]), m = k((t) => {
647
647
  if (!e) return;
648
648
  let n = tt(t);
649
- n && e.dispatchCommand(Be, n);
650
- }, [e]), v = p((t) => {
651
- e && e.dispatchCommand(ze, t);
652
- }, [e]), y = p(() => {
649
+ n && e.dispatchCommand(Re, n);
650
+ }, [e]), h = k((t) => {
651
+ e && e.dispatchCommand(Le, t);
652
+ }, [e]), g = k(() => {
653
653
  e && e.dispatchCommand(He, void 0);
654
- }, [e]), b = p(() => {
655
- e && e.dispatchCommand(Ve, void 0);
656
- }, [e]), x = p((t) => {
654
+ }, [e]), _ = k(() => {
655
+ e && e.dispatchCommand(Be, void 0);
656
+ }, [e]), v = k((t) => {
657
657
  if (!e) return;
658
658
  let n = a.current;
659
659
  a.current = null, e.update(() => {
660
660
  st(n?.editor === e ? n.selection : null);
661
661
  }, {
662
662
  discrete: !0,
663
- tag: [R, B]
663
+ tag: [B, Ve]
664
664
  }), e.update(() => {
665
- let r = I();
666
- if (!L(r)) return;
667
- let i = n?.editor === e && n.key ? P(n.key) : null;
665
+ let r = R();
666
+ if (!z(r)) return;
667
+ let i = n?.editor === e && n.key ? I(n.key) : null;
668
668
  if (q(i) && i.isAttached()) {
669
- i.setURL(t.url).setAriaLabel(t.ariaLabel).setQrCode(t.qrCode).setAdd(t.add || null), n?.local && t.text !== i.getTextContent() && i.clear().append(N(t.text)), i.setText(i.getTextContent()), i.selectEnd();
669
+ i.setURL(t.url).setAriaLabel(t.ariaLabel).setQrCode(t.qrCode).setAdd(t.add || null), n?.local && t.text !== i.getTextContent() && i.clear().append(F(t.text)), i.setText(i.getTextContent()), i.selectEnd();
670
670
  return;
671
671
  }
672
672
  let a = r.getTextContent(), o = t.text.length > 0 ? t.text : a;
@@ -678,33 +678,33 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
678
678
  qrCode: t.qrCode,
679
679
  add: t.add || null,
680
680
  text: o
681
- }), c = N(o);
681
+ }), c = F(o);
682
682
  s.append(c), r.insertNodes([s]);
683
- }, { tag: z }), requestAnimationFrame(() => {
683
+ }, { tag: ze }), requestAnimationFrame(() => {
684
684
  e.focus();
685
685
  });
686
- }, [e]), S = p((e, t, n, r, i) => {
687
- x({
686
+ }, [e]), y = k((e, t, n, r, i) => {
687
+ v({
688
688
  url: e,
689
689
  text: t,
690
690
  add: n,
691
691
  ariaLabel: r,
692
692
  qrCode: i
693
693
  });
694
- }, [x]), C = p((e, t) => {
695
- x({
694
+ }, [v]), b = k((e, t) => {
695
+ v({
696
696
  url: e,
697
697
  text: t,
698
698
  add: "",
699
699
  ariaLabel: "Внутренняя ссылка на статью: " + t,
700
700
  qrCode: !1
701
701
  });
702
- }, [x]), w = p(() => {
702
+ }, [v]), x = k(() => {
703
703
  if (!e) return "";
704
704
  let t = "";
705
705
  return e.getEditorState().read(() => {
706
- let e = I();
707
- if (!L(e)) {
706
+ let e = R();
707
+ if (!z(e)) {
708
708
  t = "";
709
709
  return;
710
710
  }
@@ -731,49 +731,49 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
731
731
  }
732
732
  t = n;
733
733
  }), t;
734
- }, [e]), T = p((t) => {
734
+ }, [e]), S = k((t) => {
735
735
  t === f.LOCAL_LINK && !n || e && (e.getEditorState().read(() => {
736
- let n = I();
736
+ let n = R();
737
737
  a.current = {
738
738
  editor: e,
739
- selection: L(n) ? n.clone() : null,
739
+ selection: z(n) ? n.clone() : null,
740
740
  key: W(q)?.getKey() ?? null,
741
741
  local: t === f.LOCAL_LINK
742
742
  };
743
- }), c(w()), r(t));
743
+ }), c(x()), r(t));
744
744
  }, [
745
745
  e,
746
746
  n,
747
747
  r,
748
- w
749
- ]), E = p((t, n, r) => {
748
+ x
749
+ ]), C = k((t, n, r) => {
750
750
  if (!e) return;
751
751
  let i = o.current;
752
752
  o.current = null, e.update(() => {
753
753
  st(i?.editor === e ? i.selection : null);
754
754
  }, {
755
755
  discrete: !0,
756
- tag: [R, B]
756
+ tag: [B, Ve]
757
757
  }), e.update(() => {
758
- let a = I();
759
- if (!L(a) || !n.trim()) return;
760
- let o = i?.editor === e && i.key ? P(i.key) : null;
761
- if (Z(o) && o.isAttached() && o.getTag() === t) o.setAttributes(r).setText(n), n !== o.getTextContent() && o.clear().append(N(n)), o.selectEnd();
758
+ let a = R();
759
+ if (!z(a) || !n.trim()) return;
760
+ let o = i?.editor === e && i.key ? I(i.key) : null;
761
+ if (Z(o) && o.isAttached() && o.getTag() === t) o.setAttributes(r).setText(n), n !== o.getTextContent() && o.clear().append(F(n)), o.selectEnd();
762
762
  else {
763
- let e = X(t, r, n), i = N(n);
763
+ let e = X(t, r, n), i = F(n);
764
764
  i.setFormat(a.format).setStyle(a.style), e.append(i), a.insertNodes([e]);
765
765
  }
766
- }, { tag: z }), requestAnimationFrame(() => e.focus());
766
+ }, { tag: ze }), requestAnimationFrame(() => e.focus());
767
767
  }, [e]);
768
768
  return {
769
- handleAddLink: S,
770
- handleAddLocalLink: C,
771
- handleAlignmentChange: v,
772
- handleBlockStyleToggle: m,
773
- handleCleanSemanticTag: p(() => {
769
+ handleAddLink: y,
770
+ handleAddLocalLink: b,
771
+ handleAlignmentChange: h,
772
+ handleBlockStyleToggle: p,
773
+ handleCleanSemanticTag: k(() => {
774
774
  e && e.update(() => {
775
- let e = I();
776
- if (!L(e) || e.isCollapsed()) return;
775
+ let e = R();
776
+ if (!z(e) || e.isCollapsed()) return;
777
777
  let t = e.getNodes(), n = /* @__PURE__ */ new Set();
778
778
  t.forEach((e) => {
779
779
  let t = e;
@@ -783,26 +783,26 @@ function dt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
783
783
  });
784
784
  });
785
785
  }, [e]),
786
- handleInlineStyleToggle: h,
787
- handleLinkClick: T,
788
- handleRedo: b,
789
- handleTagClick: p((t) => {
786
+ handleInlineStyleToggle: m,
787
+ handleLinkClick: S,
788
+ handleRedo: _,
789
+ handleTagClick: k((t) => {
790
790
  e && (e.getEditorState().read(() => {
791
- let n = I(), r = W(Z), i = r?.getTag() === (t === u.lang ? "span" : t) ? r : null;
791
+ let n = R(), r = W(Z), i = r?.getTag() === (t === u.lang ? "span" : t) ? r : null;
792
792
  o.current = {
793
793
  editor: e,
794
- selection: L(n) ? n.clone() : null,
794
+ selection: z(n) ? n.clone() : null,
795
795
  key: i?.getKey() ?? null
796
796
  }, d({
797
- text: i?.getTextContent() ?? (L(n) ? n.getTextContent() : ""),
797
+ text: i?.getTextContent() ?? (z(n) ? n.getTextContent() : ""),
798
798
  attributes: { ...i?.getAttributes() }
799
799
  });
800
800
  }), i(t));
801
801
  }, [e, i]),
802
- handleUndo: y,
802
+ handleUndo: g,
803
803
  semanticDialogState: l,
804
804
  linkDialogState: s,
805
- insertSemanticTagAtSelection: E
805
+ insertSemanticTagAtSelection: C
806
806
  };
807
807
  }
808
808
  var Q = {
@@ -814,63 +814,63 @@ var Q = {
814
814
  //#endregion
815
815
  //#region src/text-editor/EmailDialog.tsx
816
816
  function ft({ onClose: t, onConfirm: o, initialState: s }) {
817
- let c = j(s) && typeof s == "string" ? {
817
+ let c = N(s) && typeof s == "string" ? {
818
818
  text: "",
819
819
  add: "",
820
820
  ariaLabel: "",
821
821
  url: s
822
- } : s, [l, u] = _(() => j(c) ? (c.url ?? "").replace(/^mailto:/i, "") : ""), [d, f] = _(() => j(c) ? c.ariaLabel ?? "" : ""), [p, m] = _(null), h = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (m("Некорректный email адрес"), !1), g = (e) => {
823
- if (e.preventDefault(), h(l)) {
822
+ } : s, [l, u] = M(() => N(c) ? (c.url ?? "").replace(/^mailto:/i, "") : ""), [d, f] = M(() => N(c) ? c.ariaLabel ?? "" : ""), [m, h] = M(null), g = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (h("Некорректный email адрес"), !1), _ = (e) => {
823
+ if (e.preventDefault(), g(l)) {
824
824
  if (!d) {
825
- m("Добавьте описание для email");
825
+ h("Добавьте описание для email");
826
826
  return;
827
827
  }
828
- o(`mailto:${l}`, "", "", d, !1), y();
828
+ o(`mailto:${l}`, "", "", d, !1), v();
829
829
  }
830
- }, y = () => {
831
- u(""), f(""), m(null), t();
830
+ }, v = () => {
831
+ u(""), f(""), h(null), t();
832
832
  };
833
- return /* @__PURE__ */ x(r, {
833
+ return /* @__PURE__ */ O(r, {
834
834
  isOpen: !0,
835
- onClose: y,
835
+ onClose: v,
836
836
  title: "Ссылка на email",
837
837
  size: "md",
838
- children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ x("div", {
839
- className: v("flexColumn", "gapMd"),
838
+ children: [/* @__PURE__ */ D(i, { children: /* @__PURE__ */ O("div", {
839
+ className: p("flexColumn", "gapMd"),
840
840
  children: [
841
- /* @__PURE__ */ b(a, {
841
+ /* @__PURE__ */ D(a, {
842
842
  label: "Email адрес",
843
843
  value: l,
844
844
  onChange: u,
845
845
  placeholder: "some_email@mail.ru"
846
846
  }),
847
- p && /* @__PURE__ */ x("div", {
847
+ m && /* @__PURE__ */ O("div", {
848
848
  className: "textColorDanger",
849
849
  children: [
850
- /* @__PURE__ */ b("strong", { children: "Ошибка ввода:" }),
850
+ /* @__PURE__ */ D("strong", { children: "Ошибка ввода:" }),
851
851
  " ",
852
- /* @__PURE__ */ b("span", {
852
+ /* @__PURE__ */ D("span", {
853
853
  className: "fontItalic",
854
- children: p
854
+ children: m
855
855
  })
856
856
  ]
857
857
  }),
858
- /* @__PURE__ */ b(a, {
858
+ /* @__PURE__ */ D(a, {
859
859
  label: "Текст для экранных читалок",
860
860
  value: d,
861
861
  onChange: f,
862
862
  placeholder: "Электронная почта руководителя городской думмы"
863
863
  })
864
864
  ]
865
- }) }), /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(e, {
865
+ }) }), /* @__PURE__ */ O(n, { children: [/* @__PURE__ */ D(e, {
866
866
  appearance: "outline",
867
867
  tone: "error",
868
- onClick: y,
868
+ onClick: v,
869
869
  children: "Отмена"
870
- }), /* @__PURE__ */ b(e, {
870
+ }), /* @__PURE__ */ D(e, {
871
871
  appearance: "outline",
872
872
  tone: "success",
873
- onClick: g,
873
+ onClick: _,
874
874
  disabled: !l || !d,
875
875
  children: "Подтвердить"
876
876
  })] })]
@@ -890,16 +890,16 @@ function pt(e) {
890
890
  //#endregion
891
891
  //#region src/text-editor/LinkDialog.tsx
892
892
  function mt({ onClose: s, onConfirm: c, initialState: l }) {
893
- let u = j(l) && typeof l == "string" ? {
893
+ let u = N(l) && typeof l == "string" ? {
894
894
  text: "",
895
895
  add: "",
896
896
  ariaLabel: "",
897
897
  url: l
898
- } : l, [d, f] = _(() => j(u) ? u.url ?? "" : ""), [p, m] = _(() => j(u) ? u.ariaLabel ?? "" : ""), [h, g] = _(null), [v, y] = _(() => typeof l == "object" && l ? l.qrCode ?? !1 : !1), S = (e) => {
898
+ } : l, [d, f] = M(() => N(u) ? u.url ?? "" : ""), [p, m] = M(() => N(u) ? u.ariaLabel ?? "" : ""), [h, g] = M(null), [_, v] = M(() => typeof l == "object" && l ? l.qrCode ?? !1 : !1), y = (e) => {
899
899
  f(e), h && g(null);
900
- }, C = (e) => {
900
+ }, b = (e) => {
901
901
  e.preventDefault();
902
- let t = ue(d);
902
+ let t = ce(d);
903
903
  if (!t.isValid) {
904
904
  g(t.error);
905
905
  return;
@@ -908,56 +908,56 @@ function mt({ onClose: s, onConfirm: c, initialState: l }) {
908
908
  g("добавьте описание для ссылки");
909
909
  return;
910
910
  }
911
- c(d.startsWith("http") ? d : `https://${d}`, "", "", p, v), w();
912
- }, w = () => {
911
+ c(d.startsWith("http") ? d : `https://${d}`, "", "", p, _), x();
912
+ }, x = () => {
913
913
  f(""), m(""), g(null), s();
914
914
  };
915
- return /* @__PURE__ */ x(r, {
915
+ return /* @__PURE__ */ O(r, {
916
916
  isOpen: !0,
917
- onClose: w,
917
+ onClose: x,
918
918
  title: "Ссылка на внешний url",
919
919
  size: "md",
920
- children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ x(t, {
920
+ children: [/* @__PURE__ */ D(i, { children: /* @__PURE__ */ O(t, {
921
921
  gap: "md",
922
922
  children: [
923
- /* @__PURE__ */ b(a, {
923
+ /* @__PURE__ */ D(a, {
924
924
  label: "Полный URL адрес",
925
925
  value: d,
926
- onChange: S,
926
+ onChange: y,
927
927
  placeholder: "https://somesite.ru"
928
928
  }),
929
- h && /* @__PURE__ */ x("div", {
929
+ h && /* @__PURE__ */ O("div", {
930
930
  className: "textColorDanger",
931
931
  children: [
932
- /* @__PURE__ */ b("strong", { children: "Ошибка ввода:" }),
932
+ /* @__PURE__ */ D("strong", { children: "Ошибка ввода:" }),
933
933
  " ",
934
- /* @__PURE__ */ b("span", {
934
+ /* @__PURE__ */ D("span", {
935
935
  className: "fontItalic",
936
936
  children: h
937
937
  })
938
938
  ]
939
939
  }),
940
- /* @__PURE__ */ b(a, {
940
+ /* @__PURE__ */ D(a, {
941
941
  label: "Текст для экранных читалок",
942
942
  value: p,
943
943
  onChange: m,
944
944
  placeholder: "Ссылка на официальный сайт городской думмы"
945
945
  }),
946
- /* @__PURE__ */ b(o, {
946
+ /* @__PURE__ */ D(o, {
947
947
  title: "Показать кнопку для генерации QR кода ссылки",
948
- value: v,
949
- onChange: y
948
+ value: _,
949
+ onChange: v
950
950
  })
951
951
  ]
952
- }) }), /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(e, {
952
+ }) }), /* @__PURE__ */ O(n, { children: [/* @__PURE__ */ D(e, {
953
953
  appearance: "outline",
954
954
  tone: "error",
955
- onClick: w,
955
+ onClick: x,
956
956
  children: "Отмена"
957
- }), /* @__PURE__ */ b(e, {
957
+ }), /* @__PURE__ */ D(e, {
958
958
  appearance: "outline",
959
959
  tone: "success",
960
- onClick: C,
960
+ onClick: b,
961
961
  disabled: !d || !p,
962
962
  children: "Подтвердить"
963
963
  })] })]
@@ -966,77 +966,77 @@ function mt({ onClose: s, onConfirm: c, initialState: l }) {
966
966
  //#endregion
967
967
  //#region src/text-editor/PhoneDialog.tsx
968
968
  function ht({ onClose: o, onConfirm: s, initialState: c }) {
969
- let l = j(c) && typeof c == "string" ? {
969
+ let l = N(c) && typeof c == "string" ? {
970
970
  text: "",
971
971
  add: "",
972
972
  ariaLabel: "",
973
973
  url: c
974
- } : c, u = j(l) ? (l.url ?? "").replace(/\D/g, "").slice(0, 11).replace(/^7/, "") : "", d = j(l) ? l.add ? (l.add ?? "").replace(/\D/g, "") : (l.url ?? "").replace(/\D/g, "").slice(11) : "", [f, p] = _(u), [m, h] = _(d), [g, y] = _(() => j(l) ? l.ariaLabel ?? "" : ""), [S, C] = _(null), w = (e) => {
975
- e = e.replace(/\D/g, ""), e.length <= 10 ? (p(e), C(null)) : C("нельзя ввести более 10 цифр");
976
- }, T = (e) => e.length === 10 || (C("номер телефона должен содержать 10 цифр"), !1), E = (e) => {
977
- if (e.preventDefault(), !T(f)) return;
978
- if (!g) {
979
- C("добавьте описание для телефона");
974
+ } : c, u = N(l) ? (l.url ?? "").replace(/\D/g, "").slice(0, 11).replace(/^7/, "") : "", d = N(l) ? l.add ? (l.add ?? "").replace(/\D/g, "") : (l.url ?? "").replace(/\D/g, "").slice(11) : "", [f, m] = M(u), [h, g] = M(d), [_, v] = M(() => N(l) ? l.ariaLabel ?? "" : ""), [y, b] = M(null), x = (e) => {
975
+ e = e.replace(/\D/g, ""), e.length <= 10 ? (m(e), b(null)) : b("нельзя ввести более 10 цифр");
976
+ }, S = (e) => e.length === 10 || (b("номер телефона должен содержать 10 цифр"), !1), C = (e) => {
977
+ if (e.preventDefault(), !S(f)) return;
978
+ if (!_) {
979
+ b("добавьте описание для телефона");
980
980
  return;
981
981
  }
982
- let t = le(f);
983
- s(`tel:${`+7${f}`}`, m ? `${t} доб. ${m}` : t, m, g, !1), D();
984
- }, D = () => {
985
- p(""), y(""), C(null), o();
982
+ let t = oe(f);
983
+ s(`tel:${`+7${f}`}`, h ? `${t} доб. ${h}` : t, h, _, !1), w();
984
+ }, w = () => {
985
+ m(""), v(""), b(null), o();
986
986
  };
987
- return /* @__PURE__ */ x(r, {
987
+ return /* @__PURE__ */ O(r, {
988
988
  isOpen: !0,
989
- onClose: D,
989
+ onClose: w,
990
990
  title: "Ссылка на телефон",
991
991
  size: "md",
992
- children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ x(t, {
992
+ children: [/* @__PURE__ */ D(i, { children: /* @__PURE__ */ O(t, {
993
993
  gap: "md",
994
994
  children: [
995
- /* @__PURE__ */ x("div", {
996
- className: v("flex", "alignItemsEnd", "gapSm"),
997
- children: [/* @__PURE__ */ b(a, {
995
+ /* @__PURE__ */ O("div", {
996
+ className: p("flex", "alignItemsEnd", "gapSm"),
997
+ children: [/* @__PURE__ */ D(a, {
998
998
  label: "Номер телефона без 7-ки",
999
999
  description: "Вводится только номер (10) цифр без каких-либо дополнительных символов. Ссылка будет привязана к текущему выделенному фрагменту текста. Поэтому текст самой ссылки можно оформить грамотно, например: +7 (3522) 12-34-56 доб. 100",
1000
1000
  value: f,
1001
- onChange: w,
1001
+ onChange: x,
1002
1002
  placeholder: "3522123456",
1003
1003
  className: "flex1"
1004
- }), /* @__PURE__ */ b(a, {
1004
+ }), /* @__PURE__ */ D(a, {
1005
1005
  label: "Добавочный номер",
1006
- value: m,
1007
- onChange: h,
1006
+ value: h,
1007
+ onChange: g,
1008
1008
  placeholder: "100"
1009
1009
  })]
1010
1010
  }),
1011
- S && /* @__PURE__ */ x("div", {
1011
+ y && /* @__PURE__ */ O("div", {
1012
1012
  className: "textColorDanger",
1013
1013
  children: [
1014
- /* @__PURE__ */ b("strong", { children: "Ошибка ввода:" }),
1014
+ /* @__PURE__ */ D("strong", { children: "Ошибка ввода:" }),
1015
1015
  " ",
1016
- /* @__PURE__ */ b("span", {
1016
+ /* @__PURE__ */ D("span", {
1017
1017
  className: "fontItalic",
1018
- children: S
1018
+ children: y
1019
1019
  })
1020
1020
  ]
1021
1021
  }),
1022
- /* @__PURE__ */ b(a, {
1022
+ /* @__PURE__ */ D(a, {
1023
1023
  label: "Текст для экранных читалок",
1024
1024
  description: "Обязательное поле для организации доступности ссылки для лиц с ОВЗ, использующих скринридеры",
1025
- value: g,
1026
- onChange: y,
1025
+ value: _,
1026
+ onChange: v,
1027
1027
  placeholder: "Контактный телефон директора"
1028
1028
  })
1029
1029
  ]
1030
- }) }), /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(e, {
1030
+ }) }), /* @__PURE__ */ O(n, { children: [/* @__PURE__ */ D(e, {
1031
1031
  appearance: "solid",
1032
1032
  tone: "error",
1033
- onClick: D,
1033
+ onClick: w,
1034
1034
  children: "Отмена"
1035
- }), /* @__PURE__ */ b(e, {
1035
+ }), /* @__PURE__ */ D(e, {
1036
1036
  appearance: "solid",
1037
1037
  tone: "success",
1038
- onClick: E,
1039
- disabled: !f || !g,
1038
+ onClick: C,
1039
+ disabled: !f || !_,
1040
1040
  children: "Подтвердить"
1041
1041
  })] })]
1042
1042
  });
@@ -1044,7 +1044,7 @@ function ht({ onClose: o, onConfirm: s, initialState: c }) {
1044
1044
  //#endregion
1045
1045
  //#region src/text-editor/SemanticDialog.tsx
1046
1046
  function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialState: u = {} }) {
1047
- let [d, f] = _(l), [p, m] = _(() => c.fields.reduce((e, t) => (e[t.name] = u[t.name] ?? "", e), {})), [h, g] = _({}), v = (e, t) => {
1047
+ let [d, f] = M(l), [p, m] = M(() => c.fields.reduce((e, t) => (e[t.name] = u[t.name] ?? "", e), {})), [h, g] = M({}), _ = (e, t) => {
1048
1048
  m((n) => ({
1049
1049
  ...n,
1050
1050
  [e]: t
@@ -1052,7 +1052,7 @@ function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialS
1052
1052
  ...t,
1053
1053
  [e]: null
1054
1054
  }));
1055
- }, y = () => {
1055
+ }, v = () => {
1056
1056
  let e = {}, t = !0;
1057
1057
  d.trim() || (e.text = "Обязательное поле", t = !1);
1058
1058
  for (let n of c.fields) {
@@ -1065,25 +1065,25 @@ function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialS
1065
1065
  }
1066
1066
  return g(e), t;
1067
1067
  };
1068
- return /* @__PURE__ */ x(r, {
1068
+ return /* @__PURE__ */ O(r, {
1069
1069
  isOpen: !0,
1070
1070
  onClose: o,
1071
1071
  title: `Вставка <${c.tagName}>`,
1072
1072
  size: "md",
1073
- children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ x(t, {
1073
+ children: [/* @__PURE__ */ D(i, { children: /* @__PURE__ */ O(t, {
1074
1074
  gap: "md",
1075
1075
  children: [
1076
- /* @__PURE__ */ x("div", { children: [
1076
+ /* @__PURE__ */ O("div", { children: [
1077
1077
  c.description,
1078
1078
  ".",
1079
- /* @__PURE__ */ b("br", {})
1079
+ /* @__PURE__ */ D("br", {})
1080
1080
  ] }),
1081
- /* @__PURE__ */ x("div", { children: [
1082
- /* @__PURE__ */ b("strong", { children: "Пример:" }),
1081
+ /* @__PURE__ */ O("div", { children: [
1082
+ /* @__PURE__ */ D("strong", { children: "Пример:" }),
1083
1083
  " ",
1084
1084
  c.example
1085
1085
  ] }),
1086
- /* @__PURE__ */ b(a, {
1086
+ /* @__PURE__ */ D(a, {
1087
1087
  label: c.title,
1088
1088
  description: `Данный текст будет вставлен в редактор и обёрнуть в специальный семантический тег ${c.tagName}`,
1089
1089
  value: d,
@@ -1091,26 +1091,26 @@ function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialS
1091
1091
  error: h.text ?? void 0,
1092
1092
  required: !0
1093
1093
  }),
1094
- c.fields.map((e) => /* @__PURE__ */ b(a, {
1094
+ c.fields.map((e) => /* @__PURE__ */ D(a, {
1095
1095
  label: e.label,
1096
1096
  description: e.description,
1097
1097
  placeholder: e.placeholder,
1098
1098
  value: p[e.name] ?? "",
1099
- onChange: (t) => v(e.name, t),
1099
+ onChange: (t) => _(e.name, t),
1100
1100
  error: h[e.name] ?? void 0,
1101
1101
  required: e.required
1102
1102
  }, e.name))
1103
1103
  ]
1104
- }) }), /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(e, {
1104
+ }) }), /* @__PURE__ */ O(n, { children: [/* @__PURE__ */ D(e, {
1105
1105
  appearance: "solid",
1106
1106
  tone: "error",
1107
1107
  onClick: o,
1108
1108
  children: "Отмена"
1109
- }), /* @__PURE__ */ b(e, {
1109
+ }), /* @__PURE__ */ D(e, {
1110
1110
  appearance: "solid",
1111
1111
  tone: "success",
1112
1112
  onClick: () => {
1113
- y() && (s(c.tagName, d.trim(), {
1113
+ v() && (s(c.tagName, d.trim(), {
1114
1114
  ...u,
1115
1115
  ...p
1116
1116
  }), o());
@@ -1123,7 +1123,7 @@ function gt({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialS
1123
1123
  //#region src/text-editor/lib/semantic/isSemanticDateTime.ts
1124
1124
  function $(e) {
1125
1125
  let t = e.split("/");
1126
- return t.length <= 2 && t.every((e) => /^\d{2}:\d{2}(?::\d{2})?$/.test(e) ? A(`2000-01-01T${e}`) !== null : /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)?)?$/.test(e) && A(e) !== null);
1126
+ return t.length <= 2 && t.every((e) => /^\d{2}:\d{2}(?::\d{2})?$/.test(e) ? se(`2000-01-01T${e}`) !== null : /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)?)?$/.test(e) && se(e) !== null);
1127
1127
  }
1128
1128
  //#endregion
1129
1129
  //#region src/text-editor/semanticTagConfigs.tsx
@@ -1132,12 +1132,12 @@ var _t = {
1132
1132
  tagName: "abbr",
1133
1133
  title: "Аббревиатура",
1134
1134
  description: "Обозначает аббревиатуры и сокращения, при наведении покажет расшифровку",
1135
- example: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("abbr", {
1135
+ example: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("abbr", {
1136
1136
  title: "Национальное управление по аэронавтике и исследованию космического пространства",
1137
1137
  children: "НАСА"
1138
- }), /* @__PURE__ */ b("div", {
1138
+ }), /* @__PURE__ */ D("div", {
1139
1139
  className: "marginTopMd",
1140
- children: /* @__PURE__ */ b("code", { children: "<abbr title=\"Национальное управление по аэронавтике и исследованию космического пространства\">НАСА</abbr>" })
1140
+ children: /* @__PURE__ */ D("code", { children: "<abbr title=\"Национальное управление по аэронавтике и исследованию космического пространства\">НАСА</abbr>" })
1141
1141
  })] }),
1142
1142
  fields: [{
1143
1143
  name: "title",
@@ -1151,15 +1151,15 @@ var _t = {
1151
1151
  tagName: "span",
1152
1152
  title: "Текст на другом языке",
1153
1153
  description: "Указывает язык фрагмента текста, если он отличается от основного языка страницы, скринридер прочитает это слово с французским произношением",
1154
- example: /* @__PURE__ */ x(y, { children: [
1155
- /* @__PURE__ */ b("span", {
1154
+ example: /* @__PURE__ */ O(E, { children: [
1155
+ /* @__PURE__ */ D("span", {
1156
1156
  lang: "fr",
1157
1157
  children: "Bonjour!"
1158
1158
  }),
1159
1159
  " — сказал турист.",
1160
- /* @__PURE__ */ b("div", {
1160
+ /* @__PURE__ */ D("div", {
1161
1161
  className: "marginTopMd",
1162
- children: /* @__PURE__ */ b("code", { children: "<span lang=\"fr\">Bonjour!</span> — сказал турист." })
1162
+ children: /* @__PURE__ */ D("code", { children: "<span lang=\"fr\">Bonjour!</span> — сказал турист." })
1163
1163
  })
1164
1164
  ] }),
1165
1165
  fields: [{
@@ -1187,13 +1187,13 @@ var _t = {
1187
1187
  tagName: "cite",
1188
1188
  title: "Цитата источника",
1189
1189
  description: "Обозначает название книги, статьи, фильма или другого произведения, на которое вы ссылаетесь",
1190
- example: /* @__PURE__ */ x(y, { children: [
1190
+ example: /* @__PURE__ */ O(E, { children: [
1191
1191
  "По словам Эйнштейна: ",
1192
- /* @__PURE__ */ b("cite", { children: "«Воображение важнее знания»" }),
1192
+ /* @__PURE__ */ D("cite", { children: "«Воображение важнее знания»" }),
1193
1193
  ".",
1194
- /* @__PURE__ */ b("div", {
1194
+ /* @__PURE__ */ D("div", {
1195
1195
  className: "marginTopMd",
1196
- children: /* @__PURE__ */ b("code", { children: "По словам Эйнштейна: <cite>«Воображение важнее знания»</cite>." })
1196
+ children: /* @__PURE__ */ D("code", { children: "По словам Эйнштейна: <cite>«Воображение важнее знания»</cite>." })
1197
1197
  })
1198
1198
  ] }),
1199
1199
  fields: [{
@@ -1208,14 +1208,14 @@ var _t = {
1208
1208
  tagName: "del",
1209
1209
  title: "Изменения в тексте",
1210
1210
  description: "Удаленный фрагмент",
1211
- example: /* @__PURE__ */ x(y, { children: [
1211
+ example: /* @__PURE__ */ O(E, { children: [
1212
1212
  "Проект сдачи: ",
1213
- /* @__PURE__ */ b("del", { children: "1 июня" }),
1213
+ /* @__PURE__ */ D("del", { children: "1 июня" }),
1214
1214
  " ",
1215
- /* @__PURE__ */ b("ins", { children: "15 июня" }),
1216
- /* @__PURE__ */ b("div", {
1215
+ /* @__PURE__ */ D("ins", { children: "15 июня" }),
1216
+ /* @__PURE__ */ D("div", {
1217
1217
  className: "marginTopMd",
1218
- children: /* @__PURE__ */ b("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
1218
+ children: /* @__PURE__ */ D("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
1219
1219
  })
1220
1220
  ] }),
1221
1221
  fields: [{
@@ -1237,14 +1237,14 @@ var _t = {
1237
1237
  tagName: "ins",
1238
1238
  title: "Изменения в тексте",
1239
1239
  description: "Новый добавленный текст",
1240
- example: /* @__PURE__ */ x(y, { children: [
1240
+ example: /* @__PURE__ */ O(E, { children: [
1241
1241
  "Проект сдачи: ",
1242
- /* @__PURE__ */ b("del", { children: "1 июня" }),
1242
+ /* @__PURE__ */ D("del", { children: "1 июня" }),
1243
1243
  " ",
1244
- /* @__PURE__ */ b("ins", { children: "15 июня" }),
1245
- /* @__PURE__ */ b("div", {
1244
+ /* @__PURE__ */ D("ins", { children: "15 июня" }),
1245
+ /* @__PURE__ */ D("div", {
1246
1246
  className: "marginTopMd",
1247
- children: /* @__PURE__ */ b("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
1247
+ children: /* @__PURE__ */ D("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
1248
1248
  })
1249
1249
  ] }),
1250
1250
  fields: [{
@@ -1266,7 +1266,7 @@ var _t = {
1266
1266
  //#endregion
1267
1267
  //#region src/text-editor/TimeDialog.tsx
1268
1268
  function vt({ onClose: o, onConfirm: c, initialState: l }) {
1269
- let [u, d] = _(() => l?.mode ?? "date"), [f, p] = _(() => l?.from ?? ""), [m, h] = _(() => l?.to ?? ""), [g, v] = _({}), S = () => {
1269
+ let [u, d] = M(() => l?.mode ?? "date"), [f, p] = M(() => l?.from ?? ""), [m, h] = M(() => l?.to ?? ""), [g, _] = M({}), v = () => {
1270
1270
  let e = {}, t = (e) => /^\d{4}-\d{2}-\d{2}$/.test(e), n = (e) => /^\d{2}:\d{2}$/.test(e), r = (e) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e), i = (e, i, a) => {
1271
1271
  if (!i) return `${e} обязательно`;
1272
1272
  if (a === "date" && !t(i)) return "Неверный формат даты (ГГГГ-ММ-ДД)";
@@ -1292,52 +1292,52 @@ function vt({ onClose: o, onConfirm: c, initialState: l }) {
1292
1292
  break;
1293
1293
  case "range-datetime": e.from = i("Начало", f, "datetime"), e.to = i("Окончание", m, "datetime");
1294
1294
  }
1295
- return v(e), Object.values(e).every((e) => !e);
1295
+ return _(e), Object.values(e).every((e) => !e);
1296
1296
  };
1297
- return /* @__PURE__ */ x(r, {
1297
+ return /* @__PURE__ */ O(r, {
1298
1298
  isOpen: !0,
1299
1299
  onClose: o,
1300
1300
  title: "Вставка <time>",
1301
1301
  size: "md",
1302
- children: [/* @__PURE__ */ b(i, { children: /* @__PURE__ */ x(t, {
1302
+ children: [/* @__PURE__ */ D(i, { children: /* @__PURE__ */ O(t, {
1303
1303
  gap: "md",
1304
- children: [/* @__PURE__ */ x(s, {
1304
+ children: [/* @__PURE__ */ O(s, {
1305
1305
  label: "Тип значения",
1306
1306
  value: u,
1307
1307
  onChange: d,
1308
1308
  children: [
1309
- /* @__PURE__ */ b(s.Option, {
1309
+ /* @__PURE__ */ D(s.Option, {
1310
1310
  label: "Дата",
1311
1311
  value: "date"
1312
1312
  }),
1313
- /* @__PURE__ */ b(s.Option, {
1313
+ /* @__PURE__ */ D(s.Option, {
1314
1314
  label: "Дата и время",
1315
1315
  value: "datetime"
1316
1316
  }),
1317
- /* @__PURE__ */ b(s.Option, {
1317
+ /* @__PURE__ */ D(s.Option, {
1318
1318
  label: "Время",
1319
1319
  value: "time"
1320
1320
  }),
1321
- /* @__PURE__ */ b(s.Option, {
1321
+ /* @__PURE__ */ D(s.Option, {
1322
1322
  label: "Диапазон дат",
1323
1323
  value: "range-date"
1324
1324
  }),
1325
- /* @__PURE__ */ b(s.Option, {
1325
+ /* @__PURE__ */ D(s.Option, {
1326
1326
  label: "Диапазон времени",
1327
1327
  value: "range-time"
1328
1328
  }),
1329
- /* @__PURE__ */ b(s.Option, {
1329
+ /* @__PURE__ */ D(s.Option, {
1330
1330
  label: "Диапазон даты и времени",
1331
1331
  value: "range-datetime"
1332
1332
  })
1333
1333
  ]
1334
- }), /* @__PURE__ */ b(t, {
1334
+ }), /* @__PURE__ */ D(t, {
1335
1335
  gap: "md",
1336
1336
  children: (() => {
1337
1337
  switch (u) {
1338
1338
  case "date":
1339
1339
  case "datetime":
1340
- case "time": return /* @__PURE__ */ b(a, {
1340
+ case "time": return /* @__PURE__ */ D(a, {
1341
1341
  label: "Значение",
1342
1342
  placeholder: u === "time" ? "09:00" : u === "date" ? "2025-05-18" : "2025-05-18T09:00",
1343
1343
  value: f,
@@ -1346,13 +1346,13 @@ function vt({ onClose: o, onConfirm: c, initialState: l }) {
1346
1346
  });
1347
1347
  case "range-time":
1348
1348
  case "range-date":
1349
- case "range-datetime": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(a, {
1349
+ case "range-datetime": return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(a, {
1350
1350
  label: "С",
1351
1351
  placeholder: u.includes("time") ? "09:00" : u.includes("date") ? "2025-05-18" : "2025-05-18T09:00",
1352
1352
  value: f,
1353
1353
  onChange: p,
1354
1354
  error: g.from
1355
- }), /* @__PURE__ */ b(a, {
1355
+ }), /* @__PURE__ */ D(a, {
1356
1356
  label: "По",
1357
1357
  placeholder: u.includes("time") ? "17:00" : u.includes("date") ? "2025-05-22" : "2025-05-22T17:00",
1358
1358
  value: m,
@@ -1362,16 +1362,16 @@ function vt({ onClose: o, onConfirm: c, initialState: l }) {
1362
1362
  }
1363
1363
  })()
1364
1364
  })]
1365
- }) }), /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(e, {
1365
+ }) }), /* @__PURE__ */ O(n, { children: [/* @__PURE__ */ D(e, {
1366
1366
  appearance: "solid",
1367
1367
  tone: "error",
1368
1368
  onClick: o,
1369
1369
  children: "Отмена"
1370
- }), /* @__PURE__ */ b(e, {
1370
+ }), /* @__PURE__ */ D(e, {
1371
1371
  appearance: "solid",
1372
1372
  tone: "success",
1373
1373
  onClick: () => {
1374
- if (!S()) return;
1374
+ if (!v()) return;
1375
1375
  let e = u?.startsWith("range-") ? `${f}/${m}` : f;
1376
1376
  c("time", e, { datetime: e }), o();
1377
1377
  },
@@ -1383,32 +1383,32 @@ function vt({ onClose: o, onConfirm: c, initialState: l }) {
1383
1383
  //#region src/text-editor/TextEditorDialogs.tsx
1384
1384
  function yt({ linkTypeDialog: e, tagTypeDialog: t, localLinkDialogComponent: n, onCloseLinkDialog: r, onCloseTagDialog: i, onAddLink: a, onAddLocalLink: o, onInsertSemanticTag: s, semanticDialogState: c, linkDialogState: l }) {
1385
1385
  let d = n;
1386
- return /* @__PURE__ */ x(y, { children: [
1387
- e === f.LOCAL_LINK && d ? /* @__PURE__ */ b(d, {
1386
+ return /* @__PURE__ */ O(E, { children: [
1387
+ e === f.LOCAL_LINK && d ? /* @__PURE__ */ D(d, {
1388
1388
  isOpen: !0,
1389
1389
  onClose: r,
1390
1390
  onConfirm: o
1391
1391
  }) : null,
1392
- e === f.LINK ? /* @__PURE__ */ b(mt, {
1392
+ e === f.LINK ? /* @__PURE__ */ D(mt, {
1393
1393
  initialState: l,
1394
1394
  onClose: r,
1395
1395
  onConfirm: a
1396
1396
  }) : null,
1397
- e === f.PHONE ? /* @__PURE__ */ b(ht, {
1397
+ e === f.PHONE ? /* @__PURE__ */ D(ht, {
1398
1398
  initialState: l,
1399
1399
  onClose: r,
1400
1400
  onConfirm: a
1401
1401
  }) : null,
1402
- e === f.EMAIL ? /* @__PURE__ */ b(ft, {
1402
+ e === f.EMAIL ? /* @__PURE__ */ D(ft, {
1403
1403
  initialState: l,
1404
1404
  onClose: r,
1405
1405
  onConfirm: a
1406
1406
  }) : null,
1407
- t && (t === u.time ? /* @__PURE__ */ b(vt, {
1407
+ t && (t === u.time ? /* @__PURE__ */ D(vt, {
1408
1408
  onClose: i,
1409
1409
  onConfirm: s,
1410
1410
  initialState: pt(c.attributes.datetime)
1411
- }) : /* @__PURE__ */ b(gt, {
1411
+ }) : /* @__PURE__ */ D(gt, {
1412
1412
  onClose: i,
1413
1413
  onConfirm: s,
1414
1414
  config: _t[t],
@@ -1420,31 +1420,31 @@ function yt({ linkTypeDialog: e, tagTypeDialog: t, localLinkDialogComponent: n,
1420
1420
  //#endregion
1421
1421
  //#region src/text-editor/TextEditorLexicalClient.tsx
1422
1422
  function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapters: r }) {
1423
- let i = r?.LocalLinkDialogComponent, [a, o] = _(!1), [s, l] = _(Qe), [u, d] = _(null), [f, m] = _(null), [g, y] = _(null), S = c(e?.raw) ? e.raw : null, C = !!S, w = h(() => {
1424
- if (S) return JSON.stringify(S.editorState);
1425
- }, [S]), T = p((e) => {
1423
+ let i = r?.LocalLinkDialogComponent, [a, o] = M(!1), [s, l] = M(Qe), [u, d] = M(null), [f, m] = M(null), [h, g] = M(null), _ = c(e?.raw) ? e.raw : null, v = !!_, y = A(() => {
1424
+ if (_) return JSON.stringify(_.editorState);
1425
+ }, [_]), b = k((e) => {
1426
1426
  console.error("Ошибка редактора Lexical", e);
1427
- }, []), E = p((e, n) => {
1427
+ }, []), x = k((e, n) => {
1428
1428
  let r = "";
1429
1429
  e.read(() => {
1430
- r = de(n, null);
1430
+ r = le(n, null);
1431
1431
  }), t({
1432
1432
  raw: ot(e),
1433
1433
  html: r
1434
1434
  });
1435
- }, [t]), D = p((e) => {
1435
+ }, [t]), S = k((e) => {
1436
1436
  m(e);
1437
- }, []), O = p((e) => {
1438
- y(e);
1439
- }, []), k = dt({
1437
+ }, []), C = k((e) => {
1438
+ g(e);
1439
+ }, []), w = dt({
1440
1440
  editor: u,
1441
1441
  toolbarState: s,
1442
1442
  hasLocalLinkDialog: !!i,
1443
- onOpenLinkDialog: D,
1444
- onOpenTagDialog: O
1445
- }), ee = h(() => ({
1443
+ onOpenLinkDialog: S,
1444
+ onOpenTagDialog: C
1445
+ }), T = A(() => ({
1446
1446
  namespace: "KtkTextEditorLexical",
1447
- onError: T,
1447
+ onError: b,
1448
1448
  theme: {
1449
1449
  paragraph: "paragraph",
1450
1450
  text: {
@@ -1455,77 +1455,77 @@ function bt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
1455
1455
  }
1456
1456
  },
1457
1457
  nodes: [
1458
- je,
1459
- Me,
1460
- ve,
1461
- _e,
1458
+ ke,
1459
+ Ae,
1460
+ ge,
1461
+ he,
1462
1462
  G,
1463
1463
  Y
1464
1464
  ],
1465
- editorState: w
1466
- }), [T, w]);
1467
- return /* @__PURE__ */ x("div", {
1465
+ editorState: y
1466
+ }), [b, y]);
1467
+ return /* @__PURE__ */ O("div", {
1468
1468
  className: Q.textEditor,
1469
- children: [/* @__PURE__ */ b("div", {
1470
- className: v(Q.textEditorContent, { [Q.focused]: a }),
1471
- children: /* @__PURE__ */ x(be, {
1472
- initialConfig: ee,
1469
+ children: [/* @__PURE__ */ D("div", {
1470
+ className: p(Q.textEditorContent, { [Q.focused]: a }),
1471
+ children: /* @__PURE__ */ O(ve, {
1472
+ initialConfig: T,
1473
1473
  children: [
1474
- /* @__PURE__ */ b(Xe, {
1474
+ /* @__PURE__ */ D(Xe, {
1475
1475
  toolbarComponents: n,
1476
1476
  state: s,
1477
- onBlockStyleToggle: k.handleBlockStyleToggle,
1478
- onInlineStyleToggle: k.handleInlineStyleToggle,
1479
- onAlignmentChange: k.handleAlignmentChange,
1480
- onLinkClick: k.handleLinkClick,
1481
- onTagClick: k.handleTagClick,
1482
- onUndo: k.handleUndo,
1483
- onRedo: k.handleRedo,
1484
- onCleanTag: k.handleCleanSemanticTag
1477
+ onBlockStyleToggle: w.handleBlockStyleToggle,
1478
+ onInlineStyleToggle: w.handleInlineStyleToggle,
1479
+ onAlignmentChange: w.handleAlignmentChange,
1480
+ onLinkClick: w.handleLinkClick,
1481
+ onTagClick: w.handleTagClick,
1482
+ onUndo: w.handleUndo,
1483
+ onRedo: w.handleRedo,
1484
+ onCleanTag: w.handleCleanSemanticTag
1485
1485
  }),
1486
- /* @__PURE__ */ b(Ee, {
1487
- contentEditable: /* @__PURE__ */ b(xe, {
1486
+ /* @__PURE__ */ D(we, {
1487
+ contentEditable: /* @__PURE__ */ D(ye, {
1488
1488
  className: "lexicalEditorContentEditable",
1489
1489
  onFocus: () => o(!0),
1490
1490
  onBlur: () => o(!1)
1491
1491
  }),
1492
- placeholder: /* @__PURE__ */ b("div", {
1492
+ placeholder: /* @__PURE__ */ D("div", {
1493
1493
  className: "lexicalEditorPlaceholder",
1494
1494
  children: "Введите текст..."
1495
1495
  }),
1496
- ErrorBoundary: Se
1496
+ ErrorBoundary: be
1497
1497
  }),
1498
- /* @__PURE__ */ b(Ce, {}),
1499
- /* @__PURE__ */ b(we, {}),
1500
- /* @__PURE__ */ b(at, {
1498
+ /* @__PURE__ */ D(xe, {}),
1499
+ /* @__PURE__ */ D(Se, {}),
1500
+ /* @__PURE__ */ D(at, {
1501
1501
  onEditorReady: d,
1502
1502
  onStateChange: l
1503
1503
  }),
1504
- /* @__PURE__ */ b(Ze, {
1504
+ /* @__PURE__ */ D(Ze, {
1505
1505
  initialHTML: e?.html,
1506
- shouldSkip: C
1506
+ shouldSkip: v
1507
1507
  }),
1508
- /* @__PURE__ */ b(Te, {
1509
- onChange: E,
1508
+ /* @__PURE__ */ D(Ce, {
1509
+ onChange: x,
1510
1510
  ignoreSelectionChange: !0
1511
1511
  })
1512
1512
  ]
1513
1513
  })
1514
- }), /* @__PURE__ */ b(yt, {
1514
+ }), /* @__PURE__ */ D(yt, {
1515
1515
  linkTypeDialog: f,
1516
- tagTypeDialog: g,
1516
+ tagTypeDialog: h,
1517
1517
  localLinkDialogComponent: i,
1518
1518
  onCloseLinkDialog: () => m(null),
1519
- onCloseTagDialog: () => y(null),
1520
- onAddLink: k.handleAddLink,
1521
- onAddLocalLink: k.handleAddLocalLink,
1522
- onInsertSemanticTag: k.insertSemanticTagAtSelection,
1523
- semanticDialogState: k.semanticDialogState,
1524
- linkDialogState: k.linkDialogState
1519
+ onCloseTagDialog: () => g(null),
1520
+ onAddLink: w.handleAddLink,
1521
+ onAddLocalLink: w.handleAddLocalLink,
1522
+ onInsertSemanticTag: w.insertSemanticTagAtSelection,
1523
+ semanticDialogState: w.semanticDialogState,
1524
+ linkDialogState: w.linkDialogState
1525
1525
  })]
1526
1526
  });
1527
1527
  }
1528
1528
  //#endregion
1529
1529
  export { bt as TextEditorLexicalClient };
1530
1530
 
1531
- //# sourceMappingURL=TextEditorLexicalClient-C8nSoz85.js.map
1531
+ //# sourceMappingURL=TextEditorLexicalClient-BRp8jHId.js.map