jodit-pro 2.0.0-beta.28 → 2.0.0-beta.32

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 (346) hide show
  1. package/es2015/jodit.css +320 -41
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +499 -333
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  9. package/es2015/plugins/backup/backup.css +1 -1
  10. package/es2015/plugins/backup/backup.js +3 -1
  11. package/es2015/plugins/backup/backup.min.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.css +1 -1
  13. package/es2015/plugins/button-generator/button-generator.js +6 -1
  14. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  15. package/es2015/plugins/change-case/change-case.js +1 -1
  16. package/es2015/plugins/change-case/change-case.min.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.css +1 -1
  18. package/es2015/plugins/color-picker/color-picker.js +2 -1
  19. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  20. package/es2015/plugins/emoji/emoji.css +1 -1
  21. package/es2015/plugins/emoji/emoji.js +4 -3
  22. package/es2015/plugins/emoji/emoji.min.js +2 -2
  23. package/es2015/plugins/export-docs/export-docs.js +1 -1
  24. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  25. package/es2015/plugins/finder/finder.css +1 -1
  26. package/es2015/plugins/finder/finder.js +21 -2
  27. package/es2015/plugins/finder/finder.min.js +2 -2
  28. package/es2015/plugins/google-maps/google-maps.css +1 -1
  29. package/es2015/plugins/google-maps/google-maps.js +9 -1
  30. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  31. package/es2015/plugins/google-search/google-search.js +1 -1
  32. package/es2015/plugins/google-search/google-search.min.js +1 -1
  33. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.js +2 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.css +1 -1
  39. package/es2015/plugins/keyboard/keyboard.js +2 -1
  40. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  41. package/es2015/plugins/mobile-view/mobile-view.js +13 -16
  42. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  43. package/es2015/plugins/page-break/page-break.js +1 -1
  44. package/es2015/plugins/page-break/page-break.min.js +1 -1
  45. package/es2015/plugins/paste-code/paste-code.css +1 -1
  46. package/es2015/plugins/paste-code/paste-code.js +2 -1
  47. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  48. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  50. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.css +1 -1
  53. package/es2015/plugins/todo-list/todo-list.js +1 -1
  54. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  55. package/es2015/plugins/translate/translate.css +1 -1
  56. package/es2015/plugins/translate/translate.js +3 -1
  57. package/es2015/plugins/translate/translate.min.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.css +1 -1
  59. package/es2015/plugins/tune-block/tune-block.js +5 -4
  60. package/es2015/plugins/tune-block/tune-block.min.js +2 -2
  61. package/es2018/jodit.css +320 -41
  62. package/es2018/jodit.fat.min.css +1 -1
  63. package/es2018/jodit.fat.min.js +2 -2
  64. package/es2018/jodit.js +500 -332
  65. package/es2018/jodit.min.css +1 -1
  66. package/es2018/jodit.min.js +2 -2
  67. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  68. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  69. package/es2018/plugins/backup/backup.css +1 -1
  70. package/es2018/plugins/backup/backup.js +3 -1
  71. package/es2018/plugins/backup/backup.min.js +1 -1
  72. package/es2018/plugins/button-generator/button-generator.css +1 -1
  73. package/es2018/plugins/button-generator/button-generator.js +6 -1
  74. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  75. package/es2018/plugins/change-case/change-case.js +1 -1
  76. package/es2018/plugins/change-case/change-case.min.js +1 -1
  77. package/es2018/plugins/color-picker/color-picker.css +1 -1
  78. package/es2018/plugins/color-picker/color-picker.js +2 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.css +1 -1
  81. package/es2018/plugins/emoji/emoji.js +4 -3
  82. package/es2018/plugins/emoji/emoji.min.js +2 -2
  83. package/es2018/plugins/export-docs/export-docs.js +1 -1
  84. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  85. package/es2018/plugins/finder/finder.css +1 -1
  86. package/es2018/plugins/finder/finder.js +21 -2
  87. package/es2018/plugins/finder/finder.min.js +2 -2
  88. package/es2018/plugins/google-maps/google-maps.css +1 -1
  89. package/es2018/plugins/google-maps/google-maps.js +9 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.js +1 -1
  92. package/es2018/plugins/google-search/google-search.min.js +1 -1
  93. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  94. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  95. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  96. package/es2018/plugins/iframe-editor/iframe-editor.js +2 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/keyboard/keyboard.css +1 -1
  99. package/es2018/plugins/keyboard/keyboard.js +2 -1
  100. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.js +13 -16
  102. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  103. package/es2018/plugins/page-break/page-break.js +1 -1
  104. package/es2018/plugins/page-break/page-break.min.js +1 -1
  105. package/es2018/plugins/paste-code/paste-code.css +1 -1
  106. package/es2018/plugins/paste-code/paste-code.js +2 -1
  107. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  108. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  109. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  110. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  111. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  112. package/es2018/plugins/todo-list/todo-list.css +1 -1
  113. package/es2018/plugins/todo-list/todo-list.js +1 -1
  114. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  115. package/es2018/plugins/translate/translate.css +1 -1
  116. package/es2018/plugins/translate/translate.js +3 -1
  117. package/es2018/plugins/translate/translate.min.js +1 -1
  118. package/es2018/plugins/tune-block/tune-block.css +1 -1
  119. package/es2018/plugins/tune-block/tune-block.js +5 -4
  120. package/es2018/plugins/tune-block/tune-block.min.js +2 -2
  121. package/es2021/jodit.css +320 -41
  122. package/es2021/jodit.fat.min.css +1 -1
  123. package/es2021/jodit.fat.min.js +2 -2
  124. package/es2021/jodit.js +490 -330
  125. package/es2021/jodit.min.css +1 -1
  126. package/es2021/jodit.min.js +2 -2
  127. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  128. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  129. package/es2021/plugins/backup/backup.css +1 -1
  130. package/es2021/plugins/backup/backup.js +3 -1
  131. package/es2021/plugins/backup/backup.min.js +1 -1
  132. package/es2021/plugins/button-generator/button-generator.css +1 -1
  133. package/es2021/plugins/button-generator/button-generator.js +6 -1
  134. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  135. package/es2021/plugins/change-case/change-case.js +1 -1
  136. package/es2021/plugins/change-case/change-case.min.js +1 -1
  137. package/es2021/plugins/color-picker/color-picker.css +1 -1
  138. package/es2021/plugins/color-picker/color-picker.js +2 -1
  139. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  140. package/es2021/plugins/emoji/emoji.css +1 -1
  141. package/es2021/plugins/emoji/emoji.js +4 -3
  142. package/es2021/plugins/emoji/emoji.min.js +2 -2
  143. package/es2021/plugins/export-docs/export-docs.js +1 -1
  144. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  145. package/es2021/plugins/finder/finder.css +1 -1
  146. package/es2021/plugins/finder/finder.js +21 -2
  147. package/es2021/plugins/finder/finder.min.js +2 -2
  148. package/es2021/plugins/google-maps/google-maps.css +1 -1
  149. package/es2021/plugins/google-maps/google-maps.js +9 -1
  150. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  151. package/es2021/plugins/google-search/google-search.js +1 -1
  152. package/es2021/plugins/google-search/google-search.min.js +1 -1
  153. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  154. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  155. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  156. package/es2021/plugins/iframe-editor/iframe-editor.js +2 -1
  157. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +2 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/mobile-view/mobile-view.js +13 -15
  162. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  163. package/es2021/plugins/page-break/page-break.js +1 -1
  164. package/es2021/plugins/page-break/page-break.min.js +1 -1
  165. package/es2021/plugins/paste-code/paste-code.css +1 -1
  166. package/es2021/plugins/paste-code/paste-code.js +2 -1
  167. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  168. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  169. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  170. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  171. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.css +1 -1
  173. package/es2021/plugins/todo-list/todo-list.js +1 -1
  174. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  175. package/es2021/plugins/translate/translate.css +1 -1
  176. package/es2021/plugins/translate/translate.js +3 -1
  177. package/es2021/plugins/translate/translate.min.js +1 -1
  178. package/es2021/plugins/tune-block/tune-block.css +1 -1
  179. package/es2021/plugins/tune-block/tune-block.js +5 -4
  180. package/es2021/plugins/tune-block/tune-block.min.js +2 -2
  181. package/es2021.en/jodit.css +320 -41
  182. package/es2021.en/jodit.fat.min.css +1 -1
  183. package/es2021.en/jodit.fat.min.js +2 -2
  184. package/es2021.en/jodit.js +490 -330
  185. package/es2021.en/jodit.min.css +1 -1
  186. package/es2021.en/jodit.min.js +2 -2
  187. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  188. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  189. package/es2021.en/plugins/backup/backup.css +1 -1
  190. package/es2021.en/plugins/backup/backup.js +3 -1
  191. package/es2021.en/plugins/backup/backup.min.js +1 -1
  192. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.js +6 -1
  194. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  195. package/es2021.en/plugins/change-case/change-case.js +1 -1
  196. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  197. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.js +2 -1
  199. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  200. package/es2021.en/plugins/emoji/emoji.css +1 -1
  201. package/es2021.en/plugins/emoji/emoji.js +4 -3
  202. package/es2021.en/plugins/emoji/emoji.min.js +2 -2
  203. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  204. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  205. package/es2021.en/plugins/finder/finder.css +1 -1
  206. package/es2021.en/plugins/finder/finder.js +21 -2
  207. package/es2021.en/plugins/finder/finder.min.js +2 -2
  208. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.js +9 -1
  210. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  211. package/es2021.en/plugins/google-search/google-search.js +1 -1
  212. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  214. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.js +2 -1
  217. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  218. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  219. package/es2021.en/plugins/keyboard/keyboard.js +2 -1
  220. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  221. package/es2021.en/plugins/mobile-view/mobile-view.js +13 -15
  222. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  223. package/es2021.en/plugins/page-break/page-break.js +1 -1
  224. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  225. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  226. package/es2021.en/plugins/paste-code/paste-code.js +2 -1
  227. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  228. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  229. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  230. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  231. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  232. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  233. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  234. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  235. package/es2021.en/plugins/translate/translate.css +1 -1
  236. package/es2021.en/plugins/translate/translate.js +3 -1
  237. package/es2021.en/plugins/translate/translate.min.js +1 -1
  238. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  239. package/es2021.en/plugins/tune-block/tune-block.js +5 -4
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
  241. package/es5/jodit.css +397 -54
  242. package/es5/jodit.fat.min.css +1 -1
  243. package/es5/jodit.fat.min.js +2 -2
  244. package/es5/jodit.js +645 -465
  245. package/es5/jodit.min.css +3 -3
  246. package/es5/jodit.min.js +2 -2
  247. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  248. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  249. package/es5/plugins/backup/backup.css +1 -1
  250. package/es5/plugins/backup/backup.js +5 -3
  251. package/es5/plugins/backup/backup.min.js +2 -2
  252. package/es5/plugins/button-generator/button-generator.css +1 -1
  253. package/es5/plugins/button-generator/button-generator.js +8 -3
  254. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  255. package/es5/plugins/change-case/change-case.js +2 -1
  256. package/es5/plugins/change-case/change-case.min.js +1 -1
  257. package/es5/plugins/color-picker/color-picker.css +1 -1
  258. package/es5/plugins/color-picker/color-picker.js +3 -1
  259. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  260. package/es5/plugins/emoji/emoji.css +1 -1
  261. package/es5/plugins/emoji/emoji.js +5 -3
  262. package/es5/plugins/emoji/emoji.min.js +2 -2
  263. package/es5/plugins/export-docs/export-docs.js +3 -3
  264. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  265. package/es5/plugins/finder/finder.css +1 -1
  266. package/es5/plugins/finder/finder.js +33 -19
  267. package/es5/plugins/finder/finder.min.js +2 -2
  268. package/es5/plugins/google-maps/google-maps.css +1 -1
  269. package/es5/plugins/google-maps/google-maps.js +25 -22
  270. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  271. package/es5/plugins/google-search/google-search.js +2 -1
  272. package/es5/plugins/google-search/google-search.min.js +1 -1
  273. package/es5/plugins/highlight-signature/highlight-signature.js +2 -1
  274. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  275. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  276. package/es5/plugins/iframe-editor/iframe-editor.js +3 -1
  277. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  278. package/es5/plugins/keyboard/keyboard.css +1 -1
  279. package/es5/plugins/keyboard/keyboard.js +9 -13
  280. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  281. package/es5/plugins/mobile-view/mobile-view.js +15 -17
  282. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  283. package/es5/plugins/page-break/page-break.js +2 -1
  284. package/es5/plugins/page-break/page-break.min.js +1 -1
  285. package/es5/plugins/paste-code/paste-code.css +1 -1
  286. package/es5/plugins/paste-code/paste-code.js +5 -6
  287. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  288. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  289. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  290. package/es5/plugins/show-blocks/show-blocks.js +3 -3
  291. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  292. package/es5/plugins/todo-list/todo-list.css +1 -1
  293. package/es5/plugins/todo-list/todo-list.js +3 -3
  294. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  295. package/es5/plugins/translate/translate.css +1 -1
  296. package/es5/plugins/translate/translate.js +6 -5
  297. package/es5/plugins/translate/translate.min.js +2 -2
  298. package/es5/plugins/tune-block/tune-block.css +1 -1
  299. package/es5/plugins/tune-block/tune-block.js +6 -4
  300. package/es5/plugins/tune-block/tune-block.min.js +2 -2
  301. package/esm/config.js +1 -1
  302. package/esm/core/ui/form/range/range.js +1 -1
  303. package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
  304. package/esm/plugins/backup/ui/box.js +1 -1
  305. package/esm/plugins/backup/ui/list.js +1 -1
  306. package/esm/plugins/button-generator/ui/button/button.js +2 -2
  307. package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
  308. package/esm/plugins/button-generator/ui/preview/preview.js +2 -2
  309. package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
  310. package/esm/plugins/emoji/config.js +1 -1
  311. package/esm/plugins/emoji/ui/emoji.js +1 -1
  312. package/esm/plugins/finder/browser.js +1 -1
  313. package/esm/plugins/finder/helpers/context-menu.js +1 -1
  314. package/esm/plugins/finder/helpers/history-manager.js +1 -1
  315. package/esm/plugins/finder/helpers/loading-manager.js +1 -1
  316. package/esm/plugins/finder/helpers/persistent-store.js +2 -2
  317. package/esm/plugins/finder/ui/folder/folder.js +1 -1
  318. package/esm/plugins/finder/ui/header/header.js +1 -1
  319. package/esm/plugins/finder/ui/item/item.js +1 -1
  320. package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
  321. package/esm/plugins/finder/ui/panel/panel.js +1 -1
  322. package/esm/plugins/finder/ui/preview/preview.js +2 -2
  323. package/esm/plugins/finder/ui/progress/progress.js +2 -2
  324. package/esm/plugins/finder/ui/settings/settings.js +1 -1
  325. package/esm/plugins/finder/ui/sidebar/sidebar.js +2 -2
  326. package/esm/plugins/finder/ui/source/source.js +1 -1
  327. package/esm/plugins/finder/ui/sources/sources.js +1 -1
  328. package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
  329. package/esm/plugins/finder/ui/tree/tree.js +1 -1
  330. package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
  331. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
  332. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
  333. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
  334. package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
  335. package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
  336. package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
  337. package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
  338. package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
  339. package/esm/plugins/mobile-view/config.js +1 -1
  340. package/esm/plugins/paste-code/paste-code.js +1 -1
  341. package/esm/plugins/paste-from-word/element/style.js +1 -1
  342. package/esm/plugins/translate/ui/list/list.js +1 -1
  343. package/esm/plugins/translate/ui/settings/settings.js +1 -1
  344. package/esm/plugins/tune-block/config.js +1 -1
  345. package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
  346. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -551,6 +551,7 @@ FileBrowserPro = (0,tslib__WEBPACK_IMPORTED_MODULE_22__/* .__decorate */ .gn)([
551
551
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_4__.component,
552
552
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_4__.derive)(jodit_core_traits__WEBPACK_IMPORTED_MODULE_8__/* .Dlgs */ .lf)
553
553
  ], FileBrowserPro);
