jodit-pro 4.13.38 → 4.13.44
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.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +28 -28
- package/es2015/jodit.js +83 -190
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +306 -168
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +29 -29
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +241 -72
- package/es2015/plugins/google-maps/google-maps.min.js +4 -4
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +6 -12
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +19 -19
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.css +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +7 -7
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +19 -19
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +236 -75
- package/es2021/plugins/google-maps/google-maps.min.js +9 -9
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +236 -75
- package/es2021.en/plugins/google-maps/google-maps.min.js +9 -9
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1788 -2701
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +406 -275
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +9 -9
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +11 -18
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +10 -17
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +7 -7
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +11 -11
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +4 -10
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +334 -114
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +6 -6
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +6 -6
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +29 -42
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +6 -6
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +6 -6
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +6 -6
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +13 -13
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +8 -8
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +18 -18
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +7 -7
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +7 -7
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +225 -105
- package/es5/polyfills.min.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/esm/plugins/google-maps/ui/map/map.js +2 -2
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -0
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/types/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -81,8 +81,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81
81
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
82
82
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
83
83
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
84
|
-
/* harmony import */ var
|
|
85
|
-
/* harmony import */ var
|
|
84
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
85
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23078);
|
|
86
86
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(64839);
|
|
87
87
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(82758);
|
|
88
88
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65478);
|
|
@@ -316,52 +316,52 @@ var TodoList = /*#__PURE__*/ function(Plugin) {
|
|
|
316
316
|
}
|
|
317
317
|
]);
|
|
318
318
|
return TodoList;
|
|
319
|
-
}((0,
|
|
319
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__.Plugin));
|
|
320
320
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(TodoList, "requires", [
|
|
321
321
|
'license'
|
|
322
322
|
]);
|
|
323
|
-
(0,
|
|
323
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
324
324
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
|
|
325
325
|
], TodoList.prototype, "onCommand", null);
|
|
326
|
-
(0,
|
|
326
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
327
327
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
|
|
328
328
|
], TodoList.prototype, "__prependInputLabel", null);
|
|
329
|
-
(0,
|
|
329
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
330
330
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':commitStyleAfterToggleList')
|
|
331
331
|
], TodoList.prototype, "__afterToggleList", null);
|
|
332
|
-
(0,
|
|
332
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
333
333
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':commitStyleBeforeUnwrapList')
|
|
334
334
|
], TodoList.prototype, "__beforeToggleOrderedList", null);
|
|
335
|
-
(0,
|
|
335
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
336
336
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':afterEnter')
|
|
337
337
|
], TodoList.prototype, "__afterEnter", null);
|
|
338
|
-
(0,
|
|
338
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
339
339
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':afterTab')
|
|
340
340
|
], TodoList.prototype, "__afterTab", null);
|
|
341
|
-
(0,
|
|
341
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
342
342
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)('j.ed:selectionchange'),
|
|
343
343
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':afterEnter')
|
|
344
344
|
], TodoList.prototype, "__changeSelection", null);
|
|
345
|
-
(0,
|
|
345
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
346
346
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':enterIsEmptyListLeaf')
|
|
347
347
|
], TodoList.prototype, "__isEmptyListLeaf", null);
|
|
348
|
-
(0,
|
|
348
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
349
349
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':backSpaceBeforeCases')
|
|
350
350
|
], TodoList.prototype, "__backSpaceBeforeCases", null);
|
|
351
|
-
(0,
|
|
351
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
352
352
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':backSpaceIsMovedIgnore'),
|
|
353
353
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':isInvisibleForCursor')
|
|
354
354
|
], TodoList.prototype, "__isInvisibleForCursor", null);
|
|
355
|
-
(0,
|
|
355
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
356
356
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':backSpaceAfterDelete')
|
|
357
357
|
], TodoList.prototype, "__backSpaceAfterDelete", null);
|
|
358
|
-
(0,
|
|
358
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
359
359
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
|
|
360
360
|
], TodoList.prototype, "__afterWrapList", null);
|
|
361
|
-
(0,
|
|
361
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
362
362
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':click')
|
|
363
363
|
], TodoList.prototype, "__onClickInput", null);
|
|
364
|
-
(0,
|
|
364
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
365
365
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
|
|
366
366
|
], TodoList.prototype, "isTodoLeafLabel", null);
|
|
367
367
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_14__.JoditPro.plugins.add('todo-list', TodoList);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[502],{11373:function(e){e.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},64839:function(e,t,o){"use strict";var i=o(11373),n=o.n(i),a=o(6441),s=o(2748),l=o(12153);a.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(e){return e.createInside.element("input",{type:"checkbox",tabindex:-1})}},a.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(e){var t=e.s.current();return!!(t&&s.Dom.closest(t,function(e){return s.Dom.isElement(e)&&s.Dom.isTag(e,"ul")&&e.classList.contains("todo-list")},e.editor))}},l.Icon.set("todo-list",n())},19374:function(e,t,o){"use strict";o.r(t),o.d(t,{TodoList:function(){return y}});var i=o(80294),n=o(20616),a=o(67709),s=o(82749),l=o(18766),r=o(
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[502],{11373:function(e){e.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},64839:function(e,t,o){"use strict";var i=o(11373),n=o.n(i),a=o(6441),s=o(2748),l=o(12153);a.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(e){return e.createInside.element("input",{type:"checkbox",tabindex:-1})}},a.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(e){var t=e.s.current();return!!(t&&s.Dom.closest(t,function(e){return s.Dom.isElement(e)&&s.Dom.isTag(e,"ul")&&e.classList.contains("todo-list")},e.editor))}},l.Icon.set("todo-list",n())},19374:function(e,t,o){"use strict";o.r(t),o.d(t,{TodoList:function(){return y}});var i=o(80294),n=o(20616),a=o(67709),s=o(82749),l=o(18766),r=o(31635),c=o(23078);o(64839);var u=o(82758),p=o(65478),d=o(2748),_=o(43555),f=o(50911),m=o(59242),h=o(2692),y=function(e){function t(){var e;return(0,n._)(this,t),e=(0,i._)(this,t,arguments),(0,s._)(e,"buttons",[{name:"todoList",group:"list"}]),(0,s._)(e,"__isOwnCommand",!1),e}return(0,l._)(t,e),(0,a._)(t,[{key:"afterInit",value:function(e){e.registerCommand("todoList",this.onCommand)}},{key:"onCommand",value:function(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}},{key:"__prependInputLabel",value:function(e){var t=this.jodit,o=this.j.o.todoList,i=o.labelClassName,n=o.inputFactory;if(!e.querySelector("label."+i)){1===e.children.length&&d.Dom.isTag(e.firstElementChild,"p")&&d.Dom.unwrap(e.firstElementChild);var a=t.createInside.element("label",{contenteditable:"false",class:i}),s=n(t);a.appendChild(s),d.Dom.prepend(e,a)}}},{key:"__afterToggleList",value:function(e,t){return(e===m.CHANGE||e===m.REPLACE)&&this.__isOwnCommand?this.__appendInputs(t):e===m.UNWRAP||e===m.REPLACE||e===m.CHANGE?this.__removeInputs(t):void 0}},{key:"__appendInputs",value:function(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}},{key:"__removeInputs",value:function(e){var t=this.j.o.todoList.labelClassName;e.querySelectorAll("label."+t).forEach(d.Dom.safeRemove)}},{key:"__beforeToggleOrderedList",value:function(e,t,o){var i,n="__beforeToggleOrderedList";if(e!==m.REPLACE&&(t.classList.contains(this.j.o.todoList.className)||o.isApplied(t,n))&&("ul"===o.element||"ol"===o.element)&&(null==(i=o.options.attributes)?void 0:i.class)!==this.j.o.todoList.className){var a=d.Dom.replace(t,o.element,this.jodit.createInside);return o.setApplied(a,n),this.__removeInputs(a),a}}},{key:"__afterEnter",value:function(){(0,_.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}},{key:"__afterTab",value:function(){(0,_.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(d.Dom.safeRemove)}},{key:"__changeSelection",value:function(e){var t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}},{key:"__isEmptyListLeaf",value:function(e){var t=this;return d.Dom.isEmpty(e,function(e){return!("input"===e.nodeName.toLowerCase()&&t.isTodoLeafLabel(e.parentElement))&&u.NO_EMPTY_TAGS.has(e.tagName.toLowerCase())})}},{key:"__backSpaceBeforeCases",value:function(e,t){if(e){var o=d.Dom.findNotEmptySibling(t,!0);this.isTodoLeafLabel(o)&&d.Dom.safeRemove(o)}}},{key:"__isInvisibleForCursor",value:function(e){if(this.isTodoLeafLabel(e))return!0}},{key:"__backSpaceAfterDelete",value:function(){var e=this,t=this.j.o.todoList.labelClassName;(0,_.$$)("label."+t,this.jodit.editor).forEach(function(t){t.closest("ul."+e.j.o.todoList.className)?t.previousSibling&&t.parentElement&&d.Dom.prepend(t.parentElement,t):d.Dom.safeRemove(t)})}},{key:"__afterWrapList",value:function(e,t){e===m.WRAP&&this.__appendInputs(t)}},{key:"__onClickInput",value:function(e){var t=e.target;t&&d.Dom.isTag(t,"input")&&"checkbox"===t.type&&this.isTodoLeafLabel(t.parentElement)&&(0,_.attr)(t,"checked",t.checked?"checked":null)}},{key:"isTodoLeafLabel",value:function(e){var t=this.j.o.todoList.labelClassName;return d.Dom.isHTMLElement(e)&&e.classList.contains(t)}},{key:"beforeDestruct",value:function(e){}}]),t}((0,c._)(f.Plugin));(0,s._)(y,"requires",["license"]),(0,r.__decorate)([p.autobind],y.prototype,"onCommand",null),(0,r.__decorate)([p.autobind],y.prototype,"__prependInputLabel",null),(0,r.__decorate)([(0,p.watch)(":commitStyleAfterToggleList")],y.prototype,"__afterToggleList",null),(0,r.__decorate)([(0,p.watch)(":commitStyleBeforeUnwrapList")],y.prototype,"__beforeToggleOrderedList",null),(0,r.__decorate)([(0,p.watch)(":afterEnter")],y.prototype,"__afterEnter",null),(0,r.__decorate)([(0,p.watch)(":afterTab")],y.prototype,"__afterTab",null),(0,r.__decorate)([(0,p.watch)("j.ed:selectionchange"),(0,p.watch)(":afterEnter")],y.prototype,"__changeSelection",null),(0,r.__decorate)([(0,p.watch)(":enterIsEmptyListLeaf")],y.prototype,"__isEmptyListLeaf",null),(0,r.__decorate)([(0,p.watch)(":backSpaceBeforeCases")],y.prototype,"__backSpaceBeforeCases",null),(0,r.__decorate)([(0,p.watch)(":backSpaceIsMovedIgnore"),(0,p.watch)(":isInvisibleForCursor")],y.prototype,"__isInvisibleForCursor",null),(0,r.__decorate)([(0,p.watch)(":backSpaceAfterDelete")],y.prototype,"__backSpaceAfterDelete",null),(0,r.__decorate)([p.autobind],y.prototype,"__afterWrapList",null),(0,r.__decorate)([(0,p.watch)(":click")],y.prototype,"__onClickInput",null),(0,r.__decorate)([p.autobind],y.prototype,"isTodoLeafLabel",null),h.JoditPro.plugins.add("todo-list",y)}},function(e){return e(e.s=19374)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -569,9 +569,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
569
569
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67709);
|
|
570
570
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82749);
|
|
571
571
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18766);
|
|
572
|
-
/* harmony import */ var
|
|
573
|
-
/* harmony import */ var
|
|
574
|
-
/* harmony import */ var
|
|
572
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
|
|
573
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62361);
|
|
574
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23078);
|
|
575
575
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20104);
|
|
576
576
|
/* harmony import */ var _providers_cloud_cloud__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(50090);
|
|
577
577
|
/* harmony import */ var _providers_google_google__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(27834);
|
|
@@ -654,7 +654,7 @@ var Translate = /*#__PURE__*/ function(Plugin) {
|
|
|
654
654
|
exec: function exec() {
|
|
655
655
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
656
656
|
var _this, newState, dlg, langsList, sourceLangs, targetLangs, settings;
|
|
657
|
-
return (0,
|
|
657
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_7__._)(this, function(_state) {
|
|
658
658
|
switch(_state.label){
|
|
659
659
|
case 0:
|
|
660
660
|
_this = this;
|
|
@@ -727,11 +727,11 @@ var Translate = /*#__PURE__*/ function(Plugin) {
|
|
|
727
727
|
}
|
|
728
728
|
]);
|
|
729
729
|
return Translate;
|
|
730
|
-
}((0,
|
|
730
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_8__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_18__.Plugin));
|
|
731
731
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(Translate, "requires", [
|
|
732
732
|
'license'
|
|
733
733
|
]);
|
|
734
|
-
(0,
|
|
734
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
|
|
735
735
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_14__.persistent
|
|
736
736
|
], Translate.prototype, "state", void 0);
|
|
737
737
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_20__.JoditPro.plugins.add('translate', Translate);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[954],{74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},20104:function(t,e,n){"use strict";var a=n(74922),i=n.n(a),r=n(34575),o=n.n(r),s=n(6441),l=n(12153);s.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},s.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,n){var a=n.control;t.execCommand("translate"+a.name)},mods:{stroke:!1}}},l.Icon.set("translate",o()).set("translate-swap",i())},50090:function(t,e,n){"use strict";n.d(e,{CloudTranslateProvider:function(){return c}});var a=n(20616),i=n(67709),r=n(82749),o=n(82758),s=n(38837),l=n(80942),c=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.cloudProviderOptions;return(0,s.assert)(a,"Set cloudProviderOptions"),this.jodit.fetch(a.url+t+"?key="+a.key,{method:"POST",data:n,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){o.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={text:t,targetLanguageCode:n};return e&&(a.sourceLanguageCode=e),this.__fetch("/v1/translate",a).then(function(t){return{text:t.text}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:l.languages})}}]),t}()},27834:function(t,e,n){"use strict";n.d(e,{GoogleTranslateProvider:function(){return d}});var a=n(20616),i=n(67709),r=n(82749),o=n(56075),s=n(11886),l=n(82758),c=n(38837),u=n(80942),d=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.googleProviderOptions;return(0,c.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:(0,s._)((0,o._)({},n),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){l.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={q:t,target:n,format:"html"};return e&&(a.source=e),this.__fetch("translate",a).then(function(t){return{text:t.data.translations[0].translatedText}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:u.languages})}}]),t}()},80942:function(t,e,n){"use strict";n.d(e,{languages:function(){return a}});var a={"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},73534:function(t,e,n){"use strict";n.d(e,{getSelectionFragments:function(){return i}});var a=n(2748);function i(t){var e=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return e;t.s.range.commonAncestorContainer.normalize();var i=t.s.range,l=i.commonAncestorContainer,c=i.startContainer,u=i.endContainer,d=i.startOffset,h=i.endOffset;if(c===u){if(a.Dom.isText(c))return[o(c,d,h)];if(h-d==1){var g=c.childNodes[d];return a.Dom.isText(g)?[o(g,0,g.nodeValue.length)]:[s(g)]}if(0===d&&c.childNodes.length===h)return[s(c)];for(var f=d;f<h;f++){var v=c.childNodes[f];a.Dom.isText(v)?e.push(o(v,0,v.nodeValue.length)):e.push(s(v))}return e}for(var p=new Set,_=t.ed.createTreeWalker(l,NodeFilter.SHOW_ALL,{acceptNode:function(t){return!i.intersectsNode(t)||a.Dom.closest(t,function(t){return t&&p.has(t)},l)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),m=_.nextNode();m;){if(a.Dom.isElement(m)&&r(i,m))p.add(m),e.push(s(m));else if(a.Dom.isText(m)&&r(i,m))e.push(o(m,0,m.nodeValue.length));else if(a.Dom.isText(m)){var y=0,k=m.nodeValue.length;m===c&&(y=d),m===u&&(k=h),e.push(o(m,y,k))}m=_.nextNode()}return e}var r=function(t,e){var n=document.createRange();try{n.selectNodeContents(e)}catch(t){n.selectNode(e)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function o(t,e,n){return{text:t.nodeValue.slice(e,n),replace:function(a){t.nodeValue=t.nodeValue.slice(0,e)+a+t.nodeValue.slice(n)}}}function s(t){return{text:t.innerHTML,replace:function(e){t.innerHTML=e}}}},73098:function(t,e,n){"use strict";n.r(e),n.d(e,{Translate:function(){return C}});var a=n(77688),i=n(80294),r=n(20616),o=n(67709),s=n(82749),l=n(18766),c=n(23078),u=n(31635),d=n(62361);n(20104);var h=n(50090),g=n(27834),f=n(33124),v=n(73534),p=n(65478),_=n(23282),m=n(70799),y=n(38837),k=n(50911),L=n(10830),w=n(2692),C=function(t){function e(){var t;return(0,r._)(this,e),t=(0,i._)(this,e,arguments),(0,s._)(t,"buttons",[{name:"translate.translate",group:"insert"}]),(0,s._)(t,"state",{sourceLang:t.jodit.o.translate.defaultSourceLang||"en",targetLang:t.jodit.o.translate.defaultTargetLang}),t}return(0,l._)(e,t),(0,o._)(e,[{key:"__getProvider",value:function(){var t=this.jodit.options.translate.provider;if((0,m.isString)(t))switch(t){case"google":return new g.GoogleTranslateProvider(this.j);case"cloud":return new h.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,y.assert)((0,_.isFunction)(t),"Provider must be a function"),t(this.jodit)}},{key:"afterInit",value:function(t){var e=this,n=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return(0,a._)(function(){var e,a,i,r,o,s,l;return(0,d._)(this,function(c){switch(c.label){case 0:return e=this,a=this.state,(i=t.dlg()).setHeader("Translate options"),[4,n.supportedLanguages()];case 1:return o="source"in(r=c.sent())?r.source.langs:r.langs,s="target"in r?r.target.langs:r.langs,l=new f.UITranslateSettings(i,this.state,{sourceList:o,targetList:s,onChange:function(t){a=t}}),i.setContent(l),i.setFooter([(0,L.Button)(t,"cancel","Cancel").onAction(function(){return i.close()}),(0,L.Button)(t,"ok","Save","primary").onAction(function(){e.state=a,i.close()})]),l.bindDestruct(i),i.setSize(500,400).open(!0),[2]}})}).call(e)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var a=(0,v.getSelectionFragments)(t).filter(function(t){return t.text.trim().length>0});if(!a.length)return void t.message.error("Select text for translate");var i=e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:"",r=e.state.targetLang;return Promise.all(a.map(function(e){n.translate(e.text,i,r).then(function(t){e.replace(t.text)}).catch(function(e){t.message.error((0,m.isString)(e)?e:e.message)})})).then(function(){t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}},{key:"beforeDestruct",value:function(t){}}]),e}((0,c._)(k.Plugin));(0,s._)(C,"requires",["license"]),(0,u.__decorate)([p.persistent],C.prototype,"state",void 0),w.JoditPro.plugins.add("translate",C)},67082:function(t,e,n){"use strict";n.d(e,{UITranslateList:function(){return p}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(31635),c=n(82758),u=n(65478),d=n(2748),h=n(21537),g=n(29960),f=n(48538),v=n(80256),p=function(t){function e(t,n){(0,i._)(this,e),r=(0,a._)(this,e,[t,n]),(0,o._)(r,"options",void 0),(0,o._)(r,"state",void 0),r.options=n,r.state={active:""},r.state.active=n.active;var r,s,l=new v.UIInput(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:r.__onChangeFilter,clearButton:!0});return null==(s=r.getElm("input"))||s.appendChild(l.container),r.__onActiveChange(),r}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateList"}},{key:"items",get:function(){return this.getElms("item")}},{key:"render",value:function(t){var e=this,n=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(function(e){return{title:e,code:t.list[e]}})).forEach(function(t){var a=t.code;n.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(a,"'>\n <span class='&__item-key'>").concat(a,"</span>\n <span class='&__item-title'>").concat(e.j.i18n(t.title),"</span>\n </a>"))}),"<div class='&'>\n <div class='&__input'></div>\n <div class='&__list'>".concat(n.join(""),"</div>\n </div>")}},{key:"__onChangeFilter",value:function(t){this.items.forEach(function(e){var n,a,i=null!=(n=null==(a=e.textContent)?void 0:a.toLowerCase())?n:"";(0,g.attr)(e,"data-hidden","true"!==(0,g.attr)(e,"data-active")&&!i.includes(t.toLowerCase()))})}},{key:"__scrollToActive",value:function(){var t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,h.scrollIntoViewIfNeeded)(t,e,this.j.od)}},{key:"onClickItem",value:function(t){if("keydown"!==t.type||!("key"in t)||t.key===c.KEY_ENTER){var e=t.target;if(d.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){var n=(0,g.attr)(e,"data-lang");this.options.onChange(n),this.state.active=n}}}},{key:"__onActiveChange",value:function(){var t=this;this.items.forEach(function(e){return(0,g.attr)(e,"data-active",(0,g.attr)(e,"data-lang")===t.state.active)}),this.__scrollToActive()}}]),e}(f.UIElement);(0,l.__decorate)([(0,u.debounce)()],p.prototype,"__onChangeFilter",null),(0,l.__decorate)([(0,u.watch)(":afterOpen")],p.prototype,"__scrollToActive",null),(0,l.__decorate)([(0,u.watch)(["container:click","container:keydown"])],p.prototype,"onClickItem",null),(0,l.__decorate)([(0,u.watch)("state.active"),(0,u.debounce)()],p.prototype,"__onActiveChange",null),p=(0,l.__decorate)([u.component],p)},33124:function(t,e,n){"use strict";n.d(e,{UITranslateSettings:function(){return g}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(56075),c=n(31635),u=n(65478),d=n(67510),h=n(67082),g=function(t){function e(t,n,r){var s,c,u;return(0,i._)(this,e),s=(0,a._)(this,e,[t]),(0,o._)(s,"state",void 0),(0,o._)(s,"options",void 0),(0,o._)(s,"__sourceList",void 0),(0,o._)(s,"__targetList",void 0),s.state=n,s.options=r,s.__sourceList=new h.UITranslateList(t,{list:r.sourceList,active:n.sourceLang,onChange:function(t){s.state.sourceLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(c=s.getElm("source-list"))||c.appendChild(s.__sourceList.container),s.__targetList=new h.UITranslateList(t,{list:r.targetList,active:n.targetLang,onChange:function(t){s.state.targetLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(u=s.getElm("target-list"))||u.appendChild(s.__targetList.container),s}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateSettings"}},{key:"render",value:function(){return"<div>\n <div class='&__list &__source-list'></div>\n <div class='&__arrow'>\n <a class='&__arrow-swap'>*translate-swap*</a>\n </div>\n <div class='&__list &__target-list'></div>\n </div>"}},{key:"__onSwap",value:function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange((0,l._)({},this.state))}}]),e}(d.UIElement);(0,c.__decorate)([(0,u.watch)("arrow-swap:click")],g.prototype,"__onSwap",null),g=(0,c.__decorate)([u.component],g)},11886:function(t,e,n){"use strict";function a(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}n.d(e,{_:function(){return a}})}},function(t){return t(t.s=73098)}])});
|
|
8
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[954],{74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},20104:function(t,e,n){"use strict";var a=n(74922),i=n.n(a),r=n(34575),o=n.n(r),s=n(6441),l=n(12153);s.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},s.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,n){var a=n.control;t.execCommand("translate"+a.name)},mods:{stroke:!1}}},l.Icon.set("translate",o()).set("translate-swap",i())},50090:function(t,e,n){"use strict";n.d(e,{CloudTranslateProvider:function(){return c}});var a=n(20616),i=n(67709),r=n(82749),o=n(82758),s=n(38837),l=n(80942),c=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.cloudProviderOptions;return(0,s.assert)(a,"Set cloudProviderOptions"),this.jodit.fetch(a.url+t+"?key="+a.key,{method:"POST",data:n,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){o.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={text:t,targetLanguageCode:n};return e&&(a.sourceLanguageCode=e),this.__fetch("/v1/translate",a).then(function(t){return{text:t.text}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:l.languages})}}]),t}()},27834:function(t,e,n){"use strict";n.d(e,{GoogleTranslateProvider:function(){return d}});var a=n(20616),i=n(67709),r=n(82749),o=n(56075),s=n(11886),l=n(82758),c=n(38837),u=n(80942),d=function(){function t(e){(0,a._)(this,t),(0,r._)(this,"jodit",void 0),this.jodit=e}return(0,i._)(t,[{key:"__fetch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.jodit.o.translate.googleProviderOptions;return(0,c.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:(0,s._)((0,o._)({},n),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then(function(t){return t.json()}).catch(function(t){try{e.jodit.message.error(t.json().message)}catch(t){l.IS_PROD}})}},{key:"translate",value:function(t,e,n){var a={q:t,target:n,format:"html"};return e&&(a.source=e),this.__fetch("translate",a).then(function(t){return{text:t.data.translations[0].translatedText}})}},{key:"supportedLanguages",value:function(){return Promise.resolve({langs:u.languages})}}]),t}()},80942:function(t,e,n){"use strict";n.d(e,{languages:function(){return a}});var a={"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},73534:function(t,e,n){"use strict";n.d(e,{getSelectionFragments:function(){return i}});var a=n(2748);function i(t){var e=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return e;t.s.range.commonAncestorContainer.normalize();var i=t.s.range,l=i.commonAncestorContainer,c=i.startContainer,u=i.endContainer,d=i.startOffset,h=i.endOffset;if(c===u){if(a.Dom.isText(c))return[o(c,d,h)];if(h-d==1){var g=c.childNodes[d];return a.Dom.isText(g)?[o(g,0,g.nodeValue.length)]:[s(g)]}if(0===d&&c.childNodes.length===h)return[s(c)];for(var f=d;f<h;f++){var v=c.childNodes[f];a.Dom.isText(v)?e.push(o(v,0,v.nodeValue.length)):e.push(s(v))}return e}for(var p=new Set,_=t.ed.createTreeWalker(l,NodeFilter.SHOW_ALL,{acceptNode:function(t){return!i.intersectsNode(t)||a.Dom.closest(t,function(t){return t&&p.has(t)},l)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),m=_.nextNode();m;){if(a.Dom.isElement(m)&&r(i,m))p.add(m),e.push(s(m));else if(a.Dom.isText(m)&&r(i,m))e.push(o(m,0,m.nodeValue.length));else if(a.Dom.isText(m)){var y=0,k=m.nodeValue.length;m===c&&(y=d),m===u&&(k=h),e.push(o(m,y,k))}m=_.nextNode()}return e}var r=function(t,e){var n=document.createRange();try{n.selectNodeContents(e)}catch(t){n.selectNode(e)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function o(t,e,n){return{text:t.nodeValue.slice(e,n),replace:function(a){t.nodeValue=t.nodeValue.slice(0,e)+a+t.nodeValue.slice(n)}}}function s(t){return{text:t.innerHTML,replace:function(e){t.innerHTML=e}}}},73098:function(t,e,n){"use strict";n.r(e),n.d(e,{Translate:function(){return C}});var a=n(77688),i=n(80294),r=n(20616),o=n(67709),s=n(82749),l=n(18766),c=n(31635),u=n(62361),d=n(23078);n(20104);var h=n(50090),g=n(27834),f=n(33124),v=n(73534),p=n(65478),_=n(23282),m=n(70799),y=n(38837),k=n(50911),L=n(10830),w=n(2692),C=function(t){function e(){var t;return(0,r._)(this,e),t=(0,i._)(this,e,arguments),(0,s._)(t,"buttons",[{name:"translate.translate",group:"insert"}]),(0,s._)(t,"state",{sourceLang:t.jodit.o.translate.defaultSourceLang||"en",targetLang:t.jodit.o.translate.defaultTargetLang}),t}return(0,l._)(e,t),(0,o._)(e,[{key:"__getProvider",value:function(){var t=this.jodit.options.translate.provider;if((0,m.isString)(t))switch(t){case"google":return new g.GoogleTranslateProvider(this.j);case"cloud":return new h.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,y.assert)((0,_.isFunction)(t),"Provider must be a function"),t(this.jodit)}},{key:"afterInit",value:function(t){var e=this,n=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return(0,a._)(function(){var e,a,i,r,o,s,l;return(0,u._)(this,function(c){switch(c.label){case 0:return e=this,a=this.state,(i=t.dlg()).setHeader("Translate options"),[4,n.supportedLanguages()];case 1:return o="source"in(r=c.sent())?r.source.langs:r.langs,s="target"in r?r.target.langs:r.langs,l=new f.UITranslateSettings(i,this.state,{sourceList:o,targetList:s,onChange:function(t){a=t}}),i.setContent(l),i.setFooter([(0,L.Button)(t,"cancel","Cancel").onAction(function(){return i.close()}),(0,L.Button)(t,"ok","Save","primary").onAction(function(){e.state=a,i.close()})]),l.bindDestruct(i),i.setSize(500,400).open(!0),[2]}})}).call(e)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var a=(0,v.getSelectionFragments)(t).filter(function(t){return t.text.trim().length>0});if(!a.length)return void t.message.error("Select text for translate");var i=e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:"",r=e.state.targetLang;return Promise.all(a.map(function(e){n.translate(e.text,i,r).then(function(t){e.replace(t.text)}).catch(function(e){t.message.error((0,m.isString)(e)?e:e.message)})})).then(function(){t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}},{key:"beforeDestruct",value:function(t){}}]),e}((0,d._)(k.Plugin));(0,s._)(C,"requires",["license"]),(0,c.__decorate)([p.persistent],C.prototype,"state",void 0),w.JoditPro.plugins.add("translate",C)},67082:function(t,e,n){"use strict";n.d(e,{UITranslateList:function(){return p}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(31635),c=n(82758),u=n(65478),d=n(2748),h=n(21537),g=n(29960),f=n(48538),v=n(80256),p=function(t){function e(t,n){(0,i._)(this,e),r=(0,a._)(this,e,[t,n]),(0,o._)(r,"options",void 0),(0,o._)(r,"state",void 0),r.options=n,r.state={active:""},r.state.active=n.active;var r,s,l=new v.UIInput(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:r.__onChangeFilter,clearButton:!0});return null==(s=r.getElm("input"))||s.appendChild(l.container),r.__onActiveChange(),r}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateList"}},{key:"items",get:function(){return this.getElms("item")}},{key:"render",value:function(t){var e=this,n=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(function(e){return{title:e,code:t.list[e]}})).forEach(function(t){var a=t.code;n.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(a,"'>\n <span class='&__item-key'>").concat(a,"</span>\n <span class='&__item-title'>").concat(e.j.i18n(t.title),"</span>\n </a>"))}),"<div class='&'>\n <div class='&__input'></div>\n <div class='&__list'>".concat(n.join(""),"</div>\n </div>")}},{key:"__onChangeFilter",value:function(t){this.items.forEach(function(e){var n,a,i=null!=(n=null==(a=e.textContent)?void 0:a.toLowerCase())?n:"";(0,g.attr)(e,"data-hidden","true"!==(0,g.attr)(e,"data-active")&&!i.includes(t.toLowerCase()))})}},{key:"__scrollToActive",value:function(){var t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&(0,h.scrollIntoViewIfNeeded)(t,e,this.j.od)}},{key:"onClickItem",value:function(t){if("keydown"!==t.type||!("key"in t)||t.key===c.KEY_ENTER){var e=t.target;if(d.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){var n=(0,g.attr)(e,"data-lang");this.options.onChange(n),this.state.active=n}}}},{key:"__onActiveChange",value:function(){var t=this;this.items.forEach(function(e){return(0,g.attr)(e,"data-active",(0,g.attr)(e,"data-lang")===t.state.active)}),this.__scrollToActive()}}]),e}(f.UIElement);(0,l.__decorate)([(0,u.debounce)()],p.prototype,"__onChangeFilter",null),(0,l.__decorate)([(0,u.watch)(":afterOpen")],p.prototype,"__scrollToActive",null),(0,l.__decorate)([(0,u.watch)(["container:click","container:keydown"])],p.prototype,"onClickItem",null),(0,l.__decorate)([(0,u.watch)("state.active"),(0,u.debounce)()],p.prototype,"__onActiveChange",null),p=(0,l.__decorate)([u.component],p)},33124:function(t,e,n){"use strict";n.d(e,{UITranslateSettings:function(){return g}});var a=n(80294),i=n(20616),r=n(67709),o=n(82749),s=n(18766),l=n(56075),c=n(31635),u=n(65478),d=n(67510),h=n(67082),g=function(t){function e(t,n,r){var s,c,u;return(0,i._)(this,e),s=(0,a._)(this,e,[t]),(0,o._)(s,"state",void 0),(0,o._)(s,"options",void 0),(0,o._)(s,"__sourceList",void 0),(0,o._)(s,"__targetList",void 0),s.state=n,s.options=r,s.__sourceList=new h.UITranslateList(t,{list:r.sourceList,active:n.sourceLang,onChange:function(t){s.state.sourceLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(c=s.getElm("source-list"))||c.appendChild(s.__sourceList.container),s.__targetList=new h.UITranslateList(t,{list:r.targetList,active:n.targetLang,onChange:function(t){s.state.targetLang=t,s.options.onChange((0,l._)({},s.state))}}),null==(u=s.getElm("target-list"))||u.appendChild(s.__targetList.container),s}return(0,s._)(e,t),(0,r._)(e,[{key:"className",value:function(){return"UITranslateSettings"}},{key:"render",value:function(){return"<div>\n <div class='&__list &__source-list'></div>\n <div class='&__arrow'>\n <a class='&__arrow-swap'>*translate-swap*</a>\n </div>\n <div class='&__list &__target-list'></div>\n </div>"}},{key:"__onSwap",value:function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange((0,l._)({},this.state))}}]),e}(d.UIElement);(0,c.__decorate)([(0,u.watch)("arrow-swap:click")],g.prototype,"__onSwap",null),g=(0,c.__decorate)([u.component],g)},11886:function(t,e,n){"use strict";function a(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}n.d(e,{_:function(){return a}})}},function(t){return t(t.s=73098)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -147,8 +147,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
147
147
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67709);
|
|
148
148
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82749);
|
|
149
149
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18766);
|
|
150
|
-
/* harmony import */ var
|
|
151
|
-
/* harmony import */ var
|
|
150
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
151
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23078);
|
|
152
152
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8256);
|
|
153
153
|
/* harmony import */ var _ui_tuner_tuner__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(40104);
|
|
154
154
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65478);
|
|
@@ -224,18 +224,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
224
224
|
}
|
|
225
225
|
]);
|
|
226
226
|
return tuneBlock;
|
|
227
|
-
}((0,
|
|
227
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_6__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_10__.Plugin));
|
|
228
228
|
/** @override */ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(tuneBlock, "requires", [
|
|
229
229
|
'license'
|
|
230
230
|
]);
|
|
231
|
-
(0,
|
|
231
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
232
232
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':outsideClick :keydown')
|
|
233
233
|
], tuneBlock.prototype, "hideTuner", null);
|
|
234
|
-
(0,
|
|
234
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
235
235
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)('j.ed:selectionchange'),
|
|
236
236
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.debounce)()
|
|
237
237
|
], tuneBlock.prototype, "onChangeSelection", null);
|
|
238
|
-
(0,
|
|
238
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
239
239
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':click')
|
|
240
240
|
], tuneBlock.prototype, "onClickInBlock", null);
|
|
241
241
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_11__.JoditPro.plugins.add('tune-block', tuneBlock);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[576],{8256:function(e,t,o){var n=o(94899),i=o(6441),r=o(22732),c=o(21537),u=["tune.up","tune.remove","tune.down"],s=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n"].concat((0,n._)(u));function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:function(t,o){var n;return(null==o||null==(n=o.target)?void 0:n.tagName.toLowerCase())===e},exec:function(t,o){if(o){t.selection.save();var n=r.Dom.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function a(e){var t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled:function(e,o){var n;return!(null==o||null==(n=o.target)?void 0:n[t])},exec:function(o,n){var i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,c.call)(e?r.Dom.before:r.Dom.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}i.Config.prototype.tuneBlock={popup:{p:u,table:u,img:u,blockquote:u,div:u,pre:["tune.editPre"].concat((0,n._)(u)),h1:s,h2:s,h3:s,h4:s,h5:s,h6:s}},i.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:a(!0),down:a(!1),editPre:{icon:"pencil",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec:function(e,t){r.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},13152:function(e,t,o){o.r(t),o.d(t,{tuneBlock:function(){return f}});var n=o(80294),i=o(20616),r=o(67709),c=o(82749),u=o(18766),s=o(
|
|
8
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[576],{8256:function(e,t,o){var n=o(94899),i=o(6441),r=o(22732),c=o(21537),u=["tune.up","tune.remove","tune.down"],s=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n"].concat((0,n._)(u));function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:function(t,o){var n;return(null==o||null==(n=o.target)?void 0:n.tagName.toLowerCase())===e},exec:function(t,o){if(o){t.selection.save();var n=r.Dom.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function a(e){var t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled:function(e,o){var n;return!(null==o||null==(n=o.target)?void 0:n[t])},exec:function(o,n){var i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,c.call)(e?r.Dom.before:r.Dom.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}i.Config.prototype.tuneBlock={popup:{p:u,table:u,img:u,blockquote:u,div:u,pre:["tune.editPre"].concat((0,n._)(u)),h1:s,h2:s,h3:s,h4:s,h5:s,h6:s}},i.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:a(!0),down:a(!1),editPre:{icon:"pencil",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec:function(e,t){r.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},13152:function(e,t,o){o.r(t),o.d(t,{tuneBlock:function(){return f}});var n=o(80294),i=o(20616),r=o(67709),c=o(82749),u=o(18766),s=o(31635),l=o(23078);o(8256);var a=o(40104),h=o(65478),p=o(50911),d=o(2692),f=function(e){function t(){var e;return(0,i._)(this,t),e=(0,n._)(this,t,arguments),(0,c._)(e,"tuner",void 0),e}return(0,u._)(t,e),(0,r._)(t,[{key:"afterInit",value:function(e){this.tuner=new a.UITuner(e)}},{key:"hideTuner",value:function(){this.tuner.hide()}},{key:"onChangeSelection",value:function(){this.j.s.isCollapsed()||this.hideTuner()}},{key:"onClickInBlock",value:function(e){this.j.s.isCollapsed()&&this.tuner.show()}},{key:"beforeDestruct",value:function(e){this.tuner.destruct()}}]),t}((0,l._)(p.Plugin));(0,c._)(f,"requires",["license"]),(0,s.__decorate)([(0,h.watch)(":outsideClick :keydown")],f.prototype,"hideTuner",null),(0,s.__decorate)([(0,h.watch)("j.ed:selectionchange"),(0,h.debounce)()],f.prototype,"onChangeSelection",null),(0,s.__decorate)([(0,h.watch)(":click")],f.prototype,"onClickInBlock",null),d.JoditPro.plugins.add("tune-block",f)},40104:function(e,t,o){o.d(t,{UITuner:function(){return f}});var n=o(80294),i=o(20616),r=o(67709),c=o(82749),u=o(18766),s=o(31635),l=o(65478),a=o(22732),h=o(21537),p=o(67510),d=o(21491),f=function(e){function t(){var e;return(0,i._)(this,t),e=(0,n._)(this,t,arguments),(0,c._)(e,"isShown",!1),(0,c._)(e,"toolbar",(0,d.makeCollection)(e.j,e)),(0,c._)(e,"popup",new p.Popup(e.j,!1)),(0,c._)(e,"currentBlock",void 0),e}return(0,u._)(t,e),(0,r._)(t,[{key:"className",value:function(){return"UITuner"}},{key:"render",value:function(){return"<div>\n <div class='&__handle' title='~Click to tune~'/>\n </div>"}},{key:"show",value:function(){var e=this,t=this.j.s.current();if(!t)return this.hide();var o=a.Dom.isBlock(t)?t:a.Dom.closest(t,function(t){return!!(t&&e.j.o.tuneBlock.popup[t.nodeName.toLowerCase()])},this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}},{key:"hide",value:function(){this.isShown&&(this.isShown=!1,a.Dom.safeRemove(this.container),this.closeToolbar())}},{key:"onEditorScroll",value:function(){this.isShown&&this.calcPosition()}},{key:"calcPosition",value:function(){var e=(0,h.css)(this.j.editor,"marginLeft"),t=(0,h.css)(this.j.editor,"paddingLeft"),o=(0,h.css)(this.j.editor,"marginTop"),n=this.currentBlock.offsetWidth-15+e+t,i=this.currentBlock.offsetTop-this.j.editor.scrollTop+o;(0,h.css)(this.container,{transform:"translate3d(".concat(n,"px, ").concat(i,"px, 0)")}),this.popup.isOpened&&this.popup.updatePosition()}},{key:"onAfterExecTune",value:function(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}},{key:"onClickPrevent",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"onTargetClick",value:function(){this.toggleToolbar()}},{key:"openToolbar",value:function(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){var e=this.getElm("handle");(0,h.assert)(null!=e,"Handle element does not exist"),this.popup.open(function(){return(0,h.position)(e)})}}},{key:"closeToolbar",value:function(){this.setMod("opened",!1),this.popup.close()}},{key:"toggleToolbar",value:function(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}}]),t}(p.UIElement);(0,s.__decorate)([(0,l.watch)(":hideTuner.tune")],f.prototype,"hide",null),(0,s.__decorate)([(0,l.watch)("j.editor:scroll"),(0,l.throttle)(10)],f.prototype,"onEditorScroll",null),(0,s.__decorate)([(0,l.watch)(":afterExecTune.tune"),(0,l.idle)()],f.prototype,"onAfterExecTune",null),(0,s.__decorate)([(0,l.watch)("container:click container:mousedown")],f.prototype,"onClickPrevent",null),(0,s.__decorate)([(0,l.watch)("handle:click")],f.prototype,"onTargetClick",null),(0,s.__decorate)([(0,l.watch)(":closeTuner.tune")],f.prototype,"closeToolbar",null),f=(0,s.__decorate)([l.component],f)}},function(e){return e(e.s=13152)}])});
|