jodit 4.8.9 → 4.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/es2015/jodit.css +1663 -1663
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +14 -14
  5. package/es2015/jodit.js +496 -381
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +14 -14
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +25 -25
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +14 -14
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +1663 -1663
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +19 -19
  23. package/es2021/jodit.js +496 -381
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +19 -19
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +1663 -1663
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +19 -19
  35. package/es2021.en/jodit.js +496 -381
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +29 -29
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +2009 -2009
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +506 -390
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/core/decorators/component/component.d.ts +4 -3
  61. package/esm/core/decorators/component/component.js +11 -0
  62. package/esm/core/decorators/watch/watch.d.ts +1 -2
  63. package/esm/core/decorators/watch/watch.js +1 -8
  64. package/esm/core/dom/dom.d.ts +5 -0
  65. package/esm/core/dom/dom.js +24 -5
  66. package/esm/core/dom/lazy-walker.js +1 -1
  67. package/esm/core/event-emitter/global.d.ts +2 -0
  68. package/esm/core/event-emitter/global.js +2 -0
  69. package/esm/core/event-emitter/observable.js +1 -1
  70. package/esm/core/global.d.ts +2 -2
  71. package/esm/core/global.js +7 -4
  72. package/esm/core/helpers/checker/is-marker.d.ts +1 -0
  73. package/esm/core/helpers/checker/is-marker.js +2 -4
  74. package/esm/core/helpers/utils/attr.js +3 -1
  75. package/esm/core/helpers/utils/error/errors/abort-error.d.ts +0 -5
  76. package/esm/core/helpers/utils/error/errors/abort-error.js +0 -8
  77. package/esm/core/helpers/utils/selector.js +2 -1
  78. package/esm/core/helpers/utils/utils.d.ts +2 -1
  79. package/esm/core/helpers/utils/utils.js +8 -0
  80. package/esm/core/plugin/helpers/init-instance.d.ts +2 -2
  81. package/esm/core/plugin/helpers/init-instance.js +2 -3
  82. package/esm/core/plugin/plugin-system.d.ts +5 -1
  83. package/esm/core/plugin/plugin-system.js +8 -5
  84. package/esm/core/selection/style/api/list/wrap-list.js +3 -2
  85. package/esm/core/selection/style/transactions.js +1 -1
  86. package/esm/core/ui/button/button/button.js +6 -3
  87. package/esm/core/ui/element.d.ts +2 -3
  88. package/esm/core/ui/group/list.d.ts +0 -1
  89. package/esm/core/ui/group/list.js +8 -6
  90. package/esm/modules/file-browser/builders/context-menu.js +3 -2
  91. package/esm/modules/file-browser/builders/utils.d.ts +12 -0
  92. package/esm/modules/file-browser/builders/utils.js +12 -0
  93. package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -12
  94. package/esm/modules/file-browser/listeners/native-listeners.js +3 -13
  95. package/esm/modules/history/command.d.ts +2 -3
  96. package/esm/modules/history/history.d.ts +1 -1
  97. package/esm/modules/history/history.js +2 -2
  98. package/esm/modules/toolbar/button/button.d.ts +0 -5
  99. package/esm/modules/toolbar/button/button.js +21 -11
  100. package/esm/modules/toolbar/collection/collection.d.ts +1 -2
  101. package/esm/modules/toolbar/collection/collection.js +6 -3
  102. package/esm/modules/toolbar/factory.js +8 -6
  103. package/esm/plugins/about/about.js +2 -2
  104. package/package.json +1 -1
  105. package/types/core/decorators/component/component.d.ts +4 -3
  106. package/types/core/decorators/watch/watch.d.ts +1 -2
  107. package/types/core/dom/dom.d.ts +5 -0
  108. package/types/core/event-emitter/global.d.ts +2 -0
  109. package/types/core/global.d.ts +2 -2
  110. package/types/core/helpers/checker/is-marker.d.ts +1 -0
  111. package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -5
  112. package/types/core/helpers/utils/utils.d.ts +2 -1
  113. package/types/core/plugin/helpers/init-instance.d.ts +2 -2
  114. package/types/core/plugin/plugin-system.d.ts +5 -1
  115. package/types/core/ui/element.d.ts +2 -3
  116. package/types/core/ui/group/list.d.ts +0 -1
  117. package/types/modules/file-browser/builders/utils.d.ts +12 -0
  118. package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -12
  119. package/types/modules/history/command.d.ts +2 -3
  120. package/types/modules/history/history.d.ts +1 -1
  121. package/types/modules/toolbar/button/button.d.ts +0 -5
  122. package/types/modules/toolbar/collection/collection.d.ts +1 -2
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.8.9
4
+ * Version: v4.9.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -185,7 +185,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
185
185
  /* harmony export */ });
186
186
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
187
187
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
188
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
188
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49574);
189
189
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
190
190
  /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60216);
191
191
  /*!
@@ -273,7 +273,7 @@ class LazyWalker extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MOD
273
273
  }
274
274
  }
275
275
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
276
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
276
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
277
277
  ], LazyWalker.prototype, "__workPerform", null);
278
278
 
279
279
 
@@ -1727,12 +1727,9 @@ function trimChars(value, chars) {
1727
1727
  /* harmony export */ makeCollection: function() { return /* binding */ makeCollection; },
1728
1728
  /* harmony export */ makeSelect: function() { return /* binding */ makeSelect; }
1729
1729
  /* harmony export */ });
1730
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
1731
- /* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22533);
1732
- /* harmony import */ var _button_content__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5772);
1733
- /* harmony import */ var _button_select_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61764);
1734
- /* harmony import */ var _collection_collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42573);
1735
- /* harmony import */ var _collection_editor_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6209);
1730
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91672);
1731
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91565);
1732
+ /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24497);
1736
1733
  /*!
1737
1734
  * Jodit Editor (https://xdsoft.net/jodit/)
1738
1735
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -1744,13 +1741,12 @@ function trimChars(value, chars) {
1744
1741
  */
1745
1742
 
1746
1743
 
1747
-
1748
-
1749
-
1750
1744
  /**
1751
1745
  * Collection factory
1752
1746
  */ function makeCollection(jodit, parentElement) {
1753
- const collection = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) ? new _collection_editor_collection__WEBPACK_IMPORTED_MODULE_5__.ToolbarEditorCollection(jodit) : new _collection_collection__WEBPACK_IMPORTED_MODULE_4__.ToolbarCollection(jodit);
1747
+ const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarCollection');
1748
+ const ToolbarEditorCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarEditorCollection');
1749
+ const collection = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(jodit) ? new ToolbarEditorCollection(jodit) : new ToolbarCollection(jodit);
1754
1750
  if (jodit.o.textIcons) {
1755
1751
  collection.container.classList.add('jodit_text_icons');
1756
1752
  }
@@ -1765,15 +1761,18 @@ function trimChars(value, chars) {
1765
1761
  /**
1766
1762
  * Button factory
1767
1763
  */ function makeButton(jodit, control, target = null) {
1768
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(control.getContent)) {
1769
- return new _button_content__WEBPACK_IMPORTED_MODULE_2__.ToolbarContent(jodit, control, target);
1764
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__.isFunction)(control.getContent)) {
1765
+ const ToolbarContent = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarContent');
1766
+ return new ToolbarContent(jodit, control, target);
1770
1767
  }
1771
- const button = new _button_button__WEBPACK_IMPORTED_MODULE_1__.ToolbarButton(jodit, control, target);
1768
+ const ToolbarButton = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarButton');
1769
+ const button = new ToolbarButton(jodit, control, target);
1772
1770
  button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
1773
1771
  return button;
1774
1772
  }
1775
1773
  function makeSelect(view, control, target = null) {
1776
- return new _button_select_select__WEBPACK_IMPORTED_MODULE_3__.ToolbarSelect(view, control, target);
1774
+ const ToolbarSelect = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
1775
+ return new ToolbarSelect(view, control, target);
1777
1776
  }
1778
1777
 
1779
1778
 
@@ -3511,9 +3510,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
3511
3510
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3512
3511
  /* harmony export */ attr: function() { return /* binding */ attr; }
3513
3512
  /* harmony export */ });
3514
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28686);
3515
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74264);
3516
- /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80991);
3513
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91565);
3514
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
3515
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
3516
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
3517
+ /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
3517
3518
  /*!
3518
3519
  * Jodit Editor (https://xdsoft.net/jodit/)
3519
3520
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -3523,19 +3524,21 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
3523
3524
  */
3524
3525
 
3525
3526
 
3527
+
3528
+
3526
3529
  /**
3527
3530
  * Alias for `elm.getAttribute` but if set second argument `-{key}`
3528
3531
  * it will also check `data-{key}` attribute
3529
3532
  * if set `value` it is alias for setAttribute with the same logic
3530
3533
  */ function attr(elm, keyOrAttributes, value) {
3531
- if (!elm || !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
3534
+ if (!elm || !(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
3532
3535
  return null;
3533
3536
  }
3534
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isString)(keyOrAttributes)) {
3537
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(keyOrAttributes)) {
3535
3538
  Object.keys(keyOrAttributes).forEach((key)=>{
3536
3539
  const value = keyOrAttributes[key];
3537
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(value) && key === 'style') {
3538
- (0,_css__WEBPACK_IMPORTED_MODULE_2__.css)(elm, value);
3540
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value) && key === 'style') {
3541
+ (0,_css__WEBPACK_IMPORTED_MODULE_4__.css)(elm, value);
3539
3542
  } else {
3540
3543
  if (key === 'className') {
3541
3544
  key = 'class';
@@ -3545,7 +3548,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
3545
3548
  });
3546
3549
  return null;
3547
3550
  }
3548
- let key = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_1__.CamelCaseToKebabCase)(keyOrAttributes);
3551
+ let key = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.CamelCaseToKebabCase)(keyOrAttributes);
3549
3552
  if (/^-/.test(key)) {
3550
3553
  const res = attr(elm, `data${key}`);
3551
3554
  if (res) {
@@ -5711,23 +5714,20 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
5711
5714
 
5712
5715
  "use strict";
5713
5716
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5714
- /* harmony export */ abort: function() { return /* binding */ abort; },
5715
- /* harmony export */ isAbort: function() { return /* binding */ isAbort; }
5717
+ /* harmony export */ abort: function() { return /* binding */ abort; }
5716
5718
  /* harmony export */ });
5717
- /* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72068);
5718
5719
  /*!
5719
5720
  * Jodit Editor (https://xdsoft.net/jodit/)
5720
5721
  * Released under MIT see LICENSE.txt in the project root for license information.
5721
5722
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5722
5723
  */ /**
5723
5724
  * @module helpers/utils
5724
- */
5725
- function abort(message = 'Aborted') {
5725
+ */ /**
5726
+ * `AbortError` is not a separate exception, but rather a {@link DOMException} with a special `name`.
5727
+ * https://webidl.spec.whatwg.org/#aborterror
5728
+ */ function abort(message = 'Aborted') {
5726
5729
  return new DOMException(message, 'AbortError');
5727
5730
  }
5728
- /**
5729
- * @deprecated use `isAbortError` instead
5730
- */ const isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbortError;
5731
5731
 
5732
5732
 
5733
5733
  /***/ }),
@@ -9058,15 +9058,27 @@ module.exports = "<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/sv
9058
9058
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
9059
9059
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
9060
9060
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69364);
9061
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
9062
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27795);
9063
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65946);
9064
- /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(59400);
9065
- /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15982);
9066
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29434);
9067
- /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51116);
9068
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(42573);
9069
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4274);
9061
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49574);
9062
+ /* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51676);
9063
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91672);
9064
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68616);
9065
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(23211);
9066
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17312);
9067
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91565);
9068
+ /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24497);
9069
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62101);
9070
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(85932);
9071
+ /* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(86878);
9072
+ /* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(57821);
9073
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28712);
9074
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__);
9075
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(7909);
9076
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(71125);
9077
+ /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(59400);
9078
+ /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(15982);
9079
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(29434);
9080
+ /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(51116);
9081
+ /* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(4274);
9070
9082
  /*!
9071
9083
  * Jodit Editor (https://xdsoft.net/jodit/)
9072
9084
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9088,17 +9100,30 @@ module.exports = "<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/sv
9088
9100
 
9089
9101
 
9090
9102
 
9091
- class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UIButton {
9092
- /** @override */ className() {
9103
+
9104
+
9105
+
9106
+
9107
+
9108
+
9109
+
9110
+
9111
+
9112
+
9113
+
9114
+ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__.UIButton {
9115
+ className() {
9093
9116
  return 'ToolbarButton';
9094
9117
  }
9095
9118
  /**
9096
9119
  * Get parent toolbar
9097
9120
  */ get toolbar() {
9098
- return this.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_10__.ToolbarCollection);
9121
+ const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_5__.getComponentClass)('ToolbarCollection');
9122
+ return this.closest(ToolbarCollection);
9099
9123
  }