554
+
554
555
  Object.defineProperty(jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_10__/* .JoditPro */ .y.modules, 'FileBrowserPro', {
555
556
  value: FileBrowserPro,
556
557
  writable: false,
@@ -864,6 +865,7 @@ ContextMenuManager = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)
864
865
  ], ContextMenuManager);
865
866
 
866
867
 
868
+
867
869
  /***/ }),
868
870
 
869
871
  /***/ 70467:
@@ -1001,6 +1003,7 @@ HistoryManager = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
1001
1003
  ], HistoryManager);
1002
1004
 
1003
1005
 
1006
+
1004
1007
  /***/ }),
1005
1008
 
1006
1009
  /***/ 48086:
@@ -1160,6 +1163,7 @@ let LoadingManager = class LoadingManager extends jodit_core_component__WEBPACK_
1160
1163
  LoadingManager = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
1161
1164
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
1162
1165
  ], LoadingManager);
1166
+
1163
1167
  function loadPartItems(state, dataProvider, offset, limit) {
1164
1168
  const { currentPath, currentSource, sortBy, withFolders, foldersPosition, onlyImages, filterWord } = state;
1165
1169
  return dataProvider.itemsEx(currentPath, currentSource, {
@@ -1316,6 +1320,7 @@ PersistentStore = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
1316
1320
  ], PersistentStore);
1317
1321
 
1318
1322
 
1323
+
1319
1324
  /***/ }),
1320
1325
 
1321
1326
  /***/ 83568:
@@ -1598,6 +1603,7 @@ UIBrowserFolder = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
1598
1603
  ], UIBrowserFolder);
1599
1604
 
1600
1605
 
1606
+
1601
1607
  /***/ }),
1602
1608
 
1603
1609
  /***/ 65669:
@@ -1634,7 +1640,7 @@ let UIBrowserHeader = class UIBrowserHeader extends jodit_core_ui__WEBPACK_IMPOR
1634
1640
  this.stateManager = stateManager;
1635
1641
  /** @override */
1636
1642
  this.syncMod = true;
1637
- this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeCollection */ .R)(this.j);
1643
+ this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_2__/* .makeCollection */ .RP)(this.j);
1638
1644
  this.filter = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3(this.j, {
1639
1645
  icon: 'search',
1640
1646
  placeholder: 'Filter',
@@ -1673,6 +1679,7 @@ UIBrowserHeader = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1673
1679
  ], UIBrowserHeader);
1674
1680
 
1675
1681
 
1682
+
1676
1683
  /***/ }),
1677
1684
 
1678
1685
  /***/ 87695:
@@ -1779,6 +1786,7 @@ UIBrowserItem = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
1779
1786
  ], UIBrowserItem);
1780
1787
 
1781
1788
 
1789
+
1782
1790
  /***/ }),
1783
1791
 
1784
1792
  /***/ 41424:
@@ -1943,6 +1951,7 @@ UILightBox = UILightBox_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate
1943
1951
  ], UILightBox);
1944
1952
 
1945
1953
 
1954
+
1946
1955
  /***/ }),
1947
1956
 
1948
1957
  /***/ 96123:
@@ -2185,6 +2194,7 @@ UIBrowserPanel = (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
2185
2194
  ], UIBrowserPanel);
2186
2195
 
2187
2196
 
2197
+
2188
2198
  /***/ }),
2189
2199
 
2190
2200
  /***/ 96945:
@@ -2302,6 +2312,7 @@ UIPreview = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
2302
2312
  ], UIPreview);
2303
2313
 
2304
2314
 
2315
+
2305
2316
  /***/ }),
2306
2317
 
2307
2318
  /***/ 22840:
@@ -2371,6 +2382,7 @@ UIProgress = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)([
2371
2382
  ], UIProgress);
2372
2383
 
2373
2384
 
2385
+
2374
2386
  /***/ }),
2375
2387
 
2376
2388
  /***/ 62983:
@@ -2579,6 +2591,7 @@ UIBrowserSettings = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)(
2579
2591
  ], UIBrowserSettings);
2580
2592
 
2581
2593
 
2594
+
2582
2595
  /***/ }),
2583
2596
 
2584
2597
  /***/ 68787:
@@ -2667,6 +2680,7 @@ UISidebar = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
2667
2680
  ], UISidebar);
2668
2681
 
2669
2682
 
2683
+
2670
2684
  /***/ }),
2671
2685
 
2672
2686
  /***/ 21596:
@@ -2727,6 +2741,7 @@ UIBrowserSource = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2727
2741
  ], UIBrowserSource);
2728
2742
 
2729
2743
 
2744
+
2730
2745
  /***/ }),
2731
2746
 
2732
2747
  /***/ 93582:
@@ -2772,6 +2787,7 @@ UIBrowserSources = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2772
2787
  ], UIBrowserSources);
2773
2788
 
2774
2789
 
2790
+
2775
2791
  /***/ }),
2776
2792
 
2777
2793
  /***/ 67775:
@@ -2821,6 +2837,7 @@ UIBrowserStatusBar = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)
2821
2837
  ], UIBrowserStatusBar);
2822
2838
 
2823
2839
 
2840
+
2824
2841
  /***/ }),
2825
2842
 
2826
2843
  /***/ 91919:
@@ -2875,6 +2892,7 @@ UITree = UITree_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__decorate */ .gn)(
2875
2892
  ], UITree);
2876
2893
 
2877
2894
 
2895
+
2878
2896
  /***/ }),
2879
2897
 
2880
2898
  /***/ 72618:
@@ -3005,6 +3023,7 @@ UIVirtualScroll = UIVirtualScroll_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* ._
3005
3023
  ], UIVirtualScroll);
3006
3024
 
3007
3025
 
3026
+
3008
3027
  /***/ }),
3009
3028
 
3010
3029
  /***/ 62499:
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
8
 
9
9
 
