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
package/es2021/jodit.js CHANGED
@@ -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
  */
@@ -213,7 +213,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
213
213
  /* harmony export */ });
214
214
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
215
215
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
216
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
216
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49574);
217
217
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
218
218
  /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60216);
219
219
  /*!
@@ -301,7 +301,7 @@ class LazyWalker extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MOD
301
301
  }
302
302
  }
303
303
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
304
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
304
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
305
305
  ], LazyWalker.prototype, "__workPerform", null);
306
306
 
307
307
 
@@ -1818,12 +1818,9 @@ function trimChars(value, chars) {
1818
1818
  /* harmony export */ makeCollection: function() { return /* binding */ makeCollection; },
1819
1819
  /* harmony export */ makeSelect: function() { return /* binding */ makeSelect; }
1820
1820
  /* harmony export */ });
1821
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
1822
- /* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22533);
1823
- /* harmony import */ var _button_content__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5772);
1824
- /* harmony import */ var _button_select_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61764);
1825
- /* harmony import */ var _collection_collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42573);
1826
- /* harmony import */ var _collection_editor_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6209);
1821
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91672);
1822
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91565);
1823
+ /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24497);
1827
1824
  /*!
1828
1825
  * Jodit Editor (https://xdsoft.net/jodit/)
1829
1826
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -1835,13 +1832,12 @@ function trimChars(value, chars) {
1835
1832
  */
1836
1833
 
1837
1834
 
1838
-
1839
-
1840
-
1841
1835
  /**
1842
1836
  * Collection factory
1843
1837
  */ function makeCollection(jodit, parentElement) {
1844
- 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);
1838
+ const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarCollection');
1839
+ const ToolbarEditorCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarEditorCollection');
1840
+ const collection = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(jodit) ? new ToolbarEditorCollection(jodit) : new ToolbarCollection(jodit);
1845
1841
  if (jodit.o.textIcons) {
1846
1842
  collection.container.classList.add('jodit_text_icons');
1847
1843
  }
@@ -1856,15 +1852,18 @@ function trimChars(value, chars) {
1856
1852
  /**
1857
1853
  * Button factory
1858
1854
  */ function makeButton(jodit, control, target = null) {
1859
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(control.getContent)) {
1860
- return new _button_content__WEBPACK_IMPORTED_MODULE_2__.ToolbarContent(jodit, control, target);
1855
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__.isFunction)(control.getContent)) {
1856
+ const ToolbarContent = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarContent');
1857
+ return new ToolbarContent(jodit, control, target);
1861
1858
  }
1862
- const button = new _button_button__WEBPACK_IMPORTED_MODULE_1__.ToolbarButton(jodit, control, target);
1859
+ const ToolbarButton = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarButton');
1860
+ const button = new ToolbarButton(jodit, control, target);
1863
1861
  button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
1864
1862
  return button;
1865
1863
  }
1866
1864
  function makeSelect(view, control, target = null) {
1867
- return new _button_select_select__WEBPACK_IMPORTED_MODULE_3__.ToolbarSelect(view, control, target);
1865
+ const ToolbarSelect = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
1866
+ return new ToolbarSelect(view, control, target);
1868
1867
  }
1869
1868
 
1870
1869
 
@@ -3651,9 +3650,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
3651
3650
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3652
3651
  /* harmony export */ attr: function() { return /* binding */ attr; }
3653
3652
  /* harmony export */ });
3654
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28686);
3655
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74264);
3656
- /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80991);
3653
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91565);
3654
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
3655
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
3656
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
3657
+ /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
3657
3658
  /*!
3658
3659
  * Jodit Editor (https://xdsoft.net/jodit/)
3659
3660
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -3663,19 +3664,21 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
3663
3664
  */
3664
3665
 
3665
3666
 
3667
+
3668
+
3666
3669
  /**
3667
3670
  * Alias for `elm.getAttribute` but if set second argument `-{key}`
3668
3671
  * it will also check `data-{key}` attribute
3669
3672
  * if set `value` it is alias for setAttribute with the same logic
3670
3673
  */ function attr(elm, keyOrAttributes, value) {
3671
- if (!elm || !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
3674
+ if (!elm || !(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
3672
3675
  return null;
3673
3676
  }
3674
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isString)(keyOrAttributes)) {
3677
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(keyOrAttributes)) {
3675
3678
  Object.keys(keyOrAttributes).forEach((key)=>{
3676
3679
  const value = keyOrAttributes[key];
3677
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(value) && key === 'style') {
3678
- (0,_css__WEBPACK_IMPORTED_MODULE_2__.css)(elm, value);
3680
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value) && key === 'style') {
3681
+ (0,_css__WEBPACK_IMPORTED_MODULE_4__.css)(elm, value);
3679
3682
  } else {
3680
3683
  if (key === 'className') {
3681
3684
  key = 'class';
@@ -3685,7 +3688,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
3685
3688
  });
3686
3689
  return null;
3687
3690
  }
3688
- let key = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_1__.CamelCaseToKebabCase)(keyOrAttributes);
3691
+ let key = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.CamelCaseToKebabCase)(keyOrAttributes);
3689
3692
  if (/^-/.test(key)) {
3690
3693
  const res = attr(elm, `data${key}`);
3691
3694
  if (res) {
@@ -5970,23 +5973,20 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
5970
5973
 
5971
5974
  "use strict";
5972
5975
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5973
- /* harmony export */ abort: function() { return /* binding */ abort; },
5974
- /* harmony export */ isAbort: function() { return /* binding */ isAbort; }
5976
+ /* harmony export */ abort: function() { return /* binding */ abort; }
5975
5977
  /* harmony export */ });
5976
- /* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72068);
5977
5978
  /*!
5978
5979
  * Jodit Editor (https://xdsoft.net/jodit/)
5979
5980
  * Released under MIT see LICENSE.txt in the project root for license information.
5980
5981
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5981
5982
  */ /**
5982
5983
  * @module helpers/utils
5983
- */
5984
- function abort(message = 'Aborted') {
5984
+ */ /**
5985
+ * `AbortError` is not a separate exception, but rather a {@link DOMException} with a special `name`.
5986
+ * https://webidl.spec.whatwg.org/#aborterror
5987
+ */ function abort(message = 'Aborted') {
5985
5988
  return new DOMException(message, 'AbortError');
5986
5989
  }
5987
- /**
5988
- * @deprecated use `isAbortError` instead
5989
- */ const isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbortError;
5990
5990
 
5991
5991
 
5992
5992
  /***/ }),
@@ -9408,15 +9408,27 @@ module.exports = "<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/sv
9408
9408
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
9409
9409
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
9410
9410
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69364);
9411
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
9412
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27795);
9413
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65946);
9414
- /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(59400);
9415
- /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15982);
9416
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29434);
9417
- /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51116);
9418
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(42573);
9419
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4274);
9411
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49574);
9412
+ /* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51676);
9413
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91672);
9414
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68616);
9415
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(23211);
9416
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17312);
9417
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91565);
9418
+ /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24497);
9419
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62101);
9420
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(85932);
9421
+ /* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(86878);
9422
+ /* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(57821);
9423
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28712);
9424
+ /* 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__);
9425
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(7909);
9426
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(71125);
9427
+ /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(59400);
9428
+ /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(15982);
9429
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(29434);
9430
+ /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(51116);
9431
+ /* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(4274);
9420
9432
  /*!
9421
9433
  * Jodit Editor (https://xdsoft.net/jodit/)
9422
9434
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9438,17 +9450,30 @@ module.exports = "<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/sv
9438
9450
 
9439
9451
 
9440
9452
 
9441
- class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UIButton {
9442
- /** @override */ className() {
9453
+
9454
+
9455
+
9456
+
9457
+
9458
+
9459
+
9460
+
9461
+
9462
+
9463
+
9464
+ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__.UIButton {
9465
+ className() {
9443
9466
  return 'ToolbarButton';
9444
9467
  }
9445
9468
  /**
9446
9469
  * Get parent toolbar
9447
9470
  */ get toolbar() {
9448
- return this.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_10__.ToolbarCollection);
9471
+ const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_5__.getComponentClass)('ToolbarCollection');
9472
+ return this.closest(ToolbarCollection);
9449
9473
  }
9450
- /** @override **/ update() {
9451
- const { control, state } = this, tc = this.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_10__.ToolbarCollection);
9474
+ update() {
9475
+ const { control, state } = this;
9476
+ const tc = this.toolbar;
9452
9477
  if (!tc) {
9453
9478
  return;
9454
9479
  }
@@ -9463,7 +9488,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9463
9488
  /**
9464
9489
  * Calculates whether the button is active
9465
9490
  */ __calculateActivatedStatus(tc) {
9466
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isJoditObject)(this.j) && !this.j.editorIsActive) {
9491
+ if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_10__.isJoditObject)(this.j) && !this.j.editorIsActive) {
9467
9492
  return false;
9468
9493
  }
9469
9494
  if (this.control.isActive?.(this.j, this)) {
@@ -9485,33 +9510,33 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9485
9510
  }
9486
9511
  return Boolean(tc && tc.shouldBeDisabled(this));
9487
9512
  }
9488
- /** @override */ onChangeActivated() {
9489
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.button, 'aria-pressed', this.state.activated);
9513
+ onChangeActivated() {
9514
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
9490
9515
  super.onChangeActivated();
9491
9516
  }
9492
- /** @override */ onChangeText() {
9493
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(this.control.template)) {
9517
+ onChangeText() {
9518
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
9494
9519
  this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
9495
9520
  } else {
9496
9521
  super.onChangeText();
9497
9522
  }
9498
9523
  this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
9499
9524
  }
9500
- /** @override */ onChangeTabIndex() {
9501
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.button, 'tabindex', this.state.tabIndex);
9525
+ onChangeTabIndex() {
9526
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'tabindex', this.state.tabIndex);
9502
9527
  }
9503
9528
  createContainer() {
9504
9529
  const cn = this.componentName;
9505
9530
  const container = this.j.c.span(cn);
9506
9531
  const button = super.createContainer();
9507
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(container, 'role', 'listitem');
9532
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(container, 'role', 'listitem');
9508
9533
  button.classList.remove(cn);
9509
9534
  button.classList.add(cn + '__button');
9510
9535
  Object.defineProperty(button, 'component', {
9511
9536
  value: this
9512
9537
  });
9513
9538
  container.appendChild(button);
9514
- const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_8__.Icon.get('chevron')}</span>`);
9539
+ const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_20__.Icon.get('chevron')}</span>`);
9515
9540
  // For caching
9516
9541
  button.appendChild(trigger);
9517
9542
  return container;
@@ -9523,15 +9548,15 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9523
9548
  if (this.state.hasTrigger) {
9524
9549
  this.container.appendChild(this.trigger);
9525
9550
  } else {
9526
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.safeRemove(this.trigger);
9551
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(this.trigger);
9527
9552
  }
9528
9553
  this.setMod('with-trigger', this.state.hasTrigger || null);
9529
9554
  }
