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