10
- ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[524],{82942(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},19327(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},59239(t){t.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},46567(t,e,s){"use strict";s.d(e,{lf(){return i.l}}),s(71917);var i=s(87759)},68813(t,e,s){"use strict";s.d(e,{X(){return _}});var i=s(97582),n=(s(68349),s(95582)),o=s(8079),r=s(2932),a=s(50526),h=s(11612),l=s(92803),c=s(3028),d=s(46567),u=s(77628),g=s(53852),m=s(19564),p=s(96123),f=s(83568),v=s(65669),w=s(22840),y=s(93469),C=s(9581),b=s(63052),S=s(70467),x=s(41424),I=s(48086);let _=class t extends r.Vq{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,e=!(t instanceof Error)){(0,n.isAbort)(t)||(!h.IS_PROD&&(0,n.isString)(t),this.message.message((0,n.isString)(t)?t:t.message,e?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new w.u(this,this.stateManager.state)}constructor(t){super((0,n.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:t?.toolbarButtons||u.Config.defaultOptions.filebrowser.buttons,buttons:g.y.atom(["filebrowser.settings","fullsize","dialog.close"])}),u.Config.defaultOptions.filebrowser)),this.dataProvider=(0,c.S)(this,this.options),this.state=(0,o.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1}),this.persistent=new y.h(this,this.state),this.loadingManager=new I.l(this,this.state),this.stateManager=new f.O(this.state),this.historyManager=new C.E(this,this.state),this.contextMenuManager=new b.z(this),this.header=new v.C(this,this.options,this.stateManager),this.panel=new p.G(this,this.stateManager),this.files=this.panel,this.tree=this.panel,m.V.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress((t=>{0===t&&(t=30),this.state.progress=t})),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),g.y.prototype.afterInitHook.call(this)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,e){return this.state.onlyImages=!!e,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,n.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){const{currentPath:t,currentSource:e}=this.state;this.uploader.setPath(t),this.uploader.setSource(e)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=e=>{this.close(),t(e)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){const{activeElement:e}=this.od;if(!this.state.activeElements.length||!e||!o.Dom.isOrContains(this.panel.items.container,e))return;const s=this.state.elements;switch(t.key){case h.KEY_ENTER:return this.onChooseItems();case h.KEY_DELETE:return this.onFileRemove();case h.KEY_RIGHT:case h.KEY_LEFT:case h.KEY_DOWN:case h.KEY_UP:{const e=t.key===h.KEY_RIGHT||t.key===h.KEY_DOWN,i=this.state.lastSelectedIndex;let n;if([h.KEY_RIGHT,h.KEY_LEFT].includes(t.key))n=e?s[i+1]?i+1:0:s[i-1]?i-1:s.length-1;else{const{countInRow:t}=this.panel;n=Math.round(((i+1)/t+(e?1:-1))*t-1)}return s[n]&&this.stateManager.addActive(s[n],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",(t=>{t&&this.__itemsRemove(this.state.activeElements)})).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();const e=[];return t.forEach((t=>{e.push("folder"===t.type?this.__folderRemove((0,S.C)(t.path),t.name??"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))})),this.state.activeElements.forEach((t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)})),this.state.activeElements=[],Promise.allSettled(e).then((()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()])))}__removeFile(t,e){return this.dataProvider.fileRemove(this.state.currentPath,t,e).then((e=>{this.status(e||this.i18n('File "%s" was deleted',t),!0)})).catch(this.status)}__folderRemove(t,e,s){return this.dataProvider.folderRemove(t,e,s).then((i=>{this.status(i||this.i18n('Folder "%s" was deleted',e),!0),this.state.currentPath===t&&(this.state.currentPath=(0,S.C)(t),this.state.currentSource=s)})).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){const[t]=this.state.activeElements;l.r.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",(e=>{if(!(0,n.isValidName)(e)||e===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,S.C)(t.path),t.name,e,t.sourceName).then((s=>{this.state.activeElements=[],this.status(s,!0),this.state.currentPath=(0,S.C)(t.path)+"/"+e,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()})).catch(this.status)}),this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",(e=>{e&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])})).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",(e=>{const s=t.path||"/";this.dataProvider.createFolder(e,t.path||"/",t.sourceName).then((()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===s?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=s),this.historyManager.updateCurrent()}),this.status)}),this.i18n("type name")).bindDestruct(this)}onFileRename(t){const e=t.file||t.name||"";1===this.state.activeElements.length&&e&&this.prompt("Enter new name","Rename",(t=>{if(!(0,n.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,e,t,this.state.currentSource).then((t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()})).catch(this.status)}),this.i18n("type name"),e).bindDestruct(this)}onChooseItems(){const t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type)return this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,void this.e.fire("afterOpenFolder.filebrowser");this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){x.m.open(this,t,this.state.elements)}initUploader(){const t=this,e=(0,n.ConfigProto)(t.o.uploader||{},u.Config.defaultOptions.uploader),s=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",e),t.uploader.bind(t.panel.container,s,t.status),t.e.on("bindUploader.filebrowser",(e=>{t.uploader.bind(e,s,t.status)}))}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,n.ConfigProto)(this.options[t],this.o.ajax))}))}};(0,i.gn)([a.autobind],_.prototype,"status",null),(0,i.gn)([a.cache],_.prototype,"progressbar",null),(0,i.gn)([(0,a.watch)(":resize",{context:window})],_.prototype,"onResizeWindow",null),(0,i.gn)([(0,a.watch)(["state.currentPath","state.currentSource"])],_.prototype,"onChangePath",null),(0,i.gn)([(0,a.watch)("state.theme")],_.prototype,"onChangeTheme",null),(0,i.gn)([(0,a.watch)(":toggleSettings.filebrowser")],_.prototype,"onToggleSettings",null),(0,i.gn)([a.autobind],_.prototype,"onKeyPress",null),(0,i.gn)([a.autobind],_.prototype,"removeGlobalListeners",null),(0,i.gn)([(0,a.watch)(":fileRemove.filebrowser")],_.prototype,"onFileRemove",null),(0,i.gn)([(0,a.watch)(":edit.filebrowser")],_.prototype,"onFileEdit",null),(0,i.gn)([(0,a.watch)(":folderRename.filebrowser")],_.prototype,"onFolderRename",null),(0,i.gn)([(0,a.watch)(":folderRemove.filebrowser")],_.prototype,"onFolderRemove",null),(0,i.gn)([(0,a.watch)(":folderCreate.filebrowser")],_.prototype,"onFolderCreate",null),(0,i.gn)([(0,a.watch)(":fileRename.filebrowser")],_.prototype,"onFileRename",null),(0,i.gn)([(0,a.watch)(":select.filebrowser")],_.prototype,"onChooseItems",null),(0,i.gn)([(0,a.watch)(":openLightBox.filebrowser")],_.prototype,"onOpenLightBox",null),_=(0,i.gn)([a.component,(0,a.derive)(d.lf)],_),Object.defineProperty(g.y.modules,"FileBrowserPro",{value:_,writable:!1,enumerable:!0,configurable:!0})},99993(t,e,s){"use strict";var i=s(77628);(0,s(81160).xl)(s(57591));const n=i.Config.prototype.controls.filebrowser;n.settings={icon:"settings",tooltip:"Settings",exec(t){(t.parent??t).e.fire("toggleSettings.filebrowser")}},n.home={icon:"home",tooltip:"Home",exec(t){t.e.fire("goHome.filebrowser")}},n.preview={icon:"eye",tooltip:"Preview",isDisabled:t=>0===t.state.activeElements.length,exec(t){t.e.fire("togglePreview.filebrowser")}},n.next={icon:"angle-right",tooltip:"History next",isDisabled(t){return!t.historyManager.canNext()},exec(t){t.historyManager.next()}},n.previous={icon:"angle-left",tooltip:"History previous",isDisabled(t){return!t.historyManager.canPrevious()},exec(t){t.historyManager.previous()}},n["new-folder"]={icon:"new-folder",exec(t){t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(i.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="})},48531(t,e,s){"use strict";s.r(e),s.d(e,{finder(){return r}});var i=s(7324),n=s(68813),o=s(53852);s(99993);class r extends i.S{constructor(){super(...arguments),this.hasStyle=!o.y.fatMode}afterInit(t){t.e.on("getInstanceFileBrowser",(t=>(this.__instance||(this.__instance=new n.X(t)),this.__instance)))}beforeDestruct(t){t.e.off("getInstanceFileBrowser"),this.__instance?.destruct()}}r.requires=["license"],o.y.plugins.add("finder",r)},63052(t,e,s){"use strict";s.d(e,{z(){return a}});var i=s(97582),n=s(3028),o=s(28702),r=s(50526);let a=class t extends o.H{className(){return"ContextMenuManager"}onFolderContext(t,e){return this.buildContextItemMenu(this.getFolderContextActions(t),e),!1}onItemContext(t,e,s){return this.buildContextItemMenu(this.getItemContextActions(t),s),!1}onSourceContext(t,e){return this.buildContextItemMenu(this.getSourceContextActions(t),e),!1}buildContextItemMenu(t,e){if(!this.j.o.contextMenu)return;const s=(0,n.L)(this.j).setMod("theme",this.j.state.theme);s.show(e.clientX,e.clientY,t.filter((t=>t&&!1!==t.enabled))),this.j.e.on(this.j,"afterClose",(()=>{s.isOpened&&s.close()}))}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});const e=this.j.options,s=this.j.dataProvider,i=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&e.editImage&&i&&(s.canI("ImageResize")||s.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:s.canI("FileRename")&&i,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:s.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!(!t.isImage&&"file"!==t.type)&&e.preview&&i,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){const e=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:e.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:e.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:e.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}};(0,i.gn)([(0,r.watch)(":contextmenuFolder.filebrowser")],a.prototype,"onFolderContext",null),(0,i.gn)([(0,r.watch)(":contextmenuItem.filebrowser")],a.prototype,"onItemContext",null),(0,i.gn)([(0,r.watch)(":contextmenuSource.filebrowser")],a.prototype,"onSourceContext",null),a=(0,i.gn)([r.component],a)},70467(t,e,s){"use strict";s.d(e,{C(){return i}});const i=t=>{const e=t.split("/").filter((t=>t.length));return e.pop(),e.join("/")||"/"}},9581(t,e,s){"use strict";s.d(e,{E(){return a}});var i=s(97582),n=s(16479),o=s(28702),r=s(50526);let a=class t extends o.H{className(){return"HistoryManager"}constructor(t,e){super(t),this.state=e,this.history=[],this.historyIndex=0}canNext(){return this.history.length-1>this.historyIndex}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:e}=this;const s=this.history[e];if(s&&s.currentSource===t.currentSource&&s.currentPath===t.currentPath)return;let i=[...this.history];i.length-1!==e&&(i=i.slice(0,e+1)),i.push(t),s&&(e+=1),this.history=i,this.historyIndex=e}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:(0,n.V8)(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){const{tree:t,elements:e,currentSource:s,currentPath:i}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...e],this.state.tree=[...t],this.state.currentSource=s,this.state.currentPath=i,this.j.e.fire("changeSelection")}};(0,i.gn)([(0,r.watch)(["state.elements","state.tree"])],a.prototype,"updateCurrent",null),(0,i.gn)([(0,r.watch)(":goHome.filebrowser")],a.prototype,"onHome",null),(0,i.gn)([(0,r.watch)(":afterOpenFolder.filebrowser")],a.prototype,"onOpenFolder",null),a=(0,i.gn)([r.component],a)},48086(t,e,s){"use strict";s.d(e,{l(){return r}});var i=s(97582),n=s(22562),o=s(50526);let r=class t extends n.Hr{className(){return"LoadingManager"}constructor(t,e){super(t),this.state=e,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;const{currentPath:t,currentSource:e}=this.state;try{const s=await this.j.dataProvider.tree(t,e);this.j.stateManager.fillTreeForPath(s,t),this.state.sources=s}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;const{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;const{items:e,loadedTotal:s}=await a(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=e,this.stopLoadingParts=this.countInOneChunk>s,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart)this.__callQueueCount+=1;else{if(!this.stopLoadingParts){this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;const{items:e,loadedTotal:s}=await a(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=this.countInOneChunk>s,e.length&&(this.state.elements=this.state.elements.concat(e))}catch(t){this.j.status(t)}return this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0?(this.__callQueueCount-=1,this.__loadItemsChunk(t)):void 0}this.__callQueueCount=0}}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}};function a(t,e,s,i){const{currentPath:n,currentSource:o,sortBy:r,withFolders:a,foldersPosition:h,onlyImages:l,filterWord:c}=t;return e.itemsEx(n,o,{offset:s,limit:i,sortBy:r,withFolders:a,foldersPosition:h,onlyImages:l,filterWord:c})}(0,i.gn)([(0,o.watch)(":update.filebrowser")],r.prototype,"onUpdateFileBrowser",null),(0,i.gn)([(0,o.watch)(["state.currentPath","state.currentSource"]),(0,o.debounce)((t=>({timeout:t.defaultTimeout,promisify:!0})))],r.prototype,"loadFolders",null),(0,i.gn)([(0,o.watch)(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),(0,o.debounce)((t=>({timeout:t.defaultTimeout,promisify:!0})))],r.prototype,"loadItems",null),(0,i.gn)([(0,o.debounce)((t=>({timeout:t.defaultTimeout,promisify:!0})))],r.prototype,"loadItemsChunk",null),r=(0,i.gn)([o.component],r)},93469(t,e,s){"use strict";s.d(e,{h(){return a}});var i=s(97582),n=s(22562),o=s(50526),r=s(45545);let a=class t extends n.Hr{className(){return"PersistentStore"}constructor(t,e){super(t),this.state=e,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.view=this.state.view}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map((t=>t instanceof r.Z?t:r.Z.create(t))),this.state.view=this.view,this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}};(0,i.gn)([o.persistent],a.prototype,"theme",void 0),(0,i.gn)([o.persistent],a.prototype,"sortBy",void 0),(0,i.gn)([o.persistent],a.prototype,"view",void 0),(0,i.gn)([o.persistent],a.prototype,"foldersPosition",void 0),(0,i.gn)([o.persistent],a.prototype,"tileSize",void 0),(0,i.gn)([o.persistent],a.prototype,"favorites",void 0),(0,i.gn)([o.persistent],a.prototype,"showSideBar",void 0),(0,i.gn)([o.persistent],a.prototype,"showPreview",void 0),(0,i.gn)([o.persistent],a.prototype,"showFavorites",void 0),(0,i.gn)([(0,o.watch)("state.theme")],a.prototype,"onChangeThemeSetField",null),(0,i.gn)([(0,o.watch)("state.view")],a.prototype,"onChangeView",null),(0,i.gn)([(0,o.watch)("state.sortBy")],a.prototype,"onChangeSortBy",null),(0,i.gn)([(0,o.watch)("state.tileSize")],a.prototype,"onChangeTileSize",null),(0,i.gn)([(0,o.watch)("state.favorites")],a.prototype,"onChangeFavorites",null),(0,i.gn)([(0,o.watch)("state.showSideBar")],a.prototype,"onChangeShowSideBar",null),(0,i.gn)([(0,o.watch)("state.showPreview")],a.prototype,"onChangeShowPreview",null),(0,i.gn)([(0,o.watch)("state.showFavorites")],a.prototype,"onChangeShowFavorites",null),(0,i.gn)([(0,o.watch)("state.foldersPosition")],a.prototype,"onChangeFoldersPosition",null),a=(0,i.gn)([o.component],a)},83568(t,e,s){"use strict";s.d(e,{O(){return o}});var i=s(97582),n=s(50526);class o{constructor(t){this.state=t}getIndex(t,e=this.state.elements){return e.findIndex((e=>e.uniqueHashKey===t.uniqueHashKey))}isActive(t){return!!this.state.activeElements.find((e=>e.uniqueHashKey===t.uniqueHashKey))}isFavorite(t){return!!this.state.favorites.find((e=>e.uniqueHashKey===t.uniqueHashKey))}addActive(t,e){this.state.metaInfo=t,this.state.info=t.file??"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=e?[...this.state.activeElements,t]:[t]}callSelectHandler(){const t=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:t.map((t=>t.fileURL)),isImages:t.map((t=>!!t.isImage))})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){const e=this.getIndex(t,this.state.favorites),s=[...this.state.favorites];-1===e?s.push(t):s.splice(e,1),this.state.favorites=s}fillTreeForPath(t,e){this.state.tree.length&&e&&"/"!==e?(this.removeActive(this.state.tree),t.forEach((t=>{let s=r(this.state.tree,t.name);s||(s=h(t),this.state.tree.push(s)),s.isActive=!0;const i=((t,e)=>t.split("/").reduce(((t,e)=>t&&r(t.children,e)),e))(e,s);i&&(i.isActive=!0,i.children=a(t.folders).map((s=>l(s,e+"/"+s,t.name))))})),this.state.tree=[...this.state.tree]):this.state.tree=t.map(h)}removeActive(t){t.forEach((t=>{t.isActive=!1,this.removeActive(t.children)}))}get isFavoriteItems(){return this.state.favorites===this.state.elements}}function r(t,e){return t.find((t=>t.name===e))??null}function a(t){return t.filter((t=>"."!==t&&".."!==t))}function h(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:a(t.folders).map((e=>l(e,e,t.name)))}}function l(t,e,s){return{type:"directory",name:t,path:e,sourceName:s,children:[]}}(0,i.gn)([n.autobind],o.prototype,"getIndex",null),(0,i.gn)([n.autobind],o.prototype,"isActive",null),(0,i.gn)([n.autobind],o.prototype,"isFavorite",null)},57591(t,e,s){"use strict";s.r(e),s.d(e,{ru(){return i}});const i=s(11937)},11937(t){"use strict";t.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"}},68349(t,e,s){"use strict";var i=s(75004),n=s(82942),o=s(19327),r=s(59239);i.JO.set("heart",n+""),i.JO.set("home",o+""),i.JO.set("new-folder",r+"")},9890(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(97582),n=s(75004),o=s(94707);s(52378);let r=class t extends n.u1{className(){return"UIBrowserFolder"}render(){return'<div>\n\t\t\t<div class="&__icon">\n\t\t\t\t<div class=\'&__loader\'></div>\n\t\t\t\t<div class="&__icon-wrapper">\n\t\t\t\t\t*folder*\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__arrow">*angle-right*</div>\n\t\t</div>'}constructor(t,e){super(t),this.item=e,this.syncMod=!0,this.getElm("name").innerText=e.name,t.e.on(this.container,"click",(()=>(this.getMod("active")||this.setMod("loading",!0),t.e.fire("openFolder",e)))).on(this.container,"contextmenu",(s=>t.e.fire("contextmenuFolder.filebrowser",e,s)))}};r=(0,i.gn)([o.w],r)},65669(t,e,s){"use strict";s.d(e,{C(){return h}});var i=s(97582),n=s(75004),o=s(50526),r=s(45429),a=s(4682);let h=class t extends n.qe{className(){return"UIBrowserHeader"}constructor(t,e,s){super(t),this.options=e,this.stateManager=s,this.syncMod=!0,this.toolbar=(0,r.R)(this.j),this.filter=new n.u3(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:t=>{this.stateManager.setFilter(t)}}),this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}__getButtons(){return(this.options.toolbarButtons??[]).filter((t=>{if(!(0,a.H)(t))return!0;switch(t){case"filebrowser.edit":return this.j.dataProvider.canI("ImageResize")||this.j.dataProvider.canI("ImageCrop");case"filebrowser.new-folder":return this.j.dataProvider.canI("FolderCreate");case"filebrowser.upload":return this.j.dataProvider.canI("FileUpload");case"filebrowser.remove":return this.j.dataProvider.canI("FileRemove")}return!0}))}};h=(0,i.gn)([o.component],h)},87695(t,e,s){"use strict";s.d(e,{u(){return l}});var i=s(97582),n=s(75004),o=s(50526),r=s(45545),a=s(8079),h=s(95582);s(52378);let l=class t extends n.u1{className(){return"UIBrowserItem"}constructor(t,e){super(t),this.item=r.Z.create(e),t.e.on(this.container,"click contextmenu dblclick",(e=>(t.e.fire(e.type+"Item.filebrowser",this.item,(0,h.ctrlKey)(e)||e.shiftKey,e),!1))),this.update()}render(){return"<div tabindex='-1'>\n\t\t\t<div class='&__image'></div>\n\t\t\t<div class='&__info'></div>\n\t\t\t<div class='&__heart'>*heart*</div>\n\t\t</div>"}onClickFavorite(){return this.bubble((t=>{this.jodit.e.fire(t,"toggleFavoriteItem",this.item)})),!1}onAction(t){return this.jodit.e.fire(t.type+"Item.filebrowser",this.item,(0,h.ctrlKey)(t)||t.shiftKey,t),!1}update(){const t=this.getElm("image");(0,h.css)(t,"backgroundImage",`url(${encodeURI(this.item.imageURL)})`);const{type:e,file:s,time:i,size:n}=this.item;this.setMod("is-file",!1===this.item.isImage).setMod("type",e??"file").setElementValue("name",s).setElementValue("time",i).setElementValue("filesize",n),(0,h.attr)(this.container,"title","folder"!==e?`${s} ${i} ${n}`:s),super.update()}setElementValue(t,e){const s=this.getFullElName(t);let i=this.getElm(t);if(!e)return i&&a.Dom.safeRemove(i),this;if(!i){const t=this.getElm("info");i=this.j.create.div(s),t.appendChild(i)}return i.innerText=e,this}};(0,i.gn)([(0,o.watch)("heart:click")],l.prototype,"onClickFavorite",null),(0,i.gn)([(0,o.watch)(["container:click","container:contextmenu","container:dblclick"])],l.prototype,"onAction",null),l=(0,i.gn)([o.component],l)},41424(t,e,s){"use strict";s.d(e,{m(){return l}});var i,n=s(97582),o=s(8079),r=s(50526),a=s(95582),h=s(11612);s(52378);let l=i=class t extends o.UIElement{className(){return"UILightBox"}render(){return"<div>\n\t\t\t<div class='&__previous'>*angle-left*</div>\n\t\t\t<div class='&__preview'></div>\n\t\t\t<div class='&__loader'></div>\n\t\t\t<div class='&__next'>*angle-right*</div>\n\t\t</div>"}constructor(t,e,s){super(t),this.current=e,this.elements=s,this.dialog=new o.Dialog;const{dialog:i}=this;i.setMod("theme",t.state.theme).toolbar.setMod("mode","header"),i.open(this),this.elements=this.elements.filter((t=>t.isImage)),i.e.on(i,"afterClose",(()=>{this.destruct()})),this.addGlobalListeners(),this.onChangeCurrent(),i.toolbar.build([{icon:"check",exec:()=>{t.stateManager.addActive(this.current,!1),t.e.fire("select.filebrowser"),i.close()}},"dialog.close"])}async onChangeCurrent(){const{current:t}=this;this.setMod("loading",!0);const e=this.getElm("preview");if(o.Dom.detach(e),(0,a.css)(e,{backgroundImage:null}),t.isImage){const s=await(0,a.loadImage)(t.fileURL,this.j);this.dialog.setPosition(),(0,a.css)(e,{width:Math.min(this.jodit.ow.innerWidth,s.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,s.naturalHeight),backgroundImage:`url(${s.src})`})}else{const s=await this.makeIframe(t.fileURL);e.appendChild(s)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(t){const e=this.j.c.element("iframe");return e.classList.add(this.getFullElName("office-iframe")),e.src=/\.pdf/.test(t)?t:this.j.o.previewOfficeURL+encodeURIComponent(t),e}onPreviousClick(){const{current:t}=this;let e=this.j.stateManager.getIndex(t,this.elements);e>0?e-=1:e=this.elements.length-1,this.current=this.elements[e]}onNextClick(){const{current:t}=this;let e=this.j.stateManager.getIndex(t,this.elements);this.elements.length-1>e?e+=1:e=0,this.current=this.elements[e]}static open(t,e,s){return new i(t,e,s)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(t){if(t.key===h.KEY_LEFT||t.key===h.KEY_RIGHT||t.key===h.KEY_SPACE)return t.key===h.KEY_LEFT?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}};(0,n.gn)([(0,r.watch)("current")],l.prototype,"onChangeCurrent",null),(0,n.gn)([(0,r.watch)("previous:click")],l.prototype,"onPreviousClick",null),(0,n.gn)([(0,r.watch)("next:click")],l.prototype,"onNextClick",null),(0,n.gn)([r.autobind],l.prototype,"onKeyPress",null),l=i=(0,n.gn)([r.component],l)},96123(t,e,s){"use strict";s.d(e,{G(){return g}});var i=s(97582),n=s(75004),o=s(50526),r=s(95582),a=s(72618),h=s(68787),l=s(62983),c=s(93582),d=s(67775),u=s(96945);let g=class t extends n.qe{className(){return"UIBrowserPanel"}get countInRow(){if("list"===this.state.view)return 1;if(!this.items.elements.length)return 1;const{container:t}=this.items.elements[0],e=(0,r.css)(t,"marginLeft");return Math.floor(this.items.container.offsetWidth/(t.offsetWidth+((0,r.isNumber)(e)?e:0)))}get countInColumn(){if(!this.items.elements.length)return 1;const{container:t}=this.items.elements[0],e=(0,r.css)(t,"marginTop");return Math.floor(this.items.container.offsetHeight/(t.offsetHeight+((0,r.isNumber)(e)?e:0)))}render(){return"<div>\n\t\t\t<div class='&__content'></div>\n\t\t\t<div class='&__footer'></div>\n\t\t</div>"}constructor(t,e){super(t),this.stateManager=e,this.syncMod=!0,this.sources=new c.L(this.j),this.sidebar=new h.o(this.jodit,[this.sources],this.stateManager.state),this.preview=new u.o(this.jodit,this.stateManager.state),this.statusbar=new d.s(this.j),this.items=new a.d(this.j,this.stateManager),this.settings=new l.r(this.jodit,this.stateManager.state),this.state=e.state,this.append(this.sidebar,"content"),this.append(this.items,"content"),this.append(this.settings,"content"),this.append(this.preview,"content"),this.append(this.statusbar,"footer"),this.onChangeElements(),this.onChangeSources(),this.onChangeView(),this.onChangeTileSize(),this.onChangeShowFavorites(),this.onChangeActiveElements(),this.onChangeFavorites(),this.onChangeShowSideBar(),this.onChangeShowSettings(),this.onChangeShowPreview(),this.onChangeTheme()}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements)}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach((t=>{t.setMod("active",!!this.stateManager.isActive(t.item))})),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach((t=>{t.setMod("favorite",!!this.stateManager.isFavorite(t.item))}))}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){const t=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;t&&((0,r.scrollIntoViewIfNeeded)(t,this.items.container,this.j.od),t.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(t,e){this.stateManager.addActive(t,e)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(t){this.stateManager.toggleFavorite(t)}onFolderClick(t){this.stateManager.state.currentSource=t.sourceName,this.stateManager.state.currentPath=t.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}};(0,i.gn)([(0,o.watch)("state.theme")],g.prototype,"onChangeTheme",null),(0,i.gn)([(0,o.watch)("state.elements")],g.prototype,"onChangeElements",null),(0,i.gn)([(0,o.watch)("state.activeElements")],g.prototype,"onChangeActiveElements",null),(0,i.gn)([(0,o.watch)(["state.favorites","state.elements"])],g.prototype,"onChangeFavorites",null),(0,i.gn)([(0,o.watch)("state.sources")],g.prototype,"onChangeSources",null),(0,i.gn)([(0,o.watch)("state.lastSelectedIndex")],g.prototype,"onChangeLastSelectedIndex",null),(0,i.gn)([(0,o.watch)("state.info")],g.prototype,"onChangeInfo",null),(0,i.gn)([(0,o.watch)(["state.currentPath","state.currentSource"])],g.prototype,"onChangePathOrSource",null),(0,i.gn)([(0,o.watch)("state.showSettings")],g.prototype,"onChangeShowSettings",null),(0,i.gn)([(0,o.watch)("state.showPreview")],g.prototype,"onChangeShowPreview",null),(0,i.gn)([(0,o.watch)("state.showSideBar")],g.prototype,"onChangeShowSideBar",null),(0,i.gn)([(0,o.watch)("state.view")],g.prototype,"onChangeView",null),(0,i.gn)([(0,o.watch)("state.tileSize")],g.prototype,"onChangeTileSize",null),(0,i.gn)([(0,o.watch)("state.showFavorites")],g.prototype,"onChangeShowFavorites",null),(0,i.gn)([(0,o.watch)(":dblclickItem.filebrowser")],g.prototype,"onItemDblClick",null),(0,i.gn)([(0,o.watch)(":clickItem.filebrowser")],g.prototype,"onItemClick",null),(0,i.gn)([(0,o.watch)(":togglePreview.filebrowser")],g.prototype,"onTogglePreview",null),(0,i.gn)([(0,o.watch)(":toggleFavoriteItem")],g.prototype,"onToggleFavoriteItem",null),(0,i.gn)([(0,o.watch)(":openFolder")],g.prototype,"onFolderClick",null),g=(0,i.gn)([o.component],g)},96945(t,e,s){"use strict";s.d(e,{o(){return c}});var i=s(97582),n=s(91630),o=s(50526),r=s(98478),a=s(44913),h=(s(52378),s(62499)),l=s(87695);let c=class t extends n.q{className(){return"UIPreview"}addResize(){h.c.remove(this),h.c.install(this,screen.width>450?"left":"top")}render(){return'<div>\n\t\t\t\t<div class="&__image"></div>\n\t\t\t\t<div class="&__info"></div>\n\t\t\t\t<div class="&__loader"></div>\n\t\t\t\t<div class="&__empty-message">~Select image~</div>\n\t\t\t</div>'}constructor(t,e){super(t),this.state=e,this.lastLoadPromise=null,this.onChangeMetaInfo()}afterSetMod(t,e){"hidden"===t&&!1===e&&this.onChangeMetaInfo(),super.afterSetMod(t,e)}onChangeMetaInfo(){if(this.getMod("hidden"))return;const{metaInfo:t}=this.state;this.setMod("empty",!t);const e=this.getElm("info");a.i.detach(e);const s=this.getElm("image");(0,r.css)(s,{backgroundImage:null}),t&&(this.setMod("is-file",!1===t.isImage).setMod("type",t.type??"file"),l.u.prototype.setElementValue.call(this,"name",t.file),l.u.prototype.setElementValue.call(this,"time",t.time),l.u.prototype.setElementValue.call(this,"filesize",t.size),this.setMod("loading",!0),this.lastLoadPromise?.rejectCallback(),this.lastLoadPromise=(0,r.loadImage)(t.isImage?t.fileURL:t.imageURL,this.j),this.lastLoadPromise.then((t=>{const e=this.getElm("image");t&&(0,r.css)(e,{backgroundImage:`url(${t.src})`})})).finally((()=>{this.setMod("loading",!1)})).catch((()=>{})))}};(0,i.gn)([(0,o.hook)("ready"),(0,o.watch)(":resize",{context:window}),(0,o.debounce)()],c.prototype,"addResize",null),(0,i.gn)([(0,o.watch)("state.metaInfo")],c.prototype,"onChangeMetaInfo",null),c=(0,i.gn)([o.component],c)},22840(t,e,s){"use strict";s.d(e,{u(){return r}});var i=s(97582),n=s(51273),o=s(50526);let r=class t extends n.k{className(){return"UIProgress"}constructor(t,e){super(t),this.state=e,this.onProgress()}onProgress(){this.state.progress?this.show():this.hide(),this.progress(this.state.progress)}hide(){return this.setMod("hidden",!0),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",98>t||this.j.async.setTimeout((()=>{this.hide()}),{label:"progress",timeout:300}),this}show(){return this.setMod("hidden",!1),this}};(0,i.gn)([(0,o.watch)("state.progress")],r.prototype,"onProgress",null),r=(0,i.gn)([o.component],r)},62983(t,e,s){"use strict";s.d(e,{r(){return r}});var i=s(97582),n=s(75004),o=s(50526);s(52378);let r=class t extends n.qe{className(){return"UIBrowserSettings"}render(){return`<div>\n\t\t\t<div class="${this.getFullElName("close")}">${n.JO.get("cancel")}</div>\n\t\t\t<div class="${this.getFullElName("title")}">${this.j.i18n("Settings")}</div>\n\t\t\t<div class="${this.getFullElName("options")}"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}afterSetMod(t,e){"hidden"===t&&!1===e&&this.generateSettings(),super.afterSetMod(t,e)}constructor(t,e){super(t),this.state=e;const s=this.getElm("close");t.e.on(s,"click",(()=>{this.state.showSettings=!1}))}onChangeView(){const t=this.getElm("tile-size");t&&(t.style.display="tiles"===this.state.view?"block":"none")}generateSettings(){this.clear();const{j:t}=this;this.append([new n.BO(t,{label:"Theme",name:"theme",value:this.state.theme,radio:!0,options:[{value:"default",text:"Light"},{value:"dark",text:"Dark"}],onChange:t=>{this.state.theme="default"===this.state.theme||"dark"===this.state.theme?t[0].value:"default"}}),new n.BO(t,{label:"Show favorites",name:"showFavorites",value:this.state.showFavorites,radio:!0,options:[{value:!0,text:"Show"},{value:!1,text:"Hide"}],onChange:t=>{this.state.showFavorites=t[0].value}}),new n.BO(t,{label:"View",name:"view",value:this.state.view,radio:!0,options:[{value:"tiles",text:"Tiles"},{value:"list",text:"List"},{value:"compact",text:"Compact"}],onChange:t=>{this.state.view=t[0].value}}),new n.BO(t,{label:"Folders position",name:"foldersPosition",value:this.state.foldersPosition,radio:!0,options:[{value:"top",text:"Top"},{value:"bottom",text:"Bottom"},{value:"default",text:"Default"}],onChange:t=>{this.state.foldersPosition=t[0].value}}),new n.Cj(t,{label:"Sort by",name:"sort-by",value:this.state.sortBy,options:[{value:"changed-asc",text:t.i18n("Sort by changed")+"(⬆)"},{value:"changed-desc",text:t.i18n("Sort by changed")+"(⬇)"},{value:"name-asc",text:t.i18n("Sort by name")+"(⬆)"},{value:"name-desc",text:t.i18n("Sort by name")+"(⬇)"},{value:"size-asc",text:t.i18n("Sort by size")+"(⬆)"},{value:"size-desc",text:t.i18n("Sort by size")+"(⬇)"}],onChange:t=>{this.state.sortBy=t}}),new n.Cj(t,{label:"Tile size",name:"tile-size",value:this.state.tileSize,options:[{value:"xsmall",text:"Extra small"},{value:"small",text:"Small"},{value:"default",text:"Default"},{value:"large",text:"Large"},{value:"xlarge",text:"Extra large"}],onChange:t=>{this.state.tileSize=t}})]),this.onChangeView()}};(0,i.gn)([(0,o.watch)("state.view")],r.prototype,"onChangeView",null),r=(0,i.gn)([o.component],r)},68787(t,e,s){"use strict";s.d(e,{o(){return a}});var i=s(97582),n=s(91630),o=s(50526),r=(s(52378),s(62499));let a=class t extends n.q{className(){return"UISidebar"}render(){return"<div>\n\t\t\t<div class='&__hide-btn'>*angle-left*</div>\n\t\t\t<div class='&__favorites'>*heart* ~Favorites~</div>\n\t\t\t<div class='&__box'></div>\n\t\t</div>"}appendChildToContainer(t){this.getElm("box").appendChild(t)}addResize(){r.c.remove(this),r.c.install(this,screen.width>450?"right":"bottom")}constructor(t,e,s){super(t,e),this.state=s,this.onChangeFavorites()}onChangeFavorites(){this.setMod("has-favorites",!!this.state.favorites.length)}onClickHideButton(){return this.state.showSideBar=!this.state.showSideBar,!1}onClickFavorites(){return this.state.elements=this.state.favorites,!1}};(0,i.gn)([(0,o.hook)("ready"),(0,o.watch)(":resize",{context:window}),(0,o.debounce)()],a.prototype,"addResize",null),(0,i.gn)([(0,o.watch)("state.favorites")],a.prototype,"onChangeFavorites",null),(0,i.gn)([(0,o.watch)("hide-btn:click")],a.prototype,"onClickHideButton",null),(0,i.gn)([(0,o.watch)("favorites:click")],a.prototype,"onClickFavorites",null),a=(0,i.gn)([o.component],a)},21596(t,e,s){"use strict";s.d(e,{f(){return a}});var i=s(97582),n=s(84789),o=s(94707),r=(s(52378),s(91919));let a=class t extends n.u{className(){return"UIBrowserSource"}render(){return'<div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__tree"></div>\n\t\t</div>'}constructor(t,e){super(t,e),this.data=e,this.tree=new r.v(this.j,this.data.children),this.syncMod=!0,this.getElm("name").innerText=e.title||e.name,this.getElm("tree").appendChild(this.tree.container),t.e.on(this.container,"contextmenu",(s=>t.e.fire("contextmenuSource.filebrowser",e,s)))}};a=(0,i.gn)([o.w],a)},93582(t,e,s){"use strict";s.d(e,{L(){return a}});var i=s(97582),n=s(75004),o=s(50526),r=s(21596);let a=class t extends n.qe{constructor(){super(...arguments),this.syncMod=!0}className(){return"UIBrowserSources"}build(t){this.clear(),t.forEach((t=>{this.append(new r.f(this.jodit,t))}))}};a=(0,i.gn)([o.component],a)},67775(t,e,s){"use strict";s.d(e,{s(){return r}});var i=s(97582),n=s(75004),o=s(50526);s(52378);let r=class t extends n.u1{className(){return"UIBrowserStatusBar"}render(){return"<div>\n\t\t\t<div class='&__slot-left'></div>\n\t\t\t<div class='&__slot-center'></div>\n\t\t\t<div class='&__slot-right'></div>\n\t\t</div>"}value(t,e="left"){return this.getElm("slot-"+e).innerText=t,this}};r=(0,i.gn)([o.component],r)},91919(t,e,s){"use strict";s.d(e,{v(){return h}});var i,n=s(97582),o=s(91630),r=s(94707),a=s(9890);let h=i=class t extends o.q{className(){return"UITree"}constructor(t,e){super(t),this.syncMod=!0,this.build(e)}build(t){this.clear(),t.forEach((t=>{const e=new a.D(this.jodit,t);this.append(e),t.isActive&&e.setMod("active",!0),t.children.length&&this.append(new i(this.jodit,t.children))}))}};h=i=(0,n.gn)([r.w],h)},72618(t,e,s){"use strict";s.d(e,{d(){return d}});var i,n=s(97582),o=s(91630),r=s(50526),a=s(45545),h=s(90174),l=s(81766),c=s(87695);let d=i=class t extends o.q{className(){return"UIVirtualScroll"}render(){return"<div>\n\t\t\t\t<div class=\"&__empty-message\">~There are no files~</div>\n\t\t\t\t<div class='&__loader'></div>\n\t\t\t\t<div class='&__drag-area'>~Drop image~</div>\n\t\t\t</div>"}constructor(t,e){super(t),this.stateManager=e,this.syncMod=!0,this.addItemsSelector()}reconcile(t){const e=this.elements.findIndex(((e,s)=>!t[s]||e.item.uniqueHashKey!==a.Z.create(t[s]).uniqueHashKey));if(e>-1){for(let t=e;this.elements.length>t;t+=1)this.elements[t].destruct();this.elements.length=e}return e}build(t){const e=this.reconcile(t);t.slice(e>-1?e:this.elements.length).forEach((t=>{const e=new c.u(this.jodit,t);Object.keys(this.mods).forEach((t=>{e.setMod(t,this.mods[t])})),this.append(e)})),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.j.o.pixelOffsetLoadNewChunk>this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)&&this.j.loadingManager.loadItemsChunk()}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){l.r.install(this)}static intersectRect(t,e){return!(e.left>t.left+t.width||t.left>e.left+e.width||e.top>t.top+t.height||t.top>e.top+e.height)}onSelectItems(t){const e=[];this.elements.forEach((s=>{const n=(0,h.F)(s.container);i.intersectRect(n,t)&&e.push(s.item)})),this.stateManager.state.activeElements=e}};(0,n.gn)([(0,r.watch)(":afterResize"),(0,r.watch)(":resize"),(0,r.watch)("container:scroll"),(0,r.throttle)()],d.prototype,"onScrollLoadChunk",null),(0,n.gn)([(0,r.watch)("container:dragover")],d.prototype,"onDragOver",null),(0,n.gn)([(0,r.watch)(["container:dragleave","container:drop"])],d.prototype,"onDragLeave",null),d=i=(0,n.gn)([r.component],d)},62499(t,e,s){"use strict";s.d(e,{c(){return o}});var i=s(18002),n=s(44913);class o{static remove(t){(0,i.i)(t.container,{width:null,height:null}),t.container.classList.remove("jodit-ui-resize"),n.i.safeRemove(t.container.querySelector(".jodit-ui-resize__handle"))}static install(t,e){t.container.classList.add("jodit-ui-resize"),"static"===(0,i.i)(t.container,"position")&&(0,i.i)(t.container,"position","relative");const s=t.j.c.div("jodit-ui-resize__handle");s.classList.add("jodit-ui-resize__handle_type_"+e),t.container.appendChild(s),t.j.e.on(s,"mousedown touchstart",this.onStartResize.bind(this,t,e))}static onStartResize(t,e,s){const i=t.j.async.throttle(this.onResize.bind(this,t,{x:s.clientX,y:s.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight,direction:e}),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",i).one(t.j.ow,"mouseup touchend",this.onEndResize.bind(this,t,i))}static onResize(t,e,s){const n=["left","right"].includes(e.direction),o=t.container.parentElement;if(!o)return;let r;r=n?(e.w+(s.clientX-e.x)*("right"===e.direction?1:-1))/o.offsetWidth:(e.h+(s.clientY-e.y)*("top"===e.direction?1:-1))/o.offsetHeight,(0,i.i)(t.container,n?"width":"height",100*r+"%")}static onEndResize(t,e,s){t.j.e.off(t.j.ow,"mousemove touchmove",e),t.j.unlock()}}},81766(t,e,s){"use strict";s.d(e,{r(){return o}});var i=s(44913),n=s(18002);class o{static remove(t){i.i.safeRemove(t.container.querySelector(".jodit-ui-select-items")),t.j.e.off(t.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(t){const e=t.j.c.div("jodit-ui-select-items");t.j.e.on(t.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,t,e))}static onStartSelect(t,e,s){if(s.target!==t.container)return;(0,n.i)(e,{width:0,height:0}),t.container.appendChild(e);const i={x:s.clientX,y:s.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight},o=t.j.async.throttle(this.onSelect.bind(this,t,e,i),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",o).one(t.j.ow,"mouseup touchend",this.onEndSelect.bind(this,t,e,o)),t.onSelectItems({left:i.x,top:i.y,width:0,height:0})}static onSelect(t,e,s,i){const o={left:s.x>i.clientX?i.clientX:s.x,top:s.y>i.clientY?i.clientY:s.y,width:Math.abs(s.x-i.clientX),height:Math.abs(s.y-i.clientY)};(0,n.i)(e,o),t.onSelectItems(o)}static onEndSelect(t,e,s,n){i.i.safeRemove(e),t.j.e.off(t.j.ow,"mousemove touchmove",s),t.j.unlock()}}}},t=>t(t.s=48531)])}));
10
+ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[524],{82942(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},19327(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},59239(t){t.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},46567(t,e,s){"use strict";s.d(e,{lf(){return i.l}}),s(71917);var i=s(87759)},68813(t,e,s){"use strict";s.d(e,{X(){return _}});var i=s(97582),n=(s(68349),s(95582)),o=s(8079),r=s(2932),a=s(50526),h=s(11612),l=s(92803),c=s(3028),d=s(46567),u=s(77628),g=s(53852),m=s(19564),p=s(96123),f=s(83568),v=s(65669),w=s(22840),y=s(93469),C=s(9581),b=s(63052),S=s(70467),x=s(41424),I=s(48086);let _=class t extends r.Vq{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,e=!(t instanceof Error)){(0,n.isAbort)(t)||(!h.IS_PROD&&(0,n.isString)(t),this.message.message((0,n.isString)(t)?t:t.message,e?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new w.u(this,this.stateManager.state)}constructor(t){super((0,n.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:t?.toolbarButtons||u.Config.defaultOptions.filebrowser.buttons,buttons:g.y.atom(["filebrowser.settings","fullsize","dialog.close"])}),u.Config.defaultOptions.filebrowser)),this.dataProvider=(0,c.S)(this,this.options),this.state=(0,o.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1}),this.persistent=new y.h(this,this.state),this.loadingManager=new I.l(this,this.state),this.stateManager=new f.O(this.state),this.historyManager=new C.E(this,this.state),this.contextMenuManager=new b.z(this),this.header=new v.C(this,this.options,this.stateManager),this.panel=new p.G(this,this.stateManager),this.files=this.panel,this.tree=this.panel,m.V.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress((t=>{0===t&&(t=30),this.state.progress=t})),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),g.y.prototype.afterInitHook.call(this)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,e){return this.state.onlyImages=!!e,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,n.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){const{currentPath:t,currentSource:e}=this.state;this.uploader.setPath(t),this.uploader.setSource(e)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=e=>{this.close(),t(e)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){const{activeElement:e}=this.od;if(!this.state.activeElements.length||!e||!o.Dom.isOrContains(this.panel.items.container,e))return;const s=this.state.elements;switch(t.key){case h.KEY_ENTER:return this.onChooseItems();case h.KEY_DELETE:return this.onFileRemove();case h.KEY_RIGHT:case h.KEY_LEFT:case h.KEY_DOWN:case h.KEY_UP:{const e=t.key===h.KEY_RIGHT||t.key===h.KEY_DOWN,i=this.state.lastSelectedIndex;let n;if([h.KEY_RIGHT,h.KEY_LEFT].includes(t.key))n=e?s[i+1]?i+1:0:s[i-1]?i-1:s.length-1;else{const{countInRow:t}=this.panel;n=Math.round(((i+1)/t+(e?1:-1))*t-1)}return s[n]&&this.stateManager.addActive(s[n],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",(t=>{t&&this.__itemsRemove(this.state.activeElements)})).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();const e=[];return t.forEach((t=>{e.push("folder"===t.type?this.__folderRemove((0,S.C)(t.path),t.name??"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))})),this.state.activeElements.forEach((t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)})),this.state.activeElements=[],Promise.allSettled(e).then((()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()])))}__removeFile(t,e){return this.dataProvider.fileRemove(this.state.currentPath,t,e).then((e=>{this.status(e||this.i18n('File "%s" was deleted',t),!0)})).catch(this.status)}__folderRemove(t,e,s){return this.dataProvider.folderRemove(t,e,s).then((i=>{this.status(i||this.i18n('Folder "%s" was deleted',e),!0),this.state.currentPath===t&&(this.state.currentPath=(0,S.C)(t),this.state.currentSource=s)})).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){const[t]=this.state.activeElements;l.r.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",(e=>{if(!(0,n.isValidName)(e)||e===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,S.C)(t.path),t.name,e,t.sourceName).then((s=>{this.state.activeElements=[],this.status(s,!0),this.state.currentPath=(0,S.C)(t.path)+"/"+e,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()})).catch(this.status)}),this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",(e=>{e&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])})).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",(e=>{const s=t.path||"/";this.dataProvider.createFolder(e,t.path||"/",t.sourceName).then((()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===s?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=s),this.historyManager.updateCurrent()}),this.status)}),this.i18n("type name")).bindDestruct(this)}onFileRename(t){const e=t.file||t.name||"";1===this.state.activeElements.length&&e&&this.prompt("Enter new name","Rename",(t=>{if(!(0,n.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,e,t,this.state.currentSource).then((t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()})).catch(this.status)}),this.i18n("type name"),e).bindDestruct(this)}onChooseItems(){const t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type)return this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,void this.e.fire("afterOpenFolder.filebrowser");this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){x.m.open(this,t,this.state.elements)}initUploader(){const t=this,e=(0,n.ConfigProto)(t.o.uploader||{},u.Config.defaultOptions.uploader),s=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",e),t.uploader.bind(t.panel.container,s,t.status),t.e.on("bindUploader.filebrowser",(e=>{t.uploader.bind(e,s,t.status)}))}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,n.ConfigProto)(this.options[t],this.o.ajax))}))}};(0,i.gn)([a.autobind],_.prototype,"status",null),(0,i.gn)([a.cache],_.prototype,"progressbar",null),(0,i.gn)([(0,a.watch)(":resize",{context:window})],_.prototype,"onResizeWindow",null),(0,i.gn)([(0,a.watch)(["state.currentPath","state.currentSource"])],_.prototype,"onChangePath",null),(0,i.gn)([(0,a.watch)("state.theme")],_.prototype,"onChangeTheme",null),(0,i.gn)([(0,a.watch)(":toggleSettings.filebrowser")],_.prototype,"onToggleSettings",null),(0,i.gn)([a.autobind],_.prototype,"onKeyPress",null),(0,i.gn)([a.autobind],_.prototype,"removeGlobalListeners",null),(0,i.gn)([(0,a.watch)(":fileRemove.filebrowser")],_.prototype,"onFileRemove",null),(0,i.gn)([(0,a.watch)(":edit.filebrowser")],_.prototype,"onFileEdit",null),(0,i.gn)([(0,a.watch)(":folderRename.filebrowser")],_.prototype,"onFolderRename",null),(0,i.gn)([(0,a.watch)(":folderRemove.filebrowser")],_.prototype,"onFolderRemove",null),(0,i.gn)([(0,a.watch)(":folderCreate.filebrowser")],_.prototype,"onFolderCreate",null),(0,i.gn)([(0,a.watch)(":fileRename.filebrowser")],_.prototype,"onFileRename",null),(0,i.gn)([(0,a.watch)(":select.filebrowser")],_.prototype,"onChooseItems",null),(0,i.gn)([(0,a.watch)(":openLightBox.filebrowser")],_.prototype,"onOpenLightBox",null),_=(0,i.gn)([a.component,(0,a.derive)(d.lf)],_),Object.defineProperty(g.y.modules,"FileBrowserPro",{value:_,writable:!1,enumerable:!0,configurable:!0})},99993(t,e,s){"use strict";var i=s(77628);(0,s(81160).xl)(s(57591));const n=i.Config.prototype.controls.filebrowser;n.settings={icon:"settings",tooltip:"Settings",exec(t){(t.parent??t).e.fire("toggleSettings.filebrowser")}},n.home={icon:"home",tooltip:"Home",exec(t){t.e.fire("goHome.filebrowser")}},n.preview={icon:"eye",tooltip:"Preview",isDisabled:t=>0===t.state.activeElements.length,exec(t){t.e.fire("togglePreview.filebrowser")}},n.next={icon:"angle-right",tooltip:"History next",isDisabled(t){return!t.historyManager.canNext()},exec(t){t.historyManager.next()}},n.previous={icon:"angle-left",tooltip:"History previous",isDisabled(t){return!t.historyManager.canPrevious()},exec(t){t.historyManager.previous()}},n["new-folder"]={icon:"new-folder",exec(t){t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(i.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="})},48531(t,e,s){"use strict";s.r(e),s.d(e,{finder(){return r}});var i=s(7324),n=s(68813),o=s(53852);s(99993);class r extends i.S{constructor(){super(...arguments),this.hasStyle=!o.y.fatMode}afterInit(t){t.e.on("getInstanceFileBrowser",(t=>(this.__instance||(this.__instance=new n.X(t)),this.__instance)))}beforeDestruct(t){t.e.off("getInstanceFileBrowser"),this.__instance?.destruct()}}r.requires=["license"],o.y.plugins.add("finder",r)},63052(t,e,s){"use strict";s.d(e,{z(){return a}});var i=s(97582),n=s(3028),o=s(28702),r=s(50526);let a=class t extends o.H{className(){return"ContextMenuManager"}onFolderContext(t,e){return this.buildContextItemMenu(this.getFolderContextActions(t),e),!1}onItemContext(t,e,s){return this.buildContextItemMenu(this.getItemContextActions(t),s),!1}onSourceContext(t,e){return this.buildContextItemMenu(this.getSourceContextActions(t),e),!1}buildContextItemMenu(t,e){if(!this.j.o.contextMenu)return;const s=(0,n.L)(this.j).setMod("theme",this.j.state.theme);s.show(e.clientX,e.clientY,t.filter((t=>t&&!1!==t.enabled))),this.j.e.on(this.j,"afterClose",(()=>{s.isOpened&&s.close()}))}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});const e=this.j.options,s=this.j.dataProvider,i=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&e.editImage&&i&&(s.canI("ImageResize")||s.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:s.canI("FileRename")&&i,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:s.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!(!t.isImage&&"file"!==t.type)&&e.preview&&i,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){const e=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:e.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:e.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:e.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}};(0,i.gn)([(0,r.watch)(":contextmenuFolder.filebrowser")],a.prototype,"onFolderContext",null),(0,i.gn)([(0,r.watch)(":contextmenuItem.filebrowser")],a.prototype,"onItemContext",null),(0,i.gn)([(0,r.watch)(":contextmenuSource.filebrowser")],a.prototype,"onSourceContext",null),a=(0,i.gn)([r.component],a)},70467(t,e,s){"use strict";s.d(e,{C(){return i}});const i=t=>{const e=t.split("/").filter((t=>t.length));return e.pop(),e.join("/")||"/"}},9581(t,e,s){"use strict";s.d(e,{E(){return a}});var i=s(97582),n=s(16479),o=s(28702),r=s(50526);let a=class t extends o.H{className(){return"HistoryManager"}constructor(t,e){super(t),this.state=e,this.history=[],this.historyIndex=0}canNext(){return this.history.length-1>this.historyIndex}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:e}=this;const s=this.history[e];if(s&&s.currentSource===t.currentSource&&s.currentPath===t.currentPath)return;let i=[...this.history];i.length-1!==e&&(i=i.slice(0,e+1)),i.push(t),s&&(e+=1),this.history=i,this.historyIndex=e}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:(0,n.V8)(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){const{tree:t,elements:e,currentSource:s,currentPath:i}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...e],this.state.tree=[...t],this.state.currentSource=s,this.state.currentPath=i,this.j.e.fire("changeSelection")}};(0,i.gn)([(0,r.watch)(["state.elements","state.tree"])],a.prototype,"updateCurrent",null),(0,i.gn)([(0,r.watch)(":goHome.filebrowser")],a.prototype,"onHome",null),(0,i.gn)([(0,r.watch)(":afterOpenFolder.filebrowser")],a.prototype,"onOpenFolder",null),a=(0,i.gn)([r.component],a)},48086(t,e,s){"use strict";s.d(e,{l(){return r}});var i=s(97582),n=s(22562),o=s(50526);let r=class t extends n.Hr{className(){return"LoadingManager"}constructor(t,e){super(t),this.state=e,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;const{currentPath:t,currentSource:e}=this.state;try{const s=await this.j.dataProvider.tree(t,e);this.j.stateManager.fillTreeForPath(s,t),this.state.sources=s}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;const{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;const{items:e,loadedTotal:s}=await a(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=e,this.stopLoadingParts=this.countInOneChunk>s,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart)this.__callQueueCount+=1;else{if(!this.stopLoadingParts){this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;const{items:e,loadedTotal:s}=await a(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=this.countInOneChunk>s,e.length&&(this.state.elements=this.state.elements.concat(e))}catch(t){this.j.status(t)}return this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0?(this.__callQueueCount-=1,this.__loadItemsChunk(t)):void 0}this.__callQueueCount=0}}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}};function a(t,e,s,i){const{currentPath:n,currentSource:o,sortBy:r,withFolders:a,foldersPosition:h,onlyImages:l,filterWord:c}=t;return e.itemsEx(n,o,{offset:s,limit:i,sortBy:r,withFolders:a,foldersPosition:h,onlyImages:l,filterWord:c})}(0,i.gn)([(0,o.watch)(":update.filebrowser")],r.prototype,"onUpdateFileBrowser",null),(0,i.gn)([(0,o.watch)(["state.currentPath","state.currentSource"]),(0,o.debounce)((t=>({timeout:t.defaultTimeout,promisify:!0})))],r.prototype,"loadFolders",null),(0,i.gn)([(0,o.watch)(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),(0,o.debounce)((t=>({timeout:t.defaultTimeout,promisify:!0})))],r.prototype,"loadItems",null),(0,i.gn)([(0,o.debounce)((t=>({timeout:t.defaultTimeout,promisify:!0})))],r.prototype,"loadItemsChunk",null),r=(0,i.gn)([o.component],r)},93469(t,e,s){"use strict";s.d(e,{h(){return a}});var i=s(97582),n=s(22562),o=s(50526),r=s(45545);let a=class t extends n.Hr{className(){return"PersistentStore"}constructor(t,e){super(t),this.state=e,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.view=this.state.view}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map((t=>t instanceof r.Z?t:r.Z.create(t))),this.state.view=this.view,this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}};(0,i.gn)([o.persistent],a.prototype,"theme",void 0),(0,i.gn)([o.persistent],a.prototype,"sortBy",void 0),(0,i.gn)([o.persistent],a.prototype,"view",void 0),(0,i.gn)([o.persistent],a.prototype,"foldersPosition",void 0),(0,i.gn)([o.persistent],a.prototype,"tileSize",void 0),(0,i.gn)([o.persistent],a.prototype,"favorites",void 0),(0,i.gn)([o.persistent],a.prototype,"showSideBar",void 0),(0,i.gn)([o.persistent],a.prototype,"showPreview",void 0),(0,i.gn)([o.persistent],a.prototype,"showFavorites",void 0),(0,i.gn)([(0,o.watch)("state.theme")],a.prototype,"onChangeThemeSetField",null),(0,i.gn)([(0,o.watch)("state.view")],a.prototype,"onChangeView",null),(0,i.gn)([(0,o.watch)("state.sortBy")],a.prototype,"onChangeSortBy",null),(0,i.gn)([(0,o.watch)("state.tileSize")],a.prototype,"onChangeTileSize",null),(0,i.gn)([(0,o.watch)("state.favorites")],a.prototype,"onChangeFavorites",null),(0,i.gn)([(0,o.watch)("state.showSideBar")],a.prototype,"onChangeShowSideBar",null),(0,i.gn)([(0,o.watch)("state.showPreview")],a.prototype,"onChangeShowPreview",null),(0,i.gn)([(0,o.watch)("state.showFavorites")],a.prototype,"onChangeShowFavorites",null),(0,i.gn)([(0,o.watch)("state.foldersPosition")],a.prototype,"onChangeFoldersPosition",null),a=(0,i.gn)([o.component],a)},83568(t,e,s){"use strict";s.d(e,{O(){return o}});var i=s(97582),n=s(50526);class o{constructor(t){this.state=t}getIndex(t,e=this.state.elements){return e.findIndex((e=>e.uniqueHashKey===t.uniqueHashKey))}isActive(t){return!!this.state.activeElements.find((e=>e.uniqueHashKey===t.uniqueHashKey))}isFavorite(t){return!!this.state.favorites.find((e=>e.uniqueHashKey===t.uniqueHashKey))}addActive(t,e){this.state.metaInfo=t,this.state.info=t.file??"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=e?[...this.state.activeElements,t]:[t]}callSelectHandler(){const t=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:t.map((t=>t.fileURL)),isImages:t.map((t=>!!t.isImage))})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){const e=this.getIndex(t,this.state.favorites),s=[...this.state.favorites];-1===e?s.push(t):s.splice(e,1),this.state.favorites=s}fillTreeForPath(t,e){this.state.tree.length&&e&&"/"!==e?(this.removeActive(this.state.tree),t.forEach((t=>{let s=r(this.state.tree,t.name);s||(s=h(t),this.state.tree.push(s)),s.isActive=!0;const i=((t,e)=>t.split("/").reduce(((t,e)=>t&&r(t.children,e)),e))(e,s);i&&(i.isActive=!0,i.children=a(t.folders).map((s=>l(s,e+"/"+s,t.name))))})),this.state.tree=[...this.state.tree]):this.state.tree=t.map(h)}removeActive(t){t.forEach((t=>{t.isActive=!1,this.removeActive(t.children)}))}get isFavoriteItems(){return this.state.favorites===this.state.elements}}function r(t,e){return t.find((t=>t.name===e))??null}function a(t){return t.filter((t=>"."!==t&&".."!==t))}function h(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:a(t.folders).map((e=>l(e,e,t.name)))}}function l(t,e,s){return{type:"directory",name:t,path:e,sourceName:s,children:[]}}(0,i.gn)([n.autobind],o.prototype,"getIndex",null),(0,i.gn)([n.autobind],o.prototype,"isActive",null),(0,i.gn)([n.autobind],o.prototype,"isFavorite",null)},57591(t,e,s){"use strict";s.r(e),s.d(e,{ru(){return i}});const i=s(11937)},11937(t){"use strict";t.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"}},68349(t,e,s){"use strict";var i=s(75004),n=s(82942),o=s(19327),r=s(59239);i.JO.set("heart",n+""),i.JO.set("home",o+""),i.JO.set("new-folder",r+"")},9890(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(97582),n=s(75004),o=s(94707);s(52378);let r=class t extends n.u1{className(){return"UIBrowserFolder"}render(){return'<div>\n\t\t\t<div class="&__icon">\n\t\t\t\t<div class=\'&__loader\'></div>\n\t\t\t\t<div class="&__icon-wrapper">\n\t\t\t\t\t*folder*\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__arrow">*angle-right*</div>\n\t\t</div>'}constructor(t,e){super(t),this.item=e,this.syncMod=!0,this.getElm("name").innerText=e.name,t.e.on(this.container,"click",(()=>(this.getMod("active")||this.setMod("loading",!0),t.e.fire("openFolder",e)))).on(this.container,"contextmenu",(s=>t.e.fire("contextmenuFolder.filebrowser",e,s)))}};r=(0,i.gn)([o.w],r)},65669(t,e,s){"use strict";s.d(e,{C(){return h}});var i=s(97582),n=s(75004),o=s(50526),r=s(45429),a=s(4682);let h=class t extends n.qe{className(){return"UIBrowserHeader"}constructor(t,e,s){super(t),this.options=e,this.stateManager=s,this.syncMod=!0,this.toolbar=(0,r.RP)(this.j),this.filter=new n.u3(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:t=>{this.stateManager.setFilter(t)}}),this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}__getButtons(){return(this.options.toolbarButtons??[]).filter((t=>{if(!(0,a.H)(t))return!0;switch(t){case"filebrowser.edit":return this.j.dataProvider.canI("ImageResize")||this.j.dataProvider.canI("ImageCrop");case"filebrowser.new-folder":return this.j.dataProvider.canI("FolderCreate");case"filebrowser.upload":return this.j.dataProvider.canI("FileUpload");case"filebrowser.remove":return this.j.dataProvider.canI("FileRemove")}return!0}))}};h=(0,i.gn)([o.component],h)},87695(t,e,s){"use strict";s.d(e,{u(){return l}});var i=s(97582),n=s(75004),o=s(50526),r=s(45545),a=s(8079),h=s(95582);s(52378);let l=class t extends n.u1{className(){return"UIBrowserItem"}constructor(t,e){super(t),this.item=r.Z.create(e),t.e.on(this.container,"click contextmenu dblclick",(e=>(t.e.fire(e.type+"Item.filebrowser",this.item,(0,h.ctrlKey)(e)||e.shiftKey,e),!1))),this.update()}render(){return"<div tabindex='-1'>\n\t\t\t<div class='&__image'></div>\n\t\t\t<div class='&__info'></div>\n\t\t\t<div class='&__heart'>*heart*</div>\n\t\t</div>"}onClickFavorite(){return this.bubble((t=>{this.jodit.e.fire(t,"toggleFavoriteItem",this.item)})),!1}onAction(t){return this.jodit.e.fire(t.type+"Item.filebrowser",this.item,(0,h.ctrlKey)(t)||t.shiftKey,t),!1}update(){const t=this.getElm("image");(0,h.css)(t,"backgroundImage",`url(${encodeURI(this.item.imageURL)})`);const{type:e,file:s,time:i,size:n}=this.item;this.setMod("is-file",!1===this.item.isImage).setMod("type",e??"file").setElementValue("name",s).setElementValue("time",i).setElementValue("filesize",n),(0,h.attr)(this.container,"title","folder"!==e?`${s} ${i} ${n}`:s),super.update()}setElementValue(t,e){const s=this.getFullElName(t);let i=this.getElm(t);if(!e)return i&&a.Dom.safeRemove(i),this;if(!i){const t=this.getElm("info");i=this.j.create.div(s),t.appendChild(i)}return i.innerText=e,this}};(0,i.gn)([(0,o.watch)("heart:click")],l.prototype,"onClickFavorite",null),(0,i.gn)([(0,o.watch)(["container:click","container:contextmenu","container:dblclick"])],l.prototype,"onAction",null),l=(0,i.gn)([o.component],l)},41424(t,e,s){"use strict";s.d(e,{m(){return l}});var i,n=s(97582),o=s(8079),r=s(50526),a=s(95582),h=s(11612);s(52378);let l=i=class t extends o.UIElement{className(){return"UILightBox"}render(){return"<div>\n\t\t\t<div class='&__previous'>*angle-left*</div>\n\t\t\t<div class='&__preview'></div>\n\t\t\t<div class='&__loader'></div>\n\t\t\t<div class='&__next'>*angle-right*</div>\n\t\t</div>"}constructor(t,e,s){super(t),this.current=e,this.elements=s,this.dialog=new o.Dialog;const{dialog:i}=this;i.setMod("theme",t.state.theme).toolbar.setMod("mode","header"),i.open(this),this.elements=this.elements.filter((t=>t.isImage)),i.e.on(i,"afterClose",(()=>{this.destruct()})),this.addGlobalListeners(),this.onChangeCurrent(),i.toolbar.build([{icon:"check",exec:()=>{t.stateManager.addActive(this.current,!1),t.e.fire("select.filebrowser"),i.close()}},"dialog.close"])}async onChangeCurrent(){const{current:t}=this;this.setMod("loading",!0);const e=this.getElm("preview");if(o.Dom.detach(e),(0,a.css)(e,{backgroundImage:null}),t.isImage){const s=await(0,a.loadImage)(t.fileURL,this.j);this.dialog.setPosition(),(0,a.css)(e,{width:Math.min(this.jodit.ow.innerWidth,s.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,s.naturalHeight),backgroundImage:`url(${s.src})`})}else{const s=await this.makeIframe(t.fileURL);e.appendChild(s)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(t){const e=this.j.c.element("iframe");return e.classList.add(this.getFullElName("office-iframe")),e.src=/\.pdf/.test(t)?t:this.j.o.previewOfficeURL+encodeURIComponent(t),e}onPreviousClick(){const{current:t}=this;let e=this.j.stateManager.getIndex(t,this.elements);e>0?e-=1:e=this.elements.length-1,this.current=this.elements[e]}onNextClick(){const{current:t}=this;let e=this.j.stateManager.getIndex(t,this.elements);this.elements.length-1>e?e+=1:e=0,this.current=this.elements[e]}static open(t,e,s){return new i(t,e,s)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(t){if(t.key===h.KEY_LEFT||t.key===h.KEY_RIGHT||t.key===h.KEY_SPACE)return t.key===h.KEY_LEFT?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}};(0,n.gn)([(0,r.watch)("current")],l.prototype,"onChangeCurrent",null),(0,n.gn)([(0,r.watch)("previous:click")],l.prototype,"onPreviousClick",null),(0,n.gn)([(0,r.watch)("next:click")],l.prototype,"onNextClick",null),(0,n.gn)([r.autobind],l.prototype,"onKeyPress",null),l=i=(0,n.gn)([r.component],l)},96123(t,e,s){"use strict";s.d(e,{G(){return g}});var i=s(97582),n=s(75004),o=s(50526),r=s(95582),a=s(72618),h=s(68787),l=s(62983),c=s(93582),d=s(67775),u=s(96945);let g=class t extends n.qe{className(){return"UIBrowserPanel"}get countInRow(){if("list"===this.state.view)return 1;if(!this.items.elements.length)return 1;const{container:t}=this.items.elements[0],e=(0,r.css)(t,"marginLeft");return Math.floor(this.items.container.offsetWidth/(t.offsetWidth+((0,r.isNumber)(e)?e:0)))}get countInColumn(){if(!this.items.elements.length)return 1;const{container:t}=this.items.elements[0],e=(0,r.css)(t,"marginTop");return Math.floor(this.items.container.offsetHeight/(t.offsetHeight+((0,r.isNumber)(e)?e:0)))}render(){return"<div>\n\t\t\t<div class='&__content'></div>\n\t\t\t<div class='&__footer'></div>\n\t\t</div>"}constructor(t,e){super(t),this.stateManager=e,this.syncMod=!0,this.sources=new c.L(this.j),this.sidebar=new h.o(this.jodit,[this.sources],this.stateManager.state),this.preview=new u.o(this.jodit,this.stateManager.state),this.statusbar=new d.s(this.j),this.items=new a.d(this.j,this.stateManager),this.settings=new l.r(this.jodit,this.stateManager.state),this.state=e.state,this.append(this.sidebar,"content"),this.append(this.items,"content"),this.append(this.settings,"content"),this.append(this.preview,"content"),this.append(this.statusbar,"footer"),this.onChangeElements(),this.onChangeSources(),this.onChangeView(),this.onChangeTileSize(),this.onChangeShowFavorites(),this.onChangeActiveElements(),this.onChangeFavorites(),this.onChangeShowSideBar(),this.onChangeShowSettings(),this.onChangeShowPreview(),this.onChangeTheme()}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements)}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach((t=>{t.setMod("active",!!this.stateManager.isActive(t.item))})),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach((t=>{t.setMod("favorite",!!this.stateManager.isFavorite(t.item))}))}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){const t=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;t&&((0,r.scrollIntoViewIfNeeded)(t,this.items.container,this.j.od),t.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(t,e){this.stateManager.addActive(t,e)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(t){this.stateManager.toggleFavorite(t)}onFolderClick(t){this.stateManager.state.currentSource=t.sourceName,this.stateManager.state.currentPath=t.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}};(0,i.gn)([(0,o.watch)("state.theme")],g.prototype,"onChangeTheme",null),(0,i.gn)([(0,o.watch)("state.elements")],g.prototype,"onChangeElements",null),(0,i.gn)([(0,o.watch)("state.activeElements")],g.prototype,"onChangeActiveElements",null),(0,i.gn)([(0,o.watch)(["state.favorites","state.elements"])],g.prototype,"onChangeFavorites",null),(0,i.gn)([(0,o.watch)("state.sources")],g.prototype,"onChangeSources",null),(0,i.gn)([(0,o.watch)("state.lastSelectedIndex")],g.prototype,"onChangeLastSelectedIndex",null),(0,i.gn)([(0,o.watch)("state.info")],g.prototype,"onChangeInfo",null),(0,i.gn)([(0,o.watch)(["state.currentPath","state.currentSource"])],g.prototype,"onChangePathOrSource",null),(0,i.gn)([(0,o.watch)("state.showSettings")],g.prototype,"onChangeShowSettings",null),(0,i.gn)([(0,o.watch)("state.showPreview")],g.prototype,"onChangeShowPreview",null),(0,i.gn)([(0,o.watch)("state.showSideBar")],g.prototype,"onChangeShowSideBar",null),(0,i.gn)([(0,o.watch)("state.view")],g.prototype,"onChangeView",null),(0,i.gn)([(0,o.watch)("state.tileSize")],g.prototype,"onChangeTileSize",null),(0,i.gn)([(0,o.watch)("state.showFavorites")],g.prototype,"onChangeShowFavorites",null),(0,i.gn)([(0,o.watch)(":dblclickItem.filebrowser")],g.prototype,"onItemDblClick",null),(0,i.gn)([(0,o.watch)(":clickItem.filebrowser")],g.prototype,"onItemClick",null),(0,i.gn)([(0,o.watch)(":togglePreview.filebrowser")],g.prototype,"onTogglePreview",null),(0,i.gn)([(0,o.watch)(":toggleFavoriteItem")],g.prototype,"onToggleFavoriteItem",null),(0,i.gn)([(0,o.watch)(":openFolder")],g.prototype,"onFolderClick",null),g=(0,i.gn)([o.component],g)},96945(t,e,s){"use strict";s.d(e,{o(){return c}});var i=s(97582),n=s(91630),o=s(50526),r=s(98478),a=s(44913),h=(s(52378),s(62499)),l=s(87695);let c=class t extends n.q{className(){return"UIPreview"}addResize(){h.c.remove(this),h.c.install(this,screen.width>450?"left":"top")}render(){return'<div>\n\t\t\t\t<div class="&__image"></div>\n\t\t\t\t<div class="&__info"></div>\n\t\t\t\t<div class="&__loader"></div>\n\t\t\t\t<div class="&__empty-message">~Select image~</div>\n\t\t\t</div>'}constructor(t,e){super(t),this.state=e,this.lastLoadPromise=null,this.onChangeMetaInfo()}afterSetMod(t,e){"hidden"===t&&!1===e&&this.onChangeMetaInfo(),super.afterSetMod(t,e)}onChangeMetaInfo(){if(this.getMod("hidden"))return;const{metaInfo:t}=this.state;this.setMod("empty",!t);const e=this.getElm("info");a.i.detach(e);const s=this.getElm("image");(0,r.css)(s,{backgroundImage:null}),t&&(this.setMod("is-file",!1===t.isImage).setMod("type",t.type??"file"),l.u.prototype.setElementValue.call(this,"name",t.file),l.u.prototype.setElementValue.call(this,"time",t.time),l.u.prototype.setElementValue.call(this,"filesize",t.size),this.setMod("loading",!0),this.lastLoadPromise?.rejectCallback(),this.lastLoadPromise=(0,r.loadImage)(t.isImage?t.fileURL:t.imageURL,this.j),this.lastLoadPromise.then((t=>{const e=this.getElm("image");t&&(0,r.css)(e,{backgroundImage:`url(${t.src})`})})).finally((()=>{this.setMod("loading",!1)})).catch((()=>{})))}};(0,i.gn)([(0,o.hook)("ready"),(0,o.watch)(":resize",{context:window}),(0,o.debounce)()],c.prototype,"addResize",null),(0,i.gn)([(0,o.watch)("state.metaInfo")],c.prototype,"onChangeMetaInfo",null),c=(0,i.gn)([o.component],c)},22840(t,e,s){"use strict";s.d(e,{u(){return r}});var i=s(97582),n=s(51273),o=s(50526);let r=class t extends n.k{className(){return"UIProgress"}constructor(t,e){super(t),this.state=e,this.onProgress()}onProgress(){this.state.progress?this.show():this.hide(),this.progress(this.state.progress)}hide(){return this.setMod("hidden",!0),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",98>t||this.j.async.setTimeout((()=>{this.hide()}),{label:"progress",timeout:300}),this}show(){return this.setMod("hidden",!1),this}};(0,i.gn)([(0,o.watch)("state.progress")],r.prototype,"onProgress",null),r=(0,i.gn)([o.component],r)},62983(t,e,s){"use strict";s.d(e,{r(){return r}});var i=s(97582),n=s(75004),o=s(50526);s(52378);let r=class t extends n.qe{className(){return"UIBrowserSettings"}render(){return`<div>\n\t\t\t<div class="${this.getFullElName("close")}">${n.JO.get("cancel")}</div>\n\t\t\t<div class="${this.getFullElName("title")}">${this.j.i18n("Settings")}</div>\n\t\t\t<div class="${this.getFullElName("options")}"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}afterSetMod(t,e){"hidden"===t&&!1===e&&this.generateSettings(),super.afterSetMod(t,e)}constructor(t,e){super(t),this.state=e;const s=this.getElm("close");t.e.on(s,"click",(()=>{this.state.showSettings=!1}))}onChangeView(){const t=this.getElm("tile-size");t&&(t.style.display="tiles"===this.state.view?"block":"none")}generateSettings(){this.clear();const{j:t}=this;this.append([new n.BO(t,{label:"Theme",name:"theme",value:this.state.theme,radio:!0,options:[{value:"default",text:"Light"},{value:"dark",text:"Dark"}],onChange:t=>{this.state.theme="default"===this.state.theme||"dark"===this.state.theme?t[0].value:"default"}}),new n.BO(t,{label:"Show favorites",name:"showFavorites",value:this.state.showFavorites,radio:!0,options:[{value:!0,text:"Show"},{value:!1,text:"Hide"}],onChange:t=>{this.state.showFavorites=t[0].value}}),new n.BO(t,{label:"View",name:"view",value:this.state.view,radio:!0,options:[{value:"tiles",text:"Tiles"},{value:"list",text:"List"},{value:"compact",text:"Compact"}],onChange:t=>{this.state.view=t[0].value}}),new n.BO(t,{label:"Folders position",name:"foldersPosition",value:this.state.foldersPosition,radio:!0,options:[{value:"top",text:"Top"},{value:"bottom",text:"Bottom"},{value:"default",text:"Default"}],onChange:t=>{this.state.foldersPosition=t[0].value}}),new n.Cj(t,{label:"Sort by",name:"sort-by",value:this.state.sortBy,options:[{value:"changed-asc",text:t.i18n("Sort by changed")+"(⬆)"},{value:"changed-desc",text:t.i18n("Sort by changed")+"(⬇)"},{value:"name-asc",text:t.i18n("Sort by name")+"(⬆)"},{value:"name-desc",text:t.i18n("Sort by name")+"(⬇)"},{value:"size-asc",text:t.i18n("Sort by size")+"(⬆)"},{value:"size-desc",text:t.i18n("Sort by size")+"(⬇)"}],onChange:t=>{this.state.sortBy=t}}),new n.Cj(t,{label:"Tile size",name:"tile-size",value:this.state.tileSize,options:[{value:"xsmall",text:"Extra small"},{value:"small",text:"Small"},{value:"default",text:"Default"},{value:"large",text:"Large"},{value:"xlarge",text:"Extra large"}],onChange:t=>{this.state.tileSize=t}})]),this.onChangeView()}};(0,i.gn)([(0,o.watch)("state.view")],r.prototype,"onChangeView",null),r=(0,i.gn)([o.component],r)},68787(t,e,s){"use strict";s.d(e,{o(){return a}});var i=s(97582),n=s(91630),o=s(50526),r=(s(52378),s(62499));let a=class t extends n.q{className(){return"UISidebar"}render(){return"<div>\n\t\t\t<div class='&__hide-btn'>*angle-left*</div>\n\t\t\t<div class='&__favorites'>*heart* ~Favorites~</div>\n\t\t\t<div class='&__box'></div>\n\t\t</div>"}appendChildToContainer(t){this.getElm("box").appendChild(t)}addResize(){r.c.remove(this),r.c.install(this,screen.width>450?"right":"bottom")}constructor(t,e,s){super(t,e),this.state=s,this.onChangeFavorites()}onChangeFavorites(){this.setMod("has-favorites",!!this.state.favorites.length)}onClickHideButton(){return this.state.showSideBar=!this.state.showSideBar,!1}onClickFavorites(){return this.state.elements=this.state.favorites,!1}};(0,i.gn)([(0,o.hook)("ready"),(0,o.watch)(":resize",{context:window}),(0,o.debounce)()],a.prototype,"addResize",null),(0,i.gn)([(0,o.watch)("state.favorites")],a.prototype,"onChangeFavorites",null),(0,i.gn)([(0,o.watch)("hide-btn:click")],a.prototype,"onClickHideButton",null),(0,i.gn)([(0,o.watch)("favorites:click")],a.prototype,"onClickFavorites",null),a=(0,i.gn)([o.component],a)},21596(t,e,s){"use strict";s.d(e,{f(){return a}});var i=s(97582),n=s(84789),o=s(94707),r=(s(52378),s(91919));let a=class t extends n.u{className(){return"UIBrowserSource"}render(){return'<div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__tree"></div>\n\t\t</div>'}constructor(t,e){super(t,e),this.data=e,this.tree=new r.v(this.j,this.data.children),this.syncMod=!0,this.getElm("name").innerText=e.title||e.name,this.getElm("tree").appendChild(this.tree.container),t.e.on(this.container,"contextmenu",(s=>t.e.fire("contextmenuSource.filebrowser",e,s)))}};a=(0,i.gn)([o.w],a)},93582(t,e,s){"use strict";s.d(e,{L(){return a}});var i=s(97582),n=s(75004),o=s(50526),r=s(21596);let a=class t extends n.qe{constructor(){super(...arguments),this.syncMod=!0}className(){return"UIBrowserSources"}build(t){this.clear(),t.forEach((t=>{this.append(new r.f(this.jodit,t))}))}};a=(0,i.gn)([o.component],a)},67775(t,e,s){"use strict";s.d(e,{s(){return r}});var i=s(97582),n=s(75004),o=s(50526);s(52378);let r=class t extends n.u1{className(){return"UIBrowserStatusBar"}render(){return"<div>\n\t\t\t<div class='&__slot-left'></div>\n\t\t\t<div class='&__slot-center'></div>\n\t\t\t<div class='&__slot-right'></div>\n\t\t</div>"}value(t,e="left"){return this.getElm("slot-"+e).innerText=t,this}};r=(0,i.gn)([o.component],r)},91919(t,e,s){"use strict";s.d(e,{v(){return h}});var i,n=s(97582),o=s(91630),r=s(94707),a=s(9890);let h=i=class t extends o.q{className(){return"UITree"}constructor(t,e){super(t),this.syncMod=!0,this.build(e)}build(t){this.clear(),t.forEach((t=>{const e=new a.D(this.jodit,t);this.append(e),t.isActive&&e.setMod("active",!0),t.children.length&&this.append(new i(this.jodit,t.children))}))}};h=i=(0,n.gn)([r.w],h)},72618(t,e,s){"use strict";s.d(e,{d(){return d}});var i,n=s(97582),o=s(91630),r=s(50526),a=s(45545),h=s(90174),l=s(81766),c=s(87695);let d=i=class t extends o.q{className(){return"UIVirtualScroll"}render(){return"<div>\n\t\t\t\t<div class=\"&__empty-message\">~There are no files~</div>\n\t\t\t\t<div class='&__loader'></div>\n\t\t\t\t<div class='&__drag-area'>~Drop image~</div>\n\t\t\t</div>"}constructor(t,e){super(t),this.stateManager=e,this.syncMod=!0,this.addItemsSelector()}reconcile(t){const e=this.elements.findIndex(((e,s)=>!t[s]||e.item.uniqueHashKey!==a.Z.create(t[s]).uniqueHashKey));if(e>-1){for(let t=e;this.elements.length>t;t+=1)this.elements[t].destruct();this.elements.length=e}return e}build(t){const e=this.reconcile(t);t.slice(e>-1?e:this.elements.length).forEach((t=>{const e=new c.u(this.jodit,t);Object.keys(this.mods).forEach((t=>{e.setMod(t,this.mods[t])})),this.append(e)})),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.j.o.pixelOffsetLoadNewChunk>this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)&&this.j.loadingManager.loadItemsChunk()}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){l.r.install(this)}static intersectRect(t,e){return!(e.left>t.left+t.width||t.left>e.left+e.width||e.top>t.top+t.height||t.top>e.top+e.height)}onSelectItems(t){const e=[];this.elements.forEach((s=>{const n=(0,h.F)(s.container);i.intersectRect(n,t)&&e.push(s.item)})),this.stateManager.state.activeElements=e}};(0,n.gn)([(0,r.watch)(":afterResize"),(0,r.watch)(":resize"),(0,r.watch)("container:scroll"),(0,r.throttle)()],d.prototype,"onScrollLoadChunk",null),(0,n.gn)([(0,r.watch)("container:dragover")],d.prototype,"onDragOver",null),(0,n.gn)([(0,r.watch)(["container:dragleave","container:drop"])],d.prototype,"onDragLeave",null),d=i=(0,n.gn)([r.component],d)},62499(t,e,s){"use strict";s.d(e,{c(){return o}});var i=s(18002),n=s(44913);class o{static remove(t){(0,i.i)(t.container,{width:null,height:null}),t.container.classList.remove("jodit-ui-resize"),n.i.safeRemove(t.container.querySelector(".jodit-ui-resize__handle"))}static install(t,e){t.container.classList.add("jodit-ui-resize"),"static"===(0,i.i)(t.container,"position")&&(0,i.i)(t.container,"position","relative");const s=t.j.c.div("jodit-ui-resize__handle");s.classList.add("jodit-ui-resize__handle_type_"+e),t.container.appendChild(s),t.j.e.on(s,"mousedown touchstart",this.onStartResize.bind(this,t,e))}static onStartResize(t,e,s){const i=t.j.async.throttle(this.onResize.bind(this,t,{x:s.clientX,y:s.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight,direction:e}),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",i).one(t.j.ow,"mouseup touchend",this.onEndResize.bind(this,t,i))}static onResize(t,e,s){const n=["left","right"].includes(e.direction),o=t.container.parentElement;if(!o)return;let r;r=n?(e.w+(s.clientX-e.x)*("right"===e.direction?1:-1))/o.offsetWidth:(e.h+(s.clientY-e.y)*("top"===e.direction?1:-1))/o.offsetHeight,(0,i.i)(t.container,n?"width":"height",100*r+"%")}static onEndResize(t,e,s){t.j.e.off(t.j.ow,"mousemove touchmove",e),t.j.unlock()}}},81766(t,e,s){"use strict";s.d(e,{r(){return o}});var i=s(44913),n=s(18002);class o{static remove(t){i.i.safeRemove(t.container.querySelector(".jodit-ui-select-items")),t.j.e.off(t.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(t){const e=t.j.c.div("jodit-ui-select-items");t.j.e.on(t.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,t,e))}static onStartSelect(t,e,s){if(s.target!==t.container)return;(0,n.i)(e,{width:0,height:0}),t.container.appendChild(e);const i={x:s.clientX,y:s.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight},o=t.j.async.throttle(this.onSelect.bind(this,t,e,i),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",o).one(t.j.ow,"mouseup touchend",this.onEndSelect.bind(this,t,e,o)),t.onSelectItems({left:i.x,top:i.y,width:0,height:0})}static onSelect(t,e,s,i){const o={left:s.x>i.clientX?i.clientX:s.x,top:s.y>i.clientY?i.clientY:s.y,width:Math.abs(s.x-i.clientX),height:Math.abs(s.y-i.clientY)};(0,n.i)(e,o),t.onSelectItems(o)}static onEndSelect(t,e,s,n){i.i.safeRemove(e),t.j.e.off(t.j.ow,"mousemove touchmove",s),t.j.unlock()}}}},t=>t(t.s=48531)])}));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -509,6 +509,7 @@ UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
509
509
  ], UIRange);