9530
9555
  /** @override */ onChangeDisabled() {
9531
9556
  const disabled = this.state.disabled ? 'disabled' : null;
9532
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.trigger, 'disabled', disabled);
9533
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.button, 'disabled', disabled);
9534
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.attr)(this.container, 'disabled', disabled);
9557
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.trigger, 'disabled', disabled);
9558
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'disabled', disabled);
9559
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_16__.attr)(this.container, 'disabled', disabled);
9535
9560
  }
9536
9561
  /**
9537
9562
  * Init constant data from control
@@ -9540,22 +9565,22 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9540
9565
  this.updateSize();
9541
9566
  state.name = ctr.name;
9542
9567
  const { textIcons } = this.j.o;
9543
- if (textIcons === true || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
9544
- state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UIButtonState)().icon;
9568
+ if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
9569
+ state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)().icon;
9545
9570
  state.text = ctr.text || ctr.name;
9546
9571
  } else {
9547
9572
  if (ctr.iconURL) {
9548
9573
  state.icon.iconURL = ctr.iconURL;
9549
9574
  } else {
9550
9575
  const name = ctr.icon || ctr.name;
9551
- state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_8__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
9576
+ state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_20__.Icon.exists(name) || this.j.o.extraIcons?.[name] ? name : '';
9552
9577
  }
9553
9578
  if (!ctr.iconURL && !state.icon.name) {
9554
9579
  state.text = ctr.text || ctr.name;
9555
9580
  }
9556
9581
  }
9557
9582
  if (ctr.tooltip) {
9558
- state.tooltip = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
9583
+ state.tooltip = (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
9559
9584
  }
9560
9585
  state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
9561
9586
  }
@@ -9573,15 +9598,15 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9573
9598
  if (ctr.list) {
9574
9599
  return this.__openControlList(ctr);
9575
9600
  }
9576
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.popup)) {
9601
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
9577
9602
  const popup = this.openPopup();
9578
9603
  popup.parentElement = this;
9579
9604
  try {
9580
- if (this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
9605
+ 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) {
9581
9606
  const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
9582
9607
  const elm = ctr.popup(this.j, target, this.__closePopup, this);
9583
9608
  if (elm) {
9584
- 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);
9609
+ 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);
9585
9610
  } else {
9586
9611
  this.__closePopup();
9587
9612
  }
@@ -9594,26 +9619,28 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9594
9619
  * Fired after the popup was opened for some control button
9595
9620
  */ /**
9596
9621
  * Close all opened popups
9597
- */ this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
9622
+ */ this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_14__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
9598
9623
  }
9599
9624
  }
9600
9625
  /**
9601
9626
  * Create an open popup list
9602
9627
  */ __openControlList(control) {
9603
- const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_7__.findControlType)(key, controls);
9604
- const list = control.list, menu = this.openPopup(), toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_11__.makeCollection)(this.j);
9628
+ const controls = this.jodit.options.controls ?? {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_19__.findControlType)(key, controls);
9629
+ const list = control.list;
9630
+ const menu = this.openPopup();
9631
+ const toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_22__.makeCollection)(this.j);
9605
9632
  menu.parentElement = this;
9606
9633
  toolbar.parentElement = menu;
9607
9634
  toolbar.mode = 'vertical';
9608
- const isListItem = (key)=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isPlainObject)(key) && 'title' in key && 'value' in key;
9635
+ const isListItem = (key)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_11__.isPlainObject)(key) && 'title' in key && 'value' in key;
9609
9636
  const getButton = (key, value)=>{
9610
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(value) && getControl(value)) {
9637
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(value) && getControl(value)) {
9611
9638
  return {
9612
9639
  name: value.toString(),
9613
9640
  ...getControl(value)
9614
9641
  };
9615
9642
  }
9616
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(key) && getControl(key)) {
9643
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(key) && getControl(key)) {
9617
9644
  return {
9618
9645
  name: key.toString(),
9619
9646
  ...getControl(key),
@@ -9644,26 +9671,26 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9644
9671
  value
9645
9672
  ]
9646
9673
  };
9647
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(value)) {
9674
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_12__.isString)(value)) {
9648
9675
  childControl.text = value;
9649
9676
  }
9650
9677
  return childControl;
9651
9678
  };
9652
- 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);
9653
- menu.setContent(toolbar).open(()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
9679
+ 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);
9680
+ menu.setContent(toolbar).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_13__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
9654
9681
  this.state.activated = true;
9655
9682
  }
9656
9683
  onOutsideClick(e) {
9657
9684
  if (!this.openedPopup) {
9658
9685
  return;
9659
9686
  }
9660
- 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)) {
9687
+ 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)) {
9661
9688
  this.__closePopup();
9662
9689
  }
9663
9690
  }
9664
9691
  openPopup() {
9665
9692
  this.__closePopup();
9666
- this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_9__.Popup(this.j, false);
9693
+ this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_21__.Popup(this.j, false);
9667
9694
  this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
9668
9695
  return this.openedPopup;
9669
9696
  }
@@ -9680,7 +9707,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9680
9707
  * Click handler
9681
9708
  */ onClick(originalEvent) {
9682
9709
  const { control: ctr } = this;
9683
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.exec)) {
9710
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.exec)) {
9684
9711
  const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
9685
9712
  const result = ctr.exec(this.j, target, {
9686
9713
  control: ctr,
@@ -9704,11 +9731,11 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9704
9731
  if (ctr.list) {
9705
9732
  return this.__openControlList(ctr);
9706
9733
  }
9707
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(ctr.popup)) {
9734
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.popup)) {
9708
9735
  return this.onTriggerClick(originalEvent);
9709
9736
  }
9710
9737
  if (ctr.command || ctr.name) {
9711
- (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]);
9738
+ (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]);
9712
9739
  this.j.e.fire('closeAllPopups');
9713
9740
  }
9714
9741
  }
@@ -9718,20 +9745,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9718
9745
  }
9719
9746
  constructor(jodit, control, target = null){
9720
9747
  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 = {
9721
- ...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UIButtonState)(),
9748
+ ...(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_18__.UIButtonState)(),
9722
9749
  theme: 'toolbar',
9723
9750
  currentValue: '',
9724
9751
  hasTrigger: false
9725
9752
  }, this.openedPopup = null;
9726
9753
  const button = this.getElm('button');
9727
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.assert)(button, 'Element button should exists');
9754
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(button, 'Element button should exists');
9728
9755
  this.button = button;
9729
9756
  Object.defineProperty(button, 'component', {
9730
9757
  value: this,
9731
9758
  configurable: true
9732
9759
  });
9733
9760
  const trigger = this.getElm('trigger');
9734
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.assert)(trigger, 'Element trigger should exists');
9761
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_15__.assert)(trigger, 'Element trigger should exists');
9735
9762
  this.trigger = trigger;
9736
9763
  trigger.remove();
9737
9764
  // Prevent lost focus
@@ -9752,24 +9779,24 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_6__.UI
9752
9779
  }
9753
9780
  }
9754
9781
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9755
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
9782
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_4__.cacheHTML
9756
9783
  ], ToolbarButton.prototype, "createContainer", null);
9757
9784
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9758
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.hasTrigger', {
9785
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)('state.hasTrigger', {
9759
9786
  immediately: false
9760
9787
  })
9761
9788
  ], ToolbarButton.prototype, "onChangeHasTrigger", null);
9762
9789
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9763
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('trigger:click')
9790
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)('trigger:click')
9764
9791
  ], ToolbarButton.prototype, "onTriggerClick", null);
9765
9792
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9766
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
9793
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
9767
9794
  ], ToolbarButton.prototype, "onOutsideClick", null);
9768
9795
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9769
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.autobind
9796
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
9770
9797
  ], ToolbarButton.prototype, "__closePopup", null);
9771
9798
  ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
9772
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
9799
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_5__.component
9773
9800
  ], ToolbarButton);
9774
9801
 
9775
9802
 
@@ -10046,8 +10073,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('wrapNodes', wra
10046
10073
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10047
10074
  /* harmony export */ isMarker: function() { return /* binding */ isMarker; }
10048
10075
  /* harmony export */ });
10049
- /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
10050
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
10076
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
10051
10077
  /*!
10052
10078
  * Jodit Editor (https://xdsoft.net/jodit/)
10053
10079
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10055,11 +10081,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('wrapNodes', wra
10055
10081
  */ /**
10056
10082
  * @module helpers/checker
10057
10083
  */
10058
-
10059
10084
  /**
10060
10085
  * Define element is selection helper
10086
+ * @deprecated use Dom.isMarker instead
10061
10087
  */ function isMarker(elm) {
10062
- 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);
10088
+ return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isMarker(elm);
10063
10089
  }
10064
10090
 
10065
10091
 
@@ -10105,9 +10131,20 @@ class Elms {
10105
10131
  /* harmony export */ });
10106
10132
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
10107
10133
  /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88475);
10108
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28686);
10109
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4040);
10110
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(93640);
10134
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17312);
10135
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91565);
10136
+ /* harmony import */ var jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46248);
10137
+ /* harmony import */ var jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3213);
10138
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
10139
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18303);
10140
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4040);
10141
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
10142
+ /* 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__);
10143
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
10144
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80991);
10145
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(36400);
10146
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(33201);
10147
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71125);
10111
10148
  /*!
10112
10149
  * Jodit Editor (https://xdsoft.net/jodit/)
10113
10150
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10122,6 +10159,16 @@ class Elms {
10122
10159
 
10123
10160
 
10124
10161
 
10162
+
10163
+
10164
+
10165
+
10166
+
10167
+
10168
+
10169
+
10170
+
10171
+
10125
10172
  /**
10126
10173
  * Module for working with DOM
10127
10174
  */ class Dom {
@@ -10151,7 +10198,7 @@ class Elms {
10151
10198
  return Dom.__wrapElements(tag, editor, first, last);
10152
10199
  }
10153
10200
  static __wrapElements(tag, editor, first, last) {
10154
- const wrapper = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(tag) ? editor.createInside.element(tag) : tag;
10201
+ const wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? editor.createInside.element(tag) : tag;
10155
10202
  if (first.parentNode) {
10156
10203
  first.parentNode.insertBefore(wrapper, first);
10157
10204
  }
@@ -10196,10 +10243,10 @@ class Elms {
10196
10243
  /**
10197
10244
  * Wrap node inside another node
10198
10245
  */ static wrap(current, tag, create) {
10199
- const wrapper = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(tag) ? create.element(tag) : tag;
10246
+ const wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
10200
10247
  if (Dom.isNode(current)) {
10201
10248
  if (!current.parentNode) {
10202
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.error)('Element should be in DOM');
10249
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_13__.error)('Element should be in DOM');
10203
10250
  }
10204
10251
  current.parentNode.insertBefore(wrapper, current);
10205
10252
  wrapper.appendChild(current);
@@ -10240,13 +10287,13 @@ class Elms {
10240
10287
  }
10241
10288
  }
10242
10289
  static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
10243
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isHTML)(newTagName)) {
10244
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.assert)(create, 'Need create instance for new tag');
10290
+ if ((0,jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
10291
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
10245
10292
  newTagName = create.fromHTML(newTagName);
10246
10293
  }
10247
10294
  let tag;
10248
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isString)(newTagName)) {
10249
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.assert)(create, 'Need create instance for new tag');
10295
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
10296
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
10250
10297
  tag = create.element(newTagName);