9100
- /** @override **/ update() {
9101
- const { control, state } = this, tc = this.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_10__.ToolbarCollection);
9124
+ update() {
9125
+ const { control, state } = this;
9126
+ const tc = this.toolbar;
9102
9127
  if (!tc) {
9103
9128
  return;
9104
9129
  }
@@ -9113,7 +9138,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9113
9138
  /**
9114
9139
  * Calculates whether the button is active
9115
9140
  */ __calculateActivatedStatus(tc) {
9116
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isJoditObject)(this.j) && !this.j.editorIsActive) {
9141
+ if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) && !this.j.editorIsActive) {
9117
9142
  return false;
9118
9143
  }
9119
9144
  if (this.control.isActive?.(this.j, this)) {
@@ -9135,33 +9160,33 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9135
9160
  }
9136
9161
  return Boolean(tc && tc.shouldBeDisabled(this));
9137
9162
  }
9138
- /** @override */ onChangeActivated() {
9139
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.button, 'aria-pressed', this.state.activated);
9163
+ onChangeActivated() {
9164
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
9140
9165
  super.onChangeActivated();
9141
9166
  }
9142
- /** @override */ onChangeText() {
9143
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(this.control.template)) {
9167
+ onChangeText() {
9168
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
9144
9169
  this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
9145
9170
  } else {
9146
9171
  super.onChangeText();
9147
9172
  }
9148
9173
  this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
9149
9174
  }
9150
- /** @override */ onChangeTabIndex() {
9151
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.button, 'tabindex', this.state.tabIndex);
9175
+ onChangeTabIndex() {
9176
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'tabindex', this.state.tabIndex);
9152
9177
  }
9153
9178
  createContainer() {
9154
9179
  const cn = this.componentName;
9155
9180
  const container = this.j.c.span(cn);
9156
9181
  const button = super.createContainer();
9157
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(container, 'role', 'listitem');
9182
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(container, 'role', 'listitem');
9158
9183
  button.classList.remove(cn);
9159
9184
  button.classList.add(cn + '__button');
9160
9185
  Object.defineProperty(button, 'component', {
9161
9186
  value: this
9162
9187
  });
9163
9188
  container.appendChild(button);
9164
- const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_8__.Icon.get('chevron')}</span>`);
9189
+ const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_20__.Icon.get('chevron')}</span>`);
9165
9190
  // For caching
9166
9191
  button.appendChild(trigger);
9167
9192
  return container;
@@ -9173,15 +9198,15 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9173
9198
  if (this.state.hasTrigger) {
9174
9199
  this.container.appendChild(this.trigger);
9175
9200
  } else {
9176
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.safeRemove(this.trigger);
9201
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(this.trigger);
9177
9202
  }
9178
9203
  this.setMod('with-trigger', this.state.hasTrigger || null);
9179
9204
  }
9180
9205
  /** @override */ onChangeDisabled() {
9181
9206
  const disabled = this.state.disabled ? 'disabled' : null;
9182
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.trigger, 'disabled', disabled);
9183
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.button, 'disabled', disabled);
9184
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.container, 'disabled', disabled);
9207
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'disabled', disabled);
9208
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'disabled', disabled);
9209
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'disabled', disabled);
9185
9210
  }
9186
9211
  /**
9187
9212
  * Init constant data from control
@@ -9190,22 +9215,22 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9190
9215
  this.updateSize();
9191
9216
  state.name = ctr.name;
9192
9217
  const { textIcons } = this.j.o;
9193
- if (textIcons === true || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
9194
- state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UIButtonState)().icon;
9218
+ if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
9219
+ state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)().icon;
9195
9220
  state.text = ctr.text || ctr.name;
9196
9221
  } else {
9197
9222
  if (ctr.iconURL) {
9198
9223
  state.icon.iconURL = ctr.iconURL;
9199
9224
  } else {
9200
9225
  const name = ctr.icon || ctr.name;
9201
- state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_8__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
9226
+ state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_20__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
9202
9227
  }
9203
9228
  if (!ctr.iconURL && !state.icon.name) {
9204
9229
  state.text = ctr.text || ctr.name;
9205
9230
  }
9206
9231
  }
9207
9232
  if (ctr.tooltip) {
9208
- state.tooltip = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
9233
+ state.tooltip = (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
9209
9234
  }
9210
9235
  state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
9211
9236
  }
@@ -9223,15 +9248,15 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9223
9248
  if (ctr.list) {
9224
9249
  return this.__openControlList(ctr);
9225
9250
  }
9226
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.popup)) {
9251
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
9227
9252
  const popup = this.openPopup();
9228
9253
  popup.parentElement = this;
9229
9254
  try {
9230
- if (this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
9255
+ if (this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
9231
9256
  const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
9232
9257
  const elm = ctr.popup(this.j, target, this.__closePopup, this);
9233
9258
  if (elm) {
9234
- popup.setContent((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
9259
+ popup.setContent((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_13__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
9235
9260
  } else {
9236
9261
  this.__closePopup();
9237
9262
  }
@@ -9244,26 +9269,28 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9244
9269
  * Fired after the popup was opened for some control button
9245
9270
  */ /**
9246
9271
  * Close all opened popups
9247
- */ this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
9272
+ */ this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
9248
9273
  }
9249
9274
  }
9250
9275
  /**
9251
9276
  * Create an open popup list
9252
9277
  */ __openControlList(control) {
9253
- const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_7__.findControlType)(key, controls);
9254
- const list = control.list, menu = this.openPopup(), toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_11__.makeCollection)(this.j);
9278
+ const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_19__.findControlType)(key, controls);
9279
+ const list = control.list;
9280
+ const menu = this.openPopup();
9281
+ const toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_22__.makeCollection)(this.j);
9255
9282
  menu.parentElement = this;
9256
9283
  toolbar.parentElement = menu;
9257
9284
  toolbar.mode = 'vertical';
9258
- const isListItem = (key)=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isPlainObject)(key) && 'title' in key && 'value' in key;
9285
+ const isListItem = (key)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_11__.isPlainObject)(key) && 'title' in key && 'value' in key;
9259
9286
  const getButton = (key, value)=>{
9260
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(value) && getControl(value)) {
9287
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(value) && getControl(value)) {
9261
9288
  return {
9262
9289
  name: value.toString(),
9263
9290
  ...getControl(value)
9264
9291
  };
9265
9292
  }
9266
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(key) && getControl(key)) {
9293
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(key) && getControl(key)) {
9267
9294
  return {
9268
9295
  name: key.toString(),
9269
9296
  ...getControl(key),
@@ -9294,26 +9321,26 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9294
9321
  value
9295
9322
  ]
9296
9323
  };
9297
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(value)) {
9324
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(value)) {
9298
9325
  childControl.text = value;
9299
9326
  }
9300
9327
  return childControl;
9301
9328
  };
9302
- toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isArray)(list) ? list.map(getButton) : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
9303
- menu.setContent(toolbar).open(()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
9329
+ toolbar.build((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_8__.isArray)(list) ? list.map(getButton) : (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_17__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
9330
+ menu.setContent(toolbar).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_13__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
9304
9331
  this.state.activated = true;
9305
9332
  }
9306
9333
  onOutsideClick(e) {
9307
9334
  if (!this.openedPopup) {
9308
9335
  return;
9309
9336
  }
9310
- if (!e || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isNode(e.target) || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
9337
+ if (!e || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isNode(e.target) || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
9311
9338
  this.__closePopup();
9312
9339
  }
9313
9340
  }
9314
9341
  openPopup() {
9315
9342
  this.__closePopup();
9316
- this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.j, false);
9343
+ this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_21__.Popup(this.j, false);
9317
9344
  this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
9318
9345
  return this.openedPopup;
9319
9346
  }
@@ -9330,7 +9357,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9330
9357
  * Click handler
9331
9358
  */ onClick(originalEvent) {
9332
9359
  const { control: ctr } = this;
9333
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.exec)) {
9360
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.exec)) {
9334
9361
  const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
9335
9362
  const result = ctr.exec(this.j, target, {
9336
9363
  control: ctr,
@@ -9354,11 +9381,11 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9354
9381
  if (ctr.list) {
9355
9382
  return this.__openControlList(ctr);
9356
9383
  }
9357
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.popup)) {
9384
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
9358
9385
  return this.onTriggerClick(originalEvent);
9359
9386
  }
9360
9387
  if (ctr.command || ctr.name) {
9361
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.call)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
9388
+ (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_17__.call)((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
9362
9389
  this.j.e.fire('closeAllPopups');
9363
9390
  }
9364
9391
  }
@@ -9368,20 +9395,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9368
9395
  }
9369
9396
  constructor(jodit, control, target = null){
9370
9397
  super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "control", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "target", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "openedPopup", void 0), this.control = control, this.target = target, this.state = {
9371
- ...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UIButtonState)(),
9398
+ ...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)(),
9372
9399
  theme: 'toolbar',
9373
9400
  currentValue: '',
9374
9401
  hasTrigger: false
9375
9402
  }, this.openedPopup = null;
9376
9403
  const button = this.getElm('button');
9377
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.assert)(button, 'Element button should exists');
9404
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(button, 'Element button should exists');
9378
9405
  this.button = button;
9379
9406
  Object.defineProperty(button, 'component', {
9380
9407
  value: this,
9381
9408
  configurable: true
9382
9409
  });
9383
9410
  const trigger = this.getElm('trigger');
9384
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.assert)(trigger, 'Element trigger should exists');
9411
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(trigger, 'Element trigger should exists');
9385
9412
  this.trigger = trigger;
9386
9413
  trigger.remove();
9387
9414
  // Prevent lost focus
@@ -9402,24 +9429,24 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9402
9429
  }
9403
9430
  }
9404
9431
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9405
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
9432
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_4__.cacheHTML
9406
9433
  ], ToolbarButton.prototype, "createContainer", null);
9407
9434
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9408
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.hasTrigger', {
9435
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)('state.hasTrigger', {
9409
9436
  immediately: false
9410
9437
  })
9411
9438
  ], ToolbarButton.prototype, "onChangeHasTrigger", null);
9412
9439
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9413
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('trigger:click')
9440
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:click')
9414
9441
  ], ToolbarButton.prototype, "onTriggerClick", null);
9415
9442
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9416
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
9443
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
9417
9444
  ], ToolbarButton.prototype, "onOutsideClick", null);
9418
9445
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9419
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
9446
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
9420
9447
  ], ToolbarButton.prototype, "__closePopup", null);
9421
9448
  ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9422
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
9449
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_5__.component
9423
9450
  ], ToolbarButton);
9424
9451
 
9425
9452
 
@@ -9682,8 +9709,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('wrapNodes', wra
9682
9709
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9683
9710
  /* harmony export */ isMarker: function() { return /* binding */ isMarker; }
9684
9711
  /* harmony export */ });
9685
- /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
9686
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
9712
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
9687
9713
  /*!
9688
9714
  * Jodit Editor (https://xdsoft.net/jodit/)
9689
9715
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9691,11 +9717,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('wrapNodes', wra
9691
9717
  */ /**
9692
9718
  * @module helpers/checker
9693
9719
  */
9694
-
9695
9720
  /**
9696
9721
  * Define element is selection helper
9722
+ * @deprecated use Dom.isMarker instead
9697
9723
  */ function isMarker(elm) {
9698
- return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isNode(elm) && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MARKER_CLASS);
9724
+ return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isMarker(elm);
9699
9725
  }
9700
9726
 
9701
9727
 
@@ -9741,9 +9767,20 @@ class Elms {
9741
9767
  /* harmony export */ });
9742
9768
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
9743
9769
  /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88475);
9744
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28686);
9745
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4040);
9746
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(93640);
9770
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17312);
9771
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91565);
9772
+ /* harmony import */ var jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46248);
9773
+ /* harmony import */ var jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3213);
9774
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
9775
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18303);
9776
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4040);
9777
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
9778
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
9779
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
9780
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80991);
9781
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(36400);
9782
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(33201);
9783
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71125);
9747
9784
  /*!
9748
9785
  * Jodit Editor (https://xdsoft.net/jodit/)
9749
9786
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9758,6 +9795,16 @@ class Elms {
9758
9795
 
9759
9796
 
9760
9797
 
9798
+
9799
+
9800
+
9801
+
9802
+
9803
+
9804
+
9805
+
9806
+
9807
+
9761
9808
  /**
9762
9809
  * Module for working with DOM
9763
9810
  */ class Dom {
@@ -9787,7 +9834,7 @@ class Elms {
9787
9834
  return Dom.__wrapElements(tag, editor, first, last);
9788
9835
  }
9789
9836
  static __wrapElements(tag, editor, first, last) {
9790
- const wrapper = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(tag) ? editor.createInside.element(tag) : tag;
9837
+ const wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? editor.createInside.element(tag) : tag;
9791
9838
  if (first.parentNode) {
9792
9839
  first.parentNode.insertBefore(wrapper, first);
9793
9840
  }
@@ -9832,10 +9879,10 @@ class Elms {
9832
9879
  /**
9833
9880
  * Wrap node inside another node
9834
9881
  */ static wrap(current, tag, create) {
9835
- const wrapper = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(tag) ? create.element(tag) : tag;
9882
+ const wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
9836
9883
  if (Dom.isNode(current)) {
9837
9884
  if (!current.parentNode) {
9838
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.error)('Element should be in DOM');
9885
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_13__.error)('Element should be in DOM');
9839
9886
  }
9840
9887
  current.parentNode.insertBefore(wrapper, current);
9841
9888
  wrapper.appendChild(current);
@@ -9876,13 +9923,13 @@ class Elms {
9876
9923
  }
9877
9924
  }
9878
9925
  static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
9879
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isHTML)(newTagName)) {
9880
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.assert)(create, 'Need create instance for new tag');
9926
+ if ((0,jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
9927
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
9881
9928
  newTagName = create.fromHTML(newTagName);
9882
9929
  }
9883
9930
  let tag;
9884
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(newTagName)) {
9885
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.assert)(create, 'Need create instance for new tag');
9931
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
9932
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
9886
9933
  tag = create.element(newTagName);
9887
9934
  } else {
9888
9935
  tag = newTagName;
@@ -9923,12 +9970,12 @@ class Elms {
9923
9970
  return true;
9924
9971
  }
9925
9972
  let cond;
9926
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isFunction)(condNoEmptyElement)) {
9973
+ if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(condNoEmptyElement)) {
9927
9974
  cond = (elm)=>condNoEmptyElement.has(elm.nodeName.toLowerCase());
9928
9975
  } else {
9929
9976
  cond = condNoEmptyElement;
9930
9977
  }
9931
- const emptyText = (node)=>node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__.trim)(node.nodeValue).length === 0;
9978
+ const emptyText = (node)=>node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(node.nodeValue).length === 0;
9932
9979
  if (Dom.isText(node)) {
9933
9980
  return emptyText(node);
9934
9981
  }
@@ -9942,7 +9989,7 @@ class Elms {
9942
9989
  * Returns true if it is a DOM node
9943
9990
  */ static isNode(object) {
9944
9991
  // Duck-typing
9945
- return Boolean(object && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(object.nodeName) && typeof object.nodeType === 'number' && object.childNodes && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isFunction)(object.appendChild));
9992
+ return Boolean(object && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(object.nodeName) && typeof object.nodeType === 'number' && object.childNodes && (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(object.appendChild));
9946
9993
  }
9947
9994
  /**
9948
9995
  * Check if element is table cell
@@ -9968,7 +10015,7 @@ class Elms {
9968
10015
  * Check the `node` is a block element
9969
10016
  * @param node - Object to check
9970
10017
  */ static isBlock(node) {
9971
- return !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isVoid)(node) && typeof node === 'object' && Dom.isNode(node) && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(node.nodeName);
10018
+ return !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && typeof node === 'object' && Dom.isNode(node) && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(node.nodeName);
9972
10019
  }
9973
10020
  /**
9974
10021
  * Check if element is text node
@@ -10013,12 +10060,12 @@ class Elms {
10013
10060
  return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
10014
10061
  'inline',
10015
10062
  'inline-block'
10016
- ].indexOf((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(node, 'display').toString()) !== -1;
10063
+ ].indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__.css)(node, 'display').toString()) !== -1;
10017
10064
  }
10018
10065
  /**
10019
10066
  * It's block and it can be split
10020
10067
  */ static canSplitBlock(node) {
10021
- return !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isVoid)(node) && Dom.isHTMLElement(node) && Dom.isBlock(node) && !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) && node.style !== undefined && !/^(fixed|absolute)/i.test(node.style.position);
10068
+ return !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && Dom.isHTMLElement(node) && Dom.isBlock(node) && !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) && node.style !== undefined && !/^(fixed|absolute)/i.test(node.style.position);
10022
10069
  }
10023
10070
  /**
10024
10071
  * Get last matched node inside root
@@ -10172,13 +10219,13 @@ class Elms {
10172
10219
  * Returns the nearest non-empty sibling
10173
10220
  */ static findNotEmptySibling(node, left) {
10174
10221
  return Dom.findSibling(node, left, (n)=>{
10175
- return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || n.nodeValue?.length && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__.trim)(n.nodeValue));
10222
+ return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || n.nodeValue?.length && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(n.nodeValue));
10176
10223
  });
10177
10224
  }
10178
10225
  /**
10179
10226
  * Returns the nearest non-empty neighbor
10180
10227
  */ static findNotEmptyNeighbor(node, left, root) {
10181
- return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.call)(left ? Dom.prev : Dom.next, node, (n)=>Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__.trim)(n?.nodeValue || '').length)), root);
10228
+ return (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_14__.call)(left ? Dom.prev : Dom.next, node, (n)=>Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(n?.nodeValue || '').length)), root);
10182
10229
  }
10183
10230
  static sibling(node, left) {
10184
10231
  return left ? node.previousSibling : node.nextSibling;
@@ -10207,10 +10254,10 @@ class Elms {
10207
10254
  static closest(node, tagsOrCondition, root) {
10208
10255
  let condition;
10209
10256
  const lc = (s)=>s.toLowerCase();
10210
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isFunction)(tagsOrCondition)) {
10257
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(tagsOrCondition)) {
10211
10258
  condition = tagsOrCondition;
10212
- } else if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isArray)(tagsOrCondition) || (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isSet)(tagsOrCondition)) {
10213
- const set = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
10259
+ } else if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__.isArray)(tagsOrCondition) || (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition)) {
10260
+ const set = (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
10214
10261
  condition = (tag)=>Boolean(tag && set.has(lc(tag.nodeName)));
10215
10262
  } else {
10216
10263
  condition = (tag)=>Boolean(tag && lc(tagsOrCondition) === lc(tag.nodeName));
@@ -10269,7 +10316,7 @@ class Elms {
10269
10316
  root.insertBefore(newElement, root.firstChild);
10270
10317
  }
10271
10318
  static append(root, newElement) {
10272
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
10319
+ if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
10273
10320
  newElement.forEach((node)=>{
10274
10321
  this.append(root, node);
10275
10322
  });
@@ -10333,7 +10380,7 @@ class Elms {
10333
10380
  if (!node) {
10334
10381
  return;
10335
10382
  }
10336
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.dataBind)(node, '__old_display', node.style.display);
10383
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display', node.style.display);
10337
10384
  node.style.display = 'none';
10338
10385
  }
10339
10386
  /**
@@ -10342,7 +10389,7 @@ class Elms {
10342
10389
  if (!node) {
10343
10390
  return;
10344
10391
  }
10345
- const display = (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.dataBind)(node, '__old_display');
10392
+ const display = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display');
10346
10393
  if (node.style.display === 'none') {
10347
10394
  node.style.display = display || '';
10348
10395
  }
@@ -10368,8 +10415,8 @@ class Elms {
10368
10415
  /**
10369
10416
  * Marks an item as temporary
10370
10417
  */ static markTemporary(element, attributes) {
10371
- attributes && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(element, attributes);
10372
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
10418
+ attributes && (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, attributes);
10419
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
10373
10420
  return element;
10374
10421
  }
10375
10422
  /**
@@ -10378,7 +10425,12 @@ class Elms {
10378
10425
  if (!Dom.isElement(element)) {
10379
10426
  return false;
10380
10427
  }
10381
- return (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isMarker)(element) || (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
10428
+ return Dom.isMarker(element) || (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
10429
+ }
10430
+ /**
10431
+ * Define element is selection helper
10432
+ */ static isMarker(elm) {
10433
+ return Dom.isNode(elm) && Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MARKER_CLASS);
10382
10434
  }
10383
10435
  /**
10384
10436
  * Replace temporary elements from string
@@ -10387,8 +10439,9 @@ class Elms {
10387
10439
  }
10388
10440
  /**
10389
10441
  * Get temporary list
10442
+ * @deprecated
10390
10443
  */ static temporaryList(root) {
10391
- return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.$$)(`[${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`, root);
10444
+ return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll(`[${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`));
10392
10445
  }
10393
10446
  constructor(){
10394
10447
  throw new Error('Dom is static module');
@@ -11880,16 +11933,16 @@ UISpacer = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)(
11880
11933
  /* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
11881
11934
  /* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
11882
11935
  /* harmony export */ });
11883
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
11884
- /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24497);
11885
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
11886
- /* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31534);
11887
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74264);
11936
+ /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
11937
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
11938
+ /* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31534);
11939
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
11940
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
11888
11941
  /* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(421);
11889
11942
  /* harmony import */ var jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85305);
11890
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81937);
11891
- /* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27795);
11892
- /* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1496);
11943
+ /* harmony import */ var _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42689);
11944
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81937);
11945
+ /* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27795);
11893
11946
  /*!
11894
11947
  * Jodit Editor (https://xdsoft.net/jodit/)
11895
11948
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -11923,14 +11976,16 @@ const uuids = new Set();
11923
11976
  uuids.add(uid);
11924
11977
  return uid;
11925
11978
  }
11926
- const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem();
11979
+ const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem({
11980
+ getContainer
11981
+ });
11927
11982
  const modules = {};
11928
11983
  const extendLang = (langs)=>{
11929
11984
  Object.keys(langs).forEach((key)=>{
11930
- if (_constants__WEBPACK_IMPORTED_MODULE_7__.lang[key]) {
11931
- Object.assign(_constants__WEBPACK_IMPORTED_MODULE_7__.lang[key], langs[key]);
11985
+ if (_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key]) {
11986
+ Object.assign(_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key], langs[key]);
11932
11987
  } else {
11933
- _constants__WEBPACK_IMPORTED_MODULE_7__.lang[key] = langs[key];
11988
+ _constants__WEBPACK_IMPORTED_MODULE_8__.lang[key] = langs[key];
11934
11989
  }
11935
11990
  });
11936
11991
  };
@@ -11938,27 +11993,27 @@ const boxes = new WeakMap();
11938
11993
  /**
11939
11994
  * Create unique box(HTMLCotainer) and remove it after destroy
11940
11995
  */ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
11941
- const name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__.getClassName)(classFunc.prototype) : 'jodit-utils';
11996
+ const name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__.getClassName)(classFunc.prototype) : 'jodit-utils';
11942
11997
  const data = boxes.get(jodit) || {}, key = name + tag;
11943
- const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__.isViewObject)(jodit) ? jodit : jodit.j;
11998
+ const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
11944
11999
  let body = null;
11945
12000
  if (!data[key]) {
11946
12001
  let c = view.c;
11947
12002
  body = getPopupViewRoot(view.o, view.container, jodit.od.body);
11948
- if (createInsideEditor && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
12003
+ if (createInsideEditor && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
11949
12004
  c = jodit.createInside;
11950
12005
  const place = tag === 'style' ? jodit.ed.head : jodit.ed.body;
11951
- body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
12006
+ body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
11952
12007
  }
11953
12008
  const box = c.element(tag, {
11954
- className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(name)}-container jodit-box`
12009
+ className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(name)}-container jodit-box`
11955
12010
  });
11956
12011
  box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
11957
12012
  body.appendChild(box);
11958
12013
  data[key] = box;
11959
12014
  jodit.hookStatus('beforeDestruct', ()=>{
11960
12015
  view.events.off(box);
11961
- _dom__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(box);
12016
+ _dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(box);
11962
12017
  delete data[key];
11963
12018
  if (Object.keys(data).length) {
11964
12019
  boxes.delete(jodit);
@@ -11975,14 +12030,15 @@ const boxes = new WeakMap();
11975
12030
  * Get root element for view
11976
12031
  * @internal
11977
12032
  */ function getPopupViewRoot(o, container, defaultRoot) {
11978
- return o.popupRoot ?? o.shadowRoot ?? _dom__WEBPACK_IMPORTED_MODULE_8__.Dom.closest(container, (parentElement)=>_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isHTMLElement(parentElement) && (_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isTag(parentElement, 'dialog') || [
12033
+ return o.popupRoot ?? o.shadowRoot ?? _dom__WEBPACK_IMPORTED_MODULE_9__.Dom.closest(container, (parentElement)=>_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isHTMLElement(parentElement) && (_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(parentElement, 'dialog') || [
11979
12034
  'fixed',
11980
12035
  'absolute'
11981
- ].includes((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.css)(parentElement, 'position'))), defaultRoot) ?? defaultRoot;
12036
+ ].includes((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(parentElement, 'position'))), defaultRoot) ?? defaultRoot;
11982
12037
  }
11983
12038
  /**
11984
12039
  * Global event emitter
11985
- */ const eventEmitter = new _event_emitter__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
12040
+ * @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
12041
+ */ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__.eventEmitter;
11986
12042
 
11987
12043
 
11988
12044
  /***/ }),
@@ -12394,7 +12450,8 @@ module.exports = {assert(){}};;
12394
12450
  /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88475);
12395
12451
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85932);
12396
12452
  /* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57821);
12397
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93640);
12453
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7909);
12454
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33201);
12398
12455
  /*!
12399
12456
  * Jodit Editor (https://xdsoft.net/jodit/)
12400
12457
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12407,6 +12464,7 @@ module.exports = {assert(){}};;
12407
12464
 
12408
12465
 
12409
12466
 
12467
+
12410
12468
  let temp = 1;
12411
12469
  const $$temp = ()=>{
12412
12470
  temp++;
@@ -12451,7 +12509,7 @@ const $$temp = ()=>{
12451
12509
  root = root.container;
12452
12510
  }
12453
12511
  return $$('[ref],[data-ref]', root).reduce((def, child)=>{
12454
- const key = (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
12512
+ const key = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
12455
12513
  if (key && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__.isString)(key)) {
12456
12514
  def[(0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_4__.camelCase)(key)] = child;
12457
12515
  def[key] = child;
@@ -12496,12 +12554,12 @@ const $$temp = ()=>{
12496
12554
  try {
12497
12555
  resolved = od.querySelector(element);
12498
12556
  } catch {
12499
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.error)('String "' + element + '" should be valid HTML selector');
12557
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__.error)('String "' + element + '" should be valid HTML selector');
12500
12558
  }
12501
12559
  }
12502
12560
  // Duck checking
12503
12561
  if (!resolved || typeof resolved !== 'object' || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(resolved) || !resolved.cloneNode) {
12504
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.error)('Element "' + element + '" should be string or HTMLElement instance');
12562
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__.error)('Element "' + element + '" should be string or HTMLElement instance');
12505
12563
  }
12506
12564
  return resolved;
12507
12565
  }
@@ -13008,8 +13066,7 @@ UIImageMainTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__deco
13008
13066
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13009
13067
  /* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
13010
13068
  /* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
13011
- /* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; },
13012
- /* harmony export */ isAbort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbort; }
13069
+ /* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; }
13013
13070
  /* harmony export */ });
13014
13071
  /* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14228);
13015
13072
  /* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58250);
@@ -14262,7 +14319,6 @@ class Response {
14262
14319
  /* harmony export */ abort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.abort; },
14263
14320
  /* harmony export */ connection: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.connection; },
14264
14321
  /* harmony export */ error: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.error; },
14265
- /* harmony export */ isAbort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.isAbort; },
14266
14322
  /* harmony export */ options: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.options; }
14267
14323
  /* harmony export */ });
14268
14324
  /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38027);
@@ -14561,15 +14617,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
14561
14617
 
14562
14618
  "use strict";
14563
14619
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14564
- /* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
14565
- /* harmony export */ getItem: function() { return /* binding */ getItem; },
14566
14620
  /* harmony export */ nativeListeners: function() { return /* binding */ nativeListeners; }
14567
14621
  /* harmony export */ });
14568
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
14569
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65946);
14622
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7909);
14623
+ /* harmony import */ var jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77213);
14570
14624
  /* harmony import */ var jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61334);
14571
14625
  /* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31125);
14572
- /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53202);
14626
+ /* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66206);
14627
+ /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53202);
14573
14628
  /*!
14574
14629
  * Jodit Editor (https://xdsoft.net/jodit/)
14575
14630
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -14581,15 +14636,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
14581
14636
 
14582
14637
 
14583
14638
 
14584
- /**
14585
- * @private
14586
- */ const getItem = (node, root, tag = 'a')=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, (elm)=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag), root);
14587
- /**
14588
- * @private
14589
- */ const elementToItem = (elm, elementsMap)=>{
14590
- const { key } = elm.dataset, { item } = elementsMap[key || ''];
14591
- return item;
14592
- };
14639
+
14593
14640
  /**
14594
14641
  * @private
14595
14642
  */ function nativeListeners() {
@@ -14597,7 +14644,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
14597
14644
  const elmMap = (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__.elementsMap)(this);
14598
14645
  const self = this;
14599
14646
  self.e.on(self.tree.container, 'dragstart', (e)=>{
14600
- const a = getItem(e.target, self.container);
14647
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
14601
14648
  if (!a) {
14602
14649
  return;
14603
14650
  }
@@ -14606,39 +14653,39 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
14606
14653
  }
14607
14654
  }).on(self.tree.container, 'drop', (e)=>{
14608
14655
  if ((self.o.moveFile || self.o.moveFolder) && dragElement) {
14609
- let path = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(dragElement, '-path') || '';
14656
+ let path = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-path') || '';
14610
14657
  // move folder
14611
14658
  if (!self.o.moveFolder && dragElement.classList.contains(this.tree.getFullElName('item'))) {
14612
14659
  return false;
14613
14660
  }
14614
14661
  // move file
14615
14662
  if (dragElement.classList.contains(this.files.getFullElName('item'))) {
14616
- path += (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(dragElement, '-name');
14663
+ path += (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-name');
14617
14664
  if (!self.o.moveFile) {
14618
14665
  return false;
14619
14666
  }
14620
14667
  }
14621
- const a = getItem(e.target, self.container);
14668
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
14622
14669
  if (!a) {
14623
14670
  return;
14624
14671
  }
14625
- self.dataProvider.move(path, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(a, '-path') || '', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(a, '-source') || '', dragElement.classList.contains(this.files.getFullElName('item'))).then(()=>(0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_4__.loadTree)(this)).catch(self.status);
14672
+ self.dataProvider.move(path, (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(a, '-path') || '', (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(a, '-source') || '', dragElement.classList.contains(this.files.getFullElName('item'))).then(()=>(0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_5__.loadTree)(this)).catch(self.status);
14626
14673
  dragElement = false;
14627
14674
  }
14628
14675
  }).on(self.files.container, 'contextmenu', (0,jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_2__["default"])(self)).on(self.files.container, 'click', (e)=>{
14629
- if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
14676
+ if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
14630
14677
  this.state.activeElements = [];
14631
14678
  }
14632
14679
  }).on(self.files.container, 'click', (e)=>{
14633
- const a = getItem(e.target, self.container);
14680
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
14634
14681
  if (!a) {
14635
14682
  return;
14636
14683
  }
14637
- const item = elementToItem(a, elmMap);
14684
+ const item = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.elementToItem)(a, elmMap);
14638
14685
  if (!item) {
14639
14686
  return;
14640
14687
  }
14641
- if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
14688
+ if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
14642
14689
  self.state.activeElements = [
14643
14690
  item
14644
14691
  ];
@@ -14652,7 +14699,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
14652
14699
  return false;
14653
14700
  }).on(self.files.container, 'dragstart', (e)=>{
14654
14701
  if (self.o.moveFile) {
14655
- const a = getItem(e.target, self.container);
14702
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
14656
14703
  if (!a) {
14657
14704
  return;
14658
14705
  }
@@ -16890,9 +16937,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
16890
16937
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
16891
16938
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
16892
16939
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
16893
- /* harmony import */ var jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38027);
16894
- /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4099);
16895
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4274);
16940
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49574);
16941
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
16942
+ /* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29200);
16943
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68616);
16944
+ /* harmony import */ var jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38027);
16945
+ /* harmony import */ var jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97959);
16946
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4274);
16896
16947
  /*!
16897
16948
  * Jodit Editor (https://xdsoft.net/jodit/)
16898
16949
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16908,8 +16959,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
16908
16959
 
16909
16960
 
16910
16961
 
16911
- class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIList {
16912
- /** @override */ className() {
16962
+
16963
+
16964
+
16965
+
16966
+ class ToolbarCollection extends jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_8__.UIList {
16967
+ className() {
16913
16968
  return 'ToolbarCollection';
16914
16969
  }
16915
16970
  /**
@@ -16919,10 +16974,10 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
16919
16974
  return button || null;
16920
16975
  }
16921
16976
  makeButton(control, target = null) {
16922
- return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__.makeButton)(this.j, control, target);
16977
+ return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__.makeButton)(this.j, control, target);
16923
16978
  }
16924
16979
  makeSelect(control, target = null) {
16925
- return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__.makeSelect)(this.j, control, target);
16980
+ return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__.makeSelect)(this.j, control, target);
16926
16981
  }
16927
16982
  /**
16928
16983
  * Button should be active
@@ -16965,7 +17020,7 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
16965
17020
  this.appendTo(this.j.toolbarContainer);
16966
17021
  }
16967
17022
  showInline(bound) {
16968
- throw (0,jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_3__.error)('The method is not implemented for this class.');
17023
+ throw (0,jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_7__.error)('The method is not implemented for this class.');
16969
17024
  }
16970
17025
  /** @override **/ build(items, target = null) {
16971
17026
  const itemsWithGroupps = this.j.e.fire('beforeToolbarBuild', items);
@@ -16987,20 +17042,34 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
16987
17042
  }
16988
17043
  }
16989
17044
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
16990
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':afterInit'),
16991
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
17045
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)(':afterInit'),
17046
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
16992
17047
  ], ToolbarCollection.prototype, "__immediateUpdate", null);
16993
17048
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
16994
17049
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)((ctx)=>ctx.j.defaultTimeout, true)
16995
17050
  ], ToolbarCollection.prototype, "update", null);
16996
17051
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
16997
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.hook)('ready')
17052
+ (0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook)('ready')
16998
17053
  ], ToolbarCollection.prototype, "__initEvents", null);
16999
17054
  ToolbarCollection = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
17000
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
17055
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
17001
17056
  ], ToolbarCollection);
17002
17057
 
17003
17058
 
17059
+ /***/ }),
17060
+
17061
+ /***/ 42689:
17062
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17063
+
17064
+ "use strict";
17065
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17066
+ /* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; }
17067
+ /* harmony export */ });
17068
+ /* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93747);
17069
+
17070
+ const eventEmitter = new _event_emitter__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
17071
+
17072
+
17004
17073
  /***/ }),
17005
17074
 
17006
17075
  /***/ 42766:
@@ -20839,12 +20908,10 @@ module.exports = "<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\
20839
20908
  "use strict";
20840
20909
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20841
20910
  /* harmony export */ FiniteStateMachine: function() { return /* reexport safe */ _finite_state_machine__WEBPACK_IMPORTED_MODULE_1__.FiniteStateMachine; },
20842
- /* harmony export */ elementsEqualAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.elementsEqualAttributes; },
20843
20911
  /* harmony export */ extractSelectedPart: function() { return /* reexport safe */ _extract__WEBPACK_IMPORTED_MODULE_0__.extractSelectedPart; },
20844
20912
  /* harmony export */ getSuitChild: function() { return /* reexport safe */ _get_suit_child__WEBPACK_IMPORTED_MODULE_2__.getSuitChild; },
20845
20913
  /* harmony export */ getSuitParent: function() { return /* reexport safe */ _get_suit_parent__WEBPACK_IMPORTED_MODULE_3__.getSuitParent; },
20846
20914
  /* harmony export */ isInsideInvisibleElement: function() { return /* reexport safe */ _is_inside_invisible_element__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement; },
20847
- /* harmony export */ isSameAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.isSameAttributes; },
20848
20915
  /* harmony export */ suitableClosest: function() { return /* reexport safe */ _is_suit_element__WEBPACK_IMPORTED_MODULE_8__.suitableClosest; },
20849
20916
  /* harmony export */ toggleAttributes: function() { return /* reexport safe */ _toggle_attributes__WEBPACK_IMPORTED_MODULE_11__.toggleAttributes; },
20850
20917
  /* harmony export */ toggleOrderedList: function() { return /* reexport safe */ _list_toggle_ordered_list__WEBPACK_IMPORTED_MODULE_9__.toggleOrderedList; },
@@ -21571,14 +21638,17 @@ module.exports["default"] = ["Type something","About Jodit","Jodit Editor","Jodi
21571
21638
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
21572
21639
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
21573
21640
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69364);
21574
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
21575
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
21576
- /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91565);
21577
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
21578
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93640);
21579
- /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96007);
21580
- /* harmony import */ var jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97959);
21581
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29434);
21641
+ /* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51676);
21642
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
21643
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68616);
21644
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23211);
21645
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91565);
21646
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85932);
21647
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
21648
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
21649
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
21650
+ /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96007);
21651
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(29434);
21582
21652
  /*!
21583
21653
  * Jodit Editor (https://xdsoft.net/jodit/)
21584
21654
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21597,6 +21667,8 @@ module.exports["default"] = ["Type something","About Jodit","Jodit Editor","Jodi
21597
21667
 
21598
21668
 
21599
21669
 
21670
+
21671
+
21600
21672
  const UIButtonState = ()=>({
21601
21673
  size: 'middle',
21602
21674
  type: 'button',
@@ -21615,7 +21687,7 @@ const UIButtonState = ()=>({
21615
21687
  text: '',
21616
21688
  tabIndex: undefined
21617
21689
  });
21618
- class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement {
21690
+ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__.UIElement {
21619
21691
  /** @override */ className() {
21620
21692
  return 'UIButton';
21621
21693
  }
@@ -21629,29 +21701,30 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
21629
21701
  * DOM container for text content
21630
21702
  */ get text() {
21631
21703
  const text = this.getElm('text');
21632
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.assert)(text, 'Text element not found');
21704
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(text, 'Text element not found');
21633
21705
  return text;
21634
21706
  }
21635
21707
  /**
21636
21708
  * DOM container for icon
21637
21709
  */ get icon() {
21638
21710
  const icon = this.getElm('icon');
21639
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.assert)(icon, 'Icon element not found');
21711
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(icon, 'Icon element not found');
21640
21712
  return icon;
21641
21713
  }
21642
21714
  onChangeSize() {
21643
21715
  this.setMod('size', this.state.size);
21644
21716
  }
21645
21717
  onChangeType() {
21646
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'type', this.state.type);
21718
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'type', this.state.type);
21647
21719
  }
21648
21720
  onChangeRole() {
21649
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'role', this.state.role);
21721
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'role', this.state.role);
21650
21722
  }
21651
21723
  /**
21652
21724
  * Set size from a parent list
21653
21725
  */ updateSize() {
21654
- const pe = this.closest(jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_9__.UIList);
21726
+ const UIList = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.getComponentClass)('UIList');
21727
+ const pe = this.closest(UIList);
21655
21728
  if (pe) {
21656
21729
  this.state.size = pe.buttonSize;
21657
21730
  return;
@@ -21667,34 +21740,34 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
21667
21740
  this.setMod('text-icons', Boolean(this.state.text.trim().length));
21668
21741
  }
21669
21742
  onChangeDisabled() {
21670
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'disabled', this.state.disabled || null);
21743
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'disabled', this.state.disabled || null);
21671
21744
  }
21672
21745
  onChangeActivated() {
21673
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'aria-pressed', this.state.activated);
21746
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'aria-pressed', this.state.activated);
21674
21747
  }