510
510
 
511
511
 
512
+
512
513
  /***/ }),
513
514
 
514
515
  /***/ 39445:
@@ -613,6 +614,7 @@ ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .gn)([
613
614
  ], ColorInput);
614
615
 
615
616
 
617
+
616
618
  /***/ }),
617
619
 
618
620
  /***/ 51852:
@@ -1440,6 +1442,7 @@ UIMarkerEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
1440
1442
  ], UIMarkerEditor);
1441
1443
 
1442
1444
 
1445
+
1443
1446
  /***/ }),
1444
1447
 
1445
1448
  /***/ 61814:
@@ -1492,6 +1495,7 @@ UIPolygonEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1492
1495
  ], UIPolygonEditor);
1493
1496
 
1494
1497
 
1498
+
1495
1499
  /***/ }),
1496
1500
 
1497
1501
  /***/ 93565:
@@ -1542,6 +1546,7 @@ UIPolylineEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
1542
1546
  ], UIPolylineEditor);
1543
1547
 
1544
1548
 
1549
+
1545
1550
  /***/ }),
1546
1551
 
1547
1552
  /***/ 40540:
@@ -2333,6 +2338,7 @@ UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .gn)
2333
2338
  ], UIMapsControlsForm);
2334
2339
 
2335
2340
 
2341
+
2336
2342
  /***/ }),
2337
2343
 
2338
2344
  /***/ 59342:
@@ -2492,6 +2498,7 @@ UIMapsPropsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2492
2498
  ], UIMapsPropsForm);
2493
2499
 
2494
2500
 
2501
+
2495
2502
  /***/ }),
2496
2503
 
2497
2504
  /***/ 15191:
@@ -2561,6 +2568,7 @@ UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
2561
2568
  ], UIWysiwyg);
2562
2569
 
2563
2570
 
2571
+
2564
2572
  /***/ })
2565
2573
 
2566
2574
  },
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -299,6 +299,7 @@ UIIframeEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .gn)([
299
299
  ], UIIframeEditor);
300
300
 
301
301
 
302
+
302
303
  /***/ })
303
304
 
304
305
  },
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */