jodit-pro 4.5.5 → 4.5.7

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 (292) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +2 -2
  3. package/es2015/jodit.js +356 -378
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  6. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  7. package/es2015/plugins/backup/backup.css +1 -1
  8. package/es2015/plugins/backup/backup.js +1 -1
  9. package/es2015/plugins/backup/backup.min.js +1 -1
  10. package/es2015/plugins/button-generator/button-generator.css +1 -1
  11. package/es2015/plugins/button-generator/button-generator.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  13. package/es2015/plugins/change-case/change-case.js +1 -1
  14. package/es2015/plugins/change-case/change-case.min.js +1 -1
  15. package/es2015/plugins/color-picker/color-picker.css +1 -1
  16. package/es2015/plugins/color-picker/color-picker.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  18. package/es2015/plugins/emoji/emoji.css +1 -1
  19. package/es2015/plugins/emoji/emoji.js +1 -1
  20. package/es2015/plugins/emoji/emoji.min.js +1 -1
  21. package/es2015/plugins/export-docs/export-docs.js +1 -1
  22. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  23. package/es2015/plugins/finder/finder.css +1 -1
  24. package/es2015/plugins/finder/finder.js +1 -1
  25. package/es2015/plugins/finder/finder.min.js +1 -1
  26. package/es2015/plugins/google-maps/google-maps.css +1 -1
  27. package/es2015/plugins/google-maps/google-maps.js +1 -1
  28. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  29. package/es2015/plugins/google-search/google-search.js +1 -1
  30. package/es2015/plugins/google-search/google-search.min.js +1 -1
  31. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  32. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  33. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  34. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  36. package/es2015/plugins/keyboard/keyboard.css +1 -1
  37. package/es2015/plugins/keyboard/keyboard.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  39. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  40. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  41. package/es2015/plugins/page-break/page-break.js +1 -1
  42. package/es2015/plugins/page-break/page-break.min.js +1 -1
  43. package/es2015/plugins/paste-code/paste-code.css +1 -1
  44. package/es2015/plugins/paste-code/paste-code.js +1 -1
  45. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  46. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  47. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  48. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  49. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  50. package/es2015/plugins/todo-list/todo-list.css +1 -1
  51. package/es2015/plugins/todo-list/todo-list.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  53. package/es2015/plugins/translate/translate.css +1 -1
  54. package/es2015/plugins/translate/translate.js +1 -1
  55. package/es2015/plugins/translate/translate.min.js +1 -1
  56. package/es2015/plugins/tune-block/tune-block.css +1 -1
  57. package/es2015/plugins/tune-block/tune-block.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  59. package/es2018/jodit.css +1 -1
  60. package/es2018/jodit.fat.min.js +2 -2
  61. package/es2018/jodit.js +356 -378
  62. package/es2018/jodit.min.js +2 -2
  63. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  64. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  65. package/es2018/plugins/backup/backup.css +1 -1
  66. package/es2018/plugins/backup/backup.js +1 -1
  67. package/es2018/plugins/backup/backup.min.js +1 -1
  68. package/es2018/plugins/button-generator/button-generator.css +1 -1
  69. package/es2018/plugins/button-generator/button-generator.js +1 -1
  70. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  71. package/es2018/plugins/change-case/change-case.js +1 -1
  72. package/es2018/plugins/change-case/change-case.min.js +1 -1
  73. package/es2018/plugins/color-picker/color-picker.css +1 -1
  74. package/es2018/plugins/color-picker/color-picker.js +1 -1
  75. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  76. package/es2018/plugins/emoji/emoji.css +1 -1
  77. package/es2018/plugins/emoji/emoji.js +1 -1
  78. package/es2018/plugins/emoji/emoji.min.js +1 -1
  79. package/es2018/plugins/export-docs/export-docs.js +1 -1
  80. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  81. package/es2018/plugins/finder/finder.css +1 -1
  82. package/es2018/plugins/finder/finder.js +1 -1
  83. package/es2018/plugins/finder/finder.min.js +1 -1
  84. package/es2018/plugins/google-maps/google-maps.css +1 -1
  85. package/es2018/plugins/google-maps/google-maps.js +1 -1
  86. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  87. package/es2018/plugins/google-search/google-search.js +1 -1
  88. package/es2018/plugins/google-search/google-search.min.js +1 -1
  89. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  90. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  91. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  92. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/keyboard/keyboard.css +1 -1
  95. package/es2018/plugins/keyboard/keyboard.js +1 -1
  96. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  98. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  99. package/es2018/plugins/page-break/page-break.js +1 -1
  100. package/es2018/plugins/page-break/page-break.min.js +1 -1
  101. package/es2018/plugins/paste-code/paste-code.css +1 -1
  102. package/es2018/plugins/paste-code/paste-code.js +1 -1
  103. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  104. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  105. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  106. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  107. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  108. package/es2018/plugins/todo-list/todo-list.css +1 -1
  109. package/es2018/plugins/todo-list/todo-list.js +1 -1
  110. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  111. package/es2018/plugins/translate/translate.css +1 -1
  112. package/es2018/plugins/translate/translate.js +1 -1
  113. package/es2018/plugins/translate/translate.min.js +1 -1
  114. package/es2018/plugins/tune-block/tune-block.css +1 -1
  115. package/es2018/plugins/tune-block/tune-block.js +1 -1
  116. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  117. package/es2021/jodit.css +1 -1
  118. package/es2021/jodit.fat.min.js +2 -2
  119. package/es2021/jodit.js +427 -265
  120. package/es2021/jodit.min.js +2 -2
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +1 -1
  125. package/es2021/plugins/backup/backup.min.js +1 -1
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +1 -1
  128. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/color-picker/color-picker.css +1 -1
  132. package/es2021/plugins/color-picker/color-picker.js +1 -1
  133. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  134. package/es2021/plugins/emoji/emoji.css +1 -1
  135. package/es2021/plugins/emoji/emoji.js +1 -1
  136. package/es2021/plugins/emoji/emoji.min.js +1 -1
  137. package/es2021/plugins/export-docs/export-docs.js +1 -1
  138. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  139. package/es2021/plugins/finder/finder.css +1 -1
  140. package/es2021/plugins/finder/finder.js +1 -1
  141. package/es2021/plugins/finder/finder.min.js +1 -1
  142. package/es2021/plugins/google-maps/google-maps.css +1 -1
  143. package/es2021/plugins/google-maps/google-maps.js +1 -1
  144. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  145. package/es2021/plugins/google-search/google-search.js +1 -1
  146. package/es2021/plugins/google-search/google-search.min.js +1 -1
  147. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  148. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  149. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  150. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  151. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  156. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  157. package/es2021/plugins/page-break/page-break.js +1 -1
  158. package/es2021/plugins/page-break/page-break.min.js +1 -1
  159. package/es2021/plugins/paste-code/paste-code.css +1 -1
  160. package/es2021/plugins/paste-code/paste-code.js +1 -1
  161. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  162. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  163. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  164. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  165. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  166. package/es2021/plugins/todo-list/todo-list.css +1 -1
  167. package/es2021/plugins/todo-list/todo-list.js +1 -1
  168. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  169. package/es2021/plugins/translate/translate.css +1 -1
  170. package/es2021/plugins/translate/translate.js +1 -1
  171. package/es2021/plugins/translate/translate.min.js +1 -1
  172. package/es2021/plugins/tune-block/tune-block.css +1 -1
  173. package/es2021/plugins/tune-block/tune-block.js +1 -1
  174. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  175. package/es2021.en/jodit.css +1 -1
  176. package/es2021.en/jodit.fat.min.js +2 -2
  177. package/es2021.en/jodit.js +427 -265
  178. package/es2021.en/jodit.min.js +2 -2
  179. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  180. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  181. package/es2021.en/plugins/backup/backup.css +1 -1
  182. package/es2021.en/plugins/backup/backup.js +1 -1
  183. package/es2021.en/plugins/backup/backup.min.js +1 -1
  184. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  185. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  186. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  187. package/es2021.en/plugins/change-case/change-case.js +1 -1
  188. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  189. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  190. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  191. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  192. package/es2021.en/plugins/emoji/emoji.css +1 -1
  193. package/es2021.en/plugins/emoji/emoji.js +1 -1
  194. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  195. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  196. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  197. package/es2021.en/plugins/finder/finder.css +1 -1
  198. package/es2021.en/plugins/finder/finder.js +1 -1
  199. package/es2021.en/plugins/finder/finder.min.js +1 -1
  200. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  201. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  202. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  203. package/es2021.en/plugins/google-search/google-search.js +1 -1
  204. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  205. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  206. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  207. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  208. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  209. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  210. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  211. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  212. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  213. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  214. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  215. package/es2021.en/plugins/page-break/page-break.js +1 -1
  216. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  217. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  218. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  219. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  220. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  221. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  222. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  223. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  224. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  225. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  226. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  227. package/es2021.en/plugins/translate/translate.css +1 -1
  228. package/es2021.en/plugins/translate/translate.js +1 -1
  229. package/es2021.en/plugins/translate/translate.min.js +1 -1
  230. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  231. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  232. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  233. package/es5/jodit.css +2 -2
  234. package/es5/jodit.fat.min.js +2 -2
  235. package/es5/jodit.js +356 -379
  236. package/es5/jodit.min.css +2 -2
  237. package/es5/jodit.min.js +2 -2
  238. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  239. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  240. package/es5/plugins/backup/backup.css +1 -1
  241. package/es5/plugins/backup/backup.js +1 -1
  242. package/es5/plugins/backup/backup.min.js +1 -1
  243. package/es5/plugins/button-generator/button-generator.css +1 -1
  244. package/es5/plugins/button-generator/button-generator.js +1 -1
  245. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  246. package/es5/plugins/change-case/change-case.js +1 -1
  247. package/es5/plugins/change-case/change-case.min.js +1 -1
  248. package/es5/plugins/color-picker/color-picker.css +1 -1
  249. package/es5/plugins/color-picker/color-picker.js +1 -1
  250. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  251. package/es5/plugins/emoji/emoji.css +1 -1
  252. package/es5/plugins/emoji/emoji.js +1 -1
  253. package/es5/plugins/emoji/emoji.min.js +1 -1
  254. package/es5/plugins/export-docs/export-docs.js +1 -1
  255. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  256. package/es5/plugins/finder/finder.css +1 -1
  257. package/es5/plugins/finder/finder.js +1 -1
  258. package/es5/plugins/finder/finder.min.js +1 -1
  259. package/es5/plugins/google-maps/google-maps.css +1 -1
  260. package/es5/plugins/google-maps/google-maps.js +1 -1
  261. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  262. package/es5/plugins/google-search/google-search.js +1 -1
  263. package/es5/plugins/google-search/google-search.min.js +1 -1
  264. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  265. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  266. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  267. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  268. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  269. package/es5/plugins/keyboard/keyboard.css +1 -1
  270. package/es5/plugins/keyboard/keyboard.js +1 -1
  271. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  272. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  273. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  274. package/es5/plugins/page-break/page-break.js +1 -1
  275. package/es5/plugins/page-break/page-break.min.js +1 -1
  276. package/es5/plugins/paste-code/paste-code.css +1 -1
  277. package/es5/plugins/paste-code/paste-code.js +1 -1
  278. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  279. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  280. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  281. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  282. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  283. package/es5/plugins/todo-list/todo-list.css +1 -1
  284. package/es5/plugins/todo-list/todo-list.js +1 -1
  285. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  286. package/es5/plugins/translate/translate.css +1 -1
  287. package/es5/plugins/translate/translate.js +1 -1
  288. package/es5/plugins/translate/translate.min.js +1 -1
  289. package/es5/plugins/tune-block/tune-block.css +1 -1
  290. package/es5/plugins/tune-block/tune-block.js +1 -1
  291. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  292. package/package.json +1 -1
package/es5/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.5.5
4
+ * Version: v4.5.7
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1077,18 +1077,16 @@ var Async = /*#__PURE__*/ function() {
1077
1077
  function Async() {
1078
1078
  var _this = this;
1079
1079
  _class_call_check(this, Async);
1080
- var _queueMicrotask, _window_requestIdleCallback, _window_cancelIdleCallback;
1080
+ var _a, _b, _c, _d, _e;
1081
1081
  this.timers = new Map();
1082
1082
  this.__callbacks = new Map();
1083
- var _queueMicrotask_bind;
1084
- this.__queueMicrotaskNative = (_queueMicrotask_bind = (_queueMicrotask = queueMicrotask) === null || _queueMicrotask === void 0 ? void 0 : _queueMicrotask.bind(window)) !== null && _queueMicrotask_bind !== void 0 ? _queueMicrotask_bind : Promise.resolve().then.bind(Promise.resolve());
1083
+ this.__queueMicrotaskNative = (_a = queueMicrotask === null || queueMicrotask === void 0 ? void 0 : queueMicrotask.bind(window)) !== null && _a !== void 0 ? _a : Promise.resolve().then.bind(Promise.resolve());
1085
1084
  this.promisesRejections = new Set();
1086
1085
  this.requestsIdle = new Set();
1087
1086
  this.requestsRaf = new Set();
1088
- var _window_requestIdleCallback_bind;
1089
- this.requestIdleCallbackNative = (_window_requestIdleCallback_bind = (_window_requestIdleCallback = window['requestIdleCallback']) === null || _window_requestIdleCallback === void 0 ? void 0 : _window_requestIdleCallback.bind(window)) !== null && _window_requestIdleCallback_bind !== void 0 ? _window_requestIdleCallback_bind : function(callback, options) {
1087
+ this.requestIdleCallbackNative = (_c = (_b = window['requestIdleCallback']) === null || _b === void 0 ? void 0 : _b.bind(window)) !== null && _c !== void 0 ? _c : function(callback, options) {
1088
+ var _a;
1090
1089
  var start = Date.now();
1091
- var _options_timeout;
1092
1090
  return _this.setTimeout(function() {
1093
1091
  callback({
1094
1092
  didTimeout: false,
@@ -1096,10 +1094,9 @@ var Async = /*#__PURE__*/ function() {
1096
1094
  return Math.max(0, 50 - (Date.now() - start));
1097
1095
  }
1098
1096
  });
1099
- }, (_options_timeout = options === null || options === void 0 ? void 0 : options.timeout) !== null && _options_timeout !== void 0 ? _options_timeout : 1);
1097
+ }, (_a = options === null || options === void 0 ? void 0 : options.timeout) !== null && _a !== void 0 ? _a : 1);
1100
1098
  };
1101
- var _window_cancelIdleCallback_bind;
1102
- this.__cancelIdleCallbackNative = (_window_cancelIdleCallback_bind = (_window_cancelIdleCallback = window['cancelIdleCallback']) === null || _window_cancelIdleCallback === void 0 ? void 0 : _window_cancelIdleCallback.bind(window)) !== null && _window_cancelIdleCallback_bind !== void 0 ? _window_cancelIdleCallback_bind : function(request) {
1099
+ this.__cancelIdleCallbackNative = (_e = (_d = window['cancelIdleCallback']) === null || _d === void 0 ? void 0 : _d.bind(window)) !== null && _e !== void 0 ? _e : function(request) {
1103
1100
  _this.clearTimeout(request);
1104
1101
  };
1105
1102
  this.isDestructed = false;
@@ -2094,7 +2091,7 @@ function _unsupported_iterable_to_array(o, minLen) {
2094
2091
  if (n === "Map" || n === "Set") return Array.from(n);
2095
2092
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
2096
2093
  }
2097
- var APP_VERSION = "4.5.3";
2094
+ var APP_VERSION = "4.5.5";
2098
2095
  // prettier-ignore
2099
2096
  var ES = "es2020";
2100
2097
  var IS_ES_MODERN = true;
@@ -2390,12 +2387,12 @@ var Create = /*#__PURE__*/ function() {
2390
2387
  {
2391
2388
  key: "sandbox",
2392
2389
  value: function sandbox() {
2393
- var _iframe_contentWindow;
2390
+ var _a;
2394
2391
  var iframe = this.element('iframe', {
2395
2392
  sandbox: 'allow-same-origin'
2396
2393
  });
2397
2394
  this.doc.body.appendChild(iframe);
2398
- var doc = (_iframe_contentWindow = iframe.contentWindow) === null || _iframe_contentWindow === void 0 ? void 0 : _iframe_contentWindow.document;
2395
+ var doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
2399
2396
  (0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .v)(doc, 'iframe.contentWindow.document');
2400
2397
  if (!doc) {
2401
2398
  throw Error('Iframe error');
@@ -2712,9 +2709,9 @@ function cacheHTML(target, _, descriptor) {
2712
2709
  for(var _len = arguments.length, attrs = new Array(_len), _key = 0; _key < _len; _key++){
2713
2710
  attrs[_key] = arguments[_key];
2714
2711
  }
2712
+ var _a;
2715
2713
  if (useCache && cached.has(this.constructor)) {
2716
- var _cached_get;
2717
- return (_cached_get = cached.get(this.constructor)) === null || _cached_get === void 0 ? void 0 : _cached_get.cloneNode(true);
2714
+ return (_a = cached.get(this.constructor)) === null || _a === void 0 ? void 0 : _a.cloneNode(true);
2718
2715
  }
2719
2716
  var value = fn.apply(this, attrs);
2720
2717
  if (useCache && _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isElement(value)) {
@@ -3200,8 +3197,8 @@ function persistent(target, propertyKey) {
3200
3197
  var jodit = (0,_helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_1__/* .isViewObject */ .h)(component) ? component : component.jodit, storageKey = "".concat(jodit.options.namespace).concat(component.componentName, "_prop_").concat(propertyKey), initialValue = component[propertyKey];
3201
3198
  Object.defineProperty(component, propertyKey, {
3202
3199
  get: function get() {
3203
- var _jodit_storage_get;
3204
- return (_jodit_storage_get = jodit.storage.get(storageKey)) !== null && _jodit_storage_get !== void 0 ? _jodit_storage_get : initialValue;
3200
+ var _a;
3201
+ return (_a = jodit.storage.get(storageKey)) !== null && _a !== void 0 ? _a : initialValue;
3205
3202
  },
3206
3203
  set: function set(value) {
3207
3204
  jodit.storage.set(storageKey, value);
@@ -3382,11 +3379,11 @@ function getPropertyDescriptor(obj, prop) {
3382
3379
  * Watch decorator. Added observer for some change in field value
3383
3380
  */ function watch(observeFields, opts) {
3384
3381
  return function(target, propertyKey) {
3382
+ var _a;
3385
3383
  if (!(0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(target[propertyKey])) {
3386
3384
  throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_2__/* .error */ .z3)('Handler must be a Function');
3387
3385
  }
3388
- var _opts_immediately;
3389
- var immediately = (_opts_immediately = opts === null || opts === void 0 ? void 0 : opts.immediately) !== null && _opts_immediately !== void 0 ? _opts_immediately : true;
3386
+ var immediately = (_a = opts === null || opts === void 0 ? void 0 : opts.immediately) !== null && _a !== void 0 ? _a : true;
3390
3387
  var context = opts === null || opts === void 0 ? void 0 : opts.context;
3391
3388
  var process = function(component) {
3392
3389
  var view = (0,_helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_4__/* .isViewObject */ .h)(component) ? component : component.jodit;
@@ -3931,11 +3928,11 @@ function _ts_values(o) {
3931
3928
  value: /**
3932
3929
  * Check if element is element node
3933
3930
  */ function isElement(node) {
3934
- var _node_ownerDocument;
3931
+ var _a;
3935
3932
  if (!Dom.isNode(node)) {
3936
3933
  return false;
3937
3934
  }
3938
- var win = (_node_ownerDocument = node.ownerDocument) === null || _node_ownerDocument === void 0 ? void 0 : _node_ownerDocument.defaultView;
3935
+ var win = (_a = node.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
3939
3936
  return Boolean(win && node.nodeType === Node.ELEMENT_NODE);
3940
3937
  }
3941
3938
  },
@@ -3944,11 +3941,11 @@ function _ts_values(o) {
3944
3941
  value: /**
3945
3942
  * Check if element is document fragment
3946
3943
  */ function isFragment(node) {
3947
- var _node_ownerDocument;
3944
+ var _a;
3948
3945
  if (!Dom.isNode(node)) {
3949
3946
  return false;
3950
3947
  }
3951
- var win = (_node_ownerDocument = node.ownerDocument) === null || _node_ownerDocument === void 0 ? void 0 : _node_ownerDocument.defaultView;
3948
+ var win = (_a = node.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
3952
3949
  return Boolean(win && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE);
3953
3950
  }
3954
3951
  },
@@ -3957,11 +3954,11 @@ function _ts_values(o) {
3957
3954
  value: /**
3958
3955
  * Check if element is HTMLElement node
3959
3956
  */ function isHTMLElement(node) {
3960
- var _node_ownerDocument;
3957
+ var _a;
3961
3958
  if (!Dom.isNode(node)) {
3962
3959
  return false;
3963
3960
  }
3964
- var win = (_node_ownerDocument = node.ownerDocument) === null || _node_ownerDocument === void 0 ? void 0 : _node_ownerDocument.defaultView;
3961
+ var win = (_a = node.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView;
3965
3962
  return Boolean(win && _instanceof(node, win.HTMLElement));
3966
3963
  }
3967
3964
  },
@@ -4238,8 +4235,8 @@ function _ts_values(o) {
4238
4235
  * Returns the nearest non-empty sibling
4239
4236
  */ function findNotEmptySibling(node, left) {
4240
4237
  return Dom.findSibling(node, left, function(n) {
4241
- var _n_nodeValue;
4242
- return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_n_nodeValue = n.nodeValue) === null || _n_nodeValue === void 0 ? void 0 : _n_nodeValue.length) && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq)(n.nodeValue));
4238
+ var _a;
4239
+ return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq)(n.nodeValue));
4243
4240
  });
4244
4241
  }
4245
4242
  },
@@ -4723,9 +4720,9 @@ var LazyWalker = /*#__PURE__*/ function(Eventify) {
4723
4720
  {
4724
4721
  key: "startIdleRequest",
4725
4722
  value: function startIdleRequest() {
4726
- var _this_options_timeout;
4723
+ var _a;
4727
4724
  this.idleId = this.async.requestIdleCallback(this.workPerform, {
4728
- timeout: (_this_options_timeout = this.options.timeout) !== null && _this_options_timeout !== void 0 ? _this_options_timeout : 10
4725
+ timeout: (_a = this.options.timeout) !== null && _a !== void 0 ? _a : 10
4729
4726
  });
4730
4727
  }
4731
4728
  },
@@ -4767,11 +4764,11 @@ var LazyWalker = /*#__PURE__*/ function(Eventify) {
4767
4764
  {
4768
4765
  key: "workPerform",
4769
4766
  value: function workPerform(deadline) {
4767
+ var _a;
4770
4768
  if (this.workNodes) {
4771
4769
  this.isWorked = true;
4772
4770
  var count = 0;
4773
- var _this_options_timeoutChunkSize;
4774
- var chunkSize = (_this_options_timeoutChunkSize = this.options.timeoutChunkSize) !== null && _this_options_timeoutChunkSize !== void 0 ? _this_options_timeoutChunkSize : 50;
4771
+ var chunkSize = (_a = this.options.timeoutChunkSize) !== null && _a !== void 0 ? _a : 50;
4775
4772
  while(!this.isFinished && (deadline.timeRemaining() > 0 || deadline.didTimeout && count <= chunkSize)){
4776
4773
  var item = this.workNodes.next();
4777
4774
  count += 1;
@@ -4794,11 +4791,11 @@ var LazyWalker = /*#__PURE__*/ function(Eventify) {
4794
4791
  {
4795
4792
  key: "visitNode",
4796
4793
  value: function visitNode(nodeElm) {
4794
+ var _a;
4797
4795
  if (!nodeElm || this.options.whatToShow !== undefined && nodeElm.nodeType !== this.options.whatToShow) {
4798
4796
  return false;
4799
4797
  }
4800
- var _this_emit;
4801
- return (_this_emit = this.emit('visit', nodeElm)) !== null && _this_emit !== void 0 ? _this_emit : false;
4798
+ return (_a = this.emit('visit', nodeElm)) !== null && _a !== void 0 ? _a : false;
4802
4799
  }
4803
4800
  }
4804
4801
  ]);
@@ -5119,6 +5116,7 @@ function _unsupported_iterable_to_array(o, minLen) {
5119
5116
  };
5120
5117
  }
5121
5118
  this.__eachEvent(events, function(event, namespace) {
5119
+ var _a, _b;
5122
5120
  if (event.length === 0) {
5123
5121
  throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_1__/* .error */ .z3)('Need event name');
5124
5122
  }
@@ -5130,11 +5128,10 @@ function _unsupported_iterable_to_array(o, minLen) {
5130
5128
  };
5131
5129
  store.set(event, namespace, block, options === null || options === void 0 ? void 0 : options.top);
5132
5130
  if (isDOMElement(subject)) {
5133
- var _options_capture, _options_capture1;
5134
5131
  var eOpts = _constants_js__WEBPACK_IMPORTED_MODULE_0__.PASSIVE_EVENTS.has(event) ? {
5135
5132
  passive: true,
5136
- capture: (_options_capture = options === null || options === void 0 ? void 0 : options.capture) !== null && _options_capture !== void 0 ? _options_capture : false
5137
- } : (_options_capture1 = options === null || options === void 0 ? void 0 : options.capture) !== null && _options_capture1 !== void 0 ? _options_capture1 : false;
5133
+ capture: (_a = options === null || options === void 0 ? void 0 : options.capture) !== null && _a !== void 0 ? _a : false
5134
+ } : (_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false;
5138
5135
  syntheticCallback.options = eOpts;
5139
5136
  subject.addEventListener(event, syntheticCallback, eOpts);
5140
5137
  _this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
@@ -5227,9 +5224,9 @@ function _unsupported_iterable_to_array(o, minLen) {
5227
5224
  return this;
5228
5225
  }
5229
5226
  var removeEventListener = function(block) {
5227
+ var _a;
5230
5228
  if (isDOMElement(subject)) {
5231
- var _block_syntheticCallback_options;
5232
- subject.removeEventListener(block.event, block.syntheticCallback, (_block_syntheticCallback_options = block.syntheticCallback.options) !== null && _block_syntheticCallback_options !== void 0 ? _block_syntheticCallback_options : false);
5229
+ subject.removeEventListener(block.event, block.syntheticCallback, (_a = block.syntheticCallback.options) !== null && _a !== void 0 ? _a : false);
5233
5230
  _this.__unmemoryDOMSubjectToHandler(subject, block.syntheticCallback);
5234
5231
  }
5235
5232
  }, removeCallbackFromNameSpace = function(event, namespace) {
@@ -5494,20 +5491,20 @@ var Eventify = /*#__PURE__*/ function() {
5494
5491
  {
5495
5492
  key: "on",
5496
5493
  value: function on(name, func) {
5497
- var _this___map_get;
5494
+ var _a;
5498
5495
  if (!this.__map.has(name)) {
5499
5496
  this.__map.set(name, new Set());
5500
5497
  }
5501
- (_this___map_get = this.__map.get(name)) === null || _this___map_get === void 0 ? void 0 : _this___map_get.add(func);
5498
+ (_a = this.__map.get(name)) === null || _a === void 0 ? void 0 : _a.add(func);
5502
5499
  return this;
5503
5500
  }
5504
5501
  },
5505
5502
  {
5506
5503
  key: "off",
5507
5504
  value: function off(name, func) {
5505
+ var _a;
5508
5506
  if (this.__map.has(name)) {
5509
- var _this___map_get;
5510
- (_this___map_get = this.__map.get(name)) === null || _this___map_get === void 0 ? void 0 : _this___map_get.delete(func);
5507
+ (_a = this.__map.get(name)) === null || _a === void 0 ? void 0 : _a.delete(func);
5511
5508
  }
5512
5509
  return this;
5513
5510
  }
@@ -5524,10 +5521,10 @@ var Eventify = /*#__PURE__*/ function() {
5524
5521
  for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
5525
5522
  args[_key - 1] = arguments[_key];
5526
5523
  }
5524
+ var _a;
5527
5525
  var result;
5528
5526
  if (this.__map.has(name)) {
5529
- var _this___map_get;
5530
- (_this___map_get = this.__map.get(name)) === null || _this___map_get === void 0 ? void 0 : _this___map_get.forEach(function(cb) {
5527
+ (_a = this.__map.get(name)) === null || _a === void 0 ? void 0 : _a.forEach(function(cb) {
5531
5528
  result = cb.apply(void 0, _to_consumable_array(args));
5532
5529
  });
5533
5530
  }
@@ -6002,13 +5999,13 @@ var boxes = new WeakMap();
6002
5999
  * Get root element for view
6003
6000
  * @internal
6004
6001
  */ function getPopupViewRoot(o, container, defaultRoot) {
6005
- var _o_popupRoot, _ref, _ref1;
6006
- return (_ref1 = (_ref = (_o_popupRoot = o.popupRoot) !== null && _o_popupRoot !== void 0 ? _o_popupRoot : o.shadowRoot) !== null && _ref !== void 0 ? _ref : _dom_index_js__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.closest(container, function(parentElement) {
6002
+ var _a, _b, _c;
6003
+ return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b : _dom_index_js__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.closest(container, function(parentElement) {
6007
6004
  return _dom_index_js__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.isHTMLElement(parentElement) && (_dom_index_js__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.isTag(parentElement, 'dialog') || [
6008
6005
  'fixed',
6009
6006
  'absolute'
6010
6007
  ].includes((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.css)(parentElement, 'position')));
6011
- }, defaultRoot)) !== null && _ref1 !== void 0 ? _ref1 : defaultRoot;
6008
+ }, defaultRoot)) !== null && _c !== void 0 ? _c : defaultRoot;
6012
6009
  }
6013
6010
  /**
6014
6011
  * Global event emitter
@@ -6122,8 +6119,8 @@ var boxes = new WeakMap();
6122
6119
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
6123
6120
  args[_key] = arguments[_key];
6124
6121
  }
6125
- var _reset;
6126
- var func = (0,_checker_is_native_function_js__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from) ? Array.from : (_reset = (0,_utils_reset_js__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _reset !== void 0 ? _reset : Array.from;
6122
+ var _a;
6123
+ var func = (0,_checker_is_native_function_js__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from) ? Array.from : (_a = (0,_utils_reset_js__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from;
6127
6124
  return func.apply(Array, args);
6128
6125
  };
6129
6126
 
@@ -7099,7 +7096,7 @@ function normalizeCSS(s) {
7099
7096
  });
7100
7097
  convertedString = iframeDoc.firstChild ? (0,_string_trim_js__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .Bq)(iframeDoc.body.innerHTML) : '';
7101
7098
  }
7102
- } catch (e) {} finally{
7099
+ } catch (_a) {} finally{
7103
7100
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
7104
7101
  }
7105
7102
  if (convertedString) {
@@ -8132,6 +8129,7 @@ function size(subject) {
8132
8129
  * Calculate screen element position
8133
8130
  */ function position(elm, jodit) {
8134
8131
  var recurse = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
8132
+ var _a, _b;
8135
8133
  var rect = elm.getBoundingClientRect();
8136
8134
  var xPos = rect.left, yPos = rect.top;
8137
8135
  if ((0,_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__/* .isJoditObject */ .y)(jodit) && jodit.iframe && jodit.ed.body.contains(elm) && !recurse) {
@@ -8139,12 +8137,11 @@ function size(subject) {
8139
8137
  xPos += left;
8140
8138
  yPos += top;
8141
8139
  }
8142
- var _elm_offsetWidth, _elm_offsetHeight;
8143
8140
  return {
8144
8141
  left: Math.round(xPos),
8145
8142
  top: Math.round(yPos),
8146
- width: Math.round((_elm_offsetWidth = elm.offsetWidth) !== null && _elm_offsetWidth !== void 0 ? _elm_offsetWidth : rect.width),
8147
- height: Math.round((_elm_offsetHeight = elm.offsetHeight) !== null && _elm_offsetHeight !== void 0 ? _elm_offsetHeight : rect.height)
8143
+ width: Math.round((_a = elm.offsetWidth) !== null && _a !== void 0 ? _a : rect.width),
8144
+ height: Math.round((_b = elm.offsetHeight) !== null && _b !== void 0 ? _b : rect.height)
8148
8145
  };
8149
8146
  }
8150
8147
 
@@ -9941,11 +9938,11 @@ function fastClone(object) {
9941
9938
  */
9942
9939
  var keepNames = new Map();
9943
9940
  var getClassName = function(obj) {
9944
- var _obj_constructor;
9941
+ var _a;
9945
9942
  if ((0,_checker_is_function_js__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .T)(obj.className)) {
9946
9943
  return obj.className();
9947
9944
  }
9948
- var constructor = ((_obj_constructor = obj.constructor) === null || _obj_constructor === void 0 ? void 0 : _obj_constructor.originalConstructor) || obj.constructor;
9945
+ var constructor = ((_a = obj.constructor) === null || _a === void 0 ? void 0 : _a.originalConstructor) || obj.constructor;
9949
9946
  if (keepNames.has(constructor)) {
9950
9947
  return keepNames.get(constructor);
9951
9948
  }
@@ -10022,7 +10019,7 @@ var getClassName = function(obj) {
10022
10019
  }
10023
10020
  }
10024
10021
  }
10025
- } catch (e) {
10022
+ } catch (_a) {
10026
10023
  return null; // permission denied ore another access exception
10027
10024
  }
10028
10025
  if ((0,_checker_is_void_js__WEBPACK_IMPORTED_MODULE_1__/* .isVoid */ .R)(result)) {
@@ -10318,8 +10315,8 @@ var cns = console;
10318
10315
  item.src = a.href;
10319
10316
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(a);
10320
10317
  restoreAttributes.push(function() {
10321
- var _previousAttrs_;
10322
- item.src = (_previousAttrs_ = previousAttrs[2]) !== null && _previousAttrs_ !== void 0 ? _previousAttrs_ : '';
10318
+ var _a;
10319
+ item.src = (_a = previousAttrs[2]) !== null && _a !== void 0 ? _a : '';
10323
10320
  (0,_attr_js__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .C)(item, {
10324
10321
  width: previousAttrs[0] || null,
10325
10322
  height: previousAttrs[1] || null
@@ -10427,11 +10424,11 @@ var cns = console;
10427
10424
  }
10428
10425
  try {
10429
10426
  box.appendChild(newNode);
10430
- } catch (e) {}
10427
+ } catch (_a) {}
10431
10428
  } else {
10432
10429
  try {
10433
10430
  box.appendChild(c.cloneNode(true));
10434
- } catch (e) {}
10431
+ } catch (_b) {}
10435
10432
  }
10436
10433
  }
10437
10434
  };
@@ -10480,6 +10477,7 @@ var map = {};
10480
10477
  * ```
10481
10478
  * You must use the function derived from the method immediately as its iframe is being removed
10482
10479
  */ function reset(key) {
10480
+ var _a, _b;
10483
10481
  if (!(key in map)) {
10484
10482
  var iframe = _constants_js__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
10485
10483
  try {
@@ -10497,12 +10495,10 @@ var map = {};
10497
10495
  throw e;
10498
10496
  }
10499
10497
  } finally{
10500
- var _iframe_parentNode;
10501
- (_iframe_parentNode = iframe.parentNode) === null || _iframe_parentNode === void 0 ? void 0 : _iframe_parentNode.removeChild(iframe);
10498
+ (_a = iframe.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(iframe);
10502
10499
  }
10503
10500
  }
10504
- var _map_key;
10505
- return (_map_key = map[key]) !== null && _map_key !== void 0 ? _map_key : null;
10501
+ return (_b = map[key]) !== null && _b !== void 0 ? _b : null;
10506
10502
  }
10507
10503
 
10508
10504
 
@@ -10678,7 +10674,7 @@ var $$temp = function() {
10678
10674
  if ((0,_checker_is_string_js__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .K)(element)) {
10679
10675
  try {
10680
10676
  resolved = od.querySelector(element);
10681
- } catch (e) {
10677
+ } catch (_a) {
10682
10678
  throw (0,_index_js__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3)('String "' + element + '" should be valid HTML selector');
10683
10679
  }
10684
10680
  }
@@ -10923,9 +10919,9 @@ var keys = function(obj) {
10923
10919
  * Memorize last user chose
10924
10920
  */ var memorizeExec = function(editor, _, param, preProcessValue) {
10925
10921
  var control = param.control;
10922
+ var _a;
10926
10923
  var key = "button".concat(control.command);
10927
- var _ref;
10928
- var value = (_ref = control.args && control.args[0]) !== null && _ref !== void 0 ? _ref : (0,_data_bind_js__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(editor, key);
10924
+ var value = (_a = control.args && control.args[0]) !== null && _a !== void 0 ? _a : (0,_data_bind_js__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(editor, key);
10929
10925
  if ((0,_checker_is_void_js__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(value)) {
10930
10926
  return false;
10931
10927
  }
@@ -10943,7 +10939,7 @@ var keys = function(obj) {
10943
10939
  }
10944
10940
  try {
10945
10941
  return event.dataTransfer || new DataTransfer();
10946
- } catch (e) {
10942
+ } catch (_a) {
10947
10943
  return null;
10948
10944
  }
10949
10945
  };
@@ -11730,6 +11726,7 @@ var Plugin = /*#__PURE__*/ function(ViewComponent) {
11730
11726
  {
11731
11727
  key: "__beforeDestruct",
11732
11728
  value: function __beforeDestruct() {
11729
+ var _a;
11733
11730
  if (this.isInDestruct) {
11734
11731
  return;
11735
11732
  }
@@ -11740,8 +11737,7 @@ var Plugin = /*#__PURE__*/ function(ViewComponent) {
11740
11737
  return _get(_get_prototype_of(Plugin.prototype), "destruct", this).call(this);
11741
11738
  }
11742
11739
  if ((0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_2__/* .isJoditObject */ .y)(j)) {
11743
- var _this_buttons;
11744
- (_this_buttons = this.buttons) === null || _this_buttons === void 0 ? void 0 : _this_buttons.forEach(function(btn) {
11740
+ (_a = this.buttons) === null || _a === void 0 ? void 0 : _a.forEach(function(btn) {
11745
11741
  j === null || j === void 0 ? void 0 : j.unregisterButton(btn);
11746
11742
  });
11747
11743
  }
@@ -12029,7 +12025,7 @@ var Ajax = /*#__PURE__*/ function() {
12029
12025
  try {
12030
12026
  this.__isFulfilled = true;
12031
12027
  this.xhr.abort();
12032
- } catch (e) {}
12028
+ } catch (_a) {}
12033
12029
  return this;
12034
12030
  }
12035
12031
  },
@@ -12042,7 +12038,7 @@ var Ajax = /*#__PURE__*/ function() {
12042
12038
  var _this1 = this;
12043
12039
  return this.__async.promise(/*#__PURE__*/ function() {
12044
12040
  var _ref = _async_to_generator(function(resolve, reject) {
12045
- var onReject, onResolve, _o_withCredentials, url, data, method, headers;
12041
+ var _a, onReject, onResolve, url, data, method, headers;
12046
12042
  return _ts_generator(this, function(_state) {
12047
12043
  switch(_state.label){
12048
12044
  case 0:
@@ -12065,16 +12061,16 @@ var Ajax = /*#__PURE__*/ function() {
12065
12061
  xhr.responseType = o.responseType;
12066
12062
  }
12067
12063
  xhr.onprogress = function(e) {
12068
- var _this_options_onProgress, _this_options;
12064
+ var _a, _b;
12069
12065
  var percentComplete = 0;
12070
12066
  if (e.lengthComputable) {
12071
12067
  percentComplete = e.loaded / e.total * 100;
12072
12068
  }
12073
- (_this_options_onProgress = (_this_options = _this1.options).onProgress) === null || _this_options_onProgress === void 0 ? void 0 : _this_options_onProgress.call(_this_options, percentComplete);
12069
+ (_b = (_a = _this1.options).onProgress) === null || _b === void 0 ? void 0 : _b.call(_a, percentComplete);
12074
12070
  };
12075
12071
  xhr.onreadystatechange = function() {
12076
- var _this_options_onProgress, _this_options;
12077
- (_this_options_onProgress = (_this_options = _this1.options).onProgress) === null || _this_options_onProgress === void 0 ? void 0 : _this_options_onProgress.call(_this_options, 10);
12072
+ var _a, _b;
12073
+ (_b = (_a = _this1.options).onProgress) === null || _b === void 0 ? void 0 : _b.call(_a, 10);
12078
12074
  if (xhr.readyState === XMLHttpRequest.DONE) {
12079
12075
  if (o.successStatuses.includes(xhr.status)) {
12080
12076
  onResolve();
@@ -12084,7 +12080,7 @@ var Ajax = /*#__PURE__*/ function() {
12084
12080
  }
12085
12081
  }
12086
12082
  };
12087
- xhr.withCredentials = (_o_withCredentials = o.withCredentials) !== null && _o_withCredentials !== void 0 ? _o_withCredentials : false;
12083
+ xhr.withCredentials = (_a = o.withCredentials) !== null && _a !== void 0 ? _a : false;
12088
12084
  url = request.url, data = request.data, method = request.method;
12089
12085
  xhr.open(method, url, true);
12090
12086
  if (o.contentType && xhr.setRequestHeader) {
@@ -12464,8 +12460,8 @@ var Response = /*#__PURE__*/ function() {
12464
12460
  * Check if the cursor is at the edge of the string
12465
12461
  * @private
12466
12462
  */ function cursorInTheEdgeOfString(container, offset, start, end) {
12467
- var _container_nodeValue;
12468
- var text = ((_container_nodeValue = container.nodeValue) === null || _container_nodeValue === void 0 ? void 0 : _container_nodeValue.length) ? container.nodeValue : '';
12463
+ var _a;
12464
+ var text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
12469
12465
  if (end && text.replace((0,_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
12470
12466
  return true;
12471
12467
  }
@@ -12927,10 +12923,9 @@ var Selection = /*#__PURE__*/ function() {
12927
12923
  * Clear all selection
12928
12924
  */ key: "clear",
12929
12925
  value: function clear() {
12930
- var _this_sel;
12931
- if ((_this_sel = this.sel) === null || _this_sel === void 0 ? void 0 : _this_sel.rangeCount) {
12932
- var _this_sel1;
12933
- (_this_sel1 = this.sel) === null || _this_sel1 === void 0 ? void 0 : _this_sel1.removeAllRanges();
12926
+ var _a, _b;
12927
+ if ((_a = this.sel) === null || _a === void 0 ? void 0 : _a.rangeCount) {
12928
+ (_b = this.sel) === null || _b === void 0 ? void 0 : _b.removeAllRanges();
12934
12929
  }
12935
12930
  }
12936
12931
  },
@@ -12976,7 +12971,7 @@ var Selection = /*#__PURE__*/ function() {
12976
12971
  rng.collapse(true);
12977
12972
  this.selectRange(rng);
12978
12973
  return true;
12979
- } catch (e) {}
12974
+ } catch (_a) {}
12980
12975
  return false;
12981
12976
  }
12982
12977
  },
@@ -13099,7 +13094,7 @@ var Selection = /*#__PURE__*/ function() {
13099
13094
  {
13100
13095
  key: "restoreFakes",
13101
13096
  value: function restoreFakes(fakes) {
13102
- var _fakeLeft_parentNode, _fakeLeft_parentNode1, _fakeRight_parentNode, _fakeRight_parentNode1;
13097
+ var _a, _b, _c, _d;
13103
13098
  var nodes = fakes.filter(function(n) {
13104
13099
  return n.isConnected;
13105
13100
  });
@@ -13113,10 +13108,10 @@ var Selection = /*#__PURE__*/ function() {
13113
13108
  range.setEndBefore(fakeRight);
13114
13109
  }
13115
13110
  this.selectRange(range);
13116
- if (((_fakeLeft_parentNode = fakeLeft.parentNode) === null || _fakeLeft_parentNode === void 0 ? void 0 : _fakeLeft_parentNode.firstChild) !== ((_fakeLeft_parentNode1 = fakeLeft.parentNode) === null || _fakeLeft_parentNode1 === void 0 ? void 0 : _fakeLeft_parentNode1.lastChild)) {
13111
+ if (((_a = fakeLeft.parentNode) === null || _a === void 0 ? void 0 : _a.firstChild) !== ((_b = fakeLeft.parentNode) === null || _b === void 0 ? void 0 : _b.lastChild)) {
13117
13112
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(fakeLeft);
13118
13113
  }
13119
- if ((fakeRight === null || fakeRight === void 0 ? void 0 : (_fakeRight_parentNode = fakeRight.parentNode) === null || _fakeRight_parentNode === void 0 ? void 0 : _fakeRight_parentNode.firstChild) !== (fakeRight === null || fakeRight === void 0 ? void 0 : (_fakeRight_parentNode1 = fakeRight.parentNode) === null || _fakeRight_parentNode1 === void 0 ? void 0 : _fakeRight_parentNode1.lastChild)) {
13114
+ if (((_c = fakeRight === null || fakeRight === void 0 ? void 0 : fakeRight.parentNode) === null || _c === void 0 ? void 0 : _c.firstChild) !== ((_d = fakeRight === null || fakeRight === void 0 ? void 0 : fakeRight.parentNode) === null || _d === void 0 ? void 0 : _d.lastChild)) {
13120
13115
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(fakeRight);
13121
13116
  }
13122
13117
  }
@@ -13178,7 +13173,7 @@ var Selection = /*#__PURE__*/ function() {
13178
13173
  }
13179
13174
  try {
13180
13175
  sel.addRange(ranges[i1].cloneRange());
13181
- } catch (e) {}
13176
+ } catch (_a) {}
13182
13177
  }
13183
13178
  }
13184
13179
  return info;
@@ -13192,6 +13187,7 @@ var Selection = /*#__PURE__*/ function() {
13192
13187
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
13193
13188
  preventScroll: true
13194
13189
  };
13190
+ var _a, _b;
13195
13191
  if (!this.isFocused()) {
13196
13192
  var scrollParent = (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getScrollParent)(this.j.container), scrollTop = scrollParent === null || scrollParent === void 0 ? void 0 : scrollParent.scrollTop;
13197
13193
  if (this.j.iframe) {
@@ -13212,8 +13208,7 @@ var Selection = /*#__PURE__*/ function() {
13212
13208
  this.selectRange(range1, false);
13213
13209
  }
13214
13210
  if (!this.j.editorIsActive) {
13215
- var _this_j_events, _this_j;
13216
- (_this_j = this.j) === null || _this_j === void 0 ? void 0 : (_this_j_events = _this_j.events) === null || _this_j_events === void 0 ? void 0 : _this_j_events.fire('focus');
13211
+ (_b = (_a = this.j) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.fire('focus');
13217
13212
  }
13218
13213
  return true;
13219
13214
  }
@@ -13439,7 +13434,7 @@ var Selection = /*#__PURE__*/ function() {
13439
13434
  key: "eachSelection",
13440
13435
  value: function eachSelection(callback) {
13441
13436
  var _this = this;
13442
- var _start_nodeValue;
13437
+ var _a;
13443
13438
  var sel = this.sel;
13444
13439
  if (!sel || !sel.rangeCount) {
13445
13440
  return;
@@ -13455,7 +13450,7 @@ var Selection = /*#__PURE__*/ function() {
13455
13450
  var elementOffset = startOffset < length ? startOffset : length - 1;
13456
13451
  var start = range.startContainer === this.area ? root.childNodes[elementOffset] : range.startContainer;
13457
13452
  var end = range.endContainer === this.area ? root.childNodes[range.endOffset - 1] : range.endContainer;
13458
- if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) && start === range.startContainer && range.startOffset === ((_start_nodeValue = start.nodeValue) === null || _start_nodeValue === void 0 ? void 0 : _start_nodeValue.length) && start.nextSibling) {
13453
+ if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) && start === range.startContainer && range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && start.nextSibling) {
13459
13454
  start = start.nextSibling;
13460
13455
  }
13461
13456
  if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) && end === range.endContainer && range.endOffset === 0 && end.previousSibling) {
@@ -13516,8 +13511,8 @@ var Selection = /*#__PURE__*/ function() {
13516
13511
  value: function cursorInTheEdge(start, parentBlock) {
13517
13512
  var _this = this;
13518
13513
  var fake = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
13519
- var _this_sel;
13520
- var end = !start, range = (_this_sel = this.sel) === null || _this_sel === void 0 ? void 0 : _this_sel.getRangeAt(0);
13514
+ var _a;
13515
+ var end = !start, range = (_a = this.sel) === null || _a === void 0 ? void 0 : _a.getRangeAt(0);
13521
13516
  fake !== null && fake !== void 0 ? fake : fake = this.current(false);
13522
13517
  if (!range || !fake || !_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(parentBlock, fake, true)) {
13523
13518
  return null;
@@ -13599,6 +13594,7 @@ var Selection = /*#__PURE__*/ function() {
13599
13594
  */ key: "setCursorNearWith",
13600
13595
  value: function setCursorNearWith(node, inStart) {
13601
13596
  var _this = this;
13597
+ var _a, _b;
13602
13598
  this.errorNode(node);
13603
13599
  if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.up(node, function(elm) {
13604
13600
  return elm === _this.area || elm && elm.parentNode === _this.area;
@@ -13617,9 +13613,7 @@ var Selection = /*#__PURE__*/ function() {
13617
13613
  if (inStart) {
13618
13614
  range.setStart(node, 0);
13619
13615
  } else {
13620
- var _node_nodeValue;
13621
- var _node_nodeValue_length;
13622
- range.setEnd(node, (_node_nodeValue_length = (_node_nodeValue = node.nodeValue) === null || _node_nodeValue === void 0 ? void 0 : _node_nodeValue.length) !== null && _node_nodeValue_length !== void 0 ? _node_nodeValue_length : 0);
13616
+ range.setEnd(node, (_b = (_a = node.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
13623
13617
  }
13624
13618
  }
13625
13619
  range.collapse(inStart);
@@ -13999,10 +13993,9 @@ var Selection = /*#__PURE__*/ function() {
13999
13993
  }
14000
13994
  // After splitting some part can be empty
14001
13995
  var fillFakeParent = function(fake) {
14002
- var _fake_parentNode, _fake_parentNode1;
14003
- if ((fake === null || fake === void 0 ? void 0 : (_fake_parentNode = fake.parentNode) === null || _fake_parentNode === void 0 ? void 0 : _fake_parentNode.firstChild) === (fake === null || fake === void 0 ? void 0 : (_fake_parentNode1 = fake.parentNode) === null || _fake_parentNode1 === void 0 ? void 0 : _fake_parentNode1.lastChild)) {
14004
- var _fake_parentNode2;
14005
- fake === null || fake === void 0 ? void 0 : (_fake_parentNode2 = fake.parentNode) === null || _fake_parentNode2 === void 0 ? void 0 : _fake_parentNode2.appendChild(br.cloneNode());
13996
+ var _a, _b, _c;
13997
+ if (((_a = fake === null || fake === void 0 ? void 0 : fake.parentNode) === null || _a === void 0 ? void 0 : _a.firstChild) === ((_b = fake === null || fake === void 0 ? void 0 : fake.parentNode) === null || _b === void 0 ? void 0 : _b.lastChild)) {
13998
+ (_c = fake === null || fake === void 0 ? void 0 : fake.parentNode) === null || _c === void 0 ? void 0 : _c.appendChild(br.cloneNode());
14006
13999
  }
14007
14000
  };
14008
14001
  fillFakeParent(prevFake);
@@ -14584,7 +14577,7 @@ function elementsEqualAttributes(elm1, elm2) {
14584
14577
  * @private
14585
14578
  */ function isSuitElement(commitStyle, elm, strict) {
14586
14579
  var strictStyle = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : true;
14587
- var _options_attributes;
14580
+ var _a;
14588
14581
  if (!elm || !(0,_is_normal_node_js__WEBPACK_IMPORTED_MODULE_2__/* .isNormalNode */ ._)(elm)) {
14589
14582
  return false;
14590
14583
  }
@@ -14596,7 +14589,7 @@ function elementsEqualAttributes(elm1, elm2) {
14596
14589
  if (elmIsSame && !(elementIsDefault && strict)) {
14597
14590
  return true;
14598
14591
  }
14599
- var elmHasSameStyle = Boolean(((_options_attributes = options.attributes) === null || _options_attributes === void 0 ? void 0 : _options_attributes.style) && (strictStyle ? (0,_has_same_style_js__WEBPACK_IMPORTED_MODULE_1__/* .hasSameStyle */ .g)(elm, options.attributes.style) : (0,_has_same_style_js__WEBPACK_IMPORTED_MODULE_1__/* .hasSameStyleKeys */ .Y)(elm, options.attributes.style)));
14592
+ var elmHasSameStyle = Boolean(((_a = options.attributes) === null || _a === void 0 ? void 0 : _a.style) && (strictStyle ? (0,_has_same_style_js__WEBPACK_IMPORTED_MODULE_1__/* .hasSameStyle */ .g)(elm, options.attributes.style) : (0,_has_same_style_js__WEBPACK_IMPORTED_MODULE_1__/* .hasSameStyleKeys */ .Y)(elm, options.attributes.style)));
14600
14593
  if (elmHasSameStyle && !commitStyle.elementIsList) {
14601
14594
  return true;
14602
14595
  }
@@ -14619,13 +14612,13 @@ function elementsEqualAttributes(elm1, elm2) {
14619
14612
  * Apply `{element:'strong'}`
14620
14613
  * @private
14621
14614
  */ function isSameStyleChild(commitStyle, elm) {
14622
- var _options_attributes, _options_attributes1;
14615
+ var _a, _b;
14623
14616
  var element = commitStyle.element, options = commitStyle.options;
14624
14617
  if (!elm || !(0,_is_normal_node_js__WEBPACK_IMPORTED_MODULE_2__/* .isNormalNode */ ._)(elm)) {
14625
14618
  return false;
14626
14619
  }
14627
14620
  var elmIsSame = elm.nodeName.toLowerCase() === element;
14628
- var elmHasSameStyle = Boolean(((_options_attributes = options.attributes) === null || _options_attributes === void 0 ? void 0 : _options_attributes.style) && (0,_has_same_style_js__WEBPACK_IMPORTED_MODULE_1__/* .hasSameStyleKeys */ .Y)(elm, (_options_attributes1 = options.attributes) === null || _options_attributes1 === void 0 ? void 0 : _options_attributes1.style));
14621
+ var elmHasSameStyle = Boolean(((_a = options.attributes) === null || _a === void 0 ? void 0 : _a.style) && (0,_has_same_style_js__WEBPACK_IMPORTED_MODULE_1__/* .hasSameStyleKeys */ .Y)(elm, (_b = options.attributes) === null || _b === void 0 ? void 0 : _b.style));
14629
14622
  return elmIsSame && elmHasSameStyle;
14630
14623
  }
14631
14624
 
@@ -14888,7 +14881,7 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
14888
14881
  /**
14889
14882
  * Creates an iframe into which elements will be inserted to test their default styles in the browser
14890
14883
  */ function getShadowRoot(jodit) {
14891
- var _iframe_contentWindow;
14884
+ var _a;
14892
14885
  if ((0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
14893
14886
  return (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
14894
14887
  }
@@ -14902,7 +14895,7 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
14902
14895
  });
14903
14896
  iframe.src = 'about:blank';
14904
14897
  container.appendChild(iframe);
14905
- var doc = (_iframe_contentWindow = iframe.contentWindow) === null || _iframe_contentWindow === void 0 ? void 0 : _iframe_contentWindow.document;
14898
+ var doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
14906
14899
  var shadowRoot = !doc ? jodit.od.body : doc.body;
14907
14900
  (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
14908
14901
  return shadowRoot;
@@ -14944,11 +14937,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
14944
14937
  * Unwrap all suit elements inside
14945
14938
  * @private
14946
14939
  */ function unwrapChildren(style, font) {
14947
- var _style_options_attributes;
14940
+ var _a;
14948
14941
  var needUnwrap = [];
14949
14942
  var needChangeStyle = [];
14950
14943
  var firstElementSuit;
14951
- var cssStyle = (_style_options_attributes = style.options.attributes) === null || _style_options_attributes === void 0 ? void 0 : _style_options_attributes.style;
14944
+ var cssStyle = (_a = style.options.attributes) === null || _a === void 0 ? void 0 : _a.style;
14952
14945
  if (font.firstChild) {
14953
14946
  var _loop = function() {
14954
14947
  var elm = item.value;
@@ -15122,10 +15115,10 @@ var WRAP_NODES = new Set([
15122
15115
 
15123
15116
 
15124
15117
  /** @internal */ function ApplyStyle(jodit, cs) {
15125
- var // sel.save();
15126
- _editor_firstChild;
15118
+ var _a;
15127
15119
  var sel = jodit.s, editor = jodit.editor;
15128
- (_editor_firstChild = editor.firstChild) === null || _editor_firstChild === void 0 ? void 0 : _editor_firstChild.normalize(); // FF fix for test "commandsTest - Exec command "bold"
15120
+ // sel.save();
15121
+ (_a = editor.firstChild) === null || _a === void 0 ? void 0 : _a.normalize(); // FF fix for test "commandsTest - Exec command "bold"
15129
15122
  var fakes = sel.fakes();
15130
15123
  var gen = jodit.s.wrapInTagGen(fakes);
15131
15124
  var font = gen.next();
@@ -15216,8 +15209,8 @@ var CommitStyle = /*#__PURE__*/ function() {
15216
15209
  {
15217
15210
  key: "setApplied",
15218
15211
  value: function setApplied(elm, key) {
15219
- var _this___applyMap_get;
15220
- var data = (_this___applyMap_get = this.__applyMap.get(elm)) !== null && _this___applyMap_get !== void 0 ? _this___applyMap_get : {};
15212
+ var _a;
15213
+ var data = (_a = this.__applyMap.get(elm)) !== null && _a !== void 0 ? _a : {};
15221
15214
  data[key] = true;
15222
15215
  this.__applyMap.set(elm, data);
15223
15216
  }
@@ -15608,7 +15601,7 @@ var canUsePersistentStorage = function() {
15608
15601
  var result = localStorage.getItem(tmpKey) === '1';
15609
15602
  localStorage.removeItem(tmpKey);
15610
15603
  return result;
15611
- } catch (e) {}
15604
+ } catch (_a) {}
15612
15605
  return false;
15613
15606
  };
15614
15607
  var result;
@@ -15636,7 +15629,7 @@ var canUsePersistentStorage = function() {
15636
15629
  var json = buffer ? JSON.parse(buffer) : {};
15637
15630
  json[key] = value;
15638
15631
  localStorage.setItem(this.rootKey, JSON.stringify(json));
15639
- } catch (e) {}
15632
+ } catch (_a) {}
15640
15633
  return this;
15641
15634
  }
15642
15635
  },
@@ -15645,7 +15638,7 @@ var canUsePersistentStorage = function() {
15645
15638
  value: function _delete(key) {
15646
15639
  try {
15647
15640
  localStorage.removeItem(this.rootKey);
15648
- } catch (e) {}
15641
+ } catch (_a) {}
15649
15642
  return this;
15650
15643
  }
15651
15644
  },
@@ -15656,7 +15649,7 @@ var canUsePersistentStorage = function() {
15656
15649
  var buffer = localStorage.getItem(this.rootKey);
15657
15650
  var json = buffer ? JSON.parse(buffer) : {};
15658
15651
  return json[key] !== undefined ? json[key] : null;
15659
- } catch (e) {}
15652
+ } catch (_a) {}
15660
15653
  }
15661
15654
  },
15662
15655
  {
@@ -15670,7 +15663,7 @@ var canUsePersistentStorage = function() {
15670
15663
  value: function clear() {
15671
15664
  try {
15672
15665
  localStorage.removeItem(this.rootKey);
15673
- } catch (e) {}
15666
+ } catch (_a) {}
15674
15667
  return this;
15675
15668
  }
15676
15669
  }
@@ -16143,8 +16136,8 @@ var Mods = /*#__PURE__*/ function() {
16143
16136
  * Get BEM class modification value
16144
16137
  */ key: "getMod",
16145
16138
  value: function getMod(name) {
16146
- var _this_mods_name;
16147
- return (_this_mods_name = this.mods[name]) !== null && _this_mods_name !== void 0 ? _this_mods_name : null;
16139
+ var _a;
16140
+ return (_a = this.mods[name]) !== null && _a !== void 0 ? _a : null;
16148
16141
  }
16149
16142
  }
16150
16143
  ]);
@@ -16732,10 +16725,10 @@ var UIButtonGroup = /*#__PURE__*/ function(UIGroup) {
16732
16725
  };
16733
16726
  _class_call_check(this, UIButtonGroup);
16734
16727
  var _this;
16735
- var _options_options;
16728
+ var _a, _b;
16736
16729
  _this = _call_super(this, UIButtonGroup, [
16737
16730
  jodit,
16738
- (_options_options = options.options) === null || _options_options === void 0 ? void 0 : _options_options.map(function(opt) {
16731
+ (_a = options.options) === null || _a === void 0 ? void 0 : _a.map(function(opt) {
16739
16732
  var btn = new _button_button_js__WEBPACK_IMPORTED_MODULE_1__/* .UIButton */ .lD(jodit, {
16740
16733
  text: opt.text,
16741
16734
  value: opt.value,
@@ -16749,8 +16742,7 @@ var UIButtonGroup = /*#__PURE__*/ function(UIGroup) {
16749
16742
  options
16750
16743
  ]);
16751
16744
  _this.options = options;
16752
- var _options_value;
16753
- _this.select((_options_value = options.value) !== null && _options_value !== void 0 ? _options_value : 0);
16745
+ _this.select((_b = options.value) !== null && _b !== void 0 ? _b : 0);
16754
16746
  return _this;
16755
16747
  }
16756
16748
  _create_class(UIButtonGroup, [
@@ -16778,7 +16770,7 @@ var UIButtonGroup = /*#__PURE__*/ function(UIGroup) {
16778
16770
  key: "select",
16779
16771
  value: function select(indexOrValue) {
16780
16772
  var _this = this;
16781
- var _this_options_onChange, _this_options;
16773
+ var _a, _b;
16782
16774
  this.elements.forEach(function(elm, index) {
16783
16775
  if (index === indexOrValue || elm.state.value === indexOrValue) {
16784
16776
  elm.state.activated = true;
@@ -16795,7 +16787,7 @@ var UIButtonGroup = /*#__PURE__*/ function(UIGroup) {
16795
16787
  };
16796
16788
  });
16797
16789
  this.jodit.e.fire(this, 'select', result);
16798
- (_this_options_onChange = (_this_options = this.options).onChange) === null || _this_options_onChange === void 0 ? void 0 : _this_options_onChange.call(_this_options, result);
16790
+ (_b = (_a = this.options).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, result);
16799
16791
  }
16800
16792
  }
16801
16793
  ]);
@@ -17360,8 +17352,8 @@ var UIElement = UIElement_1 = /*#__PURE__*/ function(ViewComponent) {
17360
17352
  {
17361
17353
  key: "updateParentElement",
17362
17354
  value: function updateParentElement(target) {
17363
- var _this___parentElement;
17364
- (_this___parentElement = this.__parentElement) === null || _this___parentElement === void 0 ? void 0 : _this___parentElement.updateParentElement(target);
17355
+ var _a;
17356
+ (_a = this.__parentElement) === null || _a === void 0 ? void 0 : _a.updateParentElement(target);
17365
17357
  return this;
17366
17358
  }
17367
17359
  },
@@ -17758,11 +17750,10 @@ var UIForm = /*#__PURE__*/ function(UIGroup) {
17758
17750
  }
17759
17751
  _class_call_check(this, UIForm);
17760
17752
  var _this;
17761
- var _this_options;
17753
+ var _a, _b;
17762
17754
  _this = _call_super(this, UIForm, _to_consumable_array(args));
17763
- if ((_this_options = _this.options) === null || _this_options === void 0 ? void 0 : _this_options.className) {
17764
- var _this_options1;
17765
- _this.container.classList.add((_this_options1 = _this.options) === null || _this_options1 === void 0 ? void 0 : _this_options1.className);
17755
+ if ((_a = _this.options) === null || _a === void 0 ? void 0 : _a.className) {
17756
+ _this.container.classList.add((_b = _this.options) === null || _b === void 0 ? void 0 : _b.className);
17766
17757
  }
17767
17758
  return _this;
17768
17759
  }
@@ -18833,12 +18824,12 @@ var UIInput = UIInput_1 = /*#__PURE__*/ function(UIElement) {
18833
18824
  key: "updateValidators",
18834
18825
  value: function updateValidators() {
18835
18826
  var _this = this;
18836
- var _this_state_validators;
18827
+ var _a;
18837
18828
  this.validators.clear();
18838
18829
  if (this.state.required) {
18839
18830
  this.validators.add(_validators_index_js__WEBPACK_IMPORTED_MODULE_5__/* .inputValidators.required */ .O.required);
18840
18831
  }
18841
- (_this_state_validators = this.state.validators) === null || _this_state_validators === void 0 ? void 0 : _this_state_validators.forEach(function(name) {
18832
+ (_a = this.state.validators) === null || _a === void 0 ? void 0 : _a.forEach(function(name) {
18842
18833
  var validator = _validators_index_js__WEBPACK_IMPORTED_MODULE_5__/* .inputValidators */ .O[name];
18843
18834
  validator && _this.validators.add(validator);
18844
18835
  });
@@ -18884,12 +18875,12 @@ var UIInput = UIInput_1 = /*#__PURE__*/ function(UIElement) {
18884
18875
  * Call on every native value changed
18885
18876
  */ key: "onChangeValue",
18886
18877
  value: function onChangeValue() {
18878
+ var _a, _b;
18887
18879
  var value = this.value;
18888
18880
  if (this.state.value !== value) {
18889
- var _this_state_onChange, _this_state;
18890
18881
  this.state.value = value;
18891
18882
  this.j.e.fire(this, 'change', value);
18892
- (_this_state_onChange = (_this_state = this.state).onChange) === null || _this_state_onChange === void 0 ? void 0 : _this_state_onChange.call(_this_state, value);
18883
+ (_b = (_a = this.state).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, value);
18893
18884
  }
18894
18885
  }
18895
18886
  },
@@ -18908,14 +18899,13 @@ var UIInput = UIInput_1 = /*#__PURE__*/ function(UIElement) {
18908
18899
  {
18909
18900
  key: "__markInputInvalid",
18910
18901
  value: function __markInputInvalid() {
18902
+ var _a, _b, _c, _d;
18911
18903
  if (this.error) {
18912
- var _this_nativeInput_setCustomValidity, _this_nativeInput;
18913
18904
  this.nativeInput.setAttribute('aria-invalid', 'true');
18914
- (_this_nativeInput_setCustomValidity = (_this_nativeInput = this.nativeInput).setCustomValidity) === null || _this_nativeInput_setCustomValidity === void 0 ? void 0 : _this_nativeInput_setCustomValidity.call(_this_nativeInput, this.error);
18905
+ (_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
18915
18906
  } else {
18916
- var _this_nativeInput_setCustomValidity1, _this_nativeInput1;
18917
18907
  this.nativeInput.removeAttribute('aria-invalid');
18918
- (_this_nativeInput_setCustomValidity1 = (_this_nativeInput1 = this.nativeInput).setCustomValidity) === null || _this_nativeInput_setCustomValidity1 === void 0 ? void 0 : _this_nativeInput_setCustomValidity1.call(_this_nativeInput1, '');
18908
+ (_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
18919
18909
  }
18920
18910
  }
18921
18911
  },
@@ -19209,7 +19199,7 @@ var UISelect = UISelect_1 = /*#__PURE__*/ function(UIInput) {
19209
19199
  {
19210
19200
  /** @override **/ key: "createContainer",
19211
19201
  value: function createContainer(state) {
19212
- var _state_options;
19202
+ var _a;
19213
19203
  var container = _get(_get_prototype_of(UISelect.prototype), "createContainer", this).call(this, state);
19214
19204
  var j = this.j, nativeInput = this.nativeInput;
19215
19205
  var opt = function() {
@@ -19221,7 +19211,7 @@ var UISelect = UISelect_1 = /*#__PURE__*/ function(UIInput) {
19221
19211
  option.text = j.i18n(state.placeholder);
19222
19212
  nativeInput.add(option);
19223
19213
  }
19224
- (_state_options = state.options) === null || _state_options === void 0 ? void 0 : _state_options.forEach(function(element) {
19214
+ (_a = state.options) === null || _a === void 0 ? void 0 : _a.forEach(function(element) {
19225
19215
  var option = opt();
19226
19216
  option.value = element.value.toString();
19227
19217
  option.text = j.i18n(element.text);
@@ -19924,8 +19914,8 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
19924
19914
  }
19925
19915
  };
19926
19916
  var isNotRemoved = function(b) {
19927
- var _b_isVisible;
19928
- return !_this.removeButtons.includes(b.name) && (!b.isVisible || ((_b_isVisible = b.isVisible) === null || _b_isVisible === void 0 ? void 0 : _b_isVisible.call(b, _this.j, b)));
19917
+ var _a;
19918
+ return !_this.removeButtons.includes(b.name) && (!b.isVisible || ((_a = b.isVisible) === null || _a === void 0 ? void 0 : _a.call(b, _this.j, b)));
19929
19919
  };
19930
19920
  items.forEach(function(item) {
19931
19921
  if ((0,_helpers_buttons_js__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item)) {
@@ -20270,9 +20260,9 @@ function _unsupported_iterable_to_array(o, minLen) {
20270
20260
  */ function flatButtonsSet(buttons, jodit) {
20271
20261
  var groups = jodit.getRegisteredButtonGroups();
20272
20262
  return new Set(buttons.reduce(function(acc, item) {
20263
+ var _a;
20273
20264
  if (isButtonGroup(item)) {
20274
- var _groups_item_group;
20275
- acc = acc.concat(_to_consumable_array(item.buttons).concat(_to_consumable_array((_groups_item_group = groups[item.group]) !== null && _groups_item_group !== void 0 ? _groups_item_group : [])));
20265
+ acc = acc.concat(_to_consumable_array(item.buttons).concat(_to_consumable_array((_a = groups[item.group]) !== null && _a !== void 0 ? _a : [])));
20276
20266
  } else {
20277
20267
  acc.push(item);
20278
20268
  }
@@ -20538,6 +20528,7 @@ var Icon = /*#__PURE__*/ function() {
20538
20528
  value: /**
20539
20529
  * Make icon html element
20540
20530
  */ function makeIcon(jodit, icon) {
20531
+ var _a, _b, _c, _d;
20541
20532
  if (!icon) {
20542
20533
  return;
20543
20534
  }
@@ -20546,20 +20537,17 @@ var Icon = /*#__PURE__*/ function() {
20546
20537
  var clearName = name.replace(/[^a-zA-Z0-9]/g, '_');
20547
20538
  var iconFromEvent;
20548
20539
  if (!/<svg/.test(name)) {
20549
- var _jodit_o_getIcon, _jodit_o;
20550
- iconFromEvent = (_jodit_o_getIcon = (_jodit_o = jodit.o).getIcon) === null || _jodit_o_getIcon === void 0 ? void 0 : _jodit_o_getIcon.call(_jodit_o, name, clearName);
20540
+ iconFromEvent = (_b = (_a = jodit.o).getIcon) === null || _b === void 0 ? void 0 : _b.call(_a, name, clearName);
20551
20541
  }
20552
20542
  var cacheKey = "".concat(name).concat(iconURL).concat(fill).concat(iconFromEvent !== null && iconFromEvent !== void 0 ? iconFromEvent : '');
20553
20543
  if (jodit.o.cache && this.__cache.has(cacheKey)) {
20554
- var _this___cache_get;
20555
- return (_this___cache_get = this.__cache.get(cacheKey)) === null || _this___cache_get === void 0 ? void 0 : _this___cache_get.cloneNode(true);
20544
+ return (_c = this.__cache.get(cacheKey)) === null || _c === void 0 ? void 0 : _c.cloneNode(true);
20556
20545
  }
20557
20546
  if (iconURL) {
20558
20547
  iconElement = jodit.c.span();
20559
20548
  (0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(iconElement, 'backgroundImage', 'url(' + iconURL.replace('{basePath}', (jodit === null || jodit === void 0 ? void 0 : jodit.basePath) || '') + ')');
20560
20549
  } else {
20561
- var _jodit_o_extraIcons;
20562
- var svg = iconFromEvent || Icon.get(name, '') || ((_jodit_o_extraIcons = jodit.o.extraIcons) === null || _jodit_o_extraIcons === void 0 ? void 0 : _jodit_o_extraIcons[name]);
20550
+ var svg = iconFromEvent || Icon.get(name, '') || ((_d = jodit.o.extraIcons) === null || _d === void 0 ? void 0 : _d[name]);
20563
20551
  if (svg) {
20564
20552
  iconElement = jodit.c.fromHTML(svg.trim());
20565
20553
  if (!/^<svg/i.test(name)) {
@@ -21630,12 +21618,12 @@ var ViewWithToolbar = /*#__PURE__*/ function(View) {
21630
21618
  * Helper for appended toolbar in its place
21631
21619
  */ key: "buildToolbar",
21632
21620
  value: function buildToolbar() {
21633
- var _this_toolbar;
21621
+ var _a;
21634
21622
  if (!this.o.toolbar) {
21635
21623
  return;
21636
21624
  }
21637
21625
  var buttons = this.o.buttons ? (0,_helpers_array_index_js__WEBPACK_IMPORTED_MODULE_3__/* .splitArray */ .uM)(this.o.buttons) : [];
21638
- (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.setRemoveButtons(this.o.removeButtons).build(buttons.concat(this.o.extraButtons || [])).appendTo(this.toolbarContainer);
21626
+ (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.setRemoveButtons(this.o.removeButtons).build(buttons.concat(this.o.extraButtons || [])).appendTo(this.toolbarContainer);
21639
21627
  }
21640
21628
  },
21641
21629
  {
@@ -21649,9 +21637,9 @@ var ViewWithToolbar = /*#__PURE__*/ function(View) {
21649
21637
  * Register button for a group
21650
21638
  */ key: "registerButton",
21651
21639
  value: function registerButton(btn) {
21640
+ var _a;
21652
21641
  this.registeredButtons.add(btn);
21653
- var _btn_group;
21654
- var group = (_btn_group = btn.group) !== null && _btn_group !== void 0 ? _btn_group : 'other';
21642
+ var group = (_a = btn.group) !== null && _a !== void 0 ? _a : 'other';
21655
21643
  if (!this.groupToButtons[group]) {
21656
21644
  this.groupToButtons[group] = [];
21657
21645
  }
@@ -21668,9 +21656,9 @@ var ViewWithToolbar = /*#__PURE__*/ function(View) {
21668
21656
  * Remove button from a group
21669
21657
  */ key: "unregisterButton",
21670
21658
  value: function unregisterButton(btn) {
21659
+ var _a;
21671
21660
  this.registeredButtons.delete(btn);
21672
- var _btn_group;
21673
- var groupName = (_btn_group = btn.group) !== null && _btn_group !== void 0 ? _btn_group : 'other', group = this.groupToButtons[groupName];
21661
+ var groupName = (_a = btn.group) !== null && _a !== void 0 ? _a : 'other', group = this.groupToButtons[groupName];
21674
21662
  if (group) {
21675
21663
  var index = group.indexOf(btn.name);
21676
21664
  if (index !== -1) {
@@ -22098,8 +22086,8 @@ var View = View_1 = /*#__PURE__*/ function(Component) {
22098
22086
  * Can change ownerWindow here
22099
22087
  */ key: "initOwners",
22100
22088
  value: function initOwners() {
22101
- var _this_o_ownerWindow;
22102
- this.ownerWindow = (_this_o_ownerWindow = this.o.ownerWindow) !== null && _this_o_ownerWindow !== void 0 ? _this_o_ownerWindow : window;
22089
+ var _a;
22090
+ this.ownerWindow = (_a = this.o.ownerWindow) !== null && _a !== void 0 ? _a : window;
22103
22091
  }
22104
22092
  },
22105
22093
  {
@@ -22160,18 +22148,18 @@ var View = View_1 = /*#__PURE__*/ function(Component) {
22160
22148
  {
22161
22149
  /** @override */ key: "destruct",
22162
22150
  value: function destruct() {
22163
- var _cached, _cached1, _cached2;
22151
+ var _a, _b, _c;
22164
22152
  if (this.isDestructed) {
22165
22153
  return;
22166
22154
  }
22167
- (_cached = (0,_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_5__/* .cached */ .PO)(this, 'progressbar')) === null || _cached === void 0 ? void 0 : _cached.destruct();
22168
- (_cached1 = (0,_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_5__/* .cached */ .PO)(this, 'message')) === null || _cached1 === void 0 ? void 0 : _cached1.destruct();
22155
+ (_a = (0,_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_5__/* .cached */ .PO)(this, 'progressbar')) === null || _a === void 0 ? void 0 : _a.destruct();
22156
+ (_b = (0,_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_5__/* .cached */ .PO)(this, 'message')) === null || _b === void 0 ? void 0 : _b.destruct();
22169
22157
  if (this.events) {
22170
22158
  this.events.destruct();
22171
22159
  // @ts-ignore
22172
22160
  this.events = undefined;
22173
22161
  }
22174
- (_cached2 = (0,_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_5__/* .cached */ .PO)(this, 'buffer')) === null || _cached2 === void 0 ? void 0 : _cached2.clear();
22162
+ (_c = (0,_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_5__/* .cached */ .PO)(this, 'buffer')) === null || _c === void 0 ? void 0 : _c.clear();
22175
22163
  _dom_index_js__WEBPACK_IMPORTED_MODULE_7__/* .Dom */ .J.safeRemove(this.container);
22176
22164
  _get(_get_prototype_of(View.prototype), "destruct", this).call(this);
22177
22165
  }
@@ -22285,10 +22273,10 @@ Object.keys(_styles_icons_index_js__WEBPACK_IMPORTED_MODULE_7__).filter(esFilter
22285
22273
  });
22286
22274
  // Modules
22287
22275
  Object.keys(_modules_index_js__WEBPACK_IMPORTED_MODULE_4__).filter(esFilter).forEach(function(key) {
22288
- var _module_prototype;
22276
+ var _a;
22289
22277
  // @ts-ignore
22290
22278
  var module = _modules_index_js__WEBPACK_IMPORTED_MODULE_4__[key];
22291
- var name = (0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_module_prototype = module.prototype) === null || _module_prototype === void 0 ? void 0 : _module_prototype.className) ? module.prototype.className() : key;
22279
+ var name = (0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className) ? module.prototype.className() : key;
22292
22280
  if (!(0,_core_helpers_checker_index_js__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
22293
22281
  console.warn('Module name must be a string', key);
22294
22282
  return;
@@ -23649,7 +23637,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
23649
23637
  // if enter plugin isn't installed
23650
23638
  try {
23651
23639
  _this.ed.execCommand('defaultParagraphSeparator', false, _this.o.enter.toLowerCase());
23652
- } catch (e) {}
23640
+ } catch (_a) {}
23653
23641
  });
23654
23642
  }
23655
23643
  },
@@ -23754,14 +23742,14 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
23754
23742
  */ key: "destruct",
23755
23743
  value: function destruct() {
23756
23744
  var _this = this;
23757
- var _cached, _cached1;
23745
+ var _a, _b;
23758
23746
  if (this.isInDestruct) {
23759
23747
  return;
23760
23748
  }
23761
23749
  this.setStatus(_modules_index_js__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
23762
23750
  this.__elementToPlace.clear();
23763
- (_cached = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'storage')) === null || _cached === void 0 ? void 0 : _cached.clear();
23764
- (_cached1 = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'buffer')) === null || _cached1 === void 0 ? void 0 : _cached1.clear();
23751
+ (_a = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'storage')) === null || _a === void 0 ? void 0 : _a.clear();
23752
+ (_b = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'buffer')) === null || _b === void 0 ? void 0 : _b.clear();
23765
23753
  this.commands.clear();
23766
23754
  this.__selectionLocked = null;
23767
23755
  this.e.off(this.ow, 'resize');
@@ -28893,8 +28881,8 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
28893
28881
  _this.jodit && action.setParentView(_this.jodit);
28894
28882
  action.setMod('context', 'menu');
28895
28883
  action.onAction(function(e) {
28896
- var _item_exec;
28897
- (_item_exec = item.exec) === null || _item_exec === void 0 ? void 0 : _item_exec.call(self, e);
28884
+ var _a;
28885
+ (_a = item.exec) === null || _a === void 0 ? void 0 : _a.call(self, e);
28898
28886
  self.clear();
28899
28887
  self.close();
28900
28888
  return false;
@@ -30243,7 +30231,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function()
30243
30231
  var image = self.c.element('img');
30244
30232
  image.setAttribute('src', src);
30245
30233
  var onload = function() {
30246
- var _self_events;
30234
+ var _a;
30247
30235
  if (self.isInDestruct) {
30248
30236
  return;
30249
30237
  }
@@ -30260,7 +30248,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function()
30260
30248
  temp_content.appendChild(preview_box);
30261
30249
  preview_box.appendChild(image);
30262
30250
  preview.setPosition();
30263
- self === null || self === void 0 ? void 0 : (_self_events = self.events) === null || _self_events === void 0 ? void 0 : _self_events.fire('previewOpenedAndLoaded');
30251
+ (_a = self === null || self === void 0 ? void 0 : self.events) === null || _a === void 0 ? void 0 : _a.fire('previewOpenedAndLoaded');
30264
30252
  };
30265
30253
  self.e.on(image, 'load', onload);
30266
30254
  if (image.complete) {
@@ -31335,8 +31323,8 @@ var DataProvider = /*#__PURE__*/ function() {
31335
31323
  return item.type === 'folder' || !mods.onlyImages || item.isImage === undefined || item.isImage;
31336
31324
  };
31337
31325
  var inFilter = function(item) {
31338
- var _mods_filterWord;
31339
- return !((_mods_filterWord = mods.filterWord) === null || _mods_filterWord === void 0 ? void 0 : _mods_filterWord.length) || _this.o.filter === undefined || _this.o.filter(item, mods.filterWord);
31326
+ var _a;
31327
+ return !((_a = mods.filterWord) === null || _a === void 0 ? void 0 : _a.length) || _this.o.filter === undefined || _this.o.filter(item, mods.filterWord);
31340
31328
  };
31341
31329
  sources.forEach(function(source) {
31342
31330
  if (source.files && source.files.length) {
@@ -32201,11 +32189,11 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32201
32189
  key: "_dialog",
32202
32190
  get: function get() {
32203
32191
  var _this = this;
32204
- var _this_o_headerButtons;
32192
+ var _a;
32205
32193
  var dialog = this.dlg({
32206
32194
  minWidth: Math.min(700, screen.width),
32207
32195
  minHeight: 300,
32208
- buttons: (_this_o_headerButtons = this.o.headerButtons) !== null && _this_o_headerButtons !== void 0 ? _this_o_headerButtons : [
32196
+ buttons: (_a = this.o.headerButtons) !== null && _a !== void 0 ? _a : [
32209
32197
  'fullsize',
32210
32198
  'dialog.close'
32211
32199
  ]
@@ -32284,7 +32272,7 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32284
32272
  var callback = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.o.defaultCallback, onlyImages = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
32285
32273
  this.state.onlyImages = onlyImages;
32286
32274
  return this.async.promise(function(resolve, reject) {
32287
- var _this_toolbar;
32275
+ var _a;
32288
32276
  if (!_this.o.items || !_this.o.items.url) {
32289
32277
  throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.error)('Need set options.filebrowser.ajax.url');
32290
32278
  }
@@ -32297,16 +32285,16 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32297
32285
  localTimeout = now;
32298
32286
  }).off('select.filebrowser').on('select.filebrowser', _this.onSelect(callback));
32299
32287
  var header = _this.c.div();
32300
- (_this_toolbar = _this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.appendTo(header);
32288
+ (_a = _this.toolbar) === null || _a === void 0 ? void 0 : _a.appendTo(header);
32301
32289
  _this.__updateToolbarButtons();
32302
32290
  _this._dialog.open(_this.browser, header);
32303
32291
  _this.e.fire('sort.filebrowser', _this.state.sortBy);
32304
32292
  (0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(_this).then(resolve, reject).finally(function() {
32305
- var _this_e, _this1;
32293
+ var _a;
32306
32294
  if (_this.isInDestruct) {
32307
32295
  return;
32308
32296
  }
32309
- (_this1 = _this) === null || _this1 === void 0 ? void 0 : (_this_e = _this1.e) === null || _this_e === void 0 ? void 0 : _this_e.fire('fileBrowserReady.filebrowser');
32297
+ (_a = _this === null || _this === void 0 ? void 0 : _this.e) === null || _a === void 0 ? void 0 : _a.fire('fileBrowserReady.filebrowser');
32310
32298
  });
32311
32299
  }).catch(function(e) {
32312
32300
  if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(e) && !_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_PROD) {
@@ -32319,8 +32307,8 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32319
32307
  key: "__getButtons",
32320
32308
  value: function __getButtons() {
32321
32309
  var _this = this;
32322
- var _this_o_buttons;
32323
- var options = (_this_o_buttons = this.o.buttons) !== null && _this_o_buttons !== void 0 ? _this_o_buttons : [];
32310
+ var _a;
32311
+ var options = (_a = this.o.buttons) !== null && _a !== void 0 ? _a : [];
32324
32312
  return options.filter(function(btn) {
32325
32313
  if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.isString)(btn)) {
32326
32314
  return true;
@@ -32341,8 +32329,8 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32341
32329
  key: "initUploader",
32342
32330
  value: function initUploader(editor) {
32343
32331
  var _this = this;
32344
- var _editor_options;
32345
- var self = this, options = editor === null || editor === void 0 ? void 0 : (_editor_options = editor.options) === null || _editor_options === void 0 ? void 0 : _editor_options.uploader, uploaderOptions = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, _config_js__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
32332
+ var _a;
32333
+ var self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, _config_js__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
32346
32334
  var uploadHandler = function() {
32347
32335
  return (0,_fetch_load_items_js__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(_this);
32348
32336
  };
@@ -32362,11 +32350,11 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32362
32350
  {
32363
32351
  key: "destruct",
32364
32352
  value: function destruct() {
32365
- var _cached;
32353
+ var _a;
32366
32354
  if (this.isInDestruct) {
32367
32355
  return;
32368
32356
  }
32369
- (_cached = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_2__.cached)(this, '_dialog')) === null || _cached === void 0 ? void 0 : _cached.destruct();
32357
+ (_a = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_2__.cached)(this, '_dialog')) === null || _a === void 0 ? void 0 : _a.destruct();
32370
32358
  _get(_get_prototype_of(FileBrowser.prototype), "destruct", this).call(this);
32371
32359
  this.events && this.e.off('.filebrowser');
32372
32360
  this.uploader && this.uploader.destruct();
@@ -32375,13 +32363,13 @@ var FileBrowser = /*#__PURE__*/ function(ViewWithToolbar) {
32375
32363
  {
32376
32364
  key: "__updateToolbarButtons",
32377
32365
  value: function __updateToolbarButtons() {
32378
- var _this_toolbar;
32366
+ var _a;
32379
32367
  var buttons = this.__getButtons();
32380
32368
  if (isEqualButtonList(this.__prevButtons, buttons)) {
32381
32369
  return;
32382
32370
  }
32383
32371
  this.__prevButtons = buttons;
32384
- (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.build(buttons);
32372
+ (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.build(buttons);
32385
32373
  }
32386
32374
  }
32387
32375
  ]);
@@ -33485,8 +33473,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
33485
33473
  {
33486
33474
  key: "fireChangeStack",
33487
33475
  value: function fireChangeStack() {
33488
- var _this_j_events;
33489
- this.j && !this.j.isInDestruct && ((_this_j_events = this.j.events) === null || _this_j_events === void 0 ? void 0 : _this_j_events.fire('changeStack'));
33476
+ var _a;
33477
+ this.j && !this.j.isInDestruct && ((_a = this.j.events) === null || _a === void 0 ? void 0 : _a.fire('changeStack'));
33490
33478
  }
33491
33479
  },
33492
33480
  {
@@ -35447,9 +35435,8 @@ var StatusBar = /*#__PURE__*/ function(ViewComponent) {
35447
35435
  * Height of statusbar
35448
35436
  */ key: "getHeight",
35449
35437
  value: function getHeight() {
35450
- var _this_container;
35451
- var _this_container_offsetHeight;
35452
- return (_this_container_offsetHeight = (_this_container = this.container) === null || _this_container === void 0 ? void 0 : _this_container.offsetHeight) !== null && _this_container_offsetHeight !== void 0 ? _this_container_offsetHeight : 0;
35438
+ var _a, _b;
35439
+ return (_b = (_a = this.container) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0;
35453
35440
  }
35454
35441
  },
35455
35442
  {
@@ -35471,13 +35458,13 @@ var StatusBar = /*#__PURE__*/ function(ViewComponent) {
35471
35458
  */ key: "append",
35472
35459
  value: function append(child) {
35473
35460
  var inTheRight = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
35474
- var _this_container;
35461
+ var _a;
35475
35462
  var wrapper = this.findEmpty(inTheRight) || this.j.c.div(this.getFullElName('item'));
35476
35463
  if (inTheRight) {
35477
35464
  wrapper.classList.add(this.getFullElName('item-right'));
35478
35465
  }
35479
35466
  wrapper.appendChild(child);
35480
- (_this_container = this.container) === null || _this_container === void 0 ? void 0 : _this_container.appendChild(wrapper);
35467
+ (_a = this.container) === null || _a === void 0 ? void 0 : _a.appendChild(wrapper);
35481
35468
  if (this.j.o.statusbar) {
35482
35469
  this.show();
35483
35470
  }
@@ -35940,6 +35927,7 @@ var Table = /*#__PURE__*/ function(ViewComponent) {
35940
35927
  {
35941
35928
  key: "__appendRow",
35942
35929
  value: function __appendRow(table, line, after, create) {
35930
+ var _a;
35943
35931
  var row;
35944
35932
  if (!line) {
35945
35933
  var columnsCount = Table.__getColumnsCount(table);
@@ -35965,8 +35953,7 @@ var Table = /*#__PURE__*/ function(ViewComponent) {
35965
35953
  } else if (!after && line) {
35966
35954
  line.parentNode && line.parentNode.insertBefore(row, line);
35967
35955
  } else {
35968
- var _table_getElementsByTagName;
35969
- (((_table_getElementsByTagName = table.getElementsByTagName('tbody')) === null || _table_getElementsByTagName === void 0 ? void 0 : _table_getElementsByTagName[0]) || table).appendChild(row);
35956
+ (((_a = table.getElementsByTagName('tbody')) === null || _a === void 0 ? void 0 : _a[0]) || table).appendChild(row);
35970
35957
  }
35971
35958
  }
35972
35959
  },
@@ -36337,9 +36324,9 @@ var Table = /*#__PURE__*/ function(ViewComponent) {
36337
36324
  {
36338
36325
  key: "__mark",
36339
36326
  value: function __mark(cell, key, value, marked) {
36327
+ var _a;
36340
36328
  marked.push(cell);
36341
- var _markedValue_get;
36342
- var dict = (_markedValue_get = markedValue.get(cell)) !== null && _markedValue_get !== void 0 ? _markedValue_get : {};
36329
+ var dict = (_a = markedValue.get(cell)) !== null && _a !== void 0 ? _a : {};
36343
36330
  dict[key] = value === undefined ? 1 : value;
36344
36331
  markedValue.set(cell, dict);
36345
36332
  }
@@ -36669,18 +36656,18 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36669
36656
  {
36670
36657
  /** @override **/ key: "update",
36671
36658
  value: function update() {
36672
- var _control_value, _control_update;
36659
+ var _a, _b;
36673
36660
  var _this = this, control = _this.control, state = _this.state, tc = this.closest(_collection_collection_js__WEBPACK_IMPORTED_MODULE_8__/* .ToolbarCollection */ .Q);
36674
36661
  if (!tc) {
36675
36662
  return;
36676
36663
  }
36677
- var value = (_control_value = control.value) === null || _control_value === void 0 ? void 0 : _control_value.call(control, tc.jodit, this);
36664
+ var value = (_a = control.value) === null || _a === void 0 ? void 0 : _a.call(control, tc.jodit, this);
36678
36665
  if (value !== undefined) {
36679
36666
  state.value = value;
36680
36667
  }
36681
36668
  state.disabled = this.__calculateDisabledStatus(tc);
36682
36669
  state.activated = this.__calculateActivatedStatus(tc);
36683
- (_control_update = control.update) === null || _control_update === void 0 ? void 0 : _control_update.call(control, tc.jodit, this);
36670
+ (_b = control.update) === null || _b === void 0 ? void 0 : _b.call(control, tc.jodit, this);
36684
36671
  }
36685
36672
  },
36686
36673
  {
@@ -36688,11 +36675,11 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36688
36675
  * Calculates whether the button is active
36689
36676
  */ key: "__calculateActivatedStatus",
36690
36677
  value: function __calculateActivatedStatus(tc) {
36691
- var _this_control_isActive, _this_control;
36678
+ var _a, _b;
36692
36679
  if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isJoditObject)(this.j) && !this.j.editorIsActive) {
36693
36680
  return false;
36694
36681
  }
36695
- if ((_this_control_isActive = (_this_control = this.control).isActive) === null || _this_control_isActive === void 0 ? void 0 : _this_control_isActive.call(_this_control, this.j, this)) {
36682
+ if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
36696
36683
  return true;
36697
36684
  }
36698
36685
  return Boolean(tc && tc.shouldBeActive(this));
@@ -36703,14 +36690,14 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36703
36690
  * Calculates whether an element is blocked for the user
36704
36691
  */ key: "__calculateDisabledStatus",
36705
36692
  value: function __calculateDisabledStatus(tc) {
36706
- var _this_control_isDisabled, _this_control;
36693
+ var _a, _b;
36707
36694
  if (this.j.o.disabled) {
36708
36695
  return true;
36709
36696
  }
36710
36697
  if (this.j.o.readonly && (!this.j.o.activeButtonsInReadOnly || !this.j.o.activeButtonsInReadOnly.includes(this.control.name))) {
36711
36698
  return true;
36712
36699
  }
36713
- if ((_this_control_isDisabled = (_this_control = this.control).isDisabled) === null || _this_control_isDisabled === void 0 ? void 0 : _this_control_isDisabled.call(_this_control, this.j, this)) {
36700
+ if ((_b = (_a = this.control).isDisabled) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
36714
36701
  return true;
36715
36702
  }
36716
36703
  return Boolean(tc && tc.shouldBeDisabled(this));
@@ -36762,8 +36749,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36762
36749
  {
36763
36750
  /** @override */ key: "focus",
36764
36751
  value: function focus() {
36765
- var _this_container_querySelector;
36766
- (_this_container_querySelector = this.container.querySelector('button')) === null || _this_container_querySelector === void 0 ? void 0 : _this_container_querySelector.focus();
36752
+ var _a;
36753
+ (_a = this.container.querySelector('button')) === null || _a === void 0 ? void 0 : _a.focus();
36767
36754
  }
36768
36755
  },
36769
36756
  {
@@ -36791,6 +36778,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36791
36778
  * Init constant data from control
36792
36779
  */ key: "__initFromControl",
36793
36780
  value: function __initFromControl() {
36781
+ var _a;
36794
36782
  var _this = this, ctr = _this.control, state = _this.state;
36795
36783
  this.updateSize();
36796
36784
  state.name = ctr.name;
@@ -36802,9 +36790,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36802
36790
  if (ctr.iconURL) {
36803
36791
  state.icon.iconURL = ctr.iconURL;
36804
36792
  } else {
36805
- var _this_j_o_extraIcons;
36806
36793
  var name = ctr.icon || ctr.name;
36807
- state.icon.name = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_6__/* .Icon */ .I.exists(name) || ((_this_j_o_extraIcons = this.j.o.extraIcons) === null || _this_j_o_extraIcons === void 0 ? void 0 : _this_j_o_extraIcons[name]) ? name : '';
36794
+ state.icon.name = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_6__/* .Icon */ .I.exists(name) || ((_a = this.j.o.extraIcons) === null || _a === void 0 ? void 0 : _a[name]) ? name : '';
36808
36795
  }
36809
36796
  if (!ctr.iconURL && !state.icon.name) {
36810
36797
  state.text = ctr.text || ctr.name;
@@ -36822,6 +36809,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36822
36809
  */ key: "onTriggerClick",
36823
36810
  value: function onTriggerClick(e) {
36824
36811
  var _this = this;
36812
+ var _a, _b, _c;
36825
36813
  if (this.openedPopup) {
36826
36814
  this.__closePopup();
36827
36815
  return;
@@ -36838,9 +36826,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36838
36826
  popup.parentElement = this;
36839
36827
  try {
36840
36828
  if (this.j.e.fire((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.camelCase)("before-".concat(ctr.name, "-open-popup")), this.target, ctr, popup) !== false) {
36841
- var _this_toolbar;
36842
- var _this_toolbar_getTarget, _ref;
36843
- var target = (_ref = (_this_toolbar_getTarget = (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.getTarget(this)) !== null && _this_toolbar_getTarget !== void 0 ? _this_toolbar_getTarget : this.target) !== null && _ref !== void 0 ? _ref : null;
36829
+ var target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
36844
36830
  var elm = ctr.popup(this.j, target, this.__closePopup, this);
36845
36831
  if (elm) {
36846
36832
  popup.setContent((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(function() {
@@ -36868,8 +36854,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36868
36854
  */ key: "__openControlList",
36869
36855
  value: function __openControlList(control) {
36870
36856
  var _this = this;
36871
- var _this_jodit_options_controls;
36872
- var controls = (_this_jodit_options_controls = this.jodit.options.controls) !== null && _this_jodit_options_controls !== void 0 ? _this_jodit_options_controls : {}, getControl = function(key) {
36857
+ var _a;
36858
+ var controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = function(key) {
36873
36859
  return (0,_core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_5__/* .findControlType */ .x)(key, controls);
36874
36860
  };
36875
36861
  var list = control.list, menu = this.openPopup(), toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_9__/* .makeCollection */ .$K)(this.j);
@@ -36901,8 +36887,8 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36901
36887
  return childTemplate(j, k, v, _this);
36902
36888
  },
36903
36889
  exec: control.childExec ? function(view, current, options) {
36904
- var _control_childExec;
36905
- return (_control_childExec = control.childExec) === null || _control_childExec === void 0 ? void 0 : _control_childExec.call(control, view, current, _object_spread_props(_object_spread({}, options), {
36890
+ var _a;
36891
+ return (_a = control.childExec) === null || _a === void 0 ? void 0 : _a.call(control, view, current, _object_spread_props(_object_spread({}, options), {
36906
36892
  parentControl: control
36907
36893
  }));
36908
36894
  } : control.exec,
@@ -36968,11 +36954,10 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36968
36954
  * Click handler
36969
36955
  */ key: "onClick",
36970
36956
  value: function onClick(originalEvent) {
36957
+ var _a, _b, _c, _d, _e, _f, _g;
36971
36958
  var _this = this, ctr = _this.control;
36972
36959
  if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(ctr.exec)) {
36973
- var _this_toolbar;
36974
- var _this_toolbar_getTarget, _ref;
36975
- var target = (_ref = (_this_toolbar_getTarget = (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.getTarget(this)) !== null && _this_toolbar_getTarget !== void 0 ? _this_toolbar_getTarget : this.target) !== null && _ref !== void 0 ? _ref : null;
36960
+ var target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
36976
36961
  var result = ctr.exec(this.j, target, {
36977
36962
  control: ctr,
36978
36963
  originalEvent: originalEvent,
@@ -36980,14 +36965,13 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
36980
36965
  });
36981
36966
  // For memorise exec
36982
36967
  if (result !== false && result !== true) {
36983
- var _this_j_e, _this_j, /**
36984
- * Fired after calling `button.exec` function
36985
- */ _this_j_e1, _this_j1;
36986
- (_this_j = this.j) === null || _this_j === void 0 ? void 0 : (_this_j_e = _this_j.e) === null || _this_j_e === void 0 ? void 0 : _this_j_e.fire('synchro');
36968
+ (_e = (_d = this.j) === null || _d === void 0 ? void 0 : _d.e) === null || _e === void 0 ? void 0 : _e.fire('synchro');
36987
36969
  if (this.parentElement) {
36988
36970
  this.parentElement.update();
36989
36971
  }
36990
- (_this_j1 = this.j) === null || _this_j1 === void 0 ? void 0 : (_this_j_e1 = _this_j1.e) === null || _this_j_e1 === void 0 ? void 0 : _this_j_e1.fire('closeAllPopups afterExec');
36972
+ /**
36973
+ * Fired after calling `button.exec` function
36974
+ */ (_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('closeAllPopups afterExec');
36991
36975
  }
36992
36976
  if (result !== false) {
36993
36977
  return;
@@ -37372,19 +37356,18 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
37372
37356
  {
37373
37357
  key: "update",
37374
37358
  value: function update() {
37359
+ var _a, _b, _c;
37375
37360
  _get(_get_prototype_of(ToolbarSelect.prototype), "update", this).call(this);
37376
37361
  this.state.icon.name = '';
37377
37362
  var _this_control = this.control, list = _this_control.list, data = _this_control.data;
37378
37363
  if (list) {
37379
- var _this_control_textTemplate, _this_control1;
37380
37364
  var key = this.state.value || (data && (0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(data.currentValue) ? data.currentValue : undefined);
37381
37365
  if (!key) {
37382
37366
  var keys = Object.keys(list);
37383
37367
  key = keys[0];
37384
37368
  }
37385
37369
  var text = ((0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
37386
- var _this_control_textTemplate1;
37387
- this.state.text = (_this_control_textTemplate1 = (_this_control_textTemplate = (_this_control1 = this.control).textTemplate) === null || _this_control_textTemplate === void 0 ? void 0 : _this_control_textTemplate.call(_this_control1, this.jodit, text)) !== null && _this_control_textTemplate1 !== void 0 ? _this_control_textTemplate1 : text;
37370
+ this.state.text = (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
37388
37371
  }
37389
37372
  }
37390
37373
  }
@@ -38915,7 +38898,7 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
38915
38898
  instances.forEach(function(ajax) {
38916
38899
  try {
38917
38900
  ajax.destruct();
38918
- } catch (e) {}
38901
+ } catch (_a) {}
38919
38902
  });
38920
38903
  instances.clear();
38921
38904
  }
@@ -40173,9 +40156,9 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
40173
40156
  {
40174
40157
  /** @override */ key: "beforeDestruct",
40175
40158
  value: function beforeDestruct(_) {
40176
- var _cached, _cached1;
40177
- (_cached = (0,_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_0__/* .cached */ .PO)(this, '__container')) === null || _cached === void 0 ? void 0 : _cached.destruct();
40178
- (_cached1 = (0,_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_0__/* .cached */ .PO)(this, '__dialog')) === null || _cached1 === void 0 ? void 0 : _cached1.destruct();
40159
+ var _a, _b;
40160
+ (_a = (0,_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_0__/* .cached */ .PO)(this, '__container')) === null || _a === void 0 ? void 0 : _a.destruct();
40161
+ (_b = (0,_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_0__/* .cached */ .PO)(this, '__dialog')) === null || _b === void 0 ? void 0 : _b.destruct();
40179
40162
  }
40180
40163
  }
40181
40164
  ]);
@@ -40934,13 +40917,12 @@ var backspace = /*#__PURE__*/ function(Plugin) {
40934
40917
  * Remove node and replace cursor position out of it
40935
40918
  */ key: "safeRemoveEmptyNode",
40936
40919
  value: function safeRemoveEmptyNode(fakeNode) {
40920
+ var _a, _b;
40937
40921
  var range = this.j.s.range;
40938
40922
  if (range.startContainer === fakeNode) {
40939
40923
  if (fakeNode.previousSibling) {
40940
40924
  if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(fakeNode.previousSibling)) {
40941
- var _fakeNode_previousSibling_nodeValue;
40942
- var _fakeNode_previousSibling_nodeValue_length;
40943
- range.setStart(fakeNode.previousSibling, (_fakeNode_previousSibling_nodeValue_length = (_fakeNode_previousSibling_nodeValue = fakeNode.previousSibling.nodeValue) === null || _fakeNode_previousSibling_nodeValue === void 0 ? void 0 : _fakeNode_previousSibling_nodeValue.length) !== null && _fakeNode_previousSibling_nodeValue_length !== void 0 ? _fakeNode_previousSibling_nodeValue_length : 0);
40925
+ range.setStart(fakeNode.previousSibling, (_b = (_a = fakeNode.previousSibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
40944
40926
  } else {
40945
40927
  range.setStartAfter(fakeNode.previousSibling);
40946
40928
  }
@@ -41149,6 +41131,7 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
41149
41131
  * @private
41150
41132
  */ // eslint-disable-next-line complexity
41151
41133
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
41134
+ var _a, _b;
41152
41135
  var step = backspace ? -1 : 1;
41153
41136
  var anotherSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
41154
41137
  var sibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
@@ -41159,20 +41142,19 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
41159
41142
  sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
41160
41143
  }
41161
41144
  while(sibling && (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))){
41162
- var _sibling_nodeValue, _sibling_nodeValue1;
41163
41145
  while(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)){
41164
41146
  sibling = backspace ? sibling === null || sibling === void 0 ? void 0 : sibling.lastChild : sibling === null || sibling === void 0 ? void 0 : sibling.firstChild;
41165
41147
  }
41166
41148
  if (!sibling) {
41167
41149
  break;
41168
41150
  }
41169
- if ((_sibling_nodeValue = sibling.nodeValue) === null || _sibling_nodeValue === void 0 ? void 0 : _sibling_nodeValue.length) {
41151
+ if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
41170
41152
  removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
41171
41153
  if (!sibling.nodeValue.length && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
41172
41154
  sibling.nodeValue = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
41173
41155
  }
41174
41156
  }
41175
- if (!((_sibling_nodeValue1 = sibling.nodeValue) === null || _sibling_nodeValue1 === void 0 ? void 0 : _sibling_nodeValue1.length)) {
41157
+ if (!((_b = sibling.nodeValue) === null || _b === void 0 ? void 0 : _b.length)) {
41176
41158
  removeNeighbor = sibling;
41177
41159
  }
41178
41160
  if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
@@ -41256,8 +41238,8 @@ function tryRemoveChar(sibling, backspace, step, anotherSibling) {
41256
41238
  return removed;
41257
41239
  }
41258
41240
  function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
41259
- var _anotherSibling_nodeValue;
41260
- if (!anotherSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) || (!backspace ? / $/ : /^ /).test((_anotherSibling_nodeValue = anotherSibling.nodeValue) !== null && _anotherSibling_nodeValue !== void 0 ? _anotherSibling_nodeValue : '') || !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
41241
+ var _a;
41242
+ if (!anotherSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) || (!backspace ? / $/ : /^ /).test((_a = anotherSibling.nodeValue) !== null && _a !== void 0 ? _a : '') || !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
41261
41243
  for(var i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1){
41262
41244
  if (value[i] === ' ') {
41263
41245
  value[i] = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
@@ -41531,10 +41513,10 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
41531
41513
  *
41532
41514
  * @private
41533
41515
  */ function checkUnwrapFirstListItem(jodit, fakeNode, backspace) {
41534
- var _li_parentElement;
41516
+ var _a;
41535
41517
  var li = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(fakeNode, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement, jodit.editor);
41536
41518
  var s = jodit.s;
41537
- if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isLeaf(li) && (li === null || li === void 0 ? void 0 : (_li_parentElement = li.parentElement) === null || _li_parentElement === void 0 ? void 0 : _li_parentElement[backspace ? 'firstElementChild' : 'lastElementChild']) === li && s.cursorInTheEdge(backspace, li)) {
41519
+ if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isLeaf(li) && ((_a = li === null || li === void 0 ? void 0 : li.parentElement) === null || _a === void 0 ? void 0 : _a[backspace ? 'firstElementChild' : 'lastElementChild']) === li && s.cursorInTheEdge(backspace, li)) {
41538
41520
  var ul = li.parentElement;
41539
41521
  var p = jodit.createInside.element(jodit.o.enterBlock);
41540
41522
  (0,_core_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_1__/* .call */ .T1)(backspace ? _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before : _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after, ul, p);
@@ -43188,12 +43170,12 @@ function _create_class(Constructor, protoProps, staticProps) {
43188
43170
  {
43189
43171
  key: "init",
43190
43172
  value: function init(editor) {
43191
- var _this_buttons;
43192
- (_this_buttons = this.buttons) === null || _this_buttons === void 0 ? void 0 : _this_buttons.forEach(function(btn) {
43173
+ var _a;
43174
+ (_a = this.buttons) === null || _a === void 0 ? void 0 : _a.forEach(function(btn) {
43193
43175
  return editor.registerButton(btn);
43194
43176
  });
43195
43177
  editor.e.off("copy.".concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID, " cut.").concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID)).on("copy.".concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID, " cut.").concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID), function(event) {
43196
- var _editor_events;
43178
+ var _a;
43197
43179
  var selectedText = editor.s.html;
43198
43180
  var clipboardData = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getDataTransfer)(event) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getDataTransfer)(editor.ew) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.getDataTransfer)(event.originalEvent);
43199
43181
  if (clipboardData) {
@@ -43210,16 +43192,16 @@ function _create_class(Constructor, protoProps, staticProps) {
43210
43192
  editor.s.focus();
43211
43193
  }
43212
43194
  event.preventDefault();
43213
- editor === null || editor === void 0 ? void 0 : (_editor_events = editor.events) === null || _editor_events === void 0 ? void 0 : _editor_events.fire('afterCopy', selectedText);
43195
+ (_a = editor === null || editor === void 0 ? void 0 : editor.events) === null || _a === void 0 ? void 0 : _a.fire('afterCopy', selectedText);
43214
43196
  });
43215
43197
  }
43216
43198
  },
43217
43199
  {
43218
43200
  /** @override */ key: "destruct",
43219
43201
  value: function destruct(editor) {
43220
- var _cached, _editor_events;
43221
- (_cached = (0,_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__/* .cached */ .PO)(editor, 'buffer')) === null || _cached === void 0 ? void 0 : _cached.set(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID, '');
43222
- editor === null || editor === void 0 ? void 0 : (_editor_events = editor.events) === null || _editor_events === void 0 ? void 0 : _editor_events.off('.' + _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID);
43202
+ var _a, _b;
43203
+ (_a = (0,_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__/* .cached */ .PO)(editor, 'buffer')) === null || _a === void 0 ? void 0 : _a.set(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID, '');
43204
+ (_b = editor === null || editor === void 0 ? void 0 : editor.events) === null || _b === void 0 ? void 0 : _b.off('.' + _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.CLIPBOARD_ID);
43223
43205
  }
43224
43206
  }
43225
43207
  ]);
@@ -44325,9 +44307,9 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
44325
44307
  {
44326
44308
  key: "__moveCursorInEditableSibling",
44327
44309
  value: function __moveCursorInEditableSibling(jodit, leftSibling, fake, range) {
44310
+ var _a;
44328
44311
  if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(leftSibling)) {
44329
- var _Dom_closest;
44330
- var root = (_Dom_closest = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, jodit.editor)) !== null && _Dom_closest !== void 0 ? _Dom_closest : jodit.editor;
44312
+ var root = (_a = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, jodit.editor)) !== null && _a !== void 0 ? _a : jodit.editor;
44331
44313
  var leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText, root);
44332
44314
  if (leftText) {
44333
44315
  range.setStartAfter(leftText);
@@ -44592,6 +44574,7 @@ var DragState;
44592
44574
  * Mouse move handler handler
44593
44575
  */ key: "onDrag",
44594
44576
  value: function onDrag(event) {
44577
+ var _a, _b;
44595
44578
  if (!this.draggable || this.state === DragState.IDLE) {
44596
44579
  return;
44597
44580
  }
@@ -44606,7 +44589,6 @@ var DragState;
44606
44589
  this.j.e.fire('hidePopup hideResizer');
44607
44590
  if (!this.draggable.parentNode) {
44608
44591
  var target = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.dataBind)(this.draggable, 'target');
44609
- var _target_offsetWidth, _target_offsetHeight;
44610
44592
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.css)(this.draggable, {
44611
44593
  zIndex: 10000000000000,
44612
44594
  pointerEvents: 'none',
@@ -44616,8 +44598,8 @@ var DragState;
44616
44598
  display: 'inline-block',
44617
44599
  left: event.clientX,
44618
44600
  top: event.clientY,
44619
- width: (_target_offsetWidth = target === null || target === void 0 ? void 0 : target.offsetWidth) !== null && _target_offsetWidth !== void 0 ? _target_offsetWidth : 100,
44620
- height: (_target_offsetHeight = target === null || target === void 0 ? void 0 : target.offsetHeight) !== null && _target_offsetHeight !== void 0 ? _target_offsetHeight : 100
44601
+ width: (_a = target === null || target === void 0 ? void 0 : target.offsetWidth) !== null && _a !== void 0 ? _a : 100,
44602
+ height: (_b = target === null || target === void 0 ? void 0 : target.offsetHeight) !== null && _b !== void 0 ? _b : 100
44621
44603
  });
44622
44604
  (0,_core_global_js__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(this.j, dragAndDropElement).appendChild(this.draggable);
44623
44605
  }
@@ -46420,7 +46402,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fonts
46420
46402
  },
46421
46403
  tooltip: 'Font size',
46422
46404
  value: function(editor, button) {
46423
- var _control_data;
46405
+ var _a;
46424
46406
  var current = editor.s.current();
46425
46407
  if (!current) {
46426
46408
  return;
@@ -46430,27 +46412,25 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fonts
46430
46412
  return;
46431
46413
  }
46432
46414
  var control = button.control;
46433
- var cssKey = ((_control_data = control.data) === null || _control_data === void 0 ? void 0 : _control_data.cssRule) || 'font-size';
46415
+ var cssKey = ((_a = control.data) === null || _a === void 0 ? void 0 : _a.cssRule) || 'font-size';
46434
46416
  var value = (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(box, cssKey);
46435
46417
  return value.toString();
46436
46418
  },
46437
46419
  isChildActive: function(editor, button) {
46438
- var _button_control_data;
46420
+ var _a, _b;
46439
46421
  var value = button.state.value;
46440
- var _button_control_data_normalize;
46441
- var normalize = (_button_control_data_normalize = (_button_control_data = button.control.data) === null || _button_control_data === void 0 ? void 0 : _button_control_data.normalize) !== null && _button_control_data_normalize !== void 0 ? _button_control_data_normalize : function(v) {
46422
+ var normalize = (_b = (_a = button.control.data) === null || _a === void 0 ? void 0 : _a.normalize) !== null && _b !== void 0 ? _b : function(v) {
46442
46423
  return v;
46443
46424
  };
46444
46425
  return Boolean(value && button.control.args && normalize(button.control.args[0].toString()) === normalize(value.toString()));
46445
46426
  },
46446
46427
  isActive: function(editor, button) {
46447
- var _button_control_data;
46428
+ var _a, _b;
46448
46429
  var value = button.state.value;
46449
46430
  if (!value) {
46450
46431
  return false;
46451
46432
  }
46452
- var _button_control_data_normalize;
46453
- var normalize = (_button_control_data_normalize = (_button_control_data = button.control.data) === null || _button_control_data === void 0 ? void 0 : _button_control_data.normalize) !== null && _button_control_data_normalize !== void 0 ? _button_control_data_normalize : function(v) {
46433
+ var normalize = (_b = (_a = button.control.data) === null || _a === void 0 ? void 0 : _a.normalize) !== null && _b !== void 0 ? _b : function(v) {
46454
46434
  return v;
46455
46435
  };
46456
46436
  var keySet = button.control.data.cacheListSet;
@@ -46485,7 +46465,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font
46485
46465
  var isAvailable = false;
46486
46466
  try {
46487
46467
  isAvailable = key.indexOf('dings') === -1 && document.fonts.check("16px ".concat(key), value);
46488
- } catch (e) {}
46468
+ } catch (_a) {}
46489
46469
  return '<span data-style="'.concat(key, '" style="').concat(isAvailable ? "font-family: ".concat(key, "!important;") : '', '">').concat(value, "</span>");
46490
46470
  },
46491
46471
  data: {
@@ -46592,11 +46572,10 @@ _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', _pa
46592
46572
  _config_js__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
46593
46573
  command: 'formatBlock',
46594
46574
  value: function value(editor, button) {
46595
- var _control_data;
46575
+ var _a, _b;
46596
46576
  var control = button.control, current = editor.s.current();
46597
46577
  var currentBox = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
46598
- var _currentBox_nodeName_toLowerCase;
46599
- return (_currentBox_nodeName_toLowerCase = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _currentBox_nodeName_toLowerCase !== void 0 ? _currentBox_nodeName_toLowerCase : (_control_data = control.data) === null || _control_data === void 0 ? void 0 : _control_data.currentValue;
46578
+ return (_a = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : (_b = control.data) === null || _b === void 0 ? void 0 : _b.currentValue;
46600
46579
  },
46601
46580
  update: function update(editor, button) {
46602
46581
  var control = button.control, current = editor.s.current();
@@ -46624,8 +46603,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.parag
46624
46603
  pre: 'Code'
46625
46604
  },
46626
46605
  isChildActive: function(editor, button) {
46627
- var _button_control_args, _button_control;
46628
- return Boolean(button.state.value === ((_button_control = button.control) === null || _button_control === void 0 ? void 0 : (_button_control_args = _button_control.args) === null || _button_control_args === void 0 ? void 0 : _button_control_args[0]));
46606
+ var _a, _b;
46607
+ return Boolean(button.state.value === ((_b = (_a = button.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[0]));
46629
46608
  },
46630
46609
  isActive: function(editor, button) {
46631
46610
  return button.state.value !== editor.o.enter && (0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) && Boolean(button.control.list[button.state.value]);
@@ -46765,6 +46744,7 @@ var fullsizeStack = new Set();
46765
46744
  }, /**
46766
46745
  * Change editor's state between FullSize and normal
46767
46746
  */ toggle = function(enable) {
46747
+ var _a;
46768
46748
  var container = editor.container, events = editor.events;
46769
46749
  if (!container) {
46770
46750
  return;
@@ -46777,8 +46757,7 @@ var fullsizeStack = new Set();
46777
46757
  isEnabled = enable;
46778
46758
  container.classList.toggle('jodit_fullsize', enable);
46779
46759
  if (editor.toolbar) {
46780
- var _editor_toolbarContainer;
46781
- (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_3__/* .isJoditObject */ .y)(editor) && ((_editor_toolbarContainer = editor.toolbarContainer) === null || _editor_toolbarContainer === void 0 ? void 0 : _editor_toolbarContainer.appendChild(editor.toolbar.container));
46760
+ (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_3__/* .isJoditObject */ .y)(editor) && ((_a = editor.toolbarContainer) === null || _a === void 0 ? void 0 : _a.appendChild(editor.toolbar.container));
46782
46761
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(editor.toolbar.container, 'width', 'auto');
46783
46762
  }
46784
46763
  enable ? fullsizeStack.add(container) : fullsizeStack.delete(container);
@@ -46797,8 +46776,8 @@ var fullsizeStack = new Set();
46797
46776
  editor.e.on(editor.ow, 'resize', resize);
46798
46777
  }
46799
46778
  editor.e.on('afterInit afterOpen', function() {
46800
- var _editor_options;
46801
- editor.toggleFullSize(editor === null || editor === void 0 ? void 0 : (_editor_options = editor.options) === null || _editor_options === void 0 ? void 0 : _editor_options.fullsize);
46779
+ var _a;
46780
+ editor.toggleFullSize((_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.fullsize);
46802
46781
  }).on('toggleFullSize', toggle).on('beforeDestruct', function() {
46803
46782
  isEnabled && toggle(false);
46804
46783
  }).on('beforeDestruct', function() {
@@ -47384,8 +47363,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox
47384
47363
  }
47385
47364
  }
47386
47365
  }).on(editor.ew, 'mousedown touchstart keydown keyup touchend click mouseup mousemove scroll', function(e) {
47387
- var _editor_events;
47388
- (_editor_events = editor.events) === null || _editor_events === void 0 ? void 0 : _editor_events.fire(editor.ow, e);
47366
+ var _a;
47367
+ (_a = editor.events) === null || _a === void 0 ? void 0 : _a.fire(editor.ow, e);
47389
47368
  });
47390
47369
  }
47391
47370
  return false;
@@ -47793,8 +47772,8 @@ var JODIT_IMAGE_BLOB_ID = JODIT_IMAGE_PROCESSOR_BINDED + 'blob-id';
47793
47772
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.dataBind)(elm, JODIT_IMAGE_PROCESSOR_BINDED, true);
47794
47773
  if (!elm.complete) {
47795
47774
  editor.e.on(elm, 'load', function ElementOnLoad() {
47796
- var _editor_e;
47797
- !editor.isInDestruct && ((_editor_e = editor.e) === null || _editor_e === void 0 ? void 0 : _editor_e.fire('resize'));
47775
+ var _a;
47776
+ !editor.isInDestruct && ((_a = editor.e) === null || _a === void 0 ? void 0 : _a.fire('resize'));
47798
47777
  editor.e.off(elm, 'load', ElementOnLoad);
47799
47778
  });
47800
47779
  }
@@ -48461,13 +48440,12 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
48461
48440
  {
48462
48441
  /** @override */ key: "beforeDestruct",
48463
48442
  value: function beforeDestruct(editor) {
48464
- var _cached, _cached1;
48465
- var _cached2;
48466
- Object.values((_cached2 = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.cached)(this, '__buttons')) !== null && _cached2 !== void 0 ? _cached2 : {}).forEach(function(b) {
48443
+ var _a, _b, _c;
48444
+ Object.values((_a = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.cached)(this, '__buttons')) !== null && _a !== void 0 ? _a : {}).forEach(function(b) {
48467
48445
  return b.destruct();
48468
48446
  });
48469
- (_cached = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.cached)(this, 'dialog')) === null || _cached === void 0 ? void 0 : _cached.destruct();
48470
- (_cached1 = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.cached)(this, 'form')) === null || _cached1 === void 0 ? void 0 : _cached1.destruct();
48447
+ (_b = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.cached)(this, 'dialog')) === null || _b === void 0 ? void 0 : _b.destruct();
48448
+ (_c = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.cached)(this, 'form')) === null || _c === void 0 ? void 0 : _c.destruct();
48471
48449
  editor.e.off(editor.editor, '.imageproperties').off('.imageproperties');
48472
48450
  }
48473
48451
  }
@@ -52393,7 +52371,7 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
52393
52371
  {
52394
52372
  key: "onKeyDownArrow",
52395
52373
  value: function onKeyDownArrow(e) {
52396
- var _endContainer_nodeValue;
52374
+ var _a;
52397
52375
  if (e.key !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || !this.j.selection.isCollapsed()) {
52398
52376
  return;
52399
52377
  }
@@ -52401,7 +52379,7 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
52401
52379
  if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(endContainer)) {
52402
52380
  return;
52403
52381
  }
52404
- if (((_endContainer_nodeValue = endContainer.nodeValue) === null || _endContainer_nodeValue === void 0 ? void 0 : _endContainer_nodeValue.length) === endOffset) {
52382
+ if (((_a = endContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.length) === endOffset) {
52405
52383
  var parentNode = endContainer.parentNode;
52406
52384
  if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isInlineBlock(parentNode) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.findNotEmptyNeighbor(parentNode, false, this.j.editor)) {
52407
52385
  _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.after(parentNode, this.j.createInside.text(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE));
@@ -53697,17 +53675,16 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
53697
53675
  {
53698
53676
  key: "onProcessPasteLink",
53699
53677
  value: function onProcessPasteLink(ignore, html) {
53678
+ var _a, _b, _c, _d;
53700
53679
  var jodit = this.jodit;
53701
53680
  if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
53702
53681
  return;
53703
53682
  }
53704
53683
  jodit.e.stopPropagation('processPaste');
53705
53684
  if (jodit.o.link.processVideoLink) {
53706
- var _jodit_o_video, _jodit_o_video1, _jodit_o_video2;
53707
- var _jodit_o_video_parseUrlToVideoEmbed;
53708
- var embed = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.call)((_jodit_o_video_parseUrlToVideoEmbed = (_jodit_o_video = jodit.o.video) === null || _jodit_o_video === void 0 ? void 0 : _jodit_o_video.parseUrlToVideoEmbed) !== null && _jodit_o_video_parseUrlToVideoEmbed !== void 0 ? _jodit_o_video_parseUrlToVideoEmbed : _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
53709
- width: (_jodit_o_video1 = jodit.o.video) === null || _jodit_o_video1 === void 0 ? void 0 : _jodit_o_video1.defaultWidth,
53710
- height: (_jodit_o_video2 = jodit.o.video) === null || _jodit_o_video2 === void 0 ? void 0 : _jodit_o_video2.defaultHeight
53685
+ var embed = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.call)((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
53686
+ width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
53687
+ height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
53711
53688
  });
53712
53689
  if (embed !== html) {
53713
53690
  return jodit.createInside.fromHTML(embed);
@@ -53889,6 +53866,7 @@ __decorate([
53889
53866
  ], link.prototype, "__generateForm", null);
53890
53867
  _core_global_js__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
53891
53868
  function writeClasses(modeClassName, className_input, className_select, a) {
53869
+ var _a;
53892
53870
  if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
53893
53871
  if (modeClassName === 'input') {
53894
53872
  if (className_input.value === '' && a.hasAttribute('class')) {
@@ -53902,8 +53880,7 @@ function writeClasses(modeClassName, className_input, className_select, a) {
53902
53880
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
53903
53881
  }
53904
53882
  for(var i = 0; i < className_select.selectedOptions.length; i++){
53905
- var _className_select_selectedOptions_item;
53906
- var className = (_className_select_selectedOptions_item = className_select.selectedOptions.item(i)) === null || _className_select_selectedOptions_item === void 0 ? void 0 : _className_select_selectedOptions_item.value;
53883
+ var className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
53907
53884
  if (className) {
53908
53885
  a.classList.add(className);
53909
53886
  }
@@ -54279,12 +54256,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots
54279
54256
  store = {
54280
54257
  toolbar: (0,_modules_toolbar_factory_js__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
54281
54258
  rebuild: function() {
54259
+ var _a, _b;
54282
54260
  if (button) {
54283
54261
  var buttons = editor.e.fire('getDiffButtons.mobile', button.closest(_modules_toolbar_collection_collection_js__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
54284
54262
  if (buttons && store) {
54285
- var _editor_toolbar_firstButton, _editor_toolbar;
54286
54263
  store.toolbar.build((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
54287
- var w = ((_editor_toolbar = editor.toolbar) === null || _editor_toolbar === void 0 ? void 0 : (_editor_toolbar_firstButton = _editor_toolbar.firstButton) === null || _editor_toolbar_firstButton === void 0 ? void 0 : _editor_toolbar_firstButton.container.offsetWidth) || 36;
54264
+ var w = ((_b = (_a = editor.toolbar) === null || _a === void 0 ? void 0 : _a.firstButton) === null || _b === void 0 ? void 0 : _b.container.offsetWidth) || 36;
54288
54265
  store.toolbar.container.style.width = (w + 4) * 3 + 'px';
54289
54266
  }
54290
54267
  }
@@ -54348,11 +54325,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots
54348
54325
  });
54349
54326
  if (editor.o.toolbarAdaptive) {
54350
54327
  editor.e.on('resize afterInit recalcAdaptive changePlace afterAddPlace', function() {
54328
+ var _a, _b;
54351
54329
  if (!editor.o.toolbar) {
54352
54330
  return;
54353
54331
  }
54354
- var _editor_container_parentElement;
54355
- var width = ((_editor_container_parentElement = editor.container.parentElement) !== null && _editor_container_parentElement !== void 0 ? _editor_container_parentElement : editor.container).offsetWidth;
54332
+ var width = ((_a = editor.container.parentElement) !== null && _a !== void 0 ? _a : editor.container).offsetWidth;
54356
54333
  var newStore = function() {
54357
54334
  if (editor.isFullSize || width >= editor.o.sizeLG) {
54358
54335
  return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.splitArray)(editor.o.buttons);
@@ -54366,10 +54343,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots
54366
54343
  return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.splitArray)(editor.o.buttonsXS);
54367
54344
  }();
54368
54345
  if (newStore.toString() !== store.toString()) {
54369
- var _editor_toolbar;
54370
54346
  store = newStore;
54371
54347
  editor.e.fire('closeAllPopups');
54372
- (_editor_toolbar = editor.toolbar) === null || _editor_toolbar === void 0 ? void 0 : _editor_toolbar.setRemoveButtons(editor.o.removeButtons).build(store.concat(editor.o.extraButtons));
54348
+ (_b = editor.toolbar) === null || _b === void 0 ? void 0 : _b.setRemoveButtons(editor.o.removeButtons).build(store.concat(editor.o.extraButtons));
54373
54349
  }
54374
54350
  }).on(editor.ow, 'load resize', function() {
54375
54351
  return editor.e.fire('recalcAdaptive');
@@ -54400,9 +54376,9 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobile'
54400
54376
 
54401
54377
  var memoExec = function(jodit, _, param) {
54402
54378
  var control = param.control;
54379
+ var _a;
54403
54380
  var key = "button".concat(control.command);
54404
- var _ref;
54405
- var value = (_ref = control.args && control.args[0]) !== null && _ref !== void 0 ? _ref : (0,_core_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key);
54381
+ var value = (_a = control.args && control.args[0]) !== null && _a !== void 0 ? _a : (0,_core_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key);
54406
54382
  (0,_core_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
54407
54383
  jodit.execCommand(control.command, false, value === 'default' ? null : value);
54408
54384
  };
@@ -54878,12 +54854,12 @@ var pasteFromWord = /*#__PURE__*/ function(Plugin) {
54878
54854
  * Clear extra styles and tags from Word's pasted text
54879
54855
  */ key: "insertFromWordByType",
54880
54856
  value: function insertFromWordByType(e, html, insertType, texts) {
54857
+ var _a;
54881
54858
  switch(insertType){
54882
54859
  case _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML:
54883
54860
  {
54884
- var _this_j_events;
54885
54861
  html = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.applyStyles)(html);
54886
- var value = (_this_j_events = this.j.events) === null || _this_j_events === void 0 ? void 0 : _this_j_events.fire('beautifyHTML', html);
54862
+ var value = (_a = this.j.events) === null || _a === void 0 ? void 0 : _a.fire('beautifyHTML', html);
54887
54863
  if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(value)) {
54888
54864
  html = value;
54889
54865
  }
@@ -56006,6 +55982,12 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
56006
55982
  html = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.htmlspecialchars)(html);
56007
55983
  break;
56008
55984
  default:
55985
+ {
55986
+ var newHTML = this.j.e.fire('onCustomPasteHTMLOption', action, html, e);
55987
+ if (typeof newHTML === 'string') {
55988
+ html = newHTML;
55989
+ }
55990
+ }
56009
55991
  }
56010
55992
  }
56011
55993
  (0,_helpers_js__WEBPACK_IMPORTED_MODULE_7__/* .pasteInsertHtml */ .sX)(e, this.j, html);
@@ -56212,12 +56194,12 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
56212
56194
  * Check if root node is empty
56213
56195
  * @private
56214
56196
  */ function isEditorEmpty(root) {
56215
- var _first_nodeName;
56197
+ var _a;
56216
56198
  if (!root.firstChild) {
56217
56199
  return true;
56218
56200
  }
56219
56201
  var first = root.firstChild;
56220
- if (_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS.has((_first_nodeName = first.nodeName) === null || _first_nodeName === void 0 ? void 0 : _first_nodeName.toLowerCase()) || /^(TABLE)$/i.test(first.nodeName)) {
56202
+ if (_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS.has((_a = first.nodeName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || /^(TABLE)$/i.test(first.nodeName)) {
56221
56203
  return false;
56222
56204
  }
56223
56205
  var next = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.next(first, function(node) {
@@ -56547,13 +56529,13 @@ function _unsupported_iterable_to_array(o, minLen) {
56547
56529
  var rules = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_0__/* .toArray */ .$)(css).map(function(s) {
56548
56530
  try {
56549
56531
  return (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_0__/* .toArray */ .$)(s.cssRules);
56550
- } catch (e) {}
56532
+ } catch (_a) {}
56551
56533
  return [];
56552
56534
  }).flat();
56553
56535
  return rules.filter(function(r) {
56554
56536
  try {
56555
56537
  return Boolean(r && el.matches(r.selectorText));
56556
- } catch (e) {}
56538
+ } catch (_a) {}
56557
56539
  return false;
56558
56540
  });
56559
56541
  };
@@ -56632,7 +56614,7 @@ function _unsupported_iterable_to_array(o, minLen) {
56632
56614
  scanFullPage: true
56633
56615
  });
56634
56616
  return cp.generateCSS();
56635
- } catch (e) {}
56617
+ } catch (_a) {}
56636
56618
  return '';
56637
56619
  }
56638
56620
 
@@ -58748,8 +58730,8 @@ var SentenceFinder = /*#__PURE__*/ function() {
58748
58730
  {
58749
58731
  key: "add",
58750
58732
  value: function add(node) {
58751
- var _node_nodeValue;
58752
- var value = ((_node_nodeValue = node.nodeValue) !== null && _node_nodeValue !== void 0 ? _node_nodeValue : '').toLowerCase();
58733
+ var _a;
58734
+ var value = ((_a = node.nodeValue) !== null && _a !== void 0 ? _a : '').toLowerCase();
58753
58735
  if (!value.length) {
58754
58736
  return;
58755
58737
  }
@@ -59332,7 +59314,7 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
59332
59314
  value: function findAndSelect(query, next) {
59333
59315
  var _this = this;
59334
59316
  return _async_to_generator(function() {
59335
- var bounds, _this_drawPromise, currentIndex, bound, rng;
59317
+ var _a, bounds, currentIndex, bound, rng;
59336
59318
  return _ts_generator(this, function(_state) {
59337
59319
  switch(_state.label){
59338
59320
  case 0:
@@ -59349,8 +59331,7 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
59349
59331
  ];
59350
59332
  }
59351
59333
  if (_this.previousQuery !== query || !(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_7__/* .getSelectionWrappers */ .zy)(_this.j.editor).length) {
59352
- ;
59353
- (_this_drawPromise = _this.drawPromise) === null || _this_drawPromise === void 0 ? void 0 : _this_drawPromise.rejectCallback();
59334
+ (_a = _this.drawPromise) === null || _a === void 0 ? void 0 : _a.rejectCallback();
59354
59335
  _this.j.async.cancelAnimationFrame(_this.wrapFrameRequest);
59355
59336
  (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(_this.j);
59356
59337
  _this.drawPromise = _this.__drawSelectionRanges(bounds);
@@ -59431,9 +59412,8 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
59431
59412
  return [
59432
59413
  2,
59433
59414
  res.every(function(r) {
59434
- var _r_startContainer_nodeValue, _r_endContainer_nodeValue;
59435
- var _r_startContainer_nodeValue_length, _r_endContainer_nodeValue_length;
59436
- return r.startContainer.isConnected && r.startOffset <= ((_r_startContainer_nodeValue_length = (_r_startContainer_nodeValue = r.startContainer.nodeValue) === null || _r_startContainer_nodeValue === void 0 ? void 0 : _r_startContainer_nodeValue.length) !== null && _r_startContainer_nodeValue_length !== void 0 ? _r_startContainer_nodeValue_length : 0) && r.endContainer.isConnected && r.endOffset <= ((_r_endContainer_nodeValue_length = (_r_endContainer_nodeValue = r.endContainer.nodeValue) === null || _r_endContainer_nodeValue === void 0 ? void 0 : _r_endContainer_nodeValue.length) !== null && _r_endContainer_nodeValue_length !== void 0 ? _r_endContainer_nodeValue_length : 0);
59415
+ var _a, _b, _c, _d;
59416
+ return r.startContainer.isConnected && r.startOffset <= ((_b = (_a = r.startContainer.nodeValue) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) && r.endContainer.isConnected && r.endOffset <= ((_d = (_c = r.endContainer.nodeValue) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0);
59437
59417
  })
59438
59418
  ];
59439
59419
  }
@@ -59486,8 +59466,8 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
59486
59466
  }
59487
59467
  return false;
59488
59468
  }).on('end', function() {
59489
- var _sentence_ranges;
59490
- resolve((_sentence_ranges = sentence.ranges(query)) !== null && _sentence_ranges !== void 0 ? _sentence_ranges : []);
59469
+ var _a;
59470
+ resolve((_a = sentence.ranges(query)) !== null && _a !== void 0 ? _a : []);
59491
59471
  }).setWork(_this.j.editor);
59492
59472
  });
59493
59473
  return [
@@ -59609,8 +59589,8 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
59609
59589
  {
59610
59590
  /** @override */ key: "beforeDestruct",
59611
59591
  value: function beforeDestruct(jodit) {
59612
- var _cached;
59613
- (_cached = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'ui')) === null || _cached === void 0 ? void 0 : _cached.destruct();
59592
+ var _a;
59593
+ (_a = (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.cached)(this, 'ui')) === null || _a === void 0 ? void 0 : _a.destruct();
59614
59594
  jodit.e.off('.search');
59615
59595
  }
59616
59596
  }
@@ -60383,11 +60363,11 @@ var selectCells = /*#__PURE__*/ function(Plugin) {
60383
60363
  }).join(' '), this.onStartSelection)// For `clickEditor` correct working. Because `mousedown` on first cell
60384
60364
  // and mouseup on another cell call `click` only for `TR` element.
60385
60365
  .on('clickTr clickTbody', function() {
60366
+ var _a;
60386
60367
  var cellsCount = _this.__tableModule.getAllSelectedCells().length;
60387
60368
  if (cellsCount) {
60388
60369
  if (cellsCount > 1) {
60389
- var _this_j_s_sel;
60390
- (_this_j_s_sel = _this.j.s.sel) === null || _this_j_s_sel === void 0 ? void 0 : _this_j_s_sel.removeAllRanges();
60370
+ (_a = _this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
60391
60371
  }
60392
60372
  return false;
60393
60373
  }
@@ -60445,6 +60425,7 @@ var selectCells = /*#__PURE__*/ function(Plugin) {
60445
60425
  */ key: "__onMove",
60446
60426
  value: function __onMove(table, e) {
60447
60427
  var _this = this;
60428
+ var _a;
60448
60429
  if (this.j.o.readonly && !this.j.isLocked) {
60449
60430
  return;
60450
60431
  }
@@ -60477,8 +60458,7 @@ var selectCells = /*#__PURE__*/ function(Plugin) {
60477
60458
  }
60478
60459
  var cellsCount = this.__tableModule.getAllSelectedCells().length;
60479
60460
  if (cellsCount > 1) {
60480
- var _this_j_s_sel;
60481
- (_this_j_s_sel = this.j.s.sel) === null || _this_j_s_sel === void 0 ? void 0 : _this_j_s_sel.removeAllRanges();
60461
+ (_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
60482
60462
  }
60483
60463
  this.j.e.fire('hidePopup');
60484
60464
  e.stopPropagation();
@@ -60487,8 +60467,8 @@ var selectCells = /*#__PURE__*/ function(Plugin) {
60487
60467
  var n = _this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');
60488
60468
  cell.appendChild(n);
60489
60469
  _this.j.async.setTimeout(function() {
60490
- var _n_parentNode;
60491
- (_n_parentNode = n.parentNode) === null || _n_parentNode === void 0 ? void 0 : _n_parentNode.removeChild(n);
60470
+ var _a;
60471
+ (_a = n.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(n);
60492
60472
  }, _this.j.defaultTimeout / 5);
60493
60473
  })();
60494
60474
  }
@@ -60498,8 +60478,8 @@ var selectCells = /*#__PURE__*/ function(Plugin) {
60498
60478
  * On click in outside - remove selection
60499
60479
  */ key: "__onRemoveSelection",
60500
60480
  value: function __onRemoveSelection(e) {
60501
- var _e_buffer;
60502
- if (!(e === null || e === void 0 ? void 0 : (_e_buffer = e.buffer) === null || _e_buffer === void 0 ? void 0 : _e_buffer.actionTrigger) && !this.__selectedCell && this.__tableModule.getAllSelectedCells().length) {
60481
+ var _a;
60482
+ if (!((_a = e === null || e === void 0 ? void 0 : e.buffer) === null || _a === void 0 ? void 0 : _a.actionTrigger) && !this.__selectedCell && this.__tableModule.getAllSelectedCells().length) {
60503
60483
  this.j.unlock();
60504
60484
  this.unselectCells();
60505
60485
  this.j.e.fire('hidePopup', 'cells');
@@ -61310,8 +61290,8 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
61310
61290
  * Returns service spaces: toolbar + statusbar
61311
61291
  */ key: "__getNotWorkHeight",
61312
61292
  value: function __getNotWorkHeight() {
61313
- var _this_j_toolbarContainer, _this_j_statusbar;
61314
- return (((_this_j_toolbarContainer = this.j.toolbarContainer) === null || _this_j_toolbarContainer === void 0 ? void 0 : _this_j_toolbarContainer.offsetHeight) || 0) + (((_this_j_statusbar = this.j.statusbar) === null || _this_j_statusbar === void 0 ? void 0 : _this_j_statusbar.getHeight()) || 0) + 2;
61293
+ var _a, _b;
61294
+ return (((_a = this.j.toolbarContainer) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0) + (((_b = this.j.statusbar) === null || _b === void 0 ? void 0 : _b.getHeight()) || 0) + 2;
61315
61295
  }
61316
61296
  },
61317
61297
  {
@@ -61689,12 +61669,12 @@ var AceEditor = /*#__PURE__*/ function(SourceEditor) {
61689
61669
  {
61690
61670
  key: "destruct",
61691
61671
  value: function destruct() {
61692
- var _this_j_events, _this_j;
61672
+ var _a, _b;
61693
61673
  this.instance.off('change', this.toWYSIWYG);
61694
61674
  this.instance.off('focus', this.proxyOnFocus);
61695
61675
  this.instance.off('mousedown', this.proxyOnMouseDown);
61696
61676
  this.instance.destroy();
61697
- (_this_j = this.j) === null || _this_j === void 0 ? void 0 : (_this_j_events = _this_j.events) === null || _this_j_events === void 0 ? void 0 : _this_j_events.off('aceInited.source');
61677
+ (_b = (_a = this.j) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.off('aceInited.source');
61698
61678
  }
61699
61679
  },
61700
61680
  {
@@ -62172,9 +62152,9 @@ var SourceEditor = /*#__PURE__*/ function() {
62172
62152
  {
62173
62153
  key: "onReadyAlways",
62174
62154
  value: function onReadyAlways(onReady) {
62155
+ var _a;
62175
62156
  if (!this.isReady) {
62176
- var _this_j_events;
62177
- (_this_j_events = this.j.events) === null || _this_j_events === void 0 ? void 0 : _this_j_events.on(this, 'ready', onReady);
62157
+ (_a = this.j.events) === null || _a === void 0 ? void 0 : _a.on(this, 'ready', onReady);
62178
62158
  } else {
62179
62159
  onReady();
62180
62160
  }
@@ -62360,14 +62340,12 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62360
62340
  _this.tempMarkerEndReg = /{end-jodit-selection}/g;
62361
62341
  // override it for ace editors
62362
62342
  _this.getSelectionStart = function() {
62363
- var _this_sourceEditor;
62364
- var _this_sourceEditor_getSelectionStart;
62365
- return (_this_sourceEditor_getSelectionStart = (_this_sourceEditor = _this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.getSelectionStart()) !== null && _this_sourceEditor_getSelectionStart !== void 0 ? _this_sourceEditor_getSelectionStart : 0;
62343
+ var _a, _b;
62344
+ return (_b = (_a = _this.sourceEditor) === null || _a === void 0 ? void 0 : _a.getSelectionStart()) !== null && _b !== void 0 ? _b : 0;
62366
62345
  };
62367
62346
  _this.getSelectionEnd = function() {
62368
- var _this_sourceEditor;
62369
- var _this_sourceEditor_getSelectionEnd;
62370
- return (_this_sourceEditor_getSelectionEnd = (_this_sourceEditor = _this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.getSelectionEnd()) !== null && _this_sourceEditor_getSelectionEnd !== void 0 ? _this_sourceEditor_getSelectionEnd : 0;
62347
+ var _a, _b;
62348
+ return (_b = (_a = _this.sourceEditor) === null || _a === void 0 ? void 0 : _a.getSelectionEnd()) !== null && _b !== void 0 ? _b : 0;
62371
62349
  };
62372
62350
  return _this;
62373
62351
  }
@@ -62375,9 +62353,9 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62375
62353
  {
62376
62354
  key: "onInsertHTML",
62377
62355
  value: function onInsertHTML(html) {
62356
+ var _a;
62378
62357
  if (!this.j.o.readonly && !this.j.isEditorMode()) {
62379
- var _this_sourceEditor;
62380
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.insertRaw(html);
62358
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.insertRaw(html);
62381
62359
  this.toWYSIWYG();
62382
62360
  return false;
62383
62361
  }
@@ -62452,9 +62430,9 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62452
62430
  {
62453
62431
  key: "onSelectAll",
62454
62432
  value: function onSelectAll(command) {
62433
+ var _a;
62455
62434
  if (command.toLowerCase() === 'selectall' && this.j.getRealMode() === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE) {
62456
- var _this_sourceEditor;
62457
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.selectAll();
62435
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.selectAll();
62458
62436
  return false;
62459
62437
  }
62460
62438
  }
@@ -62462,22 +62440,22 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62462
62440
  {
62463
62441
  key: "getMirrorValue",
62464
62442
  value: function getMirrorValue() {
62465
- var _this_sourceEditor;
62466
- return ((_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.getValue()) || '';
62443
+ var _a;
62444
+ return ((_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.getValue()) || '';
62467
62445
  }
62468
62446
  },
62469
62447
  {
62470
62448
  key: "setMirrorValue",
62471
62449
  value: function setMirrorValue(value) {
62472
- var _this_sourceEditor;
62473
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.setValue(value);
62450
+ var _a;
62451
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.setValue(value);
62474
62452
  }
62475
62453
  },
62476
62454
  {
62477
62455
  key: "setFocusToMirror",
62478
62456
  value: function setFocusToMirror() {
62479
- var _this_sourceEditor;
62480
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.focus();
62457
+ var _a;
62458
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.focus();
62481
62459
  }
62482
62460
  },
62483
62461
  {
@@ -62548,15 +62526,15 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62548
62526
  {
62549
62527
  key: "setMirrorSelectionRange",
62550
62528
  value: function setMirrorSelectionRange(start, end) {
62551
- var _this_sourceEditor;
62552
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.setSelectionRange(start, end);
62529
+ var _a;
62530
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.setSelectionRange(start, end);
62553
62531
  }
62554
62532
  },
62555
62533
  {
62556
62534
  key: "onReadonlyReact",
62557
62535
  value: function onReadonlyReact() {
62558
- var _this_sourceEditor;
62559
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.setReadOnly(this.j.o.readonly);
62536
+ var _a;
62537
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.setReadOnly(this.j.o.readonly);
62560
62538
  }
62561
62539
  },
62562
62540
  {
@@ -62570,27 +62548,27 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62570
62548
  });
62571
62549
  this.sourceEditor = (0,_editor_factory_js__WEBPACK_IMPORTED_MODULE_7__/* .createSourceEditor */ .b)('area', editor, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG);
62572
62550
  editor.e.on(editor.ow, 'keydown', function(e) {
62573
- var _this_sourceEditor;
62574
- if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC && ((_this_sourceEditor = _this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.isFocused)) {
62551
+ var _a;
62552
+ if (e.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ESC && ((_a = _this.sourceEditor) === null || _a === void 0 ? void 0 : _a.isFocused)) {
62575
62553
  _this.sourceEditor.blur();
62576
62554
  }
62577
62555
  });
62578
62556
  this.onReadonlyReact();
62579
62557
  editor.e.on('placeholder.source', function(text) {
62580
- var _this_sourceEditor;
62581
- (_this_sourceEditor = _this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.setPlaceHolder(text);
62558
+ var _a;
62559
+ (_a = _this.sourceEditor) === null || _a === void 0 ? void 0 : _a.setPlaceHolder(text);
62582
62560
  }).on('change.source', this.syncValueFromWYSIWYG).on('beautifyHTML', function(html) {
62583
62561
  return html;
62584
62562
  });
62585
62563
  if (editor.o.beautifyHTML) {
62586
62564
  var addEventListener = function() {
62565
+ var _a;
62587
62566
  if (editor.isInDestruct) {
62588
62567
  return false;
62589
62568
  }
62590
62569
  var html_beautify = editor.ow.html_beautify;
62591
62570
  if (html_beautify && !editor.isInDestruct) {
62592
- var _editor_events;
62593
- (_editor_events = editor.events) === null || _editor_events === void 0 ? void 0 : _editor_events.off('beautifyHTML').on('beautifyHTML', function(html) {
62571
+ (_a = editor.events) === null || _a === void 0 ? void 0 : _a.off('beautifyHTML').on('beautifyHTML', function(html) {
62594
62572
  return html_beautify(html);
62595
62573
  });
62596
62574
  return true;
@@ -62621,21 +62599,21 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
62621
62599
  key: "initSourceEditor",
62622
62600
  value: function initSourceEditor(editor) {
62623
62601
  var _this = this;
62602
+ var _a;
62624
62603
  if (editor.o.sourceEditor !== 'area') {
62625
62604
  var sourceEditor = (0,_editor_factory_js__WEBPACK_IMPORTED_MODULE_7__/* .createSourceEditor */ .b)(editor.o.sourceEditor, editor, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG);
62626
62605
  sourceEditor.onReadyAlways(function() {
62627
- var _this_sourceEditor, _editor_events;
62628
- (_this_sourceEditor = _this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.destruct();
62606
+ var _a, _b;
62607
+ (_a = _this.sourceEditor) === null || _a === void 0 ? void 0 : _a.destruct();
62629
62608
  _this.sourceEditor = sourceEditor;
62630
62609
  _this.syncValueFromWYSIWYG(true);
62631
- (_editor_events = editor.events) === null || _editor_events === void 0 ? void 0 : _editor_events.fire('sourceEditorReady', editor);
62610
+ (_b = editor.events) === null || _b === void 0 ? void 0 : _b.fire('sourceEditorReady', editor);
62632
62611
  });
62633
62612
  } else {
62634
- var _this_sourceEditor;
62635
- (_this_sourceEditor = this.sourceEditor) === null || _this_sourceEditor === void 0 ? void 0 : _this_sourceEditor.onReadyAlways(function() {
62636
- var _editor_events;
62613
+ (_a = this.sourceEditor) === null || _a === void 0 ? void 0 : _a.onReadyAlways(function() {
62614
+ var _a;
62637
62615
  _this.syncValueFromWYSIWYG(true);
62638
- (_editor_events = editor.events) === null || _editor_events === void 0 ? void 0 : _editor_events.fire('sourceEditorReady', editor);
62616
+ (_a = editor.events) === null || _a === void 0 ? void 0 : _a.fire('sourceEditorReady', editor);
62639
62617
  });
62640
62618
  }
62641
62619
  }
@@ -62754,6 +62732,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.speec
62754
62732
  },
62755
62733
  exec: function exec(jodit, current, param) {
62756
62734
  var button = param.button, control = param.control;
62735
+ var _a;
62757
62736
  var _jodit_o_speechRecognize = jodit.o.speechRecognize, ApiConstructor = _jodit_o_speechRecognize.api, lang = _jodit_o_speechRecognize.lang, continuous = _jodit_o_speechRecognize.continuous, interimResults = _jodit_o_speechRecognize.interimResults, sound = _jodit_o_speechRecognize.sound;
62758
62737
  if (!ApiConstructor) {
62759
62738
  jodit.alert('Speech recognize API unsupported in your browser');
@@ -62763,8 +62742,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.speec
62763
62742
  if (!api) {
62764
62743
  var nativeApi = new ApiConstructor();
62765
62744
  api = new _helpers_recognize_manager_js__WEBPACK_IMPORTED_MODULE_5__/* .RecognizeManager */ .g(jodit.async, nativeApi);
62766
- var _attr;
62767
- api.lang = (0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .K)(lang) ? lang : (_attr = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__/* .attr */ .C)(jodit.od.documentElement, 'lang')) !== null && _attr !== void 0 ? _attr : undefined;
62745
+ api.lang = (0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .K)(lang) ? lang : (_a = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__/* .attr */ .C)(jodit.od.documentElement, 'lang')) !== null && _a !== void 0 ? _a : undefined;
62768
62746
  api.continuous = continuous;
62769
62747
  api.interimResults = interimResults;
62770
62748
  api.sound = sound;
@@ -62810,8 +62788,8 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.speec
62810
62788
  interimResults: 'Interim Results'
62811
62789
  },
62812
62790
  childTemplate: function childTemplate(jodit, key, value) {
62813
- var _api_key;
62814
- var api = (0,_core_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech'), checked = (_api_key = api === null || api === void 0 ? void 0 : api[key]) !== null && _api_key !== void 0 ? _api_key : jodit.o.speechRecognize[key];
62791
+ var _a;
62792
+ var api = (0,_core_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .m)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
62815
62793
  return "<span class='jodit-speech-recognize__list-item'><input ".concat(checked ? 'checked' : '', " class='jodit-checkbox' type='checkbox'>&nbsp;").concat(value, "</span>");
62816
62794
  },
62817
62795
  mods: {
@@ -67045,11 +67023,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video
67045
67023
  content: formCode.container
67046
67024
  });
67047
67025
  formLink.onSubmit(function(data) {
67048
- var _jodit_o_video, _jodit_o_video1, _jodit_o_video2;
67049
- var _jodit_o_video_parseUrlToVideoEmbed;
67050
- insertCode((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.call)((_jodit_o_video_parseUrlToVideoEmbed = (_jodit_o_video = jodit.o.video) === null || _jodit_o_video === void 0 ? void 0 : _jodit_o_video.parseUrlToVideoEmbed) !== null && _jodit_o_video_parseUrlToVideoEmbed !== void 0 ? _jodit_o_video_parseUrlToVideoEmbed : _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed, data.url, {
67051
- width: (_jodit_o_video1 = jodit.o.video) === null || _jodit_o_video1 === void 0 ? void 0 : _jodit_o_video1.defaultWidth,
67052
- height: (_jodit_o_video2 = jodit.o.video) === null || _jodit_o_video2 === void 0 ? void 0 : _jodit_o_video2.defaultHeight
67026
+ var _a, _b, _c, _d;
67027
+ insertCode((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.call)((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed, data.url, {
67028
+ width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
67029
+ height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
67053
67030
  }));
67054
67031
  });
67055
67032
  formCode.onSubmit(function(data) {
@@ -67273,8 +67250,8 @@ var __decorate = undefined && undefined.__decorate || function(decorators, targe
67273
67250
  /**
67274
67251
  * Found Node which should be wrapped
67275
67252
  */ _this.isSuitableStart = function(n) {
67276
- var _n_parentNode;
67277
- return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(n) && (0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(n.nodeValue) && (/[^\s]/.test(n.nodeValue) || ((_n_parentNode = n.parentNode) === null || _n_parentNode === void 0 ? void 0 : _n_parentNode.firstChild) === n && _this.isSuitable(n.nextSibling)) || _this.isNotWrapped(n) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTemporary(n);
67253
+ var _a;
67254
+ return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(n) && (0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(n.nodeValue) && (/[^\s]/.test(n.nodeValue) || ((_a = n.parentNode) === null || _a === void 0 ? void 0 : _a.firstChild) === n && _this.isSuitable(n.nextSibling)) || _this.isNotWrapped(n) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTemporary(n);
67278
67255
  };
67279
67256
  /**
67280
67257
  * Node should add in a block element
@@ -67627,7 +67604,7 @@ function _is_native_reflect_construct() {
67627
67604
  _this.j.s.select(elm);
67628
67605
  return false;
67629
67606
  }
67630
- } catch (e) {}
67607
+ } catch (_a) {}
67631
67608
  _this.j.s.select(bindElement);
67632
67609
  return false;
67633
67610
  };