10251
10298
  } else {
10252
10299
  tag = newTagName;
@@ -10287,12 +10334,12 @@ class Elms {
10287
10334
  return true;
10288
10335
  }
10289
10336
  let cond;
10290
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isFunction)(condNoEmptyElement)) {
10337
+ if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(condNoEmptyElement)) {
10291
10338
  cond = (elm)=>condNoEmptyElement.has(elm.nodeName.toLowerCase());
10292
10339
  } else {
10293
10340
  cond = condNoEmptyElement;
10294
10341
  }
10295
- const emptyText = (node)=>node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__.trim)(node.nodeValue).length === 0;
10342
+ const emptyText = (node)=>node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(node.nodeValue).length === 0;
10296
10343
  if (Dom.isText(node)) {
10297
10344
  return emptyText(node);
10298
10345
  }
@@ -10306,7 +10353,7 @@ class Elms {
10306
10353
  * Returns true if it is a DOM node
10307
10354
  */ static isNode(object) {
10308
10355
  // Duck-typing
10309
- 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));
10356
+ 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));
10310
10357
  }
10311
10358
  /**
10312
10359
  * Check if element is table cell
@@ -10332,7 +10379,7 @@ class Elms {
10332
10379
  * Check the `node` is a block element
10333
10380
  * @param node - Object to check
10334
10381
  */ static isBlock(node) {
10335
- 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);
10382
+ 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);
10336
10383
  }
10337
10384
  /**
10338
10385
  * Check if element is text node
@@ -10377,12 +10424,12 @@ class Elms {
10377
10424
  return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
10378
10425
  'inline',
10379
10426
  'inline-block'
10380
- ].indexOf((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.css)(node, 'display').toString()) !== -1;
10427
+ ].indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__.css)(node, 'display').toString()) !== -1;
10381
10428
  }
10382
10429
  /**
10383
10430
  * It's block and it can be split
10384
10431
  */ static canSplitBlock(node) {
10385
- 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);
10432
+ 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);
10386
10433
  }
10387
10434
  /**
10388
10435
  * Get last matched node inside root
@@ -10536,13 +10583,13 @@ class Elms {
10536
10583
  * Returns the nearest non-empty sibling
10537
10584
  */ static findNotEmptySibling(node, left) {
10538
10585
  return Dom.findSibling(node, left, (n)=>{
10539
- return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || n.nodeValue?.length && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__.trim)(n.nodeValue));
10586
+ return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || n.nodeValue?.length && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(n.nodeValue));
10540
10587
  });
10541
10588
  }
10542
10589
  /**
10543
10590
  * Returns the nearest non-empty neighbor
10544
10591
  */ static findNotEmptyNeighbor(node, left, root) {
10545
- 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);
10592
+ 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);
10546
10593
  }
10547
10594
  static sibling(node, left) {
10548
10595
  return left ? node.previousSibling : node.nextSibling;
@@ -10571,10 +10618,10 @@ class Elms {
10571
10618
  static closest(node, tagsOrCondition, root) {
10572
10619
  let condition;
10573
10620
  const lc = (s)=>s.toLowerCase();
10574
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isFunction)(tagsOrCondition)) {
10621
+ if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(tagsOrCondition)) {
10575
10622
  condition = tagsOrCondition;
10576
- } else if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isArray)(tagsOrCondition) || (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isSet)(tagsOrCondition)) {
10577
- const set = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
10623
+ } 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)) {
10624
+ const set = (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
10578
10625
  condition = (tag)=>Boolean(tag && set.has(lc(tag.nodeName)));
10579
10626
  } else {
10580
10627
  condition = (tag)=>Boolean(tag && lc(tagsOrCondition) === lc(tag.nodeName));
@@ -10633,7 +10680,7 @@ class Elms {
10633
10680
  root.insertBefore(newElement, root.firstChild);
10634
10681
  }
10635
10682
  static append(root, newElement) {
10636
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
10683
+ if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
10637
10684
  newElement.forEach((node)=>{
10638
10685
  this.append(root, node);
10639
10686
  });
@@ -10697,7 +10744,7 @@ class Elms {
10697
10744
  if (!node) {
10698
10745
  return;
10699
10746
  }
10700
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.dataBind)(node, '__old_display', node.style.display);
10747
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display', node.style.display);
10701
10748
  node.style.display = 'none';
10702
10749
  }
10703
10750
  /**
@@ -10706,7 +10753,7 @@ class Elms {
10706
10753
  if (!node) {
10707
10754
  return;
10708
10755
  }
10709
- const display = (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.dataBind)(node, '__old_display');
10756
+ const display = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display');
10710
10757
  if (node.style.display === 'none') {
10711
10758
  node.style.display = display || '';
10712
10759
  }
@@ -10732,8 +10779,8 @@ class Elms {
10732
10779
  /**
10733
10780
  * Marks an item as temporary
10734
10781
  */ static markTemporary(element, attributes) {
10735
- attributes && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(element, attributes);
10736
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
10782
+ attributes && (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, attributes);
10783
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
10737
10784
  return element;
10738
10785
  }
10739
10786
  /**
@@ -10742,7 +10789,12 @@ class Elms {
10742
10789
  if (!Dom.isElement(element)) {
10743
10790
  return false;
10744
10791
  }
10745
- 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';
10792
+ 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';
10793
+ }
10794
+ /**
10795
+ * Define element is selection helper
10796
+ */ static isMarker(elm) {
10797
+ return Dom.isNode(elm) && Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MARKER_CLASS);
10746
10798
  }
10747
10799
  /**
10748
10800
  * Replace temporary elements from string
@@ -10751,8 +10803,9 @@ class Elms {
10751
10803
  }
10752
10804
  /**
10753
10805
  * Get temporary list
10806
+ * @deprecated
10754
10807
  */ static temporaryList(root) {
10755
- return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.$$)(`[${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`, root);
10808
+ return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll(`[${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`));
10756
10809
  }
10757
10810
  constructor(){
10758
10811
  throw new Error('Dom is static module');
@@ -12258,16 +12311,16 @@ UISpacer = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)(
12258
12311
  /* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
12259
12312
  /* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
12260
12313
  /* harmony export */ });
12261
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
12262
- /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24497);
12263
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
12264
- /* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31534);
12265
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74264);
12314
+ /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
12315
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
12316
+ /* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31534);
12317
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
12318
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
12266
12319
  /* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(421);
12267
12320
  /* harmony import */ var jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85305);
12268
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81937);
12269
- /* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27795);
12270
- /* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1496);
12321
+ /* harmony import */ var _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42689);
12322
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81937);
12323
+ /* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27795);
12271
12324
  /*!
12272
12325
  * Jodit Editor (https://xdsoft.net/jodit/)
12273
12326
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12301,14 +12354,16 @@ const uuids = new Set();
12301
12354
  uuids.add(uid);
12302
12355
  return uid;
12303
12356
  }
12304
- const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem();
12357
+ const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem({
12358
+ getContainer
12359
+ });
12305
12360
  const modules = {};
12306
12361
  const extendLang = (langs)=>{
12307
12362
  Object.keys(langs).forEach((key)=>{
12308
- if (_constants__WEBPACK_IMPORTED_MODULE_7__.lang[key]) {
12309
- Object.assign(_constants__WEBPACK_IMPORTED_MODULE_7__.lang[key], langs[key]);
12363
+ if (_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key]) {
12364
+ Object.assign(_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key], langs[key]);
12310
12365
  } else {
12311
- _constants__WEBPACK_IMPORTED_MODULE_7__.lang[key] = langs[key];
12366
+ _constants__WEBPACK_IMPORTED_MODULE_8__.lang[key] = langs[key];
12312
12367
  }
12313
12368
  });
12314
12369
  };
@@ -12316,27 +12371,27 @@ const boxes = new WeakMap();
12316
12371
  /**
12317
12372
  * Create unique box(HTMLCotainer) and remove it after destroy
12318
12373
  */ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
12319
- 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';
12374
+ 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';
12320
12375
  const data = boxes.get(jodit) || {}, key = name + tag;
12321
- const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_3__.isViewObject)(jodit) ? jodit : jodit.j;
12376
+ const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
12322
12377
  let body = null;
12323
12378
  if (!data[key]) {
12324
12379
  let c = view.c;
12325
12380
  body = getPopupViewRoot(view.o, view.container, jodit.od.body);
12326
- if (createInsideEditor && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
12381
+ if (createInsideEditor && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
12327
12382
  c = jodit.createInside;
12328
12383
  const place = tag === 'style' ? jodit.ed.head : jodit.ed.body;
12329
- body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_1__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
12384
+ body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
12330
12385
  }
12331
12386
  const box = c.element(tag, {
12332
- className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(name)}-container jodit-box`
12387
+ className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(name)}-container jodit-box`
12333
12388
  });
12334
12389
  box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
12335
12390
  body.appendChild(box);
12336
12391
  data[key] = box;
12337
12392
  jodit.hookStatus('beforeDestruct', ()=>{
12338
12393
  view.events.off(box);
12339
- _dom__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(box);
12394
+ _dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(box);
12340
12395
  delete data[key];
12341
12396
  if (Object.keys(data).length) {
12342
12397
  boxes.delete(jodit);
@@ -12353,14 +12408,15 @@ const boxes = new WeakMap();
12353
12408
  * Get root element for view
12354
12409
  * @internal
12355
12410
  */ function getPopupViewRoot(o, container, defaultRoot) {
12356
- 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') || [
12411
+ 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') || [
12357
12412
  'fixed',
12358
12413
  'absolute'
12359
- ].includes((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.css)(parentElement, 'position'))), defaultRoot) ?? defaultRoot;
12414
+ ].includes((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(parentElement, 'position'))), defaultRoot) ?? defaultRoot;
12360
12415
  }
12361
12416
  /**
12362
12417
  * Global event emitter
12363
- */ const eventEmitter = new _event_emitter__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
12418
+ * @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
12419
+ */ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__.eventEmitter;
12364
12420
 
12365
12421
 
12366
12422
  /***/ }),
@@ -12779,7 +12835,8 @@ module.exports = {assert(){}};;
12779
12835
  /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88475);
12780
12836
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85932);
12781
12837
  /* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57821);
12782
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93640);
12838
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7909);
12839
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33201);
12783
12840
  /*!
12784
12841
  * Jodit Editor (https://xdsoft.net/jodit/)
12785
12842
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12792,6 +12849,7 @@ module.exports = {assert(){}};;
12792
12849
 
12793
12850
 
12794
12851
 
12852
+
12795
12853
  let temp = 1;
12796
12854
  const $$temp = ()=>{
12797
12855
  temp++;
@@ -12836,7 +12894,7 @@ const $$temp = ()=>{
12836
12894
  root = root.container;
12837
12895
  }
12838
12896
  return $$('[ref],[data-ref]', root).reduce((def, child)=>{
12839
- const key = (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
12897
+ const key = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
12840
12898
  if (key && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__.isString)(key)) {
12841
12899
  def[(0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_4__.camelCase)(key)] = child;
12842
12900
  def[key] = child;
@@ -12881,12 +12939,12 @@ const $$temp = ()=>{
12881
12939
  try {
12882
12940
  resolved = od.querySelector(element);
12883
12941
  } catch {
12884
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.error)('String "' + element + '" should be valid HTML selector');
12942
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__.error)('String "' + element + '" should be valid HTML selector');
12885
12943
  }
12886
12944
  }
12887
12945
  // Duck checking
12888
12946
  if (!resolved || typeof resolved !== 'object' || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(resolved) || !resolved.cloneNode) {
12889
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.error)('Element "' + element + '" should be string or HTMLElement instance');
12947
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__.error)('Element "' + element + '" should be string or HTMLElement instance');
12890
12948
  }
12891
12949
  return resolved;
12892
12950
  }
@@ -13393,8 +13451,7 @@ UIImageMainTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__deco
13393
13451
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13394
13452
  /* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
13395
13453
  /* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
13396
- /* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; },
13397
- /* harmony export */ isAbort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbort; }
13454
+ /* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; }
13398
13455
  /* harmony export */ });
13399
13456
  /* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14228);
13400
13457
  /* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58250);
@@ -14746,7 +14803,6 @@ class Response {
14746
14803
  /* harmony export */ abort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.abort; },
14747
14804
  /* harmony export */ connection: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.connection; },
14748
14805
  /* harmony export */ error: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.error; },
14749
- /* harmony export */ isAbort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.isAbort; },
14750
14806
  /* harmony export */ options: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.options; }
14751
14807
  /* harmony export */ });
14752
14808
  /* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38027);
@@ -15103,15 +15159,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
15103
15159
 
15104
15160
  "use strict";
15105
15161
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15106
- /* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
15107
- /* harmony export */ getItem: function() { return /* binding */ getItem; },
15108
15162
  /* harmony export */ nativeListeners: function() { return /* binding */ nativeListeners; }
15109
15163
  /* harmony export */ });
15110
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
15111
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65946);
15164
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7909);
15165
+ /* harmony import */ var jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77213);
15112
15166
  /* harmony import */ var jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61334);
15113
15167
  /* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31125);
15114
- /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53202);
15168
+ /* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66206);
15169
+ /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53202);
15115
15170
  /*!
15116
15171
  * Jodit Editor (https://xdsoft.net/jodit/)
15117
15172
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15123,15 +15178,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
15123
15178
 
15124
15179
 
15125
15180
 
15126
- /**
15127
- * @private
15128
- */ 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);
15129
- /**
15130
- * @private
15131
- */ const elementToItem = (elm, elementsMap)=>{
15132
- const { key } = elm.dataset, { item } = elementsMap[key || ''];
15133
- return item;
15134
- };
15181
+
15135
15182
  /**
15136
15183
  * @private
15137
15184
  */ function nativeListeners() {
@@ -15139,7 +15186,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
15139
15186
  const elmMap = (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__.elementsMap)(this);
15140
15187
  const self = this;
15141
15188
  self.e.on(self.tree.container, 'dragstart', (e)=>{
15142
- const a = getItem(e.target, self.container);
15189
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
15143
15190
  if (!a) {
15144
15191
  return;
15145
15192
  }
@@ -15148,39 +15195,39 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
15148
15195
  }
15149
15196
  }).on(self.tree.container, 'drop', (e)=>{
15150
15197
  if ((self.o.moveFile || self.o.moveFolder) && dragElement) {
15151
- let path = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(dragElement, '-path') || '';
15198
+ let path = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-path') || '';
15152
15199
  // move folder
15153
15200
  if (!self.o.moveFolder && dragElement.classList.contains(this.tree.getFullElName('item'))) {
15154
15201
  return false;
15155
15202
  }
15156
15203
  // move file
15157
15204
  if (dragElement.classList.contains(this.files.getFullElName('item'))) {
15158
- path += (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(dragElement, '-name');
15205
+ path += (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-name');
15159
15206
  if (!self.o.moveFile) {
15160
15207
  return false;
15161
15208
  }
15162
15209
  }
15163
- const a = getItem(e.target, self.container);
15210
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
15164
15211
  if (!a) {
15165
15212
  return;
15166
15213
  }
15167
- 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);
15214
+ 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);
15168
15215
  dragElement = false;
15169
15216
  }
15170
15217
  }).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)=>{
15171
- if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
15218
+ if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
15172
15219
  this.state.activeElements = [];
15173
15220
  }
15174
15221
  }).on(self.files.container, 'click', (e)=>{
15175
- const a = getItem(e.target, self.container);
15222
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
15176
15223
  if (!a) {
15177
15224
  return;
15178
15225
  }
15179
- const item = elementToItem(a, elmMap);
15226
+ const item = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.elementToItem)(a, elmMap);
15180
15227
  if (!item) {
15181
15228
  return;
15182
15229
  }
15183
- if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
15230
+ if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
15184
15231
  self.state.activeElements = [
15185
15232
  item
15186
15233
  ];
@@ -15194,7 +15241,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
15194
15241
  return false;
15195
15242
  }).on(self.files.container, 'dragstart', (e)=>{
15196
15243
  if (self.o.moveFile) {
15197
- const a = getItem(e.target, self.container);
15244
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
15198
15245
  if (!a) {
15199
15246
  return;
15200
15247
  }
@@ -17625,9 +17672,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
17625
17672
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
17626
17673
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
17627
17674
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
17628
- /* harmony import */ var jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38027);
17629
- /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4099);
17630
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4274);
17675
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49574);
17676
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
17677
+ /* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29200);
17678
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68616);
17679
+ /* harmony import */ var jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38027);
17680
+ /* harmony import */ var jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97959);
17681
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4274);
17631
17682
  /*!
17632
17683
  * Jodit Editor (https://xdsoft.net/jodit/)
17633
17684
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -17643,8 +17694,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
17643
17694
 
17644
17695
 
17645
17696
 
17646
- class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIList {
17647
- /** @override */ className() {
17697
+
17698
+
17699
+
17700
+
17701
+ class ToolbarCollection extends jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_8__.UIList {
17702
+ className() {
17648
17703
  return 'ToolbarCollection';
17649
17704
  }
17650
17705
  /**
@@ -17654,10 +17709,10 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
17654
17709
  return button || null;
17655
17710
  }
17656
17711
  makeButton(control, target = null) {
17657
- return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__.makeButton)(this.j, control, target);
17712
+ return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__.makeButton)(this.j, control, target);
17658
17713
  }
17659
17714
  makeSelect(control, target = null) {
17660
- return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_5__.makeSelect)(this.j, control, target);
17715
+ return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__.makeSelect)(this.j, control, target);
17661
17716
  }
17662
17717
  /**
17663
17718
  * Button should be active
@@ -17700,7 +17755,7 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
17700
17755
  this.appendTo(this.j.toolbarContainer);
17701
17756
  }
17702
17757
  showInline(bound) {
17703
- throw (0,jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_3__.error)('The method is not implemented for this class.');
17758
+ throw (0,jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_7__.error)('The method is not implemented for this class.');
17704
17759
  }
17705
17760
  /** @override **/ build(items, target = null) {
17706
17761
  const itemsWithGroupps = this.j.e.fire('beforeToolbarBuild', items);
@@ -17722,20 +17777,34 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
17722
17777
  }
17723
17778
  }
17724
17779
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
17725
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':afterInit'),
17726
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
17780
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)(':afterInit'),
17781
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
17727
17782
  ], ToolbarCollection.prototype, "__immediateUpdate", null);
17728
17783
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
17729
17784
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)((ctx)=>ctx.j.defaultTimeout, true)
17730
17785
  ], ToolbarCollection.prototype, "update", null);
17731
17786
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
17732
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.hook)('ready')
17787
+ (0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook)('ready')
17733
17788
  ], ToolbarCollection.prototype, "__initEvents", null);
17734
17789
  ToolbarCollection = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
17735
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
17790
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
17736
17791
  ], ToolbarCollection);
17737
17792
 
17738
17793
 
17794
+ /***/ }),
17795
+
17796
+ /***/ 42689:
17797
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17798
+
17799
+ "use strict";
17800
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17801
+ /* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; }
17802
+ /* harmony export */ });
17803
+ /* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93747);
17804
+
17805
+ const eventEmitter = new _event_emitter__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
17806
+
17807
+
17739
17808
  /***/ }),
17740
17809
 
17741
17810
  /***/ 42766:
@@ -21665,12 +21734,10 @@ module.exports = "<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\
21665
21734
  "use strict";
21666
21735
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21667
21736
  /* harmony export */ FiniteStateMachine: function() { return /* reexport safe */ _finite_state_machine__WEBPACK_IMPORTED_MODULE_1__.FiniteStateMachine; },
21668
- /* harmony export */ elementsEqualAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.elementsEqualAttributes; },
21669
21737
  /* harmony export */ extractSelectedPart: function() { return /* reexport safe */ _extract__WEBPACK_IMPORTED_MODULE_0__.extractSelectedPart; },
21670
21738
  /* harmony export */ getSuitChild: function() { return /* reexport safe */ _get_suit_child__WEBPACK_IMPORTED_MODULE_2__.getSuitChild; },
21671
21739
  /* harmony export */ getSuitParent: function() { return /* reexport safe */ _get_suit_parent__WEBPACK_IMPORTED_MODULE_3__.getSuitParent; },
21672
21740
  /* harmony export */ isInsideInvisibleElement: function() { return /* reexport safe */ _is_inside_invisible_element__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement; },
21673
- /* harmony export */ isSameAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.isSameAttributes; },
21674
21741
  /* harmony export */ suitableClosest: function() { return /* reexport safe */ _is_suit_element__WEBPACK_IMPORTED_MODULE_8__.suitableClosest; },
21675
21742
  /* harmony export */ toggleAttributes: function() { return /* reexport safe */ _toggle_attributes__WEBPACK_IMPORTED_MODULE_11__.toggleAttributes; },
21676
21743
  /* harmony export */ toggleOrderedList: function() { return /* reexport safe */ _list_toggle_ordered_list__WEBPACK_IMPORTED_MODULE_9__.toggleOrderedList; },
@@ -22446,14 +22513,17 @@ module.exports["default"] = ["Type something","About Jodit","Jodit Editor","Jodi
22446
22513
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
22447
22514
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
22448
22515
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69364);
22449
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
22450
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23211);
22451
- /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91565);
22452
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
22453
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93640);
22454
- /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96007);
22455
- /* harmony import */ var jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97959);
22456
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29434);
22516
+ /* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51676);
22517
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
22518
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68616);
22519
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23211);
22520
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91565);
22521
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85932);
22522
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
22523
+ /* 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__);
22524
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
22525
+ /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96007);
22526
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(29434);
22457
22527
  /*!
22458
22528
  * Jodit Editor (https://xdsoft.net/jodit/)
22459
22529
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -22472,6 +22542,8 @@ module.exports["default"] = ["Type something","About Jodit","Jodit Editor","Jodi
22472
22542
 
22473
22543
 
22474
22544
 
22545
+
22546
+
22475
22547
  const UIButtonState = ()=>({
22476
22548
  size: 'middle',
22477
22549
  type: 'button',
@@ -22490,7 +22562,7 @@ const UIButtonState = ()=>({
22490
22562
  text: '',
22491
22563
  tabIndex: undefined
22492
22564
  });
22493
- class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement {
22565
+ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__.UIElement {
22494
22566
  /** @override */ className() {
22495
22567
  return 'UIButton';
22496
22568
  }
