@uva-glass/component-library 3.57.2 → 3.57.3
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.
- package/dist/ActionList-D2GC2qPX.js.map +1 -1
- package/dist/AddCatalogueLinkForm-Di0xm7Ep.js.map +1 -1
- package/dist/ClipboardButton-Cg6LGUiD.js.map +1 -1
- package/dist/ControlsButton-Byx4XQtB.js.map +1 -1
- package/dist/CopyableText-BKsM-TuS.js.map +1 -1
- package/dist/DataTable-Cgn_RKTA.js.map +1 -1
- package/dist/{Lexical.prod-nAj5fF96.js → Lexical.prod-Dy5aDppc.js} +2449 -1794
- package/dist/Lexical.prod-Dy5aDppc.js.map +1 -0
- package/dist/LexicalClipboard.prod-CS8a49uL.js +398 -0
- package/dist/LexicalClipboard.prod-CS8a49uL.js.map +1 -0
- package/dist/{LexicalComposerContext.prod-DumMmRBt.js → LexicalComposerContext.prod-D4HOlWII.js} +3 -3
- package/dist/LexicalComposerContext.prod-D4HOlWII.js.map +1 -0
- package/dist/LexicalHtml.prod-BtzosUOH.js +1611 -0
- package/dist/LexicalHtml.prod-BtzosUOH.js.map +1 -0
- package/dist/LexicalLink.prod-DzgwWhQM.js +646 -0
- package/dist/LexicalLink.prod-DzgwWhQM.js.map +1 -0
- package/dist/LexicalList.prod-icY8mpm6.js +710 -0
- package/dist/LexicalList.prod-icY8mpm6.js.map +1 -0
- package/dist/{LexicalTable.prod-BpHQYpBM.js → LexicalTable.prod-Bf0is-op.js} +674 -750
- package/dist/LexicalTable.prod-Bf0is-op.js.map +1 -0
- package/dist/LexicalUtils.prod-CjGUKarD.js +259 -0
- package/dist/LexicalUtils.prod-CjGUKarD.js.map +1 -0
- package/dist/{LinkContextMenu-Byu3AEqp.js → LinkContextMenu-C8ehPbP8.js} +2 -2
- package/dist/{LinkContextMenu-Byu3AEqp.js.map → LinkContextMenu-C8ehPbP8.js.map} +1 -1
- package/dist/MenuLink-sK2_W2zs.js.map +1 -1
- package/dist/MetaDataList-Co9WCexh.js.map +1 -1
- package/dist/MultiSelectBox-D34qAgzc.js.map +1 -1
- package/dist/OverlayStepBar-BiC06Itd.js.map +1 -1
- package/dist/{PasteHandlerPlugin-DyTXcFsj.js → PasteHandlerPlugin-CSo_lOE8.js} +6 -6
- package/dist/{PasteHandlerPlugin-DyTXcFsj.js.map → PasteHandlerPlugin-CSo_lOE8.js.map} +1 -1
- package/dist/Periods-B4ms3N24.js.map +1 -1
- package/dist/SortableProvider-D-6Ttz0h.js.map +1 -1
- package/dist/{TableCellContextMenu--4IdoKAU.js → TableCellContextMenu-Cu5iXYSJ.js} +2 -2
- package/dist/{TableCellContextMenu--4IdoKAU.js.map → TableCellContextMenu-Cu5iXYSJ.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-Dn8Ks2Lm.js → TableCellResizerPlugin-Bb2blXnq.js} +43 -43
- package/dist/TableCellResizerPlugin-Bb2blXnq.js.map +1 -0
- package/dist/VarIndicator-D0cnlcIf.js.map +1 -1
- package/dist/{chunk-5WKL7XVT-3IraU-Ja.js → chunk-5WKL7XVT-CvOIS3NE.js} +15 -15
- package/dist/{chunk-5WKL7XVT-3IraU-Ja.js.map → chunk-5WKL7XVT-CvOIS3NE.js.map} +1 -1
- package/dist/{client-BcEWjSJP.js → client-CXlG3hNo.js} +956 -957
- package/dist/{client-BcEWjSJP.js.map → client-CXlG3hNo.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +3 -3
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +3 -3
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/Attention/Attention.stories.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +3 -3
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
- package/dist/components/DataTable/DataTable.stories.js +2 -2
- package/dist/components/DataTable/DataTable.stories.js.map +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +2 -2
- package/dist/components/FormInput/index.js +1 -1
- package/dist/components/GridRow/GridRow.stories.js.map +1 -1
- package/dist/components/Icon/Icon.stories.js.map +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
- package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +2 -2
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +1 -1
- package/dist/components/Periods/Periods.stories.js.map +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
- package/dist/components/RadioTabSelector/index.js +1 -1
- package/dist/components/Repeater/Repeater.stories.js.map +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/EditorHeader/index.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +35 -35
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +33 -33
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/index.js +4 -4
- package/dist/components/RteEditor/RteEditor.js +1 -1
- package/dist/components/RteEditor/RteEditor.stories.js +1 -1
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +7 -7
- package/dist/components/RteEditor/helpers.js.map +1 -1
- package/dist/components/RteEditor/index.js +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +18 -18
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +22 -22
- package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
- package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
- package/dist/components/Slider/Slider.stories.js.map +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js.map +1 -1
- package/dist/components/Spinner/Spinner.stories.js.map +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +3 -3
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
- package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
- package/dist/components/hooks/useOnClickOutside.js.map +1 -1
- package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
- package/dist/components/hooks/useResponsive.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components-CgBF6db6.js +2013 -0
- package/dist/components-CgBF6db6.js.map +1 -0
- package/dist/{dist-C6Ar8a59.js → dist-oLwM--0y.js} +14 -14
- package/dist/{dist-C6Ar8a59.js.map → dist-oLwM--0y.js.map} +1 -1
- package/dist/{esm-B6Pg-v2v.js → esm-BXzGXYWZ.js} +3 -3
- package/dist/{esm-B6Pg-v2v.js.map → esm-BXzGXYWZ.js.map} +1 -1
- package/dist/{helpers-BzYayeT-.js → helpers-MMNO9vlK.js} +9 -9
- package/dist/helpers-MMNO9vlK.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{react-18-DbbN8Pdb.js → react-18-BwdnKC48.js} +3 -3
- package/dist/react-18-BwdnKC48.js.map +1 -0
- package/dist/{react.esm-56DGmlLk.js → react.esm-DwWzhs9e.js} +17 -17
- package/dist/react.esm-DwWzhs9e.js.map +1 -0
- package/dist/setupTests.js +2 -2
- package/dist/setupTests.js.map +1 -1
- package/dist/storybook__react.d.js +266 -266
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-WxLxsxwA.js → test-Gtly6H2f.js} +7 -5
- package/dist/{test-WxLxsxwA.js.map → test-Gtly6H2f.js.map} +1 -1
- package/dist/{test-utils-CMrZ33U0.js → test-utils-BVa31HVj.js} +2 -2
- package/dist/{test-utils-CMrZ33U0.js.map → test-utils-BVa31HVj.js.map} +1 -1
- package/package.json +21 -22
- package/dist/Lexical.prod-nAj5fF96.js.map +0 -1
- package/dist/LexicalClipboard.prod-B9sWgdS2.js +0 -348
- package/dist/LexicalClipboard.prod-B9sWgdS2.js.map +0 -1
- package/dist/LexicalComposerContext.prod-DumMmRBt.js.map +0 -1
- package/dist/LexicalHtml.prod-RCMsF0qt.js +0 -2139
- package/dist/LexicalHtml.prod-RCMsF0qt.js.map +0 -1
- package/dist/LexicalLink.prod-BcBNTFEb.js +0 -707
- package/dist/LexicalLink.prod-BcBNTFEb.js.map +0 -1
- package/dist/LexicalList.prod-THQt9B32.js +0 -890
- package/dist/LexicalList.prod-THQt9B32.js.map +0 -1
- package/dist/LexicalTable.prod-BpHQYpBM.js.map +0 -1
- package/dist/LexicalUtils.prod-7S6iuu9A.js +0 -347
- package/dist/LexicalUtils.prod-7S6iuu9A.js.map +0 -1
- package/dist/TableCellResizerPlugin-Dn8Ks2Lm.js.map +0 -1
- package/dist/components-KU0q76JR.js +0 -2150
- package/dist/components-KU0q76JR.js.map +0 -1
- package/dist/helpers-BzYayeT-.js.map +0 -1
- package/dist/react-18-DbbN8Pdb.js.map +0 -1
- package/dist/react.esm-56DGmlLk.js.map +0 -1
- /package/dist/{chunk-CWhphoD1.js → rolldown-runtime-CWhphoD1.js} +0 -0
|
@@ -0,0 +1,2013 @@
|
|
|
1
|
+
import { t as e } from "./clsx-C67XSbzZ.js";
|
|
2
|
+
import { Icon as t } from "./components/Icon/Icon.js";
|
|
3
|
+
import { Button as n } from "./components/Buttons/Button.js";
|
|
4
|
+
import { t as r } from "./Checkbox-sAt4To2B.js";
|
|
5
|
+
import { t as i } from "./CheckboxButtonBar-OrJSqUTN.js";
|
|
6
|
+
import { t as a } from "./Label-52ny6d06.js";
|
|
7
|
+
import { t as o } from "./FeedbackBox-BpOf_dxg.js";
|
|
8
|
+
import { t as s } from "./ControlsButton-Byx4XQtB.js";
|
|
9
|
+
import { useResponsive as c } from "./components/hooks/useResponsive.js";
|
|
10
|
+
import { t as l } from "./FormField-ByjTkKKq.js";
|
|
11
|
+
import { t as u } from "./InputField-asFsxHvx.js";
|
|
12
|
+
import { n as d, t as f } from "./MultiSelectItem-hx3Y4Lmk.js";
|
|
13
|
+
import { n as p, r as m, t as h } from "./LexicalComposerContext.prod-D4HOlWII.js";
|
|
14
|
+
import { $ as g, $n as _, $t as v, An as y, Cr as b, D as x, Dn as S, Dr as C, Dt as w, Et as T, G as E, Gn as D, H as ee, Hn as te, Ht as ne, I as re, It as ie, Jn as ae, Jt as oe, K as O, Kt as se, L as ce, Lt as le, Mr as ue, N as k, Nn as de, Pn as fe, Qt as pe, Rn as me, Sn as he, Sr as ge, St as A, Tr as _e, Un as ve, Vn as j, Xn as ye, Yn as be, Yt as xe, Z as Se, Zt as Ce, _n as we, _r as Te, ar as Ee, bn as De, bt as Oe, cn as ke, cr as Ae, dn as je, dr as Me, dt as Ne, et as Pe, fn as Fe, g as M, gn as N, gr as P, hr as Ie, in as Le, ir as Re, it as ze, jn as Be, jr as Ve, kr as He, kt as Ue, lt as We, mn as Ge, mr as F, n as Ke, nn as qe, nt as Je, o as Ye, or as Xe, pt as Ze, qn as I, r as Qe, rt as $e, s as et, sn as tt, tt as L, un as nt, w as rt, wn as R, wr as it, wt as at, x as ot, xr as st, yr as ct, yt as lt, zt as ut } from "./Lexical.prod-Dy5aDppc.js";
|
|
15
|
+
import { n as dt, t as ft } from "./TableCellResizerPlugin-Bb2blXnq.js";
|
|
16
|
+
import { a as pt, c as mt, g as ht, h as gt, i as _t, l as z, m as vt, o as yt } from "./LexicalUtils.prod-CjGUKarD.js";
|
|
17
|
+
import { C as bt, T as xt, _ as St, b as Ct, f as wt, p as Tt, s as Et, y as Dt } from "./LexicalHtml.prod-BtzosUOH.js";
|
|
18
|
+
import { a as Ot, i as kt, n as At, o as jt, r as Mt, s as Nt, t as Pt } from "./LexicalClipboard.prod-CS8a49uL.js";
|
|
19
|
+
import { a as Ft, c as It, l as Lt, t as Rt } from "./LexicalList.prod-icY8mpm6.js";
|
|
20
|
+
import { a as zt, c as B, n as Bt, o as Vt, r as Ht, s as Ut } from "./LexicalLink.prod-DzgwWhQM.js";
|
|
21
|
+
import { C as Wt, T as Gt, c as Kt, d as qt, h as Jt, l as Yt, n as Xt, s as Zt, t as Qt, x as $t } from "./LexicalTable.prod-Bf0is-op.js";
|
|
22
|
+
import { a as en, i as tn, n as nn, r as rn, t as an } from "./helpers-MMNO9vlK.js";
|
|
23
|
+
import { $createTableWrapperNode as on, TableWrapperNode as sn } from "./components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js";
|
|
24
|
+
import { CourseCatalogueLinkPlugin as cn, CourseCatalogueNode as ln } from "./components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js";
|
|
25
|
+
import { cleanUpTable as un, exportMap as dn, mergeBoldStrongTags as fn, removeScrollableContainers as pn, setScrollableContainers as mn } from "./components/RteEditor/helpers.js";
|
|
26
|
+
import { t as V } from "./RteEditor.module-pWBasED2.js";
|
|
27
|
+
import { LanguageProvider as hn, useLanguage as gn } from "./components/RteEditor/Providers/LanguageProvider.js";
|
|
28
|
+
import { useTranslation as H } from "./components/RteEditor/hooks/useTranslation.js";
|
|
29
|
+
import { CourseCataloguePlugin as _n } from "./components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js";
|
|
30
|
+
import { BlockFormatPlugin as vn } from "./components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js";
|
|
31
|
+
import { ListPlugin as yn } from "./components/RteEditor/Plugins/ListPlugin/ListPlugin.js";
|
|
32
|
+
import { t as bn } from "./LinkContextMenu-C8ehPbP8.js";
|
|
33
|
+
import { useFlyout as xn } from "./components/RteEditor/hooks/useFlyout.js";
|
|
34
|
+
import { createTable as Sn, deleteColumn as Cn, deleteRow as wn, deleteTable as Tn, getEditorContentWidth as En, getEditorParrentCellWidth as Dn, insertColumn as On, insertRow as kn } from "./components/RteEditor/Plugins/TablePlugin/helpers.js";
|
|
35
|
+
import { t as An } from "./TableCellContextMenu-Cu5iXYSJ.js";
|
|
36
|
+
import { t as jn } from "./PasteHandlerPlugin-CSo_lOE8.js";
|
|
37
|
+
import { UvaTheme as Mn } from "./components/RteEditor/UvaTheme/UvaTheme.js";
|
|
38
|
+
import * as Nn from "react";
|
|
39
|
+
import { Component as Pn, Suspense as Fn, createRef as In, forwardRef as Ln, useCallback as Rn, useEffect as U, useId as W, useImperativeHandle as zn, useLayoutEffect as Bn, useMemo as Vn, useRef as G, useState as K } from "react";
|
|
40
|
+
import { Fragment as Hn, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
41
|
+
import { createPortal as Un, flushSync as Wn } from "react-dom";
|
|
42
|
+
import './assets/components.css';//#region src/components/CheckboxTree/CheckboxTree.module.css
|
|
43
|
+
var Y = {
|
|
44
|
+
"checkbox-tree__header": "_checkbox-tree__header_1kejb_1",
|
|
45
|
+
"checkbox-tree__branch": "_checkbox-tree__branch_1kejb_8",
|
|
46
|
+
"checkbox-tree__branch--icon": "_checkbox-tree__branch--icon_1kejb_21",
|
|
47
|
+
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--expanded_1kejb_27",
|
|
48
|
+
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--formfield_1kejb_32",
|
|
49
|
+
"checkbox-tree__leaves": "_checkbox-tree__leaves_1kejb_39",
|
|
50
|
+
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_1kejb_48",
|
|
51
|
+
"checkbox-tree__leaf": "_checkbox-tree__leaf_1kejb_52"
|
|
52
|
+
}, Gn = ({ title: i, checkboxTree: o, selectedValues: s, noLabelFrontWeight: u = !1, onChange: d }) => {
|
|
53
|
+
let f = G({}), [p, m] = K([]), { lessThan: h } = c(), g = (e, t) => {
|
|
54
|
+
if (e.length !== t.length) return !1;
|
|
55
|
+
let n = (e) => e.reduce((e, t) => (e[t] = (e[t] || 0) + 1, e), {}), r = n(e), i = n(t);
|
|
56
|
+
return !Object.keys(r).some((e) => r[e] !== i[e]);
|
|
57
|
+
}, _ = (e) => (f.current[e] || (f.current[e] = In()), f.current[e]), v = () => {
|
|
58
|
+
let e = [];
|
|
59
|
+
Object.entries(f.current).forEach(([t]) => {
|
|
60
|
+
let n = f.current[t].current;
|
|
61
|
+
n && n.name.indexOf("Group") === -1 && n.checked && e.push(n.value);
|
|
62
|
+
}), m(e), d && d(e);
|
|
63
|
+
}, y = (e) => {
|
|
64
|
+
if (e === "") return;
|
|
65
|
+
let t = [];
|
|
66
|
+
Object.entries(f.current).forEach(([n]) => {
|
|
67
|
+
let r = f.current[n].current;
|
|
68
|
+
r && r?.getAttribute("data-groupname") === e && t.push(r.checked);
|
|
69
|
+
});
|
|
70
|
+
let n = t.every(Boolean), r = t.some(Boolean);
|
|
71
|
+
f.current[e].current && (f.current[e].current.checked = n, f.current[e].current.indeterminate = !n && n !== r, f.current[e].current.checked = n && n === r);
|
|
72
|
+
}, b = (e, t) => {
|
|
73
|
+
let n = t?.querySelector("[data-ul]");
|
|
74
|
+
e.childNodes[0].classList.toggle(Y["checkbox-tree__branch--icon--expanded"]), t?.closest("[data-li]")?.setAttribute("aria-expanded", t?.closest("[data-li]")?.getAttribute("aria-expanded") === "false" ? "true" : "false"), n && n.classList.toggle(Y["checkbox-tree__leaves--expanded"]);
|
|
75
|
+
}, x = (e) => {
|
|
76
|
+
let t = e.target;
|
|
77
|
+
if (!(t.type !== "checkbox" && t.type !== "button")) {
|
|
78
|
+
if (h.md && t.name.indexOf("Group") !== -1 && t.parentNode && t.parentNode.parentNode.getAttribute("aria-expanded") === "false") {
|
|
79
|
+
e.preventDefault(), b(t.parentNode, t.parentNode.parentNode);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (t.name.indexOf("Group") !== -1) {
|
|
83
|
+
let e = t.name;
|
|
84
|
+
Object.entries(f.current).forEach(([t]) => {
|
|
85
|
+
if (t.indexOf(`${e}_`) !== -1) {
|
|
86
|
+
let n = f.current[t].current, r = f.current[e].current;
|
|
87
|
+
if (!n || !r) return;
|
|
88
|
+
n.checked = !!r.checked;
|
|
89
|
+
}
|
|
90
|
+
}), y(e), v();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
y(t.getAttribute("data-groupname") || ""), v();
|
|
94
|
+
}
|
|
95
|
+
}, S = (e) => {
|
|
96
|
+
let t = e.target;
|
|
97
|
+
b(t, t.closest("[data-li]"));
|
|
98
|
+
};
|
|
99
|
+
return U(() => {
|
|
100
|
+
s && !g(s, p) && Object.entries(f.current).forEach(([e]) => {
|
|
101
|
+
let t = f.current[e].current;
|
|
102
|
+
t && (s?.includes(t.value) ? t.checked = !0 : t.checked = !1, t.name.indexOf("Group") !== -1 && m(s || []));
|
|
103
|
+
});
|
|
104
|
+
}, [s]), U(() => {
|
|
105
|
+
Object.entries(f.current).forEach(([e]) => {
|
|
106
|
+
let t = f.current[e].current;
|
|
107
|
+
t && t.name.indexOf("Group") !== -1 && y(t.name);
|
|
108
|
+
});
|
|
109
|
+
}, [p]), /* @__PURE__ */ J("div", { children: [i && /* @__PURE__ */ q("span", {
|
|
110
|
+
className: Y["checkbox-tree__header"],
|
|
111
|
+
children: i
|
|
112
|
+
}), /* @__PURE__ */ q("div", {
|
|
113
|
+
onClick: x,
|
|
114
|
+
"data-ul": !0,
|
|
115
|
+
role: "tree",
|
|
116
|
+
tabIndex: 0,
|
|
117
|
+
children: o.map(({ itemName: i, children: o }, s) => /* @__PURE__ */ J("div", {
|
|
118
|
+
className: Y["checkbox-tree__branch"],
|
|
119
|
+
"data-li": !0,
|
|
120
|
+
"aria-expanded": h.md ? "false" : "true",
|
|
121
|
+
children: [/* @__PURE__ */ J(l, {
|
|
122
|
+
inline: !0,
|
|
123
|
+
className: Y["checkbox-tree__branch--formfield"],
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ q(n, {
|
|
126
|
+
variant: "blank",
|
|
127
|
+
onClick: S,
|
|
128
|
+
children: /* @__PURE__ */ q(t, {
|
|
129
|
+
name: "CheveronRight",
|
|
130
|
+
size: 16,
|
|
131
|
+
className: e(Y["checkbox-tree__branch--icon"], { [Y["checkbox-tree__branch--icon--expanded"]]: !h.md })
|
|
132
|
+
})
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ q(r, {
|
|
135
|
+
id: i,
|
|
136
|
+
name: `Group${s}`,
|
|
137
|
+
disabled: o.every((e) => e.disabled),
|
|
138
|
+
ref: _(`Group${s}`)
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ q(a, {
|
|
141
|
+
htmlFor: i,
|
|
142
|
+
noFontWeight: u,
|
|
143
|
+
children: i
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
}), /* @__PURE__ */ q("div", {
|
|
147
|
+
className: e(Y["checkbox-tree__leaves"], { [Y["checkbox-tree__leaves--expanded"]]: !h.md }),
|
|
148
|
+
"data-ul": !0,
|
|
149
|
+
children: o.map(({ itemName: e, itemValue: t, disabled: n }) => /* @__PURE__ */ q("div", {
|
|
150
|
+
className: Y["checkbox-tree__leaf"],
|
|
151
|
+
"data-li": !0,
|
|
152
|
+
children: /* @__PURE__ */ J(l, {
|
|
153
|
+
inline: !0,
|
|
154
|
+
className: Y["checkbox-tree__branch--formfield"],
|
|
155
|
+
children: [/* @__PURE__ */ q(r, {
|
|
156
|
+
id: e,
|
|
157
|
+
name: e,
|
|
158
|
+
value: t,
|
|
159
|
+
disabled: n,
|
|
160
|
+
"data-groupname": `Group${s}`,
|
|
161
|
+
ref: _(`Group${s}_${e}`)
|
|
162
|
+
}), /* @__PURE__ */ q(a, {
|
|
163
|
+
htmlFor: e,
|
|
164
|
+
noFontWeight: u,
|
|
165
|
+
children: e
|
|
166
|
+
})]
|
|
167
|
+
})
|
|
168
|
+
}, e))
|
|
169
|
+
})]
|
|
170
|
+
}, i))
|
|
171
|
+
})] });
|
|
172
|
+
}, X = {
|
|
173
|
+
"form-input__container": "_form-input__container_rt0pn_1",
|
|
174
|
+
"form-input__container--label-left": "_form-input__container--label-left_rt0pn_7",
|
|
175
|
+
"form-input__container--label-top": "_form-input__container--label-top_rt0pn_18",
|
|
176
|
+
"form-input__input-feedback-container": "_form-input__input-feedback-container_rt0pn_25",
|
|
177
|
+
"form-input__input-container": "_form-input__input-container_rt0pn_35",
|
|
178
|
+
"form-input__input": "_form-input__input_rt0pn_25",
|
|
179
|
+
"not-valid": "_not-valid_rt0pn_60"
|
|
180
|
+
}, Kn = ({ id: t, label: n, labelPosition: r = "top", type: i = "text", required: s = !1, notValid: c = !1, notValidatedText: l = "", onChange: u, maxLength: d, noContainer: f = !1, customInput: p }) => {
|
|
181
|
+
let m = (e) => [
|
|
182
|
+
"e",
|
|
183
|
+
"E",
|
|
184
|
+
"+",
|
|
185
|
+
"-"
|
|
186
|
+
].includes(e.key) && e.preventDefault(), h = (e) => {
|
|
187
|
+
typeof u == "function" && u(e.target.value);
|
|
188
|
+
}, g = /* @__PURE__ */ J(Hn, { children: [n && /* @__PURE__ */ q(a, {
|
|
189
|
+
htmlFor: t,
|
|
190
|
+
required: s,
|
|
191
|
+
alignRight: !0,
|
|
192
|
+
children: n
|
|
193
|
+
}), /* @__PURE__ */ J("div", {
|
|
194
|
+
className: X["form-input__input-feedback-container"],
|
|
195
|
+
children: [p || /* @__PURE__ */ q("div", {
|
|
196
|
+
className: X["form-input__input-container"],
|
|
197
|
+
children: /* @__PURE__ */ q("input", {
|
|
198
|
+
id: t,
|
|
199
|
+
type: i,
|
|
200
|
+
...i === "number" && { onKeyDown: m },
|
|
201
|
+
onChange: h,
|
|
202
|
+
className: e(X["form-input__input"], { [X["not-valid"]]: c }),
|
|
203
|
+
...d ? { maxLength: d } : {}
|
|
204
|
+
})
|
|
205
|
+
}), l !== "" && /* @__PURE__ */ q(o, {
|
|
206
|
+
level: "error",
|
|
207
|
+
feedback: l
|
|
208
|
+
})]
|
|
209
|
+
})] });
|
|
210
|
+
return f ? g : /* @__PURE__ */ q("div", {
|
|
211
|
+
className: e(X["form-input__container"], X[`form-input__container--label-${r}`]),
|
|
212
|
+
children: g
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/components/MultiSelect/components/MultiSelectHeader.tsx
|
|
217
|
+
function qn({ label: e, clearTrigger: t, onClear: r }) {
|
|
218
|
+
return /* @__PURE__ */ J("header", {
|
|
219
|
+
className: d["multi-select__header"],
|
|
220
|
+
children: [/* @__PURE__ */ q(a, {
|
|
221
|
+
htmlFor: "multi-select-list",
|
|
222
|
+
children: e
|
|
223
|
+
}), t && /* @__PURE__ */ q(n, {
|
|
224
|
+
variant: "blank",
|
|
225
|
+
onClick: r,
|
|
226
|
+
children: t
|
|
227
|
+
})]
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/components/MultiSelect/MultiSelect.tsx
|
|
232
|
+
var Jn = ({ scrollable: t = !0, noBorder: n, header: r, children: i }) => /* @__PURE__ */ J(Hn, { children: [r, /* @__PURE__ */ q("div", {
|
|
233
|
+
className: e(d["multi-select"], { [d["multi-select--no-border"]]: n }),
|
|
234
|
+
children: /* @__PURE__ */ q("ul", {
|
|
235
|
+
className: e(d["multi-select__list"], { [d["multi-select__list--scrollable"]]: t }),
|
|
236
|
+
id: "multi-select-list",
|
|
237
|
+
children: i
|
|
238
|
+
})
|
|
239
|
+
})] });
|
|
240
|
+
Jn.MultiSelectHeader = qn, Jn.MultiSelectItem = f;
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/components/PeriodSelector/PeriodSelector.module.css
|
|
243
|
+
var Yn = {
|
|
244
|
+
"period-selector__container": "_period-selector__container_1txwd_1",
|
|
245
|
+
"period-selector__container--label-left": "_period-selector__container--label-left_1txwd_6",
|
|
246
|
+
"period-selector__container--label-top": "_period-selector__container--label-top_1txwd_12",
|
|
247
|
+
"period-selector__selector-container": "_period-selector__selector-container_1txwd_18",
|
|
248
|
+
"period-selector__selector-row": "_period-selector__selector-row_1txwd_24"
|
|
249
|
+
}, Xn = 0, Zn = 1, Qn = 2, $n = 3, er = 7, tr = (e) => {
|
|
250
|
+
let t = [];
|
|
251
|
+
for (let n = 0; n < e.length; n += $n) t.push(e.slice(n, n + $n));
|
|
252
|
+
return t;
|
|
253
|
+
}, nr = ({ maxPeriods: t = er, defaultValues: n, label: r, labelPosition: s = "top", required: c = !1, notValidatedText: l = "", onChange: u }) => {
|
|
254
|
+
let d = tr(Array.from({ length: t }, (e, t) => t + 1)), f = d.map((e, t) => e.map((e) => ({
|
|
255
|
+
label: e.toString(),
|
|
256
|
+
value: e.toString()
|
|
257
|
+
}))), p = G(d.map((e) => e.reduce((e, t) => (n?.includes(t) && e.push(t), e), []))), [m, h] = K([]), g = (e) => e[Xn].length !== 0 || e[Zn].length !== 0 ? [Qn] : e[Qn].length === 0 ? [] : [Xn, Zn], _ = (e, t) => {
|
|
258
|
+
p.current[t] = e.map((e) => Number(e)), h(g(p.current)), u([...p.current.flat()].sort());
|
|
259
|
+
};
|
|
260
|
+
return U(() => {
|
|
261
|
+
h(g(p.current));
|
|
262
|
+
}, []), /* @__PURE__ */ J("div", {
|
|
263
|
+
className: e(Yn["period-selector__container"], Yn[`period-selector__container--label-${s}`]),
|
|
264
|
+
children: [r && /* @__PURE__ */ q(a, {
|
|
265
|
+
htmlFor: "",
|
|
266
|
+
required: c,
|
|
267
|
+
children: r
|
|
268
|
+
}), /* @__PURE__ */ J("div", {
|
|
269
|
+
className: Yn["period-selector__selector-container"],
|
|
270
|
+
children: [/* @__PURE__ */ q("div", {
|
|
271
|
+
className: Yn["period-selector__selector-row"],
|
|
272
|
+
children: f.map((e, t) => /* @__PURE__ */ q(i, {
|
|
273
|
+
checkboxes: e,
|
|
274
|
+
defaultValues: p.current[t].map((e) => e.toString()),
|
|
275
|
+
disableGroup: m.includes(t),
|
|
276
|
+
required: c,
|
|
277
|
+
onSetValues: (e) => _(e, t),
|
|
278
|
+
notValid: l !== ""
|
|
279
|
+
}, `group_${t}`))
|
|
280
|
+
}), l !== "" && /* @__PURE__ */ q(o, {
|
|
281
|
+
level: "error",
|
|
282
|
+
feedback: l
|
|
283
|
+
})]
|
|
284
|
+
})]
|
|
285
|
+
});
|
|
286
|
+
}, rr = {
|
|
287
|
+
"radio-tab-selector-button-bar__container": "_radio-tab-selector-button-bar__container_wuziy_1",
|
|
288
|
+
"radio-tab-selector-button-bar__container--label-left": "_radio-tab-selector-button-bar__container--label-left_wuziy_6",
|
|
289
|
+
"radio-tab-selector-button-bar__container--label-top": "_radio-tab-selector-button-bar__container--label-top_wuziy_12",
|
|
290
|
+
"radio-tab-selector-button-bar__row-container": "_radio-tab-selector-button-bar__row-container_wuziy_18",
|
|
291
|
+
"radio-tab-selector-button-bar__row": "_radio-tab-selector-button-bar__row_wuziy_18",
|
|
292
|
+
"radio-tab-selector-button-bar__row--not-validated": "_radio-tab-selector-button-bar__row--not-validated_wuziy_35"
|
|
293
|
+
}, ir = ({ buttons: t, radioGroupName: n, defaultValue: r, label: i, labelPosition: c = "top", required: l = !1, notValidatedText: u = "", onSetValue: d }) => {
|
|
294
|
+
let [f, p] = K(r || null), m = (e) => {
|
|
295
|
+
p(e.target.value), d(e.target.value);
|
|
296
|
+
};
|
|
297
|
+
return /* @__PURE__ */ J("div", {
|
|
298
|
+
className: e(rr["radio-tab-selector-button-bar__container"], rr[`radio-tab-selector-button-bar__container--label-${c}`]),
|
|
299
|
+
children: [i && /* @__PURE__ */ q(a, {
|
|
300
|
+
htmlFor: "",
|
|
301
|
+
required: l,
|
|
302
|
+
children: i
|
|
303
|
+
}), /* @__PURE__ */ J("div", {
|
|
304
|
+
className: rr["radio-tab-selector-button-bar__row-container"],
|
|
305
|
+
children: [/* @__PURE__ */ q("div", {
|
|
306
|
+
className: e(rr["radio-tab-selector-button-bar__row"], { [rr["radio-tab-selector-button-bar__row--not-validated"]]: u }),
|
|
307
|
+
children: t.map(({ label: e, value: t, iconName: r, disabled: i }) => /* @__PURE__ */ q(s, {
|
|
308
|
+
type: "radio",
|
|
309
|
+
name: n,
|
|
310
|
+
label: e,
|
|
311
|
+
value: t,
|
|
312
|
+
iconName: r,
|
|
313
|
+
checked: f === t,
|
|
314
|
+
disabled: i,
|
|
315
|
+
onSetValue: m
|
|
316
|
+
}, `${t}`))
|
|
317
|
+
}), u !== "" && /* @__PURE__ */ q(o, {
|
|
318
|
+
level: "error",
|
|
319
|
+
feedback: u
|
|
320
|
+
})]
|
|
321
|
+
})]
|
|
322
|
+
});
|
|
323
|
+
}, ar = j ? Bn : U, or = { tag: b };
|
|
324
|
+
function sr({ initialConfig: e, children: t }) {
|
|
325
|
+
let n = Vn(() => {
|
|
326
|
+
let { theme: t, namespace: n, nodes: r, onError: i, onWarn: a, editorState: o, html: s } = e, c = m(null, t), l = ye({
|
|
327
|
+
editable: e.editable,
|
|
328
|
+
html: s,
|
|
329
|
+
namespace: n,
|
|
330
|
+
nodes: r,
|
|
331
|
+
onError: (e) => i(e, l),
|
|
332
|
+
...a ? { onWarn: (e) => a(e, l) } : {},
|
|
333
|
+
theme: t
|
|
334
|
+
});
|
|
335
|
+
return function(e, t) {
|
|
336
|
+
if (t !== null) {
|
|
337
|
+
if (t === void 0) e.update(() => {
|
|
338
|
+
let t = F();
|
|
339
|
+
if (t.isEmpty()) {
|
|
340
|
+
let n = P();
|
|
341
|
+
t.append(n);
|
|
342
|
+
let r = e.getRootElement(), i = j && r !== null ? te(r) : null;
|
|
343
|
+
(O() !== null || i !== null && i === r) && n.select();
|
|
344
|
+
}
|
|
345
|
+
}, or);
|
|
346
|
+
else if (t !== null) switch (typeof t) {
|
|
347
|
+
case "string": {
|
|
348
|
+
let n = e.parseEditorState(t);
|
|
349
|
+
e.setEditorState(n, or);
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
352
|
+
case "object":
|
|
353
|
+
e.setEditorState(t, or);
|
|
354
|
+
break;
|
|
355
|
+
case "function": e.update(() => {
|
|
356
|
+
F().isEmpty() && t(e);
|
|
357
|
+
}, or);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}(l, o), [l, c];
|
|
361
|
+
}, []);
|
|
362
|
+
return ar(() => {
|
|
363
|
+
let t = e.editable, [r] = n;
|
|
364
|
+
r.setEditable(t === void 0 || t);
|
|
365
|
+
}, []), /*#__PURE__*/ q(p.Provider, {
|
|
366
|
+
value: n,
|
|
367
|
+
children: t
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalReactProviderExtension.prod.mjs
|
|
372
|
+
var cr = /* @__PURE__ */ he({ name: "@lexical/react/ReactProvider" });
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region node_modules/.pnpm/@lexical+text@0.46.0_typescript@5.9.3/node_modules/@lexical/text/dist/LexicalText.prod.mjs
|
|
375
|
+
function lr() {
|
|
376
|
+
return F().getTextContent();
|
|
377
|
+
}
|
|
378
|
+
function ur(e, t = !0) {
|
|
379
|
+
if (e) return !1;
|
|
380
|
+
let n = lr();
|
|
381
|
+
return t && (n = n.trim()), n === "";
|
|
382
|
+
}
|
|
383
|
+
function dr(e) {
|
|
384
|
+
if (!ur(e, !1)) return !1;
|
|
385
|
+
let t = F().getChildren(), n = t.length;
|
|
386
|
+
if (n > 1) return !1;
|
|
387
|
+
for (let e = 0; e < n; e++) {
|
|
388
|
+
let n = t[e];
|
|
389
|
+
if (k(n)) return !1;
|
|
390
|
+
if (M(n)) {
|
|
391
|
+
if (!Fe(n) || n.__indent !== 0) return !1;
|
|
392
|
+
let t = n.getChildren(), r = t.length;
|
|
393
|
+
for (let n = 0; n < r; n++) {
|
|
394
|
+
let n = t[e];
|
|
395
|
+
if (!R(n)) return !1;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return !0;
|
|
400
|
+
}
|
|
401
|
+
function fr(e) {
|
|
402
|
+
return () => dr(e);
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region node_modules/.pnpm/@lexical+dragon@0.46.0_typescript@5.9.3/node_modules/@lexical/dragon/dist/LexicalDragon.prod.mjs
|
|
406
|
+
var pr = {
|
|
407
|
+
bold: "bold",
|
|
408
|
+
italic: "italic",
|
|
409
|
+
strikeThrough: "strikethrough",
|
|
410
|
+
subscript: "subscript",
|
|
411
|
+
superscript: "superscript",
|
|
412
|
+
underline: "underline"
|
|
413
|
+
}, mr = Symbol.for("@lexical/dragon/WindowState");
|
|
414
|
+
function hr(e, t, n) {
|
|
415
|
+
let r = function(e) {
|
|
416
|
+
let t = e[mr];
|
|
417
|
+
return t === void 0 && (t = {
|
|
418
|
+
dispose: () => {},
|
|
419
|
+
editors: /* @__PURE__ */ new Map(),
|
|
420
|
+
installs: /* @__PURE__ */ new Set()
|
|
421
|
+
}, e[mr] = t), t;
|
|
422
|
+
}(e);
|
|
423
|
+
if (r.installs.size === 0) {
|
|
424
|
+
let t = yr.bind(e);
|
|
425
|
+
e.addEventListener("message", t, !0), r.dispose = () => {
|
|
426
|
+
e.removeEventListener("message", t, !0);
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
if (r.installs.add(t), n) {
|
|
430
|
+
let e = r.editors.get(n) || /* @__PURE__ */ new Set();
|
|
431
|
+
e.add(t), r.editors.set(n, e);
|
|
432
|
+
}
|
|
433
|
+
return gr.bind(null, e, r, t, n);
|
|
434
|
+
}
|
|
435
|
+
function gr(e, t, n, r) {
|
|
436
|
+
if (r) {
|
|
437
|
+
let e = t.editors.get(r);
|
|
438
|
+
e && e.delete(n) && e.size === 0 && t.editors.delete(r);
|
|
439
|
+
}
|
|
440
|
+
t.installs.delete(n) && t.installs.size === 0 && (t.dispose(), delete e[mr]);
|
|
441
|
+
}
|
|
442
|
+
function _r(e) {
|
|
443
|
+
return e && e.ownerDocument.defaultView;
|
|
444
|
+
}
|
|
445
|
+
function vr(e) {
|
|
446
|
+
let t = Dt(() => _r(e.getRootElement()), (t) => e.registerRootListener((e) => {
|
|
447
|
+
t.value = _r(e);
|
|
448
|
+
}));
|
|
449
|
+
return xt(() => {
|
|
450
|
+
let n = t.value;
|
|
451
|
+
if (n) return hr(n, Symbol("@lexical/dragon/editorInstall"), e);
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
function yr(e) {
|
|
455
|
+
if (e.origin !== this.location.origin) return;
|
|
456
|
+
let t = function(e) {
|
|
457
|
+
let t = e[mr];
|
|
458
|
+
if (t === void 0) return null;
|
|
459
|
+
let n = Ne(Re(e.document));
|
|
460
|
+
return Pe(n) && t.editors.has(n) ? n : null;
|
|
461
|
+
}(this);
|
|
462
|
+
if (t === null) return;
|
|
463
|
+
let n = e.data;
|
|
464
|
+
if (typeof n == "string") {
|
|
465
|
+
let r;
|
|
466
|
+
try {
|
|
467
|
+
r = JSON.parse(n);
|
|
468
|
+
} catch {
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
if (r && r.protocol === "nuanria_messaging" && r.type === "request") {
|
|
472
|
+
let n = r.payload;
|
|
473
|
+
if (n && n.functionId === "makeChanges") {
|
|
474
|
+
let r = n.args;
|
|
475
|
+
if (Array.isArray(r)) {
|
|
476
|
+
let [n, i, a, o, s, c] = r;
|
|
477
|
+
if (![
|
|
478
|
+
n,
|
|
479
|
+
i,
|
|
480
|
+
o,
|
|
481
|
+
s
|
|
482
|
+
].every(Number.isFinite) || typeof a != "string" && a !== -1) return;
|
|
483
|
+
t.update(() => {
|
|
484
|
+
let t = O();
|
|
485
|
+
if (N(t)) {
|
|
486
|
+
let r = t.anchor, l = r.getNode(), u = 0, d = 0;
|
|
487
|
+
if (R(l) && n >= 0 && i >= 0 && (u = n, d = n + i, t.setTextNodeRange(l, u, l, d)), typeof a != "string" || u === d && a === "" || (t.insertRawText(a), l = r.getNode()), R(l)) {
|
|
488
|
+
let e = l.getTextContentSize();
|
|
489
|
+
u = Math.min(Math.max(o, 0), e), d = o < 0 || s < 0 ? u : Math.min(o + s, e), t.setTextNodeRange(l, u, l, d);
|
|
490
|
+
}
|
|
491
|
+
if (typeof c == "string" && s > 0 && !t.isCollapsed()) {
|
|
492
|
+
let e = pr[c];
|
|
493
|
+
e !== void 0 && t.formatText(e);
|
|
494
|
+
}
|
|
495
|
+
e.stopImmediatePropagation();
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
wt.tag("h1", "h2", "h3", "h4", "h5", "h6"), wt.tag("blockquote"), wt.tag("p"), wt.tag("span");
|
|
504
|
+
var br = /* @__PURE__ */ ot("DRAG_DROP_PASTE_FILE"), xr = class e extends We {
|
|
505
|
+
static getType() {
|
|
506
|
+
return "quote";
|
|
507
|
+
}
|
|
508
|
+
static clone(t) {
|
|
509
|
+
return new e(t.__key);
|
|
510
|
+
}
|
|
511
|
+
createDOM(e) {
|
|
512
|
+
let t = document.createElement("blockquote");
|
|
513
|
+
return C(t, e.theme.quote), t;
|
|
514
|
+
}
|
|
515
|
+
updateDOM(e, t) {
|
|
516
|
+
return !1;
|
|
517
|
+
}
|
|
518
|
+
static importDOM() {
|
|
519
|
+
return { blockquote: (e) => ({
|
|
520
|
+
conversion: Tr,
|
|
521
|
+
priority: 0
|
|
522
|
+
}) };
|
|
523
|
+
}
|
|
524
|
+
exportDOM(e) {
|
|
525
|
+
let { element: t } = super.exportDOM(e);
|
|
526
|
+
if (pe(t)) {
|
|
527
|
+
this.isEmpty() && t.append(document.createElement("br"));
|
|
528
|
+
let e = this.getFormatType();
|
|
529
|
+
e && (t.style.textAlign = e);
|
|
530
|
+
let n = this.getDirection();
|
|
531
|
+
n && (t.dir = n);
|
|
532
|
+
}
|
|
533
|
+
return { element: t };
|
|
534
|
+
}
|
|
535
|
+
static importJSON(e) {
|
|
536
|
+
return Sr().updateFromJSON(e);
|
|
537
|
+
}
|
|
538
|
+
insertNewAfter(e, t) {
|
|
539
|
+
let n = P(), r = this.getDirection();
|
|
540
|
+
return n.setDirection(r), this.insertAfter(n, t), n;
|
|
541
|
+
}
|
|
542
|
+
collapseAtStart() {
|
|
543
|
+
let e = P();
|
|
544
|
+
return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
|
|
545
|
+
}
|
|
546
|
+
canMergeWhenEmpty() {
|
|
547
|
+
return !0;
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
function Sr() {
|
|
551
|
+
return ue(new xr());
|
|
552
|
+
}
|
|
553
|
+
var Cr = class e extends We {
|
|
554
|
+
__tag;
|
|
555
|
+
static getType() {
|
|
556
|
+
return "heading";
|
|
557
|
+
}
|
|
558
|
+
static clone(t) {
|
|
559
|
+
return new e(t.__tag, t.__key);
|
|
560
|
+
}
|
|
561
|
+
afterCloneFrom(e) {
|
|
562
|
+
super.afterCloneFrom(e), this.__tag = e.__tag;
|
|
563
|
+
}
|
|
564
|
+
constructor(e = "h1", t) {
|
|
565
|
+
super(t), this.__tag = e;
|
|
566
|
+
}
|
|
567
|
+
getTag() {
|
|
568
|
+
return this.getLatest().__tag;
|
|
569
|
+
}
|
|
570
|
+
setTag(e) {
|
|
571
|
+
let t = this.getWritable();
|
|
572
|
+
return t.__tag = e, t;
|
|
573
|
+
}
|
|
574
|
+
createDOM(e) {
|
|
575
|
+
let t = this.__tag, n = document.createElement(t), r = e.theme.heading;
|
|
576
|
+
if (r !== void 0) {
|
|
577
|
+
let e = r[t];
|
|
578
|
+
C(n, e);
|
|
579
|
+
}
|
|
580
|
+
return n;
|
|
581
|
+
}
|
|
582
|
+
updateDOM(e, t, n) {
|
|
583
|
+
return e.__tag !== this.__tag;
|
|
584
|
+
}
|
|
585
|
+
static importDOM() {
|
|
586
|
+
return {
|
|
587
|
+
h1: (e) => ({
|
|
588
|
+
conversion: Z,
|
|
589
|
+
priority: 0
|
|
590
|
+
}),
|
|
591
|
+
h2: (e) => ({
|
|
592
|
+
conversion: Z,
|
|
593
|
+
priority: 0
|
|
594
|
+
}),
|
|
595
|
+
h3: (e) => ({
|
|
596
|
+
conversion: Z,
|
|
597
|
+
priority: 0
|
|
598
|
+
}),
|
|
599
|
+
h4: (e) => ({
|
|
600
|
+
conversion: Z,
|
|
601
|
+
priority: 0
|
|
602
|
+
}),
|
|
603
|
+
h5: (e) => ({
|
|
604
|
+
conversion: Z,
|
|
605
|
+
priority: 0
|
|
606
|
+
}),
|
|
607
|
+
h6: (e) => ({
|
|
608
|
+
conversion: Z,
|
|
609
|
+
priority: 0
|
|
610
|
+
}),
|
|
611
|
+
p: (e) => {
|
|
612
|
+
let t = e.firstChild;
|
|
613
|
+
return t !== null && wr(t) ? {
|
|
614
|
+
conversion: () => ({ node: null }),
|
|
615
|
+
priority: 3
|
|
616
|
+
} : null;
|
|
617
|
+
},
|
|
618
|
+
span: (e) => wr(e) ? {
|
|
619
|
+
conversion: (e) => ({ node: Er("h1") }),
|
|
620
|
+
priority: 3
|
|
621
|
+
} : null
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
exportDOM(e) {
|
|
625
|
+
let { element: t } = super.exportDOM(e);
|
|
626
|
+
if (pe(t)) {
|
|
627
|
+
this.isEmpty() && t.append(document.createElement("br"));
|
|
628
|
+
let e = this.getFormatType();
|
|
629
|
+
e && (t.style.textAlign = e);
|
|
630
|
+
let n = this.getDirection();
|
|
631
|
+
n && (t.dir = n);
|
|
632
|
+
}
|
|
633
|
+
return { element: t };
|
|
634
|
+
}
|
|
635
|
+
static importJSON(e) {
|
|
636
|
+
return Er(e.tag).updateFromJSON(e);
|
|
637
|
+
}
|
|
638
|
+
updateFromJSON(e) {
|
|
639
|
+
return super.updateFromJSON(e).setTag(e.tag);
|
|
640
|
+
}
|
|
641
|
+
exportJSON() {
|
|
642
|
+
return {
|
|
643
|
+
...super.exportJSON(),
|
|
644
|
+
tag: this.getTag()
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
insertNewAfter(e, t = !0) {
|
|
648
|
+
let n = e ? e.anchor.offset : 0, r = this.getLastDescendant(), i = !r || e && e.anchor.key === r.getKey() && n === r.getTextContentSize() || !e ? P() : Er(this.getTag()), a = this.getDirection();
|
|
649
|
+
if (i.setDirection(a), this.insertAfter(i, t), n === 0 && !this.isEmpty() && e) {
|
|
650
|
+
let e = P();
|
|
651
|
+
e.select(), this.replace(e, !0);
|
|
652
|
+
}
|
|
653
|
+
return i;
|
|
654
|
+
}
|
|
655
|
+
collapseAtStart() {
|
|
656
|
+
if (this.isEmpty()) {
|
|
657
|
+
let e = P();
|
|
658
|
+
this.getChildren().forEach((t) => e.append(t)), this.replace(e);
|
|
659
|
+
}
|
|
660
|
+
return !0;
|
|
661
|
+
}
|
|
662
|
+
extractWithChild() {
|
|
663
|
+
return !0;
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
function wr(e) {
|
|
667
|
+
return e.nodeName.toLowerCase() === "span" && e.style.fontSize === "26pt";
|
|
668
|
+
}
|
|
669
|
+
function Z(e) {
|
|
670
|
+
let t = e.nodeName.toLowerCase(), n = null;
|
|
671
|
+
return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6" || (n = Er(t), ze(e, n), Ye(n, e), g(n, e)), { node: n };
|
|
672
|
+
}
|
|
673
|
+
function Tr(e) {
|
|
674
|
+
let t = Sr();
|
|
675
|
+
return Ye(t, e), ze(e, t), g(t, e), { node: t };
|
|
676
|
+
}
|
|
677
|
+
function Er(e = "h1") {
|
|
678
|
+
return ue(new Cr(e));
|
|
679
|
+
}
|
|
680
|
+
function Dr(e) {
|
|
681
|
+
return k(ut(e));
|
|
682
|
+
}
|
|
683
|
+
function Q(e, t, n, r) {
|
|
684
|
+
let i = !1, a = null;
|
|
685
|
+
if (e.isCollapsed() && e.anchor.type === "text") {
|
|
686
|
+
let t = e.anchor.getNode();
|
|
687
|
+
if (R(t)) {
|
|
688
|
+
a = t;
|
|
689
|
+
let r = e.anchor.offset, o = r === t.getTextContentSize() && t.getNextSibling() === null, s = r === 0 && t.getPreviousSibling() === null;
|
|
690
|
+
i = n === "end" && o || n === "start" && s || n === "both" && (o || s);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
let o = !1;
|
|
694
|
+
for (let [n, s] of Object.entries(r)) {
|
|
695
|
+
if (s == null || !s[t]) continue;
|
|
696
|
+
let r = n;
|
|
697
|
+
if (s.onlyAtBoundary) {
|
|
698
|
+
if (!(i && a && R(a) && a.hasFormat(r))) continue;
|
|
699
|
+
o = !0;
|
|
700
|
+
}
|
|
701
|
+
e.hasFormat(r) && e.toggleFormat(r);
|
|
702
|
+
}
|
|
703
|
+
o && e.setStyle("");
|
|
704
|
+
}
|
|
705
|
+
var Or = {
|
|
706
|
+
capitalize: {
|
|
707
|
+
enter: !0,
|
|
708
|
+
space: !0,
|
|
709
|
+
tab: !0
|
|
710
|
+
},
|
|
711
|
+
lowercase: {
|
|
712
|
+
enter: !0,
|
|
713
|
+
space: !0,
|
|
714
|
+
tab: !0
|
|
715
|
+
},
|
|
716
|
+
uppercase: {
|
|
717
|
+
enter: !0,
|
|
718
|
+
space: !0,
|
|
719
|
+
tab: !0
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
function kr(e, t, n) {
|
|
723
|
+
n.preventDefault(), n.stopPropagation();
|
|
724
|
+
let r = e.getNodes();
|
|
725
|
+
if (r.length === 0) return !0;
|
|
726
|
+
let i = r.map((e) => $e(e, "next")).sort(T), a = (t ? i[0] : i[i.length - 1]).origin, o = Ke(a, (e) => e !== a && M(e) && !e.isInline()) ?? F(), s = t ? 0 : o.getChildrenSize();
|
|
727
|
+
return o.select(s, s), !0;
|
|
728
|
+
}
|
|
729
|
+
function Ar(e, t = St(Or)) {
|
|
730
|
+
return A(e.registerCommand(Ve, () => {
|
|
731
|
+
let e = O();
|
|
732
|
+
return I(e) ? (e.clear(), !0) : (N(e) && Q(e, "click", "both", t.peek()), !1);
|
|
733
|
+
}, 0), e.registerCommand(Qe, (e) => {
|
|
734
|
+
let t = O();
|
|
735
|
+
return N(t) ? (t.deleteCharacter(e), !0) : !!I(t) && (t.deleteNodes(), !0);
|
|
736
|
+
}, 0), e.registerCommand(_, (e) => {
|
|
737
|
+
let t = O();
|
|
738
|
+
return !!N(t) && (t.deleteWord(e), !0);
|
|
739
|
+
}, 0), e.registerCommand(ne, (e) => {
|
|
740
|
+
let t = O();
|
|
741
|
+
return !!N(t) && (t.deleteLine(e), !0);
|
|
742
|
+
}, 0), e.registerCommand(x, (t) => {
|
|
743
|
+
let n = O();
|
|
744
|
+
if (typeof t == "string") n !== null && n.insertText(t);
|
|
745
|
+
else {
|
|
746
|
+
if (n === null) return !1;
|
|
747
|
+
let r = t.dataTransfer;
|
|
748
|
+
if (r != null) jt(r, n, e);
|
|
749
|
+
else if (N(n)) {
|
|
750
|
+
let e = t.data;
|
|
751
|
+
return e && n.insertText(e), !0;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
return !0;
|
|
755
|
+
}, 0), e.registerCommand(Ue, () => {
|
|
756
|
+
let e = O();
|
|
757
|
+
return !!N(e) && (e.removeText(), !0);
|
|
758
|
+
}, 0), e.registerCommand(rt, (e) => {
|
|
759
|
+
let t = O();
|
|
760
|
+
return !!N(t) && (t.formatText(e), !0);
|
|
761
|
+
}, 0), e.registerCommand(He, (e) => {
|
|
762
|
+
let t = O();
|
|
763
|
+
if (!N(t) && !I(t)) return !1;
|
|
764
|
+
let n = t.getNodes();
|
|
765
|
+
for (let t of n) {
|
|
766
|
+
let n = Ke(t, (e) => M(e) && !e.isInline());
|
|
767
|
+
n !== null && n.setFormat(e);
|
|
768
|
+
}
|
|
769
|
+
return !0;
|
|
770
|
+
}, 0), e.registerCommand(w, (e) => {
|
|
771
|
+
let t = O();
|
|
772
|
+
return !!N(t) && (t.insertLineBreak(e), !0);
|
|
773
|
+
}, 0), e.registerCommand(re, () => {
|
|
774
|
+
let e = O();
|
|
775
|
+
return !!N(e) && (e.insertParagraph(), !0);
|
|
776
|
+
}, 0), e.registerCommand(De, () => {
|
|
777
|
+
let e = de(), t = O();
|
|
778
|
+
return N(t) && (e.setFormat(t.format), e.setStyle(t.style)), ce([e]), !0;
|
|
779
|
+
}, 0), e.registerCommand(we, () => _t((e) => {
|
|
780
|
+
let t = e.getIndent();
|
|
781
|
+
e.setIndent(t + 1);
|
|
782
|
+
}), 0), e.registerCommand(oe, () => _t((e) => {
|
|
783
|
+
let t = e.getIndent();
|
|
784
|
+
t > 0 && e.setIndent(Math.max(0, t - 1));
|
|
785
|
+
}), 0), e.registerCommand(D, (e) => {
|
|
786
|
+
let t = O();
|
|
787
|
+
if (I(t)) {
|
|
788
|
+
let n = t.getNodes();
|
|
789
|
+
if (n.length > 0) return e.preventDefault(), n[0].selectPrevious(), !0;
|
|
790
|
+
} else if (N(t)) {
|
|
791
|
+
let n = lt(t.focus, !0);
|
|
792
|
+
if (!e.shiftKey && k(n) && !n.isIsolated() && !n.isInline()) return n.selectPrevious(), e.preventDefault(), !0;
|
|
793
|
+
}
|
|
794
|
+
return !1;
|
|
795
|
+
}, 0), e.registerCommand(Me, (e) => {
|
|
796
|
+
let t = O();
|
|
797
|
+
if (I(t)) {
|
|
798
|
+
let n = t.getNodes();
|
|
799
|
+
if (n.length > 0) return e.preventDefault(), n[0].selectNext(0, 0), !0;
|
|
800
|
+
} else if (N(t)) {
|
|
801
|
+
if (function(e) {
|
|
802
|
+
let t = e.focus;
|
|
803
|
+
return t.key === "root" && t.offset === F().getChildrenSize();
|
|
804
|
+
}(t)) return e.preventDefault(), !0;
|
|
805
|
+
let n = lt(t.focus, !1);
|
|
806
|
+
if (!e.shiftKey && k(n) && !n.isIsolated() && !n.isInline()) return n.selectNext(), e.preventDefault(), !0;
|
|
807
|
+
}
|
|
808
|
+
return !1;
|
|
809
|
+
}, 0), e.registerCommand(ve, (e) => {
|
|
810
|
+
let n = O();
|
|
811
|
+
if (I(n)) {
|
|
812
|
+
let t = n.getNodes();
|
|
813
|
+
if (t.length > 0) return e.preventDefault(), gt(t[0]) ? t[0].selectNext(0, 0) : t[0].selectPrevious(), !0;
|
|
814
|
+
}
|
|
815
|
+
if (!N(n)) return !1;
|
|
816
|
+
if (e.shiftKey || Q(n, "arrow", "start", t.peek()), vt(n, !0)) {
|
|
817
|
+
let t = e.shiftKey;
|
|
818
|
+
return e.preventDefault(), ht(n, t, !0), !0;
|
|
819
|
+
}
|
|
820
|
+
return !1;
|
|
821
|
+
}, 0), e.registerCommand(Ie, (e) => {
|
|
822
|
+
let n = O();
|
|
823
|
+
if (I(n)) {
|
|
824
|
+
let t = n.getNodes();
|
|
825
|
+
if (t.length > 0) return e.preventDefault(), gt(t[0]) ? t[0].selectPrevious() : t[0].selectNext(0, 0), !0;
|
|
826
|
+
}
|
|
827
|
+
if (!N(n)) return !1;
|
|
828
|
+
if (e.shiftKey || Q(n, "arrow", "end", t.peek()), vt(n, !1)) {
|
|
829
|
+
let t = e.shiftKey;
|
|
830
|
+
return e.preventDefault(), ht(n, t, !1), !0;
|
|
831
|
+
}
|
|
832
|
+
return !1;
|
|
833
|
+
}, 0), e.registerCommand(v, (t) => {
|
|
834
|
+
let n = O();
|
|
835
|
+
if (!I(n) && Dr(t.target)) return !1;
|
|
836
|
+
if (N(n)) {
|
|
837
|
+
if (function(e) {
|
|
838
|
+
if (!e.isCollapsed()) return !1;
|
|
839
|
+
let { anchor: t } = e;
|
|
840
|
+
if (t.offset !== 0) return !1;
|
|
841
|
+
let n = t.getNode();
|
|
842
|
+
if (ee(n)) return !1;
|
|
843
|
+
let r = mt(n);
|
|
844
|
+
return r.getIndent() > 0 && (r.is(n) || n.is(r.getFirstDescendant()));
|
|
845
|
+
}(n)) return t.preventDefault(), e.dispatchCommand(oe, void 0);
|
|
846
|
+
if (Be && Ae) return !1;
|
|
847
|
+
} else if (!I(n)) return !1;
|
|
848
|
+
return t.preventDefault(), e.dispatchCommand(Qe, !0);
|
|
849
|
+
}, 0), e.registerCommand(Ge, (t) => {
|
|
850
|
+
let n = O();
|
|
851
|
+
return !(!I(n) && Dr(t.target)) && !(!N(n) && !I(n)) && (t.preventDefault(), e.dispatchCommand(Qe, !1));
|
|
852
|
+
}, 0), e.registerCommand(fe, (n) => {
|
|
853
|
+
let r = O();
|
|
854
|
+
if (I(r)) {
|
|
855
|
+
let e = r.getNodes();
|
|
856
|
+
e.length === 1 && k(e[0]) && !e[0].isInline() && (r = e[0].selectNext());
|
|
857
|
+
}
|
|
858
|
+
if (!N(r)) return !1;
|
|
859
|
+
if (Q(r, "enter", "both", t.peek()), n !== null) {
|
|
860
|
+
if ((Be || Ce || tt) && Ae) return !1;
|
|
861
|
+
if (n.preventDefault(), n.shiftKey) return e.dispatchCommand(w, !1);
|
|
862
|
+
}
|
|
863
|
+
return e.dispatchCommand(re, void 0);
|
|
864
|
+
}, 0), e.registerCommand(ct, () => !!N(O()) && (e.blur(), !0), 0), e.registerCommand(be, (t) => {
|
|
865
|
+
let [, n] = yt(t);
|
|
866
|
+
if (n.length > 0) {
|
|
867
|
+
let r = t.clientX, i = t.clientY, a = Ot(r, i, e.getRootElement());
|
|
868
|
+
if (a !== null) {
|
|
869
|
+
let { offset: t, node: r } = a, i = ut(r);
|
|
870
|
+
if (i !== null) {
|
|
871
|
+
let e = et();
|
|
872
|
+
if (R(i)) e.anchor.set(i.getKey(), t, "text"), e.focus.set(i.getKey(), t, "text");
|
|
873
|
+
else {
|
|
874
|
+
let t = i.getParentOrThrow().getKey(), n = i.getIndexWithinParent() + 1;
|
|
875
|
+
e.anchor.set(t, n, "element"), e.focus.set(t, n, "element");
|
|
876
|
+
}
|
|
877
|
+
nt(Se(e));
|
|
878
|
+
}
|
|
879
|
+
e.dispatchCommand(br, n);
|
|
880
|
+
}
|
|
881
|
+
return t.preventDefault(), !0;
|
|
882
|
+
}
|
|
883
|
+
return kt(t, e);
|
|
884
|
+
}, 0), e.registerCommand(me, (t) => {
|
|
885
|
+
let [n] = yt(t), r = O();
|
|
886
|
+
return !(n && !N(r)) && (N(r) && !r.isCollapsed() && t.dataTransfer !== null && (Mt(t.dataTransfer, At(r)), Nt(t.dataTransfer, e)), !0);
|
|
887
|
+
}, 0), e.registerCommand(_e, (e) => {
|
|
888
|
+
let [t] = yt(e), n = O();
|
|
889
|
+
return !(t && !N(n)) && (e.preventDefault(), !0);
|
|
890
|
+
}, 0), e.registerCommand(y, () => {
|
|
891
|
+
let e = O();
|
|
892
|
+
return ae(N(e) && ie(e.anchor.getNode()) !== null ? e : null), !0;
|
|
893
|
+
}, 0), e.registerCommand(Oe, (t) => (Pt(e, pt(t, ClipboardEvent) ? t : null), !0), 0), e.registerCommand(st, (t) => (async function(e, t) {
|
|
894
|
+
await Pt(t, pt(e, ClipboardEvent) ? e : null), t.update(() => {
|
|
895
|
+
let e = O();
|
|
896
|
+
N(e) ? e.removeText() : I(e) && e.getNodes().forEach((e) => e.remove());
|
|
897
|
+
}, { tag: "cut" });
|
|
898
|
+
}(t, e), !0), 0), e.registerCommand(S, (t) => {
|
|
899
|
+
let [, n, r] = yt(t);
|
|
900
|
+
return n.length > 0 && !r ? (e.dispatchCommand(br, n), !0) : Te(t.target) && it(t.target) ? !1 : O() !== null && (function(e, t) {
|
|
901
|
+
e.preventDefault(), t.update(() => {
|
|
902
|
+
let n = O(), r = pt(e, InputEvent) || pt(e, KeyboardEvent) ? null : e.clipboardData;
|
|
903
|
+
r != null && n !== null && jt(r, n, t);
|
|
904
|
+
}, { tag: "paste" });
|
|
905
|
+
}(t, e), !0);
|
|
906
|
+
}, 0), e.registerCommand(Le, () => {
|
|
907
|
+
let e = O();
|
|
908
|
+
return N(e) && Q(e, "space", "both", t.peek()), !1;
|
|
909
|
+
}, 0), e.registerCommand(ke, () => {
|
|
910
|
+
let e = O();
|
|
911
|
+
return N(e) && Q(e, "tab", "both", t.peek()), !1;
|
|
912
|
+
}, 0), e.registerCommand(je, (e) => {
|
|
913
|
+
let t = O();
|
|
914
|
+
if (I(t)) return kr(t, !1, e);
|
|
915
|
+
if (!N(t)) return !1;
|
|
916
|
+
let { anchor: n } = t;
|
|
917
|
+
if (n.type !== "element" || n.offset !== 0) return !1;
|
|
918
|
+
let r = n.getNode();
|
|
919
|
+
if (!M(r)) return !1;
|
|
920
|
+
let i = r.getFirstChild();
|
|
921
|
+
if (!k(i) || !i.isInline()) return !1;
|
|
922
|
+
let a = r.getKey(), o = r.selectEnd();
|
|
923
|
+
return e.shiftKey && o.anchor.set(a, 0, "element"), e.preventDefault(), e.stopPropagation(), !0;
|
|
924
|
+
}, 0), e.registerCommand(Xe, (e) => {
|
|
925
|
+
let t = O();
|
|
926
|
+
if (I(t)) return kr(t, !0, e);
|
|
927
|
+
if (!N(t)) return !1;
|
|
928
|
+
let { anchor: n, focus: r } = t, i = Ke(r.getNode(), (e) => M(e) && !e.isInline());
|
|
929
|
+
if (i === null) return !1;
|
|
930
|
+
let a = i.getFirstChild();
|
|
931
|
+
if (!k(a) || !a.isInline() || Ke(n.getNode(), (e) => M(e) && !e.isInline()) !== i) return !1;
|
|
932
|
+
let o = i.getKey();
|
|
933
|
+
return (r.type !== "element" || r.key !== o || r.offset !== 0) && (t.focus.set(o, 0, "element"), e.shiftKey || t.anchor.set(o, 0, "element"), e.preventDefault(), e.stopPropagation(), !0);
|
|
934
|
+
}, 0));
|
|
935
|
+
}
|
|
936
|
+
//#endregion
|
|
937
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalRichTextPlugin.prod.mjs
|
|
938
|
+
function jr(e, ...t) {
|
|
939
|
+
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
940
|
+
r.append("code", e);
|
|
941
|
+
for (let e of t) r.append("v", e);
|
|
942
|
+
throw n.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
943
|
+
}
|
|
944
|
+
var Mr = j ? Bn : U;
|
|
945
|
+
function Nr({ editor: e, ErrorBoundary: t }) {
|
|
946
|
+
return function(e, t) {
|
|
947
|
+
let [n, r] = K(() => e.getDecorators());
|
|
948
|
+
return Mr(() => e.registerDecoratorListener((e) => {
|
|
949
|
+
Wn(() => {
|
|
950
|
+
r(e);
|
|
951
|
+
});
|
|
952
|
+
}), [e]), U(() => {
|
|
953
|
+
r(e.getDecorators());
|
|
954
|
+
}, [e]), Vn(() => {
|
|
955
|
+
let r = [], i = Object.keys(n);
|
|
956
|
+
for (let a = 0; a < i.length; a++) {
|
|
957
|
+
let o = i[a], s = /*#__PURE__*/ q(t, {
|
|
958
|
+
onError: (t) => e._onError(t),
|
|
959
|
+
children: /*#__PURE__*/ q(Fn, {
|
|
960
|
+
fallback: null,
|
|
961
|
+
children: n[o]
|
|
962
|
+
})
|
|
963
|
+
}), c = e.getElementByKey(o);
|
|
964
|
+
c !== null && r.push(/*#__PURE__*/ Un(s, c, o));
|
|
965
|
+
}
|
|
966
|
+
return r;
|
|
967
|
+
}, [
|
|
968
|
+
t,
|
|
969
|
+
n,
|
|
970
|
+
e
|
|
971
|
+
]);
|
|
972
|
+
}(e, t);
|
|
973
|
+
}
|
|
974
|
+
function Pr({ editor: e, ErrorBoundary: t }) {
|
|
975
|
+
return function(e) {
|
|
976
|
+
let t = Ct.maybeFromEditor(e);
|
|
977
|
+
if (t && t.hasExtensionByName(cr.name)) {
|
|
978
|
+
for (let e of ["@lexical/plain-text", "@lexical/rich-text"]) t.hasExtensionByName(e) && jr(320, e);
|
|
979
|
+
return !0;
|
|
980
|
+
}
|
|
981
|
+
return !1;
|
|
982
|
+
}(e) ? null : /*#__PURE__*/ q(Nr, {
|
|
983
|
+
editor: e,
|
|
984
|
+
ErrorBoundary: t
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
function Fr(e) {
|
|
988
|
+
return e.read("latest", fr(e.isComposing()));
|
|
989
|
+
}
|
|
990
|
+
function Ir({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) {
|
|
991
|
+
let [r] = h();
|
|
992
|
+
return function(e) {
|
|
993
|
+
Mr(() => A(Ar(e), vr(e)), [e]);
|
|
994
|
+
}(r), /*#__PURE__*/ J(Hn, { children: [
|
|
995
|
+
e,
|
|
996
|
+
/*#__PURE__*/ q(Lr, { content: t }),
|
|
997
|
+
/*#__PURE__*/ q(Pr, {
|
|
998
|
+
editor: r,
|
|
999
|
+
ErrorBoundary: n
|
|
1000
|
+
})
|
|
1001
|
+
] });
|
|
1002
|
+
}
|
|
1003
|
+
function Lr({ content: e }) {
|
|
1004
|
+
let [t] = h(), n = function(e) {
|
|
1005
|
+
let [t, n] = K(() => Fr(e));
|
|
1006
|
+
return Mr(() => {
|
|
1007
|
+
function t() {
|
|
1008
|
+
n(Fr(e));
|
|
1009
|
+
}
|
|
1010
|
+
return t(), A(e.registerUpdateListener(() => {
|
|
1011
|
+
t();
|
|
1012
|
+
}), e.registerEditableListener(() => {
|
|
1013
|
+
t();
|
|
1014
|
+
}));
|
|
1015
|
+
}, [e]), t;
|
|
1016
|
+
}(t), r = dt();
|
|
1017
|
+
return n ? typeof e == "function" ? e(r) : e : null;
|
|
1018
|
+
}
|
|
1019
|
+
//#endregion
|
|
1020
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalContentEditable.prod.mjs
|
|
1021
|
+
var Rr = j ? Bn : U;
|
|
1022
|
+
function zr({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: a, ariaExpanded: o, ariaInvalid: s, ariaLabel: c, ariaLabelledBy: l, ariaMultiline: u, ariaOwns: d, ariaRequired: f, autoCapitalize: p, className: m, id: h, role: g = "textbox", spellCheck: _ = !0, style: v, tabIndex: y, "data-testid": b, ...x }, S) {
|
|
1023
|
+
let [C, w] = K(e.isEditable()), T = Rn((t) => {
|
|
1024
|
+
t && t.ownerDocument && t.ownerDocument.defaultView ? e.setRootElement(t) : e.setRootElement(null);
|
|
1025
|
+
}, [e]), E = Vn(() => function(...e) {
|
|
1026
|
+
return (t) => {
|
|
1027
|
+
for (let n of e) typeof n == "function" ? n(t) : n != null && (n.current = t);
|
|
1028
|
+
};
|
|
1029
|
+
}(S, T), [T, S]);
|
|
1030
|
+
return Rr(() => (w(e.isEditable()), e.registerEditableListener((e) => {
|
|
1031
|
+
w(e);
|
|
1032
|
+
})), [e]), /*#__PURE__*/ q("div", {
|
|
1033
|
+
"aria-activedescendant": C ? t : void 0,
|
|
1034
|
+
"aria-autocomplete": C ? n : "none",
|
|
1035
|
+
"aria-controls": C ? r : void 0,
|
|
1036
|
+
"aria-describedby": i,
|
|
1037
|
+
...a == null ? {} : { "aria-errormessage": a },
|
|
1038
|
+
"aria-expanded": C && g === "combobox" ? !!o : void 0,
|
|
1039
|
+
...s == null ? {} : { "aria-invalid": s },
|
|
1040
|
+
"aria-label": c,
|
|
1041
|
+
"aria-labelledby": l,
|
|
1042
|
+
"aria-multiline": u,
|
|
1043
|
+
"aria-owns": C ? d : void 0,
|
|
1044
|
+
"aria-readonly": !C || void 0,
|
|
1045
|
+
"aria-required": f,
|
|
1046
|
+
autoCapitalize: p,
|
|
1047
|
+
className: m,
|
|
1048
|
+
contentEditable: C,
|
|
1049
|
+
"data-testid": b,
|
|
1050
|
+
id: h,
|
|
1051
|
+
ref: E,
|
|
1052
|
+
role: g,
|
|
1053
|
+
spellCheck: _,
|
|
1054
|
+
style: v,
|
|
1055
|
+
tabIndex: y,
|
|
1056
|
+
...x
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
var Br = /*#__PURE__*/ Ln(zr);
|
|
1060
|
+
function Vr(e) {
|
|
1061
|
+
return e.read("latest", fr(e.isComposing()));
|
|
1062
|
+
}
|
|
1063
|
+
var Hr = /*#__PURE__*/ Ln(Ur);
|
|
1064
|
+
function Ur(e, t) {
|
|
1065
|
+
let { placeholder: n, ...r } = e, [i] = h();
|
|
1066
|
+
/*#__PURE__*/
|
|
1067
|
+
return J(Hn, { children: [/*#__PURE__*/ q(Br, {
|
|
1068
|
+
editor: i,
|
|
1069
|
+
...r,
|
|
1070
|
+
ref: t
|
|
1071
|
+
}), n != null && /*#__PURE__*/ q(Wr, {
|
|
1072
|
+
editor: i,
|
|
1073
|
+
content: n
|
|
1074
|
+
})] });
|
|
1075
|
+
}
|
|
1076
|
+
function Wr({ content: e, editor: t }) {
|
|
1077
|
+
let n = function(e) {
|
|
1078
|
+
let [t, n] = K(() => Vr(e));
|
|
1079
|
+
return Rr(() => {
|
|
1080
|
+
function t() {
|
|
1081
|
+
n(Vr(e));
|
|
1082
|
+
}
|
|
1083
|
+
return t(), A(e.registerUpdateListener(() => {
|
|
1084
|
+
t();
|
|
1085
|
+
}), e.registerEditableListener(() => {
|
|
1086
|
+
t();
|
|
1087
|
+
}));
|
|
1088
|
+
}, [e]), t;
|
|
1089
|
+
}(t), [r, i] = K(t.isEditable());
|
|
1090
|
+
if (Bn(() => (i(t.isEditable()), t.registerEditableListener((e) => {
|
|
1091
|
+
i(e);
|
|
1092
|
+
})), [t]), !n) return null;
|
|
1093
|
+
let a = null;
|
|
1094
|
+
return typeof e == "function" ? a = e(r) : e !== null && (a = e), a === null ? null : /*#__PURE__*/ q("div", {
|
|
1095
|
+
"aria-hidden": !0,
|
|
1096
|
+
children: a
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
//#endregion
|
|
1100
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalErrorBoundary.prod.mjs
|
|
1101
|
+
var Gr = class extends Pn {
|
|
1102
|
+
state = { hasError: !1 };
|
|
1103
|
+
static getDerivedStateFromError() {
|
|
1104
|
+
return { hasError: !0 };
|
|
1105
|
+
}
|
|
1106
|
+
componentDidCatch(e, t) {
|
|
1107
|
+
this.props.onError(e instanceof Error ? e : Error(String(e), { cause: e }), t);
|
|
1108
|
+
}
|
|
1109
|
+
render() {
|
|
1110
|
+
return this.state.hasError ? this.props.fallback : this.props.children;
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
function Kr({ children: e, fallback: t, onError: n }) {
|
|
1114
|
+
/*#__PURE__*/
|
|
1115
|
+
return q(Gr, {
|
|
1116
|
+
fallback: t === void 0 ? /*#__PURE__*/ q("div", {
|
|
1117
|
+
style: {
|
|
1118
|
+
border: "1px solid #f00",
|
|
1119
|
+
color: "#f00",
|
|
1120
|
+
padding: "8px"
|
|
1121
|
+
},
|
|
1122
|
+
children: "An error was thrown."
|
|
1123
|
+
}) : t,
|
|
1124
|
+
onError: n,
|
|
1125
|
+
children: e
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
//#endregion
|
|
1129
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalOnChangePlugin.prod.mjs
|
|
1130
|
+
var qr = j ? Bn : U;
|
|
1131
|
+
function Jr({ ignoreHistoryMergeTagChange: e = !0, ignoreSelectionChange: t = !1, onChange: n }) {
|
|
1132
|
+
let [r] = h();
|
|
1133
|
+
return qr(() => {
|
|
1134
|
+
if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: a, dirtyLeaves: o, prevEditorState: s, tags: c }) => {
|
|
1135
|
+
t && a.size === 0 && o.size === 0 || e && c.has("history-merge") || s.isEmpty() || n(i, r, c);
|
|
1136
|
+
});
|
|
1137
|
+
}, [
|
|
1138
|
+
r,
|
|
1139
|
+
e,
|
|
1140
|
+
t,
|
|
1141
|
+
n
|
|
1142
|
+
]), null;
|
|
1143
|
+
}
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalListPlugin.prod.mjs
|
|
1146
|
+
function Yr({ hasStrictIndent: e = !1, shouldPreserveNumbering: t = !1 }) {
|
|
1147
|
+
let [n] = h();
|
|
1148
|
+
return U(() => {
|
|
1149
|
+
if (!n.hasNodes([Rt, Ft])) throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
1150
|
+
}, [n]), U(() => A(It(n, { restoreNumbering: t }), e ? Lt(n) : () => {}), [
|
|
1151
|
+
n,
|
|
1152
|
+
e,
|
|
1153
|
+
t
|
|
1154
|
+
]), function(e) {
|
|
1155
|
+
U(() => It(e), [e]);
|
|
1156
|
+
}(n), null;
|
|
1157
|
+
}
|
|
1158
|
+
//#endregion
|
|
1159
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalLinkPlugin.prod.mjs
|
|
1160
|
+
function Xr({ validateUrl: e, attributes: t }) {
|
|
1161
|
+
let [n] = h();
|
|
1162
|
+
return U(() => {
|
|
1163
|
+
if (!n.hasNodes([B])) throw Error("LinkPlugin: LinkNode not registered on editor");
|
|
1164
|
+
}), U(() => zt(n, bt({
|
|
1165
|
+
attributes: t,
|
|
1166
|
+
validateUrl: e
|
|
1167
|
+
})), [
|
|
1168
|
+
n,
|
|
1169
|
+
e,
|
|
1170
|
+
t
|
|
1171
|
+
]), null;
|
|
1172
|
+
}
|
|
1173
|
+
//#endregion
|
|
1174
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalClickableLinkPlugin.prod.mjs
|
|
1175
|
+
function Zr({ newTab: e = !0, disabled: t = !1 }) {
|
|
1176
|
+
let [n] = h();
|
|
1177
|
+
return U(() => Ht(n, bt({
|
|
1178
|
+
disabled: t,
|
|
1179
|
+
newTab: e
|
|
1180
|
+
})), [
|
|
1181
|
+
n,
|
|
1182
|
+
e,
|
|
1183
|
+
t
|
|
1184
|
+
]), null;
|
|
1185
|
+
}
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region node_modules/.pnpm/@lexical+history@0.46.0_typescript@5.9.3/node_modules/@lexical/history/dist/LexicalHistory.prod.mjs
|
|
1188
|
+
function Qr(e, t, n, r, i) {
|
|
1189
|
+
if (e === null || n.size === 0 && r.size === 0 && !i) return 0;
|
|
1190
|
+
let a = t._selection, o = e._selection;
|
|
1191
|
+
if (i) return 1;
|
|
1192
|
+
if (!(N(a) && N(o) && o.isCollapsed() && a.isCollapsed())) return 0;
|
|
1193
|
+
let s = function(e, t, n) {
|
|
1194
|
+
let r = e._nodeMap, i = [];
|
|
1195
|
+
for (let e of t) {
|
|
1196
|
+
let t = r.get(e);
|
|
1197
|
+
t !== void 0 && i.push(t);
|
|
1198
|
+
}
|
|
1199
|
+
for (let [e, t] of n) {
|
|
1200
|
+
if (!t) continue;
|
|
1201
|
+
let n = r.get(e);
|
|
1202
|
+
n === void 0 || ee(n) || i.push(n);
|
|
1203
|
+
}
|
|
1204
|
+
return i;
|
|
1205
|
+
}(t, n, r);
|
|
1206
|
+
if (s.length === 0) return 0;
|
|
1207
|
+
if (s.length > 1) {
|
|
1208
|
+
let n = t._nodeMap, r = n.get(a.anchor.key), i = n.get(o.anchor.key);
|
|
1209
|
+
return r && i && !e._nodeMap.has(r.__key) && R(r) && r.__text.length === 1 && a.anchor.offset === 1 ? 2 : 0;
|
|
1210
|
+
}
|
|
1211
|
+
let c = s[0], l = e._nodeMap.get(c.__key);
|
|
1212
|
+
if (!R(l) || !R(c) || l.__mode !== c.__mode) return 0;
|
|
1213
|
+
let u = l.__text, d = c.__text;
|
|
1214
|
+
if (u === d) return 0;
|
|
1215
|
+
let f = a.anchor, p = o.anchor;
|
|
1216
|
+
if (f.key !== p.key || f.type !== "text") return 0;
|
|
1217
|
+
let m = f.offset, h = p.offset, g = d.length - u.length;
|
|
1218
|
+
return g === 1 && h === m - 1 ? 2 : g === -1 && h === m + 1 ? 3 : g === -1 && h === m ? 4 : 0;
|
|
1219
|
+
}
|
|
1220
|
+
function $r(e, t, n) {
|
|
1221
|
+
let r = n(), i = 0, a = r, o = 0, s = null;
|
|
1222
|
+
return (c, l, u, d, f, p) => {
|
|
1223
|
+
let m = n();
|
|
1224
|
+
if (p.has("composition-start") && (a = r, o = i, s = c), p.has("historic")) return i = 0, r = m, 2;
|
|
1225
|
+
p.has("composition-end") && s && (r = a, i = o, c = s);
|
|
1226
|
+
let h = p.has("paste") || p.has("cut") ? 0 : Qr(c, l, d, f, e.isComposing()), g = (() => {
|
|
1227
|
+
let n = u === null || u.editor === e, a = p.has(Je);
|
|
1228
|
+
if (!a && n && p.has("history-merge")) return 0;
|
|
1229
|
+
if (h === 1) return 2;
|
|
1230
|
+
if (c === null) return 1;
|
|
1231
|
+
let o = l._selection;
|
|
1232
|
+
if (!(d.size > 0 || f.size > 0)) return o === null ? 2 : 0;
|
|
1233
|
+
let s = typeof t == "number" ? t : t.peek();
|
|
1234
|
+
return !1 === a && h !== 0 && h === i && m < r + s && n || d.size === 1 && function(e, t, n) {
|
|
1235
|
+
let r = t._nodeMap.get(e), i = n._nodeMap.get(e), a = t._selection, o = n._selection;
|
|
1236
|
+
return !(N(a) && N(o) && a.anchor.type === "element" && a.focus.type === "element" && o.anchor.type === "text" && o.focus.type === "text" || !R(r) || !R(i) || r.__parent !== i.__parent) && JSON.stringify(t.read(() => r.exportJSON())) === JSON.stringify(n.read(() => i.exportJSON()));
|
|
1237
|
+
}(Array.from(d)[0], c, l) ? 0 : 1;
|
|
1238
|
+
})();
|
|
1239
|
+
return r = m, i = h, g;
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
function ei(e, t) {
|
|
1243
|
+
e.undoStack = [], e.redoStack = [], e.current = null, t && t(e);
|
|
1244
|
+
}
|
|
1245
|
+
function ti(e, t, n, r = Date.now, i, a = null) {
|
|
1246
|
+
let o = $r(e, n, r), s = () => {
|
|
1247
|
+
i && i(t);
|
|
1248
|
+
};
|
|
1249
|
+
return s(), A(e.registerCommand(le, () => (function(e, t, n) {
|
|
1250
|
+
let r = t.redoStack, i = t.undoStack;
|
|
1251
|
+
if (i.length !== 0) {
|
|
1252
|
+
let a = t.current, o = i.pop();
|
|
1253
|
+
a !== null && (r.push(a), e.dispatchCommand(L, !0)), i.length === 0 && e.dispatchCommand(ge, !1), t.current = o || null, n && n(t), o && o.editor.setEditorState(o.editorState, { tag: "historic" });
|
|
1254
|
+
}
|
|
1255
|
+
}(e, t, i), !0), 0), e.registerCommand(Ze, () => (function(e, t, n) {
|
|
1256
|
+
let r = t.redoStack, i = t.undoStack;
|
|
1257
|
+
if (r.length !== 0) {
|
|
1258
|
+
let a = t.current;
|
|
1259
|
+
a !== null && (i.push(a), e.dispatchCommand(ge, !0));
|
|
1260
|
+
let o = r.pop();
|
|
1261
|
+
r.length === 0 && e.dispatchCommand(L, !1), t.current = o || null, n && n(t), o && o.editor.setEditorState(o.editorState, { tag: "historic" });
|
|
1262
|
+
}
|
|
1263
|
+
}(e, t, i), !0), 0), e.registerCommand(at, () => (ei(t, i), !1), 0), e.registerCommand(qe, () => (ei(t, i), e.dispatchCommand(L, !1), e.dispatchCommand(ge, !1), !0), 0), e.registerUpdateListener(({ editorState: n, prevEditorState: r, dirtyLeaves: i, dirtyElements: c, tags: l }) => {
|
|
1264
|
+
let u = t.current, d = t.redoStack, f = t.undoStack, p = u === null ? null : u.editorState;
|
|
1265
|
+
if (u !== null && n === p) return;
|
|
1266
|
+
let m = o(r, n, u, i, c, l);
|
|
1267
|
+
if (m === 1) {
|
|
1268
|
+
if (d.length !== 0 && (t.redoStack = [], e.dispatchCommand(L, !1)), u !== null) {
|
|
1269
|
+
f.push({ ...u });
|
|
1270
|
+
let t = typeof a == "number" || a === null ? a : a.peek();
|
|
1271
|
+
t !== null && f.length > t && f.splice(0, f.length - t), e.dispatchCommand(ge, !0);
|
|
1272
|
+
}
|
|
1273
|
+
} else if (m === 2) return;
|
|
1274
|
+
t.current = {
|
|
1275
|
+
editor: e,
|
|
1276
|
+
editorState: n
|
|
1277
|
+
}, s();
|
|
1278
|
+
}));
|
|
1279
|
+
}
|
|
1280
|
+
function ni() {
|
|
1281
|
+
return {
|
|
1282
|
+
current: null,
|
|
1283
|
+
redoStack: [],
|
|
1284
|
+
undoStack: []
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
Date.now;
|
|
1288
|
+
//#endregion
|
|
1289
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalHistoryPlugin.prod.mjs
|
|
1290
|
+
function ri({ delay: e, externalHistoryState: t }) {
|
|
1291
|
+
let [n] = h();
|
|
1292
|
+
return function(e, t, n = 1e3) {
|
|
1293
|
+
let r = Vn(() => t || ni(), [t]);
|
|
1294
|
+
U(() => ti(e, r, n), [
|
|
1295
|
+
n,
|
|
1296
|
+
e,
|
|
1297
|
+
r
|
|
1298
|
+
]);
|
|
1299
|
+
}(n, t, e), null;
|
|
1300
|
+
}
|
|
1301
|
+
//#endregion
|
|
1302
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalTablePlugin.prod.mjs
|
|
1303
|
+
function ii({ hasCellMerge: e = !0, hasCellBackgroundColor: t = !0, hasTabHandler: n = !0, hasHorizontalScroll: r = !1, hasNestedTables: i = !1 }) {
|
|
1304
|
+
let [a] = h();
|
|
1305
|
+
U(() => {
|
|
1306
|
+
Qt(a) !== r && (Zt(a, r), a.update(xe));
|
|
1307
|
+
}, [a, r]);
|
|
1308
|
+
let o = function(e) {
|
|
1309
|
+
let [t] = K(() => St(e));
|
|
1310
|
+
return t.peek() !== e && (t.value = e), t;
|
|
1311
|
+
}(i);
|
|
1312
|
+
return U(() => Jt(a, { hasNestedTables: o }), [a, o]), U(() => qt(a, n), [a, n]), U(() => {
|
|
1313
|
+
if (!e) return Yt(a);
|
|
1314
|
+
}, [a, e]), U(() => {
|
|
1315
|
+
if (!t) return a.registerNodeTransform(Kt, (e) => {
|
|
1316
|
+
e.getBackgroundColor() !== null && e.setBackgroundColor(null);
|
|
1317
|
+
});
|
|
1318
|
+
}, [
|
|
1319
|
+
a,
|
|
1320
|
+
t,
|
|
1321
|
+
e
|
|
1322
|
+
]), null;
|
|
1323
|
+
}
|
|
1324
|
+
//#endregion
|
|
1325
|
+
//#region node_modules/.pnpm/@lexical+react@0.46.0_react-dom@19.2.7_react@19.2.7__react@19.2.7_typescript@5.9.3_yjs@13.6.31/node_modules/@lexical/react/dist/LexicalEditorRefPlugin.prod.mjs
|
|
1326
|
+
function ai({ editorRef: e }) {
|
|
1327
|
+
let [t] = h();
|
|
1328
|
+
return Nn.useEffect(() => {
|
|
1329
|
+
typeof e == "function" ? e(t) : typeof e == "object" && e && (e.current = t);
|
|
1330
|
+
}, [t]), null;
|
|
1331
|
+
}
|
|
1332
|
+
//#endregion
|
|
1333
|
+
//#region src/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx
|
|
1334
|
+
var oi = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchResponse: n }) => {
|
|
1335
|
+
let [r] = h(), [i, a] = K(null), o = G(null), s = Rn(() => {
|
|
1336
|
+
let e = O();
|
|
1337
|
+
if (!N(e)) {
|
|
1338
|
+
a(null);
|
|
1339
|
+
return;
|
|
1340
|
+
}
|
|
1341
|
+
let t = Gt(e.anchor.getNode());
|
|
1342
|
+
if (!t) {
|
|
1343
|
+
a(null);
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
let n = r.getElementByKey(t.getKey());
|
|
1347
|
+
if (!n) return;
|
|
1348
|
+
let i = n.getBoundingClientRect();
|
|
1349
|
+
a({
|
|
1350
|
+
xPos: i.right,
|
|
1351
|
+
yPos: i.bottom,
|
|
1352
|
+
height: i.height
|
|
1353
|
+
});
|
|
1354
|
+
}, [r]), c = (e) => {
|
|
1355
|
+
o.current?.mutateTable(e);
|
|
1356
|
+
}, l = Rn(() => {
|
|
1357
|
+
r.update(() => {
|
|
1358
|
+
let e = O();
|
|
1359
|
+
N(e) && Gt(e.anchor.getNode()) && (nt(null), a(null));
|
|
1360
|
+
});
|
|
1361
|
+
}, [r]);
|
|
1362
|
+
return U(() => A(r.registerUpdateListener(({ editorState: e }) => {
|
|
1363
|
+
e.read(s);
|
|
1364
|
+
}), r.registerCommand(se, () => (mn(l), !1), 1), r.registerRootListener((e, t) => {
|
|
1365
|
+
t && pn(l), e && mn(l);
|
|
1366
|
+
})), [
|
|
1367
|
+
r,
|
|
1368
|
+
s,
|
|
1369
|
+
l
|
|
1370
|
+
]), /* @__PURE__ */ J("div", {
|
|
1371
|
+
className: V.editor__toolbar,
|
|
1372
|
+
children: [
|
|
1373
|
+
/* @__PURE__ */ q(vn, {}),
|
|
1374
|
+
/* @__PURE__ */ q(yn, {}),
|
|
1375
|
+
/* @__PURE__ */ q(pi, {
|
|
1376
|
+
isActive: !!i,
|
|
1377
|
+
ref: o
|
|
1378
|
+
}),
|
|
1379
|
+
i && /* @__PURE__ */ q(An, {
|
|
1380
|
+
position: i,
|
|
1381
|
+
parentScrollPosition: e,
|
|
1382
|
+
onAction: c
|
|
1383
|
+
}),
|
|
1384
|
+
/* @__PURE__ */ q(li, { parentScrollPosition: e }),
|
|
1385
|
+
t && n && /* @__PURE__ */ q(_n, {
|
|
1386
|
+
parentScrollPosition: e,
|
|
1387
|
+
onSearch: t,
|
|
1388
|
+
searchResponse: n
|
|
1389
|
+
}),
|
|
1390
|
+
/* @__PURE__ */ q(ui, {})
|
|
1391
|
+
]
|
|
1392
|
+
});
|
|
1393
|
+
}, $ = {
|
|
1394
|
+
linkform: "_linkform_1anda_1",
|
|
1395
|
+
"linkform__input-field": "_linkform__input-field_1anda_5",
|
|
1396
|
+
linkform__footer: "_linkform__footer_1anda_12",
|
|
1397
|
+
"linkform__input-url-wrapper": "_linkform__input-url-wrapper_1anda_19",
|
|
1398
|
+
"linkform__open-url-button": "_linkform__open-url-button_1anda_31",
|
|
1399
|
+
"editor__toolbar-button": "_editor__toolbar-button_1anda_55"
|
|
1400
|
+
}, si = Ln(({ onCloseHandler: e, onSaveHandler: r, isLink: i = {
|
|
1401
|
+
active: !1,
|
|
1402
|
+
url: "",
|
|
1403
|
+
linktext: ""
|
|
1404
|
+
} }, s) => {
|
|
1405
|
+
let c = H(), [d, f] = K(i.url || ""), [p, m] = K(i.linktext || ""), [h, g] = K(!1), [_, v] = K(null), [y, b] = K(null), x = G(null), S = `link_${W()}`, C = `text_${W()}`, w = () => {
|
|
1406
|
+
window.open(nn(d), "_blank");
|
|
1407
|
+
}, T = (e) => {
|
|
1408
|
+
f(e.target.value);
|
|
1409
|
+
}, E = (e) => {
|
|
1410
|
+
m(e.target.value);
|
|
1411
|
+
}, D = (e) => tn(e) === !1 || e.trim() === "" ? (v(c.errortext.urlNotValid), !1) : (v(null), !0), ee = (e) => e.trim() === "" ? (b(c.errortext.linkTextNotValid), !1) : (b(null), !0), te = () => {
|
|
1412
|
+
!D(d) || h && !ee(p) || (r(d, p), re());
|
|
1413
|
+
}, ne = () => {
|
|
1414
|
+
e(), re();
|
|
1415
|
+
}, re = () => {
|
|
1416
|
+
f(""), g(!1), v(null), b(null);
|
|
1417
|
+
}, ie = (e, t) => {
|
|
1418
|
+
f(e), !t && !e && g(!0);
|
|
1419
|
+
}, ae = () => {
|
|
1420
|
+
x.current && x.current.focus();
|
|
1421
|
+
};
|
|
1422
|
+
return zn(s, () => ({
|
|
1423
|
+
clearForm: re,
|
|
1424
|
+
focusFirstField: ae,
|
|
1425
|
+
setDefaults: ie
|
|
1426
|
+
})), /* @__PURE__ */ J("div", {
|
|
1427
|
+
className: $.linkform,
|
|
1428
|
+
children: [
|
|
1429
|
+
/* @__PURE__ */ J(l, {
|
|
1430
|
+
className: $["linkform__input-field"],
|
|
1431
|
+
children: [
|
|
1432
|
+
/* @__PURE__ */ q(a, {
|
|
1433
|
+
htmlFor: S,
|
|
1434
|
+
children: c.links.linkLabel
|
|
1435
|
+
}),
|
|
1436
|
+
/* @__PURE__ */ J("div", {
|
|
1437
|
+
className: $["linkform__input-url-wrapper"],
|
|
1438
|
+
children: [/* @__PURE__ */ q(u, {
|
|
1439
|
+
id: S,
|
|
1440
|
+
placeholder: c.links.linkPlaceholder,
|
|
1441
|
+
value: d,
|
|
1442
|
+
onChange: (e) => T(e),
|
|
1443
|
+
onFocus: () => v(null),
|
|
1444
|
+
ref: x,
|
|
1445
|
+
"aria-label": c.aria.labels.linkField
|
|
1446
|
+
}), d && /* @__PURE__ */ q("button", {
|
|
1447
|
+
type: "button",
|
|
1448
|
+
onClick: w,
|
|
1449
|
+
className: $["linkform__open-url-button"],
|
|
1450
|
+
children: /* @__PURE__ */ q(t, {
|
|
1451
|
+
name: "ArrowTopRightOnSquare",
|
|
1452
|
+
size: 20
|
|
1453
|
+
})
|
|
1454
|
+
})]
|
|
1455
|
+
}),
|
|
1456
|
+
_ && /* @__PURE__ */ q(o, {
|
|
1457
|
+
level: "error",
|
|
1458
|
+
feedback: _
|
|
1459
|
+
})
|
|
1460
|
+
]
|
|
1461
|
+
}),
|
|
1462
|
+
h && /* @__PURE__ */ J(l, {
|
|
1463
|
+
className: $["linkform__input-field"],
|
|
1464
|
+
children: [
|
|
1465
|
+
/* @__PURE__ */ q(a, {
|
|
1466
|
+
htmlFor: C,
|
|
1467
|
+
children: c.links.linkText
|
|
1468
|
+
}),
|
|
1469
|
+
/* @__PURE__ */ q(u, {
|
|
1470
|
+
id: C,
|
|
1471
|
+
value: p,
|
|
1472
|
+
onChange: (e) => E(e),
|
|
1473
|
+
onFocus: () => b(null),
|
|
1474
|
+
"aria-label": c.aria.labels.linkTextfield
|
|
1475
|
+
}),
|
|
1476
|
+
y && /* @__PURE__ */ q(o, {
|
|
1477
|
+
level: "error",
|
|
1478
|
+
feedback: y
|
|
1479
|
+
})
|
|
1480
|
+
]
|
|
1481
|
+
}),
|
|
1482
|
+
/* @__PURE__ */ J("div", {
|
|
1483
|
+
className: $.linkform__footer,
|
|
1484
|
+
children: [/* @__PURE__ */ q(n, {
|
|
1485
|
+
variant: "secondary",
|
|
1486
|
+
onClick: ne,
|
|
1487
|
+
"aria-label": c.common.cancel,
|
|
1488
|
+
type: "button",
|
|
1489
|
+
children: c.common.cancel
|
|
1490
|
+
}), /* @__PURE__ */ q(n, {
|
|
1491
|
+
variant: "primary",
|
|
1492
|
+
onClick: te,
|
|
1493
|
+
"aria-label": c.aria.labels.linkOkButton,
|
|
1494
|
+
type: "button",
|
|
1495
|
+
children: c.links.addLink
|
|
1496
|
+
})]
|
|
1497
|
+
})
|
|
1498
|
+
]
|
|
1499
|
+
});
|
|
1500
|
+
}), ci = 200, li = ({ parentScrollPosition: n }) => {
|
|
1501
|
+
let r = H(), [i] = h(), { flyout: a, showFlyout: o, hideFlyout: s, isVisible: c } = xn(), l = G(void 0), u = G(!1), d = G(""), f = G(""), [p, m] = K({
|
|
1502
|
+
active: !1,
|
|
1503
|
+
url: "",
|
|
1504
|
+
linktext: ""
|
|
1505
|
+
}), g = G(c), _ = G(null), v = G(null), y = G(void 0), b = () => {
|
|
1506
|
+
i.update(() => {
|
|
1507
|
+
_.current = O();
|
|
1508
|
+
});
|
|
1509
|
+
}, x = () => {
|
|
1510
|
+
i.update(() => {
|
|
1511
|
+
let e = _.current;
|
|
1512
|
+
if (e && N(e)) {
|
|
1513
|
+
let t = e.anchor.getNode(), n = e.focus.getNode();
|
|
1514
|
+
if (t && n && t.isAttached() && n.isAttached()) {
|
|
1515
|
+
let r = t.getTextContentSize(), i = n.getTextContentSize();
|
|
1516
|
+
if (e.anchor.offset <= r && e.focus.offset <= i) {
|
|
1517
|
+
nt(e);
|
|
1518
|
+
return;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
i.getRootElement()?.focus();
|
|
1523
|
+
});
|
|
1524
|
+
}, S = (e, t) => {
|
|
1525
|
+
o({
|
|
1526
|
+
position: t,
|
|
1527
|
+
children: /* @__PURE__ */ q(bn, {
|
|
1528
|
+
url: e,
|
|
1529
|
+
onSave: (e) => D(e, ""),
|
|
1530
|
+
onDelete: () => ee(),
|
|
1531
|
+
onClose: C,
|
|
1532
|
+
ref: y
|
|
1533
|
+
})
|
|
1534
|
+
});
|
|
1535
|
+
}, C = () => {
|
|
1536
|
+
y.current?.clearForm(), s(), x();
|
|
1537
|
+
}, w = () => {
|
|
1538
|
+
let e = v.current?.getBoundingClientRect();
|
|
1539
|
+
!u.current && e && (b(), o({
|
|
1540
|
+
position: {
|
|
1541
|
+
top: e.bottom,
|
|
1542
|
+
left: e.left
|
|
1543
|
+
},
|
|
1544
|
+
...te
|
|
1545
|
+
}), setTimeout(() => l.current?.setDefaults("", f.current), 0));
|
|
1546
|
+
}, T = () => {
|
|
1547
|
+
s(), x();
|
|
1548
|
+
}, D = (e, t) => {
|
|
1549
|
+
i.update(() => {
|
|
1550
|
+
let n = O();
|
|
1551
|
+
if (N(n)) {
|
|
1552
|
+
let r = z(n.anchor.getNode(), B);
|
|
1553
|
+
if (t && t !== "") {
|
|
1554
|
+
if (r) {
|
|
1555
|
+
let e = Ee(t);
|
|
1556
|
+
r.replace(e), e.select();
|
|
1557
|
+
}
|
|
1558
|
+
if (t !== d.current && d.current === "") {
|
|
1559
|
+
let { anchor: e, focus: r } = n;
|
|
1560
|
+
n.insertText(t), e.offset -= t.length, r.offset = e.offset + t.length;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
Vt(nn(e), { target: "_blank" });
|
|
1564
|
+
}
|
|
1565
|
+
T();
|
|
1566
|
+
});
|
|
1567
|
+
}, ee = () => {
|
|
1568
|
+
i.dispatchCommand(Ut, null), C();
|
|
1569
|
+
}, te = { children: /* @__PURE__ */ q(si, {
|
|
1570
|
+
isLink: p,
|
|
1571
|
+
onCloseHandler: T,
|
|
1572
|
+
onSaveHandler: (e, t) => D(e, t),
|
|
1573
|
+
ref: l
|
|
1574
|
+
}) };
|
|
1575
|
+
U(() => {
|
|
1576
|
+
c ? (u.current = !0, l.current?.focusFirstField()) : (l.current?.clearForm(), d.current = f.current = "", setTimeout(() => u.current = !1, ci));
|
|
1577
|
+
}, [l, c]), U(() => {
|
|
1578
|
+
let e = (e) => {
|
|
1579
|
+
if (N(e) && e.isCollapsed()) {
|
|
1580
|
+
let t = z(e.anchor.getNode(), B);
|
|
1581
|
+
if (t) {
|
|
1582
|
+
let n = i.getElementByKey(e.anchor.getNode().getKey()), r = n ? {
|
|
1583
|
+
top: n.getBoundingClientRect().bottom,
|
|
1584
|
+
left: n.getBoundingClientRect().left
|
|
1585
|
+
} : {
|
|
1586
|
+
top: 0,
|
|
1587
|
+
left: 0
|
|
1588
|
+
};
|
|
1589
|
+
return S(t.getURL(), r), !0;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
return !1;
|
|
1593
|
+
}, t = i.registerCommand(E, () => {
|
|
1594
|
+
let t = O();
|
|
1595
|
+
return f.current = t?.getTextContent() ?? "", e(t), !1;
|
|
1596
|
+
}, 0), n = i.registerCommand(Ve, (t) => {
|
|
1597
|
+
let n = O();
|
|
1598
|
+
return b(), t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), e(n), !1;
|
|
1599
|
+
}, 0);
|
|
1600
|
+
return () => {
|
|
1601
|
+
n(), t();
|
|
1602
|
+
};
|
|
1603
|
+
}, [i]), U(() => {
|
|
1604
|
+
let e = i.registerCommand(se, (e) => {
|
|
1605
|
+
if (e.ctrlKey && e.shiftKey && e.key === "U") {
|
|
1606
|
+
let t = O();
|
|
1607
|
+
if (b(), !N(t)) return !1;
|
|
1608
|
+
let n = z(t.anchor.getNode(), B), r = (e = "", t = "") => {
|
|
1609
|
+
w(), setTimeout(() => l.current?.setDefaults(e, t), 0);
|
|
1610
|
+
};
|
|
1611
|
+
if (n) return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), d.current = n.getTextContent(), r(n.getURL(), n.getTextContent()), !0;
|
|
1612
|
+
let i = t.getTextContent();
|
|
1613
|
+
return i === "" ? (w(), !0) : (f.current = i, r("", f.current), !0);
|
|
1614
|
+
}
|
|
1615
|
+
return !1;
|
|
1616
|
+
}, 4), t = i.registerUpdateListener(({ editorState: e }) => {
|
|
1617
|
+
m(e.read(() => {
|
|
1618
|
+
let e = O();
|
|
1619
|
+
if (b(), N(e)) {
|
|
1620
|
+
let t = z(e.anchor.getNode(), B);
|
|
1621
|
+
if (t) return {
|
|
1622
|
+
active: !0,
|
|
1623
|
+
url: t.getURL(),
|
|
1624
|
+
linktext: t.getTextContent()
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
return {
|
|
1628
|
+
active: !1,
|
|
1629
|
+
url: "",
|
|
1630
|
+
linktext: ""
|
|
1631
|
+
};
|
|
1632
|
+
}));
|
|
1633
|
+
});
|
|
1634
|
+
return () => {
|
|
1635
|
+
e(), t();
|
|
1636
|
+
};
|
|
1637
|
+
}, [i]), U(() => {
|
|
1638
|
+
g.current = c, c || y.current?.clearForm();
|
|
1639
|
+
}, [c]), U(() => {
|
|
1640
|
+
c && T();
|
|
1641
|
+
}, [n]), U(() => {
|
|
1642
|
+
p.active || s();
|
|
1643
|
+
}, [p]);
|
|
1644
|
+
let ne = () => {
|
|
1645
|
+
s();
|
|
1646
|
+
};
|
|
1647
|
+
return U(() => A(i.registerCommand(se, (e) => e.key === "Escape" && g.current ? (e.preventDefault(), T(), !0) : !1, 1), i.registerRootListener((e, t) => {
|
|
1648
|
+
t && t.removeEventListener("scroll", ne), e && e.addEventListener("scroll", ne);
|
|
1649
|
+
})), [i]), /* @__PURE__ */ q("div", {
|
|
1650
|
+
className: V["editor__toolbar-button-group"],
|
|
1651
|
+
children: /* @__PURE__ */ J("div", {
|
|
1652
|
+
className: V["editor__toolbar-button-flyoutwrapper"],
|
|
1653
|
+
children: [/* @__PURE__ */ q("button", {
|
|
1654
|
+
onClick: w,
|
|
1655
|
+
title: r.links.linkTooltip,
|
|
1656
|
+
className: e(V["editor__toolbar-button"], V["editor__toolbar-button--link"], p.active && V["editor__toolbar-button--active"]),
|
|
1657
|
+
"aria-label": r.aria.labels.link,
|
|
1658
|
+
"aria-keyshortcuts": r.aria.keyshortcuts.link,
|
|
1659
|
+
type: "button",
|
|
1660
|
+
ref: v,
|
|
1661
|
+
children: /* @__PURE__ */ q(t, {
|
|
1662
|
+
name: "Link",
|
|
1663
|
+
size: 20
|
|
1664
|
+
})
|
|
1665
|
+
}), a]
|
|
1666
|
+
})
|
|
1667
|
+
});
|
|
1668
|
+
}, ui = () => {
|
|
1669
|
+
let n = H(), [r] = h(), [i, a] = K(!1), [o, s] = K(!1);
|
|
1670
|
+
return U(() => r.registerCommand(ge, (e) => (a(e), !1), 1), [r]), U(() => r.registerCommand(L, (e) => (s(e), !1), 1), [r]), /* @__PURE__ */ J("div", {
|
|
1671
|
+
className: V["editor__toolbar-button-group"],
|
|
1672
|
+
children: [/* @__PURE__ */ q("button", {
|
|
1673
|
+
onClick: () => {
|
|
1674
|
+
r.dispatchCommand(le, void 0);
|
|
1675
|
+
},
|
|
1676
|
+
className: e(V["editor__toolbar-button"], V["editor__toolbar-button--undo"]),
|
|
1677
|
+
"aria-label": n.aria.labels.undo,
|
|
1678
|
+
"aria-keyshortcuts": n.aria.keyshortcuts.undo,
|
|
1679
|
+
disabled: !i,
|
|
1680
|
+
title: n.format.undoTooltip,
|
|
1681
|
+
type: "button",
|
|
1682
|
+
children: /* @__PURE__ */ q(t, {
|
|
1683
|
+
name: "StepBack",
|
|
1684
|
+
size: 24
|
|
1685
|
+
})
|
|
1686
|
+
}), /* @__PURE__ */ q("button", {
|
|
1687
|
+
onClick: () => {
|
|
1688
|
+
r.dispatchCommand(Ze, void 0);
|
|
1689
|
+
},
|
|
1690
|
+
className: e(V["editor__toolbar-button"], V["editor__toolbar-button--redo"]),
|
|
1691
|
+
"aria-label": n.aria.labels.redo,
|
|
1692
|
+
"aria-keyshortcuts": n.aria.keyshortcuts.redo,
|
|
1693
|
+
disabled: !o,
|
|
1694
|
+
title: n.format.redoTooltip,
|
|
1695
|
+
type: "button",
|
|
1696
|
+
children: /* @__PURE__ */ q(t, {
|
|
1697
|
+
name: "StepForwards",
|
|
1698
|
+
size: 24
|
|
1699
|
+
})
|
|
1700
|
+
})]
|
|
1701
|
+
});
|
|
1702
|
+
}, di = {
|
|
1703
|
+
tableform: "_tableform_t5fpq_1",
|
|
1704
|
+
"tableform__input-field": "_tableform__input-field_t5fpq_5",
|
|
1705
|
+
tableform__footer: "_tableform__footer_t5fpq_12"
|
|
1706
|
+
}, fi = Ln(({ onCloseHandler: e, onSaveHandler: t }, r) => {
|
|
1707
|
+
let i = H(), [o, s] = K(), [c, d] = K(), f = G(null), p = `row_${W()}`, m = `column_${W()}`, h = (e, t) => {
|
|
1708
|
+
let n = e.target.value;
|
|
1709
|
+
t === "row" ? s(parseInt(n)) : d(parseInt(n));
|
|
1710
|
+
}, g = () => {
|
|
1711
|
+
o !== void 0 && c !== void 0 && (t(o, c), v());
|
|
1712
|
+
}, _ = () => {
|
|
1713
|
+
e(), v();
|
|
1714
|
+
}, v = () => {
|
|
1715
|
+
s(void 0), d(void 0);
|
|
1716
|
+
};
|
|
1717
|
+
return zn(r, () => ({
|
|
1718
|
+
clearForm: v,
|
|
1719
|
+
focusFirstField: () => f.current?.focus()
|
|
1720
|
+
})), U(() => {
|
|
1721
|
+
let e = () => {
|
|
1722
|
+
_();
|
|
1723
|
+
};
|
|
1724
|
+
return mn(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
|
|
1725
|
+
window.removeEventListener("scroll", e), window.removeEventListener("resize", e), pn(e);
|
|
1726
|
+
};
|
|
1727
|
+
}, []), /* @__PURE__ */ J("div", {
|
|
1728
|
+
className: di.tableform,
|
|
1729
|
+
children: [
|
|
1730
|
+
/* @__PURE__ */ J(l, {
|
|
1731
|
+
className: di["tableform__input-field"],
|
|
1732
|
+
children: [/* @__PURE__ */ q(a, {
|
|
1733
|
+
htmlFor: p,
|
|
1734
|
+
children: i.table.nrofRows
|
|
1735
|
+
}), /* @__PURE__ */ q(u, {
|
|
1736
|
+
id: p,
|
|
1737
|
+
placeholder: i.table.nrofRowsPlaceholder,
|
|
1738
|
+
value: o || "",
|
|
1739
|
+
onChange: (e) => h(e, "row"),
|
|
1740
|
+
"aria-label": i.aria.labels.tableRowfield,
|
|
1741
|
+
ref: f
|
|
1742
|
+
})]
|
|
1743
|
+
}),
|
|
1744
|
+
/* @__PURE__ */ J(l, {
|
|
1745
|
+
className: di["tableform__input-field"],
|
|
1746
|
+
children: [/* @__PURE__ */ q(a, {
|
|
1747
|
+
htmlFor: m,
|
|
1748
|
+
children: i.table.nrofColumns
|
|
1749
|
+
}), /* @__PURE__ */ q(u, {
|
|
1750
|
+
id: m,
|
|
1751
|
+
placeholder: i.table.nrofColumnsPlaceholder,
|
|
1752
|
+
value: c || "",
|
|
1753
|
+
onChange: (e) => h(e, "column"),
|
|
1754
|
+
"aria-label": i.aria.labels.tableColumnfield
|
|
1755
|
+
})]
|
|
1756
|
+
}),
|
|
1757
|
+
/* @__PURE__ */ J("div", {
|
|
1758
|
+
className: di.tableform__footer,
|
|
1759
|
+
children: [/* @__PURE__ */ q(n, {
|
|
1760
|
+
variant: "secondary",
|
|
1761
|
+
onClick: _,
|
|
1762
|
+
"aria-label": i.common.cancel,
|
|
1763
|
+
children: i.common.cancel
|
|
1764
|
+
}), /* @__PURE__ */ q(n, {
|
|
1765
|
+
variant: "primary",
|
|
1766
|
+
onClick: g,
|
|
1767
|
+
disabled: !o || !c,
|
|
1768
|
+
"aria-label": i.aria.labels.tableOkButton,
|
|
1769
|
+
children: i.common.add
|
|
1770
|
+
})]
|
|
1771
|
+
})
|
|
1772
|
+
]
|
|
1773
|
+
});
|
|
1774
|
+
}), pi = Ln(({ isActive: n }, r) => {
|
|
1775
|
+
let i = H(), [a] = h(), { flyout: o, showFlyout: s, hideFlyout: c, isVisible: l } = xn(), u = G(void 0), d = G(null), f = G(!1), p = G(l), m = () => {
|
|
1776
|
+
let e = d.current?.getBoundingClientRect();
|
|
1777
|
+
!f.current && e && s({
|
|
1778
|
+
position: {
|
|
1779
|
+
top: e.bottom,
|
|
1780
|
+
left: e.left
|
|
1781
|
+
},
|
|
1782
|
+
...y
|
|
1783
|
+
});
|
|
1784
|
+
}, g = () => {
|
|
1785
|
+
c();
|
|
1786
|
+
}, _ = (e, t) => {
|
|
1787
|
+
a.update(() => {
|
|
1788
|
+
let n = O(), r = Sn(e, t), i = N(n) && n.anchor.getNode() || I(n) && n.getNodes()[0] || null, o = i ? z(i, Kt) : null, s = o ? Dn(o, t, a) : En(a) || 320, c = Math.max(48, Math.floor(s / Math.max(1, t))), l = Array.from({ length: t }, () => c);
|
|
1789
|
+
r.setColWidths(l);
|
|
1790
|
+
let u = on();
|
|
1791
|
+
u.append(r), N(n) ? n.insertNodes([u]) : F().append(u);
|
|
1792
|
+
let d = u.getFirstDescendant();
|
|
1793
|
+
d && d.select();
|
|
1794
|
+
}), g();
|
|
1795
|
+
}, v = (e) => {
|
|
1796
|
+
a.update(() => {
|
|
1797
|
+
let t = O();
|
|
1798
|
+
if (N(t)) {
|
|
1799
|
+
let n = Gt(t.anchor.getNode());
|
|
1800
|
+
if (Wt(n)) switch (e) {
|
|
1801
|
+
case "insertRowAbove":
|
|
1802
|
+
case "insertRowBelow":
|
|
1803
|
+
kn(n, e);
|
|
1804
|
+
break;
|
|
1805
|
+
case "deleteRow":
|
|
1806
|
+
wn(n);
|
|
1807
|
+
break;
|
|
1808
|
+
case "insertColumnLeft":
|
|
1809
|
+
case "insertColumnRight":
|
|
1810
|
+
On(n, e);
|
|
1811
|
+
break;
|
|
1812
|
+
case "deleteColumn":
|
|
1813
|
+
Cn(n);
|
|
1814
|
+
break;
|
|
1815
|
+
case "deleteTable":
|
|
1816
|
+
Tn(n);
|
|
1817
|
+
break;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
});
|
|
1821
|
+
}, y = { children: /* @__PURE__ */ q(fi, {
|
|
1822
|
+
onCloseHandler: g,
|
|
1823
|
+
onSaveHandler: (e, t) => _(e, t),
|
|
1824
|
+
ref: u
|
|
1825
|
+
}) };
|
|
1826
|
+
return U(() => {
|
|
1827
|
+
l ? (f.current = !0, u.current?.focusFirstField()) : (u.current?.clearForm(), setTimeout(() => f.current = !1, 200));
|
|
1828
|
+
}, [u, l]), U(() => {
|
|
1829
|
+
let e = a.registerCommand(se, (e) => e.ctrlKey && e.shiftKey && e.code === "Digit9" ? (e.preventDefault(), m(), !0) : !1, 4);
|
|
1830
|
+
return () => {
|
|
1831
|
+
e();
|
|
1832
|
+
};
|
|
1833
|
+
}, [a]), U(() => {
|
|
1834
|
+
p.current = l;
|
|
1835
|
+
}, [l]), U(() => {
|
|
1836
|
+
let e = (e) => {
|
|
1837
|
+
e.key === "Escape" && p.current && (e.preventDefault(), e.stopPropagation(), g());
|
|
1838
|
+
};
|
|
1839
|
+
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
1840
|
+
document.removeEventListener("keydown", e);
|
|
1841
|
+
};
|
|
1842
|
+
}, []), zn(r, () => ({ mutateTable: v })), /* @__PURE__ */ q("div", {
|
|
1843
|
+
className: V["editor__toolbar-button-group"],
|
|
1844
|
+
children: /* @__PURE__ */ J("div", {
|
|
1845
|
+
className: V["editor__toolbar-button-flyoutwrapper"],
|
|
1846
|
+
children: [/* @__PURE__ */ q("button", {
|
|
1847
|
+
onClick: m,
|
|
1848
|
+
title: i.table.tableTooltip,
|
|
1849
|
+
className: e(V["editor__toolbar-button"], n && V["editor__toolbar-button--active"]),
|
|
1850
|
+
"aria-label": i.aria.labels.table,
|
|
1851
|
+
"aria-keyshortcuts": i.aria.keyshortcuts.table,
|
|
1852
|
+
ref: d,
|
|
1853
|
+
type: "button",
|
|
1854
|
+
children: /* @__PURE__ */ q(t, {
|
|
1855
|
+
name: "Table",
|
|
1856
|
+
size: 24
|
|
1857
|
+
})
|
|
1858
|
+
}), o]
|
|
1859
|
+
})
|
|
1860
|
+
});
|
|
1861
|
+
}), mi = {
|
|
1862
|
+
"editor-header__container": "_editor-header__container_1y1mc_1",
|
|
1863
|
+
"editor-header__info": "_editor-header__info_1y1mc_10"
|
|
1864
|
+
}, hi = ({ label: e, info: t = "", required: n = !1 }) => {
|
|
1865
|
+
let r = `info_${W()}`;
|
|
1866
|
+
return /* @__PURE__ */ J("div", {
|
|
1867
|
+
className: mi["editor-header__container"],
|
|
1868
|
+
children: [e !== "" && /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(a, {
|
|
1869
|
+
htmlFor: r,
|
|
1870
|
+
required: n,
|
|
1871
|
+
children: e
|
|
1872
|
+
}) }), t !== "" && /* @__PURE__ */ q("div", {
|
|
1873
|
+
className: mi["editor-header__info"],
|
|
1874
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1875
|
+
})]
|
|
1876
|
+
});
|
|
1877
|
+
}, gi = ({ currentLanguage: t = "NL", editorId: n, initialValue: r = "", placeholder: i = "", label: a = "", info: s = "", required: c = !1, notValid: l = !1, notValidatedText: u = "", maxHeightInRem: d = "20rem", maxWords: f, rteRef: p = null, onChange: m, onCatalogueLinkSearch: h, catalogueSearchResponse: g = {
|
|
1878
|
+
state: "idle",
|
|
1879
|
+
results: []
|
|
1880
|
+
} }) => {
|
|
1881
|
+
let { switchLanguage: _ } = gn(), v = H(), [y] = K(() => ye()), [b, x] = K(0), [S, C] = K(0), w = W(), T = {
|
|
1882
|
+
html: { export: dn },
|
|
1883
|
+
namespace: `UvaRte-${n.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1884
|
+
editor: y,
|
|
1885
|
+
theme: Mn,
|
|
1886
|
+
onError(e) {
|
|
1887
|
+
throw e;
|
|
1888
|
+
},
|
|
1889
|
+
nodes: [
|
|
1890
|
+
Rt,
|
|
1891
|
+
Ft,
|
|
1892
|
+
B,
|
|
1893
|
+
Bt,
|
|
1894
|
+
Kt,
|
|
1895
|
+
$t,
|
|
1896
|
+
Xt,
|
|
1897
|
+
sn,
|
|
1898
|
+
ln
|
|
1899
|
+
],
|
|
1900
|
+
editorState: (e) => {
|
|
1901
|
+
let t = Et(e, new DOMParser().parseFromString(r, "text/html"));
|
|
1902
|
+
F().clear(), ce(t), nt(null);
|
|
1903
|
+
}
|
|
1904
|
+
}, E = (e) => e.trim().length === 0 ? 0 : e.split(" ").length, D = (e, t) => {
|
|
1905
|
+
t.read(() => {
|
|
1906
|
+
let e = "";
|
|
1907
|
+
x(E(F().getTextContent().replace(/\s+/g, " ").trim())), e = fn(Tt(t)), e = un(e), m(e);
|
|
1908
|
+
});
|
|
1909
|
+
};
|
|
1910
|
+
return U(() => {
|
|
1911
|
+
_(t.toUpperCase());
|
|
1912
|
+
}, [t, _]), U(() => {
|
|
1913
|
+
x(E(r.replace(/<br\s*\/?>| /gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim()));
|
|
1914
|
+
}, [r]), /* @__PURE__ */ J("div", {
|
|
1915
|
+
className: V.editor__container,
|
|
1916
|
+
children: [
|
|
1917
|
+
(a || s || f) && /* @__PURE__ */ J("div", {
|
|
1918
|
+
className: V.editor__header,
|
|
1919
|
+
children: [/* @__PURE__ */ q(hi, {
|
|
1920
|
+
label: a,
|
|
1921
|
+
info: s,
|
|
1922
|
+
required: c
|
|
1923
|
+
}), f && f > 0 && /* @__PURE__ */ J("div", {
|
|
1924
|
+
className: V["editor__header-word-count"],
|
|
1925
|
+
children: [
|
|
1926
|
+
/* @__PURE__ */ q("span", {
|
|
1927
|
+
className: e({ [V["editor__header-word-count--alert"]]: b > f }),
|
|
1928
|
+
children: b
|
|
1929
|
+
}),
|
|
1930
|
+
"\xA0/\xA0",
|
|
1931
|
+
f
|
|
1932
|
+
]
|
|
1933
|
+
})]
|
|
1934
|
+
}),
|
|
1935
|
+
/* @__PURE__ */ q("div", {
|
|
1936
|
+
className: e(V.editor, { [V["not-valid"]]: l }),
|
|
1937
|
+
children: /* @__PURE__ */ J(sr, {
|
|
1938
|
+
initialConfig: T,
|
|
1939
|
+
children: [/* @__PURE__ */ q(oi, {
|
|
1940
|
+
editorScrollPosition: S,
|
|
1941
|
+
onCatalogueLinkSearch: h,
|
|
1942
|
+
catalogueSearchResponse: g
|
|
1943
|
+
}), /* @__PURE__ */ J("div", {
|
|
1944
|
+
className: V["editor__field-wrapper"],
|
|
1945
|
+
children: [
|
|
1946
|
+
/* @__PURE__ */ q(Ir, {
|
|
1947
|
+
contentEditable: /* @__PURE__ */ q(Hr, {
|
|
1948
|
+
className: V.editor__field,
|
|
1949
|
+
"aria-label": v.common.rteAriaLabel,
|
|
1950
|
+
"aria-placeholder": i,
|
|
1951
|
+
title: v.common.rteTitle,
|
|
1952
|
+
placeholder: /* @__PURE__ */ q("div", {
|
|
1953
|
+
className: V.editor__placeholder,
|
|
1954
|
+
children: i
|
|
1955
|
+
}),
|
|
1956
|
+
spellCheck: !1,
|
|
1957
|
+
id: `${w}_rteEditor`,
|
|
1958
|
+
style: {
|
|
1959
|
+
height: `${d}`,
|
|
1960
|
+
maxHeight: `${d}`
|
|
1961
|
+
},
|
|
1962
|
+
onScroll: (e) => C(e.currentTarget.scrollTop)
|
|
1963
|
+
}),
|
|
1964
|
+
placeholder: /* @__PURE__ */ q("div", {
|
|
1965
|
+
className: V.editor__placeholder,
|
|
1966
|
+
children: i
|
|
1967
|
+
}),
|
|
1968
|
+
ErrorBoundary: Kr
|
|
1969
|
+
}),
|
|
1970
|
+
/* @__PURE__ */ q(ii, {}),
|
|
1971
|
+
/* @__PURE__ */ q(ft, {}),
|
|
1972
|
+
/* @__PURE__ */ q(ri, {}),
|
|
1973
|
+
/* @__PURE__ */ q(Yr, {}),
|
|
1974
|
+
/* @__PURE__ */ q(Xr, { validateUrl: rn }),
|
|
1975
|
+
/* @__PURE__ */ q(en, { matchers: an }),
|
|
1976
|
+
/* @__PURE__ */ q(Zr, {}),
|
|
1977
|
+
/* @__PURE__ */ q(Jr, { onChange: D }),
|
|
1978
|
+
/* @__PURE__ */ q(jn, {}),
|
|
1979
|
+
/* @__PURE__ */ q(cn, {}),
|
|
1980
|
+
p && /* @__PURE__ */ q(ai, { editorRef: p })
|
|
1981
|
+
]
|
|
1982
|
+
})]
|
|
1983
|
+
})
|
|
1984
|
+
}),
|
|
1985
|
+
u !== "" && /* @__PURE__ */ q(o, {
|
|
1986
|
+
level: "error",
|
|
1987
|
+
feedback: u
|
|
1988
|
+
})
|
|
1989
|
+
]
|
|
1990
|
+
});
|
|
1991
|
+
}, _i = ({ currentLanguage: e = "NL", editorId: t, initialValue: n = "", placeholder: r = "", label: i = "", info: a = "", required: o = !1, notValid: s = !1, notValidatedText: c = "", maxWords: l, rteRef: u, onChange: d, onCatalogueLinkSearch: f, catalogueSearchResponse: p = {
|
|
1992
|
+
state: "idle",
|
|
1993
|
+
results: []
|
|
1994
|
+
} }) => /* @__PURE__ */ q(hn, { children: /* @__PURE__ */ q(gi, {
|
|
1995
|
+
currentLanguage: e.toUpperCase(),
|
|
1996
|
+
editorId: t,
|
|
1997
|
+
initialValue: n,
|
|
1998
|
+
placeholder: r,
|
|
1999
|
+
label: i,
|
|
2000
|
+
info: a,
|
|
2001
|
+
required: o,
|
|
2002
|
+
notValid: s,
|
|
2003
|
+
notValidatedText: c,
|
|
2004
|
+
maxWords: l,
|
|
2005
|
+
rteRef: u,
|
|
2006
|
+
onChange: d,
|
|
2007
|
+
onCatalogueLinkSearch: f,
|
|
2008
|
+
catalogueSearchResponse: p
|
|
2009
|
+
}) });
|
|
2010
|
+
//#endregion
|
|
2011
|
+
export { fi as a, si as c, nr as d, Jn as f, Gn as h, pi as i, oi as l, Kn as m, _i as n, ui as o, qn as p, hi as r, li as s, gi as t, ir as u };
|
|
2012
|
+
|
|
2013
|
+
//# sourceMappingURL=components-CgBF6db6.js.map
|