21675
21748
  onChangeName() {
21676
21749
  this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`);
21677
21750
  this.name = this.state.name;
21678
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'data-ref', this.state.name);
21679
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'ref', this.state.name);
21751
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'data-ref', this.state.name);
21752
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'ref', this.state.name);
21680
21753
  }
21681
21754
  onChangeTooltip() {
21682
21755
  const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
21683
21756
  if (this.get('j.o.useNativeTooltip')) {
21684
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'title', i8nTooltip);
21757
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'title', i8nTooltip);
21685
21758
  }
21686
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'aria-label', i8nTooltip);
21759
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'aria-label', i8nTooltip);
21687
21760
  }
21688
21761
  onChangeTabIndex() {
21689
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'tabindex', this.state.tabIndex);
21762
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'tabindex', this.state.tabIndex);
21690
21763
  }
21691
21764
  onChangeIcon() {
21692
21765
  const textIcons = this.get('j.o.textIcons');
21693
- if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_5__.isFunction)(textIcons) && textIcons(this.state.name)) {
21766
+ if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__.isFunction)(textIcons) && textIcons(this.state.name)) {
21694
21767
  return;
21695
21768
  }
21696
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.detach(this.icon);
21697
- const iconElement = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(this.j, this.state.icon);
21769
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.detach(this.icon);
21770
+ const iconElement = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__.Icon.makeIcon(this.j, this.state.icon);
21698
21771
  iconElement && this.icon.appendChild(iconElement);
21699
21772
  }
21700
21773
  /**
@@ -21706,7 +21779,7 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
21706
21779
  * Element has focus
21707
21780
  */ isFocused() {
21708
21781
  const { activeElement } = this.od;
21709
- return Boolean(activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(this.container, activeElement));
21782
+ return Boolean(activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.container, activeElement));
21710
21783
  }
21711
21784
  /** @override */ createContainer() {
21712
21785
  const cn = this.componentName;
@@ -21760,83 +21833,83 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
21760
21833
  }
21761
21834
  }
21762
21835
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21763
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cache
21836
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cache
21764
21837
  ], UIButton.prototype, "text", null);
21765
21838
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21766
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cache
21839
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cache
21767
21840
  ], UIButton.prototype, "icon", null);
21768
21841
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21769
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.size', {
21842
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.size', {
21770
21843
  immediately: false
21771
21844
  })
21772
21845
  ], UIButton.prototype, "onChangeSize", null);
21773
21846
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21774
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.type', {
21847
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.type', {
21775
21848
  immediately: false
21776
21849
  })
21777
21850
  ], UIButton.prototype, "onChangeType", null);
21778
21851
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21779
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.role', {
21852
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.role', {
21780
21853
  immediately: false
21781
21854
  })
21782
21855
  ], UIButton.prototype, "onChangeRole", null);
21783
21856
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21784
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('parentElement')
21857
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('parentElement')
21785
21858
  ], UIButton.prototype, "updateSize", null);
21786
21859
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21787
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.variant', {
21860
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.variant', {
21788
21861
  immediately: false
21789
21862
  })
21790
21863
  ], UIButton.prototype, "onChangeStatus", null);
21791
21864
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21792
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
21865
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.text', {
21793
21866
  immediately: false
21794
21867
  })
21795
21868
  ], UIButton.prototype, "onChangeText", null);
21796
21869
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21797
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
21870
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.text', {
21798
21871
  immediately: false
21799
21872
  })
21800
21873
  ], UIButton.prototype, "onChangeTextSetMode", null);
21801
21874
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21802
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.disabled')
21875
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.disabled')
21803
21876
  ], UIButton.prototype, "onChangeDisabled", null);
21804
21877
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21805
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.activated')
21878
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.activated')
21806
21879
  ], UIButton.prototype, "onChangeActivated", null);
21807
21880
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21808
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.name', {
21881
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.name', {
21809
21882
  immediately: false
21810
21883
  })
21811
21884
  ], UIButton.prototype, "onChangeName", null);
21812
21885
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21813
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tooltip', {
21886
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.tooltip', {
21814
21887
  immediately: false
21815
21888
  })
21816
21889
  ], UIButton.prototype, "onChangeTooltip", null);
21817
21890
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21818
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tabIndex', {
21891
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.tabIndex', {
21819
21892
  immediately: false
21820
21893
  })
21821
21894
  ], UIButton.prototype, "onChangeTabIndex", null);
21822
21895
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21823
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.icon', {
21896
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.icon', {
21824
21897
  immediately: false
21825
21898
  })
21826
21899
  ], UIButton.prototype, "onChangeIcon", null);
21827
21900
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21828
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
21901
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
21829
21902
  ], UIButton.prototype, "createContainer", null);
21830
21903
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21831
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('button:click')
21904
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('button:click')
21832
21905
  ], UIButton.prototype, "__onActionFire", null);
21833
21906
  UIButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
21834
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
21907
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
21835
21908
  ], UIButton);
21836
21909
  function Button(jodit, stateOrText, text, variant) {
21837
21910
  const button = new UIButton(jodit);
21838
21911
  button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
21839
- if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(stateOrText)) {
21912
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__.isString)(stateOrText)) {
21840
21913
  button.state.icon.name = stateOrText;
21841
21914
  button.state.name = stateOrText;
21842
21915
  if (variant) {
@@ -21870,8 +21943,8 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
21870
21943
  /* harmony export */ });
21871
21944
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
21872
21945
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
21873
- /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16964);
21874
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
21946
+ /* harmony import */ var jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59609);
21947
+ /* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55184);
21875
21948
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
21876
21949
  /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8838);
21877
21950
  /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46363);
@@ -21899,7 +21972,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.history = {
21899
21972
  };
21900
21973
  /**
21901
21974
  * The module monitors the status of the editor and creates / deletes the required number of Undo / Redo shots .
21902
- */ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewComponent {
21975
+ */ class History extends jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_2__.ViewComponent {
21903
21976
  /** @override */ className() {
21904
21977
  return 'History';
21905
21978
  }
@@ -22020,7 +22093,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.history = {
22020
22093
  }
22021
22094
  }
22022
22095
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22023
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.debounce)()
22096
+ (0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce)()
22024
22097
  ], History.prototype, "onChange", null);
22025
22098
 
22026
22099
 
@@ -22363,9 +22436,8 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
22363
22436
  /* harmony export */ init: function() { return /* binding */ init; }
22364
22437
  /* harmony export */ });
22365
22438
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
22366
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
22367
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28686);
22368
- /* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3050);
22439
+ /* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52433);
22440
+ /* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3050);
22369
22441
  /*!
22370
22442
  * Jodit Editor (https://xdsoft.net/jodit/)
22371
22443
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -22375,12 +22447,11 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
22375
22447
  */
22376
22448
 
22377
22449
 
22378
-
22379
22450
  /**
22380
22451
  * Init plugin if it has no dependencies, in another case wait requires plugins will be init
22381
22452
  * @private
22382
- */ function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
22383
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isInitable)(instance)) {
22453
+ */ function init(jodit, pluginName, plugin, instance, doneList, waitingList, getContainer) {
22454
+ if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__.isInitable)(instance)) {
22384
22455
  try {
22385
22456
  instance.init(jodit);
22386
22457
  } catch (e) {
@@ -22393,12 +22464,12 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
22393
22464
  doneList.set(pluginName, instance);
22394
22465
  waitingList.delete(pluginName);
22395
22466
  if (instance.hasStyle) {
22396
- (0,_load__WEBPACK_IMPORTED_MODULE_3__.loadStyle)(jodit, pluginName).catch((e)=>{
22467
+ (0,_load__WEBPACK_IMPORTED_MODULE_2__.loadStyle)(jodit, pluginName).catch((e)=>{
22397
22468
  !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && console.error(e);
22398
22469
  });
22399
22470
  }
22400
22471
  if (instance.styles) {
22401
- const style = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.getContainer)(jodit, pluginName, 'style');
22472
+ const style = getContainer(jodit, pluginName, 'style');
22402
22473
  style.innerHTML = instance.styles;
22403
22474
  }
22404
22475
  }
@@ -23864,16 +23935,10 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
23864
23935
  "use strict";
23865
23936
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23866
23937
  /* harmony export */ CommitStyle: function() { return /* reexport safe */ _style_commit_style__WEBPACK_IMPORTED_MODULE_1__.CommitStyle; },
23867
- /* harmony export */ INITIAL: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.INITIAL; },
23868
- /* harmony export */ REPLACE: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.REPLACE; },
23869
- /* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; },
23870
- /* harmony export */ UNSET: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNSET; },
23871
- /* harmony export */ UNWRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNWRAP; },
23872
- /* harmony export */ WRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.WRAP; }
23938
+ /* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; }
23873
23939
  /* harmony export */ });
23874
23940
  /* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98595);
23875
23941
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84578);
23876
- /* harmony import */ var _style_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98394);
23877
23942
  /*!
23878
23943
  * Jodit Editor (https://xdsoft.net/jodit/)
23879
23944
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -24248,14 +24313,15 @@ __webpack_require__.r(__webpack_exports__);
24248
24313
 
24249
24314
  "use strict";
24250
24315
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
24251
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93640);
24252
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29434);
24253
- /* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31125);
24254
- /* harmony import */ var jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18272);
24255
- /* harmony import */ var jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1305);
24256
- /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(53202);
24257
- /* harmony import */ var jodit_modules_file_browser_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(34269);
24258
- /* harmony import */ var jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43271);
24316
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7909);
24317
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33201);
24318
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29434);
24319
+ /* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31125);
24320
+ /* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66206);
24321
+ /* harmony import */ var jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18272);
24322
+ /* harmony import */ var jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1305);
24323
+ /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53202);
24324
+ /* harmony import */ var jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43271);
24259
24325
  /*!
24260
24326
  * Jodit Editor (https://xdsoft.net/jodit/)
24261
24327
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -24271,21 +24337,22 @@ __webpack_require__.r(__webpack_exports__);
24271
24337
 
24272
24338
 
24273
24339
 
24274
- const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = 'next', right = 'right')=>`<div class="${CLASS_PREVIEW}__navigation ${CLASS_PREVIEW}__navigation_arrow_${next}">` + '' + jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__.Icon.get('angle-' + right) + '</a>';
24340
+
24341
+ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = 'next', right = 'right')=>`<div class="${CLASS_PREVIEW}__navigation ${CLASS_PREVIEW}__navigation_arrow_${next}">` + '' + jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__.Icon.get('angle-' + right) + '</a>';
24275
24342
  /* harmony default export */ __webpack_exports__["default"] = ((self)=>{
24276
24343
  if (!self.o.contextMenu) {
24277
24344
  return ()=>{};
24278
24345
  }
24279
- const contextmenu = (0,jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_4__.makeContextMenu)(self);
24346
+ const contextmenu = (0,jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_6__.makeContextMenu)(self);
24280
24347
  return (e)=>{
24281
- const a = (0,jodit_modules_file_browser_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_7__.getItem)(e.target, self.container);
24348
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
24282
24349
  if (!a) {
24283
24350
  return;
24284
24351
  }
24285
24352
  let item = a;
24286
- const opt = self.options, ga = (key)=>(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(item, key) || '';
24353
+ const opt = self.options, ga = (key)=>(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__.attr)(item, key) || '';
24287
24354
  self.async.setTimeout(()=>{
24288
- const selectedItem = (0,jodit_modules_file_browser_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_7__.elementToItem)(a, (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__.elementsMap)(self));
24355
+ const selectedItem = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.elementToItem)(a, (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_4__.elementsMap)(self));
24289
24356
  if (!selectedItem) {
24290
24357
  return;
24291
24358
  }
@@ -24296,7 +24363,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
24296
24363
  ga('data-is-file') !== '1' && opt.editImage && (self.dataProvider.canI('ImageResize') || self.dataProvider.canI('ImageCrop')) ? {
24297
24364
  icon: 'pencil',
24298
24365
  title: 'Edit',
24299
- exec: ()=>jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_8__.openImageEditor.call(self, ga('href'), ga('data-name'), ga('data-path'), ga('data-source'))
24366
+ exec: ()=>jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_9__.openImageEditor.call(self, ga('href'), ga('data-name'), ga('data-path'), ga('data-source'))
24300
24367
  } : false,
24301
24368
  self.dataProvider.canI('FileRename') ? {
24302
24369
  icon: 'italic',
@@ -24310,12 +24377,12 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
24310
24377
  title: 'Delete',
24311
24378
  exec: async ()=>{
24312
24379
  try {
24313
- await (0,jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_5__.deleteFile)(self, ga('data-name'), ga('data-source'));
24380
+ await (0,jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_7__.deleteFile)(self, ga('data-name'), ga('data-source'));
24314
24381
  } catch (e) {
24315
24382
  return self.status(e);
24316
24383
  }
24317
24384
  self.state.activeElements = [];
24318
- return (0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_6__.loadTree)(self).catch(self.status);
24385
+ return (0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_8__.loadTree)(self).catch(self.status);
24319
24386
  }
24320
24387
  } : false,
24321
24388
  opt.preview ? {
@@ -24364,7 +24431,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
24364
24431
  item = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'));
24365
24432
  }
24366
24433
  if (!item) {
24367
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.error)('Need element');
24434
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__.error)('Need element');
24368
24435
  }
24369
24436
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
24370
24437
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(preview_box);
@@ -26069,6 +26136,29 @@ __webpack_require__.r(__webpack_exports__);
26069
26136
 
26070
26137
 
26071
26138
 
26139
+ /***/ }),
26140
+
26141
+ /***/ 66206:
26142
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
26143
+
26144
+ "use strict";
26145
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26146
+ /* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
26147
+ /* harmony export */ getItem: function() { return /* binding */ getItem; }
26148
+ /* harmony export */ });
26149
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
26150
+
26151
+ /**
26152
+ * @private
26153
+ */ const getItem = (node, root, tag = 'a')=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, (elm)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag), root);
26154
+ /**
26155
+ * @private
26156
+ */ const elementToItem = (elm, elementsMap)=>{
26157
+ const { key } = elm.dataset, { item } = elementsMap[key || ''];
26158
+ return item;
26159
+ };
26160
+
26161
+
26072
26162
  /***/ }),
26073
26163
 
26074
26164
  /***/ 66547:
@@ -26664,7 +26754,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.filebrowser
26664
26754
 
26665
26755
  "use strict";
26666
26756
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26667
- /* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
26668
26757
  /* harmony export */ watch: function() { return /* binding */ watch; }
26669
26758
  /* harmony export */ });
26670
26759
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69364);
@@ -26674,6 +26763,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.filebrowser
26674
26763
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62101);
26675
26764
  /* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31534);
26676
26765
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33201);
26766
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71125);
26677
26767
  /*!
26678
26768
  * Jodit Editor (https://xdsoft.net/jodit/)
26679
26769
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26689,14 +26779,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.filebrowser
26689
26779
 
26690
26780
 
26691
26781
 
26692
- function getPropertyDescriptor(obj, prop) {
26693
- let desc;
26694
- do {
26695
- desc = Object.getOwnPropertyDescriptor(obj, prop);
26696
- obj = Object.getPrototypeOf(obj);
26697
- }while (!desc && obj)
26698
- return desc;
26699
- }
26782
+
26700
26783
  /**
26701
26784
  * Watch decorator. Added observer for some change in field value
26702
26785
  */ function watch(observeFields, opts) {
@@ -26742,7 +26825,7 @@ function getPropertyDescriptor(obj, prop) {
26742
26825
  const observableValue = (0,jodit_core_event_emitter_observable__WEBPACK_IMPORTED_MODULE_1__.observable)(value);
26743
26826
  observableValue.on(`change.${teil.join('.')}`, callback);
26744
26827
  }
26745
- const descriptor = getPropertyDescriptor(target, key);
26828
+ const descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_7__.getPropertyDescriptor)(target, key);
26746
26829
  Object.defineProperty(component, key, {
26747
26830
  configurable: true,
26748
26831
  set (v) {
@@ -27507,10 +27590,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('fullsize', full
27507
27590
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27508
27591
  /* harmony export */ observable: function() { return /* binding */ observable; }
27509
27592
  /* harmony export */ });
27510
- /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68616);
27511
- /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17312);
27512
- /* harmony import */ var jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94013);
27513
- /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62101);
27593
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
27594
+ /* harmony import */ var jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94013);
27595
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62101);
27596
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71125);
27514
27597
  /*!
27515
27598
  * Jodit Editor (https://xdsoft.net/jodit/)
27516
27599
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27566,7 +27649,7 @@ function isObservableObject(obj) {
27566
27649
  const __lockEvent = {};
27567
27650
  const __onEvents = {};
27568
27651
  const on = (event, callback)=>{
27569
- if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__.isArray)(event)) {
27652
+ if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
27570
27653
  event.map((e)=>on(e, callback));
27571
27654
  return obj;
27572
27655
  }
@@ -27577,7 +27660,7 @@ function isObservableObject(obj) {
27577
27660
  return obj;
27578
27661
  };
27579
27662
  const fire = (event, ...attr)=>{
27580
- if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__.isArray)(event)) {
27663
+ if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
27581
27664
  event.map((e)=>fire(e, ...attr));
27582
27665
  return;
27583
27666
  }
@@ -27603,16 +27686,16 @@ function isObservableObject(obj) {
27603
27686
  const key = _key;
27604
27687
  const prefix = prefixes.concat(key).filter((a)=>a.length);
27605
27688
  store[key] = dict[key];
27606
- const descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__.getPropertyDescriptor)(dict, key);
27689
+ const descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__.getPropertyDescriptor)(dict, key);
27607
27690
  Object.defineProperty(dict, key, {
27608
27691
  set: (value)=>{
27609
27692
  const oldValue = store[key];
27610
- if (!(0,jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_2__.isFastEqual)(store[key], value)) {
27693
+ if (!(0,jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_1__.isFastEqual)(store[key], value)) {
27611
27694
  fire([
27612
27695
  'beforeChange',
27613
27696
  `beforeChange.${prefix.join('.')}`
27614
27697
  ], key, value);
27615
- if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value)) {
27698
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(value)) {
27616
27699
  initAccessors(value, prefix);
27617
27700
  }
27618
27701
  if (descriptor && descriptor.set) {
@@ -27640,7 +27723,7 @@ function isObservableObject(obj) {
27640
27723
  enumerable: true,
27641
27724
  configurable: true
27642
27725
  });
27643
- if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(store[key])) {
27726
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(store[key])) {
27644
27727
  initAccessors(store[key], prefix);
27645
27728
  }
27646
27729
  });
@@ -27684,6 +27767,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
27684
27767
  /* harmony export */ call: function() { return /* binding */ call; },
27685
27768
  /* harmony export */ callPromise: function() { return /* binding */ callPromise; },
27686
27769
  /* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
27770
+ /* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
27687
27771
  /* harmony export */ keys: function() { return /* binding */ keys; },
27688
27772
  /* harmony export */ loadImage: function() { return /* binding */ loadImage; },
27689
27773
  /* harmony export */ markOwner: function() { return /* binding */ markOwner; },
@@ -27780,6 +27864,14 @@ const keys = (obj, own = true)=>{
27780
27864
  return null;
27781
27865
  }
27782
27866
  };
27867
+ function getPropertyDescriptor(obj, prop) {
27868
+ let desc;
27869
+ do {
27870
+ desc = Object.getOwnPropertyDescriptor(obj, prop);
27871
+ obj = Object.getPrototypeOf(obj);
27872
+ }while (!desc && obj)
27873
+ return desc;
27874
+ }
27783
27875
 
27784
27876
 
27785
27877
  /***/ }),
@@ -31707,8 +31799,8 @@ function send(uploader, data) {
31707
31799
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
31708
31800
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
31709
31801
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
31710
- /* harmony import */ var jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(59841);
31711
- /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51640);
31802
+ /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51640);
31803
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98394);
31712
31804
  /*!
31713
31805
  * Jodit Editor (https://xdsoft.net/jodit/)
31714
31806
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -31737,13 +31829,13 @@ const transactions = {
31737
31829
  [states.START]: {
31738
31830
  exec (value) {
31739
31831
  const { element, jodit, style, mode, collapsed } = value;
31740
- if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.isInsideInvisibleElement)(element, jodit.editor) || !collapsed && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyContent(element)) {
31832
+ if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.isInsideInvisibleElement)(element, jodit.editor) || !collapsed && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyContent(element)) {
31741
31833
  return {
31742
31834
  ...value,
31743
31835
  next: states.END
31744
31836
  };
31745
31837
  }
31746
- const elm = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.getSuitParent)(style, element, jodit.editor) || (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.getSuitChild)(style, element);
31838
+ const elm = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.getSuitParent)(style, element, jodit.editor) || (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.getSuitChild)(style, element);
31747
31839
  if (elm) {
31748
31840
  return {
31749
31841
  ...value,
@@ -31751,7 +31843,7 @@ const transactions = {
31751
31843
  element: elm
31752
31844
  };
31753
31845
  }
31754
- const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.suitableClosest)(style, element, jodit.editor);
31846
+ const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
31755
31847
  if (style.elementIsList && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(suit)) {
31756
31848
  return {
31757
31849
  ...value,
@@ -31766,14 +31858,14 @@ const transactions = {
31766
31858
  }
31767
31859
  return {
31768
31860
  ...value,
31769
- next: mode !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
31861
+ next: mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
31770
31862
  };
31771
31863
  }
31772
31864
  },
31773
31865
  [states.LIST]: {
31774
31866
  exec (value) {
31775
31867
  const { element, jodit, mode } = value;
31776
- if (mode !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.INITIAL && mode !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP && mode !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.REPLACE) {
31868
+ if (mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.INITIAL && mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP && mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.REPLACE) {
31777
31869
  return {
31778
31870
  ...value,
31779
31871
  next: states.END
@@ -31804,7 +31896,7 @@ const transactions = {
31804
31896
  exec (value) {
31805
31897
  return {
31806
31898
  ...value,
31807
- mode: (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
31899
+ mode: (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
31808
31900
  next: states.END
31809
31901
  };
31810
31902
  }
@@ -31812,14 +31904,14 @@ const transactions = {
31812
31904
  [states.EXTRACT]: {
31813
31905
  exec (value) {
31814
31906
  const { element, jodit, style } = value;
31815
- const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.suitableClosest)(style, element, jodit.editor);
31907
+ const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
31816
31908
  (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__.assert)(suit, 'This place should have an element');
31817
31909
  // If we're applying inline styles to a block element, don't split the block
31818
31910
  const isApplyingInlineStyle = !style.elementIsBlock && style.options.attributes?.style;
31819
31911
  const shouldNotSplitBlock = isApplyingInlineStyle && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(suit);
31820
31912
  if (!shouldNotSplitBlock) {
31821
31913
  if (!style.elementIsBlock) {
31822
- (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.extractSelectedPart)(suit, element, jodit);
31914
+ (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.extractSelectedPart)(suit, element, jodit);
31823
31915
  }
31824
31916
  return {
31825
31917
  ...value,
@@ -31837,7 +31929,7 @@ const transactions = {
31837
31929
  [states.UNWRAP_CHILDREN]: {
31838
31930
  exec (value) {
31839
31931
  const { element, style } = value;
31840
- if (!(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.unwrapChildren)(style, element)) {
31932
+ if (!(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.unwrapChildren)(style, element)) {
31841
31933
  return {
31842
31934
  ...value,
31843
31935
  next: states.WRAP
@@ -31845,7 +31937,7 @@ const transactions = {
31845
31937
  }
31846
31938
  return {
31847
31939
  ...value,
31848
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP,
31940
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
31849
31941
  next: states.END
31850
31942
  };
31851
31943
  }
@@ -31853,11 +31945,11 @@ const transactions = {
31853
31945
  [states.WRAP]: {
31854
31946
  exec (value) {
31855
31947
  const { element, jodit, style } = value;
31856
- const wrapper = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.wrap)(style, element, jodit);
31948
+ const wrapper = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.wrap)(style, element, jodit);
31857
31949
  return {
31858
31950
  ...value,
31859
31951
  next: style.elementIsList ? states.END : states.CHANGE,
31860
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.WRAP,
31952
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.WRAP,
31861
31953
  element: wrapper
31862
31954
  };
31863
31955
  }
@@ -31865,7 +31957,7 @@ const transactions = {
31865
31957
  [states.ELEMENT]: {
31866
31958
  exec (value) {
31867
31959
  const { style, element, jodit } = value;
31868
- if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.toggleAttributes)(style, element, jodit, jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.INITIAL, true) !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.INITIAL) {
31960
+ if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.toggleAttributes)(style, element, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.INITIAL, true) !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.INITIAL) {
31869
31961
  return {
31870
31962
  ...value,
31871
31963
  next: states.CHANGE
@@ -31887,8 +31979,8 @@ const transactions = {
31887
31979
  [states.CHANGE]: {
31888
31980
  exec (value) {
31889
31981
  const { style, element, jodit, mode } = value;
31890
- const newMode = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.toggleAttributes)(style, element, jodit, value.mode);
31891
- if (mode !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.WRAP && newMode === jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNSET && !element.attributes.length && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(element, style.element)) {
31982
+ const newMode = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.toggleAttributes)(style, element, jodit, value.mode);
31983
+ if (mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.WRAP && newMode === jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNSET && !element.attributes.length && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(element, style.element)) {
31892
31984
  return {
31893
31985
  ...value,
31894
31986
  next: states.UNWRAP
@@ -31912,7 +32004,7 @@ const transactions = {
31912
32004
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(value.element);
31913
32005
  return {
31914
32006
  ...value,
31915
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP,
32007
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
31916
32008
  next: states.END
31917
32009
  };
31918
32010
  }
@@ -31922,7 +32014,7 @@ const transactions = {
31922
32014
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.replace(value.element, value.style.defaultTag, value.jodit.createInside, true);
31923
32015
  return {
31924
32016
  ...value,
31925
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.REPLACE,
32017
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.REPLACE,
31926
32018
  next: states.END
31927
32019
  };
31928
32020
  }
@@ -33172,7 +33264,7 @@ __webpack_require__.r(__webpack_exports__);
33172
33264
  * ```
33173
33265
  * @packageDocumentation
33174
33266
  * @module constants
33175
- */ const APP_VERSION = "4.8.9";
33267
+ */ const APP_VERSION = "4.9.4";
33176
33268
  // prettier-ignore
33177
33269
  const ES = "es2021";
33178
33270
  const IS_ES_MODERN = true;
@@ -33985,7 +34077,7 @@ __webpack_require__.r(__webpack_exports__);
33985
34077
  /* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.component; },
33986
34078
  /* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce; },
33987
34079
  /* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.derive; },
33988
- /* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.getPropertyDescriptor; },
34080
+ /* harmony export */ getComponentClass: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.getComponentClass; },
33989
34081
  /* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook; },
33990
34082
  /* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.idle; },
33991
34083
  /* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.nonenumerable; },
@@ -34037,13 +34129,15 @@ __webpack_require__.r(__webpack_exports__);
34037
34129
  /* harmony export */ });
34038
34130
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
34039
34131
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
34040
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
34041
- /* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45664);
34042
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28686);
34043
- /* harmony import */ var jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55810);
34044
- /* harmony import */ var jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3050);
34045
- /* harmony import */ var jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(25974);
34046
- /* harmony import */ var jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(86189);
34132
+ /* harmony import */ var jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42689);
34133
+ /* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32328);
34134
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17312);
34135
+ /* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52433);
34136
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
34137
+ /* harmony import */ var jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(55810);
34138
+ /* harmony import */ var jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3050);
34139
+ /* harmony import */ var jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25974);
34140
+ /* harmony import */ var jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(86189);
34047
34141
  /*!
34048
34142
  * Jodit Editor (https://xdsoft.net/jodit/)
34049
34143
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34060,6 +34154,8 @@ __webpack_require__.r(__webpack_exports__);
34060
34154
 
34061
34155
 
34062
34156
 
34157
+
34158
+
34063
34159
  /**
34064
34160
  * Jodit plugin system
34065
34161
  * @example
@@ -34078,18 +34174,18 @@ __webpack_require__.r(__webpack_exports__);
34078
34174
  /**
34079
34175
  * Add plugin in store
34080
34176
  */ add(name, plugin) {
34081
- this.__items.set((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName)(name), plugin);
34082
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.fire(`plugin:${name}:ready`);
34177
+ this.__items.set((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name), plugin);
34178
+ jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.fire(`plugin:${name}:ready`);
34083
34179
  }
34084
34180
  /**
34085
34181
  * Get plugin from store
34086
34182
  */ get(name) {
34087
- return this.__items.get((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName)(name));
34183
+ return this.__items.get((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name));
34088
34184
  }
34089
34185
  /**
34090
34186
  * Remove plugin from store
34091
34187
  */ remove(name) {
34092
- this.__items.delete((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName)(name));
34188
+ this.__items.delete((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name));
34093
34189
  }
34094
34190
  __getFullPluginsList(filter) {
34095
34191
  const results = [];
@@ -34121,7 +34217,7 @@ __webpack_require__.r(__webpack_exports__);
34121
34217
  return;
34122
34218
  }
34123
34219
  const requires = plugin?.requires;
34124
- if (requires && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isArray)(requires) && requires.length) {
34220
+ if (requires && (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_4__.isArray)(requires) && requires.length) {
34125
34221
  if (requires.some((req)=>disableList.has(req))) {
34126
34222
  return;
34127
34223
  }
@@ -34131,13 +34227,13 @@ __webpack_require__.r(__webpack_exports__);
34131
34227
  }
34132
34228
  }
34133
34229
  commit = true;
34134
- const instance = (0,jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_7__.makeInstance)(jodit, plugin);
34230
+ const instance = (0,jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_9__.makeInstance)(jodit, plugin);
34135
34231
  if (!instance) {
34136
34232
  doneList.set(name, null);
34137
34233
  waitingList.delete(name);
34138
34234
  return;
34139
34235
  }
34140
- (0,jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_5__.init)(jodit, name, plugin, instance, doneList, waitingList);
34236
+ (0,jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_7__.init)(jodit, name, plugin, instance, doneList, waitingList, this.opts.getContainer);
34141
34237
  pluginsMap[name] = instance;
34142
34238
  });
34143
34239
  if (commit) {
@@ -34146,7 +34242,7 @@ __webpack_require__.r(__webpack_exports__);
34146
34242
  }
34147
34243
  };
34148
34244
  if (extraList && extraList.length) {
34149
- (0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_6__.loadExtras)(this.__items, jodit, extraList, initPlugins);
34245
+ (0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_8__.loadExtras)(this.__items, jodit, extraList, initPlugins);
34150
34246
  }
34151
34247
  initPlugins();
34152
34248
  bindOnBeforeDestruct(jodit, pluginsMap);
@@ -34163,13 +34259,16 @@ __webpack_require__.r(__webpack_exports__);
34163
34259
  }
34164
34260
  const onReady = ()=>{
34165
34261
  resolve();
34166
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.off(`plugin:${name}:ready`, onReady);
34262
+ jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.off(`plugin:${name}:ready`, onReady);
34167
34263
  };
34168
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.on(`plugin:${name}:ready`, onReady);
34264
+ jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.on(`plugin:${name}:ready`, onReady);
34169
34265
  });
34170
34266
  }
34171
- constructor(){
34172
- (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__items", new Map());
34267
+ constructor(opts){
34268
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "opts", void 0);
34269
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__items", void 0);
34270
+ this.opts = opts;
34271
+ this.__items = new Map();
34173
34272
  }
34174
34273
  }
34175
34274
  /**
@@ -34178,7 +34277,7 @@ __webpack_require__.r(__webpack_exports__);
34178
34277
  jodit.e.on('beforeDestruct', ()=>{
34179
34278
  Object.keys(plugins).forEach((name)=>{
34180
34279
  const instance = plugins[name];
34181
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isDestructable)(instance)) {
34280
+ if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_5__.isDestructable)(instance)) {
34182
34281
  instance.destruct(jodit);
34183
34282
  }
34184
34283
  delete plugins[name];
@@ -34187,10 +34286,10 @@ __webpack_require__.r(__webpack_exports__);
34187
34286
  });
34188
34287
  }
34189
34288
  function getSpecialLists(jodit) {
34190
- const extraList = jodit.o.extraPlugins.map((s)=>(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isString)(s) ? {
34289
+ const extraList = jodit.o.extraPlugins.map((s)=>(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(s) ? {
34191
34290
  name: s
34192
34291
  } : s);
34193
- const disableList = new Set((0,jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__.splitArray)(jodit.o.disablePlugins).map(jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName));
34292
+ const disableList = new Set((0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_3__.splitArray)(jodit.o.disablePlugins).map(jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName));
34194
34293
  const filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
34195
34294
  return {
34196
34295
  extraList,
@@ -36356,17 +36455,19 @@ __webpack_require__.r(__webpack_exports__);
36356
36455
 
36357
36456
  "use strict";
36358
36457
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
36359
- /* harmony export */ component: function() { return /* binding */ component; }
36458
+ /* harmony export */ component: function() { return /* binding */ component; },
36459
+ /* harmony export */ getComponentClass: function() { return /* binding */ getComponentClass; }
36360
36460
  /* harmony export */ });
36461
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
36462
+ /* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(421);
36361
36463
  /*!
36362
36464
  * Jodit Editor (https://xdsoft.net/jodit/)
36363
36465
  * Released under MIT see LICENSE.txt in the project root for license information.
36364
36466
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
36365
- */ /**
36366
- * [[include:core/decorators/component/README.md]]
36367
- * @packageDocumentation
36368
- * @module decorators/component
36369
- */ /**
36467
+ */
36468
+
36469
+ const componentRegistry = new Map();
36470
+ /**
36370
36471
  * Decorate components and set status isReady after constructor
36371
36472
  * @param constructorFunction - Component constructor class
36372
36473
  */ function component(constructorFunction) {
@@ -36385,8 +36486,16 @@ __webpack_require__.r(__webpack_exports__);
36385
36486
  }
36386
36487
  }
36387
36488
  }
36489
+ const name = (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
36490
+ if (componentRegistry.has(name) && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
36491
+ throw new Error(`Component with name "${name}" is already registered`);
36492
+ }
36493
+ componentRegistry.set(name, newConstructorFunction);
36388
36494
  return newConstructorFunction;
36389
36495
  }
36496
+ function getComponentClass(name) {
36497
+ return componentRegistry.get(name);
36498
+ }
36390
36499
 
36391
36500
 
36392
36501
  /***/ }),
@@ -36809,11 +36918,11 @@ __webpack_require__.r(__webpack_exports__);
36809
36918
  /* harmony export */ get: function() { return /* reexport safe */ _get__WEBPACK_IMPORTED_MODULE_15__.get; },
36810
36919
  /* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
36811
36920
  /* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getDataTransfer; },
36921
+ /* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getPropertyDescriptor; },
36812
36922
  /* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.getXPathByElement; },
36813
36923
  /* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
36814
36924
  /* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
36815
36925
  /* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_22__.inView; },
36816
- /* harmony export */ isAbort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.isAbort; },
36817
36926
  /* harmony export */ isAtom: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
36818
36927
  /* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
36819
36928
  /* harmony export */ keys: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.keys; },
@@ -37548,7 +37657,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
37548
37657
  }), i = editor.i18n.bind(editor);
37549
37658
  dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent(`<div class="jodit-about">
37550
37659
  <div>${i('Jodit Editor')} v.${editor.getVersion()}</div>
37551
- <div>${i('License: %s', !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? 'MIT' : (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license))}</div>
37660
+ <div>${i('License: %s', !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? editor.o.license || 'MIT' : (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license))}</div>
37552
37661
  <div>
37553
37662
  <a href="${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}" target="_blank">${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}</a>
37554
37663
  </div>
@@ -37556,7 +37665,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
37556
37665
  <a href="https://xdsoft.net/jodit/docs/" target="_blank">${i("Jodit User's Guide")}</a>
37557
37666
  ${i('contains detailed help for using')}
37558
37667
  </div>
37559
- <div>${i('Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.')}</div>
37668
+ <div>${i('Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.')}</div>
37560
37669
  </div>`);
37561
37670
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.css)(dialog.dialog, {
37562
37671
  minHeight: 200,
@@ -38928,9 +39037,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
38928
39037
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38929
39038
  /* harmony export */ wrapList: function() { return /* binding */ wrapList; }
38930
39039
  /* harmony export */ });
38931
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
38932
- /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51640);
38933
- /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98394);
39040
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
39041
+ /* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95971);
39042
+ /* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82794);
39043
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98394);
38934
39044
  /*!
38935
39045
  * Jodit Editor (https://xdsoft.net/jodit/)
38936
39046
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38938,32 +39048,33 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
38938
39048
  */
38939
39049
 
38940
39050
 
39051
+
38941
39052
  /**
38942
39053
  * Replaces non-leaf items with leaf items and either creates a new list or
38943
39054
  * adds a new item to the nearest old list
38944
39055
  * @private
38945
39056
  */ function wrapList(commitStyle, wrapper, jodit) {
38946
- const result = jodit.e.fire(`${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__._PREFIX}BeforeWrapList`, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__.REPLACE, wrapper, commitStyle);
38947
- const newWrapper = result ?? jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
39057
+ const result = jodit.e.fire(`${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__._PREFIX}BeforeWrapList`, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.REPLACE, wrapper, commitStyle);
39058
+ const newWrapper = result ?? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
38948
39059
  const prev = newWrapper.previousElementSibling;
38949
39060
  const next = newWrapper.nextElementSibling;
38950
- let list = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
38951
- list ??= jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
38952
- if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(list) || !(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__.isSameAttributes)(list, commitStyle.options.attributes)) {
39061
+ let list = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
39062
+ list ??= jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
39063
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(list) || !(0,jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__.isSameAttributes)(list, commitStyle.options.attributes)) {
38953
39064
  list = jodit.createInside.element(commitStyle.element);
38954
- (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__.toggleAttributes)(commitStyle, list, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__.INITIAL);
38955
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
39065
+ (0,jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__.toggleAttributes)(commitStyle, list, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.INITIAL);
39066
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
38956
39067
  }
38957
39068
  if (prev === list) {
38958
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
39069
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
38959
39070
  } else {
38960
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
39071
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
38961
39072
  }
38962
- if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(list.nextElementSibling, commitStyle.element) && (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__.elementsEqualAttributes)(list, list.nextElementSibling)) {
38963
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
38964
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
39073
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(list.nextElementSibling, commitStyle.element) && (0,jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__.elementsEqualAttributes)(list, list.nextElementSibling)) {
39074
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
39075
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
38965
39076
  }
38966
- jodit.e.fire(`${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__._PREFIX}AfterWrapList`, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__.WRAP, list, commitStyle);
39077
+ jodit.e.fire(`${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__._PREFIX}AfterWrapList`, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.WRAP, list, commitStyle);
38967
39078
  return list;
38968
39079
  }
38969
39080
 
@@ -39056,15 +39167,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
39056
39167
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
39057
39168
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
39058
39169
  /* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80251);
39059
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
39060
- /* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32328);
39061
- /* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53681);
39062
- /* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63468);
39063
- /* harmony import */ var jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35676);
39064
- /* harmony import */ var jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27987);
39065
- /* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2496);
39066
- /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(15982);
39067
- /* harmony import */ var jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(40253);
39170
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91672);
39171
+ /* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29200);
39172
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68616);
39173
+ /* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32328);
39174
+ /* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53681);
39175
+ /* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(63468);
39176
+ /* harmony import */ var jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35676);
39177
+ /* harmony import */ var jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27987);
39178
+ /* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2496);
39179
+ /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(15982);
39180
+ /* harmony import */ var jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(40253);
39068
39181
  /*!
39069
39182
  * Jodit Editor (https://xdsoft.net/jodit/)
39070
39183
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39084,7 +39197,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
39084
39197
 
39085
39198
 
39086
39199
 
39087
- class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGroup {
39200
+
39201
+
39202
+ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__.UIGroup {
39088
39203
  /** @override */ className() {
39089
39204
  return 'UIList';
39090
39205
  }
@@ -39094,24 +39209,24 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
39094
39209
  /**
39095
39210
  * Make new group and append it in list of elements
39096
39211
  */ makeGroup() {
39097
- return new jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit);
39212
+ return new jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__.UIGroup(this.jodit);
39098
39213
  }
39099
39214
  /**
39100
39215
  * All buttons from list
39101
39216
  */ get buttons() {
39102
- return this.allChildren.filter((elm)=>jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(elm, jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__.UIButton));
39217
+ return this.allChildren.filter((elm)=>jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(elm, jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton));
39103
39218
  }
39104
39219
  /**
39105
39220
  * Helper for getting full plain button list
39106
39221
  */ getButtonsNames() {
39107
- return this.buttons.map((a)=>a instanceof jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__.UIButton && a.state.name || '').filter((a)=>a !== '');
39222
+ return this.buttons.map((a)=>a instanceof jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton && a.state.name || '').filter((a)=>a !== '');
39108
39223
  }
39109
39224
  setRemoveButtons(removeButtons) {
39110
39225
  this.removeButtons = removeButtons || [];
39111
39226
  return this;
39112
39227
  }
39113
39228
  build(items, target = null) {
39114
- items = (0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_4__.splitArray)(items);
39229
+ items = (0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__.splitArray)(items);
39115
39230
  this.clear();
39116
39231
  let lastBtnSeparator = false;
39117
39232
  let line = this.makeGroup();
@@ -39131,13 +39246,13 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
39131
39246
  case '|':
39132
39247
  if (!lastBtnSeparator) {
39133
39248
  lastBtnSeparator = true;
39134
- elm = new jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_7__.UISeparator(this.j);
39249
+ elm = new jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_9__.UISeparator(this.j);
39135
39250
  }
39136
39251
  break;
39137
39252
  case '---':
39138
39253
  {
39139
39254
  group.setMod('before-spacer', true);
39140
- const space = new jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_8__.UISpacer(this.j);
39255
+ const space = new jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_10__.UISpacer(this.j);
39141
39256
  line.append(space);
39142
39257
  group = this.makeGroup();
39143
39258
  line.append(group);
@@ -39165,20 +39280,20 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
39165
39280
  };
39166
39281
  const isNotRemoved = (b)=>!this.removeButtons.includes(b.name) && (!b.isVisible || b.isVisible?.(this.j, b));
39167
39282
  items.forEach((item)=>{
39168
- if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__.isButtonGroup)(item)) {
39283
+ if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_11__.isButtonGroup)(item)) {
39169
39284
  const buttons = item.buttons.filter((b)=>b);
39170
39285
  if (buttons.length) {
39171
39286
  group = this.makeGroup();
39172
39287
  group.setMod('separated', true).setMod('group', item.group);
39173
39288
  line.append(group);
39174
- (0,jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_11__.getStrongControlTypes)(buttons, this.j.o.controls).filter(isNotRemoved).forEach(addButton);
39289
+ (0,jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_13__.getStrongControlTypes)(buttons, this.j.o.controls).filter(isNotRemoved).forEach(addButton);
39175
39290
  }
39176
39291
  } else {
39177
39292
  if (!group) {
39178
39293
  group = this.makeGroup();
39179
39294
  line.append(group);
39180
39295
  }
39181
- const control = (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_10__.getControlType)(item, this.j.o.controls);
39296
+ const control = (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_12__.getControlType)(item, this.j.o.controls);
39182
39297
  isNotRemoved(control) && addButton(control);
39183
39298
  }
39184
39299
  });
@@ -39191,20 +39306,20 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
39191
39306
  /**
39192
39307
  * Create button instance
39193
39308
  */ makeButton(control, target) {
39194
- return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__.UIButton(this.j, {
39309
+ return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton(this.j, {
39195
39310
  name: control.name
39196
39311
  });
39197
39312
  }
39198
- constructor(jodit){
39199
- super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mode", 'horizontal'), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "removeButtons", []);
39313
+ constructor(...args){
39314
+ super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mode", 'horizontal'), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "removeButtons", []);
39200
39315
  }
39201
39316
  }
39202
39317
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
39203
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('mode'),
39204
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.hook)('ready')
39318
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('mode'),
39319
+ (0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_4__.hook)('ready')
39205
39320
  ], UIList.prototype, "__onChangeMode", null);
39206
39321
  UIList = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
39207
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
39322
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_3__.component
39208
39323
  ], UIList);
39209
39324
 
39210
39325