jodit-pro 4.14.10 → 4.15.2

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 (379) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/es2015/jodit.css +2 -2
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +15 -15
  5. package/es2015/jodit.js +83 -83
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +12 -12
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +48 -45
  10. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  11. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +36 -36
  12. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  13. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  14. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  15. package/es2015/plugins/backup/backup.css +1 -1
  16. package/es2015/plugins/backup/backup.js +2 -2
  17. package/es2015/plugins/backup/backup.min.js +2 -2
  18. package/es2015/plugins/button-generator/button-generator.css +2 -2
  19. package/es2015/plugins/button-generator/button-generator.js +2 -2
  20. package/es2015/plugins/button-generator/button-generator.min.css +1 -1
  21. package/es2015/plugins/button-generator/button-generator.min.js +2 -2
  22. package/es2015/plugins/change-case/change-case.js +2 -2
  23. package/es2015/plugins/change-case/change-case.min.js +2 -2
  24. package/es2015/plugins/color-picker/color-picker.css +1 -1
  25. package/es2015/plugins/color-picker/color-picker.js +1 -1
  26. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  27. package/es2015/plugins/emoji/emoji.css +1 -1
  28. package/es2015/plugins/emoji/emoji.js +2 -2
  29. package/es2015/plugins/emoji/emoji.min.js +2 -2
  30. package/es2015/plugins/export-docs/export-docs.js +2 -2
  31. package/es2015/plugins/export-docs/export-docs.min.js +2 -2
  32. package/es2015/plugins/finder/finder.css +1 -1
  33. package/es2015/plugins/finder/finder.js +4 -4
  34. package/es2015/plugins/finder/finder.min.js +2 -2
  35. package/es2015/plugins/google-maps/google-maps.css +1 -1
  36. package/es2015/plugins/google-maps/google-maps.js +1 -1
  37. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  38. package/es2015/plugins/google-search/google-search.js +1 -1
  39. package/es2015/plugins/google-search/google-search.min.js +1 -1
  40. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  41. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  43. package/es2015/plugins/iframe-editor/iframe-editor.js +2 -2
  44. package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  46. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  47. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.css +1 -1
  49. package/es2015/plugins/keyboard/keyboard.js +7 -7
  50. package/es2015/plugins/keyboard/keyboard.min.js +2 -2
  51. package/es2015/plugins/mobile-view/mobile-view.js +2 -2
  52. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  53. package/es2015/plugins/page-break/page-break.js +2 -2
  54. package/es2015/plugins/page-break/page-break.min.js +3 -3
  55. package/es2015/plugins/paste-code/paste-code.css +2 -2
  56. package/es2015/plugins/paste-code/paste-code.js +2 -2
  57. package/es2015/plugins/paste-code/paste-code.min.css +1 -1
  58. package/es2015/plugins/paste-code/paste-code.min.js +3 -3
  59. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  60. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  61. package/es2015/plugins/show-blocks/show-blocks.js +2 -2
  62. package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
  63. package/es2015/plugins/style/style.css +1 -1
  64. package/es2015/plugins/style/style.js +2 -2
  65. package/es2015/plugins/style/style.min.js +2 -2
  66. package/es2015/plugins/templates/templates.css +1 -1
  67. package/es2015/plugins/templates/templates.js +2 -2
  68. package/es2015/plugins/templates/templates.min.js +2 -2
  69. package/es2015/plugins/todo-list/todo-list.css +1 -1
  70. package/es2015/plugins/todo-list/todo-list.js +2 -2
  71. package/es2015/plugins/todo-list/todo-list.min.js +2 -2
  72. package/es2015/plugins/translate/translate.css +1 -1
  73. package/es2015/plugins/translate/translate.js +3 -3
  74. package/es2015/plugins/translate/translate.min.js +2 -2
  75. package/es2015/plugins/tune-block/tune-block.css +1 -1
  76. package/es2015/plugins/tune-block/tune-block.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  78. package/es2018/jodit.fat.min.css +1 -1
  79. package/es2018/jodit.fat.min.js +25 -25
  80. package/es2018/jodit.min.css +1 -1
  81. package/es2018/jodit.min.js +12 -12
  82. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  83. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
  84. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  85. package/es2018/plugins/backup/backup.min.js +2 -2
  86. package/es2018/plugins/button-generator/button-generator.min.css +1 -1
  87. package/es2018/plugins/button-generator/button-generator.min.js +2 -2
  88. package/es2018/plugins/change-case/change-case.min.js +2 -2
  89. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  90. package/es2018/plugins/emoji/emoji.min.js +2 -2
  91. package/es2018/plugins/export-docs/export-docs.min.js +2 -2
  92. package/es2018/plugins/finder/finder.min.js +13 -13
  93. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  94. package/es2018/plugins/google-search/google-search.min.js +1 -1
  95. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  96. package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
  97. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  98. package/es2018/plugins/keyboard/keyboard.min.js +2 -2
  99. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  100. package/es2018/plugins/page-break/page-break.min.js +3 -3
  101. package/es2018/plugins/paste-code/paste-code.min.css +1 -1
  102. package/es2018/plugins/paste-code/paste-code.min.js +3 -3
  103. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  104. package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
  105. package/es2018/plugins/style/style.min.js +2 -2
  106. package/es2018/plugins/templates/templates.min.js +2 -2
  107. package/es2018/plugins/todo-list/todo-list.min.js +2 -2
  108. package/es2018/plugins/translate/translate.min.js +4 -4
  109. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  110. package/es2021/jodit.css +2 -2
  111. package/es2021/jodit.fat.min.css +1 -1
  112. package/es2021/jodit.fat.min.js +23 -23
  113. package/es2021/jodit.js +83 -83
  114. package/es2021/jodit.min.css +1 -1
  115. package/es2021/jodit.min.js +17 -17
  116. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
  117. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +48 -45
  118. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  119. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
  120. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  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 +2 -2
  125. package/es2021/plugins/backup/backup.min.js +2 -2
  126. package/es2021/plugins/button-generator/button-generator.css +2 -2
  127. package/es2021/plugins/button-generator/button-generator.js +2 -2
  128. package/es2021/plugins/button-generator/button-generator.min.css +1 -1
  129. package/es2021/plugins/button-generator/button-generator.min.js +2 -2
  130. package/es2021/plugins/change-case/change-case.js +2 -2
  131. package/es2021/plugins/change-case/change-case.min.js +2 -2
  132. package/es2021/plugins/color-picker/color-picker.css +1 -1
  133. package/es2021/plugins/color-picker/color-picker.js +1 -1
  134. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  135. package/es2021/plugins/emoji/emoji.css +1 -1
  136. package/es2021/plugins/emoji/emoji.js +2 -2
  137. package/es2021/plugins/emoji/emoji.min.js +2 -2
  138. package/es2021/plugins/export-docs/export-docs.js +2 -2
  139. package/es2021/plugins/export-docs/export-docs.min.js +2 -2
  140. package/es2021/plugins/finder/finder.css +1 -1
  141. package/es2021/plugins/finder/finder.js +4 -4
  142. package/es2021/plugins/finder/finder.min.js +2 -2
  143. package/es2021/plugins/google-maps/google-maps.css +1 -1
  144. package/es2021/plugins/google-maps/google-maps.js +1 -1
  145. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  146. package/es2021/plugins/google-search/google-search.js +1 -1
  147. package/es2021/plugins/google-search/google-search.min.js +1 -1
  148. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  149. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  150. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  151. package/es2021/plugins/iframe-editor/iframe-editor.js +2 -2
  152. package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
  153. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  154. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  155. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  156. package/es2021/plugins/keyboard/keyboard.css +1 -1
  157. package/es2021/plugins/keyboard/keyboard.js +7 -7
  158. package/es2021/plugins/keyboard/keyboard.min.js +3 -3
  159. package/es2021/plugins/mobile-view/mobile-view.js +2 -2
  160. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  161. package/es2021/plugins/page-break/page-break.js +2 -2
  162. package/es2021/plugins/page-break/page-break.min.js +3 -3
  163. package/es2021/plugins/paste-code/paste-code.css +2 -2
  164. package/es2021/plugins/paste-code/paste-code.js +2 -2
  165. package/es2021/plugins/paste-code/paste-code.min.css +1 -1
  166. package/es2021/plugins/paste-code/paste-code.min.js +3 -3
  167. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  168. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  169. package/es2021/plugins/show-blocks/show-blocks.js +2 -2
  170. package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
  171. package/es2021/plugins/style/style.css +1 -1
  172. package/es2021/plugins/style/style.js +2 -2
  173. package/es2021/plugins/style/style.min.js +2 -2
  174. package/es2021/plugins/templates/templates.css +1 -1
  175. package/es2021/plugins/templates/templates.js +2 -2
  176. package/es2021/plugins/templates/templates.min.js +2 -2
  177. package/es2021/plugins/todo-list/todo-list.css +1 -1
  178. package/es2021/plugins/todo-list/todo-list.js +2 -2
  179. package/es2021/plugins/todo-list/todo-list.min.js +2 -2
  180. package/es2021/plugins/translate/translate.css +1 -1
  181. package/es2021/plugins/translate/translate.js +3 -3
  182. package/es2021/plugins/translate/translate.min.js +4 -4
  183. package/es2021/plugins/tune-block/tune-block.css +1 -1
  184. package/es2021/plugins/tune-block/tune-block.js +1 -1
  185. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  186. package/es2021.en/jodit.css +2 -2
  187. package/es2021.en/jodit.fat.min.css +1 -1
  188. package/es2021.en/jodit.fat.min.js +23 -23
  189. package/es2021.en/jodit.js +83 -83
  190. package/es2021.en/jodit.min.css +1 -1
  191. package/es2021.en/jodit.min.js +17 -17
  192. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
  193. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +48 -45
  194. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  195. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +7 -7
  196. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  197. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  198. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  199. package/es2021.en/plugins/backup/backup.css +1 -1
  200. package/es2021.en/plugins/backup/backup.js +2 -2
  201. package/es2021.en/plugins/backup/backup.min.js +2 -2
  202. package/es2021.en/plugins/button-generator/button-generator.css +2 -2
  203. package/es2021.en/plugins/button-generator/button-generator.js +2 -2
  204. package/es2021.en/plugins/button-generator/button-generator.min.css +1 -1
  205. package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
  206. package/es2021.en/plugins/change-case/change-case.js +2 -2
  207. package/es2021.en/plugins/change-case/change-case.min.js +2 -2
  208. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  209. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  210. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  211. package/es2021.en/plugins/emoji/emoji.css +1 -1
  212. package/es2021.en/plugins/emoji/emoji.js +2 -2
  213. package/es2021.en/plugins/emoji/emoji.min.js +2 -2
  214. package/es2021.en/plugins/export-docs/export-docs.js +2 -2
  215. package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
  216. package/es2021.en/plugins/finder/finder.css +1 -1
  217. package/es2021.en/plugins/finder/finder.js +4 -4
  218. package/es2021.en/plugins/finder/finder.min.js +2 -2
  219. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  220. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  221. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  222. package/es2021.en/plugins/google-search/google-search.js +1 -1
  223. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  224. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  225. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  226. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  227. package/es2021.en/plugins/iframe-editor/iframe-editor.js +2 -2
  228. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
  229. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  230. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  231. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  232. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  233. package/es2021.en/plugins/keyboard/keyboard.js +7 -7
  234. package/es2021.en/plugins/keyboard/keyboard.min.js +3 -3
  235. package/es2021.en/plugins/mobile-view/mobile-view.js +2 -2
  236. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  237. package/es2021.en/plugins/page-break/page-break.js +2 -2
  238. package/es2021.en/plugins/page-break/page-break.min.js +3 -3
  239. package/es2021.en/plugins/paste-code/paste-code.css +2 -2
  240. package/es2021.en/plugins/paste-code/paste-code.js +2 -2
  241. package/es2021.en/plugins/paste-code/paste-code.min.css +1 -1
  242. package/es2021.en/plugins/paste-code/paste-code.min.js +3 -3
  243. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  244. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  245. package/es2021.en/plugins/show-blocks/show-blocks.js +2 -2
  246. package/es2021.en/plugins/show-blocks/show-blocks.min.js +4 -4
  247. package/es2021.en/plugins/style/style.css +1 -1
  248. package/es2021.en/plugins/style/style.js +2 -2
  249. package/es2021.en/plugins/style/style.min.js +2 -2
  250. package/es2021.en/plugins/templates/templates.css +1 -1
  251. package/es2021.en/plugins/templates/templates.js +2 -2
  252. package/es2021.en/plugins/templates/templates.min.js +2 -2
  253. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  254. package/es2021.en/plugins/todo-list/todo-list.js +2 -2
  255. package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
  256. package/es2021.en/plugins/translate/translate.css +1 -1
  257. package/es2021.en/plugins/translate/translate.js +3 -3
  258. package/es2021.en/plugins/translate/translate.min.js +4 -4
  259. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  260. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  261. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  262. package/es5/jodit.css +3 -3
  263. package/es5/jodit.fat.min.css +1 -1
  264. package/es5/jodit.fat.min.js +2 -2
  265. package/es5/jodit.js +83 -83
  266. package/es5/jodit.min.css +3 -3
  267. package/es5/jodit.min.js +2 -2
  268. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +6 -1
  269. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +50 -45
  270. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  271. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  272. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  273. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  274. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  275. package/es5/plugins/backup/backup.css +1 -1
  276. package/es5/plugins/backup/backup.js +2 -2
  277. package/es5/plugins/backup/backup.min.js +2 -2
  278. package/es5/plugins/button-generator/button-generator.css +2 -2
  279. package/es5/plugins/button-generator/button-generator.js +2 -2
  280. package/es5/plugins/button-generator/button-generator.min.css +1 -1
  281. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  282. package/es5/plugins/change-case/change-case.js +2 -2
  283. package/es5/plugins/change-case/change-case.min.js +2 -2
  284. package/es5/plugins/color-picker/color-picker.css +1 -1
  285. package/es5/plugins/color-picker/color-picker.js +1 -1
  286. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  287. package/es5/plugins/emoji/emoji.css +1 -1
  288. package/es5/plugins/emoji/emoji.js +2 -2
  289. package/es5/plugins/emoji/emoji.min.js +2 -2
  290. package/es5/plugins/export-docs/export-docs.js +2 -2
  291. package/es5/plugins/export-docs/export-docs.min.js +2 -2
  292. package/es5/plugins/finder/finder.css +1 -1
  293. package/es5/plugins/finder/finder.js +4 -4
  294. package/es5/plugins/finder/finder.min.js +2 -2
  295. package/es5/plugins/google-maps/google-maps.css +1 -1
  296. package/es5/plugins/google-maps/google-maps.js +1 -1
  297. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  298. package/es5/plugins/google-search/google-search.js +1 -1
  299. package/es5/plugins/google-search/google-search.min.js +1 -1
  300. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  301. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  302. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  303. package/es5/plugins/iframe-editor/iframe-editor.js +2 -2
  304. package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
  305. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  306. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  307. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  308. package/es5/plugins/keyboard/keyboard.css +1 -1
  309. package/es5/plugins/keyboard/keyboard.js +7 -7
  310. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  311. package/es5/plugins/mobile-view/mobile-view.js +2 -2
  312. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  313. package/es5/plugins/page-break/page-break.js +2 -2
  314. package/es5/plugins/page-break/page-break.min.js +2 -2
  315. package/es5/plugins/paste-code/paste-code.css +2 -2
  316. package/es5/plugins/paste-code/paste-code.js +2 -2
  317. package/es5/plugins/paste-code/paste-code.min.css +1 -1
  318. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  319. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  320. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  321. package/es5/plugins/show-blocks/show-blocks.js +2 -2
  322. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  323. package/es5/plugins/style/style.css +1 -1
  324. package/es5/plugins/style/style.js +2 -2
  325. package/es5/plugins/style/style.min.js +2 -2
  326. package/es5/plugins/templates/templates.css +1 -1
  327. package/es5/plugins/templates/templates.js +2 -2
  328. package/es5/plugins/templates/templates.min.js +2 -2
  329. package/es5/plugins/todo-list/todo-list.css +1 -1
  330. package/es5/plugins/todo-list/todo-list.js +2 -2
  331. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  332. package/es5/plugins/translate/translate.css +1 -1
  333. package/es5/plugins/translate/translate.js +3 -3
  334. package/es5/plugins/translate/translate.min.js +2 -2
  335. package/es5/plugins/tune-block/tune-block.css +1 -1
  336. package/es5/plugins/tune-block/tune-block.js +1 -1
  337. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  338. package/es5/polyfills.fat.min.js +1 -1
  339. package/es5/polyfills.js +1 -1
  340. package/es5/polyfills.min.js +1 -1
  341. package/esm/plugins/ai-assistant-pro/config.js +1 -1
  342. package/esm/plugins/ai-assistant-pro/core/conversation.d.ts +1 -1
  343. package/esm/plugins/ai-assistant-pro/core/conversation.js +1 -1
  344. package/esm/plugins/ai-assistant-pro/icons/add-context.svg.js +1 -1
  345. package/esm/plugins/ai-assistant-pro/icons/ai-commands.svg.js +1 -1
  346. package/esm/plugins/ai-assistant-pro/icons/chevron-right.svg.js +1 -1
  347. package/esm/plugins/ai-assistant-pro/icons/send.svg.js +1 -1
  348. package/esm/plugins/ai-assistant-pro/icons/shield.svg.js +1 -1
  349. package/esm/plugins/ai-assistant-pro/icons/tool-bolt.svg.js +1 -1
  350. package/esm/plugins/ai-assistant-pro/voice/voice-input-button.js +1 -1
  351. package/esm/plugins/backup/assets/restore.svg.js +1 -1
  352. package/esm/plugins/button-generator/assets/check.svg.js +1 -1
  353. package/esm/plugins/button-generator/icon.svg.js +1 -1
  354. package/esm/plugins/change-case/icon.svg.js +1 -1
  355. package/esm/plugins/emoji/emoji.svg.js +1 -1
  356. package/esm/plugins/export-docs/assets/export.svg.js +1 -1
  357. package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -1
  358. package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -1
  359. package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -1
  360. package/esm/plugins/iframe-editor/icon.svg.js +1 -1
  361. package/esm/plugins/keyboard/icon.svg.js +1 -1
  362. package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -1
  363. package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -1
  364. package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -1
  365. package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -1
  366. package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -1
  367. package/esm/plugins/mobile-view/icon.svg.js +1 -1
  368. package/esm/plugins/page-break/assets/page-break.svg.js +1 -1
  369. package/esm/plugins/paste-code/icon.svg.js +1 -1
  370. package/esm/plugins/paste-code/ui/code-tuner/drag.svg.js +1 -1
  371. package/esm/plugins/show-blocks/show-blocks.svg.js +1 -1
  372. package/esm/plugins/style/icon.svg.js +1 -1
  373. package/esm/plugins/templates/icon.svg.js +1 -1
  374. package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -1
  375. package/esm/plugins/translate/assets/swap.svg.js +1 -1
  376. package/esm/plugins/translate/assets/translate.svg.js +1 -1
  377. package/package.json +1 -1
  378. package/types/plugins/ai-assistant-pro/core/conversation.d.ts +1 -1
  379. package/esm/plugins/ai-assistant-pro/icons/microphone.svg.js +0 -1
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e=t();for(var n in e)("object"==typeof exports?exports:o)[n]=e[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{78879:function(o){o.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},12324:function(o,t,e){"use strict";var n=e(6441);n.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},n.Config.prototype.controls.showBlocks={isActive:function(o){return!!o.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},7085:function(o){o.exports={"Show Blocks":"تظهر كتل"}},42350:function(o){o.exports={"Show Blocks":"Uk\xe1zat Bloky"}},53189:function(o){o.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},48154:function(o){o.exports={"Show Blocks":"Mostrar Bloques"}},59551:function(o){o.exports={"Show Blocks":"نشان می دهد بلوک"}},41858:function(o){o.exports={"Show Blocks":"Afficher Les Blocs"}},78777:function(o){o.exports={"Show Blocks":"תראה רחובות"}},25321:function(o){o.exports={"Show Blocks":"Mutasd Meg Blokkok"}},27847:function(o){o.exports={"Show Blocks":"Menunjukkan Blok"}},45198:function(o,t,e){"use strict";e.r(t),e.d(t,{ar:function(){return n},cs_cz:function(){return i},de:function(){return r},es:function(){return s},fa:function(){return c},fr:function(){return l},he:function(){return u},hu:function(){return a},id:function(){return f},it:function(){return h},ja:function(){return d},ko:function(){return p},nl:function(){return k},pl:function(){return g},pt_br:function(){return b},ru:function(){return w},tr:function(){return B},zh_cn:function(){return x},zh_tw:function(){return m}});var n=e(7085),i=e(42350),r=e(53189),s=e(48154),c=e(59551),l=e(41858),u=e(78777),a=e(25321),f=e(27847),h=e(23287),d=e(73035),p=e(97028),k=e(26436),g=e(6602),b=e(86401),w=e(54023),B=e(8432),x=e(58366),m=e(46954)},23287:function(o){o.exports={"Show Blocks":"Visualizza Blocchi"}},73035:function(o){o.exports={"Show Blocks":"ショーのブロック"}},97028:function(o){o.exports={"Show Blocks":"쇼 블록"}},26436:function(o){o.exports={"Show Blocks":"Toon Blokken"}},6602:function(o){o.exports={"Show Blocks":"Pokaż Bloki"}},86401:function(o){o.exports={"Show Blocks":"Mostrar Blocos"}},54023:function(o){o.exports={"Show Blocks":"Показать Блоки"}},8432:function(o){o.exports={"Show Blocks":"Haritayı Blokları"}},58366:function(o){o.exports={"Show Blocks":"显示块"}},46954:function(o){o.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(o,t,e){"use strict";e.r(t),e.d(t,{showBlocks:function(){return B}});var n=e(80294),i=e(20616),r=e(67709),s=e(82749),c=e(18766),l=e(31635),u=e(23078);e(12324);var a=e(45198),f=e(78879),h=e.n(f),d=e(65478),p=e(2748),k=e(580),g=e(50911),b=e(12153),w=e(2692),B=function(o){function t(o){var e;return(0,i._)(this,t),e=(0,n._)(this,t,[o]),(0,s._)(e,"buttons",[{name:"showBlocks",group:"state"}]),(0,s._)(e,"isEnabled",!1),(0,k.extendLang)(a),b.Icon.set("showBlocks",h()),e}return(0,c._)(t,o),(0,r._)(t,[{key:"style",get:function(){return(0,k.getContainer)(this.jodit,t,"style",!0)}},{key:"enable",value:function(){var o=this;this.isEnabled=!0;var t=this.j.o.iframe?"body":".jodit-wysiwyg",e=this.j.o.showBlocks,n=e.tagList,i=e.color;this.style.innerHTML=n.map(function(e){var n;return"".concat(t," ").concat(e,"{\n outline: 1px dashed ").concat(i,';\n background-image: url("').concat((n='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+i+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(n))),'");\n background-position: top 2px ').concat("rtl"===o.j.o.direction?"left":"right"," 4px;\n background-repeat: no-repeat;\n position: relative;\n }")}).join("")}},{key:"disable",value:function(){this.isEnabled=!1;var o=(0,d.cached)(this,"style");o&&(o.innerHTML="")}},{key:"toggle",value:function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}},{key:"afterInit",value:function(o){var t=this;o.e.on("showBlocksEnabled",function(){return t.isEnabled}),o.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}},{key:"beforeDestruct",value:function(o){this.disable(),p.Dom.safeRemove((0,d.cached)(this,"style"))}}]),t}((0,u._)(g.Plugin));(0,s._)(B,"requires",["license"]),(0,l.__decorate)([d.cache],B.prototype,"style",null),(0,l.__decorate)([d.autobind],B.prototype,"enable",null),(0,l.__decorate)([d.autobind],B.prototype,"disable",null),(0,l.__decorate)([d.autobind],B.prototype,"toggle",null),w.JoditPro.plugins.add("show-blocks",B)}},function(o){return o(47682)}])});
8
+ !function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var e in n)("object"==typeof exports?exports:o)[e]=n[e]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{78879:function(o){o.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 7V3h4m4 0h3m4 0h3v4m0 4v3m0 4v3h-4m-4 0h-3m-4 0H3v-4m0-4v-3M7 8h10M7 12h10M7 16h6"/> </g> </svg>'},12324:function(o,t,n){"use strict";var e=n(6441);e.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},e.Config.prototype.controls.showBlocks={isActive:function(o){return!!o.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},7085:function(o){o.exports={"Show Blocks":"تظهر كتل"}},42350:function(o){o.exports={"Show Blocks":"Uk\xe1zat Bloky"}},53189:function(o){o.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},48154:function(o){o.exports={"Show Blocks":"Mostrar Bloques"}},59551:function(o){o.exports={"Show Blocks":"نشان می دهد بلوک"}},41858:function(o){o.exports={"Show Blocks":"Afficher Les Blocs"}},78777:function(o){o.exports={"Show Blocks":"תראה רחובות"}},25321:function(o){o.exports={"Show Blocks":"Mutasd Meg Blokkok"}},27847:function(o){o.exports={"Show Blocks":"Menunjukkan Blok"}},45198:function(o,t,n){"use strict";n.r(t),n.d(t,{ar:function(){return e},cs_cz:function(){return i},de:function(){return r},es:function(){return s},fa:function(){return c},fr:function(){return l},he:function(){return u},hu:function(){return a},id:function(){return h},it:function(){return f},ja:function(){return d},ko:function(){return p},nl:function(){return k},pl:function(){return g},pt_br:function(){return b},ru:function(){return w},tr:function(){return B},zh_cn:function(){return m},zh_tw:function(){return x}});var e=n(7085),i=n(42350),r=n(53189),s=n(48154),c=n(59551),l=n(41858),u=n(78777),a=n(25321),h=n(27847),f=n(23287),d=n(73035),p=n(97028),k=n(26436),g=n(6602),b=n(86401),w=n(54023),B=n(8432),m=n(58366),x=n(46954)},23287:function(o){o.exports={"Show Blocks":"Visualizza Blocchi"}},73035:function(o){o.exports={"Show Blocks":"ショーのブロック"}},97028:function(o){o.exports={"Show Blocks":"쇼 블록"}},26436:function(o){o.exports={"Show Blocks":"Toon Blokken"}},6602:function(o){o.exports={"Show Blocks":"Pokaż Bloki"}},86401:function(o){o.exports={"Show Blocks":"Mostrar Blocos"}},54023:function(o){o.exports={"Show Blocks":"Показать Блоки"}},8432:function(o){o.exports={"Show Blocks":"Haritayı Blokları"}},58366:function(o){o.exports={"Show Blocks":"显示块"}},46954:function(o){o.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(o,t,n){"use strict";n.r(t),n.d(t,{showBlocks:function(){return B}});var e=n(80294),i=n(20616),r=n(67709),s=n(82749),c=n(18766),l=n(31635),u=n(23078);n(12324);var a=n(45198),h=n(78879),f=n.n(h),d=n(65478),p=n(2748),k=n(580),g=n(50911),b=n(12153),w=n(2692),B=function(o){function t(o){var n;return(0,i._)(this,t),n=(0,e._)(this,t,[o]),(0,s._)(n,"buttons",[{name:"showBlocks",group:"state"}]),(0,s._)(n,"isEnabled",!1),(0,k.extendLang)(a),b.Icon.set("showBlocks",f()),n}return(0,c._)(t,o),(0,r._)(t,[{key:"style",get:function(){return(0,k.getContainer)(this.jodit,t,"style",!0)}},{key:"enable",value:function(){var o=this;this.isEnabled=!0;var t=this.j.o.iframe?"body":".jodit-wysiwyg",n=this.j.o.showBlocks,e=n.tagList,i=n.color;this.style.innerHTML=e.map(function(n){var e;return"".concat(t," ").concat(n,"{\n outline: 1px dashed ").concat(i,';\n background-image: url("').concat((e='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+i+';font: 10px sans-serif" x="50px" y="0">'+n+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(e))),'");\n background-position: top 2px ').concat("rtl"===o.j.o.direction?"left":"right"," 4px;\n background-repeat: no-repeat;\n position: relative;\n }")}).join("")}},{key:"disable",value:function(){this.isEnabled=!1;var o=(0,d.cached)(this,"style");o&&(o.innerHTML="")}},{key:"toggle",value:function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}},{key:"afterInit",value:function(o){var t=this;o.e.on("showBlocksEnabled",function(){return t.isEnabled}),o.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}},{key:"beforeDestruct",value:function(o){this.disable(),p.Dom.safeRemove((0,d.cached)(this,"style"))}}]),t}((0,u._)(g.Plugin));(0,s._)(B,"requires",["license"]),(0,l.__decorate)([d.cache],B.prototype,"style",null),(0,l.__decorate)([d.autobind],B.prototype,"enable",null),(0,l.__decorate)([d.autobind],B.prototype,"disable",null),(0,l.__decorate)([d.autobind],B.prototype,"toggle",null),w.JoditPro.plugins.add("show-blocks",B)}},function(o){return o(47682)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -21,7 +21,7 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
21
21
  /***/ 78955:
22
22
  /***/ (function(module) {
23
23
 
24
- module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" stroke=\"currentColor\" stroke-width=\"1.5\"> <rect x=\"2\" y=\"3.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"2\" y=\"14.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"13\" y=\"14.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"13\" y=\"3.5\" width=\"9\" height=\"9\" rx=\"1.5\" fill=\"currentColor\" transform=\"rotate(45 17.5 8)\"/> </svg>"
24
+ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"/><path d=\"M14 6h7m-7 4h4m-4 7h7m-7 4h4\"/> </g> </svg>"
25
25
 
26
26
  /***/ }),
27
27
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},28609:function(t,e,r){"use strict";var n=r(69341),i=r(5440),o=r(78955),l=r.n(o),a=r(6441);a.Config.prototype.customStyles={definitions:[]},a.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,n.detectActiveStyle)(t,e)},update:function(t,e){var r,i=t.o.customStyles.definitions;if(i.length){var o=(0,n.detectActiveStyle)(t,i),l=(null==(r=e.control)?void 0:r.component)==="select";(t.o.textIcons||l)&&(o?e.state.text=o.name:e.state.text=l?t.i18n("Styles"):"")}},exec:function(){return!1},popup:function(t,e,r){var n=t.o.customStyles.definitions;if(!n.length)return!1;t.s.current()||t.s.focus(),t.s.save();var o=(0,i.buildStylePopup)(t,n,function(){t.s.restore(),r()});return t.e.one("beforePopupClose",function(){t.s.restore()}),o}}},31105:function(t,e,r){"use strict";r.d(e,{applyStyle:function(){return d}});var n=r(43284),i=r(61200),o=r(69341),l=r(82758),a=r(2748),s=r(29960),u=r(41180);function c(t,e){var r=t.s.current();if(!r)return null;if(l.IS_BLOCK.test(e.element))return a.Dom.closest(r,a.Dom.isBlock,t.editor);for(var n=a.Dom.isElement(r)?r:r.parentNode;n&&n!==t.editor;){if(a.Dom.isElement(n)&&n.nodeName.toLowerCase()===e.element)return n;n=n.parentNode}return null}function f(t,e){var r=!0,n=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var a=o.value;t.classList.remove(a)}}catch(t){n=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(n)throw i}}""===t.className&&t.removeAttribute("class")}function v(t){if(t.attributes)return{element:t.element,attributes:t.attributes};var e,r=null==(e=t.classes)?void 0:e.filter(Boolean)[0];return r?{element:t.element,attributes:{class:r}}:{element:t.element}}function d(t,e,r){var d=(0,o.detectActiveStyle)(t,r),y=l.IS_BLOCK.test(e.element);if(y&&function(t){var e=t.s.current();if(e){var r=a.Dom.closest(e,a.Dom.isBlock,t.editor);a.Dom.isTag(r,"pre")&&"false"===(0,s.attr)(r,"contenteditable")&&(0,s.attr)(r,"contenteditable",null)}}(t),d&&l.IS_BLOCK.test(d.element)===y){if(y&&d!==e)!function(t,e){var r=t.s.current();if(r){var o=a.Dom.closest(r,a.Dom.isBlock,t.editor);if(o&&o.nodeName.toLowerCase()===e.element){var l=null==(y=e.classes)?void 0:y.filter(Boolean);if((null==l?void 0:l.length)&&f(o,l),e.attributes){var c=!0,v=!1,d=void 0;try{for(var y,m,p=Object.entries(e.attributes)[Symbol.iterator]();!(c=(m=p.next()).done);c=!0){var h=(0,n._)(m.value,2),b=h[0],S=h[1];if(null!=S)if("class"===b&&"string"==typeof S)f(o,S.split(/\s+/));else if("style"===b&&(void 0===S?"undefined":(0,i._)(S))==="object"){var g=!0,_=!1,x=void 0;try{for(var w,C=Object.keys(S)[Symbol.iterator]();!(g=(w=C.next()).done);g=!0){var D=w.value;(0,u.css)(o,D,null)}}catch(t){_=!0,x=t}finally{try{g||null==C.return||C.return()}finally{if(_)throw x}}}else(0,s.attr)(o,b)===String(S)&&(0,s.attr)(o,b,null)}}catch(t){v=!0,d=t}finally{try{c||null==p.return||p.return()}finally{if(v)throw d}}}}}}(t,d);else if(t.s.commitStyle(v(d)),d.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=t.s.current();if(i)if(l.IS_BLOCK.test(e.element)){var o=a.Dom.closest(i,a.Dom.isBlock,t.editor);o&&f(o,n.slice(1))}else{var s=c(t,e);s&&(f(s,n.slice(1)),"span"!==s.nodeName.toLowerCase()||s.attributes.length||a.Dom.unwrap(s))}}}(t,d),d===e)return}t.s.commitStyle(v(e)),e.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=c(t,e);if(i)for(var o=1;o<n.length;o++)i.classList.add(n[o])}}(t,e)}},8060:function(t,e,r){"use strict";r.d(e,{classifyDefinitions:function(){return i}});var n=r(82758);function i(t){var e=[],r=[],i=!0,o=!1,l=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var u=a.value;n.IS_BLOCK.test(u.element)?e.push(u):r.push(u)}}catch(t){o=!0,l=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}var c=[];return e.length&&c.push({title:"Block styles",definitions:e}),r.length&&c.push({title:"Text styles",definitions:r}),c}},69341:function(t,e,r){"use strict";r.d(e,{detectActiveStyle:function(){return c}});var n=r(43284),i=r(61200),o=r(82758),l=r(2748),a=r(29960),s=r(41180);function u(t,e){if(t.nodeName.toLowerCase()!==e.element)return!1;if(e.attributes)return function(t,e){var r=!0,o=!1,l=void 0;try{for(var u,c=Object.entries(e)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var f=(0,n._)(u.value,2),v=f[0],d=f[1];if(null!=d){if("class"===v){if("string"==typeof d&&!t.classList.contains(d))return!1}else if("style"===v){if((void 0===d?"undefined":(0,i._)(d))==="object"&&null!=d){var y=!0,m=!1,p=void 0;try{for(var h,b=Object.entries(d)[Symbol.iterator]();!(y=(h=b.next()).done);y=!0){var S=(0,n._)(h.value,2),g=S[0],_=S[1];if(null!=_&&(0,s.css)(t,g,!0)!==String(_))return!1}}catch(t){m=!0,p=t}finally{try{y||null==b.return||b.return()}finally{if(m)throw p}}}}else if((0,a.attr)(t,v)!==String(d))return!1}}}catch(t){o=!0,l=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw l}}return!0}(t,e.attributes);var r,o=null==(r=e.classes)?void 0:r.filter(Boolean);return null==o||!o.length||o.every(function(e){return t.classList.contains(e)})}function c(t,e){var r=t.s.current();if(!r)return null;var n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var f=s.value;if(o.IS_BLOCK.test(f.element)){var v=l.Dom.closest(r,l.Dom.isBlock,t.editor);if(v&&u(v,f))return f}else for(var d=l.Dom.isElement(r)?r:r.parentNode;d&&d!==t.editor;){if(l.Dom.isElement(d)&&u(d,f))return f;d=d.parentNode}}}catch(t){i=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return null}},75554:function(t,e,r){"use strict";r.r(e),r.d(e,{style:function(){return f}});var n=r(80294),i=r(20616),o=r(67709),l=r(82749),a=r(18766),s=r(23078);r(28609);var u=r(50911),c=r(2692),f=function(t){function e(){var t;return(0,i._)(this,e),t=(0,n._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,a._)(e,t),(0,o._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,s._)(u.Plugin));(0,l._)(f,"requires",["license"]),c.JoditPro.plugins.add("style",f)},5440:function(t,e,r){"use strict";r.d(e,{buildStylePopup:function(){return s}});var n=r(31105),i=r(8060),o=r(69341),l=r(29960),a="jodit-style-popup";function s(t,e,r){var s=(0,i.classifyDefinitions)(e),u=(0,o.detectActiveStyle)(t,e),c=t.c.div(a),f=!0,v=!1,d=void 0;try{for(var y,m=s[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var p=y.value,h=t.c.div("".concat(a,"__group-title"));h.textContent=t.i18n(p.title),c.appendChild(h);var b=t.c.div("".concat(a,"__grid")),S=!0,g=!1,_=void 0;try{for(var x,w=p.definitions[Symbol.iterator]();!(S=(x=w.next()).done);S=!0)!function(){var i=x.value,o=t.c.element("button");o.type="button";var s=u===i;o.className="".concat(a,"__card")+(s?" ".concat(a,"__card_active_true"):"");var c=t.c.div("".concat(a,"__card-preview")),f=t.c.element(i.element);if(i.attributes)(0,l.attr)(f,i.attributes);else{var v=!0,d=!1,y=void 0;try{for(var m,p,h,S=(null!=(m=null==(p=i.classes)?void 0:p.filter(Boolean))?m:[])[Symbol.iterator]();!(v=(h=S.next()).done);v=!0){var g=h.value;f.classList.add(g)}}catch(t){d=!0,y=t}finally{try{v||null==S.return||S.return()}finally{if(d)throw y}}}f.textContent=i.name,c.appendChild(f),o.appendChild(c);var _=t.c.div("".concat(a,"__card-label"));_.textContent=i.name,o.appendChild(_),t.e.on(o,"click",function(){t.s.focus(),(0,n.applyStyle)(t,i,e),t.synchronizeValues(),r()}),b.appendChild(o)}()}catch(t){g=!0,_=t}finally{try{S||null==w.return||w.return()}finally{if(g)throw _}}c.appendChild(b)}}catch(t){v=!0,d=t}finally{try{f||null==m.return||m.return()}finally{if(v)throw d}}return c}}},function(t){return t(75554)}])});
8
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 6h7m-7 4h4m-4 7h7m-7 4h4"/> </g> </svg>'},28609:function(t,e,r){"use strict";var n=r(69341),i=r(5440),o=r(78955),l=r.n(o),a=r(6441);a.Config.prototype.customStyles={definitions:[]},a.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,n.detectActiveStyle)(t,e)},update:function(t,e){var r,i=t.o.customStyles.definitions;if(i.length){var o=(0,n.detectActiveStyle)(t,i),l=(null==(r=e.control)?void 0:r.component)==="select";(t.o.textIcons||l)&&(o?e.state.text=o.name:e.state.text=l?t.i18n("Styles"):"")}},exec:function(){return!1},popup:function(t,e,r){var n=t.o.customStyles.definitions;if(!n.length)return!1;t.s.current()||t.s.focus(),t.s.save();var o=(0,i.buildStylePopup)(t,n,function(){t.s.restore(),r()});return t.e.one("beforePopupClose",function(){t.s.restore()}),o}}},31105:function(t,e,r){"use strict";r.d(e,{applyStyle:function(){return d}});var n=r(43284),i=r(61200),o=r(69341),l=r(82758),a=r(2748),s=r(29960),u=r(41180);function c(t,e){var r=t.s.current();if(!r)return null;if(l.IS_BLOCK.test(e.element))return a.Dom.closest(r,a.Dom.isBlock,t.editor);for(var n=a.Dom.isElement(r)?r:r.parentNode;n&&n!==t.editor;){if(a.Dom.isElement(n)&&n.nodeName.toLowerCase()===e.element)return n;n=n.parentNode}return null}function f(t,e){var r=!0,n=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var a=o.value;t.classList.remove(a)}}catch(t){n=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(n)throw i}}""===t.className&&t.removeAttribute("class")}function v(t){if(t.attributes)return{element:t.element,attributes:t.attributes};var e,r=null==(e=t.classes)?void 0:e.filter(Boolean)[0];return r?{element:t.element,attributes:{class:r}}:{element:t.element}}function d(t,e,r){var d=(0,o.detectActiveStyle)(t,r),y=l.IS_BLOCK.test(e.element);if(y&&function(t){var e=t.s.current();if(e){var r=a.Dom.closest(e,a.Dom.isBlock,t.editor);a.Dom.isTag(r,"pre")&&"false"===(0,s.attr)(r,"contenteditable")&&(0,s.attr)(r,"contenteditable",null)}}(t),d&&l.IS_BLOCK.test(d.element)===y){if(y&&d!==e)!function(t,e){var r=t.s.current();if(r){var o=a.Dom.closest(r,a.Dom.isBlock,t.editor);if(o&&o.nodeName.toLowerCase()===e.element){var l=null==(y=e.classes)?void 0:y.filter(Boolean);if((null==l?void 0:l.length)&&f(o,l),e.attributes){var c=!0,v=!1,d=void 0;try{for(var y,m,p=Object.entries(e.attributes)[Symbol.iterator]();!(c=(m=p.next()).done);c=!0){var h=(0,n._)(m.value,2),b=h[0],S=h[1];if(null!=S)if("class"===b&&"string"==typeof S)f(o,S.split(/\s+/));else if("style"===b&&(void 0===S?"undefined":(0,i._)(S))==="object"){var g=!0,_=!1,x=void 0;try{for(var w,C=Object.keys(S)[Symbol.iterator]();!(g=(w=C.next()).done);g=!0){var D=w.value;(0,u.css)(o,D,null)}}catch(t){_=!0,x=t}finally{try{g||null==C.return||C.return()}finally{if(_)throw x}}}else(0,s.attr)(o,b)===String(S)&&(0,s.attr)(o,b,null)}}catch(t){v=!0,d=t}finally{try{c||null==p.return||p.return()}finally{if(v)throw d}}}}}}(t,d);else if(t.s.commitStyle(v(d)),d.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=t.s.current();if(i)if(l.IS_BLOCK.test(e.element)){var o=a.Dom.closest(i,a.Dom.isBlock,t.editor);o&&f(o,n.slice(1))}else{var s=c(t,e);s&&(f(s,n.slice(1)),"span"!==s.nodeName.toLowerCase()||s.attributes.length||a.Dom.unwrap(s))}}}(t,d),d===e)return}t.s.commitStyle(v(e)),e.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=c(t,e);if(i)for(var o=1;o<n.length;o++)i.classList.add(n[o])}}(t,e)}},8060:function(t,e,r){"use strict";r.d(e,{classifyDefinitions:function(){return i}});var n=r(82758);function i(t){var e=[],r=[],i=!0,o=!1,l=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var u=a.value;n.IS_BLOCK.test(u.element)?e.push(u):r.push(u)}}catch(t){o=!0,l=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}var c=[];return e.length&&c.push({title:"Block styles",definitions:e}),r.length&&c.push({title:"Text styles",definitions:r}),c}},69341:function(t,e,r){"use strict";r.d(e,{detectActiveStyle:function(){return c}});var n=r(43284),i=r(61200),o=r(82758),l=r(2748),a=r(29960),s=r(41180);function u(t,e){if(t.nodeName.toLowerCase()!==e.element)return!1;if(e.attributes)return function(t,e){var r=!0,o=!1,l=void 0;try{for(var u,c=Object.entries(e)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var f=(0,n._)(u.value,2),v=f[0],d=f[1];if(null!=d){if("class"===v){if("string"==typeof d&&!t.classList.contains(d))return!1}else if("style"===v){if((void 0===d?"undefined":(0,i._)(d))==="object"&&null!=d){var y=!0,m=!1,p=void 0;try{for(var h,b=Object.entries(d)[Symbol.iterator]();!(y=(h=b.next()).done);y=!0){var S=(0,n._)(h.value,2),g=S[0],_=S[1];if(null!=_&&(0,s.css)(t,g,!0)!==String(_))return!1}}catch(t){m=!0,p=t}finally{try{y||null==b.return||b.return()}finally{if(m)throw p}}}}else if((0,a.attr)(t,v)!==String(d))return!1}}}catch(t){o=!0,l=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw l}}return!0}(t,e.attributes);var r,o=null==(r=e.classes)?void 0:r.filter(Boolean);return null==o||!o.length||o.every(function(e){return t.classList.contains(e)})}function c(t,e){var r=t.s.current();if(!r)return null;var n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var f=s.value;if(o.IS_BLOCK.test(f.element)){var v=l.Dom.closest(r,l.Dom.isBlock,t.editor);if(v&&u(v,f))return f}else for(var d=l.Dom.isElement(r)?r:r.parentNode;d&&d!==t.editor;){if(l.Dom.isElement(d)&&u(d,f))return f;d=d.parentNode}}}catch(t){i=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return null}},75554:function(t,e,r){"use strict";r.r(e),r.d(e,{style:function(){return f}});var n=r(80294),i=r(20616),o=r(67709),l=r(82749),a=r(18766),s=r(23078);r(28609);var u=r(50911),c=r(2692),f=function(t){function e(){var t;return(0,i._)(this,e),t=(0,n._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,a._)(e,t),(0,o._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,s._)(u.Plugin));(0,l._)(f,"requires",["license"]),c.JoditPro.plugins.add("style",f)},5440:function(t,e,r){"use strict";r.d(e,{buildStylePopup:function(){return s}});var n=r(31105),i=r(8060),o=r(69341),l=r(29960),a="jodit-style-popup";function s(t,e,r){var s=(0,i.classifyDefinitions)(e),u=(0,o.detectActiveStyle)(t,e),c=t.c.div(a),f=!0,v=!1,d=void 0;try{for(var y,m=s[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var p=y.value,h=t.c.div("".concat(a,"__group-title"));h.textContent=t.i18n(p.title),c.appendChild(h);var b=t.c.div("".concat(a,"__grid")),S=!0,g=!1,_=void 0;try{for(var x,w=p.definitions[Symbol.iterator]();!(S=(x=w.next()).done);S=!0)!function(){var i=x.value,o=t.c.element("button");o.type="button";var s=u===i;o.className="".concat(a,"__card")+(s?" ".concat(a,"__card_active_true"):"");var c=t.c.div("".concat(a,"__card-preview")),f=t.c.element(i.element);if(i.attributes)(0,l.attr)(f,i.attributes);else{var v=!0,d=!1,y=void 0;try{for(var m,p,h,S=(null!=(m=null==(p=i.classes)?void 0:p.filter(Boolean))?m:[])[Symbol.iterator]();!(v=(h=S.next()).done);v=!0){var g=h.value;f.classList.add(g)}}catch(t){d=!0,y=t}finally{try{v||null==S.return||S.return()}finally{if(d)throw y}}}f.textContent=i.name,c.appendChild(f),o.appendChild(c);var _=t.c.div("".concat(a,"__card-label"));_.textContent=i.name,o.appendChild(_),t.e.on(o,"click",function(){t.s.focus(),(0,n.applyStyle)(t,i,e),t.synchronizeValues(),r()}),b.appendChild(o)}()}catch(t){g=!0,_=t}finally{try{S||null==w.return||w.return()}finally{if(g)throw _}}c.appendChild(b)}}catch(t){v=!0,d=t}finally{try{f||null==m.return||m.return()}finally{if(v)throw d}}return c}}},function(t){return t(75554)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -21,7 +21,7 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
21
21
  /***/ 18993:
22
22
  /***/ (function(module) {
23
23
 
24
- module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" stroke=\"currentColor\" stroke-width=\"1.5\"> <rect x=\"2\" y=\"2\" width=\"20\" height=\"9\" rx=\"1.5\" fill=\"none\"/> <rect x=\"2\" y=\"14\" width=\"9\" height=\"8\" rx=\"1.5\" fill=\"none\"/> <rect x=\"13\" y=\"14\" width=\"9\" height=\"8\" rx=\"1.5\" fill=\"currentColor\"/> </svg>"
24
+ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M3 9h18M10 9v12M14 13h3m-3 4h3\"/> </g> </svg>"
25
25
 
26
26
  /***/ }),
27
27
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[945],{18993:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},58475:function(e,t,n){"use strict";var i=n(54296),r=n(18993),o=n.n(r),c=n(6441);c.Config.prototype.contentTemplates={definitions:[]},c.Config.prototype.controls.templates={tooltip:"Templates",icon:o(),isDisabled:function(e){return!e.o.contentTemplates.definitions.length},exec:function(){return!1},popup:function(e,t,n){var r=e.o.contentTemplates.definitions;if(!r.length)return!1;e.s.current()||e.s.focus(),e.s.save();var o=(0,i.buildTemplatesPopup)(e,r,function(){e.s.restore(),n()});return e.e.one("beforePopupClose",function(){e.s.restore()}),o}}},61886:function(e,t,n){"use strict";n.r(t),n.d(t,{templates:function(){return p}});var i=n(80294),r=n(20616),o=n(67709),c=n(82749),s=n(18766),a=n(23078);n(58475);var u=n(50911),l=n(2692),p=function(e){function t(){var e;return(0,r._)(this,t),e=(0,i._)(this,t,arguments),(0,c._)(e,"buttons",[{name:"templates",group:"insert"}]),e}return(0,s._)(t,e),(0,o._)(t,[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}}]),t}((0,a._)(u.Plugin));(0,c._)(p,"requires",["license"]),l.JoditPro.plugins.add("templates",p)},54296:function(e,t,n){"use strict";n.d(t,{buildTemplatesPopup:function(){return r}});var i="jodit-templates-popup";function r(e,t,n){var r=e.c.div(i),o=!0,c=!1,s=void 0;try{for(var a,u=t[Symbol.iterator]();!(o=(a=u.next()).done);o=!0)!function(){var t=a.value,o=e.c.element("button");o.type="button",o.className="".concat(i,"__card");var c=e.c.div("".concat(i,"__card-preview"));if(t.image){var s=e.c.element("img");s.src=t.image,s.alt=t.title,c.appendChild(s)}else{var u=e.c.div("".concat(i,"__card-preview-inner"));u.innerHTML=t.html,c.appendChild(u)}o.appendChild(c);var l=e.c.div("".concat(i,"__card-info")),p=e.c.div("".concat(i,"__card-title"));p.textContent=t.title,l.appendChild(p);var d=e.c.div("".concat(i,"__card-description"));d.textContent=t.description,l.appendChild(d),o.appendChild(l),e.e.on(o,"click",function(){e.s.focus(),e.s.insertHTML(t.html),e.synchronizeValues(),n()}),r.appendChild(o)}()}catch(e){c=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(c)throw s}}return r}}},function(e){return e(61886)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[945],{18993:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M10 9v12M14 13h3m-3 4h3"/> </g> </svg>'},58475:function(e,t,n){"use strict";var o=n(54296),i=n(18993),r=n.n(i),c=n(6441);c.Config.prototype.contentTemplates={definitions:[]},c.Config.prototype.controls.templates={tooltip:"Templates",icon:r(),isDisabled:function(e){return!e.o.contentTemplates.definitions.length},exec:function(){return!1},popup:function(e,t,n){var i=e.o.contentTemplates.definitions;if(!i.length)return!1;e.s.current()||e.s.focus(),e.s.save();var r=(0,o.buildTemplatesPopup)(e,i,function(){e.s.restore(),n()});return e.e.one("beforePopupClose",function(){e.s.restore()}),r}}},61886:function(e,t,n){"use strict";n.r(t),n.d(t,{templates:function(){return p}});var o=n(80294),i=n(20616),r=n(67709),c=n(82749),s=n(18766),a=n(23078);n(58475);var u=n(50911),l=n(2692),p=function(e){function t(){var e;return(0,i._)(this,t),e=(0,o._)(this,t,arguments),(0,c._)(e,"buttons",[{name:"templates",group:"insert"}]),e}return(0,s._)(t,e),(0,r._)(t,[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}}]),t}((0,a._)(u.Plugin));(0,c._)(p,"requires",["license"]),l.JoditPro.plugins.add("templates",p)},54296:function(e,t,n){"use strict";n.d(t,{buildTemplatesPopup:function(){return i}});var o="jodit-templates-popup";function i(e,t,n){var i=e.c.div(o),r=!0,c=!1,s=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)!function(){var t=a.value,r=e.c.element("button");r.type="button",r.className="".concat(o,"__card");var c=e.c.div("".concat(o,"__card-preview"));if(t.image){var s=e.c.element("img");s.src=t.image,s.alt=t.title,c.appendChild(s)}else{var u=e.c.div("".concat(o,"__card-preview-inner"));u.innerHTML=t.html,c.appendChild(u)}r.appendChild(c);var l=e.c.div("".concat(o,"__card-info")),p=e.c.div("".concat(o,"__card-title"));p.textContent=t.title,l.appendChild(p);var d=e.c.div("".concat(o,"__card-description"));d.textContent=t.description,l.appendChild(d),r.appendChild(l),e.e.on(r,"click",function(){e.s.focus(),e.s.insertHTML(t.html),e.synchronizeValues(),n()}),i.appendChild(r)}()}catch(e){c=!0,s=e}finally{try{r||null==u.return||u.return()}finally{if(c)throw s}}return i}}},function(e){return e(61886)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -21,7 +21,7 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
21
21
  /***/ 11373:
22
22
  /***/ (function(module) {
23
23
 
24
- module.exports = "<svg stroke=\"black\" stroke-linejoin=\"round\" stroke-linecap=\"round\" stroke-width=\"28\" viewBox=\"0 0 256 256\" xmlns=\"http://www.w3.org/2000/svg\"> <!-- <rect fill=\"none\" height=\"256\" width=\"256\"/>--> <line fill=\"none\" x1=\"130\" x2=\"241\" y1=\"54\" y2=\"54\"/> <line fill=\"none\" x1=\"130\" x2=\"241\" y1=\"128\" y2=\"128\"/> <line fill=\"none\" x1=\"130\" x2=\"241\" y1=\"202\" y2=\"202\"/> <polyline fill=\"none\" points=\"92 38 57.3 70 40 54\"/> <polyline fill=\"none\" points=\"92 112 57.3 144 40 128\"/> <polyline fill=\"none\" points=\"92 186 57.3 218 40 202\"/> </svg>"
24
+ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <path d=\"m3 6 2 2 3-4M12 6h9m-18 7 2 2 3-4m4 2h9M3 20h4m5 0h9\"/> </g> </svg>"
25
25
 
26
26
  /***/ }),
27
27
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[502],{11373:function(e){e.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},64839:function(e,t,o){"use strict";var i=o(11373),n=o.n(i),a=o(6441),s=o(2748),l=o(12153);a.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(e){return e.createInside.element("input",{type:"checkbox",tabindex:-1})}},a.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(e){var t=e.s.current();return!!(t&&s.Dom.closest(t,function(e){return s.Dom.isElement(e)&&s.Dom.isTag(e,"ul")&&e.classList.contains("todo-list")},e.editor))}},l.Icon.set("todo-list",n())},19374:function(e,t,o){"use strict";o.r(t),o.d(t,{TodoList:function(){return y}});var i=o(80294),n=o(20616),a=o(67709),s=o(82749),l=o(18766),r=o(31635),c=o(23078);o(64839);var u=o(82758),p=o(65478),d=o(2748),_=o(43555),f=o(50911),m=o(59242),h=o(2692),y=function(e){function t(){var e;return(0,n._)(this,t),e=(0,i._)(this,t,arguments),(0,s._)(e,"buttons",[{name:"todoList",group:"list"}]),(0,s._)(e,"__isOwnCommand",!1),e}return(0,l._)(t,e),(0,a._)(t,[{key:"afterInit",value:function(e){e.registerCommand("todoList",this.onCommand)}},{key:"onCommand",value:function(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}},{key:"__prependInputLabel",value:function(e){var t=this.jodit,o=this.j.o.todoList,i=o.labelClassName,n=o.inputFactory;if(!e.querySelector("label."+i)){1===e.children.length&&d.Dom.isTag(e.firstElementChild,"p")&&d.Dom.unwrap(e.firstElementChild);var a=t.createInside.element("label",{contenteditable:"false",class:i}),s=n(t);a.appendChild(s),d.Dom.prepend(e,a)}}},{key:"__afterToggleList",value:function(e,t){return(e===m.CHANGE||e===m.REPLACE)&&this.__isOwnCommand?this.__appendInputs(t):e===m.UNWRAP||e===m.REPLACE||e===m.CHANGE?this.__removeInputs(t):void 0}},{key:"__appendInputs",value:function(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}},{key:"__removeInputs",value:function(e){var t=this.j.o.todoList.labelClassName;e.querySelectorAll("label."+t).forEach(d.Dom.safeRemove)}},{key:"__beforeToggleOrderedList",value:function(e,t,o){var i,n="__beforeToggleOrderedList";if(e!==m.REPLACE&&(t.classList.contains(this.j.o.todoList.className)||o.isApplied(t,n))&&("ul"===o.element||"ol"===o.element)&&(null==(i=o.options.attributes)?void 0:i.class)!==this.j.o.todoList.className){var a=d.Dom.replace(t,o.element,this.jodit.createInside);return o.setApplied(a,n),this.__removeInputs(a),a}}},{key:"__afterEnter",value:function(){(0,_.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}},{key:"__afterTab",value:function(){(0,_.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(d.Dom.safeRemove)}},{key:"__changeSelection",value:function(e){var t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}},{key:"__isEmptyListLeaf",value:function(e){var t=this;return d.Dom.isEmpty(e,function(e){return!("input"===e.nodeName.toLowerCase()&&t.isTodoLeafLabel(e.parentElement))&&u.NO_EMPTY_TAGS.has(e.tagName.toLowerCase())})}},{key:"__backSpaceBeforeCases",value:function(e,t){if(e){var o=d.Dom.findNotEmptySibling(t,!0);this.isTodoLeafLabel(o)&&d.Dom.safeRemove(o)}}},{key:"__isInvisibleForCursor",value:function(e){if(this.isTodoLeafLabel(e))return!0}},{key:"__backSpaceAfterDelete",value:function(){var e=this,t=this.j.o.todoList.labelClassName;(0,_.$$)("label."+t,this.jodit.editor).forEach(function(t){t.closest("ul."+e.j.o.todoList.className)?t.previousSibling&&t.parentElement&&d.Dom.prepend(t.parentElement,t):d.Dom.safeRemove(t)})}},{key:"__afterWrapList",value:function(e,t){e===m.WRAP&&this.__appendInputs(t)}},{key:"__onClickInput",value:function(e){var t=e.target;t&&d.Dom.isTag(t,"input")&&"checkbox"===t.type&&this.isTodoLeafLabel(t.parentElement)&&(0,_.attr)(t,"checked",t.checked?"checked":null)}},{key:"isTodoLeafLabel",value:function(e){var t=this.j.o.todoList.labelClassName;return d.Dom.isHTMLElement(e)&&e.classList.contains(t)}},{key:"beforeDestruct",value:function(e){}}]),t}((0,c._)(f.Plugin));(0,s._)(y,"requires",["license"]),(0,r.__decorate)([p.autobind],y.prototype,"onCommand",null),(0,r.__decorate)([p.autobind],y.prototype,"__prependInputLabel",null),(0,r.__decorate)([(0,p.watch)(":commitStyleAfterToggleList")],y.prototype,"__afterToggleList",null),(0,r.__decorate)([(0,p.watch)(":commitStyleBeforeUnwrapList")],y.prototype,"__beforeToggleOrderedList",null),(0,r.__decorate)([(0,p.watch)(":afterEnter")],y.prototype,"__afterEnter",null),(0,r.__decorate)([(0,p.watch)(":afterTab")],y.prototype,"__afterTab",null),(0,r.__decorate)([(0,p.watch)("j.ed:selectionchange"),(0,p.watch)(":afterEnter")],y.prototype,"__changeSelection",null),(0,r.__decorate)([(0,p.watch)(":enterIsEmptyListLeaf")],y.prototype,"__isEmptyListLeaf",null),(0,r.__decorate)([(0,p.watch)(":backSpaceBeforeCases")],y.prototype,"__backSpaceBeforeCases",null),(0,r.__decorate)([(0,p.watch)(":backSpaceIsMovedIgnore"),(0,p.watch)(":isInvisibleForCursor")],y.prototype,"__isInvisibleForCursor",null),(0,r.__decorate)([(0,p.watch)(":backSpaceAfterDelete")],y.prototype,"__backSpaceAfterDelete",null),(0,r.__decorate)([p.autobind],y.prototype,"__afterWrapList",null),(0,r.__decorate)([(0,p.watch)(":click")],y.prototype,"__onClickInput",null),(0,r.__decorate)([p.autobind],y.prototype,"isTodoLeafLabel",null),h.JoditPro.plugins.add("todo-list",y)}},function(e){return e(19374)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[502],{11373:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 6 2 2 3-4M12 6h9m-18 7 2 2 3-4m4 2h9M3 20h4m5 0h9"/> </g> </svg>'},64839:function(e,t,o){"use strict";var i=o(11373),a=o.n(i),n=o(6441),s=o(2748),r=o(12153);n.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(e){return e.createInside.element("input",{type:"checkbox",tabindex:-1})}},n.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(e){var t=e.s.current();return!!(t&&s.Dom.closest(t,function(e){return s.Dom.isElement(e)&&s.Dom.isTag(e,"ul")&&e.classList.contains("todo-list")},e.editor))}},r.Icon.set("todo-list",a())},19374:function(e,t,o){"use strict";o.r(t),o.d(t,{TodoList:function(){return L}});var i=o(80294),a=o(20616),n=o(67709),s=o(82749),r=o(18766),l=o(31635),c=o(23078);o(64839);var u=o(82758),p=o(65478),d=o(2748),_=o(43555),f=o(50911),m=o(59242),h=o(2692),L=function(e){function t(){var e;return(0,a._)(this,t),e=(0,i._)(this,t,arguments),(0,s._)(e,"buttons",[{name:"todoList",group:"list"}]),(0,s._)(e,"__isOwnCommand",!1),e}return(0,r._)(t,e),(0,n._)(t,[{key:"afterInit",value:function(e){e.registerCommand("todoList",this.onCommand)}},{key:"onCommand",value:function(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}},{key:"__prependInputLabel",value:function(e){var t=this.jodit,o=this.j.o.todoList,i=o.labelClassName,a=o.inputFactory;if(!e.querySelector("label."+i)){1===e.children.length&&d.Dom.isTag(e.firstElementChild,"p")&&d.Dom.unwrap(e.firstElementChild);var n=t.createInside.element("label",{contenteditable:"false",class:i}),s=a(t);n.appendChild(s),d.Dom.prepend(e,n)}}},{key:"__afterToggleList",value:function(e,t){return(e===m.CHANGE||e===m.REPLACE)&&this.__isOwnCommand?this.__appendInputs(t):e===m.UNWRAP||e===m.REPLACE||e===m.CHANGE?this.__removeInputs(t):void 0}},{key:"__appendInputs",value:function(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}},{key:"__removeInputs",value:function(e){var t=this.j.o.todoList.labelClassName;e.querySelectorAll("label."+t).forEach(d.Dom.safeRemove)}},{key:"__beforeToggleOrderedList",value:function(e,t,o){var i,a="__beforeToggleOrderedList";if(e!==m.REPLACE&&(t.classList.contains(this.j.o.todoList.className)||o.isApplied(t,a))&&("ul"===o.element||"ol"===o.element)&&(null==(i=o.options.attributes)?void 0:i.class)!==this.j.o.todoList.className){var n=d.Dom.replace(t,o.element,this.jodit.createInside);return o.setApplied(n,a),this.__removeInputs(n),n}}},{key:"__afterEnter",value:function(){(0,_.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}},{key:"__afterTab",value:function(){(0,_.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(d.Dom.safeRemove)}},{key:"__changeSelection",value:function(e){var t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}},{key:"__isEmptyListLeaf",value:function(e){var t=this;return d.Dom.isEmpty(e,function(e){return!("input"===e.nodeName.toLowerCase()&&t.isTodoLeafLabel(e.parentElement))&&u.NO_EMPTY_TAGS.has(e.tagName.toLowerCase())})}},{key:"__backSpaceBeforeCases",value:function(e,t){if(e){var o=d.Dom.findNotEmptySibling(t,!0);this.isTodoLeafLabel(o)&&d.Dom.safeRemove(o)}}},{key:"__isInvisibleForCursor",value:function(e){if(this.isTodoLeafLabel(e))return!0}},{key:"__backSpaceAfterDelete",value:function(){var e=this,t=this.j.o.todoList.labelClassName;(0,_.$$)("label."+t,this.jodit.editor).forEach(function(t){t.closest("ul."+e.j.o.todoList.className)?t.previousSibling&&t.parentElement&&d.Dom.prepend(t.parentElement,t):d.Dom.safeRemove(t)})}},{key:"__afterWrapList",value:function(e,t){e===m.WRAP&&this.__appendInputs(t)}},{key:"__onClickInput",value:function(e){var t=e.target;t&&d.Dom.isTag(t,"input")&&"checkbox"===t.type&&this.isTodoLeafLabel(t.parentElement)&&(0,_.attr)(t,"checked",t.checked?"checked":null)}},{key:"isTodoLeafLabel",value:function(e){var t=this.j.o.todoList.labelClassName;return d.Dom.isHTMLElement(e)&&e.classList.contains(t)}},{key:"beforeDestruct",value:function(e){}}]),t}((0,c._)(f.Plugin));(0,s._)(L,"requires",["license"]),(0,l.__decorate)([p.autobind],L.prototype,"onCommand",null),(0,l.__decorate)([p.autobind],L.prototype,"__prependInputLabel",null),(0,l.__decorate)([(0,p.watch)(":commitStyleAfterToggleList")],L.prototype,"__afterToggleList",null),(0,l.__decorate)([(0,p.watch)(":commitStyleBeforeUnwrapList")],L.prototype,"__beforeToggleOrderedList",null),(0,l.__decorate)([(0,p.watch)(":afterEnter")],L.prototype,"__afterEnter",null),(0,l.__decorate)([(0,p.watch)(":afterTab")],L.prototype,"__afterTab",null),(0,l.__decorate)([(0,p.watch)("j.ed:selectionchange"),(0,p.watch)(":afterEnter")],L.prototype,"__changeSelection",null),(0,l.__decorate)([(0,p.watch)(":enterIsEmptyListLeaf")],L.prototype,"__isEmptyListLeaf",null),(0,l.__decorate)([(0,p.watch)(":backSpaceBeforeCases")],L.prototype,"__backSpaceBeforeCases",null),(0,l.__decorate)([(0,p.watch)(":backSpaceIsMovedIgnore"),(0,p.watch)(":isInvisibleForCursor")],L.prototype,"__isInvisibleForCursor",null),(0,l.__decorate)([(0,p.watch)(":backSpaceAfterDelete")],L.prototype,"__backSpaceAfterDelete",null),(0,l.__decorate)([p.autobind],L.prototype,"__afterWrapList",null),(0,l.__decorate)([(0,p.watch)(":click")],L.prototype,"__onClickInput",null),(0,l.__decorate)([p.autobind],L.prototype,"isTodoLeafLabel",null),h.JoditPro.plugins.add("todo-list",L)}},function(e){return e(19374)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -21,14 +21,14 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
21
21
  /***/ 74922:
22
22
  /***/ (function(module) {
23
23
 
24
- module.exports = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z\"/> <path d=\"M0 0h48v48H0z\" fill=\"none\"/> </svg>"
24
+ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <path d=\"M3 7h18m-4-4 4 4-4 4M21 17H3m4-4-4 4 4 4\"/> </g> </svg>"
25
25
 
26
26
  /***/ }),
27
27
 
28
28
  /***/ 34575:
29
29
  /***/ (function(module) {
30
30
 
31
- module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z\"/> <path d=\"M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z\"/> </svg>"
31
+ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <g fill=\"none\"> <path d=\"M3 5h11M8 3v2m4 0c-1 6-4 10-9 12M5 8c1 3 3 5 6 7m2 7 4-11 4 11m-6-4h4\"/> </g> </svg>"
32
32
 
33
33
  /***/ }),
34
34
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[954],{74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},20104:function(t,e,n){"use strict";var a=n(74922),i=n.n(a),r=n(34575),o=n.n(r),s=n(6441),l=n(12153);s.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},s.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,n){var a=n.control;t.execCommand("translate"+a.name)},mods:{stroke:!1}}},l.Icon.set("translate",o()).set("translate-swap",i())},50090:function(t,e,n){"use strict";n.d(e,{CloudTranslateProvider:function(){return c}});var a=n(20616),i=n(67709),r=n(82749),o=n(82758),s=n(38837),l=n(80942),c=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.cloudProviderOptions;return(0,s.assert)(a,"Set cloudProviderOptions"),this.jodit.fetch(a.url+t+"?key="+a.key,{method:"POST",data:n,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){o.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={text:t,targetLanguageCode:n};return e&&(a.sourceLanguageCode=e),this.__fetch("/v1/translate",a).then(function(t){return{text:t.text}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:l.languages})}}]),t}()},27834:function(t,e,n){"use strict";n.d(e,{GoogleTranslateProvider:function(){return d}});var a=n(20616),i=n(67709),r=n(82749),o=n(56075),s=n(11886),l=n(82758),c=n(38837),u=n(80942),d=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.googleProviderOptions;return(0,c.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:(0,s._)((0,o._)({},n),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){l.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={q:t,target:n,format:"html"};return e&&(a.source=e),this.__fetch("translate",a).then(function(t){return{text:t.data.translations[0].translatedText}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:u.languages})}}]),t}()},80942:function(t,e,n){"use strict";n.d(e,{languages:function(){return a}});var a={"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},73534:function(t,e,n){"use strict";n.d(e,{getSelectionFragments:function(){return i}});var a=n(2748);function i(t){var e=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return e;t.s.range.commonAncestorContainer.normalize();var i=t.s.range,l=i.commonAncestorContainer,c=i.startContainer,u=i.endContainer,d=i.startOffset,h=i.endOffset;if(c===u){if(a.Dom.isText(c))return[o(c,d,h)];if(h-d==1){var g=c.childNodes[d];return a.Dom.isText(g)?[o(g,0,g.nodeValue.length)]:[s(g)]}if(0===d&&c.childNodes.length===h)return[s(c)];for(var f=d;f<h;f++){var v=c.childNodes[f];a.Dom.isText(v)?e.push(o(v,0,v.nodeValue.length)):e.push(s(v))}return e}for(var p=new Set,_=t.ed.createTreeWalker(l,NodeFilter.SHOW_ALL,{acceptNode:function(t){return!i.intersectsNode(t)||a.Dom.closest(t,function(t){return t&&p.has(t)},l)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),m=_.nextNode();m;){if(a.Dom.isElement(m)&&r(i,m))p.add(m),e.push(s(m));else if(a.Dom.isText(m)&&r(i,m))e.push(o(m,0,m.nodeValue.length));else if(a.Dom.isText(m)){var y=0,k=m.nodeValue.length;m===c&&(y=d),m===u&&(k=h),e.push(o(m,y,k))}m=_.nextNode()}return e}var r=function(t,e){var n=document.createRange();try{n.selectNodeContents(e)}catch(t){n.selectNode(e)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function o(t,e,n){return{text:t.nodeValue.slice(e,n),replace:function(a){t.nodeValue=t.nodeValue.slice(0,e)+a+t.nodeValue.slice(n)}}}function s(t){return{text:t.innerHTML,replace:function(e){t.innerHTML=e}}}},73098:function(t,e,n){"use strict";n.r(e),n.d(e,{Translate:function(){return C}});var a=n(77688),i=n(80294),r=n(20616),o=n(67709),s=n(82749),l=n(18766),c=n(31635),u=n(62361),d=n(23078);n(20104);var h=n(50090),g=n(27834),f=n(33124),v=n(73534),p=n(65478),_=n(23282),m=n(70799),y=n(38837),k=n(50911),L=n(10830),w=n(2692),C=function(t){function e(){var t;return(0,r._)(this,e),t=(0,i._)(this,e,arguments),(0,s._)(t,"buttons",[{name:"translate.translate",group:"insert"}]),(0,s._)(t,"state",{sourceLang:t.jodit.o.translate.defaultSourceLang||"en",targetLang:t.jodit.o.translate.defaultTargetLang}),t}return(0,l._)(e,t),(0,o._)(e,[{key:"__getProvider",value:function(){var t=this.jodit.options.translate.provider;if((0,m.isString)(t))switch(t){case"google":return new g.GoogleTranslateProvider(this.j);case"cloud":return new h.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,y.assert)((0,_.isFunction)(t),"Provider must be a function"),t(this.jodit)}},{key:"afterInit",value:function(t){var e=this,n=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return(0,a._)(function(){var e,a,i,r,o,s,l;return(0,u._)(this,function(c){switch(c.label){case 0:return e=this,a=this.state,(i=t.dlg()).setHeader("Translate options"),[4,n.supportedLanguages()];case 1:return o="source"in(r=c.sent())?r.source.langs:r.langs,s="target"in r?r.target.langs:r.langs,l=new f.UITranslateSettings(i,this.state,{sourceList:o,targetList:s,onChange:function(t){a=t}}),i.setContent(l),i.setFooter([(0,L.Button)(t,"cancel","Cancel").onAction(function(){return i.close()}),(0,L.Button)(t,"ok","Save","primary").onAction(function(){e.state=a,i.close()})]),l.bindDestruct(i),i.setSize(500,400).open(!0),[2]}})}).call(e)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var a=(0,v.getSelectionFragments)(t).filter(function(t){return t.text.trim().length>0});if(!a.length)return void t.message.error("Select text for translate");var i=e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:"",r=e.state.targetLang;return Promise.all(a.map(function(e){n.translate(e.text,i,r).then(function(t){e.replace(t.text)}).catch(function(e){t.message.error((0,m.isString)(e)?e:e.message)})})).then(function(){t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}},{key:"beforeDestruct",value:function(t){}}]),e}((0,d._)(k.Plugin));(0,s._)(C,"requires",["license"]),(0,c.__decorate)([p.persistent],C.prototype,"state",void 0),w.JoditPro.plugins.add("translate",C)},67082:function(t,e,n){"use strict";n.d(e,{UITranslateList:function(){return p}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(31635),c=n(82758),u=n(65478),d=n(2748),h=n(21537),g=n(29960),f=n(48538),v=n(80256),p=function(t){function e(t,n){(0,i._)(this,e),r=(0,a._)(this,e,[t,n]),(0,o._)(r,"options",void 0),(0,o._)(r,"state",void 0),r.options=n,r.state={active:""},r.state.active=n.active;var r,s,l=new v.UIInput(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:r.__onChangeFilter,clearButton:!0});return null==(s=r.getElm("input"))||s.appendChild(l.container),r.__onActiveChange(),r}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateList"}},{key:"items",get:function(){return this.getElms("item")}},{key:"render",value:function(t){var e=this,n=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(function(e){return{title:e,code:t.list[e]}})).forEach(function(t){var a=t.code;n.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(a,"'>\n <span class='&__item-key'>").concat(a,"</span>\n <span class='&__item-title'>").concat(e.j.i18n(t.title),"</span>\n </a>"))}),"<div class='&'>\n <div class='&__input'></div>\n <div class='&__list'>".concat(n.join(""),"</div>\n </div>")}},{key:"__onChangeFilter",value:function(t){this.items.forEach(function(e){var n,a,i=null!=(n=null==(a=e.textContent)?void 0:a.toLowerCase())?n:"";(0,g.attr)(e,"data-hidden","true"!==(0,g.attr)(e,"data-active")&&!i.includes(t.toLowerCase()))})}},{key:"__scrollToActive",value:function(){var t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,h.scrollIntoViewIfNeeded)(t,e,this.j.od)}},{key:"onClickItem",value:function(t){if("keydown"!==t.type||!("key"in t)||t.key===c.KEY_ENTER){var e=t.target;if(d.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){var n=(0,g.attr)(e,"data-lang");this.options.onChange(n),this.state.active=n}}}},{key:"__onActiveChange",value:function(){var t=this;this.items.forEach(function(e){return(0,g.attr)(e,"data-active",(0,g.attr)(e,"data-lang")===t.state.active)}),this.__scrollToActive()}}]),e}(f.UIElement);(0,l.__decorate)([(0,u.debounce)()],p.prototype,"__onChangeFilter",null),(0,l.__decorate)([(0,u.watch)(":afterOpen")],p.prototype,"__scrollToActive",null),(0,l.__decorate)([(0,u.watch)(["container:click","container:keydown"])],p.prototype,"onClickItem",null),(0,l.__decorate)([(0,u.watch)("state.active"),(0,u.debounce)()],p.prototype,"__onActiveChange",null),p=(0,l.__decorate)([u.component],p)},33124:function(t,e,n){"use strict";n.d(e,{UITranslateSettings:function(){return g}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(56075),c=n(31635),u=n(65478),d=n(67510),h=n(67082),g=function(t){function e(t,n,r){var s,c,u;return(0,i._)(this,e),s=(0,a._)(this,e,[t]),(0,o._)(s,"state",void 0),(0,o._)(s,"options",void 0),(0,o._)(s,"__sourceList",void 0),(0,o._)(s,"__targetList",void 0),s.state=n,s.options=r,s.__sourceList=new h.UITranslateList(t,{list:r.sourceList,active:n.sourceLang,onChange:function(t){s.state.sourceLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(c=s.getElm("source-list"))||c.appendChild(s.__sourceList.container),s.__targetList=new h.UITranslateList(t,{list:r.targetList,active:n.targetLang,onChange:function(t){s.state.targetLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(u=s.getElm("target-list"))||u.appendChild(s.__targetList.container),s}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateSettings"}},{key:"render",value:function(){return"<div>\n <div class='&__list &__source-list'></div>\n <div class='&__arrow'>\n <a class='&__arrow-swap'>*translate-swap*</a>\n </div>\n <div class='&__list &__target-list'></div>\n </div>"}},{key:"__onSwap",value:function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange((0,l._)({},this.state))}}]),e}(d.UIElement);(0,c.__decorate)([(0,u.watch)("arrow-swap:click")],g.prototype,"__onSwap",null),g=(0,c.__decorate)([u.component],g)},11886:function(t,e,n){"use strict";function a(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}n.d(e,{_:function(){return a}})}},function(t){return t(73098)}])});
8
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[954],{74922:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 7h18m-4-4 4 4-4 4M21 17H3m4-4-4 4 4 4"/> </g> </svg>'},34575:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 5h11M8 3v2m4 0c-1 6-4 10-9 12M5 8c1 3 3 5 6 7m2 7 4-11 4 11m-6-4h4"/> </g> </svg>'},20104:function(t,e,n){"use strict";var a=n(74922),i=n.n(a),r=n(34575),o=n.n(r),s=n(6441),l=n(12153);s.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},s.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,n){var a=n.control;t.execCommand("translate"+a.name)},mods:{stroke:!1}}},l.Icon.set("translate",o()).set("translate-swap",i())},50090:function(t,e,n){"use strict";n.d(e,{CloudTranslateProvider:function(){return u}});var a=n(20616),i=n(67709),r=n(82749),o=n(82758),s=n(38837),l=n(80942),u=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.cloudProviderOptions;return(0,s.assert)(a,"Set cloudProviderOptions"),this.jodit.fetch(a.url+t+"?key="+a.key,{method:"POST",data:n,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){o.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={text:t,targetLanguageCode:n};return e&&(a.sourceLanguageCode=e),this.__fetch("/v1/translate",a).then(function(t){return{text:t.text}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:l.languages})}}]),t}()},27834:function(t,e,n){"use strict";n.d(e,{GoogleTranslateProvider:function(){return d}});var a=n(20616),i=n(67709),r=n(82749),o=n(56075),s=n(11886),l=n(82758),u=n(38837),c=n(80942),d=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.googleProviderOptions;return(0,u.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:(0,s._)((0,o._)({},n),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){l.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={q:t,target:n,format:"html"};return e&&(a.source=e),this.__fetch("translate",a).then(function(t){return{text:t.data.translations[0].translatedText}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:c.languages})}}]),t}()},80942:function(t,e,n){"use strict";n.d(e,{languages:function(){return a}});var a={"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},73534:function(t,e,n){"use strict";n.d(e,{getSelectionFragments:function(){return i}});var a=n(2748);function i(t){var e=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return e;t.s.range.commonAncestorContainer.normalize();var i=t.s.range,l=i.commonAncestorContainer,u=i.startContainer,c=i.endContainer,d=i.startOffset,h=i.endOffset;if(u===c){if(a.Dom.isText(u))return[o(u,d,h)];if(h-d==1){var g=u.childNodes[d];return a.Dom.isText(g)?[o(g,0,g.nodeValue.length)]:[s(g)]}if(0===d&&u.childNodes.length===h)return[s(u)];for(var f=d;f<h;f++){var p=u.childNodes[f];a.Dom.isText(p)?e.push(o(p,0,p.nodeValue.length)):e.push(s(p))}return e}for(var v=new Set,_=t.ed.createTreeWalker(l,NodeFilter.SHOW_ALL,{acceptNode:function(t){return!i.intersectsNode(t)||a.Dom.closest(t,function(t){return t&&v.has(t)},l)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),m=_.nextNode();m;){if(a.Dom.isElement(m)&&r(i,m))v.add(m),e.push(s(m));else if(a.Dom.isText(m)&&r(i,m))e.push(o(m,0,m.nodeValue.length));else if(a.Dom.isText(m)){var y=0,k=m.nodeValue.length;m===u&&(y=d),m===c&&(k=h),e.push(o(m,y,k))}m=_.nextNode()}return e}var r=function(t,e){var n=document.createRange();try{n.selectNodeContents(e)}catch(t){n.selectNode(e)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function o(t,e,n){return{text:t.nodeValue.slice(e,n),replace:function(a){t.nodeValue=t.nodeValue.slice(0,e)+a+t.nodeValue.slice(n)}}}function s(t){return{text:t.innerHTML,replace:function(e){t.innerHTML=e}}}},73098:function(t,e,n){"use strict";n.r(e),n.d(e,{Translate:function(){return T}});var a=n(77688),i=n(80294),r=n(20616),o=n(67709),s=n(82749),l=n(18766),u=n(31635),c=n(62361),d=n(23078);n(20104);var h=n(50090),g=n(27834),f=n(33124),p=n(73534),v=n(65478),_=n(23282),m=n(70799),y=n(38837),k=n(50911),w=n(10830),C=n(2692),T=function(t){function e(){var t;return(0,r._)(this,e),t=(0,i._)(this,e,arguments),(0,s._)(t,"buttons",[{name:"translate.translate",group:"insert"}]),(0,s._)(t,"state",{sourceLang:t.jodit.o.translate.defaultSourceLang||"en",targetLang:t.jodit.o.translate.defaultTargetLang}),t}return(0,l._)(e,t),(0,o._)(e,[{key:"__getProvider",value:function(){var t=this.jodit.options.translate.provider;if((0,m.isString)(t))switch(t){case"google":return new g.GoogleTranslateProvider(this.j);case"cloud":return new h.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,y.assert)((0,_.isFunction)(t),"Provider must be a function"),t(this.jodit)}},{key:"afterInit",value:function(t){var e=this,n=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return(0,a._)(function(){var e,a,i,r,o,s,l;return(0,c._)(this,function(u){switch(u.label){case 0:return e=this,a=this.state,(i=t.dlg()).setHeader("Translate options"),[4,n.supportedLanguages()];case 1:return o="source"in(r=u.sent())?r.source.langs:r.langs,s="target"in r?r.target.langs:r.langs,l=new f.UITranslateSettings(i,this.state,{sourceList:o,targetList:s,onChange:function(t){a=t}}),i.setContent(l),i.setFooter([(0,w.Button)(t,"cancel","Cancel").onAction(function(){return i.close()}),(0,w.Button)(t,"ok","Save","primary").onAction(function(){e.state=a,i.close()})]),l.bindDestruct(i),i.setSize(500,400).open(!0),[2]}})}).call(e)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var a=(0,p.getSelectionFragments)(t).filter(function(t){return t.text.trim().length>0});if(!a.length)return void t.message.error("Select text for translate");var i=e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:"",r=e.state.targetLang;return Promise.all(a.map(function(e){n.translate(e.text,i,r).then(function(t){e.replace(t.text)}).catch(function(e){t.message.error((0,m.isString)(e)?e:e.message)})})).then(function(){t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}},{key:"beforeDestruct",value:function(t){}}]),e}((0,d._)(k.Plugin));(0,s._)(T,"requires",["license"]),(0,u.__decorate)([v.persistent],T.prototype,"state",void 0),C.JoditPro.plugins.add("translate",T)},67082:function(t,e,n){"use strict";n.d(e,{UITranslateList:function(){return v}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(31635),u=n(82758),c=n(65478),d=n(2748),h=n(21537),g=n(29960),f=n(48538),p=n(80256),v=function(t){function e(t,n){(0,i._)(this,e),r=(0,a._)(this,e,[t,n]),(0,o._)(r,"options",void 0),(0,o._)(r,"state",void 0),r.options=n,r.state={active:""},r.state.active=n.active;var r,s,l=new p.UIInput(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:r.__onChangeFilter,clearButton:!0});return null==(s=r.getElm("input"))||s.appendChild(l.container),r.__onActiveChange(),r}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateList"}},{key:"items",get:function(){return this.getElms("item")}},{key:"render",value:function(t){var e=this,n=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(function(e){return{title:e,code:t.list[e]}})).forEach(function(t){var a=t.code;n.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(a,"'>\n <span class='&__item-key'>").concat(a,"</span>\n <span class='&__item-title'>").concat(e.j.i18n(t.title),"</span>\n </a>"))}),"<div class='&'>\n <div class='&__input'></div>\n <div class='&__list'>".concat(n.join(""),"</div>\n </div>")}},{key:"__onChangeFilter",value:function(t){this.items.forEach(function(e){var n,a,i=null!=(n=null==(a=e.textContent)?void 0:a.toLowerCase())?n:"";(0,g.attr)(e,"data-hidden","true"!==(0,g.attr)(e,"data-active")&&!i.includes(t.toLowerCase()))})}},{key:"__scrollToActive",value:function(){var t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,h.scrollIntoViewIfNeeded)(t,e,this.j.od)}},{key:"onClickItem",value:function(t){if("keydown"!==t.type||!("key"in t)||t.key===u.KEY_ENTER){var e=t.target;if(d.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){var n=(0,g.attr)(e,"data-lang");this.options.onChange(n),this.state.active=n}}}},{key:"__onActiveChange",value:function(){var t=this;this.items.forEach(function(e){return(0,g.attr)(e,"data-active",(0,g.attr)(e,"data-lang")===t.state.active)}),this.__scrollToActive()}}]),e}(f.UIElement);(0,l.__decorate)([(0,c.debounce)()],v.prototype,"__onChangeFilter",null),(0,l.__decorate)([(0,c.watch)(":afterOpen")],v.prototype,"__scrollToActive",null),(0,l.__decorate)([(0,c.watch)(["container:click","container:keydown"])],v.prototype,"onClickItem",null),(0,l.__decorate)([(0,c.watch)("state.active"),(0,c.debounce)()],v.prototype,"__onActiveChange",null),v=(0,l.__decorate)([c.component],v)},33124:function(t,e,n){"use strict";n.d(e,{UITranslateSettings:function(){return g}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(56075),u=n(31635),c=n(65478),d=n(67510),h=n(67082),g=function(t){function e(t,n,r){var s,u,c;return(0,i._)(this,e),s=(0,a._)(this,e,[t]),(0,o._)(s,"state",void 0),(0,o._)(s,"options",void 0),(0,o._)(s,"__sourceList",void 0),(0,o._)(s,"__targetList",void 0),s.state=n,s.options=r,s.__sourceList=new h.UITranslateList(t,{list:r.sourceList,active:n.sourceLang,onChange:function(t){s.state.sourceLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(u=s.getElm("source-list"))||u.appendChild(s.__sourceList.container),s.__targetList=new h.UITranslateList(t,{list:r.targetList,active:n.targetLang,onChange:function(t){s.state.targetLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(c=s.getElm("target-list"))||c.appendChild(s.__targetList.container),s}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateSettings"}},{key:"render",value:function(){return"<div>\n <div class='&__list &__source-list'></div>\n <div class='&__arrow'>\n <a class='&__arrow-swap'>*translate-swap*</a>\n </div>\n <div class='&__list &__target-list'></div>\n </div>"}},{key:"__onSwap",value:function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange((0,l._)({},this.state))}}]),e}(d.UIElement);(0,u.__decorate)([(0,c.watch)("arrow-swap:click")],g.prototype,"__onSwap",null),g=(0,u.__decorate)([c.component],g)},11886:function(t,e,n){"use strict";function a(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}n.d(e,{_:function(){return a}})}},function(t){return t(73098)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
package/es5/polyfills.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.10
4
+ * Version: v4.15.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1 +1 @@
1
- var d=Object.defineProperty;var r=(e,t)=>d(e,"name",{value:t,configurable:!0});var n;import{base64ToFile as p}from"../ai-assistant-pro/helpers/base64tofile.js";import m from"./icons/add-context.svg.js";import c from"./icons/ai-assistant.svg.js";import f from"./icons/ai-commands.svg.js";import h from"./icons/chevron-right.svg.js";import g from"./icons/microphone.svg.js";import A from"./icons/send.svg.js";import x from"./icons/shield.svg.js";import C from"./icons/tool-bolt.svg.js";import{getAIProviderOptions as y,registerAIProvider as I}from"./providers/index.js";import{getToolNames as w}from"./tools/index.js";import{Config as s}from"jodit/esm/config.js";import{Icon as T}from"jodit/esm/core/ui/icon.js";import{aiAssitentCommands as b}from"jodit/esm/plugins/ai-assistant/config.js";import{marked as M}from"marked";T.set("ai-assistant-pro",c).set("ai-commands-pro",f).set("ai-add-context",m).set("send",A).set("microphone",g).set("tool-bolt",C).set("chevron-right",h).set("shield",x),s.prototype.aiAssistantPro={displayMode:"right",panelWidth:400,panelHeight:500,flightPanelHeight:250,dialogFullSize:!1,resizable:!0,apiMode:"incremental",apiRequest:null,maxRetries:3,requestTimeout:6e4*5,retryDelay:1e3,maxRecursionToolCallDepth:1e3,enabledTools:w(),customTools:[],toolPermissions:{},autoApproveTools:["readDocument","readBlocks","readSelection","insertHTML","addHTML"],alwaysDenyTools:[],defaultPermissionScope:"conversation",storage:"indexedDB",maxConversations:50,storageKey:"jodit-ai-assistant-pro",showConversationList:!0,enableMarkdown:!0,enableCodeHighlight:!0,maxMessageHeight:400,placeholderText:"Ask AI assistant...",sendShortcut:"Ctrl+Enter",showTimestamps:!0,formatTimestamp:r((e,t)=>{const o=new Date(e),i=new Date().getTime()-o.getTime();return i<6e4?t("Just now"):i<36e5?t("%dm ago",Math.floor(i/6e4)):i<864e5?t("%dh ago",Math.floor(i/36e5)):o.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},"formatTimestamp"),formatMessageContent:r((e,t)=>M.parse(e,{breaks:!0,gfm:!0}),"formatMessageContent"),showAvatars:!0,showTypingIndicator:!0,includeSelectionByDefault:!0,maxContextRanges:5,showContextPreview:!0,sendOnEnter:!0,instructions:void 0,includeEditorMetadata:!1,autoOpen:!0,rememberLastConversation:!0,autoFocusInput:!0,voiceInputEnabled:!1,closeAfterInsert:!1,enableSoundNotifications:!1,debug:!1,textAutocompleteEnabled:!1,textAutocompleteApiRequest:null,textAutocompleteMinQueryLength:3,textAutocompleteMaxSuggestions:3,textAutocompleteDebounceMs:500,textAutocompleteCacheTTL:3e4,textAutocompleteCacheMaxSize:50,quickCommandsSilentMode:!1,quickCommandsDisplayMode:"flight",showCopyMessageAction:!0,showRestartMessageAction:!0,showEditMessageAction:!0,showDeleteMessageAction:!0,dialogSettings:{},allowEditDialogSettings:!1,allowEditDisplayMode:!0,allowEditPanelWidth:!0,initiallyOpened:!1,allowClose:!0,persistOpenState:!0,theme:"parent",allowEditTheme:!0,async uploadBase64Artifact(e,t){if(e.type==="image"&&e.data&&e.data.kind==="base64")try{const o=p(e.data.base64,e.id,e.mimeType),a=await t.uploader.upload([o]);return{...e,data:{kind:"url",url:a.baseurl+a.files[0]},metadata:{...e.metadata,filename:a.files[0]}}}catch(o){t.e.fire("error",o)}return e},getAIProviderOptions(e,t){return y(e,t)},registerAIProvider(e,t){I(e,t)}},s.prototype.controls.aiAssistantPro={icon:"ai-assistant-pro",tooltip:"AI Assistant",hotkeys:["ctrl+shift+a","cmd+shift+a"],exec(e){e.e.fire("openAIAssistantPro.ai-assistant-pro")},isDisabled(e){return!e.o.aiAssistantPro.apiRequest},getLabel(e){return e.o.aiAssistantPro.apiRequest?"AI Assistant":"AI Assistant (not configured)"}},s.prototype.controls.aiAddContext={icon:"ai-add-context",tooltip:"Add to AI Context",exec(e){e.e.fire("addContextToAIAssistant")},isDisabled(e){return e.o.aiAssistantPro.apiRequest?e.s.isCollapsed():!0}},s.prototype.controls.aiCommandsPro={icon:"ai-commands-pro",tooltip:"AI Commands",isDisabled(e){return!e.o.aiAssistantPro.apiRequest},list:b,exec(e,t,{control:o}){e.e.fire("executeQuickCommand.ai-assistant-pro",o.name)}};const l=((n=s.prototype.tuneBlock)===null||n===void 0?void 0:n.popup)||{},u={},v=["p","h1","h2","h3","h4","h5","h6","div","section","article","pre","blockquote","ul","ol","li","table","tr","td","th","img","figure"];v.forEach(e=>{const t=l[e]||["tune.up","tune.remove","tune.down"];u[e]=[...t,"|","aiAddContext"]}),s.prototype.tuneBlock&&(s.prototype.tuneBlock.popup={...l,...u});
1
+ var d=Object.defineProperty;var r=(e,t)=>d(e,"name",{value:t,configurable:!0});var n;import{base64ToFile as p}from"../ai-assistant-pro/helpers/base64tofile.js";import m from"./icons/add-context.svg.js";import c from"./icons/ai-assistant.svg.js";import f from"./icons/ai-commands.svg.js";import g from"./icons/chevron-right.svg.js";import h from"./icons/send.svg.js";import A from"./icons/shield.svg.js";import x from"./icons/tool-bolt.svg.js";import{getAIProviderOptions as C,registerAIProvider as y}from"./providers/index.js";import{getToolNames as w}from"./tools/index.js";import{Config as s}from"jodit/esm/config.js";import{Icon as I}from"jodit/esm/core/ui/icon.js";import{aiAssitentCommands as T}from"jodit/esm/plugins/ai-assistant/config.js";import{marked as b}from"marked";I.set("ai-assistant-pro",c).set("ai-commands-pro",f).set("ai-add-context",m).set("send",h).set("tool-bolt",x).set("chevron-right",g).set("shield",A),s.prototype.aiAssistantPro={displayMode:"right",panelWidth:400,panelHeight:500,flightPanelHeight:250,dialogFullSize:!1,resizable:!0,apiMode:"incremental",apiRequest:null,maxRetries:3,requestTimeout:6e4*5,retryDelay:1e3,maxRecursionToolCallDepth:1e3,enabledTools:w(),customTools:[],toolPermissions:{},autoApproveTools:["readDocument","readBlocks","readSelection","insertHTML","addHTML"],alwaysDenyTools:[],defaultPermissionScope:"conversation",storage:"indexedDB",maxConversations:50,storageKey:"jodit-ai-assistant-pro",showConversationList:!0,enableMarkdown:!0,enableCodeHighlight:!0,maxMessageHeight:400,placeholderText:"Ask AI assistant...",sendShortcut:"Ctrl+Enter",showTimestamps:!0,formatTimestamp:r((e,t)=>{const o=new Date(e),i=new Date().getTime()-o.getTime();return i<6e4?t("Just now"):i<36e5?t("%dm ago",Math.floor(i/6e4)):i<864e5?t("%dh ago",Math.floor(i/36e5)):o.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},"formatTimestamp"),formatMessageContent:r((e,t)=>b.parse(e,{breaks:!0,gfm:!0}),"formatMessageContent"),showAvatars:!0,showTypingIndicator:!0,includeSelectionByDefault:!0,maxContextRanges:5,showContextPreview:!0,sendOnEnter:!0,instructions:void 0,includeEditorMetadata:!1,autoOpen:!0,rememberLastConversation:!0,autoFocusInput:!0,voiceInputEnabled:!1,closeAfterInsert:!1,enableSoundNotifications:!1,debug:!1,textAutocompleteEnabled:!1,textAutocompleteApiRequest:null,textAutocompleteMinQueryLength:3,textAutocompleteMaxSuggestions:3,textAutocompleteDebounceMs:500,textAutocompleteCacheTTL:3e4,textAutocompleteCacheMaxSize:50,quickCommandsSilentMode:!1,quickCommandsDisplayMode:"flight",showCopyMessageAction:!0,showRestartMessageAction:!0,showEditMessageAction:!0,showDeleteMessageAction:!0,dialogSettings:{},allowEditDialogSettings:!1,allowEditDisplayMode:!0,allowEditPanelWidth:!0,initiallyOpened:!1,allowClose:!0,persistOpenState:!0,theme:"parent",allowEditTheme:!0,async uploadBase64Artifact(e,t){if(e.type==="image"&&e.data&&e.data.kind==="base64")try{const o=p(e.data.base64,e.id,e.mimeType),a=await t.uploader.upload([o]);return{...e,data:{kind:"url",url:a.baseurl+a.files[0]},metadata:{...e.metadata,filename:a.files[0]}}}catch(o){t.e.fire("error",o)}return e},getAIProviderOptions(e,t){return C(e,t)},registerAIProvider(e,t){y(e,t)}},s.prototype.controls.aiAssistantPro={icon:"ai-assistant-pro",tooltip:"AI Assistant",hotkeys:["ctrl+shift+a","cmd+shift+a"],exec(e){e.e.fire("openAIAssistantPro.ai-assistant-pro")},isDisabled(e){return!e.o.aiAssistantPro.apiRequest},getLabel(e){return e.o.aiAssistantPro.apiRequest?"AI Assistant":"AI Assistant (not configured)"}},s.prototype.controls.aiAddContext={icon:"ai-add-context",tooltip:"Add to AI Context",exec(e){e.e.fire("addContextToAIAssistant")},isDisabled(e){return e.o.aiAssistantPro.apiRequest?e.s.isCollapsed():!0}},s.prototype.controls.aiCommandsPro={icon:"ai-commands-pro",tooltip:"AI Commands",isDisabled(e){return!e.o.aiAssistantPro.apiRequest},list:T,exec(e,t,{control:o}){e.e.fire("executeQuickCommand.ai-assistant-pro",o.name)}};const l=((n=s.prototype.tuneBlock)===null||n===void 0?void 0:n.popup)||{},u={},M=["p","h1","h2","h3","h4","h5","h6","div","section","article","pre","blockquote","ul","ol","li","table","tr","td","th","img","figure"];M.forEach(e=>{const t=l[e]||["tune.up","tune.remove","tune.down"];u[e]=[...t,"|","aiAddContext"]}),s.prototype.tuneBlock&&(s.prototype.tuneBlock.popup={...l,...u});
@@ -10,7 +10,7 @@ import type { IAIMessage, IConversation, ToolCallStatus } from "../interface/ind
10
10
  */
11
11
  export declare function createNewConversation(jodit: IJodit, defaultModel: string | undefined, defaultTemperature: number | undefined, messages?: IConversation['messages']): IConversation;
12
12
  /**
13
- * Find last non-error assistant message for parentMessageId
13
+ * Find last successfully completed assistant message for parentMessageId
14
14
  */
15
15
  export declare function findParentMessageId(conversation: IConversation): string | null;
16
16
  /**
@@ -1 +1 @@
1
- var i=Object.defineProperty;var o=(t,e)=>i(t,"name",{value:e,configurable:!0});import{generateConversationId as u}from"../helpers/storage/webstorage-storage.js";function g(t,e,s,a=[]){const n=t.o.aiAssistantPro,r={id:u(),created:Date.now(),updated:Date.now(),messages:a,permissions:[],options:{model:e??n.defaultModel,temperature:s??n.defaultTemperature}};return t.e.fire("conversationCreated.ai-assistant-pro",r),r}o(g,"createNewConversation");function C(t){for(let e=t.messages.length-1;e>=0;e--){const s=t.messages[e];if(s.role==="assistant"&&!s.id.startsWith("error_"))return s.id}return null}o(C,"findParentMessageId");const d=new Set(["executed","denied","error"]);function l(t){return d.has(t)}o(l,"isTerminalToolCallStatus");function m(t){const e=t.messages[t.messages.length-1];return e?.toolCalls?e.toolCalls.every(s=>l(s.status)):!1}o(m,"areAllToolCallsExecuted");function p(t){return t.messages.filter(e=>e.toolCalls&&e.toolCalls.length>0&&e.toolCalls.some(s=>!l(s.status)))}o(p,"findMessagesWithPendingToolCalls");export{m as areAllToolCallsExecuted,g as createNewConversation,p as findMessagesWithPendingToolCalls,C as findParentMessageId,l as isTerminalToolCallStatus};
1
+ var i=Object.defineProperty;var o=(t,e)=>i(t,"name",{value:e,configurable:!0});import{generateConversationId as u}from"../helpers/storage/webstorage-storage.js";function C(t,e,s,l=[]){const n=t.o.aiAssistantPro,r={id:u(),created:Date.now(),updated:Date.now(),messages:l,permissions:[],options:{model:e??n.defaultModel,temperature:s??n.defaultTemperature}};return t.e.fire("conversationCreated.ai-assistant-pro",r),r}o(C,"createNewConversation");const d=["error_","stream_"];function c(t){return!d.some(e=>t.startsWith(e))}o(c,"isCompletedAssistantId");function p(t){for(let e=t.messages.length-1;e>=0;e--){const s=t.messages[e];if(s.role==="assistant"&&c(s.id))return s.id}return null}o(p,"findParentMessageId");const f=new Set(["executed","denied","error"]);function a(t){return f.has(t)}o(a,"isTerminalToolCallStatus");function v(t){const e=t.messages[t.messages.length-1];return e?.toolCalls?e.toolCalls.every(s=>a(s.status)):!1}o(v,"areAllToolCallsExecuted");function x(t){return t.messages.filter(e=>e.toolCalls&&e.toolCalls.length>0&&e.toolCalls.some(s=>!a(s.status)))}o(x,"findMessagesWithPendingToolCalls");export{v as areAllToolCallsExecuted,C as createNewConversation,x as findMessagesWithPendingToolCalls,p as findParentMessageId,a as isTerminalToolCallStatus};
@@ -1 +1 @@
1
- var t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> <!-- Plus icon with document/context --> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg> ';export{t as default};
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M13 3H5v18h14V9l-6-6Zm0 0v6h6M12 12v6m-3-3h6"/> </g> </svg> ';export{o as default};
@@ -1 +1 @@
1
- var o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> <!-- Wand handle - diagonal line --> <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> <!-- Wand tip - diamond --> <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> <!-- Large sparkle - top --> <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> <!-- Medium sparkle - left --> <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> <!-- Small sparkle - middle --> <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg> ';export{o as default};
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 17 11-11 4 4L7 21Zm8-8 4 4M5 3v4M3 5h4M19 2v4m-2-2h4m-1 12v4m-2-2h4"/> </g> </svg> ';export{o as default};
@@ -1 +1 @@
1
- var o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M9 18l6-6-6-6"/> </svg> ';export{o as default};
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m10 6 6 6-6 6"/> </g> </svg> ';export{o as default};
@@ -1 +1 @@
1
- var o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg> ';export{o as default};
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 10 18-7-7 18-3-8-8-3Zm8 3L21 3"/> </g> </svg> ';export{o as default};
@@ -1 +1 @@
1
- var o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/> </svg> ';export{o as default};
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 2 4 5v7c0 5 8 10 8 10s8-5 8-10V5l-8-3Z"/> </g> </svg> ';export{o as default};
@@ -1 +1 @@
1
- var o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M13 2L4 14h6l-1 8 9-12h-6z"/> </svg> ';export{o as default};
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m13 2-9 12h6l-1 8 11-13h-7V2Z"/> </g> </svg> ';export{o as default};
@@ -1 +1 @@
1
- var u=Object.defineProperty;var n=(a,t)=>u(a,"name",{value:t,configurable:!0});import{VoiceTranscriber as d}from"./voice-transcriber.js";import{UIButton as f}from"jodit/esm/core/ui/button/index.js";const g="jodit-ai-voice-active",o=class o{constructor(t,s,e){this.jodit=t,this.config=s,this.io=e,this.engine=null,this.listening=!1,this.phraseActive=!1,this.before="",this.after="",this.autoSendTimer=0,this.onPromptSent=()=>{this.phraseActive=!1},this.toggle=()=>{var i;if(this.listening){(i=this.engine)===null||i===void 0||i.stop(),this.reset();return}this.start()},this.button=new f(t,{name:"voice-input",icon:{name:"microphone"},variant:"initial",size:"middle"}),this.button.container.setAttribute("title","Dictate"),this.button.container.setAttribute("data-ref","voiceInputButton"),this.jodit.e.on(this.button,"click",this.toggle),this.jodit.e.on("sendMessage.ai-assistant-pro",this.onPromptSent)}get container(){return this.button.container}setParentView(t){this.button.setParentView(t)}start(){const t={onInterim:n(e=>{this.clearAutoSend(),this.insertPhrase(e)},"onInterim"),onFinal:n(e=>{this.insertPhrase(e),this.phraseActive=!1,this.scheduleAutoSend()},"onFinal"),onError:n(()=>this.reset(),"onError"),onEnd:n(()=>this.reset(),"onEnd")};let s;if(this.config.api)s=this.config.api(t);else{const{url:e,apiKey:i}=this.config;if(!e||!i)return;s=new d({url:e,apiKey:i,model:this.config.defaultModel,language:this.config.language,silenceMs:this.config.silenceTimeoutMs,...t})}this.phraseActive=!1,this.engine=s,this.listening=!0,this.setActive(!0),s.start()}reset(){this.clearAutoSend(),this.setActive(!1),this.phraseActive=!1,this.listening=!1,this.engine=null,this.io.focus()}scheduleAutoSend(){this.clearAutoSend();const t=this.config.autoSendSilenceMs;t!=null&&(this.autoSendTimer=this.jodit.async.setTimeout(()=>{this.autoSendTimer=0,this.io.send()},t))}clearAutoSend(){this.autoSendTimer&&(this.jodit.async.clearTimeout(this.autoSendTimer),this.autoSendTimer=0)}setActive(t){this.button.container.classList.toggle(g,t)}insertPhrase(t){if(!this.phraseActive){this.phraseActive=!0;const{start:c,end:l}=this.io.getSelection(),h=this.io.getValue();this.before=h.slice(0,c),this.after=h.slice(l)}const e=(this.before.length>0&&!/\s$/.test(this.before)?" ":"")+t,i=this.before.length+e.length;this.io.setValue(this.before+e+this.after,i)}destruct(){var t;this.clearAutoSend(),this.jodit.e.off("sendMessage.ai-assistant-pro",this.onPromptSent),(t=this.engine)===null||t===void 0||t.stop(),this.engine=null,this.button.destruct()}};n(o,"VoiceInputButton");let r=o;export{r as VoiceInputButton};
1
+ var u=Object.defineProperty;var n=(a,t)=>u(a,"name",{value:t,configurable:!0});import{VoiceTranscriber as d}from"./voice-transcriber.js";import{UIButton as f}from"jodit/esm/core/ui/button/index.js";const g="jodit-ai-voice-active",o=class o{constructor(t,s,e){this.jodit=t,this.config=s,this.io=e,this.engine=null,this.listening=!1,this.phraseActive=!1,this.before="",this.after="",this.autoSendTimer=0,this.onPromptSent=()=>{this.phraseActive=!1},this.toggle=()=>{var i;if(this.listening){(i=this.engine)===null||i===void 0||i.stop(),this.reset();return}this.start()},this.button=new f(t,{name:"voice-input",icon:{name:"speech-recognize"},variant:"initial",size:"middle"}),this.button.container.setAttribute("title","Dictate"),this.button.container.setAttribute("data-ref","voiceInputButton"),this.jodit.e.on(this.button,"click",this.toggle),this.jodit.e.on("sendMessage.ai-assistant-pro",this.onPromptSent)}get container(){return this.button.container}setParentView(t){this.button.setParentView(t)}start(){const t={onInterim:n(e=>{this.clearAutoSend(),this.insertPhrase(e)},"onInterim"),onFinal:n(e=>{this.insertPhrase(e),this.phraseActive=!1,this.scheduleAutoSend()},"onFinal"),onError:n(()=>this.reset(),"onError"),onEnd:n(()=>this.reset(),"onEnd")};let s;if(this.config.api)s=this.config.api(t);else{const{url:e,apiKey:i}=this.config;if(!e||!i)return;s=new d({url:e,apiKey:i,model:this.config.defaultModel,language:this.config.language,silenceMs:this.config.silenceTimeoutMs,...t})}this.phraseActive=!1,this.engine=s,this.listening=!0,this.setActive(!0),s.start()}reset(){this.clearAutoSend(),this.setActive(!1),this.phraseActive=!1,this.listening=!1,this.engine=null,this.io.focus()}scheduleAutoSend(){this.clearAutoSend();const t=this.config.autoSendSilenceMs;t!=null&&(this.autoSendTimer=this.jodit.async.setTimeout(()=>{this.autoSendTimer=0,this.io.send()},t))}clearAutoSend(){this.autoSendTimer&&(this.jodit.async.clearTimeout(this.autoSendTimer),this.autoSendTimer=0)}setActive(t){this.button.container.classList.toggle(g,t)}insertPhrase(t){if(!this.phraseActive){this.phraseActive=!0;const{start:c,end:l}=this.io.getSelection(),h=this.io.getValue();this.before=h.slice(0,c),this.after=h.slice(l)}const e=(this.before.length>0&&!/\s$/.test(this.before)?" ":"")+t,i=this.before.length+e.length;this.io.setValue(this.before+e+this.after,i)}destruct(){var t;this.clearAutoSend(),this.jodit.e.off("sendMessage.ai-assistant-pro",this.onPromptSent),(t=this.engine)===null||t===void 0||t.stop(),this.engine=null,this.button.destruct()}};n(o,"VoiceInputButton");let r=o;export{r as VoiceInputButton};