@@ -22504,29 +22576,30 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
22504
22576
  * DOM container for text content
22505
22577
  */ get text() {
22506
22578
  const text = this.getElm('text');
22507
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.assert)(text, 'Text element not found');
22579
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(text, 'Text element not found');
22508
22580
  return text;
22509
22581
  }
22510
22582
  /**
22511
22583
  * DOM container for icon
22512
22584
  */ get icon() {
22513
22585
  const icon = this.getElm('icon');
22514
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.assert)(icon, 'Icon element not found');
22586
+ (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(icon, 'Icon element not found');
22515
22587
  return icon;
22516
22588
  }
22517
22589
  onChangeSize() {
22518
22590
  this.setMod('size', this.state.size);
22519
22591
  }
22520
22592
  onChangeType() {
22521
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'type', this.state.type);
22593
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'type', this.state.type);
22522
22594
  }
22523
22595
  onChangeRole() {
22524
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'role', this.state.role);
22596
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'role', this.state.role);
22525
22597
  }
22526
22598
  /**
22527
22599
  * Set size from a parent list
22528
22600
  */ updateSize() {
22529
- const pe = this.closest(jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_9__.UIList);
22601
+ const UIList = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.getComponentClass)('UIList');
22602
+ const pe = this.closest(UIList);
22530
22603
  if (pe) {
22531
22604
  this.state.size = pe.buttonSize;
22532
22605
  return;
@@ -22542,34 +22615,34 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
22542
22615
  this.setMod('text-icons', Boolean(this.state.text.trim().length));
22543
22616
  }
22544
22617
  onChangeDisabled() {
22545
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'disabled', this.state.disabled || null);
22618
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'disabled', this.state.disabled || null);
22546
22619
  }
22547
22620
  onChangeActivated() {
22548
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'aria-pressed', this.state.activated);
22621
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'aria-pressed', this.state.activated);
22549
22622
  }
22550
22623
  onChangeName() {
22551
22624
  this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`);
22552
22625
  this.name = this.state.name;
22553
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'data-ref', this.state.name);
22554
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'ref', this.state.name);
22626
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'data-ref', this.state.name);
22627
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'ref', this.state.name);
22555
22628
  }
22556
22629
  onChangeTooltip() {
22557
22630
  const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
22558
22631
  if (this.get('j.o.useNativeTooltip')) {
22559
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'title', i8nTooltip);
22632
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'title', i8nTooltip);
22560
22633
  }
22561
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'aria-label', i8nTooltip);
22634
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'aria-label', i8nTooltip);
22562
22635
  }
22563
22636
  onChangeTabIndex() {
22564
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_7__.attr)(this.container, 'tabindex', this.state.tabIndex);
22637
+ (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'tabindex', this.state.tabIndex);
22565
22638
  }
22566
22639
  onChangeIcon() {
22567
22640
  const textIcons = this.get('j.o.textIcons');
22568
- if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_5__.isFunction)(textIcons) && textIcons(this.state.name)) {
22641
+ if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__.isFunction)(textIcons) && textIcons(this.state.name)) {
22569
22642
  return;
22570
22643
  }
22571
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.detach(this.icon);
22572
- const iconElement = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(this.j, this.state.icon);
22644
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.detach(this.icon);
22645
+ const iconElement = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__.Icon.makeIcon(this.j, this.state.icon);
22573
22646
  iconElement && this.icon.appendChild(iconElement);
22574
22647
  }
22575
22648
  /**
@@ -22581,7 +22654,7 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
22581
22654
  * Element has focus
22582
22655
  */ isFocused() {
22583
22656
  const { activeElement } = this.od;
22584
- return Boolean(activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(this.container, activeElement));
22657
+ return Boolean(activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.container, activeElement));
22585
22658
  }
22586
22659
  /** @override */ createContainer() {
22587
22660
  const cn = this.componentName;
@@ -22635,83 +22708,83 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
22635
22708
  }
22636
22709
  }
22637
22710
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22638
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cache
22711
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cache
22639
22712
  ], UIButton.prototype, "text", null);
22640
22713
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22641
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cache
22714
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cache
22642
22715
  ], UIButton.prototype, "icon", null);
22643
22716
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22644
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.size', {
22717
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.size', {
22645
22718
  immediately: false
22646
22719
  })
22647
22720
  ], UIButton.prototype, "onChangeSize", null);
22648
22721
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22649
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.type', {
22722
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.type', {
22650
22723
  immediately: false
22651
22724
  })
22652
22725
  ], UIButton.prototype, "onChangeType", null);
22653
22726
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22654
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.role', {
22727
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.role', {
22655
22728
  immediately: false
22656
22729
  })
22657
22730
  ], UIButton.prototype, "onChangeRole", null);
22658
22731
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22659
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('parentElement')
22732
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('parentElement')
22660
22733
  ], UIButton.prototype, "updateSize", null);
22661
22734
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22662
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.variant', {
22735
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.variant', {
22663
22736
  immediately: false
22664
22737
  })
22665
22738
  ], UIButton.prototype, "onChangeStatus", null);
22666
22739
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22667
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
22740
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.text', {
22668
22741
  immediately: false
22669
22742
  })
22670
22743
  ], UIButton.prototype, "onChangeText", null);
22671
22744
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22672
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
22745
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.text', {
22673
22746
  immediately: false
22674
22747
  })
22675
22748
  ], UIButton.prototype, "onChangeTextSetMode", null);
22676
22749
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22677
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.disabled')
22750
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.disabled')
22678
22751
  ], UIButton.prototype, "onChangeDisabled", null);
22679
22752
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22680
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.activated')
22753
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.activated')
22681
22754
  ], UIButton.prototype, "onChangeActivated", null);
22682
22755
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22683
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.name', {
22756
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.name', {
22684
22757
  immediately: false
22685
22758
  })
22686
22759
  ], UIButton.prototype, "onChangeName", null);
22687
22760
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22688
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tooltip', {
22761
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.tooltip', {
22689
22762
  immediately: false
22690
22763
  })
22691
22764
  ], UIButton.prototype, "onChangeTooltip", null);
22692
22765
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22693
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tabIndex', {
22766
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.tabIndex', {
22694
22767
  immediately: false
22695
22768
  })
22696
22769
  ], UIButton.prototype, "onChangeTabIndex", null);
22697
22770
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22698
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('state.icon', {
22771
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.icon', {
22699
22772
  immediately: false
22700
22773
  })
22701
22774
  ], UIButton.prototype, "onChangeIcon", null);
22702
22775
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22703
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
22776
+ jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
22704
22777
  ], UIButton.prototype, "createContainer", null);
22705
22778
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22706
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('button:click')
22779
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('button:click')
22707
22780
  ], UIButton.prototype, "__onActionFire", null);
22708
22781
  UIButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22709
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
22782
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
22710
22783
  ], UIButton);
22711
22784
  function Button(jodit, stateOrText, text, variant) {
22712
22785
  const button = new UIButton(jodit);
22713
22786
  button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
22714
- if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(stateOrText)) {
22787
+ if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__.isString)(stateOrText)) {
22715
22788
  button.state.icon.name = stateOrText;
22716
22789
  button.state.name = stateOrText;
22717
22790
  if (variant) {
@@ -22745,8 +22818,8 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
22745
22818
  /* harmony export */ });
22746
22819
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
22747
22820
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
22748
- /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16964);
22749
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
22821
+ /* harmony import */ var jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59609);
22822
+ /* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55184);
22750
22823
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
22751
22824
  /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8838);
22752
22825
  /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46363);
@@ -22774,7 +22847,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.history = {
22774
22847
  };
22775
22848
  /**
22776
22849
  * The module monitors the status of the editor and creates / deletes the required number of Undo / Redo shots .
22777
- */ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewComponent {
22850
+ */ class History extends jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_2__.ViewComponent {
22778
22851
  /** @override */ className() {
22779
22852
  return 'History';
22780
22853
  }
@@ -22895,7 +22968,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.history = {
22895
22968
  }
22896
22969
  }
22897
22970
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
22898
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.debounce)()
22971
+ (0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce)()
22899
22972
  ], History.prototype, "onChange", null);
22900
22973
 
22901
22974
 
@@ -23280,9 +23353,8 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
23280
23353
  /* harmony export */ init: function() { return /* binding */ init; }
23281
23354
  /* harmony export */ });
23282
23355
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
23283
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
23284
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28686);
23285
- /* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3050);
23356
+ /* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52433);
23357
+ /* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3050);
23286
23358
  /*!
23287
23359
  * Jodit Editor (https://xdsoft.net/jodit/)
23288
23360
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -23292,12 +23364,11 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
23292
23364
  */
23293
23365
 
23294
23366
 
23295
-
23296
23367
  /**
23297
23368
  * Init plugin if it has no dependencies, in another case wait requires plugins will be init
23298
23369
  * @private
23299
- */ function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
23300
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__.isInitable)(instance)) {
23370
+ */ function init(jodit, pluginName, plugin, instance, doneList, waitingList, getContainer) {
23371
+ if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__.isInitable)(instance)) {
23301
23372
  try {
23302
23373
  instance.init(jodit);
23303
23374
  } catch (e) {
@@ -23310,12 +23381,12 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
23310
23381
  doneList.set(pluginName, instance);
23311
23382
  waitingList.delete(pluginName);
23312
23383
  if (instance.hasStyle) {
23313
- (0,_load__WEBPACK_IMPORTED_MODULE_3__.loadStyle)(jodit, pluginName).catch((e)=>{
23384
+ (0,_load__WEBPACK_IMPORTED_MODULE_2__.loadStyle)(jodit, pluginName).catch((e)=>{
23314
23385
  !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && console.error(e);
23315
23386
  });
23316
23387
  }
23317
23388
  if (instance.styles) {
23318
- const style = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.getContainer)(jodit, pluginName, 'style');
23389
+ const style = getContainer(jodit, pluginName, 'style');
23319
23390
  style.innerHTML = instance.styles;
23320
23391
  }
23321
23392
  }
@@ -24872,16 +24943,10 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
24872
24943
  "use strict";
24873
24944
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24874
24945
  /* harmony export */ CommitStyle: function() { return /* reexport safe */ _style_commit_style__WEBPACK_IMPORTED_MODULE_1__.CommitStyle; },
24875
- /* harmony export */ INITIAL: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.INITIAL; },
24876
- /* harmony export */ REPLACE: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.REPLACE; },
24877
- /* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; },
24878
- /* harmony export */ UNSET: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNSET; },
24879
- /* harmony export */ UNWRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNWRAP; },
24880
- /* harmony export */ WRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.WRAP; }
24946
+ /* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; }
24881
24947
  /* harmony export */ });
24882
24948
  /* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98595);
24883
24949
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84578);
24884
- /* harmony import */ var _style_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98394);
24885
24950
  /*!
24886
24951
  * Jodit Editor (https://xdsoft.net/jodit/)
24887
24952
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25284,14 +25349,15 @@ __webpack_require__.r(__webpack_exports__);
25284
25349
 
25285
25350
  "use strict";
25286
25351
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
25287
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93640);
25288
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29434);
25289
- /* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31125);
25290
- /* harmony import */ var jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18272);
25291
- /* harmony import */ var jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1305);
25292
- /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(53202);
25293
- /* harmony import */ var jodit_modules_file_browser_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(34269);
25294
- /* harmony import */ var jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43271);
25352
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7909);
25353
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33201);
25354
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29434);
25355
+ /* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31125);
25356
+ /* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66206);
25357
+ /* harmony import */ var jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18272);
25358
+ /* harmony import */ var jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1305);
25359
+ /* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53202);
25360
+ /* harmony import */ var jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43271);
25295
25361
  /*!
25296
25362
  * Jodit Editor (https://xdsoft.net/jodit/)
25297
25363
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25307,21 +25373,22 @@ __webpack_require__.r(__webpack_exports__);
25307
25373
 
25308
25374
 
25309
25375
 
25310
- 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>';
25376
+
25377
+ 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>';
25311
25378
  /* harmony default export */ __webpack_exports__["default"] = ((self)=>{
25312
25379
  if (!self.o.contextMenu) {
25313
25380
  return ()=>{};
25314
25381
  }
25315
- const contextmenu = (0,jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_4__.makeContextMenu)(self);
25382
+ const contextmenu = (0,jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_6__.makeContextMenu)(self);
25316
25383
  return (e)=>{
25317
- const a = (0,jodit_modules_file_browser_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_7__.getItem)(e.target, self.container);
25384
+ const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
25318
25385
  if (!a) {
25319
25386
  return;
25320
25387
  }
25321
25388
  let item = a;
25322
- const opt = self.options, ga = (key)=>(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(item, key) || '';
25389
+ const opt = self.options, ga = (key)=>(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_1__.attr)(item, key) || '';
25323
25390
  self.async.setTimeout(()=>{
25324
- 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));
25391
+ 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));
25325
25392
  if (!selectedItem) {
25326
25393
  return;
25327
25394
  }
@@ -25332,7 +25399,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
25332
25399
  ga('data-is-file') !== '1' && opt.editImage && (self.dataProvider.canI('ImageResize') || self.dataProvider.canI('ImageCrop')) ? {
25333
25400
  icon: 'pencil',
25334
25401
  title: 'Edit',
25335
- 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'))
25402
+ 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'))
25336
25403
  } : false,
25337
25404
  self.dataProvider.canI('FileRename') ? {
25338
25405
  icon: 'italic',
@@ -25346,12 +25413,12 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
25346
25413
  title: 'Delete',
25347
25414
  exec: async ()=>{
25348
25415
  try {
25349
- await (0,jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_5__.deleteFile)(self, ga('data-name'), ga('data-source'));
25416
+ await (0,jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_7__.deleteFile)(self, ga('data-name'), ga('data-source'));
25350
25417
  } catch (e) {
25351
25418
  return self.status(e);
25352
25419
  }
25353
25420
  self.state.activeElements = [];
25354
- return (0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_6__.loadTree)(self).catch(self.status);
25421
+ return (0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_8__.loadTree)(self).catch(self.status);
25355
25422
  }
25356
25423
  } : false,
25357
25424
  opt.preview ? {
@@ -25400,7 +25467,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
25400
25467
  item = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'));
25401
25468
  }
25402
25469
  if (!item) {
25403
- throw (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.error)('Need element');
25470
+ throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__.error)('Need element');
25404
25471
  }
25405
25472
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
25406
25473
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(preview_box);
@@ -27154,6 +27221,29 @@ __webpack_require__.r(__webpack_exports__);
27154
27221
 
27155
27222
 
27156
27223
 
27224
+ /***/ }),
27225
+
27226
+ /***/ 66206:
27227
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
27228
+
27229
+ "use strict";
27230
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27231
+ /* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
27232
+ /* harmony export */ getItem: function() { return /* binding */ getItem; }
27233
+ /* harmony export */ });
27234
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
27235
+
27236
+ /**
27237
+ * @private
27238
+ */ 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);
27239
+ /**
27240
+ * @private
27241
+ */ const elementToItem = (elm, elementsMap)=>{
27242
+ const { key } = elm.dataset, { item } = elementsMap[key || ''];
27243
+ return item;
27244
+ };
27245
+
27246
+
27157
27247
  /***/ }),
27158
27248
 
27159
27249
  /***/ 66547:
@@ -27812,7 +27902,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.filebrowser
27812
27902
 
27813
27903
  "use strict";
27814
27904
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27815
- /* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
27816
27905
  /* harmony export */ watch: function() { return /* binding */ watch; }
27817
27906
  /* harmony export */ });
27818
27907
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69364);
@@ -27822,6 +27911,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.filebrowser
27822
27911
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62101);
27823
27912
  /* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31534);
27824
27913
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33201);
27914
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71125);
27825
27915
  /*!
27826
27916
  * Jodit Editor (https://xdsoft.net/jodit/)
27827
27917
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27837,14 +27927,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.filebrowser
27837
27927
 
27838
27928
 
27839
27929
 
27840
- function getPropertyDescriptor(obj, prop) {
27841
- let desc;
27842
- do {
27843
- desc = Object.getOwnPropertyDescriptor(obj, prop);
27844
- obj = Object.getPrototypeOf(obj);
27845
- }while (!desc && obj)
27846
- return desc;
27847
- }
27930
+
27848
27931
  /**
27849
27932
  * Watch decorator. Added observer for some change in field value
27850
27933
  */ function watch(observeFields, opts) {
@@ -27890,7 +27973,7 @@ function getPropertyDescriptor(obj, prop) {
27890
27973
  const observableValue = (0,jodit_core_event_emitter_observable__WEBPACK_IMPORTED_MODULE_1__.observable)(value);
27891
27974
  observableValue.on(`change.${teil.join('.')}`, callback);
27892
27975
  }
27893
- const descriptor = getPropertyDescriptor(target, key);
27976
+ const descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_7__.getPropertyDescriptor)(target, key);
27894
27977
  Object.defineProperty(component, key, {
27895
27978
  configurable: true,
27896
27979
  set (v) {
@@ -28683,10 +28766,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('fullsize', full
28683
28766
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28684
28767
  /* harmony export */ observable: function() { return /* binding */ observable; }
28685
28768
  /* harmony export */ });
28686
- /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68616);
28687
- /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17312);
28688
- /* harmony import */ var jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94013);
28689
- /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62101);
28769
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
28770
+ /* harmony import */ var jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94013);
28771
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62101);
28772
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71125);
28690
28773
  /*!
28691
28774
  * Jodit Editor (https://xdsoft.net/jodit/)
28692
28775
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28742,7 +28825,7 @@ function isObservableObject(obj) {
28742
28825
  const __lockEvent = {};
28743
28826
  const __onEvents = {};
28744
28827
  const on = (event, callback)=>{
28745
- if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__.isArray)(event)) {
28828
+ if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
28746
28829
  event.map((e)=>on(e, callback));
28747
28830
  return obj;
28748
28831
  }
@@ -28753,7 +28836,7 @@ function isObservableObject(obj) {
28753
28836
  return obj;
28754
28837
  };
28755
28838
  const fire = (event, ...attr)=>{
28756
- if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_1__.isArray)(event)) {
28839
+ if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
28757
28840
  event.map((e)=>fire(e, ...attr));
28758
28841
  return;
28759
28842
  }
@@ -28779,16 +28862,16 @@ function isObservableObject(obj) {
28779
28862
  const key = _key;
28780
28863
  const prefix = prefixes.concat(key).filter((a)=>a.length);
28781
28864
  store[key] = dict[key];
28782
- const descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__.getPropertyDescriptor)(dict, key);
28865
+ const descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__.getPropertyDescriptor)(dict, key);
28783
28866
  Object.defineProperty(dict, key, {
28784
28867
  set: (value)=>{
28785
28868
  const oldValue = store[key];
28786
- if (!(0,jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_2__.isFastEqual)(store[key], value)) {
28869
+ if (!(0,jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_1__.isFastEqual)(store[key], value)) {
28787
28870
  fire([
28788
28871
  'beforeChange',
28789
28872
  `beforeChange.${prefix.join('.')}`
28790
28873
  ], key, value);
28791
- if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value)) {
28874
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(value)) {
28792
28875
  initAccessors(value, prefix);
28793
28876
  }
28794
28877
  if (descriptor && descriptor.set) {
@@ -28816,7 +28899,7 @@ function isObservableObject(obj) {
28816
28899
  enumerable: true,
28817
28900
  configurable: true
28818
28901
  });
28819
- if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(store[key])) {
28902
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(store[key])) {
28820
28903
  initAccessors(store[key], prefix);
28821
28904
  }
28822
28905
  });
@@ -28874,6 +28957,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
28874
28957
  /* harmony export */ call: function() { return /* binding */ call; },
28875
28958
  /* harmony export */ callPromise: function() { return /* binding */ callPromise; },
28876
28959
  /* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
28960
+ /* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
28877
28961
  /* harmony export */ keys: function() { return /* binding */ keys; },
28878
28962
  /* harmony export */ loadImage: function() { return /* binding */ loadImage; },
28879
28963
  /* harmony export */ markOwner: function() { return /* binding */ markOwner; },
@@ -28970,6 +29054,14 @@ const keys = (obj, own = true)=>{
28970
29054
  return null;
28971
29055
  }
28972
29056
  };
29057
+ function getPropertyDescriptor(obj, prop) {
29058
+ let desc;
29059
+ do {
29060
+ desc = Object.getOwnPropertyDescriptor(obj, prop);
29061
+ obj = Object.getPrototypeOf(obj);
29062
+ }while (!desc && obj)
29063
+ return desc;
29064
+ }
28973
29065
 
28974
29066
 
28975
29067
  /***/ }),
@@ -32911,8 +33003,8 @@ function send(uploader, data) {
32911
33003
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
32912
33004
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
32913
33005
  /* 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__);
32914
- /* harmony import */ var jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(59841);
32915
- /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51640);
33006
+ /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51640);
33007
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98394);
32916
33008
  /*!
32917
33009
  * Jodit Editor (https://xdsoft.net/jodit/)
32918
33010
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32941,13 +33033,13 @@ const transactions = {
32941
33033
  [states.START]: {
32942
33034
  exec (value) {
32943
33035
  const { element, jodit, style, mode, collapsed } = value;
32944
- 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)) {
33036
+ 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)) {
32945
33037
  return {
32946
33038
  ...value,
32947
33039
  next: states.END
32948
33040
  };
32949
33041
  }
32950
- 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);
33042
+ 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);
32951
33043
  if (elm) {
32952
33044
  return {
32953
33045
  ...value,
@@ -32955,7 +33047,7 @@ const transactions = {
32955
33047
  element: elm
32956
33048
  };
32957
33049
  }
32958
- const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.suitableClosest)(style, element, jodit.editor);
33050
+ const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
32959
33051
  if (style.elementIsList && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(suit)) {
32960
33052
  return {
32961
33053
  ...value,
@@ -32970,14 +33062,14 @@ const transactions = {
32970
33062
  }
32971
33063
  return {
32972
33064
  ...value,
32973
- next: mode !== jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
33065
+ next: mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
32974
33066
  };
32975
33067
  }
32976
33068
  },
32977
33069
  [states.LIST]: {
32978
33070
  exec (value) {
32979
33071
  const { element, jodit, mode } = value;
32980
- 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) {
33072
+ 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) {
32981
33073
  return {
32982
33074
  ...value,
32983
33075
  next: states.END
@@ -33008,7 +33100,7 @@ const transactions = {
33008
33100
  exec (value) {
33009
33101
  return {
33010
33102
  ...value,
33011
- mode: (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
33103
+ mode: (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
33012
33104
  next: states.END
33013
33105
  };
33014
33106
  }
@@ -33016,14 +33108,14 @@ const transactions = {
33016
33108
  [states.EXTRACT]: {
33017
33109
  exec (value) {
33018
33110
  const { element, jodit, style } = value;
33019
- const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.suitableClosest)(style, element, jodit.editor);
33111
+ const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
33020
33112
  (0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__.assert)(suit, 'This place should have an element');
33021
33113
  // If we're applying inline styles to a block element, don't split the block
33022
33114
  const isApplyingInlineStyle = !style.elementIsBlock && style.options.attributes?.style;
33023
33115
  const shouldNotSplitBlock = isApplyingInlineStyle && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(suit);
33024
33116
  if (!shouldNotSplitBlock) {
33025
33117
  if (!style.elementIsBlock) {
33026
- (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.extractSelectedPart)(suit, element, jodit);
33118
+ (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.extractSelectedPart)(suit, element, jodit);
33027
33119
  }
33028
33120
  return {
33029
33121
  ...value,
@@ -33041,7 +33133,7 @@ const transactions = {
33041
33133
  [states.UNWRAP_CHILDREN]: {
33042
33134
  exec (value) {
33043
33135
  const { element, style } = value;
33044
- if (!(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.unwrapChildren)(style, element)) {
33136
+ if (!(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.unwrapChildren)(style, element)) {
33045
33137
  return {
33046
33138
  ...value,
33047
33139
  next: states.WRAP
@@ -33049,7 +33141,7 @@ const transactions = {
33049
33141
  }
33050
33142
  return {
33051
33143
  ...value,
33052
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP,
33144
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
33053
33145
  next: states.END
33054
33146
  };
33055
33147
  }
@@ -33057,11 +33149,11 @@ const transactions = {
33057
33149
  [states.WRAP]: {
33058
33150
  exec (value) {
33059
33151
  const { element, jodit, style } = value;
33060
- const wrapper = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.wrap)(style, element, jodit);
33152
+ const wrapper = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.wrap)(style, element, jodit);
33061
33153
  return {
33062
33154
  ...value,
33063
33155
  next: style.elementIsList ? states.END : states.CHANGE,
33064
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.WRAP,
33156
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.WRAP,
33065
33157
  element: wrapper
33066
33158
  };
33067
33159
  }
@@ -33069,7 +33161,7 @@ const transactions = {
33069
33161
  [states.ELEMENT]: {
33070
33162
  exec (value) {
33071
33163
  const { style, element, jodit } = value;
33072
- 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) {
33164
+ 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) {
33073
33165
  return {
33074
33166
  ...value,
33075
33167
  next: states.CHANGE
@@ -33091,8 +33183,8 @@ const transactions = {
33091
33183
  [states.CHANGE]: {
33092
33184
  exec (value) {
33093
33185
  const { style, element, jodit, mode } = value;
33094
- const newMode = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__.toggleAttributes)(style, element, jodit, value.mode);
33095
- 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)) {
33186
+ const newMode = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__.toggleAttributes)(style, element, jodit, value.mode);
33187
+ 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)) {
33096
33188
  return {
33097
33189
  ...value,
33098
33190
  next: states.UNWRAP
@@ -33116,7 +33208,7 @@ const transactions = {
33116
33208
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(value.element);
33117
33209
  return {
33118
33210
  ...value,
33119
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.UNWRAP,
33211
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
33120
33212
  next: states.END
33121
33213
  };
33122
33214
  }
@@ -33126,7 +33218,7 @@ const transactions = {
33126
33218
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.replace(value.element, value.style.defaultTag, value.jodit.createInside, true);
33127
33219
  return {
33128
33220
  ...value,
33129
- mode: jodit_core_selection__WEBPACK_IMPORTED_MODULE_3__.REPLACE,
33221
+ mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__.REPLACE,
33130
33222
  next: states.END
33131
33223
  };
33132
33224
  }
@@ -34425,7 +34517,7 @@ __webpack_require__.r(__webpack_exports__);
34425
34517
  * ```
34426
34518
  * @packageDocumentation
34427
34519
  * @module constants
34428
- */ const APP_VERSION = "4.8.9";
34520
+ */ const APP_VERSION = "4.9.4";
34429
34521
  // prettier-ignore
34430
34522
  const ES = "es2021";
34431
34523
  const IS_ES_MODERN = true;
@@ -35280,7 +35372,7 @@ __webpack_require__.r(__webpack_exports__);
35280
35372
  /* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.component; },
35281
35373
  /* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce; },
35282
35374
  /* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.derive; },
35283
- /* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.getPropertyDescriptor; },
35375
+ /* harmony export */ getComponentClass: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.getComponentClass; },
35284
35376
  /* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook; },
35285
35377
  /* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.idle; },
35286
35378
  /* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.nonenumerable; },
@@ -35360,13 +35452,15 @@ __webpack_require__.r(__webpack_exports__);
35360
35452
  /* harmony export */ });
35361
35453
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
35362
35454
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
35363
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
35364
- /* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45664);
35365
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28686);
35366
- /* harmony import */ var jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55810);
35367
- /* harmony import */ var jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3050);
35368
- /* harmony import */ var jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(25974);
35369
- /* harmony import */ var jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(86189);
35455
+ /* harmony import */ var jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42689);
35456
+ /* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32328);
35457
+ /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17312);
35458
+ /* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52433);
35459
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
35460
+ /* harmony import */ var jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(55810);
35461
+ /* harmony import */ var jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3050);
35462
+ /* harmony import */ var jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25974);
35463
+ /* harmony import */ var jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(86189);
35370
35464
  /*!
35371
35465
  * Jodit Editor (https://xdsoft.net/jodit/)
35372
35466
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35383,6 +35477,8 @@ __webpack_require__.r(__webpack_exports__);
35383
35477
 
35384
35478
 
35385
35479
 
35480
+
35481
+
35386
35482
  /**
35387
35483
  * Jodit plugin system
35388
35484
  * @example
@@ -35401,18 +35497,18 @@ __webpack_require__.r(__webpack_exports__);
35401
35497
  /**
35402
35498
  * Add plugin in store
35403
35499
  */ add(name, plugin) {
35404
- this.__items.set((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName)(name), plugin);
35405
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.fire(`plugin:${name}:ready`);
35500
+ this.__items.set((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name), plugin);
35501
+ jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.fire(`plugin:${name}:ready`);
35406
35502
  }
35407
35503
  /**
35408
35504
  * Get plugin from store
35409
35505
  */ get(name) {
35410
- return this.__items.get((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName)(name));
35506
+ return this.__items.get((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name));
35411
35507
  }
35412
35508
  /**
35413
35509
  * Remove plugin from store
35414
35510
  */ remove(name) {
35415
- this.__items.delete((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.normalizeName)(name));
35511
+ this.__items.delete((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name));
35416
35512
  }
35417
35513
  __getFullPluginsList(filter) {
35418
35514
  const results = [];
@@ -35444,7 +35540,7 @@ __webpack_require__.r(__webpack_exports__);
35444
35540
  return;
35445
35541
  }
35446
35542
  const requires = plugin?.requires;
35447
- if (requires && (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isArray)(requires) && requires.length) {
35543
+ if (requires && (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_4__.isArray)(requires) && requires.length) {
35448
35544
  if (requires.some((req)=>disableList.has(req))) {
35449
35545
  return;
35450
35546
  }
@@ -35454,13 +35550,13 @@ __webpack_require__.r(__webpack_exports__);
35454
35550
  }
35455
35551
  }
35456
35552
  commit = true;
35457
- const instance = (0,jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_7__.makeInstance)(jodit, plugin);
35553
+ const instance = (0,jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_9__.makeInstance)(jodit, plugin);
35458
35554
  if (!instance) {
35459
35555
  doneList.set(name, null);
35460
35556
  waitingList.delete(name);
35461
35557
  return;
35462
35558
  }
35463
- (0,jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_5__.init)(jodit, name, plugin, instance, doneList, waitingList);
35559
+ (0,jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_7__.init)(jodit, name, plugin, instance, doneList, waitingList, this.opts.getContainer);
35464
35560
  pluginsMap[name] = instance;
35465
35561
  });
35466
35562
  if (commit) {
@@ -35469,7 +35565,7 @@ __webpack_require__.r(__webpack_exports__);
35469
35565
  }
35470
35566
  };
35471
35567
  if (extraList && extraList.length) {
35472
- (0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_6__.loadExtras)(this.__items, jodit, extraList, initPlugins);
35568
+ (0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_8__.loadExtras)(this.__items, jodit, extraList, initPlugins);
35473
35569
  }
35474
35570
  initPlugins();
35475
35571
  bindOnBeforeDestruct(jodit, pluginsMap);
@@ -35486,13 +35582,16 @@ __webpack_require__.r(__webpack_exports__);
35486
35582
  }
35487
35583
  const onReady = ()=>{
35488
35584
  resolve();
35489
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.off(`plugin:${name}:ready`, onReady);
35585
+ jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.off(`plugin:${name}:ready`, onReady);
35490
35586
  };
35491
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.on(`plugin:${name}:ready`, onReady);
35587
+ jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.on(`plugin:${name}:ready`, onReady);
35492
35588
  });
35493
35589
  }
35494
- constructor(){
35495
- (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__items", new Map());
35590
+ constructor(opts){
35591
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "opts", void 0);
35592
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__items", void 0);
35593
+ this.opts = opts;
35594
+ this.__items = new Map();
35496
35595
  }
35497
35596
  }
35498
35597
  /**
@@ -35501,7 +35600,7 @@ __webpack_require__.r(__webpack_exports__);
35501
35600
  jodit.e.on('beforeDestruct', ()=>{
35502
35601
  Object.keys(plugins).forEach((name)=>{
35503
35602
  const instance = plugins[name];
35504
- if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isDestructable)(instance)) {
35603
+ if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_5__.isDestructable)(instance)) {
35505
35604
  instance.destruct(jodit);
35506
35605
  }
35507
35606
  delete plugins[name];
@@ -35510,10 +35609,10 @@ __webpack_require__.r(__webpack_exports__);
35510
35609
  });
35511
35610
  }
35512
35611
  function getSpecialLists(jodit) {
35513
- const extraList = jodit.o.extraPlugins.map((s)=>(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isString)(s) ? {
35612
+ const extraList = jodit.o.extraPlugins.map((s)=>(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(s) ? {
35514
35613
  name: s
35515
35614
  } : s);
35516
- 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));
35615
+ 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));
35517
35616
  const filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
35518
35617
  return {
35519
35618
  extraList,
@@ -37832,17 +37931,19 @@ __webpack_require__.r(__webpack_exports__);
37832
37931
 
37833
37932
  "use strict";
37834
37933
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
37835
- /* harmony export */ component: function() { return /* binding */ component; }
37934
+ /* harmony export */ component: function() { return /* binding */ component; },
37935
+ /* harmony export */ getComponentClass: function() { return /* binding */ getComponentClass; }
37836
37936
  /* harmony export */ });
37937
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
37938
+ /* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(421);
37837
37939
  /*!
37838
37940
  * Jodit Editor (https://xdsoft.net/jodit/)
37839
37941
  * Released under MIT see LICENSE.txt in the project root for license information.
37840
37942
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
37841
- */ /**
37842
- * [[include:core/decorators/component/README.md]]
37843
- * @packageDocumentation
37844
- * @module decorators/component
37845
- */ /**
37943
+ */
37944
+
37945
+ const componentRegistry = new Map();
37946
+ /**
37846
37947
  * Decorate components and set status isReady after constructor
37847
37948
  * @param constructorFunction - Component constructor class
37848
37949
  */ function component(constructorFunction) {
@@ -37861,8 +37962,16 @@ __webpack_require__.r(__webpack_exports__);
37861
37962
  }
37862
37963
  }
37863
37964
  }
37965
+ const name = (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
37966
+ if (componentRegistry.has(name) && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
37967
+ throw new Error(`Component with name "${name}" is already registered`);
37968
+ }
37969
+ componentRegistry.set(name, newConstructorFunction);
37864
37970
  return newConstructorFunction;
37865
37971
  }
37972
+ function getComponentClass(name) {
37973
+ return componentRegistry.get(name);
37974
+ }
37866
37975
 
37867
37976
 
37868
37977
  /***/ }),
@@ -38313,11 +38422,11 @@ __webpack_require__.r(__webpack_exports__);
38313
38422
  /* harmony export */ get: function() { return /* reexport safe */ _get__WEBPACK_IMPORTED_MODULE_15__.get; },
38314
38423
  /* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
38315
38424
  /* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getDataTransfer; },
38425
+ /* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getPropertyDescriptor; },
38316
38426
  /* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.getXPathByElement; },
38317
38427
  /* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
38318
38428
  /* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
38319
38429
  /* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_22__.inView; },
38320
- /* harmony export */ isAbort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.isAbort; },
38321
38430
  /* harmony export */ isAtom: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
38322
38431
  /* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
38323
38432
  /* harmony export */ keys: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.keys; },
@@ -39052,7 +39161,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
39052
39161
  }), i = editor.i18n.bind(editor);
39053
39162
  dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent(`<div class="jodit-about">
39054
39163
  <div>${i('Jodit Editor')} v.${editor.getVersion()}</div>
39055
- <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>
39164
+ <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>
39056
39165
  <div>
39057
39166
  <a href="${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}" target="_blank">${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}</a>
39058
39167
  </div>
@@ -39060,7 +39169,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
39060
39169
  <a href="https://xdsoft.net/jodit/docs/" target="_blank">${i("Jodit User's Guide")}</a>
39061
39170
  ${i('contains detailed help for using')}
39062
39171
  </div>
39063
- <div>${i('Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.')}</div>
39172
+ <div>${i('Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.')}</div>
39064
39173
  </div>`);
39065
39174
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.css)(dialog.dialog, {
39066
39175
  minHeight: 200,
@@ -40481,9 +40590,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
40481
40590
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40482
40591
  /* harmony export */ wrapList: function() { return /* binding */ wrapList; }
40483
40592
  /* harmony export */ });
40484
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
40485
- /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51640);
40486
- /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98394);
40593
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
40594
+ /* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95971);
40595
+ /* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82794);
40596
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98394);
40487
40597
  /*!
40488
40598
  * Jodit Editor (https://xdsoft.net/jodit/)
40489
40599
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40491,32 +40601,33 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
40491
40601
  */
40492
40602
 
40493
40603
 
40604
+
40494
40605
  /**
40495
40606
  * Replaces non-leaf items with leaf items and either creates a new list or
40496
40607
  * adds a new item to the nearest old list
40497
40608
  * @private
40498
40609
  */ function wrapList(commitStyle, wrapper, jodit) {
40499
- 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);
40500
- const newWrapper = result ?? jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
40610
+ 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);
40611
+ const newWrapper = result ?? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
40501
40612
  const prev = newWrapper.previousElementSibling;
40502
40613
  const next = newWrapper.nextElementSibling;
40503
- let list = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
40504
- list ??= jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
40505
- 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)) {
40614
+ let list = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
40615
+ list ??= jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
40616
+ 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)) {
40506
40617
  list = jodit.createInside.element(commitStyle.element);
40507
- (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_1__.toggleAttributes)(commitStyle, list, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_2__.INITIAL);
40508
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
40618
+ (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);
40619
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
40509
40620
  }
40510
40621
  if (prev === list) {
40511
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
40622
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
40512
40623
  } else {
40513
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
40624
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
40514
40625
  }
40515
- 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)) {
40516
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
40517
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
40626
+ 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)) {
40627
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
40628
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
40518
40629
  }
40519
- 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);
40630
+ 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);
40520
40631
  return list;
40521
40632
  }
40522
40633
 
@@ -40630,15 +40741,17 @@ module.exports["default"] = ["Napisz coś","O Jodit","Edytor Jodit","Instrukcja
40630
40741
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
40631
40742
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
40632
40743
  /* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80251);
40633
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84839);
40634
- /* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32328);
40635
- /* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53681);
40636
- /* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63468);
40637
- /* harmony import */ var jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35676);
40638
- /* harmony import */ var jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27987);
40639
- /* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2496);
40640
- /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(15982);
40641
- /* harmony import */ var jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(40253);
40744
+ /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91672);
40745
+ /* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29200);
40746
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68616);
40747
+ /* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32328);
40748
+ /* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53681);
40749
+ /* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(63468);
40750
+ /* harmony import */ var jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35676);
40751
+ /* harmony import */ var jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27987);
40752
+ /* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2496);
40753
+ /* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(15982);
40754
+ /* harmony import */ var jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(40253);
40642
40755
  /*!
40643
40756
  * Jodit Editor (https://xdsoft.net/jodit/)
40644
40757
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40658,7 +40771,9 @@ module.exports["default"] = ["Napisz coś","O Jodit","Edytor Jodit","Instrukcja
40658
40771
 
40659
40772
 
40660
40773
 
40661
- class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGroup {
40774
+
40775
+
40776
+ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__.UIGroup {
40662
40777
  /** @override */ className() {
40663
40778
  return 'UIList';
40664
40779
  }
@@ -40668,24 +40783,24 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
40668
40783
  /**
40669
40784
  * Make new group and append it in list of elements
40670
40785
  */ makeGroup() {
40671
- return new jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit);
40786
+ return new jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__.UIGroup(this.jodit);
40672
40787
  }
40673
40788
  /**
40674
40789
  * All buttons from list
40675
40790
  */ get buttons() {
40676
- 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));
40791
+ 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));
40677
40792
  }
40678
40793
  /**
40679
40794
  * Helper for getting full plain button list
40680
40795
  */ getButtonsNames() {
40681
- return this.buttons.map((a)=>a instanceof jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__.UIButton && a.state.name || '').filter((a)=>a !== '');
40796
+ return this.buttons.map((a)=>a instanceof jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton && a.state.name || '').filter((a)=>a !== '');
40682
40797
  }
40683
40798
  setRemoveButtons(removeButtons) {
40684
40799
  this.removeButtons = removeButtons || [];
40685
40800
  return this;
40686
40801
  }
40687
40802
  build(items, target = null) {
40688
- items = (0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_4__.splitArray)(items);
40803
+ items = (0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__.splitArray)(items);
40689
40804
  this.clear();
40690
40805
  let lastBtnSeparator = false;
40691
40806
  let line = this.makeGroup();
@@ -40705,13 +40820,13 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
40705
40820
  case '|':
40706
40821
  if (!lastBtnSeparator) {
40707
40822
  lastBtnSeparator = true;
40708
- elm = new jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_7__.UISeparator(this.j);
40823
+ elm = new jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_9__.UISeparator(this.j);
40709
40824
  }
40710
40825
  break;
40711
40826
  case '---':
40712
40827
  {
40713
40828
  group.setMod('before-spacer', true);
40714
- const space = new jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_8__.UISpacer(this.j);
40829
+ const space = new jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_10__.UISpacer(this.j);
40715
40830
  line.append(space);
40716
40831
  group = this.makeGroup();
40717
40832
  line.append(group);
@@ -40739,20 +40854,20 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
40739
40854
  };
40740
40855
  const isNotRemoved = (b)=>!this.removeButtons.includes(b.name) && (!b.isVisible || b.isVisible?.(this.j, b));
40741
40856
  items.forEach((item)=>{
40742
- if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__.isButtonGroup)(item)) {
40857
+ if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_11__.isButtonGroup)(item)) {
40743
40858
  const buttons = item.buttons.filter((b)=>b);
40744
40859
  if (buttons.length) {
40745
40860
  group = this.makeGroup();
40746
40861
  group.setMod('separated', true).setMod('group', item.group);
40747
40862
  line.append(group);
40748
- (0,jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_11__.getStrongControlTypes)(buttons, this.j.o.controls).filter(isNotRemoved).forEach(addButton);
40863
+ (0,jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_13__.getStrongControlTypes)(buttons, this.j.o.controls).filter(isNotRemoved).forEach(addButton);
40749
40864
  }
40750
40865
  } else {
40751
40866
  if (!group) {
40752
40867
  group = this.makeGroup();
40753
40868
  line.append(group);
40754
40869
  }
40755
- const control = (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_10__.getControlType)(item, this.j.o.controls);
40870
+ const control = (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_12__.getControlType)(item, this.j.o.controls);
40756
40871
  isNotRemoved(control) && addButton(control);
40757
40872
  }
40758
40873
  });
@@ -40765,20 +40880,20 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
40765
40880
  /**
40766
40881
  * Create button instance
40767
40882
  */ makeButton(control, target) {
40768
- return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__.UIButton(this.j, {
40883
+ return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton(this.j, {
40769
40884
  name: control.name
40770
40885
  });
40771
40886
  }
40772
- constructor(jodit){
40773
- 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", []);
40887
+ constructor(...args){
40888
+ 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", []);
40774
40889
  }
40775
40890
  }
40776
40891
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
40777
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('mode'),
40778
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.hook)('ready')
40892
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('mode'),
40893
+ (0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_4__.hook)('ready')
40779
40894
  ], UIList.prototype, "__onChangeMode", null);
40780
40895
  UIList = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
40781
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
40896
+ jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_3__.component
40782
40897
  ], UIList);
40783
40898
 
40784
40899